@tickernelz/paperclip-pro-ui 2026.1026.1 → 2026.1026.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AgentAvatar-3pt0e7Nb.js → AgentAvatar-D4YQ4myL.js} +1 -1
- package/dist/assets/{Agents.production-CEz_YqOz.js → Agents.production-DisxPp_D.js} +2 -2
- package/dist/assets/{BreadcrumbContext-C5UY1_2_.js → BreadcrumbContext-DP0mgUIg.js} +2 -2
- package/dist/assets/{CompanyActivity.production-Bpl5z0M-.js → CompanyActivity.production-IHMnSMxY.js} +1 -1
- package/dist/assets/{CompanyExport-CtEd3A9b.js → CompanyExport-DLFCiJgk.js} +4 -4
- package/dist/assets/{CompanySkills.production-Cukn9jaT.js → CompanySkills.production-D7Kycho5.js} +1 -1
- package/dist/assets/{EmptyState-DQbVgS-p.js → EmptyState-BN5HM6-K.js} +1 -1
- package/dist/assets/{MarkdownBody-Bag5G4pU.js → MarkdownBody-N2K7JfY-.js} +10 -10
- package/dist/assets/{MarkdownEditor-DeDfAfa1.js → MarkdownEditor-DHz7g42W.js} +2 -2
- package/dist/assets/{OrgChart.production-BiDz21UE.js → OrgChart.production-DOQpinvG.js} +1 -1
- package/dist/assets/{PageSkeleton-D_5r8dcZ.js → PageSkeleton-BiXcKvFW.js} +1 -1
- package/dist/assets/{RoutineDetail.production-CzbBhJAk.js → RoutineDetail.production-CKEsocIQ.js} +1 -1
- package/dist/assets/{RoutineRunVariablesDialog-CZtsH_JY.js → RoutineRunVariablesDialog-CrC88u8T.js} +2 -2
- package/dist/assets/{Routines.production-PCnujAqa.js → Routines.production-BreVWKw_.js} +1 -1
- package/dist/assets/{SearchableSelect-BOAdBQ1_.js → SearchableSelect-CyZJenSa.js} +2 -2
- package/dist/assets/{StatusIcon-BBMKEIzh.js → StatusIcon-C_7wHYAC.js} +1 -1
- package/dist/assets/{Terminal-BKpg1lTQ.js → Terminal-DvZkSOO9.js} +1 -1
- package/dist/assets/{ToastContext-pqJDE-qV.js → ToastContext-YqYQB596.js} +1 -1
- package/dist/assets/{access-DFdkIDh6.js → access-CspWWirX.js} +1 -1
- package/dist/assets/agent-avatar-url-BgdXoMNW.js +1 -0
- package/dist/assets/{agents-Bt8zKqlA.js → agents-BXUtBaur.js} +1 -1
- package/dist/assets/{alert-dialog-BTQO_vxZ.js → alert-dialog-BGWR1eHm.js} +1 -1
- package/dist/assets/{arrow-right-Ce12eTM-.js → arrow-right-QtlfoJHE.js} +1 -1
- package/dist/assets/{badge-DS0iSZk6.js → badge-_pdOC0PF.js} +1 -1
- package/dist/assets/{bot-BGWVOcez.js → bot-B09KshQK.js} +1 -1
- package/dist/assets/{boxes-C02rVL8S.js → boxes-Bpd3vwBa.js} +15 -15
- package/dist/assets/card-B_2b5Riw.js +1 -0
- package/dist/assets/{check-DgsYPXlG.js → check-2BJzr5lo.js} +1 -1
- package/dist/assets/{checkbox-DoOpwYPO.js → checkbox-DhPd8h_U.js} +1 -1
- package/dist/assets/{chevron-down-BEJgazB5.js → chevron-down-C8ZdH7h9.js} +1 -1
- package/dist/assets/{clipboard-AC72N8Z3.js → clipboard-B6GwC8zN.js} +1 -1
- package/dist/assets/{definition-qpMYsfq9.js → definition-CzvtfwXO.js} +1 -1
- package/dist/assets/{dialog-BMEd_jdP.js → dialog-aW5qVpwP.js} +1 -1
- package/dist/assets/{dist-BdyzVC8t.js → dist-BNyB3Sjo.js} +1 -1
- package/dist/assets/{dist-B6Jsa02Z.js → dist-Cwi5N9Q2.js} +1 -1
- package/dist/assets/dist-G1LZKTxg.js +1 -0
- package/dist/assets/{dist-CePqi6B5.js → dist-f8T_RDWp.js} +1 -1
- package/dist/assets/{dist-B2LcjvpJ.js → dist-rAdi5Ixy.js} +1 -1
- package/dist/assets/{environments-wosDJECi.js → environments-C7g5xojw.js} +1 -1
- package/dist/assets/{external-link-CGKReFbp.js → external-link-CDJwwbV8.js} +1 -1
- package/dist/assets/{file-text-BEpTQbBb.js → file-text-HU_olDIx.js} +1 -1
- package/dist/assets/{health-Dg7ygOgu.js → health-Za7wEC5p.js} +1 -1
- package/dist/assets/heartbeats-CpU47ZZC.js +1 -0
- package/dist/assets/{index-BETsy-4G.js → index-1d87cXe2.js} +167 -167
- package/dist/assets/index-C3k-0GCc.css +1 -0
- package/dist/assets/{input-n2PwoC5W.js → input-CfcFr-x-.js} +1 -1
- package/dist/assets/{instanceSettings-UW4UJtsx.js → instanceSettings-CIY4sDga.js} +1 -1
- package/dist/assets/{label-CljinCBZ.js → label-CRFTGD7I.js} +1 -1
- package/dist/assets/{mention-chips-qHd6m1ND.js → mention-chips-1XYhZxbY.js} +2 -2
- package/dist/assets/{rotate-ccw-BG8FHoCt.js → rotate-ccw-MDZCGMRv.js} +1 -1
- package/dist/assets/{save-BXLSR2gg.js → save-BDLuZ_1b.js} +1 -1
- package/dist/assets/{select-BE2Dzeqe.js → select-CV4NIBut.js} +1 -1
- package/dist/assets/{sheet-f-OPLA_A.js → sheet-gHOCLZNA.js} +1 -1
- package/dist/assets/{skeleton-B0n5vJZM.js → skeleton-BXdcfOZv.js} +1 -1
- package/dist/assets/{tabs-DjPbBqQc.js → tabs-D69nzsXS.js} +1 -1
- package/dist/assets/{use-adapter-capabilities-D1fcMd4Z.js → use-adapter-capabilities--7ZiaS5B.js} +1 -1
- package/dist/assets/{useHiddenSettings-CrkxOtUf.js → useHiddenSettings-DUdQI3FV.js} +1 -1
- package/dist/assets/{usePrefersReducedMotion-BWTaUL90.js → usePrefersReducedMotion-CT6hiLGt.js} +1 -1
- package/dist/assets/{x-DzHuYO5n.js → x-BYvg7sTI.js} +1 -1
- package/dist/downloads/local-browser-chromium.zip +0 -0
- package/dist/downloads/local-browser-firefox-unsigned.zip +0 -0
- package/dist/downloads/local-browser-firefox.xpi +0 -0
- package/dist/index.html +50 -50
- package/dist/sw.js +1 -1
- package/package.json +1 -1
- package/dist/assets/agent-avatar-url-BMpmTJXY.js +0 -1
- package/dist/assets/card-B_jC1ZsI.js +0 -1
- package/dist/assets/dist-Bmk2aBAp.js +0 -1
- package/dist/assets/heartbeats-EALHMlGe.js +0 -1
- package/dist/assets/index-CARV3Pdj.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var xe=Object.defineProperty;var s=(n,o)=>xe(n,"name",{value:o,configurable:!0});import{i as ae}from"./rolldown-runtime-ZpX3ckPj.js";import{$a as pe,G as ee,St as te,Xa as re,Za as fe,_a as K,ga as Q,ht as ge,n as je}from"./boxes-C02rVL8S.js";import{n as be,o as ve,r as S,st as se}from"./BreadcrumbContext-C5UY1_2_.js";import{C as ye,S as Se,_ as Ne,a as Ce,c as we,f as ke,i as De,m as X,o as Me,p,r as Ee,t as He,u as ze}from"./dialog-BMEd_jdP.js";import{t as G}from"./label-CljinCBZ.js";import{t as Fe}from"./x-DzHuYO5n.js";import{t as P}from"./input-n2PwoC5W.js";import{t as Le}from"./access-DFdkIDh6.js";import{t as _e}from"./environments-wosDJECi.js";import{_t as k,c as Ae,gt as qe,ht as Z,mt as D,o as Te,pn as ne,pt as Ke,s as Pe,un as V}from"./index-BETsy-4G.js";var ie={name:"columns-2",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],aliases:["columns"]};ie.node;var Qe=je(ie),d=ae(pe(),1),e=ae(fe(),1);function $e({companyId:n,open:o,savedHosts:u,onOpenChange:r,onConnect:m}){const M=re(),[N,j]=(0,d.useState)(""),[v,E]=(0,d.useState)(""),[y,L]=(0,d.useState)(""),[H,C]=(0,d.useState)(null),f=y.trim(),g=s(()=>M.invalidateQueries({queryKey:Z.sshHosts(n)}),"refreshHosts"),w=Q({mutationFn:s(()=>D.createSshHost(n,{name:N.trim(),destination:v.trim(),...f?{port:Number.parseInt(f,10)}:{}}),"mutationFn"),onSuccess:s(l=>{C(null),j(""),E(""),L(""),g(),r(!1),m(l)},"onSuccess"),onError:s(l=>C(k(l,"Could not save the SSH host.")),"onError")}),b=Q({mutationFn:s(l=>D.removeSshHost(n,l),"mutationFn"),onSuccess:s(()=>{C(null),g()},"onSuccess"),onError:s(l=>C(k(l,"Could not remove the saved SSH host.")),"onError")}),z=f.length>0&&!/^[0-9]+$/.test(f),x=w.isPending||!N.trim()||!v.trim()||z;return(0,e.jsx)(He,{open:o,onOpenChange:r,children:(0,e.jsxs)(Ee,{className:"sm:max-w-md",children:[(0,e.jsxs)(Me,{children:[(0,e.jsx)(we,{children:"Connect to host"}),(0,e.jsx)(De,{children:"The session starts this server's ssh client with its own keys, agent and known hosts."})]}),(0,e.jsxs)("form",{className:"space-y-3",onSubmit:s(l=>{l.preventDefault(),x||w.mutate()},"onSubmit"),children:[(0,e.jsxs)("div",{className:"space-y-1",children:[(0,e.jsx)(G,{htmlFor:"ssh-host-name",children:"Name"}),(0,e.jsx)(P,{id:"ssh-host-name",value:N,placeholder:"prod-db",autoComplete:"off",onChange:s(l=>j(l.target.value),"onChange")})]}),(0,e.jsxs)("div",{className:"space-y-1",children:[(0,e.jsx)(G,{htmlFor:"ssh-host-destination",children:"Destination"}),(0,e.jsx)(P,{id:"ssh-host-destination",value:v,placeholder:"user@host",autoComplete:"off",onChange:s(l=>E(l.target.value),"onChange")})]}),(0,e.jsxs)("div",{className:"space-y-1",children:[(0,e.jsx)(G,{htmlFor:"ssh-host-port",children:"Port"}),(0,e.jsx)(P,{id:"ssh-host-port",value:y,placeholder:"22",inputMode:"numeric",autoComplete:"off","aria-invalid":z,onChange:s(l=>L(l.target.value),"onChange")})]}),H?(0,e.jsx)("p",{className:"text-xs text-destructive",role:"alert",children:H}):null,u.length>0?(0,e.jsxs)("div",{className:"space-y-1 border-t border-border pt-3",children:[(0,e.jsx)("p",{className:"text-xs font-medium text-foreground",children:"Saved hosts"}),(0,e.jsx)("ul",{className:"space-y-1",children:u.map(l=>(0,e.jsxs)("li",{className:"flex items-center gap-2 text-xs",children:[(0,e.jsxs)("button",{type:"button",className:"min-w-0 flex-1 truncate text-left hover:underline",onClick:s(()=>{r(!1),m(l)},"onClick"),children:[l.name,(0,e.jsxs)("span",{className:"ml-2 text-muted-foreground",children:[l.destination,l.port===null?"":`:${l.port}`]})]}),(0,e.jsx)(S,{type:"button",variant:"ghost",size:"icon-xs","aria-label":`Remove ${l.name}`,disabled:b.isPending&&b.variables===l.id,onClick:s(()=>b.mutate(l.id),"onClick"),children:(0,e.jsx)(ye,{"aria-hidden":!0})})]},l.id))})]}):null,(0,e.jsxs)(Ce,{children:[(0,e.jsx)(S,{type:"button",variant:"ghost",onClick:s(()=>r(!1),"onClick"),children:"Cancel"}),(0,e.jsx)(S,{type:"submit",disabled:x,children:"Save and connect"})]})]})]})})}s($e,"SshHostDialog");var F=2;function oe(n){return`paperclip:terminal-layout:v1:${n}`}s(oe,"layoutKey");function U(n){return`paperclip:terminal-titles:v1:${n}`}s(U,"titlesKey");function le(n){try{return JSON.parse(window.localStorage.getItem(n)??"null")}catch{return null}}s(le,"readJson");function W(n,o){try{window.localStorage.setItem(n,JSON.stringify(o))}catch{return}}s(W,"writeJson");function Oe(n){const o=le(oe(n)),u=Array.isArray(o?.panes)?o.panes.filter(r=>typeof r=="string").slice(0,F):[];return{panes:u,focused:typeof o?.focused=="number"&&o.focused>=0&&o.focused<u.length?o.focused:0}}s(Oe,"readLayout");function Be(n){const o=le(U(n));return!o||typeof o!="object"||Array.isArray(o)?{}:Object.fromEntries(Object.entries(o).filter(u=>typeof u[1]=="string"))}s(Be,"readTitles");function Re(n,o){const u=new Set(o.map(m=>m.id)),r=n.panes.filter((m,M)=>u.has(m)&&n.panes.indexOf(m)===M);return r.length===0&&o.length>0&&r.push(o[0].id),{panes:r,focused:Math.min(n.focused,Math.max(0,r.length-1))}}s(Re,"reconcileLayout");function Je(n,o){return n.focused===o.focused&&n.panes.length===o.panes.length&&n.panes.every((u,r)=>u===o.panes[r])}s(Je,"sameLayout");function Xe({companyId:n}){const o=re(),u=Z.sessions(n),[r,m]=(0,d.useState)(()=>Oe(n)),[M,N]=(0,d.useState)(()=>Be(n)),[j,v]=(0,d.useState)(null),[E,y]=(0,d.useState)(null),[L,H]=(0,d.useState)(!1),C=K({queryKey:te.access.currentBoardAccess,queryFn:s(()=>Le.getCurrentBoardAccess(),"queryFn")}),f=qe(C.data),g=K({queryKey:u,queryFn:s(()=>D.list(n),"queryFn")}),w=K({queryKey:te.environments.list(n),queryFn:s(()=>_e.list(n),"queryFn"),enabled:g.isSuccess}),b=(0,d.useMemo)(()=>g.data??[],[g.data]),z=(0,d.useMemo)(()=>(w.data??[]).filter(t=>t.driver==="ssh"),[w.data]),x=K({queryKey:Z.sshHosts(n),queryFn:s(()=>D.listSshHosts(n),"queryFn"),enabled:f}),l=(0,d.useMemo)(()=>(x.data?.hosts??[]).filter(t=>t.source==="config"),[x.data]),_=(0,d.useMemo)(()=>(x.data?.hosts??[]).filter(t=>t.source==="saved"),[x.data]);(0,d.useEffect)(()=>{g.isSuccess&&m(t=>{const a=Re(t,b);return Je(t,a)?t:a})},[b,g.isSuccess]),(0,d.useEffect)(()=>{W(oe(n),r)},[n,r]);const $=(0,d.useCallback)(t=>{o.setQueryData(u,(a=[])=>a.some(i=>i.id===t.id)?a.map(i=>i.id===t.id?t:i):[...a,t])},[o,u]),O=(0,d.useCallback)((t,a)=>{m(i=>{const c=i.panes.indexOf(t);if(c>=0)return{...i,focused:c};const h=a??i.focused,T=[...i.panes];return h>=T.length?T.push(t):T[h]=t,{panes:T.slice(0,F),focused:Math.min(h,1)}})},[]),A=Q({mutationFn:s(t=>D.create(n,t.body),"mutationFn"),onSuccess:s((t,a)=>{y(null),$(t),O(t.id,a.pane)},"onSuccess"),onError:s(t=>y(k(t,"Could not open a terminal session.")),"onError")}),B=Q({mutationFn:s(t=>D.remove(n,t),"mutationFn"),onSuccess:s((t,a)=>{y(null),o.setQueryData(u,(i=[])=>i.filter(c=>c.id!==a)),m(i=>{const c=i.panes.filter(h=>h!==a);return{panes:c,focused:Math.min(i.focused,Math.max(0,c.length-1))}}),N(i=>{if(!(a in i))return i;const{[a]:c,...h}=i;return W(U(n),h),h})},"onSuccess"),onError:s(t=>y(k(t,"Could not close the terminal session.")),"onError")}),R=s(t=>A.mutate({body:{kind:"local"},pane:t}),"createLocal"),de=s((t,a)=>A.mutate({body:{kind:"ssh",environmentId:t,title:a}}),"createSsh"),J=s(t=>A.mutate({body:{kind:"local",sshHostId:t.id,title:t.name}}),"createSshHost"),ce=s(()=>{if(r.panes.length>=F){const a=r.panes[r.focused]??r.panes[0];m({panes:[a],focused:0});return}const t=b.find(a=>!r.panes.includes(a.id));t?O(t.id,r.panes.length):f&&R(r.panes.length)},"toggleSplit"),ue=s(t=>M[t.id]??t.title,"titleOf"),Y=s(()=>{if(!j)return;const t=j.value.trim();N(a=>{const{[j.id]:i,...c}=a,h=t?{...c,[j.id]:t}:c;return W(U(n),h),h}),v(null)},"commitRename"),me=s(t=>{t.key==="Enter"?(t.preventDefault(),Y()):t.key==="Escape"&&(t.preventDefault(),v(null))},"onRenameKeyDown");if(g.isLoading)return(0,e.jsx)("p",{className:"p-4 text-sm text-muted-foreground",children:"Loading terminal sessions…"});if(g.isError)return(0,e.jsxs)("div",{className:"flex h-full min-h-(--sz-60vh) flex-col items-center justify-center gap-2 p-6 text-center","data-testid":"terminal-access-error",children:[(0,e.jsx)(V,{className:"size-6 text-muted-foreground","aria-hidden":!0}),(0,e.jsx)("p",{className:"text-sm font-medium text-foreground",children:"Terminal unavailable"}),(0,e.jsx)("p",{className:"max-w-md text-sm text-muted-foreground",children:k(g.error,"Terminal sessions could not be loaded.")})]});const he=r.panes[r.focused]??null,I=new Map(b.map(t=>[t.id,t])),q=A.isPending;return(0,e.jsxs)("div",{className:"flex h-full min-h-(--sz-60vh) flex-col overflow-hidden rounded-md border border-border","data-testid":"terminal-workspace",children:[(0,e.jsxs)("div",{className:"flex shrink-0 items-center gap-1 border-b border-border px-2 py-1",children:[(0,e.jsx)("div",{role:"tablist","aria-label":"Terminal sessions",className:"flex min-w-0 flex-1 items-center gap-1 overflow-x-auto",children:b.map(t=>{const a=t.id===he,i=r.panes.includes(t.id),c=ue(t);return(0,e.jsxs)("div",{className:ee("group flex shrink-0 items-center gap-1 rounded-md border px-2 py-1 text-xs",a?"border-ring bg-accent text-foreground":i?"border-border text-foreground":"border-transparent text-muted-foreground hover:bg-accent"),children:[t.kind==="ssh"||t.sshHost?(0,e.jsx)(ne,{className:"size-3","aria-hidden":!0}):(0,e.jsx)(V,{className:"size-3","aria-hidden":!0}),j?.id===t.id?(0,e.jsx)(P,{autoFocus:!0,value:j.value,"aria-label":"Session title",onChange:s(h=>v({id:t.id,value:h.target.value}),"onChange"),onKeyDown:me,onBlur:Y,className:"h-6 w-32 px-1 text-xs md:text-xs"}):(0,e.jsxs)("button",{type:"button",role:"tab","aria-selected":a,title:"Double-click to rename",className:"max-w-48 truncate outline-none focus-visible:underline",onClick:s(()=>O(t.id),"onClick"),onDoubleClick:s(()=>v({id:t.id,value:c}),"onDoubleClick"),children:[c,t.status==="exited"?(0,e.jsx)("span",{className:"ml-1 text-muted-foreground",children:"(ended)"}):null]}),(0,e.jsx)("button",{type:"button","aria-label":`Close ${c}`,className:"rounded-sm text-muted-foreground hover:text-foreground",disabled:B.isPending&&B.variables===t.id,onClick:s(()=>B.mutate(t.id),"onClick"),children:(0,e.jsx)(Fe,{className:"size-3","aria-hidden":!0})})]},t.id)})}),f?(0,e.jsxs)(S,{type:"button",variant:"ghost",size:"xs",onClick:s(()=>R(),"onClick"),disabled:q,children:[(0,e.jsx)(se,{"aria-hidden":!0}),"Local"]}):null,(0,e.jsxs)(ze,{children:[(0,e.jsx)(Se,{asChild:!0,children:(0,e.jsxs)(S,{type:"button",variant:"ghost",size:"xs",disabled:q,children:[(0,e.jsx)(ne,{"aria-hidden":!0}),"SSH"]})}),(0,e.jsxs)(ke,{align:"end",className:"w-72",children:[f?(0,e.jsxs)(e.Fragment,{children:[x.isLoading?(0,e.jsx)(p,{disabled:!0,children:"Loading…"}):x.isError?(0,e.jsx)(p,{disabled:!0,className:"text-destructive",children:k(x.error,"SSH hosts could not be loaded.")}):l.length===0&&_.length===0?(0,e.jsx)(p,{disabled:!0,children:"No SSH hosts"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(X,{children:"~/.ssh/config"}),l.length===0?(0,e.jsx)(p,{disabled:!0,children:"No hosts"}):l.map(t=>(0,e.jsxs)(p,{onSelect:s(()=>J(t),"onSelect"),children:[(0,e.jsx)("span",{className:"truncate",children:t.name}),(0,e.jsx)("span",{className:"ml-auto truncate pl-2 text-xs text-muted-foreground",children:t.destination})]},t.id)),(0,e.jsx)(X,{children:"Saved"}),_.length===0?(0,e.jsx)(p,{disabled:!0,children:"No saved hosts"}):_.map(t=>(0,e.jsxs)(p,{onSelect:s(()=>J(t),"onSelect"),children:[(0,e.jsx)("span",{className:"truncate",children:t.name}),(0,e.jsxs)("span",{className:"ml-auto truncate pl-2 text-xs text-muted-foreground",children:[t.destination,t.port===null?"":`:${t.port}`]})]},t.id))]}),x.data?.configError?(0,e.jsx)(p,{disabled:!0,className:"text-muted-foreground",children:x.data.configError}):null]}):null,(0,e.jsx)(X,{children:"Environments"}),z.length===0?(0,e.jsx)(p,{disabled:!0,children:w.isLoading?"Loading…":"No SSH environments"}):z.map(t=>(0,e.jsx)(p,{onSelect:s(()=>de(t.id,t.name),"onSelect"),children:t.name},t.id)),(0,e.jsx)(Ne,{}),f?(0,e.jsx)(p,{onSelect:s(()=>H(!0),"onSelect"),children:"Connect to host…"}):null,(0,e.jsx)(p,{asChild:!0,children:(0,e.jsx)(ve,{to:"/company/settings/instance/environments",children:"Manage SSH environments"})})]})]}),(0,e.jsx)(S,{type:"button",variant:"ghost",size:"icon-xs","aria-label":r.panes.length>=F?"Close split":"Split terminal","aria-pressed":r.panes.length>=F,onClick:ce,disabled:q||r.panes.length===0,children:(0,e.jsx)(Qe,{"aria-hidden":!0})})]}),(0,e.jsx)($e,{companyId:n,open:L,savedHosts:_,onOpenChange:H,onConnect:J}),E?(0,e.jsx)("p",{className:"shrink-0 border-b border-border px-3 py-1 text-xs text-destructive",role:"alert",children:E}):null,r.panes.length===0?(0,e.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 p-6 text-center",children:[(0,e.jsx)(V,{className:"size-6 text-muted-foreground","aria-hidden":!0}),(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"No terminal sessions yet."}),f?(0,e.jsxs)(S,{type:"button",variant:"outline",size:"sm",onClick:s(()=>R(),"onClick"),disabled:q,children:[(0,e.jsx)(se,{"aria-hidden":!0}),"New local terminal"]}):(0,e.jsx)("p",{className:"max-w-md text-xs text-muted-foreground",children:"A shell on this host needs instance admin access. Open an SSH terminal to a registered environment instead."})]}):(0,e.jsx)(Ae,{className:"min-h-0 flex-1",children:r.panes.map((t,a)=>(0,e.jsxs)(d.Fragment,{children:[a>0?(0,e.jsx)(Te,{}):null,(0,e.jsx)(Pe,{id:`terminal-pane-${a}`,minSize:"20%",children:(0,e.jsx)("div",{className:ee("h-full min-h-0",r.panes.length>1&&a===r.focused&&"ring-1 ring-inset ring-ring"),onFocusCapture:s(()=>m(i=>i.focused===a?i:{...i,focused:a}),"onFocusCapture"),onMouseDown:s(()=>m(i=>i.focused===a?i:{...i,focused:a}),"onMouseDown"),"data-testid":`terminal-pane-${a}`,children:(0,e.jsx)(Ke,{companyId:n,sessionId:t,active:a===r.focused,onSessionChange:s(i=>{I.has(i.id)&&$(i)},"onSessionChange"),onExit:s(i=>{const c=I.get(t);c&&$({...c,status:"exited",exitCode:i.exitCode})},"onExit")})})})]},t))})]})}s(Xe,"TerminalWorkspace");function at(){const{selectedCompanyId:n}=ge(),{setBreadcrumbs:o}=be();return(0,d.useEffect)(()=>{o([{label:"Terminal"}])},[o]),n?(0,e.jsx)(Xe,{companyId:n},n):(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"Select a company to open a terminal."})}s(at,"Terminal");export{at as Terminal};
|
|
1
|
+
var xe=Object.defineProperty;var s=(n,o)=>xe(n,"name",{value:o,configurable:!0});import{i as ae}from"./rolldown-runtime-ZpX3ckPj.js";import{G as ee,Qa as pe,St as te,Za as re,_a as Q,eo as fe,ht as ge,n as je,va as K}from"./boxes-Bpd3vwBa.js";import{n as be,o as ve,r as S,st as se}from"./BreadcrumbContext-DP0mgUIg.js";import{C as ye,S as Se,_ as Ne,a as Ce,c as we,f as ke,i as De,m as G,o as Me,p,r as Ee,t as He,u as ze}from"./dialog-aW5qVpwP.js";import{t as X}from"./label-CRFTGD7I.js";import{t as Fe}from"./x-BYvg7sTI.js";import{t as P}from"./input-CfcFr-x-.js";import{t as Le}from"./access-CspWWirX.js";import{t as _e}from"./environments-C7g5xojw.js";import{_t as k,c as Ae,gt as qe,ht as Z,mt as D,o as Te,pn as ne,pt as Ke,s as Pe,un as V}from"./index-1d87cXe2.js";var ie={name:"columns-2",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],aliases:["columns"]};ie.node;var Qe=je(ie),d=ae(fe(),1),e=ae(pe(),1);function Oe({companyId:n,open:o,savedHosts:u,onOpenChange:r,onConnect:m}){const M=re(),[N,j]=(0,d.useState)(""),[v,E]=(0,d.useState)(""),[y,L]=(0,d.useState)(""),[H,C]=(0,d.useState)(null),f=y.trim(),g=s(()=>M.invalidateQueries({queryKey:Z.sshHosts(n)}),"refreshHosts"),w=Q({mutationFn:s(()=>D.createSshHost(n,{name:N.trim(),destination:v.trim(),...f?{port:Number.parseInt(f,10)}:{}}),"mutationFn"),onSuccess:s(l=>{C(null),j(""),E(""),L(""),g(),r(!1),m(l)},"onSuccess"),onError:s(l=>C(k(l,"Could not save the SSH host.")),"onError")}),b=Q({mutationFn:s(l=>D.removeSshHost(n,l),"mutationFn"),onSuccess:s(()=>{C(null),g()},"onSuccess"),onError:s(l=>C(k(l,"Could not remove the saved SSH host.")),"onError")}),z=f.length>0&&!/^[0-9]+$/.test(f),x=w.isPending||!N.trim()||!v.trim()||z;return(0,e.jsx)(He,{open:o,onOpenChange:r,children:(0,e.jsxs)(Ee,{className:"sm:max-w-md",children:[(0,e.jsxs)(Me,{children:[(0,e.jsx)(we,{children:"Connect to host"}),(0,e.jsx)(De,{children:"The session starts this server's ssh client with its own keys, agent and known hosts."})]}),(0,e.jsxs)("form",{className:"space-y-3",onSubmit:s(l=>{l.preventDefault(),x||w.mutate()},"onSubmit"),children:[(0,e.jsxs)("div",{className:"space-y-1",children:[(0,e.jsx)(X,{htmlFor:"ssh-host-name",children:"Name"}),(0,e.jsx)(P,{id:"ssh-host-name",value:N,placeholder:"prod-db",autoComplete:"off",onChange:s(l=>j(l.target.value),"onChange")})]}),(0,e.jsxs)("div",{className:"space-y-1",children:[(0,e.jsx)(X,{htmlFor:"ssh-host-destination",children:"Destination"}),(0,e.jsx)(P,{id:"ssh-host-destination",value:v,placeholder:"user@host",autoComplete:"off",onChange:s(l=>E(l.target.value),"onChange")})]}),(0,e.jsxs)("div",{className:"space-y-1",children:[(0,e.jsx)(X,{htmlFor:"ssh-host-port",children:"Port"}),(0,e.jsx)(P,{id:"ssh-host-port",value:y,placeholder:"22",inputMode:"numeric",autoComplete:"off","aria-invalid":z,onChange:s(l=>L(l.target.value),"onChange")})]}),H?(0,e.jsx)("p",{className:"text-xs text-destructive",role:"alert",children:H}):null,u.length>0?(0,e.jsxs)("div",{className:"space-y-1 border-t border-border pt-3",children:[(0,e.jsx)("p",{className:"text-xs font-medium text-foreground",children:"Saved hosts"}),(0,e.jsx)("ul",{className:"space-y-1",children:u.map(l=>(0,e.jsxs)("li",{className:"flex items-center gap-2 text-xs",children:[(0,e.jsxs)("button",{type:"button",className:"min-w-0 flex-1 truncate text-left hover:underline",onClick:s(()=>{r(!1),m(l)},"onClick"),children:[l.name,(0,e.jsxs)("span",{className:"ml-2 text-muted-foreground",children:[l.destination,l.port===null?"":`:${l.port}`]})]}),(0,e.jsx)(S,{type:"button",variant:"ghost",size:"icon-xs","aria-label":`Remove ${l.name}`,disabled:b.isPending&&b.variables===l.id,onClick:s(()=>b.mutate(l.id),"onClick"),children:(0,e.jsx)(ye,{"aria-hidden":!0})})]},l.id))})]}):null,(0,e.jsxs)(Ce,{children:[(0,e.jsx)(S,{type:"button",variant:"ghost",onClick:s(()=>r(!1),"onClick"),children:"Cancel"}),(0,e.jsx)(S,{type:"submit",disabled:x,children:"Save and connect"})]})]})]})})}s(Oe,"SshHostDialog");var F=2;function oe(n){return`paperclip:terminal-layout:v1:${n}`}s(oe,"layoutKey");function U(n){return`paperclip:terminal-titles:v1:${n}`}s(U,"titlesKey");function le(n){try{return JSON.parse(window.localStorage.getItem(n)??"null")}catch{return null}}s(le,"readJson");function W(n,o){try{window.localStorage.setItem(n,JSON.stringify(o))}catch{return}}s(W,"writeJson");function $e(n){const o=le(oe(n)),u=Array.isArray(o?.panes)?o.panes.filter(r=>typeof r=="string").slice(0,F):[];return{panes:u,focused:typeof o?.focused=="number"&&o.focused>=0&&o.focused<u.length?o.focused:0}}s($e,"readLayout");function Be(n){const o=le(U(n));return!o||typeof o!="object"||Array.isArray(o)?{}:Object.fromEntries(Object.entries(o).filter(u=>typeof u[1]=="string"))}s(Be,"readTitles");function Re(n,o){const u=new Set(o.map(m=>m.id)),r=n.panes.filter((m,M)=>u.has(m)&&n.panes.indexOf(m)===M);return r.length===0&&o.length>0&&r.push(o[0].id),{panes:r,focused:Math.min(n.focused,Math.max(0,r.length-1))}}s(Re,"reconcileLayout");function Je(n,o){return n.focused===o.focused&&n.panes.length===o.panes.length&&n.panes.every((u,r)=>u===o.panes[r])}s(Je,"sameLayout");function Ge({companyId:n}){const o=re(),u=Z.sessions(n),[r,m]=(0,d.useState)(()=>$e(n)),[M,N]=(0,d.useState)(()=>Be(n)),[j,v]=(0,d.useState)(null),[E,y]=(0,d.useState)(null),[L,H]=(0,d.useState)(!1),C=K({queryKey:te.access.currentBoardAccess,queryFn:s(()=>Le.getCurrentBoardAccess(),"queryFn")}),f=qe(C.data),g=K({queryKey:u,queryFn:s(()=>D.list(n),"queryFn")}),w=K({queryKey:te.environments.list(n),queryFn:s(()=>_e.list(n),"queryFn"),enabled:g.isSuccess}),b=(0,d.useMemo)(()=>g.data??[],[g.data]),z=(0,d.useMemo)(()=>(w.data??[]).filter(t=>t.driver==="ssh"),[w.data]),x=K({queryKey:Z.sshHosts(n),queryFn:s(()=>D.listSshHosts(n),"queryFn"),enabled:f}),l=(0,d.useMemo)(()=>(x.data?.hosts??[]).filter(t=>t.source==="config"),[x.data]),_=(0,d.useMemo)(()=>(x.data?.hosts??[]).filter(t=>t.source==="saved"),[x.data]);(0,d.useEffect)(()=>{g.isSuccess&&m(t=>{const a=Re(t,b);return Je(t,a)?t:a})},[b,g.isSuccess]),(0,d.useEffect)(()=>{W(oe(n),r)},[n,r]);const O=(0,d.useCallback)(t=>{o.setQueryData(u,(a=[])=>a.some(i=>i.id===t.id)?a.map(i=>i.id===t.id?t:i):[...a,t])},[o,u]),$=(0,d.useCallback)((t,a)=>{m(i=>{const c=i.panes.indexOf(t);if(c>=0)return{...i,focused:c};const h=a??i.focused,T=[...i.panes];return h>=T.length?T.push(t):T[h]=t,{panes:T.slice(0,F),focused:Math.min(h,1)}})},[]),A=Q({mutationFn:s(t=>D.create(n,t.body),"mutationFn"),onSuccess:s((t,a)=>{y(null),O(t),$(t.id,a.pane)},"onSuccess"),onError:s(t=>y(k(t,"Could not open a terminal session.")),"onError")}),B=Q({mutationFn:s(t=>D.remove(n,t),"mutationFn"),onSuccess:s((t,a)=>{y(null),o.setQueryData(u,(i=[])=>i.filter(c=>c.id!==a)),m(i=>{const c=i.panes.filter(h=>h!==a);return{panes:c,focused:Math.min(i.focused,Math.max(0,c.length-1))}}),N(i=>{if(!(a in i))return i;const{[a]:c,...h}=i;return W(U(n),h),h})},"onSuccess"),onError:s(t=>y(k(t,"Could not close the terminal session.")),"onError")}),R=s(t=>A.mutate({body:{kind:"local"},pane:t}),"createLocal"),de=s((t,a)=>A.mutate({body:{kind:"ssh",environmentId:t,title:a}}),"createSsh"),J=s(t=>A.mutate({body:{kind:"local",sshHostId:t.id,title:t.name}}),"createSshHost"),ce=s(()=>{if(r.panes.length>=F){const a=r.panes[r.focused]??r.panes[0];m({panes:[a],focused:0});return}const t=b.find(a=>!r.panes.includes(a.id));t?$(t.id,r.panes.length):f&&R(r.panes.length)},"toggleSplit"),ue=s(t=>M[t.id]??t.title,"titleOf"),Y=s(()=>{if(!j)return;const t=j.value.trim();N(a=>{const{[j.id]:i,...c}=a,h=t?{...c,[j.id]:t}:c;return W(U(n),h),h}),v(null)},"commitRename"),me=s(t=>{t.key==="Enter"?(t.preventDefault(),Y()):t.key==="Escape"&&(t.preventDefault(),v(null))},"onRenameKeyDown");if(g.isLoading)return(0,e.jsx)("p",{className:"p-4 text-sm text-muted-foreground",children:"Loading terminal sessions…"});if(g.isError)return(0,e.jsxs)("div",{className:"flex h-full min-h-(--sz-60vh) flex-col items-center justify-center gap-2 p-6 text-center","data-testid":"terminal-access-error",children:[(0,e.jsx)(V,{className:"size-6 text-muted-foreground","aria-hidden":!0}),(0,e.jsx)("p",{className:"text-sm font-medium text-foreground",children:"Terminal unavailable"}),(0,e.jsx)("p",{className:"max-w-md text-sm text-muted-foreground",children:k(g.error,"Terminal sessions could not be loaded.")})]});const he=r.panes[r.focused]??null,I=new Map(b.map(t=>[t.id,t])),q=A.isPending;return(0,e.jsxs)("div",{className:"flex h-full min-h-(--sz-60vh) flex-col overflow-hidden rounded-md border border-border","data-testid":"terminal-workspace",children:[(0,e.jsxs)("div",{className:"flex shrink-0 items-center gap-1 border-b border-border px-2 py-1",children:[(0,e.jsx)("div",{role:"tablist","aria-label":"Terminal sessions",className:"flex min-w-0 flex-1 items-center gap-1 overflow-x-auto",children:b.map(t=>{const a=t.id===he,i=r.panes.includes(t.id),c=ue(t);return(0,e.jsxs)("div",{className:ee("group flex shrink-0 items-center gap-1 rounded-md border px-2 py-1 text-xs",a?"border-ring bg-accent text-foreground":i?"border-border text-foreground":"border-transparent text-muted-foreground hover:bg-accent"),children:[t.kind==="ssh"||t.sshHost?(0,e.jsx)(ne,{className:"size-3","aria-hidden":!0}):(0,e.jsx)(V,{className:"size-3","aria-hidden":!0}),j?.id===t.id?(0,e.jsx)(P,{autoFocus:!0,value:j.value,"aria-label":"Session title",onChange:s(h=>v({id:t.id,value:h.target.value}),"onChange"),onKeyDown:me,onBlur:Y,className:"h-6 w-32 px-1 text-xs md:text-xs"}):(0,e.jsxs)("button",{type:"button",role:"tab","aria-selected":a,title:"Double-click to rename",className:"max-w-48 truncate outline-none focus-visible:underline",onClick:s(()=>$(t.id),"onClick"),onDoubleClick:s(()=>v({id:t.id,value:c}),"onDoubleClick"),children:[c,t.status==="exited"?(0,e.jsx)("span",{className:"ml-1 text-muted-foreground",children:"(ended)"}):null]}),(0,e.jsx)("button",{type:"button","aria-label":`Close ${c}`,className:"rounded-sm text-muted-foreground hover:text-foreground",disabled:B.isPending&&B.variables===t.id,onClick:s(()=>B.mutate(t.id),"onClick"),children:(0,e.jsx)(Fe,{className:"size-3","aria-hidden":!0})})]},t.id)})}),f?(0,e.jsxs)(S,{type:"button",variant:"ghost",size:"xs",onClick:s(()=>R(),"onClick"),disabled:q,children:[(0,e.jsx)(se,{"aria-hidden":!0}),"Local"]}):null,(0,e.jsxs)(ze,{children:[(0,e.jsx)(Se,{asChild:!0,children:(0,e.jsxs)(S,{type:"button",variant:"ghost",size:"xs",disabled:q,children:[(0,e.jsx)(ne,{"aria-hidden":!0}),"SSH"]})}),(0,e.jsxs)(ke,{align:"end",className:"w-72",children:[f?(0,e.jsxs)(e.Fragment,{children:[x.isLoading?(0,e.jsx)(p,{disabled:!0,children:"Loading…"}):x.isError?(0,e.jsx)(p,{disabled:!0,className:"text-destructive",children:k(x.error,"SSH hosts could not be loaded.")}):l.length===0&&_.length===0?(0,e.jsx)(p,{disabled:!0,children:"No SSH hosts"}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(G,{children:"~/.ssh/config"}),l.length===0?(0,e.jsx)(p,{disabled:!0,children:"No hosts"}):l.map(t=>(0,e.jsxs)(p,{onSelect:s(()=>J(t),"onSelect"),children:[(0,e.jsx)("span",{className:"truncate",children:t.name}),(0,e.jsx)("span",{className:"ml-auto truncate pl-2 text-xs text-muted-foreground",children:t.destination})]},t.id)),(0,e.jsx)(G,{children:"Saved"}),_.length===0?(0,e.jsx)(p,{disabled:!0,children:"No saved hosts"}):_.map(t=>(0,e.jsxs)(p,{onSelect:s(()=>J(t),"onSelect"),children:[(0,e.jsx)("span",{className:"truncate",children:t.name}),(0,e.jsxs)("span",{className:"ml-auto truncate pl-2 text-xs text-muted-foreground",children:[t.destination,t.port===null?"":`:${t.port}`]})]},t.id))]}),x.data?.configError?(0,e.jsx)(p,{disabled:!0,className:"text-muted-foreground",children:x.data.configError}):null]}):null,(0,e.jsx)(G,{children:"Environments"}),z.length===0?(0,e.jsx)(p,{disabled:!0,children:w.isLoading?"Loading…":"No SSH environments"}):z.map(t=>(0,e.jsx)(p,{onSelect:s(()=>de(t.id,t.name),"onSelect"),children:t.name},t.id)),(0,e.jsx)(Ne,{}),f?(0,e.jsx)(p,{onSelect:s(()=>H(!0),"onSelect"),children:"Connect to host…"}):null,(0,e.jsx)(p,{asChild:!0,children:(0,e.jsx)(ve,{to:"/company/settings/instance/environments",children:"Manage SSH environments"})})]})]}),(0,e.jsx)(S,{type:"button",variant:"ghost",size:"icon-xs","aria-label":r.panes.length>=F?"Close split":"Split terminal","aria-pressed":r.panes.length>=F,onClick:ce,disabled:q||r.panes.length===0,children:(0,e.jsx)(Qe,{"aria-hidden":!0})})]}),(0,e.jsx)(Oe,{companyId:n,open:L,savedHosts:_,onOpenChange:H,onConnect:J}),E?(0,e.jsx)("p",{className:"shrink-0 border-b border-border px-3 py-1 text-xs text-destructive",role:"alert",children:E}):null,r.panes.length===0?(0,e.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 p-6 text-center",children:[(0,e.jsx)(V,{className:"size-6 text-muted-foreground","aria-hidden":!0}),(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"No terminal sessions yet."}),f?(0,e.jsxs)(S,{type:"button",variant:"outline",size:"sm",onClick:s(()=>R(),"onClick"),disabled:q,children:[(0,e.jsx)(se,{"aria-hidden":!0}),"New local terminal"]}):(0,e.jsx)("p",{className:"max-w-md text-xs text-muted-foreground",children:"A shell on this host needs instance admin access. Open an SSH terminal to a registered environment instead."})]}):(0,e.jsx)(Ae,{className:"min-h-0 flex-1",children:r.panes.map((t,a)=>(0,e.jsxs)(d.Fragment,{children:[a>0?(0,e.jsx)(Te,{}):null,(0,e.jsx)(Pe,{id:`terminal-pane-${a}`,minSize:"20%",children:(0,e.jsx)("div",{className:ee("h-full min-h-0",r.panes.length>1&&a===r.focused&&"ring-1 ring-inset ring-ring"),onFocusCapture:s(()=>m(i=>i.focused===a?i:{...i,focused:a}),"onFocusCapture"),onMouseDown:s(()=>m(i=>i.focused===a?i:{...i,focused:a}),"onMouseDown"),"data-testid":`terminal-pane-${a}`,children:(0,e.jsx)(Ke,{companyId:n,sessionId:t,active:a===r.focused,onSessionChange:s(i=>{I.has(i.id)&&O(i)},"onSessionChange"),onExit:s(i=>{const c=I.get(t);c&&O({...c,status:"exited",exitCode:i.exitCode})},"onExit")})})})]},t))})]})}s(Ge,"TerminalWorkspace");function at(){const{selectedCompanyId:n}=ge(),{setBreadcrumbs:o}=be();return(0,d.useEffect)(()=>{o([{label:"Terminal"}])},[o]),n?(0,e.jsx)(Ge,{companyId:n},n):(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"Select a company to open a terminal."})}s(at,"Terminal");export{at as Terminal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var D=Object.defineProperty;var s=(e,n)=>D(e,"name",{value:n,configurable:!0});import{i as C}from"./rolldown-runtime-ZpX3ckPj.js";import{
|
|
1
|
+
var D=Object.defineProperty;var s=(e,n)=>D(e,"name",{value:n,configurable:!0});import{i as C}from"./rolldown-runtime-ZpX3ckPj.js";import{Qa as y,eo as P}from"./boxes-Bpd3vwBa.js";var o=C(P(),1),b=C(y(),1),k={info:4e3,success:3500,warn:8e3,error:1e4},$=1500,O=15e3,g=5,j=3500,L=2e4,_=(0,o.createContext)(null),w=(0,o.createContext)(null);function N(e,n){const i=k[n];return typeof e!="number"||!Number.isFinite(e)?i:Math.max($,Math.min(O,Math.floor(e)))}s(N,"normalizeTtl");function R(){return`toast_${Date.now()}_${Math.random().toString(36).slice(2,8)}`}s(R,"generateToastId");function F({children:e}){const[n,i]=(0,o.useState)([]),a=(0,o.useRef)(new Map),l=(0,o.useRef)(new Map),f=(0,o.useCallback)(t=>{const r=a.current.get(t);r!==void 0&&(window.clearTimeout(r),a.current.delete(t))},[]),d=(0,o.useCallback)(t=>{f(t),i(r=>r.filter(u=>u.id!==t))},[f]),M=(0,o.useCallback)(()=>{for(const t of a.current.values())window.clearTimeout(t);a.current.clear(),i([])},[]),v=(0,o.useCallback)(t=>{const r=Date.now(),u=t.tone??"info",x=N(t.ttlMs,u),h=t.dedupeKey??t.id??`${u}|${t.title}|${t.body??""}|${t.action?.href??""}`;for(const[T,m]of l.current.entries())r-m>L&&l.current.delete(T);const S=l.current.get(h);if(S&&r-S<j)return null;l.current.set(h,r);const c=t.id??R();f(c),i(T=>[{id:c,title:t.title,body:t.body,tone:u,ttlMs:x,action:t.action,actor:t.actor,createdAt:r},...T.filter(m=>m.id!==c)].slice(0,g));const E=window.setTimeout(()=>{d(c)},x);return a.current.set(c,E),c},[f,d]);(0,o.useEffect)(()=>()=>{for(const t of a.current.values())window.clearTimeout(t);a.current.clear()},[]);const A=(0,o.useMemo)(()=>({pushToast:v,dismissToast:d,clearToasts:M}),[v,d,M]);return(0,b.jsx)(w.Provider,{value:A,children:(0,b.jsx)(_.Provider,{value:n,children:e})})}s(F,"ToastProvider");function p(){const e=(0,o.useContext)(_);if(!e)throw new Error("useToastState must be used within a ToastProvider");return e}s(p,"useToastState");function I(){const e=(0,o.useContext)(w);if(!e)throw new Error("useToastActions must be used within a ToastProvider");return e}s(I,"useToastActions");function K(){return(0,o.useContext)(w)}s(K,"useOptionalToastActions");function W(){return(0,o.useContext)(_)}s(W,"useOptionalToastState");function z(){const e=p(),n=I();return(0,o.useMemo)(()=>({toasts:e,...n}),[e,n])}s(z,"useToast");export{I as a,z as i,K as n,p as o,W as r,F as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var n=Object.defineProperty;var s=(e,t)=>n(e,"name",{value:t,configurable:!0});import{
|
|
1
|
+
var n=Object.defineProperty;var s=(e,t)=>n(e,"name",{value:t,configurable:!0});import{ia as i}from"./boxes-Bpd3vwBa.js";function o(e){const t=new URLSearchParams;e.state&&t.set("state",e.state),e.limit&&t.set("limit",String(e.limit)),e.offset&&t.set("offset",String(e.offset));const a=t.toString();return a?`?${a}`:""}s(o,"buildInviteListQuery");var m={createCompanyInvite:s((e,t={})=>i.post(`/companies/${e}/invites`,t),"createCompanyInvite"),createOpenClawInvitePrompt:s((e,t={})=>i.post(`/companies/${e}/openclaw/invite-prompt`,t),"createOpenClawInvitePrompt"),getInvite:s(e=>i.get(`/invites/${e}`),"getInvite"),getInviteOnboarding:s(e=>i.get(`/invites/${e}/onboarding`),"getInviteOnboarding"),acceptInvite:s((e,t)=>i.post(`/invites/${e}/accept`,t),"acceptInvite"),listInvites:s((e,t={})=>i.get(`/companies/${e}/invites${o(t)}`),"listInvites"),revokeInvite:s(e=>i.post(`/invites/${e}/revoke`,{}),"revokeInvite"),listJoinRequests:s((e,t="pending_approval",a)=>i.get(`/companies/${e}/join-requests?status=${t}${a?`&requestType=${a}`:""}`),"listJoinRequests"),listMembers:s(e=>i.get(`/companies/${e}/members`),"listMembers"),listUserDirectory:s(e=>i.get(`/companies/${e}/user-directory`),"listUserDirectory"),updateMember:s((e,t,a)=>i.patch(`/companies/${e}/members/${t}`,a),"updateMember"),updateMemberPermissions:s((e,t,a)=>i.patch(`/companies/${e}/members/${t}/permissions`,a),"updateMemberPermissions"),updateMemberAccess:s((e,t,a)=>i.patch(`/companies/${e}/members/${t}/role-and-grants`,a),"updateMemberAccess"),archiveMember:s((e,t,a={})=>i.post(`/companies/${e}/members/${t}/archive`,a),"archiveMember"),approveJoinRequest:s((e,t)=>i.post(`/companies/${e}/join-requests/${t}/approve`,{}),"approveJoinRequest"),rejectJoinRequest:s((e,t)=>i.post(`/companies/${e}/join-requests/${t}/reject`,{}),"rejectJoinRequest"),claimJoinRequestApiKey:s((e,t)=>i.post(`/join-requests/${e}/claim-api-key`,{claimSecret:t}),"claimJoinRequestApiKey"),getBoardClaimStatus:s((e,t)=>i.get(`/board-claim/${e}?code=${encodeURIComponent(t)}`),"getBoardClaimStatus"),claimBoard:s((e,t)=>i.post(`/board-claim/${e}/claim`,{code:t}),"claimBoard"),claimBootstrapAdmin:s(()=>i.post("/bootstrap/claim",{}),"claimBootstrapAdmin"),getCliAuthChallenge:s((e,t)=>i.get(`/cli-auth/challenges/${e}?token=${encodeURIComponent(t)}`),"getCliAuthChallenge"),approveCliAuthChallenge:s((e,t)=>i.post(`/cli-auth/challenges/${e}/approve`,{token:t}),"approveCliAuthChallenge"),cancelCliAuthChallenge:s((e,t)=>i.post(`/cli-auth/challenges/${e}/cancel`,{token:t}),"cancelCliAuthChallenge"),searchAdminUsers:s(e=>i.get(`/admin/users?query=${encodeURIComponent(e)}`),"searchAdminUsers"),promoteInstanceAdmin:s(e=>i.post(`/admin/users/${e}/promote-instance-admin`,{}),"promoteInstanceAdmin"),demoteInstanceAdmin:s(e=>i.post(`/admin/users/${e}/demote-instance-admin`,{}),"demoteInstanceAdmin"),getUserCompanyAccess:s(e=>i.get(`/admin/users/${e}/company-access`),"getUserCompanyAccess"),setUserCompanyAccess:s((e,t)=>i.put(`/admin/users/${e}/company-access`,{companyIds:t}),"setUserCompanyAccess"),getCurrentBoardAccess:s(()=>i.get("/cli-auth/me"),"getCurrentBoardAccess")};export{m as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./boxes-Bpd3vwBa.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var u=Object.defineProperty;var o=(e,t)=>u(e,"name",{value:t,configurable:!0});import{
|
|
1
|
+
var u=Object.defineProperty;var o=(e,t)=>u(e,"name",{value:t,configurable:!0});import{Br as p,ia as s,ra as l,zr as g}from"./boxes-Bpd3vwBa.js";function d(e,t){return t?`${e}${e.includes("?")?"&":"?"}companyId=${encodeURIComponent(t)}`:e}o(d,"withCompanyScope");function a(e,t,n=""){return d(`/agents/${encodeURIComponent(e)}${n}`,t)}o(a,"agentPath");var C={setAvatar:o((e,t,n)=>s.put(`/companies/${e}/agents/${t}/avatar`,{imageBase64:n}),"setAvatar"),getIdentity:o((e,t)=>s.get(a(e,t,"/identity")),"getIdentity"),adoptAiConnection:o((e,t,n,i)=>s.post(d(`/agents/${e}/connection-intents/${t}/adopt`,i),{connectionId:n}),"adoptAiConnection"),list:o(e=>s.get(`/companies/${e}/agents`),"list"),org:o(e=>s.get(`/companies/${e}/org`),"org"),listConfigurations:o(e=>s.get(`/companies/${e}/agent-configurations`),"listConfigurations"),get:o(async(e,t)=>{try{return await s.get(a(e,t))}catch(n){if(!(n instanceof l)||n.status!==409||!t||g(e))throw n;const i=p(e);if(!i)throw n;const r=(await s.get(`/companies/${t}/agents`)).filter(c=>c.status!=="terminated"&&p(c.urlKey)===i);if(r.length!==1)throw n;return s.get(a(r[0].id,t))}},"get"),getConfiguration:o((e,t)=>s.get(a(e,t,"/configuration")),"getConfiguration"),listConfigRevisions:o((e,t)=>s.get(a(e,t,"/config-revisions")),"listConfigRevisions"),getConfigRevision:o((e,t,n)=>s.get(a(e,n,`/config-revisions/${t}`)),"getConfigRevision"),rollbackConfigRevision:o((e,t,n)=>s.post(a(e,n,`/config-revisions/${t}/rollback`),{}),"rollbackConfigRevision"),create:o((e,t)=>s.post(`/companies/${e}/agents`,t),"create"),hire:o((e,t)=>s.post(`/companies/${e}/agent-hires`,t),"hire"),update:o((e,t,n)=>s.patch(a(e,n),t),"update"),updatePermissions:o((e,t,n)=>s.patch(a(e,n,"/permissions"),t),"updatePermissions"),batchAdapterConfigPreview:o(e=>s.post("/agents/batch/adapter-config/preview",{agentIds:e}),"batchAdapterConfigPreview"),batchAdapterConfig:o((e,t)=>s.post("/agents/batch/adapter-config",{agentIds:e,values:t}),"batchAdapterConfig"),instructionsBundle:o((e,t)=>s.get(a(e,t,"/instructions-bundle")),"instructionsBundle"),updateInstructionsBundle:o((e,t,n)=>s.patch(a(e,n,"/instructions-bundle"),t),"updateInstructionsBundle"),instructionsFile:o((e,t,n)=>s.get(a(e,n,`/instructions-bundle/file?path=${encodeURIComponent(t)}`)),"instructionsFile"),saveInstructionsFile:o((e,t,n)=>s.put(a(e,n,"/instructions-bundle/file"),t),"saveInstructionsFile"),instructionCandidates:o((e,t)=>s.get(a(e,t,"/instructions-bundle/candidates")),"instructionCandidates"),resolveInstructionCandidate:o((e,t,n,i)=>s.post(a(e,i,`/instructions-bundle/candidates/${t}/resolve`),n),"resolveInstructionCandidate"),instructionHistory:o((e,t,n,i)=>s.get(a(e,n,`/instructions-bundle/history?path=${encodeURIComponent(t)}${i?`&cursor=${encodeURIComponent(i)}`:""}`)),"instructionHistory"),instructionRevision:o((e,t,n,i)=>s.get(a(e,i,`/instructions-bundle/revision/${n}?path=${encodeURIComponent(t)}`)),"instructionRevision"),instructionDiff:o((e,t,n,i,r)=>s.get(a(e,r,`/instructions-bundle/diff?path=${encodeURIComponent(t)}&from=${encodeURIComponent(n)}&to=${encodeURIComponent(i)}`)),"instructionDiff"),restoreInstructions:o((e,t,n)=>s.post(a(e,n,"/instructions-bundle/restore"),t),"restoreInstructions"),downloadInstructionsFile:o((e,t,n)=>`/api${a(e,n,`/instructions-bundle/file?path=${encodeURIComponent(t)}&download=true`)}`,"downloadInstructionsFile"),deleteInstructionsFile:o((e,t,n,i)=>s.delete(a(e,n,`/instructions-bundle/file?path=${encodeURIComponent(t)}${i?`&baseHash=${i}`:""}`)),"deleteInstructionsFile"),retryLifecycle:o((e,t)=>s.post(a(e,t,"/lifecycle/retry"),{}),"retryLifecycle"),pause:o((e,t)=>s.post(a(e,t,"/pause"),{}),"pause"),resume:o((e,t)=>s.post(a(e,t,"/resume"),{}),"resume"),clearError:o((e,t)=>s.post(a(e,t,"/clear-error"),{}),"clearError"),approve:o((e,t)=>s.post(a(e,t,"/approve"),{}),"approve"),terminate:o((e,t)=>s.post(a(e,t,"/terminate"),{}),"terminate"),remove:o((e,t)=>s.delete(a(e,t)),"remove"),listKeys:o((e,t)=>s.get(a(e,t,"/keys")),"listKeys"),skills:o((e,t)=>s.get(a(e,t,"/skills")),"skills"),syncSkills:o((e,t,n,i)=>s.post(a(e,i,"/skills/sync"),{desiredSkills:t,mode:n}),"syncSkills"),createKey:o((e,t,n,i)=>s.post(a(e,n,"/keys"),{name:t,...i?{scope:i}:{}}),"createKey"),revokeKey:o((e,t,n)=>s.delete(a(e,n,`/keys/${encodeURIComponent(t)}`)),"revokeKey"),runtimeState:o((e,t)=>s.get(a(e,t,"/runtime-state")),"runtimeState"),taskSessions:o((e,t)=>s.get(a(e,t,"/task-sessions")),"taskSessions"),resetSession:o((e,t,n)=>s.post(a(e,n,"/runtime-state/reset-session"),{taskKey:t??null}),"resetSession"),adapterModels:o((e,t,n)=>{const i=new URLSearchParams;n?.refresh&&i.set("refresh","1"),n?.provider&&i.set("provider",n.provider),n?.poolId&&i.set("poolId",n.poolId),n?.environmentId&&i.set("environmentId",n.environmentId);const r=i.size>0?`?${i.toString()}`:"";return s.get(`/companies/${encodeURIComponent(e)}/adapters/${encodeURIComponent(t)}/models${r}`)},"adapterModels"),detectModel:o((e,t)=>s.get(`/companies/${encodeURIComponent(e)}/adapters/${encodeURIComponent(t)}/detect-model`),"detectModel"),testEnvironment:o((e,t,n)=>s.post(`/companies/${e}/adapters/${t}/test-environment`,n),"testEnvironment"),getAdapterAuthSignal:o((e,t,n)=>{const i=n?`?environmentId=${encodeURIComponent(n)}`:"";return s.get(`/companies/${encodeURIComponent(e)}/adapters/${encodeURIComponent(t)}/auth-signal${i}`)},"getAdapterAuthSignal"),invoke:o((e,t,n={})=>s.post(a(e,t,"/heartbeat/invoke"),n),"invoke"),wakeup:o((e,t,n)=>s.post(a(e,n,"/wakeup"),t),"wakeup"),retryFailedRun:o(async(e,t,n)=>{const i=await s.post(a(e,n,"/wakeup"),{source:"on_demand",triggerDetail:"manual",reason:"retry_failed_run",failedRunId:t});if("id"in i){if(["failed","timed_out","cancelled","interrupted"].includes(i.status))throw new Error("The previous retry has already stopped. Refresh the task and retry its latest failed run.");return{runId:i.id,issueId:null}}if("actionId"in i){if(i.status==="failed"||i.status==="cancelled")throw new Error("This retry could not start. Open the task to review its current access and recovery state.");return{runId:i.runId,issueId:i.issueId}}throw new Error(i.message??"Retry was skipped.")},"retryFailedRun"),loginWithClaude:o((e,t)=>s.post(a(e,t,"/claude-login"),{}),"loginWithClaude"),startAdapterAuthLogin:o((e,t,n)=>s.post(`/companies/${encodeURIComponent(e)}/adapters/${encodeURIComponent(t)}/login-sessions`,n),"startAdapterAuthLogin"),getAdapterAuthLoginStatus:o((e,t,n)=>s.get(`/companies/${encodeURIComponent(e)}/adapters/${encodeURIComponent(t)}/login-sessions/${encodeURIComponent(n)}`,{cache:"no-store"}),"getAdapterAuthLoginStatus"),getActiveAdapterAuthLoginSession:o((e,t)=>s.get(`/companies/${encodeURIComponent(e)}/adapters/${encodeURIComponent(t)}/login-sessions/active`,{cache:"no-store"}),"getActiveAdapterAuthLoginSession"),cancelAdapterAuthLogin:o((e,t,n)=>s.post(`/companies/${encodeURIComponent(e)}/adapters/${encodeURIComponent(t)}/login-sessions/${encodeURIComponent(n)}/cancel`,{}),"cancelAdapterAuthLogin"),getClaudeOAuthTokenStatus:o(e=>s.get(`/companies/${encodeURIComponent(e)}/claude-oauth-token-status`),"getClaudeOAuthTokenStatus"),startClaudeSetupTokenLogin:o((e,t)=>s.post(`/companies/${encodeURIComponent(e)}/setup-token-login-sessions`,{adapterType:"claude_local",...t}),"startClaudeSetupTokenLogin"),getClaudeSetupTokenLoginStatus:o((e,t)=>s.get(`/companies/${encodeURIComponent(e)}/setup-token-login-sessions/${encodeURIComponent(t)}`),"getClaudeSetupTokenLoginStatus"),getActiveClaudeSetupTokenLoginSession:o(e=>s.get(`/companies/${encodeURIComponent(e)}/setup-token-login-sessions/active`,{cache:"no-store"}),"getActiveClaudeSetupTokenLoginSession"),getClaudeSetupTokenLoginPrompt:o((e,t)=>s.get(`/companies/${encodeURIComponent(e)}/setup-token-login-sessions/${encodeURIComponent(t)}/prompt`),"getClaudeSetupTokenLoginPrompt"),submitClaudeSetupTokenBrowserCode:o((e,t,n)=>s.post(`/companies/${encodeURIComponent(e)}/setup-token-login-sessions/${encodeURIComponent(t)}/code`,{browserCode:n}),"submitClaudeSetupTokenBrowserCode"),completeClaudeSetupTokenLogin:o((e,t)=>s.post(`/companies/${encodeURIComponent(e)}/setup-token-login-sessions/${encodeURIComponent(t)}/completion`,{}),"completeClaudeSetupTokenLogin"),cancelClaudeSetupTokenLogin:o((e,t)=>s.post(`/companies/${encodeURIComponent(e)}/setup-token-login-sessions/${encodeURIComponent(t)}/cancel`,{}),"cancelClaudeSetupTokenLogin"),availableSkills:o(()=>s.get("/skills/available"),"availableSkills")};export{C as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var P=Object.defineProperty;var o=(t,e)=>P(t,"name",{value:e,configurable:!0});import{i as A}from"./rolldown-runtime-ZpX3ckPj.js";import{
|
|
1
|
+
var P=Object.defineProperty;var o=(t,e)=>P(t,"name",{value:e,configurable:!0});import{i as A}from"./rolldown-runtime-ZpX3ckPj.js";import{A as T,G as c,L as m,Qa as b,eo as w,j as y,n as R}from"./boxes-Bpd3vwBa.js";import{i as x}from"./BreadcrumbContext-DP0mgUIg.js";import{a as z,c as S,i as h,l as v,n as j,o as N,r as O,s as $,t as k}from"./dist-BNyB3Sjo.js";import{a as E,i as M,n as q,o as F,r as L,t as H}from"./dist-G1LZKTxg.js";var s=A(w(),1),a=A(b(),1),I=Object.defineProperty,d=o((t,e)=>I(t,"name",{value:e,configurable:!0}),"__name"),[G,vt]=y("AlertDialog",[v]),g=v(),Q=d(t=>{const{__scopeAlertDialog:e,...l}=t,r=g(e);return(0,a.jsx)(k,{...r,...l,modal:!0})},"AlertDialog"),V=s.forwardRef(d(o(function(e,l){const{__scopeAlertDialog:r,...i}=e,n=g(r);return(0,a.jsx)(S,{...n,...i,ref:l})},"AlertDialogTrigger2"),"AlertDialogTrigger")),B=d(t=>{const{__scopeAlertDialog:e,...l}=t,r=g(e);return(0,a.jsx)(N,{...r,...l})},"AlertDialogPortal"),J=s.forwardRef(d(o(function(e,l){const{__scopeAlertDialog:r,...i}=e,n=g(r);return(0,a.jsx)(z,{...n,...i,ref:l})},"AlertDialogOverlay2"),"AlertDialogOverlay")),[K,U]=G("AlertDialogContent"),W=s.forwardRef(d(o(function(e,l){const{__scopeAlertDialog:r,children:i,...n}=e,p=g(r),f=s.useRef(null),C=m(l,f),D=s.useRef(null);return(0,a.jsx)(K,{scope:r,cancelRef:D,children:(0,a.jsx)(O,{role:"alertdialog",...p,...n,ref:C,onOpenAutoFocus:T(n.onOpenAutoFocus,u=>{u.preventDefault(),D.current?.focus({preventScroll:!0})}),onPointerDownOutside:o(u=>u.preventDefault(),"onPointerDownOutside"),onInteractOutside:o(u=>u.preventDefault(),"onInteractOutside"),children:i})})},"AlertDialogContent2"),"AlertDialogContent")),X=s.forwardRef(d(o(function(e,l){const{__scopeAlertDialog:r,...i}=e,n=g(r);return(0,a.jsx)($,{...n,...i,ref:l})},"AlertDialogTitle2"),"AlertDialogTitle")),Y=s.forwardRef(d(o(function(e,l){const{__scopeAlertDialog:r,...i}=e,n=g(r);return(0,a.jsx)(h,{...n,...i,ref:l})},"AlertDialogDescription2"),"AlertDialogDescription")),Z=s.forwardRef(d(o(function(e,l){const{__scopeAlertDialog:r,...i}=e,n=g(r);return(0,a.jsx)(j,{...n,...i,ref:l})},"AlertDialogAction2"),"AlertDialogAction")),tt="AlertDialogCancel",et=s.forwardRef(d(o(function(e,l){const{__scopeAlertDialog:r,...i}=e,{cancelRef:n}=U(tt,r),p=g(r),f=m(l,n);return(0,a.jsx)(j,{...p,...i,ref:f})},"AlertDialogCancel2"),"AlertDialogCancel")),at=Q,ot=V,rt=B,lt=J,nt=W,it=Z,st=et,ct=X,dt=Y,_={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};_.node;var jt=R(_);function _t({delayDuration:t=0,...e}){return(0,a.jsx)(M,{"data-slot":"tooltip-provider",delayDuration:t,...e})}o(_t,"TooltipProvider");function Ct({...t}){return(0,a.jsx)(E,{"data-slot":"tooltip",...t})}o(Ct,"Tooltip");function Pt({...t}){return(0,a.jsx)(F,{"data-slot":"tooltip-trigger",...t})}o(Pt,"TooltipTrigger");function Tt({className:t,sideOffset:e=0,children:l,...r}){return(0,a.jsx)(L,{children:(0,a.jsxs)(q,{"data-slot":"tooltip-content",sideOffset:e,className:c("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...r,children:[l,(0,a.jsx)(H,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-(--sz-calc-28) rotate-45 rounded-(--rad-2)"})]})})}o(Tt,"TooltipContent");function bt({...t}){return(0,a.jsx)(at,{"data-slot":"alert-dialog",...t})}o(bt,"AlertDialog");function wt({...t}){return(0,a.jsx)(ot,{"data-slot":"alert-dialog-trigger",...t})}o(wt,"AlertDialogTrigger");function gt({...t}){return(0,a.jsx)(rt,{"data-slot":"alert-dialog-portal",...t})}o(gt,"AlertDialogPortal");function ut({className:t,...e}){return(0,a.jsx)(lt,{"data-slot":"alert-dialog-overlay",className:c("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 duration-100",t),...e})}o(ut,"AlertDialogOverlay");function yt({className:t,...e}){return(0,a.jsxs)(gt,{children:[(0,a.jsx)(ut,{}),(0,a.jsx)(nt,{"data-slot":"alert-dialog-content",className:c("bg-background 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-[0.97] data-[state=open]:zoom-in-[0.97] fixed top-(--sz-calc-26) md:top-(--pct-50) left-(--pct-50) z-50 grid w-full max-w-(--sz-calc-25) translate-x-(--pct-neg-50) translate-y-0 md:translate-y-(--pct-neg-50) gap-4 rounded-lg border p-6 shadow-lg duration-150 ease-(--e-cubic-bezier-0_16-1-0_3-1) outline-none sm:max-w-lg [&>*]:min-w-0",t),...e})]})}o(yt,"AlertDialogContent");function Rt({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"alert-dialog-header",className:c("flex flex-col gap-2 text-center sm:text-left",t),...e})}o(Rt,"AlertDialogHeader");function zt({className:t,...e}){return(0,a.jsx)("div",{"data-slot":"alert-dialog-footer",className:c("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}o(zt,"AlertDialogFooter");function St({className:t,...e}){return(0,a.jsx)(ct,{"data-slot":"alert-dialog-title",className:c("text-lg leading-none font-semibold",t),...e})}o(St,"AlertDialogTitle");function ht({className:t,...e}){return(0,a.jsx)(dt,{"data-slot":"alert-dialog-description",className:c("text-muted-foreground text-sm",t),...e})}o(ht,"AlertDialogDescription");function Nt({className:t,...e}){return(0,a.jsx)(it,{"data-slot":"alert-dialog-action",className:c(x(),t),...e})}o(Nt,"AlertDialogAction");function Ot({className:t,...e}){return(0,a.jsx)(st,{"data-slot":"alert-dialog-cancel",className:c(x({variant:"outline"}),t),...e})}o(Ot,"AlertDialogCancel");export{ht as a,St as c,Tt as d,_t as f,yt as i,wt as l,jt as m,Nt as n,zt as o,Pt as p,Ot as r,Rt as s,bt as t,Ct as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as r}from"./boxes-
|
|
1
|
+
import{n as r}from"./boxes-Bpd3vwBa.js";var a={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};a.node;var o=r(a);export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var d=Object.defineProperty;var a=(r,e)=>d(r,"name",{value:e,configurable:!0});import{i as t}from"./rolldown-runtime-ZpX3ckPj.js";import{
|
|
1
|
+
var d=Object.defineProperty;var a=(r,e)=>d(r,"name",{value:e,configurable:!0});import{i as t}from"./rolldown-runtime-ZpX3ckPj.js";import{G as c,P as v,Qa as u,eo as l,n as g}from"./boxes-Bpd3vwBa.js";import{a as f}from"./BreadcrumbContext-DP0mgUIg.js";var i={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};i.node;var _=g(i),k=t(l(),1),b=t(u(),1),p=f("inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-(length:--rad-3) aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-(--tp-color-box-shadow) overflow-hidden",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function w({className:r,variant:e="default",asChild:o=!1,...n}){const s=o?v:"span";return(0,b.jsx)(s,{"data-slot":"badge","data-variant":e,className:c(p({variant:e}),r),...n})}a(w,"Badge");export{p as n,_ as r,w as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as t}from"./boxes-
|
|
1
|
+
import{n as t}from"./boxes-Bpd3vwBa.js";var e={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};e.node;var r=t(e);export{r as t};
|