efficient-shell 10.21.0 → 10.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/README.md +4 -0
  2. package/dist/{Browser-RMXGMX4E.js → Browser-GTQKXJQ6.js} +15 -15
  3. package/dist/Calculator-PM4TYWTE.js +29 -0
  4. package/dist/{CurrencyConverter-42IHLJVV.js → CurrencyConverter-4I2ENTSX.js} +5 -5
  5. package/dist/{Documents-YAKAFEDY.js → Documents-MTCJXTXY.js} +5 -5
  6. package/dist/{Files-FJAFKP6V.js → Files-XMZ3XBP4.js} +26 -26
  7. package/dist/Notepad-QIJN7VDZ.js +24 -0
  8. package/dist/{PomodoroTimer-PD7POYX5.js → PomodoroTimer-5ELVNJEU.js} +7 -7
  9. package/dist/{Preview-UEZPFGON.js → Preview-QCA6XUDU.js} +22 -22
  10. package/dist/Sidebar-7LN3ZEF4.js +44 -0
  11. package/dist/{Spreadsheet-AEFR6TFD.js → Spreadsheet-EKYP6XIX.js} +12 -12
  12. package/dist/Stock-TRG6CAZJ.js +16 -0
  13. package/dist/{Weather-4QPYOENN.js → Weather-YGTT7UWR.js} +20 -20
  14. package/dist/{WorldClock-3ZVRBLEW.js → WorldClock-UCX5LCJB.js} +6 -6
  15. package/dist/ai/index.js +32 -32
  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/CartesianPlot.js +1 -1
  22. package/dist/charts/ChartTooltip.js +1 -1
  23. package/dist/charts/ChordChart.js +1 -1
  24. package/dist/charts/ColumnChart.js +1 -1
  25. package/dist/charts/FunnelChart.js +1 -1
  26. package/dist/charts/HeatmapChart.js +1 -1
  27. package/dist/charts/HistogramChart.js +1 -1
  28. package/dist/charts/PieChart.js +1 -1
  29. package/dist/charts/RadarChart.js +1 -1
  30. package/dist/charts/RadialBarChart.js +1 -1
  31. package/dist/charts/RangeChart.js +1 -1
  32. package/dist/charts/SankeyChart.js +1 -1
  33. package/dist/charts/ScatterChart.js +1 -1
  34. package/dist/charts/SpecChart.js +1 -1
  35. package/dist/charts/SunburstChart.js +1 -1
  36. package/dist/charts/TimeSeriesChart.js +1 -1
  37. package/dist/charts/TreemapChart.js +1 -1
  38. package/dist/charts/WaterfallChart.js +1 -1
  39. package/dist/{chunk-Q32Q44DX.js → chunk-36PJGT4W.js} +1 -1
  40. package/dist/{chunk-G4GVLK44.js → chunk-36VIGB6J.js} +1 -1
  41. package/dist/{chunk-YILGAEW3.js → chunk-3BFZVVAT.js} +1 -1
  42. package/dist/chunk-4BCFBF3C.js +9 -0
  43. package/dist/{chunk-77MOYIQW.js → chunk-4EBJO7ER.js} +11 -11
  44. package/dist/{chunk-5WYRAJ5F.js → chunk-4P3324KU.js} +1 -1
  45. package/dist/chunk-4P57TIFK.js +2 -0
  46. package/dist/{chunk-C6Y7B73Q.js → chunk-4RGMRXYH.js} +1 -1
  47. package/dist/{chunk-6V4INP7J.js → chunk-4TYIYL56.js} +4 -4
  48. package/dist/{chunk-FOFZI62F.js → chunk-55AEZX6K.js} +1 -1
  49. package/dist/chunk-5FYDNH4Y.js +1 -0
  50. package/dist/{chunk-TKJBZIHT.js → chunk-5PP435FL.js} +1 -1
  51. package/dist/{chunk-DCRLJMQ6.js → chunk-5RQJRD2E.js} +1 -1
  52. package/dist/{chunk-RBBIAIPH.js → chunk-6M5O2P64.js} +9 -9
  53. package/dist/{chunk-OP5DOO3K.js → chunk-75UD5ZMP.js} +4 -4
  54. package/dist/chunk-7IY47EKR.js +1 -0
  55. package/dist/{chunk-LYHJHUQH.js → chunk-7JVGF555.js} +1 -1
  56. package/dist/{chunk-N67QX3WW.js → chunk-7KWYVQMX.js} +2 -2
  57. package/dist/chunk-7LU3H72S.js +7 -0
  58. package/dist/chunk-7RP7QTRF.js +12 -0
  59. package/dist/{chunk-ALF3GC7A.js → chunk-A6FR2D46.js} +2 -2
  60. package/dist/{chunk-XCHAU2UN.js → chunk-AFG34RBV.js} +6 -6
  61. package/dist/{chunk-VN4KSRZ5.js → chunk-BBXFIBXB.js} +1 -1
  62. package/dist/{chunk-DPYBV5PU.js → chunk-BMXTPJ7T.js} +5 -5
  63. package/dist/{chunk-I33SVQ7P.js → chunk-CH3JQUDW.js} +5 -5
  64. package/dist/{chunk-4UKGVLFP.js → chunk-CIHR5ZKF.js} +1 -1
  65. package/dist/{chunk-JNQKBN5M.js → chunk-COF33H6J.js} +5 -5
  66. package/dist/{chunk-RXCGE2AY.js → chunk-CQEVJG43.js} +1 -1
  67. package/dist/{chunk-YJXS7BR5.js → chunk-CX4XR4HO.js} +1 -1
  68. package/dist/chunk-DBL7MFCB.js +14 -0
  69. package/dist/{chunk-HV47GP2C.js → chunk-DGWS4GTI.js} +1 -1
  70. package/dist/{chunk-YSDPFDAG.js → chunk-DIEH76MB.js} +1 -1
  71. package/dist/{chunk-W3OWPBQL.js → chunk-DRUQH4ZE.js} +2 -2
  72. package/dist/{chunk-6T2CL4JT.js → chunk-DVYIBJ3S.js} +2 -2
  73. package/dist/{chunk-Y62TTKSY.js → chunk-DWAA4YZV.js} +3 -3
  74. package/dist/{chunk-5TDQPZDB.js → chunk-DZOJQURG.js} +6 -6
  75. package/dist/{chunk-3UXXA2CS.js → chunk-E3EJWNNK.js} +8 -8
  76. package/dist/{chunk-2EYXE5XK.js → chunk-E6LQY6TB.js} +1 -1
  77. package/dist/{chunk-I4VIEGCX.js → chunk-EOVXFXVV.js} +2 -2
  78. package/dist/chunk-EXLHFM3V.js +6 -0
  79. package/dist/{chunk-MMYWBTYP.js → chunk-FUDUQ44A.js} +1 -1
  80. package/dist/{chunk-TXDA7TTP.js → chunk-FZM3ZPW3.js} +1 -1
  81. package/dist/{chunk-VWIYC2NB.js → chunk-G66SG6JN.js} +8 -8
  82. package/dist/{chunk-5SIOCKCK.js → chunk-G7BBSHDF.js} +2 -2
  83. package/dist/{chunk-2VGQS6CW.js → chunk-GC3DA6D6.js} +1 -1
  84. package/dist/{chunk-NVD4AI5Y.js → chunk-GCZU4XFA.js} +1 -1
  85. package/dist/{chunk-FKRPQDFX.js → chunk-GOXQJCXG.js} +17 -17
  86. package/dist/{chunk-QRYSL6QU.js → chunk-H475WZPF.js} +14 -14
  87. package/dist/{chunk-Z5A4EY2R.js → chunk-H5NIW2KS.js} +1 -1
  88. package/dist/{chunk-2YSGXZOL.js → chunk-I3XM2PSQ.js} +57 -57
  89. package/dist/{chunk-DGZAQXTW.js → chunk-I4DLYOPO.js} +4 -4
  90. package/dist/{chunk-FACWYKL6.js → chunk-IPO4LHSB.js} +6 -6
  91. package/dist/{chunk-QHPVAXHR.js → chunk-JET2TKEQ.js} +3 -3
  92. package/dist/chunk-JPOYR5AO.js +7 -0
  93. package/dist/{chunk-I35NCNAF.js → chunk-LCSMBVMU.js} +1 -1
  94. package/dist/{chunk-PUF75SMJ.js → chunk-LE5LWALR.js} +1 -1
  95. package/dist/chunk-LNXBTK7Q.js +1 -0
  96. package/dist/{chunk-S6Y4I22Q.js → chunk-MCAPJSB6.js} +1 -1
  97. package/dist/{chunk-REWKL7MX.js → chunk-MDYJVXWD.js} +2 -2
  98. package/dist/chunk-MHPFBVDD.js +8 -0
  99. package/dist/{chunk-3NW5LD7D.js → chunk-N5KO2IHG.js} +4 -4
  100. package/dist/{chunk-6XBWM453.js → chunk-NJN5IKWO.js} +5 -5
  101. package/dist/{chunk-RUGQO7YF.js → chunk-NRALUW6P.js} +6 -6
  102. package/dist/chunk-NWC6YCIJ.js +11 -0
  103. package/dist/{chunk-UDKTAG57.js → chunk-NZ34BQKH.js} +1 -1
  104. package/dist/{chunk-X2N6UARO.js → chunk-O52BQ5DP.js} +1 -1
  105. package/dist/{chunk-XK42AQOJ.js → chunk-O7RR2ZZ2.js} +6 -6
  106. package/dist/chunk-OFCHJWM2.js +1 -0
  107. package/dist/chunk-OGU5JE52.js +20 -0
  108. package/dist/{chunk-EPY34L26.js → chunk-OKHKY3ZZ.js} +1 -1
  109. package/dist/{chunk-4WEFGKJL.js → chunk-OTITQ3IH.js} +11 -11
  110. package/dist/{chunk-VIQ6OME2.js → chunk-P7H2DXJB.js} +8 -8
  111. package/dist/{chunk-2H6YNMBE.js → chunk-PSR6SXCC.js} +10 -10
  112. package/dist/chunk-QGWKM7C3.js +9 -0
  113. package/dist/{chunk-YTGNGX3D.js → chunk-QO5E33DH.js} +4 -4
  114. package/dist/{chunk-WYFMSL4Q.js → chunk-QWCEKHAP.js} +9 -9
  115. package/dist/{chunk-O6JJIR4H.js → chunk-RDKIYORS.js} +1 -1
  116. package/dist/{chunk-ZWMODDVE.js → chunk-RV2FGSGH.js} +3 -3
  117. package/dist/{chunk-3PR5YMWZ.js → chunk-RZQGPWSN.js} +1 -1
  118. package/dist/{chunk-3ELLBQPS.js → chunk-S4FPYCUU.js} +3 -3
  119. package/dist/{chunk-DHIQ46C5.js → chunk-TDAI4J27.js} +4 -4
  120. package/dist/{chunk-34URULVW.js → chunk-TE6R53YD.js} +1 -1
  121. package/dist/{chunk-7VBXIIEC.js → chunk-TFSLPAGB.js} +4 -4
  122. package/dist/chunk-TNJ2VCH4.js +8 -0
  123. package/dist/{chunk-OORL6BIG.js → chunk-U44DVPGB.js} +1 -1
  124. package/dist/{chunk-N6CS2FO2.js → chunk-UNQ54QOF.js} +1 -1
  125. package/dist/chunk-UPXDDO3U.js +1 -0
  126. package/dist/{chunk-RVRDDTEG.js → chunk-USVL5SLG.js} +1 -1
  127. package/dist/chunk-USWA6YNZ.js +3 -0
  128. package/dist/chunk-VCCGS6Q2.js +29 -0
  129. package/dist/{chunk-6JSXIEH2.js → chunk-VX4COEWP.js} +3 -3
  130. package/dist/{chunk-MNNZGO2E.js → chunk-VX6TKEEK.js} +1 -1
  131. package/dist/{chunk-A42MKJA3.js → chunk-WDQEUNGE.js} +1 -1
  132. package/dist/{chunk-MVZRZTQP.js → chunk-WGLHB6WE.js} +1 -1
  133. package/dist/{chunk-GEP4FROW.js → chunk-WL4U4MTQ.js} +3 -3
  134. package/dist/{chunk-AYDW63LV.js → chunk-XBHXGBJR.js} +1 -1
  135. package/dist/{chunk-4HBSQGRI.js → chunk-XCAUDTCC.js} +8 -8
  136. package/dist/{chunk-SLU45G5J.js → chunk-XFH64VIG.js} +11 -11
  137. package/dist/{chunk-GMOEYB4X.js → chunk-XJPKDTQN.js} +11 -11
  138. package/dist/chunk-XXL5RLNM.js +22 -0
  139. package/dist/{chunk-VDUXPMOQ.js → chunk-YOZGW2RB.js} +2 -2
  140. package/dist/{chunk-ZQKA2XKH.js → chunk-YQOVUH5W.js} +8 -8
  141. package/dist/{chunk-JYIH2EBG.js → chunk-Z3SLQKE6.js} +1 -1
  142. package/dist/{chunk-5QGBVTGS.js → chunk-Z44JWU75.js} +2 -2
  143. package/dist/{chunk-FS6EOU4G.js → chunk-Z46MSUTP.js} +1 -1
  144. package/dist/{chunk-GISDIVFK.js → chunk-ZRLWE3JM.js} +1 -1
  145. package/dist/data/DataTable.js +1 -1
  146. package/dist/data/ListLoadError.js +1 -1
  147. package/dist/format/index.d.ts +2 -1
  148. package/dist/format/index.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/DateRangePicker.js +1 -1
  157. package/dist/forms/DisplayChips.js +1 -1
  158. package/dist/forms/FilePicker.js +1 -1
  159. package/dist/forms/IconButton.js +1 -1
  160. package/dist/forms/IconPicker.js +1 -1
  161. package/dist/forms/InputNumber.js +1 -1
  162. package/dist/forms/LinkPicker.js +1 -1
  163. package/dist/forms/MediaLibrary.js +1 -1
  164. package/dist/forms/MediaUploadField.js +1 -1
  165. package/dist/forms/MediaUploadGrid.js +1 -1
  166. package/dist/forms/MediaUsedInList.js +1 -1
  167. package/dist/forms/NumericKeypad.js +1 -1
  168. package/dist/forms/PictureTiles.js +1 -1
  169. package/dist/forms/PositionInput.js +1 -1
  170. package/dist/forms/Segmented.js +1 -1
  171. package/dist/forms/Select.js +1 -1
  172. package/dist/forms/SidesInput.js +1 -1
  173. package/dist/forms/Slider.js +1 -1
  174. package/dist/forms/Snippet.js +1 -1
  175. package/dist/forms/SplitButton.js +1 -1
  176. package/dist/forms/TagInput.js +1 -1
  177. package/dist/forms/TextToolbar.js +1 -1
  178. package/dist/forms/WidthsBar.js +1 -1
  179. package/dist/hooks/useRootIsDark.d.ts +25 -0
  180. package/dist/hooks/useRootIsDark.js +2 -0
  181. package/dist/icons/efficient-glyphs.js +1 -1
  182. package/dist/icons/efficient-looks.js +1 -1
  183. package/dist/icons/efficient.js +1 -1
  184. package/dist/icons/index.js +1 -1
  185. package/dist/icons/looks/map.js +1 -1
  186. package/dist/icons/payment.js +1 -1
  187. package/dist/icons/sets.js +1 -1
  188. package/dist/index.d.ts +2 -0
  189. package/dist/index.js +145 -145
  190. package/dist/map/index.js +20 -20
  191. package/dist/page-tabs/index.js +5 -5
  192. package/dist/shell/AppUpdateBanner.js +1 -1
  193. package/dist/shell/ColoredBadge.js +1 -1
  194. package/dist/shell/ContextMenu.js +1 -1
  195. package/dist/shell/DropdownMenu.js +1 -1
  196. package/dist/shell/EditableGrid.js +1 -1
  197. package/dist/shell/FloatingBar.js +1 -1
  198. package/dist/shell/GlobalSearch.js +1 -1
  199. package/dist/shell/HelpCenter.js +1 -1
  200. package/dist/shell/IconRail.js +1 -1
  201. package/dist/shell/ImageLightbox.js +1 -1
  202. package/dist/shell/ItemCount.js +1 -1
  203. package/dist/shell/LanguageSelect.js +1 -1
  204. package/dist/shell/Markdown.js +1 -1
  205. package/dist/shell/PopupMenu.js +1 -1
  206. package/dist/shell/ResizeHandle.js +1 -1
  207. package/dist/shell/SearchableSelect.js +1 -1
  208. package/dist/shell/SettingReset.js +1 -1
  209. package/dist/shell/SettingRow.js +1 -1
  210. package/dist/shell/SidebarLayout.js +1 -1
  211. package/dist/shell/SidebarNav.js +1 -1
  212. package/dist/shell/SortableList.js +1 -1
  213. package/dist/shell/StatusBadge.js +1 -1
  214. package/dist/shell/Tabs.js +1 -1
  215. package/dist/shell/Tooltip.js +1 -1
  216. package/dist/shell/TopNav.js +1 -1
  217. package/dist/shell/TransferProgress.js +1 -1
  218. package/dist/shell/Tree.js +1 -1
  219. package/dist/telemetry/index.js +1 -1
  220. package/dist/templates/AuthScreen.js +1 -1
  221. package/dist/templates/ChatTemplate.js +1 -1
  222. package/dist/templates/CheckoutTemplate.js +1 -1
  223. package/dist/templates/DashboardTemplate.js +1 -1
  224. package/dist/templates/DataTablePage.js +1 -1
  225. package/dist/templates/EmailTemplate.js +1 -1
  226. package/dist/templates/ErrorBoundary.js +1 -1
  227. package/dist/templates/FormLayoutPage.js +1 -1
  228. package/dist/templates/GalleryTemplate.js +1 -1
  229. package/dist/theme/index.d.ts +2 -0
  230. package/dist/theme/index.js +2 -0
  231. package/dist/ui/index.d.ts +2 -0
  232. package/dist/ui/index.js +1 -1
  233. package/dist/utils/glass.js +1 -1
  234. package/dist/utils/rootTheme.d.ts +51 -0
  235. package/dist/utils/rootTheme.js +1 -0
  236. package/dist/version.js +1 -1
  237. package/package.json +6 -1
  238. package/dist/Calculator-6NJNSIRN.js +0 -29
  239. package/dist/Notepad-YGYSYF3R.js +0 -24
  240. package/dist/Sidebar-2HHICMZZ.js +0 -44
  241. package/dist/Stock-IABQRSXZ.js +0 -16
  242. package/dist/chunk-22RQC4EW.js +0 -20
  243. package/dist/chunk-5HO53ZE7.js +0 -29
  244. package/dist/chunk-5TQLUPZD.js +0 -6
  245. package/dist/chunk-67MQ5S32.js +0 -8
  246. package/dist/chunk-BTFBXZS2.js +0 -1
  247. package/dist/chunk-DESWIPOZ.js +0 -3
  248. package/dist/chunk-F27JJHNJ.js +0 -1
  249. package/dist/chunk-FTF6JKD5.js +0 -9
  250. package/dist/chunk-GO2ZUVQD.js +0 -11
  251. package/dist/chunk-LAO5ZHQ6.js +0 -14
  252. package/dist/chunk-M5A7723Z.js +0 -22
  253. package/dist/chunk-MJGK6QTO.js +0 -7
  254. package/dist/chunk-PN5FQVMB.js +0 -7
  255. package/dist/chunk-RNPCHEXO.js +0 -8
  256. package/dist/chunk-TD76YFXE.js +0 -1
  257. package/dist/chunk-TLMFVEMC.js +0 -9
  258. package/dist/chunk-XYBI57KO.js +0 -12
  259. package/dist/chunk-XZJK5DFD.js +0 -2
  260. /package/dist/{chunk-NOKZ54GD.js → chunk-CSA6CGXS.js} +0 -0
