1"use strict";(self.webpackChunkshop_react_web=self.webpackChunkshop_react_web||[]).push([[165],{80165:(e,i,t)=>{t.r(i),t.d(i,{default:()=>_});var s=t(65043),r=t(73216),o=t(52152),n=t(46655),c=t(54420),a=t(97605),d=t(59116),l=t(399),p=t(41342),x=t(94839),h=t(69037),u=t(33226),g=t(12011),m=t(60441),b=t(54501),j=t(7685),f=t(48120),S=t(79627),v=t(35509),w=t(24678),y=t(23178),I=t(9970),T=t(62991),A=t(81293),k=t(70579);const _=()=>{var e;const i=(0,r.Zp)(),t=(0,r.zy)(),{actionType:_}=t.state||{},{setToast:C}=(0,y.W)((0,n.k)((e=>({setToast:e.setToast})))),{shopSubscription:E,addonProductList:z,cardInfo:W,postSubscribe:G,postSubscribeAddon:L}=(0,h.A)(),O=S.UY[null!==(e=null===W||void 0===W?void 0:W.issuerCode)&&void 0!==e?e:""],[U,$]=(0,s.useState)([]),[B,H]=(0,s.useState)(0),[M,F]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{if(z){const e=z.filter((e=>U.includes(e.id))).reduce(((e,i)=>e+i.amount),0);H(T.df+e)}}),[U]),(0,s.useEffect)((()=>{if(_)if(window.history.replaceState({...t.state,actionType:void 0},""),_==u.MH.SERVER_FAIL||_==u.MH.TOSS_FAIL)C("\uce74\ub4dc\ub4f1\ub85d\uc5d0 \uc2e4\ud328\ud588\uc5b4\uc694. \uc7a0\uc2dc\ud6c4 \ub2e4\uc2dc \uc2dc\ub3c4\ud574 \uc8fc\uc138\uc694.","danger");else{F(!0);const e=sessionStorage.getItem(g.Cy);if(!e)return;sessionStorage.removeItem(g.Cy);const t=JSON.parse(e);G(t,(()=>{i("/subscribe/mo/success",{replace:!0})}))}}),[_]),(0,s.useEffect)((()=>{const e=new URLSearchParams(t.search).get("t");if(e){const s=(0,c.s)(e);sessionStorage.setItem("shopId",s.shopId),sessionStorage.setItem(g.T9,e),i(t.pathname,{replace:!0})}}),[]),(0,k.jsxs)("div",{style:{maxWidth:A.A.tablet,margin:"0 auto",width:"100%",minWidth:"calc(".concat(A.A.mobile," - 48px)")},children:[(0,k.jsx)(a.pT,{align:"start",direction:"column",width:"100%",gap:"12px",children:(0,k.jsx)(l.V9,{children:"\uba64\ubc84\uc2ed \uacb0\uc81c"})}),(0,k.jsxs)(a.pT,{align:"start",direction:"column",width:"100%",padding:"18px 0 24px",children:[(0,k.jsx)(l.x5,{children:"\uacb0\uc81c\uc218\ub2e8"}),null!=W?(0,k.jsxs)(a.pT,{gap:"16px",padding:"16px",margin:"8px 0 0",border:"1px solid var(--color-gray-200)",radius:f.A.corner16,width:"100%",children:[(0,k.jsx)("img",{src:O.logo,width:"40px",alt:"\uc740\ud589\ub85c\uace0"}),(0,k.jsxs)(a.pT,{direction:"column",width:"100%",align:"start",children:[(0,k.jsx)(l.x5,{children:O.name}),(0,k.jsxs)(l.x5,{color:"var(--color-gray-400)",fontSize:d.$N.size12,children:[W.cardType,"\uce74\ub4dc ",W.number]})]})]}):(0,k.jsx)(a.pT,{width:"100%",height:"52px",margin:"8px 0 0",radius:f.A.corner12,background:"var(--color-gray-50)",border:"1px solid var(--color-gray-200)",children:(0,k.jsx)(l.x5,{color:"var(--color-gray-400)",children:"\ub4f1\ub85d\ub41c \uce74\ub4dc\uac00 \uc5c6\uc5b4\uc694"})})]}),(0,k.jsxs)(a.pT,{align:"start",direction:"column",width:"100%",padding:"0 0 24px",children:[(0,k.jsx)(l.x5,{children:"\uae30\ubcf8\uc774\uc6a9\ub8cc"}),(0,k.jsxs)(a.pT,{width:"100%",padding:"14px 16px",margin:"8px 0 0",radius:f.A.corner12,border:"1px solid var(--color-primary-400)",justify:"space-between",children:[(0,k.jsx)(l.x5,{children:"\ubbf8\uc74c \ubca0\uc774\uc9c1"}),(0,k.jsxs)(l.x5,{children:[(0,k.jsx)(l.ck,{fontWeight:d.sO.bold,children:"9,900"})," \uc6d0"," ",(0,k.jsx)(l.ck,{color:"var(--color-gray-300)",children:"/ \uc6d4"})]})]})]}),(0,k.jsx)(a.pT,{align:"start",direction:"column",width:"100%",children:(0,k.jsx)(a.pT,{width:"100%",margin:"24px 0 0",children:(0,k.jsx)(p.A,{padding:"12px 16px",margin:"0",hasNoIcon:!0,captionTitle:"\uc720\uc758\uc0ac\ud56d",$titleColor:"var(--color-gray-600)",captionList:x.Ur,color:"var(--color-gray-400)",$titleFontSizeWt:"12px"})})}),(0,k.jsx)(a.G2,{position:"fixed",bottom:"0",left:"0",width:"100%",padding:"10px 12px",background:"var(--color-white)",$zIndex:w.A.zIndexFixed,children:(0,k.jsxs)(v.GI,{type:"button",padding:"12px 24px",$maxWidth:"786px",$lineHeight:d.kj.height26,onClick:()=>{null==(null===E||void 0===E?void 0:E.nextPaymentDate)?null!=W?G(U,(()=>{i("/subscribe/mo/success",{replace:!0})})):(sessionStorage.setItem(g.Cy,JSON.stringify(U)),(e=>{const i=sessionStorage.getItem("shopId"),t="".concat(window.location.origin,"/subscribe/mo/redirect/").concat(u.MH.MOBILE_SUBSCRIBE,"_").concat(e);(0,o.Z)("live_ck_kYG57Eba3G9J21B6zGG9rpWDOxmA").then((e=>
1{e.requestBillingAuth("\uce74\ub4dc",{customerKey:i,successUrl:t,failUrl:t}).catch((function(e){e.code}))}))})(u.MH.PAY)):L(null,U,(()=>{m.A.invalidateQueries(b.vs.fetchShopSubscription())}))},children:[(0,j.nm)(B),"\uc6d0 \uacb0\uc81c\ud558\uae30"]})}),M&&(0,k.jsx)(I.A,{})]})}}}]); 2//# sourceMappingURL=165.baa31e4d.chunk.js.map
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.