@intent-hq/web 2.313.0 → 2.313.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{B-agcRbG.js → 1wCbR4ud.js} +1 -1
- package/web/app/immutable/chunks/{CNMS2KOf.js → 4wFlAApS.js} +1 -1
- package/web/app/immutable/chunks/{BNHRvqeQ.js → 6rzwTXJx.js} +1 -1
- package/web/app/immutable/chunks/{Bops7MsY.js → A3beYjJS.js} +4 -4
- package/web/app/immutable/chunks/{hcpthRFf.js → AF5xKPfV.js} +1 -1
- package/web/app/immutable/chunks/{V553m0MO.js → AHQMxoVk.js} +1 -1
- package/web/app/immutable/chunks/{tuNJ429u.js → B1YnvfKo.js} +1 -1
- package/web/app/immutable/chunks/{C5c-LdLT.js → B2st7VbN.js} +1 -1
- package/web/app/immutable/chunks/{Cw6SlTJ6.js → B3W2oJ3u.js} +1 -1
- package/web/app/immutable/chunks/{BFETMHTz.js → B6Eksue8.js} +2 -2
- package/web/app/immutable/chunks/{BEVpCf6b.js → B6QJA3k0.js} +1 -1
- package/web/app/immutable/chunks/{CxPdVa60.js → B88eFHaH.js} +1 -1
- package/web/app/immutable/chunks/{h4HcKsDl.js → BAssmU5H.js} +1 -1
- package/web/app/immutable/chunks/{n2a_8s79.js → BESrHe_0.js} +1 -1
- package/web/app/immutable/chunks/{C5EEwI0-.js → BIZcuYRW.js} +2 -2
- package/web/app/immutable/chunks/{C2L4VLjE.js → BOQCK4ni.js} +1 -1
- package/web/app/immutable/chunks/{CYtxGPAf.js → BRIkzo-E.js} +1 -1
- package/web/app/immutable/chunks/{B_ifqSee.js → BW6fyv0T.js} +6 -6
- package/web/app/immutable/chunks/{C3X16aYc.js → B_-1t0b5.js} +1 -1
- package/web/app/immutable/chunks/{BfxxnTgV.js → Bc3_ahSr.js} +1 -1
- package/web/app/immutable/chunks/{04XFWhBd.js → Bfc094Ub.js} +1 -1
- package/web/app/immutable/chunks/{28aV1Wzl.js → BjqGlL_Y.js} +1 -1
- package/web/app/immutable/chunks/{DhXr1ZqD.js → BssmMBl2.js} +1 -1
- package/web/app/immutable/chunks/{CHtSQ3Rg.js → Bu6sHonm.js} +1 -1
- package/web/app/immutable/chunks/{CnfYogWn.js → By8e6LYt.js} +1 -1
- package/web/app/immutable/chunks/{DuRHazc8.js → C-fnz5X4.js} +1 -1
- package/web/app/immutable/chunks/{CPzgXxXu.js → C-li4cfO.js} +1 -1
- package/web/app/immutable/chunks/{Cnihm-Nc.js → C2Cq4c9l.js} +1 -1
- package/web/app/immutable/chunks/{jvw1Fn3k.js → C2m8Iivv.js} +1 -1
- package/web/app/immutable/chunks/{CAK2j9T_.js → C6XSZJri.js} +1 -1
- package/web/app/immutable/chunks/{2bp47GFs.js → C6aPQebU.js} +1 -1
- package/web/app/immutable/chunks/{DBfJXlLJ.js → C6gBBEr6.js} +1 -1
- package/web/app/immutable/chunks/{DwdStl3H.js → C6krgOsR.js} +4 -4
- package/web/app/immutable/chunks/{BiMGZT5w.js → C80u9j_3.js} +1 -1
- package/web/app/immutable/chunks/{B9F8nd-t.js → C8PuI333.js} +1 -1
- package/web/app/immutable/chunks/{BwK5Bace.js → CA7UZgrf.js} +1 -1
- package/web/app/immutable/chunks/{DvExZ34Y.js → CAn8DYJP.js} +1 -1
- package/web/app/immutable/chunks/{B1Rrvp0b.js → CBTot2K1.js} +1 -1
- package/web/app/immutable/chunks/{i92hRJko.js → CCCBFmfe.js} +3 -3
- package/web/app/immutable/chunks/{CM7ZaQP_.js → CE8vXfAM.js} +1 -1
- package/web/app/immutable/chunks/{CJCZCJxO.js → CG-371Y6.js} +1 -1
- package/web/app/immutable/chunks/{okmbexJZ.js → CICEz2Qq.js} +1 -1
- package/web/app/immutable/chunks/{DeBw56y4.js → CJtH5G9P.js} +1 -1
- package/web/app/immutable/chunks/{DZuInc-o.js → CKH-l4ig.js} +1 -1
- package/web/app/immutable/chunks/{sLnx1Tu5.js → CKWaKOqs.js} +1 -1
- package/web/app/immutable/chunks/{CPfTSiRI.js → CMvHzajx.js} +1 -1
- package/web/app/immutable/chunks/{Dt9TrzFG.js → CN_VK1iL.js} +1 -1
- package/web/app/immutable/chunks/{B3nB6DWs.js → COpjcilg.js} +1 -1
- package/web/app/immutable/chunks/{6uLD17LP.js → CP06IBS7.js} +1 -1
- package/web/app/immutable/chunks/{LoSFphII.js → CQMd4GmI.js} +1 -1
- package/web/app/immutable/chunks/{X-W6j8OD.js → CQbq623l.js} +1 -1
- package/web/app/immutable/chunks/{B721JIop.js → CTX5Fuc9.js} +2 -2
- package/web/app/immutable/chunks/{DaWdrOD0.js → CTfHCA2Y.js} +1 -1
- package/web/app/immutable/chunks/{CgAzfuNr.js → CUPAS0zd.js} +1 -1
- package/web/app/immutable/chunks/{DKhv0I45.js → CW1tBVLY.js} +1 -1
- package/web/app/immutable/chunks/{C_73TJPq.js → CWaCCzEn.js} +1 -1
- package/web/app/immutable/chunks/{C8reKsm7.js → CXNySl0c.js} +1 -1
- package/web/app/immutable/chunks/{DPcbMgdd.js → CYmZhCDN.js} +1 -1
- package/web/app/immutable/chunks/{DEfnfMIS.js → C_KYY7ZK.js} +1 -1
- package/web/app/immutable/chunks/{DgJXm20t.js → Cb6WrSKY.js} +1 -1
- package/web/app/immutable/chunks/{DiVHUgRZ.js → Cbh1BCiS.js} +2 -2
- package/web/app/immutable/chunks/{DZ64qqlL.js → CbpiaYyP.js} +1 -1
- package/web/app/immutable/chunks/{BXMFG8vW.js → CcGPnEzl.js} +1 -1
- package/web/app/immutable/chunks/{B6oQfzis.js → CelhKzDn.js} +1 -1
- package/web/app/immutable/chunks/{BDICjj7k.js → ClfTOQ5L.js} +1 -1
- package/web/app/immutable/chunks/{CVvtz86e.js → CsTPrgDm.js} +3 -3
- package/web/app/immutable/chunks/{DJCJ21BX.js → Ctl9Ux7T.js} +1 -1
- package/web/app/immutable/chunks/{B7-651e2.js → CxO_9nE4.js} +1 -1
- package/web/app/immutable/chunks/{BCDWZbwh.js → CzrG_lpv.js} +1 -1
- package/web/app/immutable/chunks/{CDE88Tgk.js → D-8WC0DU.js} +1 -1
- package/web/app/immutable/chunks/{B-rSL5ZP.js → D2uybU7F.js} +2 -2
- package/web/app/immutable/chunks/{OS5fDMId.js → D47PZJI_.js} +1 -1
- package/web/app/immutable/chunks/{D_uOXHFE.js → D4qqUzAr.js} +1 -1
- package/web/app/immutable/chunks/{kRmfkT9J.js → D5XH3yqM.js} +1 -1
- package/web/app/immutable/chunks/{77JHYRqp.js → D62gE1G0.js} +1 -1
- package/web/app/immutable/chunks/{D0NG9Gzz.js → D84mJH5u.js} +1 -1
- package/web/app/immutable/chunks/{BGYaMCAp.js → DAtBKOQq.js} +1 -1
- package/web/app/immutable/chunks/{ldCNaZ5F.js → DBUJXdXR.js} +1 -1
- package/web/app/immutable/chunks/{2g3BKwo_.js → DChetNRi.js} +2 -2
- package/web/app/immutable/chunks/{BN6Sv1MY.js → DESxr5Rj.js} +1 -1
- package/web/app/immutable/chunks/{Cpw4G06I.js → DL9BUVq-.js} +1 -1
- package/web/app/immutable/chunks/{xlntbOPQ.js → DNYGh_FV.js} +1 -1
- package/web/app/immutable/chunks/{CKJYXvLT.js → DOnT_3WY.js} +1 -1
- package/web/app/immutable/chunks/{C4XQStEU.js → DPG0D59v.js} +1 -1
- package/web/app/immutable/chunks/{D0tEEJ7X.js → DQNmQX9F.js} +1 -1
- package/web/app/immutable/chunks/{B9pAuhbK.js → DSOeLuN2.js} +1 -1
- package/web/app/immutable/chunks/{BKTydVIY.js → DUdpP1ED.js} +1 -1
- package/web/app/immutable/chunks/{YH3VI7O_.js → DUrqH6OL.js} +1 -1
- package/web/app/immutable/chunks/{BgUzpkp7.js → DWccAyE3.js} +1 -1
- package/web/app/immutable/chunks/{DPiGMYKs.js → DYrH45vr.js} +1 -1
- package/web/app/immutable/chunks/{Dxpr5NqS.js → DgfdSIWo.js} +1 -1
- package/web/app/immutable/chunks/{DqTygHNa.js → DkI_jPOw.js} +4 -4
- package/web/app/immutable/chunks/{DqLOhjhM.js → DlKVdWHt.js} +1 -1
- package/web/app/immutable/chunks/{gqVNwlAV.js → DulsjrO4.js} +1 -1
- package/web/app/immutable/chunks/{DfTvRpFp.js → Dvil1FCS.js} +1 -1
- package/web/app/immutable/chunks/{DuVelotc.js → DwPGocEY.js} +2 -2
- package/web/app/immutable/chunks/{BM7ZHc1t.js → DwgP_YcK.js} +1 -1
- package/web/app/immutable/chunks/{BAQDI3wv.js → DxZSyekB.js} +1 -1
- package/web/app/immutable/chunks/{BLDT4lze.js → Dz6YK0K2.js} +1 -1
- package/web/app/immutable/chunks/{BBRz8JFJ.js → HWP1BG2L.js} +1 -1
- package/web/app/immutable/chunks/{C58wlt4Q.js → LSDVwgG8.js} +2 -2
- package/web/app/immutable/chunks/{BZ90Gl9e.js → MED7rLah.js} +1 -1
- package/web/app/immutable/chunks/{BlfjnWuH.js → MgJqQwQp.js} +1 -1
- package/web/app/immutable/chunks/{DCcgbj-g.js → NYwlcfYt.js} +1 -1
- package/web/app/immutable/chunks/{CRgLy9Dv.js → OpYhygEs.js} +1 -1
- package/web/app/immutable/chunks/{BFpzDysH.js → TP4sXUzS.js} +1 -1
- package/web/app/immutable/chunks/{IB-HmS7d.js → ZUZF8K3P.js} +1 -1
- package/web/app/immutable/chunks/{BR8jrnEs.js → _bllxFVr.js} +1 -1
- package/web/app/immutable/chunks/{KFwqetYG.js → a6K5_NPk.js} +1 -1
- package/web/app/immutable/chunks/{P4NanOkc.js → dX_oN6Xt.js} +1 -1
- package/web/app/immutable/chunks/{cUCU_6OD.js → gsqPz4Y0.js} +1 -1
- package/web/app/immutable/chunks/{CCIxcA5l.js → jnmyog2T.js} +1 -1
- package/web/app/immutable/chunks/{BkKnMUvE.js → jq7ACadW.js} +1 -1
- package/web/app/immutable/chunks/{um4u3A9l.js → kdf0l6Z-.js} +1 -1
- package/web/app/immutable/chunks/{CEWfqweJ.js → nHQ6ExVj.js} +1 -1
- package/web/app/immutable/chunks/{Bpy6Muvw.js → q4Mp6azq.js} +4 -4
- package/web/app/immutable/chunks/{CatH1hIe.js → qIh42_HI.js} +1 -1
- package/web/app/immutable/chunks/{D6DsI_Sr.js → qcgLBz2O.js} +1 -1
- package/web/app/immutable/chunks/{DE32xZOO.js → qr2Z9jBR.js} +1 -1
- package/web/app/immutable/chunks/{DFzMoFQx.js → sg8Cer3T.js} +3 -3
- package/web/app/immutable/chunks/{BdetxH0g.js → tSV1knJu.js} +1 -1
- package/web/app/immutable/chunks/{PTzYQcOR.js → usUeYWMe.js} +1 -1
- package/web/app/immutable/chunks/{CYlqp1HL.js → x8WBzABF.js} +6 -6
- package/web/app/immutable/chunks/{DKPwGUzq.js → xfGEIVf6.js} +1 -1
- package/web/app/immutable/chunks/{CCxcLQdk.js → y_yPvfwh.js} +1 -1
- package/web/app/immutable/entry/{app.Co8E4L03.js → app.BlqNT7Cr.js} +2 -2
- package/web/app/immutable/entry/start.DaNUqzZq.js +1 -0
- package/web/app/immutable/nodes/{0.BucKx3Zo.js → 0.ShO9PneW.js} +1 -1
- package/web/app/immutable/nodes/{1.-v_Vj9ip.js → 1.CWY9gUhn.js} +1 -1
- package/web/app/immutable/nodes/{10.BnlxMSMI.js → 10.BPcvGGhE.js} +1 -1
- package/web/app/immutable/nodes/{14.Ca9GXwJ0.js → 14.C46jjudj.js} +1 -1
- package/web/app/immutable/nodes/{16.Dk1EKS3B.js → 16.DxDrMp3A.js} +2 -2
- package/web/app/immutable/nodes/{2.Bazc0fR2.js → 2.BY4xMtJS.js} +3 -3
- package/web/app/immutable/nodes/{3.CCsh91Fv.js → 3.RPzUk4Sw.js} +1 -1
- package/web/app/immutable/nodes/{4.C_FHoeDU.js → 4.ZFgOw7Ux.js} +1 -1
- package/web/app/immutable/nodes/{5.DegIKxsI.js → 5.BKaPpN7j.js} +1 -1
- package/web/app/immutable/nodes/{6.F6OlLFwi.js → 6.BqCf3vb3.js} +1 -1
- package/web/app/immutable/nodes/{7.quuP6x8b.js → 7.CJYSYpjI.js} +1 -1
- package/web/app/immutable/nodes/{8.xtRgDwRj.js → 8.B_FmoLB7.js} +2 -2
- package/web/app/immutable/nodes/{9.DFsNNJdd.js → 9.p1SC8ote.js} +1 -1
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/entry/start.CBL0QUZV.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as _t,bq as _,a_ as D,by as mt,bs as gt,b as vt,bo as x,bu as be,bt as Te}from"./BAqR9jtB.js";import{bs as ht,cd as yt,ca as wt,bk as xt,a7 as N,ay as m,W as r,bn as kt,aA as g,aD as t,bS as z,a5 as _e,bH as Le,bA as me,b_ as M,aB as E,c9 as o,bf as It,bl as oe,bO as ae,bV as Ct}from"./DYhIMPy1.js";import{k as $t,h as Pt,s as Be,c as At}from"./BPk16bSc.js";import{s as Me}from"./DiCMHWTR.js";import{c as S}from"./B2RRuLl5.js";import{cF as Et,bl as Ot,aK as Ft,F as ne,aX as Tt,aL as Lt,bm as Bt,a7 as Ve,av as Dt}from"./DKXEy5Lq.js";import{W as Nt,T as zt,G as St,C as Rt,X as Ht,J as Wt,V as Mt}from"./DD-f8Y3V.js";import{f as ge}from"./C9gP-gRX.js";import{i as Vt}from"./BFETMHTz.js";import{n as Gt,R as jt,r as qt,q as Kt,p as Xt,o as Ge}from"./DO2cS8JO.js";import{n as ve}from"./Bc-8qHYh.js";import{c as Jt}from"./ChTqQfQN.js";import"./7ZJvg7ev.js";import{Hp as je,mp as Ut,Ee as Yt}from"./BSwWMzab.js";import{v as Qt}from"./UuiGcpAE.js";import{i as J}from"./BHqHNrOT.js";import{bn as Zt,b4 as er,b2 as tr}from"./BiMGZT5w.js";import{ck as rr}from"./DY6JypjK.js";import{t as or}from"./H2jLkRRS.js";const ar={cursor:Rt,ghostty:St,terminal:zt,warp:Nt},nr={vscode:Mt,jetbrains:Wt,xcode:Ht};function sr(O){return ar[O.id]??nr[O.handlerType]??null}function qe(O){return O==="terminal"?Et:O==="finder"?Ot:Ft}const ir="shrink-0 text-muted-foreground hover:text-foreground focus-visible:text-foreground [&_svg]:size-4",De="finder",lr={id:De,name:"Finder",shortLabel:"Finder",appName:"Finder",category:"finder",handlerType:"finder",installed:!0,priority:0};function cr(O,s=[]){const se=new Set(s),U=O.filter(({installed:Y,id:ye})=>Y&&!se.has(ye));return U.some(({id:Y})=>Y===De)||se.has(De)?U:[...U,lr]}var dr=E('<img alt="" class="size-4"/>'),ur=E('<kbd class="type-caption ml-4 text-muted-foreground" aria-hidden="true"> </kbd>'),pr=E('<span class="min-w-0 flex-1 truncate"> </span> <!>',1),fr=E("<span> </span>"),he=E("<!> <!>",1),br=E("<span><!></span>"),_r=E('<img class="w-4 h-4"/>'),mr=E('<!> <span class="text-muted-foreground"> </span>',1),gr=E('<div class="inline-flex items-stretch rounded-md border border-border" data-open-combo-control=""><!> <!></div>'),vr=E('<div class="type-caption px-2 py-1.5 text-subtle"> </div>'),hr=E('<div class="w-60 max-w-full"><!> <!> <!></div>'),yr=E("<div><!></div>");function wr(O,s){if(new.target)return _t({component:wr,...O});ht(s,!0);const se=()=>be(Je,"$installedEditors$",ie),U=()=>be(Ue,"$hiddenEditorIds$",ie),Y=()=>be(Ye,"$isWorkspaceHostLocal$",ie),ye=()=>be(Xe,"$openAction",ie),[ie,Ke]=gt(),le=(e,d=It)=>{var u=N(),p=m(u);S(p,()=>jt,(te,j)=>{j(te,{get value(){return t(v).id},children:(F,B)=>{var I=N(),T=m(I);Pt(T,17,d,C=>C.id,(C,c)=>{var q=N(),h=m(q);{const $=a=>{var i=N(),y=m(i);{var H=l=>{var A=dr();M(()=>Be(A,"src",`data:image/png;base64,${t(c).iconBase64??""}`)),r(l,A)},b=l=>{const A=o(()=>t(c).icon);var W=N(),L=m(W);S(L,()=>t(A),(K,re)=>{re(K,{size:16})}),r(l,W)},P=l=>{{let A=o(()=>t(c).faIcon??qe(t(c).category));ne(l,{get icon(){return t(A)},class:"size-4 text-muted-foreground"})}};D(y,l=>{t(c).iconBase64?l(H):t(c).icon?l(b,1):l(P,-1)})}r(a,i)};let n=o(()=>!k());S(h,()=>Gt,(a,i)=>{i(a,{get value(){return t(c).id},closeOnSelect:!0,get disabled(){return t(n)},onSelect:()=>tt(t(c).id),get textValue(){return t(c).label},leading:$,children:(y,H)=>{var b=pr(),P=m(b),l=oe(P,!0),A=z(P,2);{var W=L=>{var K=ur(),re=oe(K,!0);M(()=>ae(re,t(c).shortcut)),r(L,K)};D(A,L=>{t(c).shortcut&&L(W)})}M(()=>ae(l,t(c).label)),r(y,b)},$$slots:{leading:!0,default:!0}})})}r(C,q)}),r(F,I)},$$slots:{default:!0}})}),r(e,u)},Ne=Jt("OpenComboButton");let k=_(s,"filePath",7),ce=_(s,"workspaceId",7,""),de=_(s,"isDirectory",7,!0),we=_(s,"workspaceFolderPath",7),xe=_(s,"class",7,""),ue=_(s,"headerText",7),ke=_(s,"usePortal",7,!0),Ie=_(s,"side",7,"bottom"),V=_(s,"variant",7,"default"),Q=_(s,"branchName",7),Ce=_(s,"compact",7,!1),$e=_(s,"embedded",7,!1),Z=_(s,"inline",7,!1),G=_(s,"iconOnly",7,!1),R=_(s,"children",7,void 0);const ze=o(()=>V()==="sidebar"?"bg-sidebar hover:bg-sidebar/80":"bg-background hover:bg-muted"),Pe=yt(ce());wt(()=>{Pe.set(ce())});const Xe=Zt(),Je=er(Pe),Ue=tr(),Ye=rr(Pe);let ee=Ct(!1);xt(()=>{je.dispatch(Ut())});function Qe(e){return{id:e.id,label:e.name,shortLabel:e.shortLabel,icon:sr(e),shortcut:e.shortcut,handlerType:e.handlerType,appName:e.appName,category:e.category,iconBase64:e.iconBase64}}const Ze=Qt("externalEditors");let f=o(()=>{const e=se(),d=cr(e,U()).map(Qe),u={id:"other",label:x.ui_openCombo_other_label(),shortLabel:x.ui_openCombo_other_label(),icon:null,faIcon:Bt,handlerType:"generic"},p=[{id:"copy",label:x.ui_openCombo_copyPath_label(),shortLabel:x.ui_openCombo_copy_shortLabel(),icon:null,faIcon:Tt},...Q()?[{id:"copy-branch",label:x.ui_openCombo_copyBranch_label(),shortLabel:x.ui_openCombo_copyBranch_shortLabel(),icon:null,faIcon:Lt}]:[]];return!Ze||!Y()?p:[...d,u,...p]});const pe=o(()=>t(f).some(e=>e.id!=="copy"&&e.id!=="copy-branch")),fe=o(()=>t(f).filter(e=>e.id!=="copy"&&e.id!=="copy-branch")),Se=o(()=>t(f).filter(e=>e.id==="copy"||e.id==="copy-branch")),v=o(()=>t(pe)?t(f).find(e=>e.id===ye())||t(f)[0]:t(f).find(e=>e.id==="copy")||t(f)[0]),Ae=o(()=>t(pe)?x.ui_openCombo_openIn_tooltip({name:t(v).label}):t(v).label);function Ee(){if(de())return k();const e=we()||k().substring(0,k().lastIndexOf("/"));return e?{folder:e,file:k()}:k()}async function Oe(e){if(!k())return;const d=de()?k():k().substring(0,k().lastIndexOf("/"));try{if(e==="copy"){await navigator.clipboard.writeText(or(k())),ve.success(x.ui_openCombo_pathCopied_label());return}if(e==="copy-branch"){Q()&&(await navigator.clipboard.writeText(Q()),ve.success(x.ui_openCombo_branchCopied_label()));return}if(e==="other"){const p=await J("external-editors:open-with-other",{path:d});p?.success?Le(ee,!1):p?.error&&p.error!=="No application selected"&&ve.error(p.error);return}const u=t(f).find(p=>p.id===e);if(!u){Ne.warn(`Unknown action: ${e}`);return}switch(u.handlerType){case"finder":await J("shell:showItemInFolder",{path:d});break;case"vscode":await J("vscode:open",Ee());break;case"jetbrains":await J("jetbrains:open",Ee());break;case"xcode":await J("xcode:open",Ee());break;case"generic":default:{await J("external-editors:open",{editorId:u.id,path:d});break}}}catch(u){Ne.error(`Failed to execute action ${e}:`,u),ve.error(u instanceof Error?u.message:x.ui_openCombo_openFailed_error({name:e}))}}function Fe(e){e.stopPropagation(),Oe(t(v).id)}function et(e){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),Oe(t(v).id))}function Re(e){e.stopPropagation()}function tt(e){je.dispatch(Yt(e)),Oe(e),Le(ee,!1)}var rt={get filePath(){return k()},set filePath(e){k(e),g()},get workspaceId(){return ce()},set workspaceId(e=""){ce(e),g()},get isDirectory(){return de()},set isDirectory(e=!0){de(e),g()},get workspaceFolderPath(){return we()},set workspaceFolderPath(e){we(e),g()},get class(){return xe()},set class(e=""){xe(e),g()},get headerText(){return ue()},set headerText(e){ue(e),g()},get usePortal(){return ke()},set usePortal(e=!0){ke(e),g()},get side(){return Ie()},set side(e="bottom"){Ie(e),g()},get variant(){return V()},set variant(e="default"){V(e),g()},get branchName(){return Q()},set branchName(e){Q(e),g()},get compact(){return Ce()},set compact(e=!1){Ce(e),g()},get embedded(){return $e()},set embedded(e=!1){$e(e),g()},get inline(){return Z()},set inline(e=!1){Z(e),g()},get iconOnly(){return G()},set iconOnly(e=!1){G(e),g()},get children(){return R()},set children(e=void 0){R(e),g()},$set:mt,$on:(e,d)=>vt(s,e,d)},He=N(),ot=m(He);{var at=e=>{var d=he(),u=m(d);{var p=j=>{var F=he(),B=m(F);S(B,()=>Xt,(T,C)=>{C(T,{children:(c,q)=>{var h=he(),$=m(h);S($,()=>qt,(a,i)=>{i(a,{get icon(){return Ve},children:(y,H)=>{var b=fr(),P=oe(b,!0);M(l=>ae(P,l),[()=>x.ui_openCombo_openInApp_tooltip()]),r(y,b)},$$slots:{default:!0}})});var n=z($,2);S(n,()=>Kt,(a,i)=>{i(a,{class:"w-60",children:(y,H)=>{le(y,()=>t(fe))},$$slots:{default:!0}})}),r(c,h)},$$slots:{default:!0}})});var I=z(B,2);S(I,()=>Ge,(T,C)=>{C(T,{})}),r(j,F)};D(u,j=>{t(fe).length&&j(p)})}var te=z(u,2);le(te,()=>t(Se)),r(e,d)},nt=e=>{var d=yr(),u=_e(d);{const p=(F,B)=>{let I=()=>(B?.()).props;var T=N(),C=m(T);{var c=n=>{var a=br();At(a,()=>({role:"button",tabindex:"0",onclick:t(f).length>1?void 0:Fe,onkeydown:t(f).length>1?void 0:et,...t(f).length>1?I():{},class:"cursor-pointer break-words rounded-sm text-inherit underline decoration-muted-foreground/20 underline-offset-2 hover:decoration-current focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:t(Ae)}));var i=_e(a);Me(i,R),me(a),r(n,a)},q=n=>{{let a=o(()=>t(f).length>1?void 0:Fe),i=o(()=>G()&&V()!=="sidebar"?"plain":"ghost"),y=o(()=>G()?V()==="sidebar"?"icon-compact":"icon-sm":void 0),H=o(()=>G()&&V()==="sidebar"&&t(ee)),b=o(()=>!G()),P=o(()=>G()?V()==="sidebar"?ir:"cursor-pointer text-muted-foreground hover:text-foreground focus-visible:text-foreground":"cursor-pointer");ge(n,Te({type:"button",get onclick(){return t(a)}},()=>t(f).length>1?I():{},{get variant(){return t(i)},get size(){return t(y)},get active(){return t(H)},get wrapContent(){return t(b)},get class(){return t(P)},get title(){return t(Ae)},children:(l,A)=>{var W=N(),L=m(W);Me(L,R),r(l,W)},$$slots:{default:!0}}))}},h=n=>{{let a=o(()=>x.ui_openCombo_openInApp_tooltip());ge(n,Te(I,{variant:"ghost-light",size:"icon-xs",get tooltip(){return t(a)},tooltipSide:"bottom",children:(i,y)=>{ne(i,{get icon(){return Ve},size:"xs"})},$$slots:{default:!0}}))}},$=n=>{var a=gr(),i=_e(a);{let b=o(()=>t(f).length>1?"rounded-r-none":""),P=o(()=>t(ze)),l=o(()=>t(pe)?t(Ae):void 0);ge(i,{type:"button",variant:"ghost",size:"sm",get class(){return`gap-1.5 px-2 ${t(b)??""} ${t(P)??""}`},onpointerdown:Re,onkeydown:Re,onclick:Fe,get title(){return t(l)},children:(A,W)=>{var L=mr(),K=m(L);{var re=w=>{var X=_r();M(()=>{Be(X,"src",`data:image/png;base64,${t(v).iconBase64??""}`),Be(X,"alt",t(v).label)}),r(w,X)},it=w=>{const X=o(()=>t(v).icon);var We=N(),pt=m(We);S(pt,()=>t(X),(ft,bt)=>{bt(ft,{size:14})}),r(w,We)},lt=w=>{ne(w,{get icon(){return t(v).faIcon},class:"w-3.5 h-3.5 opacity-60"})},ct=w=>{{let X=o(()=>qe(t(v).category));ne(w,{get icon(){return t(X)},class:"w-3.5 h-3.5 opacity-60"})}};D(K,w=>{t(v).iconBase64?w(re):t(v).icon?w(it,1):t(v).faIcon?w(lt,2):w(ct,-1)})}var dt=z(K,2),ut=oe(dt,!0);M(w=>ae(ut,w),[()=>t(pe)?x.ui_openCombo_open_label():t(v).label]),r(A,L)},$$slots:{default:!0}})}var y=z(i,2);{var H=b=>{{let P=o(()=>x.ui_openCombo_openInApp_tooltip());ge(b,Te(I,{type:"button",variant:"ghost",size:"icon-sm",get"aria-label"(){return t(P)},get class(){return`rounded-l-none border-l border-border ${t(ze)??""}`},children:(l,A)=>{ne(l,{get icon(){return Dt},class:"size-3! text-muted-foreground"})},$$slots:{default:!0}}))}};D(y,b=>{t(f).length>1&&b(H)})}me(a),r(n,a)};D(C,n=>{Z()&&R()?n(c):R()?n(q,1):Ce()?n(h,2):n($,-1)})}r(F,T)},te=F=>{var B=hr(),I=_e(B);{var T=h=>{var $=vr(),n=oe($,!0);M(()=>ae(n,ue())),r(h,$)};D(I,h=>{ue()&&h(T)})}var C=z(I,2);{var c=h=>{var $=he(),n=m($);le(n,()=>t(fe));var a=z(n,2);S(a,()=>Ge,(i,y)=>{y(i,{})}),r(h,$)};D(C,h=>{t(fe).length&&h(c)})}var q=z(C,2);le(q,()=>t(Se)),me(B),r(F,B)};let j=o(()=>Z()&&R()?"contents!":"");Vt(u,{align:"end",get portal(){return ke()},get side(){return Ie()},get class(){return t(j)},get open(){return t(ee)},set open(F){Le(ee,F,!0)},trigger:p,content:te,$$slots:{trigger:!0,content:!0}})}me(d),M(()=>$t(d,1,`${Z()&&R()?"contents":"inline-flex items-center"} ${xe()??""}`)),r(e,d)};D(ot,e=>{$e()?e(at):e(nt,-1)})}r(O,He);var st=kt(rt);return Ke(),st}export{wr as O,sr as a,qe as r,ir as s};
|
|
1
|
+
import{t as _t,bq as _,a_ as D,by as mt,bs as gt,b as vt,bo as x,bu as be,bt as Te}from"./BAqR9jtB.js";import{bs as ht,cd as yt,ca as wt,bk as xt,a7 as N,ay as m,W as r,bn as kt,aA as g,aD as t,bS as z,a5 as _e,bH as Le,bA as me,b_ as M,aB as E,c9 as o,bf as It,bl as oe,bO as ae,bV as Ct}from"./DYhIMPy1.js";import{k as $t,h as Pt,s as Be,c as At}from"./BPk16bSc.js";import{s as Me}from"./DiCMHWTR.js";import{c as S}from"./B2RRuLl5.js";import{cF as Et,bl as Ot,aK as Ft,F as ne,aX as Tt,aL as Lt,bm as Bt,a7 as Ve,av as Dt}from"./DKXEy5Lq.js";import{W as Nt,T as zt,G as St,C as Rt,X as Ht,J as Wt,V as Mt}from"./DD-f8Y3V.js";import{f as ge}from"./C9gP-gRX.js";import{i as Vt}from"./B6Eksue8.js";import{n as Gt,R as jt,r as qt,q as Kt,p as Xt,o as Ge}from"./DO2cS8JO.js";import{n as ve}from"./Bc-8qHYh.js";import{c as Jt}from"./ChTqQfQN.js";import"./7ZJvg7ev.js";import{Hp as je,mp as Ut,Ee as Yt}from"./BSwWMzab.js";import{v as Qt}from"./UuiGcpAE.js";import{i as J}from"./BHqHNrOT.js";import{bn as Zt,b4 as er,b2 as tr}from"./C80u9j_3.js";import{ck as rr}from"./DY6JypjK.js";import{t as or}from"./H2jLkRRS.js";const ar={cursor:Rt,ghostty:St,terminal:zt,warp:Nt},nr={vscode:Mt,jetbrains:Wt,xcode:Ht};function sr(O){return ar[O.id]??nr[O.handlerType]??null}function qe(O){return O==="terminal"?Et:O==="finder"?Ot:Ft}const ir="shrink-0 text-muted-foreground hover:text-foreground focus-visible:text-foreground [&_svg]:size-4",De="finder",lr={id:De,name:"Finder",shortLabel:"Finder",appName:"Finder",category:"finder",handlerType:"finder",installed:!0,priority:0};function cr(O,s=[]){const se=new Set(s),U=O.filter(({installed:Y,id:ye})=>Y&&!se.has(ye));return U.some(({id:Y})=>Y===De)||se.has(De)?U:[...U,lr]}var dr=E('<img alt="" class="size-4"/>'),ur=E('<kbd class="type-caption ml-4 text-muted-foreground" aria-hidden="true"> </kbd>'),pr=E('<span class="min-w-0 flex-1 truncate"> </span> <!>',1),fr=E("<span> </span>"),he=E("<!> <!>",1),br=E("<span><!></span>"),_r=E('<img class="w-4 h-4"/>'),mr=E('<!> <span class="text-muted-foreground"> </span>',1),gr=E('<div class="inline-flex items-stretch rounded-md border border-border" data-open-combo-control=""><!> <!></div>'),vr=E('<div class="type-caption px-2 py-1.5 text-subtle"> </div>'),hr=E('<div class="w-60 max-w-full"><!> <!> <!></div>'),yr=E("<div><!></div>");function wr(O,s){if(new.target)return _t({component:wr,...O});ht(s,!0);const se=()=>be(Je,"$installedEditors$",ie),U=()=>be(Ue,"$hiddenEditorIds$",ie),Y=()=>be(Ye,"$isWorkspaceHostLocal$",ie),ye=()=>be(Xe,"$openAction",ie),[ie,Ke]=gt(),le=(e,d=It)=>{var u=N(),p=m(u);S(p,()=>jt,(te,j)=>{j(te,{get value(){return t(v).id},children:(F,B)=>{var I=N(),T=m(I);Pt(T,17,d,C=>C.id,(C,c)=>{var q=N(),h=m(q);{const $=a=>{var i=N(),y=m(i);{var H=l=>{var A=dr();M(()=>Be(A,"src",`data:image/png;base64,${t(c).iconBase64??""}`)),r(l,A)},b=l=>{const A=o(()=>t(c).icon);var W=N(),L=m(W);S(L,()=>t(A),(K,re)=>{re(K,{size:16})}),r(l,W)},P=l=>{{let A=o(()=>t(c).faIcon??qe(t(c).category));ne(l,{get icon(){return t(A)},class:"size-4 text-muted-foreground"})}};D(y,l=>{t(c).iconBase64?l(H):t(c).icon?l(b,1):l(P,-1)})}r(a,i)};let n=o(()=>!k());S(h,()=>Gt,(a,i)=>{i(a,{get value(){return t(c).id},closeOnSelect:!0,get disabled(){return t(n)},onSelect:()=>tt(t(c).id),get textValue(){return t(c).label},leading:$,children:(y,H)=>{var b=pr(),P=m(b),l=oe(P,!0),A=z(P,2);{var W=L=>{var K=ur(),re=oe(K,!0);M(()=>ae(re,t(c).shortcut)),r(L,K)};D(A,L=>{t(c).shortcut&&L(W)})}M(()=>ae(l,t(c).label)),r(y,b)},$$slots:{leading:!0,default:!0}})})}r(C,q)}),r(F,I)},$$slots:{default:!0}})}),r(e,u)},Ne=Jt("OpenComboButton");let k=_(s,"filePath",7),ce=_(s,"workspaceId",7,""),de=_(s,"isDirectory",7,!0),we=_(s,"workspaceFolderPath",7),xe=_(s,"class",7,""),ue=_(s,"headerText",7),ke=_(s,"usePortal",7,!0),Ie=_(s,"side",7,"bottom"),V=_(s,"variant",7,"default"),Q=_(s,"branchName",7),Ce=_(s,"compact",7,!1),$e=_(s,"embedded",7,!1),Z=_(s,"inline",7,!1),G=_(s,"iconOnly",7,!1),R=_(s,"children",7,void 0);const ze=o(()=>V()==="sidebar"?"bg-sidebar hover:bg-sidebar/80":"bg-background hover:bg-muted"),Pe=yt(ce());wt(()=>{Pe.set(ce())});const Xe=Zt(),Je=er(Pe),Ue=tr(),Ye=rr(Pe);let ee=Ct(!1);xt(()=>{je.dispatch(Ut())});function Qe(e){return{id:e.id,label:e.name,shortLabel:e.shortLabel,icon:sr(e),shortcut:e.shortcut,handlerType:e.handlerType,appName:e.appName,category:e.category,iconBase64:e.iconBase64}}const Ze=Qt("externalEditors");let f=o(()=>{const e=se(),d=cr(e,U()).map(Qe),u={id:"other",label:x.ui_openCombo_other_label(),shortLabel:x.ui_openCombo_other_label(),icon:null,faIcon:Bt,handlerType:"generic"},p=[{id:"copy",label:x.ui_openCombo_copyPath_label(),shortLabel:x.ui_openCombo_copy_shortLabel(),icon:null,faIcon:Tt},...Q()?[{id:"copy-branch",label:x.ui_openCombo_copyBranch_label(),shortLabel:x.ui_openCombo_copyBranch_shortLabel(),icon:null,faIcon:Lt}]:[]];return!Ze||!Y()?p:[...d,u,...p]});const pe=o(()=>t(f).some(e=>e.id!=="copy"&&e.id!=="copy-branch")),fe=o(()=>t(f).filter(e=>e.id!=="copy"&&e.id!=="copy-branch")),Se=o(()=>t(f).filter(e=>e.id==="copy"||e.id==="copy-branch")),v=o(()=>t(pe)?t(f).find(e=>e.id===ye())||t(f)[0]:t(f).find(e=>e.id==="copy")||t(f)[0]),Ae=o(()=>t(pe)?x.ui_openCombo_openIn_tooltip({name:t(v).label}):t(v).label);function Ee(){if(de())return k();const e=we()||k().substring(0,k().lastIndexOf("/"));return e?{folder:e,file:k()}:k()}async function Oe(e){if(!k())return;const d=de()?k():k().substring(0,k().lastIndexOf("/"));try{if(e==="copy"){await navigator.clipboard.writeText(or(k())),ve.success(x.ui_openCombo_pathCopied_label());return}if(e==="copy-branch"){Q()&&(await navigator.clipboard.writeText(Q()),ve.success(x.ui_openCombo_branchCopied_label()));return}if(e==="other"){const p=await J("external-editors:open-with-other",{path:d});p?.success?Le(ee,!1):p?.error&&p.error!=="No application selected"&&ve.error(p.error);return}const u=t(f).find(p=>p.id===e);if(!u){Ne.warn(`Unknown action: ${e}`);return}switch(u.handlerType){case"finder":await J("shell:showItemInFolder",{path:d});break;case"vscode":await J("vscode:open",Ee());break;case"jetbrains":await J("jetbrains:open",Ee());break;case"xcode":await J("xcode:open",Ee());break;case"generic":default:{await J("external-editors:open",{editorId:u.id,path:d});break}}}catch(u){Ne.error(`Failed to execute action ${e}:`,u),ve.error(u instanceof Error?u.message:x.ui_openCombo_openFailed_error({name:e}))}}function Fe(e){e.stopPropagation(),Oe(t(v).id)}function et(e){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),Oe(t(v).id))}function Re(e){e.stopPropagation()}function tt(e){je.dispatch(Yt(e)),Oe(e),Le(ee,!1)}var rt={get filePath(){return k()},set filePath(e){k(e),g()},get workspaceId(){return ce()},set workspaceId(e=""){ce(e),g()},get isDirectory(){return de()},set isDirectory(e=!0){de(e),g()},get workspaceFolderPath(){return we()},set workspaceFolderPath(e){we(e),g()},get class(){return xe()},set class(e=""){xe(e),g()},get headerText(){return ue()},set headerText(e){ue(e),g()},get usePortal(){return ke()},set usePortal(e=!0){ke(e),g()},get side(){return Ie()},set side(e="bottom"){Ie(e),g()},get variant(){return V()},set variant(e="default"){V(e),g()},get branchName(){return Q()},set branchName(e){Q(e),g()},get compact(){return Ce()},set compact(e=!1){Ce(e),g()},get embedded(){return $e()},set embedded(e=!1){$e(e),g()},get inline(){return Z()},set inline(e=!1){Z(e),g()},get iconOnly(){return G()},set iconOnly(e=!1){G(e),g()},get children(){return R()},set children(e=void 0){R(e),g()},$set:mt,$on:(e,d)=>vt(s,e,d)},He=N(),ot=m(He);{var at=e=>{var d=he(),u=m(d);{var p=j=>{var F=he(),B=m(F);S(B,()=>Xt,(T,C)=>{C(T,{children:(c,q)=>{var h=he(),$=m(h);S($,()=>qt,(a,i)=>{i(a,{get icon(){return Ve},children:(y,H)=>{var b=fr(),P=oe(b,!0);M(l=>ae(P,l),[()=>x.ui_openCombo_openInApp_tooltip()]),r(y,b)},$$slots:{default:!0}})});var n=z($,2);S(n,()=>Kt,(a,i)=>{i(a,{class:"w-60",children:(y,H)=>{le(y,()=>t(fe))},$$slots:{default:!0}})}),r(c,h)},$$slots:{default:!0}})});var I=z(B,2);S(I,()=>Ge,(T,C)=>{C(T,{})}),r(j,F)};D(u,j=>{t(fe).length&&j(p)})}var te=z(u,2);le(te,()=>t(Se)),r(e,d)},nt=e=>{var d=yr(),u=_e(d);{const p=(F,B)=>{let I=()=>(B?.()).props;var T=N(),C=m(T);{var c=n=>{var a=br();At(a,()=>({role:"button",tabindex:"0",onclick:t(f).length>1?void 0:Fe,onkeydown:t(f).length>1?void 0:et,...t(f).length>1?I():{},class:"cursor-pointer break-words rounded-sm text-inherit underline decoration-muted-foreground/20 underline-offset-2 hover:decoration-current focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:t(Ae)}));var i=_e(a);Me(i,R),me(a),r(n,a)},q=n=>{{let a=o(()=>t(f).length>1?void 0:Fe),i=o(()=>G()&&V()!=="sidebar"?"plain":"ghost"),y=o(()=>G()?V()==="sidebar"?"icon-compact":"icon-sm":void 0),H=o(()=>G()&&V()==="sidebar"&&t(ee)),b=o(()=>!G()),P=o(()=>G()?V()==="sidebar"?ir:"cursor-pointer text-muted-foreground hover:text-foreground focus-visible:text-foreground":"cursor-pointer");ge(n,Te({type:"button",get onclick(){return t(a)}},()=>t(f).length>1?I():{},{get variant(){return t(i)},get size(){return t(y)},get active(){return t(H)},get wrapContent(){return t(b)},get class(){return t(P)},get title(){return t(Ae)},children:(l,A)=>{var W=N(),L=m(W);Me(L,R),r(l,W)},$$slots:{default:!0}}))}},h=n=>{{let a=o(()=>x.ui_openCombo_openInApp_tooltip());ge(n,Te(I,{variant:"ghost-light",size:"icon-xs",get tooltip(){return t(a)},tooltipSide:"bottom",children:(i,y)=>{ne(i,{get icon(){return Ve},size:"xs"})},$$slots:{default:!0}}))}},$=n=>{var a=gr(),i=_e(a);{let b=o(()=>t(f).length>1?"rounded-r-none":""),P=o(()=>t(ze)),l=o(()=>t(pe)?t(Ae):void 0);ge(i,{type:"button",variant:"ghost",size:"sm",get class(){return`gap-1.5 px-2 ${t(b)??""} ${t(P)??""}`},onpointerdown:Re,onkeydown:Re,onclick:Fe,get title(){return t(l)},children:(A,W)=>{var L=mr(),K=m(L);{var re=w=>{var X=_r();M(()=>{Be(X,"src",`data:image/png;base64,${t(v).iconBase64??""}`),Be(X,"alt",t(v).label)}),r(w,X)},it=w=>{const X=o(()=>t(v).icon);var We=N(),pt=m(We);S(pt,()=>t(X),(ft,bt)=>{bt(ft,{size:14})}),r(w,We)},lt=w=>{ne(w,{get icon(){return t(v).faIcon},class:"w-3.5 h-3.5 opacity-60"})},ct=w=>{{let X=o(()=>qe(t(v).category));ne(w,{get icon(){return t(X)},class:"w-3.5 h-3.5 opacity-60"})}};D(K,w=>{t(v).iconBase64?w(re):t(v).icon?w(it,1):t(v).faIcon?w(lt,2):w(ct,-1)})}var dt=z(K,2),ut=oe(dt,!0);M(w=>ae(ut,w),[()=>t(pe)?x.ui_openCombo_open_label():t(v).label]),r(A,L)},$$slots:{default:!0}})}var y=z(i,2);{var H=b=>{{let P=o(()=>x.ui_openCombo_openInApp_tooltip());ge(b,Te(I,{type:"button",variant:"ghost",size:"icon-sm",get"aria-label"(){return t(P)},get class(){return`rounded-l-none border-l border-border ${t(ze)??""}`},children:(l,A)=>{ne(l,{get icon(){return Dt},class:"size-3! text-muted-foreground"})},$$slots:{default:!0}}))}};D(y,b=>{t(f).length>1&&b(H)})}me(a),r(n,a)};D(C,n=>{Z()&&R()?n(c):R()?n(q,1):Ce()?n(h,2):n($,-1)})}r(F,T)},te=F=>{var B=hr(),I=_e(B);{var T=h=>{var $=vr(),n=oe($,!0);M(()=>ae(n,ue())),r(h,$)};D(I,h=>{ue()&&h(T)})}var C=z(I,2);{var c=h=>{var $=he(),n=m($);le(n,()=>t(fe));var a=z(n,2);S(a,()=>Ge,(i,y)=>{y(i,{})}),r(h,$)};D(C,h=>{t(fe).length&&h(c)})}var q=z(C,2);le(q,()=>t(Se)),me(B),r(F,B)};let j=o(()=>Z()&&R()?"contents!":"");Vt(u,{align:"end",get portal(){return ke()},get side(){return Ie()},get class(){return t(j)},get open(){return t(ee)},set open(F){Le(ee,F,!0)},trigger:p,content:te,$$slots:{trigger:!0,content:!0}})}me(d),M(()=>$t(d,1,`${Z()&&R()?"contents":"inline-flex items-center"} ${xe()??""}`)),r(e,d)};D(ot,e=>{$e()?e(at):e(nt,-1)})}r(O,He);var st=kt(rt);return Ke(),st}export{wr as O,sr as a,qe as r,ir as s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/B6mHy78M.js","/app/immutable/chunks/BSwWMzab.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/DiCMHWTR.js","/app/immutable/chunks/BAqR9jtB.js","/app/immutable/chunks/UuiGcpAE.js","/app/immutable/chunks/C0VJEx2v.js","/app/immutable/chunks/BtAYzBSd.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{t as Kt,bq as Y,a_ as T,by as Gt,bu as D,bs as Nt,b as Qt,bo as i,_ as Jt}from"./BAqR9jtB.js";import{bs as Yt,ca as A,bH as U,c5 as ft,aD as Z,bj as Zt,a5 as C,bS as p,bA as F,b_ as y,W as g,bn as te,cd as tt,bV as _t,c9 as ee,aA as et,bl as q,bO as k,ay as vt,aB as w}from"./DYhIMPy1.js";import{k as xt,l as re}from"./BPk16bSc.js";import{b as se}from"./BaIAhI85.js";import{b as ae}from"./4xlJdO9z.js";import{Hp as u,Bg as ne,B6 as ie,B5 as oe,Hj as le,AT as ce,ib as ue,iC as de}from"./BSwWMzab.js";import{a as pe,T as me,D as fe,L as _e,o as ve}from"./DoCNcHnE.js";import{F as rt,c_ as xe,c7 as he,cW as ge}from"./DKXEy5Lq.js";import{f as ht}from"./C9gP-gRX.js";import{n as G}from"./Bc-8qHYh.js";import"./DiCMHWTR.js";import"./ChTqQfQN.js";import"./7ZJvg7ev.js";import{r as be}from"./DhAv1XMF.js";import{selectScriptById as st,selectScriptRuntime as ye,selectScriptOutput as gt,selectScriptRetainedOutput as ke,selectCanDeleteScript as bt}from"./
|
|
2
|
+
import{t as Kt,bq as Y,a_ as T,by as Gt,bu as D,bs as Nt,b as Qt,bo as i,_ as Jt}from"./BAqR9jtB.js";import{bs as Yt,ca as A,bH as U,c5 as ft,aD as Z,bj as Zt,a5 as C,bS as p,bA as F,b_ as y,W as g,bn as te,cd as tt,bV as _t,c9 as ee,aA as et,bl as q,bO as k,ay as vt,aB as w}from"./DYhIMPy1.js";import{k as xt,l as re}from"./BPk16bSc.js";import{b as se}from"./BaIAhI85.js";import{b as ae}from"./4xlJdO9z.js";import{Hp as u,Bg as ne,B6 as ie,B5 as oe,Hj as le,AT as ce,ib as ue,iC as de}from"./BSwWMzab.js";import{a as pe,T as me,D as fe,L as _e,o as ve}from"./DoCNcHnE.js";import{F as rt,c_ as xe,c7 as he,cW as ge}from"./DKXEy5Lq.js";import{f as ht}from"./C9gP-gRX.js";import{n as G}from"./Bc-8qHYh.js";import"./DiCMHWTR.js";import"./ChTqQfQN.js";import"./7ZJvg7ev.js";import{r as be}from"./DhAv1XMF.js";import{selectScriptById as st,selectScriptRuntime as ye,selectScriptOutput as gt,selectScriptRetainedOutput as ke,selectCanDeleteScript as bt}from"./CbpiaYyP.js";import{g as we}from"./Ccf4dYFA.js";import{bQ as Se,dG as $e,dh as yt}from"./DY6JypjK.js";import"./BRNfUSNR.js";import"./-URcs0EB.js";import"./DH9gMPGd.js";import{c as Ae}from"./B0qtRhuw.js";import{B as kt}from"./C80u9j_3.js";var wt=w("<!> ",1),Ce=w('<div class="bg-danger-background/20 border-y border-danger/20 px-3 py-1.5 flex items-center justify-between"><div class="flex items-center gap-2 text-sm text-danger font-medium"><div class="w-4 h-4 rounded-full bg-danger-background flex items-center justify-center"><!></div> <span> </span></div> <!></div>'),Fe=w('<pre class="retained-text px-3 pb-3 text-xs svelte-115p4sl"> </pre>'),Oe=w('<p class="px-3 pb-3 text-xs text-muted-foreground" role="status"> </p>'),Le=w('<details class="retained-output border-b border-border svelte-115p4sl"><summary class="cursor-pointer px-3 py-2 text-xs text-muted-foreground"> </summary> <p class="px-3 pb-2 text-xs text-muted-foreground"> </p> <!></details>'),Re=w('<div class="px-3 py-1 text-xs text-muted-foreground"> </div>'),Be=w('<code class="text-muted-foreground font-mono text-xs"> </code>'),Ie=w('<div class="flex-1 flex items-center justify-center px-4 py-8"><div class="flex items-center gap-3 text-sm"><span class="text-subtle font-mono">$</span> <!> <!></div></div>'),Te=w('<div><!> <!> <!> <!> <div><div class="xterm-output svelte-115p4sl"></div></div></div>');function De(_,m){if(new.target)return Kt({component:De,..._});Yt(m,!0);const H=()=>D(Bt,"$outputAuthority",O),o=()=>D(Ct,"$runtime$",O),v=()=>D(Ft,"$output$",O),E=()=>D(Rt,"$codeFontFamilyCSS",O),f=()=>D(Ot,"$retainedOutput$",O),St=()=>D(Lt,"$hidesAgentLifecycleActions$",O),at=()=>D(At,"$script$",O),[O,$t]=Nt();let S=Y(m,"scriptId",7),x=Y(m,"workspaceId",7),N=Y(m,"class",7,"");const L=tt(""),j=tt(""),nt=tt("");let Q=_t(!1);A(()=>L.set(x())),A(()=>j.set(S()));let R,n=null,M=null,V=null,P=null,B=null,z=null;const At=st(L,j),Ct=ye(L,j),Ft=gt(L,j),Ot=ke(L,j,nt),Lt=Se(L),Rt=we(),Bt=$e(L),it=crypto.randomUUID();A(()=>{const t=x();return S(),()=>{t&&u.dispatch(ne(t,it))}}),A(()=>{const t=x(),e=S(),s=H(),r=o();if(!s||!t||!e)return;r.status,r.startedAt;const l=crypto.randomUUID();return nt.set(l),U(Q,ft(()=>v().chunks.length===0),!0),u.dispatch(ie(t,e,l)),()=>u.dispatch(oe(t,e,l))});let X=_t(0);const It=ee(()=>o().status==="exited"&&o().exitCode!=null&&o().exitCode!==0&&o().exitCode<128);function Tt(){if(!R||n)return;P=new me(R);const t=P.getCurrentTheme();n=new fe({allowProposedApi:!0,fontFamily:E(),fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!1,cursorStyle:"underline",cursorWidth:1,scrollback:1e4,allowTransparency:!0,convertEol:!0,disableStdin:!0,drawBoldTextInBrightColors:!0,theme:t}),n.attachCustomKeyEventHandler(s=>{const r=s.metaKey||s.ctrlKey;return!(r&&s.key==="`"||r&&s.key==="j"||r&&s.key==="k")}),M=new ve,n.loadAddon(M);const e=new _e((s,r)=>{try{const l=new URL(r);l.hostname==="localhost"||l.hostname==="127.0.0.1"?be(r).then(b=>{Jt(async()=>{const{getPanelLayoutManager:c}=await import("./B6mHy78M.js").then(h=>h.p);return{getPanelLayoutManager:c}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(({getPanelLayoutManager:c})=>{c(x()).openBrowserPanel(b.url,void 0,void 0,b.requestedUrl)}).catch(()=>{window.open(b.url,"_blank")})}):window.open(r,"_blank")}catch{window.open(r,"_blank")}});n.loadAddon(e),n.open(R),P.applyTheme(n),z=requestAnimationFrame(()=>{z=null,M?.fit()}),V=new ResizeObserver(()=>{M?.fit()}),V.observe(R),Dt()}function Dt(){if(!n)return;const t=gt.select(u.state,x(),S());t.chunks.length>0&&n.write(t.chunks.map(e=>e.text).join("")),U(X,t.dropped+t.chunks.length)}function ot(){B!==null&&(cancelAnimationFrame(B),B=null),z!==null&&(cancelAnimationFrame(z),z=null),V?.disconnect(),V=null,P?.dispose(),P=null;const t=n;n=null,M=null,U(X,0),t&&pe(t)}A(()=>{const t=v(),e=ft(()=>Z(X)),s=t.dropped+t.chunks.length;if(!n||s<=e)return;const r=Math.max(e-t.dropped,0);n.write(t.chunks.slice(r).map(l=>l.text).join("")),U(X,s)}),A(()=>{const t=E();n&&n.options.fontFamily!==t&&(n.options.fontFamily=t)});function qt(){u.dispatch(le(x(),S()))}function Et(){if(!x()){G.error(i.terminal_scriptOutput_noWorkspace_error());return}u.dispatch(ue(x(),S(),f()?.text,it))}A(()=>{o().status==="idle"&&v().chunks.length===0&&ot()}),A(()=>{!(o().status==="idle"&&v().chunks.length===0)&&R&&!n&&(B!==null&&cancelAnimationFrame(B),B=requestAnimationFrame(()=>{B=null,Tt()}))}),Zt(()=>{ot()});var Wt={get scriptId(){return S()},set scriptId(t){S(t),et()},get workspaceId(){return x()},set workspaceId(t){x(t),et()},get class(){return N()},set class(t=""){N(t),et()},$set:Gt,$on:(t,e)=>Qt(m,t,e)},K=Te(),lt=C(K);{var jt=t=>{var e=Ce(),s=C(e),r=C(s),l=C(r);rt(l,{get icon(){return xe},size:"xs"}),F(r);var b=p(r,2),c=q(b,!0);F(s);var h=p(s,2);{var $=a=>{ht(a,{variant:"outline",size:"sm",class:"h-7 text-xs bg-background border border-border text-danger",onclick:Et,children:(d,I)=>{var W=wt(),mt=vt(W);rt(mt,{get icon(){return ge},size:"sm",class:"mr-1.5"});var Vt=p(mt);y(Xt=>k(Vt,` ${Xt??""}`),[()=>i.terminal_scriptOutput_askAiToFix_label()]),g(d,W)},$$slots:{default:!0}})};T(h,a=>{St()||a($)})}F(e),y(a=>k(c,a),[()=>i.terminal_scriptOutput_buildFailed_label({exitCode:o().exitCode??0})]),g(t,e)};T(lt,t=>{Z(It)&&t(jt)})}var ct=p(lt,2);{var Mt=t=>{var e=Le(),s=C(e),r=q(s,!0),l=p(s,2),b=q(l,!0),c=p(l,2);{var h=a=>{var d=Fe();let I;var W=q(d,!0);y(()=>{I=re(d,"",I,{"font-family":E()}),k(W,f().text)}),g(a,d)},$=a=>{var d=Oe(),I=q(d,!0);y(W=>k(I,W),[()=>f().status==="loading"?i.terminal_scriptOutput_retainedLoading_label():i.terminal_scriptOutput_retainedUnavailable_label()]),g(a,d)};T(c,a=>{f().status==="available"?a(h):a($,-1)})}F(e),y((a,d)=>{k(r,a),k(b,d)},[()=>i.terminal_scriptOutput_retained_label(),()=>i.terminal_scriptOutput_retained_description()]),ae("open","toggle",e,a=>U(Q,a),()=>Z(Q)),g(t,e)};T(ct,t=>{f()&&t(Mt)})}var ut=p(ct,2);{var Pt=t=>{var e=Re(),s=q(e,!0);y(r=>k(s,r),[()=>i.terminal_scriptOutput_live_label()]),g(t,e)};T(ut,t=>{v().chunks.length>0&&f()&&t(Pt)})}var dt=p(ut,2);{var zt=t=>{var e=Ie(),s=C(e),r=p(C(s),2);{var l=c=>{var h=Be(),$=q(h,!0);y(a=>k($,a),[()=>ce(at())]),g(c,h)};T(r,c=>{at()&&c(l)})}var b=p(r,2);ht(b,{variant:"ghost",size:"xs",onclick:qt,class:"text-muted-foreground hover:text-foreground",children:(c,h)=>{var $=wt(),a=vt($);rt(a,{get icon(){return he},class:"h-3 w-3 mr-1"});var d=p(a);y(I=>k(d,` ${I??""}`),[()=>i.terminal_scriptOutput_run_label()]),g(c,$)},$$slots:{default:!0}}),F(s),F(e),g(t,e)};T(dt,t=>{o().status==="idle"&&v().chunks.length===0&&t(zt)})}var J=p(dt,2);let pt;var Ut=C(J);se(Ut,t=>R=t,()=>R),F(J),F(K),y(()=>{xt(K,1,`script-output-viewer ${N()??""}`,"svelte-115p4sl"),pt=xt(J,1,"flex-1 relative overflow-hidden",null,pt,{hidden:o().status==="idle"&&v().chunks.length===0})}),g(_,K);var Ht=te(Wt);return $t(),Ht}async function ar(_,m,H){const o=st.select(u.state,_,m);if(!o||!H()||!bt.select(u.state,_,m))return;const v=kt(o.runtime?.status),E=yt.select(u.state,_);if(!E){G.error(i.workspace_client_accessChanged_error());return}if(!await Ae({title:i.scripts_delete_title({name:o.name}),description:v?i.scripts_delete_running_description():i.scripts_delete_description(),confirmLabel:i.scripts_delete_label(),destructive:!0}))return;if(E!==yt.select(u.state,_)){G.error(i.workspace_client_accessChanged_error());return}const f=st.select(u.state,_,m);if(!H()||!f||f.createdAt!==o.createdAt||f.name!==o.name||!v&&kt(f.runtime?.status)||!bt.select(u.state,_,m)){G.error(i.scripts_delete_changed_error());return}u.dispatch(de(_,m,i.terminal_quakeOverlay_deleteScriptFailed_error()))}export{De as S,ar as c};
|