efficient-shell 13.25.0 → 14.1.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 (273) hide show
  1. package/README.md +31 -4
  2. package/dist/{Browser-W2WVSAEN.js → Browser-L2NP7DLM.js} +14 -14
  3. package/dist/Calculator-7CY2CRGB.js +29 -0
  4. package/dist/{CurrencyConverter-VH4UVYLO.js → CurrencyConverter-FXWM3DBQ.js} +9 -9
  5. package/dist/{Files-6QZFFGSH.js → Files-5S6UFGST.js} +82 -82
  6. package/dist/{Notepad-YU4HIJD2.js → Notepad-HC46LWV5.js} +8 -8
  7. package/dist/PomodoroTimer-RPGWT26T.js +91 -0
  8. package/dist/{Preview-H7N2MMAI.js → Preview-L6FJXBAE.js} +37 -37
  9. package/dist/Sidebar-2TYZENQL.js +44 -0
  10. package/dist/{Stock-YL732PKW.js → Stock-TUPZORQN.js} +4 -4
  11. package/dist/{Weather-3CBRXNNM.js → Weather-URCO6JML.js} +23 -23
  12. package/dist/{WorldClock-LONNWCRG.js → WorldClock-EBBUWG5L.js} +6 -6
  13. package/dist/ai/index.js +92 -92
  14. package/dist/apps/index.js +1 -1
  15. package/dist/bin/browser-check.js +1 -1
  16. package/dist/bin/media-host-check.js +1 -1
  17. package/dist/bin/ui-check.js +1 -1
  18. package/dist/charts/ChordChart.js +1 -1
  19. package/dist/charts/FlowChart.js +1 -1
  20. package/dist/charts/RadarChart.js +1 -1
  21. package/dist/charts/SankeyChart.js +1 -1
  22. package/dist/charts/SpecChart.js +1 -1
  23. package/dist/charts/SunburstChart.js +1 -1
  24. package/dist/charts/TreemapChart.js +1 -1
  25. package/dist/{chunk-XVMCSUAV.js → chunk-22SVN2ZM.js} +1 -1
  26. package/dist/{chunk-ZDFMYAQB.js → chunk-24BF22NF.js} +1 -1
  27. package/dist/{chunk-JIJZBM25.js → chunk-2RLWGWOU.js} +13 -13
  28. package/dist/{chunk-VP2IQJUD.js → chunk-2SOGTOUQ.js} +4 -4
  29. package/dist/{chunk-4VFEPP2W.js → chunk-2XDO7FZC.js} +13 -13
  30. package/dist/{chunk-SLEA47VA.js → chunk-3L7BEEBW.js} +1 -1
  31. package/dist/{chunk-GZRNOIEE.js → chunk-3ZJAQSFS.js} +3 -3
  32. package/dist/{chunk-BQQEQCSK.js → chunk-47BGAQWD.js} +1 -1
  33. package/dist/{chunk-7AVPMO4F.js → chunk-4BRVZAIW.js} +1 -1
  34. package/dist/chunk-4DNPUG3T.js +7 -0
  35. package/dist/chunk-5F3HPOBH.js +1 -0
  36. package/dist/{chunk-VKZC3NPM.js → chunk-5O4HMXPQ.js} +2 -2
  37. package/dist/{chunk-JLSXDYS4.js → chunk-5SQHRDFC.js} +2 -2
  38. package/dist/{chunk-LQIHBIXG.js → chunk-6AYAB5FN.js} +5 -5
  39. package/dist/{chunk-VGUB7LPF.js → chunk-6IP4Q3AT.js} +52 -52
  40. package/dist/{chunk-527WMFTR.js → chunk-6RU2PGQK.js} +1 -1
  41. package/dist/{chunk-UVPDEGIA.js → chunk-6X32SWQI.js} +1 -1
  42. package/dist/{chunk-A5FC4LR7.js → chunk-7D2QZ6JA.js} +1 -1
  43. package/dist/{chunk-2YHS5E27.js → chunk-7OVMWXFM.js} +1 -1
  44. package/dist/{chunk-LC2UF3AA.js → chunk-7WF6LFOJ.js} +1 -1
  45. package/dist/{chunk-IJG4UEKF.js → chunk-A3VLZZHJ.js} +8 -8
  46. package/dist/{chunk-LG6NDTHZ.js → chunk-AH5MLH54.js} +1 -1
  47. package/dist/chunk-AJPQJ7TC.js +6 -0
  48. package/dist/{chunk-TNALBYLY.js → chunk-ALZHFQRX.js} +1 -1
  49. package/dist/{chunk-S5MTTJ3F.js → chunk-AZZ4NO2D.js} +12 -12
  50. package/dist/{chunk-P4VOUPRF.js → chunk-CHDGSJLV.js} +6 -6
  51. package/dist/{chunk-VY6OQRZA.js → chunk-CJ4OEY3T.js} +1 -1
  52. package/dist/{chunk-Q36KB5RQ.js → chunk-CXEELIRW.js} +11 -11
  53. package/dist/{chunk-MZ3JADHG.js → chunk-DBBOD5QW.js} +1 -1
  54. package/dist/chunk-DBQNYJZ6.js +1 -0
  55. package/dist/{chunk-65BW43PF.js → chunk-DNPAYNNU.js} +1 -1
  56. package/dist/{chunk-TTRLYWP4.js → chunk-DO6P6LYU.js} +1 -1
  57. package/dist/chunk-DOJSWVBX.js +6 -0
  58. package/dist/chunk-DTFX624I.js +8 -0
  59. package/dist/chunk-E57C7NBA.js +2 -0
  60. package/dist/{chunk-D5PXRJHA.js → chunk-EBODRYXS.js} +14 -14
  61. package/dist/{chunk-YDJ5IZOU.js → chunk-EDRELF6L.js} +1 -1
  62. package/dist/{chunk-M3HTP2N6.js → chunk-EHNW3UNC.js} +6 -6
  63. package/dist/{chunk-AH2NEKEN.js → chunk-EHSK43WG.js} +8 -8
  64. package/dist/{chunk-VMAIZU5S.js → chunk-EN3GYSCE.js} +1 -1
  65. package/dist/{chunk-TTYTOLVV.js → chunk-EOYKUV2U.js} +1 -1
  66. package/dist/chunk-FFPIT2LB.js +3 -0
  67. package/dist/{chunk-TD3ZQD5R.js → chunk-G3TC2GIA.js} +1 -1
  68. package/dist/{chunk-AAJSE5HA.js → chunk-GTBOJ5Q5.js} +1 -1
  69. package/dist/{chunk-UQV4TSWB.js → chunk-GTZML3V3.js} +1 -1
  70. package/dist/{chunk-JYR4V4AG.js → chunk-GUUBFQ6L.js} +2 -2
  71. package/dist/{chunk-K42FXX7J.js → chunk-GVAVIYE6.js} +1 -1
  72. package/dist/{chunk-2Y4AH7NC.js → chunk-GY7MJTIZ.js} +1 -1
  73. package/dist/{chunk-XYXCZIJY.js → chunk-HAEZUUDT.js} +3 -3
  74. package/dist/{chunk-J5W63XNR.js → chunk-HTBACICQ.js} +6 -6
  75. package/dist/{chunk-5URXJCNC.js → chunk-HX5QSQ2C.js} +1 -1
  76. package/dist/{chunk-VLBLDSA6.js → chunk-I7WAOKU2.js} +2 -2
  77. package/dist/{chunk-LLDGRPLF.js → chunk-ION3XGLN.js} +1 -1
  78. package/dist/{chunk-EXDSYFHB.js → chunk-ISWTJBOA.js} +1 -1
  79. package/dist/{chunk-BUFAJJDZ.js → chunk-IVEM2BPC.js} +1 -1
  80. package/dist/{chunk-D4432YRW.js → chunk-IZ6D4KGR.js} +1 -1
  81. package/dist/{chunk-KC2EQCBE.js → chunk-JPVD3VS7.js} +6 -6
  82. package/dist/{chunk-C7Z3ZMJH.js → chunk-KE7P74XM.js} +13 -13
  83. package/dist/chunk-KEFNQEXZ.js +1 -0
  84. package/dist/{chunk-DUEEAP4Y.js → chunk-LPL7BWGG.js} +1 -1
  85. package/dist/{chunk-JVENCUUG.js → chunk-LRMDLZMM.js} +4 -4
  86. package/dist/chunk-M5IZ7QLQ.js +7 -0
  87. package/dist/{chunk-MCLVTQSF.js → chunk-MEDOESQD.js} +8 -8
  88. package/dist/chunk-MEP6CZJ3.js +2 -0
  89. package/dist/{chunk-ZYKY4Z7R.js → chunk-MKHOXO5O.js} +1 -1
  90. package/dist/chunk-MNZAAQLH.js +15 -0
  91. package/dist/{chunk-DTRJLQWO.js → chunk-MPC3CHAO.js} +1 -1
  92. package/dist/{chunk-7PAZO65L.js → chunk-MXRF5YVN.js} +5 -5
  93. package/dist/{chunk-NWS5G7FE.js → chunk-MYH5H43C.js} +1 -1
  94. package/dist/{chunk-5OHFBS2B.js → chunk-NC5FIFAY.js} +1 -1
  95. package/dist/chunk-NDCS4COQ.js +11 -0
  96. package/dist/{chunk-IJ4JX6WP.js → chunk-NHALP3MW.js} +4 -4
  97. package/dist/{chunk-R5WBDXI2.js → chunk-OYQWBJ37.js} +1 -1
  98. package/dist/{chunk-77N3REYY.js → chunk-P2HZ2V3U.js} +2 -2
  99. package/dist/{chunk-UU42O5ON.js → chunk-P3XXFQG5.js} +1 -1
  100. package/dist/{chunk-YBE66FBR.js → chunk-P5J7G7OV.js} +1 -1
  101. package/dist/{chunk-4L5YRMJ4.js → chunk-PEA5Y6DD.js} +9 -9
  102. package/dist/{chunk-DPFEQQQU.js → chunk-POBVGDZP.js} +1 -1
  103. package/dist/{chunk-RFWBNKKB.js → chunk-PPHGBEJA.js} +10 -10
  104. package/dist/{chunk-IMH5H47S.js → chunk-PTLVNC3V.js} +6 -6
  105. package/dist/chunk-PU2GJVMG.js +1 -0
  106. package/dist/{chunk-TJG76Y7I.js → chunk-PWERFHOU.js} +9 -9
  107. package/dist/{chunk-ZFWCTHR4.js → chunk-PWON7O3N.js} +6 -6
  108. package/dist/{chunk-6MFKKTCE.js → chunk-Q7FPGOUY.js} +24 -24
  109. package/dist/{chunk-M4REKOGO.js → chunk-QCLKRFL4.js} +5 -5
  110. package/dist/{chunk-N4LMFGRI.js → chunk-R36VZ35L.js} +6 -6
  111. package/dist/{chunk-CCZHSISF.js → chunk-REFPTKRD.js} +2 -2
  112. package/dist/{chunk-THAPVKEJ.js → chunk-RTK77DMP.js} +11 -11
  113. package/dist/{chunk-PWOVSR7N.js → chunk-RXCBSQA2.js} +2 -2
  114. package/dist/{chunk-JDLJ7DHV.js → chunk-S4RFJTGR.js} +1 -1
  115. package/dist/{chunk-D5HFWOW7.js → chunk-SP4S4HUJ.js} +16 -16
  116. package/dist/{chunk-P73ZJ6QR.js → chunk-T46I4YOI.js} +1 -1
  117. package/dist/{chunk-VY3UA6AR.js → chunk-TAHHZGRH.js} +1 -1
  118. package/dist/{chunk-FBZUEZK7.js → chunk-TTD2M6RF.js} +1 -1
  119. package/dist/{chunk-RB3BMRNA.js → chunk-U75MSD4F.js} +1 -1
  120. package/dist/{chunk-XC2GUCTG.js → chunk-UGA5NGW4.js} +1 -1
  121. package/dist/chunk-VUBDHFG5.js +4 -0
  122. package/dist/{chunk-K4KUGKWP.js → chunk-W4IH3BE3.js} +21 -21
  123. package/dist/{chunk-B5KX7PDG.js → chunk-W6REY3SV.js} +3 -3
  124. package/dist/{chunk-WZWSFYXJ.js → chunk-WBUAO7T7.js} +1 -1
  125. package/dist/{chunk-P6H2B635.js → chunk-WNFZYTWW.js} +9 -9
  126. package/dist/{chunk-HPKQYUQT.js → chunk-WYAKASF3.js} +1 -1
  127. package/dist/{chunk-C5OPAULN.js → chunk-XGEN76DG.js} +1 -1
  128. package/dist/{chunk-ZKILZFUI.js → chunk-XIX72C7K.js} +1 -1
  129. package/dist/{chunk-3AUN7JSM.js → chunk-XJK6VNXV.js} +1 -1
  130. package/dist/{chunk-26KHYLJN.js → chunk-XLPUIGMO.js} +1 -1
  131. package/dist/{chunk-VQBKRBBR.js → chunk-XNKNX5L3.js} +1 -1
  132. package/dist/chunk-Y2M5PP2C.js +28 -0
  133. package/dist/{chunk-66NJCU4W.js → chunk-Y5RTVKMB.js} +8 -8
  134. package/dist/{chunk-JXJNQHPY.js → chunk-Y5YVKUM4.js} +19 -19
  135. package/dist/{chunk-5CHJA4RL.js → chunk-Y6FULJWJ.js} +7 -7
  136. package/dist/chunk-Y7D2CZ4H.js +13 -0
  137. package/dist/chunk-YTLUSBDY.js +14 -0
  138. package/dist/{chunk-2YUAR2EH.js → chunk-YX3JD6PA.js} +5 -5
  139. package/dist/{chunk-3WUVYXCF.js → chunk-ZA6ANC2D.js} +5 -5
  140. package/dist/{chunk-5ZOYYL46.js → chunk-ZEGCKIAL.js} +3 -3
  141. package/dist/chunk-ZSVU44OB.js +6 -0
  142. package/dist/data/DataTable.js +1 -1
  143. package/dist/data/EntityList.js +1 -1
  144. package/dist/data/Gantt.js +1 -1
  145. package/dist/data/Kanban.js +1 -1
  146. package/dist/data/ListLoadError.js +1 -1
  147. package/dist/data/ResizableTable.js +1 -1
  148. package/dist/data/statusColumn.js +1 -1
  149. package/dist/data/useColumnConfig.js +1 -1
  150. package/dist/data/useSort.js +1 -1
  151. package/dist/format/index.js +1 -1
  152. package/dist/forms/AlignmentGrid.js +1 -1
  153. package/dist/forms/BorderInput.js +1 -1
  154. package/dist/forms/BrandAssetEditor.js +1 -1
  155. package/dist/forms/Button.js +1 -1
  156. package/dist/forms/Calendar.js +1 -1
  157. package/dist/forms/ColorPicker.js +1 -1
  158. package/dist/forms/ComposerAttachments.js +1 -1
  159. package/dist/forms/CornersInput.js +1 -1
  160. package/dist/forms/DatePicker.js +1 -1
  161. package/dist/forms/DateRangePicker.js +1 -1
  162. package/dist/forms/DisplayChips.js +1 -1
  163. package/dist/forms/FilePicker.js +1 -1
  164. package/dist/forms/IconButton.js +1 -1
  165. package/dist/forms/IconPicker.js +1 -1
  166. package/dist/forms/Input.js +1 -1
  167. package/dist/forms/InputNumber.js +1 -1
  168. package/dist/forms/LinkPicker.js +1 -1
  169. package/dist/forms/MediaLibrary.js +1 -1
  170. package/dist/forms/MediaUploadField.js +1 -1
  171. package/dist/forms/MediaUploadGrid.js +1 -1
  172. package/dist/forms/MediaUsedInList.js +1 -1
  173. package/dist/forms/NumericKeypad.js +1 -1
  174. package/dist/forms/PictureTiles.js +1 -1
  175. package/dist/forms/PositionInput.js +1 -1
  176. package/dist/forms/RenameField.js +1 -1
  177. package/dist/forms/Segmented.js +1 -1
  178. package/dist/forms/Select.js +1 -1
  179. package/dist/forms/SidesInput.js +1 -1
  180. package/dist/forms/Slider.js +1 -1
  181. package/dist/forms/Snippet.js +1 -1
  182. package/dist/forms/SplitButton.js +1 -1
  183. package/dist/forms/TagInput.js +1 -1
  184. package/dist/forms/TextToolbar.js +1 -1
  185. package/dist/forms/UnitMenu.js +1 -1
  186. package/dist/forms/WidthsBar.js +1 -1
  187. package/dist/forms/dropdownPosition.js +1 -1
  188. package/dist/hooks/index.d.ts +15 -14
  189. package/dist/hooks/index.js +1 -1
  190. package/dist/hooks/useTheme.d.ts +1 -1
  191. package/dist/hooks/useTheme.js +1 -1
  192. package/dist/icons/index.js +1 -1
  193. package/dist/index.d.ts +43 -2
  194. package/dist/index.js +125 -125
  195. package/dist/map/index.js +5 -5
  196. package/dist/markdown/index.js +1 -1
  197. package/dist/page-tabs/index.js +5 -5
  198. package/dist/routine-index.json +1 -0
  199. package/dist/shell/AppUpdateBanner.js +1 -1
  200. package/dist/shell/ColoredBadge.js +1 -1
  201. package/dist/shell/ConfirmDialog.js +1 -1
  202. package/dist/shell/ContextMenu.js +1 -1
  203. package/dist/shell/Dialog.js +1 -1
  204. package/dist/shell/Drawer.js +1 -1
  205. package/dist/shell/DropdownMenu.js +1 -1
  206. package/dist/shell/EditableGrid.js +1 -1
  207. package/dist/shell/FloatingBar.js +1 -1
  208. package/dist/shell/GlobalSearch.js +1 -1
  209. package/dist/shell/HelpCenter.js +1 -1
  210. package/dist/shell/IconRail.js +1 -1
  211. package/dist/shell/ImageLightbox.js +1 -1
  212. package/dist/shell/ItemCount.js +1 -1
  213. package/dist/shell/Kbd.js +1 -1
  214. package/dist/shell/LanguageSelect.js +1 -1
  215. package/dist/shell/Markdown.js +1 -1
  216. package/dist/shell/MilestoneTimeline.js +1 -1
  217. package/dist/shell/Popover.js +1 -1
  218. package/dist/shell/PopupMenu.js +1 -1
  219. package/dist/shell/ProductionTimeline.js +1 -1
  220. package/dist/shell/ResizeHandle.js +1 -1
  221. package/dist/shell/SearchableSelect.js +1 -1
  222. package/dist/shell/SettingReset.js +1 -1
  223. package/dist/shell/SettingRow.js +1 -1
  224. package/dist/shell/ShellPrefs.js +1 -1
  225. package/dist/shell/SidebarLayout.js +1 -1
  226. package/dist/shell/SidebarNav.js +1 -1
  227. package/dist/shell/SortableList.js +1 -1
  228. package/dist/shell/StatusBadge.js +1 -1
  229. package/dist/shell/Tabs.js +1 -1
  230. package/dist/shell/TimelineTrack.js +1 -1
  231. package/dist/shell/Tooltip.js +1 -1
  232. package/dist/shell/TopNav.js +1 -1
  233. package/dist/shell/TransferProgress.js +1 -1
  234. package/dist/shell/Tree.js +1 -1
  235. package/dist/shell/discardGuard.js +1 -1
  236. package/dist/telemetry/index.js +1 -1
  237. package/dist/templates/AuthScreen.js +1 -1
  238. package/dist/templates/ChatTemplate.js +1 -1
  239. package/dist/templates/CheckoutTemplate.js +1 -1
  240. package/dist/templates/DashboardTemplate.js +1 -1
  241. package/dist/templates/DataTablePage.js +1 -1
  242. package/dist/templates/EmailTemplate.js +1 -1
  243. package/dist/templates/ErrorBoundary.js +1 -1
  244. package/dist/templates/FormLayoutPage.js +1 -1
  245. package/dist/templates/GalleryTemplate.js +1 -1
  246. package/dist/tokens/colour.d.ts +2 -2
  247. package/dist/ui/index.js +1 -1
  248. package/dist/value-index.json +1 -0
  249. package/dist/version.js +1 -1
  250. package/package.json +4 -3
  251. package/dist/Calculator-PKAM5ERT.js +0 -29
  252. package/dist/PomodoroTimer-PBSAKRX5.js +0 -91
  253. package/dist/Sidebar-HAIHWIJD.js +0 -44
  254. package/dist/chunk-2AEYVQ2R.js +0 -2
  255. package/dist/chunk-3GJVTK4H.js +0 -11
  256. package/dist/chunk-3TD3GH53.js +0 -7
  257. package/dist/chunk-44ERJYNW.js +0 -6
  258. package/dist/chunk-AAFPAQXH.js +0 -13
  259. package/dist/chunk-EX3DARI3.js +0 -7
  260. package/dist/chunk-F2RAIGCG.js +0 -6
  261. package/dist/chunk-FLQXMCB3.js +0 -8
  262. package/dist/chunk-N6PMH6DU.js +0 -6
  263. package/dist/chunk-O5ZBRG2G.js +0 -1
  264. package/dist/chunk-PP3WUT2G.js +0 -15
  265. package/dist/chunk-PWX64YBI.js +0 -28
  266. package/dist/chunk-RJVIKGHJ.js +0 -4
  267. package/dist/chunk-SRI2D23Y.js +0 -14
  268. package/dist/chunk-UTISUEO4.js +0 -2
  269. package/dist/chunk-UVHXVSB2.js +0 -1
  270. package/dist/chunk-WCCS4VFE.js +0 -1
  271. package/dist/chunk-ZDXRSY2Y.js +0 -1
  272. package/dist/chunk-ZISKHQZY.js +0 -3
  273. /package/dist/{chunk-4BYJABCX.js → chunk-5YTZBYG4.js} +0 -0
