efficient-shell 12.12.0 → 12.14.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 (364) hide show
  1. package/README.md +5 -1
  2. package/dist/{Browser-KPVR5Z6J.js → Browser-V35ERC75.js} +14 -14
  3. package/dist/{Calculator-RP4UPGG7.js → Calculator-FY7CWH3U.js} +22 -22
  4. package/dist/{CurrencyConverter-HZWRB62S.js → CurrencyConverter-X2ZMKSB6.js} +9 -9
  5. package/dist/{Files-4DVFS74H.js → Files-5QCSSGZO.js} +81 -81
  6. package/dist/{Notepad-ZQF2NRZZ.js → Notepad-2AXGNMRM.js} +10 -10
  7. package/dist/PdfViewer-F2TCC5UD.js +1 -0
  8. package/dist/PomodoroTimer-LQM4OSNO.js +91 -0
  9. package/dist/{Preview-DBXNCPGO.js → Preview-NI7HTAAW.js} +36 -36
  10. package/dist/Sidebar-ADAIERCI.js +44 -0
  11. package/dist/{Stock-WK45DFIC.js → Stock-ENUIGK4M.js} +3 -3
  12. package/dist/{Weather-BVKZQI4R.js → Weather-QRQVA3LE.js} +21 -21
  13. package/dist/{WorldClock-L3BQXXQX.js → WorldClock-QJOV3TND.js} +6 -6
  14. package/dist/ai/index.d.ts +1 -1
  15. package/dist/ai/index.js +79 -79
  16. package/dist/apps/ImageAnnotator.js +1 -1
  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/ChordChart.js +1 -1
  28. package/dist/charts/ColumnChart.js +1 -1
  29. package/dist/charts/FunnelChart.js +1 -1
  30. package/dist/charts/HeatmapChart.js +1 -1
  31. package/dist/charts/HistogramChart.js +1 -1
  32. package/dist/charts/Meter.js +1 -1
  33. package/dist/charts/PieChart.js +1 -1
  34. package/dist/charts/RadarChart.js +1 -1
  35. package/dist/charts/RadialBarChart.js +1 -1
  36. package/dist/charts/RangeChart.js +1 -1
  37. package/dist/charts/RankedBars.js +1 -1
  38. package/dist/charts/SankeyChart.js +1 -1
  39. package/dist/charts/ScatterChart.js +1 -1
  40. package/dist/charts/SpecChart.js +1 -1
  41. package/dist/charts/StatTile.js +1 -1
  42. package/dist/charts/SunburstChart.js +1 -1
  43. package/dist/charts/TimeSeriesChart.js +1 -1
  44. package/dist/charts/TreemapChart.js +1 -1
  45. package/dist/charts/WaterfallChart.js +1 -1
  46. package/dist/{chunk-YX4MRM7A.js → chunk-232YPI2L.js} +6 -6
  47. package/dist/{chunk-6ET6JVNL.js → chunk-24JKQX2N.js} +4 -4
  48. package/dist/{chunk-5EKNXSQG.js → chunk-24LO6OH4.js} +1 -1
  49. package/dist/{chunk-EDANELWX.js → chunk-2DYVVHZA.js} +1 -1
  50. package/dist/{chunk-M4MN2GOE.js → chunk-2NZ7CVMW.js} +1 -1
  51. package/dist/{chunk-GCVIUXKL.js → chunk-2ZPNA7L7.js} +1 -1
  52. package/dist/{chunk-45HQXTA6.js → chunk-3A6FYWFQ.js} +1 -1
  53. package/dist/{chunk-ITGFHWYG.js → chunk-3HZS3BAZ.js} +12 -12
  54. package/dist/{chunk-27ZJQUDS.js → chunk-3N5OI6VM.js} +1 -1
  55. package/dist/{chunk-JTZVUO3I.js → chunk-3YBXA72C.js} +1 -1
  56. package/dist/chunk-42XSMAIK.js +2 -0
  57. package/dist/{chunk-2GS2VOQT.js → chunk-4BKJ6A5H.js} +9 -9
  58. package/dist/{chunk-Y23BITKG.js → chunk-4I4WZHMV.js} +1 -1
  59. package/dist/{chunk-JGJWPONL.js → chunk-4IHYWLWE.js} +5 -5
  60. package/dist/{chunk-KIRLSUQT.js → chunk-4LOHQ4QB.js} +5 -5
  61. package/dist/{chunk-YVAJ42M2.js → chunk-4Y33Y4OX.js} +6 -6
  62. package/dist/{chunk-654DGV5Q.js → chunk-56XKHWNL.js} +1 -1
  63. package/dist/chunk-574SLTKO.js +8 -0
  64. package/dist/{chunk-MFZPTS7W.js → chunk-5MH5N76F.js} +4 -4
  65. package/dist/{chunk-OTXJ6VWX.js → chunk-5VGIIMON.js} +1 -1
  66. package/dist/{chunk-5ZQY42QX.js → chunk-5WZ53AS5.js} +1 -1
  67. package/dist/{chunk-YFDS6KF3.js → chunk-6A26HUVK.js} +1 -1
  68. package/dist/chunk-6KITIRNZ.js +3 -0
  69. package/dist/{chunk-GB2XLSR5.js → chunk-74JMBOQH.js} +10 -10
  70. package/dist/{chunk-6YIVKPWQ.js → chunk-75H4BWNC.js} +1 -1
  71. package/dist/{chunk-AUCNJFTP.js → chunk-7K3FYCRZ.js} +9 -9
  72. package/dist/{chunk-4NLCXHWN.js → chunk-7X2P6IH3.js} +4 -4
  73. package/dist/{chunk-SEHKTBVM.js → chunk-7ZJRBFHA.js} +1 -1
  74. package/dist/chunk-A4PFVMQ2.js +7 -0
  75. package/dist/chunk-AADOAA5N.js +2 -0
  76. package/dist/{chunk-BFCIOWYI.js → chunk-AELSVMXH.js} +1 -1
  77. package/dist/{chunk-JZKACEXW.js → chunk-AQZUTW7N.js} +8 -8
  78. package/dist/chunk-ASM2VLQ2.js +2 -0
  79. package/dist/{chunk-ZV6WLVD3.js → chunk-B2KQ3T7Q.js} +6 -6
  80. package/dist/chunk-BHHFVIAD.js +2 -0
  81. package/dist/{chunk-EQ2KTDOU.js → chunk-BWYOTLJL.js} +3 -3
  82. package/dist/{chunk-GMJ5WOB2.js → chunk-CBVKGAZH.js} +1 -1
  83. package/dist/{chunk-BYDSBDVS.js → chunk-CEIIQRK5.js} +6 -6
  84. package/dist/{chunk-GMLDGXNQ.js → chunk-CJ3MI2NH.js} +1 -1
  85. package/dist/{chunk-FZWAOYAM.js → chunk-CMJD5URC.js} +9 -9
  86. package/dist/{chunk-EO6MOQOZ.js → chunk-DCNSQGHJ.js} +12 -12
  87. package/dist/chunk-DG2TGWXI.js +15 -0
  88. package/dist/{chunk-D4K72BHN.js → chunk-DGHSCKOE.js} +4 -4
  89. package/dist/{chunk-GBEDLYND.js → chunk-DJXXY23A.js} +2 -2
  90. package/dist/{chunk-UDYVA5DV.js → chunk-DJYZ2EF4.js} +10 -10
  91. package/dist/{chunk-Q64F2EXW.js → chunk-EDX55XGV.js} +6 -6
  92. package/dist/{chunk-QULE4LAC.js → chunk-EEAY7FJW.js} +17 -17
  93. package/dist/{chunk-CINGDJPM.js → chunk-EEB5XPWP.js} +1 -1
  94. package/dist/{chunk-ZLFZJX6M.js → chunk-EGCHJHRR.js} +8 -8
  95. package/dist/chunk-ENFXDIIZ.js +8 -0
  96. package/dist/{chunk-U35TIWEP.js → chunk-EZ6O5TQ3.js} +16 -16
  97. package/dist/{chunk-CB5FQMFB.js → chunk-FI6IJTAJ.js} +12 -12
  98. package/dist/{chunk-JVNJCRHM.js → chunk-FJVZ2W55.js} +1 -1
  99. package/dist/{chunk-EAXPSAHZ.js → chunk-FQHPGREQ.js} +9 -9
  100. package/dist/{chunk-NBUL37WB.js → chunk-FUTLZ6BC.js} +1 -1
  101. package/dist/chunk-FVKXDF2Q.js +12 -0
  102. package/dist/chunk-FYNPQAFI.js +1 -0
  103. package/dist/{chunk-QGFAQVUO.js → chunk-G3E4CD77.js} +6 -6
  104. package/dist/{chunk-AG6Y62TP.js → chunk-G6LSBF3P.js} +69 -69
  105. package/dist/{chunk-SFFELHLP.js → chunk-GC4N4UQM.js} +5 -5
  106. package/dist/{chunk-4UQNNA4K.js → chunk-GEVNBBM7.js} +1 -1
  107. package/dist/chunk-GOEHP2XM.js +4 -0
  108. package/dist/{chunk-G3VRO4CK.js → chunk-GUHCKMC7.js} +2 -2
  109. package/dist/{chunk-B7HTKDT3.js → chunk-H32UNWVU.js} +5 -5
  110. package/dist/chunk-HGOWQO63.js +1 -0
  111. package/dist/{chunk-NHIP2S4E.js → chunk-HJF4UZOA.js} +13 -13
  112. package/dist/chunk-I2DIQQOR.js +2 -0
  113. package/dist/{chunk-5T4WTFBC.js → chunk-I3TVRNUT.js} +1 -1
  114. package/dist/{chunk-5NCR64CE.js → chunk-IIC76MWQ.js} +1 -1
  115. package/dist/{chunk-6BNLDGST.js → chunk-ILIPEY3D.js} +1 -1
  116. package/dist/{chunk-FSZ3TNAR.js → chunk-JAVTQART.js} +1 -1
  117. package/dist/{chunk-HEX3EP5F.js → chunk-JFGJJNT2.js} +4 -4
  118. package/dist/chunk-JSHMIMAJ.js +1 -0
  119. package/dist/{chunk-SWB32OKH.js → chunk-JTGRLXZN.js} +1 -1
  120. package/dist/{chunk-NV7QRWQJ.js → chunk-JZBLOIL7.js} +1 -1
  121. package/dist/{chunk-O3YCIWHF.js → chunk-KAKJ7ENS.js} +2 -2
  122. package/dist/{chunk-YPZXE67U.js → chunk-KSMEWOCE.js} +1 -1
  123. package/dist/{chunk-LTN4AQYG.js → chunk-KX53AB74.js} +1 -1
  124. package/dist/chunk-L7MWAC2P.js +6 -0
  125. package/dist/{chunk-WJBP5SND.js → chunk-LIWBCIRZ.js} +4 -4
  126. package/dist/chunk-LIX6KTZJ.js +4 -0
  127. package/dist/{chunk-P3GBQBDC.js → chunk-LQVQX5B2.js} +1 -1
  128. package/dist/chunk-MLPXTFDS.js +1 -0
  129. package/dist/{chunk-WQV7VQ5Z.js → chunk-MRLXGLNZ.js} +1 -1
  130. package/dist/{chunk-KWTK6TGH.js → chunk-MWTCGJAI.js} +1 -1
  131. package/dist/{chunk-6JLXXX4H.js → chunk-N2445WHJ.js} +12 -12
  132. package/dist/{chunk-5POLDDQW.js → chunk-NBNYKV3D.js} +7 -7
  133. package/dist/{chunk-LY55C5UI.js → chunk-NKP5WCEA.js} +5 -5
  134. package/dist/{chunk-MEAJGM6F.js → chunk-NOGSS432.js} +1 -1
  135. package/dist/{chunk-V6FHZGCL.js → chunk-OM6VWUAZ.js} +1 -1
  136. package/dist/{chunk-EIXMUGVZ.js → chunk-OOWPLQD5.js} +2 -2
  137. package/dist/chunk-OP4VQWSH.js +2 -0
  138. package/dist/{chunk-NOEAEXIZ.js → chunk-OVD3ECM7.js} +1 -1
  139. package/dist/chunk-P6FGTDDX.js +2 -0
  140. package/dist/chunk-PCZSE6CC.js +5 -0
  141. package/dist/{chunk-UG5GKEU5.js → chunk-QADNVFV5.js} +1 -1
  142. package/dist/{chunk-BET6KEY2.js → chunk-QPYVCG74.js} +12 -12
  143. package/dist/chunk-QU23OGAX.js +27 -0
  144. package/dist/{chunk-L6LWO5NQ.js → chunk-R7QEGRKE.js} +1 -1
  145. package/dist/{chunk-ZR2UWJIR.js → chunk-RBS3AWE7.js} +1 -1
  146. package/dist/{chunk-WM2BBRT6.js → chunk-RF3ZFTAU.js} +1 -1
  147. package/dist/chunk-RMDVKQJE.js +3 -0
  148. package/dist/{chunk-42BVXJZN.js → chunk-RZ2DWX4N.js} +5 -5
  149. package/dist/{chunk-PDCCNHTP.js → chunk-SDL4VWFU.js} +1 -1
  150. package/dist/{chunk-VPZOSVDF.js → chunk-SE6IQZYW.js} +9 -9
  151. package/dist/chunk-SNLGA2PZ.js +1 -0
  152. package/dist/{chunk-ISU4FCEX.js → chunk-SR4W2SYQ.js} +4 -4
  153. package/dist/chunk-SXUSAHDF.js +2 -0
  154. package/dist/{chunk-TJCJLKJB.js → chunk-T3JSUBIF.js} +1 -1
  155. package/dist/{chunk-SY65V6K7.js → chunk-T7D73HT7.js} +9 -9
  156. package/dist/chunk-TU2L7NW3.js +7 -0
  157. package/dist/{chunk-VLCHHTX6.js → chunk-TYQ2JL4J.js} +1 -1
  158. package/dist/{chunk-QQ5XCRZM.js → chunk-UEEELXEN.js} +8 -8
  159. package/dist/{chunk-LMUB2EAD.js → chunk-UULBPDAH.js} +8 -8
  160. package/dist/chunk-UWLGKMH5.js +9 -0
  161. package/dist/{chunk-Z7RXWXR5.js → chunk-V4XR4MOS.js} +1 -1
  162. package/dist/{chunk-4MUE4CYB.js → chunk-VBLCYL4L.js} +1 -1
  163. package/dist/chunk-VDYF3WPJ.js +2 -0
  164. package/dist/{chunk-MAI2DN7N.js → chunk-VEQ45GAH.js} +1 -1
  165. package/dist/{chunk-HE24VQMU.js → chunk-VFHKD7TQ.js} +1 -1
  166. package/dist/{chunk-TCMAWDBL.js → chunk-VJXPT53M.js} +18 -18
  167. package/dist/{chunk-5S4YF5XA.js → chunk-VP2GI3UP.js} +7 -7
  168. package/dist/{chunk-44VAZ2EL.js → chunk-VYRVSTI6.js} +9 -9
  169. package/dist/{chunk-QQM36CYU.js → chunk-W2663E4S.js} +3 -3
  170. package/dist/{chunk-QMNDKNK2.js → chunk-WESNFWM4.js} +1 -1
  171. package/dist/{chunk-NGQZI7HP.js → chunk-WLUJQLXG.js} +1 -1
  172. package/dist/chunk-WNOXHJVT.js +9 -0
  173. package/dist/{chunk-EVEGK57J.js → chunk-WPG3ZHYT.js} +1 -1
  174. package/dist/{chunk-QCOXJXGZ.js → chunk-WQ4YKWN2.js} +1 -1
  175. package/dist/{chunk-YVIV7SKG.js → chunk-WXZZGHET.js} +1 -1
  176. package/dist/{chunk-BGBSEPPH.js → chunk-WYGUHCJ2.js} +8 -8
  177. package/dist/{chunk-BM5QI2L6.js → chunk-XG5ER6GJ.js} +6 -6
  178. package/dist/{chunk-ASOVTAIT.js → chunk-XHSMDUEW.js} +3 -3
  179. package/dist/{chunk-YMJOFWW6.js → chunk-XKJGJNY2.js} +3 -3
  180. package/dist/{chunk-6P7SIIG4.js → chunk-XKNKRKHH.js} +14 -14
  181. package/dist/chunk-XQWHKXLS.js +22 -0
  182. package/dist/{chunk-GOKJZKLV.js → chunk-XU3YOWEG.js} +1 -1
  183. package/dist/{chunk-SXHNZFUY.js → chunk-Y6E7IRK2.js} +1 -1
  184. package/dist/{chunk-5HOXR3L4.js → chunk-Y7KDCC6E.js} +1 -1
  185. package/dist/chunk-YHB6MJYD.js +28 -0
  186. package/dist/{chunk-AKTEMZOT.js → chunk-YO26RV3H.js} +1 -1
  187. package/dist/{chunk-SEMV4NCH.js → chunk-YU52WMSH.js} +1 -1
  188. package/dist/chunk-YX2OOGV7.js +4 -0
  189. package/dist/chunk-YYW4VNWL.js +1 -0
  190. package/dist/{chunk-RQKD5AAL.js → chunk-Z66QBDNU.js} +1 -1
  191. package/dist/{chunk-IARCNQD3.js → chunk-ZGWXSHVM.js} +1 -1
  192. package/dist/{chunk-AXFNOY2L.js → chunk-ZTRKM3B5.js} +7 -7
  193. package/dist/data/DataTable.js +1 -1
  194. package/dist/data/EntityList.js +1 -1
  195. package/dist/data/Kanban.js +1 -1
  196. package/dist/data/ListFooter.js +1 -1
  197. package/dist/data/ListLoadError.js +1 -1
  198. package/dist/data/Pagination.js +1 -1
  199. package/dist/data/ResizableTable.js +1 -1
  200. package/dist/file-intake/index.js +1 -1
  201. package/dist/forms/BorderInput.js +1 -1
  202. package/dist/forms/BrandAssetEditor.js +1 -1
  203. package/dist/forms/Calendar.js +1 -1
  204. package/dist/forms/ColorPicker.js +1 -1
  205. package/dist/forms/ComposerAttachments.js +1 -1
  206. package/dist/forms/CornersInput.js +1 -1
  207. package/dist/forms/DatePicker.js +1 -1
  208. package/dist/forms/DateRangePicker.js +1 -1
  209. package/dist/forms/DateTimePicker.js +1 -1
  210. package/dist/forms/DisplayChips.js +1 -1
  211. package/dist/forms/FilePicker.js +1 -1
  212. package/dist/forms/FormErrorSummary.js +1 -1
  213. package/dist/forms/IconPicker.js +1 -1
  214. package/dist/forms/ImageFocusPoint.js +1 -1
  215. package/dist/forms/InputNumber.d.ts +13 -1
  216. package/dist/forms/InputNumber.js +1 -1
  217. package/dist/forms/LinkPicker.js +1 -1
  218. package/dist/forms/MediaLibrary.js +1 -1
  219. package/dist/forms/MediaUploadField.js +1 -1
  220. package/dist/forms/MediaUploadGrid.js +1 -1
  221. package/dist/forms/MediaUsedInList.js +1 -1
  222. package/dist/forms/NumericKeypad.js +1 -1
  223. package/dist/forms/PositionInput.js +1 -1
  224. package/dist/forms/Select.d.ts +1 -1
  225. package/dist/forms/Select.js +1 -1
  226. package/dist/forms/SidesInput.js +1 -1
  227. package/dist/forms/Slider.js +1 -1
  228. package/dist/forms/Snippet.js +1 -1
  229. package/dist/forms/TagInput.js +1 -1
  230. package/dist/forms/TextToolbar.d.ts +1 -1
  231. package/dist/forms/TextToolbar.js +1 -1
  232. package/dist/forms/TimePicker.js +1 -1
  233. package/dist/forms/WidthsBar.js +1 -1
  234. package/dist/forms/mediaLibraryMenu.js +1 -1
  235. package/dist/forms/mediaMoveItems.js +1 -1
  236. package/dist/forms/textAlign.d.ts +1 -1
  237. package/dist/forms/textAlign.js +1 -1
  238. package/dist/forms/useFileIntake.js +1 -1
  239. package/dist/icons/efficient-glyphs.d.ts +1 -0
  240. package/dist/icons/efficient-glyphs.js +1 -1
  241. package/dist/icons/efficient-looks.d.ts +2 -0
  242. package/dist/icons/efficient-looks.js +1 -1
  243. package/dist/icons/efficient-meanings.d.ts +2 -1
  244. package/dist/icons/efficient-meanings.js +1 -1
  245. package/dist/icons/efficient.d.ts +1 -0
  246. package/dist/icons/efficient.js +1 -1
  247. package/dist/icons/glyphs/AccordionIcon.d.ts +8 -0
  248. package/dist/icons/glyphs/AccordionIcon.js +1 -0
  249. package/dist/icons/glyphs/TabsIcon.js +1 -1
  250. package/dist/icons/index.d.ts +2 -2
  251. package/dist/icons/index.js +1 -1
  252. package/dist/icons/looks/AccordionMiniIcon.d.ts +8 -0
  253. package/dist/icons/looks/AccordionMiniIcon.js +1 -0
  254. package/dist/icons/looks/AccordionSolidIcon.d.ts +8 -0
  255. package/dist/icons/looks/AccordionSolidIcon.js +1 -0
  256. package/dist/icons/looks/TabsMiniIcon.js +1 -1
  257. package/dist/icons/looks/TabsSolidIcon.js +1 -1
  258. package/dist/icons/looks/map.js +1 -1
  259. package/dist/icons/payment.js +1 -1
  260. package/dist/icons/sets.js +1 -1
  261. package/dist/index.d.ts +1 -1
  262. package/dist/index.js +665 -665
  263. package/dist/locales/zh-Hans.js +1 -1
  264. package/dist/map/index.js +2 -2
  265. package/dist/names-Cj_F68_V.d.ts +23 -0
  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/CountBadge.js +1 -1
  279. package/dist/shell/Dialog.js +1 -1
  280. package/dist/shell/Drawer.js +1 -1
  281. package/dist/shell/EditableGrid.js +1 -1
  282. package/dist/shell/EmptyState.js +1 -1
  283. package/dist/shell/GlobalSearch.js +1 -1
  284. package/dist/shell/HelpCenter.js +1 -1
  285. package/dist/shell/IconRail.js +1 -1
  286. package/dist/shell/ImageLightbox.js +1 -1
  287. package/dist/shell/ItemCount.js +1 -1
  288. package/dist/shell/LanguageSelect.js +1 -1
  289. package/dist/shell/Markdown.d.ts +1 -1
  290. package/dist/shell/Markdown.js +1 -1
  291. package/dist/shell/MetricBar.js +1 -1
  292. package/dist/shell/MetricBarLegend.js +1 -1
  293. package/dist/shell/MilestoneTimeline.js +1 -1
  294. package/dist/shell/PageHeader.js +1 -1
  295. package/dist/shell/ProductionTimeline.js +1 -1
  296. package/dist/shell/ResizeHandle.js +1 -1
  297. package/dist/shell/Result.js +1 -1
  298. package/dist/shell/SearchableSelect.js +1 -1
  299. package/dist/shell/SettingReset.js +1 -1
  300. package/dist/shell/SettingRow.js +1 -1
  301. package/dist/shell/SidebarLayout.js +1 -1
  302. package/dist/shell/SidebarNav.js +1 -1
  303. package/dist/shell/SortableList.js +1 -1
  304. package/dist/shell/Statistic.js +1 -1
  305. package/dist/shell/TimeAgo.js +1 -1
  306. package/dist/shell/TimelineTrack.js +1 -1
  307. package/dist/shell/TransferProgress.js +1 -1
  308. package/dist/shell/Tree.js +1 -1
  309. package/dist/shell/discardGuard.js +1 -1
  310. package/dist/shell/globalSearchModel.js +1 -1
  311. package/dist/shell/language.js +1 -1
  312. package/dist/shell/strings.d.ts +2 -0
  313. package/dist/shell/strings.js +1 -1
  314. package/dist/shell/toast.js +1 -1
  315. package/dist/telemetry/index.js +1 -1
  316. package/dist/templates/AuthScreen.js +1 -1
  317. package/dist/templates/ChatTemplate.js +1 -1
  318. package/dist/templates/CheckoutTemplate.js +1 -1
  319. package/dist/templates/DashboardTemplate.js +1 -1
  320. package/dist/templates/DataTablePage.js +1 -1
  321. package/dist/templates/EmailTemplate.js +1 -1
  322. package/dist/templates/ErrorBoundary.js +1 -1
  323. package/dist/templates/ErrorPage.js +1 -1
  324. package/dist/templates/FormLayoutPage.js +1 -1
  325. package/dist/templates/GalleryTemplate.js +1 -1
  326. package/dist/ui/index.d.ts +1 -1
  327. package/dist/ui/index.js +1 -1
  328. package/dist/version.js +1 -1
  329. package/package.json +1 -1
  330. package/dist/PdfViewer-BFP2WCMQ.js +0 -1
  331. package/dist/PomodoroTimer-ME3BMHKR.js +0 -91
  332. package/dist/Sidebar-FU7TD5FQ.js +0 -44
  333. package/dist/chunk-3C5NKOVF.js +0 -1
  334. package/dist/chunk-3MMMN3U4.js +0 -3
  335. package/dist/chunk-4CKPY72R.js +0 -2
  336. package/dist/chunk-5UZYIM2W.js +0 -2
  337. package/dist/chunk-675RYIWR.js +0 -7
  338. package/dist/chunk-6VB4TBU6.js +0 -9
  339. package/dist/chunk-73XILSFF.js +0 -4
  340. package/dist/chunk-7ADTFFEM.js +0 -5
  341. package/dist/chunk-B6RQI2PT.js +0 -2
  342. package/dist/chunk-BUZ5AJLR.js +0 -12
  343. package/dist/chunk-C5SK5OYU.js +0 -4
  344. package/dist/chunk-CA3OC4YY.js +0 -9
  345. package/dist/chunk-EAIHBASJ.js +0 -28
  346. package/dist/chunk-FQHY6DTF.js +0 -4
  347. package/dist/chunk-HL3V67JZ.js +0 -2
  348. package/dist/chunk-HULQSIX5.js +0 -8
  349. package/dist/chunk-ISZOD5S6.js +0 -2
  350. package/dist/chunk-J7CHHY7O.js +0 -6
  351. package/dist/chunk-KFS7WSCC.js +0 -15
  352. package/dist/chunk-KOPTKTHN.js +0 -7
  353. package/dist/chunk-LO6TYB5E.js +0 -3
  354. package/dist/chunk-MTP3MBZA.js +0 -22
  355. package/dist/chunk-MXITMJCT.js +0 -27
  356. package/dist/chunk-QV4M7EOV.js +0 -1
  357. package/dist/chunk-RQ4KY6UZ.js +0 -2
  358. package/dist/chunk-T23TIJ4P.js +0 -1
  359. package/dist/chunk-TJSJVC6P.js +0 -1
  360. package/dist/chunk-WGRS6QBT.js +0 -1
  361. package/dist/chunk-YMD2F3NL.js +0 -1
  362. package/dist/chunk-YRG6XJ6M.js +0 -8
  363. package/dist/names-bEzx4RQ8.d.ts +0 -23
  364. /package/dist/{chunk-BDUWYLPI.js → chunk-NQJXHV4K.js} +0 -0
