efficient-shell 4.175.0 → 4.179.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.
Files changed (70) hide show
  1. package/README.md +426 -6
  2. package/dist/{Browser-PZIVSYLM.js → Browser-LZMLL4CZ.js} +14 -14
  3. package/dist/Calculator-R5OEHQ67.js +29 -0
  4. package/dist/ConfirmDialog-CMNQZQA3.js +1 -0
  5. package/dist/{CurrencyConverter-4RZZ5STO.js → CurrencyConverter-AMXUOQR2.js} +7 -7
  6. package/dist/{Documents-ERSFDOCV.js → Documents-M4HKZAPJ.js} +12 -12
  7. package/dist/{Files-3J2DW6ET.js → Files-OY5GKCXA.js} +24 -24
  8. package/dist/Notepad-JLDNTMVB.js +25 -0
  9. package/dist/PdfViewer-3SC3LE4U.js +1 -0
  10. package/dist/{PomodoroTimer-D6VQJICB.js → PomodoroTimer-LE6J2KUU.js} +24 -24
  11. package/dist/Preview-2KHLL6NP.js +188 -0
  12. package/dist/{Sidebar-2BZJ2MEI.js → Sidebar-BQ4P5LBI.js} +25 -25
  13. package/dist/Spreadsheet-B5Z5MSX4.js +37 -0
  14. package/dist/{Stock-KRPM6NSB.js → Stock-GWVG2INU.js} +4 -4
  15. package/dist/{Weather-HRH4JHTF.js → Weather-APBCG4TO.js} +13 -13
  16. package/dist/{WorldClock-OUSV52XM.js → WorldClock-2LMZYKWR.js} +7 -7
  17. package/dist/apps/index.d.ts +4 -2
  18. package/dist/apps/index.js +1 -1
  19. package/dist/bin/ui-check.js +1 -1
  20. package/dist/{chunk-L3U2R7DH.js → chunk-3DGTIWZP.js} +1 -1
  21. package/dist/{chunk-6BZCJQCT.js → chunk-47VJNVB6.js} +643 -643
  22. package/dist/{chunk-KS7OSQ3Y.js → chunk-5ZDM6WIC.js} +11 -11
  23. package/dist/{chunk-E2D54MVV.js → chunk-6CFBF543.js} +2 -2
  24. package/dist/{chunk-LCTSBQBJ.js → chunk-7WZEFHPS.js} +1 -1
  25. package/dist/{chunk-PGVUO7GB.js → chunk-AA4TMQOS.js} +3 -3
  26. package/dist/chunk-AZURXTRB.js +1 -0
  27. package/dist/chunk-C3QOHMR6.js +1 -0
  28. package/dist/{chunk-YJRC6IKD.js → chunk-CIXQKCFA.js} +4 -4
  29. package/dist/chunk-CZK2VKIO.js +9 -0
  30. package/dist/{chunk-KG4NRNFS.js → chunk-FORN7LG7.js} +1 -1
  31. package/dist/chunk-J3LIIIHJ.js +1 -0
  32. package/dist/chunk-KDRAU4XQ.js +27 -0
  33. package/dist/{chunk-ZOPYAOUP.js → chunk-KVOFUFPP.js} +1 -1
  34. package/dist/{chunk-KDHXRJIX.js → chunk-LK7V32MR.js} +1 -1
  35. package/dist/{chunk-GCO3A63X.js → chunk-N6STBYXR.js} +111 -111
  36. package/dist/{chunk-54OP3M3K.js → chunk-NHIGOEZF.js} +1 -1
  37. package/dist/{chunk-EXXHI5DO.js → chunk-OGXU7QFW.js} +2 -2
  38. package/dist/{chunk-JOOXVX4A.js → chunk-PE4F4MJE.js} +4 -4
  39. package/dist/chunk-R7EBJKN2.js +69 -0
  40. package/dist/{chunk-TMQEH7WA.js → chunk-SVO3ES2E.js} +1 -1
  41. package/dist/{chunk-RKR5V4QR.js → chunk-T4CFSGSL.js} +6 -6
  42. package/dist/{chunk-D3UQLWIZ.js → chunk-UAIVAA5X.js} +11 -11
  43. package/dist/{chunk-REXHKIIJ.js → chunk-WNEO7TSP.js} +1 -1
  44. package/dist/{chunk-XJYXKO7K.js → chunk-ZAE6ROV7.js} +15 -15
  45. package/dist/file-intake/index.js +1 -1
  46. package/dist/i18n/index.d.ts +79 -0
  47. package/dist/i18n/index.js +2 -0
  48. package/dist/{index-DIaav9a1.d.ts → index-DcUj0nXY.d.ts} +39 -927
  49. package/dist/index.d.ts +3 -2
  50. package/dist/index.js +656 -656
  51. package/dist/locales/zh-Hans.d.ts +59 -0
  52. package/dist/locales/zh-Hans.js +1 -0
  53. package/dist/map/index.js +3 -3
  54. package/dist/page-tabs/index.js +5 -5
  55. package/dist/pdf/index.js +1 -1
  56. package/dist/strings-ZbotP_I6.d.ts +1292 -0
  57. package/dist/ui/index.d.ts +2 -1
  58. package/dist/ui/index.js +1 -1
  59. package/package.json +21 -1
  60. package/dist/Calculator-6BJVESFN.js +0 -29
  61. package/dist/ConfirmDialog-6PVUVYXZ.js +0 -1
  62. package/dist/Notepad-MVMFJE2F.js +0 -25
  63. package/dist/PdfViewer-RKRGO7Q2.js +0 -1
  64. package/dist/Preview-VIHMVC7B.js +0 -187
  65. package/dist/Spreadsheet-KTB6JLBV.js +0 -37
  66. package/dist/chunk-3YTHR7IC.js +0 -1
  67. package/dist/chunk-7LAPNAKS.js +0 -1
  68. package/dist/chunk-FEK5ELXS.js +0 -27
  69. package/dist/chunk-VIIBZ6DE.js +0 -69
  70. package/dist/chunk-VRLHUZSC.js +0 -9
