1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,539843,e=>{"use strict";var t=e.i(843476),n=e.i(500932),r=e.i(713629),a=e.i(36712),i=e.i(811488),o=e.i(357077),s=e.i(616309),l=e.i(884865);let c=[{name:"google",icon:r.faGoogle},{name:"apple",icon:r.faApple},{name:"microsoft",icon:r.faMicrosoft},{name:"linkedin",icon:r.faLinkedinIn},{name:"github",icon:r.faGithub},{name:"twitter",icon:r.faXTwitter}];e.s(["default",0,e=>{let r,u,d,m,p,h,g,f,b,w,x,v,y,k,E,R,j,S=(0,n.c)(69),{authIntentToken:A,enabledProviders:N,flow:C,locale:P,passkeyAction:T,postLoginPath:_,templateId:I}=e,O=void 0===C?"login":C,{dict:D}=(0,l.useDictionary)(),L=D.login.social;S[0]!==L.continueWithGoogle||S[1]!==L.google?(r={ariaLabel:L.continueWithGoogle,tooltipLabel:L.google},S[0]=L.continueWithGoogle,S[1]=L.google,S[2]=r):r=S[2],S[3]!==L.apple||S[4]!==L.continueWithApple?(u={ariaLabel:L.continueWithApple,tooltipLabel:L.apple},S[3]=L.apple,S[4]=L.continueWithApple,S[5]=u):u=S[5],S[6]!==L.continueWithMicrosoft||S[7]!==L.microsoft?(d={ariaLabel:L.continueWithMicrosoft,tooltipLabel:L.microsoft},S[6]=L.continueWithMicrosoft,S[7]=L.microsoft,S[8]=d):d=S[8],S[9]!==L.continueWithLinkedIn||S[10]!==L.linkedIn?(m={ariaLabel:L.continueWithLinkedIn,tooltipLabel:L.linkedIn},S[9]=L.continueWithLinkedIn,S[10]=L.linkedIn,S[11]=m):m=S[11],S[12]!==L.continueWithGitHub||S[13]!==L.gitHub?(p={ariaLabel:L.continueWithGitHub,tooltipLabel:L.gitHub},S[12]=L.continueWithGitHub,S[13]=L.gitHub,S[14]=p):p=S[14],S[15]!==L.continueWithX||S[16]!==L.x?(h={ariaLabel:L.continueWithX,tooltipLabel:L.x},S[15]=L.continueWithX,S[16]=L.x,S[17]=h):h=S[17],S[18]!==r||S[19]!==u||S[20]!==d||S[21]!==m||S[22]!==p||S[23]!==h?(g={google:r,apple:u,microsoft:d,linkedin:m,github:p,twitter:h},S[18]=r,S[19]=u,S[20]=d,S[21]=m,S[22]=p,S[23]=h,S[24]=g):g=S[24];let M=g;if(S[25]!==A||S[26]!==N||S[27]!==O||S[28]!==P||S[29]!==T||S[30]!==_||S[31]!==L.or||S[32]!==L.passkey||S[33]!==M||S[34]!==I){y=Symbol.for("react.early_return_sentinel");e:{let e,n;S[42]!==N?(e=e=>N.includes(e.name),S[42]=N,S[43]=e):e=S[43];let r=c.filter(e);if(!T&&0===r.length){y=null;break e}S[44]!==L.or?(x=(0,t.jsx)(o.default,{label:L.or,classNames:"my-3"}),S[44]=L.or,S[45]=x):x=S[45],S[46]!==T?(v=T?.unsupportedMessage&&(0,t.jsx)("div",{className:"text-main mx-auto mb-3 max-w-sm rounded border border-yellow-300 bg-yellow-50 px-3 py-2 text-center text-yellow-800",role:"status",children:T.unsupportedMessage}),S[46]=T,S[47]=v):v=S[47],f=s.TooltipProvider,k="flex items-center justify-center gap-2",S[48]!==T||S[49]!==L.passkey?(b=T&&(0,t.jsxs)(s.Tooltip,{delayDuration:0,children:[(0,t.jsx)(s.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":L.passkey,"aria-disabled":T.isDisabled,className:"flex h-8 w-8 items-center justify-center rounded border border-neutral-300 hover:cursor-pointer hover:bg-neutral-200 aria-disabled:cursor-not-allowed aria-disabled:opacity-60",onClick:e=>{T.isDisabled?e.preventDefault():T.onClick()},children:(0,t.jsx)(i.FontAwesomeIcon,{icon:a.faKey,className:"text-neutral-500"})})}),(0,t.jsx)(s.TooltipContent,{children:(0,t.jsx)("p",{children:L.passkey})})]}),S[48]=T,S[49]=L.passkey,S[50]=b):b=S[50],S[51]!==A||S[52]!==O||S[53]!==P||S[54]!==_||S[55]!==M||S[56]!==I?(n=e=>{let{name:n,icon:r}=e;return(0,t.jsxs)(s.Tooltip,{delayDuration:0,children:[(0,t.jsx)(s.TooltipTrigger,{asChild:!0,children:(0,t.jsxs)("form",{action:`/api/auth/social/${n}/start`,method:"GET",children:[(0,t.jsx)("input",{type:"hidden",name:"locale",value:P}),(0,t.jsx)("input",{type:"hidden",name:"flow",value:O}),A&&(0,t.jsx)("input",{type:"hidden",name:"intent",value:A}),_&&(0,t.jsx)("input",{type:"hidden",name:"postLoginPath",value:_}),I&&(0,t.jsx)("input",{type:"hidden",name:"templateId",value:I}),(0,t.jsx)("button",{type:"submit","aria-label":M[n].ariaLabel,className:"flex h-8 w-8 items-center justify-center rounded border border-neutral-300 hover:cursor-pointer hover:bg-neutral-200",children:(0,t.jsx)(i.FontAwesomeIcon,{icon:r,className:"text-neutral-500"})})]})}),(0,t.jsx)(s.TooltipContent,{children:(0,t.jsx)("p",{children:M[n].tooltipLabel})})]},n)},S[51]=A,S[52]=O,S[53]=P,S[54]=_,S[55]=M,S[56]=I,S[57]=n):n=S[57],w=r.map(n)}S[25]=A,S[26]=N,S[27]=O,S[28]=P,S[29]=T,S[30]=_,S[31]=L.or,S[32]=L.passkey,S[33]=M,S[34]=I,S[35]=f,S[36]=b,S[37]=w,S[38]=x,S[39]=v,S[40]=y,S[41]=k}else f=S[35],b=S[36],w=S[37],x=S[38],v=S[39],y=S[40],k=S[41];return y!==Symbol.for("react.early_return_sentinel")?y:(S[58]!==b||S[59]!==w||S[60]!==k?(E=(0,t.jsxs)("div",{className:k,children:[b,w]}),S[58]=b,S[59]=w,S[60]=k,S[61]=E):E=S[61],S[62]!==f||S[63]!==E?(R=(0,t.jsx)(f,{children:E}),S[62]=f,S[63]=E,S[64]=R):R=S[64],S[65]!==x||S[66]!==v||S[67]!==R?(j=(0,t.jsxs)(t.Fragment,{children:[x,v,R]}),S[65]=x,S[66]=v,S[67]=R,S[68]=j):j=S[68],j)}])},908769,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(522016),a=e.i(618566),i=e.i(36712),o=e.i(811488),s=e.i(293999);e.i(270628);var l=e.i(982045),c=e.i(156046),u=e.i(522160);e.i(671232);var d=e.i(896729),m=e.i(147565),p=e.i(846696),h=e.i(539843),g=e.i(531941),f=e.i(587760),b=Object.defineProperty,w=Object.defineProperties,x=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,E=(e,t,n)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=n.createContext({}),j=n.forwardRef((e,t)=>
vendor: 6,036 bytes, line 1
1{let r;var a,i,o,s,l,{value:c,onChange:u,maxLength:d,textAlign:m="left",pattern:p,placeholder:h,inputMode:g="numeric",onComplete:f,pushPasswordManagerStrategy:b="increase-width",pasteTransformer:j,containerClassName:N,noScriptCSSFallback:C=A,render:P,children:T}=e,_=((e,t)=>{var n={};for(var r in e)y.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&v)for(var r of v(e))0>t.indexOf(r)&&k.call(e,r)&&(n[r]=e[r]);return n})(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[I,O]=n.useState("string"==typeof _.defaultValue?_.defaultValue:""),D=null!=c?c:I,L=(r=n.useRef(),n.useEffect(()=>{r.current=D}),r.current),M=n.useCallback(e=>{null==u||u(e),O(e)},[u]),W=n.useMemo(()=>p?"string"==typeof p?new RegExp(p):p:null,[p]),U=n.useRef(null),F=n.useRef(null),H=n.useRef({value:D,onChange:M,isIOS:"u">typeof window&&(null==(i=null==(a=null==window?void 0:window.CSS)?void 0:a.supports)?void 0:i.call(a,"-webkit-touch-callout","none"))}),K=n.useRef({prev:[null==(o=U.current)?void 0:o.selectionStart,null==(s=U.current)?void 0:s.selectionEnd,null==(l=U.current)?void 0:l.selectionDirection]});n.useImperativeHandle(t,()=>U.current,[]),n.useEffect(()=>{let e=U.current,t=F.current;if(!e||!t)return;function n(){if(document.activeElement!==e){q(null),Y(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,a=e.maxLength,i=e.value,o=K.current.prev,s=-1,l=-1,c;if(0!==i.length&&null!==t&&null!==n){let e=t===n,r=t===i.length&&i.length<a;if(e&&!r){if(0===t)s=0,l=1,c="forward";else if(t===a)s=t-1,l=t,c="backward";else if(a>1&&i.length>1){let e=0;if(null!==o[0]&&null!==o[1]){c=t<o[1]?"backward":"forward";let n=o[0]===o[1]&&o[0]<a;"backward"!==c||n||(e=-1)}s=e+t,l=e+t+1}}-1!==s&&-1!==l&&s!==l&&U.current.setSelectionRange(s,l,c)}let u=-1!==s?s:t,d=-1!==l?l:n,m=null!=c?c:r;q(u),Y(d),K.current.prev=[u,d,m]}if(H.current.value!==e.value&&H.current.onChange(e.value),K.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),document.activeElement===e&&z(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";S(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),S(e.sheet,`[data-input-otp]:autofill { ${t} }`),S(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),S(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),S(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let r=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};r();let a=new ResizeObserver(r);return a.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),a.disconnect()}},[]);let[B,G]=n.useState(!1),[$,z]=n.useState(!1),[V,q]=n.useState(null),[J,Y]=n.useState(null);n.useEffect(()=>{var e;setTimeout(e=()=>{var e,t,n,r;null==(e=U.current)||e.dispatchEvent(new Event("input"));let a=null==(t=U.current)?void 0:t.selectionStart,i=null==(n=U.current)?void 0:n.selectionEnd,o=null==(r=U.current)?void 0:r.selectionDirection;null!==a&&null!==i&&(q(a),Y(i),K.current.prev=[a,i,o])},0),setTimeout(e,10),setTimeout(e,50)},[D,$]),n.useEffect(()=>{void 0!==L&&D!==L&&L.length<d&&D.length===d&&(null==f||f(D))},[d,f,L,D]);let X=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:r,isFocused:a}){let[i,o]=n.useState(!1),[s,l]=n.useState(!1),[c,u]=n.useState(!1),d=n.useMemo(()=>"none"!==r&&("increase-width"===r||"experimental-no-flickering"===r)&&i&&s,[i,s,r]),m=n.useCallback(()=>{let n=e.current,a=t.current;if(!n||!a||c||"none"===r)return;let i=n.getBoundingClientRect().left+n.offsetWidth,s=n.getBoundingClientRect().top+n.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(i-18,s)===n||(o(!0),u(!0))},[e,t,c,r]);return n.useEffect(()=>{let t=e.current;if(!t||"none"===r)return;function n(){l(window.innerWidth-t.getBoundingClientRect().right>=40)}n();let a=setInterval(n,1e3);return()=>{clearInterval(a)}},[e,r]),n.useEffect(()=>{let e=a||document.activeElement===t.current;if("none"===r||!e)return;let n=setTimeout(m,0),i=setTimeout(m,2e3),o=setTimeout(m,5e3),s=setTimeout(()=>{u(!0)},6e3);return()=>{clearTimeout(n),clearTimeout(i),clearTimeout(o),clearTimeout(s)}},[t,a,r,m]),{hasPWMBadge:i,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:F,inputRef:U,pushPasswordManagerStrategy:b,isFocused:$}),Q=n.useCallback(e=>{let t=e.currentTarget.value.slice(0,d);t.length>0&&W&&!W.test(t)?e.preventDefault():("string"==typeof L&&t.length<L.length&&document.dispatchEvent(new Event("selectionchange")),M(t))},[d,M,L,W]),Z=n.useCallback(()=>{var e;if(U.current){let t=Math.min(U.current.value.length,d-1),n=U.current.value.length;null==(e=U.current)||e.setSelectionRange(t,n),q(t),Y(n)}z(!0)},[d]),ee=n.useCallback(e=>{var t,n;let r=U.current;if(!j&&(!H.current.isIOS||!e.clipboardData||!r))return;let a=e.clipboardData.getData("text/plain"),i=j?j(a):a;e.preventDefault();let o=null==(t=U.current)?void 0:t.selectionStart,s=null==(n=U.current)?void 0:n.selectionEnd,l=(o!==s?D.slice(0,o)+i+D.slice(s):D.slice(0,o)+i+D.slice(o)).slice(0,d);if(l.length>0&&W&&!W.test(l))return;r.value=l,M(l);let c=Math.min(l.length,d-1),u=l.length;r.setSelectionRange(c,u),q(c),Y(u)},[d,M,W,D]),et=n.useMemo(()=>
1({position:"relative",cursor:_.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[_.disabled]),en=n.useMemo(()=>({position:"absolute",inset:0,width:X.willPushPWMBadge?`calc(100% + ${X.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:X.willPushPWMBadge?`inset(0 ${X.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:m,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[X.PWM_BADGE_SPACE_WIDTH,X.willPushPWMBadge,m]),er=n.useMemo(()=>n.createElement("input",w(((e,t)=>{for(var n in t||(t={}))y.call(t,n)&&E(e,n,t[n]);if(v)for(var n of v(t))k.call(t,n)&&E(e,n,t[n]);return e})({autoComplete:_.autoComplete||"one-time-code"},_),x({"data-input-otp":!0,"data-input-otp-placeholder-shown":0===D.length||void 0,"data-input-otp-mss":V,"data-input-otp-mse":J,inputMode:g,pattern:null==W?void 0:W.source,"aria-placeholder":h,style:en,maxLength:d,value:D,ref:U,onPaste:e=>{var t;ee(e),null==(t=_.onPaste)||t.call(_,e)},onChange:Q,onMouseOver:e=>{var t;G(!0),null==(t=_.onMouseOver)||t.call(_,e)},onMouseLeave:e=>{var t;G(!1),null==(t=_.onMouseLeave)||t.call(_,e)},onFocus:e=>{var t;Z(),null==(t=_.onFocus)||t.call(_,e)},onBlur:e=>{var t;z(!1),null==(t=_.onBlur)||t.call(_,e)}}))),[Q,Z,ee,g,en,d,J,V,_,null==W?void 0:W.source,D]),ea=n.useMemo(()=>({slots:Array.from({length:d}).map((e,t)=>{var n;let r=$&&null!==V&&null!==J&&(V===J&&t===V||t>=V&&t<J),a=void 0!==D[t]?D[t]:null;return{char:a,placeholderChar:void 0!==D[0]?null:null!=(n=null==h?void 0:h[t])?n:null,isActive:r,hasFakeCaret:r&&null===a}}),isFocused:$,isHovering:!_.disabled&&B}),[$,B,d,J,V,_.disabled,D]),ei=n.useMemo(()=>P?P(ea):n.createElement(R.Provider,{value:ea},T),[T,ea,P]);return n.createElement(n.Fragment,null,null!==C&&n.createElement("noscript",null,n.createElement("style",null,C)),n.createElement("div",{ref:F,"data-input-otp-container":!0,style:et,className:N},ei,n.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},er)))});function S(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}j.displayName="Input";var A=` 2[data-input-otp] { 3 --nojs-bg: white !important; 4 --nojs-fg: black !important; 5 6 background-color: var(--nojs-bg) !important; 7 color: var(--nojs-fg) !important; 8 caret-color: var(--nojs-fg) !important; 9 letter-spacing: .25em !important; 10 text-align: center !important; 11 border: 1px solid var(--nojs-fg) !important; 12 border-radius: 4px !important; 13 width: 100% !important; 14} 15@media (prefers-color-scheme: dark) { 16 [data-input-otp] { 17 --nojs-bg: black !important; 18 --nojs-fg: white !important; 19 } 20}`;let N=(0,e.i(475254).default)("Dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]]),C=n.forwardRef(({className:e,containerClassName:n,children:r,...a},i)=>(0,t.jsx)(j,{ref:i,containerClassName:(0,c.cn)("flex items-center gap-2 has-disabled:opacity-50",n),className:(0,c.cn)("disabled:cursor-not-allowed",e),...a,children:r}));C.displayName="InputOTP";let P=n.forwardRef(({className:e,...n},r)=>(0,t.jsx)("div",{ref:r,className:(0,c.cn)("flex items-center",e),...n}));P.displayName="InputOTPGroup";let T=n.forwardRef(({index:e,className:r,...a},i)=>{let o=n.useContext(R),s=o?.slots?.[e],l=s?.char??null,u=s?.hasFakeCaret??!1,d=s?.isActive??!1;return(0,t.jsxs)("div",{ref:i,className:(0,c.cn)("border-input relative flex h-10 w-10 items-center justify-center border-y border-r text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",d&&"ring-ring ring-offset-background z-10 ring-2",r),...a,children:[l,u&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})});T.displayName="InputOTPSlot";let _=n.forwardRef(({...e},n)=>(0,t.jsx)("div",{ref:n,role:"separator",...e,children:(0,t.jsx)(N,{})}));_.displayName="InputOTPSeparator";var I=e.i(30723),O=e.i(884865),D=e.i(922182);let L=()=>window.isSecureContext&&"PublicKeyCredential"in window,M="Passkey is not supported by this browser. Please use another sign-in option.",W="Edit email address";e.s(["default",0,({variant:e="page",onAuthenticated:b,enabledSocialAuthProviders:w=[],initialEmail:x,hideForgotPasswordLink:v=!1,postLoginPath:y="/documents"})=>{let k=(0,a.useRouter)(),E=(0,a.usePathname)(),{locale:R,dict:j}=(0,O.useDictionary)(),S=j.login.passkey??{signIn:"Sign in with passkey",noPasskeys:"No passkeys found for this account.",userNotFound:"We could not find an account for that email.",genericError:"Something went wrong while verifying your passkey.",cancelled:"Passkey request was cancelled."}
20,[A,N]=(0,n.useState)("magicLink"),U=(0,n.useRef)(null),F=(0,n.useRef)(null),H=(0,n.useRef)(null),[K,B]=(0,n.useState)(!1),[G,$]=(0,n.useState)(!1),[z,V]=(0,n.useState)(!0),[q,J]=(0,n.useState)(!1),[Y,X]=(0,n.useState)(x??""),[Q,Z]=(0,n.useState)(!1),[ee]=(0,n.useState)(!1),[et,en]=(0,n.useState)(void 0),[er,ea]=(0,n.useState)(!1),ei=(0,l.useAction)(s.api.functions.auth.passkeys.requestAuthenticationOptions),eo=(0,n.useCallback)(()=>{N("magicLink"),B(!1),$(!1),J(!1),X(x??""),Z(!1),ea(!1),en(void 0),H.current&&(H.current.value=x??""),F.current&&(F.current.value="")},[x]);(0,n.useEffect)(()=>{"modal"!==e&&(E?.endsWith("/login")||E?.endsWith("/mobile/login"))&&eo()},[E,eo,e]),(0,n.useEffect)(()=>{let e=L();V(e),J(!e)},[]),(0,n.useEffect)(()=>{if("password"===A){if(Q&&H.current){H.current.focus(),H.current.select();return}F.current?.focus()}},[A,Q]);let es=(0,n.useCallback)(async()=>{b&&await b()},[b]),el=(0,n.useCallback)(e=>j.toast.loginUser[e]??j.toast.loginUser.confirmEmailPassword,[j.toast.loginUser]),ec=(0,n.useCallback)(e=>!e.startsWith("/")||e.startsWith("/api/")||e===`/${R}`||e.startsWith(`/${R}/`)?e:`/${R}${e}`,[R]),eu=(0,n.useCallback)(async t=>(await es(),"modal"!==e&&(t.startsWith("http://")||t.startsWith("https://")?window.location.assign(t):k.push(ec(t)),!0)),[ec,es,k,e]),ed=async({email:e,password:t,type:n})=>{B(!0);let r=!1;try{let a=await fetch("/api/user/login",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:e,password:t,type:n,locale:R,returnTo:y})}),i=await a.json();if(!a.ok||!i.success)return void en(i.success?"An error occurred while logging in":el(i.message));if("legacyLogin"===i.action){window.location.assign(i.redirect),r=!0;return}"magicLink"===i.action?(X(e),N("magicLinkSuccess")):"password"===i.action?(X(e),Z(!1),N("password")):("login"===i.action||"register"===i.action)&&(await (0,I.persistConvexSession)(i.sessionToken),r=await eu(i.redirect))}catch(e){console.error("â Error log user in:",e),en("An error occurred while logging in")}finally{r||B(!1)}},em=async({code:e})=>{ea(!0);let t=!1;try{let n=await fetch("/api/user/magic-code/verify",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({code:e,returnTo:y})}),r=await n.json();if(!n.ok||!r.success){p.toast.error(r.success?"An error occurred while logging in":j.toast.verifyMagicCode[r.message]),ea(!1);return}"login"===r.action&&(await (0,I.persistConvexSession)(r.sessionToken),t=await eu(r.redirect))}catch(e){console.error(e)}finally{t||ea(!1)}},ep=async()=>{if(ee)return;if(!L()){V(!1),J(!0),$(!1);return}en(void 0),J(!1),$(!0);let e=!1;try{let t={origin:window.location.origin,rpId:window.location.hostname,userAgent:navigator.userAgent},n=await ei({email:H.current?.value||void 0,...t});if(!n.success)return void("no_passkeys"===n.reason?en(S.noPasskeys):"user_not_found"===n.reason?en(S.userNotFound):en(S.genericError));let r=await (0,d.startAuthentication)({optionsJSON:n.options}),a=await fetch("/api/user/passkey/verify",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({challengeId:n.challengeId,credential:r,origin:t.origin,rpId:t.rpId,returnTo:y})}),i=await a.json();if(a.ok&&i.success&&"login"===i.action){await (0,I.persistConvexSession)(i.sessionToken),e=await eu(i.redirect??y);return}en(S.genericError)}catch(e){"AbortError"===e.name||"NotAllowedError"===e.name?en(S.cancelled):en(e.message||S.genericError)}finally{e||$(!1)}},eh="modal"!==e&&!v;return"magicLinkSuccess"===A?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"text-md mt-4 flex flex-col gap-4 text-neutral-700",children:[(0,t.jsxs)("div",{className:"block",children:[(0,t.jsx)(m.default,{size:"xxl",backgroundColor:"#ea580c",animationDuration:.8,explosion:1.2}),(0,t.jsx)("div",{className:"text-neutralbg-red-800 m-auto mt-4 text-center text-2xl font-semibold",children:"We sent a one-time code to your email"}),Y&&(0,t.jsx)("div",{className:"mt-2 text-center text-sm text-neutral-500",children:Y}),(0,t.jsx)("div",{className:"mt-4 flex items-center justify-center gap-2",children:(0,t.jsxs)(C,{maxLength:6,inputMode:"text",disabled:er,onChange:async e=>{6===e.length&&em({code:e})},children:[(0,t.jsxs)(P,{children:[(0,t.jsx)(T,{index:0}),(0,t.jsx)(T,{index:1}),(0,t.jsx)(T,{index:2})]}),(0,t.jsx)(_,{}),(0,t.jsxs)(P,{children:[(0,t.jsx)(T,{index:3}),(0,t.jsx)(T,{index:4}),(0,t.jsx)(T,{index:5})]})]})}
20),(0,t.jsx)("div",{className:(0,c.cn)("mt-4 flex items-center justify-center gap-2"),children:er?(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faLoader,spin:!0,className:"text-neutral-400"}):(0,t.jsx)("span",{className:"cursor-pointer hover:text-orange-600",onClick:()=>{B(!1),N("password")},children:"Use password instead"})})]}),(0,t.jsx)(h.default,{enabledProviders:w,flow:"login",locale:R,passkeyAction:{isDisabled:G||!z,isLoading:G,onClick:ep,unsupportedMessage:q?M:void 0},postLoginPath:y})]})}):"magicLink"===A?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.default,{message:et,alertType:"warning"}),(0,t.jsxs)("div",{className:"text-md mt-4 flex flex-col gap-4 text-neutral-700",children:[(0,t.jsxs)("div",{className:"block",children:[(0,t.jsx)("span",{className:"text-neutral-800",children:j.register.emailInput}),(0,t.jsx)("input",{ref:H,defaultValue:x,disabled:K,className:"text-md mt-1 w-full rounded border border-neutral-300 bg-white py-2 pl-2 text-black placeholder-neutral-500 focus:border-orange-500 focus:ring-1 focus:ring-orange-500 focus:outline-hidden",type:"email","aria-label":"Email Address",placeholder:j.login.emailInputPlaceholder,onChange:e=>{let t=e.target.value.trim().toLowerCase();et&&u.userEmailRegex.test(t)&&en(void 0)},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),U.current&&U.current.click())}})]}),(0,t.jsx)("div",{className:"mt-3 grid grid-cols-1 gap-3 sm:grid-cols-2 sm:items-start",children:(0,t.jsx)("button",{ref:U,disabled:K,className:"rounded bg-neutral-200 py-2 hover:bg-neutral-300 sm:col-span-2",onClick:async()=>{if(!ee)if(u.userEmailRegex.test(H?.current?.value??""))return void await ed({email:H?.current?.value??"",password:F?.current?.value,type:"magicLink"});else return void en(j.login.invalidEmail)},children:K?(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faLoader,spin:!0,className:"text-neutral-400"}):"Continue with email"})}),(0,t.jsx)(h.default,{enabledProviders:w,flow:"login",locale:R,passkeyAction:{isDisabled:G||!z,isLoading:G,onClick:ep,unsupportedMessage:q?M:void 0},postLoginPath:y})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.default,{message:et,alertType:"warning"}),(0,t.jsxs)("div",{className:"text-md mt-4 flex flex-col gap-4 text-neutral-700",children:[(0,t.jsxs)("div",{className:"block",children:[(0,t.jsx)("span",{className:"text-neutral-800",children:j.register.emailInput}),(0,t.jsxs)("div",{className:"relative mt-1",children:[(0,t.jsx)("input",{ref:H,value:Y,readOnly:!Q,disabled:K,className:(0,c.cn)("text-md w-full rounded border border-neutral-300 py-2 pr-12 pl-2 placeholder-neutral-500",Q?"bg-white text-black focus:border-orange-500 focus:ring-1 focus:ring-orange-500 focus:outline-hidden":"bg-neutral-100 text-neutral-700"),type:"email","aria-label":"Email Address",placeholder:j.login.emailInputPlaceholder,onChange:e=>{X(e.target.value);let t=e.target.value.trim().toLowerCase();et&&u.userEmailRegex.test(t)&&en(void 0)},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),F.current&&F.current.focus())}}),!Q&&(0,t.jsx)("button",{type:"button","aria-label":W,title:W,disabled:K,className:(0,c.cn)((0,f.buttonVariants)({variant:"outline",size:"sm"}),"absolute top-1/2 right-1 h-7 -translate-y-1/2 px-2 text-xs capitalize shadow-sm"),onClick:()=>{Z(!0)},children:"edit"})]})]}),(0,t.jsxs)("div",{className:"block",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)("span",{className:"text-neutral-800",children:j.login.passwordInput}),eh&&(0,t.jsx)(r.default,{href:`${(0,D.getLocalePath)(R,"/forgotPassword")}?email=${H?.current?.value??""}`,className:"text-md ml-2 font-medium text-orange-600 hover:underline",children:j.login.forgotPassword})]}),(0,t.jsx)("input",{disabled:K,ref:F,className:"text-md mt-1 w-full rounded border border-neutral-300 bg-white py-2 pl-2 text-black placeholder-neutral-500 focus:border-orange-500 focus:ring-1 focus:ring-orange-500 focus:outline-hidden",type:"password","aria-label":"Password",placeholder:j.login.passwordInputPlaceholder,onChange:e=>{et&&e.target.value&&en(void 0)},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),U.current&&U.current.click())}})]}),(0,t.jsx)("div",{className:"mt-3 grid grid-cols-1 gap-3 sm:grid-cols-2 sm:items-start",children:(0,t.jsx)("button",{ref:U,disabled:K,className:"rounded bg-neutral-200 py-2 hover:bg-neutral-300 sm:col-span-2",onClick:async()=>
20{if(ee)return;let e=(Y||H?.current?.value||"").trim().toLowerCase();u.userEmailRegex.test(e)?await ed({email:e,password:F?.current?.value,type:"password"}):en(j.login.invalidEmail)},children:K?(0,t.jsx)(o.FontAwesomeIcon,{icon:i.faLoader,spin:!0,className:"text-neutral-400"}):j.login.signInWithPassword})}),(0,t.jsx)(h.default,{enabledProviders:w,flow:"login",locale:R,passkeyAction:{isDisabled:G||!z,isLoading:G,onClick:ep,unsupportedMessage:q?M:void 0},postLoginPath:y})]})]})}],908769)},531941,e=>{"use strict";var t=e.i(843476),n=e.i(500932);function r(e,n){return(0,t.jsx)("li",{className:"block",children:e},n)}function a(e,n){return(0,t.jsx)("li",{className:"block",children:e},n)}function i(e,n){return(0,t.jsx)("li",{className:"block",children:e},n)}e.s(["default",0,e=>{let o,s=(0,n.c)(26);if(!e.message&&(!e.messages||0===e.messages.length)){let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(t.Fragment,{}),s[0]=e):e=s[0],e}if("success"===e.alertType){let n,a,i,o=`relative mb-4 rounded border border-green-400 bg-green-100 px-4 py-3 text-sm text-green-700 ${e.className}`;return s[1]!==e.messages?(n=e.messages&&(0,t.jsx)("ul",{className:"list-outside list-disc",children:e.messages.map(r)}),s[1]=e.messages,s[2]=n):n=s[2],s[3]!==e.message?(a=e.message&&(0,t.jsx)("p",{className:"block sm:inline",children:e.message}),s[3]=e.message,s[4]=a):a=s[4],s[5]!==o||s[6]!==n||s[7]!==a?(i=(0,t.jsxs)("div",{className:o,role:"alert",children:[n,a]}),s[5]=o,s[6]=n,s[7]=a,s[8]=i):i=s[8],i}if("warning"===e.alertType){let n,r,i,o=`relative mb-4 rounded border border-yellow-400 bg-yellow-100 px-4 py-3 text-sm text-yellow-700 ${e.className}`;return s[9]!==e.messages?(n=e.messages&&(0,t.jsx)("ul",{className:"list-outside list-disc",children:e.messages.map(a)}),s[9]=e.messages,s[10]=n):n=s[10],s[11]!==e.message?(r=e.message&&(0,t.jsx)("p",{className:"block sm:inline",children:e.message}),s[11]=e.message,s[12]=r):r=s[12],s[13]!==o||s[14]!==n||s[15]!==r?(i=(0,t.jsxs)("div",{className:o,role:"alert",children:[n,r]}),s[13]=o,s[14]=n,s[15]=r,s[16]=i):i=s[16],i}if("error"===e.alertType){let n,r,a,o=`relative mb-4 rounded border border-red-400 bg-red-100 px-4 py-3 text-sm text-red-700 ${e.className}`;return s[17]!==e.messages?(n=e.messages&&(0,t.jsx)("ul",{className:"list-outside list-disc",children:e.messages.map(i)}),s[17]=e.messages,s[18]=n):n=s[18],s[19]!==e.message?(r=e.message&&(0,t.jsx)("p",{className:"block sm:inline",children:e.message}),s[19]=e.message,s[20]=r):r=s[20],s[21]!==o||s[22]!==n||s[23]!==r?(a=(0,t.jsxs)("div",{className:o,role:"alert",children:[n,r]}),s[21]=o,s[22]=n,s[23]=r,s[24]=a):a=s[24],a}return s[25]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(t.Fragment,{}),s[25]=o):o=s[25],o}])},357077,e=>{"use strict";var t=e.i(843476),n=e.i(500932),r=e.i(156046);e.s(["default",0,function(e){let a,i,o,s,l,c,u=(0,n.c)(15),{label:d,position:m,classNames:p}=e,h=void 0===m?"center":m;u[0]!==p?(a=(0,r.cn)("relative",p),u[0]=p,u[1]=a):a=u[1],u[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,t.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0 flex items-center",children:(0,t.jsx)("div",{className:"w-full border-t border-neutral-300 dark:border-neutral-700"})}),u[2]=i):i=u[2];let g="left"===h&&"justify-start",f="center"===h&&"justify-center",b="right"===h&&"justify-end";return u[3]!==g||u[4]!==f||u[5]!==b?(o=(0,r.cn)("relative flex",g,f,b),u[3]=g,u[4]=f,u[5]=b,u[6]=o):o=u[6],u[7]!==d?(s=(0,t.jsx)("span",{className:"bg-white px-2 text-lg font-medium text-neutral-300 dark:bg-neutral-800 dark:text-neutral-100",children:d}),u[7]=d,u[8]=s):s=u[8],u[9]!==o||u[10]!==s?(l=(0,t.jsx)("div",{className:o,children:s}),u[9]=o,u[10]=s,u[11]=l):l=u[11],u[12]!==a||u[13]!==l?(c=(0,t.jsxs)("div",{className:a,children:[i,l]}),u[12]=a,u[13]=l,u[14]=c):c=u[14],c}])},671232,313422,896729,e=>{"use strict";function t(e){let t=new Uint8Array(e),n="";for(let e of t)n+=String.fromCharCode(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function n(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n=(4-t.length%4)%4,r=atob(t.padEnd(t.length+n,"=")),a=new ArrayBuffer(r.length),i=new Uint8Array(a);for(let e=0;e<r.length;e++)i[e]=r.charCodeAt(e);return a}function r(){return a.stubThis(globalThis?.PublicKeyCredential!==void 0&&"function"==typeof globalThis.PublicKeyCredential)}let a={stubThis:e=>e};function i(e){let{id:t}=e;return{...e,id:n(t),transports:e.transports}}function o(e){return"localhost"===e||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(e)}
20class s extends Error{constructor({message:e,code:t,cause:n,name:r}){super(e,{cause:n}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=r??n.name,this.code=t}}let l=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}}},c=["cross-platform","platform"];function u(e){if(e&&!(0>c.indexOf(e)))return e}async function d(e){let a,c,d,p,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:f=!1}=e;if(!r())throw Error("WebAuthn is not supported in this browser");let b={...g,challenge:n(g.challenge),user:{...g.user,id:n(g.user.id)},excludeCredentials:g.excludeCredentials?.map(i)},w={};f&&(w.mediation="conditional"),w.publicKey=b,w.signal=l.createNewAbortSignal();try{a=await navigator.credentials.create(w)}catch(e){throw function({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new s({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if("ConstraintError"===e.name){if(n.authenticatorSelection?.requireResidentKey===!0)return new s({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&&n.authenticatorSelection?.userVerification==="required")return new s({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(n.authenticatorSelection?.userVerification==="required")return new s({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 s({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});else if("NotAllowedError"===e.name)return new s({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});else if("NotSupportedError"===e.name)return new s(0===n.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(!o(t))return new s({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(n.rp.id!==t)return new s({message:`The RP ID "${n.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("TypeError"===e.name){if(n.user.id.byteLength<1||n.user.id.byteLength>64)return new s({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 s({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:w})}if(!a)throw Error("Registration was not completed");let{id:x,rawId:v,response:y,type:k}=a;if("function"==typeof y.getTransports&&(d=y.getTransports()),"function"==typeof y.getPublicKeyAlgorithm)try{p=y.getPublicKeyAlgorithm()}catch(e){m("getPublicKeyAlgorithm()",e)}if("function"==typeof y.getPublicKey)try{let e=y.getPublicKey();null!==e&&(h=t(e))}catch(e){m("getPublicKey()",e)}if("function"==typeof y.getAuthenticatorData)try{c=t(y.getAuthenticatorData())}catch(e){m("getAuthenticatorData()",e)}return{id:x,rawId:t(v),response:{attestationObject:t(y.attestationObject),clientDataJSON:t(y.clientDataJSON),transports:d,publicKeyAlgorithm:p,publicKey:h,authenticatorData:c},type:k,clientExtensionResults:a.getClientExtensionResults(),authenticatorAttachment:u(a.authenticatorAttachment)}}function m(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them. 21`,t)}e.s(["startRegistration",0,d],313422);let p=e=>e;async function h(e){let a,c,d;!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:m,useBrowserAutofill:h=!1,verifyBrowserAutofillInput:g=!0}=e;if(!r())throw Error("WebAuthn is not supported in this browser");m.allowCredentials?.length!==0&&(a=m.allowCredentials?.map(i));let f={...m,challenge:n(m.challenge),allowCredentials:a},b={};if(h){if(!await function(){if(!r())return p(new Promise(e=>e(!1)));let e=globalThis.PublicKeyCredential;return e?.isConditionalMediationAvailable===void 0?p(new Promise(e=>e(!1))):p(e.isConditionalMediationAvailable())}())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&g)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');b.mediation="conditional",f.allowCredentials=[]}b.publicKey=f,b.signal=l.createNewAbortSignal();try{c=await navigator.credentials.get(b)}catch(e){throw function({error:e,options:t}){let{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new s({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if("NotAllowedError"===e.name)return new s({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});else if("SecurityError"===e.name){let t=globalThis.location.hostname;if(!o(t))return new s({message:`${globalThis.location.hostname}
21 is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(n.rpId!==t)return new s({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("UnknownError"===e.name)return new s({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:b})}if(!c)throw Error("Authentication was not completed");let{id:w,rawId:x,response:v,type:y}=c;return v.userHandle&&(d=t(v.userHandle)),{id:w,rawId:t(x),response:{authenticatorData:t(v.authenticatorData),clientDataJSON:t(v.clientDataJSON),signature:t(v.signature),userHandle:d},type:y,clientExtensionResults:c.getClientExtensionResults(),authenticatorAttachment:u(c.authenticatorAttachment)}}e.s(["startAuthentication",0,h],896729),e.s([],671232)},147565,e=>{"use strict";var t,n,r,a=e.i(271645),i=e.i(997053).default.div(r||(t=["\n .checkmark {\n display: block;\n margin-left: auto;\n margin-right: auto;\n border-radius: 50%;\n stroke: ",";\n stroke-width: ",";\n stroke-miterlimit: 10;\n animation: fill ","s ease-in-out 0.4s\n forwards,\n scale 0.3s ease-in-out 0.9s both;\n }\n\n .checkmark__circle {\n stroke-dasharray: 166;\n stroke-dashoffset: 166;\n stroke-width: ",";\n stroke-miterlimit: 10;\n stroke: ",";\n fill: none;\n animation: stroke ","s\n cubic-bezier(0.65, 0, 0.45, 1) forwards;\n }\n\n .checkmark__check {\n transform-origin: 50% 50%;\n stroke-dasharray: 48;\n stroke-dashoffset: 48;\n animation: stroke ","s\n cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;\n }\n\n @keyframes stroke {\n 100% {\n stroke-dashoffset: 0;\n }\n }\n\n @keyframes scale {\n 0%,\n 100% {\n transform: none;\n }\n 50% {\n transform: scale3d(",", ",", 1);\n }\n }\n\n @keyframes fill {\n 100% {\n box-shadow: inset 0 0 0 100vh ",";\n }\n }\n"],n=["\n .checkmark {\n display: block;\n margin-left: auto;\n margin-right: auto;\n border-radius: 50%;\n stroke: ",";\n stroke-width: ",";\n stroke-miterlimit: 10;\n animation: fill ","s ease-in-out 0.4s\n forwards,\n scale 0.3s ease-in-out 0.9s both;\n }\n\n .checkmark__circle {\n stroke-dasharray: 166;\n stroke-dashoffset: 166;\n stroke-width: ",";\n stroke-miterlimit: 10;\n stroke: ",";\n fill: none;\n animation: stroke ","s\n cubic-bezier(0.65, 0, 0.45, 1) forwards;\n }\n\n .checkmark__check {\n transform-origin: 50% 50%;\n stroke-dasharray: 48;\n stroke-dashoffset: 48;\n animation: stroke ","s\n cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;\n }\n\n @keyframes stroke {\n 100% {\n stroke-dashoffset: 0;\n }\n }\n\n @keyframes scale {\n 0%,\n 100% {\n transform: none;\n }\n 50% {\n transform: scale3d(",", ",", 1);\n }\n }\n\n @keyframes fill {\n 100% {\n box-shadow: inset 0 0 0 100vh ",";\n }\n }\n"],Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,r=t),function(e){return e.checkColor},function(e){return e.checkThickness},function(e){return .66*e.animationDuration},function(e){return e.checkThickness},function(e){return e.backgroundColor},function(e){return e.animationDuration},function(e){return .5*e.animationDuration},function(e){return e.explosion},function(e){return e.explosion},function(e){return e.backgroundColor}),o={xs:12,sm:16,md:24,lg:52,xl:72,xxl:96};e.s(["default",0,function(e){var t=e.size,n=void 0===t?"lg":t,r=e.visible,s=e.backgroundColor,l=e.checkColor,c=e.checkThickness,u=e.animationDuration,d=e.explosion,m="number"==typeof n?n:o[n];return void 0===r||r?a.default.createElement(i,{backgroundColor:void 0===s?"#7ac142":s,checkColor:void 0===l?"#FFF":l,checkThickness:void 0===c?5:c,animationDuration:void 0===u?.6:u,explosion:void 0===d?1.1:d},a.default.createElement("svg",{className:"checkmark",xmlns:"http://www.w3.org/2000/svg",style:{width:m,height:m},viewBox:"0 0 52 52"},a.default.createElement("circle",{className:"checkmark__circle",cx:"26",cy:"26",r:"25",fill:"none"}),a.default.createElement("path",{className:"checkmark__check",fill:"none",d:"M14.1 27.2l7.1 7.2 16.7-16.8"}))):a.default.createElement(a.default.Fragment,null)}])}]);
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.