@intent-hq/web 2.392.4 → 2.393.0
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/{BNDZKi6v.js → 0IudVN8T.js} +2 -2
- package/web/app/immutable/chunks/{BqkzCflA.js → 0Pskylmi.js} +1 -1
- package/web/app/immutable/chunks/{DhfduYCG.js → 0biFhMxb.js} +1 -1
- package/web/app/immutable/chunks/{wSfBv2Ay.js → 3Z-66JFK.js} +1 -1
- package/web/app/immutable/chunks/{B-gBwwL_.js → 3eHuEsL0.js} +1 -1
- package/web/app/immutable/chunks/{Bgy94TB4.js → 7Ovc5F1W.js} +1 -1
- package/web/app/immutable/chunks/{B0tiNr4f.js → 7bKjKvMj.js} +1 -1
- package/web/app/immutable/chunks/{Dxxx3b3f.js → 8ysnd5N8.js} +4 -4
- package/web/app/immutable/chunks/{Nw_03x_O.js → 9gZxSRYR.js} +2 -2
- package/web/app/immutable/chunks/{BM0QeNkz.js → AJU0I4QP.js} +1 -1
- package/web/app/immutable/chunks/{BqQNTHsB.js → B1jwNspC.js} +1 -1
- package/web/app/immutable/chunks/{CgeYxezq.js → B2NCDWQj.js} +1 -1
- package/web/app/immutable/chunks/{Cz53SBs5.js → B3M7htfw.js} +1 -1
- package/web/app/immutable/chunks/{B2PSQOFL.js → BABLhp9e.js} +1 -1
- package/web/app/immutable/chunks/{BWkkvuFz.js → BAWHRd64.js} +1 -1
- package/web/app/immutable/chunks/{Cefxa1Ij.js → BAlN6xXV.js} +2 -2
- package/web/app/immutable/chunks/{rSfDLws2.js → BDY2Kajf.js} +1 -1
- package/web/app/immutable/chunks/{C804avdU.js → BDYqZy5l.js} +1 -1
- package/web/app/immutable/chunks/{BHza3UCm.js → BEeu6Jyo.js} +1 -1
- package/web/app/immutable/chunks/{gjMcPpyn.js → BGIAis8Q.js} +3 -3
- package/web/app/immutable/chunks/{DbeIbw-A.js → BHFbn3A9.js} +1 -1
- package/web/app/immutable/chunks/{BWLKi_Oq.js → BI6MUuoX.js} +1 -1
- package/web/app/immutable/chunks/{DsC3Hx4Y.js → BI9u_QTd.js} +1 -1
- package/web/app/immutable/chunks/{DI_1CazU.js → BK7FmI7K.js} +1 -1
- package/web/app/immutable/chunks/{b43vSRzv.js → BKFA3yUf.js} +1 -1
- package/web/app/immutable/chunks/{fjEL_jqG.js → BMHxxfP4.js} +1 -1
- package/web/app/immutable/chunks/{CwCaEF7R.js → BOpa3JL5.js} +1 -1
- package/web/app/immutable/chunks/{CMZ4h45V.js → BVRxvAzz.js} +1 -1
- package/web/app/immutable/chunks/{BjtBOmkK.js → BVab-LI7.js} +1 -1
- package/web/app/immutable/chunks/{DgegreSL.js → BZ5plXZy.js} +1 -1
- package/web/app/immutable/chunks/{3a2EfPr3.js → B_dB55pf.js} +3 -3
- package/web/app/immutable/chunks/{BZZOp-Go.js → Bb6_ZpFm.js} +1 -1
- package/web/app/immutable/chunks/{GM6GOclC.js → BezqW82L.js} +2 -2
- package/web/app/immutable/chunks/{CdglrbOd.js → BgKsHej9.js} +2 -2
- package/web/app/immutable/chunks/{BiwoewqC.js → BieWjGd7.js} +1 -1
- package/web/app/immutable/chunks/{XoodpWig.js → BroDUcjq.js} +1 -1
- package/web/app/immutable/chunks/{BD-vsB0h.js → Bt1-7rTQ.js} +1 -1
- package/web/app/immutable/chunks/{BlRM8cg0.js → Bttih9ri.js} +1 -1
- package/web/app/immutable/chunks/{wpcomlxD.js → Bu0K6ujo.js} +1 -1
- package/web/app/immutable/chunks/{D4Ih4utJ.js → Bxf_-54V.js} +1 -1
- package/web/app/immutable/chunks/{CmZ1fgxI.js → BxpgiWm2.js} +1 -1
- package/web/app/immutable/chunks/{CZM_hlTe.js → C-86kNuI.js} +3 -3
- package/web/app/immutable/chunks/{oZleIIRl.js → C35-tQAa.js} +1 -1
- package/web/app/immutable/chunks/{Cc3530YY.js → CBKDJPOp.js} +1 -1
- package/web/app/immutable/chunks/{CV0ZZGg3.js → CEfljVcs.js} +1 -1
- package/web/app/immutable/chunks/{D2ZMjII-.js → CF6Vxctv.js} +1 -1
- package/web/app/immutable/chunks/{BLJR_8Kv.js → CJL-iSZe.js} +2 -2
- package/web/app/immutable/chunks/{ECTHIYjg.js → CJvysCNo.js} +1 -1
- package/web/app/immutable/chunks/{B_RYqFbn.js → CKOT06_N.js} +1 -1
- package/web/app/immutable/chunks/{DF7HzTjr.js → CPsAdpQg.js} +1 -1
- package/web/app/immutable/chunks/{CXbNsxGs.js → CUllgFqe.js} +1 -1
- package/web/app/immutable/chunks/{Dl84MHT_.js → CXnXrUsE.js} +1 -1
- package/web/app/immutable/chunks/{gyjx6cVc.js → Cad-FQZw.js} +1 -1
- package/web/app/immutable/chunks/{Ba0ctoXN.js → CbBvi-vT.js} +2 -2
- package/web/app/immutable/chunks/{CoUsOW3i.js → Cev7VHoN.js} +1 -1
- package/web/app/immutable/chunks/{BUfaQEep.js → CippTVu3.js} +1 -1
- package/web/app/immutable/chunks/{CcJSNYGE.js → CkbdUYUB.js} +1 -1
- package/web/app/immutable/chunks/{K5Y15XEp.js → Ct8a2yek.js} +1 -1
- package/web/app/immutable/chunks/{BtGc6nEi.js → CtX9AjBD.js} +1 -1
- package/web/app/immutable/chunks/{CLF38uvC.js → Cxm3e0CO.js} +1 -1
- package/web/app/immutable/chunks/{FrvrVKAr.js → CzoSrhdL.js} +2 -2
- package/web/app/immutable/chunks/{Cj0Js7c4.js → D1nkWdsN.js} +1 -1
- package/web/app/immutable/chunks/{lI5NRJD5.js → D2Q6mppm.js} +1 -1
- package/web/app/immutable/chunks/{BQ2fte0W.js → D6eyCbi1.js} +1 -1
- package/web/app/immutable/chunks/{9syQWCSY.js → DCgY039R.js} +7 -7
- package/web/app/immutable/chunks/{C7p3W1f1.js → DCzxlgBs.js} +1 -1
- package/web/app/immutable/chunks/{DFr2eom2.js → DDa6EINl.js} +1 -1
- package/web/app/immutable/chunks/{Dv8Ar9Yj.js → DF6LaFyj.js} +2 -2
- package/web/app/immutable/chunks/{CWzP7a_C.js → DGGucQxs.js} +2 -2
- package/web/app/immutable/chunks/{CKOF2XJr.js → DHwN0lRn.js} +1 -1
- package/web/app/immutable/chunks/{zV7CDVYO.js → DLGucGdD.js} +3 -3
- package/web/app/immutable/chunks/{CtEY2mp_.js → DM5kqQ1V.js} +1 -1
- package/web/app/immutable/chunks/{CVCbL5Ny.js → DM_PIf-5.js} +1 -1
- package/web/app/immutable/chunks/{BT1b_noP.js → DO2zAKv0.js} +3 -3
- package/web/app/immutable/chunks/{fTzkC5bu.js → DOK_g7vV.js} +1 -1
- package/web/app/immutable/chunks/{8cewiIKF.js → DSXyr_Fr.js} +1 -1
- package/web/app/immutable/chunks/{DfxvTnp2.js → DT_y9FGD.js} +1 -1
- package/web/app/immutable/chunks/{D6QiN5t4.js → DU4Vhr-0.js} +1 -1
- package/web/app/immutable/chunks/{DLV91R-8.js → DU59Vdu3.js} +1 -1
- package/web/app/immutable/chunks/{BGVWM2OL.js → DVhkgoDW.js} +1 -1
- package/web/app/immutable/chunks/{BSFEE-6K.js → DXBE2Tld.js} +1 -1
- package/web/app/immutable/chunks/{BGXx97df.js → DZlDxCgn.js} +1 -1
- package/web/app/immutable/chunks/{DQ7FiFrG.js → D_EFP2qU.js} +1 -1
- package/web/app/immutable/chunks/{BgCxENx1.js → D_YdQJM4.js} +1 -1
- package/web/app/immutable/chunks/{BOi9rcQa.js → DabFMHr_.js} +4 -4
- package/web/app/immutable/chunks/{ypmJeQ7k.js → DcGK_0d9.js} +1 -1
- package/web/app/immutable/chunks/{DxfrEGHE.js → DcJ9XwiY.js} +1 -1
- package/web/app/immutable/chunks/{XOkW4e42.js → DfApjOPM.js} +1 -1
- package/web/app/immutable/chunks/{DeFCWACO.js → DhBBsVaP.js} +1 -1
- package/web/app/immutable/chunks/{BKNpKZIw.js → DjD2npnM.js} +1 -1
- package/web/app/immutable/chunks/{1rapRTWt.js → Ds7d6UPo.js} +4 -4
- package/web/app/immutable/chunks/{DwHO9O_t.js → DuiDeolO.js} +1 -1
- package/web/app/immutable/chunks/{BLSBgBTe.js → DujlAAuA.js} +1 -1
- package/web/app/immutable/chunks/{BXOwV523.js → DzeUh63h.js} +1 -1
- package/web/app/immutable/chunks/{BF5nqwtF.js → FXLHv4s7.js} +1 -1
- package/web/app/immutable/chunks/{CH3jZcNq.js → FzsqLvWW.js} +1 -1
- package/web/app/immutable/chunks/{BnZq1xzV.js → GCJgqmLv.js} +1 -1
- package/web/app/immutable/chunks/{C1Keoa1n.js → GFF7xfJq.js} +1 -1
- package/web/app/immutable/chunks/{CQfllnM7.js → HcCqNlKh.js} +1 -1
- package/web/app/immutable/chunks/{DmJjL0FQ.js → IGNO0qoE.js} +1 -1
- package/web/app/immutable/chunks/{Czp61MqP.js → OrDYwyck.js} +1 -1
- package/web/app/immutable/chunks/{BN_62-aj.js → PWNFccPv.js} +1 -1
- package/web/app/immutable/chunks/{BThkcEjN.js → Pc52abky.js} +1 -1
- package/web/app/immutable/chunks/{Bs9Q1k3q.js → QEpqKBee.js} +1 -1
- package/web/app/immutable/chunks/{C9SWwe2v.js → RsYrgUiV.js} +1 -1
- package/web/app/immutable/chunks/{DOVzLB_4.js → W0kxgN1W.js} +1 -1
- package/web/app/immutable/chunks/{FUWZfwsu.js → X66bh60j.js} +1 -1
- package/web/app/immutable/chunks/{B2R2ZgJF.js → XSkFT3M0.js} +1 -1
- package/web/app/immutable/chunks/{DHZOgUKk.js → YWPnOD4T.js} +1 -1
- package/web/app/immutable/chunks/{CvHrN3gi.js → YnYoZ2NK.js} +1 -1
- package/web/app/immutable/chunks/{lAIshd25.js → aQkb4saz.js} +1 -1
- package/web/app/immutable/chunks/{CC8htovw.js → b45PQ8TG.js} +1 -1
- package/web/app/immutable/chunks/{dH3g6nT7.js → bX4FGmNr.js} +1 -1
- package/web/app/immutable/chunks/{E51IEue4.js → dEp87wve.js} +1 -1
- package/web/app/immutable/chunks/{BWu3ORt3.js → fr4AMTgg.js} +1 -1
- package/web/app/immutable/chunks/{BRUy0Mem.js → l_KiA0-X.js} +1 -1
- package/web/app/immutable/chunks/{CcA7qiuL.js → ng4mcU_-.js} +1 -1
- package/web/app/immutable/chunks/{CctL9G3j.js → nnHDE1dd.js} +1 -1
- package/web/app/immutable/chunks/{BiQ44BNV.js → nrSh0aC8.js} +1 -1
- package/web/app/immutable/chunks/{_4qWkW5Z.js → oHufBZXQ.js} +1 -1
- package/web/app/immutable/chunks/{BUp6TFnM.js → r0vRtx-T.js} +1 -1
- package/web/app/immutable/chunks/{DI6AAl0V.js → u2ZzqP0a.js} +1 -1
- package/web/app/immutable/chunks/{B-dQn9uM.js → uzIA17NN.js} +3 -3
- package/web/app/immutable/chunks/{gwOwsb6Y.js → v7NJYdhp.js} +1 -1
- package/web/app/immutable/chunks/{Cei6kItG.js → vA_m-Yoy.js} +1 -1
- package/web/app/immutable/chunks/{CrF1tS4G.js → w6C2OuF7.js} +1 -1
- package/web/app/immutable/chunks/{BxiM2JR3.js → yKdlMKAe.js} +2 -2
- package/web/app/immutable/entry/{app.CxCYUzem.js → app.CiyeQuxv.js} +2 -2
- package/web/app/immutable/entry/start.D87x7VCJ.js +1 -0
- package/web/app/immutable/nodes/{0.CbFCub9u.js → 0.CRbxkcM2.js} +1 -1
- package/web/app/immutable/nodes/{1.BF-jdAyu.js → 1.DqX6QaPm.js} +1 -1
- package/web/app/immutable/nodes/{10.B9pH_Sj2.js → 10.BCKuK60u.js} +1 -1
- package/web/app/immutable/nodes/{11.Cy4MC3g3.js → 11.DfT5UkBP.js} +1 -1
- package/web/app/immutable/nodes/{15.j8isxC4q.js → 15.D7dZwhi4.js} +1 -1
- package/web/app/immutable/nodes/{19.Bk3ROmuN.js → 19.Bp3Vf5X-.js} +2 -2
- package/web/app/immutable/nodes/{2.CEReWbAF.js → 2.COUI43GN.js} +1 -1
- package/web/app/immutable/nodes/{3.B4wW3oNl.js → 3.Ch8C_wLR.js} +1 -1
- package/web/app/immutable/nodes/{4.C4SDmhJa.js → 4.DNtyFj6E.js} +1 -1
- package/web/app/immutable/nodes/{5.Bfum8GuB.js → 5.DibkYULx.js} +1 -1
- package/web/app/immutable/nodes/{6.BCEjjpDO.js → 6.Cpj-A029.js} +1 -1
- package/web/app/immutable/nodes/{7.Bq0Ec-or.js → 7.CecRnFtb.js} +1 -1
- package/web/app/immutable/nodes/{8.K-2IFlg9.js → 8.BbuGaD-H.js} +1 -1
- package/web/app/immutable/nodes/{9.DmkKCkNJ.js → 9.BMl85hfy.js} +2 -2
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.BfdrDzMA.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as ht,bo as U,bw as $t,bq as It,b as bt,bs as r}from"./Fcr7AvC-.js";import{bs as yt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as wt,bH as H,bV as K,aA as E}from"./3SdAC2_C.js";import{k as At}from"./Cc0763mU.js";import{b as St}from"./Dn334wJv.js";import{JH as a,eK as Dt,eL as Pt,ol as Ut,Ad as Et,op as _t,oq as Tt,Kf as Ft,Ku as xt,Kk as Wt,vM as qt,v1 as vt}from"./D0qhIm1r.js";import{t as Ht}from"./C-BsEdGZ.js";import{g as Kt}from"./DWGXN6Nr.js";import{dI as Lt,b$ as Nt,bQ as Ot,bU as Bt,bS as Mt}from"./cD292w1o.js";import{af as Gt}from"./
|
|
1
|
+
import{t as ht,bo as U,bw as $t,bq as It,b as bt,bs as r}from"./Fcr7AvC-.js";import{bs as yt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as wt,bH as H,bV as K,aA as E}from"./3SdAC2_C.js";import{k as At}from"./Cc0763mU.js";import{b as St}from"./Dn334wJv.js";import{JH as a,eK as Dt,eL as Pt,ol as Ut,Ad as Et,op as _t,oq as Tt,Kf as Ft,Ku as xt,Kk as Wt,vM as qt,v1 as vt}from"./D0qhIm1r.js";import{t as Ht}from"./C-BsEdGZ.js";import{g as Kt}from"./DWGXN6Nr.js";import{dI as Lt,b$ as Nt,bQ as Ot,bU as Bt,bS as Mt}from"./cD292w1o.js";import{af as Gt}from"./DLGucGdD.js";import{C as Vt}from"./RsYrgUiV.js";import{V as jt}from"./CDtaIFAl.js";import{bT as Jt,bN as Qt,b8 as zt}from"./BMHxxfP4.js";import{i as Xt}from"./H2jLkRRS.js";function Yt(_,f){if(new.target)return ht({component:Yt,..._});yt(f,!0);const L=()=>r(Z,"$gitRoots$",n),T=()=>r(Y,"$workspace",n),N=()=>r(st,"$ftCommits$",n),O=()=>r(ot,"$ftOlderCommits$",n),y=()=>r(tt,"$commitRead$",n),B=()=>r(z,"$foldUnchanged",n),M=()=>r(Q,"$lineWrapping",n),G=()=>r(X,"$diffSideBySide",n),V=()=>r(at,"$ftLoading$",n),[n,j]=It(),J=e=>{jt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{H(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return B()},onToggleFold:()=>a.dispatch(Wt()),get wrapEnabled(){return M()},onToggleWrap:()=>a.dispatch(xt()),get splitEnabled(){return G()},onToggleSplit:()=>a.dispatch(Ft())})},Q=Jt(),z=Qt(),X=zt();let h=U(f,"tab",7),i=U(f,"workspaceId",7),$=U(f,"isActive",7);const F=Kt(),g=Ht(()=>i()),Y=Lt(g),Z=Gt(g),w=crypto.randomUUID(),tt=Nt(g,w),c=s(()=>h().data?.commitHash||""),x=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(d)))return a.dispatch(Dt(e,"history")),()=>a.dispatch(Pt(e,"history"))});const d=s(()=>h().data?.gitRootId||""),W=s(()=>t(d)&&L().find(e=>e.id===t(d))?.path||""),et=s(()=>t(W)||T()?.worktreePath||T()?.repositoryPath||""),st=Ot(g),ot=Bt(g),at=Mt(g),nt=s(()=>N()||[]),it=s(()=>O()||[]),p=s(()=>t(d)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),A=s(()=>t(p)?.files||[]),S=s(()=>y()?.request.kind==="commitDetails"&&y().request.commitHash===t(c)&&(y().request.gitRootId??"")===t(d)?y():void 0),l=s(()=>t(S)?.result?.kind==="commitDetails"?t(S).result.details:null),dt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),rt=s(()=>t(S)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(d);if(!e||!o||t(A).length>0)return;const u=crypto.randomUUID();return a.dispatch(Ut(o,w,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Et(o,w,u))});const ct=s(()=>t(A).length>0?t(A):t(dt));let C=K(!0),R=K(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Xt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(x)}}));k(()=>{!F||!$()||F.registerActions({display:J})});const q=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(d))||!e))return a.dispatch(_t(e,q)),()=>a.dispatch(Tt(e,q))});var mt={get tab(){return h()},set tab(e){h(e),E()},get workspaceId(){return i()},set workspaceId(e){i(e),E()},get isActive(){return $()},set isActive(e){$(e),E()},$set:$t,$on:(e,o)=>bt(f,e,o)},v=Ct(),gt=Rt(v);At(gt,()=>JSON.stringify([i(),t(d),t(c)]),e=>{{let o=s(()=>V()||t(rt)),I=s(()=>t(d)||void 0),u=s(()=>t(W)||void 0),ut=s(()=>({hash:t(c),message:t(x),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));St(Vt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(b,m)=>{const D=m?.metaKey||m?.ctrlKey||!1,P=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(vt(i(),{agentId:b,openInAdjacentPanel:D,sourcePanelId:P}))},onOpenNote:(b,m)=>{const D=m?.metaKey||m?.ctrlKey||!1,P=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(qt(i(),b,{openInAdjacentPanel:D,sourcePanelId:P}))}}),b=>H(R,b,!0),()=>t(R))}}),kt(_,v);var pt=wt(mt);return j(),pt}export{Yt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aZ as Ae,U as ke,Y as ae,b0 as Fe,V as Pe,a_ as ve,b as o,X as Vt,ay as bt,aW as Lt,B as Ce,r as Le,O as V,aV as Ee,a6 as De}from"./
|
|
1
|
+
import{aZ as Ae,U as ke,Y as ae,b0 as Fe,V as Pe,a_ as ve,b as o,X as Vt,ay as bt,aW as Lt,B as Ce,r as Le,O as V,aV as Ee,a6 as De}from"./DabFMHr_.js";import{l as ie}from"./DcJ9XwiY.js";var Et=(function(){var t=o(function(Y,r,l,x){for(l=l||{},x=Y.length;x--;l[Y[x]]=r);return l},"o"),n=[1,3],f=[1,4],d=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],_=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],k=[2,36],u=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],g=[1,41],A=[1,45],ht=[1,14],xt=[1,23],ft=[1,18],gt=[1,19],ct=[1,20],_t=[1,21],dt=[1,22],i=[1,24],zt=[1,25],It=[1,26],wt=[1,27],Bt=[1,28],Rt=[1,29],U=[1,32],Q=[1,33],F=[1,34],P=[1,39],v=[1,40],C=[1,42],L=[1,44],X=[1,63],H=[1,62],E=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Xt=[1,71],Ht=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],Kt=[1,77],w=[4,5,6,7,8,9,10,11,12,13,14,15,18],K=[1,91],Z=[1,92],J=[1,93],$=[1,100],tt=[1,94],et=[1,97],it=[1,95],at=[1,96],nt=[1,98],st=[1,99],At=[1,103],Zt=[10,55,56,57],N=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],kt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,x,c,S,e,ut){var s=e.length-1;switch(S){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],c.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),c.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),c.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),c.setAccDescription(this.$);break;case 46:c.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:c.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:c.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:c.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:c.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:c.setXAxisLeftText(e[s-2]),c.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",c.setXAxisLeftText(e[s-1]);break;case 53:c.setXAxisLeftText(e[s]);break;case 54:c.setYAxisBottomText(e[s-2]),c.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",c.setYAxisBottomText(e[s-1]);break;case 56:c.setYAxisBottomText(e[s]);break;case 57:c.setQuadrant1Text(e[s]);break;case 58:c.setQuadrant2Text(e[s]);break;case 59:c.setQuadrant3Text(e[s]);break;case 60:c.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:f,55:d,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:f,55:d,56:h,57:p},{18:n,26:9,27:2,28:f,55:d,56:h,57:p},t(y,[2,33],{29:10}),t(_,[2,61]),t(_,[2,62]),t(_,[2,63]),{1:[2,30]},{1:[2,31]},t(a,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ht,25:xt,35:ft,37:gt,39:ct,41:_t,42:dt,48:i,50:zt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(y,[2,34]),{27:46,55:d,56:h,57:p},t(a,[2,37]),t(a,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ht,25:xt,35:ft,37:gt,39:ct,41:_t,42:dt,48:i,50:zt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(a,[2,45]),t(a,[2,46]),{18:[1,51]},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:52,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:53,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:54,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:55,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:56,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:57,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,44:[1,58],47:[1,59],58:61,59:60,63:F,64:P,65:v,66:C,67:L},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(E,[2,81]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:65,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:64},t(a,[2,53],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,49:[1,78],63:F,64:P,65:v,66:C,67:L}),t(a,[2,56],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,49:[1,79],63:F,64:P,65:v,66:C,67:L}),t(a,[2,57],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,58],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,59],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,60],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),{45:[1,80]},{44:[1,81]},t(E,[2,65]),t(E,[2,82]),t(E,[2,83]),t(E,[2,84]),{3:83,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,82]},t(w,[2,23]),t(w,[2,1]),t(w,[2,2]),t(w,[2,3]),t(w,[2,4]),t(w,[2,5]),t(w,[2,6]),t(w,[2,7]),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(w,[2,11]),t(w,[2,12]),t(a,[2,52],{58:31,43:84,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,55],{58:31,43:85,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),{46:[1,86]},{45:[1,87]},{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:89,23:88},t(w,[2,24]),t(a,[2,51],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,54],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,47],{22:89,16:90,23:101,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{46:[1,102]},t(a,[2,29],{10:At}),t(Zt,[2,27],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),t(N,[2,25]),t(N,[2,13]),t(N,[2,14]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,22]),t(a,[2,49],{10:At}),t(a,[2,48],{22:89,16:90,23:105,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:106},t(N,[2,26]),t(a,[2,50],{10:At}),t(Zt,[2,28],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var x=new Error(r);throw x.hash=l,x}},"parseError"),parse:o(function(r){var l=this,x=[0],c=[],S=[null],e=[],ut=this.table,s="",yt=0,Jt=0,me=2,$t=1,be=e.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(j.yy[Ft]=this.yy[Ft]);D.setInput(r,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Pt=D.yylloc;e.push(Pt);var Se=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(R){x.length=x.length-2*R,S.length=S.length-R,e.length=e.length-R}o(_e,"popStack");function te(){var R;return R=c.pop()||D.lex()||$t,typeof R!="number"&&(R instanceof Array&&(c=R,R=c.pop()),R=l.symbols_[R]||R),R}o(te,"lex");for(var B,G,W,vt,rt={},Tt,M,ee,qt;;){if(G=x[x.length-1],this.defaultActions[G]?W=this.defaultActions[G]:((B===null||typeof B>"u")&&(B=te()),W=ut[G]&&ut[G][B]),typeof W>"u"||!W.length||!W[0]){var Ct="";qt=[];for(Tt in ut[G])this.terminals_[Tt]&&Tt>me&&qt.push("'"+this.terminals_[Tt]+"'");D.showPosition?Ct="Parse error on line "+(yt+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+qt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Ct="Parse error on line "+(yt+1)+": Unexpected "+(B==$t?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Ct,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:Pt,expected:qt})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+B);switch(W[0]){case 1:x.push(B),S.push(D.yytext),e.push(D.yylloc),x.push(W[1]),B=null,Jt=D.yyleng,s=D.yytext,yt=D.yylineno,Pt=D.yylloc;break;case 2:if(M=this.productions_[W[1]][1],rt.$=S[S.length-M],rt._$={first_line:e[e.length-(M||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(M||1)].first_column,last_column:e[e.length-1].last_column},Se&&(rt._$.range=[e[e.length-(M||1)].range[0],e[e.length-1].range[1]]),vt=this.performAction.apply(rt,[s,Jt,yt,j.yy,W[1],S,e].concat(be)),typeof vt<"u")return vt;M&&(x=x.slice(0,-1*M*2),S=S.slice(0,-1*M),e=e.slice(0,-1*M)),x.push(this.productions_[W[1]][0]),S.push(rt.$),e.push(rt._$),ee=ut[x[x.length-2]][x[x.length-1]],x.push(ee);break;case 3:return!0}}return!0},"parse")},qe=(function(){var Y={EOF:1,parseError:o(function(l,x){if(this.yy.parser)this.yy.parser.parseError(l,x);else throw new Error(l)},"parseError"),setInput:o(function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:o(function(r){var l=r.length,x=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===c.length?this.yylloc.first_column:0)+c[c.length-x.length].length-x[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(r){this.unput(this.match.slice(r))},"less"),pastInput:o(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as Jt,bo as v,bm as F,bw as Xt,bs as Ye,bq as Zt,b as Qt}from"./Fcr7AvC-.js";import{bs as en,c5 as Je,ca as xe,aD as t,bH as H,a5 as A,bA as I,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as j,bl as Xe,bO as J,aB as T,b$ as Pe,be as sn,a7 as an,ay as Ze}from"./3SdAC2_C.js";import{i as me}from"./BhYXv0ZM.js";import{g as on,i as rn}from"./CA6H1-bp.js";import{f as ln}from"./BRCr02in.js";import{f as cn}from"./CH7HNVC2.js";import{k as dn}from"./D6H34kDj.js";import{JH as Se,ol as fn,Ad as un,sI as bt,on as hn,ad as kt}from"./D0qhIm1r.js";import{b$ as gn,dI as vn}from"./cD292w1o.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./
|
|
1
|
+
import{t as Jt,bo as v,bm as F,bw as Xt,bs as Ye,bq as Zt,b as Qt}from"./Fcr7AvC-.js";import{bs as en,c5 as Je,ca as xe,aD as t,bH as H,a5 as A,bA as I,W as L,bn as tn,c9 as d,bV as ae,cd as pt,c6 as nn,aA as m,bS as O,b_ as j,bl as Xe,bO as J,aB as T,b$ as Pe,be as sn,a7 as an,ay as Ze}from"./3SdAC2_C.js";import{i as me}from"./BhYXv0ZM.js";import{g as on,i as rn}from"./CA6H1-bp.js";import{f as ln}from"./BRCr02in.js";import{f as cn}from"./CH7HNVC2.js";import{k as dn}from"./D6H34kDj.js";import{JH as Se,ol as fn,Ad as un,sI as bt,on as hn,ad as kt}from"./D0qhIm1r.js";import{b$ as gn,dI as vn}from"./cD292w1o.js";import{c as mn}from"./ChTqQfQN.js";import{c as Lt,h as He,D as pn}from"./Bttih9ri.js";import{F as wt,ba as _t}from"./ChHRVjww.js";import{f as Qe}from"./Beq_QLuz.js";import"./BAtAwQ72.js";import{S as Ie}from"./D7KhILhs.js";import{l as bn}from"./C7b3vXLD.js";import{g as kn}from"./D_jEt7ej.js";function wn(q,c,oe,Re=1){const We=Lt(q,c,oe,"","",{context:3}),re=new Set,pe=new Set,X=_n(Re)-1,De=We.split(`
|
|
2
2
|
`);let s=0,R=0,le=!1;for(const $ of De)if($.startsWith("@@")){le=!0;const Z=$.match(/@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);Z&&(R=parseInt(Z[1],10),s=parseInt(Z[2],10))}else le&&($.startsWith("+")?(re.add(s+X),s++):$.startsWith("-")?(pe.add(R+X),R++):$.startsWith(" ")&&(s++,R++));return{additions:re,deletions:pe}}function _n(q){return Number.isFinite(q)&&q>1?Math.floor(q):1}var Ln=T("<div><!> <!></div>"),Cn=T('<div class="diff-skeleton svelte-1f4chm"><div class="diff-skeleton-header svelte-1f4chm"><!> <!></div> <div class="diff-skeleton-content svelte-1f4chm"></div></div>'),yn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-danger text-sm ml-2"> </span></div>'),xn=T('<div class="error-state svelte-1f4chm"><!> <span class="text-subtle text-sm ml-2"> </span></div>'),Pn=T('<div class="empty-state svelte-1f4chm"><span class="text-subtle text-sm"><!></span></div>'),Sn=T('<span class="icon">+</span> ',1),Hn=T('<span class="icon">−</span> ',1),In=T('<div class="selection-action-bar svelte-1f4chm"><span class="selection-info"> </span> <!> <!></div>'),Rn=T('<div class="diff-wrapper svelte-1f4chm"><!> <div class="diff-content svelte-1f4chm"><!></div></div>'),Wn=T('<div class="tracked-change-diff-viewer svelte-1f4chm"><!></div>');function Dn(q,c){if(new.target)return Jt({component:Dn,...q});en(c,!0);const oe=()=>Ye(yt,"$read$",re),Re=()=>Ye(It,"$workspace$",re),We=()=>Ye(Rt,"$workingTreeFileContentStore",re),[re,pe]=Zt(),X=mn("TrackedChangeDiffViewer"),De=2*1024*1024;let s=v(c,"change",7),R=v(c,"active",7,!0),le=v(c,"workspaceId",7),$=v(c,"viewMode",7,"unified"),Z=v(c,"showHeader",7,!1),Ne=v(c,"foldUnchanged",7,!0),Ae=v(c,"lineWrapping",7,!1),M=v(c,"onStageHunk",7),U=v(c,"onUnstageHunk",7),et=v(c,"onOpenCommit",7),Me=v(c,"refreshKey",7),Ue=v(c,"branchBaseRef",7),Ee=v(c,"branchBaseCommitSha",7),ge=v(c,"useProvidedContent",7,!1),ce=v(c,"allowHeadReads",7,!0),Fe=v(c,"canReadHeadFiles",7),W=v(c,"lineOffset",7,1),tt=v(c,"lineStageIndicators",7),Oe=v(c,"annotations",23,()=>[]),Te=v(c,"renderAnnotation",7),$e=v(c,"virtualizer",7),G=v(c,"gitRootId",7,void 0),be=v(c,"gitRootPath",7,void 0);const de=Je(()=>le())??kn()?.workspaceId??"",Ct=Math.random().toString(36).substring(2,8),Be=`tracked-diff:${crypto.randomUUID()}`,yt=gn(de,Be),Q=d(()=>oe()?.result?.kind==="trackedDiff"?oe().result:void 0),ke=d(()=>oe()?.loading??!0),nt=d(()=>oe()?.error??null),ze=d(()=>(t(Q)?.oldContent.length??0)+(t(Q)?.newContent.length??0)>De),B=d(()=>t(ze)?"":t(Q)?.oldContent??""),V=d(()=>t(ze)?"":t(Q)?.newContent??""),ee=d(()=>ct(s()?.relativePath||s()?.file||"")),it=d(()=>t(Q)?.chunk?.chunks.length?Ut(t(Q).chunk,t(ee)):""),xt=d(()=>!t(B)&&!t(V)&&!t(it)),Pt=d(()=>!!s()?.gitlink||!!t(Q)?.gitlink),st=d(()=>W()>1?`
|
|
3
3
|
`.repeat(W()-1):""),St=d(()=>t(st)+t(B)),Ht=d(()=>t(st)+t(V));let w=ae(null),Ke=ae(null),we=null,_e=ae(!1);const It=vn(de),at=pt(void 0),ot=pt(""),Rt=dn(ot,at),rt=d(Re),te=d(()=>be()||t(rt)?.worktreePath||t(rt)?.repositoryPath||""),Le=d(()=>s()?.relativePath||s()?.file||"file"),Wt=d(()=>Mt(t(Le)));let Ce=ae(null),lt=ae("");function ct(e){if(!e.startsWith("/")||!t(te))return e;const i=t(te).endsWith("/")?t(te).slice(0,-1):t(te);if(e.startsWith(i+"/"))return e.slice(i.length+1);if(e.startsWith(i)){const a=e.slice(i.length);return a.startsWith("/")?a.slice(1):a}return e}function Dt(e){return e?e.startsWith("/")?e:t(te)?`${t(te)}/${e}`:null:null}const dt=d(()=>W()>1),Nt=d(()=>t(dt)?`${t(Le)}:${He(t(B))}:off${W()}`:void 0),At=d(()=>t(dt)?`${t(Le)}:${He(t(V))}:off${W()}`:void 0);function Mt(e){const i=e.split(".").pop()?.toLowerCase();return i?{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",py:"python",rs:"rust",go:"go",rb:"ruby",java:"java",kt:"kotlin",swift:"swift",cs:"csharp",cpp:"cpp",c:"c",h:"c",hpp:"cpp",json:"json",yaml:"yaml",yml:"yaml",toml:"toml",md:"markdown",html:"html",css:"css",scss:"scss",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",svelte:"svelte",vue:"vue"}[i]:void 0}function Ut(e,i){const a=`a/${i}`,o=`b/${i}`,u=[`diff --git ${a} ${o}`,`--- ${a}`,`+++ ${o}`];for(const r of e.chunks){u.push(`@@ -${r.oldStart},${r.oldLines} +${r.newStart},${r.newLines} @@`);for(const h of r.lines){const l=h.type===kt.Addition?"+":h.type===kt.Deletion?"-":" ",g=h.content.endsWith(`
|
|
4
4
|
`)?h.content.slice(0,-1):h.content;u.push(`${l}${g}`)}}return u.join(`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bm as o,t as st,bo as K,bw as nt,b as ot,bq as Ft,bs as Fe,_ as Ut}from"./Fcr7AvC-.js";import{bs as it,a5 as f,aD as t,bA as v,b_ as T,W as y,bn as ct,c9 as k,aA as H,aB as S,ca as Ue,bk as Vt,c6 as Yt,cd as Pe,bV as Gt,bS as g,ay as ge,bl as M,bO as N}from"./3SdAC2_C.js";import{i as $}from"./BhYXv0ZM.js";import{e as Ve,g as Ye}from"./CA6H1-bp.js";import{c as Qt,e as Xt,f as lt,g as Jt,s as x}from"./BRCr02in.js";import{a_ as Zt,db as ea,X as ta,aI as aa,dE as ra,a3 as sa,dI as dt}from"./cD292w1o.js";import{t as Ge}from"./DAsc1V4f.js";import{b as na,A as oa}from"./6_Ki4zfU.js";import{p as Qe}from"./Dxxx3b3f.js";import{aN as ia,aK as ca,aL as Xe,a1 as la}from"./BeZe2Rt-.js";import{S as le}from"./D7KhILhs.js";import"./BAtAwQ72.js";import{f as Je}from"./Beq_QLuz.js";import{l as B,n as da}from"./C7b3vXLD.js";import{sd as ut,JH as W,mP as ua,fV as pa,nM as va,v1 as ma,c as _a,wE as ga,tG as fa,rW as wa}from"./D0qhIm1r.js";import{c as ba}from"./ChTqQfQN.js";import{o as ka}from"./Bgy94TB4.js";import{aR as ha,aS as Ze,bC as ya,aB as xa,bB as Sa,aG as Aa,d3 as Ca,cT as Ra,F as fe,ay as et,bK as Ia}from"./ChHRVjww.js";import{selectCurrentWorkspaceTabId as Pa}from"./_IjN0Lbt.js";import{p as qa}from"./fjEL_jqG.js";import{i as Ma}from"./3a2EfPr3.js";const Na=new Set(["failed","blocked","needs_attention","in_progress"]),Wa={failed:{visual:"icon",icon:Ra,className:"text-foreground"},blocked:{visual:"icon",icon:Ca,className:"text-danger"},needs_attention:{visual:"icon",icon:Aa,className:"text-warning-ink"},in_progress:{visual:"dot",icon:null,className:"workspace-status-color-active"},waiting:{visual:"icon",icon:Sa,className:"text-muted-foreground"},unread:{visual:"dot",icon:null,className:"workspace-status-color-unread"},not_started:{visual:"dot",icon:null,className:"text-muted-foreground/35"},idle:{visual:"dot",icon:null,className:"text-muted-foreground/35"},complete:{visual:"icon",icon:xa,className:"text-success"},pr_queued:{visual:"icon",icon:ya,className:"text-info"},pr_ready:{visual:"icon",icon:Ze,className:"text-success"},pr_open:{visual:"icon",icon:Ze,className:"text-info"},pr_merged:{visual:"icon",icon:ha,className:"text-purple-500"}};function Ta(r){switch(r){case"failed":return o.workspace_statusIcon_failed_label();case"blocked":return o.workspace_statusIcon_blocked_label();case"needs_attention":return o.workspace_statusIcon_needsAttention_label();case"in_progress":return o.workspace_statusIcon_inProgress_label();case"waiting":return o.workspace_taskStatus_waiting_label();case"unread":return o.layout_activeCard_unread_header();case"not_started":return o.workspace_statusIcon_notStarted_label();case"idle":return o.workspace_statusIcon_idle_label();case"complete":return o.workspace_statusIcon_complete_label();case"pr_queued":return o.workspace_statusIcon_prQueued_label();case"pr_ready":return o.workspace_statusIcon_prReady_label();case"pr_open":return o.workspace_statusIcon_prOpen_label();case"pr_merged":return o.workspace_statusIcon_prMerged_label()}}function Oa(r){const n=ut(r.displayStatus)?r.displayStatus:"not_started";return Na.has(n)?n:r.attention==="unread"?"unread":r.waiting===!0?"waiting":n}function pt(r){const n=r==="waiting"||r==="unread"||ut(r)?r:"not_started",b=Ta(n);return{state:n,...Wa[n],label:b,tooltip:b,accessibleName:b}}var Ea=S('<span class="workspace-status-dot svelte-14zk5l0" data-workspace-status-dot=""></span>'),Da=S("<span><!></span>");function vt(r,n){if(new.target)return st({component:vt,...r});it(n,!0);let b=K(n,"status",7),m=K(n,"size",7,14),w=K(n,"decorative",7,!1),u=K(n,"class",7);const i=k(()=>pt(b()));var a={get status(){return b()},set status(_){b(_),H()},get size(){return m()},set size(_=14){m(_),H()},get decorative(){return w()},set decorative(_=!1){w(_),H()},get class(){return u()},set class(_){u(_),H()},$set:nt,$on:(_,G)=>ot(n,_,G)},p=Da(),re=f(p);{var se=_=>{var G=Ea();y(_,G)},ne=_=>{fe(_,{get icon(){return t(i).icon},class:"size-full!"})};$(re,_=>{t(i).visual==="dot"?_(se):t(i).icon&&_(ne,1)})}return v(p),T(_=>{lt(p,1,_,"svelte-14zk5l0"),Jt(p,`width: ${m()??""}px; height: ${m()??""}px;`),x(p,"role",w()?void 0:"img"),x(p,"aria-label",w()?void 0:t(i).accessibleName),x(p,"aria-hidden",w()?"true":void 0),x(p,"title",w()?void 0:t(i).tooltip),x(p,"data-workspace-status",t(i).state),x(p,"data-workspace-status-visual",t(i).visual),x(p,"data-workspace-status-icon",t(i).icon?.iconName)},[()=>Qt(Xt("workspace-status-icon inline-flex shrink-0 items-center justify-center forced-colors:text-[CanvasText]",t(i).className,u()))]),y(r,p),ct(a)}const Me=6e4,Ne=60*Me,We=24*Ne,tt=30*We;function La(r,n=new Date){if(r==null)return null;const b=r instanceof Date?r:new Date(r),m=b.getTime(),w=n.getTime();if(!Number.isFinite(m)||!Number.isFinite(w))return null;const u=Math.max(0,w-m);let i;u<Me?i="<1m":u<Ne?i=`${B(Math.floor(u/Me))}m`:u<We?i=`${B(Math.floor(u/Ne))}h`:u<tt?i=`${B(Math.floor(u/We))}d`:i=`${B(Math.floor(u/tt))}mo`;const a=m>w?n:b,p=da(a,{now:n});return p?{compact:i,accessible:p,dateTime:b.toISOString()}:null}var $a=S('<div><div class="grid gap-0.5 px-5 pt-4"><div class="flex min-w-0 items-center justify-between gap-3"><!> <!></div> <!> <!></div> <div class="my-3 border-t border-border" data-workspace-hover-card-divider=""></div> <div class="body-grid grid min-w-0 grid-cols-1 items-stretch gap-3 px-5 pb-4" data-workspace-hover-card-columns=""><div class="grid" data-workspace-hover-card-activity=""><!></div> <div class="pull-requests grid" data-workspace-hover-card-pr-column=""><!></div></div></div>'),Ka=S('<p class="type-caption mt-1 min-w-0 line-clamp-3 text-muted-foreground" data-workspace-hover-card-summary=""> </p>'),Ha=S('<span class="shrink-0 text-muted-foreground" data-workspace-hover-card-question-meta=""><span aria-hidden="true"> </span></span>'),Ba=S('<span class="row-span-2 flex h-(--text-caption-line-height) items-center" aria-hidden="true"><!></span><span class="type-caption min-w-0 truncate text-foreground" data-workspace-hover-card-agent-name=""> </span><time class="type-caption whitespace-nowrap text-muted-foreground" data-workspace-hover-card-agent-time=""> </time> <span class="agent-detail type-caption flex min-w-0 items-start gap-1.5 text-muted-foreground svelte-1vax087" data-workspace-hover-card-agent-detail=""><span class="min-w-0 truncate" data-workspace-hover-card-agent-context=""> </span><!></span>',1),at=S('<div role="listitem"><!></div>'),za=S('<div class="type-caption mt-3 flex items-center justify-between text-muted-foreground" data-workspace-hover-card-overflow=""><span> </span> <!></div>'),ja=S('<section class="activity min-w-0" data-workspace-hover-card-activity="" data-workspace-hover-card-agent-table=""><div class="-mx-2 grid gap-2" role="list"></div> <!></section>'),Fa=S('<!> <span class="type-caption min-w-0 truncate text-foreground" data-workspace-hover-card-pr-title=""> </span> <span class="type-caption shrink-0 text-muted-foreground" data-workspace-hover-card-pr-status=""> </span> <span class="type-caption shrink-0 text-muted-foreground" data-workspace-hover-card-pr-number=""> </span>',1),Ua=S('<div class="grid w-full min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto_auto] items-center gap-x-2 rounded-sm px-2 py-0 text-left" data-workspace-hover-card-pr-row=""><!></div>'),Va=S('<div class="type-caption mt-3 flex items-center justify-between text-muted-foreground" data-workspace-hover-card-pr-overflow=""><span> </span> <!></div>'),Ya=S('<section class="pull-requests min-w-0" data-workspace-hover-card-pr-column=""><div class="-mx-2 grid min-w-0 gap-2" role="list" data-workspace-hover-card-pr-list=""></div> <!></section>'),Ga=S('<div class="my-3 border-t border-border" data-workspace-hover-card-divider=""></div> <div class="body-grid grid min-w-0 grid-cols-1 items-stretch gap-3 px-5 pb-4" data-workspace-hover-card-columns=""><!> <!></div>',1),Qa=S('<header data-workspace-hover-card-header=""><div class="min-w-0" data-workspace-hover-card-identity=""><div class="flex min-w-0 items-center justify-between gap-3"><h2 class="type-body min-w-0 truncate font-medium text-foreground" data-workspace-hover-card-title=""> </h2> <span class="type-caption flex shrink-0 items-center gap-1.5 text-muted-foreground" data-workspace-hover-card-status=""><span class="truncate" data-workspace-hover-card-status-label=""> </span><!></span></div> <div class="type-caption mt-0.5 min-w-0 truncate text-muted-foreground" data-workspace-hover-card-repo=""> </div> <!></div></header> <!>',1),Xa=S('<section class="workspace-hover-card shrink-0 overflow-hidden rounded-md bg-background text-left text-foreground shadow-(--elevation-overlay) ring-1 ring-border svelte-1vax087" data-workspace-hover-card="" data-workspace-hover-card-layout="landscape"><!></section>');function Ja(r,n){if(new.target)return st({component:Ja,...r});it(n,!0);const b=()=>Fe(gt,"$workspaceAgents$",w),m=()=>Fe(ft,"$prMonitors$",w),[w,u]=Ft(),i=ba("WorkspaceHoverCard");let a=K(n,"workspace",7),p=K(n,"isLoading",7,!1),re=K(n,"activeAgentIds",23,()=>[]),se=K(n,"loadAgentSessions",7,!0),ne=K(n,"onkeydown",7),_=K(n,"staticData",7,!1);const G=Pe("");function mt(){return _()?Pe([]):Zt(G)}function _t(){return _()?Pe([]):ea(G)}const gt=mt(),ft=_t();Ue(()=>G.set(a()?.id??""));let Te=Gt(0);Vt(()=>Qe.subscribe(()=>Yt(Te)));let wt=k(()=>a()?.agentSummary?.agentIds??[]),Oe=k(()=>(t(Te),a()?Qe.getStreamingAgentIdsForWorkspace(a().id):[])),Ee=null,we=new Set;Ue(()=>{if(!a()||!se())return;const e=String(a().id);Ee!==e&&(Ee=e,we=new Set);for(const c of new Set([...t(wt).slice(0,6),...re(),...t(Oe)]))we.has(c)||(W.dispatch(ua(e,c)),we.add(c))});function bt(e){return[e.name,e.context,e.questionMeta?.accessible,e.updated.accessible].filter(Boolean).join(". ")}function kt(e){return e?e.kind==="attention"?e.attention.reason?.trim()||null:"text"in e&&e.text.trim()||null:null}function ht(e){return La(e.lastActivity||e.updatedAt||e.createdAt)??{compact:"—",accessible:o.workspace_hoverCard_noRecentActivity_label()}}function yt(e){const c=String(e.status).toLowerCase(),l=va(e),h=na(e),D=h==="question"?ia(e):null,I=kt(aa.select(W.state,String(e.id)));let P,z,q,A,O,X,j=!1;if(h==="question"){P="attention",z="question",q=D?.questions[0]?.question.trim()||I||o.workspace_hoverCard_question_label(),A="question",O=1;const de=D?.questions.length??0;de>1&&(X={compact:`${B(1)}/${B(de)}`,accessible:o.chat_questionWizard_stepCounter_label({current:1,total:de})})}else if(h==="attention-discussion")P="attention",z="discussion",q=l?.reason?.trim()||o.chat_agentCard_attentionDiscussion_label(),A="attention-discussion",O=1;else if(h==="attention-blocker"||c==="blocked")P="attention",z="blocker",q=l?.reason?.trim()||o.chat_agentCard_attentionBlocker_label(),A="attention-blocker",O=0;else if(e.hasUnread)P="attention",z="unread",q=I||o.chat_newMessagesDivider_label(),j=!!I,A="unread",O=2;else if(e.isStreaming||e.isProcessing||re().includes(String(e.id))||t(Oe).includes(String(e.id))||["active","busy","processing","responding","running","streaming","in_progress"].includes(c))P="active",q=I||o.workspace_devScripts_running_label(),j=!!I,A=e.isProcessing?"responding":"running",O=3;else if(["waiting","pending","queued","starting"].includes(c))P="waiting",q=I||o.workspace_taskStatus_waiting_label(),j=!!I,A="waiting",O=4;else return null;const ye=e.agentMetadata??e.metadata;return{id:String(e.id),name:e.name?.trim()||o.workspace_fileChanges_agent_label(),group:P,attentionKind:z,avatarState:A,specialist:ye?.specialist,context:q,questionMeta:X,contextIsPreview:j,updated:ht(e),priority:O}}let xt=k(()=>{const e=a()?.agentSummary,c=new Map;if(Array.isArray(e?.agents))for(const l of e.agents)l&&typeof l=="object"&&typeof l.id=="string"&&c.set(l.id,l.parentAgentId);return b().filter(l=>{const h=c.get(String(l.id));return!(pa(l)!=="topLevel"||typeof h=="string"&&h||l.pendingDeleteAt||l.retiredAt||String(l.status).toLowerCase()==="deleted")})}),be=k(()=>t(xt).map(yt).filter(e=>e!==null).sort((e,c)=>e.priority-c.priority)),St=k(()=>t(be).slice(0,6)),De=k(()=>Math.max(0,t(be).length-6)),At=k(()=>a()?.repositoryName?a().repositoryOwner?`${a().repositoryOwner} / ${a().repositoryName}`:a().repositoryName:o.workspace_hoverCard_localRepository_label()),Le=k(()=>Oa(a()??{})),Ct=k(()=>pt(t(Le))),ke=k(()=>a()?.statusMessage?.trim()||"");function $e(e){if(!e)return null;const c=e.activePullRequest??e.pullRequests?.[0]??null;return c||(e.prStatus?{id:`legacy-pr-${e.prNumber??"workspace"}`,number:e.prNumber??0,url:e.prUrl??"",title:o.workspace_hoverCard_pullRequest_label(),status:e.prStatus,createdAt:e.updatedAt,updatedAt:e.updatedAt}:null)}let Rt=k(()=>a()?_()?$e(a()):ra.select(W.state,a().id)??$e(a()):null),Q=k(()=>{if(!a()||ta(a()))return[];const e=a().repositoryOwner&&a().repositoryName?`${a().repositoryOwner}/${a().repositoryName}`:void 0;return Ma({workspacePRs:a().pullRequests,activePR:t(Rt),monitors:m(),workspaceRepo:e,buildPrUrl:(c,l)=>qa(c,a().repositoryOwner,a().repositoryName,l),getDisplayTitle:c=>c.title})}),It=k(()=>t(Q).slice(0,3)),Ke=k(()=>Math.max(0,t(Q).length-3)),He=k(()=>t(be).length>0),Be=k(()=>t(Q).length>0),ze=k(()=>t(He)||t(Be));function je(e){const c=e.resource?.repository.provider==="gitlab"?`${e.repo} !${e.number}`:e.repo?o.workspace_card_prBadge_repoLine_tooltip({repo:e.repo,number:e.number}):o.workspace_card_prBadge_label({number:` #${e.number}`});return[sa(c,e),e.title,e.details].filter(Boolean).join(`
|
|
3
|
-
`)}function Pt(e,c){if(e.stopPropagation(),!a()||!se())return;const l=a().id;Pa.select(W.state)!==l&&ka(l).catch(h=>{i.warn("Failed to switch workspace for hover-card agent",{agentId:c,error:h})}),W.dispatch(ma(l,{agentId:c}))}function qt(e,c){if(e.stopPropagation(),!a()||!c.url)return;const l=a().id;Ut(async()=>{const{handleLink:h}=await import("./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/9gZxSRYR.js","/app/immutable/chunks/Fcr7AvC-.js","/app/immutable/chunks/3SdAC2_C.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/D0qhIm1r.js","/app/immutable/chunks/Dms_DO28.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BS1zON0P.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CWfjuhY2.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/OrDYwyck.js","/app/immutable/chunks/cD292w1o.js","/app/immutable/chunks/CZfU7DE3.js","/app/immutable/chunks/ChHRVjww.js","/app/immutable/chunks/2z64ELW5.js","/app/immutable/chunks/BhYXv0ZM.js","/app/immutable/chunks/BRCr02in.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CA6H1-bp.js","/app/immutable/chunks/BAtAwQ72.js","/app/immutable/chunks/TdGvVwuC.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BwweojP5.js","/app/immutable/chunks/C7b3vXLD.js","/app/immutable/chunks/CL3a4Hm1.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/BeZe2Rt-.js","/app/immutable/chunks/_IjN0Lbt.js","/app/immutable/chunks/CH7HNVC2.js","/app/immutable/chunks/CDCAMh6o.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/CbBvi-vT.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/DkQdSPDN.js","/app/immutable/chunks/Beq_QLuz.js","/app/immutable/chunks/Dn334wJv.js","/app/immutable/chunks/Cc0763mU.js","/app/immutable/chunks/DRMe5Ypb.js","/app/immutable/chunks/D9tVylVS.js","/app/immutable/chunks/CxR-pcVt.js","/app/immutable/chunks/DU3vNstz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.DylRFR3N.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bm as o,t as st,bo as K,bw as nt,b as ot,bq as Ft,bs as Fe,_ as Ut}from"./Fcr7AvC-.js";import{bs as it,a5 as f,aD as t,bA as v,b_ as T,W as y,bn as ct,c9 as k,aA as H,aB as S,ca as Ue,bk as Vt,c6 as Yt,cd as Pe,bV as Gt,bS as g,ay as ge,bl as M,bO as N}from"./3SdAC2_C.js";import{i as $}from"./BhYXv0ZM.js";import{e as Ve,g as Ye}from"./CA6H1-bp.js";import{c as Qt,e as Xt,f as lt,g as Jt,s as x}from"./BRCr02in.js";import{a_ as Zt,db as ea,X as ta,aI as aa,dE as ra,a3 as sa,dI as dt}from"./cD292w1o.js";import{t as Ge}from"./DAsc1V4f.js";import{b as na,A as oa}from"./6_Ki4zfU.js";import{p as Qe}from"./8ysnd5N8.js";import{aN as ia,aK as ca,aL as Xe,a1 as la}from"./BeZe2Rt-.js";import{S as le}from"./D7KhILhs.js";import"./BAtAwQ72.js";import{f as Je}from"./Beq_QLuz.js";import{l as B,n as da}from"./C7b3vXLD.js";import{sd as ut,JH as W,mP as ua,fV as pa,nM as va,v1 as ma,c as _a,wE as ga,tG as fa,rW as wa}from"./D0qhIm1r.js";import{c as ba}from"./ChTqQfQN.js";import{o as ka}from"./7Ovc5F1W.js";import{aR as ha,aS as Ze,bC as ya,aB as xa,bB as Sa,aG as Aa,d3 as Ca,cT as Ra,F as fe,ay as et,bK as Ia}from"./ChHRVjww.js";import{selectCurrentWorkspaceTabId as Pa}from"./_IjN0Lbt.js";import{p as qa}from"./BMHxxfP4.js";import{i as Ma}from"./B_dB55pf.js";const Na=new Set(["failed","blocked","needs_attention","in_progress"]),Wa={failed:{visual:"icon",icon:Ra,className:"text-foreground"},blocked:{visual:"icon",icon:Ca,className:"text-danger"},needs_attention:{visual:"icon",icon:Aa,className:"text-warning-ink"},in_progress:{visual:"dot",icon:null,className:"workspace-status-color-active"},waiting:{visual:"icon",icon:Sa,className:"text-muted-foreground"},unread:{visual:"dot",icon:null,className:"workspace-status-color-unread"},not_started:{visual:"dot",icon:null,className:"text-muted-foreground/35"},idle:{visual:"dot",icon:null,className:"text-muted-foreground/35"},complete:{visual:"icon",icon:xa,className:"text-success"},pr_queued:{visual:"icon",icon:ya,className:"text-info"},pr_ready:{visual:"icon",icon:Ze,className:"text-success"},pr_open:{visual:"icon",icon:Ze,className:"text-info"},pr_merged:{visual:"icon",icon:ha,className:"text-purple-500"}};function Ta(r){switch(r){case"failed":return o.workspace_statusIcon_failed_label();case"blocked":return o.workspace_statusIcon_blocked_label();case"needs_attention":return o.workspace_statusIcon_needsAttention_label();case"in_progress":return o.workspace_statusIcon_inProgress_label();case"waiting":return o.workspace_taskStatus_waiting_label();case"unread":return o.layout_activeCard_unread_header();case"not_started":return o.workspace_statusIcon_notStarted_label();case"idle":return o.workspace_statusIcon_idle_label();case"complete":return o.workspace_statusIcon_complete_label();case"pr_queued":return o.workspace_statusIcon_prQueued_label();case"pr_ready":return o.workspace_statusIcon_prReady_label();case"pr_open":return o.workspace_statusIcon_prOpen_label();case"pr_merged":return o.workspace_statusIcon_prMerged_label()}}function Oa(r){const n=ut(r.displayStatus)?r.displayStatus:"not_started";return Na.has(n)?n:r.attention==="unread"?"unread":r.waiting===!0?"waiting":n}function pt(r){const n=r==="waiting"||r==="unread"||ut(r)?r:"not_started",b=Ta(n);return{state:n,...Wa[n],label:b,tooltip:b,accessibleName:b}}var Ea=S('<span class="workspace-status-dot svelte-14zk5l0" data-workspace-status-dot=""></span>'),Da=S("<span><!></span>");function vt(r,n){if(new.target)return st({component:vt,...r});it(n,!0);let b=K(n,"status",7),m=K(n,"size",7,14),w=K(n,"decorative",7,!1),u=K(n,"class",7);const i=k(()=>pt(b()));var a={get status(){return b()},set status(_){b(_),H()},get size(){return m()},set size(_=14){m(_),H()},get decorative(){return w()},set decorative(_=!1){w(_),H()},get class(){return u()},set class(_){u(_),H()},$set:nt,$on:(_,G)=>ot(n,_,G)},p=Da(),re=f(p);{var se=_=>{var G=Ea();y(_,G)},ne=_=>{fe(_,{get icon(){return t(i).icon},class:"size-full!"})};$(re,_=>{t(i).visual==="dot"?_(se):t(i).icon&&_(ne,1)})}return v(p),T(_=>{lt(p,1,_,"svelte-14zk5l0"),Jt(p,`width: ${m()??""}px; height: ${m()??""}px;`),x(p,"role",w()?void 0:"img"),x(p,"aria-label",w()?void 0:t(i).accessibleName),x(p,"aria-hidden",w()?"true":void 0),x(p,"title",w()?void 0:t(i).tooltip),x(p,"data-workspace-status",t(i).state),x(p,"data-workspace-status-visual",t(i).visual),x(p,"data-workspace-status-icon",t(i).icon?.iconName)},[()=>Qt(Xt("workspace-status-icon inline-flex shrink-0 items-center justify-center forced-colors:text-[CanvasText]",t(i).className,u()))]),y(r,p),ct(a)}const Me=6e4,Ne=60*Me,We=24*Ne,tt=30*We;function La(r,n=new Date){if(r==null)return null;const b=r instanceof Date?r:new Date(r),m=b.getTime(),w=n.getTime();if(!Number.isFinite(m)||!Number.isFinite(w))return null;const u=Math.max(0,w-m);let i;u<Me?i="<1m":u<Ne?i=`${B(Math.floor(u/Me))}m`:u<We?i=`${B(Math.floor(u/Ne))}h`:u<tt?i=`${B(Math.floor(u/We))}d`:i=`${B(Math.floor(u/tt))}mo`;const a=m>w?n:b,p=da(a,{now:n});return p?{compact:i,accessible:p,dateTime:b.toISOString()}:null}var $a=S('<div><div class="grid gap-0.5 px-5 pt-4"><div class="flex min-w-0 items-center justify-between gap-3"><!> <!></div> <!> <!></div> <div class="my-3 border-t border-border" data-workspace-hover-card-divider=""></div> <div class="body-grid grid min-w-0 grid-cols-1 items-stretch gap-3 px-5 pb-4" data-workspace-hover-card-columns=""><div class="grid" data-workspace-hover-card-activity=""><!></div> <div class="pull-requests grid" data-workspace-hover-card-pr-column=""><!></div></div></div>'),Ka=S('<p class="type-caption mt-1 min-w-0 line-clamp-3 text-muted-foreground" data-workspace-hover-card-summary=""> </p>'),Ha=S('<span class="shrink-0 text-muted-foreground" data-workspace-hover-card-question-meta=""><span aria-hidden="true"> </span></span>'),Ba=S('<span class="row-span-2 flex h-(--text-caption-line-height) items-center" aria-hidden="true"><!></span><span class="type-caption min-w-0 truncate text-foreground" data-workspace-hover-card-agent-name=""> </span><time class="type-caption whitespace-nowrap text-muted-foreground" data-workspace-hover-card-agent-time=""> </time> <span class="agent-detail type-caption flex min-w-0 items-start gap-1.5 text-muted-foreground svelte-1vax087" data-workspace-hover-card-agent-detail=""><span class="min-w-0 truncate" data-workspace-hover-card-agent-context=""> </span><!></span>',1),at=S('<div role="listitem"><!></div>'),za=S('<div class="type-caption mt-3 flex items-center justify-between text-muted-foreground" data-workspace-hover-card-overflow=""><span> </span> <!></div>'),ja=S('<section class="activity min-w-0" data-workspace-hover-card-activity="" data-workspace-hover-card-agent-table=""><div class="-mx-2 grid gap-2" role="list"></div> <!></section>'),Fa=S('<!> <span class="type-caption min-w-0 truncate text-foreground" data-workspace-hover-card-pr-title=""> </span> <span class="type-caption shrink-0 text-muted-foreground" data-workspace-hover-card-pr-status=""> </span> <span class="type-caption shrink-0 text-muted-foreground" data-workspace-hover-card-pr-number=""> </span>',1),Ua=S('<div class="grid w-full min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto_auto] items-center gap-x-2 rounded-sm px-2 py-0 text-left" data-workspace-hover-card-pr-row=""><!></div>'),Va=S('<div class="type-caption mt-3 flex items-center justify-between text-muted-foreground" data-workspace-hover-card-pr-overflow=""><span> </span> <!></div>'),Ya=S('<section class="pull-requests min-w-0" data-workspace-hover-card-pr-column=""><div class="-mx-2 grid min-w-0 gap-2" role="list" data-workspace-hover-card-pr-list=""></div> <!></section>'),Ga=S('<div class="my-3 border-t border-border" data-workspace-hover-card-divider=""></div> <div class="body-grid grid min-w-0 grid-cols-1 items-stretch gap-3 px-5 pb-4" data-workspace-hover-card-columns=""><!> <!></div>',1),Qa=S('<header data-workspace-hover-card-header=""><div class="min-w-0" data-workspace-hover-card-identity=""><div class="flex min-w-0 items-center justify-between gap-3"><h2 class="type-body min-w-0 truncate font-medium text-foreground" data-workspace-hover-card-title=""> </h2> <span class="type-caption flex shrink-0 items-center gap-1.5 text-muted-foreground" data-workspace-hover-card-status=""><span class="truncate" data-workspace-hover-card-status-label=""> </span><!></span></div> <div class="type-caption mt-0.5 min-w-0 truncate text-muted-foreground" data-workspace-hover-card-repo=""> </div> <!></div></header> <!>',1),Xa=S('<section class="workspace-hover-card shrink-0 overflow-hidden rounded-md bg-background text-left text-foreground shadow-(--elevation-overlay) ring-1 ring-border svelte-1vax087" data-workspace-hover-card="" data-workspace-hover-card-layout="landscape"><!></section>');function Ja(r,n){if(new.target)return st({component:Ja,...r});it(n,!0);const b=()=>Fe(gt,"$workspaceAgents$",w),m=()=>Fe(ft,"$prMonitors$",w),[w,u]=Ft(),i=ba("WorkspaceHoverCard");let a=K(n,"workspace",7),p=K(n,"isLoading",7,!1),re=K(n,"activeAgentIds",23,()=>[]),se=K(n,"loadAgentSessions",7,!0),ne=K(n,"onkeydown",7),_=K(n,"staticData",7,!1);const G=Pe("");function mt(){return _()?Pe([]):Zt(G)}function _t(){return _()?Pe([]):ea(G)}const gt=mt(),ft=_t();Ue(()=>G.set(a()?.id??""));let Te=Gt(0);Vt(()=>Qe.subscribe(()=>Yt(Te)));let wt=k(()=>a()?.agentSummary?.agentIds??[]),Oe=k(()=>(t(Te),a()?Qe.getStreamingAgentIdsForWorkspace(a().id):[])),Ee=null,we=new Set;Ue(()=>{if(!a()||!se())return;const e=String(a().id);Ee!==e&&(Ee=e,we=new Set);for(const c of new Set([...t(wt).slice(0,6),...re(),...t(Oe)]))we.has(c)||(W.dispatch(ua(e,c)),we.add(c))});function bt(e){return[e.name,e.context,e.questionMeta?.accessible,e.updated.accessible].filter(Boolean).join(". ")}function kt(e){return e?e.kind==="attention"?e.attention.reason?.trim()||null:"text"in e&&e.text.trim()||null:null}function ht(e){return La(e.lastActivity||e.updatedAt||e.createdAt)??{compact:"—",accessible:o.workspace_hoverCard_noRecentActivity_label()}}function yt(e){const c=String(e.status).toLowerCase(),l=va(e),h=na(e),D=h==="question"?ia(e):null,I=kt(aa.select(W.state,String(e.id)));let P,z,q,A,O,X,j=!1;if(h==="question"){P="attention",z="question",q=D?.questions[0]?.question.trim()||I||o.workspace_hoverCard_question_label(),A="question",O=1;const de=D?.questions.length??0;de>1&&(X={compact:`${B(1)}/${B(de)}`,accessible:o.chat_questionWizard_stepCounter_label({current:1,total:de})})}else if(h==="attention-discussion")P="attention",z="discussion",q=l?.reason?.trim()||o.chat_agentCard_attentionDiscussion_label(),A="attention-discussion",O=1;else if(h==="attention-blocker"||c==="blocked")P="attention",z="blocker",q=l?.reason?.trim()||o.chat_agentCard_attentionBlocker_label(),A="attention-blocker",O=0;else if(e.hasUnread)P="attention",z="unread",q=I||o.chat_newMessagesDivider_label(),j=!!I,A="unread",O=2;else if(e.isStreaming||e.isProcessing||re().includes(String(e.id))||t(Oe).includes(String(e.id))||["active","busy","processing","responding","running","streaming","in_progress"].includes(c))P="active",q=I||o.workspace_devScripts_running_label(),j=!!I,A=e.isProcessing?"responding":"running",O=3;else if(["waiting","pending","queued","starting"].includes(c))P="waiting",q=I||o.workspace_taskStatus_waiting_label(),j=!!I,A="waiting",O=4;else return null;const ye=e.agentMetadata??e.metadata;return{id:String(e.id),name:e.name?.trim()||o.workspace_fileChanges_agent_label(),group:P,attentionKind:z,avatarState:A,specialist:ye?.specialist,context:q,questionMeta:X,contextIsPreview:j,updated:ht(e),priority:O}}let xt=k(()=>{const e=a()?.agentSummary,c=new Map;if(Array.isArray(e?.agents))for(const l of e.agents)l&&typeof l=="object"&&typeof l.id=="string"&&c.set(l.id,l.parentAgentId);return b().filter(l=>{const h=c.get(String(l.id));return!(pa(l)!=="topLevel"||typeof h=="string"&&h||l.pendingDeleteAt||l.retiredAt||String(l.status).toLowerCase()==="deleted")})}),be=k(()=>t(xt).map(yt).filter(e=>e!==null).sort((e,c)=>e.priority-c.priority)),St=k(()=>t(be).slice(0,6)),De=k(()=>Math.max(0,t(be).length-6)),At=k(()=>a()?.repositoryName?a().repositoryOwner?`${a().repositoryOwner} / ${a().repositoryName}`:a().repositoryName:o.workspace_hoverCard_localRepository_label()),Le=k(()=>Oa(a()??{})),Ct=k(()=>pt(t(Le))),ke=k(()=>a()?.statusMessage?.trim()||"");function $e(e){if(!e)return null;const c=e.activePullRequest??e.pullRequests?.[0]??null;return c||(e.prStatus?{id:`legacy-pr-${e.prNumber??"workspace"}`,number:e.prNumber??0,url:e.prUrl??"",title:o.workspace_hoverCard_pullRequest_label(),status:e.prStatus,createdAt:e.updatedAt,updatedAt:e.updatedAt}:null)}let Rt=k(()=>a()?_()?$e(a()):ra.select(W.state,a().id)??$e(a()):null),Q=k(()=>{if(!a()||ta(a()))return[];const e=a().repositoryOwner&&a().repositoryName?`${a().repositoryOwner}/${a().repositoryName}`:void 0;return Ma({workspacePRs:a().pullRequests,activePR:t(Rt),monitors:m(),workspaceRepo:e,buildPrUrl:(c,l)=>qa(c,a().repositoryOwner,a().repositoryName,l),getDisplayTitle:c=>c.title})}),It=k(()=>t(Q).slice(0,3)),Ke=k(()=>Math.max(0,t(Q).length-3)),He=k(()=>t(be).length>0),Be=k(()=>t(Q).length>0),ze=k(()=>t(He)||t(Be));function je(e){const c=e.resource?.repository.provider==="gitlab"?`${e.repo} !${e.number}`:e.repo?o.workspace_card_prBadge_repoLine_tooltip({repo:e.repo,number:e.number}):o.workspace_card_prBadge_label({number:` #${e.number}`});return[sa(c,e),e.title,e.details].filter(Boolean).join(`
|
|
3
|
+
`)}function Pt(e,c){if(e.stopPropagation(),!a()||!se())return;const l=a().id;Pa.select(W.state)!==l&&ka(l).catch(h=>{i.warn("Failed to switch workspace for hover-card agent",{agentId:c,error:h})}),W.dispatch(ma(l,{agentId:c}))}function qt(e,c){if(e.stopPropagation(),!a()||!c.url)return;const l=a().id;Ut(async()=>{const{handleLink:h}=await import("./9gZxSRYR.js").then(D=>D.l);return{handleLink:h}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45]),import.meta.url).then(({handleLink:h})=>h(c.url,{workspaceId:l,event:e}))}var Mt={get workspace(){return a()},set workspace(e){a(e),H()},get isLoading(){return p()},set isLoading(e=!1){p(e),H()},get activeAgentIds(){return re()},set activeAgentIds(e=[]){re(e),H()},get loadAgentSessions(){return se()},set loadAgentSessions(e=!0){se(e),H()},get onkeydown(){return ne()},set onkeydown(e){ne(e),H()},get staticData(){return _()},set staticData(e=!1){_(e),H()},$set:nt,$on:(e,c)=>ot(n,e,c)},he=Xa(),Nt=f(he);{var Wt=e=>{var c=$a(),l=f(c),h=f(l),D=f(h);le(D,{class:"h-7 min-w-0 max-w-64 flex-1"});var I=g(D,2);le(I,{class:"h-5 w-20 shrink-0"}),v(h);var P=g(h,2);le(P,{class:"h-4 w-40"});var z=g(P,2);le(z,{class:"mt-2 h-10 w-full"}),v(l);var q=g(l,4),A=f(q),O=f(A);le(O,{class:"h-10 w-full"}),v(A);var X=g(A,2),j=f(X);le(j,{class:"h-10 w-full"}),v(X),v(q),v(c),y(e,c)},Tt=e=>{var c=Qa(),l=ge(c);let h;var D=f(l),I=f(D),P=f(I),z=M(P,!0),q=g(P,2),A=f(q),O=M(A,!0),X=g(A);vt(X,{get status(){return t(Le)},size:16,decorative:!0}),v(q),v(I);var j=g(I,2),ye=M(j,!0),de=g(j,2);{var Et=F=>{var oe=Ka(),me=M(oe,!0);Ve(oe,(_e,xe)=>Ge?.(_e,xe),()=>t(ke)),T(()=>N(me,t(ke))),y(F,oe)};$(de,F=>{t(ke)&&F(Et)})}v(D),v(l);var Dt=g(l,2);{var Lt=F=>{var oe=Ga(),me=g(ge(oe),2),_e=f(me);{var xe=J=>{var U=ja(),Y=f(U);Ye(Y,21,()=>t(St),d=>d.id,(d,s)=>{var C=at(),Z=f(C);{let ee=k(()=>bt(t(s)));Je(Z,{variant:"plain",wrapContent:!1,class:"grid h-auto! min-h-8 w-full min-w-0 cursor-pointer grid-cols-[1rem_minmax(0,1fr)_auto] items-start justify-normal gap-x-2 gap-y-0 whitespace-normal rounded-sm border-0! px-2! py-0! text-left font-normal transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",get"aria-label"(){return t(ee)},"data-workspace-hover-card-agent-row":!0,get"data-agent-group-row"(){return t(s).group},get"data-attention-kind"(){return t(s).attentionKind},get onkeydown(){return ne()},onclick:V=>Pt(V,t(s).id),children:(V,ue)=>{var E=Ba(),R=ge(E),L=f(R);{let ae=k(()=>t(s).specialist??null);oa(L,{get agentId(){return t(s).id},variant:"compact",get state(){return t(s).avatarState},get specialist(){return t(ae)}})}v(R);var ie=g(R),Ce=M(ie,!0),te=g(ie),Re=M(te,!0),pe=g(te,2),ve=f(pe),Ie=M(ve,!0);Ve(ve,(ae,ce)=>Ge?.(ae,ce),()=>t(s).context);var Ht=g(ve);{var Bt=ae=>{var ce=Ha(),zt=f(ce),jt=M(zt,!0);v(ce),T(()=>{x(ce,"aria-label",t(s).questionMeta.accessible),N(jt,t(s).questionMeta.compact)}),y(ae,ce)};$(Ht,ae=>{t(s).questionMeta&&ae(Bt)})}v(pe),T(()=>{N(Ce,t(s).name),x(te,"datetime",t(s).updated.dateTime),x(te,"aria-label",t(s).updated.accessible),N(Re,t(s).updated.compact),x(pe,"data-workspace-hover-card-agent-preview",t(s).contextIsPreview||void 0),N(Ie,t(s).context)}),y(V,E)},$$slots:{default:!0}})}v(C),y(d,C)}),v(Y);var Se=g(Y,2);{var Ae=d=>{var s=za(),C=f(s),Z=M(C,!0),ee=g(C,2);fe(ee,{get icon(){return et},size:10}),v(s),T(V=>N(Z,V),[()=>o.workspace_hoverCard_moreAgents_label({count:B(t(De))})]),y(d,s)};$(Se,d=>{t(De)&&d(Ae)})}v(U),T(d=>x(U,"aria-label",d),[()=>o.workspace_multiSelectSidebar_agentsTab_label()]),y(J,U)};$(_e,J=>{t(He)&&J(xe)})}var $t=g(_e,2);{var Kt=J=>{var U=Ya(),Y=f(U);Ye(Y,21,()=>t(It),d=>d.identity,(d,s)=>{var C=at();{const ue=E=>{var R=Fa(),L=ge(R);fe(L,{get icon(){return t(s).statusIcon},size:16,get class(){return`shrink-0 justify-self-start ${t(s).foregroundClass??""}`}});var ie=g(L,2),Ce=M(ie,!0),te=g(ie,2),Re=M(te,!0),pe=g(te,2),ve=M(pe,!0);T(Ie=>{N(Ce,Ie),N(Re,t(s).accessibleStateLabel),N(ve,t(s).numberLabel??`#${t(s).number}`)},[()=>t(s).title||(t(s).resource?.repository.provider==="gitlab"?o.workspace_hoverCard_mergeRequest_label():o.workspace_hoverCard_pullRequest_label())]),y(E,R)};var Z=f(C);{var ee=E=>{{let R=k(()=>je(t(s)));Je(E,{variant:"plain",wrapContent:!1,class:"grid h-auto! w-full min-w-0 grid-cols-[1rem_minmax(0,1fr)_auto_auto] items-center justify-normal gap-x-2 whitespace-normal rounded-sm border-0! px-2! py-0! text-left font-normal transition-colors hover:bg-muted/50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",get"aria-label"(){return t(R)},"data-workspace-hover-card-pr-row":!0,get"data-pr-identity"(){return t(s).identity},get"data-pr-status"(){return t(s).status},get onkeydown(){return ne()},onclick:L=>qt(L,t(s)),children:(L,ie)=>{ue(L)},$$slots:{default:!0}})}},V=E=>{var R=Ua(),L=f(R);ue(L),v(R),T(()=>{x(R,"data-pr-identity",t(s).identity),x(R,"data-pr-status",t(s).status)}),y(E,R)};$(Z,E=>{t(s).url?E(ee):E(V,-1)})}v(C)}T(ue=>x(C,"aria-label",ue),[()=>t(s).url?void 0:je(t(s))]),y(d,C)}),v(Y);var Se=g(Y,2);{var Ae=d=>{var s=Va(),C=f(s),Z=M(C,!0),ee=g(C,2);fe(ee,{get icon(){return et},size:10}),v(s),T(V=>N(Z,V),[()=>o.workspace_hoverCard_moreItems_label({count:B(t(Ke))})]),y(d,s)};$(Se,d=>{t(Ke)&&d(Ae)})}v(U),T((d,s)=>{x(U,"aria-label",d),x(Y,"aria-label",s)},[()=>t(Q).every(d=>d.resource?.repository.provider==="gitlab")?o.workspace_hoverCard_mergeRequests_label():t(Q).some(d=>d.resource?.repository.provider==="gitlab")?o.workspace_hoverCard_reviews_label():o.workspace_hoverCard_pullRequests_label(),()=>t(Q).every(d=>d.resource?.repository.provider==="gitlab")?o.workspace_hoverCard_mergeRequests_label():t(Q).some(d=>d.resource?.repository.provider==="gitlab")?o.workspace_hoverCard_reviews_label():o.workspace_hoverCard_pullRequests_label()]),y(J,U)};$($t,J=>{t(Be)&&J(Kt)})}v(me),y(F,oe)};$(Dt,F=>{t(ze)&&F(Lt)})}T(F=>{h=lt(l,1,"min-w-0 px-5 pt-4",null,h,{"pb-4":!t(ze)}),N(z,F),N(O,t(Ct).label),N(ye,t(At))},[()=>a().title||o.workspace_links_untitled_label()]),y(e,c)};$(Nt,e=>{p()||!a()?e(Wt):e(Tt,-1)})}v(he),y(r,he);var Ot=ct(Mt);return u(),Ot}const rt=800,xr=175,Za=300;function er(){let r=0,n=null;const b=new Set,m=new Set;function w(){return r>0||n!==null?0:rt}function u(){const a=w();b.forEach(p=>p(a))}function i(){n!==null&&(clearTimeout(n),n=null)}return{get currentOpenDelay(){return w()},subscribe(a){return b.add(a),a(w()),()=>b.delete(a)},notifyOpened(){const a=r===0&&n===null;i(),r+=1,a&&u()},notifyClosed(){r!==0&&(r-=1,!(r>0)&&(i(),n=setTimeout(()=>{n=null,u()},Za)))},deferClose(a){return m.add(a),()=>m.delete(a)},settleDeferredCloses(){const a=[...m];m.clear(),a.forEach(p=>p())},reset(){const a=w()!==rt;i(),r=0,m.clear(),a&&u()}}}const Sr=er();function qe(r){const n=dt.select(W.state,r);return n!==void 0&&wa(n)}function tr(r,n){if(!qe(r))return[];const b=ca.select(W.state,r),m=Xe.select(W.state,r),w=la.select(W.state),u=[];for(let i=0;i<_a;i+=1){const a=w[i],p=a&&a!==r?dt.select(W.state,a):void 0;u.push({id:`assign-micro-key-${i+1}`,label:p?o.workspace_card_assignOccupiedMicroKey_label({number:B(i+1),title:p.title}):o.workspace_card_assignMicroKeyNumber_label({number:B(i+1)}),checked:b===i,closeOnSelect:!0,onClick:()=>{qe(r)&&W.dispatch(ga(i,r)),n()}})}return m!==null&&(u.push({type:"separator"}),u.push({id:"unassign-micro-key",label:o.workspace_card_unassignMicroKey_label(),onClick:()=>{qe(r)&&Xe.select(W.state,r)===m&&W.dispatch(fa(m)),n()}})),u}function Ar(r,{connected:n,onClose:b}){if(!n)return[];const m=tr(r,b);if(m.length===0)return[];const w=m.filter(i=>"id"in i&&i.id!=="unassign-micro-key"),u=m.find(i=>"id"in i&&i.id==="unassign-micro-key");return[{id:"assign-micro-key",label:o.workspace_card_assignMicroKey_label(),icon:Ia,onClick:()=>{},selection:"single",submenu:w},...u?[u]:[]]}export{xr as W,rt as a,Ja as b,vt as c,tr as d,Ar as e,pt as g,Oa as r,Sr as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as lt,bo as f,bw as dt,b as ct,bm as e,br as ft,bs as we,bq as Et}from"./Fcr7AvC-.js";import{bs as pt,ay as We,be as A,b$ as D,b_ as n,bO as i,W as a,bS as o,bl as T,bn as _t,aA as g,a7 as Lt,aD as t,c9 as K,aB as k,a5 as x,bA as y,bf as gt,bo as It,bV as tt,br as Gt,ca as bt,bH as Ke,bk as zt}from"./3SdAC2_C.js";import{g as Ut,i as Ot,I as mt}from"./CA6H1-bp.js";import{c as Ft}from"./2z64ELW5.js";import{s as ot,f as Bt,c as Nt}from"./BRCr02in.js";import{f as z}from"./Beq_QLuz.js";import"./BAtAwQ72.js";import"./O5ZlQHf9.js";import{b as Rt}from"./CWtyXmQ4.js";import"./x4bPxhVW.js";import"./BzXQ5SMs.js";import{b as Ht}from"./Ch9YoFhc.js";import{i as S}from"./BhYXv0ZM.js";import{b as Mt}from"./D3yXvqwY.js";import{F as Wt,ay as Jt,c_ as qt,cn as Yt,aN as Vt,bn as jt,d0 as Qt,cK as Xt}from"./ChHRVjww.js";import"./CWfjuhY2.js";import{F as ht,G as Zt}from"./CH3jZcNq.js";import"./Cz3WzTlQ.js";/* empty css */import{C as er}from"./DkQdSPDN.js";import{L as kt}from"./gNR_yDDX.js";import{I as rt}from"./C3KgmGxd.js";import"./koUs6Gjt.js";import"./lK1e5NlM.js";import{h as tr}from"./Nw_03x_O.js";import{JH as $e,fC as xt,J as rr,ep as yt,r7 as sr,uC as ar,Jy as ir,oF as nr,hS as or}from"./D0qhIm1r.js";import{aB as St,aC as Kt,aD as lr,aw as dr,ax as $t,ay as cr,az as pr,aH as _r}from"./Czp61MqP.js";import{R as ur}from"./CCSQmeuF.js";var vr=k('<!> <p class="type-body"> </p>',1);function fr(l,r){if(new.target)return lt({component:fr,...l});pt(r,!0);let _=f(r,"open",15,!1),E=f(r,"static",7,!1),B=f(r,"title",7),u=f(r,"message",7),b=f(r,"buttons",7),m=f(r,"cancelIndex",7,0),ae=f(r,"onSelect",7);function Y(d){_(!1),ae()?.(d)}var he={get open(){return _()},set open(d=!1){_(d),g()},get static(){return E()},set static(d=!1){E(d),g()},get title(){return B()},set title(d){B(d),g()},get message(){return u()},set message(d){u(d),g()},get buttons(){return b()},set buttons(d){b(d),g()},get cancelIndex(){return m()},set cancelIndex(d=0){m(d),g()},get onSelect(){return ae()},set onSelect(d){ae(d),g()},$set:dt,$on:(d,V)=>ct(r,d,V)};return Ht(l,{get static(){return E()},role:"alertdialog",get title(){return B()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>Y(b().length-1),onCancel:()=>Y(m()),get open(){return _()},set open(V){_(V)},footer:V=>{var $=Lt(),N=We($);Ut(N,17,b,Ot,(ie,ne,te)=>{{let ke=K(()=>te===m()?"ghost":te===b().length-1?"primary":"outline");z(ie,{get variant(){return t(ke)},onclick:()=>Y(te),children:(De,R)=>{A();var Te=D();n(()=>i(Te,t(ne))),a(De,Te)},$$slots:{default:!0}})}}),a(V,$)},children:(V,$)=>{var N=vr(),ie=We(N);Ft(ie,()=>Rt,(ke,De)=>{De(ke,{class:"sr-only",children:(R,Te)=>{A();var Fe=D();n(()=>i(Fe,u())),a(R,Fe)},$$slots:{default:!0}})});var ne=o(ie,2),te=T(ne,!0);n(()=>i(te,u())),a(V,N)},$$slots:{footer:!0,default:!0}}),_t(he)}const Ae={anthropicKeys:"https://console.anthropic.com/settings/keys",openAiKeys:"https://platform.openai.com/api-keys",openAiTokens:"https://developers.openai.com/codex/enterprise/access-tokens",xaiConsole:"https://console.x.ai",factoryKeys:"https://app.factory.ai/settings/api-keys",cursorDashboard:"https://cursor.com/dashboard?tab=integrations",deepseekKeys:"https://platform.deepseek.com/api_keys",auggieAuth:"https://docs.augmentcode.com/cli/setup-auggie/authentication"},gr="claude setup-token",br="auggie token print";function mr(l,r){if(r==="differentLogin")return e.settings_providerProfileKinds_differentLogin_description();if(r==="token")return l==="codex"?e.settings_providerProfileKinds_tokenCodex_description():l==="auggie"?e.settings_providerProfileKinds_tokenAuggie_description():e.settings_providerProfileKinds_tokenClaude_description();switch(l){case"codex":return e.settings_providerProfileKinds_apiKeyCodex_description();case"grok":return e.settings_providerProfileKinds_apiKeyGrok_description();case"droid":return e.settings_providerProfileKinds_apiKeyDroid_description();case"cursor":return e.settings_providerProfileKinds_apiKeyCursor_description();case"dsh":return e.settings_providerProfileKinds_apiKeyDsh_description();default:return e.settings_providerProfileKinds_apiKeyClaude_description()}}function hr(l,r){return r==="apiKey"?e.settings_providerProfileKinds_apiKey_label():l==="auggie"?e.settings_providerProfileKinds_tokenAuggie_label():e.settings_providerProfileKinds_token_label()}function Ss(l,r){return l!=="claude"&&l!=="codex"?mr(l,r):r==="token"?l==="codex"?e.settings_providerProfileKinds_tokenCodexDialog_description():e.settings_providerProfileKinds_tokenClaudeDialog_description():l==="codex"?e.settings_providerProfileKinds_apiKeyCodexDialog_description():e.settings_providerProfileKinds_apiKeyClaudeDialog_description()}function kr(l,r){if(r==="token")return l==="codex"?{steps:[e.settings_providerProfileKinds_tokenCodexStep1_label()],link:{href:Ae.openAiTokens,label:e.settings_providerProfileKinds_openAiAccessTokens_link()},eligibility:e.settings_providerProfileKinds_tokenCodexEligibility_description()}:l==="auggie"?{steps:[e.settings_providerProfileKinds_tokenAuggieStep1_label(),e.settings_providerProfileKinds_tokenAuggieStep2_label()],command:br,link:{href:Ae.auggieAuth,label:e.settings_providerProfileKinds_auggieAuthDocs_link()}}:{steps:[e.settings_providerProfileKinds_tokenClaudeStep1_label(),e.settings_providerProfileKinds_tokenClaudeStep2_label()],command:gr};switch(l){case"codex":return{steps:[e.settings_providerProfileKinds_apiKeyCodexStep1_label(),e.settings_providerProfileKinds_apiKeyCodexStep2_label()],link:{href:Ae.openAiKeys,label:e.settings_providerProfileKinds_openAiApiKeys_link()}};case"grok":return{steps:[e.settings_providerProfileKinds_apiKeyGrokStep1_label(),e.settings_providerProfileKinds_apiKeyGrokStep2_label()],link:{href:Ae.xaiConsole,label:e.settings_providerProfileKinds_xaiConsole_link()}};case"droid":return{steps:[e.settings_providerProfileKinds_apiKeyDroidStep1_label(),e.settings_providerProfileKinds_apiKeyDroidStep2_label()],link:{href:Ae.factoryKeys,label:e.settings_providerProfileKinds_factoryApiKeys_link()}};case"cursor":return{steps:[e.settings_providerProfileKinds_apiKeyCursorStep1_label(),e.settings_providerProfileKinds_apiKeyCursorStep2_label()],link:{href:Ae.cursorDashboard,label:e.settings_providerProfileKinds_cursorDashboard_link()}};case"dsh":return{steps:[e.settings_providerProfileKinds_apiKeyDshStep1_label(),e.settings_providerProfileKinds_apiKeyDshStep2_label()],link:{href:Ae.deepseekKeys,label:e.settings_providerProfileKinds_deepseekApiKeys_link()}};default:return{steps:[e.settings_providerProfileKinds_apiKeyClaudeStep1_label(),e.settings_providerProfileKinds_apiKeyClaudeStep2_label()],link:{href:Ae.anthropicKeys,label:e.settings_providerProfileKinds_anthropicConsole_link()}}}}function xr(l,r){return r?l==="apiKey"?e.settings_providerProfileKinds_apiKeyClaudeStep3_label():e.settings_providerProfileKinds_tokenClaudeStep3_label():e.settings_providerProfileKinds_pasteNoCheck_label()}function Ks(l,r){if(r==="token")return l==="codex"?e.settings_providerProfileKinds_tokenNotJwt_error():l==="auggie"?e.settings_providerProfileKinds_tokenShapeAuggie_error():e.settings_providerProfileKinds_tokenShapeClaude_error();switch(l){case"codex":return e.settings_providerProfileKinds_keyShapeCodex_error();case"grok":return e.settings_providerProfileKinds_keyShapeGrok_error();case"droid":return e.settings_providerProfileKinds_keyShapeDroid_error();case"cursor":return e.settings_providerProfileKinds_keyShapeCursor_error();case"dsh":return e.settings_providerProfileKinds_keyShapeDsh_error();default:return e.settings_providerProfileKinds_keyShapeClaude_error()}}var yr=k('<p class="type-body text-muted-foreground" data-testid="provider-profile-token-eligibility"> </p>'),Sr=k('<span class="mt-1 flex items-center gap-2" data-testid="provider-profile-setup-token"><code class="rounded border border-border bg-muted px-1.5 py-0.5 font-mono type-caption text-foreground"> </code> <!></span>'),Pt=k("<li> </li>"),Kr=k('<section class="space-y-2" data-testid="provider-profile-secret-steps"><h3 class="type-body font-medium! text-foreground"> </h3> <ol class="type-body list-decimal space-y-1 pl-5 text-muted-foreground"><li> <!></li> <!> <!></ol> <!></section>'),Ct=k('<div class="flex items-center gap-2"><!> <!></div>'),$r=k('<div class="space-y-2" data-testid="provider-profile-secret-saved"><p class="type-body text-foreground"> </p> <div class="flex items-center gap-3"><span class="type-body font-mono text-muted-foreground"> </span> <!></div></div>'),Pr=k('<span class="type-body text-muted-foreground"> </span> <!>',1),Cr=k('<span class="type-body font-mono text-muted-foreground"> </span> <!> <!>',1),wr=k('<div class="flex flex-wrap items-center gap-3" data-testid="provider-profile-base-url-saved"><span class="type-body text-foreground"> </span> <!></div>'),Ar=k('<details class="group rounded-md border border-border" data-testid="provider-profile-custom-endpoint"><summary class="flex cursor-pointer list-none items-center gap-2 px-3 py-2 type-body text-foreground [&::-webkit-details-marker]:hidden"><!> </summary> <div class="space-y-2 border-t border-border px-3 py-3"><p class="type-caption text-muted-foreground"> </p> <!></div></details>'),Dr=k('<div class="space-y-5" data-testid="provider-profile-secret"><!> <!> <!> <!></div>');function Tr(l,r){if(new.target)return lt({component:Tr,...l});pt(r,!0);let _=f(r,"provider",7),E=f(r,"kind",7),B=f(r,"mode",7),u=f(r,"secret",15,""),b=f(r,"secretSaved",7,!1),m=f(r,"replacing",15,!1),ae=f(r,"secretError",7),Y=f(r,"baseUrl",15,""),he=f(r,"baseUrlSaved",7,!1),d=f(r,"baseUrlAction",15,"keep"),V=f(r,"customEndpointOpen",15,!1),$=f(r,"disabled",7,!1),N=f(r,"secretDisabled",23,$),ie=f(r,"keyCheck",7,!0),ne=f(r,"pasteStep",7,!0),te=f(r,"customEndpoint",7,!0);const ke="https://",De=K(()=>_()==="claude"&&E()==="apiKey"),R=K(()=>kr(_(),E())),Te=K(()=>xr(E(),ie())),Fe=K(()=>B()==="add"||!b()||m()),Ye=K(()=>hr(_(),E()));function st(){m(!1),u("")}var at={get provider(){return _()},set provider(s){_(s),g()},get kind(){return E()},set kind(s){E(s),g()},get mode(){return B()},set mode(s){B(s),g()},get secret(){return u()},set secret(s=""){u(s),g()},get secretSaved(){return b()},set secretSaved(s=!1){b(s),g()},get replacing(){return m()},set replacing(s=!1){m(s),g()},get secretError(){return ae()},set secretError(s){ae(s),g()},get baseUrl(){return Y()},set baseUrl(s=""){Y(s),g()},get baseUrlSaved(){return he()},set baseUrlSaved(s=!1){he(s),g()},get baseUrlAction(){return d()},set baseUrlAction(s="keep"){d(s),g()},get customEndpointOpen(){return V()},set customEndpointOpen(s=!1){V(s),g()},get disabled(){return $()},set disabled(s=!1){$(s),g()},get secretDisabled(){return N()},set secretDisabled(s=$){N(s),g()},get keyCheck(){return ie()},set keyCheck(s=!0){ie(s),g()},get pasteStep(){return ne()},set pasteStep(s=!0){ne(s),g()},get customEndpoint(){return te()},set customEndpoint(s=!0){te(s),g()},$set:dt,$on:(s,C)=>ct(r,s,C)},Be=Dr(),Ee=x(Be);{var Ve=s=>{var C=yr(),H=T(C,!0);n(()=>i(H,t(R).eligibility)),a(s,C)};S(Ee,s=>{t(R).eligibility&&s(Ve)})}var ue=o(Ee,2);{var Ne=s=>{var C=Kr(),H=x(C),oe=T(H,!0),j=o(H,2),Q=x(j),le=x(Q),xe=o(le);{var W=h=>{var L=Sr(),J=x(L),O=T(J,!0),de=o(J,2);er(de,{get text(){return t(R).command},size:"sm"}),y(L),n(()=>i(O,t(R).command)),a(h,L)};S(xe,h=>{t(R).command&&h(W)})}y(Q);var ve=o(Q,2);{var re=h=>{var L=Pt(),J=T(L,!0);n(()=>i(J,t(R).steps[1])),a(h,L)};S(ve,h=>{t(R).steps[1]&&h(re)})}var U=o(ve,2);{var M=h=>{var L=Pt(),J=T(L,!0);n(()=>i(J,t(Te))),a(h,L)};S(U,h=>{ne()&&h(M)})}y(j);var ye=o(j,2);{var Le=h=>{z(h,{variant:"link",size:"sm",get href(){return t(R).link.href},target:"_blank",rel:"noopener noreferrer",class:"h-auto px-0",children:(L,J)=>{A();var O=D();n(()=>i(O,t(R).link.label)),a(L,O)},$$slots:{default:!0}})};S(ye,h=>{t(R).link&&h(Le)})}y(C),n(h=>{i(oe,h),i(le,`${t(R).steps[0]??""} `)},[()=>E()==="apiKey"?e.settings_providerProfileKinds_apiKeyClaudeSteps_label():e.settings_providerProfileKinds_tokenSteps_label()]),a(s,C)};S(ue,s=>{(B()==="add"||m())&&s(Ne)})}var P=o(ue,2);{var je=s=>{ht(s,{get label(){return t(Ye)},get error(){return ae()},control:(H,oe=gt)=>{var j=Ct(),Q=x(j);rt(Q,ft(oe,{type:"password",autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return N()},"data-testid":"provider-profile-secret-input",get value(){return u()},set value(W){u(W)}}));var le=o(Q,2);{var xe=W=>{z(W,{variant:"ghost-light",size:"sm",get disabled(){return N()},onclick:st,children:(ve,re)=>{A();var U=D();n(M=>i(U,M),[()=>e.settings_providerProfileKinds_keepSaved_label()]),a(ve,U)},$$slots:{default:!0}})};S(le,W=>{B()==="edit"&&b()&&W(xe)})}y(j),a(H,j)},$$slots:{control:!0}})},Je=s=>{var C=$r(),H=x(C),oe=T(H,!0),j=o(H,2),Q=x(j),le=T(Q,!0),xe=o(Q,2);z(xe,{variant:"outline",size:"sm",get disabled(){return $()},onclick:()=>m(!0),children:(W,ve)=>{A();var re=D();n(U=>i(re,U),[()=>e.settings_providerProfileKinds_replace_label()]),a(W,re)},$$slots:{default:!0}}),y(j),y(C),n(W=>{i(oe,t(Ye)),i(le,W)},[()=>e.settings_providerProfileKinds_saved_label()]),a(s,C)};S(P,s=>{t(Fe)?s(je):s(Je,-1)})}var it=o(P,2);{var Qe=s=>{var C=Ar(),H=x(C),oe=x(H);Wt(oe,{get icon(){return Jt},class:"size-3 transition-transform group-open:rotate-90"});var j=o(oe);y(H);var Q=o(H,2),le=x(Q),xe=T(le,!0),W=o(le,2);{var ve=U=>{var M=wr(),ye=x(M),Le=T(ye,!0),h=o(ye,2);{var L=O=>{var de=Pr(),X=We(de),Pe=T(X,!0),Ie=o(X,2);z(Ie,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>d("keep"),children:(fe,ge)=>{A();var Re=D();n(Se=>i(Re,Se),[()=>e.settings_providerProfileKinds_keepSaved_label()]),a(fe,Re)},$$slots:{default:!0}}),n(fe=>i(Pe,fe),[()=>e.settings_providerProfileKinds_baseUrlRemoved_label()]),a(O,de)},J=O=>{var de=Cr(),X=We(de),Pe=T(X,!0),Ie=o(X,2);z(Ie,{variant:"outline",size:"sm",get disabled(){return $()},onclick:()=>d("replace"),children:(ge,Re)=>{A();var Se=D();n(v=>i(Se,v),[()=>e.settings_providerProfileKinds_replace_label()]),a(ge,Se)},$$slots:{default:!0}});var fe=o(Ie,2);z(fe,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>d("remove"),children:(ge,Re)=>{A();var Se=D();n(v=>i(Se,v),[()=>e.settings_providerProfiles_remove_label()]),a(ge,Se)},$$slots:{default:!0}}),n(ge=>i(Pe,ge),[()=>e.settings_providerProfileKinds_saved_label()]),a(O,de)};S(h,O=>{d()==="remove"?O(L):O(J,-1)})}y(M),n(O=>i(Le,O),[()=>e.settings_providerProfileKinds_baseUrl_label()]),a(U,M)},re=U=>{{const M=(Le,h=gt)=>{var L=Ct(),J=x(L);rt(J,ft(h,{type:"url",placeholder:ke,autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return $()},"data-testid":"provider-profile-base-url-input",get value(){return Y()},set value(X){Y(X)}}));var O=o(J,2);{var de=X=>{z(X,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>{d("keep"),Y("")},children:(Pe,Ie)=>{A();var fe=D();n(ge=>i(fe,ge),[()=>e.settings_providerProfileKinds_keepSaved_label()]),a(Pe,fe)},$$slots:{default:!0}})};S(O,X=>{B()==="edit"&&he()&&X(de)})}y(L),a(Le,L)};let ye=K(()=>e.settings_providerProfileKinds_baseUrl_label());ht(U,{get label(){return t(ye)},control:M,$$slots:{control:!0}})}};S(W,U=>{B()==="edit"&&he()&&d()!=="replace"?U(ve):U(re,-1)})}y(Q),y(C),n((U,M)=>{i(j,` ${U??""}`),i(xe,M)},[()=>e.settings_providerProfileKinds_customEndpoint_label(),()=>e.settings_providerProfileKinds_customEndpoint_description()]),Mt("open","toggle",C,V,V),a(s,C)};S(it,s=>{t(De)&&te()&&s(Qe)})}return y(Be),n(()=>ot(Be,"data-kind",E())),a(l,Be),_t(at)}var Er=k('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Lr=k('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),Ir=k('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),Gr=k('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),zr=k('<p class="text-xs text-danger" role="alert"> </p>'),Ur=k('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),Or=k('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),Fr=k('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),Br=k('<p class="text-sm text-subtle" role="status"> </p>'),Nr=k('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),Rr=k('<p class="text-sm text-danger" role="alert"> </p>'),Hr=k('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function Mr(l,r){const _=It();if(new.target)return lt({component:Mr,...l});pt(r,!0);const E=()=>we(De,"$storedInstance$",d),B=()=>we(st,"$deviceGrantSupported$",d),u=()=>we(Be,"$instanceSetupSupported$",d),b=()=>we(R,"$isAuthenticating$",d),m=()=>we(Te,"$isCancelling$",d),ae=()=>we(Ye,"$deviceFlow$",d),Y=()=>we(Fe,"$cancelOutcome$",d),he=()=>we(at,"$error$",d),[d,V]=Et();let $=f(r,"compact",7,!1),N=f(r,"onCancel",7);const ie=`${_}-host`,ne=`${_}-host-help`,te=`${_}-host-error`,ke=`${_}-token`,De=St(),R=Kt(),Te=lr(),Fe=dr(),Ye=$t(),st=cr(),at=pr(),Be=_r();let Ee=tt(Gt(St.select($e.state))),Ve=tt(!1),ue=tt(""),Ne=tt(!1);const P=K(()=>ar(t(Ee))),je=K(()=>t(Ne)||t(P)===E()&&B()===!1),Je=K(()=>t(P)?nr(t(P)):null),it=K(()=>u()&&t(P)!==null&&t(ue).trim().length>0);bt(()=>{const v=E();t(Ve)||Ke(Ee,v,!0)}),bt(()=>{u()||Ke(ue,"")}),zt(()=>{const v=()=>{const c=$e.state;Kt.select(c)&&$t.select(c)&&$e.dispatch(xt())};return window.addEventListener("focus",v),()=>window.removeEventListener("focus",v)});function Qe(){!u()||!t(P)||t(P)===E()||b()||m()||$e.dispatch(sr(t(P)))}function s(){Ke(Ve,!0),Ke(ue,"")}function C(){!u()||!t(P)||b()||m()||$e.dispatch(ir(t(P)))}function H(){const v=t(ue).trim();!u()||!v||!t(P)||b()||m()||($e.dispatch(or(t(P),v)),Ke(ue,""))}function oe(){!u()||m()||(b()&&$e.dispatch(yt()),Ke(Ne,!0))}function j(){Ke(Ne,!1)}function Q(){m()||$e.dispatch(yt())}function le(){t(Je)&&tr(t(Je),{})}function xe(v){v.key==="Enter"&&(v.preventDefault(),Qe(),t(je)?document.getElementById(ke)?.focus():C())}function W(v){v.key==="Enter"&&(v.preventDefault(),H())}const ve=K(()=>$()?"sm":"xl"),re=K(()=>$()?"sm":"default");var U={get compact(){return $()},set compact(v=!1){$(v),g()},get onCancel(){return N()},set onCancel(v){N(v),g()},$set:dt,$on:(v,c)=>ct(r,v,c)},M=Hr();{const v=c=>{z(c,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return m()},onclick:Q,children:(p,w)=>{A();var F=D();n(ce=>i(F,ce),[()=>m()?e.lib_gitlabConnect_cancelling_label():e.lib_gitlabConnect_cancel_label()]),a(p,F)},$$slots:{default:!0}})};var ye=x(M);{var Le=c=>{var p=Er(),w=T(p,!0);n(F=>i(w,F),[()=>e.lib_gitlabConnect_updateRequired_description()]),a(c,p)};S(ye,c=>{u()||c(Le)})}var h=o(ye,2);{var L=c=>{var p=Lr(),w=T(p,!0);n(()=>i(w,E())),a(c,p)};S(h,c=>{(b()||m())&&c(L)})}var J=o(h,2);{var O=c=>{var p=Ir(),w=x(p);{let ze=K(()=>e.lib_gitlabConnect_openGitlab_label());Zt(w,{get userCode(){return ae().userCode},get verificationUri(){return ae().verificationUri},get openLabel(){return t(ze)},get compact(){return $()}})}var F=o(w,2),ce=x(F);mt(ce,{size:16,class:"shrink-0"});var se=o(ce,2),He=T(se,!0),Ge=o(se,2);{let ze=K(()=>m()||!u());z(Ge,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(ze)},onclick:oe,children:(nt,ut)=>{A();var I=D();n(q=>i(I,q),[()=>e.lib_gitlabConnect_useToken_label()]),a(nt,I)},$$slots:{default:!0}})}var qe=o(Ge,2);v(qe),y(F),y(p),n(ze=>i(He,ze),[()=>e.lib_gitlabConnect_waitingForAuthorization_label()]),a(c,p)},de=c=>{var p=Gr(),w=x(p);mt(w,{size:16,class:"shrink-0"});var F=o(w,2),ce=T(F,!0),se=o(F,2);v(se),y(p),n(He=>i(ce,He),[()=>e.lib_gitlabConnect_connecting_label()]),a(c,p)},X=c=>{var p=Fr(),w=We(p),F=x(w);kt(F,{get for(){return ie},children:(I,q)=>{A();var Z=D();n(pe=>i(Z,pe),[()=>e.lib_gitlabConnect_host_label()]),a(I,Z)},$$slots:{default:!0}});var ce=o(F,2);{let I=K(()=>!u()),q=K(()=>!t(P)||void 0),Z=K(()=>t(P)?ne:`${ne} ${te}`);rt(ce,{get id(){return ie},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(I)},get"aria-invalid"(){return t(q)},get"aria-describedby"(){return t(Z)},get placeholder(){return rr},oninput:s,onchange:Qe,onkeydown:xe,get value(){return t(Ee)},set value(pe){Ke(Ee,pe,!0)}})}var se=o(ce,2),He=T(se,!0),Ge=o(se,2);{var qe=I=>{var q=zr(),Z=T(q,!0);n(pe=>{ot(q,"id",te),i(Z,pe)},[()=>e.lib_gitlabConnect_invalidInstance_error()]),a(I,q)};S(Ge,I=>{t(P)||I(qe)})}y(w);var ze=o(w,2);{var nt=I=>{var q=Ur(),Z=We(q),pe=x(Z);kt(pe,{get for(){return ke},children:(G,me)=>{A();var Me=D();n(ee=>i(Me,ee),[()=>e.lib_gitlabConnect_token_label()]),a(G,Me)},$$slots:{default:!0}});var Xe=o(pe,2);{let G=K(()=>!u());rt(Xe,{get id(){return ke},type:"password",autocomplete:"off",get disabled(){return t(G)},placeholder:"glpat-...",onkeydown:W,get value(){return t(ue)},set value(me){Ke(ue,me,!0)}})}var Ze=o(Xe,2),be=x(Ze),Ue=o(be);{var et=G=>{z(G,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:le,children:(me,Me)=>{A();var ee=D();n(Oe=>i(ee,Oe),[()=>e.lib_gitlabConnect_createToken_label({host:t(P)})]),a(me,ee)},$$slots:{default:!0}})};S(Ue,G=>{t(Je)&&t(P)&&G(et)})}y(Ze),y(Z);var _e=o(Z,2),Ce=x(_e);{let G=K(()=>!t(it));z(Ce,{variant:"primary",get size(){return t(ve)},type:"button",onclick:H,get disabled(){return t(G)},children:(me,Me)=>{A();var ee=D();n(Oe=>i(ee,Oe),[()=>e.lib_gitlabConnect_connect_label()]),a(me,ee)},$$slots:{default:!0}})}var vt=o(Ce,2);{var At=G=>{z(G,{variant:"ghost",get size(){return t(re)},type:"button",onclick:j,children:(me,Me)=>{A();var ee=D();n(Oe=>i(ee,Oe),[()=>e.lib_gitlabConnect_useDevice_label()]),a(me,ee)},$$slots:{default:!0}})};S(vt,G=>{t(Ne)&&!(t(P)===E()&&B()===!1)&&G(At)})}var Dt=o(vt,2);{var Tt=G=>{z(G,{variant:"ghost",get size(){return t(re)},type:"button",get onclick(){return N()},children:(me,Me)=>{A();var ee=D();n(Oe=>i(ee,Oe),[()=>e.lib_gitlabConnect_cancel_label()]),a(me,ee)},$$slots:{default:!0}})};S(Dt,G=>{N()&&G(Tt)})}y(_e),n(G=>i(be,`${G??""} `),[()=>e.lib_gitlabConnect_token_description()]),a(I,q)},ut=I=>{var q=Or(),Z=x(q);{let be=K(()=>!t(P)||!u());z(Z,{variant:"primary",get size(){return t(ve)},type:"button",onclick:C,get disabled(){return t(be)},children:(Ue,et)=>{A();var _e=D();n(Ce=>i(_e,Ce),[()=>e.lib_gitlabConnect_connect_label()]),a(Ue,_e)},$$slots:{default:!0}})}var pe=o(Z,2);{let be=K(()=>!u());z(pe,{variant:"ghost",get size(){return t(re)},type:"button",get disabled(){return t(be)},onclick:oe,children:(Ue,et)=>{A();var _e=D();n(Ce=>i(_e,Ce),[()=>e.lib_gitlabConnect_useToken_label()]),a(Ue,_e)},$$slots:{default:!0}})}var Xe=o(pe,2);{var Ze=be=>{z(be,{variant:"ghost",get size(){return t(re)},type:"button",get onclick(){return N()},children:(Ue,et)=>{A();var _e=D();n(Ce=>i(_e,Ce),[()=>e.lib_gitlabConnect_cancel_label()]),a(Ue,_e)},$$slots:{default:!0}})};S(Xe,be=>{N()&&be(Ze)})}y(q),a(I,q)};S(ze,I=>{t(je)?I(nt):I(ut,-1)})}n(I=>{ot(se,"id",ne),i(He,I)},[()=>e.lib_gitlabConnect_host_description()]),a(c,p)};S(J,c=>{(b()||m())&&ae()?c(O):b()||m()?c(de,1):c(X,-1)})}var Pe=o(J,2);{var Ie=c=>{var p=Br(),w=T(p,!0);n(F=>i(w,F),[()=>e.lib_gitlabConnect_cancelled_label()]),a(c,p)},fe=c=>{var p=Nr(),w=x(p),F=T(w,!0),ce=o(w,2);z(ce,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return m()},onclick:()=>$e.dispatch(xt()),children:(se,He)=>{A();var Ge=D();n(qe=>i(Ge,qe),[()=>e.lib_gitlabConnect_checkStatus_label()]),a(se,Ge)},$$slots:{default:!0}}),y(p),n(se=>i(F,se),[()=>Y()==="already-started"?e.lib_gitlabConnect_alreadyStarted_description():e.lib_gitlabConnect_cancelFailed_description()]),a(c,p)};S(Pe,c=>{Y()==="cancelled"?c(Ie):(Y()==="already-started"||Y()==="failed")&&c(fe,1)})}var ge=o(Pe,2);{var Re=c=>{var p=Rr(),w=T(p,!0);n(()=>i(w,he())),a(c,p)};S(ge,c=>{he()&&c(Re)})}y(M)}n(()=>Bt(M,1,Nt($()?"space-y-2":"space-y-4"))),a(l,M);var Se=_t(U);return V(),Se}const wt=[{id:"people",get label(){return e.workspace_peopleTile_title()},icon:qt,description:""},{id:"agents",get label(){return e.workspace_multiSelectSidebar_agentsTab_label()},icon:Yt,get description(){return e.workspace_multiSelectSidebar_agentsTab_description()}},{id:"context",get label(){return e.workspace_multiSelectSidebar_contextTab_label()},icon:ur.note,get description(){return e.workspace_multiSelectSidebar_contextTab_description()}},{id:"changes",get label(){return e.workspace_multiSelectSidebar_changesTab_label()},icon:Vt,get description(){return e.workspace_multiSelectSidebar_changesTab_description()}},{id:"files",get label(){return e.workspace_multiSelectSidebar_filesTab_label()},icon:jt,get description(){return e.workspace_multiSelectSidebar_filesTab_description()}},{id:"browser",get label(){return e.workspace_multiSelectSidebar_browserTab_label()},icon:Qt,get description(){return e.workspace_multiSelectSidebar_browserTab_description()}},{id:"shell",get label(){return e.workspace_multiSelectSidebar_shellTab_label()},icon:Xt,get description(){return e.workspace_multiSelectSidebar_shellTab_description()}}];function Wr(l){return wt.some(r=>r.id===l)}const Jr=new Set(["browser","shell"]),$s=new Set(["context","changes","files","browser","shell"]),qr=new Set(["changes"]);function Ps(l,r=!1,_=!0,E=!1,B=!1){const u=l.filter(b=>Wr(b)&&(b!=="people"||_)&&!(B&&qr.has(b))&&!(r&&Jr.has(b)&&!(b==="shell"&&E)));return new Set(u.length>0?u:["agents"])}function Yr(l){const r=new Set(l);return wt.flatMap(({id:_})=>r.has(_)?[_]:[])}function Cs(l,r){const _=new Set(l);return _.has(r)?_.size>1&&_.delete(r):_.add(r),Yr(_)}export{qr as G,$s as H,fr as M,Jr as O,Tr as P,wt as T,Mr as a,hr as b,Ks as c,mr as k,Ps as n,Yr as o,Ss as s,Cs as t};
|
|
1
|
+
import{t as lt,bo as f,bw as dt,b as ct,bm as e,br as ft,bs as we,bq as Et}from"./Fcr7AvC-.js";import{bs as pt,ay as We,be as A,b$ as D,b_ as n,bO as i,W as a,bS as o,bl as T,bn as _t,aA as g,a7 as Lt,aD as t,c9 as K,aB as k,a5 as x,bA as y,bf as gt,bo as It,bV as tt,br as Gt,ca as bt,bH as Ke,bk as zt}from"./3SdAC2_C.js";import{g as Ut,i as Ot,I as mt}from"./CA6H1-bp.js";import{c as Ft}from"./2z64ELW5.js";import{s as ot,f as Bt,c as Nt}from"./BRCr02in.js";import{f as z}from"./Beq_QLuz.js";import"./BAtAwQ72.js";import"./O5ZlQHf9.js";import{b as Rt}from"./CWtyXmQ4.js";import"./x4bPxhVW.js";import"./BzXQ5SMs.js";import{b as Ht}from"./Ch9YoFhc.js";import{i as S}from"./BhYXv0ZM.js";import{b as Mt}from"./D3yXvqwY.js";import{F as Wt,ay as Jt,c_ as qt,cn as Yt,aN as Vt,bn as jt,d0 as Qt,cK as Xt}from"./ChHRVjww.js";import"./CWfjuhY2.js";import{F as ht,G as Zt}from"./FzsqLvWW.js";import"./Cz3WzTlQ.js";/* empty css */import{C as er}from"./DkQdSPDN.js";import{L as kt}from"./gNR_yDDX.js";import{I as rt}from"./C3KgmGxd.js";import"./koUs6Gjt.js";import"./lK1e5NlM.js";import{h as tr}from"./9gZxSRYR.js";import{JH as $e,fC as xt,J as rr,ep as yt,r7 as sr,uC as ar,Jy as ir,oF as nr,hS as or}from"./D0qhIm1r.js";import{aB as St,aC as Kt,aD as lr,aw as dr,ax as $t,ay as cr,az as pr,aH as _r}from"./OrDYwyck.js";import{R as ur}from"./CCSQmeuF.js";var vr=k('<!> <p class="type-body"> </p>',1);function fr(l,r){if(new.target)return lt({component:fr,...l});pt(r,!0);let _=f(r,"open",15,!1),E=f(r,"static",7,!1),B=f(r,"title",7),u=f(r,"message",7),b=f(r,"buttons",7),m=f(r,"cancelIndex",7,0),ae=f(r,"onSelect",7);function Y(d){_(!1),ae()?.(d)}var he={get open(){return _()},set open(d=!1){_(d),g()},get static(){return E()},set static(d=!1){E(d),g()},get title(){return B()},set title(d){B(d),g()},get message(){return u()},set message(d){u(d),g()},get buttons(){return b()},set buttons(d){b(d),g()},get cancelIndex(){return m()},set cancelIndex(d=0){m(d),g()},get onSelect(){return ae()},set onSelect(d){ae(d),g()},$set:dt,$on:(d,V)=>ct(r,d,V)};return Ht(l,{get static(){return E()},role:"alertdialog",get title(){return B()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>Y(b().length-1),onCancel:()=>Y(m()),get open(){return _()},set open(V){_(V)},footer:V=>{var $=Lt(),N=We($);Ut(N,17,b,Ot,(ie,ne,te)=>{{let ke=K(()=>te===m()?"ghost":te===b().length-1?"primary":"outline");z(ie,{get variant(){return t(ke)},onclick:()=>Y(te),children:(De,R)=>{A();var Te=D();n(()=>i(Te,t(ne))),a(De,Te)},$$slots:{default:!0}})}}),a(V,$)},children:(V,$)=>{var N=vr(),ie=We(N);Ft(ie,()=>Rt,(ke,De)=>{De(ke,{class:"sr-only",children:(R,Te)=>{A();var Fe=D();n(()=>i(Fe,u())),a(R,Fe)},$$slots:{default:!0}})});var ne=o(ie,2),te=T(ne,!0);n(()=>i(te,u())),a(V,N)},$$slots:{footer:!0,default:!0}}),_t(he)}const Ae={anthropicKeys:"https://console.anthropic.com/settings/keys",openAiKeys:"https://platform.openai.com/api-keys",openAiTokens:"https://developers.openai.com/codex/enterprise/access-tokens",xaiConsole:"https://console.x.ai",factoryKeys:"https://app.factory.ai/settings/api-keys",cursorDashboard:"https://cursor.com/dashboard?tab=integrations",deepseekKeys:"https://platform.deepseek.com/api_keys",auggieAuth:"https://docs.augmentcode.com/cli/setup-auggie/authentication"},gr="claude setup-token",br="auggie token print";function mr(l,r){if(r==="differentLogin")return e.settings_providerProfileKinds_differentLogin_description();if(r==="token")return l==="codex"?e.settings_providerProfileKinds_tokenCodex_description():l==="auggie"?e.settings_providerProfileKinds_tokenAuggie_description():e.settings_providerProfileKinds_tokenClaude_description();switch(l){case"codex":return e.settings_providerProfileKinds_apiKeyCodex_description();case"grok":return e.settings_providerProfileKinds_apiKeyGrok_description();case"droid":return e.settings_providerProfileKinds_apiKeyDroid_description();case"cursor":return e.settings_providerProfileKinds_apiKeyCursor_description();case"dsh":return e.settings_providerProfileKinds_apiKeyDsh_description();default:return e.settings_providerProfileKinds_apiKeyClaude_description()}}function hr(l,r){return r==="apiKey"?e.settings_providerProfileKinds_apiKey_label():l==="auggie"?e.settings_providerProfileKinds_tokenAuggie_label():e.settings_providerProfileKinds_token_label()}function Ss(l,r){return l!=="claude"&&l!=="codex"?mr(l,r):r==="token"?l==="codex"?e.settings_providerProfileKinds_tokenCodexDialog_description():e.settings_providerProfileKinds_tokenClaudeDialog_description():l==="codex"?e.settings_providerProfileKinds_apiKeyCodexDialog_description():e.settings_providerProfileKinds_apiKeyClaudeDialog_description()}function kr(l,r){if(r==="token")return l==="codex"?{steps:[e.settings_providerProfileKinds_tokenCodexStep1_label()],link:{href:Ae.openAiTokens,label:e.settings_providerProfileKinds_openAiAccessTokens_link()},eligibility:e.settings_providerProfileKinds_tokenCodexEligibility_description()}:l==="auggie"?{steps:[e.settings_providerProfileKinds_tokenAuggieStep1_label(),e.settings_providerProfileKinds_tokenAuggieStep2_label()],command:br,link:{href:Ae.auggieAuth,label:e.settings_providerProfileKinds_auggieAuthDocs_link()}}:{steps:[e.settings_providerProfileKinds_tokenClaudeStep1_label(),e.settings_providerProfileKinds_tokenClaudeStep2_label()],command:gr};switch(l){case"codex":return{steps:[e.settings_providerProfileKinds_apiKeyCodexStep1_label(),e.settings_providerProfileKinds_apiKeyCodexStep2_label()],link:{href:Ae.openAiKeys,label:e.settings_providerProfileKinds_openAiApiKeys_link()}};case"grok":return{steps:[e.settings_providerProfileKinds_apiKeyGrokStep1_label(),e.settings_providerProfileKinds_apiKeyGrokStep2_label()],link:{href:Ae.xaiConsole,label:e.settings_providerProfileKinds_xaiConsole_link()}};case"droid":return{steps:[e.settings_providerProfileKinds_apiKeyDroidStep1_label(),e.settings_providerProfileKinds_apiKeyDroidStep2_label()],link:{href:Ae.factoryKeys,label:e.settings_providerProfileKinds_factoryApiKeys_link()}};case"cursor":return{steps:[e.settings_providerProfileKinds_apiKeyCursorStep1_label(),e.settings_providerProfileKinds_apiKeyCursorStep2_label()],link:{href:Ae.cursorDashboard,label:e.settings_providerProfileKinds_cursorDashboard_link()}};case"dsh":return{steps:[e.settings_providerProfileKinds_apiKeyDshStep1_label(),e.settings_providerProfileKinds_apiKeyDshStep2_label()],link:{href:Ae.deepseekKeys,label:e.settings_providerProfileKinds_deepseekApiKeys_link()}};default:return{steps:[e.settings_providerProfileKinds_apiKeyClaudeStep1_label(),e.settings_providerProfileKinds_apiKeyClaudeStep2_label()],link:{href:Ae.anthropicKeys,label:e.settings_providerProfileKinds_anthropicConsole_link()}}}}function xr(l,r){return r?l==="apiKey"?e.settings_providerProfileKinds_apiKeyClaudeStep3_label():e.settings_providerProfileKinds_tokenClaudeStep3_label():e.settings_providerProfileKinds_pasteNoCheck_label()}function Ks(l,r){if(r==="token")return l==="codex"?e.settings_providerProfileKinds_tokenNotJwt_error():l==="auggie"?e.settings_providerProfileKinds_tokenShapeAuggie_error():e.settings_providerProfileKinds_tokenShapeClaude_error();switch(l){case"codex":return e.settings_providerProfileKinds_keyShapeCodex_error();case"grok":return e.settings_providerProfileKinds_keyShapeGrok_error();case"droid":return e.settings_providerProfileKinds_keyShapeDroid_error();case"cursor":return e.settings_providerProfileKinds_keyShapeCursor_error();case"dsh":return e.settings_providerProfileKinds_keyShapeDsh_error();default:return e.settings_providerProfileKinds_keyShapeClaude_error()}}var yr=k('<p class="type-body text-muted-foreground" data-testid="provider-profile-token-eligibility"> </p>'),Sr=k('<span class="mt-1 flex items-center gap-2" data-testid="provider-profile-setup-token"><code class="rounded border border-border bg-muted px-1.5 py-0.5 font-mono type-caption text-foreground"> </code> <!></span>'),Pt=k("<li> </li>"),Kr=k('<section class="space-y-2" data-testid="provider-profile-secret-steps"><h3 class="type-body font-medium! text-foreground"> </h3> <ol class="type-body list-decimal space-y-1 pl-5 text-muted-foreground"><li> <!></li> <!> <!></ol> <!></section>'),Ct=k('<div class="flex items-center gap-2"><!> <!></div>'),$r=k('<div class="space-y-2" data-testid="provider-profile-secret-saved"><p class="type-body text-foreground"> </p> <div class="flex items-center gap-3"><span class="type-body font-mono text-muted-foreground"> </span> <!></div></div>'),Pr=k('<span class="type-body text-muted-foreground"> </span> <!>',1),Cr=k('<span class="type-body font-mono text-muted-foreground"> </span> <!> <!>',1),wr=k('<div class="flex flex-wrap items-center gap-3" data-testid="provider-profile-base-url-saved"><span class="type-body text-foreground"> </span> <!></div>'),Ar=k('<details class="group rounded-md border border-border" data-testid="provider-profile-custom-endpoint"><summary class="flex cursor-pointer list-none items-center gap-2 px-3 py-2 type-body text-foreground [&::-webkit-details-marker]:hidden"><!> </summary> <div class="space-y-2 border-t border-border px-3 py-3"><p class="type-caption text-muted-foreground"> </p> <!></div></details>'),Dr=k('<div class="space-y-5" data-testid="provider-profile-secret"><!> <!> <!> <!></div>');function Tr(l,r){if(new.target)return lt({component:Tr,...l});pt(r,!0);let _=f(r,"provider",7),E=f(r,"kind",7),B=f(r,"mode",7),u=f(r,"secret",15,""),b=f(r,"secretSaved",7,!1),m=f(r,"replacing",15,!1),ae=f(r,"secretError",7),Y=f(r,"baseUrl",15,""),he=f(r,"baseUrlSaved",7,!1),d=f(r,"baseUrlAction",15,"keep"),V=f(r,"customEndpointOpen",15,!1),$=f(r,"disabled",7,!1),N=f(r,"secretDisabled",23,$),ie=f(r,"keyCheck",7,!0),ne=f(r,"pasteStep",7,!0),te=f(r,"customEndpoint",7,!0);const ke="https://",De=K(()=>_()==="claude"&&E()==="apiKey"),R=K(()=>kr(_(),E())),Te=K(()=>xr(E(),ie())),Fe=K(()=>B()==="add"||!b()||m()),Ye=K(()=>hr(_(),E()));function st(){m(!1),u("")}var at={get provider(){return _()},set provider(s){_(s),g()},get kind(){return E()},set kind(s){E(s),g()},get mode(){return B()},set mode(s){B(s),g()},get secret(){return u()},set secret(s=""){u(s),g()},get secretSaved(){return b()},set secretSaved(s=!1){b(s),g()},get replacing(){return m()},set replacing(s=!1){m(s),g()},get secretError(){return ae()},set secretError(s){ae(s),g()},get baseUrl(){return Y()},set baseUrl(s=""){Y(s),g()},get baseUrlSaved(){return he()},set baseUrlSaved(s=!1){he(s),g()},get baseUrlAction(){return d()},set baseUrlAction(s="keep"){d(s),g()},get customEndpointOpen(){return V()},set customEndpointOpen(s=!1){V(s),g()},get disabled(){return $()},set disabled(s=!1){$(s),g()},get secretDisabled(){return N()},set secretDisabled(s=$){N(s),g()},get keyCheck(){return ie()},set keyCheck(s=!0){ie(s),g()},get pasteStep(){return ne()},set pasteStep(s=!0){ne(s),g()},get customEndpoint(){return te()},set customEndpoint(s=!0){te(s),g()},$set:dt,$on:(s,C)=>ct(r,s,C)},Be=Dr(),Ee=x(Be);{var Ve=s=>{var C=yr(),H=T(C,!0);n(()=>i(H,t(R).eligibility)),a(s,C)};S(Ee,s=>{t(R).eligibility&&s(Ve)})}var ue=o(Ee,2);{var Ne=s=>{var C=Kr(),H=x(C),oe=T(H,!0),j=o(H,2),Q=x(j),le=x(Q),xe=o(le);{var W=h=>{var L=Sr(),J=x(L),O=T(J,!0),de=o(J,2);er(de,{get text(){return t(R).command},size:"sm"}),y(L),n(()=>i(O,t(R).command)),a(h,L)};S(xe,h=>{t(R).command&&h(W)})}y(Q);var ve=o(Q,2);{var re=h=>{var L=Pt(),J=T(L,!0);n(()=>i(J,t(R).steps[1])),a(h,L)};S(ve,h=>{t(R).steps[1]&&h(re)})}var U=o(ve,2);{var M=h=>{var L=Pt(),J=T(L,!0);n(()=>i(J,t(Te))),a(h,L)};S(U,h=>{ne()&&h(M)})}y(j);var ye=o(j,2);{var Le=h=>{z(h,{variant:"link",size:"sm",get href(){return t(R).link.href},target:"_blank",rel:"noopener noreferrer",class:"h-auto px-0",children:(L,J)=>{A();var O=D();n(()=>i(O,t(R).link.label)),a(L,O)},$$slots:{default:!0}})};S(ye,h=>{t(R).link&&h(Le)})}y(C),n(h=>{i(oe,h),i(le,`${t(R).steps[0]??""} `)},[()=>E()==="apiKey"?e.settings_providerProfileKinds_apiKeyClaudeSteps_label():e.settings_providerProfileKinds_tokenSteps_label()]),a(s,C)};S(ue,s=>{(B()==="add"||m())&&s(Ne)})}var P=o(ue,2);{var je=s=>{ht(s,{get label(){return t(Ye)},get error(){return ae()},control:(H,oe=gt)=>{var j=Ct(),Q=x(j);rt(Q,ft(oe,{type:"password",autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return N()},"data-testid":"provider-profile-secret-input",get value(){return u()},set value(W){u(W)}}));var le=o(Q,2);{var xe=W=>{z(W,{variant:"ghost-light",size:"sm",get disabled(){return N()},onclick:st,children:(ve,re)=>{A();var U=D();n(M=>i(U,M),[()=>e.settings_providerProfileKinds_keepSaved_label()]),a(ve,U)},$$slots:{default:!0}})};S(le,W=>{B()==="edit"&&b()&&W(xe)})}y(j),a(H,j)},$$slots:{control:!0}})},Je=s=>{var C=$r(),H=x(C),oe=T(H,!0),j=o(H,2),Q=x(j),le=T(Q,!0),xe=o(Q,2);z(xe,{variant:"outline",size:"sm",get disabled(){return $()},onclick:()=>m(!0),children:(W,ve)=>{A();var re=D();n(U=>i(re,U),[()=>e.settings_providerProfileKinds_replace_label()]),a(W,re)},$$slots:{default:!0}}),y(j),y(C),n(W=>{i(oe,t(Ye)),i(le,W)},[()=>e.settings_providerProfileKinds_saved_label()]),a(s,C)};S(P,s=>{t(Fe)?s(je):s(Je,-1)})}var it=o(P,2);{var Qe=s=>{var C=Ar(),H=x(C),oe=x(H);Wt(oe,{get icon(){return Jt},class:"size-3 transition-transform group-open:rotate-90"});var j=o(oe);y(H);var Q=o(H,2),le=x(Q),xe=T(le,!0),W=o(le,2);{var ve=U=>{var M=wr(),ye=x(M),Le=T(ye,!0),h=o(ye,2);{var L=O=>{var de=Pr(),X=We(de),Pe=T(X,!0),Ie=o(X,2);z(Ie,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>d("keep"),children:(fe,ge)=>{A();var Re=D();n(Se=>i(Re,Se),[()=>e.settings_providerProfileKinds_keepSaved_label()]),a(fe,Re)},$$slots:{default:!0}}),n(fe=>i(Pe,fe),[()=>e.settings_providerProfileKinds_baseUrlRemoved_label()]),a(O,de)},J=O=>{var de=Cr(),X=We(de),Pe=T(X,!0),Ie=o(X,2);z(Ie,{variant:"outline",size:"sm",get disabled(){return $()},onclick:()=>d("replace"),children:(ge,Re)=>{A();var Se=D();n(v=>i(Se,v),[()=>e.settings_providerProfileKinds_replace_label()]),a(ge,Se)},$$slots:{default:!0}});var fe=o(Ie,2);z(fe,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>d("remove"),children:(ge,Re)=>{A();var Se=D();n(v=>i(Se,v),[()=>e.settings_providerProfiles_remove_label()]),a(ge,Se)},$$slots:{default:!0}}),n(ge=>i(Pe,ge),[()=>e.settings_providerProfileKinds_saved_label()]),a(O,de)};S(h,O=>{d()==="remove"?O(L):O(J,-1)})}y(M),n(O=>i(Le,O),[()=>e.settings_providerProfileKinds_baseUrl_label()]),a(U,M)},re=U=>{{const M=(Le,h=gt)=>{var L=Ct(),J=x(L);rt(J,ft(h,{type:"url",placeholder:ke,autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return $()},"data-testid":"provider-profile-base-url-input",get value(){return Y()},set value(X){Y(X)}}));var O=o(J,2);{var de=X=>{z(X,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>{d("keep"),Y("")},children:(Pe,Ie)=>{A();var fe=D();n(ge=>i(fe,ge),[()=>e.settings_providerProfileKinds_keepSaved_label()]),a(Pe,fe)},$$slots:{default:!0}})};S(O,X=>{B()==="edit"&&he()&&X(de)})}y(L),a(Le,L)};let ye=K(()=>e.settings_providerProfileKinds_baseUrl_label());ht(U,{get label(){return t(ye)},control:M,$$slots:{control:!0}})}};S(W,U=>{B()==="edit"&&he()&&d()!=="replace"?U(ve):U(re,-1)})}y(Q),y(C),n((U,M)=>{i(j,` ${U??""}`),i(xe,M)},[()=>e.settings_providerProfileKinds_customEndpoint_label(),()=>e.settings_providerProfileKinds_customEndpoint_description()]),Mt("open","toggle",C,V,V),a(s,C)};S(it,s=>{t(De)&&te()&&s(Qe)})}return y(Be),n(()=>ot(Be,"data-kind",E())),a(l,Be),_t(at)}var Er=k('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Lr=k('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),Ir=k('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),Gr=k('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),zr=k('<p class="text-xs text-danger" role="alert"> </p>'),Ur=k('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),Or=k('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),Fr=k('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),Br=k('<p class="text-sm text-subtle" role="status"> </p>'),Nr=k('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),Rr=k('<p class="text-sm text-danger" role="alert"> </p>'),Hr=k('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function Mr(l,r){const _=It();if(new.target)return lt({component:Mr,...l});pt(r,!0);const E=()=>we(De,"$storedInstance$",d),B=()=>we(st,"$deviceGrantSupported$",d),u=()=>we(Be,"$instanceSetupSupported$",d),b=()=>we(R,"$isAuthenticating$",d),m=()=>we(Te,"$isCancelling$",d),ae=()=>we(Ye,"$deviceFlow$",d),Y=()=>we(Fe,"$cancelOutcome$",d),he=()=>we(at,"$error$",d),[d,V]=Et();let $=f(r,"compact",7,!1),N=f(r,"onCancel",7);const ie=`${_}-host`,ne=`${_}-host-help`,te=`${_}-host-error`,ke=`${_}-token`,De=St(),R=Kt(),Te=lr(),Fe=dr(),Ye=$t(),st=cr(),at=pr(),Be=_r();let Ee=tt(Gt(St.select($e.state))),Ve=tt(!1),ue=tt(""),Ne=tt(!1);const P=K(()=>ar(t(Ee))),je=K(()=>t(Ne)||t(P)===E()&&B()===!1),Je=K(()=>t(P)?nr(t(P)):null),it=K(()=>u()&&t(P)!==null&&t(ue).trim().length>0);bt(()=>{const v=E();t(Ve)||Ke(Ee,v,!0)}),bt(()=>{u()||Ke(ue,"")}),zt(()=>{const v=()=>{const c=$e.state;Kt.select(c)&&$t.select(c)&&$e.dispatch(xt())};return window.addEventListener("focus",v),()=>window.removeEventListener("focus",v)});function Qe(){!u()||!t(P)||t(P)===E()||b()||m()||$e.dispatch(sr(t(P)))}function s(){Ke(Ve,!0),Ke(ue,"")}function C(){!u()||!t(P)||b()||m()||$e.dispatch(ir(t(P)))}function H(){const v=t(ue).trim();!u()||!v||!t(P)||b()||m()||($e.dispatch(or(t(P),v)),Ke(ue,""))}function oe(){!u()||m()||(b()&&$e.dispatch(yt()),Ke(Ne,!0))}function j(){Ke(Ne,!1)}function Q(){m()||$e.dispatch(yt())}function le(){t(Je)&&tr(t(Je),{})}function xe(v){v.key==="Enter"&&(v.preventDefault(),Qe(),t(je)?document.getElementById(ke)?.focus():C())}function W(v){v.key==="Enter"&&(v.preventDefault(),H())}const ve=K(()=>$()?"sm":"xl"),re=K(()=>$()?"sm":"default");var U={get compact(){return $()},set compact(v=!1){$(v),g()},get onCancel(){return N()},set onCancel(v){N(v),g()},$set:dt,$on:(v,c)=>ct(r,v,c)},M=Hr();{const v=c=>{z(c,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return m()},onclick:Q,children:(p,w)=>{A();var F=D();n(ce=>i(F,ce),[()=>m()?e.lib_gitlabConnect_cancelling_label():e.lib_gitlabConnect_cancel_label()]),a(p,F)},$$slots:{default:!0}})};var ye=x(M);{var Le=c=>{var p=Er(),w=T(p,!0);n(F=>i(w,F),[()=>e.lib_gitlabConnect_updateRequired_description()]),a(c,p)};S(ye,c=>{u()||c(Le)})}var h=o(ye,2);{var L=c=>{var p=Lr(),w=T(p,!0);n(()=>i(w,E())),a(c,p)};S(h,c=>{(b()||m())&&c(L)})}var J=o(h,2);{var O=c=>{var p=Ir(),w=x(p);{let ze=K(()=>e.lib_gitlabConnect_openGitlab_label());Zt(w,{get userCode(){return ae().userCode},get verificationUri(){return ae().verificationUri},get openLabel(){return t(ze)},get compact(){return $()}})}var F=o(w,2),ce=x(F);mt(ce,{size:16,class:"shrink-0"});var se=o(ce,2),He=T(se,!0),Ge=o(se,2);{let ze=K(()=>m()||!u());z(Ge,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(ze)},onclick:oe,children:(nt,ut)=>{A();var I=D();n(q=>i(I,q),[()=>e.lib_gitlabConnect_useToken_label()]),a(nt,I)},$$slots:{default:!0}})}var qe=o(Ge,2);v(qe),y(F),y(p),n(ze=>i(He,ze),[()=>e.lib_gitlabConnect_waitingForAuthorization_label()]),a(c,p)},de=c=>{var p=Gr(),w=x(p);mt(w,{size:16,class:"shrink-0"});var F=o(w,2),ce=T(F,!0),se=o(F,2);v(se),y(p),n(He=>i(ce,He),[()=>e.lib_gitlabConnect_connecting_label()]),a(c,p)},X=c=>{var p=Fr(),w=We(p),F=x(w);kt(F,{get for(){return ie},children:(I,q)=>{A();var Z=D();n(pe=>i(Z,pe),[()=>e.lib_gitlabConnect_host_label()]),a(I,Z)},$$slots:{default:!0}});var ce=o(F,2);{let I=K(()=>!u()),q=K(()=>!t(P)||void 0),Z=K(()=>t(P)?ne:`${ne} ${te}`);rt(ce,{get id(){return ie},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(I)},get"aria-invalid"(){return t(q)},get"aria-describedby"(){return t(Z)},get placeholder(){return rr},oninput:s,onchange:Qe,onkeydown:xe,get value(){return t(Ee)},set value(pe){Ke(Ee,pe,!0)}})}var se=o(ce,2),He=T(se,!0),Ge=o(se,2);{var qe=I=>{var q=zr(),Z=T(q,!0);n(pe=>{ot(q,"id",te),i(Z,pe)},[()=>e.lib_gitlabConnect_invalidInstance_error()]),a(I,q)};S(Ge,I=>{t(P)||I(qe)})}y(w);var ze=o(w,2);{var nt=I=>{var q=Ur(),Z=We(q),pe=x(Z);kt(pe,{get for(){return ke},children:(G,me)=>{A();var Me=D();n(ee=>i(Me,ee),[()=>e.lib_gitlabConnect_token_label()]),a(G,Me)},$$slots:{default:!0}});var Xe=o(pe,2);{let G=K(()=>!u());rt(Xe,{get id(){return ke},type:"password",autocomplete:"off",get disabled(){return t(G)},placeholder:"glpat-...",onkeydown:W,get value(){return t(ue)},set value(me){Ke(ue,me,!0)}})}var Ze=o(Xe,2),be=x(Ze),Ue=o(be);{var et=G=>{z(G,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:le,children:(me,Me)=>{A();var ee=D();n(Oe=>i(ee,Oe),[()=>e.lib_gitlabConnect_createToken_label({host:t(P)})]),a(me,ee)},$$slots:{default:!0}})};S(Ue,G=>{t(Je)&&t(P)&&G(et)})}y(Ze),y(Z);var _e=o(Z,2),Ce=x(_e);{let G=K(()=>!t(it));z(Ce,{variant:"primary",get size(){return t(ve)},type:"button",onclick:H,get disabled(){return t(G)},children:(me,Me)=>{A();var ee=D();n(Oe=>i(ee,Oe),[()=>e.lib_gitlabConnect_connect_label()]),a(me,ee)},$$slots:{default:!0}})}var vt=o(Ce,2);{var At=G=>{z(G,{variant:"ghost",get size(){return t(re)},type:"button",onclick:j,children:(me,Me)=>{A();var ee=D();n(Oe=>i(ee,Oe),[()=>e.lib_gitlabConnect_useDevice_label()]),a(me,ee)},$$slots:{default:!0}})};S(vt,G=>{t(Ne)&&!(t(P)===E()&&B()===!1)&&G(At)})}var Dt=o(vt,2);{var Tt=G=>{z(G,{variant:"ghost",get size(){return t(re)},type:"button",get onclick(){return N()},children:(me,Me)=>{A();var ee=D();n(Oe=>i(ee,Oe),[()=>e.lib_gitlabConnect_cancel_label()]),a(me,ee)},$$slots:{default:!0}})};S(Dt,G=>{N()&&G(Tt)})}y(_e),n(G=>i(be,`${G??""} `),[()=>e.lib_gitlabConnect_token_description()]),a(I,q)},ut=I=>{var q=Or(),Z=x(q);{let be=K(()=>!t(P)||!u());z(Z,{variant:"primary",get size(){return t(ve)},type:"button",onclick:C,get disabled(){return t(be)},children:(Ue,et)=>{A();var _e=D();n(Ce=>i(_e,Ce),[()=>e.lib_gitlabConnect_connect_label()]),a(Ue,_e)},$$slots:{default:!0}})}var pe=o(Z,2);{let be=K(()=>!u());z(pe,{variant:"ghost",get size(){return t(re)},type:"button",get disabled(){return t(be)},onclick:oe,children:(Ue,et)=>{A();var _e=D();n(Ce=>i(_e,Ce),[()=>e.lib_gitlabConnect_useToken_label()]),a(Ue,_e)},$$slots:{default:!0}})}var Xe=o(pe,2);{var Ze=be=>{z(be,{variant:"ghost",get size(){return t(re)},type:"button",get onclick(){return N()},children:(Ue,et)=>{A();var _e=D();n(Ce=>i(_e,Ce),[()=>e.lib_gitlabConnect_cancel_label()]),a(Ue,_e)},$$slots:{default:!0}})};S(Xe,be=>{N()&&be(Ze)})}y(q),a(I,q)};S(ze,I=>{t(je)?I(nt):I(ut,-1)})}n(I=>{ot(se,"id",ne),i(He,I)},[()=>e.lib_gitlabConnect_host_description()]),a(c,p)};S(J,c=>{(b()||m())&&ae()?c(O):b()||m()?c(de,1):c(X,-1)})}var Pe=o(J,2);{var Ie=c=>{var p=Br(),w=T(p,!0);n(F=>i(w,F),[()=>e.lib_gitlabConnect_cancelled_label()]),a(c,p)},fe=c=>{var p=Nr(),w=x(p),F=T(w,!0),ce=o(w,2);z(ce,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return m()},onclick:()=>$e.dispatch(xt()),children:(se,He)=>{A();var Ge=D();n(qe=>i(Ge,qe),[()=>e.lib_gitlabConnect_checkStatus_label()]),a(se,Ge)},$$slots:{default:!0}}),y(p),n(se=>i(F,se),[()=>Y()==="already-started"?e.lib_gitlabConnect_alreadyStarted_description():e.lib_gitlabConnect_cancelFailed_description()]),a(c,p)};S(Pe,c=>{Y()==="cancelled"?c(Ie):(Y()==="already-started"||Y()==="failed")&&c(fe,1)})}var ge=o(Pe,2);{var Re=c=>{var p=Rr(),w=T(p,!0);n(()=>i(w,he())),a(c,p)};S(ge,c=>{he()&&c(Re)})}y(M)}n(()=>Bt(M,1,Nt($()?"space-y-2":"space-y-4"))),a(l,M);var Se=_t(U);return V(),Se}const wt=[{id:"people",get label(){return e.workspace_peopleTile_title()},icon:qt,description:""},{id:"agents",get label(){return e.workspace_multiSelectSidebar_agentsTab_label()},icon:Yt,get description(){return e.workspace_multiSelectSidebar_agentsTab_description()}},{id:"context",get label(){return e.workspace_multiSelectSidebar_contextTab_label()},icon:ur.note,get description(){return e.workspace_multiSelectSidebar_contextTab_description()}},{id:"changes",get label(){return e.workspace_multiSelectSidebar_changesTab_label()},icon:Vt,get description(){return e.workspace_multiSelectSidebar_changesTab_description()}},{id:"files",get label(){return e.workspace_multiSelectSidebar_filesTab_label()},icon:jt,get description(){return e.workspace_multiSelectSidebar_filesTab_description()}},{id:"browser",get label(){return e.workspace_multiSelectSidebar_browserTab_label()},icon:Qt,get description(){return e.workspace_multiSelectSidebar_browserTab_description()}},{id:"shell",get label(){return e.workspace_multiSelectSidebar_shellTab_label()},icon:Xt,get description(){return e.workspace_multiSelectSidebar_shellTab_description()}}];function Wr(l){return wt.some(r=>r.id===l)}const Jr=new Set(["browser","shell"]),$s=new Set(["context","changes","files","browser","shell"]),qr=new Set(["changes"]);function Ps(l,r=!1,_=!0,E=!1,B=!1){const u=l.filter(b=>Wr(b)&&(b!=="people"||_)&&!(B&&qr.has(b))&&!(r&&Jr.has(b)&&!(b==="shell"&&E)));return new Set(u.length>0?u:["agents"])}function Yr(l){const r=new Set(l);return wt.flatMap(({id:_})=>r.has(_)?[_]:[])}function Cs(l,r){const _=new Set(l);return _.has(r)?_.size>1&&_.delete(r):_.add(r),Yr(_)}export{qr as G,$s as H,fr as M,Jr as O,Tr as P,wt as T,Mr as a,hr as b,Ks as c,mr as k,Ps as n,Yr as o,Ss as s,Cs as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o}from"./
|
|
1
|
+
import{b as o}from"./DabFMHr_.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){const t=i();if(!t)return;const e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes};
|