efficient-shell 15.2.0 → 15.3.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 (254) hide show
  1. package/README.md +10 -0
  2. package/dist/{Browser-42QAXKYW.js → Browser-SJKIWRIF.js} +19 -19
  3. package/dist/Calculator-NS2NGCHN.js +29 -0
  4. package/dist/{CurrencyConverter-VFTDSYQ3.js → CurrencyConverter-ES5SWCOZ.js} +9 -9
  5. package/dist/{Files-OAVWF6EW.js → Files-KM3OX5LC.js} +76 -76
  6. package/dist/{Notepad-LNNSVEFG.js → Notepad-VZ2Y3NAY.js} +9 -9
  7. package/dist/PdfViewer-AIAVQYZ6.js +1 -0
  8. package/dist/PomodoroTimer-BRSRBMEG.js +91 -0
  9. package/dist/{Preview-GDNUQKGN.js → Preview-YWS265UV.js} +24 -24
  10. package/dist/Sidebar-KAALEIIX.js +44 -0
  11. package/dist/{Stock-NNDDNQBJ.js → Stock-GMWRXTKR.js} +2 -2
  12. package/dist/{Weather-NGQALCXO.js → Weather-QSQ2TZKG.js} +17 -17
  13. package/dist/{WorldClock-LX4BQPZJ.js → WorldClock-YPP2KHIV.js} +7 -7
  14. package/dist/ai/index.js +42 -42
  15. package/dist/apps/index.js +1 -1
  16. package/dist/bin/browser-check.js +1 -1
  17. package/dist/bin/media-host-check.js +1 -1
  18. package/dist/bin/ui-check.js +1 -1
  19. package/dist/brand.css +1 -1
  20. package/dist/charts/ChordChart.js +1 -1
  21. package/dist/charts/FlowChart.js +1 -1
  22. package/dist/charts/RadarChart.js +1 -1
  23. package/dist/charts/SankeyChart.js +1 -1
  24. package/dist/charts/SpecChart.js +1 -1
  25. package/dist/charts/SunburstChart.js +1 -1
  26. package/dist/charts/TreemapChart.js +1 -1
  27. package/dist/{chunk-ZC2FZLYX.js → chunk-345FP3IX.js} +4 -4
  28. package/dist/chunk-35Q7ZMQD.js +8 -0
  29. package/dist/{chunk-ZYWLX5EK.js → chunk-3AVXNZY5.js} +1 -1
  30. package/dist/chunk-3FININUU.js +1 -0
  31. package/dist/chunk-3H476JWK.js +4 -0
  32. package/dist/{chunk-TWSROAS7.js → chunk-4MDSZSLC.js} +1 -1
  33. package/dist/{chunk-DXTRHNP4.js → chunk-4NTAZLT3.js} +2 -2
  34. package/dist/{chunk-TVMDDQJP.js → chunk-52RSW6TO.js} +1 -1
  35. package/dist/{chunk-26I3OTGP.js → chunk-5B7CLXHC.js} +1 -1
  36. package/dist/{chunk-MDGM5NUO.js → chunk-5CGGHE2O.js} +9 -9
  37. package/dist/{chunk-SXNT73VT.js → chunk-5LB7LCEG.js} +19 -19
  38. package/dist/{chunk-CMC25URA.js → chunk-5LG6TOV6.js} +6 -6
  39. package/dist/{chunk-IIUFCTT6.js → chunk-5OXQ5M5S.js} +1 -1
  40. package/dist/{chunk-AVUH35GW.js → chunk-5QHNDAZ6.js} +1 -1
  41. package/dist/{chunk-52YTUQW3.js → chunk-5QRHQCRG.js} +1 -1
  42. package/dist/{chunk-T43ATI2N.js → chunk-5RCKE4X2.js} +6 -6
  43. package/dist/{chunk-LFGJUJRZ.js → chunk-5Y2JZL3I.js} +13 -13
  44. package/dist/{chunk-QIAJ3QNV.js → chunk-62UNBUTU.js} +1 -1
  45. package/dist/{chunk-NBV3XK3Q.js → chunk-7533CPNQ.js} +3 -3
  46. package/dist/{chunk-HBAATSUS.js → chunk-75NYUMNV.js} +1 -1
  47. package/dist/{chunk-BMZL5BHA.js → chunk-A3RD7AQ2.js} +1 -1
  48. package/dist/chunk-A4ROXNUF.js +2 -0
  49. package/dist/{chunk-2QUACZ6O.js → chunk-A7GOVTCI.js} +1 -1
  50. package/dist/{chunk-PAD65HG7.js → chunk-ABIWAS5K.js} +1 -1
  51. package/dist/{chunk-3TVMQCYR.js → chunk-AKEED2BC.js} +1 -1
  52. package/dist/chunk-APFDZ2HG.js +1 -0
  53. package/dist/{chunk-S3F2TY7X.js → chunk-ASNRA3ZL.js} +1 -1
  54. package/dist/chunk-B36ZROD7.js +8 -0
  55. package/dist/{chunk-QI2LJ7OL.js → chunk-B4Y5NGHR.js} +9 -9
  56. package/dist/{chunk-ZZKBCNK6.js → chunk-BTMZ5MUY.js} +11 -11
  57. package/dist/{chunk-NXPIX7NO.js → chunk-C75ICYHF.js} +1 -1
  58. package/dist/{chunk-JJ5W4BRW.js → chunk-CGX2IGQO.js} +1 -1
  59. package/dist/{chunk-HKXP3JJ5.js → chunk-CHWZGSYG.js} +1 -1
  60. package/dist/{chunk-2MUZFHZW.js → chunk-CIZAUBWA.js} +6 -6
  61. package/dist/{chunk-5JQCWXIQ.js → chunk-CMEPDSYB.js} +1 -1
  62. package/dist/{chunk-JHEHW5BE.js → chunk-D7MRZZVV.js} +3 -3
  63. package/dist/chunk-DEV3ZHPP.js +8 -0
  64. package/dist/chunk-DVKOVZJ2.js +13 -0
  65. package/dist/{chunk-7ZJ7VK2N.js → chunk-EJ5NIA42.js} +1 -1
  66. package/dist/{chunk-M5JEYZ3A.js → chunk-EJMCK7E3.js} +4 -4
  67. package/dist/{chunk-GBCLIWUQ.js → chunk-EULBBS5L.js} +1 -1
  68. package/dist/{chunk-7FYTL6SD.js → chunk-FAPZFMS3.js} +1 -1
  69. package/dist/chunk-FGP2IOFN.js +15 -0
  70. package/dist/{chunk-ABRCV7DQ.js → chunk-FHTL7ZZR.js} +1 -1
  71. package/dist/{chunk-JVITCC65.js → chunk-GGLS6JZ3.js} +1 -1
  72. package/dist/{chunk-KWBYE5MN.js → chunk-GGNQEZ2D.js} +8 -8
  73. package/dist/chunk-GML6FVPA.js +6 -0
  74. package/dist/{chunk-VQ3OSYTA.js → chunk-GUOAPXUY.js} +4 -4
  75. package/dist/{chunk-IJWRJPX6.js → chunk-HU5FTTW2.js} +7 -7
  76. package/dist/{chunk-SKPAIZSC.js → chunk-INQQUAIO.js} +4 -4
  77. package/dist/{chunk-ZQWKVLSY.js → chunk-JGN27L4Q.js} +12 -12
  78. package/dist/{chunk-BN37AISA.js → chunk-JIHDUZJZ.js} +3 -3
  79. package/dist/chunk-JRKD7SD3.js +24 -0
  80. package/dist/{chunk-FYHUCRLU.js → chunk-JWS77LQE.js} +1 -1
  81. package/dist/{chunk-6F3XQJR6.js → chunk-KERCZSIA.js} +1 -1
  82. package/dist/{chunk-ECZEJ6BE.js → chunk-KIIZNION.js} +6 -6
  83. package/dist/{chunk-L664TIIV.js → chunk-KJ4CHRRC.js} +7 -7
  84. package/dist/{chunk-HMTZP7NJ.js → chunk-KTI4ZJVX.js} +1 -1
  85. package/dist/{chunk-VIBGF2HJ.js → chunk-L2WQOJ3T.js} +1 -1
  86. package/dist/{chunk-3CIJFWB4.js → chunk-LFUXWZV7.js} +1 -1
  87. package/dist/{chunk-OCKOZV46.js → chunk-LGVVXYW7.js} +1 -1
  88. package/dist/{chunk-ZS36DB4X.js → chunk-MF7OELXP.js} +2 -2
  89. package/dist/{chunk-OCITNQGF.js → chunk-MQNSKFZY.js} +10 -10
  90. package/dist/{chunk-M6ODRWTM.js → chunk-NJY4HPNB.js} +5 -5
  91. package/dist/{chunk-QBR73AJX.js → chunk-OEWBWKKD.js} +11 -11
  92. package/dist/chunk-OHPDB4UN.js +14 -0
  93. package/dist/{chunk-LKNDLXL3.js → chunk-OHWP24DL.js} +1 -1
  94. package/dist/{chunk-VNKLIWNQ.js → chunk-OK2J6WSC.js} +1 -1
  95. package/dist/{chunk-3HPCQMYH.js → chunk-P56YLT73.js} +12 -12
  96. package/dist/{chunk-VTYALYW4.js → chunk-PCNFY6EK.js} +12 -12
  97. package/dist/{chunk-FM5ASDVN.js → chunk-PM6HY5BH.js} +1 -1
  98. package/dist/{chunk-ABAUJLI4.js → chunk-PO2KNVCC.js} +1 -1
  99. package/dist/chunk-PRN2QDX6.js +7 -0
  100. package/dist/{chunk-7M7GKYHS.js → chunk-QE2F4YQQ.js} +9 -9
  101. package/dist/chunk-QGWUZAG7.js +28 -0
  102. package/dist/{chunk-QJY52ZHG.js → chunk-QSFQTMWV.js} +1 -1
  103. package/dist/{chunk-YVI2XJCB.js → chunk-QSOBETAI.js} +5 -5
  104. package/dist/chunk-QXEZBS3H.js +6 -0
  105. package/dist/{chunk-32HTOZFT.js → chunk-QYOIS4BN.js} +3 -3
  106. package/dist/chunk-R6YVKP6D.js +3 -0
  107. package/dist/chunk-R72SBGYR.js +9 -0
  108. package/dist/{chunk-QMUW35QL.js → chunk-RIA6KKIB.js} +6 -6
  109. package/dist/{chunk-D3L2QCGF.js → chunk-RTZFWH5U.js} +1 -1
  110. package/dist/{chunk-HVWRF7N4.js → chunk-S6C7X6CR.js} +19 -19
  111. package/dist/{chunk-7T6NWAPG.js → chunk-SJUEGYT2.js} +1 -1
  112. package/dist/chunk-T5TKMIV2.js +1 -0
  113. package/dist/{chunk-JE4BGFDJ.js → chunk-TAB3K2WF.js} +1 -1
  114. package/dist/{chunk-4H4HJIWI.js → chunk-TAIH2VIW.js} +1 -1
  115. package/dist/{chunk-NTVACRKD.js → chunk-TALQMTCE.js} +3 -3
  116. package/dist/{chunk-KKZXGWSX.js → chunk-TEYG2W7A.js} +2 -2
  117. package/dist/{chunk-FZZBBZXZ.js → chunk-TMXMIRWG.js} +8 -8
  118. package/dist/{chunk-J43RRDEP.js → chunk-TSZPGDU3.js} +1 -1
  119. package/dist/{chunk-T65TAQLW.js → chunk-TXGVSWH6.js} +13 -13
  120. package/dist/{chunk-UA7SWROJ.js → chunk-U7PA4KNZ.js} +3 -3
  121. package/dist/{chunk-2M3KB4RH.js → chunk-UYM7562M.js} +2 -2
  122. package/dist/{chunk-JFTLFF52.js → chunk-V62FEHS4.js} +3 -3
  123. package/dist/{chunk-QQ6TGD7K.js → chunk-VANF2TL3.js} +47 -47
  124. package/dist/{chunk-PYGXSGXC.js → chunk-VB4ZPIZF.js} +1 -1
  125. package/dist/{chunk-K3OLOLFT.js → chunk-VHBRVW5O.js} +3 -3
  126. package/dist/chunk-W7HTHKN2.js +19 -0
  127. package/dist/{chunk-5R25GNE2.js → chunk-WNHDYTTI.js} +2 -2
  128. package/dist/{chunk-WHHHECBC.js → chunk-WSQ73CRR.js} +2 -2
  129. package/dist/{chunk-M4NT6HGJ.js → chunk-YEDAXZYO.js} +1 -1
  130. package/dist/{chunk-ILH7RDAD.js → chunk-YGNJIOOH.js} +10 -10
  131. package/dist/{chunk-C5Q4AKXO.js → chunk-YXMXATYP.js} +1 -1
  132. package/dist/{chunk-OEZC5N6J.js → chunk-ZVKUOJNS.js} +1 -1
  133. package/dist/data/DataTable.js +1 -1
  134. package/dist/data/EntityList.js +1 -1
  135. package/dist/data/Gantt.js +1 -1
  136. package/dist/data/ListLoadError.js +1 -1
  137. package/dist/data/ListToolbar.js +1 -1
  138. package/dist/data/ResizableTable.js +1 -1
  139. package/dist/data/statusColumn.js +1 -1
  140. package/dist/forms/AlignmentGrid.js +1 -1
  141. package/dist/forms/BorderInput.js +1 -1
  142. package/dist/forms/BrandAssetEditor.js +1 -1
  143. package/dist/forms/Button.js +1 -1
  144. package/dist/forms/ColorPicker.js +1 -1
  145. package/dist/forms/ComposerAttachments.js +1 -1
  146. package/dist/forms/CornersInput.js +1 -1
  147. package/dist/forms/DatePicker.js +1 -1
  148. package/dist/forms/DateRangePicker.js +1 -1
  149. package/dist/forms/DisplayChips.js +1 -1
  150. package/dist/forms/FilePicker.js +1 -1
  151. package/dist/forms/IconButton.js +1 -1
  152. package/dist/forms/IconPicker.js +1 -1
  153. package/dist/forms/Input.js +1 -1
  154. package/dist/forms/InputNumber.js +1 -1
  155. package/dist/forms/LinkPicker.js +1 -1
  156. package/dist/forms/MediaLibrary.js +1 -1
  157. package/dist/forms/MediaUploadField.js +1 -1
  158. package/dist/forms/MediaUploadGrid.js +1 -1
  159. package/dist/forms/MediaUsedInList.js +1 -1
  160. package/dist/forms/NumericKeypad.js +1 -1
  161. package/dist/forms/PictureTiles.js +1 -1
  162. package/dist/forms/PositionInput.js +1 -1
  163. package/dist/forms/RenameField.js +1 -1
  164. package/dist/forms/SearchInput.js +1 -1
  165. package/dist/forms/Segmented.js +1 -1
  166. package/dist/forms/Select.d.ts +6 -5
  167. package/dist/forms/Select.js +1 -1
  168. package/dist/forms/SidesInput.js +1 -1
  169. package/dist/forms/Slider.js +1 -1
  170. package/dist/forms/Snippet.js +1 -1
  171. package/dist/forms/SplitButton.js +1 -1
  172. package/dist/forms/TagInput.js +1 -1
  173. package/dist/forms/TextToolbar.js +1 -1
  174. package/dist/forms/UnitMenu.js +1 -1
  175. package/dist/forms/WidthsBar.js +1 -1
  176. package/dist/index.d.ts +1 -0
  177. package/dist/index.js +381 -381
  178. package/dist/map/index.js +5 -5
  179. package/dist/optionItems-Cxd85rTy.d.ts +26 -0
  180. package/dist/page-tabs/index.js +5 -5
  181. package/dist/pdf/index.js +1 -1
  182. package/dist/routine-index.json +1 -1
  183. package/dist/shell/AppUpdateBanner.js +1 -1
  184. package/dist/shell/ColoredBadge.js +1 -1
  185. package/dist/shell/ConfirmDialog.js +1 -1
  186. package/dist/shell/ContextMenu.js +1 -1
  187. package/dist/shell/Dialog.js +1 -1
  188. package/dist/shell/Drawer.js +1 -1
  189. package/dist/shell/DropdownMenu.js +1 -1
  190. package/dist/shell/EditableGrid.js +1 -1
  191. package/dist/shell/FloatingBar.js +1 -1
  192. package/dist/shell/GlobalSearch.js +1 -1
  193. package/dist/shell/HelpCenter.js +1 -1
  194. package/dist/shell/IconRail.js +1 -1
  195. package/dist/shell/ImageLightbox.js +1 -1
  196. package/dist/shell/ItemCount.js +1 -1
  197. package/dist/shell/LanguageSelect.js +1 -1
  198. package/dist/shell/Markdown.js +1 -1
  199. package/dist/shell/Popover.js +1 -1
  200. package/dist/shell/PopupMenu.js +1 -1
  201. package/dist/shell/ResizeHandle.js +1 -1
  202. package/dist/shell/SearchableSelect.d.ts +3 -9
  203. package/dist/shell/SearchableSelect.js +1 -1
  204. package/dist/shell/SettingReset.js +1 -1
  205. package/dist/shell/SidebarLayout.js +1 -1
  206. package/dist/shell/SidebarNav.js +1 -1
  207. package/dist/shell/SortableList.js +1 -1
  208. package/dist/shell/StatusBadge.js +1 -1
  209. package/dist/shell/Tabs.js +1 -1
  210. package/dist/shell/Tooltip.js +1 -1
  211. package/dist/shell/TopNav.js +1 -1
  212. package/dist/shell/TransferProgress.js +1 -1
  213. package/dist/shell/Tree.js +1 -1
  214. package/dist/shell/discardGuard.js +1 -1
  215. package/dist/telemetry/index.js +1 -1
  216. package/dist/templates/AuthScreen.js +1 -1
  217. package/dist/templates/ChatTemplate.js +1 -1
  218. package/dist/templates/CheckoutTemplate.js +1 -1
  219. package/dist/templates/DashboardTemplate.js +1 -1
  220. package/dist/templates/DataTablePage.js +1 -1
  221. package/dist/templates/EmailTemplate.js +1 -1
  222. package/dist/templates/ErrorBoundary.js +1 -1
  223. package/dist/templates/FormLayoutPage.js +1 -1
  224. package/dist/templates/GalleryTemplate.js +1 -1
  225. package/dist/ui/index.d.ts +1 -0
  226. package/dist/ui/index.js +1 -1
  227. package/dist/ui.css +0 -1
  228. package/dist/value-index.json +1 -1
  229. package/dist/version.js +1 -1
  230. package/package.json +1 -1
  231. package/dist/Calculator-C7APPCLE.js +0 -29
  232. package/dist/PdfViewer-ADPTYOAO.js +0 -1
  233. package/dist/PomodoroTimer-AGSHX2JO.js +0 -91
  234. package/dist/Sidebar-SWLVNJ6L.js +0 -44
  235. package/dist/chunk-7QFXUNFA.js +0 -8
  236. package/dist/chunk-7YJBWOQG.js +0 -2
  237. package/dist/chunk-CIT4YPEO.js +0 -8
  238. package/dist/chunk-DTZDOXK3.js +0 -19
  239. package/dist/chunk-EQDYCSUX.js +0 -13
  240. package/dist/chunk-IBPJJO4N.js +0 -28
  241. package/dist/chunk-K5YT5PMJ.js +0 -5
  242. package/dist/chunk-M6T7N4SN.js +0 -14
  243. package/dist/chunk-MQERW3QR.js +0 -3
  244. package/dist/chunk-NJJG2VAW.js +0 -24
  245. package/dist/chunk-QVGASI5H.js +0 -9
  246. package/dist/chunk-QZYV4TDD.js +0 -1
  247. package/dist/chunk-S6IW2F4J.js +0 -8
  248. package/dist/chunk-TB7BO2XS.js +0 -6
  249. package/dist/chunk-UMLXFQVC.js +0 -1
  250. package/dist/chunk-XQMVECQM.js +0 -15
  251. package/dist/chunk-YX4QGW7Z.js +0 -4
  252. package/dist/chunk-Z2MP46QJ.js +0 -1
  253. package/dist/chunk-ZUQ72WER.js +0 -7
  254. /package/dist/{chunk-LPQQNPH5.js → chunk-TEQ5ZPAL.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ChordChart as default,foldChord}from"../chunk-7QFXUNFA.js";import"../chunk-D3L2QCGF.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-7FYTL6SD.js";import"../chunk-2MUZFHZW.js";import"../chunk-PGN5ME7B.js";import"../chunk-52YTUQW3.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-UMLXFQVC.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
