efficient-shell 7.22.1 → 7.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/{Browser-CHVGSLN7.js → Browser-AD3RE7T2.js} +13 -13
- package/dist/Calculator-S4SULQZG.js +29 -0
- package/dist/ConfirmDialog-TGAPFTMU.js +1 -0
- package/dist/CurrencyConverter-6A5U4LH3.js +21 -0
- package/dist/Documents-7QQ4YCEI.js +52 -0
- package/dist/Files-RZCHDHS3.js +87 -0
- package/dist/Notepad-BNO4WRTV.js +25 -0
- package/dist/PdfViewer-2OHHAS7B.js +1 -0
- package/dist/{PomodoroTimer-N7L7HBYO.js → PomodoroTimer-F7BGUOY2.js} +13 -13
- package/dist/Preview-TZHSJXTW.js +179 -0
- package/dist/Sidebar-PU6MUQEQ.js +44 -0
- package/dist/Spreadsheet-OU5ZRWKW.js +37 -0
- package/dist/{Stock-UOPST3LH.js → Stock-EC62JSPA.js} +7 -7
- package/dist/Weather-VHHULAGC.js +60 -0
- package/dist/WorldClock-AM54TQZB.js +32 -0
- package/dist/apps/index.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/{chunk-MRE4Y2YJ.js → chunk-6CC3IJ7Y.js} +1 -1
- package/dist/{chunk-N2OO2ZYF.js → chunk-75BDNIYU.js} +1 -1
- package/dist/{chunk-ZU47TGM3.js → chunk-AW7GP54G.js} +4 -4
- package/dist/chunk-BSCGC2HA.js +1 -0
- package/dist/{chunk-FM6TPY42.js → chunk-CZZYMC7P.js} +27 -27
- package/dist/{chunk-4M7DEG4E.js → chunk-D5CGXUQK.js} +33 -33
- package/dist/{chunk-OFHMRWST.js → chunk-E6XEPPFY.js} +1 -1
- package/dist/{chunk-AKEMYW3H.js → chunk-EEXHZUG5.js} +2 -2
- package/dist/{chunk-EA7QO447.js → chunk-G6LV5Z2W.js} +1 -1
- package/dist/chunk-HAVGHJ7A.js +1 -0
- package/dist/{chunk-6J7HKGHL.js → chunk-ISEM2MNY.js} +1 -1
- package/dist/{chunk-AV5XPUKR.js → chunk-ISN4DJJ7.js} +9 -9
- package/dist/{chunk-FS27CODA.js → chunk-JI2JL7ZQ.js} +1 -1
- package/dist/chunk-LISZ45TA.js +1034 -0
- package/dist/chunk-MMHI7WBL.js +24 -0
- package/dist/{chunk-MBHQQFSZ.js → chunk-MUDY7BV4.js} +7 -7
- package/dist/chunk-NVFKXL52.js +2 -0
- package/dist/chunk-ODGCVNYP.js +10 -0
- package/dist/{chunk-Y7T3OW2A.js → chunk-R3IJQGAB.js} +1 -1
- package/dist/{chunk-BZD3UC4R.js → chunk-S2HHOX7O.js} +2 -2
- package/dist/{chunk-XFE43ZU5.js → chunk-U5H3Q5JM.js} +18 -18
- package/dist/{chunk-ARB5MUWA.js → chunk-UQOFRZMX.js} +1 -1
- package/dist/{chunk-OALCYDHN.js → chunk-W77WLTTH.js} +1 -1
- package/dist/chunk-YJRAJD27.js +27 -0
- package/dist/file-intake/index.js +1 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/{index-CMwbvwiY.d.ts → index--nXViytT.d.ts} +11 -8
- package/dist/index.d.ts +3 -3
- package/dist/index.js +631 -631
- package/dist/locales/zh-Hans.d.ts +1 -1
- package/dist/locales/zh-Hans.js +1 -1
- package/dist/map/index.js +6 -6
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/{strings-BfHOx-Bl.d.ts → strings-D9AIYTbE.d.ts} +2 -2
- package/dist/telemetry/index.js +1 -1
- package/dist/ui/index.d.ts +2 -2
- package/dist/ui/index.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-RKOELZ6W.js +0 -29
- package/dist/ConfirmDialog-JSVEON35.js +0 -1
- package/dist/CurrencyConverter-PLQ664ZV.js +0 -21
- package/dist/Documents-CKQCMALX.js +0 -52
- package/dist/Files-XSUFZ7ZR.js +0 -87
- package/dist/Notepad-3EGD2WCN.js +0 -25
- package/dist/PdfViewer-VIX2NDCO.js +0 -1
- package/dist/Preview-RRXQS5BI.js +0 -182
- package/dist/Sidebar-77VZQLKP.js +0 -44
- package/dist/Spreadsheet-X677FCIY.js +0 -37
- package/dist/Weather-HXZK2AYT.js +0 -60
- package/dist/WorldClock-MCDW7P6Q.js +0 -32
- package/dist/chunk-4EIZZYLK.js +0 -1
- package/dist/chunk-5VNBEMZQ.js +0 -1
- package/dist/chunk-E7WPTZE3.js +0 -27
- package/dist/chunk-J65OSKCY.js +0 -1032
- package/dist/chunk-ONDFYXHG.js +0 -24
- package/dist/chunk-ZMQ3GBEX.js +0 -11
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import{toast_default as e}from"./chunk-G6LV5Z2W.js";import{LoadingSpinner as t}from"./chunk-NVFKXL52.js";import{useShellStrings as n}from"./chunk-BSCGC2HA.js";import{Icon as r}from"./chunk-B427NVDP.js";import{createContext as a,useContext as o,useRef as i,useState as s,useEffect as l}from"react";import*as c from"pdfjs-dist";import{createPortal as d}from"react-dom";import{jsx as u,jsxs as m}from"react/jsx-runtime";function h(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 p=a(null);function f({children:e}){const t=o(p);return t?d(e,t):
|
|
2
|
+
/* @__PURE__ */u("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||c.GlobalWorkerOptions.workerSrc||(c.GlobalWorkerOptions.workerSrc=`https://unpkg.com/pdfjs-dist@${c.version}/build/pdf.worker.min.mjs`);var g={"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},w=class{async fetch({kind:e,filename:t}){if("wasmUrl"!==e)throw new Error(`Ensure that the \`${e}\` API parameter is provided.`);const n=g[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 h(n,t,a);return a}};function y(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:w}}var v=[50,75,100,125,150,200,300,400];function b(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 x({url:a,filename:o,fit:d="width",onDownload:h,onEmail:p,workerSrc:g,wasmUrl:w}){const x=n().pdf,k=i(null),C=i(null),N=i(null),[j,M]=s(null),[E,z]=s(1),[P,_]=s(0),[D,L]=s(1),[W,S]=s(!0),[$,A]=s(!0),T=i(x.loadFailed);T.current=x.loadFailed,l(()=>{let t=!1;return A(!0),z(1),g&&(c.GlobalWorkerOptions.workerSrc=g),c.getDocument({url:a,...y(w)}).promise.then(e=>{t||(M(e),_(e.numPages),A(!1))}).catch(()=>{t||(e.error(T.current),A(!1))}),()=>{t=!0}},[a,g,w]),l(()=>{if(!j||!W||!N.current)return;const e=()=>{const e=N.current;e&&j.getPage(E).then(t=>{if(!N.current)return;const n=t.getViewport({scale:1}),r=b(d,{width:e.clientWidth,height:e.clientHeight},{width:n.width,height:n.height});L(e=>Math.abs(e-r)<.005?e:r)})};e();const t=new ResizeObserver(e);return t.observe(N.current),()=>t.disconnect()},[j,E,W,d]),l(()=>{if(!j||!k.current)return;let e=!1,t=null,n=null;return j.getPage(E).then(r=>{if(e||!k.current)return;const a=r.getViewport({scale:D}),o=k.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 s=C.current;s&&(s.replaceChildren(),s.style.setProperty("--total-scale-factor",String(a.scale)),n=new c.TextLayer({textContentSource:r.streamTextContent(),container:s,viewport:a}),n.render().then(()=>{if(e)return;const t=document.createElement("div");t.className="endOfContent",s.append(t)}).catch(()=>{}))}),()=>{e=!0,t?.cancel(),n?.cancel()}},[j,E,D]),l(()=>{const e=()=>C.current?.classList.remove("selecting");return window.addEventListener("pointerup",e),()=>window.removeEventListener("pointerup",e)},[]);const O="page"===d?x.fitPage:x.fitWidth,H="px-2 py-1 rounded hover:bg-gray-200 transition-colors text-gray-600 flex items-center gap-1";/* @__PURE__ */
|
|
3
|
+
return m("div",{className:"flex flex-col h-full",children:[
|
|
4
|
+
/* @__PURE__ */m(f,{children:[
|
|
5
|
+
/* @__PURE__ */u("button",{type:"button","aria-label":x.previousPage,onClick:()=>z(e=>Math.max(1,e-1)),disabled:E<=1,className:"px-1 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",children:/* @__PURE__ */u(r,{name:"chevron-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
6
|
+
/* @__PURE__ */u("span",{className:"text-gray-600 font-medium tabular-nums whitespace-nowrap",children:x.pageOf(E,P)}),
|
|
7
|
+
/* @__PURE__ */u("button",{type:"button","aria-label":x.nextPage,onClick:()=>z(e=>Math.min(P,e+1)),disabled:E>=P,className:"px-1 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",children:/* @__PURE__ */u(r,{name:"chevron-right",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
8
|
+
/* @__PURE__ */u("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
|
|
9
|
+
/* @__PURE__ */u("button",{type:"button","aria-label":x.zoomOut,title:x.zoomOut,onClick:()=>{S(!1),L(e=>Math.max(.3,Math.round(100*(e-.25))/100))},className:H,children:/* @__PURE__ */u("span",{"aria-hidden":"true",children:"−"})}),
|
|
10
|
+
/* @__PURE__ */m("select",{value:W?"fit":v.includes(Math.round(100*D))?Math.round(100*D):"custom",onChange:e=>{const t=e.target.value;"fit"!==t?"custom"!==t&&(S(!1),L(Number(t)/100)):S(!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":x.zoom,title:x.zoom,children:[
|
|
11
|
+
/* @__PURE__ */u("option",{value:"fit",children:O}),!W&&!v.includes(Math.round(100*D))&&/* @__PURE__ */m("option",{value:"custom",children:[Math.round(100*D),"%"]}),v.map(e=>/* @__PURE__ */m("option",{value:e,children:[e,"%"]},e))]}),
|
|
12
|
+
/* @__PURE__ */u("button",{type:"button","aria-label":x.zoomIn,title:x.zoomIn,onClick:()=>{S(!1),L(e=>Math.min(4,Math.round(100*(e+.25))/100))},className:H,children:/* @__PURE__ */u("span",{"aria-hidden":"true",children:"+"})}),
|
|
13
|
+
/* @__PURE__ */u("button",{type:"button",onClick:()=>S(!0),"aria-pressed":W,className:H+(W?" bg-gray-200 text-gray-900":""),title:x.fitHint,children:x.fit}),
|
|
14
|
+
/* @__PURE__ */u("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
|
|
15
|
+
/* @__PURE__ */m("button",{type:"button",onClick:()=>{if(!j)return;const t=window.open("","_blank");if(!t)return void e.error(x.allowPopups);const n=[];for(let e=1;e<=P;e++)n.push(j.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=o,n.replace(/[&<>"]/g,e=>({"&":"&","<":"<",">":">",'"':"""}[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:H,children:[
|
|
16
|
+
/* @__PURE__ */u(r,{name:"print",className:"h-3.5 w-3.5",strokeWidth:1.5}),x.print]}),
|
|
17
|
+
/* @__PURE__ */m("button",{type:"button",onClick:h??(()=>{const e=document.createElement("a");e.href=a,e.download=o,e.click()}),className:H,children:[
|
|
18
|
+
/* @__PURE__ */u(r,{name:"download",className:"h-3.5 w-3.5",strokeWidth:1.5}),x.download]}),p&&/* @__PURE__ */m("button",{type:"button",onClick:p,className:H,children:[
|
|
19
|
+
/* @__PURE__ */u(r,{name:"email",className:"h-3.5 w-3.5",strokeWidth:1.5}),x.email]})]}),
|
|
20
|
+
/* @__PURE__ */u("div",{ref:N,className:"flex-1 overflow-auto bg-gray-100 outline-none",tabIndex:0,onWheel:e=>{if(!j)return;if(e.ctrlKey||e.metaKey)return;const t=N.current;if(!t)return;const n=t.scrollTop<=0,r=t.scrollTop+t.clientHeight>=t.scrollHeight-1;e.deltaY>0&&r&&E<P?(e.preventDefault(),z(e=>Math.min(P,e+1)),requestAnimationFrame(()=>{N.current&&(N.current.scrollTop=0)})):e.deltaY<0&&n&&E>1&&(e.preventDefault(),z(e=>Math.max(1,e-1)),requestAnimationFrame(()=>{N.current&&(N.current.scrollTop=N.current.scrollHeight)}))},onKeyDown:e=>{if(!j)return;const t=(document.activeElement?.tagName||"").toLowerCase();"input"===t||"textarea"===t||document.activeElement?.isContentEditable||("PageDown"===e.key||"ArrowRight"===e.key?E<P&&(e.preventDefault(),z(e=>Math.min(P,e+1))):"PageUp"===e.key||"ArrowLeft"===e.key?E>1&&(e.preventDefault(),z(e=>Math.max(1,e-1))):"Home"===e.key?(e.preventDefault(),z(1)):"End"===e.key&&(e.preventDefault(),z(P)))},children:$?/* @__PURE__ */u(t,{size:"sm",padding:"",className:"h-full",label:x.loading}):/* @__PURE__ */m("div",{className:"min-h-full flex items-center justify-center p-4",children:[
|
|
21
|
+
/* @__PURE__ */u("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
|
+
/* @__PURE__ */m("div",{className:"relative shadow-lg rounded",children:[
|
|
23
|
+
/* @__PURE__ */u("canvas",{ref:k,className:"block rounded"}),
|
|
24
|
+
/* @__PURE__ */u("div",{ref:C,className:"preview-pdf-textlayer",onPointerDown:e=>e.currentTarget.classList.add("selecting")})]})]})})]})}export{f as PanelActions,x as PdfViewer,p as ToolbarSlotContext,b as fitScale,y as pdfWasmParams};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{useCopyText as e,CopyGlyph as t}from"./chunk-
|
|
1
|
+
import{useCopyText as e,CopyGlyph as t}from"./chunk-JI2JL7ZQ.js";import{PopupMenu as n,PopupMenuItem as r,PopupMenuDivider as l}from"./chunk-GNW45MGV.js";import{useShellStrings as i}from"./chunk-BSCGC2HA.js";import{Icon as a}from"./chunk-B427NVDP.js";import{useState as o,useEffect as s,Fragment as c}from"react";import{jsxs as d,jsx as m,Fragment as u}from"react/jsx-runtime";var y="outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-500";function p(){/* @__PURE__ */
|
|
2
2
|
return m(a,{name:"close",look:"mini","aria-hidden":"true",className:"size-3.5"})}function h({text:n,label:r,copiedLabel:l}){const{copied:i,copy:a}=e(n);/* @__PURE__ */
|
|
3
|
-
return m("button",{type:"button",tabIndex:-1,"aria-label":i?l:r,title:i?l:r,onClick:a,className:"flex size-5 shrink-0 items-center justify-center rounded text-gray-400 hover:bg-gray-200 hover:text-gray-700 @max-[10rem]:hidden",children:/* @__PURE__ */m(t,{copied:i,className:"size-3.5"})})}function b({tabs:e,activeKey:t,idFor:a,panelMounted:b,onActivate:f,onClose:g,onCloseMany:x,label:k,className:v,activeClassName:N,end:w,onIconMenu:C,menuItems:j}){const $=i().pageTabs,[I,z]=o(null),D=e.length;s(()=>{if(!t)return;const e=document.getElementById(a(t,"tab"));e?.scrollIntoView?.({block:"nearest",inline:"nearest"})},[a,t,D]);const M=e.some(e=>e.key===t)?t:e[0]?.key,A=t=>{const n=e[(t+e.length)%e.length];n&&document.getElementById(a(n.key,"tab"))?.focus()},
|
|
3
|
+
return m("button",{type:"button",tabIndex:-1,"aria-label":i?l:r,title:i?l:r,onClick:a,className:"flex size-5 shrink-0 items-center justify-center rounded text-gray-400 hover:bg-gray-200 hover:text-gray-700 @max-[10rem]:hidden",children:/* @__PURE__ */m(t,{copied:i,className:"size-3.5"})})}function b({tabs:e,activeKey:t,idFor:a,panelMounted:b,onActivate:f,onClose:g,onCloseMany:x,label:k,className:v,activeClassName:N,end:w,onIconMenu:C,menuItems:j}){const $=i().pageTabs,[I,z]=o(null),D=e.length;s(()=>{if(!t)return;const e=document.getElementById(a(t,"tab"));e?.scrollIntoView?.({block:"nearest",inline:"nearest"})},[a,t,D]);const M=e.some(e=>e.key===t)?t:e[0]?.key,A=t=>{const n=e[(t+e.length)%e.length];n&&document.getElementById(a(n.key,"tab"))?.focus()},B=I?e.find(e=>e.key===I.key):void 0,_=B&&j?j(B.key):[],E=B?e.indexOf(B):-1,L=e=>e.some(e=>!e.pinned),G=e=>()=>{z(null),e()};/* @__PURE__ */
|
|
4
4
|
return d("div",{className:v??"relative flex h-10 shrink-0 items-end gap-3 bg-gray-100 px-3",children:[
|
|
5
5
|
/* @__PURE__ */m("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 bottom-0 h-px bg-gray-200"}),
|
|
6
6
|
/* @__PURE__ */m("div",{role:"tablist","aria-label":k,onKeyDown:t=>{const n=e.findIndex(e=>document.getElementById(a(e.key,"tab"))===t.target);if(!(n<0)){if("ArrowRight"===t.key)A(n+1);else if("ArrowLeft"===t.key)A(n-1);else if("Home"===t.key)A(0);else if("End"===t.key)A(e.length-1);else{if("Delete"!==t.key||e[n].pinned)return;g(e[n].key)}t.preventDefault()}},className:"flex min-w-0 flex-1 items-end overflow-x-auto overflow-y-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:e.map((n,r)=>{const l=n.key===t,i=!!n.dirty,o=n.icon,s=l?N??"z-[1] border-gray-200 bg-gray-50 text-gray-900":"border-transparent text-gray-600 hover:bg-gray-200/70 hover:text-gray-900",u=r>0&&!l&&e[r-1].key!==t,x={type:"button",role:"tab",id:a(n.key,"tab"),"aria-selected":l,"aria-controls":b?.(n.key)?a(n.key,"panel"):void 0,tabIndex:n.key===M?0:-1,title:n.title,onClick:()=>f(n.key)},k={onContextMenu:e=>((e,t)=>{e.preventDefault(),z({x:e.clientX,y:e.clientY,key:t.key})})(e,n),onAuxClick:e=>((e,t)=>{1!==e.button||t.pinned||(e.preventDefault(),g(t.key))})(e,n),onMouseDown:e=>{1===e.button&&e.preventDefault()}},v=o&&
|
|
@@ -12,10 +12,10 @@ return d("div",{className:v??"relative flex h-10 shrink-0 items-end gap-3 bg-gra
|
|
|
12
12
|
/* @__PURE__ */d("button",{...x,className:`flex h-full min-w-0 flex-1 items-center gap-2 rounded-t-md pr-1 text-left ${w?"pl-2":"pl-3"} ${y} ${l?w?"":"@max-[5rem]:pl-3":"@max-[6.5rem]:pr-3 @max-[6.5rem]:group-hover:pr-1 @max-[4.5rem]:justify-center @max-[4.5rem]:px-0 @max-[4.5rem]:group-hover:pl-2"}`,children:[!w&&v,
|
|
13
13
|
/* @__PURE__ */m("span",{className:"min-w-0 flex-1 overflow-hidden whitespace-nowrap [mask-image:linear-gradient(to_right,#000_calc(100%-1rem),transparent)] "+(o?l?"@max-[5rem]:sr-only":"@max-[4.5rem]:sr-only":""),children:n.title})]}),l&&n.copy&&/* @__PURE__ */m(h,{text:n.copy,label:$.copy(n.copy),copiedLabel:$.copied}),
|
|
14
14
|
/* @__PURE__ */d("span",{className:"mr-2 flex size-5 shrink-0 items-center justify-center "+(l?"":"@max-[6.5rem]:hidden @max-[6.5rem]:group-hover:flex"),children:[i&&/* @__PURE__ */m("span",{role:"img","aria-label":$.unsaved,className:"size-2 rounded-full bg-gray-500 group-hover:hidden"}),
|
|
15
|
-
/* @__PURE__ */m("button",{type:"button",tabIndex:-1,"aria-label":$.closeTab?.(n.title)??`${$.close} ${n.title}`,onClick:()=>g(n.key),className:"size-5 items-center justify-center rounded text-gray-400 hover:bg-gray-200 hover:text-gray-700 "+(i?"hidden group-hover:flex":l?"flex":"flex opacity-0 group-hover:opacity-100 focus-visible:opacity-100"),children:/* @__PURE__ */m(p,{})})]})]})]},n.key)})}),w&&/* @__PURE__ */m("div",{className:"flex shrink-0 items-center gap-2 self-center",children:w}),I&&
|
|
15
|
+
/* @__PURE__ */m("button",{type:"button",tabIndex:-1,"aria-label":$.closeTab?.(n.title)??`${$.close} ${n.title}`,onClick:()=>g(n.key),className:"size-5 items-center justify-center rounded text-gray-400 hover:bg-gray-200 hover:text-gray-700 "+(i?"hidden group-hover:flex":l?"flex":"flex opacity-0 group-hover:opacity-100 focus-visible:opacity-100"),children:/* @__PURE__ */m(p,{})})]})]})]},n.key)})}),w&&/* @__PURE__ */m("div",{className:"flex shrink-0 items-center gap-2 self-center",children:w}),I&&B&&/* @__PURE__ */d(n,{portal:!0,style:{left:I.x,top:I.y},onClose:()=>z(null),children:[_.length>0&&/* @__PURE__ */d(u,{children:[_.map((e,t)=>/* @__PURE__ */d(r,{onClick:G(e.onSelect),children:[e.icon,e.label]},t)),
|
|
16
16
|
/* @__PURE__ */m(l,{})]}),
|
|
17
|
-
/* @__PURE__ */m(r,{disabled:
|
|
17
|
+
/* @__PURE__ */m(r,{disabled:B.pinned,onClick:G(()=>g(B.key)),children:$.close}),
|
|
18
18
|
/* @__PURE__ */m(l,{}),
|
|
19
|
-
/* @__PURE__ */m(r,{disabled:!L(e.filter(e=>e.key!==
|
|
20
|
-
/* @__PURE__ */m(r,{disabled:!L(e.slice(E+1)),onClick:
|
|
21
|
-
/* @__PURE__ */m(r,{disabled:!L(e),onClick:
|
|
19
|
+
/* @__PURE__ */m(r,{disabled:!L(e.filter(e=>e.key!==B.key)),onClick:G(()=>x("others",B.key)),children:$.closeOthers}),
|
|
20
|
+
/* @__PURE__ */m(r,{disabled:!L(e.slice(E+1)),onClick:G(()=>x("right",B.key)),children:$.closeRight}),
|
|
21
|
+
/* @__PURE__ */m(r,{disabled:!L(e),onClick:G(()=>x("all",null)),children:$.closeAll})]})]})}export{b as TabStrip};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";function t({size:t="md",padding:s="py-12",label:n,className:l=""}){const a=r=>/* @__PURE__ */e("div",{className:`${r} shrink-0 animate-spin rounded-full border-2 border-(--line-strong) border-t-current text-blue-600`});return null==n?/* @__PURE__ */e("div",{className:`flex items-center justify-center ${s} ${l}`,children:a("sm"===t?"h-5 w-5":"lg"===t?"h-12 w-12":"h-8 w-8")}):/* @__PURE__ */r("div",{role:"status",className:`flex items-center justify-center gap-2 ${s} ${l}`,children:[a("h-4 w-4"),
|
|
2
|
+
/* @__PURE__ */e("span",{className:"text-sm text-gray-500",children:n})]})}export{t as LoadingSpinner};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{useHydrated as e,useBrowserState as t}from"./chunk-D65T4H6J.js";import{useShellStrings as r}from"./chunk-BSCGC2HA.js";import{Icon as n}from"./chunk-B427NVDP.js";import{createContext as o,useSyncExternalStore as i,useCallback as a,useContext as s,useMemo as c}from"react";import{jsxs as l,jsx as u}from"react/jsx-runtime";var d="(max-width: 767px), (pointer: coarse)";function f(){return!("undefined"==typeof window||!window.matchMedia)&&window.matchMedia(d).matches}function m(){return!1}function h(e){if("undefined"==typeof window||!window.matchMedia)return()=>{};const t=window.matchMedia(d);return t.addEventListener?(t.addEventListener("change",e),()=>t.removeEventListener("change",e)):(t.addListener(e),()=>t.removeListener(e))}function w(){return i(h,f,m)}var g={success:"success",error:"error",warning:"warning",info:"info",404:"info",403:"warning",500:"error"},p={success:"text-green-600 bg-green-100",error:"text-red-600 bg-red-100",warning:"text-amber-600 bg-amber-100",info:"text-blue-600 bg-blue-100"},y={404:e=>e.notFound,403:e=>e.noAccess,500:e=>e.serverError};function v({tone:e}){const t={className:"h-6 w-6",strokeWidth:1.5,"aria-hidden":!0};switch(e){case"success":/* @__PURE__ */
|
|
2
|
+
return u(n,{name:"check",...t});case"error":/* @__PURE__ */
|
|
3
|
+
return u(n,{name:"close",...t});case"warning":/* @__PURE__ */
|
|
4
|
+
return u(n,{name:"error",...t});default:/* @__PURE__ */
|
|
5
|
+
return u(n,{name:"info",...t})}}function x({status:e="info",title:t,subTitle:n,extra:o,icon:i,children:a,className:s=""}){const c=g[e],d=r().errors;/* @__PURE__ */
|
|
6
|
+
return l("div",{role:"error"===c?"alert":void 0,className:`flex flex-col items-center justify-center px-6 py-12 text-center ${s}`.trim(),children:[
|
|
7
|
+
/* @__PURE__ */u("div",{className:`flex h-14 w-14 items-center justify-center rounded-full ${p[c]}`,children:i??/* @__PURE__ */u(v,{tone:c})}),
|
|
8
|
+
/* @__PURE__ */u("h2",{className:"mt-4 text-lg font-semibold text-gray-900",children:t??y[e]?.(d)??""}),n&&/* @__PURE__ */u("p",{className:"mt-1 max-w-md text-sm text-gray-500",children:n}),a&&/* @__PURE__ */u("div",{className:"mt-4 w-full max-w-md text-left",children:a}),o&&/* @__PURE__ */u("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-3",children:o})]})}var b="undefined"!=typeof window&&"undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform||navigator.userAgent),_={MOD:["⌘","Ctrl"],ALT:["⌥","Alt"],CMD_ENTER:["⌘⏎","Ctrl⏎"],CMD_S:["⌘S","Ctrl+S"],CMD_K:["⌘K","Ctrl+K"],CMD_DOT:["⌘.","Ctrl+."],CMD_A:["⌘A","Ctrl+A"],CMD_Z:["⌘Z","Ctrl+Z"],CMD_SHIFT_Z:["⌘⇧Z","Ctrl+Shift+Z"],ALT_SHIFT_D:["⌥⇧D","Alt+Shift+D"],ALT_SHIFT_E:["⌥⇧E","Alt+Shift+E"],ALT_SHIFT_N:["⌥⇧N","Alt+Shift+N"]},C=b?0:1,S=_.MOD[C],D=_.ALT[C],E="⇧",L="⏎",M=_.CMD_ENTER[C],T=_.CMD_S[C],N=_.CMD_K[C],A=_.CMD_DOT[C],k=_.CMD_A[C],I=_.CMD_Z[C],H=_.CMD_SHIFT_Z[C],j=_.ALT_SHIFT_D[C],F=_.ALT_SHIFT_E[C],P=_.ALT_SHIFT_N[C],Z=new Map(b?Object.values(_).map(([e,t])=>[e,t]):[]);function O(t){return e()?t:Z.get(t)??t}var K={neutral:"inline-flex items-center justify-center rounded border border-gray-200 bg-gray-50 font-medium text-gray-500",accent:"inline-flex items-center justify-center rounded border kbd-submit font-medium",warning:"inline-flex items-center justify-center rounded border border-amber-300 bg-amber-100 font-medium"},R={sm:"px-1 py-0.5 text-2xs",md:"px-2 py-0.5 text-2xs"};function z({keys:e,size:t="md",tone:r="neutral",className:n=""}){const o=O(e);/* @__PURE__ */
|
|
9
|
+
return u("kbd",{className:[K[r],R[t],n].filter(Boolean).join(" "),children:o})}var B=o(null);function J({value:e,children:t}){/* @__PURE__ */
|
|
10
|
+
return u(B.Provider,{value:e,children:t})}function U(e="react-os-shell:prefs",r){const[n,o]=t(()=>{try{const t=JSON.parse(localStorage.getItem(e)||"{}");return{...r??{},...t}}catch{return{...r??{}}}},{...r??{}});return{prefs:n,save:a(t=>{o(r=>{const n={...r,...t};try{localStorage.setItem(e,JSON.stringify(n))}catch{}return n})},[e])}}var W={prefs:{},save:()=>{}};function $(){return s(B)??W}function G(){const{prefs:e,save:t}=$(),r=a(e=>{const r=t(e);return r&&"function"==typeof r.then?r.catch(()=>{}):r},[t]);return c(()=>({prefs:e,save:r}),[e,r])}var V="react-os-shell:stale-chunk-reload-at",q=3e4,Q="vite:preloadError",X="/_next/static/",Y=/Failed to fetch dynamically imported module|error loading dynamically imported module|Importing a module script failed|Unable to preload CSS/i;function ee(e){if(e instanceof Error&&"ChunkLoadError"===e.name)return!0;const t=e instanceof Error?e.message:"string"==typeof e?e:"";return Y.test(t)}function te(e={}){if("undefined"==typeof window)return()=>{};const t=e.cooldownMs??3e4,r=e.reload??(()=>window.location.reload()),n=e.now??Date.now,o=void 0===e.storage?function(){try{const e=window.sessionStorage;return e.getItem(V),e}catch{return null}}():e.storage,i=void 0===e.chunkPathPrefix?X:e.chunkPathPrefix,a=e=>{const r=n(),i=function(e){if(!e)return null;try{const t=e.getItem(V),r=null===t?NaN:Number(t);return Number.isFinite(r)?r:null}catch{return null}}(o);return null!==i&&r-i<t?(console.error("[efficient-shell] a lazy chunk is still missing after a reload; letting the failure through:",e),!1):(function(e,t){if(e)try{e.setItem(V,String(t))}catch{}}(o,r),console.warn("[efficient-shell] a lazy chunk is no longer on the server (new deploy?); reloading onto the current build:",e),!0)},s=e=>{const t=e.payload;ee(t)&&a(t)&&(e.preventDefault(),r())};let c=!0,l=!1;const u=/* @__PURE__ */new Set,d=null===i?null:e=>{const t=function(e,t){const r=e.target;let n="";if(r instanceof window.HTMLScriptElement?n=r.src:r instanceof window.HTMLLinkElement&&function(e){const t=e.rel.toLowerCase().split(/\s+/);if(t.includes("stylesheet")||t.includes("modulepreload"))return!0;const r=(e.getAttribute("as")??"").toLowerCase();return t.includes("preload")&&("script"===r||"style"===r)}(r)?n=r.href:e instanceof window.ErrorEvent&&"SyntaxError"===e.error?.name&&(n=e.filename),!n)return null;try{const e=new URL(t,window.location.origin).href,r=new URL(n,window.location.href).href;return r.startsWith(e)?r:null}catch{return null}}(e,i);!t||l||u.has(t)||(u.add(t),async function(e){try{const t=await fetch(e,{method:"HEAD",cache:"no-store"});return 404===t.status||410===t.status||t.ok&&/\btext\/html\b/i.test(t.headers.get("content-type")??"")}catch{return!1}}(t).then(e=>{u.delete(t),e&&c&&!l&&a(t)&&(l=!0,r())}))};return window.addEventListener(Q,s),d&&window.addEventListener("error",d,!0),()=>{c=!1,window.removeEventListener(Q,s),d&&window.removeEventListener("error",d,!0)}}export{D as ALT,j as ALT_SHIFT_D,F as ALT_SHIFT_E,P as ALT_SHIFT_N,k as CMD_A,A as CMD_DOT,M as CMD_ENTER,N as CMD_K,T as CMD_S,H as CMD_SHIFT_Z,I as CMD_Z,L as ENTER,z as Kbd,S as MOD,X as NEXT_CHUNK_PATH_PREFIX,x as Result,E as SHIFT,q as STALE_CHUNK_RELOAD_COOLDOWN_MS,V as STALE_CHUNK_RELOAD_KEY,J as ShellPrefsProvider,Q as VITE_PRELOAD_ERROR_EVENT,te as installStaleChunkReload,b as isMac,ee as isStaleChunkError,w as useIsMobile,U as useLocalStoragePrefs,G as useShellPrefs,$ as useShellPrefsAdapter,O as useShortcutLabel};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Modal as e}from"./chunk-
|
|
1
|
+
import{Modal as e}from"./chunk-D5CGXUQK.js";import{keepsNativeMenu as a}from"./chunk-GNW45MGV.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{useWindowMenuItem as e,Modal as t}from"./chunk-
|
|
1
|
+
import{useWindowMenuItem as e,Modal as t}from"./chunk-D5CGXUQK.js";import{navIcons as r}from"./chunk-DSSLOQDW.js";import{VERSION as s}from"./chunk-HAVGHJ7A.js";import{DEFAULT_SHELL_STRINGS as o,useShellStrings as n,splitAround as i}from"./chunk-BSCGC2HA.js";import{Icon as a}from"./chunk-B427NVDP.js";import{useState as m,useCallback as c,isValidElement as l,cloneElement as d}from"react";import{jsx as p,jsxs as h}from"react/jsx-runtime";var u=o.aboutApp,f={spreadsheet:{name:"Spreadsheets",version:"1.1.3",route:"/spreadsheet",description:u.spreadsheet},notepad:{name:"Notepad",version:"1.0.2",route:"/notepad",description:u.notepad},documents:{name:"Documents",version:"1.1.1",route:"/documents",description:u.documents},preview:{name:"Preview",version:"1.4.3",route:"/preview",description:u.preview},files:{name:"Files",version:"1.1.3",route:"/files",description:u.files},browser:{name:"Browser",version:"1.0.2",route:"/browser",description:u.browser}},x=/* @__PURE__ */p(a,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),v=/* @__PURE__ */p(a,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function w({app:o}){const a=f[o],[u,w]=m(!1),N=c(()=>w(!0),[]),g=n().aboutApp,b=g.title(a.name);if(e(b,N,x),!u)return null;const y=r[a.route],k=l(y)?d(y,{className:"h-9 w-9"}):v,[j,A]=i(g.partOf);/* @__PURE__ */
|
|
2
2
|
return p(t,{open:!0,onClose:()=>w(!1),title:b,size:"sm",compact:!0,bodyScroll:!1,autoHeight:!0,dimensions:[320,320],children:/* @__PURE__ */h("div",{className:"flex flex-col items-center text-center px-5 pt-5 pb-4",children:[
|
|
3
3
|
/* @__PURE__ */p("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__ */p("h2",{className:"mt-3 text-lg font-bold text-gray-900",children:a.name}),
|
|
@@ -6,4 +6,4 @@ return p(t,{open:!0,onClose:()=>w(!1),title:b,size:"sm",compact:!0,bodyScroll:!1
|
|
|
6
6
|
/* @__PURE__ */p("p",{className:"mt-2 text-xs text-gray-500 leading-relaxed",children:g[o]}),
|
|
7
7
|
/* @__PURE__ */h("div",{className:"mt-4 pt-3 border-t border-gray-200 w-full",children:[
|
|
8
8
|
/* @__PURE__ */h("p",{className:"text-2xs text-gray-500",children:[j,
|
|
9
|
-
/* @__PURE__ */p("span",{className:"font-medium text-gray-700",children:"efficient-shell"}),
|
|
9
|
+
/* @__PURE__ */p("span",{className:"font-medium text-gray-700",children:"efficient-shell"}),A]}),s&&/* @__PURE__ */p("p",{className:"mt-0.5 text-2xs font-mono text-gray-400",children:g.shellVersion(s)})]})]})})}export{w as AboutApp,f as BUILTIN_APP_INFO};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import{useDismissPopupsOnOpen as e}from"./chunk-UVBK6YSR.js";import{buttonClasses as t}from"./chunk-K7PQXJO7.js";import{registerModalEscapeInterceptor as n,Z_LAYERS as r}from"./chunk-FIEA5CGB.js";import{useShellStrings as l,splitAround as o}from"./chunk-
|
|
1
|
+
import{useDismissPopupsOnOpen as e}from"./chunk-UVBK6YSR.js";import{buttonClasses as t}from"./chunk-K7PQXJO7.js";import{registerModalEscapeInterceptor as n,Z_LAYERS as r}from"./chunk-FIEA5CGB.js";import{useShellStrings as l,splitAround as o}from"./chunk-BSCGC2HA.js";import{Icon as i}from"./chunk-B427NVDP.js";import{createContext as a,useEffect as s,useRef as c,useId as d,useContext as u,useState as m,useCallback as f}from"react";import{jsxs as h,jsx as b,Fragment as g}from"react/jsx-runtime";var v=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");function p(e){return Array.from(e.querySelectorAll(v)).filter(e=>null!==e.offsetParent||e===document.activeElement)}var y=[];function x(e){const t=y.findIndex(t=>t!==e&&e.contains(t));-1===t?y.push(e):y.splice(t,0,e)}function w(e){const t=y.lastIndexOf(e);-1!==t&&y.splice(t,1)}var N=/* @__PURE__ */new WeakSet;function k(e){return p(e)}function C(e,t){s(()=>{if(!t)return;const n=e.current;return n?(N.add(n),x(n),()=>{w(n),N.delete(n)}):void 0},[e,t])}function E(e,t){const n=y.lastIndexOf(t),r=n>0?y[n-1]:-1===n?y[y.length-1]??null:null,l=p(r??e.ownerDocument.body).filter(n=>!t.contains(n)&&!e.contains(n)),o=l.find(t=>0!==(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING));return o||(r&&!N.has(r)?l[0]??null:null)}function L(e,t,n){s(()=>{if(!t)return;const r=e.current;if(!r)return;const l=document.activeElement,o=n?.current??p(r)[0]??r;o!==r||r.hasAttribute("tabindex")||r.setAttribute("tabindex","-1"),o.focus();const i=e=>{if("Tab"!==e.key)return;if(y[y.length-1]!==r)return;const t=p(r);if(0===t.length)return void e.preventDefault();const n=t[0],l=t[t.length-1],o=document.activeElement;!e.shiftKey||o!==n&&r.contains(o)?e.shiftKey||o!==l&&r.contains(o)||(e.preventDefault(),n.focus()):(e.preventDefault(),l.focus())};return x(r),document.addEventListener("keydown",i,!0),()=>{w(r),document.removeEventListener("keydown",i,!0),(r.contains(document.activeElement)||document.activeElement===document.body)&&l?.focus?.()}},[e,t,n])}var P=0,j=null;function I(e){s(()=>{if(!e)return;const t=document.body;if(0===P){j={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 P+=1,()=>{0===(P-=1)&&j&&(t.style.overflow=j.overflow,t.style.paddingRight=j.paddingRight,j=null)}},[e])}function D({role:e="dialog",modal:t,titleId:n,labelledBy:r,label:l}){const o=n??r;return{role:e,"aria-modal":!!t||void 0,"aria-labelledby":o,"aria-label":o?void 0:l}}var F={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-4xl"};function O({open:t,onClose:o,title:a,description:u,role:m="dialog",children:f,footer:g,blocking:v=!1,size:p="md",initialFocus:y,"aria-label":x,"aria-labelledby":w,"aria-describedby":N,className:k=""}){const C=c(null),E=d(),P=d(),j=!v&&!g,O=d(),T=l().dialog;return e(t),L(C,t,y),I(t),s(()=>{if(t)return n(()=>(v||o(),!0),()=>C.current)},[t,v,o]),t?/* @__PURE__ */h("div",{className:"fixed inset-0",style:{zIndex:r.overlay},role:"presentation",children:[
|
|
2
2
|
/* @__PURE__ */b("div",{className:"fixed inset-0 bg-black/30","aria-hidden":"true"}),
|
|
3
|
-
/* @__PURE__ */b("div",{className:"fixed inset-0 flex items-center justify-center p-4",onClick:v?void 0:e=>{e.target===e.currentTarget&&o()},children:/* @__PURE__ */h("div",{ref:C,...D({role:m,modal:!0,titleId:a?O:void 0,labelledBy:w,label:x}),"aria-describedby":N??(u?P:f?E:void 0),className:`relative max-h-full w-full ${F[p]} overflow-y-auto overscroll-contain rounded-(--radius-card) bg-white p-6 shadow-xl ${k}`.trim(),children:[a&&/* @__PURE__ */b("h2",{id:O,className:(j?"pr-8 ":"")+"text-base font-semibold text-gray-900",children:a}),u&&/* @__PURE__ */b("p",{id:P,className:((a?"mt-1":j?"pr-8":"")+" text-sm text-gray-500").trim(),children:u}),f&&/* @__PURE__ */b("div",{id:E,className:"mt-2 text-sm text-gray-600",children:f}),g&&/* @__PURE__ */b("div",{className:"mt-6 flex flex-wrap justify-end gap-3",children:g}),j&&/* @__PURE__ */b("button",{type:"button",onClick:o,"aria-label":T.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__ */b(i,{name:"close",className:"h-5 w-5",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"})})]})})]}):null}var T=a(()=>Promise.resolve(!1)),W=()=>u(T)
|
|
4
|
-
return b(i,{name:"warning",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function
|
|
5
|
-
return b(i,{name:"close",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function
|
|
3
|
+
/* @__PURE__ */b("div",{className:"fixed inset-0 flex items-center justify-center p-4",onClick:v?void 0:e=>{e.target===e.currentTarget&&o()},children:/* @__PURE__ */h("div",{ref:C,...D({role:m,modal:!0,titleId:a?O:void 0,labelledBy:w,label:x}),"aria-describedby":N??(u?P:f?E:void 0),className:`relative max-h-full w-full ${F[p]} overflow-y-auto overscroll-contain rounded-(--radius-card) bg-white p-6 shadow-xl ${k}`.trim(),children:[a&&/* @__PURE__ */b("h2",{id:O,className:(j?"pr-8 ":"")+"text-base font-semibold text-gray-900",children:a}),u&&/* @__PURE__ */b("p",{id:P,className:((a?"mt-1":j?"pr-8":"")+" text-sm text-gray-500").trim(),children:u}),f&&/* @__PURE__ */b("div",{id:E,className:"mt-2 text-sm text-gray-600",children:f}),g&&/* @__PURE__ */b("div",{className:"mt-6 flex flex-wrap justify-end gap-3",children:g}),j&&/* @__PURE__ */b("button",{type:"button",onClick:o,"aria-label":T.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__ */b(i,{name:"close",className:"h-5 w-5",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"})})]})})]}):null}var T=a(()=>Promise.resolve(!1)),W=()=>u(T),$=()=>Promise.resolve(!1),A=e=>$(e),B=()=>Promise.resolve(!1),K=e=>B(e),R=()=>Promise.resolve(null),S=e=>R(e),G={danger:{icon:"text-red-600 bg-red-100",button:t({variant:"danger"})},warning:{icon:"text-yellow-600 bg-yellow-100",button:t({variant:"warning"})},info:{icon:"text-blue-600 bg-blue-100",button:t({variant:"primary"})}},V=t({variant:"secondary"}),z=t({variant:"primary"}),U="w-full rounded-md border border-gray-300 h-8 px-3 text-sm";function _(){/* @__PURE__ */
|
|
4
|
+
return b(i,{name:"warning",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function q(){/* @__PURE__ */
|
|
5
|
+
return b(i,{name:"close",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function H({children:e}){const[t,n]=m(!1),[r,i]=m({message:""}),[a,d]=m(0),u=c(),v=c(null),p=c(0),y=c([]),x=c(null),w=c(null),N=f(e=>{v.current=e.id,u.current=e.resolve,d(e.id),i(e.options),n(!0)},[]),k=f(e=>{const t="string"==typeof e?{message:e}:e;return new Promise(e=>{const n={id:++p.current,options:t,resolve:e};null===v.current?N(n):y.current.push(n)})},[N]),[C,E]=m(!1),[L,P]=m({message:""}),[j,I]=m(""),D=c(),F=f(e=>(P(e),I(""),E(!0),new Promise(e=>{D.current=e})),[]),[W,A]=m(!1),[K,S]=m({}),[H,J]=m(""),M=c(),Q=f(e=>{const t="string"==typeof e?{message:e}:e;return S(t),J(t.defaultValue??""),A(!0),new Promise(e=>{M.current=e})},[]);s(()=>{$=k,B=F,R=Q},[k,F,Q]);const X=(e,t)=>{if(v.current!==e)return;const r=u.current,l=y.current.shift();l?N(l):(v.current=null,u.current=void 0,n(!1)),r?.(t)},Y=e=>{E(!1),I(""),D.current?.(e)},Z=e=>{if(e){const e=H.trim();if(!e&&!K.allowEmpty)return A(!1),void M.current?.(null);A(!1),M.current?.(e)}else A(!1),M.current?.(null)},ee=r.variant||(r.confirmLabel?.toLowerCase().includes("delete")||r.message.toLowerCase().includes("delete")?"danger":"info"),te=G[ee],ne=G["warning"===L.variant?"warning":"danger"],re=L.confirmWord,le=null==re||j===re,oe=l().dialog,[ie,ae]=o(oe.typeToConfirm);/* @__PURE__ */
|
|
6
6
|
return h(T.Provider,{value:k,children:[e,
|
|
7
|
-
/* @__PURE__ */b(O,{open:t,onClose:()=>
|
|
8
|
-
/* @__PURE__ */b("button",{ref:x,type:"button",onClick:()=>
|
|
9
|
-
/* @__PURE__ */b("button",{type:"button",onClick:()=>
|
|
10
|
-
/* @__PURE__ */b("div",{className:`shrink-0 w-10 h-10 rounded-full flex items-center justify-center ${te.icon}`,children:/* @__PURE__ */b(
|
|
7
|
+
/* @__PURE__ */b(O,{open:t,onClose:()=>X(a,!1),initialFocus:x,footer:/* @__PURE__ */h(g,{children:[
|
|
8
|
+
/* @__PURE__ */b("button",{ref:x,type:"button",onClick:()=>X(a,!1),className:V,children:r.cancelLabel||oe.cancel}),
|
|
9
|
+
/* @__PURE__ */b("button",{type:"button",onClick:()=>X(a,!0),className:te.button,children:r.confirmLabel||oe.ok})]}),children:/* @__PURE__ */h("div",{className:"flex gap-4",children:[
|
|
10
|
+
/* @__PURE__ */b("div",{className:`shrink-0 w-10 h-10 rounded-full flex items-center justify-center ${te.icon}`,children:/* @__PURE__ */b(_,{})}),
|
|
11
11
|
/* @__PURE__ */h("div",{className:"flex-1",children:[
|
|
12
12
|
/* @__PURE__ */b("h2",{className:"text-base font-semibold text-gray-900",children:r.title||oe.confirmTitle}),
|
|
13
13
|
/* @__PURE__ */b("p",{className:"mt-2 text-sm text-gray-600",children:r.message})]})]})}),
|
|
14
|
-
/* @__PURE__ */h(O,{open:C,onClose:()=>
|
|
15
|
-
/* @__PURE__ */b("button",{ref:w,type:"button",onClick:()=>
|
|
16
|
-
/* @__PURE__ */b("button",{type:"button",onClick:()=>
|
|
17
|
-
/* @__PURE__ */b("button",{type:"button",onClick:()=>
|
|
14
|
+
/* @__PURE__ */h(O,{open:C,onClose:()=>Y(!1),initialFocus:null!=re?void 0:w,footer:/* @__PURE__ */h(g,{children:[
|
|
15
|
+
/* @__PURE__ */b("button",{ref:w,type:"button",onClick:()=>Y(!1),className:V,children:L.cancelLabel||oe.destructiveCancel}),
|
|
16
|
+
/* @__PURE__ */b("button",{type:"button",onClick:()=>Y(!0),disabled:!le,className:ne.button,children:re??L.confirmLabel??oe.destructiveConfirm})]}),children:[
|
|
17
|
+
/* @__PURE__ */b("button",{type:"button",onClick:()=>Y(!1),"aria-label":oe.close,className:"absolute right-4 top-4 rounded-md p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600",children:/* @__PURE__ */b(q,{})}),
|
|
18
18
|
/* @__PURE__ */h("div",{className:"flex gap-4",children:[
|
|
19
|
-
/* @__PURE__ */b("div",{className:`shrink-0 w-10 h-10 rounded-full flex items-center justify-center ${ne.icon}`,children:/* @__PURE__ */b(
|
|
19
|
+
/* @__PURE__ */b("div",{className:`shrink-0 w-10 h-10 rounded-full flex items-center justify-center ${ne.icon}`,children:/* @__PURE__ */b(_,{})}),
|
|
20
20
|
/* @__PURE__ */h("div",{className:"flex-1",children:[
|
|
21
21
|
/* @__PURE__ */b("h2",{className:"text-base font-semibold text-gray-900 pr-6",children:L.title||oe.destructiveTitle}),
|
|
22
22
|
/* @__PURE__ */b("p",{className:"mt-2 text-sm text-gray-600",children:L.message}),null!=re&&/* @__PURE__ */h(g,{children:[
|
|
23
23
|
/* @__PURE__ */h("p",{className:"mt-3 text-sm text-gray-700",children:[ie,
|
|
24
24
|
/* @__PURE__ */b("kbd",{className:"rounded border border-gray-300 bg-gray-50 px-2 py-0.5 text-xs font-bold text-red-600 font-mono",children:re}),ae]}),
|
|
25
|
-
/* @__PURE__ */b("input",{autoFocus:!0,type:"text",value:j,onChange:e=>I(e.target.value),onKeyDown:e=>{"Enter"===e.key&&j===re&&
|
|
26
|
-
/* @__PURE__ */h(O,{open:W,onClose:()=>
|
|
27
|
-
/* @__PURE__ */b("button",{type:"button",onClick:()=>
|
|
28
|
-
/* @__PURE__ */b("button",{type:"button",onClick:()=>
|
|
29
|
-
/* @__PURE__ */b("input",{autoFocus:!0,type:"text",value:
|
|
25
|
+
/* @__PURE__ */b("input",{autoFocus:!0,type:"text",value:j,onChange:e=>I(e.target.value),onKeyDown:e=>{"Enter"===e.key&&j===re&&Y(!0)},placeholder:re,className:`mt-2 ${U} focus:border-red-500`})]})]})]})]}),
|
|
26
|
+
/* @__PURE__ */h(O,{open:W,onClose:()=>Z(!1),title:K.title||oe.promptTitle,footer:/* @__PURE__ */h(g,{children:[
|
|
27
|
+
/* @__PURE__ */b("button",{type:"button",onClick:()=>Z(!1),className:V,children:K.cancelLabel||oe.cancel}),
|
|
28
|
+
/* @__PURE__ */b("button",{type:"button",onClick:()=>Z(!0),disabled:!K.allowEmpty&&!H.trim(),className:z,children:K.confirmLabel||oe.ok})]}),children:[K.message&&/* @__PURE__ */b("p",{className:"text-sm text-gray-600",children:K.message}),
|
|
29
|
+
/* @__PURE__ */b("input",{autoFocus:!0,type:"text",value:H,onChange:e=>J(e.target.value),onKeyDown:e=>{"Enter"===e.key?Z(!0):"Escape"===e.key&&Z(!1)},onFocus:e=>e.target.select(),placeholder:K.placeholder,className:`mt-3 ${U} focus:border-blue-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-accent)]`})]})]})}export{H as ConfirmProvider,O as Dialog,A as confirm,K as confirmDestructive,D as dialogA11y,k as focusableIn,S as prompt,E as stopAfter,W as useConfirm,L as useFocusTrap,I as useScrollLock,C as useTabLayer};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{useShellStrings as e}from"./chunk-
|
|
1
|
+
import{useShellStrings as e}from"./chunk-BSCGC2HA.js";import{Icon as i}from"./chunk-B427NVDP.js";import{Fragment as t}from"react";import{jsx as n,jsxs as a}from"react/jsx-runtime";var s=/* @__PURE__ */n(i,{name:"chevron-right",look:"mini",className:"h-3.5 w-3.5 shrink-0 text-gray-300","aria-hidden":!0}),r="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 l({items:i,separator:l,maxItems:c=0,className:m}){const o=e().breadcrumbs;if(0===i.length)return null;const h=l??s,d=[],u=i.length-1;if(c>0&&i.length>c&&c>=2){const e=Math.max(1,c-1);d.push({kind:"item",item:i[0],isLast:!1}),d.push({kind:"ellipsis"});for(let t=i.length-e;t<=u;t++)d.push({kind:"item",item:i[t],isLast:t===u})}else i.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-2 text-sm",children:d.map((e,i)=>/* @__PURE__ */a(t,{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__ */a("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__ */a("a",{href:e.item.href,onClick:e.item.onClick,className:r,children:[e.item.icon,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{setPdfPreview as e}from"./chunk-ESL5TDNA.js";import{setSpreadsheetPreview as t}from"./chunk-VTVSMRFX.js";import{toast_default as n}from"./chunk-
|
|
1
|
+
import{setPdfPreview as e}from"./chunk-ESL5TDNA.js";import{setSpreadsheetPreview as t}from"./chunk-VTVSMRFX.js";import{toast_default as n}from"./chunk-G6LV5Z2W.js";var i="react-os-shell:preview-opened";async function o(o){const{filePath:a,filename:r,kind:c,onStaged:s}=o;try{const o=await fetch(`${("undefined"!=typeof window&&window.__REACT_OS_SHELL_FILE_SERVER__||"http://localhost:4000").replace(/\/$/,"")}/api/file?path=${encodeURIComponent(a)}`,{credentials:"include"});if(!o.ok)return n.error(`Download failed (${o.status})`),!1;const d=await o.blob();if("csv"===c){const e=await d.text();t({csv:e,filename:r}),s?.("/spreadsheet")}else{const t=URL.createObjectURL(d);e({url:t,filename:r,kind:c}),s?.("/preview")}return"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(i,{detail:{filePath:a,filename:r,kind:c}})),!0}catch(e){return n.error(e?.message||"Open failed"),!1}}export{i as PREVIEW_OPENED_EVENT,o as openPreviewFile};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import{navVisible as e,isReachable as t,visibleChildren as n,isSection as r}from"./chunk-5A7MWTXX.js";import{LoadingSpinner as a}from"./chunk-NVFKXL52.js";import{useDismissPopupsOnOpen as l}from"./chunk-UVBK6YSR.js";import{glassStyle as o}from"./chunk-7IQ3B77H.js";import{Z_LAYERS as s}from"./chunk-FIEA5CGB.js";import{useShellStrings as i}from"./chunk-BSCGC2HA.js";import{useState as c,useEffect as d,useRef as u,useMemo as p,useId as y,useCallback as f}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";import{createPortal as b}from"react-dom";var g={favicon:"h-8 w-8",compact:"h-10 w-10",wordmark:"h-10 w-40"};function k(e){return e.trim().charAt(0).toLocaleUpperCase()||"·"}function x(e,t,n){return!1===e?"framed":null==e||null==t?"plate-light":t?"light"===n?"plate-dark":"bare":"dark"===n?"plate-light":"bare"}var v={"plate-light":"bg-white shadow-[0_2px_12px_var(--rosh-mark-plate-shadow)]","plate-dark":"bg-neutral-900 shadow-[0_2px_12px_var(--rosh-mark-plate-shadow-strong)]",framed:"border border-black/10 shadow-[0_2px_12px_var(--rosh-mark-plate-shadow)]",bare:""};function w(e,t,n){return"bare"===e?{}:"framed"===e?{borderRadius:t}:{borderRadius:t,padding:n}}function N({src:e,fallbackSrc:t,fallbackHasAlpha:n=null,fallbackIsLight:r=null,fallbackAdaptive:a,alt:l,slot:o="compact",surface:s="light",size:i,width:u,height:p,decorative:y=!1,fallbackMode:f="monogram",adaptive:h=!1,hasAlpha:b=null,isLight:N=null,treatmentPadding:L=4,treatmentRadius:_=8,className:A="",style:C}){const[$,E]=c(e||t||"");d(()=>{E(e||t||"")},[e,t]);const I=Boolean(t&&$===t&&$!==e),T=(I?a??h:h)?x(I?n:b,I?r:N,s):"bare",j=["inline-flex shrink-0 items-center justify-center overflow-hidden",null==i&&null==u&&null==p?g[o]:"","dark"===s?"text-white":"text-gray-700",v[T],A].filter(Boolean).join(" "),S={...w(T,_,L),...null==i?{width:u,height:p}:{width:i,height:i},...C};return $?/* @__PURE__ */m("span",{className:j,"data-brand-treatment":T,style:S,children:/* @__PURE__ */m("img",{src:$,alt:y?"":l,"data-brand-slot":o,className:"block max-h-full max-w-full",style:{objectFit:"contain"},onError:()=>E(e=>t&&e!==t?t:"")})}):"none"===f?null:/* @__PURE__ */m("span",{"data-brand-fallback":!0,"data-brand-slot":o,"aria-label":y?void 0:l,"aria-hidden":y||void 0,role:y?void 0:"img",className:`${j} rounded-md bg-gray-100 font-semibold`,style:S,children:y?null:k(l)})}function L(n,r){return e(n,r)?n.items.filter(n=>e(n,r)&&t(n,r)):[]}function _(e,r){return n(e,r).filter(e=>t(e,r))}function A(n,a,l){const o=new Set(a.erp),s=new Set(a.system),i=new Set(a.footer??[]),c=n.filter(r),d=e=>c.filter(t=>e.has(t.label)&&L(t,l).length>0);return{topItems:n.filter(e=>!r(e)).filter(n=>e(n,l)&&t(n,l)),erpSections:d(o),systemSections:d(s),virtualSections:(a.virtual??[]).filter(e=>e.items.length>0),footerSections:d(i),footerItems:(a.footerItems??[]).filter(n=>e(n,l)&&t(n,l))}}function C(e,t,n){return!!t&&e.some(e=>e.to===t||C(_(e,n),t,n))}var $="__page__";function E(e){const t=e.indexOf("?");if(t<0)return{path:e,search:""};const n=new URLSearchParams(e.slice(t+1));return{path:e.slice(0,t),search:n.get("search")??""}}function I(e,t,n){const r=function(e,t){const n=[],r=e=>{const a=_(e,t);0===a.length?n.push(e):a.forEach(r)};e.topItems.forEach(r);for(const n of[...e.erpSections,...e.systemSections,...e.footerSections])L(n,t).forEach(r);for(const t of e.virtualSections)t.items.forEach(r);return e.footerItems.forEach(r),n}(e,t);return Object.assign(async e=>{const t=e.trim().toLowerCase();if(!t)return[];const a=/* @__PURE__ */new Set,l=[];for(const e of r){const r=e.menuLabel??e.label;a.has(e.to)||!e.label.toLowerCase().includes(t)&&!r.toLowerCase().includes(t)||(a.add(e.to),l.push({type:n,label:e.label,entity_type:$,entity_id:e.to}))}return l.slice(0,8)},{destinations:r})}function T(e,t){if(!Array.isArray(e))return[];const n=[];for(const r of e){if(!r||"string"!=typeof r.entityType||"string"!=typeof r.entityId||"string"!=typeof r.label)continue;if("preview-file"===r.entityType)continue;const e="page"===r.entityType;n.push({type:e?t:"",label:r.label,entity_type:e?$:r.entityType,entity_id:r.entityId})}return n}var j="M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z";function S(e){return e.typeKey??e.type}function M(e,t){return t?.[S(e)]??e.type}function K(e,t,n){return 0===n.length?null:{key:e,title:t,rows:n.map((e,t)=>({kind:"action",key:`action:${t}:${e.label}`,label:e.label,icon:e.icon,action:e})),count:n.length}}function R(e,t,n,r){return{type:e,label:t,entity_type:$,entity_id:`${n}?search=${encodeURIComponent(r.trim())}`}}function B(e,t,n,r,a){const l=function(e){const t=/* @__PURE__ */new Map;for(const n of e){const e=S(n),r=t.get(e);r?r.results.push(n):t.set(e,{type:n.type,results:[n]})}return Array.from(t,([e,t])=>({key:e,...t}))}(e).map(e=>{const t=e.results.map((t,n)=>({kind:"result",key:`result:${e.key}:${t.entity_type}:${t.entity_id}:${n}`,label:t.label,sub:t.sub,result:t})),r=!!a?.truncatedTypes?.includes(e.key),l=r?a?.listRoutes?.[e.key]:void 0,o=a?.typeLabels?.[e.key]??e.type;if(a&&l){const r=a.seeAllLabel(l.label);t.push({kind:"seeAll",key:`seeall:${e.key}`,label:r,result:R(o,r,l.path,n)})}return{key:`type:${e.key}`,title:o,rows:t,count:e.results.length,truncated:r}}),o=K("actions",r,function(e,t){const n=t.trim().toLowerCase();return e&&n?e.filter(e=>e.label.toLowerCase().includes(n)||(e.keywords??[]).some(e=>e.toLowerCase().includes(n))):[]}(t,n));return o?[...l,o]:l}function D(e,t,n){return 0===n?0:Math.min(Math.max(e+t,0),n-1)}var P=(e,t)=>e.entity_type===t.entity_type&&e.entity_id===t.entity_id;function z(e,t,n=8){return[t,...e.filter(e=>!P(e,t))].slice(0,n)}function H(e){if(!Array.isArray(e))return[];const t=[];for(const n of e){if(!n||"object"!=typeof n)continue;const e=n;if("string"!=typeof e.type||"string"!=typeof e.label||"string"!=typeof e.entity_type||"string"!=typeof e.entity_id)continue;const r={type:e.type,label:e.label,entity_type:e.entity_type,entity_id:e.entity_id};"string"==typeof e.sub&&(r.sub=e.sub),"string"==typeof e.typeKey&&(r.typeKey=e.typeKey),t.some(e=>P(e,r))||t.push(r)}return t.slice(0,8)}function F(e){if(Array.isArray(e))return{results:e,truncatedTypes:[]};if(e&&"object"==typeof e&&Array.isArray(e.results)){const{results:t,truncatedTypes:n}=e;return{results:t,truncatedTypes:Array.isArray(n)?n:[]}}return{results:[],truncatedTypes:[]}}var U=[];function G(e,t,n){const[r,a]=c([]),[l,o]=c(U),[s,i]=c(!1),[p,y]=c("none"),m=u(function(){let e=0,t=null;const n=()=>{e+=1,t?.abort(),t=null};return{begin:()=>{n();const r=e,a=new AbortController;return t=a,{signal:a.signal,isCurrent:()=>r===e}},cancel:n}}());d(()=>{const r=m.current;if(e.length<n||!t||0===t.length)return r.cancel(),a(e=>0===e.length?e:[]),o(U),y("none"),void i(!1);i(!0);const l=setTimeout(async()=>{const n=r.begin(),l=await async function(e,t,n){const r=await Promise.all(e.map(async e=>{try{return{failed:!1,...F(await e(t,{signal:n}))}}catch(e){const t=n.aborted||function(e){if(!e||"object"!=typeof e)return!1;const{name:t,code:n}=e;return"AbortError"===t||"CanceledError"===t||"ERR_CANCELED"===n}(e);return{failed:!t,results:[],truncatedTypes:[]}}}));return{results:r.flatMap(e=>e.results),truncatedTypes:Array.from(new Set(r.flatMap(e=>e.truncatedTypes))),failed:r.filter(e=>e.failed).length}}(t,e,n.signal);n.isCurrent()&&(a(l.results),o(l.truncatedTypes),y(0===l.failed?"none":l.failed>=t.length?"all":"some"),i(!1))},250);return()=>{clearTimeout(l),r.cancel()}},[e,t,n]);return{results:r,truncatedTypes:l,loading:s,failure:p,reset:f(()=>{m.current.cancel(),a(e=>0===e.length?e:[]),o(U),y("none"),i(!1)},[])}}var V=(e,t)=>`${e}-opt-${t}`;function W(e,t){if("seeAll"===e.kind)return"M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3";if("action"===e.kind)return e.icon??j;if(e.icon)return e.icon;const n=t?.[S(e.result)];return n||j}function X({sections:e,activeIdx:t,listId:n,label:r,typeIcons:a,groupCount:l,groupLabel:o,onHover:s,onPick:i}){let c=0;/* @__PURE__ */
|
|
2
|
+
return m("div",{id:n,role:"listbox","aria-label":r,className:"py-1",children:e.map(e=>/* @__PURE__ */h("div",{role:"group","aria-label":o(e.title,e.count,!!e.truncated),children:[
|
|
3
|
+
/* @__PURE__ */h("div",{"aria-hidden":"true",className:"flex items-center justify-between px-4 pt-2 pb-1 text-2xs font-semibold uppercase tracking-wide text-gray-400",children:[
|
|
4
|
+
/* @__PURE__ */m("span",{children:e.title}),
|
|
5
|
+
/* @__PURE__ */m("span",{className:"font-medium normal-case tracking-normal",children:l(e.count,!!e.truncated)})]}),e.rows.map(e=>{const r=c++,l=r===t,o="action"===e.kind||"seeAll"===e.kind?void 0:e.badge,d="action"===e.kind||"seeAll"===e.kind?void 0:e.sub,u="seeAll"===e.kind;/* @__PURE__ */
|
|
6
|
+
return h("div",{id:V(n,r),role:"option","aria-selected":l,className:"flex items-center gap-3 w-full px-4 py-3 text-left cursor-pointer transition-colors "+(l?"bg-blue-50":"hover:bg-gray-50"),onMouseDown:e=>e.preventDefault(),onClick:()=>i(e),onMouseEnter:()=>s(r),children:[
|
|
7
|
+
/* @__PURE__ */m("svg",{className:"h-4 w-4 text-gray-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:/* @__PURE__ */m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:W(e,a)})}),
|
|
8
|
+
/* @__PURE__ */h("div",{className:"flex-1 min-w-0",children:[
|
|
9
|
+
/* @__PURE__ */m("p",{className:"text-sm font-medium truncate "+(u?"text-blue-600":"text-gray-900"),children:e.label}),d&&/* @__PURE__ */m("p",{className:"text-xs text-gray-400 truncate",children:d})]}),o&&/* @__PURE__ */m("span",{className:"shrink-0 rounded-full bg-gray-100 px-2 py-0.5 text-3xs font-medium text-gray-500",children:o})]},e.key)})]},e.key))})}var O="react-os-shell:open-global-search";function q(){"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(O))}function Q({providers:e,typeIcons:t,typeLabels:n,listRoutes:r,placeholder:g,quickActions:k,onSelect:x,recent:v,onRecord:w,favorites:N,hotkey:L=!0}={}){const _=i().search,A=g??_.placeholder,[C,$]=c(!1),[E,I]=c(""),[T,S]=c(0),R=u(null),{results:P,truncatedTypes:z,loading:H,failure:F,reset:U}=G(E,e,2);d(()=>{const e=e=>{L&&!e.defaultPrevented&&(e.ctrlKey||e.metaKey)&&"k"===e.key&&(e.preventDefault(),$(e=>!e)),"Escape"===e.key&&C&&$(!1)},t=()=>$(!0);return window.addEventListener("keydown",e),window.addEventListener(O,t),()=>{window.removeEventListener("keydown",e),window.removeEventListener(O,t)}},[C,L]),l(C);const[W,q]=c(!1);C!==W&&(q(C),C&&(I(""),S(0),U())),d(()=>{C?setTimeout(()=>R.current?.focus(),50):I("")},[C]),d(()=>{S(0)},[P]);const Q=E.length>=2,Y=p(()=>Q?B(P,k,E,_.actions,{truncatedTypes:z,listRoutes:r,typeLabels:n,seeAllLabel:_.seeAll}):function(e,t){const n=[];e.recent?.length&&n.push({key:"recent",title:t.recent,rows:e.recent.map((t,n)=>({kind:"recent",key:`recent:${t.entity_type}:${t.entity_id}:${n}`,label:t.label,sub:t.sub,badge:M(t,e.typeLabels),result:t})),count:e.recent.length}),e.favorites?.length&&n.push({key:"favorites",title:t.favorites,rows:e.favorites.map((t,n)=>({kind:"favorite",key:`favorite:${t.entity_type}:${t.entity_id}:${n}`,label:t.label,sub:t.sub,badge:M(t,e.typeLabels)||void 0,icon:"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z",result:t})),count:e.favorites.length});const r=K("actions",t.actions,e.actions??[]);return r&&n.push(r),n}({recent:v,favorites:N,actions:k,typeLabels:n},_),[Q,P,z,r,n,k,E,v,N,_]),J=p(()=>function(e){return e.flatMap(e=>e.rows)}(Y),[Y]),Z=Math.min(T,Math.max(J.length-1,0)),ee=y(),te=J.length>0;d(()=>{C&&0!==J.length&&document.getElementById(V(ee,Z))?.scrollIntoView?.({block:"nearest"})},[C,Z,J.length,ee]);const ne=f(e=>{$(!1),"action"!==e.kind?("result"!==e.kind&&"recent"!==e.kind||w?.(e.result),x?.(e.result)):e.action.onSelect()},[x,w]);return C?b(
|
|
10
|
+
/* @__PURE__ */h("div",{"data-global-search":"",className:"fixed inset-0 flex items-start justify-center pt-[15vh]",style:{zIndex:s.overlay},onClick:()=>$(!1),children:[
|
|
11
|
+
/* @__PURE__ */m("div",{"data-global-search-backdrop":"",className:"absolute inset-0 bg-black/50 backdrop-blur-sm"}),
|
|
12
|
+
/* @__PURE__ */h("div",{className:"relative z-10 w-full max-w-xl rounded-(--radius-popup) overflow-hidden",onClick:e=>e.stopPropagation(),style:o(),children:[
|
|
13
|
+
/* @__PURE__ */h("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-gray-200",children:[
|
|
14
|
+
/* @__PURE__ */m("svg",{className:"h-5 w-5 text-gray-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:j})}),
|
|
15
|
+
/* @__PURE__ */m("input",{ref:R,type:"text",value:E,onChange:e=>{I(e.target.value),S(0)},onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),S(D(Z,1,J.length))):"ArrowUp"===e.key?(e.preventDefault(),S(D(Z,-1,J.length))):"Tab"===e.key&&J.length>0?(e.preventDefault(),S(function(e,t,n){const r=e.length;if(0===r)return 0;const a=[];let l=0;for(const t of e)a.push(l),l+=t;let o=0;for(let e=0;e<r;e++)t>=a[e]&&(o=e);return a[(o+n+r)%r]}(Y.map(e=>e.rows.length),Z,e.shiftKey?-1:1))):"Enter"===e.key&&J[Z]&&ne(J[Z])},placeholder:A,role:"combobox","aria-expanded":te,"aria-controls":te?ee:void 0,"aria-activedescendant":te?V(ee,Z):void 0,"aria-autocomplete":"list",className:"flex-1 text-sm bg-transparent border-0 rosh-focus-ring placeholder-gray-400"}),H&&/* @__PURE__ */m("span",{"data-global-search-spinner":"",role:"status","aria-label":_.searching,className:"h-4 w-4 shrink-0 animate-spin rounded-full border-2 border-gray-300 border-t-gray-500"}),
|
|
16
|
+
/* @__PURE__ */m("kbd",{className:"hidden sm:inline-flex items-center rounded border border-gray-300 px-2 py-0.5 text-2xs font-medium text-gray-400",children:_.escBadge})]}),
|
|
17
|
+
/* @__PURE__ */h("div",{className:"max-h-[50vh] overflow-y-auto",children:[H&&0===J.length&&/* @__PURE__ */m(a,{size:"sm",padding:"py-6",label:_.searching}),!H&&"all"===F&&Q&&/* @__PURE__ */m("div",{role:"alert",className:"px-4 py-3 text-center text-sm text-red-600",children:_.searchFailed}),!H&&Q&&0===J.length&&"all"!==F&&/* @__PURE__ */m("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:_.noResults}),te&&/* @__PURE__ */m(X,{sections:Y,activeIdx:Z,listId:ee,label:_.listLabel,typeIcons:t,groupCount:_.groupCount,groupLabel:_.groupLabel,onHover:S,onPick:ne}),!H&&"some"===F&&Q&&/* @__PURE__ */m("div",{role:"status",className:"px-4 py-2 text-xs text-amber-600",children:_.partialFailure}),!H&&!Q&&0===J.length&&/* @__PURE__ */m("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:_.minChars(2)})]}),
|
|
18
|
+
/* @__PURE__ */h("div",{className:"flex items-center justify-between px-4 py-2 border-t border-gray-100 bg-gray-50 text-2xs text-gray-400",children:[
|
|
19
|
+
/* @__PURE__ */h("div",{className:"flex items-center gap-3",children:[
|
|
20
|
+
/* @__PURE__ */h("span",{className:"flex items-center gap-1",children:[
|
|
21
|
+
/* @__PURE__ */m("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:"↑"}),
|
|
22
|
+
/* @__PURE__ */m("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:"↓"}),` ${_.navigate}`]}),
|
|
23
|
+
/* @__PURE__ */h("span",{className:"flex items-center gap-1",children:[
|
|
24
|
+
/* @__PURE__ */m("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:_.enterKey}),` ${_.open}`]}),Y.length>1&&/* @__PURE__ */h("span",{className:"flex items-center gap-1",children:[
|
|
25
|
+
/* @__PURE__ */m("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:_.tabKey}),` ${_.nextGroup}`]})]}),
|
|
26
|
+
/* @__PURE__ */h("span",{className:"flex items-center gap-1",children:[
|
|
27
|
+
/* @__PURE__ */m("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:_.escKey}),` ${_.close}`]})]})]})]}),document.body):null}export{N as BrandMark,Q as GlobalSearch,$ as PAGE_RESULT_ENTITY,T as favoritesToResults,I as navPagesProvider,q as openGlobalSearch,E as parsePageResultTarget,A as partitionNav,z as pushRecent,x as resolveBrandMarkTreatment,C as rowsContainRoute,H as sanitizeRecent,_ as visibleNavChildren,L as visibleSectionItems};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-
|
|
2
|
+
export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-75BDNIYU.js";import"../chunk-BSCGC2HA.js";import"../chunk-C3QOHMR6.js";
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import './markup/index.js';
|
|
|
6
6
|
import { useFileIntake, FileIntakeLimits, FileRejection } from './file-intake/index.js';
|
|
7
7
|
import './icons/index.js';
|
|
8
8
|
import './registry-Dw6QO2Ch.js';
|
|
9
|
-
import { S as ShellStringsOverride } from './strings-
|
|
9
|
+
import { S as ShellStringsOverride } from './strings-D9AIYTbE.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Button styling — the class strings `Button` and `IconButton` wear, and the
|
|
@@ -3728,22 +3728,25 @@ interface PageHeaderProps {
|
|
|
3728
3728
|
declare function PageHeader({ title, description, subtitle, actions, children, icon, breadcrumbs, }: PageHeaderProps): react_jsx_runtime.JSX.Element;
|
|
3729
3729
|
|
|
3730
3730
|
interface LoadingSpinnerProps {
|
|
3731
|
-
/** Ring diameter: `sm` = 20px, `md` = 32px (default), `lg` = 48px. */
|
|
3731
|
+
/** Ring diameter of a bare ring: `sm` = 20px, `md` = 32px (default), `lg` = 48px. With a `label` the ring is the words' height instead. */
|
|
3732
3732
|
size?: 'sm' | 'md' | 'lg';
|
|
3733
3733
|
/** Wrapper padding utility (default `py-12`). Pass `''` to remove. */
|
|
3734
3734
|
padding?: string;
|
|
3735
3735
|
/**
|
|
3736
|
-
*
|
|
3737
|
-
*
|
|
3738
|
-
*
|
|
3736
|
+
* Words beside the ring, e.g. "Signing in". Naming what is happening beats a
|
|
3737
|
+
* bare ring on a full-screen wait, where there is nothing else on the page to
|
|
3738
|
+
* infer it from. Adds `role="status"` so it is announced. The ring and the
|
|
3739
|
+
* words sit on ONE line, ring first, the ring at the words' height (owner
|
|
3740
|
+
* ruling, 2026-10-14: a spinner is never on a line of its own above its
|
|
3741
|
+
* words). No dots: the ring already says it is working.
|
|
3739
3742
|
*/
|
|
3740
3743
|
label?: ReactNode;
|
|
3741
3744
|
/** Extra classes on the centering wrapper. */
|
|
3742
3745
|
className?: string;
|
|
3743
3746
|
}
|
|
3744
3747
|
/**
|
|
3745
|
-
* LoadingSpinner — a centered animated ring for pending/loading regions
|
|
3746
|
-
*
|
|
3748
|
+
* LoadingSpinner — a centered animated ring for pending/loading regions; with
|
|
3749
|
+
* words, the ring and the words on one line.
|
|
3747
3750
|
*/
|
|
3748
3751
|
declare function LoadingSpinner({ size, padding, label, className }: LoadingSpinnerProps): react_jsx_runtime.JSX.Element;
|
|
3749
3752
|
|
|
@@ -5207,7 +5210,7 @@ interface FloatingBarProps {
|
|
|
5207
5210
|
side?: FloatingBarSide;
|
|
5208
5211
|
/** Which edge it lines up with: `start` (left edges together, the default) or `end`. */
|
|
5209
5212
|
align?: FloatingBarAlign;
|
|
5210
|
-
/** Names the toolbar. */
|
|
5213
|
+
/** Names the bar (a `group`; the toolbar inside names itself). */
|
|
5211
5214
|
'aria-label': string;
|
|
5212
5215
|
children: ReactNode;
|
|
5213
5216
|
/** Added to the bar — its padding, a gap. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { S as SearchConfig, C as ColumnDef, a as SortState, P as PaginatedResponse } from './index
|
|
2
|
-
export { A as ALT, b as ALT_SHIFT_D, c as ALT_SHIFT_E, d as ALT_SHIFT_N, e as APP_UPDATE_POLL_MS, f as Accordion, g as AccordionItem, h as AccordionProps, i as Align, j as AlignmentGrid, k as AlignmentGridProps, l as AlignmentPoint, m as AngleScale, n as AppUpdateBanner, o as AppUpdateBannerProps, p as AttachButton, q as AttachButtonProps, r as AttachmentDropZone, s as AttachmentDropZoneProps, t as AttachmentList, u as AttachmentListProps, v as AuthScreen, w as AuthScreenProps, x as Avatar, y as AvatarGroup, z as AvatarGroupProps, B as AvatarProps, D as AvatarSize, E as AvatarStatus, F as BORDER_WIDTHS, G as BackgroundVariant, H as BandScale, I as Banner, J as BannerEmphasis, K as BannerProps, L as BannerTone, M as BorderRole, N as BoxPlotBox, O as BoxPlotChart, Q as BoxPlotChartProps, R as BrandAssetEditor, T as BrandAssetEditorProps, U as BrandAssetPreview, V as BrandMark, W as BrandMarkProps, X as BrandMarkSlot, Y as BrandMarkSurface, Z as BrandMarkTreatment, _ as BreadcrumbItem, $ as Breadcrumbs, a0 as BreadcrumbsProps, a1 as BudgetBar, a2 as BudgetBarProps, a3 as BudgetState, a4 as Button, a5 as ButtonClassesOptions, a6 as ButtonProps, a7 as ButtonSize, a8 as ButtonVariant, a9 as CHART_INK, aa as CMD_A, ab as CMD_DOT, ac as CMD_ENTER, ad as CMD_K, ae as CMD_S, af as COLUMN_COUNT_MAX, ag as COLUMN_COUNT_WIDTHS, ah as COLUMN_SHARES_EQUAL, ai as COLUMN_SHARE_MIN, aj as CONTROL_HEIGHTS, ak as CORNERS, al as Calendar, am as CalendarMode, an as CalendarProps, ao as Candle, ap as CandlestickChart, aq as CandlestickChartProps, ar as Card, as as CardPadding, at as CardProps, au as CardTone, av as CartesianPlot, aw as CartesianPlotProps, ax as CellStyle, ay as ChartBackgroundVariant, az as ChartBrush, aA as ChartBrushProps, aB as ChartCurve, aC as ChartDefs, aD as ChartDefsProps, aE as ChartDot, aF as ChartDotProps, aG as ChartDotVariant, aH as ChartFillVariant, aI as ChartFrame, aJ as ChartFrameProps, aK as ChartHighlightProvider, aL as ChartLegendEntry, aM as ChartLegendSwatch, aN as ChartRange, aO as ChartReferenceLine, aP as ChartRevealDirection, aQ as ChartSkeleton, aR as ChartSkeletonProps, aS as ChartStatusTone, aT as ChartStrokeVariant, aU as ChartTooltip, aV as ChartTooltipProps, aW as ChartTooltipRow, aX as ChatTemplate, aY as Checkbox, aZ as CheckboxProps, a_ as CheckoutTemplate, a$ as ChordChart, b0 as ChordChartProps, b1 as ColorPicker, b2 as ColorPickerPanel, b3 as ColorPickerPanelProps, b4 as ColorPickerProps, b5 as ColorPreset, b6 as ColorSwatch, b7 as ColorSwatchProps, b8 as ColorSwatchSize, b9 as ColoredBadge, ba as ColoredBadgeProps, bb as ColumnChart, bc as ColumnChartProps, bd as ColumnSeries, be as ColumnShares, bf as ComposerAttachments, bg as ComposerAttachmentsProps, bh as ConfirmProvider, bi as ContainerFillChart, bj as ContainerFillChartProps, bk as ContainerFillItem, bl as ContextMenu, bm as ContextMenuPoint, bn as ContextMenuProps, bo as ContextMenuState, bp as ControlSize, bq as CornerOption, br as Corners, bs as CornersInput, bt as CornersInputProps, bu as CountBadge, bv as CountBadgeProps, bw as CountBadgeTone, bx as Curve, by as DAY_MS, bz as DashboardTemplate, bA as DataTable, bB as DataTableColumn, bC as DataTableColumnGroup, bD as DataTableHeader, bE as DataTablePage, bF as DataTableProps, bG as DataTableRowLink, bH as DataTableRowProps, bI as DatePicker, bJ as DatePickerProps, bK as DateRangePicker, bL as DateRangePickerProps, bM as DateTimePicker, bN as DateTimePickerProps, bO as DescriptionColumns, bP as DescriptionItem, bQ as DescriptionList, bR as DescriptionListProps, bS as Dialog, bT as DialogProps, bU as DialogSize, bV as DisplayChipItem, bW as DisplayChips, bX as DisplayChipsProps, bY as Divider, bZ as DividerProps, b_ as DividerSpacing, b$ as Drawer, c0 as DrawerProps, c1 as DrawerSide, c2 as DrawerSize, c3 as DropdownMenu, c4 as DropdownMenuAlign, c5 as DropdownMenuCheckboxItem, c6 as DropdownMenuDividerItem, c7 as DropdownMenuEntry, c8 as DropdownMenuItem, c9 as DropdownMenuLabelItem, ca as DropdownMenuLinkItem, cb as DropdownMenuProps, cc as DropdownMenuRadioItem, cd as DropdownMenuSide, ce as DropdownPositionOptions, cf as ELEVATION_LEVELS, cg as ENGLISH, ch as ENTER, ci as EditableGrid, cj as EditableGridProps, ck as ElevationLevel, cl as EmailTemplate, cm as EmptyState, cn as EmptyStateProps, co as EmptyValue, cp as EmptyValueProps, cq as ErrorBoundary, cr as ErrorBoundaryProps, cs as ErrorPage, ct as ErrorPageProps, cu as FONT_WEIGHTS, cv as FileIntake, cw as FilePicker, cx as FilePickerProps, cy as FillVariant, cz as FloatingBar, cA as FloatingBarAlign, cB as FloatingBarProps, cC as FloatingBarSide, cD as FontWeightRole, cE as FormError, cF as FormErrorSummary, cG as FormErrorSummaryProps, cH as FormField, cI as FormFieldProps, cJ as FormLayoutPage, cK as FunnelChart, cL as FunnelChartProps, cM as FunnelStage, cN as GLASS_DIVIDER, cO as GLASS_INPUT_BG, cP as GROUP_COLORS, cQ as GROUP_COLORS_SOLID, cR as GalleryTemplate, cS as Gap, cT as GlassOptions, cU as GlobalSearch, cV as GlobalSearchProps, cW as Grid, cX as GridCols, cY as GridColumn, cZ as GridProps, c_ as HeatmapChart, c$ as HeatmapChartProps, d0 as HelpCenter, d1 as HelpCenterDoc, d2 as HelpCenterProps, d3 as HexInput, d4 as HistogramBin, d5 as HistogramChart, d6 as HistogramChartProps, d7 as Hsv, d8 as INPUT_BASE, d9 as INPUT_SIZES, da as IconButton, db as IconButtonClassesOptions, dc as IconButtonProps, dd as IconRail, de as IconRailButton, df as IconRailButtonProps, dg as IconRailLabels, dh as IconRailLabelsShown, di as IconRailOrientation, dj as IconRailProps, dk as ImageFocusPoint, dl as ImageFocusPointProps, dm as Inline, dn as InlineProps, dp as Input, dq as InputNumber, dr as InputNumberProps, ds as InputProps, dt as InputSize, du as Justify, dv as Kanban, dw as KanbanColumn, dx as KanbanProps, dy as Kbd, dz as KbdProps, dA as KbdSize, dB as KbdTone, dC as Label, dD as LabelClassesOptions, dE as LabelProps, dF as LadderScale, dG as LanguagePanel, dH as LanguagePanelProps, dI as LanguageSelect, dJ as LanguageSelectProps, dK as LinearScale, dL as LinkFilter, dM as LinkFilterField, dN as LinkKindChoice, dO as LinkOption, dP as LinkOptionGroup, dQ as LinkPicker, dR as LinkPickerFieldProps, dS as LinkPickerProps, dT as LinkPickerWindowProps, dU as LinkRules, dV as LinkTarget, dW as ListDrop, dX as ListFooter, dY as ListLoadError, dZ as ListLoadErrorProps, d_ as ListMove, d$ as ListRow, e0 as ListRowProps, e1 as LoadingSpinner, e2 as LoadingSpinnerProps, e3 as MAX_FRACTION_DIGITS, e4 as MENU_MAX_HEIGHT, e5 as MOD, e6 as MOTION, e7 as MOTION_DURATIONS, e8 as Markdown, e8 as MarkdownLite, e9 as MarkdownLiteProps, e9 as MarkdownProps, ea as MediaUploadField, eb as MediaUploadFieldProps, ec as MediaUploadGrid, ed as MediaUploadGridItem, ee as MediaUploadGridProps, ef as MenuPos, eg as Meter, eh as MeterProps, ei as MetricBar, ej as MetricBarProps, ek as Milestone, el as MilestoneKind, em as MilestoneTimeline, en as MilestoneTimelineProps, eo as MotionSpeed, ep as NATIVE_MENU_ATTR, eq as NEXT_CHUNK_PATH_PREFIX, er as NativeSelect, es as NiceAxis, et as NumericKeypad, eu as NumericKeypadProps, ev as OVERLAY_OPEN_EVENT, ew as PLACEHOLDER_INK, ex as POPUP_MAX_WIDTH, ey as POST_PRODUCTION_STATUSES, ez as PageHeader, eA as PageHeaderProps, eB as Pagination, eC as PaginationProps, eD as PaperclipGlyph, eE as Paragraph, eF as ParagraphProps, eG as PieChart, eH as PieChartProps, eI as PieSegment, eJ as PlotGeometry, eK as Point, eL as Popover, eM as PopoverAlign, eN as PopoverProps, eO as PopoverRenderProps, eP as PopoverSide, eQ as PopupMenu, eR as PopupMenuDivider, eS as PopupMenuItem, eT as PopupMenuItemProps, eU as PopupMenuLabel, eV as PopupMenuProps, eW as PopupSubmenu, eX as PopupSubmenuProps, eY as PortalBrandingContextValue, eZ as PortalBrandingProvider, e_ as PortalBrandingProviderProps, e$ as ProductionTimeline, f0 as ProductionTimelineProps, f1 as ProductionTimelineSnapshot, f2 as ProgressItem, f3 as PublicPortal, f4 as PublicPortalBranding, f5 as RADAR_SERIES_CAP, f6 as RADIUS_ROLES, f7 as ROW_HEIGHTS, f8 as RadarAxis, f9 as RadarChart, fa as RadarChartProps, fb as RadarSeries, fc as RadialBarChart, fd as RadialBarChartProps, fe as RadialBarRow, ff as Radio, fg as RadioGroup, fh as RadioGroupOption, fi as RadioGroupOrientation, fj as RadioGroupProps, fk as RadioProps, fl as RadiusRole, fm as Range, fn as RangeChart, fo as RangeChartProps, fp as RangeRow, fq as RankedBars, fr as RankedBarsProps, fs as RankedBarsRow, ft as ResizeHandle, fu as ResizeHandleOrientation, fv as ResizeHandleProps, fw as ResizeHandleSide, fx as ResizeHandleStackSide, fy as ResolvedPortalBrandAsset, fz as Result, fA as ResultProps, fB as ResultStatus, fC as RevealDirection, fD as SCATTER_SERIES_CAP, fE as SERIES_SLOT_COUNT, fF as SERIES_VARS, fG as SHELL_LANGUAGE_STORAGE_KEY, fH as SHIFT, fI as SPACING_ROLES, fJ as SPACING_SCALE, fK as STAGES, fL as STALE_CHUNK_RELOAD_COOLDOWN_MS, fM as STALE_CHUNK_RELOAD_KEY, fN as STATUS_VARS, fO as SankeyChart, fP as SankeyChartProps, fQ as SankeyLink, fR as SankeyNode, fS as ScatterChart, fT as ScatterChartProps, fU as ScatterPoint, fV as ScatterSeries, fW as SearchListRoute, fX as SearchProvider, fY as SearchQuickAction, fZ as SearchResponse, f_ as SearchResult, f$ as SearchableItem, g0 as SearchableOption, g1 as SearchableOptionGroup, g2 as SearchableSelect, g3 as SearchableSelectBaseProps, g4 as SearchableSelectMultipleProps, g5 as SearchableSelectProps, g6 as Segmented, g7 as SegmentedOption, g8 as SegmentedProps, g9 as SegmentedSize, ga as Select, gb as SelectBaseProps, gc as SelectItem, gd as SelectMultipleProps, ge as SelectOption, gf as SelectOptionGroup, gg as SelectProps, gh as SemanticGroup, gi as SeriesSlots, gj as SettingRow, gk as SettingRowProps, gl as SeverityTone, gm as ShellContextKind, gn as ShellContextTarget, go as ShellLanguage, gp as ShellLanguageProvider, gq as ShellLanguageState, gr as ShellPrefsAdapter, gs as ShellPrefsProvider, gt as SidebarActionButton, gu as SidebarActionButtonProps, gv as SidebarGroupLabel, gw as SidebarGroupLabelProps, gx as SidebarLayout, gy as SidebarLayoutProps, gz as SidebarNavGroup, gA as SidebarNavGroupProps, gB as SidebarNavItem, gC as SidebarNavItemProps, gD as Skeleton, gE as SkeletonProps, gF as SkeletonVariant, gG as Slider, gH as SliderGroup, gI as SliderProps, gJ as SliderSize, gK as Snippet, gL as SnippetProps, gM as SnippetSize, gN as SnippetVariant, gO as SortableList, gP as SortableListProps, gQ as SortableListSpacing, gR as SpacingRole, gS as SpacingStep, gT as Sparkline, gU as SparklineProps, gV as Stack, gW as StackProps, gX as StaleChunkReloadOptions, gY as StatCard, gZ as StatCardProps, g_ as StatTile, g$ as StatTileProps, h0 as Statistic, h1 as StatisticProps, h2 as StatisticSize, h3 as StatisticTone, h4 as StatusBadge, h5 as StatusBadgeProvider, h6 as StatusEmphasis, h7 as StepItem, h8 as Stepper, h9 as StepperProps, ha as StrokeVariant, hb as SunburstChart, hc as SunburstChartProps, hd as SunburstNode, he as Switch, hf as SwitchProps, hg as SwitchSize, hh as TYPE_SCALE, hi as TabItem, hj as Tabs, hk as TabsProps, hl as TagInput, hm as TagInputOption, hn as TagInputProps, ho as TagInputTone, hp as Text, hq as TextLinkField, hr as TextLinkFieldProps, hs as TextProps, ht as TextSize, hu as TextTone, hv as TextToolbar, hw as TextToolbarAlign, hx as TextToolbarCase, hy as TextToolbarMark, hz as TextToolbarProps, hA as TextWeight, hB as Textarea, hC as TextareaProps, hD as Theme, hE as TileButton, hF as TileButtonProps, hG as TileSize, hH as TimeAgo, hI as TimeAgoProps, hJ as TimePicker, hK as TimePickerProps, hL as TimeSeriesChart, hM as TimeSeriesChartProps, hN as TimeSeriesSeries, hO as TimelineMarker, hP as TimelineMarkerKind, hQ as TimelineReport, hR as TimelineScrubProgress, hS as TimelineTrack, hT as TimelineTrackItem, hU as TimelineTrackKind, hV as TimelineTrackPending, hW as TimelineTrackPhase, hX as TimelineTrackPlayback, hY as TimelineTrackProps, hZ as TimelineTrackThumb, h_ as Title, h$ as TitleLevel, i0 as TitleProps, i1 as ToastOptions, i2 as ToastPlacement, i3 as Tooltip, i4 as TooltipProps, i5 as TopNav, i6 as TopNavItem, i7 as TopNavProps, i8 as Tree, i9 as TreeDrop, ia as TreeEmptySlot, ib as TreeEmptySlotProps, ic as TreeGroup, id as TreeGroupLabel, ie as TreeGroupLabelProps, ig as TreeGroupProps, ih as TreeMove, ii as TreeProps, ij as TreeRow, ik as TreeRowProps, il as TreeSeam, im as TreeSeamProps, io as TreemapChart, ip as TreemapChartProps, iq as TreemapItem, ir as TreemapTile, is as TypeStep, it as UseAppUpdateOptions, iu as UseContextMenu, iv as UseProductionTimelineOpts, iw as VERSION, ix as VITE_PRELOAD_ERROR_EVENT, iy as WaterfallChart, iz as WaterfallChartProps, iA as WaterfallStep, iB as WidthsBar, iC as WidthsBarProps, iD as ZLayer, iE as Z_LAYERS, iF as angleScale, iG as appendKey, iH as applyCorners, iI as applyIconSet, iJ as applyThemePrefs, iK as arcPath, iL as areaBetween, iM as areaFrom, iN as assignSeriesSlots, iO as autoHighlightIndex, iP as backspace, iQ as bandScale, iR as binValues, iS as budgetState, iT as bumpPath, iU as buttonClasses, iV as calcOverall, iW as calcReportOverall, iX as colorFill, iY as colorSwatchClasses, iZ as columnSharesWidths, i_ as confirm, i$ as confirmDestructive, j0 as curvePath, j1 as dashFor, j2 as describeContextTarget, j3 as dismissPopups, j4 as fillFor, j5 as fillId, j6 as fmtSliderDate, j7 as fromDateKey, j8 as glassStyle, j9 as glowId, ja as groundId, jb as groupColors, jc as hexToHsv, jd as highlightOpacity, je as hsvToHex, jf as iconButtonClasses, jg as inputClasses, jh as installStaleChunkReload, ji as isMac, jj as isSeverityTone, jk as isSpacingStep, jl as isStaleChunkError, jm as keepsNativeMenu, jn as labelClasses, jo as ladderScale, jp as languageSelectWidth, jq as leavesContextMenuAlone, jr as linearPath, js as linearScale, jt as logScale, ju as maskId, jv as matchShellLanguage, jw as mediaFileName, jx as monotonePath, jy as niceAxis, jz as niceMax, jA as openGlobalSearch, jB as parseHexColor, jC as polygonPoints, jD as popupBounds, jE as prompt, jF as pushRecentSearch, jG as radiusScale, jH as readSavedShellLanguage, jI as registerModalEscapeInterceptor, jJ as resolveBrandMarkTreatment, jK as resolveColumnShares, jL as resolveColumnWidths, jM as resolveCorners, jN as resolvePortalBrandAsset, jO as resolveSeriesColor, jP as resolveSeriesColorWithin, jQ as resolveShellLanguage, jR as resolveTheme, jS as sanitizeRecentSearches, jT as saveShellLanguage, jU as seriesColor, jV as severityOf, jW as solidSurfaceStyle, jX as splinePath, jY as squarify, jZ as stagger, j_ as stepPath, j$ as tabButtonId, k0 as tabPanelId, k1 as textToolbarRows, k2 as textToolbarWindowColumns, k3 as toDateKey, k4 as toDayMs, k5 as toISODate, k6 as toast, k7 as toggleSeriesSlot, k8 as useAppUpdate, k9 as useClickOutside, ka as useConfirm, kb as useContextMenu, kc as useDebouncedValue, kd as useDropdownPosition, ke as useFocusTrap, kf as useHighlight, kg as useIsMobile, kh as useLocalStoragePrefs, ki as usePlotWidth, kj as usePortalBranding, kk as useProductionTimeline, kl as useScrollLock, km as useShellLanguage, kn as useShellPrefs, ko as useStatusLabel, kp as useTheme } from './index-CMwbvwiY.js';
|
|
1
|
+
import { S as SearchConfig, C as ColumnDef, a as SortState, P as PaginatedResponse } from './index--nXViytT.js';
|
|
2
|
+
export { A as ALT, b as ALT_SHIFT_D, c as ALT_SHIFT_E, d as ALT_SHIFT_N, e as APP_UPDATE_POLL_MS, f as Accordion, g as AccordionItem, h as AccordionProps, i as Align, j as AlignmentGrid, k as AlignmentGridProps, l as AlignmentPoint, m as AngleScale, n as AppUpdateBanner, o as AppUpdateBannerProps, p as AttachButton, q as AttachButtonProps, r as AttachmentDropZone, s as AttachmentDropZoneProps, t as AttachmentList, u as AttachmentListProps, v as AuthScreen, w as AuthScreenProps, x as Avatar, y as AvatarGroup, z as AvatarGroupProps, B as AvatarProps, D as AvatarSize, E as AvatarStatus, F as BORDER_WIDTHS, G as BackgroundVariant, H as BandScale, I as Banner, J as BannerEmphasis, K as BannerProps, L as BannerTone, M as BorderRole, N as BoxPlotBox, O as BoxPlotChart, Q as BoxPlotChartProps, R as BrandAssetEditor, T as BrandAssetEditorProps, U as BrandAssetPreview, V as BrandMark, W as BrandMarkProps, X as BrandMarkSlot, Y as BrandMarkSurface, Z as BrandMarkTreatment, _ as BreadcrumbItem, $ as Breadcrumbs, a0 as BreadcrumbsProps, a1 as BudgetBar, a2 as BudgetBarProps, a3 as BudgetState, a4 as Button, a5 as ButtonClassesOptions, a6 as ButtonProps, a7 as ButtonSize, a8 as ButtonVariant, a9 as CHART_INK, aa as CMD_A, ab as CMD_DOT, ac as CMD_ENTER, ad as CMD_K, ae as CMD_S, af as COLUMN_COUNT_MAX, ag as COLUMN_COUNT_WIDTHS, ah as COLUMN_SHARES_EQUAL, ai as COLUMN_SHARE_MIN, aj as CONTROL_HEIGHTS, ak as CORNERS, al as Calendar, am as CalendarMode, an as CalendarProps, ao as Candle, ap as CandlestickChart, aq as CandlestickChartProps, ar as Card, as as CardPadding, at as CardProps, au as CardTone, av as CartesianPlot, aw as CartesianPlotProps, ax as CellStyle, ay as ChartBackgroundVariant, az as ChartBrush, aA as ChartBrushProps, aB as ChartCurve, aC as ChartDefs, aD as ChartDefsProps, aE as ChartDot, aF as ChartDotProps, aG as ChartDotVariant, aH as ChartFillVariant, aI as ChartFrame, aJ as ChartFrameProps, aK as ChartHighlightProvider, aL as ChartLegendEntry, aM as ChartLegendSwatch, aN as ChartRange, aO as ChartReferenceLine, aP as ChartRevealDirection, aQ as ChartSkeleton, aR as ChartSkeletonProps, aS as ChartStatusTone, aT as ChartStrokeVariant, aU as ChartTooltip, aV as ChartTooltipProps, aW as ChartTooltipRow, aX as ChatTemplate, aY as Checkbox, aZ as CheckboxProps, a_ as CheckoutTemplate, a$ as ChordChart, b0 as ChordChartProps, b1 as ColorPicker, b2 as ColorPickerPanel, b3 as ColorPickerPanelProps, b4 as ColorPickerProps, b5 as ColorPreset, b6 as ColorSwatch, b7 as ColorSwatchProps, b8 as ColorSwatchSize, b9 as ColoredBadge, ba as ColoredBadgeProps, bb as ColumnChart, bc as ColumnChartProps, bd as ColumnSeries, be as ColumnShares, bf as ComposerAttachments, bg as ComposerAttachmentsProps, bh as ConfirmProvider, bi as ContainerFillChart, bj as ContainerFillChartProps, bk as ContainerFillItem, bl as ContextMenu, bm as ContextMenuPoint, bn as ContextMenuProps, bo as ContextMenuState, bp as ControlSize, bq as CornerOption, br as Corners, bs as CornersInput, bt as CornersInputProps, bu as CountBadge, bv as CountBadgeProps, bw as CountBadgeTone, bx as Curve, by as DAY_MS, bz as DashboardTemplate, bA as DataTable, bB as DataTableColumn, bC as DataTableColumnGroup, bD as DataTableHeader, bE as DataTablePage, bF as DataTableProps, bG as DataTableRowLink, bH as DataTableRowProps, bI as DatePicker, bJ as DatePickerProps, bK as DateRangePicker, bL as DateRangePickerProps, bM as DateTimePicker, bN as DateTimePickerProps, bO as DescriptionColumns, bP as DescriptionItem, bQ as DescriptionList, bR as DescriptionListProps, bS as Dialog, bT as DialogProps, bU as DialogSize, bV as DisplayChipItem, bW as DisplayChips, bX as DisplayChipsProps, bY as Divider, bZ as DividerProps, b_ as DividerSpacing, b$ as Drawer, c0 as DrawerProps, c1 as DrawerSide, c2 as DrawerSize, c3 as DropdownMenu, c4 as DropdownMenuAlign, c5 as DropdownMenuCheckboxItem, c6 as DropdownMenuDividerItem, c7 as DropdownMenuEntry, c8 as DropdownMenuItem, c9 as DropdownMenuLabelItem, ca as DropdownMenuLinkItem, cb as DropdownMenuProps, cc as DropdownMenuRadioItem, cd as DropdownMenuSide, ce as DropdownPositionOptions, cf as ELEVATION_LEVELS, cg as ENGLISH, ch as ENTER, ci as EditableGrid, cj as EditableGridProps, ck as ElevationLevel, cl as EmailTemplate, cm as EmptyState, cn as EmptyStateProps, co as EmptyValue, cp as EmptyValueProps, cq as ErrorBoundary, cr as ErrorBoundaryProps, cs as ErrorPage, ct as ErrorPageProps, cu as FONT_WEIGHTS, cv as FileIntake, cw as FilePicker, cx as FilePickerProps, cy as FillVariant, cz as FloatingBar, cA as FloatingBarAlign, cB as FloatingBarProps, cC as FloatingBarSide, cD as FontWeightRole, cE as FormError, cF as FormErrorSummary, cG as FormErrorSummaryProps, cH as FormField, cI as FormFieldProps, cJ as FormLayoutPage, cK as FunnelChart, cL as FunnelChartProps, cM as FunnelStage, cN as GLASS_DIVIDER, cO as GLASS_INPUT_BG, cP as GROUP_COLORS, cQ as GROUP_COLORS_SOLID, cR as GalleryTemplate, cS as Gap, cT as GlassOptions, cU as GlobalSearch, cV as GlobalSearchProps, cW as Grid, cX as GridCols, cY as GridColumn, cZ as GridProps, c_ as HeatmapChart, c$ as HeatmapChartProps, d0 as HelpCenter, d1 as HelpCenterDoc, d2 as HelpCenterProps, d3 as HexInput, d4 as HistogramBin, d5 as HistogramChart, d6 as HistogramChartProps, d7 as Hsv, d8 as INPUT_BASE, d9 as INPUT_SIZES, da as IconButton, db as IconButtonClassesOptions, dc as IconButtonProps, dd as IconRail, de as IconRailButton, df as IconRailButtonProps, dg as IconRailLabels, dh as IconRailLabelsShown, di as IconRailOrientation, dj as IconRailProps, dk as ImageFocusPoint, dl as ImageFocusPointProps, dm as Inline, dn as InlineProps, dp as Input, dq as InputNumber, dr as InputNumberProps, ds as InputProps, dt as InputSize, du as Justify, dv as Kanban, dw as KanbanColumn, dx as KanbanProps, dy as Kbd, dz as KbdProps, dA as KbdSize, dB as KbdTone, dC as Label, dD as LabelClassesOptions, dE as LabelProps, dF as LadderScale, dG as LanguagePanel, dH as LanguagePanelProps, dI as LanguageSelect, dJ as LanguageSelectProps, dK as LinearScale, dL as LinkFilter, dM as LinkFilterField, dN as LinkKindChoice, dO as LinkOption, dP as LinkOptionGroup, dQ as LinkPicker, dR as LinkPickerFieldProps, dS as LinkPickerProps, dT as LinkPickerWindowProps, dU as LinkRules, dV as LinkTarget, dW as ListDrop, dX as ListFooter, dY as ListLoadError, dZ as ListLoadErrorProps, d_ as ListMove, d$ as ListRow, e0 as ListRowProps, e1 as LoadingSpinner, e2 as LoadingSpinnerProps, e3 as MAX_FRACTION_DIGITS, e4 as MENU_MAX_HEIGHT, e5 as MOD, e6 as MOTION, e7 as MOTION_DURATIONS, e8 as Markdown, e8 as MarkdownLite, e9 as MarkdownLiteProps, e9 as MarkdownProps, ea as MediaUploadField, eb as MediaUploadFieldProps, ec as MediaUploadGrid, ed as MediaUploadGridItem, ee as MediaUploadGridProps, ef as MenuPos, eg as Meter, eh as MeterProps, ei as MetricBar, ej as MetricBarProps, ek as Milestone, el as MilestoneKind, em as MilestoneTimeline, en as MilestoneTimelineProps, eo as MotionSpeed, ep as NATIVE_MENU_ATTR, eq as NEXT_CHUNK_PATH_PREFIX, er as NativeSelect, es as NiceAxis, et as NumericKeypad, eu as NumericKeypadProps, ev as OVERLAY_OPEN_EVENT, ew as PLACEHOLDER_INK, ex as POPUP_MAX_WIDTH, ey as POST_PRODUCTION_STATUSES, ez as PageHeader, eA as PageHeaderProps, eB as Pagination, eC as PaginationProps, eD as PaperclipGlyph, eE as Paragraph, eF as ParagraphProps, eG as PieChart, eH as PieChartProps, eI as PieSegment, eJ as PlotGeometry, eK as Point, eL as Popover, eM as PopoverAlign, eN as PopoverProps, eO as PopoverRenderProps, eP as PopoverSide, eQ as PopupMenu, eR as PopupMenuDivider, eS as PopupMenuItem, eT as PopupMenuItemProps, eU as PopupMenuLabel, eV as PopupMenuProps, eW as PopupSubmenu, eX as PopupSubmenuProps, eY as PortalBrandingContextValue, eZ as PortalBrandingProvider, e_ as PortalBrandingProviderProps, e$ as ProductionTimeline, f0 as ProductionTimelineProps, f1 as ProductionTimelineSnapshot, f2 as ProgressItem, f3 as PublicPortal, f4 as PublicPortalBranding, f5 as RADAR_SERIES_CAP, f6 as RADIUS_ROLES, f7 as ROW_HEIGHTS, f8 as RadarAxis, f9 as RadarChart, fa as RadarChartProps, fb as RadarSeries, fc as RadialBarChart, fd as RadialBarChartProps, fe as RadialBarRow, ff as Radio, fg as RadioGroup, fh as RadioGroupOption, fi as RadioGroupOrientation, fj as RadioGroupProps, fk as RadioProps, fl as RadiusRole, fm as Range, fn as RangeChart, fo as RangeChartProps, fp as RangeRow, fq as RankedBars, fr as RankedBarsProps, fs as RankedBarsRow, ft as ResizeHandle, fu as ResizeHandleOrientation, fv as ResizeHandleProps, fw as ResizeHandleSide, fx as ResizeHandleStackSide, fy as ResolvedPortalBrandAsset, fz as Result, fA as ResultProps, fB as ResultStatus, fC as RevealDirection, fD as SCATTER_SERIES_CAP, fE as SERIES_SLOT_COUNT, fF as SERIES_VARS, fG as SHELL_LANGUAGE_STORAGE_KEY, fH as SHIFT, fI as SPACING_ROLES, fJ as SPACING_SCALE, fK as STAGES, fL as STALE_CHUNK_RELOAD_COOLDOWN_MS, fM as STALE_CHUNK_RELOAD_KEY, fN as STATUS_VARS, fO as SankeyChart, fP as SankeyChartProps, fQ as SankeyLink, fR as SankeyNode, fS as ScatterChart, fT as ScatterChartProps, fU as ScatterPoint, fV as ScatterSeries, fW as SearchListRoute, fX as SearchProvider, fY as SearchQuickAction, fZ as SearchResponse, f_ as SearchResult, f$ as SearchableItem, g0 as SearchableOption, g1 as SearchableOptionGroup, g2 as SearchableSelect, g3 as SearchableSelectBaseProps, g4 as SearchableSelectMultipleProps, g5 as SearchableSelectProps, g6 as Segmented, g7 as SegmentedOption, g8 as SegmentedProps, g9 as SegmentedSize, ga as Select, gb as SelectBaseProps, gc as SelectItem, gd as SelectMultipleProps, ge as SelectOption, gf as SelectOptionGroup, gg as SelectProps, gh as SemanticGroup, gi as SeriesSlots, gj as SettingRow, gk as SettingRowProps, gl as SeverityTone, gm as ShellContextKind, gn as ShellContextTarget, go as ShellLanguage, gp as ShellLanguageProvider, gq as ShellLanguageState, gr as ShellPrefsAdapter, gs as ShellPrefsProvider, gt as SidebarActionButton, gu as SidebarActionButtonProps, gv as SidebarGroupLabel, gw as SidebarGroupLabelProps, gx as SidebarLayout, gy as SidebarLayoutProps, gz as SidebarNavGroup, gA as SidebarNavGroupProps, gB as SidebarNavItem, gC as SidebarNavItemProps, gD as Skeleton, gE as SkeletonProps, gF as SkeletonVariant, gG as Slider, gH as SliderGroup, gI as SliderProps, gJ as SliderSize, gK as Snippet, gL as SnippetProps, gM as SnippetSize, gN as SnippetVariant, gO as SortableList, gP as SortableListProps, gQ as SortableListSpacing, gR as SpacingRole, gS as SpacingStep, gT as Sparkline, gU as SparklineProps, gV as Stack, gW as StackProps, gX as StaleChunkReloadOptions, gY as StatCard, gZ as StatCardProps, g_ as StatTile, g$ as StatTileProps, h0 as Statistic, h1 as StatisticProps, h2 as StatisticSize, h3 as StatisticTone, h4 as StatusBadge, h5 as StatusBadgeProvider, h6 as StatusEmphasis, h7 as StepItem, h8 as Stepper, h9 as StepperProps, ha as StrokeVariant, hb as SunburstChart, hc as SunburstChartProps, hd as SunburstNode, he as Switch, hf as SwitchProps, hg as SwitchSize, hh as TYPE_SCALE, hi as TabItem, hj as Tabs, hk as TabsProps, hl as TagInput, hm as TagInputOption, hn as TagInputProps, ho as TagInputTone, hp as Text, hq as TextLinkField, hr as TextLinkFieldProps, hs as TextProps, ht as TextSize, hu as TextTone, hv as TextToolbar, hw as TextToolbarAlign, hx as TextToolbarCase, hy as TextToolbarMark, hz as TextToolbarProps, hA as TextWeight, hB as Textarea, hC as TextareaProps, hD as Theme, hE as TileButton, hF as TileButtonProps, hG as TileSize, hH as TimeAgo, hI as TimeAgoProps, hJ as TimePicker, hK as TimePickerProps, hL as TimeSeriesChart, hM as TimeSeriesChartProps, hN as TimeSeriesSeries, hO as TimelineMarker, hP as TimelineMarkerKind, hQ as TimelineReport, hR as TimelineScrubProgress, hS as TimelineTrack, hT as TimelineTrackItem, hU as TimelineTrackKind, hV as TimelineTrackPending, hW as TimelineTrackPhase, hX as TimelineTrackPlayback, hY as TimelineTrackProps, hZ as TimelineTrackThumb, h_ as Title, h$ as TitleLevel, i0 as TitleProps, i1 as ToastOptions, i2 as ToastPlacement, i3 as Tooltip, i4 as TooltipProps, i5 as TopNav, i6 as TopNavItem, i7 as TopNavProps, i8 as Tree, i9 as TreeDrop, ia as TreeEmptySlot, ib as TreeEmptySlotProps, ic as TreeGroup, id as TreeGroupLabel, ie as TreeGroupLabelProps, ig as TreeGroupProps, ih as TreeMove, ii as TreeProps, ij as TreeRow, ik as TreeRowProps, il as TreeSeam, im as TreeSeamProps, io as TreemapChart, ip as TreemapChartProps, iq as TreemapItem, ir as TreemapTile, is as TypeStep, it as UseAppUpdateOptions, iu as UseContextMenu, iv as UseProductionTimelineOpts, iw as VERSION, ix as VITE_PRELOAD_ERROR_EVENT, iy as WaterfallChart, iz as WaterfallChartProps, iA as WaterfallStep, iB as WidthsBar, iC as WidthsBarProps, iD as ZLayer, iE as Z_LAYERS, iF as angleScale, iG as appendKey, iH as applyCorners, iI as applyIconSet, iJ as applyThemePrefs, iK as arcPath, iL as areaBetween, iM as areaFrom, iN as assignSeriesSlots, iO as autoHighlightIndex, iP as backspace, iQ as bandScale, iR as binValues, iS as budgetState, iT as bumpPath, iU as buttonClasses, iV as calcOverall, iW as calcReportOverall, iX as colorFill, iY as colorSwatchClasses, iZ as columnSharesWidths, i_ as confirm, i$ as confirmDestructive, j0 as curvePath, j1 as dashFor, j2 as describeContextTarget, j3 as dismissPopups, j4 as fillFor, j5 as fillId, j6 as fmtSliderDate, j7 as fromDateKey, j8 as glassStyle, j9 as glowId, ja as groundId, jb as groupColors, jc as hexToHsv, jd as highlightOpacity, je as hsvToHex, jf as iconButtonClasses, jg as inputClasses, jh as installStaleChunkReload, ji as isMac, jj as isSeverityTone, jk as isSpacingStep, jl as isStaleChunkError, jm as keepsNativeMenu, jn as labelClasses, jo as ladderScale, jp as languageSelectWidth, jq as leavesContextMenuAlone, jr as linearPath, js as linearScale, jt as logScale, ju as maskId, jv as matchShellLanguage, jw as mediaFileName, jx as monotonePath, jy as niceAxis, jz as niceMax, jA as openGlobalSearch, jB as parseHexColor, jC as polygonPoints, jD as popupBounds, jE as prompt, jF as pushRecentSearch, jG as radiusScale, jH as readSavedShellLanguage, jI as registerModalEscapeInterceptor, jJ as resolveBrandMarkTreatment, jK as resolveColumnShares, jL as resolveColumnWidths, jM as resolveCorners, jN as resolvePortalBrandAsset, jO as resolveSeriesColor, jP as resolveSeriesColorWithin, jQ as resolveShellLanguage, jR as resolveTheme, jS as sanitizeRecentSearches, jT as saveShellLanguage, jU as seriesColor, jV as severityOf, jW as solidSurfaceStyle, jX as splinePath, jY as squarify, jZ as stagger, j_ as stepPath, j$ as tabButtonId, k0 as tabPanelId, k1 as textToolbarRows, k2 as textToolbarWindowColumns, k3 as toDateKey, k4 as toDayMs, k5 as toISODate, k6 as toast, k7 as toggleSeriesSlot, k8 as useAppUpdate, k9 as useClickOutside, ka as useConfirm, kb as useContextMenu, kc as useDebouncedValue, kd as useDropdownPosition, ke as useFocusTrap, kf as useHighlight, kg as useIsMobile, kh as useLocalStoragePrefs, ki as usePlotWidth, kj as usePortalBranding, kk as useProductionTimeline, kl as useScrollLock, km as useShellLanguage, kn as useShellPrefs, ko as useStatusLabel, kp as useTheme } from './index--nXViytT.js';
|
|
3
3
|
export { C as CurrencyFormat, D as DATE_FORMAT_OPTIONS, a as DateFormatKey, E as EMPTY_VALUE, F as FOCAL_DEFAULT, b as FOCAL_NUDGE_COARSE, c as FOCAL_NUDGE_STEP, d as FocalPoint, e as FormatDateOptions, f as FormatMoneyOptions, T as TZ_AUTO, g as TimeAgoOptions, h as currencyDecimals, i as currencySymbol, j as firstDayOfWeek, k as focalFromRect, l as formatBytes, m as formatDate, n as formatDateTime, o as formatFocal, p as formatMoney, q as formatTime, r as getUserDateFormat, s as getUserTimezone, t as nudgeFocal, u as parseFocal, v as setCurrencyFormats, w as setUserDateFormat, x as setUserTimezone, y as syncTimezoneFromProfile, z as timeAgo } from './index-CHufemKB.js';
|
|
4
4
|
export { isSafeLinkHref } from './markup/index.js';
|
|
5
5
|
export { FileIntakeAlert, FileIntakeLimits, FileIntakeOptions, FileRejection, FileRejectionReason, acceptsFile, useFileIntake } from './file-intake/index.js';
|
|
6
6
|
export { ICON_NAMES, Icon, IconName, IconProps, IconTone, isIconName } from './icons/index.js';
|
|
7
7
|
export { a as IconDrawing, I as IconSet, b as activeIconSet, i as iconSets, c as iconsVersion, r as registerIconSet, d as registerIcons, e as resolveIcon, s as setDefaultIconSet, f as setIconSet, g as subscribeIcons } from './registry-Dw6QO2Ch.js';
|
|
8
|
-
export { D as DEFAULT_SHELL_STRINGS, a as ShellStrings, S as ShellStringsOverride, b as ShellStringsProvider, u as useShellLocale, c as useShellStrings } from './strings-
|
|
8
|
+
export { D as DEFAULT_SHELL_STRINGS, a as ShellStrings, S as ShellStringsOverride, b as ShellStringsProvider, u as useShellLocale, c as useShellStrings } from './strings-D9AIYTbE.js';
|
|
9
9
|
import { W as WindowRegistry } from './types-BOinJXUf.js';
|
|
10
10
|
export { M as ModalRegistryEntry, P as PageRegistryEntry, a as WindowRegistryEntry, i as isEntityEntry, b as isPageEntry, s as setShellWindowRegistry } from './types-BOinJXUf.js';
|
|
11
11
|
import * as react from 'react';
|