@@ -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-4RGMRXYH.js";import"../chunk-ORIXCEKO.js";import"../chunk-KNUR2UEG.js";import"../chunk-EOVXFXVV.js";import"../chunk-UQYNPYF4.js";import"../chunk-TE6R53YD.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-NJN5IKWO.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-TWVUQUUD.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-Z3SLQKE6.js";import"../chunk-P3RXXWXN.js";import"../chunk-PB7G6CJ7.js";import"../chunk-NI5FXWK5.js";import"../chunk-XFH64VIG.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";import"../chunk-6KBDNYRW.js";import"../chunk-2NMW66P5.js";import"../chunk-CGZBDI6C.js";import"../chunk-MAMWQCJ6.js";import"../chunk-AYZY3YNC.js";import"../chunk-UGTRSRIW.js";import"../chunk-URHGHXDN.js";import"../chunk-EOVXFXVV.js";import"../chunk-UQYNPYF4.js";import"../chunk-TE6R53YD.js";import"../chunk-2UO47XB4.js";import"../chunk-J75ZT2JQ.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-NJN5IKWO.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-TWVUQUUD.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-U44DVPGB.js";import"../chunk-N5KO2IHG.js";import"../chunk-FQEALPZJ.js";import"../chunk-P3RXXWXN.js";import"../chunk-JDQGHQ2C.js";import"../chunk-FZM3ZPW3.js";import"../chunk-EOVXFXVV.js";import"../chunk-UQYNPYF4.js";import"../chunk-TE6R53YD.js";import"../chunk-R2VKEMZH.js";import"../chunk-MRJKZWWV.js";import"../chunk-WGLHB6WE.js";import"../chunk-NJN5IKWO.js";import"../chunk-PGN5ME7B.js";import"../chunk-62LW225J.js";import"../chunk-GLUJS42B.js";import"../chunk-D65T4H6J.js";import"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";import"../chunk-TWVUQUUD.js";import"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
@@ -0,0 +1,2 @@
1
+ export { useRootIsDark } from '../hooks/useRootIsDark.js';
2
+ export { RootThemeOptions } from '../utils/rootTheme.js';
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ export{useRootIsDark}from"../chunk-UPXDDO3U.js";import"../chunk-LNXBTK7Q.js";
@@ -174,6 +174,8 @@ export { default as TimeAgo, TimeAgoProps } from '../shell/TimeAgo.js';
174
174
  export { default as useDebouncedValue } from '../hooks/useDebouncedValue.js';
175
175
  export { default as useClickOutside } from '../hooks/useClickOutside.js';
176
176
  export { useIsMobile } from '../shell/useIsMobile.js';
177
+ export { useRootIsDark } from '../hooks/useRootIsDark.js';
178
+ export { RootThemeOptions } from '../utils/rootTheme.js';
177
179
  export { ALT, ALT_SHIFT_D, ALT_SHIFT_E, ALT_SHIFT_N, CMD_A, CMD_DOT, CMD_ENTER, CMD_K, CMD_S, ENTER, Kbd, KbdProps, KbdSize, KbdTone, MOD, SHIFT, isMac } from '../shell/Kbd.js';
178
180
  export { CHART_INK, SERIES_SLOT_COUNT, SERIES_VARS, STATUS_VARS, SeriesSlots, assignSeriesSlots, resolveSeriesColor, resolveSeriesColorWithin, seriesColor, toggleSeriesSlot } from '../charts/palette.js';
