efficient-shell 16.6.0 → 16.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -4
- package/dist/{Browser-UHT6QSUN.js → Browser-TXL5U5PM.js} +13 -13
- package/dist/{Calculator-ZG5RX2HX.js → Calculator-VOZDVOYE.js} +22 -22
- package/dist/{CurrencyConverter-AHGYTGKM.js → CurrencyConverter-AMGFHBJE.js} +5 -5
- package/dist/{Files-4HJWEYDE.js → Files-2EE24L5G.js} +64 -64
- package/dist/{Notepad-GXKGVTNG.js → Notepad-L2WODBHG.js} +9 -9
- package/dist/{PomodoroTimer-GN2OSLJ6.js → PomodoroTimer-77VMHGDE.js} +4 -4
- package/dist/{Preview-EN4YCUH5.js → Preview-FWN44NN2.js} +1 -1
- package/dist/{Stock-44BSCZOL.js → Stock-PXLNR6A6.js} +3 -3
- package/dist/{Weather-GNGUF6A4.js → Weather-WGLPPZPX.js} +16 -16
- package/dist/{WorldClock-EBZJRH5F.js → WorldClock-UY4B5VKZ.js} +7 -7
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.js +8 -8
- package/dist/apps/index.js +1 -1
- package/dist/bin/browser-check.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/{chunk-MS6IZF6E.js → chunk-2FLRIQ5V.js} +1 -1
- package/dist/{chunk-3C7JKJGL.js → chunk-2SOK37OP.js} +1 -1
- package/dist/{chunk-JKO4JZPO.js → chunk-36KGBTNC.js} +1 -1
- package/dist/chunk-E5WGELKZ.js +8 -0
- package/dist/{chunk-H6JJAVYL.js → chunk-EC6XKOAE.js} +1 -1
- package/dist/chunk-EJFJOHPZ.js +1 -0
- package/dist/{chunk-UQPVUPSS.js → chunk-FFCVC4ES.js} +1 -1
- package/dist/chunk-FUXGLHAA.js +1 -0
- package/dist/chunk-IJLXI67O.js +1 -0
- package/dist/{chunk-HOTIZZXC.js → chunk-LBXKYVM3.js} +1 -1
- package/dist/chunk-LO7LNWTZ.js +2 -0
- package/dist/chunk-MAQAP6SX.js +30 -0
- package/dist/chunk-MHKTBQ53.js +5 -0
- package/dist/{chunk-EJTAPBGB.js → chunk-MIHPFJCP.js} +13 -13
- package/dist/chunk-MWJNMENV.js +2 -0
- package/dist/{chunk-OLFYNMTD.js → chunk-PO7UCZSK.js} +1 -1
- package/dist/chunk-RO3M4JWS.js +1 -0
- package/dist/{chunk-ATTQTQJI.js → chunk-S24LTOBM.js} +4 -4
- package/dist/chunk-S3TQ3VOK.js +2 -0
- package/dist/chunk-XCTS44UZ.js +1 -0
- package/dist/{chunk-YYGA4Y6E.js → chunk-YAVIKKIQ.js} +1 -1
- package/dist/{chunk-DX24Q5OR.js → chunk-ZKXDWUNI.js} +1 -1
- package/dist/format/index.d.ts +84 -6
- package/dist/format/index.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/Select.d.ts +1 -1
- package/dist/forms/TextToolbar.d.ts +1 -1
- package/dist/forms/textAlign.d.ts +1 -1
- package/dist/hooks/useMarquee.js +1 -1
- package/dist/icons/efficient-glyphs.d.ts +1 -0
- package/dist/icons/efficient-glyphs.js +1 -1
- package/dist/icons/efficient-looks.d.ts +2 -0
- package/dist/icons/efficient-looks.js +1 -1
- package/dist/icons/efficient-meanings.d.ts +1 -0
- package/dist/icons/efficient-meanings.js +1 -1
- package/dist/icons/efficient.d.ts +1 -0
- package/dist/icons/efficient.js +1 -1
- package/dist/icons/glyphs/ScrollExpandIcon.d.ts +8 -0
- package/dist/icons/glyphs/ScrollExpandIcon.js +1 -0
- package/dist/icons/index.d.ts +2 -2
- package/dist/icons/index.js +1 -1
- package/dist/icons/looks/ScrollExpandMiniIcon.d.ts +8 -0
- package/dist/icons/looks/ScrollExpandMiniIcon.js +1 -0
- package/dist/icons/looks/ScrollExpandSolidIcon.d.ts +8 -0
- package/dist/icons/looks/ScrollExpandSolidIcon.js +1 -0
- package/dist/icons/looks/map.js +1 -1
- package/dist/icons/sets.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +164 -164
- package/dist/map/index.d.ts +39 -35
- package/dist/map/index.js +12 -12
- package/dist/map-site.css +21 -0
- package/dist/motion/entrance.js +1 -1
- package/dist/motion/values.d.ts +7 -2
- package/dist/motion/values.js +1 -1
- package/dist/motion.css +28 -5
- package/dist/{names-CpcmfUzD.d.ts → names-Bw6ChIJl.d.ts} +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/shell/FloatingBar.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/Markdown.d.ts +1 -1
- package/dist/shell/Tabs.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/GalleryTemplate.js +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/utils/edgeScroll.d.ts +4 -1
- package/dist/utils/edgeScroll.js +1 -1
- package/dist/value-index.json +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-AIJ3G6BD.js +0 -1
- package/dist/chunk-EJMCK7E3.js +0 -8
- package/dist/chunk-LACL4MAR.js +0 -1
- package/dist/chunk-N7EZ2BFE.js +0 -30
- package/dist/chunk-OMOAD5LL.js +0 -1
- package/dist/chunk-WSQ73CRR.js +0 -2
- package/dist/chunk-YVXF7L66.js +0 -1
- /package/dist/{chunk-OQOWFHRZ.js → chunk-4B54NLXF.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{FloatingBar as default}from"../chunk-
|
|
2
|
+
export{FloatingBar as default}from"../chunk-LO7LNWTZ.js";import"../chunk-FUXGLHAA.js";import"../chunk-5QRHQCRG.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-3FININUU.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-CHWZGSYG.js";import"../chunk-GKYGPCGL.js";import"../chunk-
|
|
2
|
+
export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-CHWZGSYG.js";import"../chunk-GKYGPCGL.js";import"../chunk-2SOK37OP.js";import"../chunk-VQCKMT5F.js";import"../chunk-RQGLDRRF.js";import"../chunk-64ACCUNN.js";import"../chunk-32VV2J22.js";import"../chunk-NI5FXWK5.js";import"../chunk-W7HTHKN2.js";import"../chunk-EO5RLFRX.js";import"../chunk-GML6FVPA.js";import"../chunk-6KBDNYRW.js";import"../chunk-2NMW66P5.js";import"../chunk-CGZBDI6C.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-P56YLT73.js";import"../chunk-URHGHXDN.js";import"../chunk-5QFPTDQF.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-5QRHQCRG.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-3FININUU.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/Markdown.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { a as IconName } from '../names-
|
|
3
|
+
import { a as IconName } from '../names-Bw6ChIJl.js';
|
|
4
4
|
|
|
5
5
|
/** A host's say over a link's plain click: `true` when it opened the link
|
|
6
6
|
* itself (a record in a window), so the browser does not navigate. */
|
package/dist/shell/Tabs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{Tabs as default,tabButtonId,tabPanelId}from"../chunk-
|
|
2
|
+
export{Tabs as default,tabButtonId,tabPanelId}from"../chunk-E5WGELKZ.js";import"../chunk-FQEALPZJ.js";import"../chunk-IJLXI67O.js";import"../chunk-EFKJLUYP.js";import"../chunk-CIZAUBWA.js";import"../chunk-PGN5ME7B.js";import"../chunk-5QRHQCRG.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-3FININUU.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
package/dist/telemetry/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{startClientTelemetry}from"../chunk-
|
|
1
|
+
export{startClientTelemetry}from"../chunk-2FLRIQ5V.js";import"../chunk-KNUR2UEG.js";import"../chunk-RO3M4JWS.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{GalleryTemplate as default}from"../chunk-
|
|
2
|
+
export{GalleryTemplate as default}from"../chunk-36KGBTNC.js";import"../chunk-E5WGELKZ.js";import"../chunk-FQEALPZJ.js";import"../chunk-RKSCB5BJ.js";import"../chunk-IJLXI67O.js";import"../chunk-EFKJLUYP.js";import"../chunk-ABIWAS5K.js";import"../chunk-37FQVY2O.js";import"../chunk-TSZPGDU3.js";import"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-FAPZFMS3.js";import"../chunk-CIZAUBWA.js";import"../chunk-PGN5ME7B.js";import"../chunk-5QRHQCRG.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-3FININUU.js";import"../chunk-LYGIOJ3J.js";import"../chunk-MRJKZWWV.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -173,7 +173,7 @@ export { default as AuthScreen, AuthScreenProps } from '../templates/AuthScreen.
|
|
|
173
173
|
export { default as ErrorBoundary, ErrorBoundaryProps } from '../templates/ErrorBoundary.js';
|
|
174
174
|
export { default as ErrorPage, ErrorPageProps } from '../templates/ErrorPage.js';
|
|
175
175
|
export { BRAND_MAX_HEIGHT, BRAND_MIN_HEIGHT_PX, BrandBox, ICON_SET_FOR_THEME, Icon, IconProps, IconTone, THEME_ICON_SETS, ThemeIconSet, brandBox, iconSetFor, loadIconSet } from '../icons/index.js';
|
|
176
|
-
export { I as ICON_NAMES, a as IconName, i as isIconName } from '../names-
|
|
176
|
+
export { I as ICON_NAMES, a as IconName, i as isIconName } from '../names-Bw6ChIJl.js';
|
|
177
177
|
export { I as IconDrawing, a as IconSet, b as activeIconSet, i as iconSets, c as iconsVersion, r as registerIconSet, d as registerIcons, e as resolveIcon, s as setDefaultIconSet, f as setIconSet, g as subscribeIcons } from '../registry-5Oj4TUjn.js';
|
|
178
178
|
export { CORNERS, CORNERS_FOR_THEME, Corners, Theme, applyCorners, applyIconSet, applyThemePrefs, cornersFor, resolveCorners, resolveTheme, useTheme } from '../hooks/useTheme.js';
|
|
179
179
|
export { ShellPrefsAdapter, ShellPrefsProvider, useLocalStoragePrefs, useShellPrefs } from '../shell/ShellPrefs.js';
|
package/dist/ui/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import"../chunk-SSAYFELC.js";export{ErrorBoundary}from"../chunk-P7X4PWJJ.js";export{ErrorPage}from"../chunk-6NXPOZ6X.js";export{FormLayoutPage}from"../chunk-GNB6KUCT.js";export{GalleryTemplate}from"../chunk-JKO4JZPO.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{AuthScreen}from"../chunk-THVE54FN.js";export{ChatTemplate}from"../chunk-MGGZINTI.js";export{CheckoutTemplate}from"../chunk-7AF5JGRM.js";export{DashboardTemplate}from"../chunk-NO5BMPT5.js";export{DataTablePage}from"../chunk-JUGRSO5J.js";export{EmailTemplate}from"../chunk-H2S75BKK.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{Stepper}from"../chunk-KTO427N3.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-EJMCK7E3.js";export{Paragraph,Text,Title}from"../chunk-366URRSE.js";export{TimeAgo}from"../chunk-DV6TUXCZ.js";export{TopNav}from"../chunk-FHTL7ZZR.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-4BB5DHFX.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-5LG6TOV6.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-R3BSWWGB.js";export{SettingReset}from"../chunk-INQQUAIO.js";export{SettingRow}from"../chunk-LRMDLZMM.js";export{MetricBar}from"../chunk-PLESHI3E.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-VTCMO3K7.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-E57C7NBA.js";export{PageHeader}from"../chunk-3EYJ4G7L.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-KE7P74XM.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-Q7FPGOUY.js";export{fmtSliderDate,toDayMs}from"../chunk-5CFERCYW.js";export{GlobalSearch,openGlobalSearch}from"../chunk-HU5FTTW2.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-HGOWQO63.js";export{HelpCenter}from"../chunk-2NHYLLHO.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-XN72RFDV.js";import"../chunk-QWK6DRSN.js";export{IconRail,IconRailButton}from"../chunk-SJUEGYT2.js";import"../chunk-FQEALPZJ.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-TTD2M6RF.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-CHWZGSYG.js";export{EditableGrid}from"../chunk-YGNJIOOH.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-WSQ73CRR.js";export{Card,StatCard}from"../chunk-RKSCB5BJ.js";export{ContainerFillChart}from"../chunk-BL347U3N.js";export{CountBadge}from"../chunk-PFOTEDSQ.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-GKYGPCGL.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-3BQMICGG.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-BGLUOC7W.js";export{BudgetBar,budgetState}from"../chunk-7B6JPNOD.js";export{ICON_NAMES,isIconName}from"../chunk-3C7JKJGL.js";export{BRAND_ICON_NAMES,isBrandIconName}from"../chunk-RQGLDRRF.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{WidthsBar}from"../chunk-OX7Q5PPR.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{SplitButton_default as SplitButton}from"../chunk-GURLMAZM.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-B36ZROD7.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-IDH323EU.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-72UHB4JU.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-ZRWZHWKI.js";export{SearchInput_default as SearchInput}from"../chunk-YQKNRT7L.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-MDXZ7YAC.js";export{Slider,SliderGroup}from"../chunk-7EPCBDS5.js";export{Snippet}from"../chunk-QY2DGLCJ.js";export{NumericKeypad}from"../chunk-54WCVNJJ.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PICTURE_TILES_COLUMNS_VAR,PictureTiles}from"../chunk-OHWP24DL.js";export{PositionInput}from"../chunk-JU6VBLTU.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{LinkPicker,TextLinkField}from"../chunk-ATTQTQJI.js";export{SearchableSelect}from"../chunk-DFI5EHSV.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-N7EZ2BFE.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-BTMZ5MUY.js";import"../chunk-5B7CLXHC.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{ResizeHandle}from"../chunk-2KD6R2XF.js";export{ImageLightbox,lightboxKind}from"../chunk-ONUNFTZD.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{Drawer}from"../chunk-AYTGYEOI.js";export{EmptyState}from"../chunk-W3454ZES.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Breadcrumbs}from"../chunk-WREUA43Q.js";export{mediaLibraryMenu}from"../chunk-UFJR63AO.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-GRAFJD3L.js";export{RenameField}from"../chunk-F4KB3K3I.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-B4Y5NGHR.js";export{MediaUsedInList}from"../chunk-XOEYCDWT.js";export{NativeSelect,Select_default as Select}from"../chunk-W7HTHKN2.js";import"../chunk-EO5RLFRX.js";import"../chunk-GML6FVPA.js";export{CornersInput}from"../chunk-GZ57F6PN.js";export{DatePicker_default as DatePicker}from"../chunk-GGNQEZ2D.js";export{DateRangePicker,toISODate}from"../chunk-AZANUXJT.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-ROYHU3E5.js";export{DisplayChips}from"../chunk-52RSW6TO.js";export{FilePicker_default as FilePicker}from"../chunk-QE2F4YQQ.js";export{FormErrorSummary}from"../chunk-UDJPSHVI.js";export{BorderInput,borderSides,borderStartEach}from"../chunk-7KUHILEA.js";export{IconPicker}from"../chunk-ZKWAWQ74.js";export{BrandAssetEditor}from"../chunk-3OK5VZOU.js";export{MediaUploadField}from"../chunk-KJ4CHRRC.js";export{ImageFocusPoint}from"../chunk-CUJ537IY.js";export{FormField}from"../chunk-6KBDNYRW.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar}from"../chunk-PPHGBEJA.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-LH7ZKPHJ.js";export{Popover}from"../chunk-LRASKGEZ.js";export{InputNumber_default as InputNumber}from"../chunk-TM5NQTFA.js";export{UnitMenu}from"../chunk-4MDSZSLC.js";export{WidestLabel}from"../chunk-X3LMTOMA.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.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{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-4K32E3AO.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{AlignmentGrid}from"../chunk-VB4ZPIZF.js";export{statusColumn}from"../chunk-QLK2NCXK.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";import"../chunk-UVCMV2TL.js";export{useSort}from"../chunk-22SVN2ZM.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-YYGA4Y6E.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{gridColumnCount}from"../chunk-VNNVG4NR.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{DataTable}from"../chunk-5Y2JZL3I.js";export{EntityList}from"../chunk-QO2CN2ND.js";import"../chunk-452LT77I.js";export{ResizableTable}from"../chunk-TXGVSWH6.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useColumnConfig}from"../chunk-XGEN76DG.js";import"../chunk-ULJQYXHB.js";export{useTableNav}from"../chunk-ATMJ5ZPK.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Gantt}from"../chunk-JGN27L4Q.js";export{Segmented}from"../chunk-TALQMTCE.js";import"../chunk-EFKJLUYP.js";export{Kanban}from"../chunk-MXRF5YVN.js";export{ListFooter}from"../chunk-U73K3ICC.js";export{ListLoadError}from"../chunk-SYASK4QG.js";export{ListToolbar}from"../chunk-C75ICYHF.js";export{Pagination}from"../chunk-Q2RNFBYS.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{TreemapChart}from"../chunk-PRN2QDX6.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-WCAABJEV.js";export{RangeChart}from"../chunk-Q7CM4UDG.js";export{RankedBars}from"../chunk-53HHYEN4.js";export{SankeyChart}from"../chunk-R72SBGYR.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-PPI4WJ3V.js";export{StatTile}from"../chunk-XX34ZFYB.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-3H476JWK.js";export{FunnelChart}from"../chunk-QZ2XRFDP.js";export{HeatmapChart}from"../chunk-FBI3XJWH.js";export{HistogramChart}from"../chunk-N64YAF5N.js";export{Meter}from"../chunk-MMA3WTF2.js";export{PieChart}from"../chunk-6EGZ4PV4.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-FGP2IOFN.js";export{RadialBarChart}from"../chunk-OOND66P2.js";export{ChordChart}from"../chunk-35Q7ZMQD.js";import"../chunk-RTZFWH5U.js";export{StepChain,StepChainItem}from"../chunk-Z2Z653OO.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-NPBRNEMR.js";export{Divider}from"../chunk-DFOFEBYX.js";export{Avatar,AvatarGroup}from"../chunk-SCNQK5NF.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-Z5TE3MEG.js";export{ContextMenu,useContextMenu}from"../chunk-MF7OELXP.js";export{Banner}from"../chunk-OSMRYND3.js";export{Input_default as Input}from"../chunk-BYTQRQ5P.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-43YU7YWL.js";export{mediaFileName}from"../chunk-TAIH2VIW.js";export{TransferProgress}from"../chunk-TAB3K2WF.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-TNGIXSTM.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-CMEPDSYB.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-OJI4ROSD.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,dayKeyInZone,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,instantOnDayKey,knownZone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile,userToday,userZone}from"../chunk-NHKT5IH6.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{DAY_MS,fromDateKey,toDateKey}from"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-P5TSGXL4.js";export{DEFAULT_FLOW_CHART_LABELS,FlowChart}from"../chunk-2EBHJGMM.js";export{FLOW_LAYOUT,FLOW_SPEC_LIMITS,layoutFlow,parseFlowSpec}from"../chunk-FAERBT6Y.js";export{ChartBrush}from"../chunk-SAMPXZF3.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-A6TOHNJY.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-AQVPWUJ3.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-MEFB2KGF.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{ImageAnnotator_default as ImageAnnotator}from"../chunk-OHRKENEP.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-PSVGB7KT.js";import"../chunk-5A7MWTXX.js";import"../chunk-YI4T5I5D.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-OLXUMB2V.js";export{Dialog}from"../chunk-R7OZ2AQD.js";import"../chunk-EIFNESXS.js";export{ItemCount}from"../chunk-PO2KNVCC.js";import"../chunk-CJ4OEY3T.js";import"../chunk-LLXI57MB.js";import"../chunk-NQWORKZD.js";import"../chunk-VWGWZY7A.js";import"../chunk-DBQNYJZ6.js";export{ColoredBadge}from"../chunk-L2WQOJ3T.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-5VJVEKVM.js";export{parseOption}from"../chunk-YPXONNBV.js";import"../chunk-4PJFL26P.js";import"../chunk-2QY5BJLA.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-POBVGDZP.js";import"../chunk-F3ZOO23R.js";export{VERSION}from"../chunk-YVXF7L66.js";export{DropdownMenu}from"../chunk-NJY4HPNB.js";import"../chunk-PM6HY5BH.js";export{useFocusTrap,useScrollLock}from"../chunk-DWGYC7OD.js";export{IconButton_default as IconButton}from"../chunk-4YH7U7WL.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,statusLabel,useStatusLabel}from"../chunk-ABIWAS5K.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-P56YLT73.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{Button_default as Button}from"../chunk-37FQVY2O.js";import"../chunk-TSZPGDU3.js";export{Icon}from"../chunk-ISVODSRP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-FAPZFMS3.js";export{Tooltip}from"../chunk-CIZAUBWA.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";import"../chunk-5QRHQCRG.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-3FININUU.js";export{setShellApiClient}from"../chunk-STKJA4PV.js";import"../chunk-GZ4AMXEU.js";export{FitFrame,fitBoxScale,fitFrameStyle,fitScale}from"../chunk-M6UKCZHT.js";import"../chunk-3AUPCKBR.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-VLT4ZEHT.js";export{buttonClasses,iconButtonClasses}from"../chunk-LYGIOJ3J.js";import"../chunk-MRJKZWWV.js";export{BoxPlotChart}from"../chunk-P234FPKJ.js";export{CandlestickChart}from"../chunk-BEXFMSNK.js";export{CartesianPlot}from"../chunk-S4RD6UJU.js";import"../chunk-LLSGIMLG.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{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
|
|
2
|
+
import"../chunk-SSAYFELC.js";export{ErrorBoundary}from"../chunk-P7X4PWJJ.js";export{ErrorPage}from"../chunk-6NXPOZ6X.js";export{FormLayoutPage}from"../chunk-GNB6KUCT.js";export{GalleryTemplate}from"../chunk-36KGBTNC.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{AuthScreen}from"../chunk-THVE54FN.js";export{ChatTemplate}from"../chunk-MGGZINTI.js";export{CheckoutTemplate}from"../chunk-7AF5JGRM.js";export{DashboardTemplate}from"../chunk-NO5BMPT5.js";export{DataTablePage}from"../chunk-JUGRSO5J.js";export{EmailTemplate}from"../chunk-H2S75BKK.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{Stepper}from"../chunk-KTO427N3.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-E5WGELKZ.js";export{Paragraph,Text,Title}from"../chunk-366URRSE.js";export{TimeAgo}from"../chunk-DV6TUXCZ.js";export{TopNav}from"../chunk-FHTL7ZZR.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-4BB5DHFX.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-5LG6TOV6.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-R3BSWWGB.js";export{SettingReset}from"../chunk-INQQUAIO.js";export{SettingRow}from"../chunk-LRMDLZMM.js";export{MetricBar}from"../chunk-PLESHI3E.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-VTCMO3K7.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-E57C7NBA.js";export{PageHeader}from"../chunk-3EYJ4G7L.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-KE7P74XM.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-Q7FPGOUY.js";export{fmtSliderDate,toDayMs}from"../chunk-5CFERCYW.js";export{GlobalSearch,openGlobalSearch}from"../chunk-HU5FTTW2.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-HGOWQO63.js";export{HelpCenter}from"../chunk-2NHYLLHO.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-XN72RFDV.js";import"../chunk-QWK6DRSN.js";export{IconRail,IconRailButton}from"../chunk-SJUEGYT2.js";import"../chunk-FQEALPZJ.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-TTD2M6RF.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-CHWZGSYG.js";export{EditableGrid}from"../chunk-YGNJIOOH.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-LO7LNWTZ.js";export{Card,StatCard}from"../chunk-RKSCB5BJ.js";export{ContainerFillChart}from"../chunk-BL347U3N.js";export{CountBadge}from"../chunk-PFOTEDSQ.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-GKYGPCGL.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-3BQMICGG.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-BGLUOC7W.js";export{BudgetBar,budgetState}from"../chunk-7B6JPNOD.js";export{ICON_NAMES,isIconName}from"../chunk-2SOK37OP.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-4K32E3AO.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_ICON_NAMES,isBrandIconName}from"../chunk-RQGLDRRF.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{useRootIsDark}from"../chunk-UPXDDO3U.js";export{WidthsBar}from"../chunk-OX7Q5PPR.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-QY2DGLCJ.js";export{SplitButton_default as SplitButton}from"../chunk-GURLMAZM.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-B36ZROD7.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-IDH323EU.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-72UHB4JU.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-ZRWZHWKI.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{SearchInput_default as SearchInput}from"../chunk-YQKNRT7L.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-MDXZ7YAC.js";export{Slider,SliderGroup}from"../chunk-7EPCBDS5.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-MAQAP6SX.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-BTMZ5MUY.js";import"../chunk-5B7CLXHC.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{ResizeHandle}from"../chunk-2KD6R2XF.js";export{ImageLightbox,lightboxKind}from"../chunk-ONUNFTZD.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{Drawer}from"../chunk-AYTGYEOI.js";export{EmptyState}from"../chunk-W3454ZES.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Breadcrumbs}from"../chunk-WREUA43Q.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-PO7UCZSK.js";export{mediaLibraryMenu}from"../chunk-UFJR63AO.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-GRAFJD3L.js";export{RenameField}from"../chunk-F4KB3K3I.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-B4Y5NGHR.js";export{MediaUsedInList}from"../chunk-XOEYCDWT.js";export{NumericKeypad}from"../chunk-54WCVNJJ.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PICTURE_TILES_COLUMNS_VAR,PictureTiles}from"../chunk-OHWP24DL.js";export{PositionInput}from"../chunk-JU6VBLTU.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{LinkPicker,TextLinkField}from"../chunk-S24LTOBM.js";export{SearchableSelect}from"../chunk-DFI5EHSV.js";export{NativeSelect,Select_default as Select}from"../chunk-W7HTHKN2.js";import"../chunk-EO5RLFRX.js";import"../chunk-GML6FVPA.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{CornersInput}from"../chunk-GZ57F6PN.js";export{DatePicker_default as DatePicker}from"../chunk-GGNQEZ2D.js";export{DateRangePicker,toISODate}from"../chunk-AZANUXJT.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-ROYHU3E5.js";export{DisplayChips}from"../chunk-52RSW6TO.js";export{FilePicker_default as FilePicker}from"../chunk-QE2F4YQQ.js";export{FormErrorSummary}from"../chunk-UDJPSHVI.js";export{AlignmentGrid}from"../chunk-VB4ZPIZF.js";export{BorderInput,borderSides,borderStartEach}from"../chunk-7KUHILEA.js";export{IconPicker}from"../chunk-ZKWAWQ74.js";export{BrandAssetEditor}from"../chunk-3OK5VZOU.js";export{MediaUploadField}from"../chunk-KJ4CHRRC.js";export{ImageFocusPoint}from"../chunk-CUJ537IY.js";export{FormField}from"../chunk-6KBDNYRW.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar}from"../chunk-PPHGBEJA.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-LH7ZKPHJ.js";export{Popover}from"../chunk-LRASKGEZ.js";export{InputNumber_default as InputNumber}from"../chunk-TM5NQTFA.js";export{UnitMenu}from"../chunk-4MDSZSLC.js";export{WidestLabel}from"../chunk-X3LMTOMA.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{statusColumn}from"../chunk-QLK2NCXK.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";import"../chunk-UVCMV2TL.js";export{useSort}from"../chunk-22SVN2ZM.js";export{slugify}from"../chunk-24AL3CDS.js";import"../chunk-FUXGLHAA.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-YAVIKKIQ.js";export{HOVER_MOTION,MOTION_EASING,MOTION_GROUPS,MOTION_TIMING,motionSeconds,rotateDegrees}from"../chunk-XCTS44UZ.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{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-IJLXI67O.js";export{gridColumnCount}from"../chunk-VNNVG4NR.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{DataTable}from"../chunk-5Y2JZL3I.js";export{EntityList}from"../chunk-QO2CN2ND.js";import"../chunk-452LT77I.js";export{ResizableTable}from"../chunk-TXGVSWH6.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useColumnConfig}from"../chunk-XGEN76DG.js";import"../chunk-ULJQYXHB.js";export{useTableNav}from"../chunk-ATMJ5ZPK.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Gantt}from"../chunk-JGN27L4Q.js";export{Segmented}from"../chunk-TALQMTCE.js";import"../chunk-EFKJLUYP.js";export{Kanban}from"../chunk-MXRF5YVN.js";export{ListFooter}from"../chunk-U73K3ICC.js";export{ListLoadError}from"../chunk-SYASK4QG.js";export{ListToolbar}from"../chunk-C75ICYHF.js";export{Pagination}from"../chunk-Q2RNFBYS.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{TreemapChart}from"../chunk-PRN2QDX6.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-WCAABJEV.js";export{RangeChart}from"../chunk-Q7CM4UDG.js";export{RankedBars}from"../chunk-53HHYEN4.js";export{SankeyChart}from"../chunk-R72SBGYR.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-PPI4WJ3V.js";export{StatTile}from"../chunk-XX34ZFYB.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-3H476JWK.js";export{FunnelChart}from"../chunk-QZ2XRFDP.js";export{HeatmapChart}from"../chunk-FBI3XJWH.js";export{HistogramChart}from"../chunk-N64YAF5N.js";export{Meter}from"../chunk-MMA3WTF2.js";export{PieChart}from"../chunk-6EGZ4PV4.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-FGP2IOFN.js";export{RadialBarChart}from"../chunk-OOND66P2.js";export{ChordChart}from"../chunk-35Q7ZMQD.js";import"../chunk-RTZFWH5U.js";export{StepChain,StepChainItem}from"../chunk-Z2Z653OO.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-NPBRNEMR.js";export{Divider}from"../chunk-DFOFEBYX.js";export{Avatar,AvatarGroup}from"../chunk-SCNQK5NF.js";export{ContextMenu,useContextMenu}from"../chunk-MF7OELXP.js";export{Banner}from"../chunk-OSMRYND3.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-Z5TE3MEG.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-43YU7YWL.js";export{Input_default as Input}from"../chunk-BYTQRQ5P.js";export{mediaFileName}from"../chunk-TAIH2VIW.js";export{TransferProgress}from"../chunk-TAB3K2WF.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-TNGIXSTM.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-CMEPDSYB.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-OJI4ROSD.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,dayKeyInZone,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,instantOnDayKey,knownZone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile,userToday,userZone}from"../chunk-NHKT5IH6.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{DAY_MS,fromDateKey,toDateKey}from"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-P5TSGXL4.js";export{DEFAULT_FLOW_CHART_LABELS,FlowChart}from"../chunk-2EBHJGMM.js";export{FLOW_LAYOUT,FLOW_SPEC_LIMITS,layoutFlow,parseFlowSpec}from"../chunk-FAERBT6Y.js";export{ChartBrush}from"../chunk-SAMPXZF3.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-A6TOHNJY.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-AQVPWUJ3.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-MEFB2KGF.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{ImageAnnotator_default as ImageAnnotator}from"../chunk-OHRKENEP.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-PSVGB7KT.js";import"../chunk-5A7MWTXX.js";import"../chunk-YI4T5I5D.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-OLXUMB2V.js";export{Dialog}from"../chunk-R7OZ2AQD.js";import"../chunk-EIFNESXS.js";export{ItemCount}from"../chunk-PO2KNVCC.js";import"../chunk-CJ4OEY3T.js";import"../chunk-LLXI57MB.js";import"../chunk-NQWORKZD.js";import"../chunk-VWGWZY7A.js";import"../chunk-DBQNYJZ6.js";export{ColoredBadge}from"../chunk-L2WQOJ3T.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-5VJVEKVM.js";export{parseOption}from"../chunk-YPXONNBV.js";import"../chunk-4PJFL26P.js";import"../chunk-2QY5BJLA.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-POBVGDZP.js";import"../chunk-F3ZOO23R.js";export{VERSION}from"../chunk-RO3M4JWS.js";export{DropdownMenu}from"../chunk-NJY4HPNB.js";import"../chunk-PM6HY5BH.js";export{useFocusTrap,useScrollLock}from"../chunk-DWGYC7OD.js";export{IconButton_default as IconButton}from"../chunk-4YH7U7WL.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,statusLabel,useStatusLabel}from"../chunk-ABIWAS5K.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-P56YLT73.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{Button_default as Button}from"../chunk-37FQVY2O.js";import"../chunk-TSZPGDU3.js";export{Icon}from"../chunk-ISVODSRP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-BWJZTHZ6.js";import"../chunk-FAPZFMS3.js";export{Tooltip}from"../chunk-CIZAUBWA.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";import"../chunk-5QRHQCRG.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-3FININUU.js";export{setShellApiClient}from"../chunk-STKJA4PV.js";import"../chunk-GZ4AMXEU.js";export{FitFrame,fitBoxScale,fitFrameStyle,fitScale}from"../chunk-M6UKCZHT.js";import"../chunk-3AUPCKBR.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-VLT4ZEHT.js";export{buttonClasses,iconButtonClasses}from"../chunk-LYGIOJ3J.js";import"../chunk-MRJKZWWV.js";export{BoxPlotChart}from"../chunk-P234FPKJ.js";export{CandlestickChart}from"../chunk-BEXFMSNK.js";export{CartesianPlot}from"../chunk-S4RD6UJU.js";import"../chunk-LLSGIMLG.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{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
declare const EDGE_SCROLL_ZONE = 56;
|
|
10
10
|
/** The most a drag scrolls in one frame (px), reached at the very edge. */
|
|
11
11
|
declare const EDGE_SCROLL_MAX_SPEED = 20;
|
|
12
|
+
/** Does `node` scroll its own content up and down: overflow-y auto, scroll or
|
|
13
|
+
* overlay, with more content than room? */
|
|
14
|
+
declare function scrollsItself(node: HTMLElement): boolean;
|
|
12
15
|
/** The nearest scrollable ancestor of `el`, else the document scroller. */
|
|
13
16
|
declare function getScrollParent(el: HTMLElement): HTMLElement;
|
|
14
17
|
/** A scroller's visible top and bottom in viewport coordinates: the document
|
|
@@ -22,4 +25,4 @@ declare function scrollBoundsOf(sp: HTMLElement): {
|
|
|
22
25
|
* within `edge` px of either end. Positive scrolls down. Pure. */
|
|
23
26
|
declare function edgeScrollDelta(clientY: number, top: number, bottom: number, edge?: number, maxSpeed?: number): number;
|
|
24
27
|
|
|
25
|
-
export { EDGE_SCROLL_MAX_SPEED, EDGE_SCROLL_ZONE, edgeScrollDelta, getScrollParent, scrollBoundsOf };
|
|
28
|
+
export { EDGE_SCROLL_MAX_SPEED, EDGE_SCROLL_ZONE, edgeScrollDelta, getScrollParent, scrollBoundsOf, scrollsItself };
|
package/dist/utils/edgeScroll.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{EDGE_SCROLL_MAX_SPEED,EDGE_SCROLL_ZONE,edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-
|
|
1
|
+
export{EDGE_SCROLL_MAX_SPEED,EDGE_SCROLL_ZONE,edgeScrollDelta,getScrollParent,scrollBoundsOf,scrollsItself}from"../chunk-IJLXI67O.js";
|
package/dist/value-index.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schema":1,"package":"efficient-shell","version":"16.
|
|
1
|
+
{"schema":1,"package":"efficient-shell","version":"16.10.0","entries":[{"entry":"efficient-shell","name":"ACCENT_ROLES","hash":"bd7fd9e5b26249a998b2"},{"entry":"efficient-shell","name":"BORDER_WIDTHS","hash":"78a506e44a654d5b22dd"},{"entry":"efficient-shell","name":"BRAND_ICON_NAMES","hash":"9f47dc20f8029a420b70"},{"entry":"efficient-shell","name":"CHART_INK","hash":"3f4d30da8161976c516b"},{"entry":"efficient-shell","name":"CHART_SPEC_LIMITS","hash":"301b29dfb507675e845d"},{"entry":"efficient-shell","name":"COLUMN_COUNT_WIDTHS","hash":"287a95f277695d0635fe"},{"entry":"efficient-shell","name":"COLUMN_SHARES_EQUAL","hash":"79cad7d332efce44435c"},{"entry":"efficient-shell","name":"CONTROL_HEIGHTS","hash":"26fdd7e9bd83bfe00f5e"},{"entry":"efficient-shell","name":"DATE_FORMAT_OPTIONS","hash":"25598ad7ed2742e39f98"},{"entry":"efficient-shell","name":"DEFAULT_FLOW_CHART_LABELS","hash":"56e77e95b8c1a6839984"},{"entry":"efficient-shell","name":"DEV_BANNER_TEXT","hash":"6f7e89424a7f413a139f"},{"entry":"efficient-shell","name":"ENGLISH","hash":"121b17f8146326744275"},{"entry":"efficient-shell","name":"ENTRANCE_ATTR","hash":"fc79fde5667e4be907a6"},{"entry":"efficient-shell","name":"ENTRANCE_FROM_ATTR","hash":"e5753ff44b8f14537d40"},{"entry":"efficient-shell","name":"ENTRANCE_STATE_ATTR","hash":"6feecdb8e8c4d673cd25"},{"entry":"efficient-shell","name":"FLAT_STATUS_ROLES","hash":"38f538e0036062cc3f1b"},{"entry":"efficient-shell","name":"FLOW_LAYOUT","hash":"6355c496cbbe32189091"},{"entry":"efficient-shell","name":"FLOW_SPEC_LIMITS","hash":"31add05b65bd74b7d006"},{"entry":"efficient-shell","name":"FONT_WEIGHTS","hash":"52b4a2a4070f79ac24c3"},{"entry":"efficient-shell","name":"GLASS_DIVIDER","hash":"4abe484f8492531e6e01"},{"entry":"efficient-shell","name":"GLASS_INPUT_BG","hash":"2cc213cc21bdcbe5ee79"},{"entry":"efficient-shell","name":"GROUP_COLORS","hash":"7aabea256a050c690c98"},{"entry":"efficient-shell","name":"GROUP_COLORS_SOLID","hash":"a620712d032b782085db"},{"entry":"efficient-shell","name":"HOVER_MOTION","hash":"af0a80b3c85e3fbf85d8"},{"entry":"efficient-shell","name":"ICON_NAMES","hash":"1e7f3882fcba3f65ff9e"},{"entry":"efficient-shell","name":"ICON_SET_FOR_THEME","hash":"8103453b2b0aa00255a3"},{"entry":"efficient-shell","name":"IDENTITY_ROLES","hash":"21f80df1c4baff623350"},{"entry":"efficient-shell","name":"INPUT_SIZES","hash":"c5d43314d24fd6735f5c"},{"entry":"efficient-shell","name":"LIGHTBOX_PICTURE_FIT","hash":"a93a7592a4af090e56b8"},{"entry":"efficient-shell","name":"MARQUEE_IGNORE","hash":"f8ed1942eb85570db2f0"},{"entry":"efficient-shell","name":"MEDIA_FILES_DRAG_TYPE","hash":"724ea23a8bdd3e839308"},{"entry":"efficient-shell","name":"MEDIA_FILE_DRAG_TYPE","hash":"4c811c3891dfb852805d"},{"entry":"efficient-shell","name":"MEDIA_FOLDER_DRAG_TYPE","hash":"3bb01ff9a70c4d5f7393"},{"entry":"efficient-shell","name":"MENU_ON_MEDIA_ATTR","hash":"8920dd2122ac10c310af"},{"entry":"efficient-shell","name":"MODAL_SUBMIT_SELECTOR","hash":"d84bdbfd01a8805d95b7"},{"entry":"efficient-shell","name":"MOTION","hash":"afb7e9a03604f388b85d"},{"entry":"efficient-shell","name":"MOTION_EASING","hash":"3df8067384bcd1bf1e87"},{"entry":"efficient-shell","name":"MOTION_GROUPS","hash":"72eccd969d7845e62f7c"},{"entry":"efficient-shell","name":"NATIVE_MENU_ATTR","hash":"005131ab6b8f236a967e"},{"entry":"efficient-shell","name":"NEUTRAL_ROLES","hash":"e0ffa42a68fdebbc6f4a"},{"entry":"efficient-shell","name":"NEXT_CHUNK_PATH_PREFIX","hash":"09c4a7664b671338c222"},{"entry":"efficient-shell","name":"OVERLAY_OPEN_EVENT","hash":"5029df721a453803dc12"},{"entry":"efficient-shell","name":"PICTURE_TILES_COLUMNS_VAR","hash":"8ff0bf10875ffde65e40"},{"entry":"efficient-shell","name":"PLACEHOLDER_INK","hash":"2df66d0d39e28d3b53e7"},{"entry":"efficient-shell","name":"ROW_HEIGHTS","hash":"ab50f79f754505120192"},{"entry":"efficient-shell","name":"SCRIM_ROLES","hash":"eb89174bfef99154962d"},{"entry":"efficient-shell","name":"SERIES_VARS","hash":"6fb1755e5ee724888d5b"},{"entry":"efficient-shell","name":"SHELL_LANGUAGE_STORAGE_KEY","hash":"6e4367376ca83b903d75"},{"entry":"efficient-shell","name":"SPACING_ROLES","hash":"6a56d2441721d205e749"},{"entry":"efficient-shell","name":"STAGES","hash":"9632e5aae395880146f2"},{"entry":"efficient-shell","name":"STALE_CHUNK_RELOAD_KEY","hash":"68a7205bd9736805ac7f"},{"entry":"efficient-shell","name":"STATUS_VARS","hash":"4f9dd4373172ce6a7d64"},{"entry":"efficient-shell","name":"TEXT_ALIGN_ICONS","hash":"c1a50003c898d5dc6cc7"},{"entry":"efficient-shell","name":"THEME_ICON_SETS","hash":"c04ed577f1f8de5ea01e"},{"entry":"efficient-shell","name":"VITE_PRELOAD_ERROR_EVENT","hash":"dfad33b292b16949faf1"},{"entry":"efficient-shell","name":"Z_LAYERS","hash":"0b590a52752106009d6a"},{"entry":"efficient-shell/ai","name":"DEFAULT_ASSISTANT_CHAT_LABELS","hash":"e021be115baf6c56c0ca"},{"entry":"efficient-shell/ai","name":"ROW_EXTRA_LABELS","hash":"3c2a34facf25ae548f39"},{"entry":"efficient-shell/apps","name":"FILES_OFFICE_EXTENSIONS","hash":"ec322d0793d079446bd9"},{"entry":"efficient-shell/apps","name":"FILES_ROLE_LABELS","hash":"2de2334df77090846b67"},{"entry":"efficient-shell/apps","name":"SPREADSHEET_PREVIEW_UPDATE_EVENT","hash":"834ba753658d2c8d0a31"},{"entry":"efficient-shell/format","name":"ENTRANCE_DELAY_VAR","hash":"8a2f4a1e751ec138bbbf"},{"entry":"efficient-shell/format","name":"ENTRANCE_DURATION_VAR","hash":"ed9dff0a293be26a023e"},{"entry":"efficient-shell/format","name":"EXPAND_SIDE_VAR","hash":"258cc0130fcb25d48278"},{"entry":"efficient-shell/format","name":"HOVER_KINDS","hash":"e2c76e5db09742cb68d9"},{"entry":"efficient-shell/format","name":"PIN_ABOVE_ATTR","hash":"1cd4918b109d8fb8a75a"},{"entry":"efficient-shell/format","name":"PIN_ABOVE_Z_VAR","hash":"da1d8d7520816a38349f"},{"entry":"efficient-shell/format","name":"PIN_ATTR","hash":"90fa72a3274aefa2672f"},{"entry":"efficient-shell/format","name":"PIN_FRAME_ATTR","hash":"7762b6fd5c2094673b82"},{"entry":"efficient-shell/format","name":"PIN_FREE_ATTR","hash":"15262fca72ce64d5444f"},{"entry":"efficient-shell/format","name":"PIN_LENGTH_VAR","hash":"0fcd5a46096644382ba1"},{"entry":"efficient-shell/format","name":"PIN_ON_VAR","hash":"727387fbc36cde299ff1"},{"entry":"efficient-shell/format","name":"PIN_OVER_VAR","hash":"ebbc56ad7131eeb2120a"},{"entry":"efficient-shell/format","name":"PIN_POSITION_VAR","hash":"6c45b2190b5524b1b15f"},{"entry":"efficient-shell/format","name":"PIN_STEP","hash":"1daeda25e6af01e1f949"},{"entry":"efficient-shell/format","name":"PIN_STICK_VAR","hash":"b3d4702280b41f24617f"},{"entry":"efficient-shell/format","name":"PIN_TOP_VAR","hash":"093101ff1937dabe4daa"},{"entry":"efficient-shell/format","name":"PIN_TRACK_POSITION_VAR","hash":"1f9df4b27f9f5421fbea"},{"entry":"efficient-shell/format","name":"SCROLL_ATTR","hash":"6f55192d6271f711b399"},{"entry":"efficient-shell/format","name":"SCROLL_EASE_VAR","hash":"a2281d49da15418946f5"},{"entry":"efficient-shell/format","name":"SCROLL_EFFECTS","hash":"e06a9ed4030d272e55b5"},{"entry":"efficient-shell/format","name":"SCROLL_END_VAR","hash":"c0c679414eb0277fbf63"},{"entry":"efficient-shell/format","name":"SCROLL_ORIGIN_VAR","hash":"0098429747fe503a2242"},{"entry":"efficient-shell/format","name":"SCROLL_PROGRESS_VAR","hash":"72041dc916102bdcc9d8"},{"entry":"efficient-shell/format","name":"SCROLL_START_VAR","hash":"7b65b18fff5c610b4bab"},{"entry":"efficient-shell/format","name":"SCROLL_ZOOM_VAR","hash":"0d8ae643ee6e1790db87"},{"entry":"efficient-shell/icons/efficient","name":"efficientIconMeanings","hash":"d83ae454801f099149e6"},{"entry":"efficient-shell/icons/sets","name":"efficientLookNames","hash":"eb8a3af463df1f310f4c"},{"entry":"efficient-shell/map","name":"COMPACT_SHOW","hash":"8e104672613835524e35"},{"entry":"efficient-shell/map","name":"MAPLIBRE_WORKER_FILE","hash":"ea4884f1e1bd66e2cc4e"},{"entry":"efficient-shell/map","name":"MAP_CATEGORIES","hash":"9c7650509b67d02224e3"},{"entry":"efficient-shell/map","name":"MAP_TILE_ORIGIN","hash":"2becdbb36cdfe9f5ef24"},{"entry":"efficient-shell/markup","name":"COLOR_SLOTS","hash":"546d8695bfd3a4168b36"},{"entry":"efficient-shell/markup","name":"MARKUP_TOOLS","hash":"c00656098e6c6de33881"},{"entry":"efficient-shell/markup","name":"MARK_NAMES","hash":"d44aa3e35fd85db3d037"},{"entry":"efficient-shell/markup","name":"STANDARD_MARKUP","hash":"dfb86d96534febeba3e0"},{"entry":"efficient-shell/model-viewer","name":"MODEL_VIEWER_DECODER_ORIGIN","hash":"dee20e1d75b05718f79c"},{"entry":"efficient-shell/model-viewer","name":"MODEL_VIEWER_LIGHTING","hash":"fd6c84a6e2bf4ae502fe"}]}
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{APP_VERSION,VERSION}from"./chunk-
|
|
1
|
+
export{APP_VERSION,VERSION}from"./chunk-RO3M4JWS.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-shell",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.10.0",
|
|
4
4
|
"description": "Desktop-style React UI shell — windows, taskbar, start menu, sticky notes, frosted glass theming, and bundled apps.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Efficient Pty Ltd",
|
package/dist/chunk-AIJ3G6BD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=["entrance","hover","scroll","loop","click","mouse","webgl","countUp"],t=(e,t,o,r)=>({default:e,min:t,max:o,step:r}),o={entrance:{duration:t(.6,0,4,.1),delay:t(0,0,4,.1)},hover:{duration:t(.7,0,2,.1),delay:t(0,0,2,.1)},loop:{duration:t(50,1,120,1),delay:t(0,0,10,.1)},click:{duration:t(.3,0,2,.1),delay:t(0,0,2,.1)},countUp:{duration:t(1.4,0,4,.1),delay:t(0,0,4,.1)}},r=/^\s*-?\d+(\.\d+)?\s*$/;function a(e,t,a){const n=o[e][t],i="number"==typeof a?a:"string"==typeof a&&r.test(a)?Number(a):Number.NaN;if(Number.isNaN(i))return n.default;const u=Math.min(n.max,Math.max(n.min,i)),l=Math.round(Number((u/n.step).toFixed(6)));return Number((l*n.step).toFixed(3))}var n={arrive:"cubic-bezier(0.22, 1, 0.36, 1)",loop:"linear",media:"cubic-bezier(0.2, 0.6, 0.2, 1)"},i={zoom:1.04,liftPx:3,rotateFallbackDeg:72};function u(e){return"number"==typeof e&&Number.isInteger(e)&&e>=2?Number((360/e).toFixed(3)):i.rotateFallbackDeg}function l(){const e={};for(const t of Object.keys(o)){const r=t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);e[`--page-motion-${r}-duration`]=`${o[t].duration.default}s`,e[`--page-motion-${r}-delay`]=`${o[t].delay.default}s`}for(const[t,o]of Object.entries(n))e[`--page-ease-${t}`]=o;return e["--page-hover-zoom"]=String(i.zoom),e["--page-hover-lift"]=`${i.liftPx}px`,e["--page-hover-rotate"]=`${i.rotateFallbackDeg}deg`,e}export{i as HOVER_MOTION,n as MOTION_EASING,e as MOTION_GROUPS,o as MOTION_TIMING,l as motionCustomProperties,a as motionSeconds,u as rotateDegrees};
|
package/dist/chunk-EJMCK7E3.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{railLabelsShown as e}from"./chunk-FQEALPZJ.js";import{ChoiceContent as t,choiceItemClass as n,choiceTipClass as r,choiceTrackClass as o}from"./chunk-EFKJLUYP.js";import{Tooltip as l}from"./chunk-CIZAUBWA.js";import{useBrowserLayoutEffect as a}from"./chunk-PU2GJVMG.js";import{useRef as i,useState as c,useEffect as d}from"react";import{jsx as s,jsxs as u,Fragment as m}from"react/jsx-runtime";var b=(e,t)=>`flex items-center border-b border-gray-200${e?"":" gap-1"} ${t}`.trim();function f(e,t,n="default"){return`-mb-px inline-flex items-center gap-2 border-b-2 px-3 py-2 text-sm font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 ${t?"flex-1 justify-center ":""}${e?"border-blue-600 text-blue-600":`border-transparent ${"warning"===n?"text-amber-700":"text-gray-900"} hover:border-gray-300`}`}function h(e){if(!e||!e.startsWith("#")||e.length<2)return null;try{return document.getElementById(decodeURIComponent(e.slice(1)))}catch{return null}}function p(e,t){const n=e.filter(e=>!e.disabled).map(e=>({id:e.id,section:h(e.href)})).filter(e=>null!=e.section);if(0===n.length)return null;const r=function(e){for(let t=e.parentElement;t;t=t.parentElement){const e=getComputedStyle(t).overflowY;if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t}return document.scrollingElement??document.documentElement}(n[0].section);if(r.scrollTop>0&&r.scrollTop+r.clientHeight>=r.scrollHeight-1)return n[n.length-1].id;const o=Math.max(0,t.getBoundingClientRect().bottom)+8;let l=n[0].id;for(const e of n)e.section.getBoundingClientRect().top<=o&&(l=e.id);return l}function g({items:e,value:n,onChange:o,block:c=!1,className:u="","aria-label":m,"aria-labelledby":g}){const v=i(null),y=function(e,t,n,r){const o=i(0),l=i({items:t,value:n,onChange:r});l.current={items:t,value:n,onChange:r};const c=i(()=>{});return c.current=()=>{const t=e.current;if(!t||Date.now()<o.current)return;const n=p(l.current.items,t);null!=n&&n!==l.current.value&&l.current.onChange(n)},a(()=>{c.current()},[t]),d(()=>{let e=0;const t=()=>{e||(e=requestAnimationFrame(()=>{e=0,c.current()}))};return document.addEventListener("scroll",t,{capture:!0,passive:!0}),window.addEventListener("resize",t),()=>{document.removeEventListener("scroll",t,{capture:!0}),window.removeEventListener("resize",t),e&&cancelAnimationFrame(e)}},[]),e=>{o.current=Date.now()+800,e!==l.current.value&&l.current.onChange(e),window.setTimeout(()=>c.current(),850)}}(v,e,n,o);/* @__PURE__ */
|
|
2
|
-
return s("nav",{ref:v,"aria-label":m,"aria-labelledby":g,className:b(c,u),children:e.map(e=>{const o=e.id===n,a=/* @__PURE__ */s("a",{href:e.disabled?void 0:e.href,"aria-current":o?"location":void 0,"aria-disabled":e.disabled||void 0,onClick:e.disabled?void 0:t=>((e,t)=>{const n=h(t.href);n&&(e=>!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey))(e)&&(e.preventDefault(),y(t.id),n.scrollIntoView({block:"start",behavior:"function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches?"auto":"smooth"}),n.hasAttribute("tabindex")||n.setAttribute("tabindex","-1"),n.focus({preventScroll:!0}))})(t,e),className:`${f(o,c,"warning"===e.tone?"warning":"default")}${e.disabled?" cursor-not-allowed opacity-50":""}`,children:/* @__PURE__ */s(t,{icon:e.icon,label:e.label})},e.id);return null!=e.tooltip&&!1!==e.tooltip?/* @__PURE__ */s(l,{content:e.tooltip,className:c?r(c):void 0,children:a},e.id):a})})}var v=(e,t)=>`${e}-tab-${t}`,y=(e,t)=>`${e}-panel-${t}`;function w(e,t){const n=getComputedStyle(e),r=(parseFloat(n.paddingLeft)||0)+(parseFloat(n.paddingRight)||0)+(parseFloat(n.borderLeftWidth)||0)+(parseFloat(n.borderRightWidth)||0),o=(parseFloat(n.columnGap)||0)*Math.max(0,t-1),l=e.parentElement;let a=1/0;if(l){const e=getComputedStyle(l);a=l.clientWidth-(parseFloat(e.paddingLeft)||0)-(parseFloat(e.paddingRight)||0)}return{chrome:r+o,room:a}}function x(e){return e.items.some(e=>null!=e.href)?/* @__PURE__ */s(g,{...e}):/* @__PURE__ */s(k,{...e})}function k({items:h,value:p,onChange:g,variant:x="underline",block:k=!1,idPrefix:F,className:E="","aria-label":A,"aria-labelledby":L,labelsFit:N=!1,dotLabel:R="Has a setting"}){const $=i([]),S=i(null),W="pill"===x,[M,j]=c(null),z=M??"none",D=i(()=>{});D.current=()=>{const t=S.current;if(!t||!N)return;const n=function(e){return[...e.querySelectorAll('[role="tab"]')].map(e=>{const t=getComputedStyle(e),n=(parseFloat(t.paddingLeft)||0)+(parseFloat(t.paddingRight)||0)+(parseFloat(t.borderLeftWidth)||0)+(parseFloat(t.borderRightWidth)||0),r=e.querySelector("[data-tab-glyph]")?.getBoundingClientRect().width??0,o=e.querySelector("[data-tab-word]")?.scrollWidth??0;return{bare:n+r,worded:n+r+(r&&o?8:0)+o,active:"true"===e.getAttribute("aria-selected")}})}(t);j(function({tabs:t,block:n,chrome:r,room:o}){if(!n)return e({buttons:t,orientation:"horizontal",chrome:r,room:o});if(0===t.length)return"none";const l=e=>r+e*t.length<=o+.5;if(l(Math.max(...t.map(e=>e.worded))))return"all";const a=t.find(e=>e.active);return a&&l(Math.max(a.worded,...t.map(e=>e.bare)))?"chosen":"none"}({tabs:n,block:k,...w(t,n.length)}))},a(()=>{D.current()}),d(()=>{const e=S.current?.parentElement;if(!N||!e)return;let t=!0;const n=()=>{t&&D.current()},r="undefined"==typeof ResizeObserver?void 0:ResizeObserver,o=r?new r(n):null;return o?.observe(e),document.fonts?.ready.then(n,()=>{}),()=>{t=!1,o?.disconnect()}},[N]);const H=(e,t)=>{for(let n=1;n<=h.length;n+=1){const r=((e+t*n)%h.length+h.length)%h.length;if(!h[r]?.disabled)return r}return null},I=e=>{const t=1===e?h.map((e,t)=>t):h.map((e,t)=>h.length-1-t);for(const e of t)if(!h[e]?.disabled)return e;return null};/* @__PURE__ */
|
|
3
|
-
return s("div",{ref:S,role:"tablist","data-labels-shown":N?z:void 0,"aria-label":A,"aria-labelledby":L,onKeyDown:e=>{const t=h.findIndex(e=>e.id===p);let n=null;if("ArrowRight"===e.key||"ArrowDown"===e.key)n=H(t,1);else if("ArrowLeft"===e.key||"ArrowUp"===e.key)n=H(t,-1);else if("Home"===e.key)n=I(1);else{if("End"!==e.key)return;n=I(-1)}e.preventDefault(),null!==n&&n!==t&&(g(h[n].id),$.current[n]?.focus())},className:W?o(k,E):b(k,E),children:h.map((e,o)=>{const a=e.id===p,i=N&&null!=e.icon,c="all"===z||"chosen"===z&&a,d=e.dot?/* @__PURE__ */s(C,{label:e.label,on:a,said:R}):e.label,b=/* @__PURE__ */s("button",{ref:e=>{$.current[o]=e},type:"button",role:"tab",id:F?v(F,e.id):void 0,"aria-controls":F?y(F,e.id):void 0,"aria-selected":a,tabIndex:a?0:-1,disabled:e.disabled,onClick:()=>g(e.id),className:W?n({selected:a,disabled:e.disabled,block:k}):f(a,k,"warning"===e.tone?"warning":"default"),children:i?/* @__PURE__ */u(m,{children:[
|
|
4
|
-
/* @__PURE__ */s("span",{"aria-hidden":"true","data-tab-glyph":"",className:"inline-flex shrink-0",children:e.icon}),
|
|
5
|
-
/* @__PURE__ */s("span",{"data-tab-word":c?"shown":"hidden",className:c?"whitespace-nowrap":"sr-only",children:d})]}):/* @__PURE__ */s(t,{icon:e.icon,label:d})},e.id),h=i?e.tooltip??e.label:e.tooltip;return null!=h&&!1!==h?/* @__PURE__ */s(l,{content:h,className:W||k?r(k):void 0,children:b},e.id):b})})}function C({label:e,on:t,said:n}){/* @__PURE__ */
|
|
6
|
-
return u("span",{className:"inline-flex items-center gap-(--space-4)",children:[e,
|
|
7
|
-
/* @__PURE__ */s("span",{"aria-hidden":"true","data-tab-dot":t?"on":"off",className:"size-2 shrink-0 rounded-full "+(t?"bg-current":"bg-accent-fill")}),
|
|
8
|
-
/* @__PURE__ */s("span",{className:"sr-only",children:n})]})}export{x as Tabs,v as tabButtonId,y as tabPanelId};
|
package/dist/chunk-LACL4MAR.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t=56,e=20;function n(t){let e=t.parentElement;for(;e;){const t=getComputedStyle(e).overflowY;if(("auto"===t||"scroll"===t||"overlay"===t)&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.scrollingElement??document.documentElement}function o(t){if(t===document.scrollingElement||t===document.documentElement||t===document.body)return{top:0,bottom:window.innerHeight};const e=t.getBoundingClientRect();return{top:e.top,bottom:e.bottom}}function r(t,e,n,o=56,r=20){if(t<e+o){const n=Math.min(1,(e+o-t)/o);return-Math.ceil(n*r)}if(t>n-o){const e=Math.min(1,(t-(n-o))/o);return Math.ceil(e*r)}return 0}export{e as EDGE_SCROLL_MAX_SPEED,t as EDGE_SCROLL_ZONE,r as edgeScrollDelta,n as getScrollParent,o as scrollBoundsOf};
|
package/dist/chunk-N7EZ2BFE.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import{Tree as e,TreeRow as n,TreeGroup as l}from"./chunk-BTMZ5MUY.js";import{MarqueeBox as r}from"./chunk-IC72MGON.js";import{readStoredWidth as a,writeStoredWidth as i,ResizeHandle as t}from"./chunk-2KD6R2XF.js";import{ImageLightbox as o}from"./chunk-ONUNFTZD.js";import{Drawer as d}from"./chunk-AYTGYEOI.js";import{EmptyState as s}from"./chunk-W3454ZES.js";import{DescriptionList as c}from"./chunk-SACUSHVN.js";import{Breadcrumbs as u}from"./chunk-WREUA43Q.js";import{ROOT_KEY as m,mediaLibraryMenu as p}from"./chunk-UFJR63AO.js";import{useMediaMoveItems as h}from"./chunk-GRAFJD3L.js";import{RenameField as f}from"./chunk-F4KB3K3I.js";import{MediaUploadGrid as g}from"./chunk-B4Y5NGHR.js";import{MediaUsedInList as v}from"./chunk-XOEYCDWT.js";import{NativeSelect as k}from"./chunk-W7HTHKN2.js";import{useGridSelection as y}from"./chunk-VLKDWKVR.js";import{useMarquee as b}from"./chunk-OLFYNMTD.js";import{copyToClipboard as w}from"./chunk-452LT77I.js";import{Checkbox_default as x}from"./chunk-CGZBDI6C.js";import{Segmented as N}from"./chunk-TALQMTCE.js";import{useContextMenu as C,ContextMenu as I}from"./chunk-MF7OELXP.js";import{Banner as D}from"./chunk-OSMRYND3.js";import{Input_default as T}from"./chunk-BYTQRQ5P.js";import{useFileIntake as S,FileIntakeAlert as j}from"./chunk-TNGIXSTM.js";import{setModalDragAside as L,modalIdHolding as z}from"./chunk-EIFNESXS.js";import{ColoredBadge as F}from"./chunk-L2WQOJ3T.js";import{DropdownMenu as O}from"./chunk-NJY4HPNB.js";import{IconButton_default as E}from"./chunk-4YH7U7WL.js";import{Button_default as A}from"./chunk-37FQVY2O.js";import{Icon as M}from"./chunk-ISVODSRP.js";import{Tooltip as P}from"./chunk-CIZAUBWA.js";import{useBrowserState as R}from"./chunk-KEFNQEXZ.js";import{buttonClasses as U}from"./chunk-LYGIOJ3J.js";import{usePlotWidth as B}from"./chunk-MAFUXCPZ.js";import{useShellStrings as K}from"./chunk-NRHG4R2Q.js";import{useRef as W,useId as Y,useEffect as G,useMemo as H,useCallback as J,useState as Q}from"react";import{jsxs as V,Fragment as X,jsx as Z}from"react/jsx-runtime";var $="application/x-efficient-media-files",q="application/x-efficient-media-folder",_="application/x-efficient-media-file";function ee(e){if(!e||!Array.from(e.types).includes(_))return null;try{const n=JSON.parse(e.getData(_));if(n&&"string"==typeof n.id&&"string"==typeof n.url&&"string"==typeof n.name&&("image"===n.kind||"video"===n.kind))return{id:n.id,url:n.url,kind:n.kind,name:n.name}}catch{}return null}var ne="mediaLibrary.folderWidth",le={type:"all",use:"any",sort:"newest"},re={lock:/* @__PURE__ */Z(M,{name:"lock","aria-hidden":"true",className:"h-4 w-4"}),folder:/* @__PURE__ */Z(M,{name:"folder","aria-hidden":"true",className:"h-4 w-4"}),folderOpen:/* @__PURE__ */Z(M,{name:"folder-open","aria-hidden":"true",className:"h-4 w-4"}),folderPlus:/* @__PURE__ */Z(M,{name:"folder-plus","aria-hidden":"true",className:"h-4 w-4"}),trash:/* @__PURE__ */Z(M,{name:"trash","aria-hidden":"true",className:"h-4 w-4"}),upload:/* @__PURE__ */Z(M,{name:"upload","aria-hidden":"true",className:"h-4 w-4"}),search:/* @__PURE__ */Z(M,{name:"search","aria-hidden":"true",className:"h-4 w-4"}),grid:/* @__PURE__ */Z(M,{name:"grid","aria-hidden":"true",className:"h-4 w-4"}),list:/* @__PURE__ */Z(M,{name:"list","aria-hidden":"true",className:"h-4 w-4"}),more:/* @__PURE__ */Z(M,{name:"more","aria-hidden":"true",className:"h-4 w-4"}),copy:/* @__PURE__ */Z(M,{name:"copy","aria-hidden":"true",className:"h-4 w-4"}),edit:/* @__PURE__ */Z(M,{name:"edit","aria-hidden":"true",className:"h-4 w-4"}),swap:/* @__PURE__ */Z(M,{name:"swap","aria-hidden":"true",className:"h-4 w-4"}),crop:/* @__PURE__ */Z(M,{name:"crop","aria-hidden":"true",className:"h-4 w-4"}),external:/* @__PURE__ */Z(M,{name:"external","aria-hidden":"true",className:"h-4 w-4"}),undo:/* @__PURE__ */Z(M,{name:"undo","aria-hidden":"true",className:"h-4 w-4"})},ae={link:/* @__PURE__ */Z(M,{name:"link","aria-hidden":"true",className:"h-3 w-3"}),email:/* @__PURE__ */Z(M,{name:"email","aria-hidden":"true",className:"h-3 w-3"}),lock:/* @__PURE__ */Z(M,{name:"lock","aria-hidden":"true",className:"h-3 w-3"}),clock:/* @__PURE__ */Z(M,{name:"clock","aria-hidden":"true",className:"h-3 w-3"})};function ie(M){const{mode:ee="manage",layout:ie="auto",location:te,onLocationChange:oe,folders:de,products:se,allFilesCount:ce,trashCount:ue,files:me,query:pe,onQueryChange:he,filters:fe=le,onFiltersChange:ge,extraFilters:ve,view:ke="grid",onViewChange:ye,selectedIds:be,onSelectionChange:we,usedIn:xe,denied:Ne={},accept:Ce="image/*,video/*",maxSizeBytes:Ie,busy:De,progress:Te,onUpload:Se,onNewFolder:je,onRename:Le,onMove:ze,onTrash:Fe,onDeleteFolder:Oe,onRestore:Ee,onDeleteForever:Ae,onEmptyTrash:Me,onReplace:Pe,onCropEdit:Re,onOpenInDesign:Ue,onChoose:Be,onCancel:Ke,pickNote:We,onDragOut:Ye,className:Ge=""}=M,He=K().mediaLibrary,Je=K().media,Qe="pick"===ee,Ve=!Qe,Xe=W(null),Ze=B(Xe,"phone"===ie?343:1200),$e="phone"===ie||"auto"===ie&&Ze<640,[qe,_e]=R(()=>a(ne,240,480)??280,280),en=Y();G(()=>{const e=window.setTimeout(()=>i(ne,qe),200);return()=>window.clearTimeout(e)},[qe]);const nn=H(()=>function(e=[]){const n=/* @__PURE__ */new Map,l=(e,r)=>{for(const a of e){const e=[...r,a];n.set(a.id,{node:a,path:e}),a.children&&l(a.children,e)}};return l(e,[]),n}(se),[se]),ln=H(()=>new Map(de.map(e=>[e.id,e])),[de]),rn=H(()=>{const e=/* @__PURE__ */new Map;for(const n of de){const l=n.parentId&&ln.has(n.parentId)?n.parentId:null;e.set(l,[...e.get(l)??[],n])}return e},[de,ln]),an=J(e=>{const n=[];for(let l=e?ln.get(e):void 0;l&&(n.unshift(l),!(n.length>de.length));l=l.parentId?ln.get(l.parentId):void 0);return n},[ln,de.length]),tn=J((e,n)=>an(e).some(e=>e.id===n),[an]),[on,dn]=Q(()=>/* @__PURE__ */new Set(["@files"])),sn=e=>dn(n=>{const l=new Set(n);return l.has(e)?l.delete(e):l.add(e),l}),cn=J(e=>{dn(n=>e.every(e=>n.has(e))?n:/* @__PURE__ */new Set([...n,...e]))},[]),un="files"===(mn=te).place?`files:${mn.folderId??""}`:"products"===mn.place?`products:${mn.nodeId??""}`:"trash";var mn;G(()=>{if("files"===te.place)cn(["@files",...an(te.folderId).slice(0,-1).map(e=>e.id)]);else if("products"===te.place){const e=te.nodeId?nn.get(te.nodeId)?.path??[]:[];cn(["@products",...e.slice(0,-1).map(e=>`p:${e.id}`)])}},[un]);const pn="products"===te.place,hn="trash"===te.place,fn="files"===te.place,gn=fn?te.folderId:null,vn=pn&&te.nodeId?nn.get(te.nodeId)?.path[0]:void 0,kn=e=>e?.sharedFrom?`${He.readOnly} ${He.editedAtHq(e.sharedFrom)}`:He.readOnly,yn=H(()=>me.map(e=>e.id),[me]),bn=H(()=>new Map(me.map(e=>[e.id,e])),[me]),wn=y(yn),xn=H(()=>yn.filter(e=>wn.selected.has(e)),[yn,wn.selected]),Nn=1===xn.length?bn.get(xn[0]):void 0,Cn=W(!0);G(()=>{Cn.current?Cn.current=!1:wn.clear()},[un]);const In=be?.join("\0");G(()=>{be&&wn.setSelection(be)},[In]);const Dn=W(In??""),Tn=xn.join("\0");G(()=>{Dn.current!==Tn&&(Dn.current=Tn,we?.(xn))},[Tn]);const Sn=(e,n={})=>{Qe?wn.select(e):wn.select(e,{ctrl:!(!n.ctrlKey&&!n.metaKey),shift:!!n.shiftKey})},[jn,Ln]=Q(null),zn=e=>{const n=jn;if(Ln(null),!n||null==e)return;e!==("folder"===n.kind?ln.get(n.id)?.name:bn.get(n.id)?.name)&&Le?.(n,e)},Fn=async e=>{if(!je)return;const n=await je(e);cn(["@files",...e?[e]:[]]),"string"==typeof n&&Ln({kind:"folder",id:n})},On=J(e=>{const n=[],l=n=>{if("files"===e.kind)return n===gn&&fn?He.alreadyHere:void 0;const l=ln.get(e.id);return n===e.id||n&&tn(n,e.id)?He.notIntoItself:(l?.parentId??null)===n?He.folderAlreadyHere:void 0};n.push({key:m,label:He.allFiles,disabledReason:l(null)});const r=(e,a)=>{for(const i of rn.get(e)??[])n.push({key:i.id,label:i.name,depth:a,disabledReason:l(i.id)}),r(i.id,a+1)};return r(null,1),n},[rn,ln,fn,tn,gn,He]),En=J(e=>{const n=new Set(e.map(e=>bn.get(e)?.kind??"image"));return 1===n.size?[...n][0]:"file"},[bn]),[An,Mn]=Q(null),Pn={words:He,media:Je,denied:Ne,moveTargets:On,kindOf:En,urlOf:e=>bn.get(e)?.url,newSubfolder:je&&Ve?e=>{Fn(e)}:void 0,rename:Le&&Ve?e=>{"file"!==e.kind||wn.isSelected(e.id)||wn.select(e.id),Ln(e)}:void 0,move:ze&&Ve?ze:void 0,trash:Fe&&Ve?Fe:void 0,deleteFolder:Oe&&Ve?Oe:void 0,folderNotEmpty:e=>!!ln.get(e)?.notEmpty,replace:Pe&&Ve?Pe:void 0,copyUrl:e=>{const n=bn.get(e)?.url;n&&w(He.urlLabel,n)},openInDesign:Ue,restore:Ee,deleteForever:Ae},Rn=e=>p(e,Pn),Un=C(),Bn=(e,n)=>{Qe||(wn.isSelected(e)||wn.select(e),Un.open(n,(e=>{const n=wn.isSelected(e)?xn:[e];return pn?{kind:"render",id:e}:hn?{kind:"trashed",ids:n}:{kind:"files",ids:n}})(e)))},[Kn,Wn]=Q(null),[Yn,Gn]=Q(null),[Hn,Jn]=Q(null);G(()=>{if(!Yn&&!Kn)return;const e=()=>{Gn(null),Wn(null)};return window.addEventListener("dragend",e),window.addEventListener("drop",e),()=>{window.removeEventListener("dragend",e),window.removeEventListener("drop",e)}},[Yn,Kn]);const Qn=(e,n)=>Array.from(e.dataTransfer?.types??[]).includes(n),Vn=(e,n)=>!(!ze||Ne.move||Qe)&&(!!Qn(e,$)||!(!Qn(e,q)||!Hn)&&(n!==Hn&&!(n&&tn(n,Hn)))),Xn=(e,n)=>({onDragEnter:l=>{Vn(l,n)&&(l.preventDefault(),Wn(e))},onDragOver:l=>{Vn(l,n)&&(l.preventDefault(),l.dataTransfer.dropEffect="move",Kn!==e&&Wn(e))},onDragLeave:n=>{const l=n.relatedTarget;l&&n.currentTarget.contains(l)||Wn(n=>n===e?null:n)},onDrop:e=>{if(Vn(e,n))if(e.preventDefault(),Wn(null),Qn(e,$)){let l;try{l=JSON.parse(e.dataTransfer.getData($))}catch{l=null}Array.isArray(l)&&l.length&&ze({kind:"files",ids:l.map(String)},n)}else Hn&&(ze({kind:"folder",id:Hn},n),Jn(null))}}),Zn=e=>{const n=e=>Qn(e,$)||Qn(e,q)||Qn(e,"Files");return{onDragEnter:l=>{n(l)&&Gn(e)},onDragOver:l=>{n(l)&&Yn!==e&&Gn(e)},onDragLeave:n=>{const l=n.relatedTarget;l&&n.currentTarget.contains(l)||Gn(n=>n===e?null:n)}}},$n=(e,n,l)=>/* @__PURE__ */Z(P,{side:"right",content:Yn===e?He.noDropProducts:kn(l),open:Yn===e||!Yn&&void 0,children:/* @__PURE__ */Z("span",{children:n})}),qn=e=>({onContextMenu:n=>{Un.open(n,e)}}),_n=(e,r,a)=>e.map(e=>{const i=`p:${e.id}`,t=a??e,o=on.has(i),d=e.children?.length?e.children:null;/* @__PURE__ */
|
|
2
|
-
return V("div",{role:"none",className:"contents",children:[
|
|
3
|
-
/* @__PURE__ */Z(n,{label:$n(i,e.name,t),level:r,icon:d&&o?re.folderOpen:re.folder,count:e.count,countLabel:null!=e.count?e.countLabel??He.fileCount(e.count):void 0,selected:pn&&te.nodeId===e.id,expanded:d?o:void 0,onToggle:d?()=>sn(i):void 0,onSelect:()=>oe({place:"products",nodeId:e.id}),rowProps:{"data-media-row":i,...Zn(i),...Ve?qn({kind:"product-node",id:e.id}):{}}}),d&&o&&/* @__PURE__ */Z(l,{children:_n(d,r+1,t)})]},e.id)}),el=(e,r)=>(rn.get(e)??[]).map(e=>{const a=rn.get(e.id),i=on.has(e.id),t="folder"===jn?.kind&&jn.id===e.id,o=Rn({kind:"folder",id:e.id});/* @__PURE__ */
|
|
4
|
-
return V("div",{role:"none",className:"contents",children:[
|
|
5
|
-
/* @__PURE__ */Z(n,{label:e.name,level:r,icon:a&&i?re.folderOpen:re.folder,count:e.count,countLabel:null!=e.count?e.countLabel??He.fileCount(e.count):void 0,selected:t||fn&&te.folderId===e.id,expanded:a?i:void 0,onToggle:a?()=>sn(e.id):void 0,onSelect:()=>oe({place:"files",folderId:e.id}),drop:Kn===e.id?"into":void 0,dragging:Hn===e.id,draggable:Ve&&!!ze&&!Ne.move,rename:t?/* @__PURE__ */Z(f,{value:e.name,label:He.folderName,onDone:zn}):void 0,actions:Ve&&o.length?/* @__PURE__ */Z(O,{align:"end","aria-label":He.folderActions,trigger:re.more,items:o}):void 0,rowProps:{"data-media-row":e.id,...Xn(e.id,e.id),...Ve?qn({kind:"folder",id:e.id}):{},...Ve&&ze&&!Ne.move?{draggable:!0,onDragStart:n=>{n.dataTransfer.effectAllowed="move",n.dataTransfer.setData(q,e.id),Jn(e.id)},onDragEnd:()=>{Jn(null),Wn(null)}}:{}}}),a&&i&&/* @__PURE__ */Z(l,{children:el(e.id,r+1)})]},e.id)}),nl=on.has("@files"),ll=on.has("@products"),rl=/* @__PURE__ */V(e,{"aria-label":He.folders,children:[se&&/* @__PURE__ */V(X,{children:[
|
|
6
|
-
/* @__PURE__ */Z(n,{label:$n("@products",He.products),level:1,icon:re.lock,badge:{label:He.readOnlyBadge,tone:"neutral"},expanded:se.length?ll:void 0,onToggle:()=>sn("@products"),selected:pn&&null==te.nodeId,onSelect:()=>oe({place:"products",nodeId:null}),rowProps:{"data-media-row":"@products",...Zn("@products")}}),ll&&se.length>0&&/* @__PURE__ */Z(l,{children:_n(se,2)})]}),
|
|
7
|
-
/* @__PURE__ */Z(n,{label:He.allFiles,level:1,icon:nl?re.folderOpen:re.folder,count:ce,countLabel:null!=ce?He.fileCount(ce):void 0,expanded:rn.get(null)?.length?nl:void 0,onToggle:()=>sn("@files"),selected:fn&&null==te.folderId,onSelect:()=>oe({place:"files",folderId:null}),drop:"@files"===Kn?"into":void 0,rowProps:{"data-media-row":"@files",...Xn("@files",null)}}),nl&&(rn.get(null)?.length??0)>0&&/* @__PURE__ */Z(l,{children:el(null,2)}),Ve&&/* @__PURE__ */Z(n,{label:He.trash,level:1,icon:re.trash,count:ue,countLabel:null!=ue?He.fileCount(ue):void 0,selected:hn,onSelect:()=>oe({place:"trash"}),rowProps:{"data-media-row":"@trash"}})]}),al=(()=>{if(hn)return[{label:He.trash}];if(pn){const e=te.nodeId?nn.get(te.nodeId)?.path??[]:[];return[{label:He.products,onClick:e.length?()=>oe({place:"products",nodeId:null}):void 0},...e.map((n,l)=>({label:n.name,onClick:l<e.length-1?()=>oe({place:"products",nodeId:n.id}):void 0}))]}const e=an(gn);return[{label:He.allFiles,onClick:e.length?()=>oe({place:"files",folderId:null}):void 0},...e.map((n,l)=>({label:n.name,onClick:l<e.length-1?()=>oe({place:"files",folderId:n.id}):void 0}))]})(),il=pn?He.readOnly:Ne.upload,tl=!!Se&&!hn&&!il,ol=S({accept:Ce,maxSizeBytes:Ie,multiple:!0,disabled:!tl,onAccept:e=>Se?.(e,gn)}),dl=pn?He.noProductFolder:Ne.newFolder,sl=e=>e?{"aria-disabled":!0,disabledReason:e}:{},cl=/* @__PURE__ */V("div",{className:"flex flex-wrap items-center gap-2",children:[Ve&&je&&!hn&&/* @__PURE__ */Z(A,{variant:"secondary",size:"sm",leftIcon:re.folderPlus,onClick:()=>{Fn(gn)},...sl(dl),children:He.newFolder}),Se&&!hn&&/* @__PURE__ */Z(A,{variant:"primary",size:"sm",leftIcon:re.upload,onClick:()=>ol.open(),...sl(il),children:He.upload}),Ve&&hn&&Me&&me.length>0&&/* @__PURE__ */Z(A,{variant:"danger",size:"sm",onClick:Me,...sl(Ne.deleteForever),children:He.emptyTrash})]}),ul=(e,n,l,r,a)=>/* @__PURE__ */Z("div",{style:{width:$e?void 0:a,flex:$e?"1 1 120px":"0 0 auto",minWidth:0},children:/* @__PURE__ */Z(k,{size:"sm","aria-label":e,value:n,onChange:r,options:l})},e),ml=e=>n=>ge?.({...fe,[e]:n}),pl=/* @__PURE__ */V("div",{className:"flex flex-wrap items-center gap-2",children:[he&&/* @__PURE__ */Z("div",{style:{flex:"1 1 200px",minWidth:0},children:/* @__PURE__ */Z(T,{size:"sm",type:"search",leftIcon:re.search,placeholder:pn?He.searchProducts:He.search,"aria-label":pn?He.searchProducts:He.search,value:pe??"",onChange:e=>he(e.target.value)})}),ge&&ul(He.mediaType,fe.type,[{value:"all",label:He.allTypes},{value:"image",label:He.images},{value:"video",label:He.videos},{value:"svg",label:"SVG"},{value:"gif",label:"GIF"}],ml("type"),130),ge&&!pn&&!hn&&ul(He.use,fe.use,[{value:"any",label:He.anyUse},{value:"email",label:He.emailOnly},{value:"website",label:He.websiteOnly},{value:"unused",label:He.notUsed}],ml("use"),130),ge&&Ve&&ul(He.sort,fe.sort,[{value:"newest",label:He.newest},{value:"name",label:He.byName},{value:"size",label:He.bySize}],ml("sort"),110),ve?.map(e=>ul(e.label,e.value,e.options,e.onChange,120)),ye&&/* @__PURE__ */Z(N,{size:"sm",label:He.view,value:ke,onChange:ye,options:[{value:"grid",label:He.grid,icon:re.grid},{value:"list",label:He.list,icon:re.list}]})]}),hl=e=>{const n=[];return null!=e.trashedDaysAgo&&n.push({key:"t",label:He.daysAgo(e.trashedDaysAgo),count:e.trashedDaysAgo,icon:ae.clock,tone:"neutral"}),e.usedCount&&n.push({key:"u",label:He.used(e.usedCount),count:e.usedCount,icon:ae.link,tone:"active"}),e.email&&n.push({key:"e",label:He.email,icon:ae.email,tone:"queued"}),e.private&&n.push({key:"p",label:He.private,icon:ae.lock,tone:"neutral"}),n},fl=e=>hl(e).map(e=>/* @__PURE__ */Z(F,{tone:e.tone,size:"xs",children:e.label},e.key)),gl=Ve&&fn&&!!ze&&!Ne.move,vl=!!Ye&&!hn,kl=W(""),yl=W(null),bl=()=>yl.current?.dropped?"dropped":"cancelled",wl=W(Ye);wl.current=Ye;const xl=J(e=>{const n=yl.current;n&&(yl.current=null,n.stop(),L(kl.current,!1),e&&wl.current?.(e))},[]),Nl=J(e=>{xl(bl());const n=Xe.current?.ownerDocument;if(!n)return;kl.current=z(Xe.current);const l=Xe.current?.closest("[data-modal-panel]"),r=e=>{kl.current&&!l?.contains(e.target)&&L(kl.current,!0)},a=()=>!!e&&!e.isConnected,i=()=>{const e=yl.current;if(e){if(a())return xl("dropped");e.dropped=!0,L(kl.current,!1)}},t=e=>{const n=e.dataTransfer?.dropEffect;xl(n&&"none"!==n?"dropped":a()?bl():"cancelled")},o=()=>{a()&&xl(bl())},d=["pointermove","pointerdown","mousemove","mousedown"];n.addEventListener("dragover",r,!0),n.addEventListener("drop",i,!0),n.addEventListener("dragend",t,!0);for(const e of d)n.addEventListener(e,o,!0);yl.current={dropped:!1,stop:()=>{n.removeEventListener("dragover",r,!0),n.removeEventListener("drop",i,!0),n.removeEventListener("dragend",t,!0);for(const e of d)n.removeEventListener(e,o,!0)}}},[xl]);G(()=>()=>xl(bl()),[xl]);const Cl=(e,n,l)=>{if("start"!==e)return;const r=bn.get(n);r&&Il(r)&&(Nl(l??null),Ye(e))},Il=e=>!vl||e.private||e.pickDisabledReason?void 0:JSON.stringify({id:e.id,url:e.url,kind:"video"===e.kind?"video":"image",name:e.name}),Dl=me.map(e=>({id:e.id,url:e.thumbUrl??e.url,name:e.name,kind:e.kind,caption:e.name,badges:hl(e),dragData:gl?JSON.stringify(wn.isSelected(e.id)?xn:[e.id]):Il(e),...gl&&Il(e)?{dragAlso:{[_]:Il(e)}}:{}})),Tl=$e?Math.max(72,Math.floor((Ze-24-16-1)/3)):112,Sl=W(null),jl=b({containerRef:Sl,enabled:Ve&&!$e&&me.length>0,selected:wn.selected,setSelection:e=>wn.setSelection(e),clearSelection:wn.clear}),Ll=e=>{if(Qe){const n=bn.get(e);return void(!n||n.private||n.pickDisabledReason||Be?.(n))}const n=yn.indexOf(e);n>=0&&Mn(n)},zl=me.length?null:pe?/* @__PURE__ */Z(s,{variant:"dashed",title:He.noMatches}):pn?/* @__PURE__ */Z(s,{variant:"dashed",title:He.emptyProducts,description:kn(vn)}):hn?/* @__PURE__ */Z(s,{variant:"dashed",title:He.trashEmpty}):!tl||Qe?/* @__PURE__ */Z(s,{variant:"dashed",title:He.emptyFolder}):null,Fl="list"===ke&&me.length>0,Ol=zl??(Fl?/* @__PURE__ */Z("ul",{role:"listbox","aria-multiselectable":Ve||void 0,"aria-label":He.folders,className:"flex flex-col gap-1",children:me.map(e=>/* @__PURE__ */V("li",{role:"option","aria-selected":wn.isSelected(e.id),tabIndex:0,"data-grid-item":"","data-grid-id":e.id,onClick:n=>Sn(e.id,n),onDoubleClick:()=>Ll(e.id),onContextMenu:n=>Bn(e.id,n),draggable:!!Il(e)||void 0,onDragStart:Il(e)?n=>{n.dataTransfer.effectAllowed="link",n.dataTransfer.setData(_,Il(e)),Cl("start",e.id,n.currentTarget)}:void 0,onKeyDown:n=>{"Enter"!==n.key&&" "!==n.key||(n.preventDefault(),Sn(e.id,n))},className:"flex h-12 cursor-pointer items-center gap-3 rounded-md px-2 text-sm rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] "+(wn.isSelected(e.id)?"bg-accent-tint text-blue-700":"text-ink hover:bg-gray-100"),children:[
|
|
8
|
-
/* @__PURE__ */Z("img",{src:e.thumbUrl??e.url,alt:"",className:"h-10 w-10 shrink-0 rounded bg-gray-100 object-contain"}),
|
|
9
|
-
/* @__PURE__ */Z("span",{className:"min-w-0 flex-1 truncate",children:e.name}),
|
|
10
|
-
/* @__PURE__ */Z("span",{className:"flex shrink-0 items-center gap-1",children:fl(e)}),e.sizeLabel&&/* @__PURE__ */Z("span",{className:"w-16 shrink-0 text-right text-xs text-ink-faint",children:e.sizeLabel})]},e.id))}):/* @__PURE__ */Z(g,{items:Dl,readOnly:!tl||Qe,onFiles:tl&&!Qe?e=>Se(e,gn):void 0,accept:Ce,maxSizeBytes:Ie,busy:De,progress:Te,fit:"contain",thumbSize:Tl,dragType:gl?$:vl?_:void 0,onDragOutChange:vl?(e,n,l)=>Cl(e,n,l):void 0,selected:wn.selected,onItemClick:Sn,onItemDoubleClick:Ll,onItemContextMenu:Ve?Bn:void 0,menuOnMedia:Ve})),El=h({count:xn.length,kind:En(xn),targets:On({kind:"files",ids:xn}),onPick:e=>ze?.({kind:"files",ids:xn},e.key===m?null:e.key)}),Al=U({variant:"secondary",size:"sm"}),Ml=/* @__PURE__ */Z(O,{align:"start",triggerClassName:Al,trigger:/* @__PURE__ */V(X,{children:[re.folder,He.moveTo]}),items:El,disabled:!!Ne.move}),Pl=Ve&&xn.length>1&&!pn?/* @__PURE__ */V("div",{"data-media-bulk":"",className:"flex flex-wrap items-center gap-2 rounded-lg border border-line px-3 py-2",children:[
|
|
11
|
-
/* @__PURE__ */Z(x,{checked:xn.length===me.length,indeterminate:xn.length<me.length,onChange:e=>e?wn.selectAll():wn.clear(),label:He.selected(xn.length)}),/* @__PURE__ */V(X,hn?{children:[Ee&&/* @__PURE__ */Z(A,{variant:"secondary",size:"sm",leftIcon:re.undo,onClick:()=>Ee(xn),...sl(Ne.restore),children:He.restore}),Ae&&/* @__PURE__ */Z(A,{variant:"secondary-danger",size:"sm",onClick:()=>Ae(xn),...sl(Ne.deleteForever),children:He.deleteForever})]}:{children:[ze&&Ml,Le&&/* @__PURE__ */Z(A,{variant:"secondary",size:"sm",leftIcon:re.edit,disabled:!0,children:He.rename}),Fe&&/* @__PURE__ */Z(A,{variant:"secondary",size:"sm",leftIcon:re.trash,onClick:()=>Fe({kind:"files",ids:xn}),...sl(Ne.trash),children:He.moveFilesToTrash(xn.length)})]}),
|
|
12
|
-
/* @__PURE__ */Z(A,{variant:"ghost",size:"sm",onClick:wn.clear,children:He.clearSelection})]}):null,Rl=e=>{const n=[],l=(e,l,r)=>{null!=r&&""!==r&&n.push({key:e,label:l,value:r})},r="file"===jn?.kind&&jn.id===e.id;l("name",He.name,r?/* @__PURE__ */Z(f,{value:e.name,label:He.fileName,onDone:zn}):e.name),l("type",He.type,e.typeLabel),l("size",He.size,e.sizeLabel),l("resolution",He.resolution,e.resolution),pn?(l("design",He.design,e.design),l("finish",He.finish,e.finish),l("angle",He.angleLug,e.angleLug),l("owner",He.owner,e.owner)):(l("added",He.addedBy,e.addedBy),l("folder",He.folder,e.folderPath)),l("used",He.usedIn,null!=e.usedCount?He.places(e.usedCount):void 0);const a=p({kind:"files",ids:[e.id]},Pn).find(e=>"submenu"===e.type);/* @__PURE__ */
|
|
13
|
-
return V("div",{"data-media-details":"",className:"flex flex-col gap-3",children:[
|
|
14
|
-
/* @__PURE__ */Z("img",{src:e.url,alt:e.name,className:"aspect-square w-full rounded-lg bg-gray-100 object-contain"}),pn&&/* @__PURE__ */Z(D,{tone:"neutral",title:He.readOnlyBadge,children:kn(vn)}),
|
|
15
|
-
/* @__PURE__ */Z(c,{size:"sm",columns:1,items:n}),!hn&&/* @__PURE__ */V("div",{className:"flex gap-2",children:[
|
|
16
|
-
/* @__PURE__ */Z("div",{style:{flex:"1 1 0",minWidth:0},children:/* @__PURE__ */Z(T,{size:"sm",readOnly:!0,value:e.url,"aria-label":He.fileUrl,onFocus:e=>e.currentTarget.select()})}),
|
|
17
|
-
/* @__PURE__ */Z(A,{variant:"secondary",size:"sm",leftIcon:re.copy,onClick:()=>Pn.copyUrl(e.id),children:He.copyUrl})]}),fn&&Ve&&/* @__PURE__ */V("div",{className:"flex flex-wrap gap-2",children:[Pe&&/* @__PURE__ */Z(A,{variant:"secondary",size:"sm",leftIcon:re.swap,onClick:()=>Pe(e.id),...sl(Ne.replace),children:He.replace}),Re&&/* @__PURE__ */Z(A,{variant:"secondary",size:"sm",leftIcon:re.crop,onClick:()=>Re(e.id),children:He.cropEdit}),ze&&"submenu"===a?.type&&/* @__PURE__ */Z(O,{align:"start",triggerClassName:Al,trigger:/* @__PURE__ */V(X,{children:[re.folder,He.moveTo]}),items:a.items,disabled:!!Ne.move}),Le&&/* @__PURE__ */Z(A,{variant:"secondary",size:"sm",leftIcon:re.edit,onClick:()=>Ln({kind:"file",id:e.id}),...sl(Ne.rename),children:He.rename}),Fe&&/* @__PURE__ */Z(E,{"aria-label":He.moveToTrash,size:"sm",onClick:()=>Fe({kind:"files",ids:[e.id]}),disabledReason:Ne.trash,"aria-disabled":!!Ne.trash||void 0,children:re.trash})]}),hn&&Ve&&/* @__PURE__ */V("div",{className:"flex flex-wrap gap-2",children:[Ee&&/* @__PURE__ */Z(A,{variant:"primary",size:"sm",leftIcon:re.undo,onClick:()=>Ee([e.id]),...sl(Ne.restore),children:He.restore}),Ae&&/* @__PURE__ */Z(A,{variant:"danger",size:"sm",onClick:()=>Ae([e.id]),...sl(Ne.deleteForever),children:He.deleteForever})]}),pn&&Ue&&/* @__PURE__ */Z(A,{variant:"secondary",size:"sm",leftIcon:re.external,onClick:()=>Ue({kind:"render",id:e.id}),children:He.openInDesign}),xe&&/* @__PURE__ */Z(v,{items:xe})]})},Ul=Nn?Nn.private?He.privateNoPick:Nn.pickDisabledReason:void 0,Bl=Qe?/* @__PURE__ */V("div",{"data-media-picker-footer":"",className:"flex flex-wrap items-center justify-between gap-2 border-t border-line px-3 py-2",children:[
|
|
18
|
-
/* @__PURE__ */Z("span",{className:"min-w-0 truncate text-sm text-ink-faint",children:Nn?He.oneChosen(Nn.name):He.noneChosen}),
|
|
19
|
-
/* @__PURE__ */V("div",{className:"flex gap-2",children:[Ke&&/* @__PURE__ */Z(A,{variant:"secondary",size:"sm",onClick:Ke,children:He.cancel}),
|
|
20
|
-
/* @__PURE__ */Z(A,{variant:"primary",size:"sm",disabled:!Nn,...sl(Ul),onClick:()=>{Nn&&!Ul&&Be?.(Nn)},children:He.chooseImage})]})]}):null,Kl=Ve&&!!Nn,Wl=Math.max(240,Math.min(480,Ze-360-(Kl?300:0))),Yl=Math.min(qe,Wl),Gl=/* @__PURE__ */V("div",{className:"flex min-w-0 flex-col gap-3",children:[We&&/* @__PURE__ */Z(D,{tone:"neutral",children:We}),
|
|
21
|
-
/* @__PURE__ */V("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[
|
|
22
|
-
/* @__PURE__ */Z(u,{items:al}),cl]}),pl,Pl,
|
|
23
|
-
/* @__PURE__ */V("div",{ref:Sl,className:"relative",onPointerDown:jl.onPointerDown,onKeyDown:e=>{Ve&&(e.ctrlKey||e.metaKey)&&"a"===e.key.toLowerCase()?(e.preventDefault(),wn.selectAll()):"Escape"===e.key&&wn.size&&wn.clear()},children:[Ol,
|
|
24
|
-
/* @__PURE__ */Z(r,{rect:jl.rect})]}),tl&&/* @__PURE__ */Z("input",{...ol.inputProps}),
|
|
25
|
-
/* @__PURE__ */Z(j,{rejections:ol.rejections})]});/* @__PURE__ */
|
|
26
|
-
return V("div",{ref:Xe,"data-media-library":"","data-layout":$e?"phone":"wide",className:`flex h-full min-h-0 min-w-0 flex-col ${Ge}`.trim(),children:[/* @__PURE__ */V("div",$e?{className:"flex flex-col gap-3 p-3",children:[rl,Gl]}:{className:"flex min-h-0 min-w-0 flex-1",children:[
|
|
27
|
-
/* @__PURE__ */V("div",{"data-media-folder-column":"",className:"relative flex shrink-0 border-r border-line",style:{width:Yl},children:[
|
|
28
|
-
/* @__PURE__ */Z("div",{id:en,className:"min-w-0 flex-1 overflow-y-auto p-3",style:{"--rosh-tree-ground":"var(--surface)"},children:rl}),
|
|
29
|
-
/* @__PURE__ */Z(t,{side:"left",width:Yl,onResize:_e,min:240,max:Wl,defaultWidth:280,controls:en})]}),
|
|
30
|
-
/* @__PURE__ */Z("div",{className:"min-w-0 flex-1 overflow-y-auto p-3",children:Gl}),Kl&&/* @__PURE__ */Z("div",{className:"shrink-0 overflow-y-auto border-l border-line p-3",style:{width:300},children:Rl(Nn)})]}),Bl,$e&&/* @__PURE__ */Z(d,{open:Kl,onClose:wn.clear,side:"bottom",title:Nn?.name,children:Nn&&Rl(Nn)}),Un.state&&/* @__PURE__ */Z(I,{...Un.props,items:Rn(Un.state.data)}),null!=An&&me.length>0&&/* @__PURE__ */Z(o,{images:me.map(e=>({url:e.url,caption:e.name})),startIndex:Math.min(An,me.length-1),onClose:()=>Mn(null)})]})}export{$ as MEDIA_FILES_DRAG_TYPE,_ as MEDIA_FILE_DRAG_TYPE,q as MEDIA_FOLDER_DRAG_TYPE,ie as MediaLibrary,ee as readMediaFileDrag};
|