efficient-shell 10.17.0 → 10.17.1

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/dist/{Browser-Q5BYSSW3.js → Browser-4B76MFTG.js} +13 -13
  2. package/dist/Calculator-AXFKAC7G.js +29 -0
  3. package/dist/{CurrencyConverter-42IHLJVV.js → CurrencyConverter-36BFSFRS.js} +8 -8
  4. package/dist/{Documents-GGEPMWB5.js → Documents-VKAMBKSP.js} +23 -23
  5. package/dist/Files-NRYZG4KY.js +88 -0
  6. package/dist/{Notepad-L2LOWTSE.js → Notepad-AQXGH6VP.js} +9 -9
  7. package/dist/{PomodoroTimer-PD7POYX5.js → PomodoroTimer-RHDLKJBY.js} +20 -20
  8. package/dist/{Preview-HM2Z3EJO.js → Preview-DEBTZQP5.js} +41 -41
  9. package/dist/Sidebar-CB6KRPW2.js +44 -0
  10. package/dist/{Spreadsheet-2E4TQ64O.js → Spreadsheet-FSHLWXYP.js} +11 -11
  11. package/dist/{Stock-IABQRSXZ.js → Stock-CV53A432.js} +3 -3
  12. package/dist/{Weather-4QPYOENN.js → Weather-R4MCLH7F.js} +22 -22
  13. package/dist/{WorldClock-3ZVRBLEW.js → WorldClock-CSFPCZHU.js} +6 -6
  14. package/dist/ai/index.js +63 -62
  15. package/dist/ai.css +1 -1
  16. package/dist/apps/index.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/charts/BoxPlotChart.js +1 -1
  20. package/dist/charts/CandlestickChart.js +1 -1
  21. package/dist/charts/ChartTooltip.js +1 -1
  22. package/dist/charts/ChordChart.js +1 -1
  23. package/dist/charts/ColumnChart.js +1 -1
  24. package/dist/charts/FunnelChart.js +1 -1
  25. package/dist/charts/HeatmapChart.js +1 -1
  26. package/dist/charts/HistogramChart.js +1 -1
  27. package/dist/charts/PieChart.js +1 -1
  28. package/dist/charts/RadarChart.js +1 -1
  29. package/dist/charts/RadialBarChart.js +1 -1
  30. package/dist/charts/RangeChart.js +1 -1
  31. package/dist/charts/SankeyChart.js +1 -1
  32. package/dist/charts/ScatterChart.js +1 -1
  33. package/dist/charts/SpecChart.js +1 -1
  34. package/dist/charts/SunburstChart.js +1 -1
  35. package/dist/charts/TimeSeriesChart.js +1 -1
  36. package/dist/charts/TreemapChart.js +1 -1
  37. package/dist/charts/WaterfallChart.js +1 -1
  38. package/dist/{chunk-K4JQ3FQI.js → chunk-2EVTN26H.js} +2 -2
  39. package/dist/{chunk-7VBXIIEC.js → chunk-3PR7FLTZ.js} +2 -2
  40. package/dist/{chunk-N6CS2FO2.js → chunk-3TKMH5VR.js} +1 -1
  41. package/dist/{chunk-4WEFGKJL.js → chunk-3VLG6LR3.js} +4 -4
  42. package/dist/{chunk-UYRMW5MO.js → chunk-4D66DUU5.js} +5 -5
  43. package/dist/{chunk-YJXS7BR5.js → chunk-4MJA2SPJ.js} +13 -13
  44. package/dist/chunk-4Q25UHWB.js +22 -0
  45. package/dist/{chunk-VIQ6OME2.js → chunk-4V73LGZG.js} +8 -8
  46. package/dist/{chunk-HJW67KA7.js → chunk-5IPFQV34.js} +1 -1
  47. package/dist/{chunk-3ELLBQPS.js → chunk-5LCDCO46.js} +1 -1
  48. package/dist/{chunk-GISDIVFK.js → chunk-5N5AAYQV.js} +1 -1
  49. package/dist/{chunk-2YSGXZOL.js → chunk-5VAIVRK6.js} +48 -48
  50. package/dist/{chunk-V6Y4OC6K.js → chunk-5W2OEDUD.js} +8 -8
  51. package/dist/chunk-6ACS4S4P.js +15 -0
  52. package/dist/{chunk-VWIYC2NB.js → chunk-7AZAMDGG.js} +7 -7
  53. package/dist/chunk-7RPYVQEV.js +2 -0
  54. package/dist/{chunk-XLWMM53L.js → chunk-7X4QNWA7.js} +2 -2
  55. package/dist/{chunk-5WYRAJ5F.js → chunk-AEJYSUVQ.js} +1 -1
  56. package/dist/{chunk-NVD4AI5Y.js → chunk-AFINCNY3.js} +1 -1
  57. package/dist/{chunk-UDKTAG57.js → chunk-B4HSNEBK.js} +1 -1
  58. package/dist/{chunk-5SIOCKCK.js → chunk-BE777IO7.js} +2 -2
  59. package/dist/{chunk-NNZFC4O7.js → chunk-BVIOCAEU.js} +1 -1
  60. package/dist/{chunk-4UKGVLFP.js → chunk-BZUA5F33.js} +1 -1
  61. package/dist/{chunk-QHPVAXHR.js → chunk-CCIGAU5Y.js} +3 -3
  62. package/dist/{chunk-SDDV3UCN.js → chunk-CF7BMDU3.js} +3 -3
  63. package/dist/{chunk-EPY34L26.js → chunk-CNUHLJYD.js} +1 -1
  64. package/dist/{chunk-SLU45G5J.js → chunk-CUKDQPEN.js} +3 -3
  65. package/dist/{chunk-5TDQPZDB.js → chunk-D6OYQM4V.js} +5 -5
  66. package/dist/chunk-DOC52JBV.js +20 -0
  67. package/dist/{chunk-DCRLJMQ6.js → chunk-EC527NE3.js} +1 -1
  68. package/dist/chunk-EDMDKQNO.js +4 -0
  69. package/dist/{chunk-RVRDDTEG.js → chunk-ENDCV7B3.js} +9 -9
  70. package/dist/{chunk-YSDPFDAG.js → chunk-EQCFPRKJ.js} +1 -1
  71. package/dist/{chunk-TXDA7TTP.js → chunk-EQZZ4V5X.js} +1 -1
  72. package/dist/{chunk-OORL6BIG.js → chunk-EZUQ5NXE.js} +1 -1
  73. package/dist/chunk-F7Z47OIF.js +12 -0
  74. package/dist/{chunk-NFB7PARJ.js → chunk-FEATDGFD.js} +1 -1
  75. package/dist/chunk-FX6DBXXD.js +1 -0
  76. package/dist/{chunk-7JGR7WPD.js → chunk-G4JTO5PB.js} +1 -1
  77. package/dist/{chunk-RUGQO7YF.js → chunk-G4PGEQOX.js} +9 -9
  78. package/dist/{chunk-W3OWPBQL.js → chunk-GD7ILVPF.js} +2 -2
  79. package/dist/chunk-GLBLKHYA.js +5 -0
  80. package/dist/{chunk-VDUXPMOQ.js → chunk-H7BKSATJ.js} +1 -1
  81. package/dist/{chunk-RT4WOEVS.js → chunk-HJ2BDUO6.js} +4 -4
  82. package/dist/{chunk-RBBIAIPH.js → chunk-HLQVB7FG.js} +8 -8
  83. package/dist/{chunk-VQCSHJEF.js → chunk-HLVOHOBC.js} +5 -5
  84. package/dist/{chunk-FOFZI62F.js → chunk-HS2E7DVI.js} +1 -1
  85. package/dist/chunk-HXNMRJQ4.js +2 -0
  86. package/dist/chunk-HXZ5XPBS.js +3 -0
  87. package/dist/{chunk-WTYQF7XJ.js → chunk-HYDVHGVT.js} +2 -2
  88. package/dist/chunk-IDV32UV7.js +29 -0
  89. package/dist/chunk-IHFZ7OXO.js +14 -0
  90. package/dist/{chunk-3UXXA2CS.js → chunk-ILP7QVW5.js} +8 -8
  91. package/dist/{chunk-3PR5YMWZ.js → chunk-IX7QXMNJ.js} +1 -1
  92. package/dist/{chunk-ZQKA2XKH.js → chunk-JFH5HW2G.js} +7 -7
  93. package/dist/{chunk-GEP4FROW.js → chunk-K7L3ZCPB.js} +3 -3
  94. package/dist/chunk-KLBJ646Z.js +8 -0
  95. package/dist/{chunk-77AQNJE2.js → chunk-L2RS2UQM.js} +1 -1
  96. package/dist/{chunk-MNNZGO2E.js → chunk-LAMRQE2P.js} +1 -1
  97. package/dist/{chunk-O6JJIR4H.js → chunk-M5LR7ZZX.js} +1 -1
  98. package/dist/{chunk-A42MKJA3.js → chunk-MAFSELZK.js} +1 -1
  99. package/dist/{chunk-N67QX3WW.js → chunk-MMQ6ETRD.js} +2 -2
  100. package/dist/{chunk-WYFMSL4Q.js → chunk-N4ZEB4UD.js} +9 -9
  101. package/dist/{chunk-4HBSQGRI.js → chunk-NRI26RYC.js} +2 -2
  102. package/dist/{chunk-QRYSL6QU.js → chunk-NVFYLTJ6.js} +2 -2
  103. package/dist/chunk-NXVFY22L.js +9 -0
  104. package/dist/{chunk-PW52RXPI.js → chunk-NYEMGKAE.js} +1 -1
  105. package/dist/{chunk-ZHAWOZA7.js → chunk-NZGNOMWX.js} +12 -12
  106. package/dist/{chunk-3NW5LD7D.js → chunk-NZQCDFDG.js} +3 -3
  107. package/dist/{chunk-XCHAU2UN.js → chunk-OUIE2N2Z.js} +5 -5
  108. package/dist/{chunk-6XBWM453.js → chunk-Q3IR5SKD.js} +1 -1
  109. package/dist/{chunk-FS6EOU4G.js → chunk-Q5QS5MFX.js} +1 -1
  110. package/dist/{chunk-JYIH2EBG.js → chunk-QEB2UTHO.js} +7 -7
  111. package/dist/{chunk-LYHJHUQH.js → chunk-QJLBBDX2.js} +1 -1
  112. package/dist/{chunk-O47HKK6E.js → chunk-QLVJ5W4G.js} +1 -1
  113. package/dist/chunk-RAAH4TQU.js +1 -0
  114. package/dist/{chunk-CXYHFGUY.js → chunk-RBEI4CKX.js} +5 -5
  115. package/dist/{chunk-MVZRZTQP.js → chunk-S5SRXI4V.js} +1 -1
  116. package/dist/{chunk-OP5DOO3K.js → chunk-SDATPJM2.js} +4 -4
  117. package/dist/{chunk-S74LKSUB.js → chunk-SOBGCIPF.js} +1 -1
  118. package/dist/{chunk-AYDW63LV.js → chunk-SOJEQHZ2.js} +1 -1
  119. package/dist/{chunk-34URULVW.js → chunk-SQCUN2DX.js} +1 -1
  120. package/dist/chunk-SRWZE3WA.js +6 -0
  121. package/dist/{chunk-I33SVQ7P.js → chunk-TIGTIT3L.js} +6 -6
  122. package/dist/{chunk-DHIQ46C5.js → chunk-TLWGOQI3.js} +3 -3
  123. package/dist/chunk-TNDRHHKN.js +14 -0
  124. package/dist/{chunk-YILGAEW3.js → chunk-TXDBOSSB.js} +1 -1
  125. package/dist/{chunk-5QGBVTGS.js → chunk-U32J7D4Q.js} +2 -2
  126. package/dist/{chunk-54NMFQMW.js → chunk-UABVKJK7.js} +1 -1
  127. package/dist/{chunk-Z5A4EY2R.js → chunk-UG6RI525.js} +1 -1
  128. package/dist/chunk-UXPBVRSE.js +7 -0
  129. package/dist/{chunk-HV47GP2C.js → chunk-VHPT7ZS5.js} +5 -5
  130. package/dist/{chunk-NU5HN3FZ.js → chunk-WON5GBJY.js} +7 -7
  131. package/dist/{chunk-RXCGE2AY.js → chunk-WS7XIJS6.js} +1 -1
  132. package/dist/{chunk-DGZAQXTW.js → chunk-WWLKVGV7.js} +4 -4
  133. package/dist/{chunk-G4GVLK44.js → chunk-WZ5QSSUM.js} +6 -6
  134. package/dist/{chunk-Y62TTKSY.js → chunk-X2KMUHBB.js} +3 -3
  135. package/dist/{chunk-C6Y7B73Q.js → chunk-XCAO2F3H.js} +1 -1
  136. package/dist/{chunk-FACWYKL6.js → chunk-XKJ7GEVA.js} +6 -6
  137. package/dist/chunk-XPTOKPUM.js +11 -0
  138. package/dist/{chunk-PLK2WHZG.js → chunk-XQMPLXGG.js} +16 -16
  139. package/dist/{chunk-2VGQS6CW.js → chunk-XTV3CAV7.js} +1 -1
  140. package/dist/{chunk-JNQKBN5M.js → chunk-YG6Y5X7S.js} +5 -5
  141. package/dist/chunk-YUECA3XB.js +8 -0
  142. package/dist/chunk-YYZ73H64.js +7 -0
  143. package/dist/{chunk-VN4KSRZ5.js → chunk-ZF2MNQXY.js} +1 -1
  144. package/dist/{chunk-FKRPQDFX.js → chunk-ZI3DGOW6.js} +16 -16
  145. package/dist/{chunk-TKJBZIHT.js → chunk-ZMRGHVKS.js} +1 -1
  146. package/dist/data/DataTable.js +1 -1
  147. package/dist/data/Kanban.js +1 -1
  148. package/dist/data/ListLoadError.js +1 -1
  149. package/dist/forms/AlignmentGrid.js +1 -1
  150. package/dist/forms/BorderInput.js +1 -1
  151. package/dist/forms/BrandAssetEditor.js +1 -1
  152. package/dist/forms/Button.js +1 -1
  153. package/dist/forms/ColorPicker.js +1 -1
  154. package/dist/forms/ComposerAttachments.js +1 -1
  155. package/dist/forms/CornersInput.js +1 -1
  156. package/dist/forms/DatePicker.js +1 -1
  157. package/dist/forms/DateRangePicker.js +1 -1
  158. package/dist/forms/DisplayChips.js +1 -1
  159. package/dist/forms/FilePicker.js +1 -1
  160. package/dist/forms/IconButton.js +1 -1
  161. package/dist/forms/IconPicker.js +1 -1
  162. package/dist/forms/InputNumber.js +1 -1
  163. package/dist/forms/LinkPicker.js +1 -1
  164. package/dist/forms/MediaLibrary.js +1 -1
  165. package/dist/forms/MediaUploadField.js +1 -1
  166. package/dist/forms/MediaUploadGrid.js +1 -1
  167. package/dist/forms/MediaUsedInList.js +1 -1
  168. package/dist/forms/NumericKeypad.js +1 -1
  169. package/dist/forms/PictureTiles.js +1 -1
  170. package/dist/forms/PositionInput.js +1 -1
  171. package/dist/forms/Segmented.js +1 -1
  172. package/dist/forms/Select.js +1 -1
  173. package/dist/forms/SidesInput.js +1 -1
  174. package/dist/forms/Slider.js +1 -1
  175. package/dist/forms/Snippet.js +1 -1
  176. package/dist/forms/SplitButton.js +1 -1
  177. package/dist/forms/TagInput.js +1 -1
  178. package/dist/forms/TextToolbar.js +1 -1
  179. package/dist/forms/WidthsBar.js +1 -1
  180. package/dist/index.js +249 -249
  181. package/dist/map/index.js +7 -7
  182. package/dist/page-tabs/index.js +5 -5
  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/MilestoneTimeline.js +1 -1
  200. package/dist/shell/Popover.js +1 -1
  201. package/dist/shell/PopupMenu.js +1 -1
  202. package/dist/shell/ProductionTimeline.js +1 -1
  203. package/dist/shell/ResizeHandle.js +1 -1
  204. package/dist/shell/SearchableSelect.js +1 -1
  205. package/dist/shell/SettingReset.js +1 -1
  206. package/dist/shell/SidebarLayout.js +1 -1
  207. package/dist/shell/SidebarNav.js +1 -1
  208. package/dist/shell/SortableList.js +1 -1
  209. package/dist/shell/StatusBadge.js +1 -1
  210. package/dist/shell/Tabs.js +1 -1
  211. package/dist/shell/TimelineTrack.js +1 -1
  212. package/dist/shell/Tooltip.js +1 -1
  213. package/dist/shell/TopNav.js +1 -1
  214. package/dist/shell/TransferProgress.js +1 -1
  215. package/dist/shell/Tree.js +1 -1
  216. package/dist/shell/discardGuard.js +1 -1
  217. package/dist/telemetry/index.js +1 -1
  218. package/dist/templates/AuthScreen.js +1 -1
  219. package/dist/templates/ChatTemplate.js +1 -1
  220. package/dist/templates/CheckoutTemplate.js +1 -1
  221. package/dist/templates/DashboardTemplate.js +1 -1
  222. package/dist/templates/DataTablePage.js +1 -1
  223. package/dist/templates/EmailTemplate.js +1 -1
  224. package/dist/templates/ErrorBoundary.js +1 -1
  225. package/dist/templates/FormLayoutPage.js +1 -1
  226. package/dist/templates/GalleryTemplate.js +1 -1
  227. package/dist/ui/index.js +1 -1
  228. package/dist/version.js +1 -1
  229. package/package.json +1 -1
  230. package/dist/Calculator-6NJNSIRN.js +0 -29
  231. package/dist/Files-OVNXUYOV.js +0 -88
  232. package/dist/Sidebar-2HHICMZZ.js +0 -44
  233. package/dist/chunk-22RQC4EW.js +0 -20
  234. package/dist/chunk-2H6YNMBE.js +0 -14
  235. package/dist/chunk-5TQLUPZD.js +0 -6
  236. package/dist/chunk-67MQ5S32.js +0 -8
  237. package/dist/chunk-6JSXIEH2.js +0 -4
  238. package/dist/chunk-77MOYIQW.js +0 -15
  239. package/dist/chunk-7INZ7O3A.js +0 -5
  240. package/dist/chunk-B23RG53S.js +0 -14
  241. package/dist/chunk-CUHUZBFH.js +0 -29
  242. package/dist/chunk-DESWIPOZ.js +0 -3
  243. package/dist/chunk-DYNJ2H6R.js +0 -8
  244. package/dist/chunk-EJUNGVK2.js +0 -22
  245. package/dist/chunk-I4VIEGCX.js +0 -2
  246. package/dist/chunk-JIGFR7Z3.js +0 -11
  247. package/dist/chunk-MJGK6QTO.js +0 -7
  248. package/dist/chunk-PN5FQVMB.js +0 -7
  249. package/dist/chunk-PUF75SMJ.js +0 -1
  250. package/dist/chunk-QDKAA3HR.js +0 -2
  251. package/dist/chunk-TLMFVEMC.js +0 -9
  252. package/dist/chunk-WRQ4A5QY.js +0 -1
  253. package/dist/chunk-XYBI57KO.js +0 -12
  254. /package/dist/{chunk-ECJKIPWU.js → chunk-3J2PO3KW.js} +0 -0
