1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3840],{23708:(e,t,a)=>{a.d(t,{BiometricUnlockOffer:()=>u});var n=a(95155),l=a(12115),i=a(99345),r=a(35588),o=a(29801),s=a(80023),c=a(69449),d=a(69982);function u(){let e=(0,i.c)("account.biometrics"),{isLoggedIn:t}=(0,d.useAuthSession)(),[a,u]=(0,l.useState)(!1),[m,f]=(0,l.useState)("other"),[x,h]=(0,l.useState)(!1);async function b(){await (0,s.markBiometricUnlockOffered)(),u(!1)}async function p(){h(!0);try{let t=await (0,s.authenticateWithBiometry)(e("reason"));if("authenticated"!==t)return;await (0,s.setBiometricUnlockEnabled)(!0),await (0,s.markBiometricUnlockOffered)(),u(!1)}finally{h(!1)}}if((0,l.useEffect)(()=>{if(!t)return;let e=!0;return(async()=>{let[t,a]=await Promise.all([(0,s.checkBiometryAvailability)(),(0,s.wasBiometricUnlockOffered)()]);e&&t.available&&!a&&(f(t.kind),u(!0))})(),()=>{e=!1}},[t]),!a)return null;let v="faceId"===m?o.N1W:r.YL0;return(0,n.jsx)(c.Xn,{open:!0,onClose:b,closeLabel:e("notNow"),title:(0,n.jsxs)("span",{className:"flex items-center gap-2",children:[(0,n.jsx)(v,{className:"text-accent h-5 w-5"}),e("offerTitle",{biometry:m})]}),subtitle:e("offerSubtitle"),footer:(0,n.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row-reverse",children:[(0,n.jsx)("button",{type:"button",onClick:p,disabled:x,className:"bg-wavee-brand-gradient inline-flex min-h-12 flex-1 items-center justify-center rounded-xl px-4 text-sm font-semibold text-white transition-all hover:brightness-110 disabled:opacity-60",children:x?e("enabling"):e("enable",{biometry:m})}),(0,n.jsx)("button",{type:"button",onClick:b,disabled:x,className:"border-default text-text hover:bg-surface inline-flex min-h-12 flex-1 items-center justify-center rounded-xl border px-4 text-sm font-semibold transition-colors disabled:opacity-60",children:e("notNow")})]}),children:(0,n.jsx)("p",{className:"text-text-muted text-sm",children:e("offerBody",{biometry:m})})})}},24502:(e,t,a)=>{a.d(t,{createPendingAuthActionStore:()=>n});function n(e){return{remember:function(t){try{if(!t)return window.sessionStorage.removeItem(e);window.sessionStorage.setItem(e,JSON.stringify(t))}catch{}},peek:function(){try{let t=window.sessionStorage.getItem(e);if(!t)return null;let a=JSON.parse(t);if("number"!=typeof a.until||Date.now()>a.until)return window.sessionStorage.removeItem(e),null;return a}catch{return null}}}}},26758:(e,t,a)=>{a.d(t,{BiometricLockGate:()=>u});var n=a(95155),l=a(12115),i=a(99345),r=a(35588),o=a(80023),s=a(82385),c=a(69449),d=a(69982);function u(){let e=(0,i.c)("account.biometrics"),{isLoggedIn:t,logout:a}=(0,d.useAuthSession)(),[u,m]=(0,l.useState)(!1),[f,x]=(0,l.useState)(!1),h=(0,l.useRef)(!1),b=(0,l.useRef)(null);(0,c.iE)(b,{active:u,priority:c.P8.appLock}),(0,c.K$)(u);let p=(0,l.useCallback)(async()=>{if(!h.current){h.current=!0,x(!0);try{let t=await (0,o.authenticateWithBiometry)(e("reason"));"authenticated"===t&&(await (0,o.markActiveNow)(),m(!1))}finally{h.current=!1,x(!1)}}},[e]);return((0,l.useEffect)(()=>{let e=!0,a=null;if((0,o.isNativeAppLockAvailable)())return;let n=async()=>{if(!t){e&&m(!1);return}if(!await (0,o.isBiometricUnlockEnabled)())return;let a=await (0,o.getLastActiveAt)(),n=null===a?1/0:Date.now()-a;e&&n>s.Y&&m(!0)};return n(),(0,o.addAppStateListener)(e=>{e?n():(0,o.markActiveNow)()}).then(t=>{e?a=t:t?.remove()}),()=>{e=!1,a?.remove()}},[t]),(0,l.useEffect)(()=>{u&&p()},[u,p]),u)?(0,n.jsxs)("div",{ref:b,role:"dialog","aria-modal":"true","aria-labelledby":"biometric-lock-title","data-testid":"biometric-lock-gate","data-modal-priority":c.P8.appLock,className:"bg-bg z-app-lock fixed inset-0 flex flex-col items-center justify-center gap-6 px-8",children:[(0,n.jsx)("div",{className:"bg-surface grid h-20 w-20 place-items-center rounded-full",children:(0,n.jsx)(r.J$y,{className:"text-text-muted h-9 w-9"})}),(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("h1",{id:"biometric-lock-title",className:"text-text text-xl font-bold",children:e("lockedTitle")}),(0,n.jsx)("p",{className:"text-text-muted mt-1 text-sm",children:e("lockedSubtitle")})]}),(0,n.jsxs)("div",{className:"flex w-full max-w-xs flex-col gap-2",children:[(0,n.jsxs)("button",{type:"button",onClick:p,disabled:f,className:"bg-wavee-brand-gradient inline-flex min-h-12 items-center justify-center gap-2 rounded-xl px-4 text-sm font-semibold text-white transition-all hover:brightness-110 disabled:opacity-60",children:[(0,n.jsx)(r.YL0,{className:"h-5 w-5"}),e("unlock")]}),(0,n.jsx)("button",{type:"button",onClick:()=>a(),className:"text-text-muted hover:text-text min-h-11 text-sm font-semibold transition-colors",children:e("usePassword")})]})]}):null}},31180:(e,t,a)=>{a.d(t,{o:()=>n,openLoginModal:()=>l});let n="wavee:open-login-modal";function l(e="login",t={}){window.dispatchEvent(new CustomEvent(n,{detail:{tab:e,...t}}))}},38486:(e,t,a)=>{a.d(t,{M:()=>r});var n=a(95155),l=a(19749);
1let i={navbar:"h-auto w-[180px]",footer:"h-auto w-[180px]",mobile:"h-auto w-[128px]",auth:"h-auto w-[170px]",checkout:"h-auto w-[140px] sm:w-[180px]"};function r(e){let t,a,r=(0,l.c)(7),{alt:o,className:s,loading:c,variant:d}=e,u=void 0===o?"Wavee Global":o,m=void 0===c?"eager":c,f="eager"===m?"high":"auto",x=`${i[void 0===d?"navbar":d]} ${void 0===s?"":s}`;return r[0]!==x?(t=x.trim(),r[0]=x,r[1]=t):t=r[1],r[2]!==u||r[3]!==m||r[4]!==f||r[5]!==t?(a=(0,n.jsx)("img",{src:"/brand/logo-wavee-360.webp",alt:u,width:360,height:104,loading:m,fetchPriority:f,className:t,decoding:"async"}),r[2]=u,r[3]=m,r[4]=f,r[5]=t,r[6]=a):a=r[6],a}},69449:(e,t,a)=>{a.d(t,{Xn:()=>b,P8:()=>r,e$:()=>k,vW:()=>v,hs:()=>w,Es:()=>g,iE:()=>c,K$:()=>m});var n=a(95155),l=a(19749),i=a(12115);let r={appLock:100,localePreference:90};function o(e){return!("u"<typeof document)&&Array.from(document.querySelectorAll("[data-modal-priority]")).map(e=>Number(e.dataset.modalPriority)||0).every(t=>t<=e)}let s='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';function c(e,t){let a,n,r=(0,l.c)(5),{active:c,priority:d}=t;r[0]!==c||r[1]!==e||r[2]!==d?(a=()=>{if(!c)return;let t=e.current;o(d)&&t?.querySelector(s)?.focus();let a=e=>{if(!o(d))return;if("Escape"===e.key)return void e.preventDefault();if("Tab"!==e.key||!t)return;let a=Array.from(t.querySelectorAll(s));if(0===a.length)return;let n=a[0],l=a[a.length-1],i=document.activeElement;if(i&&!t.contains(i)){e.preventDefault(),n.focus();return}e.shiftKey||i!==l?e.shiftKey&&i===n&&(e.preventDefault(),l.focus()):(e.preventDefault(),n.focus())};return document.addEventListener("keydown",a,!0),()=>document.removeEventListener("keydown",a,!0)},n=[c,e,d],r[0]=c,r[1]=e,r[2]=d,r[3]=a,r[4]=n):(a=r[3],n=r[4]),(0,i.useEffect)(a,n)}let d=0,u=null;function m(e){let t,a,n=(0,l.c)(3);n[0]!==e?(t=()=>{if(e)return 0===d&&(u=document.body.style.overflow,document.body.style.overflow="hidden"),d+=1,f},a=[e],n[0]=e,n[1]=t,n[2]=a):(t=n[1],a=n[2]),(0,i.useEffect)(t,a)}function f(){(d-=1)>0||(document.body.style.overflow=u??"",u=null)}var x=a(47650),h=a(88510);function b(e){let t,a,r,o,s,c,d,u,f,b,p,v,y,w,g,k,N=(0,l.c)(45),{open:j,onClose:E,title:S,subtitle:L,footer:A,children:_,desktopDialog:C,ariaLabel:P,ariaLabelledBy:B,closeLabel:R,className:I,contentClassName:T,portal:U}=e,M=void 0===C||C;m(j),N[0]!==E||N[1]!==j?(t=()=>{if(!j)return;let e=e=>{"Escape"===e.key&&E()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},a=[j,E],N[0]=E,N[1]=j,N[2]=t,N[3]=a):(t=N[2],a=N[3]),(0,i.useEffect)(t,a);let O=j?"translate-y-0 opacity-100"+(M?" sm:-translate-y-1/2 sm:opacity-100":""):"translate-y-full opacity-0"+(M?" sm:translate-y-[-45%] sm:opacity-0":" sm:translate-y-full"),$=!j,D="z-overlay fixed inset-0 "+(j?"":"pointer-events-none"),F="absolute inset-0 bg-neutral-950/50 backdrop-blur-sm transition-opacity duration-300 "+(j?"opacity-100":"opacity-0");N[4]!==E||N[5]!==F?(r=(0,n.jsx)("div",{onClick:E,className:F}),N[4]=E,N[5]=F,N[6]=r):r=N[6];let J=B?void 0:P,z="bg-bg border-default pb-safe absolute inset-x-0 bottom-0 mx-auto flex max-h-[92dvh] w-full flex-col rounded-t-[1.8rem] border shadow-2xl transition-all duration-300 ease-out "+(M?"sm:inset-x-auto sm:bottom-auto sm:top-1/2 sm:left-1/2 sm:mx-0 sm:max-h-[88vh] sm:w-full sm:max-w-lg sm:-translate-x-1/2 sm:rounded-3xl":"")+" "+O+" "+(void 0===I?"":I),W="bg-text-muted/30 mx-auto mb-3 h-1.5 w-10 rounded-full"+(M?" sm:hidden":"");N[7]!==W?(o=(0,n.jsx)("div",{className:W}),N[7]=W,N[8]=o):o=N[8],N[9]!==S?(s=S&&(0,n.jsx)("h2",{className:"text-text truncate text-lg font-extrabold tracking-tight sm:text-xl",children:S}),N[9]=S,N[10]=s):s=N[10],N[11]!==L?(c=L&&(0,n.jsx)("p",{className:"text-text-muted mt-1 text-sm",children:L}),N[11]=L,N[12]=c):c=N[12],N[13]!==s||N[14]!==c?(d=(0,n.jsxs)("div",{className:"min-w-0",children:[s,c]}),N[13]=s,N[14]=c,N[15]=d):d=N[15];let K=R??"Close";N[16]===Symbol.for("react.memo_cache_sentinel")?(u=(0,n.jsx)(h.Mz4,{className:"h-5 w-5"}),N[16]=u):u=N[16],N[17]!==E||N[18]!==K?(f=(0,n.jsx)("button",{type:"button",onClick:E,"aria-label":K,className:"border-default text-text-muted hover:text-text ml-auto grid h-9 w-9 shrink-0 place-items-center rounded-full border transition-colors",children:u}),N[17]=E,N[18]=K,N[19]=f):f=N[19],N[20]!==d||N[21]!==f?(b=(0,n.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[d,f]}),N[20]=d,N[21]=f,N[22]=b):b=N[22],N[23]!==o||N[24]!==b?(p=(0,n.jsxs)("div",{className:"shrink-0 px-5 pt-3 pb-2",children:[o,b]}
1),N[23]=o,N[24]=b,N[25]=p):p=N[25];let Y=`min-h-0 flex-1 overflow-y-auto ${void 0===T?"px-5 pb-4":T}`;N[26]!==_||N[27]!==Y?(v=(0,n.jsx)("div",{className:Y,children:_}),N[26]=_,N[27]=Y,N[28]=v):v=N[28],N[29]!==A?(y=A&&(0,n.jsx)("div",{className:"border-default bg-bg shrink-0 border-t px-5 pt-3 pb-6",children:A}),N[29]=A,N[30]=y):y=N[30],N[31]!==B||N[32]!==J||N[33]!==z||N[34]!==p||N[35]!==v||N[36]!==y?(w=(0,n.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":B,"aria-label":J,className:z,children:[p,v,y]}),N[31]=B,N[32]=J,N[33]=z,N[34]=p,N[35]=v,N[36]=y,N[37]=w):w=N[37],N[38]!==r||N[39]!==w||N[40]!==$||N[41]!==D?(g=(0,n.jsxs)("div",{"aria-hidden":$,className:D,children:[r,w]}),N[38]=r,N[39]=w,N[40]=$,N[41]=D,N[42]=g):g=N[42];let q=g;return!(void 0!==U&&U)||"u"<typeof document?q:(N[43]!==q?(k=(0,x.createPortal)(q,document.body),N[43]=q,N[44]=k):k=N[44],k)}var p=a(87764);let v=(0,i.forwardRef)(function(e,t){let a,i,r,o,s=(0,l.c)(14),{value:c,resolution:d,logoSrc:u,className:m,title:f}=e,x=void 0===d?512:d;s[0]!==x?(a=Math.round(.2*x),s[0]=x,s[1]=a):a=s[1];let h=a,b=u?"H":"M";return s[2]===Symbol.for("react.memo_cache_sentinel")?(i={width:"100%",height:"auto"},s[2]=i):i=s[2],s[3]!==h||s[4]!==u?(r=u?{src:u,height:h,width:h,excavate:!0}:void 0,s[3]=h,s[4]=u,s[5]=r):r=s[5],s[6]!==m||s[7]!==t||s[8]!==x||s[9]!==b||s[10]!==r||s[11]!==f||s[12]!==c?(o=(0,n.jsx)(p.X,{ref:t,value:c,size:x,level:b,marginSize:2,title:f,className:m,style:i,imageSettings:r}),s[6]=m,s[7]=t,s[8]=x,s[9]=b,s[10]=r,s[11]=f,s[12]=c,s[13]=o):o=s[13],o});function y(e){return new Promise(t=>e.toBlob(t,"image/png"))}async function w(e,t){if(!e)return;let a=await y(e);if(!a)return;let n=URL.createObjectURL(a),l=document.createElement("a");l.href=n,l.download=t,l.click(),URL.revokeObjectURL(n)}async function g(e,{filename:t,title:a}){if(!e)return;let n=await y(e);if(!n)return;let l=new File([n],t,{type:"image/png"});if(navigator.canShare?.({files:[l]}))try{await navigator.share({files:[l],title:a});return}catch{return}await w(e,t)}let k="/qr-logo.png"},73415:(e,t,a)=>{a.d(t,{AppLockBridge:()=>s});var n=a(12115),l=a(99345),i=a(80023),r=a(82385),o=a(69982);function s(){let e=(0,l.c)("account.biometrics"),{isLoggedIn:t,logout:a}=(0,o.useAuthSession)(),s=(0,n.useCallback)(async()=>{let a=t&&await (0,i.isBiometricUnlockEnabled)();await (0,i.configureAppLock)({enabled:a,lockAfterMs:r.Y,title:e("lockedTitle"),subtitle:e("lockedSubtitle"),cancelButton:e("usePassword"),hint:e("unlock")})},[t,e]);return(0,n.useEffect)(()=>{if(!(0,i.isNativeAppLockAvailable)())return;s();let e=()=>void s();return window.addEventListener(i.BIOMETRIC_PREFERENCE_CHANGED_EVENT,e),()=>{window.removeEventListener(i.BIOMETRIC_PREFERENCE_CHANGED_EVENT,e)}},[s]),(0,n.useEffect)(()=>{if(!(0,i.isNativeAppLockAvailable)())return;let e=!1,t=null;return(0,i.addAppLockLogoutListener)(()=>{(async()=>{try{await a()}finally{await (0,i.releaseAppLock)()}})()}).then(a=>{e?a?.remove():t=a}),()=>{e=!0,t?.remove()}},[a]),null}},82385:(e,t,a)=>{a.d(t,{Y:()=>n});let n=18e5},83840:(e,t,a)=>{a.d(t,{ke:()=>c,C_:()=>n.AuthSessionProvider,J1:()=>d.J,$O:()=>u.TurnstileWidget,nr:()=>h.apiFetch,_o:()=>b._o,KB:()=>h.buildApiUrl,j3:()=>f.createPendingAuthActionStore,p7:()=>x.p7,PS:()=>x.PS,Jh:()=>x.Jh,ny:()=>m.openLoginModal,S5:()=>b.S5,rC:()=>b.rC,kF:()=>b.kF,SF:()=>b.SF,Q8:()=>n.useAuthSession});var n=a(69982),l=a(95155),i=a(19749),r=a(73981),o=a(35718),s=a(38486);function c(e){let t,a,n,c,d=(0,i.c)(6),{children:u}=e;return d[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)(o.N_,{href:"/",className:"mb-6 inline-flex items-center",children:(0,l.jsx)(s.M,{variant:"auth"})}),d[0]=t):t=d[0],d[1]!==u?(a=(0,l.jsx)("div",{className:"w-full",children:(0,l.jsxs)("div",{className:"border-default bg-bg mx-auto w-full rounded-[28px] border p-5 shadow-sm sm:max-w-xl sm:p-8",children:[t,u]})}),d[1]=u,d[2]=a):a=d[2],d[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)("div",{className:"hidden justify-center lg:flex",children:(0,l.jsx)("div",{className:"relative h-[560px] w-full max-w-[560px]",children:(0,l.jsx)(r.default,{src:"/utils/employees-working.svg",alt:"",role:"presentation",fill:!0,sizes:"560px",className:"object-contain",priority:!0})})}),d[3]=n):n=d[3],d[4]!==a?(c=(0,l.jsx)("section",{className:"bg-bg min-h-screen w-full",children:(0,l.jsxs)("div",{className:"mx-auto grid max-w-6xl items-center gap-10 px-4 py-6 sm:px-6 sm:py-10 lg:grid-cols-[minmax(0,460px)_1fr] lg:gap-16 lg:py-16",children:[a,n]})}),d[4]=a,d[5]=c):c=d[5],c}a(96958),a(73415),a(26758),a(23708);var d=a(83528),u=a(89376),m=a(31180),f=a(24502),x=a(41251),h=a(49145),b=a(33055);a(80023)},96958:(e,t,a)=>{a.d(t,{LoginModal:()=>f});var n=a(95155),l=a(19749),i=a(12115),r=a(82222),o=a(99345),s=a(69449),c=a(35718),d=a(31180),u=a(41251),m=a(92805);function f(){let e,t,a,f,x,h,b,p,v,y,w,g=(0,l.c)(25),k=(0,r.useRouter)(),N=(0,c.rd)(),j=(0,r.usePathname)(),E=(0,o.c)("login"),S=(0,i.useId)(),L=(0,i.useRef)(j),[A,_]=(0,i.useState)(!1),[C,P]=(0,i.useState)("login"),[B,R]=(0,i.useState)(void 0),[I,T]=(0,i.useState)(!1),U=(0,i.useRef)(null);if(g[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{let e=e=>{let t=e.detail;P(t?.tab==="register"?"register":"login"),R(t?.knownEmail||void 0),T(t?.startInCodeStep===!0),U.current=(0,u.v3)(t?.redirectTo??null),(0,u.ay)(U.current),_(!0)};return window.addEventListener(d.o,e),()=>{window.removeEventListener(d.o,e)}},t=[],g[0]=e,g[1]=t):(e=g[0],t=g[1]),(0,i.useEffect)(e,t),g[2]!==j?(a=()=>{L.current!==j&&(L.current=j,_(!1))},f=[j],g[2]=j,g[3]=a,g[4]=f):(a=g[3],f=g[4]),(0,i.useEffect)(a,f),!A)return null;g[5]===Symbol.for("react.memo_cache_sentinel")?(x=()=>_(!1),g[5]=x):x=g[5],g[6]!==E?(h=E("close"),g[6]=E,g[7]=h):h=g[7];let M=`${C}-${B??""}`;return g[8]!==N||g[9]!==k?(b=()=>{_(!1);let e=U.current;U.current=null,(0,u.ay)(null),e?N.replace(e):k.refresh()},g[8]=N,g[9]=k,g[10]=b):b=g[10],g[11]===Symbol.for("react.memo_cache_sentinel")?(p=()=>_(!1),v=()=>_(!1),g[11]=p,g[12]=v):(p=g[11],v=g[12]),g[13]!==C||g[14]!==B||g[15]!==I||g[16]!==M||g[17]!==b||g[18]!==S?(y=(0,n.jsx)(m.a,{chrome:"bare",dialogTitleId:S,idPrefix:"auth-modal",initialTab:C,knownEmail:B,startInCodeStep:I,onAuthenticated:b,onClose:p,onRegistered:v},M),g[13]=C,g[14]=B,g[15]=I,g[16]=M,g[17]=b,g[18]=S,g[19]=y):y=g[19],g[20]!==A||g[21]!==y||g[22]!==h||g[23]!==S?(w=(0,n.jsx)(s.Xn,{open:A,onClose:x,portal:!0,ariaLabelledBy:S,closeLabel:h,contentClassName:"p-0",children:y}),g[20]=A,g[21]=y,g[22]=h,g[23]=S,g[24]=w):w=g[24],w}}}]);
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.