@@ -1,7 +1,8 @@
1
- export { A as ALT, b as ALT_SHIFT_D, c as ALT_SHIFT_E, d as ALT_SHIFT_N, e as APP_UPDATE_POLL_MS, f as Accordion, g as AccordionItem, h as AccordionProps, i as Align, j as AngleScale, k as AppUpdateBanner, l as AppUpdateBannerProps, m as AttachButton, n as AttachButtonProps, o as AttachmentDropZone, p as AttachmentDropZoneProps, q as AttachmentList, r as AttachmentListProps, s as AuthScreen, t as AuthScreenProps, u as Avatar, v as AvatarGroup, w as AvatarGroupProps, x as AvatarProps, y as AvatarSize, z as AvatarStatus, B as BackgroundVariant, D as BandScale, E as Banner, F as BannerEmphasis, G as BannerProps, H as BannerTone, I as BarChart, J as BarChartProps, K as BoxPlotBox, L as BoxPlotChart, M as BoxPlotChartProps, N as BrandAssetEditor, O as BrandAssetEditorProps, Q as BrandAssetPreview, R as BrandMark, T as BrandMarkProps, U as BrandMarkSlot, V as BrandMarkSurface, W as BrandMarkTreatment, X as BreadcrumbItem, Y as Breadcrumbs, Z as BreadcrumbsProps, _ as BudgetBar, $ as BudgetBarProps, a0 as BudgetState, a1 as Button, a2 as ButtonClassesOptions, a3 as ButtonProps, a4 as ButtonSize, a5 as ButtonVariant, a6 as CHART_INK, a7 as CMD_A, a8 as CMD_DOT, a9 as CMD_ENTER, aa as CMD_K, ab as CMD_S, ac as CORNERS, ad as Calendar, ae as CalendarMode, af as CalendarProps, ag as Candle, ah as CandlestickChart, ai as CandlestickChartProps, aj as Card, ak as CardPadding, al as CardProps, am as CartesianPlot, an as CartesianPlotProps, ao as CellStyle, ap as ChartBackgroundVariant, aq as ChartBrush, ar as ChartBrushProps, as as ChartCurve, at as ChartDefs, au as ChartDefsProps, av as ChartDot, aw as ChartDotProps, ax as ChartDotVariant, ay as ChartFillVariant, az as ChartFrame, aA as ChartFrameProps, aB as ChartHighlightProvider, aC as ChartLegendEntry, aD as ChartLegendSwatch, aE as ChartRange, aF as ChartReferenceLine, aG as ChartRevealDirection, aH as ChartSkeleton, aI as ChartSkeletonProps, aJ as ChartStatusTone, aK as ChartStrokeVariant, aL as ChartTooltip, aM as ChartTooltipProps, aN as ChartTooltipRow, aO as ChatTemplate, aP as Checkbox, aQ as CheckboxProps, aR as CheckoutTemplate, aS as ChordChart, aT as ChordChartProps, aU as ColorPicker, aV as ColorPickerPanel, aW as ColorPickerPanelProps, aX as ColorPickerProps, aY as ColorPreset, aZ as ColorSwatch, a_ as ColorSwatchProps, a$ as ColorSwatchSize, b0 as ColoredBadge, b1 as ColoredBadgeProps, b2 as ColumnChart, b3 as ColumnChartProps, C as ColumnDef, b4 as ColumnSeries, b5 as ComposerAttachments, b6 as ComposerAttachmentsProps, b7 as ConfirmProvider, b8 as ContainerFillChart, b9 as ContainerFillChartProps, ba as ContainerFillItem, bb as ContextMenu, bc as ContextMenuPoint, bd as ContextMenuProps, be as ContextMenuState, bf as Corners, bg as CountBadge, bh as CountBadgeProps, bi as CountBadgeTone, bj as Curve, bk as DAY_MS, bl as DEFAULT_SHELL_STRINGS, bm as DashboardTemplate, bn as DataTable, bo as DataTableColumn, bp as DataTableColumnGroup, bq as DataTableHeader, br as DataTablePage, bs as DataTableProps, bt as DataTableRowLink, bu as DataTableRowProps, bv as DatePicker, bw as DatePickerProps, bx as DateRangePicker, by as DateRangePickerProps, bz as DateTimePicker, bA as DateTimePickerProps, bB as DescriptionColumns, bC as DescriptionItem, bD as DescriptionList, bE as DescriptionListProps, bF as Dialog, bG as DialogProps, bH as DialogSize, bI as Divider, bJ as DividerProps, bK as DividerSpacing, bL as DonutChart, bM as DonutChartProps, bN as DonutSegment, bO as Drawer, bP as DrawerProps, bQ as DrawerSide, bR as DrawerSize, bS as DropdownMenu, bT as DropdownMenuAlign, bU as DropdownMenuCheckboxItem, bV as DropdownMenuDividerItem, bW as DropdownMenuEntry, bX as DropdownMenuItem, bY as DropdownMenuLabelItem, bZ as DropdownMenuLinkItem, b_ as DropdownMenuProps, b$ as DropdownMenuRadioItem, c0 as DropdownMenuSide, c1 as DropdownPositionOptions, c2 as ENGLISH, c3 as ENTER, c4 as EditableGrid, c5 as EditableGridProps, c6 as EmailTemplate, c7 as EmptyState, c8 as EmptyStateProps, c9 as EmptyValue, ca as EmptyValueProps, cb as ErrorBoundary, cc as ErrorBoundaryProps, cd as ErrorPage, ce as ErrorPageProps, cf as FileIntake, cg as FilePicker, ch as FilePickerProps, ci as FillVariant, cj as FormError, ck as FormErrorSummary, cl as FormErrorSummaryProps, cm as FormField, cn as FormFieldProps, co as FormLayoutPage, cp as FunnelChart, cq as FunnelChartProps, cr as FunnelStage, cs as GLASS_DIVIDER, cu as GROUP_COLORS, cv as GROUP_COLORS_SOLID, cw as GalleryTemplate, cx as Gap, cy as GlassOptions, cz as GlobalSearch, cA as GlobalSearchProps, cB as Grid, cC as GridCols, cD as GridColumn, cE as GridProps, cF as HeatmapChart, cG as HeatmapChartProps, cH as HelpCenter, cI as HelpCenterDoc, cJ as HelpCenterProps, cK as HexInput, cL as HistogramBin, cM as HistogramChart, cN as HistogramChartProps, cO as Hsv, cP as INPUT_BASE, cQ as INPUT_SIZES, cR as IconButton, cS as IconButtonClassesOptions, cT as IconButtonProps, cU as IconRail, cV as IconRailButton, cW as IconRailButtonProps, cX as IconRailLabels, cY as IconRailLabelsShown, cZ as IconRailOrientation, c_ as IconRailProps, c$ as Inline, d0 as InlineProps, d1 as Input, d2 as InputNumber, d3 as InputNumberProps, d4 as InputProps, d5 as InputSize, d6 as Justify, d7 as Kanban, d8 as KanbanColumn, d9 as KanbanProps, da as Kbd, db as KbdProps, dc as KbdSize, dd as Label, de as LabelClassesOptions, df as LabelProps, dg as LadderScale, dh as LanguagePanel, di as LanguagePanelProps, dj as LanguageSelect, dk as LanguageSelectProps, dl as LineChart, dm as LineChartProps, dn as LineChartSeries, dp as LinearScale, dq as ListDrop, dr as ListFooter, ds as ListLoadError, dt as ListLoadErrorProps, du as ListMove, dv as ListRow, dw as ListRowProps, dx as LoadingSpinner, dy as LoadingSpinnerProps, dz as MAX_FRACTION_DIGITS, dA as MENU_MAX_HEIGHT, dB as MOD, dC as MOTION, dD as Markdown, dD as MarkdownLite, dE as MarkdownLiteProps, dE as MarkdownProps, dF as MediaUploadField, dG as MediaUploadFieldProps, dH as MediaUploadGrid, dI as MediaUploadGridItem, dJ as MediaUploadGridProps, dK as MenuPos, dL as Meter, dM as MeterProps, dN as MetricBar, dO as MetricBarProps, dP as Milestone, dQ as MilestoneKind, dR as MilestoneTimeline, dS as MilestoneTimelineProps, dU as NEXT_CHUNK_PATH_PREFIX, dV as NativeSelect, dW as NumericKeypad, dX as NumericKeypadProps, dY as OVERLAY_OPEN_EVENT, dZ as POPUP_MAX_WIDTH, d_ as POST_PRODUCTION_STATUSES, d$ as PageHeader, e0 as PageHeaderProps, P as PaginatedResponse, e1 as Pagination, e2 as PaginationProps, e3 as PaperclipGlyph, e4 as Paragraph, e5 as ParagraphProps, e6 as PieChart, e7 as PieChartProps, e8 as PieSegment, e9 as PlotGeometry, ea as Point, eb as Popover, ec as PopoverAlign, ed as PopoverProps, ee as PopoverRenderProps, ef as PopoverSide, eg as PopupMenu, eh as PopupMenuDivider, ei as PopupMenuItem, ej as PopupMenuItemProps, ek as PopupMenuLabel, el as PopupMenuProps, em as PopupSubmenu, en as PopupSubmenuProps, eo as PortalBrandingContextValue, ep as PortalBrandingProvider, eq as PortalBrandingProviderProps, er as ProductionTimeline, es as ProductionTimelineProps, et as ProductionTimelineSnapshot, eu as ProgressItem, ev as PublicPortal, ew as PublicPortalBranding, ex as RADAR_SERIES_CAP, ey as RadarAxis, ez as RadarChart, eA as RadarChartProps, eB as RadarSeries, eC as RadialBarChart, eD as RadialBarChartProps, eE as RadialBarRow, eF as Radio, eG as RadioGroup, eH as RadioGroupOption, eI as RadioGroupOrientation, eJ as RadioGroupProps, eK as RadioProps, eL as Range, eM as RangeChart, eN as RangeChartProps, eO as RangeRow, eP as RankedBars, eQ as RankedBarsProps, eR as RankedBarsRow, eS as ResizeHandle, eT as ResizeHandleProps, eU as ResizeHandleSide, eV as ResolvedPortalBrandAsset, eW as Result, eX as ResultProps, eY as ResultStatus, eZ as RevealDirection, e_ as SCATTER_SERIES_CAP, e$ as SERIES_SLOT_COUNT, f0 as SERIES_VARS, f1 as SHELL_LANGUAGE_STORAGE_KEY, f2 as SHIFT, f3 as STAGES, f4 as STALE_CHUNK_RELOAD_COOLDOWN_MS, f5 as STALE_CHUNK_RELOAD_KEY, f6 as STATUS_VARS, f7 as SankeyChart, f8 as SankeyChartProps, f9 as SankeyLink, fa as SankeyNode, fb as ScatterChart, fc as ScatterChartProps, fd as ScatterPoint, fe as ScatterSeries, S as SearchConfig, ff as SearchListRoute, fg as SearchProvider, fh as SearchQuickAction, fi as SearchResponse, fj as SearchResult, fk as SearchableItem, fl as SearchableOption, fm as SearchableOptionGroup, fn as SearchableSelect, fo as SearchableSelectBaseProps, fp as SearchableSelectMultipleProps, fq as SearchableSelectProps, fr as Segmented, fs as SegmentedOption, ft as SegmentedProps, fu as SegmentedSize, fv as Select, fw as SelectBaseProps, fx as SelectItem, fy as SelectMultipleProps, fz as SelectOption, fA as SelectOptionGroup, fB as SelectProps, fC as SemanticGroup, fD as SettingRow, fE as SettingRowProps, fF as SeverityTone, fI as ShellLanguage, fJ as ShellLanguageProvider, fK as ShellLanguageState, fL as ShellPrefsAdapter, fM as ShellPrefsProvider, fN as ShellStrings, fO as ShellStringsOverride, fP as ShellStringsProvider, fQ as SidebarActionButton, fR as SidebarActionButtonProps, fS as SidebarGroupLabel, fT as SidebarGroupLabelProps, fU as SidebarLayout, fV as SidebarLayoutProps, fW as SidebarNavGroup, fX as SidebarNavGroupProps, fY as SidebarNavItem, fZ as SidebarNavItemProps, f_ as Skeleton, f$ as SkeletonProps, g0 as SkeletonVariant, g1 as Slider, g2 as SliderProps, g3 as SliderSize, g4 as Snippet, g5 as SnippetProps, g6 as SnippetSize, g7 as SnippetVariant, a as SortState, g8 as SortableList, g9 as SortableListProps, ga as SortableListSpacing, gb as Sparkline, gc as SparklineProps, gd as Stack, ge as StackProps, gf as StaleChunkReloadOptions, gg as StatCard, gh as StatCardProps, gi as StatTile, gj as StatTileProps, gk as Statistic, gl as StatisticProps, gm as StatisticSize, gn as StatisticTone, go as StatusBadge, gp as StatusBadgeProvider, gq as StatusEmphasis, gr as StepItem, gs as Stepper, gt as StepperProps, gu as StrokeVariant, gv as SunburstChart, gw as SunburstChartProps, gx as SunburstNode, gy as Switch, gz as SwitchProps, gA as SwitchSize, gB as TabItem, gC as Tabs, gD as TabsProps, gE as TagInput, gF as TagInputOption, gG as TagInputProps, gH as Text, gI as TextProps, gJ as TextSize, gK as TextTone, gL as TextWeight, gM as Textarea, gN as TextareaProps, gO as Theme, gP as TileButton, gQ as TileButtonProps, gR as TileSize, gS as TimeAgo, gT as TimeAgoProps, gU as TimePicker, gV as TimePickerProps, gW as TimeSeriesChart, gX as TimeSeriesChartProps, gY as TimeSeriesSeries, gZ as TimelineMarker, g_ as TimelineMarkerKind, g$ as TimelineReport, h0 as TimelineScrubProgress, h1 as TimelineTrack, h2 as TimelineTrackItem, h3 as TimelineTrackKind, h4 as TimelineTrackPending, h5 as TimelineTrackPhase, h6 as TimelineTrackPlayback, h7 as TimelineTrackProps, h8 as TimelineTrackThumb, h9 as Title, ha as TitleLevel, hb as TitleProps, hc as ToastOptions, hd as ToastPlacement, he as Tooltip, hf as TooltipProps, hg as TopNav, hh as TopNavItem, hi as TopNavProps, hj as Tree, hk as TreeDrop, hl as TreeEmptySlot, hm as TreeEmptySlotProps, hn as TreeGroup, ho as TreeGroupLabel, hp as TreeGroupProps, hq as TreeMove, hr as TreeProps, hs as TreeRow, ht as TreeRowProps, hu as TreeSeam, hv as TreeSeamProps, hw as TreemapChart, hx as TreemapChartProps, hy as TreemapItem, hz as TreemapTile, hA as UseAppUpdateOptions, hB as UseContextMenu, hC as UseProductionTimelineOpts, hD as VERSION, hE as VITE_PRELOAD_ERROR_EVENT, hF as WaterfallChart, hG as WaterfallChartProps, hH as WaterfallStep, hI as ZLayer, hJ as Z_LAYERS, hK as angleScale, hL as appendKey, hM as applyCorners, hN as applyIconSet, hO as applyThemePrefs, hP as arcPath, hQ as areaBetween, hR as areaFrom, hS as autoHighlightIndex, hT as backspace, hU as bandScale, hV as binValues, hW as budgetState, hX as bumpPath, hY as buttonClasses, hZ as calcOverall, h_ as calcReportOverall, h$ as colorFill, i0 as colorSwatchClasses, i1 as confirm, i2 as confirmDestructive, i3 as curvePath, i4 as dashFor, i6 as dismissPopups, i7 as fillFor, i8 as fillId, i9 as fmtSliderDate, ia as fromDateKey, ib as glassStyle, ic as glowId, id as groundId, ie as groupColors, ig as hexToHsv, ih as highlightOpacity, ii as hsvToHex, ij as iconButtonClasses, ik as inputClasses, il as installStaleChunkReload, im as isMac, io as isSeverityTone, ip as isStaleChunkError, ir as labelClasses, is as ladderScale, it as leavesContextMenuAlone, iu as linearPath, iv as linearScale, iw as logScale, ix as maskId, iy as matchShellLanguage, iz as mediaFileName, iA as monotonePath, iB as niceMax, iC as openGlobalSearch, iD as parseHexColor, iE as polygonPoints, iF as popupBounds, iG as prompt, iH as pushRecentSearch, iI as radiusScale, iJ as readSavedShellLanguage, iK as registerModalEscapeInterceptor, iL as resolveBrandMarkTreatment, iM as resolveCorners, iN as resolvePortalBrandAsset, iO as resolveSeriesColor, iP as resolveShellLanguage, iQ as resolveTheme, iR as sanitizeRecentSearches, iS as saveShellLanguage, iT as seriesColor, iU as severityOf, iV as splinePath, iW as squarify, iX as stagger, iY as stepPath, iZ as tabButtonId, i_ as tabPanelId, i$ as toDateKey, j0 as toDayMs, j1 as toISODate, j2 as toast, j3 as useAppUpdate, j4 as useClickOutside, j5 as useConfirm, j6 as useContextMenu, j7 as useDebouncedValue, j8 as useDropdownPosition, j9 as useFocusTrap, ja as useHighlight, jb as useIsMobile, jc as useLocalStoragePrefs, jd as usePlotWidth, je as usePortalBranding, jf as useProductionTimeline, jg as useScrollLock, jh as useShellLanguage, ji as useShellLocale, jj as useShellPrefs, jk as useShellStrings, jl as useStatusLabel, jm as useTheme } from '../index-DIaav9a1.js';
1
+ export { A as ALT, b as ALT_SHIFT_D, c as ALT_SHIFT_E, d as ALT_SHIFT_N, e as APP_UPDATE_POLL_MS, f as Accordion, g as AccordionItem, h as AccordionProps, i as Align, j as AngleScale, k as AppUpdateBanner, l as AppUpdateBannerProps, m as AttachButton, n as AttachButtonProps, o as AttachmentDropZone, p as AttachmentDropZoneProps, q as AttachmentList, r as AttachmentListProps, s as AuthScreen, t as AuthScreenProps, u as Avatar, v as AvatarGroup, w as AvatarGroupProps, x as AvatarProps, y as AvatarSize, z as AvatarStatus, B as BackgroundVariant, D as BandScale, E as Banner, F as BannerEmphasis, G as BannerProps, H as BannerTone, I as BarChart, J as BarChartProps, K as BoxPlotBox, L as BoxPlotChart, M as BoxPlotChartProps, N as BrandAssetEditor, O as BrandAssetEditorProps, Q as BrandAssetPreview, R as BrandMark, T as BrandMarkProps, U as BrandMarkSlot, V as BrandMarkSurface, W as BrandMarkTreatment, X as BreadcrumbItem, Y as Breadcrumbs, Z as BreadcrumbsProps, _ as BudgetBar, $ as BudgetBarProps, a0 as BudgetState, a1 as Button, a2 as ButtonClassesOptions, a3 as ButtonProps, a4 as ButtonSize, a5 as ButtonVariant, a6 as CHART_INK, a7 as CMD_A, a8 as CMD_DOT, a9 as CMD_ENTER, aa as CMD_K, ab as CMD_S, ac as CORNERS, ad as Calendar, ae as CalendarMode, af as CalendarProps, ag as Candle, ah as CandlestickChart, ai as CandlestickChartProps, aj as Card, ak as CardPadding, al as CardProps, am as CartesianPlot, an as CartesianPlotProps, ao as CellStyle, ap as ChartBackgroundVariant, aq as ChartBrush, ar as ChartBrushProps, as as ChartCurve, at as ChartDefs, au as ChartDefsProps, av as ChartDot, aw as ChartDotProps, ax as ChartDotVariant, ay as ChartFillVariant, az as ChartFrame, aA as ChartFrameProps, aB as ChartHighlightProvider, aC as ChartLegendEntry, aD as ChartLegendSwatch, aE as ChartRange, aF as ChartReferenceLine, aG as ChartRevealDirection, aH as ChartSkeleton, aI as ChartSkeletonProps, aJ as ChartStatusTone, aK as ChartStrokeVariant, aL as ChartTooltip, aM as ChartTooltipProps, aN as ChartTooltipRow, aO as ChatTemplate, aP as Checkbox, aQ as CheckboxProps, aR as CheckoutTemplate, aS as ChordChart, aT as ChordChartProps, aU as ColorPicker, aV as ColorPickerPanel, aW as ColorPickerPanelProps, aX as ColorPickerProps, aY as ColorPreset, aZ as ColorSwatch, a_ as ColorSwatchProps, a$ as ColorSwatchSize, b0 as ColoredBadge, b1 as ColoredBadgeProps, b2 as ColumnChart, b3 as ColumnChartProps, C as ColumnDef, b4 as ColumnSeries, b5 as ComposerAttachments, b6 as ComposerAttachmentsProps, b7 as ConfirmProvider, b8 as ContainerFillChart, b9 as ContainerFillChartProps, ba as ContainerFillItem, bb as ContextMenu, bc as ContextMenuPoint, bd as ContextMenuProps, be as ContextMenuState, bf as Corners, bg as CountBadge, bh as CountBadgeProps, bi as CountBadgeTone, bj as Curve, bk as DAY_MS, bl as DashboardTemplate, bm as DataTable, bn as DataTableColumn, bo as DataTableColumnGroup, bp as DataTableHeader, bq as DataTablePage, br as DataTableProps, bs as DataTableRowLink, bt as DataTableRowProps, bu as DatePicker, bv as DatePickerProps, bw as DateRangePicker, bx as DateRangePickerProps, by as DateTimePicker, bz as DateTimePickerProps, bA as DescriptionColumns, bB as DescriptionItem, bC as DescriptionList, bD as DescriptionListProps, bE as Dialog, bF as DialogProps, bG as DialogSize, bH as Divider, bI as DividerProps, bJ as DividerSpacing, bK as DonutChart, bL as DonutChartProps, bM as DonutSegment, bN as Drawer, bO as DrawerProps, bP as DrawerSide, bQ as DrawerSize, bR as DropdownMenu, bS as DropdownMenuAlign, bT as DropdownMenuCheckboxItem, bU as DropdownMenuDividerItem, bV as DropdownMenuEntry, bW as DropdownMenuItem, bX as DropdownMenuLabelItem, bY as DropdownMenuLinkItem, bZ as DropdownMenuProps, b_ as DropdownMenuRadioItem, b$ as DropdownMenuSide, c0 as DropdownPositionOptions, c1 as ENGLISH, c2 as ENTER, c3 as EditableGrid, c4 as EditableGridProps, c5 as EmailTemplate, c6 as EmptyState, c7 as EmptyStateProps, c8 as EmptyValue, c9 as EmptyValueProps, ca as ErrorBoundary, cb as ErrorBoundaryProps, cc as ErrorPage, cd as ErrorPageProps, ce as FileIntake, cf as FilePicker, cg as FilePickerProps, ch as FillVariant, ci as FormError, cj as FormErrorSummary, ck as FormErrorSummaryProps, cl as FormField, cm as FormFieldProps, cn as FormLayoutPage, co as FunnelChart, cp as FunnelChartProps, cq as FunnelStage, cr as GLASS_DIVIDER, ct as GROUP_COLORS, cu as GROUP_COLORS_SOLID, cv as GalleryTemplate, cw as Gap, cx as GlassOptions, cy as GlobalSearch, cz as GlobalSearchProps, cA as Grid, cB as GridCols, cC as GridColumn, cD as GridProps, cE as HeatmapChart, cF as HeatmapChartProps, cG as HelpCenter, cH as HelpCenterDoc, cI as HelpCenterProps, cJ as HexInput, cK as HistogramBin, cL as HistogramChart, cM as HistogramChartProps, cN as Hsv, cO as INPUT_BASE, cP as INPUT_SIZES, cQ as IconButton, cR as IconButtonClassesOptions, cS as IconButtonProps, cT as IconRail, cU as IconRailButton, cV as IconRailButtonProps, cW as IconRailLabels, cX as IconRailLabelsShown, cY as IconRailOrientation, cZ as IconRailProps, c_ as Inline, c$ as InlineProps, d0 as Input, d1 as InputNumber, d2 as InputNumberProps, d3 as InputProps, d4 as InputSize, d5 as Justify, d6 as Kanban, d7 as KanbanColumn, d8 as KanbanProps, d9 as Kbd, da as KbdProps, db as KbdSize, dc as Label, dd as LabelClassesOptions, de as LabelProps, df as LadderScale, dg as LanguagePanel, dh as LanguagePanelProps, di as LanguageSelect, dj as LanguageSelectProps, dk as LineChart, dl as LineChartProps, dm as LineChartSeries, dn as LinearScale, dp as ListDrop, dq as ListFooter, dr as ListLoadError, ds as ListLoadErrorProps, dt as ListMove, du as ListRow, dv as ListRowProps, dw as LoadingSpinner, dx as LoadingSpinnerProps, dy as MAX_FRACTION_DIGITS, dz as MENU_MAX_HEIGHT, dA as MOD, dB as MOTION, dC as Markdown, dC as MarkdownLite, dD as MarkdownLiteProps, dD as MarkdownProps, dE as MediaUploadField, dF as MediaUploadFieldProps, dG as MediaUploadGrid, dH as MediaUploadGridItem, dI as MediaUploadGridProps, dJ as MenuPos, dK as Meter, dL as MeterProps, dM as MetricBar, dN as MetricBarProps, dO as Milestone, dP as MilestoneKind, dQ as MilestoneTimeline, dR as MilestoneTimelineProps, dT as NEXT_CHUNK_PATH_PREFIX, dU as NativeSelect, dV as NumericKeypad, dW as NumericKeypadProps, dX as OVERLAY_OPEN_EVENT, dY as POPUP_MAX_WIDTH, dZ as POST_PRODUCTION_STATUSES, d_ as PageHeader, d$ as PageHeaderProps, P as PaginatedResponse, e0 as Pagination, e1 as PaginationProps, e2 as PaperclipGlyph, e3 as Paragraph, e4 as ParagraphProps, e5 as PieChart, e6 as PieChartProps, e7 as PieSegment, e8 as PlotGeometry, e9 as Point, ea as Popover, eb as PopoverAlign, ec as PopoverProps, ed as PopoverRenderProps, ee as PopoverSide, ef as PopupMenu, eg as PopupMenuDivider, eh as PopupMenuItem, ei as PopupMenuItemProps, ej as PopupMenuLabel, ek as PopupMenuProps, el as PopupSubmenu, em as PopupSubmenuProps, en as PortalBrandingContextValue, eo as PortalBrandingProvider, ep as PortalBrandingProviderProps, eq as ProductionTimeline, er as ProductionTimelineProps, es as ProductionTimelineSnapshot, et as ProgressItem, eu as PublicPortal, ev as PublicPortalBranding, ew as RADAR_SERIES_CAP, ex as RadarAxis, ey as RadarChart, ez as RadarChartProps, eA as RadarSeries, eB as RadialBarChart, eC as RadialBarChartProps, eD as RadialBarRow, eE as Radio, eF as RadioGroup, eG as RadioGroupOption, eH as RadioGroupOrientation, eI as RadioGroupProps, eJ as RadioProps, eK as Range, eL as RangeChart, eM as RangeChartProps, eN as RangeRow, eO as RankedBars, eP as RankedBarsProps, eQ as RankedBarsRow, eR as ResizeHandle, eS as ResizeHandleProps, eT as ResizeHandleSide, eU as ResolvedPortalBrandAsset, eV as Result, eW as ResultProps, eX as ResultStatus, eY as RevealDirection, eZ as SCATTER_SERIES_CAP, e_ as SERIES_SLOT_COUNT, e$ as SERIES_VARS, f0 as SHELL_LANGUAGE_STORAGE_KEY, f1 as SHIFT, f2 as STAGES, f3 as STALE_CHUNK_RELOAD_COOLDOWN_MS, f4 as STALE_CHUNK_RELOAD_KEY, f5 as STATUS_VARS, f6 as SankeyChart, f7 as SankeyChartProps, f8 as SankeyLink, f9 as SankeyNode, fa as ScatterChart, fb as ScatterChartProps, fc as ScatterPoint, fd as ScatterSeries, S as SearchConfig, fe as SearchListRoute, ff as SearchProvider, fg as SearchQuickAction, fh as SearchResponse, fi as SearchResult, fj as SearchableItem, fk as SearchableOption, fl as SearchableOptionGroup, fm as SearchableSelect, fn as SearchableSelectBaseProps, fo as SearchableSelectMultipleProps, fp as SearchableSelectProps, fq as Segmented, fr as SegmentedOption, fs as SegmentedProps, ft as SegmentedSize, fu as Select, fv as SelectBaseProps, fw as SelectItem, fx as SelectMultipleProps, fy as SelectOption, fz as SelectOptionGroup, fA as SelectProps, fB as SemanticGroup, fC as SettingRow, fD as SettingRowProps, fE as SeverityTone, fH as ShellLanguage, fI as ShellLanguageProvider, fJ as ShellLanguageState, fK as ShellPrefsAdapter, fL as ShellPrefsProvider, fM as SidebarActionButton, fN as SidebarActionButtonProps, fO as SidebarGroupLabel, fP as SidebarGroupLabelProps, fQ as SidebarLayout, fR as SidebarLayoutProps, fS as SidebarNavGroup, fT as SidebarNavGroupProps, fU as SidebarNavItem, fV as SidebarNavItemProps, fW as Skeleton, fX as SkeletonProps, fY as SkeletonVariant, fZ as Slider, f_ as SliderProps, f$ as SliderSize, g0 as Snippet, g1 as SnippetProps, g2 as SnippetSize, g3 as SnippetVariant, a as SortState, g4 as SortableList, g5 as SortableListProps, g6 as SortableListSpacing, g7 as Sparkline, g8 as SparklineProps, g9 as Stack, ga as StackProps, gb as StaleChunkReloadOptions, gc as StatCard, gd as StatCardProps, ge as StatTile, gf as StatTileProps, gg as Statistic, gh as StatisticProps, gi as StatisticSize, gj as StatisticTone, gk as StatusBadge, gl as StatusBadgeProvider, gm as StatusEmphasis, gn as StepItem, go as Stepper, gp as StepperProps, gq as StrokeVariant, gr as SunburstChart, gs as SunburstChartProps, gt as SunburstNode, gu as Switch, gv as SwitchProps, gw as SwitchSize, gx as TabItem, gy as Tabs, gz as TabsProps, gA as TagInput, gB as TagInputOption, gC as TagInputProps, gD as Text, gE as TextProps, gF as TextSize, gG as TextTone, gH as TextWeight, gI as Textarea, gJ as TextareaProps, gK as Theme, gL as TileButton, gM as TileButtonProps, gN as TileSize, gO as TimeAgo, gP as TimeAgoProps, gQ as TimePicker, gR as TimePickerProps, gS as TimeSeriesChart, gT as TimeSeriesChartProps, gU as TimeSeriesSeries, gV as TimelineMarker, gW as TimelineMarkerKind, gX as TimelineReport, gY as TimelineScrubProgress, gZ as TimelineTrack, g_ as TimelineTrackItem, g$ as TimelineTrackKind, h0 as TimelineTrackPending, h1 as TimelineTrackPhase, h2 as TimelineTrackPlayback, h3 as TimelineTrackProps, h4 as TimelineTrackThumb, h5 as Title, h6 as TitleLevel, h7 as TitleProps, h8 as ToastOptions, h9 as ToastPlacement, ha as Tooltip, hb as TooltipProps, hc as TopNav, hd as TopNavItem, he as TopNavProps, hf as Tree, hg as TreeDrop, hh as TreeEmptySlot, hi as TreeEmptySlotProps, hj as TreeGroup, hk as TreeGroupLabel, hl as TreeGroupProps, hm as TreeMove, hn as TreeProps, ho as TreeRow, hp as TreeRowProps, hq as TreeSeam, hr as TreeSeamProps, hs as TreemapChart, ht as TreemapChartProps, hu as TreemapItem, hv as TreemapTile, hw as UseAppUpdateOptions, hx as UseContextMenu, hy as UseProductionTimelineOpts, hz as VERSION, hA as VITE_PRELOAD_ERROR_EVENT, hB as WaterfallChart, hC as WaterfallChartProps, hD as WaterfallStep, hE as ZLayer, hF as Z_LAYERS, hG as angleScale, hH as appendKey, hI as applyCorners, hJ as applyIconSet, hK as applyThemePrefs, hL as arcPath, hM as areaBetween, hN as areaFrom, hO as autoHighlightIndex, hP as backspace, hQ as bandScale, hR as binValues, hS as budgetState, hT as bumpPath, hU as buttonClasses, hV as calcOverall, hW as calcReportOverall, hX as colorFill, hY as colorSwatchClasses, hZ as confirm, h_ as confirmDestructive, h$ as curvePath, i0 as dashFor, i2 as dismissPopups, i3 as fillFor, i4 as fillId, i5 as fmtSliderDate, i6 as fromDateKey, i7 as glassStyle, i8 as glowId, i9 as groundId, ia as groupColors, ib as hexToHsv, ic as highlightOpacity, id as hsvToHex, ie as iconButtonClasses, ig as inputClasses, ih as installStaleChunkReload, ii as isMac, ij as isSeverityTone, ik as isStaleChunkError, im as labelClasses, io as ladderScale, ip as languageSelectWidth, iq as leavesContextMenuAlone, ir as linearPath, is as linearScale, it as logScale, iu as maskId, iv as matchShellLanguage, iw as mediaFileName, ix as monotonePath, iy as niceMax, iz as openGlobalSearch, iA as parseHexColor, iB as polygonPoints, iC as popupBounds, iD as prompt, iE as pushRecentSearch, iF as radiusScale, iG as readSavedShellLanguage, iH as registerModalEscapeInterceptor, iI as resolveBrandMarkTreatment, iJ as resolveCorners, iK as resolvePortalBrandAsset, iL as resolveSeriesColor, iM as resolveShellLanguage, iN as resolveTheme, iO as sanitizeRecentSearches, iP as saveShellLanguage, iQ as seriesColor, iR as severityOf, iS as splinePath, iT as squarify, iU as stagger, iV as stepPath, iW as tabButtonId, iX as tabPanelId, iY as toDateKey, iZ as toDayMs, i_ as toISODate, i$ as toast, j0 as useAppUpdate, j1 as useClickOutside, j2 as useConfirm, j3 as useContextMenu, j4 as useDebouncedValue, j5 as useDropdownPosition, j6 as useFocusTrap, j7 as useHighlight, j8 as useIsMobile, j9 as useLocalStoragePrefs, ja as usePlotWidth, jb as usePortalBranding, jc as useProductionTimeline, jd as useScrollLock, je as useShellLanguage, jf as useShellPrefs, jg as useStatusLabel, jh as useTheme } from '../index-DcUj0nXY.js';
2
2
  export { FileIntakeAlert, FileIntakeLimits, FileIntakeOptions, FileRejection, FileRejectionReason, acceptsFile, useFileIntake } from '../file-intake/index.js';
