1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[343],{17480:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>k});var r=i(95155),o=i(19749),t=i(12115),a=i(2857),s=i(82222),d=i(73549),c=i.n(d),u=i(83973),l=i(85677),_=i(93732),h=i(70957),g=i(92690),v="Your sign-in session expired. Please start again.",m="We couldn't complete that sign-in. Please try again, or use a different method.",f="We couldn't read your profile from that provider. Please try again.",p="An account already exists for this email. Sign in with your original method to continue.",b="That sign-in didn't include a verified email, so we couldn't continue. Try another method.",w={invalid_password:"Invalid email or password.",email_not_verified:"Please verify your email before signing in. Check your inbox.",user_banned:"Your account has been suspended.",invalid_token:"This link has expired or is invalid. Please try again.",account_not_found:"Account not found.",too_many_requests:"Too many attempts. Please wait a few minutes and try again.",email_not_found:b,email_is_missing:b,account_wrong_provider:p,provider_no_email:b,provider_email_unverified:b,account_not_linked:p,account_exists:p,account_already_linked_to_different_user:"That account is already linked to a different Anathema account.",access_denied:"Sign-in was cancelled. You can try again whenever you're ready.",oauth_error:m,invalid_code:m,code_exchange_failed:m,oauth_code_verification_failed:m,oAuth_code_missing:m,no_code:m,invalid_callback_request:m,no_callback_url:m,oauth_provider_not_found:m,unable_to_link_account:m,name_is_missing:m,"email_doesn't_match":m,issuer_mismatch:m,issuer_missing:m,signup_failed:"We couldn't create your account. Please try again.",convert_failed:"Something went wrong switching your sign-in method. Please try again.",session_failed:"We couldn't sign you in. Please try again.",account_id_missing:"That provider didn't return a usable account. Try a different method.",internal_server_error:"Something went wrong on our end. Please try again.",provider_userinfo_failed:f,unable_to_get_user_info:f,user_info_is_missing:f,unknown_provider:"That sign-in provider isn't available.",provider_not_configured:"That sign-in provider isn't available right now.",state_mismatch:v,state_not_found:v,please_restart_the_process:v},y=new Set(["account_wrong_provider","account_exists","account_not_linked"]);function x(){var e,n,i,t,d,v,m,f,p,b,x,k,P,j,S,C,T,A,O,W,B=(0,o.c)(39),E=(0,s.useSearchParams)();if(B[0]!==E){var Y,N,Q,U,q,z=(Y=E.get("error"),N=E.get("provider"),{message:null!=(Q=null!=(U=function(e,n){if(!(0,g.nv)(n))return null;var i=(0,g.sQ)(n);switch(e){case"account_wrong_provider":return"This email already signs in with ".concat(i,'. Use the "Continue with ').concat(i,'" button.');case"provider_no_email":return"Your ".concat(i," account didn't share an email, so we couldn't continue. Add or share an email with ").concat(i,", or use another sign-in method.");case"provider_email_unverified":return"Your ".concat(i," email isn't verified, so we couldn't continue. Verify it with ").concat(i,", then try again.");default:return null}}(q=Y||"unknown",N))?U:Object.hasOwn(w,q)?w[q]:void 0)?Q:"Something went wrong. Please try again.",directProvider:"account_wrong_provider"===q&&(0,g.nv)(N)?N:null,accountExists:y.has(q)}),I=z.message,R=z.directProvider;d=z.accountExists,t=l.r,j="centered",i=_.U,b="alert",x="danger",k="Authentication error",P=I,n=a.Flex,f="3",p="1",e=h.B,v=!0,m=R?(0,r.jsxs)("a",{href:"/api/auth/convert/start?provider=".concat(encodeURIComponent(R)),children:["Continue with ",(0,g.sQ)(R)]}):(0,r.jsx)(c(),{href:"/signin",children:"Sign in"}),B[0]=E,B[1]=e,B[2]=n,B[3]=i,B[4]=t,B[5]=d,B[6]=v,B[7]=m,B[8]=f,B[9]=p,B[10]=b,B[11]=x,B[12]=k,B[13]=P,B[14]=j}else e=B[1],n=B[2],i=B[3],t=B[4],d=B[5],v=B[6],m=B[7],f=B[8],p=B[9],b=B[10],x=B[11],k=B[12],P=B[13],j=B[14];return B[15]!==e||B[16]!==v||B[17]!==m?(S=(0,r.jsx)(e,{asChild:v,children:m}),B[15]=e,B[16]=v,B[17]=m,B[18]=S):S=B[18],B[19]!==d?(C=!d&&(0,r.jsx)(h.B,{asChild:!0,tone:"outline",children:(0,r.jsx)(c(),{href:"/signup",children:"Create account"})}),B[19]=d,B[20]=C):C=B[20],B[21]!==n||B[22]!==C||B[23]!==f||B[24]!==p||B[25]!==S?(T=(0,r.jsxs)(n,{gap:f,mt:p,children:[S,C]}),B[21]=n,B[22]=C,B[23]=f,B[24]=p,B[25]=S,B[26]=T):T=B[26],B[27]===Symbol.for("react.memo_cache_sentinel")?(A=(0,r.jsx)(u.k,{href:"/",color:"fg.subtle",fontSize:"sm",children:"Back to home"}),B[27]=A):A=B[27],B[28]!==i||B[29]!==T||B[30]!==b||B[31]!==x||B[32]!==k||B[33]!==P?(O=(0,r.jsxs)(i,{icon:b,tone:x,heading:k,body:P,children:[T,A]}),B[28]=i,B[29]=T,B[30]=b,B[31]=x,B[32]=k,B[33]=P,B[34]=O):O=B[34],B[35]!==t||B[36]!==O||B[37]!==j?(W=(0,r.jsx)(t,{layout:j,children:O}),B[35]=t,B[36]=O,B[37]=j,B[38]=W):W=B[38],W}function k(){var e,n=(0,o.c)(1);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(t.Suspense,{children:(0,r.jsx)(x,{})}),n[0]=e):e=n[0],e}},70957:(e,n,i)=>{"use strict";i.d(n,{B:()=>c});var r=i(43078),o=i(96843),t=i(69489),a=i(95155),s=i(19749),d=i(92206);function c(e){var n,i,c,u,l,_,h,g=(0,s.c)(13);g[0]!==e?(c=e.tone,u=e.width,i=(0,t._)(e,["tone","width"]),g[0]=e,g[1]=i,g[2]=c,g[3]=u):(i=g[1],c=g[2],u=g[3]);var v=void 0===c?"primary":c,m="full"===(void 0===u?"auto":u);g[4]!==m?(l=m?{h:"9",w:"100%"}:{h:"9",px:"4"},g[4]=m,g[5]=l):l=g[5];var f=l;g[6]!==v?(_="primary"===v?{bg:"brand.solid",color:"brand.contrast",fontWeight:"semibold",_hover:{boxShadow:"0 10px 28px -10px rgba(122,110,170,0.55)"},transition:"box-shadow {durations.base} {easings.standard}"}:{variant:"outline",bg:"transparent",border:"1px solid",borderColor:"border.field",color:"fg",fontWeight:"medium",_hover:{borderColor:"border.hover",bg:"bg.hover"},transition:"border-color {durations.base} {easings.standard}, background {durations.base} {easings.standard}"},g[6]=v,g[7]=_):_=g[7];var p=_,b=i.asChild?void 0:null!=(n=i.type)?n:"button";return g[8]!==i||g[9]!==f||g[10]!==b||g[11]!==p?(h=(0,a.jsx)(d.Button,(0,o._)((0,r._)({borderRadius:"control",fontSize:"sm"},f,p,i),{type:b})),g[8]=i,g[9]=f,g[10]=b,g[11]=p,g[12]=h):h=g[12],h}},80764:(e,n,i)=>{Promise.resolve().then(i.bind(i,17480))},92690:(e,n,i)=>{"use strict";i.d(n,{nv:()=>t,sQ:()=>o});var r={google:"Google",twitter:"X",ncd:"NiceCrew"};function o(e){var n;return null!=(n=r[e])?n:"that provider"}function t(e){return!!e&&Object.hasOwn(r,e)}}},e=>{e.O(0,[6351,3549,9539,8610,8441,9342,570,7358],()=>e(e.s=80764)),_N_E=e.O()}]);
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.