1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="a5a04292-0214-43c6-8c65-4b8bf5680f73",e._sentryDebugIdIdentifier="sentry-dbid-a5a04292-0214-43c6-8c65-4b8bf5680f73")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3337],{5649:(e,l,t)=>{"use strict";t.d(l,{A:()=>i});var n=t(37876),s=t(14467),a=t(46767);let i=e=>{let{color:l,customClass:t,size:i,onClick:o}=e,r=l||a.zw,c=i||"24",u=t?"LFIconSetting ".concat(t," ").concat("size-".concat(c)," ").concat(r):"LFIconCross";return(0,n.jsx)(s.A,{size:c,customClass:u,onClick:o,children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4611 21.0649L10.9543 21.493C10.0216 22.2809 8.65126 22.1334 7.89352 21.1636C7.69976 20.9156 7.55872 20.6278 7.47967 20.3191L7.31168 19.663C7.2076 19.2565 6.84367 18.9816 6.43971 19.0043L5.7877 19.0409C4.58775 19.1083 3.56246 18.1514 3.49765 16.9038C3.48108 16.5847 3.52968 16.2657 3.64026 15.9676L3.87523 15.3341C4.02081 14.9416 3.88181 14.4968 3.54217 14.2683L2.99398 13.8994C1.98511 13.2206 1.69652 11.8198 2.3494 10.7708C2.51634 10.5026 2.73602 10.2742 2.99398 10.1006L3.54217 9.73173C3.88181 9.50319 4.02081 9.05835 3.87523 8.66588L3.64026 8.03243C3.20781 6.86663 3.76615 5.55705 4.88734 5.1074C5.17403 4.99243 5.48088 4.94189 5.7877 4.95912L6.43971 4.99574C6.84367 5.01843 7.2076 4.7435 7.31168 4.33701L7.47967 3.68093C7.78883 2.47348 8.98084 1.75525 10.1421 2.07672C10.439 2.15891 10.7158 2.30557 10.9543 2.50703L11.4611 2.93514C11.7751 3.20039 12.2249 3.20039 12.5389 2.93514L13.0457 2.50703C13.9784 1.71914 15.3487 1.8666 16.1065 2.83639C16.3002 3.08436 16.4413 3.37219 16.5203 3.68093L16.6883 4.33701C16.7924 4.7435 17.1563 5.01843 17.5603 4.99574L18.2123 4.95912C19.4122 4.89173 20.4375 5.84856 20.5023 7.09625C20.5189 7.41528 20.4703 7.73434 20.3597 8.03243L20.1248 8.66588C19.9792 9.05835 20.1182 9.50319 20.4578 9.73173L21.006 10.1006C22.0149 10.7794 22.3035 12.1802 21.6506 13.2292C21.4837 13.4974 21.264 13.7258 21.006 13.8994L20.4578 14.2683C20.1182 14.4968 19.9792 14.9416 20.1248 15.3341L20.3597 15.9676C20.7922 17.1334 20.2338 18.4429 19.1127 18.8926C18.826 19.0076 18.5191 19.0581 18.2123 19.0409L17.5603 19.0043C17.1563 18.9816 16.7924 19.2565 16.6883 19.663L16.5203 20.3191C16.2112 21.5265 15.0192 22.2448 13.8579 21.9233C13.561 21.8411 13.2842 21.6944 13.0457 21.493L12.5389 21.0649C12.2249 20.7996 11.7751 20.7996 11.4611 21.0649ZM10.3833 19.6854C11.3252 18.8897 12.6748 18.8897 13.6167 19.6854L14.1235 20.1135C14.1746 20.1567 14.234 20.1882 14.2977 20.2058C14.5467 20.2747 14.8023 20.1207 14.8686 19.8618L15.0366 19.2057C15.3488 17.9863 16.4406 17.1615 17.6525 17.2295L18.3045 17.2662C18.3703 17.2699 18.4361 17.259 18.4976 17.2344C18.738 17.138 18.8577 16.8571 18.765 16.6071L18.53 15.9737C18.0932 14.7963 18.5103 13.4618 19.5292 12.7762L20.0774 12.4073C20.1327 12.3701 20.1798 12.3211 20.2156 12.2636C20.3556 12.0386 20.2937 11.7383 20.0774 11.5927L19.5292 11.2238C18.5103 10.5382 18.0932 9.20371 18.53 8.0263L18.765 7.39285C18.7887 7.32893 18.7991 7.26051 18.7955 7.1921C18.7816 6.92456 18.5618 6.71938 18.3045 6.73383L17.6525 6.77045C16.4406 6.83851 15.3488 6.01373 15.0366 4.79426L14.8686 4.13818C14.8516 4.07198 14.8214 4.01026 14.7798 3.95709C14.6174 3.74913 14.3235 3.71751 14.1235 3.88646L13.6167 4.31457C12.6748 5.11031 11.3252 5.11031 10.3833 4.31457L9.8765 3.88646C9.82536 3.84326 9.766 3.81181 9.70233 3.79419C9.45332 3.72525 9.19771 3.87927 9.13142 4.13818L8.96343 4.79426C8.65119 6.01373 7.55942 6.83851 6.34752 6.77045L5.69552 6.73383C5.62972 6.73014 5.56392 6.74098 5.50245 6.76563C5.26203 6.86205 5.1423 7.14287 5.23503 7.39285L5.47001 8.0263C5.90675 9.20371 5.48973 10.5382 4.47082 11.2238L3.92263 11.5927C3.86732 11.6299 3.82021 11.6789 3.78441 11.7364C3.64442 11.9614 3.7063 12.2617 3.92263 12.4073L4.47082 12.7762C5.48973 13.4618 5.90675 14.7963 5.47001 15.9737L5.23503 16.6071C5.21132 16.6711 5.2009 16.7395 5.20445 16.8079C5.21835 17.0754 5.43821 17.2806 5.69552 17.2662L6.34752 17.2295C7.55942 17.1615 8.65119 17.9863 8.96343 19.2057L9.13142 19.8618C9.14837 19.928 9.17862 19.9897 9.22016 20.0429C9.38265 20.2509 9.6765 20.2825 9.8765 20.1135L10.3833 19.6854ZM13.9186 12C13.9186 13.1904 13.005 14.0546 12 14.0546C10.995 14.0546 10.0814 13.1904 10.0814 12C10.0814 10.8096 10.995 9.94542 12 9.94542C13.005 9.94542 13.9186 10.8096 13.9186 12ZM15.4186 12C15.4186 13.9632 13.888 15.5546 12 15.5546C10.112 15.5546 8.58142 13.9632 8.58142 12C8.58142 10.0369 10.112 8.44542 12 8.44542C13.888 8.44542 15.4186 10.0369 15.4186 12Z",fill:r})})})}},6897:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lang]/account/wallet-replenishment",function(){return t(43907)}])},9226:e=>{e.exports={LFIconHistoryPayment:"LFIconHistoryPayment_LFIconHistoryPayment___zys3"}},12336:(e,l,t)=>{"use strict";t.d(l,{A:()=>i});var n=t(37876),s=t(14467),a=t(46767);let i=e=>{let{color:l,customClass:t="",size:i,onClick:o}=e,r=l||a.zw,c=i||"24",u=t?"LFIconWallet ".concat(t," ").concat("size-".concat(c)):"LFIconWallet";return(0,n.jsx)(s.A,{size:c,customClass:u,onClick:o,children:(0,n.jsx)("svg",{viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("g",{id:"Container=off, Configuration=Outlined",children:(0,n.jsxs)("g",{id:"Vector",children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 23.9639C6 21.0893 8.33591 18.759 11.2174 18.759H60.7826C63.6641 18.759 66 21.0893 66 23.9639V29.1687C66 32.0432 63.6641 34.3735 60.7826 34.3735V57.7952C60.7826 60.6697 58.4467 63 55.5652 63H16.4348C13.5533 63 11.2174 60.6697 11.2174 57.7952L11.2174 34.3735C8.3359 34.3735 6 32.0432 6 29.1687V23.9639ZM11.2174 22.6627H60.7826C61.503 22.6627 62.087 23.2452 62.087 23.9639V29.1687C62.087 29.8873 61.503 30.4699 60.7826 30.4699H11.2174C10.497 30.4699 9.91304 29.8873 9.91304 29.1687V23.9639C9.91304 23.2452 10.497 22.6627 11.2174 22.6627ZM15.1304 35.6747H56.8696V57.7952C56.8696 58.5138 56.2856 59.0964 55.5652 59.0964H16.4348C15.7144 59.0964 15.1304 58.5138 15.1304 57.7952V35.6747Z",fill:r}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.2746 18.759H28.8153C28.9299 18.4054 29.0741 18.0598 29.2454 17.7264C28.716 17.1365 28.0872 16.5406 27.3879 15.9738C25.3916 14.3557 23.163 13.242 21.4445 12.9688C21.2695 13.3922 21.079 14.0004 20.8983 14.7639C20.6135 15.9674 20.3913 17.391 20.2746 18.759ZM31.9132 14.8524C31.2871 14.1831 30.5906 13.54 29.8554 12.9441C27.2749 10.8525 23.7827 9 20.6733 9C19.7214 9 19.0831 9.55 18.7726 9.88921C18.4378 10.2549 18.1922 10.6868 18.0098 11.0687C17.6377 11.8479 17.3328 12.841 17.09 13.867C16.5999 15.9376 16.2743 18.5269 16.2711 20.708L16.2682 22.6627H54.4272L54.4243 20.708C54.4211 18.5269 54.0955 15.9376 53.6055 13.867C53.3627 12.841 53.0578 11.8479 52.6856 11.0687C52.5032 10.6868 52.2576 10.2549 51.9229 9.88921C51.6124 9.55 50.9741 9 50.0222 9C46.9128 9 43.4206 10.8525 40.84 12.9441C40.1174 13.5298 39.4322 14.1611 38.8145 14.818C37.7984 14.2214 36.614 13.8791 35.3482 13.8791C34.087 13.8791 32.9166 14.2424 31.9132 14.8524ZM34.4868 18.7586C34.4002 18.5216 34.301 18.2881 34.1917 18.0593C34.5511 17.8841 34.9437 17.7827 35.3482 17.7827C35.7646 17.7827 36.1609 17.8694 36.5199 18.0257C36.4042 18.2653 36.2994 18.51 36.2086 18.7586H34.4868ZM41.9111 18.759H50.4208C50.3041 17.391 50.0819 15.9674 49.7971 14.7639C49.6164 14.0004 49.4259 13.3922 49.2509 12.9688C47.5324 13.242 45.3038 14.3557 43.3076 15.9738C42.6247 16.5272 42.0091 17.1085 41.4876 17.6847C41.6577 18.0276 41.7998 18.3867 41.9111 18.759Z",fill:r})]})})})})}},26090:e=>{e.exports={walletMenu:"WalletMenu_walletMenu__U0vVR"}},26277:e=>{e.exports={iconIndicatorContainer:"IconIndicator_iconIndicatorContainer__dsnNW",showIndicator:"IconIndicator_showIndicator__e1XCi"}},39741:(e,l,t)=>{"use strict";t.d(l,{A:()=>i});var n=t(18153),s=t(26277),a=t.n(s);let i=e=>{let{children:l,isShowIndicator:t,iconClickHandler:s}
1=e,i=t?a().showIndicator:"";return(0,n.Y)("div",{onClick:s,className:"".concat(a().iconIndicatorContainer," ").concat(i),children:l})}},40228:e=>{e.exports={replenishmentList:"ReplenishmentList_replenishmentList__HCLdi",walletReplenishmentDiscountTextContainer:"ReplenishmentList_walletReplenishmentDiscountTextContainer___jG1H",walletReplenishmentDiscountText:"ReplenishmentList_walletReplenishmentDiscountText___0Xo9",footerReplenishWrap:"ReplenishmentList_footerReplenishWrap__AkJM2",experimentToggleBlock:"ReplenishmentList_experimentToggleBlock__gHJ4q",btnReplenishWrap:"ReplenishmentList_btnReplenishWrap__fwteZ",replenishButton:"ReplenishmentList_replenishButton__Lv_rv"}},43907:(e,l,t)=>{"use strict";t.r(l),t.d(l,{__N_SSP:()=>eI,default:()=>eS});var n=t(37876),s=t(70889),a=t(14232),i=t(18847),o=t.n(i),r=t(37004),c=t(10392),u=t(29182),d=t(38248),_=t(15946),C=t(94937),p=t(48850),h=t(89099),v=t(94513),E=t(93129);let L=a.useLayoutEffect,w=()=>{let e=(0,h.useRouter)(),{isSuccess:l}=(0,E.$)(),[t,n]=(0,a.useState)(null);L(()=>{(0,v.hu)();let e=(0,v.Lh)();n(null!=e?e:Date.now())},[e.asPath]),(0,a.useEffect)(()=>{if(null===t||!l)return;let e=Date.now()-t;Number.isFinite(e)&&!(e<0)&&(0,v.Iq)({loadingDuration:String(e)})},[t,l]),(0,a.useEffect)(()=>()=>{(0,v.hu)()},[])};var m=t(5649),A=t(88299),x=t(39741),f=t(72182),T=t(13981),N=t(97672),I=t(27142),S=t(77043),b=t(76091),g=t(39992),M=t(13340),P=t(32131),R=t(93577),j=t(86412),O=t(70156),H=t(69219),U=t(28729),D=t(41491),y=t(80408),W=t(19634),B=t(75870),k=t(20716),F=t(40228),z=t.n(F);let Y=e=>{var l,t,s,i,o,c,d,p;let E,{flowId:L,isExperiment:w,isShowAutoReplenishToggle:m,replenishPrices:A}=e,x=(0,h.useRouter)(),{sendInternalAnalytics:f}=(0,_.A)(),[T,N]=(0,g.N)(),{walletLoadingDuration:b}=(0,v.T8)(),F=(0,a.useRef)(null),{translations:Y,isDesktopDevice:G}=(0,a.useContext)(u.q),{createPurchasePrototypeWithRedirect:V,isPending:Z}=(0,k.vi)(),{initialVisibleCount:q,totalViewedCount:K}=(0,M.p)({containerRef:F,itemSelector:"[data-price-item]",...!G&&{rootMargin:"0px 0px -80px 0px"}}),X=(0,r.d4)(e=>e.user),$=(0,r.d4)(e=>e.currentCountry),J=(0,B.a)({priceItems:A}),Q=(null==A?void 0:A.find(e=>e.default))||null,ee=null==(s=X.businessProfileFullData.data)||null==(t=s.features)||null==(l=t.wallet_cashback)?void 0:l.cashback_level;switch(ee){case C.qM.CASHBACK_SUM.LEVEL_1:E=Y.UPGRADE_BP_TO_GET_SUM_CASHBACK_OR_MORE("".concat(C.qM.CASHBACK_SUM.LEVEL_2,"%"));break;case C.qM.CASHBACK_SUM.LEVEL_2:E=Y.UPGRADE_BP_TO_GET_SUM_CASHBACK_ON_EVERY_TOP_UP("".concat(C.qM.CASHBACK_SUM.LEVEL_3,"%"))}let[el,et]=(0,a.useState)(Q),[en,es]=(0,a.useState)(!1),[ea,ei]=(0,a.useState)(""),[eo,er]=(0,a.useState)(!1),[ec,eu]=(0,a.useState)(!1),ed=L||C.qM.FLOW_ID.PAYMENT_WALLET_PAGE,e_=null==X||null==(i=X.profile)?void 0:i.businessProfile,eC=null==X||null==(o=X.businessProfileFullData)?void 0:o.data,ep=null==eC||null==(c=eC.package)?void 0:c.id,eh=(null==(d=X.profile)?void 0:d.businessProfile)&&!!ee,ev=eh&&ee,eE=e_?C.tH.WALLET_MENU_TOGGLE_AUTO_REPLENISH_DESKTOP_BUSINESS:C.tH.WALLET_MENU_TOGGLE_AUTO_REPLENISH_DESKTOP,eL=e_?C.tH.WALLET_MENU_TOGGLE_AUTO_REPLENISH_MOBILE_BUSINESS:C.tH.WALLET_MENU_TOGGLE_AUTO_REPLENISH_MOBILE,ew=G?eE:eL,em=w?z().experimentToggleBlock:"";return(0,W.T)({sum:(null==el?void 0:el.sum)?(null==el?void 0:el.sum)*100:0,defaultSum:null==Q?void 0:Q.sum,currency:null==A||null==(p=A[0])?void 0:p.currency,flowId:Number(ed),customPriceValidationError:ea,analyticsData:{screen:"wallet",section:"price",component:"wallet"}}),(0,a.useEffect)(()=>{b&&m&&f({eventParams:"wallet:activate:wallet:button:view",eventDetailsParams:{wallet_loading_speed:"".concat(b," ms")}})},[b,m]),(0,a.useEffect)(()=>{if(N&&!ec){let e={wallet_loading_speed:"".concat(b," ms"),visible_tiles_count:q,flow_id:Number(ed),...J};f({eventParams:"".concat(e_?"wallet_bp":"wallet",":price:wallet:button:view"),eventDetailsParams:e}),eu(!0)}},[N,ec]),(0,a.useEffect)(()=>{er(!!m)},[m]),(0,n.jsxs)("section",{className:z().replenishmentList,"data-component":"replenishment-list",children:[E&&(0,n.jsxs)("div",{className:z().walletReplenishmentDiscountTextContainer,children:[(0,n.jsx)(S.A,{size:"16",customClass:z().walletReplenishmentDiscountText,children:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,U.A)(E)}})}),(0,n.jsx)(R.A,{size:"12",text:Y.YOUR_CURRENT_CASHBACK_IS_SUM("".concat(ev,"%"))})]}),G?(0,n.jsx)(I.A,{size:"20",text:Y.CHOOSE_AMOUNT_OF_REPLENISHMENT,type:"h2",weight:"700"}):(0,n.jsx)(j.A,{size:"16",text:Y.CHOOSE_AMOUNT_OF_REPLENISHMENT,weight:"700"}),(0,n.jsx)(O.A,{flowId:ed,hasDiscount:eh,discount:ev||null,currentPrices:el,customPriceValidationError:ea,isShowTitleCustomPrice:!1,replenishListData:A,selectedCustomPrice:en,replenishListRef:F,onChangeCustomPriceHandler:e=>{let{value:l,id:t}=e;return(ei(""),es(!0),et({sum:t?0:Number(l),currency:Number(null==$?void 0:$.default_currency)}),en&&l<C.qM.MIN_REPLENISHMENT_SUM[null==$?void 0:$.id])?ei(Y.MINIMAL_SUM_OF_REPLENISHMENT(C.qM.MIN_REPLENISHMENT_SUM[null==$?void 0:$.id])):en&&l>C.qM.MAX_REPLENISHMENT_SUM[null==$?void 0:$.id]?ei(Y.MAXIMUM_SUM_FOR_REPLENISHMENT(C.qM.MAX_REPLENISHMENT_SUM[null==$?void 0:$.id])):void 0},onChangeReplenishListHandler:e=>{let{listItem:l}=e;ei(""),es(!1),l&&et(l)}}),(0,n.jsxs)("div",{className:"".concat(z().footerReplenishWrap," ").concat(em),children:[m&&(0,n.jsx)(H.A,{isActiveToggle:eo,toggleClickHandler:()=>
1{er(!eo),f({eventParams:"wallet:activate:wallet:button:tap",eventDetailsParams:{auto_replenish:eo?"off":"on",flow_id:ew,...e_&&ep&&{bp_type:ep},...b&&{wallet_loading_speed:"".concat(b," ms")}}})},isExperiment:w}),(0,n.jsx)("div",{className:z().btnReplenishWrap,ref:T,children:(0,n.jsx)(P.A,{customClass:z().replenishButton,size:"large",type:"primary-green",text:Y.REPLENISH,loading:Z,onClick:e=>{var l,t,n;if(e.preventDefault(),ea||(null==el?void 0:el.sum)===0)return;let s=null==A||null==(l=A[0])?void 0:l.currency,a=en?el&&100*el.sum:null==el?void 0:el.sum,i=e_?"wallet_bp":"wallet",o=null==A?void 0:A.findIndex(e=>e.id===(null==el?void 0:el.id)),r={sum:a,default:!!(null==el?void 0:el.default),step:en?"manual":String(o),cashback:null==el?void 0:el.cashback,grid_values:null==J?void 0:J.grid_values,grid:null==J?void 0:J.grid_values,viewed_tiles_count:K,currency:s?(0,D.A)(s):null,label:"".concat((null==el?void 0:el.sum)?(null==el?void 0:el.sum)/100:""," ").concat(s?(0,D.A)(s):""),flow_id:ed,auto_replenish:eo?"active":"inactive",default_sum:null==Q?void 0:Q.sum,...e_&&ep&&{bp_type:ep},...b&&{wallet_loading_speed:"".concat(b," ms")}};f({eventParams:"".concat(i,":price:wallet:button:tap"),eventDetailsParams:r}),(0,y.IH)({name:"ReplenishmentWallet",options:{value:a?Math.floor(a/100):0,currency:(0,D.A)(s||0,!1)}}),V({purchasePrototypeParams:{type_id:C.F_.PURCHASE_TYPE_ID.TYPE_WALLET,sum:a||0,currency:s||0,deferred_purchase_id:(null==x||null==(t=x.query)?void 0:t.deferred_purchase_id)?Number(null==x||null==(n=x.query)?void 0:n.deferred_purchase_id):null,auto_replenish:eo,flow_id:eo?ew:ed,user_id:X.profile.id}})}})})]})]})};var G=t(62145),V=t.n(G);let Z=e=>{var l,t,s;let{flowId:i}=e,{data:o,isSuccess:c}=(0,E.$)(),d=(0,r.d4)(e=>e.currentCountry),_=(0,r.d4)(e=>e.user),{isSuccess:p,isSelectedAutoReplenish:h}=(0,T.Zk)(),{translations:v,isDesktopDevice:L}=(0,a.useContext)(u.q),w=_.businessProfileFullData.status,m=(null==d||null==(l=d.options)?void 0:l.autoreplenish)&&p&&!h,A=(null==_||null==(s=_.experiment)||null==(t=s.active)?void 0:t[N.y.autoreplenversion2.part_2])||!1;return(0,n.jsx)("div",{className:"".concat(V().walletReplenishmentWrapper," ").concat(m?A?"with-autoReplenish part-2":"with-autoReplenish":""),"data-component":"wallet-replenishment",children:(0,n.jsxs)("div",{className:V().walletReplenishmentContainer,children:[L&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(I.A,{size:"32",text:v.WALLET,type:"h2",weight:"700"}),(0,n.jsx)(S.A,{customClass:V().walletReplenishmentDescription,size:"16",text:v.WALLET_IS_YOUR_PERSONAL_BALANCE_ON_LALAFO_TEXT})]}),c&&w===C.$g?(null==o?void 0:o.items)&&(0,n.jsx)(Y,{flowId:i,replenishPrices:null==o?void 0:o.items,isShowAutoReplenishToggle:m,isExperiment:A}):(0,n.jsx)("div",{className:V().loaderWrap,children:(0,n.jsx)(b.A,{})})]})})},q=e=>{let{flowId:l}=e;return(0,n.jsxs)("div",{"data-component":"wallet-desktop",children:[(0,n.jsx)(f.A,{activeTabId:C.DF.WALLET.WALLET_REPLENISHMENT.id}),(0,n.jsx)(Z,{flowId:l})]})};var K=t(78567),X=t(87473),$=t(20381),J=t(8566),Q=t(8457),ee=t(93685),el=t.n(ee);let et=()=>{var e,l;let t=(0,r.wA)(),{translations:s,isDesktopDevice:i}=(0,a.useContext)(u.q),o=(0,r.d4)(e=>e.user.walletBalance),c=(0,r.d4)(e=>e.currentCountry),[d,_]=(0,a.useState)(0),p=null==o?void 0:o.data,h=(null==p||null==(e=p.main)?void 0:e.balance)||0;return(0,a.useEffect)(()=>{i&&(null==o?void 0:o.status)!==C.Q0||t((0,K.jb)())},[i]),(0,a.useEffect)(()=>{(null==o?void 0:o.status)===C.$g&&_(h)},[null==o?void 0:o.status]),(0,n.jsxs)("section",{className:el().walletUserBalanceWrapper,"data-component":"wallet-user-balance",children:[(0,n.jsxs)("div",{className:el().walletUserBalanceContainer,children:[(0,n.jsx)("div",{className:el().walletUserBalanceIconWrap,children:(0,n.jsx)(X.A,{size:"32"})}),(0,n.jsxs)("div",{className:el().walletUserBalanceValueContainer,children:[(0,n.jsx)(R.A,{size:"12",text:"".concat(s.WALLET_BALANCE,":")}),o.status!==C.$g?(0,n.jsx)($.A,{size:"16"}):(0,n.jsxs)("div",{className:el().walletUserBalanceValue,children:[(0,n.jsx)(J.A,{isCountUp:(null==o?void 0:o.withdrawBonusesStatus)===C.$g,isWalletBalance:!0,value:h,prevValue:d,size:"20",type:"LFHeading",toFixedSymbolAfterDot:2}),(0,n.jsx)(S.A,{size:"14",text:(0,D.A)((null==p||null==(l=p.main)?void 0:l.currency)||"")})]})]})]}),(null==c?void 0:c.id)!==C.eq&&(0,n.jsx)(Q.A,{})]})};var en=t(12336),es=t(18153),ea=t(71815),ei=t(48951),eo=t(28888),er=t(38993);function ec(){let e=(0,eo._)(["\n &::after {\n content: '';\n display: block;\n border-bottom: 1px solid var(--neutralGrey);\n width: calc(100% + 16px);\n }\n\n .navigation-mobile-tile-wrap {\n display: flex;
1\n align-items: center;\n justify-content: space-between;\n padding: 22px 0;\n }\n\n .navigation-mobile-tile-icon-left-wrap {\n margin-right: 16px;\n }\n\n .navigation-mobile-tile-icon-right-wrap {\n margin-left: 8px;\n }\n\n .navigation-mobile-tile-content-wrap {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n }\n"]);return ec=function(){return e},e}let eu=()=>(0,er.AH)(ec()),ed=e=>{let{children:l,iconLeft:t,id:n,link:s,title:a,navigationMobileTileClickHandler:i}=e,{getFullUrl:o}=(0,ea.y)();return(0,es.Y)("a",{css:eu(),href:o(s),onClick:e=>i({event:e,id:n,link:s}),children:(0,es.FD)("div",{className:"navigation-mobile-tile-wrap",children:[(0,es.Y)("div",{className:"navigation-mobile-tile-icon-left-wrap",children:t}),(0,es.Y)("div",{className:"navigation-mobile-tile-content-wrap",children:a?(0,es.Y)(S.A,{size:"16",text:a}):l}),(0,es.Y)("div",{className:"navigation-mobile-tile-icon-right-wrap",children:(0,es.Y)(ei.A,{size:"16"})})]})})};var e_=t(54551);let eC=o()(()=>Promise.resolve().then(t.bind(t,62920)),{loadableGenerated:{webpack:()=>[62920]},ssr:!1}),ep=o()(()=>Promise.resolve().then(t.bind(t,85233)),{loadableGenerated:{webpack:()=>[85233]},ssr:!1}),eh=()=>{var e,l;let{sendInternalAnalytics:t}=(0,_.A)(),{walletLoadingDuration:s}=(0,v.T8)(),{translations:i}=(0,a.useContext)(u.q),o=(0,r.d4)(e=>e.user),c=(0,r.d4)(e=>e.promo),[d,p]=(0,a.useState)(!1),h=null==o||null==(e=o.profile)?void 0:e.businessProfile,E={ID:1,LINK:"".concat(C.W_.ACCOUNT_WALLET_REPLENISHMENT,"?promo=true"),TRANSLATION_KEY:"PROMO_CODE_ACTIVATION"},L=()=>p(e=>!e);return(0,a.useEffect)(()=>{var e;(null==(e=c.data)?void 0:e.status)==="done"&&L()},[null==(l=c.data)?void 0:l.status]),(0,n.jsxs)("div",{"data-component":"wallet-promo-code",children:[(0,n.jsx)(ed,{iconLeft:(0,n.jsx)(en.A,{}),title:i[E.TRANSLATION_KEY],link:E.LINK,navigationMobileTileClickHandler:e=>{let{event:l,id:n}=e;if(l.preventDefault(),n===E.ID){let e={...s&&{wallet_loading_speed:"".concat(s," ms")}};return t({eventParams:"".concat(h?"wallet_bp":"wallet",":promocode:wallet:button:tap"),eventDetailsParams:e}),L()}},id:E.ID}),d&&(0,n.jsx)(eC,{onCloseRequest:L,children:(0,n.jsx)(ep,{closeIcon:(0,n.jsx)(A.A,{size:"24"}),closeModal:L,title:i.PROMO_CODE_ACTIVATION,children:(0,n.jsx)(e_.A,{})})})]})},ev=e=>{var l,t,s,i,o;let{flowId:c}=e,{sendInternalAnalytics:u}=(0,_.A)(),{walletLoadingDuration:d}=(0,v.T8)(),p=(0,r.d4)(e=>e.user),h=null==p||null==(l=p.profile)?void 0:l.businessProfile,E=null==p||null==(i=p.businessProfileFullData)||null==(s=i.data)||null==(t=s.package)?void 0:t.id;return(0,a.useEffect)(()=>{var e;(null==p||null==(e=p.businessProfileFullData)?void 0:e.status)===C.$g&&u({eventParams:"wallet:settings:wallet:button:view",eventDetailsParams:{flow_id:h?C.tH.PAYMENT_SETTINGS_ACTION_MOBILE_BUSINESS:C.tH.PAYMENT_SETTINGS_ACTION_MOBILE,...h&&E&&{bp_type:E},...d&&{wallet_loading_speed:"".concat(d," ms")}}})},[null==p||null==(o=p.businessProfileFullData)?void 0:o.status]),(0,n.jsxs)("div",{"data-component":"wallet-mobile",children:[(0,n.jsx)(et,{}),(0,n.jsx)(eh,{}),(0,n.jsx)(Z,{flowId:c})]})};var eE=t(82761),eL=t(71170),ew=t(72534),em=t(46767);let eA=()=>{var e,l,t,s,i;let{sendInternalAnalytics:o}=(0,_.A)(),{redirectToUrl:c}=(0,eE.A)(),{walletLoadingDuration:p}=(0,v.T8)(),h=(0,r.d4)(e=>e.user),E=(0,r.d4)(e=>e.currentCountry),{isSelectedAutoReplenish:L}=(0,T.Zk)(),w=(0,d.getCookie)("account-auto-replenish-page"),{translations:m}=(0,a.useContext)(u.q),A=null==h||null==(e=h.profile)?void 0:e.businessProfile,f=null==h||null==(s=h.businessProfileFullData)||null==(t=s.data)||null==(l=t.package)?void 0:l.id,N=L?m.ON:m.OFF,I={flow_id:A?C.tH.PAYMENT_SETTINGS_ACTION_MOBILE_BUSINESS:C.tH.PAYMENT_SETTINGS_ACTION_MOBILE,...A&&f&&{bp_type:f},...p&&{wallet_loading_speed:"".concat(p," ms")}},b=e=>{let l,{event:t,id:n,link:s}=e;switch(t.preventDefault(),n){case C.s3.AUTO_REPLENISH.ID:l="auto_replenishment";break;case C.s3.PAYMENT_HISTORY.ID:l="history"}
1o({eventParams:"wallet:".concat(l,":settings:button:tap"),eventDetailsParams:I}),c({path:"".concat(s)})};return(0,a.useEffect)(()=>{o({eventParams:"wallet:history:settings:button:view",eventDetailsParams:I}),o({eventParams:"wallet:auto_replenishment:settings:button:view",eventDetailsParams:I})},[]),(0,n.jsx)("div",{"data-component":"wallet-settings-mobile",children:(0,n.jsxs)("nav",{children:[(0,n.jsx)(ed,{iconLeft:(0,n.jsx)(ew.A,{size:"24",color:em.zw}),title:m[C.s3.PAYMENT_HISTORY.TRANSLATION_KEY],link:C.s3.PAYMENT_HISTORY.LINK,navigationMobileTileClickHandler:b,id:C.s3.PAYMENT_HISTORY.ID}),(null==E||null==(i=E.options)?void 0:i.autoreplenish)&&(0,n.jsxs)(ed,{iconLeft:(0,n.jsx)(x.A,{isShowIndicator:!w,children:(0,n.jsx)(eL.A,{size:"24"})}),link:C.s3.AUTO_REPLENISH.LINK,navigationMobileTileClickHandler:b,id:C.s3.AUTO_REPLENISH.ID,children:[(0,n.jsx)(S.A,{size:"16",text:m[C.s3.AUTO_REPLENISH.TRANSLATION_KEY]}),(0,n.jsx)(R.A,{size:"12",text:N,color:em.zw})]})]})})},ex=o()(()=>Promise.resolve().then(t.bind(t,62920)),{loadableGenerated:{webpack:()=>[62920]},ssr:!1}),ef=o()(()=>Promise.resolve().then(t.bind(t,85233)),{loadableGenerated:{webpack:()=>[85233]},ssr:!1}),eT=e=>{var l,t,s,i;let{flowId:o}=e,h=(0,r.wA)(),{walletLoadingDuration:E}=(0,v.T8)(),{sendInternalAnalytics:L}=(0,_.A)(),{translations:f,isDesktopDevice:T}=(0,a.useContext)(u.q);w();let N=(0,r.d4)(e=>e.user),[I,S]=(0,a.useState)(!1),b=(0,d.getCookie)("account-auto-replenish-page"),g=null==N||null==(l=N.profile)?void 0:l.businessProfile,M=null==N||null==(i=N.businessProfileFullData)||null==(s=i.data)||null==(t=s.package)?void 0:t.id;return(0,a.useEffect)(()=>{h((0,p.s_)())},[]),(0,n.jsxs)(c.A,{segment:C.GX.WALLET,headerMobileButton:(0,n.jsx)(x.A,{iconClickHandler:()=>
1{L({eventParams:"wallet:settings:wallet:button:tap",eventDetailsParams:{flow_id:g?C.tH.PAYMENT_SETTINGS_ACTION_MOBILE_BUSINESS:C.tH.PAYMENT_SETTINGS_ACTION_MOBILE,...g&&M&&{bp_type:M},...E&&{wallet_loading_speed:"".concat(E," ms")}}}),S(!0)},isShowIndicator:!b,children:(0,n.jsx)(m.A,{size:"24"})}),children:[(0,n.jsx)("div",{"data-component":"account-wallet",children:T?(0,n.jsx)(q,{flowId:o}):(0,n.jsx)(ev,{flowId:o})}),I&&!T&&(0,n.jsx)(ex,{onCloseRequest:()=>S(!1),children:(0,n.jsx)(ef,{closeModal:()=>S(!1),closeIcon:(0,n.jsx)(A.A,{size:"24"}),title:f.WALLET_SETTINGS,children:(0,n.jsx)(eA,{})})})]})};var eN=t(9717),eI=!0;let eS=e=>{let{flow_id:l}=e;return(0,n.jsxs)(s.default,{pageName:C.Jt.WALLET,mobileBottomBarDisable:!0,children:[(0,n.jsx)(eT,{flowId:l||""}),(0,n.jsx)(eN.A,{metaRobotsContent:"noindex, nofollow"})]})}},62145:e=>{e.exports={walletReplenishmentWrapper:"WalletReplenishment_walletReplenishmentWrapper__xawli",loaderWrap:"WalletReplenishment_loaderWrap___4Qtb",walletReplenishmentContainer:"WalletReplenishment_walletReplenishmentContainer__jdRDR",walletReplenishmentDescription:"WalletReplenishment_walletReplenishmentDescription__RNn4p"}},71170:(e,l,t)=>{"use strict";t.d(l,{A:()=>i});var n=t(37876),s=t(14467),a=t(46767);let i=e=>{let{color:l,customClass:t,size:i,onClick:o}=e,r=l||a.zw,c=i||"24",u="LFIconAutoRefill ".concat(t," ").concat("size-".concat(c)," ").concat(r);return(0,n.jsx)(s.A,{size:c,customClass:u,onClick:o,children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9795 2.84457C12.9795 2.37813 12.6013 2 12.1349 2C6.53754 2 2 6.53754 2 12.1349C2 12.6013 2.37813 12.9795 2.84457 12.9795C3.31102 12.9795 3.68915 12.6013 3.68915 12.1349C3.68915 7.47043 7.47043 3.68915 12.1349 3.68915C12.6013 3.68915 12.9795 3.31102 12.9795 2.84457ZM16.0559 4.65435C16.4677 4.87333 16.9791 4.71699 17.1981 4.30514C17.4171 3.89329 17.2607 3.3819 16.8489 3.16292C16.437 2.94394 15.9256 3.10029 15.7066 3.51213C15.4877 3.92398 15.644 4.43537 16.0559 4.65435ZM20.2651 7.54925C19.883 7.81679 19.3563 7.72393 19.0888 7.34184C18.8213 6.95975 18.9141 6.43312 19.2962 6.16558C19.6783 5.89804 20.2049 5.9909 20.4725 6.37299C20.74 6.75508 20.6471 7.28171 20.2651 7.54925ZM20.5193 11.1179C20.5761 11.5808 20.9975 11.9101 21.4605 11.8532C21.9234 11.7964 22.2527 11.375 22.1958 10.912C22.139 10.449 21.7176 10.1198 21.2546 10.1767C20.7916 10.2335 20.4624 10.6549 20.5193 11.1179ZM20.033 15.1266C19.8658 15.5621 20.0833 16.0506 20.5188 16.2178C20.9542 16.3849 21.4428 16.1674 21.6099 15.732C21.7771 15.2965 21.5596 14.808 21.1241 14.6408C20.6887 14.4737 20.2001 14.6912 20.033 15.1266ZM17.6677 19.6539C17.3556 19.3072 17.3836 18.7732 17.7303 18.4611C18.0769 18.149 18.6109 18.177 18.923 18.5236C19.2351 18.8702 19.2072 19.4043 18.8605 19.7164C18.5139 20.0285 17.9799 20.0005 17.6677 19.6539ZM6.53948 18.4613C6.19285 18.1492 5.65883 18.1771 5.34671 18.5238C5.0346 18.8704 5.06259 19.4044 5.40922 19.7165C5.75586 20.0287 6.28988 20.0007 6.60199 19.654C6.91411 19.3074 6.88612 18.7734 6.53948 18.4613ZM13.5388 21.3595C13.4259 20.907 13.7014 20.4486 14.154 20.3357C14.6065 20.2229 15.0649 20.4983 15.1778 20.9509C15.2906 21.4035 15.0152 21.8619 14.5626 21.9747C14.11 22.0875 13.6516 21.8121 13.5388 21.3595ZM9.09208 20.9509C9.20493 20.4984 9.6633 20.2229 10.1159 20.3358C10.5685 20.4486 10.8439 20.907 10.7311 21.3596C10.6182 21.8122 10.1598 22.0876 9.70725 21.9748C9.25466 21.8619 8.97924 21.4035 9.09208 20.9509ZM3.14567 14.6408C3.58113 14.4737 4.06965 14.6912 4.23681 15.1266C4.40397 15.5621 4.18647 16.0506 3.751 16.2178C3.31554 16.3849 2.82702 16.1674 2.65986 15.732C2.4927 15.2965 2.7102 14.808 3.14567 14.6408Z",fill:r})})})}},72182:(e,l,t)=>{"use strict";t.d(l,{A:()=>L});var n=t(37876),s=t(14232),a=t(37004),i=t(18847),o=t.n(i),r=t(76893),c=t(82761),u=t(3090),d=t(94513),_=t(15946),C=t(94937),p=t(29182),h=t(26090),v=t.n(h);let E=o()(()=>t.e(724).then(t.bind(t,50724)),{loadableGenerated:{webpack:()=>[50724]},ssr:!1}),L=e=>{var l,t,i,o;let{activeTabId:h}=e,{sendInternalAnalytics:L}=(0,_.A)(),{redirectToUrl:w}=(0,c.A)(),{walletLoadingDuration:m}=(0,d.T8)(),[A,x]=(0,u.l)("account-auto-replenish-tab-label-new"),f=(0,a.d4)(e=>e.user),T=(0,a.d4)(e=>e.currentCountry),{translations:N}=(0,s.useContext)(p.q),I=null==f||null==(l=f.profile)?void 0:l.businessProfile,S=null==f||null==(o=f.businessProfileFullData)||null==(i=o.data)||null==(t=i.package)?void 0:t.id,b=Object.values(C.DF.WALLET),g=e=>{let l,t,{event:n,tab:s}=e;switch(n.preventDefault(),s.id){case C.DF.WALLET.WALLET_REPLENISHMENT.id:l="settings",t="wallet";break;case C.DF.WALLET.PAYMENT_HISTORY.id:l="history",t="settings";break;case C.DF.WALLET.ACCOUNT_AUTO_REPLENISH.id:l="auto_replenishment",t="settings"}let a=I?C.tH.PAYMENT_SETTINGS_ACTION_DESKTOP_BUSINESS:C.tH.PAYMENT_SETTINGS_ACTION_DESKTOP,i="\n flow_id: ".concat(a,",\n ").concat(I&&S&&"bp_type: ".concat(S),"\n ");
1L({eventParams:"wallet:".concat(l,":").concat(t,":button:tap"),eventDetailsParams:i}),C.DF.WALLET.ACCOUNT_AUTO_REPLENISH.id===s.id&&x(C.Il.MAX_AGE.VALUE,C.Il.MAX_AGE.FIVE_YEARS),C.DF.WALLET.WALLET_REPLENISHMENT.id===s.id&&(0,d.Lm)(),w({path:s.route||"/"})};(0,s.useEffect)(()=>{C.DF.WALLET.ACCOUNT_AUTO_REPLENISH.id&&m&&L({eventParams:"".concat(I?"wallet_bp":"wallet",":auto_replenishment:settings:button:view"),eventDetailsParams:{wallet_loading_speed:"".concat(m," ms")}})},[m]);let M=e=>{let{tab:l}=e;return l.id===C.DF.WALLET.ACCOUNT_AUTO_REPLENISH.id?(0,n.jsx)(E,{title:N[l.translation_key],isShowLabel:!A}):null},P=e=>{var l;let{tab:t}=e;return(null==T||null==(l=T.options)?void 0:l.autoreplenish)||t.id!==C.DF.WALLET.ACCOUNT_AUTO_REPLENISH.id?(0,n.jsx)(r.A,{link:t.route,isActive:t.id===h,size:"small",text:!t.hasChildren&&N[t.translation_key],onClick:e=>g({event:e,tab:t}),children:t.hasChildren&&(0,n.jsx)(M,{tab:t})}):null};return(0,n.jsx)("ul",{className:v().walletMenu,children:b.map(e=>(0,n.jsx)(P,{tab:e},e.id))})}},72534:(e,l,t)=>{"use strict";t.d(l,{A:()=>r});var n=t(37876),s=t(14467),a=t(46767),i=t(9226),o=t.n(i);let r=e=>{let{color:l,customClass:t,size:i,onClick:r}=e,c=l||a.ie,u=i||"24",d="".concat(o().LFIconHistoryPayment," ").concat(t," ").concat("size-".concat(u)," ").concat(c);return(0,n.jsx)(s.A,{size:u,customClass:d,onClick:r,children:(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M6.56628 20.1638C8.25437 21.3222 10.298 22 12.5 22C18.299 22 23 17.299 23 11.5C23 5.70101 18.299 1 12.5 1C8.13888 1 4.39876 3.65877 2.81213 7.4438",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("rect",{x:"11",y:"5",width:"2",height:"8",rx:"1",fill:c}),(0,n.jsx)("rect",{x:"11",y:"13",width:"2",height:"6",rx:"1",transform:"rotate(-60 11 13)",fill:c}),(0,n.jsx)("path",{d:"M1.02686 4.66748L2.37493 8.33254L6.22301 7.66748",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}},87473:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var n=t(37876),s=t(14467);let a=e=>{let{customClass:l="",size:t,onClick:a}=e,i=t||"48",o=l?"LFIconWallet ".concat(l," ").concat("size-".concat(i)):"LFIconWallet";return(0,n.jsx)(s.A,{size:i,customClass:o,onClick:a,children:(0,n.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 46C36.1503 46 46 36.1503 46 24C46 11.8497 36.1503 2 24 2C11.8497 2 2 11.8497 2 24C2 36.1503 11.8497 46 24 46Z",fill:"url(#paint0_linear_0_3716)"}),(0,n.jsx)("path",{d:"M13 17C13 15.3431 14.3431 14 16 14H32C33.6569 14 35 15.3431 35 17V31C35 32.6569 33.6569 34 32 34H16C14.3431 34 13 32.6569 13 31V17Z",fill:"white"}),(0,n.jsx)("path",{d:"M23 23.5C23 21.0147 25.0147 19 27.5 19H35V28H27.5C25.0147 28 23 25.9853 23 23.5V23.5Z",fill:"#FF5A00"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.6667 24.9091C28.1729 24.9091 28.5833 24.5021 28.5833 24C28.5833 23.498 28.1729 23.0909 27.6667 23.0909C27.1604 23.0909 26.75 23.498 26.75 24C26.75 24.5021 27.1604 24.9091 27.6667 24.9091Z",fill:"white"}),(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"paint0_linear_0_3716",x1:"20.3067",y1:"-8.85535",x2:"-8.93053",y2:"31.3814",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{stopColor:"#FFC620"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#FF5A00"})]})})]})})}},93685:e=>{e.exports={walletUserBalanceWrapper:"WalletUserBalance_walletUserBalanceWrapper__DP6q2",walletUserBalanceContainer:"WalletUserBalance_walletUserBalanceContainer__7SbmP",walletUserBalanceIconWrap:"WalletUserBalance_walletUserBalanceIconWrap____h2O",walletUserBalanceValueContainer:"WalletUserBalance_walletUserBalanceValueContainer__e9Jvh",walletUserBalanceValue:"WalletUserBalance_walletUserBalanceValue__R14M8"}}},e=>{var l=l=>e(e.s=l);
1e.O(0,[4092,1130,9167,1902,6015,9833,889,2267,9391,716,7204,7185,392,7320,5304,4018,1503,636,6593,8792],()=>l(6897)),_N_E=e.O()}]); 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]="fdc27286-2ee4-5d00-85ea-f1ac3f35f25f")}catch(e){}}(); 3//# debugId=fdc27286-2ee4-5d00-85ea-f1ac3f35f25f
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.