efficient-shell 13.11.0 → 13.13.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 (314) hide show
  1. package/README.md +1 -1
  2. package/dist/{Browser-S2ISEYGX.js → Browser-H3A2AO7Q.js} +16 -16
  3. package/dist/{Calculator-TJ4XFVNQ.js → Calculator-3PVLP3UK.js} +22 -22
  4. package/dist/{CurrencyConverter-6H3QM3TU.js → CurrencyConverter-JLRIAP2Z.js} +6 -6
  5. package/dist/{Files-37P4KZOM.js → Files-YVC66K6X.js} +77 -77
  6. package/dist/{Notepad-4PQFMUYM.js → Notepad-BCND3SM3.js} +9 -9
  7. package/dist/PdfViewer-PFQGQRQX.js +1 -0
  8. package/dist/{PomodoroTimer-2MFWO3KK.js → PomodoroTimer-I575OSRR.js} +46 -46
  9. package/dist/{Preview-CC7QJZGV.js → Preview-UXATJW7C.js} +49 -49
  10. package/dist/Sidebar-GYGYAXS2.js +44 -0
  11. package/dist/{Stock-OYUZ4D3M.js → Stock-EPJQJ3XE.js} +3 -3
  12. package/dist/{Weather-377NKPA5.js → Weather-RPCD2UW3.js} +22 -22
  13. package/dist/{WorldClock-M6AMXQY2.js → WorldClock-AC3EUSVG.js} +7 -7
  14. package/dist/ai/index.d.ts +25 -1
  15. package/dist/ai/index.js +103 -103
  16. package/dist/apps/ImageAnnotator.js +1 -1
  17. package/dist/apps/index.js +1 -1
  18. package/dist/bin/browser-check.js +1 -1
  19. package/dist/bin/media-host-check.js +1 -1
  20. package/dist/bin/ui-check.js +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/SpecChart.js +1 -1
  41. package/dist/charts/StatTile.js +1 -1
  42. package/dist/charts/SunburstChart.js +1 -1
  43. package/dist/charts/TimeSeriesChart.js +1 -1
  44. package/dist/charts/TreemapChart.js +1 -1
  45. package/dist/charts/WaterfallChart.js +1 -1
  46. package/dist/{chunk-MZCYB2MW.js → chunk-223XYIIH.js} +1 -1
  47. package/dist/{chunk-R5SVNFUG.js → chunk-22N3KA7A.js} +4 -4
  48. package/dist/{chunk-TZBNN6HD.js → chunk-23LK4PLJ.js} +8 -8
  49. package/dist/{chunk-7WMFHPKS.js → chunk-2GMYO6ET.js} +1 -1
  50. package/dist/{chunk-FCWBO7I3.js → chunk-2QE6QD4Y.js} +7 -7
  51. package/dist/{chunk-H4GOJ26X.js → chunk-2YK6ZB7C.js} +1 -1
  52. package/dist/chunk-3J4SFHC7.js +15 -0
  53. package/dist/{chunk-5UPLN44S.js → chunk-3PLQKRD4.js} +12 -12
  54. package/dist/chunk-47UTEV3P.js +23 -0
  55. package/dist/{chunk-65JCQLM4.js → chunk-4F3SUYN5.js} +1 -1
  56. package/dist/{chunk-TAEO2JC6.js → chunk-4IYHQNKZ.js} +1 -1
  57. package/dist/chunk-4Q2CZ4US.js +7 -0
  58. package/dist/{chunk-CVXJKHPD.js → chunk-4S3E3VJH.js} +6 -6
  59. package/dist/{chunk-5LHEPE4B.js → chunk-4U5M37SF.js} +1 -1
  60. package/dist/{chunk-F3MO56N4.js → chunk-5HFKVEWW.js} +1 -1
  61. package/dist/{chunk-YMUHIJDJ.js → chunk-5POQCJL6.js} +4 -4
  62. package/dist/chunk-65FZQ572.js +8 -0
  63. package/dist/{chunk-VWYICGVA.js → chunk-6AUQWWUA.js} +1 -1
  64. package/dist/{chunk-RJ24VXBZ.js → chunk-6HYO2W3O.js} +4 -4
  65. package/dist/{chunk-WAKWESOR.js → chunk-6LDXTZGE.js} +1 -1
  66. package/dist/{chunk-FOE2QHDE.js → chunk-6LYKIC7W.js} +9 -9
  67. package/dist/{chunk-EQFWFQOZ.js → chunk-6QKTQOEV.js} +27 -27
  68. package/dist/{chunk-2FQBY4ED.js → chunk-7RGHV3J5.js} +5 -5
  69. package/dist/chunk-7TJZ5AJE.js +11 -0
  70. package/dist/{chunk-VMKTA5HL.js → chunk-AEEK74UI.js} +6 -6
  71. package/dist/{chunk-CCPUNN4F.js → chunk-AHMYBYXJ.js} +1 -1
  72. package/dist/chunk-B53VREFW.js +8 -0
  73. package/dist/{chunk-GHLXZDLU.js → chunk-BG3C4ALM.js} +1 -1
  74. package/dist/{chunk-GAGCE2ML.js → chunk-CKTFXTJL.js} +1 -1
  75. package/dist/{chunk-BXZLSY2S.js → chunk-CWVQH2SP.js} +1 -1
  76. package/dist/chunk-DEYVAMJQ.js +19 -0
  77. package/dist/{chunk-IODIQ77P.js → chunk-DO3DSSAW.js} +1 -1
  78. package/dist/chunk-DQTYV6AC.js +9 -0
  79. package/dist/{chunk-4RSBPRCQ.js → chunk-DVVB2CY5.js} +1 -1
  80. package/dist/{chunk-XOZ5VPXF.js → chunk-EHNQGKW4.js} +1 -1
  81. package/dist/{chunk-75TPMXA7.js → chunk-ELPW25CA.js} +1 -1
  82. package/dist/{chunk-BNPJHOAC.js → chunk-EMRTVPQ5.js} +9 -9
  83. package/dist/{chunk-4HJNHI4A.js → chunk-F4VILY3O.js} +1 -1
  84. package/dist/{chunk-ZDCCYRFF.js → chunk-F5B5WOQ7.js} +2 -2
  85. package/dist/{chunk-AJ5GLMGD.js → chunk-FBS55WOX.js} +7 -7
  86. package/dist/{chunk-TDG5WGLR.js → chunk-FDDM7VMQ.js} +1 -1
  87. package/dist/chunk-FQD6P6EZ.js +4 -0
  88. package/dist/{chunk-57GRXAXJ.js → chunk-FT2YDMG7.js} +1 -1
  89. package/dist/{chunk-PR6FNBKR.js → chunk-FTKLODQK.js} +1 -1
  90. package/dist/{chunk-VUM6BYAX.js → chunk-G4D2WM3J.js} +1 -1
  91. package/dist/{chunk-H7CIK74N.js → chunk-G53Y6EPJ.js} +13 -13
  92. package/dist/{chunk-ZDDMFFQK.js → chunk-GITRDCHS.js} +1 -1
  93. package/dist/{chunk-4YWQE67T.js → chunk-GO2TZ35U.js} +1 -1
  94. package/dist/{chunk-6XPS3H5Z.js → chunk-GYPYOBG5.js} +8 -8
  95. package/dist/{chunk-ZGIAMYTI.js → chunk-HK53EKZH.js} +1 -1
  96. package/dist/{chunk-X22SFR5F.js → chunk-HOROMBJB.js} +8 -8
  97. package/dist/{chunk-XCY7A5UM.js → chunk-HZ7TUMNL.js} +1 -1
  98. package/dist/{chunk-Z62HFEFS.js → chunk-I6QVXM2M.js} +15 -15
  99. package/dist/{chunk-6SOS6OBB.js → chunk-IE6TRMIW.js} +1 -1
  100. package/dist/{chunk-NVAH2NQI.js → chunk-IG7JPSBG.js} +1 -1
  101. package/dist/chunk-IJNQ2BUY.js +2 -0
  102. package/dist/{chunk-NUDL6UO3.js → chunk-IOLUF3UL.js} +1 -1
  103. package/dist/chunk-IUVGHHR3.js +1 -0
  104. package/dist/chunk-J6QC45OS.js +8 -0
  105. package/dist/{chunk-KV6XCHAG.js → chunk-JGKDWDVM.js} +16 -16
  106. package/dist/{chunk-JOYGSKWG.js → chunk-JHGBFZHL.js} +5 -5
  107. package/dist/{chunk-PZNF2TEB.js → chunk-JNSRDEB6.js} +9 -9
  108. package/dist/{chunk-SC3AQXJY.js → chunk-JPCPO4MX.js} +8 -8
  109. package/dist/{chunk-BSEQJM7X.js → chunk-JPKNVTTK.js} +1 -1
  110. package/dist/{chunk-NDWX5Z4D.js → chunk-JR2HHKVP.js} +1 -1
  111. package/dist/{chunk-DU7TJVX5.js → chunk-KEVJBI5Q.js} +1 -1
  112. package/dist/{chunk-R5TSUJTK.js → chunk-KLUCEASW.js} +6 -6
  113. package/dist/{chunk-2UBR4YUF.js → chunk-KNZ7YTFH.js} +1 -1
  114. package/dist/{chunk-3DV5YLAI.js → chunk-KYQKMBSY.js} +5 -5
  115. package/dist/{chunk-3YCU6V3U.js → chunk-L2WBCXG7.js} +1 -1
  116. package/dist/{chunk-ROKUEMAK.js → chunk-L3BECLHD.js} +1 -1
  117. package/dist/{chunk-VOD5MRBF.js → chunk-L3STE7JN.js} +2 -2
  118. package/dist/{chunk-YW6BODBX.js → chunk-LURBH6G4.js} +1 -1
  119. package/dist/{chunk-PC3MYH2K.js → chunk-LXPDURUL.js} +2 -2
  120. package/dist/{chunk-DASRJ26L.js → chunk-M2TQOJ3G.js} +1 -1
  121. package/dist/{chunk-IRCASURW.js → chunk-M7W63T6H.js} +8 -8
  122. package/dist/{chunk-ZHR2HNT2.js → chunk-MEF4JVXP.js} +15 -15
  123. package/dist/{chunk-VVXBBU6R.js → chunk-MHCNQKEK.js} +3 -3
  124. package/dist/{chunk-FEQQMRHJ.js → chunk-MOKABQCY.js} +2 -2
  125. package/dist/{chunk-ARBS2EZ6.js → chunk-NA4XPE7S.js} +3 -3
  126. package/dist/{chunk-HWJQLLJA.js → chunk-NEHVW324.js} +8 -8
  127. package/dist/{chunk-AKKDFFUO.js → chunk-NILGK2KJ.js} +1 -1
  128. package/dist/{chunk-6D6Q3ZCG.js → chunk-NJD7HVTP.js} +5 -5
  129. package/dist/chunk-NMP74ZCB.js +1 -0
  130. package/dist/{chunk-XPSWZQR4.js → chunk-OEPQIIYL.js} +1 -1
  131. package/dist/{chunk-CUJA3HBZ.js → chunk-OLSA36VX.js} +8 -8
  132. package/dist/{chunk-FVORTWUY.js → chunk-ORV2AVIJ.js} +1 -1
  133. package/dist/chunk-OWAYSIQH.js +8 -0
  134. package/dist/{chunk-YM7AWNMY.js → chunk-OZ4R6U2M.js} +1 -1
  135. package/dist/{chunk-G5U7IRH4.js → chunk-P5C7DI5A.js} +5 -5
  136. package/dist/{chunk-F3G7S5HO.js → chunk-PALWXHBQ.js} +27 -27
  137. package/dist/{chunk-QO7UHTUE.js → chunk-PKXHAF43.js} +6 -6
  138. package/dist/chunk-PR3VNBQY.js +28 -0
  139. package/dist/{chunk-NZKR3JPM.js → chunk-QBMMORYP.js} +1 -1
  140. package/dist/{chunk-AEMTJGD4.js → chunk-QNWC3RWK.js} +1 -1
  141. package/dist/{chunk-QDEQHT2T.js → chunk-QQGNTDMO.js} +1 -1
  142. package/dist/{chunk-V5VAKDLS.js → chunk-QTVE3OSD.js} +6 -6
  143. package/dist/{chunk-ZAL72BPF.js → chunk-R6GXVLY7.js} +1 -1
  144. package/dist/chunk-RDGXSAOD.js +2 -0
  145. package/dist/{chunk-OAKXWYZD.js → chunk-RFR2K7JO.js} +2 -2
  146. package/dist/{chunk-Y43S6YS5.js → chunk-RZJ63ZM4.js} +10 -10
  147. package/dist/{chunk-2A2C2YBE.js → chunk-S5N37QIV.js} +2 -2
  148. package/dist/{chunk-ROPVIMIR.js → chunk-SR6DDTUN.js} +1 -1
  149. package/dist/chunk-TNNH6F3V.js +11 -0
  150. package/dist/{chunk-IEW5JTIR.js → chunk-U2ZTHOQL.js} +1 -1
  151. package/dist/{chunk-BRFUQAVC.js → chunk-U7WDBCVV.js} +1 -1
  152. package/dist/{chunk-O5UD3ZWM.js → chunk-UC5IC3AM.js} +10 -10
  153. package/dist/{chunk-HTHNDX32.js → chunk-UFX7F3KG.js} +1 -1
  154. package/dist/{chunk-Q6GECV4J.js → chunk-UXGNF3OG.js} +1 -1
  155. package/dist/{chunk-2LRSUDGN.js → chunk-VADWTS7H.js} +5 -5
  156. package/dist/{chunk-IYTOOV7Q.js → chunk-VCR3RADH.js} +1 -1
  157. package/dist/{chunk-ITEOA45V.js → chunk-VFSAJMNX.js} +1 -1
  158. package/dist/{chunk-TMSSR5UH.js → chunk-VQ35LXDC.js} +1 -1
  159. package/dist/{chunk-3TCGXYUC.js → chunk-VXSYHTBP.js} +1 -1
  160. package/dist/{chunk-WEZ2RO72.js → chunk-VYHVIKP6.js} +8 -8
  161. package/dist/{chunk-YAM3L5N4.js → chunk-W2TPXKCV.js} +1 -1
  162. package/dist/chunk-W6NGPSMM.js +22 -0
  163. package/dist/{chunk-DFOKJAIS.js → chunk-WBXPA7TY.js} +1 -1
  164. package/dist/{chunk-FXG7TOZN.js → chunk-WF4A2HSB.js} +1 -1
  165. package/dist/{chunk-PGATHOTX.js → chunk-WIFK6TLB.js} +1 -1
  166. package/dist/{chunk-IOZSLFGR.js → chunk-WJMPTW3G.js} +1 -1
  167. package/dist/chunk-WWCAVO3R.js +14 -0
  168. package/dist/{chunk-4HJX2M4W.js → chunk-XEPA5J6K.js} +1 -1
  169. package/dist/{chunk-YEEMRWBS.js → chunk-XHD6Q6JV.js} +1 -1
  170. package/dist/{chunk-P62QGXRW.js → chunk-XMFJDT6Y.js} +13 -13
  171. package/dist/{chunk-BLXHT72M.js → chunk-XOQGBU25.js} +1 -1
  172. package/dist/{chunk-H4LUHKUJ.js → chunk-XRTH47EO.js} +49 -49
  173. package/dist/chunk-XSHDPG45.js +9 -0
  174. package/dist/{chunk-ID35S5Y6.js → chunk-XWJT6TFU.js} +1 -1
  175. package/dist/{chunk-PA3OU3Y7.js → chunk-YDFDTRZF.js} +5 -5
  176. package/dist/{chunk-44ZHEIJZ.js → chunk-YGKLZBWC.js} +11 -11
  177. package/dist/{chunk-5PSFENSW.js → chunk-YM2Z4LZ2.js} +16 -16
  178. package/dist/{chunk-LOFFHXZ4.js → chunk-YMHCLK3F.js} +10 -10
  179. package/dist/{chunk-KGBB6REQ.js → chunk-YNVH2EIE.js} +3 -3
  180. package/dist/{chunk-O32GIVYD.js → chunk-YY7OFUT2.js} +3 -3
  181. package/dist/{chunk-JWUNK2PW.js → chunk-ZCGT5YNR.js} +1 -1
  182. package/dist/{chunk-NLHGFQ54.js → chunk-ZNV75GAG.js} +1 -1
  183. package/dist/{chunk-E44RNULN.js → chunk-ZYU5HAIC.js} +1 -1
  184. package/dist/data/DataTable.js +1 -1
  185. package/dist/data/EntityList.js +1 -1
  186. package/dist/data/Gantt.js +1 -1
  187. package/dist/data/Kanban.js +1 -1
  188. package/dist/data/ListFooter.js +1 -1
  189. package/dist/data/ListLoadError.js +1 -1
  190. package/dist/data/Pagination.js +1 -1
  191. package/dist/data/ResizableTable.js +1 -1
  192. package/dist/file-intake/index.js +1 -1
  193. package/dist/forms/BorderInput.js +1 -1
  194. package/dist/forms/BrandAssetEditor.js +1 -1
  195. package/dist/forms/Calendar.js +1 -1
  196. package/dist/forms/ColorPicker.js +1 -1
  197. package/dist/forms/ComposerAttachments.js +1 -1
  198. package/dist/forms/CornersInput.js +1 -1
  199. package/dist/forms/DatePicker.js +1 -1
  200. package/dist/forms/DateRangePicker.js +1 -1
  201. package/dist/forms/DateTimePicker.js +1 -1
  202. package/dist/forms/DisplayChips.js +1 -1
  203. package/dist/forms/FilePicker.js +1 -1
  204. package/dist/forms/FormErrorSummary.js +1 -1
  205. package/dist/forms/IconPicker.js +1 -1
  206. package/dist/forms/ImageFocusPoint.js +1 -1
  207. package/dist/forms/InputNumber.js +1 -1
  208. package/dist/forms/LinkPicker.js +1 -1
  209. package/dist/forms/MediaLibrary.js +1 -1
  210. package/dist/forms/MediaUploadField.js +1 -1
  211. package/dist/forms/MediaUploadGrid.js +1 -1
  212. package/dist/forms/MediaUsedInList.js +1 -1
  213. package/dist/forms/NumericKeypad.js +1 -1
  214. package/dist/forms/PositionInput.js +1 -1
  215. package/dist/forms/Select.js +1 -1
  216. package/dist/forms/SidesInput.js +1 -1
  217. package/dist/forms/Slider.js +1 -1
  218. package/dist/forms/Snippet.js +1 -1
  219. package/dist/forms/TagInput.d.ts +5 -1
  220. package/dist/forms/TagInput.js +1 -1
  221. package/dist/forms/TextToolbar.js +1 -1
  222. package/dist/forms/TimePicker.js +1 -1
  223. package/dist/forms/WidthsBar.js +1 -1
  224. package/dist/forms/mediaLibraryMenu.js +1 -1
  225. package/dist/forms/mediaMoveItems.js +1 -1
  226. package/dist/forms/textAlign.js +1 -1
  227. package/dist/forms/useFileIntake.js +1 -1
  228. package/dist/index.js +665 -665
  229. package/dist/locales/zh-Hans.js +1 -1
  230. package/dist/map/index.js +4 -4
  231. package/dist/model-viewer/index.js +3 -3
  232. package/dist/page-tabs/index.js +5 -5
  233. package/dist/pdf/index.js +1 -1
  234. package/dist/shell/Accordion.js +1 -1
  235. package/dist/shell/AppUpdateBanner.js +1 -1
  236. package/dist/shell/Avatar.js +1 -1
  237. package/dist/shell/Banner.js +1 -1
  238. package/dist/shell/Breadcrumbs.js +1 -1
  239. package/dist/shell/BudgetBar.js +1 -1
  240. package/dist/shell/Card.js +1 -1
  241. package/dist/shell/ColoredBadge.js +1 -1
  242. package/dist/shell/ConfirmDialog.js +1 -1
  243. package/dist/shell/ContainerFillChart.js +1 -1
  244. package/dist/shell/CountBadge.js +1 -1
  245. package/dist/shell/Dialog.js +1 -1
  246. package/dist/shell/Drawer.js +1 -1
  247. package/dist/shell/EditableGrid.js +1 -1
  248. package/dist/shell/EmptyState.js +1 -1
  249. package/dist/shell/GlobalSearch.js +1 -1
  250. package/dist/shell/HelpCenter.js +1 -1
  251. package/dist/shell/IconRail.js +1 -1
  252. package/dist/shell/ImageLightbox.js +1 -1
  253. package/dist/shell/ItemCount.js +1 -1
  254. package/dist/shell/LanguageSelect.js +1 -1
  255. package/dist/shell/Markdown.js +1 -1
  256. package/dist/shell/MetricBar.js +1 -1
  257. package/dist/shell/MetricBarLegend.js +1 -1
  258. package/dist/shell/MilestoneTimeline.js +1 -1
  259. package/dist/shell/PageHeader.js +1 -1
  260. package/dist/shell/ProductionTimeline.js +1 -1
  261. package/dist/shell/ResizeHandle.js +1 -1
  262. package/dist/shell/Result.js +1 -1
  263. package/dist/shell/SearchableSelect.js +1 -1
  264. package/dist/shell/SettingReset.js +1 -1
  265. package/dist/shell/SettingRow.js +1 -1
  266. package/dist/shell/SidebarLayout.js +1 -1
  267. package/dist/shell/SidebarNav.js +1 -1
  268. package/dist/shell/SortableList.js +1 -1
  269. package/dist/shell/Statistic.js +1 -1
  270. package/dist/shell/TimeAgo.js +1 -1
  271. package/dist/shell/TimelineTrack.js +1 -1
  272. package/dist/shell/TransferProgress.js +1 -1
  273. package/dist/shell/Tree.js +1 -1
  274. package/dist/shell/discardGuard.js +1 -1
  275. package/dist/shell/language.js +1 -1
  276. package/dist/shell/strings.d.ts +3 -0
  277. package/dist/shell/strings.js +1 -1
  278. package/dist/shell/toast.js +1 -1
  279. package/dist/telemetry/index.js +1 -1
  280. package/dist/templates/AuthScreen.js +1 -1
  281. package/dist/templates/ChatTemplate.js +1 -1
  282. package/dist/templates/CheckoutTemplate.js +1 -1
  283. package/dist/templates/DashboardTemplate.js +1 -1
  284. package/dist/templates/DataTablePage.js +1 -1
  285. package/dist/templates/EmailTemplate.js +1 -1
  286. package/dist/templates/ErrorBoundary.js +1 -1
  287. package/dist/templates/ErrorPage.js +1 -1
  288. package/dist/templates/FormLayoutPage.js +1 -1
  289. package/dist/templates/GalleryTemplate.js +1 -1
  290. package/dist/ui/index.js +1 -1
  291. package/dist/version.js +1 -1
  292. package/package.json +1 -1
  293. package/dist/PdfViewer-OLQBTKOC.js +0 -1
  294. package/dist/Sidebar-7SHI7P5Z.js +0 -44
  295. package/dist/chunk-3RX5KCUH.js +0 -9
  296. package/dist/chunk-B3KQELHS.js +0 -7
  297. package/dist/chunk-B447IHIL.js +0 -4
  298. package/dist/chunk-BKZOTBDP.js +0 -23
  299. package/dist/chunk-BLXEDMZM.js +0 -8
  300. package/dist/chunk-D53FU245.js +0 -8
  301. package/dist/chunk-DEJIH3ZQ.js +0 -1
  302. package/dist/chunk-FBMYLCCE.js +0 -11
  303. package/dist/chunk-FW6KE6OU.js +0 -1
  304. package/dist/chunk-HTHD7STJ.js +0 -9
  305. package/dist/chunk-KITSIQCV.js +0 -19
  306. package/dist/chunk-OZV5P5A7.js +0 -15
  307. package/dist/chunk-QXXMRV4E.js +0 -2
  308. package/dist/chunk-R3R6ZJNW.js +0 -28
  309. package/dist/chunk-RMEYKJEH.js +0 -8
  310. package/dist/chunk-UF76AFFY.js +0 -22
  311. package/dist/chunk-UHQBHSWL.js +0 -11
  312. package/dist/chunk-V3KQIY6T.js +0 -8
  313. package/dist/chunk-WUEH6DLJ.js +0 -14
  314. package/dist/chunk-YJGA4LPG.js +0 -2
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{PieChart as default}from"../chunk-CUJA3HBZ.js";import"../chunk-465RRWBY.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
2
+ export{PieChart as default}from"../chunk-OLSA36VX.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{RADAR_SERIES_CAP,RadarChart as default}from"../chunk-OZV5P5A7.js";import"../chunk-HY6CBG4M.js";import"../chunk-465RRWBY.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
2
+ export{RADAR_SERIES_CAP,RadarChart as default}from"../chunk-3J4SFHC7.js";import"../chunk-HY6CBG4M.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{RadialBarChart as default}from"../chunk-TZBNN6HD.js";import"../chunk-465RRWBY.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
2
+ export{RadialBarChart as default}from"../chunk-23LK4PLJ.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{RangeChart as default}from"../chunk-G5U7IRH4.js";import"../chunk-VFC6QUEN.js";import"../chunk-D53FU245.js";import"../chunk-2UBR4YUF.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
1
+ export{RangeChart as default}from"../chunk-P5C7DI5A.js";import"../chunk-VFC6QUEN.js";import"../chunk-J6QC45OS.js";import"../chunk-KNZ7YTFH.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{RankedBars as default}from"../chunk-ARBS2EZ6.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-TZFACUMR.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
1
+ export{RankedBars as default}from"../chunk-NA4XPE7S.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-TZFACUMR.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SankeyChart as default}from"../chunk-HTHD7STJ.js";import"../chunk-HY6CBG4M.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-MAFUXCPZ.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
2
+ export{SankeyChart as default}from"../chunk-DQTYV6AC.js";import"../chunk-HY6CBG4M.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-MAFUXCPZ.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SCATTER_SERIES_CAP,ScatterChart as default}from"../chunk-RMEYKJEH.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
2
+ export{SCATTER_SERIES_CAP,ScatterChart as default}from"../chunk-OWAYSIQH.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{SpecChart as default}from"../chunk-2A2C2YBE.js";import"../chunk-OJI4ROSD.js";import"../chunk-NHKT5IH6.js";import"../chunk-36BRD5J3.js";import"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";import"../chunk-UF76AFFY.js";import"../chunk-PA3OU3Y7.js";import"../chunk-465RRWBY.js";import"../chunk-FEQQMRHJ.js";import"../chunk-CK2YOGUS.js";import"../chunk-VWYICGVA.js";import"../chunk-NLHGFQ54.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-D53FU245.js";import"../chunk-2UBR4YUF.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
1
+ export{SpecChart as default}from"../chunk-S5N37QIV.js";import"../chunk-OJI4ROSD.js";import"../chunk-NHKT5IH6.js";import"../chunk-36BRD5J3.js";import"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";import"../chunk-W6NGPSMM.js";import"../chunk-MOKABQCY.js";import"../chunk-CK2YOGUS.js";import"../chunk-6AUQWWUA.js";import"../chunk-VFC6QUEN.js";import"../chunk-YDFDTRZF.js";import"../chunk-465RRWBY.js";import"../chunk-ZNV75GAG.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-J6QC45OS.js";import"../chunk-KNZ7YTFH.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{StatTile as default}from"../chunk-75TPMXA7.js";import"../chunk-CKCDGSTC.js";import"../chunk-TZFACUMR.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
1
+ export{StatTile as default}from"../chunk-ELPW25CA.js";import"../chunk-CKCDGSTC.js";import"../chunk-TZFACUMR.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SunburstChart as default}from"../chunk-VVXBBU6R.js";import"../chunk-HY6CBG4M.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
2
+ export{SunburstChart as default}from"../chunk-MHCNQKEK.js";import"../chunk-HY6CBG4M.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{TimeSeriesChart as default}from"../chunk-UF76AFFY.js";import"../chunk-465RRWBY.js";import"../chunk-FEQQMRHJ.js";import"../chunk-CK2YOGUS.js";import"../chunk-NLHGFQ54.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-2UBR4YUF.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
2
+ export{TimeSeriesChart as default}from"../chunk-W6NGPSMM.js";import"../chunk-MOKABQCY.js";import"../chunk-CK2YOGUS.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-ZNV75GAG.js";import"../chunk-CNYAHYE6.js";import"../chunk-KNZ7YTFH.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{TreemapChart as default}from"../chunk-V5VAKDLS.js";import"../chunk-46BYGPGD.js";import"../chunk-HY6CBG4M.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-MAFUXCPZ.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
2
+ export{TreemapChart as default}from"../chunk-QTVE3OSD.js";import"../chunk-46BYGPGD.js";import"../chunk-HY6CBG4M.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-MAFUXCPZ.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{WaterfallChart as default}from"../chunk-YEEMRWBS.js";import"../chunk-D53FU245.js";import"../chunk-2UBR4YUF.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-DEJIH3ZQ.js";import"../chunk-C3QOHMR6.js";
1
+ export{WaterfallChart as default}from"../chunk-XHD6Q6JV.js";import"../chunk-J6QC45OS.js";import"../chunk-KNZ7YTFH.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,4 +1,4 @@
1
- import{useShellStrings as t,useShellLocale as e}from"./chunk-DEJIH3ZQ.js";import{formatPlain as a}from"./chunk-C3QOHMR6.js";import{jsxs as n,jsx as r}from"react/jsx-runtime";var o="inline-flex h-8 min-w-8 items-center justify-center rounded-md px-2 text-sm transition-colors disabled:cursor-not-allowed disabled:opacity-40";function l({page:l,pageCount:i,onPageChange:s,siblingCount:c=1,showEdges:b=!1,className:u=""}){const d=t().pagination,g=e();if(i<=1)return null;const m=function(t,e,a){const n=/* @__PURE__ */new Set([1,e]);for(let r=t-a;r<=t+a;r++)r>=1&&r<=e&&n.add(r);const r=[...n].sort((t,e)=>t-e),o=[];let l=0;for(const t of r)l&&t-l>1&&o.push("…"),o.push(t),l=t;return o}(l,i,c),p=t=>{t>=1&&t<=i&&t!==l&&s(t)};/* @__PURE__ */
1
+ import{useShellStrings as t,useShellLocale as e}from"./chunk-IUVGHHR3.js";import{formatPlain as a}from"./chunk-C3QOHMR6.js";import{jsxs as n,jsx as r}from"react/jsx-runtime";var o="inline-flex h-8 min-w-8 items-center justify-center rounded-md px-2 text-sm transition-colors disabled:cursor-not-allowed disabled:opacity-40";function l({page:l,pageCount:i,onPageChange:s,siblingCount:c=1,showEdges:b=!1,className:u=""}){const d=t().pagination,g=e();if(i<=1)return null;const m=function(t,e,a){const n=/* @__PURE__ */new Set([1,e]);for(let r=t-a;r<=t+a;r++)r>=1&&r<=e&&n.add(r);const r=[...n].sort((t,e)=>t-e),o=[];let l=0;for(const t of r)l&&t-l>1&&o.push("…"),o.push(t),l=t;return o}(l,i,c),p=t=>{t>=1&&t<=i&&t!==l&&s(t)};/* @__PURE__ */
2
2
  return n("nav",{"aria-label":d.label,className:`flex items-center gap-1 ${u}`.trim(),children:[b&&/* @__PURE__ */r("button",{type:"button","aria-label":d.first,disabled:1===l,onClick:()=>p(1),className:`${o} text-gray-600 hover:bg-gray-100`,children:"«"}),
3
3
  /* @__PURE__ */r("button",{type:"button","aria-label":d.previous,disabled:1===l,onClick:()=>p(l-1),className:`${o} text-gray-600 hover:bg-gray-100`,children:"‹"}),m.map((t,e)=>"…"===t?/* @__PURE__ */r("span",{className:"px-1 text-gray-400",children:"…"},`gap-${e}`):/* @__PURE__ */r("button",{type:"button","aria-current":t===l?"page":void 0,onClick:()=>p(t),className:`${o} ${t===l?"bg-blue-600 font-medium text-white":"text-gray-700 hover:bg-gray-100"}`,children:a(t,g)},t)),
4
4
  /* @__PURE__ */r("button",{type:"button","aria-label":d.next,disabled:l===i,onClick:()=>p(l+1),className:`${o} text-gray-600 hover:bg-gray-100`,children:"›"}),b&&/* @__PURE__ */r("button",{type:"button","aria-label":d.last,disabled:l===i,onClick:()=>p(i),className:`${o} text-gray-600 hover:bg-gray-100`,children:"»"})]})}export{l as Pagination};
@@ -1,4 +1,4 @@
1
- import{InputNumber_default as e,stepRounding as r}from"./chunk-ZDCCYRFF.js";import{IconButton_default as a}from"./chunk-SV5RRBVA.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{Tooltip as n}from"./chunk-SOZCWT6I.js";import{useShellStrings as l}from"./chunk-DEJIH3ZQ.js";import{useState as t,useRef as o}from"react";import{jsxs as s,jsx as d}from"react/jsx-runtime";var u={tl:"",tr:"rotate-90",br:"rotate-180",bl:"-rotate-90"},c=["tl","tr","bl","br"];function m({label:m,value:f,corners:p,onChange:h,radius:v=null,onRadiusChange:b,radiusLabel:k,radiusMin:g=0,radiusMax:x,radiusStep:w=1,radiusPlaceholder:y,radiusUnit:R,units:j,disabled:A=!1,disabledReason:C,id:D,className:S=""}){const I=l(),N=function(e){const r=c.map(r=>e.find(e=>e.value===r));for(const a of e){if(c.includes(a.value))continue;const e=r.findIndex(e=>void 0===e);-1===e?r.push(a):r[e]=a}return r.filter(e=>void 0!==e)}(p),[K,M]=t(0),F=o(null);/* @__PURE__ */
2
- return s("div",{id:D,role:"group","aria-label":m,className:`flex min-w-0 flex-wrap items-center gap-2 ${S}`.trim(),children:[b&&
3
- /* @__PURE__ */d("div",{className:"w-30 shrink-0",children:/* @__PURE__ */d(e,{value:v,onChange:b,min:g,max:x,step:w,...r(w),placeholder:y,prefix:/* @__PURE__ */d("span",{"data-radius-mark":"","aria-hidden":"true",children:I.corners.radiusMark}),suffix:R??I.corners.unit,units:j,steppers:"compact",disabled:A,"aria-label":k??I.corners.radius})}),
4
- /* @__PURE__ */d("div",{ref:F,"data-corners-grid":"",className:"grid shrink-0 grid-cols-2 gap-1",onKeyDown:e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;const r=Array.from(F.current?.querySelectorAll("button[data-corner]")??[]),a=r.indexOf(document.activeElement);if(-1===a)return;const i=a%2,n=Math.floor(a/2),l="ArrowRight"===e.key?2*n+1:"ArrowLeft"===e.key?2*n:"ArrowDown"===e.key?2+i:"ArrowUp"===e.key?i:null;null!==l&&(e.preventDefault(),l<r.length&&r[l].focus())},children:N.map((e,r)=>{const l=f.includes(e.value),t=A||!0===e.disabled,o=t&&(!0===e.disabled&&e.title||(A?C:void 0))||void 0,s=/* @__PURE__ */d(a,{"aria-pressed":l,"aria-label":e.label,"aria-disabled":t||void 0,disabledReason:o,"data-corner":e.value,size:"sm",tabIndex:r===K?0:-1,onFocus:()=>M(r),onClick:()=>{t||h(l?f.filter(r=>r!==e.value):[...f,e.value])},children:/* @__PURE__ */d(i,{name:"corner",strokeWidth:2,className:["h-4 w-4",u[e.value]??""].filter(Boolean).join(" ")})},e.value);return o?s:/* @__PURE__ */d(n,{content:e.title??e.label,children:s},e.value)})})]})}export{m as CornersInput};
1
+ import{InputNumber_default as e,stepRounding as r}from"./chunk-F5B5WOQ7.js";import{IconButton_default as a}from"./chunk-SV5RRBVA.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{Tooltip as n}from"./chunk-SOZCWT6I.js";import{useShellStrings as l}from"./chunk-IUVGHHR3.js";import{useState as t,useRef as o}from"react";import{jsxs as s,jsx as d}from"react/jsx-runtime";var u={tl:"",tr:"rotate-90",br:"rotate-180",bl:"-rotate-90"},c=["tl","tr","bl","br"];function m({label:m,value:f,corners:p,onChange:h,radius:v=null,onRadiusChange:b,radiusLabel:k,radiusMin:g=0,radiusMax:x,radiusStep:w=1,radiusPlaceholder:y,radiusUnit:R,units:j,disabled:A=!1,disabledReason:S,id:C,className:I=""}){const N=l(),D=function(e){const r=c.map(r=>e.find(e=>e.value===r));for(const a of e){if(c.includes(a.value))continue;const e=r.findIndex(e=>void 0===e);-1===e?r.push(a):r[e]=a}return r.filter(e=>void 0!==e)}(p),[K,M]=t(0),O=o(null);/* @__PURE__ */
2
+ return s("div",{id:C,role:"group","aria-label":m,className:`flex min-w-0 flex-wrap items-center gap-2 ${I}`.trim(),children:[b&&
3
+ /* @__PURE__ */d("div",{className:"w-30 shrink-0",children:/* @__PURE__ */d(e,{value:v,onChange:b,min:g,max:x,step:w,...r(w),placeholder:y,prefix:/* @__PURE__ */d("span",{"data-radius-mark":"","aria-hidden":"true",children:N.corners.radiusMark}),suffix:R??N.corners.unit,units:j,steppers:"compact",disabled:A,"aria-label":k??N.corners.radius})}),
4
+ /* @__PURE__ */d("div",{ref:O,"data-corners-grid":"",className:"grid shrink-0 grid-cols-2 gap-1",onKeyDown:e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;const r=Array.from(O.current?.querySelectorAll("button[data-corner]")??[]),a=r.indexOf(document.activeElement);if(-1===a)return;const i=a%2,n=Math.floor(a/2),l="ArrowRight"===e.key?2*n+1:"ArrowLeft"===e.key?2*n:"ArrowDown"===e.key?2+i:"ArrowUp"===e.key?i:null;null!==l&&(e.preventDefault(),l<r.length&&r[l].focus())},children:D.map((e,r)=>{const l=f.includes(e.value),t=A||!0===e.disabled,o=t&&(!0===e.disabled&&e.title||(A?S:void 0))||void 0,s=/* @__PURE__ */d(a,{"aria-pressed":l,"aria-label":e.label,"aria-disabled":t||void 0,disabledReason:o,"data-corner":e.value,size:"sm",tabIndex:r===K?0:-1,onFocus:()=>M(r),onClick:()=>{t||h(l?f.filter(r=>r!==e.value):[...f,e.value])},children:/* @__PURE__ */d(i,{name:"corner",strokeWidth:2,className:["h-4 w-4",u[e.value]??""].filter(Boolean).join(" ")})},e.value);return o?s:/* @__PURE__ */d(n,{content:e.title??e.label,children:s},e.value)})})]})}export{m as CornersInput};
@@ -1,12 +1,12 @@
1
- import{MOTION as e,stagger as t}from"./chunk-465RRWBY.js";import{arcPath as a}from"./chunk-VFC6QUEN.js";import{useHighlight as l}from"./chunk-CNYAHYE6.js";import{angleScale as r}from"./chunk-2JWPNR2U.js";import{ChartTooltip as n}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as o,CHART_INK as i}from"./chunk-TZFACUMR.js";import{useShellStrings as s,useShellLocale as c}from"./chunk-DEJIH3ZQ.js";import{formatPlain as m}from"./chunk-C3QOHMR6.js";import{useId as h,useState as u}from"react";import{jsx as p,jsxs as d}from"react/jsx-runtime";var f=300*Math.PI/180;function g({rows:g,variant:k="track",size:v=300,max:x,formatValue:y,animate:M=!0,className:N,emptyLabel:b,trackGap:j=6}){const C=s().charts,w=c(),E=y??(e=>m(e,w)),R=b??C.nothingToPlot,I=h(),[P,Q]=u(null),{highlighted:T}=l();if(0===g.length)/* @__PURE__ */return p("p",{className:`text-sm text-gray-500 ${N??""}`,children:R});const $=v/2,F=v/2,H=v/2-10,U=x??Math.max(...g.map(e=>e.value),1),V="track"===k?Math.max(6,(H-.16*v)/g.length):0,W=Math.max(1,Math.floor((H-.16*v)/V||1)),Y="track"===k?g.slice(0,W):g,z=Math.min(j,Math.max(1,V-2)),A=r(Y.length,.03),B=null!==P?Y[P]:void 0;/* @__PURE__ */
1
+ import{arcPath as e}from"./chunk-VFC6QUEN.js";import{MOTION as t,stagger as a}from"./chunk-465RRWBY.js";import{useHighlight as l}from"./chunk-CNYAHYE6.js";import{angleScale as r}from"./chunk-2JWPNR2U.js";import{ChartTooltip as n}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as o,CHART_INK as i}from"./chunk-TZFACUMR.js";import{useShellStrings as s,useShellLocale as c}from"./chunk-IUVGHHR3.js";import{formatPlain as m}from"./chunk-C3QOHMR6.js";import{useId as h,useState as u}from"react";import{jsx as p,jsxs as d}from"react/jsx-runtime";var f=300*Math.PI/180;function g({rows:g,variant:k="track",size:v=300,max:x,formatValue:y,animate:M=!0,className:N,emptyLabel:b,trackGap:j=6}){const C=s().charts,w=c(),R=y??(e=>m(e,w)),E=b??C.nothingToPlot,H=h(),[I,P]=u(null),{highlighted:T}=l();if(0===g.length)/* @__PURE__ */return p("p",{className:`text-sm text-gray-500 ${N??""}`,children:E});const U=v/2,V=v/2,$=v/2-10,F=x??Math.max(...g.map(e=>e.value),1),Q="track"===k?Math.max(6,($-.16*v)/g.length):0,W=Math.max(1,Math.floor(($-.16*v)/Q||1)),Y="track"===k?g.slice(0,W):g,z=Math.min(j,Math.max(1,Q-2)),A=r(Y.length,.03),B=null!==I?Y[I]:void 0;/* @__PURE__ */
2
2
  return d("div",{className:`relative ${N??""}`,children:[
3
- /* @__PURE__ */d("svg",{width:"100%",height:v,viewBox:`0 0 ${v} ${v}`,role:"img","aria-labelledby":I,onMouseLeave:()=>Q(null),children:[
4
- /* @__PURE__ */p("title",{id:I,children:"track"===k?C.radialTrack(Y.length):C.radialCycle(Y.length)}),Y.map((l,r)=>{const n=o(r,l.color,l.tone),s=Math.max(0,Math.min(1,l.value/U)),c=((e,t)=>null!==P?P!==e:null!==T&&T!==t)(r,l.key);if("track"===k){const o=H-r*V,m=o-V+z,h=-Math.PI/2;/* @__PURE__ */
5
- return d("g",{opacity:c?.4:1,onMouseEnter:()=>Q(r),className:M?e.sweep:void 0,style:M?t(r,70):void 0,children:[
6
- /* @__PURE__ */p("path",{d:a($,F,m,o,h,h+f),fill:i.grid}),
7
- /* @__PURE__ */p("path",{d:a($,F,m,o,h,h+f*s),fill:n})]},l.key)}const m=.14*v;/* @__PURE__ */
8
- return p("g",{opacity:c?.4:1,onMouseEnter:()=>Q(r),children:/* @__PURE__ */p("path",{d:a($,F,m,m+(H-m)*s,A(r),A(r)+A.step),fill:n})},l.key)})]}),B&&null!==P&&/* @__PURE__ */p("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */p(n,{title:B.label,rows:[{key:"value",label:C.value,color:o(P,B.color,B.tone),value:E(B.value)}]})}),
3
+ /* @__PURE__ */d("svg",{width:"100%",height:v,viewBox:`0 0 ${v} ${v}`,role:"img","aria-labelledby":H,onMouseLeave:()=>P(null),children:[
4
+ /* @__PURE__ */p("title",{id:H,children:"track"===k?C.radialTrack(Y.length):C.radialCycle(Y.length)}),Y.map((l,r)=>{const n=o(r,l.color,l.tone),s=Math.max(0,Math.min(1,l.value/F)),c=((e,t)=>null!==I?I!==e:null!==T&&T!==t)(r,l.key);if("track"===k){const o=$-r*Q,m=o-Q+z,h=-Math.PI/2;/* @__PURE__ */
5
+ return d("g",{opacity:c?.4:1,onMouseEnter:()=>P(r),className:M?t.sweep:void 0,style:M?a(r,70):void 0,children:[
6
+ /* @__PURE__ */p("path",{d:e(U,V,m,o,h,h+f),fill:i.grid}),
7
+ /* @__PURE__ */p("path",{d:e(U,V,m,o,h,h+f*s),fill:n})]},l.key)}const m=.14*v;/* @__PURE__ */
8
+ return p("g",{opacity:c?.4:1,onMouseEnter:()=>P(r),children:/* @__PURE__ */p("path",{d:e(U,V,m,m+($-m)*s,A(r),A(r)+A.step),fill:n})},l.key)})]}),B&&null!==I&&/* @__PURE__ */p("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */p(n,{title:B.label,rows:[{key:"value",label:C.value,color:o(I,B.color,B.tone),value:R(B.value)}]})}),
9
9
  /* @__PURE__ */p("ul",{className:"m-0 mt-3 grid gap-1 p-0",style:{gridTemplateColumns:"repeat(auto-fit,minmax(150px,1fr))"},children:g.map((e,t)=>/* @__PURE__ */d("li",{className:"flex list-none items-center gap-2 text-xs text-gray-600",children:[
10
10
  /* @__PURE__ */p("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{backgroundColor:o(t,e.color,e.tone)}}),
11
11
  /* @__PURE__ */p("span",{className:"flex-1 truncate",children:e.label}),
12
- /* @__PURE__ */p("span",{className:"tabular-nums text-gray-800",children:E(e.value)})]},e.key))})]})}export{g as RadialBarChart};
12
+ /* @__PURE__ */p("span",{className:"tabular-nums text-gray-800",children:R(e.value)})]},e.key))})]})}export{g as RadialBarChart};
@@ -1,4 +1,4 @@
1
- import{Card as e}from"./chunk-CVXJKHPD.js";import{FormField as t}from"./chunk-6KBDNYRW.js";import{Checkbox_default as r}from"./chunk-CGZBDI6C.js";import{Input_default as l}from"./chunk-PT4GMPUB.js";import{Button_default as a}from"./chunk-EVYD6UFQ.js";import{useState as i}from"react";import{jsx as c,jsxs as n,Fragment as s}from"react/jsx-runtime";var o={login:{title:"Welcome back",subtitle:"Sign in to your account",cta:"Sign in"},register:{title:"Create your account",subtitle:"Start your 14-day free trial",cta:"Create account"},forgot:{title:"Reset password",subtitle:"We'll email you a reset link",cta:"Send reset link"}};function m({mode:m="login"}){const[u,d]=i(!0),h=o[m];/* @__PURE__ */
1
+ import{Card as e}from"./chunk-4S3E3VJH.js";import{FormField as t}from"./chunk-6KBDNYRW.js";import{Checkbox_default as r}from"./chunk-CGZBDI6C.js";import{Input_default as l}from"./chunk-PT4GMPUB.js";import{Button_default as a}from"./chunk-EVYD6UFQ.js";import{useState as i}from"react";import{jsx as c,jsxs as n,Fragment as s}from"react/jsx-runtime";var o={login:{title:"Welcome back",subtitle:"Sign in to your account",cta:"Sign in"},register:{title:"Create your account",subtitle:"Start your 14-day free trial",cta:"Create account"},forgot:{title:"Reset password",subtitle:"We'll email you a reset link",cta:"Send reset link"}};function m({mode:m="login"}){const[u,d]=i(!0),h=o[m];/* @__PURE__ */
2
2
  return c("div",{className:"flex h-full items-center justify-center overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */n("div",{className:"w-full max-w-sm",children:[
3
3
  /* @__PURE__ */n("div",{className:"mb-6 text-center",children:[
4
4
  /* @__PURE__ */c("div",{className:"mx-auto mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-blue-600 text-sm font-bold text-white",children:"A"}),
@@ -1,18 +1,18 @@
1
- import{MOVE_KEYS as e,MoveGrip as t,MoveHint as r,moveFromKey as a}from"./chunk-FXG7TOZN.js";import{ItemCount as n}from"./chunk-PR6FNBKR.js";import{GROUP_COLORS as o}from"./chunk-JMGDGNM7.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{OneLineLabel as s}from"./chunk-G67CJAQ2.js";import{Tooltip as l}from"./chunk-SOZCWT6I.js";import{useBrowserLayoutEffect as c}from"./chunk-D65T4H6J.js";import{useShellStrings as d}from"./chunk-DEJIH3ZQ.js";import{useRef as u,useCallback as p,useId as m,isValidElement as f}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";var b='[role="treeitem"]';function v(e){return[...e.querySelectorAll(b)].filter(t=>{for(let r=t.parentElement?.closest('[role="group"]');r&&e.contains(r);r=r.parentElement?.closest('[role="group"]')??null)if(r.hasAttribute("hidden"))return!1;return!0})}function y({"aria-label":e,"aria-labelledby":t,children:r,className:a="",rootProps:n}){const o=u(null);c(()=>{const e=o.current;if(!e)return;const t=[...e.querySelectorAll(b)];if(0===t.length)return;const r=t.find(e=>e===document.activeElement)??t.find(e=>"true"===e.getAttribute("aria-selected"))??v(e)[0]??t[0];for(const e of t)e.tabIndex=e===r?0:-1});const i=p(e=>{n?.onKeyDown?.(e);const t=o.current,r=e.target.closest?.(b);if(!t||!r||e.target!==r||e.defaultPrevented)return;if(e.altKey||e.ctrlKey||e.metaKey)return;const a=v(t),i=a.indexOf(r),s=Number(r.getAttribute("aria-level")??"1"),l=r=>{e.preventDefault(),function(e,t){if(t){for(const r of e.querySelectorAll(b))r.tabIndex=r===t?0:-1;t.focus()}}(t,r)};switch(e.key){case"ArrowDown":l(a[i+1]);break;case"ArrowUp":l(a[i-1]);break;case"Home":l(a[0]);break;case"End":l(a[a.length-1]);break;case"ArrowRight":if("true"===r.getAttribute("aria-expanded")){const t=a[i+1];t&&Number(t.getAttribute("aria-level")??"1")>s?l(t):e.preventDefault()}break;case"ArrowLeft":if("true"!==r.getAttribute("aria-expanded"))for(let e=i-1;e>=0;e--)if(Number(a[e].getAttribute("aria-level")??"1")<s){l(a[e]);break}}},[n]);/* @__PURE__ */
1
+ import{MOVE_KEYS as e,MoveGrip as t,MoveHint as r,moveFromKey as a}from"./chunk-WF4A2HSB.js";import{ItemCount as n}from"./chunk-FTKLODQK.js";import{GROUP_COLORS as o}from"./chunk-JMGDGNM7.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{OneLineLabel as s}from"./chunk-G67CJAQ2.js";import{Tooltip as l}from"./chunk-SOZCWT6I.js";import{useBrowserLayoutEffect as c}from"./chunk-D65T4H6J.js";import{useShellStrings as d}from"./chunk-IUVGHHR3.js";import{useRef as u,useCallback as p,useId as m,isValidElement as f}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";var b='[role="treeitem"]';function v(e){return[...e.querySelectorAll(b)].filter(t=>{for(let r=t.parentElement?.closest('[role="group"]');r&&e.contains(r);r=r.parentElement?.closest('[role="group"]')??null)if(r.hasAttribute("hidden"))return!1;return!0})}function y({"aria-label":e,"aria-labelledby":t,children:r,className:a="",rootProps:n}){const o=u(null);c(()=>{const e=o.current;if(!e)return;const t=[...e.querySelectorAll(b)];if(0===t.length)return;const r=t.find(e=>e===document.activeElement)??t.find(e=>"true"===e.getAttribute("aria-selected"))??v(e)[0]??t[0];for(const e of t)e.tabIndex=e===r?0:-1});const i=p(e=>{n?.onKeyDown?.(e);const t=o.current,r=e.target.closest?.(b);if(!t||!r||e.target!==r||e.defaultPrevented)return;if(e.altKey||e.ctrlKey||e.metaKey)return;const a=v(t),i=a.indexOf(r),s=Number(r.getAttribute("aria-level")??"1"),l=r=>{e.preventDefault(),function(e,t){if(t){for(const r of e.querySelectorAll(b))r.tabIndex=r===t?0:-1;t.focus()}}(t,r)};switch(e.key){case"ArrowDown":l(a[i+1]);break;case"ArrowUp":l(a[i-1]);break;case"Home":l(a[0]);break;case"End":l(a[a.length-1]);break;case"ArrowRight":if("true"===r.getAttribute("aria-expanded")){const t=a[i+1];t&&Number(t.getAttribute("aria-level")??"1")>s?l(t):e.preventDefault()}break;case"ArrowLeft":if("true"!==r.getAttribute("aria-expanded"))for(let e=i-1;e>=0;e--)if(Number(a[e].getAttribute("aria-level")??"1")<s){l(a[e]);break}}},[n]);/* @__PURE__ */
2
2
  return h("div",{...n,ref:o,role:"tree","aria-label":t?void 0:e,"aria-labelledby":t,onKeyDown:i,className:`flex flex-col gap-1 ${a}`.trim(),children:r})}function x({children:e,hidden:t,className:r=""}){/* @__PURE__ */
3
3
  return h("div",{role:"group",hidden:t,className:`ml-4 flex flex-col gap-1 border-l border-gray-200 pl-2 ${r}`.trim(),children:e})}var k=["inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-full px-2","text-2xs font-medium normal-case tabular-nums tracking-normal"].join(" "),w=`${k} bg-[color:color-mix(in_srgb,var(--ink-faint)_12%,transparent)] text-gray-600`;function N(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&!f(e)&&"label"in e}function A(e){if(null==e||!1===e||"number"==typeof e)return null;const t=Array.isArray(e)&&e.length>0&&e.every(N)?e:N(e)?[e]:null;return t?t.map((e,t)=>/* @__PURE__ */h("span",{"data-tree-count":"","data-tone":e.tone,className:e.tone?`${k} ${o[e.tone]}`:w,children:e.label},t)):/* @__PURE__ */h("span",{"data-tree-count":"",className:w,children:e})}function j({children:e,count:t,countLabel:r,expanded:a,onToggle:o}){const i=void 0!==a,l=
4
4
  /* @__PURE__ */h("span",{"data-tree-label-text":"",className:"flex min-w-0 flex-1 text-left",children:/* @__PURE__ */h(s,{children:e})}),c="number"==typeof t?/* @__PURE__ */h(n,{count:t,label:r,showZero:!0}):null!=t&&!1!==t&&/* @__PURE__ */h("span",{"data-tree-count":"",className:w,children:t}),d="text-xs font-semibold uppercase tracking-wide text-ink-faint";return i?/* @__PURE__ */h("div",{role:"presentation",className:"pb-1 pt-3",children:/* @__PURE__ */g("button",{type:"button","aria-expanded":a,onClick:o,className:["flex w-full items-center gap-2 rounded-md px-2 hover:text-ink-strongest","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",d].join(" "),children:[
5
5
  /* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-caret":"",className:"flex h-4 w-4 shrink-0 items-center justify-center",children:D(!!a)}),l,c]})}):/* @__PURE__ */g("div",{role:"presentation",className:`flex items-center gap-2 px-2 pb-1 pt-3 ${d}`,children:[
6
- /* @__PURE__ */h("span",{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),l,c]})}var D=e=>/* @__PURE__ */h(i,{name:"chevron-right","aria-hidden":"true",strokeWidth:2.6,className:"h-3 w-3 transition-transform "+(e?"rotate-90":"")}),$={backgroundColor:"inherit",maskImage:"linear-gradient(to right, transparent, black 12px)",WebkitMaskImage:"linear-gradient(to right, transparent, black 12px)"};function P({label:o,level:i=1,icon:l,preview:c,selected:d=!1,tone:u,expanded:p,onToggle:f,onSelect:b,muted:v=!1,badge:y,count:x,countLabel:k,actions:w,actionsPinned:N=!1,actionsOverlay:j=!0,rename:P,drop:C,dragging:K=!1,draggable:I=!1,dragHint:S,onMove:E,rowProps:H,className:T=""}){const O=void 0!==p,R=m(),Z=x??("number"==typeof y?y:void 0),G=[H?.["aria-describedby"],E?R:void 0].filter(Boolean).join(" ")||void 0,J="shared"===u?"text-[color:var(--status-success-soft-ink)]":null,L=d?J?`bg-[var(--status-success-soft)] ${J}`:"bg-accent-tint text-blue-700":"into"===C?`bg-accent-tint ${J??"text-ink-strongest"}`:`${J??"text-ink"} hover:bg-gray-100`;/* @__PURE__ */
7
- return g("div",{...H,role:"treeitem","aria-level":i,"aria-selected":d,"aria-expanded":O?p:void 0,"data-tone":u,tabIndex:d?0:-1,"aria-keyshortcuts":H?.["aria-keyshortcuts"]??(E?e:void 0),"aria-describedby":G,"data-drop":C,"data-draggable":I||void 0,onKeyDown:e=>{if(H?.onKeyDown?.(e),e.target!==e.currentTarget||e.defaultPrevented)return;const t=a(e);t&&E?(e.preventDefault(),E(t)):"Enter"!==e.key&&" "!==e.key||!b?("ArrowRight"===e.key&&O&&!p&&f||"ArrowLeft"===e.key&&O&&p&&f)&&(e.preventDefault(),f()):(e.preventDefault(),b())},onClick:e=>{H?.onClick?.(e),e.defaultPrevented||b?.()},className:["group/treerow relative flex h-8 shrink-0 select-none items-center gap-2 rounded-md px-2 text-sm",I?"cursor-grab active:cursor-grabbing":"cursor-pointer","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",L,"into"===C?"ring-2 ring-inset ring-[color:var(--rosh-drop-ring)]":"",K?"opacity-40":"",T].filter(Boolean).join(" "),children:["before"===C&&/* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-drop-line":"",className:"pointer-events-none absolute inset-x-2 -top-0.5 h-0.5 rounded-full bg-blue-500"}),"after"===C&&/* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-drop-line":"",className:"pointer-events-none absolute inset-x-2 -bottom-0.5 h-0.5 rounded-full bg-blue-500"}),I&&
8
- /* @__PURE__ */h(t,{marker:"tree",hint:S,dragging:K,revealClassName:"group-hover/treerow:opacity-100"}),
9
- /* @__PURE__ */h("span",O?{"aria-hidden":"true","data-tree-caret":"",onClick:e=>{e.stopPropagation(),f?.()},className:"flex h-4 w-4 shrink-0 items-center justify-center rounded text-gray-500 hover:bg-gray-200 hover:text-gray-900",children:D(!!p)}:{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),null!=l&&/* @__PURE__ */h("span",{"aria-hidden":"true",className:"flex h-4 w-4 shrink-0 items-center justify-center "+(v?"text-ink-faintest":""),children:l}),
6
+ /* @__PURE__ */h("span",{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),l,c]})}var D=e=>/* @__PURE__ */h(i,{name:"chevron-right","aria-hidden":"true",strokeWidth:2.6,className:"h-3 w-3 transition-transform "+(e?"rotate-90":"")}),$={backgroundColor:"inherit",maskImage:"linear-gradient(to right, transparent, black 12px)",WebkitMaskImage:"linear-gradient(to right, transparent, black 12px)"};function P({label:o,level:i=1,icon:l,preview:c,selected:d=!1,tone:u,expanded:p,onToggle:f,onSelect:b,muted:v=!1,badge:y,count:x,countLabel:k,actions:w,actionsPinned:N=!1,actionsOverlay:j=!0,rename:P,drop:C,dragging:K=!1,draggable:I=!1,dragHint:H,onMove:S,rowProps:T,className:E=""}){const L=void 0!==p,O=m(),W=x??("number"==typeof y?y:void 0),G=[T?.["aria-describedby"],S?O:void 0].filter(Boolean).join(" ")||void 0,M="shared"===u?"text-[color:var(--status-success-soft-ink)]":null,R=d?M?`bg-[var(--status-success-soft)] ${M}`:"bg-accent-tint text-blue-700":"into"===C?`bg-accent-tint ${M??"text-ink-strongest"}`:`${M??"text-ink"} hover:bg-gray-100`;/* @__PURE__ */
7
+ return g("div",{...T,role:"treeitem","aria-level":i,"aria-selected":d,"aria-expanded":L?p:void 0,"data-tone":u,tabIndex:d?0:-1,"aria-keyshortcuts":T?.["aria-keyshortcuts"]??(S?e:void 0),"aria-describedby":G,"data-drop":C,"data-draggable":I||void 0,onKeyDown:e=>{if(T?.onKeyDown?.(e),e.target!==e.currentTarget||e.defaultPrevented)return;const t=a(e);t&&S?(e.preventDefault(),S(t)):"Enter"!==e.key&&" "!==e.key||!b?("ArrowRight"===e.key&&L&&!p&&f||"ArrowLeft"===e.key&&L&&p&&f)&&(e.preventDefault(),f()):(e.preventDefault(),b())},onClick:e=>{T?.onClick?.(e),e.defaultPrevented||b?.()},className:["group/treerow relative flex h-8 shrink-0 select-none items-center gap-2 rounded-md px-2 text-sm",I?"cursor-grab active:cursor-grabbing":"cursor-pointer","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",R,"into"===C?"ring-2 ring-inset ring-[color:var(--rosh-drop-ring)]":"",K?"opacity-40":"",E].filter(Boolean).join(" "),children:["before"===C&&/* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-drop-line":"",className:"pointer-events-none absolute inset-x-2 -top-0.5 h-0.5 rounded-full bg-blue-500"}),"after"===C&&/* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-drop-line":"",className:"pointer-events-none absolute inset-x-2 -bottom-0.5 h-0.5 rounded-full bg-blue-500"}),I&&
8
+ /* @__PURE__ */h(t,{marker:"tree",hint:H,dragging:K,revealClassName:"group-hover/treerow:opacity-100"}),
9
+ /* @__PURE__ */h("span",L?{"aria-hidden":"true","data-tree-caret":"",onClick:e=>{e.stopPropagation(),f?.()},className:"flex h-4 w-4 shrink-0 items-center justify-center rounded text-gray-500 hover:bg-gray-200 hover:text-gray-900",children:D(!!p)}:{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),null!=l&&/* @__PURE__ */h("span",{"aria-hidden":"true",className:"flex h-4 w-4 shrink-0 items-center justify-center "+(v?"text-ink-faintest":""),children:l}),
10
10
  /* @__PURE__ */g("span",{className:"relative flex min-w-0 flex-1 items-center gap-2",children:[P??
11
- /* @__PURE__ */h("span",{"data-tree-name":"",className:`flex min-w-0 ${d?"font-semibold":"font-medium"} ${v?"text-ink-faintest line-through":""}`,children:/* @__PURE__ */g(s,{children:[o,null!=c&&/* @__PURE__ */h("span",{className:"ml-2 font-normal text-ink-faint",children:c})]})}),A(y),null!=Z&&/* @__PURE__ */h(n,{count:Z,label:k,active:d,showZero:!0,className:"ml-auto"}),null!=w&&!j&&/* @__PURE__ */h("span",{"data-tree-actions":"",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),className:`${null!=Z?"":"ml-auto "}flex shrink-0 items-center gap-0.5 transition-opacity ${N||v?"opacity-100":"opacity-0 group-hover/treerow:opacity-100 group-focus-within/treerow:opacity-100"}`,children:w})]}),null!=w&&j&&
11
+ /* @__PURE__ */h("span",{"data-tree-name":"",className:`flex min-w-0 ${d?"font-semibold":"font-medium"} ${v?"text-ink-faintest line-through":""}`,children:/* @__PURE__ */g(s,{children:[o,null!=c&&/* @__PURE__ */h("span",{className:"ml-2 font-normal text-ink-faint",children:c})]})}),A(y),null!=W&&/* @__PURE__ */h(n,{count:W,label:k,active:d,showZero:!0,className:"ml-auto"}),null!=w&&!j&&/* @__PURE__ */h("span",{"data-tree-actions":"",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),className:`${null!=W?"":"ml-auto "}flex shrink-0 items-center gap-0.5 transition-opacity ${N||v?"opacity-100":"opacity-0 group-hover/treerow:opacity-100 group-focus-within/treerow:opacity-100"}`,children:w})]}),null!=w&&j&&
12
12
  /* @__PURE__ */g("span",{"data-tree-actions":"","data-tree-actions-overlay":"",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),style:$,className:"absolute inset-y-0 right-0 grid rounded-r-md transition-opacity "+(N||v||d?"opacity-100":"pointer-events-none opacity-0 group-hover/treerow:pointer-events-auto group-hover/treerow:opacity-100 group-focus-within/treerow:pointer-events-auto group-focus-within/treerow:opacity-100"),children:[
13
13
  /* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-actions-scrim":"",className:"col-start-1 row-start-1",style:{background:"var(--rosh-tree-ground, var(--surface))"}}),
14
14
  /* @__PURE__ */h("span",{"aria-hidden":"true",className:"col-start-1 row-start-1",style:{backgroundColor:"inherit"}}),
15
- /* @__PURE__ */h("span",{className:"col-start-1 row-start-1 flex items-center gap-0.5 pl-4 pr-2",children:w})]}),E&&/* @__PURE__ */h(r,{id:R})]})}function C({onAdd:e,label:t,drop:r=!1,slotProps:a}){const n=d().tree,o=r?n.dropHere:t??n.empty,i="flex min-h-8 w-full items-center gap-2 rounded-md border border-dashed px-3 text-sm "+(r?"border-blue-500 bg-blue-50 text-blue-700":"border-gray-300 text-gray-500");/* @__PURE__ */
15
+ /* @__PURE__ */h("span",{className:"col-start-1 row-start-1 flex items-center gap-0.5 pl-4 pr-2",children:w})]}),S&&/* @__PURE__ */h(r,{id:O})]})}function C({onAdd:e,label:t,drop:r=!1,slotProps:a}){const n=d().tree,o=r?n.dropHere:t??n.empty,i="flex min-h-8 w-full items-center gap-2 rounded-md border border-dashed px-3 text-sm "+(r?"border-blue-500 bg-blue-50 text-blue-700":"border-gray-300 text-gray-500");/* @__PURE__ */
16
16
  return h("div",{...a,role:"presentation","data-drop":r||void 0,children:e?/* @__PURE__ */g("button",{type:"button",onClick:e,className:`${i} text-left hover:bg-gray-100 hover:text-gray-900 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]`,children:[
17
17
  /* @__PURE__ */h("span",{"aria-hidden":"true",children:"+"}),o]}):/* @__PURE__ */h("span",{className:i,children:o})})}function K({onInsert:e,label:t,drop:r=!1,seamProps:a}){const n=d().tree,o=t??n.insertHere,s=r?"opacity-100":e?"opacity-0 group-hover/seam:opacity-100 group-focus-within/seam:opacity-100":"opacity-0";/* @__PURE__ */
18
18
  return g("div",{...a,role:"presentation","data-tree-seam":"","data-drop":r||void 0,className:`group/seam relative z-10 -my-1 h-1 shrink-0 ${a?.className??""}`.trim(),children:[
@@ -1,4 +1,4 @@
1
- import{ErrorPage as r}from"./chunk-AEMTJGD4.js";import{reportBoundaryError as e}from"./chunk-KNUR2UEG.js";import{Button_default as t}from"./chunk-EVYD6UFQ.js";import{useShellStrings as s}from"./chunk-DEJIH3ZQ.js";import{Component as o}from"react";import{jsxs as i,jsx as a,Fragment as n}from"react/jsx-runtime";function c({pick:r}){/* @__PURE__ */
1
+ import{ErrorPage as r}from"./chunk-QNWC3RWK.js";import{reportBoundaryError as e}from"./chunk-KNUR2UEG.js";import{Button_default as t}from"./chunk-EVYD6UFQ.js";import{useShellStrings as s}from"./chunk-IUVGHHR3.js";import{Component as o}from"react";import{jsxs as i,jsx as a,Fragment as n}from"react/jsx-runtime";function c({pick:r}){/* @__PURE__ */
2
2
  return a(n,{children:r(s().errors)})}var l=class extends o{state={error:null};static getDerivedStateFromError(r){return{error:r}}componentDidCatch(r,t){console.error("ErrorBoundary caught an error:",r,t),e(r),this.props.onError?.(r,t)}componentDidUpdate(r){if(!this.state.error)return;const e=r.resetKeys??[],t=this.props.resetKeys??[];(e.length!==t.length||e.some((r,e)=>!Object.is(r,t[e])))&&this.reset()}reset=()=>this.setState({error:null});render(){const{error:e}=this.state;return e?this.props.fallback?this.props.fallback(e,this.reset):
3
3
  /* @__PURE__ */i("div",{className:"flex h-full flex-col",children:[
4
4
  /* @__PURE__ */a("div",{role:"alert",className:"min-h-0 flex-1",children:/* @__PURE__ */a(r,{code:500,actions:/* @__PURE__ */i(n,{children:[
@@ -0,0 +1,15 @@
1
+ import{AccessibleTable as e}from"./chunk-HY6CBG4M.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{angleScale as o}from"./chunk-2JWPNR2U.js";import{ChartTooltip as n}from"./chunk-WDQI3FV6.js";import{CHART_INK as i,resolveSeriesColorWithin as s}from"./chunk-TZFACUMR.js";import{useShellStrings as m,useShellLocale as c}from"./chunk-IUVGHHR3.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:C}){const W=m().charts,F=c(),R=N??(e=>h(e,F)),w=C??W.nothingToCompare,H=p(),[A,L]=u(null),{highlighted:U}=a(),V=x;if(k.length<3||0===V.length)/* @__PURE__ */
2
+ return d("p",{className:`text-sm text-gray-500 ${$??""}`,children:w});const Y=y/2,z=y/2,B=y/2-46,E=o(k.length),Q=k.map((e,t)=>null!=e.max&&Number.isFinite(e.max)&&e.max>0?e.max:Math.max(1,...V.map(e=>e.values[t]??0).filter(Number.isFinite))),T=(e,t)=>{const r=Math.max(0,Math.min(1,t/Q[e])),l=E.center(e)-E.step/2;return[Y+B*r*Math.cos(l),z+B*r*Math.sin(l)]},G=(e,t)=>null!==A?A!==e:null!==U&&U!==t,I=null!==A?V[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":H,onMouseLeave:()=>L(null),children:[
5
+ /* @__PURE__ */d("title",{id:H,children:W.acrossMeasures(V.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:Y,cy:z,r:l,fill:"none",stroke:i.grid,strokeWidth:1},r):/* @__PURE__ */d("path",{d:g(t(Y,z,l,k.length)),fill:"none",stroke:i.grid,strokeWidth:1},r)}),k.map((e,t)=>{const[r,l]=T(t,Q[t]);/* @__PURE__ */
6
+ return f("g",{children:[
7
+ /* @__PURE__ */d("line",{x1:Y,y1:z,x2:r,y2:l,stroke:i.grid,strokeWidth:1}),
8
+ /* @__PURE__ */d("text",{x:Y+(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:H,reveal:!!j&&"center-out"}),V.map((e,t)=>{const r=s(t,3,e.color,e.tone),a=k.map((t,r)=>T(r,e.values[r]??0));/* @__PURE__ */
10
+ return f("g",{opacity:G(t,e.key)?.3:1,onMouseEnter:()=>L(t),mask:j?`url(#${l(H)})`: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)})]}),I&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:I.label,rows:k.map((e,t)=>({key:e.key,label:e.label,color:s(A,3,I.color,I.tone),value:R(I.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:V.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:W.acrossMeasures(V.map(e=>e.label),k.length),head:[W.tableSeries,...k.map(e=>e.label)],rows:V.map(e=>[e.label,...k.map((t,r)=>R(e.values[r]??0))])})]})}export{k as RADAR_SERIES_CAP,x as RadarChart};
@@ -1,16 +1,16 @@
1
- import{useClickOutside as e}from"./chunk-SI26KESU.js";import{useColumnConfig as t}from"./chunk-UKBXQXDZ.js";import{useShellAuth as r}from"./chunk-2QY5BJLA.js";import{useIsMobile as o}from"./chunk-UGTRSRIW.js";import{Icon as l}from"./chunk-ISVODSRP.js";import{TH_ONE_LINE as n}from"./chunk-G67CJAQ2.js";import{shellHttp as a}from"./chunk-STKJA4PV.js";import{glassStyle as s}from"./chunk-5FYDNH4Y.js";import{useShellStrings as i}from"./chunk-DEJIH3ZQ.js";import{useState as c,useMemo as d,useRef as m,useCallback as h}from"react";import{jsxs as u,jsx as p}from"react/jsx-runtime";function f({tableId:f,columns:g,sort:x,onSort:y,footer:b,afterBody:v,saveDefaultPerms:k=["change_numberingconfig"],children:N}){const w=o(),[D,j]=c(!1),S=d(()=>w&&!D?g.filter(e=>"_select"!==e.key):g,[g,w,D]),{orderedColumns:C,allColumns:_,onResizeStart:z,onDragStart:I,onDragOver:$,onDrop:P,onDragEnd:R,toggleColumn:A,resetColumns:E,draggedIdx:J,dropGap:L}=t(f,S),{hasAnyPerm:Q}=r(),T=i().columns,[B,G]=c(!1),[K,O]=c(!1),[U,W]=c(!1),Y=m(null),F=k.length>0&&Q(k);e(Y,h(()=>{B&&G(!1)},[B]));const H=C.reduce((e,t)=>e+t.width,0),V=C.map(e=>`${e.width}px`),X={tableLayout:"fixed",width:H,minWidth:"100%"},Z=m(null),M=h(e=>{const t=Z.current;t&&(t.scrollLeft=e.currentTarget.scrollLeft)},[]),q=d(()=>g.some(e=>"_select"===e.key),[g]);/* @__PURE__ */
1
+ import{useClickOutside as e}from"./chunk-SI26KESU.js";import{useColumnConfig as t}from"./chunk-UKBXQXDZ.js";import{useShellAuth as r}from"./chunk-2QY5BJLA.js";import{useIsMobile as o}from"./chunk-UGTRSRIW.js";import{Icon as l}from"./chunk-ISVODSRP.js";import{TH_ONE_LINE as n}from"./chunk-G67CJAQ2.js";import{shellHttp as a}from"./chunk-STKJA4PV.js";import{glassStyle as s}from"./chunk-5FYDNH4Y.js";import{useShellStrings as i}from"./chunk-IUVGHHR3.js";import{useState as c,useMemo as d,useRef as m,useCallback as h}from"react";import{jsxs as u,jsx as p}from"react/jsx-runtime";function f({tableId:f,columns:g,sort:x,onSort:y,footer:b,afterBody:v,saveDefaultPerms:k=["change_numberingconfig"],children:N}){const w=o(),[D,j]=c(!1),S=d(()=>w&&!D?g.filter(e=>"_select"!==e.key):g,[g,w,D]),{orderedColumns:C,allColumns:_,onResizeStart:z,onDragStart:I,onDragOver:R,onDrop:$,onDragEnd:P,toggleColumn:A,resetColumns:G,draggedIdx:L,dropGap:T}=t(f,S),{hasAnyPerm:U}=r(),B=i().columns,[E,H]=c(!1),[J,K]=c(!1),[O,Q]=c(!1),V=m(null),W=k.length>0&&U(k);e(V,h(()=>{E&&H(!1)},[E]));const Y=C.reduce((e,t)=>e+t.width,0),F=C.map(e=>`${e.width}px`),X={tableLayout:"fixed",width:Y,minWidth:"100%"},M=m(null),Z=h(e=>{const t=M.current;t&&(t.scrollLeft=e.currentTarget.scrollLeft)},[]),q=d(()=>g.some(e=>"_select"===e.key),[g]);/* @__PURE__ */
2
2
  return u("div",{className:"flex flex-col flex-1 min-h-0 "+(w?"-mx-4":""),children:[
3
- /* @__PURE__ */p("div",{ref:Z,className:"shrink-0 overflow-x-hidden",children:/* @__PURE__ */u("table",{className:"divide-y divide-gray-200",style:X,children:[
4
- /* @__PURE__ */p("colgroup",{children:C.map((e,t)=>/* @__PURE__ */p("col",{style:{width:V[t]}},e.key))}),
3
+ /* @__PURE__ */p("div",{ref:M,className:"shrink-0 overflow-x-hidden",children:/* @__PURE__ */u("table",{className:"divide-y divide-gray-200",style:X,children:[
4
+ /* @__PURE__ */p("colgroup",{children:C.map((e,t)=>/* @__PURE__ */p("col",{style:{width:F[t]}},e.key))}),
5
5
  /* @__PURE__ */p("thead",{className:"bg-gray-50",children:/* @__PURE__ */p("tr",{children:C.map((e,t)=>{const r=g.find(t=>t.key===e.key),o=r?.sortField??("_select"!==e.key?e.key:void 0),l=x&&o&&x.field===o,a="_select"===e.key;/* @__PURE__ */
6
- return u("th",{className:`${n} px-4 py-3 text-left text-xs font-medium text-ink-faint uppercase select-none relative ${J===t?"bg-accent-tint":""}`,draggable:!a,onDragStart:a?void 0:()=>I(t),onDragOver:a?void 0:e=>$(t,e),onDrop:a?void 0:e=>P(t,e),onDragEnd:a?void 0:R,style:a?void 0:{cursor:"grab"},children:[
7
- /* @__PURE__ */u("span",{className:`${a?"":"truncate pr-3"} block ${o&&y?"cursor-pointer hover:text-gray-700":""}`,onClick:o&&y?e=>{e.stopPropagation(),y(o)}:void 0,children:[e.headerNode??e.label,l&&/* @__PURE__ */p("span",{className:"ml-1",children:"asc"===x.direction?"▲":"▼"})]}),!a&&/* @__PURE__ */p("div",{className:"absolute right-0 top-0 bottom-0 w-4 cursor-col-resize flex items-center justify-center z-10",onMouseDown:e=>z(t,e),style:{marginRight:-8},children:/* @__PURE__ */p("div",{className:"w-0.5 h-full bg-gray-200 hover:bg-blue-500 transition-colors"})}),L===t&&/* @__PURE__ */p("div",{className:"absolute left-0 top-0 bottom-0 w-0.5 bg-blue-500 z-20 pointer-events-none"}),t===C.length-1&&L===C.length&&/* @__PURE__ */p("div",{className:"absolute right-0 top-0 bottom-0 w-0.5 bg-blue-500 z-20 pointer-events-none"})]},e.key)})})})]})}),
8
- /* @__PURE__ */u("div",{className:"flex-1 overflow-y-auto overflow-x-auto min-h-0",onScroll:M,children:[
6
+ return u("th",{className:`${n} px-4 py-3 text-left text-xs font-medium text-ink-faint uppercase select-none relative ${L===t?"bg-accent-tint":""}`,draggable:!a,onDragStart:a?void 0:()=>I(t),onDragOver:a?void 0:e=>R(t,e),onDrop:a?void 0:e=>$(t,e),onDragEnd:a?void 0:P,style:a?void 0:{cursor:"grab"},children:[
7
+ /* @__PURE__ */u("span",{className:`${a?"":"truncate pr-3"} block ${o&&y?"cursor-pointer hover:text-gray-700":""}`,onClick:o&&y?e=>{e.stopPropagation(),y(o)}:void 0,children:[e.headerNode??e.label,l&&/* @__PURE__ */p("span",{className:"ml-1",children:"asc"===x.direction?"▲":"▼"})]}),!a&&/* @__PURE__ */p("div",{className:"absolute right-0 top-0 bottom-0 w-4 cursor-col-resize flex items-center justify-center z-10",onMouseDown:e=>z(t,e),style:{marginRight:-8},children:/* @__PURE__ */p("div",{className:"w-0.5 h-full bg-gray-200 hover:bg-blue-500 transition-colors"})}),T===t&&/* @__PURE__ */p("div",{className:"absolute left-0 top-0 bottom-0 w-0.5 bg-blue-500 z-20 pointer-events-none"}),t===C.length-1&&T===C.length&&/* @__PURE__ */p("div",{className:"absolute right-0 top-0 bottom-0 w-0.5 bg-blue-500 z-20 pointer-events-none"})]},e.key)})})})]})}),
8
+ /* @__PURE__ */u("div",{className:"flex-1 overflow-y-auto overflow-x-auto min-h-0",onScroll:Z,children:[
9
9
  /* @__PURE__ */u("table",{className:"divide-y divide-gray-200",style:X,children:[
10
- /* @__PURE__ */p("colgroup",{children:C.map((e,t)=>/* @__PURE__ */p("col",{style:{width:V[t]}},e.key))}),N(C)]}),v]}),void 0!==b&&/* @__PURE__ */u("div",{className:"border-t border-gray-200 px-4 py-2 text-sm text-gray-500 shrink-0 flex items-center justify-between",children:[
10
+ /* @__PURE__ */p("colgroup",{children:C.map((e,t)=>/* @__PURE__ */p("col",{style:{width:F[t]}},e.key))}),N(C)]}),v]}),void 0!==b&&/* @__PURE__ */u("div",{className:"border-t border-gray-200 px-4 py-2 text-sm text-gray-500 shrink-0 flex items-center justify-between",children:[
11
11
  /* @__PURE__ */p("span",{children:b}),
12
- /* @__PURE__ */u("div",{className:"flex items-center gap-3 relative",ref:Y,children:[w&&q&&/* @__PURE__ */p("button",{onClick:()=>j(e=>!e),className:"text-2xs px-2 py-0.5 rounded "+(D?"bg-accent-fill text-on-accent":"text-ink-faint hover:text-ink border border-line-strong"),title:D?T.hideSelection:T.showSelection,children:D?T.selectDone:T.select}),
13
- /* @__PURE__ */p("button",{onClick:E,className:"text-2xs text-ink-faintest hover:text-gray-600",children:T.reset}),
14
- /* @__PURE__ */p("button",{onClick:()=>G(!B),className:"text-gray-400 hover:text-gray-600",title:T.choose,children:/* @__PURE__ */p(l,{name:"adjust",className:"w-4 h-4",strokeWidth:"1.5"})}),B&&/* @__PURE__ */u("div",{className:"absolute bottom-full right-0 mb-1 w-52 rounded-(--radius-popup) z-(--z-popup) py-1 max-h-80 overflow-y-auto",style:s(),children:[
15
- /* @__PURE__ */p("p",{className:"px-3 py-2 text-3xs font-semibold text-ink-faintest uppercase",children:T.heading}),_.filter(e=>"_select"!==e.key).map(e=>/* @__PURE__ */u("label",{className:"flex items-center gap-2 px-3 py-1 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer",children:[
16
- /* @__PURE__ */p("input",{type:"checkbox",checked:!e.hidden,onChange:()=>A(e.key),className:"h-3.5 w-3.5 rounded border-gray-300 text-blue-600"}),e.label]},e.key)),F&&/* @__PURE__ */p("div",{className:"border-t border-gray-100 mt-1 pt-1 px-3 pb-1",children:/* @__PURE__ */p("button",{onClick:async()=>{O(!0);const e=_.filter(e=>!e.hidden).map(e=>e.key),t=w?"mobile":"desktop",r={visible_columns:e};x&&(r.sort=x);try{await a.patch(`/auth/default-columns/${f}/`,r,{params:{viewport:t}}).catch(()=>a.post("/auth/default-columns/",{table_id:f,viewport:t,...r})),W(!0),setTimeout(()=>W(!1),2e3)}catch{}O(!1)},disabled:K,className:"text-2xs w-full text-center py-1 rounded "+(U?"text-green-600":"text-ink-faint hover:text-blue-600"),children:K?"...":U?T.savedDefault:T.saveDefault})})]})]})]})]})}export{f as ResizableTable};
12
+ /* @__PURE__ */u("div",{className:"flex items-center gap-3 relative",ref:V,children:[w&&q&&/* @__PURE__ */p("button",{onClick:()=>j(e=>!e),className:"text-2xs px-2 py-0.5 rounded "+(D?"bg-accent-fill text-on-accent":"text-ink-faint hover:text-ink border border-line-strong"),title:D?B.hideSelection:B.showSelection,children:D?B.selectDone:B.select}),
13
+ /* @__PURE__ */p("button",{onClick:G,className:"text-2xs text-ink-faintest hover:text-gray-600",children:B.reset}),
14
+ /* @__PURE__ */p("button",{onClick:()=>H(!E),className:"text-gray-400 hover:text-gray-600",title:B.choose,children:/* @__PURE__ */p(l,{name:"adjust",className:"w-4 h-4",strokeWidth:"1.5"})}),E&&/* @__PURE__ */u("div",{className:"absolute bottom-full right-0 mb-1 w-52 rounded-(--radius-popup) z-(--z-popup) py-1 max-h-80 overflow-y-auto",style:s(),children:[
15
+ /* @__PURE__ */p("p",{className:"px-3 py-2 text-3xs font-semibold text-ink-faintest uppercase",children:B.heading}),_.filter(e=>"_select"!==e.key).map(e=>/* @__PURE__ */u("label",{className:"flex items-center gap-2 px-3 py-1 text-sm text-gray-700 hover:bg-gray-50 cursor-pointer",children:[
16
+ /* @__PURE__ */p("input",{type:"checkbox",checked:!e.hidden,onChange:()=>A(e.key),className:"h-3.5 w-3.5 rounded border-gray-300 text-blue-600"}),e.label]},e.key)),W&&/* @__PURE__ */p("div",{className:"border-t border-gray-100 mt-1 pt-1 px-3 pb-1",children:/* @__PURE__ */p("button",{onClick:async()=>{K(!0);const e=_.filter(e=>!e.hidden).map(e=>e.key),t=w?"mobile":"desktop",r={visible_columns:e};x&&(r.sort=x);try{await a.patch(`/auth/default-columns/${f}/`,r,{params:{viewport:t}}).catch(()=>a.post("/auth/default-columns/",{table_id:f,viewport:t,...r})),Q(!0),setTimeout(()=>Q(!1),2e3)}catch{}K(!1)},disabled:J,className:"text-2xs w-full text-center py-1 rounded "+(O?"text-green-600":"text-ink-faint hover:text-blue-600"),children:J?"...":O?B.savedDefault:B.saveDefault})})]})]})]})]})}export{f as ResizableTable};
@@ -0,0 +1,23 @@
1
+ import{Calendar as e}from"./chunk-YMHCLK3F.js";import{gridColumnCount as t}from"./chunk-VNNVG4NR.js";import{END_ACTIONS_PAD as r,InputEndActionSlot as n,InputEndActionButton as a}from"./chunk-PT4GMPUB.js";import{FILTER_ON as o,FILTER_ON_INK as i,FILTER_OFF as l}from"./chunk-AYZY3YNC.js";import{userToday as s,calendarNames as c}from"./chunk-NHKT5IH6.js";import{toDateKey as d,fromDateKey as m,toMonthKey as u}from"./chunk-JRQMX4PK.js";import{pad2 as h}from"./chunk-LF27WIN2.js";import{Icon as p}from"./chunk-ISVODSRP.js";import{onOverlayOpen as f}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as g}from"./chunk-62LW225J.js";import{useDropdownPosition as b}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as x}from"./chunk-D65T4H6J.js";import{buttonClasses as v}from"./chunk-UQYNPYF4.js";import{glassStyle as y}from"./chunk-5FYDNH4Y.js";import{useShellStrings as w,useShellLocale as N}from"./chunk-IUVGHHR3.js";import{useState as k,useRef as C,useId as M,useEffect as j}from"react";import{createPortal as D}from"react-dom";import{jsxs as W,Fragment as $,jsx as Y}from"react/jsx-runtime";var F=["last2Weeks","lastMonth","last3Months","last6Months","last12Months"],H=d;function S(e,t){const r=t.getFullYear(),n=t.getMonth(),a=new Date(r,n,t.getDate()),o=new Date(r,n,0),i=e=>new Date(r,n-e,1);switch(e){case"last2Weeks":return{from:d(new Date(r,n,t.getDate()-14)),to:d(a)};case"lastMonth":return{from:d(i(1)),to:d(o)};case"last3Months":return{from:d(i(3)),to:d(o)};case"last6Months":return{from:d(i(6)),to:d(o)};case"last12Months":return{from:d(i(12)),to:d(o)}}}function O(e,t,r){const n=u(e);return t&&n<t.slice(0,7)?t.slice(0,7):r&&n>r.slice(0,7)?r.slice(0,7):n}function R(e){const t=m(e);return t?`${h(t.getDate())}/${h(t.getMonth()+1)}/${t.getFullYear()}`:e}var L=/* @__PURE__ */new Map;function T({from:d,to:u,onChange:h,formatDisplay:H,clearable:T,required:G=!1,name:I,id:P,"aria-labelledby":U,"aria-label":B,weekStartsOn:V,placeholder:E,fullWidth:J=!1,min:q,max:A,disabled:K=!1,allowOpenEnd:Q=!1}){const Z=w().dateRange,z=N(),X=H??(z?function(e){let t=L.get(e);t||(t=new Intl.DateTimeFormat(e,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:"UTC",calendar:"gregory"}),L.set(e,t));const r=t;return e=>{const t=m(e);return t?r.format(new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate()))):e}}(z):R),_=E??Z.placeholder,ee=T??!G,[te,re]=k(!1),[ne,ae]=k(d),[oe,ie]=k(u),[le,se]=k(null),[ce,de]=k("from"),me=C(null),ue=C(null),he=C(null),pe=M(),fe=M(),ge=M(),[be,xe]=k(!1),ve=b(me,te,{preferredMaxWidth:520,preferredMaxHeight:be?720:560,popupRef:he}),ye=C(null),we=C(null),[Ne,ke]=k(!0);x(()=>{const e=we.current;if(!te||!be||!e)return;const r=t(getComputedStyle(e).gridTemplateColumns)||1,n=parseFloat(getComputedStyle(e).columnGap)||0,a=(e.clientWidth-n*(r-1))/r,o=Math.max(...Array.from(e.querySelectorAll("[data-preset-measure]"),e=>e.offsetWidth))+24+2<=a+.5;o!==Ne&&ke(o)});const Ce=C(null);x(()=>{const e=he.current;if(!te||!ve||!e)return;const t=getComputedStyle(e),r=ve.maxWidth-(e.offsetWidth-e.clientWidth)-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight);if(be)null!==Ce.current&&Ce.current<=r&&xe(!1);else{const e=ye.current?.offsetWidth??0;if(0===e)return;Ce.current=e,e>r+.5&&xe(!0)}});const[Me,je]=k(!1);x(()=>{const e=!!P&&(ue.current?.labels?.length??0)>0;e!==Me&&je(e)});const De=!!B||!!U||Me,We=m(s())??/* @__PURE__ */new Date(0),[$e,Ye]=k(()=>d?d.slice(0,7):O(We,q,A)),Fe=F.filter(e=>((e,t,r)=>(!t||e.from>=t)&&(!r||e.to<=r))(S(e,We),q,A)),He=e=>e?X(e):"";j(()=>{if(!te)return;const e=e=>{const t=e.target;me.current?.contains(t)||he.current?.contains(t)||re(!1)};document.addEventListener("mousedown",e);const t=f(()=>re(!1));return()=>{document.removeEventListener("mousedown",e),t()}},[te]),j(()=>{K&&re(!1)},[K]);const Se=()=>{h("",""),re(!1)},Oe=ee&&!K&&Boolean(d||u),Re=d&&u?`${He(d)} — ${He(u)}`:d?Z.fromOnly(He(d)):u?Z.toOnly(He(u)):"",Le=c(z),Te=e=>{const t=m(e);return t?Le.longDate(t.getFullYear(),t.getMonth(),t.getDate()):e},Ge=d&&u?Z.range(Te(d),Te(u)):d?Z.fromOnly(Te(d)):u?Z.toOnly(Te(u)):_,Ie=e=>be?"h-8 w-full min-w-0 truncate rounded-(--radius-control) border px-3 text-sm transition-colors "+(le===e?"border-blue-300 bg-accent-tint text-blue-700 font-medium":"border-line text-ink hover:bg-row-hover"):"h-8 text-left px-3 text-sm rounded-(--radius-control) transition-colors "+(le===e?"bg-accent-tint text-blue-700 font-medium":"text-ink hover:bg-row-hover"),Pe=/* @__PURE__ */W($,{children:[Fe.map(e=>/* @__PURE__ */Y("button",{type:"button",onClick:()=>(e=>{if("Custom"===e)return;const t=S(e,We);ae(t.from),ie(t.to),se(e),Ye(t.from.slice(0,7))})(e),className:Ie(e),"aria-label":be?Z[e]:void 0,children:be?Ne?Z[e]:Z[`${e}Short`]:Z[e]},e)),
2
+ /* @__PURE__ */Y("button",{type:"button",onClick:()=>se("Custom"),className:Ie("Custom"),children:Z.custom})]}),Ue=(e,t)=>Q?/* @__PURE__ */Y("button",{type:"button","data-range-end":e,"aria-pressed":ce===e,onClick:()=>de(e),className:"flex items-center gap-2 whitespace-nowrap rounded rosh-focus-ring",children:t}):/* @__PURE__ */Y("div",{className:"flex items-center gap-2 whitespace-nowrap",children:t}),Be=e=>Q&&ce===e?" ring-1 ring-blue-400":"",Ve=
3
+ /* @__PURE__ */Y(e,{mode:"range",min:q,max:A,value:ne||null,endValue:oe||null,month:$e,onMonthChange:Ye,onSelect:e=>{se("Custom"),Q?"from"===ce?(oe&&e>oe?(ae(oe),ie(e)):ae(e),de("to")):ne&&e<ne?(ie(ne),ae(e)):ie(e):!ne||ne&&oe?(ae(e),ie("")):e<ne?(ie(ne),ae(e)):ie(e)},weekStartsOn:V,"aria-label":Z.dialog});/* @__PURE__ */
4
+ return W("div",{className:"relative"+(J?" w-full":""),ref:me,children:[
5
+ /* @__PURE__ */W("div",{className:`relative ${J?"flex w-full":"inline-flex"} h-8 items-center gap-2 border rounded-lg px-3 ${Oe?r[1]:""} text-sm focus-within:border-blue-500 has-focus-visible:ring-1 has-focus-visible:ring-[color:var(--rosh-focus-ring-deep)] ${d||u?`${o} ${i}`:l}${K?" cursor-not-allowed opacity-60":""}`,children:[
6
+ /* @__PURE__ */W("button",{ref:ue,type:"button",onClick:()=>{K||(ae(d),ie(u),se(null),de(d&&!u?"to":"from"),Ye(d?d.slice(0,7):O(We,q,A)),re(!0))},"aria-haspopup":"dialog","aria-expanded":te,id:P,disabled:K||void 0,"aria-label":B,"aria-labelledby":U,"aria-describedby":[De?fe:void 0,G?ge:void 0].filter(Boolean).join(" ")||void 0,"aria-controls":te?pe:void 0,className:"inline-flex items-center gap-2 rosh-focus-ring"+(J?" min-w-0 flex-1 justify-start":""),children:[
7
+ /* @__PURE__ */Y(p,{name:"date",className:"w-4 h-4 shrink-0",strokeWidth:"2","aria-hidden":"true"}),
8
+ /* @__PURE__ */Y("span",{className:"truncate",children:Re||_})]}),Oe&&/* @__PURE__ */Y(n,{children:/* @__PURE__ */Y(a,{action:{label:Z.clearRange,icon:/* @__PURE__ */Y(p,{name:"close"}),onClick:Se}})})]}),De&&/* @__PURE__ */Y("span",{id:fe,className:"sr-only",children:Ge}),G&&/* @__PURE__ */Y("span",{id:ge,className:"sr-only",children:Z.required}),I&&/* @__PURE__ */W($,{children:[
9
+ /* @__PURE__ */Y("input",{type:"hidden",name:I.from,value:d,disabled:K||void 0}),
10
+ /* @__PURE__ */Y("input",{type:"hidden",name:I.to,value:u,disabled:K||void 0})]}),te&&D(
11
+ /* @__PURE__ */W("div",{ref:he,id:pe,role:"dialog","aria-label":Z.dialog,"data-layout":be?"stacked":"side",className:"fixed rounded-(--radius-popup) p-4",style:{zIndex:g.popup,left:ve?.left,right:ve?.right,top:ve?.top,bottom:ve?.bottom,width:be&&ve?ve.maxWidth:"max-content",maxWidth:ve?.maxWidth,maxHeight:ve?.maxHeight,overflowY:"auto",visibility:ve?void 0:"hidden",...y()},children:[
12
+ /* @__PURE__ */W("div",{className:be?"mb-3 flex flex-wrap items-center gap-x-4 gap-y-2":"flex items-center gap-3 mb-3",children:[Ue("from",/* @__PURE__ */W($,{children:[
13
+ /* @__PURE__ */Y("span",{className:"text-xs font-medium text-gray-500",children:Z.from}),
14
+ /* @__PURE__ */Y("span",{className:`text-sm px-2 py-1 rounded border min-w-[90px] ${ne?"border-blue-300 bg-accent-tint text-blue-700":"border-line bg-surface-sunken text-ink-faintest"}${Be("from")}`,children:ne?He(ne):Z.start})]})),!be&&/* @__PURE__ */Y("span",{className:"text-gray-300",children:"—"}),Ue("to",/* @__PURE__ */W($,{children:[
15
+ /* @__PURE__ */Y("span",{className:"text-xs font-medium text-gray-500",children:Z.to}),
16
+ /* @__PURE__ */Y("span",{className:`text-sm px-2 py-1 rounded border min-w-[90px] ${oe?"border-blue-300 bg-accent-tint text-blue-700":"border-line bg-surface-sunken text-ink-faintest"}${Be("to")}`,children:oe?He(oe):Z.end})]}))]}),be?/* @__PURE__ */W($,{children:[Fe.length>0&&/* @__PURE__ */W("div",{className:"mb-3 @container",children:[!Ne&&/* @__PURE__ */Y("p",{"aria-hidden":"true",className:"mb-1 text-xs font-medium text-ink-faint",children:Z.lastHeading}),
17
+ /* @__PURE__ */W("div",{ref:we,className:"relative grid grid-cols-2 gap-2 @min-[320px]:grid-cols-3",children:[Pe,Fe.map(e=>/* @__PURE__ */Y("span",{"data-preset-measure":"","aria-hidden":"true",className:"invisible absolute left-0 top-0 whitespace-nowrap text-sm",children:Z[e]},e))]})]}),
18
+ /* @__PURE__ */Y("div",{className:"w-full",children:Ve})]}):
19
+ /* @__PURE__ */W("div",{ref:ye,className:"flex w-max gap-4",children:[
20
+ /* @__PURE__ */Y("div",{className:"w-64",children:Ve}),Fe.length>0&&/* @__PURE__ */Y("div",{className:"border-l border-gray-200 pl-4 flex flex-col gap-1 min-w-[130px]",children:Pe})]}),
21
+ /* @__PURE__ */W("div",{className:"flex flex-wrap justify-end gap-2 mt-4 pt-3 border-t border-gray-200",children:[ee&&/* @__PURE__ */Y("button",{type:"button",onClick:Se,className:v({variant:"ghost"}),children:Z.clear}),
22
+ /* @__PURE__ */Y("button",{type:"button",onClick:()=>re(!1),className:v({variant:"secondary"}),children:Z.cancel}),
23
+ /* @__PURE__ */Y("button",{type:"button",onClick:()=>{h(ne,oe),re(!1)},disabled:Q?!ne&&!oe:!ne||!oe,className:v({variant:"primary"}),children:Z.apply})]})]}),document.body)]})}export{T as DateRangePicker,S as presetRange,H as toISODate};
@@ -1,4 +1,4 @@
1
- import{useShellLanguage as e}from"./chunk-NUDL6UO3.js";import{RadioGroup as a}from"./chunk-32VV2J22.js";import{Select_default as n}from"./chunk-KITSIQCV.js";import{Icon as t}from"./chunk-ISVODSRP.js";import{useShellStrings as l}from"./chunk-DEJIH3ZQ.js";import{jsxs as s,jsx as i}from"react/jsx-runtime";function r(e){const a=Math.max(0,...e.map(e=>[...e].reduce((e,a)=>e+((a.codePointAt(0)??0)>=11904?1:.62),0)));return Math.round(10*(a+3.5))/10}function m({size:a="sm",className:m=""}){const{language:o,languages:c,setLanguage:g}=e(),u=l().language;return c.length<2?null:/* @__PURE__ */s("span",{className:`inline-flex items-center gap-2 text-ink-faint ${m}`.trim(),children:[
1
+ import{useShellLanguage as e}from"./chunk-IOLUF3UL.js";import{RadioGroup as a}from"./chunk-32VV2J22.js";import{Select_default as n}from"./chunk-DEYVAMJQ.js";import{Icon as t}from"./chunk-ISVODSRP.js";import{useShellStrings as l}from"./chunk-IUVGHHR3.js";import{jsxs as s,jsx as i}from"react/jsx-runtime";function r(e){const a=Math.max(0,...e.map(e=>[...e].reduce((e,a)=>e+((a.codePointAt(0)??0)>=11904?1:.62),0)));return Math.round(10*(a+3.5))/10}function m({size:a="sm",className:m=""}){const{language:o,languages:c,setLanguage:g}=e(),u=l().language;return c.length<2?null:/* @__PURE__ */s("span",{className:`inline-flex items-center gap-2 text-ink-faint ${m}`.trim(),children:[
2
2
  /* @__PURE__ */i(t,{name:"globe","aria-hidden":!0,className:"h-4 w-4 shrink-0"}),
3
3
  /* @__PURE__ */i("span",{className:"block",style:{width:`${r(c.map(e=>e.name))}em`},children:/* @__PURE__ */i(n,{size:a,touchSize:a,"aria-label":u.title,value:o,onChange:e=>{g(e)},options:c.map(({tag:e,name:a})=>({value:e,label:a,lang:e}))})})]})}function o({description:n,className:t=""}){const{language:r,languages:m,setLanguage:o}=e(),c=l().language;return m.length<2?null:/* @__PURE__ */s("div",{className:`space-y-4 ${t}`.trim(),children:[
4
4
  /* @__PURE__ */s("div",{children:[
@@ -1,3 +1,3 @@
1
- import{appendKey as r,backspace as a}from"./chunk-VEPVOHCV.js";import{Button_default as e}from"./chunk-EVYD6UFQ.js";import{useShellStrings as n}from"./chunk-DEJIH3ZQ.js";import{jsxs as i,jsx as c}from"react/jsx-runtime";var o=["1","2","3","4","5","6","7","8","9",".","0"];function l({value:l,onChange:s,onEnter:t,enterLabel:m,enterDisabled:d,className:h=""}){const p=n().keypad,u=r=>{r!==l&&s(r)};/* @__PURE__ */
1
+ import{appendKey as r,backspace as a}from"./chunk-VEPVOHCV.js";import{Button_default as e}from"./chunk-EVYD6UFQ.js";import{useShellStrings as n}from"./chunk-IUVGHHR3.js";import{jsxs as i,jsx as c}from"react/jsx-runtime";var o=["1","2","3","4","5","6","7","8","9",".","0"];function l({value:l,onChange:s,onEnter:t,enterLabel:m,enterDisabled:d,className:h=""}){const p=n().keypad,u=r=>{r!==l&&s(r)};/* @__PURE__ */
2
2
  return i("div",{className:`grid grid-cols-3 gap-3 ${h}`.trim(),children:[o.map(a=>/* @__PURE__ */c(e,{size:"touch-xl",variant:"secondary",onClick:()=>u(r(l,a)),children:a},a)),
3
3
  /* @__PURE__ */c(e,{size:"touch-xl",variant:"secondary","aria-label":p.backspace,onClick:()=>u(a(l)),children:"⌫"}),t&&/* @__PURE__ */c(e,{size:"touch-xl",variant:"primary",className:"col-span-3",disabled:d,onClick:t,children:m??p.enter})]})}export{l as NumericKeypad};
@@ -0,0 +1,7 @@
1
+ import{writeClipboard as e}from"./chunk-UFX7F3KG.js";import{IconButton_default as r}from"./chunk-SV5RRBVA.js";import{Icon as t}from"./chunk-ISVODSRP.js";import{toast_default as n}from"./chunk-VQ35LXDC.js";import{useShellStrings as a}from"./chunk-IUVGHHR3.js";import{useState as i,useRef as o,useEffect as c,useCallback as l}from"react";import{jsxs as m,jsx as s,Fragment as d}from"react/jsx-runtime";var u={bordered:"border border-gray-300 bg-white",flat:"bg-gray-100"},p={sm:{box:"gap-2 px-3 py-1 text-xs",button:"-my-1"},md:{box:"gap-2 px-3 min-h-8 py-1 text-sm",button:"-my-0.5"}};function b(){/* @__PURE__ */
2
+ return s(t,{name:"copy",className:"h-4 w-4","aria-hidden":"true"})}function h(){/* @__PURE__ */
3
+ return s(t,{name:"check",className:"h-4 w-4 text-green-600","aria-hidden":"true"})}function y({value:t,children:y,symbol:f,label:x,size:g="md",variant:k="bordered",hideCopyButton:v=!1,onCopy:w,multiline:N=!1,id:j,"aria-describedby":V,className:C=""}){const[R,B]=i(!1),S=o(null),T=a().copy;c(()=>()=>{S.current&&clearTimeout(S.current)},[]);const D=l(async()=>{await e(t)?(B(!0),S.current&&clearTimeout(S.current),S.current=setTimeout(()=>{B(!1),S.current=null},2e3),w?.(t)):n.error(T.failed)},[t,w,T]),{box:F,button:G}=p[g],H=!v;/* @__PURE__ */
4
+ return m("div",{id:H?void 0:j,"aria-describedby":H?void 0:V,className:["inline-flex max-w-full items-center rounded-md",u[k],F,C].filter(Boolean).join(" "),children:[null!=f&&""!==f&&/* @__PURE__ */s("span",{"aria-hidden":"true",className:"shrink-0 select-none font-mono text-gray-400",children:f}),
5
+ /* @__PURE__ */s("span",{className:"min-w-0 font-mono text-gray-800 "+(N?"whitespace-pre-wrap break-all":"truncate"),title:N?void 0:t,children:y??t}),!v&&/* @__PURE__ */m(d,{children:[
6
+ /* @__PURE__ */s(r,{id:j,"aria-label":x?T.copyLabel(x):T.copy,"aria-describedby":V,onClick:D,className:`${G} text-gray-400`,children:/* @__PURE__ */s(R?h:b,{})}),
7
+ /* @__PURE__ */s("span",{"aria-live":"polite",className:"sr-only",children:R?T.copied:""})]})]})}export{y as Snippet};
@@ -1,9 +1,9 @@
1
- import{useShellLocale as e}from"./chunk-DEJIH3ZQ.js";import{formatPlain as r}from"./chunk-C3QOHMR6.js";import{useId as d,Children as n}from"react";import{jsxs as t,jsx as a}from"react/jsx-runtime";var i={none:{body:"",edge:"px-4 py-3"},sm:{body:"p-3",edge:"px-3 py-2"},md:{body:"p-4",edge:"px-4 py-3"},lg:{body:"p-6",edge:"px-6 py-4"}},l={neutral:"border-line",warning:"border-amber-300",current:"border-line"};function s({children:e,header:r,description:s,footer:c,padded:o=!0,padding:m,headingLevel:b,headerActions:u,"aria-label":p,className:h="",bodyClassName:x="",style:g,tone:f="neutral"}){const y=i[m??(o?"md":"none")],N=d(),v=d(),$=null!=r&&null!=s&&""!==s,w=null!=b&&null!=r,j=`h${b}`,k=null!=p&&""!==p,A=w||k,C=A?"section":"div",H=`rounded-(--radius-card) border ${l[f]} bg-surface shadow-sm ${h}`.trim(),Q=n.toArray(e).length>0,B=Q?"border-b border-line-subtle ":"",D="current"===f,E=D?"text-base font-semibold text-blue-700":"text-base font-semibold text-ink-strongest",I=D?"rounded-t-(--radius-card) bg-accent-tint ":"",J=`${B}${I}${y.edge} ${E}`;/* @__PURE__ */
2
- return t(C,{className:H,style:g,...k?{"aria-label":p}:w?{"aria-labelledby":N}:{},...$&&A?{"aria-describedby":v}:{},...D?{"aria-current":!0}:{},children:[$?
3
- /* @__PURE__ */t("div",{className:`${B}${I}${y.edge}`,children:[null!=u?/* @__PURE__ */t("div",{className:`flex items-center justify-between gap-3 ${E}`,children:[w?/* @__PURE__ */a(j,{id:N,children:r}):/* @__PURE__ */a("span",{children:r}),u]}):w?/* @__PURE__ */a(j,{id:N,className:E,children:r}):/* @__PURE__ */a("div",{className:E,children:r}),
4
- /* @__PURE__ */a("p",{id:v,className:D?"mt-0.5 text-xs text-gray-600":"mt-0.5 text-xs text-ink-faint",children:s})]}):null!=r&&(null!=u?
5
- /* @__PURE__ */t("div",{className:`${J} flex items-center justify-between gap-3`,children:[w?/* @__PURE__ */a(j,{id:N,children:r}):/* @__PURE__ */a("span",{children:r}),u]}):w?
6
- /* @__PURE__ */a(j,{id:N,className:J,children:r}):/* @__PURE__ */a("div",{className:J,children:r})),Q&&/* @__PURE__ */a("div",{className:[y.body,x].filter(Boolean).join(" "),children:e}),c&&/* @__PURE__ */a("div",{className:`border-t border-gray-100 ${y.edge}`,children:c})]})}function c({label:d,value:n,icon:i,delta:l,className:s=""}){const c=e(),o="number"==typeof n&&c?r(n,c):n,m="up"===l?.direction?"text-green-600":"down"===l?.direction?"text-red-600":"text-gray-500",b="up"===l?.direction?"▲":"down"===l?.direction?"▼":"→";/* @__PURE__ */
1
+ import{useShellLocale as e}from"./chunk-IUVGHHR3.js";import{formatPlain as r}from"./chunk-C3QOHMR6.js";import{useId as d,Children as n}from"react";import{jsxs as t,jsx as a}from"react/jsx-runtime";var i={none:{body:"",edge:"px-4 py-3"},sm:{body:"p-3",edge:"px-3 py-2"},md:{body:"p-4",edge:"px-4 py-3"},lg:{body:"p-6",edge:"px-6 py-4"}},l={neutral:"border-line",warning:"border-amber-300",current:"border-line"};function s({children:e,header:r,description:s,footer:c,padded:o=!0,padding:m,headingLevel:b,headerActions:u,"aria-label":p,className:h="",bodyClassName:x="",style:g,tone:f="neutral"}){const y=i[m??(o?"md":"none")],N=d(),v=d(),$=null!=r&&null!=s&&""!==s,w=null!=b&&null!=r,j=`h${b}`,k=null!=p&&""!==p,H=w||k,A=H?"section":"div",C=`rounded-(--radius-card) border ${l[f]} bg-surface shadow-sm ${h}`.trim(),R=n.toArray(e).length>0,B=R?"border-b border-line-subtle ":"",G="current"===f,I=G?"text-base font-semibold text-blue-700":"text-base font-semibold text-ink-strongest",L=G?"rounded-t-(--radius-card) bg-accent-tint ":"",M=`${B}${L}${y.edge} ${I}`;/* @__PURE__ */
2
+ return t(A,{className:C,style:g,...k?{"aria-label":p}:w?{"aria-labelledby":N}:{},...$&&H?{"aria-describedby":v}:{},...G?{"aria-current":!0}:{},children:[$?
3
+ /* @__PURE__ */t("div",{className:`${B}${L}${y.edge}`,children:[null!=u?/* @__PURE__ */t("div",{className:`flex items-center justify-between gap-3 ${I}`,children:[w?/* @__PURE__ */a(j,{id:N,children:r}):/* @__PURE__ */a("span",{children:r}),u]}):w?/* @__PURE__ */a(j,{id:N,className:I,children:r}):/* @__PURE__ */a("div",{className:I,children:r}),
4
+ /* @__PURE__ */a("p",{id:v,className:G?"mt-0.5 text-xs text-gray-600":"mt-0.5 text-xs text-ink-faint",children:s})]}):null!=r&&(null!=u?
5
+ /* @__PURE__ */t("div",{className:`${M} flex items-center justify-between gap-3`,children:[w?/* @__PURE__ */a(j,{id:N,children:r}):/* @__PURE__ */a("span",{children:r}),u]}):w?
6
+ /* @__PURE__ */a(j,{id:N,className:M,children:r}):/* @__PURE__ */a("div",{className:M,children:r})),R&&/* @__PURE__ */a("div",{className:[y.body,x].filter(Boolean).join(" "),children:e}),c&&/* @__PURE__ */a("div",{className:`border-t border-gray-100 ${y.edge}`,children:c})]})}function c({label:d,value:n,icon:i,delta:l,className:s=""}){const c=e(),o="number"==typeof n&&c?r(n,c):n,m="up"===l?.direction?"text-green-600":"down"===l?.direction?"text-red-600":"text-gray-500",b="up"===l?.direction?"▲":"down"===l?.direction?"▼":"→";/* @__PURE__ */
7
7
  return t("div",{className:`rounded-(--radius-card) border border-gray-200 bg-white p-4 shadow-sm ${s}`.trim(),children:[
8
8
  /* @__PURE__ */t("div",{className:"flex items-center justify-between text-ink-faint",children:[
9
9
  /* @__PURE__ */a("span",{className:"text-xs font-medium uppercase tracking-wide",children:d}),i]}),
@@ -1,2 +1,2 @@
1
- import{LoadingSpinner as n}from"./chunk-R2VKEMZH.js";import{useShellStrings as r}from"./chunk-DEJIH3ZQ.js";import{jsx as o}from"react/jsx-runtime";function i(){const i=r().loading;/* @__PURE__ */
1
+ import{LoadingSpinner as n}from"./chunk-R2VKEMZH.js";import{useShellStrings as r}from"./chunk-IUVGHHR3.js";import{jsx as o}from"react/jsx-runtime";function i(){const i=r().loading;/* @__PURE__ */
2
2
  return o(n,{size:"sm",padding:"p-8",label:i.label})}export{i as LoadingSpinner};
@@ -1 +1 @@
1
- import{useShellLocale as e}from"./chunk-DEJIH3ZQ.js";import{formatPlain as t}from"./chunk-C3QOHMR6.js";import{jsx as r,jsxs as n}from"react/jsx-runtime";var i={danger:"bg-red-600 text-white",neutral:"bg-gray-600 text-white",accent:"bg-blue-600 text-white"};function a({count:a=0,max:l=99,dot:s=!1,tone:o="danger",showZero:c=!1,children:m,className:u=""}){const h=s||a>0||0===a&&c,d=e(),x=a>l?`${t(l,d)}+`:t(a,d),f=m?"":u,g=h?/* @__PURE__ */r("span",s?{className:`block h-2.5 w-2.5 rounded-full ring-2 ring-white ${i[o]} ${f}`.trim(),"aria-hidden":m?"true":void 0}:{className:`flex h-5 min-w-[1.25rem] items-center justify-center whitespace-nowrap rounded-full px-1 text-xs font-semibold tabular-nums ring-2 ring-white ${i[o]} ${f}`.trim(),children:x}):null;return m?/* @__PURE__ */n("span",{className:`relative inline-flex ${u}`.trim(),children:[m,g&&/* @__PURE__ */r("span",{className:"absolute -right-1.5 -top-1.5 flex",children:g})]}):g}export{a as CountBadge};
1
+ import{useShellLocale as e}from"./chunk-IUVGHHR3.js";import{formatPlain as t}from"./chunk-C3QOHMR6.js";import{jsx as r,jsxs as n}from"react/jsx-runtime";var i={danger:"bg-red-600 text-white",neutral:"bg-gray-600 text-white",accent:"bg-blue-600 text-white"};function a({count:a=0,max:l=99,dot:s=!1,tone:o="danger",showZero:c=!1,children:m,className:u=""}){const h=s||a>0||0===a&&c,d=e(),x=a>l?`${t(l,d)}+`:t(a,d),f=m?"":u,g=h?/* @__PURE__ */r("span",s?{className:`block h-2.5 w-2.5 rounded-full ring-2 ring-white ${i[o]} ${f}`.trim(),"aria-hidden":m?"true":void 0}:{className:`flex h-5 min-w-[1.25rem] items-center justify-center whitespace-nowrap rounded-full px-1 text-xs font-semibold tabular-nums ring-2 ring-white ${i[o]} ${f}`.trim(),children:x}):null;return m?/* @__PURE__ */n("span",{className:`relative inline-flex ${u}`.trim(),children:[m,g&&/* @__PURE__ */r("span",{className:"absolute -right-1.5 -top-1.5 flex",children:g})]}):g}export{a as CountBadge};
@@ -1,8 +1,8 @@
1
- import{parseFocal as e,formatFocal as t,nudgeFocal as n,focalFromRect as a}from"./chunk-25RR3GQW.js";import{useShellStrings as r}from"./chunk-DEJIH3ZQ.js";import{useId as o,useRef as s}from"react";import{jsx as i,jsxs as l}from"react/jsx-runtime";var c={background:"color-mix(in srgb, var(--status-on-solid) 45%, transparent)"},u={borderColor:"var(--status-on-solid)",boxShadow:"0 0 0 1px var(--rosh-media-scrim-button), 0 1px 4px var(--rosh-media-scrim-button)"};function d({value:d,onChange:m,label:f,image:p,hint:h,emptyText:x,actions:b,disabled:g=!1,id:v,className:y=""}){const N=r().imageFocus,w=o(),k=s(null),j=s(!1),{x:C,y:P}=e(d),K=t(C,P),$=e=>{e!==d&&m(e)},D=(e,n)=>{const r=k.current?.getBoundingClientRect();if(!r)return;const o=a(r,e,n);$(t(o.x,o.y))},I=()=>{j.current=!1};if(!p)/* @__PURE__ */
2
- return i("div",{"data-image-focus":"",className:y||void 0,children:/* @__PURE__ */i("p",{className:"text-xs text-ink-faint",children:x??N.noImage})});const R=void 0===h,T=null!==h;/* @__PURE__ */
1
+ import{parseFocal as e,formatFocal as t,nudgeFocal as n,focalFromRect as a}from"./chunk-25RR3GQW.js";import{useShellStrings as r}from"./chunk-IUVGHHR3.js";import{useId as o,useRef as s}from"react";import{jsx as i,jsxs as l}from"react/jsx-runtime";var c={background:"color-mix(in srgb, var(--status-on-solid) 45%, transparent)"},u={borderColor:"var(--status-on-solid)",boxShadow:"0 0 0 1px var(--rosh-media-scrim-button), 0 1px 4px var(--rosh-media-scrim-button)"};function d({value:d,onChange:m,label:f,image:p,hint:h,emptyText:x,actions:b,disabled:g=!1,id:v,className:y=""}){const N=r().imageFocus,w=o(),k=s(null),j=s(!1),{x:C,y:P}=e(d),K=t(C,P),$=e=>{e!==d&&m(e)},R=(e,n)=>{const r=k.current?.getBoundingClientRect();if(!r)return;const o=a(r,e,n);$(t(o.x,o.y))},D=()=>{j.current=!1};if(!p)/* @__PURE__ */
2
+ return i("div",{"data-image-focus":"",className:y||void 0,children:/* @__PURE__ */i("p",{className:"text-xs text-ink-faint",children:x??N.noImage})});const I=void 0===h,T=null!==h;/* @__PURE__ */
3
3
  return l("div",{"data-image-focus":"",className:`flex flex-col gap-2 ${y}`.trim(),children:[
4
- /* @__PURE__ */i("button",{id:v,type:"button","data-image-focus-picture":"",disabled:g,"aria-label":N.picture(f,K),"aria-describedby":w,onKeyDown:e=>{if(g||e.altKey||e.ctrlKey||e.metaKey)return;const t=n(d,e.key,e.shiftKey);null!==t&&(e.preventDefault(),$(t))},onPointerDown:e=>{g||0!==e.button||(e.currentTarget.setPointerCapture?.(e.pointerId),e.currentTarget.focus({preventScroll:!0}),j.current=!0,D(e.clientX,e.clientY))},onPointerMove:e=>{j.current&&!g&&D(e.clientX,e.clientY)},onPointerUp:I,onPointerCancel:I,onLostPointerCapture:I,className:["flex min-h-36 w-full touch-none items-center justify-center overflow-hidden rounded-md border border-line bg-surface-sunken p-0","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",g?"cursor-not-allowed opacity-60":"cursor-crosshair"].join(" "),children:/* @__PURE__ */l("span",{ref:k,"data-image-focus-pane":"",className:"relative block max-w-full",children:[
4
+ /* @__PURE__ */i("button",{id:v,type:"button","data-image-focus-picture":"",disabled:g,"aria-label":N.picture(f,K),"aria-describedby":w,onKeyDown:e=>{if(g||e.altKey||e.ctrlKey||e.metaKey)return;const t=n(d,e.key,e.shiftKey);null!==t&&(e.preventDefault(),$(t))},onPointerDown:e=>{g||0!==e.button||(e.currentTarget.setPointerCapture?.(e.pointerId),e.currentTarget.focus({preventScroll:!0}),j.current=!0,R(e.clientX,e.clientY))},onPointerMove:e=>{j.current&&!g&&R(e.clientX,e.clientY)},onPointerUp:D,onPointerCancel:D,onLostPointerCapture:D,className:["flex min-h-36 w-full touch-none items-center justify-center overflow-hidden rounded-md border border-line bg-surface-sunken p-0","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",g?"cursor-not-allowed opacity-60":"cursor-crosshair"].join(" "),children:/* @__PURE__ */l("span",{ref:k,"data-image-focus-pane":"",className:"relative block max-w-full",children:[
5
5
  /* @__PURE__ */i("img",{src:p,alt:"",draggable:!1,className:"block h-auto max-h-36 w-auto max-w-full select-none object-contain"}),
6
6
  /* @__PURE__ */i("span",{"aria-hidden":"true","data-image-focus-cross":"h",className:"pointer-events-none absolute inset-x-0 h-px",style:{top:`${P}%`,...c}}),
7
7
  /* @__PURE__ */i("span",{"aria-hidden":"true","data-image-focus-cross":"v",className:"pointer-events-none absolute inset-y-0 w-px",style:{left:`${C}%`,...c}}),
8
- /* @__PURE__ */i("span",{"aria-hidden":"true","data-image-focus-dot":"",className:"pointer-events-none absolute h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-full border-2",style:{left:`${C}%`,top:`${P}%`,...u}})]})}),T||b?/* @__PURE__ */l("div",{className:"flex items-center gap-2",children:[/* @__PURE__ */i("span",T?{id:R?w:void 0,className:"min-w-0 flex-1 text-xs text-ink-faint",children:R?N.hint:h}:{className:"min-w-0 flex-1"}),b]}):null,!R&&/* @__PURE__ */i("span",{id:w,className:"sr-only",children:N.hint})]})}export{d as ImageFocusPoint};
8
+ /* @__PURE__ */i("span",{"aria-hidden":"true","data-image-focus-dot":"",className:"pointer-events-none absolute h-4 w-4 -translate-x-1/2 -translate-y-1/2 rounded-full border-2",style:{left:`${C}%`,top:`${P}%`,...u}})]})}),T||b?/* @__PURE__ */l("div",{className:"flex items-center gap-2",children:[/* @__PURE__ */i("span",T?{id:I?w:void 0,className:"min-w-0 flex-1 text-xs text-ink-faint",children:I?N.hint:h}:{className:"min-w-0 flex-1"}),b]}):null,!I&&/* @__PURE__ */i("span",{id:w,className:"sr-only",children:N.hint})]})}export{d as ImageFocusPoint};
@@ -0,0 +1,8 @@
1
+ import{AccessibleTable as t}from"./chunk-HY6CBG4M.js";import{arcPath as e}from"./chunk-VFC6QUEN.js";import{useHighlight as o}from"./chunk-CNYAHYE6.js";import{ChartTooltip as n}from"./chunk-WDQI3FV6.js";import{CHART_INK as r,resolveSeriesColor as a}from"./chunk-TZFACUMR.js";import{useShellStrings as l,useShellLocale as i}from"./chunk-IUVGHHR3.js";import{formatPlain as s}from"./chunk-C3QOHMR6.js";import{useState as c}from"react";import{jsx as d,jsxs as m}from"react/jsx-runtime";function h(t,e,o,n){const r=(t,o)=>{const n=e[t]?.[o];return"number"==typeof n&&Number.isFinite(n)?n:0},a=t.map((e,o)=>t.reduce((t,e,n)=>t+r(o,n)+r(n,o),0)),l=Math.max(2,o),i=t.length>l,s=i?t.map((t,e)=>e).sort((t,e)=>a[e]-a[t]).slice(0,l-1).sort((t,e)=>t-e):t.map((t,e)=>e),c=new Map(s.map((t,e)=>[t,e])),d=i?s.length:-1,m=i?[...s.map(e=>t[e]),n]:[...t],h=m.map(()=>m.map(()=>0));let u=0;t.forEach((e,o)=>t.forEach((t,e)=>{const n=c.get(o)??d,a=c.get(e)??d;n!==d||a!==d?h[n][a]+=r(o,e):u+=r(o,e)}));const f=m.map((t,e)=>m.reduce((t,o,n)=>t+h[e][n]+h[n][e],0));return d>=0&&(f[d]+=u),{labels:m,matrix:h,totals:f,otherIndex:d,foldedCount:i?t.length-s.length:0}}function u({labels:u,matrix:f,size:p=340,maxNodes:x=8,padAngle:g=.04,arcWidth:b=12,formatValue:k,className:v,emptyLabel:M}){const $=l().charts,w=i(),N=k??(t=>s(t,w)),j=M??$.noFlows,[y,F]=c(null),{highlighted:C}=o(),E=h(u,f,x,$.other),{labels:I,matrix:H,otherIndex:z,foldedCount:A}=E,Q=(t,e)=>H[t]?.[e]??0,V=t=>t===z?r.muted:a(t),L=E.totals,O=I.map((t,e)=>e).sort((t,e)=>L[e]-L[t]),R=O.reduce((t,e)=>t+L[e],0);if(R<=0)/* @__PURE__ */return d("p",{className:`text-sm text-gray-500 ${v??""}`,children:j});const U=p/2,W=p/2,Y=p/2-44,B=Y-b,G=g*O.length,P=/* @__PURE__ */new Map;let T=-Math.PI/2;O.forEach((t,e)=>{const o=L[t]/R*(2*Math.PI-G);P.set(t,{start:T,end:T+o,slot:e}),T+=o+g});const D=/* @__PURE__ */new Map,S=[];for(const t of O)for(const e of O){const o=Q(t,e);if(o<=0)continue;const n=P.get(t),r=o/Math.max(1,L[t])*(n.end-n.start),a=D.get(t)??0;D.set(t,a+r),S.push({from:t,to:e,value:o,a:n.start+a+r/2,b:P.get(e).start+(P.get(e).end-P.get(e).start)/2})}const Z=(t,e)=>[U+e*Math.cos(t),W+e*Math.sin(t)],q="arc"===y?.kind?y.index:void 0,J="ribbon"===y?.kind?S[y.index]:void 0;/* @__PURE__ */
2
+ return m("div",{className:`relative ${v??""}`,children:[
3
+ /* @__PURE__ */m("svg",{width:"100%",height:p,viewBox:`0 0 ${p} ${p}`,role:"img","aria-label":$.chord(O.length),onMouseLeave:()=>F(null),children:[S.map((t,e)=>{const[o,n]=Z(t.a,B),[r,a]=Z(t.b,B),l=V(t.from),i=((t,e)=>y?"ribbon"===y.kind?y.index===e:y.index===t.from||y.index===t.to:null!==C?I[t.from]===C||I[t.to]===C:null)(t,e);/* @__PURE__ */
4
+ return d("path",{d:`M${o},${n} Q${U},${W} ${r},${a}`,fill:"none",stroke:l,strokeWidth:Math.max(1,t.value/R*p*.9),strokeOpacity:null===i||i?.34:.07,strokeLinecap:"round",onMouseEnter:()=>F({kind:"ribbon",index:e})},`${I[t.from]}→${I[t.to]}`)}),O.map(t=>{const o=P.get(t),n=(o.start+o.end)/2,[a,l]=Z(n,Y+16),i=(t=>y?"arc"===y.kind?y.index===t:S[y.index].from===t||S[y.index].to===t:null!==C?I[t]===C:null)(t);/* @__PURE__ */
5
+ return m("g",{onMouseEnter:()=>F({kind:"arc",index:t}),children:[
6
+ /* @__PURE__ */d("path",{d:e(U,W,B,Y,o.start,o.end),fill:V(t),fillOpacity:null===i||i?1:.45}),
7
+ /* @__PURE__ */d("text",{x:a,y:l+4,fontSize:11,fill:r.label,textAnchor:Math.cos(n)>.15?"start":Math.cos(n)<-.15?"end":"middle",children:I[t]})]},t)})]}),A>0&&/* @__PURE__ */d("p",{className:"mt-1 text-xs text-ink-faint",children:$.chordFolded(A)}),void 0!==q&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:I[q],rows:[{key:"total",label:$.totalFlow,color:V(q),value:N(L[q])}]})}),J&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:`${I[J.from]} → ${I[J.to]}`,rows:[{key:"value",label:$.flow,color:V(J.from),value:N(J.value)}]})}),
8
+ /* @__PURE__ */d(t,{caption:$.chord(O.length),head:[$.tableFrom,$.tableTo,$.value],rows:S.map(t=>[I[t.from],I[t.to],N(t.value)])})]})}export{u as ChordChart,h as foldChord};
@@ -1,4 +1,4 @@
1
- import{ChartSkeleton as e}from"./chunk-NLHGFQ54.js";import{ChartHighlightProvider as r,useHighlight as a}from"./chunk-CNYAHYE6.js";import{CHART_INK as t,resolveSeriesColor as s}from"./chunk-TZFACUMR.js";import{useShellStrings as l}from"./chunk-DEJIH3ZQ.js";import{jsx as n,jsxs as o,Fragment as c}from"react/jsx-runtime";function i({shape:e,colour:r}){const a="shrink-0";switch(e){case"circle":/* @__PURE__ */
1
+ import{ChartSkeleton as e}from"./chunk-ZNV75GAG.js";import{ChartHighlightProvider as r,useHighlight as a}from"./chunk-CNYAHYE6.js";import{CHART_INK as t,resolveSeriesColor as s}from"./chunk-TZFACUMR.js";import{useShellStrings as l}from"./chunk-IUVGHHR3.js";import{jsx as n,jsxs as o,Fragment as c}from"react/jsx-runtime";function i({shape:e,colour:r}){const a="shrink-0";switch(e){case"circle":/* @__PURE__ */
2
2
  return n("span",{className:`${a} h-2.5 w-2.5 rounded-full`,style:{backgroundColor:r}});case"circle-outline":/* @__PURE__ */
3
3
  return n("span",{className:`${a} h-2.5 w-2.5 rounded-full border-2`,style:{borderColor:r}});case"rounded-square-outline":/* @__PURE__ */
4
4
  return n("span",{className:`${a} h-2.5 w-2.5 rounded-sm border-2`,style:{borderColor:r}});case"square":/* @__PURE__ */
@@ -1,10 +1,10 @@
1
- import{LoadingSpinner as e}from"./chunk-R2VKEMZH.js";import{useBrowserLayoutEffect as n}from"./chunk-D65T4H6J.js";import{useShellStrings as t,useShellLocale as r}from"./chunk-DEJIH3ZQ.js";import{formatPlain as a}from"./chunk-C3QOHMR6.js";import{useState as o,useMemo as l,useRef as i,Fragment as s}from"react";import{jsx as d,Fragment as c,jsxs as u}from"react/jsx-runtime";function m({items:m,columns:f,columnOf:p,getId:g,onMove:h,renderCard:x,onCardClick:b,sortInColumn:y,isLoading:v=!1,loadingText:N,emptyState:k,showColumnsWhenEmpty:w=!1,columnEmptyText:C,onAddItem:D,addItemText:E}){const I=t().kanban,j=r(),T=N??I.loading,H=C??I.dropHere,M=E??I.addItem,[A,O]=o(null),[$,R]=o(null),S=l(()=>{const e={};for(const n of f)e[n.value]=[];for(const n of m)(e[p(n)]??=[]).push(n);if(y)for(const n of Object.keys(e))e[n].sort(y);return e},[m,f,p,y]),q=()=>{O(null),R(null)},z=i(null),F=i(/* @__PURE__ */new Map);n(()=>{if(null!==A)return;const e=z.current;if(!e)return;const n=/* @__PURE__ */new Map,t=[];if(e.querySelectorAll("[data-kanban-card]").forEach(e=>{const r=e.dataset.kanbanCard,a=e.getBoundingClientRect();n.set(r,a);const o=F.current.get(r);if(o){const n=o.left-a.left,r=o.top-a.top;(n||r)&&t.push([e,n,r])}}),F.current=n,t.length){for(const[e,n,r]of t)e.style.transition="none",e.style.transform=`translate(${n}px, ${r}px)`;requestAnimationFrame(()=>{for(const[e]of t)e.style.transition="transform 200ms cubic-bezier(0.2, 0, 0, 1)",e.style.transform="",e.addEventListener("transitionend",()=>{e.style.transition="",e.style.transform=""},{once:!0})})}},[S,A]);return v?/* @__PURE__ */d(e,{size:"sm",padding:"p-4",label:T}):0!==m.length||w?/* @__PURE__ */d("div",{ref:z,className:"flex-1 overflow-x-auto grid-scroll",children:/* @__PURE__ */d("div",{className:"flex gap-3 h-full min-w-max pb-2",children:f.map(e=>{const n=S[e.value]??[],t=null!==$&&$.col===e.value,r=null!==A?n.findIndex(e=>g(e)===A):-1,o=t&&(-1===r||$.index!==r&&$.index!==r+1)?$.index:-1;/* @__PURE__ */
2
- return u("div",{className:"group flex flex-col w-72 shrink-0 rounded-xl bg-gray-50 border transition-colors "+(t?"border-blue-400 ring-2 ring-blue-300/60":"border-gray-200"),onDragOver:e=>{e.preventDefault();try{e.dataTransfer.dropEffect="move"}catch{}},onDrop:n=>{n.preventDefault(),(e=>{if(A&&$&&$.col===e){const n=(S[e]??[]).findIndex(e=>g(e)===A),t=-1!==n;if(!t||$.index!==n&&$.index!==n+1){const r=t&&$.index>n?$.index-1:$.index;h(A,e,r)}}q()})(e.value)},children:[
1
+ import{LoadingSpinner as e}from"./chunk-R2VKEMZH.js";import{useBrowserLayoutEffect as n}from"./chunk-D65T4H6J.js";import{useShellStrings as t,useShellLocale as r}from"./chunk-IUVGHHR3.js";import{formatPlain as a}from"./chunk-C3QOHMR6.js";import{useState as o,useMemo as l,useRef as i,Fragment as s}from"react";import{jsx as d,Fragment as c,jsxs as u}from"react/jsx-runtime";function m({items:m,columns:f,columnOf:p,getId:g,onMove:h,renderCard:x,onCardClick:b,sortInColumn:y,isLoading:v=!1,loadingText:N,emptyState:k,showColumnsWhenEmpty:w=!1,columnEmptyText:C,onAddItem:D,addItemText:E}){const I=t().kanban,j=r(),H=N??I.loading,T=C??I.dropHere,M=E??I.addItem,[A,O]=o(null),[R,$]=o(null),S=l(()=>{const e={};for(const n of f)e[n.value]=[];for(const n of m)(e[p(n)]??=[]).push(n);if(y)for(const n of Object.keys(e))e[n].sort(y);return e},[m,f,p,y]),q=()=>{O(null),$(null)},z=i(null),F=i(/* @__PURE__ */new Map);n(()=>{if(null!==A)return;const e=z.current;if(!e)return;const n=/* @__PURE__ */new Map,t=[];if(e.querySelectorAll("[data-kanban-card]").forEach(e=>{const r=e.dataset.kanbanCard,a=e.getBoundingClientRect();n.set(r,a);const o=F.current.get(r);if(o){const n=o.left-a.left,r=o.top-a.top;(n||r)&&t.push([e,n,r])}}),F.current=n,t.length){for(const[e,n,r]of t)e.style.transition="none",e.style.transform=`translate(${n}px, ${r}px)`;requestAnimationFrame(()=>{for(const[e]of t)e.style.transition="transform 200ms cubic-bezier(0.2, 0, 0, 1)",e.style.transform="",e.addEventListener("transitionend",()=>{e.style.transition="",e.style.transform=""},{once:!0})})}},[S,A]);return v?/* @__PURE__ */d(e,{size:"sm",padding:"p-4",label:H}):0!==m.length||w?/* @__PURE__ */d("div",{ref:z,className:"flex-1 overflow-x-auto grid-scroll",children:/* @__PURE__ */d("div",{className:"flex gap-3 h-full min-w-max pb-2",children:f.map(e=>{const n=S[e.value]??[],t=null!==R&&R.col===e.value,r=null!==A?n.findIndex(e=>g(e)===A):-1,o=t&&(-1===r||R.index!==r&&R.index!==r+1)?R.index:-1;/* @__PURE__ */
2
+ return u("div",{className:"group flex flex-col w-72 shrink-0 rounded-xl bg-gray-50 border transition-colors "+(t?"border-blue-400 ring-2 ring-blue-300/60":"border-gray-200"),onDragOver:e=>{e.preventDefault();try{e.dataTransfer.dropEffect="move"}catch{}},onDrop:n=>{n.preventDefault(),(e=>{if(A&&R&&R.col===e){const n=(S[e]??[]).findIndex(e=>g(e)===A),t=-1!==n;if(!t||R.index!==n&&R.index!==n+1){const r=t&&R.index>n?R.index-1:R.index;h(A,e,r)}}q()})(e.value)},children:[
3
3
  /* @__PURE__ */u("div",{className:`flex items-center justify-between px-3 py-2 rounded-t-xl text-sm font-medium ${e.accent??"text-gray-700 bg-gray-100"}`,children:[
4
4
  /* @__PURE__ */u("span",{className:"flex items-center gap-2",children:[
5
5
  /* @__PURE__ */d("span",{className:`h-2 w-2 rounded-full ${e.dot??"bg-gray-400"}`}),e.label]}),
6
6
  /* @__PURE__ */d("span",{className:"text-xs opacity-70",children:a(n.length,j)})]}),
7
- /* @__PURE__ */u("div",{className:"flex-1 overflow-y-auto p-2 space-y-2 min-h-[120px]",onDragEnter:()=>R(t=>t&&t.col===e.value&&t.index===n.length?t:{col:e.value,index:n.length}),children:[n.map((t,r)=>{const a=g(t),l=a===A;/* @__PURE__ */
7
+ /* @__PURE__ */u("div",{className:"flex-1 overflow-y-auto p-2 space-y-2 min-h-[120px]",onDragEnter:()=>$(t=>t&&t.col===e.value&&t.index===n.length?t:{col:e.value,index:n.length}),children:[n.map((t,r)=>{const a=g(t),l=a===A;/* @__PURE__ */
8
8
  return u(s,{children:[o===r&&/* @__PURE__ */d("div",{className:"h-0.5 rounded-full bg-blue-500","aria-hidden":!0}),
9
- /* @__PURE__ */d("div",{"data-kanban-card":a,draggable:!0,onDragStart:e=>{O(a);try{e.dataTransfer.effectAllowed="move"}catch{}},onDragEnter:t=>{t.stopPropagation();const a=null!==A?n.findIndex(e=>g(e)===A):-1,o=-1!==a&&a<r?r+1:r;R(n=>n&&n.col===e.value&&n.index===o?n:{col:e.value,index:o})},onDragEnd:q,onClick:b?()=>b(t):void 0,style:null===A?void 0:{opacity:l?.4:1,transition:"opacity 120ms ease"},className:"rounded-lg bg-white border border-gray-200 p-3 shadow-sm hover:border-blue-400 hover:shadow transition "+(b?"cursor-pointer":""),children:x(t)})]},a)}),n.length>0&&o===n.length&&/* @__PURE__ */d("div",{className:"h-0.5 rounded-full bg-blue-500","aria-hidden":!0}),0===n.length&&/* @__PURE__ */d("div",{className:"text-2xs text-center rounded-lg transition-all duration-150 "+(t?"border-2 border-dashed border-blue-300 bg-blue-50/50 text-blue-400 py-8":"text-gray-400 py-6"),children:H})]}),D&&/* @__PURE__ */d("div",{className:"p-2 pt-0",children:/* @__PURE__ */u("button",{type:"button",onClick:()=>D(e.value),className:"flex w-full items-center justify-center gap-1 rounded-lg px-2 min-h-8 py-1 text-xs font-medium text-ink-faint opacity-0 transition hover:bg-gray-100 hover:text-ink focus-visible:opacity-100 group-hover:opacity-100",children:[
9
+ /* @__PURE__ */d("div",{"data-kanban-card":a,draggable:!0,onDragStart:e=>{O(a);try{e.dataTransfer.effectAllowed="move"}catch{}},onDragEnter:t=>{t.stopPropagation();const a=null!==A?n.findIndex(e=>g(e)===A):-1,o=-1!==a&&a<r?r+1:r;$(n=>n&&n.col===e.value&&n.index===o?n:{col:e.value,index:o})},onDragEnd:q,onClick:b?()=>b(t):void 0,style:null===A?void 0:{opacity:l?.4:1,transition:"opacity 120ms ease"},className:"rounded-lg bg-white border border-gray-200 p-3 shadow-sm hover:border-blue-400 hover:shadow transition "+(b?"cursor-pointer":""),children:x(t)})]},a)}),n.length>0&&o===n.length&&/* @__PURE__ */d("div",{className:"h-0.5 rounded-full bg-blue-500","aria-hidden":!0}),0===n.length&&/* @__PURE__ */d("div",{className:"text-2xs text-center rounded-lg transition-all duration-150 "+(t?"border-2 border-dashed border-blue-300 bg-blue-50/50 text-blue-400 py-8":"text-gray-400 py-6"),children:T})]}),D&&/* @__PURE__ */d("div",{className:"p-2 pt-0",children:/* @__PURE__ */u("button",{type:"button",onClick:()=>D(e.value),className:"flex w-full items-center justify-center gap-1 rounded-lg px-2 min-h-8 py-1 text-xs font-medium text-ink-faint opacity-0 transition hover:bg-gray-100 hover:text-ink focus-visible:opacity-100 group-hover:opacity-100",children:[
10
10
  /* @__PURE__ */d("span",{"aria-hidden":!0,className:"text-sm leading-none",children:"+"}),M]})})]},e.value)})})}):/* @__PURE__ */d(c,{children:k??/* @__PURE__ */d("div",{className:"text-sm text-gray-500 p-4",children:I.empty})})}export{m as Kanban};