@@ -0,0 +1 @@
1
+ {"schema":1,"package":"efficient-shell","version":"14.1.0","entries":[{"entry":"efficient-shell","name":"ACCENT_ROLES","hash":"bd7fd9e5b26249a998b2"},{"entry":"efficient-shell","name":"BORDER_WIDTHS","hash":"78a506e44a654d5b22dd"},{"entry":"efficient-shell","name":"BRAND_ICON_NAMES","hash":"9f47dc20f8029a420b70"},{"entry":"efficient-shell","name":"CHART_INK","hash":"3f4d30da8161976c516b"},{"entry":"efficient-shell","name":"CHART_SPEC_LIMITS","hash":"301b29dfb507675e845d"},{"entry":"efficient-shell","name":"COLUMN_COUNT_WIDTHS","hash":"287a95f277695d0635fe"},{"entry":"efficient-shell","name":"COLUMN_SHARES_EQUAL","hash":"79cad7d332efce44435c"},{"entry":"efficient-shell","name":"CONTROL_HEIGHTS","hash":"26fdd7e9bd83bfe00f5e"},{"entry":"efficient-shell","name":"DATE_FORMAT_OPTIONS","hash":"25598ad7ed2742e39f98"},{"entry":"efficient-shell","name":"DEFAULT_FLOW_CHART_LABELS","hash":"56e77e95b8c1a6839984"},{"entry":"efficient-shell","name":"DEV_BANNER_TEXT","hash":"6f7e89424a7f413a139f"},{"entry":"efficient-shell","name":"ENGLISH","hash":"121b17f8146326744275"},{"entry":"efficient-shell","name":"ENTRANCE_ATTR","hash":"fc79fde5667e4be907a6"},{"entry":"efficient-shell","name":"ENTRANCE_FROM_ATTR","hash":"e5753ff44b8f14537d40"},{"entry":"efficient-shell","name":"ENTRANCE_STATE_ATTR","hash":"6feecdb8e8c4d673cd25"},{"entry":"efficient-shell","name":"FLAT_STATUS_ROLES","hash":"38f538e0036062cc3f1b"},{"entry":"efficient-shell","name":"FLOW_LAYOUT","hash":"6355c496cbbe32189091"},{"entry":"efficient-shell","name":"FLOW_SPEC_LIMITS","hash":"31add05b65bd74b7d006"},{"entry":"efficient-shell","name":"FONT_WEIGHTS","hash":"52b4a2a4070f79ac24c3"},{"entry":"efficient-shell","name":"GLASS_DIVIDER","hash":"4abe484f8492531e6e01"},{"entry":"efficient-shell","name":"GLASS_INPUT_BG","hash":"2cc213cc21bdcbe5ee79"},{"entry":"efficient-shell","name":"GROUP_COLORS","hash":"7aabea256a050c690c98"},{"entry":"efficient-shell","name":"GROUP_COLORS_SOLID","hash":"a620712d032b782085db"},{"entry":"efficient-shell","name":"HOVER_MOTION","hash":"af0a80b3c85e3fbf85d8"},{"entry":"efficient-shell","name":"ICON_NAMES","hash":"cfa9f4558fa1a147302b"},{"entry":"efficient-shell","name":"ICON_SET_FOR_THEME","hash":"8103453b2b0aa00255a3"},{"entry":"efficient-shell","name":"IDENTITY_ROLES","hash":"21f80df1c4baff623350"},{"entry":"efficient-shell","name":"INPUT_SIZES","hash":"c5d43314d24fd6735f5c"},{"entry":"efficient-shell","name":"LIGHTBOX_PICTURE_FIT","hash":"a93a7592a4af090e56b8"},{"entry":"efficient-shell","name":"MARQUEE_IGNORE","hash":"f8ed1942eb85570db2f0"},{"entry":"efficient-shell","name":"MEDIA_FILES_DRAG_TYPE","hash":"724ea23a8bdd3e839308"},{"entry":"efficient-shell","name":"MEDIA_FILE_DRAG_TYPE","hash":"4c811c3891dfb852805d"},{"entry":"efficient-shell","name":"MEDIA_FOLDER_DRAG_TYPE","hash":"3bb01ff9a70c4d5f7393"},{"entry":"efficient-shell","name":"MENU_ON_MEDIA_ATTR","hash":"8920dd2122ac10c310af"},{"entry":"efficient-shell","name":"MODAL_SUBMIT_SELECTOR","hash":"d84bdbfd01a8805d95b7"},{"entry":"efficient-shell","name":"MOTION","hash":"afb7e9a03604f388b85d"},{"entry":"efficient-shell","name":"MOTION_EASING","hash":"4789d99f72a99fc71931"},{"entry":"efficient-shell","name":"MOTION_GROUPS","hash":"72eccd969d7845e62f7c"},{"entry":"efficient-shell","name":"NATIVE_MENU_ATTR","hash":"005131ab6b8f236a967e"},{"entry":"efficient-shell","name":"NEUTRAL_ROLES","hash":"e0ffa42a68fdebbc6f4a"},{"entry":"efficient-shell","name":"NEXT_CHUNK_PATH_PREFIX","hash":"09c4a7664b671338c222"},{"entry":"efficient-shell","name":"OVERLAY_OPEN_EVENT","hash":"5029df721a453803dc12"},{"entry":"efficient-shell","name":"PICTURE_TILES_COLUMNS_VAR","hash":"8ff0bf10875ffde65e40"},{"entry":"efficient-shell","name":"PLACEHOLDER_INK","hash":"2df66d0d39e28d3b53e7"},{"entry":"efficient-shell","name":"SCRIM_ROLES","hash":"eb89174bfef99154962d"},{"entry":"efficient-shell","name":"SERIES_VARS","hash":"6fb1755e5ee724888d5b"},{"entry":"efficient-shell","name":"SHELL_LANGUAGE_STORAGE_KEY","hash":"6e4367376ca83b903d75"},{"entry":"efficient-shell","name":"SPACING_ROLES","hash":"6a56d2441721d205e749"},{"entry":"efficient-shell","name":"STAGES","hash":"9632e5aae395880146f2"},{"entry":"efficient-shell","name":"STALE_CHUNK_RELOAD_KEY","hash":"68a7205bd9736805ac7f"},{"entry":"efficient-shell","name":"STATUS_VARS","hash":"4f9dd4373172ce6a7d64"},{"entry":"efficient-shell","name":"TEXT_ALIGN_ICONS","hash":"c1a50003c898d5dc6cc7"},{"entry":"efficient-shell","name":"THEME_ICON_SETS","hash":"c04ed577f1f8de5ea01e"},{"entry":"efficient-shell","name":"VITE_PRELOAD_ERROR_EVENT","hash":"dfad33b292b16949faf1"},{"entry":"efficient-shell","name":"Z_LAYERS","hash":"0b590a52752106009d6a"},{"entry":"efficient-shell/ai","name":"DEFAULT_ASSISTANT_CHAT_LABELS","hash":"e021be115baf6c56c0ca"},{"entry":"efficient-shell/ai","name":"ROW_EXTRA_LABELS","hash":"3c2a34facf25ae548f39"},{"entry":"efficient-shell/apps","name":"FILES_OFFICE_EXTENSIONS","hash":"ec322d0793d079446bd9"},{"entry":"efficient-shell/apps","name":"FILES_ROLE_LABELS","hash":"2de2334df77090846b67"},{"entry":"efficient-shell/apps","name":"SPREADSHEET_PREVIEW_UPDATE_EVENT","hash":"834ba753658d2c8d0a31"},{"entry":"efficient-shell/format","name":"ENTRANCE_DELAY_VAR","hash":"8a2f4a1e751ec138bbbf"},{"entry":"efficient-shell/format","name":"ENTRANCE_DURATION_VAR","hash":"ed9dff0a293be26a023e"},{"entry":"efficient-shell/format","name":"HOVER_KINDS","hash":"e2c76e5db09742cb68d9"},{"entry":"efficient-shell/format","name":"PIN_ABOVE_ATTR","hash":"1cd4918b109d8fb8a75a"},{"entry":"efficient-shell/format","name":"PIN_ABOVE_Z_VAR","hash":"da1d8d7520816a38349f"},{"entry":"efficient-shell/format","name":"PIN_ATTR","hash":"90fa72a3274aefa2672f"},{"entry":"efficient-shell/format","name":"PIN_FRAME_ATTR","hash":"7762b6fd5c2094673b82"},{"entry":"efficient-shell/format","name":"PIN_LENGTH_VAR","hash":"0fcd5a46096644382ba1"},{"entry":"efficient-shell/format","name":"PIN_ON_VAR","hash":"727387fbc36cde299ff1"},{"entry":"efficient-shell/format","name":"PIN_POSITION_VAR","hash":"6c45b2190b5524b1b15f"},{"entry":"efficient-shell/format","name":"PIN_STICK_VAR","hash":"b3d4702280b41f24617f"},{"entry":"efficient-shell/format","name":"PIN_TOP_VAR","hash":"093101ff1937dabe4daa"},{"entry":"efficient-shell/format","name":"PIN_TRACK_POSITION_VAR","hash":"1f9df4b27f9f5421fbea"},{"entry":"efficient-shell/format","name":"SCROLL_ATTR","hash":"6f55192d6271f711b399"},{"entry":"efficient-shell/format","name":"SCROLL_EFFECTS","hash":"158d40bf267a46b5a92b"},{"entry":"efficient-shell/format","name":"SCROLL_END_VAR","hash":"c0c679414eb0277fbf63"},{"entry":"efficient-shell/format","name":"SCROLL_ORIGIN_VAR","hash":"0098429747fe503a2242"},{"entry":"efficient-shell/format","name":"SCROLL_PROGRESS_VAR","hash":"72041dc916102bdcc9d8"},{"entry":"efficient-shell/format","name":"SCROLL_START_VAR","hash":"7b65b18fff5c610b4bab"},{"entry":"efficient-shell/format","name":"SCROLL_ZOOM_VAR","hash":"0d8ae643ee6e1790db87"},{"entry":"efficient-shell/icons/efficient","name":"efficientIconMeanings","hash":"8a08f4c0030f8f952668"},{"entry":"efficient-shell/icons/sets","name":"efficientLookNames","hash":"eb8a3af463df1f310f4c"},{"entry":"efficient-shell/map","name":"COMPACT_SHOW","hash":"8e104672613835524e35"},{"entry":"efficient-shell/map","name":"MAPLIBRE_WORKER_FILE","hash":"ea4884f1e1bd66e2cc4e"},{"entry":"efficient-shell/map","name":"MAP_CATEGORIES","hash":"9c7650509b67d02224e3"},{"entry":"efficient-shell/map","name":"MAP_TILE_ORIGIN","hash":"2becdbb36cdfe9f5ef24"},{"entry":"efficient-shell/markup","name":"COLOR_SLOTS","hash":"546d8695bfd3a4168b36"},{"entry":"efficient-shell/markup","name":"MARKUP_TOOLS","hash":"c00656098e6c6de33881"},{"entry":"efficient-shell/markup","name":"MARK_NAMES","hash":"d44aa3e35fd85db3d037"},{"entry":"efficient-shell/markup","name":"STANDARD_MARKUP","hash":"dfb86d96534febeba3e0"},{"entry":"efficient-shell/model-viewer","name":"MODEL_VIEWER_DECODER_ORIGIN","hash":"dee20e1d75b05718f79c"}]}
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export{APP_VERSION,VERSION}from"./chunk-O5ZBRG2G.js";
1
+ export{APP_VERSION,VERSION}from"./chunk-5F3HPOBH.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efficient-shell",
3
- "version": "13.25.0",
3
+ "version": "14.1.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",
@@ -277,7 +277,7 @@
277
277
  "web-vitals": "6.2.3"
278
278
  },
279
279
  "scripts": {
280
- "build": "tsup && tsup --config tsup.bin.config.ts && cp src/*.css dist/ && npm run build:brand && npm run build:ai",
280
+ "build": "tsup && tsup --config tsup.bin.config.ts && cp src/*.css dist/ && npm run build:brand && npm run build:ai && npm run build:index",
281
281
  "dev": "tsup --watch",
282
282
  "typecheck": "tsc --noEmit && tsc -p tsconfig.test.json",
283
283
  "test": "node scripts/test.mjs",
@@ -288,7 +288,8 @@
288
288
  "icons:gaps": "node scripts/icons/gap-check.mjs",
289
289
  "clean": "rm -rf dist",
290
290
  "build:brand": "tailwindcss -i src/brand.css -o dist/brand.css --minify",
291
- "build:ai": "tailwindcss -i src/ai.css -o dist/ai.css --minify"
291
+ "build:ai": "tailwindcss -i src/ai.css -o dist/ai.css --minify",
292
+ "build:index": "node dist/bin/ui-check.js --write-index dist"
292
293
  },
