efficient-shell 10.14.0 → 10.15.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 +16 -6
- package/dist/{Browser-LAMGXJI6.js → Browser-WR4GMYE7.js} +14 -14
- package/dist/Calculator-MV5JVQBS.js +29 -0
- package/dist/{CurrencyConverter-577XB7A3.js → CurrencyConverter-HEAAQX23.js} +7 -7
- package/dist/{Documents-DW7I624C.js → Documents-NSPKXCTF.js} +14 -14
- package/dist/{Files-VLSMINW5.js → Files-5HAUE2PR.js} +63 -63
- package/dist/{Notepad-54H6KCGS.js → Notepad-5LSFAYXO.js} +9 -9
- package/dist/PdfViewer-LU5JKHSG.js +1 -0
- package/dist/{PomodoroTimer-CXJVY7U3.js → PomodoroTimer-5V32QOCZ.js} +20 -20
- package/dist/{Preview-OWMTJFTO.js → Preview-PDVZZRSK.js} +30 -30
- package/dist/{Sidebar-7RR5WNIF.js → Sidebar-E3VDFBF6.js} +32 -32
- package/dist/{Spreadsheet-HWNS4TSX.js → Spreadsheet-K4IAI3A2.js} +12 -12
- package/dist/{Stock-M4TDRNCI.js → Stock-AOCHAKUF.js} +3 -3
- package/dist/{Weather-K634BVDX.js → Weather-F2QHTG32.js} +18 -18
- package/dist/{WorldClock-56CYOGR2.js → WorldClock-G72577HU.js} +6 -6
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.js +56 -54
- package/dist/ai.css +1 -1
- 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/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/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/SankeyChart.js +1 -1
- package/dist/charts/ScatterChart.js +1 -1
- package/dist/charts/SpecChart.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-3BYLHJLC.js → chunk-25M7CYCR.js} +8 -8
- package/dist/chunk-26LO7XCK.js +2 -0
- package/dist/{chunk-ALWVHNUO.js → chunk-2JG5JU4M.js} +4 -4
- package/dist/{chunk-QNK2I4IH.js → chunk-2RAOWHHM.js} +12 -12
- package/dist/{chunk-KKSVRIMP.js → chunk-2UO47XB4.js} +8 -3
- package/dist/{chunk-ULXCDM7Y.js → chunk-36R3R3IB.js} +4 -4
- package/dist/{chunk-O4V5PEA3.js → chunk-3AH524CN.js} +1 -1
- package/dist/{chunk-OZBM2XFQ.js → chunk-3EJ64VKE.js} +1 -1
- package/dist/chunk-3GHTOSJP.js +14 -0
- package/dist/chunk-4AQ67NP2.js +15 -0
- package/dist/{chunk-QPJQJRHZ.js → chunk-4U57ANZF.js} +4 -4
- package/dist/{chunk-QHOBK35Y.js → chunk-4VTJEKHX.js} +1 -1
- package/dist/{chunk-H64JJSXC.js → chunk-4XS32UWF.js} +4 -4
- package/dist/{chunk-A4HJDSRA.js → chunk-55W5TTKS.js} +6 -6
- package/dist/{chunk-SDQIXE5M.js → chunk-5FRFSPQ2.js} +8 -8
- package/dist/{chunk-GBCH3UHD.js → chunk-5JU53T3U.js} +17 -17
- package/dist/{chunk-3ELLBQPS.js → chunk-5LCDCO46.js} +1 -1
- package/dist/{chunk-YJLLLO5R.js → chunk-5LXT3IUL.js} +1 -1
- package/dist/{chunk-GISDIVFK.js → chunk-5N5AAYQV.js} +1 -1
- package/dist/{chunk-SMUH7NAN.js → chunk-66XPG5G3.js} +1 -1
- package/dist/chunk-6BB6A5OB.js +6 -0
- package/dist/chunk-6C6TRDNI.js +1 -0
- package/dist/chunk-6WSH6D5N.js +29 -0
- package/dist/chunk-7LQGPMRP.js +3 -0
- package/dist/{chunk-KOBYM5JV.js → chunk-7MSC3Z5H.js} +12 -12
- package/dist/{chunk-D7F442OZ.js → chunk-7PSIPTOE.js} +1 -1
- package/dist/{chunk-SO6X4CII.js → chunk-A267MPGS.js} +1 -1
- package/dist/{chunk-ORIGX2H5.js → chunk-AJFR35CO.js} +4 -4
- package/dist/{chunk-JBOMPD3V.js → chunk-AJFWBEIG.js} +9 -9
- package/dist/{chunk-ZNAVCHBV.js → chunk-AJVUND5A.js} +6 -6
- package/dist/chunk-ALDGSODF.js +2 -0
- package/dist/chunk-ARCQYF7G.js +23 -0
- package/dist/{chunk-UNRPRMQO.js → chunk-B25RVAVS.js} +44 -44
- package/dist/{chunk-FFIQPFUR.js → chunk-B37JVKW5.js} +1 -1
- package/dist/chunk-CDA2VXBN.js +8 -0
- package/dist/{chunk-JRZ7PPVJ.js → chunk-CFAELIKH.js} +6 -6
- package/dist/{chunk-7PUVPDUZ.js → chunk-CHAWFMV4.js} +4 -4
- package/dist/chunk-CNLYFW47.js +9 -0
- package/dist/{chunk-XNKIDGZW.js → chunk-CRILBBSU.js} +1 -1
- package/dist/{chunk-XAROKI7X.js → chunk-E5QPXEKN.js} +2 -2
- package/dist/chunk-EFU4Z66K.js +8 -0
- package/dist/{chunk-BS7IPLRR.js → chunk-EHGGSUXA.js} +1 -1
- package/dist/{chunk-F6JDUMM7.js → chunk-EK5WJQTR.js} +1 -1
- package/dist/{chunk-TXDA7TTP.js → chunk-EQZZ4V5X.js} +1 -1
- package/dist/{chunk-NSLQ3UYJ.js → chunk-ESYYKGN4.js} +2 -2
- package/dist/{chunk-URERZUX5.js → chunk-EXJXOKUU.js} +1 -1
- package/dist/{chunk-EYZZW6SO.js → chunk-EYEB3J77.js} +5 -5
- package/dist/{chunk-RBQWIHYD.js → chunk-F2R3UFNQ.js} +1 -1
- package/dist/{chunk-LOFYSLC7.js → chunk-FFZREKEF.js} +9 -9
- package/dist/{chunk-2VTO64YC.js → chunk-FGJOGBGZ.js} +8 -8
- package/dist/{chunk-MXH3UPCH.js → chunk-FJYTYW6M.js} +5 -5
- package/dist/chunk-FQIA5BTN.js +22 -0
- package/dist/{chunk-37U326EL.js → chunk-FRVNDEV2.js} +11 -11
- package/dist/{chunk-LDE5IV2M.js → chunk-FUVVO6YP.js} +1 -1
- package/dist/chunk-FX6DBXXD.js +1 -0
- package/dist/{chunk-7JGR7WPD.js → chunk-G4JTO5PB.js} +1 -1
- package/dist/{chunk-3RORPK2J.js → chunk-G7QK7WAK.js} +1 -1
- package/dist/{chunk-TVH7IZQ4.js → chunk-GKIU55T5.js} +2 -2
- package/dist/{chunk-RQSVBXBV.js → chunk-HL3DJTIC.js} +7 -7
- package/dist/{chunk-KUMEDH5M.js → chunk-HRPXJ4EI.js} +1 -1
- package/dist/chunk-HXNMRJQ4.js +2 -0
- package/dist/{chunk-SCPCZCYQ.js → chunk-IC7BEFE3.js} +1 -1
- package/dist/chunk-IFA2EOAF.js +4 -0
- package/dist/chunk-JEH5EVIG.js +1 -0
- package/dist/{chunk-DRDYZ633.js → chunk-KJCTXWF7.js} +2 -2
- package/dist/{chunk-F5FNYNHF.js → chunk-KKOADH55.js} +1 -1
- package/dist/chunk-KMEERBZV.js +2 -0
- package/dist/chunk-KORKSPHQ.js +6 -0
- package/dist/{chunk-QODTON7V.js → chunk-LJN77RG6.js} +1 -1
- package/dist/{chunk-63L5ORRZ.js → chunk-LPXMHYTM.js} +1 -1
- package/dist/{chunk-JGFY54A4.js → chunk-LVBO2OMQ.js} +2 -2
- package/dist/{chunk-M3OYHYIS.js → chunk-LWEWURFT.js} +13 -13
- package/dist/chunk-LWWMRL2Y.js +5 -0
- package/dist/chunk-M4K6FLIY.js +1 -0
- package/dist/{chunk-O6JJIR4H.js → chunk-M5LR7ZZX.js} +1 -1
- package/dist/{chunk-UWIZX3RK.js → chunk-MCYFUIXH.js} +1 -1
- package/dist/{chunk-N67QX3WW.js → chunk-MMQ6ETRD.js} +2 -2
- package/dist/chunk-MNZ7MGAT.js +2 -0
- package/dist/{chunk-2K2W6VIR.js → chunk-N2RHM432.js} +1 -1
- package/dist/{chunk-CAVADOJK.js → chunk-N3YBOXOF.js} +1 -1
- package/dist/{chunk-LTKXAHS3.js → chunk-N4REWGMM.js} +8 -8
- package/dist/{chunk-7X5FABQS.js → chunk-NBB2RKDH.js} +5 -5
- package/dist/{chunk-C2P2Z6HU.js → chunk-NBVHJZVS.js} +14 -14
- package/dist/chunk-NLGMJGD6.js +14 -0
- package/dist/{chunk-CKKUFDZ3.js → chunk-NWURIQI3.js} +3 -3
- package/dist/{chunk-AZ3AR7U7.js → chunk-NZCSLS4O.js} +3 -3
- package/dist/{chunk-3NW5LD7D.js → chunk-NZQCDFDG.js} +3 -3
- package/dist/chunk-OAT7OEWP.js +11 -0
- package/dist/chunk-OET2Q7P6.js +19 -0
- package/dist/{chunk-ISJPW2FZ.js → chunk-OSVY6SUO.js} +5 -5
- package/dist/{chunk-KP2THXEI.js → chunk-PB3OC4BO.js} +8 -8
- package/dist/{chunk-MBXLROCD.js → chunk-POQ4ETLL.js} +1 -1
- package/dist/{chunk-I2XGPTCN.js → chunk-PUBJ5YHQ.js} +1 -1
- package/dist/{chunk-6XBWM453.js → chunk-Q3IR5SKD.js} +1 -1
- package/dist/{chunk-P5YFQ4IQ.js → chunk-RDYFZHT3.js} +1 -1
- package/dist/chunk-RFEET2LS.js +9 -0
- package/dist/chunk-RSS2ALHH.js +9 -0
- package/dist/{chunk-PXQG5EIH.js → chunk-S52GQQVB.js} +1 -1
- package/dist/{chunk-MVZRZTQP.js → chunk-S5SRXI4V.js} +1 -1
- package/dist/chunk-SCYL5V5X.js +20 -0
- package/dist/chunk-SM7IDX7Y.js +1 -0
- package/dist/chunk-SOGQZVPJ.js +6 -0
- package/dist/{chunk-UYRITNQW.js → chunk-SP2AUVIU.js} +3 -3
- package/dist/{chunk-34URULVW.js → chunk-SQCUN2DX.js} +1 -1
- package/dist/{chunk-67JCJ2MG.js → chunk-SSM3EN7G.js} +1 -1
- package/dist/chunk-TIPU74XW.js +22 -0
- package/dist/{chunk-SOECV4V5.js → chunk-TXNCDDB4.js} +3 -3
- package/dist/{chunk-MUMQ6PW7.js → chunk-U2RFKQVA.js} +1 -1
- package/dist/{chunk-VZ4PBHFN.js → chunk-U2WCV56F.js} +1 -1
- package/dist/{chunk-W6SC3ZNO.js → chunk-UPCLAEKC.js} +2 -2
- package/dist/chunk-UUKTYAWY.js +7 -0
- package/dist/{chunk-MKQZINBW.js → chunk-UWIFXNH6.js} +3 -3
- package/dist/{chunk-DDCMMOB4.js → chunk-V2MIQ4GJ.js} +2 -2
- package/dist/chunk-V6F42DX3.js +11 -0
- package/dist/chunk-VWEG2WM4.js +12 -0
- package/dist/{chunk-G4GVLK44.js → chunk-WZ5QSSUM.js} +6 -6
- package/dist/{chunk-CHBRMAJV.js → chunk-XDBG4HPV.js} +1 -1
- package/dist/chunk-XIB72X74.js +2 -0
- package/dist/{chunk-YWDEFPSW.js → chunk-XJUREXYW.js} +3 -3
- package/dist/{chunk-WINNA7LS.js → chunk-XPPLCLYK.js} +1 -1
- package/dist/{chunk-7YOQS3C6.js → chunk-XTCXX5LJ.js} +1 -1
- package/dist/{chunk-6U6WVU5F.js → chunk-YFMZKTJC.js} +1 -1
- package/dist/{chunk-C2L33LDZ.js → chunk-YLGQ6ACR.js} +2 -2
- package/dist/chunk-ZE5TNYWX.js +7 -0
- package/dist/{chunk-LCJRTJXT.js → chunk-ZHPHNQKM.js} +7 -7
- package/dist/{chunk-AGG4RFXR.js → chunk-ZI6SMZJ4.js} +11 -11
- package/dist/{chunk-ZZOBG6GP.js → chunk-ZL5OSF26.js} +19 -19
- package/dist/{chunk-PBWUEBJ5.js → chunk-ZL7O4KGQ.js} +1 -1
- package/dist/{chunk-CPZ42W2B.js → chunk-ZLSUQAD3.js} +1 -1
- package/dist/{chunk-TKJBZIHT.js → chunk-ZMRGHVKS.js} +1 -1
- package/dist/chunk-ZO244TWH.js +8 -0
- package/dist/{chunk-GSKLHUQ6.js → chunk-ZW3IDCP2.js} +1 -1
- package/dist/{chunk-IKNG7EFQ.js → chunk-ZZTCYEQ4.js} +7 -7
- package/dist/data/DataTable.js +1 -1
- package/dist/data/Kanban.js +1 -1
- package/dist/data/ListLoadError.js +1 -1
- package/dist/format/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/DisplayChips.js +1 -1
- package/dist/forms/FilePicker.js +1 -1
- package/dist/forms/IconButton.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUploadGrid.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/NumericKeypad.js +1 -1
- package/dist/forms/PictureTiles.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/Segmented.js +1 -1
- package/dist/forms/Select.d.ts +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.d.ts +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/forms/mediaLibraryMenu.js +1 -1
- package/dist/forms/textAlign.d.ts +1 -1
- package/dist/forms/textAlign.js +1 -1
- package/dist/icons/efficient-glyphs.d.ts +1 -0
- package/dist/icons/efficient-glyphs.js +1 -1
- package/dist/icons/efficient-looks.d.ts +2 -0
- package/dist/icons/efficient-looks.js +1 -1
- package/dist/icons/efficient-meanings.d.ts +1 -0
- package/dist/icons/efficient-meanings.js +1 -1
- package/dist/icons/efficient.d.ts +1 -0
- package/dist/icons/efficient.js +1 -1
- package/dist/icons/glyphs/EnterIcon.d.ts +8 -0
- package/dist/icons/glyphs/EnterIcon.js +1 -0
- package/dist/icons/index.d.ts +2 -2
- package/dist/icons/index.js +1 -1
- package/dist/icons/looks/EnterMiniIcon.d.ts +8 -0
- package/dist/icons/looks/EnterMiniIcon.js +1 -0
- package/dist/icons/looks/EnterSolidIcon.d.ts +8 -0
- package/dist/icons/looks/EnterSolidIcon.js +1 -0
- package/dist/icons/looks/map.js +1 -1
- package/dist/icons/sets.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +279 -279
- package/dist/map/index.js +7 -7
- package/dist/markdown/index.js +1 -1
- package/dist/{names-CwzeaUf6.d.ts → names-Bmx_9y41.d.ts} +1 -1
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/Banner.js +1 -1
- package/dist/shell/Breadcrumbs.js +1 -1
- package/dist/shell/ColoredBadge.js +1 -1
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/ContextMenu.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/FloatingBar.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.d.ts +1 -1
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/MilestoneTimeline.js +1 -1
- package/dist/shell/PageHeader.js +1 -1
- package/dist/shell/Popover.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/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/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/telemetry/index.js +1 -1
- package/dist/templates/AuthScreen.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DashboardTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/ErrorBoundary.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/templates/GalleryTemplate.js +1 -1
- package/dist/tokens/colour.d.ts +2 -2
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-ZFMTTDQ6.js +0 -29
- package/dist/PdfViewer-Z4YKDHIH.js +0 -1
- package/dist/chunk-3GL4OVBB.js +0 -1
- package/dist/chunk-47EYPWCB.js +0 -14
- package/dist/chunk-7YZ5TUXE.js +0 -11
- package/dist/chunk-A5BV6NFA.js +0 -7
- package/dist/chunk-CGQAKGPT.js +0 -8
- package/dist/chunk-COJYPNKF.js +0 -2
- package/dist/chunk-DWMOUDMX.js +0 -1
- package/dist/chunk-E3HSZQFI.js +0 -22
- package/dist/chunk-EDKRGYZX.js +0 -9
- package/dist/chunk-EU3JZGV2.js +0 -14
- package/dist/chunk-FZO6H3ZB.js +0 -6
- package/dist/chunk-I4VIEGCX.js +0 -2
- package/dist/chunk-IKMWKOT5.js +0 -1
- package/dist/chunk-JAKOZNZK.js +0 -2
- package/dist/chunk-JSGQWVYH.js +0 -7
- package/dist/chunk-KZMJE24J.js +0 -5
- package/dist/chunk-KZX25YEW.js +0 -22
- package/dist/chunk-L3QNKCXH.js +0 -11
- package/dist/chunk-LKTBKVN6.js +0 -8
- package/dist/chunk-PN65IIYN.js +0 -8
- package/dist/chunk-PUF75SMJ.js +0 -1
- package/dist/chunk-QKWYCOMM.js +0 -23
- package/dist/chunk-R7APUBZB.js +0 -29
- package/dist/chunk-RCPFUDPS.js +0 -4
- package/dist/chunk-SWN3LSQX.js +0 -12
- package/dist/chunk-TMNAHOJ7.js +0 -9
- package/dist/chunk-UBOP6HFI.js +0 -6
- package/dist/chunk-UWK5Q3R4.js +0 -19
- package/dist/chunk-W6URVLQF.js +0 -20
- package/dist/chunk-WTTSB4SV.js +0 -3
- package/dist/chunk-XBB6LSSB.js +0 -6
- package/dist/chunk-Y3R267FV.js +0 -15
- package/dist/chunk-YGSU5KCP.js +0 -9
- package/dist/chunk-ZTPMMNAZ.js +0 -1
- /package/dist/{chunk-744BFBBV.js → chunk-6V6ANLHW.js} +0 -0
- /package/dist/{chunk-S2P74CBN.js → chunk-ID6WFAXW.js} +0 -0
package/dist/map/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{Button_default as e}from"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import{Icon as t}from"../chunk-KKSVRIMP.js";import"../chunk-J75ZT2JQ.js";import{SpinnerRing as n}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import{rootIsDark as r,ROOT_THEME_ATTRIBUTES as o}from"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import{useShellStrings as a}from"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";import{useRef as l,useState as s,useEffect as i,useCallback as c,useMemo as u,useSyncExternalStore as d}from"react";import{createPortal as p}from"react-dom";import{jsxs as m,jsx as h,Fragment as g}from"react/jsx-runtime";import{useQuery as f}from"@tanstack/react-query";var b="maplibregl-compact-show";function y(e){if(!e)return()=>{};const t=()=>!!e.classList.contains(b)&&(e.classList.remove(b),!0);if(t())return()=>{};const n=new MutationObserver(()=>{t()&&n.disconnect()});return n.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()}var x="https://tiles.openfreemap.org",k={connect:[x]},v={light:`${x}/styles/positron`,dark:`${x}/styles/dark`},w=20,N=12,M=480,C={center:[0,0],left:[w,0],right:[-20,0],top:[0,w],"top-left":[0,w],"top-right":[0,w],bottom:[0,-20],"bottom-left":[0,-20],"bottom-right":[0,-20]},L=(e,t=12)=>Math.max(0,Math.floor(e-t-N-w-10-16));function j(e,t,n,r=12){const o=e.y-w-r,a=n.height-e.y-w-N,l=t.height<=o||t.height>a&&o>=a,s=l?Math.max(0,t.height-o):-Math.max(0,t.height-a);let i="",c=0;return e.x-t.width/2<N?(i="-left",c=Math.max(0,N-e.x)):e.x+t.width/2>n.width-N&&(i="-right",c=-Math.max(0,e.x-(n.width-N))),{anchor:`${l?"bottom":"top"}${i}`,move:{x:c,y:s}}}var E="maplibre-gl-worker.mjs",$=e=>`/maplibre-gl/${e}/${E}`,S=null;function B(){return S??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl($(e.getVersion())),e)).catch(e=>{throw S=null,e}),S}var A=null;var z=24,R=28,W=29;function T(e){const t=[...e].sort((e,t)=>e-t),n=[];for(let e=0;e<t.length;){let r=e;for(;r+1<t.length&&t[r+1]===t[r]+1;)r++;n.push(r===e?String(t[e]):`${t[e]}–${t[r]}`),e=r+1}return n.join(", ")}function F(e){const t=Math.max(R,12+8*e.length);return t+t%2}var O=(e,t,n,r)=>({left:e-n/2,top:t-r/2,right:e+n/2,bottom:t+r/2});function K(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var P=e=>O(e.x,e.y,e.width,e.height);function q(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(K(P(e[t]),P(e[n])))return[e[t],e[n]];return null}function H(e,t=[]){const n=[],r=e=>t.some(t=>K(t,e));let o=e.filter(e=>null!==e.stop).sort((e,t)=>e.stop-t.stop).map(e=>({keys:[e.key],stops:[e.stop],x:e.x,y:e.y,width:R,height:R,under:0}));for(let e=q(o);e;e=q(o)){const[t,n]=e;t.keys.push(...n.keys),t.stops.push(...n.stops),t.stops.sort((e,t)=>e-t),t.width=F(T(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(P(e))||(n.push(...e.keys),!1));const a=[];for(const t of e){if(null!==t.stop)continue;const e=O(t.x,t.y,z,z),l=o.find(t=>K(P(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const s=a.find(t=>K(P(t),e));s?s.keys.push(t.key):a.push({keys:[t.key],stops:[],x:t.x,y:t.y,width:z,height:z,under:0})}return{groups:[...o,...a],hidden:n}}function _(e,t,n){let r=-1/0;for(const o of t){const t=Math.max(Math.abs(o.x-e.x),Math.abs(o.y-e.y));r=Math.max(r,0===t?1/0:n+Math.log2(29/t))}return r}function I(e){const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:o}),()=>t.disconnect()}var D=r;var J=(...e)=>e.filter(Boolean).join(" "),U=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function V(e){return e.split(/\s+/).some(e=>{const t=e.search(/[[(]/),n=t<0?e:e.slice(0,t),r=e.slice(n.lastIndexOf(":")+1);return r.startsWith("border-")&&!U.test(r.slice(7))})}var Z="ring-2 ring-gray-900 ring-offset-2",G={portal:{frame:e=>J("relative min-h-72 overflow-hidden rounded-lg border border-line bg-gray-100",e&&"[&_canvas]:cursor-crosshair"),fill:"absolute inset-0",box:"h-full w-full",failed:"absolute inset-0 grid place-items-center p-6 text-center text-sm text-ink-faint",cardInline:"absolute bottom-3 left-3 right-3 z-10 max-h-[calc(100%-1.5rem)] max-w-md overflow-y-auto overscroll-contain",cardFloating:"w-[26rem] overflow-y-auto overscroll-contain",ring:"pointer-events-none rounded-full border-2 border-gray-900 bg-gray-900/15 shadow-[0_0_0_2px_var(--color-white,#fff)]",pinButton:(e,t)=>J("relative grid place-items-center rounded-full cursor-pointer",t&&(null!=e.stop?"h-7 w-7":"h-6 w-6")),pinMark:(e,t,n,r)=>{const o=t&&!r&&null==e.stop&&!e.dot;return J("grid place-items-center rounded-full border-2 font-semibold leading-none shadow-sm transition-transform motion-reduce:transition-none",!V(e.tone)&&"border-white",e.tone,e.dot?"h-4 w-4 opacity-80":null!=e.stop?"h-7 w-7 text-xs ring-2 ring-gray-900":o?"h-8 w-8 text-xs [&_svg]:h-4 [&_svg]:w-4":"h-6 w-6 text-2xs [&_svg]:h-3.5 [&_svg]:w-3.5",t&&(o?"ring-2 ring-gray-900 ring-offset-1":Z),e.approximate&&"border-dashed opacity-80",e.faded&&!t&&"opacity-40",n&&"scale-125 opacity-100")},mark:e=>J("grid place-items-center border-2 px-0.5 text-xs font-semibold leading-none shadow-sm",e.stop?"h-7 min-w-7":"h-6 min-w-6",!V(e.tone??"")&&"border-white",e.tone??"bg-gray-900 text-on-accent"),groupButton:"grid place-items-center rounded-full cursor-pointer",groupDisc:(e,t,n)=>J("grid place-items-center rounded-full border-2 border-gray-700 bg-surface font-semibold leading-none text-ink-strongest shadow-sm",e?"h-7 w-full px-1 text-xs ring-2 ring-gray-900":t?"h-5 w-5 text-3xs":"h-6 w-6 text-2xs",n&&Z),badge:e=>J("absolute -right-2 -top-2 grid h-4 min-w-4 place-items-center rounded-full px-0.5 text-3xs font-semibold leading-none shadow",e??"bg-surface text-ink-strongest"),iconHost:"contents"},site:{frame:e=>J("rosh-map-frame",e&&"rosh-map-frame--picking"),fill:"rosh-map-fill",box:"rosh-map-box",failed:"rosh-map-failed",cardInline:"rosh-map-card-inline",cardFloating:"rosh-map-card-floating",ring:"rosh-map-ring",pinButton:(e,t)=>J("rosh-map-target",t&&(null!=e.stop?"rosh-map-target--stop":"rosh-map-target--sized")),pinMark:(e,t,n,r)=>J("rosh-map-pin",e.dot?"rosh-map-pin--dot":null!=e.stop?"rosh-map-pin--stop":null,t&&!r&&null==e.stop&&!e.dot&&"rosh-map-pin--grown",t&&"rosh-map-pin--chosen",e.approximate&&"rosh-map-pin--approximate",e.faded&&!t&&"rosh-map-pin--faded",n&&"rosh-map-pin--pointed"),mark:e=>J("rosh-map-mark",e.stop&&"rosh-map-mark--stop"),groupButton:"rosh-map-target",groupDisc:(e,t,n)=>J("rosh-map-group",e?"rosh-map-group--stops":t?"rosh-map-group--dots":null,n&&"rosh-map-group--chosen"),badge:()=>"rosh-map-badge",iconHost:"rosh-map-icon",sheet:function(){return A??=import("efficient-shell/map-site.css").catch(e=>{throw A=null,e}),A}}},Q="routes",X=["routes-road","routes-estimate"];function Y(e){const t=document.createElement("span");t.style.display="none",t.style.color=e,document.body.appendChild(t);const n=getComputedStyle(t).color||"#2563eb";return t.remove(),ee(n)}function ee(e){const t=document.createElement("canvas").getContext("2d");if(!t)return"#2563eb";t.fillStyle="#2563eb",t.fillStyle=e,t.fillRect(0,0,1,1);const[n,r,o]=t.getImageData(0,0,1,1).data;return`rgb(${n}, ${r}, ${o})`}var te={center:[30,20],zoom:1};var ne="http://www.w3.org/2000/svg",re=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,oe=(...e)=>e.filter(Boolean).join(" ");function ae(e){const t=document.createElementNS(ne,"svg");t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.setAttribute("stroke","currentColor"),t.setAttribute("stroke-width","2"),t.setAttribute("aria-hidden","true");for(const n of e){const e=document.createElementNS(ne,"path");e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("d",n),t.appendChild(e)}return t}function le(e,t){for(const[n,r]of Object.entries(t??{}))e.dataset[n]=r}function se({pins:t,selectedKey:n,focus:r,onSelect:o,ariaLabel:u,className:g="",children:f,routes:b,fitTo:x,attribution:k,marks:w,groupCrowded:N=!1,noun:M,highlightKey:E=null,picking:$=!1,onPick:S,card:A,cardMinMapWidth:W=480,fullScreen:F,initialView:O=te,cooperativeGestures:K=!1,look:P="portal",theme:q}){const J=a().map,U=l(null),V=l(null),Z=l(null),ne=l(null),se=l([]),ue=l(/* @__PURE__ */new Map),de=l(/* @__PURE__ */new Map),pe=l(/* @__PURE__ */new Map),me=l(null),he=l(/* @__PURE__ */new Map),ge=l(""),[fe,be]=s(!1),[ye,xe]=s(!1),ke=d(I,D,()=>!1),ve=q??(ke?"dark":"light"),we=G[P],Ne=l({onSelect:o,onPick:S,picking:$,pins:t,selectedKey:n,highlightKey:E,groupCrowded:N,strings:J,noun:M,looks:we});i(()=>{Ne.current={onSelect:o,onPick:S,picking:$,pins:t,selectedKey:n,highlightKey:E,groupCrowded:N,strings:J,noun:M,looks:we}}),i(()=>{we.sheet?.().catch(e=>console.warn("[map] could not load the look's stylesheet",e))},[we]);const Me=c(()=>{const e=Z.current,{pins:t,selectedKey:n}=Ne.current,r=n?t.find(e=>e.key===n):void 0;e&&r&&!e.getBounds().contains([r.lng,r.lat])&&e.easeTo({center:[r.lng,r.lat],duration:re()?0:400})},[]),Ce=l(!1),Le=c((e,t)=>{const n=Z.current,r=ne.current;if(!n||!r)return;const o=n.getZoom();if(o>=17.5){const t=e.indexOf(Ne.current.selectedKey??"");return void Ne.current.onSelect(e[(t+1)%e.length])}const a=e.map(e=>ue.current.get(e).pin),l=new r.LngLatBounds([a[0].lng,a[0].lat],[a[0].lng,a[0].lat]);for(const e of a)l.extend([e.lng,e.lat]);const s=a.map(e=>n.project([e.lng,e.lat])),i=Math.max(...s.map((e,t)=>_(e,s.filter((e,n)=>n!==t),o))),{clientWidth:c,clientHeight:u}=n.getContainer(),d=n.cameraForBounds(l,{padding:Math.min(64,c/4,u/4)})?.zoom??18,p=document.activeElement===t;Ce.current=!0,n.once("moveend",()=>{if(Ce.current=!1,!p)return;const e=a[0].key,t=ue.current.get(e)?.button,n=t&&"none"!==t.style.display?t:[...de.current.values()].find(t=>t.keys.includes(e))?.button;n?.focus({preventScroll:!0})}),n.easeTo({center:l.getCenter(),zoom:Math.min(18,Math.max(o+1,Math.min(d,i))),duration:re()?0:600})},[]),je=c(()=>{const e=Z.current,t=ne.current;if(!e||!t||!U.current||Ce.current&&e.isMoving())return;const{selectedKey:n,highlightKey:r,groupCrowded:o,strings:a,noun:l,looks:s}=Ne.current;for(const[e,t]of ue.current){const a=s.pinMark(t.pin,e===n,e===r,o);t.mark.className!==a&&(t.mark.className=a);const l=e===n?"1":"";t.button.style.zIndex!==l&&(t.button.style.zIndex=l)}let i=null;if(o){const r=e.getContainer().getBoundingClientRect(),o=[...U.current.querySelectorAll("a[href], button, input, select, textarea, summary, [role='button'], [tabindex]:not([tabindex='-1'])")].filter(e=>!e.closest("[data-pin], [data-pin-group], .maplibregl-canvas")).map(e=>{const t=e.getBoundingClientRect(),n=e.closest("[data-map-card]")?.getBoundingClientRect()??t;return{left:Math.max(t.left,n.left)-r.left,top:Math.max(t.top,n.top)-r.top,right:Math.min(t.right,n.right)-r.left,bottom:Math.min(t.bottom,n.bottom)-r.top}}).filter(e=>e.right>e.left&&e.bottom>e.top);i=H([...ue.current.values()].map(({pin:t})=>{const n=e.project([t.lng,t.lat]);return{key:t.key,x:n.x,y:n.y,stop:t.stop??null}}),o);const c=e=>(l??a.places)(e),u=e.getZoom()<17.5?a.spread:a.cycle,d=(e,t)=>{const n=t?"":"none";e.style.display!==n&&(e.style.display=n)},p=/* @__PURE__ */new Map;for(const r of i.groups){const o=r.under>0?a.closeBy(r.under,c(r.under)):null,l=1===r.keys.length?ue.current.get(r.keys[0]):null;if(l){d(l.button,!0),l.button.setAttribute("aria-label",o?`${l.name}; ${o}`:l.name),l.button.title=o?`${l.title}\n${o}`:l.title;continue}for(const e of r.keys)d(ue.current.get(e).button,!1);const i=r.keys.join(" ");let m=de.current.get(i);if(!m){const n=document.createElement("button");n.type="button",n.dataset.pinGroup="",n.className=s.groupButton,n.append(document.createElement("span"));const o=ue.current.get(r.keys[0]).pin,a={button:n,keys:r.keys,marker:new t.Marker({element:n,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)};n.addEventListener("click",e=>{e.stopPropagation(),Le(a.keys,n)}),m=a}m.keys=r.keys;const h=r.keys.map(e=>ue.current.get(e)),g=r.stops.length>0?T(r.stops):String(h.length),f=r.stops.length>0?a.stops(g):a.group(h.length,c(h.length));m.button.style.width=`${r.width}px`,m.button.style.height=`${r.height}px`,m.button.setAttribute("aria-label",`${f}: ${h.map(e=>e.pin.label).join("; ")}. ${u}${o?`; ${o}`:""}.`),m.button.title=[`${f}:`,...h.map(e=>e.title),...o?[o]:[],u].join("\n");const b=m.button.firstElementChild;b.textContent=g;const y=s.groupDisc(r.stops.length>0,h.every(e=>e.pin.dot),null!=n&&r.keys.includes(n));b.className!==y&&(b.className=y),p.set(i,m)}for(const e of i.hidden)d(ue.current.get(e).button,!1);for(const[e,t]of de.current)p.has(e)||t.marker.remove();de.current=p}if(me.current){const e=r&&i?i.groups.find(e=>e.keys.includes(r)&&e.keys.length>1):void 0,t=r?ue.current.get(r):void 0,n=r?pe.current.get(r):void 0,o=e?{at:ue.current.get(e.keys[0]).pin,width:e.width,height:e.height}:t?{at:t.pin,width:t.button.offsetWidth||(null!=t.pin.stop?R:z),height:t.button.offsetHeight||(null!=t.pin.stop?R:z)}:n?{at:n.mark,width:n.element.offsetWidth||R,height:n.element.offsetHeight||R}:null,a=me.current.getElement();a.style.display=o?"":"none",o&&(me.current.setLngLat([o.at.lng,o.at.lat]),a.style.width=`${o.width+22}px`,a.style.height=`${o.height+22}px`)}},[Le]);i(()=>{if(je(),!U.current)return;const e=new ResizeObserver(()=>je());e.observe(U.current);for(const t of U.current.children)t.contains(V.current)||e.observe(t);return()=>e.disconnect()}),i(()=>{let e=!1,t=null,n=null,r=()=>{};return(async()=>{try{const o=await B();if(e||!V.current)return;ne.current=o,t=new o.Map({container:V.current,style:v[ve],center:O.center,zoom:O.zoom,attributionControl:k?{compact:!0,customAttribution:k}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===K?window.matchMedia("(pointer: coarse)").matches:K}),t.touchZoomRotate.disableRotation(),t.keyboard.disableRotation(),t.addControl(new o.NavigationControl({showCompass:!1}),"top-right");const a=document.createElement("div");a.dataset.pinRing="",a.setAttribute("aria-hidden","true"),a.className=Ne.current.looks.ring,a.style.display="none",me.current=new o.Marker({element:a,anchor:"center"}).setLngLat(O.center).addTo(t),t.on("click",e=>{Ne.current.picking&&Ne.current.onPick?.({lat:e.lngLat.lat,lng:e.lngLat.lng})}),t.on("move",je),t.on("moveend",je),t.on("resize",je),t.on("error",e=>console.warn("[map]",e.error?.message)),r=y(V.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),Me()}),n.observe(V.current),Z.current=t,be(!0)}catch(t){console.error("[map] could not start",t),e||xe(!0)}})(),()=>{e=!0,n?.disconnect(),r(),se.current.forEach(e=>e.remove()),se.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),me.current?.remove(),me.current=null,t?.remove(),Z.current=null}},[]);const Ee=l(ve);i(()=>{fe&&Z.current&&Ee.current!==ve&&(Ee.current=ve,Z.current.setStyle(v[ve]))},[fe,ve]),i(()=>{const e=Z.current,n=ne.current;if(!fe||!e||!n)return;se.current.forEach(e=>e.remove()),se.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),ue.current.clear(),pe.current.clear();for(const e of he.current.keys())t.some(t=>t.key===e)||he.current.delete(e);const r=Ne.current.strings;for(const o of t){const t=document.createElement("button");t.type="button",t.dataset.pin=o.key,t.className=we.pinButton(o,N);const a=o.approximate?r.approximate(o.label):o.label,l=o.title??(o.approximate?r.approximateTitle(o.label):o.label);t.setAttribute("aria-label",a),t.title=l;const s=document.createElement("span");if(le(s,o.data),o.dot);else if(null!=o.iconNode){const e=he.current.get(o.key);e&&s.append(e)}else o.icon?.length?s.append(ae(o.icon)):s.textContent=null!=o.stop?String(o.stop):o.glyph;if(t.append(s),o.badge){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.className=we.badge(o.badgeTone),e.textContent=o.badge,t.appendChild(e)}t.addEventListener("click",e=>{e.stopPropagation(),Ne.current.onSelect(o.key)}),se.current.push(new n.Marker({element:t,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)),ue.current.set(o.key,{pin:o,button:t,mark:s,name:a,title:l})}for(const t of w??[]){const r=document.createElement("div");r.dataset.mapMark=t.key,le(r,t.data),r.className=we.mark(t),r.textContent=t.text,r.title=t.title??t.label,r.setAttribute("role","img"),r.setAttribute("aria-label",t.label),se.current.push(new n.Marker({element:r,anchor:"center"}).setLngLat([t.lng,t.lat]).addTo(e)),pe.current.set(t.key,{mark:t,element:r})}je()},[fe,t,w,N,je,P]),i(()=>{fe&&je()},[fe,n,E,je]),i(()=>{if(!fe||!n)return;const e=requestAnimationFrame(Me);return()=>cancelAnimationFrame(e)},[fe,n,Me]),i(()=>{const e=Z.current,n=ne.current,r=x?[...t,...w??[]].filter(e=>x.includes(e.key)):t;if(!fe||!e||!n||0===r.length)return;const o=r.map(e=>`${e.key}@${e.lat},${e.lng}`).sort().join("|");if(ge.current===o)return;const a=""===ge.current;if(ge.current=o,1===r.length)return void e.jumpTo({center:[r[0].lng,r[0].lat],zoom:13});const l=new n.LngLatBounds([r[0].lng,r[0].lat],[r[0].lng,r[0].lat]);for(const e of r)l.extend([e.lng,e.lat]);e.fitBounds(l,{padding:48,maxZoom:14,animate:!a})},[fe,t,w,x]),i(()=>{const e=Z.current;if(!fe||!e)return;const t=(b??[]).filter(e=>e.coordinates.length>=2),n=[...new Set(t.flatMap(e=>e.attribution?[e.attribution]:[]))].join(" · "),r=()=>{const r=function(){const e=document.createElement("span");e.className="text-blue-600",e.style.display="none",document.body.appendChild(e);const t=getComputedStyle(e).color||"#2563eb";return e.remove(),ee(t)}(),o={type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{key:e.key,estimate:e.estimate,faded:!!e.faded,color:e.color?Y(e.color):r},geometry:{type:"LineString",coordinates:e.coordinates}}))},a=["case",["get","faded"],.25,.85],l=["get","color"],s=e.getSource(Q);if(s&&(s.attribution||"")!==n){for(const t of X)e.getLayer(t)&&e.removeLayer(t);e.removeSource(Q)}const i=e.getSource(Q);i?i.setData(o):e.addSource(Q,{type:"geojson",data:o,...n?{attribution:n}:{}}),e.getLayer("routes-road")||e.addLayer({id:"routes-road",type:"line",source:Q,filter:["!",["get","estimate"]],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":4,"line-opacity":a}}),e.getLayer("routes-estimate")||e.addLayer({id:"routes-estimate",type:"line",source:Q,filter:["get","estimate"],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":3,"line-dasharray":[1.5,1.5],"line-opacity":a}})},o=()=>{try{r()}catch(e){console.debug("[map] routes wait for the style",e)}};return o(),e.on("style.load",o),e.once("idle",o),()=>{e.off("style.load",o),e.off("idle",o)}},[fe,b,ve]),i(()=>{const e=Z.current;if(!fe||!e||!r)return;const n=t.find(e=>e.key===r.key);if(!n)return;const o=e.getZoom(),a=N?_(e.project([n.lng,n.lat]),t.filter(e=>e.key!==n.key).map(t=>e.project([t.lng,t.lat])),o):-1/0,l={center:[n.lng,n.lat],zoom:Math.min(18,Math.max(o,13,a))};re()?e.jumpTo(l):e.flyTo({...l,duration:600})},[fe,r?.n]);const[$e,Se]=s(!1);i(()=>{const e=U.current;if(!e)return;const t=()=>Se(e.clientWidth<W);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[W]);const Be=n?t.find(e=>e.key===n)??null:null,Ae=Be?.key??null,ze=Be?.lng??0,Re=Be?.lat??0,We=fe&&!$e&&null!=A&&!!Be,[Te,Fe]=s(null);i(()=>{const e=Z.current,t=ne.current;if(!(We&&e&&t&&Ae))return;const n=document.createElement("div");n.dataset.mapCard="",n.className=Ne.current.looks.cardFloating;const r=new t.Popup({anchor:"bottom",offset:C,className:"rosh-map-card",maxWidth:"none",closeButton:!1,closeOnClick:!1,closeOnMove:!1,focusAfterOpen:!1}).setLngLat([ze,Re]).setDOMContent(n).addTo(e),o=r.getElement(),a=o.querySelector(".maplibregl-popup-content");a&&Object.assign(a.style,{padding:"0",background:"transparent",borderRadius:"0",boxShadow:"none"});const l=o.querySelector(".maplibregl-popup-tip"),s=Ne.current.looks===G.site?"var(--rosh-map-pin, #111)":"var(--color-gray-600, #4b5563)";l&&Object.assign(l.style,{borderTopColor:s,borderBottomColor:s}),Fe(n);let i=!1,c=!1;const u=(t=!0)=>{if(c)return;if(e.isMoving())return void(i||(i=!0,e.once("moveend",()=>{i=!1,u()})));const{clientWidth:o,clientHeight:a}=e.getContainer(),l=function(e,t){const n=e.getBoundingClientRect().top,r=[...e.querySelectorAll(".maplibregl-ctrl-top-left > *, .maplibregl-ctrl-top-right > *"),...t?.querySelectorAll(":scope > [data-map-control]")??[]];let o=0;for(const e of r){const t=e.getBoundingClientRect();t.height>0&&(o=Math.max(o,t.bottom-n))}return o}(e.getContainer(),U.current)+8,s=`${L(a,l)}px`;n.style.maxHeight!==s&&(n.style.maxHeight=s);const d=r.getElement(),p=r.getLngLat(),{anchor:m,move:h}=j(e.project(p),{width:d.offsetWidth,height:d.offsetHeight},{width:o,height:a},l);r.options.anchor!==m&&(r.options.anchor=m,r.setLngLat(p)),!t||0===h.x&&0===h.y||e.panBy([-h.x,-h.y],{duration:re()?0:250}),je()},d=new ResizeObserver(()=>u());d.observe(n);const p=()=>u(),m=()=>{i||u(!1)};e.on("resize",p),e.on("moveend",m);let h=!1;const g=ue.current,f=e=>{h=n.contains(e.target)};return document.addEventListener("focusin",f),()=>{if(c=!0,d.disconnect(),e.off("resize",p),e.off("moveend",m),document.removeEventListener("focusin",f),r.remove(),Fe(null),h&&(!document.activeElement||document.activeElement===document.body)){const e=g.get(Ae)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[We,Ae,ze,Re,je]);const Oe=F?.active??!1,Ke=l(F?.onChange);i(()=>{Ke.current=F?.onChange}),i(()=>{if(!F)return;const e=document.documentElement;Oe&&!document.fullscreenElement&&e.requestFullscreen&&e.requestFullscreen().catch(()=>{}),!Oe&&document.fullscreenElement&&document.exitFullscreen().catch(()=>{})},[Oe]);const Pe=!!F;return i(()=>{if(!Pe)return;const e=()=>{document.fullscreenElement||Ke.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[Pe]),/* @__PURE__ */m("div",{ref:U,className:oe(we.frame($),g),children:[
|
|
3
|
-
/* @__PURE__ */h("div",{className:we.fill,children:/* @__PURE__ */h("div",{ref:
|
|
2
|
+
import{Button_default as e}from"../chunk-HXNMRJQ4.js";import"../chunk-UQYNPYF4.js";import{Icon as t}from"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-SQCUN2DX.js";import"../chunk-Q3IR5SKD.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import{rootIsDark as n,ROOT_THEME_ATTRIBUTES as r}from"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import{SpinnerRing as o}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import{useShellStrings as a}from"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";import{useRef as l,useState as s,useEffect as i,useCallback as c,useMemo as u,useSyncExternalStore as d}from"react";import{createPortal as p}from"react-dom";import{jsxs as m,jsx as h,Fragment as g}from"react/jsx-runtime";import{useQuery as f}from"@tanstack/react-query";var b="maplibregl-compact-show";function y(e){if(!e)return()=>{};const t=()=>!!e.classList.contains(b)&&(e.classList.remove(b),!0);if(t())return()=>{};const n=new MutationObserver(()=>{t()&&n.disconnect()});return n.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>n.disconnect()}var x="https://tiles.openfreemap.org",k={connect:[x]},v={light:`${x}/styles/positron`,dark:`${x}/styles/dark`},w=20,N=12,M=480,C={center:[0,0],left:[w,0],right:[-20,0],top:[0,w],"top-left":[0,w],"top-right":[0,w],bottom:[0,-20],"bottom-left":[0,-20],"bottom-right":[0,-20]},L=(e,t=12)=>Math.max(0,Math.floor(e-t-N-w-10-16));function j(e,t,n,r=12){const o=e.y-w-r,a=n.height-e.y-w-N,l=t.height<=o||t.height>a&&o>=a,s=l?Math.max(0,t.height-o):-Math.max(0,t.height-a);let i="",c=0;return e.x-t.width/2<N?(i="-left",c=Math.max(0,N-e.x)):e.x+t.width/2>n.width-N&&(i="-right",c=-Math.max(0,e.x-(n.width-N))),{anchor:`${l?"bottom":"top"}${i}`,move:{x:c,y:s}}}var $="maplibre-gl-worker.mjs",E=e=>`/maplibre-gl/${e}/${$}`,S=null;function B(){return S??=Promise.all([import("maplibre-gl"),import("maplibre-gl/dist/maplibre-gl.css")]).then(([e])=>(e.setWorkerUrl(E(e.getVersion())),e)).catch(e=>{throw S=null,e}),S}var A=null;var z=24,R=28,T=29;function O(e){const t=[...e].sort((e,t)=>e-t),n=[];for(let e=0;e<t.length;){let r=e;for(;r+1<t.length&&t[r+1]===t[r]+1;)r++;n.push(r===e?String(t[e]):`${t[e]}–${t[r]}`),e=r+1}return n.join(", ")}function W(e){const t=Math.max(R,12+8*e.length);return t+t%2}var F=(e,t,n,r)=>({left:e-n/2,top:t-r/2,right:e+n/2,bottom:t+r/2});function K(e,t){return e.left<t.right+1&&t.left<e.right+1&&e.top<t.bottom+1&&t.top<e.bottom+1}var H=e=>F(e.x,e.y,e.width,e.height);function q(e){for(let t=0;t<e.length;t++)for(let n=t+1;n<e.length;n++)if(K(H(e[t]),H(e[n])))return[e[t],e[n]];return null}function P(e,t=[]){const n=[],r=e=>t.some(t=>K(t,e));let o=e.filter(e=>null!==e.stop).sort((e,t)=>e.stop-t.stop).map(e=>({keys:[e.key],stops:[e.stop],x:e.x,y:e.y,width:R,height:R,under:0}));for(let e=q(o);e;e=q(o)){const[t,n]=e;t.keys.push(...n.keys),t.stops.push(...n.stops),t.stops.sort((e,t)=>e-t),t.width=W(O(t.stops)),o=o.filter(e=>e!==n)}o=o.filter(e=>!r(H(e))||(n.push(...e.keys),!1));const a=[];for(const t of e){if(null!==t.stop)continue;const e=F(t.x,t.y,z,z),l=o.find(t=>K(H(t),e));if(l||r(e)){n.push(t.key),l&&l.under++;continue}const s=a.find(t=>K(H(t),e));s?s.keys.push(t.key):a.push({keys:[t.key],stops:[],x:t.x,y:t.y,width:z,height:z,under:0})}return{groups:[...o,...a],hidden:n}}function _(e,t,n){let r=-1/0;for(const o of t){const t=Math.max(Math.abs(o.x-e.x),Math.abs(o.y-e.y));r=Math.max(r,0===t?1/0:n+Math.log2(29/t))}return r}function D(e){const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:r}),()=>t.disconnect()}var I=n;var J=(...e)=>e.filter(Boolean).join(" "),U=/^(?:\d+|[xytrblse](?:-\d+)?|solid|dashed|dotted|double|hidden|none)$/;function Q(e){return e.split(/\s+/).some(e=>{const t=e.search(/[[(]/),n=t<0?e:e.slice(0,t),r=e.slice(n.lastIndexOf(":")+1);return r.startsWith("border-")&&!U.test(r.slice(7))})}var Z="ring-2 ring-gray-900 ring-offset-2",G={portal:{frame:e=>J("relative min-h-72 overflow-hidden rounded-lg border border-line bg-gray-100",e&&"[&_canvas]:cursor-crosshair"),fill:"absolute inset-0",box:"h-full w-full",failed:"absolute inset-0 grid place-items-center p-6 text-center text-sm text-ink-faint",cardInline:"absolute bottom-3 left-3 right-3 z-10 max-h-[calc(100%-1.5rem)] max-w-md overflow-y-auto overscroll-contain",cardFloating:"w-[26rem] overflow-y-auto overscroll-contain",ring:"pointer-events-none rounded-full border-2 border-gray-900 bg-gray-900/15 shadow-[0_0_0_2px_var(--color-white,#fff)]",pinButton:(e,t)=>J("relative grid place-items-center rounded-full cursor-pointer",t&&(null!=e.stop?"h-7 w-7":"h-6 w-6")),pinMark:(e,t,n,r)=>{const o=t&&!r&&null==e.stop&&!e.dot;return J("grid place-items-center rounded-full border-2 font-semibold leading-none shadow-sm transition-transform motion-reduce:transition-none",!Q(e.tone)&&"border-white",e.tone,e.dot?"h-4 w-4 opacity-80":null!=e.stop?"h-7 w-7 text-xs ring-2 ring-gray-900":o?"h-8 w-8 text-xs [&_svg]:h-4 [&_svg]:w-4":"h-6 w-6 text-2xs [&_svg]:h-3.5 [&_svg]:w-3.5",t&&(o?"ring-2 ring-gray-900 ring-offset-1":Z),e.approximate&&"border-dashed opacity-80",e.faded&&!t&&"opacity-40",n&&"scale-125 opacity-100")},mark:e=>J("grid place-items-center border-2 px-0.5 text-xs font-semibold leading-none shadow-sm",e.stop?"h-7 min-w-7":"h-6 min-w-6",!Q(e.tone??"")&&"border-white",e.tone??"bg-gray-900 text-on-accent"),groupButton:"grid place-items-center rounded-full cursor-pointer",groupDisc:(e,t,n)=>J("grid place-items-center rounded-full border-2 border-gray-700 bg-surface font-semibold leading-none text-ink-strongest shadow-sm",e?"h-7 w-full px-1 text-xs ring-2 ring-gray-900":t?"h-5 w-5 text-3xs":"h-6 w-6 text-2xs",n&&Z),badge:e=>J("absolute -right-2 -top-2 grid h-4 min-w-4 place-items-center rounded-full px-0.5 text-3xs font-semibold leading-none shadow",e??"bg-surface text-ink-strongest"),iconHost:"contents"},site:{frame:e=>J("rosh-map-frame",e&&"rosh-map-frame--picking"),fill:"rosh-map-fill",box:"rosh-map-box",failed:"rosh-map-failed",cardInline:"rosh-map-card-inline",cardFloating:"rosh-map-card-floating",ring:"rosh-map-ring",pinButton:(e,t)=>J("rosh-map-target",t&&(null!=e.stop?"rosh-map-target--stop":"rosh-map-target--sized")),pinMark:(e,t,n,r)=>J("rosh-map-pin",e.dot?"rosh-map-pin--dot":null!=e.stop?"rosh-map-pin--stop":null,t&&!r&&null==e.stop&&!e.dot&&"rosh-map-pin--grown",t&&"rosh-map-pin--chosen",e.approximate&&"rosh-map-pin--approximate",e.faded&&!t&&"rosh-map-pin--faded",n&&"rosh-map-pin--pointed"),mark:e=>J("rosh-map-mark",e.stop&&"rosh-map-mark--stop"),groupButton:"rosh-map-target",groupDisc:(e,t,n)=>J("rosh-map-group",e?"rosh-map-group--stops":t?"rosh-map-group--dots":null,n&&"rosh-map-group--chosen"),badge:()=>"rosh-map-badge",iconHost:"rosh-map-icon",sheet:function(){return A??=import("efficient-shell/map-site.css").catch(e=>{throw A=null,e}),A}}},V="routes",X=["routes-road","routes-estimate"];function Y(e){const t=document.createElement("span");t.style.display="none",t.style.color=e,document.body.appendChild(t);const n=getComputedStyle(t).color||"#2563eb";return t.remove(),ee(n)}function ee(e){const t=document.createElement("canvas").getContext("2d");if(!t)return"#2563eb";t.fillStyle="#2563eb",t.fillStyle=e,t.fillRect(0,0,1,1);const[n,r,o]=t.getImageData(0,0,1,1).data;return`rgb(${n}, ${r}, ${o})`}var te={center:[30,20],zoom:1};var ne="http://www.w3.org/2000/svg",re=()=>window.matchMedia("(prefers-reduced-motion: reduce)").matches,oe=(...e)=>e.filter(Boolean).join(" ");function ae(e){const t=document.createElementNS(ne,"svg");t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.setAttribute("stroke","currentColor"),t.setAttribute("stroke-width","2"),t.setAttribute("aria-hidden","true");for(const n of e){const e=document.createElementNS(ne,"path");e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("d",n),t.appendChild(e)}return t}function le(e,t){for(const[n,r]of Object.entries(t??{}))e.dataset[n]=r}function se({pins:t,selectedKey:n,focus:r,onSelect:o,ariaLabel:u,className:g="",children:f,routes:b,fitTo:x,attribution:k,marks:w,groupCrowded:N=!1,noun:M,highlightKey:$=null,picking:E=!1,onPick:S,card:A,cardMinMapWidth:T=480,fullScreen:W,initialView:F=te,cooperativeGestures:K=!1,look:H="portal",theme:q}){const J=a().map,U=l(null),Q=l(null),Z=l(null),ne=l(null),se=l([]),ue=l(/* @__PURE__ */new Map),de=l(/* @__PURE__ */new Map),pe=l(/* @__PURE__ */new Map),me=l(null),he=l(/* @__PURE__ */new Map),ge=l(""),[fe,be]=s(!1),[ye,xe]=s(!1),ke=d(D,I,()=>!1),ve=q??(ke?"dark":"light"),we=G[H],Ne=l({onSelect:o,onPick:S,picking:E,pins:t,selectedKey:n,highlightKey:$,groupCrowded:N,strings:J,noun:M,looks:we});i(()=>{Ne.current={onSelect:o,onPick:S,picking:E,pins:t,selectedKey:n,highlightKey:$,groupCrowded:N,strings:J,noun:M,looks:we}}),i(()=>{we.sheet?.().catch(e=>console.warn("[map] could not load the look's stylesheet",e))},[we]);const Me=c(()=>{const e=Z.current,{pins:t,selectedKey:n}=Ne.current,r=n?t.find(e=>e.key===n):void 0;e&&r&&!e.getBounds().contains([r.lng,r.lat])&&e.easeTo({center:[r.lng,r.lat],duration:re()?0:400})},[]),Ce=l(!1),Le=c((e,t)=>{const n=Z.current,r=ne.current;if(!n||!r)return;const o=n.getZoom();if(o>=17.5){const t=e.indexOf(Ne.current.selectedKey??"");return void Ne.current.onSelect(e[(t+1)%e.length])}const a=e.map(e=>ue.current.get(e).pin),l=new r.LngLatBounds([a[0].lng,a[0].lat],[a[0].lng,a[0].lat]);for(const e of a)l.extend([e.lng,e.lat]);const s=a.map(e=>n.project([e.lng,e.lat])),i=Math.max(...s.map((e,t)=>_(e,s.filter((e,n)=>n!==t),o))),{clientWidth:c,clientHeight:u}=n.getContainer(),d=n.cameraForBounds(l,{padding:Math.min(64,c/4,u/4)})?.zoom??18,p=document.activeElement===t;Ce.current=!0,n.once("moveend",()=>{if(Ce.current=!1,!p)return;const e=a[0].key,t=ue.current.get(e)?.button,n=t&&"none"!==t.style.display?t:[...de.current.values()].find(t=>t.keys.includes(e))?.button;n?.focus({preventScroll:!0})}),n.easeTo({center:l.getCenter(),zoom:Math.min(18,Math.max(o+1,Math.min(d,i))),duration:re()?0:600})},[]),je=c(()=>{const e=Z.current,t=ne.current;if(!e||!t||!U.current||Ce.current&&e.isMoving())return;const{selectedKey:n,highlightKey:r,groupCrowded:o,strings:a,noun:l,looks:s}=Ne.current;for(const[e,t]of ue.current){const a=s.pinMark(t.pin,e===n,e===r,o);t.mark.className!==a&&(t.mark.className=a);const l=e===n?"1":"";t.button.style.zIndex!==l&&(t.button.style.zIndex=l)}let i=null;if(o){const r=e.getContainer().getBoundingClientRect(),o=[...U.current.querySelectorAll("a[href], button, input, select, textarea, summary, [role='button'], [tabindex]:not([tabindex='-1'])")].filter(e=>!e.closest("[data-pin], [data-pin-group], .maplibregl-canvas")).map(e=>{const t=e.getBoundingClientRect(),n=e.closest("[data-map-card]")?.getBoundingClientRect()??t;return{left:Math.max(t.left,n.left)-r.left,top:Math.max(t.top,n.top)-r.top,right:Math.min(t.right,n.right)-r.left,bottom:Math.min(t.bottom,n.bottom)-r.top}}).filter(e=>e.right>e.left&&e.bottom>e.top);i=P([...ue.current.values()].map(({pin:t})=>{const n=e.project([t.lng,t.lat]);return{key:t.key,x:n.x,y:n.y,stop:t.stop??null}}),o);const c=e=>(l??a.places)(e),u=e.getZoom()<17.5?a.spread:a.cycle,d=(e,t)=>{const n=t?"":"none";e.style.display!==n&&(e.style.display=n)},p=/* @__PURE__ */new Map;for(const r of i.groups){const o=r.under>0?a.closeBy(r.under,c(r.under)):null,l=1===r.keys.length?ue.current.get(r.keys[0]):null;if(l){d(l.button,!0),l.button.setAttribute("aria-label",o?`${l.name}; ${o}`:l.name),l.button.title=o?`${l.title}\n${o}`:l.title;continue}for(const e of r.keys)d(ue.current.get(e).button,!1);const i=r.keys.join(" ");let m=de.current.get(i);if(!m){const n=document.createElement("button");n.type="button",n.dataset.pinGroup="",n.className=s.groupButton,n.append(document.createElement("span"));const o=ue.current.get(r.keys[0]).pin,a={button:n,keys:r.keys,marker:new t.Marker({element:n,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)};n.addEventListener("click",e=>{e.stopPropagation(),Le(a.keys,n)}),m=a}m.keys=r.keys;const h=r.keys.map(e=>ue.current.get(e)),g=r.stops.length>0?O(r.stops):String(h.length),f=r.stops.length>0?a.stops(g):a.group(h.length,c(h.length));m.button.style.width=`${r.width}px`,m.button.style.height=`${r.height}px`,m.button.setAttribute("aria-label",`${f}: ${h.map(e=>e.pin.label).join("; ")}. ${u}${o?`; ${o}`:""}.`),m.button.title=[`${f}:`,...h.map(e=>e.title),...o?[o]:[],u].join("\n");const b=m.button.firstElementChild;b.textContent=g;const y=s.groupDisc(r.stops.length>0,h.every(e=>e.pin.dot),null!=n&&r.keys.includes(n));b.className!==y&&(b.className=y),p.set(i,m)}for(const e of i.hidden)d(ue.current.get(e).button,!1);for(const[e,t]of de.current)p.has(e)||t.marker.remove();de.current=p}if(me.current){const e=r&&i?i.groups.find(e=>e.keys.includes(r)&&e.keys.length>1):void 0,t=r?ue.current.get(r):void 0,n=r?pe.current.get(r):void 0,o=e?{at:ue.current.get(e.keys[0]).pin,width:e.width,height:e.height}:t?{at:t.pin,width:t.button.offsetWidth||(null!=t.pin.stop?R:z),height:t.button.offsetHeight||(null!=t.pin.stop?R:z)}:n?{at:n.mark,width:n.element.offsetWidth||R,height:n.element.offsetHeight||R}:null,a=me.current.getElement();a.style.display=o?"":"none",o&&(me.current.setLngLat([o.at.lng,o.at.lat]),a.style.width=`${o.width+22}px`,a.style.height=`${o.height+22}px`)}},[Le]);i(()=>{if(je(),!U.current)return;const e=new ResizeObserver(()=>je());e.observe(U.current);for(const t of U.current.children)t.contains(Q.current)||e.observe(t);return()=>e.disconnect()}),i(()=>{let e=!1,t=null,n=null,r=()=>{};return(async()=>{try{const o=await B();if(e||!Q.current)return;ne.current=o,t=new o.Map({container:Q.current,style:v[ve],center:F.center,zoom:F.zoom,attributionControl:k?{compact:!0,customAttribution:k}:{compact:!0},dragRotate:!1,pitchWithRotate:!1,touchPitch:!1,maxPitch:0,cooperativeGestures:"coarse"===K?window.matchMedia("(pointer: coarse)").matches:K}),t.touchZoomRotate.disableRotation(),t.keyboard.disableRotation(),t.addControl(new o.NavigationControl({showCompass:!1}),"top-right");const a=document.createElement("div");a.dataset.pinRing="",a.setAttribute("aria-hidden","true"),a.className=Ne.current.looks.ring,a.style.display="none",me.current=new o.Marker({element:a,anchor:"center"}).setLngLat(F.center).addTo(t),t.on("click",e=>{Ne.current.picking&&Ne.current.onPick?.({lat:e.lngLat.lat,lng:e.lngLat.lng})}),t.on("move",je),t.on("moveend",je),t.on("resize",je),t.on("error",e=>console.warn("[map]",e.error?.message)),r=y(Q.current.querySelector(".maplibregl-ctrl-attrib"));const l=t;n=new ResizeObserver(()=>{l.resize(),Me()}),n.observe(Q.current),Z.current=t,be(!0)}catch(t){console.error("[map] could not start",t),e||xe(!0)}})(),()=>{e=!0,n?.disconnect(),r(),se.current.forEach(e=>e.remove()),se.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),me.current?.remove(),me.current=null,t?.remove(),Z.current=null}},[]);const $e=l(ve);i(()=>{fe&&Z.current&&$e.current!==ve&&($e.current=ve,Z.current.setStyle(v[ve]))},[fe,ve]),i(()=>{const e=Z.current,n=ne.current;if(!fe||!e||!n)return;se.current.forEach(e=>e.remove()),se.current=[],de.current.forEach(e=>e.marker.remove()),de.current.clear(),ue.current.clear(),pe.current.clear();for(const e of he.current.keys())t.some(t=>t.key===e)||he.current.delete(e);const r=Ne.current.strings;for(const o of t){const t=document.createElement("button");t.type="button",t.dataset.pin=o.key,t.className=we.pinButton(o,N);const a=o.approximate?r.approximate(o.label):o.label,l=o.title??(o.approximate?r.approximateTitle(o.label):o.label);t.setAttribute("aria-label",a),t.title=l;const s=document.createElement("span");if(le(s,o.data),o.dot);else if(null!=o.iconNode){const e=he.current.get(o.key);e&&s.append(e)}else o.icon?.length?s.append(ae(o.icon)):s.textContent=null!=o.stop?String(o.stop):o.glyph;if(t.append(s),o.badge){const e=document.createElement("span");e.setAttribute("aria-hidden","true"),e.className=we.badge(o.badgeTone),e.textContent=o.badge,t.appendChild(e)}t.addEventListener("click",e=>{e.stopPropagation(),Ne.current.onSelect(o.key)}),se.current.push(new n.Marker({element:t,anchor:"center"}).setLngLat([o.lng,o.lat]).addTo(e)),ue.current.set(o.key,{pin:o,button:t,mark:s,name:a,title:l})}for(const t of w??[]){const r=document.createElement("div");r.dataset.mapMark=t.key,le(r,t.data),r.className=we.mark(t),r.textContent=t.text,r.title=t.title??t.label,r.setAttribute("role","img"),r.setAttribute("aria-label",t.label),se.current.push(new n.Marker({element:r,anchor:"center"}).setLngLat([t.lng,t.lat]).addTo(e)),pe.current.set(t.key,{mark:t,element:r})}je()},[fe,t,w,N,je,H]),i(()=>{fe&&je()},[fe,n,$,je]),i(()=>{if(!fe||!n)return;const e=requestAnimationFrame(Me);return()=>cancelAnimationFrame(e)},[fe,n,Me]),i(()=>{const e=Z.current,n=ne.current,r=x?[...t,...w??[]].filter(e=>x.includes(e.key)):t;if(!fe||!e||!n||0===r.length)return;const o=r.map(e=>`${e.key}@${e.lat},${e.lng}`).sort().join("|");if(ge.current===o)return;const a=""===ge.current;if(ge.current=o,1===r.length)return void e.jumpTo({center:[r[0].lng,r[0].lat],zoom:13});const l=new n.LngLatBounds([r[0].lng,r[0].lat],[r[0].lng,r[0].lat]);for(const e of r)l.extend([e.lng,e.lat]);e.fitBounds(l,{padding:48,maxZoom:14,animate:!a})},[fe,t,w,x]),i(()=>{const e=Z.current;if(!fe||!e)return;const t=(b??[]).filter(e=>e.coordinates.length>=2),n=[...new Set(t.flatMap(e=>e.attribution?[e.attribution]:[]))].join(" · "),r=()=>{const r=function(){const e=document.createElement("span");e.className="text-blue-600",e.style.display="none",document.body.appendChild(e);const t=getComputedStyle(e).color||"#2563eb";return e.remove(),ee(t)}(),o={type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{key:e.key,estimate:e.estimate,faded:!!e.faded,color:e.color?Y(e.color):r},geometry:{type:"LineString",coordinates:e.coordinates}}))},a=["case",["get","faded"],.25,.85],l=["get","color"],s=e.getSource(V);if(s&&(s.attribution||"")!==n){for(const t of X)e.getLayer(t)&&e.removeLayer(t);e.removeSource(V)}const i=e.getSource(V);i?i.setData(o):e.addSource(V,{type:"geojson",data:o,...n?{attribution:n}:{}}),e.getLayer("routes-road")||e.addLayer({id:"routes-road",type:"line",source:V,filter:["!",["get","estimate"]],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":4,"line-opacity":a}}),e.getLayer("routes-estimate")||e.addLayer({id:"routes-estimate",type:"line",source:V,filter:["get","estimate"],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":l,"line-width":3,"line-dasharray":[1.5,1.5],"line-opacity":a}})},o=()=>{try{r()}catch(e){console.debug("[map] routes wait for the style",e)}};return o(),e.on("style.load",o),e.once("idle",o),()=>{e.off("style.load",o),e.off("idle",o)}},[fe,b,ve]),i(()=>{const e=Z.current;if(!fe||!e||!r)return;const n=t.find(e=>e.key===r.key);if(!n)return;const o=e.getZoom(),a=N?_(e.project([n.lng,n.lat]),t.filter(e=>e.key!==n.key).map(t=>e.project([t.lng,t.lat])),o):-1/0,l={center:[n.lng,n.lat],zoom:Math.min(18,Math.max(o,13,a))};re()?e.jumpTo(l):e.flyTo({...l,duration:600})},[fe,r?.n]);const[Ee,Se]=s(!1);i(()=>{const e=U.current;if(!e)return;const t=()=>Se(e.clientWidth<T);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[T]);const Be=n?t.find(e=>e.key===n)??null:null,Ae=Be?.key??null,ze=Be?.lng??0,Re=Be?.lat??0,Te=fe&&!Ee&&null!=A&&!!Be,[Oe,We]=s(null);i(()=>{const e=Z.current,t=ne.current;if(!(Te&&e&&t&&Ae))return;const n=document.createElement("div");n.dataset.mapCard="",n.className=Ne.current.looks.cardFloating;const r=new t.Popup({anchor:"bottom",offset:C,className:"rosh-map-card",maxWidth:"none",closeButton:!1,closeOnClick:!1,closeOnMove:!1,focusAfterOpen:!1}).setLngLat([ze,Re]).setDOMContent(n).addTo(e),o=r.getElement(),a=o.querySelector(".maplibregl-popup-content");a&&Object.assign(a.style,{padding:"0",background:"transparent",borderRadius:"0",boxShadow:"none"});const l=o.querySelector(".maplibregl-popup-tip"),s=Ne.current.looks===G.site?"var(--rosh-map-pin, #111)":"var(--color-gray-600, #4b5563)";l&&Object.assign(l.style,{borderTopColor:s,borderBottomColor:s}),We(n);let i=!1,c=!1;const u=(t=!0)=>{if(c)return;if(e.isMoving())return void(i||(i=!0,e.once("moveend",()=>{i=!1,u()})));const{clientWidth:o,clientHeight:a}=e.getContainer(),l=function(e,t){const n=e.getBoundingClientRect().top,r=[...e.querySelectorAll(".maplibregl-ctrl-top-left > *, .maplibregl-ctrl-top-right > *"),...t?.querySelectorAll(":scope > [data-map-control]")??[]];let o=0;for(const e of r){const t=e.getBoundingClientRect();t.height>0&&(o=Math.max(o,t.bottom-n))}return o}(e.getContainer(),U.current)+8,s=`${L(a,l)}px`;n.style.maxHeight!==s&&(n.style.maxHeight=s);const d=r.getElement(),p=r.getLngLat(),{anchor:m,move:h}=j(e.project(p),{width:d.offsetWidth,height:d.offsetHeight},{width:o,height:a},l);r.options.anchor!==m&&(r.options.anchor=m,r.setLngLat(p)),!t||0===h.x&&0===h.y||e.panBy([-h.x,-h.y],{duration:re()?0:250}),je()},d=new ResizeObserver(()=>u());d.observe(n);const p=()=>u(),m=()=>{i||u(!1)};e.on("resize",p),e.on("moveend",m);let h=!1;const g=ue.current,f=e=>{h=n.contains(e.target)};return document.addEventListener("focusin",f),()=>{if(c=!0,d.disconnect(),e.off("resize",p),e.off("moveend",m),document.removeEventListener("focusin",f),r.remove(),We(null),h&&(!document.activeElement||document.activeElement===document.body)){const e=g.get(Ae)?.button;e&&"none"!==e.style.display&&e.focus({preventScroll:!0})}}},[Te,Ae,ze,Re,je]);const Fe=W?.active??!1,Ke=l(W?.onChange);i(()=>{Ke.current=W?.onChange}),i(()=>{if(!W)return;const e=document.documentElement;Fe&&!document.fullscreenElement&&e.requestFullscreen&&e.requestFullscreen().catch(()=>{}),!Fe&&document.fullscreenElement&&document.exitFullscreen().catch(()=>{})},[Fe]);const He=!!W;return i(()=>{if(!He)return;const e=()=>{document.fullscreenElement||Ke.current?.(!1)};return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[He]),/* @__PURE__ */m("div",{ref:U,className:oe(we.frame(E),g),children:[
|
|
3
|
+
/* @__PURE__ */h("div",{className:we.fill,children:/* @__PURE__ */h("div",{ref:Q,className:we.box,role:"region","aria-label":u})}),ye&&/* @__PURE__ */h("p",{className:we.failed,children:J.failed}),W&&/* @__PURE__ */h(e,{"data-map-control":"",variant:"secondary",size:"sm",className:"absolute left-3 top-3 z-10",onClick:()=>W.onChange(!W.active),leftIcon:/* @__PURE__ */h(ce,{leave:W.active}),children:W.active?J.leaveFullScreen:J.fullScreen}),f,null!=A&&!Te&&/* @__PURE__ */h("div",{"data-map-card":"",className:we.cardInline,children:A}),Te&&Oe?p(A,Oe):null,fe&&/* @__PURE__ */h(ie,{pins:t,hosts:he.current,hostClass:we.iconHost})]})}function ie({pins:e,hosts:t,hostClass:n}){/* @__PURE__ */
|
|
4
4
|
return h(g,{children:e.map(e=>{if(null==e.iconNode||e.dot)return null;let r=t.get(e.key);return r||(r=document.createElement("span"),r.className=n,t.set(e.key,r)),p(e.iconNode,r,e.key)})})}function ce({leave:e}){/* @__PURE__ */
|
|
5
|
-
return h(t,e?{name:"collapse","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2}:{name:"expand","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2})}function ue(){const[e,t]=s(null);return{highlightKey:e,pointAt:c(e=>{const n=()=>t(e),r=()=>t(t=>t===e?null:t);return{onMouseEnter:n,onMouseLeave:r,onFocus:n,onBlur:r}},[])}}var de=3e3,pe=e=>!!e?.pending&&3e3,me=e=>`${e.kind}:${e.id}`,he=e=>("located"===e.placement||"approximate"===e.placement)&&null!=e.lat&&null!=e.lng;function ge(e){switch(e){case"located":return null;case"approximate":return"Approximate: only the suburb or postcode matched";case"pending":return"Locating";case"not_found":return"Not on the map: address not found";case"failed":return"Not on the map: the map service could not be reached";case"no_address":return"Not on the map: no city or postcode"}}var fe={importer:{label:"Importer",tone:"bg-sky-600 text-white"},dealer:{label:"Dealer",tone:"bg-purple-600 text-white"},retail:{label:"Retail",tone:"bg-green-600 text-white"},supplier:{label:"Supplier",tone:"bg-sky-600 text-white"},delivery_location:{label:"Delivery location",tone:"bg-amber-600 text-white"},warehouse:{label:"Warehouse",tone:"bg-amber-600 text-white"}},be=["importer","dealer","retail","supplier","delivery_location","warehouse"];function ye(e){return"supplier"===e.kind?"supplier":"customer"===e.kind?e.category||"importer":e.kind}var xe=(e,t=fe)=>t[e]?.tone??"bg-gray-700 text-white",ke=(e,t=fe)=>t[e]?.label??e,ve=(e,t)=>xe(ye(e),t);function we(e,t,n=fe){return null!=t?String(t):(n[ye(e)]?.label??"").charAt(0).toUpperCase()}var Ne=["delivery_location","warehouse"];function Me(e,t=Ne){const n=/* @__PURE__ */new Map;let r=0;for(const o of e)t.includes(o.kind)&&n.set(me(o),++r);return n}function Ce(e){const t={onMap:0,approximate:0,pending:0,off:0};for(const n of e)he(n)?(t.onMap+=1,"approximate"===n.placement&&(t.approximate+=1)):"pending"===n.placement?t.pending+=1:t.off+=1;return t}function Le(e){const t=[`${e.onMap} on the map`];return e.approximate&&t.push(`${e.approximate} approximate`),e.pending&&t.push(`${e.pending} locating`),e.off&&t.push(`${e.off} not on the map`),t.join(" · ")}function je(e){const t=[...new Set(e.filter(he).map(ye))];return[...be.filter(e=>t.includes(e)),...t.filter(e=>!be.includes(e))]}function
|
|
5
|
+
return h(t,e?{name:"collapse","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2}:{name:"expand","aria-hidden":"true",className:"h-4 w-4",strokeWidth:2})}function ue(){const[e,t]=s(null);return{highlightKey:e,pointAt:c(e=>{const n=()=>t(e),r=()=>t(t=>t===e?null:t);return{onMouseEnter:n,onMouseLeave:r,onFocus:n,onBlur:r}},[])}}var de=3e3,pe=e=>!!e?.pending&&3e3,me=e=>`${e.kind}:${e.id}`,he=e=>("located"===e.placement||"approximate"===e.placement)&&null!=e.lat&&null!=e.lng;function ge(e){switch(e){case"located":return null;case"approximate":return"Approximate: only the suburb or postcode matched";case"pending":return"Locating";case"not_found":return"Not on the map: address not found";case"failed":return"Not on the map: the map service could not be reached";case"no_address":return"Not on the map: no city or postcode"}}var fe={importer:{label:"Importer",tone:"bg-sky-600 text-white"},dealer:{label:"Dealer",tone:"bg-purple-600 text-white"},retail:{label:"Retail",tone:"bg-green-600 text-white"},supplier:{label:"Supplier",tone:"bg-sky-600 text-white"},delivery_location:{label:"Delivery location",tone:"bg-amber-600 text-white"},warehouse:{label:"Warehouse",tone:"bg-amber-600 text-white"}},be=["importer","dealer","retail","supplier","delivery_location","warehouse"];function ye(e){return"supplier"===e.kind?"supplier":"customer"===e.kind?e.category||"importer":e.kind}var xe=(e,t=fe)=>t[e]?.tone??"bg-gray-700 text-white",ke=(e,t=fe)=>t[e]?.label??e,ve=(e,t)=>xe(ye(e),t);function we(e,t,n=fe){return null!=t?String(t):(n[ye(e)]?.label??"").charAt(0).toUpperCase()}var Ne=["delivery_location","warehouse"];function Me(e,t=Ne){const n=/* @__PURE__ */new Map;let r=0;for(const o of e)t.includes(o.kind)&&n.set(me(o),++r);return n}function Ce(e){const t={onMap:0,approximate:0,pending:0,off:0};for(const n of e)he(n)?(t.onMap+=1,"approximate"===n.placement&&(t.approximate+=1)):"pending"===n.placement?t.pending+=1:t.off+=1;return t}function Le(e){const t=[`${e.onMap} on the map`];return e.approximate&&t.push(`${e.approximate} approximate`),e.pending&&t.push(`${e.pending} locating`),e.off&&t.push(`${e.off} not on the map`),t.join(" · ")}function je(e){const t=[...new Set(e.filter(he).map(ye))];return[...be.filter(e=>t.includes(e)),...t.filter(e=>!be.includes(e))]}function $e(e,t){return e.filter(e=>!he(e)&&"pending"!==e.placement).map(e=>{const n=t?.get(me(e)),r=ge(e.placement)?.replace(/^Not on the map: /,"")??"";return{key:me(e),text:`${null!=n?`${n}. `:""}${e.label}: ${r}`}})}function Ee({categories:e,palette:t=fe,floating:n=!0}){return e.length<2?null:/* @__PURE__ */h("div",{className:(n?"absolute left-3 top-3 z-10 ":"")+"flex flex-wrap gap-x-3 gap-y-1 rounded-lg border border-line bg-surface px-3 py-2 text-xs text-gray-600 shadow-sm",children:e.map(e=>/* @__PURE__ */m("span",{className:"inline-flex items-center gap-2",children:[
|
|
6
6
|
/* @__PURE__ */h("span",{"aria-hidden":!0,className:`h-2.5 w-2.5 rounded-full ${xe(e,t)}`}),ke(e,t)]},e))})}function Se({point:n,number:r,onOpen:o,onClose:l,palette:s=fe}){const i=ge(n.placement),c=ye(n),u=a().map;/* @__PURE__ */
|
|
7
7
|
return m("section",{"aria-label":u.chosen(n.label),className:"absolute bottom-3 left-3 right-3 z-10 max-w-md space-y-2 rounded-lg border border-line bg-surface p-3 shadow-(--elevation-panel)",children:[
|
|
8
8
|
/* @__PURE__ */m("div",{className:"flex items-start justify-between gap-2",children:[
|
|
@@ -10,12 +10,12 @@ return m("section",{"aria-label":u.chosen(n.label),className:"absolute bottom-3
|
|
|
10
10
|
/* @__PURE__ */m("h3",{className:"text-sm font-semibold text-gray-900 [overflow-wrap:anywhere]",children:[null!=r&&/* @__PURE__ */m("span",{className:"mr-1 text-gray-400",children:[r,"."]}),n.label,n.code&&/* @__PURE__ */h("span",{className:"ml-2 text-xs font-normal text-ink-faintest",children:n.code})]}),
|
|
11
11
|
/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:s[c]?ke(c,s):n.category})]}),
|
|
12
12
|
/* @__PURE__ */h("button",{type:"button",onClick:l,"aria-label":u.closeCard,className:"rounded p-0.5 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */h(t,{name:"close","aria-hidden":!0,className:"h-4 w-4",strokeWidth:2})})]}),
|
|
13
|
-
/* @__PURE__ */h("p",{className:"text-sm text-gray-700 [overflow-wrap:anywhere]",children:n.address||"—"}),i&&/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:i}),n.matched&&"approximate"===n.placement&&/* @__PURE__ */m("p",{className:"text-xs text-gray-400 [overflow-wrap:anywhere]",children:["Placed at: ",n.matched]}),o&&/* @__PURE__ */h("div",{className:"flex justify-end",children:/* @__PURE__ */h(e,{variant:"secondary",size:"sm",onClick:o,children:u.openRecord})})]})}function Be(e,t,{staleTime:n}={}){return f({queryKey:e,queryFn:t,staleTime:n,refetchInterval:e=>pe(e.state.data)})}function Ae({queryKey:e,queryFn:t,refreshSignal:
|
|
13
|
+
/* @__PURE__ */h("p",{className:"text-sm text-gray-700 [overflow-wrap:anywhere]",children:n.address||"—"}),i&&/* @__PURE__ */h("p",{className:"text-xs text-gray-500",children:i}),n.matched&&"approximate"===n.placement&&/* @__PURE__ */m("p",{className:"text-xs text-gray-400 [overflow-wrap:anywhere]",children:["Placed at: ",n.matched]}),o&&/* @__PURE__ */h("div",{className:"flex justify-end",children:/* @__PURE__ */h(e,{variant:"secondary",size:"sm",onClick:o,children:u.openRecord})})]})}function Be(e,t,{staleTime:n}={}){return f({queryKey:e,queryFn:t,staleTime:n,refetchInterval:e=>pe(e.state.data)})}function Ae({queryKey:e,queryFn:t,refreshSignal:n,onOpen:r,ariaLabel:a,title:c="Locations",palette:d=fe,numbers:p,className:g="",mapClassName:f="min-h-[240px] flex-1"}){const{data:b,isError:y,refetch:x}=Be(e,t,{staleTime:0}),k=l(!1);i(()=>{k.current?x():k.current=!0},[n]);const[v,w]=s(null),N=u(()=>b?.points??[],[b]),M=u(()=>p??Me(N),[p,N]),C=u(()=>N.filter(he).map(e=>({key:me(e),label:e.label,lat:e.lat,lng:e.lng,glyph:we(e,M.get(me(e))??null,d),tone:ve(e,d),approximate:"approximate"===e.placement})),[N,M,d]),L=u(()=>$e(N,M),[N,M]),j=u(()=>je(N),[N]),$=b?.pending??0,E=N.find(e=>me(e)===v)??null,S=E&&r?r(E):null;/* @__PURE__ */
|
|
14
14
|
return m("section",{"aria-label":c,className:`flex min-w-0 flex-col ${g}`,children:[
|
|
15
15
|
/* @__PURE__ */m("div",{className:"flex min-h-[30px] items-center justify-between mb-2",children:[
|
|
16
16
|
/* @__PURE__ */h("h3",{className:"text-sm font-semibold text-gray-900",children:c}),b&&/* @__PURE__ */h("span",{className:"text-xs text-gray-500",children:Le(Ce(N))})]}),
|
|
17
17
|
/* @__PURE__ */m(se,{pins:C,selectedKey:v,focus:null,onSelect:w,ariaLabel:a,className:f,children:[
|
|
18
18
|
/* @__PURE__ */m("div",{className:"absolute left-3 top-3 z-10 flex max-w-[70%] flex-col items-start gap-2",children:[
|
|
19
|
-
/* @__PURE__ */h(
|
|
20
|
-
/* @__PURE__ */h("button",{type:"button",onClick:()=>{x()},className:"font-medium text-blue-600 hover:text-blue-800 hover:underline",children:"Try again"})]}),!y&&(
|
|
21
|
-
/* @__PURE__ */h(
|
|
19
|
+
/* @__PURE__ */h(Ee,{categories:j,palette:d,floating:!1}),y&&/* @__PURE__ */m("div",{className:"flex items-center gap-2 rounded-lg border border-line bg-surface px-3 min-h-8 py-1 text-xs text-gray-600 shadow-sm",children:["Couldn’t load the locations.",
|
|
20
|
+
/* @__PURE__ */h("button",{type:"button",onClick:()=>{x()},className:"font-medium text-blue-600 hover:text-blue-800 hover:underline",children:"Try again"})]}),!y&&($>0||L.length>0)&&/* @__PURE__ */m("div",{className:"max-w-full space-y-0.5 rounded-lg border border-line bg-surface px-3 py-2 text-xs shadow-sm","aria-live":"polite",children:[$>0&&/* @__PURE__ */m("p",{className:"flex items-center gap-2 text-ink-faint",children:[
|
|
21
|
+
/* @__PURE__ */h(o,{}),"Locating ",$," address",1===$?"":"es"]}),L.slice(0,3).map(e=>/* @__PURE__ */h("p",{className:"truncate text-amber-700",title:e.text,children:e.text},e.key)),L.length>3&&/* @__PURE__ */m("p",{className:"text-gray-500",children:["+",L.length-3," more not on the map"]})]})]}),E&&/* @__PURE__ */h(Se,{point:E,number:M.get(me(E))??null,onOpen:S,onClose:()=>w(null),palette:d})]})]})}export{M as CARD_MIN_MAP_WIDTH,b as COMPACT_SHOW,se as EntityMap,Ae as LocationsMap,$ as MAPLIBRE_WORKER_FILE,T as MAP_APART_PX,fe as MAP_CATEGORIES,k as MAP_CSP_SOURCES,G as MAP_LOOKS,R as MAP_STOP_PX,v as MAP_STYLE_URLS,z as MAP_TARGET_PX,x as MAP_TILE_ORIGIN,Ee as MapLegend,de as PENDING_POLL_MS,Ne as SECONDARY_KINDS,Se as SelectedCard,L as cardMaxHeight,ke as categoryLabel,xe as categoryTone,y as foldAttributionOnce,he as isOnMap,P as layoutPins,je as legendCategories,B as loadMapLibre,Me as locationNumbers,E as mapLibreWorkerUrl,pe as mapPointsRefetchInterval,$e as offMapNotes,ye as pinCategory,we as pinGlyph,ve as pinTone,j as placeCard,ge as placementNote,me as pointKey,O as stopsLabel,Ce as summarize,Le as summaryText,ue as useMapHighlight,Be as useMapPoints,_ as zoomApart};
|
package/dist/markdown/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{Icon as e}from"../chunk-
|
|
2
|
+
import{Icon as e}from"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import{useBrowserLayoutEffect as t}from"../chunk-D65T4H6J.js";import{memo as r,useRef as o,useState as a,useMemo as s}from"react";import l from"react-markdown";import n from"remark-breaks";import m from"remark-gfm";import{jsx as d,jsxs as c}from"react/jsx-runtime";function i(){const e=this.data();(e.micromarkExtensions??=[]).push({disable:{null:["codeIndented","htmlFlow","htmlText","setextUnderline"]}})}var b={note:[m,n,i],article:[m,i]},x=({node:e,...t})=>/* @__PURE__ */d("a",{...t,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline break-all"}),g=({node:e,...t})=>/* @__PURE__ */d("code",{className:"rounded bg-gray-200 px-1 py-0.5 font-mono text-[0.85em] text-gray-800",...t}),h=e=>({node:t,...r})=>/* @__PURE__ */d("pre",{className:`${e} overflow-x-auto rounded-lg border border-gray-200 bg-gray-50 font-mono text-xs [&>code]:bg-transparent [&>code]:p-0 [&>code]:[font-size:inherit]`,...r}),p={th:({node:e,...t})=>/* @__PURE__ */d("th",{className:"border border-gray-200 bg-gray-50 px-2 py-1 text-left font-semibold text-gray-700",...t}),td:({node:e,...t})=>/* @__PURE__ */d("td",{className:"border border-gray-200 px-2 py-1 align-top",...t})},f={a:x,h1:({node:e,...t})=>/* @__PURE__ */d("h1",{className:"text-base font-semibold text-gray-900",...t}),h2:({node:e,...t})=>/* @__PURE__ */d("h2",{className:"text-sm font-semibold text-gray-900",...t}),h3:({node:e,...t})=>/* @__PURE__ */d("h3",{className:"text-sm font-semibold text-gray-700",...t}),h4:({node:e,...t})=>/* @__PURE__ */d("h4",{className:"text-sm font-semibold text-gray-700",...t}),h5:({node:e,...t})=>/* @__PURE__ */d("h5",{className:"text-sm font-semibold text-gray-700",...t}),h6:({node:e,...t})=>/* @__PURE__ */d("h6",{className:"text-sm font-semibold text-gray-700",...t}),ul:({node:e,...t})=>/* @__PURE__ */d("ul",{className:"list-disc pl-5",...t}),ol:({node:e,...t})=>/* @__PURE__ */d("ol",{className:"list-decimal pl-5",...t}),code:g,pre:h("p-2"),blockquote:({node:e,...t})=>/* @__PURE__ */d("blockquote",{className:"border-l-2 border-line-strong pl-3 text-gray-600",...t}),hr:({node:e,...t})=>/* @__PURE__ */d("hr",{className:"border-gray-200",...t}),table:({node:e,...t})=>/* @__PURE__ */d("div",{className:"overflow-x-auto",children:/* @__PURE__ */d("table",{className:"text-xs border-collapse",...t})}),...p,img:({node:e,alt:t,...r})=>/* @__PURE__ */d("img",{...r,alt:t??"",loading:"lazy",className:"max-w-full max-h-64 rounded-lg border border-gray-200"})};function u(e){return e?{...f,img:({node:t,src:r,alt:o,...a})=>{const s="string"==typeof r?r:void 0;/* @__PURE__ */
|
|
3
3
|
return d("img",{...a,src:s?e(s):s,alt:o??"",loading:"lazy",className:"max-w-full max-h-64 rounded-lg border border-gray-200"})}}:f}function y({src:t,alt:r}){const[o,s]=a(!1),l=(r??"").replace(/^screenshot:\s*/i,"");return!t||o?/* @__PURE__ */c("span",{className:"my-3 flex items-start gap-2 rounded-lg border border-dashed border-line-strong bg-surface-sunken px-3 py-3 text-ink-faint",children:[
|
|
4
4
|
/* @__PURE__ */d(e,{name:"camera",look:"mini",className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),
|
|
5
5
|
/* @__PURE__ */d("span",{className:"text-xs",children:l||"Screenshot"})]}):/* @__PURE__ */d("img",{src:t,alt:r??"",loading:"lazy",onError:()=>s(!0),className:"my-3 block max-w-full rounded-lg border border-gray-200"})}function N(e){return{a:x,h1:({node:e,...t})=>/* @__PURE__ */d("h1",{className:"mt-6 mb-3 text-xl font-semibold text-gray-900 first:mt-0",...t}),h2:({node:e,...t})=>/* @__PURE__ */d("h2",{className:"mt-6 mb-3 border-b border-line pb-2 text-lg font-semibold text-ink-strongest first:mt-0",...t}),h3:({node:e,...t})=>/* @__PURE__ */d("h3",{className:"mt-5 mb-2 text-base font-semibold text-gray-900 first:mt-0",...t}),h4:({node:e,...t})=>/* @__PURE__ */d("h4",{className:"mt-4 mb-2 text-sm font-semibold text-ink-strongest first:mt-0",...t}),h5:({node:e,...t})=>/* @__PURE__ */d("h5",{className:"mt-4 mb-2 text-sm font-semibold text-ink first:mt-0",...t}),h6:({node:e,...t})=>/* @__PURE__ */d("h6",{className:"mt-4 mb-2 text-sm font-semibold text-ink first:mt-0",...t}),p:({node:e,...t})=>/* @__PURE__ */d("p",{className:"my-3 leading-relaxed",...t}),ul:({node:e,...t})=>/* @__PURE__ */d("ul",{className:"my-3 list-disc space-y-1 pl-5",...t}),ol:({node:e,...t})=>/* @__PURE__ */d("ol",{className:"my-3 list-decimal space-y-1 pl-5",...t}),li:({node:e,...t})=>/* @__PURE__ */d("li",{className:"leading-relaxed [&>p]:my-1",...t}),code:g,pre:h("my-3 p-3"),blockquote:({node:e,...t})=>/* @__PURE__ */d("blockquote",{className:"my-3 rounded-r-lg border-l-4 border-blue-400/60 bg-blue-50 px-3 py-2 text-gray-700 [&>p]:my-1",...t}),hr:({node:e,...t})=>/* @__PURE__ */d("hr",{className:"my-4 border-gray-200",...t}),table:({node:e,...t})=>/* @__PURE__ */d("div",{className:"my-3 overflow-x-auto",children:/* @__PURE__ */d("table",{className:"border-collapse text-sm",...t})}),...p,img:({node:t,src:r,alt:o})=>{const a="string"==typeof r?r:void 0;/* @__PURE__ */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Every meaning the one set draws. `<Icon name>` takes exactly these.
|
|
7
7
|
*/
|
|
8
|
-
declare const ICON_NAMES: readonly ["academic-cap", "accent", "account", "account-circle", "add", "add-circle", "add-person", "adjust", "align-center", "align-justify", "align-left", "align-right", "align-separate", "alignment", "anchor", "animation", "apps", "archive-box", "arrow", "arrow-down", "arrow-left", "arrow-left-end-on-rectangle", "arrow-long-right", "arrow-right", "arrow-trending-down", "arrow-trending-up", "arrow-up", "arrow-up-right", "at-symbol", "attach", "background", "bag", "bank", "bars-3-bottom-left", "battery", "beaker", "bell", "bell-alert", "bell-plus", "billing", "black-and-white", "block-badge", "block-banner", "block-box", "block-button", "block-column", "block-coupon", "block-divider", "block-footer", "block-heading", "block-image", "block-included-list", "block-layered-images", "block-product", "block-product-title", "block-section", "block-social", "block-spacer", "block-text", "block-video", "blog-post", "bold", "bolt", "book-open", "bookmark", "bookmark-square", "border-all", "border-bottom", "border-left", "border-right", "border-top", "braces", "brand-1password", "brand-adyen", "brand-afterpay", "brand-aircall", "brand-alipay", "brand-amd", "brand-americanexpress", "brand-anthropic", "brand-apple", "brand-applepay", "brand-aws", "brand-bigcommerce", "brand-brevo", "brand-calendly", "brand-campaignmonitor", "brand-cloudflare", "brand-dell", "brand-dhl", "brand-dinersclub", "brand-dropbox", "brand-ebay", "brand-etsy", "brand-facebook", "brand-fedex", "brand-github", "brand-gmail", "brand-googleads", "brand-googleanalytics", "brand-googlecalendar", "brand-googledrive", "brand-googlepay", "brand-googlesheets", "brand-hubspot", "brand-instagram", "brand-intel", "brand-intercom", "brand-jcb", "brand-klarna", "brand-line", "brand-linkedin", "brand-mailchimp", "brand-mailgun", "brand-make", "brand-mastercard", "brand-messenger", "brand-meta", "brand-myob", "brand-notion", "brand-nvidia", "brand-paypal", "brand-pinterest", "brand-quickbooks", "brand-sage", "brand-samsung", "brand-shopify", "brand-square", "brand-squarespace", "brand-stripe", "brand-telegram", "brand-tiktok", "brand-trello", "brand-ups", "brand-visa", "brand-vonage", "brand-wechat", "brand-whatsapp", "brand-wise", "brand-wix", "brand-woocommerce", "brand-x", "brand-xero", "brand-youtube", "brand-zapier", "brand-zendesk", "brand-zoom", "breadcrumb", "briefcase", "bug", "bug-ant", "building-library", "building-office-2", "button", "button-arrow", "button-icon", "calculator", "calendar", "calendar-check", "camera", "caption", "car", "card-payment", "caret", "cart", "case", "case-capitalized", "case-lower", "case-normal", "case-upper", "category", "chart", "chart-bar", "chart-bar-square", "chart-line", "chat", "chat-bubble-left-right", "chat-bubble-oval-left-ellipsis", "check", "check-circle", "checkbox", "chevron", "chevron-double", "chevron-double-left", "chevron-double-right", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "chevron-up-down", "circle-stack", "clear-marks", "clipboard", "clipboard-check", "clipboard-document-list", "clipboard-list", "clock", "close", "close-circle", "cloud", "cloud-alert", "cloud-arrow-up", "cloud-check", "cloud-download", "cloud-pause", "cloud-slash", "code", "code-bracket", "collapse", "collapse-all", "column-gap", "column-widths", "columns", "company", "compose", "contrast", "cookie", "copied", "copy", "copy-style", "copy-to-page", "corner", "count-up", "crop", "crop-bottom", "crop-left", "crop-left-right", "crop-right", "crop-top", "crop-y", "cube-transparent", "cursor", "cursor-arrow-rays", "cursor-click", "dashboard", "date", "desktop", "detach", "diagram", "direction", "direction-down", "direction-left", "direction-right", "direction-up", "document", "document-check", "document-magnifying-glass", "dollar", "dot", "download", "drag", "drop", "duplicate", "duration", "edit", "email", "emphasis", "eraser", "error", "expand", "external", "eye", "eye-off", "face-smile", "filter", "finish", "fire", "flag", "flag-au", "flag-ca", "flag-eu", "flag-gb", "flag-nz", "flag-us", "folder", "folder-open", "folder-plus", "forward", "full-width", "gap", "gem", "gift", "globe", "grid", "ground", "hand", "hand-thumb-up", "hash", "headquarters", "heart", "height", "help", "help-off", "hexagon", "home", "hover", "hover-lift", "hover-next-image", "hover-none", "hover-rotate", "hover-zoom", "icon-after-text", "icon-at-end", "icon-before-text", "identification", "image", "image-off", "images", "inbox", "info", "italic", "key", "layers", "layout", "letter-spacing", "lightbulb", "line-between", "line-dashed", "line-dotted", "line-solid", "line-spacing", "line-style", "link", "link-slash", "list", "list-format", "list-none", "location", "lock", "logo", "logout", "loop", "map", "media", "media-layout-big-two", "media-layout-inset", "media-layout-side-by-side", "media-layout-stacked", "megaphone", "menu", "meta", "microphone", "money", "moon", "more", "more-vertical", "move-down", "move-up", "newspaper", "no-symbol", "note", "nudge", "nudge-x", "nudge-y", "numbered-list", "opacity", "own-text", "package", "package-open", "padding-all", "padding-bottom", "padding-left", "padding-left-right", "padding-right", "padding-top", "padding-x", "padding-y", "page", "paint-brush", "palette", "panel-left", "panel-right", "paragraph-spacing", "parcel", "paste", "paste-style", "pause", "pen", "people", "percent", "phone", "phone-hidden", "placement", "play", "plus-minus", "power", "presentation-chart-bar", "print", "product", "product-field", "product-size", "progress", "quote", "radio-dot", "radius", "receipt", "receipt-percent", "receipt-refund", "rectangle-group", "redo", "refresh", "remove", "remove-circle", "rename", "reply", "reply-all", "revert", "robot", "rotate", "scale", "scroll-point", "scroll-text", "search", "select-all", "send", "server", "settings", "shadow", "shape-ellipse", "shape-rect", "share", "shared", "shield-check", "shield-exclamation", "sides-each", "signal", "signal-slash", "sitemap", "slide-arrows-bare", "slide-arrows-round", "slide-arrows-square", "slide-picker-bar", "slide-picker-cards", "slide-picker-dots", "slide-picker-numbers", "slide-picker-squares", "sort", "sparkles", "speaker", "speaker-wave", "spec-table", "spinner", "split", "square", "star", "state", "status-circle", "status-dot", "sticky", "stop-circle", "store", "strike", "styles", "subscript", "success-burst", "sun", "superscript", "swap", "swatch", "table", "tablet", "tabs", "tag", "target", "team", "telephone", "template", "text-color", "text-lines", "text-size", "text-small", "text-value", "texture", "theme", "ticket", "title", "trash", "trigger", "truck", "tv", "type", "tyre", "underline", "undo", "upload", "v-align", "verified", "video-off", "view-columns", "wallet", "warning", "weight", "wheel", "widgets", "width", "window", "windows", "words-from", "wrap", "wrench", "wrench-screwdriver", "zoom-in"];
|
|
8
|
+
declare const ICON_NAMES: readonly ["academic-cap", "accent", "account", "account-circle", "add", "add-circle", "add-person", "adjust", "align-center", "align-justify", "align-left", "align-right", "align-separate", "alignment", "anchor", "animation", "apps", "archive-box", "arrow", "arrow-down", "arrow-left", "arrow-left-end-on-rectangle", "arrow-long-right", "arrow-right", "arrow-trending-down", "arrow-trending-up", "arrow-up", "arrow-up-right", "at-symbol", "attach", "background", "bag", "bank", "bars-3-bottom-left", "battery", "beaker", "bell", "bell-alert", "bell-plus", "billing", "black-and-white", "block-badge", "block-banner", "block-box", "block-button", "block-column", "block-coupon", "block-divider", "block-footer", "block-heading", "block-image", "block-included-list", "block-layered-images", "block-product", "block-product-title", "block-section", "block-social", "block-spacer", "block-text", "block-video", "blog-post", "bold", "bolt", "book-open", "bookmark", "bookmark-square", "border-all", "border-bottom", "border-left", "border-right", "border-top", "braces", "brand-1password", "brand-adyen", "brand-afterpay", "brand-aircall", "brand-alipay", "brand-amd", "brand-americanexpress", "brand-anthropic", "brand-apple", "brand-applepay", "brand-aws", "brand-bigcommerce", "brand-brevo", "brand-calendly", "brand-campaignmonitor", "brand-cloudflare", "brand-dell", "brand-dhl", "brand-dinersclub", "brand-dropbox", "brand-ebay", "brand-etsy", "brand-facebook", "brand-fedex", "brand-github", "brand-gmail", "brand-googleads", "brand-googleanalytics", "brand-googlecalendar", "brand-googledrive", "brand-googlepay", "brand-googlesheets", "brand-hubspot", "brand-instagram", "brand-intel", "brand-intercom", "brand-jcb", "brand-klarna", "brand-line", "brand-linkedin", "brand-mailchimp", "brand-mailgun", "brand-make", "brand-mastercard", "brand-messenger", "brand-meta", "brand-myob", "brand-notion", "brand-nvidia", "brand-paypal", "brand-pinterest", "brand-quickbooks", "brand-sage", "brand-samsung", "brand-shopify", "brand-square", "brand-squarespace", "brand-stripe", "brand-telegram", "brand-tiktok", "brand-trello", "brand-ups", "brand-visa", "brand-vonage", "brand-wechat", "brand-whatsapp", "brand-wise", "brand-wix", "brand-woocommerce", "brand-x", "brand-xero", "brand-youtube", "brand-zapier", "brand-zendesk", "brand-zoom", "breadcrumb", "briefcase", "bug", "bug-ant", "building-library", "building-office-2", "button", "button-arrow", "button-icon", "calculator", "calendar", "calendar-check", "camera", "caption", "car", "card-payment", "caret", "cart", "case", "case-capitalized", "case-lower", "case-normal", "case-upper", "category", "chart", "chart-bar", "chart-bar-square", "chart-line", "chat", "chat-bubble-left-right", "chat-bubble-oval-left-ellipsis", "check", "check-circle", "checkbox", "chevron", "chevron-double", "chevron-double-left", "chevron-double-right", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "chevron-up-down", "circle-stack", "clear-marks", "clipboard", "clipboard-check", "clipboard-document-list", "clipboard-list", "clock", "close", "close-circle", "cloud", "cloud-alert", "cloud-arrow-up", "cloud-check", "cloud-download", "cloud-pause", "cloud-slash", "code", "code-bracket", "collapse", "collapse-all", "column-gap", "column-widths", "columns", "company", "compose", "contrast", "cookie", "copied", "copy", "copy-style", "copy-to-page", "corner", "count-up", "crop", "crop-bottom", "crop-left", "crop-left-right", "crop-right", "crop-top", "crop-y", "cube-transparent", "cursor", "cursor-arrow-rays", "cursor-click", "dashboard", "date", "desktop", "detach", "diagram", "direction", "direction-down", "direction-left", "direction-right", "direction-up", "document", "document-check", "document-magnifying-glass", "dollar", "dot", "download", "drag", "drop", "duplicate", "duration", "edit", "email", "emphasis", "enter", "eraser", "error", "expand", "external", "eye", "eye-off", "face-smile", "filter", "finish", "fire", "flag", "flag-au", "flag-ca", "flag-eu", "flag-gb", "flag-nz", "flag-us", "folder", "folder-open", "folder-plus", "forward", "full-width", "gap", "gem", "gift", "globe", "grid", "ground", "hand", "hand-thumb-up", "hash", "headquarters", "heart", "height", "help", "help-off", "hexagon", "home", "hover", "hover-lift", "hover-next-image", "hover-none", "hover-rotate", "hover-zoom", "icon-after-text", "icon-at-end", "icon-before-text", "identification", "image", "image-off", "images", "inbox", "info", "italic", "key", "layers", "layout", "letter-spacing", "lightbulb", "line-between", "line-dashed", "line-dotted", "line-solid", "line-spacing", "line-style", "link", "link-slash", "list", "list-format", "list-none", "location", "lock", "logo", "logout", "loop", "map", "media", "media-layout-big-two", "media-layout-inset", "media-layout-side-by-side", "media-layout-stacked", "megaphone", "menu", "meta", "microphone", "money", "moon", "more", "more-vertical", "move-down", "move-up", "newspaper", "no-symbol", "note", "nudge", "nudge-x", "nudge-y", "numbered-list", "opacity", "own-text", "package", "package-open", "padding-all", "padding-bottom", "padding-left", "padding-left-right", "padding-right", "padding-top", "padding-x", "padding-y", "page", "paint-brush", "palette", "panel-left", "panel-right", "paragraph-spacing", "parcel", "paste", "paste-style", "pause", "pen", "people", "percent", "phone", "phone-hidden", "placement", "play", "plus-minus", "power", "presentation-chart-bar", "print", "product", "product-field", "product-size", "progress", "quote", "radio-dot", "radius", "receipt", "receipt-percent", "receipt-refund", "rectangle-group", "redo", "refresh", "remove", "remove-circle", "rename", "reply", "reply-all", "revert", "robot", "rotate", "scale", "scroll-point", "scroll-text", "search", "select-all", "send", "server", "settings", "shadow", "shape-ellipse", "shape-rect", "share", "shared", "shield-check", "shield-exclamation", "sides-each", "signal", "signal-slash", "sitemap", "slide-arrows-bare", "slide-arrows-round", "slide-arrows-square", "slide-picker-bar", "slide-picker-cards", "slide-picker-dots", "slide-picker-numbers", "slide-picker-squares", "sort", "sparkles", "speaker", "speaker-wave", "spec-table", "spinner", "split", "square", "star", "state", "status-circle", "status-dot", "sticky", "stop-circle", "store", "strike", "styles", "subscript", "success-burst", "sun", "superscript", "swap", "swatch", "table", "tablet", "tabs", "tag", "target", "team", "telephone", "template", "text-color", "text-lines", "text-size", "text-small", "text-value", "texture", "theme", "ticket", "title", "trash", "trigger", "truck", "tv", "type", "tyre", "underline", "undo", "upload", "v-align", "verified", "video-off", "view-columns", "wallet", "warning", "weight", "wheel", "widgets", "width", "window", "windows", "words-from", "wrap", "wrench", "wrench-screwdriver", "zoom-in"];
|
|
9
9
|
type IconName = (typeof ICON_NAMES)[number];
|
|
10
10
|
/** Whether `value` is a meaning the set draws. */
|
|
11
11
|
declare const isIconName: (value: unknown) => value is IconName;
|
package/dist/page-tabs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{TabStrip as e}from"../chunk-
|
|
3
|
-
return b(j.Provider,{value:ce,children:e})}var
|
|
4
|
-
return b("div",{ref:y,role:s?"tabpanel":void 0,id:s,"aria-labelledby":l,hidden:!t,style:t?void 0:{display:"none"},className:c,"data-page-tab":e,children:/* @__PURE__ */b(
|
|
5
|
-
return b("div",{className:t,children:e(r)},
|
|
6
|
-
return b(e,{tabs:l.map(e=>({key:e.key,title:e.title,pinned:e.pinned,dirty:a.dirty.includes(e.key),copy:c.copies[e.key],icon:p(
|
|
2
|
+
import{TabStrip as e}from"../chunk-ZL5OSF26.js";import{useShellLanguage as t}from"../chunk-UPQW4GCT.js";import"../chunk-F2R3UFNQ.js";import{confirm as n}from"../chunk-5JU53T3U.js";import"../chunk-LWWMRL2Y.js";import"../chunk-4VTJEKHX.js";import"../chunk-3DVNXNTF.js";import"../chunk-ID6WFAXW.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";import"../chunk-CDAJKLGL.js";import"../chunk-FRVNDEV2.js";import"../chunk-5QFPTDQF.js";import"../chunk-URHGHXDN.js";import"../chunk-UQYNPYF4.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q3IR5SKD.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import{useBrowserLayoutEffect as r}from"../chunk-D65T4H6J.js";import{useShellStrings as i}from"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";import*as c from"react";import{createContext as s,memo as l,useRef as a,useEffect as o,useMemo as u,useId as y,useCallback as d,useReducer as p,useState as f,useContext as k}from"react";import{useLocation as m,useNavigate as h}from"react-router-dom";import{jsx as b,Fragment as v,jsxs as g}from"react/jsx-runtime";var j=s(null),F=s(null),K=12;var N=(e,t)=>e.filter(e=>e!==t);function T(e,t){return[...t.map(t=>e.find(e=>e.key===t)).filter(e=>Boolean(e)),...e.filter(e=>!t.includes(e.key))]}function A(e,t,n=12){const r=e.clock+1;let i;i=e.tabs.find(e=>e.key===t.key)?e.tabs.map(e=>e.key===t.key?{...e,path:t.path,title:"page"===e.titleFrom?e.title:t.title||e.title,lastActive:r}:e):[...e.tabs,{key:t.key,path:t.path,title:t.title,titleFrom:"route",pinned:!1,lastActive:r}];let c={...e,tabs:i,activeKey:t.key,mounted:(s=e.mounted,l=t.key,s.includes(l)?s:[...s,l]),clock:r};var s,l;return c.closing&&c.closing!==t.key?c=M(c,c.closing):c.closing===t.key&&(c={...c,closing:null}),function(e,t){let n=e;for(;n.tabs.length>t;){const e=n.tabs.filter(e=>!e.pinned&&e.key!==n.activeKey&&!n.dirty.includes(e.key)&&e.key!==n.closing).sort((e,t)=>e.lastActive-t.lastActive);if(0===e.length)break;n=M(n,e[0].key)}return n}(c,n)}function L(e){let t={...e,activeKey:null};return t.closing&&(t=M(t,t.closing)),t}function M(e,t){return{...e,tabs:e.tabs.filter(e=>e.key!==t),mounted:N(e.mounted,t),dirty:N(e.dirty,t),activeKey:e.activeKey===t?null:e.activeKey,closing:e.closing===t?null:e.closing}}function D(e,t){switch(t.type){case"visit":return A(e,t.entry,t.maxTabs);case"transient":return L(e);case"close":{let n=e;for(const e of t.keys)n=M(n,e);return t.closing?function(e,t){return{...e,closing:t}}(n,t.closing):n}case"title":return function(e,t,n){const r=e.tabs.find(e=>e.key===t);return!r||!n||r.title===n&&"page"===r.titleFrom?e:{...e,tabs:e.tabs.map(e=>e.key===t?{...e,title:n,titleFrom:"page"}:e)}}(e,t.key,t.title);case"dirty":return function(e,t,n){return n===e.dirty.includes(t)?e:{...e,dirty:n?[...e.dirty,t]:N(e.dirty,t)}}(e,t.key,t.dirty)}}var I=e=>`${e.pathname}${e.search}`;function w(e){const t=e.indexOf("#"),n=t>=0?e.slice(t):"",r=t>=0?e.slice(0,t):e,i=r.indexOf("?");return{pathname:i>=0?r.slice(0,i):r,search:i>=0?r.slice(i):"",hash:n}}function C({children:e,resolve:c,pinned:s=[],storageKey:l,maxTabs:k=12,enabled:v=!0,confirmDiscard:g}){const F=m(),K=h(),N=i().pageTabs,M=y(),C=a(c);C.current=c;const J=d(e=>{const t=C.current(e);return t?{key:t.key??e.pathname,path:I(e),title:t.title}:null},[]),{language:W}=t(),[O,Q]=p(D,void 0,()=>{const e=function(e,t,n){if(!e)return[];let r;try{r=JSON.parse(e)}catch{return[]}const i=r;if(!i||1!==i.v||!Array.isArray(i.tabs))return[];const c=Boolean(n&&"string"==typeof i.lang&&i.lang!==n),s=[];for(const e of i.tabs){if(!e||"string"!=typeof e.path||!e.path.startsWith("/")||e.path.startsWith("//"))continue;const n=e.path.indexOf("#"),r=n>=0?e.path.slice(0,n):e.path,i=t(r);if(!i||s.some(e=>e.key===i.key))continue;const l=!c&&"page"===e.titleFrom&&"string"==typeof e.title&&e.title;s.push({key:i.key,path:r,title:l||i.title,titleFrom:l?"page":"route",pinned:!1,lastActive:0})}return s}(function(e){if(!e)return null;try{return localStorage.getItem(e)}catch{return null}}(l),e=>J(w(e)),W);let t=function(e,t){const n=t.map(e=>e.key);let r=e.tabs.map(e=>({...e,pinned:n.includes(e.key)}));for(const e of t)r.some(t=>t.key===e.key)||(r=[...r,{key:e.key,path:e.path,title:e.title,titleFrom:"route",pinned:!0,lastActive:0}]);return{...e,tabs:T(r,n)}}({tabs:[],activeKey:null,mounted:[],dirty:[],closing:null,clock:0,tabs:e},s.map(e=>J(w(e))).filter(e=>Boolean(e)));const n=v?J(F):null;return t=n?A(t,n,k):L(t),t}),S=a(O);S.current=O;const U=a(/* @__PURE__ */new Map),x=v?J(F):null,R=x?.key??null;r(()=>{if(!v)return;const e=J(F);e?(U.current.set(e.key,F),Q({type:"visit",entry:e,maxTabs:k})):Q({type:"transient"})},[F,v,k,J]),o(()=>{const e=new Set(O.tabs.map(e=>e.key));for(const t of U.current.keys())e.has(t)||U.current.delete(t)},[O.tabs]);const E=u(()=>function(e,t){const n={v:1,...t?{lang:t}:{},tabs:e.tabs.filter(t=>t.key!==e.closing).map(({key:e,path:t,title:n,titleFrom:r})=>({key:e,path:t,title:n,titleFrom:r}))};return JSON.stringify(n)}(O,W),[O,W]);o(()=>{if(l)try{localStorage.setItem(l,E)}catch{}},[E,l]);const P=O.dirty.length>0;o(()=>{if(!P)return;const e=e=>{e.preventDefault(),e.returnValue=""};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[P]);const B=a(/* @__PURE__ */new Map),V=d((e,t)=>{let n=B.current.get(e);return void 0===n&&(n=B.current.size,B.current.set(e,n)),`${M}-page-${t}-${n}`},[M]),X=d(e=>g?g(e):n({title:N.discardTitle,message:1===e.length?N.discardOne:N.discardCount?.(e.length)??`${e.length} ${N.discardMany}`,confirmLabel:N.discardConfirm,cancelLabel:N.keepEditing,variant:"warning"}),[g,N]),$=d(()=>{const e=S.current;return e.tabs.find(e=>e.pinned)?.path??"/"},[]),G=d((e,t,n)=>{const r=S.current,i=r.activeKey;if(!i||!e.includes(i))return void Q({type:"close",keys:e,closing:null});let c=t;if(!c){const t={...r,tabs:r.tabs.filter(t=>t.key===i||!e.includes(t.key))},s=n?r.tabs.find(t=>t.key===n&&!e.includes(t.key)):void 0;c=(s??function(e,t){const n=e.tabs.filter(n=>n.key!==e.closing||n.key===t),r=n.findIndex(e=>e.key===t);return r<0?null:n[r+1]??n[r-1]??null}(t,i))?.path??$()}Q({type:"close",keys:e.filter(e=>e!==i),closing:i}),K(c)},[K,$]),H=d(async(e,t={})=>{const n=S.current.tabs.find(t=>t.key===e);return!n||n.pinned?(t.to&&K(t.to),!1):!(!t.force&&S.current.dirty.includes(e)&&!await X([n]))&&(!!S.current.tabs.some(t=>t.key===e)&&(G([e],t.to),!0))},[X,G,K]),Y=d(async(e,t)=>{let n=function(e,t,n){const r=e.tabs.filter(e=>!e.pinned);if("all"===t)return r.map(e=>e.key);if("others"===t)return r.filter(e=>e.key!==n).map(e=>e.key);const i=e.tabs.findIndex(e=>e.key===n);return i<0?[]:e.tabs.slice(i+1).filter(e=>!e.pinned).map(e=>e.key)}(S.current,e,t);const r=S.current.tabs.filter(e=>n.includes(e.key)&&S.current.dirty.includes(e.key));r.length&&!await X(r)&&(n=n.filter(e=>!r.some(t=>t.key===e)));const i=new Set(S.current.tabs.map(e=>e.key));n=n.filter(e=>i.has(e)),n.length&&G(n,void 0,"all"===e?null:t)},[X,G]),Z=d(e=>{const t=S.current.tabs.find(t=>t.key===e);t&&e!==S.current.activeKey&&K(t.path)},[K]),z=d((e,t)=>Q({type:"title",key:e,title:t}),[]),q=d((e,t)=>Q({type:"dirty",key:e,dirty:t}),[]),[_,ee]=f({}),te=d((e,t)=>{ee(n=>{if((n[e]??null)===t)return n;const r={...n};return t?r[e]=t:delete r[e],r})},[]),ne=d(e=>J(e)?.key??null,[J]),re=d(e=>U.current.get(e),[]),ie=u(()=>v?O.tabs.filter(e=>e.key!==O.closing):[],[v,O.tabs,O.closing]),ce=u(()=>({enabled:v,state:O,currentKey:R,resolve:c,keyFor:ne,locationFor:re,idFor:V,activate:Z,close:H,closeMany:Y,setTitle:z,setDirty:q,copies:_,setCopy:te,visibleTabs:ie}),[v,O,R,c,ne,re,V,Z,H,Y,z,q,_,te,ie]);/* @__PURE__ */
|
|
3
|
+
return b(j.Provider,{value:ce,children:e})}var J=c.Activity,W=Boolean(J);function O({active:e,children:t}){return J?/* @__PURE__ */b(J,{mode:e?"visible":"hidden",children:t}):/* @__PURE__ */b(v,{children:t})}var Q=l(function({tabKey:e,active:t,location:n,render:i,className:c,panelId:s,tabId:l}){const y=a(null),d=a(t),p=a(/* @__PURE__ */new Map);r(()=>{const e=d.current;if(d.current=t,t&&!e)for(const[e,[t,n]]of p.current)e.isConnected?(e.scrollTop=t,e.scrollLeft=n):p.current.delete(e)},[t]),o(()=>{const e=y.current;if(!e)return;const t=e=>{if(!d.current)return;const t=e.target;t&&"number"==typeof t.scrollTop&&p.current.set(t,[t.scrollTop,t.scrollLeft])};return e.addEventListener("scroll",t,!0),()=>e.removeEventListener("scroll",t,!0)},[]);const f=u(()=>({key:e,activeRef:d}),[e]);/* @__PURE__ */
|
|
4
|
+
return b("div",{ref:y,role:s?"tabpanel":void 0,id:s,"aria-labelledby":l,hidden:!t,style:t?void 0:{display:"none"},className:c,"data-page-tab":e,children:/* @__PURE__ */b(F.Provider,{value:f,children:/* @__PURE__ */b(O,{active:t,children:i(n)})})})},(e,t)=>e.active===t.active&&e.location===t.location&&e.className===t.className&&e.panelId===t.panelId&&e.tabId===t.tabId&&(!t.active||e.render===t.render)),S="\0transient";function U({children:e,frameClassName:t}){const n=k(j),r=m();if(!n||!n.enabled)/* @__PURE__ */
|
|
5
|
+
return b("div",{className:t,children:e(r)},S);const{state:i,currentKey:c,locationFor:s,idFor:l}=n,a=i.tabs.filter(e=>i.mounted.includes(e.key)).map(e=>e.key);return c&&!a.includes(c)&&a.push(c),/* @__PURE__ */g(v,{children:[a.map(n=>{const i=n===c,a=i?r:s(n);return a?/* @__PURE__ */b(Q,{tabKey:n,active:i,location:a,render:e,className:t,panelId:l(n,"panel"),tabId:l(n,"tab")},n):null}),!c&&/* @__PURE__ */b(Q,{tabKey:S,active:!0,location:r,render:e,className:t},S)]})}function x({className:t,activeClassName:n,end:r}){const c=k(j),s=i().pageTabs;if(!c||!c.enabled)return null;const{visibleTabs:l,state:a,idFor:o,activate:u,close:y,closeMany:d,resolve:p}=c;/* @__PURE__ */
|
|
6
|
+
return b(e,{tabs:l.map(e=>({key:e.key,title:e.title,pinned:e.pinned,dirty:a.dirty.includes(e.key),copy:c.copies[e.key],icon:p(w(e.path))?.icon})),activeKey:c.currentKey??null,idFor:o,panelMounted:e=>a.mounted.includes(e),onActivate:u,onClose:e=>{y(e)},onCloseMany:(e,t)=>{d(e,t)},label:s.label,className:t,activeClassName:n,end:r})}var R={enabled:!1,tabs:[],activeKey:null,activate:()=>{},close:async()=>!1,closeOthers:async()=>{},closeRight:async()=>{},closeAll:async()=>{}};function E(){const e=k(j);return e&&e.enabled?{enabled:!0,tabs:e.visibleTabs,activeKey:e.currentKey,activate:e.activate,close:e.close,closeOthers:t=>e.closeMany("others",t),closeRight:t=>e.closeMany("right",t),closeAll:()=>e.closeMany("all",null)}:R}function P(){const e=k(j),t=k(F),n=h();return{key:e?.enabled&&t?t.key:null,close:d(async(r={})=>e?.enabled&&t&&e.state.tabs.some(e=>e.key===t.key)?e.close(t.key,r):(r.to&&n(r.to),!1),[e,t,n])}}function B(e){const t=k(j),n=k(F),r=t?.enabled?t.setTitle:void 0,i=n?.key;o(()=>{r&&i&&e&&r(i,e)},[r,i,e])}function V(e){const t=k(j),n=k(F),r=t?.enabled?t.setCopy:void 0,i=n?.key;o(()=>{if(r&&i)return r(i,e||null),()=>r(i,null)},[r,i,e])}function X(e){const t=k(j),n=k(F),r=t?.enabled?t.setDirty:void 0;o(()=>{if(r&&n)return r(n.key,e),()=>{n.activeRef.current&&r(n.key,!1)}},[r,n,e])}export{K as DEFAULT_MAX_TABS,W as PAGE_TABS_PAUSE_HIDDEN,x as PageTabBar,U as PageTabsOutlet,C as PageTabsProvider,w as parseTabPath,P as usePageTab,V as usePageTabCopy,X as usePageTabDirty,B as usePageTabTitle,E as usePageTabs};
|
package/dist/pdf/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{lazy as r}from"react";var e=r(()=>import("../PdfViewer-
|
|
2
|
+
import{lazy as r}from"react";var e=r(()=>import("../PdfViewer-LU5JKHSG.js"));export{e as PdfViewer};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{APP_UPDATE_POLL_MS,AppUpdateBanner as default,useAppUpdate}from"../chunk-
|
|
2
|
+
export{APP_UPDATE_POLL_MS,AppUpdateBanner as default,useAppUpdate}from"../chunk-N3YBOXOF.js";import"../chunk-ZW3IDCP2.js";import"../chunk-HXNMRJQ4.js";import"../chunk-UQYNPYF4.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-SQCUN2DX.js";import"../chunk-Q3IR5SKD.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/Banner.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{Banner as default}from"../chunk-
|
|
2
|
+
export{Banner as default}from"../chunk-ZW3IDCP2.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{Breadcrumbs as default}from"../chunk-
|
|
2
|
+
export{Breadcrumbs as default}from"../chunk-3AH524CN.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ColoredBadge as default}from"../chunk-
|
|
2
|
+
export{ColoredBadge as default}from"../chunk-S52GQQVB.js";import"../chunk-EQZZ4V5X.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-S5SRXI4V.js";import"../chunk-Q3IR5SKD.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-
|
|
2
|
+
export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-5JU53T3U.js";import"../chunk-LWWMRL2Y.js";import"../chunk-3DVNXNTF.js";import"../chunk-ID6WFAXW.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";import"../chunk-CDAJKLGL.js";import"../chunk-UQYNPYF4.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ContextMenu,useContextMenu}from"../chunk-
|
|
2
|
+
export{ContextMenu,useContextMenu}from"../chunk-UPCLAEKC.js";import"../chunk-V2MIQ4GJ.js";import"../chunk-FRVNDEV2.js";import"../chunk-5QFPTDQF.js";import"../chunk-URHGHXDN.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";
|
package/dist/shell/Dialog.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{Dialog as default}from"../chunk-
|
|
2
|
+
export{Dialog as default}from"../chunk-LWWMRL2Y.js";import"../chunk-3DVNXNTF.js";import"../chunk-ID6WFAXW.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";import"../chunk-CDAJKLGL.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/Drawer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{Drawer as default}from"../chunk-
|
|
2
|
+
export{Drawer as default}from"../chunk-25M7CYCR.js";import"../chunk-3DVNXNTF.js";import"../chunk-ID6WFAXW.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";import"../chunk-CDAJKLGL.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{DropdownMenu as default}from"../chunk-
|
|
2
|
+
export{DropdownMenu as default}from"../chunk-ZE5TNYWX.js";import"../chunk-V2MIQ4GJ.js";import"../chunk-CDAJKLGL.js";import"../chunk-FRVNDEV2.js";import"../chunk-5QFPTDQF.js";import"../chunk-URHGHXDN.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{EditableGrid as default,withSpareRow}from"../chunk-
|
|
2
|
+
export{EditableGrid as default,withSpareRow}from"../chunk-5FRFSPQ2.js";import"../chunk-G6DKCCWH.js";import"../chunk-S5SRXI4V.js";import"../chunk-Q3IR5SKD.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/EmptyState.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{EmptyState as default}from"../chunk-
|
|
2
|
+
export{EmptyState as default}from"../chunk-LPXMHYTM.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{FloatingBar as default}from"../chunk-
|
|
2
|
+
export{FloatingBar as default}from"../chunk-MMQ6ETRD.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-D65T4H6J.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{GlobalSearch as default,openGlobalSearch}from"../chunk-
|
|
2
|
+
export{GlobalSearch as default,openGlobalSearch}from"../chunk-OSVY6SUO.js";import"../chunk-WGRS6QBT.js";import"../chunk-5A7MWTXX.js";import"../chunk-7QSDPSXP.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-F27JJHNJ.js";import"../chunk-D65T4H6J.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/HelpCenter.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{HelpCenter as default}from"../chunk-
|
|
2
|
+
export{HelpCenter as default}from"../chunk-N4REWGMM.js";import"../chunk-POQ4ETLL.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-AYZY3YNC.js";import"../chunk-HXNMRJQ4.js";import"../chunk-UQYNPYF4.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-SQCUN2DX.js";import"../chunk-Q3IR5SKD.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/IconRail.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{IconRail,IconRailButton}from"../chunk-
|
|
2
|
+
export{IconRail,IconRailButton}from"../chunk-7PSIPTOE.js";import"../chunk-FQEALPZJ.js";import"../chunk-LEDUD23S.js";import"../chunk-Q3IR5SKD.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ImageLightbox as default,lightboxKind}from"../chunk-
|
|
2
|
+
export{ImageLightbox as default,lightboxKind}from"../chunk-OAT7OEWP.js";import"../chunk-CGUMJZUB.js";import"../chunk-SSM3EN7G.js";import"../chunk-SP2AUVIU.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";import"../chunk-CDAJKLGL.js";import"../chunk-EQZZ4V5X.js";import"../chunk-HXNMRJQ4.js";import"../chunk-UQYNPYF4.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-SQCUN2DX.js";import"../chunk-S5SRXI4V.js";import"../chunk-Q3IR5SKD.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/ItemCount.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{ItemCount as default}from"../chunk-
|
|
1
|
+
export{ItemCount as default}from"../chunk-4VTJEKHX.js";import"../chunk-Q3IR5SKD.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-
|
|
2
|
+
export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-U2WCV56F.js";import"../chunk-UPQW4GCT.js";import"../chunk-JEH5EVIG.js";import"../chunk-64ACCUNN.js";import"../chunk-32VV2J22.js";import"../chunk-NI5FXWK5.js";import"../chunk-OET2Q7P6.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";import"../chunk-6KBDNYRW.js";import"../chunk-2NMW66P5.js";import"../chunk-VQCKMT5F.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-CGZBDI6C.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/Markdown.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { b as IconName } from '../names-
|
|
3
|
+
import { b as IconName } from '../names-Bmx_9y41.js';
|
|
4
4
|
|
|
5
5
|
/** A host's say over a link's plain click: `true` when it opened the link
|
|
6
6
|
* itself (a record in a window), so the browser does not navigate. */
|
package/dist/shell/Markdown.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{Markdown as default,plainCell,tableToCsv}from"../chunk-
|
|
2
|
+
export{Markdown as default,plainCell,tableToCsv}from"../chunk-POQ4ETLL.js";import"../chunk-UJUTS6LJ.js";import"../chunk-PJPK2ADX.js";import"../chunk-HXNMRJQ4.js";import"../chunk-UQYNPYF4.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-SQCUN2DX.js";import"../chunk-Q3IR5SKD.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{MilestoneTimeline as default}from"../chunk-
|
|
2
|
+
export{MilestoneTimeline as default}from"../chunk-XIB72X74.js";import"../chunk-S4Z657L6.js";import"../chunk-NWURIQI3.js";import"../chunk-7TC3LJQM.js";import"../chunk-Y3JW2GW5.js";import"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";import"../chunk-465RRWBY.js";import"../chunk-GLUJS42B.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/PageHeader.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{PageHeader as default}from"../chunk-
|
|
2
|
+
export{PageHeader as default}from"../chunk-3EJ64VKE.js";import"../chunk-3AH524CN.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/Popover.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{Popover as default}from"../chunk-
|
|
2
|
+
export{Popover as default}from"../chunk-G4JTO5PB.js";import"../chunk-CDAJKLGL.js";import"../chunk-UQYNPYF4.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";
|
package/dist/shell/PopupMenu.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{MenuCheckMark,MenuIcon,MenuSemanticsContext,PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu,itemLook,menuTextRowStyle}from"../chunk-
|
|
2
|
+
export{MenuCheckMark,MenuIcon,MenuSemanticsContext,PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu,itemLook,menuTextRowStyle}from"../chunk-FRVNDEV2.js";import"../chunk-5QFPTDQF.js";import"../chunk-URHGHXDN.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{POST_PRODUCTION_STATUSES,STAGES,calcOverall,calcReportOverall,ProductionTimeline as default,useProductionTimeline}from"../chunk-
|
|
2
|
+
export{POST_PRODUCTION_STATUSES,STAGES,calcOverall,calcReportOverall,ProductionTimeline as default,useProductionTimeline}from"../chunk-ZI6SMZJ4.js";import"../chunk-S4Z657L6.js";import"../chunk-NWURIQI3.js";import"../chunk-7TC3LJQM.js";import"../chunk-Y3JW2GW5.js";import"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";import"../chunk-465RRWBY.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-GLUJS42B.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{ResizeHandle as default,readStoredWidth,resizedWidth}from"../chunk-
|
|
2
|
+
export{ResizeHandle as default,readStoredWidth,resizedWidth}from"../chunk-KJCTXWF7.js";import"../chunk-Q3IR5SKD.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|
package/dist/shell/Result.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{Result as default}from"../chunk-
|
|
2
|
+
export{Result as default}from"../chunk-EXJXOKUU.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-4PAWQEXM.js";import"../chunk-C3QOHMR6.js";
|