PageSourceSearch

https://team0.ai/_next/static/chunks/8635.68532516e901a4a5.js

js team0.ai collected 2026-10-05 15:21:06 UTC 21,934 bytes, 7 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8635],{5421:(e,t,a)=>{a.d(t,{rc:()=>B,ZD:()=>I,UC:()=>E,VY:()=>z,hJ:()=>T,ZL:()=>L,bL:()=>R,hE:()=>O,l9:()=>D});var i=a(12115),s=a(3468),n=a(94446),r=a(65429);"undefined"!=typeof window&&window.document&&window.document.createElement;var l=a(95155),o=Symbol("radix.slottable"),c="AlertDialog",[d,m]=(0,s.A)(c,[r.Hs]),u=(0,r.Hs)(),p=e=>{let{__scopeAlertDialog:t,...a}=e,i=u(t);return(0,l.jsx)(r.bL,{...i,...a,modal:!0})};p.displayName=c;var h=i.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...i}=e,s=u(a);return(0,l.jsx)(r.l9,{...s,...i,ref:t})});h.displayName="AlertDialogTrigger";var x=e=>{let{__scopeAlertDialog:t,...a}=e,i=u(t);return(0,l.jsx)(r.ZL,{...i,...a})};x.displayName="AlertDialogPortal";var f=i.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...i}=e,s=u(a);return(0,l.jsx)(r.hJ,{...s,...i,ref:t})});f.displayName="AlertDialogOverlay";var y="AlertDialogContent",[b,g]=d(y),v=function(e){let t=({children:e})=>(0,l.jsx)(l.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=o,t}("AlertDialogContent"),j=i.forwardRef((e,t)=>{let{__scopeAlertDialog:a,children:s,...o}=e,c=u(a),d=i.useRef(null),m=(0,n.s)(t,d),p=i.useRef(null);return(0,l.jsx)(r.G$,{contentName:y,titleName:w,docsSlug:"alert-dialog",children:(0,l.jsx)(b,{scope:a,cancelRef:p,children:(0,l.jsxs)(r.UC,{role:"alertdialog",...c,...o,ref:m,onOpenAutoFocus:function(e,t,{checkForDefaultPrevented:a=!0}={}){return function(i){if(e?.(i),!1===a||!i.defaultPrevented)return t?.(i)}}(o.onOpenAutoFocus,e=>{e.preventDefault(),p.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,l.jsx)(v,{children:s}),(0,l.jsx)(S,{contentRef:d})]})})})});j.displayName=y;var w="AlertDialogTitle",_=i.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...i}=e,s=u(a);return(0,l.jsx)(r.hE,{...s,...i,ref:t})});_.displayName=w;var k="AlertDialogDescription",N=i.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...i}=e,s=u(a);return(0,l.jsx)(r.VY,{...s,...i,ref:t})});N.displayName=k;var C=i.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...i}=e,s=u(a);return(0,l.jsx)(r.bm,{...s,...i,ref:t})});C.displayName="AlertDialogAction";var $="AlertDialogCancel",A=i.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...i}=e,{cancelRef:s}=g($,a),o=u(a),c=(0,n.s)(t,s);return(0,l.jsx)(r.bm,{...o,...i,ref:c})});A.displayName=$;var S=({contentRef:e})=>{let t=`\`${y}\` requires a description for the component to be accessible for screen reader users.
2
3You can add a description to the \`${y}\` by passing a \`${k}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
4
5Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${y}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
6
7For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return i.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},R=p,D=h,L=x,T=f,E=j,B=C,I=A,O=_,z=N},21330:(e,t,a)=>{a.d(t,{$v:()=>h,EO:()=>d,Lt:()=>l,Rx:()=>x,Zr:()=>f,ck:()=>u,r7:()=>p,wd:()=>m});var i=a(95155),s=a(12115),n=a(5421),r=a(49498);let l=n.bL;n.l9;let o=n.ZL,c=s.forwardRef(({className:e,...t},a)=>(0,i.jsx)(n.hJ,{className:(0,r.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));c.displayName=n.hJ.displayName;let d=s.forwardRef(({className:e,overlayClassName:t,...a},s)=>(0,i.jsxs)(o,{children:[(0,i.jsx)(c,{className:t}),(0,i.jsx)(n.UC,{ref:s,className:(0,r.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-lg",e),...a})]}));d.displayName=n.UC.displayName;let m=({className:e,...t})=>(0,i.jsx)("div",{className:(0,r.cn)("flex flex-col space-y-2 text-center sm:text-left",e),...t});m.displayName="AlertDialogHeader";let u=({className:e,...t})=>(0,i.jsx)("div",{className:(0,r.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});u.displayName="AlertDialogFooter";let p=s.forwardRef(({className:e,...t},a)=>(0,i.jsx)(n.hE,{ref:a,className:(0,r.cn)("text-lg font-semibold",e),...t}));p.displayName=n.hE.displayName;let h=s.forwardRef(({className:e,...t},a)=>(0,i.jsx)(n.VY,{ref:a,className:(0,r.cn)("text-sm text-muted-foreground",e),...t}));h.displayName=n.VY.displayName;let x=s.forwardRef(({className:e,...t},a)=>(0,i.jsx)(n.rc,{ref:a,className:(0,r.cn)("inline-flex h-10 items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-semibold text-primary-foreground ring-offset-background transition-colors hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));x.displayName=n.rc.displayName;let f=s.forwardRef(({className:e,...t},a)=>(0,i.jsx)(n.ZD,{ref:a,className:(0,r.cn)("mt-2 inline-flex h-10 items-center justify-center rounded-md border border-input bg-background px-4 py-2 text-sm font-semibold ring-offset-background transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 sm:mt-0",e),...t}));f.displayName=n.ZD.displayName},37107:(e,t,a)=>{a.d(t,{A:()=>i});let i=(0,a(71847).A)("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}
7]])},98635:(e,t,a)=>{a.r(t),a.d(t,{CompanyChiefPanel:()=>j,default:()=>w});var i=a(95155),s=a(12115),n=a(35299),r=a(37107),l=a(6191),o=a(75426),c=a(91169),d=a(37586),m=a(88793),u=a(56023),p=a(37841),h=a(54209),x=a(21330),f=a(36624),y=a(90843);let b={active:"active",invited:"pending",shadow:"idle",left:"idle",suspended:"disconnected",disabled:"idle",provisioning:"pending",error:"error"};function g({eyebrow:e,title:t,children:a}){return(0,i.jsxs)("section",{className:"border-t border-border py-6 first:border-t-0 first:pt-0",children:[(0,i.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-[0.12em] text-primary",children:e}),(0,i.jsx)("h3",{className:"mt-1 text-[17px] font-semibold",children:t}),(0,i.jsx)("div",{className:"mt-4",children:a})]})}function v(e,t){return e?.response?.data?.detail||e?.response?.data?.message||t}function j(){let e=(0,f.useAuthenticatedApi)(),{startupId:t,userEmail:a,userName:j}=(0,y.Z2)(),[w,_]=(0,s.useState)(null),[k,N]=(0,s.useState)(null),[C,$]=(0,s.useState)(null),[A,S]=(0,s.use
7State)({email:"",name:""}),[R,D]=(0,s.useState)(null),[L,T]=(0,s.useState)(null),[E,B]=(0,s.useState)(""),[I,O]=(0,s.useState)(null),[z,Z]=(0,s.useState)(null),U=(0,s.useCallback)(async()=>{try{let t=await e.get("/api/company/workspace");_(t?.data||t),N(null)}catch(e){N(v(e,"Could not load this Company Chief.")),_(null)}},[e]);(0,s.useEffect)(()=>{U()},[U]);let W=(0,s.useCallback)(e=>`${window.location.origin}/company-invite?customer_id=${encodeURIComponent(e)}`,[]),Y=(0,s.useCallback)(async e=>{if(D(e),!navigator.clipboard?.writeText)return!1;try{return await navigator.clipboard.writeText(e),!0}catch{return!1}},[]),F=(0,s.useCallback)(async(e,t)=>{let a=e?.data||e,i=a?.invitation_url||W(w.customer_id),s=await Y(i);a?.delivery_status==="already_active"?T(`${t} is already an active company member.`):a?.email_sent?T(`Invitation emailed to ${t}${s?" and copied.":"."}`):T("The member was invited, but the email could not be delivered. Use the link below.")},[Y,w?.customer_id,W]),J=(0,s.useCallback)(async t=>{if(t.preventDefault(),A.email.trim()&&w?.customer_id){$("invite");try{let t=await e.post(`/api/company/${w.customer_id}/members/invite`,{email:A.email.trim(),name:A.name.trim()||void 0});await F(t,A.email.trim()),S({email:"",name:""}),N(null),await U()}catch(e){N(v(e,"The invitation could not be created."))}finally{$(null)}}},[e,w?.customer_id,A,U,F]),P=(0,s.useCallback)(async t=>{if(w?.customer_id&&t?.email){$(`resend:${t.customer_user_id}`);try{let a=await e.post(`/api/company/${w.customer_id}/members/invite`,{email:t.email,name:t.name||void 0});await F(a,t.email),N(null),await U()}catch(e){N(v(e,"The invitation could not be resent."))}finally{$(null)}}},[e,w?.customer_id,U,F]),q=(0,s.useCallback)(async(t,a)=>{if(w?.customer_id){$(t);try{await e.post(`/api/company/${w.customer_id}/members/me/${t}`,{enabled:a}),N(null),await U()}catch(e){N(v(e,"That sharing choice did not save.")),await U()}finally{$(null)}}},[e,w?.customer_id,U]),M=(0,s.useCallback)(async()=>{if(I&&w?.customer_id){$(`remove:${I.customer_user_id}`);try{await e.delete(`/api/company/${w.customer_id}/memberships/${I.customer_user_id}`),O(null),N(null),await U()}catch(e){N(v(e,"That member could not be removed."))}finally{$(null)}}},[e,w?.customer_id,U,I]),V=(0,s.useCallback)(async()=>{if(z?.user_id&&w?.customer_id){$(`transfer:${z.customer_user_id}`);try{await e.post(`/api/company/${w.customer_id}/chief/transfer`,{new_admin_user_id:z.user_id}),Z(null),N(null),await U()}catch(e){N(v(e,"Company Chief administration could not be transferred."))}finally{$(null)}}},[e,w?.customer_id,U,z]),H=(0,s.useCallback)(async(i="monthly")=>{let s=w?.commercial?.offer,n="yearly"===i?s?.yearly_variant_id:s?.monthly_variant_id;if(n&&t&&a){$(`checkout:${i}`);try{let t=await e.post("/api/payment/checkout",{variant_id:n,success_url:`${window.location.origin}/ops/w/settings?tab=company&payment=success`,cancel_url:`${window.location.origin}/ops/w/settings?tab=company&payment=cancelled`,customer_email:a,customer_name:j||a});if(!t?.checkout_url)throw Error(t?.error||"No checkout URL returned");window.location.assign(t.checkout_url)}catch(e){N(v(e,e?.message||"Checkout could not be started.")),$(null)}}},[e,w?.commercial?.offer,t,a,j]),K=(0,s.useCallback)(async()=>{if(w?.customer_id){$("activate");try{await e.post(`/api/company/${w.customer_id}/chief/activate`,{}),N(null),await U()}catch(e){N(v(e,"Company Chief activation did not complete."))}finally{$(null)}}},[e,w?.customer_id,U]),G=(0,s.useCallback)(async t=>{if(t.preventDefault(),E.trim()&&w?.customer_id){$("slack-connect");try{await e.put(`/api/company/${w.customer_id}/slack/channels`,{channel_url:E.trim()}),B(""),N(null),await U()}catch(e){N(v(e,"That Slack room could not be connected."))}finally{$(null)}}},[e,w?.customer_id,U,E]),Q=(0,s.useCallback)(async t=>{if(w?.customer_id){$(`slack-remove:${t}`);try{await e.delete(`/api/company/${w.customer_id}/slack/channels/${encodeURIComponent(t)}`),N(null),await U()}catch(e){N(v(e,"That Slack room could not be removed."))}finally{$(null)}}},[e,w?.customer_id,U]),X=(0,s.useMemo)(()=>(w?.members||[]).filter(e=>"active"===e.membership_status).length,[w?.members]);if(!w&&!k)return(0,i.jsxs)("div",{className:"flex items-center gap-2 py-8 text-[13px] text-muted-foreground",children:[(0,i.jsx)(n.A,{className:"h-4 w-4 animate-spin",strokeWidth:1.5})," Loading company workspace…"]});if(!w)return(0,i.jsx)("div",{className:"rounded-lg border border-border bg-muted px-4 py-3 text-[13px]",children:k});let ee=w.commercial?.offer,et=w.commercial?.subscription,ea=w.member_capacity;return(0,i.jsxs)("div",{children:[k&&(0,i.jsx)("div",{className:"mb-5 rounded-lg border border-border bg-muted px-4 py-3 text-[13px]",children:k}),(0,i.jsxs)(g,{eyebrow:"Readiness",title:"Company Chief status",children:[(0,i.jsxs)("div",{className:"grid gap-4 text-[13px] sm:grid-cols-3",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-muted-foreground",children:"Company"}
7),(0,i.jsx)("p",{className:"mt-1 font-medium",children:w.company_name||w.workspace_name})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-muted-foreground",children:"Lifecycle"}),(0,i.jsx)(p.W,{className:"mt-1",status:b[w.company_status]||"neutral",children:w.company_status})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-muted-foreground",children:"Slack room"}),(0,i.jsx)(p.W,{className:"mt-1",status:w.slack?.connected?"connected":"idle",children:w.slack?.connected?`${w.slack.channel_count} connected`:"Not connected"})]})]}),w.slack?.channel_ids?.length>0&&(0,i.jsx)("p",{className:"mt-4 font-mono text-[11px] text-muted-foreground",children:w.slack.channel_ids.join(" \xb7 ")}),w.is_admin&&["provisioning","error"].includes(w.company_status)&&w.commercial?.entitled&&(0,i.jsx)(m.Button,{className:"mt-5",type:"button",isLoading:"activate"===C,onClick:K,children:"error"===w.company_status?"Retry activation":"Activate Company Chief"})]}),w.is_admin&&(0,i.jsxs)(g,{eyebrow:"Slack",title:"Choose where the Company Chief listens",children:[(0,i.jsx)("p",{className:"mb-4 text-[12px] text-muted-foreground",children:"First connect this Slack workspace from your personal Chief's Integrations. Then paste the channel ID (C…) or its browser address. If Slack requires app approval, ask a Slack workspace admin to approve Team0."}),(0,i.jsxs)("form",{onSubmit:G,className:"flex flex-col gap-3 sm:flex-row",children:[(0,i.jsx)(u.p,{type:"text",required:!0,value:E,onChange:e=>B(e.target.value),placeholder:"C0BS1U998JJ or https://app.slack.com/client/T…/C…","aria-label":"Slack channel ID or address"}),(0,i.jsx)(m.Button,{type:"submit",isLoading:"slack-connect"===C,children:"Connect room"})]}),w.slack?.channel_ids?.length>0&&(0,i.jsx)("div",{className:"mt-5 divide-y divide-border border-y border-border",children:w.slack.channel_ids.map(e=>(0,i.jsxs)("div",{className:"flex items-center gap-3 py-3",children:[(0,i.jsx)(r.A,{className:"h-4 w-4 text-muted-foreground",strokeWidth:1.5}),(0,i.jsx)("span",{className:"min-w-0 flex-1 font-mono text-[12px]",children:e}),(0,i.jsx)(m.Button,{type:"button",size:"sm",variant:"ghost",disabled:C===`slack-remove:${e}`,onClick:()=>Q(e),children:"Remove"})]},e))})]}),(0,i.jsx)(g,{eyebrow:"Your boundary",title:"What your Chief contributes",children:(0,i.jsxs)("div",{className:"divide-y divide-border rounded-lg border border-border",children:[(0,i.jsxs)("div",{className:"flex items-start gap-4 px-4 py-4",children:[(0,i.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,i.jsx)("p",{className:"text-[14px] font-medium",children:"Share approved company knowledge"}),(0,i.jsx)("p",{className:"mt-1 text-[12px] text-muted-foreground",children:"Continuously projects eligible work knowledge into the company world model. Turning it off withdraws prior projections immediately."})]}),(0,i.jsx)(h.d,{checked:w.me.sharing_active,disabled:"sharing"===C,onCheckedChange:e=>q("sharing",e),"aria-label":"Share approved company knowledge"})]}),(0,i.jsxs)("div",{className:"flex items-start gap-4 px-4 py-4",children:[(0,i.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,i.jsx)("p",{className:"text-[14px] font-medium",children:"Allow governed Chief consultation"}),(0,i.jsx)("p",{className:"mt-1 text-[12px] text-muted-foreground",children:"Lets the Company Chief ask your Chief a scoped question when the company model has a gap."})]}),(0,i.jsx)(h.d,{checked:w.me.consultation_consent,disabled:"consultation"===C,onCheckedChange:e=>q("consultation",e),"aria-label":"Allow governed Chief consultation"})]})]})}),w.is_admin&&(0,i.jsxs)(g,{eyebrow:"Members",title:`${X} connected Chief${1===X?"":"s"}`,children:[ea&&(0,i.jsxs)("p",{className:"mb-4 text-[12px] text-muted-foreground",children:[ea.occupied," of ",ea.limit," seats reserved \xb7 ",ea.remaining," available"]}),(0,i.jsxs)("form",{onSubmit:J,className:"grid gap-3 sm:grid-cols-[1fr_1fr_auto]",children:[(0,i.jsx)(u.p,{type:"email",required:!0,disabled:ea?.remaining===0,value:A.email,onChange:e=>S(t=>({...t,email:e.target.value})),placeholder:"[email protected]","aria-label":"Member email"}),(0,i.jsx)(u.p,{disabled:ea?.remaining===0,value:A.name,onChange:e=>S(t=>({...t,name:e.target.value})),placeholder:"Name (optional)","aria-label":"Member name"}),(0,i.jsx)(m.Button,{type:"submit",disabled:ea?.remaining===0,isLoading:"invite"===C,leftIcon:(0,i.jsx)(l.A,{className:"h-4 w-4"}),children:"Send invite"})]}),L&&(0,i.jsx)("p",{className:"mt-3 text-[12px] text-muted-foreground",role:"status",children:L}),R&&(0,i.jsxs)("div",{className:"mt-3 flex min-w-0 items-center gap-2 rounded-md border border-border bg-muted px-3 py-2",children:[(0,i.jsx)("span",{className:"min-w-0 flex-1 truncate text-[11px] text-muted-foreground",children:R}),(0,i.jsxs)(m.Button,{type:"button",size:"sm",variant:"ghost",onClick:()=>Y(R),children:[(0,i.jsx)(o.A,{className:"mr-1 h-3.5 w-3.5"})," Copy"]})]}
7),(0,i.jsx)("div",{className:"mt-5 divide-y divide-border border-y border-border",children:(w.members||[]).map(e=>(0,i.jsxs)("div",{className:"flex items-center gap-4 py-4",children:[(0,i.jsx)(c.A,{className:"h-4 w-4 shrink-0 text-muted-foreground",strokeWidth:1.5}),(0,i.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,i.jsx)("p",{className:"truncate text-[14px] font-medium",children:e.name||e.email}),(0,i.jsxs)("p",{className:"truncate text-[12px] text-muted-foreground",children:[e.email," \xb7 ",e.role]}),(0,i.jsxs)("p",{className:"mt-1 text-[11px] text-muted-foreground",children:[e.chief_connected?"Chief connected":"Chief not connected"," \xb7 ",e.sharing_active?"sharing on":"sharing off"," \xb7 ",e.consultation_consent?"consultation on":"consultation off"]})]}),(0,i.jsx)(p.W,{status:b[e.membership_status]||"neutral",children:e.membership_status}),"admin"!==e.role&&e.is_active&&(0,i.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:["invited"===e.membership_status&&(0,i.jsx)(m.Button,{type:"button",size:"sm",variant:"ghost",disabled:!!C,onClick:()=>P(e),children:"Resend"}),"active"===e.membership_status&&e.user_id&&(0,i.jsx)(m.Button,{type:"button",size:"sm",variant:"ghost",disabled:!!C,onClick:()=>Z(e),children:"Make admin"}),(0,i.jsx)(m.Button,{type:"button",size:"sm",variant:"ghost",disabled:C===`remove:${e.customer_user_id}`,onClick:()=>O(e),children:"invited"===e.membership_status?"Cancel":"Remove"})]})]},e.customer_user_id))}),(0,i.jsxs)("button",{type:"button",className:"mt-4 flex items-center gap-2 text-[12px] text-primary",onClick:()=>Y(W(w.customer_id)),children:[(0,i.jsx)(o.A,{className:"h-3.5 w-3.5"})," Copy member invitation link"]}),(0,i.jsx)("p",{className:"mt-1 text-[11px] text-muted-foreground",children:"Only an email already invited above can accept this link."})]}),w.is_admin&&(0,i.jsx)(g,{eyebrow:"Commercial",title:"Separate Company Chief entitlement",children:w.commercial?.entitled?(0,i.jsxs)("div",{className:"flex items-start gap-3",children:[(0,i.jsx)(d.A,{className:"mt-0.5 h-4 w-4 text-primary",strokeWidth:1.5}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-[14px] font-medium",children:et?.plan_name||"Company Chief pilot access"}),(0,i.jsx)("p",{className:"mt-1 text-[12px] text-muted-foreground",children:et?`${et.status} \xb7 $${et.price}/month`:"Server-authorized internal pilot; no paid subscription is attached."})]})]}):ee?(0,i.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-[14px] font-medium",children:ee.name}),(0,i.jsxs)("p",{className:"mt-1 text-[12px] text-muted-foreground",children:["$",ee.price,"/month",ee.yearly_price?` \xb7 $${ee.yearly_price}/year`:""," \xb7 ",ee.monthly_message_credits||0," shared Company Chief credits"]})]}),(0,i.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,i.jsx)(m.Button,{type:"button",isLoading:"checkout:monthly"===C,disabled:!ee.monthly_variant_id||!a,onClick:()=>H("monthly"),children:"Pay monthly"}),ee.yearly_variant_id&&(0,i.jsx)(m.Button,{type:"button",variant:"outline",isLoading:"checkout:yearly"===C,disabled:!a,onClick:()=>H("yearly"),children:"Pay yearly"})]})]}):(0,i.jsx)("p",{className:"text-[13px] text-muted-foreground",children:"No Company Chief offer is configured yet. Ask Team0 to attach the commercial plan before activation."})}),(0,i.jsx)(x.Lt,{open:!!I,onOpenChange:e=>{e||O(null)},children:(0,i.jsxs)(x.EO,{children:[(0,i.jsxs)(x.wd,{children:[(0,i.jsx)(x.r7,{children:I?.membership_status==="invited"?"Cancel this invitation?":"Remove this member?"}),(0,i.jsx)(x.$v,{children:I?.membership_status==="invited"?`${I?.email} will no longer be able to accept this invitation.`:`${I?.name||I?.email} will lose Company Chief workspace access and their projected knowledge will be withdrawn now.`})]}),(0,i.jsxs)(x.ck,{children:[(0,i.jsx)(x.Zr,{children:"Keep access"}),(0,i.jsx)(x.Rx,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:M,children:I?.membership_status==="invited"?"Cancel invitation":"Remove member"})]})]})}),(0,i.jsx)(x.Lt,{open:!!z,onOpenChange:e=>{e||Z(null)}
7,children:(0,i.jsxs)(x.EO,{children:[(0,i.jsxs)(x.wd,{children:[(0,i.jsx)(x.r7,{children:"Transfer Company Chief administration?"}),(0,i.jsxs)(x.$v,{children:[z?.name||z?.email," will become the real owner of this Company Chief workspace. You will remain a member and can no longer manage membership or billing."]})]}),(0,i.jsxs)(x.ck,{children:[(0,i.jsx)(x.Zr,{children:"Keep me as admin"}),(0,i.jsx)(x.Rx,{onClick:V,children:"Transfer administration"})]})]})})]})}let w=j}}]);

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.