1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="bc83f820-80c1-b23b-3457-09143b6700fd")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,291967,e=>{"use strict";"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}])},682115,e=>{"use strict";var t=e.i(369251),r=e.i(970093);e.s(["createContext",0,function(e,n){let i=t.createContext(n),a=e=>{let{children:n,...a}=e,s=t.useMemo(()=>a,Object.values(a));return(0,r.jsx)(i.Provider,{value:s,children:n})};return a.displayName=e+"Provider",[a,function(r){let a=t.useContext(i);if(a)return a;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${e}\``)}]},"createContextScope",0,function(e,n=[]){let i=[],a=()=>{let r=i.map(e=>t.createContext(e));return function(n){let i=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return a.scopeName=e,[function(n,a){let s=t.createContext(a),o=i.length;i=[...i,a];let l=n=>{let{scope:i,children:a,...l}=n,c=i?.[e]?.[o]||s,u=t.useMemo(()=>l,Object.values(l));return(0,r.jsx)(c.Provider,{value:u,children:a})};return l.displayName=n+"Provider",[l,function(r,i){let l=i?.[e]?.[o]||s,c=t.useContext(l);if(c)return c;if(void 0!==a)return a;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return n.scopeName=r.scopeName,n}(a,...n)]}])},355293,e=>{"use strict";var t=e.i(369251),r=e.i(494610),n=e.i(978448),i=e=>{var i;let s,o,{present:l,children:c}=e,u=function(e){var r,i;let[s,o]=t.useState(),l=t.useRef(null),c=t.useRef(e),u=t.useRef("none"),[d,f]=(r=e?"mounted":"unmounted",i={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>i[e][t]??e,r));return t.useEffect(()=>{let e=a(l.current);u.current="mounted"===d?e:"none"},[d]),(0,n.useLayoutEffect)(()=>{let t=l.current,r=c.current;if(r!==e){let n=u.current,i=a(t);e?f("MOUNT"):"none"===i||t?.display==="none"?f("UNMOUNT"):r&&n!==i?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,n.useLayoutEffect)(()=>{if(s){let e,t=s.ownerDocument.defaultView??window,r=r=>{let n=a(l.current).includes(CSS.escape(r.animationName));if(r.target===s&&n&&(f("ANIMATION_END"),!c.current)){let r=s.style.animationFillMode;s.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===s.style.animationFillMode&&(s.style.animationFillMode=r)})}},n=e=>{e.target===s&&(u.current=a(l.current))};return s.addEventListener("animationstart",n),s.addEventListener("animationcancel",r),s.addEventListener("animationend",r),()=>{t.clearTimeout(e),s.removeEventListener("animationstart",n),s.removeEventListener("animationcancel",r),s.removeEventListener("animationend",r)}}f("ANIMATION_END")},[s,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:t.useCallback(e=>{l.current=e?getComputedStyle(e):null,o(e)},[])}}(l),d="function"==typeof c?c({present:u.isPresent}):t.Children.only(c),f=(0,r.useComposedRefs)(u.ref,(i=d,(o=(s=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?i.ref:(o=(s=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?i.props.ref:i.props.ref||i.ref));return"function"==typeof c||u.isPresent?t.cloneElement(d,{ref:f}):null};function a(e){return e?.animationName||"none"}i.displayName="Presence",e.s(["Presence",0,i])},130312,474795,e=>{"use strict";var t=e.i(369251),r=e.i(518330),n=e.i(494610),i=e.i(970093);function a(e){var r;let a,s=(r=e,(a=t.forwardRef((e,r)=>{let{children:i,...a}=e;if(t.isValidElement(i)){var s;let e,o,l=(s=i,(o=(e=Object.getOwnPropertyDescriptor(s.props,"ref")?.get)&&"isReactWarning"in e&&e.
2isReactWarning)?s.ref:(o=(e=Object.getOwnPropertyDescriptor(s,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?s.props.ref:s.props.ref||s.ref),c=function(e,t){let r={...t};for(let n in t){let i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...a}:"className"===n&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}(a,i.props);return i.type!==t.Fragment&&(c.ref=r?(0,n.composeRefs)(r,l):l),t.cloneElement(i,c)}return t.Children.count(i)>1?t.Children.only(null):null})).displayName=`${r}.SlotClone`,a),l=t.forwardRef((e,r)=>{let{children:n,...a}=e,l=t.Children.toArray(n),c=l.find(o);if(c){let e=c.props.children,n=l.map(r=>r!==c?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,i.jsx)(s,{...a,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,i.jsx)(s,{...a,ref:r,children:n})});return l.displayName=`${e}.Slot`,l}var s=Symbol("radix.slottable");function o(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}e.s(["createSlot",0,a,"createSlottable",0,function(e){let t=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=s,t}],474795);var l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let n=a(`Primitive.${r}`),s=t.forwardRef((e,t)=>{let{asChild:a,...s}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(a?n:r,{...s,ref:t})});return s.displayName=`Primitive.${r}`,{...e,[r]:s}},{});e.s(["Primitive",0,l,"dispatchDiscreteCustomEvent",0,function(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}],130312)},636098,e=>{"use strict";var t=e.i(369251),r=e.i(978448);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var n=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,function({prop:e,defaultProp:r,onChange:i=()=>{},caller:a}){let[s,o,l]=function({defaultProp:e,onChange:r}){let[i,a]=t.useState(e),s=t.useRef(i),o=t.useRef(r);return n(()=>{o.current=r},[r]),t.useEffect(()=>{s.current!==i&&(o.current?.(i),s.current=i)},[i,s]),[i,a,o]}({defaultProp:r,onChange:i}),c=void 0!==e,u=c?e:s;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${a} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=c},[c,a])}return[u,t.useCallback(t=>{if(c){let r="function"==typeof t?t(e):t;r!==e&&l.current?.(r)}else o(t)},[c,e,o,l])]}],636098)},978448,e=>{"use strict";var t=e.i(369251),r=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,r])},337741,e=>{"use strict";var t=e.i(369251);e.s(["usePrevious",0,function(e){let r=t.useRef({value:e,previous:e});return t.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}])},473864,e=>{"use strict";var t=e.i(369251),r=e.i(978448);e.s(["useSize",0,function(e){let[n,i]=t.useState(void 0);return(0,r.useLayoutEffect)(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,n;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,n=t.blockSize}else r=e.offsetWidth,n=e.offsetHeight;i({width:r,height:n})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}i(void 0)},[e]),n}])},393846,546878,e=>{"use strict";var t=e.i(369251);let r=(0,t.createContext)(null);function n({clientId:e,nonce:i,locale:a,onScriptLoadSuccess:s,onScriptLoadError:o,children:l}){let c=function(e={}){let{nonce:r,locale:n,onScriptLoadSuccess:i,onScriptLoadError:a}=e,[s,o]=(0,t.useState)(!1),l=(0,t.useRef)(i);l.current=i;let c=(0,t.useRef)(a);return c.current=a,(0,t.useEffect)(()=>{let e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",n&&(e.src+=`?hl=${n}`),e.async=!0,e.defer=!0,e.nonce=r,e.onload=()=>{var e;o(!0),null==(e=l.current)||e.call(l)},e.onerror=()=>{var e;o(!1),null==(e=c.current)||e.call(c)},document.body.appendChild(e),()=>{document.body.removeChild(e)}},[r]),s}({nonce:i,onScriptLoadSuccess:s,onScriptLoadError:o,locale:a}),u=(0,t.useMemo)(()=>({locale:a,clientId:e,scriptLoadedSuccessfully:c}),[e,c]);return t.default.createElement(r.Provider,{value:u},l)}e.s(["GoogleOAuthProvider",0,n,"useGoogleLogin",0,function({flow:e="implicit",scope:n="",onSuccess:i,onError:a,onNonOAuthError:s,overrideScope:o,state:l,...c}){let{clientId:u,scriptLoadedSuccessfully:d}=function(){let e=(0,t.useContext)(r);if(!e)throw Error("Google OAuth components must be used within GoogleOAuthProvider");return e}(),f=(0,t.useRef)(),p=(0,t.useRef)(i);p.current=i;let m=(0,t.useRef)(a);m.current=a;let h=(0,t.useRef)(s);h.current=s,(0,t.useEffect)(()=>{var t,r;if(!d)return;let i="implicit"===e?"initTokenClient":"initCodeClient";f.current=null==(r=null==(t=null==window?void 0:window.google)?void 0:t.accounts)?void 0:r.oauth2[i]({client_id:u,scope:o?n:`openid profile email ${n}`,callback:e=>{var t,r;if(e.error)return null==(t=m.current)?void 0:t.call(m,e);null==(r=p.current)||r.call(p,e)},error_callback:e=>{var t;null==(t=h.current)||t.call(h,e)},state:l,...c})},[u,d,e,n,l]);let g=(0,t.useCallback)(e=>{var t;return null==(t=f.current)?void 0:t.requestAccessToken(e)},[]),v=(0,t.useCallback)(()=>{var e;return null==(e=f.current)?void 0:e.requestCode()},[]);return"implicit"===e?g:v}],393846);var i=e.i(970093),a=e.i(225931);let s=e.i(770120).clientEnv.GOOGLE_CLIENT_ID||"";e.s(["GoogleOAuthProvider",0,function(e){let t,r=(0,a.c)(2),{children:o}=e;return r[0]!==o?(t=(0,i.jsx)(n,{clientId:s||"placeholder",children:o}),r[0]=o,r[1]=t):t=r[1],t}],546878)},69807,726495,e=>{"use strict";let t=(0,e.i(379581).default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);e.s(["default",0,t],726495),e.s(["Bot",0,t],69807)},499886,e=>{"use strict";let t=(0,e.i(379581).default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);e.s(["default",0,t])},671992,e=>{"use strict";var t=e.i(499886);e.s(["EyeOff",()=>t.default])},64228,e=>{"use strict";let t=(0,e.i(379581).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["default",0,t])},426949,e=>{"use strict";var t=e.i(64228);e.s(["Eye",()=>t.default])},630009,12312,e=>{"use strict";let t=(0,e.i(379581).default)("folder-kanban",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]]);e.s(["default",0,t],12312),e.s(["FolderKanban",0,t],630009)},191858,941199,e=>{"use strict";let t=(0,e.i(379581).default)("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}
2]]);e.s(["default",0,t],941199),e.s(["Folder",0,t],191858)},358775,460368,e=>{"use strict";let t=(0,e.i(379581).default)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);e.s(["default",0,t],460368),e.s(["GraduationCap",0,t],358775)},787776,5361,e=>{"use strict";let t=(0,e.i(379581).default)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);e.s(["default",0,t],5361),e.s(["LayoutGrid",0,t],787776)},640457,467603,e=>{"use strict";let t=(0,e.i(379581).default)("message-square-text",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]]);e.s(["default",0,t],467603),e.s(["MessageSquareText",0,t],640457)},840684,223958,e=>{"use strict";let t=(0,e.i(379581).default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);e.s(["default",0,t],223958),e.s(["Users",0,t],840684)},374575,575756,e=>{"use strict";let t=(0,e.i(379581).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["default",0,t],575756),e.s(["Zap",0,t],374575)},494004,876009,e=>{"use strict";let t={current:null},r={current:!1};e.s(["hasReducedMotionListener",0,r,"prefersReducedMotion",0,t],876009);let n="u">typeof window;e.s(["initPrefersReducedMotion",0,function(){if(r.current=!0,n)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),r=()=>t.current=e.matches;e.addEventListener("change",r),r()}else t.current=!1}],494004)},947716,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={callServer:function(){return a.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(597161),s=e.r(232044),o=e.r(801108)},372866,e=>{"use strict";var t=e.i(947716);let r=(0,t.createServerReference)("406543ad0ed4192ba0df3c6b28e5d8226f47dbfbbd",t.callServer,void 0,t.findSourceMapURL,"getPublicInvitationById");e.s(["getPublicInvitationById",0,r])},264942,e=>{"use strict";var t=e.i(970093),r=e.i(225931),n=e.i(519455),i=e.i(120851),a=e.i(175609),s=e.i(177527),o=e.i(647091);e.s(["SocialAuthButtons",0,function(e){let l,c,u,d,f,p,m,h=(0,r.c)(24),{mode:g,onGoogle:v,onMicrosoft:y,disabled:x,googleLoading:b,microsoftLoading:k}=e,w=void 0!==x&&x,S=void 0!==b&&b,_=void 0!==k&&k,{t:N}=(0,s.useI18n)(),E=`auth.${g}.submitting`;h[0]!==N||h[1]!==E?(l=N(E),h[0]=N,h[1]=E,h[2]=l):l=h[2];let C=l;h[3]!==g||h[4]!==N?(c=N("login"===g?"auth.login.loginWithGoogle":"auth.signup.signUpWithGoogle"),h[3]=g,h[4]=N,h[5]=c):c=h[5];let I=c;h[6]!==g||h[7]!==N?(u=N("login"===g?"auth.login.loginWithMicrosoft":"auth.signup.signUpWithMicrosoft"),h[6]=g,h[7]=N,h[8]=u):u=h[8];let j=u,T=w||S;h[9]===Symbol.for("react.memo_cache_sentinel")?(d=(0,t.jsx)(a.GoogleIcon,{className:"mr-2 h-4 w-4"}),h[9]=d):d=h[9];let A=S?C:I;return h[10]!==v||h[11]!==A||h[12]!==T?(f=(0,t.jsxs)(n.Button,{variant:"outline",type:"button",className:i.AUTH_SOCIAL_BUTTON_CLASS,onClick:v,disabled:T,children:[d,A]}),h[10]=v,h[11]=A,h[12]=T,h[13]=f):f=h[13],h[14]!==C||h[15]!==w||h[16]!==S||h[17]!==j||h[18]!==_||h[19]!==y?(p=(0,o.isMicrosoftLoginConfigured)()&&(0,t.jsxs)(n.Button,{variant:"outline",type:"button",className:i.AUTH_SOCIAL_BUTTON_CLASS,onClick:y,disabled:w||S||_,children:[(0,t.jsx)(a.MicrosoftIcon,{className:"mr-2 h-4 w-4"}),_?C:j]}),h[14]=C,h[15]=w,h[16]=S,h[17]=j,h[18]=_,h[19]=y,h[20]=p):p=h[20],h[21]!==f||h[22]!==p?(m=(0,t.jsxs)(t.Fragment,{children:[f,p]}),h[21]=f,h[22]=p,h[23]=m):m=h[23],m}])},175609,e=>{"use strict";var t=e.i(970093),r=e.i(225931);e.s(["GoogleIcon",0,function(e){let n,i,a,s,o,l=(0,r.c)(6),{className:c}=e,u=void 0===c?"h-4 w-4":c;return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),i=(0,t.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),a=(0,t.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),s=(0,t.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"}),l[0]=n,l[1]=i,l[2]=a,l[3]=s):(n=l[0],i=l[1],a=l[2],s=l[3]),l[4]!==u?(o=(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:u,"aria-hidden":"true",children:[n,i,a,s]}),l[4]=u,l[5]=o):o=l[5],o},"MicrosoftIcon",0,function(e){let n,i,a,s,o,l=(0,r.c)(6),{className:c}=e,u=void 0===c?"h-4 w-4":c;return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsx)("path",{fill:"#f25022",d:"M1 1h10v10H1z"}),i=(0,t.jsx)("path",{fill:"#7fba00",d:"M12 1h10v10H12z"}),a=(0,t.jsx)("path",{fill:"#00a4ef",d:"M1 12h10v10H1z"}),s=(0,t.jsx)("path",{fill:"#ffb900",d:"M12 12h10v10H12z"}),l[0]=n,l[1]=i,l[2]=a,l[3]=s):(n=l[0],i=l[1],a=l[2],s=l[3]),l[4]!==u?(o=(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 23 23",className:u,"aria-hidden":"true",children:[n,i,a,s]}),l[4]=u,l[5]=o):o=l[5],o}])},873020,e=>{"use strict";var t=e.i(970093),r=e.i(225931),n=e.i(369251),i=e.i(867434),a=e.i(393846),s=e.i(546878),o=(0,n.forwardRef)(({as:e="div",...r},n)=>(0,t.jsx)(e,{...r,ref:n}));let l="onloadTurnstileCallback",c={normal:{width:300,height:65},compact:{width:150,height:140},invisible:{width:0,height:0,overflow:"hidden"},flexible:{minWidth:300,width:"100%",height:65},interactionOnly:{width:"fit-content",height:"auto",display:"flex"}},u="unloaded",d,f=new Promise((e,t)=>
2{d={resolve:e,reject:t},"ready"===u&&e(void 0)}),p=(e=l)=>("unloaded"===u&&(u="loading",window[e]=()=>{d.resolve(),u="ready",delete window[e]}),f),m=(0,n.forwardRef)((e,r)=>{let{scriptOptions:i,options:a={},siteKey:s,onWidgetLoad:d,onSuccess:f,onExpire:m,onError:h,onBeforeInteractive:g,onAfterInteractive:v,onUnsupported:y,onTimeout:x,onLoadScript:b,id:k,style:w,as:S="div",injectScript:_=!0,rerenderOnCallbackChange:N=!1,...E}=e,C=a.size,I=(0,n.useCallback)(()=>void 0===C?{}:"execute"===a.execution?c.invisible:"interaction-only"===a.appearance?c.interactionOnly:c[C],[a.execution,C,a.appearance]),[j,T]=(0,n.useState)(I()),A=(0,n.useRef)(null),[L,R]=(0,n.useState)(!1),M=(0,n.useRef)(void 0),P=(0,n.useRef)(!1),O=k||"cf-turnstile",U=(0,n.useRef)({onSuccess:f,onError:h,onExpire:m,onBeforeInteractive:g,onAfterInteractive:v,onUnsupported:y,onTimeout:x});(0,n.useEffect)(()=>{N||(U.current={onSuccess:f,onError:h,onExpire:m,onBeforeInteractive:g,onAfterInteractive:v,onUnsupported:y,onTimeout:x})});let F=i?.id||"cf-turnstile-script",D=function(e="cf-turnstile-script"){let[t,r]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let t=()=>{document.getElementById(e)&&r(!0)},n=new MutationObserver(t);return n.observe(document,{childList:!0,subtree:!0}),t(),()=>{n.disconnect()}},[e]),t}(F),H=i?.onLoadCallbackName||"onloadTurnstileCallback",z=a.appearance||"always",B=(0,n.useMemo)(()=>({sitekey:s,action:a.action,cData:a.cData,theme:a.theme||"auto",language:a.language||"auto",tabindex:a.tabIndex,"response-field":a.responseField,"response-field-name":a.responseFieldName,size:function(e){if("invisible"!==e&&"interactionOnly"!==e)return e}(C),retry:a.retry||"auto","retry-interval":a.retryInterval||8e3,"refresh-expired":a.refreshExpired||"auto","refresh-timeout":a.refreshTimeout||"auto",execution:a.execution||"render",appearance:a.appearance||"always","feedback-enabled":a.feedbackEnabled??!0,callback:e=>{P.current=!0,N?f?.(e):U.current.onSuccess?.(e)},"error-callback":N?h:(...e)=>U.current.onError?.(...e),"expired-callback":N?m:(...e)=>U.current.onExpire?.(...e),"before-interactive-callback":N?g:(...e)=>U.current.onBeforeInteractive?.(...e),"after-interactive-callback":N?v:(...e)=>U.current.onAfterInteractive?.(...e),"unsupported-callback":N?y:(...e)=>U.current.onUnsupported?.(...e),"timeout-callback":N?x:(...e)=>U.current.onTimeout?.(...e)}),[a.action,a.appearance,a.cData,a.execution,a.language,a.refreshExpired,a.responseField,a.responseFieldName,a.retry,a.retryInterval,a.tabIndex,a.theme,a.feedbackEnabled,a.refreshTimeout,s,C,N,N?f:null,N?h:null,N?m:null,N?g:null,N?v:null,N?y:null,N?x:null]),$=(0,n.useCallback)(()=>"u">typeof window&&!!window.turnstile,[]);return(0,n.useEffect)(function(){_&&!L&&(p(H),(({render:e="explicit",onLoadCallbackName:t=l,scriptOptions:{nonce:r="",defer:n=!0,async:i=!0,id:a="",appendTo:s,onError:o,crossOrigin:c=""}={}})=>{let u=a||"cf-turnstile-script";
2if(document.getElementById(u))return;let d=document.createElement("script");d.id=u,d.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?onload=${t}&render=${e}`,document.querySelector(`script[src="${d.src}"]`)||(d.defer=!!n,d.async=!!i,r&&d.setAttribute("nonce",r),c&&(d.crossOrigin=c),o&&(d.onerror=o,delete window[t]),("body"===s?document.body:document.getElementsByTagName("head")[0]).appendChild(d))})({onLoadCallbackName:H,scriptOptions:{...i,id:F}}))},[_,L,i,F,H]),(0,n.useEffect)(function(){"ready"!==u&&p(H).then(()=>R(!0)).catch(console.error)},[H]),(0,n.useEffect)(function(){if(!A.current||!L)return;let e=!1;return(async()=>{e||!A.current||(M.current=window.turnstile.render(A.current,B),M.current&&d?.(M.current))})(),()=>{e=!0,M.current&&(window.turnstile.remove(M.current),P.current=!1)}},[O,L,B]),(0,n.useImperativeHandle)(r,()=>{let{turnstile:e}=window;return{getResponse:()=>e?.getResponse&&M.current&&$()?e.getResponse(M.current):void console.warn("Turnstile has not been loaded"),getResponsePromise:async(e=3e4,t=100)=>new Promise((r,n)=>{let i,a=async()=>{if(P.current&&window.turnstile&&M.current)try{let e=window.turnstile.getResponse(M.current);return i&&clearTimeout(i),e?r(e):n(Error("No response received"))}catch(e){return i&&clearTimeout(i),console.warn("Failed to get response",e),n(Error("Failed to get response"))}i||=setTimeout(()=>{i&&clearTimeout(i),n(Error("Timeout"))},e),await new Promise(e=>setTimeout(e,t)),await a()};a()}),reset(){if(!e?.reset||!M.current||!$())return void console.warn("Turnstile has not been loaded");"execute"===a.execution&&T(c.invisible);try{P.current=!1,e.reset(M.current)}catch(e){console.warn(`Failed to reset Turnstile widget ${M.current}`,e)}},remove(){e?.remove&&M.current&&$()?(T(c.invisible),P.current=!1,e.remove(M.current),M.current=null):console.warn("Turnstile has not been loaded")},render(){if(!e?.render||!A.current||!$()||M.current)return void console.warn("Turnstile has not been loaded or container not found");let t=e.render(A.current,B);return M.current=t,M.current&&d?.(M.current),"execute"!==a.execution&&T(C?c[C]:{}),t},execute(){"execute"!==a.execution?console.warn('Execution mode is not set to "execute"'):e?.execute&&A.current&&M.current&&$()?(e.execute(A.current),T(C?c[C]:{})):console.warn("Turnstile has not been loaded or container not found")},isExpired:()=>e?.isExpired&&M.current&&$()?e.isExpired(M.current):(console.warn("Turnstile has not been loaded"),!1)}},[M,a.execution,C,B,A,$,L,d]),(0,n.useEffect)(()=>{if(L||!D)return;if(window.turnstile)return void R(!0);let e=setInterval(()=>{window.turnstile&&(R(!0),clearInterval(e))},50);return()=>{clearInterval(e)}},[L,D]),(0,n.useEffect)(()=>{T(I())},[a.execution,C,z]),(0,n.useEffect)(()=>{D&&"function"==typeof b&&b()},[D]),(0,t.jsx)(o,{ref:A,as:S,id:O,style:{...j,...w},...E})});m.displayName="Turnstile";var h=e.i(975157),g=e.i(519455),v=e.i(302747),y=e.i(542450),x=e.i(793479),b=e.i(37038),k=e.i(59497),w=e.i(110204),S=e.i(635790),_=e.i(700482),N=e.i(177527),E=e.i(783586),C=e.i(439199),I=e.i(759442),j=e.i(770120);e.i(44570);var T=e.i(749492),A=e.i(647091),L=e.i(264942),R=e.i(372866),M=e.i(360871),P=e.i(446275),O=e.i(483968);let U=/(https?:\/\/|www\.|bit\.ly|(?<!\w)t\.co(?!\w)|tinyurl|goo\.gl|->|â|â¨|ð°|ð|ð°|\bbonus\b|\bkazan\b)/i,F=/^(?:[\p{L}\p{M}]|[\s\-'.])+$/u;function D(e){return e.normalize("NFC").replace(/[ââʼ]/g,"'").replace(/[â-â]/g,"-").replace(/\s+/g," ").trim()}var H=e.i(120851);let z={firstName:"firstName",lastName:"lastName",email:"email",password:"password",confirmPassword:"confirm-password"},B=Object.keys(z);function $(e){return B.find(t=>e[t])??null}let V={empty:"auth.validation.nameRequired",tooLong:"auth.validation.nameTooLong",blocked:"auth.validation.nameBlocked",invalid:"auth.validation.nameInvalid"};function q({className:e,...r}){let s=(0,i.useRouter)(),o=(0,i.useSearchParams)(),l=o.get("invitation"),c=l?null:o.get("link"),u=o.get("email"),{signUp:d,signInWithGoogleCode:f,isLoading:p,error:B}=(0,_.useAuth)(),{resolvedTheme:W}=(0,S.useTheme)(),{t:G,locale:K,isHydrated:X}
2=(0,N.useI18n)(),[Z,Y]=(0,n.useState)(""),[J,Q]=(0,n.useState)(""),[ee,et]=(0,n.useState)(!1),[er,en]=(0,n.useState)(u||""),[ei,ea]=(0,n.useState)(""),[es,eo]=(0,n.useState)(""),[el,ec]=(0,n.useState)(!1),[eu,ed]=(0,n.useState)(!1),[ef,ep]=(0,n.useState)(!1),[em,eh]=(0,n.useState)(null),[eg,ev]=(0,n.useState)({}),ey=(0,n.useRef)(null),[ex,eb]=(0,n.useState)(0),ek=e=>{e&&(ey.current=e,eb(e=>e+1))},ew=e=>ev(t=>t[e]?{...t,[e]:void 0}:t),eS=(0,n.useRef)(null),e_=j.clientEnv.TURNSTILE_SITE_KEY;e_||console.warn("[signup] NEXT_PUBLIC_TURNSTILE_SITE_KEY is not set â Turnstile widget disabled.");let eN=!!u;(0,n.useEffect)(()=>{(0,C.captureLandingPageTracking)()},[]),(0,n.useEffect)(()=>{let e=ey.current;if(!e)return;let t=document.getElementById(z[e]);t?.focus({preventScroll:!0}),t?.scrollIntoView({block:"center",behavior:"smooth"})},[ex]),(0,n.useEffect)(()=>{if(!l)return;let e=!1;return(0,R.getPublicInvitationById)(l).then(t=>{!e&&t?.invited_first_name&&(Y(t.invited_first_name),Q(t.invited_last_name??""),et(!0))}).catch(()=>{}),()=>{e=!0}},[l]);let eE=e=>{let t,r=(t=e.trim())?t.length>50?"tooLong":U.test(t)?"blocked":F.test(t)?null:"invalid":"empty";return r?G(V[r],{max:50}):void 0},eC=async e=>{e.preventDefault(),E.toast.dismiss();let t=D(Z),r=D(J);t!==Z&&Y(t),r!==J&&Q(r);let n={};n.firstName=eE(t),n.lastName=eE(r),er.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(er.trim())||(n.email=G("auth.validation.emailInvalid")):n.email=G("auth.validation.emailRequired"),ei?ei.length<O.PASSWORD_MIN_LENGTH?n.password=G("auth.validation.passwordTooShort"):ei.length>O.PASSWORD_MAX_LENGTH&&(n.password=G("auth.validation.passwordTooLong",{max:O.PASSWORD_MAX_LENGTH})):n.password=G("auth.validation.passwordRequired"),ei&&es!==ei&&(n.confirmPassword=G("auth.validation.passwordMismatch")),ev(n);let i=$(n);if(i){(n.firstName||n.lastName)&&et(!1),ek(i);return}if(!el)return void E.toast.error(G("auth.signup.termsRequired"));if(e_&&!em)return void E.toast.error(G("auth.signup.captchaRequired"));T.analyticsService.trackSignupStarted({provider:"email"});let a=await d(er,ei,t,r,K,el,el,em??void 0,c);if(a.success)T.analyticsService.trackSignupSuccess({provider:"email",has_invitation:!!l}),E.toast.success(G("auth.signup.success")),l&&localStorage.setItem("pending_invitation_id",l),(0,P.stashPendingInviteLinkToken)(c),sessionStorage.setItem("verify_email",er),s.push("/auth/verify-email");else{let e=(0,M.resolveAuthErrorMessage)(G,a);T.analyticsService.trackSignupFailed({provider:"email",error_code:a.errorCode,error_message:a.error||"signup_failed"});let t=(0,M.resolveSignupFieldErrors)(G,a.fieldErrors);Object.keys(t.fields).length>0?((t.fields.firstName||t.fields.lastName)&&et(!1),ev(e=>({...e,...t.fields})),ek($(t.fields)),t.hasUnanchored&&E.toast.error(G("auth.errors.invalidInput"))):"AUTH_WEAK_PASSWORD"===a.errorCode?(ev(t=>({...t,password:e})),ek("password")):"VALIDATION_FAILED"===a.errorCode?E.toast.error(G("auth.errors.invalidInput")):E.toast.error(e),eS.current?.reset(),eh(null)}},eI=(0,a.useGoogleLogin)({flow:"auth-code",scope:"openid email profile",onSuccess:async e=>{ed(!0),T.analyticsService.trackSignupStarted({provider:"google"});try{let t=await f(e.code);if(t.success){if(T.analyticsService.trackSignupSuccess({provider:"google",has_invitation:!!l}),E.toast.success(G("auth.login.googleSuccess")),er&&sessionStorage.setItem("onboarding_email",er),l&&localStorage.setItem("pending_invitation_id",l),(0,P.stashPendingInviteLinkToken)(c),t.needsTermsAcceptance)return void s.push("/auth/accept-terms");await (0,I.captureAcquisitionForCurrentUser)();let e=new URLSearchParams;l?e.set("invitation",l):c&&e.set("link",c);let r=e.toString();s.push(r?`/onboarding?${r}`:"/onboarding");return}T.analyticsService.trackSignupFailed({provider:"google",error_message:B??"google_failed"}),E.toast.error(B||G("auth.login.googleFailed"))}catch(e){T.analyticsService.trackSignupFailed({provider:"google",error_message:e instanceof Error?e.message:"google_exception"}),E.toast.error(G("auth.login.googleFailed"))}ed(!1)},onError:()=>{T.analyticsService.trackSignupFailed({provider:"google",error_message:B??"google_onerror"}),ed(!1),E.toast.error(B||G("auth.login.googleFailed"))}});return X?(0,t.jsx)("form",{className:(0,h.cn)("flex flex-col gap-6",e),onSubmit:eC,...r,children:(0,t.jsxs)(y.FieldGroup,{className:"gap-5",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5 text-center",children:[(0,t.jsx)("h1",{className:H.AUTH_HEADING_CLASS,
2children:G("auth.signup.title")}),(0,t.jsx)("p",{className:"text-muted-foreground text-sm text-balance",children:G("auth.signup.subtitle")})]}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsxs)(y.Field,{children:[(0,t.jsx)(y.FieldLabel,{htmlFor:"firstName",className:H.AUTH_LABEL_CLASS,children:G("auth.signup.firstName")}),(0,t.jsx)(x.Input,{id:"firstName",type:"text",placeholder:G("auth.signup.firstNamePlaceholder"),value:Z,onChange:e=>{Y(e.target.value),ew("firstName")},disabled:p||ee,required:!0,maxLength:50,autoComplete:"given-name","aria-invalid":!!eg.firstName,"aria-describedby":eg.firstName?"firstName-error":void 0,className:(0,h.cn)(H.AUTH_INPUT_CLASS,ee&&"bg-muted cursor-not-allowed")}),eg.firstName&&(0,t.jsx)("p",{id:"firstName-error",role:"alert",className:"text-sm text-destructive",children:eg.firstName})]}),(0,t.jsxs)(y.Field,{children:[(0,t.jsx)(y.FieldLabel,{htmlFor:"lastName",className:H.AUTH_LABEL_CLASS,children:G("auth.signup.lastName")}),(0,t.jsx)(x.Input,{id:"lastName",type:"text",placeholder:G("auth.signup.lastNamePlaceholder"),value:J,onChange:e=>{Q(e.target.value),ew("lastName")},disabled:p||ee,required:!0,maxLength:50,autoComplete:"family-name","aria-invalid":!!eg.lastName,"aria-describedby":eg.lastName?"lastName-error":void 0,className:(0,h.cn)(H.AUTH_INPUT_CLASS,ee&&"bg-muted cursor-not-allowed")}),eg.lastName&&(0,t.jsx)("p",{id:"lastName-error",role:"alert",className:"text-sm text-destructive",children:eg.lastName})]})]}),(0,t.jsxs)(y.Field,{children:[(0,t.jsx)(y.FieldLabel,{htmlFor:"email",className:H.AUTH_LABEL_CLASS,children:G("auth.signup.email")}),(0,t.jsx)(x.Input,{id:"email",type:"email",placeholder:G("auth.signup.emailPlaceholder"),value:er,onChange:e=>{en(e.target.value),ew("email")},disabled:p||eN,required:!0,autoComplete:"email","aria-invalid":!!eg.email,"aria-describedby":eg.email?"email-error":void 0,className:(0,h.cn)(H.AUTH_INPUT_CLASS,eN&&"bg-muted cursor-not-allowed")}),eg.email?(0,t.jsx)("p",{id:"email-error",role:"alert",className:"text-sm text-destructive",children:eg.email}):(0,t.jsx)(y.FieldDescription,{children:eN?G("auth.signup.emailLockedDescription"):G("auth.signup.emailDescription")})]}),(0,t.jsxs)(y.Field,{children:[(0,t.jsx)(y.FieldLabel,{htmlFor:"password",className:H.AUTH_LABEL_CLASS,children:G("auth.signup.password")}),(0,t.jsx)(b.PasswordInput,{id:"password",className:H.AUTH_INPUT_CLASS,value:ei,onChange:e=>{ea(e.target.value),ew("password"),ew("confirmPassword")},disabled:p,required:!0,autoComplete:"new-password","aria-invalid":!!eg.password,"aria-describedby":eg.password?"password-error":void 0}),eg.password?(0,t.jsx)("p",{id:"password-error",role:"alert",className:"text-sm text-destructive",children:eg.password}):(0,t.jsx)(y.FieldDescription,{children:G("auth.signup.passwordDescription")})]}),(0,t.jsxs)(y.Field,{children:[(0,t.jsx)(y.FieldLabel,{htmlFor:"confirm-password",className:H.AUTH_LABEL_CLASS,children:G("auth.signup.confirmPassword")}),(0,t.jsx)(b.PasswordInput,{id:"confirm-password",className:H.AUTH_INPUT_CLASS,value:es,onChange:e=>{eo(e.target.value),ew("confirmPassword")},disabled:p,required:!0,autoComplete:"new-password","aria-invalid":!!eg.confirmPassword,"aria-describedby":eg.confirmPassword?"confirm-password-error":void 0}),eg.confirmPassword?(0,t.jsx)("p",{id:"confirm-password-error",role:"alert",className:"text-sm text-destructive",children:eg.confirmPassword}):(0,t.jsx)(y.FieldDescription,{children:G("auth.signup.confirmPasswordDescription")})]}),(0,t.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,t.jsx)(k.Checkbox,{id:"terms-accepted",checked:el,onCheckedChange:e=>ec(!0===e),disabled:p}),(0,t.jsxs)(w.Label,{htmlFor:"terms-accepted",className:"text-sm leading-tight cursor-pointer",children:[G("auth.signup.termsLabel")," ",(0,t.jsx)("a",{href:"https://jayd.ai/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 text-primary hover:text-primary/80",children:G("auth.signup.termsLink")})," ",G("auth.signup.andText")," ",(0,t.jsx)("a",{href:"https://jayd.ai/privacy",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 text-primary hover:text-primary/80",children:G("auth.signup.privacyLink")})]})]}),(0,t.jsx)("p",{className:"text-muted-foreground text-xs",children:G("auth.signup.emailTransparency")}),e_&&(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)(m,{ref:eS,siteKey:e_,options:{theme:"dark"===W?"dark":"light",size:"flexible",language:K},onSuccess:eh,onExpire:()=>eh(null),onError:()=>eh(null)})}),(0,t.jsx)(y.Field,{children:(0,t.jsx)(g.Button,{type:"submit",className:H.AUTH_CTA_CLASS,disabled:p||!el||!!e_&&!em,children:p?G("auth.signup.submitting"):G("auth.signup.submit")})}),(0,t.jsx)(y.FieldSeparator,{children:G("auth.signup.orContinueWith")}),(0,t.jsxs)(y.Field,{children:[(0,t.jsx)(L.SocialAuthButtons,{mode:"signup",onGoogle:()=>eI(),onMicrosoft:()=>{l&&localStorage.setItem("pending_invitation_id",l),(0,P.stashPendingInviteLinkToken)(c),ep(!0),(0,A.startMicrosoftLogin)()},disabled:p,googleLoading:eu,microsoftLoading:ef}),(0,t.jsxs)(y.FieldDescription,{className:"px-6 text-center",children:[G("auth.signup.hasAccount")," ",(0,t.jsx)("a",{href:l?`/login?invitation=${l}`:c?`/login?link=${encodeURIComponent(c)}`:"/login",className:"text-accent-fg underline underline-offset-4 hover:opacity-85 dark:text-[#C4B5FD] dark:hover:text-[#DDD6FE] dark:hover:opacity-100",children:G("auth.signup.signIn")})]})]})]})}):(0,t.jsx)("div",{className:(0,h.cn)("flex flex-col gap-6",e),children:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(v.Skeleton,{className:"h-8 w-3/4 mx-auto"}),(0,t.jsx)(v.Skeleton,{className:"h-4 w-1/2 mx-auto"}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,t.jsx)(v.Skeleton,{className:"h-10"}),(0,t.jsx)(v.Skeleton,{className:"h-10"})]}),(0,t.jsx)(v.Skeleton,{className:"h-10"}),(0,t.jsx)(v.Skeleton,{className:"h-10"}),(0,t.jsx)(v.Skeleton,{className:"h-10"}),(0,t.jsx)(v.Skeleton,{className:"h-10"})]})})}e.s(["SignupForm",0,function(e){let n,i=(0,r.c)(2);return i[0]!==e?(n=(0,t.jsx)(s.GoogleOAuthProvider,{children:(0,t.jsx)(q,{...e})}),i[0]=e,i[1]=n):n=i[1],n}],873020)},59497,e=>{"use strict";var t=e.i(970093),r=e.i(225931),n=e.i(369251),i=e.i(494610),a=e.i(682115),s=e.i(291967),o=e.i(636098),l=e.i(337741),c=e.i(473864),u=e.i(355293),d=e.i(130312),f="Checkbox",[p,m]=(0,a.createContextScope)(f),[h,g]=p(f);function v(e){let{__scopeCheckbox:r,checked:i,children:a,defaultChecked:s,disabled:l,form:c,name:u,onCheckedChange:d,required:p,value:m="on",internal_do_not_use_render:g}=e,[v,y]=(0,o.useControllableState)({prop:i,defaultProp:s??!1,onChange:d,caller:f}),[x,b]=n.useState(null),[k,w]=n.useState(null),S=n.useRef(!1),_=!x||!!c||!!x.closest("form"),E={checked:v,disabled:l,setChecked:y,control:x,setControl:b,name:u,form:c,value:m,hasConsumerStoppedPropagationRef:S,required:p,defaultChecked:!N(s)&&s,isFormControl:_,bubbleInput:k,setBubbleInput:w};return(0,t.jsx)(h,{scope:r,...E,children:"function"==typeof g?g(E):a})}var y="CheckboxTrigger",x=n.forwardRef(({__scopeCheckbox:e,onKeyDown:r,onClick:a,...o},l)=>{let{control:c,value:u,disabled:f,checked:p,required:m,setControl:h,setChecked:v,hasConsumerStoppedPropagationRef:x,isFormControl:b,bubbleInput:k}=g(y,e),w=(0,i.useComposedRefs)(l,h),S=n.useRef(p);return n.useEffect(()=>{let e=c?.form;if(e){let t=()=>v(S.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[c,v]),(0,t.jsx)(d.Primitive.button,{type:"button",role:"checkbox","aria-checked":N(p)?"mixed":p,"aria-required":m,"data-state":E(p),"data-disabled":f?"":void 0,disabled:f,value:u,...o,ref:w,onKeyDown:(0,s.composeEventHandlers)(r,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,s.composeEventHandlers)(a,e=>{v(e=>!!N(e)||!e),k&&b&&(x.current=e.isPropagationStopped(),x.current||e.stopPropagation())})})});x.displayName=y;var b=n.forwardRef((e,r)=>{let{__scopeCheckbox:n,name:i,checked:a,defaultChecked:s,required:o,disabled:l,value:c,onCheckedChange:u,form:d,...f}=e;return(0,t.jsx)(v,{__scopeCheckbox:n,checked:a,defaultChecked:s,disabled:l,required:o,onCheckedChange:u,name:i,form:d,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x,{...f,ref:r,__scopeCheckbox:n}),e&&(0,t.jsx)(_,{__scopeCheckbox:n})]})})});b.displayName=f;var k="CheckboxIndicator",w=n.forwardRef((e,r)=>{let{__scopeCheckbox:n,forceMount:i,...a}=e,s=g(k,n);return(0,t.jsx)(u.Presence,{present:i||N(s.checked)||!0===s.checked,children:(0,t.jsx)(d.Primitive.span,{"data-state":E(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:r,style:{pointerEvents:"none",...e.style}})})});w.displayName=k;var S="CheckboxBubbleInput",_=n.forwardRef(({__scopeCheckbox:e,...r},a)=>{let{control:s,hasConsumerStoppedPropagationRef:o,checked:u,defaultChecked:f,required:p,disabled:m,name:h,value:v,form:y,bubbleInput:x,setBubbleInput:b}=g(S,e),k=(0,i.useComposedRefs)(a,b),w=(0,l.usePrevious)(u),_=(0,c.useSize)(s);n.useEffect(()=>{if(!x)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!o.current;if(w!==u&&e){let r=new Event("click",{bubbles:t});x.indeterminate=N(u),e.call(x,!N(u)&&u),x.dispatchEvent(r)}},[x,w,u,o]);let E=n.useRef(!N(u)&&u);return(0,t.jsx)(d.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??E.current,required:p,disabled:m,name:h,value:v,form:y,...r,tabIndex:-1,ref:k,style:{...r.style,..._,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function N(e){return"indeterminate"===e}function E(e){return N(e)?"indeterminate":e?"checked":"unchecked"}_.displayName=S;var C=e.i(407924),I=e.i(975157);e.s(["Checkbox",0,function(e){let n,i,a,s,o,l,c=(0,r.c)(11);return c[0]!==e?({className:n,ref:a,...i}=e,c[0]=e,c[1]=n,c[2]=i,c[3]=a):(n=c[1],i=c[2],a=c[3]),c[4]!==n?(s=(0,I.cn)("peer h-4 w-4 shrink-0 rounded-xs border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n),c[4]=n,c[5]=s):s=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)(w,{className:(0,I.cn)("flex items-center justify-center text-current"),children:(0,t.jsx)(C.Check,{className:"h-4 w-4"})}),c[6]=o):o=c[6],c[7]!==i||c[8]!==a||c[9]!==s?(l=(0,t.jsx)(b,{ref:a,className:s,...i,children:o}),c[7]=i,c[8]=a,c[9]=s,c[10]=l):l=c[10],l}],59497)},37038,e=>{"use strict";var t=e.i(970093),r=e.i(225931),n=e.i(369251),i=e.i(426949),a=e.i(671992),s=e.i(793479),o=e.i(519455),l=e.i(975157),c=e.i(177527);function u(e){return!e}e.s(["PasswordInput",0,function(e){let d,f,p,m,h,g,v,y,x,b,k,w=(0,r.c)(25);w[0]!==e?({className:d,ref:p,...f}=e,w[0]=e,w[1]=d,w[2]=f,w[3]=p):(d=w[1],f=w[2],p=w[3]);let{t:S}=(0,c.useI18n)(),[_,N]=n.useState(!1);w[4]!==S?(m=S("auth.passwordToggle.show"),w[4]=S,w[5]=m):m=w[5];let E=m;w[6]!==S?(h=S("auth.passwordToggle.hide"),w[6]=S,w[7]=h):h=w[7];let C=h,I=_?"text":"password";w[8]!==d?(g=(0,l.cn)("pr-10",d),w[8]=d,w[9]=g):g=w[9],w[10]!==f||w[11]!==p||w[12]!==I||w[13]!==g?(v=(0,t.jsx)(s.Input,{ref:p,type:I,className:g,...f}),w[10]=f,w[11]=p,w[12]=I,w[13]=g,w[14]=v):v=w[14],w[15]===Symbol.for("react.memo_cache_sentinel")?(y=()=>N(u),w[15]=y):y=w[15];let j=_?C:E,T=_?C:E;return w[16]!==_?(x=_?(0,t.jsx)(a.EyeOff,{className:"h-4 w-4"}):(0,t.jsx)(i.Eye,{className:"h-4 w-4"}),w[16]=_,w[17]=x):x=w[17],w[18]!==j||w[19]!==T||w[20]!==x?(b=(0,t.jsx)(o.Button,{type:"button",variant:"ghost",size:"icon",tabIndex:-1,onClick:y,"aria-label":j,title:T,className:"absolute right-0 top-0 h-full px-3 text-muted-foreground hover:bg-transparent hover:text-foreground",children:x}),w[18]=j,w[19]=T,w[20]=x,w[21]=b):b=w[21],w[22]!==b||w[23]!==v?(k=(0,t.jsxs)("div",{className:"relative",children:[v,b]}),w[22]=b,w[23]=v,w[24]=k):k=w[24],k}])},759442,e=>{"use strict";var t=e.i(817422),r=e.i(947716);let n=(0,r.createServerReference)("40c30c125bf13f094a854fa967e83048e1097162dd",r.callServer,void 0,r.findSourceMapURL,"recordAcquisition");var i=e.i(439199),a=e.i(778497);let s="jaydai_resolved_campaign",o="jaydai_acquisition_recorded",l=t.z.enum(["template","skill","learning","mini_app"]),c=t.z.string().transform(e=>e),u=t.z.object({id:t.z.string().transform(e=>e),slug:t.z.string(),name:t.z.string(),description:t.z.string().nullable(),hero_content_type:l,hero_id:c,bonus_content:t.z.array(t.z.object({type:l,id:c})),landing_message:t.z.record(t.z.string(),t.z.string())});async function d(){if("true"===localStorage.getItem(o))return f();try{let e,t={utm_source:(e=(0,i.getUTMParams)()??{}).utm_source??null,utm_medium:e.utm_medium??null,utm_campaign:e.utm_campaign??null,utm_content:e.utm_content??null,utm_term:e.utm_term??null,gclid:e.gclid??null,fbclid:e.fbclid??null,li_fat_id:e.li_fat_id??null,landing_client_id:(0,i.getLandingClientId)(),referrer_url:"u">typeof document&&document.referrer||null,landing_url:window.location.href,touch_type:"signup"},r=await n(t);if(localStorage.setItem(o,"true"),r?.resolved_campaign)return localStorage.setItem(s,JSON.stringify(r.resolved_campaign)),r.resolved_campaign;return null}catch(e){return a.logger.error("[captureAcquisition] Failed:",e),null}}function f(){let e=localStorage.getItem(s);if(!e)return null;try{let t=u.safeParse(JSON.parse(e));return t.success?t.data:null}catch{return null}}e.s(["captureAcquisitionForCurrentUser",0,d,"getStoredResolvedCampaign",0,f],759442)},360871,e=>{"use strict";let t={AUTH_FAILED:"auth.login.invalidCredentials",AUTH_WEAK_PASSWORD:"auth.errors.weakPassword",AUTH_UPSTREAM_UNAVAILABLE:"auth.errors.upstreamUnavailable",AUTH_SSO_REQUIRED:"auth.sso.required",AUTH_SSO_NOT_INVITED:"auth.sso.notInvited",RATE_LIMIT_EXCEEDED:"auth.errors.tooManyAttempts"},r={first_name:"firstName",last_name:"lastName",email:"email",password:"password"},n={firstName:"auth.validation.nameInvalid",lastName:"auth.validation.nameInvalid",email:"auth.validation.emailInvalid",password:"auth.validation.passwordLength"};e.s(["resolveAuthErrorMessage",0,function(e,r){return e((r.errorCode?t[r.errorCode]:void 0)??"auth.errors.generic")},"resolveSignupFieldErrors",0,function(e,t){let i={},a=!1;for(let s of Object.keys(t??{})){let t=r[s];if(!t){a=!0;continue}i[t]=e(n[t])}return{fields:i,hasUnanchored:a}}])},647091,e=>{"use strict";var t=e.i(770120);let r=t.clientEnv.MICROSOFT_CLIENT_ID||"",n=t.clientEnv.MICROSOFT_TENANT||"common",i="ms_oauth_state",a="ms_return_url";function s(){return`${window.location.origin}/auth/microsoft/callback`}e.s(["consumeMicrosoftOAuthState",0,function(){let e=sessionStorage.getItem(i),t=sessionStorage.getItem(a);return sessionStorage.removeItem(i),sessionStorage.removeItem(a),{expectedState:e,returnUrl:t}},"getMicrosoftRedirectUri",0,s,"isMicrosoftLoginConfigured",0,function(){return!!r},"startMicrosoftLogin",0,function(e){let t=crypto.randomUUID();sessionStorage.setItem(i,t),e?sessionStorage.setItem(a,e):sessionStorage.removeItem(a);let o=new URLSearchParams({client_id:r,response_type:"code",redirect_uri:s(),response_mode:"query",scope:"openid email profile",prompt:"select_account",state:t});window.location.href=`https://login.microsoftonline.com/${n}/oauth2/v2.0/authorize?${o.toString()}`}])},483968,e=>{"use strict";e.s(["PASSWORD_MAX_LENGTH",0,128,"PASSWORD_MIN_LENGTH",0,12])},446275,e=>{"use strict";let t="pending_invite_link_token",r=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function n(e){return!!(e&&r.test(e))}e.s(["clearPendingInviteLinkToken",0,function(){try{localStorage.removeItem(t)}catch{}},"consumePendingInviteLinkToken",0,function(){try{let e=localStorage.getItem(t);return localStorage.removeItem(t),n(e)?e:null}catch{return null}},"stashPendingInviteLinkToken",0,function(e){if(n(e))try{localStorage.setItem(t,e)}catch{}}])},850003,e=>{"use strict";var t=e.i(69807),r=e.i(191858),n=e.i(630009),i=e.i(358775),a=e.i(787776),s=e.i(640457),o=e.i(374575),l=e.i(915530);let c={template:{labelKey:"dashboard.kind.template",short:"PRP",icon:s.MessageSquareText,token:"kind-template",cssVar:"var(--kind-template-color)",softCssVar:"var(--kind-template-soft)",darkCssVar:"var(--kind-template-dark)",href:({id:e})=>(0,l.internalRoute)(`/prompts?id=${e}`)},skill:{labelKey:"dashb
2oard.kind.skill",short:"SKL",icon:o.Zap,token:"kind-skill",cssVar:"var(--kind-skill-color)",softCssVar:"var(--kind-skill-soft)",darkCssVar:"var(--kind-skill-dark)",href:({id:e})=>(0,l.internalRoute)(`/prompts?id=${e}&kind=skill`)},learning:{labelKey:"dashboard.kind.learning",short:"LRN",icon:i.GraduationCap,token:"kind-learning",cssVar:"var(--kind-learning-color)",softCssVar:"var(--kind-learning-soft)",darkCssVar:"var(--kind-learning-dark)",href:({id:e,slug:t})=>(0,l.internalRoute)(`/learning/${t||e}`)},app:{labelKey:"dashboard.kind.app",short:"APP",icon:a.LayoutGrid,token:"kind-app",cssVar:"var(--kind-app-color)",softCssVar:"var(--kind-app-soft)",darkCssVar:"var(--kind-app-dark)",href:({id:e,slug:t})=>(0,l.internalRoute)(`/apps/${t||e}`)},folder:{labelKey:"dashboard.kind.folder",short:"FLD",icon:r.Folder,token:"kind-folder",cssVar:"var(--kind-folder-color)",softCssVar:"var(--kind-folder-soft)",darkCssVar:"var(--kind-folder-dark)",href:({id:e})=>(0,l.internalRoute)(`/prompts?folder=${e}`)},agent:{labelKey:"dashboard.kind.agent",short:"AGT",icon:t.Bot,token:"kind-agent",cssVar:"var(--kind-agent-color)",softCssVar:"var(--kind-agent-soft)",darkCssVar:"var(--kind-agent-dark)",href:({id:e,slug:t})=>(0,l.internalRoute)(`/agents/${t||e}/builder`)},project:{labelKey:"dashboard.kind.project",short:"PRJ",icon:n.FolderKanban,token:"kind-project",cssVar:"var(--kind-project-color)",softCssVar:"var(--kind-project-soft)",darkCssVar:"var(--kind-project-dark)",href:({id:e})=>(0,l.internalRoute)(`/chat?project=${e}`)}};e.s(["KIND_ORDER",0,["template","skill","app","agent","learning","folder","project"],"KIND_REGISTRY",0,c,"contentTypeToKind",0,function(e){return"mini_app"===e?"app":e},"kindHref",0,function(e,t){return c[e].href(t)},"kindToContentType",0,function(e){return"app"===e?"mini_app":e}])},915530,e=>{"use strict";function t(e,t){if(!e||"string"!=typeof e||e.length>t||/[\x00-\x20]/.test(e))return!1;let r=e.search(/[?#]/),n=-1===r?e:e.slice(0,r);return!(!n.startsWith("/")||n.startsWith("//")||n.includes("://")||n.includes("\\")||/%(2f|5c|09|0a|0d|20)/i.test(n))}function r(e){if(!t(e,200)||!/^\/[a-zA-Z0-9_\-.~]/.test(e)||e.includes("://")||e.includes("\\"))return!1;let r=e.toLowerCase();return!/%(2f|5c|09|0a|0d|20)/.test(r)}e.s(["internalRoute",0,function(e){if(!t(e,4096))throw Error("Invalid internal route");return e},"isSafeReturnUrl",0,r,"safeExternalUrl",0,function(e){return!function(e){if(!e||"string"!=typeof e)return!1;let t=e.trim();if(!t)return!1;try{let e=new URL(t);return("http:"===e.protocol||"https:"===e.protocol)&&!!e.hostname}catch{return!1}}(e)?void 0:e.trim()},"safeInternalRoute",0,function(e){return r(e)?e:void 0}])}]); 3 4//# debugId=bc83f820-80c1-b23b-3457-09143b6700fd
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.