3
3
  export { ICON_NAMES, Icon, IconName, IconProps, IconTone, isIconName } from '../icons/index.js';
4
4
  export { a as IconDrawing, I 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-FHdUeVww.js';
5
+ export { D as DEFAULT_SHELL_STRINGS, a as ShellStrings, S as ShellStringsOverride, b as ShellStringsProvider, u as useShellLocale, c as useShellStrings } from '../strings-ZbotP_I6.js';
5
6
  export { C as CurrencyFormat, D as DATE_FORMAT_OPTIONS, a as DateFormatKey, E as EMPTY_VALUE, F as FormatDateOptions, b as FormatMoneyOptions, T as TZ_AUTO, c as TimeAgoOptions, d as currencyDecimals, e as currencySymbol, f as firstDayOfWeek, g as formatBytes, h as formatDate, i as formatDateTime, j as formatMoney, k as formatTime, l as getUserDateFormat, m as getUserTimezone, s as setCurrencyFormats, n as setUserDateFormat, o as setUserTimezone, p as syncTimezoneFromProfile, t as timeAgo } from '../index-DpUDK9zG.js';
6
7
  import 'react';
7
8
  import 'react/jsx-runtime';
package/dist/ui/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{APP_UPDATE_POLL_MS,Accordion,AppUpdateBanner,AttachButton,AttachmentDropZone,AttachmentList,AuthScreen,Avatar,AvatarGroup,Banner,BarChart,BoxPlotChart,BrandAssetEditor,BudgetBar,CHART_INK,CORNERS,Calendar,CandlestickChart,Card,CartesianPlot,ChartBrush,ChartDefs,ChartDot,ChartFrame,ChartHighlightProvider,ChartSkeleton,ChartTooltip,ChatTemplate,Checkbox_default as Checkbox,CheckoutTemplate,ChordChart,ColorPicker,ColorPickerPanel,ColorSwatch,ColoredBadge,ColumnChart,ComposerAttachments,ContainerFillChart,ContextMenu,CountBadge,DAY_MS,DashboardTemplate,DataTable,DataTablePage,DatePicker_default as DatePicker,DateRangePicker,DateTimePicker_default as DateTimePicker,DescriptionList,Divider,DonutChart,Drawer,DropdownMenu,EmailTemplate,EmptyState,EmptyValue,ErrorBoundary,ErrorPage,FilePicker_default as FilePicker,FormErrorSummary,FormField,FormLayoutPage,FunnelChart,GROUP_COLORS,GROUP_COLORS_SOLID,GalleryTemplate,Grid,HeatmapChart,HelpCenter,HexInput,HistogramChart,INPUT_BASE,INPUT_SIZES,IconButton_default as IconButton,IconRail,IconRailButton,Inline,Input_default as Input,InputNumber_default as InputNumber,Kanban,Label,LanguagePanel,LanguageSelect,LineChart,ListFooter,ListLoadError,ListRow,MAX_FRACTION_DIGITS,MOTION,Markdown,Markdown as MarkdownLite,MediaUploadField,MediaUploadGrid,Meter,MetricBar,MilestoneTimeline,NativeSelect,NumericKeypad,POST_PRODUCTION_STATUSES,PageHeader,Pagination,PaperclipGlyph,Paragraph,PieChart,Popover,PortalBrandingProvider,ProductionTimeline,RADAR_SERIES_CAP,RadarChart,RadialBarChart,Radio_default as Radio,RadioGroup,RangeChart,RankedBars,SCATTER_SERIES_CAP,SERIES_SLOT_COUNT,SERIES_VARS,STAGES,STATUS_VARS,SankeyChart,ScatterChart,SearchableSelect,Segmented,Select_default as Select,SettingRow,SidebarActionButton,SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,Skeleton,Slider,Snippet,SortableList,Sparkline,Stack,StatCard,StatTile,Statistic,StatusBadge,StatusBadgeProvider,Stepper,SunburstChart,Switch_default as Switch,Tabs,TagInput,Text,Textarea_default as Textarea,TileButton_default as TileButton,TimeAgo,TimePicker_default as TimePicker,TimeSeriesChart,TimelineTrack,Title,TopNav,Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam,TreemapChart,WaterfallChart,angleScale,appendKey,applyCorners,applyIconSet,applyThemePrefs,arcPath,areaBetween,areaFrom,autoHighlightIndex,backspace,bandScale,binValues,budgetState,bumpPath,calcOverall,calcReportOverall,colorFill,colorSwatchClasses,curvePath,dashFor,fillFor,fillId,fmtSliderDate,fromKey as fromDateKey,glowId,groundId,groupColors,hexToHsv,highlightOpacity,hsvToHex,inputClasses,isSeverityTone,labelClasses,ladderScale,linearPath,linearScale,logScale,maskId,mediaFileName,monotonePath,niceMax,parseHexColor,polygonPoints,radiusScale,resolveCorners,resolvePortalBrandAsset,resolveSeriesColor,resolveTheme,seriesColor,severityOf,splinePath,squarify,stagger,stepPath,tabButtonId,tabPanelId,toKey as toDateKey,toDayMs,toISODate,useAppUpdate,useClickOutside,useContextMenu,useDebouncedValue,useHighlight,usePlotWidth,usePortalBranding,useProductionTimeline,useStatusLabel,useTheme}from"../chunk-6BZCJQCT.js";export{Breadcrumbs}from"../chunk-LCTSBQBJ.js";export{BrandMark,GlobalSearch,openGlobalSearch,pushRecent as pushRecentSearch,resolveBrandMarkTreatment,sanitizeRecent as sanitizeRecentSearches}from"../chunk-FEK5ELXS.js";export{EditableGrid}from"../chunk-RKR5V4QR.js";import"../chunk-BR22X7E5.js";export{ResizeHandle,SidebarLayout}from"../chunk-JOOXVX4A.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-KDHXRJIX.js";export{VERSION}from"../chunk-7LAPNAKS.js";export{toast_default as toast}from"../chunk-L3U2R7DH.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,LoadingSpinner,MOD,NEXT_CHUNK_PATH_PREFIX,Result,SHIFT,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,ShellPrefsProvider,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isMac,isStaleChunkError,useIsMobile,useLocalStoragePrefs,useShellPrefs}from"../chunk-YJRC6IKD.js";import"../chunk-5A7MWTXX.js";export{Button_default as Button,MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,Tooltip,buttonClasses,iconButtonClasses,popupBounds,useDropdownPosition}from"../chunk-EXXHI5DO.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu,leavesContextMenuAlone}from"../chunk-PGVUO7GB.js";export{GLASS_DIVIDER,glassStyle}from"../chunk-HZZNJHRH.js";import"../chunk-D65T4H6J.js";export{ConfirmProvider,Dialog,confirm,confirmDestructive,prompt,useConfirm,useFocusTrap,useScrollLock}from"../chunk-XJYXKO7K.js";import"../chunk-AFYQTVZO.js";export{OVERLAY_OPEN_EVENT,Z_LAYERS,dismissPopups,registerModalEscapeInterceptor}from"../chunk-X4FJ54PP.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-REXHKIIJ.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-3YTHR7IC.js";export{DATE_FORMAT_OPTIONS,EMPTY_VALUE,TZ_AUTO,currencyDecimals,currencySymbol,firstDayOfWeek,formatBytes,formatDate,formatDateTime,formatMoney,formatTime,getUserDateFormat,getUserTimezone,setCurrencyFormats,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile,timeAgo}from"../chunk-W32SKK3D.js";export{ICON_NAMES,isIconName}from"../chunk-FWOPZB6I.js";export{Icon,activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-YKZHOXI4.js";
2
+ export{APP_UPDATE_POLL_MS,Accordion,AppUpdateBanner,AttachButton,AttachmentDropZone,AttachmentList,AuthScreen,Avatar,AvatarGroup,Banner,BarChart,BoxPlotChart,BrandAssetEditor,BudgetBar,CHART_INK,CORNERS,Calendar,CandlestickChart,Card,CartesianPlot,ChartBrush,ChartDefs,ChartDot,ChartFrame,ChartHighlightProvider,ChartSkeleton,ChartTooltip,ChatTemplate,Checkbox_default as Checkbox,CheckoutTemplate,ChordChart,ColorPicker,ColorPickerPanel,ColorSwatch,ColoredBadge,ColumnChart,ComposerAttachments,ContainerFillChart,ContextMenu,CountBadge,DAY_MS,DashboardTemplate,DataTable,DataTablePage,DatePicker_default as DatePicker,DateRangePicker,DateTimePicker_default as DateTimePicker,DescriptionList,Divider,DonutChart,Drawer,DropdownMenu,EmailTemplate,EmptyState,EmptyValue,ErrorBoundary,ErrorPage,FilePicker_default as FilePicker,FormErrorSummary,FormField,FormLayoutPage,FunnelChart,GROUP_COLORS,GROUP_COLORS_SOLID,GalleryTemplate,Grid,HeatmapChart,HelpCenter,HexInput,HistogramChart,INPUT_BASE,INPUT_SIZES,IconButton_default as IconButton,IconRail,IconRailButton,Inline,Input_default as Input,InputNumber_default as InputNumber,Kanban,Label,LanguagePanel,LanguageSelect,LineChart,ListFooter,ListLoadError,ListRow,MAX_FRACTION_DIGITS,MOTION,Markdown,Markdown as MarkdownLite,MediaUploadField,MediaUploadGrid,Meter,MetricBar,MilestoneTimeline,NativeSelect,NumericKeypad,POST_PRODUCTION_STATUSES,PageHeader,Pagination,PaperclipGlyph,Paragraph,PieChart,Popover,PortalBrandingProvider,ProductionTimeline,RADAR_SERIES_CAP,RadarChart,RadialBarChart,Radio_default as Radio,RadioGroup,RangeChart,RankedBars,SCATTER_SERIES_CAP,SERIES_SLOT_COUNT,SERIES_VARS,STAGES,STATUS_VARS,SankeyChart,ScatterChart,SearchableSelect,Segmented,Select_default as Select,SettingRow,SidebarActionButton,SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,Skeleton,Slider,Snippet,SortableList,Sparkline,Stack,StatCard,StatTile,Statistic,StatusBadge,StatusBadgeProvider,Stepper,SunburstChart,Switch_default as Switch,Tabs,TagInput,Text,Textarea_default as Textarea,TileButton_default as TileButton,TimeAgo,TimePicker_default as TimePicker,TimeSeriesChart,TimelineTrack,Title,TopNav,Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam,TreemapChart,WaterfallChart,angleScale,appendKey,applyCorners,applyIconSet,applyThemePrefs,arcPath,areaBetween,areaFrom,autoHighlightIndex,backspace,bandScale,binValues,budgetState,bumpPath,calcOverall,calcReportOverall,colorFill,colorSwatchClasses,curvePath,dashFor,fillFor,fillId,fmtSliderDate,fromKey as fromDateKey,glowId,groundId,groupColors,hexToHsv,highlightOpacity,hsvToHex,inputClasses,isSeverityTone,labelClasses,ladderScale,languageSelectWidth,linearPath,linearScale,logScale,maskId,mediaFileName,monotonePath,niceMax,parseHexColor,polygonPoints,radiusScale,resolveCorners,resolvePortalBrandAsset,resolveSeriesColor,resolveTheme,seriesColor,severityOf,splinePath,squarify,stagger,stepPath,tabButtonId,tabPanelId,toKey as toDateKey,toDayMs,toISODate,useAppUpdate,useClickOutside,useContextMenu,useDebouncedValue,useHighlight,usePlotWidth,usePortalBranding,useProductionTimeline,useStatusLabel,useTheme}from"../chunk-47VJNVB6.js";export{Breadcrumbs}from"../chunk-7WZEFHPS.js";export{ResizeHandle,SidebarLayout}from"../chunk-PE4F4MJE.js";export{BrandMark,GlobalSearch,openGlobalSearch,pushRecent as pushRecentSearch,resolveBrandMarkTreatment,sanitizeRecent as sanitizeRecentSearches}from"../chunk-KDRAU4XQ.js";export{EditableGrid}from"../chunk-T4CFSGSL.js";import"../chunk-BR22X7E5.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-LK7V32MR.js";export{VERSION}from"../chunk-AZURXTRB.js";export{toast_default as toast}from"../chunk-3DGTIWZP.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,LoadingSpinner,MOD,NEXT_CHUNK_PATH_PREFIX,Result,SHIFT,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,ShellPrefsProvider,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isMac,isStaleChunkError,useIsMobile,useLocalStoragePrefs,useShellPrefs}from"../chunk-CIXQKCFA.js";import"../chunk-5A7MWTXX.js";export{Button_default as Button,MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,Tooltip,buttonClasses,iconButtonClasses,popupBounds,useDropdownPosition}from"../chunk-OGXU7QFW.js";export{ConfirmProvider,Dialog,confirm,confirmDestructive,prompt,useConfirm,useFocusTrap,useScrollLock}from"../chunk-ZAE6ROV7.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu,leavesContextMenuAlone}from"../chunk-AA4TMQOS.js";import"../chunk-AFYQTVZO.js";export{GLASS_DIVIDER,glassStyle}from"../chunk-HZZNJHRH.js";export{OVERLAY_OPEN_EVENT,Z_LAYERS,dismissPopups,registerModalEscapeInterceptor}from"../chunk-X4FJ54PP.js";import"../chunk-D65T4H6J.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-WNEO7TSP.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-J3LIIIHJ.js";import"../chunk-C3QOHMR6.js";export{DATE_FORMAT_OPTIONS,EMPTY_VALUE,TZ_AUTO,currencyDecimals,currencySymbol,firstDayOfWeek,formatBytes,formatDate,formatDateTime,formatMoney,formatTime,getUserDateFormat,getUserTimezone,setCurrencyFormats,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile,timeAgo}from"../chunk-W32SKK3D.js";export{ICON_NAMES,isIconName}from"../chunk-FWOPZB6I.js";export{Icon,activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-YKZHOXI4.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-shell",
3
- "version": "4.175.0",
3
+ "version": "4.179.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",
@@ -68,6 +68,16 @@
68
68
  "import": "./dist/ui/index.js",
69
69
  "default": "./dist/ui/index.js"
70
70
  },
