efficient-shell 13.14.0 → 13.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/README.md +21 -2
  2. package/dist/Browser-4KWGT3FG.js +44 -0
  3. package/dist/Calculator-VURS4NAT.js +29 -0
  4. package/dist/CurrencyConverter-X5ENBDLK.js +21 -0
  5. package/dist/{Files-XLDCJ7DO.js → Files-NT76VUHQ.js} +64 -64
  6. package/dist/Notepad-6AMNAYQQ.js +24 -0
  7. package/dist/PomodoroTimer-KDXH5M3Q.js +91 -0
  8. package/dist/{Preview-24XTJDIR.js → Preview-QNJD5PVD.js} +27 -27
  9. package/dist/Sidebar-UCCVJFSY.js +44 -0
  10. package/dist/Stock-JR77FPOD.js +16 -0
  11. package/dist/{Weather-IWM5XTE5.js → Weather-MGSDU3M5.js} +18 -18
  12. package/dist/{WorldClock-35TNXAJM.js → WorldClock-GGAYPYIO.js} +7 -7
  13. package/dist/ai/index.js +44 -44
  14. package/dist/apps/index.js +1 -1
  15. package/dist/bin/browser-check.js +1 -1
  16. package/dist/bin/media-host-check.js +1 -1
  17. package/dist/bin/ui-check.js +1 -1
  18. package/dist/brand.css +1 -1
  19. package/dist/charts/ChartFrame.js +1 -1
  20. package/dist/charts/ChordChart.js +1 -1
  21. package/dist/charts/FlowChart.js +1 -1
  22. package/dist/charts/PieChart.js +1 -1
  23. package/dist/charts/RadarChart.js +1 -1
  24. package/dist/charts/RadialBarChart.js +1 -1
  25. package/dist/charts/SankeyChart.js +1 -1
  26. package/dist/charts/SpecChart.js +1 -1
  27. package/dist/charts/SunburstChart.js +1 -1
  28. package/dist/charts/TimeSeriesChart.js +1 -1
  29. package/dist/charts/TreemapChart.js +1 -1
  30. package/dist/{chunk-UGEA3C5C.js → chunk-23LK4PLJ.js} +5 -5
  31. package/dist/{chunk-JNSRDEB6.js → chunk-2J3C2RR4.js} +10 -10
  32. package/dist/{chunk-PT4GMPUB.js → chunk-3SIRRK3F.js} +3 -3
  33. package/dist/{chunk-36UB4MJX.js → chunk-4G7PJ325.js} +1 -1
  34. package/dist/chunk-5URXJCNC.js +2 -0
  35. package/dist/{chunk-HVHIXX6O.js → chunk-6OGX7V7L.js} +10 -10
  36. package/dist/{chunk-WP43XYL6.js → chunk-6QH7I2V5.js} +2 -2
  37. package/dist/chunk-74SCWPQF.js +1 -0
  38. package/dist/{chunk-QTVE3OSD.js → chunk-75R3EKWZ.js} +7 -7
  39. package/dist/{chunk-G53Y6EPJ.js → chunk-7CBWSLCW.js} +13 -13
  40. package/dist/{chunk-DVVB2CY5.js → chunk-7I5RJPY7.js} +1 -1
  41. package/dist/{chunk-22N3KA7A.js → chunk-7IXU4YT4.js} +4 -4
  42. package/dist/{chunk-XEPA5J6K.js → chunk-A7VNKVZO.js} +4 -4
  43. package/dist/{chunk-JPKNVTTK.js → chunk-BNPWUCZX.js} +1 -1
  44. package/dist/{chunk-M5K4AX4E.js → chunk-BUFAJJDZ.js} +1 -1
  45. package/dist/{chunk-ALHYNNE2.js → chunk-BVX7LUAW.js} +6 -6
  46. package/dist/chunk-BWJZTHZ6.js +1 -0
  47. package/dist/chunk-BWQHABH7.js +4 -0
  48. package/dist/{chunk-G4D2WM3J.js → chunk-BZRFD4DK.js} +3 -3
  49. package/dist/{chunk-U6DRRCCG.js → chunk-C5OPAULN.js} +1 -1
  50. package/dist/{chunk-MEF4JVXP.js → chunk-CCLK2RPQ.js} +14 -14
  51. package/dist/{chunk-KC3EX26K.js → chunk-DPFEQQQU.js} +1 -1
  52. package/dist/{chunk-ZYU5HAIC.js → chunk-E7BQZL7X.js} +1 -1
  53. package/dist/{chunk-YM2Z4LZ2.js → chunk-EFVQQF6F.js} +17 -17
  54. package/dist/{chunk-GO2TZ35U.js → chunk-EJOKROMB.js} +1 -1
  55. package/dist/{chunk-4IYHQNKZ.js → chunk-ENDYHUUR.js} +1 -1
  56. package/dist/{chunk-4F3SUYN5.js → chunk-ETQ45TBW.js} +1 -1
  57. package/dist/chunk-EX3DARI3.js +7 -0
  58. package/dist/{chunk-JPCPO4MX.js → chunk-EZYXY67W.js} +8 -8
  59. package/dist/chunk-F2RAIGCG.js +6 -0
  60. package/dist/{chunk-ZDMZM7HD.js → chunk-FBZUEZK7.js} +2 -2
  61. package/dist/{chunk-GURY4WS5.js → chunk-FFRJ6QZK.js} +1 -1
  62. package/dist/{chunk-F5B5WOQ7.js → chunk-FKMARSJZ.js} +2 -2
  63. package/dist/chunk-FMLUQCFB.js +2 -0
  64. package/dist/{chunk-AWWNMSDN.js → chunk-FXSGIT53.js} +10 -10
  65. package/dist/{chunk-YMHCLK3F.js → chunk-FZYUTZEV.js} +10 -10
  66. package/dist/chunk-G2JPTPRS.js +13 -0
  67. package/dist/chunk-G5UGCAWN.js +17 -0
  68. package/dist/{chunk-DEYVAMJQ.js → chunk-GEITUFYK.js} +13 -13
  69. package/dist/chunk-GMLOMLCS.js +24 -0
  70. package/dist/{chunk-QNQLKGBC.js → chunk-GNXAVDZD.js} +1 -1
  71. package/dist/{chunk-6LS6Q77E.js → chunk-GUSENWAH.js} +1 -1
  72. package/dist/{chunk-YDQBELHJ.js → chunk-H5PSCQJ2.js} +6 -6
  73. package/dist/{chunk-LXPDURUL.js → chunk-HMOKKMIV.js} +2 -2
  74. package/dist/{chunk-RFR2K7JO.js → chunk-HPHDLN6E.js} +2 -2
  75. package/dist/{chunk-FUP2J2OX.js → chunk-IG3K6AGW.js} +1 -1
  76. package/dist/{chunk-I5EVMLPB.js → chunk-IJ4JX6WP.js} +4 -4
  77. package/dist/{chunk-RT77WNRB.js → chunk-IJJNJJ6I.js} +1 -1
  78. package/dist/chunk-IUQJGFEO.js +11 -0
  79. package/dist/{chunk-64PPKUJG.js → chunk-J4CVYOY3.js} +13 -13
  80. package/dist/{chunk-HTANBHNV.js → chunk-J4KPBR5B.js} +1 -1
  81. package/dist/{chunk-CUZQVBPC.js → chunk-JDLJ7DHV.js} +1 -1
  82. package/dist/{chunk-775K6APE.js → chunk-JFOMAXD2.js} +67 -67
  83. package/dist/chunk-JPE4TYRQ.js +14 -0
  84. package/dist/{chunk-4Q2CZ4US.js → chunk-JPSWWIBW.js} +6 -6
  85. package/dist/{chunk-XOQGBU25.js → chunk-K2FVP22A.js} +1 -1
  86. package/dist/{chunk-7RGHV3J5.js → chunk-KGAYYSFE.js} +6 -6
  87. package/dist/{chunk-KLUCEASW.js → chunk-KQCJWK55.js} +6 -6
  88. package/dist/{chunk-YNVH2EIE.js → chunk-L4ZQY4ZG.js} +3 -3
  89. package/dist/{chunk-PALWXHBQ.js → chunk-LKAGXURQ.js} +20 -20
  90. package/dist/chunk-LQCNIQ3I.js +8 -0
  91. package/dist/{chunk-RZJ63ZM4.js → chunk-MHQW6NAE.js} +11 -11
  92. package/dist/{chunk-VCR3RADH.js → chunk-MVOYVN3S.js} +1 -1
  93. package/dist/{chunk-N2FX4O3H.js → chunk-MZ3JADHG.js} +1 -1
  94. package/dist/chunk-N5KJLHYI.js +9 -0
  95. package/dist/{chunk-YBYJUBWE.js → chunk-NW5NSV7N.js} +2 -2
  96. package/dist/{chunk-SV5RRBVA.js → chunk-NWS5G7FE.js} +1 -1
  97. package/dist/{chunk-UXGNF3OG.js → chunk-OF5X4HKC.js} +1 -1
  98. package/dist/{chunk-YY7OFUT2.js → chunk-OIEFMLYI.js} +3 -3
  99. package/dist/{chunk-FMERX3PG.js → chunk-OLSA36VX.js} +2 -2
  100. package/dist/chunk-OMOAD5LL.js +1 -0
  101. package/dist/chunk-OXWBSZL2.js +23 -0
  102. package/dist/chunk-PBSCF2ML.js +15 -0
  103. package/dist/{chunk-2YK6ZB7C.js → chunk-PPLPDP6D.js} +1 -1
  104. package/dist/{chunk-GTT7LIWK.js → chunk-PY4DTB6Y.js} +1 -1
  105. package/dist/{chunk-QIPO4EVJ.js → chunk-Q4MOT7TY.js} +1 -1
  106. package/dist/chunk-QAAHFU2I.js +1 -0
  107. package/dist/{chunk-OYXA7SWV.js → chunk-QE2JX7D4.js} +1 -1
  108. package/dist/{chunk-7NO4IENQ.js → chunk-R5WBDXI2.js} +1 -1
  109. package/dist/{chunk-WIFK6TLB.js → chunk-RDETBXMP.js} +1 -1
  110. package/dist/{chunk-I6QVXM2M.js → chunk-RDVC32EV.js} +15 -15
  111. package/dist/chunk-RJVIKGHJ.js +4 -0
  112. package/dist/chunk-S25KELFW.js +11 -0
  113. package/dist/chunk-SF4IIV5Z.js +2 -0
  114. package/dist/{chunk-ZDYIVU5R.js → chunk-SHHRC5XK.js} +8 -8
  115. package/dist/{chunk-OBZZLLMQ.js → chunk-SLEA47VA.js} +1 -1
  116. package/dist/{chunk-F6UJLCMI.js → chunk-SUSJFGXN.js} +9 -9
  117. package/dist/{chunk-FTKLODQK.js → chunk-SXHV5OLA.js} +1 -1
  118. package/dist/{chunk-65FZQ572.js → chunk-SZFULV7I.js} +6 -6
  119. package/dist/{chunk-HZ7TUMNL.js → chunk-TB2ARUE2.js} +1 -1
  120. package/dist/{chunk-G67CJAQ2.js → chunk-TD3ZQD5R.js} +1 -1
  121. package/dist/chunk-THAPVKEJ.js +15 -0
  122. package/dist/{chunk-HNIIDDLJ.js → chunk-TNALBYLY.js} +1 -1
  123. package/dist/{chunk-6CDWPEND.js → chunk-TPKNHQIE.js} +8 -8
  124. package/dist/{chunk-EHM3ZVVT.js → chunk-UC5IC3AM.js} +4 -4
  125. package/dist/{chunk-VADWTS7H.js → chunk-UFWBPTCM.js} +5 -5
  126. package/dist/{chunk-EVYD6UFQ.js → chunk-UTISUEO4.js} +2 -2
  127. package/dist/chunk-UTQN5AIO.js +6 -0
  128. package/dist/chunk-UVHXVSB2.js +1 -0
  129. package/dist/{chunk-QMBMK6PP.js → chunk-VKZC3NPM.js} +2 -2
  130. package/dist/{chunk-UZFFSZFI.js → chunk-VQBKRBBR.js} +1 -1
  131. package/dist/{chunk-GLUJS42B.js → chunk-VY3UA6AR.js} +1 -1
  132. package/dist/{chunk-G3MJO3A6.js → chunk-W6NGPSMM.js} +13 -13
  133. package/dist/chunk-WCCS4VFE.js +1 -0
  134. package/dist/{chunk-JWLOERV5.js → chunk-WLBWACKP.js} +2 -2
  135. package/dist/{chunk-WLG7BE55.js → chunk-WRV6QKJN.js} +1 -1
  136. package/dist/{chunk-LHHJHTWP.js → chunk-WZWSFYXJ.js} +1 -1
  137. package/dist/{chunk-S6YEPA4I.js → chunk-X4E4RPFE.js} +5 -5
  138. package/dist/{chunk-M7W63T6H.js → chunk-XAT2MKNU.js} +8 -8
  139. package/dist/{chunk-QOYKBINM.js → chunk-XQVGBVHC.js} +1 -1
  140. package/dist/{chunk-E6FDUFPH.js → chunk-XVMCSUAV.js} +1 -1
  141. package/dist/chunk-XXTAMF3O.js +28 -0
  142. package/dist/{chunk-6HYO2W3O.js → chunk-YCXQDUTW.js} +5 -5
  143. package/dist/{chunk-WU2ZA6J2.js → chunk-YDJ5IZOU.js} +1 -1
  144. package/dist/{chunk-KBQNMQCK.js → chunk-YQ5JHHLE.js} +1 -1
  145. package/dist/{chunk-2GMYO6ET.js → chunk-YT5HMLC7.js} +1 -1
  146. package/dist/chunk-YTDMCUL7.js +14 -0
  147. package/dist/{chunk-G4PPHQ23.js → chunk-YWMCW5BN.js} +1 -1
  148. package/dist/{chunk-WF4A2HSB.js → chunk-ZCN5BU4U.js} +1 -1
  149. package/dist/{chunk-HY6CBG4M.js → chunk-ZDFMYAQB.js} +1 -1
  150. package/dist/chunk-ZDXRSY2Y.js +1 -0
  151. package/dist/chunk-ZISKHQZY.js +3 -0
  152. package/dist/{chunk-DVHRL3G6.js → chunk-ZVDYRXNP.js} +6 -6
  153. package/dist/{chunk-3DWVSQIJ.js → chunk-ZYKY4Z7R.js} +1 -1
  154. package/dist/data/DataTable.js +1 -1
  155. package/dist/data/EntityList.js +1 -1
  156. package/dist/data/Gantt.js +1 -1
  157. package/dist/data/Kanban.js +1 -1
  158. package/dist/data/ListLoadError.js +1 -1
  159. package/dist/data/ResizableTable.js +1 -1
  160. package/dist/data/statusColumn.js +1 -1
  161. package/dist/data/useColumnConfig.js +1 -1
  162. package/dist/data/useSort.js +1 -1
  163. package/dist/forms/AlignmentGrid.js +1 -1
  164. package/dist/forms/BorderInput.js +1 -1
  165. package/dist/forms/BrandAssetEditor.js +1 -1
  166. package/dist/forms/Button.js +1 -1
  167. package/dist/forms/Calendar.js +1 -1
  168. package/dist/forms/ColorPicker.js +1 -1
  169. package/dist/forms/ComposerAttachments.js +1 -1
  170. package/dist/forms/CornersInput.js +1 -1
  171. package/dist/forms/DatePicker.js +1 -1
  172. package/dist/forms/DateRangePicker.js +1 -1
  173. package/dist/forms/DisplayChips.js +1 -1
  174. package/dist/forms/FilePicker.js +1 -1
  175. package/dist/forms/IconButton.js +1 -1
  176. package/dist/forms/IconPicker.js +1 -1
  177. package/dist/forms/Input.js +1 -1
  178. package/dist/forms/InputNumber.js +1 -1
  179. package/dist/forms/LinkPicker.js +1 -1
  180. package/dist/forms/MediaLibrary.js +1 -1
  181. package/dist/forms/MediaUploadField.js +1 -1
  182. package/dist/forms/MediaUploadGrid.js +1 -1
  183. package/dist/forms/MediaUsedInList.js +1 -1
  184. package/dist/forms/NumericKeypad.js +1 -1
  185. package/dist/forms/PictureTiles.js +1 -1
  186. package/dist/forms/PositionInput.js +1 -1
  187. package/dist/forms/RenameField.js +1 -1
  188. package/dist/forms/Segmented.js +1 -1
  189. package/dist/forms/Select.js +1 -1
  190. package/dist/forms/SidesInput.js +1 -1
  191. package/dist/forms/Slider.js +1 -1
  192. package/dist/forms/Snippet.js +1 -1
  193. package/dist/forms/SplitButton.js +1 -1
  194. package/dist/forms/TagInput.js +1 -1
  195. package/dist/forms/TextToolbar.js +1 -1
  196. package/dist/forms/UnitMenu.js +1 -1
  197. package/dist/forms/WidthsBar.js +1 -1
  198. package/dist/forms/dropdownPosition.js +1 -1
  199. package/dist/hooks/index.d.ts +29 -0
  200. package/dist/hooks/index.js +2 -0
  201. package/dist/hooks/useTheme.js +1 -1
  202. package/dist/icons/brands.node.js +1 -1
  203. package/dist/icons/efficient-glyphs.js +1 -1
  204. package/dist/icons/efficient-looks.js +1 -1
  205. package/dist/icons/efficient.js +1 -1
  206. package/dist/icons/index.js +1 -1
  207. package/dist/icons/looks/map.js +1 -1
  208. package/dist/icons/sets.js +1 -1
  209. package/dist/index.d.ts +3 -40
  210. package/dist/index.js +514 -514
  211. package/dist/map/index.js +7 -7
  212. package/dist/markdown/index.js +1 -1
  213. package/dist/page-tabs/index.js +5 -5
  214. package/dist/shell/AppUpdateBanner.js +1 -1
  215. package/dist/shell/Card.js +1 -1
  216. package/dist/shell/ColoredBadge.js +1 -1
  217. package/dist/shell/ConfirmDialog.js +1 -1
  218. package/dist/shell/ContextMenu.js +1 -1
  219. package/dist/shell/Dialog.d.ts +14 -4
  220. package/dist/shell/Dialog.js +1 -1
  221. package/dist/shell/Drawer.js +1 -1
  222. package/dist/shell/DropdownMenu.js +1 -1
  223. package/dist/shell/EditableGrid.js +1 -1
  224. package/dist/shell/FloatingBar.js +1 -1
  225. package/dist/shell/GlobalSearch.js +1 -1
  226. package/dist/shell/HelpCenter.js +1 -1
  227. package/dist/shell/IconRail.js +1 -1
  228. package/dist/shell/ImageLightbox.js +1 -1
  229. package/dist/shell/ItemCount.js +1 -1
  230. package/dist/shell/Kbd.js +1 -1
  231. package/dist/shell/LanguageSelect.js +1 -1
  232. package/dist/shell/Markdown.js +1 -1
  233. package/dist/shell/MilestoneTimeline.js +1 -1
  234. package/dist/shell/Popover.js +1 -1
  235. package/dist/shell/PopupMenu.js +1 -1
  236. package/dist/shell/ProductionTimeline.js +1 -1
  237. package/dist/shell/ResizeHandle.js +1 -1
  238. package/dist/shell/SearchableSelect.js +1 -1
  239. package/dist/shell/SettingReset.js +1 -1
  240. package/dist/shell/SettingRow.js +1 -1
  241. package/dist/shell/ShellPrefs.js +1 -1
  242. package/dist/shell/SidebarLayout.js +1 -1
  243. package/dist/shell/SidebarNav.js +1 -1
  244. package/dist/shell/SortableList.js +1 -1
  245. package/dist/shell/StatusBadge.js +1 -1
  246. package/dist/shell/Tabs.js +1 -1
  247. package/dist/shell/TimelineTrack.js +1 -1
  248. package/dist/shell/Tooltip.js +1 -1
  249. package/dist/shell/TopNav.js +1 -1
  250. package/dist/shell/TransferProgress.js +1 -1
  251. package/dist/shell/Tree.js +1 -1
  252. package/dist/shell/discardGuard.js +1 -1
  253. package/dist/telemetry/index.js +1 -1
  254. package/dist/templates/AuthScreen.js +1 -1
  255. package/dist/templates/ChatTemplate.js +1 -1
  256. package/dist/templates/CheckoutTemplate.js +1 -1
  257. package/dist/templates/DashboardTemplate.js +1 -1
  258. package/dist/templates/DataTablePage.js +1 -1
  259. package/dist/templates/EmailTemplate.js +1 -1
  260. package/dist/templates/ErrorBoundary.js +1 -1
  261. package/dist/templates/FormLayoutPage.js +1 -1
  262. package/dist/templates/GalleryTemplate.js +1 -1
  263. package/dist/ui/index.js +1 -1
  264. package/dist/ui.css +4 -1
  265. package/dist/version.js +1 -1
  266. package/package.json +6 -1
  267. package/dist/Browser-FJSOZLWR.js +0 -44
  268. package/dist/Calculator-ZHINQHFI.js +0 -29
  269. package/dist/CurrencyConverter-AAXS7RPC.js +0 -21
  270. package/dist/Notepad-NENKOSXJ.js +0 -24
  271. package/dist/PomodoroTimer-XKSYNHS7.js +0 -91
  272. package/dist/Sidebar-GYGYAXS2.js +0 -44
  273. package/dist/Stock-TCQSVSSY.js +0 -16
  274. package/dist/chunk-3DSGJIC7.js +0 -7
  275. package/dist/chunk-47UTEV3P.js +0 -23
  276. package/dist/chunk-4S3E3VJH.js +0 -11
  277. package/dist/chunk-64RHGJXK.js +0 -4
  278. package/dist/chunk-6AUQWWUA.js +0 -17
  279. package/dist/chunk-7KWYVQMX.js +0 -2
  280. package/dist/chunk-7QSDPSXP.js +0 -1
  281. package/dist/chunk-A7ZYFJ6V.js +0 -28
  282. package/dist/chunk-ASDYAASN.js +0 -3
  283. package/dist/chunk-D65T4H6J.js +0 -1
  284. package/dist/chunk-DQTYV6AC.js +0 -9
  285. package/dist/chunk-EV5BEEVO.js +0 -1
  286. package/dist/chunk-FHNQC2MA.js +0 -1
  287. package/dist/chunk-FQD6P6EZ.js +0 -4
  288. package/dist/chunk-GOAFMGUI.js +0 -15
  289. package/dist/chunk-IQDHVQAQ.js +0 -14
  290. package/dist/chunk-JGKDWDVM.js +0 -27
  291. package/dist/chunk-KY3KGRGC.js +0 -1
  292. package/dist/chunk-MHCNQKEK.js +0 -4
  293. package/dist/chunk-RDGXSAOD.js +0 -2
  294. package/dist/chunk-RIG5FEVS.js +0 -1
  295. package/dist/chunk-SNHBDP4X.js +0 -15
  296. package/dist/chunk-SOZCWT6I.js +0 -6
  297. package/dist/chunk-WWCAVO3R.js +0 -14
  298. package/dist/chunk-XMFJDT6Y.js +0 -13
  299. package/dist/chunk-XSHDPG45.js +0 -9
  300. package/dist/chunk-YUDBB7VC.js +0 -11
  301. /package/dist/{chunk-JR2HHKVP.js → chunk-FRCTA5FS.js} +0 -0
