1try{let 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]="f5acc74d-16d3-4651-beae-a4e4827c4a9c",e._sentryDebugIdIdentifier="sentry-dbid-f5acc74d-16d3-4651-beae-a4e4827c4a9c")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[377],{377:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>eR});var a=t(37876),s=t(14232),o=t(37004),r=t(18847),l=t.n(r),i=t(89099),u=t(94937),d=t(61144);let m=s.createContext({});var _=t(15946),E=t(21540),c=t(5993),p=t(29182),h=t(23031),N=t(89141),P=t(365),T=t(22777),S=t(4941),A=t(94490),v=t(28729),R=t(89391),y=t(93577),b=t(46767),C=t(20433),M=t.n(C);let O=()=>{let{translations:e}=(0,s.useContext)(p.q);return(0,a.jsxs)("div",{className:M().main,"data-component":"m-bank-auto-replenish-agreement",children:[(0,a.jsx)(R.A,{size:"12",backgroundColor:b.yG}),(0,a.jsx)(y.A,{size:"10",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,v.A)(e.MBANK_AUTO_REPLENISH_AGREEMENT_TEXT)}})})]})};var g=t(74359),k=t(40097),x=t(67768),L=t(42149),Y=t(48405),f=t(88314),B=t(74222),D=t(71374),I=t(88524),H=t(11380),j=t(94574),F=t(28023);let w={mbankPhoneNumbers:e=>{let{userId:n}=e;return[u.es.MBANK_PHONE_NUMBERS,"userId: ".concat(n)]}},G=()=>{var e;let{createPaymentFlowErrorContext:n}=(0,H.p)(),t=(0,o.d4)(e=>e.user),a=(0,L._8)(),s=null==t||null==(e=t.profile)?void 0:e.id,r=w.mbankPhoneNumbers({userId:s});return(0,g.I)({queryKey:r,queryFn:async()=>{try{return await (0,j.g8)({requestContext:a})}catch(e){throw f.z(B.A.DEFAULT_ERROR),await (0,F.z)({requestContext:a,data:{logType:u.$9.TYPE.CLIENT,category:u.wD.PAYMENT_SYSTEM_PAGE_ERROR.CATEGORY,reason:u.wD.PAYMENT_SYSTEM_PAGE_ERROR.REASON.MBANK_FETCH_NUMBERS_ERROR,paymentSystem:u.F_.PAYMENT_REPLENISH_METHOD_SLUG.MBANK,...n(e)}}),e}},staleTime:u.Vv.THIRTY_MINUTES,gcTime:u.Vv.THIRTY_MINUTES,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,enabled:!!(null==t?void 0:t.isAuthenticated),retry:!1})},U=e=>{let{setMbankErrorMessageData:n}=e,{createPaymentFlowErrorContext:t}=(0,H.p)(),a=(0,L._8)();return(0,k.n)({mutationFn:async e=>(0,j.wO)({body:e,requestContext:a}),onSuccess:e=>{!1===e.success&&e.message&&f.z(e.message)},onError:(e,s)=>{var o,r,l,i;return((0,F.z)({requestContext:a,data:{logType:u.$9.TYPE.CLIENT,category:u.wD.PAYMENT_SYSTEM_PAGE_ERROR.CATEGORY,reason:u.wD.PAYMENT_SYSTEM_PAGE_ERROR.REASON.MBANK_VERIFICATION_PHONE_ERROR,paymentSystem:u.F_.PAYMENT_REPLENISH_METHOD_SLUG.MBANK,token:(null==s?void 0:s.token)||"no token",phone:(null==s?void 0:s.phone)||"no mobile",...t(e)}}),null==(o=e.data)?void 0:o.message)?(0,Y.T)({message:null==(r=e.data)?void 0:r.message})?n({status:u.$g,error:null==(i=e.data)?void 0:i.message}):void f.z(null==(l=e.data)?void 0:l.message):(f.z(B.A.DEFAULT_ERROR),n({status:u.fF,error:""}))}})},K=()=>{var e;let{createPaymentFlowErrorContext:n}=(0,H.p)(),t=(0,x.jE)(),a=(0,o.d4)(e=>e.user),s=(0,L._8)(),r=null==a||null==(e=a.profile)?void 0:e.id;return(0,k.n)({mutationFn:async e=>{let{phoneNumberId:n}=e;return(0,j.s1)({phoneNumberId:n,requestContext:s})},onSuccess:()=>{t.invalidateQueries({queryKey:w.mbankPhoneNumbers({userId:r})}),f.k({text:B.A.PHONE_SUCCESSFULLY_DELETED})},onError:(e,t)=>{f.z(B.A.DEFAULT_ERROR),(0,F.z)({requestContext:s,data:{logType:u.$9.TYPE.CLIENT,category:u.wD.PAYMENT_SYSTEM_PAGE_ERROR.CATEGORY,reason:u.wD.PAYMENT_SYSTEM_PAGE_ERROR.REASON.MBANK_DELETE_PHONE_ERROR,paymentSystem:u.F_.PAYMENT_REPLENISH_METHOD_SLUG.MBANK,phoneNumberId:(null==t?void 0:t.phoneNumberId)||"no phoneNumberId",...n(e)}})}})},z=e=>{var n;let{setMbankErrorMessageData:t}=e,{handlePaymentSuccess:a}=(0,I.r)(),{createPaymentFlowErrorContext:s}=(0,H.p)(),r=(0,x.jE)(),{sendInternalAnalytics:l}=(0,_.A)(),i=(0,L._8)(),d=(0,o.d4)(e=>e.user),m=null==d||null==(n=d.profile)?void 0:n.id;return(0,k.n)({mutationFn:async e=>(0,j.QG)({body:e,requestContext:i}),onSuccess:(e,n)=>{if(e.success)return r.invalidateQueries({queryKey:w.mbankPhoneNumbers({userId:m})}),a({});f.z(e.message||B.A.DEFAULT_ERROR),t({status:u.fF,error:e.message});let o=r.getQueryData(w.mbankPhoneNumbers({userId:m}));
1l({eventParams:"sms_validation:payment_method:payment:otp_input_error:view",eventDetailsParams:{number:(null==o?void 0:o.length)?"saved":"manual",payment_method:u.F_.PAYMENT_REPLENISH_METHOD_SLUG.MBANK,error:e.message}}),(0,F.z)({requestContext:i,data:{logType:u.$9.TYPE.CLIENT,category:u.wD.PAYMENT_SYSTEM_PAGE_ERROR.CATEGORY,reason:u.wD.PAYMENT_SYSTEM_PAGE_ERROR.REASON.MBANK_CONFIRM_PAYMENT_NOT_SUCCESS,paymentSystem:u.F_.PAYMENT_REPLENISH_METHOD_SLUG.MBANK,phone:(null==n?void 0:n.phone)||"no phone data",otp_code:(null==n?void 0:n.otp_code)||"no code data",purchase_id:(null==n?void 0:n.purchase_id)||"no purchase id",responseMessage:null==e?void 0:e.message,...s()}})},onError:(e,n)=>{var a,o,d;let _=(null==e||null==(a=e.data)?void 0:a.message)||(null==e||null==(d=e.data)||null==(o=d.data)?void 0:o.message),E=r.getQueryData(w.mbankPhoneNumbers({userId:m}));return(l({eventParams:"sms_validation:payment_method:payment:otp_input_error:view",eventDetailsParams:{number:(null==E?void 0:E.length)?"saved":"manual",payment_method:u.F_.PAYMENT_REPLENISH_METHOD_SLUG.MBANK,error:_}}),(0,F.z)({requestContext:i,data:{logType:u.$9.TYPE.CLIENT,category:u.wD.PAYMENT_SYSTEM_PAGE_ERROR.CATEGORY,reason:u.wD.PAYMENT_SYSTEM_PAGE_ERROR.REASON.MBANK_CONFIRM_PAYMENT_ERROR,paymentSystem:u.F_.PAYMENT_REPLENISH_METHOD_SLUG.MBANK,phone:(null==n?void 0:n.phone)||"no phone data",otp_code:(null==n?void 0:n.otp_code)||"no code data",purchase_id:(null==n?void 0:n.purchase_id)||"no purchase id",...s(e)}}),_)?(0,Y.T)({message:_})?t({status:u.$g,error:_}):void f.z(_):(f.z(B.A.DEFAULT_ERROR),t({status:u.fF}))}})},q=()=>{let{createPaymentFlowErrorContext:e}=(0,H.p)(),{isWebView:n,callBackUrlAlternative:t}=(0,D.r)(),a=(0,L._8)(),{mbankVerificationPhone:o}=(0,s.useContext)(m);return(0,k.n)({mutationFn:async e=>{let{purchasePrototypeParams:n}=e;return(0,j.Xk)({purchasePrototypeParams:n,requestContext:a})},onSuccess:(e,n)=>{o({token:e.token,phone:n.phone})},onError:(s,o)=>{(0,F.z)({requestContext:a,data:{logType:u.$9.TYPE.CLIENT,category:u.wD.PAYMENT_SYSTEM_PAGE_ERROR.CATEGORY,reason:u.wD.PAYMENT_SYSTEM_PAGE_ERROR.REASON.MBANK_RESEND_SMS_ERROR,paymentSystem:u.F_.PAYMENT_REPLENISH_METHOD_SLUG.MBANK,purchasePrototypeParams:o.purchasePrototypeParams,phone:o.phone,...e(s)}}),f.z(B.A.DEFAULT_ERROR),n&&t&&(window.location.href=t)}})};var W=t(77043),Q=t(32817),$=t(73646),V=t(30461),X=t.n(V);let J=l()(()=>Promise.all([t.e(5846),t.e(4629)]).then(t.bind(t,74629)),{loadableGenerated:{webpack:()=>[74629]},ssr:!1}),Z=e=>{let{currentPhoneNumber:n,addPhoneNumberClickHandler:t,handleChangePhoneNumberWithList:o}=e,{data:r}=G(),{mutate:l,isPending:i}
1=K(),[u,d]=(0,s.useState)(!1),[m,_]=(0,s.useState)(null),{isDesktopDevice:E,translations:c}=(0,s.useContext)(p.q),h=e=>{let{elementId:n}=e;d(!0),_(n)},N=e=>{let{listItem:n}=e;o(n)};return(0,a.jsxs)("div",{className:X().main,"data-component":"m-bank-phone-numbers-list",children:[r&&(null==r?void 0:r.length)>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(W.A,{size:"16",text:c.SELECT_PHONE_NUMBER,customClass:X().paymentSystemMbankSelectPhoneNumber}),(0,a.jsx)("ul",{children:r.map(e=>(0,a.jsx)(Q.A,{item:e,itemValue:e.phone,selectedItemId:(null==n?void 0:n.id)||n,isLoading:i,onChangePaymentSystemListItem:N,actionButtonClickHandler:h},e.id))}),(0,a.jsx)($.A,{title:c.ADD_NEW_PHONE,buttonClickHandler:t})]}),u&&(0,a.jsx)(J,{cancelText:c.CANCEL,confirmText:c.DELETE_PHONE,descriptionText:c.THIS_ACTION_CANNOT_BE_UNDONE,isDesktopDevice:E,yesText:c.DELETE,onCloseRequest:e=>{d(!1),_(null),e&&m&&l({phoneNumberId:m})}})]})};var ee=function(e){return e[e.SinglePhoneNumber=0]="SinglePhoneNumber",e[e.PhoneNumbersList=1]="PhoneNumbersList",e[e.SmsCode=2]="SmsCode",e}({});let en=e=>{let{currentPhoneNumber:n,inputPhoneError:t,showScreen:r,paymentSystemPurchaseParams:l,addPhoneNumberClickHandler:i,buttonContinueClickHandler:u,handleChangePhoneNumberWithList:d,handleChangeSinglePhoneNumber:_}=e,E=(0,o.d4)(e=>e.currentCountry),{isDesktopDevice:c,translations:v}=(0,s.useContext)(p.q),{mbankErrorMessageData:R,isMbankVerificationPhonePending:y}=(0,s.useContext)(m),b=null==E?void 0:E.phone_example,C=null==l?void 0:l.purchase_params;return(0,a.jsxs)("div",{"data-component":"m-bank-screen",children:[(0,a.jsxs)("div",{className:"payment-system-container",children:[(0,a.jsx)(h.A,{logo:"/images/payment-systems/mbank/IconMBank.svg",slug:"MBank",title:v.TOP_UP_BY("MBank")}),ee.PhoneNumbersList===r?(0,a.jsx)(Z,{currentPhoneNumber:n,handleChangePhoneNumberWithList:d,addPhoneNumberClickHandler:i}):(0,a.jsx)(N.A,{currentPhoneNumber:n,hintText:"".concat(v.PHONE_IN_FORMAT," ").concat(b),inputPhoneError:t||(null==R?void 0:R.error)||"",titleText:v.ENTER_YOUR_PHONE_ACCOUNT_TEXT("MBank"),validateErrorText:v.ENTER_CORRECT_PAYMENT_SYSTEM_ACCOUNT_TEXT("MBank"),handleChangePhoneNumber:_}),(0,a.jsx)(P.A,{text:v.CHECK_YOUR_MBANK_APP_TEXT}),(0,a.jsx)(T.A,{}),c&&(0,a.jsx)(S.A,{}),c&&!!(null==C?void 0:C.auto_replenish)&&(0,a.jsx)(O,{})]}),(0,a.jsx)(A.A,{title:v.CONTINUE,buttonClickHandler:u,isFixedButton:!c,isLoading:y,...!c&&!!(null==C?void 0:C.auto_replenish)&&{agreementComponent:(0,a.jsx)(O,{})}})]})};var et=t(39806),ea=t(51953),es=t(61934),eo=t(22497),er=t(24314),el=t(20381),ei=t(32131),eu=t(67701),ed=t.n(eu);let em=e=>{let{currentPhoneNumber:n}=e,{sendInternalAnalytics:t}=(0,_.A)(),{createPaymentFlowErrorContext:o}=(0,H.p)(),r=(0,L._8)(),l=(0,i.useRouter)(),d=(0,eo.n)(null==l?void 0:l.query),E=null==d?void 0:d.token,{mutate:c}=q(),{data:N}=G(),{data:T}=(0,et.Y)({token:E}),[R,y]=(0,s.useState)(""),[b,C]=(0,s.useState)(""),[M,O]=(0,s.useState)(300),[g,k]=(0,s.useState)(!1),[x,Y]=(0,s.useState)(!1),{isDesktopDevice:D,translations:I}=(0,s.useContext)(p.q),{isMbankVerificationPhoneIdle:j,isMbankVerificationPhonePending:w,mbankVerificationPhoneData:U,mbankErrorMessageData:K,isMbankConfirmPaymentPending:z,mbankConfirmPayment:W}=(0,s.useContext)(m),Q=(0,ea.Lh)({time:M}),$=Q?ed().mbankAvailableSmsCode:"",V={number:(null==N?void 0:N.length)?"saved":"manual",payment_method:u.F_.PAYMENT_REPLENISH_METHOD_SLUG.MBANK},X=async()=>{if(null!==n&&(!b||4===R.length)){t({eventParams:"sms_validation:payment_method:payment:button:tap",eventDetailsParams:V});let e=await (0,es.A)(),a=null==U?void 0:U.purchase_id;if(a)return void W({phone:(null==n?void 0:n.value)||(null==n?void 0:n.phone),otp_code:R,device_id:e,purchase_id:a,...null==T?void 0:T.purchase_params});f.z(B.A.DEFAULT_ERROR),(0,F.z)({requestContext:r,data:{logType:u.$9.TYPE.CLIENT,category:u.wD.PAYMENT_SYSTEM_PAGE_ERROR.CATEGORY,reason:u.wD.PAYMENT_SYSTEM_PAGE_ERROR.REASON.MBANK_CONFIRM_PAYMENT_MISSING_PURCHASE_ID,paymentSystem:u.F_.PAYMENT_REPLENISH_METHOD_SLUG.MBANK,phone:(null==n?void 0:n.value)||(null==n?void 0:n.phone)||"no phone data",otp_code:R||"no code data",token:E||"no token",...o()}})}};return(0,s.useEffect)(()=>
1{t({eventParams:"sms_validation:payment_method:payment:button:view",eventDetailsParams:V})},[]),(0,s.useEffect)(()=>{C((null==K?void 0:K.error)||"")},[null==K?void 0:K.status]),(0,s.useEffect)(()=>{1!==R.length||g||(t({eventParams:"sms_validation:payment_method:payment:otp_input:tap",eventDetailsParams:V}),k(!0))},[R.length,g]),(0,s.useEffect)(()=>{4!==R.length||x||(t({eventParams:"sms_validation:payment_method:payment:otp_input:fill",eventDetailsParams:V}),Y(!0))},[R.length,x]),(0,a.jsxs)("div",{className:"".concat(ed().main," payment-system-container"),"data-component":"m-bank-confirm-by-sms-code",children:[(0,a.jsx)(h.A,{logo:"/images/payment-systems/mbank/IconMBank.svg",slug:"mBank",title:I.CONFIRMATION_CODE_HAS_BEEN_SENT_TO_YOUR_MBANK_APP,children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,v.A)(I.SMS_CODE_WAS_SENT_TO((null==n?void 0:n.value)||(null==n?void 0:n.phone)))}})}),(0,a.jsx)("div",{className:ed().codeWrapper,children:(0,a.jsx)(er.A,{isAutoFocus:!0,fields:4,error:b,onChange:e=>{let{value:n,error:t}=e;y(n),C(t||"")},required:{isRequired:!0,emptyErrorText:I.CANNOT_BE_BLANK,validateErrorText:I.ENTER_THE_CONFIRMATION_CODE}})}),(0,a.jsx)("div",{className:ed().infoWrapper,children:(0,a.jsx)(P.A,{text:I.PAYMENTS_MBANK_CODE_INFO_BANNER})}),D&&(0,a.jsx)(S.A,{}),(0,a.jsx)(A.A,{title:I.CONFIRM,buttonClickHandler:X,isLoading:z,type:"payment-system-action-button-equal-indent",isDisabled:4!==R.length||w,customClassName:ed().confirmButton}),j||w?(0,a.jsx)("div",{children:(0,a.jsx)(el.A,{size:"24"})}):(0,a.jsxs)(ei.A,{customClass:"".concat(ed().mbankResendSmsCodeButton," ").concat($),onClick:()=>{T&&n&&(t({eventParams:"payment:sms_validation:payment_method:resend_button:tap",eventDetailsParams:V}),c({phone:n.phone||n.value,purchasePrototypeParams:null==T?void 0:T.purchase_params}),O(e=>e>=300?e-1:e+1))},size:"small",type:"text",disabled:!!Q,children:[I.RESEND_CODE,Q&&(0,a.jsx)("span",{className:ed().mbankSmsTime,children:Q})]})]})},e_=e=>{let{currentPhoneNumber:n,inputPhoneError:t,showScreen:s,paymentSystemPurchaseParams:o,addPhoneNumberClickHandler:r,buttonContinueClickHandler:l,handleChangePhoneNumberWithList:i,handleChangeSinglePhoneNumber:u}=e;switch(s){case ee.SinglePhoneNumber:case ee.PhoneNumbersList:return(0,a.jsx)(en,{currentPhoneNumber:n,inputPhoneError:t,showScreen:s,paymentSystemPurchaseParams:o,buttonContinueClickHandler:l,handleChangeSinglePhoneNumber:u,addPhoneNumberClickHandler:r,handleChangePhoneNumberWithList:i});case ee.SmsCode:return(0,a.jsx)(em,{currentPhoneNumber:n});default:return null}};var eE=t(74973),ec=t(37327),ep=t(86420),eh=t(82761);let eN=l()(()=>Promise.all([t.e(2267),t.e(389),t.e(2920)]).then(t.bind(t,62920)),{loadableGenerated:{webpack:()=>[62920]},ssr:!1}),eP=l()(()=>Promise.all([t.e(2267),t.e(389),t.e(5713)]).then(t.bind(t,55713)),{loadableGenerated:{webpack:()=>[55713]},ssr:!1}),eT=l()(()=>Promise.all([t.e(2267),t.e(389),t.e(9383)]).then(t.bind(t,41764)),{loadableGenerated:{webpack:()=>[41764]},ssr:!1}),eS=l()(()=>Promise.all([t.e(943),t.e(2111)]).then(t.bind(t,2111)),{loadableGenerated:{webpack:()=>[2111]},ssr:!1}),eA=l()(()=>Promise.all([t.e(2775),t.e(9688)]).then(t.bind(t,67307)),{loadableGenerated:{webpack:()=>[67307]},ssr:!1}),ev=l()(()=>Promise.all([t.e(7503),t.e(7136)]).then(t.bind(t,4755)),{loadableGenerated:{webpack:()=>[4755]},ssr:!1}),eR=()=>{var e,n;let t=(0,i.useRouter)(),{sendInternalAnalytics:r}=(0,_.A)(),{redirectByPaymentSelectPage:l}=(0,ec.q)(),{redirectToUrl:h}=(0,eh.A)(),{isWebView:N,callBackUrl:P,callBackUrlAlternative:T}=(0,D.r)(),S=(0,o.d4)(e=>e.user),[A,v]=(0,s.useState)(null),[R,y]=(0,s.useState)(null),[b,C]=(0,s.useState)(!1),[M,O]=(0,s.useState)(!1),[g,k]=(0,s.useState)(null),[x,L]=(0,s.useState)(null),[Y,f]=(0,s.useState)(""),[B,I]=(0,s.useState)({status:"NOT_SET",error:""}),{toggleUserAuthModal:H,modalDataByPurchaseType:j}=(0,s.useContext)(d.U),{translations:F}=(0,s.useContext)(p.q),w=(0,eo.n)(null==t?void 0:t.query),K=null==w?void 0:w.token,{data:q,isError:W}=(0,et.Y)({token:K}),{data:Q,isPending:$,isLoading:V,isSuccess:X,isError:J,error:Z}=G(),{data:en,isIdle:ea,isPending:es,mutate:er}=U({setMbankErrorMessageData:I}),{mutate:el,data:ei,isPending:eu,isSuccess:ed,isError:em,status:eR}=z({setMbankErrorMessageData:I});(0,ep.D)({isReady:X,isError:J,error:Z,paymentSystem:u.F_.PAYMENT_REPLENISH_METHOD_SLUG.MBANK});let ey=null==q||null==(n=q.purchase_params)||null==(e=n.type_id)?void 0:e.toString(),eb=(null==q?void 0:q.back_url)||P,eC=()=>(O(e=>!e),y(null),N&&T)?window.location.href=T:h({path:u.W_.ACCOUNT_PAGE}),eM=()=>{y(null),N&&eb?window.location.href=eb:h({path:u.W_.ACCOUNT_PAGE})},eO=()=>{if(q)return l({purchaseParams:q,isWebView:N});C(!1),y(ee.SinglePhoneNumber),k({value:"",error:""})};return(0,s.useEffect)(()=>
1{if(Q){let e=(null==Q?void 0:Q.length)?ee.PhoneNumbersList:ee.SinglePhoneNumber;(null==Q?void 0:Q.length)?(k(Q[0]),L(Q[0])):k(null),v(e),y(e),A||r({eventParams:"payment_method:payment_method:payment:button:view",eventDetailsParams:{number:(null==Q?void 0:Q.length)?"saved":"manual",payment_method:"mbank"}})}},[null==Q?void 0:Q.length]),(0,s.useEffect)(()=>{(null==en?void 0:en.success)&&y(ee.SmsCode)},[null==en?void 0:en.success]),(0,s.useEffect)(()=>{C(!0)},[eR]),(0,s.useEffect)(()=>{if(S.status===u.o1&&!S.isAuthenticated)return H({isUserAuthRequired:!0,forceOpen:!0});S.status!==u.Qd||S.isAuthenticated||h({path:u.W_.HOME_PAGE})},[S.status]),(0,s.useEffect)(()=>()=>{C(!1),y(ee.SinglePhoneNumber),k({value:"",error:""})},[]),(0,a.jsx)(m.Provider,{value:{isMbankVerificationPhoneIdle:ea,isMbankVerificationPhonePending:es,mbankVerificationPhoneData:en,mbankErrorMessageData:B,isMbankConfirmPaymentPending:eu,setMbankErrorMessageData:I,mbankConfirmPayment:el,mbankVerificationPhone:er},children:(0,a.jsxs)("div",{className:"container","data-component":"m-bank",children:[(0,a.jsx)(E.A,{isBackTitle:A!==R,mobileTopBarTitle:"MBank",backButtonClickHandler:()=>(k(x||g),I({status:u.gK,error:""}),R===ee.SmsCode)?y(A):R===ee.SinglePhoneNumber&&Q&&(null==Q?void 0:Q.length)>0?y(ee.PhoneNumbersList):void(q&&(r({eventParams:"payment_method:payment_method:payment:back_button:tap",eventDetailsParams:"payment_method:mbank"}),l({purchaseParams:q,isWebView:N})))}),$||V?(0,a.jsx)(eE.A,{}):X?(0,a.jsx)(e_,{currentPhoneNumber:g,inputPhoneError:Y,showScreen:R,paymentSystemPurchaseParams:q,buttonContinueClickHandler:()=>(null==g?void 0:g.error)?f(null==g?void 0:g.error):(null==g?void 0:g.value)===""||null===g?f(F.CANNOT_BE_BLANK):void(g&&(null==q?void 0:q.purchase_params)&&(r({eventParams:"payment_method:payment_method:payment:button:tap",eventDetailsParams:{number:(null==Q?void 0:Q.length)?"saved":"manual",payment_method:u.F_.PAYMENT_REPLENISH_METHOD_SLUG.MBANK}}),er({token:K,phone:g.phone||g.value}))),handleChangeSinglePhoneNumber:e=>{k(e)},addPhoneNumberClickHandler:()=>{r({eventParams:"payment_method:payment_method:payment:add_new_button:tap",eventDetailsParams:{number:"manual",payment_method:u.F_.PAYMENT_REPLENISH_METHOD_SLUG.MBANK}}),y(ee.SinglePhoneNumber),L(g),k({value:"",error:""})},handleChangePhoneNumberWithList:e=>{k(e),L(e)}}):null,b&&ed&&(null==ei?void 0:ei.success)&&(ey===u.F_.PURCHASE_TYPE_ID.TYPE_PACKAGE||ey===u.F_.PURCHASE_TYPE_ID.TYPE_PURCHASE_LEVEL||ey===u.F_.PURCHASE_TYPE_ID.TYPE_BUY_LEVEL)&&(0,a.jsx)(eT,{closeHandler:eM,children:(0,a.jsx)(eS,{customTitle:null==j?void 0:j.modalSuccessTitleText,customDescription:null==j?void 0:j.modalSuccessDescriptionText,primaryButtonClickHandler:eM})}),b&&ed&&(null==ei?void 0:ei.success)&&ey===u.F_.PURCHASE_TYPE_ID.TYPE_WALLET&&(0,a.jsx)(eT,{closeHandler:eM,children:(0,a.jsx)(eA,{primaryButtonClickHandler:eM})}),b&&(em||(null==ei?void 0:ei.success)===!1)&&(null==B?void 0:B.status)!==u.fF&&(0,a.jsx)(eT,{closeHandler:eO,children:(0,a.jsx)(ev,{primaryButtonClickHandler:eO})}),(J||W)&&!M&&(0,a.jsx)(eN,{onCloseRequest:eC,children:(0,a.jsx)(eP,{closeButton:eC,children:(0,a.jsx)(c.A,{closeModalHandler:eC})})})]})})}},20433:e=>{e.exports={main:"MBankAutoReplenishAgreement_main__X2JoL"}},30461:e=>{e.exports={paymentSystemMbankSelectPhoneNumber:"MBankPhoneNumbersList_paymentSystemMbankSelectPhoneNumber__Us31Z",main:"MBankPhoneNumbersList_main__4YkDb"}},67701:e=>{e.exports={wrapper:"LFInputCode_wrapper__A59bR",fields:"LFInputCode_fields__Y4Tom",field:"LFInputCode_field__21_10",paymentSystemInfoFrame:"PaymentSystemInfoFrame_main__amzMq",main:"MBankConfirmBySmsCode_main__nHdSx",mbankResendSmsCodeButton:"MBankConfirmBySmsCode_mbankResendSmsCodeButton__3xzQa",mbankAvailableSmsCode:"MBankConfirmBySmsCode_mbankAvailableSmsCode__Sv5en",mbankSmsTime:"MBankConfirmBySmsCode_mbankSmsTime__QMxkV",infoWrapper:"MBankConfirmBySmsCode_infoWrapper__Mxz4_",codeWrapper:"MBankConfirmBySmsCode_codeWrapper__LQswg",confirmButton:"MBankConfirmBySmsCode_confirmButton__6S2TA"}}}]); 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;
2n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="480a86bd-4bfc-582e-8ac0-fcc761c4fe71")}catch(e){}}(); 3//# debugId=480a86bd-4bfc-582e-8ac0-fcc761c4fe71
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.