vibelet 1.2.202 → 1.2.205

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.
Files changed (28) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/inventory-scan-worker.cjs +1 -1
  3. package/dist/runtime-version.cjs +1 -1
  4. package/dist/tailcat/vibelet-tailcat-darwin-amd64 +0 -0
  5. package/dist/tailcat/vibelet-tailcat-darwin-arm64 +0 -0
  6. package/dist/tailcat/vibelet-tailcat-linux-amd64 +0 -0
  7. package/dist/tailcat/vibelet-tailcat-linux-arm64 +0 -0
  8. package/dist/tailcat/vibelet-tailcat-win32-amd64.exe +0 -0
  9. package/dist/tailcat/vibelet-tailcat-win32-arm64.exe +0 -0
  10. package/dist/vibelet.mjs +1 -2
  11. package/dist/web/assets/{App-B3LwKWyA.js → App-Bimp0TFC.js} +4 -4
  12. package/dist/web/assets/{ArchiveSyncPanel-C-Tbn1vV.js → ArchiveSyncPanel-BSOwlJLa.js} +1 -1
  13. package/dist/web/assets/{ConnectionSettingsPanel-CX75MnTZ.js → ConnectionSettingsPanel-C3xMrpaM.js} +1 -1
  14. package/dist/web/assets/{DaemonSettingsPanel-D03ppR7J.js → DaemonSettingsPanel-BySZQGwi.js} +1 -1
  15. package/dist/web/assets/{DiffDrawer-C0RXtX50.js → DiffDrawer-7VFT0w2z.js} +1 -1
  16. package/dist/web/assets/{FilesControlPanel-CtJsAPhT.js → FilesControlPanel-4yV1yfQX.js} +2 -2
  17. package/dist/web/assets/LanguageSettingsPanel-DWfv1mVl.js +1 -0
  18. package/dist/web/assets/{NotificationSettingsPanel-D9gyyx_f.js → NotificationSettingsPanel-B7Mj7cBh.js} +1 -1
  19. package/dist/web/assets/{SavedTargetsPanel-DUWF6KsZ.js → SavedTargetsPanel-U6uOwNjj.js} +1 -1
  20. package/dist/web/assets/{ThemeSettingsPanel-eRcoNRN_.js → ThemeSettingsPanel-Bcn-pX-I.js} +1 -1
  21. package/dist/web/assets/{file-text-DQlA2X1a.js → file-text-DNa-qbSV.js} +1 -1
  22. package/dist/web/assets/{highlighted-body-TPN3WLV5-CAoiz3gR.js → highlighted-body-TPN3WLV5-QZRh_u6v.js} +1 -1
  23. package/dist/web/assets/index-BsAPpFy1.js +17 -0
  24. package/dist/web/assets/{mermaid-O7DHMXV3-D1Gq7e8w.js → mermaid-O7DHMXV3-eKvXxbM0.js} +3 -3
  25. package/dist/web/index.html +1 -1
  26. package/package.json +1 -1
  27. package/dist/web/assets/LanguageSettingsPanel-DlASFe3l.js +0 -1
  28. package/dist/web/assets/index-D8gFpCtl.js +0 -15