@@ -0,0 +1,44 @@
1
+ import{useAuth as e,parseOpenSections as t,readStored as r,RAIL_OPEN_SECTIONS_KEY as n,RAIL_WIDTH_KEY as i,toggleOpenSection as a,writeStored as o}from"./chunk-U6LKNGC6.js";import{ResizeHandle as l}from"./chunk-OOWPLQD5.js";import{openGlobalSearch as s}from"./chunk-N2445WHJ.js";import{partitionNav as c,visibleNavChildren as d,visibleSectionItems as m,rowsContainRoute as u}from"./chunk-HGOWQO63.js";import{BrandMark as h}from"./chunk-MI67DI3H.js";import{IconButton_default as p}from"./chunk-SV5RRBVA.js";import{RAIL_MENU_GAP as b,navSections as f,startMenuCategories as g,RAIL_W as x,TAB_STRIP_H as k,RAIL_COLLAPSED_INSET as y,RAIL_MAX_W as v,RAIL_MIN_W as N,navIcons as w,sectionIcons as j}from"./chunk-4LXCCZDM.js";import"./chunk-5A7MWTXX.js";import"./chunk-7QSDPSXP.js";import"./chunk-2QY5BJLA.js";import{PopupMenu as C,PopupMenuItem as S,PopupMenuDivider as L}from"./chunk-ZICGXJUB.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-M5K4AX4E.js";import{Icon as $}from"./chunk-JOAKKXTL.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import{useShellStrings as W}from"./chunk-JSHMIMAJ.js";import"./chunk-C3QOHMR6.js";import{useMemo as z,useState as A,useRef as T,useEffect as I,isValidElement as H,cloneElement as K}from"react";import{jsx as M,jsxs as J,Fragment as D}from"react/jsx-runtime";var O="undefined"!=typeof navigator&&/Mac|iPhone|iPad/.test(navigator.platform),R=150,P=250;function Q(e,t,r){const n=Math.max(8,r-t.bottom);return{left:e+b,bottom:n,maxHeight:r-n-8,overflowY:"auto"}}var B=(e,t)=>["flex h-(--row-height-menu) w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium transition-colors",t?"justify-center px-0":"",e?"bg-gray-100 text-gray-900":"text-gray-600 hover:bg-gray-100 hover:text-gray-900"].join(" "),U="flex size-8 shrink-0 items-center justify-center rounded-md text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-900",X="flex size-[18px] shrink-0 items-center justify-center [&>svg]:size-[18px]";function E({open:e,children:t}){const r=T(null);return I(()=>{r.current?.toggleAttribute("inert",!e)},[e]),/* @__PURE__ */M("div",{ref:r,className:"grid transition-[grid-template-rows,opacity] duration-200 ease-out motion-reduce:transition-none",style:{gridTemplateRows:e?"1fr":"0fr",opacity:e?1:0},"aria-hidden":!e,"data-fold":e?"open":"closed",children:/* @__PURE__ */M("div",{className:"min-h-0 overflow-hidden",children:t})})}function G({open:e}){/* @__PURE__ */
2
+ return M($,{name:"chevron-down",className:"size-4 shrink-0 transition-transform "+(e?"rotate-180":""),strokeWidth:2,"aria-hidden":"true"})}function Y({dir:e}){/* @__PURE__ */
3
+ return M($,"left"===e?{name:"chevron-double-left",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"}:{name:"chevron-double-right",className:"size-[18px] shrink-0",strokeWidth:1.5,"aria-hidden":"true"})}function Z({className:e}){/* @__PURE__ */
4
+ return M($,{name:"search",className:e,strokeWidth:2,"aria-hidden":"true"})}var _=e=>.75+1.75*e+"rem";function F({width:b,openWidth:R=x,collapsed:P,onToggleCollapsed:F,onResize:V,onHome:q,onOpen:ee,activeRoute:te,profile:re,user:ne,onLogout:ie,onSwitchToDesktop:ae,onReportBug:oe,onClose:le,navSections:se=f,navIcons:ce=w,sectionIcons:de=j,categories:me=g,productName:ue,productIcon:he,tagline:pe,adaptiveLogo:be=!1,logoHasAlpha:fe=null,logoIsLight:ge=null}){const xe=W().layout,{hasAnyPerm:ke}=e(),ye=z(()=>c(se,me,ke),[se,me,ke]),[ve,Ne]=A(()=>t(r(n))),we=z(()=>[...ye.topItems.filter(e=>d(e,ke).length>0).map(e=>`child:${e.to}`),...[...ye.erpSections,...ye.systemSections,...ye.virtualSections,...ye.footerSections].map(e=>e.label)],[ye,ke]),je=(e,t=we)=>Ne(r=>{const i=a(r,e,t);return o(n,JSON.stringify([...i])),i}),[Ce,Se]=A(!1),Le=T(null),$e=P&&!le,[We,ze]=A(!1),Ae=T("pointer"),Te=T(void 0),Ie=T(!1),He=T(null),Ke=()=>{clearTimeout(Te.current),Te.current=void 0},Me=e=>{Ke(),Ae.current=e,ze(!0)},Je=()=>{Ke(),ze(!1)};I(()=>{Ke(),ze(!1)},[P]),I(()=>()=>Ke(),[]),I(()=>{if(!We)return;const e=e=>{const t=e.target;t&&(He.current?.contains(t)||t.closest?.('[role="menu"]'))||(Ke(),ze(!1))};return document.addEventListener("pointerdown",e,!0),()=>document.removeEventListener("pointerdown",e,!0)},[We]);const De=P&&!We,Oe=P&&We?R:b,Re=(e,t)=>{Je(),e.onSelect?e.onSelect():ee(e.to,!!t&&(e=>e.metaKey||e.ctrlKey||1===e.button)(t))},Pe=(e,t)=>{const r=t[e];/* @__PURE__ */
5
+ return M("span",{className:X,"aria-hidden":"true",children:r&&H(r)?K(r,{className:"size-[18px]"}):r})},Qe=e=>e.filter(e=>d(e,ke).length>0).map(e=>`child:${e.to}`),Be=(e,t,r=we)=>{const n=d(e,ke),i=e.menuLabel??e.label;if(n.length>0){const a=`child:${e.to}`,o=ve.has(a),l=!o&&u(n,te,ke);/* @__PURE__ */
6
+ return J("div",{children:[
7
+ /* @__PURE__ */J("button",{type:"button",onClick:()=>je(a,r),"aria-expanded":o,className:B(l,!1),style:t>0?{paddingLeft:_(t)}:void 0,children:[0===t&&Pe(e.to,ce),
8
+ /* @__PURE__ */M("span",{className:"min-w-0 flex-1 truncate",children:i}),
9
+ /* @__PURE__ */M(G,{open:o})]}),
10
+ /* @__PURE__ */M(E,{open:o,children:/* @__PURE__ */M("div",{className:"space-y-0.5 pt-0.5",children:n.map(e=>Be(e,t+1,Qe(n)))})}),e.dividerAfter&&/* @__PURE__ */M("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:_(t)},"aria-hidden":"true"})]},e.to)}const a=e.to===te;/* @__PURE__ */
11
+ return J("div",{children:[
12
+ /* @__PURE__ */J("button",{type:"button",onClick:t=>Re(e,t),onAuxClick:t=>{1===t.button&&Re(e,t)},"aria-current":a?"page":void 0,className:B(a,!1),style:t>0?{paddingLeft:_(t)}:void 0,children:[0===t&&Pe(e.to,ce),
13
+ /* @__PURE__ */M("span",{className:"min-w-0 flex-1 truncate",children:i})]}),e.dividerAfter&&/* @__PURE__ */M("div",{className:"mx-2 my-2 border-t border-gray-200",style:{marginLeft:_(t)},"aria-hidden":"true"})]},e.to)},Ue=(e,t)=>{const r=t?e.items:m(e,ke);if(0===r.length)return null;const n="icon"in e&&e.icon?/* @__PURE__ */M("span",{className:X,"aria-hidden":"true",children:e.icon}):Pe(e.label,de),i=e.menuLabel??e.label,a=u(r,te,ke),o="dividerAfter"in e&&e.dividerAfter;if(De)/* @__PURE__ */
14
+ return J("div",{children:[
15
+ /* @__PURE__ */M("button",{type:"button",title:i,"aria-label":i,"aria-expanded":!1,onClick:()=>{ve.has(e.label)||je(e.label),Me("tap")},className:B(a,!0),children:n}),o&&/* @__PURE__ */M("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label);const l=ve.has(e.label),s=`rosh-rail-${e.label.replace(/[^a-z0-9]+/gi,"-").toLowerCase()}`;/* @__PURE__ */
16
+ return J("div",{children:[
17
+ /* @__PURE__ */J("button",{type:"button",onClick:()=>je(e.label),"aria-expanded":l,"aria-controls":s,className:B(!l&&a,!1),children:[n,
18
+ /* @__PURE__ */M("span",{className:"min-w-0 flex-1 truncate",children:i}),
19
+ /* @__PURE__ */M(G,{open:l})]}),
20
+ /* @__PURE__ */M(E,{open:l,children:/* @__PURE__ */M("div",{id:s,role:"group","aria-label":i,className:"space-y-0.5 pt-0.5",children:r.map(e=>Be(e,1,Qe(r)))})}),o&&/* @__PURE__ */M("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.label)},Xe=re?.first_name?`${re.first_name} ${re.last_name||""}`.trim():ne?.email||"",Ee=(re?.first_name?.charAt(0)||ne?.email?.charAt(0)||"?").toUpperCase(),Ge=re?.avatar_url?/* @__PURE__ */M("img",{src:re.avatar_url,alt:"",className:"size-8 shrink-0 rounded-full object-cover"}):/* @__PURE__ */M("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-blue-600 text-xs font-semibold text-white",children:Ee}),Ye=Ce?Le.current?.getBoundingClientRect():void 0,Ze=De?"":"px-3",_e=De?{paddingInline:y}:void 0,Fe=`${P?xe.expandSidebar:xe.collapseSidebar} (${O?"⌘":"Ctrl"} .)`,Ve=q?{run:q,label:xe.goHome,title:xe.goHome}:le?null:{run:F,label:P?xe.expandSidebar:xe.collapseSidebar,title:Fe},qe=/* @__PURE__ */J(D,{children:[he&&/* @__PURE__ */M(h,{src:he,alt:"",slot:"compact",surface:"light",adaptive:be,hasAlpha:fe,isLight:ge,size:28,decorative:!0}),!De&&/* @__PURE__ */J("span",{className:"min-w-0 text-left leading-tight",children:[
21
+ /* @__PURE__ */M("span",{className:"block truncate text-base font-bold tracking-wide text-gray-900",children:ue??"Apps"}),pe&&/* @__PURE__ */M("span",{className:"block truncate text-2xs font-medium text-gray-500",children:pe})]})]}),et=ye.erpSections.length>0||ye.systemSections.length>0||ye.virtualSections.length>0;/* @__PURE__ */
22
+ return J("aside",{ref:He,"aria-label":xe.navLabel,"data-rail-peek":We?"":void 0,className:`fixed left-0 top-0 z-(--z-sidebar) flex h-dvh flex-col border-r border-line bg-surface text-ink-strong ${P?"overflow-hidden transition-[width] duration-150 ease-out motion-reduce:transition-none":""} ${We?"rounded-r-(--radius-panel)":""}`,style:{width:Oe,boxShadow:We?"var(--elevation-popup)":void 0},onPointerEnter:e=>{"touch"!==e.pointerType&&(Ie.current=!0,$e&&(We?Ke():(Ke(),Te.current=setTimeout(()=>Me("pointer"),150))))},onPointerLeave:e=>{"touch"!==e.pointerType&&(Ie.current=!1,$e&&(Ke(),We&&!Ce&&"pointer"===Ae.current&&(Te.current=setTimeout(Je,250))))},onFocus:e=>{$e&&!We&&(e=>{try{return e.matches(":focus-visible")}catch{return!1}})(e.target)&&Me("focus")},onBlur:e=>{if(!We||"focus"!==Ae.current)return;const t=e.relatedTarget;t&&He.current?.contains(t)||Ce||Ie.current||Je()},onKeyDown:e=>{"Escape"===e.key&&We&&Je()},children:[
23
+ /* @__PURE__ */J("div",{className:"flex shrink-0 items-center border-b border-gray-200 "+(De?"justify-center":"justify-between gap-2 pl-4 pr-2"),style:{height:k},children:[Ve?/* @__PURE__ */M("button",{type:"button",onClick:Ve.run,"aria-label":Ve.label,title:Ve.title,className:"flex min-w-0 items-center gap-2 rounded-md transition-colors hover:bg-gray-100 "+(De?"justify-center p-0.5":"-ml-1 p-1"),children:qe}):/* @__PURE__ */M("span",{className:"flex min-w-0 items-center gap-2",children:qe}),le?/* @__PURE__ */M(p,{onClick:le,"aria-label":xe.closeMenu,children:/* @__PURE__ */M($,{name:"close",className:"size-[18px]",strokeWidth:1.5,"aria-hidden":"true"})}):P?We&&
24
+ /* @__PURE__ */M("button",{type:"button",onClick:()=>{Je(),F()},"aria-label":xe.keepSidebarOpen,title:`${xe.keepSidebarOpen} (${O?"⌘":"Ctrl"} .)`,className:U,children:/* @__PURE__ */M(Y,{dir:"right"})}):/* @__PURE__ */M("button",{type:"button",onClick:F,"aria-label":xe.collapseSidebar,title:`${xe.collapseSidebar} (${O?"⌘":"Ctrl"} .)`,className:U,children:/* @__PURE__ */M(Y,{dir:"left"})})]}),
25
+ /* @__PURE__ */M("div",{className:`shrink-0 pt-3 ${Ze}`,style:_e,children:De?/* @__PURE__ */M("button",{type:"button",onClick:s,"aria-label":xe.search,title:`${xe.search} (${O?"⌘K":"Ctrl K"})`,className:B(!1,!0),children:/* @__PURE__ */M(Z,{className:"size-[18px] shrink-0"})}):/* @__PURE__ */J("button",{type:"button",onClick:s,className:"flex h-(--row-height-menu) w-full items-center gap-2 rounded-md border border-line bg-surface px-3 text-left transition-colors hover:bg-gray-100",children:[
26
+ /* @__PURE__ */M(Z,{className:"size-3.5 text-gray-500"}),
27
+ /* @__PURE__ */M("span",{className:"min-w-0 flex-1 truncate text-sm text-ink-faint",children:xe.search}),
28
+ /* @__PURE__ */M("kbd",{className:"rounded border border-line bg-gray-100 px-2 py-0.5 font-mono text-2xs font-semibold text-ink-faint",children:O?"⌘K":"Ctrl K"})]})}),
29
+ /* @__PURE__ */J("nav",{"aria-label":xe.navLabel,className:`min-h-0 flex-1 overflow-y-auto pb-4 pt-3 ${Ze} ${De?"space-y-1":"space-y-0.5"}`,style:_e,children:[De&&/* @__PURE__ */M("button",{type:"button",onClick:F,"aria-label":xe.expandSidebar,title:`${xe.expandSidebar} (${O?"⌘":"Ctrl"} .)`,className:`${B(!1,!0)} mb-3`,children:/* @__PURE__ */M(Y,{dir:"right"})}),ye.topItems.map(e=>{if(!De)return Be(e,0);const t=d(e,ke),r=e.to===te||u(t,te,ke),n=e.menuLabel??e.label;/* @__PURE__ */
30
+ return J("div",{children:[
31
+ /* @__PURE__ */M("button",{type:"button",title:n,"aria-label":n,onClick:r=>{if(0===t.length)return void Re(e,r);const n=`child:${e.to}`;ve.has(n)||je(n),Me("tap")},className:B(r,!0),children:Pe(e.to,ce)}),e.dividerAfter&&/* @__PURE__ */M("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"})]},e.to)}),ye.topItems.length>0&&et&&!ye.topItems[ye.topItems.length-1].dividerAfter&&/* @__PURE__ */M("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ye.erpSections.map(e=>Ue(e,!1)),ye.systemSections.map(e=>Ue(e,!1)),ye.virtualSections.map(e=>Ue(e,!0)),ye.footerSections.length>0&&/* @__PURE__ */M("div",{className:"mx-2 my-2 border-t border-line","aria-hidden":"true"}),ye.footerSections.map(e=>Ue(e,!1))]}),
32
+ /* @__PURE__ */M("div",{className:`shrink-0 border-t border-gray-200 py-2 ${Ze}`,style:_e,children:/* @__PURE__ */J("button",{ref:Le,type:"button",onClick:()=>Se(e=>!e),"aria-haspopup":"menu","aria-expanded":Ce,"aria-label":De?xe.accountMenu(Xe):void 0,className:"flex w-full items-center gap-3 rounded-md hover:bg-gray-100 "+(De?"justify-center py-2":"px-2 py-2"),children:[Ge,!De&&/* @__PURE__ */J("span",{className:"min-w-0 flex-1 text-left",children:[
33
+ /* @__PURE__ */M("span",{className:"block truncate text-sm font-semibold text-ink-strong",children:Xe}),ne?.email&&Xe!==ne.email&&/* @__PURE__ */M("span",{className:"block truncate text-2xs text-ink-faint",children:ne.email})]})]})}),V&&!P&&!le&&/* @__PURE__ */M(l,{side:"left",width:b,onResize:V,min:N,max:v,defaultWidth:x,storageKey:i,label:xe.resizeSidebar}),Ce&&Ye&&/* @__PURE__ */J(C,{portal:!0,minWidth:224,onClose:()=>{Se(!1),We&&"pointer"===Ae.current&&!Ie.current&&Je()},style:Q(Oe,Ye,window.innerHeight),children:[De&&/* @__PURE__ */J("div",{className:"border-b border-line px-3 py-3",children:[
34
+ /* @__PURE__ */M("p",{className:"truncate text-sm font-semibold text-gray-800",children:Xe}),ne?.email&&/* @__PURE__ */M("p",{className:"truncate text-xs text-gray-500",children:ne.email})]}),
35
+ /* @__PURE__ */J(S,{onClick:()=>{Se(!1),Je(),ee("/profile",!1)},children:[
36
+ /* @__PURE__ */M($,{name:"account",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.profile]}),ye.footerItems.map(e=>/* @__PURE__ */J(S,{onClick:()=>{Se(!1),Re(e)},children:[
37
+ /* @__PURE__ */M("span",{className:"h-4 w-4 [&>svg]:size-4","aria-hidden":"true",children:ce[e.to]}),e.menuLabel??e.label]},e.to)),oe&&/* @__PURE__ */J(S,{onClick:()=>{Se(!1),Je(),oe()},children:[
38
+ /* @__PURE__ */M($,{name:"error",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.reportIssue]}),
39
+ /* @__PURE__ */M(L,{}),ae&&/* @__PURE__ */J(D,{children:[
40
+ /* @__PURE__ */J(S,{onClick:()=>{Se(!1),Je(),ae()},children:[
41
+ /* @__PURE__ */M($,{name:"desktop",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.switchToDesktop]}),
42
+ /* @__PURE__ */M(L,{})]}),
43
+ /* @__PURE__ */J(S,{danger:!0,onClick:()=>{Se(!1),Je(),ie()},children:[
44
+ /* @__PURE__ */M($,{name:"logout",className:"h-4 w-4",strokeWidth:1.5,"aria-hidden":"true"}),xe.signOut]})]})]})}export{P as RAIL_PEEK_CLOSE_MS,R as RAIL_PEEK_OPEN_MS,Q as accountMenuPosition,F as default};
@@ -1,4 +1,4 @@
1
- import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-BFCIOWYI.js";import{useWidgetSettings as n}from"./chunk-AG6Y62TP.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-SXHNZFUY.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-NGQZI7HP.js";import"./chunk-MXITMJCT.js";import"./chunk-7ADTFFEM.js";import"./chunk-KWTK6TGH.js";import"./chunk-3DVNXNTF.js";import"./chunk-27ZJQUDS.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-QCOXJXGZ.js";import"./chunk-NV7QRWQJ.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-KC3EX26K.js";import"./chunk-CDAJKLGL.js";import"./chunk-JMGDGNM7.js";import"./chunk-ZICGXJUB.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import"./chunk-JOAKKXTL.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-TJSJVC6P.js";import"./chunk-C3QOHMR6.js";import{useState as r,useCallback as c}from"react";import{jsxs as s,Fragment as i,jsx as a}from"react/jsx-runtime";var o=["AAPL","MSFT","GOOGL","TSLA","NVDA"],m="stock_symbols",l="stock_appearance",h={AAPL:{price:229.87,change:1.42,changePct:.62},MSFT:{price:451.16,change:-2.31,changePct:-.51},GOOGL:{price:178.34,change:.89,changePct:.5},AMZN:{price:201.45,change:-1.08,changePct:-.53},TSLA:{price:248.92,change:6.74,changePct:2.78},NVDA:{price:134.81,change:-3.12,changePct:-2.26},META:{price:563.27,change:4.55,changePct:.81}},p=Object.keys(h);function u(){try{const e=JSON.parse(localStorage.getItem(m)||"");if(Array.isArray(e)&&e.length)return e.slice(0,8)}catch{}return o}var d=e=>`${e>=0?"+":""}${e.toFixed(2)}`;function g(){const[o,g]=r(u),[k,x]=r(()=>e(l)),[j,N]=r(!1),[b,f]=r([]),[y,v]=r(k),[A,S]=r(""),T=c(()=>{f([...o]),v({...k}),S(""),N(!0)},[o,k]);n(T);const D=()=>{const e=A.trim().toUpperCase();!e||b.includes(e)||b.length>=8||(f(t=>[...t,e]),S(""))},J=p.filter(e=>!b.includes(e));/* @__PURE__ */
1
+ import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-AELSVMXH.js";import{useWidgetSettings as n}from"./chunk-G6LSBF3P.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-Y6E7IRK2.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-WLUJQLXG.js";import"./chunk-QU23OGAX.js";import"./chunk-PCZSE6CC.js";import"./chunk-MWTCGJAI.js";import"./chunk-3DVNXNTF.js";import"./chunk-3N5OI6VM.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-WQ4YKWN2.js";import"./chunk-JZBLOIL7.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import"./chunk-KC3EX26K.js";import"./chunk-CDAJKLGL.js";import"./chunk-JMGDGNM7.js";import"./chunk-ZICGXJUB.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import"./chunk-JOAKKXTL.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-JSHMIMAJ.js";import"./chunk-C3QOHMR6.js";import{useState as r,useCallback as c}from"react";import{jsxs as s,Fragment as i,jsx as a}from"react/jsx-runtime";var o=["AAPL","MSFT","GOOGL","TSLA","NVDA"],m="stock_symbols",l="stock_appearance",h={AAPL:{price:229.87,change:1.42,changePct:.62},MSFT:{price:451.16,change:-2.31,changePct:-.51},GOOGL:{price:178.34,change:.89,changePct:.5},AMZN:{price:201.45,change:-1.08,changePct:-.53},TSLA:{price:248.92,change:6.74,changePct:2.78},NVDA:{price:134.81,change:-3.12,changePct:-2.26},META:{price:563.27,change:4.55,changePct:.81}},p=Object.keys(h);function u(){try{const e=JSON.parse(localStorage.getItem(m)||"");if(Array.isArray(e)&&e.length)return e.slice(0,8)}catch{}return o}var d=e=>`${e>=0?"+":""}${e.toFixed(2)}`;function g(){const[o,g]=r(u),[k,x]=r(()=>e(l)),[j,N]=r(!1),[b,f]=r([]),[y,v]=r(k),[A,S]=r(""),C=c(()=>{f([...o]),v({...k}),S(""),N(!0)},[o,k]);n(C);const J=()=>{const e=A.trim().toUpperCase();!e||b.includes(e)||b.length>=8||(f(t=>[...t,e]),S(""))},M=p.filter(e=>!b.includes(e));/* @__PURE__ */
2
2
  return s(i,{children:[
3
3
  /* @__PURE__ */a("div",{style:{backgroundColor:`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${k.activeOpacity/100})`,backdropFilter:k.activeBlur>0?`blur(${k.activeBlur}px)`:void 0},children:/* @__PURE__ */a("div",{className:"px-4 py-3",children:0===o.length?/* @__PURE__ */a("div",{className:"text-xs text-gray-500 text-center py-6",children:"No symbols yet — add some in settings."}):/* @__PURE__ */a("div",{className:"space-y-0.5",children:o.map(e=>{const t=h[e],n=(t?.change??0)>=0,r=t?t.change>0?"text-green-600":t.change<0?"text-red-600":"text-gray-500":"text-gray-400";/* @__PURE__ */
4
4
  return s("div",{className:"flex items-center justify-between px-2 py-2 border-b border-gray-200 last:border-0",children:[
@@ -11,6 +11,6 @@ return s("div",{className:"flex items-center justify-between px-2 py-2 border-b
11
11
  /* @__PURE__ */s("div",{className:"space-y-1 mb-2",children:[b.map((e,t)=>/* @__PURE__ */s("div",{className:"flex items-center justify-between py-1 px-2 bg-gray-50 rounded",children:[
12
12
  /* @__PURE__ */a("span",{className:"text-sm font-semibold text-gray-700",children:e}),
13
13
  /* @__PURE__ */a("button",{onClick:()=>f(e=>e.filter((e,n)=>n!==t)),className:"text-red-400 hover:text-red-600",children:"×"})]},t)),0===b.length&&/* @__PURE__ */a("p",{className:"text-2xs text-ink-faintest italic",children:"No symbols — add a ticker below."})]}),b.length<8?/* @__PURE__ */s("div",{className:"flex items-center gap-2",children:[
14
- /* @__PURE__ */a("input",{value:A,onChange:e=>S(e.target.value),onKeyDown:e=>{"Enter"===e.key&&D()},placeholder:"e.g. NVDA",className:"flex-1 bg-gray-50 border border-gray-200 rounded px-2 py-1 text-sm uppercase focus:outline-none focus:ring-1 focus:ring-blue-500"}),
15
- /* @__PURE__ */a("button",{onClick:D,className:"text-sm font-medium text-blue-600 hover:text-blue-800 px-2",children:"+ Add"})]}):/* @__PURE__ */s("p",{className:"text-2xs text-ink-faintest italic",children:["Max ",8," symbols — remove one to add another."]}),J.length>0&&b.length<8&&/* @__PURE__ */a("div",{className:"flex flex-wrap gap-2 mt-2",children:J.map(e=>/* @__PURE__ */a("button",{onClick:()=>f(t=>t.length<8?[...t,e]:t),className:"text-2xs font-medium text-gray-600 bg-gray-100 hover:bg-gray-200 rounded px-2 py-0.5 transition-colors",children:e},e))}),
14
+ /* @__PURE__ */a("input",{value:A,onChange:e=>S(e.target.value),onKeyDown:e=>{"Enter"===e.key&&J()},placeholder:"e.g. NVDA",className:"flex-1 bg-gray-50 border border-gray-200 rounded px-2 py-1 text-sm uppercase focus:outline-none focus:ring-1 focus:ring-blue-500"}),
15
+ /* @__PURE__ */a("button",{onClick:J,className:"text-sm font-medium text-blue-600 hover:text-blue-800 px-2",children:"+ Add"})]}):/* @__PURE__ */s("p",{className:"text-2xs text-ink-faintest italic",children:["Max ",8," symbols — remove one to add another."]}),M.length>0&&b.length<8&&/* @__PURE__ */a("div",{className:"flex flex-wrap gap-2 mt-2",children:M.map(e=>/* @__PURE__ */a("button",{onClick:()=>f(t=>t.length<8?[...t,e]:t),className:"text-2xs font-medium text-gray-600 bg-gray-100 hover:bg-gray-200 rounded px-2 py-0.5 transition-colors",children:e},e))}),
16
16
  /* @__PURE__ */a("p",{className:"text-2xs text-ink-faintest mt-2",children:"Demo prices — static sample data, no live feed."})]})})]})}export{g as default};
@@ -1,4 +1,4 @@
1
- import{fetchCityWeather as e,getCondition as t,AVAILABLE_CITIES as a,toFahrenheit as r}from"./chunk-FBDZGO3V.js";import{loadAppearance as n,WidgetSettingsModal as i}from"./chunk-BFCIOWYI.js";import{pad2 as s}from"./chunk-LF27WIN2.js";import{useWidgetSettings as o}from"./chunk-AG6Y62TP.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-SXHNZFUY.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-NGQZI7HP.js";import"./chunk-MXITMJCT.js";import"./chunk-7ADTFFEM.js";import"./chunk-KWTK6TGH.js";import"./chunk-3DVNXNTF.js";import"./chunk-27ZJQUDS.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-QCOXJXGZ.js";import"./chunk-NV7QRWQJ.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as l}from"./chunk-KC3EX26K.js";import"./chunk-CDAJKLGL.js";import"./chunk-JMGDGNM7.js";import"./chunk-ZICGXJUB.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import"./chunk-JOAKKXTL.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as c}from"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-TJSJVC6P.js";import"./chunk-C3QOHMR6.js";import{useState as d,useEffect as m,useCallback as h}from"react";import{jsx as p,jsxs as u,Fragment as f}from"react/jsx-runtime";var y="weather_city",g="weather_appearance",x={useFahrenheit:!1,showLocalTime:!0,use24Hour:!1};function b(){const e="undefined"!=typeof localStorage?localStorage.getItem(y):null;if(e&&a[e])return e;try{const e=JSON.parse(localStorage.getItem("weather_cities")||"");if(Array.isArray(e)&&e[0]&&a[e[0]])return localStorage.setItem(y,e[0]),e[0]}catch{}return function(){try{const e=Intl.DateTimeFormat().resolvedOptions().timeZone;for(const[t,r]of Object.entries(a))if(r.tz===e)return t}catch{}return"London"}()}var w=r;function k(e,t=!1){try{if(t){const t=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"2-digit",hour12:!1}).formatToParts(/* @__PURE__ */new Date),a=parseInt(t.find(e=>"hour"===e.type)?.value||"0"),r=parseInt(t.find(e=>"minute"===e.type)?.value||"0");return`${s(a)}:${s(r)}`}const a=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"2-digit",hour12:!0}).formatToParts(/* @__PURE__ */new Date),r=parseInt(a.find(e=>"hour"===e.type)?.value||"12"),n=parseInt(a.find(e=>"minute"===e.type)?.value||"0"),i=a.find(e=>"dayPeriod"===e.type)?.value||"";return`${r}:${s(n)} ${i}`}catch{return""}}function v(){/* @__PURE__ */
1
+ import{fetchCityWeather as e,getCondition as t,AVAILABLE_CITIES as a,toFahrenheit as r}from"./chunk-FBDZGO3V.js";import{loadAppearance as n,WidgetSettingsModal as i}from"./chunk-AELSVMXH.js";import{pad2 as s}from"./chunk-LF27WIN2.js";import{useWidgetSettings as o}from"./chunk-G6LSBF3P.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-Y6E7IRK2.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-WLUJQLXG.js";import"./chunk-QU23OGAX.js";import"./chunk-PCZSE6CC.js";import"./chunk-MWTCGJAI.js";import"./chunk-3DVNXNTF.js";import"./chunk-3N5OI6VM.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-WQ4YKWN2.js";import"./chunk-JZBLOIL7.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as l}from"./chunk-KC3EX26K.js";import"./chunk-CDAJKLGL.js";import"./chunk-JMGDGNM7.js";import"./chunk-ZICGXJUB.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import"./chunk-JOAKKXTL.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as c}from"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-JSHMIMAJ.js";import"./chunk-C3QOHMR6.js";import{useState as d,useEffect as m,useCallback as h}from"react";import{jsx as p,jsxs as u,Fragment as f}from"react/jsx-runtime";var y="weather_city",g="weather_appearance",x={useFahrenheit:!1,showLocalTime:!0,use24Hour:!1};function b(){const e="undefined"!=typeof localStorage?localStorage.getItem(y):null;if(e&&a[e])return e;try{const e=JSON.parse(localStorage.getItem("weather_cities")||"");if(Array.isArray(e)&&e[0]&&a[e[0]])return localStorage.setItem(y,e[0]),e[0]}catch{}return function(){try{const e=Intl.DateTimeFormat().resolvedOptions().timeZone;for(const[t,r]of Object.entries(a))if(r.tz===e)return t}catch{}return"London"}()}var w=r;function k(e,t=!1){try{if(t){const t=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"2-digit",hour12:!1}).formatToParts(/* @__PURE__ */new Date),a=parseInt(t.find(e=>"hour"===e.type)?.value||"0"),r=parseInt(t.find(e=>"minute"===e.type)?.value||"0");return`${s(a)}:${s(r)}`}const a=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"2-digit",hour12:!0}).formatToParts(/* @__PURE__ */new Date),r=parseInt(a.find(e=>"hour"===e.type)?.value||"12"),n=parseInt(a.find(e=>"minute"===e.type)?.value||"0"),i=a.find(e=>"dayPeriod"===e.type)?.value||"";return`${r}:${s(n)} ${i}`}catch{return""}}function v(){/* @__PURE__ */
2
2
  return u("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[
3
3
  /* @__PURE__ */p("div",{className:"absolute -top-5 -right-5 w-24 h-24",style:{animation:"wx-sun-rays 70s linear infinite"},children:/* @__PURE__ */p("svg",{viewBox:"0 0 100 100",className:"w-full h-full",children:Array.from({length:12}).map((e,t)=>/* @__PURE__ */p("rect",{x:49,y:3,width:2,height:14,rx:1,fill:"rgba(255, 232, 130, 0.55)",transform:`rotate(${30*t} 50 50)`},t))})}),
4
4
  /* @__PURE__ */p("div",{className:"absolute top-1 right-1 w-10 h-10 rounded-full",style:{background:"radial-gradient(circle at 35% 35%, #fff8cc 0%, #ffd84a 55%, #ff9e2a 100%)",boxShadow:"0 0 18px 5px rgba(255, 200, 80, 0.55)",animation:"wx-sun-pulse 4.5s ease-in-out infinite"}})]})}function N(){const e=Array.from({length:16}).map((e,t)=>({left:(53*t+11)%95+"%",top:(37*t+9)%78+"%",size:1+13*t%3,delay:.41*t%4+"s",duration:2.5+7*t%5*.6+"s"}));/* @__PURE__ */
@@ -17,44 +17,44 @@ return u("div",{className:"absolute inset-0 overflow-hidden pointer-events-none"
17
17
  return u("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[
18
18
  /* @__PURE__ */p("div",{className:"absolute",style:{top:"8%",animation:"wx-drift-cloud 42s linear infinite"},children:/* @__PURE__ */p(a,{scale:.9})}),
19
19
  /* @__PURE__ */p("div",{className:"absolute",style:{top:"40%",animation:"wx-drift-cloud 60s linear -22s infinite",opacity:.85},children:/* @__PURE__ */p(a,{scale:1.25})}),
20
- /* @__PURE__ */p("div",{className:"absolute",style:{top:"68%",animation:"wx-drift-cloud 78s linear -45s infinite",opacity:.7},children:/* @__PURE__ */p(a,{scale:.75})})]})}function T({heavy:e=!1}){const t=e?26:16,a=["wx-rain-a","wx-rain-b","wx-rain-c"],r=Array.from({length:t}).map((e,r)=>({left:(100*r/t+11*r%7)%100+"%",delay:.087*r%1.3+"s",height:12+r%4*5+"px",duration:.7+r%3*.18+"s",variant:a[r%a.length]}));/* @__PURE__ */
21
- return p("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:r.map((e,t)=>/* @__PURE__ */p("div",{className:"absolute",style:{left:e.left,top:"-20px",width:"1px",height:e.height,background:"linear-gradient(180deg, rgba(180,210,255,0) 0%, rgba(220,235,255,0.85) 90%, rgba(255,255,255,0.95) 100%)",transform:"rotate(8deg)",animation:`${e.variant} ${e.duration} linear ${e.delay} infinite`,transformOrigin:"top"}},t))})}function D(){const e=["wx-snow-a","wx-snow-b","wx-snow-c"],t=Array.from({length:16}).map((t,a)=>({left:(100*a/16+13*a%5)%100+"%",delay:.43*a%5+"s",duration:4.5+a%5+"s",size:3+a%4*1.4,opacity:.65+7*a%4*.08,variant:e[a%e.length]}));/* @__PURE__ */
22
- return p("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:t.map((e,t)=>/* @__PURE__ */p("div",{className:"absolute rounded-full bg-white",style:{left:e.left,top:"-12px",width:e.size,height:e.size,opacity:e.opacity,boxShadow:"0 0 4px rgba(255,255,255,0.65)",animation:`${e.variant} ${e.duration} linear ${e.delay} infinite`}},t))})}function S(){/* @__PURE__ */
20
+ /* @__PURE__ */p("div",{className:"absolute",style:{top:"68%",animation:"wx-drift-cloud 78s linear -45s infinite",opacity:.7},children:/* @__PURE__ */p(a,{scale:.75})})]})}function S({heavy:e=!1}){const t=e?26:16,a=["wx-rain-a","wx-rain-b","wx-rain-c"],r=Array.from({length:t}).map((e,r)=>({left:(100*r/t+11*r%7)%100+"%",delay:.087*r%1.3+"s",height:12+r%4*5+"px",duration:.7+r%3*.18+"s",variant:a[r%a.length]}));/* @__PURE__ */
21
+ return p("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:r.map((e,t)=>/* @__PURE__ */p("div",{className:"absolute",style:{left:e.left,top:"-20px",width:"1px",height:e.height,background:"linear-gradient(180deg, rgba(180,210,255,0) 0%, rgba(220,235,255,0.85) 90%, rgba(255,255,255,0.95) 100%)",transform:"rotate(8deg)",animation:`${e.variant} ${e.duration} linear ${e.delay} infinite`,transformOrigin:"top"}},t))})}function L(){const e=["wx-snow-a","wx-snow-b","wx-snow-c"],t=Array.from({length:16}).map((t,a)=>({left:(100*a/16+13*a%5)%100+"%",delay:.43*a%5+"s",duration:4.5+a%5+"s",size:3+a%4*1.4,opacity:.65+7*a%4*.08,variant:e[a%e.length]}));/* @__PURE__ */
22
+ return p("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:t.map((e,t)=>/* @__PURE__ */p("div",{className:"absolute rounded-full bg-white",style:{left:e.left,top:"-12px",width:e.size,height:e.size,opacity:e.opacity,boxShadow:"0 0 4px rgba(255,255,255,0.65)",animation:`${e.variant} ${e.duration} linear ${e.delay} infinite`}},t))})}function C(){/* @__PURE__ */
23
23
  return u("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[
24
- /* @__PURE__ */p(T,{heavy:!0}),
24
+ /* @__PURE__ */p(S,{heavy:!0}),
25
25
  /* @__PURE__ */p("div",{className:"absolute inset-0 bg-white",style:{animation:"wx-flash 6s ease-out infinite"}}),
26
- /* @__PURE__ */p("div",{className:"absolute inset-y-0 right-1/3 flex items-center justify-center pointer-events-none",style:{animation:"wx-bolt 6s ease-out infinite"},children:/* @__PURE__ */p("svg",{viewBox:"0 0 18 60",className:"h-4/5",style:{filter:"drop-shadow(0 0 6px rgba(255, 240, 150, 0.95)) drop-shadow(0 0 14px rgba(255, 220, 90, 0.7))"},children:/* @__PURE__ */p("path",{d:"M11 0 L2 28 L8 30 L4 60 L16 24 L9 22 Z",fill:"rgba(255, 250, 200, 0.98)",stroke:"rgba(255, 255, 255, 0.9)",strokeWidth:.3})})})]})}function C(){/* @__PURE__ */
27
- return p("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:Array.from({length:4}).map((e,t)=>/* @__PURE__ */p("div",{className:"absolute left-0 right-0",style:{top:10+22*t+"%",height:"14px",background:"linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%)",filter:"blur(2px)",animation:`wx-fog-drift ${10+3*t}s ease-in-out ${.7*t}s infinite alternate`}},t))})}function F({code:e,isDay:t}){return 0===e||1===e?/* @__PURE__ */p(t?v:N,{}):2===e?/* @__PURE__ */u(f,{children:[/* @__PURE__ */p(t?v:N,{}),
28
- /* @__PURE__ */p(j,{tone:t?"light":"dark"})]}):3===e?/* @__PURE__ */p(j,{tone:t?"light":"dark"}):45===e||48===e?/* @__PURE__ */p(C,{}):[51,53,61,80,81].includes(e)?/* @__PURE__ */p(T,{}):[55,63,65,82].includes(e)?/* @__PURE__ */p(T,{heavy:!0}):[71,73,75].includes(e)?/* @__PURE__ */p(D,{}):[95,96,99].includes(e)?/* @__PURE__ */p(S,{}):null}function I(){const[r,s]=d(b),[v,N]=d(()=>n(g)),[j,T]=d(null),[D,S]=d(!0),[,C]=d(0);m(()=>{const e=setInterval(()=>C(e=>e+1),6e4);return()=>clearInterval(e)},[]);const[I,J]=d(!1),[$,A]=d(r),[L,H]=d(v),{prefs:X,save:Z}=l(),G={...x,...X.weather_prefs??{}},[M,O]=d(G);o(h(()=>{A(r),H({...v}),O({...G}),J(!0)},[r,v,G])),m(()=>{let t=!1;return S(!0),e(r).then(e=>{t||(T(e),S(!1))}),()=>{t=!0}},[r]);const Q=e=>G.useFahrenheit?`${w(e)}°F`:`${e}°`;if(D&&!j)/* @__PURE__ */
26
+ /* @__PURE__ */p("div",{className:"absolute inset-y-0 right-1/3 flex items-center justify-center pointer-events-none",style:{animation:"wx-bolt 6s ease-out infinite"},children:/* @__PURE__ */p("svg",{viewBox:"0 0 18 60",className:"h-4/5",style:{filter:"drop-shadow(0 0 6px rgba(255, 240, 150, 0.95)) drop-shadow(0 0 14px rgba(255, 220, 90, 0.7))"},children:/* @__PURE__ */p("path",{d:"M11 0 L2 28 L8 30 L4 60 L16 24 L9 22 Z",fill:"rgba(255, 250, 200, 0.98)",stroke:"rgba(255, 255, 255, 0.9)",strokeWidth:.3})})})]})}function D(){/* @__PURE__ */
27
+ return p("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:Array.from({length:4}).map((e,t)=>/* @__PURE__ */p("div",{className:"absolute left-0 right-0",style:{top:10+22*t+"%",height:"14px",background:"linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 100%)",filter:"blur(2px)",animation:`wx-fog-drift ${10+3*t}s ease-in-out ${.7*t}s infinite alternate`}},t))})}function T({code:e,isDay:t}){return 0===e||1===e?/* @__PURE__ */p(t?v:N,{}):2===e?/* @__PURE__ */u(f,{children:[/* @__PURE__ */p(t?v:N,{}),
28
+ /* @__PURE__ */p(j,{tone:t?"light":"dark"})]}):3===e?/* @__PURE__ */p(j,{tone:t?"light":"dark"}):45===e||48===e?/* @__PURE__ */p(D,{}):[51,53,61,80,81].includes(e)?/* @__PURE__ */p(S,{}):[55,63,65,82].includes(e)?/* @__PURE__ */p(S,{heavy:!0}):[71,73,75].includes(e)?/* @__PURE__ */p(L,{}):[95,96,99].includes(e)?/* @__PURE__ */p(C,{}):null}function A(){const[r,s]=d(b),[v,N]=d(()=>n(g)),[j,S]=d(null),[L,C]=d(!0),[,D]=d(0);m(()=>{const e=setInterval(()=>D(e=>e+1),6e4);return()=>clearInterval(e)},[]);const[A,I]=d(!1),[$,F]=d(r),[J,M]=d(v),{prefs:G,save:H}=l(),X={...x,...G.weather_prefs??{}},[O,W]=d(X);o(h(()=>{F(r),M({...v}),W({...X}),I(!0)},[r,v,X])),m(()=>{let t=!1;return C(!0),e(r).then(e=>{t||(S(e),C(!1))}),()=>{t=!0}},[r]);const Z=e=>X.useFahrenheit?`${w(e)}°F`:`${e}°`;if(L&&!j)/* @__PURE__ */
29
29
  return p("div",{className:"flex items-center justify-center h-full bg-gradient-to-b from-sky-400 to-blue-500 rounded-lg text-on-accent/80 text-xs",style:{minHeight:110},children:/* @__PURE__ */p(c,{size:"sm",padding:"",label:"Loading"})});if(!j)/* @__PURE__ */
30
- return p("div",{className:"flex items-center justify-center h-full bg-slate-700 rounded-lg text-white/80 text-xs",style:{minHeight:110},children:"Couldn't load weather"});const[W,U,B]=t(j.code,j.isDay);/* @__PURE__ */
30
+ return p("div",{className:"flex items-center justify-center h-full bg-slate-700 rounded-lg text-white/80 text-xs",style:{minHeight:110},children:"Couldn't load weather"});const[B,U,Q]=t(j.code,j.isDay);/* @__PURE__ */
31
31
  return u(f,{children:[
32
32
  /* @__PURE__ */p("style",{children:"\n@keyframes wx-rain-a { 0% { transform: translate(0,-20px); opacity: 0; } 10% { opacity: 0.95; } 100% { transform: translate(8px,140px); opacity: 0; } }\n@keyframes wx-rain-b { 0% { transform: translate(0,-20px); opacity: 0; } 12% { opacity: 0.85; } 100% { transform: translate(12px,140px); opacity: 0; } }\n@keyframes wx-rain-c { 0% { transform: translate(0,-20px); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(5px,140px); opacity: 0; } }\n@keyframes wx-snow-a { 0% { transform: translate(0,-12px) rotate(0deg); opacity: 0; } 10% { opacity: 0.9; } 50% { transform: translate(10px,55px) rotate(180deg); } 100% { transform: translate(-4px,140px) rotate(360deg); opacity: 0; } }\n@keyframes wx-snow-b { 0% { transform: translate(0,-12px) rotate(0deg); opacity: 0; } 10% { opacity: 0.85; } 50% { transform: translate(-12px,55px) rotate(-180deg); } 100% { transform: translate(6px,140px) rotate(-360deg); opacity: 0; } }\n@keyframes wx-snow-c { 0% { transform: translate(0,-12px); opacity: 0; } 10% { opacity: 0.7; } 100% { transform: translate(2px,140px); opacity: 0; } }\n@keyframes wx-drift-cloud { 0% { transform: translateX(-40%); } 100% { transform: translateX(140%); } }\n@keyframes wx-twinkle { 0%, 100% { opacity: 0.25; transform: scale(1); } 50% { opacity: 1; transform: scale(1.6); } }\n@keyframes wx-flash { 0%, 86%, 100% { opacity: 0; } 87% { opacity: 0.95; } 88% { opacity: 0.15; } 89% { opacity: 0.85; } 90% { opacity: 0; } }\n@keyframes wx-bolt { 0%, 86%, 90%, 100% { opacity: 0; } 87% { opacity: 1; } 89% { opacity: 0.85; } }\n@keyframes wx-sun-pulse { 0%, 100% { transform: scale(1); opacity: 0.65; } 50% { transform: scale(1.12); opacity: 0.95; } }\n@keyframes wx-sun-rays { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }\n@keyframes wx-fog-drift { 0% { transform: translateX(-25%); opacity: 0.3; } 50% { opacity: 0.65; } 100% { transform: translateX(25%); opacity: 0.3; } }\n@keyframes wx-shooting-star { 0%, 95% { opacity: 0; transform: translate(0,0) scale(0); } 96% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(40px,30px) scale(1); } }\n"}),
33
- /* @__PURE__ */p("div",{className:"rounded-lg overflow-hidden",style:{backgroundColor:`rgba(15, 23, 42, ${v.activeOpacity/100})`,backdropFilter:v.activeBlur>0?`blur(${v.activeBlur}px)`:void 0},children:/* @__PURE__ */u("div",{className:`relative rounded-lg overflow-hidden text-white bg-gradient-to-br ${B}`,style:{height:110},children:[
34
- /* @__PURE__ */p(F,{code:j.code,isDay:j.isDay}),
33
+ /* @__PURE__ */p("div",{className:"rounded-lg overflow-hidden",style:{backgroundColor:`rgba(15, 23, 42, ${v.activeOpacity/100})`,backdropFilter:v.activeBlur>0?`blur(${v.activeBlur}px)`:void 0},children:/* @__PURE__ */u("div",{className:`relative rounded-lg overflow-hidden text-white bg-gradient-to-br ${Q}`,style:{height:110},children:[
34
+ /* @__PURE__ */p(T,{code:j.code,isDay:j.isDay}),
35
35
  /* @__PURE__ */u("div",{className:"relative z-10 px-3 py-3 flex flex-col h-full justify-between",children:[
36
36
  /* @__PURE__ */u("div",{className:"flex items-start justify-between gap-2",children:[
37
37
  /* @__PURE__ */u("div",{className:"min-w-0 flex-1",children:[
38
- /* @__PURE__ */p("div",{className:"text-base font-semibold leading-tight truncate drop-shadow-sm",children:j.city}),G.showLocalTime&&/* @__PURE__ */p("div",{className:"text-2xs opacity-90 leading-tight tabular-nums drop-shadow-sm",children:k(j.timezone,G.use24Hour)})]}),
39
- /* @__PURE__ */p("div",{className:"text-3xl font-extralight leading-none tracking-tight tabular-nums shrink-0 drop-shadow-sm",children:Q(j.temp)})]}),
38
+ /* @__PURE__ */p("div",{className:"text-base font-semibold leading-tight truncate drop-shadow-sm",children:j.city}),X.showLocalTime&&/* @__PURE__ */p("div",{className:"text-2xs opacity-90 leading-tight tabular-nums drop-shadow-sm",children:k(j.timezone,X.use24Hour)})]}),
39
+ /* @__PURE__ */p("div",{className:"text-3xl font-extralight leading-none tracking-tight tabular-nums shrink-0 drop-shadow-sm",children:Z(j.temp)})]}),
40
40
  /* @__PURE__ */u("div",{className:"flex items-end justify-between gap-2",children:[
41
41
  /* @__PURE__ */u("div",{className:"flex items-center gap-2 min-w-0",children:[
42
42
  /* @__PURE__ */p("span",{className:"text-lg leading-none drop-shadow-sm",children:U}),
43
- /* @__PURE__ */p("span",{className:"text-2xs font-medium drop-shadow-sm truncate",children:W})]}),
44
- /* @__PURE__ */u("span",{className:"text-2xs opacity-90 tabular-nums drop-shadow-sm shrink-0",children:["H:",Q(j.high)," L:",Q(j.low)]})]})]})]})}),
45
- /* @__PURE__ */u(i,{open:I,onClose:()=>J(!1),title:"Weather Settings",appearance:L,onAppearanceChange:H,onSave:()=>{s($),N(L),Z({weather_prefs:M}),localStorage.setItem(y,$),localStorage.setItem(g,JSON.stringify(L)),J(!1)},children:[
43
+ /* @__PURE__ */p("span",{className:"text-2xs font-medium drop-shadow-sm truncate",children:B})]}),
44
+ /* @__PURE__ */u("span",{className:"text-2xs opacity-90 tabular-nums drop-shadow-sm shrink-0",children:["H:",Z(j.high)," L:",Z(j.low)]})]})]})]})}),
45
+ /* @__PURE__ */u(i,{open:A,onClose:()=>I(!1),title:"Weather Settings",appearance:J,onAppearanceChange:M,onSave:()=>{s($),N(J),H({weather_prefs:O}),localStorage.setItem(y,$),localStorage.setItem(g,JSON.stringify(J)),I(!1)},children:[
46
46
  /* @__PURE__ */p("div",{className:"space-y-3",children:/* @__PURE__ */u("div",{children:[
47
47
  /* @__PURE__ */p("h3",{className:"text-sm font-semibold text-gray-700 mb-2",children:"Display"}),
48
48
  /* @__PURE__ */u("div",{className:"flex items-center gap-3 mb-2",children:[
49
49
  /* @__PURE__ */p("span",{className:"text-sm text-gray-600 w-24",children:"Temperature"}),
50
- /* @__PURE__ */p("div",{className:"flex gap-1",children:[{key:!1,label:"°C"},{key:!0,label:"°F"}].map(e=>/* @__PURE__ */p("button",{onClick:()=>O(t=>({...t,useFahrenheit:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(M.useFahrenheit===e.key?"bg-blue-600 text-white border-blue-600":"bg-white text-gray-700 border-gray-300 hover:bg-gray-50"),children:e.label},String(e.key)))})]}),
50
+ /* @__PURE__ */p("div",{className:"flex gap-1",children:[{key:!1,label:"°C"},{key:!0,label:"°F"}].map(e=>/* @__PURE__ */p("button",{onClick:()=>W(t=>({...t,useFahrenheit:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(O.useFahrenheit===e.key?"bg-blue-600 text-white border-blue-600":"bg-white text-gray-700 border-gray-300 hover:bg-gray-50"),children:e.label},String(e.key)))})]}),
51
51
  /* @__PURE__ */u("div",{className:"flex items-center gap-3 mb-2",children:[
52
52
  /* @__PURE__ */p("span",{className:"text-sm text-gray-600 w-24",children:"Time Format"}),
53
- /* @__PURE__ */p("div",{className:"flex gap-1",children:[{key:!1,label:"AM/PM"},{key:!0,label:"24H"}].map(e=>/* @__PURE__ */p("button",{onClick:()=>O(t=>({...t,use24Hour:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(M.use24Hour===e.key?"bg-blue-600 text-white border-blue-600":"bg-white text-gray-700 border-gray-300 hover:bg-gray-50"),children:e.label},String(e.key)))})]}),
53
+ /* @__PURE__ */p("div",{className:"flex gap-1",children:[{key:!1,label:"AM/PM"},{key:!0,label:"24H"}].map(e=>/* @__PURE__ */p("button",{onClick:()=>W(t=>({...t,use24Hour:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(O.use24Hour===e.key?"bg-blue-600 text-white border-blue-600":"bg-white text-gray-700 border-gray-300 hover:bg-gray-50"),children:e.label},String(e.key)))})]}),
54
54
  /* @__PURE__ */u("label",{className:"flex items-center gap-2 cursor-pointer",children:[
55
- /* @__PURE__ */p("input",{type:"checkbox",checked:M.showLocalTime,onChange:e=>O(t=>({...t,showLocalTime:e.target.checked})),className:"rounded border-gray-300 text-blue-600 h-3.5 w-3.5"}),
55
+ /* @__PURE__ */p("input",{type:"checkbox",checked:O.showLocalTime,onChange:e=>W(t=>({...t,showLocalTime:e.target.checked})),className:"rounded border-gray-300 text-blue-600 h-3.5 w-3.5"}),
56
56
  /* @__PURE__ */p("span",{className:"text-sm text-gray-600",children:"Show local time"})]})]})}),
57
57
  /* @__PURE__ */u("div",{children:[
58
58
  /* @__PURE__ */p("h3",{className:"text-sm font-semibold text-gray-700 mb-2",children:"City"}),
59
- /* @__PURE__ */p("select",{value:$,onChange:e=>A(e.target.value),className:"w-full bg-surface-sunken border border-line rounded px-2 h-8 text-sm focus:outline-none focus:ring-1 focus:ring-blue-500",children:Object.keys(a).map(e=>/* @__PURE__ */p("option",{value:e,children:e},e))}),
60
- /* @__PURE__ */p("p",{className:"mt-1 text-2xs text-ink-faintest",children:"Auto-detected from your timezone; change if needed."})]})]})]})}export{I as default};
59
+ /* @__PURE__ */p("select",{value:$,onChange:e=>F(e.target.value),className:"w-full bg-surface-sunken border border-line rounded px-2 h-8 text-sm focus:outline-none focus:ring-1 focus:ring-blue-500",children:Object.keys(a).map(e=>/* @__PURE__ */p("option",{value:e,children:e},e))}),
60
+ /* @__PURE__ */p("p",{className:"mt-1 text-2xs text-ink-faintest",children:"Auto-detected from your timezone; change if needed."})]})]})]})}export{A as default};
@@ -1,6 +1,6 @@
1
- import{AVAILABLE_CITIES as e,fetchCityWeather as t,getCondition as n,toFahrenheit as r}from"./chunk-FBDZGO3V.js";import{loadAppearance as s,WidgetSettingsModal as i}from"./chunk-BFCIOWYI.js";import{useWidgetSettings as a}from"./chunk-AG6Y62TP.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-SXHNZFUY.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-NGQZI7HP.js";import"./chunk-MXITMJCT.js";import"./chunk-7ADTFFEM.js";import"./chunk-KWTK6TGH.js";import"./chunk-3DVNXNTF.js";import"./chunk-27ZJQUDS.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-QCOXJXGZ.js";import"./chunk-NV7QRWQJ.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as c}from"./chunk-KC3EX26K.js";import"./chunk-CDAJKLGL.js";import"./chunk-JMGDGNM7.js";import"./chunk-ZICGXJUB.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import"./chunk-JOAKKXTL.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as o}from"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-TJSJVC6P.js";import"./chunk-C3QOHMR6.js";import{useState as m,useEffect as l,useCallback as h}from"react";import{jsxs as p,Fragment as u,jsx as d}from"react/jsx-runtime";var k="world_clock_appearance",g=["London","Shanghai","New York"];function j(){const{prefs:j,save:x}=c(),[b,f]=m(()=>s(k)),[y,N]=m(!1),[v,w]=m([]),[C,F]=m(b),T={useFahrenheit:!!j.weather_prefs?.useFahrenheit},[D,J]=m(T),[G,S]=m(()=>/* @__PURE__ */new Date);l(()=>{const e=setInterval(()=>S(/* @__PURE__ */new Date),3e4);return()=>clearInterval(e)},[]);const Q=Object.fromEntries(Object.entries(e).map(([e,t])=>[t.tz,e])),U=j.world_clocks,Z=(()=>{if(!Array.isArray(U)||0===U.length)return g;const t=[];for(const n of U){const r=e[n]?n:Q[n];r&&!t.includes(r)&&t.push(r)}return t.length?t:g})(),[M,W]=m({}),[X,A]=m(!0);l(()=>{let e=!1;return A(!0),(async()=>{const n={};await Promise.all(Z.map(async e=>{const r=await t(e);r&&(n[e]=r)})),e||(W(n),A(!1))})(),()=>{e=!0}},[Z.join(",")]),a(h(()=>{w([...Z]),F({...b}),J({...T}),N(!0)},[Z.join(","),b,T.useFahrenheit]));const O=e=>T.useFahrenheit?`${r(e)}°`:`${e}°`;/* @__PURE__ */
1
+ import{AVAILABLE_CITIES as e,fetchCityWeather as t,getCondition as n,toFahrenheit as r}from"./chunk-FBDZGO3V.js";import{loadAppearance as s,WidgetSettingsModal as i}from"./chunk-AELSVMXH.js";import{useWidgetSettings as a}from"./chunk-G6LSBF3P.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-Y6E7IRK2.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-WLUJQLXG.js";import"./chunk-QU23OGAX.js";import"./chunk-PCZSE6CC.js";import"./chunk-MWTCGJAI.js";import"./chunk-3DVNXNTF.js";import"./chunk-3N5OI6VM.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-WQ4YKWN2.js";import"./chunk-JZBLOIL7.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as c}from"./chunk-KC3EX26K.js";import"./chunk-CDAJKLGL.js";import"./chunk-JMGDGNM7.js";import"./chunk-ZICGXJUB.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import"./chunk-JOAKKXTL.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as o}from"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-JSHMIMAJ.js";import"./chunk-C3QOHMR6.js";import{useState as m,useEffect as l,useCallback as h}from"react";import{jsxs as p,Fragment as u,jsx as d}from"react/jsx-runtime";var k="world_clock_appearance",g=["London","Shanghai","New York"];function j(){const{prefs:j,save:x}=c(),[b,f]=m(()=>s(k)),[y,N]=m(!1),[v,w]=m([]),[C,D]=m(b),F={useFahrenheit:!!j.weather_prefs?.useFahrenheit},[J,L]=m(F),[S,G]=m(()=>/* @__PURE__ */new Date);l(()=>{const e=setInterval(()=>G(/* @__PURE__ */new Date),3e4);return()=>clearInterval(e)},[]);const M=Object.fromEntries(Object.entries(e).map(([e,t])=>[t.tz,e])),T=j.world_clocks,A=(()=>{if(!Array.isArray(T)||0===T.length)return g;const t=[];for(const n of T){const r=e[n]?n:M[n];r&&!t.includes(r)&&t.push(r)}return t.length?t:g})(),[U,W]=m({}),[O,Q]=m(!0);l(()=>{let e=!1;return Q(!0),(async()=>{const n={};await Promise.all(A.map(async e=>{const r=await t(e);r&&(n[e]=r)})),e||(W(n),Q(!1))})(),()=>{e=!0}},[A.join(",")]),a(h(()=>{w([...A]),D({...b}),L({...F}),N(!0)},[A.join(","),b,F.useFahrenheit]));const X=e=>F.useFahrenheit?`${r(e)}°`:`${e}°`;/* @__PURE__ */
2
2
  return p(u,{children:[
3
- /* @__PURE__ */d("div",{style:{backgroundColor:`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${b.activeOpacity/100})`,backdropFilter:b.activeBlur>0?`blur(${b.activeBlur}px)`:void 0},children:/* @__PURE__ */p("div",{className:"divide-y divide-gray-200",children:[X&&Z.every(e=>!M[e])&&/* @__PURE__ */d(o,{size:"sm",padding:"py-6",label:"Loading"}),Z.map(t=>{const r=M[t],s=e[t]?.tz??"UTC",{time:i,ampm:a}=function(e,t){try{const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"2-digit",hour12:!0}).formatToParts(t),r=n.find(e=>"hour"===e.type)?.value||"12";return{time:`${r}:${n.find(e=>"minute"===e.type)?.value||"00"}`,ampm:(n.find(e=>"dayPeriod"===e.type)?.value||"").toUpperCase()}}catch{return{time:"",ampm:""}}}(s,G);if(!r)/* @__PURE__ */
3
+ /* @__PURE__ */d("div",{style:{backgroundColor:`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${b.activeOpacity/100})`,backdropFilter:b.activeBlur>0?`blur(${b.activeBlur}px)`:void 0},children:/* @__PURE__ */p("div",{className:"divide-y divide-gray-200",children:[O&&A.every(e=>!U[e])&&/* @__PURE__ */d(o,{size:"sm",padding:"py-6",label:"Loading"}),A.map(t=>{const r=U[t],s=e[t]?.tz??"UTC",{time:i,ampm:a}=function(e,t){try{const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"2-digit",hour12:!0}).formatToParts(t),r=n.find(e=>"hour"===e.type)?.value||"12";return{time:`${r}:${n.find(e=>"minute"===e.type)?.value||"00"}`,ampm:(n.find(e=>"dayPeriod"===e.type)?.value||"").toUpperCase()}}catch{return{time:"",ampm:""}}}(s,S);if(!r)/* @__PURE__ */
4
4
  return p("div",{className:"px-4 py-3",children:[
5
5
  /* @__PURE__ */p("div",{className:"flex items-baseline justify-between gap-2",children:[
6
6
  /* @__PURE__ */d("span",{className:"text-base font-semibold tracking-tight text-ink-strongest truncate",children:t}),
@@ -10,7 +10,7 @@ return p("div",{className:"px-4 py-3",children:[
10
10
  return p("div",{className:"px-4 py-3",children:[
11
11
  /* @__PURE__ */p("div",{className:"flex items-baseline justify-between gap-2",children:[
12
12
  /* @__PURE__ */d("span",{className:"text-base font-semibold tracking-tight text-ink-strongest truncate",children:t}),
13
- /* @__PURE__ */d("span",{className:"text-2xl font-extralight leading-none tabular-nums tracking-tight text-ink-strongest shrink-0",children:O(r.temp)})]}),
13
+ /* @__PURE__ */d("span",{className:"text-2xl font-extralight leading-none tabular-nums tracking-tight text-ink-strongest shrink-0",children:X(r.temp)})]}),
14
14
  /* @__PURE__ */p("div",{className:"flex items-center justify-between gap-2 mt-2 text-2xs",children:[
15
15
  /* @__PURE__ */p("div",{className:"flex items-center gap-2 min-w-0 text-ink-faint",children:[
16
16
  /* @__PURE__ */d("span",{className:"text-base leading-none shrink-0",children:m}),
@@ -18,13 +18,13 @@ return p("div",{className:"px-4 py-3",children:[
18
18
  /* @__PURE__ */d("span",{className:"text-3xs font-medium ml-0.5 opacity-70",children:a})]}),
19
19
  /* @__PURE__ */d("span",{className:"text-gray-300 shrink-0",children:"·"}),
20
20
  /* @__PURE__ */d("span",{className:"truncate",children:c})]}),
21
- /* @__PURE__ */p("span",{className:"tabular-nums text-gray-500 shrink-0",children:["H:",O(r.high)," L:",O(r.low)]})]})]},t)})]})}),
22
- /* @__PURE__ */p(i,{open:y,onClose:()=>N(!1),title:"World Clock Settings",appearance:C,onAppearanceChange:F,onSave:()=>{0!==v.length&&(x({world_clocks:v,weather_prefs:{...j.weather_prefs??{},useFahrenheit:D.useFahrenheit}}),f(C),localStorage.setItem(k,JSON.stringify(C)),N(!1))},children:[
21
+ /* @__PURE__ */p("span",{className:"tabular-nums text-gray-500 shrink-0",children:["H:",X(r.high)," L:",X(r.low)]})]})]},t)})]})}),
22
+ /* @__PURE__ */p(i,{open:y,onClose:()=>N(!1),title:"World Clock Settings",appearance:C,onAppearanceChange:D,onSave:()=>{0!==v.length&&(x({world_clocks:v,weather_prefs:{...j.weather_prefs??{},useFahrenheit:J.useFahrenheit}}),f(C),localStorage.setItem(k,JSON.stringify(C)),N(!1))},children:[
23
23
  /* @__PURE__ */p("div",{children:[
24
24
  /* @__PURE__ */d("h3",{className:"text-sm font-semibold text-gray-700 mb-2",children:"Display"}),
25
25
  /* @__PURE__ */p("div",{className:"flex items-center gap-3 mb-2",children:[
26
26
  /* @__PURE__ */d("span",{className:"text-sm text-gray-600 w-24",children:"Temperature"}),
27
- /* @__PURE__ */d("div",{className:"flex gap-1",children:[{key:!1,label:"°C"},{key:!0,label:"°F"}].map(e=>/* @__PURE__ */d("button",{onClick:()=>J(t=>({...t,useFahrenheit:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(D.useFahrenheit===e.key?"bg-blue-600 text-white border-blue-600":"bg-white text-gray-700 border-gray-300 hover:bg-gray-50"),children:e.label},String(e.key)))})]}),
27
+ /* @__PURE__ */d("div",{className:"flex gap-1",children:[{key:!1,label:"°C"},{key:!0,label:"°F"}].map(e=>/* @__PURE__ */d("button",{onClick:()=>L(t=>({...t,useFahrenheit:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(J.useFahrenheit===e.key?"bg-blue-600 text-white border-blue-600":"bg-white text-gray-700 border-gray-300 hover:bg-gray-50"),children:e.label},String(e.key)))})]}),
28
28
  /* @__PURE__ */d("p",{className:"text-2xs text-ink-faintest mt-1",children:"Shared with the Weather widget."})]}),
29
29
  /* @__PURE__ */p("div",{children:[
30
30
  /* @__PURE__ */d("h3",{className:"text-sm font-semibold text-gray-700 mb-2",children:"Cities"}),
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
3
  import { UIMessage, FileUIPart } from 'ai';
4
- import { b as IconName } from '../names-bEzx4RQ8.js';
4
+ import { b as IconName } from '../names-Cj_F68_V.js';
5
5
  import { MarkdownTableAction } from '../shell/Markdown.js';
6
6
 
7
7
  /** The conversation the server keeps for this chat. `guestToken` is set for an