efficient-shell 11.8.0 → 11.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 +9 -0
- package/dist/{Browser-NMILHEUX.js → Browser-FIRNNCSC.js} +17 -17
- package/dist/Calculator-ELI5Z3XW.js +29 -0
- package/dist/{CurrencyConverter-TAWZDMT4.js → CurrencyConverter-LU7QXMOI.js} +9 -9
- package/dist/{Documents-SDOY3ZA3.js → Documents-CE7YKNJM.js} +24 -24
- package/dist/Files-ARRIIZZ6.js +88 -0
- package/dist/{Notepad-DZSDABU7.js → Notepad-HNED2SWM.js} +10 -10
- package/dist/PdfViewer-ZRDIG2L2.js +1 -0
- package/dist/PomodoroTimer-ZJ432VPC.js +91 -0
- package/dist/{Preview-6Z6K5QLK.js → Preview-OGSYTTKC.js} +38 -38
- package/dist/Sidebar-ETWHTFNP.js +44 -0
- package/dist/Spreadsheet-4HZR2TUV.js +75 -0
- package/dist/{Stock-HJN2BSAD.js → Stock-4BOTUHWE.js} +3 -3
- package/dist/{Weather-G7AOUS36.js → Weather-NDUOK3P3.js} +21 -21
- package/dist/{WorldClock-GE3DGYYU.js → WorldClock-FH6NFTOM.js} +4 -4
- package/dist/ai/index.js +78 -78
- package/dist/apps/index.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/charts/BoxPlotChart.js +1 -1
- package/dist/charts/CandlestickChart.js +1 -1
- package/dist/charts/CartesianPlot.js +1 -1
- package/dist/charts/ChartBrush.js +1 -1
- package/dist/charts/ChartFrame.js +1 -1
- package/dist/charts/ChartSkeleton.js +1 -1
- package/dist/charts/ChartTooltip.js +1 -1
- package/dist/charts/ChordChart.js +1 -1
- package/dist/charts/ColumnChart.js +1 -1
- package/dist/charts/FunnelChart.js +1 -1
- package/dist/charts/HeatmapChart.js +1 -1
- package/dist/charts/HistogramChart.js +1 -1
- package/dist/charts/Meter.js +1 -1
- package/dist/charts/PieChart.js +1 -1
- package/dist/charts/RadarChart.js +1 -1
- package/dist/charts/RadialBarChart.js +1 -1
- package/dist/charts/RangeChart.js +1 -1
- package/dist/charts/RankedBars.js +1 -1
- package/dist/charts/SankeyChart.js +1 -1
- package/dist/charts/ScatterChart.js +1 -1
- package/dist/charts/SpecChart.js +1 -1
- package/dist/charts/StatTile.js +1 -1
- package/dist/charts/SunburstChart.js +1 -1
- package/dist/charts/TimeSeriesChart.js +1 -1
- package/dist/charts/TreemapChart.js +1 -1
- package/dist/charts/WaterfallChart.js +1 -1
- package/dist/{chunk-CD7UWMPX.js → chunk-276JUQXK.js} +1 -1
- package/dist/{chunk-6EIZOX6W.js → chunk-2CPYXRR2.js} +8 -8
- package/dist/{chunk-SXNQHIBY.js → chunk-2JTG3U5L.js} +1 -1
- package/dist/{chunk-NGLU2GKE.js → chunk-2UTCGWMZ.js} +3 -3
- package/dist/{chunk-JNQF5CBB.js → chunk-2V3LKX7G.js} +5 -5
- package/dist/{chunk-WDQI3FV6.js → chunk-36VIGB6J.js} +6 -6
- package/dist/{chunk-4XNVIKZZ.js → chunk-37JAU3U7.js} +3 -3
- package/dist/{chunk-DU4WEVNS.js → chunk-4L4GQW7P.js} +1 -1
- package/dist/chunk-4LQRLYB4.js +22 -0
- package/dist/{chunk-4EZIWLJJ.js → chunk-4UKPDURO.js} +1 -1
- package/dist/{chunk-SDDV3UCN.js → chunk-4VF66WBB.js} +12 -12
- package/dist/chunk-5CPRZ27M.js +28 -0
- package/dist/{chunk-YCWALB3A.js → chunk-5DZN6ZDE.js} +9 -9
- package/dist/{chunk-SS5SQMIB.js → chunk-5MGNT7XM.js} +2 -2
- package/dist/{chunk-EYPKBJYG.js → chunk-5PP435FL.js} +1 -1
- package/dist/chunk-5XVXYBIQ.js +8 -0
- package/dist/{chunk-EOWUUOVE.js → chunk-7N4P6LGD.js} +1 -1
- package/dist/chunk-7QRKZOXR.js +12 -0
- package/dist/{chunk-7TZV6G2F.js → chunk-A2SP4IZV.js} +1 -1
- package/dist/chunk-A4FCXZSY.js +8 -0
- package/dist/{chunk-JFV5CQN4.js → chunk-A65PRSKV.js} +4 -4
- package/dist/chunk-ABKCC7VB.js +9 -0
- package/dist/chunk-ABKFALDE.js +8 -0
- package/dist/{chunk-X5TZHOTI.js → chunk-AFROFSDW.js} +1 -1
- package/dist/chunk-AJ6HMM4P.js +20 -0
- package/dist/chunk-ALMBY7QO.js +6 -0
- package/dist/{chunk-72LJMEL6.js → chunk-B4D23ZLJ.js} +1 -1
- package/dist/{chunk-FXOYA2VJ.js → chunk-BAT5B2LE.js} +1 -1
- package/dist/{chunk-SHO35OPO.js → chunk-BXTSBORU.js} +3 -3
- package/dist/{chunk-47DO42IW.js → chunk-CFFT5OCV.js} +1 -1
- package/dist/{chunk-WOXQODYQ.js → chunk-D2BXHFYK.js} +1 -1
- package/dist/{chunk-RHDM7HRD.js → chunk-DGA4SO27.js} +2 -2
- package/dist/{chunk-OTVK7DJM.js → chunk-DH2DKQKS.js} +1 -1
- package/dist/{chunk-VAK5FQXH.js → chunk-DWR6RVX5.js} +4 -4
- package/dist/{chunk-LT6PG6UW.js → chunk-DXFG4H4V.js} +1 -1
- package/dist/{chunk-4TYIYL56.js → chunk-E2LRAOCL.js} +10 -10
- package/dist/{chunk-MS5APD3V.js → chunk-ED6HJBCO.js} +1 -1
- package/dist/{chunk-C764JODK.js → chunk-EMUZJMR3.js} +1 -1
- package/dist/chunk-EOVXFXVV.js +2 -0
- package/dist/{chunk-MXGDFO6A.js → chunk-EOYGTVNS.js} +5 -5
- package/dist/{chunk-FA5FBNWF.js → chunk-EP5BHBZQ.js} +1 -1
- package/dist/chunk-FBACFP4U.js +4 -0
- package/dist/{chunk-JFBL4PR3.js → chunk-FNMF42DQ.js} +2 -2
- package/dist/{chunk-ORIXCEKO.js → chunk-FOHOSUK3.js} +1 -1
- package/dist/{chunk-ECJKIPWU.js → chunk-FRNSCVPN.js} +1 -1
- package/dist/chunk-FSRHVB4A.js +9 -0
- package/dist/{chunk-YQFGRYEF.js → chunk-FTGA5IPI.js} +14 -14
- package/dist/{chunk-JPNAEN53.js → chunk-FZM3ZPW3.js} +1 -1
- package/dist/chunk-G2BZ7NCM.js +19 -0
- package/dist/{chunk-IXOL7Y3Z.js → chunk-GNWK77U7.js} +1 -1
- package/dist/{chunk-OPN4I565.js → chunk-GPCTDEXQ.js} +1 -1
- package/dist/{chunk-C6YAFZG3.js → chunk-GV5VNWPG.js} +2 -2
- package/dist/{chunk-JSG2AKCG.js → chunk-H5YD72OP.js} +1 -1
- package/dist/{chunk-RDYFZHT3.js → chunk-HBS4HYQM.js} +1 -1
- package/dist/{chunk-TQE6O2JA.js → chunk-HRXQCHKI.js} +3 -3
- package/dist/chunk-HTTICQBP.js +27 -0
- package/dist/{chunk-LJN77RG6.js → chunk-HWFBNYNI.js} +1 -1
- package/dist/chunk-HYNUJY6W.js +13 -0
- package/dist/{chunk-5CXFABVD.js → chunk-HYXDKY2L.js} +1 -1
- package/dist/{chunk-5F2AIDPY.js → chunk-IAUEISDQ.js} +9 -9
- package/dist/{chunk-OBJGUJIE.js → chunk-IDRAW6MT.js} +2 -2
- package/dist/chunk-IEHTZR5M.js +7 -0
- package/dist/chunk-IH2KC3NQ.js +5 -0
- package/dist/{chunk-RYLTVHCV.js → chunk-IKKQ4P4R.js} +12 -12
- package/dist/{chunk-MDYJVXWD.js → chunk-IW2QNPDG.js} +2 -2
- package/dist/chunk-IXSSBGRD.js +13 -0
- package/dist/{chunk-54NMFQMW.js → chunk-JADBOQ7S.js} +5 -5
- package/dist/{chunk-ZGOHRLXG.js → chunk-JGVKGEIV.js} +1 -1
- package/dist/{chunk-XYECIBVX.js → chunk-JJHPPTM6.js} +1 -1
- package/dist/{chunk-TMMNCXQT.js → chunk-KMSK6QQB.js} +1 -1
- package/dist/{chunk-4MBYFQOI.js → chunk-KPFYXVCO.js} +9 -9
- package/dist/{chunk-ZXVJL7MS.js → chunk-KZ6JVHFI.js} +1 -1
- package/dist/{chunk-4ULRP4Y4.js → chunk-L3RLB37Y.js} +1 -1
- package/dist/{chunk-ZD36QKQS.js → chunk-L433UT5E.js} +1 -1
- package/dist/{chunk-V6Y4OC6K.js → chunk-LCHU3ZG4.js} +8 -8
- package/dist/{chunk-VCMHBUKI.js → chunk-LE5LWALR.js} +1 -1
- package/dist/{chunk-VHF3CJVO.js → chunk-LLNWE7DR.js} +30 -30
- package/dist/{chunk-B634WHJ2.js → chunk-LNGLJA6K.js} +2 -2
- package/dist/{chunk-QVZKRROQ.js → chunk-LPTN55KO.js} +1 -1
- package/dist/chunk-LVHQJ5TW.js +9 -0
- package/dist/{chunk-AFYLVV74.js → chunk-LZJCULO7.js} +1 -1
- package/dist/{chunk-E6GDAV5R.js → chunk-MFDOGLFO.js} +3 -3
- package/dist/chunk-MG4IUKVP.js +11 -0
- package/dist/{chunk-SXQZ5GTA.js → chunk-MOL2ND6G.js} +6 -6
- package/dist/{chunk-4QK4WNPB.js → chunk-MQHUVZWM.js} +1 -1
- package/dist/{chunk-7ELJQL7J.js → chunk-MWKLLAJT.js} +1 -1
- package/dist/chunk-N3OJ47VK.js +1 -0
- package/dist/{chunk-RQDVAUXD.js → chunk-N5KO2IHG.js} +4 -4
- package/dist/chunk-N7645DNN.js +6 -0
- package/dist/{chunk-DGNAUGZ3.js → chunk-NFNDXE5O.js} +4 -4
- package/dist/{chunk-IDI3IOY4.js → chunk-NGUXPP5Q.js} +65 -65
- package/dist/{chunk-QQ2LDC6C.js → chunk-NJN5IKWO.js} +1 -1
- package/dist/{chunk-QYL26AB4.js → chunk-NSYCJTHE.js} +1 -1
- package/dist/chunk-NTKNM25F.js +15 -0
- package/dist/{chunk-IMDGMUE3.js → chunk-O4OFURPC.js} +1 -1
- package/dist/{chunk-5H4SWQGM.js → chunk-OE77XFOV.js} +1 -1
- package/dist/{chunk-DJW7CM3W.js → chunk-ONIL7WXO.js} +1 -1
- package/dist/{chunk-2E2SUEEE.js → chunk-OQG3XO4Y.js} +1 -1
- package/dist/{chunk-PVPMJ5G2.js → chunk-OS2KE6QG.js} +4 -4
- package/dist/{chunk-VQBEZNHC.js → chunk-OUXSI6X4.js} +1 -1
- package/dist/{chunk-CLTRQ7AQ.js → chunk-OYTRB237.js} +1 -1
- package/dist/{chunk-KTCM64DQ.js → chunk-OZEPYQ7E.js} +1 -1
- package/dist/{chunk-3NRQNKVP.js → chunk-P7NO3NGC.js} +11 -11
- package/dist/{chunk-SX5BSWTN.js → chunk-PAC4LK2N.js} +5 -5
- package/dist/{chunk-UEISJFZH.js → chunk-PBMAMVSE.js} +5 -5
- package/dist/{chunk-O3MBPAWZ.js → chunk-PC44XTGN.js} +1 -1
- package/dist/chunk-PEVWAJUR.js +7 -0
- package/dist/{chunk-6UBOLLBC.js → chunk-PMKR2BF2.js} +21 -21
- package/dist/{chunk-JH4ZCPHW.js → chunk-PR42NIDL.js} +10 -10
- package/dist/{chunk-FT3QRQWY.js → chunk-PTWKG635.js} +3 -3
- package/dist/{chunk-ESZHN7PV.js → chunk-QIEAZN6Z.js} +1 -1
- package/dist/{chunk-DQQKG46I.js → chunk-QIVIQUKB.js} +7 -7
- package/dist/{chunk-KQOY4RGP.js → chunk-QL5E3MU3.js} +1 -1
- package/dist/chunk-QRZBLNOQ.js +4 -0
- package/dist/{chunk-G3KXB7SP.js → chunk-QVAOSKFO.js} +11 -11
- package/dist/{chunk-2UO47XB4.js → chunk-R64OZ6TC.js} +26 -12
- package/dist/{chunk-SYZLS2JA.js → chunk-RDKIYORS.js} +1 -1
- package/dist/{chunk-JTMEFXRL.js → chunk-RDTKMSEK.js} +1 -1
- package/dist/{chunk-RRE2NNFS.js → chunk-RKL47W7I.js} +6 -6
- package/dist/{chunk-3V5GSTZI.js → chunk-RPTOAKLB.js} +1 -1
- package/dist/{chunk-LJAYUDN2.js → chunk-RQ6TC6RM.js} +1 -1
- package/dist/{chunk-T7PVHIXI.js → chunk-RSJLN3EG.js} +1 -1
- package/dist/{chunk-JQBVSPF5.js → chunk-S4FPYCUU.js} +3 -3
- package/dist/{chunk-SAP4YI2Y.js → chunk-SDAX6BXF.js} +1 -1
- package/dist/{chunk-KGSOOXA7.js → chunk-SIA3W7VE.js} +6 -6
- package/dist/{chunk-MTIP5DH2.js → chunk-SJQKEIS7.js} +3 -3
- package/dist/{chunk-OH5L6HYW.js → chunk-SXBOODCJ.js} +4 -4
- package/dist/{chunk-3IUPYCW3.js → chunk-SZTIP6T7.js} +1 -1
- package/dist/{chunk-IBS7647X.js → chunk-T2ZFXPQV.js} +21 -21
- package/dist/{chunk-XWFLIGDQ.js → chunk-TE6R53YD.js} +1 -1
- package/dist/{chunk-M4BPHBKI.js → chunk-TKE3EF2U.js} +1 -1
- package/dist/{chunk-XQZL6JDD.js → chunk-TURECNEK.js} +4 -4
- package/dist/{chunk-AWKJZSTO.js → chunk-U6IJL4Q5.js} +1 -1
- package/dist/{chunk-DUGYWX2R.js → chunk-U7T2ONAY.js} +2 -2
- package/dist/chunk-UGOSZLCD.js +14 -0
- package/dist/{chunk-355CRSFS.js → chunk-UIN2LUCZ.js} +13 -13
- package/dist/{chunk-P4VKU3SL.js → chunk-UZ7TKJRO.js} +1 -1
- package/dist/{chunk-BTRV3SMB.js → chunk-V6LPIDZ6.js} +1 -1
- package/dist/chunk-VNTJ7QO5.js +1 -0
- package/dist/{chunk-SL77N7VT.js → chunk-VTXCCFJ4.js} +3 -3
- package/dist/chunk-WB6E6CSH.js +14 -0
- package/dist/{chunk-CRILBBSU.js → chunk-WDZUPDNC.js} +1 -1
- package/dist/{chunk-CJH2BGXY.js → chunk-WGLHB6WE.js} +1 -1
- package/dist/{chunk-MDV7UQJD.js → chunk-WMS2DCRV.js} +10 -10
- package/dist/chunk-WQGBYFS3.js +8 -0
- package/dist/{chunk-PCTOL2FX.js → chunk-WTTXLWMK.js} +8 -8
- package/dist/{chunk-UGBYAVJV.js → chunk-WYSNMIZN.js} +1 -1
- package/dist/{chunk-EKCQ7XBZ.js → chunk-WZMZ3N5B.js} +2 -2
- package/dist/chunk-Y2LWUBXX.js +2 -0
- package/dist/{chunk-BW47XJLH.js → chunk-YGCVMPIU.js} +1 -1
- package/dist/{chunk-3XTSXZAC.js → chunk-YIFRSPUM.js} +10 -10
- package/dist/{chunk-EN5NXWT6.js → chunk-YKEB576T.js} +1 -1
- package/dist/{chunk-4TGZODSH.js → chunk-YM4XIO4K.js} +5 -5
- package/dist/chunk-YMBNVMFU.js +11 -0
- package/dist/{chunk-N7U622NC.js → chunk-YY5TUQS4.js} +3 -3
- package/dist/{chunk-LXL2UCUR.js → chunk-Z32K3LIJ.js} +1 -1
- package/dist/{chunk-P3RXXWXN.js → chunk-ZDDYTXPK.js} +6 -6
- package/dist/{chunk-X55LUERI.js → chunk-ZGQ6H2PU.js} +4 -4
- package/dist/{chunk-NU5HN3FZ.js → chunk-ZM2NOLT6.js} +12 -12
- package/dist/chunk-ZQJTLJUF.js +2 -0
- package/dist/{chunk-DANLBFBD.js → chunk-ZRLWE3JM.js} +1 -1
- package/dist/chunk-ZVEDA462.js +3 -0
- package/dist/{chunk-TGGUYAWA.js → chunk-ZWLOVJWN.js} +1 -1
- package/dist/data/DataTable.js +1 -1
- package/dist/data/EntityList.js +1 -1
- package/dist/data/Kanban.js +1 -1
- package/dist/data/ListFooter.js +1 -1
- package/dist/data/ListLoadError.js +1 -1
- package/dist/data/Pagination.js +1 -1
- package/dist/data/ResizableTable.js +1 -1
- package/dist/file-intake/index.js +1 -1
- package/dist/forms/AlignmentGrid.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/Button.js +1 -1
- package/dist/forms/Calendar.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/ComposerAttachments.js +1 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/DatePicker.js +1 -1
- package/dist/forms/DateRangePicker.js +1 -1
- package/dist/forms/DateTimePicker.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/FilePicker.js +1 -1
- package/dist/forms/FormErrorSummary.js +1 -1
- package/dist/forms/IconButton.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/ImageFocusPoint.js +1 -1
- package/dist/forms/Input.js +1 -1
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.d.ts +22 -0
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUploadGrid.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/NumericKeypad.js +1 -1
- package/dist/forms/PictureTiles.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/RenameField.js +1 -1
- package/dist/forms/Segmented.js +1 -1
- package/dist/forms/Select.js +1 -1
- package/dist/forms/SidesInput.js +1 -1
- package/dist/forms/Slider.js +1 -1
- package/dist/forms/Snippet.js +1 -1
- package/dist/forms/SplitButton.js +1 -1
- package/dist/forms/TagInput.js +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/TimePicker.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/forms/mediaLibraryMenu.js +1 -1
- package/dist/forms/mediaMoveItems.js +1 -1
- package/dist/forms/textAlign.js +1 -1
- package/dist/forms/useFileIntake.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.js +666 -666
- package/dist/locales/zh-Hans.js +1 -1
- package/dist/map/index.js +3 -3
- package/dist/markdown/index.js +1 -1
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/shell/Accordion.js +1 -1
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/Avatar.js +1 -1
- package/dist/shell/Banner.js +1 -1
- package/dist/shell/Breadcrumbs.js +1 -1
- package/dist/shell/BudgetBar.js +1 -1
- package/dist/shell/Card.js +1 -1
- package/dist/shell/ColoredBadge.js +1 -1
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/ContainerFillChart.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/CountBadge.js +1 -1
- package/dist/shell/Dialog.js +1 -1
- package/dist/shell/Drawer.js +1 -1
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/EditableGrid.js +1 -1
- package/dist/shell/EmptyState.js +1 -1
- package/dist/shell/GlobalSearch.js +1 -1
- package/dist/shell/HelpCenter.js +1 -1
- package/dist/shell/IconRail.js +1 -1
- package/dist/shell/ImageLightbox.js +1 -1
- package/dist/shell/ItemCount.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/MetricBar.js +1 -1
- package/dist/shell/MetricBarLegend.js +1 -1
- package/dist/shell/MilestoneTimeline.js +1 -1
- package/dist/shell/PageHeader.js +1 -1
- package/dist/shell/PopupMenu.js +1 -1
- package/dist/shell/ProductionTimeline.js +1 -1
- package/dist/shell/ResizeHandle.js +1 -1
- package/dist/shell/Result.js +1 -1
- package/dist/shell/SearchableSelect.js +1 -1
- package/dist/shell/SettingReset.js +1 -1
- package/dist/shell/SettingRow.js +1 -1
- package/dist/shell/SidebarLayout.js +1 -1
- package/dist/shell/SidebarNav.js +1 -1
- package/dist/shell/SortableList.js +1 -1
- package/dist/shell/Statistic.js +1 -1
- package/dist/shell/StatusBadge.js +1 -1
- package/dist/shell/StepChain.js +1 -1
- package/dist/shell/Stepper.js +1 -1
- package/dist/shell/Tabs.js +1 -1
- package/dist/shell/TimeAgo.js +1 -1
- package/dist/shell/TimelineTrack.js +1 -1
- package/dist/shell/Tooltip.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/shell/TransferProgress.js +1 -1
- package/dist/shell/Tree.js +1 -1
- package/dist/shell/discardGuard.js +1 -1
- package/dist/shell/language.js +1 -1
- package/dist/shell/strings.d.ts +129 -0
- package/dist/shell/strings.js +1 -1
- package/dist/shell/toast.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/AuthScreen.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DashboardTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/ErrorBoundary.js +1 -1
- package/dist/templates/ErrorPage.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/templates/GalleryTemplate.js +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-E7AMPGD5.js +0 -29
- package/dist/Files-YQWVU6KZ.js +0 -88
- package/dist/PdfViewer-Y3SAVADX.js +0 -1
- package/dist/PomodoroTimer-RAZE37BO.js +0 -91
- package/dist/Sidebar-GQX7UM3M.js +0 -44
- package/dist/Spreadsheet-Q5N5KXGP.js +0 -37
- package/dist/chunk-34H3CK7R.js +0 -22
- package/dist/chunk-56KADF2B.js +0 -11
- package/dist/chunk-77AQNJE2.js +0 -9
- package/dist/chunk-7DI3VQCF.js +0 -2
- package/dist/chunk-7GTUUBS2.js +0 -28
- package/dist/chunk-7INZ7O3A.js +0 -5
- package/dist/chunk-CZMSOB2T.js +0 -9
- package/dist/chunk-EUAC2T5D.js +0 -2
- package/dist/chunk-F3ZFCQGP.js +0 -4
- package/dist/chunk-FO6UPEZH.js +0 -7
- package/dist/chunk-FSUQTN34.js +0 -14
- package/dist/chunk-GDQJBQ5B.js +0 -1
- package/dist/chunk-GELPD7EY.js +0 -12
- package/dist/chunk-GOZO6LU2.js +0 -8
- package/dist/chunk-HCXIXV4E.js +0 -8
- package/dist/chunk-IYXNRNAF.js +0 -8
- package/dist/chunk-K4JQ3FQI.js +0 -2
- package/dist/chunk-L7XIGRIT.js +0 -6
- package/dist/chunk-LGDMGDSV.js +0 -14
- package/dist/chunk-LKTUUNGJ.js +0 -1
- package/dist/chunk-M3JNILT2.js +0 -19
- package/dist/chunk-PFKXPSOM.js +0 -6
- package/dist/chunk-PLK2WHZG.js +0 -27
- package/dist/chunk-RABYGQQU.js +0 -8
- package/dist/chunk-RK7MN5L5.js +0 -3
- package/dist/chunk-RPL4H6LE.js +0 -9
- package/dist/chunk-UGGHQYDN.js +0 -11
- package/dist/chunk-VAPSWR5Q.js +0 -13
- package/dist/chunk-WMHZA4EO.js +0 -4
- package/dist/chunk-WUAKIM2B.js +0 -7
- package/dist/chunk-XZAEEX2H.js +0 -13
- package/dist/chunk-YDMXW2Q4.js +0 -15
- package/dist/chunk-ZS3TIQQ4.js +0 -20
package/dist/ui/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import"../chunk-MXK7A6ZM.js";export{FormLayoutPage}from"../chunk-72LJMEL6.js";export{GalleryTemplate}from"../chunk-4QK4WNPB.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{AuthScreen}from"../chunk-KTCM64DQ.js";export{ChatTemplate}from"../chunk-IXOL7Y3Z.js";export{CheckoutTemplate}from"../chunk-KQOY4RGP.js";export{DashboardTemplate}from"../chunk-LT6PG6UW.js";export{DataTablePage}from"../chunk-B634WHJ2.js";export{EmailTemplate}from"../chunk-M4BPHBKI.js";export{ErrorBoundary}from"../chunk-ZXVJL7MS.js";export{ErrorPage}from"../chunk-ORIXCEKO.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-RQDVAUXD.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-JSG2AKCG.js";export{TopNav}from"../chunk-5CXFABVD.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-RRE2NNFS.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-TGGUYAWA.js";export{Stepper}from"../chunk-CRILBBSU.js";export{SettingReset}from"../chunk-DGNAUGZ3.js";export{SettingRow}from"../chunk-4TYIYL56.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-SXQZ5GTA.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-MTIP5DH2.js";import"../chunk-QWK6DRSN.js";export{MetricBar}from"../chunk-DQQKG46I.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-IMDGMUE3.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-K4JQ3FQI.js";export{PageHeader}from"../chunk-EN5NXWT6.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-NU5HN3FZ.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-SDDV3UCN.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-7TC3LJQM.js";export{ResizeHandle}from"../chunk-EKCQ7XBZ.js";export{HelpCenter}from"../chunk-4MBYFQOI.js";export{IconRail,IconRailButton}from"../chunk-T7PVHIXI.js";import"../chunk-FQEALPZJ.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-LJAYUDN2.js";export{EditableGrid}from"../chunk-MDV7UQJD.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-7KWYVQMX.js";export{GlobalSearch,openGlobalSearch}from"../chunk-3NRQNKVP.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{Card,StatCard}from"../chunk-P3RXXWXN.js";export{ContainerFillChart}from"../chunk-PCTOL2FX.js";export{CountBadge}from"../chunk-CLTRQ7AQ.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-7TZV6G2F.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-AWKJZSTO.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-ESZHN7PV.js";export{Avatar,AvatarGroup}from"../chunk-AFYLVV74.js";export{BudgetBar,budgetState}from"../chunk-UEISJFZH.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-T23TIJ4P.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{useRootIsDark}from"../chunk-UPXDDO3U.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{SplitButton_default as SplitButton}from"../chunk-RK7MN5L5.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-GOZO6LU2.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-L7XIGRIT.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-4EZIWLJJ.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-OBJGUJIE.js";export{WidthsBar}from"../chunk-JNQF5CBB.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-DUGYWX2R.js";export{Slider,SliderGroup}from"../chunk-X55LUERI.js";export{Snippet}from"../chunk-4TGZODSH.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-7GTUUBS2.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-3XTSXZAC.js";import"../chunk-FA5FBNWF.js";export{ImageLightbox,lightboxKind}from"../chunk-UGGHQYDN.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{Drawer}from"../chunk-V6Y4OC6K.js";export{EmptyState}from"../chunk-QVZKRROQ.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Breadcrumbs}from"../chunk-XYECIBVX.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{mediaLibraryMenu}from"../chunk-MS5APD3V.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-OPN4I565.js";export{RenameField}from"../chunk-UGBYAVJV.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-5F2AIDPY.js";export{MediaUsedInList}from"../chunk-VQBEZNHC.js";export{NumericKeypad}from"../chunk-47DO42IW.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-DANLBFBD.js";export{PositionInput}from"../chunk-DJW7CM3W.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{LinkPicker,TextLinkField}from"../chunk-FSUQTN34.js";export{SearchableSelect}from"../chunk-XZAEEX2H.js";export{NativeSelect,Select_default as Select}from"../chunk-M3JNILT2.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{CornersInput}from"../chunk-FT3QRQWY.js";export{DatePicker_default as DatePicker}from"../chunk-77AQNJE2.js";export{DateRangePicker,toISODate}from"../chunk-IBS7647X.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-SXNQHIBY.js";export{DisplayChips}from"../chunk-BTRV3SMB.js";export{FilePicker_default as FilePicker}from"../chunk-YCWALB3A.js";export{FormErrorSummary}from"../chunk-SAP4YI2Y.js";export{AlignmentGrid}from"../chunk-SYZLS2JA.js";export{BorderInput,borderSides,borderStartEach}from"../chunk-RHDM7HRD.js";export{IconPicker}from"../chunk-F3ZFCQGP.js";export{BrandAssetEditor}from"../chunk-KGSOOXA7.js";export{MediaUploadField}from"../chunk-CZMSOB2T.js";export{Segmented}from"../chunk-JQBVSPF5.js";import"../chunk-JDQGHQ2C.js";export{ImageFocusPoint}from"../chunk-XQZL6JDD.js";export{FormField}from"../chunk-6KBDNYRW.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar}from"../chunk-JH4ZCPHW.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-RYLTVHCV.js";export{Popover}from"../chunk-7JGR7WPD.js";export{InputNumber_default as InputNumber}from"../chunk-C6YAFZG3.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{useSort}from"../chunk-E6FDUFPH.js";export{slugify}from"../chunk-24AL3CDS.js";export{ENTRANCE_ATTR,ENTRANCE_FROM,ENTRANCE_FROM_ATTR,ENTRANCE_FROM_DEFAULT,ENTRANCE_KINDS,ENTRANCE_KINDS_WITH_FROM,ENTRANCE_STATE_ATTR,armEntrance,entranceAttrs,playEntrance,readEntrance}from"../chunk-Q2SCJQ5H.js";export{HOVER_MOTION,MOTION_EASING,MOTION_GROUPS,MOTION_TIMING,motionSeconds,rotateDegrees}from"../chunk-AIJ3G6BD.js";export{hexWithAlpha,mixHex,rgbToHex}from"../chunk-CJSZW3OS.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{fromDateKey,toDateKey}from"../chunk-2HMNOLKX.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{DataTable}from"../chunk-ZS3TIQQ4.js";export{Pagination}from"../chunk-LXL2UCUR.js";export{EntityList}from"../chunk-VAPSWR5Q.js";import"../chunk-TMMNCXQT.js";export{ResizableTable}from"../chunk-355CRSFS.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useColumnConfig}from"../chunk-UKBXQXDZ.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{Kanban}from"../chunk-54NMFQMW.js";export{ListFooter}from"../chunk-4ULRP4Y4.js";export{ListLoadError}from"../chunk-FXOYA2VJ.js";export{TreemapChart}from"../chunk-FO6UPEZH.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-4XNVIKZZ.js";export{RankedBars}from"../chunk-SL77N7VT.js";export{SankeyChart}from"../chunk-RPL4H6LE.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-HCXIXV4E.js";export{StatTile}from"../chunk-JFV5CQN4.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-WMHZA4EO.js";export{FunnelChart}from"../chunk-LGDMGDSV.js";export{HeatmapChart}from"../chunk-56KADF2B.js";export{HistogramChart}from"../chunk-EUAC2T5D.js";export{Meter}from"../chunk-OH5L6HYW.js";export{PieChart}from"../chunk-6EIZOX6W.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-YDMXW2Q4.js";export{RadialBarChart}from"../chunk-GELPD7EY.js";export{RangeChart}from"../chunk-PFKXPSOM.js";export{ChordChart}from"../chunk-IYXNRNAF.js";import"../chunk-EYPKBJYG.js";export{StepChain,StepChainItem}from"../chunk-RDYFZHT3.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-CD7UWMPX.js";export{Divider}from"../chunk-DFOFEBYX.js";export{ContextMenu,useContextMenu}from"../chunk-SS5SQMIB.js";export{Banner}from"../chunk-ZGOHRLXG.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-Q5Z3KHT2.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-MXGDFO6A.js";export{Input_default as Input}from"../chunk-NGLU2GKE.js";export{DropdownMenu}from"../chunk-WUAKIM2B.js";import"../chunk-OTVK7DJM.js";export{mediaFileName}from"../chunk-ZD36QKQS.js";export{TransferProgress}from"../chunk-PVPMJ5G2.js";export{IconButton_default as IconButton}from"../chunk-VCMHBUKI.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-JTMEFXRL.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-DU4WEVNS.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-GEYM4WN3.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-Y3JW2GW5.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-34H3CK7R.js";export{ChartBrush}from"../chunk-E6GDAV5R.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-VAK5FQXH.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-SX5BSWTN.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-3IUPYCW3.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-QYL26AB4.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-ZDMZM7HD.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-PLK2WHZG.js";export{Dialog}from"../chunk-7INZ7O3A.js";export{ItemCount}from"../chunk-P4VKU3SL.js";import"../chunk-3DVNXNTF.js";import"../chunk-ECJKIPWU.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";export{ColoredBadge}from"../chunk-BW47XJLH.js";import"../chunk-O3MBPAWZ.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-7ELJQL7J.js";import"../chunk-2QY5BJLA.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";import"../chunk-F3ZOO23R.js";export{VERSION}from"../chunk-LKTUUNGJ.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-JPNAEN53.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-G3KXB7SP.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{Button_default as Button}from"../chunk-7DI3VQCF.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-XWFLIGDQ.js";export{Icon}from"../chunk-2UO47XB4.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-CJH2BGXY.js";export{Tooltip}from"../chunk-QQ2LDC6C.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{setShellApiClient}from"../chunk-STKJA4PV.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{BoxPlotChart}from"../chunk-SHO35OPO.js";export{CandlestickChart}from"../chunk-TQE6O2JA.js";export{CartesianPlot}from"../chunk-RABYGQQU.js";import"../chunk-C764JODK.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{ChartTooltip}from"../chunk-WDQI3FV6.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
|
|
2
|
+
import"../chunk-MXK7A6ZM.js";export{FormLayoutPage}from"../chunk-B4D23ZLJ.js";export{GalleryTemplate}from"../chunk-MQHUVZWM.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{AuthScreen}from"../chunk-OZEPYQ7E.js";export{ChatTemplate}from"../chunk-GNWK77U7.js";export{CheckoutTemplate}from"../chunk-QL5E3MU3.js";export{DashboardTemplate}from"../chunk-DXFG4H4V.js";export{DataTablePage}from"../chunk-LNGLJA6K.js";export{EmailTemplate}from"../chunk-TKE3EF2U.js";export{ErrorBoundary}from"../chunk-KZ6JVHFI.js";export{ErrorPage}from"../chunk-FOHOSUK3.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-N5KO2IHG.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-H5YD72OP.js";export{TopNav}from"../chunk-HYXDKY2L.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-RKL47W7I.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-ZWLOVJWN.js";export{Stepper}from"../chunk-WDZUPDNC.js";export{SettingReset}from"../chunk-NFNDXE5O.js";export{SettingRow}from"../chunk-E2LRAOCL.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-MOL2ND6G.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-SJQKEIS7.js";import"../chunk-QWK6DRSN.js";export{MetricBar}from"../chunk-QIVIQUKB.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-O4OFURPC.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-Y2LWUBXX.js";export{PageHeader}from"../chunk-YKEB576T.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-ZM2NOLT6.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-4VF66WBB.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-7TC3LJQM.js";export{ResizeHandle}from"../chunk-WZMZ3N5B.js";export{HelpCenter}from"../chunk-KPFYXVCO.js";export{IconRail,IconRailButton}from"../chunk-RSJLN3EG.js";import"../chunk-FQEALPZJ.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-RQ6TC6RM.js";export{EditableGrid}from"../chunk-WMS2DCRV.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-7KWYVQMX.js";export{GlobalSearch,openGlobalSearch}from"../chunk-P7NO3NGC.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{Card,StatCard}from"../chunk-ZDDYTXPK.js";export{ContainerFillChart}from"../chunk-WTTXLWMK.js";export{CountBadge}from"../chunk-OYTRB237.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-A2SP4IZV.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-U6IJL4Q5.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-QIEAZN6Z.js";export{Avatar,AvatarGroup}from"../chunk-LZJCULO7.js";export{BudgetBar,budgetState}from"../chunk-PBMAMVSE.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-T23TIJ4P.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{useRootIsDark}from"../chunk-UPXDDO3U.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{SplitButton_default as SplitButton}from"../chunk-ZVEDA462.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-ABKFALDE.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-N7645DNN.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-4UKPDURO.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-IDRAW6MT.js";export{WidthsBar}from"../chunk-2V3LKX7G.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-U7T2ONAY.js";export{Slider,SliderGroup}from"../chunk-ZGQ6H2PU.js";export{Snippet}from"../chunk-YM4XIO4K.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-5CPRZ27M.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-YIFRSPUM.js";import"../chunk-EP5BHBZQ.js";export{ImageLightbox,lightboxKind}from"../chunk-MG4IUKVP.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{Drawer}from"../chunk-LCHU3ZG4.js";export{EmptyState}from"../chunk-LPTN55KO.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Breadcrumbs}from"../chunk-JJHPPTM6.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{mediaLibraryMenu}from"../chunk-ED6HJBCO.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-GPCTDEXQ.js";export{RenameField}from"../chunk-WYSNMIZN.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-IAUEISDQ.js";export{MediaUsedInList}from"../chunk-OUXSI6X4.js";export{NumericKeypad}from"../chunk-CFFT5OCV.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-ZRLWE3JM.js";export{PositionInput}from"../chunk-ONIL7WXO.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{LinkPicker,TextLinkField}from"../chunk-UGOSZLCD.js";export{SearchableSelect}from"../chunk-HYNUJY6W.js";export{NativeSelect,Select_default as Select}from"../chunk-G2BZ7NCM.js";import"../chunk-EO5RLFRX.js";import"../chunk-HWFBNYNI.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{CornersInput}from"../chunk-PTWKG635.js";export{DatePicker_default as DatePicker}from"../chunk-LVHQJ5TW.js";export{DateRangePicker,toISODate}from"../chunk-T2ZFXPQV.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-2JTG3U5L.js";export{DisplayChips}from"../chunk-V6LPIDZ6.js";export{FilePicker_default as FilePicker}from"../chunk-5DZN6ZDE.js";export{FormErrorSummary}from"../chunk-SDAX6BXF.js";export{AlignmentGrid}from"../chunk-RDKIYORS.js";export{BorderInput,borderSides,borderStartEach}from"../chunk-DGA4SO27.js";export{IconPicker}from"../chunk-QRZBLNOQ.js";export{BrandAssetEditor}from"../chunk-SIA3W7VE.js";export{MediaUploadField}from"../chunk-ABKCC7VB.js";export{Segmented}from"../chunk-S4FPYCUU.js";import"../chunk-JDQGHQ2C.js";export{ImageFocusPoint}from"../chunk-TURECNEK.js";export{FormField}from"../chunk-6KBDNYRW.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar}from"../chunk-PR42NIDL.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-IKKQ4P4R.js";export{Popover}from"../chunk-7JGR7WPD.js";export{InputNumber_default as InputNumber}from"../chunk-GV5VNWPG.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{useSort}from"../chunk-E6FDUFPH.js";export{slugify}from"../chunk-24AL3CDS.js";export{ENTRANCE_ATTR,ENTRANCE_FROM,ENTRANCE_FROM_ATTR,ENTRANCE_FROM_DEFAULT,ENTRANCE_KINDS,ENTRANCE_KINDS_WITH_FROM,ENTRANCE_STATE_ATTR,armEntrance,entranceAttrs,playEntrance,readEntrance}from"../chunk-Q2SCJQ5H.js";export{HOVER_MOTION,MOTION_EASING,MOTION_GROUPS,MOTION_TIMING,motionSeconds,rotateDegrees}from"../chunk-AIJ3G6BD.js";export{hexWithAlpha,mixHex,rgbToHex}from"../chunk-CJSZW3OS.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{BORDER_LINE_STYLES}from"../chunk-NOMWJTN2.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{fromDateKey,toDateKey}from"../chunk-2HMNOLKX.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{DataTable}from"../chunk-AJ6HMM4P.js";export{Pagination}from"../chunk-Z32K3LIJ.js";export{EntityList}from"../chunk-IXSSBGRD.js";import"../chunk-KMSK6QQB.js";export{ResizableTable}from"../chunk-UIN2LUCZ.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useColumnConfig}from"../chunk-UKBXQXDZ.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{Kanban}from"../chunk-JADBOQ7S.js";export{ListFooter}from"../chunk-L3RLB37Y.js";export{ListLoadError}from"../chunk-BAT5B2LE.js";export{WaterfallChart}from"../chunk-37JAU3U7.js";export{SankeyChart}from"../chunk-FSRHVB4A.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-A4FCXZSY.js";export{StatTile}from"../chunk-A65PRSKV.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-FBACFP4U.js";export{TreemapChart}from"../chunk-PEVWAJUR.js";export{squarify}from"../chunk-46BYGPGD.js";export{HeatmapChart}from"../chunk-YMBNVMFU.js";export{HistogramChart}from"../chunk-ZQJTLJUF.js";export{Meter}from"../chunk-SXBOODCJ.js";export{PieChart}from"../chunk-2CPYXRR2.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-NTKNM25F.js";export{RadialBarChart}from"../chunk-7QRKZOXR.js";export{RangeChart}from"../chunk-ALMBY7QO.js";export{RankedBars}from"../chunk-VTXCCFJ4.js";export{ChordChart}from"../chunk-5XVXYBIQ.js";import"../chunk-5PP435FL.js";export{FunnelChart}from"../chunk-WB6E6CSH.js";export{StepChain,StepChainItem}from"../chunk-HBS4HYQM.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-276JUQXK.js";export{Divider}from"../chunk-DFOFEBYX.js";export{ContextMenu,useContextMenu}from"../chunk-5MGNT7XM.js";export{Banner}from"../chunk-JGVKGEIV.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-Q5Z3KHT2.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-EOYGTVNS.js";export{Input_default as Input}from"../chunk-2UTCGWMZ.js";export{DropdownMenu}from"../chunk-IEHTZR5M.js";import"../chunk-DH2DKQKS.js";export{mediaFileName}from"../chunk-L433UT5E.js";export{TransferProgress}from"../chunk-OS2KE6QG.js";export{IconButton_default as IconButton}from"../chunk-LE5LWALR.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-RDTKMSEK.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-4L4GQW7P.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-GEYM4WN3.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-Y3JW2GW5.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-4LQRLYB4.js";export{ChartBrush}from"../chunk-MFDOGLFO.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-DWR6RVX5.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-PAC4LK2N.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-SZTIP6T7.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-NSYCJTHE.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-ZDMZM7HD.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-HTTICQBP.js";export{Dialog}from"../chunk-IH2KC3NQ.js";export{ItemCount}from"../chunk-UZ7TKJRO.js";import"../chunk-3DVNXNTF.js";import"../chunk-FRNSCVPN.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";export{ColoredBadge}from"../chunk-YGCVMPIU.js";import"../chunk-PC44XTGN.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-MWKLLAJT.js";import"../chunk-2QY5BJLA.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";import"../chunk-F3ZOO23R.js";export{VERSION}from"../chunk-N3OJ47VK.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-FZM3ZPW3.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-QVAOSKFO.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{Button_default as Button}from"../chunk-EOVXFXVV.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-TE6R53YD.js";export{Icon}from"../chunk-R64OZ6TC.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-WGLHB6WE.js";export{Tooltip}from"../chunk-NJN5IKWO.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{setShellApiClient}from"../chunk-STKJA4PV.js";export{BoxPlotChart}from"../chunk-BXTSBORU.js";export{CandlestickChart}from"../chunk-HRXQCHKI.js";export{ChartTooltip}from"../chunk-36VIGB6J.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";export{CartesianPlot}from"../chunk-WQGBYFS3.js";import"../chunk-EMUZJMR3.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-VNTJ7QO5.js";import"../chunk-C3QOHMR6.js";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{APP_VERSION,VERSION}from"./chunk-
|
|
1
|
+
export{APP_VERSION,VERSION}from"./chunk-N3OJ47VK.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efficient-shell",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.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",
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-WOXQODYQ.js";import{useWidgetSettings as n}from"./chunk-IDI3IOY4.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-QYL26AB4.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-2E2SUEEE.js";import"./chunk-PLK2WHZG.js";import"./chunk-7INZ7O3A.js";import"./chunk-P4VKU3SL.js";import"./chunk-3DVNXNTF.js";import"./chunk-ECJKIPWU.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-BW47XJLH.js";import"./chunk-O3MBPAWZ.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-KC3EX26K.js";import"./chunk-F3ZOO23R.js";import"./chunk-JPNAEN53.js";import"./chunk-CDAJKLGL.js";import"./chunk-G3KXB7SP.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-7DI3VQCF.js";import"./chunk-UQYNPYF4.js";import"./chunk-XWFLIGDQ.js";import{Icon as r}from"./chunk-2UO47XB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-CJH2BGXY.js";import"./chunk-QQ2LDC6C.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-TWVUQUUD.js";import"./chunk-GDQJBQ5B.js";import"./chunk-C3QOHMR6.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import{useState as c,useRef as i,useCallback as o,useEffect as s}from"react";import{jsxs as l,Fragment as a,jsx as u}from"react/jsx-runtime";var h="calc_appearance";function m(){const[m,k]=c("0"),[p,d]=c(null),[b,g]=c(null),[j,N]=c(!1),[y,x]=c(""),[C,f]=c([]),[v,$]=c(!1),[D,E]=c(()=>e(h)),[W,Q]=c(!1),[B,J]=c(D),L=i(null);n(o(()=>{J({...D}),Q(!0)},[D]));const S=o(e=>{x(""),k(t=>j||"0"===t?(N(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[j]),T=o(()=>{k("0"),d(null),g(null),N(!1)},[]),X=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(m);if(null!==p&&b&&!j){const e=X(p,t,b);k(String(e)),d(e),f(n=>[`${p} ${b} ${t} = ${e}`,...n].slice(0,20))}else d(t);g(e),N(!0)},[m,p,b,j,X]),A=o(()=>{if(null===p||!b)return;const e=parseFloat(m),t=X(p,e,b),n=`${p} ${b} ${e} =`;f(e=>[`${n} ${t}`,...e].slice(0,20)),x(n),k(String(t)),d(null),g(null),N(!0)},[m,p,b,X]),U=o(()=>{k(e=>String(parseFloat(e)/100))},[]),F=o(()=>{k(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);s(()=>{const e=e=>{const t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t&&(e.key>="0"&&e.key<="9"?S(e.key):"."===e.key?S("."):"+"===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&&L.current?.contains(e.target)&&e.preventDefault(),A()):"Escape"===e.key?T():"Backspace"===e.key?k(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&U())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[S,w,A,T,U]);const G="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",P=`${G} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,K=`${G} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,O=`${G} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,H=`${G} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
|
|
2
|
-
return l(a,{children:[
|
|
3
|
-
/* @__PURE__ */l("div",{ref:L,className:"flex flex-col h-full",style:{opacity:D.activeOpacity/100,backdropFilter:D.activeBlur>0?`blur(${D.activeBlur}px)`:void 0},children:[
|
|
4
|
-
/* @__PURE__ */l("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__ */u("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:C.slice(0,3).reverse().map((e,t)=>/* @__PURE__ */u("div",{className:"text-2xs text-slate-400 text-right font-mono truncate",children:e},t))}),(y||b&&null!==p)&&/* @__PURE__ */u("div",{className:"text-base text-slate-600 text-right font-mono",children:y||`${p} ${b} ${j?"":m}`}),
|
|
6
|
-
/* @__PURE__ */l("div",{className:"flex items-center gap-2",children:[
|
|
7
|
-
/* @__PURE__ */u("button",{onClick:()=>{navigator.clipboard.writeText(m),$(!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__ */u(r,v?{name:"check",className:"h-5 w-5 text-green-500",strokeWidth:2}:{name:"copy",className:"h-5 w-5",strokeWidth:2})}),
|
|
8
|
-
/* @__PURE__ */u("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)})(m)})]})]}),
|
|
9
|
-
/* @__PURE__ */l("div",{className:"grid grid-cols-4 grid-rows-5 gap-2 flex-1 min-h-0 p-2",children:[
|
|
10
|
-
/* @__PURE__ */u("button",{onClick:T,className:O,children:"AC"}),
|
|
11
|
-
/* @__PURE__ */u("button",{onClick:F,className:O,children:"+/−"}),
|
|
12
|
-
/* @__PURE__ */u("button",{onClick:U,className:O,children:"%"}),
|
|
13
|
-
/* @__PURE__ */u("button",{onClick:()=>w("÷"),className:`${K} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
|
|
14
|
-
/* @__PURE__ */u("button",{onClick:()=>S("7"),className:P,children:"7"}),
|
|
15
|
-
/* @__PURE__ */u("button",{onClick:()=>S("8"),className:P,children:"8"}),
|
|
16
|
-
/* @__PURE__ */u("button",{onClick:()=>S("9"),className:P,children:"9"}),
|
|
17
|
-
/* @__PURE__ */u("button",{onClick:()=>w("×"),className:`${K} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
|
|
18
|
-
/* @__PURE__ */u("button",{onClick:()=>S("4"),className:P,children:"4"}),
|
|
19
|
-
/* @__PURE__ */u("button",{onClick:()=>S("5"),className:P,children:"5"}),
|
|
20
|
-
/* @__PURE__ */u("button",{onClick:()=>S("6"),className:P,children:"6"}),
|
|
21
|
-
/* @__PURE__ */u("button",{onClick:()=>w("-"),className:`${K} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
|
|
22
|
-
/* @__PURE__ */u("button",{onClick:()=>S("1"),className:P,children:"1"}),
|
|
23
|
-
/* @__PURE__ */u("button",{onClick:()=>S("2"),className:P,children:"2"}),
|
|
24
|
-
/* @__PURE__ */u("button",{onClick:()=>S("3"),className:P,children:"3"}),
|
|
25
|
-
/* @__PURE__ */u("button",{onClick:()=>w("+"),className:`${K} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
|
|
26
|
-
/* @__PURE__ */u("button",{onClick:()=>S("0"),className:`${P} col-span-2`,children:"0"}),
|
|
27
|
-
/* @__PURE__ */u("button",{onClick:()=>S("."),className:P,children:"."}),
|
|
28
|
-
/* @__PURE__ */u("button",{onClick:A,className:H,children:"="})]})]}),
|
|
29
|
-
/* @__PURE__ */u(t,{open:W,onClose:()=>Q(!1),title:"Calculator Settings",appearance:B,onAppearanceChange:J,onSave:()=>{E(B),localStorage.setItem(h,JSON.stringify(B)),Q(!1)}})]})}export{m as default};
|
package/dist/Files-YQWVU6KZ.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import{openPreviewFile as e}from"./chunk-EOWUUOVE.js";import{SidebarLayout as t}from"./chunk-SXQZ5GTA.js";import"./chunk-QWK6DRSN.js";import"./chunk-EKCQ7XBZ.js";import{Breadcrumbs as n}from"./chunk-XYECIBVX.js";import{formatBytes as a}from"./chunk-GEYM4WN3.js";import"./chunk-Y3JW2GW5.js";import"./chunk-36BRD5J3.js";import"./chunk-LF27WIN2.js";import{getFilesDemoTree as r}from"./chunk-5H4SWQGM.js";import{AboutApp as i}from"./chunk-N7U622NC.js";import{peekFilesViewRequest as s,consumeFilesViewRequest as o,FILES_SHOW_TRASH_EVENT as l,FILES_OPEN_DESKTOP_FOLDER_EVENT as c,subscribeDesktopFolders as d,getDesktopFoldersSnapshot as m,FolderGlyph as h,DesktopItemMiniIcon as p,desktopItemTypeLabel as u}from"./chunk-JFBL4PR3.js";import"./chunk-ESL5TDNA.js";import"./chunk-VTVSMRFX.js";import{useWindowManager as f,WindowTitle as x}from"./chunk-IDI3IOY4.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-QYL26AB4.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-2E2SUEEE.js";import{confirm as k,prompt as g}from"./chunk-PLK2WHZG.js";import"./chunk-7INZ7O3A.js";import{ItemCount as b}from"./chunk-P4VKU3SL.js";import"./chunk-3DVNXNTF.js";import"./chunk-ECJKIPWU.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-BW47XJLH.js";import"./chunk-O3MBPAWZ.js";import{toast_default as y}from"./chunk-7ELJQL7J.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-KC3EX26K.js";import"./chunk-F3ZOO23R.js";import"./chunk-LKTUUNGJ.js";import"./chunk-JPNAEN53.js";import"./chunk-CDAJKLGL.js";import"./chunk-G3KXB7SP.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-7DI3VQCF.js";import"./chunk-UQYNPYF4.js";import"./chunk-XWFLIGDQ.js";import{Icon as N}from"./chunk-2UO47XB4.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as w}from"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import{TH_ONE_LINE as v}from"./chunk-CJH2BGXY.js";import"./chunk-QQ2LDC6C.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-TWVUQUUD.js";import"./chunk-GDQJBQ5B.js";import"./chunk-C3QOHMR6.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import{useState as j,useEffect as $,useSyncExternalStore as C,useRef as L,useCallback as D}from"react";import{jsxs as E,jsx as T,Fragment as W}from"react/jsx-runtime";var R="undefined"!=typeof window&&window.__REACT_OS_SHELL_FILE_SERVER__||"http://localhost:4000",P={pdf:"pdf",dxf:"dxf",csv:"csv",jpg:"image",jpeg:"image",png:"image",gif:"image",webp:"image",svg:"image",avif:"image",bmp:"image",stp:"3d",step:"3d",stl:"3d",obj:"3d",gltf:"3d",glb:"3d","3mf":"3d",iges:"3d",igs:"3d",ply:"3d",fbx:"3d"};function S(e,t){return"/"===e||""===e?"/"+t:e.replace(/\/$/,"")+"/"+t}function U(e){if(!e)return"—";try{const t=new Date(e);return isNaN(t.getTime())?"—":t.toLocaleString(void 0,{dateStyle:"short",timeStyle:"short"})}catch{return e}}function F(){const F=R.replace(/\/$/,""),I=null!==r(),[M,A]=j("/"),[O,J]=j([]),[B,Q]=j([]),[V,G]=j(null),[K,X]=j(!0),[H,Z]=j(!1),[Y,z]=j(null),[_,q]=j(!1),[ee,te]=j(()=>{const e=s();return"trash"===e?"trash":e?{desktopFolderId:e.folderId}:"files"});$(()=>{o()},[]);const[ne,ae]=j([]);$(()=>{const e=()=>{o(),te("trash")},t=e=>{o();const t=e.detail?.folderId;t&&te({desktopFolderId:t})};return window.addEventListener(l,e),window.addEventListener(c,t),()=>{window.removeEventListener(l,e),window.removeEventListener(c,t)}},[]);const re=C(d,m,m),ie="object"==typeof ee?ee.desktopFolderId:null,se=ie?re?.folders.find(e=>e.id===ie)??null:null,oe=ie&&re?.itemsByFolder[ie]||[];$(()=>{ie&&re&&!re.folders.some(e=>e.id===ie)&&te("files")},[ie,re]);const le=L(0),ce=L(null),{openPage:de,openEntity:me}=f(),he=t=>{"preview-file"===t.entityType&&t.filePath&&t.fileKind?e({filePath:t.filePath,filename:t.label,kind:t.fileKind,onStaged:e=>de(e)}):"page"===t.entityType?de(t.entityId):me(t.entityType,t.entityId,null,t.label)},pe=D((e,t={})=>fetch(e,{...t,credentials:"include"}),[]),ue=D(async()=>{try{const e=await pe(`${F}/api/quota`);if(e.ok){const t=await e.json();z({used:t.used,limit:t.limit})}}catch{}},[pe,F]),fe=D(async e=>{if(G(null),I){const t=function(e){const t=r();if(!t)return[];let n=t;for(const t of e.split("/").filter(Boolean)){const e=n.find(e=>"folder"===e.kind&&e.name===t);if(!e||!e.children)return[];n=e.children}return n.map(e=>({name:e.name,kind:e.kind,size:e.size??0,modifiedAt:e.modifiedAt??""}))}(e);return J(t),A(e),Z(!1),X(!1),void("/"===e&&Q(t.filter(e=>"folder"===e.kind).map(e=>e.name)))}X(!0);try{const t=await pe(`${F}/api/files?path=${encodeURIComponent(e)}`);if(!t.ok){const e=await t.json().catch(()=>({}));return void y.error(e.error||`Failed to list (${t.status})`)}const n=await t.json(),a=n.entries||[];J(a),A(n.path||e),Z(!1),"/"===(n.path||e)&&Q(a.filter(e=>"folder"===e.kind).map(e=>e.name))}catch(e){Z(!0)}finally{X(!1)}ue()},[pe,F,ue,I]),xe=D(async()=>{if(I)return ae([]),void X(!1);X(!0),G(null);try{const e=await pe(`${F}/api/trash`);if(!e.ok){const t=await e.json().catch(()=>({}));return void y.error(t.error||`Failed to list trash (${e.status})`)}const t=await e.json();ae(t.entries||[]),Z(!1)}catch{Z(!0)}finally{X(!1)}ue()},[pe,F,ue,I]);$(()=>{"files"===ee?fe(M):"trash"===ee&&xe()},[M,ee]);const ke=async e=>{const t=S(M,e.name);try{const n=await pe(`${F}/api/file?path=${encodeURIComponent(t)}`);if(!n.ok)return void y.error(`Download failed (${n.status})`);const a=await n.blob(),r=URL.createObjectURL(a),i=document.createElement("a");i.href=r,i.download=e.name,i.click(),setTimeout(()=>URL.revokeObjectURL(r),1e3)}catch(e){y.error(e?.message||"Download failed")}},ge=async e=>{const t=Array.from(e);for(const e of t){const t=new FormData;t.append("file",e);try{const n=await pe(`${F}/api/upload?path=${encodeURIComponent(M)}`,{method:"POST",body:t});if(!n.ok){const t=await n.json().catch(()=>({}));if(413===n.status){const n=Math.max(0,(t.limit||0)-(t.used||0));y.error(`Quota exceeded — ${a(n)} free, ${e.name} is ${a(t.attempted||e.size)}`)}else y.error(`Upload ${e.name}: ${t.error||n.status}`)}}catch(t){y.error(`Upload ${e.name}: ${t?.message||"failed"}`)}}fe(M)},be=()=>{le.current=0,q(!1)};if($(()=>{const e=()=>be();return window.addEventListener("dragend",e),window.addEventListener("drop",e),()=>{window.removeEventListener("dragend",e),window.removeEventListener("drop",e)}},[]),H)/* @__PURE__ */
|
|
2
|
-
return E("div",{className:"flex flex-col h-full bg-white",children:[
|
|
3
|
-
/* @__PURE__ */T(x,{title:"Files - offline"}),
|
|
4
|
-
/* @__PURE__ */T("div",{className:"flex-1 flex items-center justify-center p-8 text-center",children:/* @__PURE__ */E("div",{className:"max-w-md",children:[
|
|
5
|
-
/* @__PURE__ */T(N,{name:"close-circle",className:"h-12 w-12 mx-auto text-gray-300 mb-3",strokeWidth:1.4}),
|
|
6
|
-
/* @__PURE__ */T("h3",{className:"text-base font-semibold text-gray-800 mb-1",children:"Can't reach the file server"}),
|
|
7
|
-
/* @__PURE__ */E("p",{className:"text-sm text-gray-500 mb-3",children:["No response from ",
|
|
8
|
-
/* @__PURE__ */T("span",{className:"font-mono",children:F}),". Make sure the server is running — see ",
|
|
9
|
-
/* @__PURE__ */T("span",{className:"font-mono",children:"examples/file-server/README.md"}),"."]}),
|
|
10
|
-
/* @__PURE__ */T("button",{onClick:()=>fe(M),className:"px-3 h-8 text-sm bg-blue-500 text-on-accent rounded hover:bg-blue-600",children:"Retry"})]})})]});const ye="/"===M?[]:M.split("/").filter(Boolean),Ne=Y&&Y.limit>0?Math.min(100,Math.round(Y.used/Y.limit*100)):0,we=Ne>90?"bg-red-500":Ne>75?"bg-amber-500":"bg-blue-500",ve=[{label:"My files",onClick:()=>A("/")},...ye.map((e,t)=>({label:e,onClick:()=>A("/"+ye.slice(0,t+1).join("/"))}))],je=e=>"flex w-full items-center gap-2 rounded-md px-3 min-h-(--row-height-menu) py-2 text-left text-sm transition-colors "+(e?"bg-blue-50 font-medium text-blue-700":"text-gray-700 hover:bg-gray-100"),$e=e=>/* @__PURE__ */T("svg",{className:"h-4 w-4 shrink-0 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.6,children:/* @__PURE__ */T("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})}),Ce=/* @__PURE__ */E("nav",{className:"p-2",children:[
|
|
11
|
-
/* @__PURE__ */T("div",{className:"px-2 py-2 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:"Locations"}),
|
|
12
|
-
/* @__PURE__ */E("button",{onClick:()=>{te("files"),A("/")},className:je("files"===ee&&"/"===M),children:[$e("M2.25 12l8.954-8.955a1.5 1.5 0 012.122 0L21.75 12M4.5 9.75v9.75a.75.75 0 00.75.75H9V15a.75.75 0 01.75-.75h4.5A.75.75 0 0115 15v5.25h3.75a.75.75 0 00.75-.75V9.75"),"My files"]}),B.map(e=>/* @__PURE__ */E("button",{onClick:()=>{te("files"),A("/"+e)},className:je("files"===ee&&M==="/"+e),children:[$e("M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"),
|
|
13
|
-
/* @__PURE__ */T("span",{className:"truncate",children:e})]},e)),!I&&/* @__PURE__ */E("button",{onClick:()=>te("trash"),className:je("trash"===ee),children:[$e("M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79"),"Trash"]}),re&&re.folders.length>0&&/* @__PURE__ */E(W,{children:[
|
|
14
|
-
/* @__PURE__ */T("div",{className:"px-2 pt-3 pb-2 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:"Desktop"}),re.folders.map(e=>/* @__PURE__ */E("button",{onClick:()=>te({desktopFolderId:e.id}),className:je(ie===e.id),children:[
|
|
15
|
-
/* @__PURE__ */T(h,{className:"h-4 w-4 shrink-0 text-amber-500"}),
|
|
16
|
-
/* @__PURE__ */T("span",{className:"truncate",children:e.name}),
|
|
17
|
-
/* @__PURE__ */T(b,{count:e.itemCount,active:ie===e.id,className:"ml-auto"})]},e.id))]})]});/* @__PURE__ */
|
|
18
|
-
return E("div",{className:"relative flex flex-col h-full bg-white",onDragEnter:e=>{I||"object"==typeof ee||e.dataTransfer?.types?.includes?.("Files")&&(e.preventDefault(),le.current++,_||q(!0))},onDragOver:e=>{e.dataTransfer?.types?.includes?.("Files")&&e.preventDefault()},onDragLeave:()=>{le.current>0&&le.current--,0===le.current&&q(!1)},onDrop:e=>{e.preventDefault(),be(),I||"object"==typeof ee||e.dataTransfer.files?.length&&ge(e.dataTransfer.files)},children:[
|
|
19
|
-
/* @__PURE__ */T(x,{title:se?`Files - ${se.name}`:"Files"+("/"===M?"":" - "+M)}),
|
|
20
|
-
/* @__PURE__ */T(i,{app:"files"}),
|
|
21
|
-
/* @__PURE__ */T("input",{ref:ce,type:"file",multiple:!0,className:"hidden",onChange:e=>{e.target.files?.length&&ge(e.target.files),ce.current&&(ce.current.value="")}}),
|
|
22
|
-
/* @__PURE__ */T("div",{className:"flex-1 min-h-0",children:/* @__PURE__ */T(t,{sidebar:Ce,storageKey:"files.sidebarWidth",defaultWidth:200,minWidth:150,maxWidth:320,children:/* @__PURE__ */E("div",{className:"flex h-full min-w-0 flex-col",children:[
|
|
23
|
-
/* @__PURE__ */E("div",{className:"flex items-center gap-1 px-2 py-2 border-b border-line bg-surface-sunken shrink-0 text-xs",children:[/* @__PURE__ */E(W,"files"===ee?{children:[
|
|
24
|
-
/* @__PURE__ */T("button",{onClick:()=>A(function(e){if("/"===e||""===e)return"/";const t=e.replace(/\/$/,""),n=t.lastIndexOf("/");return n<=0?"/":t.slice(0,n)}(M)),disabled:"/"===M,className:"px-2 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",title:"Parent folder",children:/* @__PURE__ */T(N,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
25
|
-
/* @__PURE__ */T("div",{className:"flex-1 min-w-0",children:/* @__PURE__ */T(n,{items:ve,maxItems:5})}),
|
|
26
|
-
/* @__PURE__ */T("button",{onClick:()=>fe(M),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Refresh",children:/* @__PURE__ */T(N,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),!I&&/* @__PURE__ */E(W,{children:[
|
|
27
|
-
/* @__PURE__ */E("button",{onClick:()=>te("trash"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600 flex items-center gap-1",title:"Open trash",children:[
|
|
28
|
-
/* @__PURE__ */T(N,{name:"trash",className:"h-3.5 w-3.5",strokeWidth:1.5}),"Trash"]}),
|
|
29
|
-
/* @__PURE__ */E("button",{onClick:async()=>{const e=await g({title:"New folder",placeholder:"Folder name",confirmLabel:"Create"});if(!e)return;if(/[\\/]/.test(e))return void y.error("Folder names cannot contain slashes");const t=S(M,e),n=await pe(`${F}/api/folder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t})});if(!n.ok){const e=await n.json().catch(()=>({}));return void y.error(e.error||`Create folder failed (${n.status})`)}fe(M)},className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600 flex items-center gap-1",children:[
|
|
30
|
-
/* @__PURE__ */T(N,{name:"folder-plus",className:"h-3.5 w-3.5",strokeWidth:1.5}),"New Folder"]}),
|
|
31
|
-
/* @__PURE__ */E("button",{onClick:()=>ce.current?.click(),className:"px-2 py-1 rounded bg-blue-500 text-white hover:bg-blue-600 flex items-center gap-1",children:[
|
|
32
|
-
/* @__PURE__ */T(N,{name:"upload",className:"h-3.5 w-3.5",strokeWidth:1.8}),"Upload"]})]})]}:"trash"===ee?{children:[
|
|
33
|
-
/* @__PURE__ */T("button",{onClick:()=>te("files"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Back to files",children:/* @__PURE__ */T(N,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
34
|
-
/* @__PURE__ */T("span",{className:"flex-1 text-gray-700 font-medium px-2",children:"Trash"}),
|
|
35
|
-
/* @__PURE__ */T("button",{onClick:xe,className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Refresh",children:/* @__PURE__ */T(N,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),
|
|
36
|
-
/* @__PURE__ */T("button",{onClick:async()=>{if(0===ne.length)return;if(!await k({title:"Empty trash",message:`${ne.length} item${1===ne.length?"":"s"} will be permanently removed. This can't be undone.`,confirmLabel:"Empty trash",variant:"danger"}))return;const e=await pe(`${F}/api/trash`,{method:"DELETE"});if(!e.ok){const t=await e.json().catch(()=>({}));return void y.error(t.error||`Empty trash failed (${e.status})`)}xe()},disabled:0===ne.length,className:"px-2 py-1 rounded text-red-600 hover:bg-red-50 disabled:opacity-30 flex items-center gap-1",children:"Empty trash"})]}:{children:[
|
|
37
|
-
/* @__PURE__ */T("button",{onClick:()=>te("files"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Back to files",children:/* @__PURE__ */T(N,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
38
|
-
/* @__PURE__ */T(h,{className:"h-4 w-4 text-amber-500 ml-1"}),
|
|
39
|
-
/* @__PURE__ */T("span",{className:"flex-1 text-gray-700 font-medium px-1 truncate",children:se?.name??"Desktop folder"}),
|
|
40
|
-
/* @__PURE__ */T("span",{className:"text-2xs text-ink-faintest px-2",children:"Desktop shortcuts"})]}),Y&&/* @__PURE__ */E(W,{children:[
|
|
41
|
-
/* @__PURE__ */T("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
|
|
42
|
-
/* @__PURE__ */E("div",{className:"flex items-center gap-2",title:`${a(Y.used)} of ${a(Y.limit)} used`,children:[
|
|
43
|
-
/* @__PURE__ */T("div",{className:"w-20 h-1.5 rounded-full bg-gray-200 overflow-hidden",children:/* @__PURE__ */T("div",{className:`h-full ${we} transition-all`,style:{width:`${Ne}%`}})}),
|
|
44
|
-
/* @__PURE__ */E("span",{className:"text-2xs text-ink-faint tabular-nums whitespace-nowrap",children:[a(Y.used)," / ",a(Y.limit)]})]})]})]}),
|
|
45
|
-
/* @__PURE__ */T("div",{className:"flex-1 overflow-auto",children:"object"==typeof ee?0===oe.length?/* @__PURE__ */T("div",{className:"p-10 text-center text-sm text-gray-400",children:"This desktop folder is empty. Drag shortcuts onto it on the desktop."}):/* @__PURE__ */E("table",{className:"w-full text-sm",children:[
|
|
46
|
-
/* @__PURE__ */T("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */E("tr",{children:[
|
|
47
|
-
/* @__PURE__ */T("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Name"}),
|
|
48
|
-
/* @__PURE__ */T("th",{className:`${v} text-left font-medium px-3 h-8 w-28`,children:"Type"}),
|
|
49
|
-
/* @__PURE__ */T("th",{className:`${v} w-56`})]})}),
|
|
50
|
-
/* @__PURE__ */T("tbody",{children:oe.map(e=>{const t=`${e.entityType}|${e.entityId}`;/* @__PURE__ */
|
|
51
|
-
return E("tr",{onClick:()=>G(t),onDoubleClick:()=>he(e),className:"cursor-default border-b border-gray-100 "+(V===t?"bg-blue-50":"hover:bg-gray-50"),children:[
|
|
52
|
-
/* @__PURE__ */E("td",{className:"px-3 h-8 flex items-center gap-2",children:[
|
|
53
|
-
/* @__PURE__ */T(p,{item:e}),
|
|
54
|
-
/* @__PURE__ */T("span",{className:"truncate",title:e.label,children:e.label})]}),
|
|
55
|
-
/* @__PURE__ */T("td",{className:"px-3 h-8 text-xs text-ink-faint",children:u(e)}),
|
|
56
|
-
/* @__PURE__ */E("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
|
|
57
|
-
/* @__PURE__ */T("button",{onClick:t=>{t.stopPropagation(),he(e)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-blue-600 text-2xs",children:"Open"}),
|
|
58
|
-
/* @__PURE__ */T("button",{onClick:t=>{t.stopPropagation(),re?.moveToDesktop([e])},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-ink-faint text-2xs ml-1",children:"Move to desktop"}),
|
|
59
|
-
/* @__PURE__ */T("button",{onClick:t=>{t.stopPropagation(),re?.removeShortcuts([e])},className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Remove"})]})]},t)})})]}):"trash"===ee?K&&0===ne.length?/* @__PURE__ */T(w,{size:"sm",padding:"p-6",label:"Loading"}):0===ne.length?/* @__PURE__ */T("div",{className:"p-10 text-center text-sm text-gray-400",children:"Trash is empty."}):/* @__PURE__ */E("table",{className:"w-full text-sm",children:[
|
|
60
|
-
/* @__PURE__ */T("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */E("tr",{children:[
|
|
61
|
-
/* @__PURE__ */T("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Name"}),
|
|
62
|
-
/* @__PURE__ */T("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Original location"}),
|
|
63
|
-
/* @__PURE__ */T("th",{className:`${v} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
|
|
64
|
-
/* @__PURE__ */T("th",{className:`${v} text-right font-medium px-3 h-8 w-40`,children:"Deleted"}),
|
|
65
|
-
/* @__PURE__ */T("th",{className:`${v} w-44`})]})}),
|
|
66
|
-
/* @__PURE__ */T("tbody",{children:ne.map(e=>/* @__PURE__ */E("tr",{className:"border-b border-gray-100 hover:bg-gray-50",children:[
|
|
67
|
-
/* @__PURE__ */E("td",{className:"px-3 h-8 flex items-center gap-2",children:["folder"===e.kind?/* @__PURE__ */T(N,{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}):/* @__PURE__ */T(N,{name:"page",className:"h-4 w-4 text-ink-faintest shrink-0",strokeWidth:1.5}),
|
|
68
|
-
/* @__PURE__ */T("span",{className:"truncate",title:e.name,children:e.name})]}),
|
|
69
|
-
/* @__PURE__ */T("td",{className:"px-3 h-8 text-ink-faint text-xs font-mono truncate",title:e.originalPath,children:e.originalPath||"—"}),
|
|
70
|
-
/* @__PURE__ */T("td",{className:"px-3 h-8 text-right tabular-nums text-ink-faint",children:a(e.size)}),
|
|
71
|
-
/* @__PURE__ */T("td",{className:"px-3 h-8 text-right text-ink-faint tabular-nums",children:e.deletedAt?U(e.deletedAt):"—"}),
|
|
72
|
-
/* @__PURE__ */E("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
|
|
73
|
-
/* @__PURE__ */T("button",{onClick:()=>(async e=>{const t=await pe(`${F}/api/trash/restore`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e.id})});if(!t.ok){const e=await t.json().catch(()=>({}));return void y.error(e.error||`Restore failed (${t.status})`)}y.success(`Restored "${e.name}"`),xe()})(e),className:"px-2 py-0.5 rounded hover:bg-gray-200 text-blue-600 text-2xs",children:"Restore"}),
|
|
74
|
-
/* @__PURE__ */T("button",{onClick:()=>(async e=>{if(!await k({title:"Permanently delete",message:`"${e.name}" will be permanently removed. This can't be undone.`,confirmLabel:"Delete forever",variant:"danger"}))return;const t=await pe(`${F}/api/trash/${encodeURIComponent(e.id)}`,{method:"DELETE"});if(!t.ok){const e=await t.json().catch(()=>({}));return void y.error(e.error||`Delete failed (${t.status})`)}xe()})(e),className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Delete forever"})]})]},e.id))})]}):K&&0===O.length?/* @__PURE__ */T(w,{size:"sm",padding:"p-6",label:"Loading"}):0===O.length?/* @__PURE__ */E("div",{className:"p-10 text-center text-sm text-gray-400",children:["Empty folder.",!I&&/* @__PURE__ */E(W,{children:[" Drop files here or click ",
|
|
75
|
-
/* @__PURE__ */T("span",{className:"font-medium",children:"Upload"}),"."]})]}):/* @__PURE__ */E("table",{className:"w-full text-sm",children:[
|
|
76
|
-
/* @__PURE__ */T("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */E("tr",{children:[
|
|
77
|
-
/* @__PURE__ */T("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Name"}),
|
|
78
|
-
/* @__PURE__ */T("th",{className:`${v} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
|
|
79
|
-
/* @__PURE__ */T("th",{className:`${v} text-right font-medium px-3 h-8 w-40`,children:"Modified"}),
|
|
80
|
-
/* @__PURE__ */T("th",{className:`${v} w-32`})]})}),
|
|
81
|
-
/* @__PURE__ */T("tbody",{children:O.map(t=>/* @__PURE__ */E("tr",{onClick:()=>G(t.name),onDoubleClick:()=>{"folder"===t.kind?A(S(M,t.name)):(async t=>{if(I)return;const n=S(M,t.name),a=(t.name.split(".").pop()||"").toLowerCase(),r=P[a];r?await e({filePath:n,filename:t.name,kind:r,onStaged:e=>de(e)}):ke(t)})(t)},className:"cursor-default border-b border-gray-100 "+(V===t.name?"bg-blue-50":"hover:bg-gray-50"),children:[
|
|
82
|
-
/* @__PURE__ */E("td",{className:"px-3 h-8 flex items-center gap-2",children:["folder"===t.kind?/* @__PURE__ */T(N,{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}):/* @__PURE__ */T(N,{name:"page",className:"h-4 w-4 text-ink-faintest shrink-0",strokeWidth:1.5}),
|
|
83
|
-
/* @__PURE__ */T("span",{className:"truncate",title:t.name,children:t.name})]}),
|
|
84
|
-
/* @__PURE__ */T("td",{className:"px-3 h-8 text-right tabular-nums text-ink-faint",children:"folder"===t.kind?"—":a(t.size)}),
|
|
85
|
-
/* @__PURE__ */T("td",{className:"px-3 h-8 text-right text-ink-faint tabular-nums",children:U(t.modifiedAt)}),
|
|
86
|
-
/* @__PURE__ */T("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:!I&&/* @__PURE__ */E(W,{children:["file"===t.kind&&/* @__PURE__ */T("button",{onClick:e=>{e.stopPropagation(),ke(t)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-ink-faint text-2xs",children:"Download"}),
|
|
87
|
-
/* @__PURE__ */T("button",{onClick:e=>{e.stopPropagation(),(async e=>{const t=await g({title:`Rename ${e.kind}`,defaultValue:e.name,confirmLabel:"Rename"});if(!t||t===e.name)return;if(/[\\/]/.test(t))return void y.error("Names cannot contain slashes");const n=S(M,e.name),a=S(M,t),r=await pe(`${F}/api/rename`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:n,to:a})});if(!r.ok){const e=await r.json().catch(()=>({}));return void y.error(e.error||`Rename failed (${r.status})`)}fe(M)})(t)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-ink-faint text-2xs ml-1",children:"Rename"}),
|
|
88
|
-
/* @__PURE__ */T("button",{onClick:e=>{e.stopPropagation(),(async e=>{if(!await k({title:`Delete ${e.kind}`,message:`"${e.name}"${"folder"===e.kind?" and everything inside":""} will be permanently removed.`,confirmLabel:"Delete",variant:"danger"}))return;const t=S(M,e.name),n=await pe(`${F}/api/files?path=${encodeURIComponent(t)}`,{method:"DELETE"});if(!n.ok){const e=await n.json().catch(()=>({}));return void y.error(e.error||`Delete failed (${n.status})`)}fe(M)})(t)},className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Delete"})]})})]},t.name))})]})})]})})}),_&&/* @__PURE__ */T("div",{className:"absolute inset-0 bg-blue-500/15 border-4 border-dashed border-blue-500 pointer-events-none flex items-center justify-center z-20",children:/* @__PURE__ */T("div",{className:"px-4 py-2 rounded-md bg-blue-600 text-white text-sm font-medium shadow-lg",children:"Drop to upload"})})]})}export{F as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-YQFGRYEF.js";import"./chunk-7ELJQL7J.js";import"./chunk-UQYNPYF4.js";import"./chunk-2UO47XB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-GDQJBQ5B.js";import"./chunk-C3QOHMR6.js";
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-WOXQODYQ.js";import{subscribePomo as o,getPomoSnapshot as a,setPomoDurations as n,setPomoAlarm as r,setPomoAlarmConfig as s,setPomoBehaviour as i,setPomoFocusSound as l,useTodoTasks as c,migratePomodoroTasksOnce as u,pomoSwitchMode as d,pomoPause as m,pomoStart as h,ALARM_OPTIONS as p,playAlarm as g,FOCUS_SOUND_OPTIONS as k,previewFocusSound as f}from"./chunk-MDYJVXWD.js";import{PLACEHOLDER_INK as b}from"./chunk-AYZY3YNC.js";import{pad2 as x}from"./chunk-LF27WIN2.js";import{useWidgetSettings as v}from"./chunk-IDI3IOY4.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-QYL26AB4.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-2E2SUEEE.js";import"./chunk-PLK2WHZG.js";import"./chunk-7INZ7O3A.js";import"./chunk-P4VKU3SL.js";import"./chunk-3DVNXNTF.js";import"./chunk-ECJKIPWU.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-BW47XJLH.js";import"./chunk-O3MBPAWZ.js";import"./chunk-7ELJQL7J.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as y}from"./chunk-KC3EX26K.js";import"./chunk-F3ZOO23R.js";import"./chunk-JPNAEN53.js";import"./chunk-CDAJKLGL.js";import"./chunk-G3KXB7SP.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-7DI3VQCF.js";import"./chunk-UQYNPYF4.js";import"./chunk-XWFLIGDQ.js";import{Icon as N}from"./chunk-2UO47XB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-CJH2BGXY.js";import"./chunk-QQ2LDC6C.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-TWVUQUUD.js";import"./chunk-GDQJBQ5B.js";import"./chunk-C3QOHMR6.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import{useSyncExternalStore as C,useEffect as w,useMemo as S,useState as j,useRef as B,useCallback as M}from"react";import{jsxs as T,Fragment as P,jsx as D}from"react/jsx-runtime";var I="pomodoro_appearance",L="pomodoro_active_task_id",A={focus:"Pomodoro",short:"Short Break",long:"Long Break"},V={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var W=25,$=5,J=15,Q=!1,E=!1,R=4,F=!0,O=!0,U="bell",X=100,K=1,Y="none",G=50,H=(e,t,o,a)=>"number"==typeof e&&isFinite(e)?Math.max(t,Math.min(o,Math.round(e))):a;function Z(){const t=C(o,a,a),{prefs:g,save:f}=y(),b=function(e){const t=e&&"object"==typeof e?e:{};return{focusMinutes:H(t.focusMinutes,1,120,W),shortBreakMinutes:H(t.shortBreakMinutes,1,120,$),longBreakMinutes:H(t.longBreakMinutes,1,120,J),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:Q,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:E,longBreakInterval:H(t.longBreakInterval,1,20,R),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:F,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:O,alarmSound:p.some(e=>e.id===t.alarmSound)?t.alarmSound:U,alarmVolume:H(t.alarmVolume,0,100,X),alarmRepeat:H(t.alarmRepeat,1,5,K),focusSound:k.some(e=>e.id===t.focusSound)?t.focusSound:Y,focusVolume:H(t.focusVolume,0,100,G)}}(g.pomodoro_settings);w(()=>{n({focus:60*b.focusMinutes,short:60*b.shortBreakMinutes,long:60*b.longBreakMinutes})},[b.focusMinutes,b.shortBreakMinutes,b.longBreakMinutes]),w(()=>{r(b.alarmSound),s(b.alarmVolume,b.alarmRepeat)},[b.alarmSound,b.alarmVolume,b.alarmRepeat]),w(()=>{i({autoStartBreaks:b.autoStartBreaks,autoStartPomodoros:b.autoStartPomodoros,longBreakInterval:b.longBreakInterval})},[b.autoStartBreaks,b.autoStartPomodoros,b.longBreakInterval]),w(()=>{l(b.focusSound,b.focusVolume)},[b.focusSound,b.focusVolume]),w(()=>{if("undefined"!=typeof Notification&&"default"===Notification.permission)try{Notification.requestPermission()}catch{}},[]);const Z=c(),z=Z.tasks,q=S(()=>/* @__PURE__ */(new Date).toISOString().slice(0,10),[]),ee=function(e,t){return S(()=>t?(e=>{const t=[],o=[];for(const a of e)(a.done?o:t).push(a);return[...t,...o]})(e):e,[e,t])}(S(()=>z.filter(e=>!!e.dueDate&&(e.dueDate===q||e.dueDate<q&&!e.done)),[z,q]),b.checkToBottom),[te,oe]=j(()=>localStorage.getItem(L)),[ae,ne]=j(!1),[re,se]=j(null),ie=B(!1);w(()=>{ie.current||(ie.current=!0,u(z,Z.setAllTasks))},[]),w(()=>{try{te?localStorage.setItem(L,te):localStorage.removeItem(L)}catch{}},[te]),w(()=>{if(!re)return;const e=()=>se(null),t=setTimeout(()=>document.addEventListener("click",e),0);return()=>{clearTimeout(t),document.removeEventListener("click",e)}},[re]);const le=B(t.streak);w(()=>{if(t.streak>le.current&&te){const e=z.find(e=>e.id===te);if(e){const t=(e.completed??0)+1,o=e.estimated??0,a=b.autoCheckTasks&&o>0&&t>=o;Z.updateTask(te,{completed:t,done:e.done||a})}}le.current=t.streak},[t.streak,te,b.autoCheckTasks,z,Z]);const ue=ee.reduce((e,t)=>e+(t.completed??0),0),de=ee.reduce((e,t)=>e+Math.max(t.estimated??0,t.completed??0),0),me=ee.reduce((e,t)=>t.done?e:e+Math.max(0,(t.estimated??0)-(t.completed??0)),0),he=t.running&&"focus"===t.mode?t.remaining:0,pe=me*b.focusMinutes*60+he,ge=new Date(Date.now()+1e3*pe).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),ke=(pe/3600).toFixed(1),fe=te?z.find(e=>e.id===te)??null:null,be=x(Math.floor(t.remaining/60)),xe=x(t.remaining%60),[ve,ye]=j(()=>e(I)),[Ne,Ce]=j(!1),[we,Se]=j(ve),[je,Be]=j(b);v(M(()=>{Se({...ve}),Be({...b}),Ce(!0)},[ve,b]));const Me="focus"!==t.mode,Te=V[t.mode],Pe=Me?(De=Te,Ie=ve.activeOpacity/100,`rgba(${parseInt(De.slice(1,3),16)}, ${parseInt(De.slice(3,5),16)}, ${parseInt(De.slice(5,7),16)}, ${Ie})`):`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${ve.activeOpacity/100})`;var De,Ie;const Le={primary:Me?"text-white":"text-gray-900",secondary:Me?"text-white/85":"text-gray-700",muted:Me?"text-white/65":"text-gray-500",tabActive:Me?"bg-white/15 text-white":"bg-gray-200 text-gray-900",tabInactive:Me?"text-white/75 hover:bg-white/10":"text-gray-500 hover:bg-gray-200",divider:Me?"border-white/30":"border-gray-200",softDivider:Me?"border-white/20":"border-gray-200",iconBtn:Me?"bg-black/15 hover:bg-black/25 text-white/85":"bg-gray-200 hover:bg-gray-300 text-gray-600",addTaskBtn:Me?"border-white/45 text-white/90 hover:bg-white/[0.06]":"border-gray-300 text-gray-500 hover:bg-gray-200/50"},Ae=Me?Te:"#0f172a";/* @__PURE__ */
|
|
2
|
-
return T(P,{children:[
|
|
3
|
-
/* @__PURE__ */T("div",{className:`flex flex-col h-full select-none transition-colors duration-300 ${Le.primary}`,style:{backgroundColor:Pe,backdropFilter:ve.activeBlur>0?`blur(${ve.activeBlur}px)`:void 0},children:[
|
|
4
|
-
/* @__PURE__ */D("div",{className:"px-3 pt-3 flex justify-center gap-2",children:["focus","short","long"].map(e=>/* @__PURE__ */D("button",{onClick:()=>d(e),className:`px-3 py-1 text-sm font-bold rounded transition-colors ${t.mode===e?Le.tabActive:Le.tabInactive}`,children:A[e]},e))}),
|
|
5
|
-
/* @__PURE__ */T("div",{className:"text-center font-bold tabular-nums leading-none tracking-tight mt-3",style:{fontSize:"4.5rem"},children:[be,":",xe]}),
|
|
6
|
-
/* @__PURE__ */D("div",{className:"flex justify-center mt-3 mb-2",children:/* @__PURE__ */D("button",{onClick:()=>t.running?m():h(),className:"bg-surface px-12 py-3 rounded-md font-bold text-base shadow-[0_4px_0_rgba(0,0,0,0.12)] hover:shadow-[0_3px_0_rgba(0,0,0,0.12)] active:translate-y-1 active:shadow-none transition-all",style:{color:Ae,letterSpacing:"0.08em"},children:t.running?"PAUSE":"START"})}),
|
|
7
|
-
/* @__PURE__ */D("div",{className:"px-3 py-3 text-center",children:fe?/* @__PURE__ */T(P,{children:[
|
|
8
|
-
/* @__PURE__ */T("div",{className:`text-xs leading-tight ${Le.muted}`,children:["#",(fe.completed??0)+1]}),
|
|
9
|
-
/* @__PURE__ */D("div",{className:`text-base font-medium leading-tight truncate mt-0.5 ${Le.primary}`,children:fe.name})]}):/* @__PURE__ */D("div",{className:`text-xs italic ${Le.muted}`,children:"No task selected"})}),
|
|
10
|
-
/* @__PURE__ */T("div",{className:"px-3 mt-1 flex items-center justify-between",children:[
|
|
11
|
-
/* @__PURE__ */D("h3",{className:`text-base font-bold tracking-tight ${Le.primary}`,children:"Tasks"}),
|
|
12
|
-
/* @__PURE__ */D("button",{className:`rounded p-1 transition-colors ${Le.iconBtn}`,"aria-label":"Tasks menu",tabIndex:-1,children:/* @__PURE__ */D(N,{name:"more-vertical",look:"solid",className:"h-4 w-4"})})]}),
|
|
13
|
-
/* @__PURE__ */D("div",{className:`border-t mx-3 mt-2 ${Le.divider}`}),
|
|
14
|
-
/* @__PURE__ */T("div",{className:"flex-1 px-3 py-3 space-y-2 overflow-y-auto",children:[ee.map(e=>{const t=e.id===te;/* @__PURE__ */
|
|
15
|
-
return T("div",{onClick:()=>oe(e.id),className:"bg-surface text-ink-strong rounded-md flex items-center pr-2 py-3 shadow-sm cursor-pointer transition-shadow hover:shadow-(--elevation-panel) "+(t?"border-l-4 border-gray-700 pl-2":"pl-3 border-l-4 border-transparent"),children:[
|
|
16
|
-
/* @__PURE__ */D("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,Z.toggleDone(o)},className:"shrink-0",children:e.done?/* @__PURE__ */D("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",style:{color:Ae},children:/* @__PURE__ */D("path",{d:"M10 0a10 10 0 100 20 10 10 0 000-20zm-1 14.5l-4.5-4.5 1.4-1.4 3.1 3.1 6.1-6.1 1.4 1.4z"})}):/* @__PURE__ */D("svg",{className:"h-5 w-5 text-gray-300",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:/* @__PURE__ */D("circle",{cx:"12",cy:"12",r:"10"})})}),
|
|
17
|
-
/* @__PURE__ */D("span",{className:"ml-3 flex-1 font-semibold truncate "+(e.done?"line-through text-gray-400":"text-gray-800"),children:e.name}),
|
|
18
|
-
/* @__PURE__ */T("span",{className:"text-sm tabular-nums mr-2 shrink-0",children:[
|
|
19
|
-
/* @__PURE__ */D("span",{className:"font-bold text-gray-500",children:e.completed??0}),
|
|
20
|
-
/* @__PURE__ */D("span",{className:"text-gray-400",children:" / "}),
|
|
21
|
-
/* @__PURE__ */D("span",{className:"text-gray-400",children:e.estimated??"–"})]}),
|
|
22
|
-
/* @__PURE__ */T("div",{className:"relative",children:[
|
|
23
|
-
/* @__PURE__ */D("button",{onClick:t=>{t.stopPropagation(),se(re===e.id?null:e.id)},className:"rounded p-1 bg-gray-100 hover:bg-gray-200",children:/* @__PURE__ */D(N,{name:"more-vertical",look:"solid",className:"h-4 w-4 text-ink-faint"})}),re===e.id&&/* @__PURE__ */D("div",{className:"absolute right-0 top-full mt-1 bg-white text-gray-800 rounded shadow-lg border border-gray-200 z-10 min-w-[110px] overflow-hidden",onClick:e=>e.stopPropagation(),children:/* @__PURE__ */D("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,Z.removeTask(o),te===o&&oe(null),se(null)},className:"block w-full px-3 h-8 text-sm text-left hover:bg-red-50 text-red-600",children:"Delete"})})]})]},e.id)}),ae?/* @__PURE__ */D(ce,{onSubmit:(e,t)=>{const o=e.trim();if(!o)return;const a=Z.addTask({name:o,estimated:t,completed:0,dueDate:q});te||oe(a),ne(!1)},onCancel:()=>ne(!1),accentColor:Ae}):/* @__PURE__ */T("button",{onClick:()=>ne(!0),className:`w-full border-2 border-dashed rounded-md py-3 font-semibold flex items-center justify-center gap-2 transition-colors ${Le.addTaskBtn}`,children:[
|
|
24
|
-
/* @__PURE__ */D(N,{name:"add-circle",className:"h-5 w-5",strokeWidth:2}),"Add Task"]})]}),
|
|
25
|
-
/* @__PURE__ */T("div",{className:`border-t px-3 py-3 flex items-center justify-center gap-5 text-sm ${Le.softDivider}`,children:[
|
|
26
|
-
/* @__PURE__ */T("span",{className:Le.secondary,children:["Pomos: ",
|
|
27
|
-
/* @__PURE__ */D("span",{className:`font-bold ${Le.primary}`,children:ue}),
|
|
28
|
-
/* @__PURE__ */D("span",{className:Le.muted,children:" / "}),
|
|
29
|
-
/* @__PURE__ */D("span",{className:`font-bold ${Le.primary}`,children:de})]}),pe>0&&/* @__PURE__ */T("span",{className:Le.secondary,children:["Finish At: ",
|
|
30
|
-
/* @__PURE__ */D("span",{className:`font-bold ${Le.primary}`,children:ge}),
|
|
31
|
-
/* @__PURE__ */T("span",{className:Le.muted,children:[" (",ke,"h)"]})]})]})]}),
|
|
32
|
-
/* @__PURE__ */D(_,{open:Ne,onClose:()=>Ce(!1),onSave:()=>{ye(we),localStorage.setItem(I,JSON.stringify(we)),f({pomodoro_settings:je}),Ce(!1)},configAppearance:we,setConfigAppearance:Se,configPrefs:je,setConfigPrefs:Be})]})}function _({open:e,onClose:o,onSave:a,configAppearance:n,setConfigAppearance:r,configPrefs:s,setConfigPrefs:i}){const l=(e,t)=>i(o=>({...o,[e]:t}));/* @__PURE__ */
|
|
33
|
-
return T(t,{open:e,onClose:o,title:"Pomodoro Settings",appearance:n,onAppearanceChange:r,onSave:a,children:[
|
|
34
|
-
/* @__PURE__ */T(z,{icon:/* @__PURE__ */D(se,{}),label:"TIMER",children:[
|
|
35
|
-
/* @__PURE__ */T("div",{children:[
|
|
36
|
-
/* @__PURE__ */D("p",{className:"text-sm font-bold text-gray-800 mb-2",children:"Time (minutes)"}),
|
|
37
|
-
/* @__PURE__ */T("div",{className:"grid grid-cols-3 gap-3",children:[
|
|
38
|
-
/* @__PURE__ */D(te,{label:"Pomodoro",value:s.focusMinutes,onChange:e=>l("focusMinutes",e),max:120}),
|
|
39
|
-
/* @__PURE__ */D(te,{label:"Short Break",value:s.shortBreakMinutes,onChange:e=>l("shortBreakMinutes",e),max:120}),
|
|
40
|
-
/* @__PURE__ */D(te,{label:"Long Break",value:s.longBreakMinutes,onChange:e=>l("longBreakMinutes",e),max:120})]})]}),
|
|
41
|
-
/* @__PURE__ */D(q,{label:"Auto Start Breaks",children:/* @__PURE__ */D(ne,{checked:s.autoStartBreaks,onChange:e=>l("autoStartBreaks",e)})}),
|
|
42
|
-
/* @__PURE__ */D(q,{label:"Auto Start Pomodoros",children:/* @__PURE__ */D(ne,{checked:s.autoStartPomodoros,onChange:e=>l("autoStartPomodoros",e)})}),
|
|
43
|
-
/* @__PURE__ */D(q,{label:"Long Break interval",children:/* @__PURE__ */D(oe,{value:s.longBreakInterval,onChange:e=>l("longBreakInterval",e),min:1,max:20,className:"w-14 text-center"})})]}),
|
|
44
|
-
/* @__PURE__ */T(z,{icon:/* @__PURE__ */D(ie,{}),label:"TASK",children:[
|
|
45
|
-
/* @__PURE__ */D(q,{label:"Auto Check Tasks",info:'If you enable "Auto Check Tasks", the active task will be automatically checked when the actual pomodoro count reaches the estimated count.',children:/* @__PURE__ */D(ne,{checked:s.autoCheckTasks,onChange:e=>l("autoCheckTasks",e)})}),
|
|
46
|
-
/* @__PURE__ */D(q,{label:"Check to Bottom",info:'If you enable "Check to Bottom", the checked task will be automatically moved to the bottom of the task list.',children:/* @__PURE__ */D(ne,{checked:s.checkToBottom,onChange:e=>l("checkToBottom",e)})})]}),
|
|
47
|
-
/* @__PURE__ */T(z,{icon:/* @__PURE__ */D(le,{}),label:"SOUND",children:[
|
|
48
|
-
/* @__PURE__ */D(q,{label:"Alarm Sound",children:/* @__PURE__ */T("div",{className:"flex items-center gap-2",children:[
|
|
49
|
-
/* @__PURE__ */D(ae,{value:s.alarmSound,onChange:e=>l("alarmSound",e),options:p.map(e=>({id:e.id,label:e.label}))}),"off"!==s.alarmSound&&/* @__PURE__ */D("button",{type:"button",onClick:()=>g(s.alarmSound,{volume:s.alarmVolume,repeat:1}),className:"px-2 py-1 text-2xs rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
|
|
50
|
-
/* @__PURE__ */D(ee,{value:s.alarmVolume,onChange:e=>l("alarmVolume",e)}),
|
|
51
|
-
/* @__PURE__ */D(q,{label:"repeat",children:/* @__PURE__ */D(oe,{value:s.alarmRepeat,onChange:e=>l("alarmRepeat",e),min:1,max:5,className:"w-14 text-center"})}),
|
|
52
|
-
/* @__PURE__ */D(q,{label:"Focus Sound",children:/* @__PURE__ */T("div",{className:"flex items-center gap-2",children:[
|
|
53
|
-
/* @__PURE__ */D(ae,{value:s.focusSound,onChange:e=>l("focusSound",e),options:k}),"none"!==s.focusSound&&/* @__PURE__ */D("button",{type:"button",onClick:()=>f(s.focusSound,s.focusVolume),className:"px-2 py-1 text-2xs rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
|
|
54
|
-
/* @__PURE__ */D(ee,{value:s.focusVolume,onChange:e=>l("focusVolume",e)})]})]})}function z({icon:e,label:t,children:o}){/* @__PURE__ */
|
|
55
|
-
return T("div",{className:"border-t border-gray-200 pt-3 first:border-0 first:pt-0",children:[
|
|
56
|
-
/* @__PURE__ */T("div",{className:"flex items-center gap-2 mb-3 text-ink-faintest",children:[e,
|
|
57
|
-
/* @__PURE__ */D("span",{className:"text-xs font-bold tracking-[0.15em]",children:t})]}),
|
|
58
|
-
/* @__PURE__ */D("div",{className:"space-y-3",children:o})]})}function q({label:e,info:t,children:o}){/* @__PURE__ */
|
|
59
|
-
return T("div",{className:"flex items-center justify-between gap-3",children:[
|
|
60
|
-
/* @__PURE__ */T("div",{className:"flex items-center gap-2 min-w-0",children:[
|
|
61
|
-
/* @__PURE__ */D("span",{className:"text-sm font-semibold text-gray-800",children:e}),t&&/* @__PURE__ */D(re,{title:t})]}),
|
|
62
|
-
/* @__PURE__ */D("div",{className:"shrink-0",children:o})]})}function ee({value:e,onChange:t}){/* @__PURE__ */
|
|
63
|
-
return T("div",{className:"flex items-center justify-end gap-3",children:[
|
|
64
|
-
/* @__PURE__ */D("span",{className:"text-xs text-gray-400 w-7 text-right tabular-nums",children:e}),
|
|
65
|
-
/* @__PURE__ */D("input",{type:"range",min:0,max:100,value:e,onChange:e=>t(parseInt(e.target.value,10)),className:"w-40 accent-blue-500"})]})}function te({label:e,value:t,onChange:o,min:a=1,max:n=99}){/* @__PURE__ */
|
|
66
|
-
return T("label",{className:"flex flex-col",children:[
|
|
67
|
-
/* @__PURE__ */D("span",{className:"text-xs font-semibold text-gray-500 mb-1",children:e}),
|
|
68
|
-
/* @__PURE__ */D(oe,{value:t,onChange:o,min:a,max:n})]})}function oe({value:e,onChange:t,min:o=1,max:a=99,className:n=""}){/* @__PURE__ */
|
|
69
|
-
return D("input",{type:"number",min:o,max:a,value:e,onChange:e=>t(Math.max(o,Math.min(a,parseInt(e.target.value,10)||o))),className:`bg-gray-100 border-0 rounded-md px-2 h-8 text-sm font-medium text-ink-strong focus:outline-none focus:ring-2 focus:ring-blue-500 w-full ${n}`})}function ae({value:e,onChange:t,options:o}){/* @__PURE__ */
|
|
70
|
-
return T("div",{className:"relative",children:[
|
|
71
|
-
/* @__PURE__ */D("select",{value:e,onChange:e=>t(e.target.value),className:"appearance-none bg-gray-100 border-0 rounded-md pl-3 pr-8 h-8 text-sm font-medium text-ink-strong focus:outline-none focus:ring-2 focus:ring-blue-500 cursor-pointer",children:o.map(e=>/* @__PURE__ */D("option",{value:e.id,children:e.label},e.id))}),
|
|
72
|
-
/* @__PURE__ */D(N,{name:"chevron-down",className:`absolute right-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 pointer-events-none ${b}`,strokeWidth:2.5})]})}function ne({checked:e,onChange:t}){/* @__PURE__ */
|
|
73
|
-
return D("button",{type:"button",role:"switch","aria-checked":e,onClick:()=>t(!e),className:"relative inline-flex h-6 w-11 items-center rounded-full transition-colors "+(e?"bg-emerald-500":"bg-gray-300"),children:/* @__PURE__ */D("span",{className:"absolute h-5 w-5 rounded-full bg-white shadow transition-transform "+(e?"translate-x-[22px]":"translate-x-0.5")})})}function re({title:e}){/* @__PURE__ */
|
|
74
|
-
return D("span",{title:e,className:"inline-flex items-center justify-center w-4 h-4 rounded-full bg-gray-300 text-on-accent text-3xs font-bold cursor-help",children:"i"})}function se(){/* @__PURE__ */
|
|
75
|
-
return T("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
|
|
76
|
-
/* @__PURE__ */D("circle",{cx:"12",cy:"12",r:"9"}),
|
|
77
|
-
/* @__PURE__ */D("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 7v5l3 2"})]})}function ie(){/* @__PURE__ */
|
|
78
|
-
return T("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
|
|
79
|
-
/* @__PURE__ */D("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),
|
|
80
|
-
/* @__PURE__ */D("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4"})]})}function le(){/* @__PURE__ */
|
|
81
|
-
return T("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
|
|
82
|
-
/* @__PURE__ */D("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 5L6 9H2v6h4l5 4V5z"}),
|
|
83
|
-
/* @__PURE__ */D("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.5 8.5a5 5 0 010 7M19 5a9 9 0 010 14"})]})}function ce({onSubmit:e,onCancel:t,accentColor:o}){const[a,n]=j(""),[r,s]=j(1),i=()=>e(a,r);/* @__PURE__ */
|
|
84
|
-
return T("div",{className:"bg-surface text-ink-strong rounded-md p-3 shadow-(--elevation-panel)",children:[
|
|
85
|
-
/* @__PURE__ */D("input",{autoFocus:!0,value:a,onChange:e=>n(e.target.value),placeholder:"What are you working on?",onKeyDown:e=>{"Enter"===e.key&&i(),"Escape"===e.key&&t()},className:"w-full text-base font-medium bg-transparent border-0 outline-none placeholder-gray-400"}),
|
|
86
|
-
/* @__PURE__ */T("div",{className:"flex items-center justify-between mt-2",children:[
|
|
87
|
-
/* @__PURE__ */D("span",{className:"text-xs font-semibold text-gray-500",children:"Est Pomodoros"}),
|
|
88
|
-
/* @__PURE__ */D("input",{type:"number",min:1,max:20,value:r,onChange:e=>s(Math.max(1,Math.min(20,parseInt(e.target.value,10)||1))),className:"w-16 bg-gray-100 rounded px-2 py-1 text-sm text-right border-0 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),
|
|
89
|
-
/* @__PURE__ */T("div",{className:"flex gap-2 mt-3 justify-end",children:[
|
|
90
|
-
/* @__PURE__ */D("button",{onClick:t,className:"px-3 py-1 text-sm text-gray-500 hover:bg-gray-100 rounded",children:"Cancel"}),
|
|
91
|
-
/* @__PURE__ */D("button",{onClick:i,className:"px-4 py-1 text-sm font-semibold text-white rounded shadow-sm",style:{backgroundColor:o},children:"Save"})]})]})}export{Z as default};
|
package/dist/Sidebar-GQX7UM3M.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import{useAuth as e,parseOpenSections as t,readStored as r,RAIL_OPEN_SECTIONS_KEY as n,RAIL_WIDTH_KEY as a,toggleOpenSection as i,writeStored as l}from"./chunk-U6LKNGC6.js";import{ResizeHandle as o}from"./chunk-EKCQ7XBZ.js";import{openGlobalSearch as s}from"./chunk-3NRQNKVP.js";import{partitionNav as c,visibleNavChildren as d,flyoutGroups as m,visibleSectionItems as h,rowsContainRoute as u}from"./chunk-WGRS6QBT.js";import{BrandMark as p}from"./chunk-MI67DI3H.js";import{IconButton_default as b}from"./chunk-VCMHBUKI.js";import{RAIL_MENU_GAP as f,navSections as g,startMenuCategories as x,TAB_STRIP_H as k,RAIL_COLLAPSED_INSET as y,RAIL_W as v,RAIL_MAX_W as N,RAIL_MIN_W as C,navIcons as j,sectionIcons as w}from"./chunk-4LXCCZDM.js";import"./chunk-5A7MWTXX.js";import"./chunk-7QSDPSXP.js";import"./chunk-2QY5BJLA.js";import{PopupMenu as S,PopupMenuItem as L,PopupMenuDivider as z,PopupMenuLabel as $}from"./chunk-G3KXB7SP.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-UQYNPYF4.js";import"./chunk-XWFLIGDQ.js";import{Icon as W}from"./chunk-2UO47XB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-QQ2LDC6C.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-TWVUQUUD.js";import{useShellStrings as Q}from"./chunk-GDQJBQ5B.js";import"./chunk-C3QOHMR6.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import{useMemo as A,useState as I,useRef as B,useEffect as H,isValidElement as K,cloneElement as M}from"react";import{jsx as R,jsxs as D,Fragment as T}from"react/jsx-runtime";var P="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform);function U(e,t,r){const n=Math.max(8,r-t.bottom);return{left:e+f,bottom:n,maxHeight:r-n-8,overflowY:"auto"}}var X=(e,t)=>["flex h-(--row-height-menu) w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium transition-colors",t?"justify-center px-0":"",e?"bg-gray-100 text-gray-900":"text-gray-600 hover:bg-gray-100 hover:text-gray-900"].join(" "),J="flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-[18px]";function G({open:e,children:t}){const r=B(null);return H(()=>{r.current?.toggleAttribute("inert",!e)},[e]),/* @__PURE__ */R("div",{ref:r,className:"grid transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-none",style:{gridTemplateRows:e?"1fr":"0fr",opacity:e?1:0},"aria-hidden":!e,"data-fold":e?"open":"closed",children:/* @__PURE__ */R("div",{className:"min-h-0 overflow-hidden",children:t})})}function Y({open:e}){/* @__PURE__ */
|
|
2
|
-
return R(W,{name:"chevron-down",className:"size-4 shrink-0 transition-transform "+(e?"rotate-180":""),strokeWidth:2,"aria-hidden":"true"})}function _({dir:e}){/* @__PURE__ */
|
|
3
|
-
return R(W,"left"===e?{name:"chevron-double-left",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"}:{name:"chevron-double-right",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"})}function F({className:e}){/* @__PURE__ */
|
|
4
|
-
return R(W,{name:"search",className:e,strokeWidth:2,"aria-hidden":"true"})}var O=e=>.75+1.75*e+"rem";function V({width:V,collapsed:Z,onToggleCollapsed:E,onResize:q,onHome:ee,onOpen:te,activeRoute:re,profile:ne,user:ae,onLogout:ie,onSwitchToDesktop:le,onReportBug:oe,onClose:se,navSections:ce=g,navIcons:de=j,sectionIcons:me=w,categories:he=x,productName:ue,productIcon:pe,tagline:be,adaptiveLogo:fe=!1,logoHasAlpha:ge=null,logoIsLight:xe=null}){const ke=Q().layout,{hasAnyPerm:ye}=e(),ve=A(()=>c(ce,he,ye),[ce,he,ye]),[Ne,Ce]=I(()=>t(r(n))),je=A(()=>[...ve.topItems.filter(e=>d(e,ye).length>0).map(e=>`child:${e.to}`),...[...ve.erpSections,...ve.systemSections,...ve.virtualSections,...ve.footerSections].map(e=>e.label)],[ve,ye]),we=(e,t=je)=>Ce(r=>{const a=i(r,e,t);return l(n,JSON.stringify([...a])),a}),[Se,Le]=I(null),[ze,$e]=I(!1),We=B(null);H(()=>{Z||Le(null)},[Z]);const Qe=(e,t)=>{Le(null),e.onSelect?e.onSelect():te(e.to,!!t&&(e=>e.metaKey||e.ctrlKey||1===e.button)(t))},Ae=(e,t)=>{const r=t[e];/* @__PURE__ */
|
|
5
|
-
return R("span",{className:J,"aria-hidden":"true",children:r&&K(r)?M(r,{className:"size-[18px]"}):r})},Ie=e=>e.filter(e=>d(e,ye).length>0).map(e=>`child:${e.to}`),Be=(e,t,r=je)=>{const n=d(e,ye),a=e.menuLabel??e.label;if(n.length>0){const i=`child:${e.to}`,l=Ne.has(i),o=!l&&u(n,re,ye);/* @__PURE__ */
|
|
6
|
-
return D("div",{children:[
|
|
7
|
-
/* @__PURE__ */D("button",{type:"button",onClick:()=>we(i,r),"aria-expanded":l,className:X(o,!1),style:t>0?{paddingLeft:O(t)}:void 0,children:[0===t&&Ae(e.to,de),
|
|
8
|
-
/* @__PURE__ */R("span",{className:"min-w-0 flex-1 truncate",children:a}),
|
|
9
|
-
/* @__PURE__ */R(Y,{open:l})]}),
|
|
10
|
-
/* @__PURE__ */R(G,{open:l,children:/* @__PURE__ */R("div",{className:"space-y-0.5 pt-0.5",children:n.map(e=>Be(e,t+1,Ie(n)))})}),e.dividerAfter&&/* @__PURE__ */R("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:O(t)},"aria-hidden":"true"})]},e.to)}const i=e.to===re;/* @__PURE__ */
|
|
11
|
-
return D("div",{children:[
|
|
12
|
-
/* @__PURE__ */D("button",{type:"button",onClick:t=>Qe(e,t),onAuxClick:t=>{1===t.button&&Qe(e,t)},"aria-current":i?"page":void 0,className:X(i,!1),style:t>0?{paddingLeft:O(t)}:void 0,children:[0===t&&Ae(e.to,de),
|
|
13
|
-
/* @__PURE__ */R("span",{className:"min-w-0 flex-1 truncate",children:a})]}),e.dividerAfter&&/* @__PURE__ */R("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:O(t)},"aria-hidden":"true"})]},e.to)},He=(e,t)=>{const r=t?e.items:h(e,ye);if(0===r.length)return null;const n="icon"in e&&e.icon?/* @__PURE__ */R("span",{className:J,"aria-hidden":"true",children:e.icon}):Ae(e.label,me),a=e.menuLabel??e.label,i=u(r,re,ye),l="dividerAfter"in e&&e.dividerAfter;if(Z)/* @__PURE__ */
|
|
14
|
-
return D("div",{children:[
|
|
15
|
-
/* @__PURE__ */R("button",{type:"button",title:a,"aria-label":a,"aria-haspopup":"menu","aria-expanded":Se?.label===e.label,onClick:t=>{const n=t.currentTarget.getBoundingClientRect();Le(t=>t?.label===e.label?null:{label:e.label,items:r,top:n.top})},className:X(i||Se?.label===e.label,!0),children:n}),l&&/* @__PURE__ */R("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label);const o=Ne.has(e.label),s=`rosh-rail-${e.label.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}`;/* @__PURE__ */
|
|
16
|
-
return D("div",{children:[
|
|
17
|
-
/* @__PURE__ */D("button",{type:"button",onClick:()=>we(e.label),"aria-expanded":o,"aria-controls":s,className:X(!o&&i,!1),children:[n,
|
|
18
|
-
/* @__PURE__ */R("span",{className:"min-w-0 flex-1 truncate",children:a}),
|
|
19
|
-
/* @__PURE__ */R(Y,{open:o})]}),
|
|
20
|
-
/* @__PURE__ */R(G,{open:o,children:/* @__PURE__ */R("div",{id:s,role:"group","aria-label":a,className:"space-y-0.5 pt-0.5",children:r.map(e=>Be(e,1,Ie(r)))})}),l&&/* @__PURE__ */R("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label)},Ke=ne?.first_name?`${ne.first_name} ${ne.last_name||""}`.trim():ae?.email||"",Me=(ne?.first_name?.charAt(0)||ae?.email?.charAt(0)||"?").toUpperCase(),Re=ne?.avatar_url?/* @__PURE__ */R("img",{src:ne.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */R("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:Me}),De=ze?We.current?.getBoundingClientRect():void 0,Te=Z?"":"px-3",Pe=Z?{paddingInline:y}:void 0,Ue=`${Z?ke.expandSidebar:ke.collapseSidebar} (${P?"⌘":"Ctrl"} .)`,Xe=ee?{run:ee,label:ke.goHome,title:ke.goHome}:se?null:{run:E,label:Z?ke.expandSidebar:ke.collapseSidebar,title:Ue},Je=/* @__PURE__ */D(T,{children:[pe&&/* @__PURE__ */R(p,{src:pe,alt:"",slot:"compact",surface:"light",adaptive:fe,hasAlpha:ge,isLight:xe,size:28,decorative:!0}),!Z&&/* @__PURE__ */D("span",{className:"min-w-0 text-left leading-tight",children:[
|
|
21
|
-
/* @__PURE__ */R("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:ue??"Apps"}),be&&/* @__PURE__ */R("span",{className:"block truncate text-2xs font-medium text-gray-500",children:be})]})]}),Ge=ve.erpSections.length>0||ve.systemSections.length>0||ve.virtualSections.length>0;/* @__PURE__ */
|
|
22
|
-
return D("aside",{"aria-label":ke.navLabel,className:"fixed left-0 top-0 z-(--z-sidebar) flex h-dvh flex-col border-r border-line bg-surface text-ink-strong",style:{width:V},children:[
|
|
23
|
-
/* @__PURE__ */D("div",{className:"flex shrink-0 items-center border-b border-gray-200 "+(Z?"justify-center":"justify-between gap-2 pl-4 pr-2"),style:{height:k},children:[Xe?/* @__PURE__ */R("button",{type:"button",onClick:Xe.run,"aria-label":Xe.label,title:Xe.title,className:"flex min-w-0 items-center gap-2 rounded-md transition-colors hover:bg-gray-100 "+(Z?"justify-center p-0.5":"-ml-1 p-1"),children:Je}):/* @__PURE__ */R("span",{className:"flex min-w-0 items-center gap-2",children:Je}),se?/* @__PURE__ */R(b,{onClick:se,"aria-label":ke.closeMenu,children:/* @__PURE__ */R(W,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})}):!Z&&/* @__PURE__ */R("button",{type:"button",onClick:E,"aria-label":ke.collapseSidebar,title:`${ke.collapseSidebar} (${P?"⌘":"Ctrl"} .)`,className:"flex size-8 shrink-0 items-center justify-center rounded-md text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900",children:/* @__PURE__ */R(_,{dir:"left"})})]}),
|
|
24
|
-
/* @__PURE__ */R("div",{className:`shrink-0 pt-3 ${Te}`,style:Pe,children:Z?/* @__PURE__ */R("button",{type:"button",onClick:s,"aria-label":ke.search,title:`${ke.search} (${P?"⌘K":"Ctrl K"})`,className:X(!1,!0),children:/* @__PURE__ */R(F,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */D("button",{type:"button",onClick:s,className:"flex h-(--row-height-menu) w-full items-center gap-2 rounded-md border border-line bg-surface px-3 text-left transition-colors hover:bg-gray-100",children:[
|
|
25
|
-
/* @__PURE__ */R(F,{className:"size-3.5 text-gray-500"}),
|
|
26
|
-
/* @__PURE__ */R("span",{className:"min-w-0 flex-1 truncate text-sm text-ink-faint",children:ke.search}),
|
|
27
|
-
/* @__PURE__ */R("kbd",{className:"rounded border border-line bg-gray-100 px-2 py-0.5 font-mono text-2xs font-semibold text-ink-faint",children:P?"⌘K":"Ctrl K"})]})}),
|
|
28
|
-
/* @__PURE__ */D("nav",{"aria-label":ke.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${Te} ${Z?"space-y-1":"space-y-0.5"}`,style:Pe,children:[Z&&/* @__PURE__ */R("button",{type:"button",onClick:E,"aria-label":ke.expandSidebar,title:`${ke.expandSidebar} (${P?"⌘":"Ctrl"} .)`,className:`${X(!1,!0)} mb-3`,children:/* @__PURE__ */R(_,{dir:"right"})}),ve.topItems.map(e=>{if(!Z)return Be(e,0);const t=d(e,ye),r=e.to===re||u(t,re,ye),n=e.menuLabel??e.label;/* @__PURE__ */
|
|
29
|
-
return D("div",{children:[
|
|
30
|
-
/* @__PURE__ */R("button",{type:"button",title:n,"aria-label":n,onClick:r=>{if(0===t.length)return void Qe(e,r);const n=r.currentTarget.getBoundingClientRect();Le(r=>r?.label===e.to?null:{label:e.to,items:t,top:n.top})},className:X(r,!0),children:Ae(e.to,de)}),e.dividerAfter&&/* @__PURE__ */R("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.to)}),ve.topItems.length>0&&Ge&&!ve.topItems[ve.topItems.length-1].dividerAfter&&/* @__PURE__ */R("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ve.erpSections.map(e=>He(e,!1)),ve.systemSections.map(e=>He(e,!1)),ve.virtualSections.map(e=>He(e,!0)),ve.footerSections.length>0&&/* @__PURE__ */R("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ve.footerSections.map(e=>He(e,!1))]}),
|
|
31
|
-
/* @__PURE__ */R("div",{className:`shrink-0 border-t border-gray-200 py-2 ${Te}`,style:Pe,children:/* @__PURE__ */D("button",{ref:We,type:"button",onClick:()=>$e(e=>!e),"aria-haspopup":"menu","aria-expanded":ze,"aria-label":Z?ke.accountMenu(Ke):void 0,className:"flex w-full items-center gap-3 rounded-md hover:bg-gray-100 "+(Z?"justify-center py-2":"px-2 py-2"),children:[Re,!Z&&/* @__PURE__ */D("span",{className:"min-w-0 flex-1 text-left",children:[
|
|
32
|
-
/* @__PURE__ */R("span",{className:"block truncate text-sm font-semibold text-ink-strong",children:Ke}),ae?.email&&Ke!==ae.email&&/* @__PURE__ */R("span",{className:"block truncate text-2xs text-ink-faint",children:ae.email})]})]})}),q&&!Z&&!se&&/* @__PURE__ */R(o,{side:"left",width:V,onResize:q,min:C,max:N,defaultWidth:v,storageKey:a,label:ke.resizeSidebar}),ze&&De&&/* @__PURE__ */D(S,{portal:!0,minWidth:224,onClose:()=>$e(!1),style:U(V,De,window.innerHeight),children:[Z&&/* @__PURE__ */D("div",{className:"border-b border-line px-3 py-3",children:[
|
|
33
|
-
/* @__PURE__ */R("p",{className:"truncate text-sm font-semibold text-gray-800",children:Ke}),ae?.email&&/* @__PURE__ */R("p",{className:"truncate text-xs text-gray-500",children:ae.email})]}),
|
|
34
|
-
/* @__PURE__ */D(L,{onClick:()=>{$e(!1),te("/profile",!1)},children:[
|
|
35
|
-
/* @__PURE__ */R(W,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ke.profile]}),ve.footerItems.map(e=>/* @__PURE__ */D(L,{onClick:()=>{$e(!1),Qe(e)},children:[
|
|
36
|
-
/* @__PURE__ */R("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:de[e.to]}),e.menuLabel??e.label]},e.to)),oe&&/* @__PURE__ */D(L,{onClick:()=>{$e(!1),oe()},children:[
|
|
37
|
-
/* @__PURE__ */R(W,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ke.reportIssue]}),
|
|
38
|
-
/* @__PURE__ */R(z,{}),le&&/* @__PURE__ */D(T,{children:[
|
|
39
|
-
/* @__PURE__ */D(L,{onClick:()=>{$e(!1),le()},children:[
|
|
40
|
-
/* @__PURE__ */R(W,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ke.switchToDesktop]}),
|
|
41
|
-
/* @__PURE__ */R(z,{})]}),
|
|
42
|
-
/* @__PURE__ */D(L,{danger:!0,onClick:()=>{$e(!1),ie()},children:[
|
|
43
|
-
/* @__PURE__ */R(W,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ke.signOut]})]}),Se&&Z&&/* @__PURE__ */R(S,{portal:!0,minWidth:220,onClose:()=>Le(null),style:{left:V+f,top:Math.min(Se.top,window.innerHeight-48*Math.min(Se.items.length,10)-16)},children:m(Se.items,ye).map((e,t)=>/* @__PURE__ */D("div",{role:e.heading?"group":void 0,"aria-label":e.heading?e.heading.menuLabel??e.heading.label:void 0,children:[t>0&&/* @__PURE__ */R(z,{}),e.heading&&/* @__PURE__ */R($,{children:e.heading.menuLabel??e.heading.label}),e.items.map(e=>/* @__PURE__ */D(L,{onClick:()=>Qe(e),children:[Ae(e.to,de),
|
|
44
|
-
/* @__PURE__ */R("span",{className:e.to===re?"font-semibold":"",children:e.menuLabel??e.label})]},e.to))]},e.heading?.to??`run-${t}`))})]})}export{U as accountMenuPosition,V as default};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import{EditableGrid as e}from"./chunk-MDV7UQJD.js";import"./chunk-G6DKCCWH.js";import{AboutApp as t}from"./chunk-N7U622NC.js";import{peekSpreadsheetPreviewStage as r,claimSpreadsheetPreviewStage as n,SPREADSHEET_PREVIEW_UPDATE_EVENT as o}from"./chunk-VTVSMRFX.js";import{WindowTitle as a}from"./chunk-IDI3IOY4.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-QYL26AB4.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-2E2SUEEE.js";import"./chunk-PLK2WHZG.js";import"./chunk-7INZ7O3A.js";import"./chunk-P4VKU3SL.js";import"./chunk-3DVNXNTF.js";import"./chunk-ECJKIPWU.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-BW47XJLH.js";import"./chunk-O3MBPAWZ.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-KC3EX26K.js";import"./chunk-F3ZOO23R.js";import"./chunk-LKTUUNGJ.js";import"./chunk-JPNAEN53.js";import"./chunk-CDAJKLGL.js";import"./chunk-G3KXB7SP.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-7DI3VQCF.js";import"./chunk-UQYNPYF4.js";import"./chunk-XWFLIGDQ.js";import"./chunk-2UO47XB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-CJH2BGXY.js";import"./chunk-QQ2LDC6C.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-TWVUQUUD.js";import"./chunk-GDQJBQ5B.js";import"./chunk-C3QOHMR6.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import{useRef as l,useState as s,useEffect as c,useCallback as i}from"react";import{jsxs as u,jsx as d,Fragment as h}from"react/jsx-runtime";var m="ABCDEFGHIJKLMNOPQRSTUVWXYZ",p=10,x=30;function g(e){return e<26?m[e]:m[Math.floor(e/26)-1]+m[e%26]}function y(e){return Array.from({length:e},(e,t)=>({key:`col_${t}`,title:g(t),width:100}))}function b(e,t){return Array.from({length:e},()=>Array(t).fill(""))}function f(e){return{id:crypto.randomUUID(),name:e,columns:y(p),data:b(x,p),cellStyles:{}}}function v(e){return e.split("\n").map(e=>{if(e.includes("\t"))return e.split("\t").map(e=>e.trim());const t=[];let r="",n=!1;for(const o of e)'"'!==o?","!==o||n?r+=o:(t.push(r.trim()),r=""):n=!n;return t.push(r.trim()),t}).filter(e=>e.some(e=>e.trim()))}function k(e,t){const r=e.rows?e.rows.map(e=>e.map(e=>String(e??""))):v(e.csv??"");if(0===r.length)return null;const n=Math.max(p,r.reduce((e,t)=>Math.max(e,t.length),0)),o=r.map(e=>{for(;e.length<n;)e.push("");return e});for(;o.length<x;)o.push(Array(n).fill(""));return{id:crypto.randomUUID(),name:t,columns:y(n),data:o,cellStyles:{}}}function j(){const m=l(null),g=l(void 0);void 0===g.current&&(g.current=r());const j=l(g.current?.data??null),w=(()=>{const e=g.current;if(!e)return null;const t=k(e.data,"Sheet 1");if(!t)return null;return{sheet:t,title:e.data.filename.replace(/\.(csv|tsv|txt)$/i,"")}})(),[N,C]=s(w?[w.sheet]:[f("Sheet 1")]),[S,U]=s(0),D=l([]),M=l(N),L=l(!1);c(()=>{L.current?L.current=!1:M.current!==N&&(D.current.push(M.current),D.current.length>50&&D.current.shift()),M.current=N},[N]);const E=i(()=>{const e=D.current.pop();e&&(L.current=!0,C(e))},[]);c(()=>{const e=e=>{if(!m.current?.contains(document.activeElement)&&!m.current?.matches(":focus-within"))return;(e.ctrlKey||e.metaKey)&&!e.shiftKey&&("z"===e.key||"Z"===e.key)&&(e.preventDefault(),E())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[E]);const[A,K]=s(w?.title??"Untitled"),[$,B]=s(()=>g.current?.data.onEmail),J=i(e=>{const t=k(e,"Sheet 1");t&&(C([t]),U(0),K(e.filename.replace(/\.(csv|tsv|txt)$/i,"")),B(()=>e.onEmail))},[]);c(()=>{const e=g.current;null!=e&&(n(e),e.data!==j.current&&J(e.data))},[]),c(()=>{const e=g.current?.token;if(null==e)return;const t=t=>{const r=t.detail;r&&r.token===e&&J(r.data)};return window.addEventListener(o,t),()=>window.removeEventListener(o,t)},[]);const[Q,F]=s(!1),[G,R]=s(null),[W,X]=s(""),I=l(null),[H,P]=s("1"),[V,T]=s("10"),Z=N[S]||N[0],O=Z.data,Y=Z.columns,z=Z.cellStyles??{},[_,q]=s(null),[ee,te]=s(null),re=i(()=>{if(ee){const e=Math.min(ee.anchor.row,ee.end.row),t=Math.max(ee.anchor.row,ee.end.row),r=Math.min(ee.anchor.col,ee.end.col),n=Math.max(ee.anchor.col,ee.end.col),o=[];for(let a=e;a<=t;a++)for(let e=r;e<=n;e++)o.push({row:a,col:e});return o}return _?[_]:[]},[ee,_]),ne=i((e,t)=>{const r=re();0!==r.length&&C(n=>n.map((n,o)=>{if(o!==S)return n;const a={...n.cellStyles??{}},l=`${r[0].row}:${r[0].col}`,s=void 0!==t?t:!(a[l]??{})[e];for(const{row:t,col:n}of r){const r=`${t}:${n}`;a[r]={...a[r]??{},[e]:s}}return{...n,cellStyles:a}}))},[re,S]),oe=ee?{row:ee.anchor.row,col:ee.anchor.col}:_,ae=oe?z[`${oe.row}:${oe.col}`]??{}:{},le=!!oe,se=i(e=>{C(t=>t.map((t,r)=>r===S?{...t,...e}:t))},[S]),ce=i(e=>{const t=e.reduce((e,t)=>Math.max(e,t.length),0);t!==Y.length?se({data:e,columns:y(t)}):se({data:e})},[se,Y.length]),ie=(e,t)=>{C(r=>r.map((r,n)=>n===e?{...r,name:t}:r)),R(null)},ue=()=>O.filter(e=>e.some(e=>e.trim())).map(e=>e.map(e=>e.includes(",")||e.includes('"')||e.includes("\n")?`"${e.replace(/"/g,'""')}"`:e).join(",")).join("\n"),de=[];O.forEach(e=>e.forEach(e=>{const t=parseFloat(e);!isNaN(t)&&e.trim()&&de.push(t)}));const he=O.reduce((e,t)=>e+t.filter(e=>e.trim()).length,0);/* @__PURE__ */
|
|
2
|
-
return u("div",{ref:m,className:"flex flex-col h-full",children:[
|
|
3
|
-
/* @__PURE__ */d(a,{title:`${me=A||"Untitled",me.length>24?`${me.slice(0,23)}…`:me} - Spreadsheets`}),
|
|
4
|
-
/* @__PURE__ */d(t,{app:"spreadsheet"}),
|
|
5
|
-
/* @__PURE__ */u("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-gray-200 bg-gray-50 shrink-0",children:[Q?/* @__PURE__ */d("input",{type:"text",value:A,onChange:e=>K(e.target.value),onBlur:()=>F(!1),onKeyDown:e=>{"Enter"===e.key&&F(!1)},autoFocus:!0,className:"text-sm font-medium text-gray-900 border border-gray-300 rounded px-2 py-0.5 w-40 focus:border-blue-500 focus:ring-blue-500"}):/* @__PURE__ */d("button",{onClick:()=>F(!0),className:"text-sm font-medium text-gray-900 hover:text-blue-600 truncate max-w-[200px]",title:"Click to rename",children:A||"Untitled"}),
|
|
6
|
-
/* @__PURE__ */d("div",{className:"h-4 w-px bg-gray-300"}),
|
|
7
|
-
/* @__PURE__ */d("input",{ref:I,type:"file",accept:".csv,.tsv,.txt,.xlsx,.xls,.ods",onChange:async e=>{const t=e.target.files?.[0];if(!t)return;const r=t.name.replace(/\.(csv|tsv|txt|xlsx|xls|ods)$/i,"");if(/\.(xlsx|xls|ods)$/i.test(t.name)){const e=new Uint8Array(await t.arrayBuffer()),n=await(import("xlsx")),o=n.read(e,{type:"array"}),a=o.SheetNames.map(e=>{const t=n.utils.sheet_to_json(o.Sheets[e],{header:1,defval:""}),r=Math.max(p,t.reduce((e,t)=>Math.max(e,t.length),0)),a=t.map(e=>{const t=e.map(e=>String(e??""));for(;t.length<r;)t.push("");return t});for(;a.length<x;)a.push(Array(r).fill(""));return{id:crypto.randomUUID(),name:e,columns:y(r),data:a}});C(a),U(0),K(r)}else{const e=v(await t.text());if(0===e.length)return;const n=Math.max(p,e.reduce((e,t)=>Math.max(e,t.length),0)),o=e.map(e=>{for(;e.length<n;)e.push("");return e});for(;o.length<x;)o.push(Array(n).fill(""));se({columns:y(n),data:o}),K(r)}I.current&&(I.current.value="")},className:"hidden"}),
|
|
8
|
-
/* @__PURE__ */d("button",{onClick:()=>I.current?.click(),className:"text-xs text-gray-600 hover:text-gray-900 px-2 py-1 rounded hover:bg-gray-200 transition-colors",children:"Open"}),
|
|
9
|
-
/* @__PURE__ */d("button",{onClick:()=>{const e=new Blob([ue()],{type:"text/csv"}),t=URL.createObjectURL(e),r=document.createElement("a");r.href=t,r.download=`${A||"spreadsheet"}.csv`,r.click(),URL.revokeObjectURL(t)},className:"text-xs text-gray-600 hover:text-gray-900 px-2 py-1 rounded hover:bg-gray-200 transition-colors",children:"Save CSV"}),$&&/* @__PURE__ */d("button",{onClick:()=>$(ue(),`${A||"spreadsheet"}.csv`),className:"text-xs text-gray-600 hover:text-gray-900 px-2 py-1 rounded hover:bg-gray-200 transition-colors",children:"Email"}),
|
|
10
|
-
/* @__PURE__ */d("div",{className:"h-4 w-px bg-gray-300"}),
|
|
11
|
-
/* @__PURE__ */u("div",{className:"flex items-center gap-1",children:[
|
|
12
|
-
/* @__PURE__ */d("input",{type:"number",min:"1",max:"50",value:H,onChange:e=>P(e.target.value),className:"w-10 text-xs text-center border border-gray-300 rounded px-1 py-0.5 focus:border-blue-500 focus:ring-blue-500"}),
|
|
13
|
-
/* @__PURE__ */d("button",{onClick:()=>(e=>{const t=Y.length+e;se({columns:y(t),data:O.map(t=>[...t,...Array(e).fill("")])})})(parseInt(H)||1),className:"text-xs text-gray-600 hover:text-gray-900 px-2 py-1 rounded hover:bg-gray-200 transition-colors",children:"+ Col"})]}),
|
|
14
|
-
/* @__PURE__ */u("div",{className:"flex items-center gap-1",children:[
|
|
15
|
-
/* @__PURE__ */d("input",{type:"number",min:"1",max:"500",value:V,onChange:e=>T(e.target.value),className:"w-10 text-xs text-center border border-gray-300 rounded px-1 py-0.5 focus:border-blue-500 focus:ring-blue-500"}),
|
|
16
|
-
/* @__PURE__ */d("button",{onClick:()=>{return e=parseInt(V)||10,void se({data:[...O,...Array.from({length:e},()=>Array(Y.length).fill(""))]});var e},className:"text-xs text-gray-600 hover:text-gray-900 px-2 py-1 rounded hover:bg-gray-200 transition-colors",children:"+ Row"})]}),
|
|
17
|
-
/* @__PURE__ */d("div",{className:"h-4 w-px bg-gray-300"}),
|
|
18
|
-
/* @__PURE__ */d("button",{onClick:()=>{se({columns:y(p),data:b(x,p)})},className:"text-xs text-gray-600 hover:text-gray-900 px-2 py-1 rounded hover:bg-gray-200 transition-colors",children:"Clear"}),
|
|
19
|
-
/* @__PURE__ */d("div",{className:"h-4 w-px bg-gray-300"}),
|
|
20
|
-
/* @__PURE__ */u("div",{className:"flex items-center gap-0.5",title:le?"":"Click a cell first",children:[
|
|
21
|
-
/* @__PURE__ */d("button",{onClick:()=>ne("bold"),disabled:!le,className:`px-2 py-1 text-xs rounded transition-colors font-bold ${ae.bold?"bg-blue-100 text-blue-700":"text-gray-600 hover:bg-gray-200"} disabled:opacity-40 disabled:cursor-not-allowed`,children:"B"}),
|
|
22
|
-
/* @__PURE__ */d("button",{onClick:()=>ne("italic"),disabled:!le,className:`px-2 py-1 text-xs rounded transition-colors italic ${ae.italic?"bg-blue-100 text-blue-700":"text-gray-600 hover:bg-gray-200"} disabled:opacity-40 disabled:cursor-not-allowed`,children:"I"}),
|
|
23
|
-
/* @__PURE__ */d("button",{onClick:()=>ne("underline"),disabled:!le,className:`px-2 py-1 text-xs rounded transition-colors underline ${ae.underline?"bg-blue-100 text-blue-700":"text-gray-600 hover:bg-gray-200"} disabled:opacity-40 disabled:cursor-not-allowed`,children:"U"}),
|
|
24
|
-
/* @__PURE__ */u("select",{value:ae.fontSize??"base",onChange:e=>ne("fontSize",e.target.value),disabled:!le,className:"ml-1 text-xs border border-gray-300 rounded px-1 py-0.5 bg-white disabled:opacity-40 disabled:cursor-not-allowed",children:[
|
|
25
|
-
/* @__PURE__ */d("option",{value:"sm",children:"XS"}),
|
|
26
|
-
/* @__PURE__ */d("option",{value:"base",children:"S"}),
|
|
27
|
-
/* @__PURE__ */d("option",{value:"lg",children:"M"}),
|
|
28
|
-
/* @__PURE__ */d("option",{value:"xl",children:"L"})]})]})]}),
|
|
29
|
-
/* @__PURE__ */d("div",{className:"flex-1 min-h-0",children:/* @__PURE__ */d(e,{columns:Y,data:O,onChange:ce,onColumnsChange:e=>se({columns:e}),cellStyles:z,onFocusChange:q,onSelectionChange:te,minRows:x,maxHeight:"100%"})}),
|
|
30
|
-
/* @__PURE__ */u("div",{className:"flex items-center border-t border-gray-200 bg-gray-50 shrink-0",children:[
|
|
31
|
-
/* @__PURE__ */u("div",{className:"flex items-center gap-0.5 px-1 py-1 overflow-x-auto flex-1 min-w-0",children:[N.map((e,t)=>/* @__PURE__ */d("button",{onClick:()=>U(t),onDoubleClick:()=>{R(t),X(e.name)},onContextMenu:e=>{e.preventDefault(),N.length>1&&(e=>{N.length<=1||(C(t=>t.filter((t,r)=>r!==e)),S>=e&&S>0&&U(S-1))})(t)},className:"px-3 py-1 text-xs font-medium rounded-b whitespace-nowrap transition-colors "+(t===S?"bg-white text-blue-700 border border-t-0 border-gray-300 -mt-px relative z-10":"text-gray-500 hover:text-gray-700 hover:bg-gray-100"),children:G===t?/* @__PURE__ */d("input",{type:"text",value:W,onChange:e=>X(e.target.value),onBlur:()=>ie(t,W||e.name),onKeyDown:r=>{"Enter"===r.key&&ie(t,W||e.name),"Escape"===r.key&&R(null)},onClick:e=>e.stopPropagation(),autoFocus:!0,className:"w-20 text-xs border border-blue-400 rounded px-1 py-0 focus:ring-0 focus:outline-none"}):e.name},e.id)),
|
|
32
|
-
/* @__PURE__ */d("button",{onClick:()=>{const e=`Sheet ${N.length+1}`;C(t=>[...t,f(e)]),U(N.length)},className:"px-2 py-1 text-xs text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded",title:"Add sheet",children:"+"})]}),
|
|
33
|
-
/* @__PURE__ */u("div",{className:"flex items-center gap-4 px-3 py-1 text-xs text-gray-500 shrink-0 border-l border-gray-200",children:[
|
|
34
|
-
/* @__PURE__ */u("span",{children:[he," cells"]}),de.length>0&&/* @__PURE__ */u(h,{children:[
|
|
35
|
-
/* @__PURE__ */u("span",{children:["Sum: ",de.reduce((e,t)=>e+t,0).toLocaleString(void 0,{maximumFractionDigits:2})]}),
|
|
36
|
-
/* @__PURE__ */u("span",{children:["Avg: ",(de.reduce((e,t)=>e+t,0)/de.length).toLocaleString(void 0,{maximumFractionDigits:2})]})]}),
|
|
37
|
-
/* @__PURE__ */u("span",{children:[O.length," × ",Y.length]})]})]})]});var me}export{j as default};
|