efficient-shell 11.10.0 → 11.11.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 (373) hide show
  1. package/README.md +3 -1
  2. package/dist/{Browser-FIRNNCSC.js → Browser-NRGJ53ST.js} +17 -17
  3. package/dist/Calculator-YZEGVEQ7.js +29 -0
  4. package/dist/{CurrencyConverter-LU7QXMOI.js → CurrencyConverter-CJQMDBQW.js} +9 -9
  5. package/dist/Documents-FIGKS36O.js +84 -0
  6. package/dist/Files-FPNJ46XY.js +88 -0
  7. package/dist/{Notepad-HNED2SWM.js → Notepad-2XW63REV.js} +10 -10
  8. package/dist/PdfViewer-M4RTCNNE.js +1 -0
  9. package/dist/PomodoroTimer-Y5GQX37J.js +91 -0
  10. package/dist/{Preview-OGSYTTKC.js → Preview-K7KDM4XK.js} +28 -28
  11. package/dist/Sidebar-QP5Y7RBV.js +44 -0
  12. package/dist/{Spreadsheet-4HZR2TUV.js → Spreadsheet-RQE4OCEK.js} +67 -67
  13. package/dist/{Stock-4BOTUHWE.js → Stock-IHAG62QV.js} +3 -3
  14. package/dist/{Weather-NDUOK3P3.js → Weather-EQDFEBIH.js} +22 -22
  15. package/dist/{WorldClock-FH6NFTOM.js → WorldClock-VQG7G2Z2.js} +6 -6
  16. package/dist/ai/index.js +78 -78
  17. package/dist/apps/index.js +1 -1
  18. package/dist/bin/media-host-check.js +1 -1
  19. package/dist/bin/ui-check.js +1 -1
  20. package/dist/brand.css +1 -1
  21. package/dist/charts/BoxPlotChart.js +1 -1
  22. package/dist/charts/CandlestickChart.js +1 -1
  23. package/dist/charts/CartesianPlot.js +1 -1
  24. package/dist/charts/ChartBrush.js +1 -1
  25. package/dist/charts/ChartFrame.js +1 -1
  26. package/dist/charts/ChartSkeleton.js +1 -1
  27. package/dist/charts/ChartTooltip.js +1 -1
  28. package/dist/charts/ChordChart.js +1 -1
  29. package/dist/charts/ColumnChart.js +1 -1
  30. package/dist/charts/FunnelChart.js +1 -1
  31. package/dist/charts/HeatmapChart.js +1 -1
  32. package/dist/charts/HistogramChart.js +1 -1
  33. package/dist/charts/Meter.js +1 -1
  34. package/dist/charts/PieChart.js +1 -1
  35. package/dist/charts/RadarChart.js +1 -1
  36. package/dist/charts/RadialBarChart.js +1 -1
  37. package/dist/charts/RangeChart.js +1 -1
  38. package/dist/charts/RankedBars.js +1 -1
  39. package/dist/charts/SankeyChart.js +1 -1
  40. package/dist/charts/ScatterChart.js +1 -1
  41. package/dist/charts/SpecChart.js +1 -1
  42. package/dist/charts/StatTile.js +1 -1
  43. package/dist/charts/SunburstChart.js +1 -1
  44. package/dist/charts/TimeSeriesChart.js +1 -1
  45. package/dist/charts/TreemapChart.js +1 -1
  46. package/dist/charts/WaterfallChart.js +1 -1
  47. package/dist/{chunk-Z32K3LIJ.js → chunk-225LCPO7.js} +1 -1
  48. package/dist/{chunk-FNMF42DQ.js → chunk-2E3K4FSQ.js} +2 -2
  49. package/dist/chunk-2EPAXWZZ.js +14 -0
  50. package/dist/{chunk-YY5TUQS4.js → chunk-2HAJ33HM.js} +3 -3
  51. package/dist/chunk-2NRNKF46.js +9 -0
  52. package/dist/{chunk-HTTICQBP.js → chunk-2XOH3NJZ.js} +18 -18
  53. package/dist/{chunk-4UKPDURO.js → chunk-2XORVHF2.js} +1 -1
  54. package/dist/{chunk-IDRAW6MT.js → chunk-2ZAFRGRF.js} +2 -2
  55. package/dist/{chunk-IKKQ4P4R.js → chunk-32EKHIAZ.js} +11 -11
  56. package/dist/{chunk-DGA4SO27.js → chunk-3JCOD5L2.js} +2 -2
  57. package/dist/{chunk-AFROFSDW.js → chunk-3OHADZYV.js} +1 -1
  58. package/dist/{chunk-PC44XTGN.js → chunk-3PZI2C4R.js} +1 -1
  59. package/dist/chunk-3VR5BOD4.js +8 -0
  60. package/dist/{chunk-YIFRSPUM.js → chunk-3X2W7R5B.js} +10 -10
  61. package/dist/{chunk-QVAOSKFO.js → chunk-3ZRYKZGI.js} +9 -9
  62. package/dist/{chunk-OZEPYQ7E.js → chunk-42TLGG33.js} +1 -1
  63. package/dist/{chunk-5MGNT7XM.js → chunk-57WQVUBX.js} +2 -2
  64. package/dist/{chunk-RPTOAKLB.js → chunk-5B4GRLAA.js} +1 -1
  65. package/dist/{chunk-SZTIP6T7.js → chunk-5KKJAYKT.js} +1 -1
  66. package/dist/{chunk-PBMAMVSE.js → chunk-5UCRYSQJ.js} +5 -5
  67. package/dist/{chunk-VNTJ7QO5.js → chunk-5YP7MFPK.js} +1 -1
  68. package/dist/{chunk-SIA3W7VE.js → chunk-62BDGAML.js} +6 -6
  69. package/dist/{chunk-276JUQXK.js → chunk-63545Z3N.js} +1 -1
  70. package/dist/{chunk-ZWLOVJWN.js → chunk-6C6M3QXL.js} +1 -1
  71. package/dist/{chunk-LLNWE7DR.js → chunk-6CK44QWU.js} +30 -30
  72. package/dist/{chunk-IAUEISDQ.js → chunk-6DQANKTL.js} +9 -9
  73. package/dist/chunk-6FIYG7IH.js +28 -0
  74. package/dist/{chunk-BXTSBORU.js → chunk-6LITLCVV.js} +3 -3
  75. package/dist/{chunk-RKL47W7I.js → chunk-6LK2BBCC.js} +6 -6
  76. package/dist/chunk-6R32KKIS.js +22 -0
  77. package/dist/chunk-7DI3VQCF.js +2 -0
  78. package/dist/{chunk-GNWK77U7.js → chunk-7HLBVMMQ.js} +1 -1
  79. package/dist/{chunk-TKE3EF2U.js → chunk-7IVTGOGM.js} +1 -1
  80. package/dist/{chunk-CFFT5OCV.js → chunk-7R23EKON.js} +1 -1
  81. package/dist/{chunk-R64OZ6TC.js → chunk-7V32O5NF.js} +6 -4
  82. package/dist/{chunk-5DZN6ZDE.js → chunk-A4YTWDKD.js} +9 -9
  83. package/dist/{chunk-OS2KE6QG.js → chunk-AHITTM6W.js} +4 -4
  84. package/dist/{chunk-WYSNMIZN.js → chunk-ALJS3SYS.js} +1 -1
  85. package/dist/{chunk-KZ6JVHFI.js → chunk-AQGIK2CV.js} +1 -1
  86. package/dist/{chunk-PTWKG635.js → chunk-ATKFIHDP.js} +4 -4
  87. package/dist/{chunk-U6IJL4Q5.js → chunk-AWQ5SOC5.js} +1 -1
  88. package/dist/{chunk-LVHQJ5TW.js → chunk-B2AYI45X.js} +7 -7
  89. package/dist/chunk-B2MD232O.js +6 -0
  90. package/dist/{chunk-2CPYXRR2.js → chunk-B2SLXCMY.js} +6 -6
  91. package/dist/chunk-BDUXF7BT.js +4 -0
  92. package/dist/{chunk-NFNDXE5O.js → chunk-C3UY34DC.js} +4 -4
  93. package/dist/{chunk-IW2QNPDG.js → chunk-CAIKDX2M.js} +2 -2
  94. package/dist/{chunk-EP5BHBZQ.js → chunk-CDQUOCXO.js} +1 -1
  95. package/dist/{chunk-ONIL7WXO.js → chunk-CG5X5ZLV.js} +1 -1
  96. package/dist/{chunk-WGLHB6WE.js → chunk-CJH2BGXY.js} +1 -1
  97. package/dist/{chunk-NGUXPP5Q.js → chunk-CLAKVFOB.js} +43 -43
  98. package/dist/{chunk-OUXSI6X4.js → chunk-CSLMWGFS.js} +1 -1
  99. package/dist/{chunk-YGCVMPIU.js → chunk-CT7AU2TA.js} +1 -1
  100. package/dist/{chunk-L3RLB37Y.js → chunk-D4RVWSUT.js} +1 -1
  101. package/dist/{chunk-ZRLWE3JM.js → chunk-DANLBFBD.js} +1 -1
  102. package/dist/{chunk-7N4P6LGD.js → chunk-DHMOJX2Z.js} +1 -1
  103. package/dist/chunk-E3EHHR73.js +13 -0
  104. package/dist/chunk-EC22ACQZ.js +11 -0
  105. package/dist/chunk-ESWR7YNY.js +19 -0
  106. package/dist/{chunk-WMS2DCRV.js → chunk-EV7VAXMO.js} +10 -10
  107. package/dist/{chunk-5PP435FL.js → chunk-EYPKBJYG.js} +1 -1
  108. package/dist/chunk-F636NDAU.js +12 -0
  109. package/dist/{chunk-E2LRAOCL.js → chunk-FFNPAJLS.js} +10 -10
  110. package/dist/chunk-FJBJUFD7.js +4 -0
  111. package/dist/{chunk-H5YD72OP.js → chunk-FRH2AHPI.js} +1 -1
  112. package/dist/{chunk-OE77XFOV.js → chunk-FUHURDBL.js} +1 -1
  113. package/dist/chunk-GO6HU2O3.js +7 -0
  114. package/dist/{chunk-QIVIQUKB.js → chunk-GRC46C4V.js} +7 -7
  115. package/dist/chunk-H56TNUV4.js +1 -0
  116. package/dist/{chunk-4VF66WBB.js → chunk-HDABS36W.js} +16 -16
  117. package/dist/{chunk-HWFBNYNI.js → chunk-HJBR73GS.js} +1 -1
  118. package/dist/{chunk-4L4GQW7P.js → chunk-HRG4FYVU.js} +1 -1
  119. package/dist/{chunk-KPFYXVCO.js → chunk-I5XNADZ3.js} +8 -8
  120. package/dist/chunk-IEOCUEJK.js +14 -0
  121. package/dist/chunk-IGQZANYE.js +15 -0
  122. package/dist/{chunk-JGVKGEIV.js → chunk-IIKPM3F4.js} +1 -1
  123. package/dist/{chunk-JJHPPTM6.js → chunk-IUG4Z2ND.js} +1 -1
  124. package/dist/{chunk-37JAU3U7.js → chunk-IUMFOSFJ.js} +3 -3
  125. package/dist/{chunk-WZMZ3N5B.js → chunk-JG26ICX6.js} +2 -2
  126. package/dist/{chunk-KMSK6QQB.js → chunk-JJZAYAVL.js} +1 -1
  127. package/dist/{chunk-FZM3ZPW3.js → chunk-JPNAEN53.js} +1 -1
  128. package/dist/{chunk-S4FPYCUU.js → chunk-JQBVSPF5.js} +3 -3
  129. package/dist/{chunk-MFDOGLFO.js → chunk-JRCFOZEU.js} +3 -3
  130. package/dist/{chunk-AJ6HMM4P.js → chunk-K6D7OSKZ.js} +14 -14
  131. package/dist/{chunk-DXFG4H4V.js → chunk-K6LW2QLI.js} +1 -1
  132. package/dist/{chunk-EOYGTVNS.js → chunk-KKJ55GUZ.js} +5 -5
  133. package/dist/chunk-KU4IWX6F.js +2 -0
  134. package/dist/{chunk-MWKLLAJT.js → chunk-KVVZLEUG.js} +1 -1
  135. package/dist/{chunk-JADBOQ7S.js → chunk-KYHDDVTR.js} +5 -5
  136. package/dist/{chunk-SJQKEIS7.js → chunk-KZEIQO3V.js} +3 -3
  137. package/dist/chunk-LGTYPLJM.js +5 -0
  138. package/dist/{chunk-U7T2ONAY.js → chunk-LXOX5FGH.js} +2 -2
  139. package/dist/{chunk-SXBOODCJ.js → chunk-LXQHTY3A.js} +5 -5
  140. package/dist/{chunk-RSJLN3EG.js → chunk-M57KX3OM.js} +1 -1
  141. package/dist/chunk-MQ445O4X.js +6 -0
  142. package/dist/{chunk-YM4XIO4K.js → chunk-MQE2FBJU.js} +5 -5
  143. package/dist/{chunk-SDAX6BXF.js → chunk-NMQGAP3H.js} +1 -1
  144. package/dist/chunk-NMTS2L2B.js +8 -0
  145. package/dist/{chunk-DWR6RVX5.js → chunk-NTUZT37J.js} +4 -4
  146. package/dist/{chunk-FOHOSUK3.js → chunk-O6VIHWYU.js} +1 -1
  147. package/dist/chunk-ODQYWMDF.js +3 -0
  148. package/dist/{chunk-OQG3XO4Y.js → chunk-OLJUPBY4.js} +1 -1
  149. package/dist/chunk-OPZXVXX5.js +7 -0
  150. package/dist/{chunk-RQ6TC6RM.js → chunk-OXCFRH33.js} +1 -1
  151. package/dist/chunk-OZM6DE7A.js +8 -0
  152. package/dist/{chunk-VTXCCFJ4.js → chunk-PDFV3YQB.js} +3 -3
  153. package/dist/{chunk-UZ7TKJRO.js → chunk-PDXOGPWH.js} +1 -1
  154. package/dist/{chunk-FTGA5IPI.js → chunk-PETBAYS5.js} +14 -14
  155. package/dist/{chunk-O4OFURPC.js → chunk-PL4HKGYP.js} +1 -1
  156. package/dist/chunk-PMA6DZ4Q.js +6 -0
  157. package/dist/{chunk-NSYCJTHE.js → chunk-PMKBWDXO.js} +1 -1
  158. package/dist/{chunk-LNGLJA6K.js → chunk-PVOTOUJG.js} +1 -1
  159. package/dist/{chunk-2JTG3U5L.js → chunk-PVVHWLNX.js} +1 -1
  160. package/dist/{chunk-BAT5B2LE.js → chunk-PZHO4FEN.js} +1 -1
  161. package/dist/{chunk-QIEAZN6Z.js → chunk-Q7DVGUML.js} +1 -1
  162. package/dist/{chunk-UIN2LUCZ.js → chunk-QAIMZN7M.js} +13 -13
  163. package/dist/{chunk-D2BXHFYK.js → chunk-QEDVXD3L.js} +1 -1
  164. package/dist/{chunk-DH2DKQKS.js → chunk-QOJ2UNS5.js} +1 -1
  165. package/dist/{chunk-NJN5IKWO.js → chunk-QQ2LDC6C.js} +1 -1
  166. package/dist/{chunk-ED6HJBCO.js → chunk-R6TDZ7T5.js} +1 -1
  167. package/dist/{chunk-GV5VNWPG.js → chunk-R72ZKZDP.js} +2 -2
  168. package/dist/chunk-R7KRBKFH.js +5 -0
  169. package/dist/{chunk-A65PRSKV.js → chunk-RMSF4UCJ.js} +4 -4
  170. package/dist/{chunk-P7NO3NGC.js → chunk-RNBC6V2D.js} +8 -8
  171. package/dist/chunk-RQBQETXQ.js +11 -0
  172. package/dist/{chunk-N5KO2IHG.js → chunk-RQDVAUXD.js} +4 -4
  173. package/dist/chunk-S43DAIIB.js +9 -0
  174. package/dist/{chunk-HBS4HYQM.js → chunk-SAASFWKB.js} +1 -1
  175. package/dist/chunk-SCZUDGRZ.js +2 -0
  176. package/dist/{chunk-LZJCULO7.js → chunk-SEP35R2E.js} +1 -1
  177. package/dist/{chunk-MOL2ND6G.js → chunk-SGBR443F.js} +6 -6
  178. package/dist/{chunk-PR42NIDL.js → chunk-SKRFI6WB.js} +12 -12
  179. package/dist/chunk-SUYQ7QYB.js +13 -0
  180. package/dist/{chunk-V6LPIDZ6.js → chunk-SWJXWDKX.js} +1 -1
  181. package/dist/{chunk-RDKIYORS.js → chunk-SYZLS2JA.js} +1 -1
  182. package/dist/{chunk-WTTXLWMK.js → chunk-T74FGTLW.js} +8 -8
  183. package/dist/{chunk-QL5E3MU3.js → chunk-TA4JGC5C.js} +1 -1
  184. package/dist/chunk-TXKTITMF.js +8 -0
  185. package/dist/{chunk-WDZUPDNC.js → chunk-TZXAW32T.js} +1 -1
  186. package/dist/{chunk-PAC4LK2N.js → chunk-UG42KUCT.js} +5 -5
  187. package/dist/{chunk-GPCTDEXQ.js → chunk-UTITWGVW.js} +1 -1
  188. package/dist/{chunk-A2SP4IZV.js → chunk-UVMM7AYO.js} +1 -1
  189. package/dist/{chunk-MQHUVZWM.js → chunk-UWJNQH2X.js} +1 -1
  190. package/dist/{chunk-PMKR2BF2.js → chunk-V64CJHMY.js} +19 -19
  191. package/dist/{chunk-LE5LWALR.js → chunk-VCMHBUKI.js} +1 -1
  192. package/dist/{chunk-L433UT5E.js → chunk-VEGZVUHE.js} +1 -1
  193. package/dist/chunk-VEZHFONL.js +9 -0
  194. package/dist/{chunk-HRXQCHKI.js → chunk-VPEH3THH.js} +3 -3
  195. package/dist/{chunk-ZM2NOLT6.js → chunk-VU5P4ZM5.js} +12 -12
  196. package/dist/{chunk-OYTRB237.js → chunk-VVDK7XPH.js} +1 -1
  197. package/dist/{chunk-TURECNEK.js → chunk-VZ52KKNA.js} +6 -6
  198. package/dist/{chunk-36VIGB6J.js → chunk-WDQI3FV6.js} +6 -6
  199. package/dist/{chunk-ZDDYTXPK.js → chunk-WEEQDPU3.js} +6 -6
  200. package/dist/{chunk-YKEB576T.js → chunk-WOOKUEED.js} +1 -1
  201. package/dist/{chunk-B4D23ZLJ.js → chunk-X2DUOIJP.js} +1 -1
  202. package/dist/{chunk-TE6R53YD.js → chunk-XWFLIGDQ.js} +1 -1
  203. package/dist/{chunk-EMUZJMR3.js → chunk-Y4RHGLXB.js} +1 -1
  204. package/dist/{chunk-FRNSCVPN.js → chunk-YOXR3VKO.js} +1 -1
  205. package/dist/{chunk-LPTN55KO.js → chunk-YQLKZ5UQ.js} +1 -1
  206. package/dist/{chunk-ZGQ6H2PU.js → chunk-YUAF3FDE.js} +4 -4
  207. package/dist/{chunk-RDTKMSEK.js → chunk-ZKBGUDNB.js} +1 -1
  208. package/dist/{chunk-T2ZFXPQV.js → chunk-ZOQVYSTB.js} +20 -20
  209. package/dist/{chunk-HYXDKY2L.js → chunk-ZOQXFS3R.js} +1 -1
  210. package/dist/data/DataTable.js +1 -1
  211. package/dist/data/EntityList.js +1 -1
  212. package/dist/data/Kanban.js +1 -1
  213. package/dist/data/ListFooter.js +1 -1
  214. package/dist/data/ListLoadError.js +1 -1
  215. package/dist/data/Pagination.js +1 -1
  216. package/dist/data/ResizableTable.js +1 -1
  217. package/dist/file-intake/index.js +1 -1
  218. package/dist/format/index.js +1 -1
  219. package/dist/forms/AlignmentGrid.js +1 -1
  220. package/dist/forms/BorderInput.js +1 -1
  221. package/dist/forms/BrandAssetEditor.js +1 -1
  222. package/dist/forms/Button.js +1 -1
  223. package/dist/forms/Calendar.js +1 -1
  224. package/dist/forms/ColorPicker.js +1 -1
  225. package/dist/forms/ComposerAttachments.js +1 -1
  226. package/dist/forms/CornersInput.js +1 -1
  227. package/dist/forms/DatePicker.js +1 -1
  228. package/dist/forms/DateRangePicker.js +1 -1
  229. package/dist/forms/DateTimePicker.js +1 -1
  230. package/dist/forms/DisplayChips.js +1 -1
  231. package/dist/forms/FilePicker.js +1 -1
  232. package/dist/forms/FormErrorSummary.js +1 -1
  233. package/dist/forms/IconButton.js +1 -1
  234. package/dist/forms/IconPicker.js +1 -1
  235. package/dist/forms/ImageFocusPoint.js +1 -1
  236. package/dist/forms/Input.js +1 -1
  237. package/dist/forms/InputNumber.js +1 -1
  238. package/dist/forms/LinkPicker.js +1 -1
  239. package/dist/forms/MediaLibrary.js +1 -1
  240. package/dist/forms/MediaUploadField.js +1 -1
  241. package/dist/forms/MediaUploadGrid.js +1 -1
  242. package/dist/forms/MediaUsedInList.js +1 -1
  243. package/dist/forms/NumericKeypad.js +1 -1
  244. package/dist/forms/PictureTiles.js +1 -1
  245. package/dist/forms/PositionInput.js +1 -1
  246. package/dist/forms/RenameField.js +1 -1
  247. package/dist/forms/Segmented.js +1 -1
  248. package/dist/forms/Select.js +1 -1
  249. package/dist/forms/SidesInput.js +1 -1
  250. package/dist/forms/Slider.js +1 -1
  251. package/dist/forms/Snippet.js +1 -1
  252. package/dist/forms/SplitButton.js +1 -1
  253. package/dist/forms/TagInput.js +1 -1
  254. package/dist/forms/TextToolbar.js +1 -1
  255. package/dist/forms/TimePicker.js +1 -1
  256. package/dist/forms/WidthsBar.js +1 -1
  257. package/dist/forms/mediaLibraryMenu.js +1 -1
  258. package/dist/forms/mediaMoveItems.js +1 -1
  259. package/dist/forms/textAlign.js +1 -1
  260. package/dist/forms/useFileIntake.js +1 -1
  261. package/dist/icons/index.js +1 -1
  262. package/dist/index.js +666 -666
  263. package/dist/locales/zh-Hans.js +1 -1
  264. package/dist/map/index.js +3 -3
  265. package/dist/markdown/index.js +1 -1
  266. package/dist/page-tabs/index.js +5 -5
  267. package/dist/pdf/index.js +1 -1
  268. package/dist/shell/Accordion.js +1 -1
  269. package/dist/shell/AppUpdateBanner.js +1 -1
  270. package/dist/shell/Avatar.js +1 -1
  271. package/dist/shell/Banner.js +1 -1
  272. package/dist/shell/Breadcrumbs.js +1 -1
  273. package/dist/shell/BudgetBar.js +1 -1
  274. package/dist/shell/Card.js +1 -1
  275. package/dist/shell/ColoredBadge.js +1 -1
  276. package/dist/shell/ConfirmDialog.js +1 -1
  277. package/dist/shell/ContainerFillChart.js +1 -1
  278. package/dist/shell/ContextMenu.js +1 -1
  279. package/dist/shell/CountBadge.js +1 -1
  280. package/dist/shell/Dialog.js +1 -1
  281. package/dist/shell/Drawer.js +1 -1
  282. package/dist/shell/DropdownMenu.js +1 -1
  283. package/dist/shell/EditableGrid.js +1 -1
  284. package/dist/shell/EmptyState.js +1 -1
  285. package/dist/shell/GlobalSearch.js +1 -1
  286. package/dist/shell/HelpCenter.js +1 -1
  287. package/dist/shell/IconRail.js +1 -1
  288. package/dist/shell/ImageLightbox.js +1 -1
  289. package/dist/shell/ItemCount.js +1 -1
  290. package/dist/shell/LanguageSelect.js +1 -1
  291. package/dist/shell/Markdown.js +1 -1
  292. package/dist/shell/MetricBar.js +1 -1
  293. package/dist/shell/MetricBarLegend.js +1 -1
  294. package/dist/shell/MilestoneTimeline.js +1 -1
  295. package/dist/shell/PageHeader.js +1 -1
  296. package/dist/shell/PopupMenu.js +1 -1
  297. package/dist/shell/ProductionTimeline.js +1 -1
  298. package/dist/shell/ResizeHandle.js +1 -1
  299. package/dist/shell/Result.js +1 -1
  300. package/dist/shell/SearchableSelect.js +1 -1
  301. package/dist/shell/SettingReset.js +1 -1
  302. package/dist/shell/SettingRow.js +1 -1
  303. package/dist/shell/SidebarLayout.js +1 -1
  304. package/dist/shell/SidebarNav.js +1 -1
  305. package/dist/shell/SortableList.js +1 -1
  306. package/dist/shell/Statistic.js +1 -1
  307. package/dist/shell/StatusBadge.js +1 -1
  308. package/dist/shell/StepChain.js +1 -1
  309. package/dist/shell/Stepper.js +1 -1
  310. package/dist/shell/Tabs.js +1 -1
  311. package/dist/shell/TimeAgo.js +1 -1
  312. package/dist/shell/TimelineTrack.js +1 -1
  313. package/dist/shell/Tooltip.js +1 -1
  314. package/dist/shell/TopNav.js +1 -1
  315. package/dist/shell/TransferProgress.js +1 -1
  316. package/dist/shell/Tree.js +1 -1
  317. package/dist/shell/discardGuard.js +1 -1
  318. package/dist/shell/language.js +1 -1
  319. package/dist/shell/strings.d.ts +134 -0
  320. package/dist/shell/strings.js +1 -1
  321. package/dist/shell/toast.js +1 -1
  322. package/dist/telemetry/index.js +1 -1
  323. package/dist/templates/AuthScreen.js +1 -1
  324. package/dist/templates/ChatTemplate.js +1 -1
  325. package/dist/templates/CheckoutTemplate.js +1 -1
  326. package/dist/templates/DashboardTemplate.js +1 -1
  327. package/dist/templates/DataTablePage.js +1 -1
  328. package/dist/templates/EmailTemplate.js +1 -1
  329. package/dist/templates/ErrorBoundary.js +1 -1
  330. package/dist/templates/ErrorPage.js +1 -1
  331. package/dist/templates/FormLayoutPage.js +1 -1
  332. package/dist/templates/GalleryTemplate.js +1 -1
  333. package/dist/ui/index.js +1 -1
  334. package/dist/version.js +1 -1
  335. package/package.json +1 -6
  336. package/dist/Calculator-ELI5Z3XW.js +0 -29
  337. package/dist/Documents-CE7YKNJM.js +0 -52
  338. package/dist/Files-ARRIIZZ6.js +0 -88
  339. package/dist/PdfViewer-ZRDIG2L2.js +0 -1
  340. package/dist/PomodoroTimer-ZJ432VPC.js +0 -91
  341. package/dist/Sidebar-ETWHTFNP.js +0 -44
  342. package/dist/chunk-2UTCGWMZ.js +0 -5
  343. package/dist/chunk-2V3LKX7G.js +0 -6
  344. package/dist/chunk-4LQRLYB4.js +0 -22
  345. package/dist/chunk-5CPRZ27M.js +0 -28
  346. package/dist/chunk-5XVXYBIQ.js +0 -8
  347. package/dist/chunk-7QRKZOXR.js +0 -12
  348. package/dist/chunk-A4FCXZSY.js +0 -8
  349. package/dist/chunk-ABKCC7VB.js +0 -9
  350. package/dist/chunk-ABKFALDE.js +0 -8
  351. package/dist/chunk-ALMBY7QO.js +0 -6
  352. package/dist/chunk-EOVXFXVV.js +0 -2
  353. package/dist/chunk-FBACFP4U.js +0 -4
  354. package/dist/chunk-FSRHVB4A.js +0 -9
  355. package/dist/chunk-G2BZ7NCM.js +0 -19
  356. package/dist/chunk-HYNUJY6W.js +0 -13
  357. package/dist/chunk-IEHTZR5M.js +0 -7
  358. package/dist/chunk-IH2KC3NQ.js +0 -5
  359. package/dist/chunk-IXSSBGRD.js +0 -13
  360. package/dist/chunk-LCHU3ZG4.js +0 -9
  361. package/dist/chunk-MG4IUKVP.js +0 -11
  362. package/dist/chunk-N3OJ47VK.js +0 -1
  363. package/dist/chunk-N7645DNN.js +0 -6
  364. package/dist/chunk-NTKNM25F.js +0 -15
  365. package/dist/chunk-PEVWAJUR.js +0 -7
  366. package/dist/chunk-QRZBLNOQ.js +0 -4
  367. package/dist/chunk-UGOSZLCD.js +0 -14
  368. package/dist/chunk-WB6E6CSH.js +0 -14
  369. package/dist/chunk-WQGBYFS3.js +0 -8
  370. package/dist/chunk-Y2LWUBXX.js +0 -2
  371. package/dist/chunk-YMBNVMFU.js +0 -11
  372. package/dist/chunk-ZQJTLJUF.js +0 -2
  373. package/dist/chunk-ZVEDA462.js +0 -3