2
+ export{ChordChart as default,foldChord}from"../chunk-35Q7ZMQD.js";import"../chunk-RTZFWH5U.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-FAPZFMS3.js";import"../chunk-CIZAUBWA.js";import"../chunk-PGN5ME7B.js";import"../chunk-5QRHQCRG.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-3FININUU.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-NRHG4R2Q.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-3CIJFWB4.js";import"../chunk-FAERBT6Y.js";import"../chunk-7YJBWOQG.js";import"../chunk-J43RRDEP.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-2MUZFHZW.js";import"../chunk-PGN5ME7B.js";import"../chunk-52YTUQW3.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-UMLXFQVC.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-LFUXWZV7.js";import"../chunk-FAERBT6Y.js";import"../chunk-A4ROXNUF.js";import"../chunk-TSZPGDU3.js";import"../chunk-ISVODSRP.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-CIZAUBWA.js";import"../chunk-PGN5ME7B.js";import"../chunk-5QRHQCRG.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-3FININUU.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{RADAR_SERIES_CAP,RadarChart as default}from"../chunk-XQMVECQM.js";import"../chunk-D3L2QCGF.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-7FYTL6SD.js";import"../chunk-2MUZFHZW.js";import"../chunk-PGN5ME7B.js";import"../chunk-52YTUQW3.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-UMLXFQVC.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-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
2
+ export{RADAR_SERIES_CAP,RadarChart as default}from"../chunk-FGP2IOFN.js";import"../chunk-RTZFWH5U.js";import"../chunk-VFC6QUEN.js";import"../chunk-465RRWBY.js";import"../chunk-CNYAHYE6.js";import"../chunk-FAPZFMS3.js";import"../chunk-CIZAUBWA.js";import"../chunk-PGN5ME7B.js";import"../chunk-5QRHQCRG.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-3FININUU.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-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SankeyChart as default}from"../chunk-QVGASI5H.js";import"../chunk-D3L2QCGF.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-7FYTL6SD.js";import"../chunk-2MUZFHZW.js";import"../chunk-PGN5ME7B.js";import"../chunk-52YTUQW3.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-UMLXFQVC.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
2
+ export{SankeyChart as default}from"../chunk-R72SBGYR.js";import"../chunk-RTZFWH5U.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-FAPZFMS3.js";import"../chunk-CIZAUBWA.js";import"../chunk-PGN5ME7B.js";import"../chunk-5QRHQCRG.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-3FININUU.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
@@ -1 +1 @@
1
- export{SpecChart as default}from"../chunk-5JQCWXIQ.js";import"../chunk-OJI4ROSD.js";import"../chunk-NHKT5IH6.js";import"../chunk-36BRD5J3.js";import"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";import"../chunk-P5TSGXL4.js";import"../chunk-SAMPXZF3.js";import"../chunk-CK2YOGUS.js";import"../chunk-A6TOHNJY.js";import"../chunk-VFC6QUEN.js";import"../chunk-AQVPWUJ3.js";import"../chunk-465RRWBY.js";import"../chunk-MEFB2KGF.js";import"../chunk-CNYAHYE6.js";import"../chunk-BWJZTHZ6.js";import"../chunk-7FYTL6SD.js";import"../chunk-2MUZFHZW.js";import"../chunk-PGN5ME7B.js";import"../chunk-52YTUQW3.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-UMLXFQVC.js";import"../chunk-S4RD6UJU.js";import"../chunk-LLSGIMLG.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-MAFUXCPZ.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
1
+ export{SpecChart as default}from"../chunk-CMEPDSYB.js";import"../chunk-OJI4ROSD.js";import"../chunk-NHKT5IH6.js";import"../chunk-36BRD5J3.js";import"../chunk-JRQMX4PK.js";import"../chunk-LF27WIN2.js";import"../chunk-P5TSGXL4.js";import"../chunk-SAMPXZF3.js";import"../chunk-CK2YOGUS.js";import"../chunk-A6TOHNJY.js";import"../chunk-VFC6QUEN.js";import"../chunk-AQVPWUJ3.js";import"../chunk-465RRWBY.js";import"../chunk-MEFB2KGF.js";import"../chunk-CNYAHYE6.js";import"../chunk-BWJZTHZ6.js";import"../chunk-FAPZFMS3.js";import"../chunk-CIZAUBWA.js";import"../chunk-PGN5ME7B.js";import"../chunk-5QRHQCRG.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-3FININUU.js";import"../chunk-S4RD6UJU.js";import"../chunk-LLSGIMLG.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-MAFUXCPZ.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{SunburstChart as default}from"../chunk-YX4QGW7Z.js";import"../chunk-D3L2QCGF.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-7FYTL6SD.js";import"../chunk-2MUZFHZW.js";import"../chunk-PGN5ME7B.js";import"../chunk-52YTUQW3.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-UMLXFQVC.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
2
+ export{SunburstChart as default}from"../chunk-3H476JWK.js";import"../chunk-RTZFWH5U.js";import"../chunk-VFC6QUEN.js";import"../chunk-CNYAHYE6.js";import"../chunk-FAPZFMS3.js";import"../chunk-CIZAUBWA.js";import"../chunk-PGN5ME7B.js";import"../chunk-5QRHQCRG.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-3FININUU.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{TreemapChart as default}from"../chunk-ZUQ72WER.js";import"../chunk-46BYGPGD.js";import"../chunk-D3L2QCGF.js";import"../chunk-CNYAHYE6.js";import"../chunk-7FYTL6SD.js";import"../chunk-2MUZFHZW.js";import"../chunk-PGN5ME7B.js";import"../chunk-52YTUQW3.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-UMLXFQVC.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
2
+ export{TreemapChart as default}from"../chunk-PRN2QDX6.js";import"../chunk-46BYGPGD.js";import"../chunk-RTZFWH5U.js";import"../chunk-CNYAHYE6.js";import"../chunk-FAPZFMS3.js";import"../chunk-CIZAUBWA.js";import"../chunk-PGN5ME7B.js";import"../chunk-5QRHQCRG.js";import"../chunk-62LW225J.js";import"../chunk-TAHHZGRH.js";import"../chunk-KEFNQEXZ.js";import"../chunk-PU2GJVMG.js";import"../chunk-3FININUU.js";import"../chunk-WDQI3FV6.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-MAFUXCPZ.js";import"../chunk-NRHG4R2Q.js";import"../chunk-C3QOHMR6.js";
@@ -1,4 +1,4 @@
1
- import{useTabLayer as e,focusableIn as t,stopAfter as r}from"./chunk-DWGYC7OD.js";import{DESCRIPTION_TEXT as n}from"./chunk-BWJZTHZ6.js";import{onOverlayOpen as i}from"./chunk-PGN5ME7B.js";import{createShellPortal as o}from"./chunk-52YTUQW3.js";import{Z_LAYERS as a}from"./chunk-62LW225J.js";import{popupBounds as c,VIEWPORT_MARGIN as s,placeMenu as u,followAnchor as l}from"./chunk-TAHHZGRH.js";import{useHydrated as d}from"./chunk-KEFNQEXZ.js";import{useBrowserLayoutEffect as m}from"./chunk-PU2GJVMG.js";import{buttonClasses as p}from"./chunk-UQYNPYF4.js";import{registerModalEscapeInterceptor as f}from"./chunk-TWVUQUUD.js";import{useState as h,useRef as g,useId as v,useCallback as b,useEffect as w}from"react";import{jsxs as x,jsx as y}from"react/jsx-runtime";var k=/(^|[\s:])!?z-/;function N({trigger:N,children:j,title:C,description:E,"aria-label":T,align:D="start",side:H="bottom",open:O,defaultOpen:W=!1,onOpenChange:$,matchTriggerWidth:P=!1,maxHeight:L,initialFocus:M,id:U,triggerLabel:G,"aria-describedby":K,disabled:S,className:Y="",triggerClassName:z,panelClassName:F=""}){const[Q,R]=h(W),Z=(O??Q)&&!S,B=d(),J=g(null),I=g(null),V=g(null),A=g(null),X=v(),q=U??X,_=v(),ee=v(),te=v(),re=g(null),ne=g(!1),ie=g({openProp:O,onOpenChange:$});ie.current={openProp:O,onOpenChange:$};const oe=b(e=>{void 0===ie.current.openProp&&R(e),ie.current.onOpenChange?.(e)},[]),ae=b((e=!1)=>{ne.current=e,oe(!1)},[oe]),ce=e=>{re.current=e.nativeEvent},se=b(()=>{const e=V.current,t=I.current;if(!e||!t)return;const r=t.getBoundingClientRect(),n=c(t),i=Math.max(0,n.right-n.left-2*s),o=e.style;o.left="0px",o.top="0px",o.maxWidth=`${i}px`,o.maxHeight="none",o.width=P?`${Math.min(r.width,i)}px`:"";const a={width:e.offsetWidth,height:e.offsetHeight},l=L??1/0,d=u({trigger:r,menu:{width:a.width,height:Math.min(a.height,l)},bounds:n,align:D,side:H}),m=Math.min(d.maxHeight,l);o.left=`${d.left}px`,o.top=`${d.top}px`,o.maxHeight=`${m}px`,o.overflowY=a.height>m?"auto":"",e.dataset.side=d.side,e.dataset.align=D},[D,H,P,L]);m(()=>{Z&&B&&se()}),w(()=>{if(!Z||!B)return;const e=l(()=>I.current,se),t=A.current;if(!t||"undefined"==typeof ResizeObserver)return e;const r=new ResizeObserver(()=>se());return r.observe(t),()=>{e(),r.disconnect()}},[Z,B,se]),w(()=>{if(!Z)return;const e=e=>{let t=null,r=0;const n=e=>{t===e&&(t=null,window.clearTimeout(r),(e=>{if(re.current===e)return!1;const t=e.target;return!(t&&(J.current?.contains(t)||V.current?.contains(t)))})(e)&&ae(!0))},i=e=>{t=e,r=window.setTimeout(()=>n(e),0)},o=e=>n(e);return document.addEventListener(e,i,!0),window.addEventListener(e,o),()=>{window.clearTimeout(r),document.removeEventListener(e,i,!0),window.removeEventListener(e,o)}},t=e("pointerdown"),r=e("focusin"),n=i(()=>ae()),o=f(e=>"Escape"===e.key&&(ae(),I.current?.focus(),!0),()=>V.current);return()=>{t(),r(),n(),o()}},[Z,ae]),e(V,Z&&B),m(()=>{if(!Z||!B)return;const e=V.current;return()=>{if(ne.current)return;const t=document.activeElement;t&&t!==document.body&&!e?.contains(t)||I.current?.focus({preventScroll:!0})}},[Z,B]),w(()=>{if(!Z||!B)return;const e=V.current;e&&(ne.current=!1,(M?.current??t(e)[0]??e).focus({preventScroll:!0}))},[Z,B]);const ue="function"==typeof j?j({close:()=>ae()}):j,le=C?{"aria-labelledby":ee}:T?{"aria-label":T}:{"aria-labelledby":q};/* @__PURE__ */
2
- return x("div",{ref:J,className:`relative inline-flex ${Y}`.trim(),children:[
3
- /* @__PURE__ */y("button",{ref:I,id:q,type:"button","aria-haspopup":"dialog","aria-expanded":Z,"aria-controls":Z&&B?_:void 0,"aria-label":G,"aria-describedby":K,disabled:S,onClick:()=>Z?ae():oe(!0),onKeyDown:e=>{if("Tab"!==e.key||e.shiftKey||!Z)return;const r=(()=>{const e=V.current;return e?t(e)[0]??e:null})();r&&(e.preventDefault(),r.focus({preventScroll:!0}))},className:z??p({variant:"secondary"}),children:N}),Z&&B&&o(
4
- /* @__PURE__ */y("div",{ref:V,id:_,role:"dialog",...le,"aria-describedby":E?te:void 0,tabIndex:-1,"data-popover-panel":"",onPointerDownCapture:ce,onFocusCapture:ce,onKeyDown:e=>{const n=V.current,i=I.current;if("Tab"!==e.key||!n||!i||!n.contains(e.target))return;const o=t(n),a=document.activeElement;if(e.shiftKey){if(o.length>0&&a!==o[0]&&a!==n)return;return e.preventDefault(),void i.focus({preventScroll:!0})}if(o.length>0&&a!==o[o.length-1])return;e.preventDefault();const c=r(i,n);ae(!!c),(c??i).focus({preventScroll:!0})},className:`fixed rounded-xl border border-gray-200 bg-white p-3 shadow-lg ${F}`.trim(),style:k.test(F)?void 0:{zIndex:a.popup},children:/* @__PURE__ */x("div",{ref:A,children:[C&&/* @__PURE__ */y("h2",{id:ee,className:"text-sm font-semibold text-gray-900",children:C}),E&&/* @__PURE__ */y("p",{id:te,className:`mt-1 ${n}`,children:E}),C||E?/* @__PURE__ */y("div",{className:"mt-3",children:ue}):ue]})}),document.body)]})}export{N as Popover};
1
+ import{useTabLayer as e,focusableIn as t,stopAfter as r}from"./chunk-DWGYC7OD.js";import{DESCRIPTION_TEXT as n}from"./chunk-BWJZTHZ6.js";import{onOverlayOpen as i}from"./chunk-PGN5ME7B.js";import{createShellPortal as o}from"./chunk-5QRHQCRG.js";import{Z_LAYERS as a}from"./chunk-62LW225J.js";import{popupBounds as c,VIEWPORT_MARGIN as s,placeMenu as u,followAnchor as l}from"./chunk-TAHHZGRH.js";import{useHydrated as d}from"./chunk-KEFNQEXZ.js";import{useBrowserLayoutEffect as m}from"./chunk-PU2GJVMG.js";import{buttonClasses as p}from"./chunk-UQYNPYF4.js";import{registerModalEscapeInterceptor as f}from"./chunk-TWVUQUUD.js";import{useState as h,useRef as g,useId as v,useCallback as b,useEffect as w}from"react";import{jsxs as x,jsx as y}from"react/jsx-runtime";var k=/(^|[\s:])!?z-/;function C({trigger:C,children:N,title:j,description:E,"aria-label":H,align:D="start",side:T="bottom",open:O,defaultOpen:$=!1,onOpenChange:P,matchTriggerWidth:W=!1,maxHeight:G,initialFocus:L,id:M,triggerLabel:R,"aria-describedby":K,disabled:Q,className:S="",triggerClassName:U,panelClassName:z=""}){const[F,Y]=h($),Z=(O??F)&&!Q,B=d(),J=g(null),I=g(null),V=g(null),A=g(null),X=v(),q=M??X,_=v(),ee=v(),te=v(),re=g(null),ne=g(!1),ie=g({openProp:O,onOpenChange:P});ie.current={openProp:O,onOpenChange:P};const oe=b(e=>{void 0===ie.current.openProp&&Y(e),ie.current.onOpenChange?.(e)},[]),ae=b((e=!1)=>{ne.current=e,oe(!1)},[oe]),ce=e=>{re.current=e.nativeEvent},se=b(()=>{const e=V.current,t=I.current;if(!e||!t)return;const r=t.getBoundingClientRect(),n=c(t),i=Math.max(0,n.right-n.left-2*s),o=e.style;o.left="0px",o.top="0px",o.maxWidth=`${i}px`,o.maxHeight="none",o.width=W?`${Math.min(r.width,i)}px`:"";const a={width:e.offsetWidth,height:e.offsetHeight},l=G??1/0,d=u({trigger:r,menu:{width:a.width,height:Math.min(a.height,l)},bounds:n,align:D,side:T}),m=Math.min(d.maxHeight,l);o.left=`${d.left}px`,o.top=`${d.top}px`,o.maxHeight=`${m}px`,o.overflowY=a.height>m?"auto":"",e.dataset.side=d.side,e.dataset.align=D},[D,T,W,G]);m(()=>{Z&&B&&se()}),w(()=>{if(!Z||!B)return;const e=l(()=>I.current,se),t=A.current;if(!t||"undefined"==typeof ResizeObserver)return e;const r=new ResizeObserver(()=>se());return r.observe(t),()=>{e(),r.disconnect()}},[Z,B,se]),w(()=>{if(!Z)return;const e=e=>{let t=null,r=0;const n=e=>{t===e&&(t=null,window.clearTimeout(r),(e=>{if(re.current===e)return!1;const t=e.target;return!(t&&(J.current?.contains(t)||V.current?.contains(t)))})(e)&&ae(!0))},i=e=>{t=e,r=window.setTimeout(()=>n(e),0)},o=e=>n(e);return document.addEventListener(e,i,!0),window.addEventListener(e,o),()=>{window.clearTimeout(r),document.removeEventListener(e,i,!0),window.removeEventListener(e,o)}},t=e("pointerdown"),r=e("focusin"),n=i(()=>ae()),o=f(e=>"Escape"===e.key&&(ae(),I.current?.focus(),!0),()=>V.current);return()=>{t(),r(),n(),o()}},[Z,ae]),e(V,Z&&B),m(()=>{if(!Z||!B)return;const e=V.current;return()=>{if(ne.current)return;const t=document.activeElement;t&&t!==document.body&&!e?.contains(t)||I.current?.focus({preventScroll:!0})}},[Z,B]),w(()=>{if(!Z||!B)return;const e=V.current;e&&(ne.current=!1,(L?.current??t(e)[0]??e).focus({preventScroll:!0}))},[Z,B]);const ue="function"==typeof N?N({close:()=>ae()}):N,le=j?{"aria-labelledby":ee}:H?{"aria-label":H}:{"aria-labelledby":q};/* @__PURE__ */
2
+ return x("div",{ref:J,className:`relative inline-flex ${S}`.trim(),children:[
3
+ /* @__PURE__ */y("button",{ref:I,id:q,type:"button","aria-haspopup":"dialog","aria-expanded":Z,"aria-controls":Z&&B?_:void 0,"aria-label":R,"aria-describedby":K,disabled:Q,onClick:()=>Z?ae():oe(!0),onKeyDown:e=>{if("Tab"!==e.key||e.shiftKey||!Z)return;const r=(()=>{const e=V.current;return e?t(e)[0]??e:null})();r&&(e.preventDefault(),r.focus({preventScroll:!0}))},className:U??p({variant:"secondary"}),children:C}),Z&&B&&o(
4
+ /* @__PURE__ */y("div",{ref:V,id:_,role:"dialog",...le,"aria-describedby":E?te:void 0,tabIndex:-1,"data-popover-panel":"",onPointerDownCapture:ce,onFocusCapture:ce,onKeyDown:e=>{const n=V.current,i=I.current;if("Tab"!==e.key||!n||!i||!n.contains(e.target))return;const o=t(n),a=document.activeElement;if(e.shiftKey){if(o.length>0&&a!==o[0]&&a!==n)return;return e.preventDefault(),void i.focus({preventScroll:!0})}if(o.length>0&&a!==o[o.length-1])return;e.preventDefault();const c=r(i,n);ae(!!c),(c??i).focus({preventScroll:!0})},className:`fixed rounded-xl border border-gray-200 bg-white p-3 shadow-lg ${z}`.trim(),style:k.test(z)?void 0:{zIndex:a.popup},children:/* @__PURE__ */x("div",{ref:A,children:[j&&/* @__PURE__ */y("h2",{id:ee,className:"text-sm font-semibold text-gray-900",children:j}),E&&/* @__PURE__ */y("p",{id:te,className:`mt-1 ${n}`,children:E}),j||E?/* @__PURE__ */y("div",{className:"mt-3",children:ue}):ue]})}),document.body)]})}export{C as Popover};
@@ -0,0 +1,8 @@
1
+ import{AccessibleTable as t}from"./chunk-RTZFWH5U.js";import{arcPath as e}from"./chunk-VFC6QUEN.js";import{useHighlight as o}from"./chunk-CNYAHYE6.js";import{ChartTooltip as n}from"./chunk-WDQI3FV6.js";import{CHART_INK as r,resolveSeriesColor as a}from"./chunk-TZFACUMR.js";import{useShellStrings as l,useShellLocale as i}from"./chunk-NRHG4R2Q.js";import{formatPlain as s}from"./chunk-C3QOHMR6.js";import{useState as c}from"react";import{jsx as d,jsxs as m}from"react/jsx-runtime";function h(t,e,o,n){const r=(t,o)=>{const n=e[t]?.[o];return"number"==typeof n&&Number.isFinite(n)?n:0},a=t.map((e,o)=>t.reduce((t,e,n)=>t+r(o,n)+r(n,o),0)),l=Math.max(2,o),i=t.length>l,s=i?t.map((t,e)=>e).sort((t,e)=>a[e]-a[t]).slice(0,l-1).sort((t,e)=>t-e):t.map((t,e)=>e),c=new Map(s.map((t,e)=>[t,e])),d=i?s.length:-1,m=i?[...s.map(e=>t[e]),n]:[...t],h=m.map(()=>m.map(()=>0));let u=0;t.forEach((e,o)=>t.forEach((t,e)=>{const n=c.get(o)??d,a=c.get(e)??d;n!==d||a!==d?h[n][a]+=r(o,e):u+=r(o,e)}));const f=m.map((t,e)=>m.reduce((t,o,n)=>t+h[e][n]+h[n][e],0));return d>=0&&(f[d]+=u),{labels:m,matrix:h,totals:f,otherIndex:d,foldedCount:i?t.length-s.length:0}}function u({labels:u,matrix:f,size:p=340,maxNodes:x=8,padAngle:g=.04,arcWidth:b=12,formatValue:k,className:v,emptyLabel:M}){const $=l().charts,w=i(),N=k??(t=>s(t,w)),F=M??$.noFlows,[j,y]=c(null),{highlighted:E}=o(),C=h(u,f,x,$.other),{labels:I,matrix:Q,otherIndex:R,foldedCount:z}=C,A=(t,e)=>Q[t]?.[e]??0,H=t=>t===R?r.muted:a(t),W=C.totals,L=I.map((t,e)=>e).sort((t,e)=>W[e]-W[t]),O=L.reduce((t,e)=>t+W[e],0);if(O<=0)/* @__PURE__ */return d("p",{className:`text-sm text-gray-500 ${v??""}`,children:F});const T=p/2,U=p/2,V=p/2-44,P=V-b,Y=g*L.length,Z=/* @__PURE__ */new Map;let B=-Math.PI/2;L.forEach((t,e)=>{const o=W[t]/O*(2*Math.PI-Y);Z.set(t,{start:B,end:B+o,slot:e}),B+=o+g});const D=/* @__PURE__ */new Map,G=[];for(const t of L)for(const e of L){const o=A(t,e);if(o<=0)continue;const n=Z.get(t),r=o/Math.max(1,W[t])*(n.end-n.start),a=D.get(t)??0;D.set(t,a+r),G.push({from:t,to:e,value:o,a:n.start+a+r/2,b:Z.get(e).start+(Z.get(e).end-Z.get(e).start)/2})}const S=(t,e)=>[T+e*Math.cos(t),U+e*Math.sin(t)],q="arc"===j?.kind?j.index:void 0,J="ribbon"===j?.kind?G[j.index]:void 0;/* @__PURE__ */
2
+ return m("div",{className:`relative ${v??""}`,children:[
3
+ /* @__PURE__ */m("svg",{width:"100%",height:p,viewBox:`0 0 ${p} ${p}`,role:"img","aria-label":$.chord(L.length),onMouseLeave:()=>y(null),children:[G.map((t,e)=>{const[o,n]=S(t.a,P),[r,a]=S(t.b,P),l=H(t.from),i=((t,e)=>j?"ribbon"===j.kind?j.index===e:j.index===t.from||j.index===t.to:null!==E?I[t.from]===E||I[t.to]===E:null)(t,e);/* @__PURE__ */
4
+ return d("path",{d:`M${o},${n} Q${T},${U} ${r},${a}`,fill:"none",stroke:l,strokeWidth:Math.max(1,t.value/O*p*.9),strokeOpacity:null===i||i?.34:.07,strokeLinecap:"round",onMouseEnter:()=>y({kind:"ribbon",index:e})},`${I[t.from]}→${I[t.to]}`)}),L.map(t=>{const o=Z.get(t),n=(o.start+o.end)/2,[a,l]=S(n,V+16),i=(t=>j?"arc"===j.kind?j.index===t:G[j.index].from===t||G[j.index].to===t:null!==E?I[t]===E:null)(t);/* @__PURE__ */
5
+ return m("g",{onMouseEnter:()=>y({kind:"arc",index:t}),children:[
6
+ /* @__PURE__ */d("path",{d:e(T,U,P,V,o.start,o.end),fill:H(t),fillOpacity:null===i||i?1:.45}),
7
+ /* @__PURE__ */d("text",{x:a,y:l+4,fontSize:11,fill:r.label,textAnchor:Math.cos(n)>.15?"start":Math.cos(n)<-.15?"end":"middle",children:I[t]})]},t)})]}),z>0&&/* @__PURE__ */d("p",{className:"mt-1 text-xs text-ink-faint",children:$.chordFolded(z)}),void 0!==q&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:I[q],rows:[{key:"total",label:$.totalFlow,color:H(q),value:N(W[q])}]})}),J&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:`${I[J.from]} → ${I[J.to]}`,rows:[{key:"value",label:$.flow,color:H(J.from),value:N(J.value)}]})}),
8
+ /* @__PURE__ */d(t,{caption:$.chord(L.length),head:[$.tableFrom,$.tableTo,$.value],rows:G.map(t=>[I[t.from],I[t.to],N(t.value)])})]})}export{u as ChordChart,h as foldChord};
@@ -1,4 +1,4 @@
1
- import{isSafeLinkHref as e}from"./chunk-Z5TE3MEG.js";import{Button_default as t}from"./chunk-7YJBWOQG.js";import{Icon as n}from"./chunk-ISVODSRP.js";import{useShellStrings as r}from"./chunk-NRHG4R2Q.js";import{createContext as l,useContext as s}from"react";import{jsx as a,jsxs as i}from"react/jsx-runtime";var c=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|\*\*([^*]+)\*\*|`([^`]+)`|\*([^*]+)\*/g,o=l(void 0);function d({href:t,children:n}){const r=s(o),l=(t=>e(t.trim()))(t)?t:void 0;/* @__PURE__ */
1
+ import{isSafeLinkHref as e}from"./chunk-Z5TE3MEG.js";import{Button_default as t}from"./chunk-A4ROXNUF.js";import{Icon as n}from"./chunk-ISVODSRP.js";import{useShellStrings as r}from"./chunk-NRHG4R2Q.js";import{createContext as l,useContext as s}from"react";import{jsx as a,jsxs as i}from"react/jsx-runtime";var c=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|\*\*([^*]+)\*\*|`([^`]+)`|\*([^*]+)\*/g,o=l(void 0);function d({href:t,children:n}){const r=s(o),l=(t=>e(t.trim()))(t)?t:void 0;/* @__PURE__ */
2
2
  return a("a",{href:l,target:"_blank",rel:"noreferrer",className:"text-blue-600 hover:underline",onClick:l&&r?e=>{(e=>!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey))(e)&&r(l)&&e.preventDefault()}:void 0,children:n})}function u(e){const t=[];let n,r=0,l=0;const s=new RegExp(c.source,"g");for(;null!==(n=s.exec(e));)n.index>r&&t.push(e.slice(r,n.index)),void 0!==n[1]?t.push(
3
3
  /* @__PURE__ */i("span",{className:"text-gray-400",children:["[",n[1],"]"]},l++)):void 0!==n[3]?t.push(
4
4
  /* @__PURE__ */a(d,{href:n[4],children:n[3]},l++)):void 0!==n[5]?t.push(
@@ -0,0 +1 @@
1
+ import{createContext as r,useContext as n}from"react";var o=r(null);function t(r){const t=n(o);return t&&(void 0===r||"sm"===r||"md"===r||"lg"===r)?t:r}function m(r){return n(o)&&(void 0===r||"sm"===r||"md"===r||"lg"===r)?"sm":r}export{o as RowControlSizeContext,t as useRowControlSize,m as useRowTrackItemSize};
@@ -0,0 +1,4 @@
1
+ import{AccessibleTable as e}from"./chunk-RTZFWH5U.js";import{arcPath as t}from"./chunk-VFC6QUEN.js";import{useHighlight as r}from"./chunk-CNYAHYE6.js";import{ChartTooltip as l}from"./chunk-WDQI3FV6.js";import{CHART_INK as a,resolveSeriesColor as n}from"./chunk-TZFACUMR.js";import{useShellStrings as i,useShellLocale as o}from"./chunk-NRHG4R2Q.js";import{formatPlain as h,formatPercent as c}from"./chunk-C3QOHMR6.js";import{useState as u}from"react";import{jsx as s,jsxs as d}from"react/jsx-runtime";function m(e,t,r,l,a,n,i,o){if(l>=8)return;const h=e.reduce((e,t)=>e+p(t,8-l),0);if(h<=0)return;let c=t;e.forEach((e,t)=>{const u=p(e,8-l),s=u/h*r,d=`${i}/${e.key}`,f=0===l?t:a,b=0===l?e.key:n;o.push({id:d,label:e.label,value:u,depth:l,start:c,end:c+s,branch:f,branchKey:b}),e.children?.length&&m(e.children,c,s,l+1,f,b,d,o),c+=s})}function p(e,t){return t>0&&e.children?.length?e.children.reduce((e,r)=>e+p(r,t-1),0):Math.max(0,e.value??0)}function f({nodes:p,size:f=320,innerRadius:b=44,ringGap:v=2,formatValue:k,centerLabel:x,className:g,emptyLabel:y}){const M=i().charts,$=o(),j=k??(e=>h(e,$)),N=y??M.nothingToBreakDown,[R,w]=u(null),{highlighted:F}=r(),C=[];if(m(p,-Math.PI/2,2*Math.PI,0,0,"","",C),0===C.length)/* @__PURE__ */return s("p",{className:`text-sm text-gray-500 ${g??""}`,children:N});const E=Math.max(...C.map(e=>e.depth))+1,H=f/2,I=f/2,L=(f/2-8-b)/E,Q=C.filter(e=>0===e.depth).reduce((e,t)=>e+t.value,0),W=e=>`color-mix(in oklab, ${n(e.branch)} ${Math.max(16,100-24*e.depth).toFixed(0)}%, ${a.surface})`,z=e=>null!==R?e.id===R:null===F||e.branchKey===F,A=R?C.find(e=>e.id===R):void 0,T=e=>c(e.value/Q*100,1,$);/* @__PURE__ */
2
+ return d("div",{className:`relative ${g??""}`,children:[
3
+ /* @__PURE__ */d("svg",{width:"100%",height:f,viewBox:`0 0 ${f} ${f}`,role:"img","aria-label":M.sunburst(j(Q),E),onMouseLeave:()=>w(null),children:[C.map(e=>/* @__PURE__ */s("path",{d:t(H,I,b+e.depth*L+v/2,b+(e.depth+1)*L-v/2,e.start,e.end),fill:W(e),fillOpacity:z(e)?1:.45,stroke:a.surface,strokeWidth:1,onMouseEnter:()=>w(e.id)},e.id)),x&&/* @__PURE__ */s("text",{x:H,y:I+5,textAnchor:"middle",fontSize:16,fontWeight:600,fill:a.label,children:x})]}),A&&/* @__PURE__ */s("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */s(l,{title:A.label,rows:[{key:"value",label:M.value,color:W(A),value:j(A.value)},{key:"share",label:M.share,color:a.muted,value:T(A)}]})}),
4
+ /* @__PURE__ */s(e,{caption:M.sunburst(j(Q),E),head:[M.tableLevel,M.tableItem,M.value,M.share],rows:C.map(e=>[e.depth+1,e.label,j(e.value),T(e)])})]})}export{f as SunburstChart};
@@ -1,4 +1,4 @@
1
- import{WidestLabel as e}from"./chunk-X3LMTOMA.js";import{DropdownMenu as n,TRIGGER_CLASS as o}from"./chunk-M6ODRWTM.js";import{Tooltip as i}from"./chunk-2MUZFHZW.js";import{jsx as r}from"react/jsx-runtime";function t(e,n,o){if(n&&!(n.options.length<2))/* @__PURE__ */
1
+ import{WidestLabel as e}from"./chunk-X3LMTOMA.js";import{DropdownMenu as n,TRIGGER_CLASS as o}from"./chunk-NJY4HPNB.js";import{Tooltip as i}from"./chunk-CIZAUBWA.js";import{jsx as r}from"react/jsx-runtime";function t(e,n,o){if(n&&!(n.options.length<2))/* @__PURE__ */
2
2
  return r(l,{value:e,options:n.options,onChange:n.onChange,label:n.label,disabled:o})}var a=`${o} -ml-1 h-6 px-1 text-xs`;function l({value:o,options:t,onChange:l,label:s,disabled:m}){
3
3
  /* @__PURE__ */
4
4
  return r(i,{content:s,describe:!1,children:/* @__PURE__ */r(n,{trigger:
@@ -1,3 +1,3 @@
1
- import{IconPicker as e}from"./chunk-32HTOZFT.js";import{ColorPicker as t}from"./chunk-VTYALYW4.js";import{InputNumber_default as r,stepRounding as l}from"./chunk-KKZXGWSX.js";import{BORDER_LINE_STYLES as o}from"./chunk-NOMWJTN2.js";import{Icon as a}from"./chunk-ISVODSRP.js";import{jsxs as i,Fragment as s,jsx as n}from"react/jsx-runtime";var d=["top","right","bottom","left"];function m(e){const t=e??{},r="number"==typeof t.width?t.width:0;return Object.fromEntries(d.map(e=>[e,"number"==typeof t[e]?t[e]:r]))}function h(e,t){const r=e??{},l=m(t),o=d.some(e=>"number"==typeof r[e]),a=d.map(e=>"number"==typeof r[e]?r[e]:"number"==typeof r.width?r.width:o?0:l[e]);return!a.every(e=>e===a[0])}var c="h-3.5 w-3.5",u={all:/* @__PURE__ */n(a,{name:"border-all","aria-hidden":"true",className:c}),top:/* @__PURE__ */n(a,{name:"border-top","aria-hidden":"true",className:c}),right:/* @__PURE__ */n(a,{name:"border-right","aria-hidden":"true",className:c}),bottom:/* @__PURE__ */n(a,{name:"border-bottom","aria-hidden":"true",className:c}),left:/* @__PURE__ */n(a,{name:"border-left","aria-hidden":"true",className:c})},p={solid:/* @__PURE__ */n(a,{name:"line-solid","aria-hidden":"true",className:c}),dashed:/* @__PURE__ */n(a,{name:"line-dashed","aria-hidden":"true",className:c}),dotted:/* @__PURE__ */n(a,{name:"line-dotted","aria-hidden":"true",className:c})};function f({label:a,value:m,onChange:h,each:c,placeholder:f,presets:b,words:w,widths:g=!0,styles:y=!0,min:v=0,max:N=20,step:x=1,readOnly:S,units:j}){const k=e=>"number"==typeof m[e]?m[e]:null,O=(e,t)=>{const r={...m};if("number"==typeof m.width)for(const e of d)null===k(e)&&(r[e]=m.width);r[e]=t,delete r.width,h(r)},C=(e,t,o,a,i,s)=>/* @__PURE__ */n("div",{"data-side":e,className:"all"===e?"col-span-2 min-w-0":"min-w-0",children:/* @__PURE__ */n(r,{value:a,onChange:s,min:v,max:N,step:x,...l(x),steppers:"compact",readOnly:S,placeholder:i,prefix:o,suffix:w.unit,units:j,"aria-label":t})}),T=d.map(k),W="number"==typeof m.width?m.width:T.every(e=>null!==e&&e===T[0])?T[0]:null,H=null===W&&T.some(e=>null!==e),I=d.every(e=>f.sides[e]===f.sides.top)?String(f.sides.top):"–",K=e=>k(e)??("number"==typeof m.width?m.width:null),V=m.style??f.style;/* @__PURE__ */
2
- return i("div",{role:"group","aria-label":a,"data-border":c?"each":"all",className:"grid w-full min-w-0 grid-cols-2 gap-2",children:[g?c?/* @__PURE__ */i(s,{children:[C("left",w.sides.left,u.left,K("left"),String(f.sides.left),e=>O("left",e)),C("top",w.sides.top,u.top,K("top"),String(f.sides.top),e=>O("top",e)),C("right",w.sides.right,u.right,K("right"),String(f.sides.right),e=>O("right",e)),C("bottom",w.sides.bottom,u.bottom,K("bottom"),String(f.sides.bottom),e=>O("bottom",e))]}):C("all",w.width,u.all,W,H?"–":I,e=>{const t={...m,width:e};for(const e of d)delete t[e];h(t)}):null,y&&/* @__PURE__ */n("div",{"data-border-style":"",className:"col-span-2 min-w-0",children:/* @__PURE__ */n(e,{label:w.style,value:V,disabled:S,onChange:e=>{S||h({...m,style:e})},options:o.map(e=>({value:e,label:w.styles[e],icon:p[e]}))})}),
1
+ import{IconPicker as e}from"./chunk-QYOIS4BN.js";import{ColorPicker as t}from"./chunk-PCNFY6EK.js";import{InputNumber_default as r,stepRounding as l}from"./chunk-TEYG2W7A.js";import{BORDER_LINE_STYLES as o}from"./chunk-NOMWJTN2.js";import{Icon as a}from"./chunk-ISVODSRP.js";import{jsxs as i,Fragment as s,jsx as n}from"react/jsx-runtime";var d=["top","right","bottom","left"];function m(e){const t=e??{},r="number"==typeof t.width?t.width:0;return Object.fromEntries(d.map(e=>[e,"number"==typeof t[e]?t[e]:r]))}function h(e,t){const r=e??{},l=m(t),o=d.some(e=>"number"==typeof r[e]),a=d.map(e=>"number"==typeof r[e]?r[e]:"number"==typeof r.width?r.width:o?0:l[e]);return!a.every(e=>e===a[0])}var c="h-3.5 w-3.5",u={all:/* @__PURE__ */n(a,{name:"border-all","aria-hidden":"true",className:c}),top:/* @__PURE__ */n(a,{name:"border-top","aria-hidden":"true",className:c}),right:/* @__PURE__ */n(a,{name:"border-right","aria-hidden":"true",className:c}),bottom:/* @__PURE__ */n(a,{name:"border-bottom","aria-hidden":"true",className:c}),left:/* @__PURE__ */n(a,{name:"border-left","aria-hidden":"true",className:c})},p={solid:/* @__PURE__ */n(a,{name:"line-solid","aria-hidden":"true",className:c}),dashed:/* @__PURE__ */n(a,{name:"line-dashed","aria-hidden":"true",className:c}),dotted:/* @__PURE__ */n(a,{name:"line-dotted","aria-hidden":"true",className:c})};function f({label:a,value:m,onChange:h,each:c,placeholder:f,presets:b,words:w,widths:g=!0,styles:y=!0,min:N=0,max:v=20,step:x=1,readOnly:S,units:j}){const k=e=>"number"==typeof m[e]?m[e]:null,O=(e,t)=>{const r={...m};if("number"==typeof m.width)for(const e of d)null===k(e)&&(r[e]=m.width);r[e]=t,delete r.width,h(r)},C=(e,t,o,a,i,s)=>/* @__PURE__ */n("div",{"data-side":e,className:"all"===e?"col-span-2 min-w-0":"min-w-0",children:/* @__PURE__ */n(r,{value:a,onChange:s,min:N,max:v,step:x,...l(x),steppers:"compact",readOnly:S,placeholder:i,prefix:o,suffix:w.unit,units:j,"aria-label":t})}),E=d.map(k),I="number"==typeof m.width?m.width:E.every(e=>null!==e&&e===E[0])?E[0]:null,Y=null===I&&E.some(e=>null!==e),P=d.every(e=>f.sides[e]===f.sides.top)?String(f.sides.top):"–",T=e=>k(e)??("number"==typeof m.width?m.width:null),W=m.style??f.style;/* @__PURE__ */
2
+ return i("div",{role:"group","aria-label":a,"data-border":c?"each":"all",className:"grid w-full min-w-0 grid-cols-2 gap-2",children:[g?c?/* @__PURE__ */i(s,{children:[C("left",w.sides.left,u.left,T("left"),String(f.sides.left),e=>O("left",e)),C("top",w.sides.top,u.top,T("top"),String(f.sides.top),e=>O("top",e)),C("right",w.sides.right,u.right,T("right"),String(f.sides.right),e=>O("right",e)),C("bottom",w.sides.bottom,u.bottom,T("bottom"),String(f.sides.bottom),e=>O("bottom",e))]}):C("all",w.width,u.all,I,Y?"–":P,e=>{const t={...m,width:e};for(const e of d)delete t[e];h(t)}):null,y&&/* @__PURE__ */n("div",{"data-border-style":"",className:"col-span-2 min-w-0",children:/* @__PURE__ */n(e,{label:w.style,value:W,disabled:S,onChange:e=>{S||h({...m,style:e})},options:o.map(e=>({value:e,label:w.styles[e],icon:p[e]}))})}),
3
3
  /* @__PURE__ */n("div",{"data-border-color":"",className:"col-span-2 flex min-w-0 items-center",children:/* @__PURE__ */n(t,{value:m.color??"",onChange:e=>{S||h({...m,color:e})},label:w.color,presets:b,fallback:f.color,showHexInput:!0,size:"md",disabled:S})})]})}export{f as BorderInput,m as borderSides,h as borderStartEach};
@@ -1,4 +1,4 @@
1
- import{swallowPress as e,describedByWith as i,OffWithReason as r}from"./chunk-J43RRDEP.js";import{Icon as a}from"./chunk-ISVODSRP.js";import{OneLineLabel as o}from"./chunk-7FYTL6SD.js";import{Tooltip as s}from"./chunk-2MUZFHZW.js";import{useShellStrings as n}from"./chunk-NRHG4R2Q.js";import{useId as l,Fragment as d}from"react";import{jsx as t,jsxs as c}from"react/jsx-runtime";function b({items:b,onChange:h,label:m,className:u="","aria-labelledby":f,"aria-describedby":p}){const w=n().displayChips,g=l();/* @__PURE__ */
1
+ import{swallowPress as e,describedByWith as i,OffWithReason as r}from"./chunk-TSZPGDU3.js";import{Icon as a}from"./chunk-ISVODSRP.js";import{OneLineLabel as o}from"./chunk-FAPZFMS3.js";import{Tooltip as s}from"./chunk-CIZAUBWA.js";import{useShellStrings as n}from"./chunk-NRHG4R2Q.js";import{useId as l,Fragment as d}from"react";import{jsx as t,jsxs as c}from"react/jsx-runtime";function b({items:b,onChange:h,label:m,className:u="","aria-labelledby":f,"aria-describedby":p}){const w=n().displayChips,g=l();/* @__PURE__ */
2
2
  return t("div",{role:"group","aria-label":f?void 0:m,"aria-labelledby":f,"aria-describedby":p,className:`flex flex-wrap gap-2 ${u}`.trim(),children:b.map((n,l)=>{const b=`${g}-${l}-state`,m=`${g}-${l}-reason`,u=Boolean(n.disabled)&&null!=n.disabledReason&&""!==n.disabledReason,f=/* @__PURE__ */c("button",{type:"button","aria-pressed":n.shown,disabled:!(!n.disabled||u)||void 0,"aria-disabled":!!u||void 0,"aria-describedby":i(b,u?m:void 0),onClick:u?e:()=>h(n.id,!n.shown),className:"inline-flex h-6 max-w-full shrink-0 items-center gap-1 whitespace-nowrap rounded-full border pl-2 pr-3 text-xs font-medium transition-colors rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring)] disabled:cursor-not-allowed disabled:opacity-60 aria-disabled:cursor-not-allowed aria-disabled:opacity-60 "+(n.shown?"border-blue-200 bg-accent-tint text-blue-700 hover:bg-blue-100":"border-line bg-surface text-ink-faint hover:bg-row-hover hover:text-ink-strongest"),children:[
3
3
  /* @__PURE__ */t(a,{name:n.shown?"eye":"eye-off",className:"h-4 w-4 shrink-0",strokeWidth:"1.75"}),
4
4
  /* @__PURE__ */t(o,{children:n.label})]}),p=/* @__PURE__ */t("span",{id:b,className:"sr-only",children:n.shown?w.shown:w.hidden});/* @__PURE__ */
@@ -1,4 +1,4 @@
1
- import{Tooltip as r}from"./chunk-2MUZFHZW.js";import{useShellStrings as e}from"./chunk-NRHG4R2Q.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";var i="Alt+ArrowUp Alt+ArrowDown";function c(r){return!r.altKey||r.ctrlKey||r.metaKey?null:"ArrowUp"===r.key?"up":"ArrowDown"===r.key?"down":null}var a=/* @__PURE__ */n("svg",{"aria-hidden":"true",viewBox:"0 0 4 14",fill:"currentColor",className:"h-3.5 w-1",children:[
1
+ import{Tooltip as r}from"./chunk-CIZAUBWA.js";import{useShellStrings as e}from"./chunk-NRHG4R2Q.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";var i="Alt+ArrowUp Alt+ArrowDown";function c(r){return!r.altKey||r.ctrlKey||r.metaKey?null:"ArrowUp"===r.key?"up":"ArrowDown"===r.key?"down":null}var a=/* @__PURE__ */n("svg",{"aria-hidden":"true",viewBox:"0 0 4 14",fill:"currentColor",className:"h-3.5 w-1",children:[
2
2
  /* @__PURE__ */t("circle",{cx:"2",cy:"3",r:"1.1"}),
3
3
  /* @__PURE__ */t("circle",{cx:"2",cy:"7",r:"1.1"}),
4
4
  /* @__PURE__ */t("circle",{cx:"2",cy:"11",r:"1.1"})]});function l({hint:n,dragging:i,revealClassName:c,marker:l}){const o=e().tree;/* @__PURE__ */
@@ -1,14 +1,14 @@
1
- import{copyToClipboard as e,selectionAt as t}from"./chunk-XYVFJLAU.js";import{ResizableTable as n}from"./chunk-T65TAQLW.js";import{useTableNav as r}from"./chunk-ATMJ5ZPK.js";import{escapeHtml as o}from"./chunk-G6DKCCWH.js";import{Checkbox_default as l}from"./chunk-CGZBDI6C.js";import{ListFooter as i}from"./chunk-U73K3ICC.js";import{ListLoadError as a}from"./chunk-OCKOZV46.js";import{LoadingSpinner as c}from"./chunk-4PJFL26P.js";import{PopupMenu as s,PopupMenuLabel as d,PopupMenuItem as h,PopupMenuDivider as m}from"./chunk-3HPCQMYH.js";import{keepsNativeMenu as u}from"./chunk-5QFPTDQF.js";import{LoadingSpinner as p}from"./chunk-R2VKEMZH.js";import{shellHttp as f}from"./chunk-STKJA4PV.js";import{toast_default as g}from"./chunk-I2NVBDKH.js";import{useShellStrings as y}from"./chunk-NRHG4R2Q.js";import{useState as k,useRef as b}from"react";import{jsx as x,Fragment as w,jsxs as C}from"react/jsx-runtime";function j(e){return Array.from(e.children).filter(e=>void 0!==e.dataset?.colKey&&"_select"!==e.dataset.colKey)}function v(e){return("string"==typeof e.innerText?e.innerText:e.textContent??"").replace(/\s+/g," ").trim()}function S(S){const{items:R,isLoading:L,emptyState:N,totalCount:T,isError:$,onRetry:A,errorTitle:K,errorMessage:P,tableId:M,columns:E,renderCell:F,getRowId:H=e=>e.id,sort:I,onSort:U,selected:D,setSelected:O,onRowClick:J,onRowHover:Q,getRowClassName:V,footerLabel:W,footerExtra:B,footerExtraAfter:Z,sentinelRef:_,isFetchingNextPage:G,saveDefaultPerms:Y,exportEndpoint:z,exportFilename:X="export.csv",contextActions:q}=S,[ee,te]=k(null),ne=b(null),re=y(),oe=re.entityList,le=e=>{O(t=>{const n=new Set(t),r=H(e);return n.has(r)?n.delete(r):n.add(r),n})},ie=()=>{O(e=>{const t=R.map(H),n=new Set(e);return t.every(t=>e.has(t))?t.forEach(e=>n.delete(e)):t.forEach(e=>n.add(e)),n})},ae=r(R,J,le,ie,(e,t)=>{O(n=>{const r=new Set(n);for(let n=e;n<=t;n++)r.add(H(R[n]));return r})},ne),ce=R.filter(e=>D.has(H(e))),se=()=>{const e=[...ne.current?.querySelectorAll("tr[data-row-idx]")??[]].filter(e=>{const t=R[Number(e.dataset.rowIdx)];return void 0!==t&&D.has(H(t))}),t=e.length?j(e[0]).map(e=>e.dataset.colKey??""):[],n=new Map(E.map(e=>[e.key,e.label]));return{keys:t,header:t.map(e=>n.get(e)??e),body:e.map(e=>j(e).map(v))}},de=()=>{te(null);const{header:t,body:n}=se();if(!n.length)return;const r=[t,...n].map(e=>e.join("\t")).join("\n"),l="<table><thead><tr>"+t.map(e=>`<th>${o(e)}</th>`).join("")+"</tr></thead><tbody>"+n.map(e=>`<tr>${e.map(e=>`<td>${o(e)}</td>`).join("")}</tr>`).join("")+"</tbody></table>";e(oe.copiedRows(n.length),r,l)},he=async()=>{te(null);const e=ce.map(H);if(!e.length||!z)return;const t=new URLSearchParams({ids:e.join(",")}),n=(()=>{const e=new Map(E.map(e=>[e.key,e.exportLabel??e.label]));try{const t=localStorage.getItem(`col-config-${M}`);if(t){const n=JSON.parse(t).filter(t=>!t.hidden&&"_select"!==t.key&&e.has(t.key)).map(t=>`${t.key}|${e.get(t.key)}`);if(n.length)return n.join(",")}}catch{}return E.filter(e=>!e.defaultHidden).map(e=>`${e.key}|${e.exportLabel??e.label}`).join(",")})();n&&t.set("cols",n);const r=z.includes("?")?"&":"?";try{const n=await f.get(`${z}${r}${t}`,{responseType:"blob"}),o=window.URL.createObjectURL(new Blob([n.data],{type:"text/csv"})),l=document.createElement("a");l.href=o,l.download=X,l.click(),window.URL.revokeObjectURL(o);const i=n.headers??{},a=Number(i["x-row-count"]);if("true"===String(i["x-truncated"]))return void g.notify(Number.isFinite(a)?oe.exportTruncated(a,e.length):oe.exportTruncatedUnknown(e.length));g.success(oe.exported(e.length))}catch{g.error(oe.exportFailed)}};if(L)/* @__PURE__ */return x(c,{});if($&&0===R.length)/* @__PURE__ */
2
- return x(a,{title:K,message:P,onRetry:A});if(0===R.length)/* @__PURE__ */return x(w,{children:N});const me=R.length>0&&ce.length===R.length,ue=ce.length>0&&!me,pe=D.size-ce.length,fe=[{key:"_select",label:"",defaultWidth:52,minWidth:52,headerNode:/* @__PURE__ */x(l,{"aria-label":re.table.selectAll,checked:me,indeterminate:ue,onChange:ie,style:{height:14,width:14}})},...E],ge=/* @__PURE__ */x(i,{selectedCount:ce.length,hiddenSelectedCount:pe,loadedCount:R.length,totalCount:T,label:W,isFetchingMore:G,extra:B,extraAfter:Z}),ye=_?/* @__PURE__ */C(w,{children:[
3
- /* @__PURE__ */x("div",{ref:_}),G&&/* @__PURE__ */x(p,{size:"sm",padding:"py-3",label:re.list.loadingMore})]}):void 0;let ke=null;if(ee){const{x:t,y:n,item:r,text:o,firstColumn:l}=ee,i=q?q(ce):[],a=ce.length,c=()=>te(null),u=void 0!==T&&T>R.length;ke=/* @__PURE__ */C(s,{portal:!0,style:{left:t,top:n},onClose:c,minWidth:210,children:[
1
+ import{copyToClipboard as e,selectionAt as t}from"./chunk-XYVFJLAU.js";import{useTableNav as n}from"./chunk-ATMJ5ZPK.js";import{escapeHtml as r}from"./chunk-G6DKCCWH.js";import{ListFooter as o}from"./chunk-U73K3ICC.js";import{ListLoadError as l}from"./chunk-LGVVXYW7.js";import{ResizableTable as i}from"./chunk-TXGVSWH6.js";import{Checkbox_default as a}from"./chunk-CGZBDI6C.js";import{LoadingSpinner as c}from"./chunk-4PJFL26P.js";import{PopupMenu as s,PopupMenuLabel as d,PopupMenuItem as h,PopupMenuDivider as m}from"./chunk-P56YLT73.js";import{keepsNativeMenu as u}from"./chunk-5QFPTDQF.js";import{LoadingSpinner as p}from"./chunk-R2VKEMZH.js";import{shellHttp as f}from"./chunk-STKJA4PV.js";import{toast_default as g}from"./chunk-I2NVBDKH.js";import{useShellStrings as y}from"./chunk-NRHG4R2Q.js";import{useState as k,useRef as b}from"react";import{jsx as x,Fragment as w,jsxs as C}from"react/jsx-runtime";function j(e){return Array.from(e.children).filter(e=>void 0!==e.dataset?.colKey&&"_select"!==e.dataset.colKey)}function v(e){return("string"==typeof e.innerText?e.innerText:e.textContent??"").replace(/\s+/g," ").trim()}function S(S){const{items:R,isLoading:L,emptyState:N,totalCount:T,isError:$,onRetry:A,errorTitle:K,errorMessage:P,tableId:E,columns:F,renderCell:M,getRowId:I=e=>e.id,sort:U,onSort:D,selected:H,setSelected:V,onRowClick:W,onRowHover:G,getRowClassName:J,footerLabel:B,footerExtra:O,footerExtraAfter:X,sentinelRef:Y,isFetchingNextPage:_,saveDefaultPerms:Q,exportEndpoint:Z,exportFilename:z="export.csv",contextActions:q}=S,[ee,te]=k(null),ne=b(null),re=y(),oe=re.entityList,le=e=>{V(t=>{const n=new Set(t),r=I(e);return n.has(r)?n.delete(r):n.add(r),n})},ie=()=>{V(e=>{const t=R.map(I),n=new Set(e);return t.every(t=>e.has(t))?t.forEach(e=>n.delete(e)):t.forEach(e=>n.add(e)),n})},ae=n(R,W,le,ie,(e,t)=>{V(n=>{const r=new Set(n);for(let n=e;n<=t;n++)r.add(I(R[n]));return r})},ne),ce=R.filter(e=>H.has(I(e))),se=()=>{const e=[...ne.current?.querySelectorAll("tr[data-row-idx]")??[]].filter(e=>{const t=R[Number(e.dataset.rowIdx)];return void 0!==t&&H.has(I(t))}),t=e.length?j(e[0]).map(e=>e.dataset.colKey??""):[],n=new Map(F.map(e=>[e.key,e.label]));return{keys:t,header:t.map(e=>n.get(e)??e),body:e.map(e=>j(e).map(v))}},de=()=>{te(null);const{header:t,body:n}=se();if(!n.length)return;const o=[t,...n].map(e=>e.join("\t")).join("\n"),l="<table><thead><tr>"+t.map(e=>`<th>${r(e)}</th>`).join("")+"</tr></thead><tbody>"+n.map(e=>`<tr>${e.map(e=>`<td>${r(e)}</td>`).join("")}</tr>`).join("")+"</tbody></table>";e(oe.copiedRows(n.length),o,l)},he=async()=>{te(null);const e=ce.map(I);if(!e.length||!Z)return;const t=new URLSearchParams({ids:e.join(",")}),n=(()=>{const e=new Map(F.map(e=>[e.key,e.exportLabel??e.label]));try{const t=localStorage.getItem(`col-config-${E}`);if(t){const n=JSON.parse(t).filter(t=>!t.hidden&&"_select"!==t.key&&e.has(t.key)).map(t=>`${t.key}|${e.get(t.key)}`);if(n.length)return n.join(",")}}catch{}return F.filter(e=>!e.defaultHidden).map(e=>`${e.key}|${e.exportLabel??e.label}`).join(",")})();n&&t.set("cols",n);const r=Z.includes("?")?"&":"?";try{const n=await f.get(`${Z}${r}${t}`,{responseType:"blob"}),o=window.URL.createObjectURL(new Blob([n.data],{type:"text/csv"})),l=document.createElement("a");l.href=o,l.download=z,l.click(),window.URL.revokeObjectURL(o);const i=n.headers??{},a=Number(i["x-row-count"]);if("true"===String(i["x-truncated"]))return void g.notify(Number.isFinite(a)?oe.exportTruncated(a,e.length):oe.exportTruncatedUnknown(e.length));g.success(oe.exported(e.length))}catch{g.error(oe.exportFailed)}};if(L)/* @__PURE__ */return x(c,{});if($&&0===R.length)/* @__PURE__ */
2
+ return x(l,{title:K,message:P,onRetry:A});if(0===R.length)/* @__PURE__ */return x(w,{children:N});const me=R.length>0&&ce.length===R.length,ue=ce.length>0&&!me,pe=H.size-ce.length,fe=[{key:"_select",label:"",defaultWidth:52,minWidth:52,headerNode:/* @__PURE__ */x(a,{"aria-label":re.table.selectAll,checked:me,indeterminate:ue,onChange:ie,style:{height:14,width:14}})},...F],ge=/* @__PURE__ */x(o,{selectedCount:ce.length,hiddenSelectedCount:pe,loadedCount:R.length,totalCount:T,label:B,isFetchingMore:_,extra:O,extraAfter:X}),ye=Y?/* @__PURE__ */C(w,{children:[
3
+ /* @__PURE__ */x("div",{ref:Y}),_&&/* @__PURE__ */x(p,{size:"sm",padding:"py-3",label:re.list.loadingMore})]}):void 0;let ke=null;if(ee){const{x:t,y:n,item:r,text:o,firstColumn:l}=ee,i=q?q(ce):[],a=ce.length,c=()=>te(null),u=void 0!==T&&T>R.length;ke=/* @__PURE__ */C(s,{portal:!0,style:{left:t,top:n},onClose:c,minWidth:210,children:[
4
4
  /* @__PURE__ */x(d,{children:pe>0?re.list.selectedNotShown(a,pe):re.list.selected(a)}),
5
- /* @__PURE__ */x(h,{className:"font-medium",onClick:()=>{c(),J(r)},children:oe.open}),
5
+ /* @__PURE__ */x(h,{className:"font-medium",onClick:()=>{c(),W(r)},children:oe.open}),
6
6
  /* @__PURE__ */x(m,{}),o&&/* @__PURE__ */x(h,{onClick:()=>{c(),e(oe.copiedText,o.text,o.html)},children:oe.copy}),l&&/* @__PURE__ */x(h,{onClick:()=>(t=>{te(null);const{keys:n,body:r}=se(),o=n.indexOf(t.key);o<0||!r.length||e(t.label,r.map(e=>e[o]).join("\n"))})(l),children:oe.copyColumn(l.label)}),
7
- /* @__PURE__ */x(h,{disabled:0===a,onClick:de,children:oe.copyRows(a)}),z&&/* @__PURE__ */x(h,{onClick:he,children:oe.exportSelected}),i.map((e,t)=>/* @__PURE__ */C("div",{children:[(e.divider||0===t)&&/* @__PURE__ */x(m,{}),
7
+ /* @__PURE__ */x(h,{disabled:0===a,onClick:de,children:oe.copyRows(a)}),Z&&/* @__PURE__ */x(h,{onClick:he,children:oe.exportSelected}),i.map((e,t)=>/* @__PURE__ */C("div",{children:[(e.divider||0===t)&&/* @__PURE__ */x(m,{}),
8
8
  /* @__PURE__ */x(h,{danger:e.danger,disabled:e.disabled,onClick:()=>{c(),e.onClick(ce)},children:e.label})]},t)),
9
- /* @__PURE__ */x(m,{}),!me&&/* @__PURE__ */x(h,{onClick:()=>{c(),O(e=>/* @__PURE__ */new Set([...e,...R.map(H)]))},children:u?oe.selectAllLoaded(R.length):oe.selectAll}),
10
- /* @__PURE__ */x(h,{onClick:()=>{c(),O(/* @__PURE__ */new Set)},children:oe.clearSelection}),A&&/* @__PURE__ */x(h,{onClick:()=>{c(),A()},children:oe.refresh})]})}
9
+ /* @__PURE__ */x(m,{}),!me&&/* @__PURE__ */x(h,{onClick:()=>{c(),V(e=>/* @__PURE__ */new Set([...e,...R.map(I)]))},children:u?oe.selectAllLoaded(R.length):oe.selectAll}),
10
+ /* @__PURE__ */x(h,{onClick:()=>{c(),V(/* @__PURE__ */new Set)},children:oe.clearSelection}),A&&/* @__PURE__ */x(h,{onClick:()=>{c(),A()},children:oe.refresh})]})}
11
11
  /* @__PURE__ */
12
12
  return C("div",{className:"flex-1 flex flex-col bg-surface overflow-hidden",children:[
13
- /* @__PURE__ */x("div",{className:"flex-1 min-h-0 flex flex-col",children:/* @__PURE__ */x(n,{tableId:M,columns:fe,sort:I,onSort:U,footer:ge,afterBody:ye,saveDefaultPerms:Y,children:e=>/* @__PURE__ */x("tbody",{ref:ne,children:R.map((n,r)=>{const o=H(n);/* @__PURE__ */
14
- return x("tr",{"data-row-idx":r,className:`cursor-pointer ${ae===r?"bg-blue-50 ring-1 ring-inset ring-blue-300":D.has(o)?"bg-blue-50 hover:bg-blue-100":(r%2==1?"bg-row-stripe ":"")+"hover:bg-line"} ${V?.(n)??""}`,onClick:()=>J(n),onContextMenu:e=>((e,n)=>{if(e.shiftKey||u(e.target))return;e.preventDefault();const r=H(n);D.has(r)||O(/* @__PURE__ */new Set([r]));const o=j(e.currentTarget)[0]?.dataset.colKey,l=o?E.find(e=>e.key===o)?.label:void 0;te({x:e.clientX,y:e.clientY,item:n,text:t(e.target),firstColumn:o&&l?{key:o,label:l}:null})})(e,n),onMouseEnter:Q?()=>Q(n):void 0,children:e.map(e=>/* @__PURE__ */x("td",{"data-col-key":e.key,className:"px-4 py-3 whitespace-nowrap text-sm overflow-hidden",children:"_select"===e.key?/* @__PURE__ */x(l,{"aria-label":re.table.selectRow,checked:D.has(o),onChange:()=>le(n),onClick:e=>e.stopPropagation(),style:{height:14,width:14}}):F(n,e.key)},e.key))},o)})})})}),ke]})}export{S as EntityList};
13
+ /* @__PURE__ */x("div",{className:"flex-1 min-h-0 flex flex-col",children:/* @__PURE__ */x(i,{tableId:E,columns:fe,sort:U,onSort:D,footer:ge,afterBody:ye,saveDefaultPerms:Q,children:e=>/* @__PURE__ */x("tbody",{ref:ne,children:R.map((n,r)=>{const o=I(n);/* @__PURE__ */
14
+ return x("tr",{"data-row-idx":r,className:`cursor-pointer ${ae===r?"bg-blue-50 ring-1 ring-inset ring-blue-300":H.has(o)?"bg-blue-50 hover:bg-blue-100":(r%2==1?"bg-row-stripe ":"")+"hover:bg-line"} ${J?.(n)??""}`,onClick:()=>W(n),onContextMenu:e=>((e,n)=>{if(e.shiftKey||u(e.target))return;e.preventDefault();const r=I(n);H.has(r)||V(/* @__PURE__ */new Set([r]));const o=j(e.currentTarget)[0]?.dataset.colKey,l=o?F.find(e=>e.key===o)?.label:void 0;te({x:e.clientX,y:e.clientY,item:n,text:t(e.target),firstColumn:o&&l?{key:o,label:l}:null})})(e,n),onMouseEnter:G?()=>G(n):void 0,children:e.map(e=>/* @__PURE__ */x("td",{"data-col-key":e.key,className:"px-4 py-3 whitespace-nowrap text-sm overflow-hidden",children:"_select"===e.key?/* @__PURE__ */x(a,{"aria-label":re.table.selectRow,checked:H.has(o),onChange:()=>le(n),onClick:e=>e.stopPropagation(),style:{height:14,width:14}}):M(n,e.key)},e.key))},o)})})})}),ke]})}export{S as EntityList};
@@ -1,31 +1,31 @@
1
- import{useCopyText as e,CopyGlyph as n}from"./chunk-TJ5YMXVB.js";import{ItemCount as t}from"./chunk-ABAUJLI4.js";import{PopupMenu as r,PopupMenuItem as i,PopupMenuDivider as l}from"./chunk-3HPCQMYH.js";import{Icon as o}from"./chunk-ISVODSRP.js";import{useShellStrings as a}from"./chunk-NRHG4R2Q.js";import{useState as s,useMemo as d,useEffect as c,useRef as u,Fragment as m,useLayoutEffect as f}from"react";import{jsxs as p,jsx as y,Fragment as g}from"react/jsx-runtime";function h(e){const n=[];let t=0;for(;t<e.length;){const r=e[t].group;let i=t;for(;void 0!==r&&i+1<e.length&&e[i+1].group===r;)i++;n.push(i>t?{group:r,start:t,end:i}:{start:t,end:t}),t=i+1}return n}function k(e,n){return e.find(e=>n>=e.start&&n<=e.end)}function b(e,n,t,r){const i=e.findIndex(e=>e.key===n.key);let l=e.findIndex(e=>e.key===t);if(i<0||l<0)return null;const o=h(e),a=k(o,i),s="group"===n.kind&&void 0!==a.group?e.slice(a.start,a.end+1).map(e=>e.key):[n.key];if(s.includes(t))return null;const d=k(o,l);if("tab"===n.kind&&void 0!==a.group){if(d!==a)return null}else void 0!==d.group&&(l="before"===r?d.start:d.end);return{key:e[l].key,side:r,moving:s}}function x(e,n,t,r){const i=b(e,n,t,r);if(!i)return null;const l=e.map(e=>e.key).filter(e=>!i.moving.includes(e)),o=l.indexOf(i.key)+("after"===i.side?1:0),a=[...l.slice(0,o),...i.moving,...l.slice(o)];return a.every((n,t)=>n===e[t].key)?null:a}var v="flex-[0_100_15rem] [contain-intrinsic-inline-size:15rem]",N=v,w="outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-500",C="pointer-events-none absolute bottom-0 size-2 [background:inherit]";function $(){/* @__PURE__ */
1
+ import{useCopyText as e,CopyGlyph as n}from"./chunk-TJ5YMXVB.js";import{ItemCount as t}from"./chunk-PO2KNVCC.js";import{PopupMenu as r,PopupMenuItem as i,PopupMenuDivider as l}from"./chunk-P56YLT73.js";import{Icon as o}from"./chunk-ISVODSRP.js";import{useShellStrings as a}from"./chunk-NRHG4R2Q.js";import{useState as s,useMemo as d,useEffect as c,useRef as u,Fragment as m,useLayoutEffect as f}from"react";import{jsxs as p,jsx as y,Fragment as g}from"react/jsx-runtime";function h(e){const n=[];let t=0;for(;t<e.length;){const r=e[t].group;let i=t;for(;void 0!==r&&i+1<e.length&&e[i+1].group===r;)i++;n.push(i>t?{group:r,start:t,end:i}:{start:t,end:t}),t=i+1}return n}function k(e,n){return e.find(e=>n>=e.start&&n<=e.end)}function b(e,n,t,r){const i=e.findIndex(e=>e.key===n.key);let l=e.findIndex(e=>e.key===t);if(i<0||l<0)return null;const o=h(e),a=k(o,i),s="group"===n.kind&&void 0!==a.group?e.slice(a.start,a.end+1).map(e=>e.key):[n.key];if(s.includes(t))return null;const d=k(o,l);if("tab"===n.kind&&void 0!==a.group){if(d!==a)return null}else void 0!==d.group&&(l="before"===r?d.start:d.end);return{key:e[l].key,side:r,moving:s}}function x(e,n,t,r){const i=b(e,n,t,r);if(!i)return null;const l=e.map(e=>e.key).filter(e=>!i.moving.includes(e)),o=l.indexOf(i.key)+("after"===i.side?1:0),a=[...l.slice(0,o),...i.moving,...l.slice(o)];return a.every((n,t)=>n===e[t].key)?null:a}var v="flex-[0_100_15rem] [contain-intrinsic-inline-size:15rem]",N=v,w="outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-blue-500",C="pointer-events-none absolute bottom-0 size-2 [background:inherit]";function $(){/* @__PURE__ */
2
2
  return p(g,{children:[
3
3
  /* @__PURE__ */y("span",{"aria-hidden":"true",className:`${C} -left-2 [mask-image:radial-gradient(circle_at_0_0,transparent_0.5rem,#000_calc(0.5rem+0.5px))]`}),
4
- /* @__PURE__ */y("span",{"aria-hidden":"true",className:`${C} -right-2 [mask-image:radial-gradient(circle_at_100%_0,transparent_0.5rem,#000_calc(0.5rem+0.5px))]`})]})}function I(){/* @__PURE__ */
5
- return y(o,{name:"close",look:"mini","aria-hidden":"true",className:"size-3.5"})}function z({text:t,label:r,copiedLabel:i}){const{copied:l,copy:o}=e(t);/* @__PURE__ */
6
- return y("button",{type:"button",tabIndex:-1,"aria-label":l?i:r,title:l?i:r,onClick:o,className:"flex size-5 shrink-0 items-center justify-center rounded text-gray-400 hover:bg-gray-200 hover:text-gray-700 @max-[10rem]:hidden",children:/* @__PURE__ */y(n,{copied:l,className:"size-3.5"})})}function _({node:e}){const n=u(null);return f(()=>{const t=n.current;if(t)return t.appendChild(e),()=>{e.parentNode===t&&t.removeChild(e)}},[e]),/* @__PURE__ */y("span",{ref:n,className:"ml-1 flex shrink-0 items-center"})}function j({tabs:e,activeKey:n,idFor:f,panelMounted:k,onActivate:C,onClose:j,onCloseMany:D,label:T,className:A,activeClassName:M,end:R,afterPinned:B,onIconMenu:E,menuItems:O,sizing:G="even",tall:K=!1,onReorder:L,groupInfo:S}){const H=a().pageTabs,P=a().count,[V,X]=s(null),Y=K?"h-[34px]":"h-8",F=d(()=>e.map(e=>({key:e.key,group:S?e.group:void 0})),[e,S]),J=d(()=>h(F),[F]),Q=d(()=>{const t=e.findIndex(e=>e.key===n);return J.find(e=>void 0!==e.group&&t>=e.start&&t<=e.end)?.group},[J,e,n]),[W,U]=s(()=>Q??null),q=t=>{const r=J.find(e=>e.group===t);if(!r)return;const i=e.findIndex(e=>e.key===n),l=i>=r.start&&i<=r.end;if(W!==t)l||C(e[r.start].key),U(t);else{if(l){const n=e[r.end+1]??e[r.start-1];n&&C(n.key)}U(null)}};c(()=>{void 0!==Q&&U(Q)},[n]);const Z=d(()=>{const n=[];for(const t of J)for(let r=t.start;r<=t.end;r++)void 0!==t.group&&t.group!==W||n.push(e[r]);return n},[J,W,e]),ee=u(null),[ne,te]=s(null),re=(n,t)=>L?{draggable:!0,onDragStart:t=>{ee.current=n,t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",e.find(e=>e.key===n.key)?.title??"")},onDragOver:e=>{const r=ee.current;if(!r)return;const i=e.currentTarget.getBoundingClientRect(),l=t!==n.key||"tab"===n.kind?e.clientX<i.left+i.width/2?"before":"after":"before",o=x(F,r,t,l)?b(F,r,t,l):null;if(!o)return void(ne&&te(null));e.preventDefault(),e.dataTransfer.dropEffect="move";const a=e=>F.find(n=>n.key===e)?.group,s="tab"===r.kind&&void 0!==a(r.key)&&a(r.key)===a(o.key);ne?.key===o.key&&ne.side===o.side&&ne.inGroup===s||te({key:o.key,side:o.side,inGroup:s})},onDrop:e=>{const n=ee.current;if(!n||!ne)return;e.preventDefault();const t=x(F,n,ne.key,ne.side);ee.current=null,te(null),t&&L(t)},onDragEnd:()=>{ee.current=null,te(null)}}:{},ie=d(()=>new Set(J.filter(e=>void 0!==e.group&&S).map(n=>e[n.start].key)),[J,e,S]),le=e=>"pointer-events-none absolute inset-y-1 z-[3] w-0.5 rounded-full bg-blue-500 "+("before"===e?"-left-px":"-right-px"),oe=e=>ne?.key===e&&!("before"===ne.side&&ie.has(e)&&!ne.inGroup)&&/* @__PURE__ */y("span",{"aria-hidden":"true",className:le(ne.side)}),ae=e.length;c(()=>{if(!n)return;const e=document.getElementById(f(n,"tab"));e?.scrollIntoView?.({block:"nearest",inline:"nearest"})},[f,n,ae]);const se=B?Z.findIndex(e=>!e.pinned):-1,de=Z.some(e=>e.key===n)?n:Z[0]?.key,ce=e=>{const n=Z[(e+Z.length)%Z.length];n&&document.getElementById(f(n.key,"tab"))?.focus()},ue=(e,n)=>{const t=Z[e+n];if(!L||!t)return;const r=x(F,{kind:"tab",key:Z[e].key},t.key,n<0?"before":"after");r&&(L(r),setTimeout(()=>document.getElementById(f(Z[e].key,"tab"))?.focus(),0))},me=V?e.find(e=>e.key===V.key):void 0,fe=me&&O?O(me.key):[],pe=me?e.indexOf(me):-1,ye=e=>e.some(e=>!e.pinned),ge=e=>()=>{X(null),e()},he=(e,t)=>!!t&&e.key!==n&&t.key!==n,ke=(e,t)=>{const r=e.key===n,i=e.pinned?"auto":r?"active-full"===G?"15rem":e.copy||E&&e.icon?"minmax(4.25rem,20rem)":"minmax(4.25rem,15rem)":"minmax(4rem,15rem)";return he(e,t)?["auto",i]:[i]},be=(e,t)=>{const r=e.key===n,i=!!e.dirty,l=e.icon,a=r?M??"z-[1] border-transparent bg-gray-50 text-gray-900":"border-transparent text-gray-600 hover:bg-gray-200/70 hover:text-gray-900",s=he(e,t),d={type:"button",role:"tab",id:f(e.key,"tab"),"aria-selected":r,"aria-controls":k?.(e.key)?f(e.key,"panel"):void 0,tabIndex:e.key===de?0:-1,title:e.title,onClick:()=>C(e.key)},c={onContextMenu:n=>((e,n)=>{e.preventDefault(),X({x:e.clientX,y:e.clientY,key:n.key})})(n,e),onAuxClick:n=>((e,n)=>{1!==e.button||n.pinned||(e.preventDefault(),j(n.key))})(n,e),onMouseDown:e=>{1===e.button&&e.preventDefault()}},u=l&&
4
+ /* @__PURE__ */y("span",{"aria-hidden":"true",className:`${C} -right-2 [mask-image:radial-gradient(circle_at_100%_0,transparent_0.5rem,#000_calc(0.5rem+0.5px))]`})]})}function z(){/* @__PURE__ */
5
+ return y(o,{name:"close",look:"mini","aria-hidden":"true",className:"size-3.5"})}function I({text:t,label:r,copiedLabel:i}){const{copied:l,copy:o}=e(t);/* @__PURE__ */
6
+ return y("button",{type:"button",tabIndex:-1,"aria-label":l?i:r,title:l?i:r,onClick:o,className:"flex size-5 shrink-0 items-center justify-center rounded text-gray-400 hover:bg-gray-200 hover:text-gray-700 @max-[10rem]:hidden",children:/* @__PURE__ */y(n,{copied:l,className:"size-3.5"})})}function _({node:e}){const n=u(null);return f(()=>{const t=n.current;if(t)return t.appendChild(e),()=>{e.parentNode===t&&t.removeChild(e)}},[e]),/* @__PURE__ */y("span",{ref:n,className:"ml-1 flex shrink-0 items-center"})}function j({tabs:e,activeKey:n,idFor:f,panelMounted:k,onActivate:C,onClose:j,onCloseMany:D,label:T,className:M,activeClassName:R,end:A,afterPinned:B,onIconMenu:E,menuItems:O,sizing:K="even",tall:G=!1,onReorder:L,groupInfo:S}){const P=a().pageTabs,V=a().count,[X,Y]=s(null),F=G?"h-[34px]":"h-8",H=d(()=>e.map(e=>({key:e.key,group:S?e.group:void 0})),[e,S]),W=d(()=>h(H),[H]),J=d(()=>{const t=e.findIndex(e=>e.key===n);return W.find(e=>void 0!==e.group&&t>=e.start&&t<=e.end)?.group},[W,e,n]),[Q,q]=s(()=>J??null),U=t=>{const r=W.find(e=>e.group===t);if(!r)return;const i=e.findIndex(e=>e.key===n),l=i>=r.start&&i<=r.end;if(Q!==t)l||C(e[r.start].key),q(t);else{if(l){const n=e[r.end+1]??e[r.start-1];n&&C(n.key)}q(null)}};c(()=>{void 0!==J&&q(J)},[n]);const Z=d(()=>{const n=[];for(const t of W)for(let r=t.start;r<=t.end;r++)void 0!==t.group&&t.group!==Q||n.push(e[r]);return n},[W,Q,e]),ee=u(null),[ne,te]=s(null),re=(n,t)=>L?{draggable:!0,onDragStart:t=>{ee.current=n,t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",e.find(e=>e.key===n.key)?.title??"")},onDragOver:e=>{const r=ee.current;if(!r)return;const i=e.currentTarget.getBoundingClientRect(),l=t!==n.key||"tab"===n.kind?e.clientX<i.left+i.width/2?"before":"after":"before",o=x(H,r,t,l)?b(H,r,t,l):null;if(!o)return void(ne&&te(null));e.preventDefault(),e.dataTransfer.dropEffect="move";const a=e=>H.find(n=>n.key===e)?.group,s="tab"===r.kind&&void 0!==a(r.key)&&a(r.key)===a(o.key);ne?.key===o.key&&ne.side===o.side&&ne.inGroup===s||te({key:o.key,side:o.side,inGroup:s})},onDrop:e=>{const n=ee.current;if(!n||!ne)return;e.preventDefault();const t=x(H,n,ne.key,ne.side);ee.current=null,te(null),t&&L(t)},onDragEnd:()=>{ee.current=null,te(null)}}:{},ie=d(()=>new Set(W.filter(e=>void 0!==e.group&&S).map(n=>e[n.start].key)),[W,e,S]),le=e=>"pointer-events-none absolute inset-y-1 z-[3] w-0.5 rounded-full bg-blue-500 "+("before"===e?"-left-px":"-right-px"),oe=e=>ne?.key===e&&!("before"===ne.side&&ie.has(e)&&!ne.inGroup)&&/* @__PURE__ */y("span",{"aria-hidden":"true",className:le(ne.side)}),ae=e.length;c(()=>{if(!n)return;const e=document.getElementById(f(n,"tab"));e?.scrollIntoView?.({block:"nearest",inline:"nearest"})},[f,n,ae]);const se=B?Z.findIndex(e=>!e.pinned):-1,de=Z.some(e=>e.key===n)?n:Z[0]?.key,ce=e=>{const n=Z[(e+Z.length)%Z.length];n&&document.getElementById(f(n.key,"tab"))?.focus()},ue=(e,n)=>{const t=Z[e+n];if(!L||!t)return;const r=x(H,{kind:"tab",key:Z[e].key},t.key,n<0?"before":"after");r&&(L(r),setTimeout(()=>document.getElementById(f(Z[e].key,"tab"))?.focus(),0))},me=X?e.find(e=>e.key===X.key):void 0,fe=me&&O?O(me.key):[],pe=me?e.indexOf(me):-1,ye=e=>e.some(e=>!e.pinned),ge=e=>()=>{Y(null),e()},he=(e,t)=>!!t&&e.key!==n&&t.key!==n,ke=(e,t)=>{const r=e.key===n,i=e.pinned?"auto":r?"active-full"===K?"15rem":e.copy||E&&e.icon?"minmax(4.25rem,20rem)":"minmax(4.25rem,15rem)":"minmax(4rem,15rem)";return he(e,t)?["auto",i]:[i]},be=(e,t)=>{const r=e.key===n,i=!!e.dirty,l=e.icon,a=r?R??"z-[1] border-transparent bg-gray-50 text-gray-900":"border-transparent text-gray-600 hover:bg-gray-200/70 hover:text-gray-900",s=he(e,t),d={type:"button",role:"tab",id:f(e.key,"tab"),"aria-selected":r,"aria-controls":k?.(e.key)?f(e.key,"panel"):void 0,tabIndex:e.key===de?0:-1,title:e.title,onClick:()=>C(e.key)},c={onContextMenu:n=>((e,n)=>{e.preventDefault(),Y({x:e.clientX,y:e.clientY,key:n.key})})(n,e),onAuxClick:n=>((e,n)=>{1!==e.button||n.pinned||(e.preventDefault(),j(n.key))})(n,e),onMouseDown:e=>{1===e.button&&e.preventDefault()}},u=l&&
7
7
  /* @__PURE__ */p("span",{className:"relative flex size-4 shrink-0 items-center justify-center text-gray-500 [&>svg]:size-4","aria-hidden":"true",children:[l,i&&!r&&!e.pinned&&
8
- /* @__PURE__ */y("span",{className:"absolute -right-1 -top-1 hidden size-2 rounded-full bg-gray-500 ring-2 ring-gray-100 @max-[6.5rem]:block @max-[6.5rem]:group-hover:hidden"})]}),g=r&&!!E&&!!l;return e.pinned?/* @__PURE__ */p("div",{role:"presentation",className:`group relative flex flex-none items-center justify-center rounded-t-lg border border-b-0 transition-colors ${Y} ${l?"w-10":""} ${a}`,...c,...re({kind:"tab",key:e.key},e.key),children:[oe(e.key),r&&/* @__PURE__ */y($,{}),
8
+ /* @__PURE__ */y("span",{className:"absolute -right-1 -top-1 hidden size-2 rounded-full bg-gray-500 ring-2 ring-gray-100 @max-[6.5rem]:block @max-[6.5rem]:group-hover:hidden"})]}),g=r&&!!E&&!!l;return e.pinned?/* @__PURE__ */p("div",{role:"presentation",className:`group relative flex flex-none items-center justify-center rounded-t-lg border border-b-0 transition-colors ${F} ${l?"w-10":""} ${a}`,...c,...re({kind:"tab",key:e.key},e.key),children:[oe(e.key),r&&/* @__PURE__ */y($,{}),
9
9
  /* @__PURE__ */p("button",{...d,className:`flex h-full items-center justify-center rounded-t-lg ${l?"w-full":"px-3"} ${w}`,children:[u,
10
10
  /* @__PURE__ */y("span",{className:l?"sr-only":"whitespace-nowrap text-sm",children:e.title})]})]},e.key):/* @__PURE__ */p(m,{children:[s&&/* @__PURE__ */y("span",{"aria-hidden":"true",className:"mb-3 h-4 w-px shrink-0 self-end border-l border-gray-300"}),
11
- /* @__PURE__ */p("div",{role:"presentation",className:`group relative flex items-center rounded-t-lg border border-b-0 text-sm transition-colors ${Y} ${"active-full"===G&&r?"":"@container"} ${"active-full"===G?r?"flex-[0_0_15rem] min-w-0":N:r&&(e.copy||g)?"flex-[0_100_20rem]":v} ${r?"active-full"===G?"":"min-w-[4.25rem]":"min-w-[4rem]"} ${a}`,...c,...re({kind:"tab",key:e.key},e.key),children:[oe(e.key),r&&/* @__PURE__ */y($,{}),g&&
12
- /* @__PURE__ */y("button",{type:"button",tabIndex:-1,"aria-haspopup":"menu","aria-label":H.tabMenu,title:H.tabMenu,onClick:n=>{const t=n.currentTarget.getBoundingClientRect();E?.(e.key,t.left,t.bottom+4)},className:`ml-2 flex size-6 shrink-0 items-center justify-center rounded hover:bg-gray-200 @max-[5rem]:ml-2 ${w}`,children:u}),
11
+ /* @__PURE__ */p("div",{role:"presentation",className:`group relative flex items-center rounded-t-lg border border-b-0 text-sm transition-colors ${F} ${"active-full"===K&&r?"":"@container"} ${"active-full"===K?r?"flex-[0_0_15rem] min-w-0":N:r&&(e.copy||g)?"flex-[0_100_20rem]":v} ${r?"active-full"===K?"":"min-w-[4.25rem]":"min-w-[4rem]"} ${a}`,...c,...re({kind:"tab",key:e.key},e.key),children:[oe(e.key),r&&/* @__PURE__ */y($,{}),g&&
12
+ /* @__PURE__ */y("button",{type:"button",tabIndex:-1,"aria-haspopup":"menu","aria-label":P.tabMenu,title:P.tabMenu,onClick:n=>{const t=n.currentTarget.getBoundingClientRect();E?.(e.key,t.left,t.bottom+4)},className:`ml-2 flex size-6 shrink-0 items-center justify-center rounded hover:bg-gray-200 @max-[5rem]:ml-2 ${w}`,children:u}),
13
13
  /* @__PURE__ */p("button",{...d,className:`flex h-full min-w-0 flex-1 items-center gap-2 rounded-t-lg pr-1 text-left ${g?"pl-2":"pl-3"} ${w} ${r?g?"":"@max-[5rem]:pl-3":"@max-[6.5rem]:pr-3 @max-[4.5rem]:justify-center @max-[4.5rem]:px-0 @max-[4.5rem]:group-hover:pl-2 @max-[4.5rem]:group-hover:pr-3"}`,children:[!g&&u,
14
- /* @__PURE__ */p("span",{className:`min-w-0 flex-1 overflow-hidden whitespace-nowrap [mask-image:linear-gradient(to_right,#000_calc(100%-1rem),transparent)] ${"active-full"===G&&r?"pr-4":""} ${l?r?"@max-[5rem]:sr-only":"@max-[4.5rem]:sr-only":""}`,children:[e.title,e.favorite&&
15
- /* @__PURE__ */y("span",{role:"img","aria-label":H.favorite,title:H.favorite,className:"ml-1 inline-flex align-[-0.125em] text-yellow-500",children:/* @__PURE__ */y(o,{name:"star","aria-hidden":"true",className:"size-3.5",fill:"currentColor",strokeWidth:1.5})})]})]}),r&&e.actions&&/* @__PURE__ */y(_,{node:e.actions}),r&&e.copy&&/* @__PURE__ */y(z,{text:e.copy,label:H.copy(e.copy),copiedLabel:H.copied}),
16
- /* @__PURE__ */p("span",{className:"mr-2 flex size-5 shrink-0 items-center justify-center "+(r?"":"@max-[6.5rem]:hidden @max-[6.5rem]:group-hover:flex"),children:[i&&/* @__PURE__ */y("span",{role:"img","aria-label":H.unsaved,className:"size-2 rounded-full bg-gray-500 group-hover:hidden"}),
17
- /* @__PURE__ */y("button",{type:"button",tabIndex:-1,"aria-label":H.closeTab?.(e.title)??`${H.close} ${e.title}`,onClick:()=>j(e.key),className:"size-5 items-center justify-center rounded text-gray-400 hover:bg-gray-200 hover:text-gray-700 "+(i?"hidden group-hover:flex":r?"flex":"flex opacity-0 group-hover:opacity-100 focus-visible:opacity-100"),children:/* @__PURE__ */y(I,{})})]})]})]},e.key)},xe=[];let ve,Ne=0,we=!B;for(const r of J){const i=Z.filter(n=>{const t=e.indexOf(n);return t>=r.start&&t<=r.end});if(we||Ne!==se||(we=!0,xe.push(/* @__PURE__ */y(m,{children:B},"rosh-after-pinned")),ve=void 0),Ne+=i.length,void 0===r.group||!S){for(const e of i)xe.push(be(e,ve)),ve=e;continue}ve=void 0;const l=r.group,a=S(l),s=r.end-r.start+1,d=W===l,c=e[r.start].key,u=i.some(e=>e.key===n)?"shrink":"shrink-[100]",f=["auto",...i.flatMap((e,n)=>ke(e,n>0?i[n-1]:void 0))];xe.push(
14
+ /* @__PURE__ */p("span",{className:`min-w-0 flex-1 overflow-hidden whitespace-nowrap [mask-image:linear-gradient(to_right,#000_calc(100%-1rem),transparent)] ${"active-full"===K&&r?"pr-4":""} ${l?r?"@max-[5rem]:sr-only":"@max-[4.5rem]:sr-only":""}`,children:[e.title,e.favorite&&
15
+ /* @__PURE__ */y("span",{role:"img","aria-label":P.favorite,title:P.favorite,className:"ml-1 inline-flex align-[-0.125em] text-yellow-500",children:/* @__PURE__ */y(o,{name:"star","aria-hidden":"true",className:"size-3.5",fill:"currentColor",strokeWidth:1.5})})]})]}),r&&e.actions&&/* @__PURE__ */y(_,{node:e.actions}),r&&e.copy&&/* @__PURE__ */y(I,{text:e.copy,label:P.copy(e.copy),copiedLabel:P.copied}),
16
+ /* @__PURE__ */p("span",{className:"mr-2 flex size-5 shrink-0 items-center justify-center "+(r?"":"@max-[6.5rem]:hidden @max-[6.5rem]:group-hover:flex"),children:[i&&/* @__PURE__ */y("span",{role:"img","aria-label":P.unsaved,className:"size-2 rounded-full bg-gray-500 group-hover:hidden"}),
17
+ /* @__PURE__ */y("button",{type:"button",tabIndex:-1,"aria-label":P.closeTab?.(e.title)??`${P.close} ${e.title}`,onClick:()=>j(e.key),className:"size-5 items-center justify-center rounded text-gray-400 hover:bg-gray-200 hover:text-gray-700 "+(i?"hidden group-hover:flex":r?"flex":"flex opacity-0 group-hover:opacity-100 focus-visible:opacity-100"),children:/* @__PURE__ */y(z,{})})]})]})]},e.key)},xe=[];let ve,Ne=0,we=!B;for(const r of W){const i=Z.filter(n=>{const t=e.indexOf(n);return t>=r.start&&t<=r.end});if(we||Ne!==se||(we=!0,xe.push(/* @__PURE__ */y(m,{children:B},"rosh-after-pinned")),ve=void 0),Ne+=i.length,void 0===r.group||!S){for(const e of i)xe.push(be(e,ve)),ve=e;continue}ve=void 0;const l=r.group,a=S(l),s=r.end-r.start+1,d=Q===l,c=e[r.start].key,u=i.some(e=>e.key===n)?"shrink":"shrink-[100]",f=["auto",...i.flatMap((e,n)=>ke(e,n>0?i[n-1]:void 0))];xe.push(
18
18
  /* @__PURE__ */p("div",{role:"group","aria-label":a.label,"data-tab-group":l,className:`relative mx-1 grid grid-flow-col items-end first:ml-0 ${u}`,style:{gridTemplateColumns:f.join(" ")},children:[
19
- /* @__PURE__ */p("button",{type:"button",tabIndex:-1,"aria-expanded":d,title:H.groupToggle(a.label,s),onClick:()=>q(l),...re({kind:"group",key:c},c),className:`relative mb-1 mr-1 flex h-6 shrink-0 items-center gap-1 rounded-full bg-blue-100 px-2 text-xs font-medium text-blue-700 hover:bg-blue-200 ${w}`,children:[
19
+ /* @__PURE__ */p("button",{type:"button",tabIndex:-1,"aria-expanded":d,title:P.groupToggle(a.label,s),onClick:()=>U(l),...re({kind:"group",key:c},c),className:`relative mb-1 mr-1 flex h-6 shrink-0 items-center gap-1 rounded-full bg-blue-100 px-2 text-xs font-medium text-blue-700 hover:bg-blue-200 ${w}`,children:[
20
20
  /* @__PURE__ */y(o,{name:d?"chevron-right":"chevron-down","aria-hidden":"true",className:"size-3",strokeWidth:2}),a.icon&&/* @__PURE__ */y("span",{className:"flex size-3.5 items-center justify-center [&>svg]:size-3.5","aria-hidden":"true",children:a.icon}),
21
21
  /* @__PURE__ */y("span",{className:d?"sr-only":"max-w-[12rem] truncate",children:a.label}),
22
- /* @__PURE__ */y(t,{count:s,label:P.tabs(s),active:!0})]}),ne?.key===c&&"before"===ne.side&&!ne.inGroup&&/* @__PURE__ */y("span",{"aria-hidden":"true",className:le("before")}),i.map((e,n)=>be(e,n>0?i[n-1]:void 0)),
23
- /* @__PURE__ */y("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 bottom-0 z-0 h-0.5 bg-blue-500"})]},`rosh-group-${c}`))}return we||xe.push(/* @__PURE__ */y(m,{children:B},"rosh-after-pinned")),/* @__PURE__ */p("div",{className:A??"relative flex h-10 shrink-0 items-end gap-3 bg-gray-100 px-3",children:[
22
+ /* @__PURE__ */y(t,{count:s,label:V.tabs(s),active:!0})]}),ne?.key===c&&"before"===ne.side&&!ne.inGroup&&/* @__PURE__ */y("span",{"aria-hidden":"true",className:le("before")}),i.map((e,n)=>be(e,n>0?i[n-1]:void 0)),
23
+ /* @__PURE__ */y("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 bottom-0 z-0 h-0.5 bg-blue-500"})]},`rosh-group-${c}`))}return we||xe.push(/* @__PURE__ */y(m,{children:B},"rosh-after-pinned")),/* @__PURE__ */p("div",{className:M??"relative flex h-10 shrink-0 items-end gap-3 bg-gray-100 px-3",children:[
24
24
  /* @__PURE__ */y("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 bottom-0 h-px bg-gray-200"}),
25
- /* @__PURE__ */y("div",{role:"tablist","aria-label":T,onKeyDown:e=>{const n=Z.findIndex(n=>document.getElementById(f(n.key,"tab"))===e.target);if(n<0)return;const t=e.shiftKey&&(e.ctrlKey||e.metaKey);if(t&&"ArrowRight"===e.key)ue(n,1);else if(t&&"ArrowLeft"===e.key)ue(n,-1);else if("ArrowRight"===e.key)ce(n+1);else if("ArrowLeft"===e.key)ce(n-1);else if("Home"===e.key)ce(0);else if("End"===e.key)ce(Z.length-1);else{if("Delete"!==e.key||Z[n].pinned)return;j(Z[n].key)}e.preventDefault()},className:"flex min-w-0 flex-1 items-end -mx-2 px-2 scroll-px-2 overflow-x-auto overflow-y-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:xe}),R&&/* @__PURE__ */y("div",{className:"flex shrink-0 items-center gap-2 self-center",children:R}),V&&me&&/* @__PURE__ */p(r,{portal:!0,style:{left:V.x,top:V.y},onClose:()=>X(null),children:[fe.length>0&&/* @__PURE__ */p(g,{children:[fe.map((e,n)=>/* @__PURE__ */p(i,{onClick:ge(e.onSelect),children:[e.icon,e.label]},n)),
25
+ /* @__PURE__ */y("div",{role:"tablist","aria-label":T,onKeyDown:e=>{const n=Z.findIndex(n=>document.getElementById(f(n.key,"tab"))===e.target);if(n<0)return;const t=e.shiftKey&&(e.ctrlKey||e.metaKey);if(t&&"ArrowRight"===e.key)ue(n,1);else if(t&&"ArrowLeft"===e.key)ue(n,-1);else if("ArrowRight"===e.key)ce(n+1);else if("ArrowLeft"===e.key)ce(n-1);else if("Home"===e.key)ce(0);else if("End"===e.key)ce(Z.length-1);else{if("Delete"!==e.key||Z[n].pinned)return;j(Z[n].key)}e.preventDefault()},className:"flex min-w-0 flex-1 items-end -mx-2 px-2 scroll-px-2 overflow-x-auto overflow-y-hidden [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:xe}),A&&/* @__PURE__ */y("div",{className:"flex shrink-0 items-center gap-2 self-center",children:A}),X&&me&&/* @__PURE__ */p(r,{portal:!0,style:{left:X.x,top:X.y},onClose:()=>Y(null),children:[fe.length>0&&/* @__PURE__ */p(g,{children:[fe.map((e,n)=>/* @__PURE__ */p(i,{onClick:ge(e.onSelect),children:[e.icon,e.label]},n)),
26
26
  /* @__PURE__ */y(l,{})]}),
27
- /* @__PURE__ */y(i,{disabled:me.pinned,onClick:ge(()=>j(me.key)),children:H.close}),
27
+ /* @__PURE__ */y(i,{disabled:me.pinned,onClick:ge(()=>j(me.key)),children:P.close}),
28
28
  /* @__PURE__ */y(l,{}),
29
- /* @__PURE__ */y(i,{disabled:!ye(e.filter(e=>e.key!==me.key)),onClick:ge(()=>D("others",me.key)),children:H.closeOthers}),
30
- /* @__PURE__ */y(i,{disabled:!ye(e.slice(pe+1)),onClick:ge(()=>D("right",me.key)),children:H.closeRight}),
31
- /* @__PURE__ */y(i,{disabled:!ye(e),onClick:ge(()=>D("all",null)),children:H.closeAll})]})]})}export{j as TabStrip};
29
+ /* @__PURE__ */y(i,{disabled:!ye(e.filter(e=>e.key!==me.key)),onClick:ge(()=>D("others",me.key)),children:P.closeOthers}),
30
+ /* @__PURE__ */y(i,{disabled:!ye(e.slice(pe+1)),onClick:ge(()=>D("right",me.key)),children:P.closeRight}),
31
+ /* @__PURE__ */y(i,{disabled:!ye(e),onClick:ge(()=>D("all",null)),children:P.closeAll})]})]})}export{j as TabStrip};
@@ -1,7 +1,7 @@
1
- import{MOVE_KEYS as e,MoveHint as r,moveFromKey as t}from"./chunk-26I3OTGP.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{useBrowserLayoutEffect as a}from"./chunk-PU2GJVMG.js";import{createContext as o,useContext as n,useRef as l,useId as s}from"react";import{jsx as d,jsxs as c,Fragment as m}from"react/jsx-runtime";var u=o("compact");function f({"aria-label":e,"aria-labelledby":r,children:t,spacing:i="compact",className:a="",rootProps:o}){/* @__PURE__ */
2
- return d(u.Provider,{value:i,children:/* @__PURE__ */d("div",{...o,role:"list","aria-label":r?void 0:e,"aria-labelledby":r,"data-sortable-list":i,className:`flex min-w-0 flex-col ${"comfortable"===i?"gap-2":"gap-1"} ${a}`.trim(),children:t})})}function b({children:o,title:f,thumb:b,expanded:p,onToggle:h,actions:g,below:v,active:x=!1,flat:w=!1,draggable:y=!1,dragging:N=!1,drop:k,onMove:j,rowProps:P,rowRef:D,className:I=""}){const B=x||!!p,G=n(u),S=l(null),$=s(),A=[P?.["aria-describedby"],j?$:void 0].filter(Boolean).join(" ")||void 0,K=P?.tabIndex;a(()=>{const e=S.current;if(!e||void 0!==K)return;const r=[...e.querySelectorAll('a[href], button, input, select, textarea, [contenteditable]:not([contenteditable="false"]), [tabindex]')].some(r=>r!==e);j&&!r?e.tabIndex=0:e.removeAttribute("tabindex")});const M="comfortable"===G?{before:"-top-[5px]",after:"-bottom-[5px]"}:{before:"-top-0.5",after:"-bottom-0.5"},O=null!=f&&/* @__PURE__ */c(m,{children:[null!=b&&/* @__PURE__ */d("span",{"aria-hidden":"true",className:"inline-flex h-6 w-6 shrink-0 overflow-hidden rounded-sm",children:b}),
1
+ import{MOVE_KEYS as e,MoveHint as r,moveFromKey as t}from"./chunk-5B7CLXHC.js";import{Icon as i}from"./chunk-ISVODSRP.js";import{useBrowserLayoutEffect as a}from"./chunk-PU2GJVMG.js";import{createContext as o,useContext as n,useRef as l,useId as s}from"react";import{jsx as d,jsxs as c,Fragment as m}from"react/jsx-runtime";var u=o("compact");function f({"aria-label":e,"aria-labelledby":r,children:t,spacing:i="compact",className:a="",rootProps:o}){/* @__PURE__ */
2
+ return d(u.Provider,{value:i,children:/* @__PURE__ */d("div",{...o,role:"list","aria-label":r?void 0:e,"aria-labelledby":r,"data-sortable-list":i,className:`flex min-w-0 flex-col ${"comfortable"===i?"gap-2":"gap-1"} ${a}`.trim(),children:t})})}function b({children:o,title:f,thumb:b,expanded:p,onToggle:h,actions:g,below:v,active:x=!1,flat:w=!1,draggable:y=!1,dragging:N=!1,drop:k,onMove:j,rowProps:P,rowRef:B,className:D=""}){const C=x||!!p,I=n(u),S=l(null),$=s(),A=[P?.["aria-describedby"],j?$:void 0].filter(Boolean).join(" ")||void 0,G=P?.tabIndex;a(()=>{const e=S.current;if(!e||void 0!==G)return;const r=[...e.querySelectorAll('a[href], button, input, select, textarea, [contenteditable]:not([contenteditable="false"]), [tabindex]')].some(r=>r!==e);j&&!r?e.tabIndex=0:e.removeAttribute("tabindex")});const K="comfortable"===I?{before:"-top-[5px]",after:"-bottom-[5px]"}:{before:"-top-0.5",after:"-bottom-0.5"},M=null!=f&&/* @__PURE__ */c(m,{children:[null!=b&&/* @__PURE__ */d("span",{"aria-hidden":"true",className:"inline-flex h-6 w-6 shrink-0 overflow-hidden rounded-sm",children:b}),
3
3
  /* @__PURE__ */d("span",{"data-list-row-name":"",className:"min-w-0 flex-1 break-words font-semibold text-(--ink-strongest)",children:f})]});/* @__PURE__ */
4
- return c("div",{role:"listitem","data-list-item":"","data-drop":k,"data-open":B||void 0,className:["relative flex min-w-0 flex-col",w?"":"rounded-(--radius-card) border bg-surface transition-colors duration-(--motion-fast)",w?"":B?"border-blue-300":"border-line hover:border-gray-300"].filter(Boolean).join(" "),children:[k&&/* @__PURE__ */d("span",{"aria-hidden":"true","data-list-drop-line":"",className:`pointer-events-none absolute inset-x-2 z-10 h-0.5 rounded-full bg-blue-500 ${M[k]}`}),
5
- /* @__PURE__ */c("div",{...P,ref:e=>{var r,t;S.current=e,t=e,"function"==typeof(r=D)?r(t):r&&(r.current=t)},"data-list-row":"","data-draggable":y||void 0,"aria-keyshortcuts":P?.["aria-keyshortcuts"]??(j?e:void 0),"aria-describedby":A,onKeyDown:e=>{if(P?.onKeyDown?.(e),e.defaultPrevented||!j)return;const r=t(e);r&&!e.target.closest?.("select")&&(e.preventDefault(),j(r))},className:["group/listrow relative flex min-h-8 min-w-0 items-center gap-1 rounded-md text-sm",w?"":"min-h-10 pl-3",y?"cursor-grab active:cursor-grabbing":"","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",null!=g&&!1!==g?"":"pr-2",N?"opacity-40":"",I].filter(Boolean).join(" "),children:[
6
- /* @__PURE__ */c("div",{"data-list-row-main":"",className:"flex min-h-8 min-w-0 flex-1 items-center gap-1",children:[O&&(h?/* @__PURE__ */c("button",{type:"button","aria-expanded":!!p,onClick:h,"data-list-row-title":"",className:"flex min-w-0 flex-1 items-center gap-2 self-stretch rounded-sm py-2 text-left text-(--ink-strongest) rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:[O,
7
- /* @__PURE__ */d(i,{name:"chevron-right","aria-hidden":"true",strokeWidth:"2",className:"h-4 w-4 shrink-0 transition-transform duration-(--motion-base) motion-reduce:transition-none "+(p?"rotate-90":"")})]}):/* @__PURE__ */d("span",{"data-list-row-title":"",className:"flex min-w-0 flex-1 items-center gap-2 py-2",children:O})),o]}),null!=g&&!1!==g&&/* @__PURE__ */d("div",{"data-list-actions":"",className:"flex shrink-0 items-center gap-0.5",children:g}),j&&/* @__PURE__ */d(r,{id:$})]}),null!=v&&!1!==v&&/* @__PURE__ */d("div",{"data-list-below":"",className:w?"":"px-3 pb-3",children:v})]})}export{b as ListRow,f as SortableList};
4
+ return c("div",{role:"listitem","data-list-item":"","data-drop":k,"data-open":C||void 0,className:["relative flex min-w-0 flex-col",w?"":"rounded-(--radius-card) border bg-surface transition-colors duration-(--motion-fast)",w?"":C?"border-blue-300":"border-line hover:border-gray-300"].filter(Boolean).join(" "),children:[k&&/* @__PURE__ */d("span",{"aria-hidden":"true","data-list-drop-line":"",className:`pointer-events-none absolute inset-x-2 z-10 h-0.5 rounded-full bg-blue-500 ${K[k]}`}),
5
+ /* @__PURE__ */c("div",{...P,ref:e=>{var r,t;S.current=e,t=e,"function"==typeof(r=B)?r(t):r&&(r.current=t)},"data-list-row":"","data-draggable":y||void 0,"aria-keyshortcuts":P?.["aria-keyshortcuts"]??(j?e:void 0),"aria-describedby":A,onKeyDown:e=>{if(P?.onKeyDown?.(e),e.defaultPrevented||!j)return;const r=t(e);r&&!e.target.closest?.("select")&&(e.preventDefault(),j(r))},className:["group/listrow relative flex min-h-8 min-w-0 items-center gap-1 rounded-md text-sm",w?"":"min-h-10 pl-3",y?"cursor-grab active:cursor-grabbing":"","rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",null!=g&&!1!==g?"":"pr-2",N?"opacity-40":"",D].filter(Boolean).join(" "),children:[
6
+ /* @__PURE__ */c("div",{"data-list-row-main":"",className:"flex min-h-8 min-w-0 flex-1 items-center gap-1",children:[M&&(h?/* @__PURE__ */c("button",{type:"button","aria-expanded":!!p,onClick:h,"data-list-row-title":"",className:"flex min-w-0 flex-1 items-center gap-2 self-stretch rounded-sm py-2 text-left text-(--ink-strongest) rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:[M,
7
+ /* @__PURE__ */d(i,{name:"chevron-right","aria-hidden":"true",strokeWidth:"2",className:"h-4 w-4 shrink-0 transition-transform duration-(--motion-base) motion-reduce:transition-none "+(p?"rotate-90":"")})]}):/* @__PURE__ */d("span",{"data-list-row-title":"",className:"flex min-w-0 flex-1 items-center gap-2 py-2",children:M})),o]}),null!=g&&!1!==g&&/* @__PURE__ */d("div",{"data-list-actions":"",className:"flex shrink-0 items-center gap-0.5",children:g}),j&&/* @__PURE__ */d(r,{id:$})]}),null!=v&&!1!==v&&/* @__PURE__ */d("div",{"data-list-below":"",className:w?"":"px-3 pb-3",children:v})]})}export{b as ListRow,f as SortableList};
@@ -1,4 +1,4 @@
1
- import{Tabs as e}from"./chunk-M5JEYZ3A.js";import{Card as a}from"./chunk-RKSCB5BJ.js";import{StatusBadgeProvider as r,StatusBadge as t}from"./chunk-PAD65HG7.js";import{Button_default as l}from"./chunk-7YJBWOQG.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-EJMCK7E3.js";import{Card as a}from"./chunk-RKSCB5BJ.js";import{StatusBadgeProvider as r,StatusBadge as t}from"./chunk-ABIWAS5K.js";import{Button_default as l}from"./chunk-A4ROXNUF.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"}),
@@ -1,2 +1,2 @@
1
- import{IconButton_default as o}from"./chunk-QZYV4TDD.js";import{Icon as r}from"./chunk-ISVODSRP.js";import{useShellStrings as e}from"./chunk-NRHG4R2Q.js";import{jsx as a}from"react/jsx-runtime";function s({onClose:s,className:i,label:t}){const n=e().dialog;/* @__PURE__ */
1
+ import{IconButton_default as o}from"./chunk-APFDZ2HG.js";import{Icon as r}from"./chunk-ISVODSRP.js";import{useShellStrings as e}from"./chunk-NRHG4R2Q.js";import{jsx as a}from"react/jsx-runtime";function s({onClose:s,className:i,label:t}){const n=e().dialog;/* @__PURE__ */
2
2
  return a(o,{variant:"ghost",onClick:s,"aria-label":t??n.close,className:i,children:/* @__PURE__ */a(r,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})})}export{s as CloseButton};
@@ -1,2 +1,2 @@
1
- import{RowControlSizeContext as r}from"./chunk-UMLXFQVC.js";import{createPortal as o}from"react-dom";import{jsx as t}from"react/jsx-runtime";function e(e,m,i){return o(
1
+ import{RowControlSizeContext as r}from"./chunk-3FININUU.js";import{createPortal as o}from"react-dom";import{jsx as t}from"react/jsx-runtime";function e(e,m,i){return o(
2
2
  /* @__PURE__ */t(r.Provider,{value:null,children:e}),m,i)}export{e as createShellPortal};
@@ -1,6 +1,6 @@
1
- import{useOverlayTarget as e,usePopupAnchor as r,usePanelPosition as l,usePopupLevel as t,usePopupLevelBindings as i,windowScrimStyle as a,OverlayLayerProvider as o,scrimHasCorners as n,popupLayerStyle as s,POPUP_GUTTER as d}from"./chunk-CJ4OEY3T.js";import{CloseButton as c}from"./chunk-AVUH35GW.js";import{useDiscardGuard as m}from"./chunk-LPQQNPH5.js";import{dialogA11y as p}from"./chunk-VWGWZY7A.js";import{useDismissPopupsOnOpen as u}from"./chunk-DBQNYJZ6.js";import{useFocusTrap as f,useScrollLock as h}from"./chunk-DWGYC7OD.js";import{HEADING_TEXT as x,DESCRIPTION_TEXT as v,PANEL_SURFACE as b}from"./chunk-BWJZTHZ6.js";import{createShellPortal as w}from"./chunk-52YTUQW3.js";import{useHydrated as y}from"./chunk-KEFNQEXZ.js";import{registerModalEscapeInterceptor as $}from"./chunk-TWVUQUUD.js";import{useShellStrings as g}from"./chunk-NRHG4R2Q.js";import{useRef as N,useId as j,useState as k,useEffect as C}from"react";import{jsxs as Q,Fragment as W,jsx as E}from"react/jsx-runtime";var H=`calc(100% - ${2*d}px)`,T="grid grid-cols-[minmax(0,1fr)_auto]",U="bg-black/30 backdrop-blur-sm",Y={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-4xl","2xl":"max-w-6xl",full:"max-w-none"};function Z({open:d,onClose:Z,title:B,description:D,role:G="dialog",children:A,footer:J,headerActions:V,blocking:_=!1,size:F="md",aside:O=!1,dirty:P=!1,initialFocus:R,"aria-label":z,"aria-labelledby":I,"aria-describedby":K,className:L=""}){const X=N(null),q=j(),M=j(),S=!_,ee="full"===F,re=ee||null!=V,le=Boolean(B||D),te=j();g().dialog;const ie=e(y()),[ae,oe]=k(null),ne=m({open:d,dirty:P,onClose:Z,title:B,layer:ae}),se=N(null),de=r(d&&null!==ie,se),ce=l(de,X),me=t(d&&null!==ie,se),pe=i(me,ae),ue=a(me),fe=null!==me.host;if(u(d),f(X,d&&null!==ie,R,pe),h(d),C(()=>{if(d)return $(()=>!pe.current?.(document.activeElement)&&(_||ne(),!0),()=>X.current)},[d,_,ne,pe]),!d||!ie)return null;/* @__PURE__ */
2
- return Q(W,{children:[/* @__PURE__ */E("span",{ref:se,hidden:!0,"data-popup-anchor":""}),w(
3
- /* @__PURE__ */E(o,{value:ae,children:/* @__PURE__ */Q("div",{ref:oe,className:"fixed inset-0"+(O?" pointer-events-none opacity-0":fe?" pointer-events-none":""),style:s(me),role:"presentation","data-overlay-layer":"","data-aside":O?"":void 0,children:[!fe&&/* @__PURE__ */E("div",{className:`fixed inset-0 ${U}`,"aria-hidden":"true","data-popup-scrim":"system"}),ue&&/* @__PURE__ */E("div",{className:`fixed ${U}${O?"":" pointer-events-auto"}${n(me)?" rounded-(--radius-window)":""}`,style:ue,onClick:_?void 0:ne,"aria-hidden":"true","data-popup-scrim":"window"}),
4
- /* @__PURE__ */E("div",{className:de?"fixed inset-0":"fixed inset-0 flex items-center justify-center p-4",onClick:_||fe?void 0:e=>{e.target===e.currentTarget&&ne()},children:/* @__PURE__ */Q("div",{ref:X,"data-popup-panel":"",style:de?{left:ce?.left??0,top:ce?.top??0,visibility:ce?void 0:"hidden",width:H,[ee?"height":"maxHeight"]:H}:void 0,...p({role:G,modal:!0,titleId:B?te:void 0,labelledBy:I,label:z}),"aria-describedby":K??(D?M:A?q:void 0),className:(ee?`${de?"absolute":"relative h-full w-full max-h-full"} ${Y[F]} ${T} grid-rows-[auto_minmax(0,1fr)_auto] overflow-hidden rounded-(--radius-popup) ${b}`:`${de?"absolute":"relative max-h-full w-full"} ${Y[F]}${re?` ${T} content-start gap-x-2`:""} overflow-y-auto overscroll-contain rounded-(--radius-card) ${b} p-6`)+`${fe&&!O?" pointer-events-auto":""} ${L}`.trimEnd(),children:[ee?le&&
5
- /* @__PURE__ */Q("div",{className:"col-start-1 row-start-1 flex min-h-(--row-height-window-bar) flex-col justify-center border-b border-line py-2 pl-6 pr-4",children:[B&&/* @__PURE__ */E("h2",{id:te,className:x,children:B}),D&&/* @__PURE__ */E("p",{id:M,className:`${B?"mt-1 ":""}${v}`,children:D})]}):B&&/* @__PURE__ */E("h2",{id:te,className:`${re?"col-start-1 row-start-1 ":S?"pr-8 ":""}${x}`,children:B}),!ee&&D&&/* @__PURE__ */E("p",{id:M,className:`${re?"col-start-1 ":""}${B?"mt-1":S&&!re?"pr-8":""} ${v}`.trim(),children:D}),A&&/* @__PURE__ */E("div",{id:q,className:ee?"col-span-2 row-start-2 min-h-0 overflow-auto":(re?"col-span-2 ":"")+"mt-2 text-sm text-gray-600",children:A}),J&&/* @__PURE__ */E("div",{className:ee?"col-span-2 row-start-3 flex flex-wrap justify-end gap-3 border-t border-line px-6 py-4":(re?"col-span-2 ":"")+"mt-6 flex flex-wrap justify-end gap-3",children:J}),re?
6
- /* @__PURE__ */Q("div",{className:"col-start-2 row-start-1 flex items-center gap-1 "+(ee?(le?"border-b border-line ":"")+"pr-3":"-mr-3 -mt-3 self-start"),children:[V,S&&/* @__PURE__ */E(c,{onClose:ne})]}):S&&/* @__PURE__ */E(c,{onClose:ne,className:"absolute right-3 top-3"})]})})]})}),ie)]})}export{Z as Dialog};
1
+ import{useOverlayTarget as e,usePopupAnchor as r,usePanelPosition as l,usePopupLevel as t,usePopupLevelBindings as i,windowScrimStyle as a,OverlayLayerProvider as o,scrimHasCorners as n,popupLayerStyle as s,POPUP_GUTTER as d}from"./chunk-CJ4OEY3T.js";import{CloseButton as c}from"./chunk-5QHNDAZ6.js";import{useDiscardGuard as m}from"./chunk-TEQ5ZPAL.js";import{dialogA11y as p}from"./chunk-VWGWZY7A.js";import{useDismissPopupsOnOpen as u}from"./chunk-DBQNYJZ6.js";import{useFocusTrap as f,useScrollLock as h}from"./chunk-DWGYC7OD.js";import{HEADING_TEXT as x,DESCRIPTION_TEXT as v,PANEL_SURFACE as b}from"./chunk-BWJZTHZ6.js";import{createShellPortal as w}from"./chunk-5QRHQCRG.js";import{useHydrated as y}from"./chunk-KEFNQEXZ.js";import{registerModalEscapeInterceptor as $}from"./chunk-TWVUQUUD.js";import{useShellStrings as g}from"./chunk-NRHG4R2Q.js";import{useRef as N,useId as j,useState as k,useEffect as C}from"react";import{jsxs as Q,Fragment as Z,jsx as E}from"react/jsx-runtime";var D=`calc(100% - ${2*d}px)`,H="grid grid-cols-[minmax(0,1fr)_auto]",T="bg-black/30 backdrop-blur-sm",W={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-4xl","2xl":"max-w-6xl",full:"max-w-none"};function A({open:d,onClose:A,title:B,description:G,role:R="dialog",children:Y,footer:J,headerActions:U,blocking:_=!1,size:F="md",aside:O=!1,dirty:V=!1,initialFocus:z,"aria-label":I,"aria-labelledby":K,"aria-describedby":L,className:P=""}){const X=N(null),q=j(),M=j(),S=!_,ee="full"===F,re=ee||null!=U,le=Boolean(B||G),te=j();g().dialog;const ie=e(y()),[ae,oe]=k(null),ne=m({open:d,dirty:V,onClose:A,title:B,layer:ae}),se=N(null),de=r(d&&null!==ie,se),ce=l(de,X),me=t(d&&null!==ie,se),pe=i(me,ae),ue=a(me),fe=null!==me.host;if(u(d),f(X,d&&null!==ie,z,pe),h(d),C(()=>{if(d)return $(()=>!pe.current?.(document.activeElement)&&(_||ne(),!0),()=>X.current)},[d,_,ne,pe]),!d||!ie)return null;/* @__PURE__ */
2
+ return Q(Z,{children:[/* @__PURE__ */E("span",{ref:se,hidden:!0,"data-popup-anchor":""}),w(
3
+ /* @__PURE__ */E(o,{value:ae,children:/* @__PURE__ */Q("div",{ref:oe,className:"fixed inset-0"+(O?" pointer-events-none opacity-0":fe?" pointer-events-none":""),style:s(me),role:"presentation","data-overlay-layer":"","data-aside":O?"":void 0,children:[!fe&&/* @__PURE__ */E("div",{className:`fixed inset-0 ${T}`,"aria-hidden":"true","data-popup-scrim":"system"}),ue&&/* @__PURE__ */E("div",{className:`fixed ${T}${O?"":" pointer-events-auto"}${n(me)?" rounded-(--radius-window)":""}`,style:ue,onClick:_?void 0:ne,"aria-hidden":"true","data-popup-scrim":"window"}),
4
+ /* @__PURE__ */E("div",{className:de?"fixed inset-0":"fixed inset-0 flex items-center justify-center p-4",onClick:_||fe?void 0:e=>{e.target===e.currentTarget&&ne()},children:/* @__PURE__ */Q("div",{ref:X,"data-popup-panel":"",style:de?{left:ce?.left??0,top:ce?.top??0,visibility:ce?void 0:"hidden",width:D,[ee?"height":"maxHeight"]:D}:void 0,...p({role:R,modal:!0,titleId:B?te:void 0,labelledBy:K,label:I}),"aria-describedby":L??(G?M:Y?q:void 0),className:(ee?`${de?"absolute":"relative h-full w-full max-h-full"} ${W[F]} ${H} grid-rows-[auto_minmax(0,1fr)_auto] overflow-hidden rounded-(--radius-popup) ${b}`:`${de?"absolute":"relative max-h-full w-full"} ${W[F]}${re?` ${H} content-start gap-x-2`:""} overflow-y-auto overscroll-contain rounded-(--radius-card) ${b} p-6`)+`${fe&&!O?" pointer-events-auto":""} ${P}`.trimEnd(),children:[ee?le&&
5
+ /* @__PURE__ */Q("div",{className:"col-start-1 row-start-1 flex min-h-(--row-height-window-bar) flex-col justify-center border-b border-line py-2 pl-6 pr-4",children:[B&&/* @__PURE__ */E("h2",{id:te,className:x,children:B}),G&&/* @__PURE__ */E("p",{id:M,className:`${B?"mt-1 ":""}${v}`,children:G})]}):B&&/* @__PURE__ */E("h2",{id:te,className:`${re?"col-start-1 row-start-1 ":S?"pr-8 ":""}${x}`,children:B}),!ee&&G&&/* @__PURE__ */E("p",{id:M,className:`${re?"col-start-1 ":""}${B?"mt-1":S&&!re?"pr-8":""} ${v}`.trim(),children:G}),Y&&/* @__PURE__ */E("div",{id:q,className:ee?"col-span-2 row-start-2 min-h-0 overflow-auto":(re?"col-span-2 ":"")+"mt-2 text-sm text-gray-600",children:Y}),J&&/* @__PURE__ */E("div",{className:ee?"col-span-2 row-start-3 flex flex-wrap justify-end gap-3 border-t border-line px-6 py-4":(re?"col-span-2 ":"")+"mt-6 flex flex-wrap justify-end gap-3",children:J}),re?
6
+ /* @__PURE__ */Q("div",{className:"col-start-2 row-start-1 flex items-center gap-1 "+(ee?(le?"border-b border-line ":"")+"pr-3":"-mr-3 -mt-3 self-start"),children:[U,S&&/* @__PURE__ */E(c,{onClose:ne})]}):S&&/* @__PURE__ */E(c,{onClose:ne,className:"absolute right-3 top-3"})]})})]})}),ie)]})}export{A as Dialog};
@@ -1,20 +1,20 @@
1
- import{Checkbox_default as e}from"./chunk-CGZBDI6C.js";import{Pagination as t}from"./chunk-Q2RNFBYS.js";import{SpinnerRing as r}from"./chunk-R2VKEMZH.js";import{TH_ONE_LINE as o,OneLineLabel as n}from"./chunk-7FYTL6SD.js";import{useBrowserLayoutEffect as l}from"./chunk-PU2GJVMG.js";import{useShellStrings as s}from"./chunk-NRHG4R2Q.js";import{useState as i,useRef as a}from"react";import{jsxs as c,Fragment as d,jsx as h}from"react/jsx-runtime";function u(e){const t={};if(!e)return t;for(const[r,o]of Object.entries(e))!r.startsWith("data-")||"string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o||(t[r]=o);return t}var m=e=>Array.isArray(e.columns),f=e=>"wide"===e.only?"rosh-dt-only-wide":"stacked"===e.only?"rosh-dt-only-stacked":"",g="rosh-dt-row-link rosh-focus-ring underline-offset-4 hover:underline",p={sm:"px-2 py-2",md:"px-3 py-2"},y={left:"text-left",right:"text-right",center:"text-center"};function b({direction:e}){/* @__PURE__ */
1
+ import{Checkbox_default as e}from"./chunk-CGZBDI6C.js";import{Pagination as t}from"./chunk-Q2RNFBYS.js";import{SpinnerRing as r}from"./chunk-R2VKEMZH.js";import{TH_ONE_LINE as o,OneLineLabel as n}from"./chunk-FAPZFMS3.js";import{useBrowserLayoutEffect as l}from"./chunk-PU2GJVMG.js";import{useShellStrings as s}from"./chunk-NRHG4R2Q.js";import{useState as i,useRef as a}from"react";import{jsxs as c,Fragment as d,jsx as h}from"react/jsx-runtime";function u(e){const t={};if(!e)return t;for(const[r,o]of Object.entries(e))!r.startsWith("data-")||"string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o||(t[r]=o);return t}var m=e=>Array.isArray(e.columns),f=e=>"wide"===e.only?"rosh-dt-only-wide":"stacked"===e.only?"rosh-dt-only-stacked":"",g="rosh-dt-row-link rosh-focus-ring underline-offset-4 hover:underline",p={sm:"px-2 py-2",md:"px-3 py-2"},y={left:"text-left",right:"text-right",center:"text-center"};function b({direction:e}){/* @__PURE__ */
2
2
  return c("span",{className:"ml-1 inline-flex flex-col leading-none","aria-hidden":"true",children:[
3
3
  /* @__PURE__ */h("svg",{className:"h-2 w-2 "+("asc"===e?"text-gray-700":"text-gray-300"),viewBox:"0 0 8 5",fill:"currentColor",children:/* @__PURE__ */h("path",{d:"M4 0L8 5H0z"})}),
4
- /* @__PURE__ */h("svg",{className:"h-2 w-2 "+("desc"===e?"text-gray-700":"text-gray-300"),viewBox:"0 0 8 5",fill:"currentColor",children:/* @__PURE__ */h("path",{d:"M4 5L0 0h8z"})})]})}function w(e,t=!1){const r=t?"":" whitespace-nowrap";return e.code?`font-mono${r}`:e.numeric?`tabular-nums${r}`:""}function x({columns:x,data:v,rowKey:k,sort:N=null,onSortChange:C,pagination:j,caption:M,loading:B=!1,bordered:S=!1,size:$="md",minWidth:z,rowClassName:H,onRow:R,rowHref:T,onRowPress:F,linkAs:I,emptyText:L,selection:P,footer:A,virtualized:D,stackOnNarrow:E=!1,stackBelow:G,className:O=""}){const K=s(),W=L??K.table.empty,Q=(e,t)=>"function"==typeof k?k(e,t):String(e[k]),V=E&&!D,Y=V?x:x.flatMap(e=>{if(!m(e))return"stacked"===e.only?[]:[e];const t=e.columns.filter(e=>"stacked"!==e.only);return t.length?[{...e,columns:t}]:[]}),Z=e=>V?{role:e}:{},J=(e,t)=>(t??("string"==typeof e||"number"==typeof e?String(e):"")).trim()||void 0,[U,q]=i(0),X=D?.overscan??6,_=D?e=>{const t=Math.max(0,Math.floor(e.currentTarget.scrollTop/D.rowHeight)-X);q(e=>e===t?e:t)}:void 0,ee=D?Math.ceil(D.height/D.rowHeight)+2*X:v.length,te=D?Math.min(U,Math.max(0,v.length-ee)):0,re=Math.min(v.length,te+ee),oe=D?te*D.rowHeight:0,ne=D?(v.length-re)*D.rowHeight:0,le=a(null),[se,ie]=i(0);l(()=>{if(!D)return;const e=le.current?.offsetHeight??0;ie(t=>t===e?t:e)});const ae=e=>e.sortField??e.key,ce=e=>N&&N.field===ae(e)?N.direction:null,de=Y.flatMap(e=>m(e)?e.columns:[e]),he=Y.some(m),ue=/* @__PURE__ */new Map;if(V)for(const e of Y)if(m(e))for(const t of e.columns)ue.set(t,J(e.title,e.label));const me=e=>{const t=J(e.title,e.label),r=ue.get(e);return t&&r?`${r} · ${t}`:t},fe=new Set(P?.selected??[]),ge=P?v.map((e,t)=>Q(e,t)):[],pe=ge.length>0&&ge.every(e=>fe.has(e)),ye=ge.some(e=>fe.has(e)),be=P?36:0,we=de.length+(P?1:0),xe=de.some(e=>"left"===e.fixed),ve=V&&!P&&de.some(e=>e.cardCorner),ke=I??"a",Ne=`${p[$]} ${"sm"===$?"text-xs":"text-sm"}`,Ce=(e,t)=>e.ellipsis?/* @__PURE__ */h("span",{className:"block w-0 min-w-full",children:t}):t,je=(e,t,r,l=0)=>{const s=ce(e),i=y[e.align??(e.numeric?"right":"left")],a="left"===e.fixed,d=!(!e.sortable||!C);/* @__PURE__ */
5
- return h("th",{scope:"col",...Z("columnheader"),rowSpan:r>1?r:void 0,"aria-sort":"asc"===s?"ascending":"desc"===s?"descending":d?"none":void 0,style:{width:e.width,...a?{left:(Be[t]??0)+be}:{},...D?{top:l}:{}},className:[Ne,i,o,"font-semibold uppercase tracking-wide text-gray-500","sm"===$?"text-2xs":"text-xs",a?D?"sticky z-20 bg-gray-50":"sticky z-10 bg-gray-50":D?"sticky z-10 bg-gray-50":"",V&&d?"rosh-dt-sort":"",V?f(e):"",e.headerClassName??""].filter(Boolean).join(" "),children:Ce(e,d?/* @__PURE__ */c("button",{type:"button",onClick:()=>(e=>{if(!C)return;const t=ae(e),r=ce(e),o=e.sortFirst??"asc";C(null===r?{field:t,direction:o}:r===o?{field:t,direction:"asc"===o?"desc":"asc"}:null)})(e),"data-group":V?ue.get(e):void 0,className:`inline-flex max-w-full items-center font-semibold uppercase tracking-wide hover:text-ink ${i}`,children:[
4
+ /* @__PURE__ */h("svg",{className:"h-2 w-2 "+("desc"===e?"text-gray-700":"text-gray-300"),viewBox:"0 0 8 5",fill:"currentColor",children:/* @__PURE__ */h("path",{d:"M4 5L0 0h8z"})})]})}function w(e,t=!1){const r=t?"":" whitespace-nowrap";return e.code?`font-mono${r}`:e.numeric?`tabular-nums${r}`:""}function x({columns:x,data:v,rowKey:k,sort:N=null,onSortChange:C,pagination:j,caption:M,loading:B=!1,bordered:S=!1,size:$="md",minWidth:z,rowClassName:H,onRow:F,rowHref:R,onRowPress:I,linkAs:P,emptyText:T,selection:A,footer:E,virtualized:G,stackOnNarrow:L=!1,stackBelow:O,className:D=""}){const K=s(),W=T??K.table.empty,Z=(e,t)=>"function"==typeof k?k(e,t):String(e[k]),Q=L&&!G,V=Q?x:x.flatMap(e=>{if(!m(e))return"stacked"===e.only?[]:[e];const t=e.columns.filter(e=>"stacked"!==e.only);return t.length?[{...e,columns:t}]:[]}),J=e=>Q?{role:e}:{},U=(e,t)=>(t??("string"==typeof e||"number"==typeof e?String(e):"")).trim()||void 0,[Y,q]=i(0),X=G?.overscan??6,_=G?e=>{const t=Math.max(0,Math.floor(e.currentTarget.scrollTop/G.rowHeight)-X);q(e=>e===t?e:t)}:void 0,ee=G?Math.ceil(G.height/G.rowHeight)+2*X:v.length,te=G?Math.min(Y,Math.max(0,v.length-ee)):0,re=Math.min(v.length,te+ee),oe=G?te*G.rowHeight:0,ne=G?(v.length-re)*G.rowHeight:0,le=a(null),[se,ie]=i(0);l(()=>{if(!G)return;const e=le.current?.offsetHeight??0;ie(t=>t===e?t:e)});const ae=e=>e.sortField??e.key,ce=e=>N&&N.field===ae(e)?N.direction:null,de=V.flatMap(e=>m(e)?e.columns:[e]),he=V.some(m),ue=/* @__PURE__ */new Map;if(Q)for(const e of V)if(m(e))for(const t of e.columns)ue.set(t,U(e.title,e.label));const me=e=>{const t=U(e.title,e.label),r=ue.get(e);return t&&r?`${r} · ${t}`:t},fe=new Set(A?.selected??[]),ge=A?v.map((e,t)=>Z(e,t)):[],pe=ge.length>0&&ge.every(e=>fe.has(e)),ye=ge.some(e=>fe.has(e)),be=A?36:0,we=de.length+(A?1:0),xe=de.some(e=>"left"===e.fixed),ve=Q&&!A&&de.some(e=>e.cardCorner),ke=P??"a",Ne=`${p[$]} ${"sm"===$?"text-xs":"text-sm"}`,Ce=(e,t)=>e.ellipsis?/* @__PURE__ */h("span",{className:"block w-0 min-w-full",children:t}):t,je=(e,t,r,l=0)=>{const s=ce(e),i=y[e.align??(e.numeric?"right":"left")],a="left"===e.fixed,d=!(!e.sortable||!C);/* @__PURE__ */
5
+ return h("th",{scope:"col",...J("columnheader"),rowSpan:r>1?r:void 0,"aria-sort":"asc"===s?"ascending":"desc"===s?"descending":d?"none":void 0,style:{width:e.width,...a?{left:(Be[t]??0)+be}:{},...G?{top:l}:{}},className:[Ne,i,o,"font-semibold uppercase tracking-wide text-gray-500","sm"===$?"text-2xs":"text-xs",a?G?"sticky z-20 bg-gray-50":"sticky z-10 bg-gray-50":G?"sticky z-10 bg-gray-50":"",Q&&d?"rosh-dt-sort":"",Q?f(e):"",e.headerClassName??""].filter(Boolean).join(" "),children:Ce(e,d?/* @__PURE__ */c("button",{type:"button",onClick:()=>(e=>{if(!C)return;const t=ae(e),r=ce(e),o=e.sortFirst??"asc";C(null===r?{field:t,direction:o}:r===o?{field:t,direction:"asc"===o?"desc":"asc"}:null)})(e),"data-group":Q?ue.get(e):void 0,className:`inline-flex max-w-full items-center font-semibold uppercase tracking-wide hover:text-ink ${i}`,children:[
6
6
  /* @__PURE__ */h(n,{children:e.title}),
7
7
  /* @__PURE__ */h(b,{direction:s})]}):/* @__PURE__ */h(n,{children:e.title}))},e.key)};let Me=0;const Be=de.map(e=>{if("left"!==e.fixed)return null;const t=Me;return Me+=e.width??0,t}),Se=/* @__PURE__ */c(d,{children:[
8
- /* @__PURE__ */c("div",{onScroll:_,style:D?{maxHeight:D.height}:void 0,className:`relative overflow-x-auto ${D?"overflow-y-auto":""} ${S?"rounded-lg border border-gray-200":""}${V?" rosh-dt-scroll":""}`.trim(),children:[B&&
8
+ /* @__PURE__ */c("div",{onScroll:_,style:G?{maxHeight:G.height}:void 0,className:`relative overflow-x-auto ${G?"overflow-y-auto":""} ${S?"rounded-lg border border-gray-200":""}${Q?" rosh-dt-scroll":""}`.trim(),children:[B&&
9
9
  /* @__PURE__ */c("div",{className:"absolute inset-0 z-20 flex items-start justify-center bg-white/60 pt-8",role:"status","aria-live":"polite",children:[
10
10
  /* @__PURE__ */h(r,{className:"h-6 w-6"}),
11
11
  /* @__PURE__ */h("span",{className:"sr-only",children:K.table.loading})]}),
12
- /* @__PURE__ */c("table",{...Z("table"),className:(V?"rosh-dt-table ":"")+"w-full border-collapse tabular-nums",style:z?{minWidth:z}:void 0,children:[M&&/* @__PURE__ */h("caption",{className:"sr-only",children:M}),
13
- /* @__PURE__ */c("thead",{...Z("rowgroup"),className:V?"rosh-dt-head":void 0,children:[
14
- /* @__PURE__ */c("tr",{ref:le,...Z("row"),className:"border-b border-gray-200 bg-gray-50",children:[P&&/* @__PURE__ */h("th",{scope:"col",...Z("columnheader"),rowSpan:he?2:void 0,style:{width:36,...D?{top:0}:{}},className:[Ne,o,xe||D?"sticky z-20 bg-gray-50":"",xe?"left-0":"",V?"rosh-dt-select":""].filter(Boolean).join(" "),children:/* @__PURE__ */h(e,{"aria-label":K.table.selectAll,checked:pe,indeterminate:ye&&!pe,onChange:()=>{if(!P)return;const e=new Set(ge);P.onChange(pe?P.selected.filter(t=>!e.has(t)):[...P.selected,...ge.filter(e=>!fe.has(e))])}})}),Y.map((e,t)=>m(e)?/* @__PURE__ */h("th",{scope:"colgroup",...Z("columnheader"),colSpan:e.columns.length,style:D?{top:0}:void 0,className:[Ne,"text-center",o,"font-semibold uppercase tracking-wide text-gray-500","sm"===$?"text-2xs":"text-xs","border-b border-gray-200",D?"sticky z-10 bg-gray-50":"",e.headerClassName??""].filter(Boolean).join(" "),children:/* @__PURE__ */h(n,{children:e.title})},e.key??`group-${t}`):je(e,de.indexOf(e),he?2:1))]}),he&&/* @__PURE__ */h("tr",{...Z("row"),className:"border-b border-gray-200 bg-gray-50",children:Y.flatMap(e=>m(e)?e.columns:[]).map(e=>je(e,de.indexOf(e),1,se))})]}),
15
- /* @__PURE__ */h("tbody",{...Z("rowgroup"),className:V?"rosh-dt-body":void 0,children:0!==v.length||B?/* @__PURE__ */c(d,{children:[oe>0&&/* @__PURE__ */h("tr",{"aria-hidden":"true",children:/* @__PURE__ */h("td",{colSpan:we,style:{height:oe,padding:0,border:0}})}),v.slice(te,re).map((t,r)=>{const o=te+r,n=R?.(t,o),l=!!n?.current,s=T?.(t,o),i=void 0===s&&F?()=>F(t,o):void 0,a=void 0!==s||void 0!==i;let d=!1;const m=(e,t)=>{if(d=!0,!a)return e;const r=[g,i?"cursor-pointer text-left":"",t?.className??""].filter(Boolean).join(" "),o=l?"true":void 0;return void 0!==s?/* @__PURE__ */h(ke,{href:s,className:r,"aria-current":o,children:e}):/* @__PURE__ */h("button",{type:"button",onClick:i,className:r,"aria-current":o,children:e})},p=de.map(e=>e.render?e.render(t,o,m):e.dataIndex?t[e.dataIndex]:null);if(a&&!d){const e=de.findIndex(e=>"stacked"!==e.only&&!e.cardCorner),t=de.findIndex(e=>"wide"!==e.only&&!e.cardCorner);for(const r of/* @__PURE__ */new Set([e,t]))r>=0&&(p[r]=m(p[r]))}const b=e=>e?t=>{t.currentTarget.contains(t.relatedTarget)||e()}:void 0;/* @__PURE__ */
16
- return c("tr",{...u(n),...Z("row"),style:D?{height:D.rowHeight}:void 0,onClick:n?.onClick,onMouseEnter:n?.onMouseEnter,onMouseLeave:n?.onMouseLeave,onFocus:b(n?.onFocus),onBlur:b(n?.onBlur),"aria-current":l&&!a?"true":void 0,...n?.onClick?{tabIndex:0,onKeyDown:e=>{e.target===e.currentTarget&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n.onClick?.()))}}:{},className:[V?P?"rosh-dt-row rosh-dt-row-select":"rosh-dt-row":"",V&&ve?"rosh-dt-row-corner":"","border-b border-gray-100 last:border-b-0",n?.onClick?"cursor-pointer hover:bg-gray-50 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]":"",a?"rosh-dt-linked hover:bg-gray-50":"",l?"rosh-dt-current":"",H?.(t,o)??"",n?.className??""].filter(Boolean).join(" "),children:[P&&(()=>{const r=Q(t,o);/* @__PURE__ */
17
- return h("td",{...Z("cell"),style:{width:36},onClick:e=>e.stopPropagation(),className:[Ne,xe?"sticky left-0 z-10 bg-white":"",V?"rosh-dt-select":""].filter(Boolean).join(" "),children:/* @__PURE__ */h(e,{"aria-label":K.table.selectRow,checked:fe.has(r),onChange:()=>(e=>{P&&P.onChange(fe.has(e)?P.selected.filter(t=>t!==e):[...P.selected,e])})(r)})})})(),de.map((e,t)=>{const r="left"===e.fixed,o=p[t],n=ve&&!!e.cardCorner,l=V&&!n&&"wide"!==e.only;/* @__PURE__ */
18
- return h("td",{...Z("cell"),"data-label":l?me(e):void 0,style:r?{left:(Be[t]??0)+be}:void 0,className:[l?e.ellipsis?"rosh-dt-cell rosh-dt-clip":"rosh-dt-cell":"",n?"rosh-dt-corner":"",V?f(e):"",Ne,y[e.align??(e.numeric?"right":"left")],V?"":w(e),"text-ink-strongest",e.ellipsis?"max-w-0 truncate":"",r?"sticky z-10 bg-white":"",e.className??""].filter(Boolean).join(" "),children:V?
19
- /* @__PURE__ */h("span",{className:["rosh-dt-value",w(e,!0)].filter(Boolean).join(" "),children:o}):o},e.key)})]},Q(t,o))}),ne>0&&/* @__PURE__ */h("tr",{"aria-hidden":"true",children:/* @__PURE__ */h("td",{colSpan:we,style:{height:ne,padding:0,border:0}})})]}):/* @__PURE__ */h("tr",{...Z("row"),className:V?"rosh-dt-empty":void 0,children:/* @__PURE__ */h("td",{...Z("cell"),colSpan:we,className:`${Ne} py-10 text-center text-gray-500`,children:W})})})]}),A]}),j&&j.pageCount>1&&/* @__PURE__ */h("div",{className:V?"rosh-dt-pager mt-3 flex justify-end":"mt-3 flex justify-end",children:/* @__PURE__ */h(t,{page:j.page,pageCount:j.pageCount,onPageChange:j.onPageChange})})]});/* @__PURE__ */
20
- return h("div",V?void 0!==G&&G>0&&40!==G?{className:`rosh-dt-at ${O}`.trim(),children:/* @__PURE__ */h("div",{className:"rosh-dt-stack",style:{width:40/G*100+"%"},children:/* @__PURE__ */h("div",{className:"rosh-dt-fit",style:{width:G/40*100+"%"},children:Se})})}:{className:`rosh-dt-stack ${O}`.trim(),children:Se}:{className:O,children:Se})}export{x as DataTable};
12
+ /* @__PURE__ */c("table",{...J("table"),className:(Q?"rosh-dt-table ":"")+"w-full border-collapse tabular-nums",style:z?{minWidth:z}:void 0,children:[M&&/* @__PURE__ */h("caption",{className:"sr-only",children:M}),
13
+ /* @__PURE__ */c("thead",{...J("rowgroup"),className:Q?"rosh-dt-head":void 0,children:[
14
+ /* @__PURE__ */c("tr",{ref:le,...J("row"),className:"border-b border-gray-200 bg-gray-50",children:[A&&/* @__PURE__ */h("th",{scope:"col",...J("columnheader"),rowSpan:he?2:void 0,style:{width:36,...G?{top:0}:{}},className:[Ne,o,xe||G?"sticky z-20 bg-gray-50":"",xe?"left-0":"",Q?"rosh-dt-select":""].filter(Boolean).join(" "),children:/* @__PURE__ */h(e,{"aria-label":K.table.selectAll,checked:pe,indeterminate:ye&&!pe,onChange:()=>{if(!A)return;const e=new Set(ge);A.onChange(pe?A.selected.filter(t=>!e.has(t)):[...A.selected,...ge.filter(e=>!fe.has(e))])}})}),V.map((e,t)=>m(e)?/* @__PURE__ */h("th",{scope:"colgroup",...J("columnheader"),colSpan:e.columns.length,style:G?{top:0}:void 0,className:[Ne,"text-center",o,"font-semibold uppercase tracking-wide text-gray-500","sm"===$?"text-2xs":"text-xs","border-b border-gray-200",G?"sticky z-10 bg-gray-50":"",e.headerClassName??""].filter(Boolean).join(" "),children:/* @__PURE__ */h(n,{children:e.title})},e.key??`group-${t}`):je(e,de.indexOf(e),he?2:1))]}),he&&/* @__PURE__ */h("tr",{...J("row"),className:"border-b border-gray-200 bg-gray-50",children:V.flatMap(e=>m(e)?e.columns:[]).map(e=>je(e,de.indexOf(e),1,se))})]}),
15
+ /* @__PURE__ */h("tbody",{...J("rowgroup"),className:Q?"rosh-dt-body":void 0,children:0!==v.length||B?/* @__PURE__ */c(d,{children:[oe>0&&/* @__PURE__ */h("tr",{"aria-hidden":"true",children:/* @__PURE__ */h("td",{colSpan:we,style:{height:oe,padding:0,border:0}})}),v.slice(te,re).map((t,r)=>{const o=te+r,n=F?.(t,o),l=!!n?.current,s=R?.(t,o),i=void 0===s&&I?()=>I(t,o):void 0,a=void 0!==s||void 0!==i;let d=!1;const m=(e,t)=>{if(d=!0,!a)return e;const r=[g,i?"cursor-pointer text-left":"",t?.className??""].filter(Boolean).join(" "),o=l?"true":void 0;return void 0!==s?/* @__PURE__ */h(ke,{href:s,className:r,"aria-current":o,children:e}):/* @__PURE__ */h("button",{type:"button",onClick:i,className:r,"aria-current":o,children:e})},p=de.map(e=>e.render?e.render(t,o,m):e.dataIndex?t[e.dataIndex]:null);if(a&&!d){const e=de.findIndex(e=>"stacked"!==e.only&&!e.cardCorner),t=de.findIndex(e=>"wide"!==e.only&&!e.cardCorner);for(const r of/* @__PURE__ */new Set([e,t]))r>=0&&(p[r]=m(p[r]))}const b=e=>e?t=>{t.currentTarget.contains(t.relatedTarget)||e()}:void 0;/* @__PURE__ */
16
+ return c("tr",{...u(n),...J("row"),style:G?{height:G.rowHeight}:void 0,onClick:n?.onClick,onMouseEnter:n?.onMouseEnter,onMouseLeave:n?.onMouseLeave,onFocus:b(n?.onFocus),onBlur:b(n?.onBlur),"aria-current":l&&!a?"true":void 0,...n?.onClick?{tabIndex:0,onKeyDown:e=>{e.target===e.currentTarget&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n.onClick?.()))}}:{},className:[Q?A?"rosh-dt-row rosh-dt-row-select":"rosh-dt-row":"",Q&&ve?"rosh-dt-row-corner":"","border-b border-gray-100 last:border-b-0",n?.onClick?"cursor-pointer hover:bg-gray-50 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]":"",a?"rosh-dt-linked hover:bg-gray-50":"",l?"rosh-dt-current":"",H?.(t,o)??"",n?.className??""].filter(Boolean).join(" "),children:[A&&(()=>{const r=Z(t,o);/* @__PURE__ */
17
+ return h("td",{...J("cell"),style:{width:36},onClick:e=>e.stopPropagation(),className:[Ne,xe?"sticky left-0 z-10 bg-white":"",Q?"rosh-dt-select":""].filter(Boolean).join(" "),children:/* @__PURE__ */h(e,{"aria-label":K.table.selectRow,checked:fe.has(r),onChange:()=>(e=>{A&&A.onChange(fe.has(e)?A.selected.filter(t=>t!==e):[...A.selected,e])})(r)})})})(),de.map((e,t)=>{const r="left"===e.fixed,o=p[t],n=ve&&!!e.cardCorner,l=Q&&!n&&"wide"!==e.only;/* @__PURE__ */
18
+ return h("td",{...J("cell"),"data-label":l?me(e):void 0,style:r?{left:(Be[t]??0)+be}:void 0,className:[l?e.ellipsis?"rosh-dt-cell rosh-dt-clip":"rosh-dt-cell":"",n?"rosh-dt-corner":"",Q?f(e):"",Ne,y[e.align??(e.numeric?"right":"left")],Q?"":w(e),"text-ink-strongest",e.ellipsis?"max-w-0 truncate":"",r?"sticky z-10 bg-white":"",e.className??""].filter(Boolean).join(" "),children:Q?
19
+ /* @__PURE__ */h("span",{className:["rosh-dt-value",w(e,!0)].filter(Boolean).join(" "),children:o}):o},e.key)})]},Z(t,o))}),ne>0&&/* @__PURE__ */h("tr",{"aria-hidden":"true",children:/* @__PURE__ */h("td",{colSpan:we,style:{height:ne,padding:0,border:0}})})]}):/* @__PURE__ */h("tr",{...J("row"),className:Q?"rosh-dt-empty":void 0,children:/* @__PURE__ */h("td",{...J("cell"),colSpan:we,className:`${Ne} py-10 text-center text-gray-500`,children:W})})})]}),E]}),j&&j.pageCount>1&&/* @__PURE__ */h("div",{className:Q?"rosh-dt-pager mt-3 flex justify-end":"mt-3 flex justify-end",children:/* @__PURE__ */h(t,{page:j.page,pageCount:j.pageCount,onPageChange:j.onPageChange})})]});/* @__PURE__ */
20
+ return h("div",Q?void 0!==O&&O>0&&40!==O?{className:`rosh-dt-at ${D}`.trim(),children:/* @__PURE__ */h("div",{className:"rosh-dt-stack",style:{width:40/O*100+"%"},children:/* @__PURE__ */h("div",{className:"rosh-dt-fit",style:{width:O/40*100+"%"},children:Se})})}:{className:`rosh-dt-stack ${D}`.trim(),children:Se}:{className:D,children:Se})}export{x as DataTable};