@@ -1 +1 @@
1
- export{DashboardTemplate as default}from"../chunk-S74LKSUB.js";import"../chunk-AFYLVV74.js";import"../chunk-P3RXXWXN.js";import"../chunk-CKCDGSTC.js";import"../chunk-VWIYC2NB.js";import"../chunk-VFC6QUEN.js";import"../chunk-UYRMW5MO.js";import"../chunk-465RRWBY.js";import"../chunk-3IUPYCW3.js";import"../chunk-CNYAHYE6.js";import"../chunk-TXDA7TTP.js";import"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-MVZRZTQP.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-G4GVLK44.js";import"../chunk-F27JJHNJ.js";import"../chunk-QO5E33DH.js";import"../chunk-C764JODK.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
1
+ export{DashboardTemplate as default}from"../chunk-SOBGCIPF.js";import"../chunk-AFYLVV74.js";import"../chunk-P3RXXWXN.js";import"../chunk-CKCDGSTC.js";import"../chunk-7AZAMDGG.js";import"../chunk-VFC6QUEN.js";import"../chunk-4D66DUU5.js";import"../chunk-465RRWBY.js";import"../chunk-3IUPYCW3.js";import"../chunk-CNYAHYE6.js";import"../chunk-WZ5QSSUM.js";import"../chunk-QO5E33DH.js";import"../chunk-C764JODK.js";import"../chunk-2JWPNR2U.js";import"../chunk-MAFUXCPZ.js";import"../chunk-TZFACUMR.js";import"../chunk-EQZZ4V5X.js";import"../chunk-HXNMRJQ4.js";import"../chunk-UQYNPYF4.js";import"../chunk-SQCUN2DX.js";import"../chunk-S5SRXI4V.js";import"../chunk-Q3IR5SKD.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{DataTablePage as default}from"../chunk-RVRDDTEG.js";import"../chunk-P3RXXWXN.js";import"../chunk-SLU45G5J.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";import"../chunk-2NMW66P5.js";import"../chunk-LXL2UCUR.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-TXDA7TTP.js";import"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-MVZRZTQP.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{DataTablePage as default}from"../chunk-ENDCV7B3.js";import"../chunk-P3RXXWXN.js";import"../chunk-CUKDQPEN.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";import"../chunk-2NMW66P5.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-EQZZ4V5X.js";import"../chunk-HXNMRJQ4.js";import"../chunk-UQYNPYF4.js";import"../chunk-SQCUN2DX.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-LXL2UCUR.js";import"../chunk-S5SRXI4V.js";import"../chunk-Q3IR5SKD.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{EmailTemplate as default}from"../chunk-MNNZGO2E.js";import"../chunk-XCHAU2UN.js";import"../chunk-QWK6DRSN.js";import"../chunk-5QGBVTGS.js";import"../chunk-AFYLVV74.js";import"../chunk-FOFZI62F.js";import"../chunk-UGTRSRIW.js";import"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{EmailTemplate as default}from"../chunk-LAMRQE2P.js";import"../chunk-OUIE2N2Z.js";import"../chunk-QWK6DRSN.js";import"../chunk-U32J7D4Q.js";import"../chunk-AFYLVV74.js";import"../chunk-HS2E7DVI.js";import"../chunk-UGTRSRIW.js";import"../chunk-HXNMRJQ4.js";import"../chunk-UQYNPYF4.js";import"../chunk-SQCUN2DX.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-Q3IR5SKD.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{ErrorBoundary as default}from"../chunk-C6Y7B73Q.js";import"../chunk-ORIXCEKO.js";import"../chunk-KNUR2UEG.js";import"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{ErrorBoundary as default}from"../chunk-XCAO2F3H.js";import"../chunk-ORIXCEKO.js";import"../chunk-KNUR2UEG.js";import"../chunk-HXNMRJQ4.js";import"../chunk-UQYNPYF4.js";import"../chunk-SQCUN2DX.js";import"../chunk-Q3IR5SKD.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{FormLayoutPage as default}from"../chunk-JYIH2EBG.js";import"../chunk-P3RXXWXN.js";import"../chunk-PB7G6CJ7.js";import"../chunk-NI5FXWK5.js";import"../chunk-SLU45G5J.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";import"../chunk-2NMW66P5.js";import"../chunk-6KBDNYRW.js";import"../chunk-CGZBDI6C.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{FormLayoutPage as default}from"../chunk-QEB2UTHO.js";import"../chunk-P3RXXWXN.js";import"../chunk-PB7G6CJ7.js";import"../chunk-NI5FXWK5.js";import"../chunk-CUKDQPEN.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";import"../chunk-2NMW66P5.js";import"../chunk-6KBDNYRW.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-HXNMRJQ4.js";import"../chunk-UQYNPYF4.js";import"../chunk-SQCUN2DX.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-CGZBDI6C.js";import"../chunk-Q3IR5SKD.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{GalleryTemplate as default}from"../chunk-OORL6BIG.js";import"../chunk-3NW5LD7D.js";import"../chunk-FQEALPZJ.js";import"../chunk-P3RXXWXN.js";import"../chunk-JDQGHQ2C.js";import"../chunk-TXDA7TTP.js";import"../chunk-I4VIEGCX.js";import"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-MVZRZTQP.js";import"../chunk-6XBWM453.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ export{GalleryTemplate as default}from"../chunk-EZUQ5NXE.js";import"../chunk-NZQCDFDG.js";import"../chunk-FQEALPZJ.js";import"../chunk-P3RXXWXN.js";import"../chunk-JDQGHQ2C.js";import"../chunk-EQZZ4V5X.js";import"../chunk-HXNMRJQ4.js";import"../chunk-UQYNPYF4.js";import"../chunk-SQCUN2DX.js";import"../chunk-S5SRXI4V.js";import"../chunk-Q3IR5SKD.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-F27JJHNJ.js";import"../chunk-TWVUQUUD.js";import"../chunk-D65T4H6J.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
package/dist/ui/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import"../chunk-NOKZ54GD.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{CheckoutTemplate}from"../chunk-YJXS7BR5.js";export{DashboardTemplate}from"../chunk-S74LKSUB.js";export{DataTablePage}from"../chunk-RVRDDTEG.js";export{EmailTemplate}from"../chunk-MNNZGO2E.js";export{ErrorBoundary}from"../chunk-C6Y7B73Q.js";export{ErrorPage}from"../chunk-ORIXCEKO.js";export{FormLayoutPage}from"../chunk-JYIH2EBG.js";export{GalleryTemplate}from"../chunk-OORL6BIG.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-HV47GP2C.js";export{ChatTemplate}from"../chunk-RXCGE2AY.js";export{TopNav}from"../chunk-2VGQS6CW.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-TGGUYAWA.js";export{Stepper}from"../chunk-CRILBBSU.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-3NW5LD7D.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-JSG2AKCG.js";export{SettingRow}from"../chunk-6V4INP7J.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-XCHAU2UN.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-Y62TTKSY.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-FACWYKL6.js";export{PageHeader}from"../chunk-EN5NXWT6.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-NU5HN3FZ.js";export{ResizeHandle}from"../chunk-5QGBVTGS.js";export{SettingReset}from"../chunk-7VBXIIEC.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-YILGAEW3.js";export{MetricBar}from"../chunk-DQQKG46I.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-IMDGMUE3.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-K4JQ3FQI.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-SDDV3UCN.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-7TC3LJQM.js";export{EditableGrid}from"../chunk-RBBIAIPH.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-N67QX3WW.js";export{GlobalSearch,openGlobalSearch}from"../chunk-5TDQPZDB.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-WYFMSL4Q.js";export{IconRail,IconRailButton}from"../chunk-5WYRAJ5F.js";import"../chunk-FQEALPZJ.js";export{ContainerFillChart}from"../chunk-PCTOL2FX.js";export{CountBadge}from"../chunk-CLTRQ7AQ.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-YSDPFDAG.js";export{Avatar,AvatarGroup}from"../chunk-AFYLVV74.js";export{BudgetBar,budgetState}from"../chunk-UEISJFZH.js";export{Card,StatCard}from"../chunk-P3RXXWXN.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-7TZV6G2F.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-AWKJZSTO.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-XSJHN2GD.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{slugify}from"../chunk-24AL3CDS.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{SplitButton_default as SplitButton}from"../chunk-DESWIPOZ.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-I33SVQ7P.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-5TQLUPZD.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-4EZIWLJJ.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-OBJGUJIE.js";export{WidthsBar}from"../chunk-QHPVAXHR.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-VDUXPMOQ.js";export{Slider,SliderGroup}from"../chunk-DGZAQXTW.js";export{Snippet}from"../chunk-JNQKBN5M.js";export{LinkPicker,TextLinkField}from"../chunk-B23RG53S.js";export{SearchableSelect}from"../chunk-XYBI57KO.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-CUHUZBFH.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-RUGQO7YF.js";import"../chunk-LYHJHUQH.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{EmptyState}from"../chunk-QVZKRROQ.js";export{ImageLightbox,lightboxKind}from"../chunk-VIQ6OME2.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-V6Y4OC6K.js";export{Breadcrumbs}from"../chunk-XYECIBVX.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{mediaLibraryMenu}from"../chunk-MS5APD3V.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-OPN4I565.js";export{DropdownMenu}from"../chunk-PN5FQVMB.js";import"../chunk-TMMNCXQT.js";export{NativeSelect,Select_default as Select}from"../chunk-SLU45G5J.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-3UXXA2CS.js";export{MediaUsedInList}from"../chunk-UDKTAG57.js";export{NumericKeypad}from"../chunk-A42MKJA3.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-GISDIVFK.js";export{PositionInput}from"../chunk-FS6EOU4G.js";export{FormErrorSummary}from"../chunk-SAP4YI2Y.js";export{IconPicker}from"../chunk-GEP4FROW.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{CornersInput}from"../chunk-OP5DOO3K.js";export{DatePicker_default as DatePicker}from"../chunk-77AQNJE2.js";export{DateRangePicker,toISODate}from"../chunk-QRYSL6QU.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-SXNQHIBY.js";export{DisplayChips}from"../chunk-VN4KSRZ5.js";export{FilePicker_default as FilePicker}from"../chunk-AYDW63LV.js";export{AlignmentGrid}from"../chunk-O6JJIR4H.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-WTYQF7XJ.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-ZHAWOZA7.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{Popover}from"../chunk-7JGR7WPD.js";export{InputNumber_default as InputNumber}from"../chunk-5SIOCKCK.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{BrandAssetEditor}from"../chunk-RT4WOEVS.js";export{MediaUploadField}from"../chunk-CXYHFGUY.js";export{ImageFocusPoint}from"../chunk-XQZL6JDD.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{FormField}from"../chunk-6KBDNYRW.js";export{Segmented}from"../chunk-3ELLBQPS.js";import"../chunk-JDQGHQ2C.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar}from"../chunk-JH4ZCPHW.js";export{fromDateKey,toDateKey}from"../chunk-2HMNOLKX.js";export{DataTable}from"../chunk-22RQC4EW.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Kanban}from"../chunk-54NMFQMW.js";export{ListFooter}from"../chunk-4ULRP4Y4.js";export{ListLoadError}from"../chunk-N6CS2FO2.js";export{Pagination}from"../chunk-LXL2UCUR.js";export{WaterfallChart}from"../chunk-NFB7PARJ.js";export{SankeyChart}from"../chunk-TLMFVEMC.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-DYNJ2H6R.js";export{StatTile}from"../chunk-JFV5CQN4.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-6JSXIEH2.js";export{TreemapChart}from"../chunk-MJGK6QTO.js";export{squarify}from"../chunk-46BYGPGD.js";export{HeatmapChart}from"../chunk-JIGFR7Z3.js";export{HistogramChart}from"../chunk-QDKAA3HR.js";export{Meter}from"../chunk-OH5L6HYW.js";export{PieChart}from"../chunk-VWIYC2NB.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-77MOYIQW.js";export{RadialBarChart}from"../chunk-ZQKA2XKH.js";export{RangeChart}from"../chunk-VQCSHJEF.js";export{RankedBars}from"../chunk-SL77N7VT.js";export{ChordChart}from"../chunk-67MQ5S32.js";import"../chunk-TKJBZIHT.js";export{FunnelChart}from"../chunk-2H6YNMBE.js";export{StepChain,StepChainItem}from"../chunk-RDYFZHT3.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-3PR5YMWZ.js";export{Divider}from"../chunk-DFOFEBYX.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{ContextMenu,useContextMenu}from"../chunk-W3OWPBQL.js";export{Banner}from"../chunk-ZGOHRLXG.js";import"../chunk-4UKGVLFP.js";export{Input_default as Input}from"../chunk-MAMWQCJ6.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-4HBSQGRI.js";export{IconButton_default as IconButton}from"../chunk-PUF75SMJ.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{mediaFileName}from"../chunk-Z5A4EY2R.js";export{TransferProgress}from"../chunk-DHIQ46C5.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-JTMEFXRL.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-PW52RXPI.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-GEYM4WN3.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-Y3JW2GW5.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-EJUNGVK2.js";export{ChartBrush}from"../chunk-E6GDAV5R.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{ChartFrame}from"../chunk-VAK5FQXH.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-UYRMW5MO.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-3IUPYCW3.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-QYL26AB4.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-ZDMZM7HD.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-PLK2WHZG.js";export{Dialog}from"../chunk-7INZ7O3A.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{ItemCount}from"../chunk-FOFZI62F.js";import"../chunk-3DVNXNTF.js";import"../chunk-ECJKIPWU.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-7ELJQL7J.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ColoredBadge}from"../chunk-EPY34L26.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{VERSION}from"../chunk-WRQ4A5QY.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-4WEFGKJL.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-TXDA7TTP.js";export{Button_default as Button}from"../chunk-I4VIEGCX.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-34URULVW.js";export{Icon}from"../chunk-2UO47XB4.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-MVZRZTQP.js";export{Tooltip}from"../chunk-6XBWM453.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{BoxPlotChart}from"../chunk-O47HKK6E.js";export{CandlestickChart}from"../chunk-XLWMM53L.js";export{ChartTooltip}from"../chunk-G4GVLK44.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-F27JJHNJ.js";export{CartesianPlot}from"../chunk-QO5E33DH.js";import"../chunk-C764JODK.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ import"../chunk-NOKZ54GD.js";export{ACCENT_ROLES,COLOUR_ROLES,FLAT_STATUS_ROLES,IDENTITY_ROLES,NEUTRAL_ROLES,SCRIM_ROLES,STATUS_GROUPS,STATUS_ROLES}from"../chunk-VVJIKS47.js";export{ELEVATION_LEVELS,RADIUS_ROLES}from"../chunk-4MVRSCQE.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,TYPE_SCALE}from"../chunk-LH7IKIGE.js";export{CheckoutTemplate}from"../chunk-4MJA2SPJ.js";export{DashboardTemplate}from"../chunk-SOBGCIPF.js";export{DataTablePage}from"../chunk-ENDCV7B3.js";export{EmailTemplate}from"../chunk-LAMRQE2P.js";export{ErrorBoundary}from"../chunk-XCAO2F3H.js";export{ErrorPage}from"../chunk-ORIXCEKO.js";export{FormLayoutPage}from"../chunk-QEB2UTHO.js";export{GalleryTemplate}from"../chunk-EZUQ5NXE.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-VHPT7ZS5.js";export{ChatTemplate}from"../chunk-WS7XIJS6.js";export{TopNav}from"../chunk-XTV3CAV7.js";export{Grid,Inline,Stack}from"../chunk-3RPER7VH.js";export{Statistic}from"../chunk-TGGUYAWA.js";export{Stepper}from"../chunk-CRILBBSU.js";export{Tabs,tabButtonId,tabPanelId}from"../chunk-NZQCDFDG.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{TimeAgo}from"../chunk-JSG2AKCG.js";export{SettingRow}from"../chunk-6V4INP7J.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-OUIE2N2Z.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-X2KMUHBB.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-XKJ7GEVA.js";export{PageHeader}from"../chunk-EN5NXWT6.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-WON5GBJY.js";export{ResizeHandle}from"../chunk-U32J7D4Q.js";export{SettingReset}from"../chunk-3PR7FLTZ.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-TXDBOSSB.js";export{MetricBar}from"../chunk-DQQKG46I.js";export{isSeverityTone,severityOf}from"../chunk-TZFNWAED.js";export{MetricBarLegend}from"../chunk-IMDGMUE3.js";import"../chunk-URBCGEXG.js";export{MilestoneTimeline}from"../chunk-2EVTN26H.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-CF7BMDU3.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-7TC3LJQM.js";export{EditableGrid}from"../chunk-HLQVB7FG.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-MMQ6ETRD.js";export{GlobalSearch,openGlobalSearch}from"../chunk-D6OYQM4V.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-N4ZEB4UD.js";export{IconRail,IconRailButton}from"../chunk-AEJYSUVQ.js";import"../chunk-FQEALPZJ.js";export{ContainerFillChart}from"../chunk-PCTOL2FX.js";export{CountBadge}from"../chunk-CLTRQ7AQ.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-EQCFPRKJ.js";export{Avatar,AvatarGroup}from"../chunk-AFYLVV74.js";export{BudgetBar,budgetState}from"../chunk-UEISJFZH.js";export{Card,StatCard}from"../chunk-P3RXXWXN.js";export{ENGLISH,SHELL_LANGUAGE_STORAGE_KEY,ShellLanguageProvider,matchShellLanguage,readSavedShellLanguage,resolveShellLanguage,saveShellLanguage,useShellLanguage}from"../chunk-7TZV6G2F.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-AWKJZSTO.js";export{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-XSJHN2GD.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.js";export{CORNERS,CORNERS_FOR_THEME,applyCorners,applyIconSet,applyThemePrefs,cornersFor,resolveCorners,resolveTheme,useTheme}from"../chunk-CUZQVBPC.js";export{ICON_SET_FOR_THEME,THEME_ICON_SETS,iconSetFor,loadIconSet}from"../chunk-VQCKMT5F.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{WidthsBar}from"../chunk-CCIGAU5Y.js";export{COLUMN_COUNT_MAX,COLUMN_COUNT_WIDTHS,COLUMN_SHARES_EQUAL,COLUMN_SHARE_MIN,columnSharesWidths,resolveColumnShares,resolveColumnWidths}from"../chunk-PLGJOHEG.js";export{Snippet}from"../chunk-YG6Y5X7S.js";export{SplitButton_default as SplitButton}from"../chunk-HXZ5XPBS.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-TIGTIT3L.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-SRWZE3WA.js";export{TEXT_ALIGNS,TEXT_ALIGN_FIT,TEXT_ALIGN_ICONS,textAlignFit,textAlignOptions,textAlignWords}from"../chunk-4EZIWLJJ.js";export{Textarea_default as Textarea}from"../chunk-PB7G6CJ7.js";export{TileButton_default as TileButton}from"../chunk-H2R4SNNO.js";export{TimePicker_default as TimePicker}from"../chunk-OBJGUJIE.js";export{PositionInput}from"../chunk-Q5QS5MFX.js";export{RadioGroup}from"../chunk-32VV2J22.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-H7BKSATJ.js";export{Slider,SliderGroup}from"../chunk-WWLKVGV7.js";export{LinkPicker,TextLinkField}from"../chunk-TNDRHHKN.js";export{SearchableSelect}from"../chunk-F7Z47OIF.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-IDV32UV7.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-G4PGEQOX.js";import"../chunk-QJLBBDX2.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{EmptyState}from"../chunk-QVZKRROQ.js";export{ImageLightbox,lightboxKind}from"../chunk-4V73LGZG.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-5W2OEDUD.js";export{Breadcrumbs}from"../chunk-XYECIBVX.js";export{useGridSelection}from"../chunk-VLKDWKVR.js";export{MARQUEE_IGNORE,marqueeHits,rectsIntersect,useMarquee}from"../chunk-OLFYNMTD.js";export{edgeScrollDelta,getScrollParent,scrollBoundsOf}from"../chunk-LACL4MAR.js";export{mediaLibraryMenu}from"../chunk-MS5APD3V.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-OPN4I565.js";import"../chunk-TMMNCXQT.js";export{DropdownMenu}from"../chunk-YYZ73H64.js";export{NativeSelect,Select_default as Select}from"../chunk-CUKDQPEN.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-ILP7QVW5.js";export{MediaUsedInList}from"../chunk-B4HSNEBK.js";export{NumericKeypad}from"../chunk-MAFSELZK.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-5N5AAYQV.js";export{FilePicker_default as FilePicker}from"../chunk-SOJEQHZ2.js";export{FormErrorSummary}from"../chunk-SAP4YI2Y.js";export{IconPicker}from"../chunk-K7L3ZCPB.js";export{CornersInput}from"../chunk-SDATPJM2.js";export{DatePicker_default as DatePicker}from"../chunk-L2RS2UQM.js";export{DateRangePicker,toISODate}from"../chunk-NVFYLTJ6.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-SXNQHIBY.js";export{DisplayChips}from"../chunk-ZF2MNQXY.js";export{slugify}from"../chunk-24AL3CDS.js";export{escapeHtml}from"../chunk-G6DKCCWH.js";export{addShowWhenFacts,isShown,lazyShowWhenContext,showWhenFactReaders,showWhenFactsContext,showWhenOf,shownForOption,truthy,withRowRules,withRowsShownWhen,withShowWhen,withShowWhenFacts}from"../chunk-HCP7WOAL.js";export{AlignmentGrid}from"../chunk-M5LR7ZZX.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-HYDVHGVT.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-NZGNOMWX.js";export{Popover}from"../chunk-G4JTO5PB.js";export{InputNumber_default as InputNumber}from"../chunk-BE777IO7.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{BrandAssetEditor}from"../chunk-HJ2BDUO6.js";export{MediaUploadField}from"../chunk-RBEI4CKX.js";export{FormField}from"../chunk-6KBDNYRW.js";export{ImageFocusPoint}from"../chunk-XQZL6JDD.js";export{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{Segmented}from"../chunk-5LCDCO46.js";import"../chunk-JDQGHQ2C.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar}from"../chunk-JH4ZCPHW.js";export{fromDateKey,toDateKey}from"../chunk-2HMNOLKX.js";export{StatTile}from"../chunk-JFV5CQN4.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-EDMDKQNO.js";export{TreemapChart}from"../chunk-UXPBVRSE.js";export{squarify}from"../chunk-46BYGPGD.js";export{WaterfallChart}from"../chunk-FEATDGFD.js";export{Meter}from"../chunk-OH5L6HYW.js";export{PieChart}from"../chunk-7AZAMDGG.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-6ACS4S4P.js";export{RadialBarChart}from"../chunk-JFH5HW2G.js";export{RangeChart}from"../chunk-HLVOHOBC.js";export{RankedBars}from"../chunk-SL77N7VT.js";export{SankeyChart}from"../chunk-NXVFY22L.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-KLBJ646Z.js";export{ChordChart}from"../chunk-YUECA3XB.js";import"../chunk-ZMRGHVKS.js";export{FunnelChart}from"../chunk-IHFZ7OXO.js";export{HeatmapChart}from"../chunk-XPTOKPUM.js";export{HistogramChart}from"../chunk-7RPYVQEV.js";export{ListLoadError}from"../chunk-3TKMH5VR.js";export{BoxPlotChart}from"../chunk-QLVJ5W4G.js";export{CandlestickChart}from"../chunk-7X4QNWA7.js";export{StepChain,StepChainItem}from"../chunk-RDYFZHT3.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-IX7QXMNJ.js";export{Divider}from"../chunk-DFOFEBYX.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{ContextMenu,useContextMenu}from"../chunk-GD7ILVPF.js";export{Banner}from"../chunk-ZGOHRLXG.js";import"../chunk-BZUA5F33.js";export{Input_default as Input}from"../chunk-MAMWQCJ6.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-NRI26RYC.js";export{IconButton_default as IconButton}from"../chunk-FX6DBXXD.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{mediaFileName}from"../chunk-UG6RI525.js";export{TransferProgress}from"../chunk-TLWGOQI3.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-JTMEFXRL.js";export{SpecChart}from"../chunk-NYEMGKAE.js";export{currencyDecimals,currencySymbol,formatBytes,formatMoney,setCurrencyFormats,timeAgo}from"../chunk-GEYM4WN3.js";export{DATE_FORMAT_OPTIONS,TZ_AUTO,firstDayOfWeek,formatDate,formatDateTime,formatTime,getUserDateFormat,getUserTimezone,setUserDateFormat,setUserTimezone,syncTimezoneFromProfile}from"../chunk-Y3JW2GW5.js";export{EMPTY_VALUE}from"../chunk-36BRD5J3.js";import"../chunk-LF27WIN2.js";export{TimeSeriesChart}from"../chunk-4Q25UHWB.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{ChartFrame}from"../chunk-VAK5FQXH.js";export{arcPath,areaBetween,areaFrom,bumpPath,curvePath,linearPath,monotonePath,polygonPoints,splinePath,stepPath}from"../chunk-VFC6QUEN.js";export{ColumnChart}from"../chunk-4D66DUU5.js";export{ChartDefs,MOTION,dashFor,fillFor,fillId,glowId,groundId,maskId,stagger}from"../chunk-465RRWBY.js";export{ChartSkeleton}from"../chunk-3IUPYCW3.js";export{ChartHighlightProvider,autoHighlightIndex,highlightOpacity,useHighlight}from"../chunk-CNYAHYE6.js";export{ChartTooltip}from"../chunk-WZ5QSSUM.js";export{CartesianPlot}from"../chunk-QO5E33DH.js";import"../chunk-C764JODK.js";export{angleScale,bandScale,binValues,ladderScale,linearScale,logScale,niceAxis,niceMax,radiusScale}from"../chunk-2JWPNR2U.js";export{usePlotWidth}from"../chunk-MAFUXCPZ.js";export{ChartBrush}from"../chunk-E6GDAV5R.js";export{ChartDot}from"../chunk-CK2YOGUS.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{CONTROL_HEIGHTS,ROW_HEIGHTS,SPACING_ROLES,SPACING_SCALE,isSpacingStep}from"../chunk-AW7TOB6N.js";import"../chunk-KNUR2UEG.js";export{NEXT_CHUNK_PATH_PREFIX,STALE_CHUNK_RELOAD_COOLDOWN_MS,STALE_CHUNK_RELOAD_KEY,VITE_PRELOAD_ERROR_EVENT,installStaleChunkReload,isStaleChunkError}from"../chunk-JDCM2VHG.js";export{Result}from"../chunk-QYL26AB4.js";export{ALT,ALT_SHIFT_D,ALT_SHIFT_E,ALT_SHIFT_N,CMD_A,CMD_DOT,CMD_ENTER,CMD_K,CMD_S,ENTER,Kbd,MOD,SHIFT,isMac}from"../chunk-ZDMZM7HD.js";import"../chunk-5A7MWTXX.js";export{ConfirmProvider,confirm,confirmDestructive,prompt,useConfirm}from"../chunk-XQMPLXGG.js";export{Dialog}from"../chunk-GLBLKHYA.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{ItemCount}from"../chunk-HS2E7DVI.js";import"../chunk-3DVNXNTF.js";import"../chunk-3J2PO3KW.js";import"../chunk-VWGWZY7A.js";import"../chunk-7QSDPSXP.js";export{UNDOABLE_MS,toast_default as toast}from"../chunk-7ELJQL7J.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{ColoredBadge}from"../chunk-CNUHLJYD.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{VERSION}from"../chunk-RAAH4TQU.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-3VLG6LR3.js";import"../chunk-URHGHXDN.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-EQZZ4V5X.js";export{Button_default as Button}from"../chunk-HXNMRJQ4.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-SQCUN2DX.js";export{Icon}from"../chunk-2UO47XB4.js";export{activeIconSet,iconSets,iconsVersion,registerIconSet,registerIcons,resolveIcon,setDefaultIconSet,setIconSet,subscribeIcons}from"../chunk-J75ZT2JQ.js";export{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.js";export{DataTable}from"../chunk-DOC52JBV.js";export{Checkbox_default as Checkbox}from"../chunk-CGZBDI6C.js";export{Pagination}from"../chunk-LXL2UCUR.js";import"../chunk-S5SRXI4V.js";export{Tooltip}from"../chunk-Q3IR5SKD.js";export{OVERLAY_OPEN_EVENT,dismissPopups}from"../chunk-PGN5ME7B.js";export{Z_LAYERS}from"../chunk-62LW225J.js";export{MENU_MAX_HEIGHT,POPUP_MAX_WIDTH,placeMenu,popupBounds,useDropdownPosition}from"../chunk-GLUJS42B.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-F27JJHNJ.js";export{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{Kanban}from"../chunk-UABVKJK7.js";import"../chunk-D65T4H6J.js";export{ListFooter}from"../chunk-4ULRP4Y4.js";export{LoadingSpinner,SpinnerRing}from"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export{APP_VERSION,VERSION}from"./chunk-WRQ4A5QY.js";
1
+ export{APP_VERSION,VERSION}from"./chunk-RAAH4TQU.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-shell",
3
- "version": "10.17.0",
3
+ "version": "10.17.1",
4
4
  "description": "Desktop-style React UI shell — windows, taskbar, start menu, sticky notes, frosted glass theming, and bundled apps.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Efficient Pty Ltd",
@@ -1,29 +0,0 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-DCRLJMQ6.js";import{useWidgetSettings as n}from"./chunk-2YSGXZOL.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-QYL26AB4.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-2E2SUEEE.js";import"./chunk-PLK2WHZG.js";import"./chunk-7INZ7O3A.js";import"./chunk-KC3EX26K.js";import"./chunk-FOFZI62F.js";import"./chunk-3DVNXNTF.js";import"./chunk-ECJKIPWU.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-UGTRSRIW.js";import"./chunk-EPY34L26.js";import"./chunk-CDAJKLGL.js";import"./chunk-4WEFGKJL.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-TXDA7TTP.js";import"./chunk-I4VIEGCX.js";import"./chunk-UQYNPYF4.js";import"./chunk-34URULVW.js";import{Icon as r}from"./chunk-2UO47XB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-MVZRZTQP.js";import"./chunk-6XBWM453.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-F27JJHNJ.js";import"./chunk-TWVUQUUD.js";import"./chunk-GDQJBQ5B.js";import"./chunk-C3QOHMR6.js";import{useState as c,useRef as i,useCallback as l,useEffect as o}from"react";import{jsxs as s,Fragment as a,jsx as u}from"react/jsx-runtime";var h="calc_appearance";function m(){const[m,k]=c("0"),[p,d]=c(null),[b,g]=c(null),[j,N]=c(!1),[y,x]=c(""),[f,C]=c([]),[v,$]=c(!1),[E,W]=c(()=>e(h)),[T,J]=c(!1),[D,U]=c(E),w=i(null);n(l(()=>{U({...E}),J(!0)},[E]));const F=l(e=>{x(""),k(t=>j||"0"===t?(N(!1),"."===e?"0.":e):"."===e&&t.includes(".")?t:t+e)},[j]),L=l(()=>{k("0"),d(null),g(null),N(!1)},[]),S=l((e,t,n)=>{switch(n){case"+":return e+t;case"-":return e-t;case"×":return e*t;case"÷":return 0===t?0:e/t;default:return t}},[]),G=l(e=>{const t=parseFloat(m);if(null!==p&&b&&!j){const e=S(p,t,b);k(String(e)),d(e),C(n=>[`${p} ${b} ${t} = ${e}`,...n].slice(0,20))}else d(t);g(e),N(!0)},[m,p,b,j,S]),A=l(()=>{if(null===p||!b)return;const e=parseFloat(m),t=S(p,e,b),n=`${p} ${b} ${e} =`;C(e=>[`${n} ${t}`,...e].slice(0,20)),x(n),k(String(t)),d(null),g(null),N(!0)},[m,p,b,S]),M=l(()=>{k(e=>String(parseFloat(e)/100))},[]),Q=l(()=>{k(e=>e.startsWith("-")?e.slice(1):"0"===e?e:"-"+e)},[]);o(()=>{const e=e=>{const t=e.target.tagName;"INPUT"!==t&&"TEXTAREA"!==t&&"SELECT"!==t&&(e.key>="0"&&e.key<="9"?F(e.key):"."===e.key?F("."):"+"===e.key?G("+"):"-"===e.key?G("-"):"*"===e.key?G("×"):"/"===e.key?(e.preventDefault(),G("÷")):"Enter"===e.key||"="===e.key?("Enter"===e.key&&e.target instanceof Node&&w.current?.contains(e.target)&&e.preventDefault(),A()):"Escape"===e.key?L():"Backspace"===e.key?k(e=>e.length>1?e.slice(0,-1):"0"):"%"===e.key&&M())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[F,G,A,L,M]);const X="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",Z=`${X} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,B=`${X} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,P=`${X} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,R=`${X} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
2
- return s(a,{children:[
3
- /* @__PURE__ */s("div",{ref:w,className:"flex flex-col h-full",style:{opacity:E.activeOpacity/100,backdropFilter:E.activeBlur>0?`blur(${E.activeBlur}px)`:void 0},children:[
4
- /* @__PURE__ */s("div",{className:"bg-slate-200 rounded-t-lg px-4 py-2 group/display relative flex flex-col justify-end min-h-[120px] border-b border-slate-300",children:[
5
- /* @__PURE__ */u("div",{className:"flex flex-col justify-end flex-1 overflow-hidden",children:f.slice(0,3).reverse().map((e,t)=>/* @__PURE__ */u("div",{className:"text-2xs text-slate-400 text-right font-mono truncate",children:e},t))}),(y||b&&null!==p)&&/* @__PURE__ */u("div",{className:"text-base text-slate-600 text-right font-mono",children:y||`${p} ${b} ${j?"":m}`}),
6
- /* @__PURE__ */s("div",{className:"flex items-center gap-2",children:[
7
- /* @__PURE__ */u("button",{onClick:()=>{navigator.clipboard.writeText(m),$(!0),setTimeout(()=>$(!1),1200)},title:"Copy result",className:"shrink-0 text-slate-300 hover:text-slate-500 transition-colors opacity-0 group-hover/display:opacity-100",children:/* @__PURE__ */u(r,v?{name:"check",className:"h-5 w-5 text-green-500",strokeWidth:2}:{name:"copy",className:"h-5 w-5",strokeWidth:2})}),
8
- /* @__PURE__ */u("div",{className:"text-right text-4xl font-mono font-bold text-slate-800 truncate flex-1",children:(e=>{const t=parseFloat(e);return isNaN(t)||e.endsWith(".")||e.endsWith(".0")||Math.abs(t)<1e15&&e.length<16?e:t.toExponential(6)})(m)})]})]}),
9
- /* @__PURE__ */s("div",{className:"grid grid-cols-4 grid-rows-5 gap-2 flex-1 min-h-0 p-2",children:[
10
- /* @__PURE__ */u("button",{onClick:L,className:P,children:"AC"}),
11
- /* @__PURE__ */u("button",{onClick:Q,className:P,children:"+/−"}),
12
- /* @__PURE__ */u("button",{onClick:M,className:P,children:"%"}),
13
- /* @__PURE__ */u("button",{onClick:()=>G("÷"),className:`${B} ${"÷"===b?"ring-2 ring-blue-400":""}`,children:"÷"}),
14
- /* @__PURE__ */u("button",{onClick:()=>F("7"),className:Z,children:"7"}),
15
- /* @__PURE__ */u("button",{onClick:()=>F("8"),className:Z,children:"8"}),
16
- /* @__PURE__ */u("button",{onClick:()=>F("9"),className:Z,children:"9"}),
17
- /* @__PURE__ */u("button",{onClick:()=>G("×"),className:`${B} ${"×"===b?"ring-2 ring-blue-400":""}`,children:"×"}),
18
- /* @__PURE__ */u("button",{onClick:()=>F("4"),className:Z,children:"4"}),
19
- /* @__PURE__ */u("button",{onClick:()=>F("5"),className:Z,children:"5"}),
20
- /* @__PURE__ */u("button",{onClick:()=>F("6"),className:Z,children:"6"}),
21
- /* @__PURE__ */u("button",{onClick:()=>G("-"),className:`${B} ${"-"===b?"ring-2 ring-blue-400":""}`,children:"−"}),
22
- /* @__PURE__ */u("button",{onClick:()=>F("1"),className:Z,children:"1"}),
23
- /* @__PURE__ */u("button",{onClick:()=>F("2"),className:Z,children:"2"}),
24
- /* @__PURE__ */u("button",{onClick:()=>F("3"),className:Z,children:"3"}),
25
- /* @__PURE__ */u("button",{onClick:()=>G("+"),className:`${B} ${"+"===b?"ring-2 ring-blue-400":""}`,children:"+"}),
26
- /* @__PURE__ */u("button",{onClick:()=>F("0"),className:`${Z} col-span-2`,children:"0"}),
27
- /* @__PURE__ */u("button",{onClick:()=>F("."),className:Z,children:"."}),
28
- /* @__PURE__ */u("button",{onClick:A,className:R,children:"="})]})]}),
29
- /* @__PURE__ */u(t,{open:T,onClose:()=>J(!1),title:"Calculator Settings",appearance:D,onAppearanceChange:U,onSave:()=>{W(D),localStorage.setItem(h,JSON.stringify(D)),J(!1)}})]})}export{m as default};
@@ -1,88 +0,0 @@
1
- import{openPreviewFile as e}from"./chunk-EOWUUOVE.js";import{SidebarLayout as t}from"./chunk-XCHAU2UN.js";import"./chunk-QWK6DRSN.js";import"./chunk-5QGBVTGS.js";import{Breadcrumbs as a}from"./chunk-XYECIBVX.js";import{formatBytes as n}from"./chunk-GEYM4WN3.js";import"./chunk-Y3JW2GW5.js";import"./chunk-36BRD5J3.js";import"./chunk-LF27WIN2.js";import{getFilesDemoTree as r}from"./chunk-U2RFKQVA.js";import{AboutApp as i}from"./chunk-HJW67KA7.js";import{peekFilesViewRequest as s,consumeFilesViewRequest as o,FILES_SHOW_TRASH_EVENT as l,FILES_OPEN_DESKTOP_FOLDER_EVENT as c,subscribeDesktopFolders as d,getDesktopFoldersSnapshot as m,FolderGlyph as h,DesktopItemMiniIcon as p,desktopItemTypeLabel as u}from"./chunk-E5QPXEKN.js";import"./chunk-ESL5TDNA.js";import"./chunk-VTVSMRFX.js";import{useWindowManager as f,WindowTitle as x}from"./chunk-2YSGXZOL.js";import"./chunk-CY5N5OA3.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-QYL26AB4.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-2E2SUEEE.js";import{confirm as g,prompt as k}from"./chunk-PLK2WHZG.js";import"./chunk-7INZ7O3A.js";import"./chunk-KC3EX26K.js";import{ItemCount as b}from"./chunk-FOFZI62F.js";import"./chunk-3DVNXNTF.js";import"./chunk-ECJKIPWU.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import{toast_default as y}from"./chunk-7ELJQL7J.js";import"./chunk-UGTRSRIW.js";import"./chunk-EPY34L26.js";import"./chunk-CDAJKLGL.js";import"./chunk-WRQ4A5QY.js";import"./chunk-4WEFGKJL.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-TXDA7TTP.js";import"./chunk-I4VIEGCX.js";import"./chunk-UQYNPYF4.js";import"./chunk-34URULVW.js";import{Icon as N}from"./chunk-2UO47XB4.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as w}from"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import{TH_ONE_LINE as v}from"./chunk-MVZRZTQP.js";import"./chunk-6XBWM453.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-F27JJHNJ.js";import"./chunk-TWVUQUUD.js";import"./chunk-GDQJBQ5B.js";import"./chunk-C3QOHMR6.js";import{useState as j,useEffect as $,useSyncExternalStore as C,useRef as E,useCallback as L}from"react";import{jsxs as D,jsx as T,Fragment as R}from"react/jsx-runtime";var W="undefined"!=typeof window&&window.__REACT_OS_SHELL_FILE_SERVER__||"http://localhost:4000",U={pdf:"pdf",dxf:"dxf",csv:"csv",jpg:"image",jpeg:"image",png:"image",gif:"image",webp:"image",svg:"image",avif:"image",bmp:"image",stp:"3d",step:"3d",stl:"3d",obj:"3d",gltf:"3d",glb:"3d","3mf":"3d",iges:"3d",igs:"3d",ply:"3d",fbx:"3d"};function P(e,t){return"/"===e||""===e?"/"+t:e.replace(/\/$/,"")+"/"+t}function F(e){if(!e)return"—";try{const t=new Date(e);return isNaN(t.getTime())?"—":t.toLocaleString(void 0,{dateStyle:"short",timeStyle:"short"})}catch{return e}}function S(){const S=W.replace(/\/$/,""),A=null!==r(),[I,M]=j("/"),[O,J]=j([]),[V,Q]=j([]),[B,G]=j(null),[K,X]=j(!0),[H,Z]=j(!1),[z,Y]=j(null),[_,q]=j(!1),[ee,te]=j(()=>{const e=s();return"trash"===e?"trash":e?{desktopFolderId:e.folderId}:"files"});$(()=>{o()},[]);const[ae,ne]=j([]);$(()=>{const e=()=>{o(),te("trash")},t=e=>{o();const t=e.detail?.folderId;t&&te({desktopFolderId:t})};return window.addEventListener(l,e),window.addEventListener(c,t),()=>{window.removeEventListener(l,e),window.removeEventListener(c,t)}},[]);const re=C(d,m,m),ie="object"==typeof ee?ee.desktopFolderId:null,se=ie?re?.folders.find(e=>e.id===ie)??null:null,oe=ie&&re?.itemsByFolder[ie]||[];$(()=>{ie&&re&&!re.folders.some(e=>e.id===ie)&&te("files")},[ie,re]);const le=E(0),ce=E(null),{openPage:de,openEntity:me}=f(),he=t=>{"preview-file"===t.entityType&&t.filePath&&t.fileKind?e({filePath:t.filePath,filename:t.label,kind:t.fileKind,onStaged:e=>de(e)}):"page"===t.entityType?de(t.entityId):me(t.entityType,t.entityId,null,t.label)},pe=L((e,t={})=>fetch(e,{...t,credentials:"include"}),[]),ue=L(async()=>{try{const e=await pe(`${S}/api/quota`);if(e.ok){const t=await e.json();Y({used:t.used,limit:t.limit})}}catch{}},[pe,S]),fe=L(async e=>{if(G(null),A){const t=function(e){const t=r();if(!t)return[];let a=t;for(const t of e.split("/").filter(Boolean)){const e=a.find(e=>"folder"===e.kind&&e.name===t);if(!e||!e.children)return[];a=e.children}return a.map(e=>({name:e.name,kind:e.kind,size:e.size??0,modifiedAt:e.modifiedAt??""}))}(e);return J(t),M(e),Z(!1),X(!1),void("/"===e&&Q(t.filter(e=>"folder"===e.kind).map(e=>e.name)))}X(!0);try{const t=await pe(`${S}/api/files?path=${encodeURIComponent(e)}`);if(!t.ok){const e=await t.json().catch(()=>({}));return void y.error(e.error||`Failed to list (${t.status})`)}const a=await t.json(),n=a.entries||[];J(n),M(a.path||e),Z(!1),"/"===(a.path||e)&&Q(n.filter(e=>"folder"===e.kind).map(e=>e.name))}catch(e){Z(!0)}finally{X(!1)}ue()},[pe,S,ue,A]),xe=L(async()=>{if(A)return ne([]),void X(!1);X(!0),G(null);try{const e=await pe(`${S}/api/trash`);if(!e.ok){const t=await e.json().catch(()=>({}));return void y.error(t.error||`Failed to list trash (${e.status})`)}const t=await e.json();ne(t.entries||[]),Z(!1)}catch{Z(!0)}finally{X(!1)}ue()},[pe,S,ue,A]);$(()=>{"files"===ee?fe(I):"trash"===ee&&xe()},[I,ee]);const ge=async e=>{const t=P(I,e.name);try{const a=await pe(`${S}/api/file?path=${encodeURIComponent(t)}`);if(!a.ok)return void y.error(`Download failed (${a.status})`);const n=await a.blob(),r=URL.createObjectURL(n),i=document.createElement("a");i.href=r,i.download=e.name,i.click(),setTimeout(()=>URL.revokeObjectURL(r),1e3)}catch(e){y.error(e?.message||"Download failed")}},ke=async e=>{const t=Array.from(e);for(const e of t){const t=new FormData;t.append("file",e);try{const a=await pe(`${S}/api/upload?path=${encodeURIComponent(I)}`,{method:"POST",body:t});if(!a.ok){const t=await a.json().catch(()=>({}));if(413===a.status){const a=Math.max(0,(t.limit||0)-(t.used||0));y.error(`Quota exceeded — ${n(a)} free, ${e.name} is ${n(t.attempted||e.size)}`)}else y.error(`Upload ${e.name}: ${t.error||a.status}`)}}catch(t){y.error(`Upload ${e.name}: ${t?.message||"failed"}`)}}fe(I)},be=()=>{le.current=0,q(!1)};if($(()=>{const e=()=>be();return window.addEventListener("dragend",e),window.addEventListener("drop",e),()=>{window.removeEventListener("dragend",e),window.removeEventListener("drop",e)}},[]),H)/* @__PURE__ */
2
- return D("div",{className:"flex flex-col h-full bg-white",children:[
3
- /* @__PURE__ */T(x,{title:"Files - offline"}),
4
- /* @__PURE__ */T("div",{className:"flex-1 flex items-center justify-center p-8 text-center",children:/* @__PURE__ */D("div",{className:"max-w-md",children:[
5
- /* @__PURE__ */T(N,{name:"close-circle",className:"h-12 w-12 mx-auto text-gray-300 mb-3",strokeWidth:1.4}),
6
- /* @__PURE__ */T("h3",{className:"text-base font-semibold text-gray-800 mb-1",children:"Can't reach the file server"}),
7
- /* @__PURE__ */D("p",{className:"text-sm text-gray-500 mb-3",children:["No response from ",
8
- /* @__PURE__ */T("span",{className:"font-mono",children:S}),". Make sure the server is running — see ",
9
- /* @__PURE__ */T("span",{className:"font-mono",children:"examples/file-server/README.md"}),"."]}),
10
- /* @__PURE__ */T("button",{onClick:()=>fe(I),className:"px-3 h-8 text-sm bg-blue-500 text-on-accent rounded hover:bg-blue-600",children:"Retry"})]})})]});const ye="/"===I?[]:I.split("/").filter(Boolean),Ne=z&&z.limit>0?Math.min(100,Math.round(z.used/z.limit*100)):0,we=Ne>90?"bg-red-500":Ne>75?"bg-amber-500":"bg-blue-500",ve=[{label:"My files",onClick:()=>M("/")},...ye.map((e,t)=>({label:e,onClick:()=>M("/"+ye.slice(0,t+1).join("/"))}))],je=e=>"flex w-full items-center gap-2 rounded-md px-3 min-h-(--row-height-menu) py-2 text-left text-sm transition-colors "+(e?"bg-blue-50 font-medium text-blue-700":"text-gray-700 hover:bg-gray-100"),$e=e=>/* @__PURE__ */T("svg",{className:"h-4 w-4 shrink-0 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.6,children:/* @__PURE__ */T("path",{strokeLinecap:"round",strokeLinejoin:"round",d:e})}),Ce=/* @__PURE__ */D("nav",{className:"p-2",children:[
11
- /* @__PURE__ */T("div",{className:"px-2 py-2 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:"Locations"}),
12
- /* @__PURE__ */D("button",{onClick:()=>{te("files"),M("/")},className:je("files"===ee&&"/"===I),children:[$e("M2.25 12l8.954-8.955a1.5 1.5 0 012.122 0L21.75 12M4.5 9.75v9.75a.75.75 0 00.75.75H9V15a.75.75 0 01.75-.75h4.5A.75.75 0 0115 15v5.25h3.75a.75.75 0 00.75-.75V9.75"),"My files"]}),V.map(e=>/* @__PURE__ */D("button",{onClick:()=>{te("files"),M("/"+e)},className:je("files"===ee&&I==="/"+e),children:[$e("M2.25 12.75V12A2.25 2.25 0 014.5 9.75h15A2.25 2.25 0 0121.75 12v.75m-8.69-6.44l-2.12-2.12a1.5 1.5 0 00-1.061-.44H4.5A2.25 2.25 0 002.25 6v12a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9a2.25 2.25 0 00-2.25-2.25h-5.379a1.5 1.5 0 01-1.06-.44z"),
13
- /* @__PURE__ */T("span",{className:"truncate",children:e})]},e)),!A&&/* @__PURE__ */D("button",{onClick:()=>te("trash"),className:je("trash"===ee),children:[$e("M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79"),"Trash"]}),re&&re.folders.length>0&&/* @__PURE__ */D(R,{children:[
14
- /* @__PURE__ */T("div",{className:"px-2 pt-3 pb-2 text-2xs font-semibold uppercase tracking-wide text-ink-faintest",children:"Desktop"}),re.folders.map(e=>/* @__PURE__ */D("button",{onClick:()=>te({desktopFolderId:e.id}),className:je(ie===e.id),children:[
15
- /* @__PURE__ */T(h,{className:"h-4 w-4 shrink-0 text-amber-500"}),
16
- /* @__PURE__ */T("span",{className:"truncate",children:e.name}),
17
- /* @__PURE__ */T(b,{count:e.itemCount,active:ie===e.id,className:"ml-auto"})]},e.id))]})]});/* @__PURE__ */
18
- return D("div",{className:"relative flex flex-col h-full bg-white",onDragEnter:e=>{A||"object"==typeof ee||e.dataTransfer?.types?.includes?.("Files")&&(e.preventDefault(),le.current++,_||q(!0))},onDragOver:e=>{e.dataTransfer?.types?.includes?.("Files")&&e.preventDefault()},onDragLeave:()=>{le.current>0&&le.current--,0===le.current&&q(!1)},onDrop:e=>{e.preventDefault(),be(),A||"object"==typeof ee||e.dataTransfer.files?.length&&ke(e.dataTransfer.files)},children:[
19
- /* @__PURE__ */T(x,{title:se?`Files - ${se.name}`:"Files"+("/"===I?"":" - "+I)}),
20
- /* @__PURE__ */T(i,{app:"files"}),
21
- /* @__PURE__ */T("input",{ref:ce,type:"file",multiple:!0,className:"hidden",onChange:e=>{e.target.files?.length&&ke(e.target.files),ce.current&&(ce.current.value="")}}),
22
- /* @__PURE__ */T("div",{className:"flex-1 min-h-0",children:/* @__PURE__ */T(t,{sidebar:Ce,storageKey:"files.sidebarWidth",defaultWidth:200,minWidth:150,maxWidth:320,children:/* @__PURE__ */D("div",{className:"flex h-full min-w-0 flex-col",children:[
23
- /* @__PURE__ */D("div",{className:"flex items-center gap-1 px-2 py-2 border-b border-line bg-surface-sunken shrink-0 text-xs",children:[/* @__PURE__ */D(R,"files"===ee?{children:[
24
- /* @__PURE__ */T("button",{onClick:()=>M(function(e){if("/"===e||""===e)return"/";const t=e.replace(/\/$/,""),a=t.lastIndexOf("/");return a<=0?"/":t.slice(0,a)}(I)),disabled:"/"===I,className:"px-2 py-1 rounded hover:bg-gray-200 disabled:opacity-30 text-gray-600",title:"Parent folder",children:/* @__PURE__ */T(N,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
25
- /* @__PURE__ */T("div",{className:"flex-1 min-w-0",children:/* @__PURE__ */T(a,{items:ve,maxItems:5})}),
26
- /* @__PURE__ */T("button",{onClick:()=>fe(I),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Refresh",children:/* @__PURE__ */T(N,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),!A&&/* @__PURE__ */D(R,{children:[
27
- /* @__PURE__ */D("button",{onClick:()=>te("trash"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600 flex items-center gap-1",title:"Open trash",children:[
28
- /* @__PURE__ */T(N,{name:"trash",className:"h-3.5 w-3.5",strokeWidth:1.5}),"Trash"]}),
29
- /* @__PURE__ */D("button",{onClick:async()=>{const e=await k({title:"New folder",placeholder:"Folder name",confirmLabel:"Create"});if(!e)return;if(/[\\/]/.test(e))return void y.error("Folder names cannot contain slashes");const t=P(I,e),a=await pe(`${S}/api/folder`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t})});if(!a.ok){const e=await a.json().catch(()=>({}));return void y.error(e.error||`Create folder failed (${a.status})`)}fe(I)},className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600 flex items-center gap-1",children:[
30
- /* @__PURE__ */T(N,{name:"folder-plus",className:"h-3.5 w-3.5",strokeWidth:1.5}),"New Folder"]}),
31
- /* @__PURE__ */D("button",{onClick:()=>ce.current?.click(),className:"px-2 py-1 rounded bg-blue-500 text-white hover:bg-blue-600 flex items-center gap-1",children:[
32
- /* @__PURE__ */T(N,{name:"upload",className:"h-3.5 w-3.5",strokeWidth:1.8}),"Upload"]})]})]}:"trash"===ee?{children:[
33
- /* @__PURE__ */T("button",{onClick:()=>te("files"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Back to files",children:/* @__PURE__ */T(N,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
34
- /* @__PURE__ */T("span",{className:"flex-1 text-gray-700 font-medium px-2",children:"Trash"}),
35
- /* @__PURE__ */T("button",{onClick:xe,className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Refresh",children:/* @__PURE__ */T(N,{name:"refresh",className:"h-3.5 w-3.5",strokeWidth:1.8})}),
36
- /* @__PURE__ */T("button",{onClick:async()=>{if(0===ae.length)return;if(!await g({title:"Empty trash",message:`${ae.length} item${1===ae.length?"":"s"} will be permanently removed. This can't be undone.`,confirmLabel:"Empty trash",variant:"danger"}))return;const e=await pe(`${S}/api/trash`,{method:"DELETE"});if(!e.ok){const t=await e.json().catch(()=>({}));return void y.error(t.error||`Empty trash failed (${e.status})`)}xe()},disabled:0===ae.length,className:"px-2 py-1 rounded text-red-600 hover:bg-red-50 disabled:opacity-30 flex items-center gap-1",children:"Empty trash"})]}:{children:[
37
- /* @__PURE__ */T("button",{onClick:()=>te("files"),className:"px-2 py-1 rounded hover:bg-gray-200 text-gray-600",title:"Back to files",children:/* @__PURE__ */T(N,{name:"arrow-left",className:"h-3.5 w-3.5",strokeWidth:2})}),
38
- /* @__PURE__ */T(h,{className:"h-4 w-4 text-amber-500 ml-1"}),
39
- /* @__PURE__ */T("span",{className:"flex-1 text-gray-700 font-medium px-1 truncate",children:se?.name??"Desktop folder"}),
40
- /* @__PURE__ */T("span",{className:"text-2xs text-ink-faintest px-2",children:"Desktop shortcuts"})]}),z&&/* @__PURE__ */D(R,{children:[
41
- /* @__PURE__ */T("div",{className:"h-4 w-px bg-gray-300 mx-1"}),
42
- /* @__PURE__ */D("div",{className:"flex items-center gap-2",title:`${n(z.used)} of ${n(z.limit)} used`,children:[
43
- /* @__PURE__ */T("div",{className:"w-20 h-1.5 rounded-full bg-gray-200 overflow-hidden",children:/* @__PURE__ */T("div",{className:`h-full ${we} transition-all`,style:{width:`${Ne}%`}})}),
44
- /* @__PURE__ */D("span",{className:"text-2xs text-ink-faint tabular-nums whitespace-nowrap",children:[n(z.used)," / ",n(z.limit)]})]})]})]}),
45
- /* @__PURE__ */T("div",{className:"flex-1 overflow-auto",children:"object"==typeof ee?0===oe.length?/* @__PURE__ */T("div",{className:"p-10 text-center text-sm text-gray-400",children:"This desktop folder is empty. Drag shortcuts onto it on the desktop."}):/* @__PURE__ */D("table",{className:"w-full text-sm",children:[
46
- /* @__PURE__ */T("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */D("tr",{children:[
47
- /* @__PURE__ */T("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Name"}),
48
- /* @__PURE__ */T("th",{className:`${v} text-left font-medium px-3 h-8 w-28`,children:"Type"}),
49
- /* @__PURE__ */T("th",{className:`${v} w-56`})]})}),
50
- /* @__PURE__ */T("tbody",{children:oe.map(e=>{const t=`${e.entityType}|${e.entityId}`;/* @__PURE__ */
51
- return D("tr",{onClick:()=>G(t),onDoubleClick:()=>he(e),className:"cursor-default border-b border-gray-100 "+(B===t?"bg-blue-50":"hover:bg-gray-50"),children:[
52
- /* @__PURE__ */D("td",{className:"px-3 h-8 flex items-center gap-2",children:[
53
- /* @__PURE__ */T(p,{item:e}),
54
- /* @__PURE__ */T("span",{className:"truncate",title:e.label,children:e.label})]}),
55
- /* @__PURE__ */T("td",{className:"px-3 h-8 text-xs text-ink-faint",children:u(e)}),
56
- /* @__PURE__ */D("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
57
- /* @__PURE__ */T("button",{onClick:t=>{t.stopPropagation(),he(e)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-blue-600 text-2xs",children:"Open"}),
58
- /* @__PURE__ */T("button",{onClick:t=>{t.stopPropagation(),re?.moveToDesktop([e])},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-ink-faint text-2xs ml-1",children:"Move to desktop"}),
59
- /* @__PURE__ */T("button",{onClick:t=>{t.stopPropagation(),re?.removeShortcuts([e])},className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Remove"})]})]},t)})})]}):"trash"===ee?K&&0===ae.length?/* @__PURE__ */T(w,{size:"sm",padding:"p-6",label:"Loading"}):0===ae.length?/* @__PURE__ */T("div",{className:"p-10 text-center text-sm text-gray-400",children:"Trash is empty."}):/* @__PURE__ */D("table",{className:"w-full text-sm",children:[
60
- /* @__PURE__ */T("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */D("tr",{children:[
61
- /* @__PURE__ */T("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Name"}),
62
- /* @__PURE__ */T("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Original location"}),
63
- /* @__PURE__ */T("th",{className:`${v} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
64
- /* @__PURE__ */T("th",{className:`${v} text-right font-medium px-3 h-8 w-40`,children:"Deleted"}),
65
- /* @__PURE__ */T("th",{className:`${v} w-44`})]})}),
66
- /* @__PURE__ */T("tbody",{children:ae.map(e=>/* @__PURE__ */D("tr",{className:"border-b border-gray-100 hover:bg-gray-50",children:[
67
- /* @__PURE__ */D("td",{className:"px-3 h-8 flex items-center gap-2",children:["folder"===e.kind?/* @__PURE__ */T(N,{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}):/* @__PURE__ */T(N,{name:"page",className:"h-4 w-4 text-ink-faintest shrink-0",strokeWidth:1.5}),
68
- /* @__PURE__ */T("span",{className:"truncate",title:e.name,children:e.name})]}),
69
- /* @__PURE__ */T("td",{className:"px-3 h-8 text-ink-faint text-xs font-mono truncate",title:e.originalPath,children:e.originalPath||"—"}),
70
- /* @__PURE__ */T("td",{className:"px-3 h-8 text-right tabular-nums text-ink-faint",children:n(e.size)}),
71
- /* @__PURE__ */T("td",{className:"px-3 h-8 text-right text-ink-faint tabular-nums",children:e.deletedAt?F(e.deletedAt):"—"}),
72
- /* @__PURE__ */D("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:[
73
- /* @__PURE__ */T("button",{onClick:()=>(async e=>{const t=await pe(`${S}/api/trash/restore`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e.id})});if(!t.ok){const e=await t.json().catch(()=>({}));return void y.error(e.error||`Restore failed (${t.status})`)}y.success(`Restored "${e.name}"`),xe()})(e),className:"px-2 py-0.5 rounded hover:bg-gray-200 text-blue-600 text-2xs",children:"Restore"}),
74
- /* @__PURE__ */T("button",{onClick:()=>(async e=>{if(!await g({title:"Permanently delete",message:`"${e.name}" will be permanently removed. This can't be undone.`,confirmLabel:"Delete forever",variant:"danger"}))return;const t=await pe(`${S}/api/trash/${encodeURIComponent(e.id)}`,{method:"DELETE"});if(!t.ok){const e=await t.json().catch(()=>({}));return void y.error(e.error||`Delete failed (${t.status})`)}xe()})(e),className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Delete forever"})]})]},e.id))})]}):K&&0===O.length?/* @__PURE__ */T(w,{size:"sm",padding:"p-6",label:"Loading"}):0===O.length?/* @__PURE__ */D("div",{className:"p-10 text-center text-sm text-gray-400",children:["Empty folder.",!A&&/* @__PURE__ */D(R,{children:[" Drop files here or click ",
75
- /* @__PURE__ */T("span",{className:"font-medium",children:"Upload"}),"."]})]}):/* @__PURE__ */D("table",{className:"w-full text-sm",children:[
76
- /* @__PURE__ */T("thead",{className:"bg-surface-sunken text-2xs uppercase tracking-wide text-ink-faint",children:/* @__PURE__ */D("tr",{children:[
77
- /* @__PURE__ */T("th",{className:`${v} text-left font-medium px-3 h-8`,children:"Name"}),
78
- /* @__PURE__ */T("th",{className:`${v} text-right font-medium px-3 h-8 w-24`,children:"Size"}),
79
- /* @__PURE__ */T("th",{className:`${v} text-right font-medium px-3 h-8 w-40`,children:"Modified"}),
80
- /* @__PURE__ */T("th",{className:`${v} w-32`})]})}),
81
- /* @__PURE__ */T("tbody",{children:O.map(t=>/* @__PURE__ */D("tr",{onClick:()=>G(t.name),onDoubleClick:()=>{"folder"===t.kind?M(P(I,t.name)):(async t=>{if(A)return;const a=P(I,t.name),n=(t.name.split(".").pop()||"").toLowerCase(),r=U[n];r?await e({filePath:a,filename:t.name,kind:r,onStaged:e=>de(e)}):ge(t)})(t)},className:"cursor-default border-b border-gray-100 "+(B===t.name?"bg-blue-50":"hover:bg-gray-50"),children:[
82
- /* @__PURE__ */D("td",{className:"px-3 h-8 flex items-center gap-2",children:["folder"===t.kind?/* @__PURE__ */T(N,{name:"folder",look:"solid",className:"h-4 w-4 text-amber-500 shrink-0"}):/* @__PURE__ */T(N,{name:"page",className:"h-4 w-4 text-ink-faintest shrink-0",strokeWidth:1.5}),
83
- /* @__PURE__ */T("span",{className:"truncate",title:t.name,children:t.name})]}),
84
- /* @__PURE__ */T("td",{className:"px-3 h-8 text-right tabular-nums text-ink-faint",children:"folder"===t.kind?"—":n(t.size)}),
85
- /* @__PURE__ */T("td",{className:"px-3 h-8 text-right text-ink-faint tabular-nums",children:F(t.modifiedAt)}),
86
- /* @__PURE__ */T("td",{className:"px-3 h-8 text-right whitespace-nowrap",children:!A&&/* @__PURE__ */D(R,{children:["file"===t.kind&&/* @__PURE__ */T("button",{onClick:e=>{e.stopPropagation(),ge(t)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-ink-faint text-2xs",children:"Download"}),
87
- /* @__PURE__ */T("button",{onClick:e=>{e.stopPropagation(),(async e=>{const t=await k({title:`Rename ${e.kind}`,defaultValue:e.name,confirmLabel:"Rename"});if(!t||t===e.name)return;if(/[\\/]/.test(t))return void y.error("Names cannot contain slashes");const a=P(I,e.name),n=P(I,t),r=await pe(`${S}/api/rename`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:a,to:n})});if(!r.ok){const e=await r.json().catch(()=>({}));return void y.error(e.error||`Rename failed (${r.status})`)}fe(I)})(t)},className:"px-2 py-0.5 rounded hover:bg-gray-200 text-ink-faint text-2xs ml-1",children:"Rename"}),
88
- /* @__PURE__ */T("button",{onClick:e=>{e.stopPropagation(),(async e=>{if(!await g({title:`Delete ${e.kind}`,message:`"${e.name}"${"folder"===e.kind?" and everything inside":""} will be permanently removed.`,confirmLabel:"Delete",variant:"danger"}))return;const t=P(I,e.name),a=await pe(`${S}/api/files?path=${encodeURIComponent(t)}`,{method:"DELETE"});if(!a.ok){const e=await a.json().catch(()=>({}));return void y.error(e.error||`Delete failed (${a.status})`)}fe(I)})(t)},className:"px-2 py-0.5 rounded hover:bg-red-100 text-red-600 text-2xs ml-1",children:"Delete"})]})})]},t.name))})]})})]})})}),_&&/* @__PURE__ */T("div",{className:"absolute inset-0 bg-blue-500/15 border-4 border-dashed border-blue-500 pointer-events-none flex items-center justify-center z-20",children:/* @__PURE__ */T("div",{className:"px-4 py-2 rounded-md bg-blue-600 text-white text-sm font-medium shadow-lg",children:"Drop to upload"})})]})}export{S as default};
@@ -1,44 +0,0 @@
1
- import{useAuth as e,parseOpenSections as t,readStored as r,RAIL_OPEN_SECTIONS_KEY as n,RAIL_WIDTH_KEY as a,toggleOpenSection as i,writeStored as l}from"./chunk-ZTV2BA3P.js";import{ResizeHandle as o}from"./chunk-5QGBVTGS.js";import{openGlobalSearch as s}from"./chunk-5TDQPZDB.js";import{partitionNav as c,visibleNavChildren as d,flyoutGroups as m,visibleSectionItems as h,rowsContainRoute as u}from"./chunk-WGRS6QBT.js";import{BrandMark as p}from"./chunk-MI67DI3H.js";import{IconButton_default as b}from"./chunk-PUF75SMJ.js";import{RAIL_MENU_GAP as f,navSections as g,startMenuCategories as x,TAB_STRIP_H as y,RAIL_COLLAPSED_INSET as k,RAIL_W as v,RAIL_MAX_W as N,RAIL_MIN_W as j,navIcons as w,sectionIcons as C}from"./chunk-CY5N5OA3.js";import"./chunk-5A7MWTXX.js";import"./chunk-7QSDPSXP.js";import{PopupMenu as S,PopupMenuItem as L,PopupMenuDivider as W,PopupMenuLabel as z}from"./chunk-4WEFGKJL.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-UQYNPYF4.js";import"./chunk-34URULVW.js";import{Icon as $}from"./chunk-2UO47XB4.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-6XBWM453.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-F27JJHNJ.js";import"./chunk-TWVUQUUD.js";import{useShellStrings as A}from"./chunk-GDQJBQ5B.js";import"./chunk-C3QOHMR6.js";import{useMemo as T,useState as B,useRef as H,useEffect as I,isValidElement as M,cloneElement as R}from"react";import{jsx as J,jsxs as Q,Fragment as D}from"react/jsx-runtime";var P="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform);function U(e,t,r){const n=Math.max(8,r-t.bottom);return{left:e+f,bottom:n,maxHeight:r-n-8,overflowY:"auto"}}var K=(e,t)=>["flex h-(--row-height-menu) w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium transition-colors",t?"justify-center px-0":"",e?"bg-gray-100 text-gray-900":"text-gray-600 hover:bg-gray-100 hover:text-gray-900"].join(" "),G="flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-[18px]";function F({open:e,children:t}){const r=H(null);return I(()=>{r.current?.toggleAttribute("inert",!e)},[e]),/* @__PURE__ */J("div",{ref:r,className:"grid transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-none",style:{gridTemplateRows:e?"1fr":"0fr",opacity:e?1:0},"aria-hidden":!e,"data-fold":e?"open":"closed",children:/* @__PURE__ */J("div",{className:"min-h-0 overflow-hidden",children:t})})}function O({open:e}){/* @__PURE__ */
2
- return J($,{name:"chevron-down",className:"size-4 shrink-0 transition-transform "+(e?"rotate-180":""),strokeWidth:2,"aria-hidden":"true"})}function V({dir:e}){/* @__PURE__ */
3
- return J($,"left"===e?{name:"chevron-double-left",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"}:{name:"chevron-double-right",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"})}function X({className:e}){/* @__PURE__ */
4
- return J($,{name:"search",className:e,strokeWidth:2,"aria-hidden":"true"})}var _=e=>.75+1.75*e+"rem";function Z({width:Z,collapsed:Y,onToggleCollapsed:E,onResize:q,onHome:ee,onOpen:te,activeRoute:re,profile:ne,user:ae,onLogout:ie,onSwitchToDesktop:le,onReportBug:oe,onClose:se,navSections:ce=g,navIcons:de=w,sectionIcons:me=C,categories:he=x,productName:ue,productIcon:pe,tagline:be,adaptiveLogo:fe=!1,logoHasAlpha:ge=null,logoIsLight:xe=null}){const ye=A().layout,{hasAnyPerm:ke}=e(),ve=T(()=>c(ce,he,ke),[ce,he,ke]),[Ne,je]=B(()=>t(r(n))),we=T(()=>[...ve.topItems.filter(e=>d(e,ke).length>0).map(e=>`child:${e.to}`),...[...ve.erpSections,...ve.systemSections,...ve.virtualSections,...ve.footerSections].map(e=>e.label)],[ve,ke]),Ce=(e,t=we)=>je(r=>{const a=i(r,e,t);return l(n,JSON.stringify([...a])),a}),[Se,Le]=B(null),[We,ze]=B(!1),$e=H(null);I(()=>{Y||Le(null)},[Y]);const Ae=(e,t)=>{Le(null),e.onSelect?e.onSelect():te(e.to,!!t&&(e=>e.metaKey||e.ctrlKey||1===e.button)(t))},Te=(e,t)=>{const r=t[e];/* @__PURE__ */
5
- return J("span",{className:G,"aria-hidden":"true",children:r&&M(r)?R(r,{className:"size-[18px]"}):r})},Be=e=>e.filter(e=>d(e,ke).length>0).map(e=>`child:${e.to}`),He=(e,t,r=we)=>{const n=d(e,ke),a=e.menuLabel??e.label;if(n.length>0){const i=`child:${e.to}`,l=Ne.has(i),o=!l&&u(n,re,ke);/* @__PURE__ */
6
- return Q("div",{children:[
7
- /* @__PURE__ */Q("button",{type:"button",onClick:()=>Ce(i,r),"aria-expanded":l,className:K(o,!1),style:t>0?{paddingLeft:_(t)}:void 0,children:[0===t&&Te(e.to,de),
8
- /* @__PURE__ */J("span",{className:"min-w-0 flex-1 truncate",children:a}),
9
- /* @__PURE__ */J(O,{open:l})]}),
10
- /* @__PURE__ */J(F,{open:l,children:/* @__PURE__ */J("div",{className:"space-y-0.5 pt-0.5",children:n.map(e=>He(e,t+1,Be(n)))})}),e.dividerAfter&&/* @__PURE__ */J("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:_(t)},"aria-hidden":"true"})]},e.to)}const i=e.to===re;/* @__PURE__ */
11
- return Q("div",{children:[
12
- /* @__PURE__ */Q("button",{type:"button",onClick:t=>Ae(e,t),onAuxClick:t=>{1===t.button&&Ae(e,t)},"aria-current":i?"page":void 0,className:K(i,!1),style:t>0?{paddingLeft:_(t)}:void 0,children:[0===t&&Te(e.to,de),
13
- /* @__PURE__ */J("span",{className:"min-w-0 flex-1 truncate",children:a})]}),e.dividerAfter&&/* @__PURE__ */J("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:_(t)},"aria-hidden":"true"})]},e.to)},Ie=(e,t)=>{const r=t?e.items:h(e,ke);if(0===r.length)return null;const n="icon"in e&&e.icon?/* @__PURE__ */J("span",{className:G,"aria-hidden":"true",children:e.icon}):Te(e.label,me),a=e.menuLabel??e.label,i=u(r,re,ke),l="dividerAfter"in e&&e.dividerAfter;if(Y)/* @__PURE__ */
14
- return Q("div",{children:[
15
- /* @__PURE__ */J("button",{type:"button",title:a,"aria-label":a,"aria-haspopup":"menu","aria-expanded":Se?.label===e.label,onClick:t=>{const n=t.currentTarget.getBoundingClientRect();Le(t=>t?.label===e.label?null:{label:e.label,items:r,top:n.top})},className:K(i||Se?.label===e.label,!0),children:n}),l&&/* @__PURE__ */J("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label);const o=Ne.has(e.label),s=`rosh-rail-${e.label.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}`;/* @__PURE__ */
16
- return Q("div",{children:[
17
- /* @__PURE__ */Q("button",{type:"button",onClick:()=>Ce(e.label),"aria-expanded":o,"aria-controls":s,className:K(!o&&i,!1),children:[n,
18
- /* @__PURE__ */J("span",{className:"min-w-0 flex-1 truncate",children:a}),
19
- /* @__PURE__ */J(O,{open:o})]}),
20
- /* @__PURE__ */J(F,{open:o,children:/* @__PURE__ */J("div",{id:s,role:"group","aria-label":a,className:"space-y-0.5 pt-0.5",children:r.map(e=>He(e,1,Be(r)))})}),l&&/* @__PURE__ */J("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label)},Me=ne?.first_name?`${ne.first_name} ${ne.last_name||""}`.trim():ae?.email||"",Re=(ne?.first_name?.charAt(0)||ae?.email?.charAt(0)||"?").toUpperCase(),Je=ne?.avatar_url?/* @__PURE__ */J("img",{src:ne.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */J("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:Re}),Qe=We?$e.current?.getBoundingClientRect():void 0,De=Y?"":"px-3",Pe=Y?{paddingInline:k}:void 0,Ue=`${Y?ye.expandSidebar:ye.collapseSidebar} (${P?"⌘":"Ctrl"} .)`,Ke=ee?{run:ee,label:ye.goHome,title:ye.goHome}:se?null:{run:E,label:Y?ye.expandSidebar:ye.collapseSidebar,title:Ue},Ge=/* @__PURE__ */Q(D,{children:[pe&&/* @__PURE__ */J(p,{src:pe,alt:"",slot:"compact",surface:"light",adaptive:fe,hasAlpha:ge,isLight:xe,size:28,decorative:!0}),!Y&&/* @__PURE__ */Q("span",{className:"min-w-0 text-left leading-tight",children:[
21
- /* @__PURE__ */J("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:ue??"Apps"}),be&&/* @__PURE__ */J("span",{className:"block truncate text-2xs font-medium text-gray-500",children:be})]})]}),Fe=ve.erpSections.length>0||ve.systemSections.length>0||ve.virtualSections.length>0;/* @__PURE__ */
22
- return Q("aside",{"aria-label":ye.navLabel,className:"fixed left-0 top-0 z-(--z-sidebar) flex h-dvh flex-col border-r border-line bg-surface text-ink-strong",style:{width:Z},children:[
23
- /* @__PURE__ */Q("div",{className:"flex shrink-0 items-center border-b border-gray-200 "+(Y?"justify-center":"justify-between gap-2 pl-4 pr-2"),style:{height:y},children:[Ke?/* @__PURE__ */J("button",{type:"button",onClick:Ke.run,"aria-label":Ke.label,title:Ke.title,className:"flex min-w-0 items-center gap-2 rounded-md transition-colors hover:bg-gray-100 "+(Y?"justify-center p-0.5":"-ml-1 p-1"),children:Ge}):/* @__PURE__ */J("span",{className:"flex min-w-0 items-center gap-2",children:Ge}),se?/* @__PURE__ */J(b,{onClick:se,"aria-label":ye.closeMenu,children:/* @__PURE__ */J($,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})}):!Y&&/* @__PURE__ */J("button",{type:"button",onClick:E,"aria-label":ye.collapseSidebar,title:`${ye.collapseSidebar} (${P?"⌘":"Ctrl"} .)`,className:"flex size-8 shrink-0 items-center justify-center rounded-md text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900",children:/* @__PURE__ */J(V,{dir:"left"})})]}),
24
- /* @__PURE__ */J("div",{className:`shrink-0 pt-3 ${De}`,style:Pe,children:Y?/* @__PURE__ */J("button",{type:"button",onClick:s,"aria-label":ye.search,title:`${ye.search} (${P?"⌘K":"Ctrl K"})`,className:K(!1,!0),children:/* @__PURE__ */J(X,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */Q("button",{type:"button",onClick:s,className:"flex h-(--row-height-menu) w-full items-center gap-2 rounded-md border border-line bg-surface px-3 text-left transition-colors hover:bg-gray-100",children:[
25
- /* @__PURE__ */J(X,{className:"size-3.5 text-gray-500"}),
26
- /* @__PURE__ */J("span",{className:"min-w-0 flex-1 truncate text-sm text-ink-faint",children:ye.search}),
27
- /* @__PURE__ */J("kbd",{className:"rounded border border-line bg-gray-100 px-2 py-0.5 font-mono text-2xs font-semibold text-ink-faint",children:P?"⌘K":"Ctrl K"})]})}),
28
- /* @__PURE__ */Q("nav",{"aria-label":ye.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${De} ${Y?"space-y-1":"space-y-0.5"}`,style:Pe,children:[Y&&/* @__PURE__ */J("button",{type:"button",onClick:E,"aria-label":ye.expandSidebar,title:`${ye.expandSidebar} (${P?"⌘":"Ctrl"} .)`,className:`${K(!1,!0)} mb-3`,children:/* @__PURE__ */J(V,{dir:"right"})}),ve.topItems.map(e=>{if(!Y)return He(e,0);const t=d(e,ke),r=e.to===re||u(t,re,ke),n=e.menuLabel??e.label;/* @__PURE__ */
29
- return Q("div",{children:[
30
- /* @__PURE__ */J("button",{type:"button",title:n,"aria-label":n,onClick:r=>{if(0===t.length)return void Ae(e,r);const n=r.currentTarget.getBoundingClientRect();Le(r=>r?.label===e.to?null:{label:e.to,items:t,top:n.top})},className:K(r,!0),children:Te(e.to,de)}),e.dividerAfter&&/* @__PURE__ */J("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.to)}),ve.topItems.length>0&&Fe&&!ve.topItems[ve.topItems.length-1].dividerAfter&&/* @__PURE__ */J("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ve.erpSections.map(e=>Ie(e,!1)),ve.systemSections.map(e=>Ie(e,!1)),ve.virtualSections.map(e=>Ie(e,!0)),ve.footerSections.length>0&&/* @__PURE__ */J("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ve.footerSections.map(e=>Ie(e,!1))]}),
31
- /* @__PURE__ */J("div",{className:`shrink-0 border-t border-gray-200 py-2 ${De}`,style:Pe,children:/* @__PURE__ */Q("button",{ref:$e,type:"button",onClick:()=>ze(e=>!e),"aria-haspopup":"menu","aria-expanded":We,"aria-label":Y?ye.accountMenu(Me):void 0,className:"flex w-full items-center gap-3 rounded-md hover:bg-gray-100 "+(Y?"justify-center py-2":"px-2 py-2"),children:[Je,!Y&&/* @__PURE__ */Q("span",{className:"min-w-0 flex-1 text-left",children:[
32
- /* @__PURE__ */J("span",{className:"block truncate text-sm font-semibold text-ink-strong",children:Me}),ae?.email&&Me!==ae.email&&/* @__PURE__ */J("span",{className:"block truncate text-2xs text-ink-faint",children:ae.email})]})]})}),q&&!Y&&!se&&/* @__PURE__ */J(o,{side:"left",width:Z,onResize:q,min:j,max:N,defaultWidth:v,storageKey:a,label:ye.resizeSidebar}),We&&Qe&&/* @__PURE__ */Q(S,{portal:!0,minWidth:224,onClose:()=>ze(!1),style:U(Z,Qe,window.innerHeight),children:[Y&&/* @__PURE__ */Q("div",{className:"border-b border-line px-3 py-3",children:[
33
- /* @__PURE__ */J("p",{className:"truncate text-sm font-semibold text-gray-800",children:Me}),ae?.email&&/* @__PURE__ */J("p",{className:"truncate text-xs text-gray-500",children:ae.email})]}),
34
- /* @__PURE__ */Q(L,{onClick:()=>{ze(!1),te("/profile",!1)},children:[
35
- /* @__PURE__ */J($,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.profile]}),ve.footerItems.map(e=>/* @__PURE__ */Q(L,{onClick:()=>{ze(!1),Ae(e)},children:[
36
- /* @__PURE__ */J("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:de[e.to]}),e.menuLabel??e.label]},e.to)),oe&&/* @__PURE__ */Q(L,{onClick:()=>{ze(!1),oe()},children:[
37
- /* @__PURE__ */J($,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.reportIssue]}),
38
- /* @__PURE__ */J(W,{}),le&&/* @__PURE__ */Q(D,{children:[
39
- /* @__PURE__ */Q(L,{onClick:()=>{ze(!1),le()},children:[
40
- /* @__PURE__ */J($,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.switchToDesktop]}),
41
- /* @__PURE__ */J(W,{})]}),
42
- /* @__PURE__ */Q(L,{danger:!0,onClick:()=>{ze(!1),ie()},children:[
43
- /* @__PURE__ */J($,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),ye.signOut]})]}),Se&&Y&&/* @__PURE__ */J(S,{portal:!0,minWidth:220,onClose:()=>Le(null),style:{left:Z+f,top:Math.min(Se.top,window.innerHeight-48*Math.min(Se.items.length,10)-16)},children:m(Se.items,ke).map((e,t)=>/* @__PURE__ */Q("div",{role:e.heading?"group":void 0,"aria-label":e.heading?e.heading.menuLabel??e.heading.label:void 0,children:[t>0&&/* @__PURE__ */J(W,{}),e.heading&&/* @__PURE__ */J(z,{children:e.heading.menuLabel??e.heading.label}),e.items.map(e=>/* @__PURE__ */Q(L,{onClick:()=>Ae(e),children:[Te(e.to,de),
44
- /* @__PURE__ */J("span",{className:e.to===re?"font-semibold":"",children:e.menuLabel??e.label})]},e.to))]},e.heading?.to??`run-${t}`))})]})}export{U as accountMenuPosition,Z as default};
@@ -1,20 +0,0 @@
1
- import{Checkbox_default as e}from"./chunk-CGZBDI6C.js";import{Pagination as t}from"./chunk-LXL2UCUR.js";import{SpinnerRing as r}from"./chunk-R2VKEMZH.js";import{TH_ONE_LINE as o,OneLineLabel as n}from"./chunk-MVZRZTQP.js";import{useBrowserLayoutEffect as l}from"./chunk-D65T4H6J.js";import{useShellStrings as s}from"./chunk-GDQJBQ5B.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
- return c("span",{className:"ml-1 inline-flex flex-col leading-none","aria-hidden":"true",children:[
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:$=!1,size:S="md",minWidth:z,rowClassName:H,onRow:T,rowHref:I,onRowPress:L,linkAs:R,emptyText:D,selection:P,footer:A,virtualized:E,stackOnNarrow:F=!1,stackBelow:O,className:Z=""}){const K=s(),Q=D??K.table.empty,W=(e,t)=>"function"==typeof k?k(e,t):String(e[k]),G=F&&!E,J=G?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}]:[]}),U=e=>G?{role:e}:{},V=(e,t)=>(t??("string"==typeof e||"number"==typeof e?String(e):"")).trim()||void 0,[X,q]=i(0),Y=E?.overscan??6,_=E?e=>{const t=Math.max(0,Math.floor(e.currentTarget.scrollTop/E.rowHeight)-Y);q(e=>e===t?e:t)}:void 0,ee=E?Math.ceil(E.height/E.rowHeight)+2*Y:v.length,te=E?Math.min(X,Math.max(0,v.length-ee)):0,re=Math.min(v.length,te+ee),oe=E?te*E.rowHeight:0,ne=E?(v.length-re)*E.rowHeight:0,le=a(null),[se,ie]=i(0);l(()=>{if(!E)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=J.flatMap(e=>m(e)?e.columns:[e]),he=J.some(m),ue=/* @__PURE__ */new Map;if(G)for(const e of J)if(m(e))for(const t of e.columns)ue.set(t,V(e.title,e.label));const me=e=>{const t=V(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)=>W(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=G&&!P&&de.some(e=>e.cardCorner),ke=R??"a",Ne=`${p[S]} ${"sm"===S?"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",...U("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}:{},...E?{top:l}:{}},className:[Ne,i,o,"font-semibold uppercase tracking-wide text-gray-500","sm"===S?"text-2xs":"text-xs",a?E?"sticky z-20 bg-gray-50":"sticky z-10 bg-gray-50":E?"sticky z-10 bg-gray-50":"",G&&d?"rosh-dt-sort":"",G?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":G?ue.get(e):void 0,className:`inline-flex max-w-full items-center font-semibold uppercase tracking-wide hover:text-ink ${i}`,children:[
6
- /* @__PURE__ */h(n,{children:e.title}),
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}),$e=/* @__PURE__ */c(d,{children:[
8
- /* @__PURE__ */c("div",{onScroll:_,style:E?{maxHeight:E.height}:void 0,className:`relative overflow-x-auto ${E?"overflow-y-auto":""} ${$?"rounded-lg border border-gray-200":""}${G?" rosh-dt-scroll":""}`.trim(),children:[B&&
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
- /* @__PURE__ */h(r,{className:"h-6 w-6"}),
11
- /* @__PURE__ */h("span",{className:"sr-only",children:K.table.loading})]}),
12
- /* @__PURE__ */c("table",{...U("table"),className:(G?"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",{...U("rowgroup"),className:G?"rosh-dt-head":void 0,children:[
14
- /* @__PURE__ */c("tr",{ref:le,...U("row"),className:"border-b border-gray-200 bg-gray-50",children:[P&&/* @__PURE__ */h("th",{scope:"col",...U("columnheader"),rowSpan:he?2:void 0,style:{width:36,...E?{top:0}:{}},className:[Ne,o,xe||E?"sticky z-20 bg-gray-50":"",xe?"left-0":"",G?"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))])}})}),J.map((e,t)=>m(e)?/* @__PURE__ */h("th",{scope:"colgroup",...U("columnheader"),colSpan:e.columns.length,style:E?{top:0}:void 0,className:[Ne,"text-center",o,"font-semibold uppercase tracking-wide text-gray-500","sm"===S?"text-2xs":"text-xs","border-b border-gray-200",E?"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",{...U("row"),className:"border-b border-gray-200 bg-gray-50",children:J.flatMap(e=>m(e)?e.columns:[]).map(e=>je(e,de.indexOf(e),1,se))})]}),
15
- /* @__PURE__ */h("tbody",{...U("rowgroup"),className:G?"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=T?.(t,o),l=!!n?.current,s=I?.(t,o),i=void 0===s&&L?()=>L(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),...U("row"),style:E?{height:E.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:[G?P?"rosh-dt-row rosh-dt-row-select":"rosh-dt-row":"",G&&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=W(t,o);/* @__PURE__ */
17
- return h("td",{...U("cell"),style:{width:36},onClick:e=>e.stopPropagation(),className:[Ne,xe?"sticky left-0 z-10 bg-white":"",G?"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=G&&!n&&"wide"!==e.only;/* @__PURE__ */
18
- return h("td",{...U("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":"",G?f(e):"",Ne,y[e.align??(e.numeric?"right":"left")],G?"":w(e),"text-ink-strongest",e.ellipsis?"max-w-0 truncate":"",r?"sticky z-10 bg-white":"",e.className??""].filter(Boolean).join(" "),children:G?
19
- /* @__PURE__ */h("span",{className:["rosh-dt-value",w(e,!0)].filter(Boolean).join(" "),children:o}):o},e.key)})]},W(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",{...U("row"),className:G?"rosh-dt-empty":void 0,children:/* @__PURE__ */h("td",{...U("cell"),colSpan:we,className:`${Ne} py-10 text-center text-gray-500`,children:Q})})})]}),A]}),j&&j.pageCount>1&&/* @__PURE__ */h("div",{className:G?"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",G?void 0!==O&&O>0&&40!==O?{className:`rosh-dt-at ${Z}`.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:$e})})}:{className:`rosh-dt-stack ${Z}`.trim(),children:$e}:{className:Z,children:$e})}export{x as DataTable};
@@ -1,14 +0,0 @@
1
- import{useHighlight as e}from"./chunk-CNYAHYE6.js";import{ChartTooltip as t}from"./chunk-G4GVLK44.js";import{usePlotWidth as l}from"./chunk-MAFUXCPZ.js";import{resolveSeriesColor as a,CHART_INK as n,STATUS_VARS as r}from"./chunk-TZFACUMR.js";import{useShellStrings as o,useShellLocale as i}from"./chunk-GDQJBQ5B.js";import{formatPercent as u,formatPlain as h}from"./chunk-C3QOHMR6.js";import{useId as c,useState as m,useRef as s}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";function x({stages:x,shape:v="funnel",height:p,width:$,gap:g=4,minBandWidth:M=0,formatValue:y,color:b,className:k,emptyLabel:A}){const L=o().charts,N=i(),S=y??(e=>h(e,N)),j=A??L.noStages,z=c(),[V,w]=m(null),{highlighted:B}=e(),C=s(null),F=l(C,560),W=$??F;if(0===x.length)/* @__PURE__ */return d("p",{className:`text-sm text-gray-500 ${k??""}`,children:j});const Z=b??a(0),E=p??54*x.length,G=Math.max(...x.map(e=>e.value),1),H="bars"===v,Q=H?Math.round(Math.min(132,Math.max(80,.24*W))):Math.round(Math.min(168,Math.max(104,.38*W))),R=e=>{const t=x[e-1]?.value;return null!=t&&t>0?100*(1-x[e].value/t):null},U=e=>{const t=R(e);return{count:S(x[e].value),drop:null!=t?`−${u(t,1,N)}`:""}},Y=H?Math.ceil(Math.max(...x.map((e,t)=>{const{count:l,drop:a}=U(t);return.62*(l.length+(a?a.length+1:0))*12}))+16):0,D=W-Q-Y,J=Math.max(H?2:0,Math.min(M,D)),K=e=>Math.max(J,D*Math.max(0,e/G)),O=e=>K(e)/2,P=Q+D/2,T=e=>46+e/Math.max(1,x.length-1)*54,X=e=>`color-mix(in oklab, ${Z} ${T(e).toFixed(0)}%, ${n.surface})`,q=e=>T(e)>=55?n.surface:n.label,I=(e,t)=>null!==V?V!==e:null!==B&&B!==t,_=null!==V?x[V]:void 0;/* @__PURE__ */
2
- return f("div",{className:`relative ${k??""}`,ref:C,children:[
3
- /* @__PURE__ */f("svg",{width:"100%",height:E,viewBox:`0 0 ${W} ${E}`,role:"img","aria-labelledby":z,onMouseLeave:()=>w(null),children:[
4
- /* @__PURE__ */d("title",{id:z,children:L.funnel(x.length,S(x[0].value),S(x[x.length-1].value))}),x.map((e,t)=>{const l=t*E/x.length+g/2,a=(t+1)*E/x.length-g/2,r=(l+a)/2,o=u(e.value/(x[0].value||1)*100,0,N),i=.62*o.length*12+12;if(H){const u=Q,h=u+K(e.value),{count:c,drop:m}=U(t);/* @__PURE__ */
5
- return f("g",{opacity:I(t,e.key)?.45:1,onMouseEnter:()=>w(t),children:[
6
- /* @__PURE__ */d("path",{d:`M${u},${l} L${h},${l} L${h},${a} L${u},${a} Z`,fill:X(t)}),
7
- /* @__PURE__ */d("text",{x:Q-12,y:r+4,textAnchor:"end",fontSize:12,fill:n.label,children:e.label}),h-u>=i&&/* @__PURE__ */d("text",{x:u+8,y:r+4,textAnchor:"start",fontSize:12,fontWeight:600,fill:q(t),style:{fontVariantNumeric:"tabular-nums"},children:o}),
8
- /* @__PURE__ */f("text",{"data-funnel-value":"true",x:h+8,y:r+4,textAnchor:"start",fontSize:12,fill:n.label,style:{fontVariantNumeric:"tabular-nums"},children:[
9
- /* @__PURE__ */d("tspan",{fontWeight:600,children:c}),m&&/* @__PURE__ */d("tspan",{fill:n.muted,children:` ${m}`})]})]},e.key)}const h=O(e.value),c="cone"===v?O(x[t+1]?.value??e.value):h,m=R(t),s=2*Math.min(h,c)>=i;/* @__PURE__ */
10
- return f("g",{opacity:I(t,e.key)?.45:1,onMouseEnter:()=>w(t),children:[
11
- /* @__PURE__ */d("path",{d:`M${P-h},${l} L${P+h},${l} L${P+c},${a} L${P-c},${a} Z`,fill:X(t)}),
12
- /* @__PURE__ */d("text",{x:Q-14,y:r-2,textAnchor:"end",fontSize:12,fill:n.label,children:e.label}),
13
- /* @__PURE__ */f("text",{x:Q-14,y:r+14,textAnchor:"end",fontSize:11,fill:n.muted,style:{fontVariantNumeric:"tabular-nums"},children:[S(e.value),null!=m?` · −${u(m,1,N)}`:""]}),
14
- /* @__PURE__ */d("text",{x:s?P:P+Math.max(h,c)+6,y:r+4,textAnchor:s?"middle":"start",fontSize:12,fontWeight:600,fill:s?q(t):n.label,style:{fontVariantNumeric:"tabular-nums"},children:o})]},e.key)})]}),_&&null!==V&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(t,{title:_.label,rows:[{key:"value",label:L.count,color:X(V),value:S(_.value)},{key:"share",label:L.ofFirstStage,color:n.muted,value:u(_.value/(x[0].value||1)*100,0,N)},...V>0&&x[V-1].value>0?[{key:"drop",label:L.droppedHere,color:r.critical,value:`−${u(100*(1-_.value/x[V-1].value),1,N)}`}]:[]]})})]})}export{x as FunnelChart};
@@ -1,6 +0,0 @@
1
- import{TEXT_ALIGNS as e,textAlignWords as l,textAlignIcon as r}from"./chunk-4EZIWLJJ.js";import{IconButton_default as a}from"./chunk-PUF75SMJ.js";import{Icon as o}from"./chunk-2UO47XB4.js";import{Tooltip as n}from"./chunk-6XBWM453.js";import{useShellStrings as s}from"./chunk-GDQJBQ5B.js";import{jsx as i,jsxs as t,Fragment as d}from"react/jsx-runtime";var c=e=>e.preventDefault(),u=e=>null!=e&&!1!==e,h=["bold","italic","underline","strike","link","sup","sub","code"];function p(e,l,r){const a={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1,Home:"first",End:"last"}[e.key];if(void 0===a||0===l.length)return;const o=[...e.currentTarget.querySelectorAll('[role="radio"]')],n=o.findIndex(l=>l===e.target||l.contains(e.target));if(n<0)return;e.preventDefault();const s=o.length,i="first"===a?0:"last"===a?s-1:(n+a+s)%s;o[i].disabled||(r(l[i]),o[i].focus())}function b(e,l){const r=["bold","italic","underline","strike"].filter(l=>e.has(l)).length;return{color:r,link:r+(l?1:0)}}function m(e,l,r,a){const o=h.filter(l=>"link"!==l&&e.has(l)).length+(l?1:0);return r&&0!==o?a>0?"paragraph":"words":null}function w({offered:l,color:r,last:a,alignment:o,list:n,letterCase:s,clear:i}){let t=h.filter(e=>l.has(e)).length+(r?1:0)+(u(a)?1:0),d=(o?e.filter(e=>o.allow.includes(e)).length:0)+(n&&l.has("bullet")?1:0)+(n&&l.has("number")?1:0)+(l.has("quote")?1:0)+(s?3:0);const c=m(l,r,i,d);return"paragraph"===c&&(d+=1),"words"===c&&(t+=1),{words:t>0,paragraph:d>0,oneRow:t>0&&d>0&&t+1+d<=9,flow:t>0&&d>0&&t+1+d>9&&t<=7,cells:{words:t,paragraph:d}}}function g(e,l){/* @__PURE__ */
2
- return i(n,{content:e,children:l},l.key??void 0)}function f({offered:n,pressed:h,onMark:f,color:k,linkOpen:v=!1,last:N,alignment:C,list:M,letterCase:D,clear:x,disabled:y=!1,"aria-label":B,windows:j,className:q="",layout:A="grid"}){const I=s().textToolbar,L=w({offered:n,color:k,last:N,alignment:C,list:M,letterCase:D,clear:x});if(!L.words&&!L.paragraph)return null;const S=m(n,k,x,L.cells.paragraph),U=(e,l="")=>`rosh-tb-btn${e?" is-on":""}${l?` ${l}`:""}`,$=(e,l,r,o)=>n.has(e)?g(l,/* @__PURE__ */i(a,"link"===e?{pressed:v,className:U(v),"aria-label":l,"aria-haspopup":"dialog","aria-expanded":v,"aria-keyshortcuts":o,disabled:y,onMouseDown:c,onClick:()=>f(e),children:r}:{className:U(Boolean(h[e])),"aria-label":l,"aria-pressed":Boolean(h[e]),"aria-keyshortcuts":o,disabled:y,onMouseDown:c,onClick:()=>f(e),children:r},e)):null,J=l(I),R=e.map(e=>[e,J[e],r(e)]),K=C?e.filter(e=>C.allow.includes(e)):[],T=C&&K.includes(C.value)?C.value:K[0],E=[["none",I.caseNone,/* @__PURE__ */i(o,{name:"case-normal"})],["upper",I.caseUpper,/* @__PURE__ */i(o,{name:"case-upper"})],["lower",I.caseLower,/* @__PURE__ */i(o,{name:"case-lower"})]],O=x&&S?g(I.clear,/* @__PURE__ */i(a,{className:U(!1),"aria-label":I.clear,disabled:y,onMouseDown:c,onClick:x.onClear,children:/* @__PURE__ */i(o,{name:"revert"})},"clear")):null,Q=/* @__PURE__ */t(d,{children:[$("bold",I.bold,/* @__PURE__ */i(o,{name:"bold"}),"Meta+B"),$("italic",I.italic,/* @__PURE__ */i(o,{name:"italic"}),"Meta+I"),$("underline",I.underline,/* @__PURE__ */i(o,{name:"underline"}),"Meta+U"),$("strike",I.strike,/* @__PURE__ */i(o,{name:"strike"})),k?g(I.color,/* @__PURE__ */i(a,{pressed:k.open,className:U(k.open,"rosh-tb-color"),"aria-label":I.color,"aria-haspopup":"dialog","aria-expanded":k.open,disabled:y,style:k.run?{"--rosh-tb-run":k.run}:void 0,onMouseDown:c,onClick:k.onToggle,children:/* @__PURE__ */i(o,{name:"text-color"})},"color")):null,$("link",I.link,/* @__PURE__ */i(o,{name:"link"}),"Meta+K"),$("sup",I.sup,/* @__PURE__ */i(o,{name:"superscript"})),$("sub",I.sub,/* @__PURE__ */i(o,{name:"subscript"})),$("code",I.code,/* @__PURE__ */i(o,{name:"code"})),u(N)?N:null,"words"===S?O:null]}),W=/* @__PURE__ */t(d,{children:[C&&K.length>0?/* @__PURE__ */i("div",{className:"rosh-tb-group",role:"radiogroup","aria-label":I.alignment,onKeyDown:e=>p(e,K,e=>C.onChange(e)),children:R.map(([e,l,r])=>C.allow.includes(e)?g(l,/* @__PURE__ */i(a,{role:"radio",pressed:C.value===e,className:U(C.value===e),"aria-checked":C.value===e,"aria-label":l,tabIndex:e===T?0:-1,disabled:y||C.disabled,onMouseDown:c,onClick:()=>C.onChange(e),children:r},e)):null)}):null,M&&n.has("bullet")?g(I.bullet,/* @__PURE__ */i(a,{className:U("bullet"===M.pressed),"aria-label":I.bullet,"aria-pressed":"bullet"===M.pressed,disabled:y,onMouseDown:c,onClick:()=>M.onList("bullet"),children:/* @__PURE__ */i(o,{name:"list"})},"bullet")):null,M&&n.has("number")?g(I.number,/* @__PURE__ */i(a,{className:U("number"===M.pressed),"aria-label":I.number,"aria-pressed":"number"===M.pressed,disabled:y,onMouseDown:c,onClick:()=>M.onList("number"),children:/* @__PURE__ */i(o,{name:"numbered-list"})},"number")):null,$("quote",I.quote,/* @__PURE__ */i(o,{name:"quote"})),D?/* @__PURE__ */i("div",{className:"rosh-tb-group",role:"radiogroup","aria-label":I.letterCase,onKeyDown:e=>p(e,E.map(([e])=>e),e=>D.onChange(e)),children:E.map(([e,l,r])=>g(l,/* @__PURE__ */i(a,{role:"radio",pressed:D.value===e,className:U(D.value===e),"aria-checked":D.value===e,"aria-label":l,tabIndex:e===(D.value||"none")?0:-1,disabled:y||D.disabled,onMouseDown:c,onClick:()=>D.onChange(D.value===e?"":e),children:r},e)))}):null,"paragraph"===S?O:null]}),X="row"===A,F=X?" is-row":L.flow?" is-flow":L.oneRow?" is-one-row":L.words&&void 0===N&&"words"!==S?" is-eight":"",G=b(n,Boolean(k)),H={"--rosh-tb-color-col":String(G.color),"--rosh-tb-link-col":String(G.link),...X?{"--rosh-tb-cells":String(L.cells.words+L.cells.paragraph),"--rosh-tb-groupgap":L.words&&L.paragraph?"var(--space-8, 0.5rem)":"0px"}:{}};let P;return P=X?/* @__PURE__ */t("div",{className:"rosh-tb-row is-row",children:[L.words?/* @__PURE__ */i("div",{className:"rosh-tb-words",children:Q}):null,L.paragraph?/* @__PURE__ */i("div",{className:"rosh-tb-para",children:W}):null]}):L.flow?/* @__PURE__ */t("div",{className:"rosh-tb-row is-flow",children:[Q,
3
- /* @__PURE__ */i("span",{className:"rosh-tb-flowgap","aria-hidden":"true"}),W]}):L.oneRow?/* @__PURE__ */t("div",{className:"rosh-tb-row is-one-row",children:[
4
- /* @__PURE__ */i("div",{className:"rosh-tb-words",children:Q}),
5
- /* @__PURE__ */i("div",{className:"rosh-tb-para",children:W})]}):/* @__PURE__ */t(d,{children:[L.words?/* @__PURE__ */i("div",{className:"rosh-tb-row"+(void 0===N&&"words"!==S?" is-eight":""),children:Q}):null,L.paragraph?/* @__PURE__ */i("div",{className:"rosh-tb-row",children:W}):null]}),/* @__PURE__ */t("div",{className:`rosh-tb-wrap${F} ${q}`.trim(),style:H,children:[
6
- /* @__PURE__ */i("div",{className:"rosh-tb",role:"toolbar","aria-label":B??I.formatting,children:P}),j]})}export{f as TextToolbar,w as textToolbarRows,b as textToolbarWindowColumns};
@@ -1,8 +0,0 @@
1
- import{AccessibleTable as t}from"./chunk-TKJBZIHT.js";import{arcPath as e}from"./chunk-VFC6QUEN.js";import{useHighlight as o}from"./chunk-CNYAHYE6.js";import{ChartTooltip as n}from"./chunk-G4GVLK44.js";import{CHART_INK as r,resolveSeriesColor as a}from"./chunk-TZFACUMR.js";import{useShellStrings as l,useShellLocale as i}from"./chunk-GDQJBQ5B.js";import{formatPlain as s}from"./chunk-C3QOHMR6.js";import{useState as c}from"react";import{jsx as d,jsxs as m}from"react/jsx-runtime";function h(t,e,o,n){const r=(t,o)=>{const n=e[t]?.[o];return"number"==typeof n&&Number.isFinite(n)?n:0},a=t.map((e,o)=>t.reduce((t,e,n)=>t+r(o,n)+r(n,o),0)),l=Math.max(2,o),i=t.length>l,s=i?t.map((t,e)=>e).sort((t,e)=>a[e]-a[t]).slice(0,l-1).sort((t,e)=>t-e):t.map((t,e)=>e),c=new Map(s.map((t,e)=>[t,e])),d=i?s.length:-1,m=i?[...s.map(e=>t[e]),n]:[...t],h=m.map(()=>m.map(()=>0));let u=0;t.forEach((e,o)=>t.forEach((t,e)=>{const n=c.get(o)??d,a=c.get(e)??d;n!==d||a!==d?h[n][a]+=r(o,e):u+=r(o,e)}));const f=m.map((t,e)=>m.reduce((t,o,n)=>t+h[e][n]+h[n][e],0));return d>=0&&(f[d]+=u),{labels:m,matrix:h,totals:f,otherIndex:d,foldedCount:i?t.length-s.length:0}}function u({labels:u,matrix:f,size:p=340,maxNodes:x=8,padAngle:g=.04,arcWidth:b=12,formatValue:k,className:v,emptyLabel:M}){const $=l().charts,w=i(),N=k??(t=>s(t,w)),j=M??$.noFlows,[y,E]=c(null),{highlighted:F}=o(),C=h(u,f,x,$.other),{labels:I,matrix:Q,otherIndex:z,foldedCount:A}=C,B=(t,e)=>Q[t]?.[e]??0,L=t=>t===z?r.muted:a(t),T=C.totals,G=I.map((t,e)=>e).sort((t,e)=>T[e]-T[t]),H=G.reduce((t,e)=>t+T[e],0);if(H<=0)/* @__PURE__ */return d("p",{className:`text-sm text-gray-500 ${v??""}`,children:j});const O=p/2,V=p/2,J=p/2-44,K=J-b,P=g*G.length,R=/* @__PURE__ */new Map;let U=-Math.PI/2;G.forEach((t,e)=>{const o=T[t]/H*(2*Math.PI-P);R.set(t,{start:U,end:U+o,slot:e}),U+=o+g});const W=/* @__PURE__ */new Map,Y=[];for(const t of G)for(const e of G){const o=B(t,e);if(o<=0)continue;const n=R.get(t),r=o/Math.max(1,T[t])*(n.end-n.start),a=W.get(t)??0;W.set(t,a+r),Y.push({from:t,to:e,value:o,a:n.start+a+r/2,b:R.get(e).start+(R.get(e).end-R.get(e).start)/2})}const Z=(t,e)=>[O+e*Math.cos(t),V+e*Math.sin(t)],D="arc"===y?.kind?y.index:void 0,S="ribbon"===y?.kind?Y[y.index]:void 0;/* @__PURE__ */
2
- return m("div",{className:`relative ${v??""}`,children:[
3
- /* @__PURE__ */m("svg",{width:"100%",height:p,viewBox:`0 0 ${p} ${p}`,role:"img","aria-label":$.chord(G.length),onMouseLeave:()=>E(null),children:[Y.map((t,e)=>{const[o,n]=Z(t.a,K),[r,a]=Z(t.b,K),l=L(t.from),i=((t,e)=>y?"ribbon"===y.kind?y.index===e:y.index===t.from||y.index===t.to:null!==F?I[t.from]===F||I[t.to]===F:null)(t,e);/* @__PURE__ */
4
- return d("path",{d:`M${o},${n} Q${O},${V} ${r},${a}`,fill:"none",stroke:l,strokeWidth:Math.max(1,t.value/H*p*.9),strokeOpacity:null===i||i?.34:.07,strokeLinecap:"round",onMouseEnter:()=>E({kind:"ribbon",index:e})},`${I[t.from]}→${I[t.to]}`)}),G.map(t=>{const o=R.get(t),n=(o.start+o.end)/2,[a,l]=Z(n,J+16),i=(t=>y?"arc"===y.kind?y.index===t:Y[y.index].from===t||Y[y.index].to===t:null!==F?I[t]===F:null)(t);/* @__PURE__ */
5
- return m("g",{onMouseEnter:()=>E({kind:"arc",index:t}),children:[
6
- /* @__PURE__ */d("path",{d:e(O,V,K,J,o.start,o.end),fill:L(t),fillOpacity:null===i||i?1:.45}),
7
- /* @__PURE__ */d("text",{x:a,y:l+4,fontSize:11,fill:r.label,textAnchor:Math.cos(n)>.15?"start":Math.cos(n)<-.15?"end":"middle",children:I[t]})]},t)})]}),A>0&&/* @__PURE__ */d("p",{className:"mt-1 text-xs text-ink-faint",children:$.chordFolded(A)}),void 0!==D&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:I[D],rows:[{key:"total",label:$.totalFlow,color:L(D),value:N(T[D])}]})}),S&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:`${I[S.from]} → ${I[S.to]}`,rows:[{key:"value",label:$.flow,color:L(S.from),value:N(S.value)}]})}),
8
- /* @__PURE__ */d(t,{caption:$.chord(G.length),head:[$.tableFrom,$.tableTo,$.value],rows:Y.map(t=>[I[t.from],I[t.to],N(t.value)])})]})}export{u as ChordChart,h as foldChord};
@@ -1,4 +0,0 @@
1
- import{AccessibleTable as e}from"./chunk-TKJBZIHT.js";import{arcPath as t}from"./chunk-VFC6QUEN.js";import{useHighlight as r}from"./chunk-CNYAHYE6.js";import{ChartTooltip as l}from"./chunk-G4GVLK44.js";import{CHART_INK as a,resolveSeriesColor as n}from"./chunk-TZFACUMR.js";import{useShellStrings as i,useShellLocale as o}from"./chunk-GDQJBQ5B.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,[w,B]=u(null),{highlighted:L}=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,G=f/2,I=f/2,K=(f/2-8-b)/E,Q=C.filter(e=>0===e.depth).reduce((e,t)=>e+t.value,0),T=e=>`color-mix(in oklab, ${n(e.branch)} ${Math.max(16,100-24*e.depth).toFixed(0)}%, ${a.surface})`,z=e=>null!==w?e.id===w:null===L||e.branchKey===L,A=w?C.find(e=>e.id===w):void 0,F=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:()=>B(null),children:[C.map(e=>/* @__PURE__ */s("path",{d:t(G,I,b+e.depth*K+v/2,b+(e.depth+1)*K-v/2,e.start,e.end),fill:T(e),fillOpacity:z(e)?1:.45,stroke:a.surface,strokeWidth:1,onMouseEnter:()=>B(e.id)},e.id)),x&&/* @__PURE__ */s("text",{x:G,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:T(A),value:j(A.value)},{key:"share",label:M.share,color:a.muted,value:F(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),F(e)])})]})}export{f as SunburstChart};
@@ -1,15 +0,0 @@
1
- import{AccessibleTable as e}from"./chunk-TKJBZIHT.js";import{polygonPoints as t}from"./chunk-VFC6QUEN.js";import{ChartDefs as r,maskId as l}from"./chunk-465RRWBY.js";import{useHighlight as a}from"./chunk-CNYAHYE6.js";import{ChartTooltip as o}from"./chunk-G4GVLK44.js";import{angleScale as n}from"./chunk-2JWPNR2U.js";import{CHART_INK as i,resolveSeriesColorWithin as s}from"./chunk-TZFACUMR.js";import{useShellStrings as m,useShellLocale as c}from"./chunk-GDQJBQ5B.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useId as p,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var k=3,g=e=>`${e.map(([e,t],r)=>`${0===r?"M":"L"}${e.toFixed(2)},${t.toFixed(2)}`).join(" ")} Z`;function x({axes:k,series:x,size:y=300,mode:b="area",grid:v="polygon",rings:M=4,formatValue:N,animate:j=!0,className:$,emptyLabel:C}){const W=m().charts,F=c(),w=N??(e=>h(e,F)),B=C??W.nothingToCompare,L=p(),[R,T]=u(null),{highlighted:A}=a(),Q=x;if(k.length<3||0===Q.length)/* @__PURE__ */
2
- return d("p",{className:`text-sm text-gray-500 ${$??""}`,children:B});const z=y/2,E=y/2,G=y/2-46,H=n(k.length),J=k.map((e,t)=>null!=e.max&&Number.isFinite(e.max)&&e.max>0?e.max:Math.max(1,...Q.map(e=>e.values[t]??0).filter(Number.isFinite))),U=(e,t)=>{const r=Math.max(0,Math.min(1,t/J[e])),l=H.center(e)-H.step/2;return[z+G*r*Math.cos(l),E+G*r*Math.sin(l)]},V=(e,t)=>null!==R?R!==e:null!==A&&A!==t,Y=null!==R?Q[R]:void 0;/* @__PURE__ */
3
- return f("div",{className:`relative ${$??""}`,children:[
4
- /* @__PURE__ */f("svg",{width:"100%",height:y,viewBox:`0 0 ${y} ${y}`,role:"img","aria-labelledby":L,onMouseLeave:()=>T(null),children:[
5
- /* @__PURE__ */d("title",{id:L,children:W.acrossMeasures(Q.map(e=>e.label),k.length)}),Array.from({length:M},(e,r)=>{const l=G*(r+1)/M;return"circle"===v?/* @__PURE__ */d("circle",{cx:z,cy:E,r:l,fill:"none",stroke:i.grid,strokeWidth:1},r):/* @__PURE__ */d("path",{d:g(t(z,E,l,k.length)),fill:"none",stroke:i.grid,strokeWidth:1},r)}),k.map((e,t)=>{const[r,l]=U(t,J[t]);/* @__PURE__ */
6
- return f("g",{children:[
7
- /* @__PURE__ */d("line",{x1:z,y1:E,x2:r,y2:l,stroke:i.grid,strokeWidth:1}),
8
- /* @__PURE__ */d("text",{x:z+(G+18)*Math.cos(H.center(t)-H.step/2),y:E+(G+18)*Math.sin(H.center(t)-H.step/2)+4,textAnchor:"middle",fontSize:11,fill:i.label,children:e.label})]},e.key)}),
9
- /* @__PURE__ */d(r,{id:L,reveal:!!j&&"center-out"}),Q.map((e,t)=>{const r=s(t,3,e.color,e.tone),a=k.map((t,r)=>U(r,e.values[r]??0));/* @__PURE__ */
10
- return f("g",{opacity:V(t,e.key)?.3:1,onMouseEnter:()=>T(t),mask:j?`url(#${l(L)})`:void 0,children:["area"===b&&/* @__PURE__ */d("path",{d:g(a),fill:r,fillOpacity:.18,stroke:"none"}),
11
- /* @__PURE__ */d("path",{d:g(a),fill:"none",stroke:r,strokeWidth:2,strokeLinejoin:"round"}),a.map(([e,t],l)=>/* @__PURE__ */d("circle",{cx:e,cy:t,r:3.5,fill:r,stroke:i.surface,strokeWidth:1.5},l))]},e.key)})]}),Y&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(o,{title:Y.label,rows:k.map((e,t)=>({key:e.key,label:e.label,color:s(R,3,Y.color,Y.tone),value:w(Y.values[t]??0)}))})}),
12
- /* @__PURE__ */d("ul",{className:"m-0 mt-3 grid gap-1 p-0",style:{gridTemplateColumns:"repeat(auto-fit,minmax(140px,1fr))"},children:Q.map((e,t)=>/* @__PURE__ */f("li",{className:"flex list-none items-center gap-2 text-xs text-gray-600",children:[
13
- /* @__PURE__ */d("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{backgroundColor:s(t,3,e.color,e.tone)}}),
14
- /* @__PURE__ */d("span",{className:"flex-1 truncate",children:e.label})]},e.key))}),
15
- /* @__PURE__ */d(e,{caption:W.acrossMeasures(Q.map(e=>e.label),k.length),head:[W.tableSeries,...k.map(e=>e.label)],rows:Q.map(e=>[e.label,...k.map((t,r)=>w(e.values[r]??0))])})]})}export{k as RADAR_SERIES_CAP,x as RadarChart};