efficient-shell 12.7.0 → 12.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -3
- package/dist/{Browser-AKBOECNB.js → Browser-DEXVIONU.js} +14 -14
- package/dist/{Calculator-OJLVM42W.js → Calculator-NZ2S6CAK.js} +21 -21
- package/dist/{CurrencyConverter-UVOKFPMG.js → CurrencyConverter-H4M35SIY.js} +11 -11
- package/dist/Files-HDTNIXUC.js +121 -0
- package/dist/{Notepad-P6JFXK3G.js → Notepad-PSDXZTBI.js} +10 -10
- package/dist/{PomodoroTimer-UOV4CCYH.js → PomodoroTimer-SKAUQXPO.js} +7 -7
- package/dist/{Preview-XF5FKLVZ.js → Preview-HBB2SWJY.js} +19 -19
- package/dist/Sidebar-XGAVJGOL.js +44 -0
- package/dist/{Stock-6D4I2EWM.js → Stock-X7GEAET7.js} +3 -3
- package/dist/{Weather-BCOAQJDT.js → Weather-OH5PIQLU.js} +18 -18
- package/dist/{WorldClock-WX3O3EDU.js → WorldClock-S5NSJ7ZX.js} +4 -4
- package/dist/ai/index.js +54 -54
- package/dist/apps/index.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/charts/ChordChart.js +1 -1
- package/dist/charts/FlowChart.js +1 -1
- package/dist/charts/RadarChart.js +1 -1
- package/dist/charts/SankeyChart.js +1 -1
- package/dist/charts/SpecChart.js +1 -1
- package/dist/charts/SunburstChart.js +1 -1
- package/dist/charts/TreemapChart.js +1 -1
- package/dist/{chunk-WVHGHMW3.js → chunk-23WJCEYD.js} +1 -1
- package/dist/chunk-27TJNID7.js +13 -0
- package/dist/{chunk-AHJAJLSK.js → chunk-2JXGTA73.js} +62 -62
- package/dist/{chunk-ZOZEQZUA.js → chunk-2UBASCOK.js} +1 -1
- package/dist/chunk-3C5NKOVF.js +1 -0
- package/dist/{chunk-SYZLS2JA.js → chunk-3DWVSQIJ.js} +1 -1
- package/dist/chunk-3I67TIGD.js +23 -0
- package/dist/chunk-3KP3EIYP.js +9 -0
- package/dist/{chunk-IXBKWVEP.js → chunk-4EVBKID5.js} +1 -1
- package/dist/{chunk-GEXETMGL.js → chunk-4JYHS4VJ.js} +1 -1
- package/dist/{chunk-J53LQWWY.js → chunk-5NONOFIV.js} +13 -13
- package/dist/{chunk-GZQD6IBV.js → chunk-5Q7VFXEO.js} +1 -1
- package/dist/{chunk-2BMGV6DE.js → chunk-6HH6KNJB.js} +1 -1
- package/dist/{chunk-IFQXTIMY.js → chunk-6LYBE7LM.js} +1 -1
- package/dist/{chunk-N6Q7HNAH.js → chunk-7FRG5CF7.js} +1 -1
- package/dist/chunk-7HTDD37H.js +6 -0
- package/dist/{chunk-DFYXIW4O.js → chunk-AXTVK6LU.js} +1 -1
- package/dist/{chunk-MGW7SX53.js → chunk-B7LNSGNR.js} +8 -8
- package/dist/{chunk-ND5IZ37V.js → chunk-BDWZLMIT.js} +5 -5
- package/dist/{chunk-C5LBNLFJ.js → chunk-BTUI3MKS.js} +1 -1
- package/dist/{chunk-N7JX27JE.js → chunk-BXU3LX44.js} +1 -1
- package/dist/{chunk-6BATVJBA.js → chunk-C37PXEEH.js} +4 -4
- package/dist/{chunk-56GGBTAD.js → chunk-C3SE57NF.js} +3 -3
- package/dist/chunk-EVYD6UFQ.js +2 -0
- package/dist/chunk-EZ6SVQSV.js +4 -0
- package/dist/{chunk-5JUG74UR.js → chunk-EZWWQHD3.js} +1 -1
- package/dist/{chunk-I5BS6AP6.js → chunk-F6QSHKUR.js} +4 -4
- package/dist/{chunk-CJH2BGXY.js → chunk-G67CJAQ2.js} +1 -1
- package/dist/{chunk-UVBX5LEU.js → chunk-GG4ZXQXG.js} +4 -4
- package/dist/{chunk-N442GPRJ.js → chunk-GHZ4PP62.js} +1 -1
- package/dist/{chunk-BG2OL3MO.js → chunk-GLJILR2Y.js} +6 -6
- package/dist/{chunk-RNQBWWYR.js → chunk-H27KA5IL.js} +5 -5
- package/dist/{chunk-UVGEOQI4.js → chunk-H6IGZWC2.js} +9 -9
- package/dist/chunk-HEAGOZKJ.js +6 -0
- package/dist/chunk-HQA7SPU5.js +4 -0
- package/dist/{chunk-G7I255HN.js → chunk-HS6KTFW6.js} +11 -11
- package/dist/{chunk-EYPKBJYG.js → chunk-HY6CBG4M.js} +1 -1
- package/dist/chunk-IFIMUNID.js +4 -0
- package/dist/{chunk-QIUIP6YZ.js → chunk-J33QE4J7.js} +2 -2
- package/dist/{chunk-JPNAEN53.js → chunk-JMGDGNM7.js} +1 -1
- package/dist/chunk-JY2OBPVO.js +11 -0
- package/dist/{chunk-57YY4J6T.js → chunk-JYD6PSDA.js} +1 -1
- package/dist/{chunk-OLVKHYHV.js → chunk-KETGA66S.js} +6 -6
- package/dist/chunk-KO74S3FL.js +28 -0
- package/dist/{chunk-YRJJKF5H.js → chunk-KUUZFLT6.js} +1 -1
- package/dist/{chunk-RVQUSPXC.js → chunk-LLAYWMYS.js} +1 -1
- package/dist/{chunk-TTQ7K4AJ.js → chunk-LLUHE2ZW.js} +1 -1
- package/dist/{chunk-XWFLIGDQ.js → chunk-M5K4AX4E.js} +1 -1
- package/dist/chunk-MCJ4JHLE.js +8 -0
- package/dist/{chunk-VYMM2BPX.js → chunk-MX2YRSMZ.js} +2 -2
- package/dist/{chunk-RFKCSRJX.js → chunk-MZG3FS5T.js} +5 -5
- package/dist/chunk-N5LVUI7R.js +15 -0
- package/dist/{chunk-BKKKIHHV.js → chunk-NKMSGZZ3.js} +6 -6
- package/dist/{chunk-RBMZSZOH.js → chunk-NPIZ2Y3P.js} +1 -1
- package/dist/{chunk-XMH2JOZ2.js → chunk-NU7LUJX5.js} +1 -1
- package/dist/{chunk-DANLBFBD.js → chunk-OCI3PZDU.js} +1 -1
- package/dist/{chunk-FLTPVFKA.js → chunk-OGPCFMNA.js} +1 -1
- package/dist/{chunk-JM2IQC4J.js → chunk-PPSA3QLE.js} +1 -1
- package/dist/{chunk-JQBVSPF5.js → chunk-QAS22BIS.js} +1 -1
- package/dist/{chunk-RQDVAUXD.js → chunk-QJGZOD6X.js} +3 -3
- package/dist/{chunk-J4KYZGHQ.js → chunk-QLVH66TE.js} +19 -19
- package/dist/{chunk-UPTKROT7.js → chunk-QQXQQPCD.js} +8 -8
- package/dist/{chunk-QNYZTD7V.js → chunk-QR46K5SB.js} +1 -1
- package/dist/{chunk-34SPT4I6.js → chunk-RJKMFIM3.js} +6 -6
- package/dist/{chunk-UDHJTQBA.js → chunk-ROM25ZMZ.js} +12 -12
- package/dist/chunk-SE3S362N.js +7 -0
- package/dist/chunk-SOZCWT6I.js +6 -0
- package/dist/{chunk-UGOJLNYR.js → chunk-SV5RRBVA.js} +1 -1
- package/dist/{chunk-ZKQWS2ML.js → chunk-SYIJRZIS.js} +1 -1
- package/dist/chunk-TWFD7A3K.js +1 -0
- package/dist/{chunk-6U25ELYF.js → chunk-TXZR5G55.js} +1 -1
- package/dist/{chunk-FVZXRGVM.js → chunk-U5DSVCWV.js} +7 -7
- package/dist/{chunk-3PWI5IH7.js → chunk-UK6XNW3I.js} +10 -10
- package/dist/{chunk-62275PI2.js → chunk-UOUVHHTC.js} +1 -1
- package/dist/{chunk-5MO5JBBK.js → chunk-UZZVI7EN.js} +1 -1
- package/dist/{chunk-XK4SMAVR.js → chunk-VQJLH2BU.js} +1 -1
- package/dist/{chunk-A4KQKN32.js → chunk-VROBW74Y.js} +1 -1
- package/dist/{chunk-KDTL6VEC.js → chunk-VVQJHQW6.js} +8 -8
- package/dist/chunk-WSRM6ZQS.js +7 -0
- package/dist/{chunk-X32TVINY.js → chunk-X5ZY35KZ.js} +1 -1
- package/dist/{chunk-EZPSNUYR.js → chunk-X7APOT53.js} +7 -7
- package/dist/{chunk-EIY6YGEZ.js → chunk-XFD4BLP7.js} +1 -1
- package/dist/{chunk-EEVLRCMA.js → chunk-XVIDD6F3.js} +8 -8
- package/dist/{chunk-2HZQZTW5.js → chunk-YJIFJIXV.js} +1 -1
- package/dist/{chunk-WCPAQHHA.js → chunk-YMNWUQGV.js} +4 -4
- package/dist/{chunk-MOMOZVOW.js → chunk-YUB3TJKO.js} +3 -3
- package/dist/chunk-Z2MNXUM6.js +3 -0
- package/dist/{chunk-KUEYOJBN.js → chunk-ZC3TSMFK.js} +2 -2
- package/dist/{chunk-YU6KOO6O.js → chunk-ZYW4KSEE.js} +4 -4
- package/dist/data/DataTable.js +1 -1
- package/dist/data/EntityList.js +1 -1
- package/dist/data/ListLoadError.js +1 -1
- package/dist/data/ResizableTable.js +1 -1
- package/dist/forms/AlignmentGrid.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/Button.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/ComposerAttachments.js +1 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/DateRangePicker.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/FilePicker.js +1 -1
- package/dist/forms/IconButton.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/Input.js +1 -1
- package/dist/forms/InputNumber.d.ts +6 -0
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUploadGrid.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/NumericKeypad.js +1 -1
- package/dist/forms/PictureTiles.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/RenameField.js +1 -1
- package/dist/forms/Segmented.js +1 -1
- package/dist/forms/SidesInput.d.ts +12 -1
- package/dist/forms/SidesInput.js +1 -1
- package/dist/forms/Slider.js +1 -1
- package/dist/forms/Snippet.js +1 -1
- package/dist/forms/SplitButton.js +1 -1
- package/dist/forms/TagInput.js +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/UnitMenu.d.ts +16 -0
- package/dist/forms/UnitMenu.js +1 -0
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/icons/efficient-glyphs.js +1 -1
- package/dist/icons/efficient-looks.js +1 -1
- package/dist/icons/efficient.js +1 -1
- package/dist/icons/looks/map.js +1 -1
- package/dist/icons/sets.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +344 -344
- package/dist/map/index.js +3 -3
- package/dist/page-tabs/index.js +5 -5
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/ColoredBadge.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/DropdownMenu.d.ts +13 -2
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/EditableGrid.js +1 -1
- package/dist/shell/HelpCenter.js +1 -1
- package/dist/shell/IconRail.js +1 -1
- package/dist/shell/ImageLightbox.js +1 -1
- package/dist/shell/ItemCount.js +1 -1
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/PopupMenu.d.ts +1 -1
- package/dist/shell/PopupMenu.js +1 -1
- package/dist/shell/ResizeHandle.js +1 -1
- package/dist/shell/SearchableSelect.js +1 -1
- package/dist/shell/SettingReset.js +1 -1
- package/dist/shell/SidebarLayout.js +1 -1
- package/dist/shell/SidebarNav.js +1 -1
- package/dist/shell/SortableList.js +1 -1
- package/dist/shell/StatusBadge.js +1 -1
- package/dist/shell/Tabs.js +1 -1
- package/dist/shell/Tooltip.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/shell/TransferProgress.js +1 -1
- package/dist/shell/Tree.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/AuthScreen.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DashboardTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/ErrorBoundary.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/templates/GalleryTemplate.js +1 -1
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Files-CRQDRSFS.js +0 -121
- package/dist/Sidebar-F7HHC5GY.js +0 -44
- package/dist/chunk-2YRLRMZH.js +0 -23
- package/dist/chunk-7RRJPNYN.js +0 -4
- package/dist/chunk-BTFBXZS2.js +0 -1
- package/dist/chunk-BUGTNNZQ.js +0 -15
- package/dist/chunk-C57PNNAW.js +0 -13
- package/dist/chunk-EB2UE6ZR.js +0 -10
- package/dist/chunk-GUIJCTFJ.js +0 -8
- package/dist/chunk-I64TVNHS.js +0 -6
- package/dist/chunk-N7YHXL2F.js +0 -3
- package/dist/chunk-PIWC3CAC.js +0 -4
- package/dist/chunk-PM4Y2FMQ.js +0 -9
- package/dist/chunk-PVXX77MY.js +0 -6
- package/dist/chunk-PWYLGTZS.js +0 -1
- package/dist/chunk-QQ2LDC6C.js +0 -6
- package/dist/chunk-SZT72QMD.js +0 -28
- package/dist/chunk-TQWLJ5VM.js +0 -7
- package/dist/chunk-UJJXWLHE.js +0 -2
- package/dist/chunk-YZR4T5FZ.js +0 -7
- /package/dist/{chunk-T75VCE6K.js → chunk-GMHMWDXU.js} +0 -0
package/dist/ui/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import"../chunk-T75VCE6K.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{DataTablePage}from"../chunk-6U25ELYF.js";export{EmailTemplate}from"../chunk-C5LBNLFJ.js";export{ErrorBoundary}from"../chunk-RBMZSZOH.js";export{ErrorPage}from"../chunk-CNVYM3HP.js";export{FormLayoutPage}from"../chunk-57YY4J6T.js";export{GalleryTemplate}from"../chunk-GEXETMGL.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-5MO5JBBK.js";export{ChatTemplate}from"../chunk-TTQ7K4AJ.js";export{CheckoutTemplate}from"../chunk-N6Q7HNAH.js";export{DashboardTemplate}from"../chunk-J53LQWWY.js";export{TopNav}from"../chunk-A4KQKN32.js";export{Stepper}from"../chunk-DPUM3H5N.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-RQDVAUXD.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-E227NVFX.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-RFKCSRJX.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-RNQBWWYR.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-BKKKIHHV.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-R3K3LVVS.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-3LTZ4N46.js";export{ResizeHandle}from"../chunk-KUEYOJBN.js";export{SettingReset}from"../chunk-UVBX5LEU.js";export{SettingRow}from"../chunk-NC36LJCA.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-4ZUV6WQT.js";export{MetricBar}from"../chunk-CD7P34VC.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-IYPRFUTT.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-GEZ45J4Z.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-4UGFNTZ3.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-7TC3LJQM.js";export{PageHeader}from"../chunk-45IVWLKF.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-7KWYVQMX.js";export{GlobalSearch,openGlobalSearch}from"../chunk-4KJ7MLWO.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-KDTL6VEC.js";export{IconRail,IconRailButton}from"../chunk-IXBKWVEP.js";import"../chunk-FQEALPZJ.js";export{CountBadge}from"../chunk-LTESFDTF.js";export{EditableGrid}from"../chunk-UPTKROT7.js";export{BudgetBar,budgetState}from"../chunk-XZH5PEML.js";export{Card,StatCard}from"../chunk-EOGXCGQF.js";export{ContainerFillChart}from"../chunk-Y46WPTKY.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-I3QFYBOP.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-RIXX6NRV.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-DFYXIW4O.js";export{Avatar,AvatarGroup}from"../chunk-NHWDB7R6.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-T23TIJ4P.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{WidthsBar}from"../chunk-I64TVNHS.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-BG2OL3MO.js";export{SplitButton_default as SplitButton}from"../chunk-56GGBTAD.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-GUIJCTFJ.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-PVXX77MY.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-H6PFTU3L.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-G2X5YYIQ.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-PIWC3CAC.js";export{Slider,SliderGroup}from"../chunk-YU6KOO6O.js";export{LinkPicker,TextLinkField}from"../chunk-EZPSNUYR.js";export{SearchableSelect}from"../chunk-C57PNNAW.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-SZT72QMD.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-G7I255HN.js";import"../chunk-RVQUSPXC.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{ImageLightbox,lightboxKind}from"../chunk-MGW7SX53.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-MM5AFQ24.js";export{EmptyState}from"../chunk-NEAT7BIP.js";export{Breadcrumbs}from"../chunk-PT77FC5X.js";export{mediaLibraryMenu}from"../chunk-BGJMDP6J.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-32WEY6O5.js";export{RenameField}from"../chunk-XMH2JOZ2.js";export{NativeSelect,Select_default as Select}from"../chunk-UDVQORQM.js";import"../chunk-EO5RLFRX.js";import"../chunk-7HIHQR3X.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-EEVLRCMA.js";export{MediaUsedInList}from"../chunk-EIY6YGEZ.js";export{NumericKeypad}from"../chunk-ZOZEQZUA.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-DANLBFBD.js";export{PositionInput}from"../chunk-N442GPRJ.js";export{FormErrorSummary}from"../chunk-NJTFI7AA.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{CornersInput}from"../chunk-I5BS6AP6.js";export{DatePicker_default as DatePicker}from"../chunk-YMAU4EIK.js";export{DateRangePicker,toISODate}from"../chunk-2YRLRMZH.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-GJ23UZDQ.js";export{DisplayChips}from"../chunk-FLTPVFKA.js";export{FilePicker_default as FilePicker}from"../chunk-ND5IZ37V.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{AlignmentGrid}from"../chunk-SYZLS2JA.js";export{BorderInput,borderSides,borderStartEach}from"../chunk-VYMM2BPX.js";export{IconPicker}from"../chunk-MOMOZVOW.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-UDHJTQBA.js";export{Popover}from"../chunk-LFYZ7NQ4.js";export{InputNumber_default as InputNumber}from"../chunk-N7YHXL2F.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{BrandAssetEditor}from"../chunk-34SPT4I6.js";export{MediaUploadField}from"../chunk-PM4Y2FMQ.js";export{Segmented}from"../chunk-JQBVSPF5.js";import"../chunk-JDQGHQ2C.js";export{ImageFocusPoint}from"../chunk-53EW4M5S.js";export{FormField}from"../chunk-6KBDNYRW.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar}from"../chunk-LGK47SEN.js";export{slugify}from"../chunk-24AL3CDS.js";export{ENTRANCE_ATTR,ENTRANCE_FROM,ENTRANCE_FROM_ATTR,ENTRANCE_FROM_DEFAULT,ENTRANCE_KINDS,ENTRANCE_KINDS_WITH_FROM,ENTRANCE_STATE_ATTR,armEntrance,entranceAttrs,playEntrance,readEntrance}from"../chunk-Q2SCJQ5H.js";export{HOVER_MOTION,MOTION_EASING,MOTION_GROUPS,MOTION_TIMING,motionSeconds,rotateDegrees}from"../chunk-AIJ3G6BD.js";export{hexWithAlpha,mixHex,rgbToHex}from"../chunk-CJSZW3OS.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{fromDateKey,toDateKey}from"../chunk-2HMNOLKX.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.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{useRootIsDark}from"../chunk-UPXDDO3U.js";export{Kanban}from"../chunk-3WFJ4PYV.js";export{useSort}from"../chunk-E6FDUFPH.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{DataTable}from"../chunk-6BATVJBA.js";export{Pagination}from"../chunk-7FBAZLBX.js";export{EntityList}from"../chunk-UVGEOQI4.js";import"../chunk-PH3P54QQ.js";export{useTableNav}from"../chunk-ATMJ5ZPK.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{ListFooter}from"../chunk-TX5FZBPQ.js";export{ListLoadError}from"../chunk-YRJJKF5H.js";export{ResizableTable}from"../chunk-3PWI5IH7.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useColumnConfig}from"../chunk-UKBXQXDZ.js";import"../chunk-ULJQYXHB.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{TreemapChart}from"../chunk-TQWLJ5VM.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-NS37Y5CN.js";export{RangeChart}from"../chunk-DW45EZHA.js";export{RankedBars}from"../chunk-5NDONLH5.js";export{SankeyChart}from"../chunk-OLVKHYHV.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-IHPAYSTJ.js";export{StatTile}from"../chunk-3CMCGOOV.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-7RRJPNYN.js";export{FunnelChart}from"../chunk-H7HRYFRQ.js";export{HeatmapChart}from"../chunk-SBZCJNNP.js";export{HistogramChart}from"../chunk-M54OL3YR.js";export{Meter}from"../chunk-R3JKZXII.js";export{PieChart}from"../chunk-3UHTHQGK.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-BUGTNNZQ.js";export{RadialBarChart}from"../chunk-DJ2XDBAO.js";export{ChordChart}from"../chunk-FVZXRGVM.js";import"../chunk-EYPKBJYG.js";export{StepChain,StepChainItem}from"../chunk-DNLRUZGS.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-X32TVINY.js";export{Divider}from"../chunk-DFOFEBYX.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-Q5Z3KHT2.js";export{ContextMenu,useContextMenu}from"../chunk-QIUIP6YZ.js";export{Banner}from"../chunk-6JDR6T4U.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-2BMGV6DE.js";export{Input_default as Input}from"../chunk-GZQD6IBV.js";export{DropdownMenu}from"../chunk-YZR4T5FZ.js";import"../chunk-EB2UE6ZR.js";export{IconButton_default as IconButton}from"../chunk-UGOJLNYR.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{mediaFileName}from"../chunk-XK4SMAVR.js";export{TransferProgress}from"../chunk-WCPAQHHA.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-7KIDOIPY.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-62275PI2.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-GEYM4WN3.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-Y3JW2GW5.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-A6WZF65N.js";export{DEFAULT_FLOW_CHART_LABELS,FlowChart}from"../chunk-JM2IQC4J.js";export{FLOW_LAYOUT,FLOW_SPEC_LIMITS,layoutFlow,parseFlowSpec}from"../chunk-FAERBT6Y.js";export{ChartBrush}from"../chunk-WMLBMR4E.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-7H7U3HC6.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-75MSXRFY.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-DZBGJ6X4.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{ImageAnnotator_default as ImageAnnotator}from"../chunk-FPYABAOX.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-Y4RERPFN.js";import"../chunk-5A7MWTXX.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";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-SCU2CWNJ.js";export{Dialog}from"../chunk-6EHPEBGP.js";export{ItemCount}from"../chunk-N7JX27JE.js";import"../chunk-3DVNXNTF.js";import"../chunk-7B5KFESH.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";export{ColoredBadge}from"../chunk-5JUG74UR.js";import"../chunk-SCGBCBXP.js";import"../chunk-F3ZOO23R.js";import"../chunk-2QY5BJLA.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{VERSION}from"../chunk-PWYLGTZS.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-JPNAEN53.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-IFQXTIMY.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{Button_default as Button}from"../chunk-UJJXWLHE.js";import"../chunk-XWFLIGDQ.js";export{Icon}from"../chunk-UIWGVOFH.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-CJH2BGXY.js";export{Tooltip}from"../chunk-QQ2LDC6C.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{setShellApiClient}from"../chunk-STKJA4PV.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-TRWHVG3A.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";export{BoxPlotChart}from"../chunk-XK4U5MAS.js";export{CandlestickChart}from"../chunk-NEYHBQLG.js";export{CartesianPlot}from"../chunk-525O4AUQ.js";import"../chunk-BFO72WQB.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{ChartTooltip}from"../chunk-WDQI3FV6.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{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
|
2
|
+
import"../chunk-GMHMWDXU.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{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{DashboardTemplate}from"../chunk-5NONOFIV.js";export{DataTablePage}from"../chunk-TXZR5G55.js";export{EmailTemplate}from"../chunk-BTUI3MKS.js";export{ErrorBoundary}from"../chunk-NPIZ2Y3P.js";export{ErrorPage}from"../chunk-CNVYM3HP.js";export{FormLayoutPage}from"../chunk-JYD6PSDA.js";export{GalleryTemplate}from"../chunk-4JYHS4VJ.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-UZZVI7EN.js";export{ChatTemplate}from"../chunk-LLUHE2ZW.js";export{CheckoutTemplate}from"../chunk-7FRG5CF7.js";export{TopNav}from"../chunk-VROBW74Y.js";export{Statistic}from"../chunk-R3K3LVVS.js";export{Stepper}from"../chunk-DPUM3H5N.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-QJGZOD6X.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-E227NVFX.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-MZG3FS5T.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-H27KA5IL.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-NKMSGZZ3.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-3LTZ4N46.js";export{ResizeHandle}from"../chunk-ZC3TSMFK.js";export{SettingReset}from"../chunk-GG4ZXQXG.js";export{SettingRow}from"../chunk-NC36LJCA.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-4ZUV6WQT.js";export{MetricBar}from"../chunk-CD7P34VC.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-IYPRFUTT.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-GEZ45J4Z.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-4UGFNTZ3.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-7TC3LJQM.js";export{PageHeader}from"../chunk-45IVWLKF.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-7KWYVQMX.js";export{GlobalSearch,openGlobalSearch}from"../chunk-4KJ7MLWO.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-VVQJHQW6.js";export{IconRail,IconRailButton}from"../chunk-4EVBKID5.js";import"../chunk-FQEALPZJ.js";export{CountBadge}from"../chunk-LTESFDTF.js";export{EditableGrid}from"../chunk-QQXQQPCD.js";export{Avatar,AvatarGroup}from"../chunk-NHWDB7R6.js";export{BudgetBar,budgetState}from"../chunk-XZH5PEML.js";export{Card,StatCard}from"../chunk-EOGXCGQF.js";export{ContainerFillChart}from"../chunk-Y46WPTKY.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-I3QFYBOP.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-RIXX6NRV.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-AXTVK6LU.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-T23TIJ4P.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{WidthsBar}from"../chunk-7HTDD37H.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-GLJILR2Y.js";export{SplitButton_default as SplitButton}from"../chunk-C3SE57NF.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-MCJ4JHLE.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-HEAGOZKJ.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-H6PFTU3L.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-G2X5YYIQ.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-HQA7SPU5.js";export{UnitMenu}from"../chunk-EZ6SVQSV.js";export{Slider,SliderGroup}from"../chunk-ZYW4KSEE.js";export{LinkPicker,TextLinkField}from"../chunk-X7APOT53.js";export{SearchableSelect}from"../chunk-27TJNID7.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-KO74S3FL.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-HS6KTFW6.js";import"../chunk-LLAYWMYS.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{EmptyState}from"../chunk-NEAT7BIP.js";export{ImageLightbox,lightboxKind}from"../chunk-B7LNSGNR.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-MM5AFQ24.js";export{Breadcrumbs}from"../chunk-PT77FC5X.js";export{mediaLibraryMenu}from"../chunk-BGJMDP6J.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-32WEY6O5.js";export{RenameField}from"../chunk-NU7LUJX5.js";export{NativeSelect,Select_default as Select}from"../chunk-UDVQORQM.js";import"../chunk-EO5RLFRX.js";import"../chunk-7HIHQR3X.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-XVIDD6F3.js";export{MediaUsedInList}from"../chunk-XFD4BLP7.js";export{NumericKeypad}from"../chunk-2UBASCOK.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-OCI3PZDU.js";export{PositionInput}from"../chunk-GHZ4PP62.js";export{FormErrorSummary}from"../chunk-NJTFI7AA.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{CornersInput}from"../chunk-F6QSHKUR.js";export{DatePicker_default as DatePicker}from"../chunk-YMAU4EIK.js";export{DateRangePicker,toISODate}from"../chunk-3I67TIGD.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-GJ23UZDQ.js";export{DisplayChips}from"../chunk-OGPCFMNA.js";export{FilePicker_default as FilePicker}from"../chunk-BDWZLMIT.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{AlignmentGrid}from"../chunk-3DWVSQIJ.js";export{BorderInput,borderSides,borderStartEach}from"../chunk-MX2YRSMZ.js";export{IconPicker}from"../chunk-YUB3TJKO.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-ROM25ZMZ.js";export{Popover}from"../chunk-LFYZ7NQ4.js";export{InputNumber_default as InputNumber}from"../chunk-Z2MNXUM6.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{BrandAssetEditor}from"../chunk-RJKMFIM3.js";export{MediaUploadField}from"../chunk-3KP3EIYP.js";export{Segmented}from"../chunk-QAS22BIS.js";import"../chunk-JDQGHQ2C.js";export{ImageFocusPoint}from"../chunk-53EW4M5S.js";export{FormField}from"../chunk-6KBDNYRW.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar}from"../chunk-LGK47SEN.js";export{slugify}from"../chunk-24AL3CDS.js";export{ENTRANCE_ATTR,ENTRANCE_FROM,ENTRANCE_FROM_ATTR,ENTRANCE_FROM_DEFAULT,ENTRANCE_KINDS,ENTRANCE_KINDS_WITH_FROM,ENTRANCE_STATE_ATTR,armEntrance,entranceAttrs,playEntrance,readEntrance}from"../chunk-Q2SCJQ5H.js";export{HOVER_MOTION,MOTION_EASING,MOTION_GROUPS,MOTION_TIMING,motionSeconds,rotateDegrees}from"../chunk-AIJ3G6BD.js";export{hexWithAlpha,mixHex,rgbToHex}from"../chunk-CJSZW3OS.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{fromDateKey,toDateKey}from"../chunk-2HMNOLKX.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.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{useRootIsDark}from"../chunk-UPXDDO3U.js";export{Kanban}from"../chunk-3WFJ4PYV.js";export{useSort}from"../chunk-E6FDUFPH.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{DataTable}from"../chunk-C37PXEEH.js";export{Pagination}from"../chunk-7FBAZLBX.js";export{EntityList}from"../chunk-H6IGZWC2.js";import"../chunk-PH3P54QQ.js";export{useTableNav}from"../chunk-ATMJ5ZPK.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{ListFooter}from"../chunk-TX5FZBPQ.js";export{ListLoadError}from"../chunk-KUUZFLT6.js";export{ResizableTable}from"../chunk-UK6XNW3I.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useColumnConfig}from"../chunk-UKBXQXDZ.js";import"../chunk-ULJQYXHB.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{TreemapChart}from"../chunk-WSRM6ZQS.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-NS37Y5CN.js";export{RangeChart}from"../chunk-DW45EZHA.js";export{RankedBars}from"../chunk-5NDONLH5.js";export{SankeyChart}from"../chunk-KETGA66S.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-IHPAYSTJ.js";export{StatTile}from"../chunk-3CMCGOOV.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-IFIMUNID.js";export{FunnelChart}from"../chunk-H7HRYFRQ.js";export{HeatmapChart}from"../chunk-SBZCJNNP.js";export{HistogramChart}from"../chunk-M54OL3YR.js";export{Meter}from"../chunk-R3JKZXII.js";export{PieChart}from"../chunk-3UHTHQGK.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-N5LVUI7R.js";export{RadialBarChart}from"../chunk-DJ2XDBAO.js";export{ChordChart}from"../chunk-U5DSVCWV.js";import"../chunk-HY6CBG4M.js";export{StepChain,StepChainItem}from"../chunk-DNLRUZGS.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-X5ZY35KZ.js";export{Divider}from"../chunk-DFOFEBYX.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-Q5Z3KHT2.js";export{ContextMenu,useContextMenu}from"../chunk-J33QE4J7.js";export{Banner}from"../chunk-6JDR6T4U.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-6HH6KNJB.js";export{Input_default as Input}from"../chunk-5Q7VFXEO.js";export{DropdownMenu}from"../chunk-SE3S362N.js";import"../chunk-JY2OBPVO.js";export{IconButton_default as IconButton}from"../chunk-SV5RRBVA.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{mediaFileName}from"../chunk-VQJLH2BU.js";export{TransferProgress}from"../chunk-YMNWUQGV.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-7KIDOIPY.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-UOUVHHTC.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-GEYM4WN3.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-Y3JW2GW5.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-A6WZF65N.js";export{DEFAULT_FLOW_CHART_LABELS,FlowChart}from"../chunk-PPSA3QLE.js";export{FLOW_LAYOUT,FLOW_SPEC_LIMITS,layoutFlow,parseFlowSpec}from"../chunk-FAERBT6Y.js";export{ChartBrush}from"../chunk-WMLBMR4E.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-7H7U3HC6.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-75MSXRFY.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-DZBGJ6X4.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{ImageAnnotator_default as ImageAnnotator}from"../chunk-FPYABAOX.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-Y4RERPFN.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-SCU2CWNJ.js";export{Dialog}from"../chunk-6EHPEBGP.js";export{ItemCount}from"../chunk-BXU3LX44.js";import"../chunk-3DVNXNTF.js";import"../chunk-7B5KFESH.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";export{ColoredBadge}from"../chunk-EZWWQHD3.js";import"../chunk-SCGBCBXP.js";import"../chunk-F3ZOO23R.js";import"../chunk-2QY5BJLA.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{VERSION}from"../chunk-TWFD7A3K.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-JMGDGNM7.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-6LYBE7LM.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{Button_default as Button}from"../chunk-EVYD6UFQ.js";import"../chunk-M5K4AX4E.js";export{Icon}from"../chunk-UIWGVOFH.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-G67CJAQ2.js";export{Tooltip}from"../chunk-SOZCWT6I.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{setShellApiClient}from"../chunk-STKJA4PV.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-TRWHVG3A.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";export{BoxPlotChart}from"../chunk-XK4U5MAS.js";export{CandlestickChart}from"../chunk-NEYHBQLG.js";export{CartesianPlot}from"../chunk-525O4AUQ.js";import"../chunk-BFO72WQB.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{ChartTooltip}from"../chunk-WDQI3FV6.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{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-43MCNASD.js";import"../chunk-C3QOHMR6.js";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{APP_VERSION,VERSION}from"./chunk-
|
|
1
|
+
export{APP_VERSION,VERSION}from"./chunk-TWFD7A3K.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-shell",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.8.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-CRQDRSFS.js
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import{openPreviewFile as e}from"./chunk-54K2ADBT.js";import{SidebarLayout as t}from"./chunk-RFKCSRJX.js";import"./chunk-QWK6DRSN.js";import"./chunk-KUEYOJBN.js";import{SearchableSelect as n}from"./chunk-C57PNNAW.js";import{Breadcrumbs as a}from"./chunk-PT77FC5X.js";import{Select_default as r}from"./chunk-UDVQORQM.js";import"./chunk-EO5RLFRX.js";import"./chunk-7HIHQR3X.js";import"./chunk-2NMW66P5.js";import"./chunk-GZQD6IBV.js";import"./chunk-YZR4T5FZ.js";import"./chunk-EB2UE6ZR.js";import{IconButton_default as i}from"./chunk-UGOJLNYR.js";import"./chunk-AYZY3YNC.js";import{formatBytes as s}from"./chunk-GEYM4WN3.js";import"./chunk-Y3JW2GW5.js";import"./chunk-36BRD5J3.js";import"./chunk-LF27WIN2.js";import{getFilesDemoTree as l}from"./chunk-6DZGOGB2.js";import{AboutApp as o}from"./chunk-ZKQWS2ML.js";import{getFilesStore as c,peekFilesViewRequest as d,consumeFilesViewRequest as h,FILES_SHOW_TRASH_EVENT as m,FILES_OPEN_DESKTOP_FOLDER_EVENT as p,subscribeDesktopFolders as u,getDesktopFoldersSnapshot as f,hasHostFilesStore as x,FolderGlyph as k,DesktopItemMiniIcon as g,desktopItemTypeLabel as N,FilesQuotaError as w}from"./chunk-OY3JH66O.js";import"./chunk-ESL5TDNA.js";import{useWindowManager as b,WindowTitle as v}from"./chunk-AHJAJLSK.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-Y4RERPFN.js";import"./chunk-5A7MWTXX.js";import"./chunk-ZDMZM7HD.js";import"./chunk-HE767CVB.js";import{confirm as y,prompt as j}from"./chunk-SCU2CWNJ.js";import{Dialog as C}from"./chunk-6EHPEBGP.js";import{ItemCount as D}from"./chunk-N7JX27JE.js";import"./chunk-3DVNXNTF.js";import"./chunk-7B5KFESH.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-5JUG74UR.js";import"./chunk-SCGBCBXP.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-KC3EX26K.js";import"./chunk-PWYLGTZS.js";import"./chunk-CDAJKLGL.js";import"./chunk-JPNAEN53.js";import"./chunk-IFQXTIMY.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import{Button_default as L}from"./chunk-UJJXWLHE.js";import"./chunk-XWFLIGDQ.js";import{Icon as W}from"./chunk-UIWGVOFH.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as E}from"./chunk-R2VKEMZH.js";import{TH_ONE_LINE as T}from"./chunk-CJH2BGXY.js";import"./chunk-QQ2LDC6C.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import{toast_default as $}from"./chunk-TRWHVG3A.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-43MCNASD.js";import"./chunk-C3QOHMR6.js";import{useState as R,useEffect as F,useSyncExternalStore as P,useRef as S,useCallback as A}from"react";import{jsxs as M,jsx as J,Fragment as U}from"react/jsx-runtime";var B=[{value:"viewer",label:"Viewer"},{value:"editor",label:"Editor"}];function G({store:e,entry:t,onClose:a,onChanged:s}){const[l,o]=R(null),[c,d]=R(""),[h,m]=R([]),[p,u]=R(!1),[f,x]=R(""),[k,g]=R("viewer"),[N,w]=R(!1),b=S(/* @__PURE__ */new Map),v=t?.id??null;if(F(()=>{if(o(null),x(""),d(""),!v||!e.shares)return;let t=!0;return e.shares(v).then(e=>{t&&o(e)}).catch(e=>{t&&($.error(e.message),o([]))}),()=>{t=!1}},[v,e]),F(()=>{if(!e.searchPeople||!v)return;let t=!0;u(!0);const n=setTimeout(()=>{e.searchPeople(c).then(e=>{if(t){for(const t of e)b.current.set(t.id,t);m(e)}}).catch(()=>{t&&m([])}).finally(()=>{t&&u(!1)})},250);return()=>{t=!1,clearTimeout(n)}},[c,v,e]),!t)return null;const y=new Set((l??[]).map(e=>e.person.id)),j=h.filter(e=>!y.has(e.id)).map(e=>({value:e.id,label:e.name})),D=async n=>{w(!0);try{await n(),o(await e.shares(t.id)),s()}catch(e){$.error(e.message)}finally{w(!1)}};/* @__PURE__ */
|
|
2
|
-
return M(C,{open:!0,onClose:a,size:"md",title:`Share “${t.name}”`,description:"folder"===t.kind?"Everything inside this folder is shared too. Editors’ uploads count toward your quota.":"Viewers can open and download it. Editors can also replace, rename and delete it.",footer:/* @__PURE__ */J(L,{variant:"secondary",onClick:a,children:"Done"}),children:[
|
|
3
|
-
/* @__PURE__ */M("div",{className:"flex items-center gap-2",children:[
|
|
4
|
-
/* @__PURE__ */J("div",{className:"min-w-0 flex-1",children:/* @__PURE__ */J(n,{value:f,onChange:x,onSearchChange:d,loading:p&&0===h.length,options:j,placeholder:"Search colleagues by name","aria-label":"Colleague to share with"})}),
|
|
5
|
-
/* @__PURE__ */J("div",{className:"w-28 shrink-0",children:/* @__PURE__ */J(r,{value:k,onChange:e=>g(e),options:B,"aria-label":"Access"})}),
|
|
6
|
-
/* @__PURE__ */J(L,{variant:"primary",onClick:()=>{if(!f||!e.share)return;const n=b.current.get(f);D(async()=>{await e.share(t.id,f,k),x(""),d(""),n&&$.success(`Shared with ${n.name}`)})},disabled:!f||N,children:"Add"})]}),
|
|
7
|
-
/* @__PURE__ */J("div",{className:"mt-4 mb-1 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:"Who has access"}),null===l?/* @__PURE__ */J(E,{size:"sm",padding:"p-4",label:"Loading"}):/* @__PURE__ */M("ul",{className:"divide-y divide-line-subtle text-sm",children:[
|
|
8
|
-
/* @__PURE__ */M("li",{className:"flex items-center gap-2 h-10",children:[
|
|
9
|
-
/* @__PURE__ */J("span",{className:"flex-1 truncate",children:"You"}),
|
|
10
|
-
/* @__PURE__ */J("span",{className:"text-xs text-ink-faint",children:"Owner"})]}),l.map(n=>/* @__PURE__ */M("li",{className:"flex items-center gap-2 h-10",children:[
|
|
11
|
-
/* @__PURE__ */J("span",{className:"flex-1 truncate",title:n.person.name,children:n.person.name}),
|
|
12
|
-
/* @__PURE__ */J("div",{className:"w-28 shrink-0",children:/* @__PURE__ */J(r,{value:n.role,onChange:a=>D(()=>e.share(t.id,n.person.id,a)),options:B,"aria-label":`Access for ${n.person.name}`,disabled:N})}),
|
|
13
|
-
/* @__PURE__ */J(i,{"aria-label":`Remove ${n.person.name}`,variant:"ghost",size:"sm",disabled:N,onClick:()=>D(()=>e.unshare(t.id,n.person.id)),children:/* @__PURE__ */J(W,{name:"close",className:"h-4 w-4",strokeWidth:1.8})})]},n.person.id))]})]})}var H={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 Y(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 O(e,t){return`Not enough space for “${e}” (${s(t.attempted)}). You've used ${s(t.used)} of ${s(t.limit)}. Empty Trash or ask an administrator for more space.`}var V=(e,t)=>e instanceof Error&&e.message||t;function Q(){const n=c(),r=null!==l(),i=!r&&!!n.shares&&!!n.sharedWithMe,[C,L]=R(null),[B,Q]=R(null),[I,K]=R([]),[X,z]=R([]),[Z,q]=R(null),[_,ee]=R(!0),[te,ne]=R(!1),[ae,re]=R(null),[ie,se]=R(!1),[le,oe]=R(null),[ce,de]=R(()=>{const e=d();return"trash"===e?"trash":e?{desktopFolderId:e.folderId}:"files"});F(()=>{h()},[]);const[he,me]=R([]);F(()=>{const e=()=>{h(),de("trash")},t=e=>{h();const t=e.detail?.folderId;t&&de({desktopFolderId:t})};return window.addEventListener(m,e),window.addEventListener(p,t),()=>{window.removeEventListener(m,e),window.removeEventListener(p,t)}},[]);const pe=P(u,f,f),ue="object"==typeof ce?ce.desktopFolderId:null,fe=ue?pe?.folders.find(e=>e.id===ue)??null:null,xe=ue&&pe?.itemsByFolder[ue]||[];F(()=>{ue&&pe&&!pe.folders.some(e=>e.id===ue)&&de("files")},[ue,pe]);const ke=S(0),ge=S(null),{openPage:Ne,openEntity:we}=b(),be=t=>{"preview-file"===t.entityType&&t.filePath&&t.fileKind?e({filePath:t.filePath,filename:t.label,kind:t.fileKind,onStaged:e=>Ne(e)}):"page"===t.entityType?Ne(t.entityId):we(t.entityType,t.entityId,null,t.label)},ve=A(async()=>{if(!r)try{re(await n.quota())}catch{}},[n,r]),ye=A(async e=>{if(q(null),r){const t=function(e){const t=e??"/",n=t.split("/").filter(Boolean);let a=l()??[];for(const e of n){const t=a.find(t=>"folder"===t.kind&&t.name===e);a=t?.children??[]}return{folder:{id:e,name:n[n.length-1]??"",role:"owner",path:[{id:null,name:""},...n.map((e,t)=>({id:"/"+n.slice(0,t+1).join("/"),name:e}))]},entries:a.map(e=>({id:("/"===t?"":t)+"/"+e.name,name:e.name,kind:e.kind,size:e.size??0,modifiedAt:e.modifiedAt??""}))}}(e);return Q(t),ne(!1),ee(!1),void(null===e&&K(t.entries.filter(e=>"folder"===e.kind)))}ee(!0);try{const t=await n.list(e);Q(t),ne(!1),null===e&&K(t.entries.filter(e=>"folder"===e.kind))}catch(e){e instanceof TypeError?ne(!0):$.error(V(e,"Failed to list"))}finally{ee(!1)}ve()},[n,ve,r]),je=A(async()=>{if(n.sharedWithMe){ee(!0),q(null);try{z(await n.sharedWithMe()),ne(!1)}catch(e){e instanceof TypeError?ne(!0):$.error(V(e,"Failed to list shared files"))}finally{ee(!1)}}},[n]),Ce=A(async()=>{if(r)return me([]),void ee(!1);ee(!0),q(null);try{me(await n.trash()),ne(!1)}catch(e){e instanceof TypeError?ne(!0):$.error(V(e,"Failed to list trash"))}finally{ee(!1)}ve()},[n,ve,r]),De=()=>{"files"===ce?ye(C):"shared"===ce?je():"trash"===ce&&Ce()};F(()=>{De()},[C,ce]);const Le=e=>{de("files"),L(e)},We=async(e,t)=>{try{await e()}catch(e){$.error(V(e,t))}De()},Ee=async e=>{try{const t=await n.read(e.id),a=URL.createObjectURL(t),r=document.createElement("a");r.href=a,r.download=e.name,r.click(),setTimeout(()=>URL.revokeObjectURL(a),1e3)}catch(e){$.error(V(e,"Download failed"))}},Te=async e=>{for(const t of Array.from(e))try{await n.upload(C,t)}catch(e){e instanceof w?$.error(O(t.name,e)):$.error(`Upload ${t.name}: ${V(e,"failed")}`)}ye(C)},$e=()=>{ke.current=0,se(!1)};if(F(()=>{const e=()=>$e();return window.addEventListener("dragend",e),window.addEventListener("drop",e),()=>{window.removeEventListener("dragend",e),window.removeEventListener("drop",e)}},[]),te)/* @__PURE__ */
|
|
14
|
-
return M("div",{className:"flex flex-col h-full bg-surface",children:[
|
|
15
|
-
/* @__PURE__ */J(v,{title:"Files - offline"}),
|
|
16
|
-
/* @__PURE__ */J("div",{className:"flex-1 flex items-center justify-center p-8 text-center",children:/* @__PURE__ */M("div",{className:"max-w-md",children:[
|
|
17
|
-
/* @__PURE__ */J(W,{name:"close-circle",className:"h-12 w-12 mx-auto text-ink-faintest mb-3",strokeWidth:1.4}),x()?/* @__PURE__ */M(U,{children:[
|
|
18
|
-
/* @__PURE__ */J("h3",{className:"text-base font-semibold text-ink-strong mb-1",children:"Can't reach your files"}),
|
|
19
|
-
/* @__PURE__ */J("p",{className:"text-sm text-ink-faint mb-3",children:"Check your connection and try again."})]}):/* @__PURE__ */M(U,{children:[
|
|
20
|
-
/* @__PURE__ */J("h3",{className:"text-base font-semibold text-ink-strong mb-1",children:"Can't reach the file server"}),
|
|
21
|
-
/* @__PURE__ */M("p",{className:"text-sm text-ink-faint mb-3",children:["No response from the file server. Make sure the server is running — see ",
|
|
22
|
-
/* @__PURE__ */J("span",{className:"font-mono",children:"examples/file-server/README.md"}),"."]})]}),
|
|
23
|
-
/* @__PURE__ */J("button",{onClick:De,className:"px-3 h-8 text-sm bg-accent-fill text-on-accent rounded hover:bg-accent-fill-hover",children:"Retry"})]})})]});const Re="files"===ce?B?.folder??null:null,Fe=Re?.role??"owner",Pe="owner"!==Fe,Se=!r&&"files"===ce&&"viewer"!==Fe,Ae="files"===ce?B?.entries??[]:[],Me=ae&&ae.limit>0?Math.min(100,Math.round(ae.used/ae.limit*100)):0,Je=Me>90?"bg-danger":Me>75?"bg-warning":"bg-accent-fill",Ue=(Re?.path??[]).filter(e=>null!==e.id),Be=[Pe?{label:"Shared with me",onClick:()=>de("shared")}:{label:"My files",onClick:()=>Le(null)},...Ue.map(e=>({label:e.name,onClick:()=>Le(e.id)}))],Ge=Ue.length>1?Ue[Ue.length-2].id:null,He=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-accent-tint font-medium text-accent-text":"text-ink hover:bg-row-hover"),Ye=e=>/* @__PURE__ */J("svg",{className:"h-4 w-4 shrink-0 text-ink-faintest",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.6,children:/* @__PURE__ */J("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})}),Oe=/* @__PURE__ */M("nav",{className:"p-2",children:[
|
|
24
|
-
/* @__PURE__ */J("div",{className:"px-2 py-2 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:"Locations"}),
|
|
25
|
-
/* @__PURE__ */M("button",{onClick:()=>Le(null),className:He("files"===ce&&null===C),children:[Ye("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"]}),I.map(e=>/* @__PURE__ */M("button",{onClick:()=>Le(e.id),className:He("files"===ce&&C===e.id),children:[Ye("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"),
|
|
26
|
-
/* @__PURE__ */J("span",{className:"truncate",children:e.name})]},e.id)),i&&/* @__PURE__ */M("button",{onClick:()=>de("shared"),className:He("shared"===ce||"files"===ce&&Pe),children:[
|
|
27
|
-
/* @__PURE__ */J(W,{name:"team",className:"h-4 w-4 shrink-0 text-ink-faintest",strokeWidth:1.6}),"Shared with me"]}),!r&&/* @__PURE__ */M("button",{onClick:()=>de("trash"),className:He("trash"===ce),children:[Ye("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"]}),pe&&pe.folders.length>0&&/* @__PURE__ */M(U,{children:[
|
|
28
|
-
/* @__PURE__ */J("div",{className:"px-2 pt-3 pb-2 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:"Desktop"}),pe.folders.map(e=>/* @__PURE__ */M("button",{onClick:()=>de({desktopFolderId:e.id}),className:He(ue===e.id),children:[
|
|
29
|
-
/* @__PURE__ */J(k,{className:"h-4 w-4 shrink-0 text-amber-500"}),
|
|
30
|
-
/* @__PURE__ */J("span",{className:"truncate",children:e.name}),
|
|
31
|
-
/* @__PURE__ */J(D,{count:e.itemCount,active:ue===e.id,className:"ml-auto"})]},e.id))]})]}),Ve=e=>/* @__PURE__ */J(W,"folder"===e?{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}:{name:"page",className:"h-4 w-4 text-ink-faintest shrink-0",strokeWidth:1.5}),Qe="px-2 py-0.5 rounded hover:bg-row-hover text-ink-faint text-2xs ml-1",Ie=t=>{"folder"===t.kind?Le(t.id):(async t=>{if(r)return;if(n.open?.(t))return;const a=(t.name.split(".").pop()||"").toLowerCase(),i=H[a];i?await e({filePath:n.shortcutPath?.(t.id)??t.id,filename:t.name,kind:i,load:()=>n.read(t.id),onStaged:e=>Ne(e)}):Ee(t)})(t)},Ke=fe?`Files - ${fe.name}`:"shared"===ce?"Files - Shared with me":"trash"===ce?"Files - Trash":Re&&null!==Re.id?`Files - ${Re.name}`:"Files";/* @__PURE__ */
|
|
32
|
-
return M("div",{className:"relative flex flex-col h-full bg-surface",onDragEnter:e=>{Se&&e.dataTransfer?.types?.includes?.("Files")&&(e.preventDefault(),ke.current++,ie||se(!0))},onDragOver:e=>{e.dataTransfer?.types?.includes?.("Files")&&e.preventDefault()},onDragLeave:()=>{ke.current>0&&ke.current--,0===ke.current&&se(!1)},onDrop:e=>{e.preventDefault(),$e(),Se&&e.dataTransfer.files?.length&&Te(e.dataTransfer.files)},children:[
|
|
33
|
-
/* @__PURE__ */J(v,{title:Ke}),
|
|
34
|
-
/* @__PURE__ */J(o,{app:"files"}),
|
|
35
|
-
/* @__PURE__ */J("input",{ref:ge,type:"file",multiple:!0,className:"hidden",onChange:e=>{e.target.files?.length&&Te(e.target.files),ge.current&&(ge.current.value="")}}),
|
|
36
|
-
/* @__PURE__ */J("div",{className:"flex-1 min-h-0",children:/* @__PURE__ */J(t,{sidebar:Oe,storageKey:"files.sidebarWidth",defaultWidth:200,minWidth:150,maxWidth:320,children:/* @__PURE__ */M("div",{className:"flex h-full min-w-0 flex-col",children:[
|
|
37
|
-
/* @__PURE__ */M("div",{className:"flex items-center gap-1 px-2 py-2 border-b border-line bg-surface-sunken shrink-0 text-xs",children:[/* @__PURE__ */M(U,"files"===ce?{children:[
|
|
38
|
-
/* @__PURE__ */J("button",{onClick:()=>{Pe&&Ue.length<=1?de("shared"):Le(Ge)},disabled:!Pe&&null===C,className:"px-2 py-1 rounded hover:bg-row-hover disabled:opacity-30 text-ink-muted",title:"Parent folder",children:/* @__PURE__ */J(W,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
39
|
-
/* @__PURE__ */M("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[
|
|
40
|
-
/* @__PURE__ */J("div",{className:"min-w-0 flex-1",children:/* @__PURE__ */J(a,{items:Be,maxItems:5})}),Pe&&"viewer"===Fe&&/* @__PURE__ */M("span",{className:"shrink-0 inline-flex items-center gap-1 rounded-full bg-surface-sunken px-2 py-0.5 text-2xs text-ink-faint whitespace-nowrap",children:[
|
|
41
|
-
/* @__PURE__ */J(W,{name:"eye",className:"h-3 w-3",strokeWidth:1.8}),"View only"]}),Pe&&Re?.owner&&/* @__PURE__ */M("span",{className:"shrink-0 text-2xs text-ink-faint whitespace-nowrap",children:["Shared by ",Re.owner.name]})]}),
|
|
42
|
-
/* @__PURE__ */J("button",{onClick:De,className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted",title:"Refresh",children:/* @__PURE__ */J(W,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),Se&&/* @__PURE__ */M(U,{children:[!Pe&&/* @__PURE__ */M("button",{onClick:()=>de("trash"),className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted flex items-center gap-1",title:"Open trash",children:[
|
|
43
|
-
/* @__PURE__ */J(W,{name:"trash",className:"h-3.5 w-3.5",strokeWidth:1.5}),"Trash"]}),
|
|
44
|
-
/* @__PURE__ */M("button",{onClick:async()=>{const e=await j({title:"New folder",placeholder:"Folder name",confirmLabel:"Create"});e&&(/[\\/]/.test(e)?$.error("Folder names cannot contain slashes"):We(()=>n.createFolder(C,e),"Create folder failed"))},className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted flex items-center gap-1",children:[
|
|
45
|
-
/* @__PURE__ */J(W,{name:"folder-plus",className:"h-3.5 w-3.5",strokeWidth:1.5}),"New Folder"]}),
|
|
46
|
-
/* @__PURE__ */M("button",{onClick:()=>ge.current?.click(),className:"px-2 py-1 rounded bg-accent-fill text-on-accent hover:bg-accent-fill-hover flex items-center gap-1",children:[
|
|
47
|
-
/* @__PURE__ */J(W,{name:"upload",className:"h-3.5 w-3.5",strokeWidth:1.8}),"Upload"]})]})]}:"shared"===ce?{children:[
|
|
48
|
-
/* @__PURE__ */J(W,{name:"team",className:"h-4 w-4 ml-1",strokeWidth:1.6}),
|
|
49
|
-
/* @__PURE__ */J("span",{className:"flex-1 text-ink font-medium px-1",children:"Shared with me"}),
|
|
50
|
-
/* @__PURE__ */J("button",{onClick:je,className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted",title:"Refresh",children:/* @__PURE__ */J(W,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})})]}:"trash"===ce?{children:[
|
|
51
|
-
/* @__PURE__ */J("button",{onClick:()=>de("files"),className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted",title:"Back to files",children:/* @__PURE__ */J(W,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
52
|
-
/* @__PURE__ */J("span",{className:"flex-1 text-ink font-medium px-2",children:"Trash"}),
|
|
53
|
-
/* @__PURE__ */J("button",{onClick:Ce,className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted",title:"Refresh",children:/* @__PURE__ */J(W,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),
|
|
54
|
-
/* @__PURE__ */J("button",{onClick:async()=>{if(0===he.length)return;await y({title:"Empty trash",message:`${he.length} item${1===he.length?"":"s"} will be permanently removed. This can't be undone.`,confirmLabel:"Empty trash",variant:"danger"})&&We(()=>n.emptyTrash(),"Empty trash failed")},disabled:0===he.length,className:"px-2 py-1 rounded text-danger-text hover:bg-status-danger-soft disabled:opacity-30 flex items-center gap-1",children:"Empty trash"})]}:{children:[
|
|
55
|
-
/* @__PURE__ */J("button",{onClick:()=>de("files"),className:"px-2 py-1 rounded hover:bg-row-hover text-ink-muted",title:"Back to files",children:/* @__PURE__ */J(W,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
56
|
-
/* @__PURE__ */J(k,{className:"h-4 w-4 text-amber-500 ml-1"}),
|
|
57
|
-
/* @__PURE__ */J("span",{className:"flex-1 text-ink font-medium px-1 truncate",children:fe?.name??"Desktop folder"}),
|
|
58
|
-
/* @__PURE__ */J("span",{className:"text-2xs text-ink-faintest px-2",children:"Desktop shortcuts"})]}),ae&&/* @__PURE__ */M(U,{children:[
|
|
59
|
-
/* @__PURE__ */J("div",{className:"h-4 w-px bg-line-strong mx-1"}),
|
|
60
|
-
/* @__PURE__ */M("div",{className:"flex items-center gap-2",title:`${s(ae.used)} of ${s(ae.limit)} used`,children:[
|
|
61
|
-
/* @__PURE__ */J("div",{className:"w-20 h-1.5 rounded-full bg-line overflow-hidden",children:/* @__PURE__ */J("div",{className:`h-full ${Je} transition-all`,style:{width:`${Me}%`}})}),
|
|
62
|
-
/* @__PURE__ */M("span",{className:"text-2xs text-ink-faint tabular-nums whitespace-nowrap",children:[s(ae.used)," / ",s(ae.limit)]})]})]})]}),
|
|
63
|
-
/* @__PURE__ */J("div",{className:"flex-1 overflow-auto",children:"object"==typeof ce?0===xe.length?/* @__PURE__ */J("div",{className:"p-10 text-center text-sm text-ink-faintest",children:"This desktop folder is empty. Drag shortcuts onto it on the desktop."}):/* @__PURE__ */M("table",{className:"w-full text-sm",children:[
|
|
64
|
-
/* @__PURE__ */J("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */M("tr",{children:[
|
|
65
|
-
/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8`,children:"Name"}),
|
|
66
|
-
/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8 w-28`,children:"Type"}),
|
|
67
|
-
/* @__PURE__ */J("th",{className:`${T} w-56`})]})}),
|
|
68
|
-
/* @__PURE__ */J("tbody",{children:xe.map(e=>{const t=`${e.entityType}|${e.entityId}`;/* @__PURE__ */
|
|
69
|
-
return M("tr",{onClick:()=>q(t),onDoubleClick:()=>be(e),className:"cursor-default border-b border-line-subtle "+(Z===t?"bg-accent-tint":"hover:bg-row-hover"),children:[
|
|
70
|
-
/* @__PURE__ */M("td",{className:"px-3 h-8 flex items-center gap-2",children:[
|
|
71
|
-
/* @__PURE__ */J(g,{item:e}),
|
|
72
|
-
/* @__PURE__ */J("span",{className:"truncate",title:e.label,children:e.label})]}),
|
|
73
|
-
/* @__PURE__ */J("td",{className:"px-3 h-8 text-xs text-ink-faint",children:N(e)}),
|
|
74
|
-
/* @__PURE__ */M("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
|
|
75
|
-
/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),be(e)},className:"px-2 py-0.5 rounded hover:bg-row-hover text-accent-text text-2xs",children:"Open"}),
|
|
76
|
-
/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),pe?.moveToDesktop([e])},className:"px-2 py-0.5 rounded hover:bg-row-hover text-ink-faint text-2xs ml-1",children:"Move to desktop"}),
|
|
77
|
-
/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),pe?.removeShortcuts([e])},className:"px-2 py-0.5 rounded hover:bg-status-danger-soft text-danger-text text-2xs ml-1",children:"Remove"})]})]},t)})})]}):"shared"===ce?_&&0===X.length?/* @__PURE__ */J(E,{size:"sm",padding:"p-6",label:"Loading"}):0===X.length?/* @__PURE__ */J("div",{className:"p-10 text-center text-sm text-ink-faintest",children:"Nothing has been shared with you yet. Files and folders colleagues share with you show here."}):/* @__PURE__ */M("table",{className:"w-full text-sm",children:[
|
|
78
|
-
/* @__PURE__ */J("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */M("tr",{children:[
|
|
79
|
-
/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8`,children:"Name"}),
|
|
80
|
-
/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8 w-40`,children:"Owner"}),
|
|
81
|
-
/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8 w-24`,children:"Access"}),
|
|
82
|
-
/* @__PURE__ */J("th",{className:`${T} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
|
|
83
|
-
/* @__PURE__ */J("th",{className:`${T} w-32`})]})}),
|
|
84
|
-
/* @__PURE__ */J("tbody",{children:X.map(e=>/* @__PURE__ */M("tr",{onClick:()=>q(e.id),onDoubleClick:()=>Ie(e),className:"cursor-default border-b border-line-subtle "+(Z===e.id?"bg-accent-tint":"hover:bg-row-hover"),children:[
|
|
85
|
-
/* @__PURE__ */M("td",{className:"px-3 h-8 flex items-center gap-2",children:[Ve(e.kind),
|
|
86
|
-
/* @__PURE__ */J("span",{className:"truncate",title:e.name,children:e.name})]}),
|
|
87
|
-
/* @__PURE__ */J("td",{className:"px-3 h-8 text-ink-faint truncate",children:e.owner?.name??"—"}),
|
|
88
|
-
/* @__PURE__ */J("td",{className:"px-3 h-8 text-ink-faint",children:"editor"===e.role?"Editor":"Viewer"}),
|
|
89
|
-
/* @__PURE__ */J("td",{className:"px-3 h-8 text-right tabular-nums text-ink-faint",children:"folder"===e.kind?"—":s(e.size)}),
|
|
90
|
-
/* @__PURE__ */M("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
|
|
91
|
-
/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),Ie(e)},className:"px-2 py-0.5 rounded hover:bg-row-hover text-accent-text text-2xs",children:"Open"}),"file"===e.kind&&/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),Ee(e)},className:Qe,children:"Download"})]})]},e.id))})]}):"trash"===ce?_&&0===he.length?/* @__PURE__ */J(E,{size:"sm",padding:"p-6",label:"Loading"}):0===he.length?/* @__PURE__ */J("div",{className:"p-10 text-center text-sm text-ink-faintest",children:"Trash is empty."}):/* @__PURE__ */M("table",{className:"w-full text-sm",children:[
|
|
92
|
-
/* @__PURE__ */J("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */M("tr",{children:[
|
|
93
|
-
/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8`,children:"Name"}),
|
|
94
|
-
/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8`,children:"Original location"}),
|
|
95
|
-
/* @__PURE__ */J("th",{className:`${T} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
|
|
96
|
-
/* @__PURE__ */J("th",{className:`${T} text-right font-medium px-3 h-8 w-40`,children:"Deleted"}),
|
|
97
|
-
/* @__PURE__ */J("th",{className:`${T} w-44`})]})}),
|
|
98
|
-
/* @__PURE__ */J("tbody",{children:he.map(e=>/* @__PURE__ */M("tr",{className:"border-b border-line-subtle hover:bg-row-hover",children:[
|
|
99
|
-
/* @__PURE__ */M("td",{className:"px-3 h-8 flex items-center gap-2",children:[Ve(e.kind),
|
|
100
|
-
/* @__PURE__ */J("span",{className:"truncate",title:e.name,children:e.name})]}),
|
|
101
|
-
/* @__PURE__ */J("td",{className:"px-3 h-8 text-ink-faint text-xs font-mono truncate",title:e.originalPath,children:e.originalPath||"—"}),
|
|
102
|
-
/* @__PURE__ */J("td",{className:"px-3 h-8 text-right tabular-nums text-ink-faint",children:s(e.size)}),
|
|
103
|
-
/* @__PURE__ */J("td",{className:"px-3 h-8 text-right text-ink-faint tabular-nums",children:e.deletedAt?Y(e.deletedAt):"—"}),
|
|
104
|
-
/* @__PURE__ */M("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
|
|
105
|
-
/* @__PURE__ */J("button",{onClick:()=>{return t=e,We(async()=>{await n.restore(t.id),$.success(`Restored "${t.name}"`)},"Restore failed");var t},className:"px-2 py-0.5 rounded hover:bg-row-hover text-accent-text text-2xs",children:"Restore"}),
|
|
106
|
-
/* @__PURE__ */J("button",{onClick:()=>(async e=>{await y({title:"Permanently delete",message:`"${e.name}" will be permanently removed. This can't be undone.`,confirmLabel:"Delete forever",variant:"danger"})&&We(()=>n.purge(e.id),"Delete failed")})(e),className:"px-2 py-0.5 rounded hover:bg-status-danger-soft text-danger-text text-2xs ml-1",children:"Delete forever"})]})]},e.id))})]}):_&&0===Ae.length?/* @__PURE__ */J(E,{size:"sm",padding:"p-6",label:"Loading"}):0===Ae.length?/* @__PURE__ */M("div",{className:"p-10 text-center text-sm text-ink-faintest",children:["Empty folder.",Se&&/* @__PURE__ */M(U,{children:[" Drop files here or click ",
|
|
107
|
-
/* @__PURE__ */J("span",{className:"font-medium",children:"Upload"}),"."]})]}):/* @__PURE__ */M("table",{className:"w-full text-sm",children:[
|
|
108
|
-
/* @__PURE__ */J("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */M("tr",{children:[
|
|
109
|
-
/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8`,children:"Name"}),
|
|
110
|
-
/* @__PURE__ */J("th",{className:`${T} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
|
|
111
|
-
/* @__PURE__ */J("th",{className:`${T} text-right font-medium px-3 h-8 w-40`,children:"Modified"}),i&&!Pe&&/* @__PURE__ */J("th",{className:`${T} text-left font-medium px-3 h-8 w-28`,children:"Shared"}),
|
|
112
|
-
/* @__PURE__ */J("th",{className:`${T} w-48`})]})}),
|
|
113
|
-
/* @__PURE__ */J("tbody",{children:Ae.map(e=>{const t=e.role??Fe,a="owner"===t,l=Se&&"viewer"!==t;/* @__PURE__ */
|
|
114
|
-
return M("tr",{onClick:()=>q(e.id),onDoubleClick:()=>Ie(e),className:"cursor-default border-b border-line-subtle "+(Z===e.id?"bg-accent-tint":"hover:bg-row-hover"),children:[
|
|
115
|
-
/* @__PURE__ */M("td",{className:"px-3 h-8 flex items-center gap-2",children:[Ve(e.kind),
|
|
116
|
-
/* @__PURE__ */J("span",{className:"truncate",title:e.name,children:e.name})]}),
|
|
117
|
-
/* @__PURE__ */J("td",{className:"px-3 h-8 text-right tabular-nums text-ink-faint whitespace-nowrap",children:"folder"===e.kind?"—":s(e.size)}),
|
|
118
|
-
/* @__PURE__ */J("td",{className:"px-3 h-8 text-right text-ink-faint tabular-nums whitespace-nowrap",children:Y(e.modifiedAt)}),i&&!Pe&&/* @__PURE__ */J("td",{className:"px-3 h-8",children:e.shareCount?/* @__PURE__ */J("span",{className:"inline-flex rounded-full bg-accent-tint px-2 py-0.5 text-2xs text-accent-text whitespace-nowrap",children:1===e.shareCount?"1 person":`${e.shareCount} people`}):/* @__PURE__ */J("span",{className:"text-ink-faintest",children:"—"})}),
|
|
119
|
-
/* @__PURE__ */J("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:!r&&/* @__PURE__ */M(U,{children:["file"===e.kind&&/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),Ee(e)},className:Qe,children:"Download"}),i&&a&&/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),oe(e)},className:Qe,children:"Share"}),l&&/* @__PURE__ */M(U,{children:[
|
|
120
|
-
/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),(async e=>{const t=await j({title:`Rename ${e.kind}`,defaultValue:e.name,confirmLabel:"Rename"});t&&t!==e.name&&(/[\\/]/.test(t)?$.error("Names cannot contain slashes"):We(()=>n.rename(e.id,t),"Rename failed"))})(e)},className:Qe,children:"Rename"}),
|
|
121
|
-
/* @__PURE__ */J("button",{onClick:t=>{t.stopPropagation(),(async e=>{const t="owner"!==(e.role??"owner");await y({title:`Delete ${e.kind}`,message:`"${e.name}"${"folder"===e.kind?" and everything inside":""} will move to `+(t?`${(e.owner??B?.folder.owner)?.name??"its owner"}'s Trash.`:"Trash. You can restore it from there."),confirmLabel:"Delete",variant:"danger"})&&We(()=>n.remove(e.id),"Delete failed")})(e)},className:"px-2 py-0.5 rounded hover:bg-status-danger-soft text-danger-text text-2xs ml-1",children:"Delete"})]})]})})]},e.id)})})]})})]})})}),i&&/* @__PURE__ */J(G,{store:n,entry:le,onClose:()=>oe(null),onChanged:()=>ye(C)}),ie&&/* @__PURE__ */J("div",{className:"absolute inset-0 bg-accent-tint border-4 border-dashed border-accent-border pointer-events-none flex items-center justify-center z-20",children:/* @__PURE__ */J("div",{className:"px-4 py-2 rounded-md bg-accent-fill text-on-accent text-sm font-medium shadow-lg",children:"Drop to upload"})})]})}export{Q as default,O as quotaExceededMessage};
|
package/dist/Sidebar-F7HHC5GY.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import{useAuth as e,parseOpenSections as t,readStored as r,RAIL_OPEN_SECTIONS_KEY as n,RAIL_WIDTH_KEY as a,toggleOpenSection as i,writeStored as l}from"./chunk-U6LKNGC6.js";import{ResizeHandle as o}from"./chunk-KUEYOJBN.js";import{openGlobalSearch as s}from"./chunk-4KJ7MLWO.js";import{partitionNav as c,visibleNavChildren as d,flyoutGroups as m,visibleSectionItems as h,rowsContainRoute as u}from"./chunk-WGRS6QBT.js";import{BrandMark as p}from"./chunk-MI67DI3H.js";import{IconButton_default as b}from"./chunk-UGOJLNYR.js";import{RAIL_MENU_GAP as f,navSections as g,startMenuCategories as x,TAB_STRIP_H as k,RAIL_COLLAPSED_INSET as y,RAIL_W as v,RAIL_MAX_W as N,RAIL_MIN_W as j,navIcons as C,sectionIcons as w}from"./chunk-4LXCCZDM.js";import"./chunk-5A7MWTXX.js";import"./chunk-7QSDPSXP.js";import"./chunk-2QY5BJLA.js";import{PopupMenu as S,PopupMenuItem as L,PopupMenuDivider as W,PopupMenuLabel as z}from"./chunk-IFQXTIMY.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-XWFLIGDQ.js";import{Icon as $}from"./chunk-UIWGVOFH.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-QQ2LDC6C.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import{useShellStrings as I}from"./chunk-43MCNASD.js";import"./chunk-C3QOHMR6.js";import{useMemo as A,useState as M,useRef as H,useEffect as Q,isValidElement as R,cloneElement as T}from"react";import{jsx as D,jsxs as K,Fragment as J}from"react/jsx-runtime";var U="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform);function B(e,t,r){const n=Math.max(8,r-t.bottom);return{left:e+f,bottom:n,maxHeight:r-n-8,overflowY:"auto"}}var Y=(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(" "),G="flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-[18px]";function O({open:e,children:t}){const r=H(null);return Q(()=>{r.current?.toggleAttribute("inert",!e)},[e]),/* @__PURE__ */D("div",{ref:r,className:"grid transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-none",style:{gridTemplateRows:e?"1fr":"0fr",opacity:e?1:0},"aria-hidden":!e,"data-fold":e?"open":"closed",children:/* @__PURE__ */D("div",{className:"min-h-0 overflow-hidden",children:t})})}function P({open:e}){/* @__PURE__ */
|
|
2
|
-
return D($,{name:"chevron-down",className:"size-4 shrink-0 transition-transform "+(e?"rotate-180":""),strokeWidth:2,"aria-hidden":"true"})}function X({dir:e}){/* @__PURE__ */
|
|
3
|
-
return D($,"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 F({className:e}){/* @__PURE__ */
|
|
4
|
-
return D($,{name:"search",className:e,strokeWidth:2,"aria-hidden":"true"})}var _=e=>.75+1.75*e+"rem";function V({width:V,collapsed:Z,onToggleCollapsed:E,onResize:q,onHome:ee,onOpen:te,activeRoute:re,profile:ne,user:ae,onLogout:ie,onSwitchToDesktop:le,onReportBug:oe,onClose:se,navSections:ce=g,navIcons:de=C,sectionIcons:me=w,categories:he=x,productName:ue,productIcon:pe,tagline:be,adaptiveLogo:fe=!1,logoHasAlpha:ge=null,logoIsLight:xe=null}){const ke=I().layout,{hasAnyPerm:ye}=e(),ve=A(()=>c(ce,he,ye),[ce,he,ye]),[Ne,je]=M(()=>t(r(n))),Ce=A(()=>[...ve.topItems.filter(e=>d(e,ye).length>0).map(e=>`child:${e.to}`),...[...ve.erpSections,...ve.systemSections,...ve.virtualSections,...ve.footerSections].map(e=>e.label)],[ve,ye]),we=(e,t=Ce)=>je(r=>{const a=i(r,e,t);return l(n,JSON.stringify([...a])),a}),[Se,Le]=M(null),[We,ze]=M(!1),$e=H(null);Q(()=>{Z||Le(null)},[Z]);const Ie=(e,t)=>{Le(null),e.onSelect?e.onSelect():te(e.to,!!t&&(e=>e.metaKey||e.ctrlKey||1===e.button)(t))},Ae=(e,t)=>{const r=t[e];/* @__PURE__ */
|
|
5
|
-
return D("span",{className:G,"aria-hidden":"true",children:r&&R(r)?T(r,{className:"size-[18px]"}):r})},Me=e=>e.filter(e=>d(e,ye).length>0).map(e=>`child:${e.to}`),He=(e,t,r=Ce)=>{const n=d(e,ye),a=e.menuLabel??e.label;if(n.length>0){const i=`child:${e.to}`,l=Ne.has(i),o=!l&&u(n,re,ye);/* @__PURE__ */
|
|
6
|
-
return K("div",{children:[
|
|
7
|
-
/* @__PURE__ */K("button",{type:"button",onClick:()=>we(i,r),"aria-expanded":l,className:Y(o,!1),style:t>0?{paddingLeft:_(t)}:void 0,children:[0===t&&Ae(e.to,de),
|
|
8
|
-
/* @__PURE__ */D("span",{className:"min-w-0 flex-1 truncate",children:a}),
|
|
9
|
-
/* @__PURE__ */D(P,{open:l})]}),
|
|
10
|
-
/* @__PURE__ */D(O,{open:l,children:/* @__PURE__ */D("div",{className:"space-y-0.5 pt-0.5",children:n.map(e=>He(e,t+1,Me(n)))})}),e.dividerAfter&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:_(t)},"aria-hidden":"true"})]},e.to)}const i=e.to===re;/* @__PURE__ */
|
|
11
|
-
return K("div",{children:[
|
|
12
|
-
/* @__PURE__ */K("button",{type:"button",onClick:t=>Ie(e,t),onAuxClick:t=>{1===t.button&&Ie(e,t)},"aria-current":i?"page":void 0,className:Y(i,!1),style:t>0?{paddingLeft:_(t)}:void 0,children:[0===t&&Ae(e.to,de),
|
|
13
|
-
/* @__PURE__ */D("span",{className:"min-w-0 flex-1 truncate",children:a})]}),e.dividerAfter&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:_(t)},"aria-hidden":"true"})]},e.to)},Qe=(e,t)=>{const r=t?e.items:h(e,ye);if(0===r.length)return null;const n="icon"in e&&e.icon?/* @__PURE__ */D("span",{className:G,"aria-hidden":"true",children:e.icon}):Ae(e.label,me),a=e.menuLabel??e.label,i=u(r,re,ye),l="dividerAfter"in e&&e.dividerAfter;if(Z)/* @__PURE__ */
|
|
14
|
-
return K("div",{children:[
|
|
15
|
-
/* @__PURE__ */D("button",{type:"button",title:a,"aria-label":a,"aria-haspopup":"menu","aria-expanded":Se?.label===e.label,onClick:t=>{const n=t.currentTarget.getBoundingClientRect();Le(t=>t?.label===e.label?null:{label:e.label,items:r,top:n.top})},className:Y(i||Se?.label===e.label,!0),children:n}),l&&/* @__PURE__ */D("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__ */
|
|
16
|
-
return K("div",{children:[
|
|
17
|
-
/* @__PURE__ */K("button",{type:"button",onClick:()=>we(e.label),"aria-expanded":o,"aria-controls":s,className:Y(!o&&i,!1),children:[n,
|
|
18
|
-
/* @__PURE__ */D("span",{className:"min-w-0 flex-1 truncate",children:a}),
|
|
19
|
-
/* @__PURE__ */D(P,{open:o})]}),
|
|
20
|
-
/* @__PURE__ */D(O,{open:o,children:/* @__PURE__ */D("div",{id:s,role:"group","aria-label":a,className:"space-y-0.5 pt-0.5",children:r.map(e=>He(e,1,Me(r)))})}),l&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label)},Re=ne?.first_name?`${ne.first_name} ${ne.last_name||""}`.trim():ae?.email||"",Te=(ne?.first_name?.charAt(0)||ae?.email?.charAt(0)||"?").toUpperCase(),De=ne?.avatar_url?/* @__PURE__ */D("img",{src:ne.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */D("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:Te}),Ke=We?$e.current?.getBoundingClientRect():void 0,Je=Z?"":"px-3",Ue=Z?{paddingInline:y}:void 0,Be=`${Z?ke.expandSidebar:ke.collapseSidebar} (${U?"⌘":"Ctrl"} .)`,Ye=ee?{run:ee,label:ke.goHome,title:ke.goHome}:se?null:{run:E,label:Z?ke.expandSidebar:ke.collapseSidebar,title:Be},Ge=/* @__PURE__ */K(J,{children:[pe&&/* @__PURE__ */D(p,{src:pe,alt:"",slot:"compact",surface:"light",adaptive:fe,hasAlpha:ge,isLight:xe,size:28,decorative:!0}),!Z&&/* @__PURE__ */K("span",{className:"min-w-0 text-left leading-tight",children:[
|
|
21
|
-
/* @__PURE__ */D("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:ue??"Apps"}),be&&/* @__PURE__ */D("span",{className:"block truncate text-2xs font-medium text-gray-500",children:be})]})]}),Oe=ve.erpSections.length>0||ve.systemSections.length>0||ve.virtualSections.length>0;/* @__PURE__ */
|
|
22
|
-
return K("aside",{"aria-label":ke.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:V},children:[
|
|
23
|
-
/* @__PURE__ */K("div",{className:"flex shrink-0 items-center border-b border-gray-200 "+(Z?"justify-center":"justify-between gap-2 pl-4 pr-2"),style:{height:k},children:[Ye?/* @__PURE__ */D("button",{type:"button",onClick:Ye.run,"aria-label":Ye.label,title:Ye.title,className:"flex min-w-0 items-center gap-2 rounded-md transition-colors hover:bg-gray-100 "+(Z?"justify-center p-0.5":"-ml-1 p-1"),children:Ge}):/* @__PURE__ */D("span",{className:"flex min-w-0 items-center gap-2",children:Ge}),se?/* @__PURE__ */D(b,{onClick:se,"aria-label":ke.closeMenu,children:/* @__PURE__ */D($,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})}):!Z&&/* @__PURE__ */D("button",{type:"button",onClick:E,"aria-label":ke.collapseSidebar,title:`${ke.collapseSidebar} (${U?"⌘":"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__ */D(X,{dir:"left"})})]}),
|
|
24
|
-
/* @__PURE__ */D("div",{className:`shrink-0 pt-3 ${Je}`,style:Ue,children:Z?/* @__PURE__ */D("button",{type:"button",onClick:s,"aria-label":ke.search,title:`${ke.search} (${U?"⌘K":"Ctrl K"})`,className:Y(!1,!0),children:/* @__PURE__ */D(F,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */K("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:[
|
|
25
|
-
/* @__PURE__ */D(F,{className:"size-3.5 text-gray-500"}),
|
|
26
|
-
/* @__PURE__ */D("span",{className:"min-w-0 flex-1 truncate text-sm text-ink-faint",children:ke.search}),
|
|
27
|
-
/* @__PURE__ */D("kbd",{className:"rounded border border-line bg-gray-100 px-2 py-0.5 font-mono text-2xs font-semibold text-ink-faint",children:U?"⌘K":"Ctrl K"})]})}),
|
|
28
|
-
/* @__PURE__ */K("nav",{"aria-label":ke.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${Je} ${Z?"space-y-1":"space-y-0.5"}`,style:Ue,children:[Z&&/* @__PURE__ */D("button",{type:"button",onClick:E,"aria-label":ke.expandSidebar,title:`${ke.expandSidebar} (${U?"⌘":"Ctrl"} .)`,className:`${Y(!1,!0)} mb-3`,children:/* @__PURE__ */D(X,{dir:"right"})}),ve.topItems.map(e=>{if(!Z)return He(e,0);const t=d(e,ye),r=e.to===re||u(t,re,ye),n=e.menuLabel??e.label;/* @__PURE__ */
|
|
29
|
-
return K("div",{children:[
|
|
30
|
-
/* @__PURE__ */D("button",{type:"button",title:n,"aria-label":n,onClick:r=>{if(0===t.length)return void Ie(e,r);const n=r.currentTarget.getBoundingClientRect();Le(r=>r?.label===e.to?null:{label:e.to,items:t,top:n.top})},className:Y(r,!0),children:Ae(e.to,de)}),e.dividerAfter&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.to)}),ve.topItems.length>0&&Oe&&!ve.topItems[ve.topItems.length-1].dividerAfter&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ve.erpSections.map(e=>Qe(e,!1)),ve.systemSections.map(e=>Qe(e,!1)),ve.virtualSections.map(e=>Qe(e,!0)),ve.footerSections.length>0&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ve.footerSections.map(e=>Qe(e,!1))]}),
|
|
31
|
-
/* @__PURE__ */D("div",{className:`shrink-0 border-t border-gray-200 py-2 ${Je}`,style:Ue,children:/* @__PURE__ */K("button",{ref:$e,type:"button",onClick:()=>ze(e=>!e),"aria-haspopup":"menu","aria-expanded":We,"aria-label":Z?ke.accountMenu(Re):void 0,className:"flex w-full items-center gap-3 rounded-md hover:bg-gray-100 "+(Z?"justify-center py-2":"px-2 py-2"),children:[De,!Z&&/* @__PURE__ */K("span",{className:"min-w-0 flex-1 text-left",children:[
|
|
32
|
-
/* @__PURE__ */D("span",{className:"block truncate text-sm font-semibold text-ink-strong",children:Re}),ae?.email&&Re!==ae.email&&/* @__PURE__ */D("span",{className:"block truncate text-2xs text-ink-faint",children:ae.email})]})]})}),q&&!Z&&!se&&/* @__PURE__ */D(o,{side:"left",width:V,onResize:q,min:j,max:N,defaultWidth:v,storageKey:a,label:ke.resizeSidebar}),We&&Ke&&/* @__PURE__ */K(S,{portal:!0,minWidth:224,onClose:()=>ze(!1),style:B(V,Ke,window.innerHeight),children:[Z&&/* @__PURE__ */K("div",{className:"border-b border-line px-3 py-3",children:[
|
|
33
|
-
/* @__PURE__ */D("p",{className:"truncate text-sm font-semibold text-gray-800",children:Re}),ae?.email&&/* @__PURE__ */D("p",{className:"truncate text-xs text-gray-500",children:ae.email})]}),
|
|
34
|
-
/* @__PURE__ */K(L,{onClick:()=>{ze(!1),te("/profile",!1)},children:[
|
|
35
|
-
/* @__PURE__ */D($,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ke.profile]}),ve.footerItems.map(e=>/* @__PURE__ */K(L,{onClick:()=>{ze(!1),Ie(e)},children:[
|
|
36
|
-
/* @__PURE__ */D("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:de[e.to]}),e.menuLabel??e.label]},e.to)),oe&&/* @__PURE__ */K(L,{onClick:()=>{ze(!1),oe()},children:[
|
|
37
|
-
/* @__PURE__ */D($,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ke.reportIssue]}),
|
|
38
|
-
/* @__PURE__ */D(W,{}),le&&/* @__PURE__ */K(J,{children:[
|
|
39
|
-
/* @__PURE__ */K(L,{onClick:()=>{ze(!1),le()},children:[
|
|
40
|
-
/* @__PURE__ */D($,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ke.switchToDesktop]}),
|
|
41
|
-
/* @__PURE__ */D(W,{})]}),
|
|
42
|
-
/* @__PURE__ */K(L,{danger:!0,onClick:()=>{ze(!1),ie()},children:[
|
|
43
|
-
/* @__PURE__ */D($,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ke.signOut]})]}),Se&&Z&&/* @__PURE__ */D(S,{portal:!0,minWidth:220,onClose:()=>Le(null),style:{left:V+f,top:Math.min(Se.top,window.innerHeight-48*Math.min(Se.items.length,10)-16)},children:m(Se.items,ye).map((e,t)=>/* @__PURE__ */K("div",{role:e.heading?"group":void 0,"aria-label":e.heading?e.heading.menuLabel??e.heading.label:void 0,children:[t>0&&/* @__PURE__ */D(W,{}),e.heading&&/* @__PURE__ */D(z,{children:e.heading.menuLabel??e.heading.label}),e.items.map(e=>/* @__PURE__ */K(L,{onClick:()=>Ie(e),children:[Ae(e.to,de),
|
|
44
|
-
/* @__PURE__ */D("span",{className:e.to===re?"font-semibold":"",children:e.menuLabel??e.label})]},e.to))]},e.heading?.to??`run-${t}`))})]})}export{B as accountMenuPosition,V as default};
|
package/dist/chunk-2YRLRMZH.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import{Calendar as e}from"./chunk-LGK47SEN.js";import{toDateKey as t,fromDateKey as r,toMonthKey as n}from"./chunk-2HMNOLKX.js";import{END_ACTIONS_PAD as a,InputEndActionSlot as o,InputEndActionButton as l}from"./chunk-GZQD6IBV.js";import{FILTER_ON as i,FILTER_ON_INK as s,FILTER_OFF as c}from"./chunk-AYZY3YNC.js";import{calendarNames as d}from"./chunk-Y3JW2GW5.js";import{pad2 as m}from"./chunk-LF27WIN2.js";import{Icon as u}from"./chunk-UIWGVOFH.js";import{onOverlayOpen as h}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as p}from"./chunk-62LW225J.js";import{useDropdownPosition as f}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as g}from"./chunk-D65T4H6J.js";import{buttonClasses as b}from"./chunk-UQYNPYF4.js";import{glassStyle as x}from"./chunk-5FYDNH4Y.js";import{useShellStrings as v,useShellLocale as y}from"./chunk-43MCNASD.js";import{useState as w,useRef as N,useId as k,useEffect as C}from"react";import{createPortal as M}from"react-dom";import{jsxs as D,Fragment as W,jsx as j}from"react/jsx-runtime";var $=["last2Weeks","lastMonth","last3Months","last6Months","last12Months"],Y=t;function F(e,r){const n=r.getFullYear(),a=r.getMonth(),o=new Date(n,a,r.getDate()),l=new Date(n,a,0),i=e=>new Date(n,a-e,1);switch(e){case"last2Weeks":return{from:t(new Date(n,a,r.getDate()-14)),to:t(o)};case"lastMonth":return{from:t(i(1)),to:t(l)};case"last3Months":return{from:t(i(3)),to:t(l)};case"last6Months":return{from:t(i(6)),to:t(l)};case"last12Months":return{from:t(i(12)),to:t(l)}}}function S(e,t,r){const a=n(e);return t&&a<t.slice(0,7)?t.slice(0,7):r&&a>r.slice(0,7)?r.slice(0,7):a}function O(e){const t=r(e);return t?`${m(t.getDate())}/${m(t.getMonth()+1)}/${t.getFullYear()}`:e}var H=/* @__PURE__ */new Map;function L({from:t,to:n,onChange:m,formatDisplay:Y,clearable:L,required:G=!1,name:B,id:E,"aria-labelledby":I,"aria-label":T,weekStartsOn:U,placeholder:A,fullWidth:J=!1,min:R,max:q,disabled:V=!1,allowOpenEnd:Z=!1}){const K=v().dateRange,P=y(),Q=Y??(P?function(e){let t=H.get(e);t||(t=new Intl.DateTimeFormat(e,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC",calendar:"gregory"}),H.set(e,t));const n=t;return e=>{const t=r(e);return t?n.format(new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()))):e}}(P):O),z=A??K.placeholder,X=L??!G,[_,ee]=w(!1),[te,re]=w(t),[ne,ae]=w(n),[oe,le]=w(null),[ie,se]=w("from"),ce=N(null),de=N(null),me=N(null),ue=k(),he=k(),pe=k(),[fe,ge]=w(!1),be=f(ce,_,{preferredMaxWidth:520,preferredMaxHeight:fe?720:560,popupRef:me}),xe=N(null),ve=N(null),[ye,we]=w(!0);g(()=>{const e=ve.current;if(!_||!fe||!e)return;const t=getComputedStyle(e).gridTemplateColumns.split(" ").filter(Boolean).length||1,r=parseFloat(getComputedStyle(e).columnGap)||0,n=(e.clientWidth-r*(t-1))/t,a=Math.max(...Array.from(e.querySelectorAll("[data-preset-measure]"),e=>e.offsetWidth))+24+2<=n+.5;a!==ye&&we(a)});const Ne=N(null);g(()=>{const e=me.current;if(!_||!be||!e)return;const t=getComputedStyle(e),r=be.maxWidth-(e.offsetWidth-e.clientWidth)-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight);if(fe)null!==Ne.current&&Ne.current<=r&&ge(!1);else{const e=xe.current?.offsetWidth??0;if(0===e)return;Ne.current=e,e>r+.5&&ge(!0)}});const[ke,Ce]=w(!1);g(()=>{const e=!!E&&(de.current?.labels?.length??0)>0;e!==ke&&Ce(e)});const Me=!!T||!!I||ke,De=/* @__PURE__ */new Date,[We,je]=w(()=>t?t.slice(0,7):S(De,R,q)),$e=$.filter(e=>((e,t,r)=>(!t||e.from>=t)&&(!r||e.to<=r))(F(e,De),R,q)),Ye=e=>e?Q(e):"";C(()=>{if(!_)return;const e=e=>{const t=e.target;ce.current?.contains(t)||me.current?.contains(t)||ee(!1)};document.addEventListener("mousedown",e);const t=h(()=>ee(!1));return()=>{document.removeEventListener("mousedown",e),t()}},[_]),C(()=>{V&&ee(!1)},[V]);const Fe=()=>{m("",""),ee(!1)},Se=X&&!V&&Boolean(t||n),Oe=t&&n?`${Ye(t)} — ${Ye(n)}`:t?K.fromOnly(Ye(t)):n?K.toOnly(Ye(n)):"",He=d(P),Le=e=>{const t=r(e);return t?He.longDate(t.getFullYear(),t.getMonth(),t.getDate()):e},Ge=t&&n?K.range(Le(t),Le(n)):t?K.fromOnly(Le(t)):n?K.toOnly(Le(n)):z,Be=e=>fe?"h-8 w-full min-w-0 truncate rounded-(--radius-control) border px-3 text-sm transition-colors "+(oe===e?"border-blue-300 bg-accent-tint text-blue-700 font-medium":"border-line text-ink hover:bg-row-hover"):"h-8 text-left px-3 text-sm rounded-(--radius-control) transition-colors "+(oe===e?"bg-accent-tint text-blue-700 font-medium":"text-ink hover:bg-row-hover"),Ee=/* @__PURE__ */D(W,{children:[$e.map(e=>/* @__PURE__ */j("button",{type:"button",onClick:()=>(e=>{if("Custom"===e)return;const t=F(e,De);re(t.from),ae(t.to),le(e),je(t.from.slice(0,7))})(e),className:Be(e),"aria-label":fe?K[e]:void 0,children:fe?ye?K[e]:K[`${e}Short`]:K[e]},e)),
|
|
2
|
-
/* @__PURE__ */j("button",{type:"button",onClick:()=>le("Custom"),className:Be("Custom"),children:K.custom})]}),Ie=(e,t)=>Z?/* @__PURE__ */j("button",{type:"button","data-range-end":e,"aria-pressed":ie===e,onClick:()=>se(e),className:"flex items-center gap-2 whitespace-nowrap rounded rosh-focus-ring",children:t}):/* @__PURE__ */j("div",{className:"flex items-center gap-2 whitespace-nowrap",children:t}),Te=e=>Z&&ie===e?" ring-1 ring-blue-400":"",Ue=
|
|
3
|
-
/* @__PURE__ */j(e,{mode:"range",min:R,max:q,value:te||null,endValue:ne||null,month:We,onMonthChange:je,onSelect:e=>{le("Custom"),Z?"from"===ie?(ne&&e>ne?(re(ne),ae(e)):re(e),se("to")):te&&e<te?(ae(te),re(e)):ae(e):!te||te&&ne?(re(e),ae("")):e<te?(ae(te),re(e)):ae(e)},weekStartsOn:U,"aria-label":K.dialog});/* @__PURE__ */
|
|
4
|
-
return D("div",{className:"relative"+(J?" w-full":""),ref:ce,children:[
|
|
5
|
-
/* @__PURE__ */D("div",{className:`relative ${J?"flex w-full":"inline-flex"} h-8 items-center gap-2 border rounded-lg px-3 ${Se?a[1]:""} text-sm focus-within:border-blue-500 has-focus-visible:ring-1 has-focus-visible:ring-[color:var(--rosh-focus-ring-deep)] ${t||n?`${i} ${s}`:c}${V?" cursor-not-allowed opacity-60":""}`,children:[
|
|
6
|
-
/* @__PURE__ */D("button",{ref:de,type:"button",onClick:()=>{V||(re(t),ae(n),le(null),se(t&&!n?"to":"from"),je(t?t.slice(0,7):S(De,R,q)),ee(!0))},"aria-haspopup":"dialog","aria-expanded":_,id:E,disabled:V||void 0,"aria-label":T,"aria-labelledby":I,"aria-describedby":[Me?he:void 0,G?pe:void 0].filter(Boolean).join(" ")||void 0,"aria-controls":_?ue:void 0,className:"inline-flex items-center gap-2 rosh-focus-ring"+(J?" min-w-0 flex-1 justify-start":""),children:[
|
|
7
|
-
/* @__PURE__ */j(u,{name:"date",className:"w-4 h-4 shrink-0",strokeWidth:"2","aria-hidden":"true"}),
|
|
8
|
-
/* @__PURE__ */j("span",{className:"truncate",children:Oe||z})]}),Se&&/* @__PURE__ */j(o,{children:/* @__PURE__ */j(l,{action:{label:K.clearRange,icon:/* @__PURE__ */j(u,{name:"close"}),onClick:Fe}})})]}),Me&&/* @__PURE__ */j("span",{id:he,className:"sr-only",children:Ge}),G&&/* @__PURE__ */j("span",{id:pe,className:"sr-only",children:K.required}),B&&/* @__PURE__ */D(W,{children:[
|
|
9
|
-
/* @__PURE__ */j("input",{type:"hidden",name:B.from,value:t,disabled:V||void 0}),
|
|
10
|
-
/* @__PURE__ */j("input",{type:"hidden",name:B.to,value:n,disabled:V||void 0})]}),_&&M(
|
|
11
|
-
/* @__PURE__ */D("div",{ref:me,id:ue,role:"dialog","aria-label":K.dialog,"data-layout":fe?"stacked":"side",className:"fixed rounded-(--radius-popup) p-4",style:{zIndex:p.popup,left:be?.left,right:be?.right,top:be?.top,bottom:be?.bottom,width:fe&&be?be.maxWidth:"max-content",maxWidth:be?.maxWidth,maxHeight:be?.maxHeight,overflowY:"auto",visibility:be?void 0:"hidden",...x()},children:[
|
|
12
|
-
/* @__PURE__ */D("div",{className:fe?"mb-3 flex flex-wrap items-center gap-x-4 gap-y-2":"flex items-center gap-3 mb-3",children:[Ie("from",/* @__PURE__ */D(W,{children:[
|
|
13
|
-
/* @__PURE__ */j("span",{className:"text-xs font-medium text-gray-500",children:K.from}),
|
|
14
|
-
/* @__PURE__ */j("span",{className:`text-sm px-2 py-1 rounded border min-w-[90px] ${te?"border-blue-300 bg-accent-tint text-blue-700":"border-line bg-surface-sunken text-ink-faintest"}${Te("from")}`,children:te?Ye(te):K.start})]})),!fe&&/* @__PURE__ */j("span",{className:"text-gray-300",children:"—"}),Ie("to",/* @__PURE__ */D(W,{children:[
|
|
15
|
-
/* @__PURE__ */j("span",{className:"text-xs font-medium text-gray-500",children:K.to}),
|
|
16
|
-
/* @__PURE__ */j("span",{className:`text-sm px-2 py-1 rounded border min-w-[90px] ${ne?"border-blue-300 bg-accent-tint text-blue-700":"border-line bg-surface-sunken text-ink-faintest"}${Te("to")}`,children:ne?Ye(ne):K.end})]}))]}),fe?/* @__PURE__ */D(W,{children:[$e.length>0&&/* @__PURE__ */D("div",{className:"mb-3 @container",children:[!ye&&/* @__PURE__ */j("p",{"aria-hidden":"true",className:"mb-1 text-xs font-medium text-ink-faint",children:K.lastHeading}),
|
|
17
|
-
/* @__PURE__ */D("div",{ref:ve,className:"relative grid grid-cols-2 gap-2 @min-[320px]:grid-cols-3",children:[Ee,$e.map(e=>/* @__PURE__ */j("span",{"data-preset-measure":"","aria-hidden":"true",className:"invisible absolute left-0 top-0 whitespace-nowrap text-sm",children:K[e]},e))]})]}),
|
|
18
|
-
/* @__PURE__ */j("div",{className:"w-full",children:Ue})]}):
|
|
19
|
-
/* @__PURE__ */D("div",{ref:xe,className:"flex w-max gap-4",children:[
|
|
20
|
-
/* @__PURE__ */j("div",{className:"w-64",children:Ue}),$e.length>0&&/* @__PURE__ */j("div",{className:"border-l border-gray-200 pl-4 flex flex-col gap-1 min-w-[130px]",children:Ee})]}),
|
|
21
|
-
/* @__PURE__ */D("div",{className:"flex flex-wrap justify-end gap-2 mt-4 pt-3 border-t border-gray-200",children:[X&&/* @__PURE__ */j("button",{type:"button",onClick:Fe,className:b({variant:"ghost"}),children:K.clear}),
|
|
22
|
-
/* @__PURE__ */j("button",{type:"button",onClick:()=>ee(!1),className:b({variant:"secondary"}),children:K.cancel}),
|
|
23
|
-
/* @__PURE__ */j("button",{type:"button",onClick:()=>{m(te,ne),ee(!1)},disabled:Z?!te&&!ne:!te||!ne,className:b({variant:"primary"}),children:K.apply})]})]}),document.body)]})}export{L as DateRangePicker,F as presetRange,Y as toISODate};
|
package/dist/chunk-7RRJPNYN.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{AccessibleTable as e}from"./chunk-EYPKBJYG.js";import{arcPath as t}from"./chunk-VFC6QUEN.js";import{useHighlight as r}from"./chunk-CNYAHYE6.js";import{ChartTooltip as l}from"./chunk-WDQI3FV6.js";import{CHART_INK as a,resolveSeriesColor as n}from"./chunk-TZFACUMR.js";import{useShellStrings as i,useShellLocale as o}from"./chunk-43MCNASD.js";import{formatPlain as h,formatPercent as c}from"./chunk-C3QOHMR6.js";import{useState as u}from"react";import{jsx as s,jsxs as d}from"react/jsx-runtime";function m(e,t,r,l,a,n,i,o){if(l>=8)return;const h=e.reduce((e,t)=>e+p(t,8-l),0);if(h<=0)return;let c=t;e.forEach((e,t)=>{const u=p(e,8-l),s=u/h*r,d=`${i}/${e.key}`,f=0===l?t:a,b=0===l?e.key:n;o.push({id:d,label:e.label,value:u,depth:l,start:c,end:c+s,branch:f,branchKey:b}),e.children?.length&&m(e.children,c,s,l+1,f,b,d,o),c+=s})}function p(e,t){return t>0&&e.children?.length?e.children.reduce((e,r)=>e+p(r,t-1),0):Math.max(0,e.value??0)}function f({nodes:p,size:f=320,innerRadius:b=44,ringGap:v=2,formatValue:k,centerLabel:x,className:g,emptyLabel:y}){const M=i().charts,$=o(),j=k??(e=>h(e,$)),N=y??M.nothingToBreakDown,[w,C]=u(null),{highlighted:E}=r(),A=[];if(m(p,-Math.PI/2,2*Math.PI,0,0,"","",A),0===A.length)/* @__PURE__ */return s("p",{className:`text-sm text-gray-500 ${g??""}`,children:N});const F=Math.max(...A.map(e=>e.depth))+1,I=f/2,L=f/2,Y=(f/2-8-b)/F,z=A.filter(e=>0===e.depth).reduce((e,t)=>e+t.value,0),B=e=>`color-mix(in oklab, ${n(e.branch)} ${Math.max(16,100-24*e.depth).toFixed(0)}%, ${a.surface})`,D=e=>null!==w?e.id===w:null===E||e.branchKey===E,K=w?A.find(e=>e.id===w):void 0,P=e=>c(e.value/z*100,1,$);/* @__PURE__ */
|
|
2
|
-
return d("div",{className:`relative ${g??""}`,children:[
|
|
3
|
-
/* @__PURE__ */d("svg",{width:"100%",height:f,viewBox:`0 0 ${f} ${f}`,role:"img","aria-label":M.sunburst(j(z),F),onMouseLeave:()=>C(null),children:[A.map(e=>/* @__PURE__ */s("path",{d:t(I,L,b+e.depth*Y+v/2,b+(e.depth+1)*Y-v/2,e.start,e.end),fill:B(e),fillOpacity:D(e)?1:.45,stroke:a.surface,strokeWidth:1,onMouseEnter:()=>C(e.id)},e.id)),x&&/* @__PURE__ */s("text",{x:I,y:L+5,textAnchor:"middle",fontSize:16,fontWeight:600,fill:a.label,children:x})]}),K&&/* @__PURE__ */s("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */s(l,{title:K.label,rows:[{key:"value",label:M.value,color:B(K),value:j(K.value)},{key:"share",label:M.share,color:a.muted,value:P(K)}]})}),
|
|
4
|
-
/* @__PURE__ */s(e,{caption:M.sunburst(j(z),F),head:[M.tableLevel,M.tableItem,M.value,M.share],rows:A.map(e=>[e.depth+1,e.label,j(e.value),P(e)])})]})}export{f as SunburstChart};
|