efficient-shell 13.15.0 → 13.17.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 (320) hide show
  1. package/README.md +20 -1
  2. package/dist/Browser-547OGMQH.js +44 -0
  3. package/dist/Calculator-4UBMDAJO.js +29 -0
  4. package/dist/CurrencyConverter-H3HHXXKT.js +21 -0
  5. package/dist/{Files-EN4DDZYV.js → Files-GPPTZPDS.js} +80 -80
  6. package/dist/Notepad-GAZ7CZQB.js +24 -0
  7. package/dist/PdfViewer-EELX35ZI.js +1 -0
  8. package/dist/PomodoroTimer-JVCYYGRD.js +91 -0
  9. package/dist/{Preview-OSQHIS3Z.js → Preview-GSD54EUE.js} +33 -33
  10. package/dist/Sidebar-UCCVJFSY.js +44 -0
  11. package/dist/{Stock-2P4NWUNB.js → Stock-S266KGAF.js} +4 -4
  12. package/dist/{Weather-7LIQ4POB.js → Weather-TE4TTTQA.js} +22 -22
  13. package/dist/{WorldClock-KHBYIJQZ.js → WorldClock-5TPBHBYA.js} +7 -7
  14. package/dist/ai/index.js +118 -118
  15. package/dist/apps/ImageAnnotator.js +1 -1
  16. package/dist/apps/index.js +1 -1
  17. package/dist/bin/browser-check.js +1 -1
  18. package/dist/bin/media-host-check.js +1 -1
  19. package/dist/bin/ui-check.js +1 -1
  20. package/dist/charts/BoxPlotChart.js +1 -1
  21. package/dist/charts/CandlestickChart.js +1 -1
  22. package/dist/charts/CartesianPlot.js +1 -1
  23. package/dist/charts/ChordChart.js +1 -1
  24. package/dist/charts/ColumnChart.js +1 -1
  25. package/dist/charts/FlowChart.js +1 -1
  26. package/dist/charts/FunnelChart.js +1 -1
  27. package/dist/charts/HeatmapChart.js +1 -1
  28. package/dist/charts/HistogramChart.js +1 -1
  29. package/dist/charts/PieChart.js +1 -1
  30. package/dist/charts/RadarChart.js +1 -1
  31. package/dist/charts/RadialBarChart.js +1 -1
  32. package/dist/charts/RangeChart.js +1 -1
  33. package/dist/charts/SankeyChart.js +1 -1
  34. package/dist/charts/ScatterChart.js +1 -1
  35. package/dist/charts/SpecChart.js +1 -1
  36. package/dist/charts/SunburstChart.js +1 -1
  37. package/dist/charts/TimeSeriesChart.js +1 -1
  38. package/dist/charts/TreemapChart.js +1 -1
  39. package/dist/charts/WaterfallChart.js +1 -1
  40. package/dist/{chunk-JNSRDEB6.js → chunk-2J3C2RR4.js} +10 -10
  41. package/dist/{chunk-D3T3JCUC.js → chunk-34HRPEQD.js} +1 -1
  42. package/dist/{chunk-PT4GMPUB.js → chunk-3SIRRK3F.js} +3 -3
  43. package/dist/{chunk-OWAYSIQH.js → chunk-42DF7CDB.js} +5 -5
  44. package/dist/{chunk-4OBSVO6U.js → chunk-4G7PJ325.js} +1 -1
  45. package/dist/{chunk-3OUG6QAD.js → chunk-5EHIWKUZ.js} +1 -1
  46. package/dist/chunk-5URXJCNC.js +2 -0
  47. package/dist/{chunk-OEPQIIYL.js → chunk-63E4ZZYI.js} +1 -1
  48. package/dist/{chunk-CKTFXTJL.js → chunk-6OCA7RKQ.js} +1 -1
  49. package/dist/{chunk-HVHIXX6O.js → chunk-6OGX7V7L.js} +10 -10
  50. package/dist/{chunk-WP43XYL6.js → chunk-6QH7I2V5.js} +2 -2
  51. package/dist/{chunk-G53Y6EPJ.js → chunk-7CBWSLCW.js} +13 -13
  52. package/dist/{chunk-DVVB2CY5.js → chunk-7I5RJPY7.js} +1 -1
  53. package/dist/{chunk-22N3KA7A.js → chunk-7IXU4YT4.js} +4 -4
  54. package/dist/{chunk-VYHVIKP6.js → chunk-7SVSHJOO.js} +10 -10
  55. package/dist/{chunk-XEPA5J6K.js → chunk-A7VNKVZO.js} +4 -4
  56. package/dist/{chunk-I6JTDAOB.js → chunk-BNPWUCZX.js} +1 -1
  57. package/dist/{chunk-M5K4AX4E.js → chunk-BUFAJJDZ.js} +1 -1
  58. package/dist/{chunk-WJ7U6TGK.js → chunk-BVX7LUAW.js} +4 -4
  59. package/dist/chunk-BWQHABH7.js +4 -0
  60. package/dist/{chunk-G4D2WM3J.js → chunk-BZRFD4DK.js} +3 -3
  61. package/dist/{chunk-U6DRRCCG.js → chunk-C5OPAULN.js} +1 -1
  62. package/dist/{chunk-MEF4JVXP.js → chunk-CCLK2RPQ.js} +14 -14
  63. package/dist/{chunk-IJNQ2BUY.js → chunk-CILE3ZCC.js} +2 -2
  64. package/dist/{chunk-KC3EX26K.js → chunk-DPFEQQQU.js} +1 -1
  65. package/dist/{chunk-ZYU5HAIC.js → chunk-E7BQZL7X.js} +1 -1
  66. package/dist/{chunk-XHD6Q6JV.js → chunk-EFO72DEI.js} +1 -1
  67. package/dist/{chunk-YM2Z4LZ2.js → chunk-EFVQQF6F.js} +17 -17
  68. package/dist/{chunk-GO2TZ35U.js → chunk-EJOKROMB.js} +1 -1
  69. package/dist/{chunk-4IYHQNKZ.js → chunk-ENDYHUUR.js} +1 -1
  70. package/dist/{chunk-4F3SUYN5.js → chunk-ETQ45TBW.js} +1 -1
  71. package/dist/chunk-EX3DARI3.js +7 -0
  72. package/dist/{chunk-JPCPO4MX.js → chunk-EZYXY67W.js} +8 -8
  73. package/dist/chunk-F2RAIGCG.js +6 -0
  74. package/dist/{chunk-ZDMZM7HD.js → chunk-FBZUEZK7.js} +2 -2
  75. package/dist/{chunk-GURY4WS5.js → chunk-FFRJ6QZK.js} +1 -1
  76. package/dist/{chunk-F5B5WOQ7.js → chunk-FKMARSJZ.js} +2 -2
  77. package/dist/chunk-FMLUQCFB.js +2 -0
  78. package/dist/chunk-FRTDUHQF.js +1 -0
  79. package/dist/{chunk-AWWNMSDN.js → chunk-FXSGIT53.js} +10 -10
  80. package/dist/{chunk-YMHCLK3F.js → chunk-FZYUTZEV.js} +10 -10
  81. package/dist/chunk-G2JPTPRS.js +13 -0
  82. package/dist/{chunk-YDFDTRZF.js → chunk-G7SILKUY.js} +5 -5
  83. package/dist/{chunk-DEYVAMJQ.js → chunk-GEITUFYK.js} +13 -13
  84. package/dist/{chunk-GSLZ46DJ.js → chunk-GMLOMLCS.js} +13 -13
  85. package/dist/{chunk-6LS6Q77E.js → chunk-GUSENWAH.js} +1 -1
  86. package/dist/{chunk-YDQBELHJ.js → chunk-H5PSCQJ2.js} +6 -6
  87. package/dist/{chunk-J6QC45OS.js → chunk-HC5KQZFG.js} +5 -5
  88. package/dist/{chunk-LXPDURUL.js → chunk-HMOKKMIV.js} +2 -2
  89. package/dist/{chunk-RFR2K7JO.js → chunk-HPHDLN6E.js} +2 -2
  90. package/dist/{chunk-I5EVMLPB.js → chunk-IJ4JX6WP.js} +4 -4
  91. package/dist/{chunk-UGEX7SVM.js → chunk-IUQJGFEO.js} +8 -8
  92. package/dist/{chunk-5HBAJ2UA.js → chunk-J4CVYOY3.js} +13 -13
  93. package/dist/{chunk-CUZQVBPC.js → chunk-JDLJ7DHV.js} +1 -1
  94. package/dist/chunk-JPE4TYRQ.js +14 -0
  95. package/dist/{chunk-4Q2CZ4US.js → chunk-JPSWWIBW.js} +6 -6
  96. package/dist/{chunk-XOQGBU25.js → chunk-K2FVP22A.js} +1 -1
  97. package/dist/{chunk-7RGHV3J5.js → chunk-KGAYYSFE.js} +6 -6
  98. package/dist/{chunk-KLUCEASW.js → chunk-KQCJWK55.js} +6 -6
  99. package/dist/{chunk-OLSA36VX.js → chunk-KSK4VZIM.js} +6 -6
  100. package/dist/{chunk-ZNKZ6J65.js → chunk-L4ZQY4ZG.js} +3 -3
  101. package/dist/chunk-LADP6AJY.js +9 -0
  102. package/dist/{chunk-W6NGPSMM.js → chunk-LGGATDPH.js} +17 -17
  103. package/dist/{chunk-PALWXHBQ.js → chunk-LKAGXURQ.js} +20 -20
  104. package/dist/chunk-LNCAIY64.js +15 -0
  105. package/dist/chunk-LQCNIQ3I.js +8 -0
  106. package/dist/{chunk-QQK7HKNK.js → chunk-LUCO5PS6.js} +1 -1
  107. package/dist/chunk-M6UKCZHT.js +2 -0
  108. package/dist/{chunk-QVQO3EFL.js → chunk-MHQW6NAE.js} +11 -11
  109. package/dist/{chunk-VCR3RADH.js → chunk-MVOYVN3S.js} +1 -1
  110. package/dist/{chunk-N2FX4O3H.js → chunk-MZ3JADHG.js} +1 -1
  111. package/dist/{chunk-SV5RRBVA.js → chunk-NWS5G7FE.js} +1 -1
  112. package/dist/{chunk-UXGNF3OG.js → chunk-OF5X4HKC.js} +1 -1
  113. package/dist/{chunk-JFRBUVHX.js → chunk-OIEFMLYI.js} +3 -3
  114. package/dist/{chunk-A4WNUFLT.js → chunk-OOGUQEPT.js} +1 -1
  115. package/dist/chunk-OUYGLDQN.js +24 -0
  116. package/dist/chunk-OXWBSZL2.js +23 -0
  117. package/dist/{chunk-NISLELJF.js → chunk-P4J26R5P.js} +1 -1
  118. package/dist/{chunk-TTLVTJR6.js → chunk-POQUUMRS.js} +2 -2
  119. package/dist/{chunk-2YK6ZB7C.js → chunk-PPLPDP6D.js} +1 -1
  120. package/dist/chunk-PTYB2GGI.js +1 -0
  121. package/dist/{chunk-QIPO4EVJ.js → chunk-Q4MOT7TY.js} +1 -1
  122. package/dist/{chunk-7TJZ5AJE.js → chunk-QNXTVDIC.js} +6 -6
  123. package/dist/{chunk-7JG64RQW.js → chunk-QSJMLHBD.js} +1 -1
  124. package/dist/{chunk-7NO4IENQ.js → chunk-R5WBDXI2.js} +1 -1
  125. package/dist/{chunk-NYKOATR5.js → chunk-RDETBXMP.js} +1 -1
  126. package/dist/{chunk-I6QVXM2M.js → chunk-RDVC32EV.js} +15 -15
  127. package/dist/chunk-RJVIKGHJ.js +4 -0
  128. package/dist/{chunk-ZOCE74ED.js → chunk-SF4IIV5Z.js} +2 -2
  129. package/dist/{chunk-RZ3OQFOD.js → chunk-SHHRC5XK.js} +8 -8
  130. package/dist/{chunk-OBZZLLMQ.js → chunk-SLEA47VA.js} +1 -1
  131. package/dist/chunk-SM3N5UJ2.js +69 -0
  132. package/dist/{chunk-F6UJLCMI.js → chunk-SUSJFGXN.js} +9 -9
  133. package/dist/{chunk-FTKLODQK.js → chunk-SXHV5OLA.js} +1 -1
  134. package/dist/{chunk-65FZQ572.js → chunk-SZFULV7I.js} +6 -6
  135. package/dist/{chunk-HZ7TUMNL.js → chunk-TB2ARUE2.js} +1 -1
  136. package/dist/{chunk-G67CJAQ2.js → chunk-TD3ZQD5R.js} +1 -1
  137. package/dist/chunk-THAPVKEJ.js +15 -0
  138. package/dist/{chunk-GKNF53YM.js → chunk-TKCCJRPE.js} +1 -1
  139. package/dist/{chunk-HNIIDDLJ.js → chunk-TNALBYLY.js} +1 -1
  140. package/dist/{chunk-6CDWPEND.js → chunk-TPKNHQIE.js} +8 -8
  141. package/dist/{chunk-42RCQEEJ.js → chunk-U5RG34NE.js} +11 -11
  142. package/dist/{chunk-VADWTS7H.js → chunk-UFWBPTCM.js} +5 -5
  143. package/dist/{chunk-23LK4PLJ.js → chunk-UGEA3C5C.js} +5 -5
  144. package/dist/{chunk-EVYD6UFQ.js → chunk-UTISUEO4.js} +2 -2
  145. package/dist/chunk-UTQN5AIO.js +6 -0
  146. package/dist/chunk-UVHXVSB2.js +1 -0
  147. package/dist/{chunk-QMBMK6PP.js → chunk-VKZC3NPM.js} +2 -2
  148. package/dist/chunk-VLX7L2AM.js +1 -0
  149. package/dist/{chunk-UZFFSZFI.js → chunk-VQBKRBBR.js} +1 -1
  150. package/dist/{chunk-GLUJS42B.js → chunk-VY3UA6AR.js} +1 -1
  151. package/dist/chunk-WCCS4VFE.js +1 -0
  152. package/dist/{chunk-P5C7DI5A.js → chunk-WPGSU4QG.js} +5 -5
  153. package/dist/{chunk-WLG7BE55.js → chunk-WRV6QKJN.js} +1 -1
  154. package/dist/{chunk-LHHJHTWP.js → chunk-WZWSFYXJ.js} +1 -1
  155. package/dist/{chunk-S6YEPA4I.js → chunk-X4E4RPFE.js} +5 -5
  156. package/dist/{chunk-M7W63T6H.js → chunk-XAT2MKNU.js} +8 -8
  157. package/dist/chunk-XD3M5ZXM.js +7 -0
  158. package/dist/{chunk-QOYKBINM.js → chunk-XQVGBVHC.js} +1 -1
  159. package/dist/{chunk-CGKY4ZRA.js → chunk-XU4I2DMR.js} +2 -2
  160. package/dist/{chunk-E6FDUFPH.js → chunk-XVMCSUAV.js} +1 -1
  161. package/dist/chunk-XXTAMF3O.js +28 -0
  162. package/dist/{chunk-6HYO2W3O.js → chunk-YCXQDUTW.js} +5 -5
  163. package/dist/{chunk-WU2ZA6J2.js → chunk-YDJ5IZOU.js} +1 -1
  164. package/dist/{chunk-LLYMOV4S.js → chunk-YQ5JHHLE.js} +1 -1
  165. package/dist/{chunk-BWLC56GZ.js → chunk-YT5HMLC7.js} +1 -1
  166. package/dist/{chunk-G4PPHQ23.js → chunk-YWMCW5BN.js} +1 -1
  167. package/dist/{chunk-WF4A2HSB.js → chunk-ZCN5BU4U.js} +1 -1
  168. package/dist/{chunk-HY6CBG4M.js → chunk-ZDFMYAQB.js} +1 -1
  169. package/dist/chunk-ZDXRSY2Y.js +1 -0
  170. package/dist/chunk-ZI2FDUYJ.js +99 -0
  171. package/dist/chunk-ZISKHQZY.js +3 -0
  172. package/dist/{chunk-DVHRL3G6.js → chunk-ZVDYRXNP.js} +6 -6
  173. package/dist/{chunk-3DWVSQIJ.js → chunk-ZYKY4Z7R.js} +1 -1
  174. package/dist/data/DataTable.js +1 -1
  175. package/dist/data/EntityList.js +1 -1
  176. package/dist/data/Gantt.js +1 -1
  177. package/dist/data/Kanban.js +1 -1
  178. package/dist/data/ListLoadError.js +1 -1
  179. package/dist/data/ResizableTable.js +1 -1
  180. package/dist/data/statusColumn.js +1 -1
  181. package/dist/data/useColumnConfig.js +1 -1
  182. package/dist/data/useSort.js +1 -1
  183. package/dist/forms/AlignmentGrid.js +1 -1
  184. package/dist/forms/BorderInput.js +1 -1
  185. package/dist/forms/BrandAssetEditor.js +1 -1
  186. package/dist/forms/Button.js +1 -1
  187. package/dist/forms/Calendar.js +1 -1
  188. package/dist/forms/ColorPicker.js +1 -1
  189. package/dist/forms/ComposerAttachments.js +1 -1
  190. package/dist/forms/CornersInput.js +1 -1
  191. package/dist/forms/DatePicker.js +1 -1
  192. package/dist/forms/DateRangePicker.js +1 -1
  193. package/dist/forms/DisplayChips.js +1 -1
  194. package/dist/forms/FilePicker.js +1 -1
  195. package/dist/forms/IconButton.js +1 -1
  196. package/dist/forms/IconPicker.js +1 -1
  197. package/dist/forms/Input.js +1 -1
  198. package/dist/forms/InputNumber.js +1 -1
  199. package/dist/forms/LinkPicker.js +1 -1
  200. package/dist/forms/MediaLibrary.js +1 -1
  201. package/dist/forms/MediaUploadField.js +1 -1
  202. package/dist/forms/MediaUploadGrid.js +1 -1
  203. package/dist/forms/MediaUsedInList.js +1 -1
  204. package/dist/forms/NumericKeypad.js +1 -1
  205. package/dist/forms/PictureTiles.js +1 -1
  206. package/dist/forms/PositionInput.js +1 -1
  207. package/dist/forms/RenameField.js +1 -1
  208. package/dist/forms/Segmented.js +1 -1
  209. package/dist/forms/Select.js +1 -1
  210. package/dist/forms/SidesInput.js +1 -1
  211. package/dist/forms/Slider.js +1 -1
  212. package/dist/forms/Snippet.js +1 -1
  213. package/dist/forms/SplitButton.js +1 -1
  214. package/dist/forms/TagInput.js +1 -1
  215. package/dist/forms/TextToolbar.js +1 -1
  216. package/dist/forms/UnitMenu.js +1 -1
  217. package/dist/forms/WidthsBar.js +1 -1
  218. package/dist/forms/dropdownPosition.js +1 -1
  219. package/dist/hooks/index.d.ts +29 -0
  220. package/dist/hooks/index.js +2 -0
  221. package/dist/hooks/useTheme.js +1 -1
  222. package/dist/icons/brands.node.js +1 -1
  223. package/dist/icons/efficient-glyphs.js +1 -1
  224. package/dist/icons/efficient-looks.js +1 -1
  225. package/dist/icons/efficient.js +1 -1
  226. package/dist/icons/looks/map.js +1 -1
  227. package/dist/icons/payment.js +1 -1
  228. package/dist/icons/sets.js +1 -1
  229. package/dist/index.d.ts +4 -40
  230. package/dist/index.js +335 -335
  231. package/dist/map/index.js +7 -7
  232. package/dist/markdown/index.js +1 -1
  233. package/dist/page-tabs/index.js +5 -5
  234. package/dist/pdf/index.js +1 -1
  235. package/dist/shell/AppUpdateBanner.js +1 -1
  236. package/dist/shell/ColoredBadge.js +1 -1
  237. package/dist/shell/ConfirmDialog.js +1 -1
  238. package/dist/shell/ContextMenu.js +1 -1
  239. package/dist/shell/Dialog.js +1 -1
  240. package/dist/shell/Drawer.js +1 -1
  241. package/dist/shell/DropdownMenu.js +1 -1
  242. package/dist/shell/EditableGrid.js +1 -1
  243. package/dist/shell/FitFrame.d.ts +46 -0
  244. package/dist/shell/FitFrame.js +2 -0
  245. package/dist/shell/FloatingBar.js +1 -1
  246. package/dist/shell/GlobalSearch.js +1 -1
  247. package/dist/shell/HelpCenter.js +1 -1
  248. package/dist/shell/IconRail.js +1 -1
  249. package/dist/shell/ImageLightbox.js +1 -1
  250. package/dist/shell/ItemCount.js +1 -1
  251. package/dist/shell/Kbd.js +1 -1
  252. package/dist/shell/LanguageSelect.js +1 -1
  253. package/dist/shell/Markdown.js +1 -1
  254. package/dist/shell/MilestoneTimeline.js +1 -1
  255. package/dist/shell/Popover.js +1 -1
  256. package/dist/shell/PopupMenu.js +1 -1
  257. package/dist/shell/ProductionTimeline.js +1 -1
  258. package/dist/shell/ResizeHandle.js +1 -1
  259. package/dist/shell/SearchableSelect.js +1 -1
  260. package/dist/shell/SettingReset.js +1 -1
  261. package/dist/shell/ShellPrefs.js +1 -1
  262. package/dist/shell/SidebarLayout.js +1 -1
  263. package/dist/shell/SidebarNav.js +1 -1
  264. package/dist/shell/SortableList.js +1 -1
  265. package/dist/shell/StatusBadge.js +1 -1
  266. package/dist/shell/Tabs.js +1 -1
  267. package/dist/shell/TimelineTrack.js +1 -1
  268. package/dist/shell/Tooltip.js +1 -1
  269. package/dist/shell/TopNav.js +1 -1
  270. package/dist/shell/TransferProgress.js +1 -1
  271. package/dist/shell/Tree.js +1 -1
  272. package/dist/shell/discardGuard.js +1 -1
  273. package/dist/telemetry/index.js +1 -1
  274. package/dist/templates/AuthScreen.js +1 -1
  275. package/dist/templates/ChatTemplate.js +1 -1
  276. package/dist/templates/CheckoutTemplate.js +1 -1
  277. package/dist/templates/DashboardTemplate.js +1 -1
  278. package/dist/templates/DataTablePage.js +1 -1
  279. package/dist/templates/EmailTemplate.js +1 -1
  280. package/dist/templates/ErrorBoundary.js +1 -1
  281. package/dist/templates/FormLayoutPage.js +1 -1
  282. package/dist/templates/GalleryTemplate.js +1 -1
  283. package/dist/ui/index.d.ts +1 -0
  284. package/dist/ui/index.js +1 -1
  285. package/dist/version.js +1 -1
  286. package/package.json +6 -1
  287. package/dist/Browser-KHMTFVKZ.js +0 -44
  288. package/dist/Calculator-OKVS4UOJ.js +0 -29
  289. package/dist/CurrencyConverter-ZA2NGJWI.js +0 -21
  290. package/dist/Notepad-PHQNEUKW.js +0 -24
  291. package/dist/PdfViewer-PFQGQRQX.js +0 -1
  292. package/dist/PomodoroTimer-PW7BRZUJ.js +0 -91
  293. package/dist/Sidebar-GYGYAXS2.js +0 -44
  294. package/dist/chunk-3DSGJIC7.js +0 -7
  295. package/dist/chunk-3J4SFHC7.js +0 -15
  296. package/dist/chunk-3QNZ7YGZ.js +0 -99
  297. package/dist/chunk-47UTEV3P.js +0 -23
  298. package/dist/chunk-6QKTQOEV.js +0 -69
  299. package/dist/chunk-7KWYVQMX.js +0 -2
  300. package/dist/chunk-7QSDPSXP.js +0 -1
  301. package/dist/chunk-AOLJKOO6.js +0 -28
  302. package/dist/chunk-ASDYAASN.js +0 -3
  303. package/dist/chunk-CBUBDXJ2.js +0 -1
  304. package/dist/chunk-D65T4H6J.js +0 -1
  305. package/dist/chunk-DQTYV6AC.js +0 -9
  306. package/dist/chunk-EV5BEEVO.js +0 -1
  307. package/dist/chunk-FHNQC2MA.js +0 -1
  308. package/dist/chunk-GOAFMGUI.js +0 -15
  309. package/dist/chunk-HNPJ3V3I.js +0 -6
  310. package/dist/chunk-KXPXLUNM.js +0 -4
  311. package/dist/chunk-MHCNQKEK.js +0 -4
  312. package/dist/chunk-O2PVZC5D.js +0 -8
  313. package/dist/chunk-QTVE3OSD.js +0 -7
  314. package/dist/chunk-RDGXSAOD.js +0 -2
  315. package/dist/chunk-SOZCWT6I.js +0 -6
  316. package/dist/chunk-WWCAVO3R.js +0 -14
  317. package/dist/chunk-XMFJDT6Y.js +0 -13
  318. package/dist/chunk-YGKLZBWC.js +0 -24
  319. /package/dist/{chunk-HOHHRNCB.js → chunk-FRCTA5FS.js} +0 -0
  320. /package/dist/{chunk-VG6BT2UG.js → chunk-YRQ5WGOM.js} +0 -0
