PageSourceSearch

https://lalafo.kg/_next/static/chunks/9391-6d58916a11dea690.js

js lalafo.kg collected 2026-09-28 11:08:02 UTC 9,199 bytes, 3 lines download raw bytes

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]="11be8b1d-cba7-4834-b464-6a9745a10a88",e._sentryDebugIdIdentifier="sentry-dbid-11be8b1d-cba7-4834-b464-6a9745a10a88")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9391],{13981:(e,t,n)=>{n.d(t,{xD:()=>I,Zk:()=>v,u:()=>C,Hi:()=>L,a0:()=>p,rO:()=>P,Ok:()=>T,CD:()=>H});var l=n(14232),r=n(37004),a=n(89099),s=n(74359),u=n(67768),o=n(40097),i=n(61902),E=n(29182),_=n(51245),d=n(71374),R=n(22497),c=n(94937);let O=e=>{let{autoReplenish:t,isDesktopDevice:n,platformDevice:l,isLandingFlow:r}=e;switch(!0){case"ios"===l:return t?c.tH.PPV_REACH_PROFILE_NOT_ENOUGH_MONEY_AUTO_REPLENISH_ON_IOS:c.tH.PPV_REACH_PROFILE_NOT_ENOUGH_MONEY_AUTO_REPLENISH_OFF_IOS;case"android"===l:return t?c.tH.PPV_REACH_PROFILE_NOT_ENOUGH_MONEY_AUTO_REPLENISH_ON_ANDROID:c.tH.PPV_REACH_PROFILE_NOT_ENOUGH_MONEY_AUTO_REPLENISH_OFF_ANDROID;case n:return t?r?c.tH.LANDING_NEW_SELLERS_REACH_PACKAGES_AUTO_REPLENISH_ON_DESKTOP:c.tH.PPV_REACH_PROFILE_NOT_ENOUGH_MONEY_AUTO_REPLENISH_ON_DESKTOP:r?c.tH.LANDING_NEW_SELLERS_REACH_PACKAGES_AUTO_REPLENISH_OFF_DESKTOP:c.tH.PPV_REACH_PROFILE_NOT_ENOUGH_MONEY_AUTO_REPLENISH_OFF_DESKTOP;default:return t?r?c.tH.LANDING_NEW_SELLERS_REACH_PACKAGES_AUTO_REPLENISH_ON_MOBILE:c.tH.PPV_REACH_PROFILE_NOT_ENOUGH_MONEY_AUTO_REPLENISH_ON_MOBILE:r?c.tH.LANDING_NEW_SELLERS_REACH_PACKAGES_AUTO_REPLENISH_OFF_MOBILE:c.tH.PPV_REACH_PROFILE_NOT_ENOUGH_MONEY_AUTO_REPLENISH_OFF_MOBILE}};var h=n(42149),A=n(88314),S=n(74222),m=n(1319),N=n(28023),y=n(94574);let I={autoReplenish:e=>{let{userId:t}=e;return[c.es.AUTO_REPLENISH,"userId: ".concat(t)]},autoReplenishWalletPrices:e=>{let{userId:t}=e;return[c.es.AUTO_REPLENISH_WALLET_PRICES,"userId: ".concat(t)]}},v=e=>{var t;let{enabled:n=!0}=e||{},a=(0,r.d4)(e=>e.user),u=(0,h._8)(),o=null==a||null==(t=a.profile)?void 0:t.id,i=I.autoReplenish({userId:o}),E=(0,s.I)({queryKey:i,queryFn:async()=>(0,y.ZM)({requestContext:u}),enabled:(null==a?void 0:a.isAuthenticated)&&!!o&&n,staleTime:c.Vv.THIRTY_MINUTES,gcTime:c.Vv.THIRTY_MINUTES,refetchOnWindowFocus:!1,refetchOnMount:!0,refetchOnReconnect:!1,retry:!1}),_=(0,l.useMemo)(()=>{var e,t,n;let l=null==(t=E.data)||null==(e=t.payment_systems)?void 0:e.find(e=>e.selected);return!!(null==l||null==(n=l.items)?void 0:n.find(e=>e.selected))},[E.data]);return(0,l.useEffect)(()=>{E.isError&&A.z(S.A.DEFAULT_ERROR)},[E.isError]),{...E,isSelectedAutoReplenish:_}},L=()=>{var e;let t=(0,u.jE)(),n=(0,h._8)(),l=(0,r.d4)(e=>e.user),a=null==l||null==(e=l.profile)?void 0:e.id;return(0,o.n)({mutationFn:async e=>{let{paymentSystemId:t,cardId:l}=e;return(0,y.ee)({paymentSystemId:t,cardId:l,requestContext:n})},onSuccess:()=>{t.invalidateQueries({queryKey:I.autoReplenish({userId:a})}),A.k({text:S.A.CARD_SUCCESSFULLY_DELETED})},onError:e=>{var t;m.v.error(e),A.z((null==e||null==(t=e.data)?void 0:t.message)||S.A.DEFAULT_ERROR)}})},T=()=>{var e;let t=(0,u.jE)(),n=(0,h._8)(),l=(0,r.d4)(e=>e.user),a=null==l||null==(e=l.profile)?void 0:e.id;return(0,o.n)({mutationFn:async e=>{var t,l,r;let{stripe:a,elements:s,autoReplenishItems:u}=e;if(!a||!s)throw{message:S.A.DEFAULT_ERROR,isStripeError:!0};let o=s.getElement(i.CardNumberElement);if(!o)throw{message:S.A.DEFAULT_ERROR,isStripeError:!0};let E=await a.createPaymentMethod({type:"card",card:o});if(E.error)throw{message:E.error.message||S.A.DEFAULT_ERROR,isStripeError:!0};let _=null==(l=E.paymentMethod)||null==(t=l.card)?void 0:t.last4,d=_?null==u?void 0:u.find(e=>e.title.includes(_)):null;if(d)return{duplicateCard:d,isDuplicate:!0};let R=null==(r=E.paymentMethod)?void 0:r.id;if(!R)throw{message:S.A.DEFAULT_ERROR,isStripeError:!0};return{attachedCard:await (0,y.s3)({body:{payment_method_id:R},requestContext:n}),isDuplicate:!1}},onSuccess:e=>{e.isDuplicate||t.invalidateQueries({queryKey:I.autoReplenish({userId:a})})},onError:e=>{m.v.error(e),A.z((null==e?void 0:e.message)||S.A.DEFAULT_ERROR)},retry:!1})},P=()=>{var e;let t=(0,u.jE)(),n=(0,h._8)(),l=(0,r.d4)(e=>e.user),a=null==l||null==(e=l.profile)?void 0:e.id;return(0,o.n)({mutationFn:async e=>{let{body:t}=e;return(0,y.lR)({body:t,requestContext:n})},onSuccess:()=>{t.invalidateQueries({queryKey:I.autoReplenish({userId:a})}),(0,_.UF)()},onError:e=>{m.v.error(e)}})},p=()=>{var e;let t=(0,u.jE)(),n=(0,h._8)(),l=(0,r.d4)(e=>e.user),a=null==l||null==(e=l.profile)?void 0:e.id;return(0,o.n)({mutationFn:async()=>(0,y.OW)({requestContext:n}),onSuccess:()=>{t.invalidateQueries({queryKey:I.autoReplenish({userId:a})}),(0,_.UF)()},onError:e=>{var t;m.v.error(e),A.z((null==e||null==(t=e.data)?void 0:t.message)||S.A.DEFAULT_ERROR)}})},H=()=>{var e;let t=(0,a.useRouter)(),{isWebView:n,platformDevice:s,webViewSessionId:u,webViewUserHash:i}=(0,d.r)(),_=(0,r.d4)(e=>e.user),m=null==_||null==(e=_.profile)?void 0:e.id,I=(0,R.n)(null==t?void 0:t.query),v=(0,h._8)(),{isDesktopDevice:L}=(0,l.useContext)(E.q);return(0,o.n)({mutationFn:async e=>{let{token:t,autoReplenish:n}=e,l=O({isDesktopDevice:L,isLandingFlow:(null==I?void 0:I.flow)==="landing",autoReplenish:n,platformDevice:s});return(0,y.O_)({token:t,auto_replenish:n,flow_id:l,requestContext:v})},onError:(e,t)=>
1{var l,r;A.z(S.A.DEFAULT_ERROR),(0,N.z)({requestContext:v,data:{logType:c.$9.TYPE.CLIENT,category:c.wD.AUTOREPLENISH_ERROR.CATEGORY,paymentSystem:(null==I?void 0:I.pageName)||"unknown",responseData:e,errorMessage:(null==e?void 0:e.message)||(null==e||null==(l=e.data)?void 0:l.message),token:null==t?void 0:t.token,isWebView:null==n?void 0:n.toString(),autoReplenishValue:null==t||null==(r=t.autoReplenish)?void 0:r.toString(),webViewSessionId:u,webViewUserHash:i,userId:m}})},retry:!1})},C=e=>{var t;let{enabled:n=!0}=null!=e?e:{},l=(0,r.d4)(e=>e.user),a=(0,h._8)(),u=null==l?void 0:l.isAuthenticated,o=null==l||null==(t=l.profile)?void 0:t.id,i=I.autoReplenishWalletPrices({userId:o});return(0,s.I)({queryKey:i,queryFn:async()=>{try{return await (0,y.FD)({requestContext:a})}catch(e){throw A.z(S.A.DEFAULT_ERROR),e}},staleTime:c.Vv.THIRTY_MINUTES,gcTime:c.Vv.THIRTY_MINUTES,refetchOnWindowFocus:!1,refetchOnMount:!0,refetchOnReconnect:!0,retry:!1,enabled:u&&n})}},51245:(e,t,n)=>{n.d(t,{O3:()=>E,UF:()=>i});var l=n(14232),r=n(94937);let a="autoReplenishFormStorageChange",s={selectSumAutoReplenish:{sum:null,currency:null,hasChange:!1},selectPaymentMethod:{paymentSystemId:null,paymentSystemItemId:null,hasChange:!1}},u=()=>{try{let e=sessionStorage.getItem(r.ok.AUTO_REPLENISH_FORM_STORAGE);return e?JSON.parse(e):s}catch(e){return i(),s}},o=e=>{sessionStorage.setItem(r.ok.AUTO_REPLENISH_FORM_STORAGE,JSON.stringify(e)),window.dispatchEvent(new CustomEvent(a,{detail:e}))},i=()=>{sessionStorage.removeItem(r.ok.AUTO_REPLENISH_FORM_STORAGE),window.dispatchEvent(new CustomEvent(a,{detail:s}))},E=()=>{let[e,t]=(0,l.useState)(s),[n,r]=(0,l.useState)(!1);(0,l.useEffect)(()=>{t(u()),r(!0);let e=e=>{t(e.detail)};return window.addEventListener(a,e),()=>{window.removeEventListener(a,e)}},[]);let E=(0,l.useCallback)(e=>{t(e),o(e)},[]),_=(0,l.useCallback)(e=>{var t;E({...u(),selectSumAutoReplenish:{sum:e.sum,currency:e.currency,hasChange:null==(t=e.hasChange)||t}})},[E]),d=(0,l.useCallback)(e=>{var t;E({...u(),selectPaymentMethod:{paymentSystemId:e.paymentSystemId,paymentSystemItemId:e.paymentSystemItemId,hasChange:null==(t=e.hasChange)||t}})},[E]),R=(0,l.useCallback)(()=>{let e=u();E({selectSumAutoReplenish:{...e.selectSumAutoReplenish,hasChange:!1},selectPaymentMethod:{...e.selectPaymentMethod,hasChange:!1}})},[E]),c=(0,l.useCallback)(()=>{t(s),i()},[]),O=(0,l.useMemo)(()=>e.selectSumAutoReplenish.hasChange||e.selectPaymentMethod.hasChange,[e.selectSumAutoReplenish.hasChange,e.selectPaymentMethod.hasChange]);return{selectedSum:e.selectSumAutoReplenish,selectPaymentMethod:e.selectPaymentMethod,hasChanges:O,setSum:_,setPaymentMethod:d,clearChanges:R,clearAll:c,isStorageInitialized:n}}},88299:(e,t,n)=>{n.d(t,{A:()=>a});var l=n(37876),r=n(14467);let a=e=>{let{color:t,customClass:n,size:a,colorHover:s,onClick:u}=e,o=t||"var(--neutralDarkGrey)",i=a||"20",E=n?"LFIconArrowLeft ".concat(n," ").concat("size-".concat(i)," ").concat(o):"LFIconArrowLeft";return(0,l.jsx)(r.A,{size:i,customClass:E,onClick:u,colorHover:s,children:(0,l.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.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})})})}}}]);
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]="4bd989a5-178e-5929-9f41-8ea99a81fc9e")}catch(e){}}();
3//# debugId=4bd989a5-178e-5929-9f41-8ea99a81fc9e

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.