PageSourceSearch

https://mymindbase.ai/_next/static/chunks/app/(marketplace)/login/page-6d17882afd2afa30.js

js mymindbase.ai collected 2026-10-05 14:04:05 UTC 21,200 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98205],{1377:(e,t,r)=>{"use strict";r.d(t,{U:()=>a});var n=r(9652);async function a(e){let t=await (0,n.B9)(e);return"ok"!==t.state?t:{state:"ok",status:{verified:t.profile.verified,quoteReady:t.profile.quoteReady}}}},3290:(e,t,r)=>{"use strict";r.d(t,{e:()=>l,f:()=>c});var n=r(95155),a=r(18726),o=r(64269);let i={sm:"size-5",md:"size-8"},s={sm:20,md:32};function c(e){let{label:t,size:r="md",tone:c="auto",variant:l="circle",className:u}=e;return"matrix"===l?(0,n.jsx)(a.y,{variant:"matrix",tone:c,size:s[r],className:u,"aria-label":t}):(0,n.jsx)(a.y,{tone:c,className:(0,o.cn)(i[r],u),"aria-label":t})}function l(e){let{label:t,className:r,tone:a="auto"}=e;return(0,n.jsx)("div",{className:(0,o.cn)("flex min-h-[calc(100dvh-var(--mp-app-topbar-h))] w-full items-center justify-center",r),children:(0,n.jsx)(c,{label:t,tone:a,variant:"matrix"})})}},3998:(e,t,r)=>{"use strict";r.d(t,{$n:()=>l,he:()=>s,ru:()=>c});var n=r(95155);r(12115);var a=r(32467),o=r(83101),i=r(64269);let s="relative isolate overflow-hidden before:pointer-events-none before:absolute before:inset-0 before:-z-10 before:-translate-x-full before:bg-gradient-to-r before:from-transparent before:to-transparent before:transition-transform before:duration-slow before:ease-smooth hover:before:translate-x-full focus-visible:before:translate-x-full motion-reduce:before:hidden",c=(0,o.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium transition-all duration-base ease-smooth active:scale-[0.98] motion-reduce:active:scale-100 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-raised hover:shadow-raised-hover active:shadow-xs border border-transparent",destructive:"bg-destructive text-destructive-foreground shadow-raised hover:shadow-md hover:bg-destructive/90 active:shadow-xs focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 border border-transparent","call-destructive":"bg-destructive text-destructive-foreground shadow-destructive-glow hover:shadow-destructive-glow-hover hover:bg-destructive/90 active:shadow-destructive-glow-active focus-visible:ring-destructive/25 dark:focus-visible:ring-destructive/40 border border-transparent",outline:"border border-border bg-background text-foreground shadow-xs hover:shadow-sm hover:bg-muted hover:text-foreground hover:border-border/80 active:shadow-xs dark:bg-card dark:border-border dark:hover:bg-muted",secondary:"bg-muted text-foreground shadow-xs hover:shadow-sm hover:bg-muted/80 active:shadow-xs dark:bg-muted dark:hover:bg-muted/80 border border-transparent",ghost:"text-foreground hover:bg-muted hover:text-foreground active:bg-muted/80 dark:hover:bg-muted/50 dark:active:bg-muted/40 border border-transparent","icon-ghost":"bg-accent text-accent-foreground dark:bg-accent/50 hover:bg-accent/80 hover:shadow-sm active:bg-accent/90 dark:hover:bg-accent/70 border border-transparent","icon-destructive":"bg-destructive/10 text-destructive dark:bg-destructive/20 hover:bg-destructive/20 hover:shadow-destructive-soft active:bg-destructive/25 dark:hover:bg-destructive/30 border border-transparent",link:"text-foreground underline-offset-4 hover:underline hover:text-foreground/80 active:text-foreground/70 border border-transparent","upload-card":"relative flex flex-col items-start justify-start gap-3 !border-2 !border-dashed border-foreground
1/20 bg-muted/40 text-muted-foreground transition-all duration-200 hover:bg-muted/50 hover:text-foreground hover:border-primary/40 [&_svg]:size-5 shadow-none","upload-card-primary":"bg-primary text-primary-foreground shadow-raised hover:shadow-raised-hover hover:bg-primary/90 active:shadow-xs flex-col items-start gap-3 [&_svg]:size-5"},size:{sm:"py-1.5 px-3 rounded-[6px]",default:"py-2 px-4 rounded-[8px]",lg:"py-3 px-6 rounded-[12px]",icon:"h-10 w-10 rounded-[8px]","icon-sm":"h-8 w-8 rounded-[6px]","upload-card":"py-4 px-4 min-w-[140px] w-auto rounded-[8px]"},shine:{true:"".concat(s," before:via-primary-foreground/25"),false:""}},defaultVariants:{variant:"default",size:"default",shine:!1}});function l(e){let{className:t,variant:r,size:o,shine:s,asChild:l=!1,...u}=e,d=l?a.DX:"button";return(0,n.jsx)(d,{"data-slot":"button",className:(0,i.cn)(c({variant:r,size:o,shine:s,className:t})),...u})}},9652:(e,t,r)=>{"use strict";r.d(t,{B9:()=>i,kf:()=>c});var n=r(55678),a=r(48466),o=r(60901);async function i(e){let t;try{t=await fetch("/api/marketplace/creator/profile",{headers:await (0,a.qs)(e),signal:AbortSignal.timeout(1e4)})}catch(e){return{state:"unreachable"}}if(t.status>=500)return{state:"unreachable"};if(!t.ok)return{state:"empty"};try{let r=await t.json();if("object"!=typeof r||null===r)return{state:"empty"};let a=Reflect.get(r,"account"),o=null!=a?(0,n.z4)(a):null,i=Reflect.get(r,"accountUpdatedAt"),s=Reflect.get(r,"creatorId"),c=Reflect.get(r,"publicPath"),l=Reflect.get(r,"verified"),u=Reflect.get(r,"quoteReady");return{state:"ok",profile:{creatorId:"string"==typeof s?s:e.uid,publicPath:"string"==typeof c?c:"/creators/".concat(e.uid),verified:!0===l,quoteReady:!0===u,account:o,accountUpdatedAt:"string"==typeof i?i:null}}}catch(e){return{state:"unreachable"}}}async function s(e){let t=await i(e);return"ok"===t.state?t.profile:null}async function c(e){(0,o.b)(e.uid);let t=(0,n.w2)(),r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,n.w2)();return!e.displayName.trim()}(t),a=(0,n.vl)(t);if(!r&&a)return t;let i=await s(e);return(null==i?void 0:i.account)&&i.account.displayName.trim()&&(r||i.quoteReady&&!a)?((0,n.Nn)(i.account),i.account):t}},18726:(e,t,r)=>{"use strict";r.d(t,{y:()=>g});var n=r(95155),a=r(92033),o=r(64269),i=r(12115);let s=(0,i.lazy)(()=>Promise.all([r.e(20459),r.e(99443)]).then(r.bind(r,99443)).then(e=>({default:e.DotmSquare3})));function c(e){return Math.max(2,Math.round(.14*e))}function l(e){let{size:t,className:r}=e,a=c(t),i=Math.max(0,(t-5*a)/4);return(0,n.jsx)("span",{"aria-hidden":!0,className:(0,o.cn)("inline-grid shrink-0 grid-cols-5 place-items-center",r),style:{width:t,height:t,gap:i},children:Array.from({length:25},(e,t)=>(0,n.jsx)("span",{className:"rounded-full bg-current opacity-15",style:{width:a,height:a}},t))})}function u(e){let{size:t=32,className:r,"aria-label":a="Loading",role:u="status"}=e;return(0,n.jsx)("div",{role:u,"aria-label":a,className:(0,o.cn)("inline-flex shrink-0",r),children:(0,n.jsx)("div",{"aria-hidden":!0,className:"inline-flex",children:(0,n.jsx)(i.Suspense,{fallback:(0,n.jsx)(l,{size:t}),children:(0,n.jsx)(s,{size:t,dotSize:c(t),ariaLabel:a})})})})}let d={auto:"text-muted-foreground",onLight:"text-foreground/55",onDark:"text-white",inherit:"text-current"};function f(e){let{className:t,size:r,toneClass:i,...s}=e;return(0,n.jsxs)("div",{className:(0,o.cn)("relative inline-flex shrink-0 size-4",i,t),style:null!=r?{width:r,height:r}:void 0,...s,children:[(0,n.jsx)("div",{className:"absolute inset-0 rotate-180",children:(0,n.jsx)(a.A,{"aria-hidden":!0,className:"size-full animate-spin opacity-20"})}),(0,n.jsx)(a.A,{"aria-hidden":!0,className:"relative size-full animate-spin"})]})}function p(e){let{className:t,size:r=24,toneClass:a,...i}=e;return(0,n.jsx)("svg",{height:r,width:r,preserveAspectRatio:"xMidYMid",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",className:(0,o.cn)("inline-block shrink-0",a,t),...i,children:(0,n.jsx)("path",{d:"M24.3 30C11.4 30 5 43.3 5 50s6.4 20 19.3 20c19.3 0 32.1-40 51.4-40 C88.6 30 95 43.3 95 50s-6.4 20-19.3 20C56.4 70 43.6 30 24.3 30z",fill:"none",stroke:"currentColor",strokeDasharray:"205.271142578125 51.317785644531256",strokeLinecap:"round",strokeWidth:"10",style:{transform:"scale(0.8)",transformOrigin:"50px 50px"},children:(0,n.jsx)("animate",{attributeName:"stroke-dashoffset",dur:"2s",keyTimes:"0;
11",repeatCount:"indefinite",values:"0;256.58892822265625"})})})}function g(e){let{className:t,tone:r="auto",variant:a="circle-filled",size:i,"aria-label":s="Loading",role:c="status"}=e,l=d[r],g={role:c,"aria-label":s};return"matrix"===a?(0,n.jsx)(u,{className:(0,o.cn)(l,t),size:i,...g}):"infinite"===a?(0,n.jsx)(p,{className:t,size:i,toneClass:l,...g}):(0,n.jsx)(f,{className:t,size:i,toneClass:l,...g})}},26349:(e,t,r)=>{"use strict";r.d(t,{$n:()=>c,So:()=>i,wj:()=>l});var n=r(83669),a=r(48466),o=r(60901);async function i(e){let t;try{t=await fetch("/api/marketplace/client/profile",{headers:await (0,a.qs)(e),signal:AbortSignal.timeout(1e4)})}catch(e){return{state:"unreachable"}}if(t.status>=500)return{state:"unreachable"};if(!t.ok)return{state:"empty"};try{let r=await t.json();if("object"!=typeof r||null===r)return{state:"empty"};let a=Reflect.get(r,"account"),o=null!=a?(0,n.YN)(a):null,i=Reflect.get(r,"accountUpdatedAt"),s=Reflect.get(r,"clientId");return{state:"ok",profile:{clientId:"string"==typeof s?s:e.uid,complete:!0===Reflect.get(r,"complete"),account:o,accountUpdatedAt:"string"==typeof i?i:null}}}catch(e){return{state:"unreachable"}}}async function s(e){let t=await i(e);return"ok"===t.state?t.profile:null}async function c(e){(0,o.b)(e.uid);let t=(0,n.PD)();if(!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,n.PD)();return!e.displayName.trim()}(t))return t;let r=await s(e);return(null==r?void 0:r.account)&&r.account.displayName.trim()?((0,n.q5)(r.account),r.account):t}async function l(e,t){if(!t)return{ok:!1,error:"Sign in to save your profile.",needsAuth:!0};let r=await (0,a.qs)(t),n=await fetch("/api/marketplace/client/profile",{method:"PUT",headers:r,body:JSON.stringify({account:e})});if(!n.ok)return{ok:!1,error:await (0,a.tR)(n)};let o=await n.json().catch(()=>null);return{ok:!0,clientId:"object"==typeof o&&null!==o&&"string"==typeof Reflect.get(o,"clientId")?Reflect.get(o,"clientId"):t.uid,accountUpdatedAt:"object"==typeof o&&null!==o&&"string"==typeof Reflect.get(o,"accountUpdatedAt")?Reflect.get(o,"accountUpdatedAt"):null}}},42637:(e,t,r)=>{"use strict";r.d(t,{OnboardingLoadingState:()=>i});var n=r(95155),a=r(3290),o=r(64269);function i(e){let{label:t,className:r}=e;return(0,n.jsx)("div",{className:(0,o.cn)("flex min-h-[calc(100dvh-var(--mp-app-topbar-h))] w-full flex-col items-center justify-center gap-3",r),role:"status",children:(0,n.jsx)(a.f,{label:t,size:"md"})})}},45415:(e,t,r)=>{"use strict";r.d(t,{BF:()=>s.B,I3:()=>l,uK:()=>c});var n=r(95155);r(12115);var a=r(52619),o=r.n(a),i=r(32467),s=r(68009);function c(e){let{className:t,variant:r,size:a,shine:o,asChild:c=!1,type:l="button",...u}=e,d=c?i.DX:"button";return(0,n.jsx)(d,{"data-slot":"button","data-mp-button-variant":null!=r?r:"primary","data-mp-button-size":null!=a?a:"default",type:c?void 0:l,className:(0,s.B)(null!=r?r:"primary",null!=a?a:"default",t,null!=o&&o),...u})}function l(e){let{className:t,variant:r="primary",size:a="default",shine:i=!1,children:c,...l}=e;return(0,n.jsx)(o(),{"data-slot":"button","data-mp-button-variant":r,"data-mp-button-size":a,className:(0,s.B)(r,a,t,i),...l,children:c})}},45994:(e,t,r)=>{Promise.resolve().then(r.bind(r,85865))},48466:(e,t,r)=>{"use strict";async function n(e){let t=new Headers;if(t.set("Content-Type","application/json"),e){let r=await e.getIdToken();t.set("Authorization","Bearer ".concat(r))}return t}function a(e,t){if("object"!=typeof e||null===e||!("error"in e))return t;let r=Reflect.get(e,"error");return"string"==typeof r&&r.trim()?r:t}async function o(e){let t=await e.json().catch(()=>null);return 401===e.status?a(t,"Sign in to continue"):a(t,e.statusText||"Request failed")}r.d(t,{Nn:()=>a,qs:()=>n,tR:()=>o})},49260:(e,t,r)=>{"use strict";r.d(t,{n:()=>a});var n=r(73387);function a(e,t,r){(0,n.f0)({action:e,category:"marketplace",label:t,value:r})}},60901:(e,t,r)=>{"use strict";r.d(t,{T:()=>s,b:()=>c});var n=r(55678),a=r(83669);let o="marketplace:account-owner",i=[n.L,a.uB,"marketplace:app-role","marketplace:client-setup-next","marketplace:email","marketplace:project-draft","marketplace:project-proposals","marketplace:published-projects","marketplace:direct-hire","marketplace:preselect","marketplace:notify","marketplace:chat-push"];function s(){for(let e of[...i,o])try{localStorage.removeItem(e),sessionStorage.removeItem(e)}catch(e){}}function c(e){if(!e)return!1;let t=null;try{t=localStorage.getItem(o)}catch(e){return!1}if(t===e)return!1;let r=null!==t||i.some(e=>{try{return null!==localStorage.getItem(e)}catch(e){return!1}});r&&s();try{localStorage.setItem(o,e)}catch(e){}return r}},68009:(e,t,r)=>{"use strict";r.d(t,{B:()=>c});
1var n=r(83101),a=r(3998),o=r(54158),i=r(64269);let s=(0,n.F)("box-border inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium no-underline transition-colors duration-200 ease-out disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*=size-])]:size-4 shrink-0 [&_svg]:shrink-0 cursor-pointer outline-none shadow-none mp-focus",{variants:{variant:{primary:"border border-transparent bg-primary text-primary-foreground hover:bg-mp-accent-hover",secondary:"border border-mp-border bg-mp-surface text-mp-foreground hover:border-mp-border-strong hover:bg-mp-surface-elevated",ghost:"border border-transparent text-mp-muted-foreground hover:bg-mp-surface-elevated hover:text-mp-foreground",outline:"border border-mp-border bg-transparent text-mp-foreground hover:bg-mp-surface-elevated hover:border-mp-border-strong",solid:"border border-transparent bg-primary text-primary-foreground hover:bg-mp-accent-hover",inverse:"border border-transparent bg-mp-surface-elevated text-mp-foreground hover:bg-mp-surface",destructive:"border border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/90"},size:{default:"".concat(o.xI," px-4 text-sm rounded-lg"),sm:"".concat(o.cM," px-2.5 text-sm rounded-md"),lg:"".concat(o.xI," px-5 text-base rounded-lg"),icon:"".concat(o.Id," shrink-0 rounded-lg p-0")},shine:{true:a.he,false:""}},compoundVariants:[{shine:!0,variant:["primary","solid","destructive"],className:"before:via-primary-foreground/25"},{shine:!0,variant:["secondary","outline","inverse","ghost"],className:"before:via-mp-foreground/10"}],defaultVariants:{variant:"primary",size:"default",shine:!1}});function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"primary",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,i.cn)(s({variant:e,size:t,shine:n}),r)}},70622:(e,t,r)=>{"use strict";r.d(t,{RC:()=>i,jM:()=>s,uD:()=>o});var n=r(65590);let a="marketplace:app-role";function o(e){return"creator"===e?n.fq.creatorDashboard:n.fq.dashboard}function i(e){try{sessionStorage.setItem(a,e)}catch(e){}}function s(){try{let e=sessionStorage.getItem(a);return"creator"===e||"client"===e?e:null}catch(e){return null}}},73387:(e,t,r)=>{"use strict";r.d(t,{JR:()=>a,f0:()=>o});let n="G-YSHJ4PDENS",a=e=>{"function"==typeof window.gtag&&n&&window.gtag("config",n,{page_path:e})},o=e=>{let{action:t,category:r,label:a,value:o}=e;"function"==typeof window.gtag&&n&&window.gtag("event",t,{event_category:r,event_label:a,value:o})}},76545:(e,t,r)=>{"use strict";r.d(t,{BM:()=>f,D$:()=>p,GC:()=>A,HC:()=>q,HQ:()=>g,Lp:()=>v,OR:()=>h,RS:()=>m,U7:()=>I,WH:()=>S,_l:()=>D,bD:()=>N,cI:()=>y,cb:()=>_,co:()=>b,ew:()=>d,fT:()=>k,jm:()=>R,mf:()=>C,n6:()=>z,od:()=>w,ym:()=>j});var n=r(70622),a=r(83669),o=r(55678),i=r(65590);let s="marketplace:auth-pending",c="marketplace:return-to-publish",l="marketplace:logging-out",u="marketplace:needs-intent";function d(e){if(!e)return null;let t=e.trim();return!t.startsWith("/")||t.startsWith("//")||t.includes("://")?null:t}function f(e){let t=new URLSearchParams(e.startsWith("?")?e.slice(1):e);return d(t.get("next")||t.get("redirect"))}function p(){let e=(0,n.jM)();return e||((0,o.DM)((0,o.w2)())?"creator":(0,a.c9)((0,a.PD)())?"client":null)}function g(e){try{sessionStorage.setItem(s,JSON.stringify({...e,at:Date.now()}))}catch(e){}}function m(){try{let e=sessionStorage.getItem(s);if(!e)return null;let t=JSON.parse(e);if(!t||"object"!=typeof t)return null;let r=t.kind;if("login"!==r&&"join-client"!==r&&"join-creator"!==r)return null;let n="number"==typeof t.at?t.at:0;if(Date.now()-n>9e5)return h(),null;return{kind:r,next:d("string"==typeof t.next?t.next:null)}}catch(e){return null}}function h(){try{sessionStorage.removeItem(s)}catch(e){}}function v(e,t){if("join-creator"===e)return i.fq.creatorOnboarding;if("join-client"===e)return i.fq.clientSetup;let r=p();return r?((0,n.RC)(r),t&&"client"===r&&!(0,i.aW)(t,"/creator")||t&&"creator"===r&&(0,i.aW)(t,"/creator"))?t:(0,n.uD)(r):i.fq.onboarding}function b(e,t){let r=d(t);return r&&("client"===e&&!(0,i.aW)(r,"/creator")||"creator"===e&&(0,i.aW)(r,"/creator"))?r:null}function x(){try{window.dispatchEvent(new Event("marketplace:needs-intent"))}catch(e){}}function y(e){try{localStorage.setItem(u,JSON.stringify({next:d(e),at:Date.now()})),x()}catch(e){}}function w(){try{var e;let t=null!=(e=localStorage.getItem(u))?e:sessionStorage.getItem(u);if(!t)return null;let r=JSON.parse(t);if(!r||"object"!=typeof r)return null;
1return{next:d("string"==typeof r.next?r.next:null)}}catch(e){return null}}function k(){try{localStorage.removeItem(u),sessionStorage.removeItem(u),x()}catch(e){}}function j(e){let t=d(e);return t?"".concat(i.fq.login,"?next=").concat(encodeURIComponent(t)):i.fq.login}function S(e){let t=d(e);return t?"".concat(i.fq.joinClient,"?next=").concat(encodeURIComponent(t)):i.fq.joinClient}function N(e){let t=d(e);return t?"".concat(i.fq.joinCreator,"?next=").concat(encodeURIComponent(t)):i.fq.joinCreator}function I(){return d("".concat(window.location.pathname).concat(window.location.search))}function R(e,t){return"join-client"===e?S(t):"join-creator"===e?N(t):j(t)}function z(){try{sessionStorage.setItem(c,"1")}catch(e){}}function C(){try{let e="1"===sessionStorage.getItem(c);return e&&sessionStorage.removeItem(c),e}catch(e){return!1}}function _(){try{sessionStorage.setItem(l,"1")}catch(e){}}function q(){try{return"1"===sessionStorage.getItem(l)}catch(e){return!1}}function D(){try{sessionStorage.removeItem(l)}catch(e){}}function A(e){return(0,i.aW)(e,"/creator/onboarding")?"join-creator":(0,i.aW)(e,"/account/setup")?"join-client":"login"}},85865:(e,t,r)=>{"use strict";r.d(t,{LoginPageClient:()=>v});var n=r(95155),a=r(20063),o=r(12115),i=r(42637),s=r(45415),c=r(13570),l=r(49260),u=r(76545),d=r(83669),f=r(55678),p=r(89161),g=r(65590),m=r(54158),h=r(64269);function v(){let e=(0,a.useRouter)(),t=(0,a.useSearchParams)(),{user:r,loading:v}=(0,c.A)(),b=(0,o.useRef)(r),x=(0,o.useRef)(!1),[y,w]=(0,o.useState)(!1),[k,j]=(0,o.useState)(!1),[S,N]=(0,o.useState)(null),I=(0,o.useMemo)(()=>(0,u.BM)(t.toString()),[t]);(0,o.useEffect)(()=>{b.current=r},[r]),(0,o.useEffect)(()=>{v||r||((0,u.HQ)({kind:"login",next:I}),e.replace(g.fq.home))},[v,r,I,e]);let R=(0,o.useCallback)(async()=>{var t,r,n;let a=b.current;if(!a||x.current)return;x.current=!0;let o=(0,u.RS)();(0,u.OR)();let i=null!=(t=null==o?void 0:o.kind)?t:"login",s=null!=(r=null==o?void 0:o.next)?r:I;if("join-client"===i||"join-creator"===i){(0,u.fT)(),"join-client"===i&&s&&(0,d.F9)(s),"join-creator"===i&&s&&(0,f.c_)(s);let t=(0,u.Lp)(i,s);(0,l.n)("mp_login_success",i),N(t),w(!0),j(!1),e.replace(t);return}let c=await (0,p.Wu)(a);if("ok"===c.state&&c.locked){(0,u.fT)();let t=(0,p.So)(c.locked),r=null!=(n=(0,u.co)(c.locked,s))?n:t;(0,l.n)("mp_login_success",c.locked),N(r),w(!0),j(!1),e.replace(r);return}(0,u.cI)(s);let m=g.fq.onboarding;(0,l.n)("mp_login_success",m),(0,l.n)("mp_post_auth_intent","login"),N(m),w(!0),j(!1),e.replace(m)},[I,e]);return((0,o.useEffect)(()=>{!v&&r&&R()},[v,null==r?void 0:r.uid,R]),(0,o.useEffect)(()=>{if(!y||k)return;let e=window.setTimeout(()=>j(!0),1e4);return()=>window.clearTimeout(e)},[y,k]),v&&r||r&&!k)?(0,n.jsx)(i.OnboardingLoadingState,{label:"Signing you in"}):r&&k?(0,n.jsxs)("div",{className:"mx-auto flex min-h-[40vh] w-full max-w-sm flex-col items-center justify-center gap-4 px-4 text-center",children:[(0,n.jsx)("p",{className:(0,h.cn)(m.uS,"text-mp-muted-foreground"),children:"Taking longer than expected. Continue to your workspace."}),(0,n.jsx)(s.I3,{href:null!=S?S:(0,u.Lp)("login",I),children:"Continue"})]}):null}},89161:(e,t,r)=>{"use strict";r.d(t,{So:()=>s,Wu:()=>i});var n=r(70622),a=r(26349),o=r(1377);async function i(e){let[t,r]=await Promise.all([(0,a.So)(e),(0,o.U)(e)]);if("unreachable"===t.state||"unreachable"===r.state)return{state:"unreachable"};let n={clientComplete:"ok"===t.state&&t.profile.complete,creatorVerified:"ok"===r.state&&r.status.verified};return{state:"ok",locked:n.creatorVerified?"creator":n.clientComplete?"client":null,flags:n}}function s(e){return(0,n.RC)(e),(0,n.uD)(e)}}},e=>{e.O(0,[27811,24909,18720,52619,83135,85434,42450,13570,65590,70839,60066,28441,31255,77358],()=>e(e.s=45994)),_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.