efficient-shell 7.61.0 → 7.63.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/README.md +2 -1
- package/dist/{Browser-G2JFFX3S.js → Browser-2EWFLK6R.js} +13 -13
- package/dist/Calculator-XECRZGNK.js +29 -0
- package/dist/ConfirmDialog-IZ3NJINY.js +1 -0
- package/dist/{CurrencyConverter-6EKGFJBO.js → CurrencyConverter-RT5WIUCM.js} +9 -9
- package/dist/{Documents-4FP54PLS.js → Documents-AEYU2PZT.js} +7 -7
- package/dist/{Files-ZCQQ5TMI.js → Files-FHHYHLPN.js} +80 -80
- package/dist/{Notepad-BY5XAWFD.js → Notepad-OVG7P57T.js} +11 -11
- package/dist/PdfViewer-EVJRMYTK.js +1 -0
- package/dist/{PomodoroTimer-GXYZ2SJO.js → PomodoroTimer-S5I57YDE.js} +64 -64
- package/dist/{Preview-RFBGMX6O.js → Preview-4HUSONTN.js} +26 -26
- package/dist/Sidebar-7BYOIUQK.js +44 -0
- package/dist/{Spreadsheet-SJIYCTON.js → Spreadsheet-QBMJD2AP.js} +13 -13
- package/dist/{Stock-PWUI6WGP.js → Stock-APMSVB5J.js} +3 -3
- package/dist/{Weather-33OWOCGM.js → Weather-PHUSTWBQ.js} +17 -17
- package/dist/{WorldClock-3OKI4M2W.js → WorldClock-WQY6DN7N.js} +4 -4
- package/dist/ai/index.js +15 -15
- package/dist/apps/index.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/{chunk-3TQNOXBC.js → chunk-2RPTKZSC.js} +4 -4
- package/dist/{chunk-6JB7DBBQ.js → chunk-3G5E2R7F.js} +65 -65
- package/dist/{chunk-VTEZ4V6B.js → chunk-3NRCLNCH.js} +13 -13
- package/dist/{chunk-RXULW43T.js → chunk-5THIN3JV.js} +29 -29
- package/dist/{chunk-KH75SE7M.js → chunk-76DRQSJM.js} +2 -1
- package/dist/{chunk-JQEAGIUK.js → chunk-AAHMUDUP.js} +2 -2
- package/dist/{chunk-F6BEA7V7.js → chunk-BJ47M4AR.js} +1 -1
- package/dist/{chunk-O4LQMA4L.js → chunk-BVETBHYF.js} +1 -1
- package/dist/{chunk-OMDIZJGV.js → chunk-C6IR6W7P.js} +6 -6
- package/dist/{chunk-UQSYTHIV.js → chunk-CCWPP3YK.js} +1 -1
- package/dist/chunk-CU3GY5Y2.js +1 -0
- package/dist/{chunk-LLT243LM.js → chunk-I33KGECT.js} +4 -4
- package/dist/{chunk-L4646RA4.js → chunk-JDS2IFBP.js} +1 -1
- package/dist/chunk-K3WWKV3D.js +1 -0
- package/dist/{chunk-OWWIRUAW.js → chunk-KYBZBZEP.js} +8 -8
- package/dist/{chunk-DSSLOQDW.js → chunk-LHHIRTEG.js} +1 -1
- package/dist/{chunk-MTBMAIFM.js → chunk-LW5XF5JD.js} +1 -1
- package/dist/{chunk-MVDBVNIJ.js → chunk-MCHZT2FL.js} +566 -560
- package/dist/{chunk-UBPBDZZ7.js → chunk-MHGVLZYL.js} +1 -1
- package/dist/{chunk-7V63XT4O.js → chunk-OKPYIQ2Q.js} +10 -10
- package/dist/{chunk-5XT7DLHL.js → chunk-RUBR4GCW.js} +7 -7
- package/dist/{chunk-OBEI75WB.js → chunk-RWIFSTEK.js} +1 -1
- package/dist/{chunk-BEDROWTG.js → chunk-SMFD6EID.js} +2 -2
- package/dist/{chunk-ZG423VCB.js → chunk-SYFDOMTA.js} +1 -1
- package/dist/{chunk-FCXXSKFR.js → chunk-TJR6B3YD.js} +1 -1
- package/dist/{chunk-S2PS4IOT.js → chunk-TT6QOFWA.js} +1 -1
- package/dist/{chunk-EIIGM74J.js → chunk-UCZFCKKS.js} +15 -15
- package/dist/{chunk-DZ5QTET2.js → chunk-UNBLH4EQ.js} +18 -18
- package/dist/{chunk-QFH2UQJS.js → chunk-UYKGVCZO.js} +1 -1
- package/dist/chunk-W7W4JMOT.js +1 -0
- package/dist/{chunk-5PXEPQRQ.js → chunk-WPXX6GY2.js} +1 -1
- package/dist/{chunk-RHTH3RQG.js → chunk-YJIG2KT3.js} +11 -11
- package/dist/file-intake/index.js +1 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/{index-Df7KnoGi.d.ts → index-D16PP-U7.d.ts} +76 -11
- package/dist/index.d.ts +3 -3
- package/dist/index.js +137 -137
- 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/markdown/index.js +1 -1
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/{strings-dDZPOlkC.d.ts → strings-mUwozHxH.d.ts} +27 -0
- package/dist/telemetry/index.js +1 -1
- package/dist/ui/index.d.ts +2 -2
- package/dist/ui/index.js +1 -1
- package/dist/ui.css +8 -5
- package/package.json +1 -1
- package/dist/Calculator-5CPQRITG.js +0 -29
- package/dist/ConfirmDialog-ZOQHYUNL.js +0 -1
- package/dist/PdfViewer-MCWSL4ZR.js +0 -1
- package/dist/Sidebar-YJ4YSBTU.js +0 -44
- package/dist/chunk-54M2NPNH.js +0 -1
- package/dist/chunk-HJQAE6SP.js +0 -1
- package/dist/chunk-JZEBE6B6.js +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import{useInsideTooltip as t,Tooltip as e}from"./chunk-RDLWLATO.js";import{useHydrated as r,useBrowserState as n}from"./chunk-D65T4H6J.js";import{Icon as o}from"./chunk-
|
|
2
|
-
return m(A.Provider,{value:t,children:/* @__PURE__ */m(j.Provider,{value:e,children:r})})}function
|
|
3
|
-
return m("span",{className:`${M} px-3 py-0.5 text-xs font-medium ${n}`,children:/* @__PURE__ */m(L,{children:s})})}var
|
|
1
|
+
import{useInsideTooltip as t,Tooltip as e}from"./chunk-RDLWLATO.js";import{useHydrated as r,useBrowserState as n}from"./chunk-D65T4H6J.js";import{Icon as o}from"./chunk-76DRQSJM.js";import{useShellStrings as s}from"./chunk-W7W4JMOT.js";import{createContext as a,useSyncExternalStore as i,useRef as l,useState as c,useContext as u,useCallback as d,useMemo as f}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";var v="(max-width: 767px), (pointer: coarse)",g="(max-width: 767px)";function p(t){return!("undefined"==typeof window||!window.matchMedia)&&window.matchMedia(t).matches}var w=()=>p(v),x=()=>p(g);function b(){return!1}var y=t=>_(v,t),C=t=>_(g,t);function _(t,e){if("undefined"==typeof window||!window.matchMedia)return()=>{};const r=window.matchMedia(t);return r.addEventListener?(r.addEventListener("change",e),()=>r.removeEventListener("change",e)):(r.addListener(e),()=>r.removeListener(e))}function k(){return i(y,w,b)}function N(){return i(C,x,b)}var D="whitespace-nowrap";function L({children:r}){const n=t(),o=l(null),[s,a]=c(!1),i=/* @__PURE__ */m("span",{ref:o,className:"min-w-0 truncate",onMouseEnter:()=>{const t=o.current;a(!!t&&t.scrollWidth>t.clientWidth+1)},children:r});return n?i:/* @__PURE__ */m(e,{content:s?r:null,describe:!1,className:"relative inline-flex min-w-0 max-w-full",children:i})}var M="inline-flex max-w-full items-center whitespace-nowrap rounded-full",S={success:"bg-[var(--status-success-soft)] text-[color:var(--status-success-soft-ink)]",active:"bg-[var(--status-active-soft)] text-[color:var(--status-active-soft-ink)]",queued:"bg-[var(--status-queued-soft)] text-[color:var(--status-queued-soft-ink)]",info:"bg-[var(--status-info-soft)] text-[color:var(--status-info-soft-ink)]",pending:"bg-[var(--status-pending-soft)] text-[color:var(--status-pending-soft-ink)]",warning:"bg-[var(--status-warning-soft)] text-[color:var(--status-warning-soft-ink)]",danger:"bg-[var(--status-danger-soft)] text-[color:var(--status-danger-soft-ink)]",draft:"bg-[var(--status-draft-soft)] text-[color:var(--status-draft-soft-ink)]",neutral:"bg-[var(--status-neutral-soft)] text-[color:var(--status-neutral-soft-ink)]"},E={success:"bg-[var(--status-success-solid)] text-[color:var(--status-on-solid)]",active:"bg-[var(--status-active-solid)] text-[color:var(--status-on-solid)]",queued:"bg-[var(--status-queued-solid)] text-[color:var(--status-on-solid)]",info:"bg-[var(--status-info-solid)] text-[color:var(--status-on-solid)]",pending:"bg-[var(--status-pending-solid)] text-[color:var(--status-on-solid)]",warning:"bg-[var(--status-warning-solid)] text-[color:var(--status-on-solid)]",danger:"bg-[var(--status-danger-solid)] text-[color:var(--status-on-solid)]",draft:"bg-[var(--status-draft-solid)] text-[color:var(--status-on-solid)]",neutral:"bg-[var(--status-neutral-solid)] text-[color:var(--status-on-solid)]"};function T(t,e="subtle"){return"solid"===e?E[t]:S[t]}var A=a({}),j=a(void 0);function I(t){return t.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase())}function F({groups:t,labelFor:e,children:r}){/* @__PURE__ */
|
|
2
|
+
return m(A.Provider,{value:t,children:/* @__PURE__ */m(j.Provider,{value:e,children:r})})}function H(){const t=u(j);return d(e=>t?.(e)??I(e),[t])}function O({status:t,label:e,emphasis:r="subtle"}){const n=T(u(A)[t]??"neutral",r),o=u(j),s=e??o?.(t)??I(t);/* @__PURE__ */
|
|
3
|
+
return m("span",{className:`${M} px-3 py-0.5 text-xs font-medium ${n}`,children:/* @__PURE__ */m(L,{children:s})})}var P={success:"success",error:"error",warning:"warning",info:"info",404:"info",403:"warning",500:"error"},Z={success:"text-green-600 bg-green-100",error:"text-red-600 bg-red-100",warning:"text-amber-600 bg-amber-100",info:"text-blue-600 bg-blue-100"},W={404:t=>t.notFound,403:t=>t.noAccess,500:t=>t.serverError};function z({tone:t}){const e={className:"h-6 w-6",strokeWidth:1.5,"aria-hidden":!0};switch(t){case"success":/* @__PURE__ */
|
|
4
4
|
return m(o,{name:"check",...e});case"error":/* @__PURE__ */
|
|
5
5
|
return m(o,{name:"close",...e});case"warning":/* @__PURE__ */
|
|
6
6
|
return m(o,{name:"error",...e});default:/* @__PURE__ */
|
|
7
|
-
return m(o,{name:"info",...e})}}function
|
|
7
|
+
return m(o,{name:"info",...e})}}function R({status:t="info",title:e,subTitle:r,extra:n,icon:o,children:a,className:i=""}){const l=P[t],c=s().errors;/* @__PURE__ */
|
|
8
8
|
return h("div",{role:"error"===l?"alert":void 0,className:`flex flex-col items-center justify-center px-6 py-12 text-center ${i}`.trim(),children:[
|
|
9
|
-
/* @__PURE__ */m("div",{className:`flex h-14 w-14 items-center justify-center rounded-full ${Z[l]}`,children:o??/* @__PURE__ */m(
|
|
10
|
-
/* @__PURE__ */m("h2",{className:"mt-4 text-lg font-semibold text-gray-900",children:e??
|
|
9
|
+
/* @__PURE__ */m("div",{className:`flex h-14 w-14 items-center justify-center rounded-full ${Z[l]}`,children:o??/* @__PURE__ */m(z,{tone:l})}),
|
|
10
|
+
/* @__PURE__ */m("h2",{className:"mt-4 text-lg font-semibold text-gray-900",children:e??W[t]?.(c)??""}),r&&/* @__PURE__ */m("p",{className:"mt-1 max-w-md text-sm text-gray-500",children:r}),a&&/* @__PURE__ */m("div",{className:"mt-4 w-full max-w-md text-left",children:a}),n&&/* @__PURE__ */m("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-3",children:n})]})}function q({colorClass:t,tone:e,children:r,size:n="sm",capitalize:a=!1,closable:i=!1,onClose:l,closeLabel:c,className:u=""}){const d=t??S[e??"neutral"],f="xs"===n?"px-2 py-0.5 text-3xs":"md"===n?"px-3 py-0.5 text-xs":"px-2 py-0.5 text-xs",v=a?"capitalize":"",g=s().badge,p=c??("string"==typeof r?g.removeItem(r):g.remove),w="xs"===n?"h-2.5 w-2.5":"h-3 w-3";/* @__PURE__ */
|
|
11
11
|
return h("span",{className:[M,"font-medium",f,v,d,u].filter(Boolean).join(" "),children:[
|
|
12
|
-
/* @__PURE__ */m(L,{children:r}),i&&/* @__PURE__ */m("button",{type:"button",onClick:l,"aria-label":p,className:"-mr-0.5 ml-1 inline-flex shrink-0 items-center justify-center rounded-full opacity-70 transition-opacity hover:opacity-100 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-strong)]",children:/* @__PURE__ */m(o,{name:"close",look:"mini",className:w,"aria-hidden":"true"})})]})}var
|
|
12
|
+
/* @__PURE__ */m(L,{children:r}),i&&/* @__PURE__ */m("button",{type:"button",onClick:l,"aria-label":p,className:"-mr-0.5 ml-1 inline-flex shrink-0 items-center justify-center rounded-full opacity-70 transition-opacity hover:opacity-100 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-strong)]",children:/* @__PURE__ */m(o,{name:"close",look:"mini",className:w,"aria-hidden":"true"})})]})}var J="undefined"!=typeof window&&"undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform||navigator.userAgent),K={MOD:["⌘","Ctrl"],ALT:["⌥","Alt"],CMD_ENTER:["⌘⏎","Ctrl⏎"],CMD_S:["⌘S","Ctrl+S"],CMD_K:["⌘K","Ctrl+K"],CMD_DOT:["⌘.","Ctrl+."],CMD_A:["⌘A","Ctrl+A"],CMD_Z:["⌘Z","Ctrl+Z"],CMD_SHIFT_Z:["⌘⇧Z","Ctrl+Shift+Z"],ALT_SHIFT_D:["⌥⇧D","Alt+Shift+D"],ALT_SHIFT_E:["⌥⇧E","Alt+Shift+E"],ALT_SHIFT_N:["⌥⇧N","Alt+Shift+N"]},U=J?0:1,$=K.MOD[U],B=K.ALT[U],Q="⇧",G="⏎",V=K.CMD_ENTER[U],X=K.CMD_S[U],Y=K.CMD_K[U],tt=K.CMD_DOT[U],et=K.CMD_A[U],rt=K.CMD_Z[U],nt=K.CMD_SHIFT_Z[U],ot=K.ALT_SHIFT_D[U],st=K.ALT_SHIFT_E[U],at=K.ALT_SHIFT_N[U],it=new Map(J?Object.values(K).map(([t,e])=>[t,e]):[]);function lt(t){return r()?t:it.get(t)??t}var ct={neutral:"inline-flex items-center justify-center rounded border border-gray-200 bg-gray-50 font-medium text-gray-500",accent:"inline-flex items-center justify-center rounded border kbd-submit font-medium",warning:"inline-flex items-center justify-center rounded border border-amber-300 bg-amber-100 font-medium"},ut={sm:"px-1 py-0.5 text-2xs",md:"px-2 py-0.5 text-2xs"};function dt({keys:t,size:e="md",tone:r="neutral",className:n=""}){const o=lt(t);/* @__PURE__ */
|
|
13
13
|
return m("kbd",{className:[ct[r],ut[e],n].filter(Boolean).join(" "),children:o})}var ft=a(null);function mt({value:t,children:e}){/* @__PURE__ */
|
|
14
|
-
return m(ft.Provider,{value:t,children:e})}function ht(t="react-os-shell:prefs",e){const[r,o]=n(()=>{try{const r=JSON.parse(localStorage.getItem(t)||"{}");return{...e??{},...r}}catch{return{...e??{}}}},{...e??{}});return{prefs:r,save:d(e=>{o(r=>{const n={...r,...e};try{localStorage.setItem(t,JSON.stringify(n))}catch{}return n})},[t])}}var vt={prefs:{},save:()=>{}};function gt(){return u(ft)??vt}function pt(){const{prefs:t,save:e}=gt(),r=d(t=>{const r=e(t);return r&&"function"==typeof r.then?r.catch(()=>{}):r},[e]);return f(()=>({prefs:t,save:r}),[t,r])}var wt="react-os-shell:stale-chunk-reload-at",xt=3e4,bt="vite:preloadError",yt="/_next/static/",
|
|
14
|
+
return m(ft.Provider,{value:t,children:e})}function ht(t="react-os-shell:prefs",e){const[r,o]=n(()=>{try{const r=JSON.parse(localStorage.getItem(t)||"{}");return{...e??{},...r}}catch{return{...e??{}}}},{...e??{}});return{prefs:r,save:d(e=>{o(r=>{const n={...r,...e};try{localStorage.setItem(t,JSON.stringify(n))}catch{}return n})},[t])}}var vt={prefs:{},save:()=>{}};function gt(){return u(ft)??vt}function pt(){const{prefs:t,save:e}=gt(),r=d(t=>{const r=e(t);return r&&"function"==typeof r.then?r.catch(()=>{}):r},[e]);return f(()=>({prefs:t,save:r}),[t,r])}var wt="react-os-shell:stale-chunk-reload-at",xt=3e4,bt="vite:preloadError",yt="/_next/static/",Ct=/Failed to fetch dynamically imported module|error loading dynamically imported module|Importing a module script failed|Unable to preload CSS/i;function _t(t){if(t instanceof Error&&"ChunkLoadError"===t.name)return!0;const e=t instanceof Error?t.message:"string"==typeof t?t:"";return Ct.test(e)}function kt(t={}){if("undefined"==typeof window)return()=>{};const e=t.cooldownMs??3e4,r=t.reload??(()=>window.location.reload()),n=t.now??Date.now,o=void 0===t.storage?function(){try{const t=window.sessionStorage;return t.getItem(wt),t}catch{return null}}():t.storage,s=void 0===t.chunkPathPrefix?yt:t.chunkPathPrefix,a=t=>{const r=n(),s=function(t){if(!t)return null;try{const e=t.getItem(wt),r=null===e?NaN:Number(e);return Number.isFinite(r)?r:null}catch{return null}}(o);return null!==s&&r-s<e?(console.error("[efficient-shell] a lazy chunk is still missing after a reload; letting the failure through:",t),!1):(function(t,e){if(t)try{t.setItem(wt,String(e))}catch{}}(o,r),console.warn("[efficient-shell] a lazy chunk is no longer on the server (new deploy?); reloading onto the current build:",t),!0)},i=t=>{const e=t.payload;_t(e)&&a(e)&&(t.preventDefault(),r())};let l=!0,c=!1;const u=/* @__PURE__ */new Set,d=null===s?null:t=>{const e=function(t,e){const r=t.target;let n="";if(r instanceof window.HTMLScriptElement?n=r.src:r instanceof window.HTMLLinkElement&&function(t){const e=t.rel.toLowerCase().split(/\s+/);if(e.includes("stylesheet")||e.includes("modulepreload"))return!0;const r=(t.getAttribute("as")??"").toLowerCase();return e.includes("preload")&&("script"===r||"style"===r)}(r)?n=r.href:t instanceof window.ErrorEvent&&"SyntaxError"===t.error?.name&&(n=t.filename),!n)return null;try{const t=new URL(e,window.location.origin).href,r=new URL(n,window.location.href).href;return r.startsWith(t)?r:null}catch{return null}}(t,s);!e||c||u.has(e)||(u.add(e),async function(t){try{const e=await fetch(t,{method:"HEAD",cache:"no-store"});return 404===e.status||410===e.status||e.ok&&/\btext\/html\b/i.test(e.headers.get("content-type")??"")}catch{return!1}}(e).then(t=>{u.delete(e),t&&l&&!c&&a(e)&&(c=!0,r())}))};return window.addEventListener(bt,i),d&&window.addEventListener("error",d,!0),()=>{l=!1,window.removeEventListener(bt,i),d&&window.removeEventListener("error",d,!0)}}export{B as ALT,ot as ALT_SHIFT_D,st as ALT_SHIFT_E,at as ALT_SHIFT_N,et as CMD_A,tt as CMD_DOT,V as CMD_ENTER,Y as CMD_K,X as CMD_S,nt as CMD_SHIFT_Z,rt as CMD_Z,q as ColoredBadge,G as ENTER,S as GROUP_COLORS,E as GROUP_COLORS_SOLID,dt as Kbd,$ as MOD,yt as NEXT_CHUNK_PATH_PREFIX,L as OneLineLabel,R as Result,Q as SHIFT,xt as STALE_CHUNK_RELOAD_COOLDOWN_MS,wt as STALE_CHUNK_RELOAD_KEY,mt as ShellPrefsProvider,O as StatusBadge,F as StatusBadgeProvider,D as TH_ONE_LINE,bt as VITE_PRELOAD_ERROR_EVENT,T as groupColors,kt as installStaleChunkReload,J as isMac,_t as isStaleChunkError,k as useIsMobile,N as useIsPhone,ht as useLocalStoragePrefs,pt as useShellPrefs,gt as useShellPrefsAdapter,lt as useShortcutLabel,H as useStatusLabel};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{createContext as t,useContext as e}from"react";import{jsx as r}from"react/jsx-runtime";var n={},o=new Proxy(n,{get:(t,e)=>n[e],has:(t,e)=>e in n,ownKeys:()=>Object.keys(n),getOwnPropertyDescriptor(t,e){if(e in n)return{configurable:!0,enumerable:!0,value:n[e]}}});function a(t){for(const t of Object.keys(n))delete n[t];Object.assign(n,t)}var u={},i=[],c={erp:[],system:[],virtual:[],footer:[]},s=t({hasAnyPerm:()=>!0});function d({value:t,children:e}){/* @__PURE__ */
|
|
2
|
-
return r(s.Provider,{value:t,children:e})}function m(){return e(s)}var l=240,h=68,f=
|
|
2
|
+
return r(s.Provider,{value:t,children:e})}function m(){return e(s)}var l=240,h=68,f=40,p="react-os-shell:work-area-changed";function w(){const t=getComputedStyle(document.documentElement),e=parseInt(t.getPropertyValue("--taskbar-height"))||0,r=parseInt(t.getPropertyValue("--taskbar-width"))||0,n=t.getPropertyValue("--taskbar-position")?.trim()||"bottom",o=parseInt(t.getPropertyValue("--sidebar-width"))||0;return{x:("left"===n?r:0)+o,y:"top"===n?e:0,w:window.innerWidth-("left"===n||"right"===n?r:0)-o,h:window.innerHeight-("top"===n||"bottom"===n?e:0)}}function y(t,e,r){const n=r?e.w+280:e.w-280,o=Math.abs(t.w-e.w)<=4||Math.abs(t.w-n)<=4;return Math.abs(t.h-e.h)<=4&&o}function g({over:t,residual:e},r){return e<=1||t-e>=r-2}function b(t,e,r){let n=t;for(const o of r)g(o,e)&&(n=Math.max(n,t+o.over));return Math.ceil(n)}function v(t,e,r,n){const o=Math.min(e,r.w-2*n);if(o<=t.w+1)return t;const a=r.x+n,u=r.x+r.w-n-o,i=Math.min(Math.max(t.x-(o-t.w)/2,a),u);return{...t,x:Math.round(i),w:Math.round(o)}}function x(){return(parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sidebar-width"))||0)>0}function M(){return"undefined"!=typeof document&&"sidebar"===getComputedStyle(document.documentElement).getPropertyValue("--layout-mode")?.trim()}export{h as RAIL_COLLAPSED_W,l as RAIL_W,d as ShellAuthProvider,f as TAB_STRIP_H,p as WORK_AREA_CHANGED_EVENT,y as boxFillsWorkArea,w as computeMaximizedBox,v as growBoxToWidth,x as isSidebarStripReserved,o as navIcons,i as navSections,M as readAlwaysMaximizedFlag,g as scrollerIsFluid,u as sectionIcons,a as setShellNavIcons,c as startMenuCategories,m as useShellAuth,b as widthToFit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{requestFilesTrashView as n}from"./chunk-
|
|
1
|
+
import{requestFilesTrashView as n}from"./chunk-AAHMUDUP.js";var o=null;function r(n){o=n}function t(){return o}function u(){n()}export{t as getFilesDemoTree,u as openFilesInTrashMode,r as setFilesDemoTree};
|