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]="4714f1b2-693b-4b45-b2f1-9b1023177129",e._sentryDebugIdIdentifier="sentry-dbid-4714f1b2-693b-4b45-b2f1-9b1023177129")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3487,4984,6517,8150,8175,8628,8918,9429],{3574:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var a=l(37876),n=l(46767),r=l(26009),s=l.n(r);let i=e=>{let{badgeColor:t,isTooltip:l,children:r,size:i="sm",customClass:o="",borderColor:c=""}=e,d=t||n.DP,u=s()["size-".concat(i)],_="LFBadge ".concat(s().LFBadge," ").concat(o," ").concat(u);return(0,a.jsxs)("span",{className:_,"data-component":"lf-badge",style:{backgroundColor:d,...c&&{outline:"1px solid ".concat(c)}},children:[r,l&&(0,a.jsx)("span",{className:s().tooltip,style:{backgroundColor:d}})]})}},7064:(e,t,l)=>{"use strict";l.d(t,{A:()=>o});var a=l(37876),n=l(86412),r=l(46767),s=l(9853),i=l.n(s);let o=e=>{let{timer:t,customClassName:l="",timeSize:s,fontWeight:o="500",dividerColor:c=r.ie}=e,d=(null==t?void 0:t.days)?String(null==t?void 0:t.days):null,u=(null==t?void 0:t.hours)?String(null==t?void 0:t.hours):"00",_=(null==t?void 0:t.minutes)?String(null==t?void 0:t.minutes):"00",m=(null==t?void 0:t.seconds)?String(null==t?void 0:t.seconds):"00";return(0,a.jsxs)("div",{className:"".concat(i().main," ").concat(l),children:[d&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:i().timeWrap,children:(0,a.jsx)(n.A,{size:s,text:d,type:"p",weight:o})}),(0,a.jsx)("div",{className:i().dividerWrap,children:(0,a.jsx)(n.A,{size:"16",text:":",type:"p",weight:o,color:c})})]}),(0,a.jsx)("div",{className:i().timeWrap,children:(0,a.jsx)(n.A,{size:s,text:u,type:"p",weight:o})}),(0,a.jsx)("div",{className:i().dividerWrap,children:(0,a.jsx)(n.A,{size:"16",text:":",type:"p",weight:o,color:c})}),(0,a.jsx)("div",{className:i().timeWrap,children:(0,a.jsx)(n.A,{size:s,text:_,type:"p",weight:o})}),(0,a.jsx)("div",{className:i().dividerWrap,children:(0,a.jsx)(n.A,{size:"16",text:":",type:"p",weight:o,color:c})}),(0,a.jsx)("div",{className:i().timeWrap,children:(0,a.jsx)(n.A,{size:s,text:m,type:"p",weight:o})})]})}},8408:e=>{e.exports={LFInfoFrame:"LFInfoFrame_LFInfoFrame__UE2fU",iconWrap:"LFInfoFrame_iconWrap__YGfLx"}},8566:(e,t,l)=>{"use strict";l.d(t,{A:()=>u});var a=l(37876),n=l(14232),r=l(27142),s=l(86412),i=l(77043),o=l(72569),c=l(41149),d=l.n(c);let u=e=>{let{color:t,customClass:l="",delay:c=0,duration:u=2e3,isCountUp:_=!0,prevValue:m=0,size:v="",symbol:y="",type:h="LFHeading",value:L,toFixedSymbolAfterDot:p=1,isWalletBalance:C=!1}=e,[x,g]=(0,n.useState)(0),[A,E]=(0,n.useState)(0),f=e=>e*(2-e),S=1e3/60,w=0,P=Math.round(u/(1e3/60)),T=Number.isInteger(x),k=e=>(0,o.A)(e).replace(/,/g," "),b=e=>"00"===String(e).slice(-2)?Number(String(e).slice(0,-2)):k(L),j=()=>{let e=!!(m&&m>L),t=setInterval(()=>{w++,C||E(m);let l=f(w/P),a=e?Number((L/l).toFixed(p)):x&&Number.isInteger(x)?Math.ceil(L*l):Number((L*l).toFixed(p));return e?(w===P&&clearInterval(t),m&&a>m?E(m):C?E(Number(((m-m*l)/100).toFixed(p))):E(a)):!e&&a>m?(w===P&&clearInterval(t),C?E(k(a)):E(a)):void 0},S)};return(0,n.useEffect)(()=>{if(g(C?b(L):L),E(C?b(L):L),c)return void setTimeout(()=>_&&j(),c);_&&j()},[_,L,m]),(0,a.jsx)("div",{className:d().main,children:(0,a.jsx)(()=>{switch(h){case"LFHeading":return(0,a.jsx)(r.A,{size:v||"26",text:T&&"number"==typeof A?"".concat(Math.floor(A)).concat(y):"".concat(A).concat(y),type:"h2",weight:"700",color:t,customClass:l});case"LFSubHeading":return(0,a.jsxs)(s.A,{size:v,weight:"16"===v?"400":"500",children:[T&&"number"==typeof A?Math.floor(A):A,(0,a.jsx)("span",{className:d().currency,children:y})]});case"LFParagraph":return(0,a.jsx)(i.A,{size:v||"16",text:"".concat(A," ").concat(y)});default:return null}},{})})}},8821:e=>{e.exports={timeWrap:"Timer_timeWrap__n4Gqm",main:"LoyaltySystemPurchaseLevelPayWithDiscountBlock_main__WRfCD",item:"LoyaltySystemPurchaseLevelPayWithDiscountBlock_item__dQC0r",itemCashback:"LoyaltySystemPurchaseLevelPayWithDiscountBlock_itemCashback__ntb5p",itemPrice:"LoyaltySystemPurchaseLevelPayWithDiscountBlock_itemPrice__1NFBW",price:"LoyaltySystemPurchaseLevelPayWithDiscountBlock_price__8a9Hq",defaultPrice
1:"LoyaltySystemPurchaseLevelPayWithDiscountBlock_defaultPrice__ayLPx",timerWrap:"LoyaltySystemPurchaseLevelPayWithDiscountBlock_timerWrap__FReaX",timerText:"LoyaltySystemPurchaseLevelPayWithDiscountBlock_timerText__WP55G",timer:"LoyaltySystemPurchaseLevelPayWithDiscountBlock_timer__SzyMm"}},9226:e=>{e.exports={LFIconHistoryPayment:"LFIconHistoryPayment_LFIconHistoryPayment___zys3"}},9717:(e,t,l)=>{"use strict";l.d(t,{A:()=>C});var a=l(18153),n=l(14232),r=l(77328),s=l.n(r),i=l(89099),o=l(37004);let c=()=>{let e=(0,o.d4)(e=>e.currentCountry),t=(0,o.d4)(e=>e.settings),{domain:l}=e,{currentDomain:a}=t;return{baseUrl:"localhost"===a?"http://localhost:3001":"develop.blalafo.com"===l?"http://".concat(l):"https://".concat(l)}};var d=l(43561),u=l(29182),_=l(94937),m=l(56995),v=l(66479),y=l(44634),h=l(60262),L=l(38670);let p={uk:"uk-PL",en:"en-PL",pl:"pl"},C=e=>{var t;let{imageUrl:l,metaRobotsContent:r,shouldHideCanonical:C,shouldHideMetaRobots:x,querySeoMetas:g}=e,A=(0,i.useRouter)(),{baseUrl:E}=c(),f=(0,d.W)(),S=(0,o.d4)(e=>e.activeLanguages),w=(0,o.d4)(e=>e.locale),P=(0,o.d4)(e=>e.currentCountry),{translations:T}=(0,n.useContext)(u.q),k=(null==g?void 0:g.title)||"Lalafo",b=(null==g?void 0:g.description)||"",j=null==g?void 0:g.target_price_page,M=(0,m.v)(f),I=((e,t)=>{var l,a;switch(!0){case!!((0,v.A)(P)&&j):let n=(0,h.R)({url:A.asPath}),r=(null==n?void 0:n.queryParams)&&(0,L.ys)({queryParams:null==n?void 0:n.queryParams,parameter:"price[to]"});return null!=(l=(0,y.A)("".concat(null==f?void 0:f.split("?")[0]).concat(r?"?".concat(r):""),{log:{sourceKey:"canonicalUrl",location:"Meta"}}))?l:"";case t>1:return"".concat(e.split("?")[0],"?page=").concat(t);case!!e:return null!=(a=(0,y.A)(e.split("?")[0],{log:{sourceKey:"canonicalUrl",location:"Meta"}}))?a:"";default:return null}})(f,M),N=f.indexOf("lalafo.com.ua")>0?"GX1yQrDW_4TDhgXLL6zxLJ69sxdYgV0ftCLBSRZ9vww":_.jx[P.id],R=_.uz[P.id],F=M?"".concat(T.PAGE," ").concat(M,". ").concat(k):k,B=M?"".concat(T.PAGE," ").concat(M,". ").concat(b):b,H=null==A||null==(t=A.query)?void 0:t.lang,{defaultLang:O}=w,Y=H?"/".concat(null==A?void 0:A.asPath.split("/").slice(2).join("/")):null==A?void 0:A.asPath;return(0,a.FD)(s(),{children:[(0,a.Y)("title",{children:F}),(0,a.Y)("meta",{name:"description",content:B}),N&&(0,a.Y)("meta",{name:"google-site-verification",content:N}),R&&(0,a.Y)("meta",{name:"facebook-domain-verification",content:R}),!x&&(0,a.Y)("meta",{name:"robots",content:r||"all"}),g&&Object.keys(g).length>0&&(0,a.FD)(a.FK,{children:[(0,a.Y)("meta",{property:"og:title",content:F}),(0,a.Y)("meta",{property:"og:description",content:B}),(0,a.Y)("meta",{property:"og:site_name",content:"Lalafo"}),(0,a.Y)("meta",{property:"og:url",content:f}),(0,a.Y)("meta",{property:"og:image",content:l||"".concat(E,"/images/lalafo-logo.png")}),(0,a.Y)("meta",{property:"og:type",content:"website"}),(0,a.Y)("meta",{property:"al:ios:url",content:f}),(0,a.Y)("meta",{property:"al:ios:app_store_id",content:"1063347253"}),(0,a.Y)("meta",{property:"al:android:url",content:f}),(0,a.Y)("meta",{property:"al:android:package",content:"com.lalafo"}),I&&!C&&(0,a.Y)("link",{href:I,rel:"canonical"})]}),P.id===_.eq&&(e=>S&&S.map(t=>{let l=t.language,n="".concat(E).concat(l===O?"":"/".concat(l)).concat("/"===Y?"":Y);return n&&e[l]?(0,a.Y)("link",{rel:"alternate",hrefLang:e[l],href:n},null==t?void 0:t.language_id):null}))(p)]})}},9853:e=>{e.exports={main:"Timer_main__zFx0_",timeWrap:"Timer_timeWrap__n4Gqm",dividerWrap:"Timer_dividerWrap__NWhoo"}},13267:e=>{e.exports={main:"LoyaltySystemPurchaseLevelTopMicroMarketInfo_main__b3VgA",iconContainer:"LoyaltySystemPurchaseLevelTopMicroMarketInfo_iconContainer__XZJQC",title:"LoyaltySystemPurchaseLevelTopMicroMarketInfo_title__KflFE"}},13333:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var a=l(37876),n=l(14467),r=l(46767);let s=e=>{let{color:t,customClass:l,size:s,onClick:i}=e,o=t||r.zw,c=s||"24",d=l?"LFIconRocket ".concat(l," ").concat("size-".concat(c)," ").concat(o):"LFIconRocket";return(0,a.jsx)(n.A,{size:c,customClass:d,onClick:i,children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.83186 14.0072L9.99284 17.1681C10.7496 17.9249 11.8121 18.1896 12.7827 17.9622L13.5903 22C16.1072 20.7415 17.5365 18.0137 17.1385 15.2279L17.0147 14.361L18.783 12.5927C20.5881 10.7875 21.6767 8.38851 21.8465 5.8413L21.9966 3.58928C22.001 3.52327 22.001 3.45704 21.9966 3.39104C21.9419 2.5699 21.2319 1.94861 20.4107 2.00336L18.1587 2.15349C15.6115 2.32331 13.2125 3.4119 11.4073 5.21705L9.63903 6.98535L8.77207 6.8615C5.98633 6.46353 3.25847 7.8928 2 10.4097L6.03777 11.2173C5.81041 12.1879 6.0751 13.2504 6.83186 14.0072ZM18.4025 8.75837C17.5297 9.63125 16.1144 9.63125 15.2416 8.75837C14.3687 7.88549 14.3687 6.47027 15.2416 5.59739C16.1144 4.72451 17.5297 4.72451 18.4025 5.59739C19.2754 6.47027 19.2754 7.88549 18.4025 8.75837ZM3.49684 20.2802C3.47888 20.2622 3.49748 20.246 3.54641 20.2306C3.53098 20.2795 3.51481 20.2981 3.49684 20.2802ZM3.54641 20.2306C3.66364 20.1936 3.95501 20.161 4.33477 20.1184C5.39164 20 7.13315 19.8048 7.71148 19.2265C8.58436 18.3536 8.58436 16.9384 7.71148 16.0655C6.8386 15.1927 5.42338 15.1927 4.5505 16.0655C3.97217 16.6439 3.77701 18.3854 3.65858 19.4422C3.61602 19.822 3.58337 20.1134 3.54641 20.2306Z",fill:o})})})}},13903:e=>{e.exports={infoCategories:"LoyaltySystemPurchaseLevelSkeleton_infoCategories__ttM0h",infoStats:"LoyaltySystemPurchaseLevelSkeleton_infoStats__Y14lI",rangeSlider:"LoyaltySystemPurchaseLevelSkeleton_rangeSlider__Z74Jl"}},14272:e=>{e.exports={LFSkeleton:"LFSkeleton_LFSkeleton__NtWMh",skeletonKeyframes:"LFSkeleton_skeletonKeyframes__wCMGQ"}},15279:e=>{e.exports={main:"LoyaltySystemPurchaseLevelPayBlock_main__wVPyC",listItem:"LoyaltySystemPurchaseLevelPayBlock_listItem__QH71W",giftText:"LoyaltySystemPurchaseLevelPayBlock_giftText__3YfDD",listItemDivider:"LoyaltySystemPurchaseLevelPayBlock_listItemDivider__KJWw3",listItemTitle:"LoyaltySystemPurchaseLevelPayBlock_listItemTitle__gadv_",listItemValue:"LoyaltySystemPurchaseLevelPayBlock_listItemValue___RBYw"}},16749:e=>{e.exports={main:"RangeSlider_main__vgqUq",disabled:"RangeSlider_disabled__SZjo6",dot:"RangeSlider_dot__s0Ze3",zeroPosition:"RangeSlider_zeroPosition__4Cz_0",finallyPosition:"RangeSlider_finallyPosition__ISwNJ",position:"RangeSlider_position__arO4b"}},18055:(e,t,l)=>{"use strict";l.d(t,{A:()=>
1o});var a=l(37876),n=l(86015),r=l.n(n),s=l(16749),i=l.n(s);let o=e=>{let{inputValue:t,maxValue:l,minValue:n,formatLabel:s,withDot:o,disabled:c,onChangeCompleteInputRange:d,onChangeInputRange:u}=e,_=c?i().disabled:"",m=n===t?i().zeroPosition:l===t?i().finallyPosition:i().position;return(0,a.jsxs)("div",{className:"".concat(i().main," ").concat(m," ").concat(_),children:[o&&(0,a.jsx)("div",{className:i().dot}),(0,a.jsx)(r(),{maxValue:l,minValue:n,formatLabel:s,value:t,disabled:c,onChange:e=>u(Number(e)),onChangeComplete:e=>d&&d(Number(e))})]})}},20518:(e,t,l)=>{"use strict";l.d(t,{DE:()=>a,sL:()=>r});let a=e=>null==e?void 0:e.reduce((e,t)=>t.level>e.level?t:e,e[0]),n=e=>null==e?void 0:e.reduce((e,t)=>null===t.current_level||null===e.current_level?e:t.current_level>e.current_level?t:e,e[0]),r=e=>{let{microMarkets:t,microMarketEvents:l}=e,r=a(t),s=n(l);return r&&(null==s?void 0:s.current_level)&&(null==s?void 0:s.previous_level)&&(null==r?void 0:r.level)>=(null==s?void 0:s.current_level)&&(null==r?void 0:r.level)<(null==s?void 0:s.previous_level)?s:null}},22726:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var a=l(37876),n=l(14272),r=l.n(n);let s=e=>{let{height:t=null,circle:l=!1,className:n="",maxWidth:s=null,marginBottom:i=null,borderRadius:o=4}=e,c="LFSkeleton ".concat(r().LFSkeleton," ").concat(n),d={};return null!==s&&null!==t&&l&&(d.borderRadius="50%"),null!==s&&(d.maxWidth=s),null!==t&&(d.height=t),null!==i&&(d.marginBottom=i),null===o||l||(d.borderRadius=o),(0,a.jsx)("span",{className:c,style:{...d},"data-component":"lf-skeleton"})}},26009:e=>{e.exports={LFBadge:"LFBadge_LFBadge__Ec41g",tooltip:"LFBadge_tooltip__TgjvI","size-sm":"LFBadge_size-sm__OPMCH","size-md":"LFBadge_size-md__UJqUB"}},27142:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var a=l(37876),n=l(56958),r=l.n(n);let s=e=>{let{children:t,color:l,customClass:n,text:s,size:i,weight:o,type:c="h1"}=e,d=i?r()["size-".concat(i)]:"",u=o?r()["weight-".concat(o)]:"",_="LFHeading ".concat(r().LFHeading," ").concat(d," ").concat(u," ").concat(n||"");return(0,a.jsx)(c,{className:_,style:{color:l},"data-component":"lf-heading",children:s||t})}},27413:(e,t,l)=>{"use strict";l.d(t,{J:()=>a});let a=e=>{var t;return!e||(null==(t=Object.values(e))?void 0:t.every(e=>null===e||""===e||Array.isArray(e)&&0===e.length))}},33331:e=>{e.exports={main:"LoyaltySystemPurchaseLevelRewardsSkeleton_main__Qn0Fo",rewardsList:"LoyaltySystemPurchaseLevelRewardsSkeleton_rewardsList__nxgy3"}},34820:(e,t,l)=>{"use strict";l.d(t,{A:()=>T});var a=l(18153),n=l(14232),r=l(18847),s=l.n(r),i=l(15946),o=l(29182),c=l(93577),d=l(11959),u=l(89391),_=l(61407),m=l(93342),v=l(49471),y=l(32958),h=l(28205),L=l(54387),p=l(15865),C=l(95805),x=l(89903),g=l(64787),A=l(37511),E=l(46767);let f=e=>{let{children:t,waitBeforeShow:l=0}=e,[a,r]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=setTimeout(()=>{r(!0)},l);return()=>clearTimeout(e)},[l]),a?t:null};var S=l(88431),w=l.n(S);let P=s()(()=>Promise.all([l.e(2267),l.e(389),l.e(6462),l.e(9357),l.e(1300),l.e(1849)]).then(l.bind(l,91849)),{loadableGenerated:{webpack:()=>[91849]},ssr:!1}),T=e=>{let{analyticsEvent:t,delay:l=0,isActiveReward:r,isDisabledReward:s,rewardName:S,rewardTitle:T,withCashBackFeature:k}=e,{sendInternalAnalytics:b}=(0,i.A)(),[j,M]=(0,n.useState)(!1),[I,N]=(0,n.useState)("url"),[R,F]=(0,n.useState)("animate__bounceIn animate__fast"),{translations:B}=(0,n.useContext)(o.q),H={...k&&{cashback:(0,a.Y)(A.A,{size:"20",color:E.zw})},url:(0,a.Y)(m.A,{size:"20"}),social_network_link:(0,a.Y)(y.A,{}),additional_contacts:(0,a.Y)(p.A,{}),photogallery:(0,a.Y)(C.A,{size:"20"}),working_time:(0,a.Y)(g.A,{}),banner:(0,a.Y)(v.A,{}),branding:(0,a.Y)(d.A,{}),pro_icon:(0,a.Y)(x.A,{}),competitors_absence:(0,a.Y)(L.A,{}),hello_message:(0,a.Y)(h.A,{})},O=e=>{M(e=>!e),N(e),t&&!j&&b({eventParams:t,eventDetailsParams:"reward_type: ".concat(S)})};return(0,n.useEffect)(()=>{l&&setTimeout(()=>{F("animate__fadeOut")},l+4e3)},[]),(0,a.FD)("div",{className:"reward-icon-wrap",children:[(0,a.FD)("div",{onClick:()=>O(S),children:[(0,a.FD)("div",{className:w().rewardIcon,children:[H[S],r&&(0,a.Y)(f,{waitBeforeShow:l,children:(0,a.Y)(u.A,{customClass:"animate__animated animate__bounceIn animate__fast",backgroundColor:E.yG,size:"20"})}),s&&(0,a.Y)(f,{waitBeforeShow:l,children:(0,a.Y)(_.A,{customClass:"animate__animated ".concat(R),color:E.uU,size:"20"})})]}),T&&(0,a.Y)(c.A,{text:B[T]||T,size:"10",color:E.zu,customClass:w().rewardIconCaption})]}),j&&(0,a.Y)(P,{analyticsScreenName:"loyalty_replenishment",onboardingSlide:I,closeModalHandler:()=>M(!1),withCashBackFeature:k})]})}},35870:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSP:()=>eS,default:()=>ew});var a=l(37876),n=l(70889),r=l(14232),s=l(37004),i=l(18847),o=l.n(i),c=l(97672);let d=()=>{var e,t,l,a;let n=(0,s.d4)(e=>e.user),r=!!(null==n||null==(t=n.experiment)||null==(e=t.active)?void 0:e[c.y.discountlevelpurchase.part_2]),i=!!(null==n||null==(a=n.experiment)||null==(l=a.active)?void 0:l[c.y.discountlevelpurchase.part_3]);return{isExperimentDiscountLevelPurchase_part2:r,isExperimentDiscountLevelPurchase_part3:i,isExperimentDiscountLevelPurchase:r||i}};var u=l(82761),_=l(28677),m=l(15946),v=l(94937),y=l(29182),h=l(20716),L=l(41491),p=l(55915),C=l(20518),x=l(27413),g=l(94299),A=l(89099),E=l(32131),f=l(58150),S=l(84315),w=l(44540),P=l(90877),T=l(75801),k=l(89778),b=l(42971),j=l(94466),M=l(86412),I=l(77043),N=l(46767),R=l(89251),F=l(42057),B=l.n(F);let H=e=>{let{currentMicroMarketLevelInfo:t}=e,{translations:l,catalog:n}=(0,r.useContext)(y.q),i=(0,s.d4)(e=>e.loyaltySystem.selectedMicroMarketData),{isExperimentDiscountLevelPurchase:o}
1=d(),c=i&&(0,k.kf)(n.catalogTree,i.selectedMicroMarketCategoryId),u=(null==c?void 0:c.name)||"",_={category_id:null==i?void 0:i.selectedMicroMarketCategoryId,previous_level:-1,current_level:null==i?void 0:i.selectedMicroMarketLevel,show_rewards:!1};return(0,a.jsxs)("div",{className:B().main,"data-component":"loyalty-system-purchase-level-info",children:[o&&(0,a.jsx)(M.A,{size:"20",weight:"700",text:l.SPEED_UP_CATEGORY_GROWTH_WITH_CATEGORY(u),customClass:B().title}),(0,a.jsx)(I.A,{size:"14",text:(()=>{switch(!0){case(null==i?void 0:i.selectedMicroMarketLevel)===v.lL.LEVELS.MAX_LEVEL:return l.KEEP_LEVEL_MAX_ADS_LIMIT_TEXT(v.lL.INFO.SAVE_MICRO_MARKET_MONTH);case(null==i?void 0:i.selectedMicroMarketLevel)===v.lL.LEVELS.PREV_MAX_LEVEL:return l.UPGRADE_TO_LEVEL_MAX_TEXT;default:return l.CHOOSE_THE_LEVEL_WITH_THE_ADS_LIMIT_TEXT}})(),color:N.zw,customClass:B().titleParagraph}),(0,a.jsxs)("div",{className:B().infoStatsContainer,children:[(0,a.jsx)(j.A,{analyticsEventParams:"loyalty_replenishment:price:loyalty_system:onboarding:tap",statsType:R.n.FREE_ADS,value:null==t?void 0:t.ad_limit,color:N.CW,description:l.ADS,screenType:b.C_.PPV,currentMicroMarketEvent:_}),(0,a.jsx)(j.A,{analyticsEventParams:"loyalty_replenishment:price:loyalty_system:onboarding:tap",statsType:R.n.CASHBACK,value:null==t?void 0:t.cashback,symbol:"%",color:N.zy,description:l.CASHBACK_FOR_ADS,screenType:b.C_.PPV,currentMicroMarketEvent:_})]})]})};var O=l(18055);let Y=e=>{var t,l,n,i;let{initAvailableLevel:o,sliderLevelPosition:c,onChangeInputRange:d}=e,u=(0,s.d4)(e=>e.loyaltySystem.microMarketPrices),_=(0,s.d4)(e=>e.loyaltySystem.microMarketBuyPrices),{translations:m}=(0,r.useContext)(y.q),v=Number((null==u?void 0:u.data)&&(null==u||null==(t=u.data[(null==u||null==(l=u.data)?void 0:l.length)-1])?void 0:t.level))||Number((null==_?void 0:_.data)&&(null==_||null==(n=_.data[(null==_||null==(i=_.data)?void 0:i.length)-1])?void 0:n.level));return o&&c&&(0,a.jsx)(O.A,{inputValue:c,formatLabel:()=>"".concat(c," ").concat(m.LEVEL),minValue:o,maxValue:v,onChangeInputRange:d})};var z=l(85458),D=l(13267),V=l.n(D);let W=()=>{let{translations:e}=(0,r.useContext)(y.q);return(0,a.jsxs)("div",{className:V().main,"data-component":"loyalty-system-purchase-level-top-micro-market-info",children:[(0,a.jsx)("div",{className:V().iconContainer,children:(0,a.jsx)(z.A,{color:N.yG,size:"24"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)(M.A,{size:"12",text:e.AS_A_GIFT,weight:"500",color:N.yG,customClass:V().title}),(0,a.jsx)(M.A,{size:"16",text:e.YOU_ARE_AMONG_THE_TOP_USERS_TEXT,weight:"500"}),(0,a.jsx)(I.A,{size:"14",text:e.SAVE_A_LEVEL_FOR_SIX_MONTHS_FOR_FREE})]})]})};var U=l(3574),G=l(93577),q=l(15279),X=l.n(q);let K=e=>{let{currentMicroMarketLevelInfo:t}=e,{translations:l}=(0,r.useContext)(y.q),{price:n,personal_percentage:s,personal_cashback:i,currency:o}=t,c=(0,L.A)(o),d=(0,p.A)(n/100,c,!1),u=(0,p.A)(i/100,c,!1);return(0,a.jsxs)("ul",{className:X().main,"data-component":"loyalty-system-purchase-level-pay-block",children:[(0,a.jsxs)("li",{className:"".concat(X().listItem," ").concat(X().listItemDivider),children:[(0,a.jsx)(M.A,{size:"16",text:l.TOTAL_TO_PAY,weight:"700",customClass:X().listItemTitle}),(0,a.jsx)(M.A,{size:"16",text:d,weight:"700"})]}),(0,a.jsxs)("li",{className:X().listItem,children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(I.A,{size:"14",text:l.PERSONAL_GIFT,customClass:X().giftText}),(0,a.jsxs)(I.A,{size:"14",weight:"500",children:[l.BONUSES_ON_THE_WALLET,(0,a.jsx)(U.A,{badgeColor:N.yG,size:"sm",children:(0,a.jsx)(G.A,{color:N.qT,size:"12",text:"".concat(s||0,"%")})})]})]}),(0,a.jsx)(I.A,{size:"14",text:"+ ".concat(u),color:N.yG,customClass:X().listItemValue})]})]})};var Z=l(51953),$=l(77945),J=l(7064),Q=l(64787),ee=l(8821),et=l.n(ee);let el=e=>{let{currentMicroMarketLevelInfo:t}=e,{price:l,old_price:n=0,personal_percentage:s,personal_cashback:i,currency:o}=t,{translations:c}=(0,r.useContext)(y.q),{isExperimentDiscountLevelPurchase:u,isExperimentDiscountLevelPurchase_part3:_}=d(),m=(0,L.A)(o),h=(0,p.A)(l/100,m,!1),C=(0,p.A)(n/100,m,!1),x=(0,p.A)(i/100,m,!1),g=u&&l<n,A=new Date,E=new Date(A.getFullYear(),A.getMonth(),A.getDate(),v.lL.PROMOTION_CALLBACK_TICKET_TIMER.timerEndHours,v.lL.PROMOTION_CALLBACK_TICKET_TIMER.timerEndMinutes,0,0),f=(A>E?new Date(A.getFullYear(),A.getMonth(),A.getDate()+1,v.lL.PROMOTION_CALLBACK_TICKET_TIMER.timerEndHours,v.lL.PROMOTION_CALLBACK_TICKET_TIMER.timerEndMinutes,0,0):E).getTime(),S=(0,$.h)({value:f}
1)||0,w=(0,Z.Ay)({time:S,isCustomizeTimer:!0,withDays:!0});return(0,a.jsxs)("div",{className:et().main,"data-component":"loyalty-system-purchase-level-pay-with-discount-block",children:[(0,a.jsxs)("div",{className:"".concat(et().item," ").concat(et().itemCashback),children:[(0,a.jsxs)(I.A,{size:"14",weight:"500",children:[c.INSTANT_CASHBACK,(0,a.jsx)(U.A,{badgeColor:N.yG,size:"sm",children:(0,a.jsx)(G.A,{color:N.qT,size:"12",text:"".concat(s||0,"%")})})]}),(0,a.jsx)(I.A,{size:"14",weight:"500",text:x,color:N.yG})]}),(0,a.jsxs)("div",{className:"".concat(et().item," ").concat(et().itemPrice),children:[g&&(0,a.jsxs)("div",{className:et().price,children:[(0,a.jsx)(I.A,{size:"14",text:c.OLD_PRICE}),(0,a.jsx)(I.A,{size:"14",text:C,customClass:et().defaultPrice})]}),(0,a.jsxs)("div",{className:et().price,children:[(0,a.jsx)(I.A,{size:"16",weight:"700",text:g?c.PRICE_FOR_YOU:c.PAYMENT_SUM}),(0,a.jsx)(I.A,{size:"16",weight:"700",text:h,color:g?N.uU:N.zu})]}),g&&_&&(0,a.jsxs)("div",{className:et().timerWrap,children:[(0,a.jsxs)("div",{className:et().timerText,children:[(0,a.jsx)(Q.A,{size:"16"}),(0,a.jsx)(G.A,{size:"12",text:c.PROMOTION_EXPIRES_IN,color:N.zw})]}),(0,a.jsx)(J.A,{timeSize:"14",fontWeight:"700",customClassName:et().timer,dividerColor:N.uU,timer:w})]})]})]})};var ea=l(22726),en=l(33331),er=l.n(en);let es=()=>(0,a.jsxs)("div",{className:er().main,"data-component":"loyalty-system-purchase-level-rewards-skeleton",children:[(0,a.jsx)(ea.A,{borderRadius:50,height:20,maxWidth:100,marginBottom:12}),(0,a.jsx)("ul",{className:er().rewardsList,children:Array.from({length:10},(e,t)=>(0,a.jsx)(ea.A,{borderRadius:50,circle:!0,height:40,maxWidth:40},"rewards-".concat(t)))})]});var ei=l(40081),eo=l.n(ei);let ec=e=>{var t;let{currentMicroMarketLevelInfo:l,initAvailableLevel:n,queryLevel:i,sliderLevelPosition:o,isOrganicGrowInMicroMarket:u,totalPrice:_,onChangeInputRange:m}=e,h=(0,s.d4)(e=>e.loyaltySystem.microMarkets),L=(0,s.d4)(e=>e.user),p=(0,s.wA)(),C=(0,A.useRouter)(),{translations:x}=(0,r.useContext)(y.q),E=L.experiment.data,f=(0,w.A)(E,c.y.cashbackui.name,c.y.cashbackui.partition),{isExperimentDiscountLevelPurchase:k}=d(),b=i===v.lL.LEVELS.PREV_MAX_LEVEL,j=i===v.lL.LEVELS.MAX_LEVEL&&!u,M=!0===b?x.ONLY_FIFTEEN_PERCENT_OF_YOUR_COMPETITORS_TEXT:x.ONLY_PERCENT_OF_YOUR_COMPETITORS_TEXT(v.lL.INFO.SAVE_MICRO_MARKET_MONTH),I=null==h||null==(t=h.data)?void 0:t.rewards,N=I&&o?(0,S.Z)({rewards:I||{},type:"dynamic-rewards",delay:0,prevLevel:i,currentLevel:o}):[];return(0,r.useEffect)(()=>{let e=()=>{p((0,g.UT)())};return C.events.on("routeChangeStart",e),()=>{C.events.off("routeChangeStart",e)}},[]),(0,a.jsxs)("div",{className:"".concat(eo().contentContainer," ").concat(eo().background),"data-component":"loyalty-system-purchase-level-setting",children:[(0,a.jsx)(H,{currentMicroMarketLevelInfo:l}),j?0!==_&&(0,a.jsx)(T.A,{type:"blue",typeText:M}):(0,a.jsx)(Y,{initAvailableLevel:n,sliderLevelPosition:o,onChangeInputRange:m}),i===v.lL.LEVELS.MAX_LEVEL&&0===_?(0,a.jsx)(W,{}):(0,a.jsx)(a.Fragment,{children:f||k?l&&(0,a.jsx)(el,{currentMicroMarketLevelInfo:l}):l&&(0,a.jsx)(K,{currentMicroMarketLevelInfo:l})}),h.status===v._||h.status===v.Q0?(0,a.jsx)(es,{}):(0,a.jsx)(P.A,{rewardsList:N,analyticsEvent:"loyalty_replenishment:price:loyalty_system:link:tap"})]})};var ed=l(47377),eu=l(66517),e_=l(61298),em=l(50222),ev=l(88299);let ey=()=>{var e;let{redirectToBackUrl:t}=(0,u.A)(),l=(0,A.useRouter)(),{translations:n,catalog:s}=(0,r.useContext)(y.q),i=(0,ed.k)()===v.ue,o=Number(null==l||null==(e=l.query)?void 0:e.id),c=o?(0,k.kf)(s.catalogTree,o):null,d=(null==c?void 0:c.name)||"",_=()=>t();return(0,a.jsx)(a.Fragment,{children:i?(0,a.jsx)(e_.A,{leftButton:(0,a.jsx)(ev.A,{}),backButtonClickHandler:_,title:n.BACK}):(0,a.jsx)(eu.A,{styles:{defaultColor:"",scrollColor:"",backgroundColor:"transparent",alternativeBackgroundColor:N.qT},isChangeTopBar:!0,leftButton:(0,a.jsx)(em.A,{}),leftButtonClickHandler:_,title:d})})};var eh=l(13903),eL=l.n(eh);let ep=()=>(0,a.jsxs)("div",{className:eo().contentContainer,"data-component":"loyalty-system-purchase-level-skeleton",children:[(0,a.jsxs)("div",{className:eL().infoCategories,children:[(0,a.jsx)(ea.A,{borderRadius:50,height:24,marginBottom:8,maxWidth:120}),(0,a.jsx)(ea.A,{borderRadius:50,height:16,maxWidth:240})]}),(0,a.jsxs)("div",{className:eL().infoStats,children:[(0,a.jsx)(ea.A,{borderRadius:12,height:78,maxWidth:228}),(0,a.jsx)(ea.A,{borderRadius:12,height:78,maxWidth:228})]}),(0,a.jsxs)("div",{className:eL().rangeSlider,children:[(0,a.jsx)(ea.A,{borderRadius:20,height:12,maxWidth:344,marginBottom:4}),(0,a.jsx)(ea.A,{borderRadius:20,height:20,maxWidth:76})]}),(0,a.jsx)(es,{}),(0,a.jsx)("div",{children:(0,a.jsx)(ea.A,{borderRadius:12,height:106,maxWidth:468})})]}),eC=e=>e?(null==e?void 0:e.length)>0&&e.reduce((e,t)=>
1({...e,[t.level]:{...t}}),{}):{},ex=o()(()=>Promise.all([l.e(4230),l.e(9459)]).then(l.bind(l,69459)),{loadableGenerated:{webpack:()=>[69459]},ssr:!1}),eg=o()(()=>Promise.all([l.e(6390),l.e(9923),l.e(3845),l.e(4308),l.e(9181)]).then(l.bind(l,71562)),{loadableGenerated:{webpack:()=>[71562]},ssr:!1}),eA=o()(()=>Promise.all([l.e(2548),l.e(7266)]).then(l.bind(l,17266)),{loadableGenerated:{webpack:()=>[17266]},ssr:!1}),eE=e=>{var t,l,n,i,o,c,S,w;let{query:P}=e,T=(0,s.wA)(),{sendInternalAnalytics:k}=(0,m.A)(),{redirectToUrl:b}=(0,u.A)(),j=(0,A.useRouter)(),{isLoyaltySystemBasedApp:M}=(0,_.y)(),{toggleUserAuthModal:I,translations:N}=(0,r.useContext)(y.q),R=(0,s.d4)(e=>e.user),F=(0,s.d4)(e=>e.loyaltySystem),B=Number(null==P?void 0:P.id),H=Number(null==P?void 0:P.level),O=null==P?void 0:P.flow_id,Y=null==P?void 0:P.deferred_purchase_id,[z,D]=(0,r.useState)(!1),[V,W]=(0,r.useState)(null),[U,G]=(0,r.useState)(null),[q,X]=(0,r.useState)(!1),[K,Z]=(0,r.useState)(!1),[$,J]=(0,r.useState)([]),{isExperimentDiscountLevelPurchase:Q}=d(),{createPurchasePrototypeWithRedirect:ee,isPending:et}=(0,h.vi)(),el=null==F?void 0:F.selectedMicroMarketData,ea=null==F?void 0:F.upgradedMicroMarketsData,en=null==F?void 0:F.microMarketPrices,er=null==F?void 0:F.microMarketBuyPrices,es=null==F?void 0:F.microMarketLockMaxLevel,ei=null==F||null==(l=F.microMarkets)||null==(t=l.data)?void 0:t.micromarkets,ed=eC(null==en?void 0:en.data),eu=eC(null==er?void 0:er.data),e_=U&&(ed[U]||eu[U]),em=e_&&Number(null==e_?void 0:e_.currency),ev=e_&&((null==e_?void 0:e_.replenish_wallet)/100||(null==e_?void 0:e_.price)/100)||0,eh=(0,L.A)(em),eL=(0,p.A)(ev,eh,!1),eE=Number(null==j||null==(n=j.query)?void 0:n.level),ef=null==ei?void 0:ei.filter(e=>e.category_id!==B),eS=(0,C.DE)(ef),ew=!eS||H>(null==eS?void 0:eS.level)?H:null==eS?void 0:eS.level,eP=0===ev?N.SAVE_THE_LEVEL_FOR_FREE:N.PAY_SUM(eL),eT={category_id:(null==es||null==(i=es.data)?void 0:i.category_id)||null,previous_level:(null==es||null==(o=es.data)?void 0:o.level)||null,current_level:(null==es||null==(c=es.data)?void 0:c.level)||null,show_rewards:!1},ek=()=>{if(e_){let e=null==ei?void 0:ei.find(e=>e.category_id===B),t=null==ea?void 0:ea.some(e=>e.category_id===B),l=ea;e&&(l=t?ea.map(t=>t.category_id===B?e:t):[...ea,e],T((0,g.ez)({data:l}
1))),k({eventParams:"loyalty_replenishment:price:loyalty_system:button:tap",eventDetailsParams:"\n status: success,\n category_id: ".concat(B,",\n old_level: ").concat(H,",\n new_level: ").concat(null==e_?void 0:e_.level,",\n currency: ").concat(null==e_?void 0:e_.currency,",\n flow_id: ").concat(O,",\n price: ").concat(null==e_?void 0:e_.price,",\n cashback_replenishment: ").concat(null==e_?void 0:e_.personal_cashback,",\n ")})}ee({purchasePrototypeParams:{type_id:v.F_.PURCHASE_TYPE_ID.TYPE_BUY_LEVEL,sum:null,currency:null,deferred_purchase_id:Y||null,auto_replenish:!1,flow_id:O,user_id:R.profile.id,category_id:B,level:U}})},eb=()=>b({path:v.W_.LOYALTY_SYSTEM});return((0,r.useEffect)(()=>{if(R.status===v.o1&&!R.isAuthenticated&&!R.userAuthModalIsOpen)return I({isUserAuthRequired:!0,forceOpen:!0});(null==R?void 0:R.isAuthenticated)&&((null==er?void 0:er.status)===v.Q0&&B&&T((0,g.wB)({categoryId:B})),(0,x.J)(el)&&T((0,g.cO)({categoryId:B,level:H}))),R.status!==v.Qd||R.isAuthenticated||b({path:v.W_.HOME_PAGE})},[null==R?void 0:R.isAuthenticated]),(0,r.useEffect)(()=>{if(eE&&er.status===v.$g){let e=q||1===eE?v.lL.LEVELS.MIN_UPGRADABLE_LEVEL:eE;W(e),G((()=>{var t,l,a,n;return!0===(q&&eE===v.lL.LEVELS.MAX_LEVEL)?v.lL.LEVELS.MAX_LEVEL:(null==(l=en.data)||null==(t=l.filter(e=>null==e?void 0:e.default)[0])?void 0:t.level)||(null==(n=er.data)||null==(a=n.filter(e=>null==e?void 0:e.default)[0])?void 0:a.level)||e})())}},[eE,er.data,en.data,F.microMarkets.data,q,null==R||null==(S=R.experiment)?void 0:S.status]),(0,r.useEffect)(()=>((null==es?void 0:es.status)===v.$g&&D(!0),()=>{(null==es?void 0:es.status)===v.$g&&(D(!1),T((0,g.UT)()))}),[null==es?void 0:es.status]),(0,r.useEffect)(()=>
1{e_&&k({eventParams:"loyalty_replenishment:price:loyalty_system:button:view",eventDetailsParams:"\n category_id: ".concat(B,",\n old_level: ").concat(H,",\n recommended_level: ").concat(V,",\n currency: ").concat(null==e_?void 0:e_.currency,",\n flow_id: ").concat(O,",\n price: ").concat(null==e_?void 0:e_.price,",\n cashback_replenishment: ").concat(null==e_?void 0:e_.personal_cashback,",\n ")})},[V]),(0,r.useEffect)(()=>{var e,t;(null==(e=F.microMarkets)?void 0:e.status)===v.Q0&&T((0,g.vM)()),F.microMarkets.status===v.$g&&X((null==ei||null==(t=ei.find(e=>e.category_id===B))?void 0:t.paid_level)===null)},[F.microMarkets.status]),(0,r.useEffect)(()=>{U&&!$.includes(U)&&Q&&(J([...$,U]),k({eventParams:"loyalty_replenishment:loyalty_system:price:price_label:view",eventDetailsParams:{category_id:B,old_level:H,flow_id:O,level:U,old_price_wo_discount:null==e_?void 0:e_.old_price,new_price_w_discount:null==e_?void 0:e_.price}}))},[U,Q]),(0,r.useLayoutEffect)(()=>{M||b({path:v.W_.ACCOUNT_PAGE})},[M]),M)?(0,a.jsxs)("div",{className:eo().main,"data-page":"loyalty-system-purchase-level","data-component":"loyalty-system-purchase-level",children:[(0,a.jsxs)("div",{className:eo().container,children:[(0,a.jsx)(ey,{}),(0,a.jsx)("div",{className:eo().levelContainer,children:(null==en?void 0:en.status)===v._||(null==er?void 0:er.status)===v._||(null==(w=F.microMarkets)?void 0:w.status)===v._?(0,a.jsx)("div",{className:eo().background,children:(0,a.jsx)(ep,{})}):((null==en?void 0:en.status)===v.$g||(null==er?void 0:er.status)===v.$g)&&e_?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ec,{currentMicroMarketLevelInfo:e_,initAvailableLevel:V,isOrganicGrowInMicroMarket:q,queryLevel:H,sliderLevelPosition:U,onChangeInputRange:e=>{G(e)},totalPrice:ev}),(0,a.jsx)("div",{className:eo().buttonContainer,children:(0,a.jsx)(E.A,{size:"large",text:eP,type:"primary-green",onClick:()=>{ek()},loading:(null==es?void 0:es.status)===v._||et})})]}):((null==en?void 0:en.status)===v.fF||(null==er?void 0:er.status)===v.fF)&&(0,a.jsx)(f.default,{customClassName:eo().errorScreen,buttonClickHandler:()=>{T((0,g.wB)({categoryId:B}))}})})]}),z&&(null==es?void 0:es.status)===v.$g&&(0,a.jsx)(ex,{closeHandler:eb,children:(0,a.jsx)(eg,{isLockMaxLevel:!0,currentMicroMarketEvent:eT,continueButtonClickHandler:eb,analyticsScreen:"loyalty_replenishment"})}),K&&(0,a.jsx)(eA,{currentLevel:null==e_?void 0:e_.level,defaultLevel:ew,submitHandler:ek,closeHandler:()=>Z(!1)})]}):null};var ef=l(9717),eS=!0;let ew=e=>{let{query:t}=e;return(0,a.jsxs)(n.default,{pageName:v.Jt.PURCHASE_LEVEL,mobileBottomBarDisable:!0,children:[(0,a.jsx)(eE,{query:t}),(0,a.jsx)(ef.A,{metaRobotsContent:"noindex, nofollow"})]})}},38953:e=>{e.exports={refreshScreenContainer:"RefreshScreen_refreshScreenContainer__EyCw6"}},40081:e=>{e.exports={main:"LoyaltySystemPurchaseLevel_main__u8twp",container:"LoyaltySystemPurchaseLevel_container__fJ8Hz",background:"LoyaltySystemPurchaseLevel_background__i1v0Q",show:"LoyaltySystemPurchaseLevel_show__rB_7F",contentContainer:"LoyaltySystemPurchaseLevel_contentContainer__X84vk",levelContainer:"LoyaltySystemPurchaseLevel_levelContainer__939Bp",rewardsList:"LoyaltySystemPurchaseLevel_rewardsList__hOXQd",buttonContainer:"LoyaltySystemPurchaseLevel_buttonContainer__4JCTY",errorScreen:"LoyaltySystemPurchaseLevel_errorScreen__ZHexm"}},41149:e=>{e.exports={main:"CountAnimation_main__aiVSf",currency:"CountAnimation_currency__foiKT"}},42057:e=>{e.exports={main:"LoyaltySystemPurchaseLevelInfo_main__N_Yqq",openModal:"LoyaltySystemPurchaseLevelInfo_openModal__DKwZm",infoStatsContainer:"LoyaltySystemPurchaseLevelInfo_infoStatsContainer__67OT0",itemStatsContainer:"LoyaltySystemPurchaseLevelInfo_itemStatsContainer__N4cu2",title:"LoyaltySystemPurchaseLevelInfo_title__i_1yB",titleParagraph:"LoyaltySystemPurchaseLevelInfo_titleParagraph___b_uc"}},42971:(e,t,l)=>{"use strict";l.d(t,{C_:()=>r,ay:()=>n,jK:()=>a});var a=function(e){return e[e.ONE=0]="ONE",e[e.TWO=1]="TWO",e[e.THREE=2]="THREE",e}({}),n=function(e){return e.SAVE="save",e.SPEED_UP="speed_up",e.MANAGE="manage",e}({}),r=function(e){return e[e.LALAFO_CLUB=0]="LALAFO_CLUB",e[e.PPV=1]="PPV",e}({})},43561:(e,t,l)=>{"use strict";l.d(t,{W:()=>r});var a=l(89099),n=l(37004);let r=()=>{let e=(0,a.useRouter)(),t=(0,n.d4)(e=>e.currentCountry);return"https://".concat(t.domain).concat(e.asPath)}},51953:(e,t,l)=>{"use strict";l.d(t,{Ay:()=>c,Lh:()=>o,jh:()=>r,to:()=>s});var a=l(14232),n=l(94937);let r=e=>{let t=e%n.$T.MINUTE,l=Math.floor(e/n.$T.MINUTE),a=Math.floor(l/n.$T.MINUTE);a&&(l-=a*n.$T.MINUTE);let r=l<10?"0":"",s=t<10?"0":"";return a?"".concat(a,":").concat(r).concat(l,":").concat(s).concat(t):"".concat(r).concat(l,":").concat(s).concat(t)},s=e=>{let{time:t}=e,l=t&&t.split(":").map(e=>Number(e))||[];switch(l.length){case 3:{let[e,t,a]=l;return 3600*e+60*t+a}case 2:{let[e,t]=l;return 60*e+t}case 1:return l[0];default:return 0}},i=e=>{let{currentTimerDown:t,withDays:l}=e;if(0===t||t<0)return{hours:"00",minutes:"00",seconds:"00"};let a=Math.floor(t/n.$T.DAY),r=l?Math.floor(t%n.$T.DAY/n.$T.HOUR):Math.floor(t/n.$T.HOUR),s=Math.floor(t%n.$T.HOUR/n.$T.MINUTE),i=t%n.$T.MINUTE,o=a>0?a.toString().padStart(2,"0"):"00",c=r>0?r.toString().padStart(2,"0"):"00",d=s>0?s.toString().padStart(2,"0"):"00",u=i>0?i.toString().padStart(2,"0"):"00";return{...l&&{days:o},hours:c,minutes:d,seconds:u}},o=e=>
1{let{time:t,isLoop:l=!1,isReturnNumber:n=!1,isCustomizeTimer:s=!1,isReturnCustomizeTimer:o=!1,withDays:c=!1}=e,[d,u]=(0,a.useState)(!1),[_,m]=(0,a.useState)(0);return((0,a.useEffect)(()=>{let e=null;return _>0?e=setInterval(()=>{m(e=>e-1)},1e3):null!==e&&0===_&&clearInterval(e),()=>{null!==e&&clearInterval(e)}},[_]),(0,a.useEffect)(()=>{u(!0),m(t)},[t]),l&&0===_&&m(t),0!==_)?n?_:s?i({currentTimerDown:_,withDays:c}):r(_):0===_&&o?i({currentTimerDown:_}):d&&0===_?null:void 0},c=o},53089:e=>{e.exports={rewardIcon:"LoyaltySystemRewardIcon_rewardIcon__ANcBi",main:"LoyaltySystemPurchaseLevelRewardsList_main__BlGs1",title:"LoyaltySystemPurchaseLevelRewardsList_title__p8PIm",icons:"LoyaltySystemPurchaseLevelRewardsList_icons__WiuMJ",onlyIcons:"LoyaltySystemPurchaseLevelRewardsList_onlyIcons__Mngog"}},56958:e=>{e.exports={LFHeading:"LFHeading_LFHeading__0D7d9","size-40":"LFHeading_size-40__lEOSo","size-32":"LFHeading_size-32__wiqXN","size-26":"LFHeading_size-26__QZG2k","size-20":"LFHeading_size-20__TBMcI","size-16":"LFHeading_size-16__svJ97","weight-500":"LFHeading_weight-500__rfHwh","weight-700":"LFHeading_weight-700__39a_q"}},56995:(e,t,l)=>{"use strict";l.d(t,{v:()=>a});let a=e=>{let t=e?e.split("?"):null;return e.includes("page=")&&t&&t[1]?e.split("?")[1].split("&").reduce((e,t)=>Math.max(e,t.includes("page=")&&Number(t.replace("page=",""))||0),-1):0}},58150:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>u});var a=l(18153),n=l(14232),r=l(29182),s=l(32131),i=l(77043),o=l(85866),c=l(38953),d=l.n(c);let u=e=>{let{buttonClickHandler:t,buttonText:l="",customClassName:c="",descriptionText:u="",loadingStatus:_=!1}=e,{translations:m}=(0,n.useContext)(r.q);return(0,a.FD)("div",{className:"".concat(d().refreshScreenContainer," ").concat(c),children:[(0,a.Y)(o.A,{}),(0,a.Y)(i.A,{size:"16",text:u||m.SOMETHING_WENT_WRONG}),(0,a.Y)(s.A,{size:"large",text:l||m.RETRY,type:"primary-green",onClick:t,loading:_})]})}},58481:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lang]/loyalty-system/purchase/categoryId/[id]/level/[level]",function(){return l(35870)}])},59925:e=>{e.exports={main:"LoyaltySystemTriggerInfoBlock_main__T6tnq"}},60775:e=>{e.exports={mobileTopBarHideHeightContainer:"MobileTopBar_mobileTopBarHideHeightContainer__1iB_O"}},61298:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var a=l(37876),n=l(77043),r=l(61709),s=l.n(r);let i=e=>{let{title:t,leftButton:l,backButtonClickHandler:r,"data-testid":i}=e;return(0,a.jsxs)("div",{className:s().backButtonWrapper,"data-component":"back-button","data-testid":i,onClick:e=>{if(e.preventDefault(),r)return r()},children:[(0,a.jsx)("button",{type:"button",className:s().backButton,children:l}),t&&(0,a.jsx)(n.A,{size:"14",text:t})]})}},61407:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var a=l(37876),n=l(14467),r=l(46767);let s=e=>{let{color:t,secondaryColor:l,customClass:s,size:i,onClick:o}=e,c=t||r.zw,d=l||r.qT,u=i||"16",_=s?"LFIconCrossFilled ".concat(s," ").concat("size-".concat(u)," ").concat(c):"LFIconCrossFilled";return(0,a.jsx)(n.A,{size:u,customClass:_,onClick:o,children:(0,a.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("circle",{cx:"16.0013",cy:"16.0003",r:"13.3333",fill:c}),(0,a.jsx)("path",{d:"M12.2305 12.2285L19.7729 19.771M12.2305 19.771L19.7729 12.2285",stroke:d,strokeWidth:"1.5",strokeLinecap:"round"})]})})}},61709:e=>{e.exports={LFParagraph:"LFParagraph_LFParagraph__7Blf1",backButtonWrapper:"BackButton_backButtonWrapper__rnOsI",backButton:"BackButton_backButton__n2t1O"}},66517:(e,t,l)=>{"use strict";l.d(t,{A:()=>d});var a=l(18153),n=l(18847),r=l.n(n),s=l(60775),i=l.n(s);let o=r()(()=>Promise.all([l.e(2267),l.e(389),l.e(3938)]).then(l.bind(l,83938)),{loadableGenerated:{webpack:()=>[83938]},ssr:!1}),c=r()(()=>Promise.all([l.e(9520),l.e(7713)]).then(l.bind(l,17713)),{loadableGenerated:{webpack:()=>[17713]},ssr:!1}),d=e=>{let{kind:t="default",title:l,leftButton:n,leftButtonClickHandler:r,rightButton:s,rightButtonClickHandler:d,isChangeTopBar:u,withoutHideContainer:_,styles:m}=e;return(0,a.FD)("header",{children:[(0,a.Y)(()=>"equal-sides"===t?(0,a.Y)(c,{title:l,leftButton:n,leftButtonClickHandler:r,rightButton:s,rightButtonClickHandler:d,isChangePositionTopBar:u,styles:m}):(0,a.Y)(o,{title:l,leftButton:n,leftButtonClickHandler:r,rightButton:s,rightButtonClickHandler:d,isChangePositionTopBar:u,styles:m}),{}
1),!_&&(0,a.Y)("div",{className:i().mobileTopBarHideHeightContainer})]})}},71449:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var a=l(37876),n=l(14467),r=l(46767);let s=e=>{let{color:t,customClass:l,size:s,onClick:i}=e,o=t||r.CW,c=s||"32",d=l?"LFIconAds ".concat(l," ").concat("size-".concat(c)," ").concat(o):"LFIconAds";return(0,a.jsx)(n.A,{size:c,customClass:d,onClick:i,children:(0,a.jsxs)("svg",{viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M3.16602 5.33341C3.16602 3.86066 4.35992 2.66675 5.83268 2.66675H12.4397C13.9124 2.66675 15.1063 3.86066 15.1063 5.33341V11.9404C15.1063 13.4131 13.9124 14.6071 12.4397 14.6071H5.83268C4.35992 14.6071 3.16602 13.4131 3.16602 11.9404V5.33341Z",fill:o}),(0,a.jsx)("path",{d:"M17.8922 5.33341C17.8922 3.86066 19.0861 2.66675 20.5589 2.66675H27.1658C28.6386 2.66675 29.8325 3.86066 29.8325 5.33341V11.9404C29.8325 13.4131 28.6386 14.6071 27.1658 14.6071H20.5589C19.0861 14.6071 17.8922 13.4131 17.8922 11.9404V5.33341Z",fill:o}),(0,a.jsx)("path",{d:"M3.16602 20.0598C3.16602 18.587 4.35992 17.3931 5.83268 17.3931H12.4397C13.9124 17.3931 15.1063 18.587 15.1063 20.0598V26.6667C15.1063 28.1395 13.9124 29.3334 12.4397 29.3334H5.83268C4.35992 29.3334 3.16602 28.1395 3.16602 26.6667V20.0598Z",fill:o}),(0,a.jsx)("path",{d:"M17.8922 20.0598C17.8922 18.587 19.0861 17.3931 20.5589 17.3931H27.1658C28.6386 17.3931 29.8325 18.587 29.8325 20.0598V26.6667C29.8325 28.1395 28.6386 29.3334 27.1658 29.3334H20.5589C19.0861 29.3334 17.8922 28.1395 17.8922 26.6667V20.0598Z",fill:o})]})})}},72534:(e,t,l)=>{"use strict";l.d(t,{A:()=>o});var a=l(37876),n=l(14467),r=l(46767),s=l(9226),i=l.n(s);let o=e=>{let{color:t,customClass:l,size:s,onClick:o}=e,c=t||r.ie,d=s||"24",u="".concat(i().LFIconHistoryPayment," ").concat(l," ").concat("size-".concat(d)," ").concat(c);return(0,a.jsx)(n.A,{size:d,customClass:u,onClick:o,children:(0,a.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.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,a.jsx)("rect",{x:"11",y:"5",width:"2",height:"8",rx:"1",fill:c}),(0,a.jsx)("rect",{x:"11",y:"13",width:"2",height:"6",rx:"1",transform:"rotate(-60 11 13)",fill:c}),(0,a.jsx)("path",{d:"M1.02686 4.66748L2.37493 8.33254L6.22301 7.66748",stroke:c,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}},73487:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var a=l(37876),n=l(14467),r=l(46767);let s=e=>{let{color:t,customClass:l="",size:s,colorHover:i,onClick:o}=e,c=s||"16",d=t||r.zw,u="LFIconInfoTransparent ".concat(l," ").concat("size-".concat(c));return(0,a.jsx)(n.A,{size:c,customClass:u,onClick:o,colorHover:i,children:(0,a.jsx)("svg",{viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00065 1.8335C4.32052 1.8335 1.33398 4.82003 1.33398 8.50016C1.33398 12.1803 4.32052 15.1668 8.00065 15.1668C11.6808 15.1668 14.6673 12.1803 14.6673 8.50016C14.6673 4.82003 11.6808 1.8335 8.00065 1.8335ZM2.26422 8.50016C2.26422 5.33378 4.83427 2.76373 8.00065 2.76373C11.167 2.76373 13.7371 5.33378 13.7371 8.50016C13.7371 11.6665 11.167 14.2366 8.00065 14.2366C4.83427 14.2366 2.26422 11.6665 2.26422 8.50016ZM7.33398 5.8335C7.33398 6.20168 7.63246 6.50016 8.00065 6.50016C8.36884 6.50016 8.66732 6.20168 8.66732 5.8335C8.66732 5.46531 8.36884 5.16683 8.00065 5.16683C7.63246 5.16683 7.33398 5.46531 7.33398 5.8335ZM7.33398 10.5002C7.33398 10.8684 7.63246 11.1668 8.00065 11.1668C8.36884 11.1668 8.66732 10.8684 8.66732 10.5002V7.8335C8.66732 7.46531 8.36884 7.16683 8.00065 7.16683C7.63246 7.16683 7.33398 7.46531 7.33398 7.8335V10.5002Z",fill:d})})})}},75801:(e,t,l)=>{"use strict";l.d(t,{A:()=>m});var a=l(18153),n=l(14232),r=l(29182),s=l(77043),i=l(75863),o=l(72534),c=l(13333),d=l(46767),u=l(59925),_=l.n(u);let m=e=>{let{customClassName:t="",type:l,typeText:u}=e,{translations:m}=(0,n.useContext)(r.q),v={yellow:{icon:(0,a.Y)(c.A,{color:d.bH}),backgroundColor:d.$k,title:m.KEEP_SPENDING_MONEY_ON_ADS_TO_KEEP_OR_LEVEL_UP},green:{icon:(0,a.Y)(c.A,{color:d.yG}),backgroundColor:d._D,title:m.YOU_ARE_AT_THE_MAXIMUM_LEVEL_TEXT},blue:{icon:(0,a.Y)(c.A,{color:d.jt}),backgroundColor:d.R9,title:u},red:{icon:(0,a.Y)(o.A,{color:d.Zm}),backgroundColor:d.yx,title:m.YOUR_SPENDING_IN_THE_LAST_30_DAYS_HAS_BEEN_LESS_TEXT}};return(0,a.Y)("div",{className:"".concat(_().main," ").concat(t),children:(0,a.Y)(i.A,{backgroundColor:v[l].backgroundColor,icon:v[l].icon,children:(0,a.Y)(s.A,{size:"14",text:v[l].title})})})}},75863:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var a=l(37876),n=l(8408),r=l.n(n);let s=e=>{let{customClassName:t="",backgroundColor:l="",icon:n,children:s}=e;return(0,a.jsxs)("span",{style:{backgroundColor:l},className:"LFInfoFrame ".concat(r().LFInfoFrame," ").concat(t),"data-component":"lf-info-frame",children:[n&&(0,a.jsx)("div",{className:r().iconWrap,children:n}),s]})}}
1,77945:(e,t,l)=>{"use strict";l.d(t,{h:()=>a});let a=e=>{let{value:t}=e,l=Math.floor((t-Date.now())/1e3);return l>=0?l:null}},78313:e=>{e.exports={main:"LoyaltySystemLevelItemStats_main__F4zyX",mainInfoContainer:"LoyaltySystemLevelItemStats_mainInfoContainer__1mfe1",iconContainer:"LoyaltySystemLevelItemStats_iconContainer__atdXx",itemStats:"LoyaltySystemLevelItemStats_itemStats__XuABq",description:"LoyaltySystemLevelItemStats_description__8yR0o"}},85458:(e,t,l)=>{"use strict";l.d(t,{A:()=>s});var a=l(37876),n=l(14467),r=l(46767);let s=e=>{let{color:t,customClass:l,size:s,onClick:i}=e,o=t||r.zw,c=s||"20",d=l?"LFIconGift ".concat(l," ").concat("size-".concat(c)," ").concat(o):"LFIconGift";return(0,a.jsx)(n.A,{size:c,customClass:d,onClick:i,children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M4.38462 19.1409C4.38462 19.8992 4.67637 20.6264 5.1957 21.1626C5.71504 21.6988 6.4194 22 7.15385 22H11.1346C11.1805 22 11.2245 21.9812 11.257 21.9477C11.2895 21.9142 11.3077 21.8687 11.3077 21.8213V13.6014C11.3077 13.554 11.2895 13.5085 11.257 13.475C11.2245 13.4415 11.1805 13.4227 11.1346 13.4227H4.73077C4.63896 13.4227 4.55092 13.4603 4.486 13.5274C4.42109 13.5944 4.38462 13.6853 4.38462 13.7801V19.1409ZM11.3077 11.8144V6.9897H12.6923V11.8144C12.6923 11.8618 12.7105 11.9073 12.743 11.9408C12.7755 11.9743 12.8195 11.9931 12.8654 11.9931H18.9231C19.1589 11.9931 19.3931 11.9516 19.6154 11.8703C20.02 11.722 20.3702 11.4481 20.6181 11.0862C20.866 10.7243 20.9994 10.2921 21 9.84881V9.13403C21 8.56532 20.7812 8.0199 20.3917 7.61776C20.0022 7.21562 19.4739 6.9897 18.9231 6.9897H17.1689C17.1539 6.98945 17.1391 6.98514 17.1262 6.9772C17.1132 6.96926 17.1025 6.95796 17.095 6.94441C17.0876 6.93087 17.0837 6.91556 17.0838 6.9C17.0838 6.88443 17.0878 6.86916 17.0954 6.85568C17.496 6.15738 17.6261 5.32854 17.4596 4.53535C17.2932 3.74216 16.8424 3.04326 16.1978 2.5788C15.5532 2.11434 14.7623 1.91864 13.9838 2.03096C13.2052 2.14328 12.4966 2.5553 12 3.18441C11.5034 2.5553 10.7948 2.14328 10.0162 2.03096C9.23771 1.91864 8.44685 2.11434 7.80221 2.5788C7.15758 3.04326 6.70684 3.74216 6.54037 4.53535C6.3739 5.32854 6.50401 6.15738 6.90462 6.85568C6.91216 6.86916 6.91615 6.88443 6.91621 6.9C6.91628 6.91556 6.9124 6.93087 6.90497 6.94441C6.89754 6.95796 6.88681 6.96926 6.87384 6.9772C6.86088 6.98514 6.84613 6.98945 6.83106 6.9897H5.07692C4.52609 6.9897 3.99782 7.21562 3.60832 7.61776C3.21882 8.0199 3 8.56532 3 9.13403V9.84881C3.00061 10.2921 3.13401 10.7243 3.3819 11.0862C3.62978 11.4481 3.98003 11.722 4.38462 11.8703C4.60694 11.9516 4.84107 11.9931 5.07692 11.9931H11.1346C11.1805 11.9931 11.2245 11.9743 11.257 11.9408C11.2895 11.9073 11.3077 11.8618 11.3077 11.8144ZM12.6923 5.20276C12.6923 4.84934 12.7938 4.50385 12.984 4.20999C13.1742 3.91613 13.4445 3.68709 13.7607 3.55184C14.077 3.41659 14.425 3.38121 14.7607 3.45015C15.0965 3.5191 15.4049 3.68929 15.6469 3.9392C15.889 4.18911 16.0538 4.50751 16.1206 4.85415C16.1874 5.20078 16.1531 5.56007 16.0221 5.88659C15.8911 6.21311 15.6693 6.4922 15.3846 6.68855C15.1 6.8849 14.7654 6.9897 14.4231 6.9897H12.6923V5.20276ZM9.45317 3.42029C9.69029 3.40274 9.92836 3.43581 10.1526 3.51744C10.3767 3.59907 10.5822 3.7275 10.7562 3.89474C10.9302 4.06198 11.069 4.26443 11.1639 4.48947C11.2587 4.71451 11.3077 4.95732 11.3077 5.20276V6.9897H9.57692C9.12939 6.98851 8.69969 6.80839 8.37802 6.48713C8.05635 6.16588 7.86772 5.72846 7.8517 5.2667C7.83569 4.80493 7.99355 4.35471 8.29215 4.01053C8.59074 3.66634 9.00686 3.45451 9.45317 3.42029ZM12.8654 22H16.8462C17.5806 22 18.285 21.6988 18.8043 21.1626C19.3236 20.6264 19.6154 19.8992 19.6154 19.1409V13.7801C19.6154 13.6853 19.5789 13.5944 19.514 13.5274C19.4491 13.4603 19.361 13.4227 19.2692 13.4227H12.8654C12.8195 13.4227 12.7755 13.4415 12.743 13.475C12.7105 13.5085 12.6923 13.554 12.6923 13.6014V21.8213C12.6923 21.8687 12.7105 21.9142 12.743 21.9477C12.7755 21.9812 12.8195 22 12.8654 22Z",fill:o})})})}},88299:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var a=l(37876),n=l(14467);let r=e=>{let{color:t,customClass:l,size:r,colorHover:s,onClick:i}=e,o=t||"var(--neutralDarkGrey)",c=r||"20",d=l?"LFIconArrowLeft ".concat(l," ").concat("size-".concat(c)," ").concat(o):"LFIconArrowLeft";return(0,a.jsx)(n.A,{size:c,customClass:d,onClick:i,colorHover:s,children:(0,a.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.3242 12.8222C6.89193 12.3681 6.89193 11.6319 7.3242 11.1778L15.8663 2.20434C16.1256 1.93189 16.5461 1.93189 16.8055 2.20434C17.0648 2.4768 17.0648 2.91854 16.8055 3.191L8.41997 12L16.8055 20.809C17.0648 21.0815 17.0648 21.5232 16.8055 21.7957C16.5461 22.0681 16.1256 22.0681 15.8663 21.7957L7.3242 12.8222Z",fill:o})})})}},88431:e=>{e.exports={rewardIcon:"LoyaltySystemRewardIcon_rewardIcon__ANcBi",rewardIconCaption:"LoyaltySystemRewardIcon_rewardIconCaption__X1uKu"}},89251:(e,t,l)=>{"use strict";l.d(t,{n:()=>a});var a=function(e){return e.SPENDINGS="spendings",e.CASHBACK="cashback",e.FREE_ADS="free_ads",e}({})},90877:(e,t,l)=>{"use strict";l.d(t,{A:()=>_});var a=l(18153),n=l(14232),r=l(29182),s=l(86412),i=l(77043),o=l(46767),c=l(34820),d=l(53089),u=l.n(d);let _=e=>{let{analyticsEvent:t,rewardsList:l,hideRewardsTitles:d,withCashBackFeature:_}=e,{translations:m}=(0,n.useContext)(r.q),v=d?u().onlyIcons:"";return(0,a.FD)("div",{className:"".concat(u().main," loyalty-system-rewards-list"),children:[(0,a.Y)(s.A,{size:"16",text:m.FREE_REWARDS_BUSINESS_TEXT,weight:"700",customClass:u().title}),(0,a.Y)(i.A,{size:"14",text:m.THE_HIGHER_THE_CATEGORY_LEVEL_TEXT,color:o.zw}),(0,a.Y)("div",{className:"".concat(u().icons," ").concat(v),children:(null==l?void 0:l.length)>0&&l.map(e=>(0,a.Y)(c.A,{analyticsEvent:t,delay:e.delay,isActiveReward:e.isActiveReward,isDisabledReward:e.isDisabledReward,rewardName:e.rewardName,rewardTitle:d?null:e.rewardTitle,withCashBackFeature:_},e.rewardName))})]})}},94466:(e,t,l)=>{"use strict";l.d(t,{A:()=>x});var a=l(18153),n=l(14232),r=l(89099),s=l(29182),i=l(94937),o=l(15946),c=l(82761),d=l(93577),u=l(71449),_=l(37511),m=l(73487),v=l(8566),y=l(53632),h=l(89251),L=l(42971),p=l(78313),C=l.n(p);let x=e=>{var t,l;
1let{analyticsEventParams:p,color:x,delay:g,description:A,isCountUp:E=!1,statsType:f,symbol:S,value:w,currentMicroMarketEvent:P,screenType:T,continueButtonClickHandler:k}=e,{sendInternalAnalytics:b}=(0,o.A)(),{redirectToUrl:j}=(0,c.A)(),M=(0,r.useRouter)(),{translations:I,isDesktopDevice:N}=(0,n.useContext)(s.q),R=(null==M||null==(t=M.query)?void 0:t.flow_id)?null==M||null==(l=M.query)?void 0:l.flow_id:N?i.tH.LOYALTY_SYSTEM_PURCHASE_LEVEL_DESKTOP:i.tH.LOYALTY_SYSTEM_PURCHASE_LEVEL_MOBILE,F=Number(null==P?void 0:P.current_level),B=Number(null==P?void 0:P.previous_level),H=null==P?void 0:P.category_id,O=T===L.C_.LALAFO_CLUB&&F>B||T===L.C_.PPV,Y=(f===h.n.CASHBACK||f===h.n.FREE_ADS)&&(T===L.C_.PPV||T===L.C_.LALAFO_CLUB&&B>F)?F===i.lL.LEVELS.MAX_LEVEL?I.SAVE_THE_LEVEL:I.SPEED_UP_CATEGORY_GROWTH:I.OK_GOT_IT,[z,D]=(0,n.useState)(!1),V=()=>D(!1),W=O||T!==L.C_.LALAFO_CLUB?V:()=>{if(V(),k instanceof Function&&k(),H&&F)return setTimeout(()=>{j({path:"".concat(i.W_.LOYALTY_SYSTEM_PURCHASE_CATEGORY_ID,"/").concat(H,"/level/").concat(F,"?flow_id=").concat(R)})},410)};return(0,a.FD)("div",{className:"".concat(C().main," ").concat(C().itemStats),children:[(0,a.FD)("div",{className:C().mainInfoContainer,children:[(0,a.Y)("div",{className:C().iconContainer,children:(()=>{switch(f){case h.n.CASHBACK:return(0,a.Y)(_.A,{});case h.n.FREE_ADS:return(0,a.Y)(u.A,{});default:return null}})()}),(0,a.Y)(v.A,{color:x,isCountUp:E,size:"32",symbol:S,value:w||0,delay:g}),(0,a.Y)(m.A,{onClick:()=>{D(!0),p&&b({eventParams:p,eventDetailsParams:"onboarding_type: ".concat(f)})}})]}),(0,a.Y)(d.A,{size:"12",text:A,color:x,customClass:C().description}),z&&(0,a.Y)(y.default,{type:f,buttonText:Y,closeHandler:V,buttonHandler:W})]})}}},e=>{var t=t=>e(e.s=t);
1e.O(0,[4092,1130,9167,6015,9833,889,2267,716,1908,3632,636,6593,8792],()=>t(58481)),_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]="ea1a8963-b95b-55b2-90e9-16a770b14e29")}catch(e){}}(); 3//# debugId=ea1a8963-b95b-55b2-90e9-16a770b14e29
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.