efficient-shell 5.6.0 → 5.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +5 -2
  2. package/dist/{Browser-6QB2QTO7.js → Browser-RXGEZ77D.js} +18 -18
  3. package/dist/Calculator-MVPKTZZF.js +29 -0
  4. package/dist/ConfirmDialog-XOYCYFA7.js +1 -0
  5. package/dist/{CurrencyConverter-YJ47A3L5.js → CurrencyConverter-2IGOOR3I.js} +9 -9
  6. package/dist/{Documents-TGGI2QBV.js → Documents-YBLR7WVX.js} +22 -22
  7. package/dist/{Files-KSDK3EO4.js → Files-7XNR5IL2.js} +87 -87
  8. package/dist/{Notepad-EKB6FJPR.js → Notepad-ZQYQXV75.js} +14 -14
  9. package/dist/PdfViewer-SQVMMA7B.js +1 -0
  10. package/dist/{PomodoroTimer-RD5GRRA5.js → PomodoroTimer-XIUN4M73.js} +7 -7
  11. package/dist/{Preview-AQVXKT2I.js → Preview-YCOA5JPP.js} +126 -126
  12. package/dist/{Sidebar-VYXN5YIJ.js → Sidebar-VI7E3EKI.js} +8 -8
  13. package/dist/{Spreadsheet-INXG5UMI.js → Spreadsheet-SRAUU3OA.js} +13 -13
  14. package/dist/{Stock-CBQN2IJF.js → Stock-7EKOAQ7C.js} +3 -3
  15. package/dist/{Weather-2EVUTIXX.js → Weather-RWI6NKB2.js} +15 -15
  16. package/dist/{WorldClock-TZUF7MOB.js → WorldClock-CEHWDFEO.js} +6 -6
  17. package/dist/apps/index.js +1 -1
  18. package/dist/bin/ui-check.js +1 -1
  19. package/dist/{chunk-3GPU3JOW.js → chunk-5ABLFFC5.js} +7 -7
  20. package/dist/{chunk-PKEQ7XOH.js → chunk-7WC3EOFS.js} +1 -1
  21. package/dist/{chunk-RCHCT7AO.js → chunk-F6B3J3GW.js} +1 -1
  22. package/dist/{chunk-ZUCYJAQH.js → chunk-IMMHJIV5.js} +4 -4
  23. package/dist/{chunk-HRLPFUPB.js → chunk-P4CIOJHP.js} +3 -3
  24. package/dist/{chunk-Z2353HNE.js → chunk-RBDGN4YU.js} +5 -5
  25. package/dist/{chunk-RDQ7OXUA.js → chunk-RC2EG6P4.js} +300 -300
  26. package/dist/chunk-SFCDHHQP.js +1 -0
  27. package/dist/{chunk-L5XA5MLK.js → chunk-VWBQ2P5G.js} +46 -46
  28. package/dist/{chunk-R4XSSHDI.js → chunk-WWF2EQXF.js} +1 -1
  29. package/dist/{chunk-FROOMUJ7.js → chunk-YGC7AX3X.js} +6 -6
  30. package/dist/{chunk-MLYC5VQI.js → chunk-YIH6JLMV.js} +2 -2
  31. package/dist/{chunk-JEM73E4C.js → chunk-Z7D6Y5WA.js} +13 -13
  32. package/dist/{index-BgM75MC6.d.ts → index-ZI6vl2Wq.d.ts} +2 -0
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.js +99 -99
  35. package/dist/map/index.js +4 -4
  36. package/dist/page-tabs/index.js +5 -5
  37. package/dist/pdf/index.js +1 -1
  38. package/dist/ui/index.d.ts +1 -1
  39. package/dist/ui/index.js +1 -1
  40. package/package.json +1 -1
  41. package/dist/Calculator-KOWRV2VK.js +0 -29
  42. package/dist/ConfirmDialog-32NLLK4K.js +0 -1
  43. package/dist/PdfViewer-KW5B44AX.js +0 -1
  44. package/dist/chunk-WRBXEZFN.js +0 -1
