efficient-shell 9.10.0 → 9.11.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.
@@ -1 +1 @@
1
- export{startClientTelemetry}from"../chunk-DWSCYYDM.js";import"../chunk-KNUR2UEG.js";import"../chunk-HSTIEPLI.js";
1
+ export{startClientTelemetry}from"../chunk-5EM5US6A.js";import"../chunk-KNUR2UEG.js";import"../chunk-JG6DATT4.js";
package/dist/ui/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import"../chunk-DSIDJYH7.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{DataTablePage}from"../chunk-3MHBALGV.js";export{EmailTemplate}from"../chunk-VZV7Q5V2.js";export{ErrorBoundary}from"../chunk-BNKULSCG.js";export{ErrorPage}from"../chunk-FEPBXJUR.js";export{FormLayoutPage}from"../chunk-VBNA237H.js";export{GalleryTemplate}from"../chunk-JQDRM6UK.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-IZQ3XTD2.js";export{ChatTemplate}from"../chunk-YBU7NOD7.js";export{CheckoutTemplate}from"../chunk-YQB5OYDC.js";export{DashboardTemplate}from"../chunk-5VYBPDZ2.js";export{TopNav}from"../chunk-EGAV5LSX.js";export{Statistic}from"../chunk-BF7PZFKT.js";export{Stepper}from"../chunk-Q7HN6T3H.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-A6RB4PIX.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-GP5UNEKY.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-5AWV5R6E.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-EWJELWIT.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-AG63JVX7.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-HRAK46H7.js";export{ResizeHandle}from"../chunk-V5QEPNPK.js";export{SettingReset}from"../chunk-2AHLONPR.js";export{SettingRow}from"../chunk-XREN3AKD.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-O4NPQ23Q.js";export{MetricBar}from"../chunk-KECOZKJU.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-IENPHB5B.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-3XRBVYTO.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-2SJDTKQA.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-YDEIXM2A.js";export{PageHeader}from"../chunk-O426Q7KC.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-EIUCHQI2.js";export{GlobalSearch,openGlobalSearch}from"../chunk-MUHWI4GK.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-5XNN2SSR.js";export{IconRail,IconRailButton}from"../chunk-TQH6E5V2.js";import"../chunk-FQEALPZJ.js";export{EditableGrid}from"../chunk-5CVQN2BR.js";export{Avatar,AvatarGroup}from"../chunk-65DYHG73.js";export{BudgetBar,budgetState}from"../chunk-N52D37FS.js";export{Card,StatCard}from"../chunk-5RAOFJYT.js";export{ContainerFillChart}from"../chunk-T2ITXX7R.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-64R3IYAM.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-SGR4V5YI.js";export{CountBadge}from"../chunk-5Q3PFKB5.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-UL4G6JY2.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-QTV3Y3UT.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{WidthsBar}from"../chunk-IVY7CCTS.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{Snippet}from"../chunk-5R6RNUDB.js";export{SplitButton_default as SplitButton}from"../chunk-POCQ7ZL4.js";export{Switch_default as Switch}from"../chunk-BWIX3YIH.js";export{TagInput}from"../chunk-2LDOLQ7F.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-LFPJ263N.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-46YVA2BF.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-NCRLKFXD.js";export{PositionInput}from"../chunk-73W7537K.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-REGXKU74.js";export{Slider,SliderGroup}from"../chunk-WIOG2NOJ.js";export{LinkPicker,TextLinkField}from"../chunk-GVAWCTJN.js";export{SearchableSelect}from"../chunk-TRUPMMDJ.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-HHOXLECO.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-G6LOKIFC.js";import"../chunk-JVYSRH6U.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{EmptyState}from"../chunk-QSUQC4AN.js";export{ImageLightbox,lightboxKind}from"../chunk-7YZJLFAK.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-5Y6LGPZI.js";export{Breadcrumbs}from"../chunk-NGQHXTUK.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{mediaLibraryMenu}from"../chunk-XI45TSEK.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-WZQCRTXF.js";import"../chunk-H4YFANH5.js";export{DropdownMenu}from"../chunk-PVR4KU7H.js";export{NativeSelect,Select_default as Select}from"../chunk-4DBPKTVX.js";import"../chunk-EO5RLFRX.js";import"../chunk-5F7HMNCX.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-JECMVR4S.js";export{MediaUsedInList}from"../chunk-T7O2TNNX.js";export{NumericKeypad}from"../chunk-EOWOVR55.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-2YLG32JY.js";export{FilePicker_default as FilePicker}from"../chunk-FKA6ZVQO.js";export{FormErrorSummary}from"../chunk-KTRNAMHY.js";export{IconPicker}from"../chunk-R7JTTKG2.js";export{CornersInput}from"../chunk-7IC4JMFA.js";export{DatePicker_default as DatePicker}from"../chunk-X4BKHXU5.js";export{DateRangePicker,toISODate}from"../chunk-KQSUSVMF.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-6O2W4X2V.js";export{DisplayChips}from"../chunk-4SZ3NNVF.js";export{slugify}from"../chunk-24AL3CDS.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{AlignmentGrid}from"../chunk-M554OMPA.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-KOSV4UPK.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-IEPSBXMU.js";export{Popover}from"../chunk-7JGR7WPD.js";export{InputNumber_default as InputNumber}from"../chunk-ODOEH5QZ.js";export{useInSettingRow,useSettingAuto,useSettingRowName}from"../chunk-L65BESIE.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{BrandAssetEditor}from"../chunk-BRHKQMRH.js";export{MediaUploadField}from"../chunk-UYDP4DK3.js";export{FormField}from"../chunk-6KBDNYRW.js";export{ImageFocusPoint}from"../chunk-6TRE326A.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{Segmented}from"../chunk-CKPVXDKX.js";import"../chunk-JDQGHQ2C.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar,fromKey as fromDateKey,toKey as toDateKey}from"../chunk-E72USUUR.js";export{DataTable}from"../chunk-UZGVIHFI.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-PWBLGKQ3.js";export{ListFooter}from"../chunk-NRGBXEBU.js";export{ListLoadError}from"../chunk-YWR2WRDR.js";export{Pagination}from"../chunk-P65C5TUU.js";export{WaterfallChart}from"../chunk-CJI3POCE.js";export{SankeyChart}from"../chunk-N3CTLEJS.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-GCB5S2OI.js";export{StatTile}from"../chunk-M5MAIJQQ.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-RSHNWBW2.js";export{TreemapChart}from"../chunk-D7JY2KHG.js";export{squarify}from"../chunk-46BYGPGD.js";export{HeatmapChart}from"../chunk-J7OKOVSL.js";export{HistogramChart}from"../chunk-QYJQAY6C.js";export{Meter}from"../chunk-E6EUGQGA.js";export{PieChart}from"../chunk-KAHYUBXM.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-CBMXYXBH.js";export{RadialBarChart}from"../chunk-ZC3CCRPG.js";export{RangeChart}from"../chunk-TBLN4MDQ.js";export{RankedBars}from"../chunk-QLOKT22X.js";export{ChordChart}from"../chunk-SC6HJBQA.js";import"../chunk-TBPHW42V.js";export{FunnelChart}from"../chunk-I5XVZLDH.js";export{StepChain,StepChainItem}from"../chunk-RBD7SB6M.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-7JJUI52C.js";export{Divider}from"../chunk-DFOFEBYX.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{ContextMenu,useContextMenu}from"../chunk-IQWIYZB5.js";export{Banner}from"../chunk-7WLFHDWA.js";import"../chunk-XS4HFUTW.js";export{Input_default as Input}from"../chunk-MAMWQCJ6.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-AGETTWMK.js";export{IconButton_default as IconButton}from"../chunk-RUTUVS4H.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{mediaFileName}from"../chunk-D4KZOYXQ.js";export{TransferProgress}from"../chunk-BJONHLET.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-LYX55RI3.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-CFO54C3H.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-X2S2XDZI.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-5OTS2G3M.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{TimeSeriesChart}from"../chunk-PTA7A7GF.js";export{ChartBrush}from"../chunk-QMYQ4B5A.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-2GPHHW7C.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-NBKQADMY.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-MCMUJDEP.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-RLLONZJJ.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-ZDMZM7HD.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-QLYOGT3U.js";export{Dialog}from"../chunk-T76X2SHR.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{ItemCount}from"../chunk-DRNB7KDC.js";import"../chunk-4AJRHTTB.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-4XZXY2AF.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ColoredBadge}from"../chunk-H2XCQJRG.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{VERSION}from"../chunk-HSTIEPLI.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-FPGRKHUW.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-LNARMEEZ.js";export{Button_default as Button}from"../chunk-NHH2MXFU.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-HL6JSDN3.js";export{Icon}from"../chunk-FSPFV4MI.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-OZAAIE4E.js";export{Tooltip}from"../chunk-BCDG4N6L.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{BoxPlotChart}from"../chunk-IBIUI2D3.js";export{CandlestickChart}from"../chunk-CB6ROWOC.js";export{ChartTooltip}from"../chunk-TLRCTNUF.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-DTJRIWFR.js";export{CartesianPlot}from"../chunk-4CPE5NBC.js";import"../chunk-QCFN3ET4.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-PEM7UXQ3.js";import"../chunk-C3QOHMR6.js";
2
+ import"../chunk-DSIDJYH7.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{DataTablePage}from"../chunk-3MHBALGV.js";export{EmailTemplate}from"../chunk-VZV7Q5V2.js";export{ErrorBoundary}from"../chunk-BNKULSCG.js";export{ErrorPage}from"../chunk-FEPBXJUR.js";export{FormLayoutPage}from"../chunk-VBNA237H.js";export{GalleryTemplate}from"../chunk-JQDRM6UK.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-IZQ3XTD2.js";export{ChatTemplate}from"../chunk-YBU7NOD7.js";export{CheckoutTemplate}from"../chunk-YQB5OYDC.js";export{DashboardTemplate}from"../chunk-5VYBPDZ2.js";export{TopNav}from"../chunk-EGAV5LSX.js";export{Statistic}from"../chunk-BF7PZFKT.js";export{Stepper}from"../chunk-Q7HN6T3H.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-A6RB4PIX.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-GP5UNEKY.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-5AWV5R6E.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-EWJELWIT.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-AG63JVX7.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-HRAK46H7.js";export{ResizeHandle}from"../chunk-V5QEPNPK.js";export{SettingReset}from"../chunk-2AHLONPR.js";export{SettingRow}from"../chunk-XREN3AKD.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-O4NPQ23Q.js";export{MetricBar}from"../chunk-KECOZKJU.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-IENPHB5B.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-3XRBVYTO.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-2SJDTKQA.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-YDEIXM2A.js";export{PageHeader}from"../chunk-O426Q7KC.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-EIUCHQI2.js";export{GlobalSearch,openGlobalSearch}from"../chunk-MUHWI4GK.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-5XNN2SSR.js";export{IconRail,IconRailButton}from"../chunk-TQH6E5V2.js";import"../chunk-FQEALPZJ.js";export{EditableGrid}from"../chunk-5CVQN2BR.js";export{Avatar,AvatarGroup}from"../chunk-65DYHG73.js";export{BudgetBar,budgetState}from"../chunk-N52D37FS.js";export{Card,StatCard}from"../chunk-5RAOFJYT.js";export{ContainerFillChart}from"../chunk-T2ITXX7R.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-64R3IYAM.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-SGR4V5YI.js";export{CountBadge}from"../chunk-5Q3PFKB5.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-UL4G6JY2.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-QTV3Y3UT.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{WidthsBar}from"../chunk-IVY7CCTS.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{Snippet}from"../chunk-5R6RNUDB.js";export{SplitButton_default as SplitButton}from"../chunk-POCQ7ZL4.js";export{Switch_default as Switch}from"../chunk-BWIX3YIH.js";export{TagInput}from"../chunk-2LDOLQ7F.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-LFPJ263N.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-46YVA2BF.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-NCRLKFXD.js";export{PositionInput}from"../chunk-73W7537K.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-REGXKU74.js";export{Slider,SliderGroup}from"../chunk-WIOG2NOJ.js";export{LinkPicker,TextLinkField}from"../chunk-GVAWCTJN.js";export{SearchableSelect}from"../chunk-TRUPMMDJ.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-HHOXLECO.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-G6LOKIFC.js";import"../chunk-JVYSRH6U.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{EmptyState}from"../chunk-QSUQC4AN.js";export{ImageLightbox,lightboxKind}from"../chunk-7YZJLFAK.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-5Y6LGPZI.js";export{Breadcrumbs}from"../chunk-NGQHXTUK.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{mediaLibraryMenu}from"../chunk-XI45TSEK.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-WZQCRTXF.js";import"../chunk-H4YFANH5.js";export{DropdownMenu}from"../chunk-PVR4KU7H.js";export{NativeSelect,Select_default as Select}from"../chunk-4DBPKTVX.js";import"../chunk-EO5RLFRX.js";import"../chunk-5F7HMNCX.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-JECMVR4S.js";export{MediaUsedInList}from"../chunk-T7O2TNNX.js";export{NumericKeypad}from"../chunk-EOWOVR55.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-2YLG32JY.js";export{FilePicker_default as FilePicker}from"../chunk-FKA6ZVQO.js";export{FormErrorSummary}from"../chunk-KTRNAMHY.js";export{IconPicker}from"../chunk-R7JTTKG2.js";export{CornersInput}from"../chunk-7IC4JMFA.js";export{DatePicker_default as DatePicker}from"../chunk-X4BKHXU5.js";export{DateRangePicker,toISODate}from"../chunk-KQSUSVMF.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-6O2W4X2V.js";export{DisplayChips}from"../chunk-4SZ3NNVF.js";export{slugify}from"../chunk-24AL3CDS.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{AlignmentGrid}from"../chunk-M554OMPA.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-KOSV4UPK.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-IEPSBXMU.js";export{Popover}from"../chunk-7JGR7WPD.js";export{InputNumber_default as InputNumber}from"../chunk-ODOEH5QZ.js";export{useInSettingRow,useSettingAuto,useSettingRowName}from"../chunk-L65BESIE.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{BrandAssetEditor}from"../chunk-BRHKQMRH.js";export{MediaUploadField}from"../chunk-UYDP4DK3.js";export{FormField}from"../chunk-6KBDNYRW.js";export{ImageFocusPoint}from"../chunk-6TRE326A.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{Segmented}from"../chunk-CKPVXDKX.js";import"../chunk-JDQGHQ2C.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar,fromKey as fromDateKey,toKey as toDateKey}from"../chunk-E72USUUR.js";export{DataTable}from"../chunk-UZGVIHFI.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-PWBLGKQ3.js";export{ListFooter}from"../chunk-NRGBXEBU.js";export{ListLoadError}from"../chunk-YWR2WRDR.js";export{Pagination}from"../chunk-P65C5TUU.js";export{WaterfallChart}from"../chunk-CJI3POCE.js";export{SankeyChart}from"../chunk-N3CTLEJS.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-GCB5S2OI.js";export{StatTile}from"../chunk-M5MAIJQQ.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-RSHNWBW2.js";export{TreemapChart}from"../chunk-D7JY2KHG.js";export{squarify}from"../chunk-46BYGPGD.js";export{HeatmapChart}from"../chunk-J7OKOVSL.js";export{HistogramChart}from"../chunk-QYJQAY6C.js";export{Meter}from"../chunk-E6EUGQGA.js";export{PieChart}from"../chunk-KAHYUBXM.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-CBMXYXBH.js";export{RadialBarChart}from"../chunk-ZC3CCRPG.js";export{RangeChart}from"../chunk-TBLN4MDQ.js";export{RankedBars}from"../chunk-QLOKT22X.js";export{ChordChart}from"../chunk-SC6HJBQA.js";import"../chunk-TBPHW42V.js";export{FunnelChart}from"../chunk-I5XVZLDH.js";export{StepChain,StepChainItem}from"../chunk-RBD7SB6M.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-7JJUI52C.js";export{Divider}from"../chunk-DFOFEBYX.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{ContextMenu,useContextMenu}from"../chunk-IQWIYZB5.js";export{Banner}from"../chunk-7WLFHDWA.js";import"../chunk-XS4HFUTW.js";export{Input_default as Input}from"../chunk-MAMWQCJ6.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-AGETTWMK.js";export{IconButton_default as IconButton}from"../chunk-RUTUVS4H.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{mediaFileName}from"../chunk-D4KZOYXQ.js";export{TransferProgress}from"../chunk-BJONHLET.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-LYX55RI3.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-UEIJSV45.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-X2S2XDZI.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-5OTS2G3M.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{TimeSeriesChart}from"../chunk-GVH3NG6G.js";export{ChartBrush}from"../chunk-QMYQ4B5A.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-2GPHHW7C.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-NBKQADMY.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-MCMUJDEP.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-RLLONZJJ.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-ZDMZM7HD.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-QLYOGT3U.js";export{Dialog}from"../chunk-T76X2SHR.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{ItemCount}from"../chunk-DRNB7KDC.js";import"../chunk-4AJRHTTB.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-4XZXY2AF.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ColoredBadge}from"../chunk-H2XCQJRG.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{VERSION}from"../chunk-JG6DATT4.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-FPGRKHUW.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-LNARMEEZ.js";export{Button_default as Button}from"../chunk-NHH2MXFU.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-HL6JSDN3.js";export{Icon}from"../chunk-FSPFV4MI.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-OZAAIE4E.js";export{Tooltip}from"../chunk-BCDG4N6L.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{BoxPlotChart}from"../chunk-IBIUI2D3.js";export{CandlestickChart}from"../chunk-CB6ROWOC.js";export{ChartTooltip}from"../chunk-TLRCTNUF.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-DTJRIWFR.js";export{CartesianPlot}from"../chunk-4CPE5NBC.js";import"../chunk-QCFN3ET4.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-PEM7UXQ3.js";import"../chunk-C3QOHMR6.js";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export{APP_VERSION,VERSION}from"./chunk-HSTIEPLI.js";
1
+ export{APP_VERSION,VERSION}from"./chunk-JG6DATT4.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-shell",
3
- "version": "9.10.0",
3
+ "version": "9.11.0",
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",
@@ -1,88 +0,0 @@
1
- import{openPreviewFile as e}from"./chunk-VANJPZ3H.js";import{SidebarLayout as t}from"./chunk-5AWV5R6E.js";import"./chunk-QWK6DRSN.js";import"./chunk-V5QEPNPK.js";import{Breadcrumbs as a}from"./chunk-NGQHXTUK.js";import{formatBytes as n}from"./chunk-X2S2XDZI.js";import"./chunk-5OTS2G3M.js";import"./chunk-36BRD5J3.js";import{getFilesDemoTree as r}from"./chunk-TGLHJS3M.js";import{AboutApp as i}from"./chunk-IUWAMMDN.js";import{peekFilesViewRequest as s,consumeFilesViewRequest as o,FILES_SHOW_TRASH_EVENT as l,FILES_OPEN_DESKTOP_FOLDER_EVENT as c,subscribeDesktopFolders as d,getDesktopFoldersSnapshot as m,FolderGlyph as h,DesktopItemMiniIcon as p,desktopItemTypeLabel as u}from"./chunk-GSBIJLTD.js";import"./chunk-ESL5TDNA.js";import"./chunk-VTVSMRFX.js";import{useWindowManager as f,WindowTitle as x}from"./chunk-2XBJNB7D.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-RLLONZJJ.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-BYHKYYL6.js";import{confirm as g,prompt as k}from"./chunk-QLYOGT3U.js";import"./chunk-T76X2SHR.js";import"./chunk-KC3EX26K.js";import{ItemCount as b}from"./chunk-DRNB7KDC.js";import"./chunk-4AJRHTTB.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import{toast_default as N}from"./chunk-4XZXY2AF.js";import"./chunk-UGTRSRIW.js";import"./chunk-H2XCQJRG.js";import"./chunk-CDAJKLGL.js";import"./chunk-HSTIEPLI.js";import"./chunk-FPGRKHUW.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-LNARMEEZ.js";import"./chunk-NHH2MXFU.js";import"./chunk-UQYNPYF4.js";import"./chunk-HL6JSDN3.js";import{Icon as y}from"./chunk-FSPFV4MI.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as w}from"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import{TH_ONE_LINE as v}from"./chunk-OZAAIE4E.js";import"./chunk-BCDG4N6L.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-PEM7UXQ3.js";import"./chunk-C3QOHMR6.js";import{useState as j,useEffect as $,useSyncExternalStore as D,useRef as C,useCallback as L}from"react";import{jsxs as T,jsx as E,Fragment as R}from"react/jsx-runtime";var S="undefined"!=typeof window&&window.__REACT_OS_SHELL_FILE_SERVER__||"http://localhost:4000",M={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 P(e,t){return"/"===e||""===e?"/"+t:e.replace(/\/$/,"")+"/"+t}function W(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 U(){const U=S.replace(/\/$/,""),A=null!==r(),[F,I]=j("/"),[H,J]=j([]),[O,B]=j([]),[V,G]=j(null),[K,X]=j(!0),[Q,Z]=j(!1),[z,Y]=j(null),[_,q]=j(!1),[ee,te]=j(()=>{const e=s();return"trash"===e?"trash":e?{desktopFolderId:e.folderId}:"files"});$(()=>{o()},[]);const[ae,ne]=j([]);$(()=>{const e=()=>{o(),te("trash")},t=e=>{o();const t=e.detail?.folderId;t&&te({desktopFolderId:t})};return window.addEventListener(l,e),window.addEventListener(c,t),()=>{window.removeEventListener(l,e),window.removeEventListener(c,t)}},[]);const re=D(d,m,m),ie="object"==typeof ee?ee.desktopFolderId:null,se=ie?re?.folders.find(e=>e.id===ie)??null:null,oe=ie&&re?.itemsByFolder[ie]||[];$(()=>{ie&&re&&!re.folders.some(e=>e.id===ie)&&te("files")},[ie,re]);const le=C(0),ce=C(null),{openPage:de,openEntity:me}=f(),he=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):me(t.entityType,t.entityId,null,t.label)},pe=L((e,t={})=>fetch(e,{...t,credentials:"include"}),[]),ue=L(async()=>{try{const e=await pe(`${U}/api/quota`);if(e.ok){const t=await e.json();Y({used:t.used,limit:t.limit})}}catch{}},[pe,U]),fe=L(async e=>{if(G(null),A){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 J(t),I(e),Z(!1),X(!1),void("/"===e&&B(t.filter(e=>"folder"===e.kind).map(e=>e.name)))}X(!0);try{const t=await pe(`${U}/api/files?path=${encodeURIComponent(e)}`);if(!t.ok){const e=await t.json().catch(()=>({}));return void N.error(e.error||`Failed to list (${t.status})`)}const a=await t.json(),n=a.entries||[];J(n),I(a.path||e),Z(!1),"/"===(a.path||e)&&B(n.filter(e=>"folder"===e.kind).map(e=>e.name))}catch(e){Z(!0)}finally{X(!1)}ue()},[pe,U,ue,A]),xe=L(async()=>{if(A)return ne([]),void X(!1);X(!0),G(null);try{const e=await pe(`${U}/api/trash`);if(!e.ok){const t=await e.json().catch(()=>({}));return void N.error(t.error||`Failed to list trash (${e.status})`)}const t=await e.json();ne(t.entries||[]),Z(!1)}catch{Z(!0)}finally{X(!1)}ue()},[pe,U,ue,A]);$(()=>{"files"===ee?fe(F):"trash"===ee&&xe()},[F,ee]);const ge=async e=>{const t=P(F,e.name);try{const a=await pe(`${U}/api/file?path=${encodeURIComponent(t)}`);if(!a.ok)return void N.error(`Download failed (${a.status})`);const n=await a.blob(),r=URL.createObjectURL(n),i=document.createElement("a");i.href=r,i.download=e.name,i.click(),setTimeout(()=>URL.revokeObjectURL(r),1e3)}catch(e){N.error(e?.message||"Download failed")}},ke=async e=>{const t=Array.from(e);for(const e of t){const t=new FormData;t.append("file",e);try{const a=await pe(`${U}/api/upload?path=${encodeURIComponent(F)}`,{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));N.error(`Quota exceeded — ${n(a)} free, ${e.name} is ${n(t.attempted||e.size)}`)}else N.error(`Upload ${e.name}: ${t.error||a.status}`)}}catch(t){N.error(`Upload ${e.name}: ${t?.message||"failed"}`)}}fe(F)},be=()=>{le.current=0,q(!1)};if($(()=>{const e=()=>be();return window.addEventListener("dragend",e),window.addEventListener("drop",e),()=>{window.removeEventListener("dragend",e),window.removeEventListener("drop",e)}},[]),Q)/* @__PURE__ */
2
- return T("div",{className:"flex flex-col h-full bg-white",children:[
3
- /* @__PURE__ */E(x,{title:"Files - offline"}),
4
- /* @__PURE__ */E("div",{className:"flex-1 flex items-center justify-center p-8 text-center",children:/* @__PURE__ */T("div",{className:"max-w-md",children:[
5
- /* @__PURE__ */E(y,{name:"close-circle",className:"h-12 w-12 mx-auto text-gray-300 mb-3",strokeWidth:1.4}),
6
- /* @__PURE__ */E("h3",{className:"text-base font-semibold text-gray-800 mb-1",children:"Can't reach the file server"}),
7
- /* @__PURE__ */T("p",{className:"text-sm text-gray-500 mb-3",children:["No response from ",
8
- /* @__PURE__ */E("span",{className:"font-mono",children:U}),". Make sure the server is running — see ",
9
- /* @__PURE__ */E("span",{className:"font-mono",children:"examples/file-server/README.md"}),"."]}),
10
- /* @__PURE__ */E("button",{onClick:()=>fe(F),className:"px-3 h-8 text-sm bg-blue-500 text-on-accent rounded hover:bg-blue-600",children:"Retry"})]})})]});const Ne="/"===F?[]:F.split("/").filter(Boolean),ye=z&&z.limit>0?Math.min(100,Math.round(z.used/z.limit*100)):0,we=ye>90?"bg-red-500":ye>75?"bg-amber-500":"bg-blue-500",ve=[{label:"My files",onClick:()=>I("/")},...Ne.map((e,t)=>({label:e,onClick:()=>I("/"+Ne.slice(0,t+1).join("/"))}))],je=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__ */E("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__ */E("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})}),De=/* @__PURE__ */T("nav",{className:"p-2",children:[
11
- /* @__PURE__ */E("div",{className:"px-2 py-2 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:"Locations"}),
12
- /* @__PURE__ */T("button",{onClick:()=>{te("files"),I("/")},className:je("files"===ee&&"/"===F),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"]}),O.map(e=>/* @__PURE__ */T("button",{onClick:()=>{te("files"),I("/"+e)},className:je("files"===ee&&F==="/"+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__ */E("span",{className:"truncate",children:e})]},e)),!A&&/* @__PURE__ */T("button",{onClick:()=>te("trash"),className:je("trash"===ee),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__ */T(R,{children:[
14
- /* @__PURE__ */E("div",{className:"px-2 pt-3 pb-2 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:"Desktop"}),re.folders.map(e=>/* @__PURE__ */T("button",{onClick:()=>te({desktopFolderId:e.id}),className:je(ie===e.id),children:[
15
- /* @__PURE__ */E(h,{className:"h-4 w-4 shrink-0 text-amber-500"}),
16
- /* @__PURE__ */E("span",{className:"truncate",children:e.name}),
17
- /* @__PURE__ */E(b,{count:e.itemCount,active:ie===e.id,className:"ml-auto"})]},e.id))]})]});/* @__PURE__ */
18
- return T("div",{className:"relative flex flex-col h-full bg-white",onDragEnter:e=>{A||"object"==typeof ee||e.dataTransfer?.types?.includes?.("Files")&&(e.preventDefault(),le.current++,_||q(!0))},onDragOver:e=>{e.dataTransfer?.types?.includes?.("Files")&&e.preventDefault()},onDragLeave:()=>{le.current>0&&le.current--,0===le.current&&q(!1)},onDrop:e=>{e.preventDefault(),be(),A||"object"==typeof ee||e.dataTransfer.files?.length&&ke(e.dataTransfer.files)},children:[
19
- /* @__PURE__ */E(x,{title:se?`Files - ${se.name}`:"Files"+("/"===F?"":" - "+F)}),
20
- /* @__PURE__ */E(i,{app:"files"}),
21
- /* @__PURE__ */E("input",{ref:ce,type:"file",multiple:!0,className:"hidden",onChange:e=>{e.target.files?.length&&ke(e.target.files),ce.current&&(ce.current.value="")}}),
22
- /* @__PURE__ */E("div",{className:"flex-1 min-h-0",children:/* @__PURE__ */E(t,{sidebar:De,storageKey:"files.sidebarWidth",defaultWidth:200,minWidth:150,maxWidth:320,children:/* @__PURE__ */T("div",{className:"flex h-full min-w-0 flex-col",children:[
23
- /* @__PURE__ */T("div",{className:"flex items-center gap-1 px-2 py-2 border-b border-line bg-surface-sunken shrink-0 text-xs",children:[/* @__PURE__ */T(R,"files"===ee?{children:[
24
- /* @__PURE__ */E("button",{onClick:()=>I(function(e){if("/"===e||""===e)return"/";const t=e.replace(/\/$/,""),a=t.lastIndexOf("/");return a<=0?"/":t.slice(0,a)}(F)),disabled:"/"===F,className:"px-2 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",title:"Parent folder",children:/* @__PURE__ */E(y,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
25
- /* @__PURE__ */E("div",{className:"flex-1 min-w-0",children:/* @__PURE__ */E(a,{items:ve,maxItems:5})}),
26
- /* @__PURE__ */E("button",{onClick:()=>fe(F),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Refresh",children:/* @__PURE__ */E(y,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),!A&&/* @__PURE__ */T(R,{children:[
27
- /* @__PURE__ */T("button",{onClick:()=>te("trash"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600 flex items-center gap-1",title:"Open trash",children:[
28
- /* @__PURE__ */E(y,{name:"trash",className:"h-3.5 w-3.5",strokeWidth:1.5}),"Trash"]}),
29
- /* @__PURE__ */T("button",{onClick:async()=>{const e=await k({title:"New folder",placeholder:"Folder name",confirmLabel:"Create"});if(!e)return;if(/[\\/]/.test(e))return void N.error("Folder names cannot contain slashes");const t=P(F,e),a=await pe(`${U}/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 N.error(e.error||`Create folder failed (${a.status})`)}fe(F)},className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600 flex items-center gap-1",children:[
30
- /* @__PURE__ */E(y,{name:"folder-plus",className:"h-3.5 w-3.5",strokeWidth:1.5}),"New Folder"]}),
31
- /* @__PURE__ */T("button",{onClick:()=>ce.current?.click(),className:"px-2 py-1 rounded bg-blue-500 text-white hover:bg-blue-600 flex items-center gap-1",children:[
32
- /* @__PURE__ */E(y,{name:"upload",className:"h-3.5 w-3.5",strokeWidth:1.8}),"Upload"]})]})]}:"trash"===ee?{children:[
33
- /* @__PURE__ */E("button",{onClick:()=>te("files"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Back to files",children:/* @__PURE__ */E(y,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
34
- /* @__PURE__ */E("span",{className:"flex-1 text-gray-700 font-medium px-2",children:"Trash"}),
35
- /* @__PURE__ */E("button",{onClick:xe,className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Refresh",children:/* @__PURE__ */E(y,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),
36
- /* @__PURE__ */E("button",{onClick:async()=>{if(0===ae.length)return;if(!await g({title:"Empty trash",message:`${ae.length} item${1===ae.length?"":"s"} will be permanently removed. This can't be undone.`,confirmLabel:"Empty trash",variant:"danger"}))return;const e=await pe(`${U}/api/trash`,{method:"DELETE"});if(!e.ok){const t=await e.json().catch(()=>({}));return void N.error(t.error||`Empty trash failed (${e.status})`)}xe()},disabled:0===ae.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:[
37
- /* @__PURE__ */E("button",{onClick:()=>te("files"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Back to files",children:/* @__PURE__ */E(y,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
38
- /* @__PURE__ */E(h,{className:"h-4 w-4 text-amber-500 ml-1"}),
39
- /* @__PURE__ */E("span",{className:"flex-1 text-gray-700 font-medium px-1 truncate",children:se?.name??"Desktop folder"}),
40
- /* @__PURE__ */E("span",{className:"text-2xs text-ink-faintest px-2",children:"Desktop shortcuts"})]}),z&&/* @__PURE__ */T(R,{children:[
41
- /* @__PURE__ */E("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
42
- /* @__PURE__ */T("div",{className:"flex items-center gap-2",title:`${n(z.used)} of ${n(z.limit)} used`,children:[
43
- /* @__PURE__ */E("div",{className:"w-20 h-1.5 rounded-full bg-gray-200 overflow-hidden",children:/* @__PURE__ */E("div",{className:`h-full ${we} transition-all`,style:{width:`${ye}%`}})}),
44
- /* @__PURE__ */T("span",{className:"text-2xs text-ink-faint tabular-nums whitespace-nowrap",children:[n(z.used)," / ",n(z.limit)]})]})]})]}),
45
- /* @__PURE__ */E("div",{className:"flex-1 overflow-auto",children:"object"==typeof ee?0===oe.length?/* @__PURE__ */E("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__ */T("table",{className:"w-full text-sm",children:[
46
- /* @__PURE__ */E("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */T("tr",{children:[
47
- /* @__PURE__ */E("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Name"}),
48
- /* @__PURE__ */E("th",{className:`${v} text-left font-medium px-3 h-8 w-28`,children:"Type"}),
49
- /* @__PURE__ */E("th",{className:`${v} w-56`})]})}),
50
- /* @__PURE__ */E("tbody",{children:oe.map(e=>{const t=`${e.entityType}|${e.entityId}`;/* @__PURE__ */
51
- return T("tr",{onClick:()=>G(t),onDoubleClick:()=>he(e),className:"cursor-default border-b border-gray-100 "+(V===t?"bg-blue-50":"hover:bg-gray-50"),children:[
52
- /* @__PURE__ */T("td",{className:"px-3 h-8 flex items-center gap-2",children:[
53
- /* @__PURE__ */E(p,{item:e}),
54
- /* @__PURE__ */E("span",{className:"truncate",title:e.label,children:e.label})]}),
55
- /* @__PURE__ */E("td",{className:"px-3 h-8 text-xs text-ink-faint",children:u(e)}),
56
- /* @__PURE__ */T("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
57
- /* @__PURE__ */E("button",{onClick:t=>{t.stopPropagation(),he(e)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-blue-600 text-2xs",children:"Open"}),
58
- /* @__PURE__ */E("button",{onClick:t=>{t.stopPropagation(),re?.moveToDesktop([e])},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-ink-faint text-2xs ml-1",children:"Move to desktop"}),
59
- /* @__PURE__ */E("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"===ee?K&&0===ae.length?/* @__PURE__ */E(w,{size:"sm",padding:"p-6",label:"Loading"}):0===ae.length?/* @__PURE__ */E("div",{className:"p-10 text-center text-sm text-gray-400",children:"Trash is empty."}):/* @__PURE__ */T("table",{className:"w-full text-sm",children:[
60
- /* @__PURE__ */E("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */T("tr",{children:[
61
- /* @__PURE__ */E("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Name"}),
62
- /* @__PURE__ */E("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Original location"}),
63
- /* @__PURE__ */E("th",{className:`${v} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
64
- /* @__PURE__ */E("th",{className:`${v} text-right font-medium px-3 h-8 w-40`,children:"Deleted"}),
65
- /* @__PURE__ */E("th",{className:`${v} w-44`})]})}),
66
- /* @__PURE__ */E("tbody",{children:ae.map(e=>/* @__PURE__ */T("tr",{className:"border-b border-gray-100 hover:bg-gray-50",children:[
67
- /* @__PURE__ */T("td",{className:"px-3 h-8 flex items-center gap-2",children:["folder"===e.kind?/* @__PURE__ */E(y,{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}):/* @__PURE__ */E(y,{name:"page",className:"h-4 w-4 text-ink-faintest shrink-0",strokeWidth:1.5}),
68
- /* @__PURE__ */E("span",{className:"truncate",title:e.name,children:e.name})]}),
69
- /* @__PURE__ */E("td",{className:"px-3 h-8 text-ink-faint text-xs font-mono truncate",title:e.originalPath,children:e.originalPath||"—"}),
70
- /* @__PURE__ */E("td",{className:"px-3 h-8 text-right tabular-nums text-ink-faint",children:n(e.size)}),
71
- /* @__PURE__ */E("td",{className:"px-3 h-8 text-right text-ink-faint tabular-nums",children:e.deletedAt?W(e.deletedAt):"—"}),
72
- /* @__PURE__ */T("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
73
- /* @__PURE__ */E("button",{onClick:()=>(async e=>{const t=await pe(`${U}/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 N.error(e.error||`Restore failed (${t.status})`)}N.success(`Restored "${e.name}"`),xe()})(e),className:"px-2 py-0.5 rounded hover:bg-gray-200 text-blue-600 text-2xs",children:"Restore"}),
74
- /* @__PURE__ */E("button",{onClick:()=>(async e=>{if(!await g({title:"Permanently delete",message:`"${e.name}" will be permanently removed. This can't be undone.`,confirmLabel:"Delete forever",variant:"danger"}))return;const t=await pe(`${U}/api/trash/${encodeURIComponent(e.id)}`,{method:"DELETE"});if(!t.ok){const e=await t.json().catch(()=>({}));return void N.error(e.error||`Delete failed (${t.status})`)}xe()})(e),className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Delete forever"})]})]},e.id))})]}):K&&0===H.length?/* @__PURE__ */E(w,{size:"sm",padding:"p-6",label:"Loading"}):0===H.length?/* @__PURE__ */T("div",{className:"p-10 text-center text-sm text-gray-400",children:["Empty folder.",!A&&/* @__PURE__ */T(R,{children:[" Drop files here or click ",
75
- /* @__PURE__ */E("span",{className:"font-medium",children:"Upload"}),"."]})]}):/* @__PURE__ */T("table",{className:"w-full text-sm",children:[
76
- /* @__PURE__ */E("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */T("tr",{children:[
77
- /* @__PURE__ */E("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Name"}),
78
- /* @__PURE__ */E("th",{className:`${v} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
79
- /* @__PURE__ */E("th",{className:`${v} text-right font-medium px-3 h-8 w-40`,children:"Modified"}),
80
- /* @__PURE__ */E("th",{className:`${v} w-32`})]})}),
81
- /* @__PURE__ */E("tbody",{children:H.map(t=>/* @__PURE__ */T("tr",{onClick:()=>G(t.name),onDoubleClick:()=>{"folder"===t.kind?I(P(F,t.name)):(async t=>{if(A)return;const a=P(F,t.name),n=(t.name.split(".").pop()||"").toLowerCase(),r=M[n];r?await e({filePath:a,filename:t.name,kind:r,onStaged:e=>de(e)}):ge(t)})(t)},className:"cursor-default border-b border-gray-100 "+(V===t.name?"bg-blue-50":"hover:bg-gray-50"),children:[
82
- /* @__PURE__ */T("td",{className:"px-3 h-8 flex items-center gap-2",children:["folder"===t.kind?/* @__PURE__ */E(y,{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}):/* @__PURE__ */E(y,{name:"page",className:"h-4 w-4 text-ink-faintest shrink-0",strokeWidth:1.5}),
83
- /* @__PURE__ */E("span",{className:"truncate",title:t.name,children:t.name})]}),
84
- /* @__PURE__ */E("td",{className:"px-3 h-8 text-right tabular-nums text-ink-faint",children:"folder"===t.kind?"—":n(t.size)}),
85
- /* @__PURE__ */E("td",{className:"px-3 h-8 text-right text-ink-faint tabular-nums",children:W(t.modifiedAt)}),
86
- /* @__PURE__ */E("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:!A&&/* @__PURE__ */T(R,{children:["file"===t.kind&&/* @__PURE__ */E("button",{onClick:e=>{e.stopPropagation(),ge(t)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-ink-faint text-2xs",children:"Download"}),
87
- /* @__PURE__ */E("button",{onClick:e=>{e.stopPropagation(),(async e=>{const t=await k({title:`Rename ${e.kind}`,defaultValue:e.name,confirmLabel:"Rename"});if(!t||t===e.name)return;if(/[\\/]/.test(t))return void N.error("Names cannot contain slashes");const a=P(F,e.name),n=P(F,t),r=await pe(`${U}/api/rename`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:a,to:n})});if(!r.ok){const e=await r.json().catch(()=>({}));return void N.error(e.error||`Rename failed (${r.status})`)}fe(F)})(t)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-ink-faint text-2xs ml-1",children:"Rename"}),
88
- /* @__PURE__ */E("button",{onClick:e=>{e.stopPropagation(),(async e=>{if(!await g({title:`Delete ${e.kind}`,message:`"${e.name}"${"folder"===e.kind?" and everything inside":""} will be permanently removed.`,confirmLabel:"Delete",variant:"danger"}))return;const t=P(F,e.name),a=await pe(`${U}/api/files?path=${encodeURIComponent(t)}`,{method:"DELETE"});if(!a.ok){const e=await a.json().catch(()=>({}));return void N.error(e.error||`Delete failed (${a.status})`)}fe(F)})(t)},className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Delete"})]})})]},t.name))})]})})]})})}),_&&/* @__PURE__ */E("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__ */E("div",{className:"px-4 py-2 rounded-md bg-blue-600 text-white text-sm font-medium shadow-lg",children:"Drop to upload"})})]})}export{U as default};
@@ -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-Y65MPP3M.js";import{ResizeHandle as o}from"./chunk-V5QEPNPK.js";import{openGlobalSearch as s}from"./chunk-MUHWI4GK.js";import{partitionNav as c,flyoutGroups as d,visibleSectionItems as m,rowsContainRoute as h,visibleNavChildren as u}from"./chunk-WGRS6QBT.js";import{BrandMark as p}from"./chunk-MI67DI3H.js";import{IconButton_default as b}from"./chunk-RUTUVS4H.js";import{RAIL_MENU_GAP as g,navSections as f,startMenuCategories as x,TAB_STRIP_H as k,RAIL_COLLAPSED_INSET as y,RAIL_W as N,RAIL_MAX_W as v,RAIL_MIN_W as j,navIcons as C,sectionIcons as w}from"./chunk-CY5N5OA3.js";import"./chunk-5A7MWTXX.js";import"./chunk-PKXQDCNR.js";import{PopupMenu as S,PopupMenuItem as L,PopupMenuDivider as W,PopupMenuLabel as z}from"./chunk-FPGRKHUW.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-UQYNPYF4.js";import"./chunk-HL6JSDN3.js";import{Icon as $}from"./chunk-FSPFV4MI.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-BCDG4N6L.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import{useShellStrings as H}from"./chunk-PEM7UXQ3.js";import"./chunk-C3QOHMR6.js";import{useMemo as M,useState as R,useRef as I,useEffect as A,isValidElement as P,cloneElement as K}from"react";import{jsx as T,jsxs as U,Fragment as D}from"react/jsx-runtime";var Q="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform);function J(e,t,a){const r=Math.max(8,a-t.bottom);return{left:e+g,bottom:r,maxHeight:a-r-8,overflowY:"auto"}}var B=(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(" "),F="flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-[18px]";function G({open:e}){/* @__PURE__ */
2
- return T($,{name:"chevron-down",className:"size-4 shrink-0 transition-transform "+(e?"rotate-180":""),strokeWidth:2,"aria-hidden":"true"})}function V({dir:e}){/* @__PURE__ */
3
- return T($,"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 _({className:e}){/* @__PURE__ */
4
- return T($,{name:"search",className:e,strokeWidth:2,"aria-hidden":"true"})}var O=e=>.75+1.75*e+"rem";function X({width:X,collapsed:Y,onToggleCollapsed:E,onResize:Z,onHome:q,onOpen:ee,activeRoute:te,profile:ae,user:re,onLogout:ne,onSwitchToDesktop:ie,onReportBug:le,onClose:oe,navSections:se=f,navIcons:ce=C,sectionIcons:de=w,categories:me=x,productName:he,productIcon:ue,tagline:pe,adaptiveLogo:be=!1,logoHasAlpha:ge=null,logoIsLight:fe=null}){const xe=H().layout,{hasAnyPerm:ke}=e(),ye=M(()=>c(se,me,ke),[se,me,ke]),[Ne,ve]=R(()=>t(a(r))),je=e=>ve(t=>{const a=i(t,e);return l(r,JSON.stringify([...a])),a}),[Ce,we]=R(null),[Se,Le]=R(!1),We=I(null);A(()=>{Y||we(null)},[Y]);const ze=(e,t)=>{we(null),e.onSelect?e.onSelect():ee(e.to,!!t&&(e=>e.metaKey||e.ctrlKey||1===e.button)(t))},$e=(e,t)=>{const a=t[e];/* @__PURE__ */
5
- return T("span",{className:F,"aria-hidden":"true",children:a&&P(a)?K(a,{className:"size-[18px]"}):a})},He=(e,t)=>{const a=u(e,ke),r=e.menuLabel??e.label;if(a.length>0){const n=`child:${e.to}`,i=Ne.has(n),l=!i&&h(a,te,ke);/* @__PURE__ */
6
- return U("div",{children:[
7
- /* @__PURE__ */U("button",{type:"button",onClick:()=>je(n),"aria-expanded":i,className:B(l,!1),style:t>0?{paddingLeft:O(t)}:void 0,children:[0===t&&$e(e.to,ce),
8
- /* @__PURE__ */T("span",{className:"min-w-0 flex-1 truncate",children:r}),
9
- /* @__PURE__ */T(G,{open:i})]}),i&&/* @__PURE__ */T("div",{className:"space-y-0.5 pt-0.5",children:a.map(e=>He(e,t+1))}),e.dividerAfter&&/* @__PURE__ */T("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:O(t)},"aria-hidden":"true"})]},e.to)}const n=e.to===te;/* @__PURE__ */
10
- return U("div",{children:[
11
- /* @__PURE__ */U("button",{type:"button",onClick:t=>ze(e,t),onAuxClick:t=>{1===t.button&&ze(e,t)},"aria-current":n?"page":void 0,className:B(n,!1),style:t>0?{paddingLeft:O(t)}:void 0,children:[0===t&&$e(e.to,ce),
12
- /* @__PURE__ */T("span",{className:"min-w-0 flex-1 truncate",children:r})]}),e.dividerAfter&&/* @__PURE__ */T("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:O(t)},"aria-hidden":"true"})]},e.to)},Me=(e,t)=>{const a=t?e.items:m(e,ke);if(0===a.length)return null;const r="icon"in e&&e.icon?/* @__PURE__ */T("span",{className:F,"aria-hidden":"true",children:e.icon}):$e(e.label,de),n=e.menuLabel??e.label,i=h(a,te,ke),l="dividerAfter"in e&&e.dividerAfter;if(Y)/* @__PURE__ */
13
- return U("div",{children:[
14
- /* @__PURE__ */T("button",{type:"button",title:n,"aria-label":n,"aria-haspopup":"menu","aria-expanded":Ce?.label===e.label,onClick:t=>{const r=t.currentTarget.getBoundingClientRect();we(t=>t?.label===e.label?null:{label:e.label,items:a,top:r.top})},className:B(i||Ce?.label===e.label,!0),children:r}),l&&/* @__PURE__ */T("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label);const o=Ne.has(e.label),s=`rosh-rail-${e.label.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}`;/* @__PURE__ */
15
- return U("div",{children:[
16
- /* @__PURE__ */U("button",{type:"button",onClick:()=>je(e.label),"aria-expanded":o,"aria-controls":s,className:B(!o&&i,!1),children:[r,
17
- /* @__PURE__ */T("span",{className:"min-w-0 flex-1 truncate",children:n}),
18
- /* @__PURE__ */T(G,{open:o})]}),
19
- /* @__PURE__ */T("div",{id:s,role:"group","aria-label":n,hidden:!o,className:"space-y-0.5 pt-0.5",children:o&&a.map(e=>He(e,1))}),l&&/* @__PURE__ */T("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label)},Re=ae?.first_name?`${ae.first_name} ${ae.last_name||""}`.trim():re?.email||"",Ie=(ae?.first_name?.charAt(0)||re?.email?.charAt(0)||"?").toUpperCase(),Ae=ae?.avatar_url?/* @__PURE__ */T("img",{src:ae.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */T("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:Ie}),Pe=Se?We.current?.getBoundingClientRect():void 0,Ke=Y?"":"px-3",Te=Y?{paddingInline:y}:void 0,Ue=`${Y?xe.expandSidebar:xe.collapseSidebar} (${Q?"⌘":"Ctrl"} .)`,De=q?{run:q,label:xe.goHome,title:xe.goHome}:oe?null:{run:E,label:Y?xe.expandSidebar:xe.collapseSidebar,title:Ue},Qe=/* @__PURE__ */U(D,{children:[ue&&/* @__PURE__ */T(p,{src:ue,alt:"",slot:"compact",surface:"light",adaptive:be,hasAlpha:ge,isLight:fe,size:28,decorative:!0}),!Y&&/* @__PURE__ */U("span",{className:"min-w-0 text-left leading-tight",children:[
20
- /* @__PURE__ */T("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:he??"Apps"}),pe&&/* @__PURE__ */T("span",{className:"block truncate text-2xs font-medium text-gray-500",children:pe})]})]}),Je=ye.erpSections.length>0||ye.systemSections.length>0||ye.virtualSections.length>0;/* @__PURE__ */
21
- return U("aside",{"aria-label":xe.navLabel,className:"fixed left-0 top-0 z-(--z-sidebar) flex h-dvh flex-col border-r border-line bg-surface text-ink-strong",style:{width:X},children:[
22
- /* @__PURE__ */U("div",{className:"flex shrink-0 items-center border-b border-gray-200 "+(Y?"justify-center":"justify-between gap-2 pl-4 pr-2"),style:{height:k},children:[De?/* @__PURE__ */T("button",{type:"button",onClick:De.run,"aria-label":De.label,title:De.title,className:"flex min-w-0 items-center gap-2 rounded-md transition-colors hover:bg-gray-100 "+(Y?"justify-center p-0.5":"-ml-1 p-1"),children:Qe}):/* @__PURE__ */T("span",{className:"flex min-w-0 items-center gap-2",children:Qe}),oe?/* @__PURE__ */T(b,{onClick:oe,"aria-label":xe.closeMenu,children:/* @__PURE__ */T($,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})}):!Y&&/* @__PURE__ */T("button",{type:"button",onClick:E,"aria-label":xe.collapseSidebar,title:`${xe.collapseSidebar} (${Q?"⌘":"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__ */T(V,{dir:"left"})})]}),
23
- /* @__PURE__ */T("div",{className:`shrink-0 pt-3 ${Ke}`,style:Te,children:Y?/* @__PURE__ */T("button",{type:"button",onClick:s,"aria-label":xe.search,title:`${xe.search} (${Q?"⌘K":"Ctrl K"})`,className:B(!1,!0),children:/* @__PURE__ */T(_,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */U("button",{type:"button",onClick:s,className:"flex h-(--row-height-menu) w-full items-center gap-2 rounded-md border border-line bg-surface px-3 text-left transition-colors hover:bg-gray-100",children:[
24
- /* @__PURE__ */T(_,{className:"size-3.5 text-gray-500"}),
25
- /* @__PURE__ */T("span",{className:"min-w-0 flex-1 truncate text-sm text-ink-faint",children:xe.search}),
26
- /* @__PURE__ */T("kbd",{className:"rounded border border-line bg-gray-100 px-2 py-0.5 font-mono text-2xs font-semibold text-ink-faint",children:Q?"⌘K":"Ctrl K"})]})}),
27
- /* @__PURE__ */U("nav",{"aria-label":xe.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${Ke} ${Y?"space-y-1":"space-y-0.5"}`,style:Te,children:[Y&&/* @__PURE__ */T("button",{type:"button",onClick:E,"aria-label":xe.expandSidebar,title:`${xe.expandSidebar} (${Q?"⌘":"Ctrl"} .)`,className:`${B(!1,!0)} mb-3`,children:/* @__PURE__ */T(V,{dir:"right"})}),ye.topItems.map(e=>{if(!Y)return He(e,0);const t=u(e,ke),a=e.to===te||h(t,te,ke),r=e.menuLabel??e.label;/* @__PURE__ */
28
- return U("div",{children:[
29
- /* @__PURE__ */T("button",{type:"button",title:r,"aria-label":r,onClick:a=>{if(0===t.length)return void ze(e,a);const r=a.currentTarget.getBoundingClientRect();we(a=>a?.label===e.to?null:{label:e.to,items:t,top:r.top})},className:B(a,!0),children:$e(e.to,ce)}),e.dividerAfter&&/* @__PURE__ */T("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.to)}),ye.topItems.length>0&&Je&&!ye.topItems[ye.topItems.length-1].dividerAfter&&/* @__PURE__ */T("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ye.erpSections.map(e=>Me(e,!1)),ye.systemSections.map(e=>Me(e,!1)),ye.virtualSections.map(e=>Me(e,!0)),ye.footerSections.length>0&&/* @__PURE__ */T("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ye.footerSections.map(e=>Me(e,!1))]}),
30
- /* @__PURE__ */T("div",{className:`shrink-0 border-t border-gray-200 py-2 ${Ke}`,style:Te,children:/* @__PURE__ */U("button",{ref:We,type:"button",onClick:()=>Le(e=>!e),"aria-haspopup":"menu","aria-expanded":Se,"aria-label":Y?xe.accountMenu(Re):void 0,className:"flex w-full items-center gap-3 rounded-md hover:bg-gray-100 "+(Y?"justify-center py-2":"px-2 py-2"),children:[Ae,!Y&&/* @__PURE__ */U("span",{className:"min-w-0 flex-1 text-left",children:[
31
- /* @__PURE__ */T("span",{className:"block truncate text-sm font-semibold text-ink-strong",children:Re}),re?.email&&Re!==re.email&&/* @__PURE__ */T("span",{className:"block truncate text-2xs text-ink-faint",children:re.email})]})]})}),Z&&!Y&&!oe&&/* @__PURE__ */T(o,{side:"left",width:X,onResize:Z,min:j,max:v,defaultWidth:N,storageKey:n,label:xe.resizeSidebar}),Se&&Pe&&/* @__PURE__ */U(S,{portal:!0,minWidth:224,onClose:()=>Le(!1),style:J(X,Pe,window.innerHeight),children:[Y&&/* @__PURE__ */U("div",{className:"border-b border-line px-3 py-3",children:[
32
- /* @__PURE__ */T("p",{className:"truncate text-sm font-semibold text-gray-800",children:Re}),re?.email&&/* @__PURE__ */T("p",{className:"truncate text-xs text-gray-500",children:re.email})]}),
33
- /* @__PURE__ */U(L,{onClick:()=>{Le(!1),ee("/profile",!1)},children:[
34
- /* @__PURE__ */T($,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.profile]}),ye.footerItems.map(e=>/* @__PURE__ */U(L,{onClick:()=>{Le(!1),ze(e)},children:[
35
- /* @__PURE__ */T("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:ce[e.to]}),e.menuLabel??e.label]},e.to)),le&&/* @__PURE__ */U(L,{onClick:()=>{Le(!1),le()},children:[
36
- /* @__PURE__ */T($,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.reportIssue]}),
37
- /* @__PURE__ */T(W,{}),ie&&/* @__PURE__ */U(D,{children:[
38
- /* @__PURE__ */U(L,{onClick:()=>{Le(!1),ie()},children:[
39
- /* @__PURE__ */T($,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.switchToDesktop]}),
40
- /* @__PURE__ */T(W,{})]}),
41
- /* @__PURE__ */U(L,{danger:!0,onClick:()=>{Le(!1),ne()},children:[
42
- /* @__PURE__ */T($,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.signOut]})]}),Ce&&Y&&/* @__PURE__ */T(S,{portal:!0,minWidth:220,onClose:()=>we(null),style:{left:X+g,top:Math.min(Ce.top,window.innerHeight-48*Math.min(Ce.items.length,10)-16)},children:d(Ce.items,ke).map((e,t)=>/* @__PURE__ */U("div",{role:e.heading?"group":void 0,"aria-label":e.heading?e.heading.menuLabel??e.heading.label:void 0,children:[t>0&&/* @__PURE__ */T(W,{}),e.heading&&/* @__PURE__ */T(z,{children:e.heading.menuLabel??e.heading.label}),e.items.map(e=>/* @__PURE__ */U(L,{onClick:()=>ze(e),children:[$e(e.to,ce),
43
- /* @__PURE__ */T("span",{className:e.to===te?"font-semibold":"",children:e.menuLabel??e.label})]},e.to))]},e.heading?.to??`run-${t}`))})]})}export{J as accountMenuPosition,X as default};
@@ -1 +0,0 @@
1
- var r="9.10.0",a=r;export{a as APP_VERSION,r as VERSION};
@@ -1,2 +0,0 @@
1
- import{useShellAuth as e}from"./chunk-CY5N5OA3.js";var t={};function r(e){t=e}function n(){const{hasAnyPerm:r}=e();return{user:t.user,logout:t.logout??(()=>{}),hasAnyPerm:r}}var o="react-os-shell:sidebar-collapsed",s="react-os-shell:sidebar-open-sections",a="react-os-shell:sidebar-width";function c(e,t){return"true"===e||"false"!==e&&t<1024}function u(e){if(!e)/* @__PURE__ */return new Set;try{const t=JSON.parse(e);if(Array.isArray(t)&&t.every(e=>"string"==typeof e))return new Set(t)}catch{}/* @__PURE__ */
2
- return new Set}function l(e,t){const r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}function i(e){try{return localStorage.getItem(e)}catch{return null}}function f(e,t){try{localStorage.setItem(e,t)}catch{}}export{o as RAIL_COLLAPSED_KEY,s as RAIL_OPEN_SECTIONS_KEY,a as RAIL_WIDTH_KEY,c as initialRailCollapsed,u as parseOpenSections,i as readStored,r as setShellAuthBridge,l as toggleOpenSection,n as useAuth,f as writeStored};