efficient-shell 7.68.0 → 7.68.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Browser-XAZW2RBR.js → Browser-K6G6ZGQV.js} +14 -14
- package/dist/{Calculator-SVQZ6QZC.js → Calculator-4QMTUBOI.js} +22 -22
- package/dist/{CurrencyConverter-5IRMYEVS.js → CurrencyConverter-XGJI3D6B.js} +6 -6
- package/dist/{Documents-VYOWUFGE.js → Documents-6W6ZCTXS.js} +3 -3
- package/dist/Files-6RZPHMGE.js +87 -0
- package/dist/{Notepad-3IAEYS7R.js → Notepad-TQQI2KQ4.js} +9 -9
- package/dist/{PomodoroTimer-RNKFOJLQ.js → PomodoroTimer-GFFJUTH5.js} +63 -63
- package/dist/{Preview-KLSNIWLJ.js → Preview-K5ORQBUY.js} +22 -22
- package/dist/Sidebar-MTO5BBBT.js +43 -0
- package/dist/{Spreadsheet-OEXWZKTJ.js → Spreadsheet-ZG5LJQ6F.js} +13 -13
- package/dist/{Stock-E3ONHBLF.js → Stock-JLHSJG4M.js} +3 -3
- package/dist/{Weather-N6UO5AWR.js → Weather-IYHZBAOX.js} +14 -14
- package/dist/{WorldClock-JC7HTO47.js → WorldClock-FMQNCTFU.js} +6 -6
- package/dist/apps/index.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/{chunk-JQ75A2QX.js → chunk-2XU3X3MR.js} +27 -27
- package/dist/{chunk-CMPY5ROK.js → chunk-3X2EQ3UV.js} +2 -2
- package/dist/{chunk-E2G4YXZ4.js → chunk-DYVTVLUE.js} +1 -1
- package/dist/{chunk-PLILMC6A.js → chunk-FJ4FO4FV.js} +1 -1
- package/dist/{chunk-5SXGTGQE.js → chunk-HCUSNRV3.js} +1 -1
- package/dist/{chunk-M4RQIHBG.js → chunk-I74FRKHQ.js} +1 -1
- package/dist/{chunk-BE6F2GAI.js → chunk-I7JLCPEW.js} +2 -2
- package/dist/chunk-MUYLPPQP.js +1 -0
- package/dist/chunk-TPDOOCFS.js +2 -0
- package/dist/{chunk-WWYIGAMX.js → chunk-W64JQLDI.js} +1 -1
- package/dist/index.js +112 -112
- package/dist/telemetry/index.js +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +1 -1
- package/dist/Files-26VNHCKX.js +0 -87
- package/dist/Sidebar-VLTBZW7T.js +0 -43
- package/dist/chunk-GODKUFB6.js +0 -1
- package/dist/chunk-HWH4UHIU.js +0 -2
package/dist/telemetry/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{startClientTelemetry}from"../chunk-
|
|
1
|
+
export{startClientTelemetry}from"../chunk-FJ4FO4FV.js";import"../chunk-MUYLPPQP.js";import"../chunk-KNUR2UEG.js";
|
package/dist/ui/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{APP_UPDATE_POLL_MS,Accordion,AlignmentGrid,AppUpdateBanner,AttachButton,AttachmentDropZone,AttachmentList,AuthScreen,Avatar,AvatarGroup,BORDER_LINE_STYLES,BORDER_WIDTHS,BorderInput,BoxPlotChart,BrandAssetEditor,BudgetBar,CHART_INK,COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,CONTROL_HEIGHTS,CORNERS,CORNERS_FOR_THEME,Calendar,CandlestickChart,Card,CartesianPlot,ChartBrush,ChartDefs,ChartDot,ChartFrame,ChartHighlightProvider,ChartSkeleton,ChartTooltip,ChatTemplate,Checkbox_default as Checkbox,CheckoutTemplate,ChordChart,ColorPicker,ColorPickerPanel,ColorSwatch,ColumnChart,ComposerAttachments,ContainerFillChart,ContextMenu,CornersInput,CountBadge,DAY_MS,DashboardTemplate,DataTable,DataTablePage,DatePicker_default as DatePicker,DateRangePicker,DateTimePicker_default as DateTimePicker,DescriptionList,DisplayChips,Divider,Drawer,DropdownMenu,ELEVATION_LEVELS,EmailTemplate,EmptyState,EmptyValue,ErrorBoundary,ErrorPage,FONT_WEIGHTS,FilePicker_default as FilePicker,FloatingBar,FormErrorSummary,FormField,FormLayoutPage,FunnelChart,GalleryTemplate,Grid,HeatmapChart,HelpCenter,HexInput,HistogramChart,IconPicker,IconRail,IconRailButton,ImageFocusPoint,Inline,Input_default as Input,InputNumber_default as InputNumber,Kanban,Label,LanguagePanel,LanguageSelect,LinkPicker,ListFooter,ListLoadError,ListRow,MAX_FRACTION_DIGITS,MOTION,MOTION_DURATIONS,MediaUploadField,MediaUploadGrid,Meter,MetricBar,MilestoneTimeline,NativeSelect,NumericKeypad,POST_PRODUCTION_STATUSES,PageHeader,Pagination,PaperclipGlyph,Paragraph,PictureTiles,PieChart,Popover,PortalBrandingProvider,ProductionTimeline,RADAR_SERIES_CAP,RADIUS_ROLES,ROW_HEIGHTS,RadarChart,RadialBarChart,Radio_default as Radio,RadioGroup,RangeChart,RankedBars,SCATTER_SERIES_CAP,SERIES_SLOT_COUNT,SERIES_VARS,SPACING_ROLES,SPACING_SCALE,STAGES,STATUS_VARS,SankeyChart,ScatterChart,SearchableSelect,Segmented,Select_default as Select,SettingReset,SettingRow,ShowWhen,SidebarActionButton,SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidesEachToggle,SidesInput,Skeleton,Slider,SliderGroup,Snippet,SortableList,Sparkline,SplitButton_default as SplitButton,Stack,StatCard,StatTile,Statistic,Stepper,SunburstChart,Switch_default as Switch,TYPE_SCALE,Tabs,TagInput,Text,TextLinkField,TextToolbar,TileButton_default as TileButton,TimeAgo,TimePicker_default as TimePicker,TimeSeriesChart,TimelineTrack,Title,TopNav,TransferProgress,Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam,TreemapChart,WaterfallChart,WidthsBar,angleScale,appendKey,applyCorners,applyIconSet,applyThemePrefs,arcPath,areaBetween,areaFrom,assignSeriesSlots,autoHighlightIndex,backspace,bandScale,binValues,borderSides,borderStartEach,budgetState,bumpPath,calcOverall,calcReportOverall,colorFill,colorSwatchClasses,columnSharesWidths,cornersFor,curvePath,dashFor,fillFor,fillId,fmtSliderDate,fromKey as fromDateKey,glowId,groundId,hexToHsv,highlightOpacity,hsvToHex,isSeverityTone,isShown,isSpacingStep,labelClasses,ladderScale,languageSelectWidth,linearPath,linearScale,logScale,maskId,mediaFileName,monotonePath,niceAxis,niceMax,parseHexColor,polygonPoints,radiusScale,resolveColumnShares,resolveColumnWidths,resolveCorners,resolvePortalBrandAsset,resolveSeriesColor,resolveSeriesColorWithin,resolveTheme,seriesColor,severityOf,sidesStartEach,splinePath,squarify,stagger,stepPath,tabButtonId,tabPanelId,textToolbarRows,textToolbarWindowColumns,toKey as toDateKey,toDayMs,toISODate,toggleSeriesSlot,useAppUpdate,useClickOutside,useContextMenu,useDebouncedValue,useHighlight,useInSettingRow,usePlotWidth,usePortalBranding,useProductionTimeline,useSettingAuto,useTheme,useTransferProgress}from"../chunk-YMIHGT3B.js";export{Breadcrumbs}from"../chunk-L5X6V677.js";export{BrandMark,GlobalSearch,openGlobalSearch,pushRecent as pushRecentSearch,resolveBrandMarkTreatment,sanitizeRecent as sanitizeRecentSearches}from"../chunk-2ZRX3NRH.js";export{EditableGrid}from"../chunk-6DPQAV2O.js";import"../chunk-BR22X7E5.js";export{SidebarLayout}from"../chunk-7B2YKMAZ.js";export{ResizeHandle}from"../chunk-6I4ZV67D.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-SLEWYXMY.js";export{ICON_NAMES,ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,isIconName,loadIconSet}from"../chunk-CCWPP3YK.js";export{Banner,Markdown,Markdown as MarkdownLite,StepChain,StepChainItem,Textarea_default as Textarea}from"../chunk-WQCUNSQL.js";export{IconButton_default as IconButton}from"../chunk-EU4BCXGA.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-CU3GY5Y2.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-DAMBAXPA.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ColoredBadge,ENTER,GROUP_COLORS,GROUP_COLORS_SOLID,Kbd,MOD,NEXT_CHUNK_PATH_PREFIX,Result,SHIFT,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,ShellPrefsProvider,StatusBadge,StatusBadgeProvider,VITE_PRELOAD_ERROR_EVENT,groupColors,installStaleChunkReload,isMac,isStaleChunkError,useIsMobile,useLocalStoragePrefs,useShellPrefs,useStatusLabel}from"../chunk-DUCUZPU3.js";import"../chunk-5A7MWTXX.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu,leavesContextMenuAlone}from"../chunk-YJIG2KT3.js";export{VERSION}from"../chunk-
|
|
2
|
+
export{APP_UPDATE_POLL_MS,Accordion,AlignmentGrid,AppUpdateBanner,AttachButton,AttachmentDropZone,AttachmentList,AuthScreen,Avatar,AvatarGroup,BORDER_LINE_STYLES,BORDER_WIDTHS,BorderInput,BoxPlotChart,BrandAssetEditor,BudgetBar,CHART_INK,COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,CONTROL_HEIGHTS,CORNERS,CORNERS_FOR_THEME,Calendar,CandlestickChart,Card,CartesianPlot,ChartBrush,ChartDefs,ChartDot,ChartFrame,ChartHighlightProvider,ChartSkeleton,ChartTooltip,ChatTemplate,Checkbox_default as Checkbox,CheckoutTemplate,ChordChart,ColorPicker,ColorPickerPanel,ColorSwatch,ColumnChart,ComposerAttachments,ContainerFillChart,ContextMenu,CornersInput,CountBadge,DAY_MS,DashboardTemplate,DataTable,DataTablePage,DatePicker_default as DatePicker,DateRangePicker,DateTimePicker_default as DateTimePicker,DescriptionList,DisplayChips,Divider,Drawer,DropdownMenu,ELEVATION_LEVELS,EmailTemplate,EmptyState,EmptyValue,ErrorBoundary,ErrorPage,FONT_WEIGHTS,FilePicker_default as FilePicker,FloatingBar,FormErrorSummary,FormField,FormLayoutPage,FunnelChart,GalleryTemplate,Grid,HeatmapChart,HelpCenter,HexInput,HistogramChart,IconPicker,IconRail,IconRailButton,ImageFocusPoint,Inline,Input_default as Input,InputNumber_default as InputNumber,Kanban,Label,LanguagePanel,LanguageSelect,LinkPicker,ListFooter,ListLoadError,ListRow,MAX_FRACTION_DIGITS,MOTION,MOTION_DURATIONS,MediaUploadField,MediaUploadGrid,Meter,MetricBar,MilestoneTimeline,NativeSelect,NumericKeypad,POST_PRODUCTION_STATUSES,PageHeader,Pagination,PaperclipGlyph,Paragraph,PictureTiles,PieChart,Popover,PortalBrandingProvider,ProductionTimeline,RADAR_SERIES_CAP,RADIUS_ROLES,ROW_HEIGHTS,RadarChart,RadialBarChart,Radio_default as Radio,RadioGroup,RangeChart,RankedBars,SCATTER_SERIES_CAP,SERIES_SLOT_COUNT,SERIES_VARS,SPACING_ROLES,SPACING_SCALE,STAGES,STATUS_VARS,SankeyChart,ScatterChart,SearchableSelect,Segmented,Select_default as Select,SettingReset,SettingRow,ShowWhen,SidebarActionButton,SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidesEachToggle,SidesInput,Skeleton,Slider,SliderGroup,Snippet,SortableList,Sparkline,SplitButton_default as SplitButton,Stack,StatCard,StatTile,Statistic,Stepper,SunburstChart,Switch_default as Switch,TYPE_SCALE,Tabs,TagInput,Text,TextLinkField,TextToolbar,TileButton_default as TileButton,TimeAgo,TimePicker_default as TimePicker,TimeSeriesChart,TimelineTrack,Title,TopNav,TransferProgress,Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam,TreemapChart,WaterfallChart,WidthsBar,angleScale,appendKey,applyCorners,applyIconSet,applyThemePrefs,arcPath,areaBetween,areaFrom,assignSeriesSlots,autoHighlightIndex,backspace,bandScale,binValues,borderSides,borderStartEach,budgetState,bumpPath,calcOverall,calcReportOverall,colorFill,colorSwatchClasses,columnSharesWidths,cornersFor,curvePath,dashFor,fillFor,fillId,fmtSliderDate,fromKey as fromDateKey,glowId,groundId,hexToHsv,highlightOpacity,hsvToHex,isSeverityTone,isShown,isSpacingStep,labelClasses,ladderScale,languageSelectWidth,linearPath,linearScale,logScale,maskId,mediaFileName,monotonePath,niceAxis,niceMax,parseHexColor,polygonPoints,radiusScale,resolveColumnShares,resolveColumnWidths,resolveCorners,resolvePortalBrandAsset,resolveSeriesColor,resolveSeriesColorWithin,resolveTheme,seriesColor,severityOf,sidesStartEach,splinePath,squarify,stagger,stepPath,tabButtonId,tabPanelId,textToolbarRows,textToolbarWindowColumns,toKey as toDateKey,toDayMs,toISODate,toggleSeriesSlot,useAppUpdate,useClickOutside,useContextMenu,useDebouncedValue,useHighlight,useInSettingRow,usePlotWidth,usePortalBranding,useProductionTimeline,useSettingAuto,useTheme,useTransferProgress}from"../chunk-YMIHGT3B.js";export{Breadcrumbs}from"../chunk-L5X6V677.js";export{BrandMark,GlobalSearch,openGlobalSearch,pushRecent as pushRecentSearch,resolveBrandMarkTreatment,sanitizeRecent as sanitizeRecentSearches}from"../chunk-2ZRX3NRH.js";export{EditableGrid}from"../chunk-6DPQAV2O.js";import"../chunk-BR22X7E5.js";export{SidebarLayout}from"../chunk-7B2YKMAZ.js";export{ResizeHandle}from"../chunk-6I4ZV67D.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-SLEWYXMY.js";export{ICON_NAMES,ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,isIconName,loadIconSet}from"../chunk-CCWPP3YK.js";export{Banner,Markdown,Markdown as MarkdownLite,StepChain,StepChainItem,Textarea_default as Textarea}from"../chunk-WQCUNSQL.js";export{IconButton_default as IconButton}from"../chunk-EU4BCXGA.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-CU3GY5Y2.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-DAMBAXPA.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ColoredBadge,ENTER,GROUP_COLORS,GROUP_COLORS_SOLID,Kbd,MOD,NEXT_CHUNK_PATH_PREFIX,Result,SHIFT,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,ShellPrefsProvider,StatusBadge,StatusBadgeProvider,VITE_PRELOAD_ERROR_EVENT,groupColors,installStaleChunkReload,isMac,isStaleChunkError,useIsMobile,useLocalStoragePrefs,useShellPrefs,useStatusLabel}from"../chunk-DUCUZPU3.js";import"../chunk-5A7MWTXX.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu,leavesContextMenuAlone}from"../chunk-YJIG2KT3.js";export{VERSION}from"../chunk-MUYLPPQP.js";import"../chunk-KNUR2UEG.js";export{ConfirmProvider,Dialog,confirm,confirmDestructive,prompt,useConfirm,useFocusTrap,useScrollLock}from"../chunk-3NYPZO4K.js";import"../chunk-UVBK6YSR.js";export{Button_default as Button}from"../chunk-DELNCIUK.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,Tooltip,placeMenu,popupBounds,useDropdownPosition}from"../chunk-RDLWLATO.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-7IQ3B77H.js";import"../chunk-D65T4H6J.js";export{OVERLAY_OPEN_EVENT,Z_LAYERS,dismissPopups,registerModalEscapeInterceptor}from"../chunk-FIEA5CGB.js";export{buttonClasses,iconButtonClasses}from"../chunk-K7PQXJO7.js";export{Icon,activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-76DRQSJM.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-AP2QEJXQ.js";export{DATE_FORMAT_OPTIONS,EMPTY_VALUE,TZ_AUTO,currencyDecimals,currencySymbol,firstDayOfWeek,formatBytes,formatDate,formatDateTime,formatMoney,formatTime,getUserDateFormat,getUserTimezone,setCurrencyFormats,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile,timeAgo}from"../chunk-W32SKK3D.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-R57S7SWU.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-2EJRVQ3Y.js";import"../chunk-C3QOHMR6.js";export{LoadingSpinner,SpinnerRing}from"../chunk-2J6F4EE7.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-shell",
|
|
3
|
-
"version": "7.68.
|
|
3
|
+
"version": "7.68.1",
|
|
4
4
|
"description": "Desktop-style React UI shell — windows, taskbar, start menu, sticky notes, frosted glass theming, and bundled apps.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Efficient Pty Ltd",
|
package/dist/Files-26VNHCKX.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import{openPreviewFile as e}from"./chunk-FFRODO6G.js";import{Breadcrumbs as t}from"./chunk-L5X6V677.js";import{SidebarLayout as a}from"./chunk-7B2YKMAZ.js";import"./chunk-6I4ZV67D.js";import{getFilesDemoTree as r}from"./chunk-5SXGTGQE.js";import{AboutApp as n}from"./chunk-CMPY5ROK.js";import{peekFilesViewRequest as s,consumeFilesViewRequest as i,FILES_SHOW_TRASH_EVENT as l,FILES_OPEN_DESKTOP_FOLDER_EVENT as o,subscribeDesktopFolders as d,getDesktopFoldersSnapshot as c,FolderGlyph as m,DesktopItemMiniIcon as h,desktopItemTypeLabel as p}from"./chunk-BE6F2GAI.js";import"./chunk-ESL5TDNA.js";import"./chunk-VTVSMRFX.js";import{useWindowManager as u,WindowTitle as f}from"./chunk-JQ75A2QX.js";import"./chunk-HWH4UHIU.js";import"./chunk-OKFO3XYS.js";import{toast_default as x}from"./chunk-DAMBAXPA.js";import{TH_ONE_LINE as g}from"./chunk-DUCUZPU3.js";import"./chunk-5A7MWTXX.js";import"./chunk-YJIG2KT3.js";import"./chunk-GODKUFB6.js";import"./chunk-KNUR2UEG.js";import{confirm as y,prompt as b}from"./chunk-3NYPZO4K.js";import"./chunk-UVBK6YSR.js";import"./chunk-DELNCIUK.js";import"./chunk-RDLWLATO.js";import"./chunk-7IQ3B77H.js";import"./chunk-D65T4H6J.js";import"./chunk-FIEA5CGB.js";import"./chunk-K7PQXJO7.js";import{Icon as k}from"./chunk-76DRQSJM.js";import{formatBytes as w}from"./chunk-W32SKK3D.js";import"./chunk-2EJRVQ3Y.js";import"./chunk-C3QOHMR6.js";import{LoadingSpinner as N}from"./chunk-2J6F4EE7.js";import{useState as v,useEffect as $,useSyncExternalStore as j,useRef as C,useCallback as D}from"react";import{jsxs as E,jsx as L,Fragment as T}from"react/jsx-runtime";var R="undefined"!=typeof window&&window.__REACT_OS_SHELL_FILE_SERVER__||"http://localhost:4000",F={pdf:"pdf",dxf:"dxf",csv:"csv",jpg:"image",jpeg:"image",png:"image",gif:"image",webp:"image",svg:"image",avif:"image",bmp:"image",stp:"3d",step:"3d",stl:"3d",obj:"3d",gltf:"3d",glb:"3d","3mf":"3d",iges:"3d",igs:"3d",ply:"3d",fbx:"3d"};function O(e,t){return"/"===e||""===e?"/"+t:e.replace(/\/$/,"")+"/"+t}function S(e){if(!e)return"—";try{const t=new Date(e);return isNaN(t.getTime())?"—":t.toLocaleString(void 0,{dateStyle:"short",timeStyle:"short"})}catch{return e}}function I(){const I=R.replace(/\/$/,""),P=null!==r(),[A,U]=v("/"),[M,W]=v([]),[K,B]=v([]),[V,z]=v(null),[H,J]=v(!0),[Q,X]=v(!1),[G,_]=v(null),[Y,Z]=v(!1),[q,ee]=v(()=>{const e=s();return"trash"===e?"trash":e?{desktopFolderId:e.folderId}:"files"});$(()=>{i()},[]);const[te,ae]=v([]);$(()=>{const e=()=>{i(),ee("trash")},t=e=>{i();const t=e.detail?.folderId;t&&ee({desktopFolderId:t})};return window.addEventListener(l,e),window.addEventListener(o,t),()=>{window.removeEventListener(l,e),window.removeEventListener(o,t)}},[]);const re=j(d,c,c),ne="object"==typeof q?q.desktopFolderId:null,se=ne?re?.folders.find(e=>e.id===ne)??null:null,ie=ne&&re?.itemsByFolder[ne]||[];$(()=>{ne&&re&&!re.folders.some(e=>e.id===ne)&&ee("files")},[ne,re]);const le=C(0),oe=C(null),{openPage:de,openEntity:ce}=u(),me=t=>{"preview-file"===t.entityType&&t.filePath&&t.fileKind?e({filePath:t.filePath,filename:t.label,kind:t.fileKind,onStaged:e=>de(e)}):"page"===t.entityType?de(t.entityId):ce(t.entityType,t.entityId,null,t.label)},he=D((e,t={})=>fetch(e,{...t,credentials:"include"}),[]),pe=D(async()=>{try{const e=await he(`${I}/api/quota`);if(e.ok){const t=await e.json();_({used:t.used,limit:t.limit})}}catch{}},[he,I]),ue=D(async e=>{if(z(null),P){const t=function(e){const t=r();if(!t)return[];let a=t;for(const t of e.split("/").filter(Boolean)){const e=a.find(e=>"folder"===e.kind&&e.name===t);if(!e||!e.children)return[];a=e.children}return a.map(e=>({name:e.name,kind:e.kind,size:e.size??0,modifiedAt:e.modifiedAt??""}))}(e);return W(t),U(e),X(!1),J(!1),void("/"===e&&B(t.filter(e=>"folder"===e.kind).map(e=>e.name)))}J(!0);try{const t=await he(`${I}/api/files?path=${encodeURIComponent(e)}`);if(!t.ok){const e=await t.json().catch(()=>({}));return void x.error(e.error||`Failed to list (${t.status})`)}const a=await t.json(),r=a.entries||[];W(r),U(a.path||e),X(!1),"/"===(a.path||e)&&B(r.filter(e=>"folder"===e.kind).map(e=>e.name))}catch(e){X(!0)}finally{J(!1)}pe()},[he,I,pe,P]),fe=D(async()=>{if(P)return ae([]),void J(!1);J(!0),z(null);try{const e=await he(`${I}/api/trash`);if(!e.ok){const t=await e.json().catch(()=>({}));return void x.error(t.error||`Failed to list trash (${e.status})`)}const t=await e.json();ae(t.entries||[]),X(!1)}catch{X(!0)}finally{J(!1)}pe()},[he,I,pe,P]);$(()=>{"files"===q?ue(A):"trash"===q&&fe()},[A,q]);const xe=async e=>{const t=O(A,e.name);try{const a=await he(`${I}/api/file?path=${encodeURIComponent(t)}`);if(!a.ok)return void x.error(`Download failed (${a.status})`);const r=await a.blob(),n=URL.createObjectURL(r),s=document.createElement("a");s.href=n,s.download=e.name,s.click(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}catch(e){x.error(e?.message||"Download failed")}},ge=async e=>{const t=Array.from(e);for(const e of t){const t=new FormData;t.append("file",e);try{const a=await he(`${I}/api/upload?path=${encodeURIComponent(A)}`,{method:"POST",body:t});if(!a.ok){const t=await a.json().catch(()=>({}));if(413===a.status){const a=Math.max(0,(t.limit||0)-(t.used||0));x.error(`Quota exceeded — ${w(a)} free, ${e.name} is ${w(t.attempted||e.size)}`)}else x.error(`Upload ${e.name}: ${t.error||a.status}`)}}catch(t){x.error(`Upload ${e.name}: ${t?.message||"failed"}`)}}ue(A)},ye=()=>{le.current=0,Z(!1)};if($(()=>{const e=()=>ye();return window.addEventListener("dragend",e),window.addEventListener("drop",e),()=>{window.removeEventListener("dragend",e),window.removeEventListener("drop",e)}},[]),Q)/* @__PURE__ */
|
|
2
|
-
return E("div",{className:"flex flex-col h-full bg-white",children:[
|
|
3
|
-
/* @__PURE__ */L(f,{title:"Files - offline"}),
|
|
4
|
-
/* @__PURE__ */L("div",{className:"flex-1 flex items-center justify-center p-8 text-center",children:/* @__PURE__ */E("div",{className:"max-w-md",children:[
|
|
5
|
-
/* @__PURE__ */L(k,{name:"close-circle",className:"h-12 w-12 mx-auto text-gray-300 mb-3",strokeWidth:1.4}),
|
|
6
|
-
/* @__PURE__ */L("h3",{className:"text-base font-semibold text-gray-800 mb-1",children:"Can't reach the file server"}),
|
|
7
|
-
/* @__PURE__ */E("p",{className:"text-sm text-gray-500 mb-3",children:["No response from ",
|
|
8
|
-
/* @__PURE__ */L("span",{className:"font-mono",children:I}),". Make sure the server is running — see ",
|
|
9
|
-
/* @__PURE__ */L("span",{className:"font-mono",children:"examples/file-server/README.md"}),"."]}),
|
|
10
|
-
/* @__PURE__ */L("button",{onClick:()=>ue(A),className:"px-3 h-8 text-sm bg-blue-500 text-white rounded hover:bg-blue-600",children:"Retry"})]})})]});const be="/"===A?[]:A.split("/").filter(Boolean),ke=G&&G.limit>0?Math.min(100,Math.round(G.used/G.limit*100)):0,we=ke>90?"bg-red-500":ke>75?"bg-amber-500":"bg-blue-500",Ne=[{label:"My files",onClick:()=>U("/")},...be.map((e,t)=>({label:e,onClick:()=>U("/"+be.slice(0,t+1).join("/"))}))],ve=e=>"flex w-full items-center gap-2 rounded-md px-3 min-h-(--row-height-menu) py-2 text-left text-sm transition-colors "+(e?"bg-blue-50 font-medium text-blue-700":"text-gray-700 hover:bg-gray-100"),$e=e=>/* @__PURE__ */L("svg",{className:"h-4 w-4 shrink-0 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.6,children:/* @__PURE__ */L("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})}),je=/* @__PURE__ */E("nav",{className:"p-2",children:[
|
|
11
|
-
/* @__PURE__ */L("div",{className:"px-2 py-2 text-2xs font-semibold uppercase tracking-wide text-gray-400",children:"Locations"}),
|
|
12
|
-
/* @__PURE__ */E("button",{onClick:()=>{ee("files"),U("/")},className:ve("files"===q&&"/"===A),children:[$e("M2.25 12l8.954-8.955a1.5 1.5 0 012.122 0L21.75 12M4.5 9.75v9.75a.75.75 0 00.75.75H9V15a.75.75 0 01.75-.75h4.5A.75.75 0 0115 15v5.25h3.75a.75.75 0 00.75-.75V9.75"),"My files"]}),K.map(e=>/* @__PURE__ */E("button",{onClick:()=>{ee("files"),U("/"+e)},className:ve("files"===q&&A==="/"+e),children:[$e("M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"),
|
|
13
|
-
/* @__PURE__ */L("span",{className:"truncate",children:e})]},e)),!P&&/* @__PURE__ */E("button",{onClick:()=>ee("trash"),className:ve("trash"===q),children:[$e("M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79"),"Trash"]}),re&&re.folders.length>0&&/* @__PURE__ */E(T,{children:[
|
|
14
|
-
/* @__PURE__ */L("div",{className:"px-2 pt-3 pb-2 text-2xs font-semibold uppercase tracking-wide text-gray-400",children:"Desktop"}),re.folders.map(e=>/* @__PURE__ */E("button",{onClick:()=>ee({desktopFolderId:e.id}),className:ve(ne===e.id),children:[
|
|
15
|
-
/* @__PURE__ */L(m,{className:"h-4 w-4 shrink-0 text-amber-500"}),
|
|
16
|
-
/* @__PURE__ */L("span",{className:"truncate",children:e.name}),e.itemCount>0&&/* @__PURE__ */L("span",{className:"ml-auto text-2xs text-gray-400 tabular-nums",children:e.itemCount})]},e.id))]})]});/* @__PURE__ */
|
|
17
|
-
return E("div",{className:"relative flex flex-col h-full bg-white",onDragEnter:e=>{P||"object"==typeof q||e.dataTransfer?.types?.includes?.("Files")&&(e.preventDefault(),le.current++,Y||Z(!0))},onDragOver:e=>{e.dataTransfer?.types?.includes?.("Files")&&e.preventDefault()},onDragLeave:()=>{le.current>0&&le.current--,0===le.current&&Z(!1)},onDrop:e=>{e.preventDefault(),ye(),P||"object"==typeof q||e.dataTransfer.files?.length&&ge(e.dataTransfer.files)},children:[
|
|
18
|
-
/* @__PURE__ */L(f,{title:se?`Files - ${se.name}`:"Files"+("/"===A?"":" - "+A)}),
|
|
19
|
-
/* @__PURE__ */L(n,{app:"files"}),
|
|
20
|
-
/* @__PURE__ */L("input",{ref:oe,type:"file",multiple:!0,className:"hidden",onChange:e=>{e.target.files?.length&&ge(e.target.files),oe.current&&(oe.current.value="")}}),
|
|
21
|
-
/* @__PURE__ */L("div",{className:"flex-1 min-h-0",children:/* @__PURE__ */L(a,{sidebar:je,storageKey:"files.sidebarWidth",defaultWidth:200,minWidth:150,maxWidth:320,children:/* @__PURE__ */E("div",{className:"flex h-full min-w-0 flex-col",children:[
|
|
22
|
-
/* @__PURE__ */E("div",{className:"flex items-center gap-1 px-2 py-2 border-b border-gray-200 bg-gray-50 shrink-0 text-xs",children:[/* @__PURE__ */E(T,"files"===q?{children:[
|
|
23
|
-
/* @__PURE__ */L("button",{onClick:()=>U(function(e){if("/"===e||""===e)return"/";const t=e.replace(/\/$/,""),a=t.lastIndexOf("/");return a<=0?"/":t.slice(0,a)}(A)),disabled:"/"===A,className:"px-2 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",title:"Parent folder",children:/* @__PURE__ */L(k,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
24
|
-
/* @__PURE__ */L("div",{className:"flex-1 min-w-0",children:/* @__PURE__ */L(t,{items:Ne,maxItems:5})}),
|
|
25
|
-
/* @__PURE__ */L("button",{onClick:()=>ue(A),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Refresh",children:/* @__PURE__ */L(k,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),!P&&/* @__PURE__ */E(T,{children:[
|
|
26
|
-
/* @__PURE__ */E("button",{onClick:()=>ee("trash"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600 flex items-center gap-1",title:"Open trash",children:[
|
|
27
|
-
/* @__PURE__ */L(k,{name:"trash",className:"h-3.5 w-3.5",strokeWidth:1.5}),"Trash"]}),
|
|
28
|
-
/* @__PURE__ */E("button",{onClick:async()=>{const e=await b({title:"New folder",placeholder:"Folder name",confirmLabel:"Create"});if(!e)return;if(/[\\/]/.test(e))return void x.error("Folder names cannot contain slashes");const t=O(A,e),a=await he(`${I}/api/folder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t})});if(!a.ok){const e=await a.json().catch(()=>({}));return void x.error(e.error||`Create folder failed (${a.status})`)}ue(A)},className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600 flex items-center gap-1",children:[
|
|
29
|
-
/* @__PURE__ */L(k,{name:"folder-plus",className:"h-3.5 w-3.5",strokeWidth:1.5}),"New Folder"]}),
|
|
30
|
-
/* @__PURE__ */E("button",{onClick:()=>oe.current?.click(),className:"px-2 py-1 rounded bg-blue-500 text-white hover:bg-blue-600 flex items-center gap-1",children:[
|
|
31
|
-
/* @__PURE__ */L(k,{name:"upload",className:"h-3.5 w-3.5",strokeWidth:1.8}),"Upload"]})]})]}:"trash"===q?{children:[
|
|
32
|
-
/* @__PURE__ */L("button",{onClick:()=>ee("files"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Back to files",children:/* @__PURE__ */L(k,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
33
|
-
/* @__PURE__ */L("span",{className:"flex-1 text-gray-700 font-medium px-2",children:"Trash"}),
|
|
34
|
-
/* @__PURE__ */L("button",{onClick:fe,className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Refresh",children:/* @__PURE__ */L(k,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),
|
|
35
|
-
/* @__PURE__ */L("button",{onClick:async()=>{if(0===te.length)return;if(!await y({title:"Empty trash",message:`${te.length} item${1===te.length?"":"s"} will be permanently removed. This can't be undone.`,confirmLabel:"Empty trash",variant:"danger"}))return;const e=await he(`${I}/api/trash`,{method:"DELETE"});if(!e.ok){const t=await e.json().catch(()=>({}));return void x.error(t.error||`Empty trash failed (${e.status})`)}fe()},disabled:0===te.length,className:"px-2 py-1 rounded text-red-600 hover:bg-red-50 disabled:opacity-30 flex items-center gap-1",children:"Empty trash"})]}:{children:[
|
|
36
|
-
/* @__PURE__ */L("button",{onClick:()=>ee("files"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Back to files",children:/* @__PURE__ */L(k,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
37
|
-
/* @__PURE__ */L(m,{className:"h-4 w-4 text-amber-500 ml-1"}),
|
|
38
|
-
/* @__PURE__ */L("span",{className:"flex-1 text-gray-700 font-medium px-1 truncate",children:se?.name??"Desktop folder"}),
|
|
39
|
-
/* @__PURE__ */L("span",{className:"text-2xs text-gray-400 px-2",children:"Desktop shortcuts"})]}),G&&/* @__PURE__ */E(T,{children:[
|
|
40
|
-
/* @__PURE__ */L("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
|
|
41
|
-
/* @__PURE__ */E("div",{className:"flex items-center gap-2",title:`${w(G.used)} of ${w(G.limit)} used`,children:[
|
|
42
|
-
/* @__PURE__ */L("div",{className:"w-20 h-1.5 rounded-full bg-gray-200 overflow-hidden",children:/* @__PURE__ */L("div",{className:`h-full ${we} transition-all`,style:{width:`${ke}%`}})}),
|
|
43
|
-
/* @__PURE__ */E("span",{className:"text-2xs text-gray-500 tabular-nums whitespace-nowrap",children:[w(G.used)," / ",w(G.limit)]})]})]})]}),
|
|
44
|
-
/* @__PURE__ */L("div",{className:"flex-1 overflow-auto",children:"object"==typeof q?0===ie.length?/* @__PURE__ */L("div",{className:"p-10 text-center text-sm text-gray-400",children:"This desktop folder is empty. Drag shortcuts onto it on the desktop."}):/* @__PURE__ */E("table",{className:"w-full text-sm",children:[
|
|
45
|
-
/* @__PURE__ */L("thead",{className:"bg-gray-50 text-2xs uppercase tracking-wide text-gray-500",children:/* @__PURE__ */E("tr",{children:[
|
|
46
|
-
/* @__PURE__ */L("th",{className:`${g} text-left font-medium px-3 h-8`,children:"Name"}),
|
|
47
|
-
/* @__PURE__ */L("th",{className:`${g} text-left font-medium px-3 h-8 w-28`,children:"Type"}),
|
|
48
|
-
/* @__PURE__ */L("th",{className:`${g} w-56`})]})}),
|
|
49
|
-
/* @__PURE__ */L("tbody",{children:ie.map(e=>{const t=`${e.entityType}|${e.entityId}`;/* @__PURE__ */
|
|
50
|
-
return E("tr",{onClick:()=>z(t),onDoubleClick:()=>me(e),className:"cursor-default border-b border-gray-100 "+(V===t?"bg-blue-50":"hover:bg-gray-50"),children:[
|
|
51
|
-
/* @__PURE__ */E("td",{className:"px-3 h-8 flex items-center gap-2",children:[
|
|
52
|
-
/* @__PURE__ */L(h,{item:e}),
|
|
53
|
-
/* @__PURE__ */L("span",{className:"truncate",title:e.label,children:e.label})]}),
|
|
54
|
-
/* @__PURE__ */L("td",{className:"px-3 h-8 text-xs text-gray-500",children:p(e)}),
|
|
55
|
-
/* @__PURE__ */E("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
|
|
56
|
-
/* @__PURE__ */L("button",{onClick:t=>{t.stopPropagation(),me(e)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-blue-600 text-2xs",children:"Open"}),
|
|
57
|
-
/* @__PURE__ */L("button",{onClick:t=>{t.stopPropagation(),re?.moveToDesktop([e])},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-gray-500 text-2xs ml-1",children:"Move to desktop"}),
|
|
58
|
-
/* @__PURE__ */L("button",{onClick:t=>{t.stopPropagation(),re?.removeShortcuts([e])},className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Remove"})]})]},t)})})]}):"trash"===q?H&&0===te.length?/* @__PURE__ */L(N,{size:"sm",padding:"p-6",label:"Loading"}):0===te.length?/* @__PURE__ */L("div",{className:"p-10 text-center text-sm text-gray-400",children:"Trash is empty."}):/* @__PURE__ */E("table",{className:"w-full text-sm",children:[
|
|
59
|
-
/* @__PURE__ */L("thead",{className:"bg-gray-50 text-2xs uppercase tracking-wide text-gray-500",children:/* @__PURE__ */E("tr",{children:[
|
|
60
|
-
/* @__PURE__ */L("th",{className:`${g} text-left font-medium px-3 h-8`,children:"Name"}),
|
|
61
|
-
/* @__PURE__ */L("th",{className:`${g} text-left font-medium px-3 h-8`,children:"Original location"}),
|
|
62
|
-
/* @__PURE__ */L("th",{className:`${g} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
|
|
63
|
-
/* @__PURE__ */L("th",{className:`${g} text-right font-medium px-3 h-8 w-40`,children:"Deleted"}),
|
|
64
|
-
/* @__PURE__ */L("th",{className:`${g} w-44`})]})}),
|
|
65
|
-
/* @__PURE__ */L("tbody",{children:te.map(e=>/* @__PURE__ */E("tr",{className:"border-b border-gray-100 hover:bg-gray-50",children:[
|
|
66
|
-
/* @__PURE__ */E("td",{className:"px-3 h-8 flex items-center gap-2",children:["folder"===e.kind?/* @__PURE__ */L(k,{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}):/* @__PURE__ */L(k,{name:"page",className:"h-4 w-4 text-gray-400 shrink-0",strokeWidth:1.5}),
|
|
67
|
-
/* @__PURE__ */L("span",{className:"truncate",title:e.name,children:e.name})]}),
|
|
68
|
-
/* @__PURE__ */L("td",{className:"px-3 h-8 text-gray-500 text-xs font-mono truncate",title:e.originalPath,children:e.originalPath||"—"}),
|
|
69
|
-
/* @__PURE__ */L("td",{className:"px-3 h-8 text-right tabular-nums text-gray-500",children:w(e.size)}),
|
|
70
|
-
/* @__PURE__ */L("td",{className:"px-3 h-8 text-right text-gray-500 tabular-nums",children:e.deletedAt?S(e.deletedAt):"—"}),
|
|
71
|
-
/* @__PURE__ */E("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
|
|
72
|
-
/* @__PURE__ */L("button",{onClick:()=>(async e=>{const t=await he(`${I}/api/trash/restore`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e.id})});if(!t.ok){const e=await t.json().catch(()=>({}));return void x.error(e.error||`Restore failed (${t.status})`)}x.success(`Restored "${e.name}"`),fe()})(e),className:"px-2 py-0.5 rounded hover:bg-gray-200 text-blue-600 text-2xs",children:"Restore"}),
|
|
73
|
-
/* @__PURE__ */L("button",{onClick:()=>(async e=>{if(!await y({title:"Permanently delete",message:`"${e.name}" will be permanently removed. This can't be undone.`,confirmLabel:"Delete forever",variant:"danger"}))return;const t=await he(`${I}/api/trash/${encodeURIComponent(e.id)}`,{method:"DELETE"});if(!t.ok){const e=await t.json().catch(()=>({}));return void x.error(e.error||`Delete failed (${t.status})`)}fe()})(e),className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Delete forever"})]})]},e.id))})]}):H&&0===M.length?/* @__PURE__ */L(N,{size:"sm",padding:"p-6",label:"Loading"}):0===M.length?/* @__PURE__ */E("div",{className:"p-10 text-center text-sm text-gray-400",children:["Empty folder.",!P&&/* @__PURE__ */E(T,{children:[" Drop files here or click ",
|
|
74
|
-
/* @__PURE__ */L("span",{className:"font-medium",children:"Upload"}),"."]})]}):/* @__PURE__ */E("table",{className:"w-full text-sm",children:[
|
|
75
|
-
/* @__PURE__ */L("thead",{className:"bg-gray-50 text-2xs uppercase tracking-wide text-gray-500",children:/* @__PURE__ */E("tr",{children:[
|
|
76
|
-
/* @__PURE__ */L("th",{className:`${g} text-left font-medium px-3 h-8`,children:"Name"}),
|
|
77
|
-
/* @__PURE__ */L("th",{className:`${g} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
|
|
78
|
-
/* @__PURE__ */L("th",{className:`${g} text-right font-medium px-3 h-8 w-40`,children:"Modified"}),
|
|
79
|
-
/* @__PURE__ */L("th",{className:`${g} w-32`})]})}),
|
|
80
|
-
/* @__PURE__ */L("tbody",{children:M.map(t=>/* @__PURE__ */E("tr",{onClick:()=>z(t.name),onDoubleClick:()=>{"folder"===t.kind?U(O(A,t.name)):(async t=>{if(P)return;const a=O(A,t.name),r=(t.name.split(".").pop()||"").toLowerCase(),n=F[r];n?await e({filePath:a,filename:t.name,kind:n,onStaged:e=>de(e)}):xe(t)})(t)},className:"cursor-default border-b border-gray-100 "+(V===t.name?"bg-blue-50":"hover:bg-gray-50"),children:[
|
|
81
|
-
/* @__PURE__ */E("td",{className:"px-3 h-8 flex items-center gap-2",children:["folder"===t.kind?/* @__PURE__ */L(k,{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}):/* @__PURE__ */L(k,{name:"page",className:"h-4 w-4 text-gray-400 shrink-0",strokeWidth:1.5}),
|
|
82
|
-
/* @__PURE__ */L("span",{className:"truncate",title:t.name,children:t.name})]}),
|
|
83
|
-
/* @__PURE__ */L("td",{className:"px-3 h-8 text-right tabular-nums text-gray-500",children:"folder"===t.kind?"—":w(t.size)}),
|
|
84
|
-
/* @__PURE__ */L("td",{className:"px-3 h-8 text-right text-gray-500 tabular-nums",children:S(t.modifiedAt)}),
|
|
85
|
-
/* @__PURE__ */L("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:!P&&/* @__PURE__ */E(T,{children:["file"===t.kind&&/* @__PURE__ */L("button",{onClick:e=>{e.stopPropagation(),xe(t)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-gray-500 text-2xs",children:"Download"}),
|
|
86
|
-
/* @__PURE__ */L("button",{onClick:e=>{e.stopPropagation(),(async e=>{const t=await b({title:`Rename ${e.kind}`,defaultValue:e.name,confirmLabel:"Rename"});if(!t||t===e.name)return;if(/[\\/]/.test(t))return void x.error("Names cannot contain slashes");const a=O(A,e.name),r=O(A,t),n=await he(`${I}/api/rename`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:a,to:r})});if(!n.ok){const e=await n.json().catch(()=>({}));return void x.error(e.error||`Rename failed (${n.status})`)}ue(A)})(t)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-gray-500 text-2xs ml-1",children:"Rename"}),
|
|
87
|
-
/* @__PURE__ */L("button",{onClick:e=>{e.stopPropagation(),(async e=>{if(!await y({title:`Delete ${e.kind}`,message:`"${e.name}"${"folder"===e.kind?" and everything inside":""} will be permanently removed.`,confirmLabel:"Delete",variant:"danger"}))return;const t=O(A,e.name),a=await he(`${I}/api/files?path=${encodeURIComponent(t)}`,{method:"DELETE"});if(!a.ok){const e=await a.json().catch(()=>({}));return void x.error(e.error||`Delete failed (${a.status})`)}ue(A)})(t)},className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Delete"})]})})]},t.name))})]})})]})})}),Y&&/* @__PURE__ */L("div",{className:"absolute inset-0 bg-blue-500/15 border-4 border-dashed border-blue-500 pointer-events-none flex items-center justify-center z-20",children:/* @__PURE__ */L("div",{className:"px-4 py-2 rounded-md bg-blue-600 text-white text-sm font-medium shadow-lg",children:"Drop to upload"})})]})}export{I as default};
|
package/dist/Sidebar-VLTBZW7T.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import{useAuth as e,parseOpenSections as t,readStored as a,RAIL_OPEN_SECTIONS_KEY as r,RAIL_WIDTH_KEY as n,toggleOpenSection as i,writeStored as l}from"./chunk-M4RQIHBG.js";import{partitionNav as o,openGlobalSearch as s,flyoutGroups as c,visibleSectionItems as d,rowsContainRoute as m,visibleNavChildren as h,BrandMark as u}from"./chunk-2ZRX3NRH.js";import{ResizeHandle as p}from"./chunk-6I4ZV67D.js";import{IconButton_default as b}from"./chunk-EU4BCXGA.js";import{navSections as g,startMenuCategories as f,TAB_STRIP_H as y,RAIL_W as x,RAIL_MAX_W as k,RAIL_MIN_W as v,navIcons as N,sectionIcons as C}from"./chunk-HWH4UHIU.js";import"./chunk-5A7MWTXX.js";import{PopupMenu as w,PopupMenuItem as j,PopupMenuDivider as S,PopupMenuLabel as z}from"./chunk-YJIG2KT3.js";import"./chunk-UVBK6YSR.js";import"./chunk-RDLWLATO.js";import"./chunk-7IQ3B77H.js";import"./chunk-D65T4H6J.js";import"./chunk-FIEA5CGB.js";import"./chunk-K7PQXJO7.js";import{Icon as L}from"./chunk-76DRQSJM.js";import{useShellStrings as $}from"./chunk-2EJRVQ3Y.js";import"./chunk-C3QOHMR6.js";import"./chunk-2J6F4EE7.js";import{useMemo as A,useState as I,useRef as R,useEffect as W,isValidElement as H,cloneElement as K}from"react";import{jsx as B,jsxs as M,Fragment as T}from"react/jsx-runtime";var J="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform),D=(e,t)=>["flex h-(--row-height-menu) w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium transition-colors",t?"justify-center px-0":"",e?"bg-gray-100 text-gray-900":"text-gray-600 hover:bg-gray-100 hover:text-gray-900"].join(" "),O="flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-[18px]";function Q({open:e}){/* @__PURE__ */
|
|
2
|
-
return B(L,{name:"chevron-down",className:"size-4 shrink-0 transition-transform "+(e?"rotate-180":""),strokeWidth:2,"aria-hidden":"true"})}function _({dir:e}){/* @__PURE__ */
|
|
3
|
-
return B(L,"left"===e?{name:"chevron-double-left",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"}:{name:"chevron-double-right",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"})}function E({className:e}){/* @__PURE__ */
|
|
4
|
-
return B(L,{name:"search",className:e,strokeWidth:2,"aria-hidden":"true"})}var U=e=>.75+1.75*e+"rem";function X({width:X,collapsed:G,onToggleCollapsed:P,onResize:V,onHome:Y,onOpen:F,activeRoute:Z,profile:q,user:ee,onLogout:te,onSwitchToDesktop:ae,onReportBug:re,onClose:ne,navSections:ie=g,navIcons:le=N,sectionIcons:oe=C,categories:se=f,productName:ce,productIcon:de,tagline:me,adaptiveLogo:he=!1,logoHasAlpha:ue=null,logoIsLight:pe=null}){const be=$().layout,{hasAnyPerm:ge}=e(),fe=A(()=>o(ie,se,ge),[ie,se,ge]),[ye,xe]=I(()=>t(a(r))),ke=e=>xe(t=>{const a=i(t,e);return l(r,JSON.stringify([...a])),a}),[ve,Ne]=I(null),[Ce,we]=I(!1),je=R(null);W(()=>{G||Ne(null)},[G]);const Se=(e,t)=>{Ne(null),e.onSelect?e.onSelect():F(e.to,!!t&&(e=>e.metaKey||e.ctrlKey||1===e.button)(t))},ze=(e,t)=>{const a=t[e];/* @__PURE__ */
|
|
5
|
-
return B("span",{className:O,"aria-hidden":"true",children:a&&H(a)?K(a,{className:"size-[18px]"}):a})},Le=(e,t)=>{const a=h(e,ge),r=e.menuLabel??e.label;if(a.length>0){const n=`child:${e.to}`,i=ye.has(n),l=!i&&m(a,Z,ge);/* @__PURE__ */
|
|
6
|
-
return M("div",{children:[
|
|
7
|
-
/* @__PURE__ */M("button",{type:"button",onClick:()=>ke(n),"aria-expanded":i,className:D(l,!1),style:t>0?{paddingLeft:U(t)}:void 0,children:[0===t&&ze(e.to,le),
|
|
8
|
-
/* @__PURE__ */B("span",{className:"min-w-0 flex-1 truncate",children:r}),
|
|
9
|
-
/* @__PURE__ */B(Q,{open:i})]}),i&&/* @__PURE__ */B("div",{className:"space-y-0.5 pt-0.5",children:a.map(e=>Le(e,t+1))}),e.dividerAfter&&/* @__PURE__ */B("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:U(t)},"aria-hidden":"true"})]},e.to)}const n=e.to===Z;/* @__PURE__ */
|
|
10
|
-
return M("div",{children:[
|
|
11
|
-
/* @__PURE__ */M("button",{type:"button",onClick:t=>Se(e,t),onAuxClick:t=>{1===t.button&&Se(e,t)},"aria-current":n?"page":void 0,className:D(n,!1),style:t>0?{paddingLeft:U(t)}:void 0,children:[0===t&&ze(e.to,le),
|
|
12
|
-
/* @__PURE__ */B("span",{className:"min-w-0 flex-1 truncate",children:r})]}),e.dividerAfter&&/* @__PURE__ */B("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:U(t)},"aria-hidden":"true"})]},e.to)},$e=(e,t)=>{const a=t?e.items:d(e,ge);if(0===a.length)return null;const r="icon"in e&&e.icon?/* @__PURE__ */B("span",{className:O,"aria-hidden":"true",children:e.icon}):ze(e.label,oe),n=e.menuLabel??e.label,i=m(a,Z,ge),l="dividerAfter"in e&&e.dividerAfter;if(G)/* @__PURE__ */
|
|
13
|
-
return M("div",{children:[
|
|
14
|
-
/* @__PURE__ */B("button",{type:"button",title:n,"aria-label":n,"aria-haspopup":"menu","aria-expanded":ve?.label===e.label,onClick:t=>{const r=t.currentTarget.getBoundingClientRect();Ne(t=>t?.label===e.label?null:{label:e.label,items:a,top:r.top})},className:D(i||ve?.label===e.label,!0),children:r}),l&&/* @__PURE__ */B("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"})]},e.label);const o=ye.has(e.label),s=`rosh-rail-${e.label.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}`;/* @__PURE__ */
|
|
15
|
-
return M("div",{children:[
|
|
16
|
-
/* @__PURE__ */M("button",{type:"button",onClick:()=>ke(e.label),"aria-expanded":o,"aria-controls":s,className:D(!o&&i,!1),children:[r,
|
|
17
|
-
/* @__PURE__ */B("span",{className:"min-w-0 flex-1 truncate",children:n}),
|
|
18
|
-
/* @__PURE__ */B(Q,{open:o})]}),
|
|
19
|
-
/* @__PURE__ */B("div",{id:s,role:"group","aria-label":n,hidden:!o,className:"space-y-0.5 pt-0.5",children:o&&a.map(e=>Le(e,1))}),l&&/* @__PURE__ */B("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"})]},e.label)},Ae=q?.first_name?`${q.first_name} ${q.last_name||""}`.trim():ee?.email||"",Ie=(q?.first_name?.charAt(0)||ee?.email?.charAt(0)||"?").toUpperCase(),Re=q?.avatar_url?/* @__PURE__ */B("img",{src:q.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */B("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:Ie}),We=Ce?je.current?.getBoundingClientRect():void 0,He=G?"px-1":"px-3",Ke=`${G?be.expandSidebar:be.collapseSidebar} (${J?"⌘":"Ctrl"} .)`,Be=Y?{run:Y,label:be.goHome,title:be.goHome}:ne?null:{run:P,label:G?be.expandSidebar:be.collapseSidebar,title:Ke},Me=/* @__PURE__ */M(T,{children:[de&&/* @__PURE__ */B(u,{src:de,alt:"",slot:"compact",surface:"light",adaptive:he,hasAlpha:ue,isLight:pe,size:28,decorative:!0}),!G&&/* @__PURE__ */M("span",{className:"min-w-0 text-left leading-tight",children:[
|
|
20
|
-
/* @__PURE__ */B("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:ce??"Apps"}),me&&/* @__PURE__ */B("span",{className:"block truncate text-2xs font-medium text-gray-500",children:me})]})]}),Te=fe.erpSections.length>0||fe.systemSections.length>0||fe.virtualSections.length>0;/* @__PURE__ */
|
|
21
|
-
return M("aside",{"aria-label":be.navLabel,className:"fixed left-0 top-0 z-(--z-sidebar) flex h-dvh flex-col border-r border-gray-200 bg-white text-gray-800",style:{width:X},children:[
|
|
22
|
-
/* @__PURE__ */M("div",{className:"flex shrink-0 items-center border-b border-gray-200 "+(G?"justify-center":"justify-between gap-2 pl-4 pr-2"),style:{height:y},children:[Be?/* @__PURE__ */B("button",{type:"button",onClick:Be.run,"aria-label":Be.label,title:Be.title,className:"flex min-w-0 items-center gap-2 rounded-md transition-colors hover:bg-gray-100 "+(G?"justify-center p-0.5":"-ml-1 p-1"),children:Me}):/* @__PURE__ */B("span",{className:"flex min-w-0 items-center gap-2",children:Me}),ne?/* @__PURE__ */B(b,{onClick:ne,"aria-label":be.closeMenu,children:/* @__PURE__ */B(L,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})}):!G&&/* @__PURE__ */B("button",{type:"button",onClick:P,"aria-label":be.collapseSidebar,title:`${be.collapseSidebar} (${J?"⌘":"Ctrl"} .)`,className:"flex size-8 shrink-0 items-center justify-center rounded-md text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900",children:/* @__PURE__ */B(_,{dir:"left"})})]}),
|
|
23
|
-
/* @__PURE__ */B("div",{className:`shrink-0 pt-3 ${He}`,children:G?/* @__PURE__ */B("button",{type:"button",onClick:s,"aria-label":be.search,title:`${be.search} (${J?"⌘K":"Ctrl K"})`,className:D(!1,!0),children:/* @__PURE__ */B(E,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */M("button",{type:"button",onClick:s,className:"flex h-(--row-height-menu) w-full items-center gap-2 rounded-md border border-gray-200 bg-white px-3 text-left transition-colors hover:bg-gray-100",children:[
|
|
24
|
-
/* @__PURE__ */B(E,{className:"size-3.5 text-gray-500"}),
|
|
25
|
-
/* @__PURE__ */B("span",{className:"min-w-0 flex-1 truncate text-sm text-gray-500",children:be.search}),
|
|
26
|
-
/* @__PURE__ */B("kbd",{className:"rounded border border-gray-200 bg-gray-100 px-2 py-0.5 font-mono text-2xs font-semibold text-gray-500",children:J?"⌘K":"Ctrl K"})]})}),
|
|
27
|
-
/* @__PURE__ */M("nav",{"aria-label":be.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${He} ${G?"space-y-1":"space-y-0.5"}`,children:[G&&/* @__PURE__ */B("button",{type:"button",onClick:P,"aria-label":be.expandSidebar,title:`${be.expandSidebar} (${J?"⌘":"Ctrl"} .)`,className:`${D(!1,!0)} mb-3`,children:/* @__PURE__ */B(_,{dir:"right"})}),fe.topItems.map(e=>{if(!G)return Le(e,0);const t=h(e,ge),a=e.to===Z||m(t,Z,ge),r=e.menuLabel??e.label;/* @__PURE__ */
|
|
28
|
-
return M("div",{children:[
|
|
29
|
-
/* @__PURE__ */B("button",{type:"button",title:r,"aria-label":r,onClick:a=>{if(0===t.length)return void Se(e,a);const r=a.currentTarget.getBoundingClientRect();Ne(a=>a?.label===e.to?null:{label:e.to,items:t,top:r.top})},className:D(a,!0),children:ze(e.to,le)}),e.dividerAfter&&/* @__PURE__ */B("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"})]},e.to)}),fe.topItems.length>0&&Te&&!fe.topItems[fe.topItems.length-1].dividerAfter&&/* @__PURE__ */B("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"}),fe.erpSections.map(e=>$e(e,!1)),fe.systemSections.map(e=>$e(e,!1)),fe.virtualSections.map(e=>$e(e,!0)),fe.footerSections.length>0&&/* @__PURE__ */B("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"}),fe.footerSections.map(e=>$e(e,!1))]}),
|
|
30
|
-
/* @__PURE__ */B("div",{className:`shrink-0 border-t border-gray-200 py-2 ${He}`,children:/* @__PURE__ */M("button",{ref:je,type:"button",onClick:()=>we(e=>!e),"aria-haspopup":"menu","aria-expanded":Ce,"aria-label":G?be.accountMenu(Ae):void 0,className:"flex w-full items-center gap-3 rounded-md hover:bg-gray-100 "+(G?"justify-center py-2":"px-2 py-2"),children:[Re,!G&&/* @__PURE__ */M("span",{className:"min-w-0 flex-1 text-left",children:[
|
|
31
|
-
/* @__PURE__ */B("span",{className:"block truncate text-sm font-semibold text-gray-800",children:Ae}),ee?.email&&Ae!==ee.email&&/* @__PURE__ */B("span",{className:"block truncate text-2xs text-gray-500",children:ee.email})]})]})}),V&&!G&&!ne&&/* @__PURE__ */B(p,{side:"left",width:X,onResize:V,min:v,max:k,defaultWidth:x,storageKey:n,label:be.resizeSidebar}),Ce&&We&&/* @__PURE__ */M(w,{portal:!0,minWidth:224,onClose:()=>we(!1),style:{left:We.left,bottom:window.innerHeight-We.top+8},children:[G&&/* @__PURE__ */M("div",{className:"border-b border-gray-200 px-3 py-3",children:[
|
|
32
|
-
/* @__PURE__ */B("p",{className:"truncate text-sm font-semibold text-gray-800",children:Ae}),ee?.email&&/* @__PURE__ */B("p",{className:"truncate text-xs text-gray-500",children:ee.email})]}),
|
|
33
|
-
/* @__PURE__ */M(j,{onClick:()=>{we(!1),F("/profile",!1)},children:[
|
|
34
|
-
/* @__PURE__ */B(L,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),be.profile]}),fe.footerItems.map(e=>/* @__PURE__ */M(j,{onClick:()=>{we(!1),Se(e)},children:[
|
|
35
|
-
/* @__PURE__ */B("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:le[e.to]}),e.menuLabel??e.label]},e.to)),re&&/* @__PURE__ */M(j,{onClick:()=>{we(!1),re()},children:[
|
|
36
|
-
/* @__PURE__ */B(L,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),be.reportIssue]}),
|
|
37
|
-
/* @__PURE__ */B(S,{}),ae&&/* @__PURE__ */M(T,{children:[
|
|
38
|
-
/* @__PURE__ */M(j,{onClick:()=>{we(!1),ae()},children:[
|
|
39
|
-
/* @__PURE__ */B(L,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),be.switchToDesktop]}),
|
|
40
|
-
/* @__PURE__ */B(S,{})]}),
|
|
41
|
-
/* @__PURE__ */M(j,{danger:!0,onClick:()=>{we(!1),te()},children:[
|
|
42
|
-
/* @__PURE__ */B(L,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),be.signOut]})]}),ve&&G&&/* @__PURE__ */B(w,{portal:!0,minWidth:220,onClose:()=>Ne(null),style:{left:X+6,top:Math.min(ve.top,window.innerHeight-48*Math.min(ve.items.length,10)-16)},children:c(ve.items,ge).map((e,t)=>/* @__PURE__ */M("div",{role:e.heading?"group":void 0,"aria-label":e.heading?e.heading.menuLabel??e.heading.label:void 0,children:[t>0&&/* @__PURE__ */B(S,{}),e.heading&&/* @__PURE__ */B(z,{children:e.heading.menuLabel??e.heading.label}),e.items.map(e=>/* @__PURE__ */M(j,{onClick:()=>Se(e),children:[ze(e.to,le),
|
|
43
|
-
/* @__PURE__ */B("span",{className:e.to===Z?"font-semibold":"",children:e.menuLabel??e.label})]},e.to))]},e.heading?.to??`run-${t}`))})]})}export{X as default};
|
package/dist/chunk-GODKUFB6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="7.68.0",a=r;export{a as APP_VERSION,r as VERSION};
|
package/dist/chunk-HWH4UHIU.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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=40,h=240,f=40,p=200,w=420,y="react-os-shell:work-area-changed";function g(){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 b(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 v({over:t,residual:e},r){return e<=1||t-e>=r-2}function x(t,e,r){let n=t;for(const o of r)v(o,e)&&(n=Math.max(n,t+o.over));return Math.ceil(n)}function M(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 P(){return(parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sidebar-width"))||0)>0}function k(){return"undefined"!=typeof document&&"sidebar"===getComputedStyle(document.documentElement).getPropertyValue("--layout-mode")?.trim()}export{f as RAIL_COLLAPSED_W,w as RAIL_MAX_W,p as RAIL_MIN_W,h as RAIL_W,d as ShellAuthProvider,l as TAB_STRIP_H,y as WORK_AREA_CHANGED_EVENT,b as boxFillsWorkArea,g as computeMaximizedBox,M as growBoxToWidth,P as isSidebarStripReserved,o as navIcons,i as navSections,k as readAlwaysMaximizedFlag,v as scrollerIsFluid,u as sectionIcons,a as setShellNavIcons,c as startMenuCategories,m as useShellAuth,x as widthToFit};
|