1import{c as U,a4 as S,j as e,t as j,r as l,R as o,u as E,s as W,a as I,w as P,a5 as N,a6 as Z,a3 as J,a7 as ee,a8 as se,a9 as te,m as ae,i as ne,aa as ie,L as b,ab as re,M as C,Z as A,q as ce,U as le,_ as oe,ac as de,ad as ue,ae as me,af as xe,ag as X,z as v,ah as he,ai as fe,aj as pe,ak as ge,d as Ne,al as Ee}from"./index-yzLLMphG.js";import{H as be}from"./HowAreSeatsCalculated-B6h49cqZ.js";import{P as je}from"./PageHeading-BeMx7C-P.js";import{P as ve}from"./ProgressBar-BQwkh7Vr.js";import{f as Te}from"./formatAmount-7XpBwXzF.js";import{M as ye}from"./index-kmVhCdnt.js";/** 2 * @license lucide-react v0.575.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const _e=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],Ce=U("ellipsis-vertical",_e);/** 7 * @license lucide-react v0.575.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const Ae=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Le=U("pencil",Ae),Se="Expired",Ie="Trial",Pe="Free",we="Active",ke=({license:s})=>S(s)?e.jsx(j,{variant:"destructive",className:"text-xs px-1.5 py-0",children:Se}):s.isTrial?e.jsx(j,{className:"text-xs px-1.5 py-0 bg-brand-yellow text-brand-purple-dark border-brand-purple-dark/20 hover:bg-brand-yellow",children:Ie}):s.licenseType==="free"?e.jsx(j,{className:"text-xs px-1.5 py-0 bg-muted text-muted-foreground border-transparent hover:bg-muted",children:Pe}):e.jsx(j,{className:"text-xs px-1.5 py-0",children:we}),Oe="License Actions",Re=s=>{const[t,n]=l.useState(!1),c=l.useRef(null),i=l.useCallback(()=>{n(a=>!a)},[]);return l.useEffect(()=>{if(!t)return;const a=r=>{c.current&&!c.current.contains(r.target)&&n(!1)};return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[t]),e.jsxs("div",{className:"relative",ref:c,children:[e.jsx(o,{variant:"ghost",size:"icon","aria-label":"Options",onClick:i,className:`h-8 w-8 ${s.class??""}`,children:e.jsx(Ce,{className:"h-4 w-4"})}),t&&e.jsxs("div",{className:"bg-popover text-popover-foreground rounded-lg border border-border shadow-lg z-20 min-w-[180px] absolute top-full right-0 mt-1",children:[e.jsx("div",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wider px-3 py-2",children:Oe}),e.jsx("ul",{className:"py-1",children:s.items.map(a=>e.jsx("li",{children:e.jsx("button",{onClick:()=>{n(!1),a.onClick()},className:`w-full text-left block px-3 py-2 text-sm hover:bg-accent cursor-pointer transition-colors rounded-md mx-1 ${a.class??""}`,children:a.name})},a.name))})]})]})},w="Billing Information",Be="Customer Name:",Me="Billing Email:",De="New billing email address",ze="Cancel",Ue=s=>{const{accessToken:t,email:n,canManageOrganization:c}=E(),[i,a]=l.useState(""),[r,d]=l.useState(!1),x=W(),{data:u,isLoading:h,error:T}=I(ee(t)),f=l.useCallback(()=>(u==null?void 0:u.email)??s.currentEmail??n,[u==null?void 0:u.email,s.currentEmail,n]),{mutate:m,isPending:p,error:g,isSuccess:y}=P({...se(t),onSuccess:_=>{x.setQueryData(["billing-information",t],_),x.invalidateQueries({queryKey:["billing-information",t]})}}),G=l.useCallback(_=>{if(_.preventDefault(),!i.trim()){N.error("Please enter a valid email address");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(i.trim())){N.error("Please enter a valid email address");return}m({email:i.trim()})},[i,m]),K=l.useCallback(()=>{a(f()),d(!1)},[f]),Q=l.useCallback(()=>{a(f()),d(!0)},[f]);return l.useEffect(()=>{g&&N.error(`Failed to update billing email: ${g.message}`)},[g]),l.useEffect(()=>{y&&(N.success("Billing email updated successfully"),d(!1))},[y]),l.useEffect(()=>{r||a(f())},[f,r]),T||!h&&!u?null:h?e.jsxs("div",{className:s.className??"",children:[e.jsx("h3",{className:"text-sm font-semibold text-foreground mb-3",children:w}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("div",{className:"h-3.5 w-48 bg-muted/60 rounded animate-pulse"}),e.jsx("div",{className:"h-3.5 w-64 bg-muted/60 rounded animate-pulse"})]})]}):e.jsxs("div",{className:s.className??"",children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx("h3",{className:"text-sm font-semibold text-foreground",children:w}),c&&!r&&e.jsx(o,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:Q,title:"Edit billing email",disabled:p,children:e.jsx(Le,{className:"h-3 w-3"})})]}),r?e.jsxs("form",{onSubmit:G,className:"space-y-3",children:[e.jsxs("div",{children:[e.jsx(Z,{htmlFor:"billing-email",className:"text-xs font-medium mb-1.5 block",children:De}),e.jsx(J,{id:"billing-email",type:"email",value:i,onChange:_=>{a(_.target.value)},placeholder:"Enter billing email",required:!0,disabled:p,className:"h-8 text-xs"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(o,{type:"submit",size:"sm",className:"text-xs",disabled:p||!i.trim(),children:p?"Updating...":"Save"}),e.jsx(o,{type:"button",variant:"ghost",size:"sm",className:"text-xs",onClick:K,disabled:p,children:ze})]})]}):e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs("div",{className:"text-xs",children:[e.jsx("span",{className:"text-muted-foreground",children:Be})," ",e.jsx("span",{className:"font-medium text-foreground",children:(u==null?void 0:u.name)??s.organizationName??"Not specified"})]}),e.jsxs("div",{className:"text-xs",children:[e.jsx("span",{className:"text-muted-foreground",children:Me})," ",e.jsx("span",{className:"font-medium text-foreground",children:f()})]})]})]})},$=1e3,Xe=3,$e=$*Xe,Ve=30,Ye=$*Ve,k=4,V="https://meetings-eu1.hubspot.com/mirrord/mirrord-demo",Fe="https://metalbear.com/mirrord/pricing/",He=s=>`License, seats and invoices for ${s}.`,qe="License",Y="Seats",Ge="Expires",Ke="Expired",Qe="No expiry",We="Next payment",Ze="None",Je="By invoice",es="Trial, nothing billed yet",ss="Trial ended, nothing was billed",ts="Invoiced by MetalBear",as="No subscription",ns="Active subscription",is=s=>
11`Billed every ${s}`,rs=s=>s===1?"in 1 day":`in ${s} days`,cs=s=>s===1?"1 active user this month":`${s} active users this month`,ls=s=>`Deactivation scheduled for ${s}`,os=s=>`Canceled on ${s}`,ds=s=>`Paused on ${s}`,us="Payment is past due",ms="Pay Now",F="Contact Us",xs="View Invoices",hs="Recent invoices",fs="View all",ps="No invoices yet.",gs="Not billed yet",Ns="Activating your subscription...",Es="This usually takes a few seconds.",bs="Go Back",js="Confirm",vs="Choose a plan",Ts="Keep your team on the Operator after the trial.",ys="Compare all features",_s="Team",Cs="Self-serve. Per seat, billed monthly or yearly.",As=["Shared agents, no privileged RBAC for developers","Traffic isolation on one shared staging cluster","Multi-pod sessions, queue splitting and database branching","Preview environments"],Ls="Enterprise",Ss="From $80 per seat per month, billed yearly.",Is=["Everything in Team","Air-gapped clusters and offline licenses","Machine sessions for CI and agents","Higher SLA, professional services and volume discounts"],O="Buy License",Ps="Talk to us",H="Book time with us",ws="An organization admin can buy a license.",ks="How seats work",Os="Anyone who runs mirrord during a billing month uses a seat. Users are identified per machine, so tell us if that does not match your team, for example CI runners or cloud dev environments.",Rs="Billing questions?",Bs="Invoices, seat counts, procurement or a quote for a larger team.",Ms={draft:"Draft",ready:"Ready",billed:"Billed",paid:"Paid",completed:"Paid",canceled:"Canceled",past_due:"Past due"},Ds=` 12# Cancel License Subscription 13 14Your license subscription will be cancelled at the end of current billing period. 15 16Please confirm that you want to cancel your subscription. 17`,zs=` 18# Resume License Subscription 19 20Your license subscription will be resumed immediately. 21 22Please confirm that you want to activate your subscription. 23`;function Us(s){return` 24# Cancel Scheduled Deactivation 25 26Your license subscription is scheduled to be deactivated on ${v(s)}. 27 28Please confirm that you want to cancel this change. 29`}function Xs(s,t){var p,g,y;const{accessToken:n,canManageOrganization:c}=E(),i=fe(),{mutate:a,isPending:r,error:d,isSuccess:x}=P(pe(n,s.fingerprint)),u=l.useCallback(()=>{r||(a(),t(void 0))},[a,t,r]);l.useEffect(()=>{d!==null&&N.error(`Failed to cancel license subscription: ${d.message}`)},[d]),l.useEffect(()=>{x&&N.info("Your license subscription will be updated shortly")},[x]);const h=[];return c&&(((p=s.billing)==null?void 0:p.status.state)==="active"&&!s.billing.status.deactivationAt&&!s.billing.isPastDue&&h.push({name:"Update License",onClick(){i(`/billing/edit/${s.fingerprint}`)}}),!!s.billing&&!s.billing.isPastDue&&s.billing.status.state!=="canceled"&&h.push({name:"Update Payment Method",onClick(){i(`/billing/update-payment?fingerprint=${s.fingerprint}`)}}),(((g=s.billing)==null?void 0:g.status.state)==="active"&&!s.billing.status.deactivationAt||((y=s.billing)==null?void 0:y.status.state)==="paused")&&h.push({name:"Cancel",class:"text-destructive",onClick(){t({text:Ds,onConfirm:u,confirmDisabled:r})}})),h}function R(s){const t=s.trim().split(` 30`);for(let n=0;n<t.length;n++){const c=t[n];if(c===void 0)continue;const i=/^#\s+(.+)$/.exec(c);if(i!=null&&i[1]){const a=i[1],r=[...t.slice(0,n),...t.slice(n+1)].join(` 31`).trim();return[a,r]}}return[null,s]}const $s=s=>{var m,p;const{accessToken:t,canManageOrganization:n}=E(),c=s.setModal,i=((m=s.license.billing)==null?void 0:m.status.state)==="active"?s.license.billing.status.deactivationAt:void 0,{isPending:a,mutate:r,error:d,isSuccess:x}=P(ge(t,s.license.fingerprint)),u=l.useCallback(()=>{a||r(),c(void 0)}
31,[r,c,a]);if(l.useEffect(()=>{if(d!==null){const g=i?"Failed to cancel scheduled deactivation of the license subscription":"Failed to resume license subscription";N.error(`${g}: ${d.message}`)}},[d,i]),l.useEffect(()=>{x&&N.info("Your license subscription will be updated shortly")},[x]),!n||((p=s.license.billing)==null?void 0:p.status.state)!=="paused"&&i===void 0)return null;const h=i?"Cancel Scheduled Deactivation":"Resume",f={text:i?Us(i):zs,onConfirm:u,confirmDisabled:a};return e.jsx(o,{size:"sm",onClick:()=>{c(f)},disabled:a,children:h})},Vs=s=>{var c;const{canManageOrganization:t}=E(),n=((c=s.license.billing)==null?void 0:c.status.state)==="canceled";return!t||!n?null:s.disabled?e.jsx(o,{size:"sm",disabled:!0,children:B}):e.jsx(o,{size:"sm",asChild:!0,children:e.jsx(b,{to:`/billing/edit/${s.license.fingerprint}`,children:B})})},B="Resume",Ys=s=>{var n;const{canManageOrganization:t}=E();return!t||!(((n=s.license.billing)==null?void 0:n.isPastDue)??!1)?null:e.jsx(o,{variant:"destructive",size:"sm",asChild:!0,children:e.jsx(b,{to:`/billing/update-payment?fingerprint=${s.license.fingerprint}`,children:ms})})},L=({label:s,value:t,hint:n,children:c})=>e.jsxs("div",{className:"bg-card px-5 py-4 first:pl-0 last:pr-0",children:[e.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:s}),e.jsx("p",{className:"mt-1 text-lg font-semibold tabular-nums tracking-tight text-foreground",children:t}),n?e.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground",children:n}):null,c]});function Fs(s){var n;const t=(n=s.billing)==null?void 0:n.cycle;return t===void 0?null:t.frequency===1?t.interval:`${t.frequency} ${t.interval}s`}function Hs(s){const t=Fs(s);return t!==null?is(t):s.isTrial?S(s)?ss:es:s.licenseType==="enterprise"?ts:as}function M(s){const t=s.billing;if(t===void 0)return null;switch(t.status.state){case"active":return t.status.deactivationAt?ls(v(t.status.deactivationAt)):ns;case"canceled":return os(v(t.status.at));case"paused":return ds(v(t.status.at))}}const qs=({license:s})=>{const t=s.maxSeats?s.usedSeats>s.maxSeats:!1,n=s.maxSeats?Math.min(s.usedSeats/s.maxSeats*100,100):0;return e.jsx(L,{label:Y,value:X(s),hint:cs(s.usedSeats),children:s.maxSeats?e.jsx("div",{className:"mt-2.5",children:e.jsx(ve,{ariaLabel:"License seat usage",value:n,variant:t?"destructive":"primary"})}):null})},D=({tone:s,children:t})=>e.jsx("div",{className:s==="destructive"?"rounded-md border border-destructive/20 bg-destructive/10 px-3.5 py-2.5 text-sm font-medium text-destructive":"rounded-md border border-brand-yellow/50 bg-brand-yellow/15 px-3.5 py-2.5 text-sm font-medium text-foreground",children:t}),Gs=({license:s,setModal:t,checkoutDisabled:n})=>{const{canManageOrganization:c}=E(),i=Xs(s,t),a=S(s),r=s.billing,d=r==null?void 0:r.nextPayment,x=r!==void 0&&(r.status.state!=="active"||r.status.deactivationAt!==void 0),u=s.licenseType==="enterprise"||c&&(x||((r==null?void 0:r.isPastDue)??!1));return e.jsx(C,{children:e.jsxs(A,{className:"space-y-5 p-6",children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:qe}),e.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-2.5",children:[e.jsx("p",{className:"text-lg font-semibold tracking-tight text-foreground",children:xe(s)}),e.jsx(ke,{license:s})]}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:Hs(s)})]}),i.length>0&&e.jsx(Re,{items:i})]}),(r==null?void 0:r.isPastDue)&&e.jsx(D,{tone:"destructive",children:us}),x&&e.jsx(D,{tone:"warning",children:M(s)}),e.jsxs("div",{className:"grid divide-y divide-border border-y border-border sm:grid-cols-3 sm:divide-x sm:divide-y-0",children:[s.validTo?e.jsx(qs,{license:s}):e.jsx(L,{label:Y,value:X(s)}),e.jsx(L,{label:a?Ke:Ge,value:s.validTo?v(s.validTo):Qe,hint:s.validTo&&!a?rs(he(s.validTo)):null}),e.jsx(L,{label:We,value:d?v(d):s.licenseType==="enterprise"&&!s.isTrial?Je:Ze,hint:x?null:M(s)})]}),u&&e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(Vs,{license:s,disabled:n}),e.jsx(Ys,{license:s}),e.jsx($s,{license:s,setModal:t}),s.licenseType==="enterprise"&&e.jsx(o,{variant:"outline",size:"sm",asChild:!0,children:e.jsx(b,{to:"/contact",children:F})})]})]})})},z=({name:s,tagline:t,features:n,action:c,highlighted:i})=>e.jsx(C,{className:i?"border-primary/40":"",children:e.jsxs(A,{className:"flex h-full flex-col gap-5 p-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-lg font-semibold tracking-tight text-foreground",children:s}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:t})]}),e.jsx("ul",{className:"flex-1 space-y-2.5 text-sm text-foreground",children:n.map(a=>e.jsxs("li",{className:"flex items-start gap-2.5",children:[e.jsx(Ne,{className:"mt-0.5 h-4 w-4 shrink-0 text-primary"}),e.jsx("span",{children:a})]},a))}),e.jsx("div",{className:"flex flex-wrap items-center gap-2",children:c})]})}),Ks=({license:s,checkoutDisabled:t})=>{const{canManageOrganization:n}=E();return e.jsxs("section",{className:"space-y-4",children:[e.jsxs("div",{className:"flex flex-wrap items-end justify-between gap-2",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-base font-semibold text-foreground",children:vs}),e.jsx("p",{className:"text-sm text-muted-foreground",children:Ts})]}),e.jsx(o,{variant:"link",size:"sm",className:"h-auto px-0",asChild:!0,children:e.jsx("a",{href:Fe,target:"_blank",rel:"noopener noreferrer",children:ys})})]}),e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsx(z,{name:_s,tagline:Cs,features:As,highlighted:!0,action:n?t?e.jsx(o,{size:"sm",disabled:!0,children:O}):e.jsx(o,{size:"sm",asChild:!0,children:e.jsx(b,{to:`/billing/edit/${s.fingerprint}`,children:O})}):e.jsx("p",{className:"text-xs text-muted-foreground",children:ws})}),e.jsx(z,{name:Ls,tagline:Ss,features:Is,action:e.jsxs(e.Fragment,{children:[e.jsx(o,{variant:"outline",size:"sm",asChild:!0,children:e.jsx(b,{to:"/contact",children:Ps})}),e.jsx(o,{variant:"ghost",size:"sm",asChild:!0,children:e.jsx("a",{href:V,target:"_blank",rel:"noopener noreferrer",children:H})})]})})]})]})},q=({title:s,children:t})=>e.jsx(C,{children:e.jsxs(A,{className:"space-y-3 p-6",children:[e.jsx("h3",{className:"text-sm font-semibold text-foreground",children:s}),t]})}),Qs=()=>e.jsxs(q,{title:Rs,children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:Bs}),e.jsxs("div",{className:"flex flex-wrap gap-2 pt-1",children:[e.jsx(o,{variant:"outline",size:"sm",asChild:!0,children:e.jsx(b,{to:"/contact",children:F})}),e.jsx(o,{variant:"ghost",size:"sm",asChild:!0,children:e.jsx("a",{href:V,target:"_blank",rel:"noopener noreferrer",children:H})})]})]}),Ws=()=>e.jsxs(q,{title:ks,children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:Os}),e.jsx(be,{class:"h-auto px-0"})]}),Zs=({status:s})=>{const t=Ms[s];return s==="past_due"?e.jsx(j,{variant:"destructive",className:"text-xs px-1.5 py-0",children:t}):s==="paid"||s==="completed"?e.jsx(j,{className:"text-xs px-1.5 py-0",children:t}):e.jsx(j,{variant:"outline",className:"text-xs px-1.5 py-0",children:t})},Js=()=>{const{accessToken:s}=E(),{data:t,isLoading:n}=I(Ee(s)),c=((t==null?void 0:t.invoices)??[]).slice(0,k);return e.jsx(C,{children:e.jsxs(A,{className:"space-y-3 p-6",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"text-sm font-semibold text-foreground",children:hs}),e.jsx(o,{variant:"link",size:"sm",className:"h-auto px-0",asChild:!0,children:e.jsx(b,{to:"/billing/invoices",children:fs})})]}),n?e.jsx("div",{className:"space-y-2",children:Array.from({length:k},(i,a)=>e.jsx("div",{className:"h-9 animate-pulse rounded bg-muted"},a))}):c.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:ps}):e.jsx("ul",{className:"divide-y divide-border",children:c.map(i=>e.jsxs("li",{className:"flex items-center justify-between gap-4 py-2.5 text-sm",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate font-medium text-foreground",children:i.invoiceNumber??i.id}),e.jsx("p",{className:"text-xs text-muted-foreground",children:i.billedAt?v(new Date(i.billedAt)):gs})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Zs,{status:i.status}),e.jsx("span",{className:"font-medium tabular-nums text-foreground",children:Te(i)})]})]},i.id))})]})})},ct=()=>{var f;const{accessToken:s}=E(),n=((f=te().state)==null?void 0:f.checkoutCompleted)===!0,[c,i]=l.useState(n),{data:a}=I({...ae(s),refetchInterval:c?$e:Ye});l.useEffect(()=>{if(!c||!a)return;a.some(p=>{var g;return((g=p.billing)==null?void 0:g.status.state)==="active"})&&(i(!1),N.success("Your subscription is now active!"))},[a,c]),l.useEffect(()=>{n&&window.history.replaceState({},"")},[n]);const[r,d]=l.useState(void 0),x=ne(),u=a==null?void 0:a.some(m=>m.billing!==void 0),h=a==null?void 0:a.some(m=>m.licenseType==="teams"&&m.billing!==void 0),T=a==null?void 0:a.find(m=>ie(m));return e.jsxs("div",{className:"space-y-6",children:[e.jsx(je,{title:"Billing",description:He(x),actions:h&&e.jsx(o,{variant:"outline",size:"sm",asChild:!0,children:e.jsx(b,{to:"/billing/invoices",children:xs})})}),e.jsx("img",{alt:"",referrerPolicy:"no-referrer-when-downgrade",src:"https://static.scarf.sh/a.png?x-pxid=ce987e8f-9597-4e1b-bc84-0e420c9e475c",className:"hidden"}),c&&e.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-primary/20 bg-primary/5 p-4",children:[e.jsx(re,{className:"h-4 w-4 animate-spin text-primary"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:Ns}),e.jsx("p",{className:"text-xs text-muted-foreground",children:Es})]})]}),a!==void 0?e.jsxs("div",{className:"grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_20rem]",children:[e.jsxs("div",{className:"space-y-6",children:[a.map(m=>e.jsx(Gs,{license:m,setModal:d,checkoutDisabled:c},m.fingerprint)),T&&e.jsx(Ks,{license:T,checkoutDisabled:c})]}),e.jsxs("div",{className:"space-y-6",children:[u&&e.jsx(C,{children:e.jsx(A,{className:"p-6",children:e.jsx(Ue,{organizationName:x})})}),h&&e.jsx(Js,{}),e.jsx(Ws,{}),e.jsx(Qs,{})]})]}):e.jsx("div",{className:"flex justify-center py-12",children:e.jsx(ce,{fixed:!1})}),r!==void 0&&e.jsx(le,{open:!0,onOpenChange:()=>d(void 0),children:e.jsxs(oe,{children:[e.jsx(de,{children:e.jsx(ue,{children:R(r.text)[0]??"Confirm Action"})}),e.jsx("div",{className:"prose prose-sm",children:e.jsx(ye,{children:R(r.text)[1]})}),e.jsxs(me,{className:"flex justify-end gap-3 mt-4",children:[e.jsx(o,{variant:"outline",onClick:()=>{d(void 0)},children:bs}),e.jsx(o,{onClick:()=>{r.onConfirm&&r.onConfirm()},disabled:r.confirmDisabled,children:js})]})]})})]})};export{ct as default};
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.