PageSourceSearch

https://www.assemblyai.com/dashboard/_next/static/chunks/0sg572ayi0bv9.js?dpl=dpl_7PFtR6ZXZwQFhiM6d94cWpQ8AecJ

js assemblyai.com collected 2026-10-01 08:32:39 UTC 41,520 bytes, 4 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,870781,e=>{"use strict";var t=e.i(884109),i=e.i(264458),n=e.i(18869),a=e.i(311548),s=e.i(851925),o=e.i(623201),l=e.i(557619);let r={size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["classic","surface","soft"],default:"surface"},...a.colorPropDef,...o.radiusPropDef},c={side:{type:"enum",values:["left","right"]},...a.colorPropDef,gap:l.flexPropDefs.gap,px:s.paddingPropDefs.px,pl:s.paddingPropDefs.pl,pr:s.paddingPropDefs.pr};var d=e.i(65487),u=e.i(730130);let m=t.forwardRef((e,a)=>{let s=t.useRef(null),{children:o,className:l,color:c,radius:m,style:h,...p}=(0,d.extractProps)(e,r,u.marginPropDefs);return t.createElement("div",{"data-accent-color":c,"data-radius":m,style:h,className:(0,i.default)("rt-TextFieldRoot",l),onPointerDown:e=>{let t=e.target;if(t.closest("input, button, a"))return;let i=s.current;if(!i)return;let n=t.closest(`
2            .rt-TextFieldSlot[data-side='right'],
3            .rt-TextFieldSlot:not([data-side='right']) ~ .rt-TextFieldSlot:not([data-side='left'])
4          `)?i.value.length:0;requestAnimationFrame(()=>{try{i.setSelectionRange(n,n)}catch{}i.focus()})}},t.createElement("input",{spellCheck:"false",...p,ref:(0,n.composeRefs)(s,a),className:"rt-reset rt-TextFieldInput"}),o)});m.displayName="TextField.Root";let h=t.forwardRef((e,n)=>{let{className:a,color:s,side:o,...l}=(0,d.extractProps)(e,c);return t.createElement("div",{"data-accent-color":s,"data-side":o,...l,ref:n,className:(0,i.default)("rt-TextFieldSlot",a)})});h.displayName="TextField.Slot",e.s(["Root",0,m,"Slot",0,h],897004);var p=e.i(897004);e.s(["TextField",0,p],870781)},210707,e=>{e.v({input__input:"index-module-scss-module__8l0wva__input__input","input__input--error":"index-module-scss-module__8l0wva__input__input--error",input__lowerText:"index-module-scss-module__8l0wva__input__lowerText"})},586310,e=>{"use strict";var t=e.i(28722),i=e.i(604576),n=e.i(884109),a=e.i(7284),s=e.i(824301),o=e.i(905739),l=e.i(870781),r=e.i(210707);e.s(["Input",0,e=>{let c,d,u,m,h,p,x,f,_,g,y,C,j,v,A,w=(0,i.c)(36);w[0]!==e?({id:u,name:h,className:c,width:x,label:m,size:f,error:d,...p}=e,w[0]=e,w[1]=c,w[2]=d,w[3]=u,w[4]=m,w[5]=h,w[6]=p,w[7]=x,w[8]=f):(c=w[1],d=w[2],u=w[3],m=w[4],h=w[5],p=w[6],x=w[7],f=w[8]);let b=void 0===x?"296px":x,S=void 0===f?"2":f,L=(0,n.useId)(),k=u??L,T=`${k}-error`;w[9]!==m?(_=m&&(0,t.jsx)(o.Text,{size:"1",color:"gray",...m}),w[9]=m,w[10]=_):_=w[10],w[11]!==d?(g=d&&{color:"red"},w[11]=d,w[12]=g):g=w[12];let N=!!d||void 0,E=d?T:void 0,I=d&&r.default["input__input--error"];w[13]!==c||w[14]!==I?(y=(0,a.default)([r.default.input__input,c,I]),w[13]=c,w[14]=I,w[15]=y):y=w[15];let M=p["data-testid"]||h;return w[16]!==k||w[17]!==h||w[18]!==p||w[19]!==S||w[20]!==g||w[21]!==N||w[22]!==E||w[23]!==y||w[24]!==M?(C=(0,t.jsx)(l.TextField.Root,{id:k,name:h,size:S,...p,...g,"aria-invalid":N,"aria-describedby":E,className:y,"data-testid":M}),w[16]=k,w[17]=h,w[18]=p,w[19]=S,w[20]=g,w[21]=N,w[22]=E,w[23]=y,w[24]=M,w[25]=C):C=w[25],w[26]!==C||w[27]!==_?(j=(0,t.jsx)(s.Flex,{asChild:!0,gap:"2",direction:"column",children:(0,t.jsxs)("label",{children:[_,C]})}),w[26]=C,w[27]=_,w[28]=j):j=w[28],w[29]!==d||w[30]!==T?(v=d&&(0,t.jsx)(o.Text,{size:"1",color:"red",id:T,children:d}),w[29]=d,w[30]=T,w[31]=v):v=w[31],w[32]!==j||w[33]!==v||w[34]!==b?(A=(0,t.jsxs)(s.Flex,{gap:"2",direction:"column",maxWidth:"100%",width:b,children:[j,v]}),w[32]=j,w[33]=v,w[34]=b,w[35]=A):A=w[35],A}])},647958,e=>{e.v({body:"authForm-module-scss-module__XUMLaa__body",crossLink:"authForm-module-scss-module__XUMLaa__crossLink",crossLinkAnchor:"authForm-module-scss-module__XUMLaa__crossLinkAnchor",form:"authForm-module-scss-module__XUMLaa__form",heading:"authForm-module-scss-module__XUMLaa__heading"})},195220,e=>{"use strict";var t=e.i(604576),i=e.i(811822),n=e.i(496860),a=e.i(944443),s=e.i(568757),o=e.i(928242),l=e.i(262151);let r=["sso","connections"],c=async()=>(await l.dashboardAPI.get("/accounts/sso/connections",void 0)).data,d=async e=>(await l.dashboardAPI.post("/accounts/sso/connections",e)).data,u=async e=>{let{connection_id:t,...i}=e;return(await l.dashboardAPI.put(`/accounts/sso/connections/${t}`,i)).data},m=async e=>(await l.dashboardAPI.post("/auth/sso/lookup",{email:e})).data.connections,h=async e=>(await l.dashboardAPI.delete(`/accounts/sso/connections/${e.connection_id}`,null)).data;function p(e){return d(e)}function x(e){return u(e)}function f(e){return h(e)}e.s(["useCreateSSOConnection",0,e=>{let n,l,c,d=(0,t.c)(9),{onSuccess:u,onError:m}=e,h=(0,a.useQueryClient)(),x=(0,o.useAnalytics)();d[0]!==x||d[1]!==u||d[2]!==h?(n=e=>{h.invalidateQueries({queryKey:r}),x.track(s.AnalyticsEvent.SSOConnectionCreated,{connection_id:e.connection_id,connection_type:e.connection_type}),u?.(e)},d[0]=x,d[1]=u,d[2]=h,d[3]=n):n=d[3];let f=n;d[4]!==m?(l=e=>{m?.(e.message)},d[4]=m,d[5]=l):l=d[5];let _=l;return d[6]!==_||d[7]!==f?(c={mutationFn:p,onSuccess:f,onError:_},d[6]=_,d[7]=f,d[8]=c):c=d[8],(0,i.useMutation)(c)},"useDeleteSSOConnection",0,e=>{let n,l,c,d=(0,t.c)(9),{onSuccess:u,onError:m}=e,h=(0,a.useQueryClient)(),p=(0,o.useAnalytics)();d[0]!==p||d[1]!==u||d[2]!==h?(n=(e,t)=>{h.invalidateQueries({queryKey:r}),p.track(s.AnalyticsEvent.SSOConnectionDeleted,{connection_id:t.connection_id}),u?.()},d[0]=p,d[1]=u,d[2]=h,d[3]=n):n=d[3];let x=n;d[4]!==m?(l=e=>{m?.(e.message)},d[4]=m,d[5]=l):l=d[5];let _=l;return d[6]!==_||d[7]!==x?(c={mutationFn:f,onSuccess:x,onError:_},d[6]=_,d[7]=x,d[8]=c):c=d[8],(0,i.useMutation)(c)},"useSSOConnections",0,e=>{let i,a=(0,t.c)(2),{enabled:s}=e,o=void 0!==s&&s;return a[0]!==o?(i={queryKey:r,queryFn:c,enabled:o},a[0]=o,a[1]=i):i=a[1],(0,n.useQuery)(i)},"useSSOLookup",0,e=>{let n,a,s=(0,t.c)(5),{onSuccess:o,onError:l}=e;return s[0]!==l?(n=e=>l?.(e.message),s[0]=l,s[1]=n):n=s[1],s[2]!==o||s[3]!==n?(a={mutationFn:m,onSuccess:o,onError:n},s[2]=o,s[3]=n,s[4]=a):a=s[4],(0,i.useMutation)(a)},"useUpdateSSOConnection",0,e=>{let n,l,c,d=(0,t.c)(9),{onSuccess:u,onError:m}=e,h=(0,a.useQueryClient)(),p=(0,o.useAnalytics)();d[0]!==p||d[1]!==u||d[2]!==h?(n=()=>{h.invalidateQueries({queryKey:r}),p.track(s.AnalyticsEvent.SSOConnectionUpdated),u?.()},d[0]=p,d[1]=u,d[2]=h,d[3]=n):n=d[3];let f=n;d[4]!==m?(l=e=>{m?.(e.message)},d[4]=m,d[5]=l):l=d[5];let _=l;return d[6]!==_||d[7]!==f?(c={mutationFn:x,onSuccess:f,onError:_},d[6]=_,d[7]=f,d[8]=c):c=d[8],(0,i.useMutation)(c)}],195220)},421512,e=>{"use strict";var t=e.i(28722),i=e.i(884109),n=e.i(591555);let a=i.default.forwardRef((e,i)=>(0,t.jsxs)(n.IconWrapper,{ref:i,...e,children:[(0,t.jsx)("path",{fill:"#fbc02d",d:"M21.805,10.042H21V10H12v4h5.651c-0.824,2.329-3.04,4-5.651,4c-3.314,0-6-2.686-6-6s2.686-6,6-6c1.53,0,2.921,0.577,3.98,1.52l2.829-2.829C17.023,3.027,14.634,2,12,2C6.477,2,2,6.477,2,12s4.477,10,10,10s10-4.477,10-10C22,11.329,21.931,10.675,21.805,10.042z"}),(0,t.jsx)("path",{fill:"#e53935",d:"M3.153,7.346l3.286,2.409C7.327,7.554,9.48,6,12,6c1.53,0,2.921,0.577,3.98,1.52l2.829-2.829C17.023,3.027,14.634,2,12,2C8.159,2,4.828,4.169,3.153,7.346z"}),(0,t.jsx)("path",{fill:"#4caf50",d:"M12,22c2.583,0,4.93-0.988,6.705-2.596l-3.095-2.619C14.606,17.546,13.357,18,12,18c-2.601,0-4.81-1.658-5.641-3.973l-3.261,2.512C4.753,19.778,8.113,22,12,22z"}),(0,t.jsx)("path",{fill:"#1565c0",d:"M21.805,10.042L21.798,10L21,10H12v4h5.651c-0.396,1.119-1.115,2.083-2.043,2.786c0,0,0.001,0,0.001-0.001l3.095,2.619C18.486,19.602,22,17,22,12C22,11.329,21.931,10.675,21.805,10.042z"})]}));a.displayName="GoogleIcon",e.s(["GoogleIcon",0,a])},188781,e=>{"use strict";var t=e.i(28722),i=e.i(604576),n=e.i(581057),a=e.i(905739),s=e.i(649674),o=e.i(421512);e.s(["default",0,function(e){let l,r,c,d,u=(0,i.c)(9),{isPending:m,error:h,onClick:p}=e;return u[0]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)(o.GoogleIcon,{}),u[0]=l):l=u[0],u[1]!==m||u[2]!==p?(r=(0,t.jsxs)(n.Button,{loading:m,variant:"outline",onClick:p,children:[l," Continue with Google"]}),u[1]=m,u[2]=p,u[3]=r):r=u[3],u[4]!==h?(c=h&&(0,t.jsx)(a.Text,{as:"p",size:"1",color:"red",mt:"-2",children:(0,s.getAuthErrorMessage)(h)}),u[4]=h,u[5]=c):c=u[5],u[6]!==r||u[7]!==c?(d=(0,t.jsxs)(t.Fragment,{children:[r,c]}),u[6]=r,u[7]=c,u[8]=d):d=u[8],d}])},307622,e=>{e.v({lineAround:"index-module-scss-module__Fh3AfG__lineAround",secondary:"index-module-scss-module__Fh3AfG__secondary"})},70657,548357,e=>{"use strict";var t=e.i(28722),i=e.i(604576),n=e.i(171949),a=e.i(581057),s=e.i(824301),o=e.i(163807),l=e.i(905739),r=e.i(647958);e.s(["default",0,e=>{let c,d,u,m,h,p=(0,i.c)(11),{email:x,handleBack:f,ref:_}=e;return p[0]===Symbol.for("react.memo_cache_sentinel")?(c=(0,t.jsx)(o.Heading,{as:"h1",className:r.default.heading,children:"Check your email"}
4),p[0]=c):c=p[0],p[1]!==x?(d=(0,t.jsxs)(l.Text,{as:"p",align:"center",className:r.default.body,children:["An email has been sent to ",(0,t.jsx)("b",{children:x}),"."]}),p[1]=x,p[2]=d):d=p[2],p[3]!==f?(u=(0,t.jsx)(n.Box,{width:"100%",asChild:!0,children:(0,t.jsx)(a.Button,{onClick:f,children:"Back"})}),p[3]=f,p[4]=u):u=p[4],p[5]!==d||p[6]!==u?(m=(0,t.jsxs)(s.Flex,{direction:"column",gap:"4",children:[d,u]}),p[5]=d,p[6]=u,p[7]=m):m=p[7],p[8]!==_||p[9]!==m?(h=(0,t.jsxs)(s.Flex,{direction:"column",gap:"7",className:r.default.form,ref:_,children:[c,m]}),p[8]=_,p[9]=m,p[10]=h):h=p[10],h}],70657);var c=e.i(234370),d=e.i(7284),u=e.i(568757),m=e.i(928242),h=e.i(784452),p=e.i(649674),x=e.i(188781),f=e.i(586310);e.i(401853);var _=e.i(884109),g=e.i(811822),y=e.i(1745),C=e.i(544259),j=e.i(790760),v=e.i(753029),A=e.i(594202),w=e.i(310861);function b(e){let n,o,r,c,d,u,m,h,p,x,f,g,y,C,j=(0,i.c)(26),{open:b,onAccept:S,onDecline:L,onOpenChange:k}=e,[T,N]=(0,_.useState)(!1);return j[0]!==k||j[1]!==b?(n={open:b,onOpenChange:k},j[0]=k,j[1]=b,j[2]=n):n=j[2],j[3]!==T||j[4]!==S?(o=e=>{e.preventDefault(),T&&S()},j[3]=T,j[4]=S,j[5]=o):o=j[5],j[6]===Symbol.for("react.memo_cache_sentinel")?(r=(0,t.jsx)(l.Text,{size:"2",as:"p",children:"You've been referred to AssemblyAI! To continue, please accept our Referral Terms and Privacy Policy."}),j[6]=r):r=j[6],j[7]===Symbol.for("react.memo_cache_sentinel")?(c=e=>N(!0===e),j[7]=c):c=j[7],j[8]!==T?(d=(0,t.jsx)(v.Checkbox,{required:!0,checked:T,onCheckedChange:c}),j[8]=T,j[9]=d):d=j[9],j[10]===Symbol.for("react.memo_cache_sentinel")?(u=(0,t.jsx)(A.Link,{href:"https://www.assemblyai.com/legal/referral-term",underline:"always",target:"_blank",children:"AssemblyAI’s Referral Terms"}),j[10]=u):u=j[10],j[11]===Symbol.for("react.memo_cache_sentinel")?(m=(0,t.jsx)(A.Link,{href:"https://www.assemblyai.com/legal/privacy-policy",underline:"always",target:"_blank",children:"AssemblyAI’s Privacy Policy"}),j[11]=m):m=j[11],j[12]===Symbol.for("react.memo_cache_sentinel")?(h=(0,t.jsx)(A.Link,{href:"https://www.assemblyai.com/legal/privacy-policy#financial-incentives",underline:"always",target:"_blank",children:"Notice of Financial Incentive"}),j[12]=h):h=j[12],j[13]!==d?(p=(0,t.jsxs)(l.Text,{as:"label",size:"2",children:[d,"  I have read and agree to"," ",u," ","and"," ",m,", including the"," ",h,"."]}),j[13]=d,j[14]=p):p=j[14],j[15]===Symbol.for("react.memo_cache_sentinel")?(x=(0,t.jsx)(a.Button,{id:"referral-bonus-accept-button",type:"submit",children:"Accept and Continue"}),j[15]=x):x=j[15],j[16]!==L?(f=(0,t.jsxs)(s.Flex,{direction:"column",gap:"3",children:[x,(0,t.jsx)(a.Button,{id:"referral-bonus-decline-button",type:"button",variant:"ghost",onClick:L,children:"Continue without bonus"})]}),j[16]=L,j[17]=f):f=j[17],j[18]===Symbol.for("react.memo_cache_sentinel")?(g=(0,t.jsx)(l.Text,{size:"1",color:"gray",children:"If you decline, you'll miss out on the $50 referral bonus but can still create your account normally."}),j[18]=g):g=j[18],j[19]!==f||j[20]!==o||j[21]!==p?(y=(0,t.jsx)(s.Flex,{asChild:!0,direction:"column",gap:"4",mt:"2",children:(0,t.jsxs)("form",{onSubmit:o,children:[r,p,f,g]})}),j[19]=f,j[20]=o,j[21]=p,j[22]=y):y=j[22],j[23]!==n||j[24]!==y?(C=(0,t.jsx)(w.Dialog,{title:"Referral Bonus Available",root:n,children:y}),j[23]=n,j[24]=y,j[25]=C):C=j[25],C}let S=(e,n)=>{let a,s,o,l,r,c=(0,i.c)(13),[d,u]=(0,_.useState)(null);c[0]!==e?(a=t=>{new y.default(null).set(C.AAI_FINANCIAL_INCENTIVE_COOKIE_NAME,"true",{path:"/",secure:!0,sameSite:"lax",maxAge:3600}),u(null),e(t)},c[0]=e,c[1]=a):a=c[1];let m=a;c[2]!==e?(s=t=>{new y.default(null).remove(C.AAI_FINANCIAL_INCENTIVE_COOKIE_NAME,{path:"/"}),u(null),e(t)},c[2]=e,c[3]=s):s=c[3];let h=s;c[4]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{u(null)},c[4]=o):o=c[4];let p=o;c[5]!==e||c[6]!==m||c[7]!==h?(l={mutationFn:async i=>{await (0,j.getUcc)()?u((0,t.jsx)(b,{open:!0,onAccept:()=>m(i),onDecline:()=>h(i),onOpenChange:e=>{e||p()}})):e(i)}},c[5]=e,c[6]=m,c[7]=h,c[8]=l):l=c[8];let x=(0,g.useMutation)(l),f=void 0!==n&&n?e:x.mutate;return c[9]!==d||c[10]!==x.isPending||c[11]!==f?(r={handleCallback:f,isPending:x.isPending,dialog:d},c[9]=d,c[10]=x.isPending,c[11]=f,c[12]=r):r=c[12],r};var L=e.i(307622);e.s(["default",0,function(e){let o,r,_,g,y,C,j,v,A,w,b,k,T,N,E,I=(0,i.c)(47),{handleMagicLinkSent:M,handleIsUsingPassword:P,handleIsUsingSSO:B,email:F,setEmail:R,ref:H}=e,{sendEmailMagicLink:z,isPending:U,error:O}=(0,h.useSendMagicLink)(M),D=(0,m.useAnalytics)(),V="/signup"===(0,c.usePathname)();I[0]!==D||I[1]!==F||I[2]!==V||I[3]!==z?(o=()=>{F&&(z(F),D.identify({traits:{email:F}}),D.track(V?u.AnalyticsEvent.SignupContinueWithEmail:u.AnalyticsEvent.LoginContinueWithEmail))},I[0]=D,I[1]=F,I[2]=V,I[3]=z,I[4]=o):o=I[4];let{handleCallback:q,isPending:G,dialog:W}=S(o,!V);I[5]!==q?(r=e=>{e.preventDefault(),q()},I[5]=q,I[6]=r):r=I[6];let Z=r,{startGoogleAuth:K,isPending:Q,error:Y}=(0,h.useGoogleAuth)();I[7]!==D||I[8]!==V||I[9]!==K?(_=()=>{K(),D.track(V?u.AnalyticsEvent.SignupContinueWithGoogle:u.AnalyticsEvent.LoginContinueWithGoogle)},I[7]=D,I[8]=V,I[9]=K,I[10]=_):_=I[10];let{handleCallback:$,isPending:X,dialog:J}=S(_,!V);I[11]!==R?(g=e=>R(e.target.value),I[11]=R,I[12]=g):g=I[12];let ee=g,et=Q||X,ei=Y??void 0;I[13]!==$||I[14]!==et||I[15]!==ei?(y=(0,t.jsx)(x.default,{isPending:et,onClick:$,error:ei}),I[13]=$,I[14]=et,I[15]=ei,I[16]=y):y=I[16],I[17]===Symbol.for("react.memo_cache_sentinel")?(C=(0,t.jsx)(l.Text,{as:"p",size:"2",className:(0,d.default)(L.default.secondary,L.default.lineAround),children:"OR"}),I[17]=C):C=I[17],I[18]!==F||I[19]!==ee?(j=(0,t.jsx)(f.Input,{width:"100%",type:"email",placeholder:"[email protected]",value:F,name:"email",autoComplete:"email","aria-label":"Work email",onChange:ee,required:!0}),I[18]=F,I[19]=ee,I[20]=j):j=I[20];let en=U||G;return I[21]!==en?(v=(0,t.jsx)(n.Box,{width:"100%",asChild:!0,children:(0,t.jsx)(a.Button,{loading:en,type:"submit","data-testid":"continue-with-email",children:"Continue with email"})}),I[21]=en,I[22]=v):v=I[22],I[23]!==O?(A=O&&(0,t.jsx)(l.Text,{as:"p",size:"1",color:"red",mt:"3",children:(0,p.getAuthErrorMessage)(O)}),I[23]=O,I[24]=A):A=I[24],I[25]!==D||I[26]!==P?(w=P&&(0,t.jsx)(n.Box,{asChild:!0,width:"100%",mt:"4",children:(0,t.jsx)(a.Button,{type:"button",onClick:()=>{P(),D.track(u.AnalyticsEvent.LoginUsePasswordInstead)},variant:"ghost","data-testid":"use-password",children:"Use password instead"})}),I[25]=D,I[26]=P,I[27]=w):w=I[27],I[28]!==B?(b=B&&(0,t.jsx)(n.Box,{asChild:!0,width:"100%",mt:"3",children:(0,t.jsx)(a.Button,{type:"button",onClick:B,variant:"ghost",children:"Sign in with SSO"})}),I[28]=B,I[29]=b):b=I[29],I[30]!==v||I[31]!==A||I[32]!==w||I[33]!==b?(k=(0,t.jsxs)(n.Box,{mt:"4",children:[v,A,w,b]}),I[30]=v,I[31]=A,I[32]=w,I[33]=b,I[34]=k):k=I[34],I[35]!==Z||I[36]!==k||I[37]!==j?(T=(0,t.jsxs)("form",{onSubmit:Z,children:[j,k]}),I[35]=Z,I[36]=k,I[37]=j,I[38]=T):T=I[38],I[39]!==H||I[40]!==T||I[41]!==y?(N=(0,t.jsxs)(s.Flex,{direction:"column",gap:"7",ref:H,children:[y,C,T]}),I[39]=H,I[40]=T,I[41]=y,I[42]=N):N=I[42],I[43]!==W||I[44]!==J||I[45]!==N?(E=(0,t.jsxs)(t.Fragment,{children:[N,J,W]}),I[43]=W,I[44]=J,I[45]=N,I[46]=E):E=I[46],E}],548357)},5391,e=>{"use strict";var t=e.i(604576),i=e.i(884109),n=e.i(234370),a=e.i(811822),s=e.i(568757),o=e.i(928242),l=e.i(784452),r=e.i(544259),c=e.i(380324),d=e.i(929336),u=e.i(624011),m=e.i(394674);function h(){let e,i=(0,t.c)(5),{setUser:n,setExperiments:a}=(0,u.useDatadog)(),{setExperiments:s}=(0,c.useExperiments)(),o=(0,l.useAuthClient)();return i[0]!==a||i[1]!==s||i[2]!==n||i[3]!==o.session?(e=e=>{let t=(0,c.listExperiments)(e.user);s(t),a(t),n(e.user),o.session.updateSession({session_token:e.sessionToken,session_jwt:e.sessionJWT}),o.session.authenticate({session_duration_minutes:r.SESSION_DURATION_MINUTES})},i[0]=a,i[1]=s,i[2]=n,i[3]=o.session,i[4]=e):e=i[4],e}e.s(["useAuthMutation",0,function(e){let r,c,u,p,x,f,_=(0,t.c)(19),{mutationFn:g,onAuthenticatedSuccess:y}=e,C=(0,n.useRouter)(),j=(0,o.useAnalytics)(),[v,A]=(0,i.useTransition)(),{setAuthState:w}=(0,d.useAuthProvider)(),b=h(),{startSSOAuth:S}=(0,l.useSSOAuth)();_[0]!==j||_[1]!==y||_[2]!==b||_[3]!==C||_[4]!==w||_[5]!==S?(r=async(e,t)=>{e.isAuthenticated?(A(()=>{b(e)}),y?.(e)):A(()=>{switch(e.requiredAction){case"verify_email":j.track(s.AnalyticsEvent.SignupUnverifiedSentMagicLink,{email:e.email,initialAuthMethod:function(e){if("object"==typeof e&&null!==e){if("password"in e)return"password";if("string"==typeof e.tokenType)return e.tokenType}return"organization_select"}(t)});break;case"sso_required":1===e.connections.length&&S(e.connections[0].connection_id);break;case"mfa_flow":{let{organizationId:t,memberId:i,mfaOptions:n}=e;w({mfaOptions:{allowedMFAMethods:n.allowedMFAMethods,enrolledMFAMethods:n.enrolledMFAMethods,initiatedMFAMethod:n.initiatedMFAMethod||null,mfaPhoneNumber:n.mfaPhoneNumber||null},memberId:i,organizationId:t}),C.replace(m.PUBLIC_ONLY_MFA_URL)}}})},_[0]=j,_[1]=y,_[2]=b,_[3]=C,_[4]=w,_[5]=S,_[6]=r):r=_[6];let L=r;_[7]!==j?(c=e=>{j.track(s.AnalyticsEvent.LoginUnsuccessful,{error:e.response.data.error??e.message})},_[7]=j,_[8]=c):c=_[8];let k=c;_[9]!==g||_[10]!==k||_[11]!==L?(u={mutationFn:g,onSuccess:L,onError:k},_[9]=g,_[10]=k,_[11]=L,_[12]=u):u=_[12];let T=(0,a.useMutation)(u);_[13]!==T?({isPending:p,...x}=T,_[13]=T,_[14]=p,_[15]=x):(p=_[14],x=_[15]);let N=v||p;return _[16]!==x||_[17]!==N?(f={...x,isPending:N},_[16]=x,_[17]=N,_[18]=f):f=_[18],f},"usePostLogin",0,h])},555094,e=>{"use strict";var t=e.i(1745),i=e.i(544259),n=e.i(394674);let a="aai_navigated_from_activation",s=["javascript:","data:","vbscript:"];e.s(["ACTIVATION_REDIRECT_FLAG_KEY",0,a,"markNavigationFromActivation",0,()=>{sessionStorage.setItem(a,"1")},"postLoginRedirect",0,({isNewAccount:e,userPath:a,applicationType:o})=>{let l,r,c,d,u,m=((r=(l=new t.default(null,{path:"/"}
4)).get(i.AUTH_REDIRECT_COOKIE_NAME))&&l.remove(i.AUTH_REDIRECT_COOKIE_NAME),r),h=(e=>{if(!e)return!1;let t=e.trim();if(!t||!t.startsWith("/")||t.startsWith("//"))return!1;let i=t.toLowerCase();if(s.some(e=>i.includes(e)))return!1;try{let e=decodeURIComponent(t);if(s.some(t=>e.toLowerCase().includes(t)))return!1}catch{return!1}return!0})(m)?m.trim():void 0;(c=document.createElement("style")).textContent="@keyframes _aai_spin{to{transform:rotate(360deg)}}",document.head.appendChild(c),(d=document.createElement("div")).style.cssText="position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--color-background);z-index:9999;pointer-events:none",(u=document.createElement("div")).style.cssText="width:24px;height:24px;border-radius:50%;border:2px solid var(--gray-6);border-top-color:var(--accent-9);animation:_aai_spin 0.6s linear infinite",d.appendChild(u),document.body.appendChild(d),window.location.href=`${n.BASE_URL}${h||(e?n.PRIVATE_ACTIVATION_URL:((e,t)=>{if("voice-agent"===t){if("code"===e)return`${n.PRIVATE_GET_STARTED_URL}?product=voice-agent`;else if("no-code"===e)return n.PRIVATE_PLAYGROUND_VOICE_AGENT_URL}return"code"===e?`${n.PRIVATE_GET_STARTED_URL}?product=streaming`:"no-code"===e?n.PRIVATE_PLAYGROUND_REALTIME_URL:n.PRIVATE_HOME_URL})(a,o))}`}])},199805,e=>{e.v({content:"authShell-module-scss-module__hQw5Ma__content",panel:"authShell-module-scss-module__hQw5Ma__panel",root:"authShell-module-scss-module__hQw5Ma__root"})},508579,e=>{e.v({root:"brandLogo-module-scss-module__A3PpkW__root"})},855120,e=>{e.v({logo:"topNav-module-scss-module__UTaUWa__logo",root:"topNav-module-scss-module__UTaUWa__root",secondary:"topNav-module-scss-module__UTaUWa__secondary"})},74202,e=>{"use strict";var t=e.i(28722),i=e.i(604576),n=e.i(824301),a=e.i(199805),s=e.i(196698),o=e.i(7284),l=e.i(508579);let r=()=>{let e,n,a=(0,i.c)(2);return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsxs)("svg",{width:32,height:28,viewBox:"0 0 31.8962 27.8708",fill:"none","aria-hidden":"true",children:[(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.0815 0C12.055 0 10.2366 1.256 9.50349 3.16219L0 27.8708H7.21938L14.6998 8.42214H14.703C14.8906 7.9481 15.3499 7.61318 15.8867 7.61318C16.4235 7.61318 16.8828 7.9481 17.0705 8.42214H18.0672V4.47711H16.2171L17.9391 0H14.0815Z",fill:"var(--neutral-100)"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.50404 3.1622C10.2074 1.3335 11.9096 0.103192 13.836 0.00618645L13.8336 3.72637e-07H14.0821H16.8593H17.8148C19.8412 3.72637e-07 21.6596 1.256 22.3928 3.16219L31.8962 27.8708H24.5534L15.3377 3.91059C14.8101 2.73634 13.6382 1.91955 12.2772 1.91955C10.9129 1.91955 9.73861 2.74035 9.21286 3.91924L9.50404 3.1622Z",fill:"var(--gray-11)"})]}),a[0]=e):e=a[0],a[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,t.jsxs)("span",{className:l.default.root,children:[e,(0,t.jsx)("svg",{width:120,height:20,viewBox:"0 0 120.243 19.7034",fill:"none",role:"img","aria-label":"AssemblyAI",children:(0,t.jsxs)("g",{fill:"var(--neutral-100)",children:[(0,t.jsx)("path",{d:"M2.57892 15.3249L3.98757 11.5375H10.2073L11.6376 15.3249H14.3032L8.64696 0H5.67795L0 15.3249H2.57892ZM7.08661 2.7147L9.51382 9.39197H4.68106L7.08661 2.7147Z"}),(0,t.jsx)("path",{d:"M15.4764 11.625C15.5414 14.0551 17.5785 15.4563 20.5475 15.4563C23.2348 15.4563 25.2503 14.0989 25.2503 11.9534C25.2503 9.45765 23.1915 8.93223 20.6559 8.62573C19.0522 8.45059 17.9903 8.31923 17.9903 7.26838C17.9903 6.37078 18.9005 5.80157 20.2875 5.80157C21.6745 5.80157 22.628 6.52403 22.758 7.55299H25.0552C24.9035 5.25425 22.9748 3.98447 20.2441 3.98447C17.5785 3.96258 15.6931 5.34182 15.6931 7.46541C15.6931 9.78604 17.6869 10.3334 20.2225 10.6399C21.9345 10.8588 22.9531 10.9464 22.9531 12.1505C22.9531 13.0481 21.9995 13.6173 20.5475 13.6173C18.8572 13.6173 17.8603 12.7853 17.7736 11.625H15.4764Z"}),(0,t.jsx)("path",{d:"M27.0258 11.625C27.0908 14.0551 29.128 15.4563 32.097 15.4563C34.7842 15.4563 36.7997 14.0989 36.7997 11.9534C36.7997 9.45765 34.7409 8.93223 32.2053 8.62573C30.6016 8.45059 29.5397 8.31923 29.5397 7.26838C29.5397 6.37078 30.4499 5.80157 31.8369 5.80157C33.2239 5.80157 34.1774 6.52403 34.3075 7.55299H36.6047C36.453 5.25425 34.5242 3.98447 31.7936 3.98447C29.128 3.96258 27.2425 5.34182 27.2425 7.46541C27.2425 9.78604 29.2363 10.3334 31.7719 10.6399C33.4839 10.8588 34.5025 10.9464 34.5025 12.1505C34.5025 13.0481 33.549 13.6173 32.097 13.6173C30.4066 13.6173 29.4097 12.7853 29.323 11.625H27.0258Z"}),(0,t.jsx)("path",{d:"M44.5299 15.4563C47.2821 15.4563 49.1459 13.7705 49.536 11.5594H47.1955C46.8704 12.8072 45.8301 13.5297 44.3998 13.5297C42.5577 13.5297 41.3658 12.2818 41.3008 10.3771V10.2239H49.666C49.7094 9.9174 49.731 9.6109 49.731 9.32629C49.666 6.04239 47.5205 3.98447 44.3131 3.98447C41.0407 3.98447 38.8519 6.28321 38.8519 9.74226C38.8519 13.1794 41.0407 15.4563 44.5299 15.4563ZM41.3875 8.49437C41.5608 6.8962 42.8395 5.88914 44.3348 5.88914C45.9602 5.88914 47.1088 6.83053 47.3038 8.49437H41.3875Z"}),(0,t.jsx)("path",{d:"M65.0379 3.98447C63.2175 3.98447 61.9606 4.7945 61.2454 6.0205C60.5736 4.57558 59.2733 3.98447 57.8213 3.98447C56.1526 4.00637 55.199 4.75072 54.5706 5.58264L54.3105 4.11583H52.2734V15.3249H54.6139V9.32629C54.6139 7.33406 55.6108 6.0205 57.2145 6.0205C58.7532 6.0205 59.555 7.04945 59.555 9.0198V15.3249H61.9172V9.26062C61.9172 7.24649 62.9358 6.0205 64.5395 6.0205C66.0565 6.0205 66.8584 7.04945 66.8584 9.0198
4V15.3249H69.1989V8.86655C69.1989 5.31993 67.3351 3.98447 65.0379 3.98447Z"}),(0,t.jsx)("path",{d:"M77.9088 3.98447C76.1968 3.98447 75.0482 4.77261 74.3113 5.77968V0H71.9708V15.3249H74.0079L74.2897 13.7048C74.9832 14.7119 76.1751 15.4563 77.9088 15.4563C80.9428 15.4563 83.1533 13.1575 83.1533 9.72036C83.1533 6.10807 80.9428 3.98447 77.9088 3.98447ZM77.5187 13.464C75.5683 13.464 74.2897 11.9096 74.2897 9.69847C74.2897 7.53109 75.5683 5.9986 77.5187 5.9986C79.4692 5.9986 80.7695 7.53109 80.7695 9.72036C80.7695 11.9315 79.4692 13.464 77.5187 13.464Z"}),(0,t.jsx)("path",{d:"M85.6789 15.3249H88.0195V0H85.6789V15.3249Z"}),(0,t.jsx)("path",{d:"M94.1713 15.3906L93.7379 16.4852C93.3911 17.4047 93.1744 17.6236 92.2642 17.6236H90.6172V19.7034H93.1311C94.7564 19.7034 95.2332 18.8934 95.9267 17.0763L100.955 4.11583H98.4623L95.4499 12.6321L92.3509 4.11583H89.8587L94.1713 15.3906Z"}),(0,t.jsx)("path",{d:"M103.821 15.3249L105.229 11.5375H111.449L112.879 15.3249H115.545L109.889 0H106.92L101.242 15.3249H103.821ZM108.328 2.7147L110.756 9.39197H105.923L108.328 2.7147Z"}),(0,t.jsx)("path",{d:"M117.751 15.3249H120.243V0H117.751V15.3249Z"})]})})]}),a[1]=n):n=a[1],n};var c=e.i(855120);let d=e=>{let a,l,d,u=(0,i.c)(6),{variant:m}=e,h=void 0===m?"primary":m,p="secondary"===h?"center":"start",x="secondary"===h&&c.default.secondary;return u[0]!==x?(a=(0,o.default)(c.default.root,x),u[0]=x,u[1]=a):a=u[1],u[2]===Symbol.for("react.memo_cache_sentinel")?(l=(0,t.jsx)("header",{children:(0,t.jsx)(s.default,{href:"https://www.assemblyai.com/",className:c.default.logo,"aria-label":"AssemblyAI home",children:(0,t.jsx)(r,{})})}),u[2]=l):l=u[2],u[3]!==p||u[4]!==a?(d=(0,t.jsx)(n.Flex,{asChild:!0,align:"center",justify:p,className:a,children:l}),u[3]=p,u[4]=a,u[5]=d):d=u[5],d};e.s(["default",0,e=>{let s,o,l,r=(0,i.c)(7),{children:c,showTopNav:u}=e,m=void 0===u||u;return r[0]!==m?(s=m&&(0,t.jsx)(d,{variant:"secondary"}),r[0]=m,r[1]=s):s=r[1],r[2]!==c?(o=(0,t.jsx)(n.Flex,{className:a.default.panel,align:"center",justify:"center",children:(0,t.jsx)(n.Flex,{direction:"column",className:a.default.content,children:c})}),r[2]=c,r[3]=o):o=r[3],r[4]!==s||r[5]!==o?(l=(0,t.jsxs)(n.Flex,{direction:"column",className:a.default.root,children:[s,o]}),r[4]=s,r[5]=o,r[6]=l):l=r[6],l}],74202)},274202,e=>{"use strict";var t=e.i(604576),i=e.i(568757),n=e.i(928242),a=e.i(5391),s=e.i(262151),o=e.i(555094);let l=async e=>{let t=await s.dashboardAPI.get("/accounts/preferences",null).catch(()=>null);(0,o.postLoginRedirect)({isNewAccount:e,userPath:t?.data?.[0]?.user_path})};async function r(e){let{data:t}=await s.dashboardAPI.post("/authenticate/magic-link",e);return t}async function c(e){let{data:t}=await s.dashboardAPI.post("/auth/organization/select",e);return t}async function d(e){let{data:t}=await s.dashboardAPI.post("/auth/authenticate",e);return t}e.s(["default",0,function(){let e,s,o=(0,t.c)(4),r=(0,n.useAnalytics)();o[0]!==r?(e=async e=>{let t={first_name:"TBD",last_name:"TBD",company:"TBD",email:e.user.member.email,...r.utmParams};r.identify({userId:e.user.id,...e.isNewAccount&&{traits:t}}),r.track(i.AnalyticsEvent.LoginSuccessful),e.isNewAccount&&r.track(i.AnalyticsEvent.Registered,{accountId:e.user.id,userId:e.user.member.id,timestamp:new Date().toISOString(),properties:t}),await l(e.isNewAccount)},o[0]=r,o[1]=e):e=o[1];let c=e;return o[2]!==c?(s={mutationFn:d,onAuthenticatedSuccess:c},o[2]=c,o[3]=s):s=o[3],(0,a.useAuthMutation)(s)},"useMagicLink",0,function(){let e,s,o=(0,t.c)(4),c=(0,n.useAnalytics)();o[0]!==c?(e=async e=>{let t={first_name:"TBD",last_name:"TBD",company:"TBD",email:e.user.member.email,...c.utmParams};c.identify({userId:e.user.id,...e.isNewAccount&&{traits:t}}),c.track(i.AnalyticsEvent.LoginSuccessful),await l(e.isNewAccount)},o[0]=c,o[1]=e):e=o[1];let d=e;return o[2]!==d?(s={mutationFn:r,onAuthenticatedSuccess:d},o[2]=d,o[3]=s):s=o[3],(0,a.useAuthMutation)(s)},"useSelectOrganization",0,function(){let e,s,o=(0,t.c)(4),r=(0,n.useAnalytics)();o[0]!==r?(e=async e=>{let t={first_name:"TBD",last_name:"TBD",company:"TBD",email:e.user.member.email,...r.utmParams};r.identify({userId:e.user.id,...e.isNewAccount&&{traits:t}}),r.track(i.AnalyticsEvent.LoginSuccessful),await l(e.isNewAccount)},o[0]=r,o[1]=e):e=o[1];let d=e;return o[2]!==d?(s={mutationFn:c,onAuthenticatedSuccess:d},o[2]=d,o[3]=s):s=o[3],(0,a.useAuthMutation)(s)}])},203553,e=>{e.v({description:"multiUserAuth-module-scss-module__I9wbjq__description",orgButton:"multiUserAuth-module-scss-module__I9wbjq__orgButton",orgName:"multiUserAuth-module-scss-module__I9wbjq__orgName",stateCard:"multiUserAuth-module-scss-module__I9wbjq__stateCard"})},406202,e=>{"use strict";var t=e.i(28722),i=e.i(604576),n=e.i(884109),a=e.i(196698),s=e.i(16093
40),o=e.i(171949),l=e.i(581057),r=e.i(824301),c=e.i(163807),d=e.i(317182),u=e.i(905739),m=e.i(784452),h=e.i(365373),p=e.i(394674),x=e.i(274202),f=e.i(203553);function _(e,t){if(e&&!e.isAuthenticated&&e.requiredAction===t)return e}function g(e){let n,a,o,r,c=(0,i.c)(12),{name:m,isLoading:h,disabled:p,onClick:x}=e,_=m[0]??"?";return c[0]!==_?(n=(0,t.jsx)(s.Avatar,{fallback:_,size:"2",radius:"small"}),c[0]=_,c[1]=n):n=c[1],c[2]!==m?(a=(0,t.jsx)(u.Text,{className:f.default.orgName,children:m}),c[2]=m,c[3]=a):a=c[3],c[4]!==h?(o=h&&(0,t.jsx)(d.Spinner,{ml:"auto",size:"2"}),c[4]=h,c[5]=o):o=c[5],c[6]!==p||c[7]!==x||c[8]!==n||c[9]!==a||c[10]!==o?(r=(0,t.jsxs)(l.Button,{size:"4",variant:"surface",disabled:p,className:f.default.orgButton,onClick:x,children:[n,a,o]}),c[6]=p,c[7]=x,c[8]=n,c[9]=a,c[10]=o,c[11]=r):r=c[11],r}e.s(["useMultiUserAuth",0,function(e){let s,d,y,C,j,v=(0,i.c)(23),{mutate:A,data:w,isPending:b,error:S}=(0,x.useSelectOrganization)(),[L,k]=(0,n.useState)(null),{startSSOAuth:T,isPending:N}=(0,m.useSSOAuth)();v[0]!==e||v[1]!==w?(s=_(e,"verify_email")??_(w,"verify_email"),v[0]=e,v[1]=w,v[2]=s):s=v[2];let E=s;v[3]!==e||v[4]!==w?(d=_(e,"sso_required")??_(w,"sso_required"),v[3]=e,v[4]=w,v[5]=d):d=v[5];let I=d;v[6]!==e||v[7]!==I||v[8]!==E?(y=E||I?void 0:_(e,"select_organization"),v[6]=e,v[7]=I,v[8]=E,v[9]=y):y=v[9];let M=y,P=I?"sso_required":E?"verify_email":M?"select_organization":null;v[10]!==N||v[11]!==b||v[12]!==A||v[13]!==S||v[14]!==M||v[15]!==L||v[16]!==I||v[17]!==T||v[18]!==E?(C=()=>M?(0,t.jsxs)(o.Box,{className:f.default.stateCard,children:[(0,t.jsx)(c.Heading,{as:"h3",size:"5",weight:"regular",mb:"2",className:f.default.heading,children:"Select an organization"}),(0,t.jsx)(u.Text,{size:"2",as:"p",className:f.default.description,mb:"4",children:"Your account is associated with multiple organizations. Choose one to continue."}),(0,t.jsx)(r.Flex,{direction:"column",gap:"2",mt:"6",children:M.organizations.map(e=>(0,t.jsx)(g,{name:e.organization_name,isLoading:b&&L===e.organization_id,disabled:b,onClick:()=>{k(e.organization_id),A({organization_id:e.organization_id,intermediateSessionToken:M.intermediateSessionToken})}},e.organization_id))}),S&&(0,t.jsx)(u.Text,{size:"2",color:"red",as:"p",mt:"4",children:(0,h.getErrorMessage)(S)})]}):I?(0,t.jsxs)(o.Box,{className:f.default.stateCard,children:[(0,t.jsx)(c.Heading,{as:"h3",size:"5",weight:"regular",mb:"2",className:f.default.heading,children:"SSO sign-in required"}),(0,t.jsx)(u.Text,{size:"2",as:"p",className:f.default.description,mb:"4",children:"Your organization requires SSO to sign in. Select a connection to continue."}),(0,t.jsx)(r.Flex,{direction:"column",gap:"2",mt:"4",children:I.connections.map(e=>(0,t.jsx)(o.Box,{width:"100%",asChild:!0,children:(0,t.jsx)(l.Button,{variant:"soft",size:"3",loading:N,onClick:()=>T(e.connection_id),children:e.display_name})},e.connection_id))}),(0,t.jsx)(o.Box,{width:"100%",asChild:!0,children:(0,t.jsx)(l.Button,{mt:"4",variant:"ghost",asChild:!0,children:(0,t.jsx)(a.default,{href:p.PUBLIC_ONLY_LOGIN_URL,children:"Return to login"})})})]}):E?(0,t.jsxs)(o.Box,{className:f.default.stateCard,children:[(0,t.jsx)(c.Heading,{as:"h3",size:"5",weight:"regular",mb:"4",className:f.default.heading,children:"Check your email to complete sign-up"}),(0,t.jsxs)(u.Text,{size:"2",as:"p",className:f.default.description,children:["We've sent a verification link to"," ",(0,t.jsx)(u.Text,{as:"span",weight:"bold",children:E.email}),". Use the link in the email to verify your account and get started with AssemblyAI."]}),(0,t.jsx)(o.Box,{width:"100%",asChild:!0,children:(0,t.jsx)(l.Button,{mt:"4",asChild:!0,children:(0,t.jsx)(a.default,{href:p.PUBLIC_ONLY_LOGIN_URL,children:"Return to login"})})})]}):null,v[10]=N,v[11]=b,v[12]=A,v[13]=S,v[14]=M,v[15]=L,v[16]=I,v[17]=T,v[18]=E,v[19]=C):C=v[19];let B=C;return v[20]!==P||v[21]!==B?(j={action:P,render:B},v[20]=P,v[21]=B,v[22]=j):j=v[22],j}])},153232,e=>{"use strict";var t=e.i(28722),i=e.i(604576),n=e.i(884109),a=e.i(781800),s=e.i(849567),o=e.i(74202),l=e.i(70657),r=e.i(196698),c=e.i(824301),d=e.i(163807),u=e.i(905739),m=e.i(568757),h=e.i(928242),p=e.i(647958),x=e.i(548357),f=e.i(171949),_=e.i(581057),g=e.i(365373),y=e.i(586310),C=e.i(406202),j=e.i(274202),v=e.i(784452),A=e.i(649674),w=e.i(6
456555),b=e.i(195220);let S=s.motion.create(e=>{let a,s,o,l,d,p,x,v,A,w,b,S,L,k=(0,i.c)(43),{handleBack:T,email:N,setEmail:E,ref:I}=e,[M,P]=(0,n.useState)(""),{mutate:B,data:F,isPending:R,error:H}=(0,j.default)(),{action:z,render:U}=(0,C.useMultiUserAuth)(F),O=(0,h.useAnalytics)();k[0]!==O||k[1]!==N||k[2]!==B||k[3]!==M?(a=e=>{e.preventDefault(),B({email:N,password:M,utm:O.utmParams}),O.identify({traits:{email:N}}),O.track(m.AnalyticsEvent.LoginClickLogin)},k[0]=O,k[1]=N,k[2]=B,k[3]=M,k[4]=a):a=k[4];let D=a;k[5]!==E?(s=e=>E(e.target.value),k[5]=E,k[6]=s):s=k[6];let V=s;k[7]===Symbol.for("react.memo_cache_sentinel")?(o=e=>P(e.target.value),k[7]=o):o=k[7];let q=o;if(z&&!H){let e,i;return k[8]!==U?(e=U(),k[8]=U,k[9]=e):e=k[9],k[10]!==I||k[11]!==e?(i=(0,t.jsx)(c.Flex,{direction:"column",ref:I,children:e}),k[10]=I,k[11]=e,k[12]=i):i=k[12],i}k[13]===Symbol.for("react.memo_cache_sentinel")?(l={children:"Work email"},k[13]=l):l=k[13],k[14]!==N||k[15]!==V?(d=(0,t.jsx)(y.Input,{width:"100%",type:"email",placeholder:"[email protected]",label:l,value:N,autoComplete:"email",name:"email",onChange:V,required:!0,"data-testid":"email-input"}),k[14]=N,k[15]=V,k[16]=d):d=k[16],k[17]===Symbol.for("react.memo_cache_sentinel")?(p={children:"Password"},k[17]=p):p=k[17],k[18]!==M?(x=(0,t.jsx)(y.Input,{width:"100%",type:"password",placeholder:"∗∗∗∗∗∗∗∗",label:p,value:M,autoComplete:"current-password",name:"password",onChange:q,required:!0,"data-testid":"password"}),k[18]=M,k[19]=x):x=k[19],k[20]!==R?(v=(0,t.jsx)(f.Box,{width:"100%",asChild:!0,children:(0,t.jsx)(_.Button,{loading:R,type:"submit","data-testid":"submit",children:"Login"})}),k[20]=R,k[21]=v):v=k[21];e:{let e,i,n;if(!H){A=null;break e}k[22]!==H?(e=(0,g.getErrorMessage)(H),k[22]=H,k[23]=e):e=k[23];let a=e;k[24]!==a?(i="Password reset required"===a?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(r.default,{href:"/password/forgot",className:"underline",children:"Your password has expired. Please reset the password"})}):a,k[24]=a,k[25]=i):i=k[25],k[26]!==i?(n=(0,t.jsx)(u.Text,{as:"p",size:"1",color:"red",mt:"3","data-testid":"error",children:i}),k[26]=i,k[27]=n):n=k[27],A=n}return k[28]!==v||k[29]!==A?(w=(0,t.jsxs)(f.Box,{mt:"-2",children:[v,A]}),k[28]=v,k[29]=A,k[30]=w):w=k[30],k[31]!==D||k[32]!==w||k[33]!==d||k[34]!==x?(b=(0,t.jsx)(c.Flex,{direction:"column",gap:"5",asChild:!0,children:(0,t.jsxs)("form",{onSubmit:D,children:[d,x,w]})}),k[31]=D,k[32]=w,k[33]=d,k[34]=x,k[35]=b):b=k[35],k[36]!==O||k[37]!==T?(S=T&&(0,t.jsx)(f.Box,{asChild:!0,width:"100%",mt:"4",children:(0,t.jsx)(_.Button,{type:"button",onClick:()=>{T(),O.track(m.AnalyticsEvent.LoginClickBack)},variant:"ghost",children:"Back"})}),k[36]=O,k[37]=T,k[38]=S):S=k[38],k[39]!==I||k[40]!==b||k[41]!==S?(L=(0,t.jsxs)(c.Flex,{direction:"column",ref:I,children:[b,S]}),k[39]=I,k[40]=b,k[41]=S,k[42]=L):L=k[42],L}),L=s.motion.create(x.default),k=s.motion.create(e=>{var a;let s,o,l,r,d,m,h,p,x,g,C,j,S=(0,i.c)(48),{handleBack:L,email:k,setEmail:T,ref:N}=e,[E,I]=(0,n.useState)(null),{startSSOAuth:M,isPending:P,error:B}=(0,v.useSSOAuth)();S[0]!==M?(s={onSuccess:e=>{1===e.length?M(e[0].connection_id):I(e)}},S[0]=M,S[1]=s):s=S[1];let{mutate:F,isPending:R,error:H}=(0,b.useSSOLookup)(s),z=R||P;S[2]!==k||S[3]!==F?(o=e=>{e.preventDefault(),I(null);let t=k.trim();t&&F(t)},S[2]=k,S[3]=F,S[4]=o):o=S[4];let U=o;S[5]!==T?(l=e=>{I(null),T(e.target.value)},S[5]=T,S[6]=l):l=S[6];let O=l;S[7]!==H||S[8]!==B?(r=H?(a=H)instanceof w.HTTPError&&404===a.response.status?"No SSO connection found for this email domain. Contact your organization administrator.":"Something went wrong. Please try again.":B?(0,A.getAuthErrorMessage)(B):void 0,S[7]=H,S[8]=B,S[9]=r):r=S[9];let D=r;if(E&&E.length>1){let e,i,n,a,s;if(S[10]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)(u.Text,{size:"2",color:"gray",children:"Multiple SSO connections are available. Select one to continue."}),S[10]=e):e=S[10],S[11]!==E||S[12]!==P||S[13]!==M){let e;S[15]!==P||S[16]!==M?(e=e=>(0,t.jsx)(f.Box,{width:"100%",asChild:!0,children:(0,t.jsx)(_.Button,{variant:"surface",size:"3",loading:P,onClick:()=>M(e.connection_id),children:e.display_name})},e.connection_id),S[15]=P,S[16]=M,S[17]=e):e=S[17],i=E.map(e),S[11]=E,S[12]=P,S[13]=M,S[14]=i}else i=S[14];return S[18]!==B?(n=B&&(0,t.jsx)(u.Text,{as:"p",size:"1",color:"red",children:(0,A.getAuthErrorMessage)(B)}),S[18]=B,S[19]=n):n=S[19],S[20]!==L?(a=L&&(0,t.jsx)(f.Box,{asChild:!0,width:"100%",mt:"3",children:(0,t.jsx)(_.Button,{type:"button",onClick:L,variant:"ghost",children:"Back"})}),S[20]=L,S[21]=a):a=S[21],S[22]!==N||S[23]!==i||S[24]!==n||S[25]!==a?(s=(0,t.jsxs)(c.Flex,{direction:"column",gap:"3",ref:N,children:[e,i,n,a]}),S[22]=N,S[23]=i,S[24]=n,S[25]=a,S[26]=s):s=S[26],s}return S[27]===Symbol.for("react.memo_cache_sentinel")?(d={children:"Work email"},S[27]=d):d=S[27],S[28]!==k||S[29]!==O?(m=(0,t.jsx)(y.Input,{width:"100%",type:"email",placeholder:"[email protected]",label:d,value:k,autoComplete:"email",name:"email",onChange:O,required:!0}),S[28]=k,S[29]=O,S[30]=m):m=S[30],S[31]!==z?(h=(0,t.jsx)(f.Box,{width:"100%",asChild:!0,children:(0,t.jsx)(_.Button,{loading:z,type:"submit",children:"Continue with SSO"})}),S[31]=z,S[32]=h):h=S[32],S[33]!==D?(p=D&&(0,t.jsx)(u.Text,{as:"p",size:"1",color:"red",mt:"3",children:D}),S[33]=D,S[34]=p):p=S[34],S[35]!==h||S[36]!==p?(x=(0,t.jsxs)(f.Box,{mt:"-2",children:[h,p]}),S[35]=h,S[36]=p,S[37]=x):x=S[37],S[38]!==U||S[39]!==m||S[40]!==x?(g=(0,t.jsx)(c.Flex,{direction:"column",gap:"5",asChild:!0,children:(0,t.jsxs)("form",{onSubmit:U,children:[m,x]})}),S[38]=U,S[39]=m,S[40]=x,S[41]=g):g=S[41],S[42]!==L?(C=L&&(0,t.jsx)(f.Box,{asChild:!0,width:"100%",mt:"3",children:(0,t.jsx)(_.Button,{type:"button",onClick:L,variant:"ghost",children:"Back"})}),S[42]=L,S[43]=C):C=S[43],S[44]!==N||S[45]!==g||S[46]!==C?(j=(0,t.jsxs)(c.Flex,{direction:"column",ref:N,children:[g,C]}),S[44]=N,S[45]=g,S[46]=C,S[47]=j):j=S[47],j}),T=s.motion.create(l.default),N=s.motion.create(function(e){let s,o,l,x,f,_=(0,i.c)(15),{email:g,setEmail:y,handleMagicLinkSent:C,ref:j}
4=e,[v,A]=(0,n.useState)("social"),w=(0,h.useAnalytics)();return _[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,t.jsx)(d.Heading,{as:"h1",className:p.default.heading,children:"Login to your account"}),_[0]=s):s=_[0],_[1]!==v||_[2]!==g||_[3]!==C||_[4]!==y?(o=(0,t.jsx)(a.AnimatePresence,{mode:"wait",initial:!1,children:"password"===v?(0,t.jsx)(S,{initial:{y:10,opacity:0},animate:{y:0,opacity:1},exit:{y:-10,opacity:0},transition:{duration:.2},email:g,setEmail:y,handleBack:()=>A("social")},"password"):"sso"===v?(0,t.jsx)(k,{initial:{y:10,opacity:0},animate:{y:0,opacity:1},exit:{y:-10,opacity:0},transition:{duration:.2},email:g,setEmail:y,handleBack:()=>A("social")},"sso"):(0,t.jsx)(L,{initial:{y:10,opacity:0},animate:{y:0,opacity:1},exit:{y:-10,opacity:0},transition:{duration:.2},email:g,setEmail:y,handleIsUsingPassword:()=>A("password"),handleIsUsingSSO:()=>A("sso"),handleMagicLinkSent:C},"social")}),_[1]=v,_[2]=g,_[3]=C,_[4]=y,_[5]=o):o=_[5],_[6]!==w||_[7]!==v?(l="password"===v?(0,t.jsx)(u.Text,{as:"p",align:"center",className:p.default.crossLink,children:(0,t.jsx)(r.default,{href:"/password/forgot",className:p.default.crossLinkAnchor,onClick:()=>{w.track(m.AnalyticsEvent.RequestForgotPassword)},children:"Forgot password?"})}):(0,t.jsxs)(u.Text,{as:"p",align:"center",className:p.default.crossLink,children:["Don’t have an account?"," ",(0,t.jsx)(r.default,{href:"/signup",className:p.default.crossLinkAnchor,children:"Sign up"})]}),_[6]=w,_[7]=v,_[8]=l):l=_[8],_[9]!==o||_[10]!==l?(x=(0,t.jsxs)(c.Flex,{direction:"column",gap:"4",children:[o,l]}),_[9]=o,_[10]=l,_[11]=x):x=_[11],_[12]!==j||_[13]!==x?(f=(0,t.jsxs)(c.Flex,{direction:"column",gap:"7",className:p.default.form,ref:j,children:[s,x]}),_[12]=j,_[13]=x,_[14]=f):f=_[14],f});e.s(["default",0,function(){let e,s=(0,i.c)(3),[l,r]=(0,n.useState)(""),[c,d]=(0,n.useState)(!1);return s[0]!==l||s[1]!==c?(e=(0,t.jsx)(o.default,{children:(0,t.jsx)(a.AnimatePresence,{mode:"wait",initial:!1,children:c?(0,t.jsx)(T,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},email:l,handleBack:()=>d(!1)},"magic-link-sent"):(0,t.jsx)(N,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},email:l,setEmail:r,handleMagicLinkSent:()=>d(!0)},"login-start")})}),s[0]=l,s[1]=c,s[2]=e):e=s[2],e}],153232)}]);

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.