179
181
  export { AngleScale, BandScale, LadderScale, LinearScale, NiceAxis, Range, angleScale, bandScale, binValues, ladderScale, linearScale, logScale, niceAxis, niceMax, radiusScale } from '../charts/scale.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{CheckoutTemplate}from"../chunk-YJXS7BR5.js";export{DashboardTemplate}from"../chunk-MMYWBTYP.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-T23TIJ4P.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-QHPVAXHR.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-JNQKBN5M.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{PositionInput}from"../chunk-FS6EOU4G.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-VDUXPMOQ.js";export{Slider,SliderGroup}from"../chunk-DGZAQXTW.js";export{LinkPicker,TextLinkField}from"../chunk-LAO5ZHQ6.js";export{SearchableSelect}from"../chunk-XYBI57KO.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-5HO53ZE7.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";import"../chunk-TMMNCXQT.js";export{DropdownMenu}from"../chunk-PN5FQVMB.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{FilePicker_default as FilePicker}from"../chunk-AYDW63LV.js";export{FormErrorSummary}from"../chunk-SAP4YI2Y.js";export{IconPicker}from"../chunk-GEP4FROW.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{slugify}from"../chunk-24AL3CDS.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,PAGE_MOTION_DURATIONS,PAGE_MOTION_EASING,PAGE_MOTION_STEPS,TYPE_SCALE,pageMotionMs}from"../chunk-DHKRXHJN.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-O6JJIR4H.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-ZWMODDVE.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-GMOEYB4X.js";export{Popover}from"../chunk-7JGR7WPD.js";export{InputNumber_default as InputNumber}from"../chunk-5SIOCKCK.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{BrandAssetEditor}from"../chunk-XK42AQOJ.js";export{MediaUploadField}from"../chunk-FTF6JKD5.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-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{PortalBrandingProvider,resolvePortalBrandAsset,usePortalBranding}from"../chunk-ACYYVK6G.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{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-RNPCHEXO.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{WaterfallChart}from"../chunk-I35NCNAF.js";export{HistogramChart}from"../chunk-XZJK5DFD.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-ALF3GC7A.js";export{RankedBars}from"../chunk-SL77N7VT.js";export{SankeyChart}from"../chunk-TLMFVEMC.js";export{ChordChart}from"../chunk-67MQ5S32.js";import"../chunk-TKJBZIHT.js";export{FunnelChart}from"../chunk-2H6YNMBE.js";export{HeatmapChart}from"../chunk-GO2ZUVQD.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-S6Y4I22Q.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-M5A7723Z.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-DPYBV5PU.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-TD76YFXE.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{BoxPlotChart}from"../chunk-Q32Q44DX.js";export{CandlestickChart}from"../chunk-6T2CL4JT.js";export{ChartTooltip}from"../chunk-G4GVLK44.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-F27JJHNJ.js";export{CartesianPlot}from"../chunk-YTGNGX3D.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{registerModalEscapeInterceptor}from"../chunk-TWVUQUUD.js";export{ChartBrush}from"../chunk-E6GDAV5R.js";export{CHART_INK,SERIES_SLOT_COUNT,SERIES_VARS,STATUS_VARS,assignSeriesSlots,resolveSeriesColor,resolveSeriesColorWithin,seriesColor,toggleSeriesSlot}from"../chunk-TZFACUMR.js";export{DEFAULT_SHELL_STRINGS,ShellStringsProvider,useShellLocale,useShellStrings}from"../chunk-GDQJBQ5B.js";import"../chunk-C3QOHMR6.js";
2
+ import"../chunk-CSA6CGXS.js";export{GalleryTemplate}from"../chunk-U44DVPGB.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{ChatTemplate}from"../chunk-CQEVJG43.js";export{CheckoutTemplate}from"../chunk-CX4XR4HO.js";export{DashboardTemplate}from"../chunk-FUDUQ44A.js";export{DataTablePage}from"../chunk-USVL5SLG.js";export{EmailTemplate}from"../chunk-VX6TKEEK.js";export{ErrorBoundary}from"../chunk-4RGMRXYH.js";export{ErrorPage}from"../chunk-ORIXCEKO.js";export{FormLayoutPage}from"../chunk-Z3SLQKE6.js";export{useTransferProgress}from"../chunk-QHOEMRR7.js";export{AuthScreen}from"../chunk-DGWS4GTI.js";export{TimeAgo}from"../chunk-JSG2AKCG.js";export{TopNav}from"../chunk-GC3DA6D6.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-N5KO2IHG.js";export{Paragraph,Text,Title}from"../chunk-5KUE6IHF.js";export{SettingReset}from"../chunk-TFSLPAGB.js";export{SettingRow}from"../chunk-4TYIYL56.js";export{SidebarActionButton}from"../chunk-KMTCYDJH.js";export{SidebarLayout}from"../chunk-AFG34RBV.js";export{SidebarGroupLabel,SidebarNavGroup,SidebarNavItem,SidebarSection}from"../chunk-DWAA4YZV.js";import"../chunk-QWK6DRSN.js";export{Skeleton}from"../chunk-4Z62SEA5.js";export{ListRow,SortableList}from"../chunk-IPO4LHSB.js";export{MilestoneTimeline}from"../chunk-K4JQ3FQI.js";export{PageHeader}from"../chunk-EN5NXWT6.js";export{POST_PRODUCTION_STATUSES,ProductionTimeline,STAGES,calcOverall,calcReportOverall,useProductionTimeline}from"../chunk-NU5HN3FZ.js";import"../chunk-S4Z657L6.js";export{TimelineTrack}from"../chunk-SDDV3UCN.js";export{DAY_MS,fmtSliderDate,toDayMs}from"../chunk-7TC3LJQM.js";export{ResizeHandle}from"../chunk-Z44JWU75.js";export{LanguagePanel,LanguageSelect,languageSelectWidth}from"../chunk-3BFZVVAT.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{EditableGrid}from"../chunk-6M5O2P64.js";export{EmptyValue}from"../chunk-HNQPF5QZ.js";export{FloatingBar}from"../chunk-7KWYVQMX.js";export{GlobalSearch,openGlobalSearch}from"../chunk-DZOJQURG.js";export{pushRecent as pushRecentSearch,sanitizeRecent as sanitizeRecentSearches}from"../chunk-WGRS6QBT.js";export{HelpCenter}from"../chunk-QWCEKHAP.js";export{IconRail,IconRailButton}from"../chunk-4P3324KU.js";import"../chunk-FQEALPZJ.js";export{ContainerFillChart}from"../chunk-PCTOL2FX.js";export{CountBadge}from"../chunk-CLTRQ7AQ.js";export{Accordion,AccordionBody,AccordionHeading}from"../chunk-AWKJZSTO.js";export{APP_UPDATE_POLL_MS,AppUpdateBanner,useAppUpdate}from"../chunk-DIEH76MB.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{BRAND_ICON_NAMES,ICON_NAMES,isBrandIconName,isIconName}from"../chunk-T23TIJ4P.js";export{BRAND_MAX_HEIGHT,BRAND_MIN_HEIGHT_PX,brandBox}from"../chunk-64ACCUNN.js";export{Switch_default as Switch}from"../chunk-M3R4C3A6.js";export{TagInput}from"../chunk-CH3JQUDW.js";export{TextToolbar,textToolbarRows,textToolbarWindowColumns}from"../chunk-EXLHFM3V.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-JET2TKEQ.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{ShowWhen}from"../chunk-YEM4KYCW.js";export{SidesEachToggle,SidesInput,sidesStartEach}from"../chunk-YOZGW2RB.js";export{Slider,SliderGroup}from"../chunk-I4DLYOPO.js";export{Snippet}from"../chunk-COF33H6J.js";export{SplitButton_default as SplitButton}from"../chunk-USWA6YNZ.js";export{MEDIA_FILES_DRAG_TYPE,MEDIA_FILE_DRAG_TYPE,MEDIA_FOLDER_DRAG_TYPE,MediaLibrary,readMediaFileDrag}from"../chunk-VCCGS6Q2.js";export{Tree,TreeEmptySlot,TreeGroup,TreeGroupLabel,TreeRow,TreeSeam}from"../chunk-NRALUW6P.js";import"../chunk-7JVGF555.js";export{ImageLightbox,lightboxKind}from"../chunk-P7H2DXJB.js";export{LIGHTBOX_PICTURE_FIT,ZoomableImage}from"../chunk-CGUMJZUB.js";export{MarqueeBox}from"../chunk-IC72MGON.js";export{EmptyState}from"../chunk-QVZKRROQ.js";export{DescriptionList}from"../chunk-SACUSHVN.js";export{Drawer}from"../chunk-V6Y4OC6K.js";export{Breadcrumbs}from"../chunk-XYECIBVX.js";export{mediaLibraryMenu}from"../chunk-MS5APD3V.js";export{mediaMoveItems,mediaMoveSubmenu,useMediaMoveItems}from"../chunk-OPN4I565.js";import"../chunk-TMMNCXQT.js";export{DropdownMenu}from"../chunk-JPOYR5AO.js";export{FULL_BADGE_TILE_PX,MediaUploadGrid}from"../chunk-E3EJWNNK.js";export{MediaUsedInList}from"../chunk-NZ34BQKH.js";export{NumericKeypad}from"../chunk-WDQEUNGE.js";export{MAX_FRACTION_DIGITS,appendKey,backspace}from"../chunk-VEPVOHCV.js";export{PictureTiles}from"../chunk-ZRLWE3JM.js";export{PositionInput}from"../chunk-Z46MSUTP.js";export{Radio_default as Radio}from"../chunk-NI5FXWK5.js";export{IconPicker}from"../chunk-WL4U4MTQ.js";export{LinkPicker,TextLinkField}from"../chunk-DBL7MFCB.js";export{SearchableSelect}from"../chunk-7RP7QTRF.js";export{NativeSelect,Select_default as Select}from"../chunk-XFH64VIG.js";import"../chunk-EO5RLFRX.js";import"../chunk-LJN77RG6.js";export{Label,labelClasses}from"../chunk-EQKUFYX6.js";export{CornersInput}from"../chunk-75UD5ZMP.js";export{DatePicker_default as DatePicker}from"../chunk-77AQNJE2.js";export{DateRangePicker,toISODate}from"../chunk-H475WZPF.js";export{DateTimePicker_default as DateTimePicker}from"../chunk-SXNQHIBY.js";export{DisplayChips}from"../chunk-BBXFIBXB.js";export{FilePicker_default as FilePicker}from"../chunk-XBHXGBJR.js";export{FormErrorSummary}from"../chunk-SAP4YI2Y.js";export{AlignmentGrid}from"../chunk-RDKIYORS.js";export{BORDER_LINE_STYLES,BorderInput,borderSides,borderStartEach}from"../chunk-RV2FGSGH.js";export{BrandAssetEditor}from"../chunk-O7RR2ZZ2.js";export{MediaUploadField}from"../chunk-QGWKM7C3.js";export{ImageFocusPoint}from"../chunk-XQZL6JDD.js";export{FormField}from"../chunk-6KBDNYRW.js";export{Segmented}from"../chunk-S4FPYCUU.js";import"../chunk-JDQGHQ2C.js";export{BrandMark,resolveBrandMarkTreatment}from"../chunk-MI67DI3H.js";export{Calendar}from"../chunk-JH4ZCPHW.js";export{ColorPicker,ColorPickerPanel,ColorSwatch,HexInput,colorFill,colorSwatchClasses}from"../chunk-XJPKDTQN.js";export{Popover}from"../chunk-7JGR7WPD.js";export{InputNumber_default as InputNumber}from"../chunk-G7BBSHDF.js";export{useSettingAuto,useSettingRowName}from"../chunk-2NMW66P5.js";export{slugify}from"../chunk-24AL3CDS.js";export{BORDER_WIDTHS,FONT_WEIGHTS,MOTION_DURATIONS,PAGE_MOTION_DURATIONS,PAGE_MOTION_EASING,PAGE_MOTION_STEPS,TYPE_SCALE,pageMotionMs}from"../chunk-DHKRXHJN.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{FOCAL_DEFAULT,FOCAL_NUDGE_COARSE,FOCAL_NUDGE_STEP,focalFromRect,formatFocal,nudgeFocal,parseFocal}from"../chunk-25RR3GQW.js";export{fromDateKey,toDateKey}from"../chunk-2HMNOLKX.js";export{useClickOutside}from"../chunk-SI26KESU.js";export{useDebouncedValue}from"../chunk-SLGT5WPJ.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{useRootIsDark}from"../chunk-UPXDDO3U.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{contrastRatio,hexToHsv,hexToRgb,hsvToHex,parseHexColor,readableInk,relativeLuminance}from"../chunk-S6OB6HJB.js";export{DataTable}from"../chunk-OGU5JE52.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-UNQ54QOF.js";export{Pagination}from"../chunk-LXL2UCUR.js";export{WaterfallChart}from"../chunk-LCSMBVMU.js";export{SankeyChart}from"../chunk-4BCFBF3C.js";export{SCATTER_SERIES_CAP,ScatterChart}from"../chunk-MHPFBVDD.js";export{StatTile}from"../chunk-JFV5CQN4.js";export{Sparkline}from"../chunk-CKCDGSTC.js";export{SunburstChart}from"../chunk-VX4COEWP.js";export{TreemapChart}from"../chunk-7LU3H72S.js";export{squarify}from"../chunk-46BYGPGD.js";export{HeatmapChart}from"../chunk-NWC6YCIJ.js";export{HistogramChart}from"../chunk-4P57TIFK.js";export{Meter}from"../chunk-OH5L6HYW.js";export{PieChart}from"../chunk-G66SG6JN.js";export{RADAR_SERIES_CAP,RadarChart}from"../chunk-4EBJO7ER.js";export{RadialBarChart}from"../chunk-YQOVUH5W.js";export{RangeChart}from"../chunk-A6FR2D46.js";export{RankedBars}from"../chunk-SL77N7VT.js";export{ChordChart}from"../chunk-TNJ2VCH4.js";import"../chunk-5PP435FL.js";export{FunnelChart}from"../chunk-PSR6SXCC.js";export{StepChain,StepChainItem}from"../chunk-RDYFZHT3.js";export{Markdown,Markdown as MarkdownLite,plainCell,tableToCsv}from"../chunk-RZQGPWSN.js";export{Divider}from"../chunk-DFOFEBYX.js";export{ContextMenu,useContextMenu}from"../chunk-DRUQH4ZE.js";export{Banner}from"../chunk-ZGOHRLXG.js";import"../chunk-CIHR5ZKF.js";import"../chunk-UJUTS6LJ.js";export{isSafeLinkHref}from"../chunk-PJPK2ADX.js";export{Input_default as Input}from"../chunk-MAMWQCJ6.js";export{AttachButton,AttachmentDropZone,AttachmentList,ComposerAttachments,PaperclipGlyph}from"../chunk-XCAUDTCC.js";export{mediaFileName}from"../chunk-H5NIW2KS.js";export{TransferProgress}from"../chunk-TDAI4J27.js";export{IconButton_default as IconButton}from"../chunk-LE5LWALR.js";export{INPUT_BASE,INPUT_SIZES,PLACEHOLDER_INK,inputClasses}from"../chunk-AYZY3YNC.js";export{FileIntakeAlert,acceptsFile,useFileIntake}from"../chunk-JTMEFXRL.js";export{CHART_SPEC_LIMITS,parseChartSpec}from"../chunk-CR7T435F.js";export{SpecChart}from"../chunk-MCAPJSB6.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-XXL5RLNM.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-BMXTPJ7T.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{ItemCount}from"../chunk-55AEZX6K.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{ColoredBadge}from"../chunk-OKHKY3ZZ.js";export{useIsMobile}from"../chunk-UGTRSRIW.js";export{useFocusTrap,useScrollLock}from"../chunk-CDAJKLGL.js";export{ShellPrefsProvider,useLocalStoragePrefs,useShellPrefs}from"../chunk-KC3EX26K.js";export{VERSION}from"../chunk-OFCHJWM2.js";export{PopupMenu,PopupMenuDivider,PopupMenuItem,PopupMenuLabel,PopupSubmenu}from"../chunk-OTITQ3IH.js";export{MENU_ON_MEDIA_ATTR,leavesContextMenuAlone}from"../chunk-5QFPTDQF.js";import"../chunk-URHGHXDN.js";export{GROUP_COLORS,GROUP_COLORS_SOLID,StatusBadge,StatusBadgeProvider,groupColors,useStatusLabel}from"../chunk-FZM3ZPW3.js";export{Button_default as Button}from"../chunk-EOVXFXVV.js";export{buttonClasses,iconButtonClasses}from"../chunk-UQYNPYF4.js";import"../chunk-TE6R53YD.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-WGLHB6WE.js";export{Tooltip}from"../chunk-NJN5IKWO.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-36PJGT4W.js";export{CandlestickChart}from"../chunk-DVYIBJ3S.js";export{ChartTooltip}from"../chunk-36VIGB6J.js";export{GLASS_DIVIDER,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.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";
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export{GLASS_DIVIDER,GLASS_INPUT_BG,glassStyle,solidSurfaceStyle}from"../chunk-F27JJHNJ.js";
2
+ export{GLASS_DIVIDER,GLASS_INPUT_BG,glassStyle,solidSurfaceStyle}from"../chunk-5FYDNH4Y.js";import"../chunk-LNXBTK7Q.js";
@@ -0,0 +1,51 @@
1
+ /** Which `<html>` to read, and what to say when it names no theme. */
2
+ interface RootThemeOptions {
3
+ /**
4
+ * The document whose `<html>` is read. Default: the page's own. Pass an
5
+ * iframe's `contentDocument` (or a node's `ownerDocument`) to read the theme
6
+ * of a canvas that is not the page.
7
+ */
8
+ doc?: Document | null;
9
+ /**
10
+ * The answer when `<html>` names no theme: no `data-theme` of `light` or
11
+ * `dark`, and no `dark` class. Default `false` (light), which is what ui.css
12
+ * paints. A host whose own stylesheet is dark unless it says `light` passes
13
+ * `true`, and gets the answer a `data-theme === "light"` test gave it. It is
14
+ * also what the server render answers, so that host hydrates dark.
15
+ */
16
+ whenUnset?: boolean;
17
+ }
18
+ /**
19
+ * Whether the document is in its dark theme, read off `<html>` the same way
20
+ * ui.css reads it: `data-theme="dark"` (what `useTheme()` stamps, and what the
21
+ * EFFICIENT portals' own toggles stamp) OR a `dark` class (next-themes,
22
+ * shadcn/ui, Tailwind's class strategy). Every dark rule in the stylesheet is
23
+ * scoped by `:is([data-theme="dark"], .dark)`; a component that decides in
24
+ * script — a canvas, an inline glass tint — must agree with it, or it paints
25
+ * light inside a page the stylesheet has already turned dark.
26
+ *
27
+ * `data-theme="light"` is light, and so is any other value (an accent theme)
28
+ * or none, unless `whenUnset` says otherwise (see `RootThemeOptions`). The
29
+ * `dark` class wins over `data-theme="light"`, as it does in the stylesheet.
30
+ *
31
+ * Never throws: a document without a root (a server render, a detached test)
32
+ * answers `whenUnset`, which is light by default, also what the stylesheet
33
+ * would say.
34
+ */
35
+ declare function rootIsDark(options?: RootThemeOptions): boolean;
36
+ /** The `<html>` attributes a theme change can arrive on — for a MutationObserver's `attributeFilter`. */
37
+ declare const ROOT_THEME_ATTRIBUTES: string[];
38
+ /**
39
+ * Calls `onChange` whenever `<html>` changes an attribute a theme can arrive
40
+ * on (`ROOT_THEME_ATTRIBUTES`), and returns the function that stops it. The
41
+ * callback is told nothing: it asks `rootIsDark` for the answer it needs.
42
+ *
43
+ * The one watcher — `useRootIsDark` subscribes through it, and a published
44
+ * page that keeps its own state (a map's tile style, a canvas) calls it
45
+ * directly. `{ doc }` watches another document's `<html>`, as `rootIsDark`
46
+ * reads one. Where there is no document (a server render) it watches nothing
47
+ * and returns a stop that does nothing.
48
+ */
49
+ declare function watchRootTheme(onChange: () => void, options?: Pick<RootThemeOptions, 'doc'>): () => void;
50
+
51
+ export { ROOT_THEME_ATTRIBUTES, type RootThemeOptions, rootIsDark, watchRootTheme };
@@ -0,0 +1 @@
1
+ export{ROOT_THEME_ATTRIBUTES,rootIsDark,watchRootTheme}from"../chunk-LNXBTK7Q.js";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export{APP_VERSION,VERSION}from"./chunk-TD76YFXE.js";
1
+ export{APP_VERSION,VERSION}from"./chunk-OFCHJWM2.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-shell",
3
- "version": "10.21.0",
3
+ "version": "10.23.0",
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",
@@ -78,6 +78,11 @@
78
78
  "types": "./dist/markdown/index.d.ts",
