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]="3f135b09-cbc0-4e86-85f9-a05ec823947f",e._sentryDebugIdIdentifier="sentry-dbid-3f135b09-cbc0-4e86-85f9-a05ec823947f")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4018],{13340:(e,n,t)=>{"use strict";t.d(n,{p:()=>l});var i=t(14232);let l=e=>{let{containerRef:n,itemSelector:t,threshold:l=1,rootMargin:r="0px",onItemVisible:a}=e,[o,s]=(0,i.useState)(0),[c,u]=(0,i.useState)(new Set),[d,p]=(0,i.useState)(new Set),g=(0,i.useRef)(new Set),h=(0,i.useRef)(a),_=(0,i.useRef)(null);(0,i.useEffect)(()=>{h.current=a},[a]);let m=(0,i.useCallback)(e=>{u(n=>{let t=new Set(n),i=[];return e.forEach(e=>{let n=e.target,l=Number(n.dataset.visibilityIndex);!Number.isNaN(l)&&(e.isIntersecting?(t.add(l),g.current.has(l)||(g.current.add(l),i.push({index:l,element:n,totalViewedCount:g.current.size}))):t.delete(l))}),null===_.current&&t.size>0&&(_.current=t.size,s(t.size)),i.length>0&&(p(new Set(g.current)),i.forEach(e=>{var n;let{index:t,element:i,totalViewedCount:l}=e;null==(n=h.current)||n.call(h,{index:t,element:i,totalViewedCount:l,initialVisibleCount:_.current})})),t})},[]);return(0,i.useEffect)(()=>{let e=null==n?void 0:n.current;if(!e)return;let i=e.querySelectorAll(t);if(0===i.length)return;let a=new IntersectionObserver(m,{root:null,rootMargin:r,threshold:l});return i.forEach((e,n)=>{e.dataset.visibilityIndex=String(n),a.observe(e)}),()=>{a.disconnect()}},[n,t,l,r,m]),{visibleCount:c.size,visibleIndices:c,totalViewedCount:d.size,totalViewedIndices:d,initialVisibleCount:o}}},50099:e=>{e.exports={pageLoaderContainer:"PageLoader_pageLoaderContainer__QEvJJ"}},69219:(e,n,t)=>{"use strict";t.d(n,{A:()=>y});var i=t(18153),l=t(14232),r=t(29182),a=t(15946),o=t(94513),s=t(81332),c=t(2293),u=t(93577),d=t(77043),p=t(64327),g=t(42552),h=t(28888),_=t(38993);function m(){let e=(0,h._)(["\n margin-bottom: 24px;\n\n .toggle-head-wrap {\n display: flex;\n align-items: center;\n\n .LFIconCircleQuestionFilled {\n margin-left: 8px;\n }\n }\n\n .phone &,\n .tablet & {\n width: 100%;\n padding: 16px 16px 0;\n margin-bottom: 0;\n\n &::after {\n content: '';\n display: block;\n border-bottom: 1px solid var(--neutralGrey);\n width: calc(100% + 16px);\n }\n\n .ToggleBlock {\n padding: 0 0 16px;\n }\n }\n"]);return m=function(){return e},e}let v=()=>(0,_.AH)(m()),f=e=>{let{isActiveToggle:n,translations:t,onToggleClick:l,onboardingAutoReplenishClickHandler:r}=e;return(0,i.Y)("div",{css:v,children:(0,i.FD)(g.A,{isActiveToggle:n,onToggleClick:l,children:[(0,i.FD)("div",{className:"toggle-head-wrap",children:[(0,i.Y)(d.A,{size:"16",text:t.WALLET_AUTO_TOP_UP}),(0,i.Y)(p.A,{size:"16",onClick:r})]}),(0,i.Y)(u.A,{size:"12",text:t.TO_AVOID_STOPPING_ADVERTISING_TEXT})]})})};var b=t(28729);function x(){let e=(0,h._)(["\n background: var(--primaryWhite);\n\n .auto-replenish-toggle-block-header-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-radius: 8px 8px 0 0;\n padding: 6px 16px;\n opacity: 1;\n transform: translateY(0);\n transition: .4s ease-in-out all;\n\n /* Partition 2 - styles */\n &.part-2 {\n background: var(--neutralMediumGrey);\n\n &.active {\n background: var(--gradientGreen);\n }\n\n .auto-replenish-toggle-block-header__title,\n .auto-replenish-toggle-block-header__onboarding--title {\n color: var(--primaryWhite);\n }\n\n .LFIconCircleQuestionFilled svg path {\n fill: var(--primaryWhite);\n }\n }\n }\n\n .auto-replenish-toggle-block-header__onboarding-container {\n display: flex;\n align-items: center;\n margin-left: 16px;\n cursor: pointer;\n\n .LFIconCircleQuestionFilled {\n margin-right: 4px;\n }\n }\n\n .LFParagraph {\n font-weight: 500;\n margin-bottom: 2px;\n }\n\n .ToggleBlock {\n position: relative;\n z-index: 1;\n background: var(--primaryWhite);\n\n padding-top: 8px;\n\n .auto-replenish-toggle-block-description {\n font-size: 12px;\n font-weight: 400;\n line-height: 18px;\n\n strong {\n color: var(--neutralDarkGrey);\n font-weight: 400;\n }\n }\n }\n\n .phone &,\n .tablet & {\n &::after {\n content: '';\n display: block;\n border-bottom: 1px solid var(--neutralGrey);\n width: 100%;\n }\n }
1\n\n .desktop & {\n margin-bottom: 24px;\n\n .ToggleBlock {\n border-radius: 0 0 12px 12px;\n }\n }\n\n .fade-in {\n position: relative;\n z-index: -10000;\n transform: translateY(30px);\n opacity: 0;\n }\n"]);return x=function(){return e},e}let A=()=>(0,_.AH)(x()),w=e=>{let{isActiveToggle:n,translations:t,onToggleClick:r,onboardingAutoReplenishClickHandler:a}=e,[o,s]=(0,l.useState)(""),c=n?"active":"";return(0,i.FD)("div",{css:A,children:[(0,i.FD)("div",{className:"auto-replenish-toggle-block-header-container part-2 ".concat(c," ").concat(o),children:[(0,i.Y)(u.A,{size:"12",text:n?t.AUTO_TOP_UP_ENABLED:t.AUTO_TOP_UP_DISABLED,customClass:"auto-replenish-toggle-block-header__title"}),(0,i.FD)("div",{className:"auto-replenish-toggle-block-header__onboarding-container",onClick:a,children:[(0,i.Y)(p.A,{size:"16"}),(0,i.Y)(u.A,{size:"12",text:t.HOW_DOES_IT_WORK,customClass:"auto-replenish-toggle-block-header__onboarding--title"})]})]}),(0,i.FD)(g.A,{isActiveToggle:n,onToggleClick:()=>{s("fade-in"),setTimeout(()=>{s("")},400),r()},children:[(0,i.Y)(d.A,{size:"14",text:t.WALLET_AUTO_TOP_UP}),(0,i.Y)("span",{className:"auto-replenish-toggle-block-description",dangerouslySetInnerHTML:{__html:(0,b.A)(t.ADS_DO_NOT_STOP_TEXT)}}),(0,i.Y)("span",{className:"auto-replenish-toggle-block-description",dangerouslySetInnerHTML:{__html:(0,b.A)(t.TOP_UP_YOU_RUN_OUT_OF_MONEY_TEXT)}})]})]})},y=e=>{let{isActiveToggle:n,isExperiment:t,toggleClickHandler:u}=e,{walletLoadingDuration:d}=(0,o.T8)(),{sendInternalAnalytics:p}=(0,a.A)(),[g,h]=(0,l.useState)(!1),{translations:_}=(0,l.useContext)(r.q),m=()=>{u instanceof Function&&u()},v=()=>
1{p({eventParams:"wallet:activate:wallet:onboarding:tap",eventDetailsParams:{...d&&{wallet_loading_speed:"".concat(d," ms")}}}),h(!0)};return(0,i.FD)(i.FK,{children:[!0===t?(0,i.Y)(w,{isActiveToggle:n,translations:_,onToggleClick:m,onboardingAutoReplenishClickHandler:v}):(0,i.Y)(f,{isActiveToggle:n,translations:_,onToggleClick:m,onboardingAutoReplenishClickHandler:v}),g&&(0,i.Y)(s.A,{closeHandler:()=>{h(!1)},modalOnboardingSlides:c.t,onboardingImagesHeight:"large",modalMobileType:"overlay"})]})}},70156:(e,n,t)=>{"use strict";t.d(n,{A:()=>E});var i=t(18153),l=t(14232),r=t(37004),a=t(89099),o=t(94937),s=t(47377),c=t(13340),u=t(15946),d=t(39992),p=t(41491),g=t(55915),h=t(75870),_=t(75469),m=t(29182),v=t(3574),f=t(93577),b=t(77043),x=t(79827),A=t(30023),w=t(46767),y=t(28888),T=t(38993);function k(){let e=(0,y._)(["\n margin-bottom: 24px;\n\n .replenish-list__item--cashback {\n padding: 2px 8px;\n }\n\n .replenish-list-custom-price-container {\n margin-top: 8px;\n\n .LFParagraph.size-16 {\n margin-bottom: 16px;\n }\n\n .replenish-custom-price-wrap {\n display: flex;\n justify-content: flex-start;\n }\n\n .replenish-custom-price__input {\n width: 100%;\n margin-right: 16px;\n }\n\n .replenish-custom-price__currency {\n max-width: 78px;\n\n &.LFInput input {\n text-align: center;\n }\n }\n }\n\n &.phone,\n &.tablet {\n .LFRadioInput-container.inverse {\n padding: 16px 16px 16px 0;\n margin-right: -16px;\n border-bottom: 1px solid var(--neutralGrey);\n }\n }\n\n &.desktop {\n .LFRadioInput-container {\n display: inline-flex;\n padding: 10px 0;\n }\n\n .replenish-custom-price__input {\n max-width: 250px;\n }\n }\n"]);return k=function(){return e},e}let C=()=>(0,T.AH)(k()),E=e=>{var n;let{currentPrices:t,customPriceValidationError:y,discount:T,hasDiscount:k,isShowTitleCustomPrice:E=!0,replenishListData:O,replenishListRef:S,flowId:I,selectedCustomPrice:N,segment:P,onChangeCustomPriceHandler:Y,onChangeReplenishListHandler:F}=e,L=(0,a.useRouter)(),{sendInternalAnalytics:D}=(0,u.A)(),[z,R]=(0,d.N)({deps:[N]}),U=(0,s.k)(),H=(0,r.d4)(e=>e.currentCountry),M=(0,r.d4)(e=>e.user.walletBalance),[V,G]=(0,l.useState)(!1),[W,B]=(0,l.useState)(!1),{translations:q,isDesktopDevice:j}=(0,l.useContext)(m.q),K="string"==typeof L.query.paymentType?null==L||null==(n=L.query)?void 0:n.paymentType:null,Q=(0,_.H)({segment:P,paymentType:K}),X=(0,h.a)({priceItems:O}),J=()=>{var e;null==S||null==(e=S.current)||e.scrollIntoView({behavior:"smooth"})},$=(0,l.useCallback)(e=>{let{index:n,initialVisibleCount:t}=e,i=null==O?void 0:O[n];if(!i)return;let l={step_number:n,sum:i.sum,cashback:i.cashback,default:!!i.default,flow_id:I,visible_tiles_count:t,...X};
1D({eventParams:"wallet:top_up_replenishment:".concat(Q,":tile:view"),eventDetailsParams:l})},[O,Q,I]),{initialVisibleCount:Z}=(0,c.p)({containerRef:S,itemSelector:"[data-price-item]",...!j&&{rootMargin:"0px 0px -80px 0px"},onItemVisible:$});return(0,l.useEffect)(()=>{if(""!==y||N)return window.addEventListener("click",J),()=>{window.removeEventListener("click",J)}},[y]),(0,l.useEffect)(()=>{if(!V&&Z>0&&(null==L?void 0:L.isReady)&&(null==M?void 0:M.status)===o.$g){let e={visible_tiles_count:Z,flow_id:I,...X};D({eventParams:"wallet:top_up_replenishment:".concat(Q,":list:view"),eventDetailsParams:e}),G(!0)}},[V,Z,null==L?void 0:L.isReady,null==M?void 0:M.status]),(0,l.useEffect)(()=>{if(!W&&N&&R){let e={visible_tiles_count:Z,flow_id:I,...X};D({eventParams:"wallet:price:".concat(Q,":custom_sum_field:view"),eventDetailsParams:e}),B(!0)}},[W,N,R]),(0,i.FD)("ul",{css:C(),className:U,ref:S,children:[O&&(null==O?void 0:O.length)>0&&O.map(e=>{let n=(0,p.A)((null==e?void 0:e.currency)||""),l=(0,g.A)((null==e?void 0:e.sum)/100,n);return(0,i.Y)("li",{"data-price-item":"true",children:(0,i.Y)(A.A,{inverseView:!j,valueObj:{id:(null==e?void 0:e.id)||"",value:l,selected:(null==t?void 0:t.id)===(null==e?void 0:e.id)||(null==t?void 0:t.sum)===(null==e?void 0:e.sum)},onChange:()=>F({listItem:e}),children:k&&T&&(0,i.Y)(f.A,{customClass:"replenish-list__item--cashback",size:"12",text:q.SUM_CASHBACK("".concat(T,"%")),color:w.ie})})},e.id)}),(0,i.Y)("li",{children:(0,i.Y)(A.A,{inverseView:!j,valueObj:{id:Math.random(),value:q.OTHER_SUM,selected:N},onChange:Y,children:k&&T&&(0,i.Y)(f.A,{customClass:"replenish-list__item--cashback",size:"12",text:q.SUM_CASHBACK("".concat(T,"%")),color:w.ie})})}),N&&(0,i.FD)("li",{className:"replenish-list-custom-price-container",children:[E&&(0,i.Y)(b.A,{size:"16",text:q.ENTER_AMOUNT_OF_REPLENISHMENT}),(0,i.FD)("div",{className:"replenish-custom-price-wrap",ref:z,children:[(0,i.Y)(x.A,{iconRight:T&&T>0&&t&&t.sum>0&&(0,i.Y)(v.A,{badgeColor:w.yG,size:"md",children:(0,i.Y)(f.A,{customClass:"",color:w.qT,size:"12",text:"+ ".concat(T,"%")})}),isAutoFocus:N,customClassName:"replenish-custom-price__input",onChange:Y,placeholder:q.ENTER_AMOUNT,type:"price",value:(null==t?void 0:t.sum)?t.sum.toString():"",error:y,keepStateOnChange:!0}),(0,i.Y)(x.A,{customClassName:"replenish-custom-price__currency",placeholder:(0,p.A)(null==H?void 0:H.default_currency),disabled:!0,value:"",onChange:()=>{}})]})]})]})}},75469:(e,n,t)=>{"use strict";t.d(n,{H:()=>l});var i=t(94937);let l=e=>{let{segment:n,paymentType:t}=e;switch(!0){case!!n:return"wallet_recommended";case t===i.TA.COMPLEX_PURCHASE:return"wallet_after_mass_ppv";case t===i.TA.SINGLE_PPV:return"wallet_after_ppv";default:return"wallet"}}},75870:(e,n,t)=>{"use strict";t.d(n,{a:()=>i});let i=e=>{var n,t;let{priceItems:i}=e;if(!i||!(null==i?void 0:i.length))return{};let l=null==(n=i.map(e=>e.sum))?void 0:n.join(", "),r=null==(t=i.map(e=>e.cashback))?void 0:t.join(", "),a=i.findIndex(e=>e.default),o=a>=0?i[a].sum:null;return{steps:i.length,grid_values:l,cashback_values:r,default_step:a,default_sum:o}}},76091:(e,n,t)=>{"use strict";t.d(n,{A:()=>o});var i=t(18153),l=t(20381),r=t(50099),a=t.n(r);let o=()=>(0,i.Y)("div",{className:"page-loader ".concat(a().pageLoaderContainer),"data-component":"page-loader","data-state":"loading",children:(0,i.Y)(l.A,{size:"22"})})},93129:(e,n,t)=>{"use strict";t.d(n,{$:()=>c});var i=t(74359),l=t(37004),r=t(42149),a=t(94937),o=t(94574);let s={walletPrices:e=>{let{userId:n}=e;return[a.es.WALLET_PRICES,"userId: ".concat(n)]}},c=e=>{var n;let{enabled:t=!0}=null!=e?e:{},a=(0,l.d4)(e=>e.user),c=(0,r._8)(),u=null==a?void 0:a.isAuthenticated,d=null==a||null==(n=a.profile)?void 0:n.id,p=s.walletPrices({userId:d});return(0,i.I)({queryKey:p,queryFn:async()=>(0,o.f7)({requestContext:c}),staleTime:18e5,gcTime:18e5,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,enabled:t&&u})}}}]); 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]="fa0bf530-a1a6-5dfd-b05a-6a4c8df50750")}catch(e){}}(); 3//# debugId=fa0bf530-a1a6-5dfd-b05a-6a4c8df50750
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.