efficient-shell 8.16.2 → 8.18.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 (347) hide show
  1. package/README.md +89 -7
  2. package/dist/{Browser-AUE7SDAW.js → Browser-H5OJL6TK.js} +14 -14
  3. package/dist/Calculator-VHXRKH2M.js +29 -0
  4. package/dist/{CurrencyConverter-XK6SETYS.js → CurrencyConverter-5AIXDNF6.js} +8 -8
  5. package/dist/{Documents-GOOUHNMJ.js → Documents-352IGNWY.js} +19 -19
  6. package/dist/Files-ODENHLKQ.js +87 -0
  7. package/dist/{Notepad-MQJGT2B6.js → Notepad-DWPTCM2I.js} +10 -10
  8. package/dist/PdfViewer-456B27TB.js +1 -0
  9. package/dist/{PomodoroTimer-D37Y6TE7.js → PomodoroTimer-YWR6X3FT.js} +34 -34
  10. package/dist/{Preview-YSN6S5M6.js → Preview-LMUHIWNB.js} +46 -46
  11. package/dist/Sidebar-ZIHLBHKR.js +43 -0
  12. package/dist/{Spreadsheet-KRLDLSRZ.js → Spreadsheet-DAZUBPFY.js} +13 -13
  13. package/dist/{Stock-ZUTJX6S6.js → Stock-C2EQYFNA.js} +7 -7
  14. package/dist/{Weather-4GPPPHK5.js → Weather-EZU5A7JW.js} +19 -19
  15. package/dist/{WorldClock-TW36BP7G.js → WorldClock-SKUEYQXU.js} +6 -6
  16. package/dist/ai/index.js +15 -15
  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-WAMBQNDN.js → chunk-2QYQDCJE.js} +14 -14
  46. package/dist/{chunk-T6L6HQI5.js → chunk-2RKTVTJJ.js} +1 -1
  47. package/dist/{chunk-42U4LJT7.js → chunk-2VFRVO3N.js} +26 -26
  48. package/dist/{chunk-3VCAQ72C.js → chunk-2YZ3ITNG.js} +2 -2
  49. package/dist/{chunk-CP6Q24MP.js → chunk-2ZIVFBJN.js} +8 -8
  50. package/dist/{chunk-LJSJFS2M.js → chunk-37DRDM4D.js} +12 -12
  51. package/dist/{chunk-2VLQECPC.js → chunk-3NU2B2WM.js} +9 -9
  52. package/dist/{chunk-QV2GME3Y.js → chunk-3XLDWJDG.js} +6 -6
  53. package/dist/{chunk-VJPJNCB4.js → chunk-42BBJJDP.js} +2 -1
  54. package/dist/{chunk-TWWJLFTD.js → chunk-4JCNWUVZ.js} +4 -4
  55. package/dist/{chunk-7UBV5MPQ.js → chunk-4NB3WHWK.js} +1 -1
  56. package/dist/{chunk-O6TKI4F5.js → chunk-4S724CEA.js} +1 -1
  57. package/dist/{chunk-S2ONNZVX.js → chunk-56CQPUIJ.js} +15 -15
  58. package/dist/{chunk-CASSD64W.js → chunk-5N6VSOZV.js} +5 -5
  59. package/dist/chunk-5QFPTDQF.js +1 -0
  60. package/dist/{chunk-UL4WB3VH.js → chunk-5WYCXSUM.js} +1 -1
  61. package/dist/{chunk-NIULZZAI.js → chunk-6EAVTBKE.js} +1 -1
  62. package/dist/{chunk-XF2NZVXW.js → chunk-6JLZMVVE.js} +6 -6
  63. package/dist/{chunk-RECXXFYW.js → chunk-6MN2JR25.js} +8 -8
  64. package/dist/{chunk-G2A4K36M.js → chunk-6OPAUSMV.js} +2 -2
  65. package/dist/{chunk-2M5JD52X.js → chunk-6YPZHG7O.js} +2 -2
  66. package/dist/{chunk-SDIGC5NU.js → chunk-73FD77RD.js} +1 -1
  67. package/dist/chunk-7F5FURAC.js +1 -0
  68. package/dist/{chunk-QP2S2K2Y.js → chunk-7GCBMTP2.js} +3 -3
  69. package/dist/{chunk-PRR2GXBV.js → chunk-7NOU275V.js} +2 -2
  70. package/dist/{chunk-IJMV4F2Q.js → chunk-A3MOA3T7.js} +1 -1
  71. package/dist/{chunk-OS57C5J7.js → chunk-A3R6DKQ5.js} +1 -1
  72. package/dist/{chunk-KLAZTKN2.js → chunk-AAYACT5T.js} +4 -4
  73. package/dist/{chunk-Y3XH4HJQ.js → chunk-ABD34D3N.js} +3 -3
  74. package/dist/chunk-AG3ALTVD.js +20 -0
  75. package/dist/chunk-AJOWAZ46.js +1 -0
  76. package/dist/{chunk-LI7D6SMK.js → chunk-APMBWBD7.js} +1 -1
  77. package/dist/{chunk-VCEARTZR.js → chunk-B6BE4WSP.js} +6 -6
  78. package/dist/chunk-BE4APEUI.js +2 -0
  79. package/dist/{chunk-OU3ITBK5.js → chunk-BG5BCF64.js} +6 -6
  80. package/dist/{chunk-ENSA3NAS.js → chunk-BJGD2ZWK.js} +1 -1
  81. package/dist/{chunk-O3WSAR62.js → chunk-BVDGHZ4H.js} +1 -1
  82. package/dist/{chunk-7KYFOYC7.js → chunk-CG4KTWP4.js} +5 -5
  83. package/dist/chunk-CGY5RNAF.js +3 -0
  84. package/dist/chunk-CKDFXYYY.js +8 -0
  85. package/dist/{chunk-XTPDXB4X.js → chunk-DBBUHXRT.js} +1 -1
  86. package/dist/{chunk-XKCEVZZB.js → chunk-DGTP6BGV.js} +1 -1
  87. package/dist/{chunk-CTB634WT.js → chunk-DQEST7MN.js} +1 -1
  88. package/dist/{chunk-QIEMOYTG.js → chunk-DTJQHW3Q.js} +1 -1
  89. package/dist/chunk-EA37JL6P.js +3 -0
  90. package/dist/{chunk-PSOHSTXL.js → chunk-EFUQ4KAH.js} +1 -1
  91. package/dist/{chunk-GATOVTJT.js → chunk-EJNFOBE3.js} +4 -4
  92. package/dist/{chunk-SWSN3HZX.js → chunk-EO2XHSIK.js} +2 -2
  93. package/dist/{chunk-HEJTHEXN.js → chunk-EOPPYQIT.js} +1 -1
  94. package/dist/{chunk-76YDO3KA.js → chunk-F2HM7SV4.js} +1 -1
  95. package/dist/{chunk-KSYNJTVA.js → chunk-FJUFQXDS.js} +20 -20
  96. package/dist/chunk-FNQJO3HZ.js +11 -0
  97. package/dist/chunk-FTQ5DH5U.js +8 -0
  98. package/dist/chunk-GTRUBA2R.js +1 -0
  99. package/dist/chunk-GVKFLNRP.js +12 -0
  100. package/dist/{chunk-YYUICWSB.js → chunk-GVYJYXVH.js} +7 -7
  101. package/dist/{chunk-KBHC4VLA.js → chunk-HAZLMRTT.js} +1 -1
  102. package/dist/{chunk-PDPBIDHF.js → chunk-HBBTB6RW.js} +1 -1
  103. package/dist/{chunk-2LKH6JM5.js → chunk-HIDOSOI4.js} +1 -1
  104. package/dist/{chunk-MH4EUGAB.js → chunk-HKAWQF7O.js} +7 -7
  105. package/dist/{chunk-HEM6NC23.js → chunk-HKTU536H.js} +1 -1
  106. package/dist/{chunk-4B7ZRWDA.js → chunk-HMA4ZSCS.js} +1 -1
  107. package/dist/{chunk-IH2DJOTW.js → chunk-HNFLUVVM.js} +10 -10
  108. package/dist/{chunk-ACZDVHDY.js → chunk-HQIUFRWO.js} +13 -13
  109. package/dist/{chunk-BMBQ3IX3.js → chunk-HQNR4JQG.js} +1 -1
  110. package/dist/{chunk-5BLAPU7W.js → chunk-I5T3A4KI.js} +1 -1
  111. package/dist/chunk-IC72MGON.js +1 -0
  112. package/dist/{chunk-WKSVUJZA.js → chunk-JBMGI5YX.js} +3 -3
  113. package/dist/{chunk-SNDYD76W.js → chunk-JLDGZFNY.js} +10 -10
  114. package/dist/chunk-JSOO4O5K.js +10 -0
  115. package/dist/chunk-JSVYN6D6.js +3 -0
  116. package/dist/{chunk-4AFNDOPF.js → chunk-K2DUF2AR.js} +1 -1
  117. package/dist/{chunk-RPAKTBQT.js → chunk-K5UPORAA.js} +1 -1
  118. package/dist/{chunk-HPQ56MKK.js → chunk-KH6GERFP.js} +1 -1
  119. package/dist/{chunk-ION2GBY3.js → chunk-KIYO4U4T.js} +12 -12
  120. package/dist/{chunk-YO52QEKT.js → chunk-KW4VUPJV.js} +9 -9
  121. package/dist/chunk-LACL4MAR.js +1 -0
  122. package/dist/{chunk-2DGTGJYJ.js → chunk-LAHK4WVH.js} +7 -7
  123. package/dist/{chunk-4EIGXW4U.js → chunk-LDHYCVMV.js} +1 -1
  124. package/dist/{chunk-EKFIRCNP.js → chunk-LJVLMM3Q.js} +8 -8
  125. package/dist/{chunk-RQARJHDB.js → chunk-LWGNNVDA.js} +1 -1
  126. package/dist/{chunk-2OTCFJCU.js → chunk-M7JJOCBU.js} +1 -1
  127. package/dist/{chunk-ZEDYXP2J.js → chunk-MKTO2FHK.js} +1 -1
  128. package/dist/chunk-MNQ6EPAR.js +9 -0
  129. package/dist/{chunk-VAACOJ2H.js → chunk-MPN267PR.js} +1 -1
  130. package/dist/{chunk-PK4ZY4GZ.js → chunk-NADUURUA.js} +3 -3
  131. package/dist/{chunk-EDEQRSJC.js → chunk-NQ46AZ3D.js} +1 -1
  132. package/dist/{chunk-EVKBV6IV.js → chunk-NU55QIUV.js} +1 -1
  133. package/dist/{chunk-5GHLKEJQ.js → chunk-O5PJELY7.js} +1 -1
  134. package/dist/chunk-OLFYNMTD.js +1 -0
  135. package/dist/{chunk-CD6PGAYP.js → chunk-P5ILG2DA.js} +1 -1
  136. package/dist/{chunk-OHHJF547.js → chunk-P5QRK7WD.js} +1 -1
  137. package/dist/{chunk-PG665FWX.js → chunk-PEEVPAIJ.js} +9 -9
  138. package/dist/{chunk-E4YSP5RD.js → chunk-Q6BY4BME.js} +2 -2
  139. package/dist/{chunk-LC52BB6N.js → chunk-QAR4NYW6.js} +1 -1
  140. package/dist/{chunk-35DHYR37.js → chunk-QCP4F6EF.js} +1 -1
  141. package/dist/{chunk-T2VNNW6Z.js → chunk-QMLG5XKP.js} +7 -7
  142. package/dist/chunk-QSVKEONU.js +2 -0
  143. package/dist/{chunk-TUT6SGH2.js → chunk-QSW26NAH.js} +1 -1
  144. package/dist/{chunk-UWNL4FO2.js → chunk-QTK5NV7L.js} +1 -1
  145. package/dist/{chunk-6AKXEUZA.js → chunk-QTNPOMXM.js} +5 -5
  146. package/dist/chunk-QYGBWH5J.js +15 -0
  147. package/dist/{chunk-C4D4L2E5.js → chunk-RPY7FBYY.js} +1 -1
  148. package/dist/{chunk-SEFPZXO5.js → chunk-S2PKTGHB.js} +6 -6
  149. package/dist/{chunk-HHXP34PV.js → chunk-SACUPX6L.js} +4 -4
  150. package/dist/{chunk-LT2MMSHH.js → chunk-SGVIMTN6.js} +16 -16
  151. package/dist/{chunk-PMJMPYLQ.js → chunk-SLC3KT7F.js} +4 -4
  152. package/dist/{chunk-LR2X6MKB.js → chunk-SS7BG7BS.js} +1 -1
  153. package/dist/{chunk-RD5UPROC.js → chunk-TDAFCJY7.js} +6 -6
  154. package/dist/{chunk-HXXUMKTV.js → chunk-TF3E5J3Y.js} +1 -1
  155. package/dist/chunk-TQP3L4OC.js +7 -0
  156. package/dist/{chunk-TLZVEW34.js → chunk-TSOK3QNK.js} +4 -4
  157. package/dist/chunk-U5KIRPLV.js +2 -0
  158. package/dist/chunk-U5YJREQJ.js +14 -0
  159. package/dist/{chunk-3MZTDNAW.js → chunk-UB6TIA2R.js} +1 -1
  160. package/dist/{chunk-QGU24ERZ.js → chunk-UJULZQM2.js} +1 -1
  161. package/dist/{chunk-XZLBPVRH.js → chunk-UNDHDLWB.js} +1 -1
  162. package/dist/chunk-UPHXYWL6.js +15 -0
  163. package/dist/{chunk-7KZ65FSA.js → chunk-USE4HNZ2.js} +1 -1
  164. package/dist/{chunk-7IHH5CDD.js → chunk-V5GDA4I6.js} +3 -3
  165. package/dist/{chunk-JIJOXLDJ.js → chunk-V7NVQ3Z7.js} +1 -1
  166. package/dist/{chunk-GLVEL6AQ.js → chunk-VKLVHULL.js} +9 -9
  167. package/dist/chunk-VLKDWKVR.js +1 -0
  168. package/dist/chunk-VSQSBY2P.js +5 -0
  169. package/dist/chunk-W4YNYZDQ.js +6 -0
  170. package/dist/{chunk-TYEXEETI.js → chunk-WDIFRAQM.js} +5 -5
  171. package/dist/chunk-WEJFTUS7.js +9 -0
  172. package/dist/{chunk-65HOBHY7.js → chunk-WOHOIJRZ.js} +3 -3
  173. package/dist/{chunk-AGPQEI3I.js → chunk-WVSLFX37.js} +7 -7
  174. package/dist/{chunk-BUDBBIKN.js → chunk-WVWIRII2.js} +9 -9
  175. package/dist/chunk-XDG2RWUO.js +2 -0
  176. package/dist/{chunk-MV7WC6SL.js → chunk-XINUGME7.js} +45 -45
  177. package/dist/{chunk-EPGKTANF.js → chunk-XW56UIDQ.js} +6 -6
  178. package/dist/{chunk-VANXHWGP.js → chunk-Y67ILJVG.js} +1 -1
  179. package/dist/{chunk-PEELLEPP.js → chunk-YFY2LSWZ.js} +6 -6
  180. package/dist/{chunk-FARRGETL.js → chunk-YGITR6I5.js} +1 -1
  181. package/dist/chunk-YULJ7F6Z.js +19 -0
  182. package/dist/{chunk-PRXPLEVZ.js → chunk-Z3ZIVVKE.js} +1 -1
  183. package/dist/{chunk-R6XC7X63.js → chunk-Z7PS4QUO.js} +6 -6
  184. package/dist/chunk-ZGCLFQS5.js +8 -0
  185. package/dist/{chunk-DVFMCVI5.js → chunk-ZSRYQW64.js} +3 -3
  186. package/dist/{chunk-YT32RSS6.js → chunk-ZVK74ERI.js} +1 -1
  187. package/dist/{chunk-6EJ7G234.js → chunk-ZVY4J3PU.js} +7 -7
  188. package/dist/chunk-ZWQRFYE6.js +11 -0
  189. package/dist/{client-DLm3Fvbc.d.ts → client-DZeDEyG1.d.ts} +30 -9
  190. package/dist/data/DataTable.js +1 -1
  191. package/dist/data/Kanban.js +1 -1
  192. package/dist/data/ListFooter.js +1 -1
  193. package/dist/data/ListLoadError.js +1 -1
  194. package/dist/data/Pagination.js +1 -1
  195. package/dist/file-intake/index.js +1 -1
  196. package/dist/format/index.js +1 -1
  197. package/dist/forms/BorderInput.js +1 -1
  198. package/dist/forms/BrandAssetEditor.js +1 -1
  199. package/dist/forms/Calendar.js +1 -1
  200. package/dist/forms/ColorPicker.js +1 -1
  201. package/dist/forms/ComposerAttachments.js +1 -1
  202. package/dist/forms/CornersInput.js +1 -1
  203. package/dist/forms/DatePicker.js +1 -1
  204. package/dist/forms/DateRangePicker.js +1 -1
  205. package/dist/forms/DateTimePicker.js +1 -1
  206. package/dist/forms/DisplayChips.js +1 -1
  207. package/dist/forms/FilePicker.js +1 -1
  208. package/dist/forms/FormErrorSummary.js +1 -1
  209. package/dist/forms/IconPicker.js +1 -1
  210. package/dist/forms/ImageFocusPoint.js +1 -1
  211. package/dist/forms/InputNumber.js +1 -1
  212. package/dist/forms/LinkPicker.js +1 -1
  213. package/dist/forms/MediaUploadField.js +1 -1
  214. package/dist/forms/MediaUploadGrid.js +1 -1
  215. package/dist/forms/MediaUsedInList.d.ts +24 -0
  216. package/dist/forms/MediaUsedInList.js +2 -0
  217. package/dist/forms/NumericKeypad.js +1 -1
  218. package/dist/forms/PositionInput.js +1 -1
  219. package/dist/forms/Select.js +1 -1
  220. package/dist/forms/SidesInput.js +1 -1
  221. package/dist/forms/Slider.js +1 -1
  222. package/dist/forms/Snippet.js +1 -1
  223. package/dist/forms/SplitButton.js +1 -1
  224. package/dist/forms/TagInput.js +1 -1
  225. package/dist/forms/TextToolbar.js +1 -1
  226. package/dist/forms/TimePicker.js +1 -1
  227. package/dist/forms/WidthsBar.js +1 -1
  228. package/dist/forms/mediaMoveItems.d.ts +31 -0
  229. package/dist/forms/mediaMoveItems.js +2 -0
  230. package/dist/forms/useFileIntake.js +1 -1
  231. package/dist/hooks/useGridSelection.d.ts +70 -0
  232. package/dist/hooks/useGridSelection.js +2 -0
  233. package/dist/hooks/useMarquee.d.ts +68 -0
  234. package/dist/hooks/useMarquee.js +2 -0
  235. package/dist/icons/index.js +1 -1
  236. package/dist/index.d.ts +12 -3
  237. package/dist/index.js +695 -694
  238. package/dist/locales/zh-Hans.js +1 -1
  239. package/dist/map/index.js +4 -4
  240. package/dist/markdown/index.js +1 -1
  241. package/dist/page-tabs/index.js +5 -5
  242. package/dist/pdf/index.js +1 -1
  243. package/dist/shell/Accordion.js +1 -1
  244. package/dist/shell/AppUpdateBanner.js +1 -1
  245. package/dist/shell/Avatar.js +1 -1
  246. package/dist/shell/Banner.js +1 -1
  247. package/dist/shell/Breadcrumbs.js +1 -1
  248. package/dist/shell/BudgetBar.js +1 -1
  249. package/dist/shell/Card.js +1 -1
  250. package/dist/shell/ColoredBadge.js +1 -1
  251. package/dist/shell/ConfirmDialog.js +1 -1
  252. package/dist/shell/ContainerFillChart.js +1 -1
  253. package/dist/shell/ContextMenu.d.ts +12 -4
  254. package/dist/shell/ContextMenu.js +1 -1
  255. package/dist/shell/CountBadge.js +1 -1
  256. package/dist/shell/Dialog.js +1 -1
  257. package/dist/shell/Drawer.js +1 -1
  258. package/dist/shell/DropdownMenu.d.ts +18 -2
  259. package/dist/shell/DropdownMenu.js +1 -1
  260. package/dist/shell/EditableGrid.js +1 -1
  261. package/dist/shell/EmptyState.js +1 -1
  262. package/dist/shell/GlobalSearch.js +1 -1
  263. package/dist/shell/HelpCenter.js +1 -1
  264. package/dist/shell/IconRail.js +1 -1
  265. package/dist/shell/ImageLightbox.d.ts +32 -0
  266. package/dist/shell/ImageLightbox.js +2 -0
  267. package/dist/shell/LanguageSelect.js +1 -1
  268. package/dist/shell/Markdown.js +1 -1
  269. package/dist/shell/MarqueeBox.d.ts +17 -0
  270. package/dist/shell/MarqueeBox.js +1 -0
  271. package/dist/shell/MetricBar.js +1 -1
  272. package/dist/shell/MetricBarLegend.js +1 -1
  273. package/dist/shell/MilestoneTimeline.js +1 -1
  274. package/dist/shell/PageHeader.js +1 -1
  275. package/dist/shell/PopupMenu.d.ts +9 -1
  276. package/dist/shell/PopupMenu.js +1 -1
  277. package/dist/shell/ProductionTimeline.js +1 -1
  278. package/dist/shell/ResizeHandle.js +1 -1
  279. package/dist/shell/Result.js +1 -1
  280. package/dist/shell/SearchableSelect.js +1 -1
  281. package/dist/shell/SettingReset.js +1 -1
  282. package/dist/shell/SettingRow.js +1 -1
  283. package/dist/shell/SidebarLayout.js +1 -1
  284. package/dist/shell/SidebarNav.js +1 -1
  285. package/dist/shell/SortableList.js +1 -1
  286. package/dist/shell/Statistic.js +1 -1
  287. package/dist/shell/StepChain.js +1 -1
  288. package/dist/shell/Stepper.js +1 -1
  289. package/dist/shell/TimeAgo.js +1 -1
  290. package/dist/shell/TimelineTrack.js +1 -1
  291. package/dist/shell/TopNav.js +1 -1
  292. package/dist/shell/TransferProgress.js +1 -1
  293. package/dist/shell/Tree.js +1 -1
  294. package/dist/shell/ZoomableImage.d.ts +49 -0
  295. package/dist/shell/ZoomableImage.js +2 -0
  296. package/dist/shell/contextMenuTarget.d.ts +30 -4
  297. package/dist/shell/contextMenuTarget.js +1 -1
  298. package/dist/shell/language.js +1 -1
  299. package/dist/shell/strings.d.ts +23 -0
  300. package/dist/shell/strings.js +1 -1
  301. package/dist/shell/toast.js +1 -1
  302. package/dist/telemetry/index.d.ts +2 -1
  303. package/dist/telemetry/index.js +1 -1
  304. package/dist/templates/AuthScreen.js +1 -1
  305. package/dist/templates/ChatTemplate.js +1 -1
  306. package/dist/templates/CheckoutTemplate.js +1 -1
  307. package/dist/templates/DashboardTemplate.js +1 -1
  308. package/dist/templates/DataTablePage.js +1 -1
  309. package/dist/templates/EmailTemplate.js +1 -1
  310. package/dist/templates/ErrorBoundary.js +1 -1
  311. package/dist/templates/ErrorPage.js +1 -1
  312. package/dist/templates/FormLayoutPage.js +1 -1
  313. package/dist/templates/GalleryTemplate.js +1 -1
  314. package/dist/ui/index.d.ts +10 -2
  315. package/dist/ui/index.js +1 -1
  316. package/dist/utils/edgeScroll.d.ts +25 -0
  317. package/dist/utils/edgeScroll.js +1 -0
  318. package/dist/version.js +1 -1
  319. package/package.json +1 -1
  320. package/dist/Calculator-TYZWIYJW.js +0 -29
  321. package/dist/Files-BSTDQMII.js +0 -87
  322. package/dist/PdfViewer-Q7IS273H.js +0 -1
  323. package/dist/Sidebar-F4LYK5XP.js +0 -43
  324. package/dist/chunk-26DGOAPH.js +0 -14
  325. package/dist/chunk-3S52QOEP.js +0 -20
  326. package/dist/chunk-62LFDQGF.js +0 -15
  327. package/dist/chunk-6TWRV44R.js +0 -15
  328. package/dist/chunk-7IF3RZF3.js +0 -15
  329. package/dist/chunk-7UEFFCQV.js +0 -12
  330. package/dist/chunk-ARC3R4I2.js +0 -3
  331. package/dist/chunk-B3LWYJS7.js +0 -2
  332. package/dist/chunk-ES4HIX3L.js +0 -2
  333. package/dist/chunk-FEIVDR4M.js +0 -11
  334. package/dist/chunk-FPI7WBMU.js +0 -8
  335. package/dist/chunk-GLX6W5W4.js +0 -1
  336. package/dist/chunk-GZCAFWWB.js +0 -1
  337. package/dist/chunk-JM2XJJRB.js +0 -6
  338. package/dist/chunk-OFXGSEYD.js +0 -8
  339. package/dist/chunk-OVNRVFWS.js +0 -1
  340. package/dist/chunk-R6N26ITY.js +0 -5
  341. package/dist/chunk-RKWGWBET.js +0 -9
  342. package/dist/chunk-TB3AK6XF.js +0 -2
  343. package/dist/chunk-THCH4PD5.js +0 -1
  344. package/dist/chunk-UCMPHYBP.js +0 -19
  345. package/dist/chunk-Y4NIZQNT.js +0 -8
  346. package/dist/chunk-ZOGEAYWJ.js +0 -9
  347. /package/dist/{chunk-4MNNVSHD.js → chunk-PCGZS6S4.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{FormLayoutPage as default}from"../chunk-BMBQ3IX3.js";import"../chunk-RD5UPROC.js";import"../chunk-NI5FXWK5.js";import"../chunk-3S52QOEP.js";import"../chunk-EO5RLFRX.js";import"../chunk-TUT6SGH2.js";import"../chunk-UNEJ2ABD.js";import"../chunk-MVQBVPWP.js";import"../chunk-E4Z5OXBI.js";import"../chunk-CGZBDI6C.js";import"../chunk-AWY3F6PV.js";import"../chunk-JFSYWEHD.js";import"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";import"../chunk-UDD7GB4F.js";import"../chunk-K7U4RWXJ.js";import"../chunk-4TL3MRRE.js";import"../chunk-VJPJNCB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-2LXTJXWC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{FormLayoutPage as default}from"../chunk-HQNR4JQG.js";import"../chunk-TDAFCJY7.js";import"../chunk-NI5FXWK5.js";import"../chunk-AG3ALTVD.js";import"../chunk-EO5RLFRX.js";import"../chunk-QSW26NAH.js";import"../chunk-UNEJ2ABD.js";import"../chunk-E4Z5OXBI.js";import"../chunk-MVQBVPWP.js";import"../chunk-CGZBDI6C.js";import"../chunk-AWY3F6PV.js";import"../chunk-JFSYWEHD.js";import"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";import"../chunk-UDD7GB4F.js";import"../chunk-K7U4RWXJ.js";import"../chunk-42BBJJDP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-4TL3MRRE.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-2LXTJXWC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{GalleryTemplate as default}from"../chunk-OS57C5J7.js";import"../chunk-4G5M752L.js";import"../chunk-FQEALPZJ.js";import"../chunk-RD5UPROC.js";import"../chunk-4G5VLI7E.js";import"../chunk-5SULG7D5.js";import"../chunk-7T3COEQK.js";import"../chunk-UDD7GB4F.js";import"../chunk-K7U4RWXJ.js";import"../chunk-4TL3MRRE.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-2LXTJXWC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ export{GalleryTemplate as default}from"../chunk-A3R6DKQ5.js";import"../chunk-4G5M752L.js";import"../chunk-FQEALPZJ.js";import"../chunk-TDAFCJY7.js";import"../chunk-4G5VLI7E.js";import"../chunk-5SULG7D5.js";import"../chunk-7T3COEQK.js";import"../chunk-UDD7GB4F.js";import"../chunk-K7U4RWXJ.js";import"../chunk-4TL3MRRE.js";import"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";import"../chunk-2LXTJXWC.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-DTJRIWFR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
@@ -16,6 +16,14 @@ export { default as BrandMark, BrandMarkProps, BrandMarkSlot, BrandMarkSurface,
16
16
  export { default as BrandAssetEditor, BrandAssetEditorProps, BrandAssetPreview } from '../forms/BrandAssetEditor.js';
17
17
  export { PortalBrandingContextValue, PortalBrandingProvider, PortalBrandingProviderProps, PublicPortal, PublicPortalBranding, ResolvedPortalBrandAsset, resolvePortalBrandAsset, usePortalBranding } from '../contexts/PortalBrandingProvider.js';
18
18
  export { default as MediaUploadGrid, MediaUploadGridItem, MediaUploadGridProps } from '../forms/MediaUploadGrid.js';
19
+ export { GridSelection, SelectMods, useGridSelection } from '../hooks/useGridSelection.js';
20
+ export { MARQUEE_IGNORE, Rect as MarqueeHitRect, MarqueeRect, UseMarqueeOptions, marqueeHits, rectsIntersect, useMarquee } from '../hooks/useMarquee.js';
21
+ export { default as MarqueeBox } from '../shell/MarqueeBox.js';
22
+ export { edgeScrollDelta, getScrollParent, scrollBoundsOf } from '../utils/edgeScroll.js';
23
+ export { default as ImageLightbox, ImageLightboxProps, LightboxItem, LightboxKind, lightboxKind } from '../shell/ImageLightbox.js';
24
+ export { default as ZoomableImage, ZoomableImageProps } from '../shell/ZoomableImage.js';
25
+ export { MediaUsedInItem, default as MediaUsedInList, MediaUsedInListProps } from '../forms/MediaUsedInList.js';
26
+ export { MediaMoveItemsOptions, MediaMoveTarget, mediaMoveItems, useMediaMoveItems } from '../forms/mediaMoveItems.js';
19
27
  export { default as DateRangePicker, DateRangePickerProps, toISODate } from '../forms/DateRangePicker.js';
20
28
  export { default as Calendar, CalendarMode, CalendarProps, fromKey as fromDateKey, toKey as toDateKey } from '../forms/Calendar.js';
21
29
  export { default as TimePicker, TimePickerProps } from '../forms/TimePicker.js';
@@ -100,12 +108,12 @@ export { default as SidebarActionButton, SidebarActionButtonProps } from '../she
100
108
  export { SidebarGroupLabel, SidebarGroupLabelProps, SidebarNavGroup, SidebarNavGroupProps, SidebarNavItem, SidebarNavItemProps, SidebarSection, SidebarSectionProps } from '../shell/SidebarNav.js';
101
109
  export { default as TopNav, TopNavItem, TopNavProps } from '../shell/TopNav.js';
102
110
  export { BreadcrumbItem, default as Breadcrumbs, BreadcrumbsProps } from '../shell/Breadcrumbs.js';
103
- export { default as DropdownMenu, DropdownMenuAlign, DropdownMenuCheckboxItem, DropdownMenuDividerItem, DropdownMenuEntry, DropdownMenuFooterApi, DropdownMenuItem, DropdownMenuLabelItem, DropdownMenuLinkItem, DropdownMenuProps, DropdownMenuRadioItem, DropdownMenuSide, DropdownMenuStatusItem } from '../shell/DropdownMenu.js';
111
+ export { default as DropdownMenu, DropdownMenuAlign, DropdownMenuCheckboxItem, DropdownMenuDividerItem, DropdownMenuEntry, DropdownMenuFooterApi, DropdownMenuItem, DropdownMenuLabelItem, DropdownMenuLinkItem, DropdownMenuProps, DropdownMenuRadioItem, DropdownMenuSide, DropdownMenuStatusItem, DropdownMenuSubmenuItem } from '../shell/DropdownMenu.js';
104
112
  export { default as Popover, PopoverAlign, PopoverProps, PopoverRenderProps, PopoverSide } from '../shell/Popover.js';
105
113
  export { default as FloatingBar, FloatingBarAlign, FloatingBarProps, FloatingBarSide } from '../shell/FloatingBar.js';
106
114
  export { PopupMenu, PopupMenuDivider, PopupMenuItem, PopupMenuItemProps, PopupMenuLabel, PopupMenuProps, PopupSubmenu, PopupSubmenuProps } from '../shell/PopupMenu.js';
107
115
  export { ContextMenu, ContextMenuPoint, ContextMenuProps, ContextMenuState, UseContextMenu, useContextMenu } from '../shell/ContextMenu.js';
108
- export { leavesContextMenuAlone } from '../shell/contextMenuTarget.js';
116
+ export { MENU_ON_MEDIA_ATTR, leavesContextMenuAlone } from '../shell/contextMenuTarget.js';
109
117
  export { Tree, TreeBadge, TreeDrop, TreeEmptySlot, TreeEmptySlotProps, TreeGroup, TreeGroupLabel, TreeGroupLabelProps, TreeGroupProps, TreeMove, TreeProps, TreeRow, TreeRowProps, TreeSeam, TreeSeamProps } from '../shell/Tree.js';
110
118
  export { ListDrop, ListMove, ListRow, ListRowProps, SortableList, SortableListProps, SortableListSpacing } from '../shell/SortableList.js';
111
119
  export { IconRail, IconRailButton, IconRailButtonProps, IconRailLabels, IconRailLabelsShown, IconRailOrientation, IconRailProps } from '../shell/IconRail.js';
package/dist/ui/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import"../chunk-4MNNVSHD.js";export{GalleryTemplate}from"../chunk-OS57C5J7.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-MVP6Q6KV.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{ChatTemplate}from"../chunk-QIEMOYTG.js";export{CheckoutTemplate}from"../chunk-T6L6HQI5.js";export{DashboardTemplate}from"../chunk-ACZDVHDY.js";export{DataTablePage}from"../chunk-7KZ65FSA.js";export{EmailTemplate}from"../chunk-PRXPLEVZ.js";export{ErrorBoundary}from"../chunk-5BLAPU7W.js";export{ErrorPage}from"../chunk-O6TKI4F5.js";export{FormLayoutPage}from"../chunk-BMBQ3IX3.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-JIJOXLDJ.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-4G5M752L.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-4AFNDOPF.js";export{TopNav}from"../chunk-OHHJF547.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-RECXXFYW.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-QV2GME3Y.js";import"../chunk-CD6PGAYP.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-CTB634WT.js";export{Stepper}from"../chunk-HXXUMKTV.js";export{SettingReset}from"../chunk-HPQ56MKK.js";export{SettingRow}from"../chunk-BUDBBIKN.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-PEELLEPP.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-HHXP34PV.js";import"../chunk-QWK6DRSN.js";export{MetricBar}from"../chunk-MH4EUGAB.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-YT32RSS6.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-B3LWYJS7.js";export{PageHeader}from"../chunk-VANXHWGP.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-LJSJFS2M.js";import"../chunk-SURSVJA2.js";export{TimelineTrack}from"../chunk-IH2DJOTW.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-YDEIXM2A.js";export{ResizeHandle}from"../chunk-PRR2GXBV.js";export{EmptyValue}from"../chunk-64WSMLXG.js";export{FloatingBar}from"../chunk-EIUCHQI2.js";export{GlobalSearch,openGlobalSearch}from"../chunk-2VLQECPC.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-PG665FWX.js";export{IconRail,IconRailButton}from"../chunk-HEJTHEXN.js";import"../chunk-FQEALPZJ.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-PSOHSTXL.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Divider}from"../chunk-DFOFEBYX.js";export{Drawer}from"../chunk-XF2NZVXW.js";export{EditableGrid}from"../chunk-YO52QEKT.js";import"../chunk-BR22X7E5.js";export{EmptyState}from"../chunk-XZLBPVRH.js";export{Breadcrumbs}from"../chunk-XTPDXB4X.js";export{BudgetBar,budgetState}from"../chunk-7KYFOYC7.js";export{Card,StatCard}from"../chunk-RD5UPROC.js";export{ContainerFillChart}from"../chunk-CP6Q24MP.js";export{ContextMenu,useContextMenu}from"../chunk-TB3AK6XF.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-SDIGC5NU.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-7IHH5CDD.js";export{CountBadge}from"../chunk-IJMV4F2Q.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-HEM6NC23.js";export{Avatar,AvatarGroup}from"../chunk-UL4WB3VH.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-SXPBOX32.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-4LXH6DCN.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-KLAZTKN2.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-EDEQRSJC.js";export{WidthsBar}from"../chunk-AGPQEI3I.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-E4YSP5RD.js";export{Slider,SliderGroup}from"../chunk-R6N26ITY.js";export{Snippet}from"../chunk-6AKXEUZA.js";export{SplitButton_default as SplitButton}from"../chunk-65HOBHY7.js";export{DropdownMenu}from"../chunk-62LFDQGF.js";export{Switch_default as Switch}from"../chunk-STA76WXF.js";export{TagInput}from"../chunk-SEFPZXO5.js";export{MediaUploadGrid}from"../chunk-R6XC7X63.js";export{NumericKeypad}from"../chunk-LC52BB6N.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-TLJCUUZU.js";export{PositionInput}from"../chunk-35DHYR37.js";export{RadioGroup}from"../chunk-TZSPJIP4.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{IconPicker}from"../chunk-PK4ZY4GZ.js";export{LinkPicker,TextLinkField}from"../chunk-T2VNNW6Z.js";export{SearchableSelect}from"../chunk-YYUICWSB.js";export{NativeSelect,Select_default as Select}from"../chunk-3S52QOEP.js";import"../chunk-EO5RLFRX.js";import"../chunk-TUT6SGH2.js";export{Input_default as Input}from"../chunk-UNEJ2ABD.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-4EIGXW4U.js";export{CornersInput}from"../chunk-WKSVUJZA.js";export{DatePicker_default as DatePicker}from"../chunk-EKFIRCNP.js";export{DateRangePicker,toISODate}from"../chunk-KSYNJTVA.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-QGU24ERZ.js";export{DisplayChips}from"../chunk-GATOVTJT.js";export{FilePicker_default as FilePicker}from"../chunk-6EJ7G234.js";export{FormErrorSummary}from"../chunk-4B7ZRWDA.js";export{AlignmentGrid}from"../chunk-C6LV3HJW.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-DVFMCVI5.js";export{BrandAssetEditor}from"../chunk-EPGKTANF.js";export{MediaUploadField}from"../chunk-RKWGWBET.js";export{ImageFocusPoint}from"../chunk-PMJMPYLQ.js";export{FormField}from"../chunk-MVQBVPWP.js";export{mediaFileName}from"../chunk-LI7D6SMK.js";export{TransferProgress}from"../chunk-FARRGETL.js";export{Segmented}from"../chunk-CHNYSP6K.js";import"../chunk-4G5VLI7E.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar,fromKey as fromDateKey,toKey as toDateKey}from"../chunk-SNDYD76W.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-ION2GBY3.js";export{hexToHsv,hsvToHex,parseHexColor}from"../chunk-H245LLX4.js";export{Popover}from"../chunk-RNBM5JZI.js";export{InputNumber_default as InputNumber}from"../chunk-SWSN3HZX.js";export{useInSettingRow,useSettingAuto}from"../chunk-E4Z5OXBI.js";export{DataTable}from"../chunk-S2ONNZVX.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-TYEXEETI.js";export{ListFooter}from"../chunk-ENSA3NAS.js";export{ListLoadError}from"../chunk-7UBV5MPQ.js";export{Pagination}from"../chunk-XKCEVZZB.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-VAACOJ2H.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-X2S2XDZI.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-5OTS2G3M.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-OFXGSEYD.js";export{StatTile}from"../chunk-TLZVEW34.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-QP2S2K2Y.js";export{TimeSeriesChart}from"../chunk-UCMPHYBP.js";export{TreemapChart}from"../chunk-OU3ITBK5.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-3MZTDNAW.js";export{HistogramChart}from"../chunk-ES4HIX3L.js";export{Meter}from"../chunk-CASSD64W.js";export{PieChart}from"../chunk-2DGTGJYJ.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-6TWRV44R.js";export{RadialBarChart}from"../chunk-7UEFFCQV.js";export{RangeChart}from"../chunk-JM2XJJRB.js";export{RankedBars}from"../chunk-Y3XH4HJQ.js";export{SankeyChart}from"../chunk-ZOGEAYWJ.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-NIULZZAI.js";export{ChordChart}from"../chunk-Y4NIZQNT.js";import"../chunk-X3II54HU.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-VCEARTZR.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-EVKBV6IV.js";export{FunnelChart}from"../chunk-26DGOAPH.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{HeatmapChart}from"../chunk-FEIVDR4M.js";export{StepChain,StepChainItem}from"../chunk-ZEDYXP2J.js";export{Markdown,Markdown as MarkdownLite}from"../chunk-76YDO3KA.js";export{Banner}from"../chunk-UWNL4FO2.js";export{Textarea_default as Textarea}from"../chunk-AWY3F6PV.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{IconButton_default as IconButton}from"../chunk-HMZLRXLA.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-JFSYWEHD.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-LR2X6MKB.js";import"../chunk-5A7MWTXX.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-Y53KNQKL.js";export{ColoredBadge}from"../chunk-RQARJHDB.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-LT2MMSHH.js";export{Dialog}from"../chunk-ARC3R4I2.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-2LKH6JM5.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-7IF3RZF3.js";export{leavesContextMenuAlone}from"../chunk-GZCAFWWB.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-5SULG7D5.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";import"../chunk-7T3COEQK.js";export{VERSION}from"../chunk-GLX6W5W4.js";export{Button_default as Button}from"../chunk-UDD7GB4F.js";export{buttonClasses,iconButtonClasses}from"../chunk-K7U4RWXJ.js";import"../chunk-4TL3MRRE.js";export{Icon}from"../chunk-VJPJNCB4.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";export{Tooltip}from"../chunk-2LXTJXWC.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{BoxPlotChart}from"../chunk-RPAKTBQT.js";export{CandlestickChart}from"../chunk-3VCAQ72C.js";export{ChartTooltip}from"../chunk-P5BOTIJU.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-DTJRIWFR.js";export{CartesianPlot}from"../chunk-FPI7WBMU.js";import"../chunk-MG7A3R75.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{ChartBrush}from"../chunk-TWWJLFTD.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-OVNRVFWS.js";import"../chunk-C3QOHMR6.js";
2
+ import"../chunk-PCGZS6S4.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-MVP6Q6KV.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{CheckoutTemplate}from"../chunk-2RKTVTJJ.js";export{DashboardTemplate}from"../chunk-HQIUFRWO.js";export{DataTablePage}from"../chunk-USE4HNZ2.js";export{EmailTemplate}from"../chunk-Z3ZIVVKE.js";export{ErrorBoundary}from"../chunk-I5T3A4KI.js";export{ErrorPage}from"../chunk-4S724CEA.js";export{FormLayoutPage}from"../chunk-HQNR4JQG.js";export{GalleryTemplate}from"../chunk-A3R6DKQ5.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-V7NVQ3Z7.js";export{ChatTemplate}from"../chunk-DTJQHW3Q.js";export{TimeAgo}from"../chunk-K2DUF2AR.js";export{TopNav}from"../chunk-P5QRK7WD.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-6MN2JR25.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-DQEST7MN.js";export{Stepper}from"../chunk-TF3E5J3Y.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-4G5M752L.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{SettingReset}from"../chunk-KH6GERFP.js";export{SettingRow}from"../chunk-WVWIRII2.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-YFY2LSWZ.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-SACUPX6L.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-3XLDWJDG.js";import"../chunk-P5ILG2DA.js";export{MilestoneTimeline}from"../chunk-QSVKEONU.js";export{PageHeader}from"../chunk-Y67ILJVG.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-37DRDM4D.js";import"../chunk-SURSVJA2.js";export{TimelineTrack}from"../chunk-HNFLUVVM.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-YDEIXM2A.js";export{ResizeHandle}from"../chunk-7NOU275V.js";export{IconRail,IconRailButton}from"../chunk-EOPPYQIT.js";import"../chunk-FQEALPZJ.js";export{ImageLightbox,lightboxKind}from"../chunk-FNQJO3HZ.js";export{ZoomableImage}from"../chunk-U5KIRPLV.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-EFUQ4KAH.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{MetricBar}from"../chunk-HKAWQF7O.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-ZVK74ERI.js";import"../chunk-URBCGEXG.js";export{Drawer}from"../chunk-6JLZMVVE.js";export{EditableGrid}from"../chunk-KW4VUPJV.js";import"../chunk-BR22X7E5.js";export{EmptyState}from"../chunk-UNDHDLWB.js";export{EmptyValue}from"../chunk-64WSMLXG.js";export{FloatingBar}from"../chunk-EIUCHQI2.js";export{GlobalSearch,openGlobalSearch}from"../chunk-3NU2B2WM.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-PEEVPAIJ.js";export{ContainerFillChart}from"../chunk-2ZIVFBJN.js";export{ContextMenu,useContextMenu}from"../chunk-XDG2RWUO.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Divider}from"../chunk-DFOFEBYX.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-V5GDA4I6.js";export{CountBadge}from"../chunk-A3MOA3T7.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-HKTU536H.js";export{Avatar,AvatarGroup}from"../chunk-5WYCXSUM.js";export{Breadcrumbs}from"../chunk-DBBUHXRT.js";export{BudgetBar,budgetState}from"../chunk-CG4KTWP4.js";export{Card,StatCard}from"../chunk-TDAFCJY7.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-73FD77RD.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-SXPBOX32.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{mediaMoveItems,useMediaMoveItems}from"../chunk-JSVYN6D6.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-NQ46AZ3D.js";export{WidthsBar}from"../chunk-WVSLFX37.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-Q6BY4BME.js";export{Slider,SliderGroup}from"../chunk-VSQSBY2P.js";export{Snippet}from"../chunk-QTNPOMXM.js";export{SplitButton_default as SplitButton}from"../chunk-WOHOIJRZ.js";export{DropdownMenu}from"../chunk-TQP3L4OC.js";import"../chunk-JSOO4O5K.js";export{Switch_default as Switch}from"../chunk-STA76WXF.js";export{TagInput}from"../chunk-S2PKTGHB.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-AAYACT5T.js";export{NumericKeypad}from"../chunk-QAR4NYW6.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-TLJCUUZU.js";export{PositionInput}from"../chunk-QCP4F6EF.js";export{RadioGroup}from"../chunk-TZSPJIP4.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{LinkPicker,TextLinkField}from"../chunk-QMLG5XKP.js";export{SearchableSelect}from"../chunk-GVYJYXVH.js";export{NativeSelect,Select_default as Select}from"../chunk-AG3ALTVD.js";import"../chunk-EO5RLFRX.js";import"../chunk-QSW26NAH.js";export{Input_default as Input}from"../chunk-UNEJ2ABD.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MediaUploadGrid}from"../chunk-Z7PS4QUO.js";export{MediaUsedInList}from"../chunk-EA37JL6P.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-UJULZQM2.js";export{DisplayChips}from"../chunk-EJNFOBE3.js";export{FilePicker_default as FilePicker}from"../chunk-ZVY4J3PU.js";export{FormErrorSummary}from"../chunk-HMA4ZSCS.js";export{IconPicker}from"../chunk-NADUURUA.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-LDHYCVMV.js";export{CornersInput}from"../chunk-JBMGI5YX.js";export{DatePicker_default as DatePicker}from"../chunk-LJVLMM3Q.js";export{DateRangePicker,toISODate}from"../chunk-FJUFQXDS.js";export{Calendar,fromKey as fromDateKey,toKey as toDateKey}from"../chunk-JLDGZFNY.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-4LXH6DCN.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{AlignmentGrid}from"../chunk-C6LV3HJW.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-ZSRYQW64.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-KIYO4U4T.js";export{hexToHsv,hsvToHex,parseHexColor}from"../chunk-H245LLX4.js";export{Popover}from"../chunk-RNBM5JZI.js";export{InputNumber_default as InputNumber}from"../chunk-EO2XHSIK.js";export{useInSettingRow,useSettingAuto}from"../chunk-E4Z5OXBI.js";export{BrandAssetEditor}from"../chunk-XW56UIDQ.js";export{MediaUploadField}from"../chunk-WEJFTUS7.js";export{ImageFocusPoint}from"../chunk-SLC3KT7F.js";export{FormField}from"../chunk-MVQBVPWP.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{mediaFileName}from"../chunk-APMBWBD7.js";export{TransferProgress}from"../chunk-YGITR6I5.js";export{Segmented}from"../chunk-CHNYSP6K.js";import"../chunk-4G5VLI7E.js";export{DataTable}from"../chunk-56CQPUIJ.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-WDIFRAQM.js";export{ListFooter}from"../chunk-BJGD2ZWK.js";export{ListLoadError}from"../chunk-4NB3WHWK.js";export{Pagination}from"../chunk-DGTP6BGV.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-MPN267PR.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-X2S2XDZI.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-5OTS2G3M.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{SankeyChart}from"../chunk-MNQ6EPAR.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-FTQ5DH5U.js";export{StatTile}from"../chunk-TSOK3QNK.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-7GCBMTP2.js";export{TimeSeriesChart}from"../chunk-YULJ7F6Z.js";export{TreemapChart}from"../chunk-BG5BCF64.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-UB6TIA2R.js";export{HeatmapChart}from"../chunk-ZWQRFYE6.js";export{HistogramChart}from"../chunk-BE4APEUI.js";export{Meter}from"../chunk-5N6VSOZV.js";export{PieChart}from"../chunk-LAHK4WVH.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-QYGBWH5J.js";export{RadialBarChart}from"../chunk-GVKFLNRP.js";export{RangeChart}from"../chunk-W4YNYZDQ.js";export{RankedBars}from"../chunk-ABD34D3N.js";export{ChartBrush}from"../chunk-4JCNWUVZ.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-6EAVTBKE.js";export{ChordChart}from"../chunk-CKDFXYYY.js";import"../chunk-X3II54HU.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-B6BE4WSP.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-NU55QIUV.js";export{FunnelChart}from"../chunk-U5YJREQJ.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{StepChain,StepChainItem}from"../chunk-MKTO2FHK.js";export{Markdown,Markdown as MarkdownLite}from"../chunk-F2HM7SV4.js";export{Banner}from"../chunk-QTK5NV7L.js";export{Textarea_default as Textarea}from"../chunk-AWY3F6PV.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{IconButton_default as IconButton}from"../chunk-HMZLRXLA.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-JFSYWEHD.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-SS7BG7BS.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-Y53KNQKL.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-SGVIMTN6.js";export{Dialog}from"../chunk-CGY5RNAF.js";import"../chunk-VWGWZY7A.js";import"../chunk-PKXQDCNR.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-HIDOSOI4.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-UPHXYWL6.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";import"../chunk-QR4RM7PO.js";export{ColoredBadge}from"../chunk-LWGNNVDA.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-5SULG7D5.js";import"../chunk-7T3COEQK.js";export{VERSION}from"../chunk-AJOWAZ46.js";export{Button_default as Button}from"../chunk-UDD7GB4F.js";export{buttonClasses,iconButtonClasses}from"../chunk-K7U4RWXJ.js";export{Icon}from"../chunk-42BBJJDP.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";import"../chunk-4TL3MRRE.js";export{LoadingSpinner,SpinnerRing}from"../chunk-Q5MD3VY6.js";import"../chunk-MRJKZWWV.js";export{Tooltip}from"../chunk-2LXTJXWC.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{BoxPlotChart}from"../chunk-K5UPORAA.js";export{CandlestickChart}from"../chunk-2YZ3ITNG.js";export{ChartTooltip}from"../chunk-P5BOTIJU.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-DTJRIWFR.js";export{CartesianPlot}from"../chunk-ZGCLFQS5.js";import"../chunk-MG7A3R75.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-GTRUBA2R.js";import"../chunk-C3QOHMR6.js";
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Scroll helpers for a pointer drag that must reach past the visible box — the
3
+ * marquee over a grid of tiles (`useMarquee`) — moved in from admin-portal
4
+ * (`components/storefront/scrollUtils.ts`). One answer to "which element
5
+ * scrolls", "where are its edges" and "how fast to creep near one", so two
6
+ * drags can never scroll at two speeds. DOM-thin; `edgeScrollDelta` is pure.
7
+ */
8
+ /** Distance (px) from a scroller's top or bottom edge where a drag starts to scroll it. */
9
+ declare const EDGE_SCROLL_ZONE = 56;
10
+ /** The most a drag scrolls in one frame (px), reached at the very edge. */
11
+ declare const EDGE_SCROLL_MAX_SPEED = 20;
12
+ /** The nearest scrollable ancestor of `el`, else the document scroller. */
13
+ declare function getScrollParent(el: HTMLElement): HTMLElement;
14
+ /** A scroller's visible top and bottom in viewport coordinates: the document
15
+ * scroller spans the viewport; any other element uses its border box. */
16
+ declare function scrollBoundsOf(sp: HTMLElement): {
17
+ top: number;
18
+ bottom: number;
19
+ };
20
+ /** Pixels to scroll this frame for a pointer at `clientY` between a scroller's
21
+ * visible `top` and `bottom`: 0 through the middle, ramping to ±`maxSpeed`
22
+ * within `edge` px of either end. Positive scrolls down. Pure. */
23
+ declare function edgeScrollDelta(clientY: number, top: number, bottom: number, edge?: number, maxSpeed?: number): number;
24
+
25
+ export { EDGE_SCROLL_MAX_SPEED, EDGE_SCROLL_ZONE, edgeScrollDelta, getScrollParent, scrollBoundsOf };
@@ -0,0 +1 @@
1
+ export{EDGE_SCROLL_MAX_SPEED,EDGE_SCROLL_ZONE,edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export{APP_VERSION,VERSION}from"./chunk-GLX6W5W4.js";
1
+ export{APP_VERSION,VERSION}from"./chunk-AJOWAZ46.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-shell",
3
- "version": "8.16.2",
3
+ "version": "8.18.0",
4
4
  "description": "Desktop-style React UI shell — windows, taskbar, start menu, sticky notes, frosted glass theming, and bundled apps.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Efficient Pty Ltd",
@@ -1,29 +0,0 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-2OTCFJCU.js";import{useWidgetSettings as n}from"./chunk-MV7WC6SL.js";import"./chunk-TPDOOCFS.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-LR2X6MKB.js";import"./chunk-5A7MWTXX.js";import"./chunk-Y53KNQKL.js";import"./chunk-RQARJHDB.js";import"./chunk-5GHLKEJQ.js";import"./chunk-LT2MMSHH.js";import"./chunk-ARC3R4I2.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import"./chunk-KC3EX26K.js";import"./chunk-7IF3RZF3.js";import"./chunk-GZCAFWWB.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-5SULG7D5.js";import"./chunk-CDAJKLGL.js";import"./chunk-7T3COEQK.js";import"./chunk-UDD7GB4F.js";import"./chunk-K7U4RWXJ.js";import"./chunk-4TL3MRRE.js";import{Icon as r}from"./chunk-VJPJNCB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-2LXTJXWC.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-OVNRVFWS.js";import"./chunk-C3QOHMR6.js";import{useState as c,useRef as i,useCallback as l,useEffect as o}from"react";import{jsxs as s,Fragment as a,jsx as u}from"react/jsx-runtime";var h="calc_appearance";function m(){const[m,k]=c("0"),[p,d]=c(null),[b,g]=c(null),[j,N]=c(!1),[C,y]=c(""),[x,f]=c([]),[v,$]=c(!1),[R,W]=c(()=>e(h)),[T,J]=c(!1),[E,L]=c(R),S=i(null);n(l(()=>{L({...R}),J(!0)},[R]));const w=l(e=>{y(""),k(t=>j||"0"===t?(N(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[j]),D=l(()=>{k("0"),d(null),g(null),N(!1)},[]),F=l((e,t,n)=>{switch(n){case"+":return e+t;case"-":return e-t;case"×":return e*t;case"÷":return 0===t?0:e/t;default:return t}},[]),M=l(e=>{const t=parseFloat(m);if(null!==p&&b&&!j){const e=F(p,t,b);k(String(e)),d(e),f(n=>[`${p} ${b} ${t} = ${e}`,...n].slice(0,20))}else d(t);g(e),N(!0)},[m,p,b,j,F]),K=l(()=>{if(null===p||!b)return;const e=parseFloat(m),t=F(p,e,b),n=`${p} ${b} ${e} =`;f(e=>[`${n} ${t}`,...e].slice(0,20)),y(n),k(String(t)),d(null),g(null),N(!0)},[m,p,b,F]),U=l(()=>{k(e=>String(parseFloat(e)/100))},[]),A=l(()=>{k(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);o(()=>{const e=e=>{const t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t&&(e.key>="0"&&e.key<="9"?w(e.key):"."===e.key?w("."):"+"===e.key?M("+"):"-"===e.key?M("-"):"*"===e.key?M("×"):"/"===e.key?(e.preventDefault(),M("÷")):"Enter"===e.key||"="===e.key?("Enter"===e.key&&e.target instanceof Node&&S.current?.contains(e.target)&&e.preventDefault(),K()):"Escape"===e.key?D():"Backspace"===e.key?k(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&U())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[w,M,K,D,U]);const B="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",G=`${B} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,O=`${B} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,Q=`${B} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,V=`${B} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
2
- return s(a,{children:[
3
- /* @__PURE__ */s("div",{ref:S,className:"flex flex-col h-full",style:{opacity:R.activeOpacity/100,backdropFilter:R.activeBlur>0?`blur(${R.activeBlur}px)`:void 0},children:[
4
- /* @__PURE__ */s("div",{className:"bg-slate-200 rounded-t-lg px-4 py-2 group/display relative flex flex-col justify-end min-h-[120px] border-b border-slate-300",children:[
5
- /* @__PURE__ */u("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:x.slice(0,3).reverse().map((e,t)=>/* @__PURE__ */u("div",{className:"text-2xs text-slate-400 text-right font-mono truncate",children:e},t))}),(C||b&&null!==p)&&/* @__PURE__ */u("div",{className:"text-base text-slate-600 text-right font-mono",children:C||`${p} ${b} ${j?"":m}`}),
6
- /* @__PURE__ */s("div",{className:"flex items-center gap-2",children:[
7
- /* @__PURE__ */u("button",{onClick:()=>{navigator.clipboard.writeText(m),$(!0),setTimeout(()=>$(!1),1200)},title:"Copy result",className:"shrink-0 text-slate-300 hover:text-slate-500 transition-colors opacity-0 group-hover/display:opacity-100",children:/* @__PURE__ */u(r,v?{name:"check",className:"h-5 w-5 text-green-500",strokeWidth:2}:{name:"copy",className:"h-5 w-5",strokeWidth:2})}),
8
- /* @__PURE__ */u("div",{className:"text-right text-4xl font-mono font-bold text-slate-800 truncate flex-1",children:(e=>{const t=parseFloat(e);return isNaN(t)||e.endsWith(".")||e.endsWith(".0")||Math.abs(t)<1e15&&e.length<16?e:t.toExponential(6)})(m)})]})]}),
9
- /* @__PURE__ */s("div",{className:"grid grid-cols-4 grid-rows-5 gap-2 flex-1 min-h-0 p-2",children:[
10
- /* @__PURE__ */u("button",{onClick:D,className:Q,children:"AC"}),
11
- /* @__PURE__ */u("button",{onClick:A,className:Q,children:"+/−"}),
12
- /* @__PURE__ */u("button",{onClick:U,className:Q,children:"%"}),
13
- /* @__PURE__ */u("button",{onClick:()=>M("÷"),className:`${O} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
14
- /* @__PURE__ */u("button",{onClick:()=>w("7"),className:G,children:"7"}),
15
- /* @__PURE__ */u("button",{onClick:()=>w("8"),className:G,children:"8"}),
16
- /* @__PURE__ */u("button",{onClick:()=>w("9"),className:G,children:"9"}),
17
- /* @__PURE__ */u("button",{onClick:()=>M("×"),className:`${O} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
18
- /* @__PURE__ */u("button",{onClick:()=>w("4"),className:G,children:"4"}),
19
- /* @__PURE__ */u("button",{onClick:()=>w("5"),className:G,children:"5"}),
20
- /* @__PURE__ */u("button",{onClick:()=>w("6"),className:G,children:"6"}),
21
- /* @__PURE__ */u("button",{onClick:()=>M("-"),className:`${O} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
22
- /* @__PURE__ */u("button",{onClick:()=>w("1"),className:G,children:"1"}),
23
- /* @__PURE__ */u("button",{onClick:()=>w("2"),className:G,children:"2"}),
24
- /* @__PURE__ */u("button",{onClick:()=>w("3"),className:G,children:"3"}),
25
- /* @__PURE__ */u("button",{onClick:()=>M("+"),className:`${O} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
26
- /* @__PURE__ */u("button",{onClick:()=>w("0"),className:`${G} col-span-2`,children:"0"}),
27
- /* @__PURE__ */u("button",{onClick:()=>w("."),className:G,children:"."}),
28
- /* @__PURE__ */u("button",{onClick:K,className:V,children:"="})]})]}),
29
- /* @__PURE__ */u(t,{open:T,onClose:()=>J(!1),title:"Calculator Settings",appearance:E,onAppearanceChange:L,onSave:()=>{W(E),localStorage.setItem(h,JSON.stringify(E)),J(!1)}})]})}export{m as default};
@@ -1,87 +0,0 @@
1
- import{openPreviewFile as e}from"./chunk-C4D4L2E5.js";import{SidebarLayout as t}from"./chunk-PEELLEPP.js";import"./chunk-QWK6DRSN.js";import"./chunk-PRR2GXBV.js";import{Breadcrumbs as r}from"./chunk-XTPDXB4X.js";import{formatBytes as a}from"./chunk-X2S2XDZI.js";import"./chunk-5OTS2G3M.js";import"./chunk-36BRD5J3.js";import{getFilesDemoTree as n}from"./chunk-PDPBIDHF.js";import{AboutApp as s}from"./chunk-G2A4K36M.js";import{peekFilesViewRequest as i,consumeFilesViewRequest as o,FILES_SHOW_TRASH_EVENT as l,FILES_OPEN_DESKTOP_FOLDER_EVENT as c,subscribeDesktopFolders as d,getDesktopFoldersSnapshot as m,FolderGlyph as h,DesktopItemMiniIcon as p,desktopItemTypeLabel as u}from"./chunk-O3WSAR62.js";import"./chunk-ESL5TDNA.js";import"./chunk-VTVSMRFX.js";import{useWindowManager as f,WindowTitle as x}from"./chunk-MV7WC6SL.js";import"./chunk-TPDOOCFS.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-LR2X6MKB.js";import"./chunk-5A7MWTXX.js";import"./chunk-Y53KNQKL.js";import"./chunk-RQARJHDB.js";import"./chunk-5GHLKEJQ.js";import{confirm as g,prompt as y}from"./chunk-LT2MMSHH.js";import"./chunk-ARC3R4I2.js";import"./chunk-VWGWZY7A.js";import"./chunk-PKXQDCNR.js";import"./chunk-KC3EX26K.js";import{toast_default as b}from"./chunk-2LKH6JM5.js";import"./chunk-7IF3RZF3.js";import"./chunk-GZCAFWWB.js";import"./chunk-UGTRSRIW.js";import"./chunk-QR4RM7PO.js";import"./chunk-5SULG7D5.js";import"./chunk-CDAJKLGL.js";import{TH_ONE_LINE as k}from"./chunk-7T3COEQK.js";import"./chunk-GLX6W5W4.js";import"./chunk-UDD7GB4F.js";import"./chunk-K7U4RWXJ.js";import"./chunk-4TL3MRRE.js";import{Icon as N}from"./chunk-VJPJNCB4.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as w}from"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-2LXTJXWC.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import"./chunk-OVNRVFWS.js";import"./chunk-C3QOHMR6.js";import{useState as v,useEffect as j,useSyncExternalStore as $,useRef as C,useCallback as D}from"react";import{jsxs as L,jsx as R,Fragment as T}from"react/jsx-runtime";var E="undefined"!=typeof window&&window.__REACT_OS_SHELL_FILE_SERVER__||"http://localhost:4000",W={pdf:"pdf",dxf:"dxf",csv:"csv",jpg:"image",jpeg:"image",png:"image",gif:"image",webp:"image",svg:"image",avif:"image",bmp:"image",stp:"3d",step:"3d",stl:"3d",obj:"3d",gltf:"3d",glb:"3d","3mf":"3d",iges:"3d",igs:"3d",ply:"3d",fbx:"3d"};function P(e,t){return"/"===e||""===e?"/"+t:e.replace(/\/$/,"")+"/"+t}function S(e){if(!e)return"—";try{const t=new Date(e);return isNaN(t.getTime())?"—":t.toLocaleString(void 0,{dateStyle:"short",timeStyle:"short"})}catch{return e}}function M(){const M=E.replace(/\/$/,""),F=null!==n(),[O,A]=v("/"),[I,U]=v([]),[J,B]=v([]),[K,V]=v(null),[X,G]=v(!0),[H,Q]=v(!1),[z,_]=v(null),[Z,Y]=v(!1),[q,ee]=v(()=>{const e=i();return"trash"===e?"trash":e?{desktopFolderId:e.folderId}:"files"});j(()=>{o()},[]);const[te,re]=v([]);j(()=>{const e=()=>{o(),ee("trash")},t=e=>{o();const t=e.detail?.folderId;t&&ee({desktopFolderId:t})};return window.addEventListener(l,e),window.addEventListener(c,t),()=>{window.removeEventListener(l,e),window.removeEventListener(c,t)}},[]);const ae=$(d,m,m),ne="object"==typeof q?q.desktopFolderId:null,se=ne?ae?.folders.find(e=>e.id===ne)??null:null,ie=ne&&ae?.itemsByFolder[ne]||[];j(()=>{ne&&ae&&!ae.folders.some(e=>e.id===ne)&&ee("files")},[ne,ae]);const oe=C(0),le=C(null),{openPage:ce,openEntity:de}=f(),me=t=>{"preview-file"===t.entityType&&t.filePath&&t.fileKind?e({filePath:t.filePath,filename:t.label,kind:t.fileKind,onStaged:e=>ce(e)}):"page"===t.entityType?ce(t.entityId):de(t.entityType,t.entityId,null,t.label)},he=D((e,t={})=>fetch(e,{...t,credentials:"include"}),[]),pe=D(async()=>{try{const e=await he(`${M}/api/quota`);if(e.ok){const t=await e.json();_({used:t.used,limit:t.limit})}}catch{}},[he,M]),ue=D(async e=>{if(V(null),F){const t=function(e){const t=n();if(!t)return[];let r=t;for(const t of e.split("/").filter(Boolean)){const e=r.find(e=>"folder"===e.kind&&e.name===t);if(!e||!e.children)return[];r=e.children}return r.map(e=>({name:e.name,kind:e.kind,size:e.size??0,modifiedAt:e.modifiedAt??""}))}(e);return U(t),A(e),Q(!1),G(!1),void("/"===e&&B(t.filter(e=>"folder"===e.kind).map(e=>e.name)))}G(!0);try{const t=await he(`${M}/api/files?path=${encodeURIComponent(e)}`);if(!t.ok){const e=await t.json().catch(()=>({}));return void b.error(e.error||`Failed to list (${t.status})`)}const r=await t.json(),a=r.entries||[];U(a),A(r.path||e),Q(!1),"/"===(r.path||e)&&B(a.filter(e=>"folder"===e.kind).map(e=>e.name))}catch(e){Q(!0)}finally{G(!1)}pe()},[he,M,pe,F]),fe=D(async()=>{if(F)return re([]),void G(!1);G(!0),V(null);try{const e=await he(`${M}/api/trash`);if(!e.ok){const t=await e.json().catch(()=>({}));return void b.error(t.error||`Failed to list trash (${e.status})`)}const t=await e.json();re(t.entries||[]),Q(!1)}catch{Q(!0)}finally{G(!1)}pe()},[he,M,pe,F]);j(()=>{"files"===q?ue(O):"trash"===q&&fe()},[O,q]);const xe=async e=>{const t=P(O,e.name);try{const r=await he(`${M}/api/file?path=${encodeURIComponent(t)}`);if(!r.ok)return void b.error(`Download failed (${r.status})`);const a=await r.blob(),n=URL.createObjectURL(a),s=document.createElement("a");s.href=n,s.download=e.name,s.click(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}catch(e){b.error(e?.message||"Download failed")}},ge=async e=>{const t=Array.from(e);for(const e of t){const t=new FormData;t.append("file",e);try{const r=await he(`${M}/api/upload?path=${encodeURIComponent(O)}`,{method:"POST",body:t});if(!r.ok){const t=await r.json().catch(()=>({}));if(413===r.status){const r=Math.max(0,(t.limit||0)-(t.used||0));b.error(`Quota exceeded — ${a(r)} free, ${e.name} is ${a(t.attempted||e.size)}`)}else b.error(`Upload ${e.name}: ${t.error||r.status}`)}}catch(t){b.error(`Upload ${e.name}: ${t?.message||"failed"}`)}}ue(O)},ye=()=>{oe.current=0,Y(!1)};if(j(()=>{const e=()=>ye();return window.addEventListener("dragend",e),window.addEventListener("drop",e),()=>{window.removeEventListener("dragend",e),window.removeEventListener("drop",e)}},[]),H)/* @__PURE__ */
2
- return L("div",{className:"flex flex-col h-full bg-white",children:[
3
- /* @__PURE__ */R(x,{title:"Files - offline"}),
4
- /* @__PURE__ */R("div",{className:"flex-1 flex items-center justify-center p-8 text-center",children:/* @__PURE__ */L("div",{className:"max-w-md",children:[
5
- /* @__PURE__ */R(N,{name:"close-circle",className:"h-12 w-12 mx-auto text-gray-300 mb-3",strokeWidth:1.4}),
6
- /* @__PURE__ */R("h3",{className:"text-base font-semibold text-gray-800 mb-1",children:"Can't reach the file server"}),
7
- /* @__PURE__ */L("p",{className:"text-sm text-gray-500 mb-3",children:["No response from ",
8
- /* @__PURE__ */R("span",{className:"font-mono",children:M}),". Make sure the server is running — see ",
9
- /* @__PURE__ */R("span",{className:"font-mono",children:"examples/file-server/README.md"}),"."]}),
10
- /* @__PURE__ */R("button",{onClick:()=>ue(O),className:"px-3 h-8 text-sm bg-blue-500 text-white rounded hover:bg-blue-600",children:"Retry"})]})})]});const be="/"===O?[]:O.split("/").filter(Boolean),ke=z&&z.limit>0?Math.min(100,Math.round(z.used/z.limit*100)):0,Ne=ke>90?"bg-red-500":ke>75?"bg-amber-500":"bg-blue-500",we=[{label:"My files",onClick:()=>A("/")},...be.map((e,t)=>({label:e,onClick:()=>A("/"+be.slice(0,t+1).join("/"))}))],ve=e=>"flex w-full items-center gap-2 rounded-md px-3 min-h-(--row-height-menu) py-2 text-left text-sm transition-colors "+(e?"bg-blue-50 font-medium text-blue-700":"text-gray-700 hover:bg-gray-100"),je=e=>/* @__PURE__ */R("svg",{className:"h-4 w-4 shrink-0 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.6,children:/* @__PURE__ */R("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})}),$e=/* @__PURE__ */L("nav",{className:"p-2",children:[
11
- /* @__PURE__ */R("div",{className:"px-2 py-2 text-2xs font-semibold uppercase tracking-wide text-gray-400",children:"Locations"}),
12
- /* @__PURE__ */L("button",{onClick:()=>{ee("files"),A("/")},className:ve("files"===q&&"/"===O),children:[je("M2.25 12l8.954-8.955a1.5 1.5 0 012.122 0L21.75 12M4.5 9.75v9.75a.75.75 0 00.75.75H9V15a.75.75 0 01.75-.75h4.5A.75.75 0 0115 15v5.25h3.75a.75.75 0 00.75-.75V9.75"),"My files"]}),J.map(e=>/* @__PURE__ */L("button",{onClick:()=>{ee("files"),A("/"+e)},className:ve("files"===q&&O==="/"+e),children:[je("M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"),
13
- /* @__PURE__ */R("span",{className:"truncate",children:e})]},e)),!F&&/* @__PURE__ */L("button",{onClick:()=>ee("trash"),className:ve("trash"===q),children:[je("M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79"),"Trash"]}),ae&&ae.folders.length>0&&/* @__PURE__ */L(T,{children:[
14
- /* @__PURE__ */R("div",{className:"px-2 pt-3 pb-2 text-2xs font-semibold uppercase tracking-wide text-gray-400",children:"Desktop"}),ae.folders.map(e=>/* @__PURE__ */L("button",{onClick:()=>ee({desktopFolderId:e.id}),className:ve(ne===e.id),children:[
15
- /* @__PURE__ */R(h,{className:"h-4 w-4 shrink-0 text-amber-500"}),
16
- /* @__PURE__ */R("span",{className:"truncate",children:e.name}),e.itemCount>0&&/* @__PURE__ */R("span",{className:"ml-auto text-2xs text-gray-400 tabular-nums",children:e.itemCount})]},e.id))]})]});/* @__PURE__ */
17
- return L("div",{className:"relative flex flex-col h-full bg-white",onDragEnter:e=>{F||"object"==typeof q||e.dataTransfer?.types?.includes?.("Files")&&(e.preventDefault(),oe.current++,Z||Y(!0))},onDragOver:e=>{e.dataTransfer?.types?.includes?.("Files")&&e.preventDefault()},onDragLeave:()=>{oe.current>0&&oe.current--,0===oe.current&&Y(!1)},onDrop:e=>{e.preventDefault(),ye(),F||"object"==typeof q||e.dataTransfer.files?.length&&ge(e.dataTransfer.files)},children:[
18
- /* @__PURE__ */R(x,{title:se?`Files - ${se.name}`:"Files"+("/"===O?"":" - "+O)}),
19
- /* @__PURE__ */R(s,{app:"files"}),
20
- /* @__PURE__ */R("input",{ref:le,type:"file",multiple:!0,className:"hidden",onChange:e=>{e.target.files?.length&&ge(e.target.files),le.current&&(le.current.value="")}}),
21
- /* @__PURE__ */R("div",{className:"flex-1 min-h-0",children:/* @__PURE__ */R(t,{sidebar:$e,storageKey:"files.sidebarWidth",defaultWidth:200,minWidth:150,maxWidth:320,children:/* @__PURE__ */L("div",{className:"flex h-full min-w-0 flex-col",children:[
22
- /* @__PURE__ */L("div",{className:"flex items-center gap-1 px-2 py-2 border-b border-gray-200 bg-gray-50 shrink-0 text-xs",children:[/* @__PURE__ */L(T,"files"===q?{children:[
23
- /* @__PURE__ */R("button",{onClick:()=>A(function(e){if("/"===e||""===e)return"/";const t=e.replace(/\/$/,""),r=t.lastIndexOf("/");return r<=0?"/":t.slice(0,r)}(O)),disabled:"/"===O,className:"px-2 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",title:"Parent folder",children:/* @__PURE__ */R(N,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
24
- /* @__PURE__ */R("div",{className:"flex-1 min-w-0",children:/* @__PURE__ */R(r,{items:we,maxItems:5})}),
25
- /* @__PURE__ */R("button",{onClick:()=>ue(O),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Refresh",children:/* @__PURE__ */R(N,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),!F&&/* @__PURE__ */L(T,{children:[
26
- /* @__PURE__ */L("button",{onClick:()=>ee("trash"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600 flex items-center gap-1",title:"Open trash",children:[
27
- /* @__PURE__ */R(N,{name:"trash",className:"h-3.5 w-3.5",strokeWidth:1.5}),"Trash"]}),
28
- /* @__PURE__ */L("button",{onClick:async()=>{const e=await y({title:"New folder",placeholder:"Folder name",confirmLabel:"Create"});if(!e)return;if(/[\\/]/.test(e))return void b.error("Folder names cannot contain slashes");const t=P(O,e),r=await he(`${M}/api/folder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t})});if(!r.ok){const e=await r.json().catch(()=>({}));return void b.error(e.error||`Create folder failed (${r.status})`)}ue(O)},className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600 flex items-center gap-1",children:[
29
- /* @__PURE__ */R(N,{name:"folder-plus",className:"h-3.5 w-3.5",strokeWidth:1.5}),"New Folder"]}),
30
- /* @__PURE__ */L("button",{onClick:()=>le.current?.click(),className:"px-2 py-1 rounded bg-blue-500 text-white hover:bg-blue-600 flex items-center gap-1",children:[
31
- /* @__PURE__ */R(N,{name:"upload",className:"h-3.5 w-3.5",strokeWidth:1.8}),"Upload"]})]})]}:"trash"===q?{children:[
32
- /* @__PURE__ */R("button",{onClick:()=>ee("files"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Back to files",children:/* @__PURE__ */R(N,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
33
- /* @__PURE__ */R("span",{className:"flex-1 text-gray-700 font-medium px-2",children:"Trash"}),
34
- /* @__PURE__ */R("button",{onClick:fe,className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Refresh",children:/* @__PURE__ */R(N,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),
35
- /* @__PURE__ */R("button",{onClick:async()=>{if(0===te.length)return;if(!await g({title:"Empty trash",message:`${te.length} item${1===te.length?"":"s"} will be permanently removed. This can't be undone.`,confirmLabel:"Empty trash",variant:"danger"}))return;const e=await he(`${M}/api/trash`,{method:"DELETE"});if(!e.ok){const t=await e.json().catch(()=>({}));return void b.error(t.error||`Empty trash failed (${e.status})`)}fe()},disabled:0===te.length,className:"px-2 py-1 rounded text-red-600 hover:bg-red-50 disabled:opacity-30 flex items-center gap-1",children:"Empty trash"})]}:{children:[
36
- /* @__PURE__ */R("button",{onClick:()=>ee("files"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Back to files",children:/* @__PURE__ */R(N,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
37
- /* @__PURE__ */R(h,{className:"h-4 w-4 text-amber-500 ml-1"}),
38
- /* @__PURE__ */R("span",{className:"flex-1 text-gray-700 font-medium px-1 truncate",children:se?.name??"Desktop folder"}),
39
- /* @__PURE__ */R("span",{className:"text-2xs text-gray-400 px-2",children:"Desktop shortcuts"})]}),z&&/* @__PURE__ */L(T,{children:[
40
- /* @__PURE__ */R("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
41
- /* @__PURE__ */L("div",{className:"flex items-center gap-2",title:`${a(z.used)} of ${a(z.limit)} used`,children:[
42
- /* @__PURE__ */R("div",{className:"w-20 h-1.5 rounded-full bg-gray-200 overflow-hidden",children:/* @__PURE__ */R("div",{className:`h-full ${Ne} transition-all`,style:{width:`${ke}%`}})}),
43
- /* @__PURE__ */L("span",{className:"text-2xs text-gray-500 tabular-nums whitespace-nowrap",children:[a(z.used)," / ",a(z.limit)]})]})]})]}),
44
- /* @__PURE__ */R("div",{className:"flex-1 overflow-auto",children:"object"==typeof q?0===ie.length?/* @__PURE__ */R("div",{className:"p-10 text-center text-sm text-gray-400",children:"This desktop folder is empty. Drag shortcuts onto it on the desktop."}):/* @__PURE__ */L("table",{className:"w-full text-sm",children:[
45
- /* @__PURE__ */R("thead",{className:"bg-gray-50 text-2xs uppercase tracking-wide text-gray-500",children:/* @__PURE__ */L("tr",{children:[
46
- /* @__PURE__ */R("th",{className:`${k} text-left font-medium px-3 h-8`,children:"Name"}),
47
- /* @__PURE__ */R("th",{className:`${k} text-left font-medium px-3 h-8 w-28`,children:"Type"}),
48
- /* @__PURE__ */R("th",{className:`${k} w-56`})]})}),
49
- /* @__PURE__ */R("tbody",{children:ie.map(e=>{const t=`${e.entityType}|${e.entityId}`;/* @__PURE__ */
50
- return L("tr",{onClick:()=>V(t),onDoubleClick:()=>me(e),className:"cursor-default border-b border-gray-100 "+(K===t?"bg-blue-50":"hover:bg-gray-50"),children:[
51
- /* @__PURE__ */L("td",{className:"px-3 h-8 flex items-center gap-2",children:[
52
- /* @__PURE__ */R(p,{item:e}),
53
- /* @__PURE__ */R("span",{className:"truncate",title:e.label,children:e.label})]}),
54
- /* @__PURE__ */R("td",{className:"px-3 h-8 text-xs text-gray-500",children:u(e)}),
55
- /* @__PURE__ */L("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
56
- /* @__PURE__ */R("button",{onClick:t=>{t.stopPropagation(),me(e)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-blue-600 text-2xs",children:"Open"}),
57
- /* @__PURE__ */R("button",{onClick:t=>{t.stopPropagation(),ae?.moveToDesktop([e])},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-gray-500 text-2xs ml-1",children:"Move to desktop"}),
58
- /* @__PURE__ */R("button",{onClick:t=>{t.stopPropagation(),ae?.removeShortcuts([e])},className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Remove"})]})]},t)})})]}):"trash"===q?X&&0===te.length?/* @__PURE__ */R(w,{size:"sm",padding:"p-6",label:"Loading"}):0===te.length?/* @__PURE__ */R("div",{className:"p-10 text-center text-sm text-gray-400",children:"Trash is empty."}):/* @__PURE__ */L("table",{className:"w-full text-sm",children:[
59
- /* @__PURE__ */R("thead",{className:"bg-gray-50 text-2xs uppercase tracking-wide text-gray-500",children:/* @__PURE__ */L("tr",{children:[
60
- /* @__PURE__ */R("th",{className:`${k} text-left font-medium px-3 h-8`,children:"Name"}),
61
- /* @__PURE__ */R("th",{className:`${k} text-left font-medium px-3 h-8`,children:"Original location"}),
62
- /* @__PURE__ */R("th",{className:`${k} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
63
- /* @__PURE__ */R("th",{className:`${k} text-right font-medium px-3 h-8 w-40`,children:"Deleted"}),
64
- /* @__PURE__ */R("th",{className:`${k} w-44`})]})}),
65
- /* @__PURE__ */R("tbody",{children:te.map(e=>/* @__PURE__ */L("tr",{className:"border-b border-gray-100 hover:bg-gray-50",children:[
66
- /* @__PURE__ */L("td",{className:"px-3 h-8 flex items-center gap-2",children:["folder"===e.kind?/* @__PURE__ */R(N,{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}):/* @__PURE__ */R(N,{name:"page",className:"h-4 w-4 text-gray-400 shrink-0",strokeWidth:1.5}),
67
- /* @__PURE__ */R("span",{className:"truncate",title:e.name,children:e.name})]}),
68
- /* @__PURE__ */R("td",{className:"px-3 h-8 text-gray-500 text-xs font-mono truncate",title:e.originalPath,children:e.originalPath||"—"}),
69
- /* @__PURE__ */R("td",{className:"px-3 h-8 text-right tabular-nums text-gray-500",children:a(e.size)}),
70
- /* @__PURE__ */R("td",{className:"px-3 h-8 text-right text-gray-500 tabular-nums",children:e.deletedAt?S(e.deletedAt):"—"}),
71
- /* @__PURE__ */L("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
72
- /* @__PURE__ */R("button",{onClick:()=>(async e=>{const t=await he(`${M}/api/trash/restore`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e.id})});if(!t.ok){const e=await t.json().catch(()=>({}));return void b.error(e.error||`Restore failed (${t.status})`)}b.success(`Restored "${e.name}"`),fe()})(e),className:"px-2 py-0.5 rounded hover:bg-gray-200 text-blue-600 text-2xs",children:"Restore"}),
73
- /* @__PURE__ */R("button",{onClick:()=>(async e=>{if(!await g({title:"Permanently delete",message:`"${e.name}" will be permanently removed. This can't be undone.`,confirmLabel:"Delete forever",variant:"danger"}))return;const t=await he(`${M}/api/trash/${encodeURIComponent(e.id)}`,{method:"DELETE"});if(!t.ok){const e=await t.json().catch(()=>({}));return void b.error(e.error||`Delete failed (${t.status})`)}fe()})(e),className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Delete forever"})]})]},e.id))})]}):X&&0===I.length?/* @__PURE__ */R(w,{size:"sm",padding:"p-6",label:"Loading"}):0===I.length?/* @__PURE__ */L("div",{className:"p-10 text-center text-sm text-gray-400",children:["Empty folder.",!F&&/* @__PURE__ */L(T,{children:[" Drop files here or click ",
74
- /* @__PURE__ */R("span",{className:"font-medium",children:"Upload"}),"."]})]}):/* @__PURE__ */L("table",{className:"w-full text-sm",children:[
75
- /* @__PURE__ */R("thead",{className:"bg-gray-50 text-2xs uppercase tracking-wide text-gray-500",children:/* @__PURE__ */L("tr",{children:[
76
- /* @__PURE__ */R("th",{className:`${k} text-left font-medium px-3 h-8`,children:"Name"}),
77
- /* @__PURE__ */R("th",{className:`${k} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
78
- /* @__PURE__ */R("th",{className:`${k} text-right font-medium px-3 h-8 w-40`,children:"Modified"}),
79
- /* @__PURE__ */R("th",{className:`${k} w-32`})]})}),
80
- /* @__PURE__ */R("tbody",{children:I.map(t=>/* @__PURE__ */L("tr",{onClick:()=>V(t.name),onDoubleClick:()=>{"folder"===t.kind?A(P(O,t.name)):(async t=>{if(F)return;const r=P(O,t.name),a=(t.name.split(".").pop()||"").toLowerCase(),n=W[a];n?await e({filePath:r,filename:t.name,kind:n,onStaged:e=>ce(e)}):xe(t)})(t)},className:"cursor-default border-b border-gray-100 "+(K===t.name?"bg-blue-50":"hover:bg-gray-50"),children:[
81
- /* @__PURE__ */L("td",{className:"px-3 h-8 flex items-center gap-2",children:["folder"===t.kind?/* @__PURE__ */R(N,{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}):/* @__PURE__ */R(N,{name:"page",className:"h-4 w-4 text-gray-400 shrink-0",strokeWidth:1.5}),
82
- /* @__PURE__ */R("span",{className:"truncate",title:t.name,children:t.name})]}),
83
- /* @__PURE__ */R("td",{className:"px-3 h-8 text-right tabular-nums text-gray-500",children:"folder"===t.kind?"—":a(t.size)}),
84
- /* @__PURE__ */R("td",{className:"px-3 h-8 text-right text-gray-500 tabular-nums",children:S(t.modifiedAt)}),
85
- /* @__PURE__ */R("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:!F&&/* @__PURE__ */L(T,{children:["file"===t.kind&&/* @__PURE__ */R("button",{onClick:e=>{e.stopPropagation(),xe(t)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-gray-500 text-2xs",children:"Download"}),
86
- /* @__PURE__ */R("button",{onClick:e=>{e.stopPropagation(),(async e=>{const t=await y({title:`Rename ${e.kind}`,defaultValue:e.name,confirmLabel:"Rename"});if(!t||t===e.name)return;if(/[\\/]/.test(t))return void b.error("Names cannot contain slashes");const r=P(O,e.name),a=P(O,t),n=await he(`${M}/api/rename`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:r,to:a})});if(!n.ok){const e=await n.json().catch(()=>({}));return void b.error(e.error||`Rename failed (${n.status})`)}ue(O)})(t)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-gray-500 text-2xs ml-1",children:"Rename"}),
87
- /* @__PURE__ */R("button",{onClick:e=>{e.stopPropagation(),(async e=>{if(!await g({title:`Delete ${e.kind}`,message:`"${e.name}"${"folder"===e.kind?" and everything inside":""} will be permanently removed.`,confirmLabel:"Delete",variant:"danger"}))return;const t=P(O,e.name),r=await he(`${M}/api/files?path=${encodeURIComponent(t)}`,{method:"DELETE"});if(!r.ok){const e=await r.json().catch(()=>({}));return void b.error(e.error||`Delete failed (${r.status})`)}ue(O)})(t)},className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Delete"})]})})]},t.name))})]})})]})})}),Z&&/* @__PURE__ */R("div",{className:"absolute inset-0 bg-blue-500/15 border-4 border-dashed border-blue-500 pointer-events-none flex items-center justify-center z-20",children:/* @__PURE__ */R("div",{className:"px-4 py-2 rounded-md bg-blue-600 text-white text-sm font-medium shadow-lg",children:"Drop to upload"})})]})}export{M as default};
@@ -1 +0,0 @@
1
- export{PdfViewer as default,fitScale,pdfWasmParams}from"./chunk-WAMBQNDN.js";import"./chunk-2LKH6JM5.js";import"./chunk-K7U4RWXJ.js";import"./chunk-VJPJNCB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-OVNRVFWS.js";import"./chunk-C3QOHMR6.js";
@@ -1,43 +0,0 @@
1
- import{useAuth as e,parseOpenSections as t,readStored as a,RAIL_OPEN_SECTIONS_KEY as r,RAIL_WIDTH_KEY as n,toggleOpenSection as i,writeStored as l}from"./chunk-I74FRKHQ.js";import{ResizeHandle as o}from"./chunk-PRR2GXBV.js";import{openGlobalSearch as s}from"./chunk-2VLQECPC.js";import{partitionNav as c,flyoutGroups as d,visibleSectionItems as m,rowsContainRoute as h,visibleNavChildren as u}from"./chunk-WGRS6QBT.js";import{BrandMark as p}from"./chunk-MI67DI3H.js";import{IconButton_default as b}from"./chunk-HMZLRXLA.js";import{RAIL_MENU_GAP as g,navSections as f,startMenuCategories as y,TAB_STRIP_H as x,RAIL_COLLAPSED_INSET as k,RAIL_W as v,RAIL_MAX_W as N,RAIL_MIN_W as C,navIcons as j,sectionIcons as w}from"./chunk-TPDOOCFS.js";import"./chunk-5A7MWTXX.js";import"./chunk-PKXQDCNR.js";import{PopupMenu as S,PopupMenuItem as L,PopupMenuDivider as R,PopupMenuLabel as W}from"./chunk-7IF3RZF3.js";import"./chunk-GZCAFWWB.js";import"./chunk-QR4RM7PO.js";import"./chunk-K7U4RWXJ.js";import"./chunk-4TL3MRRE.js";import{Icon as z}from"./chunk-VJPJNCB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-Q5MD3VY6.js";import"./chunk-MRJKZWWV.js";import"./chunk-2LXTJXWC.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-DTJRIWFR.js";import"./chunk-TWVUQUUD.js";import{useShellStrings as $}from"./chunk-OVNRVFWS.js";import"./chunk-C3QOHMR6.js";import{useMemo as A,useState as I,useRef as M,useEffect as T,isValidElement as H,cloneElement as J}from"react";import{jsx as K,jsxs as B,Fragment as P}from"react/jsx-runtime";var D="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform);function Q(e,t,a){const r=Math.max(8,a-t.bottom);return{left:e+g,bottom:r,maxHeight:a-r-8,overflowY:"auto"}}var O=(e,t)=>["flex h-(--row-height-menu) w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium transition-colors",t?"justify-center px-0":"",e?"bg-gray-100 text-gray-900":"text-gray-600 hover:bg-gray-100 hover:text-gray-900"].join(" "),V="flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-[18px]";function X({open:e}){/* @__PURE__ */
2
- return K(z,{name:"chevron-down",className:"size-4 shrink-0 transition-transform "+(e?"rotate-180":""),strokeWidth:2,"aria-hidden":"true"})}function F({dir:e}){/* @__PURE__ */
3
- return K(z,"left"===e?{name:"chevron-double-left",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"}:{name:"chevron-double-right",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"})}function U({className:e}){/* @__PURE__ */
4
- return K(z,{name:"search",className:e,strokeWidth:2,"aria-hidden":"true"})}var _=e=>.75+1.75*e+"rem";function G({width:G,collapsed:Z,onToggleCollapsed:E,onResize:Y,onHome:q,onOpen:ee,activeRoute:te,profile:ae,user:re,onLogout:ne,onSwitchToDesktop:ie,onReportBug:le,onClose:oe,navSections:se=f,navIcons:ce=j,sectionIcons:de=w,categories:me=y,productName:he,productIcon:ue,tagline:pe,adaptiveLogo:be=!1,logoHasAlpha:ge=null,logoIsLight:fe=null}){const ye=$().layout,{hasAnyPerm:xe}=e(),ke=A(()=>c(se,me,xe),[se,me,xe]),[ve,Ne]=I(()=>t(a(r))),Ce=e=>Ne(t=>{const a=i(t,e);return l(r,JSON.stringify([...a])),a}),[je,we]=I(null),[Se,Le]=I(!1),Re=M(null);T(()=>{Z||we(null)},[Z]);const We=(e,t)=>{we(null),e.onSelect?e.onSelect():ee(e.to,!!t&&(e=>e.metaKey||e.ctrlKey||1===e.button)(t))},ze=(e,t)=>{const a=t[e];/* @__PURE__ */
5
- return K("span",{className:V,"aria-hidden":"true",children:a&&H(a)?J(a,{className:"size-[18px]"}):a})},$e=(e,t)=>{const a=u(e,xe),r=e.menuLabel??e.label;if(a.length>0){const n=`child:${e.to}`,i=ve.has(n),l=!i&&h(a,te,xe);/* @__PURE__ */
6
- return B("div",{children:[
7
- /* @__PURE__ */B("button",{type:"button",onClick:()=>Ce(n),"aria-expanded":i,className:O(l,!1),style:t>0?{paddingLeft:_(t)}:void 0,children:[0===t&&ze(e.to,ce),
8
- /* @__PURE__ */K("span",{className:"min-w-0 flex-1 truncate",children:r}),
9
- /* @__PURE__ */K(X,{open:i})]}),i&&/* @__PURE__ */K("div",{className:"space-y-0.5 pt-0.5",children:a.map(e=>$e(e,t+1))}),e.dividerAfter&&/* @__PURE__ */K("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:_(t)},"aria-hidden":"true"})]},e.to)}const n=e.to===te;/* @__PURE__ */
10
- return B("div",{children:[
11
- /* @__PURE__ */B("button",{type:"button",onClick:t=>We(e,t),onAuxClick:t=>{1===t.button&&We(e,t)},"aria-current":n?"page":void 0,className:O(n,!1),style:t>0?{paddingLeft:_(t)}:void 0,children:[0===t&&ze(e.to,ce),
12
- /* @__PURE__ */K("span",{className:"min-w-0 flex-1 truncate",children:r})]}),e.dividerAfter&&/* @__PURE__ */K("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:_(t)},"aria-hidden":"true"})]},e.to)},Ae=(e,t)=>{const a=t?e.items:m(e,xe);if(0===a.length)return null;const r="icon"in e&&e.icon?/* @__PURE__ */K("span",{className:V,"aria-hidden":"true",children:e.icon}):ze(e.label,de),n=e.menuLabel??e.label,i=h(a,te,xe),l="dividerAfter"in e&&e.dividerAfter;if(Z)/* @__PURE__ */
13
- return B("div",{children:[
14
- /* @__PURE__ */K("button",{type:"button",title:n,"aria-label":n,"aria-haspopup":"menu","aria-expanded":je?.label===e.label,onClick:t=>{const r=t.currentTarget.getBoundingClientRect();we(t=>t?.label===e.label?null:{label:e.label,items:a,top:r.top})},className:O(i||je?.label===e.label,!0),children:r}),l&&/* @__PURE__ */K("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"})]},e.label);const o=ve.has(e.label),s=`rosh-rail-${e.label.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}`;/* @__PURE__ */
15
- return B("div",{children:[
16
- /* @__PURE__ */B("button",{type:"button",onClick:()=>Ce(e.label),"aria-expanded":o,"aria-controls":s,className:O(!o&&i,!1),children:[r,
17
- /* @__PURE__ */K("span",{className:"min-w-0 flex-1 truncate",children:n}),
18
- /* @__PURE__ */K(X,{open:o})]}),
19
- /* @__PURE__ */K("div",{id:s,role:"group","aria-label":n,hidden:!o,className:"space-y-0.5 pt-0.5",children:o&&a.map(e=>$e(e,1))}),l&&/* @__PURE__ */K("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"})]},e.label)},Ie=ae?.first_name?`${ae.first_name} ${ae.last_name||""}`.trim():re?.email||"",Me=(ae?.first_name?.charAt(0)||re?.email?.charAt(0)||"?").toUpperCase(),Te=ae?.avatar_url?/* @__PURE__ */K("img",{src:ae.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */K("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:Me}),He=Se?Re.current?.getBoundingClientRect():void 0,Je=Z?"":"px-3",Ke=Z?{paddingInline:k}:void 0,Be=`${Z?ye.expandSidebar:ye.collapseSidebar} (${D?"⌘":"Ctrl"} .)`,Pe=q?{run:q,label:ye.goHome,title:ye.goHome}:oe?null:{run:E,label:Z?ye.expandSidebar:ye.collapseSidebar,title:Be},De=/* @__PURE__ */B(P,{children:[ue&&/* @__PURE__ */K(p,{src:ue,alt:"",slot:"compact",surface:"light",adaptive:be,hasAlpha:ge,isLight:fe,size:28,decorative:!0}),!Z&&/* @__PURE__ */B("span",{className:"min-w-0 text-left leading-tight",children:[
20
- /* @__PURE__ */K("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:he??"Apps"}),pe&&/* @__PURE__ */K("span",{className:"block truncate text-2xs font-medium text-gray-500",children:pe})]})]}),Qe=ke.erpSections.length>0||ke.systemSections.length>0||ke.virtualSections.length>0;/* @__PURE__ */
21
- return B("aside",{"aria-label":ye.navLabel,className:"fixed left-0 top-0 z-(--z-sidebar) flex h-dvh flex-col border-r border-gray-200 bg-white text-gray-800",style:{width:G},children:[
22
- /* @__PURE__ */B("div",{className:"flex shrink-0 items-center border-b border-gray-200 "+(Z?"justify-center":"justify-between gap-2 pl-4 pr-2"),style:{height:x},children:[Pe?/* @__PURE__ */K("button",{type:"button",onClick:Pe.run,"aria-label":Pe.label,title:Pe.title,className:"flex min-w-0 items-center gap-2 rounded-md transition-colors hover:bg-gray-100 "+(Z?"justify-center p-0.5":"-ml-1 p-1"),children:De}):/* @__PURE__ */K("span",{className:"flex min-w-0 items-center gap-2",children:De}),oe?/* @__PURE__ */K(b,{onClick:oe,"aria-label":ye.closeMenu,children:/* @__PURE__ */K(z,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})}):!Z&&/* @__PURE__ */K("button",{type:"button",onClick:E,"aria-label":ye.collapseSidebar,title:`${ye.collapseSidebar} (${D?"⌘":"Ctrl"} .)`,className:"flex size-8 shrink-0 items-center justify-center rounded-md text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900",children:/* @__PURE__ */K(F,{dir:"left"})})]}),
23
- /* @__PURE__ */K("div",{className:`shrink-0 pt-3 ${Je}`,style:Ke,children:Z?/* @__PURE__ */K("button",{type:"button",onClick:s,"aria-label":ye.search,title:`${ye.search} (${D?"⌘K":"Ctrl K"})`,className:O(!1,!0),children:/* @__PURE__ */K(U,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */B("button",{type:"button",onClick:s,className:"flex h-(--row-height-menu) w-full items-center gap-2 rounded-md border border-gray-200 bg-white px-3 text-left transition-colors hover:bg-gray-100",children:[
24
- /* @__PURE__ */K(U,{className:"size-3.5 text-gray-500"}),
25
- /* @__PURE__ */K("span",{className:"min-w-0 flex-1 truncate text-sm text-gray-500",children:ye.search}),
26
- /* @__PURE__ */K("kbd",{className:"rounded border border-gray-200 bg-gray-100 px-2 py-0.5 font-mono text-2xs font-semibold text-gray-500",children:D?"⌘K":"Ctrl K"})]})}),
27
- /* @__PURE__ */B("nav",{"aria-label":ye.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${Je} ${Z?"space-y-1":"space-y-0.5"}`,style:Ke,children:[Z&&/* @__PURE__ */K("button",{type:"button",onClick:E,"aria-label":ye.expandSidebar,title:`${ye.expandSidebar} (${D?"⌘":"Ctrl"} .)`,className:`${O(!1,!0)} mb-3`,children:/* @__PURE__ */K(F,{dir:"right"})}),ke.topItems.map(e=>{if(!Z)return $e(e,0);const t=u(e,xe),a=e.to===te||h(t,te,xe),r=e.menuLabel??e.label;/* @__PURE__ */
28
- return B("div",{children:[
29
- /* @__PURE__ */K("button",{type:"button",title:r,"aria-label":r,onClick:a=>{if(0===t.length)return void We(e,a);const r=a.currentTarget.getBoundingClientRect();we(a=>a?.label===e.to?null:{label:e.to,items:t,top:r.top})},className:O(a,!0),children:ze(e.to,ce)}),e.dividerAfter&&/* @__PURE__ */K("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"})]},e.to)}),ke.topItems.length>0&&Qe&&!ke.topItems[ke.topItems.length-1].dividerAfter&&/* @__PURE__ */K("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"}),ke.erpSections.map(e=>Ae(e,!1)),ke.systemSections.map(e=>Ae(e,!1)),ke.virtualSections.map(e=>Ae(e,!0)),ke.footerSections.length>0&&/* @__PURE__ */K("div",{className:"mx-2 my-2 border-t border-gray-200","aria-hidden":"true"}),ke.footerSections.map(e=>Ae(e,!1))]}),
30
- /* @__PURE__ */K("div",{className:`shrink-0 border-t border-gray-200 py-2 ${Je}`,style:Ke,children:/* @__PURE__ */B("button",{ref:Re,type:"button",onClick:()=>Le(e=>!e),"aria-haspopup":"menu","aria-expanded":Se,"aria-label":Z?ye.accountMenu(Ie):void 0,className:"flex w-full items-center gap-3 rounded-md hover:bg-gray-100 "+(Z?"justify-center py-2":"px-2 py-2"),children:[Te,!Z&&/* @__PURE__ */B("span",{className:"min-w-0 flex-1 text-left",children:[
31
- /* @__PURE__ */K("span",{className:"block truncate text-sm font-semibold text-gray-800",children:Ie}),re?.email&&Ie!==re.email&&/* @__PURE__ */K("span",{className:"block truncate text-2xs text-gray-500",children:re.email})]})]})}),Y&&!Z&&!oe&&/* @__PURE__ */K(o,{side:"left",width:G,onResize:Y,min:C,max:N,defaultWidth:v,storageKey:n,label:ye.resizeSidebar}),Se&&He&&/* @__PURE__ */B(S,{portal:!0,minWidth:224,onClose:()=>Le(!1),style:Q(G,He,window.innerHeight),children:[Z&&/* @__PURE__ */B("div",{className:"border-b border-gray-200 px-3 py-3",children:[
32
- /* @__PURE__ */K("p",{className:"truncate text-sm font-semibold text-gray-800",children:Ie}),re?.email&&/* @__PURE__ */K("p",{className:"truncate text-xs text-gray-500",children:re.email})]}),
33
- /* @__PURE__ */B(L,{onClick:()=>{Le(!1),ee("/profile",!1)},children:[
34
- /* @__PURE__ */K(z,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.profile]}),ke.footerItems.map(e=>/* @__PURE__ */B(L,{onClick:()=>{Le(!1),We(e)},children:[
35
- /* @__PURE__ */K("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:ce[e.to]}),e.menuLabel??e.label]},e.to)),le&&/* @__PURE__ */B(L,{onClick:()=>{Le(!1),le()},children:[
36
- /* @__PURE__ */K(z,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.reportIssue]}),
37
- /* @__PURE__ */K(R,{}),ie&&/* @__PURE__ */B(P,{children:[
38
- /* @__PURE__ */B(L,{onClick:()=>{Le(!1),ie()},children:[
39
- /* @__PURE__ */K(z,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.switchToDesktop]}),
40
- /* @__PURE__ */K(R,{})]}),
41
- /* @__PURE__ */B(L,{danger:!0,onClick:()=>{Le(!1),ne()},children:[
42
- /* @__PURE__ */K(z,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.signOut]})]}),je&&Z&&/* @__PURE__ */K(S,{portal:!0,minWidth:220,onClose:()=>we(null),style:{left:G+g,top:Math.min(je.top,window.innerHeight-48*Math.min(je.items.length,10)-16)},children:d(je.items,xe).map((e,t)=>/* @__PURE__ */B("div",{role:e.heading?"group":void 0,"aria-label":e.heading?e.heading.menuLabel??e.heading.label:void 0,children:[t>0&&/* @__PURE__ */K(R,{}),e.heading&&/* @__PURE__ */K(W,{children:e.heading.menuLabel??e.heading.label}),e.items.map(e=>/* @__PURE__ */B(L,{onClick:()=>We(e),children:[ze(e.to,ce),
43
- /* @__PURE__ */K("span",{className:e.to===te?"font-semibold":"",children:e.menuLabel??e.label})]},e.to))]},e.heading?.to??`run-${t}`))})]})}export{Q as accountMenuPosition,G as default};
@@ -1,14 +0,0 @@
1
- import{useHighlight as e}from"./chunk-CNYAHYE6.js";import{ChartTooltip as t}from"./chunk-P5BOTIJU.js";import{usePlotWidth as l}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as a,CHART_INK as n,STATUS_VARS as r}from"./chunk-TZFACUMR.js";import{useShellStrings as o,useShellLocale as i}from"./chunk-OVNRVFWS.js";import{formatPercent as u,formatPlain as h}from"./chunk-C3QOHMR6.js";import{useId as c,useState as m,useRef as s}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";function x({stages:x,shape:v="funnel",height:p,width:$,gap:g=4,minBandWidth:M=0,formatValue:y,color:b,className:k,emptyLabel:N}){const A=o().charts,S=i(),L=y??(e=>h(e,S)),j=N??A.noStages,z=c(),[V,F]=m(null),{highlighted:W}=e(),w=s(null),C=l(w,560),Z=$??C;if(0===x.length)/* @__PURE__ */return d("p",{className:`text-sm text-gray-500 ${k??""}`,children:j});const B=b??a(0),E=p??54*x.length,H=Math.max(...x.map(e=>e.value),1),O="bars"===v,R=O?Math.round(Math.min(132,Math.max(80,.24*Z))):Math.round(Math.min(168,Math.max(104,.38*Z))),U=e=>{const t=x[e-1]?.value;return null!=t&&t>0?100*(1-x[e].value/t):null},P=e=>{const t=U(e);return{count:L(x[e].value),drop:null!=t?`−${u(t,1,S)}`:""}},T=O?Math.ceil(Math.max(...x.map((e,t)=>{const{count:l,drop:a}=P(t);return.62*(l.length+(a?a.length+1:0))*12}))+16):0,Y=Z-R-T,I=Math.max(O?2:0,Math.min(M,Y)),J=e=>Math.max(I,Y*Math.max(0,e/H)),Q=e=>J(e)/2,X=R+Y/2,q=e=>46+e/Math.max(1,x.length-1)*54,D=e=>`color-mix(in oklab, ${B} ${q(e).toFixed(0)}%, ${n.surface})`,G=e=>q(e)>=55?n.surface:n.label,K=(e,t)=>null!==V?V!==e:null!==W&&W!==t,_=null!==V?x[V]:void 0;/* @__PURE__ */
2
- return f("div",{className:`relative ${k??""}`,ref:w,children:[
3
- /* @__PURE__ */f("svg",{width:"100%",height:E,viewBox:`0 0 ${Z} ${E}`,role:"img","aria-labelledby":z,onMouseLeave:()=>F(null),children:[
4
- /* @__PURE__ */d("title",{id:z,children:A.funnel(x.length,L(x[0].value),L(x[x.length-1].value))}),x.map((e,t)=>{const l=t*E/x.length+g/2,a=(t+1)*E/x.length-g/2,r=(l+a)/2,o=u(e.value/(x[0].value||1)*100,0,S),i=.62*o.length*12+12;if(O){const u=R,h=u+J(e.value),{count:c,drop:m}=P(t);/* @__PURE__ */
5
- return f("g",{opacity:K(t,e.key)?.45:1,onMouseEnter:()=>F(t),children:[
6
- /* @__PURE__ */d("path",{d:`M${u},${l} L${h},${l} L${h},${a} L${u},${a} Z`,fill:D(t)}),
7
- /* @__PURE__ */d("text",{x:R-12,y:r+4,textAnchor:"end",fontSize:12,fill:n.label,children:e.label}),h-u>=i&&/* @__PURE__ */d("text",{x:u+8,y:r+4,textAnchor:"start",fontSize:12,fontWeight:600,fill:G(t),style:{fontVariantNumeric:"tabular-nums"},children:o}),
8
- /* @__PURE__ */f("text",{"data-funnel-value":"true",x:h+8,y:r+4,textAnchor:"start",fontSize:12,fill:n.label,style:{fontVariantNumeric:"tabular-nums"},children:[
9
- /* @__PURE__ */d("tspan",{fontWeight:600,children:c}),m&&/* @__PURE__ */d("tspan",{fill:n.muted,children:` ${m}`})]})]},e.key)}const h=Q(e.value),c="cone"===v?Q(x[t+1]?.value??e.value):h,m=U(t),s=2*Math.min(h,c)>=i;/* @__PURE__ */
10
- return f("g",{opacity:K(t,e.key)?.45:1,onMouseEnter:()=>F(t),children:[
11
- /* @__PURE__ */d("path",{d:`M${X-h},${l} L${X+h},${l} L${X+c},${a} L${X-c},${a} Z`,fill:D(t)}),
12
- /* @__PURE__ */d("text",{x:R-14,y:r-2,textAnchor:"end",fontSize:12,fill:n.label,children:e.label}),
13
- /* @__PURE__ */f("text",{x:R-14,y:r+14,textAnchor:"end",fontSize:11,fill:n.muted,style:{fontVariantNumeric:"tabular-nums"},children:[L(e.value),null!=m?` · −${u(m,1,S)}`:""]}),
14
- /* @__PURE__ */d("text",{x:s?X:X+Math.max(h,c)+6,y:r+4,textAnchor:s?"middle":"start",fontSize:12,fontWeight:600,fill:s?G(t):n.label,style:{fontVariantNumeric:"tabular-nums"},children:o})]},e.key)})]}),_&&null!==V&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(t,{title:_.label,rows:[{key:"value",label:A.count,color:D(V),value:L(_.value)},{key:"share",label:A.ofFirstStage,color:n.muted,value:u(_.value/(x[0].value||1)*100,0,S)},...V>0&&x[V-1].value>0?[{key:"drop",label:A.droppedHere,color:r.critical,value:`−${u(100*(1-_.value/x[V-1].value),1,S)}`}]:[]]})})]})}export{x as FunnelChart};
@@ -1,20 +0,0 @@
1
- import{firstEnabledIndex as e,matchTypeahead as t,lastEnabledIndex as r,nextEnabledIndex as n}from"./chunk-EO5RLFRX.js";import{flattenOptionItems as i,groupedRows as a,isOptionGroup as l,OptionCheck as o}from"./chunk-TUT6SGH2.js";import{useSettingAuto as d}from"./chunk-E4Z5OXBI.js";import{inputClasses as s,PLACEHOLDER_INK as c}from"./chunk-JFSYWEHD.js";import{useIsMobile as u}from"./chunk-UGTRSRIW.js";import{optionNoteClass as p}from"./chunk-QR4RM7PO.js";import{Icon as m}from"./chunk-VJPJNCB4.js";import{onOverlayOpen as v}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as h}from"./chunk-62LW225J.js";import{useDropdownPosition as f,MENU_MAX_HEIGHT as b}from"./chunk-GLUJS42B.js";import{solidSurfaceStyle as g}from"./chunk-DTJRIWFR.js";import{registerModalEscapeInterceptor as y}from"./chunk-TWVUQUUD.js";import{useShellStrings as x}from"./chunk-OVNRVFWS.js";import{forwardRef as w,useId as k,useState as N,useRef as $,useMemo as D,useCallback as j,useEffect as T,useLayoutEffect as S}from"react";import{createPortal as E}from"react-dom";import{jsxs as O,jsx as H,Fragment as I}from"react/jsx-runtime";var C=w(function({value:e,onChange:t,options:r,placeholder:n,invalid:i,className:a="",size:l,touchSize:o,renderOption:c,renderValue:u,valueText:p,readOnly:m,footer:v,changed:h,auto:f,multiple:b,"aria-describedby":g,...y},w){const N=t,$=x(),D=d(),j=f??D,T=k(),S=/* @__PURE__ */O("select",{ref:w,value:e,multiple:b||void 0,onChange:e=>N(b?Array.from(e.target.selectedOptions,e=>e.value):e.target.value),"aria-invalid":i||void 0,"aria-describedby":[g,j?T:void 0].filter(Boolean).join(" ")||void 0,className:s({invalid:i,size:l,auto:j,className:`pr-8 ${a}`.trim()}),...y,children:[void 0!==n&&!b&&/* @__PURE__ */H("option",{value:"",disabled:!0,children:n}),
2
- /* @__PURE__ */H(R,{items:r})]});return j?/* @__PURE__ */O(I,{children:[S,
3
- /* @__PURE__ */H("span",{id:T,hidden:!0,children:$.settingView.auto})]}):S});function R({items:e}){const t=e=>/* @__PURE__ */H("option",{value:e.value,disabled:e.disabled,lang:e.lang,children:e.label},e.value);/* @__PURE__ */
4
- return H(I,{children:e.map((e,r)=>(e=>l(e))(e)?/* @__PURE__ */H("optgroup",{label:e.label,children:e.options.map(t)},`group-${r}`):t(e))})}var z=w(function({value:l,onChange:u,options:w,placeholder:C,invalid:z,className:V="",id:B,disabled:U,size:W,touchSize:A,title:F,multiple:K,renderOption:P,renderValue:J,valueText:L,readOnly:M=!1,footer:G,changed:q=!1,auto:Q,"aria-describedby":X,"aria-label":Y,"aria-labelledby":Z,..._},ee){const[te,re]=N(!1),[ne,ie]=N(-1),ae=$(null),le=$(null),oe=$(null),de=$(null),se=$([]),ce=()=>de.current??oe.current,ue=!!G?.length,pe="sm"===W,me=pe?"min-h-7 px-3 py-1 text-xs leading-4":"min-h-(--row-height-menu) px-3 py-2 text-sm leading-5",ve=p(pe),[he,fe]=N(null),be=x(),ge=$(te);ge.current=te;const ye=$({buffer:"",timer:null}),xe=k(),we=`${xe}-listbox`,ke=B??`${xe}-trigger`,Ne=e=>`${xe}-opt-${e}`,$e=`${xe}-changed`,De=d(),je=Q??De,Te=`${xe}-auto`,Se=[X,q?$e:void 0,je?Te:void 0].filter(Boolean).join(" ")||void 0,Ee=D(()=>i(w),[w]),Oe=K?l:[],He=u,Ie=f(le,te,{matchTriggerWidth:!0,...G?.length?{preferredMaxHeight:Number.POSITIVE_INFINITY}:{}}),Ce="undefined"==typeof window?T:S,Re=`${te}|${Ie?.top}|${Ie?.bottom}|${Ie?.maxHeight}|${w.length}`;Ce(()=>{fe(null)},[Re]),Ce(()=>{const e=oe.current;if(!te||!e||null!==he)return;if(e.scrollHeight<=e.clientHeight+1)return;const t=getComputedStyle(e),r=parseFloat(t.paddingTop)||0;parseFloat(t.paddingBottom);const n=e.getBoundingClientRect().top;let i=0;for(const t of e.querySelectorAll('[role="option"]')){const r=t.getBoundingClientRect().bottom-n+e.scrollTop;if(!(r<=e.clientHeight+.5))break;i=r}i>r&&fe(Math.floor(i))},[te,he,Re]);const ze=K?Ee.findIndex(e=>Oe.includes(e.value)):Ee.findIndex(e=>e.value===l),Ve=K?Ee.filter(e=>Oe.includes(e.value)).map(e=>e.label).join(", ")||void 0:ze>=0?Ee[ze].label:void 0,Be=!K&&ze>=0?Ee[ze].lang:void 0,Ue=K?Ee.filter(e=>Oe.includes(e.value)):ze>=0?[Ee[ze]]:[],We=J&&Ue.length?J(Ue):void 0,Ae=void 0!==We&&L?L(Ue):void 0,Fe=j((e=!0)=>{re(!1),ie(-1),e&&le.current?.focus()},[]),Ke=j(()=>{U||M||(ie(ze>=0?ze:e(Ee)),re(!0))},[U,M,Ee,ze]),Pe=j(e=>{const t=Ee[e];if(t&&!t.disabled){if(K){const r=l;return He(r.includes(t.value)?r.filter(e=>e!==t.value):[...r,t.value]),void ie(e)}He(t.value),Fe()}},[Ee,K,l,He,Fe]);T(()=>{if(!te)return;return y(e=>!("Escape"!==e.key||!ge.current)&&(Fe(),!0),ce)},[te,Fe]),T(()=>{if(!te)return;const e=e=>{const t=e.target;ae.current?.contains(t)||ce()?.contains(t)||Fe(!1)};document.addEventListener("pointerdown",e);const t=v(()=>Fe(!1));return()=>{document.removeEventListener("pointerdown",e),t()}},[te,Fe]),T(()=>{!te||ne<0||oe.current?.querySelector(`#${CSS.escape(Ne(ne))}`)?.scrollIntoView({block:"nearest"})},[te,ne]);const Je=j(e=>{const r=ye.current;r.timer&&clearTimeout(r.timer),r.buffer+=e,r.timer=setTimeout(()=>{r.buffer="",r.timer=null},500);const n=te?ne:ze,i=t(Ee,r.buffer,n);i<0||(te?ie(i):K?(ie(i),re(!0)):Pe(i))},[te,ne,ze,Ee,Pe,K]),Le=te?a(w,(e,t)=>{const r=(n=e.value,K?Oe.includes(n):l===n);var n;const i=t===ne;/* @__PURE__ */
5
- return O("div",{id:Ne(t),role:"option",lang:e.description||P?void 0:e.lang,"aria-selected":r,"aria-disabled":e.disabled||void 0,onPointerEnter:()=>{e.disabled||ie(t)},onClick:()=>Pe(t),className:`mx-1 cursor-pointer truncate rounded-lg ${me}${K?" flex items-center gap-2":""}\n ${e.disabled?"cursor-not-allowed text-gray-400":i?"bg-blue-50 text-blue-700":r?"font-medium text-blue-600":"text-gray-700"}`,children:[K&&/* @__PURE__ */H(o,{selected:r}),P?/* @__PURE__ */H("span",{className:"block min-w-0 flex-1 truncate",children:P(e,{selected:r,active:i})}):K?/* @__PURE__ */O("span",{className:"block min-w-0 flex-1",children:[
6
- /* @__PURE__ */H("span",{lang:e.lang,className:"block truncate",children:e.label}),e.description&&/* @__PURE__ */H("span",{className:ve,children:e.description})]}):e.description?
7
- /* @__PURE__ */O(I,{children:[
8
- /* @__PURE__ */H("span",{lang:e.lang,className:"block truncate",children:e.label}),
9
- /* @__PURE__ */H("span",{className:ve,children:e.description})]}):e.label]},e.value)},xe,"mx-1"):null,Me=void 0!==We?
10
- /* @__PURE__ */O("span",{className:"relative block min-w-0 truncate",children:[
11
- /* @__PURE__ */H("span",{"aria-hidden":"true","data-select-value":"",className:"flex min-w-0 items-center gap-2 truncate",children:We}),
12
- /* @__PURE__ */H("span",{lang:void 0===Ae?Be:void 0,className:"sr-only",children:Ae??Ve})]}):/* @__PURE__ */H("span",{lang:Be,className:"block truncate "+(void 0===Ve?"text-gray-400":""),children:Ve??C??" "}),Ge={zIndex:h.popup,left:Ie?.left,top:Ie?.top,bottom:Ie?.bottom,width:Ie?.width,maxHeight:Ie?.maxHeight??b,visibility:Ie?void 0:"hidden",...g()},qe=/* @__PURE__ */H("div",{ref:oe,id:we,role:"listbox","aria-labelledby":Z??(Y?void 0:ke),"aria-label":Z?void 0:Y,"aria-multiselectable":K||void 0,className:ue?"min-h-0 shrink overflow-y-auto py-1":"fixed overflow-y-auto rounded-(--radius-popup) py-1",style:ue?null!==he?{maxHeight:he}:void 0:null!==he?{...Ge,maxHeight:he}:Ge,children:Le}),Qe=ue?/* @__PURE__ */O("div",{ref:de,className:"fixed flex flex-col overflow-hidden rounded-(--radius-popup)",style:Ge,children:[qe,
13
- /* @__PURE__ */H("div",{className:"shrink-0 border-t border-(--rosh-glass-solid-border) px-1 py-1",children:G.map((e,t)=>/* @__PURE__ */O("button",{ref:e=>{se.current[t]=e},type:"button","data-select-action":"","aria-disabled":e.disabled||void 0,onClick:()=>(e=>{e.disabled||(Fe(),e.onSelect())})(e),onKeyDown:e=>((e,t)=>{const r=(G?.length??0)-1,n=t=>{e.preventDefault(),se.current[t]?.focus()},i=()=>{e.preventDefault(),le.current?.focus()};switch(e.key){case"ArrowDown":return void n(Math.min(t+1,r));case"ArrowUp":return void(0===t?i():n(t-1));case"Home":return void n(0);case"End":return void n(r);case"Tab":return e.shiftKey?void(0===t?i():n(t-1)):t<r?void n(t+1):(e.preventDefault(),void Fe());case"Escape":return e.preventDefault(),e.stopPropagation(),void Fe()}})(e,t),className:`flex w-full items-center gap-2 rounded-lg ${me} text-left rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] ${e.disabled?"cursor-not-allowed text-gray-400":"cursor-pointer text-gray-700 hover:bg-blue-50 hover:text-blue-700"}`,children:[e.icon&&/* @__PURE__ */H(m,{name:e.icon,"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),
14
- /* @__PURE__ */H("span",{className:"min-w-0 flex-1 truncate",children:e.label})]},e.label))})]}):qe;/* @__PURE__ */
15
- return O("div",{ref:ae,className:"relative",children:[
16
- /* @__PURE__ */H("button",{ref:le,id:ke,type:"button",role:"combobox","aria-haspopup":"listbox","aria-expanded":te,"aria-controls":te?we:void 0,"aria-activedescendant":te&&ne>=0?Ne(ne):void 0,"aria-invalid":z||void 0,"aria-describedby":Se,"aria-label":Y,"aria-labelledby":Z,title:F,disabled:U,"aria-readonly":M||void 0,onClick:()=>te?Fe():Ke(),onKeyDown:t=>{if(!U&&!M)switch(t.key){case"ArrowDown":return t.preventDefault(),void(te?ie(e=>n(Ee,e,1)):Ke());case"ArrowUp":return t.preventDefault(),void(te?ie(e=>n(Ee,e,-1)):Ke());case"Home":return void(te&&(t.preventDefault(),ie(e(Ee))));case"End":return void(te&&(t.preventDefault(),ie(r(Ee))));case"Enter":return void(te&&(t.preventDefault(),Pe(ne)));case" ":return t.preventDefault(),void(te?Pe(ne):Ke());case"Escape":return void(te&&(t.preventDefault(),t.stopPropagation(),Fe()));case"Tab":return te&&ue&&!t.shiftKey?(t.preventDefault(),void se.current[0]?.focus()):void(te&&Fe(!1));default:1!==t.key.length||t.metaKey||t.ctrlKey||t.altKey||(t.preventDefault(),Je(t.key))}},className:s({invalid:z,size:W,readOnly:M,auto:je,className:`${M?"":"pr-8 "}text-left ${V}`.trim()}),children:q?
17
- /* @__PURE__ */O("span",{className:"flex min-w-0 items-center gap-1",children:[Me,
18
- /* @__PURE__ */H("span",{"aria-hidden":"true","data-select-changed":"",className:"shrink-0",children:"*"})]}):Me}),q&&/* @__PURE__ */H("span",{id:$e,hidden:!0,children:be.select.changed}),je&&/* @__PURE__ */H("span",{id:Te,hidden:!0,children:be.settingView.auto}),!M&&/* @__PURE__ */H(m,{name:"chevron-up-down","aria-hidden":"true",className:`pointer-events-none absolute right-2.5 top-1/2 h-4 w-4 -translate-y-1/2 ${c}`,strokeWidth:2}),
19
- /* @__PURE__ */O("select",{ref:ee,value:l,multiple:K||void 0,onChange:e=>He(K?Array.from(e.target.selectedOptions,e=>e.value):e.target.value),disabled:U,"aria-hidden":"true",tabIndex:-1,className:"sr-only",..._,children:[void 0!==C&&!K&&/* @__PURE__ */H("option",{value:"",disabled:!0,children:C}),
20
- /* @__PURE__ */H(R,{items:w})]}),te&&E(Qe,document.body)]})}),V=w(function({touchSize:e="touch",...t},r){const n=u();return!n||void 0===t.footer&&void 0===t.changed||t.readOnly?n&&!t.readOnly?/* @__PURE__ */H(C,{ref:r,...t,size:e}):/* @__PURE__ */H(z,{ref:r,...t}):/* @__PURE__ */H(z,{ref:r,...t,size:e})});export{C as NativeSelect,V as Select_default};
@@ -1,15 +0,0 @@
1
- import{PopupMenu as e,PopupMenuDivider as t,PopupMenuLabel as r,menuTextRowStyle as n,itemLook as i,MenuCheckMark as a}from"./chunk-7IF3RZF3.js";import{useTabLayer as o,focusableIn as l}from"./chunk-CDAJKLGL.js";import{onOverlayOpen as s}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as d}from"./chunk-62LW225J.js";import{placeMenu as c,popupBounds as u,followAnchor as p}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as f}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as m}from"./chunk-TWVUQUUD.js";import{useState as h,useRef as y,useId as b,useCallback as g,useEffect as v}from"react";import{jsxs as k,jsx as x}from"react/jsx-runtime";var w=/(^|[\s:])!?z-/,D={paddingLeft:"var(--menu-padding-x, 1rem)",paddingRight:"var(--menu-padding-x, 1rem)",paddingTop:"0.25rem",paddingBottom:"0.25rem"},N=e=>!!e&&"label"!==e.type&&"status"!==e.type&&"divider"!==e.type&&!e.disabled;function $({trigger:$,items:C,align:j="end",side:L="bottom","aria-label":E,className:K="",triggerClassName:S,menuClassName:W="",minWidth:H=180,linkAs:A,disabled:U,id:T,"aria-describedby":B,"aria-disabled":I=!1,onOpenChange:J,footer:M,footerLabel:q}){const[G,R]=h(!1),[z,F]=h(-1),O=y(null),P=y(null),Q=y(null),V=y(null),Y=y(null),Z=null!=M&&!1!==M,X=y({text:"",at:0}),_=b(),ee=b(),te=T??ee,re=y(J);re.current=J;const ne=y(G);ne.current=G;const ie=g(e=>{R(!1),ne.current&&(ne.current=!1,re.current?.(!1)),e&&P.current?.focus()},[]),ae=(e,t)=>{const r=C.length;for(let n=0;n<r;n+=1){const i=((e+t*n)%r+r)%r;if(N(C[i]))return i}return-1},oe=()=>Q.current?.closest("[data-popup-menu-tree]")??null;v(()=>{if(!G)return;const e=e=>{const t=e.target;O.current?.contains(t)||oe()?.contains(t)||ie(!1)};document.addEventListener("pointerdown",e,!0);const t=s(()=>ie(!1));return()=>{document.removeEventListener("pointerdown",e,!0),t()}},[G,ie]);const le=g(()=>{const e=oe(),t=P.current;if(!e||!t)return;const r=e.style;r.left="0px",r.top="0px",r.maxWidth="none",r.maxHeight="none";const n={width:e.offsetWidth,height:e.offsetHeight},i=c({trigger:t.getBoundingClientRect(),menu:n,bounds:u(t),align:j,side:L});r.left=`${i.left}px`,r.top=`${i.top}px`,r.maxWidth=`${i.maxWidth}px`,r.maxHeight=`${i.maxHeight}px`,r.overflowY=n.height>i.maxHeight?"auto":"",e.dataset.side=i.side,e.dataset.align=j},[j,L]);f(()=>{G&&le()}),v(()=>{if(G)return p(()=>P.current,le)},[G,le]),v(()=>{if(!G)return;const e=Q.current,t=N(C[z])?e?.querySelector(`[data-dropdown-index="${z}"]`):null;(t??e)?.focus({preventScroll:!0})},[G,z]),v(()=>{if(G)return m(e=>"Escape"===e.key&&(ie(!0),!0),()=>V.current)},[G,ie]),o(V,G&&Z);const se=y(null),de=e=>"first"===e?ae(0,1):ae(C.length-1,-1),ce=e=>{F(de(e)),R(!0),ne.current||(ne.current=!0,se.current=e,J?.(!0))};f(()=>{const e=se.current;if(!G||!e)return;se.current=null;const t=de(e);t!==z&&F(t)});const ue=e=>{e.disabled||(ie(!0),e.onSelect())},pe=A??"a",fe=e=>`${_}-status-${e}`,me=C.flatMap((e,t)=>"status"===e.type?[fe(t)]:[]).join(" ")||void 0,he=(e,t)=>({"data-dropdown-index":e,tabIndex:e===z?0:-1,onMouseEnter:()=>{t.disabled||Y.current?.contains(document.activeElement)||F(e)}}),ye=(e,o)=>{if("divider"===e.type)/* @__PURE__ */
2
- return x("div",{role:"separator",children:/* @__PURE__ */x(t,{})},e.key);if("label"===e.type)/* @__PURE__ */
3
- return x("div",{id:`${_}-label-${o}`,children:/* @__PURE__ */x(r,{children:e.label})},e.key);if("status"===e.type)/* @__PURE__ */
4
- return x("div",{id:fe(o),className:"text-xs",style:n(),children:e.label},e.key);if("checkbox"===e.type){const t=i(!1,e.disabled,"");/* @__PURE__ */
5
- return k("button",{type:"button",role:"menuitemcheckbox","aria-checked":e.checked,disabled:e.disabled,className:t.className,style:t.style,onClick:()=>(e=>{e.disabled||e.onSelect()})(e),...he(o,e),children:[
6
- /* @__PURE__ */x(a,{kind:"checkbox",checked:e.checked}),e.icon,e.label]},e.key)}if("radio"===e.type){const t=i(!1,e.disabled,"");/* @__PURE__ */
7
- return k("button",{type:"button",role:"menuitemradio","aria-checked":e.checked,disabled:e.disabled,className:t.className,style:t.style,onClick:()=>ue(e),...he(o,e),children:[
8
- /* @__PURE__ */x(a,{kind:"radio",checked:e.checked}),e.icon,e.label]},e.key)}if((e=>"link"===e.type||void 0===e.type&&"string"==typeof e.href)(e)){const t=i(!1,e.disabled,"no-underline "+(e.current?"font-medium":""));return e.disabled?/* @__PURE__ */k("a",{role:"menuitem","aria-disabled":"true",className:t.className,style:t.style,...he(o,e),children:[e.icon,e.label]},e.key):/* @__PURE__ */k(pe,{href:e.href,role:"menuitem","aria-current":e.current?"page":void 0,className:t.className,style:t.style,onClick:()=>ie(!0),...he(o,e),children:[e.icon,e.label]},e.key)}const l=i(e.danger,e.disabled,"");/* @__PURE__ */
9
- return k("button",{type:"button",role:"menuitem",disabled:e.disabled,className:l.className,style:l.style,onClick:()=>ue(e),...he(o,e),children:[e.icon,e.label]},e.key)},be="function"==typeof M?M({close:()=>ie(!0)}):M,ge={...w.test(W)?{}:{zIndex:d.popup},minWidth:H};/* @__PURE__ */
10
- return k("div",{ref:O,className:`relative inline-flex ${K}`.trim(),children:[
11
- /* @__PURE__ */x("button",{ref:P,id:te,type:"button","aria-haspopup":"menu","aria-expanded":G,"aria-controls":G?_:void 0,"aria-label":E,"aria-describedby":B,"aria-disabled":I||void 0,disabled:U,onClick:()=>{I||(G?ie(!1):ce("first"))},onKeyDown:e=>{I||("ArrowDown"===e.key||"Enter"===e.key||" "===e.key?(e.preventDefault(),ce("first")):"ArrowUp"===e.key&&(e.preventDefault(),ce("last")))},className:S??"inline-flex items-center justify-center rounded-(--radius-control) text-gray-600 transition-colors not-disabled:not-aria-disabled:hover:bg-gray-100 not-disabled:not-aria-disabled:hover:text-gray-900 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] disabled:cursor-not-allowed disabled:opacity-60 "+(E?"h-8 min-w-8 px-0":"h-8 min-w-8 gap-2 px-3"),children:$}),G&&
12
- /* @__PURE__ */x(e,{portal:!0,className:W,style:ge,children:/* @__PURE__ */k("div",{ref:V,children:[
13
- /* @__PURE__ */x("div",{ref:Q,id:_,role:"menu","aria-orientation":"vertical","aria-label":E,"aria-labelledby":E?void 0:te,"aria-describedby":me,tabIndex:-1,onKeyDown:e=>{if("ArrowDown"===e.key)e.preventDefault(),F(ae(z+1,1));else if("ArrowUp"===e.key)e.preventDefault(),F(ae(z-1,-1));else if("Home"===e.key)e.preventDefault(),F(ae(0,1));else if("End"===e.key)e.preventDefault(),F(ae(C.length-1,-1));else if("Tab"===e.key){e.preventDefault();const t=!e.shiftKey&&Y.current?l(Y.current)[0]:void 0;t?t.focus({preventScroll:!0}):ie(!0)}else if(" "===e.key){const t=e.target;t.matches?.("a[href]")&&(e.preventDefault(),t.click())}else 1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey||(e=>{const t=Date.now(),r=e.key.toLowerCase(),n=t-X.current.at<500?X.current.text+r:r;X.current={text:n,at:t};const i=[...n].every(e=>e===n[0]),a=i?n[0]:n,o=i?z+1:Math.max(z,0),l=Q.current,s=C.length;for(let t=0;t<s;t+=1){const r=((o+t)%s+s)%s;if(N(C[r])&&(l?.querySelector(`[data-dropdown-index="${r}"]`)?.textContent?.trim().toLowerCase()??"").startsWith(a))return e.preventDefault(),void F(r)}})(e)},children:(()=>{const e=[];for(let t=0;t<C.length;){const r=C[t];if("radio"!==r.type&&"checkbox"!==r.type){e.push(ye(r,t)),t+=1;continue}const n=r.type,i=t,a=[];for(;t<C.length&&C[t].type===n;)a.push(ye(C[t],t)),t+=1;const o="label"===C[i-1]?.type?`${_}-label-${i-1}`:void 0;e.push(/* @__PURE__ */x("div",{role:"group","aria-labelledby":o,children:a},`group:${r.key}`))}return e})()}),Z&&/* @__PURE__ */k("div",{ref:Y,role:"group","aria-label":q,"data-dropdown-footer":"",onKeyDown:e=>{const t=Y.current;if("Tab"!==e.key||!t||!t.contains(e.target))return;const r=l(t),n=document.activeElement;if(e.shiftKey){if(r.length>0&&n!==r[0])return;e.preventDefault();const t=Q.current?.querySelector(`[data-dropdown-index="${z}"]`);return void(t??Q.current)?.focus({preventScroll:!0})}r.length>0&&n!==r[r.length-1]||(e.preventDefault(),ie(!0))},children:[
14
- /* @__PURE__ */x("div",{"aria-hidden":"true",children:/* @__PURE__ */x(t,{})}),
15
- /* @__PURE__ */x("div",{style:D,children:be})]})]})})]})}export{$ as DropdownMenu};
@@ -1,15 +0,0 @@
1
- import{AccessibleTable as e}from"./chunk-X3II54HU.js";import{polygonPoints as t}from"./chunk-VFC6QUEN.js";import{ChartDefs as r,maskId as l}from"./chunk-465RRWBY.js";import{useHighlight as a}from"./chunk-CNYAHYE6.js";import{ChartTooltip as o}from"./chunk-P5BOTIJU.js";import{angleScale as n}from"./chunk-2JWPNR2U.js";import{CHART_INK as i,resolveSeriesColorWithin as s}from"./chunk-TZFACUMR.js";import{useShellStrings as m,useShellLocale as c}from"./chunk-OVNRVFWS.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useId as p,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var k=3,g=e=>`${e.map(([e,t],r)=>`${0===r?"M":"L"}${e.toFixed(2)},${t.toFixed(2)}`).join(" ")} Z`;function x({axes:k,series:x,size:y=300,mode:b="area",grid:v="polygon",rings:M=4,formatValue:N,animate:j=!0,className:$,emptyLabel:W}){const C=m().charts,F=c(),R=N??(e=>h(e,F)),w=W??C.nothingToCompare,U=p(),[A,L]=u(null),{highlighted:O}=a(),T=x;if(k.length<3||0===T.length)/* @__PURE__ */
2
- return d("p",{className:`text-sm text-gray-500 ${$??""}`,children:w});const V=y/2,z=y/2,B=y/2-46,E=n(k.length),H=k.map((e,t)=>null!=e.max&&Number.isFinite(e.max)&&e.max>0?e.max:Math.max(1,...T.map(e=>e.values[t]??0).filter(Number.isFinite))),I=(e,t)=>{const r=Math.max(0,Math.min(1,t/H[e])),l=E.center(e)-E.step/2;return[V+B*r*Math.cos(l),z+B*r*Math.sin(l)]},S=(e,t)=>null!==A?A!==e:null!==O&&O!==t,Y=null!==A?T[A]:void 0;/* @__PURE__ */
3
- return f("div",{className:`relative ${$??""}`,children:[
4
- /* @__PURE__ */f("svg",{width:"100%",height:y,viewBox:`0 0 ${y} ${y}`,role:"img","aria-labelledby":U,onMouseLeave:()=>L(null),children:[
5
- /* @__PURE__ */d("title",{id:U,children:C.acrossMeasures(T.map(e=>e.label),k.length)}),Array.from({length:M},(e,r)=>{const l=B*(r+1)/M;return"circle"===v?/* @__PURE__ */d("circle",{cx:V,cy:z,r:l,fill:"none",stroke:i.grid,strokeWidth:1},r):/* @__PURE__ */d("path",{d:g(t(V,z,l,k.length)),fill:"none",stroke:i.grid,strokeWidth:1},r)}),k.map((e,t)=>{const[r,l]=I(t,H[t]);/* @__PURE__ */
6
- return f("g",{children:[
7
- /* @__PURE__ */d("line",{x1:V,y1:z,x2:r,y2:l,stroke:i.grid,strokeWidth:1}),
8
- /* @__PURE__ */d("text",{x:V+(B+18)*Math.cos(E.center(t)-E.step/2),y:z+(B+18)*Math.sin(E.center(t)-E.step/2)+4,textAnchor:"middle",fontSize:11,fill:i.label,children:e.label})]},e.key)}),
9
- /* @__PURE__ */d(r,{id:U,reveal:!!j&&"center-out"}),T.map((e,t)=>{const r=s(t,3,e.color,e.tone),a=k.map((t,r)=>I(r,e.values[r]??0));/* @__PURE__ */
10
- return f("g",{opacity:S(t,e.key)?.3:1,onMouseEnter:()=>L(t),mask:j?`url(#${l(U)})`:void 0,children:["area"===b&&/* @__PURE__ */d("path",{d:g(a),fill:r,fillOpacity:.18,stroke:"none"}),
11
- /* @__PURE__ */d("path",{d:g(a),fill:"none",stroke:r,strokeWidth:2,strokeLinejoin:"round"}),a.map(([e,t],l)=>/* @__PURE__ */d("circle",{cx:e,cy:t,r:3.5,fill:r,stroke:i.surface,strokeWidth:1.5},l))]},e.key)})]}),Y&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(o,{title:Y.label,rows:k.map((e,t)=>({key:e.key,label:e.label,color:s(A,3,Y.color,Y.tone),value:R(Y.values[t]??0)}))})}),
12
- /* @__PURE__ */d("ul",{className:"m-0 mt-3 grid gap-1 p-0",style:{gridTemplateColumns:"repeat(auto-fit,minmax(140px,1fr))"},children:T.map((e,t)=>/* @__PURE__ */f("li",{className:"flex list-none items-center gap-2 text-xs text-gray-600",children:[
13
- /* @__PURE__ */d("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{backgroundColor:s(t,3,e.color,e.tone)}}),
14
- /* @__PURE__ */d("span",{className:"flex-1 truncate",children:e.label})]},e.key))}),
15
- /* @__PURE__ */d(e,{caption:C.acrossMeasures(T.map(e=>e.label),k.length),head:[C.tableSeries,...k.map(e=>e.label)],rows:T.map(e=>[e.label,...k.map((t,r)=>R(e.values[r]??0))])})]})}export{k as RADAR_SERIES_CAP,x as RadarChart};