PageSourceSearch

https://lalafo.kg/_next/static/chunks/1648-f32cb6c2755b0923.js

js lalafo.kg collected 2026-09-28 11:06:58 UTC 10,468 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:{},o=(new e.Error).stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="9d238150-588d-4b85-8cdf-a34fcf39b6ce",e._sentryDebugIdIdentifier="sentry-dbid-9d238150-588d-4b85-8cdf-a34fcf39b6ce")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1648],{7245:e=>{e.exports={wrapper:"LFInputCode_wrapper__A59bR",fields:"LFInputCode_fields__Y4Tom",field:"LFInputCode_field__21_10",success:"LFInputCode_success__sXGI1",error:"LFInputCode_error__tCBxg",errorCodeText:"LFInputCode_errorCodeText__BQCsk"}},14071:(e,o,t)=>{"use strict";t.d(o,{A:()=>E});var n=t(18153),l=t(14232),r=t(37004),i=t(94937),a=t(88314),s=t(74222),d=t(28729),c=t(32131),u=t(99775),f=t(27142),_=t(77043),m=t(24314),C=t(46767),p=t(78567),h=t(59010),S=t(45425),A=t(64665),v=t.n(A);let E=e=>{var o,t,A,E,I,N,y,T,g,M;let{analytics:x,newMobileNumber:O,showSuccessToast:P,translations:F,setActiveScreen:L,toggleUserAuthModal:b}=e;x.screen="sms_validation";let B=(0,r.d4)(e=>e.user),D=(0,r.wA)(),R=e=>{let{code:o,tmp_token:t,mobile:n,timeInConfirmationTab:l}=e;D((0,p.Yx)({code:o,tmp_token:t,mobile:n,analytics:x,timeInConfirmationTab:l}))},k=e=>{D((0,p.F7)({tmp_token:e,analytics:x}))},w=e=>{D((0,p.mc)({tmp_token:e,analytics:x}))},Y=null==B||null==(t=B.profile)||null==(o=t.confirmation)?void 0:o.sources.find(e=>"call"===e.type),z=null!=(g=null==Y?void 0:Y.resend)?g:0,H=!!Y,G=null==B||null==(E=B.profile)||null==(A=E.confirmation)?void 0:A.sources.find(e=>"sms"===e.type),j=null!=(M=null==G?void 0:G.resend)?M:0,W=(null==(I=B.profile.confirmation)?void 0:I.sources[0].type)==="sms",[q,Q]=(0,l.useState)(""),[V,U]=(0,l.useState)(""),[K,X]=(0,l.useState)(0),[Z,$]=(0,l.useState)(0),[J,ee]=(0,l.useState)(null),eo=O||B.profile.mobile,et=0!==K;return(0,l.useEffect)(()=>{$(z),X(j)},[z,j]),(0,l.useEffect)(()=>{let e=null;return K>0?e=setInterval(()=>{X(e=>e-1)},1e3):null!==e&&0===K&&clearInterval(e),()=>{null!==e&&clearInterval(e)}},[K]),(0,l.useEffect)(()=>{let e=null;return Z>0?e=setInterval(()=>{$(e=>e-1)},1e3):null!==e&&0===Z&&clearInterval(e),()=>{null!==e&&clearInterval(e)}},[Z]),(0,l.useEffect)(()=>{var e,o,t,n;B.status===i.$g&&(null==(e=B.profile)?void 0:e.verify)==="verified"&&(P&&a.k({text:s.A.SAVE_DATA}),b()),(null==(o=B.errors)?void 0:o.code)&&(null==(t=B.phoneConfirmation)?void 0:t.status)!==i._&&U(null==(n=B.errors)?void 0:n.code)},[B.status,B.errors]),(0,l.useEffect)(()=>{ee(Date.now())},[]),(0,n.FD)("div",{className:v().phoneConformationBySMSContainer,children:[(0,n.Y)(f.A,{customClass:v().modalPhoneConfirmationTitle,size:"20",text:F.ENTER_SMS_CODE,type:"h2",weight:"500"}),(0,n.Y)(_.A,{size:"16",color:C.zw,children:(0,n.Y)("span",{dangerouslySetInnerHTML:{__html:(0,d.A)(F.SMS_CODE_WAS_SENT_TO(eo))}})}),(0,n.Y)("div",{className:v().modalPhoneConfirmationInputWrapper,children:(0,n.Y)(m.A,{error:V,onChange:e=>{let{value:o,error:t}=e;Q(o),U(t||"")},required:{isRequired:!0,emptyErrorText:F.CANNOT_BE_BLANK,validateErrorText:F.ENTER_SMS_CODE}})}),(0,n.FD)("div",{className:v().modalPhoneConfirmationActionHolder,children:[(0,n.Y)("div",{className:v().confirmButton,children:(0,n.Y)(c.A,{size:"large",text:F.CONFIRM,type:"primary-green",loading:(null==(N=B.phoneConfirmation)?void 0:N.status)===i._,disabled:(null==(y=B.phoneConfirmation)?void 0:y.status)===i._,onClick:()=>{var e;if(q.toString().length!==i.fL)return U(F.ENTER_SMS_CODE);if((null==(e=B.profile)?void 0:e.tmp_token)&&!V){let e=J&&((Date.now()-J)/1e3).toFixed(1)||null;R({code:q,tmp_token:B.profile.tmp_token,mobile:O||B.profile.mobile,timeInConfirmationTab:e})}}})}),((null==(T=B.resendSMS)?void 0:T.status)===i.$g||W)&&(0,n.FD)(n.FK,{children:[(0,n.Y)(u.A,{customClass:et?v().disabled:"",size:"large",text:et?"".concat(F.RESEND_SMS_CODE," ").concat((0,h.A)(K)):F.RESEND_SMS_CODE,weight:et?"400":"500",color:et?C.zw:C.yG,onClick:()=>{0===K&&B.profile.tmp_token&&k(B.profile.tmp_token)}}),H&&(Z?(0,n.Y)(_.A,{size:"16",color:C.zw,text:"".concat(F.CONFIRM_VIA_CALL," ").concat((0,h.A)(Z))}):(0,n.Y)(u.A,{size:"large",text:F.CONFIRM_VIA_CALL,weight:"500",color:C.zu,onClick:()=>{0===Z&&B.profile.tmp_token&&(L(S.Qx.PHONE_CONFIRMATION_BY_CALL),w(B.profile.tmp_token))}}))]})]})]})}},20181:e=>{e.exports={modalPhoneConfirmationContainer:"PhoneConfirmationByCallModal_modalPhoneConfirmationContainer___9vEe",modalPhoneConfirmationTitle:"PhoneConfirmationByCallModal_modalPhoneConfirmationTitle__A7zQg",modalPhoneConfirmationActionHolder:"PhoneConfirmationByCallModal_modalPhoneConfirmationActionHolder__2yVvX",modalPhoneConfirmationSubtitle:"PhoneConfirmationByCallModal_modalPhoneConfirmationSubtitle__sB7FB"}},24314:(e,o,t)=>{"use strict";t.d(o,{A:()=>c});var n=t(37876),l=t(14232),r=t(93577),i=t(46767),a=t(94937),s=t(7245),d=t.n(s);let c=e=>{let{isCleanFieldNow:o=!1,isAutoFocus:t=!1,customClassName:s="",type:c="number",fields:u=5,error:f,placeholder:_="",required:m={isRequired:!1,emptyErrorText:"",validateErrorText:""},hint:C={hintText:"",isHideHint:!1},disabled:p=!1,onChange:h}=e,[S,A]=(0,l.useState)(!1),[v,E]=(0,l.useState)(f||""),[I,N]=(0,l.useState)(!1),[y,T]=(0,l.useState)(Array(u).fill("")),g=!I&&v?d().error:"",M="LFInputCode ".concat(d().wrapper," ").concat(s),x="".concat(d().fields," ").concat(g),{hintText:O,isHideHint:P}=C,F=[...Array(u)].reduce((e,o,t)=>(e[t]=(0,l.createRef)(),e),{}),L=e=>{F[e].current.focus()},b=(e,o)=>{if("number"===c&&(e=e.replace(/[^\d]/gi,"")),""===e)return;let t=e.split(""),n=+(t[0]===y[o]&&t.length>0),l=t.slice(n,u),r=l.length>1?l.length:o+1;r<u&&L(r),l.length===u&&L(l.length-1);let i=[...y];l.length>1?l.forEach((e,o)=>i[o]=e):i[o]=l[0],T(i);let a="";if(m.isRequired&&0===i.length&&(a=m.emptyErrorText),i.length!==u&&0!==i.length&&(a=m.validateErrorText),E(a),h({value:i.join(""),error:a}),i.join("").length===u){var s;null==(s=F[u-1].current)||s.blur()}},B=(e,o)=>
1{let t=o-1,n=o+1;switch(e.keyCode){case a.OC.backspace:e.preventDefault();let l=[...y],r="";m.isRequired&&0===l.length&&(r=m.emptyErrorText),l.length!==u&&0!==l.length&&(r=m.validateErrorText),y[o]?l[o]="":t>=0&&(L(t),l[t]=""),T(l),h({value:l.join(""),error:r});break;case a.OC.left:e.preventDefault(),t>=0&&L(t);break;case a.OC.right:e.preventDefault(),n<u&&L(n)}},D=()=>{A(!0),N(!0),E("")},R=()=>{N(!1)};return(0,l.useEffect)(()=>{E(f||"")},[f]),(0,l.useEffect)(()=>{o&&(T(y.map(()=>"")),L(0))},[o]),(0,n.jsxs)("div",{className:M,children:[(0,n.jsx)("div",{className:x,children:y.map((e,o)=>(0,n.jsx)("input",{autoFocus:0===o&&t,className:"LFInputCode__field ".concat(d().field," ").concat(y[o]?d().success:""),type:"number"===c?"tel":c,maxLength:u+1,value:e,ref:F[o],onChange:e=>b(e.target.value,o),onKeyDown:e=>B(e,o),onFocus:D,onBlur:R,disabled:p,required:m.isRequired,placeholder:_},o))}),!I&&v&&(0,n.jsx)("div",{className:d().errorCodeText,children:(0,n.jsx)(r.A,{size:"10",text:v,color:i.uU})}),S&&I&&O&&!P&&(0,n.jsx)("div",{children:(0,n.jsx)(r.A,{size:"10",text:O,color:i.yG})})]})}},45425:(e,o,t)=>{"use strict";t.d(o,{Qx:()=>n,XU:()=>l});var n=function(e){return e[e.DEFAULT=0]="DEFAULT",e[e.SETTINGS=1]="SETTINGS",e[e.FORGOT_PASSWORD=2]="FORGOT_PASSWORD",e[e.PHONE_CONFIRMATION_BY_SMS=3]="PHONE_CONFIRMATION_BY_SMS",e[e.PHONE_CONFIRMATION_BY_CALL=4]="PHONE_CONFIRMATION_BY_CALL",e}({}),l=function(e){return e[e.LOGIN=0]="LOGIN",e[e.SIGN_IN=1]="SIGN_IN",e}({})},51574:(e,o,t)=>{"use strict";t.d(o,{A:()=>A});var n=t(18153),l=t(14232),r=t(37004),i=t(94937),a=t(88314),s=t(74222),d=t(78567),c=t(32131),u=t(99775),f=t(27142),_=t(77043),m=t(46767),C=t(59010),p=t(45425),h=t(20181),S=t.n(h);let A=e=>{var o,t,h;let{analytics:A,newMobileNumber:v,showSuccessToast:E,translations:I,setActiveScreen:N,toggleUserAuthModal:y}=e;A.screen="call_validation";let T=(0,r.d4)(e=>e.user),g=(0,r.wA)(),M=e=>{g((0,d.F7)({tmp_token:e,analytics:A}))},x=e=>{g((0,d.mc)({tmp_token:e,analytics:A}))},O=null==(o=T.profile.confirmation)?void 0:o.sources.find(e=>"call"===e.type),P=null!=(h=null==O?void 0:O.resend)?h:0,F=!!(null==(t=T.profile.confirmation)?void 0:t.sources.find(e=>"sms"===e.type)),[L,b]=(0,l.useState)(P),B=v||T.profile.mobile;return(0,l.useEffect)(()=>{let e=null;return L>0?e=setInterval(()=>{b(e=>e-1)},1e3):null!==e&&0===L&&clearInterval(e),()=>{null!==e&&clearInterval(e)}},[L]),(0,l.useEffect)(()=>{var e;T.status===i.$g&&(null==(e=T.profile)?void 0:e.verify)==="verified"&&(E&&a.k({text:s.A.SAVE_DATA}),y())},[T]),(0,l.useEffect)(()=>{P>L&&b(P)},[P]),(0,n.FD)("div",{className:S().modalPhoneConfirmationContainer,children:[(0,n.Y)(f.A,{size:"20",text:I.LALAFO_IS_CALLING_YOU(B),type:"h3",weight:"500",customClass:S().modalPhoneConfirmationTitle}),(0,n.Y)(_.A,{size:"14",text:I.ITS_A_FREE_CALL,color:m.ie,customClass:S().modalPhoneConfirmationSubtitle}),(0,n.FD)("div",{className:S().modalPhoneConfirmationActionHolder,children:[L?(0,n.Y)(_.A,{size:"16",text:"".concat(I.REPEAT_CALL," ").concat((0,C.A)(L)),color:m.zw}):(0,n.Y)(c.A,{size:"large",text:I.REPEAT_CALL,type:"primary-green",onClick:()=>{0===L&&T.profile.tmp_token&&x(T.profile.tmp_token)}}),F&&(0,n.Y)(u.A,{size:"large",text:I.CONFIRM_VIA_SMS,weight:"500",color:m.yG,onClick:()=>{T.profile.tmp_token&&(M(T.profile.tmp_token),N(p.Qx.PHONE_CONFIRMATION_BY_SMS))}})]})]})}},59010:(e,o,t)=>{"use strict";t.d(o,{A:()=>n});let n=e=>{let o=e%60,t=Math.floor(e/60),n=Math.floor(t/60);n&&(t-=60*n);let l=t<10?"0":"",r=o<10?"0":"";return n?"".concat(n,":").concat(l).concat(t,":").concat(r).concat(o):"".concat(l).concat(t,":").concat(r).concat(o)}},64665:e=>{e.exports={phoneConformationBySMSContainer:"PhoneConfirmationBySMSModal_phoneConformationBySMSContainer__QZZsL",modalPhoneConfirmationTitle:"PhoneConfirmationBySMSModal_modalPhoneConfirmationTitle__jfFWT",modalPhoneConfirmationInputWrapper:"PhoneConfirmationBySMSModal_modalPhoneConfirmationInputWrapper__WBdL8",modalPhoneConfirmationActionHolder:"PhoneConfirmationBySMSModal_modalPhoneConfirmationActionHolder__Mz_I1",confirmButton:"PhoneConfirmationBySMSModal_confirmButton__QKFCT",disabled:"PhoneConfirmationBySMSModal_disabled__jZ11d"}}}]);
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]="d2814b09-51ff-5a45-af3b-cbeb480131a1")}catch(e){}}();
3//# debugId=d2814b09-51ff-5a45-af3b-cbeb480131a1

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.