@@ -1 +1 @@
1
- import{c as a,j as e,D as p}from"./index-D8gFpCtl.js";const u=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],x=a("archive-restore",u);const v=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],k=a("git-merge",v);const m=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],S=a("upload",m);function g({busy:n,connected:s,dismissed:r,feedback:i,synced:o,t:c,onPull:h,onPushMerge:l,onPushReplace:y,onSkip:d}){const t=!s||n!==null;return e.jsxs("section",{className:"control-section compact-section archive-sync-panel",children:[e.jsx("h2",{children:c.archiveSyncTitle}),e.jsx("p",{className:"empty-copy",children:o?c.archiveSyncSynced:r?c.archiveSyncSkippedState:c.archiveSyncBody}),e.jsxs("div",{className:"action-grid archive-sync-actions",children:[e.jsxs("button",{className:"icon-text-button",disabled:t,onClick:l,type:"button",children:[e.jsx(k,{"aria-hidden":"true"}),n==="pushMerge"?c.archiveSyncSyncing:c.archiveSyncPushMerge]}),e.jsxs("button",{className:"icon-text-button",disabled:t,onClick:h,type:"button",children:[e.jsx(p,{"aria-hidden":"true"}),n==="pull"?c.archiveSyncSyncing:c.archiveSyncPull]}),e.jsxs("button",{className:"icon-text-button",disabled:t,onClick:y,type:"button",children:[e.jsx(S,{"aria-hidden":"true"}),n==="pushReplace"?c.archiveSyncSyncing:c.archiveSyncPushReplace]}),e.jsxs("button",{className:"icon-text-button",disabled:t,onClick:d,type:"button",children:[e.jsx(x,{"aria-hidden":"true"}),c.archiveSyncSkip]})]}),i?e.jsx("p",{className:`empty-copy ${i.tone==="error"?"error-copy":"success-copy"}`,children:i.message}):null]})}export{g as ArchiveSyncPanel};
1
+ import{c as a,j as e,D as p}from"./index-BsAPpFy1.js";const u=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],x=a("archive-restore",u);const v=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],k=a("git-merge",v);const m=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],S=a("upload",m);function g({busy:n,connected:s,dismissed:r,feedback:i,synced:o,t:c,onPull:h,onPushMerge:l,onPushReplace:y,onSkip:d}){const t=!s||n!==null;return e.jsxs("section",{className:"control-section compact-section archive-sync-panel",children:[e.jsx("h2",{children:c.archiveSyncTitle}),e.jsx("p",{className:"empty-copy",children:o?c.archiveSyncSynced:r?c.archiveSyncSkippedState:c.archiveSyncBody}),e.jsxs("div",{className:"action-grid archive-sync-actions",children:[e.jsxs("button",{className:"icon-text-button",disabled:t,onClick:l,type:"button",children:[e.jsx(k,{"aria-hidden":"true"}),n==="pushMerge"?c.archiveSyncSyncing:c.archiveSyncPushMerge]}),e.jsxs("button",{className:"icon-text-button",disabled:t,onClick:h,type:"button",children:[e.jsx(p,{"aria-hidden":"true"}),n==="pull"?c.archiveSyncSyncing:c.archiveSyncPull]}),e.jsxs("button",{className:"icon-text-button",disabled:t,onClick:y,type:"button",children:[e.jsx(S,{"aria-hidden":"true"}),n==="pushReplace"?c.archiveSyncSyncing:c.archiveSyncPushReplace]}),e.jsxs("button",{className:"icon-text-button",disabled:t,onClick:d,type:"button",children:[e.jsx(x,{"aria-hidden":"true"}),c.archiveSyncSkip]})]}),i?e.jsx("p",{className:`empty-copy ${i.tone==="error"?"error-copy":"success-copy"}`,children:i.message}):null]})}export{g as ArchiveSyncPanel};
@@ -1 +1 @@
1
- import{j as e}from"./index-D8gFpCtl.js";import{K as o}from"./App-B3LwKWyA.js";function l({pairing:s,phase:d,t:n,onForgetPairing:t}){const c=d==="connected"?"connected":s?d:n.notPaired;return e.jsxs("section",{className:"control-section compact-section",children:[e.jsx("h2",{children:n.currentDevice}),e.jsxs("dl",{children:[e.jsxs("div",{children:[e.jsx("dt",{children:n.daemon}),e.jsx("dd",{children:s?.displayName??s?.daemonId??n.notPaired})]}),e.jsxs("div",{children:[e.jsx("dt",{children:n.status}),e.jsx("dd",{children:c})]})]}),e.jsx("div",{className:"action-grid",children:e.jsxs("button",{className:"danger-button",disabled:!s,onClick:t,type:"button",children:[e.jsx(o,{"aria-hidden":"true"}),n.forget]})})]})}export{l as ConnectionSettingsPanel};
1
+ import{j as e}from"./index-BsAPpFy1.js";import{K as o}from"./App-Bimp0TFC.js";function l({pairing:s,phase:d,t:n,onForgetPairing:t}){const c=d==="connected"?"connected":s?d:n.notPaired;return e.jsxs("section",{className:"control-section compact-section",children:[e.jsx("h2",{children:n.currentDevice}),e.jsxs("dl",{children:[e.jsxs("div",{children:[e.jsx("dt",{children:n.daemon}),e.jsx("dd",{children:s?.displayName??s?.daemonId??n.notPaired})]}),e.jsxs("div",{children:[e.jsx("dt",{children:n.status}),e.jsx("dd",{children:c})]})]}),e.jsx("div",{className:"action-grid",children:e.jsxs("button",{className:"danger-button",disabled:!s,onClick:t,type:"button",children:[e.jsx(o,{"aria-hidden":"true"}),n.forget]})})]})}export{l as ConnectionSettingsPanel};
@@ -1 +1 @@
1
- import{j as n,D as h}from"./index-D8gFpCtl.js";import{R as j}from"./App-B3LwKWyA.js";function a({connected:r,metadata:s,showUpdate:o,updateBusy:l,restartBusy:i,t:e,updateStatus:c,onUpdate:d,onRestart:t}){const x=s.version&&s.latestVersion&&o?`${s.version} -> ${s.latestVersion}`:s.version||e.unknown;return n.jsxs("section",{className:"control-section compact-section",children:[n.jsx("h2",{children:e.desktopConnector}),n.jsx("dl",{children:n.jsxs("div",{children:[n.jsx("dt",{children:e.version}),n.jsx("dd",{children:s.loading?e.checking:x})]})}),n.jsxs("div",{className:"action-grid",children:[o?n.jsxs("button",{className:"primary-button",disabled:!r||l||i,onClick:d,type:"button",children:[n.jsx(h,{"aria-hidden":"true"}),l?e.updating:e.update]}):null,n.jsxs("button",{className:"danger-button",disabled:!r||i,onClick:t,type:"button",children:[n.jsx(j,{"aria-hidden":"true"}),i?e.restarting:e.restart]})]}),s.error?n.jsx("p",{className:"empty-copy",children:s.error}):null,c?n.jsx("p",{className:"empty-copy",children:c}):null]})}export{a as DaemonSettingsPanel};
1
+ import{j as n,D as h}from"./index-BsAPpFy1.js";import{R as j}from"./App-Bimp0TFC.js";function a({connected:r,metadata:s,showUpdate:o,updateBusy:l,restartBusy:i,t:e,updateStatus:c,onUpdate:d,onRestart:t}){const x=s.version&&s.latestVersion&&o?`${s.version} -> ${s.latestVersion}`:s.version||e.unknown;return n.jsxs("section",{className:"control-section compact-section",children:[n.jsx("h2",{children:e.desktopConnector}),n.jsx("dl",{children:n.jsxs("div",{children:[n.jsx("dt",{children:e.version}),n.jsx("dd",{children:s.loading?e.checking:x})]})}),n.jsxs("div",{className:"action-grid",children:[o?n.jsxs("button",{className:"primary-button",disabled:!r||l||i,onClick:d,type:"button",children:[n.jsx(h,{"aria-hidden":"true"}),l?e.updating:e.update]}):null,n.jsxs("button",{className:"danger-button",disabled:!r||i,onClick:t,type:"button",children:[n.jsx(j,{"aria-hidden":"true"}),i?e.restarting:e.restart]})]}),s.error?n.jsx("p",{className:"empty-copy",children:s.error}):null,c?n.jsx("p",{className:"empty-copy",children:c}):null]})}export{a as DaemonSettingsPanel};
@@ -1,2 +1,2 @@
1
- import{r as l,j as e}from"./index-D8gFpCtl.js";import{u as C,X as F}from"./App-B3LwKWyA.js";import{F as W}from"./file-text-DQlA2X1a.js";const E={loading:!1,files:null,error:null};function q({client:t,sessionId:f,sessionTitle:x,t:i,onClose:o}){const h=l.useRef(null),j=C(o,h),[n,w]=l.useState("unstaged"),[d,g]=l.useState({unstaged:E,staged:E}),[u,y]=l.useState(null),[p,b]=l.useState(null),[k,N]=l.useState(!1),[S,m]=l.useState(null),c=d[n],v=l.useCallback(async s=>{g(a=>({...a,[s]:{loading:!0,files:a[s].files,error:null}}));try{const a=await t.request({action:"session.gitDiff.list",id:t.makeId("gitDiffList"),sessionId:f,scope:s});g(r=>({...r,[s]:{loading:!1,files:a.files,error:null}}))}catch(a){g(r=>({...r,[s]:{loading:!1,files:null,error:a instanceof Error?a.message:String(a)}}))}},[t,f]);l.useEffect(()=>{!d[n].files&&!d[n].loading&&!d[n].error&&v(n)},[n,d,v]),l.useEffect(()=>{y(null),b(null),m(null)},[n]),l.useEffect(()=>{if(!u){b(null),m(null);return}let s=!1;return N(!0),m(null),t.request({action:"session.gitDiff.file",id:t.makeId("gitDiffFile"),sessionId:f,scope:n,path:u}).then(a=>{s||(b(a),N(!1))}).catch(a=>{s||(m(a instanceof Error?a.message:String(a)),N(!1))}),()=>{s=!0}},[t,f,n,u]);const P=l.useMemo(()=>{const s=a=>a?a.reduce((r,D)=>({adds:r.adds+D.additions,dels:r.dels+D.deletions,count:r.count+1}),{adds:0,dels:0,count:0}):{adds:0,dels:0,count:0};return{unstaged:s(d.unstaged.files),staged:s(d.staged.files)}},[d]);return e.jsxs("div",{"aria-labelledby":"diff-drawer-title","aria-modal":"true",className:"diff-drawer",ref:j,role:"dialog",tabIndex:-1,children:[e.jsx("div",{className:"diff-drawer-backdrop",onClick:o,"aria-hidden":"true"}),e.jsxs("div",{className:"diff-drawer-panel",children:[e.jsxs("header",{className:"diff-drawer-header",children:[e.jsxs("div",{children:[e.jsx("strong",{id:"diff-drawer-title",children:i.changes}),e.jsx("span",{children:x})]}),e.jsx("button",{"aria-label":i.closeChanges,className:"icon-button",onClick:o,ref:h,type:"button",children:e.jsx(F,{"aria-hidden":"true"})})]}),e.jsx("div",{className:"diff-tabs",role:"tablist",children:["unstaged","staged"].map(s=>{const a=P[s],r=n===s;return e.jsxs("button",{type:"button",role:"tab","aria-selected":r,className:`diff-tab ${r?"active":""}`,onClick:()=>w(s),children:[e.jsx("span",{className:"diff-tab-label",children:s==="unstaged"?i.workingChanges:i.stagedChanges}),a.count>0?e.jsxs("span",{className:"diff-tab-meta",children:[e.jsxs("span",{className:"diff-add",children:["+",a.adds]}),e.jsxs("span",{className:"diff-del",children:["-",a.dels]})]}):null]},s)})}),e.jsxs("div",{className:"diff-body",children:[e.jsxs("aside",{className:"diff-files","aria-label":i.changedFiles,children:[c.loading&&!c.files?e.jsx("p",{className:"diff-empty",children:i.loading}):null,c.error?e.jsx("p",{className:"diff-empty diff-error",children:c.error}):null,c.files&&c.files.length===0?e.jsx("p",{className:"diff-empty",children:i.noChanges}):null,c.files?.map(s=>e.jsxs("button",{type:"button",className:`diff-file ${u===s.path?"active":""}`,onClick:()=>y(s.path),children:[e.jsx("span",{className:`diff-status diff-status-${s.status}`,children:s.status}),e.jsx("span",{className:"diff-file-path",title:s.path,children:s.path}),e.jsxs("span",{className:"diff-file-stats",children:[s.binary?e.jsx("span",{className:"diff-binary",children:"bin"}):null,!s.binary&&s.additions>0?e.jsxs("span",{className:"diff-add",children:["+",s.additions]}):null,!s.binary&&s.deletions>0?e.jsxs("span",{className:"diff-del",children:["-",s.deletions]}):null]})]},s.path))]}),e.jsx("section",{className:"diff-patch","aria-label":i.fileDiff,children:u?k?e.jsx("p",{className:"diff-empty",children:i.loadingPatch}):S?e.jsx("p",{className:"diff-empty diff-error",children:S}):p?.binary?e.jsx("p",{className:"diff-empty",children:i.binaryDiffUnavailable}):p?e.jsx(T,{patch:p.patch,truncated:p.truncated,truncatedLabel:i.patchTruncated}):null:e.jsxs("div",{className:"diff-empty",children:[e.jsx(W,{"aria-hidden":"true"}),e.jsx("p",{children:i.selectFileForDiff})]})})]})]})]})}function T({patch:t,truncated:f,truncatedLabel:x}){const i=l.useMemo(()=>t.split(`
1
+ import{r as l,j as e}from"./index-BsAPpFy1.js";import{u as C,X as F}from"./App-Bimp0TFC.js";import{F as W}from"./file-text-DNa-qbSV.js";const E={loading:!1,files:null,error:null};function q({client:t,sessionId:f,sessionTitle:x,t:i,onClose:o}){const h=l.useRef(null),j=C(o,h),[n,w]=l.useState("unstaged"),[d,g]=l.useState({unstaged:E,staged:E}),[u,y]=l.useState(null),[p,b]=l.useState(null),[k,N]=l.useState(!1),[S,m]=l.useState(null),c=d[n],v=l.useCallback(async s=>{g(a=>({...a,[s]:{loading:!0,files:a[s].files,error:null}}));try{const a=await t.request({action:"session.gitDiff.list",id:t.makeId("gitDiffList"),sessionId:f,scope:s});g(r=>({...r,[s]:{loading:!1,files:a.files,error:null}}))}catch(a){g(r=>({...r,[s]:{loading:!1,files:null,error:a instanceof Error?a.message:String(a)}}))}},[t,f]);l.useEffect(()=>{!d[n].files&&!d[n].loading&&!d[n].error&&v(n)},[n,d,v]),l.useEffect(()=>{y(null),b(null),m(null)},[n]),l.useEffect(()=>{if(!u){b(null),m(null);return}let s=!1;return N(!0),m(null),t.request({action:"session.gitDiff.file",id:t.makeId("gitDiffFile"),sessionId:f,scope:n,path:u}).then(a=>{s||(b(a),N(!1))}).catch(a=>{s||(m(a instanceof Error?a.message:String(a)),N(!1))}),()=>{s=!0}},[t,f,n,u]);const P=l.useMemo(()=>{const s=a=>a?a.reduce((r,D)=>({adds:r.adds+D.additions,dels:r.dels+D.deletions,count:r.count+1}),{adds:0,dels:0,count:0}):{adds:0,dels:0,count:0};return{unstaged:s(d.unstaged.files),staged:s(d.staged.files)}},[d]);return e.jsxs("div",{"aria-labelledby":"diff-drawer-title","aria-modal":"true",className:"diff-drawer",ref:j,role:"dialog",tabIndex:-1,children:[e.jsx("div",{className:"diff-drawer-backdrop",onClick:o,"aria-hidden":"true"}),e.jsxs("div",{className:"diff-drawer-panel",children:[e.jsxs("header",{className:"diff-drawer-header",children:[e.jsxs("div",{children:[e.jsx("strong",{id:"diff-drawer-title",children:i.changes}),e.jsx("span",{children:x})]}),e.jsx("button",{"aria-label":i.closeChanges,className:"icon-button",onClick:o,ref:h,type:"button",children:e.jsx(F,{"aria-hidden":"true"})})]}),e.jsx("div",{className:"diff-tabs",role:"tablist",children:["unstaged","staged"].map(s=>{const a=P[s],r=n===s;return e.jsxs("button",{type:"button",role:"tab","aria-selected":r,className:`diff-tab ${r?"active":""}`,onClick:()=>w(s),children:[e.jsx("span",{className:"diff-tab-label",children:s==="unstaged"?i.workingChanges:i.stagedChanges}),a.count>0?e.jsxs("span",{className:"diff-tab-meta",children:[e.jsxs("span",{className:"diff-add",children:["+",a.adds]}),e.jsxs("span",{className:"diff-del",children:["-",a.dels]})]}):null]},s)})}),e.jsxs("div",{className:"diff-body",children:[e.jsxs("aside",{className:"diff-files","aria-label":i.changedFiles,children:[c.loading&&!c.files?e.jsx("p",{className:"diff-empty",children:i.loading}):null,c.error?e.jsx("p",{className:"diff-empty diff-error",children:c.error}):null,c.files&&c.files.length===0?e.jsx("p",{className:"diff-empty",children:i.noChanges}):null,c.files?.map(s=>e.jsxs("button",{type:"button",className:`diff-file ${u===s.path?"active":""}`,onClick:()=>y(s.path),children:[e.jsx("span",{className:`diff-status diff-status-${s.status}`,children:s.status}),e.jsx("span",{className:"diff-file-path",title:s.path,children:s.path}),e.jsxs("span",{className:"diff-file-stats",children:[s.binary?e.jsx("span",{className:"diff-binary",children:"bin"}):null,!s.binary&&s.additions>0?e.jsxs("span",{className:"diff-add",children:["+",s.additions]}):null,!s.binary&&s.deletions>0?e.jsxs("span",{className:"diff-del",children:["-",s.deletions]}):null]})]},s.path))]}),e.jsx("section",{className:"diff-patch","aria-label":i.fileDiff,children:u?k?e.jsx("p",{className:"diff-empty",children:i.loadingPatch}):S?e.jsx("p",{className:"diff-empty diff-error",children:S}):p?.binary?e.jsx("p",{className:"diff-empty",children:i.binaryDiffUnavailable}):p?e.jsx(T,{patch:p.patch,truncated:p.truncated,truncatedLabel:i.patchTruncated}):null:e.jsxs("div",{className:"diff-empty",children:[e.jsx(W,{"aria-hidden":"true"}),e.jsx("p",{children:i.selectFileForDiff})]})})]})]})]})}function T({patch:t,truncated:f,truncatedLabel:x}){const i=l.useMemo(()=>t.split(`
2
2
  `),[t]);return e.jsxs("div",{className:"diff-patch-view",children:[i.map((o,h)=>{const j=L(o);return e.jsx("div",{className:`diff-line ${j}`,children:e.jsx("span",{className:"diff-line-text",children:o||" "})},h)}),f?e.jsx("p",{className:"diff-empty",children:x}):null]})}function L(t){return t.startsWith("diff ")||t.startsWith("index ")||t.startsWith("---")||t.startsWith("+++")?"header":t.startsWith("@@")?"hunk":t.startsWith("+")?"add":t.startsWith("-")?"del":"ctx"}export{q as DiffDrawer};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid-O7DHMXV3-D1Gq7e8w.js","assets/index-D8gFpCtl.js","assets/index-Bh-D235e.css","assets/App-B3LwKWyA.js","assets/mermaid-O7DHMXV3-BPtfCfol.css"])))=>i.map(i=>d[i]);
2
- import{c as b,j as e,r as v,_ as C,D as _}from"./index-D8gFpCtl.js";import{L as P,R as M,p as m,a as T,j as D,b as g,c as u,d as E,e as I,g as L}from"./App-B3LwKWyA.js";import{F as y}from"./file-text-DQlA2X1a.js";const z=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],R=b("image",z);const S=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],U=b("save",S);function V({cwd:n,entries:i,error:t,loaded:l,loading:c,path:s,t:d,onPathChange:a,onListDirectory:o,onOpenRemoteFile:x}){return e.jsxs(e.Fragment,{children:[e.jsxs("label",{className:"field",children:[e.jsx("span",{children:d.path}),e.jsxs("div",{className:"field-row",children:[e.jsx("input",{value:s,onChange:r=>a(r.target.value)}),e.jsx("button",{className:"icon-button",onClick:()=>o(),type:"button",children:c?e.jsx(P,{"aria-hidden":"true"}):e.jsx(M,{"aria-hidden":"true"})})]})]}),t?e.jsx("p",{className:"empty-copy",children:t}):null,c?e.jsx("p",{className:"empty-copy",children:d.loadingFiles}):null,e.jsxs("div",{className:"file-list tree-list",children:[m(s)?e.jsxs("button",{onClick:()=>o(m(s)??s),type:"button",children:[e.jsx(T,{"aria-hidden":"true"}),".."]}):null,i.map(r=>{const h=D(s,r.name);return e.jsxs("button",{onClick:()=>r.isDirectory?o(h):x(h,n),type:"button",children:[r.isDirectory?e.jsx(g,{"aria-hidden":"true"}):e.jsx(y,{"aria-hidden":"true"}),r.name]},`${r.name}:${r.isDirectory}`)})]}),l&&!c&&!t&&i.length===0?e.jsx("p",{className:"empty-copy",children:d.noFilesInDirectory}):null]})}const $=v.lazy(()=>C(()=>import("./mermaid-O7DHMXV3-D1Gq7e8w.js").then(n=>n.a),__vite__mapDeps([0,1,2,3,4])).then(n=>({default:n.MessageMarkdown})));function F({file:n,mode:i,onModeChange:t,onOpenRemoteFile:l,onTextChange:c}){return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"segmented editor-mode-tabs",children:[e.jsx("button",{className:i==="edit"?"selected":"",onClick:()=>t("edit"),type:"button",children:"Editor"}),e.jsx("button",{className:i==="preview"?"selected":"",onClick:()=>t("preview"),type:"button",children:"Preview"}),e.jsx("button",{className:i==="source"?"selected":"",onClick:()=>t("source"),type:"button",children:"Source"})]}),i==="edit"?e.jsx("textarea",{className:"remote-editor",value:n.text,onChange:s=>c(s.target.value),rows:14}):i==="preview"?e.jsx("div",{className:"remote-markdown-preview",children:e.jsx(v.Suspense,{fallback:e.jsx("pre",{className:"json-box source-viewer",children:n.text}),children:e.jsx($,{content:n.text,baseCwd:n.cwd,onOpenRemoteFile:l})})}):e.jsx("pre",{className:"json-box source-viewer",children:n.text})]})}function B({busy:n,cwd:i,directory:t,newDirName:l,remoteFileMode:c,remoteFile:s,remoteFileConflict:d,t:a,onCreateDirectory:o,onDirectoryPathChange:x,onDownloadRemoteFile:r,onListDirectory:h,onNewDirNameChange:N,onOpenRemoteFile:j,onRemoteFileModeChange:w,onRemoteFileTextChange:k,onSaveRemoteFile:p}){return e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"control-section",children:[e.jsx("h2",{children:a.fileTree}),e.jsx(V,{cwd:i,entries:t.entries,error:t.error,loaded:t.loaded,loading:t.loading,path:t.path,t:a,onListDirectory:h,onOpenRemoteFile:j,onPathChange:x}),e.jsxs("div",{className:"field-row",children:[e.jsx("input",{value:l,onChange:f=>N(f.target.value),placeholder:a.newFolder}),e.jsxs("button",{className:"icon-text-button",onClick:o,type:"button",disabled:!l.trim(),children:[e.jsx(g,{"aria-hidden":"true"}),a.create]})]})]}),e.jsxs("section",{className:"control-section remote-file-section",children:[e.jsx("h2",{children:a.remoteFile}),s?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"file-title",children:[s.kind==="image"?e.jsx(R,{"aria-hidden":"true"}):e.jsx(y,{"aria-hidden":"true"}),e.jsxs("div",{children:[e.jsx("strong",{children:u(s.path)}),e.jsxs("span",{children:[s.contentType," · ",E(s.size)]})]})]}),e.jsxs("div",{className:"attention-actions",children:[e.jsxs("button",{className:"icon-text-button",onClick:r,type:"button",children:[e.jsx(_,{"aria-hidden":"true"}),a.download]}),e.jsxs("button",{className:"icon-text-button",onClick:()=>navigator.clipboard?.writeText(s.path),type:"button",children:[e.jsx(I,{"aria-hidden":"true"}),a.copyPath]})]}),s.kind==="text"?e.jsxs(e.Fragment,{children:[e.jsx(F,{file:s,mode:c,onModeChange:w,onOpenRemoteFile:j,onTextChange:k}),e.jsxs("button",{className:"primary-button full-width",disabled:!s.dirty||n,onClick:()=>p(),type:"button",children:[e.jsx(U,{"aria-hidden":"true"}),a.saveFile]}),d?e.jsxs("div",{className:"notice warning inline-notice",children:[e.jsx(L,{"aria-hidden":"true"}),e.jsx("span",{children:a.remoteFileConflict(s.path)}),e.jsx("button",{className:"danger-button",disabled:n,onClick:()=>window.confirm(a.confirmOverwrite(u(s.path)))&&p({force:!0}),type:"button",children:a.forceSave})]}):null]}):s.kind==="image"&&s.objectUrl?e.jsx("img",{className:"remote-image",src:s.objectUrl,alt:u(s.path)}):e.jsx("p",{className:"empty-copy",children:a.binaryPreviewUnavailable})]}):e.jsx("p",{className:"empty-copy",children:a.selectRemoteFile})]})]})}export{B as FilesControlPanel};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid-O7DHMXV3-eKvXxbM0.js","assets/index-BsAPpFy1.js","assets/index-Bh-D235e.css","assets/App-Bimp0TFC.js","assets/mermaid-O7DHMXV3-BPtfCfol.css"])))=>i.map(i=>d[i]);
2
+ import{c as b,j as e,r as v,_ as C,D as _}from"./index-BsAPpFy1.js";import{L as P,R as M,p as m,a as T,j as D,b as g,c as u,d as E,e as I,g as L}from"./App-Bimp0TFC.js";import{F as y}from"./file-text-DNa-qbSV.js";const z=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],R=b("image",z);const S=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],U=b("save",S);function V({cwd:n,entries:i,error:t,loaded:l,loading:c,path:s,t:d,onPathChange:a,onListDirectory:o,onOpenRemoteFile:x}){return e.jsxs(e.Fragment,{children:[e.jsxs("label",{className:"field",children:[e.jsx("span",{children:d.path}),e.jsxs("div",{className:"field-row",children:[e.jsx("input",{value:s,onChange:r=>a(r.target.value)}),e.jsx("button",{className:"icon-button",onClick:()=>o(),type:"button",children:c?e.jsx(P,{"aria-hidden":"true"}):e.jsx(M,{"aria-hidden":"true"})})]})]}),t?e.jsx("p",{className:"empty-copy",children:t}):null,c?e.jsx("p",{className:"empty-copy",children:d.loadingFiles}):null,e.jsxs("div",{className:"file-list tree-list",children:[m(s)?e.jsxs("button",{onClick:()=>o(m(s)??s),type:"button",children:[e.jsx(T,{"aria-hidden":"true"}),".."]}):null,i.map(r=>{const h=D(s,r.name);return e.jsxs("button",{onClick:()=>r.isDirectory?o(h):x(h,n),type:"button",children:[r.isDirectory?e.jsx(g,{"aria-hidden":"true"}):e.jsx(y,{"aria-hidden":"true"}),r.name]},`${r.name}:${r.isDirectory}`)})]}),l&&!c&&!t&&i.length===0?e.jsx("p",{className:"empty-copy",children:d.noFilesInDirectory}):null]})}const $=v.lazy(()=>C(()=>import("./mermaid-O7DHMXV3-eKvXxbM0.js").then(n=>n.a),__vite__mapDeps([0,1,2,3,4])).then(n=>({default:n.MessageMarkdown})));function F({file:n,mode:i,onModeChange:t,onOpenRemoteFile:l,onTextChange:c}){return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"segmented editor-mode-tabs",children:[e.jsx("button",{className:i==="edit"?"selected":"",onClick:()=>t("edit"),type:"button",children:"Editor"}),e.jsx("button",{className:i==="preview"?"selected":"",onClick:()=>t("preview"),type:"button",children:"Preview"}),e.jsx("button",{className:i==="source"?"selected":"",onClick:()=>t("source"),type:"button",children:"Source"})]}),i==="edit"?e.jsx("textarea",{className:"remote-editor",value:n.text,onChange:s=>c(s.target.value),rows:14}):i==="preview"?e.jsx("div",{className:"remote-markdown-preview",children:e.jsx(v.Suspense,{fallback:e.jsx("pre",{className:"json-box source-viewer",children:n.text}),children:e.jsx($,{content:n.text,baseCwd:n.cwd,onOpenRemoteFile:l})})}):e.jsx("pre",{className:"json-box source-viewer",children:n.text})]})}function B({busy:n,cwd:i,directory:t,newDirName:l,remoteFileMode:c,remoteFile:s,remoteFileConflict:d,t:a,onCreateDirectory:o,onDirectoryPathChange:x,onDownloadRemoteFile:r,onListDirectory:h,onNewDirNameChange:N,onOpenRemoteFile:j,onRemoteFileModeChange:w,onRemoteFileTextChange:k,onSaveRemoteFile:p}){return e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"control-section",children:[e.jsx("h2",{children:a.fileTree}),e.jsx(V,{cwd:i,entries:t.entries,error:t.error,loaded:t.loaded,loading:t.loading,path:t.path,t:a,onListDirectory:h,onOpenRemoteFile:j,onPathChange:x}),e.jsxs("div",{className:"field-row",children:[e.jsx("input",{value:l,onChange:f=>N(f.target.value),placeholder:a.newFolder}),e.jsxs("button",{className:"icon-text-button",onClick:o,type:"button",disabled:!l.trim(),children:[e.jsx(g,{"aria-hidden":"true"}),a.create]})]})]}),e.jsxs("section",{className:"control-section remote-file-section",children:[e.jsx("h2",{children:a.remoteFile}),s?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"file-title",children:[s.kind==="image"?e.jsx(R,{"aria-hidden":"true"}):e.jsx(y,{"aria-hidden":"true"}),e.jsxs("div",{children:[e.jsx("strong",{children:u(s.path)}),e.jsxs("span",{children:[s.contentType," · ",E(s.size)]})]})]}),e.jsxs("div",{className:"attention-actions",children:[e.jsxs("button",{className:"icon-text-button",onClick:r,type:"button",children:[e.jsx(_,{"aria-hidden":"true"}),a.download]}),e.jsxs("button",{className:"icon-text-button",onClick:()=>navigator.clipboard?.writeText(s.path),type:"button",children:[e.jsx(I,{"aria-hidden":"true"}),a.copyPath]})]}),s.kind==="text"?e.jsxs(e.Fragment,{children:[e.jsx(F,{file:s,mode:c,onModeChange:w,onOpenRemoteFile:j,onTextChange:k}),e.jsxs("button",{className:"primary-button full-width",disabled:!s.dirty||n,onClick:()=>p(),type:"button",children:[e.jsx(U,{"aria-hidden":"true"}),a.saveFile]}),d?e.jsxs("div",{className:"notice warning inline-notice",children:[e.jsx(L,{"aria-hidden":"true"}),e.jsx("span",{children:a.remoteFileConflict(s.path)}),e.jsx("button",{className:"danger-button",disabled:n,onClick:()=>window.confirm(a.confirmOverwrite(u(s.path)))&&p({force:!0}),type:"button",children:a.forceSave})]}):null]}):s.kind==="image"&&s.objectUrl?e.jsx("img",{className:"remote-image",src:s.objectUrl,alt:u(s.path)}):e.jsx("p",{className:"empty-copy",children:a.binaryPreviewUnavailable})]}):e.jsx("p",{className:"empty-copy",children:a.selectRemoteFile})]})]})}export{B as FilesControlPanel};
@@ -0,0 +1 @@
1
+ import{j as e}from"./index-BsAPpFy1.js";import{C as i,F as o}from"./App-Bimp0TFC.js";function t({language:s,t:a,onLanguageChange:l}){return e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"control-section compact-section",children:[e.jsx("h2",{children:a.language}),e.jsxs("label",{className:"field",children:[e.jsx("span",{children:a.displayLanguage}),e.jsx(i,{ariaLabel:a.displayLanguage,options:[{value:"system",label:a.followSystem},{value:"en",label:a.english},{value:"zh",label:a.chinese},{value:"zh-TW",label:a.traditionalChinese}],value:s,onChange:n=>l(n)})]})]}),e.jsx(o,{language:s})]})}export{t as LanguageSettingsPanel};
@@ -1 +1 @@
1
- import{c as l,j as e}from"./index-D8gFpCtl.js";const o=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],r=l("bell",o);function h({notificationsBlocked:s,permission:t,settings:n,t:c,onToggleEnabled:a}){return e.jsxs("section",{className:"control-section compact-section",children:[e.jsx("h2",{children:c.notifications}),e.jsxs("label",{className:`toggle-field notification-toggle ${s?"disabled":""}`,children:[e.jsxs("span",{children:[e.jsx(r,{"aria-hidden":"true"}),c.browserAlerts]}),e.jsx("input",{type:"checkbox",checked:n.enabled&&!s&&t==="granted",disabled:s,onChange:i=>a(i.target.checked)})]}),s?e.jsx("p",{className:"empty-copy",children:c.notificationsBlocked}):null]})}export{h as NotificationSettingsPanel};
1
+ import{c as l,j as e}from"./index-BsAPpFy1.js";const o=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],r=l("bell",o);function h({notificationsBlocked:s,permission:t,settings:n,t:c,onToggleEnabled:a}){return e.jsxs("section",{className:"control-section compact-section",children:[e.jsx("h2",{children:c.notifications}),e.jsxs("label",{className:`toggle-field notification-toggle ${s?"disabled":""}`,children:[e.jsxs("span",{children:[e.jsx(r,{"aria-hidden":"true"}),c.browserAlerts]}),e.jsx("input",{type:"checkbox",checked:n.enabled&&!s&&t==="granted",disabled:s,onChange:i=>a(i.target.checked)})]}),s?e.jsx("p",{className:"empty-copy",children:c.notificationsBlocked}):null]})}export{h as NotificationSettingsPanel};
@@ -1 +1 @@
1
- import{c as i,j as e}from"./index-D8gFpCtl.js";import{f as t,T as m}from"./App-B3LwKWyA.js";const r=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],h=i("plug-zap",r);function j({activeDaemonId:c,busy:n,t:a,targets:o,onConnect:d,onForget:l}){return e.jsxs("section",{className:"control-section compact-section",children:[e.jsx("h2",{children:a.savedDevices}),e.jsxs("div",{className:"stack-list",children:[o.map(s=>e.jsxs("div",{className:"data-row target-row",children:[e.jsxs("div",{children:[e.jsxs("strong",{children:[s.label,s.daemonId===c?` · ${a.active}`:""]}),e.jsxs("span",{children:[s.displayName??s.daemonId," ·"," ",s.lastConnectedAt?t(s.lastConnectedAt):a.notConnectedRecently]})]}),e.jsxs("div",{className:"row-actions",children:[e.jsx("button",{"aria-label":`Connect to ${s.label}`,className:"icon-button",disabled:n,onClick:()=>d(s),type:"button",children:e.jsx(h,{"aria-hidden":"true"})}),e.jsx("button",{"aria-label":`Forget ${s.label}`,className:"icon-button danger-icon",disabled:n,onClick:()=>l(s.daemonId),type:"button",children:e.jsx(m,{"aria-hidden":"true"})})]})]},s.daemonId)),o.length===0?e.jsx("p",{className:"empty-copy",children:a.noSavedDevices}):null]})]})}export{j as SavedTargetsPanel};
1
+ import{c as i,j as e}from"./index-BsAPpFy1.js";import{f as t,T as m}from"./App-Bimp0TFC.js";const r=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],h=i("plug-zap",r);function j({activeDaemonId:c,busy:n,t:a,targets:o,onConnect:d,onForget:l}){return e.jsxs("section",{className:"control-section compact-section",children:[e.jsx("h2",{children:a.savedDevices}),e.jsxs("div",{className:"stack-list",children:[o.map(s=>e.jsxs("div",{className:"data-row target-row",children:[e.jsxs("div",{children:[e.jsxs("strong",{children:[s.label,s.daemonId===c?` · ${a.active}`:""]}),e.jsxs("span",{children:[s.displayName??s.daemonId," ·"," ",s.lastConnectedAt?t(s.lastConnectedAt):a.notConnectedRecently]})]}),e.jsxs("div",{className:"row-actions",children:[e.jsx("button",{"aria-label":`Connect to ${s.label}`,className:"icon-button",disabled:n,onClick:()=>d(s),type:"button",children:e.jsx(h,{"aria-hidden":"true"})}),e.jsx("button",{"aria-label":`Forget ${s.label}`,className:"icon-button danger-icon",disabled:n,onClick:()=>l(s.daemonId),type:"button",children:e.jsx(m,{"aria-hidden":"true"})})]})]},s.daemonId)),o.length===0?e.jsx("p",{className:"empty-copy",children:a.noSavedDevices}):null]})]})}export{j as SavedTargetsPanel};
@@ -1 +1 @@
1
- import{j as a}from"./index-D8gFpCtl.js";import{C as i}from"./App-B3LwKWyA.js";function o({t:e,theme:s,onThemeChange:l}){return a.jsxs("section",{className:"control-section compact-section",children:[a.jsx("h2",{children:e.appearance}),a.jsxs("label",{className:"field",children:[a.jsx("span",{children:e.displayTheme}),a.jsx(i,{ariaLabel:e.displayTheme,options:[{value:"system",label:e.systemTheme},{value:"light",label:e.lightTheme},{value:"dark",label:e.darkTheme}],value:s,onChange:l})]})]})}export{o as ThemeSettingsPanel};
1
+ import{j as a}from"./index-BsAPpFy1.js";import{C as i}from"./App-Bimp0TFC.js";function o({t:e,theme:s,onThemeChange:l}){return a.jsxs("section",{className:"control-section compact-section",children:[a.jsx("h2",{children:e.appearance}),a.jsxs("label",{className:"field",children:[a.jsx("span",{children:e.displayTheme}),a.jsx(i,{ariaLabel:e.displayTheme,options:[{value:"system",label:e.systemTheme},{value:"light",label:e.lightTheme},{value:"dark",label:e.darkTheme}],value:s,onChange:l})]})]})}export{o as ThemeSettingsPanel};
@@ -1 +1 @@
1
- import{c as e}from"./index-D8gFpCtl.js";const a=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],o=e("file-text",a);export{o as F};
1
+ import{c as e}from"./index-BsAPpFy1.js";const a=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],o=e("file-text",a);export{o as F};
@@ -1 +1 @@
1
- import{R as c,M as p,B as x}from"./mermaid-O7DHMXV3-D1Gq7e8w.js";import{r,j as d}from"./index-D8gFpCtl.js";import"./App-B3LwKWyA.js";var j=({code:i,language:e,raw:t,className:g,startLine:m,...u})=>{let{shikiTheme:o}=r.useContext(c),a=p(),[n,s]=r.useState(t);return r.useEffect(()=>{if(!a){s(t);return}let l=a.highlight({code:i,language:e,themes:o},h=>{s(h)});l&&s(l)},[i,e,o,a,t]),d.jsx(x,{className:g,language:e,result:n,startLine:m,...u})};export{j as HighlightedCodeBlockBody};
1
+ import{R as c,M as p,B as x}from"./mermaid-O7DHMXV3-eKvXxbM0.js";import{r,j as d}from"./index-BsAPpFy1.js";import"./App-Bimp0TFC.js";var j=({code:i,language:e,raw:t,className:g,startLine:m,...u})=>{let{shikiTheme:o}=r.useContext(c),a=p(),[n,s]=r.useState(t);return r.useEffect(()=>{if(!a){s(t);return}let l=a.highlight({code:i,language:e,themes:o},h=>{s(h)});l&&s(l)},[i,e,o,a,t]),d.jsx(x,{className:g,language:e,result:n,startLine:m,...u})};export{j as HighlightedCodeBlockBody};