@@ -1 +1 @@
1
- export{ChartFrame as default}from"../chunk-6AUQWWUA.js";import"../chunk-ZNV75GAG.js";import"../chunk-CNYAHYE6.js";import"../chunk-TZFACUMR.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
1
+ export{ChartFrame as default}from"../chunk-G5UGCAWN.js";import"../chunk-ZNV75GAG.js";import"../chunk-CNYAHYE6.js";import"../chunk-BWJZTHZ6.js";import"../chunk-TZFACUMR.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ChordChart as default,foldChord}from"../chunk-65FZQ572.js";import"../chunk-HY6CBG4M.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{ChordChart as default,foldChord}from"../chunk-SZFULV7I.js";import"../chunk-ZDFMYAQB.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-TD3ZQD5R.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{DEFAULT_FLOW_CHART_LABELS,FlowChart as default,flowDescription,flowFileName}from"../chunk-7NO4IENQ.js";import"../chunk-FAERBT6Y.js";import"../chunk-EVYD6UFQ.js";import"../chunk-M5K4AX4E.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
2
+ export{DEFAULT_FLOW_CHART_LABELS,FlowChart as default,flowDescription,flowFileName}from"../chunk-R5WBDXI2.js";import"../chunk-FAERBT6Y.js";import"../chunk-UTISUEO4.js";import"../chunk-BUFAJJDZ.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-UQYNPYF4.js";import"../chunk-MRJKZWWV.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{PieChart as default}from"../chunk-FMERX3PG.js";import"../chunk-465RRWBY.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{PieChart as default}from"../chunk-OLSA36VX.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{RADAR_SERIES_CAP,RadarChart as default}from"../chunk-SNHBDP4X.js";import"../chunk-HY6CBG4M.js";import"../chunk-465RRWBY.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{RADAR_SERIES_CAP,RadarChart as default}from"../chunk-PBSCF2ML.js";import"../chunk-ZDFMYAQB.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-TD3ZQD5R.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{RadialBarChart as default}from"../chunk-UGEA3C5C.js";import"../chunk-465RRWBY.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{RadialBarChart as default}from"../chunk-23LK4PLJ.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SankeyChart as default}from"../chunk-DQTYV6AC.js";import"../chunk-HY6CBG4M.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-MAFUXCPZ.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{SankeyChart as default}from"../chunk-N5KJLHYI.js";import"../chunk-ZDFMYAQB.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-TD3ZQD5R.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-MAFUXCPZ.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{SpecChart as default}from"../chunk-JWLOERV5.js";import"../chunk-OJI4ROSD.js";import"../chunk-NHKT5IH6.js";import"../chunk-36BRD5J3.js";import"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";import"../chunk-G3MJO3A6.js";import"../chunk-YDFDTRZF.js";import"../chunk-465RRWBY.js";import"../chunk-MOKABQCY.js";import"../chunk-CK2YOGUS.js";import"../chunk-6AUQWWUA.js";import"../chunk-ZNV75GAG.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-J6QC45OS.js";import"../chunk-KNZ7YTFH.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
1
+ export{SpecChart as default}from"../chunk-WLBWACKP.js";import"../chunk-OJI4ROSD.js";import"../chunk-NHKT5IH6.js";import"../chunk-36BRD5J3.js";import"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";import"../chunk-W6NGPSMM.js";import"../chunk-MOKABQCY.js";import"../chunk-CK2YOGUS.js";import"../chunk-G5UGCAWN.js";import"../chunk-VFC6QUEN.js";import"../chunk-YDFDTRZF.js";import"../chunk-465RRWBY.js";import"../chunk-ZNV75GAG.js";import"../chunk-CNYAHYE6.js";import"../chunk-BWJZTHZ6.js";import"../chunk-TD3ZQD5R.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-J6QC45OS.js";import"../chunk-KNZ7YTFH.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SunburstChart as default}from"../chunk-MHCNQKEK.js";import"../chunk-HY6CBG4M.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{SunburstChart as default}from"../chunk-BWQHABH7.js";import"../chunk-ZDFMYAQB.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-TD3ZQD5R.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{TimeSeriesChart as default}from"../chunk-G3MJO3A6.js";import"../chunk-465RRWBY.js";import"../chunk-MOKABQCY.js";import"../chunk-CK2YOGUS.js";import"../chunk-ZNV75GAG.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-KNZ7YTFH.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{TimeSeriesChart as default}from"../chunk-W6NGPSMM.js";import"../chunk-MOKABQCY.js";import"../chunk-CK2YOGUS.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-ZNV75GAG.js";import"../chunk-CNYAHYE6.js";import"../chunk-KNZ7YTFH.js";import"../chunk-MAFUXCPZ.js";import"../chunk-2JWPNR2U.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{TreemapChart as default}from"../chunk-QTVE3OSD.js";import"../chunk-46BYGPGD.js";import"../chunk-HY6CBG4M.js";import"../chunk-CNYAHYE6.js";import"../chunk-G67CJAQ2.js";import"../chunk-SOZCWT6I.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-MAFUXCPZ.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
2
+ export{TreemapChart as default}from"../chunk-75R3EKWZ.js";import"../chunk-46BYGPGD.js";import"../chunk-ZDFMYAQB.js";import"../chunk-CNYAHYE6.js";import"../chunk-TD3ZQD5R.js";import"../chunk-F2RAIGCG.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-VY3UA6AR.js";import"../chunk-WCCS4VFE.js";import"../chunk-ZDXRSY2Y.js";import"../chunk-MAFUXCPZ.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-IUVGHHR3.js";import"../chunk-C3QOHMR6.js";
@@ -1,11 +1,11 @@
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__ */
1
+ import{arcPath as e}from"./chunk-VFC6QUEN.js";import{MOTION as t,stagger as a}from"./chunk-465RRWBY.js";import{useHighlight as l}from"./chunk-CNYAHYE6.js";import{angleScale as r}from"./chunk-2JWPNR2U.js";import{ChartTooltip as n}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as o,CHART_INK as i}from"./chunk-TZFACUMR.js";import{useShellStrings as s,useShellLocale as c}from"./chunk-IUVGHHR3.js";import{formatPlain as m}from"./chunk-C3QOHMR6.js";import{useId as h,useState as u}from"react";import{jsx as p,jsxs as d}from"react/jsx-runtime";var f=300*Math.PI/180;function g({rows:g,variant:k="track",size:v=300,max:x,formatValue:y,animate:M=!0,className:N,emptyLabel:b,trackGap:j=6}){const C=s().charts,w=c(),R=y??(e=>m(e,w)),E=b??C.nothingToPlot,H=h(),[I,P]=u(null),{highlighted:T}=l();if(0===g.length)/* @__PURE__ */return p("p",{className:`text-sm text-gray-500 ${N??""}`,children:E});const U=v/2,V=v/2,$=v/2-10,F=x??Math.max(...g.map(e=>e.value),1),Q="track"===k?Math.max(6,($-.16*v)/g.length):0,W=Math.max(1,Math.floor(($-.16*v)/Q||1)),Y="track"===k?g.slice(0,W):g,z=Math.min(j,Math.max(1,Q-2)),A=r(Y.length,.03),B=null!==I?Y[I]:void 0;/* @__PURE__ */
2
2
  return d("div",{className:`relative ${N??""}`,children:[
3
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?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)}]})}),
5
+ return d("g",{opacity:c?.4:1,onMouseEnter:()=>P(r),className:M?t.sweep:void 0,style:M?a(r,70):void 0,children:[
6
+ /* @__PURE__ */p("path",{d:e(U,V,m,o,h,h+f),fill:i.grid}),
7
+ /* @__PURE__ */p("path",{d:e(U,V,m,o,h,h+f*s),fill:n})]},l.key)}const m=.14*v;/* @__PURE__ */
8
+ return p("g",{opacity:c?.4:1,onMouseEnter:()=>P(r),children:/* @__PURE__ */p("path",{d:e(U,V,m,m+($-m)*s,A(r),A(r)+A.step),fill:n})},l.key)})]}),B&&null!==I&&/* @__PURE__ */p("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */p(n,{title:B.label,rows:[{key:"value",label:C.value,color:o(I,B.color,B.tone),value:R(B.value)}]})}),
9
9
  /* @__PURE__ */p("ul",{className:"m-0 mt-3 grid gap-1 p-0",style:{gridTemplateColumns:"repeat(auto-fit,minmax(150px,1fr))"},children:g.map((e,t)=>/* @__PURE__ */d("li",{className:"flex list-none items-center gap-2 text-xs text-gray-600",children:[
10
10
  /* @__PURE__ */p("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{backgroundColor:o(t,e.color,e.tone)}}),
11
11
  /* @__PURE__ */p("span",{className:"flex-1 truncate",children:e.label}),
@@ -1,4 +1,4 @@
1
- import{buildQuerySections as e,buildEmptySections as t,flattenRows as r,DEFAULT_MAGNIFIER as n,stepIndex as a,nextGroupIndex as s,SEE_ALL_ICON as l,resultTypeKey as o}from"./chunk-HGOWQO63.js";import{useDismissPopupsOnOpen as i}from"./chunk-7QSDPSXP.js";import{SpinnerRing as c,LoadingSpinner as d}from"./chunk-R2VKEMZH.js";import{Z_LAYERS as u}from"./chunk-62LW225J.js";import{glassStyle as p}from"./chunk-5FYDNH4Y.js";import{useShellStrings as m}from"./chunk-IUVGHHR3.js";import{useState as h,useRef as f,useEffect as y,useMemo as g,useId as x,useCallback as b}from"react";import{createPortal as k}from"react-dom";import{jsxs as v,jsx as w}from"react/jsx-runtime";function N(e){if(Array.isArray(e))return{results:e,truncatedTypes:[]};if(e&&"object"==typeof e&&Array.isArray(e.results)){const{results:t,truncatedTypes:r}=e;return{results:t,truncatedTypes:Array.isArray(r)?r:[]}}return{results:[],truncatedTypes:[]}}var A=[];function L(e,t,r){const[n,a]=h([]),[s,l]=h(A),[o,i]=h(!1),[c,d]=h("none"),u=f(function(){let e=0,t=null;const r=()=>{e+=1,t?.abort(),t=null};return{begin:()=>{r();const n=e,a=new AbortController;return t=a,{signal:a.signal,isCurrent:()=>n===e}},cancel:r}}());y(()=>{const n=u.current;if(e.length<r||!t||0===t.length)return n.cancel(),a(e=>0===e.length?e:[]),l(A),d("none"),void i(!1);i(!0);const s=setTimeout(async()=>{const r=n.begin(),s=await async function(e,t,r){const n=await Promise.all(e.map(async e=>{try{return{failed:!1,...N(await e(t,{signal:r}))}}catch(e){const t=r.aborted||function(e){if(!e||"object"!=typeof e)return!1;const{name:t,code:r}=e;return"AbortError"===t||"CanceledError"===t||"ERR_CANCELED"===r}(e);return{failed:!t,results:[],truncatedTypes:[]}}}));return{results:n.flatMap(e=>e.results),truncatedTypes:Array.from(new Set(n.flatMap(e=>e.truncatedTypes))),failed:n.filter(e=>e.failed).length}}(t,e,r.signal);r.isCurrent()&&(a(s.results),l(s.truncatedTypes),d(0===s.failed?"none":s.failed>=t.length?"all":"some"),i(!1))},250);return()=>{clearTimeout(s),n.cancel()}},[e,t,r]);return{results:n,truncatedTypes:s,loading:o,failure:c,reset:b(()=>{u.current.cancel(),a(e=>0===e.length?e:[]),l(A),d("none"),i(!1)},[])}}var C=(e,t)=>`${e}-opt-${t}`;function E(e,t){if("seeAll"===e.kind)return l;if("action"===e.kind)return e.icon??n;if(e.icon)return e.icon;const r=t?.[o(e.result)];return r||n}function T({sections:e,activeIdx:t,listId:r,label:n,typeIcons:a,groupCount:s,groupLabel:l,onHover:o,onPick:i}){let c=0;/* @__PURE__ */
1
+ import{buildQuerySections as e,buildEmptySections as t,flattenRows as r,DEFAULT_MAGNIFIER as n,stepIndex as a,nextGroupIndex as s,SEE_ALL_ICON as l,resultTypeKey as o}from"./chunk-HGOWQO63.js";import{useDismissPopupsOnOpen as i}from"./chunk-UVHXVSB2.js";import{SpinnerRing as c,LoadingSpinner as d}from"./chunk-R2VKEMZH.js";import{Z_LAYERS as u}from"./chunk-62LW225J.js";import{glassStyle as p}from"./chunk-5FYDNH4Y.js";import{useShellStrings as m}from"./chunk-IUVGHHR3.js";import{useState as h,useRef as f,useEffect as y,useMemo as g,useId as x,useCallback as b}from"react";import{createPortal as k}from"react-dom";import{jsxs as v,jsx as w}from"react/jsx-runtime";function N(e){if(Array.isArray(e))return{results:e,truncatedTypes:[]};if(e&&"object"==typeof e&&Array.isArray(e.results)){const{results:t,truncatedTypes:r}=e;return{results:t,truncatedTypes:Array.isArray(r)?r:[]}}return{results:[],truncatedTypes:[]}}var A=[];function L(e,t,r){const[n,a]=h([]),[s,l]=h(A),[o,i]=h(!1),[c,d]=h("none"),u=f(function(){let e=0,t=null;const r=()=>{e+=1,t?.abort(),t=null};return{begin:()=>{r();const n=e,a=new AbortController;return t=a,{signal:a.signal,isCurrent:()=>n===e}},cancel:r}}());y(()=>{const n=u.current;if(e.length<r||!t||0===t.length)return n.cancel(),a(e=>0===e.length?e:[]),l(A),d("none"),void i(!1);i(!0);const s=setTimeout(async()=>{const r=n.begin(),s=await async function(e,t,r){const n=await Promise.all(e.map(async e=>{try{return{failed:!1,...N(await e(t,{signal:r}))}}catch(e){const t=r.aborted||function(e){if(!e||"object"!=typeof e)return!1;const{name:t,code:r}=e;return"AbortError"===t||"CanceledError"===t||"ERR_CANCELED"===r}(e);return{failed:!t,results:[],truncatedTypes:[]}}}));return{results:n.flatMap(e=>e.results),truncatedTypes:Array.from(new Set(n.flatMap(e=>e.truncatedTypes))),failed:n.filter(e=>e.failed).length}}(t,e,r.signal);r.isCurrent()&&(a(s.results),l(s.truncatedTypes),d(0===s.failed?"none":s.failed>=t.length?"all":"some"),i(!1))},250);return()=>{clearTimeout(s),n.cancel()}},[e,t,r]);return{results:n,truncatedTypes:s,loading:o,failure:c,reset:b(()=>{u.current.cancel(),a(e=>0===e.length?e:[]),l(A),d("none"),i(!1)},[])}}var C=(e,t)=>`${e}-opt-${t}`;function E(e,t){if("seeAll"===e.kind)return l;if("action"===e.kind)return e.icon??n;if(e.icon)return e.icon;const r=t?.[o(e.result)];return r||n}function T({sections:e,activeIdx:t,listId:r,label:n,typeIcons:a,groupCount:s,groupLabel:l,onHover:o,onPick:i}){let c=0;/* @__PURE__ */
2
2
  return w("div",{id:r,role:"listbox","aria-label":n,className:"py-1",children:e.map(e=>/* @__PURE__ */v("div",{role:"group","aria-label":l(e.title,e.count,!!e.truncated),children:[
3
3
  /* @__PURE__ */v("div",{"aria-hidden":"true",className:"flex items-center justify-between px-4 pt-2 pb-1 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:[
4
4
  /* @__PURE__ */w("span",{children:e.title}),
@@ -6,22 +6,22 @@ return w("div",{id:r,role:"listbox","aria-label":n,className:"py-1",children:e.m
6
6
  return v("div",{id:C(r,n),role:"option","aria-selected":s,className:"flex items-center gap-3 w-full px-4 py-3 text-left cursor-pointer transition-colors "+(s?"bg-blue-50":"hover:bg-gray-50"),onMouseDown:e=>e.preventDefault(),onClick:()=>i(e),onMouseEnter:()=>o(n),children:[
7
7
  /* @__PURE__ */w("svg",{className:"h-4 w-4 text-gray-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:/* @__PURE__ */w("path",{strokeLinecap:"round",strokeLinejoin:"round",d:E(e,a)})}),
8
8
  /* @__PURE__ */v("div",{className:"flex-1 min-w-0",children:[
9
- /* @__PURE__ */w("p",{className:"text-sm font-medium truncate "+(u?"text-blue-600":"text-gray-900"),children:e.label}),d&&/* @__PURE__ */w("p",{className:"text-xs text-gray-400 truncate",children:d})]}),l&&/* @__PURE__ */w("span",{className:"shrink-0 rounded-full bg-gray-100 px-2 py-0.5 text-3xs font-medium text-ink-faint",children:l})]},e.key)})]},e.key))})}var j="react-os-shell:open-global-search";function D(){"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(j))}function I({providers:l,typeIcons:o,typeLabels:N,listRoutes:A,placeholder:E,quickActions:D,onSelect:I,recent:K,onRecord:R,favorites:H,hotkey:M=!0}={}){const P=m().search,$=E??P.placeholder,[S,B]=h(!1),[W,z]=h(""),[F,G]=h(0),V=f(null),{results:O,truncatedTypes:Q,loading:U,failure:Y,reset:q}=L(W,l,2);y(()=>{const e=e=>{M&&!e.defaultPrevented&&(e.ctrlKey||e.metaKey)&&"k"===e.key&&(e.preventDefault(),B(e=>!e)),"Escape"===e.key&&S&&B(!1)},t=()=>B(!0);return window.addEventListener("keydown",e),window.addEventListener(j,t),()=>{window.removeEventListener("keydown",e),window.removeEventListener(j,t)}},[S,M]),i(S);const[J,X]=h(!1);S!==J&&(X(S),S&&(z(""),G(0),q())),y(()=>{S?setTimeout(()=>V.current?.focus(),50):z("")},[S]),y(()=>{G(0)},[O]);const Z=W.length>=2,_=g(()=>Z?e(O,D,W,P.actions,{truncatedTypes:Q,listRoutes:A,typeLabels:N,seeAllLabel:P.seeAll}):t({recent:K,favorites:H,actions:D,typeLabels:N},P),[Z,O,Q,A,N,D,W,K,H,P]),ee=g(()=>r(_),[_]),te=Math.min(F,Math.max(ee.length-1,0)),re=x(),ne=ee.length>0;y(()=>{S&&0!==ee.length&&document.getElementById(C(re,te))?.scrollIntoView?.({block:"nearest"})},[S,te,ee.length,re]);const ae=b(e=>{B(!1),"action"!==e.kind?("result"!==e.kind&&"recent"!==e.kind||R?.(e.result),I?.(e.result)):e.action.onSelect()},[I,R]);return S?k(
10
- /* @__PURE__ */v("div",{"data-global-search":"",className:"fixed inset-0 flex items-start justify-center pt-[15vh]",style:{zIndex:u.overlay},onClick:()=>B(!1),children:[
9
+ /* @__PURE__ */w("p",{className:"text-sm font-medium truncate "+(u?"text-blue-600":"text-gray-900"),children:e.label}),d&&/* @__PURE__ */w("p",{className:"text-xs text-gray-400 truncate",children:d})]}),l&&/* @__PURE__ */w("span",{className:"shrink-0 rounded-full bg-gray-100 px-2 py-0.5 text-3xs font-medium text-ink-faint",children:l})]},e.key)})]},e.key))})}var j="react-os-shell:open-global-search";function I(){"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent(j))}function D({providers:l,typeIcons:o,typeLabels:N,listRoutes:A,placeholder:E,quickActions:I,onSelect:D,recent:H,onRecord:K,favorites:R,hotkey:M=!0}={}){const $=m().search,B=E??$.placeholder,[P,V]=h(!1),[S,W]=h(""),[z,F]=h(0),G=f(null),{results:U,truncatedTypes:O,loading:Y,failure:q,reset:J}=L(S,l,2);y(()=>{const e=e=>{M&&!e.defaultPrevented&&(e.ctrlKey||e.metaKey)&&"k"===e.key&&(e.preventDefault(),V(e=>!e)),"Escape"===e.key&&P&&V(!1)},t=()=>V(!0);return window.addEventListener("keydown",e),window.addEventListener(j,t),()=>{window.removeEventListener("keydown",e),window.removeEventListener(j,t)}},[P,M]),i(P);const[Q,X]=h(!1);P!==Q&&(X(P),P&&(W(""),F(0),J())),y(()=>{P?setTimeout(()=>G.current?.focus(),50):W("")},[P]),y(()=>{F(0)},[U]);const Z=S.length>=2,_=g(()=>Z?e(U,I,S,$.actions,{truncatedTypes:O,listRoutes:A,typeLabels:N,seeAllLabel:$.seeAll}):t({recent:H,favorites:R,actions:I,typeLabels:N},$),[Z,U,O,A,N,I,S,H,R,$]),ee=g(()=>r(_),[_]),te=Math.min(z,Math.max(ee.length-1,0)),re=x(),ne=ee.length>0;y(()=>{P&&0!==ee.length&&document.getElementById(C(re,te))?.scrollIntoView?.({block:"nearest"})},[P,te,ee.length,re]);const ae=b(e=>{V(!1),"action"!==e.kind?("result"!==e.kind&&"recent"!==e.kind||K?.(e.result),D?.(e.result)):e.action.onSelect()},[D,K]);return P?k(
10
+ /* @__PURE__ */v("div",{"data-global-search":"",className:"fixed inset-0 flex items-start justify-center pt-[15vh]",style:{zIndex:u.overlay},onClick:()=>V(!1),children:[
11
11
  /* @__PURE__ */w("div",{"data-global-search-backdrop":"",className:"absolute inset-0 bg-black/50 backdrop-blur-sm"}),
12
12
  /* @__PURE__ */v("div",{className:"relative z-10 w-full max-w-xl rounded-(--radius-popup) overflow-hidden",onClick:e=>e.stopPropagation(),style:p(),children:[
13
13
  /* @__PURE__ */v("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-gray-200",children:[
14
14
  /* @__PURE__ */w("svg",{className:"h-5 w-5 text-gray-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:/* @__PURE__ */w("path",{strokeLinecap:"round",strokeLinejoin:"round",d:n})}),
15
- /* @__PURE__ */w("input",{ref:V,type:"text",value:W,onChange:e=>{z(e.target.value),G(0)},onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),G(a(te,1,ee.length))):"ArrowUp"===e.key?(e.preventDefault(),G(a(te,-1,ee.length))):"Tab"===e.key&&ee.length>0?(e.preventDefault(),G(s(_.map(e=>e.rows.length),te,e.shiftKey?-1:1))):"Enter"===e.key&&ee[te]&&ae(ee[te])},placeholder:$,role:"combobox","aria-expanded":ne,"aria-controls":ne?re:void 0,"aria-activedescendant":ne?C(re,te):void 0,"aria-autocomplete":"list",className:"flex-1 text-sm bg-transparent border-0 rosh-focus-ring placeholder-gray-400"}),U&&/* @__PURE__ */w("span",{"data-global-search-spinner":"",role:"status","aria-label":P.searching,className:"flex shrink-0",children:/* @__PURE__ */w(c,{className:"h-4 w-4",ink:"text-ink-faint"})}),
16
- /* @__PURE__ */w("kbd",{className:"hidden sm:inline-flex items-center rounded border border-line-strong px-2 py-0.5 text-2xs font-medium text-ink-faintest",children:P.escBadge})]}),
17
- /* @__PURE__ */v("div",{className:"max-h-[50vh] overflow-y-auto",children:[U&&0===ee.length&&/* @__PURE__ */w(d,{size:"sm",padding:"py-6",label:P.searching}),!U&&"all"===Y&&Z&&/* @__PURE__ */w("div",{role:"alert",className:"px-4 py-3 text-center text-sm text-red-600",children:P.searchFailed}),!U&&Z&&0===ee.length&&"all"!==Y&&/* @__PURE__ */w("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:P.noResults}),ne&&/* @__PURE__ */w(T,{sections:_,activeIdx:te,listId:re,label:P.listLabel,typeIcons:o,groupCount:P.groupCount,groupLabel:P.groupLabel,onHover:G,onPick:ae}),!U&&"some"===Y&&Z&&/* @__PURE__ */w("div",{role:"status",className:"px-4 py-2 text-xs text-amber-600",children:P.partialFailure}),!U&&!Z&&0===ee.length&&/* @__PURE__ */w("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:P.minChars(2)})]}),
15
+ /* @__PURE__ */w("input",{ref:G,type:"text",value:S,onChange:e=>{W(e.target.value),F(0)},onKeyDown:e=>{"ArrowDown"===e.key?(e.preventDefault(),F(a(te,1,ee.length))):"ArrowUp"===e.key?(e.preventDefault(),F(a(te,-1,ee.length))):"Tab"===e.key&&ee.length>0?(e.preventDefault(),F(s(_.map(e=>e.rows.length),te,e.shiftKey?-1:1))):"Enter"===e.key&&ee[te]&&ae(ee[te])},placeholder:B,role:"combobox","aria-expanded":ne,"aria-controls":ne?re:void 0,"aria-activedescendant":ne?C(re,te):void 0,"aria-autocomplete":"list",className:"flex-1 text-sm bg-transparent border-0 rosh-focus-ring placeholder-gray-400"}),Y&&/* @__PURE__ */w("span",{"data-global-search-spinner":"",role:"status","aria-label":$.searching,className:"flex shrink-0",children:/* @__PURE__ */w(c,{className:"h-4 w-4",ink:"text-ink-faint"})}),
16
+ /* @__PURE__ */w("kbd",{className:"hidden sm:inline-flex items-center rounded border border-line-strong px-2 py-0.5 text-2xs font-medium text-ink-faintest",children:$.escBadge})]}),
17
+ /* @__PURE__ */v("div",{className:"max-h-[50vh] overflow-y-auto",children:[Y&&0===ee.length&&/* @__PURE__ */w(d,{size:"sm",padding:"py-6",label:$.searching}),!Y&&"all"===q&&Z&&/* @__PURE__ */w("div",{role:"alert",className:"px-4 py-3 text-center text-sm text-red-600",children:$.searchFailed}),!Y&&Z&&0===ee.length&&"all"!==q&&/* @__PURE__ */w("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:$.noResults}),ne&&/* @__PURE__ */w(T,{sections:_,activeIdx:te,listId:re,label:$.listLabel,typeIcons:o,groupCount:$.groupCount,groupLabel:$.groupLabel,onHover:F,onPick:ae}),!Y&&"some"===q&&Z&&/* @__PURE__ */w("div",{role:"status",className:"px-4 py-2 text-xs text-amber-600",children:$.partialFailure}),!Y&&!Z&&0===ee.length&&/* @__PURE__ */w("div",{className:"px-4 py-6 text-center text-sm text-gray-400",children:$.minChars(2)})]}),
18
18
  /* @__PURE__ */v("div",{className:"flex items-center justify-between px-4 py-2 border-t border-line-subtle bg-surface-sunken text-2xs text-ink-faintest",children:[
19
19
  /* @__PURE__ */v("div",{className:"flex items-center gap-3",children:[
20
20
  /* @__PURE__ */v("span",{className:"flex items-center gap-1",children:[
21
21
  /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:"↑"}),
22
- /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:"↓"}),` ${P.navigate}`]}),
22
+ /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:"↓"}),` ${$.navigate}`]}),
23
23
  /* @__PURE__ */v("span",{className:"flex items-center gap-1",children:[
24
- /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:P.enterKey}),` ${P.open}`]}),_.length>1&&/* @__PURE__ */v("span",{className:"flex items-center gap-1",children:[
25
- /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:P.tabKey}),` ${P.nextGroup}`]})]}),
24
+ /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:$.enterKey}),` ${$.open}`]}),_.length>1&&/* @__PURE__ */v("span",{className:"flex items-center gap-1",children:[
25
+ /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:$.tabKey}),` ${$.nextGroup}`]})]}),
26
26
  /* @__PURE__ */v("span",{className:"flex items-center gap-1",children:[
27
- /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:P.escKey}),` ${P.close}`]})]})]})]}),document.body):null}export{I as GlobalSearch,D as openGlobalSearch};
27
+ /* @__PURE__ */w("kbd",{className:"rounded border border-gray-300 px-1 py-0.5 font-medium",children:$.escKey}),` ${$.close}`]})]})]})]}),document.body):null}export{D as GlobalSearch,I as openGlobalSearch};
@@ -1,5 +1,5 @@
1
- import{DropdownMenu as e}from"./chunk-3DSGJIC7.js";import{IconButton_default as r}from"./chunk-SV5RRBVA.js";import{inputClasses as n,PLACEHOLDER_INK as t}from"./chunk-AYZY3YNC.js";import{Tooltip as i}from"./chunk-SOZCWT6I.js";import{iconButtonClasses as a}from"./chunk-UQYNPYF4.js";import{forwardRef as s}from"react";import{jsx as o,jsxs as l}from"react/jsx-runtime";var c={sm:"sm",md:"sm",lg:"md",touch:"touch-sm"},m={sm:"pr-8",md:"pr-8",lg:"pr-10",touch:"pr-12"};function p({children:e}){/* @__PURE__ */
1
+ import{DropdownMenu as e}from"./chunk-EX3DARI3.js";import{IconButton_default as r}from"./chunk-NWS5G7FE.js";import{inputClasses as n,PLACEHOLDER_INK as t}from"./chunk-AYZY3YNC.js";import{Tooltip as i}from"./chunk-F2RAIGCG.js";import{iconButtonClasses as a}from"./chunk-UQYNPYF4.js";import{forwardRef as s}from"react";import{jsx as o,jsxs as l}from"react/jsx-runtime";var c={sm:"sm",md:"sm",lg:"md",touch:"touch-sm"},m={sm:"pr-8",md:"pr-8",lg:"pr-10",touch:"pr-12"};function p({children:e}){/* @__PURE__ */
2
2
  return o("span",{className:"absolute right-1 top-1/2 flex -translate-y-1/2 items-center gap-1",children:e})}function d({action:e,size:r="md"}){/* @__PURE__ */
3
3
  return o(h,{action:e,size:c[r]})}var u=["","pr-8","pr-16"];function h({action:n,size:t}){const{label:s,icon:l,onClick:c,menu:m}=n;/* @__PURE__ */
4
- return o(i,{content:s,describe:!1,children:m?/* @__PURE__ */o(e,{"aria-label":s,trigger:l,items:m,triggerClassName:a({size:t})}):/* @__PURE__ */o(r,{"aria-label":s,size:t,onClick:c,children:l})})}var f=s(function({invalid:e,leftIcon:r,rightAdornment:i,endAction:a,size:s,className:c="",readOnly:u,...h},f){const g=s??"md",v=`${r?"pl-10":""} ${a?m[g]:i?"pr-10":""}`.trim(),N=
5
- /* @__PURE__ */o("input",{ref:f,"aria-invalid":e||void 0,readOnly:u,className:n({invalid:e,size:s,readOnly:u,className:[v,c].filter(Boolean).join(" ")}),...h});return r||i||a?/* @__PURE__ */l("div",{className:"relative",children:[r&&/* @__PURE__ */o("span",{className:`pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 ${t}`,children:r}),N,a?/* @__PURE__ */o(p,{children:/* @__PURE__ */o(d,{action:a,size:g})}):i&&/* @__PURE__ */o("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400",children:i})]}):N});export{u as END_ACTIONS_PAD,c as INPUT_END_ACTION_SIZE,d as InputEndActionButton,p as InputEndActionSlot,f as Input_default};
4
+ return o(i,{content:s,describe:!1,children:m?/* @__PURE__ */o(e,{"aria-label":s,trigger:l,items:m,triggerClassName:a({size:t})}):/* @__PURE__ */o(r,{"aria-label":s,size:t,onClick:c,children:l})})}var f=s(function({invalid:e,leftIcon:r,rightAdornment:i,endAction:a,size:s,className:c="",readOnly:u,...h},f){const g=s??"md",N=`${r?"pl-10":""} ${a?m[g]:i?"pr-10":""}`.trim(),v=
5
+ /* @__PURE__ */o("input",{ref:f,"aria-invalid":e||void 0,readOnly:u,className:n({invalid:e,size:s,readOnly:u,className:[N,c].filter(Boolean).join(" ")}),...h});return r||i||a?/* @__PURE__ */l("div",{className:"relative",children:[r&&/* @__PURE__ */o("span",{className:`pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 ${t}`,children:r}),v,a?/* @__PURE__ */o(p,{children:/* @__PURE__ */o(d,{action:a,size:g})}):i&&/* @__PURE__ */o("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400",children:i})]}):v});export{u as END_ACTIONS_PAD,c as INPUT_END_ACTION_SIZE,d as InputEndActionButton,p as InputEndActionSlot,f as Input_default};
@@ -1,4 +1,4 @@
1
- import{Tabs as e}from"./chunk-I5EVMLPB.js";import{Card as a}from"./chunk-4S3E3VJH.js";import{StatusBadgeProvider as r,StatusBadge as t}from"./chunk-WU2ZA6J2.js";import{Button_default as l}from"./chunk-EVYD6UFQ.js";import{useState as i}from"react";import{jsx as d,jsxs as s}from"react/jsx-runtime";var n={featured:"success",new:"active",draft:"draft"},c=["linear-gradient(135deg,#60a5fa,#a78bfa)","linear-gradient(135deg,#34d399,#10b981)","linear-gradient(135deg,#fbbf24,#f59e0b)","linear-gradient(135deg,#f472b6,#ec4899)","linear-gradient(135deg,#38bdf8,#6366f1)","linear-gradient(135deg,#fb7185,#ef4444)","linear-gradient(135deg,#4ade80,#22c55e)","linear-gradient(135deg,#c084fc,#8b5cf6)"].map((e,a)=>({id:a,title:["Sunrise","Forest","Desert","Bloom","Ocean","Ember","Meadow","Dusk"][a],tag:["featured","new","draft"][a%3],bg:e}));function m(){const[m,g]=i("all"),f="all"===m?c:c.filter(e=>e.tag===m);/* @__PURE__ */
1
+ import{Tabs as e}from"./chunk-IJ4JX6WP.js";import{Card as a}from"./chunk-S25KELFW.js";import{StatusBadgeProvider as r,StatusBadge as t}from"./chunk-YDJ5IZOU.js";import{Button_default as l}from"./chunk-UTISUEO4.js";import{useState as i}from"react";import{jsx as d,jsxs as s}from"react/jsx-runtime";var n={featured:"success",new:"active",draft:"draft"},c=["linear-gradient(135deg,#60a5fa,#a78bfa)","linear-gradient(135deg,#34d399,#10b981)","linear-gradient(135deg,#fbbf24,#f59e0b)","linear-gradient(135deg,#f472b6,#ec4899)","linear-gradient(135deg,#38bdf8,#6366f1)","linear-gradient(135deg,#fb7185,#ef4444)","linear-gradient(135deg,#4ade80,#22c55e)","linear-gradient(135deg,#c084fc,#8b5cf6)"].map((e,a)=>({id:a,title:["Sunrise","Forest","Desert","Bloom","Ocean","Ember","Meadow","Dusk"][a],tag:["featured","new","draft"][a%3],bg:e}));function m(){const[m,g]=i("all"),f="all"===m?c:c.filter(e=>e.tag===m);/* @__PURE__ */
2
2
  return d(r,{groups:n,children:/* @__PURE__ */d("div",{className:"h-full overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */s("div",{className:"mx-auto max-w-5xl space-y-4",children:[
3
3
  /* @__PURE__ */s("div",{className:"flex items-center justify-between gap-4",children:[
4
4
  /* @__PURE__ */d("h1",{className:"text-xl font-semibold text-gray-900",children:"Gallery"}),
@@ -0,0 +1,2 @@
1
+ import{Z_LAYERS as t}from"./chunk-62LW225J.js";import{VIEWPORT_MARGIN as e,placeMenu as r,followRect as n}from"./chunk-VY3UA6AR.js";import{useHydrated as o}from"./chunk-WCCS4VFE.js";import{useBrowserLayoutEffect as i}from"./chunk-ZDXRSY2Y.js";import{solidSurfaceStyle as s}from"./chunk-5FYDNH4Y.js";import{useRef as c,useCallback as a,useEffect as u}from"react";import{createPortal as d}from"react-dom";import{jsx as f}from"react/jsx-runtime";var l=()=>({left:0,top:0,right:window.innerWidth,bottom:window.innerHeight});function p({anchor:p,bounds:m,side:h="top",align:b="start","aria-label":g,children:x,className:w=""}){const j=o(),v=c(null),k=c(p);k.current=p;const W=c(m);W.current=m;const Y=a(()=>{const t=v.current,n=k.current();if(!t||!n)return;const o=(W.current??l)(),i=t.style;i.maxWidth=`${Math.max(0,o.right-o.left-2*e)}px`;const s=r({trigger:n,menu:{width:t.offsetWidth,height:t.offsetHeight},bounds:o,align:b,side:h});i.left=`${s.left}px`,i.top=`${s.top}px`,t.dataset.side=s.side},[b,h]);i(()=>{j&&Y()}),u(()=>{if(!j)return;const t=n(()=>k.current(),Y),e=v.current;if(!e||"undefined"==typeof ResizeObserver)return t;const r=new ResizeObserver(()=>Y());return r.observe(e),()=>{t(),r.disconnect()}},[j,Y]);return j&&p()?d(
2
+ /* @__PURE__ */f("div",{ref:v,role:"group","aria-label":g,"data-floating-bar":"",onMouseDown:t=>{const e=t.target;e?.closest?.('input, textarea, select, [contenteditable]:not([contenteditable="false"])')||t.preventDefault()},className:`fixed rounded-(--radius-popup) p-1 ${w}`.trim(),style:{...s(),position:"fixed",left:0,top:0,zIndex:t.popup},children:x}),document.body):null}export{p as FloatingBar};
@@ -1,20 +1,20 @@
1
- import{MOVE_KEYS as e,MoveGrip as t,MoveHint as r,moveFromKey as a}from"./chunk-WF4A2HSB.js";import{ItemCount as n}from"./chunk-FTKLODQK.js";import{GROUP_COLORS as o}from"./chunk-WU2ZA6J2.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{OneLineLabel as s}from"./chunk-G67CJAQ2.js";import{Tooltip as l}from"./chunk-SOZCWT6I.js";import{useBrowserLayoutEffect as c}from"./chunk-D65T4H6J.js";import{useShellStrings as d}from"./chunk-IUVGHHR3.js";import{useRef as u,useCallback as p,useId as m,isValidElement as f}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";var b='[role="treeitem"]';function v(e){return[...e.querySelectorAll(b)].filter(t=>{for(let r=t.parentElement?.closest('[role="group"]');r&&e.contains(r);r=r.parentElement?.closest('[role="group"]')??null)if(r.hasAttribute("hidden"))return!1;return!0})}function y({"aria-label":e,"aria-labelledby":t,children:r,className:a="",rootProps:n}){const o=u(null);c(()=>{const e=o.current;if(!e)return;const t=[...e.querySelectorAll(b)];if(0===t.length)return;const r=t.find(e=>e===document.activeElement)??t.find(e=>"true"===e.getAttribute("aria-selected"))??v(e)[0]??t[0];for(const e of t)e.tabIndex=e===r?0:-1});const i=p(e=>{n?.onKeyDown?.(e);const t=o.current,r=e.target.closest?.(b);if(!t||!r||e.target!==r||e.defaultPrevented)return;if(e.altKey||e.ctrlKey||e.metaKey)return;const a=v(t),i=a.indexOf(r),s=Number(r.getAttribute("aria-level")??"1"),l=r=>{e.preventDefault(),function(e,t){if(t){for(const r of e.querySelectorAll(b))r.tabIndex=r===t?0:-1;t.focus()}}(t,r)};switch(e.key){case"ArrowDown":l(a[i+1]);break;case"ArrowUp":l(a[i-1]);break;case"Home":l(a[0]);break;case"End":l(a[a.length-1]);break;case"ArrowRight":if("true"===r.getAttribute("aria-expanded")){const t=a[i+1];t&&Number(t.getAttribute("aria-level")??"1")>s?l(t):e.preventDefault()}break;case"ArrowLeft":if("true"!==r.getAttribute("aria-expanded"))for(let e=i-1;e>=0;e--)if(Number(a[e].getAttribute("aria-level")??"1")<s){l(a[e]);break}}},[n]);/* @__PURE__ */
1
+ import{MOVE_KEYS as e,MoveGrip as t,MoveHint as r,moveFromKey as a}from"./chunk-ZCN5BU4U.js";import{ItemCount as n}from"./chunk-SXHV5OLA.js";import{GROUP_COLORS as o}from"./chunk-YDJ5IZOU.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{OneLineLabel as s}from"./chunk-TD3ZQD5R.js";import{Tooltip as l}from"./chunk-F2RAIGCG.js";import{useBrowserLayoutEffect as c}from"./chunk-ZDXRSY2Y.js";import{useShellStrings as d}from"./chunk-IUVGHHR3.js";import{useRef as u,useCallback as p,useId as m,isValidElement as f}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";var b='[role="treeitem"]';function v(e){return[...e.querySelectorAll(b)].filter(t=>{for(let r=t.parentElement?.closest('[role="group"]');r&&e.contains(r);r=r.parentElement?.closest('[role="group"]')??null)if(r.hasAttribute("hidden"))return!1;return!0})}function y({"aria-label":e,"aria-labelledby":t,children:r,className:a="",rootProps:n}){const o=u(null);c(()=>{const e=o.current;if(!e)return;const t=[...e.querySelectorAll(b)];if(0===t.length)return;const r=t.find(e=>e===document.activeElement)??t.find(e=>"true"===e.getAttribute("aria-selected"))??v(e)[0]??t[0];for(const e of t)e.tabIndex=e===r?0:-1});const i=p(e=>{n?.onKeyDown?.(e);const t=o.current,r=e.target.closest?.(b);if(!t||!r||e.target!==r||e.defaultPrevented)return;if(e.altKey||e.ctrlKey||e.metaKey)return;const a=v(t),i=a.indexOf(r),s=Number(r.getAttribute("aria-level")??"1"),l=r=>{e.preventDefault(),function(e,t){if(t){for(const r of e.querySelectorAll(b))r.tabIndex=r===t?0:-1;t.focus()}}(t,r)};switch(e.key){case"ArrowDown":l(a[i+1]);break;case"ArrowUp":l(a[i-1]);break;case"Home":l(a[0]);break;case"End":l(a[a.length-1]);break;case"ArrowRight":if("true"===r.getAttribute("aria-expanded")){const t=a[i+1];t&&Number(t.getAttribute("aria-level")??"1")>s?l(t):e.preventDefault()}break;case"ArrowLeft":if("true"!==r.getAttribute("aria-expanded"))for(let e=i-1;e>=0;e--)if(Number(a[e].getAttribute("aria-level")??"1")<s){l(a[e]);break}}},[n]);/* @__PURE__ */
2
2
  return h("div",{...n,ref:o,role:"tree","aria-label":t?void 0:e,"aria-labelledby":t,onKeyDown:i,className:`flex flex-col gap-1 ${a}`.trim(),children:r})}function x({children:e,hidden:t,className:r=""}){/* @__PURE__ */
3
3
  return h("div",{role:"group",hidden:t,className:`ml-4 flex flex-col gap-1 border-l border-gray-200 pl-2 ${r}`.trim(),children:e})}var k=["inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-full px-2","text-2xs font-medium normal-case tabular-nums tracking-normal"].join(" "),w=`${k} bg-[color:color-mix(in_srgb,var(--ink-faint)_12%,transparent)] text-gray-600`;function N(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&!f(e)&&"label"in e}function A(e){if(null==e||!1===e||"number"==typeof e)return null;const t=Array.isArray(e)&&e.length>0&&e.every(N)?e:N(e)?[e]:null;return t?t.map((e,t)=>/* @__PURE__ */h("span",{"data-tree-count":"","data-tone":e.tone,className:e.tone?`${k} ${o[e.tone]}`:w,children:e.label},t)):/* @__PURE__ */h("span",{"data-tree-count":"",className:w,children:e})}function j({children:e,count:t,countLabel:r,expanded:a,onToggle:o}){const i=void 0!==a,l=
4
4
  /* @__PURE__ */h("span",{"data-tree-label-text":"",className:"flex min-w-0 flex-1 text-left",children:/* @__PURE__ */h(s,{children:e})}),c="number"==typeof t?/* @__PURE__ */h(n,{count:t,label:r,showZero:!0}):null!=t&&!1!==t&&/* @__PURE__ */h("span",{"data-tree-count":"",className:w,children:t}),d="text-xs font-semibold uppercase tracking-wide text-ink-faint";return i?/* @__PURE__ */h("div",{role:"presentation",className:"pb-1 pt-3",children:/* @__PURE__ */g("button",{type:"button","aria-expanded":a,onClick:o,className:["flex w-full items-center gap-2 rounded-md px-2 hover:text-ink-strongest","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",d].join(" "),children:[
5
- /* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-caret":"",className:"flex h-4 w-4 shrink-0 items-center justify-center",children:$(!!a)}),l,c]})}):/* @__PURE__ */g("div",{role:"presentation",className:`flex items-center gap-2 px-2 pb-1 pt-3 ${d}`,children:[
6
- /* @__PURE__ */h("span",{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),l,c]})}var $=e=>/* @__PURE__ */h(i,{name:"chevron-right","aria-hidden":"true",strokeWidth:2.6,className:"h-3 w-3 transition-transform "+(e?"rotate-90":"")}),D={backgroundColor:"inherit",maskImage:"linear-gradient(to right, transparent, black 12px)",WebkitMaskImage:"linear-gradient(to right, transparent, black 12px)"};function P({label:o,level:i=1,icon:l,preview:c,selected:d=!1,tone:u,expanded:p,onToggle:f,onSelect:b,muted:v=!1,badge:y,count:x,countLabel:k,actions:w,actionsPinned:N=!1,actionsOverlay:j=!0,rename:P,drop:C,dragging:K=!1,draggable:I=!1,dragHint:H,onMove:S,rowProps:T,className:W=""}){const E=void 0!==p,L=m(),O=x??("number"==typeof y?y:void 0),R=[T?.["aria-describedby"],S?L:void 0].filter(Boolean).join(" ")||void 0,Z="shared"===u?"text-[color:var(--status-success-soft-ink)]":null,q=d?Z?`bg-[var(--status-success-soft)] ${Z}`:"bg-accent-tint text-blue-700":"into"===C?`bg-accent-tint ${Z??"text-ink-strongest"}`:`${Z??"text-ink"} hover:bg-gray-100`;/* @__PURE__ */
7
- return g("div",{...T,role:"treeitem","aria-level":i,"aria-selected":d,"aria-expanded":E?p:void 0,"data-tone":u,tabIndex:d?0:-1,"aria-keyshortcuts":T?.["aria-keyshortcuts"]??(S?e:void 0),"aria-describedby":R,"data-drop":C,"data-draggable":I||void 0,onKeyDown:e=>{if(T?.onKeyDown?.(e),e.target!==e.currentTarget||e.defaultPrevented)return;const t=a(e);t&&S?(e.preventDefault(),S(t)):"Enter"!==e.key&&" "!==e.key||!b?("ArrowRight"===e.key&&E&&!p&&f||"ArrowLeft"===e.key&&E&&p&&f)&&(e.preventDefault(),f()):(e.preventDefault(),b())},onClick:e=>{T?.onClick?.(e),e.defaultPrevented||b?.()},className:["group/treerow relative flex h-8 shrink-0 select-none items-center gap-2 rounded-md px-2 text-sm",I?"cursor-grab active:cursor-grabbing":"cursor-pointer","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",q,"into"===C?"ring-2 ring-inset ring-[color:var(--rosh-drop-ring)]":"",K?"opacity-40":"",W].filter(Boolean).join(" "),children:["before"===C&&/* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-drop-line":"",className:"pointer-events-none absolute inset-x-2 -top-0.5 h-0.5 rounded-full bg-blue-500"}),"after"===C&&/* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-drop-line":"",className:"pointer-events-none absolute inset-x-2 -bottom-0.5 h-0.5 rounded-full bg-blue-500"}),I&&
8
- /* @__PURE__ */h(t,{marker:"tree",hint:H,dragging:K,revealClassName:"group-hover/treerow:opacity-100"}),
9
- /* @__PURE__ */h("span",E?{"aria-hidden":"true","data-tree-caret":"",onClick:e=>{e.stopPropagation(),f?.()},className:"flex h-4 w-4 shrink-0 items-center justify-center rounded text-gray-500 hover:bg-gray-200 hover:text-gray-900",children:$(!!p)}:{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),null!=l&&/* @__PURE__ */h("span",{"aria-hidden":"true",className:"flex h-4 w-4 shrink-0 items-center justify-center "+(v?"text-ink-faintest":""),children:l}),
5
+ /* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-caret":"",className:"flex h-4 w-4 shrink-0 items-center justify-center",children:D(!!a)}),l,c]})}):/* @__PURE__ */g("div",{role:"presentation",className:`flex items-center gap-2 px-2 pb-1 pt-3 ${d}`,children:[
6
+ /* @__PURE__ */h("span",{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),l,c]})}var D=e=>/* @__PURE__ */h(i,{name:"chevron-right","aria-hidden":"true",strokeWidth:2.6,className:"h-3 w-3 transition-transform "+(e?"rotate-90":"")}),$={backgroundColor:"inherit",maskImage:"linear-gradient(to right, transparent, black 12px)",WebkitMaskImage:"linear-gradient(to right, transparent, black 12px)"};function P({label:o,level:i=1,icon:l,preview:c,selected:d=!1,tone:u,expanded:p,onToggle:f,onSelect:b,muted:v=!1,badge:y,count:x,countLabel:k,actions:w,actionsPinned:N=!1,actionsOverlay:j=!0,rename:P,drop:C,dragging:I=!1,draggable:K=!1,dragHint:S,onMove:H,rowProps:R,className:Z=""}){const E=void 0!==p,L=m(),O=x??("number"==typeof y?y:void 0),U=[R?.["aria-describedby"],H?L:void 0].filter(Boolean).join(" ")||void 0,T="shared"===u?"text-[color:var(--status-success-soft-ink)]":null,q=d?T?`bg-[var(--status-success-soft)] ${T}`:"bg-accent-tint text-blue-700":"into"===C?`bg-accent-tint ${T??"text-ink-strongest"}`:`${T??"text-ink"} hover:bg-gray-100`;/* @__PURE__ */
7
+ return g("div",{...R,role:"treeitem","aria-level":i,"aria-selected":d,"aria-expanded":E?p:void 0,"data-tone":u,tabIndex:d?0:-1,"aria-keyshortcuts":R?.["aria-keyshortcuts"]??(H?e:void 0),"aria-describedby":U,"data-drop":C,"data-draggable":K||void 0,onKeyDown:e=>{if(R?.onKeyDown?.(e),e.target!==e.currentTarget||e.defaultPrevented)return;const t=a(e);t&&H?(e.preventDefault(),H(t)):"Enter"!==e.key&&" "!==e.key||!b?("ArrowRight"===e.key&&E&&!p&&f||"ArrowLeft"===e.key&&E&&p&&f)&&(e.preventDefault(),f()):(e.preventDefault(),b())},onClick:e=>{R?.onClick?.(e),e.defaultPrevented||b?.()},className:["group/treerow relative flex h-8 shrink-0 select-none items-center gap-2 rounded-md px-2 text-sm",K?"cursor-grab active:cursor-grabbing":"cursor-pointer","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",q,"into"===C?"ring-2 ring-inset ring-[color:var(--rosh-drop-ring)]":"",I?"opacity-40":"",Z].filter(Boolean).join(" "),children:["before"===C&&/* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-drop-line":"",className:"pointer-events-none absolute inset-x-2 -top-0.5 h-0.5 rounded-full bg-blue-500"}),"after"===C&&/* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-drop-line":"",className:"pointer-events-none absolute inset-x-2 -bottom-0.5 h-0.5 rounded-full bg-blue-500"}),K&&
8
+ /* @__PURE__ */h(t,{marker:"tree",hint:S,dragging:I,revealClassName:"group-hover/treerow:opacity-100"}),
9
+ /* @__PURE__ */h("span",E?{"aria-hidden":"true","data-tree-caret":"",onClick:e=>{e.stopPropagation(),f?.()},className:"flex h-4 w-4 shrink-0 items-center justify-center rounded text-gray-500 hover:bg-gray-200 hover:text-gray-900",children:D(!!p)}:{"aria-hidden":"true",className:"h-4 w-4 shrink-0"}),null!=l&&/* @__PURE__ */h("span",{"aria-hidden":"true",className:"flex h-4 w-4 shrink-0 items-center justify-center "+(v?"text-ink-faintest":""),children:l}),
10
10
  /* @__PURE__ */g("span",{className:"relative flex min-w-0 flex-1 items-center gap-2",children:[P??
11
11
  /* @__PURE__ */h("span",{"data-tree-name":"",className:`flex min-w-0 ${d?"font-semibold":"font-medium"} ${v?"text-ink-faintest line-through":""}`,children:/* @__PURE__ */g(s,{children:[o,null!=c&&/* @__PURE__ */h("span",{className:"ml-2 font-normal text-ink-faint",children:c})]})}),A(y),null!=O&&/* @__PURE__ */h(n,{count:O,label:k,active:d,showZero:!0,className:"ml-auto"}),null!=w&&!j&&/* @__PURE__ */h("span",{"data-tree-actions":"",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),className:`${null!=O?"":"ml-auto "}flex shrink-0 items-center gap-0.5 transition-opacity ${N||v?"opacity-100":"opacity-0 group-hover/treerow:opacity-100 group-focus-within/treerow:opacity-100"}`,children:w})]}),null!=w&&j&&
12
- /* @__PURE__ */g("span",{"data-tree-actions":"","data-tree-actions-overlay":"",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),style:D,className:"absolute inset-y-0 right-0 grid rounded-r-md transition-opacity "+(N||v||d?"opacity-100":"pointer-events-none opacity-0 group-hover/treerow:pointer-events-auto group-hover/treerow:opacity-100 group-focus-within/treerow:pointer-events-auto group-focus-within/treerow:opacity-100"),children:[
12
+ /* @__PURE__ */g("span",{"data-tree-actions":"","data-tree-actions-overlay":"",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),style:$,className:"absolute inset-y-0 right-0 grid rounded-r-md transition-opacity "+(N||v||d?"opacity-100":"pointer-events-none opacity-0 group-hover/treerow:pointer-events-auto group-hover/treerow:opacity-100 group-focus-within/treerow:pointer-events-auto group-focus-within/treerow:opacity-100"),children:[
13
13
  /* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-actions-scrim":"",className:"col-start-1 row-start-1",style:{background:"var(--rosh-tree-ground, var(--surface))"}}),
14
14
  /* @__PURE__ */h("span",{"aria-hidden":"true",className:"col-start-1 row-start-1",style:{backgroundColor:"inherit"}}),
15
- /* @__PURE__ */h("span",{className:"col-start-1 row-start-1 flex items-center gap-0.5 pl-4 pr-2",children:w})]}),S&&/* @__PURE__ */h(r,{id:L})]})}function C({onAdd:e,label:t,drop:r=!1,slotProps:a}){const n=d().tree,o=r?n.dropHere:t??n.empty,i="flex min-h-8 w-full items-center gap-2 rounded-md border border-dashed px-3 text-sm "+(r?"border-blue-500 bg-blue-50 text-blue-700":"border-gray-300 text-gray-500");/* @__PURE__ */
15
+ /* @__PURE__ */h("span",{className:"col-start-1 row-start-1 flex items-center gap-0.5 pl-4 pr-2",children:w})]}),H&&/* @__PURE__ */h(r,{id:L})]})}function C({onAdd:e,label:t,drop:r=!1,slotProps:a}){const n=d().tree,o=r?n.dropHere:t??n.empty,i="flex min-h-8 w-full items-center gap-2 rounded-md border border-dashed px-3 text-sm "+(r?"border-blue-500 bg-blue-50 text-blue-700":"border-gray-300 text-gray-500");/* @__PURE__ */
16
16
  return h("div",{...a,role:"presentation","data-drop":r||void 0,children:e?/* @__PURE__ */g("button",{type:"button",onClick:e,className:`${i} text-left hover:bg-gray-100 hover:text-gray-900 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]`,children:[
17
- /* @__PURE__ */h("span",{"aria-hidden":"true",children:"+"}),o]}):/* @__PURE__ */h("span",{className:i,children:o})})}function K({onInsert:e,label:t,drop:r=!1,seamProps:a}){const n=d().tree,o=t??n.insertHere,s=r?"opacity-100":e?"opacity-0 group-hover/seam:opacity-100 group-focus-within/seam:opacity-100":"opacity-0";/* @__PURE__ */
17
+ /* @__PURE__ */h("span",{"aria-hidden":"true",children:"+"}),o]}):/* @__PURE__ */h("span",{className:i,children:o})})}function I({onInsert:e,label:t,drop:r=!1,seamProps:a}){const n=d().tree,o=t??n.insertHere,s=r?"opacity-100":e?"opacity-0 group-hover/seam:opacity-100 group-focus-within/seam:opacity-100":"opacity-0";/* @__PURE__ */
18
18
  return g("div",{...a,role:"presentation","data-tree-seam":"","data-drop":r||void 0,className:`group/seam relative z-10 -my-1 h-1 shrink-0 ${a?.className??""}`.trim(),children:[
19
19
  /* @__PURE__ */h("span",{"aria-hidden":"true",className:"absolute inset-x-0 -bottom-1 -top-1"}),
20
- /* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-seam-line":"",className:`pointer-events-none absolute inset-x-2 top-1/2 h-0.5 -translate-y-1/2 rounded-full bg-blue-500 transition-opacity ${s}`}),e&&/* @__PURE__ */h(l,{content:o,className:"absolute left-1/2 top-1/2 inline-flex -translate-x-1/2 -translate-y-1/2",children:/* @__PURE__ */h("button",{type:"button","aria-label":o,onClick:e,className:"flex h-5 w-5 items-center justify-center rounded-full bg-blue-600 text-white transition rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] "+(r?"scale-75 opacity-0":"scale-75 opacity-0 group-hover/seam:scale-100 group-hover/seam:opacity-100 focus-visible:scale-100 focus-visible:opacity-100"),children:/* @__PURE__ */h(i,{name:"add","aria-hidden":"true",strokeWidth:2.6,className:"h-3 w-3"})})})]})}export{y as Tree,C as TreeEmptySlot,x as TreeGroup,j as TreeGroupLabel,P as TreeRow,K as TreeSeam};
20
+ /* @__PURE__ */h("span",{"aria-hidden":"true","data-tree-seam-line":"",className:`pointer-events-none absolute inset-x-2 top-1/2 h-0.5 -translate-y-1/2 rounded-full bg-blue-500 transition-opacity ${s}`}),e&&/* @__PURE__ */h(l,{content:o,className:"absolute left-1/2 top-1/2 inline-flex -translate-x-1/2 -translate-y-1/2",children:/* @__PURE__ */h("button",{type:"button","aria-label":o,onClick:e,className:"flex h-5 w-5 items-center justify-center rounded-full bg-blue-600 text-white transition rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] "+(r?"scale-75 opacity-0":"scale-75 opacity-0 group-hover/seam:scale-100 group-hover/seam:opacity-100 focus-visible:scale-100 focus-visible:opacity-100"),children:/* @__PURE__ */h(i,{name:"add","aria-hidden":"true",strokeWidth:2.6,className:"h-3 w-3"})})})]})}export{y as Tree,C as TreeEmptySlot,x as TreeGroup,j as TreeGroupLabel,P as TreeRow,I as TreeSeam};
@@ -1,4 +1,4 @@
1
- import{IconButton_default as e}from"./chunk-SV5RRBVA.js";import{CloseGlyph as t}from"./chunk-G4PPHQ23.js";import{humanSize as n,useFileIntake as r,FileIntakeAlert as a}from"./chunk-VFSAJMNX.js";import{Button_default as s}from"./chunk-EVYD6UFQ.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{useShellStrings as c}from"./chunk-IUVGHHR3.js";import{useRef as l,useEffect as o}from"react";import{jsx as d,jsxs as u}from"react/jsx-runtime";function m({className:e="h-4 w-4"}){/* @__PURE__ */
1
+ import{IconButton_default as e}from"./chunk-NWS5G7FE.js";import{CloseGlyph as t}from"./chunk-YWMCW5BN.js";import{humanSize as n,useFileIntake as r,FileIntakeAlert as a}from"./chunk-VFSAJMNX.js";import{Button_default as s}from"./chunk-UTISUEO4.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{useShellStrings as c}from"./chunk-IUVGHHR3.js";import{useRef as l,useEffect as o}from"react";import{jsx as d,jsxs as u}from"react/jsx-runtime";function m({className:e="h-4 w-4"}){/* @__PURE__ */
2
2
  return d(i,{name:"attach",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e})}function p({className:e="h-4 w-4"}){/* @__PURE__ */
3
3
  return d(i,{name:"page",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:e})}function h({intake:e,dropLabel:t,className:n="",children:r}){const a=c().files;/* @__PURE__ */
4
4
  return u("div",{...e.zoneProps,...e.pasteProps,className:`relative ${n}`,children:[r,
@@ -6,7 +6,7 @@ return u("div",{...e.zoneProps,...e.pasteProps,className:`relative ${n}`,childre
6
6
  return u("li",{className:"flex max-w-full items-center gap-2 rounded-md border border-line bg-surface-sunken py-1 pl-2 pr-1 text-xs text-ink",children:[c?/* @__PURE__ */d("img",{src:c,alt:"",className:"h-6 w-6 shrink-0 rounded object-cover"}):/* @__PURE__ */d("span",{className:"text-gray-400",children:/* @__PURE__ */d(p,{})}),
7
7
  /* @__PURE__ */d("span",{className:"min-w-0 truncate",title:e.name,children:e.name}),
8
8
  /* @__PURE__ */d("span",{className:"shrink-0 tabular-nums text-gray-400",children:n(e.size,i)}),r&&/* @__PURE__ */d("button",{type:"button",disabled:a,onClick:()=>r(s),"aria-label":i.remove(e.name),className:"shrink-0 rounded p-0.5 text-gray-400 hover:bg-gray-200 hover:text-gray-600 disabled:cursor-not-allowed",children:/* @__PURE__ */d(t,{className:"h-3.5 w-3.5"})})]},`${e.name}-${e.size}-${s}`)})})}function b({onClick:t,count:n=0,variant:r="button",label:a,disabled:i=!1}){const l=c().files,o=a??l.attach,p=n>0?`${o} (${n})`:o;return"icon"===r?/* @__PURE__ */u("span",{className:"relative inline-flex",children:[
9
- /* @__PURE__ */d(e,{"aria-label":p,onClick:t,disabled:i,size:"sm",children:/* @__PURE__ */d(m,{})}),n>0&&/* @__PURE__ */d("span",{"aria-hidden":"true",className:"pointer-events-none absolute -right-1 -top-1 min-w-[1rem] rounded-full bg-accent-fill px-1 text-center text-2xs font-semibold leading-4 text-on-accent",children:n})]}):/* @__PURE__ */d(s,{type:"button",variant:"secondary",size:"sm",onClick:t,disabled:i,leftIcon:/* @__PURE__ */d(m,{}),children:p})}function x({files:e,onChange:t,accept:n,maxSizeBytes:s,maxFiles:i,acceptHint:c,disabled:m=!1,dropLabel:p,attachLabel:x,trigger:g="button",actions:k,onReject:j,className:N="",children:v}){const L=r({accept:n,maxSizeBytes:s,maxFiles:i,acceptHint:c,disabled:m,multiple:!0,currentCount:e.length,onAccept:n=>t([...e,...n])}),R=l([]);return o(()=>{j&&L.rejections.length>0&&L.rejections!==R.current&&(R.current=L.rejections,j(L.rejections))},[L.rejections,j]),/* @__PURE__ */u(h,{intake:L,dropLabel:p,className:N,children:[v,
9
+ /* @__PURE__ */d(e,{"aria-label":p,onClick:t,disabled:i,size:"sm",children:/* @__PURE__ */d(m,{})}),n>0&&/* @__PURE__ */d("span",{"aria-hidden":"true",className:"pointer-events-none absolute -right-1 -top-1 min-w-[1rem] rounded-full bg-accent-fill px-1 text-center text-2xs font-semibold leading-4 text-on-accent",children:n})]}):/* @__PURE__ */d(s,{type:"button",variant:"secondary",size:"sm",onClick:t,disabled:i,leftIcon:/* @__PURE__ */d(m,{}),children:p})}function x({files:e,onChange:t,accept:n,maxSizeBytes:s,maxFiles:i,acceptHint:c,disabled:m=!1,dropLabel:p,attachLabel:x,trigger:g="button",actions:k,onReject:N,className:j="",children:v}){const L=r({accept:n,maxSizeBytes:s,maxFiles:i,acceptHint:c,disabled:m,multiple:!0,currentCount:e.length,onAccept:n=>t([...e,...n])}),y=l([]);return o(()=>{N&&L.rejections.length>0&&L.rejections!==y.current&&(y.current=L.rejections,N(L.rejections))},[L.rejections,N]),/* @__PURE__ */u(h,{intake:L,dropLabel:p,className:j,children:[v,
10
10
  /* @__PURE__ */d(f,{files:e,disabled:m,onRemove:n=>{L.clearRejections(),t(e.filter((e,t)=>t!==n))},className:"mt-2"}),
11
11
  /* @__PURE__ */u("div",{className:"mt-2 flex flex-wrap items-center gap-2",children:[
12
12
  /* @__PURE__ */d(b,{onClick:L.open,count:e.length,variant:g,label:x,disabled:m}),k]}),
@@ -0,0 +1 @@
1
+ import{PAYMENT_BRAND_DRAWINGS as r}from"./chunk-NISLELJF.js";import{BrandYoutubeIcon as o}from"./chunk-VW4FHT46.js";import{BrandZapierIcon as n}from"./chunk-QTM26JQP.js";import{BrandZendeskIcon as m}from"./chunk-77SI7AKG.js";import{BrandZoomIcon as a}from"./chunk-NK7HBFNQ.js";import{BrandVonageIcon as i}from"./chunk-Z5XEAC32.js";import{BrandWhatsappIcon as s}from"./chunk-W5I35GZZ.js";import{BrandWiseIcon as t}from"./chunk-V3GM5NXB.js";import{BrandWixIcon as p}from"./chunk-XUYWUGDM.js";import{BrandWoocommerceIcon as c}from"./chunk-7GB7CVQI.js";import{BrandXIcon as d}from"./chunk-4L7GLO5W.js";import{BrandXeroIcon as u}from"./chunk-FATXXVV3.js";import{BrandSquareIcon as b}from"./chunk-OIH56GH5.js";import{BrandSquarespaceIcon as h}from"./chunk-7KCJ77BP.js";import{BrandStripeIcon as k}from"./chunk-IBHBPSQN.js";import{BrandTelegramIcon as f}from"./chunk-ZZIVSJ2B.js";import{BrandTiktokIcon as j}from"./chunk-JREQY3YN.js";import{BrandTrelloIcon as e}from"./chunk-OSXM35MX.js";import{BrandUpsIcon as l}from"./chunk-YHYAGJ6V.js";import{BrandNotionIcon as g}from"./chunk-4FNGR474.js";import{BrandNvidiaIcon as F}from"./chunk-TUMURSQU.js";import{BrandPinterestIcon as M}from"./chunk-243NPEG6.js";import{BrandQuickbooksIcon as N}from"./chunk-6IUDFVTN.js";import{BrandSageIcon as H}from"./chunk-ONC3BFFM.js";import{BrandSamsungIcon as I}from"./chunk-7ELH72YJ.js";import{BrandShopifyIcon as V}from"./chunk-MVJ34HIV.js";import{BrandLinkedinIcon as Z}from"./chunk-G4GQOAWS.js";import{BrandMailchimpIcon as E}from"./chunk-INUXPG27.js";import{BrandMailgunIcon as G}from"./chunk-TI5WUO3V.js";import{BrandMakeIcon as B}from"./chunk-OM5K4WCB.js";import{BrandMessengerIcon as D}from"./chunk-IWQSBA3D.js";import{BrandMetaIcon as Q}from"./chunk-NEQFHRF3.js";import{BrandMyobIcon as W}from"./chunk-PYW3HX7A.js";import{BrandGooglesheetsIcon as X}from"./chunk-75IWV4ZF.js";import{BrandHubspotIcon as A}from"./chunk-NZBQVE3Q.js";import{BrandInstagramIcon as P}from"./chunk-3ER2WJNL.js";import{BrandIntelIcon as O}from"./chunk-HSXNUF53.js";import{BrandIntercomIcon as T}from"./chunk-FUSCAZEK.js";import{BrandLineIcon as U}from"./chunk-2ZD67TDP.js";import{BrandFedexIcon as J}from"./chunk-4CFQXH5N.js";import{BrandGithubIcon as L}from"./chunk-ZHNKLVWV.js";import{BrandGmailIcon as R}from"./chunk-5HDMPCZP.js";import{BrandGoogleadsIcon as C}from"./chunk-QYEMC2OA.js";import{BrandGoogleanalyticsIcon as S}from"./chunk-KTMEHSTB.js";import{BrandGooglecalendarIcon as K}from"./chunk-4RDYNULI.js";import{BrandGoogledriveIcon as Y}from"./chunk-R2IXRW5N.js";import{BrandCloudflareIcon as y}from"./chunk-4VIRG42K.js";import{BrandDellIcon as w}from"./chunk-L7DBGH2Z.js";import{BrandDhlIcon as x}from"./chunk-ZXU4DEQM.js";import{BrandDropboxIcon as v}from"./chunk-I27TFZJH.js";import{BrandEbayIcon as q}from"./chunk-PBGMVLOF.js";import{BrandEtsyIcon as z}from"./chunk-FMERDO2X.js";import{BrandFacebookIcon as $}from"./chunk-EHMDGAWA.js";import{BrandAnthropicIcon as _}from"./chunk-E3E7DODJ.js";import{BrandAppleIcon as rr}from"./chunk-4TWBDIMX.js";import{BrandAwsIcon as or}from"./chunk-RWL7F776.js";import{BrandBigcommerceIcon as nr}from"./chunk-ZBL4CN2E.js";import{BrandBrevoIcon as mr}from"./chunk-V6Q2GZAI.js";import{BrandCalendlyIcon as ar}from"./chunk-NTME34BP.js";import{BrandCampaignmonitorIcon as ir}from"./chunk-47OCVZXD.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":_,"brand-apple":rr,"brand-aws":or,"brand-bigcommerce":nr,"brand-brevo":mr,"brand-calendly":ar,"brand-campaignmonitor":ir,"brand-cloudflare":y,"brand-dell":w,"brand-dhl":x,"brand-dropbox":v,"brand-ebay":q,"brand-etsy":z,"brand-facebook":$,"brand-fedex":J,"brand-github":L,"brand-gmail":R,"brand-googleads":C,"brand-googleanalytics":S,"brand-googlecalendar":K,"brand-googledrive":Y,"brand-googlesheets":X,"brand-hubspot":A,"brand-instagram":P,"brand-intel":O,"brand-intercom":T,"brand-line":U,"brand-linkedin":Z,"brand-mailchimp":E,"brand-mailgun":G,"brand-make":B,"brand-messenger":D,"brand-meta":Q,"brand-myob":W,"brand-notion":g,"brand-nvidia":F,"brand-pinterest":M,"brand-quickbooks":N,"brand-sage":H,"brand-samsung":I,"brand-shopify":V,"brand-square":b,"brand-squarespace":h,"brand-stripe":k,"brand-telegram":f,"brand-tiktok":j,"brand-trello":e,"brand-ups":l,"brand-vonage":i,"brand-whatsapp":s,"brand-wise":t,"brand-wix":p,"brand-woocommerce":c,"brand-x":d,"brand-xero":u,"brand-youtube":o,"brand-zapier":n,"brand-zendesk":m,"brand-zoom":a};export{dr as BRAND_MARK_DRAWINGS};
@@ -1,7 +1,7 @@
1
- import{squarify as e}from"./chunk-46BYGPGD.js";import{AccessibleTable as t}from"./chunk-HY6CBG4M.js";import{useHighlight as l}from"./chunk-CNYAHYE6.js";import{usePlotWidth as a}from"./chunk-MAFUXCPZ.js";import{ChartTooltip as r}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as i,CHART_INK as o}from"./chunk-TZFACUMR.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,C=c(null),H=a(C),B=v??H,[F,G]=u(null),{highlighted:V}=l(),Y=e(p,B,d);if(0===Y.length)/* @__PURE__ */
2
- return s("div",{className:b,ref:C,children:/* @__PURE__ */s("p",{className:"py-8 text-center text-sm text-gray-500",children:$})});const z=k??i(0),A=Math.max(...Y.map(e=>e.value),1),D=e=>34+e/A*62,I=e=>`color-mix(in oklab, ${z} ${D(e).toFixed(0)}%, ${o.surface})`,R=e=>D(e)>=55?o.surface:o.label,U=F??V,E=F?Y.find(e=>e.key===F):void 0;/* @__PURE__ */
3
- return f("div",{className:`relative ${b??""}`,ref:C,children:[
4
- /* @__PURE__ */s("svg",{width:"100%",height:d,viewBox:`0 0 ${B} ${d}`,role:"img","aria-label":M.treemap(p.length),onMouseLeave:()=>G(null),children:Y.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:U&&U!==e.key?.55:1,onMouseEnter:()=>G(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:R(e.value),children:e.label}),r&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+34,fontSize:11,fill:R(e.value),fillOpacity:.85,style:{fontVariantNumeric:"tabular-nums"},children:N(e.value)})]},e.key)})}),E&&/* @__PURE__ */s("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */s(r,{title:E.label,rows:[{key:"value",label:M.value,color:I(E.value),value:N(E.value)}]})}),
7
- /* @__PURE__ */s(t,{caption:M.treemap(p.length),head:[M.tableItem,M.value],rows:Y.map(e=>[e.label,N(e.value)])})]})}export{p as TreemapChart};
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{usePlotWidth as a}from"./chunk-MAFUXCPZ.js";import{ChartTooltip as r}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as i,CHART_INK as o}from"./chunk-TZFACUMR.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=a(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??i(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)}%, ${o.surface})`,Q=e=>G(e)>=55?o.surface:o.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(r,{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,15 +1,15 @@
1
- import{TimelineCard as e}from"./chunk-S4Z657L6.js";import{TimelineGlyph as t,TimelineProgressIcon as r,TimelineTrack as n}from"./chunk-PALWXHBQ.js";import{toDayMs as a,fmtSliderDate as i}from"./chunk-5CFERCYW.js";import{DAY_MS as o}from"./chunk-JRQMX4PK.js";import{Icon as s}from"./chunk-ISVODSRP.js";import{useBrowserValueOnce as l}from"./chunk-D65T4H6J.js";import{useShellStrings as c,useShellLocale as d,splitAround as p}from"./chunk-IUVGHHR3.js";import{useState as u,useEffect as m,useRef as g}from"react";import{jsxs as h,jsx as b,Fragment as y}from"react/jsx-runtime";var k=/* @__PURE__ */new Set(["finished","partial_shipped","shipped","completed","cancelled"]),f=[{key:"casting",label:"Casting",weight:.2},{key:"cnc",label:"CNC",weight:.2},{key:"painting",label:"Painting",weight:.5},{key:"packing",label:"Packing",weight:.1},{key:"finished_goods",label:"FG",weight:0},{key:"stock_qty",label:"Stock",weight:0}];function _(e){if(e.order_qty<=0)return 0;let t=0;for(const r of f)if(r.weight>0){t+=Math.min((e[r.key]||0)/e.order_qty,1)*r.weight}return 100*t}function v(e){const t=e?.items??[];return 0===t.length?0:t.reduce((e,t)=>e+_(t),0)/t.length}function M(e){const{reports:t,poProductionStartDate:r,poEstCompletionDate:n,poStatus:i,poNumber:s="",currentReportId:d,currentReportDate:p,msPerDayOfPlayback:h=500,markers:b=[]}=e,[y,f]=u(null),[_,v]=u(null),M=c().production;m(()=>{p?f(new Date(p).getTime()):t.length>0&&f(new Date(t[0].date).getTime())},[d]);const[w,P]=u(!1),N=g(null),S=()=>{null!=N.current&&(cancelAnimationFrame(N.current),N.current=null),P(!1)};m(()=>()=>S(),[]),m(()=>{S()},[d]);const x=t.map(e=>a(e.date)).filter(e=>null!=e),R=l(Date.now,null)??Math.max(0,...x,...b.map(e=>a(e.date)??0),a(r??null)??0,a(n??null)??0),C=x.length?Math.min(...x):R,D=x.length?Math.max(...x):R,q=a(r??null)??C,O=a(n??null)??0,j=k.has((i||"").toLowerCase()),I=b.reduce((e,t)=>{const r=a(t.date);return null!=r&&r>e?r:e},0),T=(()=>{const e=[O,D,I,q+o];return j||e.push(R),Math.max(...e)})(),$=Math.max(1,Math.round((T-q)/o)),A=a(p??null)??D??q,L=e=>Math.min(Math.max(e,q),T),F=L(y??A),H=null!=_?L(_):F,z=t.find(e=>{const t=a(e.date);return null!=t&&t<=H})??null;let B=null;for(let e=t.length-1;e>=0;e--){const r=a(t[e].date);if(null!=r&&r>H){B=t[e];break}}const E=(()=>{if(z||!B||0===t.length)return null;const e=(t[t.length-1].items??[]).map((e,t)=>({id:`zero-${e.part_number}-${t}`,part_number:e.part_number,description:e.description??"",order_qty:Number(e.order_qty||0),casting:0,cnc:0,painting:0,packing:0,finished_goods:0,stock_qty:0}));return{id:`zero-${s}`,progress_number:M.start,date:r||new Date(q).toISOString().slice(0,10),items:e,est_completion_date:n??null,created_by_name:"",notes:""}})(),G=z??E,J=z?a(z.date):E?q:null,K=B?a(B.date):null,Q=!!(G&&B&&null!=J&&null!=K&&H>J&&H<K),V=a(n??null),W=!!(z&&!B&&null!=J&&null!=V&&V>J&&H>J);let X,U;if(Q&&null!=J&&null!=K){const e=(H-J)/Math.max(K-J,1),t=(t,r)=>Math.round(t+(r-t)*e),r={};for(const e of G?.items??[])r[e.part_number]=e;const n={};for(const e of B?.items??[])n[e.part_number]=e;const i=Array.from(/* @__PURE__ */new Set([...Object.keys(r),...Object.keys(n)])).map((e,a)=>{const i=r[e]??{},o=n[e]??{},s=e=>Number(e)||0;return{id:`interp-${e}-${a}`,part_number:e,description:i.description??o.description??"",order_qty:s(i.order_qty??o.order_qty??0),casting:t(s(i.casting),s(o.casting)),cnc:t(s(i.cnc),s(o.cnc)),painting:t(s(i.painting),s(o.painting)),packing:t(s(i.packing),s(o.packing)),finished_goods:t(s(i.finished_goods),s(o.finished_goods)),stock_qty:t(s(i.stock_qty),s(o.stock_qty))}}),o=a(G?.est_completion_date),s=a(B?.est_completion_date);let l;l=null!=o&&null!=s?new Date(Math.round(o+(s-o)*e)).toISOString().slice(0,10):G?.est_completion_date||B?.est_completion_date||null,X={id:`interp-${H}`,progress_number:M.estimated,date:new Date(H).toISOString().slice(0,10),created_by_name:"",est_completion_date:l,items:i,notes:""},U=G}else if(W&&z&&null!=J&&null!=V){const e=Math.min(1,(H-J)/Math.max(V-J,1)),t=e=>Number(e)||0,r=(z.items??[]).map((r,n)=>{const a=t(r.order_qty),i=r=>{const n=t(r);return n>=a?n:Math.round(n+(a-n)*e)};return{id:`proj-${r.part_number}-${n}`,part_number:r.part_number,description:r.description??"",order_qty:a,casting:i(r.casting),cnc:i(r.cnc),painting:i(r.painting),packing:i(r.packing),finished_goods:i(r.finished_goods),stock_qty:i(r.stock_qty)}});X={id:`proj-${H}`,progress_number:M.estimated,date:new Date(H).toISOString().slice(0,10),created_by_name:"",est_completion_date:n??z.est_completion_date??null,items:r,notes:""},U=z}else if(X=G??t[t.length-1]??null,X){const e=t.findIndex(e=>e.id===X.id);U=e>=0&&e<t.length-1?t[e+1]:null}else U=null;const Y={};for(const e of U?.items??[])Y[e.part_number]=e;const Z=!(!d||X?.id===d),ee=d?Math.min(a(p??null)??T,T):T,te=d?t.find(e=>e.id===d)?.progress_number:void 0;return{startMs:q,endMs:T,totalLeadDays:$,scrubMs:H,setScrubMs:e=>{S(),v(null),f(e)},committedScrubMs:F,setPreviewMs:e=>{w||v(e)},previewing:null!=_,resetToCurrent:()=>{S(),p&&f(new Date(p).getTime())},scrubbedAway:Z,beforeAnchor:G,nextAfter:B,displayed:X,prevReport:U,prevByPN:Y,isInterpolated:Q,isProjected:W,playing:w,startPlay:()=>{if(w)return void S();if(ee<=q)return void f(ee);P(!0),f(q);let e=performance.now(),t=q;const r=n=>{const a=n-e;if(e=n,t+=a/h*o,t>=ee)return f(ee),N.current=null,void P(!1);f(t),N.current=requestAnimationFrame(r)};N.current=requestAnimationFrame(r)},stopPlay:S,reports:t,markers:b,poNumber:s,currentReportId:d,currentReportProgressNumber:te,estCompletionMs:a(n??null)}}function w({startMs:e,endMs:t,reports:r,markers:a,valueMs:s,activeId:l,onChange:p,onPickReport:u,onOpenReport:m,onOpenMarker:g,onDragStart:h,renderReportPreview:y,reportLabel:k,playback:f,edgeCaptions:_,bare:v=!1,endMark:M=null,onPreview:w,restMs:P}){const N=c().production,S=d(),x=r.map(e=>({report:e,ms:new Date(e.date).getTime()})).filter(({ms:e})=>Number.isFinite(e)).sort((e,t)=>e.ms-t.ms),R=x.map(({report:e,ms:t})=>({key:e.id,ms:t,kind:"report",label:k(e),preview:e.preview??y?.(e),onOpen:m?()=>m(e.id):void 0})),C=new Map(x.map(({report:e,ms:t})=>[e.id,t])),D=e=>Math.round(e/o)*o,q=g?a.map(e=>({...e,onOpen:g})):a;/* @__PURE__ */
2
- return b("div",{className:"select-none",children:/* @__PURE__ */b(n,{axis:v?"spread":"linear",labels:v?"none":"active",endMark:v?M:null,items:R,markers:q,startMs:e,endMs:t,activeKey:l,onActivate:e=>{const t=C.get(e);null!=t&&p(t),u(e)},playback:f,edgeCaptions:_,thumb:{valueMs:s,onChange:e=>p(D(e)),onDragStart:h,onPreview:w?e=>w(null==e?null:D(e)):void 0,restMs:P,ariaLabel:N.scrub,valueText:e=>{const t=(e=>x.find(t=>t.ms===e)?.report)(e);return t?`${k(t)} · ${i(e,S)}`:i(e,S)}},ariaLabel:N.label(i(e,S),i(t,S))})})}function P({snapshot:n,onPickReport:o,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,onScrubProgress:f,heading:_,edgeCaptions:M,reportLabel:P=e=>e.progress_number,resetLabel:N,variant:S="card",onPlayStart:x}){const{reports:R,markers:C,poNumber:D,startMs:q,endMs:O,totalLeadDays:j,scrubMs:I,setScrubMs:T,committedScrubMs:$,setPreviewMs:A,previewing:L,displayed:F,scrubbedAway:H,resetToCurrent:z,currentReportId:B,currentReportProgressNumber:E,estCompletionMs:G,isInterpolated:J,isProjected:K}=n,Q=!(!J&&!K),V=function(e,t,r){const[n,a]=u(!1),i=g(!1);return{playing:n,toggle:()=>{n?a(!1):0!==e.length&&(r?.(),i.current||(i.current=!0,t(e[0])),a(!0))},stop:()=>{i.current=!1,a(!1)}}}(R.map(e=>a(e.date)).filter(e=>null!=e).sort((e,t)=>e-t),T,x),W=c().production,X=d(),U=_??W.heading,Y=e=>i(e,X);if(0===R.length&&0===C.length)return null;const Z=C.filter(e=>"shipment"===e.kind),ee=C.filter(e=>"inspection"===e.kind),te=C.filter(e=>"invoice"===e.kind),re=(F?.items??[]).reduce((e,t)=>e+(Number(t.stock_qty)||0),0),ne=F?v(F):0,ae=R.find(e=>e.id===B),ie=ae?P(ae):E,oe=
3
- /* @__PURE__ */h("button",{type:"button",onClick:V.toggle,"aria-pressed":V.playing,title:V.playing?W.pause:W.playTitle,className:"rosh-tl-play text-gray-700 border-gray-300 hover:text-blue-600 hover:border-blue-600",children:[V.playing?/* @__PURE__ */b(s,{name:"pause","aria-hidden":"true"}):/* @__PURE__ */b(s,{name:"play","aria-hidden":"true"}),
4
- /* @__PURE__ */b("span",{children:V.playing?W.pause:W.play})]}),se=H&&(N??ie)?/* @__PURE__ */b("button",{type:"button",onClick:()=>{V.stop(),z()},className:"text-xs text-blue-600 underline-offset-4 hover:underline font-medium",children:N??W.backTo(String(ie))}):null,[le,ce]=p(W.showing),de=e=>/* @__PURE__ */b("p",{className:"rosh-tl-status text-gray-800",children:F?/* @__PURE__ */h(y,{children:[e&&le,
5
- /* @__PURE__ */b("b",{className:"font-medium",children:Q?W.estimated:P(F)}),e&&ce,
6
- /* @__PURE__ */h("span",{className:"text-gray-500",children:[" · ",Y(new Date(F.date).getTime())," · ",W.overall(Math.round(ne))," · ",W.inStock(re)]})]}):/* @__PURE__ */b("span",{className:"text-gray-500",children:W.noReport})});if("rail"===S){const e=null!=G&&G>=O&&O>q,t=e?{key:"__estimate__",label:W.estimatedCompletion,dateText:Y(G)}:null;/* @__PURE__ */
1
+ import{TimelineCard as e}from"./chunk-S4Z657L6.js";import{TimelineGlyph as t,TimelineProgressIcon as r,TimelineTrack as n}from"./chunk-LKAGXURQ.js";import{toDayMs as a,fmtSliderDate as i}from"./chunk-5CFERCYW.js";import{DAY_MS as o}from"./chunk-JRQMX4PK.js";import{Icon as s}from"./chunk-ISVODSRP.js";import{useBrowserValueOnce as l}from"./chunk-WCCS4VFE.js";import{useShellStrings as c,useShellLocale as d,splitAround as p}from"./chunk-IUVGHHR3.js";import{useState as u,useEffect as m,useRef as g}from"react";import{jsxs as h,jsx as b,Fragment as y}from"react/jsx-runtime";var k=/* @__PURE__ */new Set(["finished","partial_shipped","shipped","completed","cancelled"]),f=[{key:"casting",label:"Casting",weight:.2},{key:"cnc",label:"CNC",weight:.2},{key:"painting",label:"Painting",weight:.5},{key:"packing",label:"Packing",weight:.1},{key:"finished_goods",label:"FG",weight:0},{key:"stock_qty",label:"Stock",weight:0}];function _(e){if(e.order_qty<=0)return 0;let t=0;for(const r of f)if(r.weight>0){t+=Math.min((e[r.key]||0)/e.order_qty,1)*r.weight}return 100*t}function v(e){const t=e?.items??[];return 0===t.length?0:t.reduce((e,t)=>e+_(t),0)/t.length}function M(e){const{reports:t,poProductionStartDate:r,poEstCompletionDate:n,poStatus:i,poNumber:s="",currentReportId:d,currentReportDate:p,msPerDayOfPlayback:h=500,markers:b=[]}=e,[y,f]=u(null),[_,v]=u(null),M=c().production;m(()=>{p?f(new Date(p).getTime()):t.length>0&&f(new Date(t[0].date).getTime())},[d]);const[w,P]=u(!1),N=g(null),S=()=>{null!=N.current&&(cancelAnimationFrame(N.current),N.current=null),P(!1)};m(()=>()=>S(),[]),m(()=>{S()},[d]);const x=t.map(e=>a(e.date)).filter(e=>null!=e),C=l(Date.now,null)??Math.max(0,...x,...b.map(e=>a(e.date)??0),a(r??null)??0,a(n??null)??0),R=x.length?Math.min(...x):C,D=x.length?Math.max(...x):C,q=a(r??null)??R,O=a(n??null)??0,j=k.has((i||"").toLowerCase()),I=b.reduce((e,t)=>{const r=a(t.date);return null!=r&&r>e?r:e},0),$=(()=>{const e=[O,D,I,q+o];return j||e.push(C),Math.max(...e)})(),A=Math.max(1,Math.round(($-q)/o)),L=a(p??null)??D??q,T=e=>Math.min(Math.max(e,q),$),F=T(y??L),E=null!=_?T(_):F,G=t.find(e=>{const t=a(e.date);return null!=t&&t<=E})??null;let K=null;for(let e=t.length-1;e>=0;e--){const r=a(t[e].date);if(null!=r&&r>E){K=t[e];break}}const V=(()=>{if(G||!K||0===t.length)return null;const e=(t[t.length-1].items??[]).map((e,t)=>({id:`zero-${e.part_number}-${t}`,part_number:e.part_number,description:e.description??"",order_qty:Number(e.order_qty||0),casting:0,cnc:0,painting:0,packing:0,finished_goods:0,stock_qty:0}));return{id:`zero-${s}`,progress_number:M.start,date:r||new Date(q).toISOString().slice(0,10),items:e,est_completion_date:n??null,created_by_name:"",notes:""}})(),z=G??V,H=G?a(G.date):V?q:null,Q=K?a(K.date):null,U=!!(z&&K&&null!=H&&null!=Q&&E>H&&E<Q),W=a(n??null),X=!!(G&&!K&&null!=H&&null!=W&&W>H&&E>H);let B,J;if(U&&null!=H&&null!=Q){const e=(E-H)/Math.max(Q-H,1),t=(t,r)=>Math.round(t+(r-t)*e),r={};for(const e of z?.items??[])r[e.part_number]=e;const n={};for(const e of K?.items??[])n[e.part_number]=e;const i=Array.from(/* @__PURE__ */new Set([...Object.keys(r),...Object.keys(n)])).map((e,a)=>{const i=r[e]??{},o=n[e]??{},s=e=>Number(e)||0;return{id:`interp-${e}-${a}`,part_number:e,description:i.description??o.description??"",order_qty:s(i.order_qty??o.order_qty??0),casting:t(s(i.casting),s(o.casting)),cnc:t(s(i.cnc),s(o.cnc)),painting:t(s(i.painting),s(o.painting)),packing:t(s(i.packing),s(o.packing)),finished_goods:t(s(i.finished_goods),s(o.finished_goods)),stock_qty:t(s(i.stock_qty),s(o.stock_qty))}}),o=a(z?.est_completion_date),s=a(K?.est_completion_date);let l;l=null!=o&&null!=s?new Date(Math.round(o+(s-o)*e)).toISOString().slice(0,10):z?.est_completion_date||K?.est_completion_date||null,B={id:`interp-${E}`,progress_number:M.estimated,date:new Date(E).toISOString().slice(0,10),created_by_name:"",est_completion_date:l,items:i,notes:""},J=z}else if(X&&G&&null!=H&&null!=W){const e=Math.min(1,(E-H)/Math.max(W-H,1)),t=e=>Number(e)||0,r=(G.items??[]).map((r,n)=>{const a=t(r.order_qty),i=r=>{const n=t(r);return n>=a?n:Math.round(n+(a-n)*e)};return{id:`proj-${r.part_number}-${n}`,part_number:r.part_number,description:r.description??"",order_qty:a,casting:i(r.casting),cnc:i(r.cnc),painting:i(r.painting),packing:i(r.packing),finished_goods:i(r.finished_goods),stock_qty:i(r.stock_qty)}});B={id:`proj-${E}`,progress_number:M.estimated,date:new Date(E).toISOString().slice(0,10),created_by_name:"",est_completion_date:n??G.est_completion_date??null,items:r,notes:""},J=G}else if(B=z??t[t.length-1]??null,B){const e=t.findIndex(e=>e.id===B.id);J=e>=0&&e<t.length-1?t[e+1]:null}else J=null;const Y={};for(const e of J?.items??[])Y[e.part_number]=e;const Z=!(!d||B?.id===d),ee=d?Math.min(a(p??null)??$,$):$,te=d?t.find(e=>e.id===d)?.progress_number:void 0;return{startMs:q,endMs:$,totalLeadDays:A,scrubMs:E,setScrubMs:e=>{S(),v(null),f(e)},committedScrubMs:F,setPreviewMs:e=>{w||v(e)},previewing:null!=_,resetToCurrent:()=>{S(),p&&f(new Date(p).getTime())},scrubbedAway:Z,beforeAnchor:z,nextAfter:K,displayed:B,prevReport:J,prevByPN:Y,isInterpolated:U,isProjected:X,playing:w,startPlay:()=>{if(w)return void S();if(ee<=q)return void f(ee);P(!0),f(q);let e=performance.now(),t=q;const r=n=>{const a=n-e;if(e=n,t+=a/h*o,t>=ee)return f(ee),N.current=null,void P(!1);f(t),N.current=requestAnimationFrame(r)};N.current=requestAnimationFrame(r)},stopPlay:S,reports:t,markers:b,poNumber:s,currentReportId:d,currentReportProgressNumber:te,estCompletionMs:a(n??null)}}function w({startMs:e,endMs:t,reports:r,markers:a,valueMs:s,activeId:l,onChange:p,onPickReport:u,onOpenReport:m,onOpenMarker:g,onDragStart:h,renderReportPreview:y,reportLabel:k,playback:f,edgeCaptions:_,bare:v=!1,endMark:M=null,onPreview:w,restMs:P}){const N=c().production,S=d(),x=r.map(e=>({report:e,ms:new Date(e.date).getTime()})).filter(({ms:e})=>Number.isFinite(e)).sort((e,t)=>e.ms-t.ms),C=x.map(({report:e,ms:t})=>({key:e.id,ms:t,kind:"report",label:k(e),preview:e.preview??y?.(e),onOpen:m?()=>m(e.id):void 0})),R=new Map(x.map(({report:e,ms:t})=>[e.id,t])),D=e=>Math.round(e/o)*o,q=g?a.map(e=>({...e,onOpen:g})):a;/* @__PURE__ */
2
+ return b("div",{className:"select-none",children:/* @__PURE__ */b(n,{axis:v?"spread":"linear",labels:v?"none":"active",endMark:v?M:null,items:C,markers:q,startMs:e,endMs:t,activeKey:l,onActivate:e=>{const t=R.get(e);null!=t&&p(t),u(e)},playback:f,edgeCaptions:_,thumb:{valueMs:s,onChange:e=>p(D(e)),onDragStart:h,onPreview:w?e=>w(null==e?null:D(e)):void 0,restMs:P,ariaLabel:N.scrub,valueText:e=>{const t=(e=>x.find(t=>t.ms===e)?.report)(e);return t?`${k(t)} · ${i(e,S)}`:i(e,S)}},ariaLabel:N.label(i(e,S),i(t,S))})})}function P({snapshot:n,onPickReport:o,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,onScrubProgress:f,heading:_,edgeCaptions:M,reportLabel:P=e=>e.progress_number,resetLabel:N,variant:S="card",onPlayStart:x}){const{reports:C,markers:R,poNumber:D,startMs:q,endMs:O,totalLeadDays:j,scrubMs:I,setScrubMs:$,committedScrubMs:A,setPreviewMs:L,previewing:T,displayed:F,scrubbedAway:E,resetToCurrent:G,currentReportId:K,currentReportProgressNumber:V,estCompletionMs:z,isInterpolated:H,isProjected:Q}=n,U=!(!H&&!Q),W=function(e,t,r){const[n,a]=u(!1),i=g(!1);return{playing:n,toggle:()=>{n?a(!1):0!==e.length&&(r?.(),i.current||(i.current=!0,t(e[0])),a(!0))},stop:()=>{i.current=!1,a(!1)}}}(C.map(e=>a(e.date)).filter(e=>null!=e).sort((e,t)=>e-t),$,x),X=c().production,B=d(),J=_??X.heading,Y=e=>i(e,B);if(0===C.length&&0===R.length)return null;const Z=R.filter(e=>"shipment"===e.kind),ee=R.filter(e=>"inspection"===e.kind),te=R.filter(e=>"invoice"===e.kind),re=(F?.items??[]).reduce((e,t)=>e+(Number(t.stock_qty)||0),0),ne=F?v(F):0,ae=C.find(e=>e.id===K),ie=ae?P(ae):V,oe=
3
+ /* @__PURE__ */h("button",{type:"button",onClick:W.toggle,"aria-pressed":W.playing,title:W.playing?X.pause:X.playTitle,className:"rosh-tl-play text-gray-700 border-gray-300 hover:text-blue-600 hover:border-blue-600",children:[W.playing?/* @__PURE__ */b(s,{name:"pause","aria-hidden":"true"}):/* @__PURE__ */b(s,{name:"play","aria-hidden":"true"}),
4
+ /* @__PURE__ */b("span",{children:W.playing?X.pause:X.play})]}),se=E&&(N??ie)?/* @__PURE__ */b("button",{type:"button",onClick:()=>{W.stop(),G()},className:"text-xs text-blue-600 underline-offset-4 hover:underline font-medium",children:N??X.backTo(String(ie))}):null,[le,ce]=p(X.showing),de=e=>/* @__PURE__ */b("p",{className:"rosh-tl-status text-gray-800",children:F?/* @__PURE__ */h(y,{children:[e&&le,
5
+ /* @__PURE__ */b("b",{className:"font-medium",children:U?X.estimated:P(F)}),e&&ce,
6
+ /* @__PURE__ */h("span",{className:"text-gray-500",children:[" · ",Y(new Date(F.date).getTime())," · ",X.overall(Math.round(ne))," · ",X.inStock(re)]})]}):/* @__PURE__ */b("span",{className:"text-gray-500",children:X.noReport})});if("rail"===S){const e=null!=z&&z>=O&&O>q,t=e?{key:"__estimate__",label:X.estimatedCompletion,dateText:Y(z)}:null;/* @__PURE__ */
7
7
  return h("div",{className:"shrink-0","data-timeline-variant":"rail",children:[
8
- /* @__PURE__ */b(w,{bare:!0,endMark:t,startMs:q,endMs:O,reports:R,markers:C,valueMs:I,activeId:F?.id??"",onChange:T,onPreview:A,restMs:L?$:void 0,onPickReport:o,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,reportLabel:P,edgeCaptions:{start:M?.start??W.start,end:M?.end??(e?W.estDone:void 0)},onDragStart:V.stop,playback:{playing:V.playing,onArrive:(e,t)=>T(t),onProgress:f,onStop:V.stop}}),
8
+ /* @__PURE__ */b(w,{bare:!0,endMark:t,startMs:q,endMs:O,reports:C,markers:R,valueMs:I,activeId:F?.id??"",onChange:$,onPreview:L,restMs:T?A:void 0,onPickReport:o,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,reportLabel:P,edgeCaptions:{start:M?.start??X.start,end:M?.end??(e?X.estDone:void 0)},onDragStart:W.stop,playback:{playing:W.playing,onArrive:(e,t)=>$(t),onProgress:f,onStop:W.stop}}),
9
9
  /* @__PURE__ */h("div",{className:"rosh-tl-railrow","data-timeline-part":"rail-row",children:[oe,se,de(!1)]})]})}/* @__PURE__ */
10
- return b("div",{className:"shrink-0",children:/* @__PURE__ */b(e,{icon:/* @__PURE__ */b(r,{}),heading:U,subject:D,meta:[`${Y(q)} → ${Y(O)}`,W.leadTime(j)],actions:/* @__PURE__ */h(y,{children:[se,oe]}),footer:/* @__PURE__ */h(y,{children:[de(!0),
11
- /* @__PURE__ */h("div",{className:"rosh-tl-legend",children:[R.length>0&&/* @__PURE__ */h("span",{className:"border-gray-200 text-gray-500",children:[
12
- /* @__PURE__ */b("i",{"aria-hidden":"true",className:"rosh-tl-glyph is-ring border-blue-600"}),W.report]}),Z.length>0&&/* @__PURE__ */h("span",{className:"border-gray-200 text-gray-500",children:[
13
- /* @__PURE__ */b("i",{"aria-hidden":"true",className:"rosh-tl-glyph is-diamond",style:{background:"var(--tl-shipment)",color:"var(--tl-on-kind)"},children:/* @__PURE__ */b(t,{name:"truck"})}),W.shipment]}),ee.length>0&&/* @__PURE__ */h("span",{className:"border-gray-200 text-gray-500",children:[
14
- /* @__PURE__ */b("i",{"aria-hidden":"true",className:"rosh-tl-glyph is-disc",style:{background:"var(--tl-inspection)",color:"var(--tl-on-kind)"},children:/* @__PURE__ */b(t,{name:"flask"})}),W.inspection]}),te.length>0&&/* @__PURE__ */h("span",{className:"border-gray-200 text-gray-500",children:[
15
- /* @__PURE__ */b("i",{"aria-hidden":"true",className:"rosh-tl-glyph is-disc",style:{background:"var(--tl-invoice)",color:"var(--tl-on-kind)"},children:/* @__PURE__ */b(t,{name:"receipt"})}),W.invoice]})]})]}),children:/* @__PURE__ */b(w,{startMs:q,endMs:O,reports:R,markers:C,valueMs:I,activeId:F?.id??"",onChange:T,onPreview:A,restMs:L?$:void 0,onPickReport:o,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,reportLabel:P,edgeCaptions:M,onDragStart:V.stop,playback:{playing:V.playing,onArrive:(e,t)=>T(t),onProgress:f,onStop:V.stop}})})})}export{k as POST_PRODUCTION_STATUSES,P as ProductionTimeline,f as STAGES,_ as calcOverall,v as calcReportOverall,M as useProductionTimeline};
10
+ return b("div",{className:"shrink-0",children:/* @__PURE__ */b(e,{icon:/* @__PURE__ */b(r,{}),heading:J,subject:D,meta:[`${Y(q)} → ${Y(O)}`,X.leadTime(j)],actions:/* @__PURE__ */h(y,{children:[se,oe]}),footer:/* @__PURE__ */h(y,{children:[de(!0),
11
+ /* @__PURE__ */h("div",{className:"rosh-tl-legend",children:[C.length>0&&/* @__PURE__ */h("span",{className:"border-gray-200 text-gray-500",children:[
12
+ /* @__PURE__ */b("i",{"aria-hidden":"true",className:"rosh-tl-glyph is-ring border-blue-600"}),X.report]}),Z.length>0&&/* @__PURE__ */h("span",{className:"border-gray-200 text-gray-500",children:[
13
+ /* @__PURE__ */b("i",{"aria-hidden":"true",className:"rosh-tl-glyph is-diamond",style:{background:"var(--tl-shipment)",color:"var(--tl-on-kind)"},children:/* @__PURE__ */b(t,{name:"truck"})}),X.shipment]}),ee.length>0&&/* @__PURE__ */h("span",{className:"border-gray-200 text-gray-500",children:[
14
+ /* @__PURE__ */b("i",{"aria-hidden":"true",className:"rosh-tl-glyph is-disc",style:{background:"var(--tl-inspection)",color:"var(--tl-on-kind)"},children:/* @__PURE__ */b(t,{name:"flask"})}),X.inspection]}),te.length>0&&/* @__PURE__ */h("span",{className:"border-gray-200 text-gray-500",children:[
15
+ /* @__PURE__ */b("i",{"aria-hidden":"true",className:"rosh-tl-glyph is-disc",style:{background:"var(--tl-invoice)",color:"var(--tl-on-kind)"},children:/* @__PURE__ */b(t,{name:"receipt"})}),X.invoice]})]})]}),children:/* @__PURE__ */b(w,{startMs:q,endMs:O,reports:C,markers:R,valueMs:I,activeId:F?.id??"",onChange:$,onPreview:L,restMs:T?A:void 0,onPickReport:o,onOpenReport:l,onOpenMarker:m,renderReportPreview:k,reportLabel:P,edgeCaptions:M,onDragStart:W.stop,playback:{playing:W.playing,onArrive:(e,t)=>$(t),onProgress:f,onStop:W.stop}})})})}export{k as POST_PRODUCTION_STATUSES,P as ProductionTimeline,f as STAGES,_ as calcOverall,v as calcReportOverall,M as useProductionTimeline};
@@ -1,4 +1,4 @@
1
- import{Banner as e}from"./chunk-XWJT6TFU.js";import{Button_default as t}from"./chunk-EVYD6UFQ.js";import{useShellStrings as n}from"./chunk-IUVGHHR3.js";import{useState as r,useEffect as i}from"react";import{jsx as o,jsxs as a}from"react/jsx-runtime";var s=6e4;function c({currentVersion:e,versionUrl:t="/version.json",pollMs:n=6e4}){const[o,a]=r(null);return i(()=>{if(!e||null!==o)return;let r=!1;const i=async()=>{if("undefined"==typeof document||"hidden"!==document.visibilityState)try{const n=t.includes("?")?"&":"?",i=await fetch(`${t}${n}t=${Date.now()}`,{cache:"no-store"});if(!i.ok)return;const o=await i.json(),s=o&&"object"==typeof o&&"string"==typeof o.version?o.version:null;!r&&s&&s!==e&&a(s)}catch{}};i();const s=setInterval(()=>{i()},n),c=()=>{"visible"===document.visibilityState&&i()};return document.addEventListener("visibilitychange",c),()=>{r=!0,clearInterval(s),document.removeEventListener("visibilitychange",c)}},[e,t,n,o]),o}function l({currentVersion:r,versionUrl:i,pollMs:s,message:l,onRefresh:m,className:u=""}){const d=c({currentVersion:r,versionUrl:i,pollMs:s}),p=n();if(null===d)return null;const f=m??(()=>window.location.reload());/* @__PURE__ */
1
+ import{Banner as e}from"./chunk-XWJT6TFU.js";import{Button_default as t}from"./chunk-UTISUEO4.js";import{useShellStrings as n}from"./chunk-IUVGHHR3.js";import{useState as r,useEffect as i}from"react";import{jsx as o,jsxs as a}from"react/jsx-runtime";var s=6e4;function c({currentVersion:e,versionUrl:t="/version.json",pollMs:n=6e4}){const[o,a]=r(null);return i(()=>{if(!e||null!==o)return;let r=!1;const i=async()=>{if("undefined"==typeof document||"hidden"!==document.visibilityState)try{const n=t.includes("?")?"&":"?",i=await fetch(`${t}${n}t=${Date.now()}`,{cache:"no-store"});if(!i.ok)return;const o=await i.json(),s=o&&"object"==typeof o&&"string"==typeof o.version?o.version:null;!r&&s&&s!==e&&a(s)}catch{}};i();const s=setInterval(()=>{i()},n),c=()=>{"visible"===document.visibilityState&&i()};return document.addEventListener("visibilitychange",c),()=>{r=!0,clearInterval(s),document.removeEventListener("visibilitychange",c)}},[e,t,n,o]),o}function l({currentVersion:r,versionUrl:i,pollMs:s,message:l,onRefresh:m,className:u=""}){const d=c({currentVersion:r,versionUrl:i,pollMs:s}),p=n();if(null===d)return null;const f=m??(()=>window.location.reload());/* @__PURE__ */
2
2
  return o("div",{"data-app-update-banner":"",className:`fixed left-1/2 top-3 z-(--z-toast) w-max max-w-[calc(100vw-1.5rem)] -translate-x-1/2 ${u}`.trim(),children:/* @__PURE__ */a(e,{tone:"warning",className:"shadow-lg",action:/* @__PURE__ */o(t,{type:"button",variant:"primary",size:"md",onClick:f,children:p.update.refreshNow}),children:[
3
3
  /* @__PURE__ */o("span",{className:"font-medium",children:l??p.update.available}),
4
4
  /* @__PURE__ */a("span",{className:"ml-2 whitespace-nowrap font-mono text-xs text-gray-500",children:[r," → ",d]})]})})}export{s as APP_UPDATE_POLL_MS,l as AppUpdateBanner,c as useAppUpdate};
@@ -1,4 +1,4 @@
1
- import{InputNumber_default as e,stepRounding as r}from"./chunk-F5B5WOQ7.js";import{IconButton_default as a}from"./chunk-SV5RRBVA.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{Tooltip as n}from"./chunk-SOZCWT6I.js";import{useShellStrings as l}from"./chunk-IUVGHHR3.js";import{useState as t,useRef as o}from"react";import{jsxs as s,jsx as d}from"react/jsx-runtime";var u={tl:"",tr:"rotate-90",br:"rotate-180",bl:"-rotate-90"},c=["tl","tr","bl","br"];function m({label:m,value:f,corners:p,onChange:h,radius:v=null,onRadiusChange:b,radiusLabel:k,radiusMin:g=0,radiusMax:x,radiusStep:w=1,radiusPlaceholder:y,radiusUnit:R,units:j,disabled:A=!1,disabledReason:S,id:C,className:I=""}){const N=l(),D=function(e){const r=c.map(r=>e.find(e=>e.value===r));for(const a of e){if(c.includes(a.value))continue;const e=r.findIndex(e=>void 0===e);-1===e?r.push(a):r[e]=a}return r.filter(e=>void 0!==e)}(p),[K,M]=t(0),O=o(null);/* @__PURE__ */
2
- return s("div",{id:C,role:"group","aria-label":m,className:`flex min-w-0 flex-wrap items-center gap-2 ${I}`.trim(),children:[b&&
3
- /* @__PURE__ */d("div",{className:"w-30 shrink-0",children:/* @__PURE__ */d(e,{value:v,onChange:b,min:g,max:x,step:w,...r(w),placeholder:y,prefix:/* @__PURE__ */d("span",{"data-radius-mark":"","aria-hidden":"true",children:N.corners.radiusMark}),suffix:R??N.corners.unit,units:j,steppers:"compact",disabled:A,"aria-label":k??N.corners.radius})}),
4
- /* @__PURE__ */d("div",{ref:O,"data-corners-grid":"",className:"grid shrink-0 grid-cols-2 gap-1",onKeyDown:e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;const r=Array.from(O.current?.querySelectorAll("button[data-corner]")??[]),a=r.indexOf(document.activeElement);if(-1===a)return;const i=a%2,n=Math.floor(a/2),l="ArrowRight"===e.key?2*n+1:"ArrowLeft"===e.key?2*n:"ArrowDown"===e.key?2+i:"ArrowUp"===e.key?i:null;null!==l&&(e.preventDefault(),l<r.length&&r[l].focus())},children:D.map((e,r)=>{const l=f.includes(e.value),t=A||!0===e.disabled,o=t&&(!0===e.disabled&&e.title||(A?S:void 0))||void 0,s=/* @__PURE__ */d(a,{"aria-pressed":l,"aria-label":e.label,"aria-disabled":t||void 0,disabledReason:o,"data-corner":e.value,size:"sm",tabIndex:r===K?0:-1,onFocus:()=>M(r),onClick:()=>{t||h(l?f.filter(r=>r!==e.value):[...f,e.value])},children:/* @__PURE__ */d(i,{name:"corner",strokeWidth:2,className:["h-4 w-4",u[e.value]??""].filter(Boolean).join(" ")})},e.value);return o?s:/* @__PURE__ */d(n,{content:e.title??e.label,children:s},e.value)})})]})}export{m as CornersInput};
1
+ import{InputNumber_default as e,stepRounding as r}from"./chunk-FKMARSJZ.js";import{IconButton_default as a}from"./chunk-NWS5G7FE.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{Tooltip as n}from"./chunk-F2RAIGCG.js";import{useShellStrings as l}from"./chunk-IUVGHHR3.js";import{useState as t,useRef as o}from"react";import{jsxs as s,jsx as d}from"react/jsx-runtime";var u={tl:"",tr:"rotate-90",br:"rotate-180",bl:"-rotate-90"},c=["tl","tr","bl","br"];function m({label:m,value:f,corners:p,onChange:h,radius:v=null,onRadiusChange:b,radiusLabel:k,radiusMin:g=0,radiusMax:x,radiusStep:w=1,radiusPlaceholder:y,radiusUnit:A,units:R,disabled:j=!1,disabledReason:N,id:S,className:C=""}){const I=l(),K=function(e){const r=c.map(r=>e.find(e=>e.value===r));for(const a of e){if(c.includes(a.value))continue;const e=r.findIndex(e=>void 0===e);-1===e?r.push(a):r[e]=a}return r.filter(e=>void 0!==e)}(p),[M,D]=t(0),F=o(null);/* @__PURE__ */
2
+ return s("div",{id:S,role:"group","aria-label":m,className:`flex min-w-0 flex-wrap items-center gap-2 ${C}`.trim(),children:[b&&
3
+ /* @__PURE__ */d("div",{className:"w-30 shrink-0",children:/* @__PURE__ */d(e,{value:v,onChange:b,min:g,max:x,step:w,...r(w),placeholder:y,prefix:/* @__PURE__ */d("span",{"data-radius-mark":"","aria-hidden":"true",children:I.corners.radiusMark}),suffix:A??I.corners.unit,units:R,steppers:"compact",disabled:j,"aria-label":k??I.corners.radius})}),
4
+ /* @__PURE__ */d("div",{ref:F,"data-corners-grid":"",className:"grid shrink-0 grid-cols-2 gap-1",onKeyDown:e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;const r=Array.from(F.current?.querySelectorAll("button[data-corner]")??[]),a=r.indexOf(document.activeElement);if(-1===a)return;const i=a%2,n=Math.floor(a/2),l="ArrowRight"===e.key?2*n+1:"ArrowLeft"===e.key?2*n:"ArrowDown"===e.key?2+i:"ArrowUp"===e.key?i:null;null!==l&&(e.preventDefault(),l<r.length&&r[l].focus())},children:K.map((e,r)=>{const l=f.includes(e.value),t=j||!0===e.disabled,o=t&&(!0===e.disabled&&e.title||(j?N:void 0))||void 0,s=/* @__PURE__ */d(a,{"aria-pressed":l,"aria-label":e.label,"aria-disabled":t||void 0,disabledReason:o,"data-corner":e.value,size:"sm",tabIndex:r===M?0:-1,onFocus:()=>D(r),onClick:()=>{t||h(l?f.filter(r=>r!==e.value):[...f,e.value])},children:/* @__PURE__ */d(i,{name:"corner",strokeWidth:2,className:["h-4 w-4",u[e.value]??""].filter(Boolean).join(" ")})},e.value);return o?s:/* @__PURE__ */d(n,{content:e.title??e.label,children:s},e.value)})})]})}export{m as CornersInput};
@@ -1,5 +1,5 @@
1
- import{Icon as e}from"./chunk-ISVODSRP.js";import{Tooltip as t}from"./chunk-SOZCWT6I.js";import{useShellStrings as n}from"./chunk-IUVGHHR3.js";import{useId as i}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";var l=['input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled]):not(.es-default-reset)",'[tabindex]:not([tabindex="-1"])'].join(", "),s=e=>l.split(", ").map(t=>`${e} ${t}`).join(", ");function o({label:o,onReset:d,changed:c=!0,view:u="desktop",detail:b,name:p,tip:m,defaultAction:h,disabled:f,className:k}){const j=n().settingView,y=i(),N=["es-default-reset"];if(c&&N.push("is-changed"),k&&N.push(k),!c&&h)return N.push("is-pressable"),/* @__PURE__ */a(t,{content:h.title,children:/* @__PURE__ */a("button",{type:"button",className:N.join(" "),"aria-label":h.title,disabled:f,onClick:h.onPress,children:h.icon})});if(!c)/* @__PURE__ */return a("span",{className:N.join(" "),"aria-hidden":"true"});const S="desktop"===u,x=p??(S?j.resetName(o):j.inheritName(o)),T=b?j.backTo(b):S?j.backToDefault:j.backToAuto,g=m??(b?j.tip(x,T):x);
1
+ import{Icon as e}from"./chunk-ISVODSRP.js";import{Tooltip as t}from"./chunk-F2RAIGCG.js";import{useShellStrings as n}from"./chunk-IUVGHHR3.js";import{useId as i}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";var l=['input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled]):not(.es-default-reset)",'[tabindex]:not([tabindex="-1"])'].join(", "),s=e=>l.split(", ").map(t=>`${e} ${t}`).join(", ");function o({label:o,onReset:d,changed:c=!0,view:u="desktop",detail:b,name:p,tip:m,defaultAction:h,disabled:f,className:k}){const j=n().settingView,y=i(),N=["es-default-reset"];if(c&&N.push("is-changed"),k&&N.push(k),!c&&h)return N.push("is-pressable"),/* @__PURE__ */a(t,{content:h.title,children:/* @__PURE__ */a("button",{type:"button",className:N.join(" "),"aria-label":h.title,disabled:f,onClick:h.onPress,children:h.icon})});if(!c)/* @__PURE__ */return a("span",{className:N.join(" "),"aria-hidden":"true"});const x="desktop"===u,S=p??(x?j.resetName(o):j.inheritName(o)),g=b?j.backTo(b):x?j.backToDefault:j.backToAuto,A=m??(b?j.tip(S,g):S);
2
2
  /* @__PURE__ */
3
- return r(t,{content:g,describe:!1,children:[
4
- /* @__PURE__ */a("button",{type:"button",className:N.join(" "),"aria-label":x,"aria-describedby":y,disabled:f,onClick:e=>{d(),function(e){const t=e.currentTarget,n=t.closest(".es-field");let i=n?.querySelector(s(".es-field-ctl"))??n?.querySelector(s(".es-field-head"))??null,a=n?null:t.parentElement;for(let e=0;!i&&a&&e<4;e+=1,a=a.parentElement)i=[...a.querySelectorAll(l)].find(e=>e!==t&&!e.closest('[aria-hidden="true"]'))??null;i?.focus()}(e)},children:/* @__PURE__ */a(e,{name:"revert",size:15,"aria-hidden":"true"})}),
5
- /* @__PURE__ */a("span",{id:y,hidden:!0,children:T})]})}export{o as SettingReset};
3
+ return r(t,{content:A,describe:!1,children:[
4
+ /* @__PURE__ */a("button",{type:"button",className:N.join(" "),"aria-label":S,"aria-describedby":y,disabled:f,onClick:e=>{d(),function(e){const t=e.currentTarget,n=t.closest(".es-field");let i=n?.querySelector(s(".es-field-ctl"))??n?.querySelector(s(".es-field-head"))??null,a=n?null:t.parentElement;for(let e=0;!i&&a&&e<4;e+=1,a=a.parentElement)i=[...a.querySelectorAll(l)].find(e=>e!==t&&!e.closest('[aria-hidden="true"]'))??null;i?.focus()}(e)},children:/* @__PURE__ */a(e,{name:"revert",size:15,"aria-hidden":"true"})}),
5
+ /* @__PURE__ */a("span",{id:y,hidden:!0,children:g})]})}export{o as SettingReset};
@@ -1,4 +1,4 @@
1
- import{Card as e}from"./chunk-4S3E3VJH.js";import{Textarea_default as a}from"./chunk-PB7G6CJ7.js";import{Radio_default as l}from"./chunk-NI5FXWK5.js";import{Select_default as r}from"./chunk-DEYVAMJQ.js";import{FormField as n}from"./chunk-6KBDNYRW.js";import{Checkbox_default as i}from"./chunk-CGZBDI6C.js";import{Input_default as c}from"./chunk-PT4GMPUB.js";import{Button_default as o}from"./chunk-EVYD6UFQ.js";import{useState as t}from"react";import{jsx as m,jsxs as d}from"react/jsx-runtime";function s(){const[s,h]=t("pro"),[u,p]=t(!0),[f,g]=t("us");/* @__PURE__ */
1
+ import{Card as e}from"./chunk-S25KELFW.js";import{Textarea_default as a}from"./chunk-PB7G6CJ7.js";import{Radio_default as l}from"./chunk-NI5FXWK5.js";import{Select_default as r}from"./chunk-GEITUFYK.js";import{FormField as n}from"./chunk-6KBDNYRW.js";import{Checkbox_default as i}from"./chunk-CGZBDI6C.js";import{Input_default as c}from"./chunk-3SIRRK3F.js";import{Button_default as o}from"./chunk-UTISUEO4.js";import{useState as t}from"react";import{jsx as m,jsxs as d}from"react/jsx-runtime";function s(){const[s,h]=t("pro"),[u,p]=t(!0),[f,g]=t("us");/* @__PURE__ */
2
2
  return m("div",{className:"h-full overflow-auto bg-gray-50 p-6",children:/* @__PURE__ */d("form",{className:"mx-auto max-w-2xl space-y-5",onSubmit:e=>e.preventDefault(),children:[
3
3
  /* @__PURE__ */d("div",{children:[
4
4
  /* @__PURE__ */m("h1",{className:"text-xl font-semibold text-gray-900",children:"Account settings"}),
@@ -1,4 +1,4 @@
1
- import{Tooltip as e}from"./chunk-SOZCWT6I.js";import{jsxs as r,Fragment as n,jsx as i}from"react/jsx-runtime";var l=e=>!0===e||"true"===e;function o(e){e.preventDefault(),e.stopPropagation()}var t=(e,r)=>[e,r].filter(Boolean).join(" ")||void 0;function a({reason:l,id:o,block:t=!1,children:a}){/* @__PURE__ */
1
+ import{Tooltip as e}from"./chunk-F2RAIGCG.js";import{jsxs as r,Fragment as n,jsx as i}from"react/jsx-runtime";var l=e=>!0===e||"true"===e;function o(e){e.preventDefault(),e.stopPropagation()}var t=(e,r)=>[e,r].filter(Boolean).join(" ")||void 0;function a({reason:l,id:o,block:t=!1,children:a}){/* @__PURE__ */
2
2
  return r(n,{children:[
3
3
  /* @__PURE__ */i(e,{content:l,describe:!1,className:t?"relative flex w-full":"relative inline-flex",children:a}),
4
4
  /* @__PURE__ */i("span",{id:o,className:"sr-only",children:l})]})}export{a as OffWithReason,t as describedByWith,l as isAriaDisabled,o as swallowPress};