@@ -1,10 +1,10 @@
1
- import{toast_default as e}from"./chunk-3HJTOINK.js";import{ChevronLeftFallback as t,ChevronRightFallback as n,PrintFallback as r,DownloadFallback as a,EmailFallback as o}from"./chunk-6LTDJKIL.js";import{useShellStrings as i}from"./chunk-TNBCUZVE.js";import{Icon as l}from"./chunk-XWSWYMGM.js";import{createContext as s,useContext as c,useRef as d,useState as u,useEffect as m}from"react";import*as h from"pdfjs-dist";import{createPortal as p}from"react-dom";import{jsx as f,jsxs as g}from"react/jsx-runtime";function w(e,t,n){return new Error(`The response for ${e} is not a WebAssembly module (got ${function(e){if(0===e.length)return"an empty response";const t=Array.from(e.subarray(0,24)).map(e=>e>=32&&e<127?String.fromCharCode(e):".").join("");return`${e.length} bytes starting "${t}"`}(n)}). The bundler did not emit "${t}" as an asset, and the host answered with a fallback page instead of a 404. Serve pdfjs-dist/wasm/ yourself and point window.__REACT_OS_SHELL_PDF_WASM__ at it.`)}var y=s(null);function b({children:e}){const t=c(y);return t?p(e,t):
2
- /* @__PURE__ */f("div",{className:"flex shrink-0 flex-wrap items-center gap-1 border-b border-gray-200 bg-gray-50 px-3 py-2 text-xs",children:e})}"undefined"==typeof window||h.GlobalWorkerOptions.workerSrc||(h.GlobalWorkerOptions.workerSrc=`https://unpkg.com/pdfjs-dist@${h.version}/build/pdf.worker.min.mjs`);var v={"jbig2.wasm":new URL("pdfjs-dist/wasm/jbig2.wasm",import.meta.url).href,"openjpeg.wasm":new URL("pdfjs-dist/wasm/openjpeg.wasm",import.meta.url).href},x=class{async fetch({kind:e,filename:t}){if("wasmUrl"!==e)throw new Error(`Ensure that the \`${e}\` API parameter is provided.`);const n=v[t];if(!n)throw new Error(`No bundled pdf.js wasm module for "${t}".`);const r=await fetch(n);if(!r.ok)throw new Error(`Unable to load wasm data at: ${n}`);const a=new Uint8Array(await r.arrayBuffer());if(!function(e){return e.length>=4&&0===e[0]&&97===e[1]&&115===e[2]&&109===e[3]}(a))throw w(n,t,a);return a}};function k(e){const t=e||("undefined"!=typeof window?window.__REACT_OS_SHELL_PDF_WASM__:void 0);return"string"==typeof t&&t?{wasmUrl:t.endsWith("/")?t:`${t}/`}:{BinaryDataFactory:x}}var C=[50,75,100,125,150,200,300,400];function N(e,t,n){const r=(t.width-40)/n.width,a="page"===e?Math.min(r,(t.height-40)/n.height):r;return Math.min(Math.max(a,.3),4)}function j({url:s,filename:c,fit:p="width",onDownload:w,onEmail:y,workerSrc:v,wasmUrl:x}){const j=i().pdf,M=d(null),E=d(null),W=d(null),[_,z]=u(null),[D,L]=u(1),[P,T]=u(0),[S,$]=u(1),[O,A]=u(!0),[U,H]=u(!0),F=d(j.loadFailed);F.current=j.loadFailed,m(()=>{let t=!1;return H(!0),L(1),v&&(h.GlobalWorkerOptions.workerSrc=v),h.getDocument({url:s,...k(x)}).promise.then(e=>{t||(z(e),T(e.numPages),H(!1))}).catch(()=>{t||(e.error(F.current),H(!1))}),()=>{t=!0}},[s,v,x]),m(()=>{if(!_||!O||!W.current)return;const e=()=>{const e=W.current;e&&_.getPage(D).then(t=>{if(!W.current)return;const n=t.getViewport({scale:1}),r=N(p,{width:e.clientWidth,height:e.clientHeight},{width:n.width,height:n.height});$(e=>Math.abs(e-r)<.005?e:r)})};e();const t=new ResizeObserver(e);return t.observe(W.current),()=>t.disconnect()},[_,D,O,p]),m(()=>{if(!_||!M.current)return;let e=!1,t=null,n=null;return _.getPage(D).then(r=>{if(e||!M.current)return;const a=r.getViewport({scale:S}),o=M.current;o.width=a.width,o.height=a.height,o.style.width=`${a.width}px`,o.style.height=`${a.height}px`;const i=o.getContext("2d");t=r.render({canvas:o,canvasContext:i,viewport:a}),t.promise.catch(()=>{});const l=E.current;l&&(l.replaceChildren(),l.style.setProperty("--total-scale-factor",String(a.scale)),n=new h.TextLayer({textContentSource:r.streamTextContent(),container:l,viewport:a}),n.render().then(()=>{if(e)return;const t=document.createElement("div");t.className="endOfContent",l.append(t)}).catch(()=>{}))}),()=>{e=!0,t?.cancel(),n?.cancel()}},[_,D,S]),m(()=>{const e=()=>E.current?.classList.remove("selecting");return window.addEventListener("pointerup",e),()=>window.removeEventListener("pointerup",e)},[]);const R="page"===p?j.fitPage:j.fitWidth,I="px-2 py-1 rounded hover:bg-gray-200 transition-colors text-gray-600 flex items-center gap-1";/* @__PURE__ */
1
+ import{toast_default as e}from"./chunk-3HJTOINK.js";import{ChevronLeftFallback as t,ChevronRightFallback as n,PrintFallback as r,DownloadFallback as a,EmailFallback as o}from"./chunk-6LTDJKIL.js";import{Icon as i}from"./chunk-XWSWYMGM.js";import{useShellStrings as l}from"./chunk-TNBCUZVE.js";import{createContext as s,useContext as c,useRef as d,useState as u,useEffect as m}from"react";import*as h from"pdfjs-dist";import{createPortal as p}from"react-dom";import{jsx as f,jsxs as g}from"react/jsx-runtime";function w(e,t,n){return new Error(`The response for ${e} is not a WebAssembly module (got ${function(e){if(0===e.length)return"an empty response";const t=Array.from(e.subarray(0,24)).map(e=>e>=32&&e<127?String.fromCharCode(e):".").join("");return`${e.length} bytes starting "${t}"`}(n)}). The bundler did not emit "${t}" as an asset, and the host answered with a fallback page instead of a 404. Serve pdfjs-dist/wasm/ yourself and point window.__REACT_OS_SHELL_PDF_WASM__ at it.`)}var y=s(null);function b({children:e}){const t=c(y);return t?p(e,t):
2
+ /* @__PURE__ */f("div",{className:"flex shrink-0 flex-wrap items-center gap-1 border-b border-gray-200 bg-gray-50 px-3 py-2 text-xs",children:e})}"undefined"==typeof window||h.GlobalWorkerOptions.workerSrc||(h.GlobalWorkerOptions.workerSrc=`https://unpkg.com/pdfjs-dist@${h.version}/build/pdf.worker.min.mjs`);var v={"jbig2.wasm":new URL("pdfjs-dist/wasm/jbig2.wasm",import.meta.url).href,"openjpeg.wasm":new URL("pdfjs-dist/wasm/openjpeg.wasm",import.meta.url).href},x=class{async fetch({kind:e,filename:t}){if("wasmUrl"!==e)throw new Error(`Ensure that the \`${e}\` API parameter is provided.`);const n=v[t];if(!n)throw new Error(`No bundled pdf.js wasm module for "${t}".`);const r=await fetch(n);if(!r.ok)throw new Error(`Unable to load wasm data at: ${n}`);const a=new Uint8Array(await r.arrayBuffer());if(!function(e){return e.length>=4&&0===e[0]&&97===e[1]&&115===e[2]&&109===e[3]}(a))throw w(n,t,a);return a}};function k(e){const t=e||("undefined"!=typeof window?window.__REACT_OS_SHELL_PDF_WASM__:void 0);return"string"==typeof t&&t?{wasmUrl:t.endsWith("/")?t:`${t}/`}:{BinaryDataFactory:x}}var C=[50,75,100,125,150,200,300,400];function N(e,t,n){const r=(t.width-40)/n.width,a="page"===e?Math.min(r,(t.height-40)/n.height):r;return Math.min(Math.max(a,.3),4)}function j({url:s,filename:c,fit:p="width",onDownload:w,onEmail:y,workerSrc:v,wasmUrl:x}){const j=l().pdf,M=d(null),E=d(null),W=d(null),[_,z]=u(null),[D,L]=u(1),[P,T]=u(0),[S,$]=u(1),[O,A]=u(!0),[U,H]=u(!0),F=d(j.loadFailed);F.current=j.loadFailed,m(()=>{let t=!1;return H(!0),L(1),v&&(h.GlobalWorkerOptions.workerSrc=v),h.getDocument({url:s,...k(x)}).promise.then(e=>{t||(z(e),T(e.numPages),H(!1))}).catch(()=>{t||(e.error(F.current),H(!1))}),()=>{t=!0}},[s,v,x]),m(()=>{if(!_||!O||!W.current)return;const e=()=>{const e=W.current;e&&_.getPage(D).then(t=>{if(!W.current)return;const n=t.getViewport({scale:1}),r=N(p,{width:e.clientWidth,height:e.clientHeight},{width:n.width,height:n.height});$(e=>Math.abs(e-r)<.005?e:r)})};e();const t=new ResizeObserver(e);return t.observe(W.current),()=>t.disconnect()},[_,D,O,p]),m(()=>{if(!_||!M.current)return;let e=!1,t=null,n=null;return _.getPage(D).then(r=>{if(e||!M.current)return;const a=r.getViewport({scale:S}),o=M.current;o.width=a.width,o.height=a.height,o.style.width=`${a.width}px`,o.style.height=`${a.height}px`;const i=o.getContext("2d");t=r.render({canvas:o,canvasContext:i,viewport:a}),t.promise.catch(()=>{});const l=E.current;l&&(l.replaceChildren(),l.style.setProperty("--total-scale-factor",String(a.scale)),n=new h.TextLayer({textContentSource:r.streamTextContent(),container:l,viewport:a}),n.render().then(()=>{if(e)return;const t=document.createElement("div");t.className="endOfContent",l.append(t)}).catch(()=>{}))}),()=>{e=!0,t?.cancel(),n?.cancel()}},[_,D,S]),m(()=>{const e=()=>E.current?.classList.remove("selecting");return window.addEventListener("pointerup",e),()=>window.removeEventListener("pointerup",e)},[]);const R="page"===p?j.fitPage:j.fitWidth,I="px-2 py-1 rounded hover:bg-gray-200 transition-colors text-gray-600 flex items-center gap-1";/* @__PURE__ */
3
3
  return g("div",{className:"flex flex-col h-full",children:[
4
4
  /* @__PURE__ */g(b,{children:[
5
- /* @__PURE__ */f("button",{type:"button","aria-label":j.previousPage,onClick:()=>L(e=>Math.max(1,e-1)),disabled:D<=1,className:"px-1 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",children:/* @__PURE__ */f(l,{name:"chevron-left",fallback:t,className:"h-3.5 w-3.5",strokeWidth:2})}),
5
+ /* @__PURE__ */f("button",{type:"button","aria-label":j.previousPage,onClick:()=>L(e=>Math.max(1,e-1)),disabled:D<=1,className:"px-1 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",children:/* @__PURE__ */f(i,{name:"chevron-left",fallback:t,className:"h-3.5 w-3.5",strokeWidth:2})}),
6
6
  /* @__PURE__ */f("span",{className:"text-gray-600 font-medium tabular-nums whitespace-nowrap",children:j.pageOf(D,P)}),
7
- /* @__PURE__ */f("button",{type:"button","aria-label":j.nextPage,onClick:()=>L(e=>Math.min(P,e+1)),disabled:D>=P,className:"px-1 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",children:/* @__PURE__ */f(l,{name:"chevron-right",fallback:n,className:"h-3.5 w-3.5",strokeWidth:2})}),
7
+ /* @__PURE__ */f("button",{type:"button","aria-label":j.nextPage,onClick:()=>L(e=>Math.min(P,e+1)),disabled:D>=P,className:"px-1 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",children:/* @__PURE__ */f(i,{name:"chevron-right",fallback:n,className:"h-3.5 w-3.5",strokeWidth:2})}),
8
8
  /* @__PURE__ */f("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
9
9
  /* @__PURE__ */f("button",{type:"button","aria-label":j.zoomOut,title:j.zoomOut,onClick:()=>{A(!1),$(e=>Math.max(.3,Math.round(100*(e-.25))/100))},className:I,children:/* @__PURE__ */f("span",{"aria-hidden":"true",children:"−"})}),
10
10
  /* @__PURE__ */g("select",{value:O?"fit":C.includes(Math.round(100*S))?Math.round(100*S):"custom",onChange:e=>{const t=e.target.value;"fit"!==t?"custom"!==t&&(A(!1),$(Number(t)/100)):A(!0)},className:"bg-transparent hover:bg-gray-200 rounded px-1 py-1 text-gray-600 tabular-nums cursor-pointer focus:outline-none focus:ring-1 focus:ring-blue-400","aria-label":j.zoom,title:j.zoom,children:[
@@ -13,10 +13,10 @@ return g("div",{className:"flex flex-col h-full",children:[
13
13
  /* @__PURE__ */f("button",{type:"button",onClick:()=>A(!0),"aria-pressed":O,className:I+(O?" bg-gray-200 text-gray-900":""),title:j.fitHint,children:j.fit}),
14
14
  /* @__PURE__ */f("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
15
15
  /* @__PURE__ */g("button",{type:"button",onClick:()=>{if(!_)return;const t=window.open("","_blank");if(!t)return void e.error(j.allowPopups);const n=[];for(let e=1;e<=P;e++)n.push(_.getPage(e).then(e=>{const t=e.getViewport({scale:2}),n=document.createElement("canvas");return n.width=t.width,n.height=t.height,e.render({canvas:n,canvasContext:n.getContext("2d"),viewport:t}).promise.then(()=>n.toDataURL())}));Promise.all(n).then(e=>{var n;t.document.write(`<html><head><title>${n=c,n.replace(/[&<>"]/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"}[e]))}</title><style>@media print{body{margin:0}img{width:100%;page-break-after:always}}</style></head><body>`),t.document.write(e.map(e=>`<img src="${e}"/>`).join("")),t.document.write("</body></html>"),t.document.close(),setTimeout(()=>{t.print(),t.close()},300)})},className:I,children:[
16
- /* @__PURE__ */f(l,{name:"print",fallback:r,className:"h-3.5 w-3.5",strokeWidth:1.5}),j.print]}),
16
+ /* @__PURE__ */f(i,{name:"print",fallback:r,className:"h-3.5 w-3.5",strokeWidth:1.5}),j.print]}),
17
17
  /* @__PURE__ */g("button",{type:"button",onClick:w??(()=>{const e=document.createElement("a");e.href=s,e.download=c,e.click()}),className:I,children:[
18
- /* @__PURE__ */f(l,{name:"download",fallback:a,className:"h-3.5 w-3.5",strokeWidth:1.5}),j.download]}),y&&/* @__PURE__ */g("button",{type:"button",onClick:y,className:I,children:[
19
- /* @__PURE__ */f(l,{name:"email",fallback:o,className:"h-3.5 w-3.5",strokeWidth:1.5}),j.email]})]}),
18
+ /* @__PURE__ */f(i,{name:"download",fallback:a,className:"h-3.5 w-3.5",strokeWidth:1.5}),j.download]}),y&&/* @__PURE__ */g("button",{type:"button",onClick:y,className:I,children:[
19
+ /* @__PURE__ */f(i,{name:"email",fallback:o,className:"h-3.5 w-3.5",strokeWidth:1.5}),j.email]})]}),
20
20
  /* @__PURE__ */f("div",{ref:W,className:"flex-1 overflow-auto bg-gray-100 outline-none",tabIndex:0,onWheel:e=>{if(!_)return;if(e.ctrlKey||e.metaKey)return;const t=W.current;if(!t)return;const n=t.scrollTop<=0,r=t.scrollTop+t.clientHeight>=t.scrollHeight-1;e.deltaY>0&&r&&D<P?(e.preventDefault(),L(e=>Math.min(P,e+1)),requestAnimationFrame(()=>{W.current&&(W.current.scrollTop=0)})):e.deltaY<0&&n&&D>1&&(e.preventDefault(),L(e=>Math.max(1,e-1)),requestAnimationFrame(()=>{W.current&&(W.current.scrollTop=W.current.scrollHeight)}))},onKeyDown:e=>{if(!_)return;const t=(document.activeElement?.tagName||"").toLowerCase();"input"===t||"textarea"===t||document.activeElement?.isContentEditable||("PageDown"===e.key||"ArrowRight"===e.key?D<P&&(e.preventDefault(),L(e=>Math.min(P,e+1))):"PageUp"===e.key||"ArrowLeft"===e.key?D>1&&(e.preventDefault(),L(e=>Math.max(1,e-1))):"Home"===e.key?(e.preventDefault(),L(1)):"End"===e.key&&(e.preventDefault(),L(P)))},children:U?/* @__PURE__ */f("div",{className:"flex items-center justify-center h-full text-gray-500 text-sm",role:"status",children:j.loading}):/* @__PURE__ */g("div",{className:"min-h-full flex items-center justify-center p-4",children:[
21
21
  /* @__PURE__ */f("style",{children:'\n.preview-pdf-textlayer {\n position: absolute;\n inset: 0;\n overflow: clip;\n line-height: 1;\n text-align: initial;\n text-size-adjust: none;\n forced-color-adjust: none;\n transform-origin: 0 0;\n caret-color: CanvasText;\n --min-font-size: 1;\n --text-scale-factor: calc(var(--total-scale-factor, 1) * var(--min-font-size));\n --min-font-size-inv: calc(1 / var(--min-font-size));\n}\n.preview-pdf-textlayer :is(span, br) {\n color: transparent;\n position: absolute;\n white-space: pre;\n cursor: text;\n transform-origin: 0% 0%;\n}\n.preview-pdf-textlayer > :not(.markedContent),\n.preview-pdf-textlayer .markedContent span:not(.markedContent) {\n z-index: 1;\n --font-height: 0;\n font-size: calc(var(--text-scale-factor) * var(--font-height));\n --scale-x: 1;\n --rotate: 0deg;\n transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));\n}\n.preview-pdf-textlayer .markedContent {\n display: contents;\n}\n.preview-pdf-textlayer span[role="img"] {\n user-select: none;\n cursor: default;\n}\n.preview-pdf-textlayer ::selection {\n background: rgba(0, 80, 255, 0.25);\n}\n.preview-pdf-textlayer br::selection {\n background: transparent;\n}\n.preview-pdf-textlayer .endOfContent {\n display: block;\n position: absolute;\n inset: 100% 0 0;\n z-index: 0;\n cursor: default;\n user-select: none;\n}\n.preview-pdf-textlayer.selecting .endOfContent {\n top: 0;\n}\n'}),
22
22
  /* @__PURE__ */g("div",{className:"relative shadow-lg rounded",children:[
@@ -1,4 +1,4 @@
1
- import{Modal as e}from"./chunk-L5XA5MLK.js";import{keepsNativeMenu as a}from"./chunk-RMJZOKHY.js";import{jsx as i,jsxs as n}from"react/jsx-runtime";var t={activeOpacity:70,inactiveOpacity:50,activeBlur:0,inactiveBlur:0};function r(e){try{const a=JSON.parse(localStorage.getItem(e)||"");return null!=a.blur&&null==a.activeBlur&&(a.activeBlur=a.blur,a.inactiveBlur=a.blur,delete a.blur),{...t,...a}}catch{return t}}function l({open:t,onClose:r,title:l,appearance:c,onAppearanceChange:s,onSave:d,children:o}){if(!t)return null;const u="w-full h-1.5 rounded-full appearance-none bg-gray-200 cursor-pointer accent-blue-500",p="flex items-center justify-between text-xs text-gray-500";/* @__PURE__ */
1
+ import{Modal as e}from"./chunk-VWBQ2P5G.js";import{keepsNativeMenu as a}from"./chunk-RMJZOKHY.js";import{jsx as i,jsxs as n}from"react/jsx-runtime";var t={activeOpacity:70,inactiveOpacity:50,activeBlur:0,inactiveBlur:0};function r(e){try{const a=JSON.parse(localStorage.getItem(e)||"");return null!=a.blur&&null==a.activeBlur&&(a.activeBlur=a.blur,a.inactiveBlur=a.blur,delete a.blur),{...t,...a}}catch{return t}}function l({open:t,onClose:r,title:l,appearance:c,onAppearanceChange:s,onSave:d,children:o}){if(!t)return null;const u="w-full h-1.5 rounded-full appearance-none bg-gray-200 cursor-pointer accent-blue-500",p="flex items-center justify-between text-xs text-gray-500";/* @__PURE__ */
2
2
  return i("div",{onPointerDown:e=>e.stopPropagation(),onContextMenu:e=>{e.stopPropagation(),a(e.target)||e.preventDefault()},children:/* @__PURE__ */i(e,{open:t,onClose:r,title:l,size:"sm",children:/* @__PURE__ */n("div",{className:"space-y-4",children:[o,
3
3
  /* @__PURE__ */n("div",{children:[
4
4
  /* @__PURE__ */i("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Appearance"}),
@@ -1,4 +1,4 @@
1
- import{ChevronRightFallbackC as e}from"./chunk-6LTDJKIL.js";import{useShellStrings as i}from"./chunk-TNBCUZVE.js";import{Icon as t}from"./chunk-XWSWYMGM.js";import{Fragment as a}from"react";import{jsx as n,jsxs as s}from"react/jsx-runtime";var r=/* @__PURE__ */n(t,{name:"chevron-right",fallback:e,className:"h-3.5 w-3.5 shrink-0 text-gray-300","aria-hidden":!0}),l="inline-flex min-w-0 items-center gap-1 truncate rounded px-1 -mx-1 text-gray-500 transition-colors hover:text-gray-900 hover:underline rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]";function c({items:e,separator:t,maxItems:c=0,className:m}){const o=i().breadcrumbs;if(0===e.length)return null;const h=t??r,d=[],u=e.length-1;if(c>0&&e.length>c&&c>=2){const i=Math.max(1,c-1);d.push({kind:"item",item:e[0],isLast:!1}),d.push({kind:"ellipsis"});for(let t=e.length-i;t<=u;t++)d.push({kind:"item",item:e[t],isLast:t===u})}else e.forEach((e,i)=>d.push({kind:"item",item:e,isLast:i===u}));/* @__PURE__ */
1
+ import{ChevronRightFallbackC as e}from"./chunk-6LTDJKIL.js";import{Icon as i}from"./chunk-XWSWYMGM.js";import{useShellStrings as t}from"./chunk-TNBCUZVE.js";import{Fragment as a}from"react";import{jsx as n,jsxs as s}from"react/jsx-runtime";var r=/* @__PURE__ */n(i,{name:"chevron-right",fallback:e,className:"h-3.5 w-3.5 shrink-0 text-gray-300","aria-hidden":!0}),l="inline-flex min-w-0 items-center gap-1 truncate rounded px-1 -mx-1 text-gray-500 transition-colors hover:text-gray-900 hover:underline rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]";function c({items:e,separator:i,maxItems:c=0,className:m}){const o=t().breadcrumbs;if(0===e.length)return null;const h=i??r,d=[],u=e.length-1;if(c>0&&e.length>c&&c>=2){const i=Math.max(1,c-1);d.push({kind:"item",item:e[0],isLast:!1}),d.push({kind:"ellipsis"});for(let t=e.length-i;t<=u;t++)d.push({kind:"item",item:e[t],isLast:t===u})}else e.forEach((e,i)=>d.push({kind:"item",item:e,isLast:i===u}));/* @__PURE__ */
2
2
  return n("nav",{"aria-label":o.label,className:`min-w-0 ${m??""}`,children:/* @__PURE__ */n("ol",{className:"flex items-center gap-1.5 text-sm",children:d.map((e,i)=>/* @__PURE__ */s(a,{children:[i>0&&/* @__PURE__ */n("li",{"aria-hidden":!0,className:"flex items-center",children:h}),
3
3
  /* @__PURE__ */n("li",{className:"flex min-w-0 items-center",children:"ellipsis"===e.kind?/* @__PURE__ */n("span",{className:"px-0.5 text-gray-400 select-none","aria-label":o.hidden,children:"…"}):e.isLast||!e.item.href&&!e.item.onClick?/* @__PURE__ */s("span",{"aria-current":e.isLast?"page":void 0,className:"inline-flex min-w-0 items-center gap-1 truncate "+(e.isLast?"font-medium text-gray-900":"text-gray-500"),children:[e.item.icon,
4
4
  /* @__PURE__ */n("span",{className:"truncate",children:e.item.label})]}):e.item.href?/* @__PURE__ */s("a",{href:e.item.href,onClick:e.item.onClick,className:l,children:[e.item.icon,
@@ -1,8 +1,8 @@
1
- import{useDismissPopupsOnOpen as e}from"./chunk-AFYQTVZO.js";import{registerModalEscapeInterceptor as t,Z_LAYERS as n}from"./chunk-X4FJ54PP.js";import{CloseFallbackB as r,WarningFallback as o,CloseFallback as l}from"./chunk-6LTDJKIL.js";import{useShellStrings as i,splitAround as a}from"./chunk-TNBCUZVE.js";import{Icon as s}from"./chunk-XWSWYMGM.js";import{createContext as c,useEffect as d,useRef as u,useId as m,useContext as f,useState as b,useCallback as h}from"react";import{jsxs as g,jsx as p,Fragment as y}from"react/jsx-runtime";var x=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");function v(e){return Array.from(e.querySelectorAll(x)).filter(e=>null!==e.offsetParent||e===document.activeElement)}var w=[];function N(e){const t=w.findIndex(t=>t!==e&&e.contains(t));-1===t?w.push(e):w.splice(t,0,e)}function k(e){const t=w.lastIndexOf(e);-1!==t&&w.splice(t,1)}var C=/* @__PURE__ */new WeakSet;function L(e){return v(e)}function E(e,t){d(()=>{if(!t)return;const n=e.current;return n?(C.add(n),N(n),()=>{k(n),C.delete(n)}):void 0},[e,t])}function P(e,t){const n=w.lastIndexOf(t),r=n>0?w[n-1]:-1===n?w[w.length-1]??null:null,o=v(r??e.ownerDocument.body).filter(n=>!t.contains(n)&&!e.contains(n)),l=o.find(t=>0!==(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING));return l||(r&&!C.has(r)?o[0]??null:null)}function j(e,t,n){d(()=>{if(!t)return;const r=e.current;if(!r)return;const o=document.activeElement,l=n?.current??v(r)[0]??r;l!==r||r.hasAttribute("tabindex")||r.setAttribute("tabindex","-1"),l.focus();const i=e=>{if("Tab"!==e.key)return;if(w[w.length-1]!==r)return;const t=v(r);if(0===t.length)return void e.preventDefault();const n=t[0],o=t[t.length-1],l=document.activeElement;!e.shiftKey||l!==n&&r.contains(l)?e.shiftKey||l!==o&&r.contains(l)||(e.preventDefault(),n.focus()):(e.preventDefault(),o.focus())};return N(r),document.addEventListener("keydown",i,!0),()=>{k(r),document.removeEventListener("keydown",i,!0),(r.contains(document.activeElement)||document.activeElement===document.body)&&o?.focus?.()}},[e,t,n])}var T=0,W=null;function D(e){d(()=>{if(!e)return;const t=document.body;if(0===T){W={overflow:t.style.overflow,paddingRight:t.style.paddingRight};const e=window.innerWidth-document.documentElement.clientWidth;t.style.overflow="hidden",e>0&&(t.style.paddingRight=`${e}px`)}return T+=1,()=>{0===(T-=1)&&W&&(t.style.overflow=W.overflow,t.style.paddingRight=W.paddingRight,W=null)}},[e])}var F={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-4xl"};function I({open:o,onClose:l,title:a,description:c,role:f="dialog",children:b,footer:h,blocking:y=!1,size:x="md",initialFocus:v,"aria-label":w,"aria-labelledby":N,"aria-describedby":k,className:C=""}){const L=u(null),E=m(),P=m(),T=!y&&!h,W=m(),I=i().dialog;return e(o),j(L,o,v),D(o),d(()=>{if(o)return t(()=>(y||l(),!0),()=>L.current)},[o,y,l]),o?/* @__PURE__ */g("div",{className:"fixed inset-0",style:{zIndex:n.overlay},role:"presentation",children:[
1
+ import{useDismissPopupsOnOpen as e}from"./chunk-AFYQTVZO.js";import{registerModalEscapeInterceptor as t,Z_LAYERS as n}from"./chunk-X4FJ54PP.js";import{CloseFallbackB as r,WarningFallback as o,CloseFallback as l}from"./chunk-6LTDJKIL.js";import{Icon as i}from"./chunk-XWSWYMGM.js";import{useShellStrings as a,splitAround as s}from"./chunk-TNBCUZVE.js";import{createContext as c,useEffect as d,useRef as u,useId as m,useContext as f,useState as b,useCallback as h}from"react";import{jsxs as g,jsx as p,Fragment as y}from"react/jsx-runtime";var x=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");function v(e){return Array.from(e.querySelectorAll(x)).filter(e=>null!==e.offsetParent||e===document.activeElement)}var w=[];function N(e){const t=w.findIndex(t=>t!==e&&e.contains(t));-1===t?w.push(e):w.splice(t,0,e)}function k(e){const t=w.lastIndexOf(e);-1!==t&&w.splice(t,1)}var C=/* @__PURE__ */new WeakSet;function L(e){return v(e)}function E(e,t){d(()=>{if(!t)return;const n=e.current;return n?(C.add(n),N(n),()=>{k(n),C.delete(n)}):void 0},[e,t])}function P(e,t){const n=w.lastIndexOf(t),r=n>0?w[n-1]:-1===n?w[w.length-1]??null:null,o=v(r??e.ownerDocument.body).filter(n=>!t.contains(n)&&!e.contains(n)),l=o.find(t=>0!==(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING));return l||(r&&!C.has(r)?o[0]??null:null)}function j(e,t,n){d(()=>{if(!t)return;const r=e.current;if(!r)return;const o=document.activeElement,l=n?.current??v(r)[0]??r;l!==r||r.hasAttribute("tabindex")||r.setAttribute("tabindex","-1"),l.focus();const i=e=>{if("Tab"!==e.key)return;if(w[w.length-1]!==r)return;const t=v(r);if(0===t.length)return void e.preventDefault();const n=t[0],o=t[t.length-1],l=document.activeElement;!e.shiftKey||l!==n&&r.contains(l)?e.shiftKey||l!==o&&r.contains(l)||(e.preventDefault(),n.focus()):(e.preventDefault(),o.focus())};return N(r),document.addEventListener("keydown",i,!0),()=>{k(r),document.removeEventListener("keydown",i,!0),(r.contains(document.activeElement)||document.activeElement===document.body)&&o?.focus?.()}},[e,t,n])}var T=0,W=null;function D(e){d(()=>{if(!e)return;const t=document.body;if(0===T){W={overflow:t.style.overflow,paddingRight:t.style.paddingRight};const e=window.innerWidth-document.documentElement.clientWidth;t.style.overflow="hidden",e>0&&(t.style.paddingRight=`${e}px`)}return T+=1,()=>{0===(T-=1)&&W&&(t.style.overflow=W.overflow,t.style.paddingRight=W.paddingRight,W=null)}},[e])}var F={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-4xl"};function I({open:o,onClose:l,title:s,description:c,role:f="dialog",children:b,footer:h,blocking:y=!1,size:x="md",initialFocus:v,"aria-label":w,"aria-labelledby":N,"aria-describedby":k,className:C=""}){const L=u(null),E=m(),P=m(),T=!y&&!h,W=m(),I=a().dialog;return e(o),j(L,o,v),D(o),d(()=>{if(o)return t(()=>(y||l(),!0),()=>L.current)},[o,y,l]),o?/* @__PURE__ */g("div",{className:"fixed inset-0",style:{zIndex:n.overlay},role:"presentation",children:[
2
2
  /* @__PURE__ */p("div",{className:"fixed inset-0 bg-black/30","aria-hidden":"true"}),
3
- /* @__PURE__ */p("div",{className:"fixed inset-0 flex items-center justify-center p-4",onClick:y?void 0:e=>{e.target===e.currentTarget&&l()},children:/* @__PURE__ */g("div",{ref:L,role:f,"aria-modal":"true","aria-labelledby":a?W:N,"aria-label":a||N?void 0:w,"aria-describedby":k??(c?P:b?E:void 0),className:`relative max-h-full w-full ${F[x]} overflow-y-auto overscroll-contain rounded-(--radius-card) bg-white p-6 shadow-xl ${C}`.trim(),children:[a&&/* @__PURE__ */p("h2",{id:W,className:(T?"pr-8 ":"")+"text-base font-semibold text-gray-900",children:a}),c&&/* @__PURE__ */p("p",{id:P,className:((a?"mt-1":T?"pr-8":"")+" text-sm text-gray-500").trim(),children:c}),b&&/* @__PURE__ */p("div",{id:E,className:"mt-2 text-sm text-gray-600",children:b}),h&&/* @__PURE__ */p("div",{className:"mt-6 flex flex-wrap justify-end gap-3",children:h}),T&&/* @__PURE__ */p("button",{type:"button",onClick:l,"aria-label":I.close,className:"absolute right-3 top-3 rounded-(--radius-control) p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */p(s,{name:"close",fallback:r,className:"h-5 w-5",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"})})]})})]}):null}var O=c(()=>Promise.resolve(!1)),$=()=>f(O),A=()=>Promise.resolve(!1),K=e=>A(e),R=()=>Promise.resolve(!1),S=e=>R(e),M=()=>Promise.resolve(null),V=e=>M(e),z={danger:{icon:"text-red-600 bg-red-100",button:"bg-red-600 hover:bg-red-700 text-white"},warning:{icon:"text-yellow-600 bg-yellow-100",button:"bg-yellow-600 hover:bg-yellow-700 text-white"},info:{icon:"text-blue-600 bg-blue-100",button:"bg-blue-600 hover:bg-blue-700 text-white"}},G="bg-white text-gray-700 border border-gray-300 px-4 py-2 text-sm font-medium rounded-lg hover:bg-gray-50";function J(){/* @__PURE__ */
4
- return p(s,{name:"warning",fallback:o,className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function U(){/* @__PURE__ */
5
- return p(s,{name:"close",fallback:l,className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function X({children:e}){const[t,n]=b(!1),[r,o]=b({message:""}),[l,s]=b(0),c=u(),m=u(null),f=u(0),x=u([]),v=u(null),w=u(null),N=h(e=>{m.current=e.id,c.current=e.resolve,s(e.id),o(e.options),n(!0)},[]),k=h(e=>{const t="string"==typeof e?{message:e}:e;return new Promise(e=>{const n={id:++f.current,options:t,resolve:e};null===m.current?N(n):x.current.push(n)})},[N]),[C,L]=b(!1),[E,P]=b({message:""}),[j,T]=b(""),W=u(),D=h(e=>(P(e),T(""),L(!0),new Promise(e=>{W.current=e})),[]),[F,$]=b(!1),[K,S]=b({}),[V,X]=b(""),Y=u(),Z=h(e=>{const t="string"==typeof e?{message:e}:e;return S(t),X(t.defaultValue??""),$(!0),new Promise(e=>{Y.current=e})},[]);d(()=>{A=k,R=D,M=Z},[k,D,Z]);const _=(e,t)=>{if(m.current!==e)return;const r=c.current,o=x.current.shift();o?N(o):(m.current=null,c.current=void 0,n(!1)),r?.(t)},q=e=>{L(!1),T(""),W.current?.(e)},B=e=>{if(e){const e=V.trim();if(!e&&!K.allowEmpty)return $(!1),void Y.current?.(null);$(!1),Y.current?.(e)}else $(!1),Y.current?.(null)},Q=r.variant||(r.confirmLabel?.toLowerCase().includes("delete")||r.message.toLowerCase().includes("delete")?"danger":"info"),H=z[Q],ee=z["warning"===E.variant?"warning":"danger"],te=E.confirmWord,ne=null==te||j===te,re=i().dialog,[oe,le]=a(re.typeToConfirm);/* @__PURE__ */
3
+ /* @__PURE__ */p("div",{className:"fixed inset-0 flex items-center justify-center p-4",onClick:y?void 0:e=>{e.target===e.currentTarget&&l()},children:/* @__PURE__ */g("div",{ref:L,role:f,"aria-modal":"true","aria-labelledby":s?W:N,"aria-label":s||N?void 0:w,"aria-describedby":k??(c?P:b?E:void 0),className:`relative max-h-full w-full ${F[x]} overflow-y-auto overscroll-contain rounded-(--radius-card) bg-white p-6 shadow-xl ${C}`.trim(),children:[s&&/* @__PURE__ */p("h2",{id:W,className:(T?"pr-8 ":"")+"text-base font-semibold text-gray-900",children:s}),c&&/* @__PURE__ */p("p",{id:P,className:((s?"mt-1":T?"pr-8":"")+" text-sm text-gray-500").trim(),children:c}),b&&/* @__PURE__ */p("div",{id:E,className:"mt-2 text-sm text-gray-600",children:b}),h&&/* @__PURE__ */p("div",{className:"mt-6 flex flex-wrap justify-end gap-3",children:h}),T&&/* @__PURE__ */p("button",{type:"button",onClick:l,"aria-label":I.close,className:"absolute right-3 top-3 rounded-(--radius-control) p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */p(i,{name:"close",fallback:r,className:"h-5 w-5",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"})})]})})]}):null}var O=c(()=>Promise.resolve(!1)),$=()=>f(O),A=()=>Promise.resolve(!1),K=e=>A(e),R=()=>Promise.resolve(!1),S=e=>R(e),M=()=>Promise.resolve(null),V=e=>M(e),z={danger:{icon:"text-red-600 bg-red-100",button:"bg-red-600 hover:bg-red-700 text-white"},warning:{icon:"text-yellow-600 bg-yellow-100",button:"bg-yellow-600 hover:bg-yellow-700 text-white"},info:{icon:"text-blue-600 bg-blue-100",button:"bg-blue-600 hover:bg-blue-700 text-white"}},G="bg-white text-gray-700 border border-gray-300 px-4 py-2 text-sm font-medium rounded-lg hover:bg-gray-50";function J(){/* @__PURE__ */
4
+ return p(i,{name:"warning",fallback:o,className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function U(){/* @__PURE__ */
5
+ return p(i,{name:"close",fallback:l,className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function X({children:e}){const[t,n]=b(!1),[r,o]=b({message:""}),[l,i]=b(0),c=u(),m=u(null),f=u(0),x=u([]),v=u(null),w=u(null),N=h(e=>{m.current=e.id,c.current=e.resolve,i(e.id),o(e.options),n(!0)},[]),k=h(e=>{const t="string"==typeof e?{message:e}:e;return new Promise(e=>{const n={id:++f.current,options:t,resolve:e};null===m.current?N(n):x.current.push(n)})},[N]),[C,L]=b(!1),[E,P]=b({message:""}),[j,T]=b(""),W=u(),D=h(e=>(P(e),T(""),L(!0),new Promise(e=>{W.current=e})),[]),[F,$]=b(!1),[K,S]=b({}),[V,X]=b(""),Y=u(),Z=h(e=>{const t="string"==typeof e?{message:e}:e;return S(t),X(t.defaultValue??""),$(!0),new Promise(e=>{Y.current=e})},[]);d(()=>{A=k,R=D,M=Z},[k,D,Z]);const _=(e,t)=>{if(m.current!==e)return;const r=c.current,o=x.current.shift();o?N(o):(m.current=null,c.current=void 0,n(!1)),r?.(t)},q=e=>{L(!1),T(""),W.current?.(e)},B=e=>{if(e){const e=V.trim();if(!e&&!K.allowEmpty)return $(!1),void Y.current?.(null);$(!1),Y.current?.(e)}else $(!1),Y.current?.(null)},Q=r.variant||(r.confirmLabel?.toLowerCase().includes("delete")||r.message.toLowerCase().includes("delete")?"danger":"info"),H=z[Q],ee=z["warning"===E.variant?"warning":"danger"],te=E.confirmWord,ne=null==te||j===te,re=a().dialog,[oe,le]=s(re.typeToConfirm);/* @__PURE__ */
6
6
  return g(O.Provider,{value:k,children:[e,
7
7
  /* @__PURE__ */p(I,{open:t,onClose:()=>_(l,!1),initialFocus:v,footer:/* @__PURE__ */g(y,{children:[
8
8
  /* @__PURE__ */p("button",{ref:v,type:"button",onClick:()=>_(l,!1),className:G,children:r.cancelLabel||re.cancel}),
@@ -1,3 +1,3 @@
1
- import{CheckFallbackC as e,CopyFallback as t}from"./chunk-6LTDJKIL.js";import{useShellStrings as r}from"./chunk-TNBCUZVE.js";import{Icon as o}from"./chunk-XWSWYMGM.js";import{useState as c,useRef as a,useEffect as i,useCallback as n}from"react";import{jsx as u}from"react/jsx-runtime";function m(e){const[t,r]=c(!1),o=a(void 0);i(()=>()=>clearTimeout(o.current),[]);return{copied:t,copy:n(t=>{t?.stopPropagation(),navigator.clipboard?.writeText(e).then(()=>{r(!0),clearTimeout(o.current),o.current=setTimeout(()=>r(!1),1500)},()=>{})},[e])}}function p({copied:r,className:c="w-4 h-4"}){/* @__PURE__ */
2
- return u(o,r?{name:"check",fallback:e,className:`${c} text-green-600`,"aria-hidden":"true"}:{name:"copy",fallback:t,className:c,"aria-hidden":"true"})}function s({text:e}){const{copied:t,copy:o}=m(e),c=r().copy;/* @__PURE__ */
3
- return u("button",{onClick:o,title:t?c.copiedValue:c.copyValue(e),className:"shrink-0 text-gray-400 hover:text-gray-600 transition-colors",children:/* @__PURE__ */u(p,{copied:t})})}export{s as CopyButton,p as CopyGlyph,m as useCopyText};
1
+ import{CheckFallbackC as e,CopyFallback as t}from"./chunk-6LTDJKIL.js";import{Icon as r}from"./chunk-XWSWYMGM.js";import{useShellStrings as o}from"./chunk-TNBCUZVE.js";import{useState as c,useRef as a,useEffect as i,useCallback as n}from"react";import{jsx as u}from"react/jsx-runtime";function m(e){const[t,r]=c(!1),o=a(void 0);i(()=>()=>clearTimeout(o.current),[]);return{copied:t,copy:n(t=>{t?.stopPropagation(),navigator.clipboard?.writeText(e).then(()=>{r(!0),clearTimeout(o.current),o.current=setTimeout(()=>r(!1),1500)},()=>{})},[e])}}function p({copied:o,className:c="w-4 h-4"}){/* @__PURE__ */
2
+ return u(r,o?{name:"check",fallback:e,className:`${c} text-green-600`,"aria-hidden":"true"}:{name:"copy",fallback:t,className:c,"aria-hidden":"true"})}function s({text:e}){const{copied:t,copy:r}=m(e),c=o().copy;/* @__PURE__ */
3
+ return u("button",{onClick:r,title:t?c.copiedValue:c.copyValue(e),className:"shrink-0 text-gray-400 hover:text-gray-600 transition-colors",children:/* @__PURE__ */u(p,{copied:t})})}export{s as CopyButton,p as CopyGlyph,m as useCopyText};
@@ -1,9 +1,9 @@
1
- import{VERSION as e}from"./chunk-WRBXEZFN.js";import{useWindowMenuItem as t,Modal as r}from"./chunk-L5XA5MLK.js";import{navIcons as s}from"./chunk-DSSLOQDW.js";import{InfoFallback as o,WindowFallback as n}from"./chunk-6LTDJKIL.js";import{DEFAULT_SHELL_STRINGS as i,useShellStrings as a,splitAround as m}from"./chunk-TNBCUZVE.js";import{Icon as c}from"./chunk-XWSWYMGM.js";import{useState as l,useCallback as p,isValidElement as d,cloneElement as h}from"react";import{jsx as u,jsxs as f}from"react/jsx-runtime";var x=i.aboutApp,v={spreadsheet:{name:"Spreadsheets",version:"1.1.3",route:"/spreadsheet",description:x.spreadsheet},notepad:{name:"Notepad",version:"1.0.1",route:"/notepad",description:x.notepad},documents:{name:"Documents",version:"1.1.0",route:"/documents",description:x.documents},preview:{name:"Preview",version:"1.4.2",route:"/preview",description:x.preview},files:{name:"Files",version:"1.1.1",route:"/files",description:x.files},browser:{name:"Browser",version:"1.0.1",route:"/browser",description:x.browser}},w=/* @__PURE__ */u(c,{name:"info",fallback:o,className:"h-4 w-4 text-gray-400",strokeWidth:1.5}),N=/* @__PURE__ */u(c,{name:"window",fallback:n,className:"h-9 w-9",strokeWidth:1.5});function g({app:o}){const n=v[o],[i,c]=l(!1),x=p(()=>c(!0),[]),g=a().aboutApp,b=g.title(n.name);if(t(b,x,w),!i)return null;const y=s[n.route],k=d(y)?h(y,{className:"h-9 w-9"}):N,[j,W]=m(g.partOf);/* @__PURE__ */
2
- return u(r,{open:!0,onClose:()=>c(!1),title:b,size:"sm",compact:!0,bodyScroll:!1,autoHeight:!0,dimensions:[320,320],children:/* @__PURE__ */f("div",{className:"flex flex-col items-center text-center px-5 pt-5 pb-4",children:[
1
+ import{VERSION as e}from"./chunk-SFCDHHQP.js";import{useWindowMenuItem as t,Modal as r}from"./chunk-VWBQ2P5G.js";import{navIcons as s}from"./chunk-DSSLOQDW.js";import{InfoFallback as o,WindowFallback as n}from"./chunk-6LTDJKIL.js";import{Icon as i}from"./chunk-XWSWYMGM.js";import{DEFAULT_SHELL_STRINGS as a,useShellStrings as m,splitAround as c}from"./chunk-TNBCUZVE.js";import{useState as l,useCallback as p,isValidElement as d,cloneElement as h}from"react";import{jsx as u,jsxs as f}from"react/jsx-runtime";var x=a.aboutApp,v={spreadsheet:{name:"Spreadsheets",version:"1.1.3",route:"/spreadsheet",description:x.spreadsheet},notepad:{name:"Notepad",version:"1.0.1",route:"/notepad",description:x.notepad},documents:{name:"Documents",version:"1.1.0",route:"/documents",description:x.documents},preview:{name:"Preview",version:"1.4.2",route:"/preview",description:x.preview},files:{name:"Files",version:"1.1.1",route:"/files",description:x.files},browser:{name:"Browser",version:"1.0.1",route:"/browser",description:x.browser}},w=/* @__PURE__ */u(i,{name:"info",fallback:o,className:"h-4 w-4 text-gray-400",strokeWidth:1.5}),g=/* @__PURE__ */u(i,{name:"window",fallback:n,className:"h-9 w-9",strokeWidth:1.5});function N({app:o}){const n=v[o],[i,a]=l(!1),x=p(()=>a(!0),[]),N=m().aboutApp,b=N.title(n.name);if(t(b,x,w),!i)return null;const y=s[n.route],k=d(y)?h(y,{className:"h-9 w-9"}):g,[j,S]=c(N.partOf);/* @__PURE__ */
2
+ return u(r,{open:!0,onClose:()=>a(!1),title:b,size:"sm",compact:!0,bodyScroll:!1,autoHeight:!0,dimensions:[320,320],children:/* @__PURE__ */f("div",{className:"flex flex-col items-center text-center px-5 pt-5 pb-4",children:[
3
3
  /* @__PURE__ */u("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl bg-gray-100 text-gray-600 shrink-0",children:k}),
4
4
  /* @__PURE__ */u("h2",{className:"mt-3 text-lg font-bold text-gray-900",children:n.name}),
5
- /* @__PURE__ */u("p",{className:"text-[11px] font-mono text-gray-400",children:g.version(n.version)}),
6
- /* @__PURE__ */u("p",{className:"mt-2 text-xs text-gray-500 leading-relaxed",children:g[o]}),
5
+ /* @__PURE__ */u("p",{className:"text-[11px] font-mono text-gray-400",children:N.version(n.version)}),
6
+ /* @__PURE__ */u("p",{className:"mt-2 text-xs text-gray-500 leading-relaxed",children:N[o]}),
7
7
  /* @__PURE__ */f("div",{className:"mt-4 pt-3 border-t border-gray-200 w-full",children:[
8
8
  /* @__PURE__ */f("p",{className:"text-[11px] text-gray-500",children:[j,
9
- /* @__PURE__ */u("span",{className:"font-medium text-gray-700",children:"efficient-shell"}),W]}),e&&/* @__PURE__ */u("p",{className:"mt-0.5 text-[10px] font-mono text-gray-400",children:g.shellVersion(e)})]})]})})}export{g as AboutApp,v as BUILTIN_APP_INFO};
9
+ /* @__PURE__ */u("span",{className:"font-medium text-gray-700",children:"efficient-shell"}),S]}),e&&/* @__PURE__ */u("p",{className:"mt-0.5 text-[10px] font-mono text-gray-400",children:N.shellVersion(e)})]})]})})}export{N as AboutApp,v as BUILTIN_APP_INFO};