1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="3e1df1bf-bad9-d350-32a9-27a42c33a1fe")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,282625,e=>{"use strict";let t=(0,e.i(456420).default)("gift",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]]);e.s(["Gift",0,t],282625)},772382,e=>{"use strict";let t=(0,e.i(456420).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,t],772382)},580860,e=>{"use strict";let t=(0,e.i(456420).default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);e.s(["EyeOff",0,t],580860)},152709,168176,288160,e=>{"use strict";e.s(["EMIRATES",0,[{value:"Dubai",label:{en:"Dubai",ar:"دبÙ",ru:"ÐÑбай"}},{value:"Abu Dhabi",label:{en:"Abu Dhabi",ar:"Ø£Ø¨ÙØ¸Ø¨Ù",ru:"ÐбÑ-Ðаби"}},{value:"Sharjah",label:{en:"Sharjah",ar:"Ø§ÙØ´Ø§Ø±ÙØ©",ru:"ШаÑджа"}},{value:"Ajman",label:{en:"Ajman",ar:"عج٠اÙ",ru:"Ðджман"}},{value:"Ras Al Khaimah",label:{en:"Ras Al Khaimah",ar:"رأس Ø§ÙØ®ÙÙ Ø©",ru:"РаÑ-ÑлÑ-Хайма"}},{value:"Fujairah",label:{en:"Fujairah",ar:"اÙÙØ¬Ùرة",ru:"ФÑджейÑа"}},{value:"Umm Al Quwain",label:{en:"Umm Al Quwain",ar:"أ٠اÙÙÙÙÙÙ",ru:"Умм-ÑлÑ-Ðайвайн"}}]],152709);var t=e.i(843476),r=e.i(500932);let a=["gmail.com","googlemail.com","outlook.com","hotmail.com","live.com","icloud.com","me.com","yahoo.com","yahoo.co.uk","ymail.com","mail.com","aol.com","proton.me","protonmail.com","mail.ru","yandex.ru","mac.com","msn.com","gmx.com","gmx.de","gmx.net","aim.com","hey.com","pm.me","my.com","mail.kz","mail.ee","inbox.lv","inbox.lv","bk.ru","list.ru","inbox.ru","rambler.ru","ukr.net","ya.ru","yandex.com","yandex.kz","yandex.by","yandex.ua","yahoo.fr","yahoo.de","yahoo.co.in","yahoo.co.id","yahoo.com.au","live.ae","live.co.uk","live.at","eim.ae","emirates.net.ae","sky.com"],i=new Set(a),s=e=>String(e||"").trim().toLowerCase(),l=(e,t)=>{let r=Array.from({length:e.length+1},()=>Array(t.length+1).fill(0));for(let t=0;t<=e.length;t+=1)r[t][0]=t;for(let e=0;e<=t.length;e+=1)r[0][e]=e;for(let a=1;a<=e.length;a+=1)for(let i=1;i<=t.length;i+=1){let s=+(e[a-1]!==t[i-1]);r[a][i]=Math.min(r[a-1][i]+1,r[a][i-1]+1,r[a-1][i-1]+s),a>1&&i>1&&e[a-1]===t[i-2]&&e[a-2]===t[i-1]&&(r[a][i]=Math.min(r[a][i],r[a-2][i-2]+1))}return r[e.length][t.length]},o=e=>{let t=s(e),r=t.lastIndexOf("@");if(r<=0||r!==t.indexOf("@"))return null;let o=t.slice(0,r),n=t.slice(r+1);if(!o||!n||i.has(n))return null;let d=null,c=1/0;for(let e of a){let t=l(n,e);t<c&&(c=t,d=e)}let u=n.length<=6?1:2;return d&&c<=u?`${o}@${d}`:null};e.s(["isEmailAddressSyntaxValid",0,e=>{let t=s(e);if(!t||t.length>254||/\s/.test(t))return!1;let r=t.lastIndexOf("@");if(r<=0||r!==t.indexOf("@"))return!1;let a=t.slice(0,r),i=t.slice(r+1);if(!a||a.length>64||!i||i.length>253||a.startsWith(".")||a.endsWith(".")||a.includes(".."))return!1;let l=i.split(".");if(l.length<2||l.some(e=>!e||e.length>63)||l.some(e=>!/^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i.test(e)))return!1;let o=l.at(-1)||"";return/^(?:[a-z]{2,63}|xn--[a-z0-9-]{2,59})$/i.test(o)},"normalizeEmailAddress",0,s,"suggestEmailAddressCorrection",0,o],168176),e.s(["default",0,function(e){let a,i,s,l,n,d,c,u,m,h,p,g,y,f=(0,r.c)(32),{email:x,confirmedEmail:b,message:w,useSuggestionLabel:v,keepEnteredLabel:j,onUseSuggestion:E,onKeepEntered:N}=e;if(f[0]!==b||f[1]!==x||f[2]!==w){d=Symbol.for("react.early_return_sentinel");e:{if(!(a=o(x))||b===x.trim().toLowerCase()){d=null;break e}l="mt-2 rounded-xl border border-amber-200 bg-amber-50 px-3 py-2.5 text-start",n="alert",i="text-xs font-medium leading-relaxed text-amber-900",s=w.replace("{email}",a)}f[0]=b,f[1]=x,f[2]=w,f[3]=a,f[4]=i,f[5]=s,f[6]=l,f[7]=n,f[8]=d}else a=f[3],i=f[4],s=f[5],l=f[6],n=f[7],d=f[8];return d!==Symbol.for("react.early_return_sentinel")?d:(f[9]!==i||f[10]!==s?(c=(0,t.jsx)("p",{className:i,children:s}),f[9]=i,f[10]=s,f[11]=c):c=f[11],f[12]!==E||f[13]!==a?(u=()=>E(a),f[12]=E,f[13]=a,f[14]=u):u=f[14],f[15]!==u||f[16]!==v?(m=(0,t.jsx)("button",{type:"button",onClick:u,className:"min-h-9 rounded-lg bg-amber-900 px-3 text-xs font-semibold text-white transition-colors hover:bg-amber-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-700 focus-visible:ring-offset-2",children:v}),f[15]=u,f[16]=v,f[17]=m):m=f[17],f[18]!==x||f[19]!==N?(h=()=>N(x.trim().toLowerCase()),f[18]=x,f[19]=N,f[20]=h):h=f[20],f[21]!==j||f[22]!==h?(p=(0,t.jsx)("button",{type:"button",onClick:h,className:"min-h-9 rounded-lg border border-amber-300 bg-white px-3 text-xs font-semibold text-amber-900 transition-colors hover:bg-amber-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-700 focus-visible:ring-offset-2",children:j}),f[21]=j,f[22]=h,f[23]=p):p=f[23],f[24]!==p||f[25]!==m?(g=(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap gap-2",children:[m,p]}),f[24]=p,f[25]=m,f[26]=g):g=f[26],f[27]!==g||f[28]!==l||f[29]!==n||f[30]!==c?(y=(0,t.jsxs)("div",{className:l,role:n,children:[c,g]}),f[27]=g,f[28]=l,f[29]=n,f[30]=c,f[31]=y):y=f[31],y)}],288160)},193862,e=>{"use strict";e.s(["getLocalTodayYmd",0,function(e=new Date){let t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return`${t}-${r}-${a}`}])},647255,92826,e=>{"use strict";let t=(0,e.i(456420).default)("fingerprint-pattern",[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}
2],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]]);e.s(["Fingerprint",0,t],647255),e.i(247167);var r=e.i(271645);function a(e){let t=new Uint8Array(e),r="";for(let e of t)r+=String.fromCharCode(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function i(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=(4-t.length%4)%4,a=atob(t.padEnd(t.length+r,"=")),i=new ArrayBuffer(a.length),s=new Uint8Array(i);for(let e=0;e<a.length;e++)s[e]=a.charCodeAt(e);return i}function s(){return l.stubThis(globalThis?.PublicKeyCredential!==void 0&&"function"==typeof globalThis.PublicKeyCredential)}let l={stubThis:e=>e};function o(e){let{id:t}=e;return{...e,id:i(t),transports:e.transports}}function n(e){return"localhost"===e||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(e)}class d extends Error{constructor({message:e,code:t,cause:r,name:a}){super(e,{cause:r}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a??r.name,this.code=t}}let c=new class{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){let e=Error("Cancelling existing WebAuthn API call for new one");e.name="AbortError",this.controller.abort(e)}let e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){let e=Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}},u=["cross-platform","platform"];function m(e){if(e&&!(0>u.indexOf(e)))return e}async function h(e){let t,r,l,u,h;!e.optionsJSON&&e.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});let{optionsJSON:g,useAutoRegister:y=!1}=e;if(!s())throw Error("WebAuthn is not supported in this browser");let f={...g,challenge:i(g.challenge),user:{...g.user,id:i(g.user.id)},excludeCredentials:g.excludeCredentials?.map(o)},x={};y&&(x.mediation="conditional"),x.publicKey=f,x.signal=c.createNewAbortSignal();try{t=await navigator.credentials.create(x)}catch(e){throw function({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new d({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if("ConstraintError"===e.name){if(r.authenticatorSelection?.requireResidentKey===!0)return new d({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});else if("conditional"===t.mediation&&r.authenticatorSelection?.userVerification==="required")return new d({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});else if(r.authenticatorSelection?.userVerification==="required")return new d({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else if("InvalidStateError"===e.name)return new d({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});else if("NotAllowedError"===e.name)return new d({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});else if("NotSupportedError"===e.name)return new d(0===r.pubKeyCredParams.filter(e=>"public-key"===e.type).length?{message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}:{message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});else if("SecurityError"===e.name){let t=globalThis.location.hostname;if(!n(t))return new d({message:`${globalThis.location.hostname}
2 is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(r.rp.id!==t)return new d({message:`The RP ID "${r.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("TypeError"===e.name){if(r.user.id.byteLength<1||r.user.id.byteLength>64)return new d({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if("UnknownError"===e.name)return new d({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e});return e}({error:e,options:x})}if(!t)throw Error("Registration was not completed");let{id:b,rawId:w,response:v,type:j}=t;if("function"==typeof v.getTransports&&(l=v.getTransports()),"function"==typeof v.getPublicKeyAlgorithm)try{u=v.getPublicKeyAlgorithm()}catch(e){p("getPublicKeyAlgorithm()",e)}if("function"==typeof v.getPublicKey)try{let e=v.getPublicKey();null!==e&&(h=a(e))}catch(e){p("getPublicKey()",e)}if("function"==typeof v.getAuthenticatorData)try{r=a(v.getAuthenticatorData())}catch(e){p("getAuthenticatorData()",e)}return{id:b,rawId:a(w),response:{attestationObject:a(v.attestationObject),clientDataJSON:a(v.clientDataJSON),transports:l,publicKeyAlgorithm:u,publicKey:h,authenticatorData:r},type:j,clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:m(t.authenticatorAttachment)}}function p(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them. 3`,t)}let g=e=>e;async function y(e){let t,r,l;!e.optionsJSON&&e.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});let{optionsJSON:u,useBrowserAutofill:h=!1,verifyBrowserAutofillInput:p=!0}=e;if(!s())throw Error("WebAuthn is not supported in this browser");u.allowCredentials?.length!==0&&(t=u.allowCredentials?.map(o));let y={...u,challenge:i(u.challenge),allowCredentials:t},f={};if(h){if(!await function(){if(!s())return g(new Promise(e=>e(!1)));let e=globalThis.PublicKeyCredential;return e?.isConditionalMediationAvailable===void 0?g(new Promise(e=>e(!1))):g(e.isConditionalMediationAvailable())}())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&p)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');f.mediation="conditional",y.allowCredentials=[]}f.publicKey=y,f.signal=c.createNewAbortSignal();try{r=await navigator.credentials.get(f)}catch(e){throw function({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new d({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if("NotAllowedError"===e.name)return new d({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});else if("SecurityError"===e.name){let t=globalThis.location.hostname;if(!n(t))return new d({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(r.rpId!==t)return new d({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("UnknownError"===e.name)return new d({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e});return e}({error:e,options:f})}if(!r)throw Error("Authentication was not completed");let{id:x,rawId:b,response:w,type:v}=r;return w.userHandle&&(l=a(w.userHandle)),{id:x,rawId:a(b),response:{authenticatorData:a(w.authenticatorData),clientDataJSON:a(w.clientDataJSON),signature:a(w.signature),userHandle:l},type:v,clientExtensionResults:r.getClientExtensionResults(),authenticatorAttachment:m(r.authenticatorAttachment)}}let f=(...e)=>console.error("[PASSKEY]",...e);e.s(["usePasskey",0,function(){let[e,t]=(0,r.useState)(!1),[a,i]=(0,r.useState)(!1),[l,o]=(0,r.useState)(!1),[n,d]=(0,r.useState)(null),[c,u]=(0,r.useState)([]);(0,r.useEffect)(()=>{(async()=>{let e=s();if(t(e),e&&window.PublicKeyCredential)try{let e=await PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable();i(e),((...e)=>0)("[PASSKEY] Platform authenticator available:",e)}catch{i(!1)}})()},[]);let m=(0,r.useCallback)(()=>{d(null)},[]),p=(0,r.useCallback)(async e=>{try{let t=await fetch("/api/auth/passkey/check",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})});return(await t.json()).hasPasskeys||!1}catch{return!1}},[]),g=(0,r.useCallback)(async()=>
3{if(!e)return d("Passkeys are not supported on this device"),!1;o(!0),d(null);try{let e,t=await fetch("/api/auth/passkey/register-options",{method:"POST",credentials:"include"});if(!t.ok){let e=await t.json();throw Error(e.error||"Failed to get registration options")}let r=await t.json();((...e)=>0)("[PASSKEY] Got registration options");try{e=await h({optionsJSON:r}),((...e)=>0)("[PASSKEY] Created credential")}catch(e){if("NotAllowedError"===e.name)throw Error("Passkey registration was cancelled");throw e}let a=await fetch("/api/auth/passkey/register-verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),credentials:"include"});if(!a.ok){let e=await a.json();throw Error(e.error||"Failed to register passkey")}return((...e)=>0)("[PASSKEY] Passkey registered successfully"),await b(),!0}catch(t){let e=t instanceof Error?t.message:"Failed to register passkey";return f("[PASSKEY] Registration error:",e),d(e),!1}finally{o(!1)}},[e]),x=(0,r.useCallback)(async t=>{if(!e)return d("Passkeys are not supported on this device"),null;o(!0),d(null);try{let e,r=await fetch("/api/auth/passkey/login-options",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t}),credentials:"include"});if(!r.ok){let e=await r.json();throw Error(e.error||"Failed to get login options")}let a=await r.json();((...e)=>0)("[PASSKEY] Got authentication options");try{e=await y({optionsJSON:a}),((...e)=>0)("[PASSKEY] Got authentication credential")}catch(e){if("NotAllowedError"===e.name)throw Error("Passkey authentication was cancelled");throw e}let i=await fetch("/api/auth/passkey/login-verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),credentials:"include"});if(!i.ok){let e=await i.json();throw Error(e.error||"Failed to verify passkey")}let s=await i.json();return((...e)=>0)("[PASSKEY] Login successful"),s}catch(t){let e=t instanceof Error?t.message:"Passkey login failed";return f("[PASSKEY] Login error:",e),d(e),null}finally{o(!1)}},[e]),b=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/auth/passkey",{credentials:"include"});if(e.ok){let t=await e.json();u(t.passkeys||[])}}catch{}},[]),w=(0,r.useCallback)(async e=>{o(!0),d(null);try{let t=await fetch("/api/auth/passkey",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({passkeyId:e}),credentials:"include"});if(!t.ok){let e=await t.json();throw Error(e.error||"Failed to delete passkey")}return await b(),!0}catch(e){return d(e instanceof Error?e.message:"Failed to delete passkey"),!1}finally{o(!1)}},[b]);return{isSupported:e,isPlatformAuthenticatorAvailable:a,isLoading:l,error:n,checkPasskeyExists:p,registerPasskey:g,loginWithPasskey:x,passkeys:c,loadPasskeys:b,deletePasskey:w,clearError:m}}],92826)},501740,e=>{"use strict";var t=e.i(843476),r=e.i(500932),a=e.i(271645),i=e.i(174080),s=e.i(263676),l=e.i(772382),o=e.i(580860),n=e.i(282625),d=e.i(647255),c=e.i(45356),u=e.i(522016),m=e.i(999452),h=e.i(606315),p=e.i(152709),g=e.i(92826),y=e.i(288160),f=e.i(168176),x=e.i(193862);
3e.s(["default",0,function(e){let b,w,v,j,E,N,A,R,S,k,P,C,T,O,_,I,D,M,$,K,L,U,z,F,q,Y,H,G,V,B,J,W,Q,X,Z,ee,et,er,ea,ei,es,el,eo,en,ed,ec,eu,em,eh,ep,eg,ey,ef,ex,eb,ew,ev,ej,eE,eN,eA,eR,eS,ek=(0,r.c)(245),{isOpen:eP,onClose:eC,isLoginMode:eT,setIsLoginMode:eO,promoCode:e_}=e,{login:eI,register:eD,loginWithGoogle:eM,loginWithApple:e$,isLoading:eK,forceRefreshUser:eL}=(0,c.useAuth)(),{t:eU,locale:ez,dir:eF}=(0,m.useTranslation)();ek[0]===Symbol.for("react.memo_cache_sentinel")?(b=(0,x.getLocalTodayYmd)(),ek[0]=b):b=ek[0];let eq=b,{isPlatformAuthenticatorAvailable:eY,checkPasskeyExists:eH,loginWithPasskey:eG,isLoading:eV,error:eB,clearError:eJ}=(0,g.usePasskey)();ek[1]===Symbol.for("react.memo_cache_sentinel")?(w={name:"",email:"",password:"",phone:"",address:"",emirate:"",birthday:""},ek[1]=w):w=ek[1];let[eW,eQ]=(0,a.useState)(w),[eX,eZ]=(0,a.useState)(!1),[e0,e1]=(0,a.useState)(""),[e2,e5]=(0,a.useState)(!1),[e3,e4]=(0,a.useState)(!1),[e6,e8]=(0,a.useState)(!1),[e7,e9]=(0,a.useState)(null),te=e_||"";ek[2]!==te?(v=String(te).trim().toUpperCase(),ek[2]=te,ek[3]=v):v=ek[3];let tt=v,tr=(0,a.useRef)(null),ta=(0,a.useRef)(null),ti=(0,a.useRef)(null),ts=(0,a.useRef)(null);ek[4]!==eP?(j=()=>{eP&&ta.current&&ta.current.focus()},E=[eP],ek[4]=eP,ek[5]=j,ek[6]=E):(j=ek[5],E=ek[6]),(0,a.useEffect)(j,E),ek[7]!==eH||ek[8]!==eW.email||ek[9]!==eT||ek[10]!==eY?(N=()=>{if(!eT||!eY)return void e8(!1);ts.current&&clearTimeout(ts.current);let e=eW.email.trim();return e&&e.includes("@")?(ts.current=setTimeout(async()=>{e8(await eH(e))},500),()=>{ts.current&&clearTimeout(ts.current)}):void e8(!1)},A=[eW.email,eT,eY,eH],ek[7]=eH,ek[8]=eW.email,ek[9]=eT,ek[10]=eY,ek[11]=N,ek[12]=A):(N=ek[11],A=ek[12]),(0,a.useEffect)(N,A),ek[13]!==eJ||ek[14]!==eL||ek[15]!==eW.email||ek[16]!==eG||ek[17]!==eC||ek[18]!==eB?(R=async()=>{eJ(),e1("");let e=await eG(eW.email);e&&e.user?(await eL(),eC(),eQ({name:"",email:"",password:"",phone:"",address:"",emirate:"",birthday:""})):eB&&e1(eB)},ek[13]=eJ,ek[14]=eL,ek[15]=eW.email,ek[16]=eG,ek[17]=eC,ek[18]=eB,ek[19]=R):R=ek[19];let tl=R;ek[20]!==eP||ek[21]!==eC?(S=()=>{let e=e=>{if(eP){if("Escape"===e.key)return void eC();if("Tab"===e.key){let t=tr.current?.querySelectorAll('input, button, [tabindex]:not([tabindex="-1"])');if(!t.length)return;let r=t[0],a=t[t.length-1];e.shiftKey?document.activeElement===r&&a&&(e.preventDefault(),a.focus()):document.activeElement===a&&r&&(e.preventDefault(),r.focus())}}};if(eP)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},k=[eP,eC],ek[20]=eP,ek[21]=eC,ek[22]=S,ek[23]=k):(S=ek[22],k=ek[23]),(0,a.useEffect)(S,k),ek[24]===Symbol.for("react.memo_cache_sentinel")?(P=e=>{let{name:t,value:r}=e.target;eQ(e=>({...e,[t]:r})),"email"===t&&e9(null),e1("")},ek[24]=P):P=ek[24];let to=P;ek[25]!==eW.address||ek[26]!==eW.birthday||ek[27]!==eW.email||ek[28]!==eW.emirate||ek[29]!==eW.name||ek[30]!==eW.password||ek[31]!==eW.phone||ek[32]!==eT||ek[33]!==eI||ek[34]!==tt||ek[35]!==eC||ek[36]!==e3||ek[37]!==eD||ek[38]!==eU?(C=async e=>{if(e.preventDefault(),e1(""),eT)await eI(eW.email,eW.password)&&(eC(),eQ({name:"",email:"",password:"",phone:"",address:"",emirate:"",birthday:""}));else{if(!eW.name.trim())return void e1(eU("login.nameRequired"));if(!eW.email.trim())return void e1(eU("login.emailRequired"));let e=(0,f.normalizeEmailAddress)(eW.email);if(!(0,f.isEmailAddressSyntaxValid)(e))return void e1(eU("login.emailInvalid"));if(!eW.password.trim())return void e1(eU("login.passwordRequired"));if(eW.password.length<8)return void e1(eU("login.passwordMinLength"));if(!eW.phone.trim())return void e1(eU("login.phoneRequired"));if(!eW.address.trim())return void e1(eU("login.addressRequired"));if(!eW.emirate.trim())return void e1(eU("login.emirateRequired"));if(!e3)return void e1(eU("login.privacyConsentRequired"));await eD(eW.name,e,eW.password,eW.phone,eW.address,eW.emirate,eW.birthday,tt||"",!0)&&(eC(),eQ({name:"",email:"",password:"",phone:"",address:"",emirate:"",birthday:""}),e4(!1))}},ek[25]=eW.address,ek[26]=eW.birthday,ek[27]=eW.email,ek[28]=eW.emirate,ek[29]=eW.name,ek[30]=eW.password,ek[31]=eW.phone,ek[32]=eT,ek[33]=eI,ek[34]=tt,ek[35]=eC,ek[36]=e3,ek[37]=eD,ek[38]=eU,ek[39]=C):C=ek[39];let tn=C;ek[40]!==eT||ek[41]!==eO?(T=()=>{eO(!eT),e1(""),e9(null),eQ({name:"",email:"",password:"",phone:"",address:"",emirate:"",birthday:""}),e4(!1),e5(!1)},ek[40]=eT,ek[41]=eO,ek[42]=T):T=ek[42];let td=T;if(!eP||"u"<typeof document)return null;ek[43]===Symbol.for("react.memo_cache_sentinel")?(O={zIndex:1e4},ek[43]=O):O=ek[43];
3let tc=`modal-surface-vibrancy p-5 md:p-7 max-w-sm md:max-w-md w-full max-h-[88vh] overflow-y-auto ${"rtl"===eF?"text-right":""}`,tu=`absolute top-0 ${"rtl"===eF?"left-0":"right-0"} text-gray-400 hover:text-gray-600 p-1 touch-manipulation transition-colors`;ek[44]!==eU?(_=eU("common.close"),ek[44]=eU,ek[45]=_):_=ek[45],ek[46]===Symbol.for("react.memo_cache_sentinel")?(I=(0,t.jsx)(s.X,{className:"h-5 w-5 md:h-6 md:w-6","aria-hidden":"true"}),ek[46]=I):I=ek[46],ek[47]!==eC||ek[48]!==tu||ek[49]!==_?(D=(0,t.jsx)("button",{onClick:eC,className:tu,"aria-label":_,children:I}),ek[47]=eC,ek[48]=tu,ek[49]=_,ek[50]=D):D=ek[50],ek[51]!==eT||ek[52]!==eU?(M=eT?eU("login.professionalLogin"):eU("login.professionalAccount"),ek[51]=eT,ek[52]=eU,ek[53]=M):M=ek[53],ek[54]!==M?($=(0,t.jsx)("h2",{id:"modal-title",className:"text-lg md:text-xl font-bold text-gray-900 text-center pr-6 tracking-tight",children:M}),ek[54]=M,ek[55]=$):$=ek[55],ek[56]!==eU?(K=eU("login.unitedArabEmirates"),ek[56]=eU,ek[57]=K):K=ek[57],ek[58]!==K?(L=(0,t.jsx)("p",{className:"text-xs md:text-sm text-gray-500 mt-1 text-center",children:K}),ek[58]=K,ek[59]=L):L=ek[59],ek[60]!==D||ek[61]!==$||ek[62]!==L?(U=(0,t.jsxs)("div",{className:"relative mb-4 md:mb-5",children:[D,$,L]}),ek[60]=D,ek[61]=$,ek[62]=L,ek[63]=U):U=ek[63],ek[64]!==e0?(z=e0&&(0,t.jsx)("div",{id:"error-message",className:"bg-red-50 border border-red-200 text-red-600 px-3 py-2 rounded-lg text-xs md:text-sm",role:"alert",children:e0}),ek[64]=e0,ek[65]=z):z=ek[65],ek[66]!==eF||ek[67]!==eT||ek[68]!==ez?(F=!eT&&(0,t.jsxs)("div",{className:`rounded-lg border border-primary-100 bg-primary-50/60 px-3.5 py-2.5 ${"rtl"===eF?"text-right":""}`,children:[(0,t.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-wider text-primary-700",children:"ar"===ez?"Ø¥ÙØ´Ø§Ø¡ ØØ³Ø§Ø¨ - دÙÙÙØ© ÙØ§ØØ¯Ø©":"ru"===ez?"Создание аккаÑнÑа - 1 минÑÑа":"Create account - 1 minute"}),(0,t.jsx)("p",{className:"mt-1 text-[11px] md:text-xs text-gray-700 leading-relaxed",children:"ar"===ez?"ØªØªØ¨ÙØ¹ Ø§ÙØ·ÙØ¨Ø§ØªØ Ø´ØÙ Ù
جاÙÙ ÙÙÙ 1000 درÙÙ
Ø ÙØ¹Ø±Ùض ØØµØ±ÙØ© ÙÙØ¹Ù
ÙØ§Ø¡ اÙÙ
ØØªØ±ÙÙÙ.":"ru"===ez?"ÐÑÑлеживание заказов, беÑплаÑÐ½Ð°Ñ Ð´Ð¾ÑÑавка Ð¾Ñ 1000 AED и закÑÑÑÑе ÑÐµÐ½Ñ Ð´Ð»Ñ Ð¿ÑоÑи.":"Order tracking, free shipping over AED 1,000, and exclusive pricing for pros."})]}),ek[66]=eF,ek[67]=eT,ek[68]=ez,ek[69]=F):F=ek[69],ek[70]!==eF||ek[71]!==eK||ek[72]!==eT||ek[73]!==e$||ek[74]!==eM||ek[75]!==eU?(q=eT&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>eM(),disabled:eK,className:`w-full flex items-center justify-center gap-2 md:gap-3 bg-surface border border-border-primary text-text-primary py-2.5 md:py-3 rounded-system font-semibold hover:bg-surface-secondary transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed elevation-1 hover:elevation-2 min-h-[44px] ${"rtl"===eF?"flex-row-reverse":""}`,children:[(0,t.jsxs)("svg",{className:"h-4 w-4 md:h-5 md:w-5",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,t.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),(0,t.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),(0,t.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),(0,t.jsx)("span",{className:"text-xs md:text-sm",children:eU("login.signInWithGoogle")})]}),(0,t.jsxs)("button",{type:"button",onClick:()=>e$(),disabled:eK,className:`w-full flex items-center justify-center gap-2 md:gap-3 bg-black text-white py-2.5 md:py-3 rounded-system font-semibold hover:bg-black/90 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed elevation-2 hover:elevation-3 min-h-[44px] ${"rtl"===eF?"flex-row-reverse":""}`,children:[(0,t.jsx)("svg",{className:"h-4 w-4 md:h-5 md:w-5",viewBox:"0 0 814 1000","aria-hidden":"true",children:(0,t.jsx)("path",{fill:"currentColor",d:"M788.1 340.9c-
35.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"})}),(0,t.jsx)("span",{className:"text-xs md:text-sm",children:eU("login.signInWithApple")})]}),(0,t.jsxs)("a",{href:"https://apps.apple.com/ae/app/genosys-uae/id6756648064",target:"_blank",rel:"noopener noreferrer",className:`w-full flex items-center justify-center gap-2 md:gap-3 bg-[var(--cera-cta)] text-white py-2 rounded-system font-semibold hover:bg-[var(--cera-rose-ink)] transition-all duration-200 elevation-2 hover:elevation-3 min-h-[44px] ${"rtl"===eF?"flex-row-reverse":""}`,children:[(0,t.jsx)("svg",{className:"h-4 w-4 md:h-5 md:w-5",viewBox:"0 0 814 1000","aria-hidden":"true",children:(0,t.jsx)("path",{fill:"currentColor",d:"M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"})}),(0,t.jsx)("span",{className:"text-xs md:text-sm",children:eU("login.downloadAppApple")})]}),(0,t.jsxs)("a",{href:"https://play.google.com/store/apps/details?id=ae.genosys.app",target:"_blank",rel:"noopener noreferrer",className:`w-full flex items-center justify-center gap-2 md:gap-3 bg-[var(--cera-cta)] text-white py-2 rounded-system font-semibold hover:bg-[var(--cera-rose-ink)] transition-all duration-200 elevation-2 hover:elevation-3 min-h-[44px] ${"rtl"===eF?"flex-row-reverse":""}`,children:[(0,t.jsx)("svg",{className:"h-4 w-4 md:h-5 md:w-5",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M3.609 1.814L13.792 12 3.61 22.186a.996.996 0 0 1-.61-.92V2.734a1 1 0 0 1 .609-.92zm10.89 10.893l2.302 2.302-10.937 6.333 8.635-8.635zm3.199-3.199l2.807 1.626a1 1 0 0 1 0 1.732l-2.808 1.626L15.206 12l2.492-2.492zM5.864 2.658L16.8 8.99l-2.302 2.302-8.634-8.634z"})}),(0,t.jsx)("span",{className:"text-xs md:text-sm",children:eU("login.downloadAppGoogle")})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("div",{className:"w-full border-t border-gray-300"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-xs",children:(0,t.jsx)("span",{className:"bg-white px-2 text-gray-500",children:eU("login.or")})})]})]}),ek[70]=eF,ek[71]=eK,ek[72]=eT,ek[73]=e$,ek[74]=eM,ek[75]=eU,ek[76]=q):q=ek[76],ek[77]!==eF||ek[78]!==tl||ek[79]!==e6||ek[80]!==eK||ek[81]!==eT||ek[82]!==eV||ek[83]!==eY||ek[84]!==eU?(Y=eT&&e6&&eY&&(0,t.jsxs)("button",{type:"button",onClick:tl,disabled:eK||eV,className:`w-full flex items-center justify-center gap-2 md:gap-3 bg-gradient-to-r from-blue-600 to-indigo-600 text-white py-2.5 md:py-3 rounded-system font-semibold hover:from-blue-700 hover:to-indigo-700 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed elevation-2 hover:elevation-3 min-h-[44px] ${"rtl"===eF?"flex-row-reverse":""}`,children:[(0,t.jsx)(d.Fingerprint,{className:"h-5 w-5","aria-hidden":"true"}),(0,t.jsx)("span",{className:"text-xs md:text-sm",children:eV?eU("login.pleaseWait"):eU("login.signInWithPasskey")||"Sign in with Face ID / Touch ID"})]}),ek[77]=eF,ek[78]=tl,ek[79]=e6,ek[80]=eK,ek[81]=eT,ek[82]=eV,ek[83]=eY,ek[84]=eU,ek[85]=Y):Y=ek[85],ek[86]!==eF||ek[87]!==eT||ek[88]!==ez||ek[89]!==tt?(H=!eT&&tt?(0,t.jsxs)("div",{className:`bg-[var(--cera-ok-bg)] border border-[var(--cera-ok-line)] text-[var(--cera-ok)] px-3 py-2 rounded-lg text-xs md:text-sm ${"rtl"===eF?"text-right":""}`,children:[(0,t.jsx)("div",{className:"font-semibold",children:"ar"===ez?"تÙ
تطبÙÙ Ø§ÙØ¹Ø±Ø¶":"ru"===ez?"ÐÑомокод пÑименÑн":"Promo applied"}),(0,t.jsx)("div",{className:"opacity-90",children:tt})]}):null,ek[86]=eF,ek[87]=eT,ek[88]=ez,ek[89]=tt,ek[90]=H):H=ek[90],ek[91]!==eF||ek[92]!==e0||ek[93]!==eW.name||ek[94]!==eT||ek[95]!==eU?(G=!eT&&(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"name",className:"sr-only",children:eU("login.fullName")}
3),(0,t.jsx)("input",{ref:ta,type:"text",id:"name",name:"name",placeholder:eU("login.fullNamePlaceholder"),value:eW.name,onChange:to,className:`w-full px-3 py-2.5 md:py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500 text-xs md:text-sm bg-white text-gray-900 placeholder:text-gray-400 transition-shadow ${"rtl"===eF?"text-right":""}`,required:!eT,"aria-describedby":e0&&!eT?"error-message":void 0})]}),ek[91]=eF,ek[92]=e0,ek[93]=eW.name,ek[94]=eT,ek[95]=eU,ek[96]=G):G=ek[96],ek[97]!==eU?(V=eU("login.emailAddress"),ek[97]=eU,ek[98]=V):V=ek[98],ek[99]!==V?(B=(0,t.jsx)("label",{htmlFor:"email",className:"sr-only",children:V}),ek[99]=V,ek[100]=B):B=ek[100];let tm=eT?ta:void 0;ek[101]!==eT||ek[102]!==eU?(J=eT?eU("login.emailAddressPlaceholder"):eU("login.emailAddressRequired"),ek[101]=eT,ek[102]=eU,ek[103]=J):J=ek[103];let th=`w-full px-3 py-2.5 md:py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500 text-xs md:text-sm bg-white text-gray-900 placeholder:text-gray-400 transition-shadow ${"rtl"===eF?"text-right":""}`,tp=e0?"error-message":void 0;ek[104]!==eW.email||ek[105]!==tm||ek[106]!==J||ek[107]!==th||ek[108]!==tp?(W=(0,t.jsx)("input",{ref:tm,type:"email",id:"email",name:"email",placeholder:J,value:eW.email,onChange:to,className:th,required:!0,"aria-describedby":tp}
3),ek[104]=eW.email,ek[105]=tm,ek[106]=J,ek[107]=th,ek[108]=tp,ek[109]=W):W=ek[109],ek[110]!==e7||ek[111]!==eW.email||ek[112]!==eT||ek[113]!==eU?(Q=!eT&&(0,t.jsx)(y.default,{email:eW.email,confirmedEmail:e7,message:eU("login.emailDidYouMean"),useSuggestionLabel:eU("login.useSuggestedEmail"),keepEnteredLabel:eU("login.keepEnteredEmail"),onUseSuggestion:e=>{eQ(t=>({...t,email:e})),e9(null),e1("")},onKeepEntered:e9}),ek[110]=e7,ek[111]=eW.email,ek[112]=eT,ek[113]=eU,ek[114]=Q):Q=ek[114],ek[115]!==B||ek[116]!==W||ek[117]!==Q?(X=(0,t.jsxs)("div",{children:[B,W,Q]}),ek[115]=B,ek[116]=W,ek[117]=Q,ek[118]=X):X=ek[118],ek[119]!==eF||ek[120]!==e0||ek[121]!==eW.phone||ek[122]!==eT||ek[123]!==eU?(Z=!eT&&(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"phone",className:"sr-only",children:eU("login.uaePhoneNumber")}),(0,t.jsx)("input",{type:"tel",id:"phone",name:"phone",placeholder:eU("login.uaePhoneNumberPlaceholder"),value:eW.phone,onChange:to,className:`w-full px-3 py-2.5 md:py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500 text-xs md:text-sm bg-white text-gray-900 placeholder:text-gray-400 transition-shadow ${"rtl"===eF?"text-right":""}`,required:!eT,"aria-describedby":e0&&!eT?"error-message":void 0})]}),ek[119]=eF,ek[120]=e0,ek[121]=eW.phone,ek[122]=eT,ek[123]=eU,ek[124]=Z):Z=ek[124],ek[125]!==eF||ek[126]!==e0||ek[127]!==eW.address||ek[128]!==eT||ek[129]!==eU?(ee=!eT&&(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"address",className:"sr-only",children:eU("login.uaeAddress")}),(0,t.jsx)("input",{type:"text",id:"address",name:"address",placeholder:eU("login.uaeAddressPlaceholder"),value:eW.address,onChange:to,className:`w-full px-3 py-2.5 md:py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500 text-xs md:text-sm bg-white text-gray-900 placeholder:text-gray-400 transition-shadow ${"rtl"===eF?"text-right":""}`,required:!eT,"aria-describedby":e0&&!eT?"error-message":void 0})]}),ek[125]=eF,ek[126]=e0,ek[127]=eW.address,ek[128]=eT,ek[129]=eU,ek[130]=ee):ee=ek[130],ek[131]!==eF||ek[132]!==e0||ek[133]!==eW.emirate||ek[134]!==eT||ek[135]!==ez||ek[136]!==eU?(et=!eT&&(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"emirate",className:"sr-only",children:eU("login.emirate")}),(0,t.jsxs)("select",{id:"emirate",name:"emirate",value:eW.emirate,onChange:to,className:`w-full px-3 py-2.5 md:py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500 text-xs md:text-sm bg-white ${eW.emirate?"text-gray-900":"text-gray-400"} transition-shadow ${"rtl"===eF?"text-right":""}`,required:!eT,"aria-describedby":e0&&!eT?"error-message":void 0,children:[(0,t.jsx)("option",{value:"",children:eU("login.selectEmirate")}),p.EMIRATES.map(e=>(0,t.jsx)("option",{value:e.value,children:e.label[ez]??e.label.en},e.value))]})]}),ek[131]=eF,ek[132]=e0,ek[133]=eW.emirate,ek[134]=eT,ek[135]=ez,ek[136]=eU,ek[137]=et):et=ek[137],ek[138]!==eF||ek[139]!==e0||ek[140]!==eW.birthday||ek[141]!==eT||ek[142]!==eU?(er=!eT&&(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"birthday",className:`block text-[10px] md:text-xs font-medium text-gray-600 mb-1 ${"rtl"===eF?"text-right":""}`,children:eU("login.birthday")}),(0,t.jsx)("input",{type:"date",id:"birthday",name:"birthday",value:eW.birthday,onChange:to,max:eq,className:`w-full px-3 py-2.5 md:py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500 text-xs md:text-sm bg-white ${eW.birthday?"text-gray-900":"text-gray-400"} transition-shadow ${"rtl"===eF?"text-right":""}`,"aria-describedby":e0&&!eT?"error-message":void 0}),(0,t.jsxs)("p",{className:`text-[10px] text-gray-500 mt-0.5 flex items-center justify-center gap-1 ${"rtl"===eF?"flex-row-reverse":""}`,children:[eU("login.birthdayMessage")," ",(0,t.jsx)(n.Gift,{className:"h-3 w-3 text-primary-600"})]})]}),ek[138]=eF,ek[139]=e0,ek[140]=eW.birthday,ek[141]=eT,ek[142]=eU,ek[143]=er):er=ek[143],ek[144]!==eU?(ea=eU("login.password"),ek[144]=eU,ek[145]=ea):ea=ek[145],ek[146]!==ea?(ei=(0,t.jsx)("label",{htmlFor:"password",className:"sr-only",children:ea}),ek[146]=ea,ek[147]=ei):ei=ek[147];let tg=eX?"text":"password";ek[148]!==eU?(es=eU("login.passwordPlaceholder"),ek[148]=eU,ek[149]=es):es=ek[149];let ty=`w-full px-3 py-2.5 md:py-2 ${"rtl"===eF?"pl-10":"pr-10"} border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-primary-500 text-xs md:text-sm bg-white text-gray-900 transition-shadow ${"rtl"===eF?"text-right":""}`,tf=e0?"error-message":void 0;ek[150]!==eW.password||ek[151]!==tg||ek[152]!==es||ek[153]!==ty||ek[154]!==tf?(el=(0,t.jsx)("input",{ref:ti,type:tg,id:"password",name:"password",placeholder:es,value:eW.password,onChange:to,className:ty,required:!0,"aria-describedby":tf}),ek[150]=eW.password,ek[151]=tg,ek[152]=es,ek[153]=ty,ek[154]=tf,ek[155]=el):el=ek[155],ek[156]!==eX?(eo=()=>eZ(!eX),ek[156]=eX,ek[157]=eo):eo=ek[157];let tx=`absolute inset-y-0 ${"rtl"===eF?"left-0 pl-3":"right-0 pr-3"} flex items-center touch-manipulation`;ek[158]!==eX||ek[159]!==eU?(en=eX?eU("login.hidePassword"):eU("login.showPassword"),ek[158]=eX,ek[159]=eU,ek[160]=en):en=ek[160],ek[161]!==eX?(ed=eX?(0,t.jsx)(o.EyeOff,{className:"h-4 w-4 text-gray-400","aria-hidden":"true"}):(0,t.jsx)(l.Eye,{className:"h-4 w-4 text-gray-400","aria-hidden":"true"}),ek[161]=eX,ek[162]=ed):ed=ek[162],ek[163]!==eo||ek[164]!==tx||ek[165]!==en||ek[166]!==ed?(ec=(0,t.jsx)("button",{type:"button",onClick:eo,className:tx,"aria-label":en,children:ed}),ek[163]=eo,ek[164]=tx,ek[165]=en,ek[166]=ed,ek[167]=ec):ec=ek[16
37],ek[168]!==ei||ek[169]!==el||ek[170]!==ec?(eu=(0,t.jsxs)("div",{className:"relative",children:[ei,el,ec]}),ek[168]=ei,ek[169]=el,ek[170]=ec,ek[171]=eu):eu=ek[171],ek[172]!==eF||ek[173]!==eT||ek[174]!==ez||ek[175]!==eC||ek[176]!==eU?(em=eT&&(0,t.jsx)("div",{className:"rtl"===eF?"text-left":"text-right",children:(0,t.jsx)(u.default,{href:(0,h.getLocalizedPath)("/forgot-password",ez),onClick:eC,className:"text-xs md:text-sm text-primary-600 hover:text-primary-700 font-medium",children:eU("login.forgotPassword")})}),ek[172]=eF,ek[173]=eT,ek[174]=ez,ek[175]=eC,ek[176]=eU,ek[177]=em):em=ek[177],ek[178]!==eF||ek[179]!==eT||ek[180]!==e3||ek[181]!==e2||ek[182]!==eU?(eh=!eT&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"bg-gray-50 border border-gray-200 rounded-lg p-2.5 overflow-hidden",children:[(0,t.jsxs)("div",{className:`flex items-center justify-between ${"rtl"===eF?"flex-row-reverse":""}`,children:[(0,t.jsx)("h4",{className:`font-semibold text-gray-800 text-[11px] ${"rtl"===eF?"text-right":""}`,children:eU("login.privacyPolicy")}),(0,t.jsx)("button",{type:"button",onClick:()=>e5(!e2),className:"text-primary-600 hover:text-primary-700 text-[10px] font-medium underline flex-shrink-0",children:e2?eU("login.hideDetails"):eU("login.viewDetails")})]}),e2&&(0,t.jsx)("div",{className:"mt-2 pt-2 border-t border-gray-200 h-28 overflow-y-auto",style:{WebkitOverflowScrolling:"touch"},children:(0,t.jsxs)("div",{className:`text-[9px] text-gray-600 space-y-1.5 pr-1 ${"rtl"===eF?"text-right pl-1 pr-0":""}`,children:[(0,t.jsx)("p",{children:eU("login.privacyPolicyDescription")}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"font-semibold",children:["1. ",eU("login.personalInformationProcessed")]}),(0,t.jsx)("p",{children:eU("login.privacyPolicyContent1")})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"font-semibold",children:["1.1. ",eU("login.authenticationMethods")]}),(0,t.jsx)("p",{children:eU("login.authenticationMethodsDescription")})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"font-semibold",children:["1.2. ",eU("login.googleAuthentication")]}),(0,t.jsx)("p",{children:eU("login.googleAuthenticationDescription")}),(0,t.jsx)("p",{className:"mt-1",children:eU("login.googleDataShared")}),(0,t.jsx)("p",{className:"mt-1",children:eU("login.googlePrivacyPolicy")}),(0,t.jsx)("p",{className:"mt-1",children:eU("login.googleDataUsage")}),(0,t.jsx)("p",{className:"mt-1",children:eU("login.googleAccountLinking")}),(0,t.jsx)("p",{className:"mt-1",children:eU("login.googleDataControl")}),(0,t.jsx)("p",{className:"mt-1",children:eU("login.googleAlternative")})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"font-semibold",children:["2. ",eU("login.purposeOfProcessing")]}),(0,t.jsx)("p",{children:eU("login.purposeDescription")})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"font-semibold",children:["3. ",eU("login.retentionPeriod")]}),(0,t.jsx)("p",{children:eU("login.retentionDescription")})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"font-semibold",children:["4. ",eU("login.rightToRefuse")]}),(0,t.jsx)("p",{children:eU("login.rightToRefuseDescription")})]}),(0,t.jsx)("div",{className:"p-1.5 bg-amber-50 border border-amber-200 rounded text-amber-800",children:(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:eU("login.important")})," ",eU("login.importantMessage")]})}),(0,t.jsx)("p",{className:"text-primary-600 font-medium",children:eU("login.privacyContact")})]})})]}),(0,t.jsxs)("div",{className:`flex items-start gap-2 ${"rtl"===eF?"flex-row-reverse":""}`,children:[(0,t.jsx)("input",{type:"checkbox",id:"privacy-consent",checked:e3,onChange:e=>e4(e.target.checked),className:"mt-0.5 h-3.5 w-3.5 text-primary-600 focus:ring-primary-500 border-gray-300 rounded flex-shrink-0",required:!0}),(0,t.jsxs)("label",{htmlFor:"privacy-consent",className:`text-[10px] text-gray-600 leading-tight ${"rtl"===eF?"text-right":""}`,children:[eU("login.agreeToPrivacy")," ",(0,t.jsx)("span",{className:"text-primary-600 font-medium",children:eU("login.privacyPolicy")})]})]})]}),ek[178]=eF,ek[179]=eT,ek[180]=e3,ek[181]=e2,ek[182]=eU,ek[183]=eh):eh=ek[183],ek[184]!==eK||ek[185]!==eT||ek[186]!==eU?(ep=eK?eU("login.pleaseWait"):eT?eU("login.signIn"):eU("login.createProfessionalAccount"),ek[184]=eK,e
3k[185]=eT,ek[186]=eU,ek[187]=ep):ep=ek[187],ek[188]!==eK||ek[189]!==ep?(eg=(0,t.jsx)("button",{type:"submit",disabled:eK,className:"w-full bg-primary-600 text-white py-2.5 md:py-3 text-sm md:text-base rounded-system font-semibold hover:bg-primary-700 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed shadow-primary hover:shadow-primary-lg min-h-[44px]",children:ep}),ek[188]=eK,ek[189]=ep,ek[190]=eg):eg=ek[190],ek[191]!==tn||ek[192]!==Y||ek[193]!==H||ek[194]!==G||ek[195]!==X||ek[196]!==Z||ek[197]!==ee||ek[198]!==et||ek[199]!==er||ek[200]!==eu||ek[201]!==em||ek[202]!==eh||ek[203]!==eg?(ey=(0,t.jsxs)("form",{onSubmit:tn,className:"space-y-3 md:space-y-4",children:[Y,H,G,X,Z,ee,et,er,eu,em,eh,eg]}),ek[191]=tn,ek[192]=Y,ek[193]=H,ek[194]=G,ek[195]=X,ek[196]=Z,ek[197]=ee,ek[198]=et,ek[199]=er,ek[200]=eu,ek[201]=em,ek[202]=eh,ek[203]=eg,ek[204]=ey):ey=ek[204];let tb=`flex flex-col gap-1 text-xs text-gray-600 ${"rtl"===eF?"text-right":""}`;return ek[205]!==eT||ek[206]!==eU?(ef=eT?eU("login.dontHaveAccount"):eU("login.alreadyHaveAccount"),ek[205]=eT,ek[206]=eU,ek[207]=ef):ef=ek[207],ek[208]!==ef?(ex=(0,t.jsx)("span",{children:ef}),ek[208]=ef,ek[209]=ex):ex=ek[209],ek[210]!==eT||ek[211]!==eU?(eb=eT?eU("login.switchToCreate"):eU("login.switchToLogin"),ek[210]=eT,ek[211]=eU,ek[212]=eb):eb=ek[212],ek[213]!==eT||ek[214]!==eU?(ew=eT?eU("login.switchToCreate"):eU("login.switchToLogin"),ek[213]=eT,ek[214]=eU,ek[215]=ew):ew=ek[215],ek[216]!==eb||ek[217]!==ew||ek[218]!==td?(ev=(0,t.jsx)("button",{onClick:td,className:"text-primary-600 hover:text-primary-700 font-medium","aria-label":eb,children:ew}),ek[216]=eb,ek[217]=ew,ek[218]=td,ek[219]=ev):ev=ek[219],ek[220]!==tb||ek[221]!==ex||ek[222]!==ev?(ej=(0,t.jsxs)("div",{className:tb,children:[ex,ev]}),ek[220]=tb,ek[221]=ex,ek[222]=ev,ek[223]=ej):ej=ek[223],ek[224]!==eF||ek[225]!==eT||ek[226]!==ez||ek[227]!==eC?(eE=eT&&(0,t.jsxs)(u.default,{href:`${(0,h.getLocalizedPath)("/login",ez)}?partner=1`,onClick:eC,className:`mt-3 w-full flex items-center justify-center gap-2 bg-gray-900 hover:bg-black text-white py-3 rounded-lg font-bold text-xs uppercase tracking-wide transition-colors ${"rtl"===eF?"flex-row-reverse":""}`,children:[(0,t.jsx)("span",{className:"w-2 h-2 rounded-full bg-red-500"}),"ru"===ez?"ÐÑ Ð¾Ð´ Ð´Ð»Ñ Ð¿Ð°ÑÑнÑÑов - клиники":"ar"===ez?"دخÙÙ Ø§ÙØ´Ø±Ùاء - Ø§ÙØ¹Ùادات":"Partner Access - Clinics"]}),ek[224]=eF,ek[225]=eT,ek[226]=ez,ek[227]=eC,ek[228]=eE):eE=ek[228],ek[229]!==ej||ek[230]!==eE?(eN=(0,t.jsxs)("div",{className:"text-center pt-2 md:pt-3 border-t border-gray-100",children:[ej,eE]}),ek[229]=ej,ek[230]=eE,ek[231]=eN):eN=ek[231],ek[232]!==z||ek[233]!==F||ek[234]!==q||ek[235]!==ey||ek[236]!==eN?(eA=(0,t.jsxs)("div",{className:"space-y-3 md:space-y-4",children:[z,F,q,ey,eN]}),ek[232]=z,ek[233]=F,ek[234]=q,ek[235]=ey,ek[236]=eN,ek[237]=eA):eA=ek[237],ek[238]!==tc||ek[239]!==U||ek[240]!==eA?(eR=(0,t.jsxs)("div",{ref:tr,className:tc,children:[U,eA]}),ek[238]=tc,ek[239]=U,ek[240]=eA,ek[241]=eR):eR=ek[241],ek[242]!==eF||ek[243]!==eR?(eS=(0,i.createPortal)((0,t.jsx)("div",{className:"fixed inset-0 modal-overlay-heavy flex items-center justify-center z-[10000] p-3 md:p-4",style:O,role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",dir:eF,children:eR}),document.body),ek[242]=eF,ek[243]=eR,ek[244]=eS):eS=ek[244],eS}])}]); 4 5//# debugId=3e1df1bf-bad9-d350-32a9-27a42c33a1fe
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.