@@ -0,0 +1,15 @@
1
+ import{optionNoteClass as e}from"./chunk-URHGHXDN.js";import{keepsNativeMenu as t}from"./chunk-5QFPTDQF.js";import{Icon as n}from"./chunk-ISVODSRP.js";import{onOverlayOpen as r}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as o}from"./chunk-62LW225J.js";import{useHydrated as i}from"./chunk-WCCS4VFE.js";import{useBrowserLayoutEffect as a}from"./chunk-ZDXRSY2Y.js";import{registerModalEscapeInterceptor as l}from"./chunk-TWVUQUUD.js";import{glassStyle as c,GLASS_DIVIDER as s}from"./chunk-5FYDNH4Y.js";import{createContext as d,forwardRef as u,useContext as p,useId as m,useRef as h,useState as f,useEffect as g,useMemo as y,useCallback as b}from"react";import{createPortal as w}from"react-dom";import{jsxs as x,jsx as k,Fragment as v}from"react/jsx-runtime";function N(e,t,n){return e.length===t+1&&e[t].key===n.key?e:[...e.slice(0,t),n]}function C(e,t){const n=Math.max(0,t);return e.length>n?e.slice(0,n):e}function E(e,t,n){if(0===t.length||0===e.length)return[];const r=[e];for(let e=1;e<t.length;e++){const o=r[e-1].find(n=>n.to===t[e].key),i=o?n(o):[];if(0===i.length)break;r.push(i)}return r}function M(e,t,n,r){const o=Math.max(0,r-n),i=Math.min(t,o),a=e-i/2;return a<n?n:a+i>r?Math.max(n,r-i):a}function T(e,t,n,r,o,i=!1,a=8){const l=t+o,c=e-o-n,s=c>=a;return i&&s?{left:c,flipped:!0}:l+n<=r-a?{left:l,flipped:!1}:s?{left:c,flipped:!0}:i?{left:a,flipped:!0}:{left:Math.max(a,r-a-n),flipped:!1}}function W(){try{return getComputedStyle(document.documentElement).getPropertyValue("--menu-density")?.trim()||"normal"}catch{return"normal"}}var $=d(null),j=d(!1);function D({children:e,style:n,className:a="",onClose:s,minWidth:d=180,portal:u=!1}){const p=h(null),b=m(),[x,v]=f([]),E=h();g(()=>()=>clearTimeout(E.current),[]);const M=i(),T=y(()=>{const e=()=>clearTimeout(E.current);return{id:b,depth:0,path:x,open:(t,n)=>{e(),v(e=>N(e,t,n))},scheduleClose:t=>{e(),E.current=setTimeout(()=>v(e=>C(e,t)),200)},closeBelow:t=>{e(),v(e=>C(e,t))},cancelClose:e,closeTree:()=>{e(),v([]),s?.()},root:p}},[b,x,s]);g(()=>{if(!s)return;const e=e=>{e.target.closest("[data-menu-toggle]")||e.target.closest?.(`[data-popup-menu-tree="${b}"]`)||p.current&&!p.current.contains(e.target)&&s()},t=e=>{"Escape"===e.key&&s()};window.addEventListener("pointerdown",e),window.addEventListener("keydown",t);const n=r(s),o=l(()=>!1,()=>p.current);return()=>{window.removeEventListener("pointerdown",e),window.removeEventListener("keydown",t),n(),o()}},[s,b]),g(()=>{const e=p.current;e&&requestAnimationFrame(()=>{const t=e.getBoundingClientRect();if(t.right>window.innerWidth-8){const n=t.right-window.innerWidth+8;e.style.left?e.style.left=parseFloat(e.style.left)-n+"px":e.style.right||(e.style.left=t.left-n+"px")}if(t.left<8&&(e.style.left?e.style.left="8px":e.style.right&&(e.style.right=window.innerWidth-t.width-8+"px")),t.bottom>window.innerHeight-8){const n=t.bottom-window.innerHeight+8;e.style.top?e.style.top=parseFloat(e.style.top)-n+"px":e.style.bottom?e.style.bottom="8px":e.style.top=t.top-n+"px"}t.top<8&&(e.style.top?e.style.top="8px":e.style.bottom&&(e.style.bottom=window.innerHeight-t.height-8+"px"))})});const j=W(),D=/(^|[\s:])!?z-/.test(a),L=/* @__PURE__ */k("div",{ref:p,"data-popup-menu-tree":b,className:`fixed rounded-(--radius-popup) ${"tight"===j?"py-1":"large"===j?"py-2":"py-1"} ${a}`,onContextMenu:e=>{t(e.target)||e.preventDefault()},style:{...D?{}:{zIndex:o.menu},minWidth:d,animation:"popup-in 0.12s ease-out",...c(),...n},children:/* @__PURE__ */k($.Provider,{value:T,children:e})});return u?M?w(L,document.body):null:L}function L(e,t,n,r=!1,o="kit"){const i=W(),a="tight"===i?"0.25rem":"large"===i?"0.6rem":0;return{className:`w-full flex items-center gap-2 text-left transition-colors rounded-lg mx-auto\n ${"none"===o?"":e?"text-red-600 not-disabled:not-aria-disabled:hover:bg-red-50":r?"bg-accent-tint text-blue-700":"text-ink not-disabled:not-aria-disabled:hover:bg-accent-tint not-disabled:not-aria-disabled:hover:text-blue-700"}\n ${t?"opacity-40 cursor-not-allowed":""}\n ${n}`,style:{width:"calc(100% - 8px)",marginLeft:4,marginRight:4,fontSize:"var(--menu-font-size, 14px)",paddingLeft:"var(--menu-padding-x, 1rem)",paddingRight:"var(--menu-padding-x, 1rem)",paddingTop:a,paddingBottom:a,..."normal"===i?{minHeight:"calc(var(--row-height-menu, 2.25rem) + 2 * (var(--menu-padding-y, 0.5rem) - 0.5rem))"}:{}}}}var B=/* @__PURE__ */k(n,{name:"check","aria-hidden":!0,className:"h-4 w-4",strokeWidth:2});function R({kind:e,checked:t}){/* @__PURE__ */
2
+ return k("span","checkbox"===e?{"aria-hidden":!0,"data-menu-check":"",className:"inline-flex h-4 w-4 shrink-0 items-center justify-center rounded border "+(t?"border-blue-600 bg-blue-600 text-white":"border-gray-400"),children:t&&B}:{"aria-hidden":!0,"data-menu-check":"",className:"inline-flex h-4 w-4 shrink-0 items-center justify-center",children:t&&B})}var H=u(function({onClick:t,children:n,className:r="",danger:o,disabled:i,role:a,checked:l,icon:c,description:s,tabIndex:d,id:u,onMouseEnter:h},f){const g=p($),y=m(),b=null!=s&&!1!==s,w=`${u??y}-label`,N=`${u??y}-note`,C=p(j),E=L(o,i,r),M=void 0===l?null:"menuitemradio"===a?"radio":"checkbox";/* @__PURE__ */
3
+ return x("button",{ref:f,id:u,role:"radio"===M?"menuitemradio":"checkbox"===M?"menuitemcheckbox":a??(C?"menuitem":void 0),"aria-checked":M?l:void 0,"aria-labelledby":b?w:void 0,"aria-describedby":b?N:void 0,tabIndex:d,onClick:()=>{t?.(),g&&g.depth>0&&"checkbox"!==M&&g.closeTree()},onMouseEnter:()=>{g?.scheduleClose(g.depth),h?.()},disabled:i,className:E.className,style:E.style,children:[M&&/* @__PURE__ */k(R,{kind:M,checked:!!l}),b?
4
+ /* @__PURE__ */x("span",{className:"block min-w-0 flex-1 py-2",children:[
5
+ /* @__PURE__ */x("span",{className:"flex items-center gap-2",children:[null!=c&&/* @__PURE__ */k(P,{children:c}),
6
+ /* @__PURE__ */k("span",{id:w,className:"min-w-0",children:n})]}),
7
+ /* @__PURE__ */k("span",{id:N,"data-menu-note":"",className:e(),style:null!=c?{paddingLeft:"1.5rem"}:void 0,children:s})]}):/* @__PURE__ */x(v,{children:[null!=c&&/* @__PURE__ */k(P,{children:c}),n]})]})});function P({children:e}){/* @__PURE__ */
8
+ return k("span",{"aria-hidden":"true","data-menu-icon":"",className:"inline-flex h-4 w-4 shrink-0 items-center justify-center",children:e})}var F=/* @__PURE__ */k(n,{name:"chevron-right","aria-hidden":!0,className:"h-3.5 w-3.5 shrink-0 ml-auto",strokeWidth:2});function A(e){let t=o.menu;for(let n=e;n&&n!==document.body;n=n.parentElement){const e=parseInt(getComputedStyle(n).zIndex,10);Number.isNaN(e)||(t=e)}return t}function S(e){return e?[...e.querySelectorAll("button:not([disabled]), a[href]")].filter(t=>t.closest("[data-popup-submenu-panel]")===e):[]}function I({label:e,icon:n,children:r,disabled:o,className:i="",minWidth:s=180,maxHeight:d,rowProps:u}){const f=p($),N=m(),C=h(null),E=h(null),j=h(),D=h(!1),B=`${N}-menu`;g(()=>()=>clearTimeout(j.current),[]);const R=f?.depth??0,H=f?.path[R],P=!!H&&H.key===N&&!o,I=b(e=>{if(!f||o||!C.current)return;clearTimeout(j.current),D.current=e;const t=C.current.getBoundingClientRect(),n=C.current.closest("[data-popup-submenu-panel]")??C.current.closest("[data-popup-menu-tree]"),r=n?.getBoundingClientRect()??t,i=R>0&&(f.path[R-1]?.flipped??!1),a=T(r.left,r.right,s,window.innerWidth,4,i);f.open(R,{key:N,y:t.top,...a})},[f,o,R,N,s]),z=e=>{f?.closeBelow(R),C.current?.focus()};g(()=>{if(P)return l(e=>"Escape"===e.key&&(!(f&&f.path.length>R+1)&&(z(),!0)),()=>E.current)}),a(()=>{if(!P||!H)return;const e=()=>{const e=E.current;if(!e||!C.current)return;const t=C.current.closest("[data-popup-submenu-panel]")??C.current.closest("[data-popup-menu-tree]"),n=t?.getBoundingClientRect()??C.current.getBoundingClientRect(),r=R>0&&(f?.path[R-1]?.flipped??!1),o=e.offsetWidth||s,i=T(n.left,n.right,o,window.innerWidth,4,r,8),a=e.offsetHeight,l=M(C.current.getBoundingClientRect().top+a/2,a,8,window.innerHeight-8);e.style.left=`${i.left}px`,e.style.top=`${l}px`,e.dataset.flipped=String(i.flipped)};e();let t=0;const n=requestAnimationFrame(()=>{t=requestAnimationFrame(e)});return()=>{cancelAnimationFrame(n),cancelAnimationFrame(t)}}),g(()=>{P&&D.current&&(D.current=!1,S(E.current)[0]?.focus())},[P]);const U=y(()=>f&&{...f,depth:R+1},[f,R]);if(!f)throw new Error("PopupSubmenu must be rendered inside a PopupMenu");const q=L(!1,o,i,P),V=W();/* @__PURE__ */
9
+ return x(v,{children:[
10
+ /* @__PURE__ */x("button",{ref:C,type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":P,"aria-controls":P?B:void 0,disabled:o,"data-popup-submenu-row":!0,className:q.className,style:q.style,onClick:e=>{const t=0===e.detail;P?t&&S(E.current)[0]?.focus():I(t)},...u,onKeyDown:e=>{"ArrowRight"===e.key&&(e.preventDefault(),e.stopPropagation(),I(!0))},onMouseEnter:()=>{u?.onMouseEnter?.(),o||(f.cancelClose(),P?f.closeBelow(R+1):(clearTimeout(j.current),j.current=setTimeout(()=>I(!1),120)))},onMouseLeave:()=>{clearTimeout(j.current),f.scheduleClose(R)},children:[n,
11
+ /* @__PURE__ */k("span",{className:"min-w-0 flex-1 truncate",children:e}),F]}),P&&w(
12
+ /* @__PURE__ */k("div",{ref:E,id:B,role:"menu","data-popup-menu-tree":f.id,"data-popup-submenu-panel":!0,className:"fixed rounded-(--radius-popup) overflow-x-hidden overflow-y-auto overscroll-contain "+("tight"===V?"py-1":"large"===V?"py-2":"py-1"),style:{left:H.left,top:H.y,minWidth:s,maxHeight:void 0===d?"calc(100vh - 16px)":`min(${"number"==typeof d?`${d}px`:d}, calc(100vh - 16px))`,zIndex:A(f.root.current)+R+1,animation:(H.flipped?"popup-submenu-in-left":"popup-submenu-in")+" 0.1s ease-out",...c()},onKeyDown:e=>{if(e.target.closest("[data-popup-submenu-panel]")!==e.currentTarget)return;const t=S(E.current),n=t.indexOf(document.activeElement),r=n=>{e.preventDefault(),e.stopPropagation(),t[(n+t.length)%t.length]?.focus()};"ArrowDown"===e.key?r(n+1):"ArrowUp"===e.key?r(n<0?t.length-1:n-1):"Home"===e.key?r(0):"End"===e.key?r(t.length-1):"ArrowLeft"===e.key&&(e.preventDefault(),e.stopPropagation(),z())},onMouseEnter:()=>{f.cancelClose(),clearTimeout(j.current)},onMouseLeave:()=>f.scheduleClose(R+1),onContextMenu:e=>{t(e.target)||e.preventDefault()},children:/* @__PURE__ */k($.Provider,{value:U,children:r})}),document.body)]})}function z(){const e=W();/* @__PURE__ */
13
+ return k("div",{className:`border-t ${s} ${"tight"===e?"my-0.5":"large"===e?"my-2":"my-1"} mx-3`})}function U(){const e=W(),t="tight"===e?"0.125rem":"large"===e?"0.375rem":"0.25rem";return{color:"var(--ink-muted)",paddingLeft:"var(--menu-padding-x, 1rem)",paddingRight:"var(--menu-padding-x, 1rem)",paddingTop:t,paddingBottom:t}}function q({children:e}){/* @__PURE__ */
14
+ return k("div",{className:"text-xs font-medium uppercase tracking-wide",style:U(),children:e})}function V({d:e,className:t="h-4 w-4"}){/* @__PURE__ */
15
+ return k("svg",{className:t,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:/* @__PURE__ */k("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})})}export{R as MenuCheckMark,V as MenuIcon,j as MenuSemanticsContext,D as PopupMenu,z as PopupMenuDivider,H as PopupMenuItem,q as PopupMenuLabel,I as PopupSubmenu,M as clampMenuTop,C as closeMenuBelow,L as itemLook,T as menuPanelLeft,U as menuTextRowStyle,N as openMenuLevel,E as resolveMenuLevels};
@@ -1,4 +1,4 @@
1
- import{SidebarLayout as e}from"./chunk-42RCQEEJ.js";import{Avatar as t}from"./chunk-W2TPXKCV.js";import{ItemCount as r}from"./chunk-FTKLODQK.js";import{Button_default as a}from"./chunk-EVYD6UFQ.js";import{useState as i}from"react";import{jsx as l,jsxs as n}from"react/jsx-runtime";var s=[{id:"inbox",label:"Inbox",count:12},{id:"starred",label:"Starred",count:3},{id:"sent",label:"Sent"},{id:"drafts",label:"Drafts",count:1},{id:"archive",label:"Archive"},{id:"trash",label:"Trash"}],d=[{id:1,from:"Marco Reyes",subject:"Q3 roadmap review",preview:"Sharing the deck ahead of Thursday — let me know what you think before the review.",time:"9:14",unread:!0},{id:2,from:"Priya Patel",subject:"Design handoff",preview:"The Figma file is ready for engineering. I exported every icon at 1x and 2x.",time:"8:02",unread:!0},{id:3,from:"GitHub",subject:"[acme/web] PR #482 merged",preview:"Your pull request was merged into main by the release bot after all checks passed.",time:"Yest"},{id:4,from:"Sara Lind",subject:"Lunch Friday?",preview:"A few of us are heading to the new place on 5th at noon if you want to join.",time:"Yest"}];function c(){const[c,o]=i(1),m=d.find(e=>e.id===c)??d[0];/* @__PURE__ */
1
+ import{SidebarLayout as e}from"./chunk-U5RG34NE.js";import{Avatar as t}from"./chunk-W2TPXKCV.js";import{ItemCount as r}from"./chunk-SXHV5OLA.js";import{Button_default as a}from"./chunk-UTISUEO4.js";import{useState as i}from"react";import{jsx as l,jsxs as n}from"react/jsx-runtime";var s=[{id:"inbox",label:"Inbox",count:12},{id:"starred",label:"Starred",count:3},{id:"sent",label:"Sent"},{id:"drafts",label:"Drafts",count:1},{id:"archive",label:"Archive"},{id:"trash",label:"Trash"}],d=[{id:1,from:"Marco Reyes",subject:"Q3 roadmap review",preview:"Sharing the deck ahead of Thursday — let me know what you think before the review.",time:"9:14",unread:!0},{id:2,from:"Priya Patel",subject:"Design handoff",preview:"The Figma file is ready for engineering. I exported every icon at 1x and 2x.",time:"8:02",unread:!0},{id:3,from:"GitHub",subject:"[acme/web] PR #482 merged",preview:"Your pull request was merged into main by the release bot after all checks passed.",time:"Yest"},{id:4,from:"Sara Lind",subject:"Lunch Friday?",preview:"A few of us are heading to the new place on 5th at noon if you want to join.",time:"Yest"}];function c(){const[c,o]=i(1),m=d.find(e=>e.id===c)??d[0];/* @__PURE__ */
2
2
  return l("div",{className:"h-full",children:/* @__PURE__ */l(e,{side:"left",defaultWidth:200,sidebar:/* @__PURE__ */n("div",{className:"flex h-full flex-col p-2",children:[
3
3
  /* @__PURE__ */l(a,{block:!0,className:"mb-2",children:"Compose"}),s.map((e,t)=>/* @__PURE__ */n("button",{className:"flex items-center justify-between rounded-md px-3 py-2 text-left text-sm "+(0===t?"bg-blue-50 font-medium text-blue-700":"text-gray-700 hover:bg-gray-100"),children:[
4
4
  /* @__PURE__ */l("span",{children:e.label}),null!=e.count&&/* @__PURE__ */l(r,{count:e.count,active:0===t})]},e.id))]}),children:/* @__PURE__ */n("div",{className:"flex h-full",children:[
@@ -1,4 +1,4 @@
1
- import{choiceTrackClass as e,choiceTipClass as l,ChoiceContent as a,choiceItemClass as i}from"./chunk-EFKJLUYP.js";import{Tooltip as r}from"./chunk-SOZCWT6I.js";import{useId as s}from"react";import{jsx as n,jsxs as o}from"react/jsx-runtime";function t({value:t,onChange:c,options:d,name:b,size:u="md",block:m=!1,label:h,className:p="","aria-labelledby":v,"aria-describedby":f}){const g={"aria-label":v?void 0:h,"aria-labelledby":v,"aria-describedby":f},N=s(),y=e(m,p),k=l(m);/* @__PURE__ */
1
+ import{choiceTrackClass as e,choiceTipClass as l,ChoiceContent as a,choiceItemClass as i}from"./chunk-EFKJLUYP.js";import{Tooltip as r}from"./chunk-F2RAIGCG.js";import{useId as s}from"react";import{jsx as n,jsxs as o}from"react/jsx-runtime";function t({value:t,onChange:c,options:d,name:b,size:u="md",block:m=!1,label:h,className:p="","aria-labelledby":v,"aria-describedby":f}){const g={"aria-label":v?void 0:h,"aria-labelledby":v,"aria-describedby":f},N=s(),y=e(m,p),k=l(m);/* @__PURE__ */
2
2
  return n("div",b?{role:"radiogroup",...g,className:y,children:d.map(e=>{const l=`${N}-${e.value}`,s=e.value===t,d=/* @__PURE__ */o("label",{htmlFor:l,className:i({size:u,selected:s,disabled:e.disabled,block:m}),children:[
3
3
  /* @__PURE__ */n("input",{id:l,type:"radio",name:b,value:e.value,checked:s,disabled:e.disabled,"aria-describedby":e.title?`${l}-note`:void 0,onChange:()=>c(e.value),className:"absolute inset-0 m-0 h-full w-full appearance-none rounded-[inherit] bg-transparent cursor-[inherit] rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]"}),
4
4
  /* @__PURE__ */n(a,{icon:e.icon,label:e.label}),e.title&&/* @__PURE__ */n("span",{id:`${l}-note`,className:"sr-only",children:e.title})]},e.value);return e.title?/* @__PURE__ */n(r,{content:e.title,className:k,children:d},e.value):d})}:{role:"group",...g,className:y,children:d.map(e=>{const l=e.value===t,s=/* @__PURE__ */n("button",{type:"button","aria-pressed":l,disabled:e.disabled,onClick:()=>c(e.value),className:i({size:u,selected:l,disabled:e.disabled,block:m}),children:/* @__PURE__ */n(a,{icon:e.icon,label:e.label})},e.value);return e.title?/* @__PURE__ */n(r,{content:e.title,className:k,children:s},e.value):s})})}export{t as Segmented};
@@ -1,14 +1,14 @@
1
- import{FormField as e}from"./chunk-6KBDNYRW.js";import{zoneFocusClass as t,mediaPromptLine as r,UploadGlyph as a,dropzoneClass as n,BusyOverlay as l,isVideoUrl as i,mediaFileName as o,FilenameBadge as s}from"./chunk-G4PPHQ23.js";import{useFileIntake as d,FileIntakeAlert as c}from"./chunk-VFSAJMNX.js";import{ColoredBadge as u}from"./chunk-WLG7BE55.js";import{MENU_ON_MEDIA_ATTR as m}from"./chunk-5QFPTDQF.js";import{Icon as p}from"./chunk-ISVODSRP.js";import{Tooltip as f}from"./chunk-SOZCWT6I.js";import{useShellStrings as h}from"./chunk-IUVGHHR3.js";import{useId as g,useState as b,useRef as y}from"react";import{jsxs as v,jsx as x}from"react/jsx-runtime";var k=112,D=/* @__PURE__ */x(p,{name:"close",strokeWidth:2,strokeLinecap:"round","aria-hidden":"true",className:"h-3 w-3"});function N({items:p,onPick:k,onFiles:N,onRemove:w,onReorder:j,dragType:T,onDragOutChange:K,dropType:C,onDropData:A,label:I,hint:S,error:O,required:P,className:F,accept:L="image/*",maxSizeBytes:z,maxFiles:E,fit:H="cover",thumbSize:$=96,placeholder:M,cta:R,acceptHint:W,showCover:B=!1,coverLabel:G,busy:Q=!1,busyLabel:V,progress:q,disabled:U=!1,readOnly:J=!1,selected:X,onItemClick:Y,onItemDoubleClick:Z,onItemContextMenu:_,menuOnMedia:ee=!1}){const te=h().media,re=R??te.cta,ae=G??te.cover,ne=V??te.uploading,le=g(),[ie,oe]=b(null),se=U||Q,de=!(!k&&!N||se||J),ce=!!w&&!se&&!J,ue=!!j&&!se&&!J,me=!!T&&!U&&!ue,pe=!(!C||!A||se||J),fe=t(se),he=M??r(L,te),ge=d({accept:L,maxSizeBytes:z,maxFiles:E,acceptHint:W,multiple:!0,disabled:!de,currentCount:p.length,onAccept:e=>{if(N)N(e);else for(const t of e)k(t)}}),[be,ye]=b(!1),ve=y(0),xe=e=>pe&&Array.from(e.dataTransfer?.types??[]).includes(C),ke=ge.zoneProps,De={onDragEnter:e=>{if(!xe(e))return ke.onDragEnter?.(e);e.preventDefault(),ve.current+=1,ye(!0)},onDragOver:e=>{if(!xe(e))return ke.onDragOver?.(e);e.preventDefault(),e.dataTransfer.dropEffect="link",be||ye(!0)},onDragLeave:e=>{if(!xe(e))return ke.onDragLeave?.(e);ve.current=Math.max(0,ve.current-1),0===ve.current&&ye(!1)},onDrop:e=>{if(!xe(e))return ke.onDrop?.(e);e.preventDefault(),ve.current=0,ye(!1);const t=e.dataTransfer.getData(C);t&&A(t)}},Ne=ge.dragOver||be,we=()=>{de&&(k?k():ge.open())},je={width:$,height:$},Te=null==X?null:new Set(X),Ke=!!Y,Ce=$<112,Ae=(e,t)=>{const r=e.kind?"video"===e.kind:i(e.url,L),a=e.name??o(e.url),n=B&&(e.cover??0===t);/* @__PURE__ */
2
- return v("div",{...Ke?{"data-grid-item":"","data-grid-id":e.id,role:"option"}:{},...ee?{[m]:""}:{},"aria-selected":Te?Te.has(e.id):void 0,onClick:Ke?t=>{t.target.closest?.("button")||Y(e.id,{ctrlKey:t.ctrlKey,metaKey:t.metaKey,shiftKey:t.shiftKey})}:void 0,onDoubleClick:Z?()=>Z(e.id):void 0,onContextMenu:_?t=>_(e.id,t):void 0,draggable:ue||me&&!!e.dragData||void 0,onDragStart:ue?e=>{e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",String(t)),oe(t)}:me&&e.dragData?t=>{t.dataTransfer.effectAllowed=e.dragAlso?"all":"link",t.dataTransfer.setData(T,e.dragData);for(const[r,a]of Object.entries(e.dragAlso??{}))t.dataTransfer.setData(r,a);K?.("start",e.id,t.currentTarget)}:void 0,onDragEnd:ue?()=>oe(null):me&&e.dragData&&K?t=>K("none"===t.dataTransfer.dropEffect?"cancelled":"dropped",e.id):void 0,onDragOver:ue?e=>{null!=ie&&(e.preventDefault(),e.stopPropagation())}:void 0,onDrop:ue?e=>{null!=ie&&(e.preventDefault(),e.stopPropagation(),ie!==t&&j(ie,t),oe(null))}:void 0,tabIndex:ue||Ke?0:void 0,"aria-label":ue?te.reorder(a,t+1,p.length):Ke?a:void 0,onKeyDown:Ke&&!ue?t=>{t.target!==t.currentTarget||"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),Y(e.id,{ctrlKey:t.ctrlKey,metaKey:t.metaKey,shiftKey:t.shiftKey}))}:ue?e=>{"ArrowLeft"===e.key||"ArrowUp"===e.key?t>0&&(e.preventDefault(),j(t,t-1)):"ArrowRight"!==e.key&&"ArrowDown"!==e.key||t<p.length-1&&(e.preventDefault(),j(t,t+1))}:void 0,className:["relative shrink-0 overflow-hidden rounded-md border border-line bg-gray-100",fe,ie===t?"opacity-50":"",Te?.has(e.id)?"ring-2 ring-blue-500 ring-offset-1":"",Ke?"cursor-pointer":""].join(" "),style:{...je,cursor:ue?"move":void 0},children:[r?/* @__PURE__ */x("video",{src:e.url,muted:!0,playsInline:!0,preload:"metadata","aria-label":a,className:"h-full w-full",style:{objectFit:H}}):/* @__PURE__ */x("img",{src:e.url,alt:a,className:"h-full w-full",style:{objectFit:H}}),n&&/* @__PURE__ */x("span",{className:"absolute left-1 top-1 rounded bg-accent-fill px-2 py-0.5 text-xs font-medium text-on-accent",children:ae}),!n&&null!=e.mark&&/* @__PURE__ */x("span",{className:"absolute left-1 top-1 inline-flex items-center gap-1 rounded px-2 py-0.5 text-xs font-medium text-on-accent",style:{background:"var(--rosh-media-scrim)"},children:e.mark}),!n&&null==e.mark&&!!e.badges?.length&&
3
- /* @__PURE__ */x("span",{"data-tile-badges":"",className:"absolute left-1 top-1 flex flex-nowrap items-center gap-1 overflow-hidden rounded-md bg-surface p-0.5 shadow-sm",style:{maxWidth:"calc(100% - 8px)"},children:e.badges.map(e=>/* @__PURE__ */x("span",{"data-tile-badge":"",className:"flex min-w-0",children:Ce?
1
+ import{FormField as e}from"./chunk-6KBDNYRW.js";import{zoneFocusClass as t,mediaPromptLine as r,UploadGlyph as a,dropzoneClass as n,BusyOverlay as l,isVideoUrl as i,mediaFileName as o,FilenameBadge as s}from"./chunk-YWMCW5BN.js";import{useFileIntake as d,FileIntakeAlert as c}from"./chunk-VFSAJMNX.js";import{ColoredBadge as u}from"./chunk-WRV6QKJN.js";import{MENU_ON_MEDIA_ATTR as m}from"./chunk-5QFPTDQF.js";import{Icon as p}from"./chunk-ISVODSRP.js";import{Tooltip as f}from"./chunk-F2RAIGCG.js";import{useShellStrings as h}from"./chunk-IUVGHHR3.js";import{useId as g,useState as b,useRef as y}from"react";import{jsxs as v,jsx as x}from"react/jsx-runtime";var k=112,D=/* @__PURE__ */x(p,{name:"close",strokeWidth:2,strokeLinecap:"round","aria-hidden":"true",className:"h-3 w-3"});function N({items:p,onPick:k,onFiles:N,onRemove:w,onReorder:j,dragType:K,onDragOutChange:C,dropType:T,onDropData:A,label:I,hint:F,error:S,required:O,className:P,accept:R="image/*",maxSizeBytes:z,maxFiles:L,fit:M="cover",thumbSize:$=96,placeholder:E,cta:H,acceptHint:W,showCover:B=!1,coverLabel:V,busy:G=!1,busyLabel:Q,progress:q,disabled:J=!1,readOnly:U=!1,selected:Y,onItemClick:X,onItemDoubleClick:Z,onItemContextMenu:_,menuOnMedia:ee=!1}){const te=h().media,re=H??te.cta,ae=V??te.cover,ne=Q??te.uploading,le=g(),[ie,oe]=b(null),se=J||G,de=!(!k&&!N||se||U),ce=!!w&&!se&&!U,ue=!!j&&!se&&!U,me=!!K&&!J&&!ue,pe=!(!T||!A||se||U),fe=t(se),he=E??r(R,te),ge=d({accept:R,maxSizeBytes:z,maxFiles:L,acceptHint:W,multiple:!0,disabled:!de,currentCount:p.length,onAccept:e=>{if(N)N(e);else for(const t of e)k(t)}}),[be,ye]=b(!1),ve=y(0),xe=e=>pe&&Array.from(e.dataTransfer?.types??[]).includes(T),ke=ge.zoneProps,De={onDragEnter:e=>{if(!xe(e))return ke.onDragEnter?.(e);e.preventDefault(),ve.current+=1,ye(!0)},onDragOver:e=>{if(!xe(e))return ke.onDragOver?.(e);e.preventDefault(),e.dataTransfer.dropEffect="link",be||ye(!0)},onDragLeave:e=>{if(!xe(e))return ke.onDragLeave?.(e);ve.current=Math.max(0,ve.current-1),0===ve.current&&ye(!1)},onDrop:e=>{if(!xe(e))return ke.onDrop?.(e);e.preventDefault(),ve.current=0,ye(!1);const t=e.dataTransfer.getData(T);t&&A(t)}},Ne=ge.dragOver||be,we=()=>{de&&(k?k():ge.open())},je={width:$,height:$},Ke=null==Y?null:new Set(Y),Ce=!!X,Te=$<112,Ae=(e,t)=>{const r=e.kind?"video"===e.kind:i(e.url,R),a=e.name??o(e.url),n=B&&(e.cover??0===t);/* @__PURE__ */
2
+ return v("div",{...Ce?{"data-grid-item":"","data-grid-id":e.id,role:"option"}:{},...ee?{[m]:""}:{},"aria-selected":Ke?Ke.has(e.id):void 0,onClick:Ce?t=>{t.target.closest?.("button")||X(e.id,{ctrlKey:t.ctrlKey,metaKey:t.metaKey,shiftKey:t.shiftKey})}:void 0,onDoubleClick:Z?()=>Z(e.id):void 0,onContextMenu:_?t=>_(e.id,t):void 0,draggable:ue||me&&!!e.dragData||void 0,onDragStart:ue?e=>{e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",String(t)),oe(t)}:me&&e.dragData?t=>{t.dataTransfer.effectAllowed=e.dragAlso?"all":"link",t.dataTransfer.setData(K,e.dragData);for(const[r,a]of Object.entries(e.dragAlso??{}))t.dataTransfer.setData(r,a);C?.("start",e.id,t.currentTarget)}:void 0,onDragEnd:ue?()=>oe(null):me&&e.dragData&&C?t=>C("none"===t.dataTransfer.dropEffect?"cancelled":"dropped",e.id):void 0,onDragOver:ue?e=>{null!=ie&&(e.preventDefault(),e.stopPropagation())}:void 0,onDrop:ue?e=>{null!=ie&&(e.preventDefault(),e.stopPropagation(),ie!==t&&j(ie,t),oe(null))}:void 0,tabIndex:ue||Ce?0:void 0,"aria-label":ue?te.reorder(a,t+1,p.length):Ce?a:void 0,onKeyDown:Ce&&!ue?t=>{t.target!==t.currentTarget||"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),X(e.id,{ctrlKey:t.ctrlKey,metaKey:t.metaKey,shiftKey:t.shiftKey}))}:ue?e=>{"ArrowLeft"===e.key||"ArrowUp"===e.key?t>0&&(e.preventDefault(),j(t,t-1)):"ArrowRight"!==e.key&&"ArrowDown"!==e.key||t<p.length-1&&(e.preventDefault(),j(t,t+1))}:void 0,className:["relative shrink-0 overflow-hidden rounded-md border border-line bg-gray-100",fe,ie===t?"opacity-50":"",Ke?.has(e.id)?"ring-2 ring-blue-500 ring-offset-1":"",Ce?"cursor-pointer":""].join(" "),style:{...je,cursor:ue?"move":void 0},children:[r?/* @__PURE__ */x("video",{src:e.url,muted:!0,playsInline:!0,preload:"metadata","aria-label":a,className:"h-full w-full",style:{objectFit:M}}):/* @__PURE__ */x("img",{src:e.url,alt:a,className:"h-full w-full",style:{objectFit:M}}),n&&/* @__PURE__ */x("span",{className:"absolute left-1 top-1 rounded bg-accent-fill px-2 py-0.5 text-xs font-medium text-on-accent",children:ae}),!n&&null!=e.mark&&/* @__PURE__ */x("span",{className:"absolute left-1 top-1 inline-flex items-center gap-1 rounded px-2 py-0.5 text-xs font-medium text-on-accent",style:{background:"var(--rosh-media-scrim)"},children:e.mark}),!n&&null==e.mark&&!!e.badges?.length&&
3
+ /* @__PURE__ */x("span",{"data-tile-badges":"",className:"absolute left-1 top-1 flex flex-nowrap items-center gap-1 overflow-hidden rounded-md bg-surface p-0.5 shadow-sm",style:{maxWidth:"calc(100% - 8px)"},children:e.badges.map(e=>/* @__PURE__ */x("span",{"data-tile-badge":"",className:"flex min-w-0",children:Te?
4
4
  /* @__PURE__ */x(f,{content:e.label,children:/* @__PURE__ */x("span",{tabIndex:0,"aria-label":e.label,className:`flex rounded-full ${fe}`,children:/* @__PURE__ */x(u,{tone:e.tone,size:"xs",children:/* @__PURE__ */v("span",{"aria-hidden":"true",className:"inline-flex items-center gap-0.5",children:[
5
5
  /* @__PURE__ */x("span",{className:"inline-flex h-3 w-3 shrink-0 items-center justify-center",children:e.icon}),null!=e.count&&/* @__PURE__ */x("span",{children:e.count})]})})})}):/* @__PURE__ */x(u,{tone:e.tone,size:"xs",children:e.label})},e.key))}),null!=e.caption&&/* @__PURE__ */x(s,{children:e.caption}),ce&&/* @__PURE__ */x("button",{type:"button",onClick:()=>w(e.id),"aria-label":e.removeLabel??te.removeItem(a),className:`absolute right-1 top-1 flex h-5 w-5 items-center justify-center rounded-full text-white ${fe}`,style:{background:"var(--rosh-media-scrim-button)"},children:D})]},e.id)},Ie=de&&/* @__PURE__ */v("button",{type:"button",onClick:()=>we(),"aria-label":te.addMedia,className:`flex shrink-0 flex-col items-center justify-center gap-1 rounded-md border-2 border-dashed border-gray-300 bg-gray-50 text-gray-400 transition-colors hover:bg-gray-100 hover:text-gray-500 ${fe}`,style:je,children:[
6
6
  /* @__PURE__ */x(a,{className:"h-5 w-5"}),
7
- /* @__PURE__ */x("span",{className:"text-xs font-medium text-gray-500",children:te.add})]}),Se=de?/* @__PURE__ */v("button",{type:"button",onClick:()=>we(),"aria-label":"string"==typeof he?he:te.upload,className:n(Ne,!1,fe),style:{minHeight:$+32},children:[
7
+ /* @__PURE__ */x("span",{className:"text-xs font-medium text-gray-500",children:te.add})]}),Fe=de?/* @__PURE__ */v("button",{type:"button",onClick:()=>we(),"aria-label":"string"==typeof he?he:te.upload,className:n(Ne,!1,fe),style:{minHeight:$+32},children:[
8
8
  /* @__PURE__ */x("span",{className:"text-ink-faintest",children:/* @__PURE__ */x(a,{})}),
9
9
  /* @__PURE__ */x("span",{className:"px-3 text-xs text-ink-faint",children:he}),
10
- /* @__PURE__ */x("span",{className:"text-sm font-medium text-blue-600",children:re}),W&&/* @__PURE__ */x("span",{className:"text-xs text-ink-faintest",children:W})]}):/* @__PURE__ */x("div",{className:"flex w-full items-center justify-center rounded-lg border border-line bg-surface-sunken px-3 text-xs text-ink-faintest",style:{minHeight:$+32},children:/* @__PURE__ */x("span",{className:Q?"invisible":void 0,children:te.empty})});/* @__PURE__ */
11
- return v(e,{label:I,labelId:I?`${le}-label`:void 0,htmlFor:le,hint:S,error:O,required:P,className:F,children:[
12
- /* @__PURE__ */v("div",{id:le,role:"group","aria-labelledby":I?`${le}-label`:void 0,"aria-describedby":O?`${le}-error`:S?`${le}-hint`:void 0,"aria-busy":Q||void 0,...ge.zoneProps,...pe?De:{},className:"relative rounded-lg transition-colors",style:{...se?{opacity:.6}:{},...Ne?{boxShadow:"0 0 0 2px var(--rosh-drop-ring)"}:{}},children:[0===p.length?Se:/* @__PURE__ */v("div",{className:"flex flex-wrap gap-2",children:[Ke?
13
- /* @__PURE__ */x("div",{role:"listbox","aria-multiselectable":!!Te||void 0,"aria-label":"string"==typeof I?I:te.files,className:"contents",children:p.map(Ae)}):p.map(Ae),Ie]}),Q&&/* @__PURE__ */x(l,{label:ne,progress:q})]}),!k&&N&&/* @__PURE__ */x("input",{...ge.inputProps}),
10
+ /* @__PURE__ */x("span",{className:"text-sm font-medium text-blue-600",children:re}),W&&/* @__PURE__ */x("span",{className:"text-xs text-ink-faintest",children:W})]}):/* @__PURE__ */x("div",{className:"flex w-full items-center justify-center rounded-lg border border-line bg-surface-sunken px-3 text-xs text-ink-faintest",style:{minHeight:$+32},children:/* @__PURE__ */x("span",{className:G?"invisible":void 0,children:te.empty})});/* @__PURE__ */
11
+ return v(e,{label:I,labelId:I?`${le}-label`:void 0,htmlFor:le,hint:F,error:S,required:O,className:P,children:[
12
+ /* @__PURE__ */v("div",{id:le,role:"group","aria-labelledby":I?`${le}-label`:void 0,"aria-describedby":S?`${le}-error`:F?`${le}-hint`:void 0,"aria-busy":G||void 0,...ge.zoneProps,...pe?De:{},className:"relative rounded-lg transition-colors",style:{...se?{opacity:.6}:{},...Ne?{boxShadow:"0 0 0 2px var(--rosh-drop-ring)"}:{}},children:[0===p.length?Fe:/* @__PURE__ */v("div",{className:"flex flex-wrap gap-2",children:[Ce?
13
+ /* @__PURE__ */x("div",{role:"listbox","aria-multiselectable":!!Ke||void 0,"aria-label":"string"==typeof I?I:te.files,className:"contents",children:p.map(Ae)}):p.map(Ae),Ie]}),G&&/* @__PURE__ */x(l,{label:ne,progress:q})]}),!k&&N&&/* @__PURE__ */x("input",{...ge.inputProps}),
14
14
  /* @__PURE__ */x(c,{rejections:ge.rejections})]})}export{k as FULL_BADGE_TILE_PX,N as MediaUploadGrid};
@@ -1,14 +1,14 @@
1
- import{readStoredWidth as e,ResizeHandle as r}from"./chunk-LXPDURUL.js";import{SidebarBarContext as l,SidebarSheetContext as t}from"./chunk-QWK6DRSN.js";import{useIsPhone as a}from"./chunk-UGTRSRIW.js";import{Icon as n}from"./chunk-ISVODSRP.js";import{PANEL_SURFACE as o}from"./chunk-BWJZTHZ6.js";import{useBrowserState as i}from"./chunk-D65T4H6J.js";import{useShellStrings as s}from"./chunk-IUVGHHR3.js";import{useState as c,useRef as d,useReducer as h,useMemo as u,Fragment as m,useEffect as f}from"react";import{jsxs as p,jsx as b}from"react/jsx-runtime";var x=(e,r,l)=>Math.min(Math.max(e,r),l);function g({sidebar:l,sidebarTop:t,sidebarBottom:n,children:o,side:m="left",storageKey:f,defaultWidth:g=256,minWidth:k=180,maxWidth:y=480,className:w="",sidebarClassName:j=("right"===m?"border-l border-gray-200 bg-gray-50":"border-r border-gray-200 bg-gray-50"),contentClassName:D="bg-white"}){const P="right"===m,R=s().sidebar,W=a(),z=function(){const[e,r]=c(!1),l=d(null),t=d(/* @__PURE__ */new Map),[,a]=h(e=>e+1,0),n=u(()=>({report(e,r,l){const n={label:r,el:l};return t.current.set(e,n),a(),()=>{t.current.get(e)===n&&(t.current.delete(e),a())}}}),[]);return{api:n,open:e,setOpen:r,current:()=>[...t.current.values()].sort((e,r)=>e.el&&r.el&&e.el.compareDocumentPosition(r.el)&Node.DOCUMENT_POSITION_PRECEDING?1:-1).map(e=>e.label()),trigger:l}}(),[C,I]=i(()=>(f?e(f,k,y):null)??x(g,k,y),x(g,k,y)),O=null!=t||null!=n,$=/* @__PURE__ */p("div",{className:"relative flex h-full shrink-0 flex-col",style:{width:C},children:[
2
- /* @__PURE__ */p("div",{className:`flex h-full flex-col ${O?"overflow-hidden":"overflow-y-auto"} ${j}`,children:[null!=t&&/* @__PURE__ */b("div",{className:"flex shrink-0 flex-col gap-2 px-2 pt-3 pb-2",children:t}),O?/* @__PURE__ */b("div",{className:"min-h-0 flex-1 overflow-y-auto",children:l}):l,null!=n&&/* @__PURE__ */b("div",{className:"mt-auto flex shrink-0 flex-col gap-2 border-t border-gray-200 px-2 py-3",children:n})]}),
3
- /* @__PURE__ */b(r,{side:m,width:C,onResize:I,min:k,max:y,defaultWidth:x(g,k,y),storageKey:f,hint:R.resize})]}),S=/* @__PURE__ */b("div",{className:`flex min-w-0 flex-1 flex-col ${D}`,children:o});/* @__PURE__ */
4
- return p("div",W?{className:`relative flex h-full w-full flex-col overflow-hidden ${w}`,children:[
5
- /* @__PURE__ */b(v,{phone:z,top:t,fallback:R.sections}),S,
6
- /* @__PURE__ */b(N,{phone:z,bottom:n,label:R.sections,closeLabel:R.closeSections,children:l})]}:{className:`flex h-full w-full overflow-hidden ${w}`,children:[P?null:$,S,P?$:null]})}function v({phone:e,top:r,fallback:t}){const a=e.current();/* @__PURE__ */
1
+ import{SidebarBarContext as e,SidebarSheetContext as r}from"./chunk-QWK6DRSN.js";import{readStoredWidth as l,ResizeHandle as t}from"./chunk-HMOKKMIV.js";import{useIsPhone as a}from"./chunk-UGTRSRIW.js";import{Icon as n}from"./chunk-ISVODSRP.js";import{PANEL_SURFACE as o}from"./chunk-BWJZTHZ6.js";import{useBrowserState as i}from"./chunk-WCCS4VFE.js";import{useShellStrings as s}from"./chunk-IUVGHHR3.js";import{useState as c,useRef as d,useReducer as h,useMemo as u,Fragment as m,useEffect as f}from"react";import{jsxs as p,jsx as b}from"react/jsx-runtime";var x=(e,r,l)=>Math.min(Math.max(e,r),l);function g({sidebar:e,sidebarTop:r,sidebarBottom:n,children:o,side:m="left",storageKey:f,defaultWidth:g=256,minWidth:k=180,maxWidth:y=480,className:w="",sidebarClassName:C=("right"===m?"border-l border-gray-200 bg-gray-50":"border-r border-gray-200 bg-gray-50"),contentClassName:W="bg-white"}){const j="right"===m,I=s().sidebar,O=a(),z=function(){const[e,r]=c(!1),l=d(null),t=d(/* @__PURE__ */new Map),[,a]=h(e=>e+1,0),n=u(()=>({report(e,r,l){const n={label:r,el:l};return t.current.set(e,n),a(),()=>{t.current.get(e)===n&&(t.current.delete(e),a())}}}),[]);return{api:n,open:e,setOpen:r,current:()=>[...t.current.values()].sort((e,r)=>e.el&&r.el&&e.el.compareDocumentPosition(r.el)&Node.DOCUMENT_POSITION_PRECEDING?1:-1).map(e=>e.label()),trigger:l}}(),[P,R]=i(()=>(f?l(f,k,y):null)??x(g,k,y),x(g,k,y)),S=null!=r||null!=n,$=/* @__PURE__ */p("div",{className:"relative flex h-full shrink-0 flex-col",style:{width:P},children:[
2
+ /* @__PURE__ */p("div",{className:`flex h-full flex-col ${S?"overflow-hidden":"overflow-y-auto"} ${C}`,children:[null!=r&&/* @__PURE__ */b("div",{className:"flex shrink-0 flex-col gap-2 px-2 pt-3 pb-2",children:r}),S?/* @__PURE__ */b("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e}):e,null!=n&&/* @__PURE__ */b("div",{className:"mt-auto flex shrink-0 flex-col gap-2 border-t border-gray-200 px-2 py-3",children:n})]}),
3
+ /* @__PURE__ */b(t,{side:m,width:P,onResize:R,min:k,max:y,defaultWidth:x(g,k,y),storageKey:f,hint:I.resize})]}),D=/* @__PURE__ */b("div",{className:`flex min-w-0 flex-1 flex-col ${W}`,children:o});/* @__PURE__ */
4
+ return p("div",O?{className:`relative flex h-full w-full flex-col overflow-hidden ${w}`,children:[
5
+ /* @__PURE__ */b(v,{phone:z,top:r,fallback:I.sections}),D,
6
+ /* @__PURE__ */b(N,{phone:z,bottom:n,label:I.sections,closeLabel:I.closeSections,children:e})]}:{className:`flex h-full w-full overflow-hidden ${w}`,children:[j?null:$,D,j?$:null]})}function v({phone:r,top:l,fallback:t}){const a=r.current();/* @__PURE__ */
7
7
  return p("div",{"data-sidebar-section-bar":!0,className:"flex h-11 shrink-0 items-center gap-2 border-b border-gray-200 bg-white px-3",children:[
8
- /* @__PURE__ */p("button",{ref:e.trigger,type:"button","aria-haspopup":"dialog","aria-expanded":e.open,onClick:()=>e.setOpen(!0),className:"flex h-8 min-w-0 flex-1 items-center gap-1 text-left text-sm font-semibold text-gray-900",children:[
8
+ /* @__PURE__ */p("button",{ref:r.trigger,type:"button","aria-haspopup":"dialog","aria-expanded":r.open,onClick:()=>r.setOpen(!0),className:"flex h-8 min-w-0 flex-1 items-center gap-1 text-left text-sm font-semibold text-gray-900",children:[
9
9
  /* @__PURE__ */b("span",{className:"min-w-0 truncate",children:0===a.length?t:a.map((e,r)=>/* @__PURE__ */p(m,{children:[r>0&&" · ",e]},r))}),
10
- /* @__PURE__ */b(n,{name:"chevron-down",className:"size-4 shrink-0",strokeWidth:2,"aria-hidden":"true"})]}),null!=r&&/* @__PURE__ */b(l.Provider,{value:!0,children:/* @__PURE__ */b("div",{className:"flex min-w-0 max-w-[60%] shrink-0 items-center gap-2",children:r})})]})}function N({phone:e,bottom:r,label:l,closeLabel:a,children:n}){const i=d(null),{open:s,setOpen:c,trigger:h}=e,u=()=>{c(!1),i.current?.contains(document.activeElement)&&h.current?.focus()};return f(()=>{s&&i.current?.focus()},[s]),
11
- /* @__PURE__ */p(t.Provider,{value:e.api,children:[s&&/* @__PURE__ */b("button",{type:"button","aria-label":a,onClick:u,className:"absolute inset-0 z-(--z-in-box) cursor-default bg-gray-900/40"}),
12
- /* @__PURE__ */p("div",{ref:i,role:"dialog","aria-modal":"true","aria-label":l,tabIndex:-1,"data-sidebar-section-sheet":!0,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),u())},onClick:e=>{const r=e.target.closest("button, a");!r||r.hasAttribute("aria-expanded")||r.closest("[data-sheet-keep-open]")||u()},className:`${s?"flex":"hidden"} absolute inset-x-0 bottom-0 z-(--z-in-box) max-h-[75%] flex-col rounded-t-2xl pt-2 ${o}`,children:[
10
+ /* @__PURE__ */b(n,{name:"chevron-down",className:"size-4 shrink-0",strokeWidth:2,"aria-hidden":"true"})]}),null!=l&&/* @__PURE__ */b(e.Provider,{value:!0,children:/* @__PURE__ */b("div",{className:"flex min-w-0 max-w-[60%] shrink-0 items-center gap-2",children:l})})]})}function N({phone:e,bottom:l,label:t,closeLabel:a,children:n}){const i=d(null),{open:s,setOpen:c,trigger:h}=e,u=()=>{c(!1),i.current?.contains(document.activeElement)&&h.current?.focus()};return f(()=>{s&&i.current?.focus()},[s]),
11
+ /* @__PURE__ */p(r.Provider,{value:e.api,children:[s&&/* @__PURE__ */b("button",{type:"button","aria-label":a,onClick:u,className:"absolute inset-0 z-(--z-in-box) cursor-default bg-gray-900/40"}),
12
+ /* @__PURE__ */p("div",{ref:i,role:"dialog","aria-modal":"true","aria-label":t,tabIndex:-1,"data-sidebar-section-sheet":!0,onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),u())},onClick:e=>{const r=e.target.closest("button, a");!r||r.hasAttribute("aria-expanded")||r.closest("[data-sheet-keep-open]")||u()},className:`${s?"flex":"hidden"} absolute inset-x-0 bottom-0 z-(--z-in-box) max-h-[75%] flex-col rounded-t-2xl pt-2 ${o}`,children:[
13
13
  /* @__PURE__ */b("div",{className:"mx-auto mb-2 h-1 w-9 shrink-0 rounded-full bg-gray-300","aria-hidden":"true"}),
14
- /* @__PURE__ */b("div",{className:"min-h-0 flex-1 overflow-y-auto px-2 pb-3",children:n}),null!=r&&/* @__PURE__ */b("div",{className:"flex shrink-0 flex-col gap-2 border-t border-gray-200 px-2 py-3",children:r})]})]})}export{g as SidebarLayout};
14
+ /* @__PURE__ */b("div",{className:"min-h-0 flex-1 overflow-y-auto px-2 pb-3",children:n}),null!=l&&/* @__PURE__ */b("div",{className:"flex shrink-0 flex-col gap-2 border-t border-gray-200 px-2 py-3",children:l})]})]})}export{g as SidebarLayout};
@@ -1,6 +1,6 @@
1
- import{InputNumber_default as e}from"./chunk-F5B5WOQ7.js";import{useSettingAuto as t}from"./chunk-2NMW66P5.js";import{Tooltip as n}from"./chunk-SOZCWT6I.js";import{useBrowserLayoutEffect as r}from"./chunk-D65T4H6J.js";import{useShellStrings as i}from"./chunk-IUVGHHR3.js";import{createContext as o,useState as l,useMemo as a,useId as u,useRef as s,useEffect as c,useContext as d}from"react";import{jsx as f,jsxs as m}from"react/jsx-runtime";var p=(e,t,n)=>Math.min(n,Math.max(t,e));function h(e){const t=String(e),n=/e-(\d+)$/.exec(t);return n?Number(n[1]):t.split(".")[1]?.length??0}var x={sm:{left:10,plain:8,unit:40,text:"text-xs"},md:{left:14,plain:12,unit:40,text:"text-sm"}},v={"--rosh-slider-gap":"var(--space-12)","--rosh-slider-floor":"4rem"},b={position:"absolute",left:0,top:0,width:"max-content",height:0,overflow:"hidden",visibility:"hidden",pointerEvents:"none",whiteSpace:"pre"},g={display:"block",width:"max-content"},y=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u;function w(e){return Math.max(1,...e.map(e=>[...e??""].reduce((e,t)=>e+(y.test(t)?2:1),0)))}function S(e,t,n,r){return Number(p(e,t,n).toFixed(r))}var F=o(null);function z({children:e}){const[t,n]=l({}),r=a(()=>(e,t)=>n(n=>{if(null===t){if(!(e in n))return n;const t={...n};return delete t[e],t}return n[e]===t?n:{...n,[e]:t}}),[]),i=a(()=>{const e=Object.values(t);return{set:r,width:e.length?`max(${e.join(", ")})`:null}},[t,r]);/* @__PURE__ */
2
- return f(F.Provider,{value:i,children:e})}function k({value:o,onChange:a,min:y,max:z,step:k=1,shiftStep:N,precision:L,inputMin:R,inputMax:j,suffix:C,units:E,onCommit:$,showInput:B=!0,emptyLabel:W,placeholderValue:K,stepFrom:M,label:O,"aria-labelledby":H,valueText:A,id:D,disabled:V,size:q="md",boxSize:I="sm",className:P="",auto:T}){const U=i(),G=u(),J=s(o);r(()=>{J.current=o},[o]);const Q=s(o),Z=e=>{J.current=e,a(e)},X=()=>{Q.current=J.current},Y=()=>{$&&J.current!==Q.current&&(Q.current=J.current,$(J.current))},_=s(null),ee=s(Y);ee.current=Y;const te=Boolean($);c(()=>{const e=_.current;if(!te||!e)return;const t=()=>ee.current();return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[te]);const ne=t(),re=T??ne,ie=u(),oe=D??G,le=L??h(k),ae=R??y,ue=j??z,se=void 0!==W||void 0!==K,ce=M??K,de=p(o??K??y,y,z),fe=[y.toFixed(le),z.toFixed(le),o?.toFixed(le),W,K?.toFixed(le)],me=null!=o?o.toFixed(le):W||(null!=K?K.toFixed(le):void 0),pe=s(null),he=s(null),[xe,ve]=l(null),be=s(null),ge=Boolean(C);r(()=>{if(!B)return;const e=()=>{const e=pe.current?.querySelector("input"),t=he.current;if(!e||!t)return;const n=getComputedStyle(e),r=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"].reduce((e,t)=>e+(parseFloat(n[t])||0),0);if(r<=0)return;Object.assign(t.style,{fontFamily:n.fontFamily,fontSize:n.fontSize,fontWeight:n.fontWeight,fontVariantNumeric:n.fontVariantNumeric,letterSpacing:n.letterSpacing});const i=Math.ceil(t.getBoundingClientRect().width);if(i<=0)return;const o=t.querySelector("[data-shown]"),l=e.clientWidth-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0),a=!!o&&o.getBoundingClientRect().width>l+.5,u=be.current;if(be.current={box:u?.box??{frame:r,fontSize:n.fontSize,text:i,cut:a},room:l},u&&u.box.frame===r&&u.box.fontSize===n.fontSize&&u.box.text===i&&u.box.cut===a)return;const s={frame:r,fontSize:n.fontSize,text:i,cut:a};be.current={box:s,room:l},ve(s)};e(),window.addEventListener("resize",e);const t="undefined"!=typeof document?document.fonts:void 0;t?.addEventListener?.("loadingdone",e);let n=null;if("undefined"!=typeof ResizeObserver){n=new ResizeObserver(()=>e());const t=pe.current?.querySelector("input");t&&n.observe(t),he.current&&n.observe(he.current)}return()=>{window.removeEventListener("resize",e),t?.removeEventListener?.("loadingdone",e),n?.disconnect()}},[ge,B,I]),r(()=>{const e=be.current;if(!e)return;const t=e.box.text<=e.room+.5?null:he.current?.querySelector("[data-shown]"),n=!!t&&t.getBoundingClientRect().width>e.room+.5;if(n===e.box.cut)return;const r={...e.box,cut:n};be.current={box:r,room:e.room},ve(r)},[me]);const ye=e=>A?A(e):"string"==typeof C?`${e.toFixed(le)} ${C}`:void 0,we=null==o?W??(null!=K?ye(K)??String(K):void 0):ye(o),Se=x[I],Fe=fe.filter(e=>Boolean(e)),ze=void 0===me?-1:Fe.indexOf(me),ke=xe?`${xe.text+xe.frame+2}px`:`calc(${w(fe)}ch + ${Se.left+(ge?Se.unit:Se.plain)+2}px)`,Ne=d(F),Le=u(),Re=Ne?.set;return r(()=>{Re&&Re(Le,B?ke:null)},[Re,Le,ke,B]),c(()=>()=>Re?.(Le,null),[Re,Le]),/* @__PURE__ */m("div",{"data-slider":"",className:`flex w-full min-w-0 items-center gap-(--rosh-slider-gap) ${P}`.trim(),style:v,children:[
3
- /* @__PURE__ */f("input",{id:oe,type:"range",min:y,max:z,step:k,value:de,disabled:V,"aria-label":H?void 0:O,"aria-labelledby":H,"aria-valuetext":we,"aria-describedby":re?ie:void 0,onKeyDown:e=>{const t="ArrowUp"===e.key||"ArrowRight"===e.key?1:"ArrowDown"===e.key||"ArrowLeft"===e.key?-1:0;if(!t||e.altKey||e.ctrlKey||e.metaKey)return;const n=e.shiftKey&&null!=N;if(!n&&!(null==o&&null!=ce))return;e.preventDefault();Z(S((o??ce??de)+t*(n?N??k:k),y,z,le)),Y()},ref:_,onFocus:$&&X,onPointerDown:$&&X,onChange:e=>Z(S(Number(e.target.value),y,z,le)),className:"min-w-(--rosh-slider-floor) flex-1 cursor-pointer accent-blue-600 disabled:cursor-not-allowed disabled:opacity-60 "+("sm"===q?"h-1":"h-1.5")}),B&&
4
- /* @__PURE__ */f(n,{content:xe?.cut?me:null,className:"relative flex min-w-0 max-w-[calc(100%-var(--rosh-slider-floor)-var(--rosh-slider-gap))] shrink-0",describe:!1,children:/* @__PURE__ */m("div",{ref:pe,"data-slider-box":"",onKeyUp:$&&(e=>{const t=e.target;"Enter"===e.key&&"INPUT"===t.tagName&&"range"!==t.getAttribute("type")&&Y()}),onFocus:$&&X,className:`relative min-w-0 max-w-full shrink-0 ${Se.text}`,style:{position:"relative",width:Ne?.width??ke,...xe?{fontSize:xe.fontSize}:{}},children:[
1
+ import{InputNumber_default as e}from"./chunk-FKMARSJZ.js";import{useSettingAuto as t}from"./chunk-2NMW66P5.js";import{Tooltip as n}from"./chunk-F2RAIGCG.js";import{useBrowserLayoutEffect as r}from"./chunk-ZDXRSY2Y.js";import{useShellStrings as i}from"./chunk-IUVGHHR3.js";import{createContext as o,useState as l,useMemo as a,useId as u,useRef as s,useEffect as c,useContext as d}from"react";import{jsx as f,jsxs as m}from"react/jsx-runtime";var p=(e,t,n)=>Math.min(n,Math.max(t,e));function h(e){const t=String(e),n=/e-(\d+)$/.exec(t);return n?Number(n[1]):t.split(".")[1]?.length??0}var x={sm:{left:10,plain:8,unit:40,text:"text-xs"},md:{left:14,plain:12,unit:40,text:"text-sm"}},v={"--rosh-slider-gap":"var(--space-12)","--rosh-slider-floor":"4rem"},b={position:"absolute",left:0,top:0,width:"max-content",height:0,overflow:"hidden",visibility:"hidden",pointerEvents:"none",whiteSpace:"pre"},g={display:"block",width:"max-content"},y=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u;function w(e){return Math.max(1,...e.map(e=>[...e??""].reduce((e,t)=>e+(y.test(t)?2:1),0)))}function S(e,t,n,r){return Number(p(e,t,n).toFixed(r))}var F=o(null);function z({children:e}){const[t,n]=l({}),r=a(()=>(e,t)=>n(n=>{if(null===t){if(!(e in n))return n;const t={...n};return delete t[e],t}return n[e]===t?n:{...n,[e]:t}}),[]),i=a(()=>{const e=Object.values(t);return{set:r,width:e.length?`max(${e.join(", ")})`:null}},[t,r]);/* @__PURE__ */
2
+ return f(F.Provider,{value:i,children:e})}function k({value:o,onChange:a,min:y,max:z,step:k=1,shiftStep:N,precision:R,inputMin:L,inputMax:j,suffix:C,units:E,onCommit:$,showInput:K=!0,emptyLabel:M,placeholderValue:A,stepFrom:B,label:W,"aria-labelledby":D,valueText:H,id:O,disabled:V,size:q="md",boxSize:I="sm",className:P="",auto:U}){const G=i(),T=u(),Y=s(o);r(()=>{Y.current=o},[o]);const Z=s(o),J=e=>{Y.current=e,a(e)},X=()=>{Z.current=Y.current},Q=()=>{$&&Y.current!==Z.current&&(Z.current=Y.current,$(Y.current))},_=s(null),ee=s(Q);ee.current=Q;const te=Boolean($);c(()=>{const e=_.current;if(!te||!e)return;const t=()=>ee.current();return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[te]);const ne=t(),re=U??ne,ie=u(),oe=O??T,le=R??h(k),ae=L??y,ue=j??z,se=void 0!==M||void 0!==A,ce=B??A,de=p(o??A??y,y,z),fe=[y.toFixed(le),z.toFixed(le),o?.toFixed(le),M,A?.toFixed(le)],me=null!=o?o.toFixed(le):M||(null!=A?A.toFixed(le):void 0),pe=s(null),he=s(null),[xe,ve]=l(null),be=s(null),ge=Boolean(C);r(()=>{if(!K)return;const e=()=>{const e=pe.current?.querySelector("input"),t=he.current;if(!e||!t)return;const n=getComputedStyle(e),r=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"].reduce((e,t)=>e+(parseFloat(n[t])||0),0);if(r<=0)return;Object.assign(t.style,{fontFamily:n.fontFamily,fontSize:n.fontSize,fontWeight:n.fontWeight,fontVariantNumeric:n.fontVariantNumeric,letterSpacing:n.letterSpacing});const i=Math.ceil(t.getBoundingClientRect().width);if(i<=0)return;const o=t.querySelector("[data-shown]"),l=e.clientWidth-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0),a=!!o&&o.getBoundingClientRect().width>l+.5,u=be.current;if(be.current={box:u?.box??{frame:r,fontSize:n.fontSize,text:i,cut:a},room:l},u&&u.box.frame===r&&u.box.fontSize===n.fontSize&&u.box.text===i&&u.box.cut===a)return;const s={frame:r,fontSize:n.fontSize,text:i,cut:a};be.current={box:s,room:l},ve(s)};e(),window.addEventListener("resize",e);const t="undefined"!=typeof document?document.fonts:void 0;t?.addEventListener?.("loadingdone",e);let n=null;if("undefined"!=typeof ResizeObserver){n=new ResizeObserver(()=>e());const t=pe.current?.querySelector("input");t&&n.observe(t),he.current&&n.observe(he.current)}return()=>{window.removeEventListener("resize",e),t?.removeEventListener?.("loadingdone",e),n?.disconnect()}},[ge,K,I]),r(()=>{const e=be.current;if(!e)return;const t=e.box.text<=e.room+.5?null:he.current?.querySelector("[data-shown]"),n=!!t&&t.getBoundingClientRect().width>e.room+.5;if(n===e.box.cut)return;const r={...e.box,cut:n};be.current={box:r,room:e.room},ve(r)},[me]);const ye=e=>H?H(e):"string"==typeof C?`${e.toFixed(le)} ${C}`:void 0,we=null==o?M??(null!=A?ye(A)??String(A):void 0):ye(o),Se=x[I],Fe=fe.filter(e=>Boolean(e)),ze=void 0===me?-1:Fe.indexOf(me),ke=xe?`${xe.text+xe.frame+2}px`:`calc(${w(fe)}ch + ${Se.left+(ge?Se.unit:Se.plain)+2}px)`,Ne=d(F),Re=u(),Le=Ne?.set;return r(()=>{Le&&Le(Re,K?ke:null)},[Le,Re,ke,K]),c(()=>()=>Le?.(Re,null),[Le,Re]),/* @__PURE__ */m("div",{"data-slider":"",className:`flex w-full min-w-0 items-center gap-(--rosh-slider-gap) ${P}`.trim(),style:v,children:[
3
+ /* @__PURE__ */f("input",{id:oe,type:"range",min:y,max:z,step:k,value:de,disabled:V,"aria-label":D?void 0:W,"aria-labelledby":D,"aria-valuetext":we,"aria-describedby":re?ie:void 0,onKeyDown:e=>{const t="ArrowUp"===e.key||"ArrowRight"===e.key?1:"ArrowDown"===e.key||"ArrowLeft"===e.key?-1:0;if(!t||e.altKey||e.ctrlKey||e.metaKey)return;const n=e.shiftKey&&null!=N;if(!n&&!(null==o&&null!=ce))return;e.preventDefault();J(S((o??ce??de)+t*(n?N??k:k),y,z,le)),Q()},ref:_,onFocus:$&&X,onPointerDown:$&&X,onChange:e=>J(S(Number(e.target.value),y,z,le)),className:"min-w-(--rosh-slider-floor) flex-1 cursor-pointer accent-blue-600 disabled:cursor-not-allowed disabled:opacity-60 "+("sm"===q?"h-1":"h-1.5")}),K&&
4
+ /* @__PURE__ */f(n,{content:xe?.cut?me:null,className:"relative flex min-w-0 max-w-[calc(100%-var(--rosh-slider-floor)-var(--rosh-slider-gap))] shrink-0",describe:!1,children:/* @__PURE__ */m("div",{ref:pe,"data-slider-box":"",onKeyUp:$&&(e=>{const t=e.target;"Enter"===e.key&&"INPUT"===t.tagName&&"range"!==t.getAttribute("type")&&Q()}),onFocus:$&&X,className:`relative min-w-0 max-w-full shrink-0 ${Se.text}`,style:{position:"relative",width:Ne?.width??ke,...xe?{fontSize:xe.fontSize}:{}},children:[
5
5
  /* @__PURE__ */f("span",{ref:he,"data-slider-sizer":"","aria-hidden":"true",style:b,children:Fe.map((e,t)=>/* @__PURE__ */f("span",{"data-shown":t===ze?"":void 0,style:g,children:e},t))}),
6
- /* @__PURE__ */f(e,{value:o,onChange:e=>{null!=e?e<ae||e>ue||Z(e):se&&Z(null)},min:ae,max:ue,step:k,shiftStep:N,stepFrom:ce,precision:le,snap:!0,allowEmpty:se,suffix:C,units:E,onBlur:$&&Y,disabled:V,placeholder:W??(null!=K?K.toFixed(le):void 0),size:I,auto:re,"aria-label":O?U.slider.value(O):void 0,"aria-labelledby":O?void 0:H})]})}),re&&/* @__PURE__ */f("span",{id:ie,hidden:!0,children:U.settingView.auto})]})}export{k as Slider,z as SliderGroup,S as settleSliderValue,w as sliderBoxChars,h as stepDecimals};
6
+ /* @__PURE__ */f(e,{value:o,onChange:e=>{null!=e?e<ae||e>ue||J(e):se&&J(null)},min:ae,max:ue,step:k,shiftStep:N,stepFrom:ce,precision:le,snap:!0,allowEmpty:se,suffix:C,units:E,onBlur:$&&Q,disabled:V,placeholder:M??(null!=A?A.toFixed(le):void 0),size:I,auto:re,"aria-label":W?G.slider.value(W):void 0,"aria-labelledby":W?void 0:D})]})}),re&&/* @__PURE__ */f("span",{id:ie,hidden:!0,children:G.settingView.auto})]})}export{k as Slider,z as SliderGroup,S as settleSliderValue,w as sliderBoxChars,h as stepDecimals};
@@ -1,11 +1,11 @@
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__ */
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-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
3
  /* @__PURE__ */d("svg",{width:"100%",height:v,viewBox:`0 0 ${v} ${v}`,role:"img","aria-labelledby":H,onMouseLeave:()=>P(null),children:[
4
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)}]})}),
5
+ return d("g",{opacity:c?.4:1,onMouseEnter:()=>P(r),className:M?e.sweep:void 0,style:M?t(r,70):void 0,children:[
6
+ /* @__PURE__ */p("path",{d:a(U,V,m,o,h,h+f),fill:i.grid}),
7
+ /* @__PURE__ */p("path",{d:a(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:a(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}),
@@ -1,2 +1,2 @@
1
- import{isAriaDisabled as e,swallowPress as a,describedByWith as r,OffWithReason as i}from"./chunk-M5K4AX4E.js";import{SpinnerRing as s}from"./chunk-R2VKEMZH.js";import{buttonClasses as l}from"./chunk-UQYNPYF4.js";import{forwardRef as d,useId as n}from"react";import{jsxs as t,jsx as c}from"react/jsx-runtime";var o=d(function({variant:d="primary",size:o="md",loading:m=!1,leftIcon:p,rightIcon:b,block:f=!1,disabled:u,type:h="button",children:k,className:x="",disabledReason:N,onClick:y,pressed:v,"aria-disabled":g,"aria-describedby":j,...w},z){const C=n(),E=u||m,I=null!=N&&""!==N,K=E&&I,M=!E&&e(g),R=M&&I,Y=K||R?C:void 0,A=/* @__PURE__ */t("button",{ref:z,type:h,disabled:E,"aria-busy":m||void 0,"aria-disabled":!!M||g,"aria-describedby":r(j,Y),onClick:M?a:y,className:l({variant:d,size:o,block:f,pressed:v??(!0===w["aria-pressed"]||"true"===w["aria-pressed"]),className:x}),...w,children:[m?/* @__PURE__ */c(s,{className:"h-3.5 w-3.5",ink:""}):p,k,!m&&b]});return R?/* @__PURE__ */c(i,{reason:N,id:C,block:f,children:A}):K?/* @__PURE__ */t("span",{className:f?"flex w-full flex-col gap-1":"inline-flex flex-col items-start gap-1",children:[A,
2
- /* @__PURE__ */c("span",{id:Y,className:"text-xs text-red-600",children:N})]}):A});export{o as Button_default};
1
+ import{isAriaDisabled as e,swallowPress as a,describedByWith as r,OffWithReason as i}from"./chunk-BUFAJJDZ.js";import{SpinnerRing as s}from"./chunk-R2VKEMZH.js";import{buttonClasses as l}from"./chunk-UQYNPYF4.js";import{forwardRef as d,useId as n}from"react";import{jsxs as t,jsx as c}from"react/jsx-runtime";var o=d(function({variant:d="primary",size:o="md",loading:m=!1,leftIcon:p,rightIcon:b,block:f=!1,disabled:u,type:h="button",children:k,className:x="",disabledReason:N,onClick:y,pressed:v,"aria-disabled":g,"aria-describedby":j,...w},z){const C=n(),F=u||m,I=null!=N&&""!==N,J=F&&I,R=!F&&e(g),U=R&&I,Y=J||U?C:void 0,Z=/* @__PURE__ */t("button",{ref:z,type:h,disabled:F,"aria-busy":m||void 0,"aria-disabled":!!R||g,"aria-describedby":r(j,Y),onClick:R?a:y,className:l({variant:d,size:o,block:f,pressed:v??(!0===w["aria-pressed"]||"true"===w["aria-pressed"]),className:x}),...w,children:[m?/* @__PURE__ */c(s,{className:"h-3.5 w-3.5",ink:""}):p,k,!m&&b]});return U?/* @__PURE__ */c(i,{reason:N,id:C,block:f,children:Z}):J?/* @__PURE__ */t("span",{className:f?"flex w-full flex-col gap-1":"inline-flex flex-col items-start gap-1",children:[Z,
2
+ /* @__PURE__ */c("span",{id:Y,className:"text-xs text-red-600",children:N})]}):Z});export{o as Button_default};
@@ -0,0 +1,6 @@
1
+ import{useOverlayTarget as e,usePopupAnchor as r,usePanelPosition as l,usePopupLevel as t,usePopupLevelBindings as i,windowScrimStyle as a,OverlayLayerProvider as o,scrimHasCorners as n,CloseButton as s,popupLayerStyle as d,POPUP_GUTTER as c}from"./chunk-SF4IIV5Z.js";import{useDiscardGuard as m}from"./chunk-FRCTA5FS.js";import{dialogA11y as p}from"./chunk-VWGWZY7A.js";import{useDismissPopupsOnOpen as u}from"./chunk-UVHXVSB2.js";import{useFocusTrap as f,useScrollLock as h}from"./chunk-DWGYC7OD.js";import{HEADING_TEXT as x,DESCRIPTION_TEXT as v,PANEL_SURFACE as b}from"./chunk-BWJZTHZ6.js";import{useHydrated as w}from"./chunk-WCCS4VFE.js";import{registerModalEscapeInterceptor as y}from"./chunk-TWVUQUUD.js";import{useShellStrings as $}from"./chunk-IUVGHHR3.js";import{useRef as g,useId as N,useState as j,useEffect as k}from"react";import{createPortal as C}from"react-dom";import{jsxs as V,Fragment as W,jsx as F}from"react/jsx-runtime";var H=`calc(100% - ${2*c}px)`,U="grid grid-cols-[minmax(0,1fr)_auto]",B="bg-black/30 backdrop-blur-sm",I={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-4xl","2xl":"max-w-6xl",full:"max-w-none"};function S({open:c,onClose:S,title:T,description:Z,role:A="dialog",children:D,footer:E,headerActions:G,blocking:_=!1,size:R="md",aside:Y=!1,dirty:z=!1,initialFocus:J,"aria-label":O,"aria-labelledby":Q,"aria-describedby":X,className:q=""}){const K=g(null),L=N(),M=N(),P=!_,ee="full"===R,re=ee||null!=G,le=Boolean(T||Z),te=N();$().dialog;const ie=e(w()),[ae,oe]=j(null),ne=m({open:c,dirty:z,onClose:S,title:T,layer:ae}),se=g(null),de=r(c&&null!==ie,se),ce=l(de,K),me=t(c&&null!==ie,se),pe=i(me,ae),ue=a(me),fe=null!==me.host;if(u(c),f(K,c&&null!==ie,J,pe),h(c),k(()=>{if(c)return y(()=>!pe.current?.(document.activeElement)&&(_||ne(),!0),()=>K.current)},[c,_,ne,pe]),!c||!ie)return null;/* @__PURE__ */
2
+ return V(W,{children:[/* @__PURE__ */F("span",{ref:se,hidden:!0,"data-popup-anchor":""}),C(
3
+ /* @__PURE__ */F(o,{value:ae,children:/* @__PURE__ */V("div",{ref:oe,className:"fixed inset-0"+(Y?" pointer-events-none opacity-0":fe?" pointer-events-none":""),style:d(me),role:"presentation","data-overlay-layer":"","data-aside":Y?"":void 0,children:[!fe&&/* @__PURE__ */F("div",{className:`fixed inset-0 ${B}`,"aria-hidden":"true","data-popup-scrim":"system"}),ue&&/* @__PURE__ */F("div",{className:`fixed ${B}${Y?"":" pointer-events-auto"}${n(me)?" rounded-(--radius-window)":""}`,style:ue,onClick:_?void 0:ne,"aria-hidden":"true","data-popup-scrim":"window"}),
4
+ /* @__PURE__ */F("div",{className:de?"fixed inset-0":"fixed inset-0 flex items-center justify-center p-4",onClick:_||fe?void 0:e=>{e.target===e.currentTarget&&ne()},children:/* @__PURE__ */V("div",{ref:K,"data-popup-panel":"",style:de?{left:ce?.left??0,top:ce?.top??0,visibility:ce?void 0:"hidden",width:H,[ee?"height":"maxHeight"]:H}:void 0,...p({role:A,modal:!0,titleId:T?te:void 0,labelledBy:Q,label:O}),"aria-describedby":X??(Z?M:D?L:void 0),className:(ee?`${de?"absolute":"relative h-full w-full max-h-full"} ${I[R]} ${U} grid-rows-[auto_minmax(0,1fr)_auto] overflow-hidden rounded-(--radius-popup) ${b}`:`${de?"absolute":"relative max-h-full w-full"} ${I[R]}${re?` ${U} content-start gap-x-2`:""} overflow-y-auto overscroll-contain rounded-(--radius-card) ${b} p-6`)+`${fe&&!Y?" pointer-events-auto":""} ${q}`.trimEnd(),children:[ee?le&&
5
+ /* @__PURE__ */V("div",{className:"col-start-1 row-start-1 flex min-h-(--row-height-window-bar) flex-col justify-center border-b border-line py-2 pl-6 pr-4",children:[T&&/* @__PURE__ */F("h2",{id:te,className:x,children:T}),Z&&/* @__PURE__ */F("p",{id:M,className:`${T?"mt-1 ":""}${v}`,children:Z})]}):T&&/* @__PURE__ */F("h2",{id:te,className:`${re?"col-start-1 row-start-1 ":P?"pr-8 ":""}${x}`,children:T}),!ee&&Z&&/* @__PURE__ */F("p",{id:M,className:`${re?"col-start-1 ":""}${T?"mt-1":P&&!re?"pr-8":""} ${v}`.trim(),children:Z}),D&&/* @__PURE__ */F("div",{id:L,className:ee?"col-span-2 row-start-2 min-h-0 overflow-auto":(re?"col-span-2 ":"")+"mt-2 text-sm text-gray-600",children:D}),E&&/* @__PURE__ */F("div",{className:ee?"col-span-2 row-start-3 flex flex-wrap justify-end gap-3 border-t border-line px-6 py-4":(re?"col-span-2 ":"")+"mt-6 flex flex-wrap justify-end gap-3",children:E}),re?
6
+ /* @__PURE__ */V("div",{className:"col-start-2 row-start-1 flex items-center gap-1 "+(ee?(le?"border-b border-line ":"")+"pr-3":"-mr-3 -mt-3 self-start"),children:[G,P&&/* @__PURE__ */F(s,{onClose:ne})]}):P&&/* @__PURE__ */F(s,{onClose:ne,className:"absolute right-3 top-3"})]})})]})}),ie)]})}export{S as Dialog};
@@ -0,0 +1 @@
1
+ import{dismissPopups as o}from"./chunk-PGN5ME7B.js";import{useBrowserLayoutEffect as r}from"./chunk-ZDXRSY2Y.js";function m(m){r(()=>{m&&o()},[m])}export{m as useDismissPopupsOnOpen};
@@ -1,2 +1,2 @@
1
- import{renderMenuEntries as e,menuStatusIds as t}from"./chunk-UZFFSZFI.js";import{PopupMenu as n,MenuSemanticsContext as r}from"./chunk-GOAFMGUI.js";import{leavesContextMenuAlone as o}from"./chunk-5QFPTDQF.js";import{placeAtPoint as i,popupBounds as l}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as c}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as u}from"./chunk-TWVUQUUD.js";import{useRef as s,useId as a,useState as d,useEffect as m,useCallback as f}from"react";import{jsx as p,jsxs as v}from"react/jsx-runtime";function h(e){return e?[...e.querySelectorAll("button:not([disabled]), a[href]")].filter(e=>!e.closest("[data-popup-submenu-panel]")):[]}function w({at:o,onClose:w,items:y,linkAs:g,children:k,owner:E,"aria-label":b,minWidth:x=180,className:H="",autoFocus:D=!0}){const L=s(null),A=a(),[S,U]=d(null),j=s(w);j.current=w,c(()=>{const e=L.current?.closest("[data-popup-menu-tree]");if(!e)return;const t={width:e.offsetWidth,height:e.offsetHeight},n=i({point:o,menu:t,bounds:l(E??null)});U(e=>e&&e.left===n.left&&e.top===n.top&&e.maxHeight===n.maxHeight?e:{left:n.left,top:n.top,maxHeight:n.maxHeight,scroll:t.height>n.maxHeight})},[o.x,o.y,E]);const F=s(null),C=s(!1);m(()=>(F.current=document.activeElement,()=>{const e=document.activeElement;e&&e!==document.body&&!L.current?.contains(e)||F.current?.focus?.({preventScroll:!0})}),[]),m(()=>{S&&!C.current&&D&&(C.current=!0,h(L.current)[0]?.focus({preventScroll:!0}))},[S,D]),m(()=>{if(D)return;const e=e=>{if(L.current?.contains(document.activeElement))return;const t=h(L.current),n="ArrowDown"===e.key||"Home"===e.key?t[0]:"ArrowUp"===e.key||"End"===e.key?t[t.length-1]:void 0;n&&(e.preventDefault(),n.focus({preventScroll:!0}))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[D]),m(()=>u(e=>"Escape"===e.key&&(j.current(),!0),()=>L.current),[]),m(()=>{const e=()=>j.current();return window.addEventListener("resize",e),window.addEventListener("blur",e),window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("blur",e),window.removeEventListener("scroll",e,!0)}},[]);const T=f(e=>{if(e.target.closest("[data-popup-submenu-panel]"))return;if("Tab"===e.key)return e.preventDefault(),void j.current();const t=h(L.current);if(0===t.length)return;const n=t.indexOf(document.activeElement),r="ArrowDown"===e.key?(n+1)%t.length:"ArrowUp"===e.key?n<=0?t.length-1:n-1:"Home"===e.key?0:"End"===e.key?t.length-1:-1;r<0||(e.preventDefault(),t[r].focus())},[]),W=S?{left:S.left,top:S.top,maxHeight:S.maxHeight,...S.scroll?{overflowY:"auto"}:{}}:{left:o.x,top:o.y,visibility:"hidden"};/* @__PURE__ */
2
- return p(n,{portal:!0,minWidth:x,style:W,onClose:w,className:H,children:/* @__PURE__ */p(r.Provider,{value:!0,children:/* @__PURE__ */v("div",{ref:L,id:A,role:"menu","aria-label":b,"aria-describedby":y?t(y,A):void 0,"data-context-menu":"",onKeyDown:T,children:[y&&e(y,{menuId:A,choose:e=>{e.disabled||(j.current(),e.onSelect())},toggle:e=>{e.disabled||e.onSelect()},followLink:()=>j.current(),linkAs:g}),k]})})})}function y(){const[e,t]=d(null),n=f(()=>t(null),[]),r=f((e,n)=>{const r="nativeEvent"in e?e.nativeEvent:e;if(o(r))return!1;e.preventDefault();const i=e.target instanceof Element?e.target:null;let{clientX:l,clientY:c}=e;if(0===l&&0===c&&i){const e=i.getBoundingClientRect();l=e.left,c=e.bottom}return t({x:l,y:c,data:n,owner:i}),!0},[]),i=f(e=>{r(e,void 0)},[r]);return{open:r,onContextMenu:i,close:n,state:e,props:{at:{x:e?.x??0,y:e?.y??0},owner:e?.owner??null,onClose:n}}}export{w as ContextMenu,y as useContextMenu};
1
+ import{renderMenuEntries as e,menuStatusIds as t}from"./chunk-VQBKRBBR.js";import{PopupMenu as n,MenuSemanticsContext as r}from"./chunk-THAPVKEJ.js";import{leavesContextMenuAlone as o}from"./chunk-5QFPTDQF.js";import{placeAtPoint as i,popupBounds as l}from"./chunk-VY3UA6AR.js";import{useBrowserLayoutEffect as c}from"./chunk-ZDXRSY2Y.js";import{registerModalEscapeInterceptor as u}from"./chunk-TWVUQUUD.js";import{useRef as s,useId as a,useState as d,useEffect as m,useCallback as f}from"react";import{jsx as p,jsxs as v}from"react/jsx-runtime";function h(e){return e?[...e.querySelectorAll("button:not([disabled]), a[href]")].filter(e=>!e.closest("[data-popup-submenu-panel]")):[]}function w({at:o,onClose:w,items:y,linkAs:g,children:k,owner:E,"aria-label":b,minWidth:x=180,className:H="",autoFocus:A=!0}){const D=s(null),L=a(),[j,S]=d(null),U=s(w);U.current=w,c(()=>{const e=D.current?.closest("[data-popup-menu-tree]");if(!e)return;const t={width:e.offsetWidth,height:e.offsetHeight},n=i({point:o,menu:t,bounds:l(E??null)});S(e=>e&&e.left===n.left&&e.top===n.top&&e.maxHeight===n.maxHeight?e:{left:n.left,top:n.top,maxHeight:n.maxHeight,scroll:t.height>n.maxHeight})},[o.x,o.y,E]);const C=s(null),R=s(!1);m(()=>(C.current=document.activeElement,()=>{const e=document.activeElement;e&&e!==document.body&&!D.current?.contains(e)||C.current?.focus?.({preventScroll:!0})}),[]),m(()=>{j&&!R.current&&A&&(R.current=!0,h(D.current)[0]?.focus({preventScroll:!0}))},[j,A]),m(()=>{if(A)return;const e=e=>{if(D.current?.contains(document.activeElement))return;const t=h(D.current),n="ArrowDown"===e.key||"Home"===e.key?t[0]:"ArrowUp"===e.key||"End"===e.key?t[t.length-1]:void 0;n&&(e.preventDefault(),n.focus({preventScroll:!0}))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[A]),m(()=>u(e=>"Escape"===e.key&&(U.current(),!0),()=>D.current),[]),m(()=>{const e=()=>U.current();return window.addEventListener("resize",e),window.addEventListener("blur",e),window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("blur",e),window.removeEventListener("scroll",e,!0)}},[]);const Y=f(e=>{if(e.target.closest("[data-popup-submenu-panel]"))return;if("Tab"===e.key)return e.preventDefault(),void U.current();const t=h(D.current);if(0===t.length)return;const n=t.indexOf(document.activeElement),r="ArrowDown"===e.key?(n+1)%t.length:"ArrowUp"===e.key?n<=0?t.length-1:n-1:"Home"===e.key?0:"End"===e.key?t.length-1:-1;r<0||(e.preventDefault(),t[r].focus())},[]),B=j?{left:j.left,top:j.top,maxHeight:j.maxHeight,...j.scroll?{overflowY:"auto"}:{}}:{left:o.x,top:o.y,visibility:"hidden"};/* @__PURE__ */
2
+ return p(n,{portal:!0,minWidth:x,style:B,onClose:w,className:H,children:/* @__PURE__ */p(r.Provider,{value:!0,children:/* @__PURE__ */v("div",{ref:D,id:L,role:"menu","aria-label":b,"aria-describedby":y?t(y,L):void 0,"data-context-menu":"",onKeyDown:Y,children:[y&&e(y,{menuId:L,choose:e=>{e.disabled||(U.current(),e.onSelect())},toggle:e=>{e.disabled||e.onSelect()},followLink:()=>U.current(),linkAs:g}),k]})})})}function y(){const[e,t]=d(null),n=f(()=>t(null),[]),r=f((e,n)=>{const r="nativeEvent"in e?e.nativeEvent:e;if(o(r))return!1;e.preventDefault();const i=e.target instanceof Element?e.target:null;let{clientX:l,clientY:c}=e;if(0===l&&0===c&&i){const e=i.getBoundingClientRect();l=e.left,c=e.bottom}return t({x:l,y:c,data:n,owner:i}),!0},[]),i=f(e=>{r(e,void 0)},[r]);return{open:r,onContextMenu:i,close:n,state:e,props:{at:{x:e?.x??0,y:e?.y??0},owner:e?.owner??null,onClose:n}}}export{w as ContextMenu,y as useContextMenu};
@@ -0,0 +1 @@
1
+ import{PAYMENT_BRAND_DRAWINGS as r}from"./chunk-P4J26R5P.js";import{BrandXeroIcon as o}from"./chunk-FATXXVV3.js";import{BrandYoutubeIcon as n}from"./chunk-VW4FHT46.js";import{BrandZapierIcon as m}from"./chunk-QTM26JQP.js";import{BrandZendeskIcon as a}from"./chunk-77SI7AKG.js";import{BrandZoomIcon as i}from"./chunk-NK7HBFNQ.js";import{BrandVonageIcon as s}from"./chunk-Z5XEAC32.js";import{BrandWhatsappIcon as t}from"./chunk-W5I35GZZ.js";import{BrandWiseIcon as p}from"./chunk-V3GM5NXB.js";import{BrandWixIcon as c}from"./chunk-XUYWUGDM.js";import{BrandWoocommerceIcon as d}from"./chunk-7GB7CVQI.js";import{BrandXIcon as u}from"./chunk-4L7GLO5W.js";import{BrandShopifyIcon as b}from"./chunk-MVJ34HIV.js";import{BrandSquareIcon as h}from"./chunk-OIH56GH5.js";import{BrandSquarespaceIcon as k}from"./chunk-7KCJ77BP.js";import{BrandStripeIcon as f}from"./chunk-IBHBPSQN.js";import{BrandTelegramIcon as j}from"./chunk-ZZIVSJ2B.js";import{BrandTiktokIcon as e}from"./chunk-JREQY3YN.js";import{BrandTrelloIcon as l}from"./chunk-OSXM35MX.js";import{BrandUpsIcon as g}from"./chunk-YHYAGJ6V.js";import{BrandMyobIcon as M}from"./chunk-PYW3HX7A.js";import{BrandNotionIcon as F}from"./chunk-4FNGR474.js";import{BrandNvidiaIcon as N}from"./chunk-TUMURSQU.js";import{BrandPinterestIcon as H}from"./chunk-243NPEG6.js";import{BrandQuickbooksIcon as V}from"./chunk-6IUDFVTN.js";import{BrandSageIcon as Z}from"./chunk-ONC3BFFM.js";import{BrandSamsungIcon as G}from"./chunk-7ELH72YJ.js";import{BrandLineIcon as I}from"./chunk-2ZD67TDP.js";import{BrandLinkedinIcon as B}from"./chunk-G4GQOAWS.js";import{BrandMailchimpIcon as E}from"./chunk-INUXPG27.js";import{BrandMailgunIcon as D}from"./chunk-TI5WUO3V.js";import{BrandMakeIcon as P}from"./chunk-OM5K4WCB.js";import{BrandMessengerIcon as Q}from"./chunk-IWQSBA3D.js";import{BrandMetaIcon as W}from"./chunk-NEQFHRF3.js";import{BrandGooglesheetsIcon as X}from"./chunk-75IWV4ZF.js";import{BrandHubspotIcon as A}from"./chunk-NZBQVE3Q.js";import{BrandInstagramIcon as O}from"./chunk-3ER2WJNL.js";import{BrandIntelIcon as R}from"./chunk-HSXNUF53.js";import{BrandIntercomIcon as T}from"./chunk-FUSCAZEK.js";import{BrandFacebookIcon as U}from"./chunk-EHMDGAWA.js";import{BrandFedexIcon as J}from"./chunk-4CFQXH5N.js";import{BrandGithubIcon as C}from"./chunk-ZHNKLVWV.js";import{BrandGmailIcon as L}from"./chunk-5HDMPCZP.js";import{BrandGoogleadsIcon as S}from"./chunk-QYEMC2OA.js";import{BrandGoogleanalyticsIcon as K}from"./chunk-KTMEHSTB.js";import{BrandGooglecalendarIcon as Y}from"./chunk-4RDYNULI.js";import{BrandGoogledriveIcon as y}from"./chunk-R2IXRW5N.js";import{BrandCampaignmonitorIcon as w}from"./chunk-47OCVZXD.js";import{BrandCloudflareIcon as x}from"./chunk-4VIRG42K.js";import{BrandDellIcon as v}from"./chunk-L7DBGH2Z.js";import{BrandDhlIcon as q}from"./chunk-ZXU4DEQM.js";import{BrandDropboxIcon as z}from"./chunk-I27TFZJH.js";import{BrandEbayIcon as $}from"./chunk-PBGMVLOF.js";import{BrandEtsyIcon as _}from"./chunk-FMERDO2X.js";import{BrandAnthropicIcon as rr}from"./chunk-E3E7DODJ.js";import{BrandAppleIcon as or}from"./chunk-4TWBDIMX.js";import{BrandAwsIcon as nr}from"./chunk-RWL7F776.js";import{BrandBigcommerceIcon as mr}from"./chunk-ZBL4CN2E.js";import{BrandBrevoIcon as ar}from"./chunk-V6Q2GZAI.js";import{BrandCalendlyIcon as ir}from"./chunk-NTME34BP.js";import{Brand1passwordIcon as sr}from"./chunk-OD2ZMT64.js";import{BrandAdyenIcon as tr}from"./chunk-K4RFJ7P2.js";import{BrandAircallIcon as pr}from"./chunk-PAZU27H5.js";import{BrandAmdIcon as cr}from"./chunk-AFMPM43F.js";var dr={...r,"brand-1password":sr,"brand-adyen":tr,"brand-aircall":pr,"brand-amd":cr,"brand-anthropic":rr,"brand-apple":or,"brand-aws":nr,"brand-bigcommerce":mr,"brand-brevo":ar,"brand-calendly":ir,"brand-campaignmonitor":w,"brand-cloudflare":x,"brand-dell":v,"brand-dhl":q,"brand-dropbox":z,"brand-ebay":$,"brand-etsy":_,"brand-facebook":U,"brand-fedex":J,"brand-github":C,"brand-gmail":L,"brand-googleads":S,"brand-googleanalytics":K,"brand-googlecalendar":Y,"brand-googledrive":y,"brand-googlesheets":X,"brand-hubspot":A,"brand-instagram":O,"brand-intel":R,"brand-intercom":T,"brand-line":I,"brand-linkedin":B,"brand-mailchimp":E,"brand-mailgun":D,"brand-make":P,"brand-messenger":Q,"brand-meta":W,"brand-myob":M,"brand-notion":F,"brand-nvidia":N,"brand-pinterest":H,"brand-quickbooks":V,"brand-sage":Z,"brand-samsung":G,"brand-shopify":b,"brand-square":h,"brand-squarespace":k,"brand-stripe":f,"brand-telegram":j,"brand-tiktok":e,"brand-trello":l,"brand-ups":g,"brand-vonage":s,"brand-whatsapp":t,"brand-wise":p,"brand-wix":c,"brand-woocommerce":d,"brand-x":u,"brand-xero":o,"brand-youtube":n,"brand-zapier":m,"brand-zendesk":a,"brand-zoom":i};export{dr as BRAND_MARK_DRAWINGS};
@@ -1,4 +1,4 @@
1
- import{PopupMenuDivider as e,PopupMenuLabel as t,menuTextRowStyle as i,PopupSubmenu as l,itemLook as a,MenuCheckMark as n}from"./chunk-GOAFMGUI.js";import{jsx as r,jsxs as d}from"react/jsx-runtime";var s=e=>!!e&&"label"!==e.type&&"status"!==e.type&&"divider"!==e.type&&!e.disabled,o=(e,t)=>`${e}-status-${t}`;function c(e,t){return e.flatMap((e,i)=>"status"===e.type?[o(t,i)]:[]).join(" ")||void 0}var b={minHeight:"var(--space-32)",paddingTop:0,paddingBottom:0,paddingLeft:"var(--space-12)",paddingRight:"var(--space-12)"};function u(s,c){const{menuId:y,choose:m,toggle:p,followLink:h,rowProps:k=()=>({}),linkAs:f}=c,g=f??"a",v=(s,f)=>{if("divider"===s.type)/* @__PURE__ */
1
+ import{PopupMenuDivider as e,PopupMenuLabel as t,menuTextRowStyle as i,PopupSubmenu as l,itemLook as a,MenuCheckMark as n}from"./chunk-THAPVKEJ.js";import{jsx as r,jsxs as d}from"react/jsx-runtime";var s=e=>!!e&&"label"!==e.type&&"status"!==e.type&&"divider"!==e.type&&!e.disabled,o=(e,t)=>`${e}-status-${t}`;function c(e,t){return e.flatMap((e,i)=>"status"===e.type?[o(t,i)]:[]).join(" ")||void 0}var b={minHeight:"var(--space-32)",paddingTop:0,paddingBottom:0,paddingLeft:"var(--space-12)",paddingRight:"var(--space-12)"};function u(s,c){const{menuId:y,choose:m,toggle:p,followLink:h,rowProps:k=()=>({}),linkAs:f}=c,g=f??"a",v=(s,f)=>{if("divider"===s.type)/* @__PURE__ */
2
2
  return r("div",{role:"separator",children:/* @__PURE__ */r(e,{})},s.key);if("label"===s.type)/* @__PURE__ */
3
3
  return r("div",{id:`${y}-label-${f}`,children:/* @__PURE__ */r(t,{children:s.label})},s.key);if("status"===s.type)/* @__PURE__ */
4
4
  return r("div",{id:o(y,f),className:"text-xs",style:i(),children:s.label},s.key);if("submenu"===s.type)/* @__PURE__ */
@@ -1 +1 @@
1
- import{useBrowserLayoutEffect as t}from"./chunk-D65T4H6J.js";import{useState as e}from"react";var o=448,i=240,n=8,h=()=>{const t="object"==typeof window.visualViewport?window.visualViewport:null;return t&&t.width>0&&t.height>0?{left:t.offsetLeft,right:t.offsetLeft+t.width,top:t.offsetTop,bottom:t.offsetTop+t.height}:{left:0,right:window.innerWidth,top:0,bottom:window.innerHeight}};function r(t){const e=h(),o=t?.closest?.("[data-modal-panel]");if(!o)return e;const i=o.getBoundingClientRect();return i.width<=0||i.height<=0?e:{left:Math.max(e.left,i.left),right:Math.min(e.right,i.right),top:Math.max(e.top,i.top),bottom:Math.min(e.bottom,i.bottom)}}var a=/* @__PURE__ */new Set(["hidden","clip","auto","scroll"]);function m(t){const e=t.getBoundingClientRect();if(e.width<=0&&e.height<=0&&0===e.left&&0===e.top)return null;const o=h(),i={left:Math.max(o.left,e.left),right:Math.min(o.right,e.right),top:Math.max(o.top,e.top),bottom:Math.min(o.bottom,e.bottom)};let n=getComputedStyle(t).position;for(let e=t.parentElement;e&&e!==document.documentElement&&"fixed"!==n;e=e.parentElement){const t=getComputedStyle(e);if("absolute"===n&&"static"===t.position)continue;n=t.position;const o=a.has(t.overflowX),h=a.has(t.overflowY);if(!o&&!h)continue;const r=e.getBoundingClientRect();r.width<=0&&r.height<=0||(o&&(i.left=Math.max(i.left,r.left),i.right=Math.min(i.right,r.right)),h&&(i.top=Math.max(i.top,r.top),i.bottom=Math.min(i.bottom,r.bottom)))}return i.right>=i.left&&i.bottom>=i.top?i:null}var l={top:"bottom",bottom:"top",left:"right",right:"left"},f={top:["right","left"],bottom:["right","left"],left:["top","bottom"],right:["top","bottom"]};function g(t,e,o){return{top:t.top-o-(e.top+8),bottom:e.bottom-8-(t.bottom+o),left:t.left-o-(e.left+8),right:e.right-8-(t.right+o)}}var d=(t,e,o)=>Math.max(e,Math.min(t,o));function s(t,e,o,i,n){const h=g(t,i,n),r=t=>h[t]-("top"===t||"bottom"===t?e.height:e.width),a=[o,l[o],...f[o]],m=a.find(t=>r(t)>=0)??a.reduce((t,e)=>r(e)>r(t)?e:t),s=(t.left+t.right)/2,c=(t.top+t.bottom)/2;let u,p;switch(m){case"top":u=s-e.width/2,p=t.top-n-e.height;break;case"bottom":u=s-e.width/2,p=t.bottom+n;break;case"left":u=t.left-n-e.width,p=c-e.height/2;break;case"right":u=t.right+n,p=c-e.height/2}return{side:m,left:d(u,i.left+8,i.right-8-e.width),top:d(p,i.top+8,i.bottom-8-e.height)}}function c(t,e,o,i,n){const{side:h,left:r,top:a}=e,m=r+o.width,l=a+o.height;if({top:t.top-l,bottom:a-t.bottom,left:t.left-m,right:r-t.right}[h]<n)return null;const f=(t,e,o)=>o<2*i?e+o/2:Math.max(e+i,Math.min(t,e+o-i)),g=(t.left+t.right)/2,d=(t.top+t.bottom)/2;switch(h){case"top":return{side:h,x:f(g,r,o.width),y:l};case"bottom":return{side:h,x:f(g,r,o.width),y:a};case"left":return{side:h,x:m,y:f(d,a,o.height)};case"right":return{side:h,x:r,y:f(d,a,o.height)}}}function u(t,e,o){return p(()=>t()?.getBoundingClientRect(),e,o)}function p(t,e,o){let i=NaN,n=NaN,h=NaN,r=NaN,a=NaN;const m=()=>{const e=t();if(!e)return!1;const m=o?o():NaN,l=e.left!==i||e.top!==n||e.right!==h||e.bottom!==r||m!==a&&!(Number.isNaN(m)&&Number.isNaN(a));return i=e.left,n=e.top,h=e.right,r=e.bottom,a=m,l};m();const l=()=>{m(),e()};let f=requestAnimationFrame(function t(){m()&&e(),f=requestAnimationFrame(t)});return window.addEventListener("scroll",l,!0),window.addEventListener("resize",l),()=>{cancelAnimationFrame(f),window.removeEventListener("scroll",l,!0),window.removeEventListener("resize",l)}}function b({trigger:t,menu:e,bounds:o,align:i,side:n}){const h=g(t,o,4),r="bottom"===n?"top":"bottom",a=e.height>h[n]&&(e.height<=h[r]||h[r]>h[n])?r:n,m=Math.max(Math.min(e.height,96),h[a]),l=Math.min(e.height,m),f=d("bottom"===a?t.bottom+4:t.top-4-l,o.top+8,o.bottom-8-l),s=Math.max(0,o.right-o.left-16),c=Math.min(e.width,s);return{left:d("start"===i?t.left:t.right-c,o.left+8,o.right-8-c),top:f,side:a,maxHeight:m,maxWidth:s}}function w(n,h,a={}){const{matchTriggerWidth:m=!1,preferredMaxWidth:l=o,preferredMaxHeight:f=i,popupRef:g}=a,[d,s]=e(null);return t(()=>{if(!h)return void s(null);const t=()=>{const t=n.current,e=t?.getBoundingClientRect();if(!e)return;const o=r(t),i=o.bottom-e.bottom-4-8,h=e.top-o.top-4-8,a=i<Math.min(f,160)&&h>i,d=Math.max(96,Math.min(f,a?h:i)),c=Math.max(0,o.right-o.left-16),u={minWidth:e.width,maxWidth:Math.min(l,c),maxHeight:d};if(m){const t=Math.min(e.width,c);u.width=t,u.maxWidth=t,u.left=Math.min(Math.max(o.left+8,e.left),o.right-8-t)}else if(g&&o.right-8-e.left<u.maxWidth&&Math.min(e.right,o.right-8)-o.left-8<u.maxWidth){const t=g.current?.offsetWidth??0,i=t>0?Math.min(t,u.maxWidth):u.maxWidth;u.left=Math.max(o.left+8,Math.min(e.left,o.right-8-i))}else if(o.right-8-e.left<u.maxWidth){const t=Math.min(e.right,o.right-8);u.right=window.innerWidth-t,u.maxWidth=Math.min(u.maxWidth,Math.max(0,t-o.left-8))}else u.left=Math.max(o.left+8,e.left);a?u.bottom=window.innerHeight-e.top+4:u.top=e.bottom+4,s(u)};return t(),u(()=>n.current,t,g?()=>g.current?.offsetWidth??NaN:void 0)},[h,n,m,l,f,g]),d}function x({point:t,menu:e,bounds:o}){const i={left:t.x,right:t.x,top:t.y,bottom:t.y},n=o.right-8-t.x,h=t.x-(o.left+8);return b({trigger:i,menu:e,bounds:o,align:e.width<=n||n>=h?"start":"end",side:"bottom"})}export{i as MENU_MAX_HEIGHT,o as POPUP_MAX_WIDTH,n as VIEWPORT_MARGIN,u as followAnchor,p as followRect,c as placeArrow,x as placeAtPoint,s as placeBeside,b as placeMenu,r as popupBounds,m as showingBox,w as useDropdownPosition};
1
+ import{useBrowserLayoutEffect as t}from"./chunk-ZDXRSY2Y.js";import{useState as e}from"react";var o=448,i=240,n=8,h=()=>{const t="object"==typeof window.visualViewport?window.visualViewport:null;return t&&t.width>0&&t.height>0?{left:t.offsetLeft,right:t.offsetLeft+t.width,top:t.offsetTop,bottom:t.offsetTop+t.height}:{left:0,right:window.innerWidth,top:0,bottom:window.innerHeight}};function r(t){const e=h(),o=t?.closest?.("[data-modal-panel]");if(!o)return e;const i=o.getBoundingClientRect();return i.width<=0||i.height<=0?e:{left:Math.max(e.left,i.left),right:Math.min(e.right,i.right),top:Math.max(e.top,i.top),bottom:Math.min(e.bottom,i.bottom)}}var a=/* @__PURE__ */new Set(["hidden","clip","auto","scroll"]);function m(t){const e=t.getBoundingClientRect();if(e.width<=0&&e.height<=0&&0===e.left&&0===e.top)return null;const o=h(),i={left:Math.max(o.left,e.left),right:Math.min(o.right,e.right),top:Math.max(o.top,e.top),bottom:Math.min(o.bottom,e.bottom)};let n=getComputedStyle(t).position;for(let e=t.parentElement;e&&e!==document.documentElement&&"fixed"!==n;e=e.parentElement){const t=getComputedStyle(e);if("absolute"===n&&"static"===t.position)continue;n=t.position;const o=a.has(t.overflowX),h=a.has(t.overflowY);if(!o&&!h)continue;const r=e.getBoundingClientRect();r.width<=0&&r.height<=0||(o&&(i.left=Math.max(i.left,r.left),i.right=Math.min(i.right,r.right)),h&&(i.top=Math.max(i.top,r.top),i.bottom=Math.min(i.bottom,r.bottom)))}return i.right>=i.left&&i.bottom>=i.top?i:null}var l={top:"bottom",bottom:"top",left:"right",right:"left"},f={top:["right","left"],bottom:["right","left"],left:["top","bottom"],right:["top","bottom"]};function g(t,e,o){return{top:t.top-o-(e.top+8),bottom:e.bottom-8-(t.bottom+o),left:t.left-o-(e.left+8),right:e.right-8-(t.right+o)}}var d=(t,e,o)=>Math.max(e,Math.min(t,o));function s(t,e,o,i,n){const h=g(t,i,n),r=t=>h[t]-("top"===t||"bottom"===t?e.height:e.width),a=[o,l[o],...f[o]],m=a.find(t=>r(t)>=0)??a.reduce((t,e)=>r(e)>r(t)?e:t),s=(t.left+t.right)/2,c=(t.top+t.bottom)/2;let u,p;switch(m){case"top":u=s-e.width/2,p=t.top-n-e.height;break;case"bottom":u=s-e.width/2,p=t.bottom+n;break;case"left":u=t.left-n-e.width,p=c-e.height/2;break;case"right":u=t.right+n,p=c-e.height/2}return{side:m,left:d(u,i.left+8,i.right-8-e.width),top:d(p,i.top+8,i.bottom-8-e.height)}}function c(t,e,o,i,n){const{side:h,left:r,top:a}=e,m=r+o.width,l=a+o.height;if({top:t.top-l,bottom:a-t.bottom,left:t.left-m,right:r-t.right}[h]<n)return null;const f=(t,e,o)=>o<2*i?e+o/2:Math.max(e+i,Math.min(t,e+o-i)),g=(t.left+t.right)/2,d=(t.top+t.bottom)/2;switch(h){case"top":return{side:h,x:f(g,r,o.width),y:l};case"bottom":return{side:h,x:f(g,r,o.width),y:a};case"left":return{side:h,x:m,y:f(d,a,o.height)};case"right":return{side:h,x:r,y:f(d,a,o.height)}}}function u(t,e,o){return p(()=>t()?.getBoundingClientRect(),e,o)}function p(t,e,o){let i=NaN,n=NaN,h=NaN,r=NaN,a=NaN;const m=()=>{const e=t();if(!e)return!1;const m=o?o():NaN,l=e.left!==i||e.top!==n||e.right!==h||e.bottom!==r||m!==a&&!(Number.isNaN(m)&&Number.isNaN(a));return i=e.left,n=e.top,h=e.right,r=e.bottom,a=m,l};m();const l=()=>{m(),e()};let f=requestAnimationFrame(function t(){m()&&e(),f=requestAnimationFrame(t)});return window.addEventListener("scroll",l,!0),window.addEventListener("resize",l),()=>{cancelAnimationFrame(f),window.removeEventListener("scroll",l,!0),window.removeEventListener("resize",l)}}function b({trigger:t,menu:e,bounds:o,align:i,side:n}){const h=g(t,o,4),r="bottom"===n?"top":"bottom",a=e.height>h[n]&&(e.height<=h[r]||h[r]>h[n])?r:n,m=Math.max(Math.min(e.height,96),h[a]),l=Math.min(e.height,m),f=d("bottom"===a?t.bottom+4:t.top-4-l,o.top+8,o.bottom-8-l),s=Math.max(0,o.right-o.left-16),c=Math.min(e.width,s);return{left:d("start"===i?t.left:t.right-c,o.left+8,o.right-8-c),top:f,side:a,maxHeight:m,maxWidth:s}}function w(n,h,a={}){const{matchTriggerWidth:m=!1,preferredMaxWidth:l=o,preferredMaxHeight:f=i,popupRef:g}=a,[d,s]=e(null);return t(()=>{if(!h)return void s(null);const t=()=>{const t=n.current,e=t?.getBoundingClientRect();if(!e)return;const o=r(t),i=o.bottom-e.bottom-4-8,h=e.top-o.top-4-8,a=i<Math.min(f,160)&&h>i,d=Math.max(96,Math.min(f,a?h:i)),c=Math.max(0,o.right-o.left-16),u={minWidth:e.width,maxWidth:Math.min(l,c),maxHeight:d};if(m){const t=Math.min(e.width,c);u.width=t,u.maxWidth=t,u.left=Math.min(Math.max(o.left+8,e.left),o.right-8-t)}else if(g&&o.right-8-e.left<u.maxWidth&&Math.min(e.right,o.right-8)-o.left-8<u.maxWidth){const t=g.current?.offsetWidth??0,i=t>0?Math.min(t,u.maxWidth):u.maxWidth;u.left=Math.max(o.left+8,Math.min(e.left,o.right-8-i))}else if(o.right-8-e.left<u.maxWidth){const t=Math.min(e.right,o.right-8);u.right=window.innerWidth-t,u.maxWidth=Math.min(u.maxWidth,Math.max(0,t-o.left-8))}else u.left=Math.max(o.left+8,e.left);a?u.bottom=window.innerHeight-e.top+4:u.top=e.bottom+4,s(u)};return t(),u(()=>n.current,t,g?()=>g.current?.offsetWidth??NaN:void 0)},[h,n,m,l,f,g]),d}function x({point:t,menu:e,bounds:o}){const i={left:t.x,right:t.x,top:t.y,bottom:t.y},n=o.right-8-t.x,h=t.x-(o.left+8);return b({trigger:i,menu:e,bounds:o,align:e.width<=n||n>=h?"start":"end",side:"bottom"})}export{i as MENU_MAX_HEIGHT,o as POPUP_MAX_WIDTH,n as VIEWPORT_MARGIN,u as followAnchor,p as followRect,c as placeArrow,x as placeAtPoint,s as placeBeside,b as placeMenu,r as popupBounds,m as showingBox,w as useDropdownPosition};
@@ -0,0 +1 @@
1
+ import{useBrowserLayoutEffect as r}from"./chunk-ZDXRSY2Y.js";import{useSyncExternalStore as n,useRef as t,useState as u,useCallback as c}from"react";var e=()=>()=>{},o=()=>!0,f=()=>!1;function i(){return n(e,o,f)}function a(r,t,u=e){return n(u,r,()=>t)}function l(r,u){const c=t(null);return n(e,()=>(c.current??={value:r()}).value,()=>u)}function m(n,e){const o=i(),[f,a]=u(()=>o?n():e),l=t(o),m=t(n);m.current=n,r(()=>{o&&!l.current&&(l.current=!0,a(m.current()))},[o]);return[f,c(r=>{l.current?a(r):(l.current=!0,a("function"==typeof r?r(m.current()):r))},[])]}export{m as useBrowserState,a as useBrowserValue,l as useBrowserValueOnce,i as useHydrated};
@@ -1,6 +1,6 @@
1
- import{areaBetween as e,curvePath as i}from"./chunk-VFC6QUEN.js";import{CartesianPlot as l}from"./chunk-J6QC45OS.js";import{ChartTooltip as t}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as r,CHART_INK as a}from"./chunk-TZFACUMR.js";import{useShellStrings as o,useShellLocale as n}from"./chunk-IUVGHHR3.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{jsx as s,jsxs as m,Fragment as c}from"react/jsx-runtime";function u({rows:u,labels:d,variant:p="area",curve:f="linear",height:k=220,width:g,max:b,min:x,formatValue:w,yAxisLabel:y,color:j,tone:v,label:L,className:M,emptyLabel:O,radius:V=3}){const C=o().charts,F=n(),N=w??(e=>h(e,F)),Q=L??C.range,W=u.flatMap(e=>[e.low,e.high]).filter(Number.isFinite),A=r(0,j,v);/* @__PURE__ */
2
- return s(l,{labels:d,values:W,height:k,width:g,max:b,min:x,formatValue:N,yAxisLabel:y,className:M,emptyLabel:O,bandPadding:"bar"===p?.34:0,ariaLabel:C.rangeLabel(Q,d.length),tooltip:e=>/* @__PURE__ */s(t,{title:d[e],rows:[{key:"high",label:C.high,color:A,value:null==u[e]?void 0:N(u[e].high)},{key:"low",label:C.low,color:A,value:null==u[e]?void 0:N(u[e].low)}]}),children:({x:l,y:t,active:r})=>"bar"===p?/* @__PURE__ */s("g",{children:u.map((e,i)=>/* @__PURE__ */s("rect",{x:l(i),y:t(e.high),width:Math.max(1,l.bandwidth),height:Math.max(1,t(e.low)-t(e.high)),rx:V,fill:A,fillOpacity:null===r||r===i?.85:.4},i))}):/* @__PURE__ */m("g",{children:[(()=>{const r=u.map((e,i)=>[l.center(i),t(e.high)]),a=u.map((e,i)=>[l.center(i),t(e.low)]);/* @__PURE__ */
1
+ import{areaBetween as e,curvePath as i}from"./chunk-VFC6QUEN.js";import{CartesianPlot as l}from"./chunk-HC5KQZFG.js";import{ChartTooltip as t}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as r,CHART_INK as a}from"./chunk-TZFACUMR.js";import{useShellStrings as o,useShellLocale as n}from"./chunk-IUVGHHR3.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{jsx as s,jsxs as m,Fragment as c}from"react/jsx-runtime";function u({rows:u,labels:d,variant:p="area",curve:f="linear",height:k=220,width:g,max:b,min:x,formatValue:w,yAxisLabel:y,color:j,tone:v,label:L,className:F,emptyLabel:M,radius:V=3}){const C=o().charts,H=n(),N=w??(e=>h(e,H)),O=L??C.range,Q=u.flatMap(e=>[e.low,e.high]).filter(Number.isFinite),W=r(0,j,v);/* @__PURE__ */
2
+ return s(l,{labels:d,values:Q,height:k,width:g,max:b,min:x,formatValue:N,yAxisLabel:y,className:F,emptyLabel:M,bandPadding:"bar"===p?.34:0,ariaLabel:C.rangeLabel(O,d.length),tooltip:e=>/* @__PURE__ */s(t,{title:d[e],rows:[{key:"high",label:C.high,color:W,value:null==u[e]?void 0:N(u[e].high)},{key:"low",label:C.low,color:W,value:null==u[e]?void 0:N(u[e].low)}]}),children:({x:l,y:t,active:r})=>"bar"===p?/* @__PURE__ */s("g",{children:u.map((e,i)=>/* @__PURE__ */s("rect",{x:l(i),y:t(e.high),width:Math.max(1,l.bandwidth),height:Math.max(1,t(e.low)-t(e.high)),rx:V,fill:W,fillOpacity:null===r||r===i?.85:.4},i))}):/* @__PURE__ */m("g",{children:[(()=>{const r=u.map((e,i)=>[l.center(i),t(e.high)]),a=u.map((e,i)=>[l.center(i),t(e.low)]);/* @__PURE__ */
3
3
  return m(c,{children:[
4
- /* @__PURE__ */s("path",{d:e(i(r,f),a),fill:A,fillOpacity:.2,stroke:"none"}),
5
- /* @__PURE__ */s("path",{d:i(r,f),fill:"none",stroke:A,strokeWidth:2,strokeLinejoin:"round"}),
6
- /* @__PURE__ */s("path",{d:i(a,f),fill:"none",stroke:A,strokeWidth:2,strokeLinejoin:"round",strokeOpacity:.7})]})})(),null!==r&&/* @__PURE__ */s("line",{x1:l.center(r),y1:t(u[r].high),x2:l.center(r),y2:t(u[r].low),stroke:a.axis,strokeWidth:1})]})})}export{u as RangeChart};
4
+ /* @__PURE__ */s("path",{d:e(i(r,f),a),fill:W,fillOpacity:.2,stroke:"none"}),
5
+ /* @__PURE__ */s("path",{d:i(r,f),fill:"none",stroke:W,strokeWidth:2,strokeLinejoin:"round"}),
6
+ /* @__PURE__ */s("path",{d:i(a,f),fill:"none",stroke:W,strokeWidth:2,strokeLinejoin:"round",strokeOpacity:.7})]})})(),null!==r&&/* @__PURE__ */s("line",{x1:l.center(r),y1:t(u[r].high),x2:l.center(r),y2:t(u[r].low),stroke:a.axis,strokeWidth:1})]})})}export{u as RangeChart};
@@ -1,3 +1,3 @@
1
- import{GROUP_COLORS as e,BADGE_PILL as o}from"./chunk-WU2ZA6J2.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{OneLineLabel as r}from"./chunk-G67CJAQ2.js";import{useShellStrings as s}from"./chunk-IUVGHHR3.js";import{jsxs as t,jsx as n}from"react/jsx-runtime";function l({colorClass:l,tone:c,children:a,size:m="sm",capitalize:p=!1,closable:u=!1,onClose:f,closeLabel:h,className:x=""}){const d=l??e[c??"neutral"],y="xs"===m?"px-2 py-0.5 text-3xs":"md"===m?"px-3 py-0.5 text-xs":"px-2 py-0.5 text-xs",b=p?"capitalize":"",g=s().badge,j=h??("string"==typeof a?g.removeItem(a):g.remove),k="xs"===m?"h-2.5 w-2.5":"h-3 w-3";/* @__PURE__ */
1
+ import{GROUP_COLORS as e,BADGE_PILL as o}from"./chunk-YDJ5IZOU.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{OneLineLabel as r}from"./chunk-TD3ZQD5R.js";import{useShellStrings as s}from"./chunk-IUVGHHR3.js";import{jsxs as t,jsx as n}from"react/jsx-runtime";function l({colorClass:l,tone:c,children:a,size:m="sm",capitalize:p=!1,closable:u=!1,onClose:f,closeLabel:h,className:x=""}){const d=l??e[c??"neutral"],y="xs"===m?"px-2 py-0.5 text-3xs":"md"===m?"px-3 py-0.5 text-xs":"px-2 py-0.5 text-xs",b=p?"capitalize":"",g=s().badge,j=h??("string"==typeof a?g.removeItem(a):g.remove),k="xs"===m?"h-2.5 w-2.5":"h-3 w-3";/* @__PURE__ */
2
2
  return t("span",{className:[o,"font-medium",y,b,d,x].filter(Boolean).join(" "),children:[
3
3
  /* @__PURE__ */n(r,{children:a}),u&&/* @__PURE__ */n("button",{type:"button",onClick:f,"aria-label":j,className:"-mr-0.5 ml-1 inline-flex shrink-0 items-center justify-center rounded-full opacity-70 transition-opacity hover:opacity-100 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-strong)]",children:/* @__PURE__ */n(i,{name:"close",look:"mini",className:k,"aria-hidden":"true"})})]})}export{l as ColoredBadge};
@@ -1 +1 @@
1
- import{TYPE_SCALE as t,FONT_WEIGHTS as o}from"./chunk-LH7IKIGE.js";import{textWidth as n}from"./chunk-UVCMV2TL.js";import{SPACING_ROLES as e,SPACING_SCALE as m}from"./chunk-AW7TOB6N.js";import{statusLabel as r}from"./chunk-WU2ZA6J2.js";var c=e.controlX,u=m[4],i=t[2],d=o.control,f=.625*i,h=m[1];function p(t){const o="undefined"!=typeof document&&document.body?getComputedStyle(document.body).fontFamily:"";return o?n(t,`${d} ${i}px ${o}`)??t.length*f:t.length*f}function a(t){const o=Object.entries(t).map(([t,o])=>!0===o?r(t):o),n=Math.max(0,...o.map(p)),e=Math.ceil((n+2*c+2*u)/h)*h;return{defaultWidth:e,minWidth:e}}export{c as BADGE_X,u as CELL_X,a as statusColumn};
1
+ import{TYPE_SCALE as t,FONT_WEIGHTS as o}from"./chunk-LH7IKIGE.js";import{textWidth as n}from"./chunk-UVCMV2TL.js";import{SPACING_ROLES as e,SPACING_SCALE as m}from"./chunk-AW7TOB6N.js";import{statusLabel as r}from"./chunk-YDJ5IZOU.js";var c=e.controlX,u=m[4],i=t[2],d=o.control,f=.625*i,h=m[1];function p(t){const o="undefined"!=typeof document&&document.body?getComputedStyle(document.body).fontFamily:"";return o?n(t,`${d} ${i}px ${o}`)??t.length*f:t.length*f}function a(t){const o=Object.entries(t).map(([t,o])=>!0===o?r(t):o),n=Math.max(0,...o.map(p)),e=Math.ceil((n+2*c+2*u)/h)*h;return{defaultWidth:e,minWidth:e}}export{c as BADGE_X,u as CELL_X,a as statusColumn};
@@ -1,11 +1,11 @@
1
- import{FormField as e}from"./chunk-6KBDNYRW.js";import{dropzoneClass as t,zoneFocusClass as a,CloseGlyph as r}from"./chunk-G4PPHQ23.js";import{useFileIntake as n,humanSize as i,FileIntakeAlert as s}from"./chunk-VFSAJMNX.js";import{useShellStrings as l}from"./chunk-IUVGHHR3.js";import{forwardRef as c,useId as m}from"react";import{jsxs as o,jsx as d}from"react/jsx-runtime";var p=c(function({files:c,onChange:p,accept:u,acceptHint:h,multiple:x=!0,maxSizeBytes:b,maxFiles:f,disabled:y=!1,label:g,hint:N,error:j,required:k,className:v=""},H){const $=m(),z=l().files,C=n({accept:u,acceptHint:h,maxSizeBytes:b,maxFiles:f,multiple:x,disabled:y,currentCount:c.length,onAccept:e=>p(x?[...c,...e]:e.slice(0,1))}),F=j?`${$}-error`:N?`${$}-hint`:void 0;/* @__PURE__ */
1
+ import{FormField as e}from"./chunk-6KBDNYRW.js";import{dropzoneClass as t,zoneFocusClass as a,CloseGlyph as r}from"./chunk-YWMCW5BN.js";import{useFileIntake as n,humanSize as i,FileIntakeAlert as s}from"./chunk-VFSAJMNX.js";import{useShellStrings as l}from"./chunk-IUVGHHR3.js";import{forwardRef as c,useId as m}from"react";import{jsxs as o,jsx as d}from"react/jsx-runtime";var p=c(function({files:c,onChange:p,accept:u,acceptHint:h,multiple:x=!0,maxSizeBytes:b,maxFiles:f,disabled:y=!1,label:g,hint:N,error:j,required:k,className:v=""},C){const $=m(),z=l().files,B=n({accept:u,acceptHint:h,maxSizeBytes:b,maxFiles:f,multiple:x,disabled:y,currentCount:c.length,onAccept:e=>p(x?[...c,...e]:e.slice(0,1))}),F=j?`${$}-error`:N?`${$}-hint`:void 0;/* @__PURE__ */
2
2
  return o(e,{label:g,htmlFor:$,hint:N,error:j,required:k,className:v,children:[
3
- /* @__PURE__ */o("button",{ref:H,type:"button",id:$,disabled:y,onClick:C.open,"aria-invalid":!!j||void 0,"aria-required":k||void 0,"aria-describedby":F,...C.zoneProps,className:t(C.dragOver,y,a(y),"px-4 py-6"),children:[
3
+ /* @__PURE__ */o("button",{ref:C,type:"button",id:$,disabled:y,onClick:B.open,"aria-invalid":!!j||void 0,"aria-required":k||void 0,"aria-describedby":F,...B.zoneProps,className:t(B.dragOver,y,a(y),"px-4 py-6"),children:[
4
4
  /* @__PURE__ */o("span",{children:[
5
5
  /* @__PURE__ */d("span",{className:"text-sm font-medium text-blue-600",children:x?z.chooseMany:z.chooseOne}),
6
6
  /* @__PURE__ */d("span",{className:"text-sm text-gray-500",children:` ${x?z.dragMany:z.dragOne}`})]}),h&&/* @__PURE__ */d("span",{className:"text-xs text-gray-400",children:h})]}),
7
- /* @__PURE__ */d("input",{...C.inputProps}),c.length>0&&/* @__PURE__ */d("ul",{className:"mt-2 flex flex-col gap-1",children:c.map((e,t)=>/* @__PURE__ */o("li",{className:"flex items-center justify-between gap-3 rounded-md bg-gray-50 px-3 py-2",children:[
7
+ /* @__PURE__ */d("input",{...B.inputProps}),c.length>0&&/* @__PURE__ */d("ul",{className:"mt-2 flex flex-col gap-1",children:c.map((e,t)=>/* @__PURE__ */o("li",{className:"flex items-center justify-between gap-3 rounded-md bg-gray-50 px-3 py-2",children:[
8
8
  /* @__PURE__ */d("span",{className:"min-w-0 flex-1 truncate text-sm text-gray-800",title:e.name,children:e.name}),
9
9
  /* @__PURE__ */d("span",{className:"shrink-0 text-xs tabular-nums text-gray-500",children:i(e.size,z)}),
10
- /* @__PURE__ */d("button",{type:"button",disabled:y,onClick:()=>{C.clearRejections(),p(c.filter((e,a)=>a!==t))},"aria-label":z.remove(e.name),className:"shrink-0 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */d(r,{})})]},`${e.name}-${t}`))}),
11
- /* @__PURE__ */d(s,{rejections:C.rejections})]})});export{p as FilePicker_default};
10
+ /* @__PURE__ */d("button",{type:"button",disabled:y,onClick:()=>{B.clearRejections(),p(c.filter((e,a)=>a!==t))},"aria-label":z.remove(e.name),className:"shrink-0 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */d(r,{})})]},`${e.name}-${t}`))}),
11
+ /* @__PURE__ */d(s,{rejections:B.rejections})]})});export{p as FilePicker_default};
@@ -1,4 +1,4 @@
1
- import{Markdown as e}from"./chunk-ZYU5HAIC.js";import{PLACEHOLDER_INK as t}from"./chunk-AYZY3YNC.js";import{Icon as l}from"./chunk-ISVODSRP.js";import{LoadingSpinner as r}from"./chunk-R2VKEMZH.js";import{useShellStrings as s}from"./chunk-IUVGHHR3.js";import{useState as a,useMemo as n}from"react";import{jsxs as i,jsx as o,Fragment as c}from"react/jsx-runtime";var d=({open:e})=>/* @__PURE__ */o(l,{name:"chevron-right",look:"mini",className:"h-3.5 w-3.5 shrink-0 transition-transform "+(e?"rotate-90":""),"aria-hidden":"true"});function h({docs:h,loading:m=!1,categoryOrder:p,canEdit:u=!1,onNew:g,onEdit:x,renderBody:f,emptyMessage:b}){const y=s(),[v,N]=a(""),[w,k]=a(null),[C,j]=a({}),M=v.trim().toLowerCase(),_=n(()=>{const e=/* @__PURE__ */new Map;for(const t of h){let l=e.get(t.category);l||(l={key:t.category,label:t.category_label||t.category,docs:[]},e.set(t.category,l)),l.docs.push(t)}if(!p?.length)return[...e.values()];const t=new Map(p.map((e,t)=>[e,t]));return[...e.values()].sort((e,l)=>(t.get(e.key)??1/0)-(t.get(l.key)??1/0))},[h,p]),A=e=>!M||e.title.toLowerCase().includes(M)||e.body.toLowerCase().includes(M)||e.category_label.toLowerCase().includes(M),H=n(()=>_.map(e=>({...e,docs:e.docs.filter(A)})).filter(e=>e.docs.length>0),[_,M]),L=n(()=>H.flatMap(e=>e.docs),[H]),R=(w?L.find(e=>e.slug===w):void 0)??L[0]??null,Y=e=>!!M||(C[e]??e===R?.category);/* @__PURE__ */
1
+ import{Markdown as e}from"./chunk-E7BQZL7X.js";import{PLACEHOLDER_INK as t}from"./chunk-AYZY3YNC.js";import{Icon as l}from"./chunk-ISVODSRP.js";import{LoadingSpinner as r}from"./chunk-R2VKEMZH.js";import{useShellStrings as s}from"./chunk-IUVGHHR3.js";import{useState as a,useMemo as n}from"react";import{jsxs as i,jsx as o,Fragment as c}from"react/jsx-runtime";var d=({open:e})=>/* @__PURE__ */o(l,{name:"chevron-right",look:"mini",className:"h-3.5 w-3.5 shrink-0 transition-transform "+(e?"rotate-90":""),"aria-hidden":"true"});function h({docs:h,loading:m=!1,categoryOrder:p,canEdit:u=!1,onNew:g,onEdit:x,renderBody:f,emptyMessage:b}){const y=s(),[v,N]=a(""),[w,k]=a(null),[C,j]=a({}),L=v.trim().toLowerCase(),M=n(()=>{const e=/* @__PURE__ */new Map;for(const t of h){let l=e.get(t.category);l||(l={key:t.category,label:t.category_label||t.category,docs:[]},e.set(t.category,l)),l.docs.push(t)}if(!p?.length)return[...e.values()];const t=new Map(p.map((e,t)=>[e,t]));return[...e.values()].sort((e,l)=>(t.get(e.key)??1/0)-(t.get(l.key)??1/0))},[h,p]),_=e=>!L||e.title.toLowerCase().includes(L)||e.body.toLowerCase().includes(L)||e.category_label.toLowerCase().includes(L),E=n(()=>M.map(e=>({...e,docs:e.docs.filter(_)})).filter(e=>e.docs.length>0),[M,L]),R=n(()=>E.flatMap(e=>e.docs),[E]),A=(w?R.find(e=>e.slug===w):void 0)??R[0]??null,B=e=>!!L||(C[e]??e===A?.category);/* @__PURE__ */
2
2
  return i("div",{className:"flex h-full gap-4 px-4 py-3 min-h-0",children:[
3
3
  /* @__PURE__ */i("aside",{className:"w-64 shrink-0 flex flex-col bg-white rounded-lg shadow overflow-hidden",children:[
4
4
  /* @__PURE__ */i("div",{className:"flex items-center justify-between gap-2 px-3 py-2 border-b border-gray-200 bg-gray-50 shrink-0",children:[
@@ -6,16 +6,16 @@ return i("div",{className:"flex h-full gap-4 px-4 py-3 min-h-0",children:[
6
6
  /* @__PURE__ */o("div",{className:"px-3 py-2 border-b border-line-subtle shrink-0",children:/* @__PURE__ */i("div",{className:"relative",children:[
7
7
  /* @__PURE__ */o(l,{name:"search",look:"mini",className:`pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 ${t}`,"aria-hidden":"true"}),
8
8
  /* @__PURE__ */o("input",{type:"text",value:v,onChange:e=>N(e.target.value),placeholder:y.help.searchPlaceholder,className:"w-full rounded-md border border-line-strong bg-surface h-8 pl-8 pr-2 text-sm shadow-sm focus:border-blue-500 rosh-focus-ring focus-visible:ring-1 focus-visible:ring-[color:var(--rosh-focus-ring-accent)]"})]})}),
9
- /* @__PURE__ */o("div",{className:"flex-1 overflow-y-auto py-1",children:m?/* @__PURE__ */o(r,{size:"sm",padding:"py-6",label:y.help.loading}):0===H.length?/* @__PURE__ */o("p",{className:"px-3 py-6 text-center text-xs text-gray-500",children:M?y.help.noResults:b??y.help.empty}):H.map(e=>{const t=Y(e.key);/* @__PURE__ */
9
+ /* @__PURE__ */o("div",{className:"flex-1 overflow-y-auto py-1",children:m?/* @__PURE__ */o(r,{size:"sm",padding:"py-6",label:y.help.loading}):0===E.length?/* @__PURE__ */o("p",{className:"px-3 py-6 text-center text-xs text-gray-500",children:L?y.help.noResults:b??y.help.empty}):E.map(e=>{const t=B(e.key);/* @__PURE__ */
10
10
  return i("div",{className:"py-0.5",children:[
11
- /* @__PURE__ */i("button",{type:"button",onClick:()=>{return t=e.key,j(e=>({...e,[t]:!Y(t)}));var t},className:"w-full flex items-center gap-2 h-8 px-3 text-left text-3xs font-semibold uppercase tracking-wide text-ink-faintest hover:text-gray-600",children:[
11
+ /* @__PURE__ */i("button",{type:"button",onClick:()=>{return t=e.key,j(e=>({...e,[t]:!B(t)}));var t},className:"w-full flex items-center gap-2 h-8 px-3 text-left text-3xs font-semibold uppercase tracking-wide text-ink-faintest hover:text-gray-600",children:[
12
12
  /* @__PURE__ */o(d,{open:t}),
13
- /* @__PURE__ */o("span",{className:"truncate",children:e.label})]}),t&&e.docs.map(e=>{const t=R?.slug===e.slug;/* @__PURE__ */
13
+ /* @__PURE__ */o("span",{className:"truncate",children:e.label})]}),t&&e.docs.map(e=>{const t=A?.slug===e.slug;/* @__PURE__ */
14
14
  return i("button",{type:"button",onClick:()=>k(e.slug),className:"w-full text-left pl-8 pr-3 min-h-(--row-height-menu) py-2 text-sm flex items-center gap-2 transition-colors "+(t?"bg-blue-50 text-blue-700 font-medium":"text-gray-700 hover:bg-gray-50"),children:[
15
15
  /* @__PURE__ */o("span",{className:"truncate",children:e.title}),!1===e.is_published&&/* @__PURE__ */o("span",{className:"ml-auto shrink-0 text-2xs text-amber-600",children:y.help.draft})]},e.slug)})]},e.key)})})]}),
16
- /* @__PURE__ */o("main",{className:"flex-1 min-w-0 bg-white rounded-lg shadow overflow-hidden flex flex-col",children:R?/* @__PURE__ */i(c,{children:[
16
+ /* @__PURE__ */o("main",{className:"flex-1 min-w-0 bg-white rounded-lg shadow overflow-hidden flex flex-col",children:A?/* @__PURE__ */i(c,{children:[
17
17
  /* @__PURE__ */i("div",{className:"flex items-start justify-between gap-4 px-5 py-3 border-b border-gray-200 bg-gray-50 shrink-0",children:[
18
18
  /* @__PURE__ */i("div",{className:"min-w-0",children:[
19
- /* @__PURE__ */o("h1",{className:"text-lg font-semibold text-gray-900 truncate",children:R.title}),
20
- /* @__PURE__ */i("p",{className:"text-xs text-gray-500 mt-0.5",children:[R.category_label,!1===R.is_published&&/* @__PURE__ */i("span",{className:"ml-2 text-amber-600",children:["· ",y.help.draft]})]})]}),u&&x&&/* @__PURE__ */o("button",{type:"button",onClick:()=>x(R),className:"shrink-0 text-sm text-blue-600 hover:underline",children:y.help.edit})]}),
21
- /* @__PURE__ */o("div",{className:"flex-1 overflow-auto px-5 py-4",children:f?f(R):R.body?/* @__PURE__ */o(e,{children:R.body}):/* @__PURE__ */o("p",{className:"text-sm text-gray-500 italic",children:y.help.noBody})})]}):/* @__PURE__ */o("div",{className:"flex-1 flex items-center justify-center px-6 text-center",children:m?/* @__PURE__ */o(r,{size:"sm",padding:"",label:y.help.loading}):/* @__PURE__ */o("p",{className:"text-sm text-ink-faint",children:y.help.pickArticle})})})]})}export{h as HelpCenter};
19
+ /* @__PURE__ */o("h1",{className:"text-lg font-semibold text-gray-900 truncate",children:A.title}),
20
+ /* @__PURE__ */i("p",{className:"text-xs text-gray-500 mt-0.5",children:[A.category_label,!1===A.is_published&&/* @__PURE__ */i("span",{className:"ml-2 text-amber-600",children:["· ",y.help.draft]})]})]}),u&&x&&/* @__PURE__ */o("button",{type:"button",onClick:()=>x(A),className:"shrink-0 text-sm text-blue-600 hover:underline",children:y.help.edit})]}),
21
+ /* @__PURE__ */o("div",{className:"flex-1 overflow-auto px-5 py-4",children:f?f(A):A.body?/* @__PURE__ */o(e,{children:A.body}):/* @__PURE__ */o("p",{className:"text-sm text-gray-500 italic",children:y.help.noBody})})]}):/* @__PURE__ */o("div",{className:"flex-1 flex items-center justify-center px-6 text-center",children:m?/* @__PURE__ */o(r,{size:"sm",padding:"",label:y.help.loading}):/* @__PURE__ */o("p",{className:"text-sm text-ink-faint",children:y.help.pickArticle})})})]})}export{h as HelpCenter};
@@ -0,0 +1,7 @@
1
+ import{squarify as e}from"./chunk-46BYGPGD.js";import{AccessibleTable as t}from"./chunk-ZDFMYAQB.js";import{useHighlight as l}from"./chunk-CNYAHYE6.js";import{ChartTooltip as a}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as r,CHART_INK as i}from"./chunk-TZFACUMR.js";import{usePlotWidth as o}from"./chunk-MAFUXCPZ.js";import{useShellStrings as n,useShellLocale as m}from"./chunk-IUVGHHR3.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useRef as c,useState as u}from"react";import{jsx as s,jsxs as f}from"react/jsx-runtime";function p({items:p,height:d=320,width:v,gap:x=2,radius:g=3,formatValue:y,color:k,className:b,emptyLabel:j}){const M=n().charts,w=m(),N=y??(e=>h(e,w)),$=j??M.nothingToBreakDown,F=c(null),A=o(F),B=v??A,[C,D]=u(null),{highlighted:H}=l(),V=e(p,B,d);if(0===V.length)/* @__PURE__ */
2
+ return s("div",{className:b,ref:F,children:/* @__PURE__ */s("p",{className:"py-8 text-center text-sm text-gray-500",children:$})});const Y=k??r(0),z=Math.max(...V.map(e=>e.value),1),G=e=>34+e/z*62,I=e=>`color-mix(in oklab, ${Y} ${G(e).toFixed(0)}%, ${i.surface})`,Q=e=>G(e)>=55?i.surface:i.label,R=C??H,U=C?V.find(e=>e.key===C):void 0;/* @__PURE__ */
3
+ return f("div",{className:`relative ${b??""}`,ref:F,children:[
4
+ /* @__PURE__ */s("svg",{width:"100%",height:d,viewBox:`0 0 ${B} ${d}`,role:"img","aria-label":M.treemap(p.length),onMouseLeave:()=>D(null),children:V.map(e=>{const t=Math.max(0,e.width-x),l=Math.max(0,e.height-x),a=t>6.2*e.label.length+12&&l>30,r=a&&l>44;/* @__PURE__ */
5
+ return f("g",{opacity:R&&R!==e.key?.55:1,onMouseEnter:()=>D(e.key),children:[
6
+ /* @__PURE__ */s("rect",{x:e.x+x/2,y:e.y+x/2,width:t,height:l,rx:g,fill:I(e.value)}),a&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+18,fontSize:12,fontWeight:600,fill:Q(e.value),children:e.label}),r&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+34,fontSize:11,fill:Q(e.value),fillOpacity:.85,style:{fontVariantNumeric:"tabular-nums"},children:N(e.value)})]},e.key)})}),U&&/* @__PURE__ */s("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */s(a,{title:U.label,rows:[{key:"value",label:M.value,color:I(U.value),value:N(U.value)}]})}),
7
+ /* @__PURE__ */s(t,{caption:M.treemap(p.length),head:[M.tableItem,M.value],rows:V.map(e=>[e.label,N(e.value)])})]})}export{p as TreemapChart};
@@ -1,4 +1,4 @@
1
- import{DropdownMenu as e,TRIGGER_CLASS as n}from"./chunk-3DSGJIC7.js";import{Tooltip as a}from"./chunk-SOZCWT6I.js";import{jsx as i,jsxs as l}from"react/jsx-runtime";function t(e,n,a){if(n&&!(n.options.length<2))/* @__PURE__ */
1
+ import{DropdownMenu as e,TRIGGER_CLASS as n}from"./chunk-EX3DARI3.js";import{Tooltip as a}from"./chunk-F2RAIGCG.js";import{jsx as i,jsxs as l}from"react/jsx-runtime";function t(e,n,a){if(n&&!(n.options.length<2))/* @__PURE__ */
2
2
  return i(s,{value:e,options:n.options,onChange:n.onChange,label:n.label,disabled:a})}var r=`${n} -ml-1 h-6 px-1 text-xs`;function s({value:n,options:t,onChange:s,label:o,disabled:c}){
3
3
  /* @__PURE__ */
4
4
  return i(a,{content:o,describe:!1,children:/* @__PURE__ */i(e,{trigger:
@@ -1,7 +1,7 @@
1
- import{formatMoney as e}from"./chunk-OJI4ROSD.js";import{EMPTY_VALUE as r}from"./chunk-36BRD5J3.js";import{TimeSeriesChart as t}from"./chunk-W6NGPSMM.js";import{ChartFrame as a}from"./chunk-G5UGCAWN.js";import{ColumnChart as l}from"./chunk-YDFDTRZF.js";import{TH_ONE_LINE as s}from"./chunk-G67CJAQ2.js";import{jsxs as o,jsx as i}from"react/jsx-runtime";function n({spec:n,height:c=200,width:m,animate:d=!0,className:h}){const u=function(r){if(r.currency)return t=>e(t,r.currency);const t=r.unit?` ${r.unit}`:"";return e=>`${e.toLocaleString("en-US",{maximumFractionDigits:2})}${t}`}(n),p=n.currency?r=>e(r,n.currency,{whole:!0}):u,b=n.series.map((e,r)=>({key:`s${r}`,label:e.name,data:e.values})),y=n.title??n.series.map(e=>e.name).join(", "),f=/* @__PURE__ */o("table",{className:"w-full border-collapse text-sm",children:[
1
+ import{formatMoney as e}from"./chunk-OJI4ROSD.js";import{EMPTY_VALUE as r}from"./chunk-36BRD5J3.js";import{TimeSeriesChart as t}from"./chunk-LGGATDPH.js";import{ColumnChart as a}from"./chunk-G7SILKUY.js";import{ChartFrame as l}from"./chunk-G5UGCAWN.js";import{TH_ONE_LINE as s}from"./chunk-TD3ZQD5R.js";import{jsxs as o,jsx as i}from"react/jsx-runtime";function n({spec:n,height:c=200,width:m,animate:d=!0,className:h}){const u=function(r){if(r.currency)return t=>e(t,r.currency);const t=r.unit?` ${r.unit}`:"";return e=>`${e.toLocaleString("en-US",{maximumFractionDigits:2})}${t}`}(n),p=n.currency?r=>e(r,n.currency,{whole:!0}):u,b=n.series.map((e,r)=>({key:`s${r}`,label:e.name,data:e.values})),y=n.title??n.series.map(e=>e.name).join(", "),f=/* @__PURE__ */o("table",{className:"w-full border-collapse text-sm",children:[
2
2
  /* @__PURE__ */i("thead",{children:/* @__PURE__ */o("tr",{children:[
3
3
  /* @__PURE__ */i("td",{className:"border-b border-gray-200"}),n.series.map((e,r)=>/* @__PURE__ */i("th",{scope:"col",className:`${s} border-b border-gray-200 px-2 py-1 text-right font-semibold text-gray-700`,children:e.name},r))]})}),
4
4
  /* @__PURE__ */i("tbody",{children:n.x.map((e,t)=>/* @__PURE__ */o("tr",{children:[
5
5
  /* @__PURE__ */i("th",{scope:"row",className:`${s} border-t border-gray-100 px-2 py-1 text-left font-normal text-gray-700`,children:e}),n.series.map((e,a)=>{const l=e.values[t];/* @__PURE__ */
6
6
  return i("td",{className:"border-t border-gray-100 px-2 py-1 text-right tabular-nums text-gray-700",children:null===l?r:u(l)},a)})]},t))})]});/* @__PURE__ */
7
- return i(a,{title:y,legend:b.map(e=>({key:e.key,label:e.label,swatch:"line"===n.type?"bar":"square"})),table:f,className:h,children:"line"===n.type?/* @__PURE__ */i(t,{series:b,labels:n.x,height:c,width:m,animate:d,dots:"all",formatValue:p,formatTooltipValue:u}):/* @__PURE__ */i(l,{series:b,labels:n.x,stacked:n.stacked,height:c,width:m,animate:d,formatValue:p,formatTooltipValue:u})})}export{n as SpecChart};
7
+ return i(l,{title:y,legend:b.map(e=>({key:e.key,label:e.label,swatch:"line"===n.type?"bar":"square"})),table:f,className:h,children:"line"===n.type?/* @__PURE__ */i(t,{series:b,labels:n.x,height:c,width:m,animate:d,dots:"all",formatValue:p,formatTooltipValue:u}):/* @__PURE__ */i(a,{series:b,labels:n.x,stacked:n.stacked,height:c,width:m,animate:d,formatValue:p,formatTooltipValue:u})})}export{n as SpecChart};
@@ -1 +1 @@
1
- import{useDefaultColumnConfig as t}from"./chunk-ULJQYXHB.js";import{useShellPrefs as e}from"./chunk-KC3EX26K.js";import{useState as i,useRef as r,useEffect as o}from"react";function c(t){const e=t;return!!e&&"string"==typeof e.field&&e.field.length>0&&("asc"===e.direction||"desc"===e.direction)}function n(n,s="asc",f,d){const{prefs:l,save:a}=e(),u=f?`sort_${f}`:null,[g,m]=i(()=>{if(u){if(c(l[u]))return l[u];try{const t=JSON.parse(localStorage.getItem(`sort-config-${f}`)||"null");if(c(t))return t}catch{}}return{field:n,direction:s}}),y=r(!1),S=u?l[u]:void 0,h=r(S);h.current=S,o(()=>{if(!y.current&&c(S)){m(t=>t.field===S.field&&t.direction===S.direction?t:S);try{localStorage.setItem(`sort-config-${f}`,JSON.stringify(S))}catch{}}},[f,S?.field,S?.direction]);const{defaultConfig:p}=t(f);o(()=>{const t=p?.sort;if(!y.current&&!c(h.current)&&c(t)){m(e=>e.field===t.field&&e.direction===t.direction?e:t);try{localStorage.setItem(`sort-config-${f}`,JSON.stringify(t))}catch{}}},[f,p]);const $=d?.columns?.length?d.columns:void 0,J=!$||function(t,e){return t.some(t=>(t.sortField??("_select"!==t.key?t.key:""))===e&&""!==e)}($,g.field)?g:{field:n,direction:s},k="desc"===J.direction?`-${J.field}`:J.field;return{sort:J,onSort:t=>{y.current=!0;const e=J.field===t?{field:t,direction:"asc"===J.direction?"desc":"asc"}:{field:t,direction:"asc"};if(m(e),u){try{localStorage.setItem(`sort-config-${f}`,JSON.stringify(e))}catch{}a({[u]:e})}},ordering:k}}export{n as useSort};
1
+ import{useDefaultColumnConfig as t}from"./chunk-ULJQYXHB.js";import{useShellPrefs as e}from"./chunk-DPFEQQQU.js";import{useState as i,useRef as r,useEffect as o}from"react";function c(t){const e=t;return!!e&&"string"==typeof e.field&&e.field.length>0&&("asc"===e.direction||"desc"===e.direction)}function n(n,s="asc",f,d){const{prefs:l,save:a}=e(),u=f?`sort_${f}`:null,[g,m]=i(()=>{if(u){if(c(l[u]))return l[u];try{const t=JSON.parse(localStorage.getItem(`sort-config-${f}`)||"null");if(c(t))return t}catch{}}return{field:n,direction:s}}),y=r(!1),S=u?l[u]:void 0,h=r(S);h.current=S,o(()=>{if(!y.current&&c(S)){m(t=>t.field===S.field&&t.direction===S.direction?t:S);try{localStorage.setItem(`sort-config-${f}`,JSON.stringify(S))}catch{}}},[f,S?.field,S?.direction]);const{defaultConfig:p}=t(f);o(()=>{const t=p?.sort;if(!y.current&&!c(h.current)&&c(t)){m(e=>e.field===t.field&&e.direction===t.direction?e:t);try{localStorage.setItem(`sort-config-${f}`,JSON.stringify(t))}catch{}}},[f,p]);const $=d?.columns?.length?d.columns:void 0,J=!$||function(t,e){return t.some(t=>(t.sortField??("_select"!==t.key?t.key:""))===e&&""!==e)}($,g.field)?g:{field:n,direction:s},k="desc"===J.direction?`-${J.field}`:J.field;return{sort:J,onSort:t=>{y.current=!0;const e=J.field===t?{field:t,direction:"asc"===J.direction?"desc":"asc"}:{field:t,direction:"asc"};if(m(e),u){try{localStorage.setItem(`sort-config-${f}`,JSON.stringify(e))}catch{}a({[u]:e})}},ordering:k}}export{n as useSort};