@intent-hq/web 2.392.1 → 2.392.3
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/{DotCIVLI.js → -xPMI1SM.js} +1 -1
- package/web/app/immutable/chunks/{x9IQ_8UO.js → 2ZBNrUZy.js} +1 -1
- package/web/app/immutable/chunks/{ByvcSsIj.js → 2bueaerM.js} +1 -1
- package/web/app/immutable/chunks/{AlO3r9jV.js → 4Rh5tdzC.js} +1 -1
- package/web/app/immutable/chunks/{CLX81MHV.js → 6_Ki4zfU.js} +1 -1
- package/web/app/immutable/chunks/{D_YMc8vN.js → 7n-O-xn5.js} +1 -1
- package/web/app/immutable/chunks/{CccfsETL.js → 8ItTOum-.js} +2 -2
- package/web/app/immutable/chunks/{aoX2v33V.js → 9AeivJQm.js} +4 -4
- package/web/app/immutable/chunks/{CngTEvgU.js → A9FjQ4ig.js} +1 -1
- package/web/app/immutable/chunks/{DaTwSOqs.js → B0dqY8Yd.js} +1 -1
- package/web/app/immutable/chunks/{KPBWxwIA.js → B26epB4C.js} +1 -1
- package/web/app/immutable/chunks/B3ZeLze4.js +2 -0
- package/web/app/immutable/chunks/{BSpgPPjp.js → B3sgdO-M.js} +1 -1
- package/web/app/immutable/chunks/{3rqOYBi3.js → B5OK1c9R.js} +1 -1
- package/web/app/immutable/chunks/{OuI4JmWC.js → B5V_Igzh.js} +1 -1
- package/web/app/immutable/chunks/{D0DIeAXH.js → B87xP_ZF.js} +1 -1
- package/web/app/immutable/chunks/{Bwa2n5jC.js → BAbB1JR3.js} +1 -1
- package/web/app/immutable/chunks/{B2frqTj8.js → BC2ymm4x.js} +1 -1
- package/web/app/immutable/chunks/{CUmvnJK5.js → BC7-67A3.js} +1 -1
- package/web/app/immutable/chunks/{KRACSBb9.js → BFMw_Rsu.js} +1 -1
- package/web/app/immutable/chunks/{B97l6Xkk.js → BH56GSiy.js} +1 -1
- package/web/app/immutable/chunks/{CcMCIG6E.js → BHYEUr70.js} +2 -2
- package/web/app/immutable/chunks/{CorT7tdR.js → BLNxuTdw.js} +1 -1
- package/web/app/immutable/chunks/{DQe_5JbW.js → BOnAZ0Bh.js} +1 -1
- package/web/app/immutable/chunks/{CiNmS1jZ.js → BQLNg--d.js} +1 -1
- package/web/app/immutable/chunks/{CdLJ0-dH.js → BRtw-FGJ.js} +1 -1
- package/web/app/immutable/chunks/{BdlwjSpf.js → BSsSTp5c.js} +1 -1
- package/web/app/immutable/chunks/{9AKr1UyY.js → BV3fep4W.js} +1 -1
- package/web/app/immutable/chunks/{C6Af0QaF.js → BWtzEUuh.js} +1 -1
- package/web/app/immutable/chunks/{R3fZBk-k.js → BYanH6N9.js} +1 -1
- package/web/app/immutable/chunks/{vJJtTADX.js → BZNRCsEn.js} +1 -1
- package/web/app/immutable/chunks/{b7gnFN68.js → BafkB9h2.js} +1 -1
- package/web/app/immutable/chunks/BeZe2Rt-.js +4 -0
- package/web/app/immutable/chunks/{DFNKkiho.js → Bex9L_jH.js} +4 -4
- package/web/app/immutable/chunks/{Dp0kLnIL.js → BezBXtqG.js} +1 -1
- package/web/app/immutable/chunks/{DY9w61PC.js → BhD6TCSq.js} +6 -6
- package/web/app/immutable/chunks/{Dvzvnzzu.js → Bhk2u-_3.js} +1 -1
- package/web/app/immutable/chunks/{CGJ5yTzR.js → BipAYtG2.js} +3 -3
- package/web/app/immutable/chunks/{i2Q0D3-m.js → BptF1xOU.js} +1 -1
- package/web/app/immutable/chunks/{CUiYYsIq.js → BrCVQoPE.js} +1 -1
- package/web/app/immutable/chunks/{CJItvMq2.js → BrLVGrLO.js} +1 -1
- package/web/app/immutable/chunks/{50HYkjWD.js → Bsnum5pm.js} +3 -3
- package/web/app/immutable/chunks/{FS0kRzLP.js → BtOGFmaT.js} +1 -1
- package/web/app/immutable/chunks/{z2uEgbos.js → BtmdpA7S.js} +1 -1
- package/web/app/immutable/chunks/{CzK_7_Jd.js → By6WkvE9.js} +1 -1
- package/web/app/immutable/chunks/{DmtYsVlu.js → Bz-Q0sJs.js} +2 -2
- package/web/app/immutable/chunks/{vq6mxGLA.js → BzZzhsx0.js} +1 -1
- package/web/app/immutable/chunks/{DbB491_u.js → C1UoJPr2.js} +1 -1
- package/web/app/immutable/chunks/{oM2TfoNE.js → C2KrJl1V.js} +1 -1
- package/web/app/immutable/chunks/{DTbyG794.js → C3L7kk5u.js} +1 -1
- package/web/app/immutable/chunks/{BJEFEyAm.js → C6O8IM8T.js} +1 -1
- package/web/app/immutable/chunks/{BwFe8eI9.js → C8XfkHlI.js} +1 -1
- package/web/app/immutable/chunks/{KvfW-q1N.js → CCMvmg57.js} +1 -1
- package/web/app/immutable/chunks/CDCAMh6o.js +1 -0
- package/web/app/immutable/chunks/{D8MIwtpL.js → CDUwgFl9.js} +1 -1
- package/web/app/immutable/chunks/{D_R1vNH8.js → CE7ZckmT.js} +1 -1
- package/web/app/immutable/chunks/{gXHlCg5O.js → CKa70XGN.js} +1 -1
- package/web/app/immutable/chunks/{rmHQzJ1a.js → CKzjrq__.js} +1 -1
- package/web/app/immutable/chunks/{DDDvNwR-.js → CN7DE5jB.js} +1 -1
- package/web/app/immutable/chunks/{D-j7vD5Z.js → CNKJ8_Xr.js} +1 -1
- package/web/app/immutable/chunks/{CPNOsHfj.js → CO-JfYA5.js} +1 -1
- package/web/app/immutable/chunks/{CCyGGl6b.js → CPgSaaZt.js} +1 -1
- package/web/app/immutable/chunks/{BVBh582U.js → CQmOm-Tm.js} +1 -1
- package/web/app/immutable/chunks/{DvdITStP.js → CQzFriMx.js} +1 -1
- package/web/app/immutable/chunks/{BlVpCoL1.js → CTGxPVh7.js} +1 -1
- package/web/app/immutable/chunks/{BDRM-DVo.js → CVCwKAMk.js} +1 -1
- package/web/app/immutable/chunks/{DNup87JQ.js → CVG625sB.js} +1 -1
- package/web/app/immutable/chunks/{H8hIaDaV.js → CcUDp4zq.js} +1 -1
- package/web/app/immutable/chunks/{r4dmBxo_.js → Ce20e-vK.js} +1 -1
- package/web/app/immutable/chunks/Ce2Qo9vu.js +3 -0
- package/web/app/immutable/chunks/{PejVYY2W.js → Cf5NbMeL.js} +3 -3
- package/web/app/immutable/chunks/{CY56l_5k.js → CfOrhDjV.js} +1 -1
- package/web/app/immutable/chunks/{DTNrtzyx.js → Cim9mWY1.js} +1 -1
- package/web/app/immutable/chunks/{DIxibpTv.js → Cks1DUg1.js} +1 -1
- package/web/app/immutable/chunks/{CDcxODgf.js → CnDbx_Wj.js} +1 -1
- package/web/app/immutable/chunks/{DznISJQO.js → CnDy2OA4.js} +1 -1
- package/web/app/immutable/chunks/{Bp6DusVC.js → Cp9hDo50.js} +1 -1
- package/web/app/immutable/chunks/{ciQFmiC4.js → Cs3vMbTn.js} +1 -1
- package/web/app/immutable/chunks/{0TbppU-W.js → Ct1r6efw.js} +2 -2
- package/web/app/immutable/chunks/{CpT48V2z.js → Cy5LTcPz.js} +1 -1
- package/web/app/immutable/chunks/{RqSv1iWX.js → CyUokemm.js} +1 -1
- package/web/app/immutable/chunks/{gX9ZnDRD.js → D1Tekuc4.js} +1 -1
- package/web/app/immutable/chunks/{pQalwNsE.js → D2Jd8tc3.js} +1 -1
- package/web/app/immutable/chunks/{Cdw7QKyr.js → D80ng7VB.js} +3 -3
- package/web/app/immutable/chunks/{CWS5g6aA.js → D9OezaF9.js} +1 -1
- package/web/app/immutable/chunks/{BUPWY1pO.js → DDhuJH-4.js} +1 -1
- package/web/app/immutable/chunks/{WWq3hijy.js → DEOVFEjx.js} +1 -1
- package/web/app/immutable/chunks/{Bhul7r_Y.js → DEuuzjmM.js} +1 -1
- package/web/app/immutable/chunks/{DaTkisKB.js → DEykPUjl.js} +1 -1
- package/web/app/immutable/chunks/{DdYVblGk.js → DFh2QzKR.js} +1 -1
- package/web/app/immutable/chunks/{BB5TUToP.js → DGMKnMeG.js} +2 -2
- package/web/app/immutable/chunks/{DEsM7h8K.js → DIHHBzYi.js} +2 -2
- package/web/app/immutable/chunks/{CcBmcC9f.js → DIUdGij-.js} +2 -2
- package/web/app/immutable/chunks/{BTE0066U.js → DJDA_1H4.js} +1 -1
- package/web/app/immutable/chunks/{B0oQ37UY.js → DQxnu3QZ.js} +1 -1
- package/web/app/immutable/chunks/{CEqrck_t.js → DRpk7IAR.js} +1 -1
- package/web/app/immutable/chunks/{a3O-Ns1M.js → DUbqvr_K.js} +1 -1
- package/web/app/immutable/chunks/{BPFSAjsd.js → DVSwhvvP.js} +7 -7
- package/web/app/immutable/chunks/{QKQvZF-2.js → DVqhJMup.js} +2 -2
- package/web/app/immutable/chunks/{CeHL-3WK.js → DWOcsYbU.js} +1 -1
- package/web/app/immutable/chunks/{DuFY1gwd.js → DWurigib.js} +4 -4
- package/web/app/immutable/chunks/{DTco_120.js → D__LL1n8.js} +1 -1
- package/web/app/immutable/chunks/{BS9LmSp_.js → DccCxKmZ.js} +1 -1
- package/web/app/immutable/chunks/{CSzXeH2S.js → DdpYiyRs.js} +1 -1
- package/web/app/immutable/chunks/{7zxUzaYz.js → DeJMgdsa.js} +1 -1
- package/web/app/immutable/chunks/{B9NjB9vD.js → DgzWQmDb.js} +1 -1
- package/web/app/immutable/chunks/{DIME5LWK.js → DimbKbDZ.js} +2 -2
- package/web/app/immutable/chunks/{BvByaKKp.js → DjyYYXwz.js} +1 -1
- package/web/app/immutable/chunks/{CRFyRwf-.js → DlbHdfKY.js} +1 -1
- package/web/app/immutable/chunks/{C7MFACZg.js → DqQqeuqi.js} +1 -1
- package/web/app/immutable/chunks/{BSMi55yC.js → DthJR85Z.js} +1 -1
- package/web/app/immutable/chunks/{BUF0WvAS.js → DtqJUfJC.js} +1 -1
- package/web/app/immutable/chunks/{DYzxLuOL.js → DvXSJM4q.js} +1 -1
- package/web/app/immutable/chunks/{B6wkNYPs.js → DxZIPHU6.js} +1 -1
- package/web/app/immutable/chunks/{Ct0fN4Lt.js → DyrDaCZi.js} +1 -1
- package/web/app/immutable/chunks/{D6EyZ2rd.js → Dz-57yVz.js} +1 -1
- package/web/app/immutable/chunks/{DL__HI6l.js → DzR2lw_C.js} +1 -1
- package/web/app/immutable/chunks/{DUcJILSg.js → ERz1iYnn.js} +1 -1
- package/web/app/immutable/chunks/{C9iwh4F-.js → Egi6fNpS.js} +1 -1
- package/web/app/immutable/chunks/{DdU2snxg.js → FTRClsUK.js} +1 -1
- package/web/app/immutable/chunks/{CBQrOO2t.js → L9YD-wcw.js} +1 -1
- package/web/app/immutable/chunks/{CQClkuxa.js → O8yKLCWC.js} +1 -1
- package/web/app/immutable/chunks/{B9ZgGXDm.js → PAEJNClQ.js} +1 -1
- package/web/app/immutable/chunks/{DA3tGWzX.js → PZ5MSUIU.js} +1 -1
- package/web/app/immutable/chunks/{DqCgFTqN.js → QnRBGtVu.js} +1 -1
- package/web/app/immutable/chunks/{f0WUpIfB.js → RGi81mvu.js} +1 -1
- package/web/app/immutable/chunks/{CA5vNvRD.js → VeOG7xIg.js} +3 -3
- package/web/app/immutable/chunks/XAL8NtHj.js +1 -0
- package/web/app/immutable/chunks/{CPav-V5t.js → YClu3XTz.js} +2 -2
- package/web/app/immutable/chunks/{CtzbB_EQ.js → ZspDMNEv.js} +1 -1
- package/web/app/immutable/chunks/{Cp4SiU7R.js → _aw8AL2s.js} +1 -1
- package/web/app/immutable/chunks/{CRIoGx5T.js → edaGtK2z.js} +1 -1
- package/web/app/immutable/chunks/{Dgvdn_ax.js → g2j4hm88.js} +1 -1
- package/web/app/immutable/chunks/{ZIePA90q.js → gdhW58MB.js} +3 -3
- package/web/app/immutable/chunks/{CPmXQBUf.js → n1INJGMs.js} +1 -1
- package/web/app/immutable/chunks/{BvvIG-FE.js → nUY7GyaZ.js} +1 -1
- package/web/app/immutable/chunks/{C9DStJW1.js → q9gf_Sso.js} +1 -1
- package/web/app/immutable/chunks/{CewZlXwy.js → u-Z99Ptk.js} +1 -1
- package/web/app/immutable/chunks/{BE3g5vcj.js → uQRHnH1Z.js} +1 -1
- package/web/app/immutable/chunks/{Dhs7RSq9.js → wsIl6ydR.js} +1 -1
- package/web/app/immutable/chunks/{C13CRqsS.js → yus24-dF.js} +1 -1
- package/web/app/immutable/chunks/zdzlwKoA.js +1 -0
- package/web/app/immutable/entry/{app.Dh0FLLBd.js → app.DBKLYfDG.js} +2 -2
- package/web/app/immutable/entry/start.DyzI50m5.js +1 -0
- package/web/app/immutable/nodes/{0.BlcS-Hyh.js → 0.Dr_KMFP9.js} +1 -1
- package/web/app/immutable/nodes/{1.BMTchPFq.js → 1.B4UC5y6C.js} +1 -1
- package/web/app/immutable/nodes/{10.CfDNhRgU.js → 10.D-SXaVii.js} +1 -1
- package/web/app/immutable/nodes/{11.CxSRkGHD.js → 11.CD0ZMPB_.js} +1 -1
- package/web/app/immutable/nodes/{15.DCpm4k7K.js → 15.CWhAy0IL.js} +1 -1
- package/web/app/immutable/nodes/{19.C2T81__z.js → 19.Cl4NIDR3.js} +2 -2
- package/web/app/immutable/nodes/{2.1iJIAnw5.js → 2.DgYKd6eT.js} +1 -1
- package/web/app/immutable/nodes/{20.BHRuLw4-.js → 20.gu-VpWFh.js} +1 -1
- package/web/app/immutable/nodes/{3.BDDby9Gq.js → 3.Cz3D2Kq7.js} +1 -1
- package/web/app/immutable/nodes/{4.utfN0vdd.js → 4.CjaUjxEb.js} +1 -1
- package/web/app/immutable/nodes/{5.Z6w8za6J.js → 5.COJH7IAv.js} +1 -1
- package/web/app/immutable/nodes/{6.w_k_ibWb.js → 6.Da5DOHiE.js} +1 -1
- package/web/app/immutable/nodes/{7.I-q-I1bs.js → 7.dcDATK47.js} +1 -1
- package/web/app/immutable/nodes/{8.BgjULPKU.js → 8.C2qio8n9.js} +1 -1
- package/web/app/immutable/nodes/{9.DOkmR0cl.js → 9.CjfzK0IK.js} +2 -2
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/BuM8LV7z.js +0 -4
- package/web/app/immutable/chunks/DejjV5ft.js +0 -1
- package/web/app/immutable/chunks/DivmpPFQ.js +0 -1
- package/web/app/immutable/chunks/DlnCrS3y.js +0 -2
- package/web/app/immutable/chunks/MFTfhUYi.js +0 -1
- package/web/app/immutable/chunks/Xr-aTNRN.js +0 -3
- package/web/app/immutable/entry/start.IMZH36aM.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aR as Q,e as ke,aK as oe,bM as ie,bL as le,ad as Ie,a0 as Ce,a2 as Te,H as Ae,aQ as Me,aJ as Pe,bs as pe,cd as $e,c5 as ae,ca as me,bV as O,br as Fe,cb as He,aD as r,bH as y,a5 as L,a7 as Z,ay as ee,W as w,bA as D,bS as V,b_ as N,bn as _e,c9 as J,aA as A,aB as B,bl as U,be as de,b$ as ce,bO as R}from"./3SdAC2_C.js";import{t as ge,bo as M,bw as be,bs as X,bq as Ee,b as ye,bm as z}from"./Fcr7AvC-.js";import{i as re}from"./BhYXv0ZM.js";import{c as ue}from"./2z64ELW5.js";import{s as Le}from"./BRCr02in.js";import{t as Y}from"./BCw-LKCu.js";import{f as fe}from"./Beq_QLuz.js";import"./BAtAwQ72.js";import{k as De}from"./Cc0763mU.js";import{t as We}from"./CWfjuhY2.js";import{JH as ve,t_ as Se,pj as Re}from"./D0qhIm1r.js";import{s as ze,W as Ne}from"./
|
|
1
|
+
import{aR as Q,e as ke,aK as oe,bM as ie,bL as le,ad as Ie,a0 as Ce,a2 as Te,H as Ae,aQ as Me,aJ as Pe,bs as pe,cd as $e,c5 as ae,ca as me,bV as O,br as Fe,cb as He,aD as r,bH as y,a5 as L,a7 as Z,ay as ee,W as w,bA as D,bS as V,b_ as N,bn as _e,c9 as J,aA as A,aB as B,bl as U,be as de,b$ as ce,bO as R}from"./3SdAC2_C.js";import{t as ge,bo as M,bw as be,bs as X,bq as Ee,b as ye,bm as z}from"./Fcr7AvC-.js";import{i as re}from"./BhYXv0ZM.js";import{c as ue}from"./2z64ELW5.js";import{s as Le}from"./BRCr02in.js";import{t as Y}from"./BCw-LKCu.js";import{f as fe}from"./Beq_QLuz.js";import"./BAtAwQ72.js";import{k as De}from"./Cc0763mU.js";import{t as We}from"./CWfjuhY2.js";import{JH as ve,t_ as Se,pj as Re}from"./D0qhIm1r.js";import{s as ze,W as Ne}from"./RGi81mvu.js";import{i as Oe,n as Be,d as je}from"./DFh2QzKR.js";import{u as qe,s as Ve,n as Je,v as Ge}from"./DzR2lw_C.js";function yt(i,n){let e=null,u=Q;var v;if(Q){e=Me;for(var s=Pe(document.head);s!==null&&(s.nodeType!==ke||s.data!==i);)s=oe(s);if(s===null)ie(!1);else{var p=oe(s);s.remove(),le(p)}}Q||(v=document.head.appendChild(Ie()));try{Ce(()=>{var l=Te(()=>n(v));l.f|=Ae,Q||(l.nodes===null?l.nodes={start:v,end:v,a:null,t:null}:l.nodes.end=v)})}finally{u&&(ie(!0),le(e))}}const we=3e4,Ke=3;function G(i){return i.type==="browser"&&typeof i.ownerAgentId=="string"&&i.ownerAgentId.length>0}function wt(i,n,e,u,v){return i?Xe(new Map,n,e,u,v):new Map}const Qe={ttlMs:we,maxInactiveTabs:Ke};function Ue(i={}){return{...Qe,...i}}function ht(i,n){if(i.size!==n.size)return!1;for(const[e,u]of i)if(n.get(e)!==u)return!1;return!0}function Xe(i,n,e,u,v){const{ttlMs:s,maxInactiveTabs:p}=Ue(v),l=new Set(n.map(a=>a.id)),d=new Set(n.filter(a=>a.type==="browser").map(a=>a.id)),m=new Set(n.filter(G).map(a=>a.id)),c=new Map;for(const[a,k]of i)l.has(a)&&c.set(a,k);e&&l.has(e)&&c.set(e,u);for(const a of m)c.has(a)||c.set(a,u);for(const[a,k]of c)a!==e&&!d.has(a)&&u-k>=s&&c.delete(a);const g=Array.from(c.entries()).filter(([a])=>a!==e&&!d.has(a)).sort(([,a],[,k])=>a-k);for(;g.length>p;){const a=g.shift();a&&c.delete(a[0])}return c}function xt(i,n,e,u=we,v=[]){const s=new Set(v.filter(l=>l.type==="browser").map(l=>l.id));let p=null;for(const[l,d]of i){if(l===n||s.has(l))continue;const m=Math.max(0,u-(e-d));p=p===null?m:Math.min(p,m)}return p}var Ye=B('<div class="absolute inset-0 z-10 overflow-hidden bg-background"><!></div>'),Ze=B('<div class="relative flex h-full min-h-0 w-full flex-col" data-workspace-home-panel-gate=""><div class="flex min-h-0 w-full flex-1 flex-col"><!></div> <!></div>');function he(i,n){if(new.target)return ge({component:he,...i});pe(n,!0);const e=()=>X(a,"$view$",p),u=()=>X(K,"$loaded$",p),v=()=>X(k,"$canMove$",p),s=()=>X(W,"$waiting$",p),[p,l]=Ee();let d=M(n,"workspaceId",7),m=M(n,"children",7),c=M(n,"clock",23,()=>Date.now);const g=$e(ae(()=>d()));me(()=>{g.set(d())});const a=qe(g),k=Ve(g),W=Je(g),K=Ge(g),S=J(e);let P=O(Fe(Oe)),j=O(!1);ze({markContentLoaded:()=>{y(j,!0)}}),He(()=>{const o={workspaceId:d(),loaded:u(),unavailable:r(S)?.unavailable===!0,contentLoaded:r(j),now:c()()},f=Be(ae(()=>r(P)),o);f.generation!==ae(()=>r(P)).generation&&y(j,!1),y(P,f,!0)});var te={get workspaceId(){return d()},set workspaceId(o){d(o),A()},get children(){return m()},set children(o){m(o),A()},get clock(){return c()},set clock(o=Date.now){c(o),A()},$set:be,$on:(o,f)=>ye(n,o,f)},q=Ze(),t=L(q),h=L(t);De(h,()=>r(P).generation,o=>{var f=Z(),I=ee(f);We(I,m),w(o,f)}),D(t);var $=V(t,2);{var C=o=>{var f=Ye(),I=L(f);Ne(I,{get view(){return r(S)},get canMove(){return v()},get waiting(){return s()},onWait:()=>ve.dispatch(Re(d())),onMove:()=>ve.dispatch(Se(d()))}),D(f),w(o,f)};re($,o=>{r(S)?.unavailable&&o(C)})}D(q),N(()=>t.inert=r(S)?.unavailable?!0:void 0),w(i,q);var F=_e(te);return l(),F}var et=B('<div class="flex h-full flex-col items-center justify-center gap-3 text-subtle"><p> </p> <!></div>'),tt=B('<div class="flex h-full w-full items-center justify-center" role="status"><div class="size-5 animate-pulse rounded-full bg-muted motion-reduce:animate-none"></div></div>'),at=B('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><div class="text-center"><p class="text-lg font-medium text-foreground"> </p> <p class="text-sm"> </p> <p class="text-xs mt-4 text-subtle"> </p> <!></div></div>'),rt=B('<div class="panel-content-renderer h-full w-full overflow-hidden svelte-1ed760w"><!></div>');function nt(i,n){if(new.target)return ge({component:nt,...i});pe(n,!0);let e=M(n,"tab",7),u=M(n,"workspaceId",7),v=M(n,"layoutId",7),s=M(n,"isActive",7,!0),p=M(n,"isPanelFocused",7,!1),l=M(n,"onFocus",7),d=O(0),m=O(null),c=O(void 0),g=O(!1);const a=J(()=>(r(d),Y.get(e().type))),k=J(()=>(r(d),Y.getLoadedComponent(e().type))),W=J(()=>r(m)===e().type&&r(c)?r(c):s()||G(e())?r(k):void 0);me(()=>{const t=e().type,$=s()||G(e()),C=r(d),F=r(a),o=r(k);let f=!1;if((!F||r(m)!==t)&&(y(m,null),y(c,void 0),y(g,!1)),!(!F||!$)){if(o){y(m,t,!0),y(c,o,!0);return}if(!(r(m)===t&&r(c)))return y(g,!1),Y.loadComponent(t).then(I=>{f||!s()&&!G(e())||e().type!==t||r(d)!==C||(y(m,t,!0),y(c,I,!0))},()=>{f||!s()&&!G(e())||e().type!==t||r(d)!==C||y(g,!0)}),()=>{f=!0}}});function K(){Y.resetComponentLoad(e().type),y(d,r(d)+1)}var S={get tab(){return e()},set tab(t){e(t),A()},get workspaceId(){return u()},set workspaceId(t){u(t),A()},get layoutId(){return v()},set layoutId(t){v(t),A()},get isActive(){return s()},set isActive(t=!0){s(t),A()},get isPanelFocused(){return p()},set isPanelFocused(t=!1){p(t),A()},get onFocus(){return l()},set onFocus(t){l(t),A()},$set:be,$on:(t,h)=>ye(n,t,h)},P=rt(),j=L(P);{var te=t=>{var h=Z(),$=ee(h);{var C=_=>{he(_,{get workspaceId(){return u()},children:(b,x)=>{var T=Z(),H=ee(T);ue(H,()=>r(W),(E,ne)=>{ne(E,{get tab(){return e()},get workspaceId(){return u()},get layoutId(){return v()},get isActive(){return s()},get isPanelFocused(){return p()},get onFocus(){return l()}})}),w(b,T)},$$slots:{default:!0}})},F=J(()=>r(W)&&je(e())),o=_=>{var b=Z(),x=ee(b);ue(x,()=>r(W),(T,H)=>{H(T,{get tab(){return e()},get workspaceId(){return u()},get layoutId(){return v()},get isActive(){return s()},get isPanelFocused(){return p()},get onFocus(){return l()}})}),w(_,b)},f=_=>{var b=et(),x=L(b),T=U(x,!0),H=V(x,2);fe(H,{variant:"outline",size:"sm",onclick:K,children:(E,ne)=>{de();var se=ce();N(xe=>R(se,xe),[()=>z.ui_errorToast_retry_label()]),w(E,se)},$$slots:{default:!0}}),D(b),N(E=>R(T,E),[()=>z.error_boundary_title()]),w(_,b)},I=_=>{var b=tt();N(x=>Le(b,"aria-label",x),[()=>z.workspace_hoverCard_loading_label()]),w(_,b)};re($,_=>{r(F)?_(C):r(W)?_(o,1):s()&&r(g)?_(f,2):s()&&_(I,3)})}w(t,h)},q=t=>{var h=at(),$=L(h),C=L($),F=U(C,!0),o=V(C,2),f=U(o,!0),I=V(o,2),_=U(I,!0),b=V(I,2);fe(b,{class:"mt-4",variant:"outline",size:"sm",onclick:K,children:(x,T)=>{de();var H=ce();N(E=>R(H,E),[()=>z.ui_errorToast_retry_label()]),w(x,H)},$$slots:{default:!0}}),D($),D(h),N((x,T)=>{R(F,e().title),R(f,x),R(_,T)},[()=>z.layout_panelContent_typeLabel({type:e().type}),()=>z.layout_panelContent_notImplemented_label()]),w(t,h)};re(j,t=>{r(a)?t(te):t(q,-1)})}return D(P),w(i,P),_e(S)}export{Ke as M,we as P,he as W,nt as a,ht as b,xt as g,yt as h,wt as i,Xe as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as bt,bo as b,bw as _t,bq as gt,b as vt,bm as x,bs as me,br as Te}from"./Fcr7AvC-.js";import{bs as ht,cd as yt,ca as wt,bk as xt,a7 as L,ay as _,W as r,bn as It,aA as g,aD as t,bS as N,a5 as be,bH as Be,bA as _e,b_ as W,aB as E,c9 as o,bf as kt,bl as oe,bO as ae,bV as Ct}from"./3SdAC2_C.js";import{i as z}from"./BhYXv0ZM.js";import{g as $t}from"./CA6H1-bp.js";import{t as We}from"./CWfjuhY2.js";import{c as S}from"./2z64ELW5.js";import{f as Pt,s as De,b as At}from"./BRCr02in.js";import{cK as Et,bn as Ot,aM as Ft,F as ne,aZ as Tt,aN as Bt,bo as Dt,a8 as Ge,aw as Lt}from"./ChHRVjww.js";import{W as Nt,T as zt,G as St,C as Rt,X as Ht,J as Mt,V as Wt}from"./Ce-va2I0.js";import{f as ge}from"./Beq_QLuz.js";import"./BAtAwQ72.js";import{D as Gt}from"./C8OXQeb2.js";import{g as Vt,R as jt,k as Kt,j as Jt,i as qt,h as Ve}from"./D7KhILhs.js";import{m as ve}from"./DkQdSPDN.js";import{c as Ut}from"./ChTqQfQN.js";import"./DRMe5Ypb.js";import{JH as je,ni as Xt,Gl as Yt}from"./D0qhIm1r.js";import{w as Zt}from"./Bqd7fdCF.js";import{i as U}from"./CL3a4Hm1.js";import{b2 as Qt,aM as er,aK as tr}from"./DlnCrS3y.js";import{cB as rr}from"./cD292w1o.js";import{t as or}from"./H2jLkRRS.js";const ar={cursor:Rt,ghostty:St,terminal:zt,warp:Nt},nr={vscode:Wt,jetbrains:Mt,xcode:Ht};function sr(O){return ar[O.id]??nr[O.handlerType]??null}function Ke(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",Le="finder",lr={id:Le,name:"Finder",shortLabel:"Finder",appName:"Finder",category:"finder",handlerType:"finder",installed:!0,priority:0};function cr(O,s=[]){const se=new Set(s),X=O.filter(({installed:Y,id:ye})=>Y&&!se.has(ye));return X.some(({id:Y})=>Y===Le)||se.has(Le)?X:[...X,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),mr=E("<span><!></span>"),br=E('<img class="w-4 h-4"/>'),_r=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 bt({component:wr,...O});ht(s,!0);const se=()=>me(Ue,"$installedEditors$",ie),X=()=>me(Xe,"$hiddenEditorIds$",ie),Y=()=>me(Ye,"$isWorkspaceHostLocal$",ie),ye=()=>me(qe,"$openAction",ie),[ie,Je]=gt(),le=(e,d=kt)=>{var u=L(),p=_(u);S(p,()=>jt,(te,j)=>{j(te,{get value(){return t(v).id},children:(F,D)=>{var k=L(),T=_(k);$t(T,17,d,C=>C.id,(C,c)=>{var K=L(),h=_(K);{const $=a=>{var i=L(),y=_(i);{var H=l=>{var A=dr();W(()=>De(A,"src",`data:image/png;base64,${t(c).iconBase64??""}`)),r(l,A)},m=l=>{const A=o(()=>t(c).icon);var M=L(),B=_(M);S(B,()=>t(A),(J,re)=>{re(J,{size:16})}),r(l,M)},P=l=>{{let A=o(()=>t(c).faIcon??Ke(t(c).category));ne(l,{get icon(){return t(A)},class:"size-4 text-muted-foreground"})}};z(y,l=>{t(c).iconBase64?l(H):t(c).icon?l(m,1):l(P,-1)})}r(a,i)};let n=o(()=>!I());S(h,()=>Vt,(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 m=pr(),P=_(m),l=oe(P,!0),A=N(P,2);{var M=B=>{var J=ur(),re=oe(J,!0);W(()=>ae(re,t(c).shortcut)),r(B,J)};z(A,B=>{t(c).shortcut&&B(M)})}W(()=>ae(l,t(c).label)),r(y,m)},$$slots:{leading:!0,default:!0}})})}r(C,K)}),r(F,k)},$$slots:{default:!0}})}),r(e,u)},Ne=Ut("OpenComboButton");let I=b(s,"filePath",7),ce=b(s,"workspaceId",7,""),de=b(s,"isDirectory",7,!0),we=b(s,"workspaceFolderPath",7),xe=b(s,"class",7,""),ue=b(s,"headerText",7),Ie=b(s,"usePortal",7,!0),ke=b(s,"side",7,"bottom"),G=b(s,"variant",7,"default"),Z=b(s,"branchName",7),Ce=b(s,"compact",7,!1),$e=b(s,"embedded",7,!1),Q=b(s,"inline",7,!1),V=b(s,"iconOnly",7,!1),R=b(s,"children",7,void 0);const ze=o(()=>G()==="sidebar"?"bg-sidebar hover:bg-sidebar/80":"bg-background hover:bg-muted"),Pe=yt(ce());wt(()=>{Pe.set(ce())});const qe=Qt(),Ue=er(Pe),Xe=tr(),Ye=rr(Pe);let ee=Ct(!1);xt(()=>{je.dispatch(Xt())});function Ze(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 Qe=Zt("externalEditors");let f=o(()=>{const e=se(),d=cr(e,X()).map(Ze),u={id:"other",label:x.ui_openCombo_other_label(),shortLabel:x.ui_openCombo_other_label(),icon:null,faIcon:Dt,handlerType:"generic"},p=[{id:"copy",label:x.ui_openCombo_copyPath_label(),shortLabel:x.ui_openCombo_copy_shortLabel(),icon:null,faIcon:Tt},...Z()?[{id:"copy-branch",label:x.ui_openCombo_copyBranch_label(),shortLabel:x.ui_openCombo_copyBranch_shortLabel(),icon:null,faIcon:Bt}]:[]];return!Qe||!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 I();const e=we()||I().substring(0,I().lastIndexOf("/"));return e?{folder:e,file:I()}:I()}async function Oe(e){if(!I())return;const d=de()?I():I().substring(0,I().lastIndexOf("/"));try{if(e==="copy"){await navigator.clipboard.writeText(or(I())),ve.success(x.ui_openCombo_pathCopied_label());return}if(e==="copy-branch"){Z()&&(await navigator.clipboard.writeText(Z()),ve.success(x.ui_openCombo_branchCopied_label()));return}if(e==="other"){const p=await U("external-editors:open-with-other",{path:d});p?.success?Be(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 U("shell:showItemInFolder",{path:d});break;case"vscode":await U("vscode:open",Ee());break;case"jetbrains":await U("jetbrains:open",Ee());break;case"xcode":await U("xcode:open",Ee());break;case"generic":default:{await U("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),Be(ee,!1)}var rt={get filePath(){return I()},set filePath(e){I(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 Ie()},set usePortal(e=!0){Ie(e),g()},get side(){return ke()},set side(e="bottom"){ke(e),g()},get variant(){return G()},set variant(e="default"){G(e),g()},get branchName(){return Z()},set branchName(e){Z(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 Q()},set inline(e=!1){Q(e),g()},get iconOnly(){return V()},set iconOnly(e=!1){V(e),g()},get children(){return R()},set children(e=void 0){R(e),g()},$set:_t,$on:(e,d)=>vt(s,e,d)},He=L(),ot=_(He);{var at=e=>{var d=he(),u=_(d);{var p=j=>{var F=he(),D=_(F);S(D,()=>qt,(T,C)=>{C(T,{children:(c,K)=>{var h=he(),$=_(h);S($,()=>Kt,(a,i)=>{i(a,{get icon(){return Ge},children:(y,H)=>{var m=fr(),P=oe(m,!0);W(l=>ae(P,l),[()=>x.ui_openCombo_openInApp_tooltip()]),r(y,m)},$$slots:{default:!0}})});var n=N($,2);S(n,()=>Jt,(a,i)=>{i(a,{class:"w-60",children:(y,H)=>{le(y,()=>t(fe))},$$slots:{default:!0}})}),r(c,h)},$$slots:{default:!0}})});var k=N(D,2);S(k,()=>Ve,(T,C)=>{C(T,{})}),r(j,F)};z(u,j=>{t(fe).length&&j(p)})}var te=N(u,2);le(te,()=>t(Se)),r(e,d)},nt=e=>{var d=yr(),u=be(d);{const p=(F,D)=>{let k=()=>(D?.()).props;var T=L(),C=_(T);{var c=n=>{var a=mr();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?k():{},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=be(a);We(i,R),_e(a),r(n,a)},K=n=>{{let a=o(()=>t(f).length>1?void 0:Fe),i=o(()=>V()&&G()!=="sidebar"?"plain":"ghost"),y=o(()=>V()?G()==="sidebar"?"icon-compact":"icon-sm":void 0),H=o(()=>V()&&G()==="sidebar"&&t(ee)),m=o(()=>!V()),P=o(()=>V()?G()==="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?k():{},{get variant(){return t(i)},get size(){return t(y)},get active(){return t(H)},get wrapContent(){return t(m)},get class(){return t(P)},get title(){return t(Ae)},children:(l,A)=>{var M=L(),B=_(M);We(B,R),r(l,M)},$$slots:{default:!0}}))}},h=n=>{{let a=o(()=>x.ui_openCombo_openInApp_tooltip());ge(n,Te(k,{variant:"ghost-light",size:"icon-xs",get tooltip(){return t(a)},tooltipSide:"bottom",children:(i,y)=>{ne(i,{get icon(){return Ge},size:"xs"})},$$slots:{default:!0}}))}},$=n=>{var a=gr(),i=be(a);{let m=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(m)??""} ${t(P)??""}`},onpointerdown:Re,onkeydown:Re,onclick:Fe,get title(){return t(l)},children:(A,M)=>{var B=_r(),J=_(B);{var re=w=>{var q=br();W(()=>{De(q,"src",`data:image/png;base64,${t(v).iconBase64??""}`),De(q,"alt",t(v).label)}),r(w,q)},it=w=>{const q=o(()=>t(v).icon);var Me=L(),pt=_(Me);S(pt,()=>t(q),(ft,mt)=>{mt(ft,{size:14})}),r(w,Me)},lt=w=>{ne(w,{get icon(){return t(v).faIcon},class:"w-3.5 h-3.5 opacity-60"})},ct=w=>{{let q=o(()=>Ke(t(v).category));ne(w,{get icon(){return t(q)},class:"w-3.5 h-3.5 opacity-60"})}};z(J,w=>{t(v).iconBase64?w(re):t(v).icon?w(it,1):t(v).faIcon?w(lt,2):w(ct,-1)})}var dt=N(J,2),ut=oe(dt,!0);W(w=>ae(ut,w),[()=>t(pe)?x.ui_openCombo_open_label():t(v).label]),r(A,B)},$$slots:{default:!0}})}var y=N(i,2);{var H=m=>{{let P=o(()=>x.ui_openCombo_openInApp_tooltip());ge(m,Te(k,{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 Lt},class:"size-3! text-muted-foreground"})},$$slots:{default:!0}}))}};z(y,m=>{t(f).length>1&&m(H)})}_e(a),r(n,a)};z(C,n=>{Q()&&R()?n(c):R()?n(K,1):Ce()?n(h,2):n($,-1)})}r(F,T)},te=F=>{var D=hr(),k=be(D);{var T=h=>{var $=vr(),n=oe($,!0);W(()=>ae(n,ue())),r(h,$)};z(k,h=>{ue()&&h(T)})}var C=N(k,2);{var c=h=>{var $=he(),n=_($);le(n,()=>t(fe));var a=N(n,2);S(a,()=>Ve,(i,y)=>{y(i,{})}),r(h,$)};z(C,h=>{t(fe).length&&h(c)})}var K=N(C,2);le(K,()=>t(Se)),_e(D),r(F,D)};let j=o(()=>Q()&&R()?"contents!":"");Gt(u,{align:"end",get portal(){return Ie()},get side(){return ke()},get class(){return t(j)},get open(){return t(ee)},set open(F){Be(ee,F,!0)},trigger:p,content:te,$$slots:{trigger:!0,content:!0}})}_e(d),W(()=>Pt(d,1,`${Q()&&R()?"contents":"inline-flex items-center"} ${xe()??""}`)),r(e,d)};z(ot,e=>{$e()?e(at):e(nt,-1)})}r(O,He);var st=It(rt);return Je(),st}export{wr as O,sr as a,Ke as r,ir as s};
|
|
1
|
+
import{t as bt,bo as b,bw as _t,bq as gt,b as vt,bm as x,bs as me,br as Te}from"./Fcr7AvC-.js";import{bs as ht,cd as yt,ca as wt,bk as xt,a7 as L,ay as _,W as r,bn as It,aA as g,aD as t,bS as N,a5 as be,bH as Be,bA as _e,b_ as W,aB as E,c9 as o,bf as kt,bl as oe,bO as ae,bV as Ct}from"./3SdAC2_C.js";import{i as z}from"./BhYXv0ZM.js";import{g as $t}from"./CA6H1-bp.js";import{t as We}from"./CWfjuhY2.js";import{c as S}from"./2z64ELW5.js";import{f as Pt,s as De,b as At}from"./BRCr02in.js";import{cK as Et,bn as Ot,aM as Ft,F as ne,aZ as Tt,aN as Bt,bo as Dt,a8 as Ge,aw as Lt}from"./ChHRVjww.js";import{W as Nt,T as zt,G as St,C as Rt,X as Ht,J as Mt,V as Wt}from"./Ce-va2I0.js";import{f as ge}from"./Beq_QLuz.js";import"./BAtAwQ72.js";import{D as Gt}from"./C8OXQeb2.js";import{g as Vt,R as jt,k as Kt,j as Jt,i as qt,h as Ve}from"./D7KhILhs.js";import{m as ve}from"./DkQdSPDN.js";import{c as Ut}from"./ChTqQfQN.js";import"./DRMe5Ypb.js";import{JH as je,ni as Xt,Gl as Yt}from"./D0qhIm1r.js";import{w as Zt}from"./Bqd7fdCF.js";import{i as U}from"./CL3a4Hm1.js";import{b2 as Qt,aM as er,aK as tr}from"./B3ZeLze4.js";import{cB as rr}from"./cD292w1o.js";import{t as or}from"./H2jLkRRS.js";const ar={cursor:Rt,ghostty:St,terminal:zt,warp:Nt},nr={vscode:Wt,jetbrains:Mt,xcode:Ht};function sr(O){return ar[O.id]??nr[O.handlerType]??null}function Ke(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",Le="finder",lr={id:Le,name:"Finder",shortLabel:"Finder",appName:"Finder",category:"finder",handlerType:"finder",installed:!0,priority:0};function cr(O,s=[]){const se=new Set(s),X=O.filter(({installed:Y,id:ye})=>Y&&!se.has(ye));return X.some(({id:Y})=>Y===Le)||se.has(Le)?X:[...X,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),mr=E("<span><!></span>"),br=E('<img class="w-4 h-4"/>'),_r=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 bt({component:wr,...O});ht(s,!0);const se=()=>me(Ue,"$installedEditors$",ie),X=()=>me(Xe,"$hiddenEditorIds$",ie),Y=()=>me(Ye,"$isWorkspaceHostLocal$",ie),ye=()=>me(qe,"$openAction",ie),[ie,Je]=gt(),le=(e,d=kt)=>{var u=L(),p=_(u);S(p,()=>jt,(te,j)=>{j(te,{get value(){return t(v).id},children:(F,D)=>{var k=L(),T=_(k);$t(T,17,d,C=>C.id,(C,c)=>{var K=L(),h=_(K);{const $=a=>{var i=L(),y=_(i);{var H=l=>{var A=dr();W(()=>De(A,"src",`data:image/png;base64,${t(c).iconBase64??""}`)),r(l,A)},m=l=>{const A=o(()=>t(c).icon);var M=L(),B=_(M);S(B,()=>t(A),(J,re)=>{re(J,{size:16})}),r(l,M)},P=l=>{{let A=o(()=>t(c).faIcon??Ke(t(c).category));ne(l,{get icon(){return t(A)},class:"size-4 text-muted-foreground"})}};z(y,l=>{t(c).iconBase64?l(H):t(c).icon?l(m,1):l(P,-1)})}r(a,i)};let n=o(()=>!I());S(h,()=>Vt,(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 m=pr(),P=_(m),l=oe(P,!0),A=N(P,2);{var M=B=>{var J=ur(),re=oe(J,!0);W(()=>ae(re,t(c).shortcut)),r(B,J)};z(A,B=>{t(c).shortcut&&B(M)})}W(()=>ae(l,t(c).label)),r(y,m)},$$slots:{leading:!0,default:!0}})})}r(C,K)}),r(F,k)},$$slots:{default:!0}})}),r(e,u)},Ne=Ut("OpenComboButton");let I=b(s,"filePath",7),ce=b(s,"workspaceId",7,""),de=b(s,"isDirectory",7,!0),we=b(s,"workspaceFolderPath",7),xe=b(s,"class",7,""),ue=b(s,"headerText",7),Ie=b(s,"usePortal",7,!0),ke=b(s,"side",7,"bottom"),G=b(s,"variant",7,"default"),Z=b(s,"branchName",7),Ce=b(s,"compact",7,!1),$e=b(s,"embedded",7,!1),Q=b(s,"inline",7,!1),V=b(s,"iconOnly",7,!1),R=b(s,"children",7,void 0);const ze=o(()=>G()==="sidebar"?"bg-sidebar hover:bg-sidebar/80":"bg-background hover:bg-muted"),Pe=yt(ce());wt(()=>{Pe.set(ce())});const qe=Qt(),Ue=er(Pe),Xe=tr(),Ye=rr(Pe);let ee=Ct(!1);xt(()=>{je.dispatch(Xt())});function Ze(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 Qe=Zt("externalEditors");let f=o(()=>{const e=se(),d=cr(e,X()).map(Ze),u={id:"other",label:x.ui_openCombo_other_label(),shortLabel:x.ui_openCombo_other_label(),icon:null,faIcon:Dt,handlerType:"generic"},p=[{id:"copy",label:x.ui_openCombo_copyPath_label(),shortLabel:x.ui_openCombo_copy_shortLabel(),icon:null,faIcon:Tt},...Z()?[{id:"copy-branch",label:x.ui_openCombo_copyBranch_label(),shortLabel:x.ui_openCombo_copyBranch_shortLabel(),icon:null,faIcon:Bt}]:[]];return!Qe||!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 I();const e=we()||I().substring(0,I().lastIndexOf("/"));return e?{folder:e,file:I()}:I()}async function Oe(e){if(!I())return;const d=de()?I():I().substring(0,I().lastIndexOf("/"));try{if(e==="copy"){await navigator.clipboard.writeText(or(I())),ve.success(x.ui_openCombo_pathCopied_label());return}if(e==="copy-branch"){Z()&&(await navigator.clipboard.writeText(Z()),ve.success(x.ui_openCombo_branchCopied_label()));return}if(e==="other"){const p=await U("external-editors:open-with-other",{path:d});p?.success?Be(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 U("shell:showItemInFolder",{path:d});break;case"vscode":await U("vscode:open",Ee());break;case"jetbrains":await U("jetbrains:open",Ee());break;case"xcode":await U("xcode:open",Ee());break;case"generic":default:{await U("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),Be(ee,!1)}var rt={get filePath(){return I()},set filePath(e){I(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 Ie()},set usePortal(e=!0){Ie(e),g()},get side(){return ke()},set side(e="bottom"){ke(e),g()},get variant(){return G()},set variant(e="default"){G(e),g()},get branchName(){return Z()},set branchName(e){Z(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 Q()},set inline(e=!1){Q(e),g()},get iconOnly(){return V()},set iconOnly(e=!1){V(e),g()},get children(){return R()},set children(e=void 0){R(e),g()},$set:_t,$on:(e,d)=>vt(s,e,d)},He=L(),ot=_(He);{var at=e=>{var d=he(),u=_(d);{var p=j=>{var F=he(),D=_(F);S(D,()=>qt,(T,C)=>{C(T,{children:(c,K)=>{var h=he(),$=_(h);S($,()=>Kt,(a,i)=>{i(a,{get icon(){return Ge},children:(y,H)=>{var m=fr(),P=oe(m,!0);W(l=>ae(P,l),[()=>x.ui_openCombo_openInApp_tooltip()]),r(y,m)},$$slots:{default:!0}})});var n=N($,2);S(n,()=>Jt,(a,i)=>{i(a,{class:"w-60",children:(y,H)=>{le(y,()=>t(fe))},$$slots:{default:!0}})}),r(c,h)},$$slots:{default:!0}})});var k=N(D,2);S(k,()=>Ve,(T,C)=>{C(T,{})}),r(j,F)};z(u,j=>{t(fe).length&&j(p)})}var te=N(u,2);le(te,()=>t(Se)),r(e,d)},nt=e=>{var d=yr(),u=be(d);{const p=(F,D)=>{let k=()=>(D?.()).props;var T=L(),C=_(T);{var c=n=>{var a=mr();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?k():{},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=be(a);We(i,R),_e(a),r(n,a)},K=n=>{{let a=o(()=>t(f).length>1?void 0:Fe),i=o(()=>V()&&G()!=="sidebar"?"plain":"ghost"),y=o(()=>V()?G()==="sidebar"?"icon-compact":"icon-sm":void 0),H=o(()=>V()&&G()==="sidebar"&&t(ee)),m=o(()=>!V()),P=o(()=>V()?G()==="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?k():{},{get variant(){return t(i)},get size(){return t(y)},get active(){return t(H)},get wrapContent(){return t(m)},get class(){return t(P)},get title(){return t(Ae)},children:(l,A)=>{var M=L(),B=_(M);We(B,R),r(l,M)},$$slots:{default:!0}}))}},h=n=>{{let a=o(()=>x.ui_openCombo_openInApp_tooltip());ge(n,Te(k,{variant:"ghost-light",size:"icon-xs",get tooltip(){return t(a)},tooltipSide:"bottom",children:(i,y)=>{ne(i,{get icon(){return Ge},size:"xs"})},$$slots:{default:!0}}))}},$=n=>{var a=gr(),i=be(a);{let m=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(m)??""} ${t(P)??""}`},onpointerdown:Re,onkeydown:Re,onclick:Fe,get title(){return t(l)},children:(A,M)=>{var B=_r(),J=_(B);{var re=w=>{var q=br();W(()=>{De(q,"src",`data:image/png;base64,${t(v).iconBase64??""}`),De(q,"alt",t(v).label)}),r(w,q)},it=w=>{const q=o(()=>t(v).icon);var Me=L(),pt=_(Me);S(pt,()=>t(q),(ft,mt)=>{mt(ft,{size:14})}),r(w,Me)},lt=w=>{ne(w,{get icon(){return t(v).faIcon},class:"w-3.5 h-3.5 opacity-60"})},ct=w=>{{let q=o(()=>Ke(t(v).category));ne(w,{get icon(){return t(q)},class:"w-3.5 h-3.5 opacity-60"})}};z(J,w=>{t(v).iconBase64?w(re):t(v).icon?w(it,1):t(v).faIcon?w(lt,2):w(ct,-1)})}var dt=N(J,2),ut=oe(dt,!0);W(w=>ae(ut,w),[()=>t(pe)?x.ui_openCombo_open_label():t(v).label]),r(A,B)},$$slots:{default:!0}})}var y=N(i,2);{var H=m=>{{let P=o(()=>x.ui_openCombo_openInApp_tooltip());ge(m,Te(k,{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 Lt},class:"size-3! text-muted-foreground"})},$$slots:{default:!0}}))}};z(y,m=>{t(f).length>1&&m(H)})}_e(a),r(n,a)};z(C,n=>{Q()&&R()?n(c):R()?n(K,1):Ce()?n(h,2):n($,-1)})}r(F,T)},te=F=>{var D=hr(),k=be(D);{var T=h=>{var $=vr(),n=oe($,!0);W(()=>ae(n,ue())),r(h,$)};z(k,h=>{ue()&&h(T)})}var C=N(k,2);{var c=h=>{var $=he(),n=_($);le(n,()=>t(fe));var a=N(n,2);S(a,()=>Ve,(i,y)=>{y(i,{})}),r(h,$)};z(C,h=>{t(fe).length&&h(c)})}var K=N(C,2);le(K,()=>t(Se)),_e(D),r(F,D)};let j=o(()=>Q()&&R()?"contents!":"");Gt(u,{align:"end",get portal(){return Ie()},get side(){return ke()},get class(){return t(j)},get open(){return t(ee)},set open(F){Be(ee,F,!0)},trigger:p,content:te,$$slots:{trigger:!0,content:!0}})}_e(d),W(()=>Pt(d,1,`${Q()&&R()?"contents":"inline-flex items-center"} ${xe()??""}`)),r(e,d)};z(ot,e=>{$e()?e(at):e(nt,-1)})}r(O,He);var st=It(rt);return Je(),st}export{wr as O,sr as a,Ke as r,ir as s};
|