PageSourceSearch

https://automate.ax/assets/login-form-agBRr5wy.js

js automate.ax collected 2026-10-05 06:33:04 UTC 30,735 bytes, 20 lines download raw bytes

1import{r as n,c as Y,f as ie,j as t,R as ge,h as Le,P as Se,S as Ue,aQ as We,B as ae,aR as Ve,aS as $e,n as me,aT as ze}from"./index-D3SAFJQQ.js";import{u as ye,F as we,a as Ee,b as ke,c as Pe,d as Ze}from"./field-Cmrv4hE3.js";import{I as qe}from"./input-BbqDqXyI.js";import{u as ce}from"./useMutation-7L4ZG48E.js";import{I as Ke}from"./IconCheck-Bzw9q_EF.js";var Qe=Object.defineProperty,Xe=Object.defineProperties,Ye=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Ce=(o,e,l)=>e in o?Qe(o,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[e]=l,Je=(o,e)=>{for(var l in e||(e={}))Me.call(e,l)&&Ce(o,l,e[l]);if(ue)for(var l of ue(e))Re.call(e,l)&&Ce(o,l,e[l]);return o},et=(o,e)=>Xe(o,Ye(e)),tt=(o,e)=>{var l={};for(var s in o)Me.call(o,s)&&e.indexOf(s)<0&&(l[s]=o[s]);if(o!=null&&ue)for(var s of ue(o))e.indexOf(s)<0&&Re.call(o,s)&&(l[s]=o[s]);return l};function ot(o){let e=setTimeout(o,0),l=setTimeout(o,10),s=setTimeout(o,50);return[e,l,s]}function lt(o){let e=n.useRef();return n.useEffect(()=>{e.current=o}),e.current}var st=18,Fe=40,nt=`${Fe}px`,at=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function rt({containerRef:o,inputRef:e,pushPasswordManagerStrategy:l,isFocused:s}){let[i,a]=n.useState(!1),[v,_]=n.useState(!1),[c,j]=n.useState(!1),x=n.useMemo(()=>l==="none"?!1:(l==="increase-width"||l==="experimental-no-flickering")&&i&&v,[i,v,l]),h=n.useCallback(()=>{let p=o.current,y=e.current;if(!p||!y||c||l==="none")return;let g=p,b=g.getBoundingClientRect().left+g.offsetWidth,C=g.getBoundingClientRect().top+g.offsetHeight/2,f=b-st,w=C;document.querySelectorAll(at).length===0&&document.elementFromPoint(f,w)===p||(a(!0),j(!0))},[o,e,c,l]);return n.useEffect(()=>{let p=o.current;if(!p||l==="none")return;function y(){let b=window.innerWidth-p.getBoundingClientRect().right;_(b>=Fe)}y();let g=setInterval(y,1e3);return()=>{clearInterval(g)}},[o,l]),n.useEffect(()=>{let p=s||document.activeElement===e.current;if(l==="none"||!p)return;let y=setTimeout(h,0),g=setTimeout(h,2e3),b=setTimeout(h,5e3),C=setTimeout(()=>{j(!0)},6e3);return()=>{clearTimeout(y),clearTimeout(g),clearTimeout(b),clearTimeout(C)}},[e,s,l,h]),{hasPWMBadge:i,willPushPWMBadge:x,PWM_BADGE_SPACE_WIDTH:nt}}var Oe=n.createContext({}),Te=n.forwardRef((o,e)=>{var l=o,{value:s,onChange:i,maxLength:a,textAlign:v="left",pattern:_,placeholder:c,inputMode:j="numeric",onComplete:x,pushPasswordManagerStrategy:h="increase-width",pasteTransformer:p,containerClassName:y,noScriptCSSFallback:g=it,render:b,children:C}=l,f=tt(l,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),w,R,T,E,k;let[I,D]=n.useState(typeof f.defaultValue=="string"?f.defaultValue:""),m=s??I,O=lt(m),F=n.useCallback(r=>{i?.(r),D(r)},[i]),M=n.useMemo(()=>_?typeof _=="string"?new RegExp(_):_:null,[_]),u=n.useRef(null),P=n.useRef(null),L=n.useRef({value:m,onChange:F,isIOS:typeof window<"u"&&((R=(w=window?.CSS)==null?void 0:w.supports)==null?void 0:R.call(w,"-webkit-touch-callout","none"))}),U=n.useRef({prev:[(T=u.current)==null?void 0:T.selectionStart,(E=u.current)==null?void 0:E.selectionEnd,(k=u.current)==null?void 0:k.selectionDirection]});n.useImperativeHandle(e,()=>u.current,[]),n.useEffect(()=>{let r=u.current,d=P.current;if(!r||!d)return;L.current.value!==r.value&&L.current.onChange(r.value),U.current.prev=[r.selectionStart,r.selectionEnd,r.selectionDirection];function G(){if(document.activeElement!==r){le(null),se(null);return}let S=r.selectionStart,N=r.selectionEnd,re=r.selectionDirection,A=r.maxLength,K=r.value,$=U.current.prev,z=-1,Z=-1,Q;if(K.length!==0&&S!==null&&N!==null){let Be=S===N,He=S===K.length&&K.length<A;if(Be&&!He){let X=S;if(X===0)z=0,Z=1,Q="forward";else if(X===A)z=X-1,Z=X,Q="backward";else if(A>1&&K.length>1){let pe=0;if($[0]!==null&&$[1]!==null){Q=X<$[1]?"backward":"forward";let Ae=$[0]===$[1]&&$[0]<A;Q==="backward"&&!Ae&&(pe=-1)}z=pe+X,Z=pe+X+1}}z!==-1&&Z!==-1&&z!==Z&&u.current.setSelectionRange(z,Z,Q)}let be=z!==-1?z:S,je=Z!==-1?Z:N,De=Q??re;le(be),se(je),U.current.prev=[be,je,De]}if(document.addEventListener("selectionchange",G,{capture:!0}),G(),document.activeElement===r&&fe(!0),!document.getElementById("input-otp-style")){let S=document.createElement("style");if(S.id="input-otp-style",document.head.appendChild(S),S.sheet){let N="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;";ne(S.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),ne(S.sheet,`[data-input-otp]:autofill { ${N} }`),ne(S.sheet,`[data-input-otp]:-webkit-autofill { ${N} }
1`),ne(S.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; } }"),ne(S.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let B=()=>{d&&d.style.setProperty("--root-height",`${r.clientHeight}px`)};B();let H=new ResizeObserver(B);return H.observe(r),()=>{document.removeEventListener("selectionchange",G,{capture:!0}),H.disconnect()}},[]);let[W,V]=n.useState(!1),[oe,fe]=n.useState(!1),[q,le]=n.useState(null),[J,se]=n.useState(null);n.useEffect(()=>{ot(()=>{var r,d,G,B;(r=u.current)==null||r.dispatchEvent(new Event("input"));let H=(d=u.current)==null?void 0:d.selectionStart,S=(G=u.current)==null?void 0:G.selectionEnd,N=(B=u.current)==null?void 0:B.selectionDirection;H!==null&&S!==null&&(le(H),se(S),U.current.prev=[H,S,N])})},[m,oe]),n.useEffect(()=>{O!==void 0&&m!==O&&O.length<a&&m.length===a&&x?.(m)},[a,x,O,m]);let ee=rt({containerRef:P,inputRef:u,pushPasswordManagerStrategy:h,isFocused:oe}),xe=n.useCallback(r=>{let d=r.currentTarget.value.slice(0,a);if(d.length>0&&M&&!M.test(d)){r.preventDefault();return}typeof O=="string"&&d.length<O.length&&document.dispatchEvent(new Event("selectionchange")),F(d)},[a,F,O,M]),ve=n.useCallback(()=>{var r;if(u.current){let d=Math.min(u.current.value.length,a-1),G=u.current.value.length;(r=u.current)==null||r.setSelectionRange(d,G),le(d),se(G)}fe(!0)},[a]),he=n.useCallback(r=>{var d,G;let B=u.current;if(!p&&(!L.current.isIOS||!r.clipboardData||!B))return;let H=r.clipboardData.getData("text/plain"),S=p?p(H):H;r.preventDefault();let N=(d=u.current)==null?void 0:d.selectionStart,re=(G=u.current)==null?void 0:G.selectionEnd,A=(N!==re?m.slice(0,N)+S+m.slice(re):m.slice(0,N)+S+m.slice(N)).slice(0,a);if(A.length>0&&M&&!M.test(A))return;B.value=A,F(A);let K=Math.min(A.length,a-1),$=A.length;B.setSelectionRange(K,$),le(K),se($)},[a,F,M,m]),Ge=n.useMemo(()=>({position:"relative",cursor:f.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[f.disabled]),_e=n.useMemo(()=>({position:"absolute",inset:0,width:ee.willPushPWMBadge?`calc(100% + ${ee.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:ee.willPushPWMBadge?`inset(0 ${ee.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:v,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"}),[ee.PWM_BADGE_SPACE_WIDTH,ee.willPushPWMBadge,v]),Ie=n.useMemo(()=>n.createElement("input",et(Je({autoComplete:f.autoComplete||"one-time-code"},f),{"data-input-otp":!0,"data-input-otp-placeholder-shown":m.length===0||void 0,"data-input-otp-mss":q,"data-input-otp-mse":J,inputMode:j,pattern:M?.source,"aria-placeholder":c,style:_e,maxLength:a,value:m,ref:u,onPaste:r=>{var d;he(r),(d=f.onPaste)==null||d.call(f,r)},onChange:xe,onMouseOver:r=>{var d;V(!0),(d=f.onMouseOver)==null||d.call(f,r)},onMouseLeave:r=>{var d;V(!1),(d=f.onMouseLeave)==null||d.call(f,r)},onFocus:r=>{var d;ve(),(d=f.onFocus)==null||d.call(f,r)},onBlur:r=>{var d;fe(!1),(d=f.onBlur)==null||d.call(f,r)}})),[xe,ve,he,j,_e,a,J,q,f,M?.source,m]),de=n.useMemo(()=>({slots:Array.from({length:a}).map((r,d)=>{var G;let B=oe&&q!==null&&J!==null&&(q===J&&d===q||d>=q&&d<J),H=m[d]!==void 0?m[d]:null,S=m[0]!==void 0?null:(G=c?.[d])!=null?G:null;return{char:H,placeholderChar:S,isActive:B,hasFakeCaret:B&&H===null}}),isFocused:oe,isHovering:!f.disabled&&W}),[oe,W,a,J,q,f.disabled,m]),Ne=n.useMemo(()=>b?b(de):n.createElement(Oe.Provider,{value:de},C),[C,de,b]);return n.createElement(n.Fragment,null,g!==null&&n.createElement("noscript",null,n.createElement("style",null,g)),n.createElement("div",{ref:P,"data-input-otp-container":!0,style:Ge,className:y},Ne,n.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},Ie)))});Te.displayName="Input";function ne(o,e){try{o.insertRule(e)}catch{console.error("input-otp could not insert CSS rule:",e)}}var it=`
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}`,ct="^\\d+$";function ut(o){const e=Y.c(12);let l,s,i;e[0]!==o?({className:l,containerClassName:s,...i}=o,e[0]=o,e[1]=l,e[2]=s,e[3]=i):(l=e[1],s=e[2],i=e[3]);let a;e[4]!==s?(a=ie("cn-input-otp flex items-center has-disabled:opacity-50",s),e[4]=s,e[5]=a):a=e[5];let v;e[6]!==l?(v=ie("disabled:cursor-not-allowed",l),e[6]=l,e[7]=v):v=e[7];let _;return e[8]!==i||e[9]!==a||e[10]!==v?(_=t.jsx(Te,{"data-slot":"input-otp",containerClassName:a,spellCheck:!1,className:v,...i}),e[8]=i,e[9]=a,e[10]=v,e[11]=_):_=e[11],_}function ft(o){const e=Y.c(8);let l,s;e[0]!==o?({className:l,...s}=o,e[0]=o,e[1]=l,e[2]=s):(l=e[1],s=e[2]);let i;
20e[3]!==l?(i=ie("flex items-center rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40",l),e[3]=l,e[4]=i):i=e[4];let a;return e[5]!==s||e[6]!==i?(a=t.jsx("div",{"data-slot":"input-otp-group",className:i,...s}),e[5]=s,e[6]=i,e[7]=a):a=e[7],a}function te(o){const e=Y.c(17);let l,s,i;e[0]!==o?({index:s,className:l,...i}=o,e[0]=o,e[1]=l,e[2]=s,e[3]=i):(l=e[1],s=e[2],i=e[3]);const a=n.useContext(Oe);let v;e[4]!==s||e[5]!==a.slots?(v=a.slots[s]??{},e[4]=s,e[5]=a.slots,e[6]=v):v=e[6];const{char:_,hasFakeCaret:c,isActive:j}=v;let x;e[7]!==l?(x=ie("relative flex size-8 items-center justify-center border-y border-r border-input text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-foreground/30 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40",l),e[7]=l,e[8]=x):x=e[8];let h;e[9]!==c?(h=c&&t.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:t.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})}),e[9]=c,e[10]=h):h=e[10];let p;return e[11]!==_||e[12]!==j||e[13]!==i||e[14]!==x||e[15]!==h?(p=t.jsxs("div",{"data-slot":"input-otp-slot","data-active":j,className:x,...i,children:[_,h]}),e[11]=_,e[12]=j,e[13]=i,e[14]=x,e[15]=h,e[16]=p):p=e[16],p}const dt=o=>{const e=Y.c(3);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("path",{fill:"#ffff",fillRule:"evenodd",d:"M512 0C229.12 0 0 229.12 0 512c0 226.56 146.56 417.92 350.08 485.76 25.6 4.48 35.2-10.88 35.2-24.32 0-12.16-.64-52.48-.64-95.36-128.64 23.68-161.92-31.36-172.16-60.16-5.76-14.72-30.72-60.16-52.48-72.32-17.92-9.6-43.52-33.28-.64-33.92 40.32-.64 69.12 37.12 78.72 52.48 46.08 77.44 119.68 55.68 149.12 42.24 4.48-33.28 17.92-55.68 32.64-68.48-113.92-12.8-232.96-56.96-232.96-252.8 0-55.68 19.84-101.76 52.48-137.6-5.12-12.8-23.04-65.28 5.12-135.68 0 0 42.88-13.44 140.8 52.48 40.96-11.52 84.48-17.28 128-17.28s87.04 5.76 128 17.28c97.92-66.56 140.8-52.48 140.8-52.48 28.16 70.4 10.24 122.88 5.12 135.68 32.64 35.84 52.48 81.28 52.48 137.6 0 196.48-119.68 240-233.6 252.8 18.56 16 34.56 46.72 34.56 94.72 0 68.48-.64 123.52-.64 140.8 0 13.44 9.6 29.44 35.2 24.32C877.44 929.92 1024 737.92 1024 512 1024 229.12 794.88 0 512 0",clipRule:"evenodd"}),e[0]=l):l=e[0];let s;return e[1]!==o?(s=t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 1024 1024",...o,children:l}),e[1]=o,e[2]=s):s=e[2],s},pt=o=>{const e=Y.c(22);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsxs("linearGradient",{id:"google_svg__a",children:[t.jsx("stop",{offset:0,stopColor:"#0fbc5c"}),t.jsx("stop",{offset:1,stopColor:"#0cba65"})]}),e[0]=l):l=e[0];let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs("linearGradient",{id:"google_svg__g",children:[t.jsx("stop",{offset:.231,stopColor:"#0fbc5f"}),t.jsx("stop",{offset:.312,stopColor:"#0fbc5f"}),t.jsx("stop",{offset:.366,stopColor:"#0fbc5e"}),t.jsx("stop",{offset:.458,stopColor:"#0fbc5d"}),t.jsx("stop",{offset:.54,stopColor:"#12bc58"}),t.jsx("stop",{offset:.699,stopColor:"#28bf3c"}),t.jsx("stop",{offset:.771,stopColor:"#38c02b"}),t.jsx("stop",{offset:.861,stopColor:"#52c218"}),t.jsx("stop",{offset:.915,stopColor:"#67c30f"}),t.jsx("stop",{offset:1,stopColor:"#86c504"})]}),e[1]=s):s=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsxs("linearGradient",{id:"google_svg__h",children:[t.jsx("stop",{offset:.142,stopColor:"#1abd4d"}),t.jsx("stop",{offset:.248,stopColor:"#6ec30d"}),t.jsx("stop",{offset:.312,stopColor:"#8ac502"}),t.jsx("stop",{offset:.366,stopColor:"#a2c600"}),t.jsx("stop",{offset:.446,stopColor:"#c8c903"}),t.jsx("stop",{offset:.54,stopColor:"#ebcb03"}),t.jsx("stop",{offset:.616,stopColor:"#f7cd07"}),t.jsx("stop",{offset:.699,stopColor:"#fdcd04"}),t.jsx("stop",{offset:.771,stopColor:"#fdce05"}),t.jsx("stop",{offset:.861,stopColor:"#ffce0a"})]}),e[2]=i):i=e[2];let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsxs("linearGradient",{id:"google_svg__f",children:[t.jsx("stop",{offset:.316,stopColor:"#ff4c3c"}),t.jsx("stop",{offset:.604,stopColor:"#ff692c"}),t.jsx("stop",{offset:.727,stopColor:"#ff7825"}),t.jsx("stop",{offset:.885,stopColor:"#ff8d1b"}),t.jsx("stop",{offset:1,stopColor:"#ff9f13"})]}),e[3]=a):a=e[3];let v;e[4]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsxs("linearGradient",{id:"google_svg__b",children:[t.jsx("stop",{offset:.231,stopColor:"#ff4541"}),t.jsx("stop",{offset:.312,stopColor:"#ff4540"}),t.jsx("stop",{offset:.458,stopColor:"#ff4640"}),t.jsx("stop",{offset:.54,stopColor:"#ff473f"}),t.jsx("stop",{offset:.699,stopColor:"#ff5138"}),t.jsx("stop",{offset:.771,stopColor:"#ff5b33"}),t.jsx("stop",{offset:.861,stopColor:"#ff6c29"}),t.jsx("stop",{offset:1,stopColor:"#ff8c18"})]}),e[4]=v):v=e[4];let _;e[5]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsxs("linearGradient",{id:"google_svg__d",children:[t.jsx("stop",{offset:.408,stopColor:"#fb4e5a"}),t.jsx("stop",{offset:1,stopColor:"#ff4540"})]}),e[5]=_):_=e[5];let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsxs("linearGradient",{id:"google_svg__c",children:[t.jsx("stop",{offset:.132,stopColor:"#0cba65"}),t.jsx("stop",{offset:.21,stopColor:"#0bb86d"}),t.jsx("stop",{offset:.297,stopColor:"#09b479"}),t.jsx("stop",{offset:.396,stopColor:"#08ad93"}),t.jsx("stop",{offset:.477,stopColor:"#0aa6a9"}),t.jsx("stop",{offset:.568,stopColor:"#0d9cc6"}),t.jsx("stop",{offset:.667,stopColor:"#1893dd"}),t.jsx("stop",{offset:.769,stopColor:"#258bf1"}),t.jsx("stop",{offset:.859,stopColor:"#3086ff"})]}),e[6]=c):c=e[6];let j,x,h,p,y,g,b,C,f;e[7]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsxs("linearGradient",{id:"google_svg__e",children:[t.jsx("stop",{offset:.366,stopColor:"#ff4e3a"}),t.jsx("stop",{offset:.458,stopColor:"#ff8a1b"}),t.jsx("stop",{offset:.54,stopColor:"#ffa312"}),t.jsx("stop",{offset:.616,stopColor:"#ffb60c"}),t.jsx("stop",{offset:.771,stopColor:"#ffcd0a"}),t.jsx("stop",{offset:.861,stopColor:"#fecf0a"}),t.jsx("stop",{offset:.915,stopColor:"#fecf08"}),t.jsx("stop",{offset:1,stopColor:"#fdcd01"})]}),C=t.jsx("linearGradient",{xlinkHref:"#google_svg__a",id:"google_svg__s",x1:219.7,x2:254.467,y1:329.535,y2:329.535,gradientUnits:"userSpaceOnUse"}),f=t.jsx("radialGradient",{xlinkHref:"#google_svg__b",id:"google_svg__m",cx:109.627,cy:135.862,r:71.46,fx:109.627,fy:135.862,gradientTransform:"matrix(-1.93688 1.043 1.45573 2.55542 290.525 -400.634)",gradientUnits:"userSpaceOnUse"}),j=t.jsx("radialGradient",{xlinkHref:"#google_svg__c",id:"google_svg__n",cx:45.259,cy:279.274,r:71.46,fx:45.259,fy:279.274,gradientTransform:"matrix(-3.5126 -4.45809 -1.69255 1.26062 870.8 191.554)",gradientUnits:"userSpaceOnUse"}
20),x=t.jsx("radialGradient",{xlinkHref:"#google_svg__d",id:"google_svg__l",cx:304.017,cy:118.009,r:47.854,fx:304.017,fy:118.009,gradientTransform:"matrix(2.06435 0 0 2.59204 -297.679 -151.747)",gradientUnits:"userSpaceOnUse"}),h=t.jsx("radialGradient",{xlinkHref:"#google_svg__e",id:"google_svg__o",cx:181.001,cy:177.201,r:71.46,fx:181.001,fy:177.201,gradientTransform:"matrix(-.24858 2.08314 2.96249 .33417 -255.146 -331.164)",gradientUnits:"userSpaceOnUse"}),p=t.jsx("radialGradient",{xlinkHref:"#google_svg__f",id:"google_svg__p",cx:207.673,cy:108.097,r:41.102,fx:207.673,fy:108.097,gradientTransform:"matrix(-1.2492 1.34326 -3.89684 -3.4257 880.501 194.905)",gradientUnits:"userSpaceOnUse"}),y=t.jsx("radialGradient",{xlinkHref:"#google_svg__g",id:"google_svg__r",cx:109.627,cy:135.862,r:71.46,fx:109.627,fy:135.862,gradientTransform:"matrix(-1.93688 -1.043 1.45573 -2.55542 290.525 838.683)",gradientUnits:"userSpaceOnUse"}),g=t.jsx("radialGradient",{xlinkHref:"#google_svg__h",id:"google_svg__j",cx:154.87,cy:145.969,r:71.46,fx:154.87,fy:145.969,gradientTransform:"matrix(-.0814 -1.93722 2.92674 -.11625 -215.135 632.86)",gradientUnits:"userSpaceOnUse"}),e[7]=j,e[8]=x,e[9]=h,e[10]=p,e[11]=y,e[12]=g,e[13]=b,e[14]=C,e[15]=f):(j=e[7],x=e[8],h=e[9],p=e[10],y=e[11],g=e[12],b=e[13],C=e[14],f=e[15]);let w;e[16]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("filter",{id:"google_svg__q",width:1.097,height:1.116,x:-.048,y:-.058,colorInterpolationFilters:"sRGB",children:t.jsx("feGaussianBlur",{stdDeviation:1.701})}),e[16]=w):w=e[16];let R;e[17]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx("filter",{id:"google_svg__k",width:1.033,height:1.02,x:-.017,y:-.01,colorInterpolationFilters:"sRGB",children:t.jsx("feGaussianBlur",{stdDeviation:.242})}),e[17]=R):R=e[17];let T;e[18]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsxs("defs",{children:[l,s,i,a,v,_,c,b,C,f,j,x,h,p,y,g,w,R,t.jsx("clipPath",{id:"google_svg__i",clipPathUnits:"userSpaceOnUse",children:t.jsx("path",{d:"M371.378 193.24H237.083v53.438h77.167c-1.241 7.563-4.026 15.003-8.105 21.786-4.674 7.773-10.451 13.69-16.373 18.196-17.74 13.498-38.42 16.258-52.783 16.258-36.283 0-67.283-23.286-79.285-54.928-.484-1.149-.805-2.335-1.197-3.507a81.1 81.1 0 0 1-4.101-25.448c0-9.226 1.569-18.057 4.43-26.398 11.285-32.897 42.985-57.467 80.179-57.467 7.481 0 14.685.884 21.517 2.648a77.67 77.67 0 0 1 33.425 18.25l40.834-39.712c-24.839-22.616-57.219-36.32-95.844-36.32-30.878 0-59.386 9.553-82.748 25.7-18.945 13.093-34.483 30.625-44.97 50.985-9.753 18.879-15.094 39.8-15.094 62.294 0 22.495 5.35 43.633 15.103 62.337v.126c10.302 19.857 25.368 36.954 43.678 49.988 15.997 11.386 44.68 26.551 84.031 26.551 22.63 0 42.687-4.051 60.375-11.644 12.76-5.478 24.065-12.622 34.301-21.804 13.525-12.132 24.117-27.139 31.347-44.404s11.097-36.79 11.097-57.957c0-9.858-.998-19.87-2.689-28.968"})})]}),e[18]=T):T=e[18];let E;e[19]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsxs("g",{clipPath:"url(#google_svg__i)",transform:"matrix(.95792 0 0 .98525 -90.174 -78.856)",children:[t.jsx("path",{fill:"url(#google_svg__j)",d:"M92.076 219.958c.148 22.14 6.501 44.983 16.117 63.424v.127c6.949 13.392 16.445 23.97 27.26 34.452l65.327-23.67c-12.36-6.235-14.246-10.055-23.105-17.026-9.054-9.066-15.802-19.473-20.004-31.677h-.17l.17-.127c-2.765-8.058-3.037-16.613-3.14-25.503Z",filter:"url(#google_svg__k)"}),t.jsx("path",{fill:"url(#google_svg__l)",d:"M237.083 79.025c-6.456 22.526-3.988 44.421 0 57.161 7.457.006 14.64.888 21.45 2.647a77.66 77.66 0 0 1 33.424 18.25l41.88-40.726c-24.81-22.59-54.667-37.297-96.754-37.332",filter:"url(#google_svg__k)"}),t.jsx("path",{fill:"url(#google_svg__m)",d:"M236.943 78.847c-31.67 0-60.91 9.798-84.871 26.359a145.5 145.5 0 0 0-24.332 21.15c-1.904 17.744 14.257 39.551 46.262 39.37 15.528-17.936 38.495-29.542 64.056-29.542l.07.002-1.044-57.335q-.07-.002-.14-.004Z",filter:"url(#google_svg__k)"}),t.jsx("path",{fill:"url(#google_svg__n)",d:"m341.475 226.379-28.268 19.285c-1.24 7.562-4.028 15.002-8.107 21.786-4.674 7.772-10.45 13.69-16.373 18.196-17.702 13.47-38.328 16.244-52.687 16.255-14.842 25.102-17.444 37.675 1.043 57.934 22.877-.016 43.157-4.117 61.046-11.796 12.931-5.551 24.388-12.792 34.761-22.097 13.706-12.295 24.442-27.503 31.769-45s11.245-37.282 11.245-58.734Z",filter:"url
20(#google_svg__k)"}),t.jsx("path",{fill:"#3086ff",d:"M234.996 191.21v57.498h136.006c1.196-7.874 5.152-18.064 5.152-26.5 0-9.858-.996-21.899-2.687-30.998Z",filter:"url(#google_svg__k)"}),t.jsx("path",{fill:"url(#google_svg__o)",d:"M128.39 124.327c-8.394 9.119-15.564 19.326-21.249 30.364-9.753 18.879-15.094 41.83-15.094 64.324 0 .317.026.627.029.944 4.32 8.224 59.666 6.649 62.456 0-.004-.31-.039-.613-.039-.924 0-9.226 1.57-16.026 4.43-24.367 3.53-10.289 9.056-19.763 16.123-27.926 1.602-2.031 5.875-6.397 7.121-9.016.475-.997-.862-1.557-.937-1.908-.083-.393-1.876-.077-2.277-.37-1.275-.929-3.8-1.414-5.334-1.845-3.277-.921-8.708-2.953-11.725-5.06-9.536-6.658-24.417-14.612-33.505-24.216Z",filter:"url(#google_svg__k)"}),t.jsx("path",{fill:"url(#google_svg__p)",d:"M162.099 155.857c22.112 13.301 28.471-6.714 43.173-12.977l-25.574-52.664a144.7 144.7 0 0 0-26.543 14.504c-12.316 8.512-23.192 18.9-32.176 30.72Z",filter:"url(#google_svg__q)"}),t.jsx("path",{fill:"url(#google_svg__r)",d:"M171.099 290.222c-29.683 10.641-34.33 11.023-37.062 29.29a145 145 0 0 0 16.792 13.984c15.996 11.386 46.766 26.551 86.118 26.551q.068-.002.137-.004v-59.157l-.094.002c-14.736 0-26.512-3.843-38.585-10.527-2.977-1.648-8.378 2.777-11.123.799-3.786-2.729-12.9 2.35-16.183-.938",filter:"url(#google_svg__k)"}),t.jsx("path",{fill:"url(#google_svg__s)",d:"M219.7 299.023v59.996c5.506.64 11.236 1.028 17.247 1.028 6.026 0 11.855-.307 17.52-.872v-59.748a105 105 0 0 1-17.477 1.461c-5.932 0-11.7-.686-17.29-1.865",filter:"url(#google_svg__k)",opacity:.5})]}),e[19]=E):E=e[19];let k;return e[20]!==o?(k=t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",xmlSpace:"preserve",overflow:"hidden",viewBox:"0 0 268.152 273.883",...o,children:[T,E]}),e[20]=o,e[21]=k):k=e[21],k},gt=({...o})=>ge.createElement(Le,{size:"18px",...o},ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 5.25C1 3.73079 2.23079 2.5 3.75 2.5H14.25C15.7692 2.5 17 3.73079 17 5.25V12.75C17 14.2692 15.7692 15.5 14.25 15.5H3.75C2.23079 15.5 1 14.2692 1 12.75V5.25Z",fill:"currentColor",fillOpacity:"0.4","data-color":"color-2"}),ge.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.75 2.5C2.23054 2.5 1 3.73203 1 5.25C1 5.52318 1.14853 5.77475 1.38773 5.9067L8.15473 9.6397C8.68119 9.93004 9.31874 9.93008 9.84519 9.63975L16.6123 5.9067C16.8515 5.77475 17 5.52318 17 5.25C17 3.73203 15.7695 2.5 14.25 2.5H3.75Z",fill:"currentColor"})),mt=15e3,xt=Se({email:ze()}),vt=Se({otp:Ue().check(We(/^\d{6}$/,"Enter the 6-digit code"))});function Rt(o){const e=Y.c(47),{email:l,socialCallbackURL:s,onCodeSent:i}=o;let a;e[0]!==i?(a={mutationFn:jt,onSuccess:async(W,V)=>i(V.email)},e[0]=i,e[1]=a):a=e[1];const v=ce(a);let _;e[2]!==s?(_={mutationFn:async W=>{const{url:V}=await $e.signIn.social({provider:W,callbackURL:s});if(!V)throw new Error("Failed to start social sign-in");window.location.assign(V)}},e[2]=s,e[3]=_):_=e[3];const c=ce(_),j=l??"";let x;e[4]!==j?(x={email:j},e[4]=j,e[5]=x):x=e[5];let h;e[6]===Symbol.for("react.memo_cache_sentinel")?(h={onChange:xt},e[6]=h):h=e[6];let p;e[7]!==v?(p=async W=>{const{value:V}=W;return v.mutateAsync(V)},e[7]=v,e[8]=p):p=e[8];let y;e[9]!==x||e[10]!==p?(y={defaultValues:x,validators:h,onSubmit:p},e[9]=x,e[10]=p,e[11]=y):y=e[11];const g=ye(y);let b;e[12]!==g?(b=W=>{W.preventDefault(),g.handleSubmit()},e[12]=g,e[13]=b):b=e[13];let C;e[14]!==g.Field?(C=t.jsx(g.Field,{name:"email",children:bt}),e[14]=g.Field,e[15]=C):C=e[15];let f;e[16]!==g.Subscribe?(f=t.jsx(g.Subscribe,{selector:_t,children:ht}),e[16]=g.Subscribe,e[17]=f):f=e[17];let w;e[18]!==f||e[19]!==C?(w=t.jsxs(Pe,{children:[C,f]}),e[18]=f,e[19]=C,e[20]=w):w=e[20];let R;e[21]!==w||e[22]!==b?(R=t.jsx("form",{onSubmit:b,children:w}),e[21]=w,e[22]=b,e[23]=R):R=e[23];let T;e[24]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsxs("div",{className:"mt-8 flex items-center gap-4",children:[t.jsx("div",{className:"h-px flex-1 bg-border"}),t.jsx("p",{className:"text-xs font-medium uppercase tracking-[0.18em] text-muted-foreground",children:"or"}),t.jsx("div",{className:"h-px flex-1 bg-border"})]}),e[24]=T):T=e[24];const E=c.isPending&&c.variables==="google";let k;e[25]!==c?(k=()=>c.mutate("google"),e[25]=c,e[26]=k):k=e[26];let I;e[27]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(pt,{}),e[27]=I):I=e[27];const D=c.isPending&&c.variables==="google"?"Signing in":"Google";let m;e[28]!==c.isPending||e[29]!==E||e[30]!==k||e[31]!==D?(m=t.jsxs(ae,{type:"button",variant:"outline",size:"lg",className:"w-full",disabled:c.isPending,loading:E,onClick:k,children:[I,D]}),e[28]=c.isPending,e[29]=E,e[30]=k,e[31]=D,e[32]=m):m=e[32];const O=c.isPending&&c.variables==="github";let F;e[33]!==c?(F=()=>c.mutate("github"),e[33]=c,e[34]=F):F=e[34];let M;e[35]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx(dt,{}),e[35]=M):M=e[35];const u=c.isPending&&c.variables==="github"?"Signing in":"GitHub";let P;e[36]!==c.isPending||e[37]!==O||e[38]!==F||e[39]!==u?(P=t.jsxs(ae,{type:"button",variant:"outline",size:"lg",className:"w-full",disabled:c.isPending,loading:O,onClick:F,children:[M,u]}),e[36]=c.isPending,e[37]=O,e[38]=F,e[39]=u,e[40]=P):P=e[40];let L;e[41]!==m||e[42]!==P?(L=t.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-3",children:[m,P]}),e[41]=m,e[42]=P,e[43]=L):L=e[43];let U;return e[44]!==R||e[45]!==L?(U=t.jsxs(t.Fragment,{children:[R,T,L]}),e[44]=R,e[45]=L,e[46]=U):U=e[46],U}function ht(o){const[e,l]=o;return t.jsxs(ae,{type:"submit",className:"w-full",size:"lg",disabled:!e,loading:l,children:[t.jsx(gt,{}),l?"Sending":"Email me a code"]})}function _t(o){return[o.canSubmit,o.isSubmitting]}function bt(o){const e=o.state.meta.isTouched&&!o.state.meta.isValid;return t.jsxs(we,{"data-invalid":e,children:[t.jsx(Ee,{htmlFor:o.name,children:"Email address"}),t.jsx(qe,{id:o.name,name:o.name,type:"email",value:o.state.value,onBlur:o.handleBlur,onValueChange:o.handleChange,placeholder:"[email protected]",autoComplete:"email","aria-invalid":e,className:"h-9"}),e?t.jsx(ke,{errors:o.state.meta.errors}):null]})}async function jt(o){await me.emailOtp.sendVerificationOtp({email:o.email,type:"sign-in"})}function Ft(o){const e=Y.c(38),{email:l,onAuthenticated:s}=o,[i,a]=n.useState(!1),[v,_]=n.useState(0);let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{const u=window.setTimeout(()=>a(!0),mt);return()=>window.clearTimeout(u)},e[0]=c):c=e[0];let j;e[1]!==v?(j=[v],e[1]=v,e[2]=j):j=e[2],n.useEffect(c,j);let x;
20e[3]!==l?(x=async u=>{await me.signIn.emailOtp({email:l,otp:u.otp})},e[3]=l,e[4]=x):x=e[4];let h;e[5]!==s?(h=async()=>s(),e[5]=s,e[6]=h):h=e[6];let p;e[7]!==x||e[8]!==h?(p={mutationFn:x,onSuccess:h},e[7]=x,e[8]=h,e[9]=p):p=e[9];const y=ce(p);let g;e[10]!==l?(g=async()=>{await me.emailOtp.sendVerificationOtp({email:l,type:"sign-in"})},e[10]=l,e[11]=g):g=e[11];let b;e[12]===Symbol.for("react.memo_cache_sentinel")?(b=()=>{a(!1),_(yt)},e[12]=b):b=e[12];let C;e[13]!==g?(C={mutationFn:g,onSuccess:b},e[13]=g,e[14]=C):C=e[14];const f=ce(C);let w,R;e[15]===Symbol.for("react.memo_cache_sentinel")?(R={otp:""},w={onChange:vt},e[15]=w,e[16]=R):(w=e[15],R=e[16]);let T;e[17]!==y?(T={defaultValues:R,validators:w,onSubmit:async u=>{const{value:P}=u;return y.mutateAsync(P)}},e[17]=y,e[18]=T):T=e[18];const E=ye(T);let k;e[19]!==E?(k=u=>{u.preventDefault(),E.handleSubmit()},e[19]=E,e[20]=k):k=e[20];let I;e[21]!==l?(I=u=>{const P=u.state.meta.isTouched&&!u.state.meta.isValid;return t.jsxs(we,{"data-invalid":P,children:[t.jsx(Ee,{htmlFor:u.name,children:"Verification code"}),t.jsx(ut,{id:u.name,name:u.name,maxLength:6,pattern:ct,value:u.state.value,onBlur:u.handleBlur,onChange:u.handleChange,autoComplete:"one-time-code",children:t.jsxs(ft,{className:"flex-1 *:data-[slot=input-otp-slot]:h-12 *:data-[slot=input-otp-slot]:flex-1 *:data-[slot=input-otp-slot]:text-xl",children:[t.jsx(te,{index:0,"aria-invalid":P}),t.jsx(te,{index:1,"aria-invalid":P}),t.jsx(te,{index:2,"aria-invalid":P}),t.jsx(te,{index:3,"aria-invalid":P}),t.jsx(te,{index:4,"aria-invalid":P}),t.jsx(te,{index:5,"aria-invalid":P})]})}),t.jsxs(Ze,{children:["Code sent to ",l,"."]}),P?t.jsx(ke,{errors:u.state.meta.errors}):null]})},e[21]=l,e[22]=I):I=e[22];let D;e[23]!==E.Field||e[24]!==I?(D=t.jsx(E.Field,{name:"otp",children:I}),e[23]=E.Field,e[24]=I,e[25]=D):D=e[25];let m;e[26]!==E.Subscribe?(m=t.jsx(E.Subscribe,{selector:St,children:Ct}),e[26]=E.Subscribe,e[27]=m):m=e[27];let O;e[28]!==i||e[29]!==f?(O=i?t.jsxs(ae,{type:"button",variant:"ghost",className:"w-full",loading:f.isPending,onClick:()=>f.mutate(),children:[t.jsx(Ve,{}),f.isPending?"Sending":"Resend code"]}):null,e[28]=i,e[29]=f,e[30]=O):O=e[30];let F;e[31]!==D||e[32]!==m||e[33]!==O?(F=t.jsxs(Pe,{children:[D,m,O]}),e[31]=D,e[32]=m,e[33]=O,e[34]=F):F=e[34];let M;return e[35]!==k||e[36]!==F?(M=t.jsx("form",{onSubmit:k,children:F}),e[35]=k,e[36]=F,e[37]=M):M=e[37],M}function Ct(o){const[e,l]=o;return t.jsxs(ae,{type:"submit",className:"w-full",size:"lg",disabled:!e,loading:l,children:[t.jsx(Ke,{}),l?"Verifying":"Verify code"]})}function St(o){return[o.canSubmit,o.isSubmitting]}function yt(o){return o+1}export{Rt as L,Ft as a};

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.