1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[684],{7017:(e,t,r)=>{"use strict";r.d(t,{DashboardOverview:()=>P});var a=r(4251),n=r(6192),d=r.n(n),s=r(9330),o=r(4125),i=r(667),l=r(2175);function c(){let[e,t]=(0,i.useState)("loading"),[r,a]=(0,i.useState)(null);return(0,i.useEffect)(()=>{let e=!1;return(async()=>{try{let r=await (0,l.Ay)();if(!e){if("ready"===r.kind){a(r.profile),t("ready");return}a(null),t(r.kind)}}catch(r){if(r instanceof Error){e||(a(null),t("error"));return}throw r}})(),()=>{e=!0}},[]),{loadState:e,profile:r}}let u={irreversible:"border-red-400/40 bg-red-400/10 text-red-200",high:"border-orange-400/40 bg-orange-400/10 text-orange-200",medium:"border-amber-400/30 bg-amber-400/10 text-amber-200",low:"border-border bg-secondary/50 text-muted-foreground"},m={pending:"Pending","in-progress":"In progress",filed:"Filed",overdue:"Overdue"};function x({loadState:e,profile:t}){if("loading"===e)return(0,a.jsxs)("div",{className:"mt-4 rounded-md border border-border bg-background/60 p-4",children:[(0,a.jsx)("p",{className:"font-medium text-foreground",children:"Loading saved setup profile"}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:"Checking the saved setup profile before showing maintenance tasks."})]});if("unauthorized"===e)return(0,a.jsxs)("div",{className:"mt-4 rounded-md border border-border bg-background/60 p-4",children:[(0,a.jsx)("p",{className:"font-medium text-foreground",children:"Sign in required"}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:"Sign in to load saved setup profile and maintenance tasks."})]});if("error"===e)return(0,a.jsxs)("div",{className:"mt-4 rounded-md border border-border bg-background/60 p-4",children:[(0,a.jsx)("p",{className:"font-medium text-foreground",children:"Setup profile unavailable"}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:"The saved setup profile could not be loaded."})]});let r=(0,o.qo)(t);return(0,a.jsx)("div",{className:"mt-4 space-y-3",children:r.map(e=>(0,a.jsxs)("div",{className:"rounded-md border border-border bg-background/60 p-3",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-foreground",children:e.title}),(0,a.jsx)("p",{className:"mt-1 font-mono text-xs text-muted-foreground",children:e.deadline})]}),(0,a.jsx)("span",{className:`rounded-full border px-2 py-0.5 text-xs ${u[e.riskLevel]}`,children:e.riskLevel})]}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:e.detail}),(0,a.jsx)("p",{className:"mt-2 text-xs text-accent",children:m[e.status]})]},e.id))})}function p({loadState:e,profile:t}={}){return e&&void 0!==t?(0,a.jsx)(x,{loadState:e,profile:t}):(0,a.jsx)(g,{})}function g(){let e=c();return(0,a.jsx)(x,{loadState:e.loadState,profile:e.profile})}var f=r(8717),b=r(4569);let h=(0,r(6043).A)("file-check-corner",[["path",{d:"M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6",key:"g5mvt7"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14 20 2 2 4-4",key:"15kota"}]]),j=e=>o.Og.find(t=>t.id===e)?.name??e,N={entity:f.A,agent:b.A,timeline:h};function v({loadState:e,profile:t}){let r=(({loadState:e,profile:t})=>{if("loading"===e)return[{label:"Saved setup",value:"Checking workspace",detail:"Loading the persisted setup profile.",tone:"neutral",icon:"entity"},{label:"Entity details",value:"Awaiting profile",detail:"Wizard values will appear here once the profile is loaded.",tone:"neutral",icon:"agent"},{label:"Compliance readiness",value:"Waiting on profile",detail:"Timers stay advisory until saved setup details are available.",tone:"neutral",icon:"timeline"}];if(t){let e,r,a="already_formed"===t.formationStatus?`${j(t.entityType)} formed through ${(e=>{switch(e){case"stripe_atlas":return"Stripe Atlas";case"firstbase":return"Firstbase";case"doola":return"doola";case"northwest":return"Northwest";case"other":return"Other provider";case null:return"Formation handoff pending";default:throw Error(`Unhandled setup profile display variant: ${String(e)}`)}})(t.formationProvider)}`:`${j(t.entityType)} needs formation`;
1return[{label:"Entity profile",value:t.companyName,detail:`${a} - ${Number.isNaN((e=new Date(t.updatedAt)).getTime())?"Saved profile loaded":`Updated ${e.toLocaleString([],{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}`}`,tone:"success",icon:"entity"},{label:"Registered Agent",value:t.registeredAgent,detail:"already_formed"===t.formationStatus?"Saved from the already-formed company setup path.":"Pending until the formation handoff is completed and recorded.",tone:"already_formed"===t.formationStatus?"success":"warning",icon:"agent"},{label:"Workspace state",value:"already_formed"===t.formationStatus?"draft"===(r=t.state)?"Draft profile":r:"Needs formation",detail:"already_formed"===t.formationStatus?"Maintenance tasks are generated from saved formation facts.":"Use the disclosed Northwest handoff, then return the formation details to Buygent.",tone:"neutral",icon:"timeline"}]}return"error"===e?[{label:"Setup profile",value:"Profile unavailable",detail:"Dashboard could not reach the saved setup profile.",tone:"neutral",icon:"entity"},{label:"Entity details",value:"Not loaded",detail:"Retry after the profile API is reachable.",tone:"neutral",icon:"agent"},{label:"Compliance readiness",value:"Not loaded",detail:"Timers stay advisory until setup details are available.",tone:"neutral",icon:"timeline"}]:"unauthorized"===e?[{label:"Setup profile",value:"Sign in required",detail:"Sign in to load saved setup profile and maintenance tasks.",tone:"neutral",icon:"entity"},{label:"Entity details",value:"Not loaded",detail:"Saved entity details appear here after buyer sign-in.",tone:"neutral",icon:"agent"},{label:"Compliance readiness",value:"Sign in required",detail:"Maintenance reminders load after a buyer session is active.",tone:"neutral",icon:"timeline"}]:[{label:"Setup profile",value:"No setup profile yet",detail:"Save the wizard details to show company, entity, and registered-agent context.",tone:"neutral",icon:"entity"},{label:"Entity details",value:"Awaiting entity choice",detail:"Dashboard cards will update after the Setup Wizard is saved.",tone:"neutral",icon:"agent"},{label:"Compliance readiness",value:"Not started",detail:"Timers stay advisory until a setup profile exists.",tone:"neutral",icon:"timeline"}]})({loadState:e,profile:t});return(0,a.jsx)("div",{className:"mt-6 grid gap-4 md:grid-cols-3",children:r.map(t=>{let r,n=N[t.icon];return(0,a.jsxs)("div",{className:`rounded-lg border bg-background/60 p-4 ${"success"===t.tone?"border-emerald-400/30":"border-border"}`,children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsx)(n,{className:"h-5 w-5 text-accent","aria-hidden":!0}),(0,a.jsx)("span",{className:"success"===(r=t.tone)?"rounded-full border border-emerald-400/30 bg-emerald-400/10 px-2 py-0.5 text-xs text-emerald-200":"warning"===r?"rounded-full border border-amber-400/30 bg-amber-400/10 px-2 py-0.5 text-xs text-amber-200":"rounded-full border border-border bg-secondary/50 px-2 py-0.5 text-xs text-muted-foreground",children:"unauthorized"===e?"sign in":"error"===e?"offline":t.tone})]}),(0,a.jsx)("p",{className:"mt-4 font-mono text-xs uppercase tracking-[0.16em] text-muted-foreground",children:t.label}),(0,a.jsx)("p",{className:"mt-2 text-lg font-semibold text-foreground",children:t.value}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-6 text-muted-foreground",children:t.detail})]},t.label)})})}function y({loadState:e,profile:t}={}){return e&&void 0!==t?(0,a.jsx)(v,{loadState:e,profile:t}):(0,a.jsx)(k,{})}function k(){let e=c();return(0,a.jsx)(v,{loadState:e.loadState,profile:e.profile})}let S={connected:"border-emerald-400/30 bg-emerald-400/10 text-emerald-200",pending:"border-amber-400/30 bg-amber-400/10 text-amber-200","not-started":"border-border bg-secondary/50 text-muted-foreground"};function w({loadState:e}){return"unauthorized"===e?(0,a.jsxs)("div",{className:"mt-5 rounded-lg border border-border bg-background/60 p-4",children:[(0,a.jsx)("p",{className:"font-medium text-foreground",children:"Sign in required"}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-6 text-foreground
1/75",children:"Sign in to load founder approvals, review queues, and human handoff tasks."})]}):"loading"===e?(0,a.jsxs)("div",{className:"mt-5 rounded-lg border border-border bg-background/60 p-4",children:[(0,a.jsx)("p",{className:"font-medium text-foreground",children:"Loading founder approvals"}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-6 text-foreground/75",children:"Checking the active setup profile before loading approvals and action queues."})]}):"error"===e?(0,a.jsxs)("div",{className:"mt-5 rounded-lg border border-border bg-background/60 p-4",children:[(0,a.jsx)("p",{className:"font-medium text-foreground",children:"Approvals unavailable"}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-6 text-foreground/75",children:"Founder approval cards will return after the setup profile service is reachable again."})]}):(0,a.jsx)("div",{className:"mt-5 space-y-3",children:o.xI.map(e=>{let t=e.icon;return(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-background/60 p-4",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)(t,{className:"mt-0.5 h-5 w-5 shrink-0 text-accent","aria-hidden":!0}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-foreground",children:e.title}),(0,a.jsx)("p",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:e.detail})]})]}),(0,a.jsxs)("div",{className:"mt-4 flex gap-2",children:[(0,a.jsx)("button",{className:"h-9 rounded-md bg-foreground px-3 text-sm font-medium text-background",children:e.action}),(0,a.jsx)("button",{className:"h-9 rounded-md border border-border px-3 text-sm text-foreground",children:"Edit"}),(0,a.jsx)("button",{className:"h-9 rounded-md border border-border px-3 text-sm text-muted-foreground",children:"Reject"})]})]},e.title)})})}function A({loadState:e,profile:t}){return"unauthorized"===e?(0,a.jsxs)("section",{id:"entity",className:"rounded-lg border border-border bg-card/60 p-5",children:[(0,a.jsx)("p",{className:"font-mono text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Entity Status"}),(0,a.jsx)("h2",{className:"mt-3 text-xl font-semibold text-foreground",children:"Sign in required"}),(0,a.jsx)("p",{className:"mt-3 text-sm leading-6 text-foreground/75",children:"Sign in to view saved entity context, registered-agent records, foreign ownership flags, and annual deadlines."})]}):"error"===e?(0,a.jsxs)("section",{id:"entity",className:"rounded-lg border border-border bg-card/60 p-5",children:[(0,a.jsx)("p",{className:"font-mono text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Entity Status"}),(0,a.jsx)("h2",{className:"mt-3 text-xl font-semibold text-foreground",children:"Setup profile unavailable"}),(0,a.jsx)("p",{className:"mt-3 text-sm leading-6 text-foreground/75",children:"Retry after the setup profile API is reachable to restore the saved entity summary."})]}):t?(0,a.jsxs)("section",{id:"entity",className:"rounded-lg border border-border bg-card/60 p-5",children:[(0,a.jsx)("p",{className:"font-mono text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Entity Status"}),(0,a.jsx)("h2",{className:"mt-3 text-xl font-semibold text-foreground",children:t.companyName}),(0,a.jsx)("p",{className:"mt-3 text-sm leading-6 text-muted-foreground",children:"Saved entity context, registered-agent records, foreign ownership flags, and applicable deadlines stay in one workspace."})]}):(0,a.jsxs)("section",{id:"entity",className:"rounded-lg border border-border bg-card/60 p-5",children:[(0,a.jsx)("p",{className:"font-mono text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Entity Status"}),(0,a.jsx)("h2",{className:"mt-3 text-xl font-semibold text-foreground",children:"No setup profile yet"}),(0,a.jsx)("p",{className:"mt-3 text-sm leading-6 text-foreground/75",children:"Save the setup wizard to pin entity context, registered-agent records, and compliance deadlines to this workspace."})]})}function E({loadState:e}){return"unauthorized"===e?(0,a.jsxs)("section",{id:"accounts",className:"rounded-lg border border-border bg-card/60 p-5",children:[(0,a.jsx)("p",{className:"font-mono text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Accounts & APIs"}),(0,a.jsx)("h2",{className:"mt-3 text-xl font-semibold text-foreground",children:"Sign in required"}),(0,a.jsx)("p",{className:"mt-3 text-sm leading-6 text-foreground
1/75",children:"Sign in to review Stripe, Mercury, and Relay connection steps after the saved setup profile is loaded."})]}):"error"===e?(0,a.jsxs)("section",{id:"accounts",className:"rounded-lg border border-border bg-card/60 p-5",children:[(0,a.jsx)("p",{className:"font-mono text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Accounts & APIs"}),(0,a.jsx)("h2",{className:"mt-3 text-xl font-semibold text-foreground",children:"Connections unavailable"}),(0,a.jsx)("p",{className:"mt-3 text-sm leading-6 text-foreground/75",children:"Retry after the setup profile API is reachable to restore account-connection guidance."})]}):(0,a.jsxs)("section",{id:"accounts",className:"rounded-lg border border-border bg-card/60 p-5",children:[(0,a.jsx)("p",{className:"font-mono text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Accounts & APIs"}),(0,a.jsx)("div",{className:"mt-4 space-y-3",children:o.Qt.map(e=>{let t=e.icon;return(0,a.jsxs)("div",{className:"rounded-md border border-border bg-background/60 p-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(t,{className:"h-4 w-4 text-accent","aria-hidden":!0}),(0,a.jsx)("span",{className:"font-medium text-foreground",children:e.name})]}),(0,a.jsx)("span",{className:`rounded-full border px-2 py-0.5 text-xs ${S[e.status]}`,children:e.status})]}),(0,a.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:e.detail})]},e.name)})})]})}function P(){let{loadState:e,profile:t}=c();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"grid gap-5 xl:grid-cols-[1.1fr_0.9fr]",children:[(0,a.jsxs)("section",{className:"rounded-lg border border-border bg-card/70 p-5 sm:p-6",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-5 sm:flex-row sm:items-start sm:justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-mono text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Setup command center"}),(0,a.jsx)("h2",{className:"mt-3 text-2xl font-semibold tracking-tight text-foreground",children:"From formation to maintenance"}),(0,a.jsx)("p",{className:"mt-3 max-w-2xl text-sm leading-6 text-muted-foreground",children:"Buygent keeps the non-US founder workflow in one place: disclosed formation handoff, US registered-agent records, EIN and banking setup context, ownership flags, and maintenance reminders."})]}),(0,a.jsx)(d(),{href:"/get-started",className:"inline-flex h-10 shrink-0 items-center justify-center rounded-md bg-foreground px-4 text-sm font-medium text-background transition hover:bg-foreground
1/90",children:"Start setup"})]}),(0,a.jsx)(y,{loadState:e,profile:t})]}),(0,a.jsxs)("section",{className:"rounded-lg border border-border bg-card/60 p-5 sm:p-6",children:[(0,a.jsx)("p",{className:"font-mono text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"AI Agent Chat / Action Queue"}),(0,a.jsx)("h2",{className:"mt-3 text-2xl font-semibold tracking-tight text-foreground",children:"Founder approvals only"}),(0,a.jsx)(w,{loadState:e})]})]}),(0,a.jsx)("div",{className:"mt-5",children:(0,a.jsx)(s.e,{selectedEntityName:"the founder-owned entity",surface:"dashboard"})}),(0,a.jsxs)("div",{className:"mt-5 grid gap-5 lg:grid-cols-3",children:[(0,a.jsx)(A,{loadState:e,profile:t}),(0,a.jsx)(E,{loadState:e}),(0,a.jsxs)("section",{id:"tasks",className:"rounded-lg border border-border bg-card/60 p-5",children:[(0,a.jsx)("p",{className:"font-mono text-xs uppercase tracking-[0.18em] text-muted-foreground",children:"Tasks & Alerts"}),(0,a.jsx)(p,{loadState:e,profile:t})]})]})]})}},9684:(e,t,r)=>{Promise.resolve().then(r.bind(r,7017)),Promise.resolve().then(r.bind(r,1891)),Promise.resolve().then(r.t.bind(r,6192,23))}}]);
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.