@intent-hq/web 2.313.1 → 2.315.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/{Dz6YK0K2.js → -EpgQj88.js} +1 -1
- package/web/app/immutable/chunks/{Cbh1BCiS.js → 17xFUwtQ.js} +2 -2
- package/web/app/immutable/chunks/{DBUJXdXR.js → 1r2-2NoO.js} +1 -1
- package/web/app/immutable/chunks/{CICEz2Qq.js → 2UOzeX2M.js} +1 -1
- package/web/app/immutable/chunks/{B88eFHaH.js → 2j5TR93A.js} +1 -1
- package/web/app/immutable/chunks/{BE-b7v7R.js → 45Qi4YFf.js} +1 -1
- package/web/app/immutable/chunks/{DPG0D59v.js → 4GsjZWx0.js} +1 -1
- package/web/app/immutable/chunks/{Bl_iEh1f.js → 6Rt8MvWn.js} +1 -1
- package/web/app/immutable/chunks/{CbpiaYyP.js → 6vbvyEDW.js} +1 -1
- package/web/app/immutable/chunks/{XzWc0fs1.js → 82qiqofo.js} +1 -1
- package/web/app/immutable/chunks/{HWP1BG2L.js → 9CybJbHN.js} +1 -1
- package/web/app/immutable/chunks/{_4p7wl12.js → 9GP6SafJ.js} +1 -1
- package/web/app/immutable/chunks/{DQNmQX9F.js → AJN9mSFe.js} +1 -1
- package/web/app/immutable/chunks/{qcgLBz2O.js → AStlTL_B.js} +1 -1
- package/web/app/immutable/chunks/{DGAww3vc.js → B-2_r0A5.js} +1 -1
- package/web/app/immutable/chunks/{DvC622kv.js → B-7spAu4.js} +1 -1
- package/web/app/immutable/chunks/{C6L7wkhi.js → B-8kHUzd.js} +1 -1
- package/web/app/immutable/chunks/{DTMKqgRU.js → B-P4veSb.js} +1 -1
- package/web/app/immutable/chunks/{3V4Tx4nH.js → B1h0QCy7.js} +1 -1
- package/web/app/immutable/chunks/{CqzZhYYx.js → B2jOlwPp.js} +1 -1
- package/web/app/immutable/chunks/{DkrnUdRW.js → B36kU0RI.js} +2 -2
- package/web/app/immutable/chunks/B3iaLYr6.js +1 -0
- package/web/app/immutable/chunks/{BAssmU5H.js → B6MVuluU.js} +1 -1
- package/web/app/immutable/chunks/{1wCbR4ud.js → B6o2T7JU.js} +1 -1
- package/web/app/immutable/chunks/{nHQ6ExVj.js → B7ZHl5_Y.js} +1 -1
- package/web/app/immutable/chunks/{C11wqToa.js → B9pexpLt.js} +1 -1
- package/web/app/immutable/chunks/{Bf1tCDQg.js → B9xm9DK7.js} +1 -1
- package/web/app/immutable/chunks/{BRNfUSNR.js → BA8g-07b.js} +1 -1
- package/web/app/immutable/chunks/{DzfdD6YD.js → BDIALQgX.js} +1 -1
- package/web/app/immutable/chunks/{Ctl9Ux7T.js → BGkYz2ud.js} +1 -1
- package/web/app/immutable/chunks/{4wFlAApS.js → BHJ90Mf-.js} +1 -1
- package/web/app/immutable/chunks/{D62gE1G0.js → BI7cYdMD.js} +3 -3
- package/web/app/immutable/chunks/{q4Mp6azq.js → BKJB_6oY.js} +4 -4
- package/web/app/immutable/chunks/{BssmMBl2.js → BL1pyapR.js} +1 -1
- package/web/app/immutable/chunks/BLUkoS8T.js +2 -0
- package/web/app/immutable/chunks/{CN_VK1iL.js → BLyNH-U9.js} +1 -1
- package/web/app/immutable/chunks/{DijSalri.js → BM62R-OM.js} +1 -1
- package/web/app/immutable/chunks/{DH9gMPGd.js → BMMcARVk.js} +1 -1
- package/web/app/immutable/chunks/{B6mHy78M.js → BP6KtsDA.js} +1 -1
- package/web/app/immutable/chunks/{BW6fyv0T.js → BPhG_Xtj.js} +2 -2
- package/web/app/immutable/chunks/{COpjcilg.js → BQupMMp-.js} +1 -1
- package/web/app/immutable/chunks/{BNasdn-P.js → BS-r7N3W.js} +1 -1
- package/web/app/immutable/chunks/{Cop9b2dY.js → BS1nq856.js} +1 -1
- package/web/app/immutable/chunks/{DoCNcHnE.js → BTxL9if-.js} +3 -3
- package/web/app/immutable/chunks/{ZUZF8K3P.js → BW4xwD_u.js} +1 -1
- package/web/app/immutable/chunks/{By8e6LYt.js → BW4yj8m7.js} +1 -1
- package/web/app/immutable/chunks/{Cb6WrSKY.js → BWdRpmh3.js} +1 -1
- package/web/app/immutable/chunks/{usUeYWMe.js → BX6Kopvz.js} +1 -1
- package/web/app/immutable/chunks/{CoKEteoj.js → BYevJ1Pj.js} +1 -1
- package/web/app/immutable/chunks/{BgyuoEGq.js → BZmsmL8P.js} +1 -1
- package/web/app/immutable/chunks/{EEJgvLyS.js → BbGlxyDx.js} +1 -1
- package/web/app/immutable/chunks/{DxZSyekB.js → BcI-R0js.js} +1 -1
- package/web/app/immutable/chunks/{qr2Z9jBR.js → Bg4RpIu7.js} +1 -1
- package/web/app/immutable/chunks/{DulsjrO4.js → BhfbTmVQ.js} +1 -1
- package/web/app/immutable/chunks/{DmsGklpx.js → Bjzk9M3D.js} +1 -1
- package/web/app/immutable/chunks/{D47PZJI_.js → BkDFndY7.js} +1 -1
- package/web/app/immutable/chunks/{BaWcyleE.js → BlQxdvN2.js} +1 -1
- package/web/app/immutable/chunks/{D84mJH5u.js → BoXSGPEf.js} +2 -2
- package/web/app/immutable/chunks/{B8VhjfbW.js → Br9IA-Ja.js} +1 -1
- package/web/app/immutable/chunks/{OpYhygEs.js → BsB-PCKs.js} +1 -1
- package/web/app/immutable/chunks/{C-fnz5X4.js → BsZr4pOk.js} +1 -1
- package/web/app/immutable/chunks/{y_yPvfwh.js → BwdewdLu.js} +1 -1
- package/web/app/immutable/chunks/{NYwlcfYt.js → BzVDQRgL.js} +1 -1
- package/web/app/immutable/chunks/{CQbq623l.js → C-jm3uXv.js} +1 -1
- package/web/app/immutable/chunks/{D-8WC0DU.js → C3vS1byi.js} +1 -1
- package/web/app/immutable/chunks/{BMkc6ng0.js → C4C2GjZ7.js} +1 -1
- package/web/app/immutable/chunks/{CAn8DYJP.js → C5-HTPPK.js} +1 -1
- package/web/app/immutable/chunks/{BCoW5DN6.js → C5DgMO0u.js} +3 -3
- package/web/app/immutable/chunks/{Y6LratEc.js → C7ilG2WB.js} +1 -1
- package/web/app/immutable/chunks/{DNYGh_FV.js → C8LKnqUt.js} +1 -1
- package/web/app/immutable/chunks/CA0a6eNp.js +1 -0
- package/web/app/immutable/chunks/{UuiGcpAE.js → CBRfvExq.js} +1 -1
- package/web/app/immutable/chunks/{DESxr5Rj.js → CD3v15Ti.js} +1 -1
- package/web/app/immutable/chunks/{B_CpN824.js → CEoXgs7Q.js} +1 -1
- package/web/app/immutable/chunks/{BUjtm23k.js → CFrKPVp-.js} +1 -1
- package/web/app/immutable/chunks/{DkI_jPOw.js → CHXEA9Fi.js} +4 -4
- package/web/app/immutable/chunks/{C6aPQebU.js → CIOSdkrK.js} +1 -1
- package/web/app/immutable/chunks/{Io79CQwx.js → CIkNpS3P.js} +1 -1
- package/web/app/immutable/chunks/{CE8vXfAM.js → CJzNuuJO.js} +1 -1
- package/web/app/immutable/chunks/{DlKVdWHt.js → CLGCkXvY.js} +15 -15
- package/web/app/immutable/chunks/{BOQCK4ni.js → CLSvSGMY.js} +1 -1
- package/web/app/immutable/chunks/{C2m8Iivv.js → CLkwa_R_.js} +1 -1
- package/web/app/immutable/chunks/{C8_w7W1W.js → CMMABWQi.js} +1 -1
- package/web/app/immutable/chunks/{BRIkzo-E.js → CMqLPRJh.js} +1 -1
- package/web/app/immutable/chunks/{BjqGlL_Y.js → CPS8yuKp.js} +1 -1
- package/web/app/immutable/chunks/{CsTPrgDm.js → CPxyG9KJ.js} +3 -3
- package/web/app/immutable/chunks/{dX_oN6Xt.js → CS74N62e.js} +1 -1
- package/web/app/immutable/chunks/{CMvHzajx.js → CTKJUmq_.js} +1 -1
- package/web/app/immutable/chunks/{a6K5_NPk.js → CTX2aXUF.js} +1 -1
- package/web/app/immutable/chunks/{DsU6W5Yf.js → CUjmBXfD.js} +1 -1
- package/web/app/immutable/chunks/{yNufUFm8.js → CV9PEzoB.js} +1 -1
- package/web/app/immutable/chunks/{DFq6CFhq.js → CVr9pwFM.js} +1 -1
- package/web/app/immutable/chunks/{CTfHCA2Y.js → CXnUJFR2.js} +1 -1
- package/web/app/immutable/chunks/{Dvil1FCS.js → CZBUuakO.js} +2 -2
- package/web/app/immutable/chunks/{Bc2zOKbx.js → CZikPtVV.js} +1 -1
- package/web/app/immutable/chunks/{DD-f8Y3V.js → CfHhYnBc.js} +1 -1
- package/web/app/immutable/chunks/{BHqHNrOT.js → Ch8MPJbT.js} +1 -1
- package/web/app/immutable/chunks/{BtAYzBSd.js → ChLTaT6L.js} +1 -1
- package/web/app/immutable/chunks/{DUdpP1ED.js → CiJSzLSf.js} +1 -1
- package/web/app/immutable/chunks/{Bfc094Ub.js → CjCXWRTy.js} +1 -1
- package/web/app/immutable/chunks/{DwPGocEY.js → CjGoJ5M9.js} +2 -2
- package/web/app/immutable/chunks/{AGSVFpXc.js → Clc6wozH.js} +1 -1
- package/web/app/immutable/chunks/{CG-371Y6.js → ClgzRlxs.js} +1 -1
- package/web/app/immutable/chunks/{BIZcuYRW.js → CnodaVJ0.js} +2 -2
- package/web/app/immutable/chunks/{2O2vJlPl.js → Co0AVCAv.js} +1 -1
- package/web/app/immutable/chunks/{D-rJNj43.js → CoJeJSLc.js} +1 -1
- package/web/app/immutable/chunks/{C9gP-gRX.js → CpELl9t1.js} +3 -3
- package/web/app/immutable/chunks/{CXNySl0c.js → Cpn3qWfd.js} +1 -1
- package/web/app/immutable/chunks/{DOnT_3WY.js → CpnUYFMu.js} +1 -1
- package/web/app/immutable/chunks/{DO2cS8JO.js → CqSXeJtk.js} +1 -1
- package/web/app/immutable/chunks/{CWaCCzEn.js → CrskbTlC.js} +1 -1
- package/web/app/immutable/chunks/{D0Dsw2tV.js → Csa9LtrA.js} +1 -1
- package/web/app/immutable/chunks/{DgfdSIWo.js → Cso7NntT.js} +1 -1
- package/web/app/immutable/chunks/{CzRl1R1n.js → CtO7SsM-.js} +1 -1
- package/web/app/immutable/chunks/{DY6JypjK.js → Cti1rV_x.js} +3 -3
- package/web/app/immutable/chunks/{Bvq2wF7r.js → Cufik1EG.js} +1 -1
- package/web/app/immutable/chunks/{CBwn70Pq.js → Cuq9exmb.js} +1 -1
- package/web/app/immutable/chunks/{DAtBKOQq.js → CwR0GP6W.js} +1 -1
- package/web/app/immutable/chunks/{CYmZhCDN.js → Cwy3o6zK.js} +1 -1
- package/web/app/immutable/chunks/{hacdNVQl.js → Czd6tfZA.js} +1 -1
- package/web/app/immutable/chunks/{qIh42_HI.js → CzdJ5DN4.js} +1 -1
- package/web/app/immutable/chunks/{C-li4cfO.js → CzzsK_z0.js} +1 -1
- package/web/app/immutable/chunks/{D-XHjwsv.js → D-b9zJlt.js} +1 -1
- package/web/app/immutable/chunks/{B1YnvfKo.js → D0UXbQbI.js} +1 -1
- package/web/app/immutable/chunks/{7ZJvg7ev.js → D0UrvUQM.js} +1 -1
- package/web/app/immutable/chunks/{6rzwTXJx.js → D1h8l9Ve.js} +1 -1
- package/web/app/immutable/chunks/{BDGDJyji.js → D22I-TIV.js} +1 -1
- package/web/app/immutable/chunks/{DcYvv2Iw.js → D2QAvk7S.js} +1 -1
- package/web/app/immutable/chunks/{C5Nz-crT.js → D38Ru3z6.js} +1 -1
- package/web/app/immutable/chunks/{B2st7VbN.js → D43c7AFS.js} +1 -1
- package/web/app/immutable/chunks/{x8WBzABF.js → D441f0lY.js} +46 -46
- package/web/app/immutable/chunks/{BcVu_y1Z.js → D56XXK4f.js} +1 -1
- package/web/app/immutable/chunks/{DQRxUuCh.js → D5arKTNF.js} +1 -1
- package/web/app/immutable/chunks/{Bc3_ahSr.js → D60vJvLR.js} +1 -1
- package/web/app/immutable/chunks/{DNo4fphO.js → D8NOVJ50.js} +1 -1
- package/web/app/immutable/chunks/{C2Cq4c9l.js → D90jQ3ZZ.js} +1 -1
- package/web/app/immutable/chunks/{gsqPz4Y0.js → D9Da4bYx.js} +1 -1
- package/web/app/immutable/chunks/{tSV1knJu.js → DBOoSzzw.js} +1 -1
- package/web/app/immutable/chunks/{CzrG_lpv.js → DCPTVyDU.js} +21 -21
- package/web/app/immutable/chunks/{CW1tBVLY.js → DCdW5wmG.js} +1 -1
- package/web/app/immutable/chunks/{xfGEIVf6.js → DDIYUGOD.js} +1 -1
- package/web/app/immutable/chunks/{CQMd4GmI.js → DE0RJrWM.js} +1 -1
- package/web/app/immutable/chunks/{BPk16bSc.js → DEmaG7Ya.js} +1 -1
- package/web/app/immutable/chunks/{Ccf4dYFA.js → DGvAL7MJ.js} +1 -1
- package/web/app/immutable/chunks/{A3beYjJS.js → DHNO0898.js} +4 -4
- package/web/app/immutable/chunks/{CeQYwwry.js → DIYS_mcw.js} +1 -1
- package/web/app/immutable/chunks/{9sI_nbHm.js → DJZIU3cR.js} +1 -1
- package/web/app/immutable/chunks/DLueLf8l.js +4 -0
- package/web/app/immutable/chunks/{992RyGqf.js → DM1ZHS3Y.js} +1 -1
- package/web/app/immutable/chunks/{C6XSZJri.js → DMKbkua9.js} +1 -1
- package/web/app/immutable/chunks/DMkYHym4.js +324 -0
- package/web/app/immutable/chunks/{DUrqH6OL.js → DNFEdIdv.js} +1 -1
- package/web/app/immutable/chunks/{_bllxFVr.js → DNOlba2e.js} +1 -1
- package/web/app/immutable/chunks/{Cb7SCycF.js → DQ13AkOA.js} +1 -1
- package/web/app/immutable/chunks/{BVkJyN1U.js → DQHfY0wY.js} +2 -2
- package/web/app/immutable/chunks/{DWccAyE3.js → DRONnAVY.js} +1 -1
- package/web/app/immutable/chunks/{CcGPnEzl.js → DSyGSHPH.js} +1 -1
- package/web/app/immutable/chunks/{BESrHe_0.js → DTsLO4aV.js} +1 -1
- package/web/app/immutable/chunks/{CA7UZgrf.js → DUjsEo3X.js} +1 -1
- package/web/app/immutable/chunks/{AHQMxoVk.js → DV6UkZ5a.js} +1 -1
- package/web/app/immutable/chunks/DW_tfZdS.js +12 -0
- package/web/app/immutable/chunks/{aegF9YRH.js → DWhtEEhJ.js} +1 -1
- package/web/app/immutable/chunks/{DwgP_YcK.js → DXHWw6vt.js} +1 -1
- package/web/app/immutable/chunks/{CxO_9nE4.js → DXYkWPe_.js} +1 -1
- package/web/app/immutable/chunks/{Bc-8qHYh.js → DYlSkPA-.js} +1 -1
- package/web/app/immutable/chunks/{B6QJA3k0.js → DZhHioOL.js} +1 -1
- package/web/app/immutable/chunks/{CKWaKOqs.js → DaCSSt4n.js} +1 -1
- package/web/app/immutable/chunks/{4CMzT_BI.js → DbHbiWFj.js} +1 -1
- package/web/app/immutable/chunks/{DhAv1XMF.js → DbrsPlQk.js} +1 -1
- package/web/app/immutable/chunks/{TP4sXUzS.js → DcBvBE74.js} +1 -1
- package/web/app/immutable/chunks/{CKH-l4ig.js → Dd-BRJYG.js} +1 -1
- package/web/app/immutable/chunks/{DL9BUVq-.js → DdHsJ0nA.js} +1 -1
- package/web/app/immutable/chunks/{BDXCy3lH.js → Deg5jWhG.js} +1 -1
- package/web/app/immutable/chunks/DhLTyNrj.js +1 -0
- package/web/app/immutable/chunks/{DW9ZR5Up.js → DhZDbKoP.js} +1 -1
- package/web/app/immutable/chunks/{B2RRuLl5.js → Dj42fWMH.js} +1 -1
- package/web/app/immutable/chunks/{CCCBFmfe.js → DmYZE-MO.js} +3 -3
- package/web/app/immutable/chunks/{kdf0l6Z-.js → DnMKNs0X.js} +3 -3
- package/web/app/immutable/chunks/{DwbQaKgL.js → DnouAZbM.js} +1 -1
- package/web/app/immutable/chunks/{C0VJEx2v.js → Dr41JWYu.js} +1 -1
- package/web/app/immutable/chunks/{Bu6sHonm.js → DrxYPSVr.js} +1 -1
- package/web/app/immutable/chunks/DsAKyTjw.js +4 -0
- package/web/app/immutable/chunks/{D2uybU7F.js → DsRw0NLx.js} +2 -2
- package/web/app/immutable/chunks/DuQiXW7a.js +1 -0
- package/web/app/immutable/chunks/{CTX5Fuc9.js → Dvap-Bcg.js} +2 -2
- package/web/app/immutable/chunks/{DSOeLuN2.js → DxI6kRYN.js} +1 -1
- package/web/app/immutable/chunks/{CelhKzDn.js → DyHgOFFg.js} +1 -1
- package/web/app/immutable/chunks/{sg8Cer3T.js → E-3i0Fur.js} +3 -3
- package/web/app/immutable/chunks/FAATYx56.js +1 -0
- package/web/app/immutable/chunks/H0ZjbDhN.js +1 -0
- package/web/app/immutable/chunks/{CBzaXebB.js → HpMdkrj7.js} +1 -1
- package/web/app/immutable/chunks/{CJtH5G9P.js → IIdGbw6g.js} +1 -1
- package/web/app/immutable/chunks/{MgJqQwQp.js → JchQH-Q8.js} +1 -1
- package/web/app/immutable/chunks/{DSRwOSd4.js → Pb7J418u.js} +1 -1
- package/web/app/immutable/chunks/{BQFqw3YD.js → PeOOhaLn.js} +1 -1
- package/web/app/immutable/chunks/{C48G3Oh4.js → Q95-G3Tv.js} +1 -1
- package/web/app/immutable/chunks/{B-xGvc_0.js → QihShgnK.js} +1 -1
- package/web/app/immutable/chunks/{7IyNIHph.js → Swkg1pRS.js} +1 -1
- package/web/app/immutable/chunks/UWOPR8uY.js +2 -0
- package/web/app/immutable/chunks/{LSDVwgG8.js → Uxor6krE.js} +2 -2
- package/web/app/immutable/chunks/{C8PuI333.js → WVbSHjXl.js} +1 -1
- package/web/app/immutable/chunks/{DOzphY7c.js → ZaCkwnYl.js} +1 -1
- package/web/app/immutable/chunks/{qHcHiO2c.js → ZpSdOcUX.js} +1 -1
- package/web/app/immutable/chunks/{B0qtRhuw.js → _pUPWAkF.js} +1 -1
- package/web/app/immutable/chunks/{BGGxKX5q.js → bS-VFUYb.js} +1 -1
- package/web/app/immutable/chunks/cE62vW_i.js +2 -0
- package/web/app/immutable/chunks/{D9SqGY86.js → dRknRrDn.js} +1 -1
- package/web/app/immutable/chunks/{DKXEy5Lq.js → dUOQ5AaY.js} +1 -1
- package/web/app/immutable/chunks/{DYrH45vr.js → daoeIyG_.js} +1 -1
- package/web/app/immutable/chunks/{nt8jKVrH.js → dyJEvFNA.js} +1 -1
- package/web/app/immutable/chunks/{19F8thw1.js → eYob4ynm.js} +1 -1
- package/web/app/immutable/chunks/{AF5xKPfV.js → etKulcEH.js} +1 -1
- package/web/app/immutable/chunks/{ClfTOQ5L.js → fKsoycU6.js} +1 -1
- package/web/app/immutable/chunks/{Cpwl5RRn.js → gIgvBwPt.js} +1 -1
- package/web/app/immutable/chunks/h8IoI-w7.js +9 -0
- package/web/app/immutable/chunks/{DiCMHWTR.js → hUiIfi2t.js} +1 -1
- package/web/app/immutable/chunks/{BxiJOwnz.js → hYDzZ9as.js} +1 -1
- package/web/app/immutable/chunks/{CP06IBS7.js → i8qNDIdz.js} +1 -1
- package/web/app/immutable/chunks/{QCq950da.js → j-Hd81da.js} +1 -1
- package/web/app/immutable/chunks/{C1XicA-w.js → ja3pdsid.js} +1 -1
- package/web/app/immutable/chunks/{D4qqUzAr.js → jn5owXje.js} +1 -1
- package/web/app/immutable/chunks/{CBTot2K1.js → qmO_2WOw.js} +1 -1
- package/web/app/immutable/chunks/{MED7rLah.js → r3MPkSU0.js} +1 -1
- package/web/app/immutable/chunks/{jnmyog2T.js → tVfn9CHP.js} +1 -1
- package/web/app/immutable/chunks/{B3W2oJ3u.js → uDDQZzPe.js} +1 -1
- package/web/app/immutable/chunks/{dKjrvSqn.js → wc9xM_2L.js} +1 -1
- package/web/app/immutable/chunks/{Br5d6l04.js → yJa3kvR1.js} +1 -1
- package/web/app/immutable/chunks/{C6gBBEr6.js → ye8JXfxU.js} +1 -1
- package/web/app/immutable/entry/{app.BlqNT7Cr.js → app.rwgCwLre.js} +3 -3
- package/web/app/immutable/entry/start.CHX_XseY.js +1 -0
- package/web/app/immutable/nodes/{0.ShO9PneW.js → 0.CAiwn7VU.js} +1 -1
- package/web/app/immutable/nodes/{1.CWY9gUhn.js → 1.4C-qOEjD.js} +1 -1
- package/web/app/immutable/nodes/{10.BPcvGGhE.js → 10.CSnI2pUC.js} +1 -1
- package/web/app/immutable/nodes/{11.BtNxR4dm.js → 11.DeNilyai.js} +1 -1
- package/web/app/immutable/nodes/{12.DQmthXqN.js → 12.ySK4H8-2.js} +1 -1
- package/web/app/immutable/nodes/{13.pfWPVnQT.js → 13._q8cT7vQ.js} +3 -3
- package/web/app/immutable/nodes/{14.C46jjudj.js → 14.BVMi0m8a.js} +1 -1
- package/web/app/immutable/nodes/{15.CkuJDDnR.js → 15.DZYm8wgy.js} +1 -1
- package/web/app/immutable/nodes/{16.DxDrMp3A.js → 16.2kka0tX2.js} +2 -2
- package/web/app/immutable/nodes/{2.BY4xMtJS.js → 2.BOqim1UO.js} +4 -4
- package/web/app/immutable/nodes/{3.RPzUk4Sw.js → 3.rvoF1b9l.js} +1 -1
- package/web/app/immutable/nodes/{4.ZFgOw7Ux.js → 4.COWGFPUE.js} +1 -1
- package/web/app/immutable/nodes/5.ClB4PiMc.js +5 -0
- package/web/app/immutable/nodes/{6.BqCf3vb3.js → 6.B09HHXQ8.js} +1 -1
- package/web/app/immutable/nodes/{7.CJYSYpjI.js → 7.ivApEpSz.js} +1 -1
- package/web/app/immutable/nodes/8.BSIvYD1L.js +15 -0
- package/web/app/immutable/nodes/{9.p1SC8ote.js → 9.C9K9J_Xm.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/-URcs0EB.js +0 -4
- package/web/app/immutable/chunks/2zKcFAvZ.js +0 -1
- package/web/app/immutable/chunks/B6Eksue8.js +0 -4
- package/web/app/immutable/chunks/BAqR9jtB.js +0 -1
- package/web/app/immutable/chunks/BSwWMzab.js +0 -9
- package/web/app/immutable/chunks/B_-1t0b5.js +0 -1
- package/web/app/immutable/chunks/C6krgOsR.js +0 -324
- package/web/app/immutable/chunks/C80u9j_3.js +0 -2
- package/web/app/immutable/chunks/CUPAS0zd.js +0 -1
- package/web/app/immutable/chunks/CZI4_vlI.js +0 -1
- package/web/app/immutable/chunks/C_KYY7ZK.js +0 -12
- package/web/app/immutable/chunks/D5XH3yqM.js +0 -2
- package/web/app/immutable/chunks/DChetNRi.js +0 -2
- package/web/app/immutable/chunks/jq7ACadW.js +0 -1
- package/web/app/immutable/entry/start.DaNUqzZq.js +0 -1
- package/web/app/immutable/nodes/5.BKaPpN7j.js +0 -5
- package/web/app/immutable/nodes/8.B_FmoLB7.js +0 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as S}from"./BJzHxIyr.js";import{aE as g}from"./DYhIMPy1.js";import{g as c}from"./
|
|
1
|
+
import{a as S}from"./BJzHxIyr.js";import{aE as g}from"./DYhIMPy1.js";import{g as c}from"./BPhG_Xtj.js";import{p as l}from"./IIdGbw6g.js";import{d as I}from"./B0Z-1lwJ.js";import{dy as w}from"./Cti1rV_x.js";import{AD as f,g as y,Hp as o,gO as A,u7 as m,u8 as N,ua as b}from"./h8IoI-w7.js";import{g as D,n as h}from"./ChLTaT6L.js";import{S as W,a as R,n as O}from"./DsRw0NLx.js";import{n as E,o as v}from"./DXYkWPe_.js";const k="intent:onboarding-skip:v1";function P(e){return f.getItem(h(k,e))==="1"}function re(e){P(e)||f.setItem(h(k,e),"1")}function _(e){return e.connections?.hasReceivedList===!0&&P(D(e))}function F(e,a){return e.some(t=>t.id!==y&&t.id!==a&&t.status!=="Archived"&&t.status!=="Deleted")}function j(e,a,t=!1){return t||F(e,a)?"/":"/workspace/new"}function d(e,a){return j(w.select(e),a,_(e))}const se=Object.freeze(Object.defineProperty({__proto__:null,resolveWindowEmptyDestination:d},Symbol.toStringTag,{value:"Module"})),r=new S("WorkspaceNavigation");async function L(e){r.info(`[navigateToAgent] Navigating to agent: ${e}`);const t=g(l).params.id;if(!t){r.error("[navigateToAgent] No workspace ID found in current page params");return}const n=new URL(window.location.href);n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","agent"),n.searchParams.set("selectedAgent",e),n.searchParams.delete("selectedTerminal"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"agent",e))}async function $(e){r.info(`[navigateToTerminal] Navigating to terminal: ${e}`);const t=g(l).params.id;if(!t){r.error("[navigateToTerminal] No workspace ID found in current page params");return}const n=new URL(window.location.href),i=n.searchParams.get("drawerOpen")==="1",s=n.searchParams.get("drawerType")==="terminal";(!i||!s)&&n.searchParams.set("drawerOpen","1"),n.searchParams.set("drawerType","terminal"),n.searchParams.set("selectedTerminal",e),n.searchParams.delete("selectedAgent"),await c(n.toString(),{replaceState:!0}),o.dispatch(m(t,"terminal",e))}function C(e){return!e||!(e instanceof Element)?void 0:e.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}async function p(e,a){r.info(`[navigateToNote] Navigating to note: ${e}`,a);const t=g(l),n=a?.workspaceId??t.params.id;if(!n){r.error("[navigateToNote] No workspace ID found in current page params");return}o.dispatch(b(n,e,{openInAdjacentPanel:a?.openInAdjacentPanel??!1,openInNewAdjacentPanel:a?.openInNewAdjacentPanel??!1,sourcePanelId:a?.sourcePanelId}))}async function U(e,a,t){r.info(`[navigateToFile] Navigating to file: ${e}${a?` (line ${a})`:""}`,t);const i=g(l).params.id;if(!i){r.error("[navigateToFile] No workspace ID found in current page params");return}o.dispatch(N(i,e,{line:a,openInAdjacentPanel:t?.openInAdjacentPanel??!1,sourcePanelId:t?.sourcePanelId}))}async function M(){r.info("[navigateToSpec] Navigating to workspace spec"),await p("spec")}async function B(){r.info("[closeDrawer] Closing drawer");const a=g(l).params.id;if(!a){r.error("[closeDrawer] No workspace ID found in current page params");return}const t=new URL(window.location.href);t.searchParams.set("drawerOpen","0"),t.searchParams.delete("selectedAgent"),t.searchParams.delete("selectedTerminal"),await c(t.toString(),{replaceState:!0}),o.dispatch(A(a))}async function K(){r.info("[clearMainContent] Clearing main content");const e=new URL(window.location.href);e.searchParams.set("mainContentType","empty"),e.searchParams.delete("selectedNoteId"),e.searchParams.delete("selectedFile"),e.searchParams.delete("line"),await c(e.toString(),{replaceState:!1})}async function H(e,a,t){r.info("[navigateToTask] Navigating to task",{noteId:e,taskPosition:a,taskText:t}),await p(e);const n=()=>{I("scroll-to-task",{noteId:e,taskPosition:a,taskText:t},{bubbles:!0}),r.debug("[navigateToTask] Dispatched scroll-to-task event",{noteId:e,taskPosition:a})},i=[100,300,600];for(const s of i)setTimeout(n,s)}async function G(e){r.info("[navigateToSettings] Navigating to settings",e);const a=new URL("/settings",window.location.origin),t=window.location.pathname.match(/^\/workspace\/([^/]+)/)?.[1],n=t==="new"?void 0:t,i=e?.workspaceId??n;if(e?.tab&&a.searchParams.set("tab",e.tab),e?.specialist&&a.searchParams.set("specialist",e.specialist),e?.view&&a.searchParams.set("view",e.view),i&&a.searchParams.set("workspaceId",i),e?.hash&&(a.hash=e.hash),typeof window<"u"&&window.location.pathname==="/settings"){if(e?.tab||e?.specialist||e?.view||e?.workspaceId){const s=new URL(window.location.href);e?.tab&&s.searchParams.set("tab",e.tab),e?.specialist&&s.searchParams.set("specialist",e.specialist),e?.view&&s.searchParams.set("view",e.view),e?.workspaceId&&s.searchParams.set("workspaceId",e.workspaceId),e?.hash&&(s.hash=e.hash),await c(s.toString(),{replaceState:!0});return}if(e?.hash){const s=`#${e.hash}`;window.location.hash===s&&(window.location.hash=""),window.location.hash=s;return}return}await O(a.pathname+a.search+a.hash)}function T(){const e=typeof sessionStorage>"u"?null:sessionStorage.getItem(W);if(e&&e!=="/"&&!R(e))return e;const a=u();return a?`/workspace/${a.id}`:d(o.state)}async function z(){const e=T();r.info("[navigateBackFromSettings] Navigating back to:",e),await E(e)}function u(e){return w.select(o.state).find(a=>a.id!==e&&a.status!=="Archived"&&a.status!=="Deleted")}async function Y(){const e=u();if(e){r.info("[navigateToFirstWorkspace] Showing workspace:",e.id),await v(e.id);return}const a=d(o.state);r.info("[navigateToFirstWorkspace] Navigating to:",a),await c(a)}async function V(e){const a=u(e);if(a){r.info("[navigateAfterWorkspaceRemoval] Showing workspace:",a.id),await v(a.id);return}const t=d(o.state,e);r.info("[navigateAfterWorkspaceRemoval] Navigating to:",t),await c(t)}const ie=Object.freeze(Object.defineProperty({__proto__:null,clearMainContent:K,closeDrawer:B,findSourcePanelId:C,getSettingsPreviousPath:T,navigateAfterWorkspaceRemoval:V,navigateBackFromSettings:z,navigateToAgent:L,navigateToFile:U,navigateToFirstWorkspace:Y,navigateToNote:p,navigateToSettings:G,navigateToSpec:M,navigateToTask:H,navigateToTerminal:$},Symbol.toStringTag,{value:"Module"}));export{U as a,Y as b,p as c,G as d,H as e,C as f,d as g,ie as h,_ as i,z as n,re as r,se as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Ye,bq as h,a_ as M,by as Ze,b as $e,bs as nt,bo as k,bu as Xe}from"./BAqR9jtB.js";import{bo as st,bs as et,a7 as V,ay as y,aD as e,bS as L,W as c,a5 as Pe,bA as De,bH as X,bl as _e,b_ as oe,bO as de,bn as tt,bf as je,bV as Ee,aA as v,c9 as w,aB as U,be as it,b$ as lt,bj as dt,cd as ct,ca as He,bk as ut}from"./DYhIMPy1.js";import{i as G}from"./BHqHNrOT.js";import{Hp as Ve,mp as pt,tH as ft}from"./BSwWMzab.js";import{b4 as ht}from"./C80u9j_3.js";import{ck as vt}from"./DY6JypjK.js";import{c as gt}from"./ChTqQfQN.js";import{i as Le,t as Ue}from"./H2jLkRRS.js";import{v as _t}from"./UuiGcpAE.js";import{d as mt}from"./B0Z-1lwJ.js";import{F as Re,av as bt,aw as kt,cQ as Je,aX as qe,be as wt,an as yt,am as At,cN as Ge}from"./DKXEy5Lq.js";import{n as K,w as Ft}from"./Bc-8qHYh.js";import{h as Wt,s as Ne,k as xe,a as Te,d as Ct}from"./BPk16bSc.js";import{s as xt}from"./DiCMHWTR.js";import{f as It,ai as Pt,aX as Dt}from"./C9gP-gRX.js";import"./7ZJvg7ev.js";import{c as Q}from"./B2RRuLl5.js";import{a as Mt,r as Et}from"./D4qqUzAr.js";import{M as Ot,m as Be,t as ze}from"./7IyNIHph.js";import{o as Ke,r as St,q as Rt,R as Nt,p as Tt,n as Bt,j as zt,l as Xt}from"./DO2cS8JO.js";var jt=U('<img alt="" class="size-4"/>'),Ht=U('<span class="min-w-0 flex-1 text-left"><span class="block truncate"> </span> <span class="block text-muted-foreground" aria-hidden="true" data-menu-action-reason=""> </span></span>'),Vt=U("<span> </span>"),Lt=U('<span data-menu-action-detail=""> </span>'),Ut=U('<span aria-hidden="true"><!></span>'),Qe=U("<!> <!> <!>",1),Jt=U('<div class="my-1 h-px bg-border" role="separator"></div>'),Me=U("<!> <!>",1),qt=U('<!> <p data-menu-action-note=""> </p>',1),Gt=U('<span class="flex size-4 shrink-0 items-center justify-center" aria-hidden="true"><!></span> <!> <!>',1),Kt=U('<p data-menu-action-note=""> </p>'),Qt=U('<div class="pl-4"><!> <!></div>'),Yt=U('<span class="sr-only"> </span>');function me(be,d){const ke=st();if(new.target)return Ye({component:me,...be});et(d,!0);const Ie=(p,r=je)=>{var O=V(),S=y(O);{var j=W=>{const x=w(()=>Mt(r().editor));var H=V(),m=y(H);{var f=s=>{var i=jt();oe(()=>Ne(i,"src",`data:image/png;base64,${r().editor.iconBase64??""}`)),c(s,i)},o=s=>{var i=V(),b=y(i);Q(b,()=>e(x),(T,ae)=>{ae(T,{size:16})}),c(s,i)},N=s=>{{let i=w(()=>Et(r().editor.category));Re(s,{get icon(){return e(i)},size:16})}};M(m,s=>{r().editor.iconBase64?s(f):e(x)?s(o,1):s(N,-1)})}c(W,H)},R=W=>{var x=V(),H=y(x);xt(H,()=>r().iconSnippet),c(W,x)},q=W=>{{let x=w(()=>r().variant==="destructive"?"text-current":"text-muted-foreground");Re(W,{get icon(){return r().icon},get weight(){return J()},size:16,get class(){return e(x)}})}};M(S,W=>{r().editor?W(j):r().iconSnippet?W(R,1):r().icon&&W(q,2)})}c(p,O)},ne=(p,r=je)=>{var O=Qe(),S=y(O);{var j=m=>{var f=Ht(),o=Pe(f),N=_e(o,!0);Te(o,(b,T)=>ze?.(b,T),()=>r().label);var s=L(o,2),i=_e(s,!0);De(f),oe(()=>{de(N,r().label),de(i,r().disabledReason)}),c(m,f)},R=m=>{var f=Vt(),o=_e(f,!0);Te(f,(N,s)=>ze?.(N,s),()=>r().label),oe(()=>{xe(f,1,`min-w-0 truncate text-left ${r().detail?"flex-[1_0_auto]":"flex-1"}`),de(o,r().label)}),c(m,f)};M(S,m=>{r().disabledReason?m(j):m(R,-1)})}var q=L(S,2);{var W=m=>{var f=Lt(),o=_e(f,!0);Te(f,(N,s)=>ze?.(N,s),()=>r().detail),oe(()=>{xe(f,1,`ml-4 min-w-0 truncate ${(r().detailTone==="danger"?"text-danger":Be)??""}`),de(o,r().detail)}),c(m,f)};M(q,m=>{r().detail&&m(W)})}var x=L(q,2);{var H=m=>{var f=Ut(),o=Pe(f);Pt(o,{children:(N,s)=>{it();var i=lt();oe(b=>de(i,b),[()=>Dt(r().shortcut)]),c(N,i)},$$slots:{default:!0}}),De(f),oe(()=>xe(f,1,Ct(E()?"ml-4 flex h-lh shrink-0 items-center":"ml-4"))),c(m,f)};M(x,m=>{r().shortcut&&m(H)})}c(p,O)};let we=h(d,"actions",7),E=h(d,"menu",7),J=h(d,"iconWeight",7),u=h(d,"onClose",7),A=h(d,"selection",7),F=Ee(null);function Y(p){p.disabled||p.disabledReason!==void 0||(p.onClick(),u()?.())}var ce={get actions(){return we()},set actions(p){we(p),v()},get menu(){return E()},set menu(p){E(p),v()},get iconWeight(){return J()},set iconWeight(p){J(p),v()},get onClose(){return u()},set onClose(p){u(p),v()},get selection(){return A()},set selection(p){A(p),v()},$set:Ze,$on:(p,r)=>$e(d,p,r)},se=V(),ie=y(se);return Wt(ie,17,we,p=>p.id,(p,r)=>{const O=i=>{Ie(i,()=>e(r))},S=w(()=>!!(e(r).editor||e(r).iconSnippet||e(r).icon)),j=w(()=>e(r).disabled||e(r).disabledReason!==void 0),R=w(()=>e(r).disabledReason?`${ke}-${e(r).id}-reason`:void 0);var q=Qe(),W=y(q);{var x=i=>{var b=V(),T=y(b);{var ae=a=>{var n=V(),g=y(n);Q(g,()=>Ke,(C,P)=>{P(C,{})}),c(a,n)},ue=a=>{var n=Jt();c(a,n)};M(T,a=>{E()?a(ae):a(ue,-1)})}c(i,b)};M(W,i=>{e(r).dividerBefore&&i(x)})}var H=L(W,2);{var m=i=>{var b=V(),T=y(b);{var ae=g=>{var C=V(),P=y(C);Q(P,()=>Tt,(I,D)=>{D(I,{children:(B,Z)=>{var $=Me(),pe=y($);{let te=w(()=>e(S)?O:void 0);Q(pe,()=>St,(fe,he)=>{he(fe,{get leading(){return e(te)},get disabled(){return e(j)},get"aria-describedby"(){return e(R)},get"data-action-id"(){return e(r).id},children:(ve,ye)=>{ne(ve,()=>e(r))},$$slots:{default:!0}})})}var ee=L(pe,2);{let te=w(()=>e(r).note?`${ke}-${e(r).id}-note`:void 0);Q(ee,()=>Rt,(fe,he)=>{he(fe,{class:"w-60",get"aria-describedby"(){return e(te)},children:(ve,ye)=>{var t=Me(),l=y(t);{var _=re=>{var Ae=Me(),Fe=y(Ae);{let Ce=w(()=>e(r).submenu.find(ge=>ge.checked)?.id??"");Q(Fe,()=>Nt,(ge,Se)=>{Se(ge,{get value(){return e(Ce)},get"aria-label"(){return e(r).label},children:(rt,$t)=>{{let at=w(()=>e(r).submenu.filter(ot=>ot.checked!==void 0));me(rt,{get actions(){return e(at)},selection:"single",get menu(){return E()},get iconWeight(){return J()},get onClose(){return u()}})}},$$slots:{default:!0}})})}var We=L(Fe,2);{let Ce=w(()=>e(r).submenu.filter(ge=>ge.checked===void 0));me(We,{get actions(){return e(Ce)},get menu(){return E()},get iconWeight(){return J()},get onClose(){return u()}})}c(re,Ae)},z=re=>{me(re,{get actions(){return e(r).submenu},get menu(){return E()},get iconWeight(){return J()},get onClose(){return u()}})};M(l,re=>{e(r).selection==="single"?re(_):re(z,-1)})}var le=L(l,2);{var Oe=re=>{var Ae=qt(),Fe=y(Ae);Q(Fe,()=>Ke,(ge,Se)=>{Se(ge,{})});var We=L(Fe,2),Ce=_e(We,!0);oe(()=>{Ne(We,"id",`${ke}-${e(r).id}-note`),xe(We,1,`type-caption px-2 py-1 ${Be}`),de(Ce,e(r).note)}),c(re,Ae)};M(le,re=>{e(r).note&&re(Oe)})}c(ve,t)},$$slots:{default:!0}})})}c(B,$)},$$slots:{default:!0}})}),c(g,C)},ue=g=>{var C=V(),P=y(C);{let I=w(()=>e(S)?O:void 0);Q(P,()=>Bt,(D,B)=>{B(D,{get leading(){return e(I)},get value(){return e(r).id},get disabled(){return e(j)},get"aria-describedby"(){return e(R)},closeOnSelect:!0,onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:(Z,$)=>{ne(Z,()=>e(r))},$$slots:{default:!0}})})}c(g,C)},a=g=>{var C=V(),P=y(C);{let I=w(()=>e(S)?O:void 0);Q(P,()=>zt,(D,B)=>{B(D,{get leading(){return e(I)},get checked(){return e(r).checked},get disabled(){return e(j)},get"aria-describedby"(){return e(R)},closeOnSelect:!0,onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:(Z,$)=>{ne(Z,()=>e(r))},$$slots:{default:!0}})})}c(g,C)},n=g=>{var C=V(),P=y(C);{let I=w(()=>e(S)?O:void 0),D=w(()=>e(r).variant==="destructive");Q(P,()=>Xt,(B,Z)=>{Z(B,{get leading(){return e(I)},get destructive(){return e(D)},get disabled(){return e(j)},get"aria-describedby"(){return e(R)},onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:($,pe)=>{ne($,()=>e(r))},$$slots:{default:!0}})})}c(g,C)};M(T,g=>{e(r).submenu?g(ae):A()==="single"&&e(r).checked!==void 0?g(ue,1):e(r).checked!==void 0?g(a,2):g(n,-1)})}c(i,b)},f=i=>{me(i,{get actions(){return e(r).submenu},get menu(){return E()},get iconWeight(){return J()},get onClose(){return u()}})},o=i=>{var b=Me(),T=y(b);{let a=w(()=>e(r).variant==="destructive"?"text-danger hover:text-danger":""),n=w(()=>e(r).submenu?e(F)===e(r).id:void 0);It(T,{variant:"ghost",size:"sm",get class(){return`w-full justify-start gap-2 ${e(a)??""}`},get disabled(){return e(j)},get"aria-describedby"(){return e(R)},get"aria-expanded"(){return e(n)},onclick:()=>e(r).submenu?X(F,e(F)===e(r).id?null:e(r).id,!0):Y(e(r)),children:(g,C)=>{var P=Gt(),I=y(P),D=Pe(I);Ie(D,()=>e(r)),De(I);var B=L(I,2);ne(B,()=>e(r));var Z=L(B,2);{var $=ee=>{{let te=w(()=>e(F)===e(r).id?bt:kt);Re(ee,{get icon(){return e(te)},size:12})}},pe=ee=>{var te=V(),fe=y(te);{let he=w(()=>e(r).checked?"checked":"empty");Q(fe,()=>Ot,(ve,ye)=>{ye(ve,{get state(){return e(he)}})})}c(ee,te)};M(Z,ee=>{e(r).submenu?ee($):e(r).checked!==void 0&&ee(pe,1)})}c(g,P)},$$slots:{default:!0}})}var ae=L(T,2);{var ue=a=>{var n=Qt(),g=Pe(n);me(g,{get actions(){return e(r).submenu},get menu(){return E()},get iconWeight(){return J()},get onClose(){return u()}});var C=L(g,2);{var P=I=>{var D=Kt(),B=_e(D,!0);oe(()=>{xe(D,1,`type-caption px-2 py-1 ${Be}`),de(B,e(r).note)}),c(I,D)};M(C,I=>{e(r).note&&I(P)})}De(n),c(a,n)};M(ae,a=>{e(r).submenu&&e(F)===e(r).id&&a(ue)})}c(i,b)};M(H,i=>{E()?i(m):e(r).id==="open-in"&&e(r).submenu?i(f,1):i(o,-1)})}var N=L(H,2);{var s=i=>{var b=Yt(),T=_e(b,!0);oe(()=>{Ne(b,"id",e(R)),de(T,e(r).disabledReason)}),c(i,b)};M(N,i=>{e(r).disabledReason&&i(s)})}c(p,q)}),c(be,se),tt(ce)}function Zt(be,d){if(new.target)return Ye({component:Zt,...be});et(d,!0);const ke=()=>Xe(T,"$installedEditors$",ne),Ie=()=>Xe(ue,"$isWorkspaceHostLocal$",ne),[ne,we]=nt();let E=h(d,"layout",7,"list"),J=h(d,"iconWeight",7),u=h(d,"filePath",7,""),A=h(d,"workspaceId",7,""),F=h(d,"isDirectory",7,!0),Y=h(d,"onDelete",7,void 0),ce=h(d,"onArchive",7,void 0),se=h(d,"onUnarchive",7,void 0),ie=h(d,"isArchived",7,!1),p=h(d,"onClose",7,void 0),r=h(d,"showDeleteOption",7,!0),O=h(d,"showArchiveOption",7,!1),S=h(d,"showPathCopy",7,!0),j=h(d,"showFileNameCopy",7,!1),R=h(d,"showFileActions",7,!0),q=h(d,"workspaceFolderPath",7,""),W=h(d,"isDiff",7,!1),x=h(d,"isWorkspaceRoot",7,!1),H=h(d,"additionalActions",23,()=>[]),m=h(d,"showDeleteFileOption",7,!1),f=h(d,"onFileDeleted",7,void 0);const o=gt("WorkspaceActionsMenu");let N=!1;dt(()=>{N=!0});function s(){N||p()?.()}const i=_t("externalEditors"),b=ct(A());He(()=>{b.set(A())});const T=ht(b),ae=w(ke),ue=vt(b);let a=Ee(""),n=Ee(""),g=Ee(!1);ut(()=>{Ve.dispatch(pt())}),He(()=>{u()&&A()?G("workspace:get",{id:A()}).then(t=>{if(t&&t.success&&t.data){const l=t.data,_=l.worktreePath||l.repositoryPath||l.path,z=q()==="__WORKSPACE_ROOT__"?_:q()||_;if(z){const le=z.replace(/\\/g,"/");x()?X(a,le,!0):Le(u())?X(a,u().replace(/\\/g,"/"),!0):X(a,`${le}/${u()}`.replace(/\/+/g,"/"),!0),X(n,le,!0),o.info("[WorkspaceActionsMenu] Resolved file path:",{filePath:u(),workspacePath:z,resolvedPath:e(a)})}else X(a,u()),X(n,""),l.status!=="archived"&&l.status!=="deleted"&&o.warn("[WorkspaceActionsMenu] No workspace path found:",l)}else X(a,u()),X(n,""),t?.error&&!t.error.includes("not found")&&o.warn("[WorkspaceActionsMenu] Workspace not available:",t)}).catch(t=>{X(a,u()),X(n,""),t?.message?.includes("not found")||o.error("[WorkspaceActionsMenu] Failed to resolve path:",t)}):(X(a,u()),o.info("[WorkspaceActionsMenu] Using filePath directly:",{filePath:u(),workspaceId:A()}))});async function C(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for VSCode");return}try{if(W()&&!F()){o.info("[WorkspaceActionsMenu] Opening diff in VSCode:",{resolvedPath:e(a)}),await G("vscode:open-git-diff",{filePath:e(a),workspacePath:e(n)||void 0}),s();return}let t=e(a);if(e(n))!F()&&!x()?t={folder:e(n),file:e(a)}:t=e(n);else if(!F()){const l=e(a).includes("\\")?"\\":"/",_=e(a).split(l);_.length>1&&(t={folder:_.slice(0,-1).join(l),file:e(a)})}await G("vscode:open",t),s()}catch(t){o.error("Failed to open in VSCode:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"VS Code"}))}}async function P(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for JetBrains");return}try{let t=e(a);e(n)&&!F()?t={folder:e(n),file:e(a)}:e(n)&&(t=e(n)),await G("jetbrains:open",t),s()}catch(t){o.error("Failed to open in JetBrains:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"JetBrains"}))}}async function I(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for Xcode");return}try{if(A()&&e(n)){Ve.dispatch(ft(A(),e(n),F()?void 0:e(a))),s();return}let t=e(a);e(n)&&!F()?t={folder:e(n),file:e(a)}:e(n)&&(t={folder:e(n)}),await G("xcode:open",t),s()}catch(t){o.error("Failed to open in Xcode:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"Xcode"}))}}async function D(t){if(o.info("[WorkspaceActionsMenu] openInEditor called",{editorId:t.id,appName:t.appName,handlerType:t.handlerType,resolvedPath:e(a),isDirectory:F()}),!e(a)){o.warn("[WorkspaceActionsMenu] openInEditor: No resolved path, aborting");return}const l=F()?e(a):e(a).substring(0,e(a).lastIndexOf("/"));o.info(`[WorkspaceActionsMenu] openInEditor: targetPath=${l}, handlerType=${t.handlerType}`);try{switch(t.handlerType){case"finder":o.info("[WorkspaceActionsMenu] openInEditor: Invoking shell:showItemInFolder"),await G("shell:showItemInFolder",{path:l});break;case"vscode":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInVSCode"),await C();return;case"jetbrains":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInJetBrains"),await P();return;case"xcode":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInXcode"),await I();return;case"generic":default:{o.info(`[WorkspaceActionsMenu] openInEditor: Invoking external-editors:open for ${t.id}`);const _=await G("external-editors:open",{editorId:t.id,path:l});o.info("[WorkspaceActionsMenu] openInEditor: external-editors:open result",_);break}}s()}catch(_){o.error(`[WorkspaceActionsMenu] Failed to open in ${t.appName}:`,_),K.error(_ instanceof Error?_.message:k.ui_workspaceActions_openFailed_error({name:t.appName}))}}async function B(){if(!e(a)){o.warn("No resolved path for openWithOther");return}try{let t=e(a);F()&&e(n)&&(t=e(n));const l=await G("external-editors:open-with-other",{path:t});if(!l?.success){l?.error!=="No application selected"&&(o.error("Failed to open with other app:",l?.error),K.error(l?.error||k.ui_workspaceActions_openOtherFailed_error()));return}s()}catch(t){o.error("Failed to open with other app:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openOtherFailed_error())}}async function Z(){if(e(a))try{await navigator.clipboard.writeText(Ue(e(a))),s()}catch(t){o.error("Failed to copy path:",t)}}async function $(){if(u())try{let t=u().replace(/\\/g,"/");if(Le(u())&&e(n)){const l=e(n).endsWith("/")?e(n):e(n)+"/";t.startsWith(l)&&(t=t.slice(l.length))}await navigator.clipboard.writeText(Ue(t)),s()}catch(t){o.error("Failed to copy workspace path:",t)}}async function pe(){if(u())try{const t=u().split(/[/\\]/).pop()||"";await navigator.clipboard.writeText(t),s()}catch(t){o.error("Failed to copy file name:",t)}}function ee(){Y()&&(Y()(),s())}async function te(){if(!(!A()||!e(a)||e(g))){X(g,!0);try{const t=u().split(/[/\\]/).pop()||"file",l=e(a);let _="";try{_=(await G("file:read",{path:l,workspaceId:A()}))?.data?.content??""}catch{}const z=await G("file:delete",{path:l,workspaceId:A()});if(z?.success){f()?.(),s();const le=K.warning(k.ui_workspaceActions_deletedFile_label({name:t}),Ft({duration:15e3,action:{label:k.ui_workspaceActions_undo_label(),onClick:async()=>{try{await G("file:write",{path:l,content:_,workspaceId:A()}),mt("file:changed",{workspaceId:A(),type:"create",filePath:l}),K.dismiss(le)}catch(Oe){o.error("[WorkspaceActionsMenu] Failed to restore file",Oe),K.error(k.ui_workspaceActions_restoreFileFailed_error())}}}}))}else K.error(k.ui_workspaceActions_deleteFileFailedDetail_error({error:z?.error||k.ui_workspaceActions_unknown_error()}))}catch(t){o.error("[WorkspaceActionsMenu] Error deleting file",t),K.error(k.ui_workspaceActions_deleteFileFailed_error())}finally{X(g,!1)}}}function fe(){ie()&&se()?(se()(),s()):!ie()&&ce()&&(ce()(),s())}const he=w(()=>{const t=[];R()&&(i&&Ie()&&t.push({id:"open-in",label:k.ui_openCombo_openInApp_tooltip(),icon:Je,onClick:()=>{},submenu:[...e(ae).map(_=>({id:`editor:${_.id}`,label:k.ui_workspaceActions_openIn_label({name:_.name}),editor:_,onClick:()=>{D(_)}})),{id:"choose-app",label:k.ui_workspaceActions_chooseApp_label(),icon:Je,onClick:()=>{B()}}]}),S()&&t.push({id:"copy-absolute-path",label:k.ui_workspaceActions_copyAbsolutePath_label(),icon:qe,disabled:!e(a),dividerBefore:t.length>0,onClick:()=>{Z()}}),S()&&!x()&&t.push({id:"copy-relative-path",label:k.ui_workspaceActions_copyRelativePath_label(),icon:qe,disabled:!u(),onClick:()=>{$()}}),j()&&!F()&&t.push({id:"copy-file-name",label:k.ui_workspaceActions_copyFileName_label(),icon:wt,disabled:!u(),onClick:()=>{pe()}}));const l=_=>_.map(z=>({...z,submenu:z.submenu?l(z.submenu):void 0,onClick:()=>{z.onClick(),s()}}));return t.push(...l(H())),O()&&(ce()||se())&&t.push({id:"archive-workspace",label:ie()?k.ui_workspaceActions_unarchiveSpace_label():k.ui_workspaceActions_archiveSpace_label(),icon:ie()?yt:At,dividerBefore:t.length>0,onClick:fe}),r()&&Y()&&t.push({id:"delete-workspace",label:k.ui_workspaceActions_deleteSpace_label(),icon:Ge,variant:"destructive",dividerBefore:t.length>0&&t.at(-1)?.id!=="archive-workspace",onClick:ee}),m()&&!F()&&t.push({id:"delete-file",label:k.ui_workspaceActions_deleteFile_label(),icon:Ge,variant:"destructive",disabled:e(g)||!e(a)||!A(),dividerBefore:t.length>0,onClick:()=>{te()}}),t});var ve={get layout(){return E()},set layout(t="list"){E(t),v()},get iconWeight(){return J()},set iconWeight(t){J(t),v()},get filePath(){return u()},set filePath(t=""){u(t),v()},get workspaceId(){return A()},set workspaceId(t=""){A(t),v()},get isDirectory(){return F()},set isDirectory(t=!0){F(t),v()},get onDelete(){return Y()},set onDelete(t=void 0){Y(t),v()},get onArchive(){return ce()},set onArchive(t=void 0){ce(t),v()},get onUnarchive(){return se()},set onUnarchive(t=void 0){se(t),v()},get isArchived(){return ie()},set isArchived(t=!1){ie(t),v()},get onClose(){return p()},set onClose(t=void 0){p(t),v()},get showDeleteOption(){return r()},set showDeleteOption(t=!0){r(t),v()},get showArchiveOption(){return O()},set showArchiveOption(t=!1){O(t),v()},get showPathCopy(){return S()},set showPathCopy(t=!0){S(t),v()},get showFileNameCopy(){return j()},set showFileNameCopy(t=!1){j(t),v()},get showFileActions(){return R()},set showFileActions(t=!0){R(t),v()},get workspaceFolderPath(){return q()},set workspaceFolderPath(t=""){q(t),v()},get isDiff(){return W()},set isDiff(t=!1){W(t),v()},get isWorkspaceRoot(){return x()},set isWorkspaceRoot(t=!1){x(t),v()},get additionalActions(){return H()},set additionalActions(t=[]){H(t),v()},get showDeleteFileOption(){return m()},set showDeleteFileOption(t=!1){m(t),v()},get onFileDeleted(){return f()},set onFileDeleted(t=void 0){f(t),v()},$set:Ze,$on:(t,l)=>$e(d,t,l)};{let t=w(()=>E()!=="list");me(be,{get actions(){return e(he)},get menu(){return e(t)},get iconWeight(){return J()}})}var ye=tt(ve);return we(),ye}export{Zt as default};
|
|
1
|
+
import{t as Ye,bq as h,a_ as M,by as Ze,b as $e,bs as nt,bo as k,bu as Xe}from"./B3iaLYr6.js";import{bo as st,bs as et,a7 as V,ay as y,aD as e,bS as L,W as c,a5 as Pe,bA as De,bH as X,bl as _e,b_ as oe,bO as de,bn as tt,bf as je,bV as Ee,aA as v,c9 as w,aB as U,be as it,b$ as lt,bj as dt,cd as ct,ca as He,bk as ut}from"./DYhIMPy1.js";import{i as G}from"./Ch8MPJbT.js";import{Hp as Ve,mp as pt,tH as ft}from"./h8IoI-w7.js";import{b6 as ht}from"./BLUkoS8T.js";import{ck as vt}from"./Cti1rV_x.js";import{c as gt}from"./ChTqQfQN.js";import{i as Le,t as Ue}from"./H2jLkRRS.js";import{v as _t}from"./CBRfvExq.js";import{d as mt}from"./B0Z-1lwJ.js";import{F as Re,av as bt,aw as kt,cQ as Je,aX as qe,be as wt,an as yt,am as At,cN as Ge}from"./dUOQ5AaY.js";import{n as K,w as Ft}from"./DYlSkPA-.js";import{h as Wt,s as Ne,k as xe,a as Te,d as Ct}from"./DEmaG7Ya.js";import{s as xt}from"./hUiIfi2t.js";import{f as It,ai as Pt,aX as Dt}from"./CpELl9t1.js";import"./D0UrvUQM.js";import{c as Q}from"./Dj42fWMH.js";import{a as Mt,r as Et}from"./jn5owXje.js";import{M as Ot,m as Be,t as ze}from"./Swkg1pRS.js";import{o as Ke,r as St,q as Rt,R as Nt,p as Tt,n as Bt,j as zt,l as Xt}from"./CqSXeJtk.js";var jt=U('<img alt="" class="size-4"/>'),Ht=U('<span class="min-w-0 flex-1 text-left"><span class="block truncate"> </span> <span class="block text-muted-foreground" aria-hidden="true" data-menu-action-reason=""> </span></span>'),Vt=U("<span> </span>"),Lt=U('<span data-menu-action-detail=""> </span>'),Ut=U('<span aria-hidden="true"><!></span>'),Qe=U("<!> <!> <!>",1),Jt=U('<div class="my-1 h-px bg-border" role="separator"></div>'),Me=U("<!> <!>",1),qt=U('<!> <p data-menu-action-note=""> </p>',1),Gt=U('<span class="flex size-4 shrink-0 items-center justify-center" aria-hidden="true"><!></span> <!> <!>',1),Kt=U('<p data-menu-action-note=""> </p>'),Qt=U('<div class="pl-4"><!> <!></div>'),Yt=U('<span class="sr-only"> </span>');function me(be,d){const ke=st();if(new.target)return Ye({component:me,...be});et(d,!0);const Ie=(p,r=je)=>{var O=V(),S=y(O);{var j=W=>{const x=w(()=>Mt(r().editor));var H=V(),m=y(H);{var f=s=>{var i=jt();oe(()=>Ne(i,"src",`data:image/png;base64,${r().editor.iconBase64??""}`)),c(s,i)},o=s=>{var i=V(),b=y(i);Q(b,()=>e(x),(T,ae)=>{ae(T,{size:16})}),c(s,i)},N=s=>{{let i=w(()=>Et(r().editor.category));Re(s,{get icon(){return e(i)},size:16})}};M(m,s=>{r().editor.iconBase64?s(f):e(x)?s(o,1):s(N,-1)})}c(W,H)},R=W=>{var x=V(),H=y(x);xt(H,()=>r().iconSnippet),c(W,x)},q=W=>{{let x=w(()=>r().variant==="destructive"?"text-current":"text-muted-foreground");Re(W,{get icon(){return r().icon},get weight(){return J()},size:16,get class(){return e(x)}})}};M(S,W=>{r().editor?W(j):r().iconSnippet?W(R,1):r().icon&&W(q,2)})}c(p,O)},ne=(p,r=je)=>{var O=Qe(),S=y(O);{var j=m=>{var f=Ht(),o=Pe(f),N=_e(o,!0);Te(o,(b,T)=>ze?.(b,T),()=>r().label);var s=L(o,2),i=_e(s,!0);De(f),oe(()=>{de(N,r().label),de(i,r().disabledReason)}),c(m,f)},R=m=>{var f=Vt(),o=_e(f,!0);Te(f,(N,s)=>ze?.(N,s),()=>r().label),oe(()=>{xe(f,1,`min-w-0 truncate text-left ${r().detail?"flex-[1_0_auto]":"flex-1"}`),de(o,r().label)}),c(m,f)};M(S,m=>{r().disabledReason?m(j):m(R,-1)})}var q=L(S,2);{var W=m=>{var f=Lt(),o=_e(f,!0);Te(f,(N,s)=>ze?.(N,s),()=>r().detail),oe(()=>{xe(f,1,`ml-4 min-w-0 truncate ${(r().detailTone==="danger"?"text-danger":Be)??""}`),de(o,r().detail)}),c(m,f)};M(q,m=>{r().detail&&m(W)})}var x=L(q,2);{var H=m=>{var f=Ut(),o=Pe(f);Pt(o,{children:(N,s)=>{it();var i=lt();oe(b=>de(i,b),[()=>Dt(r().shortcut)]),c(N,i)},$$slots:{default:!0}}),De(f),oe(()=>xe(f,1,Ct(E()?"ml-4 flex h-lh shrink-0 items-center":"ml-4"))),c(m,f)};M(x,m=>{r().shortcut&&m(H)})}c(p,O)};let we=h(d,"actions",7),E=h(d,"menu",7),J=h(d,"iconWeight",7),u=h(d,"onClose",7),A=h(d,"selection",7),F=Ee(null);function Y(p){p.disabled||p.disabledReason!==void 0||(p.onClick(),u()?.())}var ce={get actions(){return we()},set actions(p){we(p),v()},get menu(){return E()},set menu(p){E(p),v()},get iconWeight(){return J()},set iconWeight(p){J(p),v()},get onClose(){return u()},set onClose(p){u(p),v()},get selection(){return A()},set selection(p){A(p),v()},$set:Ze,$on:(p,r)=>$e(d,p,r)},se=V(),ie=y(se);return Wt(ie,17,we,p=>p.id,(p,r)=>{const O=i=>{Ie(i,()=>e(r))},S=w(()=>!!(e(r).editor||e(r).iconSnippet||e(r).icon)),j=w(()=>e(r).disabled||e(r).disabledReason!==void 0),R=w(()=>e(r).disabledReason?`${ke}-${e(r).id}-reason`:void 0);var q=Qe(),W=y(q);{var x=i=>{var b=V(),T=y(b);{var ae=a=>{var n=V(),g=y(n);Q(g,()=>Ke,(C,P)=>{P(C,{})}),c(a,n)},ue=a=>{var n=Jt();c(a,n)};M(T,a=>{E()?a(ae):a(ue,-1)})}c(i,b)};M(W,i=>{e(r).dividerBefore&&i(x)})}var H=L(W,2);{var m=i=>{var b=V(),T=y(b);{var ae=g=>{var C=V(),P=y(C);Q(P,()=>Tt,(I,D)=>{D(I,{children:(B,Z)=>{var $=Me(),pe=y($);{let te=w(()=>e(S)?O:void 0);Q(pe,()=>St,(fe,he)=>{he(fe,{get leading(){return e(te)},get disabled(){return e(j)},get"aria-describedby"(){return e(R)},get"data-action-id"(){return e(r).id},children:(ve,ye)=>{ne(ve,()=>e(r))},$$slots:{default:!0}})})}var ee=L(pe,2);{let te=w(()=>e(r).note?`${ke}-${e(r).id}-note`:void 0);Q(ee,()=>Rt,(fe,he)=>{he(fe,{class:"w-60",get"aria-describedby"(){return e(te)},children:(ve,ye)=>{var t=Me(),l=y(t);{var _=re=>{var Ae=Me(),Fe=y(Ae);{let Ce=w(()=>e(r).submenu.find(ge=>ge.checked)?.id??"");Q(Fe,()=>Nt,(ge,Se)=>{Se(ge,{get value(){return e(Ce)},get"aria-label"(){return e(r).label},children:(rt,$t)=>{{let at=w(()=>e(r).submenu.filter(ot=>ot.checked!==void 0));me(rt,{get actions(){return e(at)},selection:"single",get menu(){return E()},get iconWeight(){return J()},get onClose(){return u()}})}},$$slots:{default:!0}})})}var We=L(Fe,2);{let Ce=w(()=>e(r).submenu.filter(ge=>ge.checked===void 0));me(We,{get actions(){return e(Ce)},get menu(){return E()},get iconWeight(){return J()},get onClose(){return u()}})}c(re,Ae)},z=re=>{me(re,{get actions(){return e(r).submenu},get menu(){return E()},get iconWeight(){return J()},get onClose(){return u()}})};M(l,re=>{e(r).selection==="single"?re(_):re(z,-1)})}var le=L(l,2);{var Oe=re=>{var Ae=qt(),Fe=y(Ae);Q(Fe,()=>Ke,(ge,Se)=>{Se(ge,{})});var We=L(Fe,2),Ce=_e(We,!0);oe(()=>{Ne(We,"id",`${ke}-${e(r).id}-note`),xe(We,1,`type-caption px-2 py-1 ${Be}`),de(Ce,e(r).note)}),c(re,Ae)};M(le,re=>{e(r).note&&re(Oe)})}c(ve,t)},$$slots:{default:!0}})})}c(B,$)},$$slots:{default:!0}})}),c(g,C)},ue=g=>{var C=V(),P=y(C);{let I=w(()=>e(S)?O:void 0);Q(P,()=>Bt,(D,B)=>{B(D,{get leading(){return e(I)},get value(){return e(r).id},get disabled(){return e(j)},get"aria-describedby"(){return e(R)},closeOnSelect:!0,onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:(Z,$)=>{ne(Z,()=>e(r))},$$slots:{default:!0}})})}c(g,C)},a=g=>{var C=V(),P=y(C);{let I=w(()=>e(S)?O:void 0);Q(P,()=>zt,(D,B)=>{B(D,{get leading(){return e(I)},get checked(){return e(r).checked},get disabled(){return e(j)},get"aria-describedby"(){return e(R)},closeOnSelect:!0,onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:(Z,$)=>{ne(Z,()=>e(r))},$$slots:{default:!0}})})}c(g,C)},n=g=>{var C=V(),P=y(C);{let I=w(()=>e(S)?O:void 0),D=w(()=>e(r).variant==="destructive");Q(P,()=>Xt,(B,Z)=>{Z(B,{get leading(){return e(I)},get destructive(){return e(D)},get disabled(){return e(j)},get"aria-describedby"(){return e(R)},onSelect:()=>Y(e(r)),get"data-action-id"(){return e(r).id},children:($,pe)=>{ne($,()=>e(r))},$$slots:{default:!0}})})}c(g,C)};M(T,g=>{e(r).submenu?g(ae):A()==="single"&&e(r).checked!==void 0?g(ue,1):e(r).checked!==void 0?g(a,2):g(n,-1)})}c(i,b)},f=i=>{me(i,{get actions(){return e(r).submenu},get menu(){return E()},get iconWeight(){return J()},get onClose(){return u()}})},o=i=>{var b=Me(),T=y(b);{let a=w(()=>e(r).variant==="destructive"?"text-danger hover:text-danger":""),n=w(()=>e(r).submenu?e(F)===e(r).id:void 0);It(T,{variant:"ghost",size:"sm",get class(){return`w-full justify-start gap-2 ${e(a)??""}`},get disabled(){return e(j)},get"aria-describedby"(){return e(R)},get"aria-expanded"(){return e(n)},onclick:()=>e(r).submenu?X(F,e(F)===e(r).id?null:e(r).id,!0):Y(e(r)),children:(g,C)=>{var P=Gt(),I=y(P),D=Pe(I);Ie(D,()=>e(r)),De(I);var B=L(I,2);ne(B,()=>e(r));var Z=L(B,2);{var $=ee=>{{let te=w(()=>e(F)===e(r).id?bt:kt);Re(ee,{get icon(){return e(te)},size:12})}},pe=ee=>{var te=V(),fe=y(te);{let he=w(()=>e(r).checked?"checked":"empty");Q(fe,()=>Ot,(ve,ye)=>{ye(ve,{get state(){return e(he)}})})}c(ee,te)};M(Z,ee=>{e(r).submenu?ee($):e(r).checked!==void 0&&ee(pe,1)})}c(g,P)},$$slots:{default:!0}})}var ae=L(T,2);{var ue=a=>{var n=Qt(),g=Pe(n);me(g,{get actions(){return e(r).submenu},get menu(){return E()},get iconWeight(){return J()},get onClose(){return u()}});var C=L(g,2);{var P=I=>{var D=Kt(),B=_e(D,!0);oe(()=>{xe(D,1,`type-caption px-2 py-1 ${Be}`),de(B,e(r).note)}),c(I,D)};M(C,I=>{e(r).note&&I(P)})}De(n),c(a,n)};M(ae,a=>{e(r).submenu&&e(F)===e(r).id&&a(ue)})}c(i,b)};M(H,i=>{E()?i(m):e(r).id==="open-in"&&e(r).submenu?i(f,1):i(o,-1)})}var N=L(H,2);{var s=i=>{var b=Yt(),T=_e(b,!0);oe(()=>{Ne(b,"id",e(R)),de(T,e(r).disabledReason)}),c(i,b)};M(N,i=>{e(r).disabledReason&&i(s)})}c(p,q)}),c(be,se),tt(ce)}function Zt(be,d){if(new.target)return Ye({component:Zt,...be});et(d,!0);const ke=()=>Xe(T,"$installedEditors$",ne),Ie=()=>Xe(ue,"$isWorkspaceHostLocal$",ne),[ne,we]=nt();let E=h(d,"layout",7,"list"),J=h(d,"iconWeight",7),u=h(d,"filePath",7,""),A=h(d,"workspaceId",7,""),F=h(d,"isDirectory",7,!0),Y=h(d,"onDelete",7,void 0),ce=h(d,"onArchive",7,void 0),se=h(d,"onUnarchive",7,void 0),ie=h(d,"isArchived",7,!1),p=h(d,"onClose",7,void 0),r=h(d,"showDeleteOption",7,!0),O=h(d,"showArchiveOption",7,!1),S=h(d,"showPathCopy",7,!0),j=h(d,"showFileNameCopy",7,!1),R=h(d,"showFileActions",7,!0),q=h(d,"workspaceFolderPath",7,""),W=h(d,"isDiff",7,!1),x=h(d,"isWorkspaceRoot",7,!1),H=h(d,"additionalActions",23,()=>[]),m=h(d,"showDeleteFileOption",7,!1),f=h(d,"onFileDeleted",7,void 0);const o=gt("WorkspaceActionsMenu");let N=!1;dt(()=>{N=!0});function s(){N||p()?.()}const i=_t("externalEditors"),b=ct(A());He(()=>{b.set(A())});const T=ht(b),ae=w(ke),ue=vt(b);let a=Ee(""),n=Ee(""),g=Ee(!1);ut(()=>{Ve.dispatch(pt())}),He(()=>{u()&&A()?G("workspace:get",{id:A()}).then(t=>{if(t&&t.success&&t.data){const l=t.data,_=l.worktreePath||l.repositoryPath||l.path,z=q()==="__WORKSPACE_ROOT__"?_:q()||_;if(z){const le=z.replace(/\\/g,"/");x()?X(a,le,!0):Le(u())?X(a,u().replace(/\\/g,"/"),!0):X(a,`${le}/${u()}`.replace(/\/+/g,"/"),!0),X(n,le,!0),o.info("[WorkspaceActionsMenu] Resolved file path:",{filePath:u(),workspacePath:z,resolvedPath:e(a)})}else X(a,u()),X(n,""),l.status!=="archived"&&l.status!=="deleted"&&o.warn("[WorkspaceActionsMenu] No workspace path found:",l)}else X(a,u()),X(n,""),t?.error&&!t.error.includes("not found")&&o.warn("[WorkspaceActionsMenu] Workspace not available:",t)}).catch(t=>{X(a,u()),X(n,""),t?.message?.includes("not found")||o.error("[WorkspaceActionsMenu] Failed to resolve path:",t)}):(X(a,u()),o.info("[WorkspaceActionsMenu] Using filePath directly:",{filePath:u(),workspaceId:A()}))});async function C(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for VSCode");return}try{if(W()&&!F()){o.info("[WorkspaceActionsMenu] Opening diff in VSCode:",{resolvedPath:e(a)}),await G("vscode:open-git-diff",{filePath:e(a),workspacePath:e(n)||void 0}),s();return}let t=e(a);if(e(n))!F()&&!x()?t={folder:e(n),file:e(a)}:t=e(n);else if(!F()){const l=e(a).includes("\\")?"\\":"/",_=e(a).split(l);_.length>1&&(t={folder:_.slice(0,-1).join(l),file:e(a)})}await G("vscode:open",t),s()}catch(t){o.error("Failed to open in VSCode:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"VS Code"}))}}async function P(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for JetBrains");return}try{let t=e(a);e(n)&&!F()?t={folder:e(n),file:e(a)}:e(n)&&(t=e(n)),await G("jetbrains:open",t),s()}catch(t){o.error("Failed to open in JetBrains:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"JetBrains"}))}}async function I(){if(!e(a)){o.warn("[WorkspaceActionsMenu] No resolved path for Xcode");return}try{if(A()&&e(n)){Ve.dispatch(ft(A(),e(n),F()?void 0:e(a))),s();return}let t=e(a);e(n)&&!F()?t={folder:e(n),file:e(a)}:e(n)&&(t={folder:e(n)}),await G("xcode:open",t),s()}catch(t){o.error("Failed to open in Xcode:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openFailed_error({name:"Xcode"}))}}async function D(t){if(o.info("[WorkspaceActionsMenu] openInEditor called",{editorId:t.id,appName:t.appName,handlerType:t.handlerType,resolvedPath:e(a),isDirectory:F()}),!e(a)){o.warn("[WorkspaceActionsMenu] openInEditor: No resolved path, aborting");return}const l=F()?e(a):e(a).substring(0,e(a).lastIndexOf("/"));o.info(`[WorkspaceActionsMenu] openInEditor: targetPath=${l}, handlerType=${t.handlerType}`);try{switch(t.handlerType){case"finder":o.info("[WorkspaceActionsMenu] openInEditor: Invoking shell:showItemInFolder"),await G("shell:showItemInFolder",{path:l});break;case"vscode":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInVSCode"),await C();return;case"jetbrains":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInJetBrains"),await P();return;case"xcode":o.info("[WorkspaceActionsMenu] openInEditor: Delegating to openInXcode"),await I();return;case"generic":default:{o.info(`[WorkspaceActionsMenu] openInEditor: Invoking external-editors:open for ${t.id}`);const _=await G("external-editors:open",{editorId:t.id,path:l});o.info("[WorkspaceActionsMenu] openInEditor: external-editors:open result",_);break}}s()}catch(_){o.error(`[WorkspaceActionsMenu] Failed to open in ${t.appName}:`,_),K.error(_ instanceof Error?_.message:k.ui_workspaceActions_openFailed_error({name:t.appName}))}}async function B(){if(!e(a)){o.warn("No resolved path for openWithOther");return}try{let t=e(a);F()&&e(n)&&(t=e(n));const l=await G("external-editors:open-with-other",{path:t});if(!l?.success){l?.error!=="No application selected"&&(o.error("Failed to open with other app:",l?.error),K.error(l?.error||k.ui_workspaceActions_openOtherFailed_error()));return}s()}catch(t){o.error("Failed to open with other app:",t),K.error(t instanceof Error?t.message:k.ui_workspaceActions_openOtherFailed_error())}}async function Z(){if(e(a))try{await navigator.clipboard.writeText(Ue(e(a))),s()}catch(t){o.error("Failed to copy path:",t)}}async function $(){if(u())try{let t=u().replace(/\\/g,"/");if(Le(u())&&e(n)){const l=e(n).endsWith("/")?e(n):e(n)+"/";t.startsWith(l)&&(t=t.slice(l.length))}await navigator.clipboard.writeText(Ue(t)),s()}catch(t){o.error("Failed to copy workspace path:",t)}}async function pe(){if(u())try{const t=u().split(/[/\\]/).pop()||"";await navigator.clipboard.writeText(t),s()}catch(t){o.error("Failed to copy file name:",t)}}function ee(){Y()&&(Y()(),s())}async function te(){if(!(!A()||!e(a)||e(g))){X(g,!0);try{const t=u().split(/[/\\]/).pop()||"file",l=e(a);let _="";try{_=(await G("file:read",{path:l,workspaceId:A()}))?.data?.content??""}catch{}const z=await G("file:delete",{path:l,workspaceId:A()});if(z?.success){f()?.(),s();const le=K.warning(k.ui_workspaceActions_deletedFile_label({name:t}),Ft({duration:15e3,action:{label:k.ui_workspaceActions_undo_label(),onClick:async()=>{try{await G("file:write",{path:l,content:_,workspaceId:A()}),mt("file:changed",{workspaceId:A(),type:"create",filePath:l}),K.dismiss(le)}catch(Oe){o.error("[WorkspaceActionsMenu] Failed to restore file",Oe),K.error(k.ui_workspaceActions_restoreFileFailed_error())}}}}))}else K.error(k.ui_workspaceActions_deleteFileFailedDetail_error({error:z?.error||k.ui_workspaceActions_unknown_error()}))}catch(t){o.error("[WorkspaceActionsMenu] Error deleting file",t),K.error(k.ui_workspaceActions_deleteFileFailed_error())}finally{X(g,!1)}}}function fe(){ie()&&se()?(se()(),s()):!ie()&&ce()&&(ce()(),s())}const he=w(()=>{const t=[];R()&&(i&&Ie()&&t.push({id:"open-in",label:k.ui_openCombo_openInApp_tooltip(),icon:Je,onClick:()=>{},submenu:[...e(ae).map(_=>({id:`editor:${_.id}`,label:k.ui_workspaceActions_openIn_label({name:_.name}),editor:_,onClick:()=>{D(_)}})),{id:"choose-app",label:k.ui_workspaceActions_chooseApp_label(),icon:Je,onClick:()=>{B()}}]}),S()&&t.push({id:"copy-absolute-path",label:k.ui_workspaceActions_copyAbsolutePath_label(),icon:qe,disabled:!e(a),dividerBefore:t.length>0,onClick:()=>{Z()}}),S()&&!x()&&t.push({id:"copy-relative-path",label:k.ui_workspaceActions_copyRelativePath_label(),icon:qe,disabled:!u(),onClick:()=>{$()}}),j()&&!F()&&t.push({id:"copy-file-name",label:k.ui_workspaceActions_copyFileName_label(),icon:wt,disabled:!u(),onClick:()=>{pe()}}));const l=_=>_.map(z=>({...z,submenu:z.submenu?l(z.submenu):void 0,onClick:()=>{z.onClick(),s()}}));return t.push(...l(H())),O()&&(ce()||se())&&t.push({id:"archive-workspace",label:ie()?k.ui_workspaceActions_unarchiveSpace_label():k.ui_workspaceActions_archiveSpace_label(),icon:ie()?yt:At,dividerBefore:t.length>0,onClick:fe}),r()&&Y()&&t.push({id:"delete-workspace",label:k.ui_workspaceActions_deleteSpace_label(),icon:Ge,variant:"destructive",dividerBefore:t.length>0&&t.at(-1)?.id!=="archive-workspace",onClick:ee}),m()&&!F()&&t.push({id:"delete-file",label:k.ui_workspaceActions_deleteFile_label(),icon:Ge,variant:"destructive",disabled:e(g)||!e(a)||!A(),dividerBefore:t.length>0,onClick:()=>{te()}}),t});var ve={get layout(){return E()},set layout(t="list"){E(t),v()},get iconWeight(){return J()},set iconWeight(t){J(t),v()},get filePath(){return u()},set filePath(t=""){u(t),v()},get workspaceId(){return A()},set workspaceId(t=""){A(t),v()},get isDirectory(){return F()},set isDirectory(t=!0){F(t),v()},get onDelete(){return Y()},set onDelete(t=void 0){Y(t),v()},get onArchive(){return ce()},set onArchive(t=void 0){ce(t),v()},get onUnarchive(){return se()},set onUnarchive(t=void 0){se(t),v()},get isArchived(){return ie()},set isArchived(t=!1){ie(t),v()},get onClose(){return p()},set onClose(t=void 0){p(t),v()},get showDeleteOption(){return r()},set showDeleteOption(t=!0){r(t),v()},get showArchiveOption(){return O()},set showArchiveOption(t=!1){O(t),v()},get showPathCopy(){return S()},set showPathCopy(t=!0){S(t),v()},get showFileNameCopy(){return j()},set showFileNameCopy(t=!1){j(t),v()},get showFileActions(){return R()},set showFileActions(t=!0){R(t),v()},get workspaceFolderPath(){return q()},set workspaceFolderPath(t=""){q(t),v()},get isDiff(){return W()},set isDiff(t=!1){W(t),v()},get isWorkspaceRoot(){return x()},set isWorkspaceRoot(t=!1){x(t),v()},get additionalActions(){return H()},set additionalActions(t=[]){H(t),v()},get showDeleteFileOption(){return m()},set showDeleteFileOption(t=!1){m(t),v()},get onFileDeleted(){return f()},set onFileDeleted(t=void 0){f(t),v()},$set:Ze,$on:(t,l)=>$e(d,t,l)};{let t=w(()=>E()!=="list");me(be,{get actions(){return e(he)},get menu(){return e(t)},get iconWeight(){return J()}})}var ye=tt(ve);return we(),ye}export{Zt as default};
|