efficient-shell 8.18.1 → 8.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/README.md +25 -8
  2. package/dist/{Browser-EE7TUWTN.js → Browser-MISWU3ND.js} +14 -14
  3. package/dist/Calculator-PH6NVEEZ.js +29 -0
  4. package/dist/{CurrencyConverter-NDMWLX7M.js → CurrencyConverter-PD2CEL6V.js} +8 -8
  5. package/dist/{Documents-XSDBD4T7.js → Documents-FQ6H7THR.js} +5 -5
  6. package/dist/{Files-B5HKRQN3.js → Files-R2657GKS.js} +24 -24
  7. package/dist/{Notepad-2SXHFPFX.js → Notepad-S3OWN7B7.js} +10 -10
  8. package/dist/{PdfViewer-456B27TB.js → PdfViewer-GODDA4GG.js} +1 -1
  9. package/dist/{PomodoroTimer-L72X22QZ.js → PomodoroTimer-JEQTTMGA.js} +57 -57
  10. package/dist/{Preview-DJHBCRKW.js → Preview-DR4RDUTU.js} +39 -39
  11. package/dist/Sidebar-SJMMY2Y2.js +43 -0
  12. package/dist/{Spreadsheet-VHFYYFLK.js → Spreadsheet-XJX6HY6R.js} +13 -13
  13. package/dist/{Stock-C3DDF3V3.js → Stock-VCMJMUCW.js} +7 -7
  14. package/dist/{Weather-2XG5AIW2.js → Weather-HF3E3N3M.js} +16 -16
  15. package/dist/{WorldClock-2MU5CFUN.js → WorldClock-PM5CJQSL.js} +6 -6
  16. package/dist/ai/index.js +11 -11
  17. package/dist/apps/index.js +1 -1
  18. package/dist/bin/media-host-check.js +1 -1
  19. package/dist/bin/ui-check.js +1 -1
  20. package/dist/brand.css +1 -1
  21. package/dist/charts/BoxPlotChart.js +1 -1
  22. package/dist/charts/CandlestickChart.js +1 -1
  23. package/dist/charts/CartesianPlot.js +1 -1
  24. package/dist/charts/ChartBrush.js +1 -1
  25. package/dist/charts/ChartFrame.js +1 -1
  26. package/dist/charts/ChartSkeleton.js +1 -1
  27. package/dist/charts/ChordChart.js +1 -1
  28. package/dist/charts/ColumnChart.js +1 -1
  29. package/dist/charts/FunnelChart.js +1 -1
  30. package/dist/charts/HeatmapChart.js +1 -1
  31. package/dist/charts/HistogramChart.js +1 -1
  32. package/dist/charts/Meter.js +1 -1
  33. package/dist/charts/PieChart.js +1 -1
  34. package/dist/charts/RadarChart.js +1 -1
  35. package/dist/charts/RadialBarChart.js +1 -1
  36. package/dist/charts/RangeChart.js +1 -1
  37. package/dist/charts/RankedBars.js +1 -1
  38. package/dist/charts/SankeyChart.js +1 -1
  39. package/dist/charts/ScatterChart.js +1 -1
  40. package/dist/charts/StatTile.js +1 -1
  41. package/dist/charts/SunburstChart.js +1 -1
  42. package/dist/charts/TimeSeriesChart.js +1 -1
  43. package/dist/charts/TreemapChart.js +1 -1
  44. package/dist/charts/WaterfallChart.js +1 -1
  45. package/dist/{chunk-KH6GERFP.js → chunk-2GPXC6JX.js} +1 -1
  46. package/dist/{chunk-WDIFRAQM.js → chunk-2SHDXTB6.js} +4 -4
  47. package/dist/{chunk-QTNPOMXM.js → chunk-36DYXGQI.js} +5 -5
  48. package/dist/{chunk-O5PJELY7.js → chunk-3AVHOYQZ.js} +1 -1
  49. package/dist/{chunk-KW4VUPJV.js → chunk-3KDY6V6I.js} +8 -8
  50. package/dist/{chunk-Z7PS4QUO.js → chunk-3NWCVZRK.js} +6 -6
  51. package/dist/{chunk-JSVYN6D6.js → chunk-3P7SBAKK.js} +1 -1
  52. package/dist/{chunk-YFY2LSWZ.js → chunk-3RM3D2P3.js} +6 -6
  53. package/dist/{chunk-DQEST7MN.js → chunk-3V6UFR7M.js} +1 -1
  54. package/dist/{chunk-2ZIVFBJN.js → chunk-3WM23XSR.js} +6 -6
  55. package/dist/{chunk-TDAFCJY7.js → chunk-47MFBFIX.js} +4 -4
  56. package/dist/{chunk-BVDGHZ4H.js → chunk-4MTC6HA5.js} +2 -2
  57. package/dist/{chunk-DBBUHXRT.js → chunk-4TER5BHR.js} +1 -1
  58. package/dist/{chunk-3NU2B2WM.js → chunk-55DONELU.js} +9 -9
  59. package/dist/{chunk-F2HM7SV4.js → chunk-5GMWOYTF.js} +1 -1
  60. package/dist/{chunk-EA37JL6P.js → chunk-5JQCPUEO.js} +1 -1
  61. package/dist/{chunk-YGITR6I5.js → chunk-5TVF4BCM.js} +1 -1
  62. package/dist/{chunk-XW56UIDQ.js → chunk-5VUVKP55.js} +6 -6
  63. package/dist/{chunk-NQ46AZ3D.js → chunk-6SBPGUSR.js} +1 -1
  64. package/dist/{chunk-4JCNWUVZ.js → chunk-7HTURXIA.js} +2 -2
  65. package/dist/{chunk-A3MOA3T7.js → chunk-7RD623PT.js} +1 -1
  66. package/dist/{chunk-FJUFQXDS.js → chunk-7SPX7DLO.js} +21 -21
  67. package/dist/{chunk-DGTP6BGV.js → chunk-ABD5X73I.js} +1 -1
  68. package/dist/{chunk-UNDHDLWB.js → chunk-AILWMDWP.js} +1 -1
  69. package/dist/{chunk-HKAWQF7O.js → chunk-AK632G3F.js} +7 -7
  70. package/dist/{chunk-SACUPX6L.js → chunk-AZWEWGYG.js} +3 -3
  71. package/dist/chunk-B36HEVMT.js +28 -0
  72. package/dist/{chunk-ABD34D3N.js → chunk-B5MOPSMW.js} +3 -3
  73. package/dist/{chunk-R6WJ2NTT.js → chunk-BIEKHPZ5.js} +72 -72
  74. package/dist/chunk-BLO7KTPH.js +1 -0
  75. package/dist/chunk-BZWTFLQD.js +15 -0
  76. package/dist/{chunk-LWGNNVDA.js → chunk-CDBS47XI.js} +1 -1
  77. package/dist/{chunk-K2DUF2AR.js → chunk-CHOMUTLT.js} +1 -1
  78. package/dist/{chunk-U5YJREQJ.js → chunk-CIGHIX6Z.js} +10 -10
  79. package/dist/{chunk-P5ILG2DA.js → chunk-CQAXN3HN.js} +1 -1
  80. package/dist/{chunk-QTK5NV7L.js → chunk-CQXKO5PB.js} +1 -1
  81. package/dist/{chunk-6JLZMVVE.js → chunk-CVNM25BM.js} +5 -5
  82. package/dist/{chunk-TPDOOCFS.js → chunk-CY5N5OA3.js} +1 -1
  83. package/dist/{chunk-5WYCXSUM.js → chunk-D6FSZBJ5.js} +1 -1
  84. package/dist/chunk-DAJTVAWO.js +11 -0
  85. package/dist/{chunk-QCP4F6EF.js → chunk-DBDJQVQM.js} +1 -1
  86. package/dist/{chunk-HBBTB6RW.js → chunk-DBLJIK5J.js} +1 -1
  87. package/dist/{chunk-2VFRVO3N.js → chunk-DCNXCFAD.js} +28 -28
  88. package/dist/{chunk-TSOK3QNK.js → chunk-E2YGQAFU.js} +1 -1
  89. package/dist/{chunk-VSQSBY2P.js → chunk-ENVCMR3M.js} +5 -5
  90. package/dist/{chunk-Y67ILJVG.js → chunk-EVPOZQOI.js} +1 -1
  91. package/dist/{chunk-WVWIRII2.js → chunk-EXVR3BWW.js} +9 -9
  92. package/dist/{chunk-HIDOSOI4.js → chunk-F22KWATP.js} +1 -1
  93. package/dist/{chunk-AAYACT5T.js → chunk-F4PESM6A.js} +4 -4
  94. package/dist/{chunk-KAELFRN4.js → chunk-F5VXS5JO.js} +1 -1
  95. package/dist/{chunk-EOPPYQIT.js → chunk-FBSQABH2.js} +1 -1
  96. package/dist/{chunk-BG5BCF64.js → chunk-FFZ7KPIV.js} +7 -7
  97. package/dist/{chunk-NU55QIUV.js → chunk-G3IG4X4Z.js} +1 -1
  98. package/dist/chunk-GMEOULVW.js +11 -0
  99. package/dist/{chunk-ZVK74ERI.js → chunk-H5GQWWPA.js} +1 -1
  100. package/dist/chunk-H5VGRHNT.js +9 -0
  101. package/dist/{chunk-2MMEGCYI.js → chunk-HFSEPYFH.js} +1 -1
  102. package/dist/chunk-HLGE6TVE.js +4 -0
  103. package/dist/{chunk-HNFLUVVM.js → chunk-HME2P5VX.js} +22 -22
  104. package/dist/{chunk-ZQGPJZY4.js → chunk-HT33WUTK.js} +1 -1
  105. package/dist/{chunk-37DRDM4D.js → chunk-IGH6DECG.js} +13 -13
  106. package/dist/{chunk-EO2XHSIK.js → chunk-IH4SVMXJ.js} +2 -2
  107. package/dist/{chunk-CG4KTWP4.js → chunk-IM7QHAXT.js} +5 -5
  108. package/dist/{chunk-I5T3A4KI.js → chunk-J67YIQEN.js} +1 -1
  109. package/dist/{chunk-A3R6DKQ5.js → chunk-JJ6IUIYX.js} +1 -1
  110. package/dist/{chunk-7NOU275V.js → chunk-JSB5G2XQ.js} +2 -2
  111. package/dist/{chunk-LDHYCVMV.js → chunk-KATRRQD5.js} +1 -1
  112. package/dist/{chunk-APMBWBD7.js → chunk-KB6BGPQK.js} +1 -1
  113. package/dist/{chunk-MVYOBV4I.js → chunk-KE6NYTGF.js} +2 -2
  114. package/dist/chunk-KKZZAK76.js +1 -0
  115. package/dist/{chunk-DTJQHW3Q.js → chunk-KZ6P7WC6.js} +1 -1
  116. package/dist/{chunk-K5UPORAA.js → chunk-L2XGVLO7.js} +1 -1
  117. package/dist/{chunk-2QYQDCJE.js → chunk-LMOPRRQY.js} +10 -10
  118. package/dist/{chunk-3XLDWJDG.js → chunk-MBXTOYMX.js} +6 -6
  119. package/dist/{chunk-BJGD2ZWK.js → chunk-MQADQ4YF.js} +1 -1
  120. package/dist/{chunk-SGVIMTN6.js → chunk-MRBC7GLE.js} +17 -17
  121. package/dist/{chunk-CGY5RNAF.js → chunk-MVCNSGM4.js} +2 -2
  122. package/dist/chunk-N7GAQVSH.js +8 -0
  123. package/dist/{chunk-SLC3KT7F.js → chunk-N7KL336H.js} +6 -6
  124. package/dist/{chunk-HQIUFRWO.js → chunk-NDOW3VA6.js} +1 -1
  125. package/dist/{chunk-NADUURUA.js → chunk-NGVODCMV.js} +1 -1
  126. package/dist/chunk-NI76QOA2.js +2 -0
  127. package/dist/{chunk-GVYJYXVH.js → chunk-NZ67C5OK.js} +10 -10
  128. package/dist/{chunk-2RKTVTJJ.js → chunk-O3HXASSH.js} +1 -1
  129. package/dist/{chunk-HQNR4JQG.js → chunk-O43QLNPL.js} +1 -1
  130. package/dist/{chunk-Q6BY4BME.js → chunk-OAYHU7YN.js} +1 -1
  131. package/dist/{chunk-QMLG5XKP.js → chunk-OHSJWKNV.js} +5 -5
  132. package/dist/chunk-PTMPGFUQ.js +8 -0
  133. package/dist/{chunk-SS7BG7BS.js → chunk-PXCARPLZ.js} +1 -1
  134. package/dist/{chunk-73FD77RD.js → chunk-Q2S76TZH.js} +1 -1
  135. package/dist/{chunk-KIYO4U4T.js → chunk-Q6YPDR7U.js} +12 -12
  136. package/dist/{chunk-AG3ALTVD.js → chunk-Q75PSCZ5.js} +10 -10
  137. package/dist/{chunk-6EAVTBKE.js → chunk-QKHTL3FQ.js} +4 -4
  138. package/dist/{chunk-LJVLMM3Q.js → chunk-QSPW43OC.js} +7 -7
  139. package/dist/{chunk-ZXI4CWTI.js → chunk-R6L6PKQP.js} +1 -1
  140. package/dist/chunk-R7XAMDBY.js +2 -0
  141. package/dist/{chunk-Z3ZIVVKE.js → chunk-RC5SGXXR.js} +1 -1
  142. package/dist/{chunk-LAHK4WVH.js → chunk-RHYMHVFS.js} +8 -8
  143. package/dist/{chunk-MWGVFDEV.js → chunk-RQ5RVKRO.js} +2 -2
  144. package/dist/{chunk-2YZ3ITNG.js → chunk-RV6N2Y52.js} +2 -2
  145. package/dist/{chunk-JBMGI5YX.js → chunk-RZT7QES5.js} +4 -4
  146. package/dist/{chunk-S2PKTGHB.js → chunk-SIQSD3QT.js} +6 -6
  147. package/dist/chunk-TCB2J3PS.js +9 -0
  148. package/dist/{chunk-JLDGZFNY.js → chunk-TKBP5HRY.js} +12 -12
  149. package/dist/chunk-TMTTEBZV.js +19 -0
  150. package/dist/{chunk-RPY7FBYY.js → chunk-U62AWCZR.js} +1 -1
  151. package/dist/{chunk-EFUQ4KAH.js → chunk-UELYZT4T.js} +1 -1
  152. package/dist/{chunk-HKTU536H.js → chunk-UEMGH6EO.js} +1 -1
  153. package/dist/{chunk-FJ72DO6A.js → chunk-UEUCGC6G.js} +1 -1
  154. package/dist/{chunk-HMA4ZSCS.js → chunk-VO3HT6IK.js} +1 -1
  155. package/dist/{chunk-UB6TIA2R.js → chunk-VO3KDIDR.js} +1 -1
  156. package/dist/{chunk-5N6VSOZV.js → chunk-VWVFKMU7.js} +1 -1
  157. package/dist/{chunk-PEEVPAIJ.js → chunk-VXWCX65A.js} +1 -1
  158. package/dist/chunk-VYKITRFG.js +12 -0
  159. package/dist/{chunk-56CQPUIJ.js → chunk-WGSIYW63.js} +14 -14
  160. package/dist/chunk-WL3AJ2UB.js +8 -0
  161. package/dist/chunk-WMO2JQNL.js +8 -0
  162. package/dist/{chunk-WVSLFX37.js → chunk-XBXEK6XP.js} +7 -7
  163. package/dist/{chunk-V7NVQ3Z7.js → chunk-XSFQR374.js} +1 -1
  164. package/dist/{chunk-QAR4NYW6.js → chunk-XUK35DKG.js} +1 -1
  165. package/dist/{chunk-USE4HNZ2.js → chunk-XXBGWT7L.js} +1 -1
  166. package/dist/{chunk-I74FRKHQ.js → chunk-Y65MPP3M.js} +1 -1
  167. package/dist/{chunk-4NB3WHWK.js → chunk-YUIWG2QT.js} +1 -1
  168. package/dist/{chunk-6MN2JR25.js → chunk-YXS67QZO.js} +8 -8
  169. package/dist/{chunk-4S724CEA.js → chunk-YZCRHDOB.js} +1 -1
  170. package/dist/{chunk-W4YNYZDQ.js → chunk-Z4BJRPAF.js} +2 -2
  171. package/dist/{chunk-V5GDA4I6.js → chunk-Z6V3EY6F.js} +3 -3
  172. package/dist/{chunk-UJULZQM2.js → chunk-ZDJNTOUS.js} +1 -1
  173. package/dist/{chunk-ZVY4J3PU.js → chunk-ZLHF5XRR.js} +7 -7
  174. package/dist/{chunk-MPN267PR.js → chunk-ZNZDV6SN.js} +1 -1
  175. package/dist/data/DataTable.js +1 -1
  176. package/dist/data/Kanban.js +1 -1
  177. package/dist/data/ListFooter.js +1 -1
  178. package/dist/data/ListLoadError.js +1 -1
  179. package/dist/data/Pagination.js +1 -1
  180. package/dist/file-intake/index.js +1 -1
  181. package/dist/forms/BorderInput.js +1 -1
  182. package/dist/forms/BrandAssetEditor.js +1 -1
  183. package/dist/forms/Calendar.js +1 -1
  184. package/dist/forms/ColorPicker.js +1 -1
  185. package/dist/forms/ComposerAttachments.js +1 -1
  186. package/dist/forms/CornersInput.js +1 -1
  187. package/dist/forms/DatePicker.js +1 -1
  188. package/dist/forms/DateRangePicker.js +1 -1
  189. package/dist/forms/DateTimePicker.js +1 -1
  190. package/dist/forms/DisplayChips.js +1 -1
  191. package/dist/forms/FilePicker.js +1 -1
  192. package/dist/forms/FormErrorSummary.js +1 -1
  193. package/dist/forms/IconPicker.js +1 -1
  194. package/dist/forms/ImageFocusPoint.js +1 -1
  195. package/dist/forms/InputNumber.js +1 -1
  196. package/dist/forms/LinkPicker.js +1 -1
  197. package/dist/forms/MediaUploadField.js +1 -1
  198. package/dist/forms/MediaUploadGrid.js +1 -1
  199. package/dist/forms/MediaUsedInList.js +1 -1
  200. package/dist/forms/NumericKeypad.js +1 -1
  201. package/dist/forms/PositionInput.js +1 -1
  202. package/dist/forms/Select.js +1 -1
  203. package/dist/forms/SidesInput.js +1 -1
  204. package/dist/forms/Slider.js +1 -1
  205. package/dist/forms/Snippet.js +1 -1
  206. package/dist/forms/TagInput.js +1 -1
  207. package/dist/forms/TextToolbar.js +1 -1
  208. package/dist/forms/TimePicker.js +1 -1
  209. package/dist/forms/WidthsBar.js +1 -1
  210. package/dist/forms/mediaMoveItems.js +1 -1
  211. package/dist/forms/useFileIntake.js +1 -1
  212. package/dist/index.d.ts +16 -1
  213. package/dist/index.js +695 -695
  214. package/dist/locales/zh-Hans.js +1 -1
  215. package/dist/map/index.js +2 -2
  216. package/dist/page-tabs/index.js +4 -4
  217. package/dist/pdf/index.js +1 -1
  218. package/dist/shell/Accordion.js +1 -1
  219. package/dist/shell/AppUpdateBanner.js +1 -1
  220. package/dist/shell/Avatar.js +1 -1
  221. package/dist/shell/Banner.js +1 -1
  222. package/dist/shell/Breadcrumbs.js +1 -1
  223. package/dist/shell/BudgetBar.js +1 -1
  224. package/dist/shell/Card.js +1 -1
  225. package/dist/shell/ColoredBadge.js +1 -1
  226. package/dist/shell/ConfirmDialog.js +1 -1
  227. package/dist/shell/ContainerFillChart.js +1 -1
  228. package/dist/shell/CountBadge.js +1 -1
  229. package/dist/shell/Dialog.js +1 -1
  230. package/dist/shell/Drawer.js +1 -1
  231. package/dist/shell/EditableGrid.js +1 -1
  232. package/dist/shell/EmptyState.js +1 -1
  233. package/dist/shell/GlobalSearch.js +1 -1
  234. package/dist/shell/HelpCenter.js +1 -1
  235. package/dist/shell/IconRail.js +1 -1
  236. package/dist/shell/ImageLightbox.js +1 -1
  237. package/dist/shell/LanguageSelect.js +1 -1
  238. package/dist/shell/Markdown.js +1 -1
  239. package/dist/shell/MetricBar.js +1 -1
  240. package/dist/shell/MetricBarLegend.js +1 -1
  241. package/dist/shell/MilestoneTimeline.js +1 -1
  242. package/dist/shell/PageHeader.js +1 -1
  243. package/dist/shell/ProductionTimeline.js +1 -1
  244. package/dist/shell/ResizeHandle.js +1 -1
  245. package/dist/shell/Result.js +1 -1
  246. package/dist/shell/SearchableSelect.js +1 -1
  247. package/dist/shell/SettingReset.js +1 -1
  248. package/dist/shell/SettingRow.js +1 -1
  249. package/dist/shell/SidebarLayout.js +1 -1
  250. package/dist/shell/SidebarNav.js +1 -1
  251. package/dist/shell/SortableList.js +1 -1
  252. package/dist/shell/Statistic.js +1 -1
  253. package/dist/shell/TimeAgo.js +1 -1
  254. package/dist/shell/TimelineTrack.js +1 -1
  255. package/dist/shell/TransferProgress.js +1 -1
  256. package/dist/shell/Tree.js +1 -1
  257. package/dist/shell/language.js +1 -1
  258. package/dist/shell/strings.d.ts +3 -0
  259. package/dist/shell/strings.js +1 -1
  260. package/dist/shell/toast.js +1 -1
  261. package/dist/telemetry/index.js +1 -1
  262. package/dist/templates/AuthScreen.js +1 -1
  263. package/dist/templates/ChatTemplate.js +1 -1
  264. package/dist/templates/CheckoutTemplate.js +1 -1
  265. package/dist/templates/DashboardTemplate.js +1 -1
  266. package/dist/templates/DataTablePage.js +1 -1
  267. package/dist/templates/EmailTemplate.js +1 -1
  268. package/dist/templates/ErrorBoundary.js +1 -1
  269. package/dist/templates/ErrorPage.js +1 -1
  270. package/dist/templates/FormLayoutPage.js +1 -1
  271. package/dist/templates/GalleryTemplate.js +1 -1
  272. package/dist/ui/index.js +1 -1
  273. package/dist/version.js +1 -1
  274. package/package.json +1 -1
  275. package/dist/Calculator-YTIRFXXR.js +0 -29
  276. package/dist/Sidebar-YCSGGCLW.js +0 -43
  277. package/dist/chunk-7GCBMTP2.js +0 -4
  278. package/dist/chunk-B6BE4WSP.js +0 -8
  279. package/dist/chunk-BE4APEUI.js +0 -2
  280. package/dist/chunk-CKDFXYYY.js +0 -8
  281. package/dist/chunk-EUFALBK3.js +0 -1
  282. package/dist/chunk-FNQJO3HZ.js +0 -11
  283. package/dist/chunk-FTQ5DH5U.js +0 -8
  284. package/dist/chunk-GTRUBA2R.js +0 -1
  285. package/dist/chunk-GVKFLNRP.js +0 -12
  286. package/dist/chunk-MNQ6EPAR.js +0 -9
  287. package/dist/chunk-QSVKEONU.js +0 -2
  288. package/dist/chunk-QYGBWH5J.js +0 -15
  289. package/dist/chunk-VKLVHULL.js +0 -22
  290. package/dist/chunk-WEJFTUS7.js +0 -9
  291. package/dist/chunk-YULJ7F6Z.js +0 -19
  292. package/dist/chunk-ZGCLFQS5.js +0 -8
  293. package/dist/chunk-ZWQRFYE6.js +0 -11
