efficient-shell 7.48.0 → 7.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Browser-UT2IGWAE.js → Browser-VU76GASQ.js} +14 -14
- package/dist/Calculator-5MVTWQWV.js +29 -0
- package/dist/ConfirmDialog-5LHOXDQS.js +1 -0
- package/dist/{CurrencyConverter-JVLPDM3W.js → CurrencyConverter-VYC463F4.js} +9 -9
- package/dist/{Documents-GQAJOOSA.js → Documents-OZ7MVNAR.js} +7 -7
- package/dist/{Files-VHEFGFCF.js → Files-U4Y2PLA6.js} +21 -21
- package/dist/{Notepad-BGZE5IHL.js → Notepad-YKYG3MDH.js} +10 -10
- package/dist/PdfViewer-5H5ER3VP.js +1 -0
- package/dist/{PomodoroTimer-HM5JMNCY.js → PomodoroTimer-XH6KYRVX.js} +25 -25
- package/dist/{Preview-WLSGFEQ7.js → Preview-46IFY224.js} +24 -24
- package/dist/Sidebar-CWUGH47O.js +44 -0
- package/dist/{Spreadsheet-LJ2QTQ5O.js → Spreadsheet-B7W34MI2.js} +14 -14
- package/dist/{Stock-HIAMQQAS.js → Stock-S5HULMS7.js} +2 -2
- package/dist/{Weather-6TWM5VKQ.js → Weather-5GWQJ4VD.js} +22 -22
- package/dist/{WorldClock-T52IUVFJ.js → WorldClock-3UZK5M7S.js} +6 -6
- package/dist/ai/index.js +14 -14
- package/dist/apps/index.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/{chunk-VM6JV77G.js → chunk-2ZRV46PX.js} +91 -91
- package/dist/{chunk-Z2NDEA5B.js → chunk-3RSAW3BM.js} +8 -8
- package/dist/{chunk-3RKM5ZGV.js → chunk-64BLXOJL.js} +2 -2
- package/dist/{chunk-LCYFQYIH.js → chunk-6HJPHOUV.js} +1 -1
- package/dist/{chunk-WSRZRWN7.js → chunk-7S7Z4HD6.js} +1 -1
- package/dist/{chunk-YWJD6RUT.js → chunk-7SNZKUCI.js} +1 -1
- package/dist/{chunk-KEEMPTXF.js → chunk-AVESYKQN.js} +199 -199
- package/dist/{chunk-NUFNQMXA.js → chunk-CEER73YL.js} +2 -2
- package/dist/chunk-DQP6AG2L.js +1 -0
- package/dist/{chunk-UBXRSOQ6.js → chunk-EQZ7DF3J.js} +3 -3
- package/dist/{chunk-JGWOY2KV.js → chunk-FNR5SPQM.js} +5 -5
- package/dist/{chunk-4TOFAEAW.js → chunk-G5U45PTK.js} +13 -13
- package/dist/chunk-HQLDTFAF.js +1 -0
- package/dist/{chunk-MWETOFH3.js → chunk-JDXMBDL7.js} +1 -1
- package/dist/{chunk-FY3H52BM.js → chunk-JPU532DM.js} +1 -1
- package/dist/{chunk-SLQ3OID3.js → chunk-O5R4V3KH.js} +1 -1
- package/dist/{chunk-PBZ2VHS3.js → chunk-R42GJPQL.js} +1 -1
- package/dist/{chunk-JBXRDB6H.js → chunk-S5XQ5DBA.js} +8 -8
- package/dist/{chunk-UAG5IEAY.js → chunk-SGIM64RL.js} +1 -1
- package/dist/{chunk-FGPEAC7B.js → chunk-SYY4PSVZ.js} +13 -13
- package/dist/{chunk-6ETDY7FF.js → chunk-TXLJEUYC.js} +2 -2
- package/dist/{chunk-CLYMUTNF.js → chunk-UB2IV2II.js} +7 -7
- package/dist/{chunk-GFWRYNPX.js → chunk-VOUSFISE.js} +16 -16
- package/dist/{chunk-VJ6KJYRS.js → chunk-YDDG7MXB.js} +1 -1
- package/dist/file-intake/index.js +1 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/{index-BI54lOAz.d.ts → index-C6kh5wXj.d.ts} +9 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +124 -124
- package/dist/locales/zh-Hans.d.ts +1 -1
- package/dist/locales/zh-Hans.js +1 -1
- package/dist/map/index.js +3 -3
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/{strings-BOGLdj8k.d.ts → strings-IB8gUtul.d.ts} +2 -0
- 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-OOOCLV6P.js +0 -29
- package/dist/ConfirmDialog-OJLZG4QL.js +0 -1
- package/dist/PdfViewer-D4GRPG4G.js +0 -1
- package/dist/Sidebar-NPUUCGOX.js +0 -44
- package/dist/chunk-LVCRH3K6.js +0 -1
- package/dist/chunk-TLXCOFPD.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DEFAULT_SHELL_STRINGS as e,useShellStrings as t}from"./chunk-
|
|
1
|
+
import{DEFAULT_SHELL_STRINGS as e,useShellStrings as t}from"./chunk-HQLDTFAF.js";import{useRef as r,useState as n,useCallback as s}from"react";import{jsx as a}from"react/jsx-runtime";function o(e,t){const r=(t??"").split(",").map(e=>e.trim().toLocaleLowerCase()).filter(Boolean);if(0===r.length||r.includes("*")||r.includes("*/*"))return!0;const n=e.name.toLocaleLowerCase(),s=e.type.toLocaleLowerCase();return r.some(e=>e.startsWith(".")?n.endsWith(e):e.endsWith("/*")?s.startsWith(e.slice(0,-1)):s===e)}var l=(t,r=e.files)=>t<1024?r.bytes(t):t<1048576?r.kilobytes(Math.round(t/1024)):r.megabytes(t/1048576),i=e=>Array.from(e.dataTransfer?.types??[]).includes("Files");function c({onAccept:e,accept:a,maxSizeBytes:c,maxFiles:u,multiple:f=!0,currentCount:p=0,acceptHint:m,disabled:d=!1}){const h=t().files,g=r(null),[y,x]=n(!1),[v,D]=n([]),L=r(0),A="string"==typeof m?m:"",b=s(t=>{if(d||!t)return;const r=Array.from(t);if(0===r.length)return;const n=[],s=[];for(const e of f?r:r.slice(0,1))o(e,a)?null!=c&&e.size>c?s.push({file:e,reason:"size",message:h.tooLarge(e.name,l(e.size,h),l(c,h))}):f&&null!=u&&p+n.length>=u?s.push({file:e,reason:"count",message:h.tooMany(e.name,u)}):n.push(e):s.push({file:e,reason:"type",message:h.notAccepted(e.name,A)});D(s),n.length&&e(n),g.current&&(g.current.value="")},[d,f,a,A,c,u,p,e,h]),j=s(()=>{d||g.current?.click()},[d]),k=s(()=>D([]),[]);return{inputRef:g,inputProps:{ref:g,type:"file",accept:a||void 0,multiple:f,disabled:d,tabIndex:-1,"aria-hidden":!0,className:"hidden",onChange:e=>b(e.target.files)},zoneProps:d?{}:{onDragEnter:e=>{i(e)&&(e.preventDefault(),L.current+=1,x(!0))},onDragOver:e=>{i(e)&&(e.preventDefault(),y||x(!0))},onDragLeave:e=>{i(e)&&(L.current=Math.max(0,L.current-1),0===L.current&&x(!1))},onDrop:e=>{i(e)&&(e.preventDefault(),L.current=0,x(!1),b(e.dataTransfer.files))}},pasteProps:d?{}:{onPaste:e=>{const t=function(e){const t=e.clipboardData;if(!t)return[];if(t.files&&t.files.length>0)return Array.from(t.files);const r=[];for(const e of Array.from(t.items??[]))if("file"===e.kind){const t=e.getAsFile();t&&r.push(t)}return r}(e);0!==t.length&&(e.preventDefault(),b(t))}},open:j,take:b,dragOver:y,rejections:v,clearRejections:k}}function u({rejections:e,className:t="mt-2"}){return 0===e.length?null:/* @__PURE__ */a("ul",{role:"alert",className:`${t} flex flex-col gap-0.5`,children:e.map(({file:e,message:t},r)=>/* @__PURE__ */a("li",{className:"text-xs text-red-600",children:t},`${e.name}-${r}`))})}export{u as FileIntakeAlert,o as acceptsFile,l as humanSize,c as useFileIntake};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import{toast_default as e}from"./chunk-
|
|
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,E]=s(null),[M,z]=s(1),[
|
|
1
|
+
import{toast_default as e}from"./chunk-7S7Z4HD6.js";import{Icon as t}from"./chunk-YT4B3NSV.js";import{useShellStrings as n}from"./chunk-HQLDTFAF.js";import{LoadingSpinner as r}from"./chunk-2J6F4EE7.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,E]=s(null),[M,z]=s(1),[D,_]=s(0),[P,S]=s(1),[L,T]=s(!0),[W,$]=s(!0),A=i(x.loadFailed);A.current=x.loadFailed,l(()=>{let t=!1;return $(!0),z(1),g&&(c.GlobalWorkerOptions.workerSrc=g),c.getDocument({url:a,...y(w)}).promise.then(e=>{t||(E(e),_(e.numPages),$(!1))}).catch(()=>{t||(e.error(A.current),$(!1))}),()=>{t=!0}},[a,g,w]),l(()=>{if(!j||!L||!N.current)return;const e=()=>{const e=N.current;e&&j.getPage(M).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});S(e=>Math.abs(e-r)<.005?e:r)})};e();const t=new ResizeObserver(e);return t.observe(N.current),()=>t.disconnect()},[j,M,L,d]),l(()=>{if(!j||!k.current)return;let e=!1,t=null,n=null;return j.getPage(M).then(r=>{if(e||!k.current)return;const a=r.getViewport({scale:P}),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,M,P]),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,F="px-2 py-1 rounded hover:bg-gray-200 transition-colors text-gray-600 flex items-center gap-1";/* @__PURE__ */
|
|
3
3
|
return m("div",{className:"flex flex-col h-full",children:[
|
|
4
4
|
/* @__PURE__ */m(f,{children:[
|
|
5
5
|
/* @__PURE__ */u("button",{type:"button","aria-label":x.previousPage,onClick:()=>z(e=>Math.max(1,e-1)),disabled:M<=1,className:"px-1 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",children:/* @__PURE__ */u(t,{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(M,
|
|
7
|
-
/* @__PURE__ */u("button",{type:"button","aria-label":x.nextPage,onClick:()=>z(e=>Math.min(
|
|
6
|
+
/* @__PURE__ */u("span",{className:"text-gray-600 font-medium tabular-nums whitespace-nowrap",children:x.pageOf(M,D)}),
|
|
7
|
+
/* @__PURE__ */u("button",{type:"button","aria-label":x.nextPage,onClick:()=>z(e=>Math.min(D,e+1)),disabled:M>=D,className:"px-1 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",children:/* @__PURE__ */u(t,{name:"chevron-right",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
8
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:()=>{
|
|
10
|
-
/* @__PURE__ */m("select",{value:
|
|
11
|
-
/* @__PURE__ */u("option",{value:"fit",children:O}),!
|
|
12
|
-
/* @__PURE__ */u("button",{type:"button","aria-label":x.zoomIn,title:x.zoomIn,onClick:()=>{
|
|
13
|
-
/* @__PURE__ */u("button",{type:"button",onClick:()=>
|
|
9
|
+
/* @__PURE__ */u("button",{type:"button","aria-label":x.zoomOut,title:x.zoomOut,onClick:()=>{T(!1),S(e=>Math.max(.3,Math.round(100*(e-.25))/100))},className:F,children:/* @__PURE__ */u("span",{"aria-hidden":"true",children:"−"})}),
|
|
10
|
+
/* @__PURE__ */m("select",{value:L?"fit":v.includes(Math.round(100*P))?Math.round(100*P):"custom",onChange:e=>{const t=e.target.value;"fit"!==t?"custom"!==t&&(T(!1),S(Number(t)/100)):T(!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}),!L&&!v.includes(Math.round(100*P))&&/* @__PURE__ */m("option",{value:"custom",children:[Math.round(100*P),"%"]}),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:()=>{T(!1),S(e=>Math.min(4,Math.round(100*(e+.25))/100))},className:F,children:/* @__PURE__ */u("span",{"aria-hidden":"true",children:"+"})}),
|
|
13
|
+
/* @__PURE__ */u("button",{type:"button",onClick:()=>T(!0),"aria-pressed":L,className:F+(L?" bg-gray-200 text-gray-900":""),title:x.fitHint,children:x.fit}),
|
|
14
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<=
|
|
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<=D;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:F,children:[
|
|
16
16
|
/* @__PURE__ */u(t,{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:
|
|
18
|
-
/* @__PURE__ */u(t,{name:"download",className:"h-3.5 w-3.5",strokeWidth:1.5}),x.download]}),p&&/* @__PURE__ */m("button",{type:"button",onClick:p,className:
|
|
17
|
+
/* @__PURE__ */m("button",{type:"button",onClick:h??(()=>{const e=document.createElement("a");e.href=a,e.download=o,e.click()}),className:F,children:[
|
|
18
|
+
/* @__PURE__ */u(t,{name:"download",className:"h-3.5 w-3.5",strokeWidth:1.5}),x.download]}),p&&/* @__PURE__ */m("button",{type:"button",onClick:p,className:F,children:[
|
|
19
19
|
/* @__PURE__ */u(t,{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&&M<
|
|
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&&M<D?(e.preventDefault(),z(e=>Math.min(D,e+1)),requestAnimationFrame(()=>{N.current&&(N.current.scrollTop=0)})):e.deltaY<0&&n&&M>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?M<D&&(e.preventDefault(),z(e=>Math.min(D,e+1))):"PageUp"===e.key||"ArrowLeft"===e.key?M>1&&(e.preventDefault(),z(e=>Math.max(1,e-1))):"Home"===e.key?(e.preventDefault(),z(1)):"End"===e.key&&(e.preventDefault(),z(D)))},children:W?/* @__PURE__ */u(r,{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
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
22
|
/* @__PURE__ */m("div",{className:"relative shadow-lg rounded",children:[
|
|
23
23
|
/* @__PURE__ */u("canvas",{ref:k,className:"block rounded"}),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{Tooltip as e}from"./chunk-RDLWLATO.js";import{useBrowserLayoutEffect as r,useBrowserState as t}from"./chunk-D65T4H6J.js";import{useShellStrings as o}from"./chunk-
|
|
2
|
-
return s(e,{content:x??k.hint,side:
|
|
1
|
+
import{Tooltip as e}from"./chunk-RDLWLATO.js";import{useBrowserLayoutEffect as r,useBrowserState as t}from"./chunk-D65T4H6J.js";import{useShellStrings as o}from"./chunk-HQLDTFAF.js";import{useRef as n,useEffect as i,useCallback as l}from"react";import{jsx as s,jsxs as a,Fragment as c}from"react/jsx-runtime";var u=(e,r,t)=>Math.min(t,Math.max(r,e));function d(e,r,t,o,n){return Math.round(u("left"===t||"top"===t?e+r:e-r,o,n))}function h(e,r,t){let o=null;try{o=window.localStorage.getItem(e)}catch{return null}const n=o?parseInt(o,10):NaN;return Number.isNaN(n)?null:u(n,r,t)}function f({width:t,onResize:a,orientation:c="vertical",side:f,min:m,max:v,defaultWidth:g=m,step:b=16,storageKey:p,label:w,hint:x,controls:y,className:z=""}){const N="horizontal"===c,k=o().resizeHandle,P=n(null),$=n({onResize:a,min:m,max:v,side:f});$.current={onResize:a,min:m,max:v,side:f},r(()=>{if(!p)return;const e=h(p,m,v);null!==e&&e!==t&&a(e)},[p]),i(()=>{if(!p)return;const e=window.setTimeout(()=>{try{window.localStorage.setItem(p,String(Math.round(t)))}catch{}},200);return()=>window.clearTimeout(e)},[t,p]);const D=l(()=>{P.current=null,document.body.style.removeProperty("cursor"),document.body.style.removeProperty("user-select")},[]);i(()=>D,[D]);const M=e=>{P.current&&(e.currentTarget.hasPointerCapture?.(P.current.pointer)&&e.currentTarget.releasePointerCapture(P.current.pointer),D())},T="left"===f?"right-0":"right"===f?"left-0":"top"===f?"bottom-0":"top-0",C="left"===f?"right":"right"===f?"left":"top"===f?"bottom":"top",R=N?`absolute inset-x-0 ${T} z-10 flex h-2`:`absolute inset-y-0 ${T} z-10 flex w-2`;/* @__PURE__ */
|
|
2
|
+
return s(e,{content:x??k.hint,side:C,delay:600,className:`${R} ${z}`.trim(),children:/* @__PURE__ */s("div",{role:"separator",tabIndex:0,"aria-orientation":c,"aria-label":w??k.label,"aria-valuenow":Math.round(t),"aria-valuemin":m,"aria-valuemax":v,"aria-controls":y,"data-resize-handle":f,onPointerDown:e=>{0===e.button&&(e.preventDefault(),P.current={x:N?e.clientY:e.clientX,width:t,moved:!1,pointer:e.pointerId},e.currentTarget.setPointerCapture?.(e.pointerId),document.body.style.cursor=N?"row-resize":"col-resize",document.body.style.userSelect="none")},onPointerMove:e=>{const r=P.current;if(!r)return;if(0===e.buttons)return void D();const t=(N?e.clientY:e.clientX)-r.x;if(!r.moved){if(Math.abs(t)<3)return;r.moved=!0}const{onResize:o,min:n,max:i,side:l}=$.current;o(d(r.width,t,l,n,i))},onPointerUp:M,onPointerCancel:M,onLostPointerCapture:()=>{P.current&&D()},onDoubleClick:()=>a(u(g,m,v)),onKeyDown:e=>{const r=N?"ArrowDown":"ArrowRight",o=N?"ArrowUp":"ArrowLeft",n=e.key===r?b:e.key===o?-b:null,i=null!==n?d(t,n,f,m,v):"Home"===e.key?m:"End"===e.key?v:"Enter"===e.key?u(g,m,v):null;null!==i&&(e.preventDefault(),i!==t&&a(i))},className:N?"group/resize relative h-full w-full cursor-row-resize touch-none rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]":"group/resize relative h-full w-full cursor-col-resize touch-none rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */s("div",{"aria-hidden":"true",className:N?`absolute inset-x-0 ${T} h-px bg-transparent transition-colors group-hover/resize:bg-[var(--accent-500,var(--rosh-resize-handle))] group-focus-visible/resize:h-0.5 group-focus-visible/resize:bg-[var(--accent-500,var(--rosh-resize-handle))]`:`absolute inset-y-0 ${T} w-px bg-transparent transition-colors group-hover/resize:bg-[var(--accent-500,var(--rosh-resize-handle))] group-focus-visible/resize:w-0.5 group-focus-visible/resize:bg-[var(--accent-500,var(--rosh-resize-handle))]`})})})}var m=(e,r,t)=>Math.min(Math.max(e,r),t);function v({sidebar:e,sidebarTop:r,sidebarBottom:n,children:i,side:l="left",storageKey:u,defaultWidth:d=256,minWidth:v=180,maxWidth:g=480,className:b="",sidebarClassName:p=("right"===l?"border-l border-gray-200 bg-gray-50":"border-r border-gray-200 bg-gray-50"),contentClassName:w="bg-white"}){const x="right"===l,y=o().sidebar,[z,N]=t(()=>(u?h(u,v,g):null)??m(d,v,g),m(d,v,g)),k=null!=r||null!=n,P=/* @__PURE__ */a("div",{className:"relative flex h-full shrink-0 flex-col",style:{width:z},children:[
|
|
3
3
|
/* @__PURE__ */a("div",{className:`flex h-full flex-col ${k?"overflow-hidden":"overflow-y-auto"} ${p}`,children:[null!=r&&/* @__PURE__ */s("div",{className:"flex shrink-0 flex-col gap-2 px-2 pt-3 pb-2",children:r}),k?/* @__PURE__ */s("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e}):e,null!=n&&/* @__PURE__ */s("div",{className:"mt-auto flex shrink-0 flex-col gap-2 border-t border-gray-200 px-2 py-3",children:n})]}),
|
|
4
4
|
/* @__PURE__ */s(f,{side:l,width:z,onResize:N,min:v,max:g,defaultWidth:m(d,v,g),storageKey:u,hint:y.resize})]}),$=/* @__PURE__ */s("div",{className:`flex min-w-0 flex-1 flex-col ${w}`,children:i});/* @__PURE__ */
|
|
5
5
|
return s("div",{className:`flex h-full w-full overflow-hidden ${b}`,children:/* @__PURE__ */a(c,x?{children:[$,P]}:{children:[P,$]})})}export{f as ResizeHandle,v as SidebarLayout};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import{navVisible as e,isReachable as t,visibleChildren as n,isSection as r}from"./chunk-5A7MWTXX.js";import{useDismissPopupsOnOpen as a}from"./chunk-UVBK6YSR.js";import{glassStyle as l}from"./chunk-7IQ3B77H.js";import{Z_LAYERS as o}from"./chunk-FIEA5CGB.js";import{useShellStrings as s}from"./chunk-
|
|
1
|
+
import{navVisible as e,isReachable as t,visibleChildren as n,isSection as r}from"./chunk-5A7MWTXX.js";import{useDismissPopupsOnOpen as a}from"./chunk-UVBK6YSR.js";import{glassStyle as l}from"./chunk-7IQ3B77H.js";import{Z_LAYERS as o}from"./chunk-FIEA5CGB.js";import{useShellStrings as s}from"./chunk-HQLDTFAF.js";import{SpinnerRing as i,LoadingSpinner as c}from"./chunk-2J6F4EE7.js";import{useState as d,useEffect as u,useRef as p,useMemo as y,useId as f,useCallback as m}from"react";import{jsx as h,jsxs as b}from"react/jsx-runtime";import{createPortal as g}from"react-dom";var k={favicon:"h-8 w-8",compact:"h-10 w-10",wordmark:"h-10 w-40"};function x(e){return e.trim().charAt(0).toLocaleUpperCase()||"·"}function v(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 w={"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 N(e,t,n){return"bare"===e?{}:"framed"===e?{borderRadius:t}:{borderRadius:t,padding:n}}function L({src:e,fallbackSrc:t,fallbackHasAlpha:n=null,fallbackIsLight:r=null,fallbackAdaptive:a,alt:l,slot:o="compact",surface:s="light",size:i,width:c,height:p,decorative:y=!1,fallbackMode:f="monogram",adaptive:m=!1,hasAlpha:b=null,isLight:g=null,treatmentPadding:L=4,treatmentRadius:_=8,className:A="",style:C}){const[E,$]=d(e||t||"");u(()=>{$(e||t||"")},[e,t]);const T=Boolean(t&&E===t&&E!==e),I=(T?a??m:m)?v(T?n:b,T?r:g,s):"bare",j=["inline-flex shrink-0 items-center justify-center overflow-hidden",null==i&&null==c&&null==p?k[o]:"","dark"===s?"text-white":"text-gray-700",w[I],A].filter(Boolean).join(" "),S={...N(I,_,L),...null==i?{width:c,height:p}:{width:i,height:i},...C};return E?/* @__PURE__ */h("span",{className:j,"data-brand-treatment":I,style:S,children:/* @__PURE__ */h("img",{src:E,alt:y?"":l,"data-brand-slot":o,className:"block max-h-full max-w-full",style:{objectFit:"contain"},onError:()=>$(e=>t&&e!==t?t:"")})}):"none"===f?null:/* @__PURE__ */h("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:x(l)})}function _(n,r){return e(n,r)?n.items.filter(n=>e(n,r)&&t(n,r)):[]}function A(e,r){return n(e,r).filter(e=>t(e,r))}function C(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)&&_(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 E(e,t,n){return!!t&&e.some(e=>e.to===t||E(A(e,n),t,n))}var $="__page__";function T(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=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])_(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 j(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 S="M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z";function M(e){return e.typeKey??e.type}function R(e,t){return t?.[M(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 D(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=M(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:D(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 F(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 U(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 W=[];function G(e,t,n){const[r,a]=d([]),[l,o]=d(W),[s,i]=d(!1),[c,y]=d("none"),f=p(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}}());u(()=>{const r=f.current;if(e.length<n||!t||0===t.length)return r.cancel(),a(e=>0===e.length?e:[]),o(W),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,...U(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:c,reset:m(()=>{f.current.cancel(),a(e=>0===e.length?e:[]),o(W),y("none"),i(!1)},[])}}var O=(e,t)=>`${e}-opt-${t}`;function Q(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??S;if(e.icon)return e.icon;const n=t?.[M(e.result)];return n||S}function V({sections:e,activeIdx:t,listId:n,label:r,typeIcons:a,groupCount:l,groupLabel:o,onHover:s,onPick:i}){let c=0;/* @__PURE__ */
|
|
2
2
|
return h("div",{id:n,role:"listbox","aria-label":r,className:"py-1",children:e.map(e=>/* @__PURE__ */b("div",{role:"group","aria-label":o(e.title,e.count,!!e.truncated),children:[
|
|
3
3
|
/* @__PURE__ */b("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
4
|
/* @__PURE__ */h("span",{children:e.title}),
|
|
5
5
|
/* @__PURE__ */h("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 b("div",{id:
|
|
7
|
-
/* @__PURE__ */h("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__ */h("path",{strokeLinecap:"round",strokeLinejoin:"round",d:
|
|
6
|
+
return b("div",{id:O(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__ */h("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__ */h("path",{strokeLinecap:"round",strokeLinejoin:"round",d:Q(e,a)})}),
|
|
8
8
|
/* @__PURE__ */b("div",{className:"flex-1 min-w-0",children:[
|
|
9
|
-
/* @__PURE__ */h("p",{className:"text-sm font-medium truncate "+(u?"text-blue-600":"text-gray-900"),children:e.label}),d&&/* @__PURE__ */h("p",{className:"text-xs text-gray-400 truncate",children:d})]}),o&&/* @__PURE__ */h("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
|
|
9
|
+
/* @__PURE__ */h("p",{className:"text-sm font-medium truncate "+(u?"text-blue-600":"text-gray-900"),children:e.label}),d&&/* @__PURE__ */h("p",{className:"text-xs text-gray-400 truncate",children:d})]}),o&&/* @__PURE__ */h("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 X="react-os-shell:open-global-search";function q(){"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(X))}function J({providers:e,typeIcons:t,typeLabels:n,listRoutes:r,placeholder:k,quickActions:x,onSelect:v,recent:w,onRecord:N,favorites:L,hotkey:_=!0}={}){const A=s().search,C=k??A.placeholder,[E,$]=d(!1),[T,I]=d(""),[j,M]=d(0),D=p(null),{results:P,truncatedTypes:z,loading:H,failure:U,reset:W}=G(T,e,2);u(()=>{const e=e=>{_&&!e.defaultPrevented&&(e.ctrlKey||e.metaKey)&&"k"===e.key&&(e.preventDefault(),$(e=>!e)),"Escape"===e.key&&E&&$(!1)},t=()=>$(!0);return window.addEventListener("keydown",e),window.addEventListener(X,t),()=>{window.removeEventListener("keydown",e),window.removeEventListener(X,t)}},[E,_]),a(E);const[Q,q]=d(!1);E!==Q&&(q(E),E&&(I(""),M(0),W())),u(()=>{E?setTimeout(()=>D.current?.focus(),50):I("")},[E]),u(()=>{M(0)},[P]);const J=T.length>=2,Y=y(()=>J?B(P,x,T,A.actions,{truncatedTypes:z,listRoutes:r,typeLabels:n,seeAllLabel:A.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:R(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:R(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:w,favorites:L,actions:x,typeLabels:n},A),[J,P,z,r,n,x,T,w,L,A]),Z=y(()=>function(e){return e.flatMap(e=>e.rows)}(Y),[Y]),ee=Math.min(j,Math.max(Z.length-1,0)),te=f(),ne=Z.length>0;u(()=>{E&&0!==Z.length&&document.getElementById(O(te,ee))?.scrollIntoView?.({block:"nearest"})},[E,ee,Z.length,te]);const re=m(e=>{$(!1),"action"!==e.kind?("result"!==e.kind&&"recent"!==e.kind||N?.(e.result),v?.(e.result)):e.action.onSelect()},[v,N]);return E?g(
|
|
10
10
|
/* @__PURE__ */b("div",{"data-global-search":"",className:"fixed inset-0 flex items-start justify-center pt-[15vh]",style:{zIndex:o.overlay},onClick:()=>$(!1),children:[
|
|
11
11
|
/* @__PURE__ */h("div",{"data-global-search-backdrop":"",className:"absolute inset-0 bg-black/50 backdrop-blur-sm"}),
|
|
12
12
|
/* @__PURE__ */b("div",{className:"relative z-10 w-full max-w-xl rounded-(--radius-popup) overflow-hidden",onClick:e=>e.stopPropagation(),style:l(),children:[
|
|
13
13
|
/* @__PURE__ */b("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-gray-200",children:[
|
|
14
14
|
/* @__PURE__ */h("svg",{className:"h-5 w-5 text-gray-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */h("path",{strokeLinecap:"round",strokeLinejoin:"round",d:S})}),
|
|
15
|
-
/* @__PURE__ */h("input",{ref:
|
|
15
|
+
/* @__PURE__ */h("input",{ref:D,type:"text",value:T,onChange:e=>{I(e.target.value),M(0)},onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),M(F(ee,1,Z.length))):"ArrowUp"===e.key?(e.preventDefault(),M(F(ee,-1,Z.length))):"Tab"===e.key&&Z.length>0?(e.preventDefault(),M(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),ee,e.shiftKey?-1:1))):"Enter"===e.key&&Z[ee]&&re(Z[ee])},placeholder:C,role:"combobox","aria-expanded":ne,"aria-controls":ne?te:void 0,"aria-activedescendant":ne?O(te,ee):void 0,"aria-autocomplete":"list",className:"flex-1 text-sm bg-transparent border-0 rosh-focus-ring placeholder-gray-400"}),H&&/* @__PURE__ */h("span",{"data-global-search-spinner":"",role:"status","aria-label":A.searching,className:"flex shrink-0",children:/* @__PURE__ */h(i,{className:"h-4 w-4",ink:"text-gray-500"})}),
|
|
16
16
|
/* @__PURE__ */h("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:A.escBadge})]}),
|
|
17
|
-
/* @__PURE__ */b("div",{className:"max-h-[50vh] overflow-y-auto",children:[
|
|
17
|
+
/* @__PURE__ */b("div",{className:"max-h-[50vh] overflow-y-auto",children:[H&&0===Z.length&&/* @__PURE__ */h(c,{size:"sm",padding:"py-6",label:A.searching}),!H&&"all"===U&&J&&/* @__PURE__ */h("div",{role:"alert",className:"px-4 py-3 text-center text-sm text-red-600",children:A.searchFailed}),!H&&J&&0===Z.length&&"all"!==U&&/* @__PURE__ */h("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:A.noResults}),ne&&/* @__PURE__ */h(V,{sections:Y,activeIdx:ee,listId:te,label:A.listLabel,typeIcons:t,groupCount:A.groupCount,groupLabel:A.groupLabel,onHover:M,onPick:re}),!H&&"some"===U&&J&&/* @__PURE__ */h("div",{role:"status",className:"px-4 py-2 text-xs text-amber-600",children:A.partialFailure}),!H&&!J&&0===Z.length&&/* @__PURE__ */h("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:A.minChars(2)})]}),
|
|
18
18
|
/* @__PURE__ */b("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
19
|
/* @__PURE__ */b("div",{className:"flex items-center gap-3",children:[
|
|
20
20
|
/* @__PURE__ */b("span",{className:"flex items-center gap-1",children:[
|
|
@@ -24,4 +24,4 @@ return b("div",{id:G(n,r),role:"option","aria-selected":l,className:"flex items-
|
|
|
24
24
|
/* @__PURE__ */h("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:A.enterKey}),` ${A.open}`]}),Y.length>1&&/* @__PURE__ */b("span",{className:"flex items-center gap-1",children:[
|
|
25
25
|
/* @__PURE__ */h("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:A.tabKey}),` ${A.nextGroup}`]})]}),
|
|
26
26
|
/* @__PURE__ */b("span",{className:"flex items-center gap-1",children:[
|
|
27
|
-
/* @__PURE__ */h("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:A.escKey}),` ${A.close}`]})]})]})]}),document.body):null}export{L as BrandMark,
|
|
27
|
+
/* @__PURE__ */h("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:A.escKey}),` ${A.close}`]})]})]})]}),document.body):null}export{L as BrandMark,J as GlobalSearch,$ as PAGE_RESULT_ENTITY,j as favoritesToResults,I as navPagesProvider,q as openGlobalSearch,T as parsePageResultTarget,C as partitionNav,z as pushRecent,v as resolveBrandMarkTreatment,E as rowsContainRoute,H as sanitizeRecent,A as visibleNavChildren,_ as visibleSectionItems};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import{useDismissPopupsOnOpen as e}from"./chunk-UVBK6YSR.js";import{registerModalEscapeInterceptor as t,Z_LAYERS as n}from"./chunk-FIEA5CGB.js";import{buttonClasses as r}from"./chunk-K7PQXJO7.js";import{Icon as l}from"./chunk-YT4B3NSV.js";import{useShellStrings as o,splitAround as i}from"./chunk-
|
|
1
|
+
import{useDismissPopupsOnOpen as e}from"./chunk-UVBK6YSR.js";import{registerModalEscapeInterceptor as t,Z_LAYERS as n}from"./chunk-FIEA5CGB.js";import{buttonClasses as r}from"./chunk-K7PQXJO7.js";import{Icon as l}from"./chunk-YT4B3NSV.js";import{useShellStrings as o,splitAround as i}from"./chunk-HQLDTFAF.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 F(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 I({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 T={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-4xl"};function D({open:r,onClose:i,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,D=d(),O=o().dialog;return e(r),L(C,r,y),F(r),s(()=>{if(r)return t(()=>(v||i(),!0),()=>C.current)},[r,v,i]),r?/* @__PURE__ */h("div",{className:"fixed inset-0",style:{zIndex:n.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&&i()},children:/* @__PURE__ */h("div",{ref:C,...
|
|
4
|
-
return b(l,{name:"warning",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function
|
|
5
|
-
return b(l,{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&&i()},children:/* @__PURE__ */h("div",{ref:C,...I({role:m,modal:!0,titleId:a?D:void 0,labelledBy:w,label:x}),"aria-describedby":N??(u?P:f?E:void 0),className:`relative max-h-full w-full ${T[p]} overflow-y-auto overscroll-contain rounded-(--radius-card) bg-white p-6 shadow-xl ${k}`.trim(),children:[a&&/* @__PURE__ */b("h2",{id:D,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:i,"aria-label":O.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(l,{name:"close",className:"h-5 w-5",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"})})]})})]}):null}var O=a(()=>Promise.resolve(!1)),W=()=>u(O),$=()=>Promise.resolve(!1),A=e=>$(e),K=()=>Promise.resolve(!1),R=e=>K(e),B=()=>Promise.resolve(null),S=e=>B(e),V={danger:{icon:"text-red-600 bg-red-100",button:r({variant:"danger"})},warning:{icon:"text-yellow-600 bg-yellow-100",button:r({variant:"warning"})},info:{icon:"text-blue-600 bg-blue-100",button:r({variant:"primary"})}},z=r({variant:"secondary"}),G=r({variant:"primary"}),Q="w-full rounded-md border border-gray-300 h-8 px-3 text-sm";function U(){/* @__PURE__ */
|
|
4
|
+
return b(l,{name:"warning",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function Y(){/* @__PURE__ */
|
|
5
|
+
return b(l,{name:"close",className:"h-5 w-5",strokeWidth:1.5,"aria-hidden":"true"})}function _({children:e}){const[t,n]=m(!1),[r,l]=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),l(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,F]=m(""),I=c(),T=f(e=>(P(e),F(""),E(!0),new Promise(e=>{I.current=e})),[]),[W,A]=m(!1),[R,S]=m({}),[_,q]=m(""),H=c(),J=f(e=>{const t="string"==typeof e?{message:e}:e;return S(t),q(t.defaultValue??""),A(!0),new Promise(e=>{H.current=e})},[]);s(()=>{$=k,K=T,B=J},[k,T,J]);const M=(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)},X=e=>{E(!1),F(""),I.current?.(e)},Z=e=>{if(e){const e=_.trim();if(!e&&!R.allowEmpty)return A(!1),void H.current?.(null);A(!1),H.current?.(e)}else A(!1),H.current?.(null)},ee=r.variant||(r.confirmLabel?.toLowerCase().includes("delete")||r.message.toLowerCase().includes("delete")?"danger":"info"),te=V[ee],ne=V["warning"===L.variant?"warning":"danger"],re=L.confirmWord,le=null==re||j===re,oe=o().dialog,[ie,ae]=i(oe.typeToConfirm);/* @__PURE__ */
|
|
6
6
|
return h(O.Provider,{value:k,children:[e,
|
|
7
|
-
/* @__PURE__ */b(
|
|
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(D,{open:t,onClose:()=>M(a,!1),initialFocus:x,footer:/* @__PURE__ */h(g,{children:[
|
|
8
|
+
/* @__PURE__ */b("button",{ref:x,type:"button",onClick:()=>M(a,!1),className:z,children:r.cancelLabel||oe.cancel}),
|
|
9
|
+
/* @__PURE__ */b("button",{type:"button",onClick:()=>M(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(U,{})}),
|
|
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(
|
|
14
|
+
/* @__PURE__ */h(D,{open:C,onClose:()=>X(!1),initialFocus:null!=re?void 0:w,footer:/* @__PURE__ */h(g,{children:[
|
|
15
15
|
/* @__PURE__ */b("button",{ref:w,type:"button",onClick:()=>X(!1),className:z,children:L.cancelLabel||oe.destructiveCancel}),
|
|
16
16
|
/* @__PURE__ */b("button",{type:"button",onClick:()=>X(!0),disabled:!le,className:ne.button,children:re??L.confirmLabel??oe.destructiveConfirm})]}),children:[
|
|
17
|
-
/* @__PURE__ */b("button",{type:"button",onClick:()=>X(!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(
|
|
17
|
+
/* @__PURE__ */b("button",{type:"button",onClick:()=>X(!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(Y,{})}),
|
|
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(U,{})}),
|
|
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=>
|
|
26
|
-
/* @__PURE__ */h(
|
|
27
|
-
/* @__PURE__ */b("button",{type:"button",onClick:()=>Z(!1),className:z,children:
|
|
28
|
-
/* @__PURE__ */b("button",{type:"button",onClick:()=>Z(!0),disabled:!
|
|
29
|
-
/* @__PURE__ */b("input",{autoFocus:!0,type:"text",value:
|
|
25
|
+
/* @__PURE__ */b("input",{autoFocus:!0,type:"text",value:j,onChange:e=>F(e.target.value),onKeyDown:e=>{"Enter"===e.key&&j===re&&X(!0)},placeholder:re,className:`mt-2 ${Q} focus:border-red-500`})]})]})]})]}),
|
|
26
|
+
/* @__PURE__ */h(D,{open:W,onClose:()=>Z(!1),title:R.title||oe.promptTitle,footer:/* @__PURE__ */h(g,{children:[
|
|
27
|
+
/* @__PURE__ */b("button",{type:"button",onClick:()=>Z(!1),className:z,children:R.cancelLabel||oe.cancel}),
|
|
28
|
+
/* @__PURE__ */b("button",{type:"button",onClick:()=>Z(!0),disabled:!R.allowEmpty&&!_.trim(),className:G,children:R.confirmLabel||oe.ok})]}),children:[R.message&&/* @__PURE__ */b("p",{className:"text-sm text-gray-600",children:R.message}),
|
|
29
|
+
/* @__PURE__ */b("input",{autoFocus:!0,type:"text",value:_,onChange:e=>q(e.target.value),onKeyDown:e=>{"Enter"===e.key?Z(!0):"Escape"===e.key&&Z(!1)},onFocus:e=>e.target.select(),placeholder:R.placeholder,className:`mt-3 ${Q} focus:border-blue-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-accent)]`})]})]})}export{_ as ConfirmProvider,D as Dialog,A as confirm,R as confirmDestructive,I as dialogA11y,k as focusableIn,S as prompt,E as stopAfter,W as useConfirm,L as useFocusTrap,F as useScrollLock,C as useTabLayer};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{Icon as e}from"./chunk-YT4B3NSV.js";import{useShellStrings as t}from"./chunk-
|
|
1
|
+
import{Icon as e}from"./chunk-YT4B3NSV.js";import{useShellStrings as t}from"./chunk-HQLDTFAF.js";import{useState as r,useRef as o,useEffect as c,useCallback as i}from"react";import{jsx as n}from"react/jsx-runtime";function a(e){const[t,n]=r(!1),a=o(void 0);c(()=>()=>clearTimeout(a.current),[]);return{copied:t,copy:i(t=>{t?.stopPropagation(),navigator.clipboard?.writeText(e).then(()=>{n(!0),clearTimeout(a.current),a.current=setTimeout(()=>n(!1),1500)},()=>{})},[e])}}function u({copied:t,className:r="w-4 h-4"}){/* @__PURE__ */
|
|
2
2
|
return n(e,t?{name:"check",className:`${r} text-green-600`,"aria-hidden":"true"}:{name:"copy",className:r,"aria-hidden":"true"})}function m({text:e}){const{copied:r,copy:o}=a(e),c=t().copy;/* @__PURE__ */
|
|
3
3
|
return n("button",{onClick:o,title:r?c.copiedValue:c.copyValue(e),className:"shrink-0 text-gray-400 hover:text-gray-600 transition-colors",children:/* @__PURE__ */n(u,{copied:r})})}export{m as CopyButton,u as CopyGlyph,a as useCopyText};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-
|
|
2
|
+
export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-SGIM64RL.js";import"../chunk-HQLDTFAF.js";import"../chunk-C3QOHMR6.js";
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { g as TimeAgoOptions } from './index-CHufemKB.js';
|
|
|
6
6
|
import './markup/index.js';
|
|
7
7
|
import { useFileIntake, FileIntakeLimits, FileRejection } from './file-intake/index.js';
|
|
8
8
|
import './registry-IyW-xYGB.js';
|
|
9
|
-
import { S as ShellStringsOverride } from './strings-
|
|
9
|
+
import { S as ShellStringsOverride } from './strings-IB8gUtul.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Button styling — the class strings `Button` and `IconButton` wear, and the
|
|
@@ -4377,6 +4377,13 @@ interface BudgetBarProps {
|
|
|
4377
4377
|
detail?: ReactNode;
|
|
4378
4378
|
/** Formats a duration in seconds. Default: `1h 0m` / `12m 30s` / `45s`. */
|
|
4379
4379
|
formatDuration?: (seconds: number) => string;
|
|
4380
|
+
/** Formats `elapsed` and `budget` when they are not seconds — money, for a
|
|
4381
|
+
* spend against a budget. Wins over `formatDuration`. */
|
|
4382
|
+
formatValue?: (value: number) => string;
|
|
4383
|
+
/** Where `elapsed` should be by now, in its unit: the budget's share of the
|
|
4384
|
+
* period gone. Drawn as a marker on the bar. Not a reading, not a budget:
|
|
4385
|
+
* anything non-finite or negative draws no marker. */
|
|
4386
|
+
pace?: number | null;
|
|
4380
4387
|
/** Wording for "no reading". */
|
|
4381
4388
|
emptyLabel?: string;
|
|
4382
4389
|
/** Wording for a run with no budget. */
|
|
@@ -4393,7 +4400,7 @@ interface BudgetBarProps {
|
|
|
4393
4400
|
* list that colours its rows and the bar inside a row cannot disagree.
|
|
4394
4401
|
*/
|
|
4395
4402
|
declare function budgetState(elapsed: number | null | undefined, budget: number | null | undefined): BudgetState;
|
|
4396
|
-
declare function BudgetBar({ label, elapsed, budget, grace, detail, formatDuration: formatDurationProp, emptyLabel: emptyLabelProp, noBudgetLabel: noBudgetLabelProp, size, ariaLabel, className, }: BudgetBarProps): react_jsx_runtime.JSX.Element;
|
|
4403
|
+
declare function BudgetBar({ label, elapsed, budget, grace, detail, formatDuration: formatDurationProp, formatValue, pace, emptyLabel: emptyLabelProp, noBudgetLabel: noBudgetLabelProp, size, ariaLabel, className, }: BudgetBarProps): react_jsx_runtime.JSX.Element;
|
|
4397
4404
|
|
|
4398
4405
|
/**
|
|
4399
4406
|
* The five shapes that carry meaning on a timeline, plus the flag that opens
|
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_LINE_STYLES, G as BORDER_WIDTHS, H as BackgroundVariant, I as BandScale, J as Banner, K as BannerEmphasis, L as BannerProps, M as BannerTone, N as BorderInput, O as BorderInputProps, Q as BorderLineStyle, R as BorderRole, T as BorderValue, U as BoxPlotBox, V as BoxPlotChart, W as BoxPlotChartProps, X as BrandAssetEditor, Y as BrandAssetEditorProps, Z as BrandAssetPreview, _ as BrandMark, $ as BrandMarkProps, a0 as BrandMarkSlot, a1 as BrandMarkSurface, a2 as BrandMarkTreatment, a3 as BreadcrumbItem, a4 as Breadcrumbs, a5 as BreadcrumbsProps, a6 as BudgetBar, a7 as BudgetBarProps, a8 as BudgetState, a9 as Button, aa as ButtonClassesOptions, ab as ButtonProps, ac as ButtonSize, ad as ButtonVariant, ae as CHART_INK, af as CMD_A, ag as CMD_DOT, ah as CMD_ENTER, ai as CMD_K, aj as CMD_S, ak as COLUMN_COUNT_MAX, al as COLUMN_COUNT_WIDTHS, am as COLUMN_SHARES_EQUAL, an as COLUMN_SHARE_MIN, ao as CONTROL_HEIGHTS, ap as CORNERS, aq as CORNERS_FOR_THEME, ar as Calendar, as as CalendarMode, at as CalendarProps, au as Candle, av as CandlestickChart, aw as CandlestickChartProps, ax as Card, ay as CardPadding, az as CardProps, aA as CardTone, aB as CartesianPlot, aC as CartesianPlotProps, aD as CellStyle, aE as ChartBackgroundVariant, aF as ChartBrush, aG as ChartBrushProps, aH as ChartCurve, aI as ChartDefs, aJ as ChartDefsProps, aK as ChartDot, aL as ChartDotProps, aM as ChartDotVariant, aN as ChartFillVariant, aO as ChartFrame, aP as ChartFrameProps, aQ as ChartHighlightProvider, aR as ChartLegendEntry, aS as ChartLegendSwatch, aT as ChartRange, aU as ChartReferenceLine, aV as ChartRevealDirection, aW as ChartSkeleton, aX as ChartSkeletonProps, aY as ChartStatusTone, aZ as ChartStrokeVariant, a_ as ChartTooltip, a$ as ChartTooltipProps, b0 as ChartTooltipRow, b1 as ChatTemplate, b2 as Checkbox, b3 as CheckboxProps, b4 as CheckoutTemplate, b5 as ChordChart, b6 as ChordChartProps, b7 as ColorPicker, b8 as ColorPickerPanel, b9 as ColorPickerPanelProps, ba as ColorPickerProps, bb as ColorPreset, bc as ColorSwatch, bd as ColorSwatchProps, be as ColorSwatchSize, bf as ColoredBadge, bg as ColoredBadgeProps, bh as ColumnChart, bi as ColumnChartProps, bj as ColumnSeries, bk as ColumnShares, bl as ComposerAttachments, bm as ComposerAttachmentsProps, bn as ConfirmProvider, bo as ContainerFillChart, bp as ContainerFillChartProps, bq as ContainerFillItem, br as ContextMenu, bs as ContextMenuPoint, bt as ContextMenuProps, bu as ContextMenuState, bv as ControlSize, bw as CornerOption, bx as Corners, by as CornersInput, bz as CornersInputProps, bA as CountBadge, bB as CountBadgeProps, bC as CountBadgeTone, bD as Curve, bE as DAY_MS, bF as DashboardTemplate, bG as DataTable, bH as DataTableColumn, bI as DataTableColumnGroup, bJ as DataTableHeader, bK as DataTablePage, bL as DataTableProps, bM as DataTableRowLink, bN as DataTableRowProps, bO as DatePicker, bP as DatePickerProps, bQ as DateRangePicker, bR as DateRangePickerProps, bS as DateTimePicker, bT as DateTimePickerProps, bU as DescriptionColumns, bV as DescriptionItem, bW as DescriptionList, bX as DescriptionListProps, bY as Dialog, bZ as DialogProps, b_ as DialogSize, b$ as DisplayChipItem, c0 as DisplayChips, c1 as DisplayChipsProps, c2 as Divider, c3 as DividerProps, c4 as DividerSpacing, c5 as Drawer, c6 as DrawerProps, c7 as DrawerSide, c8 as DrawerSize, c9 as DropdownMenu, ca as DropdownMenuAlign, cb as DropdownMenuCheckboxItem, cc as DropdownMenuDividerItem, cd as DropdownMenuEntry, ce as DropdownMenuFooterApi, cf as DropdownMenuItem, cg as DropdownMenuLabelItem, ch as DropdownMenuLinkItem, ci as DropdownMenuProps, cj as DropdownMenuRadioItem, ck as DropdownMenuSide, cl as DropdownMenuStatusItem, cm as DropdownPositionOptions, cn as ELEVATION_LEVELS, co as ENGLISH, cp as ENTER, cq as EditableGrid, cr as EditableGridProps, cs as ElevationLevel, ct as EmailTemplate, cu as EmptyState, cv as EmptyStateProps, cw as EmptyValue, cx as EmptyValueProps, cy as ErrorBoundary, cz as ErrorBoundaryProps, cA as ErrorPage, cB as ErrorPageProps, cC as FONT_WEIGHTS, cD as FileIntake, cE as FilePicker, cF as FilePickerProps, cG as FillVariant, cH as FloatingBar, cI as FloatingBarAlign, cJ as FloatingBarProps, cK as FloatingBarSide, cL as FontWeightRole, cM as FormError, cN as FormErrorSummary, cO as FormErrorSummaryProps, cP as FormField, cQ as FormFieldProps, cR as FormLayoutPage, cS as FunnelChart, cT as FunnelChartProps, cU as FunnelStage, cV as GLASS_DIVIDER, cW as GLASS_INPUT_BG, cX as GROUP_COLORS, cY as GROUP_COLORS_SOLID, cZ as GalleryTemplate, c_ as Gap, c$ as GlassOptions, d0 as GlobalSearch, d1 as GlobalSearchProps, d2 as Grid, d3 as GridCols, d4 as GridColumn, d5 as GridProps, d6 as HeatmapChart, d7 as HeatmapChartProps, d8 as HelpCenter, d9 as HelpCenterDoc, da as HelpCenterProps, db as HexInput, dc as HistogramBin, dd as HistogramChart, de as HistogramChartProps, df as Hsv, dg as INPUT_BASE, dh as INPUT_SIZES, di as IconButton, dj as IconButtonClassesOptions, dk as IconButtonProps, dl as IconPicker, dm as IconPickerOption, dn as IconPickerProps, dp as IconRail, dq as IconRailButton, dr as IconRailButtonProps, ds as IconRailLabels, dt as IconRailLabelsShown, du as IconRailOrientation, dv as IconRailProps, dw as ImageFocusPoint, dx as ImageFocusPointProps, dy as Inline, dz as InlineProps, dA as Input, dB as InputNumber, dC as InputNumberProps, dD as InputProps, dE as InputSize, dF as Justify, dG as Kanban, dH as KanbanColumn, dI as KanbanProps, dJ as Kbd, dK as KbdProps, dL as KbdSize, dM as KbdTone, dN as Label, dO as LabelClassesOptions, dP as LabelProps, dQ as LadderScale, dR as LanguagePanel, dS as LanguagePanelProps, dT as LanguageSelect, dU as LanguageSelectProps, dV as LinearScale, dW as LinkFilter, dX as LinkFilterField, dY as LinkKindChoice, dZ as LinkOption, d_ as LinkOptionGroup, d$ as LinkPicker, e0 as LinkPickerFieldProps, e1 as LinkPickerProps, e2 as LinkPickerWindowProps, e3 as LinkRules, e4 as LinkTarget, e5 as ListDrop, e6 as ListFooter, e7 as ListLoadError, e8 as ListLoadErrorProps, e9 as ListMove, ea as ListRow, eb as ListRowProps, ec as LoadingSpinner, ed as LoadingSpinnerProps, ee as MAX_FRACTION_DIGITS, ef as MENU_MAX_HEIGHT, eg as MOD, eh as MOTION, ei as MOTION_DURATIONS, ej as Markdown, ej as MarkdownLite, ek as MarkdownLiteProps, ek as MarkdownProps, el as MediaUploadField, em as MediaUploadFieldProps, en as MediaUploadGrid, eo as MediaUploadGridItem, ep as MediaUploadGridProps, eq as MenuPos, er as Meter, es as MeterProps, et as MetricBar, eu as MetricBarProps, ev as Milestone, ew as MilestoneKind, ex as MilestoneTimeline, ey as MilestoneTimelineProps, ez as MotionSpeed, eA as NATIVE_MENU_ATTR, eB as NEXT_CHUNK_PATH_PREFIX, eC as NativeSelect, eD as NiceAxis, eE as NumericKeypad, eF as NumericKeypadProps, eG as OVERLAY_OPEN_EVENT, eH as PLACEHOLDER_INK, eI as POPUP_MAX_WIDTH, eJ as POST_PRODUCTION_STATUSES, eK as PageHeader, eL as PageHeaderProps, eM as Pagination, eN as PaginationProps, eO as PaperclipGlyph, eP as Paragraph, eQ as ParagraphProps, eR as PieChart, eS as PieChartProps, eT as PieSegment, eU as PlotGeometry, eV as Point, eW as Popover, eX as PopoverAlign, eY as PopoverProps, eZ as PopoverRenderProps, e_ as PopoverSide, e$ as PopupMenu, f0 as PopupMenuDivider, f1 as PopupMenuItem, f2 as PopupMenuItemProps, f3 as PopupMenuLabel, f4 as PopupMenuProps, f5 as PopupSubmenu, f6 as PopupSubmenuProps, f7 as PortalBrandingContextValue, f8 as PortalBrandingProvider, f9 as PortalBrandingProviderProps, fa as ProductionTimeline, fb as ProductionTimelineProps, fc as ProductionTimelineSnapshot, fd as ProgressItem, fe as PublicPortal, ff as PublicPortalBranding, fg as RADAR_SERIES_CAP, fh as RADIUS_ROLES, fi as ROW_HEIGHTS, fj as RadarAxis, fk as RadarChart, fl as RadarChartProps, fm as RadarSeries, fn as RadialBarChart, fo as RadialBarChartProps, fp as RadialBarRow, fq as Radio, fr as RadioGroup, fs as RadioGroupOption, ft as RadioGroupOrientation, fu as RadioGroupProps, fv as RadioProps, fw as RadiusRole, fx as Range, fy as RangeChart, fz as RangeChartProps, fA as RangeRow, fB as RankedBars, fC as RankedBarsProps, fD as RankedBarsRow, fE as ResizeHandle, fF as ResizeHandleOrientation, fG as ResizeHandleProps, fH as ResizeHandleSide, fI as ResizeHandleStackSide, fJ as ResolvedPortalBrandAsset, fK as Result, fL as ResultProps, fM as ResultStatus, fN as RevealDirection, fO as SCATTER_SERIES_CAP, fP as SERIES_SLOT_COUNT, fQ as SERIES_VARS, fR as SHELL_LANGUAGE_STORAGE_KEY, fS as SHIFT, fT as SPACING_ROLES, fU as SPACING_SCALE, fV as STAGES, fW as STALE_CHUNK_RELOAD_COOLDOWN_MS, fX as STALE_CHUNK_RELOAD_KEY, fY as STATUS_VARS, fZ as SankeyChart, f_ as SankeyChartProps, f$ as SankeyLink, g0 as SankeyNode, g1 as ScatterChart, g2 as ScatterChartProps, g3 as ScatterPoint, g4 as ScatterSeries, g5 as SearchListRoute, g6 as SearchProvider, g7 as SearchQuickAction, g8 as SearchResponse, g9 as SearchResult, ga as SearchableItem, gb as SearchableOption, gc as SearchableOptionGroup, gd as SearchableSelect, ge as SearchableSelectBaseProps, gf as SearchableSelectMultipleProps, gg as SearchableSelectProps, gh as Segmented, gi as SegmentedOption, gj as SegmentedProps, gk as SegmentedSize, gl as Select, gm as SelectBaseProps, gn as SelectFooterAction, go as SelectItem, gp as SelectMultipleProps, gq as SelectOption, gr as SelectOptionGroup, gs as SelectProps, gt as SemanticGroup, gu as SeriesSlots, gv as SettingRow, gw as SettingRowProps, gx as SeverityTone, gy as ShellContextKind, gz as ShellContextTarget, gA as ShellLanguage, gB as ShellLanguageProvider, gC as ShellLanguageState, gD as ShellPrefsAdapter, gE as ShellPrefsProvider, gF as Side, gG as SidebarActionButton, gH as SidebarActionButtonProps, gI as SidebarGroupLabel, gJ as SidebarGroupLabelProps, gK as SidebarLayout, gL as SidebarLayoutProps, gM as SidebarNavGroup, gN as SidebarNavGroupProps, gO as SidebarNavItem, gP as SidebarNavItemProps, gQ as SidesEachToggle, gR as SidesInput, gS as SidesInputProps, gT as SidesValue, gU as Skeleton, gV as SkeletonProps, gW as SkeletonVariant, gX as Slider, gY as SliderGroup, gZ as SliderProps, g_ as SliderSize, g$ as Snippet, h0 as SnippetProps, h1 as SnippetSize, h2 as SnippetVariant, h3 as SortableList, h4 as SortableListProps, h5 as SortableListSpacing, h6 as SpacingRole, h7 as SpacingStep, h8 as Sparkline, h9 as SparklineProps, ha as SpinnerRing, hb as SpinnerRingProps, hc as SplitButton, hd as SplitButtonProps, he as SplitButtonVariant, hf as Stack, hg as StackProps, hh as StaleChunkReloadOptions, hi as StatCard, hj as StatCardProps, hk as StatTile, hl as StatTileProps, hm as Statistic, hn as StatisticProps, ho as StatisticSize, hp as StatisticTone, hq as StatusBadge, hr as StatusBadgeProvider, hs as StatusEmphasis, ht as StepChain, hu as StepChainItem, hv as StepChainItemProps, hw as StepChainProps, hx as StepChainStatus, hy as StepItem, hz as Stepper, hA as StepperProps, hB as StrokeVariant, hC as SunburstChart, hD as SunburstChartProps, hE as SunburstNode, hF as Switch, hG as SwitchProps, hH as SwitchSize, hI as TYPE_SCALE, hJ as TabItem, hK as Tabs, hL as TabsProps, hM as TagInput, hN as TagInputOption, hO as TagInputProps, hP as TagInputTone, hQ as Text, hR as TextLinkField, hS as TextLinkFieldProps, hT as TextProps, hU as TextSize, hV as TextTone, hW as TextToolbar, hX as TextToolbarAlign, hY as TextToolbarCase, hZ as TextToolbarMark, h_ as TextToolbarProps, h$ as TextWeight, i0 as Textarea, i1 as TextareaProps, i2 as Theme, i3 as TileButton, i4 as TileButtonProps, i5 as TileSize, i6 as TimeAgo, i7 as TimeAgoProps, i8 as TimePicker, i9 as TimePickerProps, ia as TimeSeriesChart, ib as TimeSeriesChartProps, ic as TimeSeriesSeries, id as TimelineMarker, ie as TimelineMarkerKind, ig as TimelineReport, ih as TimelineScrubProgress, ii as TimelineTrack, ij as TimelineTrackItem, ik as TimelineTrackKind, il as TimelineTrackPending, im as TimelineTrackPhase, io as TimelineTrackPlayback, ip as TimelineTrackProps, iq as TimelineTrackThumb, ir as Title, is as TitleLevel, it as TitleProps, iu as ToastAction, iv as ToastCloseReason, iw as ToastOptions, ix as ToastPlacement, iy as ToastUndoableOptions, iz as Tooltip, iA as TooltipProps, iB as TopNav, iC as TopNavItem, iD as TopNavProps, iE as TransferProgress, iF as TransferProgressProps, iG as TransferProgressState, iH as Tree, iI as TreeDrop, iJ as TreeEmptySlot, iK as TreeEmptySlotProps, iL as TreeGroup, iM as TreeGroupLabel, iN as TreeGroupLabelProps, iO as TreeGroupProps, iP as TreeMove, iQ as TreeProps, iR as TreeRow, iS as TreeRowProps, iT as TreeSeam, iU as TreeSeamProps, iV as TreemapChart, iW as TreemapChartProps, iX as TreemapItem, iY as TreemapTile, iZ as TypeStep, i_ as UNDOABLE_MS, i$ as UseAppUpdateOptions, j0 as UseContextMenu, j1 as UseProductionTimelineOpts, j2 as VERSION, j3 as VITE_PRELOAD_ERROR_EVENT, j4 as WaterfallChart, j5 as WaterfallChartProps, j6 as WaterfallStep, j7 as WidthsBar, j8 as WidthsBarProps, j9 as ZLayer, ja as Z_LAYERS, jb as angleScale, jc as appendKey, jd as applyCorners, je as applyIconSet, jf as applyThemePrefs, jg as arcPath, jh as areaBetween, ji as areaFrom, jj as assignSeriesSlots, jk as autoHighlightIndex, jl as backspace, jm as bandScale, jn as binValues, jo as borderSides, jp as borderStartEach, jq as budgetState, jr as bumpPath, js as buttonClasses, jt as calcOverall, ju as calcReportOverall, jv as colorFill, jw as colorSwatchClasses, jx as columnSharesWidths, jy as confirm, jz as confirmDestructive, jA as cornersFor, jB as curvePath, jC as dashFor, jD as describeContextTarget, jE as dismissPopups, jF as fillFor, jG as fillId, jH as fmtSliderDate, jI as fromDateKey, jJ as glassStyle, jK as glowId, jL as groundId, jM as groupColors, jN as hexToHsv, jO as highlightOpacity, jP as hsvToHex, jQ as iconButtonClasses, jR as inputClasses, jS as installStaleChunkReload, jT as isMac, jU as isSeverityTone, jV as isSpacingStep, jW as isStaleChunkError, jX as keepsNativeMenu, jY as labelClasses, jZ as ladderScale, j_ as languageSelectWidth, j$ as leavesContextMenuAlone, k0 as linearPath, k1 as linearScale, k2 as logScale, k3 as maskId, k4 as matchShellLanguage, k5 as mediaFileName, k6 as monotonePath, k7 as niceAxis, k8 as niceMax, k9 as openGlobalSearch, ka as parseHexColor, kb as polygonPoints, kc as popupBounds, kd as prompt, ke as pushRecentSearch, kf as radiusScale, kg as readSavedShellLanguage, kh as registerModalEscapeInterceptor, ki as resolveBrandMarkTreatment, kj as resolveColumnShares, kk as resolveColumnWidths, kl as resolveCorners, km as resolvePortalBrandAsset, kn as resolveSeriesColor, ko as resolveSeriesColorWithin, kp as resolveShellLanguage, kq as resolveTheme, kr as sanitizeRecentSearches, ks as saveShellLanguage, kt as seriesColor, ku as severityOf, kv as sidesStartEach, kw as solidSurfaceStyle, kx as splinePath, ky as squarify, kz as stagger, kA as stepPath, kB as tabButtonId, kC as tabPanelId, kD as textToolbarRows, kE as textToolbarWindowColumns, kF as toDateKey, kG as toDayMs, kH as toISODate, kI as toast, kJ as toggleSeriesSlot, kK as useAppUpdate, kL as useClickOutside, kM as useConfirm, kN as useContextMenu, kO as useDebouncedValue, kP as useDropdownPosition, kQ as useFocusTrap, kR as useHighlight, kS as useIsMobile, kT as useLocalStoragePrefs, kU as usePlotWidth, kV as usePortalBranding, kW as useProductionTimeline, kX as useScrollLock, kY as useShellLanguage, kZ as useShellPrefs, k_ as useStatusLabel, k$ as useTheme, l0 as useTransferProgress } from './index-BI54lOAz.js';
|
|
1
|
+
import { S as SearchConfig, C as ColumnDef, a as SortState, P as PaginatedResponse } from './index-C6kh5wXj.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_LINE_STYLES, G as BORDER_WIDTHS, H as BackgroundVariant, I as BandScale, J as Banner, K as BannerEmphasis, L as BannerProps, M as BannerTone, N as BorderInput, O as BorderInputProps, Q as BorderLineStyle, R as BorderRole, T as BorderValue, U as BoxPlotBox, V as BoxPlotChart, W as BoxPlotChartProps, X as BrandAssetEditor, Y as BrandAssetEditorProps, Z as BrandAssetPreview, _ as BrandMark, $ as BrandMarkProps, a0 as BrandMarkSlot, a1 as BrandMarkSurface, a2 as BrandMarkTreatment, a3 as BreadcrumbItem, a4 as Breadcrumbs, a5 as BreadcrumbsProps, a6 as BudgetBar, a7 as BudgetBarProps, a8 as BudgetState, a9 as Button, aa as ButtonClassesOptions, ab as ButtonProps, ac as ButtonSize, ad as ButtonVariant, ae as CHART_INK, af as CMD_A, ag as CMD_DOT, ah as CMD_ENTER, ai as CMD_K, aj as CMD_S, ak as COLUMN_COUNT_MAX, al as COLUMN_COUNT_WIDTHS, am as COLUMN_SHARES_EQUAL, an as COLUMN_SHARE_MIN, ao as CONTROL_HEIGHTS, ap as CORNERS, aq as CORNERS_FOR_THEME, ar as Calendar, as as CalendarMode, at as CalendarProps, au as Candle, av as CandlestickChart, aw as CandlestickChartProps, ax as Card, ay as CardPadding, az as CardProps, aA as CardTone, aB as CartesianPlot, aC as CartesianPlotProps, aD as CellStyle, aE as ChartBackgroundVariant, aF as ChartBrush, aG as ChartBrushProps, aH as ChartCurve, aI as ChartDefs, aJ as ChartDefsProps, aK as ChartDot, aL as ChartDotProps, aM as ChartDotVariant, aN as ChartFillVariant, aO as ChartFrame, aP as ChartFrameProps, aQ as ChartHighlightProvider, aR as ChartLegendEntry, aS as ChartLegendSwatch, aT as ChartRange, aU as ChartReferenceLine, aV as ChartRevealDirection, aW as ChartSkeleton, aX as ChartSkeletonProps, aY as ChartStatusTone, aZ as ChartStrokeVariant, a_ as ChartTooltip, a$ as ChartTooltipProps, b0 as ChartTooltipRow, b1 as ChatTemplate, b2 as Checkbox, b3 as CheckboxProps, b4 as CheckoutTemplate, b5 as ChordChart, b6 as ChordChartProps, b7 as ColorPicker, b8 as ColorPickerPanel, b9 as ColorPickerPanelProps, ba as ColorPickerProps, bb as ColorPreset, bc as ColorSwatch, bd as ColorSwatchProps, be as ColorSwatchSize, bf as ColoredBadge, bg as ColoredBadgeProps, bh as ColumnChart, bi as ColumnChartProps, bj as ColumnSeries, bk as ColumnShares, bl as ComposerAttachments, bm as ComposerAttachmentsProps, bn as ConfirmProvider, bo as ContainerFillChart, bp as ContainerFillChartProps, bq as ContainerFillItem, br as ContextMenu, bs as ContextMenuPoint, bt as ContextMenuProps, bu as ContextMenuState, bv as ControlSize, bw as CornerOption, bx as Corners, by as CornersInput, bz as CornersInputProps, bA as CountBadge, bB as CountBadgeProps, bC as CountBadgeTone, bD as Curve, bE as DAY_MS, bF as DashboardTemplate, bG as DataTable, bH as DataTableColumn, bI as DataTableColumnGroup, bJ as DataTableHeader, bK as DataTablePage, bL as DataTableProps, bM as DataTableRowLink, bN as DataTableRowProps, bO as DatePicker, bP as DatePickerProps, bQ as DateRangePicker, bR as DateRangePickerProps, bS as DateTimePicker, bT as DateTimePickerProps, bU as DescriptionColumns, bV as DescriptionItem, bW as DescriptionList, bX as DescriptionListProps, bY as Dialog, bZ as DialogProps, b_ as DialogSize, b$ as DisplayChipItem, c0 as DisplayChips, c1 as DisplayChipsProps, c2 as Divider, c3 as DividerProps, c4 as DividerSpacing, c5 as Drawer, c6 as DrawerProps, c7 as DrawerSide, c8 as DrawerSize, c9 as DropdownMenu, ca as DropdownMenuAlign, cb as DropdownMenuCheckboxItem, cc as DropdownMenuDividerItem, cd as DropdownMenuEntry, ce as DropdownMenuFooterApi, cf as DropdownMenuItem, cg as DropdownMenuLabelItem, ch as DropdownMenuLinkItem, ci as DropdownMenuProps, cj as DropdownMenuRadioItem, ck as DropdownMenuSide, cl as DropdownMenuStatusItem, cm as DropdownPositionOptions, cn as ELEVATION_LEVELS, co as ENGLISH, cp as ENTER, cq as EditableGrid, cr as EditableGridProps, cs as ElevationLevel, ct as EmailTemplate, cu as EmptyState, cv as EmptyStateProps, cw as EmptyValue, cx as EmptyValueProps, cy as ErrorBoundary, cz as ErrorBoundaryProps, cA as ErrorPage, cB as ErrorPageProps, cC as FONT_WEIGHTS, cD as FileIntake, cE as FilePicker, cF as FilePickerProps, cG as FillVariant, cH as FloatingBar, cI as FloatingBarAlign, cJ as FloatingBarProps, cK as FloatingBarSide, cL as FontWeightRole, cM as FormError, cN as FormErrorSummary, cO as FormErrorSummaryProps, cP as FormField, cQ as FormFieldProps, cR as FormLayoutPage, cS as FunnelChart, cT as FunnelChartProps, cU as FunnelStage, cV as GLASS_DIVIDER, cW as GLASS_INPUT_BG, cX as GROUP_COLORS, cY as GROUP_COLORS_SOLID, cZ as GalleryTemplate, c_ as Gap, c$ as GlassOptions, d0 as GlobalSearch, d1 as GlobalSearchProps, d2 as Grid, d3 as GridCols, d4 as GridColumn, d5 as GridProps, d6 as HeatmapChart, d7 as HeatmapChartProps, d8 as HelpCenter, d9 as HelpCenterDoc, da as HelpCenterProps, db as HexInput, dc as HistogramBin, dd as HistogramChart, de as HistogramChartProps, df as Hsv, dg as INPUT_BASE, dh as INPUT_SIZES, di as IconButton, dj as IconButtonClassesOptions, dk as IconButtonProps, dl as IconPicker, dm as IconPickerOption, dn as IconPickerProps, dp as IconRail, dq as IconRailButton, dr as IconRailButtonProps, ds as IconRailLabels, dt as IconRailLabelsShown, du as IconRailOrientation, dv as IconRailProps, dw as ImageFocusPoint, dx as ImageFocusPointProps, dy as Inline, dz as InlineProps, dA as Input, dB as InputNumber, dC as InputNumberProps, dD as InputProps, dE as InputSize, dF as Justify, dG as Kanban, dH as KanbanColumn, dI as KanbanProps, dJ as Kbd, dK as KbdProps, dL as KbdSize, dM as KbdTone, dN as Label, dO as LabelClassesOptions, dP as LabelProps, dQ as LadderScale, dR as LanguagePanel, dS as LanguagePanelProps, dT as LanguageSelect, dU as LanguageSelectProps, dV as LinearScale, dW as LinkFilter, dX as LinkFilterField, dY as LinkKindChoice, dZ as LinkOption, d_ as LinkOptionGroup, d$ as LinkPicker, e0 as LinkPickerFieldProps, e1 as LinkPickerProps, e2 as LinkPickerWindowProps, e3 as LinkRules, e4 as LinkTarget, e5 as ListDrop, e6 as ListFooter, e7 as ListLoadError, e8 as ListLoadErrorProps, e9 as ListMove, ea as ListRow, eb as ListRowProps, ec as LoadingSpinner, ed as LoadingSpinnerProps, ee as MAX_FRACTION_DIGITS, ef as MENU_MAX_HEIGHT, eg as MOD, eh as MOTION, ei as MOTION_DURATIONS, ej as Markdown, ej as MarkdownLite, ek as MarkdownLiteProps, ek as MarkdownProps, el as MediaUploadField, em as MediaUploadFieldProps, en as MediaUploadGrid, eo as MediaUploadGridItem, ep as MediaUploadGridProps, eq as MenuPos, er as Meter, es as MeterProps, et as MetricBar, eu as MetricBarProps, ev as Milestone, ew as MilestoneKind, ex as MilestoneTimeline, ey as MilestoneTimelineProps, ez as MotionSpeed, eA as NATIVE_MENU_ATTR, eB as NEXT_CHUNK_PATH_PREFIX, eC as NativeSelect, eD as NiceAxis, eE as NumericKeypad, eF as NumericKeypadProps, eG as OVERLAY_OPEN_EVENT, eH as PLACEHOLDER_INK, eI as POPUP_MAX_WIDTH, eJ as POST_PRODUCTION_STATUSES, eK as PageHeader, eL as PageHeaderProps, eM as Pagination, eN as PaginationProps, eO as PaperclipGlyph, eP as Paragraph, eQ as ParagraphProps, eR as PieChart, eS as PieChartProps, eT as PieSegment, eU as PlotGeometry, eV as Point, eW as Popover, eX as PopoverAlign, eY as PopoverProps, eZ as PopoverRenderProps, e_ as PopoverSide, e$ as PopupMenu, f0 as PopupMenuDivider, f1 as PopupMenuItem, f2 as PopupMenuItemProps, f3 as PopupMenuLabel, f4 as PopupMenuProps, f5 as PopupSubmenu, f6 as PopupSubmenuProps, f7 as PortalBrandingContextValue, f8 as PortalBrandingProvider, f9 as PortalBrandingProviderProps, fa as ProductionTimeline, fb as ProductionTimelineProps, fc as ProductionTimelineSnapshot, fd as ProgressItem, fe as PublicPortal, ff as PublicPortalBranding, fg as RADAR_SERIES_CAP, fh as RADIUS_ROLES, fi as ROW_HEIGHTS, fj as RadarAxis, fk as RadarChart, fl as RadarChartProps, fm as RadarSeries, fn as RadialBarChart, fo as RadialBarChartProps, fp as RadialBarRow, fq as Radio, fr as RadioGroup, fs as RadioGroupOption, ft as RadioGroupOrientation, fu as RadioGroupProps, fv as RadioProps, fw as RadiusRole, fx as Range, fy as RangeChart, fz as RangeChartProps, fA as RangeRow, fB as RankedBars, fC as RankedBarsProps, fD as RankedBarsRow, fE as ResizeHandle, fF as ResizeHandleOrientation, fG as ResizeHandleProps, fH as ResizeHandleSide, fI as ResizeHandleStackSide, fJ as ResolvedPortalBrandAsset, fK as Result, fL as ResultProps, fM as ResultStatus, fN as RevealDirection, fO as SCATTER_SERIES_CAP, fP as SERIES_SLOT_COUNT, fQ as SERIES_VARS, fR as SHELL_LANGUAGE_STORAGE_KEY, fS as SHIFT, fT as SPACING_ROLES, fU as SPACING_SCALE, fV as STAGES, fW as STALE_CHUNK_RELOAD_COOLDOWN_MS, fX as STALE_CHUNK_RELOAD_KEY, fY as STATUS_VARS, fZ as SankeyChart, f_ as SankeyChartProps, f$ as SankeyLink, g0 as SankeyNode, g1 as ScatterChart, g2 as ScatterChartProps, g3 as ScatterPoint, g4 as ScatterSeries, g5 as SearchListRoute, g6 as SearchProvider, g7 as SearchQuickAction, g8 as SearchResponse, g9 as SearchResult, ga as SearchableItem, gb as SearchableOption, gc as SearchableOptionGroup, gd as SearchableSelect, ge as SearchableSelectBaseProps, gf as SearchableSelectMultipleProps, gg as SearchableSelectProps, gh as Segmented, gi as SegmentedOption, gj as SegmentedProps, gk as SegmentedSize, gl as Select, gm as SelectBaseProps, gn as SelectFooterAction, go as SelectItem, gp as SelectMultipleProps, gq as SelectOption, gr as SelectOptionGroup, gs as SelectProps, gt as SemanticGroup, gu as SeriesSlots, gv as SettingRow, gw as SettingRowProps, gx as SeverityTone, gy as ShellContextKind, gz as ShellContextTarget, gA as ShellLanguage, gB as ShellLanguageProvider, gC as ShellLanguageState, gD as ShellPrefsAdapter, gE as ShellPrefsProvider, gF as Side, gG as SidebarActionButton, gH as SidebarActionButtonProps, gI as SidebarGroupLabel, gJ as SidebarGroupLabelProps, gK as SidebarLayout, gL as SidebarLayoutProps, gM as SidebarNavGroup, gN as SidebarNavGroupProps, gO as SidebarNavItem, gP as SidebarNavItemProps, gQ as SidesEachToggle, gR as SidesInput, gS as SidesInputProps, gT as SidesValue, gU as Skeleton, gV as SkeletonProps, gW as SkeletonVariant, gX as Slider, gY as SliderGroup, gZ as SliderProps, g_ as SliderSize, g$ as Snippet, h0 as SnippetProps, h1 as SnippetSize, h2 as SnippetVariant, h3 as SortableList, h4 as SortableListProps, h5 as SortableListSpacing, h6 as SpacingRole, h7 as SpacingStep, h8 as Sparkline, h9 as SparklineProps, ha as SpinnerRing, hb as SpinnerRingProps, hc as SplitButton, hd as SplitButtonProps, he as SplitButtonVariant, hf as Stack, hg as StackProps, hh as StaleChunkReloadOptions, hi as StatCard, hj as StatCardProps, hk as StatTile, hl as StatTileProps, hm as Statistic, hn as StatisticProps, ho as StatisticSize, hp as StatisticTone, hq as StatusBadge, hr as StatusBadgeProvider, hs as StatusEmphasis, ht as StepChain, hu as StepChainItem, hv as StepChainItemProps, hw as StepChainProps, hx as StepChainStatus, hy as StepItem, hz as Stepper, hA as StepperProps, hB as StrokeVariant, hC as SunburstChart, hD as SunburstChartProps, hE as SunburstNode, hF as Switch, hG as SwitchProps, hH as SwitchSize, hI as TYPE_SCALE, hJ as TabItem, hK as Tabs, hL as TabsProps, hM as TagInput, hN as TagInputOption, hO as TagInputProps, hP as TagInputTone, hQ as Text, hR as TextLinkField, hS as TextLinkFieldProps, hT as TextProps, hU as TextSize, hV as TextTone, hW as TextToolbar, hX as TextToolbarAlign, hY as TextToolbarCase, hZ as TextToolbarMark, h_ as TextToolbarProps, h$ as TextWeight, i0 as Textarea, i1 as TextareaProps, i2 as Theme, i3 as TileButton, i4 as TileButtonProps, i5 as TileSize, i6 as TimeAgo, i7 as TimeAgoProps, i8 as TimePicker, i9 as TimePickerProps, ia as TimeSeriesChart, ib as TimeSeriesChartProps, ic as TimeSeriesSeries, id as TimelineMarker, ie as TimelineMarkerKind, ig as TimelineReport, ih as TimelineScrubProgress, ii as TimelineTrack, ij as TimelineTrackItem, ik as TimelineTrackKind, il as TimelineTrackPending, im as TimelineTrackPhase, io as TimelineTrackPlayback, ip as TimelineTrackProps, iq as TimelineTrackThumb, ir as Title, is as TitleLevel, it as TitleProps, iu as ToastAction, iv as ToastCloseReason, iw as ToastOptions, ix as ToastPlacement, iy as ToastUndoableOptions, iz as Tooltip, iA as TooltipProps, iB as TopNav, iC as TopNavItem, iD as TopNavProps, iE as TransferProgress, iF as TransferProgressProps, iG as TransferProgressState, iH as Tree, iI as TreeDrop, iJ as TreeEmptySlot, iK as TreeEmptySlotProps, iL as TreeGroup, iM as TreeGroupLabel, iN as TreeGroupLabelProps, iO as TreeGroupProps, iP as TreeMove, iQ as TreeProps, iR as TreeRow, iS as TreeRowProps, iT as TreeSeam, iU as TreeSeamProps, iV as TreemapChart, iW as TreemapChartProps, iX as TreemapItem, iY as TreemapTile, iZ as TypeStep, i_ as UNDOABLE_MS, i$ as UseAppUpdateOptions, j0 as UseContextMenu, j1 as UseProductionTimelineOpts, j2 as VERSION, j3 as VITE_PRELOAD_ERROR_EVENT, j4 as WaterfallChart, j5 as WaterfallChartProps, j6 as WaterfallStep, j7 as WidthsBar, j8 as WidthsBarProps, j9 as ZLayer, ja as Z_LAYERS, jb as angleScale, jc as appendKey, jd as applyCorners, je as applyIconSet, jf as applyThemePrefs, jg as arcPath, jh as areaBetween, ji as areaFrom, jj as assignSeriesSlots, jk as autoHighlightIndex, jl as backspace, jm as bandScale, jn as binValues, jo as borderSides, jp as borderStartEach, jq as budgetState, jr as bumpPath, js as buttonClasses, jt as calcOverall, ju as calcReportOverall, jv as colorFill, jw as colorSwatchClasses, jx as columnSharesWidths, jy as confirm, jz as confirmDestructive, jA as cornersFor, jB as curvePath, jC as dashFor, jD as describeContextTarget, jE as dismissPopups, jF as fillFor, jG as fillId, jH as fmtSliderDate, jI as fromDateKey, jJ as glassStyle, jK as glowId, jL as groundId, jM as groupColors, jN as hexToHsv, jO as highlightOpacity, jP as hsvToHex, jQ as iconButtonClasses, jR as inputClasses, jS as installStaleChunkReload, jT as isMac, jU as isSeverityTone, jV as isSpacingStep, jW as isStaleChunkError, jX as keepsNativeMenu, jY as labelClasses, jZ as ladderScale, j_ as languageSelectWidth, j$ as leavesContextMenuAlone, k0 as linearPath, k1 as linearScale, k2 as logScale, k3 as maskId, k4 as matchShellLanguage, k5 as mediaFileName, k6 as monotonePath, k7 as niceAxis, k8 as niceMax, k9 as openGlobalSearch, ka as parseHexColor, kb as polygonPoints, kc as popupBounds, kd as prompt, ke as pushRecentSearch, kf as radiusScale, kg as readSavedShellLanguage, kh as registerModalEscapeInterceptor, ki as resolveBrandMarkTreatment, kj as resolveColumnShares, kk as resolveColumnWidths, kl as resolveCorners, km as resolvePortalBrandAsset, kn as resolveSeriesColor, ko as resolveSeriesColorWithin, kp as resolveShellLanguage, kq as resolveTheme, kr as sanitizeRecentSearches, ks as saveShellLanguage, kt as seriesColor, ku as severityOf, kv as sidesStartEach, kw as solidSurfaceStyle, kx as splinePath, ky as squarify, kz as stagger, kA as stepPath, kB as tabButtonId, kC as tabPanelId, kD as textToolbarRows, kE as textToolbarWindowColumns, kF as toDateKey, kG as toDayMs, kH as toISODate, kI as toast, kJ as toggleSeriesSlot, kK as useAppUpdate, kL as useClickOutside, kM as useConfirm, kN as useContextMenu, kO as useDebouncedValue, kP as useDropdownPosition, kQ as useFocusTrap, kR as useHighlight, kS as useIsMobile, kT as useLocalStoragePrefs, kU as usePlotWidth, kV as usePortalBranding, kW as useProductionTimeline, kX as useScrollLock, kY as useShellLanguage, kZ as useShellPrefs, k_ as useStatusLabel, k$ as useTheme, l0 as useTransferProgress } from './index-C6kh5wXj.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_SET_FOR_THEME, Icon, IconName, IconProps, IconTone, THEME_ICON_SETS, ThemeIconSet, iconSetFor, isIconName, loadIconSet } 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-IyW-xYGB.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-IB8gUtul.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';
|