efficient-shell 12.13.0 → 12.16.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 +58 -3
- package/dist/{Browser-OFC3QRX3.js → Browser-7JNZKYCH.js} +14 -14
- package/dist/Calculator-4VBPCGRP.js +29 -0
- package/dist/{CurrencyConverter-HZWRB62S.js → CurrencyConverter-34AMD4W7.js} +9 -9
- package/dist/Files-2CUER7VQ.js +141 -0
- package/dist/{Notepad-77VJ4DK4.js → Notepad-S2COZUMR.js} +10 -10
- package/dist/PdfViewer-F2TCC5UD.js +1 -0
- package/dist/{PomodoroTimer-ME3BMHKR.js → PomodoroTimer-6WR3UOOM.js} +49 -49
- package/dist/{Preview-DXEYBUYC.js → Preview-C3JK6FBV.js} +38 -38
- package/dist/Sidebar-ADAIERCI.js +44 -0
- package/dist/{Stock-WK45DFIC.js → Stock-UAGSFAKY.js} +3 -3
- package/dist/{Weather-BVKZQI4R.js → Weather-G2VGEQX2.js} +17 -17
- package/dist/{WorldClock-L3BQXXQX.js → WorldClock-43KK7OTT.js} +4 -4
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.js +79 -79
- package/dist/apps/ImageAnnotator.js +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/ChartBrush.js +1 -1
- package/dist/charts/ChartFrame.js +1 -1
- package/dist/charts/ChartSkeleton.js +1 -1
- package/dist/charts/ChordChart.js +1 -1
- package/dist/charts/ColumnChart.js +1 -1
- package/dist/charts/FunnelChart.js +1 -1
- package/dist/charts/HeatmapChart.js +1 -1
- package/dist/charts/HistogramChart.js +1 -1
- package/dist/charts/Meter.js +1 -1
- package/dist/charts/PieChart.js +1 -1
- package/dist/charts/RadarChart.js +1 -1
- package/dist/charts/RadialBarChart.js +1 -1
- package/dist/charts/RangeChart.js +1 -1
- package/dist/charts/RankedBars.js +1 -1
- package/dist/charts/SankeyChart.js +1 -1
- package/dist/charts/ScatterChart.js +1 -1
- package/dist/charts/SpecChart.js +1 -1
- package/dist/charts/StatTile.js +1 -1
- package/dist/charts/SunburstChart.js +1 -1
- package/dist/charts/TimeSeriesChart.js +1 -1
- package/dist/charts/TreemapChart.js +1 -1
- package/dist/charts/WaterfallChart.js +1 -1
- package/dist/{chunk-YX4MRM7A.js → chunk-232YPI2L.js} +6 -6
- package/dist/{chunk-W4NVTD5Q.js → chunk-24JKQX2N.js} +4 -4
- package/dist/{chunk-5EKNXSQG.js → chunk-24LO6OH4.js} +1 -1
- package/dist/chunk-25QDSYH5.js +13 -0
- package/dist/chunk-27RPYRRI.js +2 -0
- package/dist/{chunk-EDANELWX.js → chunk-2DYVVHZA.js} +1 -1
- package/dist/{chunk-RKYWKMUK.js → chunk-2NZ7CVMW.js} +1 -1
- package/dist/{chunk-27ZJQUDS.js → chunk-2VFSYSDS.js} +1 -1
- package/dist/{chunk-45HQXTA6.js → chunk-3A6FYWFQ.js} +1 -1
- package/dist/chunk-3UKNOOSL.js +4 -0
- package/dist/chunk-3W4JUMFI.js +1 -0
- package/dist/{chunk-JTZVUO3I.js → chunk-3YBXA72C.js} +1 -1
- package/dist/{chunk-4XS4DO4T.js → chunk-42XSMAIK.js} +1 -1
- package/dist/{chunk-2GS2VOQT.js → chunk-4BKJ6A5H.js} +9 -9
- package/dist/{chunk-Y23BITKG.js → chunk-4I4WZHMV.js} +1 -1
- package/dist/{chunk-JGJWPONL.js → chunk-4IHYWLWE.js} +5 -5
- package/dist/{chunk-KIRLSUQT.js → chunk-4LOHQ4QB.js} +5 -5
- package/dist/{chunk-YVAJ42M2.js → chunk-4Y33Y4OX.js} +6 -6
- package/dist/{chunk-654DGV5Q.js → chunk-56XKHWNL.js} +1 -1
- package/dist/chunk-574SLTKO.js +8 -0
- package/dist/{chunk-GCVIUXKL.js → chunk-5DQE6RQJ.js} +1 -1
- package/dist/chunk-5HLLCX6X.js +2 -0
- package/dist/{chunk-MFZPTS7W.js → chunk-5MH5N76F.js} +4 -4
- package/dist/{chunk-MXITMJCT.js → chunk-5QYKF7NK.js} +17 -17
- package/dist/chunk-5XCASBGK.js +5 -0
- package/dist/chunk-5ZT3FJ2W.js +2 -0
- package/dist/{chunk-LFYZ7NQ4.js → chunk-64RHGJXK.js} +4 -4
- package/dist/{chunk-YFDS6KF3.js → chunk-6A26HUVK.js} +1 -1
- package/dist/chunk-6RHKNP2Q.js +2 -0
- package/dist/chunk-6V3BNCDT.js +2 -0
- package/dist/{chunk-GB2XLSR5.js → chunk-74JMBOQH.js} +10 -10
- package/dist/{chunk-6YIVKPWQ.js → chunk-75H4BWNC.js} +1 -1
- package/dist/{chunk-AUCNJFTP.js → chunk-7K3FYCRZ.js} +9 -9
- package/dist/{chunk-4NLCXHWN.js → chunk-7X2P6IH3.js} +4 -4
- package/dist/{chunk-SEHKTBVM.js → chunk-7ZJRBFHA.js} +1 -1
- package/dist/chunk-A4PFVMQ2.js +7 -0
- package/dist/chunk-ABQWWMTO.js +2 -0
- package/dist/chunk-ASPLTZBH.js +2 -0
- package/dist/{chunk-ZV6WLVD3.js → chunk-B2KQ3T7Q.js} +6 -6
- package/dist/chunk-BAWT5QBA.js +2 -0
- package/dist/chunk-BHHFVIAD.js +2 -0
- package/dist/{chunk-GMJ5WOB2.js → chunk-CBVKGAZH.js} +1 -1
- package/dist/chunk-CDGK3TOO.js +2 -0
- package/dist/{chunk-BYDSBDVS.js → chunk-CEIIQRK5.js} +6 -6
- package/dist/{chunk-FZWAOYAM.js → chunk-CMJD5URC.js} +9 -9
- package/dist/chunk-CYU454QR.js +2 -0
- package/dist/{chunk-EO6MOQOZ.js → chunk-DCNSQGHJ.js} +12 -12
- package/dist/chunk-DG2TGWXI.js +15 -0
- package/dist/{chunk-D4K72BHN.js → chunk-DGHSCKOE.js} +4 -4
- package/dist/{chunk-GBEDLYND.js → chunk-DJXXY23A.js} +2 -2
- package/dist/chunk-DLOTU5XU.js +5 -0
- package/dist/chunk-DRMIQ3YE.js +1 -0
- package/dist/chunk-DRSPB4ZE.js +2 -0
- package/dist/chunk-DSOV33XA.js +1 -0
- package/dist/chunk-DVYBJOD3.js +11 -0
- package/dist/chunk-DWGYC7OD.js +1 -0
- package/dist/chunk-ECJSGHFD.js +2 -0
- package/dist/{chunk-Q64F2EXW.js → chunk-EDX55XGV.js} +6 -6
- package/dist/{chunk-QULE4LAC.js → chunk-EEAY7FJW.js} +17 -17
- package/dist/{chunk-WMIU2VR5.js → chunk-EEB5XPWP.js} +2 -2
- package/dist/{chunk-ZLFZJX6M.js → chunk-EGCHJHRR.js} +8 -8
- package/dist/chunk-EJRRJXDG.js +2 -0
- package/dist/chunk-ENFXDIIZ.js +8 -0
- package/dist/{chunk-CB5FQMFB.js → chunk-FI6IJTAJ.js} +12 -12
- package/dist/chunk-FIW2BUK2.js +2 -0
- package/dist/{chunk-JVNJCRHM.js → chunk-FJVZ2W55.js} +1 -1
- package/dist/{chunk-EAXPSAHZ.js → chunk-FQHPGREQ.js} +9 -9
- package/dist/chunk-FVKXDF2Q.js +12 -0
- package/dist/{chunk-QGFAQVUO.js → chunk-G3E4CD77.js} +6 -6
- package/dist/{chunk-SFFELHLP.js → chunk-GC4N4UQM.js} +5 -5
- package/dist/{chunk-4UQNNA4K.js → chunk-GEVNBBM7.js} +1 -1
- package/dist/{chunk-M2VCZAMQ.js → chunk-GOEHP2XM.js} +3 -3
- package/dist/{chunk-G3VRO4CK.js → chunk-GUHCKMC7.js} +2 -2
- package/dist/{chunk-B7HTKDT3.js → chunk-H32UNWVU.js} +5 -5
- package/dist/{chunk-LTN4AQYG.js → chunk-H4ABSQS6.js} +1 -1
- package/dist/chunk-H7RDZRJ4.js +2 -0
- package/dist/chunk-HBDNQ3ER.js +4 -0
- package/dist/chunk-HGOWQO63.js +1 -0
- package/dist/{chunk-NHIP2S4E.js → chunk-HJF4UZOA.js} +13 -13
- package/dist/chunk-HNBMBC77.js +1 -0
- package/dist/{chunk-NBUL37WB.js → chunk-HYPYNVQQ.js} +1 -1
- package/dist/{chunk-5T4WTFBC.js → chunk-I3TVRNUT.js} +1 -1
- package/dist/chunk-IFGNAY56.js +14 -0
- package/dist/{chunk-6BNLDGST.js → chunk-ILIPEY3D.js} +1 -1
- package/dist/chunk-J3Z4U2CT.js +2 -0
- package/dist/{chunk-FSZ3TNAR.js → chunk-JAVTQART.js} +1 -1
- package/dist/{chunk-HEX3EP5F.js → chunk-JFGJJNT2.js} +4 -4
- package/dist/{chunk-GMLDGXNQ.js → chunk-JQWZ36JD.js} +1 -1
- package/dist/chunk-JSHMIMAJ.js +1 -0
- package/dist/{chunk-SWB32OKH.js → chunk-JTGRLXZN.js} +1 -1
- package/dist/{chunk-NV7QRWQJ.js → chunk-JZBLOIL7.js} +1 -1
- package/dist/{chunk-O3YCIWHF.js → chunk-KAKJ7ENS.js} +2 -2
- package/dist/chunk-KELGQ7WI.js +2 -0
- package/dist/{chunk-YPZXE67U.js → chunk-KSMEWOCE.js} +1 -1
- package/dist/chunk-L7MWAC2P.js +6 -0
- package/dist/{chunk-WJBP5SND.js → chunk-LIWBCIRZ.js} +4 -4
- package/dist/{chunk-LTUVKDTO.js → chunk-LNZMA4PB.js} +1 -1
- package/dist/{chunk-P3GBQBDC.js → chunk-LQVQX5B2.js} +1 -1
- package/dist/chunk-LSADTBPH.js +4 -0
- package/dist/{chunk-XDJQWP5K.js → chunk-MBCUICY3.js} +1 -1
- package/dist/chunk-MEF5E2JA.js +2 -0
- package/dist/{chunk-5NCR64CE.js → chunk-MFJHLC5M.js} +1 -1
- package/dist/{chunk-EKDXJQIP.js → chunk-MJVFIH3J.js} +11 -11
- package/dist/{chunk-WQV7VQ5Z.js → chunk-MRLXGLNZ.js} +1 -1
- package/dist/chunk-MUNG4VXE.js +2 -0
- package/dist/{chunk-KWTK6TGH.js → chunk-MWTCGJAI.js} +1 -1
- package/dist/{chunk-6JLXXX4H.js → chunk-N2445WHJ.js} +12 -12
- package/dist/chunk-N3THYDNV.js +2 -0
- package/dist/{chunk-I5UM6UZF.js → chunk-NKP5WCEA.js} +6 -6
- package/dist/{chunk-MEAJGM6F.js → chunk-NOGSS432.js} +1 -1
- package/dist/{chunk-5ZQY42QX.js → chunk-OFYNPYY2.js} +1 -1
- package/dist/{chunk-V6FHZGCL.js → chunk-OM6VWUAZ.js} +1 -1
- package/dist/{chunk-EIXMUGVZ.js → chunk-OOWPLQD5.js} +2 -2
- package/dist/{chunk-NOEAEXIZ.js → chunk-OVD3ECM7.js} +1 -1
- package/dist/chunk-OYJAXZFU.js +2 -0
- package/dist/{chunk-EQ2KTDOU.js → chunk-PDA77NNC.js} +3 -3
- package/dist/{chunk-PDCCNHTP.js → chunk-PJE75B66.js} +1 -1
- package/dist/chunk-PMBCQWJW.js +4 -0
- package/dist/chunk-PTJIGNKA.js +4 -0
- package/dist/{chunk-UG5GKEU5.js → chunk-QADNVFV5.js} +1 -1
- package/dist/{chunk-KCAUYEYR.js → chunk-QBWMWK2W.js} +6 -6
- package/dist/chunk-QIFGQE6V.js +2 -0
- package/dist/{chunk-BET6KEY2.js → chunk-QPYVCG74.js} +12 -12
- package/dist/{chunk-ZR2UWJIR.js → chunk-RBS3AWE7.js} +1 -1
- package/dist/{chunk-WM2BBRT6.js → chunk-RF3ZFTAU.js} +1 -1
- package/dist/chunk-RIG5FEVS.js +1 -0
- package/dist/{chunk-HYQBYMJX.js → chunk-RMDVKQJE.js} +2 -2
- package/dist/chunk-RMKC5POE.js +3 -0
- package/dist/{chunk-42BVXJZN.js → chunk-RZ2DWX4N.js} +5 -5
- package/dist/{chunk-VPZOSVDF.js → chunk-SE6IQZYW.js} +9 -9
- package/dist/{chunk-ISU4FCEX.js → chunk-SR4W2SYQ.js} +4 -4
- package/dist/chunk-SRR4MAA6.js +4 -0
- package/dist/chunk-SZ6J44ZK.js +2 -0
- package/dist/{chunk-TJCJLKJB.js → chunk-T3JSUBIF.js} +1 -1
- package/dist/{chunk-SY65V6K7.js → chunk-T7D73HT7.js} +9 -9
- package/dist/chunk-THRSU75M.js +2 -0
- package/dist/{chunk-AG6Y62TP.js → chunk-TKPUYQ3Q.js} +72 -72
- package/dist/chunk-TO6CUG4Y.js +4 -0
- package/dist/chunk-TU2L7NW3.js +7 -0
- package/dist/chunk-TUA2VQO7.js +4 -0
- package/dist/{chunk-QJGZOD6X.js → chunk-TW7SWDKZ.js} +7 -4
- package/dist/{chunk-VLCHHTX6.js → chunk-TYQ2JL4J.js} +1 -1
- package/dist/chunk-U77527G3.js +2 -0
- package/dist/{chunk-VCNTSE3H.js → chunk-UHK4MAFE.js} +1 -1
- package/dist/chunk-US6NOIGO.js +6 -0
- package/dist/{chunk-LMUB2EAD.js → chunk-UULBPDAH.js} +8 -8
- package/dist/chunk-UWLGKMH5.js +9 -0
- package/dist/{chunk-Z7RXWXR5.js → chunk-V4XR4MOS.js} +1 -1
- package/dist/{chunk-4MUE4CYB.js → chunk-VBLCYL4L.js} +1 -1
- package/dist/chunk-VDYF3WPJ.js +2 -0
- package/dist/{chunk-MAI2DN7N.js → chunk-VEQ45GAH.js} +1 -1
- package/dist/{chunk-HE24VQMU.js → chunk-VFHKD7TQ.js} +1 -1
- package/dist/chunk-VIWM4GD7.js +2 -0
- package/dist/{chunk-TCMAWDBL.js → chunk-VJXPT53M.js} +18 -18
- package/dist/chunk-VL6SOWP5.js +2 -0
- package/dist/{chunk-P44RCA6Z.js → chunk-VP2GI3UP.js} +8 -8
- package/dist/chunk-VPXAOSVH.js +28 -0
- package/dist/{chunk-44VAZ2EL.js → chunk-VYRVSTI6.js} +9 -9
- package/dist/{chunk-QQM36CYU.js → chunk-W2663E4S.js} +3 -3
- package/dist/chunk-WBLA7EHW.js +2 -0
- package/dist/{chunk-OCI3PZDU.js → chunk-WCCGKDG6.js} +2 -2
- package/dist/{chunk-QMNDKNK2.js → chunk-WESNFWM4.js} +1 -1
- package/dist/{chunk-NGQZI7HP.js → chunk-WLUJQLXG.js} +1 -1
- package/dist/chunk-WNOXHJVT.js +9 -0
- package/dist/{chunk-EVEGK57J.js → chunk-WPG3ZHYT.js} +1 -1
- package/dist/chunk-WPT5DUCQ.js +2 -0
- package/dist/{chunk-QCOXJXGZ.js → chunk-WQ4YKWN2.js} +1 -1
- package/dist/chunk-WWABT3IW.js +5 -0
- package/dist/chunk-WX5KKB3X.js +4 -0
- package/dist/{chunk-YVIV7SKG.js → chunk-WXZZGHET.js} +1 -1
- package/dist/{chunk-BGBSEPPH.js → chunk-WYGUHCJ2.js} +8 -8
- package/dist/chunk-X7BRR6UW.js +5 -0
- package/dist/chunk-XAC2GAOD.js +4 -0
- package/dist/{chunk-BM5QI2L6.js → chunk-XG5ER6GJ.js} +6 -6
- package/dist/{chunk-ASOVTAIT.js → chunk-XHSMDUEW.js} +3 -3
- package/dist/{chunk-YMJOFWW6.js → chunk-XKJGJNY2.js} +3 -3
- package/dist/{chunk-6P7SIIG4.js → chunk-XKNKRKHH.js} +14 -14
- package/dist/chunk-XL4QM2D3.js +5 -0
- package/dist/chunk-XLWPIUZB.js +2 -0
- package/dist/chunk-XN3KM6YE.js +4 -0
- package/dist/chunk-XQWHKXLS.js +22 -0
- package/dist/{chunk-GOKJZKLV.js → chunk-XU3YOWEG.js} +1 -1
- package/dist/chunk-XW336CNF.js +2 -0
- package/dist/{chunk-SXHNZFUY.js → chunk-Y6E7IRK2.js} +1 -1
- package/dist/{chunk-5HOXR3L4.js → chunk-Y7KDCC6E.js} +1 -1
- package/dist/{chunk-UYTFNR4W.js → chunk-YC42NCCA.js} +1 -1
- package/dist/chunk-YFUY3VDW.js +9 -0
- package/dist/{chunk-AKTEMZOT.js → chunk-YO26RV3H.js} +1 -1
- package/dist/{chunk-BFCIOWYI.js → chunk-YTZFWV2W.js} +1 -1
- package/dist/{chunk-SEMV4NCH.js → chunk-YU52WMSH.js} +1 -1
- package/dist/{chunk-ICZUWLVU.js → chunk-YVHEKEHJ.js} +1 -1
- package/dist/chunk-YX2OOGV7.js +4 -0
- package/dist/{chunk-NORR52Z3.js → chunk-Z62RBVEJ.js} +1 -1
- package/dist/{chunk-RQKD5AAL.js → chunk-Z66QBDNU.js} +1 -1
- package/dist/{chunk-U35TIWEP.js → chunk-ZE7OVMDM.js} +16 -16
- package/dist/{chunk-IARCNQD3.js → chunk-ZGWXSHVM.js} +1 -1
- package/dist/chunk-ZILBCVKS.js +2 -0
- package/dist/{chunk-CU3ZE25J.js → chunk-ZKGUBIBT.js} +1 -1
- package/dist/{chunk-LRKFMR4K.js → chunk-ZQT3GNRU.js} +2 -2
- package/dist/{chunk-AXFNOY2L.js → chunk-ZTRKM3B5.js} +7 -7
- package/dist/data/DataTable.js +1 -1
- package/dist/data/EntityList.js +1 -1
- package/dist/data/Kanban.js +1 -1
- package/dist/data/ListFooter.js +1 -1
- package/dist/data/ListLoadError.js +1 -1
- package/dist/data/Pagination.js +1 -1
- package/dist/data/ResizableTable.js +1 -1
- package/dist/file-intake/index.js +1 -1
- package/dist/format/index.d.ts +152 -1
- package/dist/format/index.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/Calendar.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/ComposerAttachments.js +1 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/DatePicker.js +1 -1
- package/dist/forms/DateRangePicker.js +1 -1
- package/dist/forms/DateTimePicker.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/FilePicker.js +1 -1
- package/dist/forms/FormErrorSummary.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/ImageFocusPoint.js +1 -1
- package/dist/forms/Input.js +1 -1
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUploadGrid.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/NumericKeypad.js +1 -1
- package/dist/forms/PictureTiles.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/RenameField.js +1 -1
- package/dist/forms/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/TimePicker.js +1 -1
- package/dist/forms/UnitMenu.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/forms/mediaLibraryMenu.js +1 -1
- package/dist/forms/mediaMoveItems.js +1 -1
- package/dist/forms/textAlign.d.ts +1 -1
- package/dist/forms/textAlign.js +1 -1
- package/dist/forms/useFileIntake.js +1 -1
- package/dist/icons/efficient-glyphs.d.ts +16 -0
- package/dist/icons/efficient-glyphs.js +1 -1
- package/dist/icons/efficient-looks.d.ts +32 -0
- package/dist/icons/efficient-looks.js +1 -1
- package/dist/icons/efficient-meanings.d.ts +16 -0
- package/dist/icons/efficient-meanings.js +1 -1
- package/dist/icons/efficient.d.ts +16 -0
- package/dist/icons/efficient.js +1 -1
- package/dist/icons/glyphs/EntranceBounceIcon.d.ts +8 -0
- package/dist/icons/glyphs/EntranceBounceIcon.js +1 -0
- package/dist/icons/glyphs/EntranceFadeIcon.d.ts +8 -0
- package/dist/icons/glyphs/EntranceFadeIcon.js +1 -0
- package/dist/icons/glyphs/EntranceFlipIcon.d.ts +8 -0
- package/dist/icons/glyphs/EntranceFlipIcon.js +1 -0
- package/dist/icons/glyphs/EntranceGlideIcon.d.ts +8 -0
- package/dist/icons/glyphs/EntranceGlideIcon.js +1 -0
- package/dist/icons/glyphs/EntranceRevealIcon.d.ts +8 -0
- package/dist/icons/glyphs/EntranceRevealIcon.js +1 -0
- package/dist/icons/glyphs/EntranceRiseIcon.d.ts +8 -0
- package/dist/icons/glyphs/EntranceRiseIcon.js +1 -0
- package/dist/icons/glyphs/EntranceScaleIcon.d.ts +8 -0
- package/dist/icons/glyphs/EntranceScaleIcon.js +1 -0
- package/dist/icons/glyphs/EntranceSpinIcon.d.ts +8 -0
- package/dist/icons/glyphs/EntranceSpinIcon.js +1 -0
- package/dist/icons/glyphs/LoopMarqueeIcon.d.ts +8 -0
- package/dist/icons/glyphs/LoopMarqueeIcon.js +1 -0
- package/dist/icons/glyphs/ScrollFadeInIcon.d.ts +8 -0
- package/dist/icons/glyphs/ScrollFadeInIcon.js +1 -0
- package/dist/icons/glyphs/ScrollFadeOutIcon.d.ts +8 -0
- package/dist/icons/glyphs/ScrollFadeOutIcon.js +1 -0
- package/dist/icons/glyphs/ScrollMoveDownIcon.d.ts +8 -0
- package/dist/icons/glyphs/ScrollMoveDownIcon.js +1 -0
- package/dist/icons/glyphs/ScrollMoveUpIcon.d.ts +8 -0
- package/dist/icons/glyphs/ScrollMoveUpIcon.js +1 -0
- package/dist/icons/glyphs/ScrollParallaxIcon.d.ts +8 -0
- package/dist/icons/glyphs/ScrollParallaxIcon.js +1 -0
- package/dist/icons/glyphs/ScrollZoomInIcon.d.ts +8 -0
- package/dist/icons/glyphs/ScrollZoomInIcon.js +1 -0
- package/dist/icons/glyphs/ScrollZoomOutIcon.d.ts +8 -0
- package/dist/icons/glyphs/ScrollZoomOutIcon.js +1 -0
- package/dist/icons/index.d.ts +2 -2
- package/dist/icons/index.js +1 -1
- package/dist/icons/looks/EntranceBounceMiniIcon.d.ts +8 -0
- package/dist/icons/looks/EntranceBounceMiniIcon.js +1 -0
- package/dist/icons/looks/EntranceBounceSolidIcon.d.ts +8 -0
- package/dist/icons/looks/EntranceBounceSolidIcon.js +1 -0
- package/dist/icons/looks/EntranceFadeMiniIcon.d.ts +8 -0
- package/dist/icons/looks/EntranceFadeMiniIcon.js +1 -0
- package/dist/icons/looks/EntranceFadeSolidIcon.d.ts +8 -0
- package/dist/icons/looks/EntranceFadeSolidIcon.js +1 -0
- package/dist/icons/looks/EntranceFlipMiniIcon.d.ts +8 -0
- package/dist/icons/looks/EntranceFlipMiniIcon.js +1 -0
- package/dist/icons/looks/EntranceFlipSolidIcon.d.ts +8 -0
- package/dist/icons/looks/EntranceFlipSolidIcon.js +1 -0
- package/dist/icons/looks/EntranceGlideMiniIcon.d.ts +8 -0
- package/dist/icons/looks/EntranceGlideMiniIcon.js +1 -0
- package/dist/icons/looks/EntranceGlideSolidIcon.d.ts +8 -0
- package/dist/icons/looks/EntranceGlideSolidIcon.js +1 -0
- package/dist/icons/looks/EntranceRevealMiniIcon.d.ts +8 -0
- package/dist/icons/looks/EntranceRevealMiniIcon.js +1 -0
- package/dist/icons/looks/EntranceRevealSolidIcon.d.ts +8 -0
- package/dist/icons/looks/EntranceRevealSolidIcon.js +1 -0
- package/dist/icons/looks/EntranceRiseMiniIcon.d.ts +8 -0
- package/dist/icons/looks/EntranceRiseMiniIcon.js +1 -0
- package/dist/icons/looks/EntranceRiseSolidIcon.d.ts +8 -0
- package/dist/icons/looks/EntranceRiseSolidIcon.js +1 -0
- package/dist/icons/looks/EntranceScaleMiniIcon.d.ts +8 -0
- package/dist/icons/looks/EntranceScaleMiniIcon.js +1 -0
- package/dist/icons/looks/EntranceScaleSolidIcon.d.ts +8 -0
- package/dist/icons/looks/EntranceScaleSolidIcon.js +1 -0
- package/dist/icons/looks/EntranceSpinMiniIcon.d.ts +8 -0
- package/dist/icons/looks/EntranceSpinMiniIcon.js +1 -0
- package/dist/icons/looks/EntranceSpinSolidIcon.d.ts +8 -0
- package/dist/icons/looks/EntranceSpinSolidIcon.js +1 -0
- package/dist/icons/looks/LoopMarqueeMiniIcon.d.ts +8 -0
- package/dist/icons/looks/LoopMarqueeMiniIcon.js +1 -0
- package/dist/icons/looks/LoopMarqueeSolidIcon.d.ts +8 -0
- package/dist/icons/looks/LoopMarqueeSolidIcon.js +1 -0
- package/dist/icons/looks/ScrollFadeInMiniIcon.d.ts +8 -0
- package/dist/icons/looks/ScrollFadeInMiniIcon.js +1 -0
- package/dist/icons/looks/ScrollFadeInSolidIcon.d.ts +8 -0
- package/dist/icons/looks/ScrollFadeInSolidIcon.js +1 -0
- package/dist/icons/looks/ScrollFadeOutMiniIcon.d.ts +8 -0
- package/dist/icons/looks/ScrollFadeOutMiniIcon.js +1 -0
- package/dist/icons/looks/ScrollFadeOutSolidIcon.d.ts +8 -0
- package/dist/icons/looks/ScrollFadeOutSolidIcon.js +1 -0
- package/dist/icons/looks/ScrollMoveDownMiniIcon.d.ts +8 -0
- package/dist/icons/looks/ScrollMoveDownMiniIcon.js +1 -0
- package/dist/icons/looks/ScrollMoveDownSolidIcon.d.ts +8 -0
- package/dist/icons/looks/ScrollMoveDownSolidIcon.js +1 -0
- package/dist/icons/looks/ScrollMoveUpMiniIcon.d.ts +8 -0
- package/dist/icons/looks/ScrollMoveUpMiniIcon.js +1 -0
- package/dist/icons/looks/ScrollMoveUpSolidIcon.d.ts +8 -0
- package/dist/icons/looks/ScrollMoveUpSolidIcon.js +1 -0
- package/dist/icons/looks/ScrollParallaxMiniIcon.d.ts +8 -0
- package/dist/icons/looks/ScrollParallaxMiniIcon.js +1 -0
- package/dist/icons/looks/ScrollParallaxSolidIcon.d.ts +8 -0
- package/dist/icons/looks/ScrollParallaxSolidIcon.js +1 -0
- package/dist/icons/looks/ScrollZoomInMiniIcon.d.ts +8 -0
- package/dist/icons/looks/ScrollZoomInMiniIcon.js +1 -0
- package/dist/icons/looks/ScrollZoomInSolidIcon.d.ts +8 -0
- package/dist/icons/looks/ScrollZoomInSolidIcon.js +1 -0
- package/dist/icons/looks/ScrollZoomOutMiniIcon.d.ts +8 -0
- package/dist/icons/looks/ScrollZoomOutMiniIcon.js +1 -0
- package/dist/icons/looks/ScrollZoomOutSolidIcon.d.ts +8 -0
- package/dist/icons/looks/ScrollZoomOutSolidIcon.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 +665 -665
- package/dist/locales/zh-Hans.js +1 -1
- package/dist/map/index.js +2 -2
- package/dist/motion.css +130 -1
- package/dist/{names-Cj_F68_V.d.ts → names-BNKpHeTy.d.ts} +1 -1
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/shell/Accordion.js +1 -1
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/Avatar.js +1 -1
- package/dist/shell/Banner.js +1 -1
- package/dist/shell/Breadcrumbs.js +1 -1
- package/dist/shell/BudgetBar.js +1 -1
- package/dist/shell/Card.js +1 -1
- package/dist/shell/ColoredBadge.js +1 -1
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/ContainerFillChart.js +1 -1
- package/dist/shell/CountBadge.js +1 -1
- package/dist/shell/Dialog.js +1 -1
- package/dist/shell/Drawer.js +1 -1
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/EditableGrid.js +1 -1
- package/dist/shell/EmptyState.js +1 -1
- package/dist/shell/GlobalSearch.js +1 -1
- package/dist/shell/HelpCenter.js +1 -1
- package/dist/shell/IconRail.js +1 -1
- package/dist/shell/ImageLightbox.js +1 -1
- package/dist/shell/ItemCount.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/Markdown.d.ts +1 -1
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/MetricBar.js +1 -1
- package/dist/shell/MetricBarLegend.js +1 -1
- package/dist/shell/MilestoneTimeline.js +1 -1
- package/dist/shell/PageHeader.js +1 -1
- package/dist/shell/Popover.js +1 -1
- package/dist/shell/ProductionTimeline.js +1 -1
- package/dist/shell/ResizeHandle.js +1 -1
- package/dist/shell/Result.js +1 -1
- package/dist/shell/SearchableSelect.js +1 -1
- package/dist/shell/SettingReset.js +1 -1
- package/dist/shell/SettingRow.js +1 -1
- package/dist/shell/SidebarLayout.js +1 -1
- package/dist/shell/SidebarNav.js +1 -1
- package/dist/shell/SortableList.js +1 -1
- package/dist/shell/Statistic.js +1 -1
- package/dist/shell/Tabs.d.ts +9 -0
- package/dist/shell/Tabs.js +1 -1
- package/dist/shell/TimeAgo.js +1 -1
- package/dist/shell/TimelineTrack.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/shell/TransferProgress.js +1 -1
- package/dist/shell/Tree.js +1 -1
- package/dist/shell/discardGuard.js +1 -1
- package/dist/shell/focusTrap.d.ts +6 -1
- package/dist/shell/focusTrap.js +1 -1
- package/dist/shell/globalSearchModel.js +1 -1
- package/dist/shell/language.js +1 -1
- package/dist/shell/strings.d.ts +2 -0
- package/dist/shell/strings.js +1 -1
- package/dist/shell/toast.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/AuthScreen.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DashboardTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/ErrorBoundary.js +1 -1
- package/dist/templates/ErrorPage.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/templates/GalleryTemplate.js +1 -1
- package/dist/ui/index.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-RP4UPGG7.js +0 -29
- package/dist/Files-HBJGKKO2.js +0 -141
- package/dist/PdfViewer-BFP2WCMQ.js +0 -1
- package/dist/Sidebar-FU7TD5FQ.js +0 -44
- package/dist/chunk-3DVNXNTF.js +0 -1
- package/dist/chunk-4WWK6FHD.js +0 -1
- package/dist/chunk-5POLDDQW.js +0 -14
- package/dist/chunk-675RYIWR.js +0 -7
- package/dist/chunk-6VB4TBU6.js +0 -9
- package/dist/chunk-7ADTFFEM.js +0 -5
- package/dist/chunk-CA3OC4YY.js +0 -9
- package/dist/chunk-CDAJKLGL.js +0 -1
- package/dist/chunk-EAIHBASJ.js +0 -28
- package/dist/chunk-FQHY6DTF.js +0 -4
- package/dist/chunk-FYNPQAFI.js +0 -1
- package/dist/chunk-GFOJM52T.js +0 -15
- package/dist/chunk-HL3V67JZ.js +0 -2
- package/dist/chunk-HLZJLFVR.js +0 -12
- package/dist/chunk-HULQSIX5.js +0 -8
- package/dist/chunk-ISZOD5S6.js +0 -2
- package/dist/chunk-ITGFHWYG.js +0 -13
- package/dist/chunk-J7CHHY7O.js +0 -6
- package/dist/chunk-JB3JD2XK.js +0 -22
- package/dist/chunk-JZKACEXW.js +0 -9
- package/dist/chunk-KOPTKTHN.js +0 -7
- package/dist/chunk-LZKPV3XR.js +0 -3
- package/dist/chunk-MLPXTFDS.js +0 -1
- package/dist/chunk-QQ5XCRZM.js +0 -11
- package/dist/chunk-TJSJVC6P.js +0 -1
- package/dist/chunk-WGRS6QBT.js +0 -1
- package/dist/chunk-YRG6XJ6M.js +0 -8
- package/dist/chunk-YYW4VNWL.js +0 -1
- /package/dist/{chunk-NQJXHV4K.js → chunk-VT7QZPIO.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{formatMoney as e}from"./chunk-GEYM4WN3.js";import{EMPTY_VALUE as r}from"./chunk-36BRD5J3.js";import{TimeSeriesChart as t}from"./chunk-
|
|
1
|
+
import{formatMoney as e}from"./chunk-GEYM4WN3.js";import{EMPTY_VALUE as r}from"./chunk-36BRD5J3.js";import{TimeSeriesChart as t}from"./chunk-XQWHKXLS.js";import{ChartFrame as a}from"./chunk-RBS3AWE7.js";import{ColumnChart as l}from"./chunk-GC4N4UQM.js";import{TH_ONE_LINE as s}from"./chunk-G67CJAQ2.js";import{jsxs as o,jsx as i}from"react/jsx-runtime";function n({spec:n,height:c=200,width:m,animate:d=!0,className:h}){const u=function(r){if(r.currency)return t=>e(t,r.currency);const t=r.unit?` ${r.unit}`:"";return e=>`${e.toLocaleString("en-US",{maximumFractionDigits:2})}${t}`}(n),p=n.currency?r=>e(r,n.currency,{whole:!0}):u,b=n.series.map((e,r)=>({key:`s${r}`,label:e.name,data:e.values})),y=n.title??n.series.map(e=>e.name).join(", "),f=/* @__PURE__ */o("table",{className:"w-full border-collapse text-sm",children:[
|
|
2
2
|
/* @__PURE__ */i("thead",{children:/* @__PURE__ */o("tr",{children:[
|
|
3
3
|
/* @__PURE__ */i("td",{className:"border-b border-gray-200"}),n.series.map((e,r)=>/* @__PURE__ */i("th",{scope:"col",className:`${s} border-b border-gray-200 px-2 py-1 text-right font-semibold text-gray-700`,children:e.name},r))]})}),
|
|
4
4
|
/* @__PURE__ */i("tbody",{children:n.x.map((e,t)=>/* @__PURE__ */o("tr",{children:[
|
|
5
5
|
/* @__PURE__ */i("th",{scope:"row",className:`${s} border-t border-gray-100 px-2 py-1 text-left font-normal text-gray-700`,children:e}),n.series.map((e,a)=>{const l=e.values[t];/* @__PURE__ */
|
|
6
6
|
return i("td",{className:"border-t border-gray-100 px-2 py-1 text-right tabular-nums text-gray-700",children:null===l?r:u(l)},a)})]},t))})]});/* @__PURE__ */
|
|
7
|
-
return i(
|
|
7
|
+
return i(a,{title:y,legend:b.map(e=>({key:e.key,label:e.label,swatch:"line"===n.type?"bar":"square"})),table:f,className:h,children:"line"===n.type?/* @__PURE__ */i(t,{series:b,labels:n.x,height:c,width:m,animate:d,dots:"all",formatValue:p,formatTooltipValue:u}):/* @__PURE__ */i(l,{series:b,labels:n.x,stacked:n.stacked,height:c,width:m,animate:d,formatValue:p,formatTooltipValue:u})})}export{n as SpecChart};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Markdown as e}from"./chunk-
|
|
1
|
+
import{Markdown as e}from"./chunk-XU3YOWEG.js";import{PLACEHOLDER_INK as t}from"./chunk-AYZY3YNC.js";import{Icon as l}from"./chunk-JOAKKXTL.js";import{LoadingSpinner as r}from"./chunk-R2VKEMZH.js";import{useShellStrings as s}from"./chunk-JSHMIMAJ.js";import{useState as a,useMemo as n}from"react";import{jsxs as i,jsx as o,Fragment as c}from"react/jsx-runtime";var d=({open:e})=>/* @__PURE__ */o(l,{name:"chevron-right",look:"mini",className:"h-3.5 w-3.5 shrink-0 transition-transform "+(e?"rotate-90":""),"aria-hidden":"true"});function h({docs:h,loading:m=!1,categoryOrder:p,canEdit:u=!1,onNew:g,onEdit:x,renderBody:f,emptyMessage:b}){const y=s(),[v,N]=a(""),[w,k]=a(null),[C,j]=a({}),M=v.trim().toLowerCase(),A=n(()=>{const e=/* @__PURE__ */new Map;for(const t of h){let l=e.get(t.category);l||(l={key:t.category,label:t.category_label||t.category,docs:[]},e.set(t.category,l)),l.docs.push(t)}if(!p?.length)return[...e.values()];const t=new Map(p.map((e,t)=>[e,t]));return[...e.values()].sort((e,l)=>(t.get(e.key)??1/0)-(t.get(l.key)??1/0))},[h,p]),L=e=>!M||e.title.toLowerCase().includes(M)||e.body.toLowerCase().includes(M)||e.category_label.toLowerCase().includes(M),_=n(()=>A.map(e=>({...e,docs:e.docs.filter(L)})).filter(e=>e.docs.length>0),[A,M]),E=n(()=>_.flatMap(e=>e.docs),[_]),Y=(w?E.find(e=>e.slug===w):void 0)??E[0]??null,J=e=>!!M||(C[e]??e===Y?.category);/* @__PURE__ */
|
|
2
2
|
return i("div",{className:"flex h-full gap-4 px-4 py-3 min-h-0",children:[
|
|
3
3
|
/* @__PURE__ */i("aside",{className:"w-64 shrink-0 flex flex-col bg-white rounded-lg shadow overflow-hidden",children:[
|
|
4
4
|
/* @__PURE__ */i("div",{className:"flex items-center justify-between gap-2 px-3 py-2 border-b border-gray-200 bg-gray-50 shrink-0",children:[
|
|
@@ -6,16 +6,16 @@ return i("div",{className:"flex h-full gap-4 px-4 py-3 min-h-0",children:[
|
|
|
6
6
|
/* @__PURE__ */o("div",{className:"px-3 py-2 border-b border-line-subtle shrink-0",children:/* @__PURE__ */i("div",{className:"relative",children:[
|
|
7
7
|
/* @__PURE__ */o(l,{name:"search",look:"mini",className:`pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 ${t}`,"aria-hidden":"true"}),
|
|
8
8
|
/* @__PURE__ */o("input",{type:"text",value:v,onChange:e=>N(e.target.value),placeholder:y.help.searchPlaceholder,className:"w-full rounded-md border border-line-strong bg-surface h-8 pl-8 pr-2 text-sm shadow-sm focus:border-blue-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-accent)]"})]})}),
|
|
9
|
-
/* @__PURE__ */o("div",{className:"flex-1 overflow-y-auto py-1",children:m?/* @__PURE__ */o(r,{size:"sm",padding:"py-6",label:y.help.loading}):0===_.length?/* @__PURE__ */o("p",{className:"px-3 py-6 text-center text-xs text-gray-500",children:
|
|
9
|
+
/* @__PURE__ */o("div",{className:"flex-1 overflow-y-auto py-1",children:m?/* @__PURE__ */o(r,{size:"sm",padding:"py-6",label:y.help.loading}):0===_.length?/* @__PURE__ */o("p",{className:"px-3 py-6 text-center text-xs text-gray-500",children:M?y.help.noResults:b??y.help.empty}):_.map(e=>{const t=J(e.key);/* @__PURE__ */
|
|
10
10
|
return i("div",{className:"py-0.5",children:[
|
|
11
|
-
/* @__PURE__ */i("button",{type:"button",onClick:()=>{return t=e.key,j(e=>({...e,[t]:!
|
|
11
|
+
/* @__PURE__ */i("button",{type:"button",onClick:()=>{return t=e.key,j(e=>({...e,[t]:!J(t)}));var t},className:"w-full flex items-center gap-2 h-8 px-3 text-left text-3xs font-semibold uppercase tracking-wide text-ink-faintest hover:text-gray-600",children:[
|
|
12
12
|
/* @__PURE__ */o(d,{open:t}),
|
|
13
|
-
/* @__PURE__ */o("span",{className:"truncate",children:e.label})]}),t&&e.docs.map(e=>{const t=
|
|
13
|
+
/* @__PURE__ */o("span",{className:"truncate",children:e.label})]}),t&&e.docs.map(e=>{const t=Y?.slug===e.slug;/* @__PURE__ */
|
|
14
14
|
return i("button",{type:"button",onClick:()=>k(e.slug),className:"w-full text-left pl-8 pr-3 min-h-(--row-height-menu) py-2 text-sm flex items-center gap-2 transition-colors "+(t?"bg-blue-50 text-blue-700 font-medium":"text-gray-700 hover:bg-gray-50"),children:[
|
|
15
15
|
/* @__PURE__ */o("span",{className:"truncate",children:e.title}),!1===e.is_published&&/* @__PURE__ */o("span",{className:"ml-auto shrink-0 text-2xs text-amber-600",children:y.help.draft})]},e.slug)})]},e.key)})})]}),
|
|
16
|
-
/* @__PURE__ */o("main",{className:"flex-1 min-w-0 bg-white rounded-lg shadow overflow-hidden flex flex-col",children:
|
|
16
|
+
/* @__PURE__ */o("main",{className:"flex-1 min-w-0 bg-white rounded-lg shadow overflow-hidden flex flex-col",children:Y?/* @__PURE__ */i(c,{children:[
|
|
17
17
|
/* @__PURE__ */i("div",{className:"flex items-start justify-between gap-4 px-5 py-3 border-b border-gray-200 bg-gray-50 shrink-0",children:[
|
|
18
18
|
/* @__PURE__ */i("div",{className:"min-w-0",children:[
|
|
19
|
-
/* @__PURE__ */o("h1",{className:"text-lg font-semibold text-gray-900 truncate",children:
|
|
20
|
-
/* @__PURE__ */i("p",{className:"text-xs text-gray-500 mt-0.5",children:[
|
|
21
|
-
/* @__PURE__ */o("div",{className:"flex-1 overflow-auto px-5 py-4",children:f?f(
|
|
19
|
+
/* @__PURE__ */o("h1",{className:"text-lg font-semibold text-gray-900 truncate",children:Y.title}),
|
|
20
|
+
/* @__PURE__ */i("p",{className:"text-xs text-gray-500 mt-0.5",children:[Y.category_label,!1===Y.is_published&&/* @__PURE__ */i("span",{className:"ml-2 text-amber-600",children:["· ",y.help.draft]})]})]}),u&&x&&/* @__PURE__ */o("button",{type:"button",onClick:()=>x(Y),className:"shrink-0 text-sm text-blue-600 hover:underline",children:y.help.edit})]}),
|
|
21
|
+
/* @__PURE__ */o("div",{className:"flex-1 overflow-auto px-5 py-4",children:f?f(Y):Y.body?/* @__PURE__ */o(e,{children:Y.body}):/* @__PURE__ */o("p",{className:"text-sm text-gray-500 italic",children:y.help.noBody})})]}):/* @__PURE__ */o("div",{className:"flex-1 flex items-center justify-center px-6 text-center",children:m?/* @__PURE__ */o(r,{size:"sm",padding:"",label:y.help.loading}):/* @__PURE__ */o("p",{className:"text-sm text-ink-faint",children:y.help.pickArticle})})})]})}export{h as HelpCenter};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as c}from"react/jsx-runtime";function e({size:e=18,...r}){/* @__PURE__ */
|
|
2
|
+
return c("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",...r,children:/* @__PURE__ */c("path",{fillRule:"evenodd",d:"M4.5,4.5h7.5c0.56745,0.03274 1.22503,0.29305 1.59099,0.65901c0.36596,0.36596 0.62627,1.02354 0.65901,1.59099v7.5c-0.03274,0.56745 -0.29305,1.22503 -0.65901,1.59099c-0.36596,0.36596 -1.02354,0.62627 -1.59099,0.65901h-7.5c-0.56745,-0.03274 -1.22503,-0.29305 -1.59099,-0.65901c-0.36596,-0.36596 -0.62627,-1.02354 -0.65901,-1.59099v-7.5c0.03274,-0.56745 0.29305,-1.22503 0.65901,-1.59099c0.36596,-0.36596 1.02354,-0.62627 1.59099,-0.65901zM19.5,20.25c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-13.18934l-0.96967,0.96967c-0.29289,0.29289 -0.76777,0.29289 -1.06066,0c-0.29289,-0.29289 -0.29289,-0.76777 0,-1.06066l2.25,-2.25c0.07191,-0.07191 0.15478,-0.12616 0.24324,-0.16276c0.08843,-0.03667 0.1854,-0.05691 0.28709,-0.05691c0.10169,0 0.19866,0.02024 0.28709,0.05691c0.08846,0.0366 0.17134,0.09085 0.24324,0.16276l2.25,2.25c0.29289,0.29289 0.29289,0.76777 0,1.06066c-0.29289,0.29289 -0.76777,0.29289 -1.06066,0l-0.96967,-0.96967v13.18934c0,0.41421 -0.33579,0.75 -0.75,0.75z"})})}export{e as ScrollMoveUpSolidIcon};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{DragBand as e,tooltipBesideBand as t}from"./chunk-2DYVVHZA.js";import{usePlotWidth as r}from"./chunk-MAFUXCPZ.js";import{niceAxis as i,niceMax as n,linearScale as o,axisGutter as l,bandScale as a}from"./chunk-2JWPNR2U.js";import{CHART_INK as h}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as s}from"./chunk-TWVUQUUD.js";import{useShellStrings as c,useShellLocale as m}from"./chunk-JSHMIMAJ.js";import{formatPlain as d}from"./chunk-C3QOHMR6.js";import{useRef as u,useState as f,useId as g,useEffect as p}from"react";import{jsx as x,jsxs as y}from"react/jsx-runtime";function v({labels:v,values:b,height:M=220,width:k,bandPadding:w=.24,min:A,max:N,yTickCount:$=4,formatValue:j,yAxisLabel:P,xTickAnchor:D="center",children:E,overlay:R,tooltip:U,onSelect:z,zoom:S,ariaLabel:V,className:C,emptyLabel:I}){const L=c().charts,F=m(),T=j??(e=>d(e,F)),W=I??L.noData,H=u(null),J=r(H),Z=k??J,[B,Q]=f(null),K=g();if(p(()=>{if(null!==B)return s(e=>"Escape"===e.key&&(Q(null),!0))},[B]),0===v.length||!b.some(Number.isFinite))/* @__PURE__ */
|
|
2
|
+
return x("div",{className:C,ref:H,children:/* @__PURE__ */x("p",{className:"flex items-center justify-center text-sm text-gray-500",style:{height:M},children:W})});const O=b.filter(Number.isFinite),X=O.every(Number.isInteger),Y=void 0===A&&void 0===N?i(Math.min(0,...O),Math.max(0,...O),{intervals:$+1,integer:X}):null,q=void 0!==A&&void 0===N?i(A,Math.max(A,...O),{intervals:$+1,integer:X,zero:!1}):null,G=Y?Y.lo:A??Math.min(0,...O),_=Y?Y.hi:q?q.hi:N??n(Math.max(...O,0)),ee=Y?Y.ticks:q?[G,...q.ticks.filter(e=>e>G)]:o([G,_],{from:0,to:1}).ticks($+1),te={top:12,right:16,bottom:26,left:l(ee.map(T),48)+(P?10:0)},re=te.left,ie=Math.max(re+1,Z-te.right),ne=te.top,oe=M-te.bottom,le=o([G,_],{from:oe,to:ne}),ae=a(v.length,{from:re,to:ie},w),he=(ie-re)/Math.max(1,v.length),se=he>=48,ce=se?1:Math.max(1,Math.ceil(v.length/Math.max(1,Math.floor(Z/84)))),me=Math.max(2,Math.floor((he-6)/6.6)),de=e=>se&&e.length>me?`${e.slice(0,me-1).trimEnd()}…`:e;/* @__PURE__ */
|
|
3
|
+
return y("div",{className:`relative ${C??""}`,ref:H,children:[
|
|
4
|
+
/* @__PURE__ */y("svg",{width:"100%",height:M,viewBox:`0 0 ${Z} ${M}`,role:"img","aria-label":V,tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>Q(null),onBlur:()=>Q(null),onKeyDown:e=>{if(z&&null!==B&&("Enter"===e.key||" "===e.key))return e.preventDefault(),void z(B);if("ArrowRight"!==e.key&&"ArrowLeft"!==e.key)return;e.preventDefault();const t="ArrowRight"===e.key?1:-1;Q(e=>Math.min(v.length-1,Math.max(0,(e??0)+t)))},style:S?{userSelect:"none",touchAction:"pan-y"}:void 0,children:[
|
|
5
|
+
/* @__PURE__ */x("defs",{children:/* @__PURE__ */x("clipPath",{id:K,children:/* @__PURE__ */x("rect",{x:re,y:ne,width:ie-re,height:oe-ne})})}),ee.map(e=>/* @__PURE__ */x("line",{x1:re,y1:le(e),x2:ie,y2:le(e),stroke:h.grid,strokeWidth:1,shapeRendering:"crispEdges"},`g${e}`)),
|
|
6
|
+
/* @__PURE__ */x("line",{x1:re,y1:le(Math.max(G,0)),x2:ie,y2:le(Math.max(G,0)),stroke:h.axis,strokeWidth:1,shapeRendering:"crispEdges"}),ee.map(e=>/* @__PURE__ */x("text",{x:re-8,y:le(e)+4,textAnchor:"end",fontSize:11,fill:h.label,style:{fontVariantNumeric:"tabular-nums"},children:T(e)},`t${e}`)),P&&/* @__PURE__ */x("text",{x:14,y:(ne+oe)/2,transform:`rotate(-90 14 ${(ne+oe)/2})`,textAnchor:"middle",fontSize:11,fill:h.label,children:P}),
|
|
7
|
+
/* @__PURE__ */x("g",{clipPath:`url(#${K})`,children:E({x:ae,y:le,left:re,right:ie,top:ne,bottom:oe,width:Z,height:M,clipId:K,active:B})}),R?.({x:ae,y:le,left:re,right:ie,top:ne,bottom:oe,width:Z,height:M,clipId:K,active:B}),v.map((e,t)=>t%ce===0?/* @__PURE__ */x("text",{x:"start"===D?ae(t):ae.center(t),y:M-8,textAnchor:"middle",fontSize:11,fill:h.label,style:{fontVariantNumeric:"tabular-nums"},children:de(e)},`x${t}`):null),S?.drag&&/* @__PURE__ */x(e,{x0:ae.center(S.drag[0])-(ie-re)/v.length/2,x1:ae.center(S.drag[1])+(ie-re)/v.length/2,top:ne,bottom:oe}),v.map((e,t)=>/* @__PURE__ */x("rect",{x:ae.center(t)-(ie-re)/v.length/2,y:ne,width:(ie-re)/v.length,height:oe-ne,fill:"transparent",onMouseEnter:()=>Q(t),onPointerDown:S?()=>S.press(t):void 0,onPointerEnter:S?()=>S.over(t):void 0,onPointerUp:S?.release,onClick:z?()=>z(t):void 0,style:z?{cursor:"pointer"}:void 0},`h${t}`))]}),U&&null!==B&&
|
|
8
|
+
/* @__PURE__ */x("div",{className:"pointer-events-none absolute top-2 z-10",style:t(ae.center(B),ae.bandwidth,Z),children:U(B)})]})}export{v as CartesianPlot};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import{useHighlight as e}from"./chunk-CNYAHYE6.js";import{usePlotWidth as t}from"./chunk-MAFUXCPZ.js";import{ChartTooltip as l}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as a,CHART_INK as n,STATUS_VARS as r}from"./chunk-TZFACUMR.js";import{useShellStrings as o,useShellLocale as i}from"./chunk-
|
|
2
|
-
return f("div",{className:`relative ${k??""}`,ref:
|
|
3
|
-
/* @__PURE__ */f("svg",{width:"100%",height:
|
|
4
|
-
/* @__PURE__ */d("title",{id:z,children:N.funnel(x.length,L(x[0].value),L(x[x.length-1].value))}),x.map((e,t)=>{const l=t*
|
|
5
|
-
return f("g",{opacity:K(t,e.key)?.45:1,onMouseEnter:()=>
|
|
1
|
+
import{useHighlight as e}from"./chunk-CNYAHYE6.js";import{usePlotWidth as t}from"./chunk-MAFUXCPZ.js";import{ChartTooltip as l}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as a,CHART_INK as n,STATUS_VARS as r}from"./chunk-TZFACUMR.js";import{useShellStrings as o,useShellLocale as i}from"./chunk-JSHMIMAJ.js";import{formatPercent as u,formatPlain as h}from"./chunk-C3QOHMR6.js";import{useId as c,useState as m,useRef as s}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";function x({stages:x,shape:v="funnel",height:p,width:$,gap:g=4,minBandWidth:M=0,formatValue:y,color:b,className:k,emptyLabel:A}){const N=o().charts,S=i(),L=y??(e=>h(e,S)),j=A??N.noStages,z=c(),[V,F]=m(null),{highlighted:W}=e(),w=s(null),C=t(w,560),H=$??C;if(0===x.length)/* @__PURE__ */return d("p",{className:`text-sm text-gray-500 ${k??""}`,children:j});const Z=b??a(0),E=p??54*x.length,B=Math.max(...x.map(e=>e.value),1),I="bars"===v,J=I?Math.round(Math.min(132,Math.max(80,.24*H))):Math.round(Math.min(168,Math.max(104,.38*H))),Q=e=>{const t=x[e-1]?.value;return null!=t&&t>0?100*(1-x[e].value/t):null},R=e=>{const t=Q(e);return{count:L(x[e].value),drop:null!=t?`−${u(t,1,S)}`:""}},U=I?Math.ceil(Math.max(...x.map((e,t)=>{const{count:l,drop:a}=R(t);return.62*(l.length+(a?a.length+1:0))*12}))+16):0,Y=H-J-U,D=Math.max(I?2:0,Math.min(M,Y)),O=e=>Math.max(D,Y*Math.max(0,e/B)),P=e=>O(e)/2,T=J+Y/2,X=e=>46+e/Math.max(1,x.length-1)*54,q=e=>`color-mix(in oklab, ${Z} ${X(e).toFixed(0)}%, ${n.surface})`,G=e=>X(e)>=55?n.surface:n.label,K=(e,t)=>null!==V?V!==e:null!==W&&W!==t,_=null!==V?x[V]:void 0;/* @__PURE__ */
|
|
2
|
+
return f("div",{className:`relative ${k??""}`,ref:w,children:[
|
|
3
|
+
/* @__PURE__ */f("svg",{width:"100%",height:E,viewBox:`0 0 ${H} ${E}`,role:"img","aria-labelledby":z,onMouseLeave:()=>F(null),children:[
|
|
4
|
+
/* @__PURE__ */d("title",{id:z,children:N.funnel(x.length,L(x[0].value),L(x[x.length-1].value))}),x.map((e,t)=>{const l=t*E/x.length+g/2,a=(t+1)*E/x.length-g/2,r=(l+a)/2,o=u(e.value/(x[0].value||1)*100,0,S),i=.62*o.length*12+12;if(I){const u=J,h=u+O(e.value),{count:c,drop:m}=R(t);/* @__PURE__ */
|
|
5
|
+
return f("g",{opacity:K(t,e.key)?.45:1,onMouseEnter:()=>F(t),children:[
|
|
6
6
|
/* @__PURE__ */d("path",{d:`M${u},${l} L${h},${l} L${h},${a} L${u},${a} Z`,fill:q(t)}),
|
|
7
|
-
/* @__PURE__ */d("text",{x:
|
|
7
|
+
/* @__PURE__ */d("text",{x:J-12,y:r+4,textAnchor:"end",fontSize:12,fill:n.label,children:e.label}),h-u>=i&&/* @__PURE__ */d("text",{x:u+8,y:r+4,textAnchor:"start",fontSize:12,fontWeight:600,fill:G(t),style:{fontVariantNumeric:"tabular-nums"},children:o}),
|
|
8
8
|
/* @__PURE__ */f("text",{"data-funnel-value":"true",x:h+8,y:r+4,textAnchor:"start",fontSize:12,fill:n.label,style:{fontVariantNumeric:"tabular-nums"},children:[
|
|
9
|
-
/* @__PURE__ */d("tspan",{fontWeight:600,children:c}),m&&/* @__PURE__ */d("tspan",{fill:n.muted,children:` ${m}`})]})]},e.key)}const h=
|
|
10
|
-
return f("g",{opacity:K(t,e.key)?.45:1,onMouseEnter:()=>
|
|
11
|
-
/* @__PURE__ */d("path",{d:`M${
|
|
12
|
-
/* @__PURE__ */d("text",{x:
|
|
13
|
-
/* @__PURE__ */f("text",{x:
|
|
14
|
-
/* @__PURE__ */d("text",{x:s?
|
|
9
|
+
/* @__PURE__ */d("tspan",{fontWeight:600,children:c}),m&&/* @__PURE__ */d("tspan",{fill:n.muted,children:` ${m}`})]})]},e.key)}const h=P(e.value),c="cone"===v?P(x[t+1]?.value??e.value):h,m=Q(t),s=2*Math.min(h,c)>=i;/* @__PURE__ */
|
|
10
|
+
return f("g",{opacity:K(t,e.key)?.45:1,onMouseEnter:()=>F(t),children:[
|
|
11
|
+
/* @__PURE__ */d("path",{d:`M${T-h},${l} L${T+h},${l} L${T+c},${a} L${T-c},${a} Z`,fill:q(t)}),
|
|
12
|
+
/* @__PURE__ */d("text",{x:J-14,y:r-2,textAnchor:"end",fontSize:12,fill:n.label,children:e.label}),
|
|
13
|
+
/* @__PURE__ */f("text",{x:J-14,y:r+14,textAnchor:"end",fontSize:11,fill:n.muted,style:{fontVariantNumeric:"tabular-nums"},children:[L(e.value),null!=m?` · −${u(m,1,S)}`:""]}),
|
|
14
|
+
/* @__PURE__ */d("text",{x:s?T:T+Math.max(h,c)+6,y:r+4,textAnchor:s?"middle":"start",fontSize:12,fontWeight:600,fill:s?G(t):n.label,style:{fontVariantNumeric:"tabular-nums"},children:o})]},e.key)})]}),_&&null!==V&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(l,{title:_.label,rows:[{key:"value",label:N.count,color:q(V),value:L(_.value)},{key:"share",label:N.ofFirstStage,color:n.muted,value:u(_.value/(x[0].value||1)*100,0,S)},...V>0&&x[V-1].value>0?[{key:"drop",label:N.droppedHere,color:r.critical,value:`−${u(100*(1-_.value/x[V-1].value),1,S)}`}]:[]]})})]})}export{x as FunnelChart};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as c}from"react/jsx-runtime";function e({size:e=18,...r}){/* @__PURE__ */
|
|
2
|
+
return c("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",...r,children:/* @__PURE__ */c("path",{fillRule:"evenodd",d:"M6.75,8.25v3.75c-0.03274,0.46808 0.12668,0.748 0.43934,1.06066c0.31266,0.31266 0.59258,0.47208 1.06066,0.43934h7.5c0.46808,0.03274 0.748,-0.12668 1.06066,-0.43934c0.31266,-0.31266 0.47208,-0.59258 0.43934,-1.06066v-3.75c0,-0.41421 0.33579,-0.75 0.75,-0.75c0.41421,0 0.75,0.33579 0.75,0.75v3.75c-0.03274,0.77456 -0.377,1.61964 -0.87868,2.12132c-0.50168,0.50168 -1.34676,0.84594 -2.12132,0.87868h-7.5c-0.77456,-0.03274 -1.61964,-0.377 -2.12132,-0.87868c-0.50168,-0.50168 -0.84594,-1.34676 -0.87868,-2.12132v-3.75c0,-0.41421 0.33579,-0.75 0.75,-0.75c0.41421,0 0.75,0.33579 0.75,0.75zM6,1.5c0.41421,0 0.75,0.33579 0.75,0.75v2.25c0,0.41421 -0.33579,0.75 -0.75,0.75c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-2.25c0,-0.41421 0.33579,-0.75 0.75,-0.75zM18,1.5c0.41421,0 0.75,0.33579 0.75,0.75v2.25c0,0.41421 -0.33579,0.75 -0.75,0.75c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-2.25c0,-0.41421 0.33579,-0.75 0.75,-0.75zM8.25,2.25c0,-0.41421 0.33579,-0.75 0.75,-0.75h2.25c0.41421,0 0.75,0.33579 0.75,0.75c0,0.41421 -0.33579,0.75 -0.75,0.75h-2.25c-0.41421,0 -0.75,-0.33579 -0.75,-0.75zM13.5,2.25c0,-0.41421 0.33579,-0.75 0.75,-0.75h1.5c0.41421,0 0.75,0.33579 0.75,0.75c0,0.41421 -0.33579,0.75 -0.75,0.75h-1.5c-0.41421,0 -0.75,-0.33579 -0.75,-0.75zM12,22.5c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-2.68934l-0.96967,0.96967c-0.29289,0.29289 -0.76777,0.29289 -1.06066,0c-0.29289,-0.29289 -0.29289,-0.76777 0,-1.06066l2.25,-2.25c0.07191,-0.07191 0.15478,-0.12616 0.24324,-0.16276c0.08843,-0.03667 0.1854,-0.05691 0.28709,-0.05691c0.10169,0 0.19866,0.02024 0.28709,0.05691c0.08846,0.0366 0.17134,0.09085 0.24324,0.16276l2.25,2.25c0.29289,0.29289 0.29289,0.76777 0,1.06066c-0.29289,0.29289 -0.76777,0.29289 -1.06066,0l-0.96967,-0.96967v2.68934c0,0.41421 -0.33579,0.75 -0.75,0.75z"})})}export{e as EntranceRevealSolidIcon};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{GROUP_COLORS as e}from"./chunk-JMGDGNM7.js";import{SpinnerRing as r}from"./chunk-R2VKEMZH.js";import{Tooltip as n}from"./chunk-SOZCWT6I.js";import{useShellStrings as l}from"./chunk-
|
|
1
|
+
import{GROUP_COLORS as e}from"./chunk-JMGDGNM7.js";import{SpinnerRing as r}from"./chunk-R2VKEMZH.js";import{Tooltip as n}from"./chunk-SOZCWT6I.js";import{useShellStrings as l}from"./chunk-JSHMIMAJ.js";import{jsx as t,jsxs as i,Fragment as a}from"react/jsx-runtime";var s="inline-flex items-center gap-1 whitespace-nowrap rounded-md border border-current/20 py-0.5 pl-2 pr-1 text-2xs font-medium";function o({label:e,glyph:r,onClick:l}){/* @__PURE__ */
|
|
2
2
|
return t(n,{content:e,describe:!1,children:/* @__PURE__ */t("button",{type:"button",onClick:l,"aria-label":e,className:"flex h-4 w-4 items-center justify-center rounded-full leading-none hover:bg-current/10 rosh-focus-ring focus-visible:ring-2",children:/* @__PURE__ */t("span",{"aria-hidden":"true",children:r})})})}function c({state:n,label:c,verb:u,subject:m,pct:p,onCancel:d,onRetry:h,onDismiss:f,className:b=""}){const g=l().transfer;if("idle"===n)return null==c?null:/* @__PURE__ */t("span",{className:`${s} ${e.neutral} pr-2 ${b}`.trim(),children:c});if("error"===n)/* @__PURE__ */
|
|
3
3
|
return i("span",{role:"status",className:`${s} ${e.danger} ${b}`.trim(),children:[
|
|
4
4
|
/* @__PURE__ */t("span",{children:g.error}),h&&/* @__PURE__ */t(o,{label:g.retry,glyph:"↻",onClick:h}),f&&/* @__PURE__ */t(o,{label:g.dismiss,glyph:"×",onClick:f})]});const y=u??g.uploading,$=null==p||Number.isNaN(p)?null:Math.max(0,Math.min(100,Math.round(p))),k="string"==typeof y?g.cancelVerb(y.toLowerCase()):g.cancel,N=e=>[e,m,null==$?"":`${$}%`].filter(Boolean).join(" ");/* @__PURE__ */
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{useClickOutside as e}from"./chunk-SI26KESU.js";import{useColumnConfig as t}from"./chunk-UKBXQXDZ.js";import{useShellAuth as r}from"./chunk-2QY5BJLA.js";import{useIsMobile as o}from"./chunk-UGTRSRIW.js";import{Icon as l}from"./chunk-JOAKKXTL.js";import{TH_ONE_LINE as n}from"./chunk-G67CJAQ2.js";import{shellHttp as a}from"./chunk-STKJA4PV.js";import{glassStyle as s}from"./chunk-5FYDNH4Y.js";import{useShellStrings as i}from"./chunk-
|
|
1
|
+
import{useClickOutside as e}from"./chunk-SI26KESU.js";import{useColumnConfig as t}from"./chunk-UKBXQXDZ.js";import{useShellAuth as r}from"./chunk-2QY5BJLA.js";import{useIsMobile as o}from"./chunk-UGTRSRIW.js";import{Icon as l}from"./chunk-JOAKKXTL.js";import{TH_ONE_LINE as n}from"./chunk-G67CJAQ2.js";import{shellHttp as a}from"./chunk-STKJA4PV.js";import{glassStyle as s}from"./chunk-5FYDNH4Y.js";import{useShellStrings as i}from"./chunk-JSHMIMAJ.js";import{useState as c,useMemo as d,useRef as m,useCallback as h}from"react";import{jsxs as u,jsx as p}from"react/jsx-runtime";function f({tableId:f,columns:g,sort:x,onSort:y,footer:b,afterBody:v,saveDefaultPerms:k=["change_numberingconfig"],children:N}){const w=o(),[D,j]=c(!1),S=d(()=>w&&!D?g.filter(e=>"_select"!==e.key):g,[g,w,D]),{orderedColumns:C,allColumns:_,onResizeStart:z,onDragStart:A,onDragOver:J,onDrop:$,onDragEnd:I,toggleColumn:K,resetColumns:L,draggedIdx:T,dropGap:P}=t(f,S),{hasAnyPerm:R}=r(),B=i().columns,[E,G]=c(!1),[M,O]=c(!1),[Q,U]=c(!1),W=m(null),X=k.length>0&&R(k);e(W,h(()=>{E&&G(!1)},[E]));const Y=C.reduce((e,t)=>e+t.width,0),F=C.map(e=>`${e.width}px`),H={tableLayout:"fixed",width:Y,minWidth:"100%"},V=m(null),Z=h(e=>{const t=V.current;t&&(t.scrollLeft=e.currentTarget.scrollLeft)},[]),q=d(()=>g.some(e=>"_select"===e.key),[g]);/* @__PURE__ */
|
|
2
2
|
return u("div",{className:"flex flex-col flex-1 min-h-0 "+(w?"-mx-4":""),children:[
|
|
3
|
-
/* @__PURE__ */p("div",{ref:
|
|
4
|
-
/* @__PURE__ */p("colgroup",{children:
|
|
5
|
-
/* @__PURE__ */p("thead",{className:"bg-gray-50",children:/* @__PURE__ */p("tr",{children:
|
|
6
|
-
return u("th",{className:`${n} px-4 py-3 text-left text-xs font-medium text-ink-faint uppercase select-none relative ${
|
|
7
|
-
/* @__PURE__ */u("span",{className:`${a?"":"truncate pr-3"} block ${o&&y?"cursor-pointer hover:text-gray-700":""}`,onClick:o&&y?e=>{e.stopPropagation(),y(o)}:void 0,children:[e.headerNode??e.label,l&&/* @__PURE__ */p("span",{className:"ml-1",children:"asc"===x.direction?"▲":"▼"})]}),!a&&/* @__PURE__ */p("div",{className:"absolute right-0 top-0 bottom-0 w-4 cursor-col-resize flex items-center justify-center z-10",onMouseDown:e=>z(t,e),style:{marginRight:-8},children:/* @__PURE__ */p("div",{className:"w-0.5 h-full bg-gray-200 hover:bg-blue-500 transition-colors"})}),
|
|
3
|
+
/* @__PURE__ */p("div",{ref:V,className:"shrink-0 overflow-x-hidden",children:/* @__PURE__ */u("table",{className:"divide-y divide-gray-200",style:H,children:[
|
|
4
|
+
/* @__PURE__ */p("colgroup",{children:C.map((e,t)=>/* @__PURE__ */p("col",{style:{width:F[t]}},e.key))}),
|
|
5
|
+
/* @__PURE__ */p("thead",{className:"bg-gray-50",children:/* @__PURE__ */p("tr",{children:C.map((e,t)=>{const r=g.find(t=>t.key===e.key),o=r?.sortField??("_select"!==e.key?e.key:void 0),l=x&&o&&x.field===o,a="_select"===e.key;/* @__PURE__ */
|
|
6
|
+
return u("th",{className:`${n} px-4 py-3 text-left text-xs font-medium text-ink-faint uppercase select-none relative ${T===t?"bg-accent-tint":""}`,draggable:!a,onDragStart:a?void 0:()=>A(t),onDragOver:a?void 0:e=>J(t,e),onDrop:a?void 0:e=>$(t,e),onDragEnd:a?void 0:I,style:a?void 0:{cursor:"grab"},children:[
|
|
7
|
+
/* @__PURE__ */u("span",{className:`${a?"":"truncate pr-3"} block ${o&&y?"cursor-pointer hover:text-gray-700":""}`,onClick:o&&y?e=>{e.stopPropagation(),y(o)}:void 0,children:[e.headerNode??e.label,l&&/* @__PURE__ */p("span",{className:"ml-1",children:"asc"===x.direction?"▲":"▼"})]}),!a&&/* @__PURE__ */p("div",{className:"absolute right-0 top-0 bottom-0 w-4 cursor-col-resize flex items-center justify-center z-10",onMouseDown:e=>z(t,e),style:{marginRight:-8},children:/* @__PURE__ */p("div",{className:"w-0.5 h-full bg-gray-200 hover:bg-blue-500 transition-colors"})}),P===t&&/* @__PURE__ */p("div",{className:"absolute left-0 top-0 bottom-0 w-0.5 bg-blue-500 z-20 pointer-events-none"}),t===C.length-1&&P===C.length&&/* @__PURE__ */p("div",{className:"absolute right-0 top-0 bottom-0 w-0.5 bg-blue-500 z-20 pointer-events-none"})]},e.key)})})})]})}),
|
|
8
8
|
/* @__PURE__ */u("div",{className:"flex-1 overflow-y-auto overflow-x-auto min-h-0",onScroll:Z,children:[
|
|
9
9
|
/* @__PURE__ */u("table",{className:"divide-y divide-gray-200",style:H,children:[
|
|
10
|
-
/* @__PURE__ */p("colgroup",{children:
|
|
10
|
+
/* @__PURE__ */p("colgroup",{children:C.map((e,t)=>/* @__PURE__ */p("col",{style:{width:F[t]}},e.key))}),N(C)]}),v]}),void 0!==b&&/* @__PURE__ */u("div",{className:"border-t border-gray-200 px-4 py-2 text-sm text-gray-500 shrink-0 flex items-center justify-between",children:[
|
|
11
11
|
/* @__PURE__ */p("span",{children:b}),
|
|
12
|
-
/* @__PURE__ */u("div",{className:"flex items-center gap-3 relative",ref:
|
|
12
|
+
/* @__PURE__ */u("div",{className:"flex items-center gap-3 relative",ref:W,children:[w&&q&&/* @__PURE__ */p("button",{onClick:()=>j(e=>!e),className:"text-2xs px-2 py-0.5 rounded "+(D?"bg-accent-fill text-on-accent":"text-ink-faint hover:text-ink border border-line-strong"),title:D?B.hideSelection:B.showSelection,children:D?B.selectDone:B.select}),
|
|
13
13
|
/* @__PURE__ */p("button",{onClick:L,className:"text-2xs text-ink-faintest hover:text-gray-600",children:B.reset}),
|
|
14
14
|
/* @__PURE__ */p("button",{onClick:()=>G(!E),className:"text-gray-400 hover:text-gray-600",title:B.choose,children:/* @__PURE__ */p(l,{name:"adjust",className:"w-4 h-4",strokeWidth:"1.5"})}),E&&/* @__PURE__ */u("div",{className:"absolute bottom-full right-0 mb-1 w-52 rounded-(--radius-popup) z-(--z-popup) py-1 max-h-80 overflow-y-auto",style:s(),children:[
|
|
15
15
|
/* @__PURE__ */p("p",{className:"px-3 py-2 text-3xs font-semibold text-ink-faintest uppercase",children:B.heading}),_.filter(e=>"_select"!==e.key).map(e=>/* @__PURE__ */u("label",{className:"flex items-center gap-2 px-3 py-1 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer",children:[
|
|
16
|
-
/* @__PURE__ */p("input",{type:"checkbox",checked:!e.hidden,onChange:()=>K(e.key),className:"h-3.5 w-3.5 rounded border-gray-300 text-blue-600"}),e.label]},e.key)),
|
|
16
|
+
/* @__PURE__ */p("input",{type:"checkbox",checked:!e.hidden,onChange:()=>K(e.key),className:"h-3.5 w-3.5 rounded border-gray-300 text-blue-600"}),e.label]},e.key)),X&&/* @__PURE__ */p("div",{className:"border-t border-gray-100 mt-1 pt-1 px-3 pb-1",children:/* @__PURE__ */p("button",{onClick:async()=>{O(!0);const e=_.filter(e=>!e.hidden).map(e=>e.key),t=w?"mobile":"desktop",r={visible_columns:e};x&&(r.sort=x);try{await a.patch(`/auth/default-columns/${f}/`,r,{params:{viewport:t}}).catch(()=>a.post("/auth/default-columns/",{table_id:f,viewport:t,...r})),U(!0),setTimeout(()=>U(!1),2e3)}catch{}O(!1)},disabled:M,className:"text-2xs w-full text-center py-1 rounded "+(Q?"text-green-600":"text-ink-faint hover:text-blue-600"),children:M?"...":Q?B.savedDefault:B.saveDefault})})]})]})]})]})}export{f as ResizableTable};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{arcPath as e}from"./chunk-VFC6QUEN.js";import{MOTION as t,stagger as a}from"./chunk-465RRWBY.js";import{useHighlight as l}from"./chunk-CNYAHYE6.js";import{angleScale as r}from"./chunk-2JWPNR2U.js";import{ChartTooltip as n}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as o,CHART_INK as i}from"./chunk-TZFACUMR.js";import{useShellStrings as s,useShellLocale as c}from"./chunk-JSHMIMAJ.js";import{formatPlain as m}from"./chunk-C3QOHMR6.js";import{useId as h,useState as u}from"react";import{jsx as p,jsxs as d}from"react/jsx-runtime";var f=300*Math.PI/180;function g({rows:g,variant:k="track",size:v=300,max:x,formatValue:M,animate:y=!0,className:N,emptyLabel:b,trackGap:j=6}){const C=s().charts,w=c(),R=M??(e=>m(e,w)),E=b??C.nothingToPlot,I=h(),[P,T]=u(null),{highlighted:$}=l();if(0===g.length)/* @__PURE__ */return p("p",{className:`text-sm text-gray-500 ${N??""}`,children:E});const A=v/2,F=v/2,H=v/2-10,J=x??Math.max(...g.map(e=>e.value),1),Q="track"===k?Math.max(6,(H-.16*v)/g.length):0,U=Math.max(1,Math.floor((H-.16*v)/Q||1)),V="track"===k?g.slice(0,U):g,W=Math.min(j,Math.max(1,Q-2)),Y=r(V.length,.03),z=null!==P?V[P]:void 0;/* @__PURE__ */
|
|
2
|
+
return d("div",{className:`relative ${N??""}`,children:[
|
|
3
|
+
/* @__PURE__ */d("svg",{width:"100%",height:v,viewBox:`0 0 ${v} ${v}`,role:"img","aria-labelledby":I,onMouseLeave:()=>T(null),children:[
|
|
4
|
+
/* @__PURE__ */p("title",{id:I,children:"track"===k?C.radialTrack(V.length):C.radialCycle(V.length)}),V.map((l,r)=>{const n=o(r,l.color,l.tone),s=Math.max(0,Math.min(1,l.value/J)),c=((e,t)=>null!==P?P!==e:null!==$&&$!==t)(r,l.key);if("track"===k){const o=H-r*Q,m=o-Q+W,h=-Math.PI/2;/* @__PURE__ */
|
|
5
|
+
return d("g",{opacity:c?.4:1,onMouseEnter:()=>T(r),className:y?t.sweep:void 0,style:y?a(r,70):void 0,children:[
|
|
6
|
+
/* @__PURE__ */p("path",{d:e(A,F,m,o,h,h+f),fill:i.grid}),
|
|
7
|
+
/* @__PURE__ */p("path",{d:e(A,F,m,o,h,h+f*s),fill:n})]},l.key)}const m=.14*v;/* @__PURE__ */
|
|
8
|
+
return p("g",{opacity:c?.4:1,onMouseEnter:()=>T(r),children:/* @__PURE__ */p("path",{d:e(A,F,m,m+(H-m)*s,Y(r),Y(r)+Y.step),fill:n})},l.key)})]}),z&&null!==P&&/* @__PURE__ */p("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */p(n,{title:z.label,rows:[{key:"value",label:C.value,color:o(P,z.color,z.tone),value:R(z.value)}]})}),
|
|
9
|
+
/* @__PURE__ */p("ul",{className:"m-0 mt-3 grid gap-1 p-0",style:{gridTemplateColumns:"repeat(auto-fit,minmax(150px,1fr))"},children:g.map((e,t)=>/* @__PURE__ */d("li",{className:"flex list-none items-center gap-2 text-xs text-gray-600",children:[
|
|
10
|
+
/* @__PURE__ */p("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{backgroundColor:o(t,e.color,e.tone)}}),
|
|
11
|
+
/* @__PURE__ */p("span",{className:"flex-1 truncate",children:e.label}),
|
|
12
|
+
/* @__PURE__ */p("span",{className:"tabular-nums text-gray-800",children:R(e.value)})]},e.key))})]})}export{g as RadialBarChart};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{MediaUploadField as e}from"./chunk-
|
|
2
|
-
return n("section",{"aria-label":
|
|
1
|
+
import{MediaUploadField as e}from"./chunk-UWLGKMH5.js";import{BrandMark as r}from"./chunk-MI67DI3H.js";import{Button_default as a}from"./chunk-EVYD6UFQ.js";import{useShellStrings as t}from"./chunk-JSHMIMAJ.js";import{useRef as i,useState as l,useEffect as s}from"react";import{jsxs as n,jsx as c}from"react/jsx-runtime";function d({committedUrl:d,committedHasAlpha:o=null,committedIsLight:m=null,fallbackUrl:g,fallbackHasAlpha:h=null,fallbackIsLight:u=null,subjectName:b,assetName:p,onSave:x,onRemove:f,accept:v="image/png,image/x-icon,image/vnd.microsoft.icon,.ico,image/svg+xml,image/jpeg,image/webp",acceptHint:y="PNG · ICO · SVG · JPG · WEBP",maxBytes:N=5242880,previews:w=[],disabled:k=!1}){const j=i(null),[L,U]=l(null),[R,H]=l(""),[I,A]=l(""),[C,F]=l(!1),[E,G]=l(!1),M=function(e){return e.trim().toLocaleLowerCase().split(/\s+/).at(-1)||"image"}(p),O=t().brandAsset,S=R||d||g||"",B=L?null:d?o:h,J=L?null:d?m:u;s(()=>()=>{j.current&&URL.revokeObjectURL(j.current)},[]);const P=()=>{j.current&&(URL.revokeObjectURL(j.current),j.current=null)};/* @__PURE__ */
|
|
2
|
+
return n("section",{"aria-label":O.region(p,b),className:"grid gap-4 lg:grid-cols-2",children:[
|
|
3
3
|
/* @__PURE__ */n("div",{className:"rounded-lg border border-gray-200 bg-white p-4",children:[
|
|
4
|
-
/* @__PURE__ */c(e,{value:S,onChange:()=>{},onFile:e=>{if(k)return;
|
|
4
|
+
/* @__PURE__ */c(e,{value:S,onChange:()=>{},onFile:e=>{if(k)return;P();const r=URL.createObjectURL(e);j.current=r,U(e),H(r),A("")},label:p,hint:I||O.usedFor(b),error:I||void 0,accept:v,acceptHint:y,maxSizeBytes:N,fit:"contain",height:180,allowRemove:!1,busy:C||E,disabled:k}),
|
|
5
5
|
/* @__PURE__ */n("div",{className:"mt-3 flex flex-wrap gap-2",children:[
|
|
6
|
-
/* @__PURE__ */c(a,{onClick:async()=>{if(L&&!k&&!
|
|
7
|
-
/* @__PURE__ */c("h3",{className:"text-sm font-semibold text-gray-900",children:
|
|
8
|
-
/* @__PURE__ */c("div",{className:"mt-3 grid gap-3",children:w.map(e=>{const a=/* @__PURE__ */c(r,{src:S,alt:
|
|
6
|
+
/* @__PURE__ */c(a,{onClick:async()=>{if(L&&!k&&!C){F(!0),A("");try{await x(L),P(),U(null),H("")}catch(e){A(e instanceof Error?e.message:O.saveFailed(M,p))}finally{F(!1)}}},disabled:!L||k,loading:C,children:O.save(M,p)}),(L||d)&&/* @__PURE__ */c(a,{variant:"ghost-danger",onClick:async()=>{if(!k&&!E){if(L)return P(),U(null),H(""),void A("");if(d){G(!0),A("");try{await f()}catch(e){A(e instanceof Error?e.message:O.removeFailed(M,p))}finally{G(!1)}}}},disabled:k,loading:E,children:L?O.discard:O.remove(M,p)})]})]}),w.length>0&&/* @__PURE__ */n("div",{className:"rounded-lg border border-gray-200 bg-white p-4","aria-label":O.previews(p),children:[
|
|
7
|
+
/* @__PURE__ */c("h3",{className:"text-sm font-semibold text-gray-900",children:O.preview}),
|
|
8
|
+
/* @__PURE__ */c("div",{className:"mt-3 grid gap-3",children:w.map(e=>{const a=/* @__PURE__ */c(r,{src:S,alt:O.alt(b,p),slot:e.slot,surface:e.surface,adaptive:!0,hasAlpha:B,isLight:J,size:"browser-tab"===e.kind?16:void 0});/* @__PURE__ */
|
|
9
9
|
return n("div",{"data-brand-preview":!0,className:"dark"===e.surface?"text-white":"text-gray-900",children:[
|
|
10
10
|
/* @__PURE__ */c("div",{className:"mb-2 text-xs font-medium text-gray-500",children:e.label}),"browser-tab"===e.kind?/* @__PURE__ */n("div",{className:"flex items-end gap-1 border-b border-gray-200",children:[
|
|
11
11
|
/* @__PURE__ */n("div",{className:"flex max-w-[220px] items-center gap-2 rounded-t-lg border border-b-0 border-gray-200 bg-white px-3 py-2",children:[a,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{ChartDefs as t,MOTION as e,stagger as a,glowId as i}from"./chunk-465RRWBY.js";import{ChartSkeleton as n}from"./chunk-
|
|
1
|
+
import{ChartDefs as t,MOTION as e,stagger as a,glowId as i}from"./chunk-465RRWBY.js";import{ChartSkeleton as n}from"./chunk-WXZZGHET.js";import{useHighlight as o,autoHighlightIndex as l,highlightOpacity as r}from"./chunk-CNYAHYE6.js";import{CartesianPlot as s}from"./chunk-ENFXDIIZ.js";import{useDragZoom as m,ChartZoomSummary as u}from"./chunk-2DYVVHZA.js";import{ChartTooltip as c}from"./chunk-WDQI3FV6.js";import{CHART_INK as d,resolveSeriesColor as h,STATUS_VARS as f}from"./chunk-TZFACUMR.js";import{useShellStrings as p,useShellLocale as b}from"./chunk-JSHMIMAJ.js";import{formatPercent as x,formatPlain as y}from"./chunk-C3QOHMR6.js";import{useId as v}from"react";import{jsx as M,jsxs as g,Fragment as k}from"react/jsx-runtime";function w({stacked:w=!1,stackMode:N="value",height:$=220,width:F,max:j,formatValue:C,yAxisLabel:A,className:L,emptyLabel:V,radius:T=3,loading:z=!1,animate:S=!0,glow:E=!1,emphasise:H=!1,activeKey:Z,highlight:I="none",valueLabels:R=!1,onSelect:W,min:Y,formatTooltipValue:D,tooltipLabels:O,barGap:B=4,seriesLabels:G=!1,zoomable:J=!0,series:Q,labels:X}){const K=v(),U=m(X.length,J),q=U.view?.[0]??0,P=U.slice(X),_=O?U.slice(O):void 0,tt=Q.map(t=>({...t,data:U.slice(t.data),pointTones:t.pointTones?U.slice(t.pointTones):void 0,pointColors:t.pointColors?U.slice(t.pointColors):void 0})),{highlighted:et}=o(),at=p().charts,it=b(),nt=C??(t=>y(t,it)),ot=D??nt;if(z)/* @__PURE__ */return M(n,{height:$,width:F,variant:"bars",className:L});const lt=(t,e)=>{const a=t.pointColors?.[e];if(a)return a;const i=t.pointTones?.[e];return i?f[i]:h(t.slot,t.color,t.tone)},rt=tt.map((t,e)=>({...t,slot:e})).filter(t=>t.data.some(t=>Number.isFinite(t))),st=(t,e)=>{const a=t.data[e];return"number"==typeof a&&Number.isFinite(a)?a:0},mt=P.map((t,e)=>rt.reduce((t,a)=>t+st(a,e),0)),ut=P.map((t,e)=>rt.reduce((t,a)=>t+Math.max(0,st(a,e)),0)),ct=P.map((t,e)=>rt.reduce((t,a)=>t+Math.min(0,st(a,e)),0)),dt=w&&"percent"===N,ht=(t,e)=>mt[e]>0?t/mt[e]:null,ft=dt?[1]:w?[...ut,...ct]:rt.flatMap(t=>t.data.filter(Number.isFinite)),pt=(t,e)=>{const a=t.bandwidth/Math.max(1,rt.length),i=rt.length>1?Math.min(B,.25*a):0;return{offset:e*a+i/2,width:Math.max(1,a-i)}},bt=G&&!w?({x:t,y:e})=>{const a=Math.min(e.domain[1],Math.max(e.domain[0],0));return P.map((i,n)=>rt.map((i,o)=>{const l=i.data[n];if(!Number.isFinite(l))return null;const r=Math.min(e.domain[1],Math.max(e.domain[0],l)),{offset:s,width:m}=pt(t,o),u=t(n)+s+m/2,c=Math.min(e(r),e(a)),h=Math.max(e(r),e(a));if(m<13)return null;const f=Math.floor((h-c-12)/6.6),p=f>=Math.min(4,i.label.length),b=p&&i.label.length>f?`${i.label.slice(0,f-1).trimEnd()}…`:i.label,x=p?h-6:c-4;/* @__PURE__ */
|
|
2
2
|
return M("text",{"data-series-label":"true",x:u,y:x,transform:`rotate(-90 ${u} ${x})`,textAnchor:"start",dominantBaseline:"central",fontSize:11,fill:p?d.surface:d.label,children:b},`n${i.key}-${n}`)}))}:null;/* @__PURE__ */
|
|
3
3
|
return g(k,{children:[
|
|
4
|
-
/* @__PURE__ */M(s,{labels:
|
|
4
|
+
/* @__PURE__ */M(s,{labels:P,values:ft,height:$,width:F,max:dt?1:j,min:dt?void 0:Y,formatValue:dt?t=>x(Math.round(100*t),0,it):nt,yAxisLabel:A,className:L,emptyLabel:V,onSelect:W?t=>W(q+t):void 0,zoom:J?U:void 0,ariaLabel:at.acrossCategories(rt.map(t=>t.label),P.length),tooltip:t=>/* @__PURE__ */M(c,{title:_?.[t]??P[t],rows:rt.map(e=>({key:e.key,label:e.label,color:lt(e,t),value:Number.isFinite(e.data[t])?dt?`${x(100*(ht(e.data[t],t)??0),1,it)} · ${ot(e.data[t])}`:ot(e.data[t]):void 0})),footnote:dt?at.inCategory(ot(mt[t])):void 0}),overlay:R&&!dt||bt?({x:t,y:e})=>/* @__PURE__ */g("g",{pointerEvents:"none",children:[bt?.({x:t,y:e}),R&&!dt&&P.map((a,i)=>{if(w){if(!rt.some(t=>Number.isFinite(t.data[i])))return null;const a=rt.reduce((t,e)=>t+st(e,i),0),n=a>=0?ut[i]:ct[i];/* @__PURE__ */
|
|
5
5
|
return M("text",{"data-value-label":"true",x:t.center(i),y:a>=0?e(n)-4:e(n)+12,textAnchor:"middle",fontSize:11,fill:d.label,style:{fontVariantNumeric:"tabular-nums"},children:nt(a)},`v${i}`)}return rt.map((a,n)=>{const o=a.data[i];if(!Number.isFinite(o))return null;const l=o,{offset:r,width:s}=pt(t,n);/* @__PURE__ */
|
|
6
|
-
return M("text",{"data-value-label":"true",x:t(i)+r+s/2,y:l>=0?e(l)-4:e(l)+12,textAnchor:"middle",fontSize:11,fill:d.label,style:{fontVariantNumeric:"tabular-nums"},children:nt(l)},`v${a.key}-${i}`)})})]}):void 0,children:({x:n,y:o,bottom:s,active:m})=>{const u=
|
|
6
|
+
return M("text",{"data-value-label":"true",x:t(i)+r+s/2,y:l>=0?e(l)-4:e(l)+12,textAnchor:"middle",fontSize:11,fill:d.label,style:{fontVariantNumeric:"tabular-nums"},children:nt(l)},`v${a.key}-${i}`)})})]}):void 0,children:({x:n,y:o,bottom:s,active:m})=>{const u=Z?P.indexOf(Z):-1,c=l(w?mt:rt[0]?.data??[],I),h=m??(u>=0?u:c);/* @__PURE__ */
|
|
7
7
|
return g("g",{children:[
|
|
8
|
-
/* @__PURE__ */M(t,{id:
|
|
9
|
-
return M("rect",{x:y,y:g,width:v,height:$,rx:
|
|
8
|
+
/* @__PURE__ */M(t,{id:K,glow:E}),P.map((t,l)=>{let s=0,m=0;const u=o(Math.min(o.domain[1],Math.max(o.domain[0],0)));return rt.map((t,c)=>{const f=t.data[l];if(!Number.isFinite(f))return null;const p=dt?ht(f,l):f;if(null===p)return null;const b=lt(t,l),x=pt(n,c),y=w?n(l):n(l)+x.offset,v=w?Math.max(1,n.bandwidth):x.width;let g,k,N=!0;if(w){const t=p>=0?s:m,e=t+p;p>=0?s=e:m=e,g=o(Math.max(t,e)),k=o(Math.min(t,e)),N=0===t}else g=Math.min(o(p),u),k=Math.max(o(p),u);const $=Math.max(0,k-g-(w&&!N?2:0)),F=null===h||h===l,j=F?b:H?d.muted:b,C=r(t.key,et);/* @__PURE__ */
|
|
9
|
+
return M("rect",{x:y,y:g,width:v,height:$,rx:T,fill:j,fillOpacity:C??(F?1:H?.32:.45),filter:E&&h===l?`url(#${i(K)})`:void 0,className:"rosh-viz-mark"+(S?` ${e.rise}`:""),style:S?a(l*(w?1:rt.length)+c,26):void 0},`${t.key}-${l}`)})}),null!==m&&!H&&/* @__PURE__ */M("line",{x1:n.center(m),y1:o(o.domain[1]),x2:n.center(m),y2:s,stroke:d.axis,strokeWidth:1})]})}}),U.view&&/* @__PURE__ */M(u,{from:_?.[0]??P[0],to:_?.at(-1)??P[P.length-1],count:P.length,total:w?ot(mt.reduce((t,e)=>t+e,0)):void 0,rows:rt.map(t=>({s:t,sum:t.data.reduce((e,a,i)=>e+st(t,i),0)})).sort((t,e)=>e.sum-t.sum).map(({s:t,sum:e})=>({key:t.key,label:t.label,color:h(t.slot,t.color,t.tone),value:ot(e)})),onClear:U.clear})]})}export{w as ColumnChart};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Sparkline as e}from"./chunk-CKCDGSTC.js";import{STATUS_VARS as t,resolveSeriesColor as a}from"./chunk-TZFACUMR.js";import{useShellStrings as r,useShellLocale as n}from"./chunk-
|
|
1
|
+
import{Sparkline as e}from"./chunk-CKCDGSTC.js";import{STATUS_VARS as t,resolveSeriesColor as a}from"./chunk-TZFACUMR.js";import{useShellStrings as r,useShellLocale as n}from"./chunk-JSHMIMAJ.js";import{formatPlain as l}from"./chunk-C3QOHMR6.js";import{jsxs as s,jsx as o}from"react/jsx-runtime";var d={up:{glyph:"▲",word:"trendUp"},down:{glyph:"▼",word:"trendDown"},flat:{glyph:"■",word:"trendFlat"}};function i({label:i,value:m,unit:c,delta:h,deltaTone:p,trend:u,trendTone:g,footnote:x,className:f}){const y=r().charts,w=n(),N=null==h?null:h>0?"up":h<0?"down":"flat",b=p?t[p]:void 0,k=g?t[g]:a(0);/* @__PURE__ */
|
|
2
2
|
return s("div",{className:`flex flex-col gap-0.5 rounded-lg border border-gray-200 bg-white p-4 ${f??""}`,children:[
|
|
3
3
|
/* @__PURE__ */o("span",{className:"text-xs font-medium uppercase tracking-wide text-gray-500",children:i}),
|
|
4
4
|
/* @__PURE__ */s("span",{className:"flex items-baseline gap-2",children:[
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{InputNumber_default as e,stepRounding as r}from"./chunk-
|
|
2
|
-
return s("div",{id:
|
|
1
|
+
import{InputNumber_default as e,stepRounding as r}from"./chunk-RMDVKQJE.js";import{IconButton_default as a}from"./chunk-SV5RRBVA.js";import{Icon as i}from"./chunk-JOAKKXTL.js";import{Tooltip as n}from"./chunk-SOZCWT6I.js";import{useShellStrings as l}from"./chunk-JSHMIMAJ.js";import{useState as t,useRef as o}from"react";import{jsxs as s,jsx as d}from"react/jsx-runtime";var c={tl:"",tr:"rotate-90",br:"rotate-180",bl:"-rotate-90"},u=["tl","tr","bl","br"];function m({label:m,value:f,corners:p,onChange:h,radius:v=null,onRadiusChange:b,radiusLabel:k,radiusMin:g=0,radiusMax:x,radiusStep:w=1,radiusPlaceholder:y,disabled:A=!1,disabledReason:j,id:K,className:M=""}){const R=l(),C=function(e){const r=u.map(r=>e.find(e=>e.value===r));for(const a of e){if(u.includes(a.value))continue;const e=r.findIndex(e=>void 0===e);-1===e?r.push(a):r[e]=a}return r.filter(e=>void 0!==e)}(p),[N,S]=t(0),D=o(null);/* @__PURE__ */
|
|
2
|
+
return s("div",{id:K,role:"group","aria-label":m,className:`flex min-w-0 flex-wrap items-center gap-2 ${M}`.trim(),children:[b&&
|
|
3
3
|
/* @__PURE__ */d("div",{className:"w-30 shrink-0",children:/* @__PURE__ */d(e,{value:v,onChange:b,min:g,max:x,step:w,...r(w),placeholder:y,prefix:/* @__PURE__ */d("span",{"data-radius-mark":"","aria-hidden":"true",children:R.corners.radiusMark}),suffix:R.corners.unit,steppers:"compact",disabled:A,"aria-label":k??R.corners.radius})}),
|
|
4
|
-
/* @__PURE__ */d("div",{ref:
|
|
4
|
+
/* @__PURE__ */d("div",{ref:D,"data-corners-grid":"",className:"grid shrink-0 grid-cols-2 gap-1",onKeyDown:e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;const r=Array.from(D.current?.querySelectorAll("button[data-corner]")??[]),a=r.indexOf(document.activeElement);if(-1===a)return;const i=a%2,n=Math.floor(a/2),l="ArrowRight"===e.key?2*n+1:"ArrowLeft"===e.key?2*n:"ArrowDown"===e.key?2+i:"ArrowUp"===e.key?i:null;null!==l&&(e.preventDefault(),l<r.length&&r[l].focus())},children:C.map((e,r)=>{const l=f.includes(e.value),t=A||!0===e.disabled,o=t&&(!0===e.disabled&&e.title||(A?j:void 0))||void 0,s=/* @__PURE__ */d(a,{"aria-pressed":l,"aria-label":e.label,"aria-disabled":t||void 0,disabledReason:o,"data-corner":e.value,size:"sm",tabIndex:r===N?0:-1,onFocus:()=>S(r),onClick:()=>{t||h(l?f.filter(r=>r!==e.value):[...f,e.value])},children:/* @__PURE__ */d(i,{name:"corner",strokeWidth:2,className:["h-4 w-4",c[e.value]??""].filter(Boolean).join(" ")})},e.value);return o?s:/* @__PURE__ */d(n,{content:e.title??e.label,children:s},e.value)})})]})}export{m as CornersInput};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{CartesianPlot as e}from"./chunk-
|
|
2
|
-
return c(e,{labels:h.map(e=>e.label),values:v,height:p,width:d,min:j-
|
|
1
|
+
import{CartesianPlot as e}from"./chunk-ENFXDIIZ.js";import{ChartTooltip as l}from"./chunk-WDQI3FV6.js";import{STATUS_VARS as o}from"./chunk-TZFACUMR.js";import{useShellStrings as t,useShellLocale as a}from"./chunk-JSHMIMAJ.js";import{formatPlain as i,formatFixed as r}from"./chunk-C3QOHMR6.js";import{jsx as c,jsxs as n,Fragment as s}from"react/jsx-runtime";function h({candles:h,variant:m="candle",height:p=260,width:d,formatValue:u,yAxisLabel:b,label:y,className:x,emptyLabel:k}){const g=t().charts,f=a(),w=u??(e=>Number.isInteger(e)?i(e,f):r(e,2,f)),M=y??g.price,v=h.flatMap(e=>[e.low,e.high]).filter(Number.isFinite),j=Math.min(...v),A=Math.max(...v),I=.08*(A-j)||1;/* @__PURE__ */
|
|
2
|
+
return c(e,{labels:h.map(e=>e.label),values:v,height:p,width:d,min:j-I,max:A+I,bandPadding:.42,formatValue:w,yAxisLabel:b,className:x,emptyLabel:k,ariaLabel:g.ohlc(M,h.length),tooltip:e=>{const t=h[e],a=t.close>=t.open,i=a?o.good:o.critical;/* @__PURE__ */
|
|
3
3
|
return c(l,{title:t.label,rows:[{key:"open",label:g.open,color:i,value:w(t.open)},{key:"high",label:g.high,color:i,value:w(t.high)},{key:"low",label:g.low,color:i,value:w(t.low)},{key:"close",label:g.close,color:i,value:w(t.close)}],emphasisKey:"close",footnote:a?g.closedAbove:g.closedBelow})},children:({x:e,y:l,active:t})=>/* @__PURE__ */c("g",{children:h.map((a,i)=>{const r=a.close>=a.open,h=r?o.good:o.critical,p=e.center(i),d=Math.max(3,e.bandwidth),u=null!==t&&t!==i,b=l(Math.max(a.open,a.close)),y=Math.max(1,Math.abs(l(a.close)-l(a.open)));/* @__PURE__ */
|
|
4
4
|
return n("g",{opacity:u?.45:1,children:[
|
|
5
5
|
/* @__PURE__ */c("line",{x1:p,y1:l(a.high),x2:p,y2:l(a.low),stroke:h,strokeWidth:1.5}),"candle"===m?/* @__PURE__ */c("rect",{x:p-d/2,y:b,width:d,height:y,rx:1,fill:r?h:"transparent",fillOpacity:r?.85:1,stroke:h,strokeWidth:1.5}):/* @__PURE__ */n(s,{children:[
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{writeClipboard as e}from"./chunk-
|
|
1
|
+
import{writeClipboard as e}from"./chunk-Y7KDCC6E.js";import{IconButton_default as r}from"./chunk-SV5RRBVA.js";import{Icon as t}from"./chunk-JOAKKXTL.js";import{toast_default as n}from"./chunk-3YBXA72C.js";import{useShellStrings as a}from"./chunk-JSHMIMAJ.js";import{useState as i,useRef as o,useEffect as c,useCallback as l}from"react";import{jsxs as m,jsx as s,Fragment as d}from"react/jsx-runtime";var u={bordered:"border border-gray-300 bg-white",flat:"bg-gray-100"},p={sm:{box:"gap-2 px-3 py-1 text-xs",button:"-my-1"},md:{box:"gap-2 px-3 min-h-8 py-1 text-sm",button:"-my-0.5"}};function b(){/* @__PURE__ */
|
|
2
2
|
return s(t,{name:"copy",className:"h-4 w-4","aria-hidden":"true"})}function h(){/* @__PURE__ */
|
|
3
|
-
return s(t,{name:"check",className:"h-4 w-4 text-green-600","aria-hidden":"true"})}function y({value:t,children:y,symbol:f,label:x,size:g="md",variant:k="bordered",hideCopyButton:v=!1,onCopy:w,multiline:N=!1,id:j,"aria-describedby":
|
|
4
|
-
return m("div",{id:
|
|
3
|
+
return s(t,{name:"check",className:"h-4 w-4 text-green-600","aria-hidden":"true"})}function y({value:t,children:y,symbol:f,label:x,size:g="md",variant:k="bordered",hideCopyButton:v=!1,onCopy:w,multiline:N=!1,id:j,"aria-describedby":C,className:A=""}){const[B,T]=i(!1),J=o(null),K=a().copy;c(()=>()=>{J.current&&clearTimeout(J.current)},[]);const L=l(async()=>{await e(t)?(T(!0),J.current&&clearTimeout(J.current),J.current=setTimeout(()=>{T(!1),J.current=null},2e3),w?.(t)):n.error(K.failed)},[t,w,K]),{box:M,button:R}=p[g],S=!v;/* @__PURE__ */
|
|
4
|
+
return m("div",{id:S?void 0:j,"aria-describedby":S?void 0:C,className:["inline-flex max-w-full items-center rounded-md",u[k],M,A].filter(Boolean).join(" "),children:[null!=f&&""!==f&&/* @__PURE__ */s("span",{"aria-hidden":"true",className:"shrink-0 select-none font-mono text-gray-400",children:f}),
|
|
5
5
|
/* @__PURE__ */s("span",{className:"min-w-0 font-mono text-gray-800 "+(N?"whitespace-pre-wrap break-all":"truncate"),title:N?void 0:t,children:y??t}),!v&&/* @__PURE__ */m(d,{children:[
|
|
6
|
-
/* @__PURE__ */s(r,{id:j,"aria-label":x?
|
|
7
|
-
/* @__PURE__ */s("span",{"aria-live":"polite",className:"sr-only",children:
|
|
6
|
+
/* @__PURE__ */s(r,{id:j,"aria-label":x?K.copyLabel(x):K.copy,"aria-describedby":C,onClick:L,className:`${R} text-gray-400`,children:/* @__PURE__ */s(B?h:b,{})}),
|
|
7
|
+
/* @__PURE__ */s("span",{"aria-live":"polite",className:"sr-only",children:B?K.copied:""})]})]})}export{y as Snippet};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Card as e}from"./chunk-
|
|
1
|
+
import{Card as e}from"./chunk-CEIIQRK5.js";import{FormField as t}from"./chunk-6KBDNYRW.js";import{Checkbox_default as r}from"./chunk-CGZBDI6C.js";import{Input_default as l}from"./chunk-ZKGUBIBT.js";import{Button_default as a}from"./chunk-EVYD6UFQ.js";import{useState as i}from"react";import{jsx as c,jsxs as n,Fragment as s}from"react/jsx-runtime";var o={login:{title:"Welcome back",subtitle:"Sign in to your account",cta:"Sign in"},register:{title:"Create your account",subtitle:"Start your 14-day free trial",cta:"Create account"},forgot:{title:"Reset password",subtitle:"We'll email you a reset link",cta:"Send reset link"}};function m({mode:m="login"}){const[u,d]=i(!0),h=o[m];/* @__PURE__ */
|
|
2
2
|
return c("div",{className:"flex h-full items-center justify-center overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */n("div",{className:"w-full max-w-sm",children:[
|
|
3
3
|
/* @__PURE__ */n("div",{className:"mb-6 text-center",children:[
|
|
4
4
|
/* @__PURE__ */c("div",{className:"mx-auto mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-blue-600 text-sm font-bold text-white",children:"A"}),
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as c}from"react/jsx-runtime";function h({size:h=18,...e}){/* @__PURE__ */
|
|
2
|
+
return c("svg",{width:h,height:h,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",...e,children:/* @__PURE__ */c("path",{fillRule:"evenodd",d:"M3.125,3h5c0.49841,0.03274 1.09349,0.26507 1.41421,0.58579c0.32072,0.32072 0.55305,0.9158 0.58579,1.41421v5c-0.03274,0.49841 -0.26507,1.09349 -0.58579,1.41421c-0.32072,0.32072 -0.9158,0.55305 -1.41421,0.58579h-5c-0.49841,-0.03274 -1.09349,-0.26507 -1.41421,-0.58579c-0.32072,-0.32072 -0.55305,-0.9158 -0.58579,-1.41421v-5c0.03274,-0.49841 0.26507,-1.09349 0.58579,-1.41421c0.32072,-0.32072 0.9158,-0.55305 1.41421,-0.58579zM13.125,7c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-1.25c0,-0.41421 0.33579,-0.75 0.75,-0.75h1.25c0.41421,0 0.75,0.33579 0.75,0.75c0,0.41421 -0.33579,0.75 -0.75,0.75h-0.5v0.5c0,0.41421 -0.33579,0.75 -0.75,0.75zM16.125,5c0,-0.41421 0.33579,-0.75 0.75,-0.75h1.25c0.41421,0 0.75,0.33579 0.75,0.75v1.25c0,0.41421 -0.33579,0.75 -0.75,0.75c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-0.5h-0.5c-0.41421,0 -0.75,-0.33579 -0.75,-0.75zM18.125,8c0.41421,0 0.75,0.33579 0.75,0.75v1.25c0,0.41421 -0.33579,0.75 -0.75,0.75h-1.25c-0.41421,0 -0.75,-0.33579 -0.75,-0.75c0,-0.41421 0.33579,-0.75 0.75,-0.75h0.5v-0.5c0,-0.41421 0.33579,-0.75 0.75,-0.75zM15.125,10c0,0.41421 -0.33579,0.75 -0.75,0.75h-1.25c-0.41421,0 -0.75,-0.33579 -0.75,-0.75v-1.25c0,-0.41421 0.33579,-0.75 0.75,-0.75c0.41421,0 0.75,0.33579 0.75,0.75v0.5h0.5c0.41421,0 0.75,0.33579 0.75,0.75zM6.125,15.625c0,-0.41421 0.33579,-0.75 0.75,-0.75h4.43934l-0.59467,-0.59467c-0.29289,-0.29289 -0.29289,-0.76777 0,-1.06066c0.29289,-0.29289 0.76777,-0.29289 1.06066,0l1.875,1.875c0.07191,0.07191 0.12616,0.15478 0.16276,0.24324c0.03667,0.08843 0.05691,0.1854 0.05691,0.28709c0,0.10169 -0.02024,0.19866 -0.05691,0.28709c-0.0366,0.08846 -0.09085,0.17134 -0.16276,0.24324l-1.875,1.875c-0.29289,0.29289 -0.76777,0.29289 -1.06066,0c-0.29289,-0.29289 -0.29289,-0.76777 0,-1.06066l0.59467,-0.59467h-4.43934c-0.41421,0 -0.75,-0.33579 -0.75,-0.75z"})})}export{h as ScrollFadeOutMiniIcon};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{jsxs as r,jsx as e}from"react/jsx-runtime";function t({size:t=18,...i}){/* @__PURE__ */
|
|
2
|
+
return r("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i,children:[
|
|
3
|
+
/* @__PURE__ */e("path",{d:"M9 7.5h6a1.5 1.5 0 0 1 1.5 1.5v6a1.5 1.5 0 0 1 -1.5 1.5h-6a1.5 1.5 0 0 1 -1.5 -1.5v-6a1.5 1.5 0 0 1 1.5 -1.5Z"}),
|
|
4
|
+
/* @__PURE__ */e("path",{d:"M5.25 5.25 2.25 2.25m0 3v-3h3M18.75 18.75l3 3m0-3v3h-3"})]})}export{t as ScrollZoomInIcon};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{navVisible as t,isReachable as e,visibleChildren as n,isSection as o}from"./chunk-5A7MWTXX.js";function r(n,o){return t(n,o)?n.items.filter(n=>t(n,o)&&e(n,o)):[]}function i(t,o){return n(t,o).filter(t=>e(t,o))}function s(n,i,s){const l=new Set(i.erp),c=new Set(i.system),a=new Set(i.footer??[]),y=n.filter(o),u=t=>y.filter(e=>t.has(e.label)&&r(e,s).length>0);return{topItems:n.filter(t=>!o(t)).filter(n=>t(n,s)&&e(n,s)),erpSections:u(l),systemSections:u(c),virtualSections:(i.virtual??[]).filter(t=>t.items.length>0),footerSections:u(a),footerItems:(i.footerItems??[]).filter(n=>t(n,s)&&e(n,s))}}function l(t,e,n){return!!e&&t.some(t=>t.to===e||l(i(t,n),e,n))}var c="__page__";function a(t){const e=t.indexOf("?");if(e<0)return{path:t,search:""};const n=new URLSearchParams(t.slice(e+1));return{path:t.slice(0,e),search:n.get("search")??""}}function y(t,e,n){const o=function(t,e){const n=[],o=t=>{const r=i(t,e);0===r.length?n.push(t):r.forEach(o)};t.topItems.forEach(o);for(const n of[...t.erpSections,...t.systemSections,...t.footerSections])r(n,e).forEach(o);for(const e of t.virtualSections)e.items.forEach(o);return t.footerItems.forEach(o),n}(t,e);return Object.assign(async t=>{const e=t.trim().toLowerCase();if(!e)return[];const r=/* @__PURE__ */new Set,i=[];for(const t of o){const o=t.menuLabel??t.label;r.has(t.to)||!t.label.toLowerCase().includes(e)&&!o.toLowerCase().includes(e)||(r.add(t.to),i.push({type:n,label:t.label,entity_type:c,entity_id:t.to}))}return i.slice(0,8)},{destinations:o})}function u(t,e){if(!Array.isArray(t))return[];const n=[];for(const o of t){if(!o||"string"!=typeof o.entityType||"string"!=typeof o.entityId||"string"!=typeof o.label)continue;if("preview-file"===o.entityType)continue;const t="page"===o.entityType;n.push({type:t?e:"",label:o.label,entity_type:t?c:o.entityType,entity_id:o.entityId})}return n}var f=8,p="M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z",b="M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z",h="M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3";function d(t){return t.typeKey??t.type}function m(t,e){return e?.[d(t)]??t.type}function g(t){const e=/* @__PURE__ */new Map;for(const n of t){const t=d(n),o=e.get(t);o?o.results.push(n):e.set(t,{type:n.type,results:[n]})}return Array.from(e,([t,e])=>({key:t,...e}))}function _(t,e){const n=e.trim().toLowerCase();return t&&n?t.filter(t=>t.label.toLowerCase().includes(n)||(t.keywords??[]).some(t=>t.toLowerCase().includes(n))):[]}function k(t,e,n){return 0===n.length?null:{key:t,title:e,rows:n.map((t,e)=>({kind:"action",key:`action:${e}:${t.label}`,label:t.label,icon:t.icon,action:t})),count:n.length}}function w(t,e,n,o){return{type:t,label:e,entity_type:c,entity_id:`${n}?search=${encodeURIComponent(o.trim())}`}}function v(t,e,n,o,r){const i=g(t).map(t=>{const e=t.results.map((e,n)=>({kind:"result",key:`result:${t.key}:${e.entity_type}:${e.entity_id}:${n}`,label:e.label,sub:e.sub,result:e})),o=!!r?.truncatedTypes?.includes(t.key),i=o?r?.listRoutes?.[t.key]:void 0,s=r?.typeLabels?.[t.key]??t.type;if(r&&i){const o=r.seeAllLabel(i.label);e.push({kind:"seeAll",key:`seeall:${t.key}`,label:o,result:w(s,o,i.path,n)})}return{key:`type:${t.key}`,title:s,rows:e,count:t.results.length,truncated:o}}),s=k("actions",o,_(e,n));return s?[...i,s]:i}function $(t,e){const n=[];t.recent?.length&&n.push({key:"recent",title:e.recent,rows:t.recent.map((e,n)=>({kind:"recent",key:`recent:${e.entity_type}:${e.entity_id}:${n}`,label:e.label,sub:e.sub,badge:m(e,t.typeLabels),result:e})),count:t.recent.length}),t.favorites?.length&&n.push({key:"favorites",title:e.favorites,rows:t.favorites.map((e,n)=>({kind:"favorite",key:`favorite:${e.entity_type}:${e.entity_id}:${n}`,label:e.label,sub:e.sub,badge:m(e,t.typeLabels)||void 0,icon:b,result:e})),count:t.favorites.length});const o=k("actions",e.actions,t.actions??[]);return o&&n.push(o),n}function L(t){return t.flatMap(t=>t.rows)}function S(t,e,n){return 0===n?0:Math.min(Math.max(t+e,0),n-1)}function A(t,e,n){const o=t.length;if(0===o)return 0;const r=[];let i=0;for(const e of t)r.push(i),i+=e;let s=0;for(let t=0;t<o;t++)e>=r[t]&&(s=t);return r[(s+n+o)%o]}var M=(t,e)=>t.entity_type===e.entity_type&&t.entity_id===e.entity_id;function I(t,e,n=8){return[e,...t.filter(t=>!M(t,e))].slice(0,n)}function C(t){if(!Array.isArray(t))return[];const e=[];for(const n of t){if(!n||"object"!=typeof n)continue;const t=n;if("string"!=typeof t.type||"string"!=typeof t.label||"string"!=typeof t.entity_type||"string"!=typeof t.entity_id)continue;const o={type:t.type,label:t.label,entity_type:t.entity_type,entity_id:t.entity_id};"string"==typeof t.sub&&(o.sub=t.sub),"string"==typeof t.typeKey&&(o.typeKey=t.typeKey),e.some(t=>M(t,o))||e.push(o)}return e.slice(0,8)}export{p as DEFAULT_MAGNIFIER,b as FAVORITE_ICON,c as PAGE_RESULT_ENTITY,f as RECENT_LIMIT,h as SEE_ALL_ICON,$ as buildEmptySections,v as buildQuerySections,u as favoritesToResults,_ as filterQuickActions,L as flattenRows,g as groupResults,y as navPagesProvider,A as nextGroupIndex,a as parsePageResultTarget,s as partitionNav,I as pushRecent,d as resultTypeKey,l as rowsContainRoute,C as sanitizeRecent,w as seeAllResult,S as stepIndex,i as visibleNavChildren,r as visibleSectionItems};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import{Icon as e}from"./chunk-JOAKKXTL.js";import{LoadingSpinner as t}from"./chunk-R2VKEMZH.js";import{toast_default as n}from"./chunk-
|
|
2
|
-
/* @__PURE__ */u("div",{className:"flex shrink-0 flex-wrap items-center gap-1 border-b border-gray-200 bg-gray-50 px-3 py-2 text-xs",children:e})}"undefined"==typeof window||c.GlobalWorkerOptions.workerSrc||(c.GlobalWorkerOptions.workerSrc=`https://unpkg.com/pdfjs-dist@${c.version}/build/pdf.worker.min.mjs`);var g={"jbig2.wasm":new URL("pdfjs-dist/wasm/jbig2.wasm",import.meta.url).href,"openjpeg.wasm":new URL("pdfjs-dist/wasm/openjpeg.wasm",import.meta.url).href},w=class{async fetch({kind:e,filename:t}){if("wasmUrl"!==e)throw new Error(`Ensure that the \`${e}\` API parameter is provided.`);const n=g[t];if(!n)throw new Error(`No bundled pdf.js wasm module for "${t}".`);const r=await fetch(n);if(!r.ok)throw new Error(`Unable to load wasm data at: ${n}`);const a=new Uint8Array(await r.arrayBuffer());if(!function(e){return e.length>=4&&0===e[0]&&97===e[1]&&115===e[2]&&109===e[3]}(a))throw h(n,t,a);return a}};function y(e){const t=e||("undefined"!=typeof window?window.__REACT_OS_SHELL_PDF_WASM__:void 0);return"string"==typeof t&&t?{wasmUrl:t.endsWith("/")?t:`${t}/`}:{BinaryDataFactory:w}}var v=[50,75,100,125,150,200,300,400];function b(e,t,n){const r=(t.width-40)/n.width,a="page"===e?Math.min(r,(t.height-40)/n.height):r;return Math.min(Math.max(a,.3),4)}function x({url:a,filename:o,fit:d="width",onDownload:h,onEmail:p,workerSrc:g,wasmUrl:w}){const x=r().pdf,k=i(null),C=i(null),N=i(null),[j
|
|
1
|
+
import{Icon as e}from"./chunk-JOAKKXTL.js";import{LoadingSpinner as t}from"./chunk-R2VKEMZH.js";import{toast_default as n}from"./chunk-3YBXA72C.js";import{useShellStrings as r}from"./chunk-JSHMIMAJ.js";import{createContext as a,useContext as o,useRef as i,useState as s,useEffect as l}from"react";import*as c from"pdfjs-dist";import{createPortal as d}from"react-dom";import{jsx as u,jsxs as m}from"react/jsx-runtime";function h(e,t,n){return new Error(`The response for ${e} is not a WebAssembly module (got ${function(e){if(0===e.length)return"an empty response";const t=Array.from(e.subarray(0,24)).map(e=>e>=32&&e<127?String.fromCharCode(e):".").join("");return`${e.length} bytes starting "${t}"`}(n)}). The bundler did not emit "${t}" as an asset, and the host answered with a fallback page instead of a 404. Serve pdfjs-dist/wasm/ yourself and point window.__REACT_OS_SHELL_PDF_WASM__ at it.`)}var p=a(null);function f({children:e}){const t=o(p);return t?d(e,t):
|
|
2
|
+
/* @__PURE__ */u("div",{className:"flex shrink-0 flex-wrap items-center gap-1 border-b border-gray-200 bg-gray-50 px-3 py-2 text-xs",children:e})}"undefined"==typeof window||c.GlobalWorkerOptions.workerSrc||(c.GlobalWorkerOptions.workerSrc=`https://unpkg.com/pdfjs-dist@${c.version}/build/pdf.worker.min.mjs`);var g={"jbig2.wasm":new URL("pdfjs-dist/wasm/jbig2.wasm",import.meta.url).href,"openjpeg.wasm":new URL("pdfjs-dist/wasm/openjpeg.wasm",import.meta.url).href},w=class{async fetch({kind:e,filename:t}){if("wasmUrl"!==e)throw new Error(`Ensure that the \`${e}\` API parameter is provided.`);const n=g[t];if(!n)throw new Error(`No bundled pdf.js wasm module for "${t}".`);const r=await fetch(n);if(!r.ok)throw new Error(`Unable to load wasm data at: ${n}`);const a=new Uint8Array(await r.arrayBuffer());if(!function(e){return e.length>=4&&0===e[0]&&97===e[1]&&115===e[2]&&109===e[3]}(a))throw h(n,t,a);return a}};function y(e){const t=e||("undefined"!=typeof window?window.__REACT_OS_SHELL_PDF_WASM__:void 0);return"string"==typeof t&&t?{wasmUrl:t.endsWith("/")?t:`${t}/`}:{BinaryDataFactory:w}}var v=[50,75,100,125,150,200,300,400];function b(e,t,n){const r=(t.width-40)/n.width,a="page"===e?Math.min(r,(t.height-40)/n.height):r;return Math.min(Math.max(a,.3),4)}function x({url:a,filename:o,fit:d="width",onDownload:h,onEmail:p,workerSrc:g,wasmUrl:w}){const x=r().pdf,k=i(null),C=i(null),N=i(null),[M,j]=s(null),[E,z]=s(1),[_,P]=s(0),[A,D]=s(1),[L,S]=s(!0),[W,T]=s(!0),$=i(x.loadFailed);$.current=x.loadFailed,l(()=>{let e=!1;return T(!0),z(1),g&&(c.GlobalWorkerOptions.workerSrc=g),c.getDocument({url:a,...y(w)}).promise.then(t=>{e||(j(t),P(t.numPages),T(!1))}).catch(()=>{e||(n.error($.current),T(!1))}),()=>{e=!0}},[a,g,w]),l(()=>{if(!M||!L||!N.current)return;const e=()=>{const e=N.current;e&&M.getPage(E).then(t=>{if(!N.current)return;const n=t.getViewport({scale:1}),r=b(d,{width:e.clientWidth,height:e.clientHeight},{width:n.width,height:n.height});D(e=>Math.abs(e-r)<.005?e:r)})};e();const t=new ResizeObserver(e);return t.observe(N.current),()=>t.disconnect()},[M,E,L,d]),l(()=>{if(!M||!k.current)return;let e=!1,t=null,n=null;return M.getPage(E).then(r=>{if(e||!k.current)return;const a=r.getViewport({scale:A}),o=k.current;o.width=a.width,o.height=a.height,o.style.width=`${a.width}px`,o.style.height=`${a.height}px`;const i=o.getContext("2d");t=r.render({canvas:o,canvasContext:i,viewport:a}),t.promise.catch(()=>{});const s=C.current;s&&(s.replaceChildren(),s.style.setProperty("--total-scale-factor",String(a.scale)),n=new c.TextLayer({textContentSource:r.streamTextContent(),container:s,viewport:a}),n.render().then(()=>{if(e)return;const t=document.createElement("div");t.className="endOfContent",s.append(t)}).catch(()=>{}))}),()=>{e=!0,t?.cancel(),n?.cancel()}},[M,E,A]),l(()=>{const e=()=>C.current?.classList.remove("selecting");return window.addEventListener("pointerup",e),()=>window.removeEventListener("pointerup",e)},[]);const O="page"===d?x.fitPage:x.fitWidth,H="px-2 py-1 rounded hover:bg-gray-200 transition-colors text-gray-600 flex items-center gap-1";/* @__PURE__ */
|
|
3
3
|
return m("div",{className:"flex flex-col h-full",children:[
|
|
4
4
|
/* @__PURE__ */m(f,{children:[
|
|
5
5
|
/* @__PURE__ */u("button",{type:"button","aria-label":x.previousPage,onClick:()=>z(e=>Math.max(1,e-1)),disabled:E<=1,className:"px-1 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",children:/* @__PURE__ */u(e,{name:"chevron-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
6
|
-
/* @__PURE__ */u("span",{className:"text-gray-600 font-medium tabular-nums whitespace-nowrap",children:x.pageOf(E,
|
|
7
|
-
/* @__PURE__ */u("button",{type:"button","aria-label":x.nextPage,onClick:()=>z(e=>Math.min(
|
|
6
|
+
/* @__PURE__ */u("span",{className:"text-gray-600 font-medium tabular-nums whitespace-nowrap",children:x.pageOf(E,_)}),
|
|
7
|
+
/* @__PURE__ */u("button",{type:"button","aria-label":x.nextPage,onClick:()=>z(e=>Math.min(_,e+1)),disabled:E>=_,className:"px-1 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",children:/* @__PURE__ */u(e,{name:"chevron-right",className:"h-3.5 w-3.5",strokeWidth:2})}),
|
|
8
8
|
/* @__PURE__ */u("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
|
|
9
|
-
/* @__PURE__ */u("button",{type:"button","aria-label":x.zoomOut,title:x.zoomOut,onClick:()=>{S(!1),D(e=>Math.max(.3,Math.round(100*(e-.25))/100))},className:
|
|
10
|
-
/* @__PURE__ */m("select",{value:L?"fit":v.includes(Math.round(100*
|
|
11
|
-
/* @__PURE__ */u("option",{value:"fit",children:
|
|
12
|
-
/* @__PURE__ */u("button",{type:"button","aria-label":x.zoomIn,title:x.zoomIn,onClick:()=>{S(!1),D(e=>Math.min(4,Math.round(100*(e+.25))/100))},className:
|
|
13
|
-
/* @__PURE__ */u("button",{type:"button",onClick:()=>S(!0),"aria-pressed":L,className:
|
|
9
|
+
/* @__PURE__ */u("button",{type:"button","aria-label":x.zoomOut,title:x.zoomOut,onClick:()=>{S(!1),D(e=>Math.max(.3,Math.round(100*(e-.25))/100))},className:H,children:/* @__PURE__ */u("span",{"aria-hidden":"true",children:"−"})}),
|
|
10
|
+
/* @__PURE__ */m("select",{value:L?"fit":v.includes(Math.round(100*A))?Math.round(100*A):"custom",onChange:e=>{const t=e.target.value;"fit"!==t?"custom"!==t&&(S(!1),D(Number(t)/100)):S(!0)},className:"bg-transparent hover:bg-gray-200 rounded px-1 py-1 text-gray-600 tabular-nums cursor-pointer focus:outline-none focus:ring-1 focus:ring-blue-400","aria-label":x.zoom,title:x.zoom,children:[
|
|
11
|
+
/* @__PURE__ */u("option",{value:"fit",children:O}),!L&&!v.includes(Math.round(100*A))&&/* @__PURE__ */m("option",{value:"custom",children:[Math.round(100*A),"%"]}),v.map(e=>/* @__PURE__ */m("option",{value:e,children:[e,"%"]},e))]}),
|
|
12
|
+
/* @__PURE__ */u("button",{type:"button","aria-label":x.zoomIn,title:x.zoomIn,onClick:()=>{S(!1),D(e=>Math.min(4,Math.round(100*(e+.25))/100))},className:H,children:/* @__PURE__ */u("span",{"aria-hidden":"true",children:"+"})}),
|
|
13
|
+
/* @__PURE__ */u("button",{type:"button",onClick:()=>S(!0),"aria-pressed":L,className:H+(L?" bg-gray-200 text-gray-900":""),title:x.fitHint,children:x.fit}),
|
|
14
14
|
/* @__PURE__ */u("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
|
|
15
|
-
/* @__PURE__ */m("button",{type:"button",onClick:()=>{if(!
|
|
15
|
+
/* @__PURE__ */m("button",{type:"button",onClick:()=>{if(!M)return;const e=window.open("","_blank");if(!e)return void n.error(x.allowPopups);const t=[];for(let e=1;e<=_;e++)t.push(M.getPage(e).then(e=>{const t=e.getViewport({scale:2}),n=document.createElement("canvas");return n.width=t.width,n.height=t.height,e.render({canvas:n,canvasContext:n.getContext("2d"),viewport:t}).promise.then(()=>n.toDataURL())}));Promise.all(t).then(t=>{var n;e.document.write(`<html><head><title>${n=o,n.replace(/[&<>"]/g,e=>({"&":"&","<":"<",">":">",'"':"""}[e]))}</title><style>@media print{body{margin:0}img{width:100%;page-break-after:always}}</style></head><body>`),e.document.write(t.map(e=>`<img src="${e}"/>`).join("")),e.document.write("</body></html>"),e.document.close(),setTimeout(()=>{e.print(),e.close()},300)})},className:H,children:[
|
|
16
16
|
/* @__PURE__ */u(e,{name:"print",className:"h-3.5 w-3.5",strokeWidth:1.5}),x.print]}),
|
|
17
|
-
/* @__PURE__ */m("button",{type:"button",onClick:h??(()=>{const e=document.createElement("a");e.href=a,e.download=o,e.click()}),className:
|
|
18
|
-
/* @__PURE__ */u(e,{name:"download",className:"h-3.5 w-3.5",strokeWidth:1.5}),x.download]}),p&&/* @__PURE__ */m("button",{type:"button",onClick:p,className:
|
|
17
|
+
/* @__PURE__ */m("button",{type:"button",onClick:h??(()=>{const e=document.createElement("a");e.href=a,e.download=o,e.click()}),className:H,children:[
|
|
18
|
+
/* @__PURE__ */u(e,{name:"download",className:"h-3.5 w-3.5",strokeWidth:1.5}),x.download]}),p&&/* @__PURE__ */m("button",{type:"button",onClick:p,className:H,children:[
|
|
19
19
|
/* @__PURE__ */u(e,{name:"email",className:"h-3.5 w-3.5",strokeWidth:1.5}),x.email]})]}),
|
|
20
|
-
/* @__PURE__ */u("div",{ref:N,className:"flex-1 overflow-auto bg-gray-100 outline-none",tabIndex:0,onWheel:e=>{if(!
|
|
20
|
+
/* @__PURE__ */u("div",{ref:N,className:"flex-1 overflow-auto bg-gray-100 outline-none",tabIndex:0,onWheel:e=>{if(!M)return;if(e.ctrlKey||e.metaKey)return;const t=N.current;if(!t)return;const n=t.scrollTop<=0,r=t.scrollTop+t.clientHeight>=t.scrollHeight-1;e.deltaY>0&&r&&E<_?(e.preventDefault(),z(e=>Math.min(_,e+1)),requestAnimationFrame(()=>{N.current&&(N.current.scrollTop=0)})):e.deltaY<0&&n&&E>1&&(e.preventDefault(),z(e=>Math.max(1,e-1)),requestAnimationFrame(()=>{N.current&&(N.current.scrollTop=N.current.scrollHeight)}))},onKeyDown:e=>{if(!M)return;const t=(document.activeElement?.tagName||"").toLowerCase();"input"===t||"textarea"===t||document.activeElement?.isContentEditable||("PageDown"===e.key||"ArrowRight"===e.key?E<_&&(e.preventDefault(),z(e=>Math.min(_,e+1))):"PageUp"===e.key||"ArrowLeft"===e.key?E>1&&(e.preventDefault(),z(e=>Math.max(1,e-1))):"Home"===e.key?(e.preventDefault(),z(1)):"End"===e.key&&(e.preventDefault(),z(_)))},children:W?/* @__PURE__ */u(t,{size:"sm",padding:"",className:"h-full",label:x.loading}):/* @__PURE__ */m("div",{className:"min-h-full flex items-center justify-center p-4",children:[
|
|
21
21
|
/* @__PURE__ */u("style",{children:'\n.preview-pdf-textlayer {\n position: absolute;\n inset: 0;\n overflow: clip;\n line-height: 1;\n text-align: initial;\n text-size-adjust: none;\n forced-color-adjust: none;\n transform-origin: 0 0;\n caret-color: CanvasText;\n --min-font-size: 1;\n --text-scale-factor: calc(var(--total-scale-factor, 1) * var(--min-font-size));\n --min-font-size-inv: calc(1 / var(--min-font-size));\n}\n.preview-pdf-textlayer :is(span, br) {\n color: transparent;\n position: absolute;\n white-space: pre;\n cursor: text;\n transform-origin: 0% 0%;\n}\n.preview-pdf-textlayer > :not(.markedContent),\n.preview-pdf-textlayer .markedContent span:not(.markedContent) {\n z-index: 1;\n --font-height: 0;\n font-size: calc(var(--text-scale-factor) * var(--font-height));\n --scale-x: 1;\n --rotate: 0deg;\n transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));\n}\n.preview-pdf-textlayer .markedContent {\n display: contents;\n}\n.preview-pdf-textlayer span[role="img"] {\n user-select: none;\n cursor: default;\n}\n.preview-pdf-textlayer ::selection {\n background: rgba(0, 80, 255, 0.25);\n}\n.preview-pdf-textlayer br::selection {\n background: transparent;\n}\n.preview-pdf-textlayer .endOfContent {\n display: block;\n position: absolute;\n inset: 100% 0 0;\n z-index: 0;\n cursor: default;\n user-select: none;\n}\n.preview-pdf-textlayer.selecting .endOfContent {\n top: 0;\n}\n'}),
|
|
22
22
|
/* @__PURE__ */m("div",{className:"relative shadow-lg rounded",children:[
|
|
23
23
|
/* @__PURE__ */u("canvas",{ref:k,className:"block rounded"}),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=["academic-cap","accent","accordion","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","box-item-alignment","box-justify","box-x-between","box-x-center","box-x-end","box-x-start","box-x-stretch","box-y-between","box-y-center","box-y-end","box-y-start","box-y-stretch","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","entrance-bounce","entrance-fade","entrance-flip","entrance-glide","entrance-reveal","entrance-rise","entrance-scale","entrance-spin","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","loop-marquee","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-fade-in","scroll-fade-out","scroll-move-down","scroll-move-up","scroll-parallax","scroll-point","scroll-text","scroll-zoom-in","scroll-zoom-out","search","select-all","send","separator-slash","separator-triangle","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"],e=new Set(a),r=a=>"string"==typeof a&&e.has(a),n=["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"],o=new Set(n),d=a=>"string"==typeof a&&o.has(a);export{n as BRAND_ICON_NAMES,a as ICON_NAMES,d as isBrandIconName,r as isIconName};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Card as e}from"./chunk-
|
|
1
|
+
import{Card as e}from"./chunk-CEIIQRK5.js";import{Select_default as l}from"./chunk-VJXPT53M.js";import{FormField as a}from"./chunk-6KBDNYRW.js";import{Checkbox_default as r}from"./chunk-CGZBDI6C.js";import{Banner as i}from"./chunk-YU52WMSH.js";import{Input_default as c}from"./chunk-ZKGUBIBT.js";import{Button_default as s}from"./chunk-EVYD6UFQ.js";import{useState as d}from"react";import{jsx as n,jsxs as t}from"react/jsx-runtime";var h=[{name:"Mechanical keyboard",qty:1,price:129},{name:"USB-C cable (2m)",qty:2,price:12},{name:"Laptop stand",qty:1,price:48}];function m(){const[m,o]=d(!0),[p,u]=d("us"),y=h.reduce((e,l)=>e+l.qty*l.price,0),g=y+9;/* @__PURE__ */
|
|
2
2
|
return n("div",{className:"h-full overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */t("div",{className:"mx-auto max-w-5xl space-y-5",children:[
|
|
3
3
|
/* @__PURE__ */n("h1",{className:"text-xl font-semibold text-gray-900",children:"Checkout"}),
|
|
4
4
|
/* @__PURE__ */t("div",{className:"grid grid-cols-1 gap-5 lg:grid-cols-3",children:[
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{IconButton_default as e}from"./chunk-SV5RRBVA.js";import{CloseGlyph as t}from"./chunk-
|
|
1
|
+
import{IconButton_default as e}from"./chunk-SV5RRBVA.js";import{CloseGlyph as t}from"./chunk-OVD3ECM7.js";import{humanSize as n,useFileIntake as r,FileIntakeAlert as a}from"./chunk-V4XR4MOS.js";import{Button_default as s}from"./chunk-EVYD6UFQ.js";import{Icon as i}from"./chunk-JOAKKXTL.js";import{useShellStrings as c}from"./chunk-JSHMIMAJ.js";import{useRef as l,useEffect as o}from"react";import{jsx as d,jsxs as u}from"react/jsx-runtime";function m({className:e="h-4 w-4"}){/* @__PURE__ */
|
|
2
2
|
return d(i,{name:"attach",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e})}function p({className:e="h-4 w-4"}){/* @__PURE__ */
|
|
3
3
|
return d(i,{name:"page",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e})}function h({intake:e,dropLabel:t,className:n="",children:r}){const a=c().files;/* @__PURE__ */
|
|
4
4
|
return u("div",{...e.zoneProps,...e.pasteProps,className:`relative ${n}`,children:[r,
|