1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,93795,e=>{"use strict";var t=e.i(932),r=e.i(71645);let a="6LeSaZ8sAAAAAIOmNWRgGEBV1_wJZJVOoEtLrOl0";function s(e){}e.s(["useRecaptcha",0,function(e){let l,i,n,o,c=(0,t.c)(6),[d,u]=(0,r.useState)(null),h=(0,r.useRef)(null),m=(0,r.useRef)(null);c[0]!==e?(l=()=>{if(!a||!h.current)return;let t=h.current,r=!1;return(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return new Promise((t,r)=>{if(window.grecaptcha?.enterprise)return void t(window.grecaptcha.enterprise);if(!document.querySelector('script[src*="recaptcha/enterprise.js"]')){let e=document.createElement("script");e.src="https://www.google.com/recaptcha/enterprise.js?render=explicit",e.async=!0,document.head.appendChild(e)}let a=Date.now(),s=()=>{window.grecaptcha?.enterprise?t(window.grecaptcha.enterprise):Date.now()-a>e?r(Error("reCAPTCHA Enterprise failed to load")):setTimeout(s,100)};s()})})().then(s=>{if(!r)try{t.innerHTML="",m.current=s.render(t,{sitekey:a,action:e,callback:e=>{r||u(e)},"expired-callback":()=>{r||u(null)},"error-callback":()=>{r||u(null)}})}catch(e){}}).catch(s),()=>{r=!0,t.innerHTML="",m.current=null,u(null),document.querySelectorAll('script[src*="recaptcha/enterprise"]').forEach(e=>e.remove()),document.querySelectorAll(".grecaptcha-badge").forEach(e=>e.parentElement?.remove()),delete window.grecaptcha,delete window.___grecaptcha_cfg}},i=[e],c[0]=e,c[1]=l,c[2]=i):(l=c[1],i=c[2]),(0,r.useEffect)(l,i),c[3]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{if(u(null),null!==m.current&&window.grecaptcha?.enterprise)try{window.grecaptcha.enterprise.reset(m.current)}catch{}},c[3]=n):n=c[3];let p=n;return c[4]!==d?(o={recaptchaRef:h,token:d,resetRecaptcha:p,isEnabled:!!a},c[4]=d,c[5]=o):o=c[5],o}])},46624,e=>{"use strict";var t=e.i(43476),r=e.i(932),a=e.i(71645),s=e.i(57688),l=e.i(7670);let i={labelStyle:(0,l.default)("flex flex-row items-center gap-1 text-sm text-[#362022] "),inputStyle:(0,l.default)("flex rounded-lg border border-solid bg-transparent px-3 py-2 text-base transition-colors disabled:cursor-not-allowed disabled:opacity-50 md:text-md md:leading-6 outline-none placeholder:font-light placeholder:text-sm outline-none"),requiredInputStyle:(0,l.default)("border-red-500 focus:ring-red-500","border-gray-300 focus:border-slate-700"),errorMsg:(0,l.default)("text-red-500 text-xs mt-1 "),showPassword:(0,l.default)("cursor-pointer text-gray-400 flex items-center")};var n=e.i(86536),o=e.i(77705),c=e.i(12070);function d(e){return e?"string"==typeof e&&e.startsWith("/")?(0,t.jsx)(s.default,{src:e,alt:"icon",width:20,height:20,className:"object-contain"}):(0,t.jsx)("span",{className:"flex items-center",children:e}):null}e.s(["default",0,e=>{let s,u,h,m,p,x,g,f,y,w,b=(0,r.c)(45),{label:j,id:v,type:N,placeholder:k,mandatory:A,value:S,name:E,readOnly:C,onChange:_,onBlur:z,className:L,error:O,touched:T,minLength:R,maxLength:q,autocomplete:M,prefix:B,suffix:P,allowedCharsRegex:Z,dir:$,onKeyDown:F,autoFocus:G}=e,H=void 0===N?"text":N,I=void 0!==A&&A,U=void 0===L?"":L;if(b[0]!==U)s=(0,l.default)(i.inputStyle,U),b[0]=U,b[1]=s;else s=b[1];let V=s,[W,D]=(0,a.useState)(!1);b[2]!==Z||b[3]!==_?(u=e=>{if(Z){let t=e.target.value.split("").filter(e=>Z.test(e)).join("");e.target.value=t}_&&_(e)},b[2]=Z,b[3]=_,b[4]=u):u=b[4];let J=u;b[5]!==v||b[6]!==j||b[7]!==I?(h=j&&(0,t.jsxs)("label",{htmlFor:v,className:i.labelStyle,children:[j," ",I&&(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),b[5]=v,b[6]=j,b[7]=I,b[8]=h):h=b[8];let K=`flex items-center gap-2 overflow-hidden ${O&&T?i.requiredInputStyle:""} ${V}`;b[9]!==B?(m=d(B),b[9]=B,b[10]=m):m=b[10];let Q=W&&"password"===H?"text":H,X=S||"",Y=$||(S?"auto":void 0);return b[11]!==H?(p="number"===H?{min:0}:{},b[11]=H,b[12]=p):p=b[12],b[13]!==G||b[14]!==M||b[15]!==J||b[16]!==v||b[17]!==q||b[18]!==R||b[19]!==E||b[20]!==z||b[21]!==F||b[22]!==k||b[23]!==C||b[24]!==X||b[25]!==Y||b[26]!==p||b[27]!==Q?(x=(0,t.jsx)("input",{id:v,type:Q,placeholder:k,value:X,readOnly:C,name:E,onChange:J,autoComplete:M,onBlur:z,onKeyDown:F,autoFocus:G,minLength:R,maxLength:q,dir:Y,...p,className:"flex-1 min-w-0
1w-0 bg-transparent outline-none [direction:inherit] placeholder:text-[13px] sm:placeholder:text-sm"}),b[13]=G,b[14]=M,b[15]=J,b[16]=v,b[17]=q,b[18]=R,b[19]=E,b[20]=z,b[21]=F,b[22]=k,b[23]=C,b[24]=X,b[25]=Y,b[26]=p,b[27]=Q,b[28]=x):x=b[28],b[29]!==W||b[30]!==P||b[31]!==H?(g="password"===H?(0,t.jsx)("span",{className:i.showPassword,onClick:()=>D(!W),children:W?(0,t.jsx)(n.Eye,{size:16}):(0,t.jsx)(o.EyeOff,{size:16})}):d(P),b[29]=W,b[30]=P,b[31]=H,b[32]=g):g=b[32],b[33]!==x||b[34]!==g||b[35]!==K||b[36]!==m?(f=(0,t.jsxs)("div",{className:K,children:[m,x,g]}),b[33]=x,b[34]=g,b[35]=K,b[36]=m,b[37]=f):f=b[37],b[38]!==O||b[39]!==T?(y=O&&T&&(0,t.jsx)(c.HandleError,{error:O}),b[38]=O,b[39]=T,b[40]=y):y=b[40],b[41]!==f||b[42]!==y||b[43]!==h?(w=(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[h,f,y]}),b[41]=f,b[42]=y,b[43]=h,b[44]=w):w=b[44],w}],46624)},69363,e=>{"use strict";var t=e.i(99683);let r=/^[\u0600-\u06FF\s]+$/,a=/^[^\u0600-\u06FF]*$/,s=/^[^A-Za-z]+$/,l=/^[A-Za-z0-9\s]+$/;t.addMethod(t.string,"arabicOnly",function(e){return this.test("arabic-only",e,e=>!e||r.test(e))}),t.addMethod(t.string,"englishOnly",function(e){return this.test("english-only",e,e=>!e||a.test(e))}),t.addMethod(t.string,"noLetters",function(e){return this.test("no-letters",e,e=>!e||s.test(e))}),t.addMethod(t.string,"noSymbols",function(e){return this.test("no-symbols",e,e=>!e||l.test(e))}),e.s(["alphanumeric",0,/[a-zA-Z0-9!@#$%^&*()_+\-=\[\]{};':"\\|,.<>?/`~\s]/,"arabicEnglishNumbersOnly",0,/[\u0621-\u064A\u064B-\u0652\u0660-\u0669a-zA-Z0-9\s]/,"arabicEnglishOnly",0,/[\u0621-\u064A\u064B-\u0652\u0660-\u0669a-zA-Z\s]/,"englishOnly",0,/[a-zA-Z0-9@._\-!#$%&'*+/=?^`{|}~\s]/])},71689,e=>{"use strict";let t=(0,e.i(75254).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],71689)},70756,e=>{"use strict";let t=(0,e.i(75254).default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["Lock",0,t],70756)},94498,e=>{"use strict";let t=async(e,t)=>{let r=await fetch("/api/auth/set-token",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e,refreshToken:t})});return await r.json()};e.s(["storeAuthTokens",0,t])},33782,e=>{"use strict";var t=e.i(26732);e.s(["useGoogleAuth",0,function(){return{loginWithGoogle:()=>{(0,t.signIn)("google",{callbackUrl:"/auth/google-callback"})}}}])},38706,e=>{"use strict";var t=e.i(43476),r=e.i(12497),a=e.i(99683),s=e.i(69363),l=e.i(48148),i=e.i(46624),n=e.i(77409),o=e.i(17842),c=e.i(82455),d=e.i(17335),u=e.i(94498),h=e.i(57688),m=e.i(23252);let p=(0,e.i(75254).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);var x=e.i(70756),g=e.i(71689),f=e.i(33857),y=e.i(71645),w=e.i(33782),b=e.i(93795),j=e.i(59141);e.s(["default",0,function(){let e=(0,l.useTranslations)("auth"),v=(0,d.default)();o.userStore.getState().setUser;let[N,k]=(0,y.useState)(!1),{loginWithGoogle:A}=(0,w.useGoogleAuth)(),{recaptchaRef:S,token:E,resetRecaptcha:C,isEnabled:_}=(0,b.useRecaptcha)("kz_walnut_73q"),z=a.object({email:a.string().email(e("invalidEmail")).matches(/^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,}$/,e("invalidEmail")).required(e("emailRequired")),password:a.string().required(e("passwordRequired"))}),L=(0,r.useFormik)({initialValues:{email:"",password:"",rememberMe:!1},validationSchema:z,onSubmit:async e=>{try{k(!0);let t=await (0,j.getFCMToken)(),r=await (0,c.LOGIN)({data:{...e,recaptcha_token:E,fcm_token:t}});r?.success&&r?.data?.requires_otp?(setTimeout(()=>{v.replace("/auth/verify-otp")},1e3),o.userStore.getState().setUser({email:r.data.email})):r?.success&&r?.data?.access_token&&(await (0,u.storeAuthTokens)(r.data.access_token,r.data?.refresh_token),o.userStore.getState().setUser(r.data?.user),setTimeout(()=>{v.replace("/")},100))}finally{k(!1)}}});return(0,t.jsxs)("div",{className:"relative min-h-screen bg-white flex items-center justify-center overflow-hidden px-4 py-10",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute -top-40 -start-40 sm:-top-[210px] sm:-start-[210px] w-80 h-80 sm:w-[420px] sm:h-[420px] rounded-full bg-(--colorRed100)"}),(0,t.jsx)("div",{className:"pointer-events-none absolute -bottom-40 -end-40 sm:-bottom-[210px] sm:-end-[210px] w-80 h-80 sm:w-[420px] sm:h-[420px] rounded-full bg-(--colorRed100)"}),(0,t.jsxs)("form",{autoComplete:"off",onSubmit:L.handleSubmit,className:"relative z-10 w-full max-w-[560px] space-y-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("button",{type:"button",onClick:()=>v.replace("/"),className:"flex items-center justify-center w-10 h-10 rounded-full hover:bg-gray-100 transition-colors cursor-pointer",children:(0,t.jsx)(g.ArrowLeft,{size:22,className:"text-gray-700 rtl:rotate-180"})}),(0,t.jsx)(f.default,{})]}),(0,t.jsx)("div",{className:"flex items-center justify-start",children:(0,t.jsx)(m.default,{href:"/",children:(0,t.jsx)(h.default,{src:"/images/MlsLogo.png",alt:"EREP Logo",width:480,height:71,className:"object-cover"})})}),(0,t.jsx)("h1",{className:"text-[#1A1A2E] font-['IBM_Plex_Sans'] text-[24px] font-semibold",children:e("login")}),(0,t.jsx)("div",{className:"flex flex-col sm:grid sm:grid-cols-1 gap-3",children:(0,t.jsxs)("button",{type:"button",onClick:A,disabled:!1,className:"flex items-center justify-center gap-2.5 border border-gray-200 rounded-xl py-3 px-3 hover:bg-gray-50 active:bg-gray-100 transition-colors cursor-pointer bg-white shadow-xs disabled:opacity-50",children:[(0,t.jsx)(h.default,{src:"/images/google.svg",alt:"Google",width:20,height:20,className:"shrink-0"}),(0,t.jsx)("span",{className:"text-gray-700 font-medium text-sm whitespace-nowrap",children:e("loginWithGoogle")})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex-1 h-px bg-gray-200"}),(0,t.jsx)("span",{className:"text-gray-400 text-sm",children:e("orContinueWith")}),(0,t.jsx)("div",{className:"flex-1 h-px bg-gray-200"})]}),(0,t.jsx)(i.default,{label:e("email"),type:"email",name:"email",placeholder:e("emailPlaceholder"),onChange:L.handleChange,onBlur:L.handleBlur,value:L.values.email,mandatory:!0,touched:L.touched.email,error:L.errors.email,prefix:(0,t.jsx)(p,{size:17,className:"text-gray-400 shrink-0"}),className:"w-full border border-gray-200 rounded-lg px-3 py-2.5",allowedCharsRegex:s.englishOnly}),(0,t.jsx)(i.default,{label:e("password"),type:"password",name:"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢",onChange:L.handleChange,onBlur:L.handleBlur,value:L.values.password,mandatory:!0,touched:L.touched.password,error:L.errors.password,prefix:(0,t.jsx)(x.Lock,{size:17,className:"text-gray-400 shrink-0"}),className:"w-full border border-gray-200 rounded-lg px-3 py-2.5",allowedCharsRegex:s.alphanumeric,maxLength:50}),(0,t.jsx)("div",{className:"flex items-center justify-end",children:(0,t.jsx)(m.default,{href:"/auth/forget-password",className:"text-primary text-sm font-medium hover:underline",children:e("forgotPassword")})}),_&&(0,t.jsx)("div",{ref:S}),(0,t.jsx)(n.default,{type:"submit",loading:N,disabled:!L.dirty||!L.isValid||_&&!E,className:"w-full bg-primary! text-white py-3 rounded-lg! text-base font-medium hover:opacity-90 transition-opacity",children:e("login")}),(0,t.jsxs)("p",{className:"text-center text-sm text-gray-500",children:[e("dontHaveAnAccount")," ",(0,t.jsx)(m.default,{href:"/auth/signup",className:"text-primary font-semibold hover:underline",children:e("registerNew")})]})]})]})}],38706)}]);
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.