@@ -1 +1 @@
1
- export{BoxPlotChart as default}from"../chunk-K5UPORAA.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-ZGCLFQS5.js";import"../chunk-MG7A3R75.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
1
+ export{BoxPlotChart as default}from"../chunk-L2XGVLO7.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-N7GAQVSH.js";import"../chunk-MG7A3R75.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TWVUQUUD.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{CandlestickChart as default}from"../chunk-2YZ3ITNG.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-ZGCLFQS5.js";import"../chunk-MG7A3R75.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
1
+ export{CandlestickChart as default}from"../chunk-RV6N2Y52.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-N7GAQVSH.js";import"../chunk-MG7A3R75.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TWVUQUUD.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{CartesianPlot as default}from"../chunk-ZGCLFQS5.js";import"../chunk-MG7A3R75.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
2
+ export{CartesianPlot as default}from"../chunk-N7GAQVSH.js";import"../chunk-MG7A3R75.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TWVUQUUD.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ChartBrush as default}from"../chunk-4JCNWUVZ.js";import"../chunk-TZFACUMR.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
2
+ export{ChartBrush as default}from"../chunk-7HTURXIA.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{ChartFrame as default}from"../chunk-6EAVTBKE.js";import"../chunk-NU55QIUV.js";import"../chunk-CNYAHYE6.js";import"../chunk-TZFACUMR.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
1
+ export{ChartFrame as default}from"../chunk-QKHTL3FQ.js";import"../chunk-G3IG4X4Z.js";import"../chunk-CNYAHYE6.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ChartSkeleton as default}from"../chunk-NU55QIUV.js";import"../chunk-TZFACUMR.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
2
+ export{ChartSkeleton as default}from"../chunk-G3IG4X4Z.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ChordChart as default,foldChord}from"../chunk-CKDFXYYY.js";import"../chunk-X3II54HU.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-7T3COEQK.js";import"../chunk-2LXTJXWC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
2
+ export{ChordChart as default,foldChord}from"../chunk-WMO2JQNL.js";import"../chunk-X3II54HU.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-7T3COEQK.js";import"../chunk-2LXTJXWC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ColumnChart as default}from"../chunk-B6BE4WSP.js";import"../chunk-465RRWBY.js";import"../chunk-NU55QIUV.js";import"../chunk-CNYAHYE6.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-ZGCLFQS5.js";import"../chunk-MG7A3R75.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
2
+ export{ColumnChart as default}from"../chunk-WL3AJ2UB.js";import"../chunk-465RRWBY.js";import"../chunk-G3IG4X4Z.js";import"../chunk-CNYAHYE6.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-N7GAQVSH.js";import"../chunk-MG7A3R75.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TWVUQUUD.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{FunnelChart as default}from"../chunk-U5YJREQJ.js";import"../chunk-CNYAHYE6.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
2
+ export{FunnelChart as default}from"../chunk-CIGHIX6Z.js";import"../chunk-CNYAHYE6.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{HeatmapChart as default}from"../chunk-ZWQRFYE6.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
2
+ export{HeatmapChart as default}from"../chunk-GMEOULVW.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TWVUQUUD.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{HistogramChart as default}from"../chunk-BE4APEUI.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-ZGCLFQS5.js";import"../chunk-MG7A3R75.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
1
+ export{HistogramChart as default}from"../chunk-R7XAMDBY.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-N7GAQVSH.js";import"../chunk-MG7A3R75.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TWVUQUUD.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{Meter as default}from"../chunk-5N6VSOZV.js";import"../chunk-TZFACUMR.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
1
+ export{Meter as default}from"../chunk-VWVFKMU7.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{PieChart as default}from"../chunk-LAHK4WVH.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
2
+ export{PieChart as default}from"../chunk-RHYMHVFS.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{RADAR_SERIES_CAP,RadarChart as default}from"../chunk-QYGBWH5J.js";import"../chunk-X3II54HU.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-7T3COEQK.js";import"../chunk-2LXTJXWC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-2JWPNR2U.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
2
+ export{RADAR_SERIES_CAP,RadarChart as default}from"../chunk-BZWTFLQD.js";import"../chunk-X3II54HU.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-7T3COEQK.js";import"../chunk-2LXTJXWC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-2JWPNR2U.js";import"../chunk-TWVUQUUD.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{RadialBarChart as default}from"../chunk-GVKFLNRP.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-2JWPNR2U.js";import"../chunk-TZFACUMR.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
2
+ export{RadialBarChart as default}from"../chunk-VYKITRFG.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-2JWPNR2U.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{RangeChart as default}from"../chunk-W4YNYZDQ.js";import"../chunk-VFC6QUEN.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-ZGCLFQS5.js";import"../chunk-MG7A3R75.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
1
+ export{RangeChart as default}from"../chunk-Z4BJRPAF.js";import"../chunk-VFC6QUEN.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-N7GAQVSH.js";import"../chunk-MG7A3R75.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TWVUQUUD.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{RankedBars as default}from"../chunk-ABD34D3N.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-TZFACUMR.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
1
+ export{RankedBars as default}from"../chunk-B5MOPSMW.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SankeyChart as default}from"../chunk-MNQ6EPAR.js";import"../chunk-X3II54HU.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-7T3COEQK.js";import"../chunk-2LXTJXWC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
2
+ export{SankeyChart as default}from"../chunk-H5VGRHNT.js";import"../chunk-X3II54HU.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-7T3COEQK.js";import"../chunk-2LXTJXWC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TWVUQUUD.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SCATTER_SERIES_CAP,ScatterChart as default}from"../chunk-FTQ5DH5U.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
2
+ export{SCATTER_SERIES_CAP,ScatterChart as default}from"../chunk-PTMPGFUQ.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TWVUQUUD.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{StatTile as default}from"../chunk-TSOK3QNK.js";import"../chunk-CKCDGSTC.js";import"../chunk-TZFACUMR.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
1
+ export{StatTile as default}from"../chunk-E2YGQAFU.js";import"../chunk-CKCDGSTC.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SunburstChart as default}from"../chunk-7GCBMTP2.js";import"../chunk-X3II54HU.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-7T3COEQK.js";import"../chunk-2LXTJXWC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
2
+ export{SunburstChart as default}from"../chunk-HLGE6TVE.js";import"../chunk-X3II54HU.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-7T3COEQK.js";import"../chunk-2LXTJXWC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{TimeSeriesChart as default}from"../chunk-YULJ7F6Z.js";import"../chunk-4JCNWUVZ.js";import"../chunk-CK2YOGUS.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-NU55QIUV.js";import"../chunk-CNYAHYE6.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-MG7A3R75.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
2
+ export{TimeSeriesChart as default}from"../chunk-TMTTEBZV.js";import"../chunk-CK2YOGUS.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-G3IG4X4Z.js";import"../chunk-CNYAHYE6.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-MG7A3R75.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TWVUQUUD.js";import"../chunk-7HTURXIA.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{TreemapChart as default}from"../chunk-BG5BCF64.js";import"../chunk-46BYGPGD.js";import"../chunk-X3II54HU.js";import"../chunk-CNYAHYE6.js";import"../chunk-7T3COEQK.js";import"../chunk-2LXTJXWC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
2
+ export{TreemapChart as default}from"../chunk-FFZ7KPIV.js";import"../chunk-46BYGPGD.js";import"../chunk-X3II54HU.js";import"../chunk-CNYAHYE6.js";import"../chunk-7T3COEQK.js";import"../chunk-2LXTJXWC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TWVUQUUD.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{WaterfallChart as default}from"../chunk-UB6TIA2R.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-ZGCLFQS5.js";import"../chunk-MG7A3R75.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
1
+ export{WaterfallChart as default}from"../chunk-VO3KDIDR.js";import"../chunk-P5BOTIJU.js";import"../chunk-DTJRIWFR.js";import"../chunk-N7GAQVSH.js";import"../chunk-MG7A3R75.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TWVUQUUD.js";import"../chunk-TZFACUMR.js";import"../chunk-KKZZAK76.js";import"../chunk-C3QOHMR6.js";
@@ -1,4 +1,4 @@
1
- import{IconButton_default as e}from"./chunk-HMZLRXLA.js";import{Icon as t}from"./chunk-42BBJJDP.js";import{Tooltip as r}from"./chunk-2LXTJXWC.js";import{useShellStrings as o}from"./chunk-GTRUBA2R.js";import{useId as i}from"react";import{jsxs as n,jsx as a}from"react/jsx-runtime";var s=['input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");function d({label:d,onReset:l,view:c="desktop",detail:b,disabled:m}){const f=o().settingView,u=i(),p="desktop"===c,h=p?f.resetName(d):f.inheritName(d),k=b?f.backTo(b):p?f.backToDefault:f.backToAuto;
1
+ import{IconButton_default as e}from"./chunk-HMZLRXLA.js";import{Icon as t}from"./chunk-42BBJJDP.js";import{Tooltip as r}from"./chunk-2LXTJXWC.js";import{useShellStrings as o}from"./chunk-KKZZAK76.js";import{useId as i}from"react";import{jsxs as n,jsx as a}from"react/jsx-runtime";var s=['input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");function d({label:d,onReset:l,view:c="desktop",detail:b,disabled:m}){const f=o().settingView,u=i(),p="desktop"===c,h=p?f.resetName(d):f.inheritName(d),k=b?f.backTo(b):p?f.backToDefault:f.backToAuto;
2
2
  /* @__PURE__ */
3
3
  return n(r,{content:f.tip(h,k),describe:!1,children:[
4
4
  /* @__PURE__ */a(e,{size:"sm","aria-label":h,"aria-describedby":u,disabled:m,className:"relative before:absolute before:-top-2.5 before:-bottom-2.5 before:-left-1 before:-right-4",onClick:e=>{l(),function(e){const t=e.currentTarget,r=t.closest("[data-setting-reset]")??t;let o=r.parentElement;for(let e=0;o&&e<4;e+=1,o=o.parentElement){const e=[...o.querySelectorAll(s)].find(e=>!r.contains(e)&&!e.closest('[aria-hidden="true"]'));if(e)return void e.focus()}}(e)},children:/* @__PURE__ */a(t,{name:"revert",size:16,"aria-hidden":"true"})}),
@@ -1,10 +1,10 @@
1
- import{LoadingSpinner as e}from"./chunk-Q5MD3VY6.js";import{useBrowserLayoutEffect as n}from"./chunk-D65T4H6J.js";import{useShellStrings as t,useShellLocale as r}from"./chunk-GTRUBA2R.js";import{formatPlain as a}from"./chunk-C3QOHMR6.js";import{useState as o,useMemo as l,useRef as i,Fragment as s}from"react";import{jsx as d,Fragment as c,jsxs as u}from"react/jsx-runtime";function m({items:m,columns:f,columnOf:p,getId:g,onMove:h,renderCard:x,onCardClick:y,sortInColumn:b,isLoading:v=!1,loadingText:N,emptyState:w,showColumnsWhenEmpty:k=!1,columnEmptyText:C,onAddItem:D,addItemText:j}){const E=t().kanban,I=r(),T=N??E.loading,A=C??E.dropHere,M=j??E.addItem,[O,R]=o(null),[$,H]=o(null),S=l(()=>{const e={};for(const n of f)e[n.value]=[];for(const n of m)(e[p(n)]??=[]).push(n);if(b)for(const n of Object.keys(e))e[n].sort(b);return e},[m,f,p,b]),q=()=>{R(null),H(null)},z=i(null),B=i(/* @__PURE__ */new Map);n(()=>{if(null!==O)return;const e=z.current;if(!e)return;const n=/* @__PURE__ */new Map,t=[];if(e.querySelectorAll("[data-kanban-card]").forEach(e=>{const r=e.dataset.kanbanCard,a=e.getBoundingClientRect();n.set(r,a);const o=B.current.get(r);if(o){const n=o.left-a.left,r=o.top-a.top;(n||r)&&t.push([e,n,r])}}),B.current=n,t.length){for(const[e,n,r]of t)e.style.transition="none",e.style.transform=`translate(${n}px, ${r}px)`;requestAnimationFrame(()=>{for(const[e]of t)e.style.transition="transform 200ms cubic-bezier(0.2, 0, 0, 1)",e.style.transform="",e.addEventListener("transitionend",()=>{e.style.transition="",e.style.transform=""},{once:!0})})}},[S,O]);return v?/* @__PURE__ */d(e,{size:"sm",padding:"p-4",label:T}):0!==m.length||k?/* @__PURE__ */d("div",{ref:z,className:"flex-1 overflow-x-auto grid-scroll",children:/* @__PURE__ */d("div",{className:"flex gap-3 h-full min-w-max pb-2",children:f.map(e=>{const n=S[e.value]??[],t=null!==$&&$.col===e.value,r=null!==O?n.findIndex(e=>g(e)===O):-1,o=t&&(-1===r||$.index!==r&&$.index!==r+1)?$.index:-1;/* @__PURE__ */
2
- return u("div",{className:"group flex flex-col w-72 shrink-0 rounded-xl bg-gray-50 border transition-colors "+(t?"border-blue-400 ring-2 ring-blue-300/60":"border-gray-200"),onDragOver:e=>{e.preventDefault();try{e.dataTransfer.dropEffect="move"}catch{}},onDrop:n=>{n.preventDefault(),(e=>{if(O&&$&&$.col===e){const n=(S[e]??[]).findIndex(e=>g(e)===O),t=-1!==n;if(!t||$.index!==n&&$.index!==n+1){const r=t&&$.index>n?$.index-1:$.index;h(O,e,r)}}q()})(e.value)},children:[
1
+ import{LoadingSpinner as e}from"./chunk-Q5MD3VY6.js";import{useBrowserLayoutEffect as n}from"./chunk-D65T4H6J.js";import{useShellStrings as t,useShellLocale as r}from"./chunk-KKZZAK76.js";import{formatPlain as a}from"./chunk-C3QOHMR6.js";import{useState as o,useMemo as l,useRef as i,Fragment as s}from"react";import{jsx as d,Fragment as c,jsxs as u}from"react/jsx-runtime";function m({items:m,columns:f,columnOf:p,getId:g,onMove:h,renderCard:x,onCardClick:y,sortInColumn:b,isLoading:v=!1,loadingText:N,emptyState:w,showColumnsWhenEmpty:k=!1,columnEmptyText:C,onAddItem:D,addItemText:j}){const E=t().kanban,I=r(),T=N??E.loading,A=C??E.dropHere,M=j??E.addItem,[O,$]=o(null),[H,K]=o(null),S=l(()=>{const e={};for(const n of f)e[n.value]=[];for(const n of m)(e[p(n)]??=[]).push(n);if(b)for(const n of Object.keys(e))e[n].sort(b);return e},[m,f,p,b]),q=()=>{$(null),K(null)},z=i(null),F=i(/* @__PURE__ */new Map);n(()=>{if(null!==O)return;const e=z.current;if(!e)return;const n=/* @__PURE__ */new Map,t=[];if(e.querySelectorAll("[data-kanban-card]").forEach(e=>{const r=e.dataset.kanbanCard,a=e.getBoundingClientRect();n.set(r,a);const o=F.current.get(r);if(o){const n=o.left-a.left,r=o.top-a.top;(n||r)&&t.push([e,n,r])}}),F.current=n,t.length){for(const[e,n,r]of t)e.style.transition="none",e.style.transform=`translate(${n}px, ${r}px)`;requestAnimationFrame(()=>{for(const[e]of t)e.style.transition="transform 200ms cubic-bezier(0.2, 0, 0, 1)",e.style.transform="",e.addEventListener("transitionend",()=>{e.style.transition="",e.style.transform=""},{once:!0})})}},[S,O]);return v?/* @__PURE__ */d(e,{size:"sm",padding:"p-4",label:T}):0!==m.length||k?/* @__PURE__ */d("div",{ref:z,className:"flex-1 overflow-x-auto grid-scroll",children:/* @__PURE__ */d("div",{className:"flex gap-3 h-full min-w-max pb-2",children:f.map(e=>{const n=S[e.value]??[],t=null!==H&&H.col===e.value,r=null!==O?n.findIndex(e=>g(e)===O):-1,o=t&&(-1===r||H.index!==r&&H.index!==r+1)?H.index:-1;/* @__PURE__ */
2
+ return u("div",{className:"group flex flex-col w-72 shrink-0 rounded-xl bg-gray-50 border transition-colors "+(t?"border-blue-400 ring-2 ring-blue-300/60":"border-gray-200"),onDragOver:e=>{e.preventDefault();try{e.dataTransfer.dropEffect="move"}catch{}},onDrop:n=>{n.preventDefault(),(e=>{if(O&&H&&H.col===e){const n=(S[e]??[]).findIndex(e=>g(e)===O),t=-1!==n;if(!t||H.index!==n&&H.index!==n+1){const r=t&&H.index>n?H.index-1:H.index;h(O,e,r)}}q()})(e.value)},children:[
3
3
  /* @__PURE__ */u("div",{className:`flex items-center justify-between px-3 py-2 rounded-t-xl text-sm font-medium ${e.accent??"text-gray-700 bg-gray-100"}`,children:[
4
4
  /* @__PURE__ */u("span",{className:"flex items-center gap-2",children:[
5
5
  /* @__PURE__ */d("span",{className:`h-2 w-2 rounded-full ${e.dot??"bg-gray-400"}`}),e.label]}),
6
6
  /* @__PURE__ */d("span",{className:"text-xs opacity-70",children:a(n.length,I)})]}),
7
- /* @__PURE__ */u("div",{className:"flex-1 overflow-y-auto p-2 space-y-2 min-h-[120px]",onDragEnter:()=>H(t=>t&&t.col===e.value&&t.index===n.length?t:{col:e.value,index:n.length}),children:[n.map((t,r)=>{const a=g(t),l=a===O;/* @__PURE__ */
7
+ /* @__PURE__ */u("div",{className:"flex-1 overflow-y-auto p-2 space-y-2 min-h-[120px]",onDragEnter:()=>K(t=>t&&t.col===e.value&&t.index===n.length?t:{col:e.value,index:n.length}),children:[n.map((t,r)=>{const a=g(t),l=a===O;/* @__PURE__ */
8
8
  return u(s,{children:[o===r&&/* @__PURE__ */d("div",{className:"h-0.5 rounded-full bg-blue-500","aria-hidden":!0}),
9
- /* @__PURE__ */d("div",{"data-kanban-card":a,draggable:!0,onDragStart:e=>{R(a);try{e.dataTransfer.effectAllowed="move"}catch{}},onDragEnter:t=>{t.stopPropagation();const a=null!==O?n.findIndex(e=>g(e)===O):-1,o=-1!==a&&a<r?r+1:r;H(n=>n&&n.col===e.value&&n.index===o?n:{col:e.value,index:o})},onDragEnd:q,onClick:y?()=>y(t):void 0,style:null===O?void 0:{opacity:l?.4:1,transition:"opacity 120ms ease"},className:"rounded-lg bg-white border border-gray-200 p-3 shadow-sm hover:border-blue-400 hover:shadow transition "+(y?"cursor-pointer":""),children:x(t)})]},a)}),n.length>0&&o===n.length&&/* @__PURE__ */d("div",{className:"h-0.5 rounded-full bg-blue-500","aria-hidden":!0}),0===n.length&&/* @__PURE__ */d("div",{className:"text-2xs text-center rounded-lg transition-all duration-150 "+(t?"border-2 border-dashed border-blue-300 bg-blue-50/50 text-blue-400 py-8":"text-gray-400 py-6"),children:A})]}),D&&/* @__PURE__ */d("div",{className:"p-2 pt-0",children:/* @__PURE__ */u("button",{type:"button",onClick:()=>D(e.value),className:"flex w-full items-center justify-center gap-1 rounded-lg px-2 min-h-8 py-1 text-xs font-medium text-gray-500 opacity-0 transition hover:bg-gray-100 hover:text-gray-700 focus-visible:opacity-100 group-hover:opacity-100",children:[
9
+ /* @__PURE__ */d("div",{"data-kanban-card":a,draggable:!0,onDragStart:e=>{$(a);try{e.dataTransfer.effectAllowed="move"}catch{}},onDragEnter:t=>{t.stopPropagation();const a=null!==O?n.findIndex(e=>g(e)===O):-1,o=-1!==a&&a<r?r+1:r;K(n=>n&&n.col===e.value&&n.index===o?n:{col:e.value,index:o})},onDragEnd:q,onClick:y?()=>y(t):void 0,style:null===O?void 0:{opacity:l?.4:1,transition:"opacity 120ms ease"},className:"rounded-lg bg-white border border-gray-200 p-3 shadow-sm hover:border-blue-400 hover:shadow transition "+(y?"cursor-pointer":""),children:x(t)})]},a)}),n.length>0&&o===n.length&&/* @__PURE__ */d("div",{className:"h-0.5 rounded-full bg-blue-500","aria-hidden":!0}),0===n.length&&/* @__PURE__ */d("div",{className:"text-2xs text-center rounded-lg transition-all duration-150 "+(t?"border-2 border-dashed border-blue-300 bg-blue-50/50 text-blue-400 py-8":"text-gray-400 py-6"),children:A})]}),D&&/* @__PURE__ */d("div",{className:"p-2 pt-0",children:/* @__PURE__ */u("button",{type:"button",onClick:()=>D(e.value),className:"flex w-full items-center justify-center gap-1 rounded-lg px-2 min-h-8 py-1 text-xs font-medium text-gray-500 opacity-0 transition hover:bg-gray-100 hover:text-gray-700 focus-visible:opacity-100 group-hover:opacity-100",children:[
10
10
  /* @__PURE__ */d("span",{"aria-hidden":!0,className:"text-sm leading-none",children:"+"}),M]})})]},e.value)})})}):/* @__PURE__ */d(c,{children:w??/* @__PURE__ */d("div",{className:"text-sm text-gray-500 p-4",children:E.empty})})}export{m as Kanban};
@@ -1,7 +1,7 @@
1
- import{IconButton_default as e}from"./chunk-HMZLRXLA.js";import{toast_default as t}from"./chunk-HIDOSOI4.js";import{Icon as r}from"./chunk-42BBJJDP.js";import{currentShellStrings as n,useShellStrings as a}from"./chunk-GTRUBA2R.js";import{useState as o,useRef as i,useEffect as l,useCallback as c}from"react";import{jsxs as d,jsx as u,Fragment as s}from"react/jsx-runtime";function m(e){let t=null;try{t=window.getSelection()}catch{return null}if(!t||0===t.rangeCount||t.isCollapsed)return null;const r=e;if(r&&"number"==typeof r.nodeType){let e=!1;for(let n=0;n<t.rangeCount&&!e;n++)e=t.getRangeAt(n).intersectsNode(r);if(!e)return null}const n=t.toString();if(!n.trim())return null;const a=document.createElement("div");for(let e=0;e<t.rangeCount;e++)a.appendChild(t.getRangeAt(e).cloneContents());return{text:n,html:a.innerHTML}}async function p(e,t){try{if(t&&"undefined"!=typeof ClipboardItem&&navigator.clipboard?.write)return await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([e],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})})]),!0;if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}const r=r=>{r.clipboardData?.setData("text/plain",e),t&&r.clipboardData?.setData("text/html",t),r.preventDefault()},n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.opacity="0",document.body.appendChild(n),n.select(),document.addEventListener("copy",r);try{return document.execCommand("copy")}catch{return!1}finally{document.removeEventListener("copy",r),n.remove()}}async function y(e,r,a){const o=await p(r,a),i=n().copy;return o?t.success(i.copiedLabel(e)):t.error(i.failed),o}var b={bordered:"border border-gray-300 bg-white",flat:"bg-gray-100"},f={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 h(){/* @__PURE__ */
1
+ import{IconButton_default as e}from"./chunk-HMZLRXLA.js";import{toast_default as t}from"./chunk-F22KWATP.js";import{Icon as r}from"./chunk-42BBJJDP.js";import{currentShellStrings as n,useShellStrings as a}from"./chunk-KKZZAK76.js";import{useState as o,useRef as i,useEffect as l,useCallback as c}from"react";import{jsxs as d,jsx as u,Fragment as s}from"react/jsx-runtime";function m(e){let t=null;try{t=window.getSelection()}catch{return null}if(!t||0===t.rangeCount||t.isCollapsed)return null;const r=e;if(r&&"number"==typeof r.nodeType){let e=!1;for(let n=0;n<t.rangeCount&&!e;n++)e=t.getRangeAt(n).intersectsNode(r);if(!e)return null}const n=t.toString();if(!n.trim())return null;const a=document.createElement("div");for(let e=0;e<t.rangeCount;e++)a.appendChild(t.getRangeAt(e).cloneContents());return{text:n,html:a.innerHTML}}async function p(e,t){try{if(t&&"undefined"!=typeof ClipboardItem&&navigator.clipboard?.write)return await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([e],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})})]),!0;if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}const r=r=>{r.clipboardData?.setData("text/plain",e),t&&r.clipboardData?.setData("text/html",t),r.preventDefault()},n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.opacity="0",document.body.appendChild(n),n.select(),document.addEventListener("copy",r);try{return document.execCommand("copy")}catch{return!1}finally{document.removeEventListener("copy",r),n.remove()}}async function y(e,r,a){const o=await p(r,a),i=n().copy;return o?t.success(i.copiedLabel(e)):t.error(i.failed),o}var b={bordered:"border border-gray-300 bg-white",flat:"bg-gray-100"},f={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 h(){/* @__PURE__ */
2
2
  return u(r,{name:"copy",className:"h-4 w-4","aria-hidden":"true"})}function x(){/* @__PURE__ */
3
- return u(r,{name:"check",className:"h-4 w-4 text-green-600","aria-hidden":"true"})}function g({value:r,children:n,symbol:m,label:y,size:g="md",variant:w="bordered",hideCopyButton:v=!1,onCopy:C,multiline:N=!1,id:k,"aria-describedby":T,className:B=""}){const[D,L]=o(!1),j=i(null),R=a().copy;l(()=>()=>{j.current&&clearTimeout(j.current)},[]);const A=c(async()=>{await p(r)?(L(!0),j.current&&clearTimeout(j.current),j.current=setTimeout(()=>{L(!1),j.current=null},2e3),C?.(r)):t.error(R.failed)},[r,C,R]),{box:E,button:I}=f[g],H=!v;/* @__PURE__ */
4
- return d("div",{id:H?void 0:k,"aria-describedby":H?void 0:T,className:["inline-flex max-w-full items-center rounded-md",b[w],E,B].filter(Boolean).join(" "),children:[null!=m&&""!==m&&/* @__PURE__ */u("span",{"aria-hidden":"true",className:"shrink-0 select-none font-mono text-gray-400",children:m}),
3
+ return u(r,{name:"check",className:"h-4 w-4 text-green-600","aria-hidden":"true"})}function g({value:r,children:n,symbol:m,label:y,size:g="md",variant:w="bordered",hideCopyButton:v=!1,onCopy:C,multiline:N=!1,id:k,"aria-describedby":T,className:L=""}){const[j,B]=o(!1),D=i(null),A=a().copy;l(()=>()=>{D.current&&clearTimeout(D.current)},[]);const E=c(async()=>{await p(r)?(B(!0),D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{B(!1),D.current=null},2e3),C?.(r)):t.error(A.failed)},[r,C,A]),{box:K,button:R}=f[g],Z=!v;/* @__PURE__ */
4
+ return d("div",{id:Z?void 0:k,"aria-describedby":Z?void 0:T,className:["inline-flex max-w-full items-center rounded-md",b[w],K,L].filter(Boolean).join(" "),children:[null!=m&&""!==m&&/* @__PURE__ */u("span",{"aria-hidden":"true",className:"shrink-0 select-none font-mono text-gray-400",children:m}),
5
5
  /* @__PURE__ */u("span",{className:"min-w-0 font-mono text-gray-800 "+(N?"whitespace-pre-wrap break-all":"truncate"),title:N?void 0:r,children:n??r}),!v&&/* @__PURE__ */d(s,{children:[
6
- /* @__PURE__ */u(e,{id:k,"aria-label":y?R.copyLabel(y):R.copy,"aria-describedby":T,onClick:A,className:`${I} text-gray-400`,children:/* @__PURE__ */u(D?x:h,{})}),
7
- /* @__PURE__ */u("span",{"aria-live":"polite",className:"sr-only",children:D?R.copied:""})]})]})}export{g as Snippet,y as copyToClipboard,m as selectionAt};
6
+ /* @__PURE__ */u(e,{id:k,"aria-label":y?A.copyLabel(y):A.copy,"aria-describedby":T,onClick:E,className:`${R} text-gray-400`,children:/* @__PURE__ */u(j?x:h,{})}),
7
+ /* @__PURE__ */u("span",{"aria-live":"polite",className:"sr-only",children:j?A.copied:""})]})]})}export{g as Snippet,y as copyToClipboard,m as selectionAt};
@@ -1,3 +1,3 @@
1
- import{Icon as e}from"./chunk-42BBJJDP.js";import{useShellStrings as t}from"./chunk-GTRUBA2R.js";import{useState as r,useRef as o,useEffect as c,useCallback as i}from"react";import{jsx as n}from"react/jsx-runtime";function a(e){const[t,n]=r(!1),a=o(void 0);c(()=>()=>clearTimeout(a.current),[]);return{copied:t,copy:i(t=>{t?.stopPropagation(),navigator.clipboard?.writeText(e).then(()=>{n(!0),clearTimeout(a.current),a.current=setTimeout(()=>n(!1),1500)},()=>{})},[e])}}function u({copied:t,className:r="w-4 h-4"}){/* @__PURE__ */
1
+ import{Icon as e}from"./chunk-42BBJJDP.js";import{useShellStrings as t}from"./chunk-KKZZAK76.js";import{useState as r,useRef as o,useEffect as c,useCallback as i}from"react";import{jsx as n}from"react/jsx-runtime";function a(e){const[t,n]=r(!1),a=o(void 0);c(()=>()=>clearTimeout(a.current),[]);return{copied:t,copy:i(t=>{t?.stopPropagation(),navigator.clipboard?.writeText(e).then(()=>{n(!0),clearTimeout(a.current),a.current=setTimeout(()=>n(!1),1500)},()=>{})},[e])}}function u({copied:t,className:r="w-4 h-4"}){/* @__PURE__ */
2
2
  return n(e,t?{name:"check",className:`${r} text-green-600`,"aria-hidden":"true"}:{name:"copy",className:r,"aria-hidden":"true"})}function m({text:e}){const{copied:r,copy:o}=a(e),c=t().copy;/* @__PURE__ */
3
3
  return n("button",{onClick:o,title:r?c.copiedValue:c.copyValue(e),className:"shrink-0 text-gray-400 hover:text-gray-600 transition-colors",children:/* @__PURE__ */n(u,{copied:r})})}export{m as CopyButton,u as CopyGlyph,a as useCopyText};
@@ -1,19 +1,19 @@
1
- import{escapeHtml as e}from"./chunk-BR22X7E5.js";import{TH_ONE_LINE as t}from"./chunk-7T3COEQK.js";import{useBrowserLayoutEffect as n}from"./chunk-D65T4H6J.js";import{useShellStrings as r}from"./chunk-GTRUBA2R.js";import{useRef as o,useState as l,useEffect as c,useCallback as a,useMemo as s}from"react";import{createPortal as i}from"react-dom";import{jsxs as u,jsx as h,Fragment as d}from"react/jsx-runtime";function w(e,t){const n=e[e.length-1];return n&&!n.some(e=>e.trim())?e:[...e,Array(t).fill("")]}function g({text:t,...n}){const r=s(()=>({__html:e(t)}),[t]);/* @__PURE__ */
2
- return h("div",{...n,dangerouslySetInnerHTML:r})}function m({columns:e,data:m,onChange:p,onColumnsChange:f,fixedRows:y=!1,minRows:b=15,maxHeight:v="260px",cellStyles:x,onFocusChange:M,onSelectionChange:D}){const k=o(null),C=r().grid,[E,$]=l(null);c(()=>{M?.(E)},[E,M]);const[L,S]=l({}),z=o(null),[A,N]=l({}),T=o(null),[O,R]=l(null),[K,P]=l(null),[F,I]=l(null),[X,j]=l(null),[H,Y]=l(null),B=o(null);n(()=>{const e=B.current;if(!e||e.row!==H?.row||e.col!==H?.col)return;B.current=null;const t=k.current?.querySelector(`[data-row="${e.row}"][data-col="${e.col}"]`);if(!t)return;t.focus();const n=document.createRange();n.selectNodeContents(t),n.collapse(!1);const r=window.getSelection();r?.removeAllRanges(),r?.addRange(n)},[H]);const[q,W]=l(null),[U,_]=l(null);c(()=>{D?.(q&&U?{anchor:q,end:U}:null)},[q,U,D]);const G=o(!1),[J,Q]=l(null),V=o(!1),Z=o({a:null,e:null});Z.current={a:q,e:U};const ee=q&&U&&(q.row!==U.row||q.col!==U.col),te=[...m];if(!y)for(;te.length<b;)te.push(Array(e.length).fill(""));const ne=a((t,n,r)=>{const o=te.map(e=>[...e]);for(;o.length<=t;)o.push(Array(e.length).fill(""));for(;o[t].length<e.length;)o[t].push("");o[t][n]=r,p(o)},[te,e.length,p]),re=a((e,t,n)=>{if(0!==e.button)return;const r=document.activeElement;if(r?.dataset?.row&&r?.dataset?.col){const e=parseInt(r.dataset.row),t=parseInt(r.dataset.col),n=r.textContent||"";if(n!==(te[e]?.[t]||"")){const r=te.map(e=>[...e]);r[e]&&(r[e][t]=n,p(r))}}G.current=!0,e.shiftKey&&q||W({row:t,col:n}),_({row:t,col:n})},[te,p,q]),oe=a((e,t)=>{G.current&&_({row:e,col:t})},[]);c(()=>{const e=()=>{G.current=!1};return window.addEventListener("mouseup",e),()=>window.removeEventListener("mouseup",e)},[]),c(()=>{const e=e=>{if(!e.ctrlKey&&!e.metaKey||"c"!==e.key)return;if(!q||!U)return;const t=window.getSelection();if(t&&t.toString().length>0&&!ee)return;const n=Math.min(q.row,U.row),r=Math.max(q.row,U.row),o=Math.min(q.col,U.col),l=Math.max(q.col,U.col),c=[];for(let e=n;e<=r;e++){const t=[];for(let n=o;n<=l;n++)t.push(te[e]?.[n]||"");c.push(t.join("\t"))}const a=c.join("\n");a&&(e.preventDefault(),navigator.clipboard.writeText(a))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[q,U,te,ee]),c(()=>{const t=t=>{if(!E)return;const n=document.activeElement;if(n?.isContentEditable)return;if(!k.current?.contains(n))return;const r=t.clipboardData?.getData("text/plain");if(!r)return;t.preventDefault();const o=r.split("\n").filter(e=>e).map(e=>e.split("\t")),l=te.map(e=>[...e]);for(let t=0;t<o.length;t++){const n=E.row+t;for(;l.length<=n;)l.push(Array(e.length).fill(""));for(;l[n].length<e.length;)l[n].push("");for(let r=0;r<o[t].length;r++){const c=E.col+r;if(c>=e.length)break;e[c].readOnly||(l[n][c]=o[t][r].trim())}}p(y?l:w(l,e.length)),W({row:E.row,col:E.col}),_({row:Math.min(E.row+o.length-1,l.length-1),col:Math.min(E.col+(o[0]?.length||1)-1,e.length-1)})};return window.addEventListener("paste",t),()=>window.removeEventListener("paste",t)},[E,te,e,p,y]);const le=a((t,n,r)=>{const o=t.clipboardData.getData("text/plain");if(!o)return;const l=o.split("\n").map(e=>e.split("\t"));if(l.length<=1&&l[0]?.length<=1)return;t.preventDefault();const c=te.map(e=>[...e]);for(let t=0;t<l.length;t++){const o=n+t;for(;c.length<=o;)c.push(Array(e.length).fill(""));for(;c[o].length<e.length;)c[o].push("");for(let n=0;n<l[t].length;n++){const a=r+n;if(a>=e.length)break;e[a].readOnly||(c[o][a]=l[t][n].trim())}}p(y?c:w(c,e.length))},[te,e,p,y]),ce=a((t,n,r)=>{let o=n,l=r;if("Tab"===t.key)t.preventDefault(),l=t.shiftKey?r-1:r+1,l>=e.length&&(l=0,o=n+1),l<0&&(l=e.length-1,o=n-1);else if("Enter"===t.key)t.preventDefault(),o=t.shiftKey?n-1:n+1;else if("ArrowDown"===t.key)t.preventDefault(),o=n+1;else if("ArrowUp"===t.key)t.preventDefault(),o=n-1;else if("ArrowLeft"===t.key)t.preventDefault(),l=r-1;else{if("ArrowRight"!==t.key){if("Delete"===t.key||"Backspace"===t.key){const o=t.target;if(o.isContentEditable)return void(o.textContent&&window.getSelection()?.toString()===o.textContent&&(t.preventDefault(),ne(n,r,"")));if(t.preventDefault(),q&&U){const t=Math.min(q.row,U.row),n=Math.max(q.row,U.row),r=Math.min(q.col,U.col),o=Math.max(q.col,U.col),l=te.map(e=>[...e]);for(let c=t;c<=n;c++)for(let t=r;t<=o;t++)l[c]&&!e[t]?.readOnly&&(l[c][t]="");p(l)}else ne(n,r,"");return}return}t.preventDefault(),l=r+1}for(;l>=0&&l<e.length&&e[l].readOnly;)l+="Tab"===t.key&&t.shiftKey?-1:1;if(o>=0&&o<te.length&&l>=0&&l<e.length){const e=k.current?.querySelector(`[data-row="${o}"][data-col="${l}"]`);e&&(e.focus({preventScroll:!0}),e.scrollIntoView({block:"nearest",inline:"nearest"}),$({row:o,col:l}),Y(null),W({row:o,col:l}),_({row:o,col:l}))}},[e,te,te.length,ne,q,U,p]),ae=a(t=>{if(!y&&t>=te.length-2){const t=te.map(e=>[...e]);for(let n=0;n<5;n++)t.push(Array(e.length).fill(""));p(t)}},[y,te,e.length,p]),[se,ie]=l(null);c(()=>{if(!se)return;const e=()=>ie(null);return window.addEventListener("pointerdown",e),()=>window.removeEventListener("pointerdown",e)},[se]);const ue=a(t=>{const n=te.map(e=>[...e]);n.splice(t,0,Array(e.length).fill("")),p(n)},[te,e.length,p]),he=a(e=>{if(te.length<=1)return;const t=te.filter((t,n)=>n!==e);p(t)},[te,p]),de=a(e=>{const t=te.map(t=>{const n=[...t];return n.splice(e,0,""),n});p(t)},[te,p]),we=a(t=>{if(e.length<=1)return;const n=te.map(e=>{const n=[...e];return n.splice(t,1),n});p(n)},[te,e.length,p]),ge=a((e,t)=>{e.preventDefault(),y||ie({x:e.clientX,y:e.clientY,items:[{label:C.insertRowAbove,onClick:()=>{ue(t),ie(null)}},{label:C.insertRowBelow,onClick:()=>{ue(t+1),ie(null)}},{label:C.deleteRow(t+1),onClick:()=>{he(t),ie(null)}}]})},[y,ue,he,C]),me=a((t,n)=>{t.preventDefault(),y||ie({x:t.clientX,y:t.clientY,items:[{label:C.insertColumnLeft,onClick:()=>{de(n),ie(null)}},{label:C.insertColumnRight,onClick:()=>{de(n+1),ie(null)}},{label:C.deleteColumn(String(e[n]?.title||n+1)),onClick:()=>{we(n),ie(null)}}]})},[y,e,de,we,C]),pe=t=>L[t]??e[t]?.width??150;c(()=>{const t=e=>{if(!z.current)return;const t=e.clientX-z.current.startX,n=Math.max(40,z.current.startW+t);S(e=>({...e,[z.current.col]:n}))},n=()=>{if(z.current&&f){const t=e.map((e,t)=>({...e,width:L[t]??e.width}));t[z.current.col]={...t[z.current.col],width:L[z.current.col]??e[z.current.col].width},f(t)}z.current=null,document.body.style.cursor=""};return window.addEventListener("mousemove",t),window.addEventListener("mouseup",n),()=>{window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)}},[e,L,f]);const fe=e=>A[e]??28;c(()=>{const e=e=>{if(!T.current)return;const t=e.clientY-T.current.startY,n=Math.max(20,T.current.startH+t);N(e=>({...e,[T.current.row]:n}))},t=()=>{T.current=null,document.body.style.cursor=""};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}},[]);const ye=a(t=>{const n=document.createElement("canvas").getContext("2d");if(!n)return;n.font="12px ui-monospace, SFMono-Regular, Menlo, monospace";let r=0;for(const e of te){const o=String(e[t]??"").replace(/<[^>]*>/g,""),l=n.measureText(o).width;l>r&&(r=l)}const o=n.measureText(e[t]?.title??"").width;o>r&&(r=o);const l=Math.max(40,Math.ceil(r+24));if(S(e=>({...e,[t]:l})),f){const n=e.map((e,n)=>({...e,width:n===t?l:L[n]??e.width}));f(n)}},[te,e,L,f]),be=a(e=>{N(t=>{const n={...t};return delete n[e],n})},[]),ve=a(t=>{const{a:n,e:r}=Z.current;if(!n||!r)return;const o=Math.min(n.row,r.row),l=Math.max(n.row,r.row),c=Math.min(n.col,r.col),a=Math.max(n.col,r.col);let s=o,i=l,u=c,h=a;t.row>l?i=t.row:t.row<o&&(s=t.row),t.col>a?h=t.col:t.col<c&&(u=t.col);const d=l-o+1,w=a-c+1,g=te.map(e=>[...e]);for(;g.length<=i;)g.push(Array(e.length).fill(""));for(const e of g)for(;e.length<=h;)e.push("");function m(e){const t=e.map(e=>parseFloat(e));if(t.length<2||t.some(e=>Number.isNaN(e)))return null;const n=t[1]-t[0];for(let e=2;e<t.length;e++)if(Math.abs(t[e]-t[e-1]-n)>1e-9)return null;return{step:n}}for(let e=s;e<=i;e++)for(let t=u;t<=h;t++){if(e>=o&&e<=l&&t>=c&&t<=a)continue;let n;if(1===w&&u===c&&h===a){const r=m(Array.from({length:d},(e,n)=>g[o+n]?.[t]??""));if(r){const c=parseFloat(g[l]?.[t]??"0"),a=parseFloat(g[o]?.[t]??"0"),s=e>l?e-l:-(o-e);n=String((e>l?c:a)+r.step*s)}else{const r=((e-o)%d+d)%d;n=g[o+r]?.[t]??""}}else if(1===d&&s===o&&i===l){const r=m(Array.from({length:w},(t,n)=>g[e]?.[c+n]??""));if(r){const o=parseFloat(g[e]?.[a]??"0"),l=parseFloat(g[e]?.[c]??"0"),s=t>a?t-a:-(c-t);n=String((t>a?o:l)+r.step*s)}else{const r=((t-c)%w+w)%w;n=g[e]?.[c+r]??""}}else{const r=((e-o)%d+d)%d,l=((t-c)%w+w)%w;n=g[o+r]?.[c+l]??""}g[e][t]=n}p(g),W({row:s,col:u}),_({row:i,col:h})},[te,e.length,p]);c(()=>{const e=e=>{if(!V.current)return;const t=document.elementFromPoint(e.clientX,e.clientY),n=t?.closest?.("[data-row][data-col]");if(!n)return;const r=parseInt(n.dataset.row),o=parseInt(n.dataset.col);Q({row:r,col:o})},t=()=>{V.current&&J&&ve(J),V.current=!1,Q(null),document.body.style.cursor=""};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}},[J,ve]);const xe=e=>{e.preventDefault(),e.stopPropagation(),V.current=!0,document.body.style.cursor="crosshair"},Me=o(null),[De,ke]=l(0),[Ce,Ee]=l(800);c(()=>{const e=Me.current;if(!e)return;const t=()=>Ee(e.clientHeight||800);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]);const $e=te.length>100,Le=$e?Math.max(0,Math.floor(De/28)-20):0,Se=$e?Math.min(te.length,Math.ceil((De+Ce)/28)+20):te.length,ze=s(()=>te.slice(Le,Se),[te,Le,Se]),Ae=28*Le,Ne=28*(te.length-Se),Te="px-2 h-8 text-left text-xs font-medium text-gray-500 uppercase bg-gray-100 border-b border-r border-gray-200 select-none";/* @__PURE__ */
1
+ import{escapeHtml as e}from"./chunk-BR22X7E5.js";import{TH_ONE_LINE as t}from"./chunk-7T3COEQK.js";import{useBrowserLayoutEffect as n}from"./chunk-D65T4H6J.js";import{useShellStrings as r}from"./chunk-KKZZAK76.js";import{useRef as o,useState as l,useEffect as c,useCallback as a,useMemo as s}from"react";import{createPortal as i}from"react-dom";import{jsxs as u,jsx as h,Fragment as d}from"react/jsx-runtime";function w(e,t){const n=e[e.length-1];return n&&!n.some(e=>e.trim())?e:[...e,Array(t).fill("")]}function g({text:t,...n}){const r=s(()=>({__html:e(t)}),[t]);/* @__PURE__ */
2
+ return h("div",{...n,dangerouslySetInnerHTML:r})}function m({columns:e,data:m,onChange:p,onColumnsChange:f,fixedRows:y=!1,minRows:b=15,maxHeight:v="260px",cellStyles:x,onFocusChange:M,onSelectionChange:D}){const k=o(null),C=r().grid,[E,$]=l(null);c(()=>{M?.(E)},[E,M]);const[L,S]=l({}),z=o(null),[A,N]=l({}),K=o(null),[O,T]=l(null),[R,P]=l(null),[F,I]=l(null),[X,j]=l(null),[H,Y]=l(null),q=o(null);n(()=>{const e=q.current;if(!e||e.row!==H?.row||e.col!==H?.col)return;q.current=null;const t=k.current?.querySelector(`[data-row="${e.row}"][data-col="${e.col}"]`);if(!t)return;t.focus();const n=document.createRange();n.selectNodeContents(t),n.collapse(!1);const r=window.getSelection();r?.removeAllRanges(),r?.addRange(n)},[H]);const[B,W]=l(null),[Z,_]=l(null);c(()=>{D?.(B&&Z?{anchor:B,end:Z}:null)},[B,Z,D]);const J=o(!1),[Q,U]=l(null),V=o(!1),G=o({a:null,e:null});G.current={a:B,e:Z};const ee=B&&Z&&(B.row!==Z.row||B.col!==Z.col),te=[...m];if(!y)for(;te.length<b;)te.push(Array(e.length).fill(""));const ne=a((t,n,r)=>{const o=te.map(e=>[...e]);for(;o.length<=t;)o.push(Array(e.length).fill(""));for(;o[t].length<e.length;)o[t].push("");o[t][n]=r,p(o)},[te,e.length,p]),re=a((e,t,n)=>{if(0!==e.button)return;const r=document.activeElement;if(r?.dataset?.row&&r?.dataset?.col){const e=parseInt(r.dataset.row),t=parseInt(r.dataset.col),n=r.textContent||"";if(n!==(te[e]?.[t]||"")){const r=te.map(e=>[...e]);r[e]&&(r[e][t]=n,p(r))}}J.current=!0,e.shiftKey&&B||W({row:t,col:n}),_({row:t,col:n})},[te,p,B]),oe=a((e,t)=>{J.current&&_({row:e,col:t})},[]);c(()=>{const e=()=>{J.current=!1};return window.addEventListener("mouseup",e),()=>window.removeEventListener("mouseup",e)},[]),c(()=>{const e=e=>{if(!e.ctrlKey&&!e.metaKey||"c"!==e.key)return;if(!B||!Z)return;const t=window.getSelection();if(t&&t.toString().length>0&&!ee)return;const n=Math.min(B.row,Z.row),r=Math.max(B.row,Z.row),o=Math.min(B.col,Z.col),l=Math.max(B.col,Z.col),c=[];for(let e=n;e<=r;e++){const t=[];for(let n=o;n<=l;n++)t.push(te[e]?.[n]||"");c.push(t.join("\t"))}const a=c.join("\n");a&&(e.preventDefault(),navigator.clipboard.writeText(a))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[B,Z,te,ee]),c(()=>{const t=t=>{if(!E)return;const n=document.activeElement;if(n?.isContentEditable)return;if(!k.current?.contains(n))return;const r=t.clipboardData?.getData("text/plain");if(!r)return;t.preventDefault();const o=r.split("\n").filter(e=>e).map(e=>e.split("\t")),l=te.map(e=>[...e]);for(let t=0;t<o.length;t++){const n=E.row+t;for(;l.length<=n;)l.push(Array(e.length).fill(""));for(;l[n].length<e.length;)l[n].push("");for(let r=0;r<o[t].length;r++){const c=E.col+r;if(c>=e.length)break;e[c].readOnly||(l[n][c]=o[t][r].trim())}}p(y?l:w(l,e.length)),W({row:E.row,col:E.col}),_({row:Math.min(E.row+o.length-1,l.length-1),col:Math.min(E.col+(o[0]?.length||1)-1,e.length-1)})};return window.addEventListener("paste",t),()=>window.removeEventListener("paste",t)},[E,te,e,p,y]);const le=a((t,n,r)=>{const o=t.clipboardData.getData("text/plain");if(!o)return;const l=o.split("\n").map(e=>e.split("\t"));if(l.length<=1&&l[0]?.length<=1)return;t.preventDefault();const c=te.map(e=>[...e]);for(let t=0;t<l.length;t++){const o=n+t;for(;c.length<=o;)c.push(Array(e.length).fill(""));for(;c[o].length<e.length;)c[o].push("");for(let n=0;n<l[t].length;n++){const a=r+n;if(a>=e.length)break;e[a].readOnly||(c[o][a]=l[t][n].trim())}}p(y?c:w(c,e.length))},[te,e,p,y]),ce=a((t,n,r)=>{let o=n,l=r;if("Tab"===t.key)t.preventDefault(),l=t.shiftKey?r-1:r+1,l>=e.length&&(l=0,o=n+1),l<0&&(l=e.length-1,o=n-1);else if("Enter"===t.key)t.preventDefault(),o=t.shiftKey?n-1:n+1;else if("ArrowDown"===t.key)t.preventDefault(),o=n+1;else if("ArrowUp"===t.key)t.preventDefault(),o=n-1;else if("ArrowLeft"===t.key)t.preventDefault(),l=r-1;else{if("ArrowRight"!==t.key){if("Delete"===t.key||"Backspace"===t.key){const o=t.target;if(o.isContentEditable)return void(o.textContent&&window.getSelection()?.toString()===o.textContent&&(t.preventDefault(),ne(n,r,"")));if(t.preventDefault(),B&&Z){const t=Math.min(B.row,Z.row),n=Math.max(B.row,Z.row),r=Math.min(B.col,Z.col),o=Math.max(B.col,Z.col),l=te.map(e=>[...e]);for(let c=t;c<=n;c++)for(let t=r;t<=o;t++)l[c]&&!e[t]?.readOnly&&(l[c][t]="");p(l)}else ne(n,r,"");return}return}t.preventDefault(),l=r+1}for(;l>=0&&l<e.length&&e[l].readOnly;)l+="Tab"===t.key&&t.shiftKey?-1:1;if(o>=0&&o<te.length&&l>=0&&l<e.length){const e=k.current?.querySelector(`[data-row="${o}"][data-col="${l}"]`);e&&(e.focus({preventScroll:!0}),e.scrollIntoView({block:"nearest",inline:"nearest"}),$({row:o,col:l}),Y(null),W({row:o,col:l}),_({row:o,col:l}))}},[e,te,te.length,ne,B,Z,p]),ae=a(t=>{if(!y&&t>=te.length-2){const t=te.map(e=>[...e]);for(let n=0;n<5;n++)t.push(Array(e.length).fill(""));p(t)}},[y,te,e.length,p]),[se,ie]=l(null);c(()=>{if(!se)return;const e=()=>ie(null);return window.addEventListener("pointerdown",e),()=>window.removeEventListener("pointerdown",e)},[se]);const ue=a(t=>{const n=te.map(e=>[...e]);n.splice(t,0,Array(e.length).fill("")),p(n)},[te,e.length,p]),he=a(e=>{if(te.length<=1)return;const t=te.filter((t,n)=>n!==e);p(t)},[te,p]),de=a(e=>{const t=te.map(t=>{const n=[...t];return n.splice(e,0,""),n});p(t)},[te,p]),we=a(t=>{if(e.length<=1)return;const n=te.map(e=>{const n=[...e];return n.splice(t,1),n});p(n)},[te,e.length,p]),ge=a((e,t)=>{e.preventDefault(),y||ie({x:e.clientX,y:e.clientY,items:[{label:C.insertRowAbove,onClick:()=>{ue(t),ie(null)}},{label:C.insertRowBelow,onClick:()=>{ue(t+1),ie(null)}},{label:C.deleteRow(t+1),onClick:()=>{he(t),ie(null)}}]})},[y,ue,he,C]),me=a((t,n)=>{t.preventDefault(),y||ie({x:t.clientX,y:t.clientY,items:[{label:C.insertColumnLeft,onClick:()=>{de(n),ie(null)}},{label:C.insertColumnRight,onClick:()=>{de(n+1),ie(null)}},{label:C.deleteColumn(String(e[n]?.title||n+1)),onClick:()=>{we(n),ie(null)}}]})},[y,e,de,we,C]),pe=t=>L[t]??e[t]?.width??150;c(()=>{const t=e=>{if(!z.current)return;const t=e.clientX-z.current.startX,n=Math.max(40,z.current.startW+t);S(e=>({...e,[z.current.col]:n}))},n=()=>{if(z.current&&f){const t=e.map((e,t)=>({...e,width:L[t]??e.width}));t[z.current.col]={...t[z.current.col],width:L[z.current.col]??e[z.current.col].width},f(t)}z.current=null,document.body.style.cursor=""};return window.addEventListener("mousemove",t),window.addEventListener("mouseup",n),()=>{window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)}},[e,L,f]);const fe=e=>A[e]??28;c(()=>{const e=e=>{if(!K.current)return;const t=e.clientY-K.current.startY,n=Math.max(20,K.current.startH+t);N(e=>({...e,[K.current.row]:n}))},t=()=>{K.current=null,document.body.style.cursor=""};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}},[]);const ye=a(t=>{const n=document.createElement("canvas").getContext("2d");if(!n)return;n.font="12px ui-monospace, SFMono-Regular, Menlo, monospace";let r=0;for(const e of te){const o=String(e[t]??"").replace(/<[^>]*>/g,""),l=n.measureText(o).width;l>r&&(r=l)}const o=n.measureText(e[t]?.title??"").width;o>r&&(r=o);const l=Math.max(40,Math.ceil(r+24));if(S(e=>({...e,[t]:l})),f){const n=e.map((e,n)=>({...e,width:n===t?l:L[n]??e.width}));f(n)}},[te,e,L,f]),be=a(e=>{N(t=>{const n={...t};return delete n[e],n})},[]),ve=a(t=>{const{a:n,e:r}=G.current;if(!n||!r)return;const o=Math.min(n.row,r.row),l=Math.max(n.row,r.row),c=Math.min(n.col,r.col),a=Math.max(n.col,r.col);let s=o,i=l,u=c,h=a;t.row>l?i=t.row:t.row<o&&(s=t.row),t.col>a?h=t.col:t.col<c&&(u=t.col);const d=l-o+1,w=a-c+1,g=te.map(e=>[...e]);for(;g.length<=i;)g.push(Array(e.length).fill(""));for(const e of g)for(;e.length<=h;)e.push("");function m(e){const t=e.map(e=>parseFloat(e));if(t.length<2||t.some(e=>Number.isNaN(e)))return null;const n=t[1]-t[0];for(let e=2;e<t.length;e++)if(Math.abs(t[e]-t[e-1]-n)>1e-9)return null;return{step:n}}for(let e=s;e<=i;e++)for(let t=u;t<=h;t++){if(e>=o&&e<=l&&t>=c&&t<=a)continue;let n;if(1===w&&u===c&&h===a){const r=m(Array.from({length:d},(e,n)=>g[o+n]?.[t]??""));if(r){const c=parseFloat(g[l]?.[t]??"0"),a=parseFloat(g[o]?.[t]??"0"),s=e>l?e-l:-(o-e);n=String((e>l?c:a)+r.step*s)}else{const r=((e-o)%d+d)%d;n=g[o+r]?.[t]??""}}else if(1===d&&s===o&&i===l){const r=m(Array.from({length:w},(t,n)=>g[e]?.[c+n]??""));if(r){const o=parseFloat(g[e]?.[a]??"0"),l=parseFloat(g[e]?.[c]??"0"),s=t>a?t-a:-(c-t);n=String((t>a?o:l)+r.step*s)}else{const r=((t-c)%w+w)%w;n=g[e]?.[c+r]??""}}else{const r=((e-o)%d+d)%d,l=((t-c)%w+w)%w;n=g[o+r]?.[c+l]??""}g[e][t]=n}p(g),W({row:s,col:u}),_({row:i,col:h})},[te,e.length,p]);c(()=>{const e=e=>{if(!V.current)return;const t=document.elementFromPoint(e.clientX,e.clientY),n=t?.closest?.("[data-row][data-col]");if(!n)return;const r=parseInt(n.dataset.row),o=parseInt(n.dataset.col);U({row:r,col:o})},t=()=>{V.current&&Q&&ve(Q),V.current=!1,U(null),document.body.style.cursor=""};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}},[Q,ve]);const xe=e=>{e.preventDefault(),e.stopPropagation(),V.current=!0,document.body.style.cursor="crosshair"},Me=o(null),[De,ke]=l(0),[Ce,Ee]=l(800);c(()=>{const e=Me.current;if(!e)return;const t=()=>Ee(e.clientHeight||800);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]);const $e=te.length>100,Le=$e?Math.max(0,Math.floor(De/28)-20):0,Se=$e?Math.min(te.length,Math.ceil((De+Ce)/28)+20):te.length,ze=s(()=>te.slice(Le,Se),[te,Le,Se]),Ae=28*Le,Ne=28*(te.length-Se),Ke="px-2 h-8 text-left text-xs font-medium text-gray-500 uppercase bg-gray-100 border-b border-r border-gray-200 select-none";/* @__PURE__ */
3
3
  return u("div",{ref:Me,className:"border border-gray-300 rounded overflow-scroll grid-scroll",style:{maxHeight:v,height:v},onScroll:e=>ke(e.target.scrollTop),children:[
4
4
  /* @__PURE__ */u("table",{ref:k,className:"border-collapse select-none",style:{tableLayout:"fixed",minWidth:36+e.reduce((t,n)=>t+pe(e.indexOf(n)),0)},children:[
5
5
  /* @__PURE__ */u("colgroup",{children:[
6
6
  /* @__PURE__ */h("col",{style:{width:36}}),e.map((e,t)=>/* @__PURE__ */h("col",{style:{width:pe(t)}},e.key))]}),
7
7
  /* @__PURE__ */h("thead",{className:"sticky top-0 z-10",children:/* @__PURE__ */u("tr",{children:[
8
- /* @__PURE__ */h("th",{className:`${t} ${Te} text-center w-9 cursor-pointer hover:bg-gray-200`,onClick:()=>{W({row:0,col:0}),_({row:te.length-1,col:e.length-1})},title:C.selectAll,children:"#"}),e.map((n,r)=>{const o=q&&U&&Math.min(q.col,U.col)<=r&&r<=Math.max(q.col,U.col)&&0===Math.min(q.row,U.row)&&Math.max(q.row,U.row)===te.length-1;/* @__PURE__ */
9
- return u("th",{className:`${t} ${Te} cursor-pointer hover:bg-gray-200 relative${o?" !bg-blue-200":""}${X===r?" !bg-blue-100":""}`,style:{width:pe(r)},draggable:!0,onDragStart:()=>(e=>I(e))(r),onDragOver:e=>((e,t)=>{e.preventDefault(),j(t)})(e,r),onDrop:()=>(t=>{if(null===F||F===t)return I(null),void j(null);const n=te.map(e=>{const n=[...e],[r]=n.splice(F,1);return n.splice(t,0,r),n});if(p(n),f){const n=[...e],[r]=n.splice(F,1);n.splice(t,0,r),f(n)}I(null),j(null)})(r),onDragEnd:()=>{I(null),j(null)},onClick:e=>{e.shiftKey&&q||W({row:0,col:r}),_({row:te.length-1,col:r})},onContextMenu:e=>me(e,r),children:[n.title,
8
+ /* @__PURE__ */h("th",{className:`${t} ${Ke} text-center w-9 cursor-pointer hover:bg-gray-200`,onClick:()=>{W({row:0,col:0}),_({row:te.length-1,col:e.length-1})},title:C.selectAll,children:"#"}),e.map((n,r)=>{const o=B&&Z&&Math.min(B.col,Z.col)<=r&&r<=Math.max(B.col,Z.col)&&0===Math.min(B.row,Z.row)&&Math.max(B.row,Z.row)===te.length-1;/* @__PURE__ */
9
+ return u("th",{className:`${t} ${Ke} cursor-pointer hover:bg-gray-200 relative${o?" !bg-blue-200":""}${X===r?" !bg-blue-100":""}`,style:{width:pe(r)},draggable:!0,onDragStart:()=>(e=>I(e))(r),onDragOver:e=>((e,t)=>{e.preventDefault(),j(t)})(e,r),onDrop:()=>(t=>{if(null===F||F===t)return I(null),void j(null);const n=te.map(e=>{const n=[...e],[r]=n.splice(F,1);return n.splice(t,0,r),n});if(p(n),f){const n=[...e],[r]=n.splice(F,1);n.splice(t,0,r),f(n)}I(null),j(null)})(r),onDragEnd:()=>{I(null),j(null)},onClick:e=>{e.shiftKey&&B||W({row:0,col:r}),_({row:te.length-1,col:r})},onContextMenu:e=>me(e,r),children:[n.title,
10
10
  /* @__PURE__ */h("div",{className:"absolute -right-1 top-0 bottom-0 w-2 cursor-col-resize z-20",onMouseDown:e=>((e,t)=>{e.preventDefault(),e.stopPropagation(),z.current={col:t,startX:e.clientX,startW:pe(t)},document.body.style.cursor="col-resize"})(e,r),onDoubleClick:e=>{e.stopPropagation(),ye(r)},title:C.resize})]},n.key)})]})}),
11
- /* @__PURE__ */u("tbody",{children:[Ae>0&&/* @__PURE__ */h("tr",{style:{height:Ae}}),ze.map((t,n)=>{const r=Le+n,o=q&&U&&Math.min(q.row,U.row)<=r&&r<=Math.max(q.row,U.row)&&0===Math.min(q.col,U.col)&&Math.max(q.col,U.col)===e.length-1;/* @__PURE__ */
11
+ /* @__PURE__ */u("tbody",{children:[Ae>0&&/* @__PURE__ */h("tr",{style:{height:Ae}}),ze.map((t,n)=>{const r=Le+n,o=B&&Z&&Math.min(B.row,Z.row)<=r&&r<=Math.max(B.row,Z.row)&&0===Math.min(B.col,Z.col)&&Math.max(B.col,Z.col)===e.length-1;/* @__PURE__ */
12
12
  return u("tr",{style:{height:fe(r)},children:[
13
- /* @__PURE__ */u("td",{className:`relative px-1 py-1 text-center text-2xs text-gray-400 border-b border-r border-gray-200 bg-gray-50 select-none cursor-pointer hover:bg-gray-200${o?" !bg-blue-200 !text-gray-700":""}${K===r?" !bg-blue-100":""}`,draggable:!0,onDragStart:()=>(e=>R(e))(r),onDragOver:e=>((e,t)=>{e.preventDefault(),P(t)})(e,r),onDrop:()=>(e=>{if(null===O||O===e)return R(null),void P(null);const t=te.map(e=>[...e]),[n]=t.splice(O,1);t.splice(e,0,n),p(t),R(null),P(null)})(r),onDragEnd:()=>{R(null),P(null)},onClick:t=>{t.shiftKey&&q||W({row:r,col:0}),_({row:r,col:e.length-1})},onContextMenu:e=>ge(e,r),children:[r+1,
14
- /* @__PURE__ */h("div",{className:"absolute -bottom-1 left-0 right-0 h-2 cursor-row-resize z-20",onMouseDown:e=>((e,t)=>{e.preventDefault(),e.stopPropagation(),T.current={row:t,startY:e.clientY,startH:fe(t)},document.body.style.cursor="row-resize"})(e,r),onDoubleClick:e=>{e.stopPropagation(),be(r)},title:C.resize})]}),e.map((e,n)=>{const o=q&&U&&function(e,t,n,r){const o=Math.min(e.row,t.row),l=Math.max(e.row,t.row),c=Math.min(e.col,t.col),a=Math.max(e.col,t.col);return n>=o&&n<=l&&r>=c&&r<=a}(q,U,r,n),l=H?.row===r&&H?.col===n&&!e.readOnly,c=E?.row===r&&E?.col===n,a=x?.[`${r}:${n}`],s=q&&U?Math.max(q.row,U.row):-1,i=q&&U?Math.max(q.col,U.col):-1,d=q&&U&&r===s&&n===i,w=V.current&&J&&q&&U&&(()=>{const e=Math.min(q.row,U.row),t=Math.max(q.row,U.row),o=Math.min(q.col,U.col),l=Math.max(q.col,U.col);let c=e,a=t,s=o,i=l;return J.row>t?a=J.row:J.row<e&&(c=J.row),J.col>l?i=J.col:J.col<o&&(s=J.col),r>=c&&r<=a&&n>=s&&n<=i&&!(r>=e&&r<=t&&n>=o&&n<=l)})(),m="sm"===a?.fontSize?"text-2xs":"lg"===a?.fontSize?"text-sm":"xl"===a?.fontSize?"text-base":"text-xs",p=`${a?.bold?" font-bold":""}${a?.italic?" italic":""}${a?.underline?" underline":""}`;/* @__PURE__ */
13
+ /* @__PURE__ */u("td",{className:`relative px-1 py-1 text-center text-2xs text-gray-400 border-b border-r border-gray-200 bg-gray-50 select-none cursor-pointer hover:bg-gray-200${o?" !bg-blue-200 !text-gray-700":""}${R===r?" !bg-blue-100":""}`,draggable:!0,onDragStart:()=>(e=>T(e))(r),onDragOver:e=>((e,t)=>{e.preventDefault(),P(t)})(e,r),onDrop:()=>(e=>{if(null===O||O===e)return T(null),void P(null);const t=te.map(e=>[...e]),[n]=t.splice(O,1);t.splice(e,0,n),p(t),T(null),P(null)})(r),onDragEnd:()=>{T(null),P(null)},onClick:t=>{t.shiftKey&&B||W({row:r,col:0}),_({row:r,col:e.length-1})},onContextMenu:e=>ge(e,r),children:[r+1,
14
+ /* @__PURE__ */h("div",{className:"absolute -bottom-1 left-0 right-0 h-2 cursor-row-resize z-20",onMouseDown:e=>((e,t)=>{e.preventDefault(),e.stopPropagation(),K.current={row:t,startY:e.clientY,startH:fe(t)},document.body.style.cursor="row-resize"})(e,r),onDoubleClick:e=>{e.stopPropagation(),be(r)},title:C.resize})]}),e.map((e,n)=>{const o=B&&Z&&function(e,t,n,r){const o=Math.min(e.row,t.row),l=Math.max(e.row,t.row),c=Math.min(e.col,t.col),a=Math.max(e.col,t.col);return n>=o&&n<=l&&r>=c&&r<=a}(B,Z,r,n),l=H?.row===r&&H?.col===n&&!e.readOnly,c=E?.row===r&&E?.col===n,a=x?.[`${r}:${n}`],s=B&&Z?Math.max(B.row,Z.row):-1,i=B&&Z?Math.max(B.col,Z.col):-1,d=B&&Z&&r===s&&n===i,w=V.current&&Q&&B&&Z&&(()=>{const e=Math.min(B.row,Z.row),t=Math.max(B.row,Z.row),o=Math.min(B.col,Z.col),l=Math.max(B.col,Z.col);let c=e,a=t,s=o,i=l;return Q.row>t?a=Q.row:Q.row<e&&(c=Q.row),Q.col>l?i=Q.col:Q.col<o&&(s=Q.col),r>=c&&r<=a&&n>=s&&n<=i&&!(r>=e&&r<=t&&n>=o&&n<=l)})(),m="sm"===a?.fontSize?"text-2xs":"lg"===a?.fontSize?"text-sm":"xl"===a?.fontSize?"text-base":"text-xs",p=`${a?.bold?" font-bold":""}${a?.italic?" italic":""}${a?.underline?" underline":""}`;/* @__PURE__ */
15
15
  return u("td",{className:`relative px-0 py-0 border-b border-r border-gray-200 text-sm${e.readOnly?" bg-gray-50 text-gray-500 cursor-default":" cursor-cell"}${o?" !bg-blue-100":""}${c&&!o?" ring-2 ring-inset ring-blue-400":""}${w?" !bg-blue-50 ring-1 ring-inset ring-blue-300":""}`,onMouseDown:e=>{if(e.target===e.currentTarget){re(e,r,n);const t=e.currentTarget.querySelector("[data-row][data-col]");t?.focus()}},onMouseEnter:()=>oe(r,n),onClick:e=>{if(e.target===e.currentTarget){const t=e.currentTarget.querySelector("[data-row][data-col]");t?.focus()}},onDoubleClick:t=>{t.target!==t.currentTarget||e.readOnly||Y({row:r,col:n})},children:[
16
- /* @__PURE__ */h(g,{contentEditable:l,suppressContentEditableWarning:!0,tabIndex:0,"data-row":r,"data-col":n,className:`w-full h-full px-2 py-1 rosh-focus-ring whitespace-nowrap overflow-hidden ${"right"===e.align?"text-right":"center"===e.align?"text-center":""} ${e.readOnly?"cursor-default":"cursor-cell"} font-mono ${m}${p}`,onMouseDown:e=>re(e,r,n),onMouseEnter:()=>oe(r,n),onDoubleClick:()=>{e.readOnly||Y({row:r,col:n})},onFocus:()=>{$({row:r,col:n}),G.current||(W({row:r,col:n}),_({row:r,col:n}))},onBlur:e=>{const o=e.currentTarget.textContent||"";o!==(t[n]||"")&&ne(r,n,o),Y(null)},onInput:()=>ae(r),onPaste:e=>le(e,r,n),onKeyDown:t=>{if(!(l||e.readOnly||1!==t.key.length||t.ctrlKey||t.metaKey||t.altKey))return t.preventDefault(),ne(r,n,t.key),B.current={row:r,col:n},void Y({row:r,col:n});ce(t,r,n)},text:t[n]||""}),d&&/* @__PURE__ */h("div",{onMouseDown:xe,title:C.fill,className:"absolute -bottom-[3px] -right-[3px] w-[7px] h-[7px] bg-blue-500 border border-white cursor-crosshair z-30 hover:bg-blue-600"})]},n)})]},r)}),Ne>0&&/* @__PURE__ */h("tr",{style:{height:Ne}})]})]}),se&&i(
16
+ /* @__PURE__ */h(g,{contentEditable:l,suppressContentEditableWarning:!0,tabIndex:0,"data-row":r,"data-col":n,className:`w-full h-full px-2 py-1 rosh-focus-ring whitespace-nowrap overflow-hidden ${"right"===e.align?"text-right":"center"===e.align?"text-center":""} ${e.readOnly?"cursor-default":"cursor-cell"} font-mono ${m}${p}`,onMouseDown:e=>re(e,r,n),onMouseEnter:()=>oe(r,n),onDoubleClick:()=>{e.readOnly||Y({row:r,col:n})},onFocus:()=>{$({row:r,col:n}),J.current||(W({row:r,col:n}),_({row:r,col:n}))},onBlur:e=>{const o=e.currentTarget.textContent||"";o!==(t[n]||"")&&ne(r,n,o),Y(null)},onInput:()=>ae(r),onPaste:e=>le(e,r,n),onKeyDown:t=>{if(!(l||e.readOnly||1!==t.key.length||t.ctrlKey||t.metaKey||t.altKey))return t.preventDefault(),ne(r,n,t.key),q.current={row:r,col:n},void Y({row:r,col:n});ce(t,r,n)},text:t[n]||""}),d&&/* @__PURE__ */h("div",{onMouseDown:xe,title:C.fill,className:"absolute -bottom-[3px] -right-[3px] w-[7px] h-[7px] bg-blue-500 border border-white cursor-crosshair z-30 hover:bg-blue-600"})]},n)})]},r)}),Ne>0&&/* @__PURE__ */h("tr",{style:{height:Ne}})]})]}),se&&i(
17
17
  /* @__PURE__ */u(d,{children:[
18
18
  /* @__PURE__ */h("div",{className:"fixed inset-0 z-(--z-popup)",onPointerDown:()=>ie(null)}),
19
19
  /* @__PURE__ */h("div",{className:"fixed z-(--z-popup) bg-white rounded-lg shadow-lg border border-gray-200 py-1 min-w-[160px]",style:{left:se.x,top:se.y},children:se.items.map((e,t)=>/* @__PURE__ */h("button",{onPointerDown:t=>{t.stopPropagation(),e.onClick()},className:"w-full text-left px-3 min-h-(--row-height-menu) py-2 leading-5 text-sm text-gray-700 hover:bg-gray-100",children:e.label},t))})]}),document.body)]})}export{m as EditableGrid,w as withSpareRow};
@@ -1,10 +1,10 @@
1
- import{FormField as e}from"./chunk-MVQBVPWP.js";import{zoneFocusClass as r,mediaPromptLine as t,UploadGlyph as a,dropzoneClass as o,BusyOverlay as n,isVideoUrl as l,mediaFileName as i,FilenameBadge as s}from"./chunk-APMBWBD7.js";import{useFileIntake as d,FileIntakeAlert as c}from"./chunk-MPN267PR.js";import{Icon as u}from"./chunk-42BBJJDP.js";import{useShellStrings as p}from"./chunk-GTRUBA2R.js";import{useId as m,useState as g,useRef as f}from"react";import{jsxs as h,jsx as b}from"react/jsx-runtime";var v=/* @__PURE__ */b(u,{name:"close",strokeWidth:2,strokeLinecap:"round","aria-hidden":"true",className:"h-3 w-3"});function y({items:u,onPick:y,onFiles:x,onRemove:D,onReorder:k,dragType:w,dropType:N,onDropData:j,label:P,hint:A,error:T,required:B,className:L,accept:F="image/*",maxSizeBytes:R,maxFiles:S,fit:$="cover",thumbSize:z=96,placeholder:C,cta:M,acceptHint:O,showCover:E=!1,coverLabel:H,busy:I=!1,busyLabel:W,progress:q,disabled:J=!1,readOnly:U=!1}){const V=p().media,G=M??V.cta,K=H??V.cover,Q=W??V.uploading,X=m(),[Y,Z]=g(null),_=J||I,ee=!(!y&&!x||_||U),re=!!D&&!_&&!U,te=!!k&&!_&&!U,ae=!!w&&!J&&!te,oe=!(!N||!j||_||U),ne=r(_),le=C??t(F,V),ie=d({accept:F,maxSizeBytes:R,maxFiles:S,acceptHint:O,multiple:!0,disabled:!ee,currentCount:u.length,onAccept:e=>{if(x)x(e);else for(const r of e)y(r)}}),[se,de]=g(!1),ce=f(0),ue=e=>oe&&Array.from(e.dataTransfer?.types??[]).includes(N),pe=ie.zoneProps,me={onDragEnter:e=>{if(!ue(e))return pe.onDragEnter?.(e);e.preventDefault(),ce.current+=1,de(!0)},onDragOver:e=>{if(!ue(e))return pe.onDragOver?.(e);e.preventDefault(),e.dataTransfer.dropEffect="link",se||de(!0)},onDragLeave:e=>{if(!ue(e))return pe.onDragLeave?.(e);ce.current=Math.max(0,ce.current-1),0===ce.current&&de(!1)},onDrop:e=>{if(!ue(e))return pe.onDrop?.(e);e.preventDefault(),ce.current=0,de(!1);const r=e.dataTransfer.getData(N);r&&j(r)}},ge=ie.dragOver||se,fe=()=>{ee&&(y?y():ie.open())},he={width:z,height:z},be=ee&&/* @__PURE__ */h("button",{type:"button",onClick:()=>fe(),"aria-label":V.addMedia,className:`flex shrink-0 flex-col items-center justify-center gap-1 rounded-md border-2 border-dashed border-gray-300 bg-gray-50 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-500 ${ne}`,style:he,children:[
1
+ import{FormField as e}from"./chunk-MVQBVPWP.js";import{zoneFocusClass as r,mediaPromptLine as t,UploadGlyph as a,dropzoneClass as o,BusyOverlay as n,isVideoUrl as l,mediaFileName as i,FilenameBadge as s}from"./chunk-KB6BGPQK.js";import{useFileIntake as d,FileIntakeAlert as c}from"./chunk-ZNZDV6SN.js";import{Icon as u}from"./chunk-42BBJJDP.js";import{useShellStrings as p}from"./chunk-KKZZAK76.js";import{useId as m,useState as g,useRef as f}from"react";import{jsxs as h,jsx as b}from"react/jsx-runtime";var v=/* @__PURE__ */b(u,{name:"close",strokeWidth:2,strokeLinecap:"round","aria-hidden":"true",className:"h-3 w-3"});function y({items:u,onPick:y,onFiles:x,onRemove:D,onReorder:k,dragType:N,dropType:w,onDropData:j,label:P,hint:A,error:T,required:B,className:L,accept:S="image/*",maxSizeBytes:F,maxFiles:K,fit:$="cover",thumbSize:z=96,placeholder:C,cta:O,acceptHint:E,showCover:H=!1,coverLabel:I,busy:Z=!1,busyLabel:M,progress:R,disabled:V=!1,readOnly:q=!1}){const J=p().media,Q=O??J.cta,W=I??J.cover,G=M??J.uploading,U=m(),[X,Y]=g(null),_=V||Z,ee=!(!y&&!x||_||q),re=!!D&&!_&&!q,te=!!k&&!_&&!q,ae=!!N&&!V&&!te,oe=!(!w||!j||_||q),ne=r(_),le=C??t(S,J),ie=d({accept:S,maxSizeBytes:F,maxFiles:K,acceptHint:E,multiple:!0,disabled:!ee,currentCount:u.length,onAccept:e=>{if(x)x(e);else for(const r of e)y(r)}}),[se,de]=g(!1),ce=f(0),ue=e=>oe&&Array.from(e.dataTransfer?.types??[]).includes(w),pe=ie.zoneProps,me={onDragEnter:e=>{if(!ue(e))return pe.onDragEnter?.(e);e.preventDefault(),ce.current+=1,de(!0)},onDragOver:e=>{if(!ue(e))return pe.onDragOver?.(e);e.preventDefault(),e.dataTransfer.dropEffect="link",se||de(!0)},onDragLeave:e=>{if(!ue(e))return pe.onDragLeave?.(e);ce.current=Math.max(0,ce.current-1),0===ce.current&&de(!1)},onDrop:e=>{if(!ue(e))return pe.onDrop?.(e);e.preventDefault(),ce.current=0,de(!1);const r=e.dataTransfer.getData(w);r&&j(r)}},ge=ie.dragOver||se,fe=()=>{ee&&(y?y():ie.open())},he={width:z,height:z},be=ee&&/* @__PURE__ */h("button",{type:"button",onClick:()=>fe(),"aria-label":J.addMedia,className:`flex shrink-0 flex-col items-center justify-center gap-1 rounded-md border-2 border-dashed border-gray-300 bg-gray-50 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-500 ${ne}`,style:he,children:[
2
2
  /* @__PURE__ */b(a,{className:"h-5 w-5"}),
3
- /* @__PURE__ */b("span",{className:"text-xs font-medium text-gray-500",children:V.add})]}),ve=ee?/* @__PURE__ */h("button",{type:"button",onClick:()=>fe(),"aria-label":"string"==typeof le?le:V.upload,className:o(ge,!1,ne),style:{minHeight:z+32},children:[
3
+ /* @__PURE__ */b("span",{className:"text-xs font-medium text-gray-500",children:J.add})]}),ve=ee?/* @__PURE__ */h("button",{type:"button",onClick:()=>fe(),"aria-label":"string"==typeof le?le:J.upload,className:o(ge,!1,ne),style:{minHeight:z+32},children:[
4
4
  /* @__PURE__ */b("span",{className:"text-gray-400",children:/* @__PURE__ */b(a,{})}),
5
5
  /* @__PURE__ */b("span",{className:"px-3 text-xs text-gray-500",children:le}),
6
- /* @__PURE__ */b("span",{className:"text-sm font-medium text-blue-600",children:G}),O&&/* @__PURE__ */b("span",{className:"text-xs text-gray-400",children:O})]}):/* @__PURE__ */b("div",{className:"flex w-full items-center justify-center rounded-lg border border-gray-200 bg-gray-50 px-3 text-xs text-gray-400",style:{minHeight:z+32},children:/* @__PURE__ */b("span",{className:I?"invisible":void 0,children:V.empty})});/* @__PURE__ */
7
- return h(e,{label:P,labelId:P?`${X}-label`:void 0,htmlFor:X,hint:A,error:T,required:B,className:L,children:[
8
- /* @__PURE__ */h("div",{id:X,role:"group","aria-labelledby":P?`${X}-label`:void 0,"aria-describedby":T?`${X}-error`:A?`${X}-hint`:void 0,"aria-busy":I||void 0,...ie.zoneProps,...oe?me:{},className:"relative rounded-lg transition-colors",style:{..._?{opacity:.6}:{},...ge?{boxShadow:"0 0 0 2px var(--rosh-drop-ring)"}:{}},children:[0===u.length?ve:/* @__PURE__ */h("div",{className:"flex flex-wrap gap-2",children:[u.map((e,r)=>{const t=e.kind?"video"===e.kind:l(e.url,F),a=i(e.url),o=E&&(e.cover??0===r);/* @__PURE__ */
9
- return h("div",{draggable:te||ae&&!!e.dragData||void 0,onDragStart:te?e=>{e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",String(r)),Z(r)}:ae&&e.dragData?r=>{r.dataTransfer.effectAllowed="link",r.dataTransfer.setData(w,e.dragData)}:void 0,onDragEnd:te?()=>Z(null):void 0,onDragOver:te?e=>{null!=Y&&(e.preventDefault(),e.stopPropagation())}:void 0,onDrop:te?e=>{null!=Y&&(e.preventDefault(),e.stopPropagation(),Y!==r&&k(Y,r),Z(null))}:void 0,tabIndex:te?0:void 0,"aria-label":te?V.reorder(a,r+1,u.length):void 0,onKeyDown:te?e=>{"ArrowLeft"===e.key||"ArrowUp"===e.key?r>0&&(e.preventDefault(),k(r,r-1)):"ArrowRight"!==e.key&&"ArrowDown"!==e.key||r<u.length-1&&(e.preventDefault(),k(r,r+1))}:void 0,className:["relative shrink-0 overflow-hidden rounded-md border border-gray-200 bg-gray-100",ne,Y===r?"opacity-50":""].join(" "),style:{...he,cursor:te?"move":void 0},children:[t?/* @__PURE__ */b("video",{src:e.url,muted:!0,playsInline:!0,preload:"metadata","aria-label":a,className:"h-full w-full",style:{objectFit:$}}):/* @__PURE__ */b("img",{src:e.url,alt:a,className:"h-full w-full",style:{objectFit:$}}),o&&/* @__PURE__ */b("span",{className:"absolute left-1 top-1 rounded bg-blue-600 px-2 py-0.5 text-xs font-medium text-white",children:K}),!o&&null!=e.mark&&/* @__PURE__ */b("span",{className:"absolute left-1 top-1 inline-flex items-center gap-1 rounded px-2 py-0.5 text-xs font-medium text-white",style:{background:"var(--rosh-media-scrim)"},children:e.mark}),null!=e.caption&&/* @__PURE__ */b(s,{children:e.caption}),re&&/* @__PURE__ */b("button",{type:"button",onClick:()=>D(e.id),"aria-label":e.removeLabel??V.removeItem(a),className:`absolute right-1 top-1 flex h-5 w-5 items-center justify-center rounded-full text-white ${ne}`,style:{background:"var(--rosh-media-scrim-button)"},children:v})]},e.id)}),be]}),I&&/* @__PURE__ */b(n,{label:Q,progress:q})]}),!y&&x&&/* @__PURE__ */b("input",{...ie.inputProps}),
6
+ /* @__PURE__ */b("span",{className:"text-sm font-medium text-blue-600",children:Q}),E&&/* @__PURE__ */b("span",{className:"text-xs text-gray-400",children:E})]}):/* @__PURE__ */b("div",{className:"flex w-full items-center justify-center rounded-lg border border-gray-200 bg-gray-50 px-3 text-xs text-gray-400",style:{minHeight:z+32},children:/* @__PURE__ */b("span",{className:Z?"invisible":void 0,children:J.empty})});/* @__PURE__ */
7
+ return h(e,{label:P,labelId:P?`${U}-label`:void 0,htmlFor:U,hint:A,error:T,required:B,className:L,children:[
8
+ /* @__PURE__ */h("div",{id:U,role:"group","aria-labelledby":P?`${U}-label`:void 0,"aria-describedby":T?`${U}-error`:A?`${U}-hint`:void 0,"aria-busy":Z||void 0,...ie.zoneProps,...oe?me:{},className:"relative rounded-lg transition-colors",style:{..._?{opacity:.6}:{},...ge?{boxShadow:"0 0 0 2px var(--rosh-drop-ring)"}:{}},children:[0===u.length?ve:/* @__PURE__ */h("div",{className:"flex flex-wrap gap-2",children:[u.map((e,r)=>{const t=e.kind?"video"===e.kind:l(e.url,S),a=i(e.url),o=H&&(e.cover??0===r);/* @__PURE__ */
9
+ return h("div",{draggable:te||ae&&!!e.dragData||void 0,onDragStart:te?e=>{e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",String(r)),Y(r)}:ae&&e.dragData?r=>{r.dataTransfer.effectAllowed="link",r.dataTransfer.setData(N,e.dragData)}:void 0,onDragEnd:te?()=>Y(null):void 0,onDragOver:te?e=>{null!=X&&(e.preventDefault(),e.stopPropagation())}:void 0,onDrop:te?e=>{null!=X&&(e.preventDefault(),e.stopPropagation(),X!==r&&k(X,r),Y(null))}:void 0,tabIndex:te?0:void 0,"aria-label":te?J.reorder(a,r+1,u.length):void 0,onKeyDown:te?e=>{"ArrowLeft"===e.key||"ArrowUp"===e.key?r>0&&(e.preventDefault(),k(r,r-1)):"ArrowRight"!==e.key&&"ArrowDown"!==e.key||r<u.length-1&&(e.preventDefault(),k(r,r+1))}:void 0,className:["relative shrink-0 overflow-hidden rounded-md border border-gray-200 bg-gray-100",ne,X===r?"opacity-50":""].join(" "),style:{...he,cursor:te?"move":void 0},children:[t?/* @__PURE__ */b("video",{src:e.url,muted:!0,playsInline:!0,preload:"metadata","aria-label":a,className:"h-full w-full",style:{objectFit:$}}):/* @__PURE__ */b("img",{src:e.url,alt:a,className:"h-full w-full",style:{objectFit:$}}),o&&/* @__PURE__ */b("span",{className:"absolute left-1 top-1 rounded bg-blue-600 px-2 py-0.5 text-xs font-medium text-white",children:W}),!o&&null!=e.mark&&/* @__PURE__ */b("span",{className:"absolute left-1 top-1 inline-flex items-center gap-1 rounded px-2 py-0.5 text-xs font-medium text-white",style:{background:"var(--rosh-media-scrim)"},children:e.mark}),null!=e.caption&&/* @__PURE__ */b(s,{children:e.caption}),re&&/* @__PURE__ */b("button",{type:"button",onClick:()=>D(e.id),"aria-label":e.removeLabel??J.removeItem(a),className:`absolute right-1 top-1 flex h-5 w-5 items-center justify-center rounded-full text-white ${ne}`,style:{background:"var(--rosh-media-scrim-button)"},children:v})]},e.id)}),be]}),Z&&/* @__PURE__ */b(n,{label:G,progress:R})]}),!y&&x&&/* @__PURE__ */b("input",{...ie.inputProps}),
10
10
  /* @__PURE__ */b(c,{rejections:ie.rejections})]})}export{y as MediaUploadGrid};
@@ -1,3 +1,3 @@
1
- import{optionNoteClass as e}from"./chunk-QR4RM7PO.js";import{DEFAULT_SHELL_STRINGS as o,useShellStrings as t}from"./chunk-GTRUBA2R.js";import{jsxs as n,jsx as r}from"react/jsx-runtime";function l(o){const t=o.depth?{paddingInlineStart:16*o.depth+"px"}:{};/* @__PURE__ */
1
+ import{optionNoteClass as e}from"./chunk-QR4RM7PO.js";import{DEFAULT_SHELL_STRINGS as o,useShellStrings as t}from"./chunk-KKZZAK76.js";import{jsxs as n,jsx as r}from"react/jsx-runtime";function l(o){const t=o.depth?{paddingInlineStart:16*o.depth+"px"}:{};/* @__PURE__ */
2
2
  return n("span",{"data-move-target":"",className:"flex min-w-0 flex-col",style:t,children:[
3
3
  /* @__PURE__ */r("span",{children:o.label}),o.disabledReason&&/* @__PURE__ */r("span",{className:e(),children:o.disabledReason})]})}function a({count:e,kind:t="file",targets:n,onPick:r},a=o.media){const s=[{type:"label",key:"move-to",label:a.moveTo(e,t)}];if(!n.length)return s.push({type:"status",key:"move-nowhere",label:a.moveNowhere}),s;let i;return n.forEach((e,o)=>{(o>0&&e.group!==i||0===o&&e.group)&&(o>0&&s.push({type:"divider",key:`group-line:${o}`}),e.group&&s.push({type:"label",key:`group:${o}`,label:e.group})),i=e.group,s.push({key:e.key,label:l(e),disabled:!!e.disabledReason,onSelect:()=>r(e)})}),s}function s(e){return a(e,t().media)}export{a as mediaMoveItems,s as useMediaMoveItems};
@@ -1,9 +1,9 @@
1
- import{SidebarBarContext as e,SidebarSheetContext as l}from"./chunk-QWK6DRSN.js";import{readStoredWidth as r,ResizeHandle as t}from"./chunk-7NOU275V.js";import{useIsPhone as a}from"./chunk-UGTRSRIW.js";import{Icon as n}from"./chunk-42BBJJDP.js";import{useBrowserState as o}from"./chunk-D65T4H6J.js";import{useShellStrings as i}from"./chunk-GTRUBA2R.js";import{useState as s,useRef as c,useReducer as d,useMemo as h,Fragment as u,useEffect as m}from"react";import{jsxs as f,jsx as p}from"react/jsx-runtime";var b=(e,l,r)=>Math.min(Math.max(e,l),r);function x({sidebar:e,sidebarTop:l,sidebarBottom:n,children:u,side:m="left",storageKey:x,defaultWidth:N=256,minWidth:w=180,maxWidth:k=480,className:y="",sidebarClassName:j=("right"===m?"border-l border-gray-200 bg-gray-50":"border-r border-gray-200 bg-gray-50"),contentClassName:z="bg-white"}){const C="right"===m,D=i().sidebar,O=a(),P=function(){const[e,l]=s(!1),r=c(null),t=c(/* @__PURE__ */new Map),[,a]=d(e=>e+1,0),n=h(()=>({report(e,l,r){const n={label:l,el:r};return t.current.set(e,n),a(),()=>{t.current.get(e)===n&&(t.current.delete(e),a())}}}),[]);return{api:n,open:e,setOpen:l,current:()=>[...t.current.values()].sort((e,l)=>e.el&&l.el&&e.el.compareDocumentPosition(l.el)&Node.DOCUMENT_POSITION_PRECEDING?1:-1).map(e=>e.label()),trigger:r}}(),[R,W]=o(()=>(x?r(x,w,k):null)??b(N,w,k),b(N,w,k)),T=null!=l||null!=n,E=/* @__PURE__ */f("div",{className:"relative flex h-full shrink-0 flex-col",style:{width:R},children:[
2
- /* @__PURE__ */f("div",{className:`flex h-full flex-col ${T?"overflow-hidden":"overflow-y-auto"} ${j}`,children:[null!=l&&/* @__PURE__ */p("div",{className:"flex shrink-0 flex-col gap-2 px-2 pt-3 pb-2",children:l}),T?/* @__PURE__ */p("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e}):e,null!=n&&/* @__PURE__ */p("div",{className:"mt-auto flex shrink-0 flex-col gap-2 border-t border-gray-200 px-2 py-3",children:n})]}),
3
- /* @__PURE__ */p(t,{side:m,width:R,onResize:W,min:w,max:k,defaultWidth:b(N,w,k),storageKey:x,hint:D.resize})]}),I=/* @__PURE__ */p("div",{className:`flex min-w-0 flex-1 flex-col ${z}`,children:u});/* @__PURE__ */
4
- return f("div",O?{className:`relative flex h-full w-full flex-col overflow-hidden ${y}`,children:[
5
- /* @__PURE__ */p(g,{phone:P,top:l,fallback:D.sections}),I,
6
- /* @__PURE__ */p(v,{phone:P,bottom:n,label:D.sections,closeLabel:D.closeSections,children:e})]}:{className:`flex h-full w-full overflow-hidden ${y}`,children:[C?null:E,I,C?E:null]})}function g({phone:l,top:r,fallback:t}){const a=l.current();/* @__PURE__ */
1
+ import{SidebarBarContext as e,SidebarSheetContext as l}from"./chunk-QWK6DRSN.js";import{readStoredWidth as r,ResizeHandle as t}from"./chunk-JSB5G2XQ.js";import{useIsPhone as a}from"./chunk-UGTRSRIW.js";import{Icon as n}from"./chunk-42BBJJDP.js";import{useBrowserState as o}from"./chunk-D65T4H6J.js";import{useShellStrings as i}from"./chunk-KKZZAK76.js";import{useState as s,useRef as c,useReducer as d,useMemo as h,Fragment as u,useEffect as m}from"react";import{jsxs as f,jsx as p}from"react/jsx-runtime";var b=(e,l,r)=>Math.min(Math.max(e,l),r);function x({sidebar:e,sidebarTop:l,sidebarBottom:n,children:u,side:m="left",storageKey:x,defaultWidth:N=256,minWidth:w=180,maxWidth:k=480,className:y="",sidebarClassName:j=("right"===m?"border-l border-gray-200 bg-gray-50":"border-r border-gray-200 bg-gray-50"),contentClassName:z="bg-white"}){const C="right"===m,D=i().sidebar,K=a(),P=function(){const[e,l]=s(!1),r=c(null),t=c(/* @__PURE__ */new Map),[,a]=d(e=>e+1,0),n=h(()=>({report(e,l,r){const n={label:l,el:r};return t.current.set(e,n),a(),()=>{t.current.get(e)===n&&(t.current.delete(e),a())}}}),[]);return{api:n,open:e,setOpen:l,current:()=>[...t.current.values()].sort((e,l)=>e.el&&l.el&&e.el.compareDocumentPosition(l.el)&Node.DOCUMENT_POSITION_PRECEDING?1:-1).map(e=>e.label()),trigger:r}}(),[W,O]=o(()=>(x?r(x,w,k):null)??b(N,w,k),b(N,w,k)),E=null!=l||null!=n,I=/* @__PURE__ */f("div",{className:"relative flex h-full shrink-0 flex-col",style:{width:W},children:[
2
+ /* @__PURE__ */f("div",{className:`flex h-full flex-col ${E?"overflow-hidden":"overflow-y-auto"} ${j}`,children:[null!=l&&/* @__PURE__ */p("div",{className:"flex shrink-0 flex-col gap-2 px-2 pt-3 pb-2",children:l}),E?/* @__PURE__ */p("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e}):e,null!=n&&/* @__PURE__ */p("div",{className:"mt-auto flex shrink-0 flex-col gap-2 border-t border-gray-200 px-2 py-3",children:n})]}),
3
+ /* @__PURE__ */p(t,{side:m,width:W,onResize:O,min:w,max:k,defaultWidth:b(N,w,k),storageKey:x,hint:D.resize})]}),R=/* @__PURE__ */p("div",{className:`flex min-w-0 flex-1 flex-col ${z}`,children:u});/* @__PURE__ */
4
+ return f("div",K?{className:`relative flex h-full w-full flex-col overflow-hidden ${y}`,children:[
5
+ /* @__PURE__ */p(g,{phone:P,top:l,fallback:D.sections}),R,
6
+ /* @__PURE__ */p(v,{phone:P,bottom:n,label:D.sections,closeLabel:D.closeSections,children:e})]}:{className:`flex h-full w-full overflow-hidden ${y}`,children:[C?null:I,R,C?I:null]})}function g({phone:l,top:r,fallback:t}){const a=l.current();/* @__PURE__ */
7
7
  return f("div",{"data-sidebar-section-bar":!0,className:"flex h-11 shrink-0 items-center gap-2 border-b border-gray-200 bg-white px-3",children:[
8
8
  /* @__PURE__ */f("button",{ref:l.trigger,type:"button","aria-haspopup":"dialog","aria-expanded":l.open,onClick:()=>l.setOpen(!0),className:"flex h-8 min-w-0 flex-1 items-center gap-1 text-left text-sm font-semibold text-gray-900",children:[
9
9
  /* @__PURE__ */p("span",{className:"min-w-0 truncate",children:0===a.length?t:a.map((e,l)=>/* @__PURE__ */f(u,{children:[l>0&&" · ",e]},l))}),
@@ -1,4 +1,4 @@
1
- import{useShellLocale as e}from"./chunk-GTRUBA2R.js";import{formatFixed as t,formatPlain as s}from"./chunk-C3QOHMR6.js";import{jsxs as a,jsx as r}from"react/jsx-runtime";var l={sm:"text-lg",md:"text-2xl",lg:"text-3xl"},m={default:"text-gray-900",success:"text-green-600",danger:"text-red-600",muted:"text-gray-500"};function n({title:n,value:i,precision:c,prefix:d,suffix:x,tone:u="default",size:o="md",className:f=""}){const p=e(),g="number"!=typeof i?i:null!=c?t(i,c,p):p?s(i,p):i;/* @__PURE__ */
1
+ import{useShellLocale as e}from"./chunk-KKZZAK76.js";import{formatFixed as t,formatPlain as s}from"./chunk-C3QOHMR6.js";import{jsxs as a,jsx as r}from"react/jsx-runtime";var l={sm:"text-lg",md:"text-2xl",lg:"text-3xl"},m={default:"text-gray-900",success:"text-green-600",danger:"text-red-600",muted:"text-gray-500"};function n({title:n,value:i,precision:c,prefix:d,suffix:x,tone:u="default",size:o="md",className:f=""}){const p=e(),g="number"!=typeof i?i:null!=c?t(i,c,p):p?s(i,p):i;/* @__PURE__ */
2
2
  return a("div",{className:f,children:[n&&/* @__PURE__ */r("div",{className:"text-xs font-medium uppercase tracking-wide text-gray-500",children:n}),
3
3
  /* @__PURE__ */a("div",{className:`mt-1 flex items-baseline gap-1 ${m[u]}`,children:[d&&/* @__PURE__ */r("span",{className:"text-sm",children:d}),
4
4
  /* @__PURE__ */r("span",{className:`font-semibold tabular-nums ${l[o]}`,children:g}),x&&/* @__PURE__ */r("span",{className:"text-sm",children:x})]})]})}export{n as Statistic};
@@ -1,18 +1,18 @@
1
- import{useShellStrings as e}from"./chunk-GTRUBA2R.js";import{jsxs as t,jsx as a,Fragment as l}from"react/jsx-runtime";var n=e=>"number"==typeof e?e:parseInt(String(e??""))||0;function s({items:s,getVolume:r,getInstructionVolume:i,getActualVolume:c,qtyField:m="instruction",showNewIndicator:d=!1,getInstructionQty:u=e=>e.quantity,getActualQty:g=e=>e.actual_qty,isFilled:h,isNew:o=e=>Boolean(e._isNew),className:x,style:f}){const p=e().containers,y=h?s.filter(h):s,N=e=>n(u(e)),b=e=>n(g(e)),w=y.some(e=>null!=g(e)&&b(e)>0),v=e=>w?N(e):"actual"===m?g(e)??u(e)??0:u(e)??0,M=y.reduce((e,t)=>e+n(v(t)),0),$=y.filter(e=>o(e)).length,j=y.filter(e=>o(e)).reduce((e,t)=>e+n(v(t)),0),k=y.reduce((e,t)=>e+N(t),0),A=y.reduce((e,t)=>e+b(t),0),I=e=>r?.(e)??0,V=i??(e=>I(e)*N(e)),q=c??(e=>I(e)*b(e)),B=y.reduce((e,t)=>e+V(t),0),F=y.reduce((e,t)=>e+q(t),0),Q=w?Math.max(B,F):"actual"===m&&F||B,R=Q<=34.65?"20ft":"40ft",_="20ft"===R?33:67,G=Q>0?Math.max(1,Math.ceil(Q/_)):0,S=G*_,T=Q>0&&Q>=.95*S&&Q<=1.1*S;if(0===y.length)return null;const U=(e,t)=>_>0?Math.max(0,Math.min((e-t*_)/_*100,100)):0;/* @__PURE__ */
1
+ import{useShellStrings as e}from"./chunk-KKZZAK76.js";import{jsxs as t,jsx as a,Fragment as l}from"react/jsx-runtime";var n=e=>"number"==typeof e?e:parseInt(String(e??""))||0;function s({items:s,getVolume:r,getInstructionVolume:i,getActualVolume:c,qtyField:m="instruction",showNewIndicator:d=!1,getInstructionQty:u=e=>e.quantity,getActualQty:g=e=>e.actual_qty,isFilled:h,isNew:o=e=>Boolean(e._isNew),className:x,style:f}){const p=e().containers,y=h?s.filter(h):s,N=e=>n(u(e)),b=e=>n(g(e)),w=y.some(e=>null!=g(e)&&b(e)>0),v=e=>w?N(e):"actual"===m?g(e)??u(e)??0:u(e)??0,M=y.reduce((e,t)=>e+n(v(t)),0),$=y.filter(e=>o(e)).length,j=y.filter(e=>o(e)).reduce((e,t)=>e+n(v(t)),0),k=y.reduce((e,t)=>e+N(t),0),A=y.reduce((e,t)=>e+b(t),0),I=e=>r?.(e)??0,V=i??(e=>I(e)*N(e)),q=c??(e=>I(e)*b(e)),K=y.reduce((e,t)=>e+V(t),0),F=y.reduce((e,t)=>e+q(t),0),Q=w?Math.max(K,F):"actual"===m&&F||K,Z=Q<=34.65?"20ft":"40ft",_="20ft"===Z?33:67,B=Q>0?Math.max(1,Math.ceil(Q/_)):0,S=B*_,z=Q>0&&Q>=.95*S&&Q<=1.1*S;if(0===y.length)return null;const C=(e,t)=>_>0?Math.max(0,Math.min((e-t*_)/_*100,100)):0;/* @__PURE__ */
2
2
  return t("div",{className:`mt-2 px-1 space-y-2 ${x??""}`.trim(),style:f,children:[
3
3
  /* @__PURE__ */t("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[
4
4
  /* @__PURE__ */t("span",{children:[`${p.items(y.length)} · ${p.pieces(M)}`,w&&k!==A&&/* @__PURE__ */a("span",{className:"ml-1 text-gray-400",children:p.split(k,A)})]}),d&&$>0&&/* @__PURE__ */t("span",{className:"flex items-center gap-1 text-green-600",children:[
5
- /* @__PURE__ */a("span",{className:"w-1.5 h-1.5 rounded-full bg-green-500"}),p.added($,j)]})]}),Q>0?/* @__PURE__ */t("div",{className:"space-y-2",children:[Array.from({length:G}).map((e,l)=>{const n=U(B,l),s=U(F,l),r=w,i=Math.max(n,s),c=Math.min(n,s),m=n>=s,d=r?m?"bg-blue-500":"bg-green-500":"bg-blue-500",u=r?m?"bg-green-500":"bg-blue-500":"";/* @__PURE__ */
5
+ /* @__PURE__ */a("span",{className:"w-1.5 h-1.5 rounded-full bg-green-500"}),p.added($,j)]})]}),Q>0?/* @__PURE__ */t("div",{className:"space-y-2",children:[Array.from({length:B}).map((e,l)=>{const n=C(K,l),s=C(F,l),r=w,i=Math.max(n,s),c=Math.min(n,s),m=n>=s,d=r?m?"bg-blue-500":"bg-green-500":"bg-blue-500",u=r?m?"bg-green-500":"bg-blue-500":"";/* @__PURE__ */
6
6
  return t("div",{className:"flex items-center gap-2",children:[
7
- /* @__PURE__ */a("span",{className:"text-2xs text-gray-400 w-8 shrink-0",children:R}),
7
+ /* @__PURE__ */a("span",{className:"text-2xs text-gray-400 w-8 shrink-0",children:Z}),
8
8
  /* @__PURE__ */t("div",{className:"relative flex-1 h-4 bg-gray-100 rounded-full overflow-hidden border border-gray-200",children:[
9
9
  /* @__PURE__ */a("div",{className:`absolute inset-y-0 left-0 ${d} transition-all`,style:{width:`${i}%`}}),r&&c>0&&/* @__PURE__ */a("div",{className:`absolute inset-y-0 left-0 ${u} transition-all`,style:{width:`${c}%`}})]}),
10
- /* @__PURE__ */a("span",{className:"text-2xs text-gray-500 w-16 text-right",children:r?p.fill(Math.min(F-l*_,_),_):p.fill(Math.min(B-l*_,_),_)})]},`bar-${l}`)}),
10
+ /* @__PURE__ */a("span",{className:"text-2xs text-gray-500 w-16 text-right",children:r?p.fill(Math.min(F-l*_,_),_):p.fill(Math.min(K-l*_,_),_)})]},`bar-${l}`)}),
11
11
  /* @__PURE__ */t("div",{className:"flex items-center justify-between text-xs pt-0.5",children:[
12
12
  /* @__PURE__ */t("span",{className:"text-gray-500 inline-flex items-center gap-1",children:[p.total,w?/* @__PURE__ */t(l,{children:[
13
13
  /* @__PURE__ */t("span",{className:"inline-flex items-center gap-1 text-blue-700",children:[
14
- /* @__PURE__ */a("span",{className:"inline-block w-2 h-2 rounded-full bg-blue-500"}),p.instructed(B)]}),
14
+ /* @__PURE__ */a("span",{className:"inline-block w-2 h-2 rounded-full bg-blue-500"}),p.instructed(K)]}),
15
15
  /* @__PURE__ */a("span",{className:"text-gray-400",children:"/"}),
16
16
  /* @__PURE__ */t("span",{className:"inline-flex items-center gap-1 text-green-700",children:[
17
17
  /* @__PURE__ */a("span",{className:"inline-block w-2 h-2 rounded-full bg-green-500"}),p.loaded(F)]})]}):/* @__PURE__ */a("b",{className:"text-gray-700",children:p.volume(Q)})]}),
18
- /* @__PURE__ */t("span",{className:"font-medium "+(T?"text-green-600":"text-gray-500"),children:[T&&"✓ ",G," × ",R]})]})]}):/* @__PURE__ */a("div",{className:"text-xs text-gray-400",children:p.noVolume})]})}export{s as ContainerFillChart};
18
+ /* @__PURE__ */t("span",{className:"font-medium "+(z?"text-green-600":"text-gray-500"),children:[z&&"✓ ",B," × ",Z]})]})]}):/* @__PURE__ */a("div",{className:"text-xs text-gray-400",children:p.noVolume})]})}export{s as ContainerFillChart};
@@ -1,9 +1,9 @@
1
- import{useShellLocale as e}from"./chunk-GTRUBA2R.js";import{formatPlain as r}from"./chunk-C3QOHMR6.js";import{useId as a,Children as d}from"react";import{jsxs as t,jsx as i}from"react/jsx-runtime";var n={none:{body:"",edge:"px-4 py-3"},sm:{body:"p-3",edge:"px-3 py-2"},md:{body:"p-4",edge:"px-4 py-3"},lg:{body:"p-6",edge:"px-6 py-4"}},l={neutral:"border-gray-200",warning:"border-amber-300",current:"border-gray-200"};function s({children:e,header:r,description:s,footer:c,padded:o=!0,padding:m,headingLevel:b,headerActions:u,"aria-label":p,className:h="",bodyClassName:g="",style:x,tone:y="neutral"}){const f=n[m??(o?"md":"none")],N=a(),v=a(),$=null!=r&&null!=s&&""!==s,w=null!=b&&null!=r,j=`h${b}`,k=null!=p&&""!==p,A=w||k,R=A?"section":"div",B=`rounded-(--radius-card) border ${l[y]} bg-white shadow-sm ${h}`.trim(),C=d.toArray(e).length>0,G=C?"border-b border-gray-100 ":"",H="current"===y,L=H?"text-base font-semibold text-blue-700":"text-base font-semibold text-gray-900",M=H?"rounded-t-(--radius-card) bg-blue-50 ":"",O=`${G}${M}${f.edge} ${L}`;/* @__PURE__ */
2
- return t(R,{className:B,style:x,...k?{"aria-label":p}:w?{"aria-labelledby":N}:{},...$&&A?{"aria-describedby":v}:{},...H?{"aria-current":!0}:{},children:[$?
3
- /* @__PURE__ */t("div",{className:`${G}${M}${f.edge}`,children:[null!=u?/* @__PURE__ */t("div",{className:`flex items-center justify-between gap-3 ${L}`,children:[w?/* @__PURE__ */i(j,{id:N,children:r}):/* @__PURE__ */i("span",{children:r}),u]}):w?/* @__PURE__ */i(j,{id:N,className:L,children:r}):/* @__PURE__ */i("div",{className:L,children:r}),
1
+ import{useShellLocale as e}from"./chunk-KKZZAK76.js";import{formatPlain as r}from"./chunk-C3QOHMR6.js";import{useId as a,Children as d}from"react";import{jsxs as t,jsx as i}from"react/jsx-runtime";var n={none:{body:"",edge:"px-4 py-3"},sm:{body:"p-3",edge:"px-3 py-2"},md:{body:"p-4",edge:"px-4 py-3"},lg:{body:"p-6",edge:"px-6 py-4"}},l={neutral:"border-gray-200",warning:"border-amber-300",current:"border-gray-200"};function s({children:e,header:r,description:s,footer:c,padded:o=!0,padding:m,headingLevel:b,headerActions:u,"aria-label":p,className:h="",bodyClassName:g="",style:x,tone:y="neutral"}){const f=n[m??(o?"md":"none")],N=a(),v=a(),$=null!=r&&null!=s&&""!==s,w=null!=b&&null!=r,j=`h${b}`,k=null!=p&&""!==p,A=w||k,K=A?"section":"div",C=`rounded-(--radius-card) border ${l[y]} bg-white shadow-sm ${h}`.trim(),Z=d.toArray(e).length>0,B=Z?"border-b border-gray-100 ":"",H="current"===y,L=H?"text-base font-semibold text-blue-700":"text-base font-semibold text-gray-900",M=H?"rounded-t-(--radius-card) bg-blue-50 ":"",O=`${B}${M}${f.edge} ${L}`;/* @__PURE__ */
2
+ return t(K,{className:C,style:x,...k?{"aria-label":p}:w?{"aria-labelledby":N}:{},...$&&A?{"aria-describedby":v}:{},...H?{"aria-current":!0}:{},children:[$?
3
+ /* @__PURE__ */t("div",{className:`${B}${M}${f.edge}`,children:[null!=u?/* @__PURE__ */t("div",{className:`flex items-center justify-between gap-3 ${L}`,children:[w?/* @__PURE__ */i(j,{id:N,children:r}):/* @__PURE__ */i("span",{children:r}),u]}):w?/* @__PURE__ */i(j,{id:N,className:L,children:r}):/* @__PURE__ */i("div",{className:L,children:r}),
4
4
  /* @__PURE__ */i("p",{id:v,className:H?"mt-0.5 text-xs text-gray-600":"mt-0.5 text-xs text-gray-500",children:s})]}):null!=r&&(null!=u?
5
5
  /* @__PURE__ */t("div",{className:`${O} flex items-center justify-between gap-3`,children:[w?/* @__PURE__ */i(j,{id:N,children:r}):/* @__PURE__ */i("span",{children:r}),u]}):w?
6
- /* @__PURE__ */i(j,{id:N,className:O,children:r}):/* @__PURE__ */i("div",{className:O,children:r})),C&&/* @__PURE__ */i("div",{className:[f.body,g].filter(Boolean).join(" "),children:e}),c&&/* @__PURE__ */i("div",{className:`border-t border-gray-100 ${f.edge}`,children:c})]})}function c({label:a,value:d,icon:n,delta:l,className:s=""}){const c=e(),o="number"==typeof d&&c?r(d,c):d,m="up"===l?.direction?"text-green-600":"down"===l?.direction?"text-red-600":"text-gray-500",b="up"===l?.direction?"▲":"down"===l?.direction?"▼":"→";/* @__PURE__ */
6
+ /* @__PURE__ */i(j,{id:N,className:O,children:r}):/* @__PURE__ */i("div",{className:O,children:r})),Z&&/* @__PURE__ */i("div",{className:[f.body,g].filter(Boolean).join(" "),children:e}),c&&/* @__PURE__ */i("div",{className:`border-t border-gray-100 ${f.edge}`,children:c})]})}function c({label:a,value:d,icon:n,delta:l,className:s=""}){const c=e(),o="number"==typeof d&&c?r(d,c):d,m="up"===l?.direction?"text-green-600":"down"===l?.direction?"text-red-600":"text-gray-500",b="up"===l?.direction?"▲":"down"===l?.direction?"▼":"→";/* @__PURE__ */
7
7
  return t("div",{className:`rounded-(--radius-card) border border-gray-200 bg-white p-4 shadow-sm ${s}`.trim(),children:[
8
8
  /* @__PURE__ */t("div",{className:"flex items-center justify-between text-gray-500",children:[
9
9
  /* @__PURE__ */i("span",{className:"text-xs font-medium uppercase tracking-wide",children:a}),n]}),
@@ -1,4 +1,4 @@
1
- import{navIcons as e}from"./chunk-TPDOOCFS.js";import{Icon as t}from"./chunk-42BBJJDP.js";import{isValidElement as r,cloneElement as n}from"react";import{jsx as o,jsxs as i}from"react/jsx-runtime";var l=["from-blue-500 to-blue-700","from-indigo-500 to-purple-600","from-purple-500 to-pink-600","from-pink-500 to-rose-600","from-red-500 to-rose-600","from-orange-500 to-red-600","from-amber-500 to-orange-600","from-yellow-500 to-amber-500","from-lime-500 to-green-600","from-green-500 to-emerald-600","from-emerald-500 to-teal-600","from-teal-500 to-cyan-600","from-cyan-500 to-sky-600","from-sky-500 to-blue-600","from-violet-500 to-fuchsia-600"];function a(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r);return l[Math.abs(t)%l.length]}var d={order:"text-blue-600",purchase_order:"text-purple-600",invoice:"text-green-600",client:"text-indigo-600",manufacturer:"text-orange-600",shipment:"text-teal-600",part_number:"text-gray-600",project:"text-pink-600",mould:"text-red-600",design:"text-cyan-600",brand:"text-amber-600",price_sheet:"text-emerald-600",folder:"text-yellow-600",page:"text-blue-500"},s={order:"SO",purchase_order:"PO",invoice:"INV",client:"CLI",manufacturer:"MFR",shipment:"DN",part_number:"PN",project:"PRJ",mould:"MLD",design:"DSN",brand:"BRD",price_sheet:"PS",vendor_invoice:"VI",vendor_payment:"VP",warranty_claim:"WC",qc_report:"QC",vendor_shipment:"GRN",bank_account:"BA",wheel_finish:"WF",weight_log:"WL",production_progress:"PP",vendor_price_sheet:"VPS",proposal:"PR",folder:"FLD"},c={pdf:"PDF",dxf:"DXF","3d":"STP",image:"IMG",csv:"CSV"},f={pdf:"text-red-600",dxf:"text-blue-600","3d":"text-purple-600",image:"text-emerald-600",csv:"text-green-600"};function p({className:e}){/* @__PURE__ */
1
+ import{navIcons as e}from"./chunk-CY5N5OA3.js";import{Icon as t}from"./chunk-42BBJJDP.js";import{isValidElement as r,cloneElement as n}from"react";import{jsx as o,jsxs as i}from"react/jsx-runtime";var l=["from-blue-500 to-blue-700","from-indigo-500 to-purple-600","from-purple-500 to-pink-600","from-pink-500 to-rose-600","from-red-500 to-rose-600","from-orange-500 to-red-600","from-amber-500 to-orange-600","from-yellow-500 to-amber-500","from-lime-500 to-green-600","from-green-500 to-emerald-600","from-emerald-500 to-teal-600","from-teal-500 to-cyan-600","from-cyan-500 to-sky-600","from-sky-500 to-blue-600","from-violet-500 to-fuchsia-600"];function a(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r);return l[Math.abs(t)%l.length]}var d={order:"text-blue-600",purchase_order:"text-purple-600",invoice:"text-green-600",client:"text-indigo-600",manufacturer:"text-orange-600",shipment:"text-teal-600",part_number:"text-gray-600",project:"text-pink-600",mould:"text-red-600",design:"text-cyan-600",brand:"text-amber-600",price_sheet:"text-emerald-600",folder:"text-yellow-600",page:"text-blue-500"},s={order:"SO",purchase_order:"PO",invoice:"INV",client:"CLI",manufacturer:"MFR",shipment:"DN",part_number:"PN",project:"PRJ",mould:"MLD",design:"DSN",brand:"BRD",price_sheet:"PS",vendor_invoice:"VI",vendor_payment:"VP",warranty_claim:"WC",qc_report:"QC",vendor_shipment:"GRN",bank_account:"BA",wheel_finish:"WF",weight_log:"WL",production_progress:"PP",vendor_price_sheet:"VPS",proposal:"PR",folder:"FLD"},c={pdf:"PDF",dxf:"DXF","3d":"STP",image:"IMG",csv:"CSV"},f={pdf:"text-red-600",dxf:"text-blue-600","3d":"text-purple-600",image:"text-emerald-600",csv:"text-green-600"};function p({className:e}){/* @__PURE__ */
2
2
  return o(t,{name:"folder",look:"solid",className:e})}function u(t,r){return r&&e[r]||(t?e[t]:void 0)}var m=/* @__PURE__ */o("svg",{className:"h-7 w-7",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */o("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6z"})});function h({entityType:e,isSelected:t,entityId:l,label:h,fileKind:w}){const g="preview-file"===e&&w,y=g?f[w]:null,x=g?c[w]:null;if("folder"===e)/* @__PURE__ */
3
3
  return o("div",{className:"w-12 h-12 flex items-center justify-center "+(t?"rounded-lg bg-blue-400/30 ring-2 ring-blue-500":""),children:/* @__PURE__ */o(p,{className:"h-12 w-12 text-amber-500 drop-shadow-[0_2px_3px_rgba(0,0,0,0.3)]"})});if("page"===e){const e=u(l,h),i=a(l||h||"page");/* @__PURE__ */
4
4
  return o("div",{className:"w-12 h-12 flex items-center justify-center "+(t?"rounded-lg bg-blue-400/30 ring-2 ring-blue-500":""),children:/* @__PURE__ */o("span",{className:`h-11 w-11 rounded-xl bg-gradient-to-br ${i} flex items-center justify-center text-white border border-white/30 drop-shadow-[0_2px_3px_rgba(0,0,0,0.3)]`,children:e&&r(e)?n(e,{className:"h-7 w-7 text-white"}):m})})}/* @__PURE__ */
@@ -10,4 +10,4 @@ return i("div",{className:"w-12 h-12 relative flex items-center justify-center "
10
10
  /* @__PURE__ */o("span",{className:`absolute inset-0 flex items-center justify-center text-3xs font-bold pt-2 ${y??d[e]??"text-gray-600"}`,children:x??s[e]??e.slice(0,3).toUpperCase()})]})}function w({item:e}){if("folder"===e.entityType)/* @__PURE__ */
11
11
  return o(p,{className:"h-4 w-4 shrink-0 text-amber-500"});if("page"===e.entityType){const t=u(e.entityId,e.label);/* @__PURE__ */
12
12
  return o("span",{className:`h-4 w-4 rounded bg-gradient-to-br ${a(e.entityId||e.label||"page")} flex items-center justify-center text-white shrink-0`,children:t&&r(t)?n(t,{className:"h-3 w-3 text-white"}):/* @__PURE__ */o("span",{className:"h-1.5 w-1.5 rounded-[2px] border border-white/80"})})}const i=("preview-file"===e.entityType&&e.fileKind?f[e.fileKind]:d[e.entityType])??"text-gray-400";/* @__PURE__ */
13
- return o(t,{name:"page",className:`h-4 w-4 shrink-0 ${i}`,strokeWidth:1.5})}function g(e){return"preview-file"===e.entityType&&e.fileKind?c[e.fileKind]:"page"===e.entityType?"App":"folder"===e.entityType?"Folder":s[e.entityType]??e.entityType.slice(0,3).toUpperCase()}var y=null,x=/* @__PURE__ */new Set;function b(e){y=e,x.forEach(e=>e())}function v(e){return x.add(e),()=>{x.delete(e)}}function _(){return y}var k="__REACT_OS_SHELL_FILES_VIEW__",N="react-os-shell:files-show-trash",C="react-os-shell:files-open-desktop-folder";function j(){"undefined"!=typeof window&&(window[k]="trash",window.dispatchEvent(new CustomEvent(N)))}function P(e){"undefined"!=typeof window&&(window[k]={view:"desktop-folder",folderId:e},window.dispatchEvent(new CustomEvent(C,{detail:{folderId:e}})))}function T(){if("undefined"==typeof window)return null;const e=window[k];return"trash"===e?"trash":e&&"object"==typeof e&&"desktop-folder"===e.view&&"string"==typeof e.folderId?e:null}function I(){const e=T();return"undefined"!=typeof window&&(window[k]=null),e}export{w as DesktopItemMiniIcon,C as FILES_OPEN_DESKTOP_FOLDER_EVENT,N as FILES_SHOW_TRASH_EVENT,h as FileIconTile,p as FolderGlyph,I as consumeFilesViewRequest,g as desktopItemTypeLabel,_ as getDesktopFoldersSnapshot,T as peekFilesViewRequest,b as publishDesktopFolders,P as requestFilesDesktopFolderView,j as requestFilesTrashView,v as subscribeDesktopFolders};
13
+ return o(t,{name:"page",className:`h-4 w-4 shrink-0 ${i}`,strokeWidth:1.5})}function g(e){return"preview-file"===e.entityType&&e.fileKind?c[e.fileKind]:"page"===e.entityType?"App":"folder"===e.entityType?"Folder":s[e.entityType]??e.entityType.slice(0,3).toUpperCase()}var y=null,x=/* @__PURE__ */new Set;function b(e){y=e,x.forEach(e=>e())}function v(e){return x.add(e),()=>{x.delete(e)}}function _(){return y}var k="__REACT_OS_SHELL_FILES_VIEW__",N="react-os-shell:files-show-trash",C="react-os-shell:files-open-desktop-folder";function j(){"undefined"!=typeof window&&(window[k]="trash",window.dispatchEvent(new CustomEvent(N)))}function I(e){"undefined"!=typeof window&&(window[k]={view:"desktop-folder",folderId:e},window.dispatchEvent(new CustomEvent(C,{detail:{folderId:e}})))}function P(){if("undefined"==typeof window)return null;const e=window[k];return"trash"===e?"trash":e&&"object"==typeof e&&"desktop-folder"===e.view&&"string"==typeof e.folderId?e:null}function T(){const e=P();return"undefined"!=typeof window&&(window[k]=null),e}export{w as DesktopItemMiniIcon,C as FILES_OPEN_DESKTOP_FOLDER_EVENT,N as FILES_SHOW_TRASH_EVENT,h as FileIconTile,p as FolderGlyph,T as consumeFilesViewRequest,g as desktopItemTypeLabel,_ as getDesktopFoldersSnapshot,P as peekFilesViewRequest,b as publishDesktopFolders,I as requestFilesDesktopFolderView,j as requestFilesTrashView,v as subscribeDesktopFolders};