1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e5f969f8-a0af-4a5f-817d-0952d53f4be0",e._sentryDebugIdIdentifier="sentry-dbid-e5f969f8-a0af-4a5f-817d-0952d53f4be0")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[599],{365:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var s=n(37876),a=n(75863),o=n(43357),r=n(77043),l=n(46767),i=n(12899),c=n.n(i);let d=e=>{let{text:t}=e;return(0,s.jsx)("div",{className:c().main,"data-component":"payment-system-info-frame",children:(0,s.jsx)(a.A,{backgroundColor:l.$k,icon:(0,s.jsx)(o.A,{size:"24",color:l.bH}),children:(0,s.jsx)(r.A,{size:"14",text:t})})})}},8408:e=>{e.exports={LFInfoFrame:"LFInfoFrame_LFInfoFrame__UE2fU",iconWrap:"LFInfoFrame_iconWrap__YGfLx"}},12823:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var s=n(37876),a=n(14232),o=n(76588),r=n.n(o);let l=e=>{let{customClassName:t="",message:n,position:o,showTooltipOnHover:l=!0,children:i}=e,[c,d]=(0,a.useState)(!1),m="LFTooltip ".concat(r().LFTooltip," ").concat(t);return(0,s.jsxs)("span",{className:m,onMouseLeave:()=>{l&&d(!1)},"data-component":"lf-tooltip",children:[c&&(0,s.jsx)("div",{className:"bubble ".concat(r().bubble," ").concat(r()[o]),children:(0,s.jsx)("div",{className:r().message,children:n})}),(0,s.jsx)("span",{className:r().trigger,onMouseOver:()=>{l&&d(!0)},children:i})]})}},12899:e=>{e.exports={main:"PaymentSystemInfoFrame_main__amzMq"}},20599:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>X});var s=n(37876),a=n(14232),o=n(37004),r=n(18847),l=n.n(r),i=n(89099),
1c=n(29182),d=n(82761),m=n(37327),u=n(86420),_=n(15946),p=n(71374),T=n(22497),x=n(94937),h=n(61144),E=n(39806),A=n(40097),f=n(74359),v=n(42149),y=n(88314),C=n(74222),b=n(88524),g=n(11380),j=n(94574),R=n(28023);let w={paymentTerminal:e=>{let{userId:t,terminalCode:n}=e;return[x.es.PAYMENT_TERMINAL,"userId: ".concat(t),"terminalCode: ".concat(n)]}},F=e=>{let{paymentSystemName:t}=e,{createPaymentFlowErrorContext:n}=(0,g.p)(),s=(0,v._8)();return(0,A.n)({mutationFn:async e=>(0,j.ij)({body:e,requestContext:s}),onError:e=>{y.z(C.A.DEFAULT_ERROR),(0,R.z)({requestContext:s,data:{logType:x.$9.TYPE.CLIENT,category:x.wD.PAYMENT_SYSTEM_PAGE_ERROR.CATEGORY,reason:x.wD.PAYMENT_SYSTEM_PAGE_ERROR.REASON.TERMINAL_CREATE_CODE_ERROR,paymentSystem:t,...n(e)}})}})},L=e=>{var t;let{terminalCode:n,paymentSystemName:s,enabled:r=!0}=e,{handlePaymentSuccess:l}=(0,b.r)(),{createPaymentFlowErrorContext:i}=(0,g.p)(),c=(0,o.d4)(e=>e.user),d=(0,v._8)(),m=null==c||null==(t=c.profile)?void 0:t.id,u=w.paymentTerminal({userId:m,terminalCode:n}),_=(0,f.I)({queryKey:u,queryFn:async()=>{try{return await (0,j.Cx)({terminalCode:n,requestContext:d})}catch(e){throw await (0,R.z)({requestContext:d,data:{logType:x.$9.TYPE.CLIENT,category:x.wD.PAYMENT_SYSTEM_PAGE_ERROR.CATEGORY,reason:x.wD.PAYMENT_SYSTEM_PAGE_ERROR.REASON.FETCH_TERMINAL_CODE_DATA_ERROR,paymentSystem:s,...i(e)}}),e}},staleTime:x.Vv.TEN_MINUTES,gcTime:x.Vv.TEN_MINUTES,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,enabled:!!n&&(null==c?void 0:c.isAuthenticated)&&r});return(0,a.useEffect)(()=>{_.isSuccess&&l({withBalanceUpdate:!1})},[_.isSuccess]),_};var N=n(21540),O=n(5993),S=n(23031),I=n(49419),P=n(365),k=n(22777),M=n(94490),D=n(4941),z=n(43056),Y=n.n(z);let G=e=>{var t;let{purchaseParams:n,terminalData:o}=e,{redirectToUrl:r}=(0,d.A)(),{isWebView:l,callBackUrl:i}=(0,p.r)(),{isDesktopDevice:m,translations:u}=(0,a.useContext)(c.q),_=(null==n||null==(t=n.purchase_params)?void 0:t.call_back_url)||i;return(0,s.jsxs)("div",{className:Y().main,"data-component":"terminal-screen",children:[o&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(S.A,{logo:null==o?void 0:o.icon,slug:null==o?void 0:o.slug,title:u.CODE_FOR_TERMINAL(null==o?void 0:o.name)}),(0,s.jsx)(I.A,{tempCode:null==o?void 0:o.code})]}),(0,s.jsx)(P.A,{text:u.CODE_IS_VALID_TEXT}),(0,s.jsx)(k.A,{}),(0,s.jsx)(D.A,{}),(0,s.jsx)(M.A,{title:u.OK_THANKS,buttonClickHandler:()=>l&&null!==n&&null!==o&&_?window.location.href=_:r({path:x.W_.ACCOUNT_PAGE}),isFixedButton:!m})]})};var q=n(37514),H=n(74973),U=n(90798),W=n.n(U),B=n(21222);let V=l()(()=>Promise.all([n.e(2267),n.e(389),n.e(2920)]).then(n.bind(n,62920)),{loadableGenerated:{webpack:()=>[62920]},ssr:!1}),J=l()(()=>Promise.all([n.e(2267),n.e(389),n.e(5713)]).then(n.bind(n,55713)),{loadableGenerated:{webpack:()=>[55713]},ssr:!1}),X=()=>{var e;let t=(0,i.useRouter)(),{redirectToUrl:n}=(0,d.A)(),{redirectByPaymentSelectPage:r}=(0,m.q)(),{sendInternalAnalytics:l}=(0,_.A)(),{isWebView:A,callBackUrlAlternative:f}=(0,p.r)(),[v,y]=(0,a.useState)(!1),C=(0,o.d4)(e=>e.user),{toggleUserAuthModal:b}=(0,a.useContext)(h.U),{translations:g}=(0,a.useContext)(c.q),j=(0,T.n)(null==t?void 0:t.query),R=null==j?void 0:j.token,w=null==j?void 0:j.pageName,S=null==(e=B[w])?void 0:e.paymentSystemName,{data:I,isError:P}=(0,E.Y)({token:R}),{data:k,isPending:M,isSuccess:D,isError:z,error:Y,mutate:U}=F({paymentSystemName:S}),{data:X,isPending:Z,isLoading:$,isSuccess:K,isError:Q,error:ee}=L({paymentSystemName:S,terminalCode:Number(null==k?void 0:k.code),enabled:D});(0,u.D)({isReady:K&&D,isError:Q||z,error:ee||Y,paymentSystem:w});let et=()=>(y(e=>!e),A&&f)?window.location.href=f:n({path:x.W_.ACCOUNT_PAGE});return(0,a.useEffect)(()=>{if(C.status===x.o1&&!C.isAuthenticated)return b({isUserAuthRequired:!0,forceOpen:!0});C.isAuthenticated&&U({token:R}),C.status!==x.Qd||C.isAuthenticated||n({path:x.W_.HOME_PAGE})},[C.status]),(0,a.useEffect)(()=>{K&&l({eventParams:"payment_method:payment_method:payment:button:view",eventDetailsParams:{code:"saved",payment_method:(null==X?void 0:X.slug)||""}})},[K]),(0,s.jsxs)("div",{"data-component":"payment-terminal",children:[(0,s.jsx)("div",{className:W().main,children:(0,s.jsxs)("div",{className:"container",children:[(0,s.jsx)(N.A,{backButtonClickHandler:()=>{I&&r({purchaseParams:I,isWebView:A})},mobileTopBarTitle:null==X?void 0:X.name}),Z||$||M?(0,s.jsx)(H.A,{}):K&&D?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(G,{terminalData:X,purchaseParams:I||null}),(0,s.jsx)(q.A,{title:g.HOW_TO_TERMINAL_TEXT(S)})]}):null]})}),(P||Q)&&!v&&(0,s.jsx)(V,{onCloseRequest:et,children:(0,s.jsx)(J,{closeButton:et,children:(0,s.jsx)(O.A,{closeModalHandler:et})})})]})}},25241:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(37876),a=n(14467),o=n(46767);let r=e=>
1{let{color:t,customClass:n,size:r,isShowBackground:l,backgroundSize:i,onClick:c}=e,d=t||o.zw,m=r||"24",u="LFIconCopy ".concat(n," ").concat("size-".concat(m)," ").concat(d);return(0,s.jsx)(a.A,{size:m,customClass:u,onClick:c,color:o.zw,isShowBackground:l,backgroundSize:i,children:(0,s.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"transparent",children:[(0,s.jsx)("path",{d:"M9 3H19C20.1046 3 21 3.89543 21 5V18",stroke:d,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("rect",{x:"4",y:"7",width:"13",height:"15",rx:"2",stroke:d,strokeWidth:"2"})]})})}},43056:e=>{e.exports={main:"TerminalScreen_main__SkyiT"}},43357:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(37876),a=n(14467),o=n(46767);let r=e=>{let{color:t,customClass:n,size:r,onClick:l}=e,i=r||"48",c=t||o.ie,d="LFIconInfo ".concat(n," ").concat("size-".concat(i));return(0,s.jsx)(a.A,{size:i,customClass:d,onClick:l,children:(0,s.jsx)("svg",{viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 12C2.5 6.48 6.98 2 12.5 2C18.02 2 22.5 6.48 22.5 12C22.5 17.52 18.02 22 12.5 22C6.98 22 2.5 17.52 2.5 12ZM11.75 15.5C11.75 15.9142 12.0858 16.25 12.5 16.25C12.9142 16.25 13.25 15.9142 13.25 15.5V11C13.25 10.5858 12.9142 10.25 12.5 10.25C12.0858 10.25 11.75 10.5858 11.75 11V15.5ZM11.75 8.5C11.75 8.91421 12.0858 9.25 12.5 9.25C12.9142 9.25 13.25 8.91421 13.25 8.5C13.25 8.08579 12.9142 7.75 12.5 7.75C12.0858 7.75 11.75 8.08579 11.75 8.5Z",fill:c})})})}},49419:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var s=n(37876),a=n(14232),o=n(88314),r=n(29182),l=n(27142),i=n(12823),c=n(93577),d=n(25241),m=n(55393),u=n.n(m);let _=e=>{let{isShowButtonCopy:t=!1,tempCode:n}=e,{translations:m}=(0,a.useContext)(r.q);return(0,s.jsxs)("div",{className:u().main,"data-component":"payment-system-code",children:[(0,s.jsx)(l.A,{customClass:u().paymentSystemTempCode,size:"32",text:n,type:"h2",weight:"700"}),t&&(0,s.jsx)(i.A,{message:(0,s.jsx)(c.A,{size:"12",text:m.COPY}),position:"top",children:(0,s.jsx)(d.A,{size:"24",onClick:()=>{var e,t;null==(t=navigator)||null==(e=t.clipboard)||e.writeText(n),o.k({text:m.CODE_COPIED})}})})]})}},55393:e=>
1{e.exports={main:"PaymentSystemCode_main__dve6o",paymentSystemTempCode:"PaymentSystemCode_paymentSystemTempCode__iOnIo"}},75863:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var s=n(37876),a=n(8408),o=n.n(a);let r=e=>{let{customClassName:t="",backgroundColor:n="",icon:a,children:r}=e;return(0,s.jsxs)("span",{style:{backgroundColor:n},className:"LFInfoFrame ".concat(o().LFInfoFrame," ").concat(t),"data-component":"lf-info-frame",children:[a&&(0,s.jsx)("div",{className:o().iconWrap,children:a}),r]})}},76588:e=>{e.exports={LFTooltip:"LFTooltip_LFTooltip__6mO_J",trigger:"LFTooltip_trigger__8eaU4",bubble:"LFTooltip_bubble__HcPRT",message:"LFTooltip_message___i4X8",top:"LFTooltip_top__5ER0q","top-inverse":"LFTooltip_top-inverse__qBQva",bottom:"LFTooltip_bottom__vEdue","bottom-inverse":"LFTooltip_bottom-inverse__v59jw","bottom-center":"LFTooltip_bottom-center__qherl","bottom-left-25":"LFTooltip_bottom-left-25__Neyar",left:"LFTooltip_left__WVxL_",right:"LFTooltip_right__JgGHx"}},90798:e=>{e.exports={main:"PaymentTerminal_main__OeOIJ"}}}]); 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6250fc33-ac04-5777-b488-b9a2b83bea3c")}catch(e){}}(); 3//# debugId=6250fc33-ac04-5777-b488-b9a2b83bea3c
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.