79
79
  "import": "./dist/markdown/index.js"
80
80
  },
81
+ "./theme": {
82
+ "types": "./dist/theme/index.d.ts",
83
+ "import": "./dist/theme/index.js",
84
+ "default": "./dist/theme/index.js"
85
+ },
81
86
  "./ui": {
82
87
  "types": "./dist/ui/index.d.ts",
83
88
  "import": "./dist/ui/index.js",
@@ -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,24 +0,0 @@
1
- import{getNumberingConfigs as e}from"./chunk-NVD4AI5Y.js";import{SidebarLayout as t}from"./chunk-XCHAU2UN.js";import"./chunk-QWK6DRSN.js";import"./chunk-5QGBVTGS.js";import{timeAgo as r}from"./chunk-GEYM4WN3.js";import"./chunk-Y3JW2GW5.js";import"./chunk-36BRD5J3.js";import"./chunk-LF27WIN2.js";import{AboutApp as n}from"./chunk-2EYXE5XK.js";import{useWindowManager as o,client_default as i}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{useShellPrefs as c}from"./chunk-KC3EX26K.js";import"./chunk-FOFZI62F.js";import"./chunk-3DVNXNTF.js";import"./chunk-ECJKIPWU.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import{toast_default as s}from"./chunk-7ELJQL7J.js";import"./chunk-UGTRSRIW.js";import"./chunk-EPY34L26.js";import"./chunk-CDAJKLGL.js";import"./chunk-TD76YFXE.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 l}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{useRef as a,useEffect as p,useState as d,useCallback as m}from"react";import{useQuery as u}from"@tanstack/react-query";import{jsxs as h,Fragment as g,jsx as x}from"react/jsx-runtime";var y=[{key:"yellow",bg:"bg-yellow-100",border:"border-yellow-300",text:"text-yellow-900",dot:"bg-yellow-400"},{key:"blue",bg:"bg-blue-100",border:"border-blue-300",text:"text-blue-900",dot:"bg-blue-400"},{key:"green",bg:"bg-green-100",border:"border-green-300",text:"text-green-900",dot:"bg-green-400"},{key:"pink",bg:"bg-pink-100",border:"border-pink-300",text:"text-pink-900",dot:"bg-pink-400"},{key:"purple",bg:"bg-purple-100",border:"border-purple-300",text:"text-purple-900",dot:"bg-purple-400"},{key:"orange",bg:"bg-orange-100",border:"border-orange-300",text:"text-orange-900",dot:"bg-orange-400"},{key:"white",bg:"bg-white",border:"border-gray-300",text:"text-gray-900",dot:"bg-gray-300"}];var k={sales_order:{entityType:"order",endpoint:"/orders/sales-orders/"},purchase_order:{entityType:"purchase_order",endpoint:"/purchase-orders/"},invoice:{entityType:"invoice",endpoint:"/invoicing/invoices/"},vendor_invoice:{entityType:"vendor_invoice",endpoint:"/invoicing/vendor-invoices/"},shipment:{entityType:"shipment",endpoint:"/shipments/delivery-notes/"},receipt:{entityType:"payment",endpoint:"/invoicing/payments/"},vendor_payment:{entityType:"vendor_payment",endpoint:"/invoicing/vendor-payments/"},vendor_price_sheet:{entityType:"vendor_price_sheet",endpoint:"/pricing/manufacturer-price-sheets/"},client_price_sheet:{entityType:"price_sheet",endpoint:"/pricing/price-sheets/"},qc_report:{entityType:"qc_report",endpoint:"/qc-reports/"},warranty_claim:{entityType:"warranty_claim",endpoint:"/warranty-claims/claims/"},vendor_shipment:{entityType:"vendor_shipment",endpoint:"/shipments/goods-receipts/"}},b=/\[([ xX]?)\]/g;function f(){const{openEntity:f}=o(),{prefs:j,save:N}=c(),{data:v}=u({queryKey:["numbering-configs"],queryFn:()=>e(),retry:!1}),w=a({});p(()=>{if(!v)return;const e={};for(const t of v){const r=k[t.entity_type];if(!r)continue;const n=(t.prefix||"").replace("#","").toUpperCase();if(n&&(e[n]={...r,prefix:t.prefix}),t.alt_prefix){const n=t.alt_prefix.replace("#","").toUpperCase();n&&(e[n]={...r,prefix:t.alt_prefix})}}w.current=e},[v]);const T=j.notepad_notes||[],[_,W]=d(null),[C,X]=d(""),[D,E]=d(""),[S,U]=d("yellow"),[$,J]=d(!1),[G,L]=d(!1),Q=a(null),F=a();p(()=>{if(!_&&T.length>0){const e=T[0];W(e.id),X(e.title),E(e.content),U(e.color)}},[T.length]);const I=m(e=>{N({notepad_notes:e})},[N]),K=m(()=>{if(!_||!$)return;const e=T.map(e=>e.id===_?{...e,title:C,content:D,color:S,updated_at:/* @__PURE__ */(new Date).toISOString()}:e);I(e),J(!1)},[_,$,C,D,S,T,I]);p(()=>{if($)return F.current&&clearTimeout(F.current),F.current=setTimeout(K,800),()=>{F.current&&clearTimeout(F.current)}},[$,K]),p(()=>()=>{$&&K()},[]);const O=e=>{$&&K(),W(e.id),X(e.title),E(e.content),U(e.color),J(!1),L(!1)},Z=e=>{const t=D.slice(0,e),r=D.slice(e).match(/^\[([ xX]?)\]/);if(!r)return;const n="x"===r[1]||"X"===r[1]?"[ ]":"[x]",o=D.slice(e+r[0].length);E(t+n+o),J(!0)},M=async(e,t)=>{const r=w.current[e];if(!r)return;const n=`${e}#${t}`;try{const{data:e}=await i.get(r.endpoint,{params:{search:n,page_size:1}}),t=(e?.results??e??[])[0];t?f(r.entityType,t.id,t,n):s.error(`${n} not found`)}catch{s.error(`Failed to look up ${n}`)}},P="Start writing...\n\nTips:\n [] Type [] for a checkbox, click to toggle\n SO#35001 Type XX#NNNNN to link entities (SO, PO, CI, VI, PL, etc.)",V=/* @__PURE__ */h(g,{children:[
2
- /* @__PURE__ */x("div",{className:"p-2 border-b border-gray-200",children:/* @__PURE__ */h("button",{onClick:()=>{$&&K();const e={id:`note-${Date.now()}-${Math.random().toString(36).slice(2,6)}`,title:"",content:"",color:"yellow",updated_at:/* @__PURE__ */(new Date).toISOString()},t=[e,...T];I(t),W(e.id),X(""),E(""),U("yellow"),J(!1),L(!0),setTimeout(()=>Q.current?.focus(),50)},className:"w-full flex items-center justify-center gap-2 rounded-lg bg-accent-fill text-on-accent px-3 min-h-8 py-1 text-sm font-medium hover:bg-accent-fill-hover transition-colors",children:[
3
- /* @__PURE__ */x(l,{name:"add",className:"h-4 w-4",strokeWidth:2}),"New Note"]})}),
4
- /* @__PURE__ */x("div",{className:"flex-1 overflow-y-auto",children:0===T.length?/* @__PURE__ */x("p",{className:"text-sm text-gray-400 text-center py-8 px-4",children:"No notes yet. Create one to get started."}):T.map(e=>{const t=(n=e.color,y.find(e=>e.key===n)||y[0]);var n;/* @__PURE__ */
5
- return h("button",{onClick:()=>O(e),className:"w-full text-left px-3 py-3 border-b border-line-subtle transition-colors "+(_===e.id?"bg-accent-tint":"hover:bg-row-hover"),children:[
6
- /* @__PURE__ */h("div",{className:"flex items-center gap-2",children:[
7
- /* @__PURE__ */x("div",{className:`w-3 h-3 rounded-full shrink-0 ${t.dot}`}),
8
- /* @__PURE__ */x("span",{className:"text-sm font-medium text-gray-900 truncate flex-1",children:e.title||"Untitled"})]}),
9
- /* @__PURE__ */x("p",{className:"text-xs text-ink-faintest mt-0.5 truncate ml-5",children:e.content.replace(/\[[ xX]?\]/g,"").slice(0,60)||"Empty note"}),
10
- /* @__PURE__ */x("p",{className:"text-2xs text-gray-300 mt-0.5 ml-5",children:r(e.updated_at)})]},e.id)})})]});/* @__PURE__ */
11
- return h("div",{className:"h-full",children:[
12
- /* @__PURE__ */x(n,{app:"notepad"}),
13
- /* @__PURE__ */x(t,{sidebar:V,storageKey:"notepad.sidebarWidth",defaultWidth:224,minWidth:180,maxWidth:360,children:_?/* @__PURE__ */h("div",{className:"flex-1 flex flex-col min-w-0",children:[
14
- /* @__PURE__ */h("div",{className:"flex items-center gap-2 px-4 py-2 border-b border-gray-200",children:[
15
- /* @__PURE__ */x("input",{value:C,onChange:e=>{X(e.target.value),J(!0)},placeholder:"Note title...",className:"flex-1 text-lg font-semibold text-gray-900 outline-none bg-transparent placeholder:text-gray-300"}),
16
- /* @__PURE__ */x("div",{className:"flex gap-1",children:y.map(e=>/* @__PURE__ */x("button",{onClick:()=>{U(e.key),J(!0)},className:`w-5 h-5 rounded-full border-2 transition-all ${e.dot} ${S===e.key?"border-gray-600 scale-110":"border-transparent hover:border-gray-400"}`,title:e.key},e.key))}),
17
- /* @__PURE__ */x("button",{onClick:()=>(e=>{const t=T.filter(t=>t.id!==e);if(I(t),_===e){const e=t[0];e?O(e):(W(null),X(""),E(""))}})(_),title:"Delete note",className:"p-1 rounded text-gray-300 hover:text-red-500 transition-colors",children:/* @__PURE__ */x(l,{name:"trash",className:"h-4 w-4",strokeWidth:1.5})})]}),G?/* @__PURE__ */x("textarea",{ref:Q,value:D,onChange:e=>{E(e.target.value),J(!0)},onBlur:()=>{L(!1),$&&K()},placeholder:P,className:"flex-1 p-4 text-sm text-gray-700 outline-none resize-none bg-transparent leading-relaxed placeholder:text-gray-300 font-mono"}):/* @__PURE__ */x("div",{onClick:()=>{L(!0),setTimeout(()=>Q.current?.focus(),50)},className:"flex-1 p-4 text-sm text-gray-700 overflow-y-auto leading-relaxed cursor-text",children:D?(e=>{if(!e)return[];const t=e.split("\n");return t.map((e,r)=>{const n=[];let o=0;const i=[],c=/([A-Z]{2,4})#(\d{4,6})/g;let s;for(;null!==(s=c.exec(e));){const e=s[1],t=s[2];if(w.current[e]){const n=s.index,o=s[0];i.push({idx:n,len:o.length,render:()=>/* @__PURE__ */x("button",{onClick:()=>M(e,t),className:"text-blue-600 hover:text-blue-800 hover:underline font-medium cursor-pointer",children:o},`ref-${r}-${n}`)})}}b.lastIndex=0;let a=0;for(let e=0;e<r;e++)a+=t[e].length+1;for(;null!==(s=b.exec(e));){const e="x"===s[1]||"X"===s[1],t=s.index,n=a+t;i.push({idx:t,len:s[0].length,render:()=>/* @__PURE__ */x("button",{onClick:()=>Z(n),className:`inline-flex items-center justify-center w-4 h-4 rounded border ${e?"bg-blue-500 border-blue-500 text-white":"border-gray-400 bg-white hover:border-blue-400"} cursor-pointer align-text-bottom mr-0.5`,children:e&&/* @__PURE__ */x(l,{name:"check",className:"w-3 h-3",strokeWidth:3})},`cb-${r}-${t}`)})}i.sort((e,t)=>e.idx-t.idx);for(const t of i)t.idx>o&&n.push(/* @__PURE__ */x("span",{children:e.slice(o,t.idx)},`t-${r}-${o}`)),n.push(t.render()),o=t.idx+t.len;o<e.length&&n.push(/* @__PURE__ */x("span",{children:e.slice(o)},`t-${r}-${o}`)),0===n.length&&n.push(/* @__PURE__ */x("span",{children:"​"},`empty-${r}`));const p=/^\[x\]/i.test(e.trimStart());/* @__PURE__ */
18
- return x("div",{className:p?"line-through text-gray-400":"",children:n},r)})})(D):/* @__PURE__ */x("p",{className:"text-gray-300 whitespace-pre-line",children:P})}),
19
- /* @__PURE__ */h("div",{className:"px-4 min-h-8 py-1 border-t border-line-subtle flex items-center gap-4 text-2xs text-ink-faintest",children:[
20
- /* @__PURE__ */x("span",{children:"[] checkbox"}),
21
- /* @__PURE__ */x("span",{children:"SO#35001 entity link"}),
22
- /* @__PURE__ */x("span",{className:"ml-auto",children:G?"Editing":"Click to edit"})]})]}):/* @__PURE__ */x("div",{className:"flex-1 flex items-center justify-center",children:/* @__PURE__ */h("div",{className:"text-center text-gray-400",children:[
23
- /* @__PURE__ */x(l,{name:"page",className:"h-12 w-12 mx-auto mb-3 text-gray-300",strokeWidth:1}),
24
- /* @__PURE__ */x("p",{className:"text-sm",children:"Select a note or create a new one"})]})})})]})}export{f 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,16 +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"./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 r,useCallback as c}from"react";import{jsxs as s,Fragment as a,jsx as i}from"react/jsx-runtime";var o=["AAPL","MSFT","GOOGL","TSLA","NVDA"],m="stock_symbols",l="stock_appearance",h={AAPL:{price:229.87,change:1.42,changePct:.62},MSFT:{price:451.16,change:-2.31,changePct:-.51},GOOGL:{price:178.34,change:.89,changePct:.5},AMZN:{price:201.45,change:-1.08,changePct:-.53},TSLA:{price:248.92,change:6.74,changePct:2.78},NVDA:{price:134.81,change:-3.12,changePct:-2.26},META:{price:563.27,change:4.55,changePct:.81}},p=Object.keys(h);function u(){try{const e=JSON.parse(localStorage.getItem(m)||"");if(Array.isArray(e)&&e.length)return e.slice(0,8)}catch{}return o}var d=e=>`${e>=0?"+":""}${e.toFixed(2)}`;function g(){const[o,g]=r(u),[x,k]=r(()=>e(l)),[j,N]=r(!1),[b,f]=r([]),[y,v]=r(x),[A,S]=r(""),D=c(()=>{f([...o]),v({...x}),S(""),N(!0)},[o,x]);n(D);const P=()=>{const e=A.trim().toUpperCase();!e||b.includes(e)||b.length>=8||(f(t=>[...t,e]),S(""))},J=p.filter(e=>!b.includes(e));/* @__PURE__ */
2
- return s(a,{children:[
3
- /* @__PURE__ */i("div",{style:{backgroundColor:`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${x.activeOpacity/100})`,backdropFilter:x.activeBlur>0?`blur(${x.activeBlur}px)`:void 0},children:/* @__PURE__ */i("div",{className:"px-4 py-3",children:0===o.length?/* @__PURE__ */i("div",{className:"text-xs text-gray-500 text-center py-6",children:"No symbols yet — add some in settings."}):/* @__PURE__ */i("div",{className:"space-y-0.5",children:o.map(e=>{const t=h[e],n=(t?.change??0)>=0,r=t?t.change>0?"text-green-600":t.change<0?"text-red-600":"text-gray-500":"text-gray-400";/* @__PURE__ */
4
- return s("div",{className:"flex items-center justify-between px-2 py-2 border-b border-gray-200 last:border-0",children:[
5
- /* @__PURE__ */i("span",{className:"text-sm font-bold text-gray-800 tracking-tight",children:e}),t?/* @__PURE__ */s("div",{className:"flex flex-col items-end leading-tight",children:[
6
- /* @__PURE__ */i("span",{className:"text-sm font-mono font-semibold text-gray-900 tabular-nums",children:(c=t.price,`$${c.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}`)}),
7
- /* @__PURE__ */s("span",{className:`text-2xs font-medium tabular-nums ${r}`,children:[n?"▲":"▼"," ",d(t.change)," (",d(t.changePct),"%)"]})]}):/* @__PURE__ */i("span",{className:"text-sm font-mono text-gray-400 tabular-nums",children:"—"})]},e);var c})})})}),
8
- /* @__PURE__ */i(t,{open:j,onClose:()=>N(!1),title:"Stock Settings",appearance:y,onAppearanceChange:v,onSave:()=>{const e=b.map(e=>e.toUpperCase()).slice(0,8);g(e),k(y),localStorage.setItem(m,JSON.stringify(e)),localStorage.setItem(l,JSON.stringify(y)),N(!1)},children:/* @__PURE__ */s("div",{children:[
9
- /* @__PURE__ */s("h3",{className:"text-sm font-semibold text-ink mb-2",children:["Symbols ",
10
- /* @__PURE__ */s("span",{className:"text-2xs font-normal text-ink-faintest",children:["(",b.length,"/",8,")"]})]}),
11
- /* @__PURE__ */s("div",{className:"space-y-1 mb-2",children:[b.map((e,t)=>/* @__PURE__ */s("div",{className:"flex items-center justify-between py-1 px-2 bg-gray-50 rounded",children:[
12
- /* @__PURE__ */i("span",{className:"text-sm font-semibold text-gray-700",children:e}),
13
- /* @__PURE__ */i("button",{onClick:()=>f(e=>e.filter((e,n)=>n!==t)),className:"text-red-400 hover:text-red-600",children:"×"})]},t)),0===b.length&&/* @__PURE__ */i("p",{className:"text-2xs text-ink-faintest italic",children:"No symbols — add a ticker below."})]}),b.length<8?/* @__PURE__ */s("div",{className:"flex items-center gap-2",children:[
14
- /* @__PURE__ */i("input",{value:A,onChange:e=>S(e.target.value),onKeyDown:e=>{"Enter"===e.key&&P()},placeholder:"e.g. NVDA",className:"flex-1 bg-gray-50 border border-gray-200 rounded px-2 py-1 text-sm uppercase focus:outline-none focus:ring-1 focus:ring-blue-500"}),
15
- /* @__PURE__ */i("button",{onClick:P,className:"text-sm font-medium text-blue-600 hover:text-blue-800 px-2",children:"+ Add"})]}):/* @__PURE__ */s("p",{className:"text-2xs text-ink-faintest italic",children:["Max ",8," symbols — remove one to add another."]}),J.length>0&&b.length<8&&/* @__PURE__ */i("div",{className:"flex flex-wrap gap-2 mt-2",children:J.map(e=>/* @__PURE__ */i("button",{onClick:()=>f(t=>t.length<8?[...t,e]:t),className:"text-2xs font-medium text-gray-600 bg-gray-100 hover:bg-gray-200 rounded px-2 py-0.5 transition-colors",children:e},e))}),
16
- /* @__PURE__ */i("p",{className:"text-2xs text-ink-faintest mt-2",children:"Demo prices — static sample data, no live feed."})]})})]})}export{g 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,29 +0,0 @@
1
- import{Tree as e,TreeRow as n,TreeGroup as l}from"./chunk-RUGQO7YF.js";import{MarqueeBox as a}from"./chunk-IC72MGON.js";import{EmptyState as i}from"./chunk-QVZKRROQ.js";import{ImageLightbox as r}from"./chunk-VIQ6OME2.js";import{DescriptionList as t}from"./chunk-SACUSHVN.js";import{Drawer as o}from"./chunk-V6Y4OC6K.js";import{Breadcrumbs as d}from"./chunk-XYECIBVX.js";import{useGridSelection as s}from"./chunk-VLKDWKVR.js";import{useMarquee as c}from"./chunk-OLFYNMTD.js";import{ROOT_KEY as u,mediaLibraryMenu as m}from"./chunk-MS5APD3V.js";import{useMediaMoveItems as p}from"./chunk-OPN4I565.js";import{copyToClipboard as h}from"./chunk-TMMNCXQT.js";import{DropdownMenu as f}from"./chunk-PN5FQVMB.js";import{NativeSelect as g}from"./chunk-SLU45G5J.js";import{MediaUploadGrid as v}from"./chunk-3UXXA2CS.js";import{MediaUsedInList as k}from"./chunk-UDKTAG57.js";import{Segmented as y}from"./chunk-3ELLBQPS.js";import{Checkbox_default as b}from"./chunk-CGZBDI6C.js";import{useContextMenu as w,ContextMenu as x}from"./chunk-W3OWPBQL.js";import{Banner as C}from"./chunk-ZGOHRLXG.js";import{Input_default as N}from"./chunk-MAMWQCJ6.js";import{IconButton_default as I}from"./chunk-PUF75SMJ.js";import{useFileIntake as D,FileIntakeAlert as S}from"./chunk-JTMEFXRL.js";import{ColoredBadge as j}from"./chunk-EPY34L26.js";import{Button_default as z}from"./chunk-I4VIEGCX.js";import{buttonClasses as F}from"./chunk-UQYNPYF4.js";import{Icon as O}from"./chunk-2UO47XB4.js";import{Tooltip as T}from"./chunk-6XBWM453.js";import{usePlotWidth as L}from"./chunk-MAFUXCPZ.js";import{useShellStrings as P}from"./chunk-GDQJBQ5B.js";import{useRef as E,useMemo as M,useCallback as A,useState as U,useEffect as B}from"react";import{jsxs as R,Fragment as K,jsx as Q}from"react/jsx-runtime";var V="application/x-efficient-media-files",G="application/x-efficient-media-folder",X="application/x-efficient-media-file";function J(e){if(!e||!Array.from(e.types).includes(X))return null;try{const n=JSON.parse(e.getData(X));if(n&&"string"==typeof n.id&&"string"==typeof n.url&&"string"==typeof n.name&&("image"===n.kind||"video"===n.kind))return{id:n.id,url:n.url,kind:n.kind,name:n.name}}catch{}return null}var W={type:"all",use:"any",sort:"newest"},Y={lock:/* @__PURE__ */Q(O,{name:"lock","aria-hidden":"true",className:"h-4 w-4"}),folder:/* @__PURE__ */Q(O,{name:"folder","aria-hidden":"true",className:"h-4 w-4"}),folderOpen:/* @__PURE__ */Q(O,{name:"folder-open","aria-hidden":"true",className:"h-4 w-4"}),folderPlus:/* @__PURE__ */Q(O,{name:"folder-plus","aria-hidden":"true",className:"h-4 w-4"}),trash:/* @__PURE__ */Q(O,{name:"trash","aria-hidden":"true",className:"h-4 w-4"}),upload:/* @__PURE__ */Q(O,{name:"upload","aria-hidden":"true",className:"h-4 w-4"}),search:/* @__PURE__ */Q(O,{name:"search","aria-hidden":"true",className:"h-4 w-4"}),grid:/* @__PURE__ */Q(O,{name:"grid","aria-hidden":"true",className:"h-4 w-4"}),list:/* @__PURE__ */Q(O,{name:"list","aria-hidden":"true",className:"h-4 w-4"}),more:/* @__PURE__ */Q(O,{name:"more","aria-hidden":"true",className:"h-4 w-4"}),copy:/* @__PURE__ */Q(O,{name:"copy","aria-hidden":"true",className:"h-4 w-4"}),edit:/* @__PURE__ */Q(O,{name:"edit","aria-hidden":"true",className:"h-4 w-4"}),swap:/* @__PURE__ */Q(O,{name:"swap","aria-hidden":"true",className:"h-4 w-4"}),crop:/* @__PURE__ */Q(O,{name:"crop","aria-hidden":"true",className:"h-4 w-4"}),external:/* @__PURE__ */Q(O,{name:"external","aria-hidden":"true",className:"h-4 w-4"}),undo:/* @__PURE__ */Q(O,{name:"undo","aria-hidden":"true",className:"h-4 w-4"})},$={link:/* @__PURE__ */Q(O,{name:"link","aria-hidden":"true",className:"h-3 w-3"}),email:/* @__PURE__ */Q(O,{name:"email","aria-hidden":"true",className:"h-3 w-3"}),lock:/* @__PURE__ */Q(O,{name:"lock","aria-hidden":"true",className:"h-3 w-3"}),clock:/* @__PURE__ */Q(O,{name:"clock","aria-hidden":"true",className:"h-3 w-3"})};function H({value:e,label:n,onDone:l}){const[a,i]=U(e),r=E(!1),t=e=>{r.current||(r.current=!0,l(e))};/* @__PURE__ */
2
- return Q(N,{size:"sm",autoFocus:!0,"aria-label":n,value:a,onChange:e=>i(e.target.value),onFocus:e=>e.currentTarget.select(),onKeyDown:n=>{n.stopPropagation(),"Enter"===n.key?(n.preventDefault(),t(a.trim()||e)):"Escape"===n.key&&(n.preventDefault(),t(null))},onBlur:()=>t(a.trim()||e),onClick:e=>e.stopPropagation()})}function q(O){const{mode:J="manage",layout:q="auto",location:Z,onLocationChange:_,folders:ee,products:ne,allFilesCount:le,trashCount:ae,files:ie,query:re,onQueryChange:te,filters:oe=W,onFiltersChange:de,extraFilters:se,view:ce="grid",onViewChange:ue,selectedIds:me,onSelectionChange:pe,usedIn:he,denied:fe={},accept:ge="image/*,video/*",maxSizeBytes:ve,busy:ke,progress:ye,onUpload:be,onNewFolder:we,onRename:xe,onMove:Ce,onTrash:Ne,onDeleteFolder:Ie,onRestore:De,onDeleteForever:Se,onEmptyTrash:je,onReplace:ze,onCropEdit:Fe,onOpenInDesign:Oe,onChoose:Te,onCancel:Le,pickNote:Pe,onDragOut:Ee,className:Me=""}=O,Ae=P().mediaLibrary,Ue=P().media,Be="pick"===J,Re=!Be,Ke=E(null),Qe=L(Ke,"phone"===q?343:1200),Ve="phone"===q||"auto"===q&&Qe<640,Ge=M(()=>function(e=[]){const n=/* @__PURE__ */new Map,l=(e,a)=>{for(const i of e){const e=[...a,i];n.set(i.id,{node:i,path:e}),i.children&&l(i.children,e)}};return l(e,[]),n}(ne),[ne]),Xe=M(()=>new Map(ee.map(e=>[e.id,e])),[ee]),Je=M(()=>{const e=/* @__PURE__ */new Map;for(const n of ee){const l=n.parentId&&Xe.has(n.parentId)?n.parentId:null;e.set(l,[...e.get(l)??[],n])}return e},[ee,Xe]),We=A(e=>{const n=[];for(let l=e?Xe.get(e):void 0;l&&(n.unshift(l),!(n.length>ee.length));l=l.parentId?Xe.get(l.parentId):void 0);return n},[Xe,ee.length]),Ye=A((e,n)=>We(e).some(e=>e.id===n),[We]),[$e,He]=U(()=>/* @__PURE__ */new Set(["@files"])),qe=e=>He(n=>{const l=new Set(n);return l.has(e)?l.delete(e):l.add(e),l}),Ze=A(e=>{He(n=>e.every(e=>n.has(e))?n:/* @__PURE__ */new Set([...n,...e]))},[]),_e="files"===(en=Z).place?`files:${en.folderId??""}`:"products"===en.place?`products:${en.nodeId??""}`:"trash";var en;B(()=>{if("files"===Z.place)Ze(["@files",...We(Z.folderId).slice(0,-1).map(e=>e.id)]);else if("products"===Z.place){const e=Z.nodeId?Ge.get(Z.nodeId)?.path??[]:[];Ze(["@products",...e.slice(0,-1).map(e=>`p:${e.id}`)])}},[_e]);const nn="products"===Z.place,ln="trash"===Z.place,an="files"===Z.place,rn=an?Z.folderId:null,tn=nn&&Z.nodeId?Ge.get(Z.nodeId)?.path[0]:void 0,on=e=>e?.sharedFrom?`${Ae.readOnly} ${Ae.editedAtHq(e.sharedFrom)}`:Ae.readOnly,dn=M(()=>ie.map(e=>e.id),[ie]),sn=M(()=>new Map(ie.map(e=>[e.id,e])),[ie]),cn=s(dn),un=M(()=>dn.filter(e=>cn.selected.has(e)),[dn,cn.selected]),mn=1===un.length?sn.get(un[0]):void 0,pn=E(!0);B(()=>{pn.current?pn.current=!1:cn.clear()},[_e]);const hn=me?.join("\0");B(()=>{me&&cn.setSelection(me)},[hn]);const fn=E(hn??""),gn=un.join("\0");B(()=>{fn.current!==gn&&(fn.current=gn,pe?.(un))},[gn]);const vn=(e,n={})=>{Be?cn.select(e):cn.select(e,{ctrl:!(!n.ctrlKey&&!n.metaKey),shift:!!n.shiftKey})},[kn,yn]=U(null),bn=e=>{const n=kn;if(yn(null),!n||null==e)return;e!==("folder"===n.kind?Xe.get(n.id)?.name:sn.get(n.id)?.name)&&xe?.(n,e)},wn=async e=>{if(!we)return;const n=await we(e);Ze(["@files",...e?[e]:[]]),"string"==typeof n&&yn({kind:"folder",id:n})},xn=A(e=>{const n=[],l=n=>{if("files"===e.kind)return n===rn&&an?Ae.alreadyHere:void 0;const l=Xe.get(e.id);return n===e.id||n&&Ye(n,e.id)?Ae.notIntoItself:(l?.parentId??null)===n?Ae.folderAlreadyHere:void 0};n.push({key:u,label:Ae.allFiles,disabledReason:l(null)});const a=(e,i)=>{for(const r of Je.get(e)??[])n.push({key:r.id,label:r.name,depth:i,disabledReason:l(r.id)}),a(r.id,i+1)};return a(null,1),n},[Je,Xe,an,Ye,rn,Ae]),Cn=A(e=>{const n=new Set(e.map(e=>sn.get(e)?.kind??"image"));return 1===n.size?[...n][0]:"file"},[sn]),[Nn,In]=U(null),Dn={words:Ae,media:Ue,denied:fe,moveTargets:xn,kindOf:Cn,urlOf:e=>sn.get(e)?.url,newSubfolder:we&&Re?e=>{wn(e)}:void 0,rename:xe&&Re?e=>{"file"!==e.kind||cn.isSelected(e.id)||cn.select(e.id),yn(e)}:void 0,move:Ce&&Re?Ce:void 0,trash:Ne&&Re?Ne:void 0,deleteFolder:Ie&&Re?Ie:void 0,folderNotEmpty:e=>!!Xe.get(e)?.notEmpty,replace:ze&&Re?ze:void 0,copyUrl:e=>{const n=sn.get(e)?.url;n&&h(Ae.urlLabel,n)},openInDesign:Oe,restore:De,deleteForever:Se},Sn=e=>m(e,Dn),jn=w(),zn=(e,n)=>{Be||(cn.isSelected(e)||cn.select(e),jn.open(n,(e=>{const n=cn.isSelected(e)?un:[e];return nn?{kind:"render",id:e}:ln?{kind:"trashed",ids:n}:{kind:"files",ids:n}})(e)))},[Fn,On]=U(null),[Tn,Ln]=U(null),[Pn,En]=U(null);B(()=>{if(!Tn&&!Fn)return;const e=()=>{Ln(null),On(null)};return window.addEventListener("dragend",e),window.addEventListener("drop",e),()=>{window.removeEventListener("dragend",e),window.removeEventListener("drop",e)}},[Tn,Fn]);const Mn=(e,n)=>Array.from(e.dataTransfer?.types??[]).includes(n),An=(e,n)=>!(!Ce||fe.move||Be)&&(!!Mn(e,V)||!(!Mn(e,G)||!Pn)&&(n!==Pn&&!(n&&Ye(n,Pn)))),Un=(e,n)=>({onDragEnter:l=>{An(l,n)&&(l.preventDefault(),On(e))},onDragOver:l=>{An(l,n)&&(l.preventDefault(),l.dataTransfer.dropEffect="move",Fn!==e&&On(e))},onDragLeave:n=>{const l=n.relatedTarget;l&&n.currentTarget.contains(l)||On(n=>n===e?null:n)},onDrop:e=>{if(An(e,n))if(e.preventDefault(),On(null),Mn(e,V)){let l;try{l=JSON.parse(e.dataTransfer.getData(V))}catch{l=null}Array.isArray(l)&&l.length&&Ce({kind:"files",ids:l.map(String)},n)}else Pn&&(Ce({kind:"folder",id:Pn},n),En(null))}}),Bn=e=>{const n=e=>Mn(e,V)||Mn(e,G)||Mn(e,"Files");return{onDragEnter:l=>{n(l)&&Ln(e)},onDragOver:l=>{n(l)&&Tn!==e&&Ln(e)},onDragLeave:n=>{const l=n.relatedTarget;l&&n.currentTarget.contains(l)||Ln(n=>n===e?null:n)}}},Rn=(e,n,l)=>/* @__PURE__ */Q(T,{side:"right",content:Tn===e?Ae.noDropProducts:on(l),open:Tn===e||!Tn&&void 0,children:/* @__PURE__ */Q("span",{children:n})}),Kn=e=>({onContextMenu:n=>{jn.open(n,e)}}),Qn=(e,a,i)=>e.map(e=>{const r=`p:${e.id}`,t=i??e,o=$e.has(r),d=e.children?.length?e.children:null;/* @__PURE__ */
3
- return R("div",{role:"none",className:"contents",children:[
4
- /* @__PURE__ */Q(n,{label:Rn(r,e.name,t),level:a,icon:d&&o?Y.folderOpen:Y.folder,count:e.count,countLabel:null!=e.count?e.countLabel??Ae.fileCount(e.count):void 0,selected:nn&&Z.nodeId===e.id,expanded:d?o:void 0,onToggle:d?()=>qe(r):void 0,onSelect:()=>_({place:"products",nodeId:e.id}),rowProps:{"data-media-row":r,...Bn(r),...Re?Kn({kind:"product-node",id:e.id}):{}}}),d&&o&&/* @__PURE__ */Q(l,{children:Qn(d,a+1,t)})]},e.id)}),Vn=(e,a)=>(Je.get(e)??[]).map(e=>{const i=Je.get(e.id),r=$e.has(e.id),t="folder"===kn?.kind&&kn.id===e.id,o=Sn({kind:"folder",id:e.id});/* @__PURE__ */
5
- return R("div",{role:"none",className:"contents",children:[
6
- /* @__PURE__ */Q(n,{label:e.name,level:a,icon:i&&r?Y.folderOpen:Y.folder,count:e.count,countLabel:null!=e.count?e.countLabel??Ae.fileCount(e.count):void 0,selected:t||an&&Z.folderId===e.id,expanded:i?r:void 0,onToggle:i?()=>qe(e.id):void 0,onSelect:()=>_({place:"files",folderId:e.id}),drop:Fn===e.id?"into":void 0,dragging:Pn===e.id,draggable:Re&&!!Ce&&!fe.move,rename:t?/* @__PURE__ */Q(H,{value:e.name,label:Ae.folderName,onDone:bn}):void 0,actions:Re&&o.length?/* @__PURE__ */Q(f,{align:"end","aria-label":Ae.folderActions,trigger:Y.more,items:o}):void 0,rowProps:{"data-media-row":e.id,...Un(e.id,e.id),...Re?Kn({kind:"folder",id:e.id}):{},...Re&&Ce&&!fe.move?{draggable:!0,onDragStart:n=>{n.dataTransfer.effectAllowed="move",n.dataTransfer.setData(G,e.id),En(e.id)},onDragEnd:()=>{En(null),On(null)}}:{}}}),i&&r&&/* @__PURE__ */Q(l,{children:Vn(e.id,a+1)})]},e.id)}),Gn=$e.has("@files"),Xn=$e.has("@products"),Jn=/* @__PURE__ */R(e,{"aria-label":Ae.folders,children:[ne&&/* @__PURE__ */R(K,{children:[
7
- /* @__PURE__ */Q(n,{label:Rn("@products",Ae.products),level:1,icon:Y.lock,badge:{label:Ae.readOnlyBadge,tone:"neutral"},expanded:ne.length?Xn:void 0,onToggle:()=>qe("@products"),selected:nn&&null==Z.nodeId,onSelect:()=>_({place:"products",nodeId:null}),rowProps:{"data-media-row":"@products",...Bn("@products")}}),Xn&&ne.length>0&&/* @__PURE__ */Q(l,{children:Qn(ne,2)})]}),
8
- /* @__PURE__ */Q(n,{label:Ae.allFiles,level:1,icon:Gn?Y.folderOpen:Y.folder,count:le,countLabel:null!=le?Ae.fileCount(le):void 0,expanded:Je.get(null)?.length?Gn:void 0,onToggle:()=>qe("@files"),selected:an&&null==Z.folderId,onSelect:()=>_({place:"files",folderId:null}),drop:"@files"===Fn?"into":void 0,rowProps:{"data-media-row":"@files",...Un("@files",null)}}),Gn&&(Je.get(null)?.length??0)>0&&/* @__PURE__ */Q(l,{children:Vn(null,2)}),Re&&/* @__PURE__ */Q(n,{label:Ae.trash,level:1,icon:Y.trash,count:ae,countLabel:null!=ae?Ae.fileCount(ae):void 0,selected:ln,onSelect:()=>_({place:"trash"}),rowProps:{"data-media-row":"@trash"}})]}),Wn=(()=>{if(ln)return[{label:Ae.trash}];if(nn){const e=Z.nodeId?Ge.get(Z.nodeId)?.path??[]:[];return[{label:Ae.products,onClick:e.length?()=>_({place:"products",nodeId:null}):void 0},...e.map((n,l)=>({label:n.name,onClick:l<e.length-1?()=>_({place:"products",nodeId:n.id}):void 0}))]}const e=We(rn);return[{label:Ae.allFiles,onClick:e.length?()=>_({place:"files",folderId:null}):void 0},...e.map((n,l)=>({label:n.name,onClick:l<e.length-1?()=>_({place:"files",folderId:n.id}):void 0}))]})(),Yn=nn?Ae.readOnly:fe.upload,$n=!!be&&!ln&&!Yn,Hn=D({accept:ge,maxSizeBytes:ve,multiple:!0,disabled:!$n,onAccept:e=>be?.(e,rn)}),qn=nn?Ae.noProductFolder:fe.newFolder,Zn=e=>e?{"aria-disabled":!0,disabledReason:e}:{},_n=/* @__PURE__ */R("div",{className:"flex flex-wrap items-center gap-2",children:[Re&&we&&!ln&&/* @__PURE__ */Q(z,{variant:"secondary",size:"sm",leftIcon:Y.folderPlus,onClick:()=>{wn(rn)},...Zn(qn),children:Ae.newFolder}),be&&!ln&&/* @__PURE__ */Q(z,{variant:"primary",size:"sm",leftIcon:Y.upload,onClick:()=>Hn.open(),...Zn(Yn),children:Ae.upload}),Re&&ln&&je&&ie.length>0&&/* @__PURE__ */Q(z,{variant:"danger",size:"sm",onClick:je,...Zn(fe.deleteForever),children:Ae.emptyTrash})]}),el=(e,n,l,a,i)=>/* @__PURE__ */Q("div",{style:{width:Ve?void 0:i,flex:Ve?"1 1 120px":"0 0 auto",minWidth:0},children:/* @__PURE__ */Q(g,{size:"sm","aria-label":e,value:n,onChange:a,options:l})},e),nl=e=>n=>de?.({...oe,[e]:n}),ll=/* @__PURE__ */R("div",{className:"flex flex-wrap items-center gap-2",children:[te&&/* @__PURE__ */Q("div",{style:{flex:"1 1 200px",minWidth:0},children:/* @__PURE__ */Q(N,{size:"sm",type:"search",leftIcon:Y.search,placeholder:nn?Ae.searchProducts:Ae.search,"aria-label":nn?Ae.searchProducts:Ae.search,value:re??"",onChange:e=>te(e.target.value)})}),de&&el(Ae.mediaType,oe.type,[{value:"all",label:Ae.allTypes},{value:"image",label:Ae.images},{value:"video",label:Ae.videos},{value:"svg",label:"SVG"},{value:"gif",label:"GIF"}],nl("type"),130),de&&!nn&&!ln&&el(Ae.use,oe.use,[{value:"any",label:Ae.anyUse},{value:"email",label:Ae.emailOnly},{value:"website",label:Ae.websiteOnly},{value:"unused",label:Ae.notUsed}],nl("use"),130),de&&Re&&el(Ae.sort,oe.sort,[{value:"newest",label:Ae.newest},{value:"name",label:Ae.byName},{value:"size",label:Ae.bySize}],nl("sort"),110),se?.map(e=>el(e.label,e.value,e.options,e.onChange,120)),ue&&/* @__PURE__ */Q(y,{size:"sm",label:Ae.view,value:ce,onChange:ue,options:[{value:"grid",label:Ae.grid,icon:Y.grid},{value:"list",label:Ae.list,icon:Y.list}]})]}),al=e=>{const n=[];return null!=e.trashedDaysAgo&&n.push({key:"t",label:Ae.daysAgo(e.trashedDaysAgo),count:e.trashedDaysAgo,icon:$.clock,tone:"neutral"}),e.usedCount&&n.push({key:"u",label:Ae.used(e.usedCount),count:e.usedCount,icon:$.link,tone:"active"}),e.email&&n.push({key:"e",label:Ae.email,icon:$.email,tone:"queued"}),e.private&&n.push({key:"p",label:Ae.private,icon:$.lock,tone:"neutral"}),n},il=e=>al(e).map(e=>/* @__PURE__ */Q(j,{tone:e.tone,size:"xs",children:e.label},e.key)),rl=Re&&an&&!!Ce&&!fe.move,tl=!!Ee&&!ln,ol=e=>!tl||e.private||e.pickDisabledReason?void 0:JSON.stringify({id:e.id,url:e.url,kind:"video"===e.kind?"video":"image",name:e.name}),dl=ie.map(e=>({id:e.id,url:e.thumbUrl??e.url,name:e.name,kind:e.kind,caption:e.name,badges:al(e),dragData:rl?JSON.stringify(cn.isSelected(e.id)?un:[e.id]):ol(e),...rl&&ol(e)?{dragAlso:{[X]:ol(e)}}:{}})),sl=Ve?Math.max(72,Math.floor((Qe-24-16-1)/3)):112,cl=E(null),ul=c({containerRef:cl,enabled:Re&&!Ve&&ie.length>0,selected:cn.selected,setSelection:e=>cn.setSelection(e),clearSelection:cn.clear}),ml=e=>{if(Be){const n=sn.get(e);return void(!n||n.private||n.pickDisabledReason||Te?.(n))}const n=dn.indexOf(e);n>=0&&In(n)},pl=ie.length?null:re?/* @__PURE__ */Q(i,{variant:"dashed",title:Ae.noMatches}):nn?/* @__PURE__ */Q(i,{variant:"dashed",title:Ae.emptyProducts,description:on(tn)}):ln?/* @__PURE__ */Q(i,{variant:"dashed",title:Ae.trashEmpty}):!$n||Be?/* @__PURE__ */Q(i,{variant:"dashed",title:Ae.emptyFolder}):null,hl="list"===ce&&ie.length>0,fl=pl??(hl?/* @__PURE__ */Q("ul",{role:"listbox","aria-multiselectable":Re||void 0,"aria-label":Ae.folders,className:"flex flex-col gap-1",children:ie.map(e=>/* @__PURE__ */R("li",{role:"option","aria-selected":cn.isSelected(e.id),tabIndex:0,"data-grid-item":"","data-grid-id":e.id,onClick:n=>vn(e.id,n),onDoubleClick:()=>ml(e.id),onContextMenu:n=>zn(e.id,n),draggable:!!ol(e)||void 0,onDragStart:ol(e)?n=>{n.dataTransfer.effectAllowed="link",n.dataTransfer.setData(X,ol(e)),Ee("start")}:void 0,onDragEnd:ol(e)?e=>Ee("none"===e.dataTransfer.dropEffect?"cancelled":"dropped"):void 0,onKeyDown:n=>{"Enter"!==n.key&&" "!==n.key||(n.preventDefault(),vn(e.id,n))},className:"flex h-12 cursor-pointer items-center gap-3 rounded-md px-2 text-sm rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] "+(cn.isSelected(e.id)?"bg-accent-tint text-blue-700":"text-ink hover:bg-gray-100"),children:[
9
- /* @__PURE__ */Q("img",{src:e.thumbUrl??e.url,alt:"",className:"h-10 w-10 shrink-0 rounded bg-gray-100 object-contain"}),
10
- /* @__PURE__ */Q("span",{className:"min-w-0 flex-1 truncate",children:e.name}),
11
- /* @__PURE__ */Q("span",{className:"flex shrink-0 items-center gap-1",children:il(e)}),e.sizeLabel&&/* @__PURE__ */Q("span",{className:"w-16 shrink-0 text-right text-xs text-ink-faint",children:e.sizeLabel})]},e.id))}):/* @__PURE__ */Q(v,{items:dl,readOnly:!$n||Be,onFiles:$n&&!Be?e=>be(e,rn):void 0,accept:ge,maxSizeBytes:ve,busy:ke,progress:ye,fit:"contain",thumbSize:sl,dragType:rl?V:tl?X:void 0,onDragOutChange:tl?e=>Ee(e):void 0,selected:cn.selected,onItemClick:vn,onItemDoubleClick:ml,onItemContextMenu:Re?zn:void 0,menuOnMedia:Re})),gl=p({count:un.length,kind:Cn(un),targets:xn({kind:"files",ids:un}),onPick:e=>Ce?.({kind:"files",ids:un},e.key===u?null:e.key)}),vl=F({variant:"secondary",size:"sm"}),kl=/* @__PURE__ */Q(f,{align:"start",triggerClassName:vl,trigger:/* @__PURE__ */R(K,{children:[Y.folder,Ae.moveTo]}),items:gl,disabled:!!fe.move}),yl=Re&&un.length>1&&!nn?/* @__PURE__ */R("div",{"data-media-bulk":"",className:"flex flex-wrap items-center gap-2 rounded-lg border border-line px-3 py-2",children:[
12
- /* @__PURE__ */Q(b,{checked:un.length===ie.length,indeterminate:un.length<ie.length,onChange:e=>e?cn.selectAll():cn.clear(),label:Ae.selected(un.length)}),/* @__PURE__ */R(K,ln?{children:[De&&/* @__PURE__ */Q(z,{variant:"secondary",size:"sm",leftIcon:Y.undo,onClick:()=>De(un),...Zn(fe.restore),children:Ae.restore}),Se&&/* @__PURE__ */Q(z,{variant:"secondary-danger",size:"sm",onClick:()=>Se(un),...Zn(fe.deleteForever),children:Ae.deleteForever})]}:{children:[Ce&&kl,xe&&/* @__PURE__ */Q(z,{variant:"secondary",size:"sm",leftIcon:Y.edit,disabled:!0,children:Ae.rename}),Ne&&/* @__PURE__ */Q(z,{variant:"secondary",size:"sm",leftIcon:Y.trash,onClick:()=>Ne({kind:"files",ids:un}),...Zn(fe.trash),children:Ae.moveFilesToTrash(un.length)})]}),
13
- /* @__PURE__ */Q(z,{variant:"ghost",size:"sm",onClick:cn.clear,children:Ae.clearSelection})]}):null,bl=e=>{const n=[],l=(e,l,a)=>{null!=a&&""!==a&&n.push({key:e,label:l,value:a})},a="file"===kn?.kind&&kn.id===e.id;l("name",Ae.name,a?/* @__PURE__ */Q(H,{value:e.name,label:Ae.fileName,onDone:bn}):e.name),l("type",Ae.type,e.typeLabel),l("size",Ae.size,e.sizeLabel),l("resolution",Ae.resolution,e.resolution),nn?(l("design",Ae.design,e.design),l("finish",Ae.finish,e.finish),l("angle",Ae.angleLug,e.angleLug),l("owner",Ae.owner,e.owner)):(l("added",Ae.addedBy,e.addedBy),l("folder",Ae.folder,e.folderPath)),l("used",Ae.usedIn,null!=e.usedCount?Ae.places(e.usedCount):void 0);const i=m({kind:"files",ids:[e.id]},Dn).find(e=>"submenu"===e.type);/* @__PURE__ */
14
- return R("div",{"data-media-details":"",className:"flex flex-col gap-3",children:[
15
- /* @__PURE__ */Q("img",{src:e.url,alt:e.name,className:"aspect-square w-full rounded-lg bg-gray-100 object-contain"}),nn&&/* @__PURE__ */Q(C,{tone:"neutral",title:Ae.readOnlyBadge,children:on(tn)}),
16
- /* @__PURE__ */Q(t,{size:"sm",columns:1,items:n}),!ln&&/* @__PURE__ */R("div",{className:"flex gap-2",children:[
17
- /* @__PURE__ */Q("div",{style:{flex:"1 1 0",minWidth:0},children:/* @__PURE__ */Q(N,{size:"sm",readOnly:!0,value:e.url,"aria-label":Ae.fileUrl,onFocus:e=>e.currentTarget.select()})}),
18
- /* @__PURE__ */Q(z,{variant:"secondary",size:"sm",leftIcon:Y.copy,onClick:()=>Dn.copyUrl(e.id),children:Ae.copyUrl})]}),an&&Re&&/* @__PURE__ */R("div",{className:"flex flex-wrap gap-2",children:[ze&&/* @__PURE__ */Q(z,{variant:"secondary",size:"sm",leftIcon:Y.swap,onClick:()=>ze(e.id),...Zn(fe.replace),children:Ae.replace}),Fe&&/* @__PURE__ */Q(z,{variant:"secondary",size:"sm",leftIcon:Y.crop,onClick:()=>Fe(e.id),children:Ae.cropEdit}),Ce&&"submenu"===i?.type&&/* @__PURE__ */Q(f,{align:"start",triggerClassName:vl,trigger:/* @__PURE__ */R(K,{children:[Y.folder,Ae.moveTo]}),items:i.items,disabled:!!fe.move}),xe&&/* @__PURE__ */Q(z,{variant:"secondary",size:"sm",leftIcon:Y.edit,onClick:()=>yn({kind:"file",id:e.id}),...Zn(fe.rename),children:Ae.rename}),Ne&&/* @__PURE__ */Q(I,{"aria-label":Ae.moveToTrash,size:"sm",onClick:()=>Ne({kind:"files",ids:[e.id]}),disabledReason:fe.trash,"aria-disabled":!!fe.trash||void 0,children:Y.trash})]}),ln&&Re&&/* @__PURE__ */R("div",{className:"flex flex-wrap gap-2",children:[De&&/* @__PURE__ */Q(z,{variant:"primary",size:"sm",leftIcon:Y.undo,onClick:()=>De([e.id]),...Zn(fe.restore),children:Ae.restore}),Se&&/* @__PURE__ */Q(z,{variant:"danger",size:"sm",onClick:()=>Se([e.id]),...Zn(fe.deleteForever),children:Ae.deleteForever})]}),nn&&Oe&&/* @__PURE__ */Q(z,{variant:"secondary",size:"sm",leftIcon:Y.external,onClick:()=>Oe({kind:"render",id:e.id}),children:Ae.openInDesign}),he&&/* @__PURE__ */Q(k,{items:he})]})},wl=mn?mn.private?Ae.privateNoPick:mn.pickDisabledReason:void 0,xl=Be?/* @__PURE__ */R("div",{"data-media-picker-footer":"",className:"flex flex-wrap items-center justify-between gap-2 border-t border-line px-3 py-2",children:[
19
- /* @__PURE__ */Q("span",{className:"min-w-0 truncate text-sm text-ink-faint",children:mn?Ae.oneChosen(mn.name):Ae.noneChosen}),
20
- /* @__PURE__ */R("div",{className:"flex gap-2",children:[Le&&/* @__PURE__ */Q(z,{variant:"secondary",size:"sm",onClick:Le,children:Ae.cancel}),
21
- /* @__PURE__ */Q(z,{variant:"primary",size:"sm",disabled:!mn,...Zn(wl),onClick:()=>{mn&&!wl&&Te?.(mn)},children:Ae.chooseImage})]})]}):null,Cl=Re&&!!mn,Nl=/* @__PURE__ */R("div",{className:"flex min-w-0 flex-col gap-3",children:[Pe&&/* @__PURE__ */Q(C,{tone:"neutral",children:Pe}),
22
- /* @__PURE__ */R("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[
23
- /* @__PURE__ */Q(d,{items:Wn}),_n]}),ll,yl,
24
- /* @__PURE__ */R("div",{ref:cl,className:"relative",onPointerDown:ul.onPointerDown,onKeyDown:e=>{Re&&(e.ctrlKey||e.metaKey)&&"a"===e.key.toLowerCase()?(e.preventDefault(),cn.selectAll()):"Escape"===e.key&&cn.size&&cn.clear()},children:[fl,
25
- /* @__PURE__ */Q(a,{rect:ul.rect})]}),$n&&/* @__PURE__ */Q("input",{...Hn.inputProps}),
26
- /* @__PURE__ */Q(S,{rejections:Hn.rejections})]});/* @__PURE__ */
27
- return R("div",{ref:Ke,"data-media-library":"","data-layout":Ve?"phone":"wide",className:`flex h-full min-h-0 min-w-0 flex-col ${Me}`.trim(),children:[/* @__PURE__ */R("div",Ve?{className:"flex flex-col gap-3 p-3",children:[Jn,Nl]}:{className:"flex min-h-0 min-w-0 flex-1",children:[
28
- /* @__PURE__ */Q("div",{className:"shrink-0 overflow-y-auto border-r border-line p-3",style:{width:280,"--rosh-tree-ground":"var(--surface)"},children:Jn}),
29
- /* @__PURE__ */Q("div",{className:"min-w-0 flex-1 overflow-y-auto p-3",children:Nl}),Cl&&/* @__PURE__ */Q("div",{className:"shrink-0 overflow-y-auto border-l border-line p-3",style:{width:300},children:bl(mn)})]}),xl,Ve&&/* @__PURE__ */Q(o,{open:Cl,onClose:cn.clear,side:"bottom",title:mn?.name,children:mn&&bl(mn)}),jn.state&&/* @__PURE__ */Q(x,{...jn.props,items:Sn(jn.state.data)}),null!=Nn&&ie.length>0&&/* @__PURE__ */Q(r,{images:ie.map(e=>({url:e.url,caption:e.name})),startIndex:Math.min(Nn,ie.length-1),onClose:()=>In(null)})]})}export{V as MEDIA_FILES_DRAG_TYPE,X as MEDIA_FILE_DRAG_TYPE,G as MEDIA_FOLDER_DRAG_TYPE,q as MediaLibrary,J as readMediaFileDrag};