@@ -40,7 +40,8 @@ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"current
40
40
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})})},"chevron-right:mini":function({size:e=18,...r}){/* @__PURE__ */
41
41
  return t("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})},"chevron-up":function({size:e=18,...r}){/* @__PURE__ */
42
42
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"})})},"chevron-up-down":function({size:e=18,...r}){/* @__PURE__ */
43
- return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})})},clock:function({size:e=18,...r}){/* @__PURE__ */
43
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})})},"clear-marks":function({size:e=18,...r}){/* @__PURE__ */
44
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M4.5 4.5L15 4.5M9.75 4.5L9.75 18M15.75 15.75L20.25 20.25M20.25 15.75L15.75 20.25"})})},clock:function({size:e=18,...r}){/* @__PURE__ */
44
45
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})})},close:function({size:e=18,...r}){/* @__PURE__ */
45
46
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})})},"close-circle":function({size:e=18,...r}){/* @__PURE__ */
46
47
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})})},"close-circle:mini":function({size:e=18,...r}){/* @__PURE__ */
@@ -109,7 +110,8 @@ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"current
109
110
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 7.125C2.25 6.504 2.754 6 3.375 6h6c.621 0 1.125.504 1.125 1.125v3.75c0 .621-.504 1.125-1.125 1.125h-6a1.125 1.125 0 0 1-1.125-1.125v-3.75ZM14.25 8.625c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v8.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 0 1-1.125-1.125v-8.25ZM3.75 16.125c0-.621.504-1.125 1.125-1.125h5.25c.621 0 1.125.504 1.125 1.125v2.25c0 .621-.504 1.125-1.125 1.125h-5.25a1.125 1.125 0 0 1-1.125-1.125v-2.25Z"})})},"line-dashed":function({size:e=18,...r}){/* @__PURE__ */
110
111
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M3 12L6 12M10.5 12L13.5 12M18 12L21 12"})})},"line-dotted":function({size:e=18,...r}){/* @__PURE__ */
111
112
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M3 12a0.375 0.375 0 1 0 0.75 0a0.375 0.375 0 1 0 -0.75 0ZM7.3125 12a0.375 0.375 0 1 0 0.75 0a0.375 0.375 0 1 0 -0.75 0ZM11.625 12a0.375 0.375 0 1 0 0.75 0a0.375 0.375 0 1 0 -0.75 0ZM15.9375 12a0.375 0.375 0 1 0 0.75 0a0.375 0.375 0 1 0 -0.75 0ZM20.25 12a0.375 0.375 0 1 0 0.75 0a0.375 0.375 0 1 0 -0.75 0Z"})})},"line-solid":function({size:e=18,...r}){/* @__PURE__ */
112
- return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M3 12L21 12"})})},link:function({size:e=18,...r}){/* @__PURE__ */
113
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M3 12L21 12"})})},"line-spacing":function({size:e=18,...r}){/* @__PURE__ */
114
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M5.25 4.5L5.25 19.5M3 17.25L5.25 19.5L7.5 17.25M3 6.75L5.25 4.5L7.5 6.75M10.5 5.25L21 5.25M10.5 9.75L21 9.75M10.5 14.25L21 14.25M10.5 18.75L21 18.75"})})},link:function({size:e=18,...r}){/* @__PURE__ */
113
115
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"})})},list:function({size:e=18,...r}){/* @__PURE__ */
114
116
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"})})},lock:function({size:e=18,...r}){/* @__PURE__ */
115
117
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"})})},logout:function({size:e=18,...r}){/* @__PURE__ */
@@ -188,5 +190,5 @@ return t("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"currentColor","aria-h
188
190
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 6.087c0-.355.186-.676.401-.959.221-.29.349-.634.349-1.003 0-1.036-1.007-1.875-2.25-1.875s-2.25.84-2.25 1.875c0 .369.128.713.349 1.003.215.283.401.604.401.959v0a.64.64 0 0 1-.657.643 48.39 48.39 0 0 1-4.163-.3c.186 1.613.293 3.25.315 4.907a.656.656 0 0 1-.658.663v0c-.355 0-.676-.186-.959-.401a1.647 1.647 0 0 0-1.003-.349c-1.036 0-1.875 1.007-1.875 2.25s.84 2.25 1.875 2.25c.369 0 .713-.128 1.003-.349.283-.215.604-.401.959-.401v0c.31 0 .555.26.532.57a48.039 48.039 0 0 1-.642 5.056c1.518.19 3.058.309 4.616.354a.64.64 0 0 0 .657-.643v0c0-.355-.186-.676-.401-.959a1.647 1.647 0 0 1-.349-1.003c0-1.035 1.008-1.875 2.25-1.875 1.243 0 2.25.84 2.25 1.875 0 .369-.128.713-.349 1.003-.215.283-.4.604-.4.959v0c0 .333.277.599.61.58a48.1 48.1 0 0 0 5.427-.63 48.05 48.05 0 0 0 .582-4.717.532.532 0 0 0-.533-.57v0c-.355 0-.676.186-.959.401-.29.221-.634.349-1.003.349-1.035 0-1.875-1.007-1.875-2.25s.84-2.25 1.875-2.25c.37 0 .713.128 1.003.349.283.215.604.401.96.401v0a.656.656 0 0 0 .658-.663 48.422 48.422 0 0 0-.37-5.36c-1.886.342-3.81.574-5.766.689a.578.578 0 0 1-.61-.58v0Z"})})},window:function({size:e=18,...r}){/* @__PURE__ */
189
191
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"})})},wrap:function({size:e=18,...r}){/* @__PURE__ */
190
192
  return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{d:"M3.75 6.75L20.25 6.75M3.75 12h13.5a3 3 0 0 1 0 6H12M14.25 15.75L12 18L14.25 20.25M3.75 17.25L7.5 17.25"})})},"zoom-in":function({size:e=18,...r}){/* @__PURE__ */
191
- return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"})})}};function h(e,r){return(r?d[`${e}:${r}`]:void 0)??d[e]}var a={muted:"text-gray-500",accent:"text-blue-600",danger:"text-red-600",success:"text-green-600",warning:"text-amber-600"},s=/* @__PURE__ */new Set;function u({name:o,glyph:d,size:u,tone:c,look:l,title:L,fallback:k,className:v,...M}){n(e,r,r);const p=o??d,f=i(p,l)??k??h(p,l);if(!f)return s.has(p)||(s.add(p),console.warn(`efficient-shell/icons: no registered icon set draws "${p}". Register one at startup, for example registerIconSet(efficient) from 'efficient-shell/icons/efficient'.`)),null;const g=void 0!==L||void 0!==M["aria-label"]||void 0!==M["aria-labelledby"],w=[c?a[c]:"",v??""].filter(Boolean).join(" ");/* @__PURE__ */
192
- return t(f,{width:u??"1em",height:u??"1em","data-icon":p,"aria-hidden":!g||void 0,role:g?"img":void 0,"aria-label":L,...M,className:w||void 0})}export{u as Icon,h as kitDrawing};
193
+ return t("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",...r,children:/* @__PURE__ */t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"})})}};function h(e,r){return(r?d[`${e}:${r}`]:void 0)??d[e]}var a={muted:"text-gray-500",accent:"text-blue-600",danger:"text-red-600",success:"text-green-600",warning:"text-amber-600"},s=/* @__PURE__ */new Set;function u({name:o,glyph:d,size:u,tone:c,look:l,title:L,fallback:k,className:M,...v}){n(e,r,r);const p=o??d,f=i(p,l)??k??h(p,l);if(!f)return s.has(p)||(s.add(p),console.warn(`efficient-shell/icons: no registered icon set draws "${p}". Register one at startup, for example registerIconSet(efficient) from 'efficient-shell/icons/efficient'.`)),null;const g=void 0!==L||void 0!==v["aria-label"]||void 0!==v["aria-labelledby"],w=[c?a[c]:"",M??""].filter(Boolean).join(" ");/* @__PURE__ */
194
+ return t(f,{width:u??"1em",height:u??"1em","data-icon":p,"aria-hidden":!g||void 0,role:g?"img":void 0,"aria-label":L,...v,className:w||void 0})}export{u as Icon,h as kitDrawing};
@@ -1,11 +1,11 @@
1
- import{FormField as e}from"./chunk-6KBDNYRW.js";import{dropzoneClass as t,zoneFocusClass as a,CloseGlyph as r}from"./chunk-L433UT5E.js";import{useFileIntake as n,humanSize as i,FileIntakeAlert as s}from"./chunk-RDTKMSEK.js";import{useShellStrings as l}from"./chunk-VNTJ7QO5.js";import{forwardRef as c,useId as m}from"react";import{jsxs as o,jsx as d}from"react/jsx-runtime";var p=c(function({files:c,onChange:p,accept:u,acceptHint:h,multiple:x=!0,maxSizeBytes:b,maxFiles:f,disabled:y=!1,label:g,hint:N,error:j,required:k,className:v=""},$){const z=m(),C=l().files,O=n({accept:u,acceptHint:h,maxSizeBytes:b,maxFiles:f,multiple:x,disabled:y,currentCount:c.length,onAccept:e=>p(x?[...c,...e]:e.slice(0,1))}),q=j?`${z}-error`:N?`${z}-hint`:void 0;/* @__PURE__ */
2
- return o(e,{label:g,htmlFor:z,hint:N,error:j,required:k,className:v,children:[
3
- /* @__PURE__ */o("button",{ref:$,type:"button",id:z,disabled:y,onClick:O.open,"aria-invalid":!!j||void 0,"aria-required":k||void 0,"aria-describedby":q,...O.zoneProps,className:t(O.dragOver,y,a(y),"px-4 py-6"),children:[
1
+ import{FormField as e}from"./chunk-6KBDNYRW.js";import{dropzoneClass as t,zoneFocusClass as a,CloseGlyph as r}from"./chunk-VEGZVUHE.js";import{useFileIntake as n,humanSize as i,FileIntakeAlert as s}from"./chunk-ZKBGUDNB.js";import{useShellStrings as l}from"./chunk-5YP7MFPK.js";import{forwardRef as c,useId as m}from"react";import{jsxs as o,jsx as d}from"react/jsx-runtime";var p=c(function({files:c,onChange:p,accept:u,acceptHint:h,multiple:x=!0,maxSizeBytes:b,maxFiles:f,disabled:y=!1,label:g,hint:N,error:j,required:k,className:v=""},B){const $=m(),z=l().files,C=n({accept:u,acceptHint:h,maxSizeBytes:b,maxFiles:f,multiple:x,disabled:y,currentCount:c.length,onAccept:e=>p(x?[...c,...e]:e.slice(0,1))}),F=j?`${$}-error`:N?`${$}-hint`:void 0;/* @__PURE__ */
2
+ return o(e,{label:g,htmlFor:$,hint:N,error:j,required:k,className:v,children:[
3
+ /* @__PURE__ */o("button",{ref:B,type:"button",id:$,disabled:y,onClick:C.open,"aria-invalid":!!j||void 0,"aria-required":k||void 0,"aria-describedby":F,...C.zoneProps,className:t(C.dragOver,y,a(y),"px-4 py-6"),children:[
4
4
  /* @__PURE__ */o("span",{children:[
5
- /* @__PURE__ */d("span",{className:"text-sm font-medium text-blue-600",children:x?C.chooseMany:C.chooseOne}),
6
- /* @__PURE__ */d("span",{className:"text-sm text-gray-500",children:` ${x?C.dragMany:C.dragOne}`})]}),h&&/* @__PURE__ */d("span",{className:"text-xs text-gray-400",children:h})]}),
7
- /* @__PURE__ */d("input",{...O.inputProps}),c.length>0&&/* @__PURE__ */d("ul",{className:"mt-2 flex flex-col gap-1",children:c.map((e,t)=>/* @__PURE__ */o("li",{className:"flex items-center justify-between gap-3 rounded-md bg-gray-50 px-3 py-2",children:[
5
+ /* @__PURE__ */d("span",{className:"text-sm font-medium text-blue-600",children:x?z.chooseMany:z.chooseOne}),
6
+ /* @__PURE__ */d("span",{className:"text-sm text-gray-500",children:` ${x?z.dragMany:z.dragOne}`})]}),h&&/* @__PURE__ */d("span",{className:"text-xs text-gray-400",children:h})]}),
7
+ /* @__PURE__ */d("input",{...C.inputProps}),c.length>0&&/* @__PURE__ */d("ul",{className:"mt-2 flex flex-col gap-1",children:c.map((e,t)=>/* @__PURE__ */o("li",{className:"flex items-center justify-between gap-3 rounded-md bg-gray-50 px-3 py-2",children:[
8
8
  /* @__PURE__ */d("span",{className:"min-w-0 flex-1 truncate text-sm text-gray-800",title:e.name,children:e.name}),
9
- /* @__PURE__ */d("span",{className:"shrink-0 text-xs tabular-nums text-gray-500",children:i(e.size,C)}),
10
- /* @__PURE__ */d("button",{type:"button",disabled:y,onClick:()=>{O.clearRejections(),p(c.filter((e,a)=>a!==t))},"aria-label":C.remove(e.name),className:"shrink-0 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */d(r,{})})]},`${e.name}-${t}`))}),
11
- /* @__PURE__ */d(s,{rejections:O.rejections})]})});export{p as FilePicker_default};
9
+ /* @__PURE__ */d("span",{className:"shrink-0 text-xs tabular-nums text-gray-500",children:i(e.size,z)}),
10
+ /* @__PURE__ */d("button",{type:"button",disabled:y,onClick:()=>{C.clearRejections(),p(c.filter((e,a)=>a!==t))},"aria-label":z.remove(e.name),className:"shrink-0 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */d(r,{})})]},`${e.name}-${t}`))}),
11
+ /* @__PURE__ */d(s,{rejections:C.rejections})]})});export{p as FilePicker_default};
@@ -1,6 +1,6 @@
1
- import{GROUP_COLORS as e}from"./chunk-FZM3ZPW3.js";import{SpinnerRing as r}from"./chunk-R2VKEMZH.js";import{Tooltip as n}from"./chunk-NJN5IKWO.js";import{useShellStrings as l}from"./chunk-VNTJ7QO5.js";import{jsx as t,jsxs as i,Fragment as a}from"react/jsx-runtime";var s="inline-flex items-center gap-1 whitespace-nowrap rounded-md border border-current/20 py-0.5 pl-2 pr-1 text-2xs font-medium";function o({label:e,glyph:r,onClick:l}){/* @__PURE__ */
1
+ import{GROUP_COLORS as e}from"./chunk-JPNAEN53.js";import{SpinnerRing as r}from"./chunk-R2VKEMZH.js";import{Tooltip as n}from"./chunk-QQ2LDC6C.js";import{useShellStrings as l}from"./chunk-5YP7MFPK.js";import{jsx as t,jsxs as i,Fragment as a}from"react/jsx-runtime";var s="inline-flex items-center gap-1 whitespace-nowrap rounded-md border border-current/20 py-0.5 pl-2 pr-1 text-2xs font-medium";function o({label:e,glyph:r,onClick:l}){/* @__PURE__ */
2
2
  return t(n,{content:e,describe:!1,children:/* @__PURE__ */t("button",{type:"button",onClick:l,"aria-label":e,className:"flex h-4 w-4 items-center justify-center rounded-full leading-none hover:bg-current/10 rosh-focus-ring focus-visible:ring-2",children:/* @__PURE__ */t("span",{"aria-hidden":"true",children:r})})})}function c({state:n,label:c,verb:u,subject:m,pct:p,onCancel:d,onRetry:h,onDismiss:f,className:b=""}){const g=l().transfer;if("idle"===n)return null==c?null:/* @__PURE__ */t("span",{className:`${s} ${e.neutral} pr-2 ${b}`.trim(),children:c});if("error"===n)/* @__PURE__ */
3
3
  return i("span",{role:"status",className:`${s} ${e.danger} ${b}`.trim(),children:[
4
- /* @__PURE__ */t("span",{children:g.error}),h&&/* @__PURE__ */t(o,{label:g.retry,glyph:"↻",onClick:h}),f&&/* @__PURE__ */t(o,{label:g.dismiss,glyph:"×",onClick:f})]});const N=u??g.uploading,y=null==p||Number.isNaN(p)?null:Math.max(0,Math.min(100,Math.round(p))),$="string"==typeof N?g.cancelVerb(N.toLowerCase()):g.cancel,k=e=>[e,m,null==y?"":`${y}%`].filter(Boolean).join(" ");/* @__PURE__ */
5
- return i("span",{role:"status","aria-live":"polite",className:`${s} ${e.info} ${b}`.trim(),children:[null==y&&/* @__PURE__ */t(r,{ink:""}),
6
- /* @__PURE__ */t("span",{className:"tabular-nums",children:"string"==typeof N?k(N):/* @__PURE__ */i(a,{children:[N,k("")&&` ${k("")}`]})}),d&&/* @__PURE__ */t(o,{label:$,glyph:"×",onClick:d})]})}export{c as TransferProgress};
4
+ /* @__PURE__ */t("span",{children:g.error}),h&&/* @__PURE__ */t(o,{label:g.retry,glyph:"↻",onClick:h}),f&&/* @__PURE__ */t(o,{label:g.dismiss,glyph:"×",onClick:f})]});const y=u??g.uploading,N=null==p||Number.isNaN(p)?null:Math.max(0,Math.min(100,Math.round(p))),$="string"==typeof y?g.cancelVerb(y.toLowerCase()):g.cancel,k=e=>[e,m,null==N?"":`${N}%`].filter(Boolean).join(" ");/* @__PURE__ */
5
+ return i("span",{role:"status","aria-live":"polite",className:`${s} ${e.info} ${b}`.trim(),children:[null==N&&/* @__PURE__ */t(r,{ink:""}),
6
+ /* @__PURE__ */t("span",{className:"tabular-nums",children:"string"==typeof y?k(y):/* @__PURE__ */i(a,{children:[y,k("")&&` ${k("")}`]})}),d&&/* @__PURE__ */t(o,{label:$,glyph:"×",onClick:d})]})}export{c as TransferProgress};
@@ -1,2 +1,2 @@
1
- import{Input_default as e}from"./chunk-2UTCGWMZ.js";import{useState as r,useRef as t}from"react";import{jsx as o}from"react/jsx-runtime";function n({value:n,label:a,onDone:u}){const[l,c]=r(n),i=t(!1),p=e=>{i.current||(i.current=!0,u(e))};/* @__PURE__ */
1
+ import{Input_default as e}from"./chunk-LGTYPLJM.js";import{useState as r,useRef as t}from"react";import{jsx as o}from"react/jsx-runtime";function n({value:n,label:a,onDone:u}){const[l,c]=r(n),i=t(!1),p=e=>{i.current||(i.current=!0,u(e))};/* @__PURE__ */
2
2
  return o(e,{size:"sm",autoFocus:!0,"aria-label":a,value:l,onChange:e=>c(e.target.value),onFocus:e=>e.currentTarget.select(),onKeyDown:e=>{e.stopPropagation(),"Enter"===e.key?(e.preventDefault(),p(l.trim()||n)):"Escape"===e.key&&(e.preventDefault(),p(null))},onBlur:()=>p(l.trim()||n),onClick:e=>e.stopPropagation()})}export{n as RenameField};
@@ -1,4 +1,4 @@
1
- import{ErrorPage as r}from"./chunk-FOHOSUK3.js";import{reportBoundaryError as e}from"./chunk-KNUR2UEG.js";import{Button_default as t}from"./chunk-EOVXFXVV.js";import{useShellStrings as s}from"./chunk-VNTJ7QO5.js";import{Component as o}from"react";import{jsxs as i,jsx as a,Fragment as n}from"react/jsx-runtime";function c({pick:r}){/* @__PURE__ */
1
+ import{ErrorPage as r}from"./chunk-O6VIHWYU.js";import{reportBoundaryError as e}from"./chunk-KNUR2UEG.js";import{Button_default as t}from"./chunk-7DI3VQCF.js";import{useShellStrings as s}from"./chunk-5YP7MFPK.js";import{Component as o}from"react";import{jsxs as i,jsx as a,Fragment as n}from"react/jsx-runtime";function c({pick:r}){/* @__PURE__ */
2
2
  return a(n,{children:r(s().errors)})}var l=class extends o{state={error:null};static getDerivedStateFromError(r){return{error:r}}componentDidCatch(r,t){console.error("ErrorBoundary caught an error:",r,t),e(r),this.props.onError?.(r,t)}componentDidUpdate(r){if(!this.state.error)return;const e=r.resetKeys??[],t=this.props.resetKeys??[];(e.length!==t.length||e.some((r,e)=>!Object.is(r,t[e])))&&this.reset()}reset=()=>this.setState({error:null});render(){const{error:e}=this.state;return e?this.props.fallback?this.props.fallback(e,this.reset):
3
3
  /* @__PURE__ */i("div",{className:"flex h-full flex-col",children:[
4
4
  /* @__PURE__ */a("div",{role:"alert",className:"min-h-0 flex-1",children:/* @__PURE__ */a(r,{code:500,actions:/* @__PURE__ */i(n,{children:[
@@ -1,4 +1,4 @@
1
- import{InputNumber_default as e}from"./chunk-GV5VNWPG.js";import{IconButton_default as r}from"./chunk-LE5LWALR.js";import{Icon as a}from"./chunk-R64OZ6TC.js";import{Tooltip as i}from"./chunk-NJN5IKWO.js";import{useShellStrings as n}from"./chunk-VNTJ7QO5.js";import{useState as l,useRef as o}from"react";import{jsxs as t,jsx as s}from"react/jsx-runtime";var d={tl:"",tr:"rotate-90",br:"rotate-180",bl:"-rotate-90"},c=["tl","tr","bl","br"];function u({label:u,value:m,corners:f,onChange:p,radius:h=null,onRadiusChange:v,radiusLabel:b,radiusMin:k=0,radiusMax:g,radiusStep:x=1,radiusPlaceholder:w,disabled:y=!1,disabledReason:N,id:j,className:A=""}){const R=n(),C=function(e){const r=c.map(r=>e.find(e=>e.value===r));for(const a of e){if(c.includes(a.value))continue;const e=r.findIndex(e=>void 0===e);-1===e?r.push(a):r[e]=a}return r.filter(e=>void 0!==e)}(f),[K,L]=l(0),M=o(null);/* @__PURE__ */
2
- return t("div",{id:j,role:"group","aria-label":u,className:`flex min-w-0 flex-wrap items-center gap-2 ${A}`.trim(),children:[v&&
3
- /* @__PURE__ */s("div",{className:"w-30 shrink-0",children:/* @__PURE__ */s(e,{value:h,onChange:v,min:k,max:g,step:x,precision:0,placeholder:w,prefix:/* @__PURE__ */s("span",{"data-radius-mark":"","aria-hidden":"true",children:R.corners.radiusMark}),suffix:R.corners.unit,steppers:"compact",disabled:y,"aria-label":b??R.corners.radius})}),
4
- /* @__PURE__ */s("div",{ref:M,"data-corners-grid":"",className:"grid shrink-0 grid-cols-2 gap-1",onKeyDown:e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;const r=Array.from(M.current?.querySelectorAll("button[data-corner]")??[]),a=r.indexOf(document.activeElement);if(-1===a)return;const i=a%2,n=Math.floor(a/2),l="ArrowRight"===e.key?2*n+1:"ArrowLeft"===e.key?2*n:"ArrowDown"===e.key?2+i:"ArrowUp"===e.key?i:null;null!==l&&(e.preventDefault(),l<r.length&&r[l].focus())},children:C.map((e,n)=>{const l=m.includes(e.value),o=y||!0===e.disabled,t=o&&(!0===e.disabled&&e.title||(y?N:void 0))||void 0,c=/* @__PURE__ */s(r,{"aria-pressed":l,"aria-label":e.label,"aria-disabled":o||void 0,disabledReason:t,"data-corner":e.value,size:"sm",tabIndex:n===K?0:-1,onFocus:()=>L(n),onClick:()=>{o||p(l?m.filter(r=>r!==e.value):[...m,e.value])},children:/* @__PURE__ */s(a,{name:"corner",strokeWidth:2,className:["h-4 w-4",d[e.value]??""].filter(Boolean).join(" ")})},e.value);return t?c:/* @__PURE__ */s(i,{content:e.title??e.label,children:c},e.value)})})]})}export{u as CornersInput};
1
+ import{InputNumber_default as e}from"./chunk-R72ZKZDP.js";import{IconButton_default as r}from"./chunk-VCMHBUKI.js";import{Icon as a}from"./chunk-7V32O5NF.js";import{Tooltip as i}from"./chunk-QQ2LDC6C.js";import{useShellStrings as n}from"./chunk-5YP7MFPK.js";import{useState as l,useRef as o}from"react";import{jsxs as t,jsx as s}from"react/jsx-runtime";var d={tl:"",tr:"rotate-90",br:"rotate-180",bl:"-rotate-90"},c=["tl","tr","bl","br"];function u({label:u,value:m,corners:f,onChange:p,radius:h=null,onRadiusChange:v,radiusLabel:b,radiusMin:k=0,radiusMax:g,radiusStep:x=1,radiusPlaceholder:w,disabled:y=!1,disabledReason:j,id:C,className:K=""}){const A=n(),M=function(e){const r=c.map(r=>e.find(e=>e.value===r));for(const a of e){if(c.includes(a.value))continue;const e=r.findIndex(e=>void 0===e);-1===e?r.push(a):r[e]=a}return r.filter(e=>void 0!==e)}(f),[N,D]=l(0),R=o(null);/* @__PURE__ */
2
+ return t("div",{id:C,role:"group","aria-label":u,className:`flex min-w-0 flex-wrap items-center gap-2 ${K}`.trim(),children:[v&&
3
+ /* @__PURE__ */s("div",{className:"w-30 shrink-0",children:/* @__PURE__ */s(e,{value:h,onChange:v,min:k,max:g,step:x,precision:0,placeholder:w,prefix:/* @__PURE__ */s("span",{"data-radius-mark":"","aria-hidden":"true",children:A.corners.radiusMark}),suffix:A.corners.unit,steppers:"compact",disabled:y,"aria-label":b??A.corners.radius})}),
4
+ /* @__PURE__ */s("div",{ref:R,"data-corners-grid":"",className:"grid shrink-0 grid-cols-2 gap-1",onKeyDown:e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;const r=Array.from(R.current?.querySelectorAll("button[data-corner]")??[]),a=r.indexOf(document.activeElement);if(-1===a)return;const i=a%2,n=Math.floor(a/2),l="ArrowRight"===e.key?2*n+1:"ArrowLeft"===e.key?2*n:"ArrowDown"===e.key?2+i:"ArrowUp"===e.key?i:null;null!==l&&(e.preventDefault(),l<r.length&&r[l].focus())},children:M.map((e,n)=>{const l=m.includes(e.value),o=y||!0===e.disabled,t=o&&(!0===e.disabled&&e.title||(y?j:void 0))||void 0,c=/* @__PURE__ */s(r,{"aria-pressed":l,"aria-label":e.label,"aria-disabled":o||void 0,disabledReason:t,"data-corner":e.value,size:"sm",tabIndex:n===N?0:-1,onFocus:()=>D(n),onClick:()=>{o||p(l?m.filter(r=>r!==e.value):[...m,e.value])},children:/* @__PURE__ */s(a,{name:"corner",strokeWidth:2,className:["h-4 w-4",d[e.value]??""].filter(Boolean).join(" ")})},e.value);return t?c:/* @__PURE__ */s(i,{content:e.title??e.label,children:c},e.value)})})]})}export{u as CornersInput};
@@ -1,4 +1,4 @@
1
- import{useShellStrings as e,useShellLocale as a}from"./chunk-VNTJ7QO5.js";import{formatPlain as n}from"./chunk-C3QOHMR6.js";import{useState as i,useId as d}from"react";import{jsx as r,jsxs as c,Fragment as s}from"react/jsx-runtime";var o={band:"es-group-head",row:"es-group-sub"},l=e=>[...e].map(e=>/[A-Za-z0-9_-]/.test(e)?e:`-u${e.codePointAt(0).toString(16)}-`).join("");function t({items:t,defaultOpenIds:u=[],openIds:p,onOpenChange:m,allowMultiple:h=!1,level:N=3,tier:g="band",keepMounted:b=!1,className:$=""}){const v=e(),f=a(),[x,y]=i(u),I=d(),j=`h${N}`,k=p??x;/* @__PURE__ */
1
+ import{useShellStrings as e,useShellLocale as a}from"./chunk-5YP7MFPK.js";import{formatPlain as n}from"./chunk-C3QOHMR6.js";import{useState as i,useId as d}from"react";import{jsx as r,jsxs as c,Fragment as s}from"react/jsx-runtime";var o={band:"es-group-head",row:"es-group-sub"},l=e=>[...e].map(e=>/[A-Za-z0-9_-]/.test(e)?e:`-u${e.codePointAt(0).toString(16)}-`).join("");function t({items:t,defaultOpenIds:u=[],openIds:p,onOpenChange:m,allowMultiple:h=!1,level:N=3,tier:g="band",keepMounted:b=!1,className:$=""}){const v=e(),f=a(),[x,y]=i(u),I=d(),j=`h${N}`,k=p??x;/* @__PURE__ */
2
2
  return r("div",{"data-accordion":g,className:$||void 0,children:t.map(e=>{const a=k.includes(e.id),i=e.headId??`${I}-${l(e.id)}-head`,d=e.headId?`${e.headId}-body`:`${I}-${l(e.id)}-panel`,t=a||b;/* @__PURE__ */
3
3
  return c("div",{className:e.className?`es-group ${e.className}`:"es-group",children:[
4
4
  /* @__PURE__ */r(j,{className:"es-group-title",children:/* @__PURE__ */c("button",{type:"button",id:i,disabled:e.disabled,"aria-expanded":a,"aria-controls":t?d:void 0,onClick:()=>(e=>{const a=k.includes(e)?k.filter(a=>a!==e):h?[...k,e]:[e];void 0===p&&y(a),m?.(a)})(e.id),className:o[g],children:[null!=e.icon&&/* @__PURE__ */r("span",{"aria-hidden":"true",className:"es-group-icon",children:e.icon}),e.title,"number"==typeof e.count&&e.count>0&&
@@ -1,9 +1,9 @@
1
- import{Calendar as e}from"./chunk-PR42NIDL.js";import{fromDateKey as t,toDateKey as r}from"./chunk-2HMNOLKX.js";import{inputClasses as a,PLACEHOLDER_INK as n}from"./chunk-AYZY3YNC.js";import{calendarNames as i}from"./chunk-Y3JW2GW5.js";import{Icon as o}from"./chunk-R64OZ6TC.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as s}from"./chunk-62LW225J.js";import{useDropdownPosition as d}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as u}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as c}from"./chunk-TWVUQUUD.js";import{useShellStrings as m,useShellLocale as b}from"./chunk-VNTJ7QO5.js";import{forwardRef as f,useState as p,useRef as h,useId as v,useEffect as g}from"react";import{createPortal as y}from"react-dom";import{jsx as x,jsxs as N}from"react/jsx-runtime";var k=/^\d{4}-\d{2}-\d{2}$/,j=/^(aria|data)-/,w=/* @__PURE__ */new Set(["aria-invalid","aria-required"]);function D(e){if(null==e||""===e)return"";if(e instanceof Date)return Number.isNaN(e.getTime())?"":r(e);if(k.test(e))return e;const t=new Date(e);return Number.isNaN(t.getTime())?"":r(t)}function C(e,r){const a=t(e);return a?r.longDate(a.getFullYear(),a.getMonth(),a.getDate()):""}var F=f(function({value:f,onChange:k,min:F,max:O,invalid:W,size:B,native:L,weekStartsOn:T,className:$="","aria-label":q,"aria-describedby":E,"aria-labelledby":I,id:J,name:S,disabled:Y,placeholder:z,required:U,clearable:G,form:M,title:P,tabIndex:R,autoFocus:H,onFocus:Q,onBlur:V,...Z},A){const K=G??!U,X=D(f),_=D(F),ee=D(O),te=m().datePicker,re=b(),ae=i(re),[ne,ie]=p(!1),oe=h(null),le=h(null),se=h(null),de=v(),ue=v(),ce=v(),me=d(le,ne,{popupRef:se}),[be,fe]=p(!1);u(()=>{const e=!!J&&(le.current?.labels?.length??0)>0;e!==be&&fe(e)});const pe=!q&&(!!I||be);if(g(()=>{if(!ne)return;const e=e=>{const t=e.target;oe.current?.contains(t)||se.current?.contains(t)||ie(!1)};document.addEventListener("pointerdown",e,!0);const t=l(()=>ie(!1));return()=>{document.removeEventListener("pointerdown",e,!0),t()}},[ne]),g(()=>{if(ne)return c(e=>"Escape"===e.key&&(ie(!1),le.current?.focus(),!0),()=>se.current)},[ne]),L)/* @__PURE__ */
2
- return x("input",{ref:A,type:"date",lang:re,id:J,name:S,disabled:Y,"aria-label":q,"aria-describedby":E,"aria-invalid":W||void 0,value:X,min:_||void 0,max:ee||void 0,onChange:e=>k?.(t(e.target.value)),className:a({invalid:W,size:B,className:$}),"aria-labelledby":I,required:U,form:M,title:P,tabIndex:R,autoFocus:H,onFocus:Q,onBlur:V,...Z});const he=Object.fromEntries(Object.entries(Z).filter(([e])=>j.test(e)&&!w.has(e))),ve=Z["aria-required"],ge=!!U||!0===ve||"true"===ve,ye=[pe?ue:void 0,ge?ce:void 0,E].filter(Boolean).join(" ")||void 0,xe=r(/* @__PURE__ */new Date),Ne=(!_||xe>=_)&&(!ee||xe<=ee),ke=z??te.placeholder;/* @__PURE__ */
1
+ import{Calendar as e}from"./chunk-SKRFI6WB.js";import{fromDateKey as t,toDateKey as r}from"./chunk-2HMNOLKX.js";import{inputClasses as a,PLACEHOLDER_INK as n}from"./chunk-AYZY3YNC.js";import{calendarNames as i}from"./chunk-Y3JW2GW5.js";import{Icon as o}from"./chunk-7V32O5NF.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as s}from"./chunk-62LW225J.js";import{useDropdownPosition as d}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as u}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as c}from"./chunk-TWVUQUUD.js";import{useShellStrings as m,useShellLocale as b}from"./chunk-5YP7MFPK.js";import{forwardRef as f,useState as p,useRef as h,useId as v,useEffect as g}from"react";import{createPortal as y}from"react-dom";import{jsx as x,jsxs as N}from"react/jsx-runtime";var k=/^\d{4}-\d{2}-\d{2}$/,j=/^(aria|data)-/,w=/* @__PURE__ */new Set(["aria-invalid","aria-required"]);function F(e){if(null==e||""===e)return"";if(e instanceof Date)return Number.isNaN(e.getTime())?"":r(e);if(k.test(e))return e;const t=new Date(e);return Number.isNaN(t.getTime())?"":r(t)}function D(e,r){const a=t(e);return a?r.longDate(a.getFullYear(),a.getMonth(),a.getDate()):""}var W=f(function({value:f,onChange:k,min:W,max:B,invalid:C,size:O,native:S,weekStartsOn:Y,className:$="","aria-label":q,"aria-describedby":E,"aria-labelledby":I,id:L,name:z,disabled:J,placeholder:M,required:P,clearable:T,form:U,title:G,tabIndex:K,autoFocus:H,onFocus:R,onBlur:V,...A},Q){const X=T??!P,Z=F(f),_=F(W),ee=F(B),te=m().datePicker,re=b(),ae=i(re),[ne,ie]=p(!1),oe=h(null),le=h(null),se=h(null),de=v(),ue=v(),ce=v(),me=d(le,ne,{popupRef:se}),[be,fe]=p(!1);u(()=>{const e=!!L&&(le.current?.labels?.length??0)>0;e!==be&&fe(e)});const pe=!q&&(!!I||be);if(g(()=>{if(!ne)return;const e=e=>{const t=e.target;oe.current?.contains(t)||se.current?.contains(t)||ie(!1)};document.addEventListener("pointerdown",e,!0);const t=l(()=>ie(!1));return()=>{document.removeEventListener("pointerdown",e,!0),t()}},[ne]),g(()=>{if(ne)return c(e=>"Escape"===e.key&&(ie(!1),le.current?.focus(),!0),()=>se.current)},[ne]),S)/* @__PURE__ */
2
+ return x("input",{ref:Q,type:"date",lang:re,id:L,name:z,disabled:J,"aria-label":q,"aria-describedby":E,"aria-invalid":C||void 0,value:Z,min:_||void 0,max:ee||void 0,onChange:e=>k?.(t(e.target.value)),className:a({invalid:C,size:O,className:$}),"aria-labelledby":I,required:P,form:U,title:G,tabIndex:K,autoFocus:H,onFocus:R,onBlur:V,...A});const he=Object.fromEntries(Object.entries(A).filter(([e])=>j.test(e)&&!w.has(e))),ve=A["aria-required"],ge=!!P||!0===ve||"true"===ve,ye=[pe?ue:void 0,ge?ce:void 0,E].filter(Boolean).join(" ")||void 0,xe=r(/* @__PURE__ */new Date),Ne=(!_||xe>=_)&&(!ee||xe<=ee),ke=M??te.placeholder;/* @__PURE__ */
3
3
  return N("div",{ref:oe,className:"relative",children:[
4
- /* @__PURE__ */x("input",{ref:A,type:"hidden",name:S,form:M,value:X}),
5
- /* @__PURE__ */N("button",{ref:le,type:"button",...he,id:J,disabled:Y,title:P,tabIndex:R,autoFocus:H,onFocus:Q,onBlur:V,"aria-haspopup":"dialog","aria-expanded":ne,"aria-controls":ne?de:void 0,"aria-labelledby":I,"aria-describedby":ye,"aria-label":q?`${q}${X?`, ${C(X,ae)}`:""}`:void 0,onClick:()=>ie(e=>!e),className:`${a({invalid:W,size:B,className:$})} flex items-center justify-between text-left`,children:[
6
- /* @__PURE__ */x("span",{className:X?"text-ink-strongest":n,children:X?C(X,ae):ke}),
7
- /* @__PURE__ */x(o,{name:"date",className:`h-4 w-4 shrink-0 ${n}`,strokeWidth:"1.75","aria-hidden":"true"})]}),pe&&/* @__PURE__ */x("span",{id:ue,className:"sr-only",children:X?C(X,ae):ke}),ge&&/* @__PURE__ */x("span",{id:ce,className:"sr-only",children:te.required}),ne&&y(
4
+ /* @__PURE__ */x("input",{ref:Q,type:"hidden",name:z,form:U,value:Z}),
5
+ /* @__PURE__ */N("button",{ref:le,type:"button",...he,id:L,disabled:J,title:G,tabIndex:K,autoFocus:H,onFocus:R,onBlur:V,"aria-haspopup":"dialog","aria-expanded":ne,"aria-controls":ne?de:void 0,"aria-labelledby":I,"aria-describedby":ye,"aria-label":q?`${q}${Z?`, ${D(Z,ae)}`:""}`:void 0,onClick:()=>ie(e=>!e),className:`${a({invalid:C,size:O,className:$})} flex items-center justify-between text-left`,children:[
6
+ /* @__PURE__ */x("span",{className:Z?"text-ink-strongest":n,children:Z?D(Z,ae):ke}),
7
+ /* @__PURE__ */x(o,{name:"date",className:`h-4 w-4 shrink-0 ${n}`,strokeWidth:"1.75","aria-hidden":"true"})]}),pe&&/* @__PURE__ */x("span",{id:ue,className:"sr-only",children:Z?D(Z,ae):ke}),ge&&/* @__PURE__ */x("span",{id:ce,className:"sr-only",children:te.required}),ne&&y(
8
8
  /* @__PURE__ */N("div",{ref:se,id:de,role:"dialog","aria-label":q??te.dialog,className:"fixed w-72 rounded-xl border border-gray-200 bg-white p-3 shadow-lg",style:{zIndex:s.popup,left:me?.left,right:me?.right,top:me?.top,bottom:me?.bottom,maxWidth:me?.maxWidth,visibility:me?void 0:"hidden"},children:[
9
- /* @__PURE__ */x(e,{value:X||null,min:_||null,max:ee||null,weekStartsOn:T,onSelect:e=>{ie(!1),le.current?.focus(),k?.(t(e))}}),(K||Ne)&&/* @__PURE__ */N("div",{className:"mt-2 flex justify-between border-t border-gray-100 pt-2",children:[K&&/* @__PURE__ */x("button",{type:"button",onClick:()=>{ie(!1),le.current?.focus(),k?.(null)},className:"rounded-(--radius-control) px-2 py-1 text-sm text-gray-500 hover:bg-gray-100 hover:text-gray-700",children:te.clear}),Ne&&/* @__PURE__ */x("button",{type:"button",onClick:()=>{ie(!1),le.current?.focus(),k?.(/* @__PURE__ */new Date)},className:"ml-auto rounded-(--radius-control) px-2 py-1 text-sm font-medium text-blue-600 hover:bg-blue-50",children:te.today})]})]}),document.body)]})});export{F as DatePicker_default};
9
+ /* @__PURE__ */x(e,{value:Z||null,min:_||null,max:ee||null,weekStartsOn:Y,onSelect:e=>{ie(!1),le.current?.focus(),k?.(t(e))}}),(X||Ne)&&/* @__PURE__ */N("div",{className:"mt-2 flex justify-between border-t border-gray-100 pt-2",children:[X&&/* @__PURE__ */x("button",{type:"button",onClick:()=>{ie(!1),le.current?.focus(),k?.(null)},className:"rounded-(--radius-control) px-2 py-1 text-sm text-gray-500 hover:bg-gray-100 hover:text-gray-700",children:te.clear}),Ne&&/* @__PURE__ */x("button",{type:"button",onClick:()=>{ie(!1),le.current?.focus(),k?.(/* @__PURE__ */new Date)},className:"ml-auto rounded-(--radius-control) px-2 py-1 text-sm font-medium text-blue-600 hover:bg-blue-50",children:te.today})]})]}),document.body)]})});export{W as DatePicker_default};
@@ -0,0 +1,6 @@
1
+ import{areaBetween as e,curvePath as i}from"./chunk-VFC6QUEN.js";import{CartesianPlot as l}from"./chunk-3VR5BOD4.js";import{ChartTooltip as t}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as r,CHART_INK as a}from"./chunk-TZFACUMR.js";import{useShellStrings as o,useShellLocale as n}from"./chunk-5YP7MFPK.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{jsx as s,jsxs as m,Fragment as c}from"react/jsx-runtime";function u({rows:u,labels:d,variant:p="area",curve:f="linear",height:k=220,width:g,max:b,min:x,formatValue:w,yAxisLabel:y,color:j,tone:v,label:L,className:M,emptyLabel:F,radius:O=3}){const V=o().charts,N=n(),W=w??(e=>h(e,N)),A=L??V.range,C=u.flatMap(e=>[e.low,e.high]).filter(Number.isFinite),P=r(0,j,v);/* @__PURE__ */
2
+ return s(l,{labels:d,values:C,height:k,width:g,max:b,min:x,formatValue:W,yAxisLabel:y,className:M,emptyLabel:F,bandPadding:"bar"===p?.34:0,ariaLabel:V.rangeLabel(A,d.length),tooltip:e=>/* @__PURE__ */s(t,{title:d[e],rows:[{key:"high",label:V.high,color:P,value:null==u[e]?void 0:W(u[e].high)},{key:"low",label:V.low,color:P,value:null==u[e]?void 0:W(u[e].low)}]}),children:({x:l,y:t,active:r})=>"bar"===p?/* @__PURE__ */s("g",{children:u.map((e,i)=>/* @__PURE__ */s("rect",{x:l(i),y:t(e.high),width:Math.max(1,l.bandwidth),height:Math.max(1,t(e.low)-t(e.high)),rx:O,fill:P,fillOpacity:null===r||r===i?.85:.4},i))}):/* @__PURE__ */m("g",{children:[(()=>{const r=u.map((e,i)=>[l.center(i),t(e.high)]),a=u.map((e,i)=>[l.center(i),t(e.low)]);/* @__PURE__ */
3
+ return m(c,{children:[
4
+ /* @__PURE__ */s("path",{d:e(i(r,f),a),fill:P,fillOpacity:.2,stroke:"none"}),
5
+ /* @__PURE__ */s("path",{d:i(r,f),fill:"none",stroke:P,strokeWidth:2,strokeLinejoin:"round"}),
6
+ /* @__PURE__ */s("path",{d:i(a,f),fill:"none",stroke:P,strokeWidth:2,strokeLinejoin:"round",strokeOpacity:.7})]})})(),null!==r&&/* @__PURE__ */s("line",{x1:l.center(r),y1:t(u[r].high),x2:l.center(r),y2:t(u[r].low),stroke:a.axis,strokeWidth:1})]})})}export{u as RangeChart};
@@ -1,13 +1,13 @@
1
- import{arcPath as e}from"./chunk-VFC6QUEN.js";import{MOTION as t,stagger as l}from"./chunk-465RRWBY.js";import{useHighlight as a}from"./chunk-CNYAHYE6.js";import{ChartTooltip as r}from"./chunk-36VIGB6J.js";import{angleScale as n}from"./chunk-2JWPNR2U.js";import{usePlotWidth as o}from"./chunk-MAFUXCPZ.js";import{CHART_INK as s,resolveSeriesColor as i}from"./chunk-TZFACUMR.js";import{useShellStrings as h,useShellLocale as c}from"./chunk-VNTJ7QO5.js";import{formatPercent as m,formatPlain as u}from"./chunk-C3QOHMR6.js";import{useId as d,useState as f,useRef as y}from"react";import{jsx as p,jsxs as g}from"react/jsx-runtime";function x({segments:x,variant:v="pie",size:k=280,innerRadius:M,padAngle:b=.012,maxSegments:N=6,otherLabel:I,formatValue:$,centerLabel:j,animate:w=!0,labels:F="none",labelMinShare:P=.04,className:S,emptyLabel:A}){const C=h().charts,R=c(),T=$??(e=>u(e,R)),V=I??C.other,W=A??C.nothingToBreakDown,z=d(),[E,_]=f(null),{highlighted:B}=a(),L=y(null),O=o(L,Number.POSITIVE_INFINITY),U=x.map((e,t)=>({...e,slot:t})).filter(e=>e.value>0);if(0===U.length)/* @__PURE__ */return p("p",{className:`text-sm text-gray-500 ${S??""}`,children:W});const Y=[...U].sort((e,t)=>t.value-e.value),J=Y.slice(0,N),Q=Y.slice(N),H=Q.length>0?[...J,{key:"__other__",label:V,value:Q.reduce((e,t)=>e+t.value,0),slot:-1,color:s.muted}]:J,Z=e=>i(e.slot,e.color,e.tone),q=H.reduce((e,t)=>e+t.value,0),D=Math.ceil(.62*Math.max(...H.map(e=>String(e.label).length),4)*11)+24,G="outside"===F&&O>=120+2*D,X=G?D:0,K=G?Math.max(120,Math.min(k,O-2*X)):k,ee=K+2*X,te=X+K/2,le=K/2,ae=K/2-12,re=M??("ring"===v?.58*ae:0),ne=n(H.length,b),oe=Math.max(...H.map(e=>e.value)),se=e=>re+(ae-re)*Math.sqrt(Math.max(0,e)/oe);let ie=-Math.PI/2;const he=(()=>{if(!G)return[];let e=-Math.PI/2;const t=H.map((t,l)=>{const a="rose"===v?n(H.length,b).step:t.value/q*Math.PI*2,r="rose"===v?n(H.length,b).center(l):e+a/2;e+=a;const o="rose"===v?se(t.value):ae;return{key:t.key,label:t.label,share:t.value/q,right:Math.cos(r)>=0,anchor:[te+o*Math.cos(r),le+o*Math.sin(r)],y:le+(o+14)*Math.sin(r),index:l}}).filter(e=>e.share>=P),l=Math.max(1,Math.floor((K-11-13)/26)+1),a=/* @__PURE__ */new Set;for(const e of[!0,!1]){const r=t.filter(t=>t.right===e).sort((e,t)=>t.share-e.share).slice(0,l).sort((e,t)=>e.y-t.y);for(let e=1;e<r.length;e+=1)r[e].y-r[e-1].y<26&&(r[e].y=r[e-1].y+26);for(let e=r.length-1;e>=0;e-=1){const t=e===r.length-1?K-13:r[e+1].y-26;r[e].y=Math.min(r[e].y,t)}r.forEach((e,t)=>{e.y=Math.max(e.y,0===t?11:r[t-1].y+26),a.add(e.key)})}return t.filter(e=>a.has(e.key))})(),ce=(e,t)=>null!==E?E!==e:null!==B&&B!==t,me=null!==E?H[E]:void 0;/* @__PURE__ */
1
+ import{arcPath as e}from"./chunk-VFC6QUEN.js";import{MOTION as t,stagger as l}from"./chunk-465RRWBY.js";import{useHighlight as a}from"./chunk-CNYAHYE6.js";import{usePlotWidth as r}from"./chunk-MAFUXCPZ.js";import{angleScale as n}from"./chunk-2JWPNR2U.js";import{ChartTooltip as o}from"./chunk-WDQI3FV6.js";import{CHART_INK as s,resolveSeriesColor as i}from"./chunk-TZFACUMR.js";import{useShellStrings as h,useShellLocale as c}from"./chunk-5YP7MFPK.js";import{formatPercent as m,formatPlain as u}from"./chunk-C3QOHMR6.js";import{useId as d,useState as f,useRef as y}from"react";import{jsx as p,jsxs as g}from"react/jsx-runtime";function x({segments:x,variant:v="pie",size:k=280,innerRadius:M,padAngle:b=.012,maxSegments:N=6,otherLabel:I,formatValue:$,centerLabel:j,animate:F=!0,labels:P="none",labelMinShare:w=.04,className:S,emptyLabel:A}){const C=h().charts,W=c(),R=$??(e=>u(e,W)),z=I??C.other,E=A??C.nothingToBreakDown,T=d(),[V,Y]=f(null),{highlighted:_}=a(),L=y(null),U=r(L,Number.POSITIVE_INFINITY),B=x.map((e,t)=>({...e,slot:t})).filter(e=>e.value>0);if(0===B.length)/* @__PURE__ */return p("p",{className:`text-sm text-gray-500 ${S??""}`,children:E});const O=[...B].sort((e,t)=>t.value-e.value),Q=O.slice(0,N),D=O.slice(N),H=D.length>0?[...Q,{key:"__other__",label:z,value:D.reduce((e,t)=>e+t.value,0),slot:-1,color:s.muted}]:Q,Z=e=>i(e.slot,e.color,e.tone),q=H.reduce((e,t)=>e+t.value,0),J=Math.ceil(.62*Math.max(...H.map(e=>String(e.label).length),4)*11)+24,K="outside"===P&&U>=120+2*J,X=K?J:0,G=K?Math.max(120,Math.min(k,U-2*X)):k,ee=G+2*X,te=X+G/2,le=G/2,ae=G/2-12,re=M??("ring"===v?.58*ae:0),ne=n(H.length,b),oe=Math.max(...H.map(e=>e.value)),se=e=>re+(ae-re)*Math.sqrt(Math.max(0,e)/oe);let ie=-Math.PI/2;const he=(()=>{if(!K)return[];let e=-Math.PI/2;const t=H.map((t,l)=>{const a="rose"===v?n(H.length,b).step:t.value/q*Math.PI*2,r="rose"===v?n(H.length,b).center(l):e+a/2;e+=a;const o="rose"===v?se(t.value):ae;return{key:t.key,label:t.label,share:t.value/q,right:Math.cos(r)>=0,anchor:[te+o*Math.cos(r),le+o*Math.sin(r)],y:le+(o+14)*Math.sin(r),index:l}}).filter(e=>e.share>=w),l=Math.max(1,Math.floor((G-11-13)/26)+1),a=/* @__PURE__ */new Set;for(const e of[!0,!1]){const r=t.filter(t=>t.right===e).sort((e,t)=>t.share-e.share).slice(0,l).sort((e,t)=>e.y-t.y);for(let e=1;e<r.length;e+=1)r[e].y-r[e-1].y<26&&(r[e].y=r[e-1].y+26);for(let e=r.length-1;e>=0;e-=1){const t=e===r.length-1?G-13:r[e+1].y-26;r[e].y=Math.min(r[e].y,t)}r.forEach((e,t)=>{e.y=Math.max(e.y,0===t?11:r[t-1].y+26),a.add(e.key)})}return t.filter(e=>a.has(e.key))})(),ce=(e,t)=>null!==V?V!==e:null!==_&&_!==t,me=null!==V?H[V]:void 0;/* @__PURE__ */
2
2
  return g("div",{className:`relative ${S??""}`,ref:L,children:[
3
- /* @__PURE__ */g("svg",{width:"100%",height:K,viewBox:`0 0 ${ee} ${K}`,role:"img","aria-labelledby":z,onMouseLeave:()=>_(null),children:[
4
- /* @__PURE__ */p("title",{id:z,children:C.breakdown(T(q),H.length)}),H.map((a,r)=>{const n=Z(a),o="rose"===v?ne(r):ie,i="rose"===v?ne.step:a.value/q*Math.PI*2-b;"rose"!==v&&(ie+=a.value/q*Math.PI*2);const h=o+Math.max(.001,i),c="rose"===v?se(a.value):ae;/* @__PURE__ */
5
- return p("path",{d:e(te,le,re,c,o,h),fill:n,fillOpacity:ce(r,a.key)?.4:1,stroke:s.surface,strokeWidth:1,className:w?t.sweep:void 0,style:w?l(r,55):void 0,onMouseEnter:()=>_(r)},a.key)}),he.map(e=>{const t=e.right?ee-6:6,l=e.right?te+ae+14:te-ae-14;/* @__PURE__ */
3
+ /* @__PURE__ */g("svg",{width:"100%",height:G,viewBox:`0 0 ${ee} ${G}`,role:"img","aria-labelledby":T,onMouseLeave:()=>Y(null),children:[
4
+ /* @__PURE__ */p("title",{id:T,children:C.breakdown(R(q),H.length)}),H.map((a,r)=>{const n=Z(a),o="rose"===v?ne(r):ie,i="rose"===v?ne.step:a.value/q*Math.PI*2-b;"rose"!==v&&(ie+=a.value/q*Math.PI*2);const h=o+Math.max(.001,i),c="rose"===v?se(a.value):ae;/* @__PURE__ */
5
+ return p("path",{d:e(te,le,re,c,o,h),fill:n,fillOpacity:ce(r,a.key)?.4:1,stroke:s.surface,strokeWidth:1,className:F?t.sweep:void 0,style:F?l(r,55):void 0,onMouseEnter:()=>Y(r)},a.key)}),he.map(e=>{const t=e.right?ee-6:6,l=e.right?te+ae+14:te-ae-14;/* @__PURE__ */
6
6
  return g("g",{children:[
7
7
  /* @__PURE__ */p("polyline",{points:`${e.anchor[0].toFixed(1)},${e.anchor[1].toFixed(1)} ${l},${e.y.toFixed(1)} ${t},${e.y.toFixed(1)}`,fill:"none",stroke:s.grid,strokeWidth:1}),
8
8
  /* @__PURE__ */p("text",{x:t,y:e.y-2,fontSize:11,fill:s.label,textAnchor:e.right?"end":"start",children:e.label}),
9
- /* @__PURE__ */p("text",{x:t,y:e.y+10,fontSize:11,fontWeight:600,fill:s.label,textAnchor:e.right?"end":"start",style:{fontVariantNumeric:"tabular-nums"},children:m(100*e.share,1,R)})]},`lbl-${e.key}`)}),j&&re>0&&/* @__PURE__ */p("text",{x:te,y:le+5,textAnchor:"middle",fontSize:16,fontWeight:600,fill:s.label,children:j})]}),me&&null!==E&&/* @__PURE__ */p("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */p(r,{title:me.label,rows:[{key:"value",label:C.value,color:Z(me),value:T(me.value)},{key:"share",label:C.share,color:s.muted,value:m(me.value/q*100,1,R)}]})}),
9
+ /* @__PURE__ */p("text",{x:t,y:e.y+10,fontSize:11,fontWeight:600,fill:s.label,textAnchor:e.right?"end":"start",style:{fontVariantNumeric:"tabular-nums"},children:m(100*e.share,1,W)})]},`lbl-${e.key}`)}),j&&re>0&&/* @__PURE__ */p("text",{x:te,y:le+5,textAnchor:"middle",fontSize:16,fontWeight:600,fill:s.label,children:j})]}),me&&null!==V&&/* @__PURE__ */p("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */p(o,{title:me.label,rows:[{key:"value",label:C.value,color:Z(me),value:R(me.value)},{key:"share",label:C.share,color:s.muted,value:m(me.value/q*100,1,W)}]})}),
10
10
  /* @__PURE__ */p("ul",{className:"m-0 mt-3 grid gap-1 p-0",style:{gridTemplateColumns:"repeat(auto-fit,minmax(140px,1fr))"},children:H.map((e,t)=>/* @__PURE__ */g("li",{className:"flex list-none items-center gap-2 text-xs text-gray-600",children:[
11
11
  /* @__PURE__ */p("span",{className:"h-2.5 w-2.5 shrink-0 rounded-sm",style:{backgroundColor:Z(e)}}),
12
12
  /* @__PURE__ */p("span",{className:"flex-1 truncate",children:e.label}),
13
- /* @__PURE__ */p("span",{className:"tabular-nums text-gray-800",children:m(e.value/q*100,1,R)})]},e.key))})]})}export{x as PieChart};
13
+ /* @__PURE__ */p("span",{className:"tabular-nums text-gray-800",children:m(e.value/q*100,1,W)})]},e.key))})]})}export{x as PieChart};
@@ -0,0 +1,4 @@
1
+ import{Popover as e}from"./chunk-7JGR7WPD.js";import{IconButton_default as r}from"./chunk-VCMHBUKI.js";import{Icon as n}from"./chunk-7V32O5NF.js";import{Tooltip as t}from"./chunk-QQ2LDC6C.js";import{useShellStrings as a}from"./chunk-5YP7MFPK.js";import{useRef as i}from"react";import{jsx as l,jsxs as o,Fragment as s}from"react/jsx-runtime";var c={ArrowLeft:[0,-1],ArrowRight:[0,1],ArrowUp:[-1,0],ArrowDown:[1,0]};function u({value:u,onChange:m,options:d,label:h,emptyValue:p,columns:f=5,cell:v,header:g,onPreview:w,tooltips:b=!0,disabled:x=!1,className:N=""}){const k=a(),C=k.iconPicker,j=k.iconNames,y=e=>e.label??j[e.value]??e.value,A=i([]),D=Math.max(0,d.findIndex(e=>e.value===u)),M=d[D],P=M?.value===p,_=i(null);/* @__PURE__ */
2
+ return l(e,{className:N,disabled:x,triggerLabel:M?C.button(h,y(M)):h,"aria-label":h,initialFocus:_,panelClassName:"!p-2",trigger:/* @__PURE__ */o("span",{className:"inline-flex items-center gap-2",children:[/* @__PURE__ */l("span",P||!M?{className:"text-sm",children:M?y(M):""}:{"aria-hidden":"true",className:"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:M.icon}),
3
+ /* @__PURE__ */l(n,{name:"chevron-down",className:"h-4 w-4"})]}),children:({close:e})=>/* @__PURE__ */o(s,{children:["function"==typeof g?g({close:e}):g,
4
+ /* @__PURE__ */l("div",{role:"listbox","aria-label":h,className:"grid gap-1",style:{gridTemplateColumns:`repeat(${f}, ${v?.width??"2rem"})`},children:d.map((n,a)=>{const i=n.value===u,o=/* @__PURE__ */l(r,{ref:e=>{A.current[a]=e,a===D&&(_.current=e)},role:"option","aria-selected":i,"aria-label":y(n),pressed:i,tabIndex:a===D?0:-1,onKeyDown:e=>((e,r)=>{const n=c[r.key];if(!n)return;r.preventDefault();const t=Math.floor(e/f)+n[0],a=e%f+n[1];if(t<0||a<0||a>=f)return;const i=t*f+a;if(!(i>=d.length)){for(const[e,r]of A.current.entries())r?.setAttribute("tabindex",e===i?"0":"-1");A.current[i]?.focus()}})(a,e),onClick:()=>{m(n.value),e()},onMouseEnter:w?e=>w(n.value,e.currentTarget):void 0,style:v?{width:v.width,height:v.height}:void 0,children:/* @__PURE__ */l("span",{"aria-hidden":"true",className:v?"inline-flex":"inline-flex [&_svg]:h-4 [&_svg]:w-4",children:n.icon})},n.value);return b?/* @__PURE__ */l(t,{content:y(n),children:o},n.value):o})})]})})}export{u as IconPicker};
@@ -1,5 +1,5 @@
1
- import{Icon as e}from"./chunk-R64OZ6TC.js";import{Tooltip as t}from"./chunk-NJN5IKWO.js";import{useShellStrings as n}from"./chunk-VNTJ7QO5.js";import{useId as i}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";var l=['input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled]):not(.es-default-reset)",'[tabindex]:not([tabindex="-1"])'].join(", "),s=e=>l.split(", ").map(t=>`${e} ${t}`).join(", ");function o({label:o,onReset:d,changed:c=!0,view:u="desktop",detail:b,name:p,tip:m,defaultAction:h,disabled:f,className:k}){const j=n().settingView,N=i(),y=["es-default-reset"];if(c&&y.push("is-changed"),k&&y.push(k),!c&&h)return y.push("is-pressable"),/* @__PURE__ */a(t,{content:h.title,children:/* @__PURE__ */a("button",{type:"button",className:y.join(" "),"aria-label":h.title,disabled:f,onClick:h.onPress,children:h.icon})});if(!c)/* @__PURE__ */return a("span",{className:y.join(" "),"aria-hidden":"true"});const T="desktop"===u,x=p??(T?j.resetName(o):j.inheritName(o)),g=b?j.backTo(b):T?j.backToDefault:j.backToAuto,q=m??(b?j.tip(x,g):x);
1
+ import{Icon as e}from"./chunk-7V32O5NF.js";import{Tooltip as t}from"./chunk-QQ2LDC6C.js";import{useShellStrings as n}from"./chunk-5YP7MFPK.js";import{useId as i}from"react";import{jsx as a,jsxs as r}from"react/jsx-runtime";var l=['input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled]):not(.es-default-reset)",'[tabindex]:not([tabindex="-1"])'].join(", "),s=e=>l.split(", ").map(t=>`${e} ${t}`).join(", ");function o({label:o,onReset:d,changed:c=!0,view:u="desktop",detail:b,name:p,tip:m,defaultAction:h,disabled:f,className:k}){const j=n().settingView,y=i(),N=["es-default-reset"];if(c&&N.push("is-changed"),k&&N.push(k),!c&&h)return N.push("is-pressable"),/* @__PURE__ */a(t,{content:h.title,children:/* @__PURE__ */a("button",{type:"button",className:N.join(" "),"aria-label":h.title,disabled:f,onClick:h.onPress,children:h.icon})});if(!c)/* @__PURE__ */return a("span",{className:N.join(" "),"aria-hidden":"true"});const x="desktop"===u,g=p??(x?j.resetName(o):j.inheritName(o)),C=b?j.backTo(b):x?j.backToDefault:j.backToAuto,T=m??(b?j.tip(g,C):g);
2
2
  /* @__PURE__ */
3
- return r(t,{content:q,describe:!1,children:[
4
- /* @__PURE__ */a("button",{type:"button",className:y.join(" "),"aria-label":x,"aria-describedby":N,disabled:f,onClick:e=>{d(),function(e){const t=e.currentTarget,n=t.closest(".es-field");let i=n?.querySelector(s(".es-field-ctl"))??n?.querySelector(s(".es-field-head"))??null,a=n?null:t.parentElement;for(let e=0;!i&&a&&e<4;e+=1,a=a.parentElement)i=[...a.querySelectorAll(l)].find(e=>e!==t&&!e.closest('[aria-hidden="true"]'))??null;i?.focus()}(e)},children:/* @__PURE__ */a(e,{name:"revert",size:15,"aria-hidden":"true"})}),
5
- /* @__PURE__ */a("span",{id:N,hidden:!0,children:g})]})}export{o as SettingReset};
3
+ return r(t,{content:T,describe:!1,children:[
4
+ /* @__PURE__ */a("button",{type:"button",className:N.join(" "),"aria-label":g,"aria-describedby":y,disabled:f,onClick:e=>{d(),function(e){const t=e.currentTarget,n=t.closest(".es-field");let i=n?.querySelector(s(".es-field-ctl"))??n?.querySelector(s(".es-field-head"))??null,a=n?null:t.parentElement;for(let e=0;!i&&a&&e<4;e+=1,a=a.parentElement)i=[...a.querySelectorAll(l)].find(e=>e!==t&&!e.closest('[aria-hidden="true"]'))??null;i?.focus()}(e)},children:/* @__PURE__ */a(e,{name:"revert",size:15,"aria-hidden":"true"})}),
5
+ /* @__PURE__ */a("span",{id:y,hidden:!0,children:C})]})}export{o as SettingReset};
@@ -1,2 +1,2 @@
1
- import{toast_default as t}from"./chunk-MWKLLAJT.js";import{useShellPrefs as e}from"./chunk-KC3EX26K.js";import{useSyncExternalStore as n,useCallback as o,useMemo as a}from"react";var r=[{id:"bell",label:"Bell",description:"Soft bell with one harmonic"},{id:"chime",label:"Chime",description:"Two-note ascending chime"},{id:"bowl",label:"Singing Bowl",description:"Long-decay meditation tone"},{id:"wind-chimes",label:"Wind Chimes",description:"Four soft tones in succession"},{id:"off",label:"Off (silent)",description:"No sound — only desktop notification"}],i=[{id:"none",label:"None"},{id:"tick-fast",label:"Ticking Fast"},{id:"tick-slow",label:"Ticking Slow"},{id:"rain",label:"Rain"},{id:"fireplace",label:"Fireplace"},{id:"white",label:"White Noise"},{id:"pink",label:"Pink Noise"},{id:"brown",label:"Brown Noise"}],c=()=>`pomodoro-${/* @__PURE__ */(new Date).toISOString().slice(0,10)}`,l={focus:1500,short:300,long:900},s="bell",u=100,d=1,f="none",m=50,h={autoStartBreaks:!1,autoStartPomodoros:!1,longBreakInterval:4},g={running:!1,remaining:l.focus,mode:"focus",total:l.focus,streak:0,count:"undefined"!=typeof localStorage?(()=>{try{return parseInt(localStorage.getItem(c())||"0",10)||0}catch{return 0}})():0},p=null,k=/* @__PURE__ */new Set,w=t=>{g={...g,...t},k.forEach(t=>t())};function M(){return g}function S(t){return k.add(t),()=>{k.delete(t)}}function b(t){l=t,g.running||g.remaining!==g.total||w({remaining:t[g.mode],total:t[g.mode]})}function y(t){s=t}function v(t,e){u=Math.max(0,Math.min(100,Math.round(t))),d=Math.max(1,Math.min(5,Math.round(e)))}function T(t){h={autoStartBreaks:!!t.autoStartBreaks,autoStartPomodoros:!!t.autoStartPomodoros,longBreakInterval:Math.max(1,Math.min(20,Math.round(t.longBreakInterval||4)))}}function A(t,e){f=t,m=Math.max(0,Math.min(100,Math.round(e))),g.running&&"focus"===g.mode?(F(),R()):"none"!==t&&0!==m||F()}function I(){g.running||(w({running:!0}),p=setInterval(C,1e3),"focus"===g.mode&&R())}function x(){(g.running||null!==p)&&(null!==p&&(clearInterval(p),p=null),w({running:!1}),F())}function B(t){x(),w({mode:t,remaining:l[t],total:l[t]})}function C(){g.remaining<=1?function(){null!==p&&(clearInterval(p),p=null);F(),N(s,{volume:u,repeat:d});const e="focus"===g.mode?"Pomodoro complete — time for a break! 🍅":"Break's over — back to work!";if("undefined"!=typeof Notification&&"granted"===Notification.permission)try{new Notification(e)}catch{}try{t.info(e)}catch{}if("focus"===g.mode){const t=g.streak+1,e=g.count+1;(t=>{try{localStorage.setItem(c(),String(t))}catch{}})(e);const n=t%h.longBreakInterval===0?"long":"short";w({running:!1,streak:t,count:e,mode:n,remaining:l[n],total:l[n]}),h.autoStartBreaks&&setTimeout(()=>I(),50)}else w({running:!1,mode:"focus",remaining:l.focus,total:l.focus}),h.autoStartPomodoros&&setTimeout(()=>I(),50)}():w({remaining:g.remaining-1})}function N(t=s,e={}){if("off"===t)return;const n=Math.max(0,Math.min(100,e.volume??100))/100;if(0===n)return;const o=Math.max(1,Math.min(5,e.repeat??1));for(let e=0;e<o;e++)setTimeout(()=>P(t,n),2500*e)}function P(t,e){try{const n=window.AudioContext||window.webkitAudioContext;if(!n)return;const o=new n,a=(t,n,a,r=.22,i="sine")=>{const c=o.createOscillator(),l=o.createGain();c.connect(l),l.connect(o.destination),c.type=i,c.frequency.value=t;const s=o.currentTime+n;l.gain.setValueAtTime(0,s),l.gain.linearRampToValueAtTime(r*e,s+.03),l.gain.exponentialRampToValueAtTime(1e-4,s+a),c.start(s),c.stop(s+a)};let r=2;"bell"===t?(a(880,0,1.8),a(1320,0,1.4,.1),r=2):"chime"===t?(a(659.25,0,.7),a(880,.2,1.3),r=2):"bowl"===t?(a(440,0,3.4,.22),a(660,0,3,.08),a(880,.05,2.8,.05),r=4):"wind-chimes"===t&&(a(1175,0,1.1,.16),a(880,.15,1.3,.16),a(1318,.3,1.5,.16),a(1047,.5,1.7,.13),r=3),setTimeout(()=>{try{o.close()}catch{}},1e3*r+500)}catch{}}var D=null,_={none:0,white:.3,pink:.3,brown:.3,"tick-fast":.6,"tick-slow":.6,rain:.4,fireplace:.5};function O(t,e){if("none"===e)return null;const n=t.sampleRate,o="white"===e||"pink"===e||"brown"===e?2:4,a=n*o,r=t.createBuffer(1,a,n),i=r.getChannelData(0);if("white"===e)for(let t=0;t<a;t++)i[t]=.5*(2*Math.random()-1);else if("pink"===e){let t=0,e=0,n=0,o=0,r=0,c=0,l=0;for(let s=0;s<a;s++){const a=2*Math.random()-1;t=.99886*t+.0555179*a,e=.99332*e+.0750759*a,n=.969*n+.153852*a,o=.8665*o+.3104856*a,r=.55*r+.5329522*a,c=-.7616*c-.016898*a,i[s]=.11*(t+e+n+o+r+c+l+.5362*a)*.55,l=.115926*a}}else if("brown"===e){let t=0;for(let e=0;e<a;e++){t=(t+.02*(2*Math.random()-1))/1.02,i[e]=3.5*t*.5}}else if("tick-fast"===e||"tick-slow"===e){const t="tick-fast"===e?.5:1,r=Math.floor(.045*n);for(let e=0;e<o;e+=t){const t=Math.floor(e*n);for(let e=0;e<r&&t+e<a;e++){const o=Math.exp(-e/n*180),a=2*Math.random()-1,r=Math.sin(2*Math.PI*1100*(e/n));i[t+e]+=(.7*a+.25*r)*o*.55}}}else if("rain"===e){let t=0;for(let e=0;e<a;e++){const o=2*Math.random()-1,a=o-.93*t;t=o;const r=.7+.3*Math.sin(e/n*2*Math.PI*.25);i[e]=a*r*.4}}else if("fireplace"===e){let t=0;for(let e=0;e<a;e++){t=(t+.02*(2*Math.random()-1))/1.02,i[e]=1.6*t}let e=.4*Math.random()*n;for(;e<a;){const t=Math.floor((.012+.05*Math.random())*n),o=.35+.45*Math.random(),r=Math.floor(e);for(let e=0;e<t&&r+e<a;e++){const t=Math.exp(-e/n*90);i[r+e]+=(2*Math.random()-1)*t*o}e+=(.08+.62*Math.random())*n}}return r}function R(){if(!D&&"none"!==f&&0!==m)try{const t=window.AudioContext||window.webkitAudioContext;if(!t)return;const e=new t,n=O(e,f);if(!n){try{e.close()}catch{}return}const o=e.createBufferSource();o.buffer=n,o.loop=!0;const a=e.createGain();a.gain.value=m/100*_[f],o.connect(a).connect(e.destination),o.start(),D={ctx:e,src:o,gain:a}}catch{}}function F(){if(D){try{D.src.stop()}catch{}try{D.ctx.close()}catch{}D=null}}function G(t,e){if("none"!==t&&0!==e)try{const n=window.AudioContext||window.webkitAudioContext;if(!n)return;const o=new n,a=O(o,t);if(!a){try{o.close()}catch{}return}const r=o.createBufferSource();r.buffer=a,r.loop=!0;const i=o.createGain();i.gain.value=e/100*_[t],r.connect(i).connect(o.destination),r.start(),setTimeout(()=>{try{r.stop()}catch{}try{o.close()}catch{}},3e3)}catch{}}var K="pomodoro_tasks",L="pomodoro_tasks_migrated";function V(){return Math.random().toString(36).slice(2,11)}function W(){/* @__PURE__ */
2
- return(new Date).toISOString()}var j=null,E=[],J=!1,q=null,X=/* @__PURE__ */new Set;function $(){for(const t of X)t()}function z(t){E=t,$()}function H(){const t=j;return t?q=t.list().then(e=>{j===t&&(E=e,J=!0,$())}).catch(()=>{j===t&&(J=!0,$())}).finally(()=>{q=null}):(E=[],J=!0,$(),Promise.resolve())}function Q(t){j=t,E=[],J=!1,t?H():$()}function U(t){return X.add(t),!j||J||q||H(),()=>{X.delete(t)}}function Y(){return E}function Z(){const t=function(){const{prefs:t,save:n}=e(),r=a(()=>{const e=t.todo_tasks;return Array.isArray(e)?e:[]},[t.todo_tasks]),i=o(t=>{n({todo_tasks:t})},[n]),c=o(t=>{const e=V(),n=W(),o={done:!1,...t,name:t.name.trim(),id:e,createdAt:n,updatedAt:n};return i([...r,o]),e},[r,i]),l=o((t,e)=>{i(r.map(n=>n.id===t?{...n,...e,id:n.id,updatedAt:W()}:n))},[r,i]),s=o(t=>{i(r.filter(e=>e.id!==t))},[r,i]),u=o(t=>{const e=r.find(e=>e.id===t);e&&l(t,{done:!e.done})},[r,l]);return{tasks:r,addTask:c,updateTask:l,removeTask:s,toggleDone:u,setAllTasks:i}}(),r=n(U,Y,Y),i=o(e=>{const n=j;if(!n)return t.addTask(e);const o="tmp-"+V(),a=W(),r={done:!1,...e,name:e.name.trim(),id:o,createdAt:a,updatedAt:a};return z([...E,r]),n.create({...e,name:e.name.trim()}).then(t=>z(E.map(e=>e.id===o?{...r,...t}:e))).catch(()=>z(E.filter(t=>t.id!==o))),o},[t]),c=o((e,n)=>{const o=j;if(!o)return t.updateTask(e,n);z(E.map(t=>t.id===e?{...t,...n,id:e,updatedAt:W()}:t)),o.update(e,n).catch(()=>{H()})},[t]),l=o(e=>{const n=j;if(!n)return t.removeTask(e);const o=E;z(E.filter(t=>t.id!==e)),n.remove(e).catch(()=>z(o))},[t]),s=o(e=>{if(!j)return t.toggleDone(e);const n=E.find(t=>t.id===e);n&&c(e,{done:!n.done})},[t,c]),u=o(e=>{j||t.setAllTasks(e)},[t]);return null===j?t:{tasks:r,addTask:i,updateTask:c,removeTask:l,toggleDone:s,setAllTasks:u}}function tt(t,e){try{if(localStorage.getItem(L))return;const n=localStorage.getItem(K);if(!n)return void localStorage.setItem(L,"1");const o=JSON.parse(n);if(!Array.isArray(o)||0===o.length)return localStorage.removeItem(K),void localStorage.setItem(L,"1");const a=W(),r=o.filter(t=>"string"==typeof t?.name).map(t=>({id:t.id||V(),name:String(t.name),done:!!t.done,estimated:"number"==typeof t.estimated?t.estimated:void 0,completed:"number"==typeof t.completed?t.completed:void 0,createdAt:a,updatedAt:a})),i=new Set(t.map(t=>t.id));e([...r.filter(t=>!i.has(t.id)),...t]),localStorage.removeItem(K),localStorage.setItem(L,"1")}catch{try{localStorage.setItem(L,"1")}catch{}}}export{r as ALARM_OPTIONS,i as FOCUS_SOUND_OPTIONS,M as getPomoSnapshot,tt as migratePomodoroTasksOnce,N as playAlarm,x as pomoPause,I as pomoStart,B as pomoSwitchMode,G as previewFocusSound,y as setPomoAlarm,v as setPomoAlarmConfig,T as setPomoBehaviour,b as setPomoDurations,A as setPomoFocusSound,Q as setShellTodoProvider,S as subscribePomo,Z as useTodoTasks};
1
+ import{toast_default as t}from"./chunk-KVVZLEUG.js";import{useShellPrefs as e}from"./chunk-KC3EX26K.js";import{useSyncExternalStore as n,useCallback as o,useMemo as a}from"react";var r=[{id:"bell",label:"Bell",description:"Soft bell with one harmonic"},{id:"chime",label:"Chime",description:"Two-note ascending chime"},{id:"bowl",label:"Singing Bowl",description:"Long-decay meditation tone"},{id:"wind-chimes",label:"Wind Chimes",description:"Four soft tones in succession"},{id:"off",label:"Off (silent)",description:"No sound — only desktop notification"}],i=[{id:"none",label:"None"},{id:"tick-fast",label:"Ticking Fast"},{id:"tick-slow",label:"Ticking Slow"},{id:"rain",label:"Rain"},{id:"fireplace",label:"Fireplace"},{id:"white",label:"White Noise"},{id:"pink",label:"Pink Noise"},{id:"brown",label:"Brown Noise"}],c=()=>`pomodoro-${/* @__PURE__ */(new Date).toISOString().slice(0,10)}`,l={focus:1500,short:300,long:900},s="bell",u=100,d=1,f="none",m=50,h={autoStartBreaks:!1,autoStartPomodoros:!1,longBreakInterval:4},g={running:!1,remaining:l.focus,mode:"focus",total:l.focus,streak:0,count:"undefined"!=typeof localStorage?(()=>{try{return parseInt(localStorage.getItem(c())||"0",10)||0}catch{return 0}})():0},p=null,k=/* @__PURE__ */new Set,w=t=>{g={...g,...t},k.forEach(t=>t())};function M(){return g}function S(t){return k.add(t),()=>{k.delete(t)}}function b(t){l=t,g.running||g.remaining!==g.total||w({remaining:t[g.mode],total:t[g.mode]})}function y(t){s=t}function v(t,e){u=Math.max(0,Math.min(100,Math.round(t))),d=Math.max(1,Math.min(5,Math.round(e)))}function T(t){h={autoStartBreaks:!!t.autoStartBreaks,autoStartPomodoros:!!t.autoStartPomodoros,longBreakInterval:Math.max(1,Math.min(20,Math.round(t.longBreakInterval||4)))}}function A(t,e){f=t,m=Math.max(0,Math.min(100,Math.round(e))),g.running&&"focus"===g.mode?(G(),V()):"none"!==t&&0!==m||G()}function I(){g.running||(w({running:!0}),p=setInterval(C,1e3),"focus"===g.mode&&V())}function x(){(g.running||null!==p)&&(null!==p&&(clearInterval(p),p=null),w({running:!1}),G())}function B(t){x(),w({mode:t,remaining:l[t],total:l[t]})}function C(){g.remaining<=1?function(){null!==p&&(clearInterval(p),p=null);G(),N(s,{volume:u,repeat:d});const e="focus"===g.mode?"Pomodoro complete — time for a break! 🍅":"Break's over — back to work!";if("undefined"!=typeof Notification&&"granted"===Notification.permission)try{new Notification(e)}catch{}try{t.info(e)}catch{}if("focus"===g.mode){const t=g.streak+1,e=g.count+1;(t=>{try{localStorage.setItem(c(),String(t))}catch{}})(e);const n=t%h.longBreakInterval===0?"long":"short";w({running:!1,streak:t,count:e,mode:n,remaining:l[n],total:l[n]}),h.autoStartBreaks&&setTimeout(()=>I(),50)}else w({running:!1,mode:"focus",remaining:l.focus,total:l.focus}),h.autoStartPomodoros&&setTimeout(()=>I(),50)}():w({remaining:g.remaining-1})}function N(t=s,e={}){if("off"===t)return;const n=Math.max(0,Math.min(100,e.volume??100))/100;if(0===n)return;const o=Math.max(1,Math.min(5,e.repeat??1));for(let e=0;e<o;e++)setTimeout(()=>P(t,n),2500*e)}function P(t,e){try{const n=window.AudioContext||window.webkitAudioContext;if(!n)return;const o=new n,a=(t,n,a,r=.22,i="sine")=>{const c=o.createOscillator(),l=o.createGain();c.connect(l),l.connect(o.destination),c.type=i,c.frequency.value=t;const s=o.currentTime+n;l.gain.setValueAtTime(0,s),l.gain.linearRampToValueAtTime(r*e,s+.03),l.gain.exponentialRampToValueAtTime(1e-4,s+a),c.start(s),c.stop(s+a)};let r=2;"bell"===t?(a(880,0,1.8),a(1320,0,1.4,.1),r=2):"chime"===t?(a(659.25,0,.7),a(880,.2,1.3),r=2):"bowl"===t?(a(440,0,3.4,.22),a(660,0,3,.08),a(880,.05,2.8,.05),r=4):"wind-chimes"===t&&(a(1175,0,1.1,.16),a(880,.15,1.3,.16),a(1318,.3,1.5,.16),a(1047,.5,1.7,.13),r=3),setTimeout(()=>{try{o.close()}catch{}},1e3*r+500)}catch{}}var D=null,_={none:0,white:.3,pink:.3,brown:.3,"tick-fast":.6,"tick-slow":.6,rain:.4,fireplace:.5};function O(t,e){if("none"===e)return null;const n=t.sampleRate,o="white"===e||"pink"===e||"brown"===e?2:4,a=n*o,r=t.createBuffer(1,a,n),i=r.getChannelData(0);if("white"===e)for(let t=0;t<a;t++)i[t]=.5*(2*Math.random()-1);else if("pink"===e){let t=0,e=0,n=0,o=0,r=0,c=0,l=0;for(let s=0;s<a;s++){const a=2*Math.random()-1;t=.99886*t+.0555179*a,e=.99332*e+.0750759*a,n=.969*n+.153852*a,o=.8665*o+.3104856*a,r=.55*r+.5329522*a,c=-.7616*c-.016898*a,i[s]=.11*(t+e+n+o+r+c+l+.5362*a)*.55,l=.115926*a}}else if("brown"===e){let t=0;for(let e=0;e<a;e++){t=(t+.02*(2*Math.random()-1))/1.02,i[e]=3.5*t*.5}}else if("tick-fast"===e||"tick-slow"===e){const t="tick-fast"===e?.5:1,r=Math.floor(.045*n);for(let e=0;e<o;e+=t){const t=Math.floor(e*n);for(let e=0;e<r&&t+e<a;e++){const o=Math.exp(-e/n*180),a=2*Math.random()-1,r=Math.sin(2*Math.PI*1100*(e/n));i[t+e]+=(.7*a+.25*r)*o*.55}}}else if("rain"===e){let t=0;for(let e=0;e<a;e++){const o=2*Math.random()-1,a=o-.93*t;t=o;const r=.7+.3*Math.sin(e/n*2*Math.PI*.25);i[e]=a*r*.4}}else if("fireplace"===e){let t=0;for(let e=0;e<a;e++){t=(t+.02*(2*Math.random()-1))/1.02,i[e]=1.6*t}let e=.4*Math.random()*n;for(;e<a;){const t=Math.floor((.012+.05*Math.random())*n),o=.35+.45*Math.random(),r=Math.floor(e);for(let e=0;e<t&&r+e<a;e++){const t=Math.exp(-e/n*90);i[r+e]+=(2*Math.random()-1)*t*o}e+=(.08+.62*Math.random())*n}}return r}function V(){if(!D&&"none"!==f&&0!==m)try{const t=window.AudioContext||window.webkitAudioContext;if(!t)return;const e=new t,n=O(e,f);if(!n){try{e.close()}catch{}return}const o=e.createBufferSource();o.buffer=n,o.loop=!0;const a=e.createGain();a.gain.value=m/100*_[f],o.connect(a).connect(e.destination),o.start(),D={ctx:e,src:o,gain:a}}catch{}}function G(){if(D){try{D.src.stop()}catch{}try{D.ctx.close()}catch{}D=null}}function R(t,e){if("none"!==t&&0!==e)try{const n=window.AudioContext||window.webkitAudioContext;if(!n)return;const o=new n,a=O(o,t);if(!a){try{o.close()}catch{}return}const r=o.createBufferSource();r.buffer=a,r.loop=!0;const i=o.createGain();i.gain.value=e/100*_[t],r.connect(i).connect(o.destination),r.start(),setTimeout(()=>{try{r.stop()}catch{}try{o.close()}catch{}},3e3)}catch{}}var E="pomodoro_tasks",F="pomodoro_tasks_migrated";function K(){return Math.random().toString(36).slice(2,11)}function j(){/* @__PURE__ */
2
+ return(new Date).toISOString()}var L=null,W=[],q=!1,J=null,U=/* @__PURE__ */new Set;function X(){for(const t of U)t()}function Z(t){W=t,X()}function $(){const t=L;return t?J=t.list().then(e=>{L===t&&(W=e,q=!0,X())}).catch(()=>{L===t&&(q=!0,X())}).finally(()=>{J=null}):(W=[],q=!0,X(),Promise.resolve())}function z(t){L=t,W=[],q=!1,t?$():X()}function H(t){return U.add(t),!L||q||J||$(),()=>{U.delete(t)}}function Q(){return W}function Y(){const t=function(){const{prefs:t,save:n}=e(),r=a(()=>{const e=t.todo_tasks;return Array.isArray(e)?e:[]},[t.todo_tasks]),i=o(t=>{n({todo_tasks:t})},[n]),c=o(t=>{const e=K(),n=j(),o={done:!1,...t,name:t.name.trim(),id:e,createdAt:n,updatedAt:n};return i([...r,o]),e},[r,i]),l=o((t,e)=>{i(r.map(n=>n.id===t?{...n,...e,id:n.id,updatedAt:j()}:n))},[r,i]),s=o(t=>{i(r.filter(e=>e.id!==t))},[r,i]),u=o(t=>{const e=r.find(e=>e.id===t);e&&l(t,{done:!e.done})},[r,l]);return{tasks:r,addTask:c,updateTask:l,removeTask:s,toggleDone:u,setAllTasks:i}}(),r=n(H,Q,Q),i=o(e=>{const n=L;if(!n)return t.addTask(e);const o="tmp-"+K(),a=j(),r={done:!1,...e,name:e.name.trim(),id:o,createdAt:a,updatedAt:a};return Z([...W,r]),n.create({...e,name:e.name.trim()}).then(t=>Z(W.map(e=>e.id===o?{...r,...t}:e))).catch(()=>Z(W.filter(t=>t.id!==o))),o},[t]),c=o((e,n)=>{const o=L;if(!o)return t.updateTask(e,n);Z(W.map(t=>t.id===e?{...t,...n,id:e,updatedAt:j()}:t)),o.update(e,n).catch(()=>{$()})},[t]),l=o(e=>{const n=L;if(!n)return t.removeTask(e);const o=W;Z(W.filter(t=>t.id!==e)),n.remove(e).catch(()=>Z(o))},[t]),s=o(e=>{if(!L)return t.toggleDone(e);const n=W.find(t=>t.id===e);n&&c(e,{done:!n.done})},[t,c]),u=o(e=>{L||t.setAllTasks(e)},[t]);return null===L?t:{tasks:r,addTask:i,updateTask:c,removeTask:l,toggleDone:s,setAllTasks:u}}function tt(t,e){try{if(localStorage.getItem(F))return;const n=localStorage.getItem(E);if(!n)return void localStorage.setItem(F,"1");const o=JSON.parse(n);if(!Array.isArray(o)||0===o.length)return localStorage.removeItem(E),void localStorage.setItem(F,"1");const a=j(),r=o.filter(t=>"string"==typeof t?.name).map(t=>({id:t.id||K(),name:String(t.name),done:!!t.done,estimated:"number"==typeof t.estimated?t.estimated:void 0,completed:"number"==typeof t.completed?t.completed:void 0,createdAt:a,updatedAt:a})),i=new Set(t.map(t=>t.id));e([...r.filter(t=>!i.has(t.id)),...t]),localStorage.removeItem(E),localStorage.setItem(F,"1")}catch{try{localStorage.setItem(F,"1")}catch{}}}export{r as ALARM_OPTIONS,i as FOCUS_SOUND_OPTIONS,M as getPomoSnapshot,tt as migratePomodoroTasksOnce,N as playAlarm,x as pomoPause,I as pomoStart,B as pomoSwitchMode,R as previewFocusSound,y as setPomoAlarm,v as setPomoAlarmConfig,T as setPomoBehaviour,b as setPomoDurations,A as setPomoFocusSound,z as setShellTodoProvider,S as subscribePomo,Y as useTodoTasks};
@@ -1,4 +1,4 @@
1
- import{Tooltip as r}from"./chunk-NJN5IKWO.js";import{useShellStrings as e}from"./chunk-VNTJ7QO5.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";var i="Alt+ArrowUp Alt+ArrowDown";function c(r){return!r.altKey||r.ctrlKey||r.metaKey?null:"ArrowUp"===r.key?"up":"ArrowDown"===r.key?"down":null}var a=/* @__PURE__ */n("svg",{"aria-hidden":"true",viewBox:"0 0 4 14",fill:"currentColor",className:"h-3.5 w-1",children:[
1
+ import{Tooltip as r}from"./chunk-QQ2LDC6C.js";import{useShellStrings as e}from"./chunk-5YP7MFPK.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";var i="Alt+ArrowUp Alt+ArrowDown";function c(r){return!r.altKey||r.ctrlKey||r.metaKey?null:"ArrowUp"===r.key?"up":"ArrowDown"===r.key?"down":null}var a=/* @__PURE__ */n("svg",{"aria-hidden":"true",viewBox:"0 0 4 14",fill:"currentColor",className:"h-3.5 w-1",children:[
2
2
  /* @__PURE__ */t("circle",{cx:"2",cy:"3",r:"1.1"}),
3
3
  /* @__PURE__ */t("circle",{cx:"2",cy:"7",r:"1.1"}),
4
4
  /* @__PURE__ */t("circle",{cx:"2",cy:"11",r:"1.1"})]});function l({hint:n,dragging:i,revealClassName:c,marker:l}){const o=e().tree;/* @__PURE__ */
@@ -1,2 +1,2 @@
1
- import{InputNumber_default as a}from"./chunk-GV5VNWPG.js";import{Icon as e}from"./chunk-R64OZ6TC.js";import{jsxs as r,jsx as i}from"react/jsx-runtime";var n="h-3.5 w-3.5",l={x:/* @__PURE__ */i(e,{name:"nudge-x","aria-hidden":"true",className:n}),y:/* @__PURE__ */i(e,{name:"nudge-y","aria-hidden":"true",className:n})};function s({label:e,value:n,onChange:s,words:m,placeholder:o,min:d=-200,max:c=200,step:t=1,readOnly:p}){const u=e=>/* @__PURE__ */i("div",{"data-axis":e,className:"min-w-0",children:/* @__PURE__ */i(a,{value:n[e],onChange:a=>s({...n,[e]:a}),min:d,max:c,step:t,precision:0,steppers:"compact",readOnly:p,placeholder:o[e],prefix:l[e],suffix:m.unit,"aria-label":m[e]})});/* @__PURE__ */
1
+ import{InputNumber_default as a}from"./chunk-R72ZKZDP.js";import{Icon as e}from"./chunk-7V32O5NF.js";import{jsxs as r,jsx as i}from"react/jsx-runtime";var n="h-3.5 w-3.5",l={x:/* @__PURE__ */i(e,{name:"nudge-x","aria-hidden":"true",className:n}),y:/* @__PURE__ */i(e,{name:"nudge-y","aria-hidden":"true",className:n})};function s({label:e,value:n,onChange:s,words:m,placeholder:o,min:d=-200,max:c=200,step:t=1,readOnly:p}){const u=e=>/* @__PURE__ */i("div",{"data-axis":e,className:"min-w-0",children:/* @__PURE__ */i(a,{value:n[e],onChange:a=>s({...n,[e]:a}),min:d,max:c,step:t,precision:0,steppers:"compact",readOnly:p,placeholder:o[e],prefix:l[e],suffix:m.unit,"aria-label":m[e]})});/* @__PURE__ */
2
2
  return r("div",{role:"group","aria-label":e,className:"grid min-w-0 grid-cols-2 gap-2",children:[u("x"),u("y")]})}export{s as PositionInput};
@@ -1 +1 @@
1
- import{useInsideTooltip as e,Tooltip as n}from"./chunk-NJN5IKWO.js";import{useRef as r,useState as t}from"react";import{jsx as c}from"react/jsx-runtime";var i="whitespace-nowrap";function l({children:i}){const l=e(),o=r(null),[a,s]=t(!1),m=/* @__PURE__ */c("span",{ref:o,className:"min-w-0 truncate",onMouseEnter:()=>{const e=o.current;s(!!e&&e.scrollWidth>e.clientWidth+1)},children:i});return l?m:/* @__PURE__ */c(n,{content:a?i:null,describe:!1,className:"relative inline-flex min-w-0 max-w-full",children:m})}export{l as OneLineLabel,i as TH_ONE_LINE};
1
+ import{useInsideTooltip as e,Tooltip as n}from"./chunk-QQ2LDC6C.js";import{useRef as r,useState as t}from"react";import{jsx as c}from"react/jsx-runtime";var i="whitespace-nowrap";function l({children:i}){const l=e(),o=r(null),[a,s]=t(!1),m=/* @__PURE__ */c("span",{ref:o,className:"min-w-0 truncate",onMouseEnter:()=>{const e=o.current;s(!!e&&e.scrollWidth>e.clientWidth+1)},children:i});return l?m:/* @__PURE__ */c(n,{content:a?i:null,describe:!1,className:"relative inline-flex min-w-0 max-w-full",children:m})}export{l as OneLineLabel,i as TH_ONE_LINE};