PageSourceSearch

https://class.cmdspace.kr/static/js/0.2a66b0a8.chunk.js

js cmdspace.kr collected 2026-10-04 20:57:30 UTC 25,563 bytes, 1 lines download raw bytes

1(this["webpackJsonppubl-uw"]=this["webpackJsonppubl-uw"]||[]).push([[0],{2760:function(e,t,n){"use strict";n.d(t,"a",(function(){return Z}));var i,o=n(27),c=n(7),r=n(14),a=n(2),s=n(4),d=n(182),l=n(9),u=n(16),p=n(15),b=n(115),_=n(210),m=n(455),j=n(154),g=n(19),h=n(76),O=n(122),f=n(178),x=n(114),C=n(30),T=n(37),v=n(571),P=n(10),y=n(110),I=n(81),S=n(63),A=n(337),k=n(211),B=n(100),M=n(13),D=n(5),N=n(2798),E=n(2779),w=n(20),L=n(21),F=n(77),z=n(186),R=function(){function e(){Object(w.a)(this,e)}return Object(L.a)(e,null,[{key:"createCAPTPricingViewModels",value:function(t,n,i,o){return{individuals:z.a.createPricingViewModels(n.individuals.map((function(e){return{originalPayload:e,isAvailable:e.isPurchaseAvailable,isPointPricing:i,productTargetModel:S.c.ChannelActionProduct,productTargetId:e.captId,productName:e.representationalName,listPrice:{amount:e.originalChannelPointAmount,currency:t.baseCurrency},salePrice:{amount:e.channelPointAmount,currency:t.baseCurrency},quantity:1,period:e.unlockActionExpiryPeriodInDays}})),o).map((function(e){return Object(c.a)(Object(c.a)({},e),{},{periodLabel:e.source.period?F.a.t("str_3263",{validPeriod:e.source.period}):F.a.t("str_3298")})})).filter(e.filterViewModel),memberships:z.a.createPricingViewModels(n.memberships.map((function(e){return{originalPayload:e,isAvailable:!e.isDeactivated,isPointPricing:i,productTargetModel:S.c.SubscriptionProduct,productTargetId:e.id.toString(),productName:e.membership.title,productDescription:e.alias,listPrice:e.originalFee,salePrice:e.fee,quantity:1,period:e.expiryPeriodInDays}})),o).map((function(e){return Object(c.a)(Object(c.a)({},e),{},{periodLabel:e.source.period?F.a.t("str_3263",{validPeriod:e.source.period}):F.a.t("str_3298")})})).filter(e.filterViewModel)}}},{key:"filterViewModel",value:function(e){var t=e.source.originalPayload;if(!t)throw new Error("CAPTPricingService::filterViewModel payload error");return t.availablePurchaseMethodsType===p.g.CASH_AND_CP||(e.isPointPricing?t.availablePurchaseMethodsType===p.g.CP_ONLY&&!(!("type"in t)||!t.type)&&["FREE_INFINITE","FREE_FINITE","ONCE_INFINITE","ONCE_FINITE"].includes(t.type):t.availablePurchaseMethodsType===p.g.CASH_ONLY)}}]),e}(),U=n(0);!function(e){e[e.NORMAL=0]="NORMAL",e[e.E00001_COUPON=1]="E00001_COUPON"}(i||(i={}));var V=D.default.div.withConfig({displayName:"S_LoadingWrapper",componentId:"sc-1xycm7g-0"})(["background-color:transparent;height:360px;position:relative;"]),H=D.default.div.withConfig({displayName:"S_ButtonWrapper",componentId:"sc-1xycm7g-1"})(["display:flex;justify-content:center;"]),W=D.default.div.withConfig({displayName:"S_Padding",componentId:"sc-1xycm7g-2"})(["padding:0 ",";"],(function(e){return e.theme.spacing.spacingE})),Z=function(e){var t,n,D,w=e.pAppCode,L=e.targetModel,F=e.targetId,z=e.templateId,Z=e.showCouponButton,Y=void 0!==Z&&Z,G=e.customUserInputForAction,q=e.targetFromOtherDomain,X=e.redirectUrl,J=e.onClose,K=e.onSuccessNavigate,$=Object(d.a)("translation").t,Q=Object(l.c)(),ee=Object(u.k)(),te=Object(u.m)();Object(y.c)("".concat(w,"_").concat(L,"_capt"),"ChannelActionProduct","SCHEDULE"===L||"CHAT_ROOM"===L?null!==z&&void 0!==z?z:"":String(F),"C00007"!==w);var ne=Object(l.d)(g.c),ie=Object(l.d)(m.g),oe=Object(l.d)(m.f),ce=Object(l.d)(f.a),re=Object(l.d)(g.k),ae=Object(l.d)(m.e),se=Object(l.d)(m.d),de=Object(l.d)(g.b),le=Object(l.d)(g.a),ue=Object(l.d)(m.c),pe=["ko","ko-KR","ko-kr"].includes("".concat(localStorage.getItem("i18nextLng"))),be=null===ne||void 0===ne?void 0:ne.inChannelStore,_e=(null===be||void 0===be||null===(t=be.brandedPointSystem)||void 0===t||null===(n=t.branding)||void 0===n?void 0:n.pointCurrencyType)||"CP_TYPE_POINT",me=pe?h.b[_e].KRW:h.b[_e].USD,je=Object(s.useState)(!1),ge=Object(r.a)(je,2),he=ge[0],Oe=ge[1],fe=Object(s.useState)(!1),xe=Object(r.a)(fe,2),Ce=xe[0],Te=xe[1],ve=Object(s.useState)(),Pe=Object(r.a)(ve,2),ye=Pe[0],Ie=Pe[1],Se=Object(s.useState)("CASH"),Ae=Object(r.a)(Se,2),ke=Ae[0],Be=Ae[1],Me=Object(b.a)(),De=Me.openDialog,Ne=Me.closeDialog,Ee=P.f.getChannelCode(),we=Object(_.a)().offerwallChannel,Le=Object(s.useState)({individuals:[],memberships:[]}),Fe=Object(r.a)(Le,2),ze=Fe[0],Re=Fe[1],Ue=Object(s.useState)(),Ve=Object(r.a)(Ue,2),He=Ve[0],We=Ve[1],Ze=Object(s.useMemo)((function(){var e;if(ye){var t="INDIVIDUALS"===ye?ze.individuals:ze.memberships;if(0!==t.length)return null!==(e=t.find((function(e){return e.id===He})))&&void 0!==e?e:t[0]}}),[ye,He,ze]),Ye=oe.length>0,Ge=ie.length>0,qe=Object(k.a)(),Xe=Object(A.a)({products:Ze?[Ze]:[],initialTriggerState:{applicableBenefits:qe.applicableBenefits,appliedDiscountCodeId:qe.appliedDiscountCodeId},isPointPricing:null!==(D=null===Ze||void 0===Ze?void 0:Ze.isPointPricing)&&void 0!==D&&D,onTrigger:function(e){return e(S.d.EXPRESSION_VIEW)},onConfirm:function(e){Object(B.a)(Ze,"CAPTList::useDiscountApplyModal::onConfirm error: INVALID_SELECTED_PRODUCT");var t=Ze.source.productTargetModel===S.c.SubscriptionProduct?"memberships":"individuals";Re((function(n){var i=new Map(e.products.map((function(e){return[e.source.productTargetId,e]})));return Object(c.a)(Object(c.a)({},n),{},Object(o.a)({},t,n[t].map((function(e){var t;return null!==(t=i.get(e.source.productTargetId))&&void 0!==t?t:e}))))})),qe.setAppliedDiscountCodeId(e.appliedDiscountCodeId)},onClose:function(e){qe.setAppliedDiscountCodeId(e.appliedDiscountCodeId)}}),Je=Object(s.useMemo)((function(){return Y?i.E00001_COUPON:i.NORMAL}),[Y]),Ke=null===de||void 0===de?void 0:de.usePointPriorityOptionForMembershipPurchase,$e=null===de||void 0===de?void 0:de.usePointPriorityOptionForIndividualContentPurchase,Qe=(null===le||void 0===le?void 0:le.pointCurrencyIconType)||"CP_IC_POINT_3D_001",et=null!==ne&&void 0!==ne&&ne.isGlobal?null===le||void 0===le?void 0:le.pointCurrencySuite.pointCurrencyNameGlobal:(null===le||void 0===le?void 0:le.pointCurrencySuite.pointCurrencyName)||"Point";Object(s.useEffect)((function(){ne&&qe.trigger(S.d.EXPRESSION_VIEW)}),[ne]),Object(s.useEffect)((function(){Q(Object(O.g)())}),[]),Object(s.useLayoutEffect)((function(){return Q("SCHEDULE"===L||"CHAT_ROOM"===L?Object(j.b)({targetModel:L,templateId:z}):Object(j.b)({targetModel:L,targetId:F})),function(){Q(Object(j.e)())}}),[]);var tt=Object(s.useCallback)((function(e){return Object(B.a)(ne,"CAPTList::createPricingViewModels error: INVALID_CHANNEL"),R.createCAPTPricingViewModels(ne,{individuals:ie,memberships:oe},"POINT"===ke,e)}),[ne,ie,oe,ke]);Object(s.useEffect)((function(){var e,t=tt(null!==(e=qe.applicableBenefits)&&void 0!==e?e:[]);t&&Re(t)}),[tt,qe.applicableBenefits]),Object(s.useEffect)((function(){Ge?Ie("INDIVIDUALS"):Ye&&Ie("MEMBERSHIPS")}),[Ge,Ye]),Object(s.useEffect)((function(){ye&&We(void 0)}),[ye,ke]),Object(s.useEffect)((function(){var e;if(!He){var t="INDIVIDUALS"===ye?ze.individuals:ze.memberships;We(null===(e=t[0])||void 0===e?void 0:e.id)}}),[ze]),Object(s.useEffect)((function(){re?("INDIVIDUALS"===ye&&Be($e?"POINT":"CASH"),"MEMBERSHIPS"===ye&&Be(Ke?"POINT":"CASH")):Be("CASH")}),[ne,ye]);var nt=function(e){ee.push(Object(P.l)(M.lc,{siid:e},{channelCode:te.channelCode,successRedirectUrl:X||ee.location.pathname+ee.location.search,failedRedirectUrl:ee.location.pathname+ee.location.search}))},it=function(){Q(Object(C.o)()),De({contentText:$("str_key_user_scene_chargepoint_inapppoint_cap_purchase_completed_alert"),tBtn1Text:$("str_confirm"),onClickTBtn1:function(){Ne(),J(),Te(!1),K&&K()}})},ot=function(e){var t=e.isChannelPointSufficient,n=e.isPrepaidOrderCreated;t?n||De({contentText:$("str_key_user_scene_chargepoint_inapppoint_cap_purchase_failed_alert"),tBtn1Text:$("str_confirm"),onClickTBtn1:function(){Ne()}}):De({contentText:$("str_key_user_scene_chargepoint_inapppoint_cap_purchase_notenough_alert"),tBtn1Text:$("str_confirm"),onClickTBtn1:function(){Ne()}})},ct=function(e){Q(Object(j.c)({siid:e,successCallback:it,failCallback:ot}))},rt=function(){if(!Ze)return!1;if(Ze.source.productTargetModel!==S.c.SubscriptionProduct)return!1;var e=Ze.source.originalPayload;return!!e&&(!("FREE_FINITE"!==e.type||!e.hasUserAlreadyPurchased)&&(De({contentText:$("str_key_user_scene_capt_payment_option_subs_temporary_free_already_taken"),btnMode:"tbtn_amount1",tBtn1Text:$("str_confirm"),onClickTBtn1:Ne}),!0))},at=function(){return!!P.b.getIsChannelMonetizationActive((null===ne||void 0===ne?void 0:ne.id)||0)||(De({contentText:$("str_key_user_scene_monetization_common_notmonetization_info_desc"),btnMode:"tbtn_amount1",tBtn1Text:$("str_confirm"),onClickTBtn1:Ne}),!1)},st=Object(s.useCallback)((function(){Xe.show()}),[Xe]),dt=function(e){if(ne&&Ze&&at())switch(Ze.source.productTargetModel){case S.c.ChannelActionProduct:Q(Object(j.f)({pAppCode:w,productModel:"ChannelActionProduct",contentId:String(Ze.source.productTargetId),targetId:F,targetModel:L,channelPointAmount:I.c.priceToChannelPoint(Ze.salePrice.value),targetFromOtherDomain:q,customUserInputForAction:G,inChannelWalletSummary:ce||void 0,couponCode:e,successCallback:nt}));break;case S.c.SubscriptionProduct:Q(Object(j.g)({pAppCode:w,productModel:"SubscriptionProduct",productId:Number(Ze.source.productTargetId),c
1ouponCode:e,successCallback:nt}))}},lt=function(){ne&&ee.push(Object(u.i)(M.ub,{channelCode:ne.channelCode}),{prevPath:"pApp"})},ut=Object(s.useMemo)((function(){if(Je===i.E00001_COUPON)return{btnMode:"mbtn_amount3",mBtn3Text:$("str_e00001_enter_coupon"),mBtn3State:null!==Ze&&void 0!==Ze&&Ze.source.isAvailable?"normal":"disabled",onClickMBtn3:function(){return Object(E.b)(dt,!0)}};if((null===Ze||void 0===Ze?void 0:Ze.source.productTargetModel)===S.c.SubscriptionProduct){var e=Ze.source.originalPayload;if(!S.b.isSupportedMembershipProductType(e.type))return{}}return{btnMode:"mbtn_amount3",mBtn3Text:$("str_user_promotion_campaign_discount_and_coupon"),mBtn3State:null!==Ze&&void 0!==Ze&&Ze.source.isAvailable?"normal":"disabled",onClickMBtn3:st}}),[Je,Ze]);return Object(U.jsxs)(U.Fragment,{children:[Object(U.jsx)(a.D_DesktopBasicModal,Object(c.a)(Object(c.a)({titleText:$("str_purchase_charged_contents"),size:"small",btnMode:"mbtn_amount2",mBtn1Text:$("str_event_action_buy"),mBtn2Text:$("str_cancel"),mBtn1State:Ze&&null!==Ze&&void 0!==Ze&&Ze.source.isAvailable?"normal":"disabled",onClickMBtn1:function(){var e,t;if(ne&&Ze)if(null===Ze||void 0===Ze||null===(e=Ze.promotion)||void 0===e||!e.selectedLimitedTime||Ze.promotion.selectedLimitedTime.isTimeActivated){if(at()){var n=null===(t=Ze.promotion.selectedProductDiscount)||void 0===t?void 0:t.payload;switch(Ze.source.productTargetModel){case S.c.ChannelActionProduct:if("POINT"===ke){Te(!0);break}Q(Object(j.f)({pAppCode:w,productModel:"ChannelActionProduct",contentId:String(Ze.source.productTargetId),targetId:F,targetModel:L,channelPointAmount:I.c.priceToChannelPoint(Ze.salePrice.value),targetFromOtherDomain:q,customUserInputForAction:G,inChannelWalletSummary:ce||void 0,promotionBenefitIds:n?[n.pbid]:[],promotionSubmittedAttachments:{appliedCouponCodes:null!==n&&void 0!==n&&n.consumedCoupon?[n.consumedCoupon.code]:[],appliedDiscountCodeIds:null!==n&&void 0!==n&&n.consumedDiscountCode?[n.consumedDiscountCode.dcid]:[]},successCallback:nt}));break;case S.c.SubscriptionProduct:if(rt())break;if(Ze.source.originalPayload.type.startsWith("COUPON_")){Object(E.b)(dt);break}if("POINT"===ke){Te(!0);break}Q(Object(j.g)({pAppCode:w,productModel:"SubscriptionProduct",productId:Number(Ze.source.productTargetId),promotionBenefitIds:n?[n.pbid]:[],promotionSubmittedAttachments:{appliedCouponCodes:null!==n&&void 0!==n&&n.consumedCoupon?[n.consumedCoupon.code]:[],appliedDiscountCodeIds:null!==n&&void 0!==n&&n.consumedDiscountCode?[n.consumedDiscountCode.dcid]:[]},successCallback:nt}))}}}else De({contentText:$("str_8222"),btnMode:"tbtn_amount1",tBtn1Text:$("str_confirm"),onClickTBtn1:Ne})},onClickMBtn2:J,bodySpacingMode:"none"},ut),{},{children:ae||qe.isLoading?Object(U.jsx)(V,{children:Object(U.jsx)(T.x,{useBoxShadow:!1})}):Object(U.jsxs)(U.Fragment,{children:[Object(U.jsx)(W,{children:Object(U.jsx)(a.D_TextLabel,{text:$("str_5227"),colorTheme:"sysTextSecondary",styleTheme:"subTitleRegular"})}),Object(U.jsx)(a.Spacing,{size:"spacing_e"}),Ge&&Ye?Object(U.jsx)(N.e,{tab1Text:$("str_5302"),tab2Text:$("str_membership"),onTab1Click:function(){return Ie("INDIVIDUALS")},onTab2Click:function(){return Ie("MEMBERSHIPS")}}):Object(U.jsx)(U.Fragment,{children:(Ge||Ye)&&Object(U.jsx)(W,{children:Object(U.jsx)(a.D_TextLabel,{text:$(Ge?"str_5302":"str_membership")})})}),"L2NoYW5uZWxzLzE4NTcx"!==Ee&&"L2NoYW5uZWxzLzE4Nzg0"!==Ee&&re&&void 0!==ye&&Object(U.jsxs)(U.Fragment,{children:[Object(U.jsx)(a.Spacing,{size:"spacing_d"}),Object(U.jsx)(W,{children:Object(U.jsx)(N.f,{activeTabEnum:"CASH"===ke?"TAB1":"TAB2",text1:$("str_key_chargepoint_paymentsway_cash"),text2:$("str_key_chargepoint_paymentsway_point",{pointName:et}),text2IconName:h.a[Qe],onText1Click:function(){Be("CASH")},onText2Click:function(){Be("POINT")}})})]}),Object(U.jsx)(a.Spacing,{size:"spacing_d"}),"INDIVIDUALS"===ye&&Object(U.jsx)(U.Fragment,{children:Object(U.jsxs)(W,{children:[ze.individuals.length>0&&Object(U.jsx)(U.Fragment,{children:ze.individuals.map((function(e){return Object(U.jsxs)(s.Fragment,{children:[Object(U.jsx)(v.a,{productViewModel:e,isSelected:(null===Ze||void 0===Ze?void 0:Ze.id)===e.id,onClick:function(){return We(e.id)}}),Object(U.jsx)(a.Spacing,{size:"spacing_d"})]},e.source.originalPayload.captId)}))}),0===ze.individuals.length&&Object(U.jsx)(N.c,{})]})}),"MEMBERSHIPS"===ye&&Object(U.jsxs)(U.Fragment,{children:[Object(U.jsxs)(W,{children:[ze.memberships.length>0&&Object(U.jsxs)(U.Fragment,{children:[ze.memberships.map((function(e){return Object(U.jsxs)(s.Fragment,{children:[Object(U.jsx)(v.a,{productViewModel:e,isSelected:(null===Ze||void 0===Ze?void 0:Ze.id)===e.id,onClick:function(){return We(e.id)}}),Object(U.jsx)(a.Spacing,{size:"spacing_d"})]},e.source.originalPayload.id)})),Object(U.jsx)(H,{children:Object(U.jsx)(a.D_TextButton,{text:te.channelCode===p.j?$("str_7059"):$("str_5155"),size:"medium",onClick:function(){ee.push(Object(u.i)(M.Pb,{channelCode:te.channelCode}),{hasPrevPage:!0})}})})]}),0===ze.memberships.length&&Object(U.jsx)(N.c,{})]}),Object(U.jsx)(a.Spacing,{size:"spacing_d"})]}),void 0===ye&&Object(U.jsx)(N.c,{})]})}
1)),ne&&Ce&&Ze&&ce&&Object(U.jsx)(N.d,{pointIconName:h.a[Qe],productPriceText:Ze.finalPrice.label,remainingPointText:I.c.channelPointToBrandedPoint(ce.channelPointAmount).toLocaleString(),isInAppPointPurchaseLoading:se,selectedProduct:Ze,onPurchase:function(){var e;if(Ze&&ne){var t=I.c.brandedPointToChannelPoint(Ze.finalPrice.value);if(ce&&void 0!==t)if(ce.channelPointAmount<t)Oe(!0);else{var n=null===(e=Ze.promotion.selectedProductDiscount)||void 0===e?void 0:e.payload;switch(Ze.source.productTargetModel){case S.c.ChannelActionProduct:Q(Object(j.f)({pAppCode:w,productModel:"ChannelActionProduct",contentId:String(Ze.source.productTargetId),targetId:F,targetModel:L,channelPointAmount:I.c.brandedPointToChannelPoint(Ze.salePrice.value),targetFromOtherDomain:q,customUserInputForAction:G,inChannelWalletSummary:ce||void 0,promotionBenefitIds:n?[n.pbid]:[],promotionSubmittedAttachments:{appliedCouponCodes:null!==n&&void 0!==n&&n.consumedCoupon?[n.consumedCoupon.code]:[],appliedDiscountCodeIds:null!==n&&void 0!==n&&n.consumedDiscountCode?[n.consumedDiscountCode.dcid]:[]},successCallback:ct,isInAppPurchase:!0}));break;case S.c.SubscriptionProduct:var i=Ze.source.originalPayload;if(rt())break;if(i.type.startsWith("COUPON_")){Object(E.b)(dt);break}Q(Object(j.g)({pAppCode:w,productModel:"SubscriptionProduct",productId:Number(Ze.source.productTargetId),successCallback:ct,isInAppPurchase:!0,inChannelWalletSummary:ce||void 0,promotionBenefitIds:n?[n.pbid]:[],promotionSubmittedAttachments:{appliedCouponCodes:null!==n&&void 0!==n&&n.consumedCoupon?[n.consumedCoupon.code]:[],appliedDiscountCodeIds:null!==n&&void 0!==n&&n.consumedDiscountCode?[n.consumedDiscountCode.dcid]:[]}}))}}}},onClose:function(){return Te(!1)},onChargeButtonClick:lt}),he&&Object(U.jsx)(a.D_DesktopAlertDialog,{titleText:$("str_inapppoint_purchase_product_dialog_title",{inappPointName:me}),contentText:$(we?"str_inapppoint_purchase_product_dialog_content_offerwall":"str_inapppoint_purchase_product_dialog_content",{inappPointName:me,pointName:me}),btnMode:we?"tbtn_amount3":"tbtn_amount2",tBtn1Text:$("str_inapppoint_purchase_product_dialog_btn"),tBtn2Text:$(we?"str_inapppoint_purchase_product_dialog_btn_offerwall":"str_cancel"),tBtn3Text:we?$("str_cancel"):void 0,onClickTBtn1:lt,onClickTBtn2:we?function(){ee.push(Object(P.l)(M.zb,{channelCode:null!==Ee&&void 0!==Ee?Ee:null===ne||void 0===ne?void 0:ne.channelCode}),{prevPath:"pApp"})}:function(){return Oe(!1)},onClickTBtn3:function(){return Oe(!1)}}),ue&&Object(U.jsx)(N.b,{error:ue,onConfirmClick:function(){Q(Object(j.h)()),Q(Object(x.g)())}})]})}},2779:function(e,t,n){"use strict";n.d(t,"b",(function(){return d}));var i=n(7),o=n(2),c=n(29),r=n(182),a=n(98),s=n(0);function d(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(a.f)({usePortal:!0,render:function(){return Object(s.jsx)(l,{onApplyCoupon:e,isE00001:t,onClose:function(){Object(a.b)(n)}})}});return n}function l(e){var t=e.onApplyCoupon,n=e.onClose,a=e.isE00001,d=Object(r.a)("translation").t,l=Object(c.useForm)(),u=l.handleSubmit,p=l.formState.isValid,b={required:{value:!0,message:d("str_err_2090")},pattern:{value:/^[A-Z]{0,6}[A-Z0-9]{5}[A-Z0-9]{11}-[A-Z0-9]{5}$/,message:d("str_err_4756")}};return Object(s.jsx)(o.D_DesktopBasicModal,{titleText:d(a?"str_e00001_enter_coupon":"str_4776"),contentText:d(a?"str_e00001_enter_coupon_desc":"str_4777"),size:"small",mBtn1Text:d("str_apply"),mBtn1State:p?"normal":"disabled",mBtn1Type:"submit",mBtn2Text:d("str_cancel"),onClickMBtn1:u((function(e){var i=e.couponCode;i&&(t(i),n())})),onClickMBtn2:n,children:Object(s.jsx)(c.FormProvider,Object(i.a)(Object(i.a)({},l),{},{children:Object(s.jsxs)(o.Form,{children:[Object(s.jsx)(o.Spacing,{size:"spacing_e"}),Object(s.jsx)(o.D_TextField,{name:"couponCode",hintText:d(a?"str_e00001_enter_coupon":"str_4776"),responsiveMode:"use",validation:b})]})}))})}t.a=l},2798:function(e,t,n){"use strict";n.d(t,"a",(function(){return i.a})),n.d(t,"b",(function(){return b})),n.d(t,"f",(function(){return x})),n.d(t,"e",(function(){return C})),n.d(t,"d",(function(){return S})),n.d(t,"c",(function(){return k}));var i=n(2779),o=n(2),c=n(182),r=n(9),a=n(16),s=n(154),d=n(33),l=n(37),u=n(13),p=n(0);var b=function(e){var t=e.error,n=e.onConfirmClick,i=Object(c.a)("translation").t,b=t.type,_=t.status,m=t.data,j=Object(r.c)(),g=Object(a.k)(),h=Object(r.d)(d.c),O=Object(r.d)(d.a),f=Object(a.m)().channelCode,x=null!==h&&void 0!==h&&h.isGlobal?(null===O||void 0===O?void 0:O.pointCurrencySuite.pointCurrencyNameGlobal)||"Point":(null===O||void 0===O?void 0:O.pointCurrencySuite.pointCurrencyName)||"Point",C=function(){n()};switch(b){case"".concat(s.f.type,"_FAILED"):return"CORE-00069"===(null===m||void 0===m?void 0:m.error.code)?Object(p.jsx)(o.D_DesktopAlertDialog,{contentText:i("str_err_3537"),btnMode:"tbtn_amount1",tBtn1Text:i("str_confirm"),onClickTBtn1:C}):"CORE-00068"===(null===m||void 0===m?void 0:m.error.code)?Object(p.jsx)(o.D_DesktopAlertDialog,{titleText:i("str_inapppoint_purchase_product_dialog_title",{inappPointName:x}
1),contentText:i("str_inapppoint_purchase_product_dialog_content",{inappPointName:x}),btnMode:"tbtn_amount2",tBtn1Text:i("str_inapppoint_purchase_product_dialog_btn"),onClickTBtn1:function(){g.push(Object(a.i)(u.tb,{channelCode:f}),{prevPath:"pApp"}),j(Object(s.h)()),n()},tBtn2Text:i("str_cancel"),onClickTBtn2:function(){j(Object(s.h)()),n()}}):"CORE-00069-SERIES"===(null===m||void 0===m?void 0:m.error.code)||"CORE-00069-EPISODE"===(null===m||void 0===m?void 0:m.error.code)?Object(p.jsx)(o.D_DesktopAlertDialog,{contentText:i("str_err_3512",{targetModel:i("str_papp_vodp_episode")}),btnMode:"tbtn_amount1",tBtn1Text:i("str_confirm"),onClickTBtn1:C}):Object(p.jsx)(l.n,{statusCode:_,onClickConfirmButton:C});default:return 400===_?Object(p.jsx)(o.D_DesktopAlertDialog,{contentText:i("str_err_3174"),btnMode:"tbtn_amount1",tBtn1Text:i("str_confirm"),onClickTBtn1:C}):Object(p.jsx)(l.n,{statusCode:_,onClickConfirmButton:C})}},_=n(14),m=n(4),j=n(5),g=j.default.div.withConfig({displayName:"ToggleContainer",componentId:"sc-1d7cb7h-0"})(["align-items:center;background-color:",";border-radius:16px;cursor:pointer;display:flex;height:40px;position:relative;"],(function(e){return e.theme.ui_cpnt_sheet_base_02})),h=j.default.div.withConfig({displayName:"Toggle",componentId:"sc-1d7cb7h-1"})(["background-color:",";border-radius:12px;bottom:0;left:",";margin:",";position:absolute;top:0;transition:left 0.3s ease;width:calc(50% - 8px);"],(function(e){return e.theme.ui_cpnt_sheet_base_01}),(function(e){return"TAB1"===e.activeTab?0:"calc(50%)"}),(function(e){return e.theme.spacing.spacingA})),O=j.default.div.withConfig({displayName:"Label",componentId:"sc-1d7cb7h-2"})(["flex:1;z-index:1;"]),f=j.default.div.withConfig({displayName:"S_Felx",componentId:"sc-1d7cb7h-3"})(["align-items:normal;display:flex;justify-content:center;"]),x=function(e){var t=e.activeTabEnum,n=void 0===t?"TAB1":t,i=e.text1,c=e.text2,r=e.text2IconName,a=e.onText1Click,s=e.onText2Click,d=Object(m.useState)(n),l=Object(_.a)(d,2),u=l[0],b=l[1];Object(m.useEffect)((function(){b(n)}),[n]);return Object(p.jsxs)(g,{children:[Object(p.jsx)(h,{activeTab:u}),Object(p.jsx)(O,{onClick:function(){return b("TAB1"),void a()},active:"TAB1"===u,children:Object(p.jsx)(o.M_TextLabel,{text:i,colorTheme:"TAB1"===u?"sysTextPrimary":"sysTextTertiary",styleTheme:"caption1Bold",textAlign:"center"})}),Object(p.jsx)(O,{onClick:function(){return b("TAB2"),void s()},active:"TAB2"===u,children:Object(p.jsxs)(f,{children:[r&&Object(p.jsx)(o.Icon,{size:20,iconName:r}),Object(p.jsx)(o.Spacing,{size:"spacing_a",spacingType:"width"}),Object(p.jsx)(o.M_TextLabel,{text:c,colorTheme:"TAB2"===u?"sysTextPrimary":"sysTextTertiary",styleTheme:"caption1Bold",textAlign:"center"})]})})]})};var C=function(e){var t=e.tab1Text,n=e.tab2Text,i=e.onTab1Click,c=e.onTab2Click,r=Object(m.useState)(t),a=Object(_.a)(r,2),s=a[0],d=a[1],l=[{onClick:function(){d(t),i()},isActive:s===t,title:t},{onClick:function(){d(n),c()},isActive:s===n,title:n}];return Object(p.jsx)(o.M_MobileTabBar,{itemArray:l,colorTheme:"grey_01"})};var T=j.default.div.withConfig({displayName:"S_TextBox",componentId:"sc-1jgwtsr-0"})(["display:flex;"]),v=j.default.div.withConfig({displayName:"S_ProductPriceBox",componentId:"sc-1jgwtsr-1"})(["align-items:center;display:flex;justify-content:space-between;"]),P=j.default.div.withConfig({displayName:"S_RemainPointBox",componentId:"sc-1jgwtsr-2"})(["align-items:center;display:flex;justify-content:space-between;"]),y=j.default.div.withConfig({displayName:"S_MainButtonWrapper",componentId:"sc-1jgwtsr-3"})(["align-items:center;display:flex;justify-content:flex-end;"]),I=j.default.div.withConfig({displayName:"S_Flex",componentId:"sc-1jgwtsr-4"})(["align-items:center;display:flex;"]),S=function(e){var t=e.isInAppPointPurchaseLoading,n=e.selectedProduct,i=e.productPriceText,r=e.remainingPointText,a=e.pointIconName,s=e.onPurchase,d=e.onClose,l=e.onChargeButtonClick,u=Object(c.a)("translation").t;return Object(p.jsxs)(o.M_MobileBasicModal,{titleText:u("str_inapppoint_purchase_product_modal_title"),mBtnText:u("str_inapppoint_purchase_product_modal_btn"),mBtnState:t?"disabled":"normal",onClickMBtn:s,onClickXMarkIcon:d,children:[Object(p.jsx)(o.D_TextLabel,{text:u("str_inapppoint_purchase_product_modal_section_body_productdesc",{productName:null===n||void 0===n?void 0:n.source.productName}),styleTheme:"subTitleBold"}),Object(p.jsx)(o.Spacing,{size:"spacing_f"}),Object(p.jsxs)(v,{children:[Object(p.jsxs)(T,{children:[Object(p.jsx)(o.D_TextLabel,{text:u("str_inapppoint_purchase_product_modal_section_body_price_title"),styleTheme:"body2Regular",colorTheme:"sysTextSecondary"}),Object(p.jsx)(o.Spacing,{size:"spacing_c",spacingType:"width"})]}),Object(p.jsxs)(I,{children:[Object(p.jsx)(o.Icon,{iconName:a,size:20}),Object(p.jsx)(o.Spacing,{size:"spacing_a",spacingType:"width"}),Object(p.jsx)(o.D_TextLabel,{text:i,styleTheme:"leadParaBold",colorTheme:"usrTextBrandPrimary",textAlign:"right",singleLineMode:"use"})]})]}),Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(o.Spacing,{size:"spacing_d"}),Object(p.jsx)(o.Divider,{}),Object(p.jsx)(o.Spacing,{size:"spacing_d"})]}),Object(p.jsxs)(P,{children:[Object(p.jsxs)(T,{children:[Object(p.jsx)(o.D_TextLabel,{text:u("str_inapppoint_purchase_product_modal_section_body_remaining_title"),styleTheme:"body2Regular",colorTheme:"sysTextSecondary"}),Object(p.jsx)(o.Spacing,{size:"spacing_c",spacingType:"width"})]}),Object(p.jsxs)(I,{children:[Object(p.jsx)(o.Icon,{iconName:a,size:16}),Object(p.jsx)(o.Spacing,{size:"spacing_a",spacingType:"width"}),Object(p.jsx)(o.D_TextLabel,{text:r,styleTheme:"subTitleBold",textAlign:"right",singleLineMode:"use"})]})]}),Object(p.jsx)(o.Spacing,{size:"spacing_a"}),Object(p.jsx)(y,{children:Object(p.jsx)(o.D_MainButton,{text:u("str_inapppoint_purchase_product_modal_section_body_charge_btn"),styleTheme:"secondary",size:"xsmall",onClick:l})})]})};var A=j.default.div.withConfig({displayName:"S_Spacing",componentId:"sc-189lgov-0"}
1)(["height:144px;"]),k=function(){var e=Object(c.a)("translation").t;return Object(p.jsxs)(p.Fragment,{children:[Object(p.jsx)(o.Spacing,{size:"spacing_i"}),Object(p.jsx)(o.M_TextLabel,{text:e("str_2273"),textAlign:"center",styleTheme:"body1Regular",colorTheme:"sysTextSecondary"}),Object(p.jsx)(A,{})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.