293
294
  "keywords": [
294
295
  "react",
@@ -1,29 +0,0 @@
1
- import{loadAppearance as t,WidgetSettingsModal as e}from"./chunk-26KHYLJN.js";import{useWidgetSettings as n}from"./chunk-VGUB7LPF.js";import"./chunk-4LXCCZDM.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-YI4T5I5D.js";import"./chunk-PSVGB7KT.js";import"./chunk-FBZUEZK7.js";import"./chunk-5A7MWTXX.js";import"./chunk-TJ5YMXVB.js";import"./chunk-4VFEPP2W.js";import"./chunk-44ERJYNW.js";import"./chunk-EIFNESXS.js";import"./chunk-LC2UF3AA.js";import"./chunk-VY6OQRZA.js";import"./chunk-LG6NDTHZ.js";import"./chunk-4BYJABCX.js";import"./chunk-VWGWZY7A.js";import"./chunk-UVHXVSB2.js";import"./chunk-UVPDEGIA.js";import"./chunk-4PJFL26P.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-DPFEQQQU.js";import"./chunk-AW7TOB6N.js";import"./chunk-EX3DARI3.js";import"./chunk-VQBKRBBR.js";import"./chunk-DWGYC7OD.js";import"./chunk-NWS5G7FE.js";import"./chunk-THAPVKEJ.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-YDJ5IZOU.js";import"./chunk-UTISUEO4.js";import"./chunk-BUFAJJDZ.js";import{Icon as r}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-BWJZTHZ6.js";import"./chunk-TD3ZQD5R.js";import"./chunk-F2RAIGCG.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-VY3UA6AR.js";import"./chunk-WCCS4VFE.js";import"./chunk-ZDXRSY2Y.js";import"./chunk-STKJA4PV.js";import"./chunk-M6UKCZHT.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-MAFUXCPZ.js";import"./chunk-NRHG4R2Q.js";import"./chunk-C3QOHMR6.js";import{useState as c,useRef as i,useCallback as o,useEffect as s}from"react";import{jsxs as l,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),[j,b]=c(null),[g,N]=c(!1),[y,C]=c(""),[x,f]=c([]),[v,$]=c(!1),[E,T]=c(()=>t(h)),[F,U]=c(!1),[A,D]=c(E),R=i(null);n(o(()=>{D({...E}),U(!0)},[E]));const S=o(t=>{C(""),k(e=>g||"0"===e?(N(!1),"."===t?"0.":t):"."===t&&e.includes(".")?e:e+t)},[g]),W=o(()=>{k("0"),d(null),b(null),N(!1)},[]),B=o((t,e,n)=>{switch(n){case"+":return t+e;case"-":return t-e;case"×":return t*e;case"÷":return 0===e?0:t/e;default:return e}},[]),V=o(t=>{const e=parseFloat(m);if(null!==p&&j&&!g){const t=B(p,e,j);k(String(t)),d(t),f(n=>[`${p} ${j} ${e} = ${t}`,...n].slice(0,20))}else d(e);b(t),N(!0)},[m,p,j,g,B]),J=o(()=>{if(null===p||!j)return;const t=parseFloat(m),e=B(p,t,j),n=`${p} ${j} ${t} =`;f(t=>[`${n} ${e}`,...t].slice(0,20)),C(n),k(String(e)),d(null),b(null),N(!0)},[m,p,j,B]),Z=o(()=>{k(t=>String(parseFloat(t)/100))},[]),Y=o(()=>{k(t=>t.startsWith("-")?t.slice(1):"0"===t?t:"-"+t)},[]);s(()=>{const t=t=>{const e=t.target.tagName;"INPUT"!==e&&"TEXTAREA"!==e&&"SELECT"!==e&&(t.key>="0"&&t.key<="9"?S(t.key):"."===t.key?S("."):"+"===t.key?V("+"):"-"===t.key?V("-"):"*"===t.key?V("×"):"/"===t.key?(t.preventDefault(),V("÷")):"Enter"===t.key||"="===t.key?("Enter"===t.key&&t.target instanceof Node&&R.current?.contains(t.target)&&t.preventDefault(),J()):"Escape"===t.key?W():"Backspace"===t.key?k(t=>t.length>1?t.slice(0,-1):"0"):"%"===t.key&&Z())};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[S,V,J,W,Z]);const P="flex items-center justify-center rounded-lg text-sm font-medium transition-colors",G=`${P} bg-white border border-gray-200 text-gray-900 hover:bg-gray-50 active:bg-gray-100`,Q=`${P} bg-blue-50 border border-blue-200 text-blue-700 hover:bg-blue-100 active:bg-blue-200`,w=`${P} bg-gray-100 border border-gray-200 text-gray-600 hover:bg-gray-200 active:bg-gray-300`,H=`${P} bg-blue-600 text-white hover:bg-blue-700 active:bg-blue-800`;/* @__PURE__ */
2
- return l(a,{children:[
3
- /* @__PURE__ */l("div",{ref:R,className:"flex flex-col h-full",style:{opacity:E.activeOpacity/100,backdropFilter:E.activeBlur>0?`blur(${E.activeBlur}px)`:void 0},children:[
4
- /* @__PURE__ */l("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:x.slice(0,3).reverse().map((t,e)=>/* @__PURE__ */u("div",{className:"text-2xs text-slate-400 text-right font-mono truncate",children:t},e))}),(y||j&&null!==p)&&/* @__PURE__ */u("div",{className:"text-base text-slate-600 text-right font-mono",children:y||`${p} ${j} ${g?"":m}`}),
6
- /* @__PURE__ */l("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:(t=>{const e=parseFloat(t);return isNaN(e)||t.endsWith(".")||t.endsWith(".0")||Math.abs(e)<1e15&&t.length<16?t:e.toExponential(6)})(m)})]})]}),
9
- /* @__PURE__ */l("div",{className:"grid grid-cols-4 grid-rows-5 gap-2 flex-1 min-h-0 p-2",children:[
10
- /* @__PURE__ */u("button",{onClick:W,className:w,children:"AC"}),
11
- /* @__PURE__ */u("button",{onClick:Y,className:w,children:"+/−"}),
12
- /* @__PURE__ */u("button",{onClick:Z,className:w,children:"%"}),
13
- /* @__PURE__ */u("button",{onClick:()=>V("÷"),className:`${Q} ${"÷"===j?"ring-2 ring-blue-400":""}`,children:"÷"}),
14
- /* @__PURE__ */u("button",{onClick:()=>S("7"),className:G,children:"7"}),
15
- /* @__PURE__ */u("button",{onClick:()=>S("8"),className:G,children:"8"}),
16
- /* @__PURE__ */u("button",{onClick:()=>S("9"),className:G,children:"9"}),
17
- /* @__PURE__ */u("button",{onClick:()=>V("×"),className:`${Q} ${"×"===j?"ring-2 ring-blue-400":""}`,children:"×"}),
18
- /* @__PURE__ */u("button",{onClick:()=>S("4"),className:G,children:"4"}),
19
- /* @__PURE__ */u("button",{onClick:()=>S("5"),className:G,children:"5"}),
20
- /* @__PURE__ */u("button",{onClick:()=>S("6"),className:G,children:"6"}),
21
- /* @__PURE__ */u("button",{onClick:()=>V("-"),className:`${Q} ${"-"===j?"ring-2 ring-blue-400":""}`,children:"−"}),
22
- /* @__PURE__ */u("button",{onClick:()=>S("1"),className:G,children:"1"}),
23
- /* @__PURE__ */u("button",{onClick:()=>S("2"),className:G,children:"2"}),
24
- /* @__PURE__ */u("button",{onClick:()=>S("3"),className:G,children:"3"}),
25
- /* @__PURE__ */u("button",{onClick:()=>V("+"),className:`${Q} ${"+"===j?"ring-2 ring-blue-400":""}`,children:"+"}),
26
- /* @__PURE__ */u("button",{onClick:()=>S("0"),className:`${G} col-span-2`,children:"0"}),
27
- /* @__PURE__ */u("button",{onClick:()=>S("."),className:G,children:"."}),
28
- /* @__PURE__ */u("button",{onClick:J,className:H,children:"="})]})]}),
29
- /* @__PURE__ */u(e,{open:F,onClose:()=>U(!1),title:"Calculator Settings",appearance:A,onAppearanceChange:D,onSave:()=>{T(A),localStorage.setItem(h,JSON.stringify(A)),U(!1)}})]})}export{m as default};
@@ -1,91 +0,0 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-26KHYLJN.js";import{subscribePomo as o,getPomoSnapshot as n,setPomoDurations as a,setPomoAlarm as r,setPomoAlarmConfig as s,setPomoBehaviour as i,setPomoFocusSound as l,useTodoTasks as c,pomodoroToday as u,migratePomodoroTasksOnce as d,pomoSwitchMode as m,pomoPause as h,pomoStart as p,ALARM_OPTIONS as g,playAlarm as k,FOCUS_SOUND_OPTIONS as f,previewFocusSound as b}from"./chunk-JYR4V4AG.js";import{PLACEHOLDER_INK as x}from"./chunk-AYZY3YNC.js";import{formatTime as v}from"./chunk-NHKT5IH6.js";import"./chunk-36BRD5J3.js";import"./chunk-JRQMX4PK.js";import{pad2 as y}from"./chunk-LF27WIN2.js";import{useWidgetSettings as N}from"./chunk-VGUB7LPF.js";import"./chunk-4LXCCZDM.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-YI4T5I5D.js";import"./chunk-PSVGB7KT.js";import"./chunk-FBZUEZK7.js";import"./chunk-5A7MWTXX.js";import"./chunk-TJ5YMXVB.js";import"./chunk-4VFEPP2W.js";import"./chunk-44ERJYNW.js";import"./chunk-EIFNESXS.js";import"./chunk-LC2UF3AA.js";import"./chunk-VY6OQRZA.js";import"./chunk-LG6NDTHZ.js";import"./chunk-4BYJABCX.js";import"./chunk-VWGWZY7A.js";import"./chunk-UVHXVSB2.js";import"./chunk-UVPDEGIA.js";import"./chunk-4PJFL26P.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as C}from"./chunk-DPFEQQQU.js";import"./chunk-AW7TOB6N.js";import"./chunk-EX3DARI3.js";import"./chunk-VQBKRBBR.js";import"./chunk-DWGYC7OD.js";import"./chunk-NWS5G7FE.js";import"./chunk-THAPVKEJ.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-YDJ5IZOU.js";import"./chunk-UTISUEO4.js";import"./chunk-BUFAJJDZ.js";import{Icon as j}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-BWJZTHZ6.js";import"./chunk-TD3ZQD5R.js";import"./chunk-F2RAIGCG.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-VY3UA6AR.js";import"./chunk-WCCS4VFE.js";import"./chunk-ZDXRSY2Y.js";import"./chunk-STKJA4PV.js";import"./chunk-M6UKCZHT.js";import"./chunk-I2NVBDKH.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-MAFUXCPZ.js";import"./chunk-NRHG4R2Q.js";import"./chunk-C3QOHMR6.js";import{useSyncExternalStore as S,useEffect as B,useMemo as w,useState as T,useRef as M,useCallback as P}from"react";import{jsxs as A,Fragment as I,jsx as V}from"react/jsx-runtime";var D="pomodoro_appearance",R="pomodoro_active_task_id",F={focus:"Pomodoro",short:"Short Break",long:"Long Break"},L={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var U=25,W=5,E=15,J=!1,Y=!1,$=4,Z=!0,H=!0,G="bell",K=100,Q=1,O="none",X=50,_=(e,t,o,n)=>"number"==typeof e&&isFinite(e)?Math.max(t,Math.min(o,Math.round(e))):n;function z(){const t=S(o,n,n),{prefs:k,save:b}=C(),x=function(e){const t=e&&"object"==typeof e?e:{};return{focusMinutes:_(t.focusMinutes,1,120,U),shortBreakMinutes:_(t.shortBreakMinutes,1,120,W),longBreakMinutes:_(t.longBreakMinutes,1,120,E),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:J,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:Y,longBreakInterval:_(t.longBreakInterval,1,20,$),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:Z,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:H,alarmSound:g.some(e=>e.id===t.alarmSound)?t.alarmSound:G,alarmVolume:_(t.alarmVolume,0,100,K),alarmRepeat:_(t.alarmRepeat,1,5,Q),focusSound:f.some(e=>e.id===t.focusSound)?t.focusSound:O,focusVolume:_(t.focusVolume,0,100,X)}}(k.pomodoro_settings);B(()=>{a({focus:60*x.focusMinutes,short:60*x.shortBreakMinutes,long:60*x.longBreakMinutes})},[x.focusMinutes,x.shortBreakMinutes,x.longBreakMinutes]),B(()=>{r(x.alarmSound),s(x.alarmVolume,x.alarmRepeat)},[x.alarmSound,x.alarmVolume,x.alarmRepeat]),B(()=>{i({autoStartBreaks:x.autoStartBreaks,autoStartPomodoros:x.autoStartPomodoros,longBreakInterval:x.longBreakInterval})},[x.autoStartBreaks,x.autoStartPomodoros,x.longBreakInterval]),B(()=>{l(x.focusSound,x.focusVolume)},[x.focusSound,x.focusVolume]),B(()=>{if("undefined"!=typeof Notification&&"default"===Notification.permission)try{Notification.requestPermission()}catch{}},[]);const z=c(),ee=z.tasks,te=w(()=>u(),[]),oe=function(e,t){return w(()=>t?(e=>{const t=[],o=[];for(const n of e)(n.done?o:t).push(n);return[...t,...o]})(e):e,[e,t])}(w(()=>ee.filter(e=>!!e.dueDate&&(e.dueDate===te||e.dueDate<te&&!e.done)),[ee,te]),x.checkToBottom),[ne,ae]=T(()=>localStorage.getItem(R)),[re,se]=T(!1),[ie,le]=T(null),ce=M(!1);B(()=>{ce.current||(ce.current=!0,d(ee,z.setAllTasks))},[]),B(()=>{try{ne?localStorage.setItem(R,ne):localStorage.removeItem(R)}catch{}},[ne]),B(()=>{if(!ie)return;const e=()=>le(null),t=setTimeout(()=>document.addEventListener("click",e),0);return()=>{clearTimeout(t),document.removeEventListener("click",e)}},[ie]);const ue=M(t.streak);B(()=>{if(t.streak>ue.current&&ne){const e=ee.find(e=>e.id===ne);if(e){const t=(e.completed??0)+1,o=e.estimated??0,n=x.autoCheckTasks&&o>0&&t>=o;z.updateTask(ne,{completed:t,done:e.done||n})}}ue.current=t.streak},[t.streak,ne,x.autoCheckTasks,ee,z]);const me=oe.reduce((e,t)=>e+(t.completed??0),0),he=oe.reduce((e,t)=>e+Math.max(t.estimated??0,t.completed??0),0),pe=oe.reduce((e,t)=>t.done?e:e+Math.max(0,(t.estimated??0)-(t.completed??0)),0),ge=t.running&&"focus"===t.mode?t.remaining:0,ke=pe*x.focusMinutes*60+ge,fe=new Date(Date.now()+1e3*ke),be=v(fe.toISOString(),{clock:{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}}),xe=(ke/3600).toFixed(1),ve=ne?ee.find(e=>e.id===ne)??null:null,ye=y(Math.floor(t.remaining/60)),Ne=y(t.remaining%60),[Ce,je]=T(()=>e(D)),[Se,Be]=T(!1),[we,Te]=T(Ce),[Me,Pe]=T(x);N(P(()=>{Te({...Ce}),Pe({...x}),Be(!0)},[Ce,x]));const Ae="focus"!==t.mode,Ie=L[t.mode],Ve=Ae?(De=Ie,Re=Ce.activeOpacity/100,`rgba(${parseInt(De.slice(1,3),16)}, ${parseInt(De.slice(3,5),16)}, ${parseInt(De.slice(5,7),16)}, ${Re})`):`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${Ce.activeOpacity/100})`;var De,Re;const Fe={primary:Ae?"text-white":"text-gray-900",secondary:Ae?"text-white/85":"text-gray-700",muted:Ae?"text-white/65":"text-gray-500",tabActive:Ae?"bg-white/15 text-white":"bg-gray-200 text-gray-900",tabInactive:Ae?"text-white/75 hover:bg-white/10":"text-gray-500 hover:bg-gray-200",divider:Ae?"border-white/30":"border-gray-200",softDivider:Ae?"border-white/20":"border-gray-200",iconBtn:Ae?"bg-black/15 hover:bg-black/25 text-white/85":"bg-gray-200 hover:bg-gray-300 text-gray-600",addTaskBtn:Ae?"border-white/45 text-white/90 hover:bg-white/[0.06]":"border-gray-300 text-gray-500 hover:bg-gray-200/50"},Le=Ae?Ie:"#0f172a";/* @__PURE__ */
2
- return A(I,{children:[
3
- /* @__PURE__ */A("div",{className:`flex flex-col h-full select-none transition-colors duration-300 ${Fe.primary}`,style:{backgroundColor:Ve,backdropFilter:Ce.activeBlur>0?`blur(${Ce.activeBlur}px)`:void 0},children:[
4
- /* @__PURE__ */V("div",{className:"px-3 pt-3 flex justify-center gap-2",children:["focus","short","long"].map(e=>/* @__PURE__ */V("button",{onClick:()=>m(e),className:`px-3 py-1 text-sm font-bold rounded transition-colors ${t.mode===e?Fe.tabActive:Fe.tabInactive}`,children:F[e]},e))}),
5
- /* @__PURE__ */A("div",{className:"text-center font-bold tabular-nums leading-none tracking-tight mt-3",style:{fontSize:"4.5rem"},children:[ye,":",Ne]}),
6
- /* @__PURE__ */V("div",{className:"flex justify-center mt-3 mb-2",children:/* @__PURE__ */V("button",{onClick:()=>t.running?h():p(),className:"bg-surface px-12 py-3 rounded-md font-bold text-base shadow-[0_4px_0_rgba(0,0,0,0.12)] hover:shadow-[0_3px_0_rgba(0,0,0,0.12)] active:translate-y-1 active:shadow-none transition-all",style:{color:Le,letterSpacing:"0.08em"},children:t.running?"PAUSE":"START"})}),
7
- /* @__PURE__ */V("div",{className:"px-3 py-3 text-center",children:ve?/* @__PURE__ */A(I,{children:[
8
- /* @__PURE__ */A("div",{className:`text-xs leading-tight ${Fe.muted}`,children:["#",(ve.completed??0)+1]}),
9
- /* @__PURE__ */V("div",{className:`text-base font-medium leading-tight truncate mt-0.5 ${Fe.primary}`,children:ve.name})]}):/* @__PURE__ */V("div",{className:`text-xs italic ${Fe.muted}`,children:"No task selected"})}),
10
- /* @__PURE__ */A("div",{className:"px-3 mt-1 flex items-center justify-between",children:[
11
- /* @__PURE__ */V("h3",{className:`text-base font-bold tracking-tight ${Fe.primary}`,children:"Tasks"}),
12
- /* @__PURE__ */V("button",{className:`rounded p-1 transition-colors ${Fe.iconBtn}`,"aria-label":"Tasks menu",tabIndex:-1,children:/* @__PURE__ */V(j,{name:"more-vertical",look:"solid",className:"h-4 w-4"})})]}),
13
- /* @__PURE__ */V("div",{className:`border-t mx-3 mt-2 ${Fe.divider}`}),
14
- /* @__PURE__ */A("div",{className:"flex-1 px-3 py-3 space-y-2 overflow-y-auto",children:[oe.map(e=>{const t=e.id===ne;/* @__PURE__ */
15
- return A("div",{onClick:()=>ae(e.id),className:"bg-surface text-ink-strong rounded-md flex items-center pr-2 py-3 shadow-sm cursor-pointer transition-shadow hover:shadow-(--elevation-panel) "+(t?"border-l-4 border-gray-700 pl-2":"pl-3 border-l-4 border-transparent"),children:[
16
- /* @__PURE__ */V("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,z.toggleDone(o)},className:"shrink-0",children:e.done?/* @__PURE__ */V("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",style:{color:Le},children:/* @__PURE__ */V("path",{d:"M10 0a10 10 0 100 20 10 10 0 000-20zm-1 14.5l-4.5-4.5 1.4-1.4 3.1 3.1 6.1-6.1 1.4 1.4z"})}):/* @__PURE__ */V("svg",{className:"h-5 w-5 text-gray-300",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:/* @__PURE__ */V("circle",{cx:"12",cy:"12",r:"10"})})}),
17
- /* @__PURE__ */V("span",{className:"ml-3 flex-1 font-semibold truncate "+(e.done?"line-through text-gray-400":"text-gray-800"),children:e.name}),
18
- /* @__PURE__ */A("span",{className:"text-sm tabular-nums mr-2 shrink-0",children:[
19
- /* @__PURE__ */V("span",{className:"font-bold text-gray-500",children:e.completed??0}),
20
- /* @__PURE__ */V("span",{className:"text-gray-400",children:" / "}),
21
- /* @__PURE__ */V("span",{className:"text-gray-400",children:e.estimated??"–"})]}),
22
- /* @__PURE__ */A("div",{className:"relative",children:[
23
- /* @__PURE__ */V("button",{onClick:t=>{t.stopPropagation(),le(ie===e.id?null:e.id)},className:"rounded p-1 bg-gray-100 hover:bg-gray-200",children:/* @__PURE__ */V(j,{name:"more-vertical",look:"solid",className:"h-4 w-4 text-ink-faint"})}),ie===e.id&&/* @__PURE__ */V("div",{className:"absolute right-0 top-full mt-1 bg-white text-gray-800 rounded shadow-lg border border-gray-200 z-10 min-w-[110px] overflow-hidden",onClick:e=>e.stopPropagation(),children:/* @__PURE__ */V("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,z.removeTask(o),ne===o&&ae(null),le(null)},className:"block w-full px-3 h-8 text-sm text-left hover:bg-red-50 text-red-600",children:"Delete"})})]})]},e.id)}),re?/* @__PURE__ */V(de,{onSubmit:(e,t)=>{const o=e.trim();if(!o)return;const n=z.addTask({name:o,estimated:t,completed:0,dueDate:te});ne||ae(n),se(!1)},onCancel:()=>se(!1),accentColor:Le}):/* @__PURE__ */A("button",{onClick:()=>se(!0),className:`w-full border-2 border-dashed rounded-md py-3 font-semibold flex items-center justify-center gap-2 transition-colors ${Fe.addTaskBtn}`,children:[
24
- /* @__PURE__ */V(j,{name:"add-circle",className:"h-5 w-5",strokeWidth:2}),"Add Task"]})]}),
25
- /* @__PURE__ */A("div",{className:`border-t px-3 py-3 flex items-center justify-center gap-5 text-sm ${Fe.softDivider}`,children:[
26
- /* @__PURE__ */A("span",{className:Fe.secondary,children:["Pomos: ",
27
- /* @__PURE__ */V("span",{className:`font-bold ${Fe.primary}`,children:me}),
28
- /* @__PURE__ */V("span",{className:Fe.muted,children:" / "}),
29
- /* @__PURE__ */V("span",{className:`font-bold ${Fe.primary}`,children:he})]}),ke>0&&/* @__PURE__ */A("span",{className:Fe.secondary,children:["Finish At: ",
30
- /* @__PURE__ */V("span",{className:`font-bold ${Fe.primary}`,children:be}),
31
- /* @__PURE__ */A("span",{className:Fe.muted,children:[" (",xe,"h)"]})]})]})]}),
32
- /* @__PURE__ */V(q,{open:Se,onClose:()=>Be(!1),onSave:()=>{je(we),localStorage.setItem(D,JSON.stringify(we)),b({pomodoro_settings:Me}),Be(!1)},configAppearance:we,setConfigAppearance:Te,configPrefs:Me,setConfigPrefs:Pe})]})}function q({open:e,onClose:o,onSave:n,configAppearance:a,setConfigAppearance:r,configPrefs:s,setConfigPrefs:i}){const l=(e,t)=>i(o=>({...o,[e]:t}));/* @__PURE__ */
33
- return A(t,{open:e,onClose:o,title:"Pomodoro Settings",appearance:a,onAppearanceChange:r,onSave:n,children:[
34
- /* @__PURE__ */A(ee,{icon:/* @__PURE__ */V(le,{}),label:"TIMER",children:[
35
- /* @__PURE__ */A("div",{children:[
36
- /* @__PURE__ */V("p",{className:"text-sm font-bold text-gray-800 mb-2",children:"Time (minutes)"}),
37
- /* @__PURE__ */A("div",{className:"grid grid-cols-3 gap-3",children:[
38
- /* @__PURE__ */V(ne,{label:"Pomodoro",value:s.focusMinutes,onChange:e=>l("focusMinutes",e),max:120}),
39
- /* @__PURE__ */V(ne,{label:"Short Break",value:s.shortBreakMinutes,onChange:e=>l("shortBreakMinutes",e),max:120}),
40
- /* @__PURE__ */V(ne,{label:"Long Break",value:s.longBreakMinutes,onChange:e=>l("longBreakMinutes",e),max:120})]})]}),
41
- /* @__PURE__ */V(te,{label:"Auto Start Breaks",children:/* @__PURE__ */V(se,{checked:s.autoStartBreaks,onChange:e=>l("autoStartBreaks",e)})}),
42
- /* @__PURE__ */V(te,{label:"Auto Start Pomodoros",children:/* @__PURE__ */V(se,{checked:s.autoStartPomodoros,onChange:e=>l("autoStartPomodoros",e)})}),
43
- /* @__PURE__ */V(te,{label:"Long Break interval",children:/* @__PURE__ */V(ae,{value:s.longBreakInterval,onChange:e=>l("longBreakInterval",e),min:1,max:20,className:"w-14 text-center"})})]}),
44
- /* @__PURE__ */A(ee,{icon:/* @__PURE__ */V(ce,{}),label:"TASK",children:[
45
- /* @__PURE__ */V(te,{label:"Auto Check Tasks",info:'If you enable "Auto Check Tasks", the active task will be automatically checked when the actual pomodoro count reaches the estimated count.',children:/* @__PURE__ */V(se,{checked:s.autoCheckTasks,onChange:e=>l("autoCheckTasks",e)})}),
46
- /* @__PURE__ */V(te,{label:"Check to Bottom",info:'If you enable "Check to Bottom", the checked task will be automatically moved to the bottom of the task list.',children:/* @__PURE__ */V(se,{checked:s.checkToBottom,onChange:e=>l("checkToBottom",e)})})]}),
47
- /* @__PURE__ */A(ee,{icon:/* @__PURE__ */V(ue,{}),label:"SOUND",children:[
48
- /* @__PURE__ */V(te,{label:"Alarm Sound",children:/* @__PURE__ */A("div",{className:"flex items-center gap-2",children:[
49
- /* @__PURE__ */V(re,{value:s.alarmSound,onChange:e=>l("alarmSound",e),options:g.map(e=>({id:e.id,label:e.label}))}),"off"!==s.alarmSound&&/* @__PURE__ */V("button",{type:"button",onClick:()=>k(s.alarmSound,{volume:s.alarmVolume,repeat:1}),className:"px-2 py-1 text-2xs rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
50
- /* @__PURE__ */V(oe,{value:s.alarmVolume,onChange:e=>l("alarmVolume",e)}),
51
- /* @__PURE__ */V(te,{label:"repeat",children:/* @__PURE__ */V(ae,{value:s.alarmRepeat,onChange:e=>l("alarmRepeat",e),min:1,max:5,className:"w-14 text-center"})}),
52
- /* @__PURE__ */V(te,{label:"Focus Sound",children:/* @__PURE__ */A("div",{className:"flex items-center gap-2",children:[
53
- /* @__PURE__ */V(re,{value:s.focusSound,onChange:e=>l("focusSound",e),options:f}),"none"!==s.focusSound&&/* @__PURE__ */V("button",{type:"button",onClick:()=>b(s.focusSound,s.focusVolume),className:"px-2 py-1 text-2xs rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
54
- /* @__PURE__ */V(oe,{value:s.focusVolume,onChange:e=>l("focusVolume",e)})]})]})}function ee({icon:e,label:t,children:o}){/* @__PURE__ */
55
- return A("div",{className:"border-t border-gray-200 pt-3 first:border-0 first:pt-0",children:[
56
- /* @__PURE__ */A("div",{className:"flex items-center gap-2 mb-3 text-ink-faintest",children:[e,
57
- /* @__PURE__ */V("span",{className:"text-xs font-bold tracking-[0.15em]",children:t})]}),
58
- /* @__PURE__ */V("div",{className:"space-y-3",children:o})]})}function te({label:e,info:t,children:o}){/* @__PURE__ */
59
- return A("div",{className:"flex items-center justify-between gap-3",children:[
60
- /* @__PURE__ */A("div",{className:"flex items-center gap-2 min-w-0",children:[
61
- /* @__PURE__ */V("span",{className:"text-sm font-semibold text-gray-800",children:e}),t&&/* @__PURE__ */V(ie,{title:t})]}),
62
- /* @__PURE__ */V("div",{className:"shrink-0",children:o})]})}function oe({value:e,onChange:t}){/* @__PURE__ */
63
- return A("div",{className:"flex items-center justify-end gap-3",children:[
64
- /* @__PURE__ */V("span",{className:"text-xs text-gray-400 w-7 text-right tabular-nums",children:e}),
65
- /* @__PURE__ */V("input",{type:"range",min:0,max:100,value:e,onChange:e=>t(parseInt(e.target.value,10)),className:"w-40 accent-blue-500"})]})}function ne({label:e,value:t,onChange:o,min:n=1,max:a=99}){/* @__PURE__ */
66
- return A("label",{className:"flex flex-col",children:[
67
- /* @__PURE__ */V("span",{className:"text-xs font-semibold text-gray-500 mb-1",children:e}),
68
- /* @__PURE__ */V(ae,{value:t,onChange:o,min:n,max:a})]})}function ae({value:e,onChange:t,min:o=1,max:n=99,className:a=""}){/* @__PURE__ */
69
- return V("input",{type:"number",min:o,max:n,value:e,onChange:e=>t(Math.max(o,Math.min(n,parseInt(e.target.value,10)||o))),className:`bg-gray-100 border-0 rounded-md px-2 h-8 text-sm font-medium text-ink-strong focus:outline-none focus:ring-2 focus:ring-blue-500 w-full ${a}`})}function re({value:e,onChange:t,options:o}){/* @__PURE__ */
70
- return A("div",{className:"relative",children:[
71
- /* @__PURE__ */V("select",{value:e,onChange:e=>t(e.target.value),className:"appearance-none bg-gray-100 border-0 rounded-md pl-3 pr-8 h-8 text-sm font-medium text-ink-strong focus:outline-none focus:ring-2 focus:ring-blue-500 cursor-pointer",children:o.map(e=>/* @__PURE__ */V("option",{value:e.id,children:e.label},e.id))}),
72
- /* @__PURE__ */V(j,{name:"chevron-down",className:`absolute right-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 pointer-events-none ${x}`,strokeWidth:2.5})]})}function se({checked:e,onChange:t}){/* @__PURE__ */
73
- return V("button",{type:"button",role:"switch","aria-checked":e,onClick:()=>t(!e),className:"relative inline-flex h-6 w-11 items-center rounded-full transition-colors "+(e?"bg-emerald-500":"bg-gray-300"),children:/* @__PURE__ */V("span",{className:"absolute h-5 w-5 rounded-full bg-white shadow transition-transform "+(e?"translate-x-[22px]":"translate-x-0.5")})})}function ie({title:e}){/* @__PURE__ */
74
- return V("span",{title:e,className:"inline-flex items-center justify-center w-4 h-4 rounded-full bg-gray-300 text-on-accent text-3xs font-bold cursor-help",children:"i"})}function le(){/* @__PURE__ */
75
- return A("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
76
- /* @__PURE__ */V("circle",{cx:"12",cy:"12",r:"9"}),
77
- /* @__PURE__ */V("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 7v5l3 2"})]})}function ce(){/* @__PURE__ */
78
- return A("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
79
- /* @__PURE__ */V("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),
80
- /* @__PURE__ */V("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4"})]})}function ue(){/* @__PURE__ */
81
- return A("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
82
- /* @__PURE__ */V("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 5L6 9H2v6h4l5 4V5z"}),
83
- /* @__PURE__ */V("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.5 8.5a5 5 0 010 7M19 5a9 9 0 010 14"})]})}function de({onSubmit:e,onCancel:t,accentColor:o}){const[n,a]=T(""),[r,s]=T(1),i=()=>e(n,r);/* @__PURE__ */
84
- return A("div",{className:"bg-surface text-ink-strong rounded-md p-3 shadow-(--elevation-panel)",children:[
85
- /* @__PURE__ */V("input",{autoFocus:!0,value:n,onChange:e=>a(e.target.value),placeholder:"What are you working on?",onKeyDown:e=>{"Enter"===e.key&&i(),"Escape"===e.key&&t()},className:"w-full text-base font-medium bg-transparent border-0 outline-none placeholder-gray-400"}),
86
- /* @__PURE__ */A("div",{className:"flex items-center justify-between mt-2",children:[
87
- /* @__PURE__ */V("span",{className:"text-xs font-semibold text-gray-500",children:"Est Pomodoros"}),
88
- /* @__PURE__ */V("input",{type:"number",min:1,max:20,value:r,onChange:e=>s(Math.max(1,Math.min(20,parseInt(e.target.value,10)||1))),className:"w-16 bg-gray-100 rounded px-2 py-1 text-sm text-right border-0 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),
89
- /* @__PURE__ */A("div",{className:"flex gap-2 mt-3 justify-end",children:[
90
- /* @__PURE__ */V("button",{onClick:t,className:"px-3 py-1 text-sm text-gray-500 hover:bg-gray-100 rounded",children:"Cancel"}),
91
- /* @__PURE__ */V("button",{onClick:i,className:"px-4 py-1 text-sm font-semibold text-white rounded shadow-sm",style:{backgroundColor:o},children:"Save"})]})]})}export{z 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 i,toggleOpenSection as a,writeStored as o}from"./chunk-AQH6MAYK.js";import{ResizeHandle as l}from"./chunk-JLSXDYS4.js";import{openGlobalSearch as s}from"./chunk-M3HTP2N6.js";import{partitionNav as c,visibleNavChildren as d,visibleSectionItems as m,rowsContainRoute as u}from"./chunk-HGOWQO63.js";import{BrandMark as h}from"./chunk-MI67DI3H.js";import{RAIL_MENU_GAP as p,navSections as b,startMenuCategories as f,RAIL_W as g,TAB_STRIP_H as x,RAIL_COLLAPSED_INSET as k,RAIL_MAX_W as y,RAIL_MIN_W as v,navIcons as N,sectionIcons as j}from"./chunk-4LXCCZDM.js";import"./chunk-5A7MWTXX.js";import{CloseButton as w}from"./chunk-LG6NDTHZ.js";import"./chunk-UVHXVSB2.js";import"./chunk-2QY5BJLA.js";import"./chunk-NWS5G7FE.js";import{PopupMenu as C,PopupMenuItem as S,PopupMenuDivider as L}from"./chunk-THAPVKEJ.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-BUFAJJDZ.js";import{Icon as $}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-F2RAIGCG.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-VY3UA6AR.js";import"./chunk-WCCS4VFE.js";import"./chunk-ZDXRSY2Y.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import{useShellStrings as A}from"./chunk-NRHG4R2Q.js";import"./chunk-C3QOHMR6.js";import{useMemo as z,useState as H,useRef as W,useEffect as T,isValidElement as I,cloneElement as R}from"react";import{jsx as D,jsxs as K,Fragment as M}from"react/jsx-runtime";var P="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform),Q=150,Y=250;function J(e,t,r){const n=Math.max(8,r-t.bottom);return{left:e+p,bottom:n,maxHeight:r-n-8,overflowY:"auto"}}var E=(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(" "),F="flex size-8 shrink-0 items-center justify-center rounded-md text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900",O="flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-[18px]";function U({open:e,children:t}){const r=W(null);return T(()=>{r.current?.toggleAttribute("inert",!e)},[e]),/* @__PURE__ */D("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__ */D("div",{className:"min-h-0 overflow-hidden",children:t})})}function V({open:e}){/* @__PURE__ */
2
- return D($,{name:"chevron-down",className:"size-4 shrink-0 transition-transform "+(e?"rotate-180":""),strokeWidth:2,"aria-hidden":"true"})}function B({dir:e}){/* @__PURE__ */
3
- return D($,"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 G({className:e}){/* @__PURE__ */
4
- return D($,{name:"search",className:e,strokeWidth:2,"aria-hidden":"true"})}var X=e=>.75+1.75*e+"rem";function Z({width:p,openWidth:Q=g,collapsed:Y,onToggleCollapsed:Z,onResize:_,onHome:q,onOpen:ee,activeRoute:te,profile:re,user:ne,onLogout:ie,onSwitchToDesktop:ae,onReportBug:oe,onClose:le,navSections:se=b,navIcons:ce=N,sectionIcons:de=j,categories:me=f,productName:ue,productIcon:he,tagline:pe,adaptiveLogo:be=!1,logoHasAlpha:fe=null,logoIsLight:ge=null}){const xe=A().layout,{hasAnyPerm:ke}=e(),ye=z(()=>c(se,me,ke),[se,me,ke]),[ve,Ne]=H(()=>t(r(n))),je=z(()=>[...ye.topItems.filter(e=>d(e,ke).length>0).map(e=>`child:${e.to}`),...[...ye.erpSections,...ye.systemSections,...ye.virtualSections,...ye.footerSections].map(e=>e.label)],[ye,ke]),we=(e,t=je)=>Ne(r=>{const i=a(r,e,t);return o(n,JSON.stringify([...i])),i}),[Ce,Se]=H(!1),Le=W(null),$e=Y&&!le,[Ae,ze]=H(!1),He=W("pointer"),We=W(void 0),Te=W(!1),Ie=W(null),Re=()=>{clearTimeout(We.current),We.current=void 0},De=e=>{Re(),He.current=e,ze(!0)},Ke=()=>{Re(),ze(!1)};T(()=>{Re(),ze(!1)},[Y]),T(()=>()=>Re(),[]),T(()=>{if(!Ae)return;const e=e=>{const t=e.target;t&&(Ie.current?.contains(t)||t.closest?.('[data-popup-menu-tree], [role="menu"]'))||(Re(),ze(!1))};return document.addEventListener("pointerdown",e,!0),()=>document.removeEventListener("pointerdown",e,!0)},[Ae]);const Me=Y&&!Ae,Pe=Y&&Ae?Q:p,Qe=(e,t)=>{Ke(),e.onSelect?e.onSelect():ee(e.to,!!t&&(e=>e.metaKey||e.ctrlKey||1===e.button)(t))},Ye=(e,t)=>{const r=t[e];/* @__PURE__ */
5
- return D("span",{className:O,"aria-hidden":"true",children:r&&I(r)?R(r,{className:"size-[18px]"}):r})},Je=e=>e.filter(e=>d(e,ke).length>0).map(e=>`child:${e.to}`),Ee=(e,t,r=je)=>{const n=d(e,ke),i=e.menuLabel??e.label;if(n.length>0){const a=`child:${e.to}`,o=ve.has(a),l=!o&&u(n,te,ke);/* @__PURE__ */
6
- return K("div",{children:[
7
- /* @__PURE__ */K("button",{type:"button",onClick:()=>we(a,r),"aria-expanded":o,className:E(l,!1),style:t>0?{paddingLeft:X(t)}:void 0,children:[0===t&&Ye(e.to,ce),
8
- /* @__PURE__ */D("span",{className:"min-w-0 flex-1 truncate",children:i}),
9
- /* @__PURE__ */D(V,{open:o})]}),
10
- /* @__PURE__ */D(U,{open:o,children:/* @__PURE__ */D("div",{className:"space-y-0.5 pt-0.5",children:n.map(e=>Ee(e,t+1,Je(n)))})}),e.dividerAfter&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:X(t)},"aria-hidden":"true"})]},e.to)}const a=e.to===te;/* @__PURE__ */
11
- return K("div",{children:[
12
- /* @__PURE__ */K("button",{type:"button",onClick:t=>Qe(e,t),onAuxClick:t=>{1===t.button&&Qe(e,t)},"aria-current":a?"page":void 0,className:E(a,!1),style:t>0?{paddingLeft:X(t)}:void 0,children:[0===t&&Ye(e.to,ce),
13
- /* @__PURE__ */D("span",{className:"min-w-0 flex-1 truncate",children:i})]}),e.dividerAfter&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:X(t)},"aria-hidden":"true"})]},e.to)},Fe=(e,t)=>{const r=t?e.items:m(e,ke);if(0===r.length)return null;const n="icon"in e&&e.icon?/* @__PURE__ */D("span",{className:O,"aria-hidden":"true",children:e.icon}):Ye(e.label,de),i=e.menuLabel??e.label,a=u(r,te,ke),o="dividerAfter"in e&&e.dividerAfter;if(Me)/* @__PURE__ */
14
- return K("div",{children:[
15
- /* @__PURE__ */D("button",{type:"button",title:i,"aria-label":i,"aria-expanded":!1,onClick:()=>{ve.has(e.label)||we(e.label),De("tap")},className:E(a,!0),children:n}),o&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label);const l=ve.has(e.label),s=`rosh-rail-${e.label.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}`;/* @__PURE__ */
16
- return K("div",{children:[
17
- /* @__PURE__ */K("button",{type:"button",onClick:()=>we(e.label),"aria-expanded":l,"aria-controls":s,className:E(!l&&a,!1),children:[n,
18
- /* @__PURE__ */D("span",{className:"min-w-0 flex-1 truncate",children:i}),
19
- /* @__PURE__ */D(V,{open:l})]}),
20
- /* @__PURE__ */D(U,{open:l,children:/* @__PURE__ */D("div",{id:s,role:"group","aria-label":i,className:"space-y-0.5 pt-0.5",children:r.map(e=>Ee(e,1,Je(r)))})}),o&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label)},Oe=re?.first_name?`${re.first_name} ${re.last_name||""}`.trim():ne?.email||"",Ue=(re?.first_name?.charAt(0)||ne?.email?.charAt(0)||"?").toUpperCase(),Ve=re?.avatar_url?/* @__PURE__ */D("img",{src:re.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */D("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:Ue}),Be=Ce?Le.current?.getBoundingClientRect():void 0,Ge=Me?"":"px-3",Xe=Me?{paddingInline:k}:void 0,Ze=`${Y?xe.expandSidebar:xe.collapseSidebar} (${P?"⌘":"Ctrl"} .)`,_e=q?{run:q,label:xe.goHome,title:xe.goHome}:le?null:{run:Z,label:Y?xe.expandSidebar:xe.collapseSidebar,title:Ze},qe=/* @__PURE__ */K(M,{children:[he&&/* @__PURE__ */D(h,{src:he,alt:"",slot:"compact",surface:"light",adaptive:be,hasAlpha:fe,isLight:ge,size:28,decorative:!0}),!Me&&/* @__PURE__ */K("span",{className:"min-w-0 text-left leading-tight",children:[
21
- /* @__PURE__ */D("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:ue??"Apps"}),pe&&/* @__PURE__ */D("span",{className:"block truncate text-2xs font-medium text-gray-500",children:pe})]})]}),et=ye.erpSections.length>0||ye.systemSections.length>0||ye.virtualSections.length>0;/* @__PURE__ */
22
- return K("aside",{ref:Ie,"aria-label":xe.navLabel,"data-rail-peek":Ae?"":void 0,className:`fixed left-0 top-0 z-(--z-sidebar) flex h-dvh flex-col border-r border-line bg-surface text-ink-strong ${Y?"overflow-hidden transition-[width] duration-150 ease-out motion-reduce:transition-none":""} ${Ae?"rounded-r-(--radius-panel)":""}`,style:{width:Pe,boxShadow:Ae?"var(--elevation-popup)":void 0},onPointerEnter:e=>{"touch"!==e.pointerType&&(Te.current=!0,$e&&(Ae?Re():(Re(),We.current=setTimeout(()=>De("pointer"),150))))},onPointerLeave:e=>{"touch"!==e.pointerType&&(Te.current=!1,$e&&(Re(),Ae&&!Ce&&"pointer"===He.current&&(We.current=setTimeout(Ke,250))))},onFocus:e=>{$e&&!Ae&&(e=>{try{return e.matches(":focus-visible")}catch{return!1}})(e.target)&&De("focus")},onBlur:e=>{if(!Ae||"focus"!==He.current)return;const t=e.relatedTarget;t&&Ie.current?.contains(t)||Ce||Te.current||Ke()},onKeyDown:e=>{"Escape"===e.key&&Ae&&Ke()},children:[
23
- /* @__PURE__ */K("div",{className:"flex shrink-0 items-center border-b border-gray-200 "+(Me?"justify-center":"justify-between gap-2 pl-4 pr-2"),style:{height:x},children:[_e?/* @__PURE__ */D("button",{type:"button",onClick:_e.run,"aria-label":_e.label,title:_e.title,className:"flex min-w-0 items-center gap-2 rounded-md transition-colors hover:bg-gray-100 "+(Me?"justify-center p-0.5":"-ml-1 p-1"),children:qe}):/* @__PURE__ */D("span",{className:"flex min-w-0 items-center gap-2",children:qe}),le?/* @__PURE__ */D(w,{onClose:le,label:xe.closeMenu}):Y?Ae&&
24
- /* @__PURE__ */D("button",{type:"button",onClick:()=>{Ke(),Z()},"aria-label":xe.keepSidebarOpen,title:`${xe.keepSidebarOpen} (${P?"⌘":"Ctrl"} .)`,className:F,children:/* @__PURE__ */D(B,{dir:"right"})}):/* @__PURE__ */D("button",{type:"button",onClick:Z,"aria-label":xe.collapseSidebar,title:`${xe.collapseSidebar} (${P?"⌘":"Ctrl"} .)`,className:F,children:/* @__PURE__ */D(B,{dir:"left"})})]}),
25
- /* @__PURE__ */D("div",{className:`shrink-0 pt-3 ${Ge}`,style:Xe,children:Me?/* @__PURE__ */D("button",{type:"button",onClick:s,"aria-label":xe.search,title:`${xe.search} (${P?"⌘K":"Ctrl K"})`,className:E(!1,!0),children:/* @__PURE__ */D(G,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */K("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:[
26
- /* @__PURE__ */D(G,{className:"size-3.5 text-gray-500"}),
27
- /* @__PURE__ */D("span",{className:"min-w-0 flex-1 truncate text-sm text-ink-faint",children:xe.search}),
28
- /* @__PURE__ */D("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"})]})}),
29
- /* @__PURE__ */K("nav",{"aria-label":xe.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${Ge} ${Me?"space-y-1":"space-y-0.5"}`,style:Xe,children:[Me&&/* @__PURE__ */D("button",{type:"button",onClick:Z,"aria-label":xe.expandSidebar,title:`${xe.expandSidebar} (${P?"⌘":"Ctrl"} .)`,className:`${E(!1,!0)} mb-3`,children:/* @__PURE__ */D(B,{dir:"right"})}),ye.topItems.map(e=>{if(!Me)return Ee(e,0);const t=d(e,ke),r=e.to===te||u(t,te,ke),n=e.menuLabel??e.label;/* @__PURE__ */
30
- return K("div",{children:[
31
- /* @__PURE__ */D("button",{type:"button",title:n,"aria-label":n,onClick:r=>{if(0===t.length)return void Qe(e,r);const n=`child:${e.to}`;ve.has(n)||we(n),De("tap")},className:E(r,!0),children:Ye(e.to,ce)}),e.dividerAfter&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.to)}),ye.topItems.length>0&&et&&!ye.topItems[ye.topItems.length-1].dividerAfter&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ye.erpSections.map(e=>Fe(e,!1)),ye.systemSections.map(e=>Fe(e,!1)),ye.virtualSections.map(e=>Fe(e,!0)),ye.footerSections.length>0&&/* @__PURE__ */D("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ye.footerSections.map(e=>Fe(e,!1))]}),
32
- /* @__PURE__ */D("div",{className:`shrink-0 border-t border-gray-200 py-2 ${Ge}`,style:Xe,children:/* @__PURE__ */K("button",{ref:Le,type:"button",onClick:()=>Se(e=>!e),"aria-haspopup":"menu","aria-expanded":Ce,"aria-label":Me?xe.accountMenu(Oe):void 0,className:"flex w-full items-center gap-3 rounded-md hover:bg-gray-100 "+(Me?"justify-center py-2":"px-2 py-2"),children:[Ve,!Me&&/* @__PURE__ */K("span",{className:"min-w-0 flex-1 text-left",children:[
33
- /* @__PURE__ */D("span",{className:"block truncate text-sm font-semibold text-ink-strong",children:Oe}),ne?.email&&Oe!==ne.email&&/* @__PURE__ */D("span",{className:"block truncate text-2xs text-ink-faint",children:ne.email})]})]})}),_&&!Y&&!le&&/* @__PURE__ */D(l,{side:"left",width:p,onResize:_,min:v,max:y,defaultWidth:g,storageKey:i,label:xe.resizeSidebar}),Ce&&Be&&/* @__PURE__ */K(C,{portal:!0,minWidth:224,onClose:()=>{Se(!1),Ae&&"pointer"===He.current&&!Te.current&&Ke()},style:J(Pe,Be,window.innerHeight),children:[Me&&/* @__PURE__ */K("div",{className:"border-b border-line px-3 py-3",children:[
34
- /* @__PURE__ */D("p",{className:"truncate text-sm font-semibold text-gray-800",children:Oe}),ne?.email&&/* @__PURE__ */D("p",{className:"truncate text-xs text-gray-500",children:ne.email})]}),
35
- /* @__PURE__ */K(S,{onClick:()=>{Se(!1),Ke(),ee("/profile",!1)},children:[
36
- /* @__PURE__ */D($,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.profile]}),ye.footerItems.map(e=>/* @__PURE__ */K(S,{onClick:()=>{Se(!1),Qe(e)},children:[
37
- /* @__PURE__ */D("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:ce[e.to]}),e.menuLabel??e.label]},e.to)),oe&&/* @__PURE__ */K(S,{onClick:()=>{Se(!1),Ke(),oe()},children:[
38
- /* @__PURE__ */D($,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.reportIssue]}),
39
- /* @__PURE__ */D(L,{}),ae&&/* @__PURE__ */K(M,{children:[
40
- /* @__PURE__ */K(S,{onClick:()=>{Se(!1),Ke(),ae()},children:[
41
- /* @__PURE__ */D($,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.switchToDesktop]}),
42
- /* @__PURE__ */D(L,{})]}),
43
- /* @__PURE__ */K(S,{danger:!0,onClick:()=>{Se(!1),Ke(),ie()},children:[
44
- /* @__PURE__ */D($,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.signOut]})]})]})}export{Y as RAIL_PEEK_CLOSE_MS,Q as RAIL_PEEK_OPEN_MS,J as accountMenuPosition,Z as default};
@@ -1,2 +0,0 @@
1
- import{TimelineCard as e}from"./chunk-S4Z657L6.js";import{TimelineTrack as n,TimelineMilestoneIcon as s}from"./chunk-6MFKKTCE.js";import{toDayMs as i,fmtSliderDate as t}from"./chunk-5CFERCYW.js";import{DAY_MS as a}from"./chunk-JRQMX4PK.js";import{useBrowserValueOnce as l}from"./chunk-WCCS4VFE.js";import{useShellStrings as o,useShellLocale as r}from"./chunk-NRHG4R2Q.js";import{jsx as h}from"react/jsx-runtime";function m({title:m,heading:d,subject:c,milestones:p,summary:u,endDate:g,phaseLabels:k,variant:v="card",edgeCaptions:f,highlightKeys:y=null,onHoverChange:b}){const C=l(Date.now,null),M=[],j=[],x=o().timeline,K=r();for(const e of p){const n=i(e.date??null);null===n?j.push({key:e.key,label:e.label,kind:e.kind}):M.push({...e,ms:n})}M.sort((e,n)=>e.ms-n.ms);const N=i(g??null);let R,w,E=!0;0===M.length?(w=N??C??0,R=w-30*a,E=null!==N||null!==C):(R=M[0].ms,w=N??M[M.length-1].ms,w-R<a&&(w=R+a));const F=M.length>0?Math.max(0,Math.round((w-R)/a)):0,H=u??(F>0?x.duration(F):void 0),L=[M.length>0?x.started(t(M[0].ms,K)):void 0,H,j.length>0?x.reached(M.length,p.length):void 0],O=M.map(e=>{return{key:e.key,ms:e.ms,kind:e.kind,label:e.label,detail:e.detail,preview:e.preview,glyph:e.glyph,onClick:e.onClick,onOpen:e.onOpen,priority:(n=e.kind,"dfm"===n?1:0),caption:e.caption,provisional:e.provisional};var n}),D={};for(const e of M)e.phase&&(D[e.phase]=D[e.phase]||[]).push(e.ms);const Q=Object.entries(D).filter(([,e])=>e.length>=2).map(([e,n])=>({key:e,label:k?.[e]??e,minMs:Math.min(...n),maxMs:Math.max(...n)})),S="rail"===v,W=E&&/* @__PURE__ */h("div",{className:"select-none",children:/* @__PURE__ */h(n,{axis:S?"spread":"compressed",labels:S?"none":"lanes",items:O,pending:j,phases:Q,startMs:R,endMs:w,todayMs:C??void 0,edgeCaptions:f,highlightKeys:y,onHoverChange:b,ariaLabel:x.milestones(m)})});/* @__PURE__ */
2
- return h("div",S?{className:"shrink-0","data-timeline-variant":"rail",children:W}:{className:"shrink-0",children:/* @__PURE__ */h(e,{icon:/* @__PURE__ */h(s,{}),heading:d??m,subject:c,meta:L,children:W})})}export{m as MilestoneTimeline};
@@ -1,11 +0,0 @@
1
- import{LIGHTBOX_PICTURE_FIT as e,ZoomableImage as t}from"./chunk-CGUMJZUB.js";import{isVideoUrl as r,mediaFileName as n}from"./chunk-DTRJLQWO.js";import{dialogA11y as o}from"./chunk-VWGWZY7A.js";import{useDismissPopupsOnOpen as a}from"./chunk-UVHXVSB2.js";import{useFocusTrap as l,useScrollLock as i}from"./chunk-DWGYC7OD.js";import{Button_default as c}from"./chunk-UTISUEO4.js";import{Icon as s}from"./chunk-ISVODSRP.js";import{Z_LAYERS as m}from"./chunk-62LW225J.js";import{useHydrated as u}from"./chunk-WCCS4VFE.js";import{buttonClasses as d}from"./chunk-UQYNPYF4.js";import{registerModalEscapeInterceptor as f}from"./chunk-TWVUQUUD.js";import{useShellStrings as h}from"./chunk-NRHG4R2Q.js";import{useRef as p,useState as x,useCallback as b,useEffect as k}from"react";import{createPortal as g}from"react-dom";import{jsx as v,jsxs as w,Fragment as N}from"react/jsx-runtime";var y=/\.(pdf|docx?|xlsx?|pptx?|csv|txt|zip|rar|7z|dwg|dxf|stp|step|igs|iges)(?:[?#]|$)/i;function j(e){return e.kind?e.kind:r(e.url)?"video":y.test(e.url)?"file":"image"}var C="flex items-center justify-center rounded-full bg-black/60 text-on-accent hover:bg-black/80 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",U=e=>e.stopPropagation();function W({images:r,startIndex:y=0,onClose:W,onIndexChange:D,onOpenFile:I}){const O=h().lightbox,R=u(),V=p(null),$=p(null),[z,F]=x(y),L=r.length,S=R&&L>0,A=b(e=>{if(L<2)return;const t=((z+e)%L+L)%L;F(t),D?.(t)},[z,L,D]);if(a(S),l(V,S,$),i(S),k(()=>{if(S)return f(()=>(W(),!0),()=>V.current)},[S,W]),k(()=>{if(!S)return;const e=e=>{"ArrowLeft"!==e.key&&"ArrowRight"!==e.key||e.target?.closest?.("video")||(e.preventDefault(),A("ArrowRight"===e.key?1:-1))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[S,A]),!S)return null;const E=r[Math.min(z,L-1)],G=j(E),Q=E.caption||n(E.url);let Y;return Y="video"===G?/* @__PURE__ */v("video",{src:E.url,controls:!0,playsInline:!0,"aria-label":Q,onClick:U,className:`${e} rounded-lg bg-black`}):"file"===G?/* @__PURE__ */w("div",{onClick:U,className:"flex max-w-[calc(100vw-144px)] flex-col items-center gap-3 rounded-lg bg-surface px-10 py-8 text-center text-ink-faint",children:[
2
- /* @__PURE__ */v(s,{name:"document","aria-hidden":"true",className:"h-10 w-10"}),
3
- /* @__PURE__ */v("span",{className:"max-w-[60ch] break-all text-sm font-medium text-ink",children:Q}),I?/* @__PURE__ */v(c,{size:"sm",onClick:()=>I(E),children:O.openFile}):/* @__PURE__ */v("a",{href:E.url,target:"_blank",rel:"noopener noreferrer",className:d({size:"sm"}),children:O.openFile})]}):/* @__PURE__ */v(t,{src:E.url,alt:Q,className:`${e} object-contain`,frameClassName:"rounded-lg"}),g(
4
- /* @__PURE__ */w("div",{ref:V,...o({role:"dialog",modal:!0,label:O.label}),"data-lightbox-backdrop":"",className:"fixed inset-0 flex items-center justify-center bg-black/80",style:{zIndex:m.overlay},onClick:W,children:[Y,
5
- /* @__PURE__ */w("div",{className:"absolute right-4 top-4 flex items-center gap-2",onClick:U,children:[
6
- /* @__PURE__ */v("span",{className:"rounded bg-black/60 px-2 py-1 text-xs text-on-accent tabular-nums",children:O.counter(z+1,L)}),
7
- /* @__PURE__ */v("button",{ref:$,type:"button",onClick:W,"aria-label":O.close,className:`${C} h-8 w-8`,children:/* @__PURE__ */v(s,{name:"close","aria-hidden":"true",className:"h-4 w-4"})})]}),L>1&&/* @__PURE__ */w(N,{children:[
8
- /* @__PURE__ */v("button",{type:"button",onClick:e=>{U(e),A(-1)},"aria-label":O.previous,className:`${C} absolute left-4 top-1/2 h-10 w-10 -translate-y-1/2`,children:/* @__PURE__ */v(s,{name:"chevron-left","aria-hidden":"true",className:"h-5 w-5"})}),
9
- /* @__PURE__ */v("button",{type:"button",onClick:e=>{U(e),A(1)},"aria-label":O.next,className:`${C} absolute right-4 top-1/2 h-10 w-10 -translate-y-1/2`,children:/* @__PURE__ */v(s,{name:"chevron-right","aria-hidden":"true",className:"h-5 w-5"})})]}),
10
- /* @__PURE__ */w("div",{className:"absolute inset-x-18 bottom-4 flex items-center justify-center gap-3",onClick:U,children:[
11
- /* @__PURE__ */v("span",{className:"min-w-0 break-words text-center text-sm text-on-accent/85",children:Q}),"file"!==G&&/* @__PURE__ */v("a",{href:E.url,target:"_blank",rel:"noopener noreferrer",className:"flex-none text-xs font-medium text-on-accent/70 underline decoration-on-accent/30 underline-offset-2 hover:text-on-accent",children:O.openOriginal})]})]}),document.body)}export{W as ImageLightbox,j as lightboxKind};
@@ -1,7 +0,0 @@
1
- import{squarify as e}from"./chunk-46BYGPGD.js";import{AccessibleTable as t}from"./chunk-ZDFMYAQB.js";import{useHighlight as l}from"./chunk-CNYAHYE6.js";import{ChartTooltip as a}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as r,CHART_INK as i}from"./chunk-TZFACUMR.js";import{usePlotWidth as o}from"./chunk-MAFUXCPZ.js";import{useShellStrings as n,useShellLocale as m}from"./chunk-NRHG4R2Q.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useRef as c,useState as u}from"react";import{jsx as s,jsxs as f}from"react/jsx-runtime";function p({items:p,height:d=320,width:v,gap:x=2,radius:g=3,formatValue:y,color:k,className:b,emptyLabel:j}){const M=n().charts,w=m(),N=y??(e=>h(e,w)),$=j??M.nothingToBreakDown,F=c(null),A=o(F),B=v??A,[C,D]=u(null),{highlighted:Q}=l(),R=e(p,B,d);if(0===R.length)/* @__PURE__ */
2
- return s("div",{className:b,ref:F,children:/* @__PURE__ */s("p",{className:"py-8 text-center text-sm text-gray-500",children:$})});const Y=k??r(0),z=Math.max(...R.map(e=>e.value),1),G=e=>34+e/z*62,H=e=>`color-mix(in oklab, ${Y} ${G(e).toFixed(0)}%, ${i.surface})`,V=e=>G(e)>=55?i.surface:i.label,Z=C??Q,E=C?R.find(e=>e.key===C):void 0;/* @__PURE__ */
3
- return f("div",{className:`relative ${b??""}`,ref:F,children:[
4
- /* @__PURE__ */s("svg",{width:"100%",height:d,viewBox:`0 0 ${B} ${d}`,role:"img","aria-label":M.treemap(p.length),onMouseLeave:()=>D(null),children:R.map(e=>{const t=Math.max(0,e.width-x),l=Math.max(0,e.height-x),a=t>6.2*e.label.length+12&&l>30,r=a&&l>44;/* @__PURE__ */
5
- return f("g",{opacity:Z&&Z!==e.key?.55:1,onMouseEnter:()=>D(e.key),children:[
6
- /* @__PURE__ */s("rect",{x:e.x+x/2,y:e.y+x/2,width:t,height:l,rx:g,fill:H(e.value)}),a&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+18,fontSize:12,fontWeight:600,fill:V(e.value),children:e.label}),r&&/* @__PURE__ */s("text",{x:e.x+x/2+8,y:e.y+x/2+34,fontSize:11,fill:V(e.value),fillOpacity:.85,style:{fontVariantNumeric:"tabular-nums"},children:N(e.value)})]},e.key)})}),E&&/* @__PURE__ */s("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */s(a,{title:E.label,rows:[{key:"value",label:M.value,color:H(E.value),value:N(E.value)}]})}),
7
- /* @__PURE__ */s(t,{caption:M.treemap(p.length),head:[M.tableItem,M.value],rows:R.map(e=>[e.label,N(e.value)])})]})}export{p as TreemapChart};
@@ -1,6 +0,0 @@
1
- import{useOverlayTarget as e,usePopupAnchor as r,usePanelPosition as l,usePopupLevel as t,usePopupLevelBindings as i,windowScrimStyle as a,OverlayLayerProvider as o,scrimHasCorners as n,popupLayerStyle as s,POPUP_GUTTER as d}from"./chunk-VY6OQRZA.js";import{CloseButton as c}from"./chunk-LG6NDTHZ.js";import{useDiscardGuard as m}from"./chunk-4BYJABCX.js";import{dialogA11y as p}from"./chunk-VWGWZY7A.js";import{useDismissPopupsOnOpen as u}from"./chunk-UVHXVSB2.js";import{useFocusTrap as f,useScrollLock as h}from"./chunk-DWGYC7OD.js";import{HEADING_TEXT as x,DESCRIPTION_TEXT as v,PANEL_SURFACE as b}from"./chunk-BWJZTHZ6.js";import{useHydrated as w}from"./chunk-WCCS4VFE.js";import{registerModalEscapeInterceptor as y}from"./chunk-TWVUQUUD.js";import{useShellStrings as $}from"./chunk-NRHG4R2Q.js";import{useRef as g,useId as N,useState as j,useEffect as k}from"react";import{createPortal as C}from"react-dom";import{jsxs as B,Fragment as V,jsx as W}from"react/jsx-runtime";var H=`calc(100% - ${2*d}px)`,Z="grid grid-cols-[minmax(0,1fr)_auto]",A="bg-black/30 backdrop-blur-sm",D={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-4xl","2xl":"max-w-6xl",full:"max-w-none"};function G({open:d,onClose:G,title:T,description:U,role:Y="dialog",children:E,footer:Q,headerActions:R,blocking:_=!1,size:F="md",aside:J=!1,dirty:O=!1,initialFocus:S,"aria-label":X,"aria-labelledby":z,"aria-describedby":I,className:L=""}){const q=g(null),K=N(),M=N(),P=!_,ee="full"===F,re=ee||null!=R,le=Boolean(T||U),te=N();$().dialog;const ie=e(w()),[ae,oe]=j(null),ne=m({open:d,dirty:O,onClose:G,title:T,layer:ae}),se=g(null),de=r(d&&null!==ie,se),ce=l(de,q),me=t(d&&null!==ie,se),pe=i(me,ae),ue=a(me),fe=null!==me.host;if(u(d),f(q,d&&null!==ie,S,pe),h(d),k(()=>{if(d)return y(()=>!pe.current?.(document.activeElement)&&(_||ne(),!0),()=>q.current)},[d,_,ne,pe]),!d||!ie)return null;/* @__PURE__ */
2
- return B(V,{children:[/* @__PURE__ */W("span",{ref:se,hidden:!0,"data-popup-anchor":""}),C(
3
- /* @__PURE__ */W(o,{value:ae,children:/* @__PURE__ */B("div",{ref:oe,className:"fixed inset-0"+(J?" pointer-events-none opacity-0":fe?" pointer-events-none":""),style:s(me),role:"presentation","data-overlay-layer":"","data-aside":J?"":void 0,children:[!fe&&/* @__PURE__ */W("div",{className:`fixed inset-0 ${A}`,"aria-hidden":"true","data-popup-scrim":"system"}),ue&&/* @__PURE__ */W("div",{className:`fixed ${A}${J?"":" pointer-events-auto"}${n(me)?" rounded-(--radius-window)":""}`,style:ue,onClick:_?void 0:ne,"aria-hidden":"true","data-popup-scrim":"window"}),
4
- /* @__PURE__ */W("div",{className:de?"fixed inset-0":"fixed inset-0 flex items-center justify-center p-4",onClick:_||fe?void 0:e=>{e.target===e.currentTarget&&ne()},children:/* @__PURE__ */B("div",{ref:q,"data-popup-panel":"",style:de?{left:ce?.left??0,top:ce?.top??0,visibility:ce?void 0:"hidden",width:H,[ee?"height":"maxHeight"]:H}:void 0,...p({role:Y,modal:!0,titleId:T?te:void 0,labelledBy:z,label:X}),"aria-describedby":I??(U?M:E?K:void 0),className:(ee?`${de?"absolute":"relative h-full w-full max-h-full"} ${D[F]} ${Z} grid-rows-[auto_minmax(0,1fr)_auto] overflow-hidden rounded-(--radius-popup) ${b}`:`${de?"absolute":"relative max-h-full w-full"} ${D[F]}${re?` ${Z} content-start gap-x-2`:""} overflow-y-auto overscroll-contain rounded-(--radius-card) ${b} p-6`)+`${fe&&!J?" pointer-events-auto":""} ${L}`.trimEnd(),children:[ee?le&&
5
- /* @__PURE__ */B("div",{className:"col-start-1 row-start-1 flex min-h-(--row-height-window-bar) flex-col justify-center border-b border-line py-2 pl-6 pr-4",children:[T&&/* @__PURE__ */W("h2",{id:te,className:x,children:T}),U&&/* @__PURE__ */W("p",{id:M,className:`${T?"mt-1 ":""}${v}`,children:U})]}):T&&/* @__PURE__ */W("h2",{id:te,className:`${re?"col-start-1 row-start-1 ":P?"pr-8 ":""}${x}`,children:T}),!ee&&U&&/* @__PURE__ */W("p",{id:M,className:`${re?"col-start-1 ":""}${T?"mt-1":P&&!re?"pr-8":""} ${v}`.trim(),children:U}),E&&/* @__PURE__ */W("div",{id:K,className:ee?"col-span-2 row-start-2 min-h-0 overflow-auto":(re?"col-span-2 ":"")+"mt-2 text-sm text-gray-600",children:E}),Q&&/* @__PURE__ */W("div",{className:ee?"col-span-2 row-start-3 flex flex-wrap justify-end gap-3 border-t border-line px-6 py-4":(re?"col-span-2 ":"")+"mt-6 flex flex-wrap justify-end gap-3",children:Q}),re?
6
- /* @__PURE__ */B("div",{className:"col-start-2 row-start-1 flex items-center gap-1 "+(ee?(le?"border-b border-line ":"")+"pr-3":"-mr-3 -mt-3 self-start"),children:[R,P&&/* @__PURE__ */W(c,{onClose:ne})]}):P&&/* @__PURE__ */W(c,{onClose:ne,className:"absolute right-3 top-3"})]})})]})}),ie)]})}export{G as Dialog};
@@ -1,13 +0,0 @@
1
- import{nextEnabledIndex as e}from"./chunk-EO5RLFRX.js";import{flattenOptionItems as t,filterOptionItems as n,optionMatches as r,groupedRows as l,OptionCheck as o,OptionSublabel as i}from"./chunk-K5YT5PMJ.js";import{END_ACTIONS_PAD as a,InputEndActionSlot as s,InputEndActionButton as c}from"./chunk-B5KX7PDG.js";import{INPUT_BASE_ON as u,INPUT_BASE as d}from"./chunk-AYZY3YNC.js";import{Button_default as h}from"./chunk-UTISUEO4.js";import{Icon as p}from"./chunk-ISVODSRP.js";import{LoadingSpinner as m}from"./chunk-R2VKEMZH.js";import{Tooltip as f}from"./chunk-F2RAIGCG.js";import{onOverlayOpen as b}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as g}from"./chunk-62LW225J.js";import{useDropdownPosition as v,MENU_MAX_HEIGHT as w}from"./chunk-VY3UA6AR.js";import{useBrowserLayoutEffect as y}from"./chunk-ZDXRSY2Y.js";import{registerModalEscapeInterceptor as x}from"./chunk-TWVUQUUD.js";import{GLASS_DIVIDER as k,glassStyle as j}from"./chunk-5FYDNH4Y.js";import{useShellStrings as $}from"./chunk-NRHG4R2Q.js";import{useState as N,useId as D,useRef as C,useMemo as S,useEffect as R}from"react";import{createPortal as W}from"react-dom";import{jsxs as M,jsx as A}from"react/jsx-runtime";function E(e,t){const n=e.length;if(0===n||t(e.join(", ")))return{shown:n,cut:!1};if(1===n)return{shown:1,cut:!0};let r=0;for(let l=1;l<n&&t(`${e.slice(0,l).join(", ")} +${n-l}`);l+=1)r=l;return{shown:r,cut:!1}}var F=["right-2","right-8","right-16"],T=[8,32,64];function Y(Y){const{options:z,placeholder:O,emptyOptionLabel:I,className:L="",disabled:U,id:G,filter:H=!1,allowFreeText:B=!1,freeTextOption:K,onSearchChange:P,loading:V=!1,error:X,onRetry:Z,rightAdornment:J,endAction:Q,renderOption:q,clearable:_=!0,"aria-label":ee,"aria-labelledby":te,"aria-describedby":ne}=Y,re=!0===Y.multiple,le=Y.multiple?Y.value:Y.value?[Y.value]:[],oe=Y.multiple?"":Y.value,ie=e=>{Y.multiple?Y.onChange(e):Y.onChange(e[0]??"")},ae=le.length>0,se=H&&ae&&!U,ce=re||H,ue=null!=K,de=B||ue,[he,pe]=N(!1),[me,fe]=N(-1),be=D(),ge=G??`${be}-input`,ve=`${be}-listbox`,we=e=>`${be}-opt-${e}`,[ye,xe]=N(""),ke=$(),je=I??ke.select.none,$e=e=>{xe(e),fe(-1),P?.(e)},Ne=C(null),De=C(null),Ce=C(null),Se=C(null),Re=C(he);Re.current=he;const We=C(!1),Me=e=>{Re.current&&(Re.current=!1,e&&B&&!ue&&et&&(re?le.includes(et)||ie([...le,et]):et!==oe&&ie([et])),pe(!1),$e(""))},Ae=(e,t)=>{if(!e.disabled){if(re)return ie(le.includes(e.value)?le.filter(t=>t!==e.value):[...le,e.value]),void(e===tt?$e(""):fe(t));ie([e.value]),Me(!1)}},[Ee,Fe]=N(null);y(()=>{if(!J||he)return void Fe(null);const e=Se.current?.offsetWidth??0;Fe(e?e+T[Ue]+6:null)});const Te=v(De,he,ce?{popupRef:Ce}:{matchTriggerWidth:!0}),Ye=S(()=>t(z),[z]),ze=le.join("\0"),Oe=S(()=>{const e=[],t=/* @__PURE__ */new Set;for(const n of Ye)le.includes(n.value)&&!t.has(n.value)&&(t.add(n.value),e.push(n.label));if(de)for(const n of le)t.has(n)||e.push(n);return e},[Ye,ze,de]),Ie=Oe.join(", "),Le=_&&ae&&!U,Ue=(Le?1:0)+(Q?1:0),[Ge,He]=N(null),Be=C(null),Ke=C(""),Pe=C(()=>{});Pe.current=()=>{const e=De.current,t=Be.current;if(!re||!e||!t)return;const n=getComputedStyle(e),r=e.clientWidth-(parseFloat(n.paddingLeft)||0)-(parseFloat(n.paddingRight)||0),l=[n.fontStyle,n.fontWeight,n.fontSize,n.fontFamily,n.letterSpacing].join("|"),o=`${r}|${l}|${Oe.join("\0")}`;if(o===Ke.current)return;Ke.current=o;let i=null;r>0&&Oe.length>0&&(t.style.fontStyle=n.fontStyle,t.style.fontWeight=n.fontWeight,t.style.fontSize=n.fontSize,t.style.fontFamily=n.fontFamily,t.style.letterSpacing=n.letterSpacing,i=E(Oe,e=>(t.textContent=e,t.getBoundingClientRect().width<=r)),t.textContent=""),He(e=>e?.shown===i?.shown&&e?.cut===i?.cut?e:i)},y(()=>{Pe.current()}),R(()=>{const e=De.current;if(!re||!e||"undefined"==typeof ResizeObserver)return;const t=new ResizeObserver(()=>Pe.current());return t.observe(e),()=>t.disconnect()},[re]);const Ve=Oe.length,Xe=!re||!Ge||Ge.shown>=Ve?Ie:0===Ge.shown?ke.select.selectedCount(Ve):`${Oe.slice(0,Ge.shown).join(", ")} +${Ve-Ge.shown}`,Ze=re&&null!==Ge&&(Ge.shown<Ve||Ge.cut),Je=he&&ae&&ce;R(()=>{if(!he)return;const e=e=>{const t=e.target;Ne.current?.contains(t)||Ce.current?.contains(t)||Me(!0)};document.addEventListener("mousedown",e);const t=b(()=>Me(!0));return()=>{document.removeEventListener("mousedown",e),t()}},[he,B,ye,ze,Y.onChange]),R(()=>{if(he)return x(e=>!("Escape"!==e.key||!Re.current)&&(Me(!1),De.current?.blur(),!0),()=>Ce.current)},[he]);const Qe=S(()=>{const e=/* @__PURE__ */new Set;return n(z,t=>!e.has(t.value)&&(e.add(t.value),!0))},[z]),qe=S(()=>{if(P)return Qe;const e=ye.trim().toLowerCase();return e?n(Qe,t=>r(t,e)):Qe},[Qe,ye,P]),_e=S(()=>t(qe),[qe]),et=ye.trim(),tt=S(()=>ue&&et?Ye.some(e=>e.label===et)||le.includes(et)?null:{value:et,label:et}:null,[ue,et,Ye,ze]),nt=S(()=>tt?[..._e,tt]:_e,[_e,tt]);/* @__PURE__ */
2
- return M("div",{ref:Ne,className:"relative group",onBlur:e=>{const t=e.relatedTarget;t&&(Ne.current?.contains(t)||Ce.current?.contains(t))||We.current||document.activeElement!==De.current&&Me(!0)},children:[(rt=/* @__PURE__ */A("input",{id:ge,ref:De,type:"text",autoComplete:"off",role:"combobox","aria-expanded":he,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-controls":he?ve:void 0,"aria-activedescendant":he&&me>=0&&me<nt.length?we(me):void 0,"aria-label":te?void 0:ee,"aria-labelledby":te,"aria-describedby":ne,value:he?ye:Xe,onChange:e=>{$e(e.target.value),pe(!0)},onFocus:()=>{U||($e(""),pe(!0))},onKeyDown:t=>{if("ArrowDown"===t.key||"ArrowUp"===t.key){if(U)return;if(t.preventDefault(),!he)return void pe(!0);if(0===nt.length)return;const n="ArrowDown"===t.key?1:-1;return void fe(t=>e(nt,t,n))}"Enter"===t.key?(t.preventDefault(),he&&me>=0&&me<nt.length?Ae(nt[me],me):1!==_e.length||_e[0].disabled?B&&!ue&&et&&(re?(le.includes(et)||ie([...le,et]),$e("")):(ie([et]),Me(!1),De.current?.blur())):Ae(_e[0],0)):"Escape"===t.key?(Me(!1),De.current?.blur()):"Tab"===t.key&&Me(!0)},placeholder:Je?Xe:O||je,className:`${se?u:d} ${L} ${a[Ue]}${U?"bg-surface-sunken text-ink-faintest cursor-not-allowed":""} truncate${Je?" rosh-field-shows-choice":""}`,style:Ee?{paddingRight:Ee}:void 0,disabled:U}),re?/* @__PURE__ */A(f,{content:!he&&Ze?Ie:null,className:"block",children:rt}):rt),re&&
3
- /* @__PURE__ */A("div",{"aria-hidden":"true",className:"pointer-events-none invisible absolute left-0 top-0 h-0 w-0 overflow-hidden",children:/* @__PURE__ */A("span",{ref:Be,className:"whitespace-pre"})}),Ue>0&&
4
- /* @__PURE__ */M(s,{children:[Le&&
5
- /* @__PURE__ */A("span",{onMouseDown:e=>e.preventDefault(),className:"flex opacity-0 transition-opacity group-hover:opacity-100 focus-within:opacity-100",children:/* @__PURE__ */A(c,{action:{label:ke.select.clear,icon:/* @__PURE__ */A(p,{name:"close"}),onClick:()=>{ie([]),Me(!1)}}})}),Q&&/* @__PURE__ */A("span",{onMouseDown:e=>e.preventDefault(),className:"flex",children:/* @__PURE__ */A(c,{action:Q})})]}),J&&!he&&/* @__PURE__ */A("div",{ref:Se,className:`absolute top-1/2 -translate-y-1/2 ${F[Ue]} flex items-center gap-1 flex-nowrap justify-end pointer-events-none`,children:J}),he&&W(
6
- /* @__PURE__ */M("div",{ref:Ce,onMouseDownCapture:()=>{We.current=!0,setTimeout(()=>{We.current=!1},0)},className:"fixed rounded-(--radius-popup) overflow-hidden",style:{zIndex:g.popup,left:Te?.left,right:Te?.right,top:Te?.top,bottom:Te?.bottom,minWidth:Te?.minWidth,width:Te?.width,...ce&&{maxWidth:Te?.maxWidth},visibility:Te?void 0:"hidden",...j()},children:[re&&ae&&_&&!U&&
7
- /* @__PURE__ */A("button",{type:"button",tabIndex:-1,onMouseDown:e=>{e.preventDefault(),ie([])},className:`block w-full text-left px-3 min-h-(--row-height-menu) py-2 leading-5 text-sm text-gray-600 hover:bg-row-hover border-b ${k}`,children:ke.select.clearAll}),V?
8
- /* @__PURE__ */A(m,{size:"sm",padding:"py-2",label:ke.search.searching}):X?/* @__PURE__ */M("div",{role:"alert",className:"flex items-center gap-2 px-3 py-2 text-sm text-red-600",children:[
9
- /* @__PURE__ */A("span",{className:"min-w-0 flex-1",children:X}),Z&&/* @__PURE__ */A(h,{variant:"link",size:"sm",onMouseDown:e=>e.preventDefault(),onClick:Z,className:"shrink-0",children:ke.list.retry})]}):null,
10
- /* @__PURE__ */M("div",{id:ve,role:nt.length?"listbox":void 0,"aria-labelledby":nt.length?te??(ee?void 0:ge):void 0,"aria-label":nt.length&&!te?ee:void 0,"aria-multiselectable":!(!nt.length||!re)||void 0,className:"overflow-y-auto",style:{maxHeight:Te?.maxHeight??w},children:[0===nt.length?V||X?null:/* @__PURE__ */A("p",{className:"px-3 py-3 text-sm text-ink-faintest text-center",children:ke.select.noMatches}):0===_e.length?null:l(qe,(e,t)=>{const n=le.includes(e.value);/* @__PURE__ */
11
- return M("button",{id:we(t),type:"button",role:"option","aria-selected":n,"aria-disabled":e.disabled||void 0,tabIndex:-1,onMouseDown:n=>{(e.disabled||re)&&n.preventDefault(),Ae(e,t)},className:"w-full overflow-hidden text-left px-3 min-h-(--row-height-menu) py-2 text-sm flex items-center justify-between gap-2 whitespace-nowrap "+(e.disabled?"cursor-not-allowed text-gray-400":`hover:bg-gray-50 ${n?"text-blue-600 font-medium":"text-gray-700"} ${t===me?"bg-gray-100":n?"bg-blue-50/50":""}`),children:[re&&/* @__PURE__ */A(o,{selected:n}),
12
- /* @__PURE__ */A("span",{className:`min-w-0 ${ce?"flex-auto":"flex-1"} truncate`,children:q?q(e,{selected:n,active:t===me}):e.label}),e.sublabel&&/* @__PURE__ */A(i,{grows:ce,children:e.sublabel})]},e.value)},be),tt&&K&&
13
- /* @__PURE__ */A("button",{id:we(_e.length),type:"button",role:"option","aria-selected":!1,tabIndex:-1,onMouseDown:e=>{re&&e.preventDefault(),Ae(tt,_e.length)},className:`w-full overflow-hidden text-left px-3 min-h-(--row-height-menu) py-2 text-sm flex items-center gap-2 whitespace-nowrap text-ink hover:bg-row-hover ${_e.length?`border-t ${k}`:""} ${me===_e.length?"bg-gray-100":""}`,children:/* @__PURE__ */A("span",{className:"min-w-0 flex-1 truncate",children:K(tt.value)})},`${be}-typed`)]})]}),document.body)]});var rt}export{Y as SearchableSelect,E as fitChoice};
@@ -1,7 +0,0 @@
1
- import{isFocusableEntry as e,menuStatusIds as t,renderMenuEntries as r}from"./chunk-VQBKRBBR.js";import{useTabLayer as n,focusableIn as o}from"./chunk-DWGYC7OD.js";import{PopupMenu as i,PopupMenuDivider as a}from"./chunk-THAPVKEJ.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as s}from"./chunk-62LW225J.js";import{placeMenu as d,popupBounds as c,followAnchor as u}from"./chunk-VY3UA6AR.js";import{useBrowserLayoutEffect as p}from"./chunk-ZDXRSY2Y.js";import{registerModalEscapeInterceptor as f}from"./chunk-TWVUQUUD.js";import{useState as m,useRef as h,useId as g,useCallback as v,useEffect as b}from"react";import{jsxs as y,jsx as x}from"react/jsx-runtime";var k="inline-flex items-center justify-center rounded-(--radius-control) text-gray-600 transition-colors not-disabled:not-aria-disabled:hover:bg-gray-100 not-disabled:not-aria-disabled:hover:text-ink-strongest rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)] disabled:cursor-not-allowed disabled:opacity-60",w=/(^|[\s:])!?z-/,D={paddingLeft:"var(--menu-padding-x, 1rem)",paddingRight:"var(--menu-padding-x, 1rem)",paddingTop:"0.25rem",paddingBottom:"0.25rem"};function A({trigger:A,items:j,align:E="end",side:K="bottom","aria-label":W,className:$="",triggerClassName:C,menuClassName:S="",minWidth:L=180,linkAs:H,disabled:N,id:B,"aria-describedby":R,"aria-disabled":T=!1,onOpenChange:U,footer:I,footerLabel:Y}){const[V,q]=m(!1),[M,P]=m(-1),z=h(null),G=h(null),J=h(null),O=h(null),Q=h(null),X=null!=I&&!1!==I,Z=h({text:"",at:0}),F=g(),_=g(),ee=B??_,te=h(U);te.current=U;const re=h(V);re.current=V;const ne=v(e=>{q(!1),re.current&&(re.current=!1,te.current?.(!1)),e&&G.current?.focus()},[]),oe=(t,r)=>{const n=j.length;for(let o=0;o<n;o+=1){const i=((t+r*o)%n+n)%n;if(e(j[i]))return i}return-1},ie=()=>J.current?.closest("[data-popup-menu-tree]")??null;b(()=>{if(!V)return;const e=e=>{const t=e.target;if(z.current?.contains(t)||ie()?.contains(t))return;const r=ie()?.getAttribute("data-popup-menu-tree"),n=t.closest?.("[data-popup-menu-tree]");r&&n?.getAttribute("data-popup-menu-tree")===r||ne(!1)};document.addEventListener("pointerdown",e,!0);const t=l(()=>ne(!1));return()=>{document.removeEventListener("pointerdown",e,!0),t()}},[V,ne]);const ae=v(()=>{const e=ie(),t=G.current;if(!e||!t)return;const r=e.style;r.left="0px",r.top="0px",r.maxWidth="none",r.maxHeight="none";const n={width:e.offsetWidth,height:e.offsetHeight},o=d({trigger:t.getBoundingClientRect(),menu:n,bounds:c(t),align:E,side:K});r.left=`${o.left}px`,r.top=`${o.top}px`,r.maxWidth=`${o.maxWidth}px`,r.maxHeight=`${o.maxHeight}px`,r.overflowY=n.height>o.maxHeight?"auto":"",e.dataset.side=o.side,e.dataset.align=E},[E,K]);p(()=>{V&&ae()}),b(()=>{if(V)return u(()=>G.current,ae)},[V,ae]),b(()=>{if(!V)return;const t=J.current,r=e(j[M])?t?.querySelector(`[data-dropdown-index="${M}"]`):null;(r??t)?.focus({preventScroll:!0})},[V,M]),b(()=>{if(V)return f(e=>"Escape"===e.key&&(ne(!0),!0),()=>O.current)},[V,ne]),n(O,V&&X);const le=h(null),se=t=>{const r=j.findIndex(t=>"radio"===t.type&&"colour"===t.mark&&t.checked&&e(t));return r>=0?r:"first"===t?oe(0,1):oe(j.length-1,-1)},de=e=>{P(se(e)),q(!0),re.current||(re.current=!0,le.current=e,U?.(!0))};p(()=>{const e=le.current;if(!V||!e)return;le.current=null;const t=se(e);t!==M&&P(t)});const ce=t(j,F),ue="function"==typeof I?I({close:()=>ne(!0)}):I,pe={...w.test(S)?{}:{zIndex:s.popup},minWidth:L};/* @__PURE__ */
2
- return y("div",{ref:z,className:`relative inline-flex ${$}`.trim(),children:[
3
- /* @__PURE__ */x("button",{ref:G,id:ee,type:"button","aria-haspopup":"menu","aria-expanded":V,"aria-controls":V?F:void 0,"aria-label":W,"aria-describedby":R,"aria-disabled":T||void 0,disabled:N,onClick:()=>{T||(V?ne(!1):de("first"))},onKeyDown:e=>{T||("ArrowDown"===e.key||"Enter"===e.key||" "===e.key?(e.preventDefault(),de("first")):"ArrowUp"===e.key&&(e.preventDefault(),de("last")))},className:C??`${k} ${W?"h-8 min-w-8 px-0":"h-8 min-w-8 gap-2 px-3"}`,children:A}),V&&
4
- /* @__PURE__ */x(i,{portal:!0,className:S,style:pe,children:/* @__PURE__ */y("div",{ref:O,children:[
5
- /* @__PURE__ */x("div",{ref:J,id:F,role:"menu","aria-orientation":"vertical","aria-label":W,"aria-labelledby":W?void 0:ee,"aria-describedby":ce,tabIndex:-1,onKeyDown:t=>{if(!t.target.closest?.("[data-popup-submenu-panel]")||"Tab"===t.key)if("ArrowDown"===t.key)t.preventDefault(),P(oe(M+1,1));else if("ArrowUp"===t.key)t.preventDefault(),P(oe(M-1,-1));else if("Home"===t.key)t.preventDefault(),P(oe(0,1));else if("End"===t.key)t.preventDefault(),P(oe(j.length-1,-1));else if("Tab"===t.key){t.preventDefault();const e=!t.shiftKey&&Q.current?o(Q.current)[0]:void 0;e?e.focus({preventScroll:!0}):ne(!0)}else if(" "===t.key){const e=t.target;e.matches?.("a[href]")&&(t.preventDefault(),e.click())}else 1!==t.key.length||t.ctrlKey||t.metaKey||t.altKey||(t=>{const r=Date.now(),n=t.key.toLowerCase(),o=r-Z.current.at<500?Z.current.text+n:n;Z.current={text:o,at:r};const i=[...o].every(e=>e===o[0]),a=i?o[0]:o,l=i?M+1:Math.max(M,0),s=J.current,d=j.length;for(let r=0;r<d;r+=1){const n=((l+r)%d+d)%d;if(e(j[n])&&(s?.querySelector(`[data-dropdown-index="${n}"]`)?.textContent?.trim().toLowerCase()??"").startsWith(a))return t.preventDefault(),void P(n)}})(t)},children:r(j,{menuId:F,choose:e=>{e.disabled||(ne(!0),e.onSelect())},toggle:e=>{e.disabled||e.onSelect()},followLink:()=>ne(!0),rowProps:(e,t)=>({"data-dropdown-index":e,tabIndex:e===M?0:-1,onMouseEnter:()=>{t.disabled||Q.current?.contains(document.activeElement)||P(e)}}),linkAs:H})}),X&&/* @__PURE__ */y("div",{ref:Q,role:"group","aria-label":Y,"data-dropdown-footer":"",onKeyDown:e=>{const t=Q.current;if("Tab"!==e.key||!t||!t.contains(e.target))return;const r=o(t),n=document.activeElement;if(e.shiftKey){if(r.length>0&&n!==r[0])return;e.preventDefault();const t=J.current?.querySelector(`[data-dropdown-index="${M}"]`);return void(t??J.current)?.focus({preventScroll:!0})}r.length>0&&n!==r[r.length-1]||(e.preventDefault(),ne(!0))},children:[
6
- /* @__PURE__ */x("div",{"aria-hidden":"true",children:/* @__PURE__ */x(a,{})}),
7
- /* @__PURE__ */x("div",{style:D,children:ue})]})]})})]})}export{A as DropdownMenu,k as TRIGGER_CLASS};
@@ -1,6 +0,0 @@
1
- import{onOverlayOpen as t}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as e}from"./chunk-62LW225J.js";import{followAnchor as r,popupBounds as o,VIEWPORT_MARGIN as n,showingBox as i,placeBeside as a,placeArrow as l}from"./chunk-VY3UA6AR.js";import{useBrowserLayoutEffect as c}from"./chunk-ZDXRSY2Y.js";import{registerModalEscapeInterceptor as s,escapeSurfaceAbove as d}from"./chunk-TWVUQUUD.js";import{solidSurfaceStyle as h}from"./chunk-5FYDNH4Y.js";import{createContext as u,useContext as p,useState as m,useRef as f,useId as x,useEffect as w,isValidElement as g,cloneElement as b}from"react";import{createPortal as v}from"react-dom";import{jsxs as y,jsx as k}from"react/jsx-runtime";var j=u(!1),W=()=>p(j),H={top:"bottom-full left-1/2 -translate-x-1/2 mb-3",bottom:"top-full left-1/2 -translate-x-1/2 mt-3",left:"right-full top-1/2 -translate-y-1/2 mr-3",right:"left-full top-1/2 -translate-y-1/2 ml-3"};function N({content:u,side:p="top",delay:W=200,children:N,className:T="relative inline-flex",describe:B=!0,open:M}){const[Y,D]=m(!1),R=(M??Y)&&!(null==u||!1===u||""===u),[U,z]=m(null),C=f(void 0),E=f(null),P=f(null),$=x(),A=f(!1),F=()=>{window.clearTimeout(C.current),A.current||E.current?.querySelector('[aria-haspopup][aria-expanded="true"]')||(C.current=window.setTimeout(()=>D(!0),W))},L=()=>{window.clearTimeout(C.current),D(!1)},S=t=>{t.currentTarget.contains(t.target)&&(A.current=!0,L())},V=()=>{A.current=!1,L()};w(()=>()=>window.clearTimeout(C.current),[]),c(()=>{if(!R)return void z(null);const t=()=>{const t=E.current,e=P.current;if(!t||!e)return;const r=o(t),c=Math.max(0,r.right-r.left-2*n),s=Math.max(0,r.bottom-r.top-2*n);e.style.maxWidth=`${c}px`,e.style.maxHeight=`${s}px`;const d=e.getBoundingClientRect();if(d.width<=0||d.height<=0)return;const h=t.getBoundingClientRect();if(!i(t))return void L();const u=a(h,d,p,r,12),m=l(h,u,d,16,6),f={anchor:{left:h.left,top:h.top,width:h.width,height:h.height},left:u.left-h.left,top:u.top-h.top,maxWidth:c,maxHeight:s,side:u.side,arrow:m&&{left:m.x-h.left,top:m.y-h.top}};z(t=>{return t&&(r=f,(e=t).anchor.left===r.anchor.left&&e.anchor.top===r.anchor.top&&e.anchor.width===r.anchor.width&&e.anchor.height===r.anchor.height&&e.left===r.left&&e.top===r.top&&e.maxWidth===r.maxWidth&&e.maxHeight===r.maxHeight&&e.side===r.side&&e.arrow?.left===r.arrow?.left&&e.arrow?.top===r.arrow?.top)?t:f;var e,r})};return t(),r(()=>E.current,t)},[R,p,u]),w(()=>{if(!R)return;const e=s(t=>"Escape"===t.key&&(L(),!d(E.current))),r=t(L);return()=>{e(),r()}},[R]);const q=R&&B?$:void 0,G=g(N)?b(N,{"aria-describedby":[N.props["aria-describedby"],q].filter(Boolean).join(" ")||void 0}):N,I=R?h():void 0;/* @__PURE__ */
2
- return y("span",{ref:E,className:T,"aria-describedby":g(N)?void 0:q,onMouseEnter:F,onMouseLeave:V,onFocus:t=>{if(!t.currentTarget.contains(t.target))return;let e=!0;try{e=t.target.matches(":focus-visible")}catch{}e&&F()},onBlur:V,onPointerDown:S,onClick:S,children:[
3
- /* @__PURE__ */k(j.Provider,{value:!0,children:G}),R&&v(
4
- /* @__PURE__ */y("span",{className:"pointer-events-none fixed left-0 top-0",style:{zIndex:e.hint,...U?.anchor},children:[
5
- /* @__PURE__ */k("span",{ref:P,id:$,role:"tooltip",className:`pointer-events-none absolute z-(--z-hint) box-border w-max overflow-hidden whitespace-normal break-words text-start rounded-md px-2 py-1 text-xs text-ink-strong ${U?"":H[p]}`,style:{...I,...U&&{left:U.left,top:U.top,maxWidth:U.maxWidth,maxHeight:U.maxHeight}},children:u}),(!U||U.arrow)&&
6
- /* @__PURE__ */k("span",{"aria-hidden":"true",className:"rosh-tooltip-arrow","data-side":U?.side??p,style:{background:I?.background,"--rosh-tooltip-edge":I?.border,...U?.arrow&&{left:U.arrow.left,top:U.arrow.top}}})]}),document.body)]})}export{N as Tooltip,W as useInsideTooltip};
@@ -1,8 +0,0 @@
1
- import{useOverlayTarget as e,usePopupAnchor as i,usePopupLevel as t,usePopupLevelBindings as r,windowScrimStyle as o,OverlayLayerProvider as n,scrimHasCorners as l,popupLayerStyle as d}from"./chunk-VY6OQRZA.js";import{CloseButton as s}from"./chunk-LG6NDTHZ.js";import{useDiscardGuard as a}from"./chunk-4BYJABCX.js";import{dialogA11y as m}from"./chunk-VWGWZY7A.js";import{useDismissPopupsOnOpen as c}from"./chunk-UVHXVSB2.js";import{useFocusTrap as p,useScrollLock as h}from"./chunk-DWGYC7OD.js";import{HEADING_TEXT as u,DESCRIPTION_TEXT as f,PANEL_SURFACE as b}from"./chunk-BWJZTHZ6.js";import{useHydrated as y}from"./chunk-WCCS4VFE.js";import{registerModalEscapeInterceptor as v}from"./chunk-TWVUQUUD.js";import{useRef as x,useId as w,useState as g,useEffect as k}from"react";import{createPortal as j}from"react-dom";import{jsxs as N,Fragment as C,jsx as W}from"react/jsx-runtime";var B={sm:"sm:w-[320px]",md:"sm:w-[448px]",lg:"sm:w-[640px]"},V={right:"inset-y-0 right-0",left:"inset-y-0 left-0",bottom:"inset-x-0 bottom-0"};function H(e,i){const t=window.innerHeight-(i.top+i.height);if("bottom"===e)return{left:i.left,width:i.width,bottom:t};const r={top:i.top,height:i.height};return"left"===e?{...r,left:i.left}:{...r,right:window.innerWidth-(i.left+i.width)}}function Z({open:Z,onClose:$,side:D="right",size:U="md",title:Y,description:A,footer:G,children:T,blocking:z=!1,dirty:E=!1,initialFocus:F,"aria-label":J,"aria-labelledby":O,"aria-describedby":Q,className:S=""}){const X=x(null),I=w(),L=w(),R=w(),q=e(y()),[K,M]=g(null),P=a({open:Z,dirty:E,onClose:$,title:Y,layer:K}),_=x(null),ee=i(Z&&null!==q,_),ie=t(Z&&null!==q,_),te=r(ie,K),re=o(ie),oe=null!==ie.host;if(c(Z),p(X,Z&&null!==q,F,te),h(Z),k(()=>{if(Z)return v(()=>!te.current?.(document.activeElement)&&(z||P(),!0),()=>X.current)},[Z,z,P,te]),!Z||!q)return null;const ne="bottom"===D,le={...ne?{maxHeight:"85vh"}:{},...ee?H(D,ee):{}};/* @__PURE__ */
2
- return N(C,{children:[/* @__PURE__ */W("span",{ref:_,hidden:!0,"data-popup-anchor":""}),j(
3
- /* @__PURE__ */W(n,{value:K,children:/* @__PURE__ */N("div",{ref:M,className:oe?"fixed inset-0 pointer-events-none":"fixed inset-0",style:d(ie),role:"presentation","data-overlay-layer":"",children:[
4
- /* @__PURE__ */W("div",{className:"fixed bg-black/30 backdrop-blur-sm "+(oe?"pointer-events-auto"+(l(ie)?" rounded-(--radius-window)":""):"inset-0"),style:re??void 0,hidden:oe&&!re,onClick:z?void 0:P,"aria-hidden":"true","data-popup-scrim":oe?"window":"system"}),
5
- /* @__PURE__ */N("div",{ref:X,...m({modal:!0,titleId:Y?R:void 0,labelledBy:O,label:J}),"aria-describedby":Q??(A?L:T?I:void 0),"data-drawer-side":D,"data-popup-panel":"",style:le,className:[`fixed flex flex-col ${b}`,oe?"pointer-events-auto":"",ne?"":`w-full max-w-full ${B[U]}`,ee?"":V[D],ne?"rounded-t-xl":"",S].filter(Boolean).join(" "),children:[Y?/* @__PURE__ */N("div",{className:"flex shrink-0 items-center justify-between gap-4 border-b border-gray-100 px-4 py-3",children:[
6
- /* @__PURE__ */N("div",{className:"min-w-0",children:[
7
- /* @__PURE__ */W("h2",{id:R,className:u,children:Y}),A&&/* @__PURE__ */W("p",{id:L,className:`mt-0.5 ${f}`,children:A})]}),!z&&/* @__PURE__ */W(s,{onClose:P})]}):!z&&/* @__PURE__ */W("div",{className:"absolute right-2 top-2 z-10",children:/* @__PURE__ */W(s,{onClose:P})}),
8
- /* @__PURE__ */N("div",{id:I,className:"min-h-0 flex-1 overflow-y-auto px-4 py-4",children:[A&&!Y&&/* @__PURE__ */W("p",{id:L,className:`mb-3 ${f} ${z?"":"pr-8"}`.trim(),children:A}),T]}),G&&/* @__PURE__ */W("div",{className:"flex shrink-0 justify-end gap-3 border-t border-gray-100 px-4 py-3",children:G})]})]})}),q)]})}export{Z as Drawer};
@@ -1,6 +0,0 @@
1
- import{TEXT_ALIGNS as e,textAlignWords as l,textAlignIcon as r}from"./chunk-72UHB4JU.js";import{IconButton_default as a}from"./chunk-NWS5G7FE.js";import{Icon as o}from"./chunk-ISVODSRP.js";import{Tooltip as n}from"./chunk-F2RAIGCG.js";import{useShellStrings as s}from"./chunk-NRHG4R2Q.js";import{jsx as i,jsxs as t,Fragment as d}from"react/jsx-runtime";var c=e=>e.preventDefault(),u=e=>null!=e&&!1!==e,h=["bold","italic","underline","strike","link","sup","sub","code"];function p(e,l,r){const a={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1,Home:"first",End:"last"}[e.key];if(void 0===a||0===l.length)return;const o=[...e.currentTarget.querySelectorAll('[role="radio"]')],n=o.findIndex(l=>l===e.target||l.contains(e.target));if(n<0)return;e.preventDefault();const s=o.length,i="first"===a?0:"last"===a?s-1:(n+a+s)%s;o[i].disabled||(r(l[i]),o[i].focus())}function b(e,l){const r=["bold","italic","underline","strike"].filter(l=>e.has(l)).length;return{color:r,link:r+(l?1:0)}}function m(e,l,r,a){const o=h.filter(l=>"link"!==l&&e.has(l)).length+(l?1:0);return r&&0!==o?a>0?"paragraph":"words":null}function w({offered:l,color:r,last:a,alignment:o,list:n,letterCase:s,clear:i}){let t=h.filter(e=>l.has(e)).length+(r?1:0)+(u(a)?1:0),d=(o?e.filter(e=>o.allow.includes(e)).length:0)+(n&&l.has("bullet")?1:0)+(n&&l.has("number")?1:0)+(l.has("quote")?1:0)+(s?3:0);const c=m(l,r,i,d);return"paragraph"===c&&(d+=1),"words"===c&&(t+=1),{words:t>0,paragraph:d>0,oneRow:t>0&&d>0&&t+1+d<=9,flow:t>0&&d>0&&t+1+d>9&&t<=7,cells:{words:t,paragraph:d}}}function g(e,l){/* @__PURE__ */
2
- return i(n,{content:e,children:l},l.key??void 0)}function f({offered:n,pressed:h,onMark:f,color:k,linkOpen:v=!1,last:N,alignment:C,list:D,letterCase:M,clear:x,disabled:y=!1,"aria-label":R,windows:S,className:j="",layout:A="grid"}){const I=s().textToolbar,q=w({offered:n,color:k,last:N,alignment:C,list:D,letterCase:M,clear:x});if(!q.words&&!q.paragraph)return null;const B=m(n,k,x,q.cells.paragraph),U=(e,l="")=>`rosh-tb-btn${e?" is-on":""}${l?` ${l}`:""}`,$=(e,l,r,o)=>n.has(e)?g(l,/* @__PURE__ */i(a,"link"===e?{pressed:v,className:U(v),"aria-label":l,"aria-haspopup":"dialog","aria-expanded":v,"aria-keyshortcuts":o,disabled:y,onMouseDown:c,onClick:()=>f(e),children:r}:{className:U(Boolean(h[e])),"aria-label":l,"aria-pressed":Boolean(h[e]),"aria-keyshortcuts":o,disabled:y,onMouseDown:c,onClick:()=>f(e),children:r},e)):null,G=l(I),L=e.map(e=>[e,G[e],r(e)]),H=C?e.filter(e=>C.allow.includes(e)):[],K=C&&H.includes(C.value)?C.value:H[0],T=[["none",I.caseNone,/* @__PURE__ */i(o,{name:"case-normal"})],["upper",I.caseUpper,/* @__PURE__ */i(o,{name:"case-upper"})],["lower",I.caseLower,/* @__PURE__ */i(o,{name:"case-lower"})]],E=x&&B?g(I.clear,/* @__PURE__ */i(a,{className:U(!1),"aria-label":I.clear,disabled:y,onMouseDown:c,onClick:x.onClear,children:/* @__PURE__ */i(o,{name:"revert"})},"clear")):null,F=/* @__PURE__ */t(d,{children:[$("bold",I.bold,/* @__PURE__ */i(o,{name:"bold"}),"Meta+B"),$("italic",I.italic,/* @__PURE__ */i(o,{name:"italic"}),"Meta+I"),$("underline",I.underline,/* @__PURE__ */i(o,{name:"underline"}),"Meta+U"),$("strike",I.strike,/* @__PURE__ */i(o,{name:"strike"})),k?g(I.color,/* @__PURE__ */i(a,{pressed:k.open,className:U(k.open,"rosh-tb-color"),"aria-label":I.color,"aria-haspopup":"dialog","aria-expanded":k.open,disabled:y,style:k.run?{"--rosh-tb-run":k.run}:void 0,onMouseDown:c,onClick:k.onToggle,children:/* @__PURE__ */i(o,{name:"text-color"})},"color")):null,$("link",I.link,/* @__PURE__ */i(o,{name:"link"}),"Meta+K"),$("sup",I.sup,/* @__PURE__ */i(o,{name:"superscript"})),$("sub",I.sub,/* @__PURE__ */i(o,{name:"subscript"})),$("code",I.code,/* @__PURE__ */i(o,{name:"code"})),u(N)?N:null,"words"===B?E:null]}),O=/* @__PURE__ */t(d,{children:[C&&H.length>0?/* @__PURE__ */i("div",{className:"rosh-tb-group",role:"radiogroup","aria-label":I.alignment,onKeyDown:e=>p(e,H,e=>C.onChange(e)),children:L.map(([e,l,r])=>C.allow.includes(e)?g(l,/* @__PURE__ */i(a,{role:"radio",pressed:C.value===e,className:U(C.value===e),"aria-checked":C.value===e,"aria-label":l,tabIndex:e===K?0:-1,disabled:y||C.disabled,onMouseDown:c,onClick:()=>C.onChange(e),children:r},e)):null)}):null,D&&n.has("bullet")?g(I.bullet,/* @__PURE__ */i(a,{className:U("bullet"===D.pressed),"aria-label":I.bullet,"aria-pressed":"bullet"===D.pressed,disabled:y,onMouseDown:c,onClick:()=>D.onList("bullet"),children:/* @__PURE__ */i(o,{name:"list"})},"bullet")):null,D&&n.has("number")?g(I.number,/* @__PURE__ */i(a,{className:U("number"===D.pressed),"aria-label":I.number,"aria-pressed":"number"===D.pressed,disabled:y,onMouseDown:c,onClick:()=>D.onList("number"),children:/* @__PURE__ */i(o,{name:"numbered-list"})},"number")):null,$("quote",I.quote,/* @__PURE__ */i(o,{name:"quote"})),M?/* @__PURE__ */i("div",{className:"rosh-tb-group",role:"radiogroup","aria-label":I.letterCase,onKeyDown:e=>p(e,T.map(([e])=>e),e=>M.onChange(e)),children:T.map(([e,l,r])=>g(l,/* @__PURE__ */i(a,{role:"radio",pressed:M.value===e,className:U(M.value===e),"aria-checked":M.value===e,"aria-label":l,tabIndex:e===(M.value||"none")?0:-1,disabled:y||M.disabled,onMouseDown:c,onClick:()=>M.onChange(M.value===e?"":e),children:r},e)))}):null,"paragraph"===B?E:null]}),J="row"===A,P=J?" is-row":q.flow?" is-flow":q.oneRow?" is-one-row":q.words&&void 0===N&&"words"!==B?" is-eight":"",Q=b(n,Boolean(k)),V={"--rosh-tb-color-col":String(Q.color),"--rosh-tb-link-col":String(Q.link),...J?{"--rosh-tb-cells":String(q.cells.words+q.cells.paragraph),"--rosh-tb-groupgap":q.words&&q.paragraph?"var(--space-8, 0.5rem)":"0px"}:{}};let W;return W=J?/* @__PURE__ */t("div",{className:"rosh-tb-row is-row",children:[q.words?/* @__PURE__ */i("div",{className:"rosh-tb-words",children:F}):null,q.paragraph?/* @__PURE__ */i("div",{className:"rosh-tb-para",children:O}):null]}):q.flow?/* @__PURE__ */t("div",{className:"rosh-tb-row is-flow",children:[F,
3
- /* @__PURE__ */i("span",{className:"rosh-tb-flowgap","aria-hidden":"true"}),O]}):q.oneRow?/* @__PURE__ */t("div",{className:"rosh-tb-row is-one-row",children:[
4
- /* @__PURE__ */i("div",{className:"rosh-tb-words",children:F}),
5
- /* @__PURE__ */i("div",{className:"rosh-tb-para",children:O})]}):/* @__PURE__ */t(d,{children:[q.words?/* @__PURE__ */i("div",{className:"rosh-tb-row"+(void 0===N&&"words"!==B?" is-eight":""),children:F}):null,q.paragraph?/* @__PURE__ */i("div",{className:"rosh-tb-row",children:O}):null]}),/* @__PURE__ */t("div",{className:`rosh-tb-wrap${P} ${j}`.trim(),style:V,children:[
6
- /* @__PURE__ */i("div",{className:"rosh-tb",role:"toolbar","aria-label":R??I.formatting,children:W}),S]})}export{f as TextToolbar,w as textToolbarRows,b as textToolbarWindowColumns};
@@ -1 +0,0 @@
1
- var r="13.25.0",a=r;export{a as APP_VERSION,r as VERSION};
@@ -1,15 +0,0 @@
1
- import{AccessibleTable as e}from"./chunk-ZDFMYAQB.js";import{polygonPoints as t}from"./chunk-VFC6QUEN.js";import{ChartDefs as r,maskId as l}from"./chunk-465RRWBY.js";import{useHighlight as a}from"./chunk-CNYAHYE6.js";import{angleScale as o}from"./chunk-2JWPNR2U.js";import{ChartTooltip as n}from"./chunk-WDQI3FV6.js";import{CHART_INK as i,resolveSeriesColorWithin as s}from"./chunk-TZFACUMR.js";import{useShellStrings as m,useShellLocale as c}from"./chunk-NRHG4R2Q.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useId as p,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var k=3,g=e=>`${e.map(([e,t],r)=>`${0===r?"M":"L"}${e.toFixed(2)},${t.toFixed(2)}`).join(" ")} Z`;function x({axes:k,series:x,size:y=300,mode:b="area",grid:v="polygon",rings:M=4,formatValue:N,animate:j=!0,className:$,emptyLabel:F}){const W=m().charts,C=c(),R=N??(e=>h(e,C)),w=F??W.nothingToCompare,A=p(),[Q,L]=u(null),{highlighted:Y}=a(),z=x;if(k.length<3||0===z.length)/* @__PURE__ */
2
- return d("p",{className:`text-sm text-gray-500 ${$??""}`,children:w});const B=y/2,E=y/2,H=y/2-46,T=o(k.length),U=k.map((e,t)=>null!=e.max&&Number.isFinite(e.max)&&e.max>0?e.max:Math.max(1,...z.map(e=>e.values[t]??0).filter(Number.isFinite))),V=(e,t)=>{const r=Math.max(0,Math.min(1,t/U[e])),l=T.center(e)-T.step/2;return[B+H*r*Math.cos(l),E+H*r*Math.sin(l)]},Z=(e,t)=>null!==Q?Q!==e:null!==Y&&Y!==t,D=null!==Q?z[Q]:void 0;/* @__PURE__ */
3
- return f("div",{className:`relative ${$??""}`,children:[
4
- /* @__PURE__ */f("svg",{width:"100%",height:y,viewBox:`0 0 ${y} ${y}`,role:"img","aria-labelledby":A,onMouseLeave:()=>L(null),children:[
5
- /* @__PURE__ */d("title",{id:A,children:W.acrossMeasures(z.map(e=>e.label),k.length)}),Array.from({length:M},(e,r)=>{const l=H*(r+1)/M;return"circle"===v?/* @__PURE__ */d("circle",{cx:B,cy:E,r:l,fill:"none",stroke:i.grid,strokeWidth:1},r):/* @__PURE__ */d("path",{d:g(t(B,E,l,k.length)),fill:"none",stroke:i.grid,strokeWidth:1},r)}),k.map((e,t)=>{const[r,l]=V(t,U[t]);/* @__PURE__ */
6
- return f("g",{children:[
7
- /* @__PURE__ */d("line",{x1:B,y1:E,x2:r,y2:l,stroke:i.grid,strokeWidth:1}),
8
- /* @__PURE__ */d("text",{x:B+(H+18)*Math.cos(T.center(t)-T.step/2),y:E+(H+18)*Math.sin(T.center(t)-T.step/2)+4,textAnchor:"middle",fontSize:11,fill:i.label,children:e.label})]},e.key)}),
9
- /* @__PURE__ */d(r,{id:A,reveal:!!j&&"center-out"}),z.map((e,t)=>{const r=s(t,3,e.color,e.tone),a=k.map((t,r)=>V(r,e.values[r]??0));/* @__PURE__ */
10
- return f("g",{opacity:Z(t,e.key)?.3:1,onMouseEnter:()=>L(t),mask:j?`url(#${l(A)})`:void 0,children:["area"===b&&/* @__PURE__ */d("path",{d:g(a),fill:r,fillOpacity:.18,stroke:"none"}),
11
- /* @__PURE__ */d("path",{d:g(a),fill:"none",stroke:r,strokeWidth:2,strokeLinejoin:"round"}),a.map(([e,t],l)=>/* @__PURE__ */d("circle",{cx:e,cy:t,r:3.5,fill:r,stroke:i.surface,strokeWidth:1.5},l))]},e.key)})]}),D&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(n,{title:D.label,rows:k.map((e,t)=>({key:e.key,label:e.label,color:s(Q,3,D.color,D.tone),value:R(D.values[t]??0)}))})}),
12
- /* @__PURE__ */d("ul",{className:"m-0 mt-3 grid gap-1 p-0",style:{gridTemplateColumns:"repeat(auto-fit,minmax(140px,1fr))"},children:z.map((e,t)=>/* @__PURE__ */f("li",{className:"flex list-none items-center gap-2 text-xs text-gray-600",children:[
13
- /* @__PURE__ */d("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{backgroundColor:s(t,3,e.color,e.tone)}}),
14
- /* @__PURE__ */d("span",{className:"flex-1 truncate",children:e.label})]},e.key))}),
15
- /* @__PURE__ */d(e,{caption:W.acrossMeasures(z.map(e=>e.label),k.length),head:[W.tableSeries,...k.map(e=>e.label)],rows:z.map(e=>[e.label,...k.map((t,r)=>R(e.values[r]??0))])})]})}export{k as RADAR_SERIES_CAP,x as RadarChart};