vendor: 4,547 bytes, lines 1-11
1import{j as e}from"./motion-Jvcz41sO.js";import{a,L as Ge}from"./react-vendor-BspxNbOH.js";import{c as Ee,ai as me,j as $e,as as je,i as Ce,B as Ne,L as Se,at as Ve,au as ze,av as ve,aw as xe,ax as Pe,A as qe,b as z,ay as se,t as Ue}from"./index-fC5opYa5.js";/** 2 * @license lucide-react v0.475.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const Ze=[["path",{d:"M5 12h14",key:"1ays0h"}]],Je=Ee("Minus",Ze);/** 7 * @license lucide-react v0.475.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const Ke=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],Qe=Ee("UserPlus",Ke);var Xe=Object.defineProperty,Ye=Object.defineProperties,et=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ke=(t,n,s)=>n in t?Xe(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s,tt=(t,n)=>{for(var s in n||(n={}))Me.call(n,s)&&ke(t,s,n[s]);if(he)for(var s of he(n))Re.call(n,s)&&ke(t,s,n[s]);return t},at=(t,n)=>Ye(t,et(n)),nt=(t,n)=>{var s={};for(var l in t)Me.call(t,l)&&n.indexOf(l)<0&&(s[l]=t[l]);if(t!=null&&he)for(var l of he(t))n.indexOf(l)<0&&Re.call(t,l)&&(s[l]=t[l]);return s};function rt(t){let n=setTimeout(t,0),s=setTimeout(t,10),l=setTimeout(t,50);return[n,s,l]}function st(t){let n=a.useRef();return a.useEffect(()=>{n.current=t}),n.current}var ot=18,Te=40,lt=`${Te}px`,it=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function ct({containerRef:t,inputRef:n,pushPasswordManagerStrategy:s,isFocused:l}){let[S,p]=a.useState(!1),[O,g]=a.useState(!1),[v,E]=a.useState(!1),M=a.useMemo(()=>s==="none"?!1:(s==="increase-width"||s==="experimental-no-flickering")&&S&&O,[S,O,s]),W=a.useCallback(()=>{let x=t.current,j=n.current;if(!x||!j||v||s==="none")return;let b=x,P=b.getBoundingClientRect().left+b.offsetWidth,B=b.getBoundingClientRect().top+b.offsetHeight/2,i=P-ot,q=B;document.querySelectorAll(it).length===0&&document.elementFromPoint(i,q)===x||(p(!0),E(!0))},[t,n,v,s]);return a.useEffect(()=>{let x=t.current;if(!x||s==="none")return;function j(){let P=window.innerWidth-x.getBoundingClientRect().right;g(P>=Te)}j();let b=setInterval(j,1e3);return()=>{clearInterval(b)}},[t,s]),a.useEffect(()=>{let x=l||document.activeElement===n.current;if(s==="none"||!x)return;let j=setTimeout(W,0),b=setTimeout(W,2e3),P=setTimeout(W,5e3),B=setTimeout(()=>{E(!0)},6e3);return()=>{clearTimeout(j),clearTimeout(b),clearTimeout(P),clearTimeout(B)}},[n,l,s,W]),{hasPWMBadge:S,willPushPWMBadge:M,PWM_BADGE_SPACE_WIDTH:lt}}var Oe=a.createContext({}),Fe=a.forwardRef((t,n)=>{var s=t,{value:l,onChange:S,maxLength:p,textAlign:O="left",pattern:g,placeholder:v,inputMode:E="numeric",onComplete:M,pushPasswordManagerStrategy:W="increase-width",pasteTransformer:x,containerClassName:j,noScriptCSSFallback:b=ut,render:P,children:B}=s,i=nt(s,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),q,le,ie,ce,te;let[ue,de]=a.useState(typeof i.defaultValue=="string"?i.defaultValue:""),u=l??ue,R=st(u),D=a.useCallback(r=>{S==null||S(r),de(r)},[S]),w=a.useMemo(()=>g?typeof g=="string"?new RegExp(g):g:null,[g]),d=a.useRef(null),X=a.useRef(null),Y=a.useRef({value:u,onChange:D,isIOS:typeof window<"u"&&((le=(q=window==null?void 0:window.CSS)==null?void 0:q.supports)==null?void 0:le.call(q,"-webkit-touch-callout","none"))}),U=a.useRef({prev:[(ie=d.current)==null?void 0:ie.selectionStart,(ce=d.current)==null?void 0:ce.selectionEnd,(te=d.current)==null?void 0:te.selectionDirection]});a.useImperativeHandle(n,()=>d.current,[]),a.useEffect(()=>{let r=d.current,o=X.current;if(!r||!o)return;Y.current.value!==r.value&&Y.current.onChange(r.value),U.current.prev=[r.selectionStart,r.selectionEnd,r.selectionDirection];function f(){if(document.activeElement!==r){_(null),H(null);return}let c=r.selectionStart,y=r.selectionEnd,pe=r.selectionDirection,k=r.maxLength,Z=r.value,I=U.current.prev,$=-1,V=-1,J;if(Z.length!==0&&c!==null&&y!==null){let Le=c===y,_e=c===Z.length&&Z.length<k;if(Le&&!_e){let K=c;
11if(K===0)$=0,V=1,J="forward";else if(K===k)$=K-1,V=K,J="backward";else if(k>1&&Z.length>1){let ge=0;if(I[0]!==null&&I[1]!==null){J=K<I[1]?"backward":"forward";let He=I[0]===I[1]&&I[0]<k;J==="backward"&&!He&&(ge=-1)}$=ge+K,V=ge+K+1}}$!==-1&&V!==-1&&$!==V&&d.current.setSelectionRange($,V,J)}let we=$!==-1?$:c,ye=V!==-1?V:y,De=J??pe;_(we),H(ye),U.current.prev=[we,ye,De]}if(document.addEventListener("selectionchange",f,{capture:!0}),f(),document.activeElement===r&&ee(!0),!document.getElementById("input-otp-style")){let c=document.createElement("style");if(c.id="input-otp-style",document.head.appendChild(c),c.sheet){let y="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;";oe(c.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),oe(c.sheet,`[data-input-otp]:autofill { ${y} }`),oe(c.sheet,`[data-input-otp]:-webkit-autofill { ${y} }`),oe(c.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; } }"),oe(c.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let C=()=>{o&&o.style.setProperty("--root-height",`${r.clientHeight}px`)};C();let N=new ResizeObserver(C);return N.observe(r),()=>{document.removeEventListener("selectionchange",f,{capture:!0}),N.disconnect()}},[]);let[ae,ne]=a.useState(!1),[L,ee]=a.useState(!1),[T,_]=a.useState(null),[F,H]=a.useState(null);a.useEffect(()=>{rt(()=>{var r,o,f,C;(r=d.current)==null||r.dispatchEvent(new Event("input"));let N=(o=d.current)==null?void 0:o.selectionStart,c=(f=d.current)==null?void 0:f.selectionEnd,y=(C=d.current)==null?void 0:C.selectionDirection;N!==null&&c!==null&&(_(N),H(c),U.current.prev=[N,c,y])})},[u,L]),a.useEffect(()=>{R!==void 0&&u!==R&&R.length<p&&u.length===p&&(M==null||M(u))},[p,M,R,u]);let A=ct({containerRef:X,inputRef:d,pushPasswordManagerStrategy:W,isFocused:L}),m=a.useCallback(r=>{let o=r.currentTarget.value.slice(0,p);if(o.length>0&&w&&!w.test(o)){r.preventDefault();return}typeof R=="string"&&o.length<R.length&&document.dispatchEvent(new Event("selectionchange")),D(o)},[p,D,R,w]),h=a.useCallback(()=>{var r;if(d.current){let o=Math.min(d.current.value.length,p-1),f=d.current.value.length;(r=d.current)==null||r.setSelectionRange(o,f),_(o),H(f)}ee(!0)},[p]),G=a.useCallback(r=>{var o,f;let C=d.current;if(!x&&(!Y.current.isIOS||!r.clipboardData||!C))return;let N=r.clipboardData.getData("text/plain"),c=x?x(N):N;r.preventDefault();let y=(o=d.current)==null?void 0:o.selectionStart,pe=(f=d.current)==null?void 0:f.selectionEnd,k=(y!==pe?u.slice(0,y)+c+u.slice(pe):u.slice(0,y)+c+u.slice(y)).slice(0,p);if(k.length>0&&w&&!w.test(k))return;C.value=k,D(k);let Z=Math.min(k.length,p-1),I=k.length;C.setSelectionRange(Z,I),_(Z),H(I)},[p,D,w,u]),re=a.useMemo(()=>({position:"relative",cursor:i.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[i.disabled]),be=a.useMemo(()=>({position:"absolute",inset:0,width:A.willPushPWMBadge?`calc(100% + ${A.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:A.willPushPWMBadge?`inset(0 ${A.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:O,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"}),[A.PWM_BADGE_SPACE_WIDTH,A.willPushPWMBadge,O]),We=a.useMemo(()=>a.createElement("input",at(tt({autoComplete:i.autoComplete||"one-time-code"},i),{"data-input-otp":!0,"data-input-otp-placeholder-shown":u.length===0||void 0,"data-input-otp-mss":T,"data-input-otp-mse":F,inputMode:E,pattern:w==null?void 0:w.source,"aria-placeholder":v,style:be,maxLength:p,value:u,ref:d,onPaste:r=>{var o;G(r),(o=i.onPaste)==null||o.call(i,r)},onChange:m,onMouseOver:r=>{var o;ne(!0),(o=i.onMouseOver)==null||o.call(i,r)},onMouseLeave:r=>{var o;ne(!1),(o=i.onMouseLeave)==null||o.call(i,r)},onFocus:r=>{var o;h(),(o=i.onFocus)==null||o.call(i,r)},onBlur:r=>{var o;ee(!1),(o=i.onBlur)==null||o.call(i,r)}})),[m,h,G,E,be,p,F,T,i,w==null?void 0:w.source,u]),fe=a.useMemo(()=>({slots:Array.from({length:p}).map((r,o)=>{var f;let C=L&&T!==null&&F!==null&&(T===F&&o===T||o>=T&&o<F),N=u[o]!==void 0?u[o]:null,c=u[0]!==void 0?null:(f=v==null?void 0:v[o])!=null?f:null;return{char:N,placeholderChar:c,isActive:C,hasFakeCaret:C&&N===null}}),isFocused:L,isHovering:!i.disabled&&ae}),[L,ae,p,F,T,i.disabled,u]),Be=a.useMemo(()=>P?P(fe):a.createElement(Oe.Provider,{value:fe},B),[B,fe,P]);return a.createElement(a.Fragment,null,b!==null&&a.createElement("noscript",null,a.createElement("style",null,b)),a.createElement("div",{ref:X,"data-input-otp-container":!0,style:re,className:j},Be,a.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},We)))});Fe.displayName="Input";function oe(t,n){try{t.insertRule(n)}catch{console.error("input-otp could not insert CSS rule:",n)}}var ut=` 12[data-input-otp] { 13 --nojs-bg: white !important; 14 --nojs-fg: black !important; 15 16 background-color: var(--nojs-bg) !important; 17 color: var(--nojs-fg) !important; 18 caret-color: var(--nojs-fg) !important; 19 letter-spacing: .25em !important; 20 text-align: center !important; 21 border: 1px solid var(--nojs-fg) !important; 22 border-radius: 4px !important; 23 width: 100% !important; 24} 25@media (prefers-color-scheme: dark) { 26 [data-input-otp] { 27 --nojs-bg: black !important; 28 --nojs-fg: white !important; 29 } 30}`;const Ae=a.forwardRef(({className:t,containerClassName:n,...s},l)=>e.jsx(Fe,{ref:l,containerClassName:me("flex items-center gap-2 has-[:disabled]:opacity-50",n),className:me("disabled:cursor-not-allowed",t),...s}));Ae.displayName="InputOTP";const Ie=a.forwardRef(({className:t,...n},s)=>e.jsx("div",{ref:s,className:me("flex items-center",t),...n}));Ie.displayName="InputOTPGroup";const Q=a.forwardRef(({index:t,className:n,...s},l)=>{const S=a.useContext(Oe),{char:p,hasFakeCaret:O,isActive:g}=S.slots[t];return e.jsxs("div",{ref:l,className:me("relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",g&&"z-10 ring-1 ring-ring",n),...s,children:[p,O&&e.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});Q.displayName="InputOTPSlot";const dt=a.forwardRef(({...t},n)=>e.jsx("div",{ref:n,role:"separator",...t,children:e.jsx(Je,{})}));dt.displayName="InputOTPSeparator";function ft(){var te,ue,de,u,R,D,w,d,X,Y,U,ae,ne,L,ee,T,_,F,H,A;
30const t=$e(),[n,s]=a.useState(""),[l,S]=a.useState(""),[p,O]=a.useState(""),[g,v]=a.useState(""),[E,M]=a.useState(!1),[W,x]=a.useState(!1),[j,b]=a.useState(""),P=async m=>{var h,G;if(m.preventDefault(),v(""),l!==p){v(((h=t.auth)==null?void 0:h.passwordMismatch)||"Passwords do not match");return}M(!0);try{await z.auth.register({email:n,password:l}),x(!0)}catch(re){v(re.message||((G=t.auth)==null?void 0:G.registrationFailed)||"Registration failed")}finally{M(!1)}},B=async()=>{var m;v(""),M(!0);try{const h=await z.auth.verifyOtp({email:n,otpCode:j});h!=null&&h.access_token&&z.auth.setToken(h.access_token),window.location.href=se()}catch(h){v(h.message||((m=t.auth)==null?void 0:m.invalidCode)||"Invalid verification code")}finally{M(!1)}},i=async()=>{var m,h,G;v("");try{await z.auth.resendOtp(n),Ue.success(((m=t.auth)==null?void 0:m.codeSent)||"Code sent",{description:((h=t.auth)==null?void 0:h.codeSentDesc)||"Check your email for the new code."})}catch(re){v(re.message||((G=t.auth)==null?void 0:G.resendFailed)||"Failed to resend code")}},q=()=>z.auth.loginWithProvider("google",se()),le=()=>z.auth.loginWithProvider("microsoft",se()),ie=()=>z.auth.loginWithProvider("facebook",se()),ce=()=>z.auth.loginWithProvider("apple",se());return W?e.jsxs(je,{icon:Ce,title:((te=t.auth)==null?void 0:te.verifyEmailTitle)||"Verify your email",subtitle:`${((ue=t.auth)==null?void 0:ue.verifyEmailSubtitle)||"We sent a code to"} ${n}`,children:[g&&e.jsxs("div",{className:"mb-5 p-3 rounded-lg bg-danger/8 border border-danger/15 text-danger text-sm flex items-start gap-2",children:[e.jsx("div",{className:"w-1 h-1 rounded-full bg-danger mt-2 flex-shrink-0"}),e.jsx("span",{children:g})]}),e.jsx("div",{className:"flex justify-center mb-6",children:e.jsx(Ae,{maxLength:6,value:j,onChange:b,autoFocus:!0,autoComplete:"one-time-code",children:e.jsxs(Ie,{children:[e.jsx(Q,{index:0}),e.jsx(Q,{index:1}),e.jsx(Q,{index:2}),e.jsx(Q,{index:3}),e.jsx(Q,{index:4}),e.jsx(Q,{index:5})]})})}),e.jsx(Ne,{className:"w-full h-12 font-semibold bg-action text-action-foreground hover:opacity-90 transition-all duration-base ease-out",onClick:B,disabled:E||j.length<6,children:E?e.jsxs(e.Fragment,{children:[e.jsx(Se,{className:"w-4 h-4 mr-2 animate-spin"}),((de=t.auth)==null?void 0:de.verifying)||"Verifying..."]}):((u=t.auth)==null?void 0:u.verifyBtn)||"Verify"}),e.jsxs("p",{className:"text-center text-sm text-muted-foreground mt-4",children:[((R=t.auth)==null?void 0:R.didntReceiveCode)||"Didn't receive the code?"," ",e.jsx("button",{onClick:i,className:"text-primary font-semibold hover:underline",children:((D=t.auth)==null?void 0:D.resend)||"Resend"})]})]}):e.jsxs(je,{icon:Qe,title:((w=t.auth)==null?void 0:w.registerTitle)||"Create your account",subtitle:((d=t.auth)==null?void 0:d.registerSubtitle)||"Sign up to get started",footer:e.jsxs(e.Fragment,{children:[((X=t.auth)==null?void 0:X.alreadyHaveAccount)||"Already have an account?"," ",e.jsx(Ge,{to:"/login",className:"text-primary font-semibold hover:underline",children:((Y=t.auth)==null?void 0:Y.logIn)||"Log in"})]}),children:[e.jsxs("div",{className:"space-y-2.5 mb-6",children:[e.jsxs("button",{onClick:q,className:"w-full h-11 flex items-center justify-center gap-3 rounded-xl border border-line bg-surface-2/50 hover:bg-surface-2 hover:border-action/40 text-fg text-sm font-medium transition-all duration-base ease-out cursor-pointer group",children:[e.jsx(Ve,{className:"w-5 h-5"}),((U=t.auth)==null?void 0:U.continueWithGoogle)||"Continue with Google"]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2.5",children:[e.jsxs("button",{onClick:le,className:"h-11 flex items-center justify-center gap-2 rounded-xl border border-line bg-surface-2/50 hover:bg-surface-2 hover:border-action/40 text-fg text-sm font-medium transition-all duration-base ease-out cursor-pointer",children:[e.jsx(ze,{className:"w-5 h-5"}),e.jsx("span",{className:"hidden sm:inline",children:"Microsoft"})]}),e.jsxs("button",{onClick:ie,className:"h-11 flex items-center justify-center gap-2 rounded-xl border border-line bg-surface-2/50 hover:bg-surface-2 hover:border-action/40 text-fg text-sm font-medium transition-all duration-base ease-out cursor-pointer",children:[e.jsx("svg",{className:"w-5 h-5 shrink-0",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"#1877F2",children:e.jsx("path",{d:"M24 12.073C24 5.405 18.627 0 12 0S0 5.405 0 12.073C0 18.1 4.388 23.094 10.125 24v-8.437H7.078v-3.49h3.047V9.413c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.49h-2.796V24C19.612 23.094 24 18.1 24 12.073z"})}),e.jsx("span",{className:"hidden sm:inline",children:"Facebook"})]}),e.jsxs("button",{onClick:ce,className:"h-11 flex items-center justify-center gap-2 rounded-xl border border-line bg-surface-2/50 hover:bg-surface-2 hover:border-action/40 text-fg text-sm font-medium transition-all duration-base ease-out cursor-pointer",children:[e.jsx("svg",{className:"w-5 h-5 shrink-0",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
30currentColor",children:e.jsx("path",{d:"M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.08zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"})}),e.jsx("span",{className:"hidden sm:inline",children:"Apple"})]})]})]}),e.jsxs("div",{className:"relative mb-6",children:[e.jsx("div",{className:"absolute inset-0 flex items-center",children:e.jsx("div",{className:"w-full border-t border-line"})}),e.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:e.jsx("span",{className:"bg-surface px-3 text-fg-subtle tracking-[0.2em]",children:((ae=t.auth)==null?void 0:ae.or)||"or"})})]}),g&&e.jsxs("div",{className:"mb-5 p-3 rounded-lg bg-danger/8 border border-danger/15 text-danger text-sm flex items-start gap-2",children:[e.jsx("div",{className:"w-1 h-1 rounded-full bg-danger mt-2 flex-shrink-0"}),e.jsx("span",{children:g})]}),e.jsxs("form",{onSubmit:P,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(ve,{htmlFor:"email",className:"text-xs font-medium text-fg-muted tracking-wide uppercase",children:((ne=t.auth)==null?void 0:ne.emailLabel)||"Email"}),e.jsxs("div",{className:"relative",children:[e.jsx(Ce,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-fg-subtle","aria-hidden":"true"}),e.jsx(xe,{id:"email",type:"email",autoComplete:"email",autoFocus:!0,placeholder:((L=t.auth)==null?void 0:L.emailPlaceholder)||"[email protected]",value:n,onChange:m=>s(m.target.value),className:"pl-10 h-12 bg-surface-2/50 border-line focus:border-action/60 focus:bg-surface transition-all duration-base ease-out",required:!0})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(ve,{htmlFor:"password",className:"text-xs font-medium text-fg-muted tracking-wide uppercase",children:((ee=t.auth)==null?void 0:ee.passwordLabel)||"Password"}),e.jsxs("div",{className:"relative",children:[e.jsx(Pe,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-fg-subtle","aria-hidden":"true"}),e.jsx(xe,{id:"password",type:"password",autoComplete:"new-password",placeholder:((T=t.auth)==null?void 0:T.passwordPlaceholder)||"â¢â¢â¢â¢â¢â¢â¢â¢",value:l,onChange:m=>S(m.target.value),className:"pl-10 h-12 bg-surface-2/50 border-line focus:border-action/60 focus:bg-surface transition-all duration-base ease-out",required:!0})]})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(ve,{htmlFor:"confirm",className:"text-xs font-medium text-fg-muted tracking-wide uppercase",children:((_=t.auth)==null?void 0:_.confirmPasswordLabel)||"Confirm Password"}),e.jsxs("div",{className:"relative",children:[e.jsx(Pe,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-fg-subtle","aria-hidden":"true"}),e.jsx(xe,{id:"confirm",type:"password",autoComplete:"new-password",placeholder:((F=t.auth)==null?void 0:F.passwordPlaceholder)||"â¢â¢â¢â¢â¢â¢â¢â¢",value:p,onChange:m=>O(m.target.value),className:"pl-10 h-12 bg-surface-2/50 border-line focus:border-action/60 focus:bg-surface transition-all duration-base ease-out",required:!0})]})]}),e.jsx(Ne,{type:"submit",className:"w-full h-12 font-semibold tracking-wide bg-action text-action-foreground hover:opacity-90 transition-all duration-base ease-out mt-2",disabled:E,children:E?e.jsxs(e.Fragment,{children:[e.jsx(Se,{className:"w-4 h-4 mr-2 animate-spin"}),((H=t.auth)==null?void 0:H.creatingAccount)||"Creating account..."]}):e.jsxs(e.Fragment,{children:[((A=t.auth)==null?void 0:A.createAccountBtn)||"Create account",e.jsx(qe,{className:"w-4 h-4 ml-2"})]})})]})]})}export{ft as default};
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.