@intent-hq/web 2.313.0 → 2.313.1
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/package.json +1 -1
- package/web/app/immutable/chunks/{B-agcRbG.js → 1wCbR4ud.js} +1 -1
- package/web/app/immutable/chunks/{CNMS2KOf.js → 4wFlAApS.js} +1 -1
- package/web/app/immutable/chunks/{BNHRvqeQ.js → 6rzwTXJx.js} +1 -1
- package/web/app/immutable/chunks/{Bops7MsY.js → A3beYjJS.js} +4 -4
- package/web/app/immutable/chunks/{hcpthRFf.js → AF5xKPfV.js} +1 -1
- package/web/app/immutable/chunks/{V553m0MO.js → AHQMxoVk.js} +1 -1
- package/web/app/immutable/chunks/{tuNJ429u.js → B1YnvfKo.js} +1 -1
- package/web/app/immutable/chunks/{C5c-LdLT.js → B2st7VbN.js} +1 -1
- package/web/app/immutable/chunks/{Cw6SlTJ6.js → B3W2oJ3u.js} +1 -1
- package/web/app/immutable/chunks/{BFETMHTz.js → B6Eksue8.js} +2 -2
- package/web/app/immutable/chunks/{BEVpCf6b.js → B6QJA3k0.js} +1 -1
- package/web/app/immutable/chunks/{CxPdVa60.js → B88eFHaH.js} +1 -1
- package/web/app/immutable/chunks/{h4HcKsDl.js → BAssmU5H.js} +1 -1
- package/web/app/immutable/chunks/{n2a_8s79.js → BESrHe_0.js} +1 -1
- package/web/app/immutable/chunks/{C5EEwI0-.js → BIZcuYRW.js} +2 -2
- package/web/app/immutable/chunks/{C2L4VLjE.js → BOQCK4ni.js} +1 -1
- package/web/app/immutable/chunks/{CYtxGPAf.js → BRIkzo-E.js} +1 -1
- package/web/app/immutable/chunks/{B_ifqSee.js → BW6fyv0T.js} +6 -6
- package/web/app/immutable/chunks/{C3X16aYc.js → B_-1t0b5.js} +1 -1
- package/web/app/immutable/chunks/{BfxxnTgV.js → Bc3_ahSr.js} +1 -1
- package/web/app/immutable/chunks/{04XFWhBd.js → Bfc094Ub.js} +1 -1
- package/web/app/immutable/chunks/{28aV1Wzl.js → BjqGlL_Y.js} +1 -1
- package/web/app/immutable/chunks/{DhXr1ZqD.js → BssmMBl2.js} +1 -1
- package/web/app/immutable/chunks/{CHtSQ3Rg.js → Bu6sHonm.js} +1 -1
- package/web/app/immutable/chunks/{CnfYogWn.js → By8e6LYt.js} +1 -1
- package/web/app/immutable/chunks/{DuRHazc8.js → C-fnz5X4.js} +1 -1
- package/web/app/immutable/chunks/{CPzgXxXu.js → C-li4cfO.js} +1 -1
- package/web/app/immutable/chunks/{Cnihm-Nc.js → C2Cq4c9l.js} +1 -1
- package/web/app/immutable/chunks/{jvw1Fn3k.js → C2m8Iivv.js} +1 -1
- package/web/app/immutable/chunks/{CAK2j9T_.js → C6XSZJri.js} +1 -1
- package/web/app/immutable/chunks/{2bp47GFs.js → C6aPQebU.js} +1 -1
- package/web/app/immutable/chunks/{DBfJXlLJ.js → C6gBBEr6.js} +1 -1
- package/web/app/immutable/chunks/{DwdStl3H.js → C6krgOsR.js} +4 -4
- package/web/app/immutable/chunks/{BiMGZT5w.js → C80u9j_3.js} +1 -1
- package/web/app/immutable/chunks/{B9F8nd-t.js → C8PuI333.js} +1 -1
- package/web/app/immutable/chunks/{BwK5Bace.js → CA7UZgrf.js} +1 -1
- package/web/app/immutable/chunks/{DvExZ34Y.js → CAn8DYJP.js} +1 -1
- package/web/app/immutable/chunks/{B1Rrvp0b.js → CBTot2K1.js} +1 -1
- package/web/app/immutable/chunks/{i92hRJko.js → CCCBFmfe.js} +3 -3
- package/web/app/immutable/chunks/{CM7ZaQP_.js → CE8vXfAM.js} +1 -1
- package/web/app/immutable/chunks/{CJCZCJxO.js → CG-371Y6.js} +1 -1
- package/web/app/immutable/chunks/{okmbexJZ.js → CICEz2Qq.js} +1 -1
- package/web/app/immutable/chunks/{DeBw56y4.js → CJtH5G9P.js} +1 -1
- package/web/app/immutable/chunks/{DZuInc-o.js → CKH-l4ig.js} +1 -1
- package/web/app/immutable/chunks/{sLnx1Tu5.js → CKWaKOqs.js} +1 -1
- package/web/app/immutable/chunks/{CPfTSiRI.js → CMvHzajx.js} +1 -1
- package/web/app/immutable/chunks/{Dt9TrzFG.js → CN_VK1iL.js} +1 -1
- package/web/app/immutable/chunks/{B3nB6DWs.js → COpjcilg.js} +1 -1
- package/web/app/immutable/chunks/{6uLD17LP.js → CP06IBS7.js} +1 -1
- package/web/app/immutable/chunks/{LoSFphII.js → CQMd4GmI.js} +1 -1
- package/web/app/immutable/chunks/{X-W6j8OD.js → CQbq623l.js} +1 -1
- package/web/app/immutable/chunks/{B721JIop.js → CTX5Fuc9.js} +2 -2
- package/web/app/immutable/chunks/{DaWdrOD0.js → CTfHCA2Y.js} +1 -1
- package/web/app/immutable/chunks/{CgAzfuNr.js → CUPAS0zd.js} +1 -1
- package/web/app/immutable/chunks/{DKhv0I45.js → CW1tBVLY.js} +1 -1
- package/web/app/immutable/chunks/{C_73TJPq.js → CWaCCzEn.js} +1 -1
- package/web/app/immutable/chunks/{C8reKsm7.js → CXNySl0c.js} +1 -1
- package/web/app/immutable/chunks/{DPcbMgdd.js → CYmZhCDN.js} +1 -1
- package/web/app/immutable/chunks/{DEfnfMIS.js → C_KYY7ZK.js} +1 -1
- package/web/app/immutable/chunks/{DgJXm20t.js → Cb6WrSKY.js} +1 -1
- package/web/app/immutable/chunks/{DiVHUgRZ.js → Cbh1BCiS.js} +2 -2
- package/web/app/immutable/chunks/{DZ64qqlL.js → CbpiaYyP.js} +1 -1
- package/web/app/immutable/chunks/{BXMFG8vW.js → CcGPnEzl.js} +1 -1
- package/web/app/immutable/chunks/{B6oQfzis.js → CelhKzDn.js} +1 -1
- package/web/app/immutable/chunks/{BDICjj7k.js → ClfTOQ5L.js} +1 -1
- package/web/app/immutable/chunks/{CVvtz86e.js → CsTPrgDm.js} +3 -3
- package/web/app/immutable/chunks/{DJCJ21BX.js → Ctl9Ux7T.js} +1 -1
- package/web/app/immutable/chunks/{B7-651e2.js → CxO_9nE4.js} +1 -1
- package/web/app/immutable/chunks/{BCDWZbwh.js → CzrG_lpv.js} +1 -1
- package/web/app/immutable/chunks/{CDE88Tgk.js → D-8WC0DU.js} +1 -1
- package/web/app/immutable/chunks/{B-rSL5ZP.js → D2uybU7F.js} +2 -2
- package/web/app/immutable/chunks/{OS5fDMId.js → D47PZJI_.js} +1 -1
- package/web/app/immutable/chunks/{D_uOXHFE.js → D4qqUzAr.js} +1 -1
- package/web/app/immutable/chunks/{kRmfkT9J.js → D5XH3yqM.js} +1 -1
- package/web/app/immutable/chunks/{77JHYRqp.js → D62gE1G0.js} +1 -1
- package/web/app/immutable/chunks/{D0NG9Gzz.js → D84mJH5u.js} +1 -1
- package/web/app/immutable/chunks/{BGYaMCAp.js → DAtBKOQq.js} +1 -1
- package/web/app/immutable/chunks/{ldCNaZ5F.js → DBUJXdXR.js} +1 -1
- package/web/app/immutable/chunks/{2g3BKwo_.js → DChetNRi.js} +2 -2
- package/web/app/immutable/chunks/{BN6Sv1MY.js → DESxr5Rj.js} +1 -1
- package/web/app/immutable/chunks/{Cpw4G06I.js → DL9BUVq-.js} +1 -1
- package/web/app/immutable/chunks/{xlntbOPQ.js → DNYGh_FV.js} +1 -1
- package/web/app/immutable/chunks/{CKJYXvLT.js → DOnT_3WY.js} +1 -1
- package/web/app/immutable/chunks/{C4XQStEU.js → DPG0D59v.js} +1 -1
- package/web/app/immutable/chunks/{D0tEEJ7X.js → DQNmQX9F.js} +1 -1
- package/web/app/immutable/chunks/{B9pAuhbK.js → DSOeLuN2.js} +1 -1
- package/web/app/immutable/chunks/{BKTydVIY.js → DUdpP1ED.js} +1 -1
- package/web/app/immutable/chunks/{YH3VI7O_.js → DUrqH6OL.js} +1 -1
- package/web/app/immutable/chunks/{BgUzpkp7.js → DWccAyE3.js} +1 -1
- package/web/app/immutable/chunks/{DPiGMYKs.js → DYrH45vr.js} +1 -1
- package/web/app/immutable/chunks/{Dxpr5NqS.js → DgfdSIWo.js} +1 -1
- package/web/app/immutable/chunks/{DqTygHNa.js → DkI_jPOw.js} +4 -4
- package/web/app/immutable/chunks/{DqLOhjhM.js → DlKVdWHt.js} +1 -1
- package/web/app/immutable/chunks/{gqVNwlAV.js → DulsjrO4.js} +1 -1
- package/web/app/immutable/chunks/{DfTvRpFp.js → Dvil1FCS.js} +1 -1
- package/web/app/immutable/chunks/{DuVelotc.js → DwPGocEY.js} +2 -2
- package/web/app/immutable/chunks/{BM7ZHc1t.js → DwgP_YcK.js} +1 -1
- package/web/app/immutable/chunks/{BAQDI3wv.js → DxZSyekB.js} +1 -1
- package/web/app/immutable/chunks/{BLDT4lze.js → Dz6YK0K2.js} +1 -1
- package/web/app/immutable/chunks/{BBRz8JFJ.js → HWP1BG2L.js} +1 -1
- package/web/app/immutable/chunks/{C58wlt4Q.js → LSDVwgG8.js} +2 -2
- package/web/app/immutable/chunks/{BZ90Gl9e.js → MED7rLah.js} +1 -1
- package/web/app/immutable/chunks/{BlfjnWuH.js → MgJqQwQp.js} +1 -1
- package/web/app/immutable/chunks/{DCcgbj-g.js → NYwlcfYt.js} +1 -1
- package/web/app/immutable/chunks/{CRgLy9Dv.js → OpYhygEs.js} +1 -1
- package/web/app/immutable/chunks/{BFpzDysH.js → TP4sXUzS.js} +1 -1
- package/web/app/immutable/chunks/{IB-HmS7d.js → ZUZF8K3P.js} +1 -1
- package/web/app/immutable/chunks/{BR8jrnEs.js → _bllxFVr.js} +1 -1
- package/web/app/immutable/chunks/{KFwqetYG.js → a6K5_NPk.js} +1 -1
- package/web/app/immutable/chunks/{P4NanOkc.js → dX_oN6Xt.js} +1 -1
- package/web/app/immutable/chunks/{cUCU_6OD.js → gsqPz4Y0.js} +1 -1
- package/web/app/immutable/chunks/{CCIxcA5l.js → jnmyog2T.js} +1 -1
- package/web/app/immutable/chunks/{BkKnMUvE.js → jq7ACadW.js} +1 -1
- package/web/app/immutable/chunks/{um4u3A9l.js → kdf0l6Z-.js} +1 -1
- package/web/app/immutable/chunks/{CEWfqweJ.js → nHQ6ExVj.js} +1 -1
- package/web/app/immutable/chunks/{Bpy6Muvw.js → q4Mp6azq.js} +4 -4
- package/web/app/immutable/chunks/{CatH1hIe.js → qIh42_HI.js} +1 -1
- package/web/app/immutable/chunks/{D6DsI_Sr.js → qcgLBz2O.js} +1 -1
- package/web/app/immutable/chunks/{DE32xZOO.js → qr2Z9jBR.js} +1 -1
- package/web/app/immutable/chunks/{DFzMoFQx.js → sg8Cer3T.js} +3 -3
- package/web/app/immutable/chunks/{BdetxH0g.js → tSV1knJu.js} +1 -1
- package/web/app/immutable/chunks/{PTzYQcOR.js → usUeYWMe.js} +1 -1
- package/web/app/immutable/chunks/{CYlqp1HL.js → x8WBzABF.js} +6 -6
- package/web/app/immutable/chunks/{DKPwGUzq.js → xfGEIVf6.js} +1 -1
- package/web/app/immutable/chunks/{CCxcLQdk.js → y_yPvfwh.js} +1 -1
- package/web/app/immutable/entry/{app.Co8E4L03.js → app.BlqNT7Cr.js} +2 -2
- package/web/app/immutable/entry/start.DaNUqzZq.js +1 -0
- package/web/app/immutable/nodes/{0.BucKx3Zo.js → 0.ShO9PneW.js} +1 -1
- package/web/app/immutable/nodes/{1.-v_Vj9ip.js → 1.CWY9gUhn.js} +1 -1
- package/web/app/immutable/nodes/{10.BnlxMSMI.js → 10.BPcvGGhE.js} +1 -1
- package/web/app/immutable/nodes/{14.Ca9GXwJ0.js → 14.C46jjudj.js} +1 -1
- package/web/app/immutable/nodes/{16.Dk1EKS3B.js → 16.DxDrMp3A.js} +2 -2
- package/web/app/immutable/nodes/{2.Bazc0fR2.js → 2.BY4xMtJS.js} +3 -3
- package/web/app/immutable/nodes/{3.CCsh91Fv.js → 3.RPzUk4Sw.js} +1 -1
- package/web/app/immutable/nodes/{4.C_FHoeDU.js → 4.ZFgOw7Ux.js} +1 -1
- package/web/app/immutable/nodes/{5.DegIKxsI.js → 5.BKaPpN7j.js} +1 -1
- package/web/app/immutable/nodes/{6.F6OlLFwi.js → 6.BqCf3vb3.js} +1 -1
- package/web/app/immutable/nodes/{7.quuP6x8b.js → 7.CJYSYpjI.js} +1 -1
- package/web/app/immutable/nodes/{8.xtRgDwRj.js → 8.B_FmoLB7.js} +2 -2
- package/web/app/immutable/nodes/{9.DFsNNJdd.js → 9.p1SC8ote.js} +1 -1
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.CBL0QUZV.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Oe,bq as X,a_ as U,bo as S,by as Ne,b as je,bu as He,bs as rt,bt as kt}from"./BAqR9jtB.js";import{bs as qe,bj as bt,a5 as u,bA as c,b_ as k,W as a,bn as Ge,aA as J,ay as R,bS as n,aD as e,aB as m,c9 as $,c5 as Ce,ca as yt,bk as st,bH as Pe,bV as Fe,a7 as fe,be as $e,b$ as xe,bO as F,bl as Ae}from"./DYhIMPy1.js";import{E as ot}from"./UuiGcpAE.js";import{s as ze,k as Je,d as Qe,h as De,c as Ye}from"./BPk16bSc.js";import{c as P}from"./B2RRuLl5.js";import{P as Ee,e as Se,f as We,d as Me}from"./Bc-8qHYh.js";import{N as At,w as T,E as Ze,g as Pt}from"./DO2cS8JO.js";import{f as Be}from"./C9gP-gRX.js";import{C as Tt}from"./B9F8nd-t.js";import"./C5Nz-crT.js";import{Hp as ke,fd as Rt,Dx as nt,B_ as it,p2 as Dt}from"./BSwWMzab.js";import{aN as lt,aK as Ht,aL as It,dn as Lt}from"./DY6JypjK.js";import{d as zt,r as Et}from"./DkrnUdRW.js";import{M as St}from"./um4u3A9l.js";import{l as Wt}from"./Bops7MsY.js";import{e as et}from"./BFETMHTz.js";import{F as Mt,e as Bt}from"./D0NG9Gzz.js";import{o as Ct}from"./B7-651e2.js";import{S as Ie}from"./7IyNIHph.js";import{F as Le,a1 as Ft,c_ as Ot,av as Nt,bl as jt}from"./DKXEy5Lq.js";var qt=m('<div class="space-y-3"><!> <!></div>'),Gt=m('<div class="space-y-3"><!> <!></div> <!>',1),Kt=m('<div class="space-y-3 rounded-xl border border-border p-4 shadow-xs"><div class="flex items-center gap-3"><!><!></div> <!> <div class="flex items-center justify-between pt-1"><!><!></div></div>'),Vt=m('<div class="min-w-0 space-y-3"><div class="flex h-10 items-center px-2"><!></div> <!></div>'),Ut=m('<div class="grid grid-cols-[repeat(auto-fit,minmax(min(100%,10rem),1fr))] gap-3 px-1"></div>'),Xt=m('<div class="flex h-10 items-center px-3"><!></div>'),Jt=m("<div><!> <!> <!> <!></div>"),Qt=m("<!> <!>",1),Yt=m('<div role="status" class="min-h-0 min-w-0 flex-1 overflow-hidden svelte-kmeefs" data-home-loading=""><div aria-hidden="true"><!></div></div>');function dt(b,l){if(new.target)return Oe({component:dt,...b});qe(l,!0);const Q=At();bt(Q.cleanup);let I=X(l,"detail",7,!1),O=X(l,"count",7,5),Y=X(l,"view",7,"list"),Z=X(l,"grouped",7,!1),s=X(l,"rows",7,"workspace");var L={get detail(){return I()},set detail(i=!1){I(i),J()},get count(){return O()},set count(i=5){O(i),J()},get view(){return Y()},set view(i="list"){Y(i),J()},get grouped(){return Z()},set grouped(i=!1){Z(i),J()},get rows(){return s()},set rows(i="workspace"){s(i),J()},$set:Ne,$on:(i,D)=>je(l,i,D)},y=Yt(),ie=u(y),be=u(ie);{var le=i=>{var D=Gt(),g=R(D),ee=u(g);T(ee,{class:"h-6 w-4/5"});var W=n(ee,2);T(W,{class:"h-4 w-1/2"}),c(g);var d=n(g,2);De(d,16,()=>[0,1],h=>h,(h,A)=>{var x=qt(),te=u(x);T(te,{class:"h-3 w-full"});var N=n(te,2);T(N,{class:"h-3 w-5/6"}),c(x),a(h,x)}),a(i,D)},Te=i=>{var D=Ut();De(D,20,()=>[0,1,2],g=>g,(g,ee)=>{var W=Vt(),d=u(W),h=u(d);T(h,{class:"h-3 w-20"}),c(d);var A=n(d,2);De(A,16,()=>[0,1,2],x=>x,(x,te)=>{var N=Kt(),de=u(N),ae=u(de);T(ae,{class:"h-4 flex-1"});var ce=n(ae);T(ce,{class:"size-3 rounded-full"}),c(de);var t=n(de,2);T(t,{class:"h-3 w-full"});var o=n(t,2),w=u(o);T(w,{class:"size-4 rounded-sm"});var j=n(w);T(j,{class:"h-3 w-6"}),c(o),c(N),a(x,N)}),c(W),a(g,W)}),c(D),a(i,D)},_e=i=>{var D=Qt(),g=R(D);{var ee=d=>{var h=Xt(),A=u(h);T(A,{class:"h-3 w-20"}),c(h),a(d,h)};U(g,d=>{Z()&&d(ee)})}var W=n(g,2);De(W,16,()=>Array.from({length:O()},(d,h)=>h),d=>d,(d,h)=>{var A=Jt(),x=u(A);T(x,{class:"size-4 shrink-0 rounded-sm"});var te=n(x,2);T(te,{class:"h-4 min-w-0 flex-1"});var N=n(te,2);{var de=o=>{T(o,{class:"size-3 shrink-0 rounded-full"})},ae=o=>{T(o,{class:"size-5 shrink-0 rounded-full"})};U(N,o=>{s()==="workspace"?o(de):s()==="integration"&&o(ae,1)})}var ce=n(N,2);{var t=o=>{{let w=$(()=>s()==="workspace"?"h-3 w-8 shrink-0":"h-3 w-6 shrink-0");T(o,{get class(){return e(w)}})}};U(ce,o=>{s()!=="compact"&&o(t)})}c(A),k(()=>Je(A,1,Qe(s()==="compact"?"flex min-h-6 items-center gap-2 py-1":`flex h-12 items-center gap-3 border-b border-border ${s()==="integration"?"px-2":"px-3"}`))),a(d,A)}),a(i,D)};U(be,i=>{I()?i(le):Y()==="board"?i(Te,1):i(_e,-1)})}return c(ie),c(y),k(i=>{ze(y,"aria-label",i),ze(y,"data-reduced",Q.current),Je(ie,1,Qe(I()?"space-y-6 py-3":s()==="compact"?"":"px-5 pb-4"))},[()=>S.home_integrations_loading()]),a(b,y),Ge(L)}function ct(b){return b.filter(zt)}function Zt(){let b=null;return(l,Q)=>{const I=b?l.find(Y=>Y.id===b):void 0;if(I)return I;const O=Et(l);return b=Q&&O?String(O.id):null,O}}function ea(b,l,Q){return l&&b.find(I=>I.id===l)||Q}var ta=m('<div class="p-4"><!></div>'),aa=m('<div class="flex h-full min-h-0 min-w-0 flex-col" data-home-workspace-chat=""><!></div>');function vt(b,l){if(new.target)return Oe({component:vt,...b});qe(l,!0);const Q=()=>He(ie,"$agents$",O),I=()=>He(be,"$loaded$",O),[O,Y]=rt();let Z=X(l,"workspace",7),s=X(l,"preview",7,!1),L=X(l,"agent",7);const y=Ce(()=>Z().id),ie=lt(y),be=Ht(y),le=$(()=>ct(Q())),Te=$(()=>s()?void 0:L()?.id);yt(()=>{const t=e(Te);if(!t)return;const o=Date.now();return()=>{Date.now()-o<St||setTimeout(()=>ke.dispatch(Rt(t)),0)}});let _e=Fe(void 0),i=0;function D(t,o){s()||!e(le).some(w=>w.id===t)||(Pe(_e,{agentId:t,questionMessageId:o,requestId:++i},!0),ke.dispatch(nt(y,t)),ke.dispatch(it(y,t)))}let g=Fe(!1),ee;function W(){s()||(Pe(g,!1),clearTimeout(ee),ke.dispatch(Dt(y)),ee=setTimeout(()=>{Pe(g,!0)},15e3))}st(()=>(s()||W(),()=>clearTimeout(ee)));var d={focusAttention:D,get workspace(){return Z()},set workspace(t){Z(t),J()},get preview(){return s()},set preview(t=!1){s(t),J()},get agent(){return L()},set agent(t){L(t),J()},$set:Ne,$on:(t,o)=>je(l,t,o)},h=aa(),A=u(h);{var x=t=>{Ze(t,{density:"compact",title:w=>{$e();var j=xe();k(re=>F(j,re),[()=>S.agentOverview_hierarchyGraph_noAgents_title()]),a(w,j)},$$slots:{title:!0}})},te=t=>{var o=fe(),w=R(o);ot(w,()=>L().id,j=>{{let re=$(()=>e(_e)?.agentId===L().id?e(_e):void 0);Tt(j,{get workspace(){return Z()},get agentId(){return L().id},get agentName(){return L().name},autoFocus:!1,get attentionFocusRequest(){return e(re)},isInitialWorkspaceAgent:!1})}}),a(t,o)},N=t=>{var o=ta(),w=u(o);dt(w,{detail:!0}),c(o),a(t,o)},de=t=>{{const o=j=>{$e();var re=xe();k(ye=>F(re,ye),[()=>S.home_detail_unavailable()]),a(j,re)};let w=$(()=>S.home_retry());Pt(t,{density:"compact",get retryLabel(){return e(w)},onRetry:W,message:o,$$slots:{message:!0}})}},ae=t=>{{const o=j=>{$e();var re=xe();k(ye=>F(re,ye),[()=>S.agentOverview_hierarchyGraph_noAgents_title()]),a(j,re)};let w=$(()=>S.home_retry());Ze(t,{density:"compact",get actionLabel(){return e(w)},onAction:W,title:o,$$slots:{title:!0}})}};U(A,t=>{s()?t(x):L()?t(te,1):!I()&&!e(g)?t(N,2):I()?t(ae,-1):t(de,3)})}c(h),k(()=>ze(h,"data-workspace-link-target",Z().id)),a(b,h);var ce=Ge(d);return Y(),ce}var ra=m('<span class="min-w-0 line-clamp-2 [overflow-wrap:anywhere]"> </span> <!>',1),tt=m("<!> <!>",1),sa=m('<div class="shrink-0"><!></div>'),oa=m('<div><!> <span class="home-detail-repository-name truncate"> </span></div>'),at=m("<!><!>",1),na=m("<p> </p>"),ia=m('<!> <span class="min-w-0 truncate text-left"> </span> <!>',1),la=m('<span class="flex min-w-0 items-center gap-2"><!> <span class="truncate"> </span></span>'),da=m('<div class="shrink-0 min-w-0 px-1 py-2" data-home-agent-switcher=""><!></div>'),ca=m('<div class="flex items-center gap-2 px-4 py-2 type-caption text-muted-foreground" role="status"><p> </p> <!></div>'),va=m('<section class="flex h-full min-h-0 min-w-0 flex-col" data-home-detail=""><header class="shrink-0 border-b border-border px-4 py-2"><div class="flex min-w-0 items-center gap-3"><h2 class="-ml-2 min-w-0 flex-1"><!></h2> <!></div> <!> <!></header> <!> <!> <div class="min-h-0 min-w-0 flex-1"><!></div></section>');function ua(b,l){if(new.target)return Oe({component:ua,...b});qe(l,!0);const Q=()=>He(_e,"$readRevision$",Y),I=()=>He(Te,"$agents$",Y),O=()=>He(D,"$pickedId$",Y),[Y,Z]=rt();let s=X(l,"workspace",7),L=X(l,"onclose",7),y=X(l,"preview",7,!1),ie=X(l,"showBackToList",7,!0);const be=$(()=>s().title.trim()?s().title:S.workspace_links_untitled_label()),le=Ce(()=>s().id),Te=lt(le),_e=It(le),i=Ce(()=>Q()),D=Mt(le),g=$(()=>ct(I())),ee=Zt(),W=$(()=>ee(e(g),Q()>i)),d=$(()=>ea(e(g),O(),e(W)));function h(r){ke.dispatch(nt(le,r)),ke.dispatch(it(le,r))}const A=$(()=>[s().repositoryOwner,s().repositoryName].filter(Boolean).join("/")||s().repositoryPath);let x=Fe(!1);async function te(){Pe(x,!1);try{await Bt(s().id),Pe(x,!Lt.select(ke.state,s().id))}catch{Pe(x,!0)}}st(()=>{y()||te()});function N(){Ct(s().id)}var de={get workspace(){return s()},set workspace(r){s(r),J()},get onclose(){return L()},set onclose(r){L(r),J()},get preview(){return y()},set preview(r=!1){y(r),J()},get showBackToList(){return ie()},set showBackToList(r=!0){ie(r),J()},$set:Ne,$on:(r,f)=>je(l,r,f)},ae=va(),ce=u(ae),t=u(ce),o=u(t),w=u(o);P(w,()=>Ee,(r,f)=>{f(r,{children:(q,oe)=>{var G=fe(),M=R(G);P(M,()=>Se,(ve,z)=>{z(ve,{children:(K,ge)=>{var me=tt(),ne=R(me);{const B=(E,C)=>{let H=()=>(C?.()).props;{let v=$(()=>S.home_open_workspace());Be(E,kt(H,{variant:"ghost",class:"type-title h-auto min-w-0 max-w-full shrink gap-2 justify-start whitespace-normal px-2 py-1 text-left font-medium leading-snug",wrapContent:!1,get"aria-label"(){return e(v)},onclick:N,children:(p,V)=>{var _=ra(),se=R(_),ue=Ae(se,!0),we=n(se,2);Le(we,{get icon(){return Ft},class:"shrink-0 text-muted-foreground",size:"sm"}),k(()=>F(ue,e(be))),a(p,_)},$$slots:{default:!0}}))}};P(ne,()=>We,(E,C)=>{C(E,{child:B,$$slots:{child:!0}})})}var he=n(ne,2);P(he,()=>Me,(B,E)=>{E(B,{children:(C,H)=>{$e();var v=xe();k(()=>F(v,e(be))),a(C,v)},$$slots:{default:!0}})}),a(K,me)},$$slots:{default:!0}})}),a(q,G)},$$slots:{default:!0}})}),c(o);var j=n(o,2);{var re=r=>{var f=sa(),q=u(f);{let oe=$(()=>S.home_close_preview()),G=$(()=>S.home_close_preview());Be(q,{variant:"ghost",size:"icon-sm",get"aria-label"(){return e(oe)},get tooltip(){return e(G)},get onclick(){return L()},children:(M,ve)=>{Le(M,{get icon(){return Ot}})},$$slots:{default:!0}})}c(f),a(r,f)};U(j,r=>{ie()&&r(re)})}c(t);var ye=n(t,2);{var ut=r=>{var f=fe(),q=R(f);P(q,()=>Ee,(oe,G)=>{G(oe,{children:(M,ve)=>{var z=fe(),K=R(z);P(K,()=>Se,(ge,me)=>{me(ge,{children:(ne,he)=>{var B=at(),E=R(B);{const H=(v,p)=>{let V=()=>(p?.()).props;var _=oa();Ye(_,()=>({...V(),class:"mb-1 flex min-w-0 max-w-[min(100%,16rem)] items-center gap-1.5 type-caption text-muted-foreground","data-home-detail-repository":!0,"aria-label":e(A)}));var se=u(_);{var ue=pe=>{Wt(pe,{get identity(){return s().repositoryOwner},size:16,class:"shrink-0 rounded-sm"})},we=pe=>{Le(pe,{get icon(){return jt}})};U(se,pe=>{s().repositoryOwner?pe(ue):pe(we,-1)})}var Xe=n(se,2),Re=Ae(Xe,!0);c(_),k(()=>F(Re,e(A))),a(v,_)};P(E,()=>We,(v,p)=>{p(v,{child:H,$$slots:{child:!0}})})}var C=n(E);P(C,()=>Me,(H,v)=>{v(H,{children:(p,V)=>{$e();var _=xe();k(()=>F(_,e(A))),a(p,_)},$$slots:{default:!0}})}),a(ne,B)},$$slots:{default:!0}})}),a(M,z)},$$slots:{default:!0}})}),a(r,f)};U(ye,r=>{e(A)&&r(ut)})}var pt=n(ye,2);{var mt=r=>{var f=fe(),q=R(f);P(q,()=>Ee,(oe,G)=>{G(oe,{children:(M,ve)=>{var z=fe(),K=R(z);P(K,()=>Se,(ge,me)=>{me(ge,{children:(ne,he)=>{var B=at(),E=R(B);{const H=(v,p)=>{let V=()=>(p?.()).props;var _=na();Ye(_,()=>({...V(),class:"type-caption line-clamp-2 break-words leading-snug text-muted-foreground"}));var se=Ae(_,!0);k(()=>F(se,s().statusMessage)),a(v,_)};P(E,()=>We,(v,p)=>{p(v,{child:H,$$slots:{child:!0}})})}var C=n(E);P(C,()=>Me,(H,v)=>{v(H,{children:(p,V)=>{$e();var _=xe();k(()=>F(_,s().statusMessage)),a(p,_)},$$slots:{default:!0}})}),a(ne,B)},$$slots:{default:!0}})}),a(M,z)},$$slots:{default:!0}})}),a(r,f)};U(pt,r=>{s().statusMessage&&r(mt)})}c(ce);var Ke=n(ce,2);{var ft=r=>{var f=da(),q=u(f);{let oe=$(()=>e(d)?.id??"");P(q,()=>Ie.Root,(G,M)=>{M(G,{get value(){return e(oe)},onchange:ve=>{const z=e(g).find(K=>K.id===ve);z&&h(z.id)},children:(ve,z)=>{var K=tt(),ge=R(K);{let ne=$(()=>S.home_agents());P(ge,()=>Ie.Trigger,(he,B)=>{B(he,{variant:"ghost",class:"h-8 w-fit max-w-full justify-start",get"aria-label"(){return e(ne)},children:(E,C)=>{var H=ia(),v=R(H);{var p=ue=>{{let we=$(()=>e(d).metadata?.specialist??e(d).agentMetadata?.specialist);et(ue,{get agentId(){return e(d).id},get specialist(){return e(we)},variant:"emphasized"})}};U(v,ue=>{e(d)&&ue(p)})}var V=n(v,2),_=Ae(V,!0),se=n(V,2);Le(se,{get icon(){return Nt},class:"shrink-0 text-muted-foreground"}),k(()=>F(_,e(d)?.name)),a(E,H)},$$slots:{default:!0}})})}var me=n(ge,2);P(me,()=>Ie.Content,(ne,he)=>{he(ne,{portal:!0,children:(B,E)=>{var C=fe(),H=R(C);De(H,17,()=>e(g),v=>v.id,(v,p)=>{var V=fe(),_=R(V);P(_,()=>Ie.Item,(se,ue)=>{ue(se,{get value(){return e(p).id},get label(){return e(p).name},children:(we,Xe)=>{var Re=la(),pe=u(Re);{let xt=$(()=>e(p).metadata?.specialist??e(p).agentMetadata?.specialist);et(pe,{get agentId(){return e(p).id},get specialist(){return e(xt)},variant:"emphasized"})}var wt=n(pe,2),$t=Ae(wt,!0);c(Re),k(()=>F($t,e(p).name)),a(we,Re)},$$slots:{default:!0}})}),a(v,V)}),a(B,C)},$$slots:{default:!0}})}),a(ve,K)},$$slots:{default:!0}})})}c(f),a(r,f)};U(Ke,r=>{e(g).length&&r(ft)})}var Ve=n(Ke,2);{var _t=r=>{var f=ca(),q=u(f),oe=Ae(q,!0),G=n(q,2);Be(G,{variant:"outline",size:"sm",onclick:te,children:(M,ve)=>{$e();var z=xe();k(K=>F(z,K),[()=>S.home_retry()]),a(M,z)},$$slots:{default:!0}}),c(f),k(M=>F(oe,M),[()=>S.home_detail_unavailable()]),a(r,f)};U(Ve,r=>{e(x)&&r(_t)})}var Ue=n(Ve,2),gt=u(Ue);ot(gt,()=>s().id,r=>{vt(r,{get workspace(){return s()},get preview(){return y()},get agent(){return e(d)}})}),c(Ue),c(ae),k(r=>ze(ae,"aria-label",r),[()=>S.home_workspace_details()]),a(b,ae);var ht=Ge(de);return Z(),ht}export{dt as H,ua as a};
|
|
1
|
+
import{t as Oe,bq as X,a_ as U,bo as S,by as Ne,b as je,bu as He,bs as rt,bt as kt}from"./BAqR9jtB.js";import{bs as qe,bj as bt,a5 as u,bA as c,b_ as k,W as a,bn as Ge,aA as J,ay as R,bS as n,aD as e,aB as m,c9 as $,c5 as Ce,ca as yt,bk as st,bH as Pe,bV as Fe,a7 as fe,be as $e,b$ as xe,bO as F,bl as Ae}from"./DYhIMPy1.js";import{E as ot}from"./UuiGcpAE.js";import{s as ze,k as Je,d as Qe,h as De,c as Ye}from"./BPk16bSc.js";import{c as P}from"./B2RRuLl5.js";import{P as Ee,e as Se,f as We,d as Me}from"./Bc-8qHYh.js";import{N as At,w as T,E as Ze,g as Pt}from"./DO2cS8JO.js";import{f as Be}from"./C9gP-gRX.js";import{C as Tt}from"./C8PuI333.js";import"./C5Nz-crT.js";import{Hp as ke,fd as Rt,Dx as nt,B_ as it,p2 as Dt}from"./BSwWMzab.js";import{aN as lt,aK as Ht,aL as It,dn as Lt}from"./DY6JypjK.js";import{d as zt,r as Et}from"./DkrnUdRW.js";import{M as St}from"./kdf0l6Z-.js";import{l as Wt}from"./A3beYjJS.js";import{e as et}from"./B6Eksue8.js";import{F as Mt,e as Bt}from"./D84mJH5u.js";import{o as Ct}from"./CxO_9nE4.js";import{S as Ie}from"./7IyNIHph.js";import{F as Le,a1 as Ft,c_ as Ot,av as Nt,bl as jt}from"./DKXEy5Lq.js";var qt=m('<div class="space-y-3"><!> <!></div>'),Gt=m('<div class="space-y-3"><!> <!></div> <!>',1),Kt=m('<div class="space-y-3 rounded-xl border border-border p-4 shadow-xs"><div class="flex items-center gap-3"><!><!></div> <!> <div class="flex items-center justify-between pt-1"><!><!></div></div>'),Vt=m('<div class="min-w-0 space-y-3"><div class="flex h-10 items-center px-2"><!></div> <!></div>'),Ut=m('<div class="grid grid-cols-[repeat(auto-fit,minmax(min(100%,10rem),1fr))] gap-3 px-1"></div>'),Xt=m('<div class="flex h-10 items-center px-3"><!></div>'),Jt=m("<div><!> <!> <!> <!></div>"),Qt=m("<!> <!>",1),Yt=m('<div role="status" class="min-h-0 min-w-0 flex-1 overflow-hidden svelte-kmeefs" data-home-loading=""><div aria-hidden="true"><!></div></div>');function dt(b,l){if(new.target)return Oe({component:dt,...b});qe(l,!0);const Q=At();bt(Q.cleanup);let I=X(l,"detail",7,!1),O=X(l,"count",7,5),Y=X(l,"view",7,"list"),Z=X(l,"grouped",7,!1),s=X(l,"rows",7,"workspace");var L={get detail(){return I()},set detail(i=!1){I(i),J()},get count(){return O()},set count(i=5){O(i),J()},get view(){return Y()},set view(i="list"){Y(i),J()},get grouped(){return Z()},set grouped(i=!1){Z(i),J()},get rows(){return s()},set rows(i="workspace"){s(i),J()},$set:Ne,$on:(i,D)=>je(l,i,D)},y=Yt(),ie=u(y),be=u(ie);{var le=i=>{var D=Gt(),g=R(D),ee=u(g);T(ee,{class:"h-6 w-4/5"});var W=n(ee,2);T(W,{class:"h-4 w-1/2"}),c(g);var d=n(g,2);De(d,16,()=>[0,1],h=>h,(h,A)=>{var x=qt(),te=u(x);T(te,{class:"h-3 w-full"});var N=n(te,2);T(N,{class:"h-3 w-5/6"}),c(x),a(h,x)}),a(i,D)},Te=i=>{var D=Ut();De(D,20,()=>[0,1,2],g=>g,(g,ee)=>{var W=Vt(),d=u(W),h=u(d);T(h,{class:"h-3 w-20"}),c(d);var A=n(d,2);De(A,16,()=>[0,1,2],x=>x,(x,te)=>{var N=Kt(),de=u(N),ae=u(de);T(ae,{class:"h-4 flex-1"});var ce=n(ae);T(ce,{class:"size-3 rounded-full"}),c(de);var t=n(de,2);T(t,{class:"h-3 w-full"});var o=n(t,2),w=u(o);T(w,{class:"size-4 rounded-sm"});var j=n(w);T(j,{class:"h-3 w-6"}),c(o),c(N),a(x,N)}),c(W),a(g,W)}),c(D),a(i,D)},_e=i=>{var D=Qt(),g=R(D);{var ee=d=>{var h=Xt(),A=u(h);T(A,{class:"h-3 w-20"}),c(h),a(d,h)};U(g,d=>{Z()&&d(ee)})}var W=n(g,2);De(W,16,()=>Array.from({length:O()},(d,h)=>h),d=>d,(d,h)=>{var A=Jt(),x=u(A);T(x,{class:"size-4 shrink-0 rounded-sm"});var te=n(x,2);T(te,{class:"h-4 min-w-0 flex-1"});var N=n(te,2);{var de=o=>{T(o,{class:"size-3 shrink-0 rounded-full"})},ae=o=>{T(o,{class:"size-5 shrink-0 rounded-full"})};U(N,o=>{s()==="workspace"?o(de):s()==="integration"&&o(ae,1)})}var ce=n(N,2);{var t=o=>{{let w=$(()=>s()==="workspace"?"h-3 w-8 shrink-0":"h-3 w-6 shrink-0");T(o,{get class(){return e(w)}})}};U(ce,o=>{s()!=="compact"&&o(t)})}c(A),k(()=>Je(A,1,Qe(s()==="compact"?"flex min-h-6 items-center gap-2 py-1":`flex h-12 items-center gap-3 border-b border-border ${s()==="integration"?"px-2":"px-3"}`))),a(d,A)}),a(i,D)};U(be,i=>{I()?i(le):Y()==="board"?i(Te,1):i(_e,-1)})}return c(ie),c(y),k(i=>{ze(y,"aria-label",i),ze(y,"data-reduced",Q.current),Je(ie,1,Qe(I()?"space-y-6 py-3":s()==="compact"?"":"px-5 pb-4"))},[()=>S.home_integrations_loading()]),a(b,y),Ge(L)}function ct(b){return b.filter(zt)}function Zt(){let b=null;return(l,Q)=>{const I=b?l.find(Y=>Y.id===b):void 0;if(I)return I;const O=Et(l);return b=Q&&O?String(O.id):null,O}}function ea(b,l,Q){return l&&b.find(I=>I.id===l)||Q}var ta=m('<div class="p-4"><!></div>'),aa=m('<div class="flex h-full min-h-0 min-w-0 flex-col" data-home-workspace-chat=""><!></div>');function vt(b,l){if(new.target)return Oe({component:vt,...b});qe(l,!0);const Q=()=>He(ie,"$agents$",O),I=()=>He(be,"$loaded$",O),[O,Y]=rt();let Z=X(l,"workspace",7),s=X(l,"preview",7,!1),L=X(l,"agent",7);const y=Ce(()=>Z().id),ie=lt(y),be=Ht(y),le=$(()=>ct(Q())),Te=$(()=>s()?void 0:L()?.id);yt(()=>{const t=e(Te);if(!t)return;const o=Date.now();return()=>{Date.now()-o<St||setTimeout(()=>ke.dispatch(Rt(t)),0)}});let _e=Fe(void 0),i=0;function D(t,o){s()||!e(le).some(w=>w.id===t)||(Pe(_e,{agentId:t,questionMessageId:o,requestId:++i},!0),ke.dispatch(nt(y,t)),ke.dispatch(it(y,t)))}let g=Fe(!1),ee;function W(){s()||(Pe(g,!1),clearTimeout(ee),ke.dispatch(Dt(y)),ee=setTimeout(()=>{Pe(g,!0)},15e3))}st(()=>(s()||W(),()=>clearTimeout(ee)));var d={focusAttention:D,get workspace(){return Z()},set workspace(t){Z(t),J()},get preview(){return s()},set preview(t=!1){s(t),J()},get agent(){return L()},set agent(t){L(t),J()},$set:Ne,$on:(t,o)=>je(l,t,o)},h=aa(),A=u(h);{var x=t=>{Ze(t,{density:"compact",title:w=>{$e();var j=xe();k(re=>F(j,re),[()=>S.agentOverview_hierarchyGraph_noAgents_title()]),a(w,j)},$$slots:{title:!0}})},te=t=>{var o=fe(),w=R(o);ot(w,()=>L().id,j=>{{let re=$(()=>e(_e)?.agentId===L().id?e(_e):void 0);Tt(j,{get workspace(){return Z()},get agentId(){return L().id},get agentName(){return L().name},autoFocus:!1,get attentionFocusRequest(){return e(re)},isInitialWorkspaceAgent:!1})}}),a(t,o)},N=t=>{var o=ta(),w=u(o);dt(w,{detail:!0}),c(o),a(t,o)},de=t=>{{const o=j=>{$e();var re=xe();k(ye=>F(re,ye),[()=>S.home_detail_unavailable()]),a(j,re)};let w=$(()=>S.home_retry());Pt(t,{density:"compact",get retryLabel(){return e(w)},onRetry:W,message:o,$$slots:{message:!0}})}},ae=t=>{{const o=j=>{$e();var re=xe();k(ye=>F(re,ye),[()=>S.agentOverview_hierarchyGraph_noAgents_title()]),a(j,re)};let w=$(()=>S.home_retry());Ze(t,{density:"compact",get actionLabel(){return e(w)},onAction:W,title:o,$$slots:{title:!0}})}};U(A,t=>{s()?t(x):L()?t(te,1):!I()&&!e(g)?t(N,2):I()?t(ae,-1):t(de,3)})}c(h),k(()=>ze(h,"data-workspace-link-target",Z().id)),a(b,h);var ce=Ge(d);return Y(),ce}var ra=m('<span class="min-w-0 line-clamp-2 [overflow-wrap:anywhere]"> </span> <!>',1),tt=m("<!> <!>",1),sa=m('<div class="shrink-0"><!></div>'),oa=m('<div><!> <span class="home-detail-repository-name truncate"> </span></div>'),at=m("<!><!>",1),na=m("<p> </p>"),ia=m('<!> <span class="min-w-0 truncate text-left"> </span> <!>',1),la=m('<span class="flex min-w-0 items-center gap-2"><!> <span class="truncate"> </span></span>'),da=m('<div class="shrink-0 min-w-0 px-1 py-2" data-home-agent-switcher=""><!></div>'),ca=m('<div class="flex items-center gap-2 px-4 py-2 type-caption text-muted-foreground" role="status"><p> </p> <!></div>'),va=m('<section class="flex h-full min-h-0 min-w-0 flex-col" data-home-detail=""><header class="shrink-0 border-b border-border px-4 py-2"><div class="flex min-w-0 items-center gap-3"><h2 class="-ml-2 min-w-0 flex-1"><!></h2> <!></div> <!> <!></header> <!> <!> <div class="min-h-0 min-w-0 flex-1"><!></div></section>');function ua(b,l){if(new.target)return Oe({component:ua,...b});qe(l,!0);const Q=()=>He(_e,"$readRevision$",Y),I=()=>He(Te,"$agents$",Y),O=()=>He(D,"$pickedId$",Y),[Y,Z]=rt();let s=X(l,"workspace",7),L=X(l,"onclose",7),y=X(l,"preview",7,!1),ie=X(l,"showBackToList",7,!0);const be=$(()=>s().title.trim()?s().title:S.workspace_links_untitled_label()),le=Ce(()=>s().id),Te=lt(le),_e=It(le),i=Ce(()=>Q()),D=Mt(le),g=$(()=>ct(I())),ee=Zt(),W=$(()=>ee(e(g),Q()>i)),d=$(()=>ea(e(g),O(),e(W)));function h(r){ke.dispatch(nt(le,r)),ke.dispatch(it(le,r))}const A=$(()=>[s().repositoryOwner,s().repositoryName].filter(Boolean).join("/")||s().repositoryPath);let x=Fe(!1);async function te(){Pe(x,!1);try{await Bt(s().id),Pe(x,!Lt.select(ke.state,s().id))}catch{Pe(x,!0)}}st(()=>{y()||te()});function N(){Ct(s().id)}var de={get workspace(){return s()},set workspace(r){s(r),J()},get onclose(){return L()},set onclose(r){L(r),J()},get preview(){return y()},set preview(r=!1){y(r),J()},get showBackToList(){return ie()},set showBackToList(r=!0){ie(r),J()},$set:Ne,$on:(r,f)=>je(l,r,f)},ae=va(),ce=u(ae),t=u(ce),o=u(t),w=u(o);P(w,()=>Ee,(r,f)=>{f(r,{children:(q,oe)=>{var G=fe(),M=R(G);P(M,()=>Se,(ve,z)=>{z(ve,{children:(K,ge)=>{var me=tt(),ne=R(me);{const B=(E,C)=>{let H=()=>(C?.()).props;{let v=$(()=>S.home_open_workspace());Be(E,kt(H,{variant:"ghost",class:"type-title h-auto min-w-0 max-w-full shrink gap-2 justify-start whitespace-normal px-2 py-1 text-left font-medium leading-snug",wrapContent:!1,get"aria-label"(){return e(v)},onclick:N,children:(p,V)=>{var _=ra(),se=R(_),ue=Ae(se,!0),we=n(se,2);Le(we,{get icon(){return Ft},class:"shrink-0 text-muted-foreground",size:"sm"}),k(()=>F(ue,e(be))),a(p,_)},$$slots:{default:!0}}))}};P(ne,()=>We,(E,C)=>{C(E,{child:B,$$slots:{child:!0}})})}var he=n(ne,2);P(he,()=>Me,(B,E)=>{E(B,{children:(C,H)=>{$e();var v=xe();k(()=>F(v,e(be))),a(C,v)},$$slots:{default:!0}})}),a(K,me)},$$slots:{default:!0}})}),a(q,G)},$$slots:{default:!0}})}),c(o);var j=n(o,2);{var re=r=>{var f=sa(),q=u(f);{let oe=$(()=>S.home_close_preview()),G=$(()=>S.home_close_preview());Be(q,{variant:"ghost",size:"icon-sm",get"aria-label"(){return e(oe)},get tooltip(){return e(G)},get onclick(){return L()},children:(M,ve)=>{Le(M,{get icon(){return Ot}})},$$slots:{default:!0}})}c(f),a(r,f)};U(j,r=>{ie()&&r(re)})}c(t);var ye=n(t,2);{var ut=r=>{var f=fe(),q=R(f);P(q,()=>Ee,(oe,G)=>{G(oe,{children:(M,ve)=>{var z=fe(),K=R(z);P(K,()=>Se,(ge,me)=>{me(ge,{children:(ne,he)=>{var B=at(),E=R(B);{const H=(v,p)=>{let V=()=>(p?.()).props;var _=oa();Ye(_,()=>({...V(),class:"mb-1 flex min-w-0 max-w-[min(100%,16rem)] items-center gap-1.5 type-caption text-muted-foreground","data-home-detail-repository":!0,"aria-label":e(A)}));var se=u(_);{var ue=pe=>{Wt(pe,{get identity(){return s().repositoryOwner},size:16,class:"shrink-0 rounded-sm"})},we=pe=>{Le(pe,{get icon(){return jt}})};U(se,pe=>{s().repositoryOwner?pe(ue):pe(we,-1)})}var Xe=n(se,2),Re=Ae(Xe,!0);c(_),k(()=>F(Re,e(A))),a(v,_)};P(E,()=>We,(v,p)=>{p(v,{child:H,$$slots:{child:!0}})})}var C=n(E);P(C,()=>Me,(H,v)=>{v(H,{children:(p,V)=>{$e();var _=xe();k(()=>F(_,e(A))),a(p,_)},$$slots:{default:!0}})}),a(ne,B)},$$slots:{default:!0}})}),a(M,z)},$$slots:{default:!0}})}),a(r,f)};U(ye,r=>{e(A)&&r(ut)})}var pt=n(ye,2);{var mt=r=>{var f=fe(),q=R(f);P(q,()=>Ee,(oe,G)=>{G(oe,{children:(M,ve)=>{var z=fe(),K=R(z);P(K,()=>Se,(ge,me)=>{me(ge,{children:(ne,he)=>{var B=at(),E=R(B);{const H=(v,p)=>{let V=()=>(p?.()).props;var _=na();Ye(_,()=>({...V(),class:"type-caption line-clamp-2 break-words leading-snug text-muted-foreground"}));var se=Ae(_,!0);k(()=>F(se,s().statusMessage)),a(v,_)};P(E,()=>We,(v,p)=>{p(v,{child:H,$$slots:{child:!0}})})}var C=n(E);P(C,()=>Me,(H,v)=>{v(H,{children:(p,V)=>{$e();var _=xe();k(()=>F(_,s().statusMessage)),a(p,_)},$$slots:{default:!0}})}),a(ne,B)},$$slots:{default:!0}})}),a(M,z)},$$slots:{default:!0}})}),a(r,f)};U(pt,r=>{s().statusMessage&&r(mt)})}c(ce);var Ke=n(ce,2);{var ft=r=>{var f=da(),q=u(f);{let oe=$(()=>e(d)?.id??"");P(q,()=>Ie.Root,(G,M)=>{M(G,{get value(){return e(oe)},onchange:ve=>{const z=e(g).find(K=>K.id===ve);z&&h(z.id)},children:(ve,z)=>{var K=tt(),ge=R(K);{let ne=$(()=>S.home_agents());P(ge,()=>Ie.Trigger,(he,B)=>{B(he,{variant:"ghost",class:"h-8 w-fit max-w-full justify-start",get"aria-label"(){return e(ne)},children:(E,C)=>{var H=ia(),v=R(H);{var p=ue=>{{let we=$(()=>e(d).metadata?.specialist??e(d).agentMetadata?.specialist);et(ue,{get agentId(){return e(d).id},get specialist(){return e(we)},variant:"emphasized"})}};U(v,ue=>{e(d)&&ue(p)})}var V=n(v,2),_=Ae(V,!0),se=n(V,2);Le(se,{get icon(){return Nt},class:"shrink-0 text-muted-foreground"}),k(()=>F(_,e(d)?.name)),a(E,H)},$$slots:{default:!0}})})}var me=n(ge,2);P(me,()=>Ie.Content,(ne,he)=>{he(ne,{portal:!0,children:(B,E)=>{var C=fe(),H=R(C);De(H,17,()=>e(g),v=>v.id,(v,p)=>{var V=fe(),_=R(V);P(_,()=>Ie.Item,(se,ue)=>{ue(se,{get value(){return e(p).id},get label(){return e(p).name},children:(we,Xe)=>{var Re=la(),pe=u(Re);{let xt=$(()=>e(p).metadata?.specialist??e(p).agentMetadata?.specialist);et(pe,{get agentId(){return e(p).id},get specialist(){return e(xt)},variant:"emphasized"})}var wt=n(pe,2),$t=Ae(wt,!0);c(Re),k(()=>F($t,e(p).name)),a(we,Re)},$$slots:{default:!0}})}),a(v,V)}),a(B,C)},$$slots:{default:!0}})}),a(ve,K)},$$slots:{default:!0}})})}c(f),a(r,f)};U(Ke,r=>{e(g).length&&r(ft)})}var Ve=n(Ke,2);{var _t=r=>{var f=ca(),q=u(f),oe=Ae(q,!0),G=n(q,2);Be(G,{variant:"outline",size:"sm",onclick:te,children:(M,ve)=>{$e();var z=xe();k(K=>F(z,K),[()=>S.home_retry()]),a(M,z)},$$slots:{default:!0}}),c(f),k(M=>F(oe,M),[()=>S.home_detail_unavailable()]),a(r,f)};U(Ve,r=>{e(x)&&r(_t)})}var Ue=n(Ve,2),gt=u(Ue);ot(gt,()=>s().id,r=>{vt(r,{get workspace(){return s()},get preview(){return y()},get agent(){return e(d)}})}),c(Ue),c(ae),k(r=>ze(ae,"aria-label",r),[()=>S.home_workspace_details()]),a(b,ae);var ht=Ge(de);return Z(),ht}export{dt as H,ua as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as ht,bq as m,bo as g,a_ as p,by as bt,b as xt}from"./BAqR9jtB.js";import{bs as yt,a7 as kt,ay as Q,W as u,bn as At,aA as h,a5 as F,bS as f,bl as S,bA as W,aD as e,b_ as H,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as Ct}from"./DYhIMPy1.js";import{I as It,h as Bt}from"./BPk16bSc.js";import{H as Pt,C as zt}from"./Bl_iEh1f.js";import{f as M}from"./C9gP-gRX.js";import"./DiCMHWTR.js";import{F as rt,ca as Rt,cl as St,at as Wt}from"./DKXEy5Lq.js";import{e as Ht}from"./
|
|
1
|
+
import{t as ht,bq as m,bo as g,a_ as p,by as bt,b as xt}from"./BAqR9jtB.js";import{bs as yt,a7 as kt,ay as Q,W as u,bn as At,aA as h,a5 as F,bS as f,bl as S,bA as W,aD as e,b_ as H,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as Ct}from"./DYhIMPy1.js";import{I as It,h as Bt}from"./BPk16bSc.js";import{H as Pt,C as zt}from"./Bl_iEh1f.js";import{f as M}from"./C9gP-gRX.js";import"./DiCMHWTR.js";import{F as rt,ca as Rt,cl as St,at as Wt}from"./DKXEy5Lq.js";import{e as Ht}from"./B6Eksue8.js";import{D as Dt}from"./C-fnz5X4.js";import{Hp as Lt,ts as $t}from"./BSwWMzab.js";import{g as Nt}from"./LSDVwgG8.js";var qt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),Ft=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Mt=k("<!> ",1),Ot=k('<div class="mb-2 flex gap-1"></div>'),Vt=k('<div class="border-t border-border p-2"><!> <!></div>'),jt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Tt(U,n){if(new.target)return ht({component:Tt,...U});yt(n,!0);let A=m(n,"patches",7),O=m(n,"label",23,()=>g.ui_patchBlock_label()),V=m(n,"lastApply",7),w=m(n,"linkedAgentId",7),D=m(n,"workspaceId",7),P=m(n,"applying",7,!1),L=m(n,"onApply",7),$=m(n,"onRevert",7),j=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),T=y(()=>V()?.status==="success");function st(t){const o=t.split(`
|
|
2
2
|
`);let v=0,b=0;for(const C of o)C.startsWith("+")&&!C.startsWith("+++")?v++:C.startsWith("-")&&!C.startsWith("---")&&b++;return{addCount:v,removeCount:b}}let X=y(()=>e(z)?st(e(z).diff):{addCount:0,removeCount:0}),G=y(()=>P()?{label:g.ui_patchBlock_applying_label(),icon:null}:e(T)?{label:g.ui_patchBlock_revert_label(),icon:St}:{label:g.ui_patchBlock_apply_label(),icon:Wt}),nt=y(()=>!!(L()||$()));function ot(){et(j,!e(j))}function lt(){e(T)?$()?.():L()?.()}var it={get patches(){return A()},set patches(t){A(t),h()},get label(){return O()},set label(t=g.ui_patchBlock_label()){O(t),h()},get lastApply(){return V()},set lastApply(t){V(t),h()},get linkedAgentId(){return w()},set linkedAgentId(t){w(t),h()},get workspaceId(){return D()},set workspaceId(t){D(t),h()},get applying(){return P()},set applying(t=!1){P(t),h()},get onApply(){return L()},set onApply(t){L(t),h()},get onRevert(){return $()},set onRevert(t){$(t),h()},$set:bt,$on:(t,o)=>xt(n,t,o)},Y=kt(),ct=Q(Y);{var dt=t=>{var o=jt(),v=F(o),b=F(v);{var C=a=>{{let c=y(()=>g.ui_patchBlock_viewAgent_tooltip());M(a,{variant:"plain",size:"icon-compact",iconOnly:!0,class:"size-4! shrink-0 rounded-sm! transition-opacity hover:opacity-80",onclick:l=>{D()&&Lt.dispatch($t(D(),{agentId:w(),...Nt(l)}))},get title(){return e(c)},children:(l,_)=>{Ht(l,{get agentId(){return w()},variant:"compact"})},$$slots:{default:!0}})}};p(b,a=>{w()&&a(C)})}var Z=f(b,2);M(Z,{variant:"plain",size:"compact",class:"h-auto! min-w-0 flex-1 shrink items-center justify-start gap-2 px-0! py-0! text-muted-foreground transition-colors hover:text-foreground",truncateLabel:!1,labelClass:"flex min-w-0 flex-1 items-center gap-2",onclick:ot,children:(a,c)=>{var l=Ft(),_=Q(l);{var I=i=>{rt(i,{get icon(){return Rt},size:10,class:"text-muted-foreground"})};p(_,i=>{w()||i(I)})}var B=f(_,2),s=S(B,!0),d=f(B,2),r=F(d),R=S(r),N=f(r,2),J=S(N);W(d);var K=f(d,2);{var tt=i=>{var q=qt(),mt=S(q,!0);H(gt=>x(mt,gt),[()=>g.ui_patchBlock_applied_label()]),u(i,q)};p(K,i=>{e(T)&&i(tt)})}H(()=>{x(s,O()),x(R,`+${e(X).addCount??""}`),x(J,`-${e(X).removeCount??""}`)}),u(a,l)},$$slots:{default:!0}});var ut=f(Z,2);{var ft=a=>{M(a,{variant:"ghost-light",size:"sm",class:"type-caption shrink-0",onclick:lt,get disabled(){return P()},children:(c,l)=>{var _=Mt(),I=Q(_);{var B=r=>{It(r,{size:12})},s=r=>{rt(r,{get icon(){return e(G).icon},size:"xs"})};p(I,r=>{P()?r(B):e(G).icon&&r(s,1)})}var d=f(I);H(()=>x(d,` ${e(G).label??""}`)),u(c,_)},$$slots:{default:!0}})};p(ut,a=>{e(nt)&&a(ft)})}W(v);var vt=f(v,2);{var _t=a=>{var c=Vt(),l=F(c);{var _=s=>{var d=Ot();Bt(d,23,A,(r,R)=>`patch-${R}-${r.filePath}`,(r,R,N)=>{{let J=y(()=>e(N)===e(E)?"default":"ghost-light");M(r,{get variant(){return e(J)},size:"sm",class:"type-caption",onclick:()=>et(E,e(N),!0),children:(K,tt)=>{wt();var i=Ct();H(q=>x(i,q),[()=>e(R).filePath.split("/").pop()]),u(K,i)},$$slots:{default:!0}})}}),W(d),u(s,d)};p(l,s=>{A().length>1&&s(_)})}var I=f(l,2);{var B=s=>{Dt(s,{get patch(){return e(z).diff},get fileName(){return e(z).filePath},showHeader:!0,showStats:!0,showLineNumbers:!0,maxHeight:"300px",collapsible:!1,class:"overflow-hidden rounded-sm border border-border"})};p(I,s=>{e(z)&&s(B)})}W(c),Pt(3,c,()=>zt,()=>({tier:"moderate"})),u(a,c)};p(vt,a=>{e(j)&&a(_t)})}W(o),u(t,o)},pt=t=>{var o=Et(),v=S(o,!0);H(b=>x(v,b),[()=>g.ui_patchBlock_invalid_error()]),u(t,o)};p(ct,t=>{A()?.length?t(dt):t(pt,-1)})}return u(U,Y),At(it)}export{Tt as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as V,bq as d,by as B,b as F,a_ as I,bo as L}from"./BAqR9jtB.js";import{bs as H,b_ as z,W as _,bn as j,aA as p,aC as T,a7 as O,ay as P,aD as r,a5 as U,bS as X,bH as b,bA as Y,be as Z,b$ as $,bO as ee,c9 as c,aB as te,bV as k,bk as re}from"./DYhIMPy1.js";import{s as ne,k as ie,d as oe}from"./BPk16bSc.js";import{E as ae}from"./UuiGcpAE.js";import{I as se}from"./XzWc0fs1.js";import"./BRNfUSNR.js";import{L as le}from"./DO2cS8JO.js";import"./-URcs0EB.js";import{D as ue,k as W}from"./
|
|
1
|
+
import{t as V,bq as d,by as B,b as F,a_ as I,bo as L}from"./BAqR9jtB.js";import{bs as H,b_ as z,W as _,bn as j,aA as p,aC as T,a7 as O,ay as P,aD as r,a5 as U,bS as X,bH as b,bA as Y,be as Z,b$ as $,bO as ee,c9 as c,aB as te,bV as k,bk as re}from"./DYhIMPy1.js";import{s as ne,k as ie,d as oe}from"./BPk16bSc.js";import{E as ae}from"./UuiGcpAE.js";import{I as se}from"./XzWc0fs1.js";import"./BRNfUSNR.js";import{L as le}from"./DO2cS8JO.js";import"./-URcs0EB.js";import{D as ue,k as W}from"./B6Eksue8.js";import{r as ce,q as y}from"./B0qtRhuw.js";var fe=T('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M12 15.82L12 23.76M4.44 21L8.35 16.35A1.96 1.96 0 0 0 6.4 12.99L0.42 14.04M1.82 6.12L7.08 9.16A1.96 1.96 0 0 0 10.06 6.66L7.98 0.95M16.02 0.95L13.94 6.66A1.96 1.96 0 0 0 16.92 9.16L22.18 6.12M23.58 14.04L17.6 12.99A1.96 1.96 0 0 0 15.65 16.35L19.56 21" stroke="currentColor" stroke-width="2.06" stroke-linecap="butt" stroke-linejoin="round"></path></svg>');function me(f,o){if(new.target)return V({component:me,...f});H(o,!0);let e=d(o,"width",7,24),n=d(o,"class",7,"");var a={get width(){return e()},set width(s=24){e(s),p()},get class(){return n()},set class(s=""){n(s),p()},$set:B,$on:(s,m)=>F(o,s,m)},l=fe();return z(()=>{ne(l,"width",e()),ie(l,0,oe(n()))}),_(f,l),j(a)}var de=te('<div class="grid gap-2"><!> <!></div>');function G(f,o){if(new.target)return V({component:G,...f});H(o,!0);let e=d(o,"request",7),n=d(o,"value",15,""),a=d(o,"busy",7,!1),l=d(o,"static",7,!1),s=d(o,"onAccept",7),m=d(o,"onCancel",7),v=k(null);var A={get request(){return e()},set request(t){e(t),p()},get value(){return n()},set value(t=""){n(t),p()},get busy(){return a()},set busy(t=!1){a(t),p()},get static(){return l()},set static(t=!1){l(t),p()},get onAccept(){return s()},set onAccept(t){s(t),p()},get onCancel(){return m()},set onCancel(t){m(t),p()},$set:B,$on:(t,g)=>F(o,t,g)},h=O(),i=P(h);{var u=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_bulkActionConfirm_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_bulkActionConfirm_cancel_label()),S=c(()=>e().options.destructive??!1);ue(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get confirmLabel(){return r(g)},get cancelLabel(){return r(M)},get destructive(){return r(S)},get busy(){return a()},onConfirm:()=>s()(n()),get onCancel(){return m()}})}},q=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_input_cancel_label()),S=c(()=>!e().options.field.required||n().trim().length>0);W(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},get cancelLabel(){return r(M)},get canSubmit(){return r(S)},get busy(){return a()},get initialFocus(){return r(v)},onSubmit:()=>s()(n()),get onCancel(){return m()},children:(J,ge)=>{var D=de(),E=U(D);{var K=C=>{le(C,{for:"confirm-prompt-field",children:(R,w)=>{Z();var N=$();z(()=>ee(N,e().options.field.label)),_(R,N)},$$slots:{default:!0}})};I(E,C=>{e().options.field.label&&C(K)})}var Q=X(E,2);{let C=c(()=>e().options.field.type??"text"),R=c(()=>e().options.field.label?void 0:e().options.title);se(Q,{id:"confirm-prompt-field",get type(){return r(C)},get placeholder(){return e().options.field.placeholder},get"aria-label"(){return r(R)},get ref(){return r(v)},set ref(w){b(v,w,!0)},get value(){return n()},set value(w){n(w)}})}Y(D),_(J,D)},$$slots:{default:!0}})}},x=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label());W(t,{open:!0,get static(){return l()},role:"alertdialog",get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},showCancel:!1,dismissOnInteractOutside:!1,get busy(){return a()},onSubmit:()=>s()(n()),onCancel:()=>s()(n())})}};I(i,t=>{e()?.kind==="confirm"?t(u):e()?.kind==="prompt"?t(q,1):e()?.kind==="alert"&&t(x,2)})}return _(f,h),j(A)}function pe(f,o){if(new.target)return V({component:pe,...f});H(o,!0);let e=k(null),n=k(""),a=k(!1);re(()=>ce(i=>{b(e,i,!0),b(n,i?.kind==="prompt"?i.options.field.initialValue??"":"",!0),b(a,!1)}));function l(){!r(e)||r(a)||y(r(e).id,r(e).kind==="confirm"?!1:null)}async function s(){if(!r(e)||r(a))return;const i=r(e);b(a,!0);try{i.kind==="confirm"?(await i.options.onConfirm?.(),y(i.id,!0)):i.kind==="prompt"?(await i.options.onConfirm?.(r(n).trim()),y(i.id,r(n).trim())):y(i.id,void 0)}catch(u){throw console.error("Confirm action failed:",u),b(a,!1),u}}var m={$set:B,$on:(i,u)=>F(o,i,u)},v=O(),A=P(v);{var h=i=>{var u=O(),q=P(u);ae(q,()=>r(e).id,x=>{G(x,{get request(){return r(e)},get busy(){return r(a)},onAccept:s,onCancel:l,get value(){return r(n)},set value(t){b(n,t,!0)}})}),_(i,u)};I(A,i=>{r(e)&&i(h)})}return _(f,v),j(m)}export{pe as C,me as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DYhIMPy1.js";import{p as r}from"./
|
|
1
|
+
import"./DYhIMPy1.js";import{p as r}from"./BW6fyv0T.js";const t={get error(){return r.error},get params(){return r.params},get state(){return r.state},get status(){return r.status},get url(){return r.url}},s=t;export{s as p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ni}from"./
|
|
1
|
+
import{g as Ni}from"./B1YnvfKo.js";import{s as Ci}from"./usUeYWMe.js";import{U as Zs,aZ as jt,V as Qs,a_ as Gt,Y as bi,b0 as vi,b as h,aU as je,ay as _i,X as en,a1 as xi,aP as Mi,bh as wi,aV as Ui,r as Pi,O as Di,am as Fi,W as Bi,ab as $i,aG as ji,aA as Gi,aW as Wi}from"./q4Mp6azq.js";function Wt(s){console&&console.error&&console.error(`Error: ${s}`)}function tn(s){console&&console.warn&&console.warn(`Warning: ${s}`)}function sn(s){const e=new Date().getTime(),t=s();return{time:new Date().getTime()-e,value:t}}function nn(s){function e(){}e.prototype=s;const t=new e;function n(){return typeof t.bar}return n(),n(),s}function Ki(s){return Vi(s)?s.LABEL:s.name}function Vi(s){return typeof s.LABEL=="string"&&s.LABEL!==""}class te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}}class K extends te{constructor(e){super([]),this.idx=1,Object.assign(this,ie(e))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class _e extends te{constructor(e){super(e.definition),this.orgText="",Object.assign(this,ie(e))}}class W extends te{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,ie(e))}}class G extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class se extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class ne extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class M extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class q extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class Z extends te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,ie(e))}}class k{constructor(e){this.idx=1,Object.assign(this,ie(e))}accept(e){e.visit(this)}}function zi(s){return s.map(at)}function at(s){function e(t){return t.map(at)}if(s instanceof K){const t={type:"NonTerminal",name:s.nonTerminalName,idx:s.idx};return typeof s.label=="string"&&(t.label=s.label),t}else{if(s instanceof W)return{type:"Alternative",definition:e(s.definition)};if(s instanceof G)return{type:"Option",idx:s.idx,definition:e(s.definition)};if(s instanceof se)return{type:"RepetitionMandatory",idx:s.idx,definition:e(s.definition)};if(s instanceof ne)return{type:"RepetitionMandatoryWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof q)return{type:"RepetitionWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof M)return{type:"Repetition",idx:s.idx,definition:e(s.definition)};if(s instanceof Z)return{type:"Alternation",idx:s.idx,definition:e(s.definition)};if(s instanceof k){const t={type:"Terminal",name:s.terminalType.name,label:Ki(s.terminalType),idx:s.idx};typeof s.label=="string"&&(t.terminalLabel=s.label);const n=s.terminalType.PATTERN;return s.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}else{if(s instanceof _e)return{type:"Rule",name:s.name,orgText:s.orgText,definition:e(s.definition)};throw Error("non exhaustive match")}}}function ie(s){return Object.fromEntries(Object.entries(s).filter(([,e])=>e!==void 0))}class xe{visit(e){const t=e;switch(t.constructor){case K:return this.visitNonTerminal(t);case W:return this.visitAlternative(t);case G:return this.visitOption(t);case se:return this.visitRepetitionMandatory(t);case ne:return this.visitRepetitionMandatoryWithSeparator(t);case q:return this.visitRepetitionWithSeparator(t);case M:return this.visitRepetition(t);case Z:return this.visitAlternation(t);case k:return this.visitTerminal(t);case _e:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function Hi(s){return s instanceof W||s instanceof G||s instanceof M||s instanceof se||s instanceof ne||s instanceof q||s instanceof k||s instanceof _e}function Tt(s,e=[]){return s instanceof G||s instanceof M||s instanceof q?!0:s instanceof Z?s.definition.some(n=>Tt(n,e)):s instanceof K&&e.includes(s)?!1:s instanceof te?(s instanceof K&&e.push(s),s.definition.every(n=>Tt(n,e))):!1}function Xi(s){return s instanceof Z}function ee(s){if(s instanceof K)return"SUBRULE";if(s instanceof G)return"OPTION";if(s instanceof Z)return"OR";if(s instanceof se)return"AT_LEAST_ONE";if(s instanceof ne)return"AT_LEAST_ONE_SEP";if(s instanceof q)return"MANY_SEP";if(s instanceof M)return"MANY";if(s instanceof k)return"CONSUME";throw Error("non exhaustive match")}class kt{walk(e,t=[]){e.definition.forEach((n,i)=>{const a=e.definition.slice(i+1);if(n instanceof K)this.walkProdRef(n,a,t);else if(n instanceof k)this.walkTerminal(n,a,t);else if(n instanceof W)this.walkFlat(n,a,t);else if(n instanceof G)this.walkOption(n,a,t);else if(n instanceof se)this.walkAtLeastOne(n,a,t);else if(n instanceof ne)this.walkAtLeastOneSep(n,a,t);else if(n instanceof q)this.walkManySep(n,a,t);else if(n instanceof M)this.walkMany(n,a,t);else if(n instanceof Z)this.walkOr(n,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const i=t.concat(n);this.walk(e,i)}walkOption(e,t,n){const i=t.concat(n);this.walk(e,i)}walkAtLeastOne(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkAtLeastOneSep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkMany(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkManySep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkOr(e,t,n){const i=t.concat(n);e.definition.forEach(a=>{const r=new W({definition:[a]});this.walk(r,i)})}}function ys(s,e,t){return[new G({definition:[new k({terminalType:s.separator})].concat(s.definition)})].concat(e,t)}function Je(s){if(s instanceof K)return Je(s.referencedRule);if(s instanceof k)return qi(s);if(Hi(s))return Yi(s);if(Xi(s))return Ji(s);throw Error("non exhaustive match")}function Yi(s){let e=[];const t=s.definition;let n=0,i=t.length>n,a,r=!0;for(;i&&r;)a=t[n],r=Tt(a),e=e.concat(Je(a)),n=n+1,i=t.length>n;return[...new Set(e)]}function Ji(s){const e=s.definition.map(t=>Je(t));return[...new Set(e.flat())]}function qi(s){return[s.terminalType]}const an="_~IN~_";class Zi extends kt{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const i=ea(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(n),r=new W({definition:a}),l=Je(r);this.follows[i]=l}}function Qi(s){const e={};return s.forEach(t=>{const n=new Zi(t).startWalking();Object.assign(e,n)}),e}function ea(s,e){return s.name+e+an}function S(s){return s.charCodeAt(0)}function Pt(s,e){Array.isArray(s)?s.forEach(function(t){e.push(t)}):e.push(s)}function Fe(s,e){if(s[e]===!0)throw"duplicate flag "+e;s[e],s[e]=!0}function Se(s){if(s===void 0)throw Error("Internal Error - Should never get here!");return!0}function ta(){throw Error("Internal Error - Should never get here!")}function Rs(s){return s.type==="Character"}const gt=[];for(let s=S("0");s<=S("9");s++)gt.push(s);const At=[S("_")].concat(gt);for(let s=S("a");s<=S("z");s++)At.push(s);for(let s=S("A");s<=S("Z");s++)At.push(s);const Os=[S(" "),S("\f"),S(`
|
|
2
2
|
`),S("\r"),S(" "),S("\v"),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S("\u2028"),S("\u2029"),S(" "),S(" "),S(" "),S("\uFEFF")],sa=/[0-9a-fA-F]/,tt=/[0-9]/,na=/[1-9]/;class ia{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Fe(n,"global");break;case"i":Fe(n,"ignoreCase");break;case"m":Fe(n,"multiLine");break;case"u":Fe(n,"unicode");break;case"y":Fe(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}}Se(t);const n=this.disjunction();return this.consumeChar(")"),{type:t,value:n,loc:this.loc(e)}}return ta()}quantifier(e=!1){let t;const n=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),t={atLeast:i,atMost:a}):t={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;Se(t);break}if(!(e===!0&&t===void 0)&&Se(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(n),t}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Se(e))return e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[S(`
|
|
3
3
|
`),S("\r"),S("\u2028"),S("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=gt;break;case"D":e=gt,t=!0;break;case"s":e=Os;break;case"S":e=Os,t=!0;break;case"w":e=At;break;case"W":e=At,t=!0;break}if(Se(e))return{type:"Set",value:e,complement:t}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=S("\f");break;case"n":e=S(`
|
|
4
4
|
`);break;case"r":e=S("\r");break;case"t":e=S(" ");break;case"v":e=S("\v");break}if(Se(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:S("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:S(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as gt,bq as n,bo as a,by as Ct,b as bt,a_ as g}from"./BAqR9jtB.js";import{bs as pt,aD as C,bn as yt,aA as o,a5 as z,bS as A,bf as xt,bA as G,W as u,c9 as b,bl as D,b_ as h,bO as W,aB as P,b$ as kt}from"./DYhIMPy1.js";import{s as At}from"./DiCMHWTR.js";import"./BPk16bSc.js";import"./BRNfUSNR.js";import"./-URcs0EB.js";import{D as ht}from"./
|
|
1
|
+
import{t as gt,bq as n,bo as a,by as Ct,b as bt,a_ as g}from"./BAqR9jtB.js";import{bs as pt,aD as C,bn as yt,aA as o,a5 as z,bS as A,bf as xt,bA as G,W as u,c9 as b,bl as D,b_ as h,bO as W,aB as P,b$ as kt}from"./DYhIMPy1.js";import{s as At}from"./DiCMHWTR.js";import"./BPk16bSc.js";import"./BRNfUSNR.js";import"./-URcs0EB.js";import{D as ht}from"./B6Eksue8.js";import{t as l}from"./Bl_iEh1f.js";import"./C9gP-gRX.js";import"./DH9gMPGd.js";var Wt=P('<p class="type-body"> </p>'),X=P('<p class="type-body text-foreground font-medium"> </p>'),Pt=P('<p class="type-body text-muted-foreground font-normal"> </p>'),Rt=P('<p class="type-body text-muted-foreground font-normal"> <!></p>'),St=P('<div class="space-y-2"><!> <!> <!> <!></div>'),Bt=P('<div class="space-y-4"><!> <!> <!></div>');function Dt(J,e){if(new.target)return gt({component:Dt,...J});pt(e,!0);let p=n(e,"open",15,!1),F=n(e,"static",7,!1),H=n(e,"title",23,()=>a.modals_bulkActionConfirm_title()),S=n(e,"description",7,""),T=n(e,"confirmText",23,()=>a.modals_bulkActionConfirm_confirm_label()),w=n(e,"variant",7,"default"),y=n(e,"initialFocus",7,"confirm"),q=n(e,"body",7),c=n(e,"openPrCount",7,0),x=n(e,"preflightReady",7,!0),E=n(e,"mode",7,"delete"),d=n(e,"activeAgentCount",7,0),m=n(e,"activeHookCount",7,0),_=n(e,"guestCount",7,0),I=n(e,"onConfirm",7),K=n(e,"onCancel",7);const Y=b(()=>d()>0||m()>0||c()>0||_()>0);function Z(){p(!1),K()?.()}async function $(){await I()?.(),p(!1)}var tt={get open(){return p()},set open(t=!1){p(t),o()},get static(){return F()},set static(t=!1){F(t),o()},get title(){return H()},set title(t=a.modals_bulkActionConfirm_title()){H(t),o()},get description(){return S()},set description(t=""){S(t),o()},get confirmText(){return T()},set confirmText(t=a.modals_bulkActionConfirm_confirm_label()){T(t),o()},get variant(){return w()},set variant(t="default"){w(t),o()},get initialFocus(){return y()},set initialFocus(t="confirm"){y(t),o()},get body(){return q()},set body(t){q(t),o()},get openPrCount(){return c()},set openPrCount(t=0){c(t),o()},get preflightReady(){return x()},set preflightReady(t=!0){x(t),o()},get mode(){return E()},set mode(t="delete"){E(t),o()},get activeAgentCount(){return d()},set activeAgentCount(t=0){d(t),o()},get activeHookCount(){return m()},set activeHookCount(t=0){m(t),o()},get guestCount(){return _()},set guestCount(t=0){_(t),o()},get onConfirm(){return I()},set onConfirm(t){I(t),o()},get onCancel(){return K()},set onCancel(t){K(t),o()},$set:Ct,$on:(t,L)=>bt(e,t,L)};{const t=O=>{var j=Bt(),M=z(j);{var it=f=>{var k=Wt(),B=D(k,!0);h(()=>W(B,S())),u(f,k)};g(M,f=>{S()&&f(it)})}var N=A(M,2);{var st=f=>{var k=St(),B=z(k);{var lt=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>d()===1?a.modals_deleteWarning_agentsStopped_one({count:l(d())}):a.modals_deleteWarning_agentsStopped_many({count:l(d())})]),u(r,i)};g(B,r=>{d()>0&&r(lt)})}var Q=A(B,2);{var ct=r=>{var i=X(),s=D(i,!0);h(v=>W(s,v),[()=>m()===1?a.modals_deleteWarning_hooksCancelled_one({count:l(m())}):a.modals_deleteWarning_hooksCancelled_many({count:l(m())})]),u(r,i)};g(Q,r=>{m()>0&&r(ct)})}var U=A(Q,2);{var dt=r=>{var i=Pt(),s=D(i,!0);h(v=>W(s,v),[()=>c()===1?a.modals_deleteWarning_openPrs_one({count:l(c())}):a.modals_deleteWarning_openPrs_many({count:l(c())})]),u(r,i)};g(U,r=>{c()>0&&r(dt)})}var mt=A(U,2);{var _t=r=>{var i=Rt(),s=z(i),v=A(s);{var ft=R=>{var V=kt();h(vt=>W(V,vt),[()=>a.modals_bulkActionConfirm_guestsReinvite_description()]),u(R,V)};g(v,R=>{E()==="archive"&&R(ft)})}G(i),h(R=>W(s,`${R??""} `),[()=>_()===1?a.modals_bulkActionConfirm_guestsRemoved_one({count:l(_())}):a.modals_bulkActionConfirm_guestsRemoved_many({count:l(_())})]),u(r,i)};g(mt,r=>{_()>0&&r(_t)})}G(k),u(f,k)};g(N,f=>{C(Y)&&f(st)})}var ut=A(N,2);At(ut,()=>q()??xt),G(j),u(O,j)};let L=b(()=>!x()),et=b(()=>x()&&y()==="confirm"),nt=b(()=>!x()||y()==="cancel"),ot=b(()=>y()==="cancel"?"ignore":"submit"),rt=b(()=>y()==="cancel"?"ignore":"submit"),at=b(()=>w()==="destructive");ht(J,{get static(){return F()},get title(){return H()},get confirmLabel(){return T()},get submitBusy(){return C(L)},get canSubmit(){return x()},get focusSubmit(){return C(et)},get focusCancel(){return C(nt)},get enterKey(){return C(ot)},get modEnter(){return C(rt)},get destructive(){return C(at)},onConfirm:$,onCancel:Z,get open(){return p()},set open(O){p(O)},details:t,$$slots:{details:!0}})}return yt(tt)}export{Dt as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as a3,bq as p,a_ as I,by as t3,b as s3}from"./BAqR9jtB.js";import{bs as r3,a5 as o3,aD as t,bA as L,b_ as v,W as f,bn as l3,c9 as l,bV as S,aA as u,ay as n3,bS as i3,aw as N,bz as c3,bl as Z,bO as A,aB as m,bH as B}from"./DYhIMPy1.js";import{N as v3}from"./
|
|
1
|
+
import{t as a3,bq as p,a_ as I,by as t3,b as s3}from"./BAqR9jtB.js";import{bs as r3,a5 as o3,aD as t,bA as L,b_ as v,W as f,bn as l3,c9 as l,bV as S,aA as u,ay as n3,bS as i3,aw as N,bz as c3,bl as Z,bO as A,aB as m,bH as B}from"./DYhIMPy1.js";import{N as v3}from"./B6Eksue8.js";import{k as C,l as x,s as F}from"./BPk16bSc.js";import{F as f3,aR as m3,aJ as g3,a_ as p3,cq as u3,ao as d3}from"./DKXEy5Lq.js";var h3=m("<div></div>"),b3=m('<span class="type-caption absolute text-subtle font-medium"> </span>'),w3=m("<img/> <!>",1),_3=m('<span class="type-caption text-subtle font-medium"> </span>'),C3=m("<div><!></div>");function x3(y,n){if(new.target)return a3({component:x3,...y});r3(n,!0);let r=p(n,"iconName",7),i=p(n,"label",7),o=p(n,"size",7,20),d=p(n,"class",7,"");const j={redis:"redis",mongodb:"mongodb",circleci:"circleci",vercel:"vercel",railway:"railway",convex:"convex",snowflake:"snowflake",sentry:"sentry",figma:"figma",github:"github",linear:"linear"},D={figma:"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Figma-logo.svg/960px-Figma-logo.svg.png",playwright:"https://ray.run/playwright-brand-assets/playwright-logo.svg"},q={context7:'<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 0C26.2091 0 28 1.79086 28 4V24C28 26.2091 26.2091 28 24 28H4C1.79086 28 0 26.2091 0 24V4C0 1.79086 1.79086 0 4 0H24ZM8.58008 15.2559C8.58008 17.8621 7.95482 19.3557 6.33398 21.1885V22.7783H11.6309V21.1045H8.17773C9.66098 19.3776 10.5723 17.5019 10.5723 15.2559H8.58008ZM17.4268 15.2559C17.4268 17.5019 18.338 19.3776 19.8213 21.1045H16.3672V22.7783H21.6641V21.1885C20.0433 19.3558 19.4189 17.862 19.4189 15.2559H17.4268ZM6.33398 6.80957C7.95495 8.64244 8.58008 10.137 8.58008 12.7432H10.5713C10.5713 10.4972 9.66094 8.62143 8.17773 6.89453H11.6309V5.2207H6.33398V6.80957ZM16.3672 5.2207V6.89453H19.8213C18.338 8.62145 17.4268 10.4972 17.4268 12.7432H19.4189C19.4189 10.137 20.0432 8.64242 21.6641 6.80957V5.2207H16.3672Z" fill="black"/></svg>',slack:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path d="M27.255 80.719c0 7.33-5.978 13.317-13.309 13.317C6.616 94.036.63 88.049.63 80.719s5.987-13.317 13.317-13.317h13.309zm6.709 0c0-7.33 5.987-13.317 13.317-13.317s13.317 5.986 13.317 13.317v33.335c0 7.33-5.986 13.317-13.317 13.317-7.33 0-13.317-5.987-13.317-13.317zm0 0" fill="#de1c59"/><path d="M47.281 27.255c-7.33 0-13.317-5.978-13.317-13.309C33.964 6.616 39.951.63 47.281.63s13.317 5.987 13.317 13.317v13.309zm0 6.709c7.33 0 13.317 5.987 13.317 13.317s-5.986 13.317-13.317 13.317H13.946C6.616 60.598.63 54.612.63 47.281c0-7.33 5.987-13.317 13.317-13.317zm0 0" fill="#35c5f0"/><path d="M100.745 47.281c0-7.33 5.978-13.317 13.309-13.317 7.33 0 13.317 5.987 13.317 13.317s-5.987 13.317-13.317 13.317h-13.309zm-6.709 0c0 7.33-5.987 13.317-13.317 13.317s-13.317-5.986-13.317-13.317V13.946C67.402 6.616 73.388.63 80.719.63c7.33 0 13.317 5.987 13.317 13.317zm0 0" fill="#2eb57d"/><path d="M80.719 100.745c7.33 0 13.317 5.978 13.317 13.309 0 7.33-5.987 13.317-13.317 13.317s-13.317-5.987-13.317-13.317v-13.309zm0-6.709c-7.33 0-13.317-5.987-13.317-13.317s5.986-13.317 13.317-13.317h33.335c7.33 0 13.317 5.986 13.317 13.317 0 7.33-5.987 13.317-13.317 13.317zm0 0" fill="#ebb02e"/></svg>'},E=new Set(["context7","github","linear"]),h={brain:d3,server:u3,database:p3,cloud:g3,default:m3},z=l(()=>j[r().toLowerCase()]),U=l(()=>h[r().toLowerCase()]||h.default),H=l(()=>q[r().toLowerCase()]||null),M=l(()=>E.has(r().toLowerCase()));let b=S(!1),k=S(!1);const V=l(()=>D[r().toLowerCase()]||(t(z)?`https://cdn.simpleicons.org/${t(z)}`:null));function W(){B(b,!0)}function J(){B(k,!0)}var O={get iconName(){return r()},set iconName(e){r(e),u()},get label(){return i()},set label(e){i(e),u()},get size(){return o()},set size(e=20){o(e),u()},get class(){return d()},set class(e=""){d(e),u()},$set:t3,$on:(e,a)=>s3(n,e,a)},c=C3(),R=o3(c);{var G=e=>{var a=h3();v3(a,()=>t(H),!0),L(a),v(()=>C(a,1,`w-full h-full flex items-center justify-center [&>svg]:w-full [&>svg]:h-full ${t(M)?"dark:invert":""}`)),f(e,a)},K=e=>{var a=w3(),s=n3(a);let g;var X=i3(s,2);{var Y=w=>{var _=b3(),$=Z(_,!0);v(e3=>{x(_,`font-size: ${o()*.45}px;`),A($,e3)},[()=>i().charAt(0)]),f(w,_)};I(X,w=>{t(b)||w(Y)})}v(()=>{F(s,"src",t(V)),F(s,"alt",i()),g=C(s,1,`w-full h-full object-contain ${t(M)?"dark:invert":""}`,null,g,{"opacity-0":!t(b)})}),N("load",s,W),N("error",s,J),c3(s),f(e,a)},P=e=>{{let a=l(()=>o()*.7);f3(e,{get icon(){return t(U)},class:"text-ghost",get style(){return`font-size: ${t(a)??""}px;`}})}},Q=l(()=>h[r().toLowerCase()]),T=e=>{var a=_3(),s=Z(a,!0);v(g=>{x(a,`font-size: ${o()*.45}px;`),A(s,g)},[()=>i().charAt(0)]),f(e,a)};I(R,e=>{t(H)?e(G):t(V)&&!t(k)?e(K,1):t(Q)?e(P,2):e(T,-1)})}return L(c),v(()=>{C(c,1,`flex items-center justify-center shrink-0 ${d()??""}`),x(c,`width: ${o()??""}px; height: ${o()??""}px;`)}),f(y,c),l3(O)}export{x3 as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as q,bq as s,a_ as H,by as z,br as O,b as N,bu as M,bs as U}from"./BAqR9jtB.js";import{aG as V,bs as A,c5 as p,aD as x,a5 as R,bS as X,bf as P,bA as W,W as S,bn as K,c9 as B,aA as n,aB as E,ca as T,a7 as Y,ay as $}from"./DYhIMPy1.js";import{s as I}from"./DiCMHWTR.js";import{c as L,f as k}from"./BPk16bSc.js";import{b as Z}from"./BaIAhI85.js";import{u as ee,c as D,s as te,b as re,a as ae}from"./DfxQWSVU.js";import{C as se}from"./DO2cS8JO.js";import{Hp as ne,rK as oe,bk as ie}from"./BSwWMzab.js";import{aZ as de}from"./
|
|
1
|
+
import{t as q,bq as s,a_ as H,by as z,br as O,b as N,bu as M,bs as U}from"./BAqR9jtB.js";import{aG as V,bs as A,c5 as p,aD as x,a5 as R,bS as X,bf as P,bA as W,W as S,bn as K,c9 as B,aA as n,aB as E,ca as T,a7 as Y,ay as $}from"./DYhIMPy1.js";import{s as I}from"./DiCMHWTR.js";import{c as L,f as k}from"./BPk16bSc.js";import{b as Z}from"./BaIAhI85.js";import{u as ee,c as D,s as te,b as re,a as ae}from"./DfxQWSVU.js";import{C as se}from"./DO2cS8JO.js";import{Hp as ne,rK as oe,bk as ie}from"./BSwWMzab.js";import{aZ as de}from"./A3beYjJS.js";import{m as ce}from"./7k5ozo9c.js";import{bG as le}from"./-URcs0EB.js";import{M as ue}from"./Bc-8qHYh.js";const fe=Symbol("card-group"),ve=()=>V(fe);var me=new Set(["$$slots","$$events","$$legacy","ref","class","inert","interactive","level","border","selected","media","children"]),be=E('<div data-slot="card-media" class="shrink-0 p-4"><!></div>'),ge=E("<div><!> <!></div>");function he(o,e){if(new.target)return q({component:he,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"inert",7,!1),u=s(e,"interactive",7,!1),v=s(e,"level",7),f=s(e,"border",7),l=s(e,"selected",7,!1),b=s(e,"media",7),r=s(e,"children",7),g=O(e,me);const m=ve(),w=B(()=>f()==="outlined"||f()===void 0&&(!m||m.border==="outlined"&&m.separated)),y=ee(),d=D(p(()=>v()??y+1));te(d);const C=D(d+1);var j={get ref(){return i()},set ref(t=null){i(t),n()},get class(){return c()},set class(t){c(t),n()},get inert(){return a()},set inert(t=!1){a(t),n()},get interactive(){return u()},set interactive(t=!1){u(t),n()},get level(){return v()},set level(t){v(t),n()},get border(){return f()},set border(t){f(t),n()},get selected(){return l()},set selected(t=!1){l(t),n()},get media(){return b()},set media(t){b(t),n()},get children(){return r()},set children(t){r(t),n()},$set:z,$on:(t,_)=>N(e,t,_)},h=ge();L(h,t=>({"data-slot":"card","data-selected":l()||void 0,"data-orientation":m?.orientation,"data-surface-level":d,"data-inert":a()||void 0,"data-interactive":u()||void 0,inert:a(),class:t,...g}),[()=>k("flex min-w-0 flex-col overflow-hidden rounded-md text-card-foreground",x(w)?m?"border border-border bg-transparent":ae(d):"bg-transparent",l()&&"bg-selected",m?.orientation==="inline"&&"flex-row items-center [&>[data-slot=card-header]]:min-w-0 [&>[data-slot=card-header]]:flex-1",m&&"relative",u()?k("cursor-pointer transition-[background-color,box-shadow] duration-(--motion-fast) ease-(--ease-standard)","focus-visible:outline focus-visible:-outline-offset-1","active:bg-active data-[state=pressed]:bg-active motion-reduce:transition-none",re(C)):"",c())]);var G=R(h);{var F=t=>{var _=be(),Q=R(_);I(Q,b),W(_),S(t,_)};H(G,t=>{b()&&t(F)})}var J=X(G,2);return I(J,()=>r()??P),W(h),Z(h,t=>i(t),()=>i()),S(o,h),K(j)}var _e=new Set(["$$slots","$$events","$$legacy","ref","class","flush","children"]),pe=E("<div><!></div>");function Se(o,e){if(new.target)return q({component:Se,...o});A(e,!0);let i=s(e,"ref",15,null),c=s(e,"class",7),a=s(e,"flush",7,!1),u=s(e,"children",7),v=O(e,_e);var f={get ref(){return i()},set ref(r=null){i(r),n()},get class(){return c()},set class(r){c(r),n()},get flush(){return a()},set flush(r=!1){a(r),n()},get children(){return u()},set children(r){u(r),n()},$set:z,$on:(r,g)=>N(e,r,g)},l=pe();L(l,r=>({"data-slot":"card-content","data-flush":a()||void 0,class:r,...v}),[()=>k("type-body min-w-0",a()?"p-0":k(se,"py-4 first:pt-4"),c())]);var b=R(l);return I(b,()=>u()??P),W(l),Z(l,r=>i(r),()=>i()),S(o,l),K(f)}function Ee(o){const e=()=>ne.dispatch(oe({quiet:o.quiet}));T(()=>{o.key?.(),o.active()&&p(e)});const i=B(()=>o.workspaces().some(a=>a.status===ie.Retired));let c=p(()=>x(i));T(()=>{const a=x(i);p(()=>{c&&!a&&o.active()&&e(),c=a})})}function ke(o,e){if(new.target)return q({component:ke,...o});A(e,!0);const i=()=>M(l,"$connected$",a),c=()=>M(b,"$slot$",a),[a,u]=U();let v=s(e,"workspaceId",7),f=s(e,"size",7,"default");const l=ce(),b=le(de(()=>v()));var r={get workspaceId(){return v()},set workspaceId(d){v(d),n()},get size(){return f()},set size(d="default"){f(d),n()},$set:z,$on:(d,C)=>N(e,d,C)},g=Y(),m=$(g);{var w=d=>{ue(d,{get slot(){return c()},get size(){return f()}})};H(m,d=>{i()&&c()!==null&&d(w)})}S(o,g);var y=K(r);return u(),y}export{he as C,ke as W,Se as a,Ee as r};
|