71
+ "./i18n": {
72
+ "types": "./dist/i18n/index.d.ts",
73
+ "import": "./dist/i18n/index.js",
74
+ "default": "./dist/i18n/index.js"
75
+ },
76
+ "./locales/zh-Hans": {
77
+ "types": "./dist/locales/zh-Hans.d.ts",
78
+ "import": "./dist/locales/zh-Hans.js",
79
+ "default": "./dist/locales/zh-Hans.js"
80
+ },
71
81
  "./icons": {
72
82
  "types": "./dist/icons/index.d.ts",
73
83
  "import": "./dist/icons/index.js",
@@ -105,6 +115,7 @@
105
115
  "@tanstack/react-query": ">=5",
106
116
  "axios": ">=1.6",
107
117
  "dxf-viewer": "*",
118
+ "i18next": ">=26",
108
119
  "lucide-react": ">=0.577",
109
120
  "mammoth": "*",
110
121
  "maplibre-gl": ">=6",
@@ -113,6 +124,7 @@
113
124
  "react": ">=18",
114
125
  "react-dom": ">=18",
115
126
  "react-hook-form": ">=7",
127
+ "react-i18next": ">=17",
116
128
  "react-markdown": ">=10",
117
129
  "react-router-dom": ">=6",
118
130
  "remark-breaks": ">=4",
@@ -133,6 +145,7 @@
133
145
  "axios": "^1.15.2",
134
146
  "dxf-viewer": "^1.0.47",
135
147
  "esbuild": "^0.27.0",
148
+ "i18next": "^26.4.3",
136
149
  "jsdom": "^26.1.0",
137
150
  "lucide-react": "^1.55.0",
138
151
  "mammoth": "^1.8.0",
@@ -143,6 +156,7 @@
143
156
  "react": "^18.2.0",
144
157
  "react-dom": "^18.2.0",
145
158
  "react-hook-form": "^7.74.0",
159
+ "react-i18next": "^17.0.16",
146
160
  "react-markdown": "^10.1.0",
147
161
  "react-router-dom": "^7.14.2",
148
162
  "remark-breaks": "^4.0.0",
@@ -192,6 +206,9 @@
192
206
  "dxf-viewer": {
193
207
  "optional": true
194
208
  },
209
+ "i18next": {
210
+ "optional": true
211
+ },
195
212
  "lucide-react": {
196
213
  "optional": true
197
214
  },
@@ -210,6 +227,9 @@
210
227
  "react-hook-form": {
211
228
  "optional": true
212
229
  },
230
+ "react-i18next": {
231
+ "optional": true
232
+ },
213
233
  "react-markdown": {
214
234
  "optional": true
215
235
  },
@@ -1,29 +0,0 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-TMQEH7WA.js";import{useWidgetSettings as n}from"./chunk-GCO3A63X.js";import"./chunk-DSSLOQDW.js";import"./chunk-ZOPYAOUP.js";import"./chunk-YJRC6IKD.js";import"./chunk-5A7MWTXX.js";import"./chunk-EXXHI5DO.js";import"./chunk-PGVUO7GB.js";import"./chunk-HZZNJHRH.js";import"./chunk-D65T4H6J.js";import"./chunk-XJYXKO7K.js";import"./chunk-AFYQTVZO.js";import"./chunk-X4FJ54PP.js";import"./chunk-3YTHR7IC.js";import"./chunk-YKZHOXI4.js";import{useState as r,useRef as l,useCallback as o,useEffect as i}from"react";import{jsxs as a,Fragment as c,jsx as s}from"react/jsx-runtime";var u="calc_appearance";function d(){const[d,h]=r("0"),[m,k]=r(null),[b,p]=r(null),[g,v]=r(!1),[x,y]=r(""),[f,N]=r([]),[C,$]=r(!1),[j,w]=r(()=>e(u)),[E,O]=r(!1),[T,S]=r(j),X=l(null);n(o(()=>{S({...j}),O(!0)},[j]));const A=o(e=>{y(""),h(t=>g||"0"===t?(v(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[g]),H=o(()=>{h("0"),k(null),p(null),v(!1)},[]),L=o((e,t,n)=>{switch(n){case"+":return e+t;case"-":return e-t;case"×":return e*t;case"÷":return 0===t?0:e/t;default:return t}},[]),W=o(e=>{const t=parseFloat(d);if(null!==m&&b&&!g){const e=L(m,t,b);h(String(e)),k(e),N(n=>[`${m} ${b} ${t} = ${e}`,...n].slice(0,20))}else k(t);p(e),v(!0)},[d,m,b,g,L]),D=o(()=>{if(null===m||!b)return;const e=parseFloat(d),t=L(m,e,b),n=`${m} ${b} ${e} =`;N(e=>[`${n} ${t}`,...e].slice(0,20)),y(n),h(String(t)),k(null),p(null),v(!0)},[d,m,b,L]),F=o(()=>{h(e=>String(parseFloat(e)/100))},[]),B=o(()=>{h(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);i(()=>{const e=e=>{const t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t&&(e.key>="0"&&e.key<="9"?A(e.key):"."===e.key?A("."):"+"===e.key?W("+"):"-"===e.key?W("-"):"*"===e.key?W("×"):"/"===e.key?(e.preventDefault(),W("÷")):"Enter"===e.key||"="===e.key?("Enter"===e.key&&e.target instanceof Node&&X.current?.contains(e.target)&&e.preventDefault(),D()):"Escape"===e.key?H():"Backspace"===e.key?h(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&F())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[A,W,D,H,F]);const I="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",J=`${I} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,P=`${I} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,Y=`${I} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,M=`${I} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
2
- return a(c,{children:[
3
- /* @__PURE__ */a("div",{ref:X,className:"flex flex-col h-full",style:{opacity:j.activeOpacity/100,backdropFilter:j.activeBlur>0?`blur(${j.activeBlur}px)`:void 0},children:[
4
- /* @__PURE__ */a("div",{className:"bg-slate-200 rounded-t-lg px-4 py-2 group/display relative flex flex-col justify-end min-h-[120px] border-b border-slate-300",children:[
5
- /* @__PURE__ */s("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:f.slice(0,3).reverse().map((e,t)=>/* @__PURE__ */s("div",{className:"text-[11px] text-slate-400 text-right font-mono truncate",children:e},t))}),(x||b&&null!==m)&&/* @__PURE__ */s("div",{className:"text-base text-slate-600 text-right font-mono",children:x||`${m} ${b} ${g?"":d}`}),
6
- /* @__PURE__ */a("div",{className:"flex items-center gap-2",children:[
7
- /* @__PURE__ */s("button",{onClick:()=>{navigator.clipboard.writeText(d),$(!0),setTimeout(()=>$(!1),1200)},title:"Copy result",className:"shrink-0 text-slate-300 hover:text-slate-500 transition-colors opacity-0 group-hover/display:opacity-100",children:/* @__PURE__ */s("svg",C?{className:"h-5 w-5 text-green-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}:{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */s("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"})})}),
8
- /* @__PURE__ */s("div",{className:"text-right text-4xl font-mono font-bold text-slate-800 truncate flex-1",children:(e=>{const t=parseFloat(e);return isNaN(t)||e.endsWith(".")||e.endsWith(".0")||Math.abs(t)<1e15&&e.length<16?e:t.toExponential(6)})(d)})]})]}),
9
- /* @__PURE__ */a("div",{className:"grid grid-cols-4 grid-rows-5 gap-1.5 flex-1 min-h-0 p-2",children:[
10
- /* @__PURE__ */s("button",{onClick:H,className:Y,children:"AC"}),
11
- /* @__PURE__ */s("button",{onClick:B,className:Y,children:"+/−"}),
12
- /* @__PURE__ */s("button",{onClick:F,className:Y,children:"%"}),
13
- /* @__PURE__ */s("button",{onClick:()=>W("÷"),className:`${P} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
14
- /* @__PURE__ */s("button",{onClick:()=>A("7"),className:J,children:"7"}),
15
- /* @__PURE__ */s("button",{onClick:()=>A("8"),className:J,children:"8"}),
16
- /* @__PURE__ */s("button",{onClick:()=>A("9"),className:J,children:"9"}),
17
- /* @__PURE__ */s("button",{onClick:()=>W("×"),className:`${P} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
18
- /* @__PURE__ */s("button",{onClick:()=>A("4"),className:J,children:"4"}),
19
- /* @__PURE__ */s("button",{onClick:()=>A("5"),className:J,children:"5"}),
20
- /* @__PURE__ */s("button",{onClick:()=>A("6"),className:J,children:"6"}),
21
- /* @__PURE__ */s("button",{onClick:()=>W("-"),className:`${P} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
22
- /* @__PURE__ */s("button",{onClick:()=>A("1"),className:J,children:"1"}),
23
- /* @__PURE__ */s("button",{onClick:()=>A("2"),className:J,children:"2"}),
24
- /* @__PURE__ */s("button",{onClick:()=>A("3"),className:J,children:"3"}),
25
- /* @__PURE__ */s("button",{onClick:()=>W("+"),className:`${P} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
26
- /* @__PURE__ */s("button",{onClick:()=>A("0"),className:`${J} col-span-2`,children:"0"}),
27
- /* @__PURE__ */s("button",{onClick:()=>A("."),className:J,children:"."}),
28
- /* @__PURE__ */s("button",{onClick:D,className:M,children:"="})]})]}),
29
- /* @__PURE__ */s(t,{open:E,onClose:()=>O(!1),title:"Calculator Settings",appearance:T,onAppearanceChange:S,onSave:()=>{w(T),localStorage.setItem(u,JSON.stringify(T)),O(!1)}})]})}export{d as default};
@@ -1 +0,0 @@
1
- export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"./chunk-XJYXKO7K.js";import"./chunk-AFYQTVZO.js";import"./chunk-X4FJ54PP.js";import"./chunk-3YTHR7IC.js";
@@ -1,25 +0,0 @@
1
- import{getNumberingConfigs as e}from"./chunk-KG4NRNFS.js";import{SidebarLayout as t}from"./chunk-JOOXVX4A.js";import{AboutApp as r}from"./chunk-VRLHUZSC.js";import{useWindowManager as n,client_default as o}from"./chunk-GCO3A63X.js";import"./chunk-DSSLOQDW.js";import"./chunk-ZOPYAOUP.js";import"./chunk-7LAPNAKS.js";import{toast_default as i}from"./chunk-L3U2R7DH.js";import{useShellPrefs as s}from"./chunk-YJRC6IKD.js";import"./chunk-5A7MWTXX.js";import"./chunk-EXXHI5DO.js";import"./chunk-PGVUO7GB.js";import"./chunk-HZZNJHRH.js";import"./chunk-D65T4H6J.js";import"./chunk-XJYXKO7K.js";import"./chunk-AFYQTVZO.js";import"./chunk-X4FJ54PP.js";import"./chunk-3YTHR7IC.js";import{timeAgo as l}from"./chunk-W32SKK3D.js";import"./chunk-YKZHOXI4.js";import{useRef as c,useEffect as a,useState as d,useCallback as p}from"react";import{useQuery as u}from"@tanstack/react-query";import{jsxs as m,Fragment as h,jsx as g}from"react/jsx-runtime";var x=[{key:"yellow",bg:"bg-yellow-100",border:"border-yellow-300",text:"text-yellow-900",dot:"bg-yellow-400"},{key:"blue",bg:"bg-blue-100",border:"border-blue-300",text:"text-blue-900",dot:"bg-blue-400"},{key:"green",bg:"bg-green-100",border:"border-green-300",text:"text-green-900",dot:"bg-green-400"},{key:"pink",bg:"bg-pink-100",border:"border-pink-300",text:"text-pink-900",dot:"bg-pink-400"},{key:"purple",bg:"bg-purple-100",border:"border-purple-300",text:"text-purple-900",dot:"bg-purple-400"},{key:"orange",bg:"bg-orange-100",border:"border-orange-300",text:"text-orange-900",dot:"bg-orange-400"},{key:"white",bg:"bg-white",border:"border-gray-300",text:"text-gray-900",dot:"bg-gray-300"}];var y={sales_order:{entityType:"order",endpoint:"/orders/sales-orders/"},purchase_order:{entityType:"purchase_order",endpoint:"/purchase-orders/"},invoice:{entityType:"invoice",endpoint:"/invoicing/invoices/"},vendor_invoice:{entityType:"vendor_invoice",endpoint:"/invoicing/vendor-invoices/"},shipment:{entityType:"shipment",endpoint:"/shipments/delivery-notes/"},receipt:{entityType:"payment",endpoint:"/invoicing/payments/"},vendor_payment:{entityType:"vendor_payment",endpoint:"/invoicing/vendor-payments/"},vendor_price_sheet:{entityType:"vendor_price_sheet",endpoint:"/pricing/manufacturer-price-sheets/"},client_price_sheet:{entityType:"price_sheet",endpoint:"/pricing/price-sheets/"},qc_report:{entityType:"qc_report",endpoint:"/qc-reports/"},warranty_claim:{entityType:"warranty_claim",endpoint:"/warranty-claims/claims/"},vendor_shipment:{entityType:"vendor_shipment",endpoint:"/shipments/goods-receipts/"}},b=/\[([ xX]?)\]/g;function f(){const{openEntity:f}=n(),{prefs:k,save:v}=s(),{data:N}=u({queryKey:["numbering-configs"],queryFn:()=>e(),retry:!1}),w=c({});a(()=>{if(!N)return;const e={};for(const t of N){const r=y[t.entity_type];if(!r)continue;const n=(t.prefix||"").replace("#","").toUpperCase();if(n&&(e[n]={...r,prefix:t.prefix}),t.alt_prefix){const n=t.alt_prefix.replace("#","").toUpperCase();n&&(e[n]={...r,prefix:t.alt_prefix})}}w.current=e},[N]);const _=k.notepad_notes||[],[j,C]=d(null),[T,L]=d(""),[$,X]=d(""),[O,S]=d("yellow"),[H,W]=d(!1),[D,K]=d(!1),P=c(null),A=c(),I=_.find(e=>e.id===j);a(()=>{if(!j&&_.length>0){const e=_[0];C(e.id),L(e.title),X(e.content),S(e.color)}},[_.length]);const B=p(e=>{v({notepad_notes:e})},[v]),M=p(()=>{if(!j||!H)return;const e=_.map(e=>e.id===j?{...e,title:T,content:$,color:O,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);B(e),W(!1)},[j,H,T,$,O,_,B]);a(()=>{if(H)return A.current&&clearTimeout(A.current),A.current=setTimeout(M,800),()=>{A.current&&clearTimeout(A.current)}},[H,M]),a(()=>()=>{H&&M()},[]);const R=e=>{H&&M(),C(e.id),L(e.title),X(e.content),S(e.color),W(!1),K(!1)},V=e=>{const t=$.slice(0,e),r=$.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=$.slice(e+r[0].length);X(t+n+o),W(!0)},U=async(e,t)=>{const r=w.current[e];if(!r)return;const n=`${e}#${t}`;try{const{data:e}=await o.get(r.endpoint,{params:{search:n,page_size:1}}),t=(e?.results??e??[])[0];t?f(r.entityType,t.id,t,n):i.error(`${n} not found`)}catch{i.error(`Failed to look up ${n}`)}},Z="Start writing...\n\nTips:\n [] Type [] for a checkbox, click to toggle\n SO#35001 Type XX#NNNNN to link entities (SO, PO, CI, VI, PL, etc.)",q=/* @__PURE__ */m(h,{children:[
2
- /* @__PURE__ */g("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */m("button",{onClick:()=>{H&&M();const e={id:`note-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,title:"",content:"",color:"yellow",sticky:!1,updated_at:/* @__PURE__ */(new Date).toISOString()},t=[e,..._];B(t),C(e.id),L(""),X(""),S("yellow"),W(!1),K(!0),setTimeout(()=>P.current?.focus(),50)},className:"w-full flex items-center justify-center gap-1.5 rounded-lg bg-blue-600 text-white px-3 py-1.5 text-sm font-medium hover:bg-blue-700 transition-colors",children:[
3
- /* @__PURE__ */g("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */g("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"})}),"New Note"]})}),
4
- /* @__PURE__ */g("div",{className:"flex-1 overflow-y-auto",children:0===_.length?/* @__PURE__ */g("p",{className:"text-sm text-gray-400 text-center py-8 px-4",children:"No notes yet. Create one to get started."}):_.map(e=>{const t=(r=e.color,x.find(e=>e.key===r)||x[0]);var r;/* @__PURE__ */
5
- return m("button",{onClick:()=>R(e),className:"w-full text-left px-3 py-2.5 border-b border-gray-100 transition-colors "+(j===e.id?"bg-blue-50":"hover:bg-gray-50"),children:[
6
- /* @__PURE__ */m("div",{className:"flex items-center gap-2",children:[
7
- /* @__PURE__ */g("div",{className:`w-2.5 h-2.5 rounded-full shrink-0 ${t.dot}`}),
8
- /* @__PURE__ */g("span",{className:"text-sm font-medium text-gray-900 truncate flex-1",children:e.title||"Untitled"}),e.sticky&&/* @__PURE__ */g("svg",{className:"h-3 w-3 text-amber-500 shrink-0",fill:"currentColor",viewBox:"0 0 24 24",children:/* @__PURE__ */g("path",{d:"M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"})})]}),
9
- /* @__PURE__ */g("p",{className:"text-xs text-gray-400 mt-0.5 truncate ml-4.5",children:e.content.replace(/\[[ xX]?\]/g,"").slice(0,60)||"Empty note"}),
10
- /* @__PURE__ */g("p",{className:"text-[10px] text-gray-300 mt-0.5 ml-4.5",children:l(e.updated_at)})]},e.id)})})]});/* @__PURE__ */
11
- return m("div",{className:"h-full",children:[
12
- /* @__PURE__ */g(r,{app:"notepad"}),
13
- /* @__PURE__ */g(t,{sidebar:q,storageKey:"notepad.sidebarWidth",defaultWidth:224,minWidth:180,maxWidth:360,children:j?/* @__PURE__ */m("div",{className:"flex-1 flex flex-col min-w-0",children:[
14
- /* @__PURE__ */m("div",{className:"flex items-center gap-2 px-4 py-2 border-b border-gray-200",children:[
15
- /* @__PURE__ */g("input",{value:T,onChange:e=>{L(e.target.value),W(!0)},placeholder:"Note title...",className:"flex-1 text-lg font-semibold text-gray-900 outline-none bg-transparent placeholder:text-gray-300"}),
16
- /* @__PURE__ */g("div",{className:"flex gap-1",children:x.map(e=>/* @__PURE__ */g("button",{onClick:()=>{S(e.key),W(!0)},className:`w-5 h-5 rounded-full border-2 transition-all ${e.dot} ${O===e.key?"border-gray-600 scale-110":"border-transparent hover:border-gray-400"}`,title:e.key},e.key))}),
17
- /* @__PURE__ */g("button",{onClick:()=>(e=>{const t=_.map(t=>t.id===e?{...t,sticky:!t.sticky}:t);B(t);const r=t.find(t=>t.id===e);i.success(r?.sticky?"Pinned to desktop":"Removed from desktop")})(j),title:I?.sticky?"Remove from desktop":"Pin to desktop",className:"p-1 rounded transition-colors "+(I?.sticky?"text-amber-500 hover:text-amber-600":"text-gray-300 hover:text-amber-400"),children:/* @__PURE__ */g("svg",{className:"h-4 w-4",fill:I?.sticky?"currentColor":"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */g("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"})})}),
18
- /* @__PURE__ */g("button",{onClick:()=>(e=>{const t=_.filter(t=>t.id!==e);if(B(t),j===e){const e=t[0];e?R(e):(C(null),L(""),X(""))}})(j),title:"Delete note",className:"p-1 rounded text-gray-300 hover:text-red-500 transition-colors",children:/* @__PURE__ */g("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */g("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"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.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"})})})]}),D?/* @__PURE__ */g("textarea",{ref:P,value:$,onChange:e=>{X(e.target.value),W(!0)},onBlur:()=>{K(!1),H&&M()},placeholder:Z,className:"flex-1 p-4 text-sm text-gray-700 outline-none resize-none bg-transparent leading-relaxed placeholder:text-gray-300 font-mono"}):/* @__PURE__ */g("div",{onClick:()=>{K(!0),setTimeout(()=>P.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:$?(e=>{if(!e)return[];const t=e.split("\n");return t.map((e,r)=>{const n=[];let o=0;const i=[],s=/([A-Z]{2,4})#(\d{4,6})/g;let l;for(;null!==(l=s.exec(e));){const e=l[1],t=l[2];if(w.current[e]){const n=l.index,o=l[0];i.push({idx:n,len:o.length,render:()=>/* @__PURE__ */g("button",{onClick:()=>U(e,t),className:"text-blue-600 hover:text-blue-800 hover:underline font-medium cursor-pointer",children:o},`ref-${r}-${n}`)})}}b.lastIndex=0;let c=0;for(let e=0;e<r;e++)c+=t[e].length+1;for(;null!==(l=b.exec(e));){const e="x"===l[1]||"X"===l[1],t=l.index,n=c+t;i.push({idx:t,len:l[0].length,render:()=>/* @__PURE__ */g("button",{onClick:()=>V(n),className:`inline-flex items-center justify-center w-4 h-4 rounded border ${e?"bg-blue-500 border-blue-500 text-white":"border-gray-400 bg-white hover:border-blue-400"} cursor-pointer align-text-bottom mr-0.5`,children:e&&/* @__PURE__ */g("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:/* @__PURE__ */g("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})})},`cb-${r}-${t}`)})}i.sort((e,t)=>e.idx-t.idx);for(const t of i)t.idx>o&&n.push(/* @__PURE__ */g("span",{children:e.slice(o,t.idx)},`t-${r}-${o}`)),n.push(t.render()),o=t.idx+t.len;o<e.length&&n.push(/* @__PURE__ */g("span",{children:e.slice(o)},`t-${r}-${o}`)),0===n.length&&n.push(/* @__PURE__ */g("span",{children:"​"},`empty-${r}`));const a=/^\[x\]/i.test(e.trimStart());/* @__PURE__ */
19
- return g("div",{className:a?"line-through text-gray-400":"",children:n},r)})})($):/* @__PURE__ */g("p",{className:"text-gray-300 whitespace-pre-line",children:Z})}),
20
- /* @__PURE__ */m("div",{className:"px-4 py-1.5 border-t border-gray-100 flex items-center gap-4 text-[10px] text-gray-400",children:[
21
- /* @__PURE__ */g("span",{children:"[] checkbox"}),
22
- /* @__PURE__ */g("span",{children:"SO#35001 entity link"}),
23
- /* @__PURE__ */g("span",{className:"ml-auto",children:D?"Editing":"Click to edit"})]})]}):/* @__PURE__ */g("div",{className:"flex-1 flex items-center justify-center",children:/* @__PURE__ */m("div",{className:"text-center text-gray-400",children:[
24
- /* @__PURE__ */g("svg",{className:"h-12 w-12 mx-auto mb-3 text-gray-300",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1,children:/* @__PURE__ */g("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),
25
- /* @__PURE__ */g("p",{className:"text-sm",children:"Select a note or create a new one"})]})})})]})}export{f as default};
@@ -1 +0,0 @@
1
- export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-KS7OSQ3Y.js";import"./chunk-L3U2R7DH.js";import"./chunk-3YTHR7IC.js";