efficient-shell 12.28.0 → 12.30.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 (326) hide show
  1. package/README.md +38 -0
  2. package/dist/{Browser-PC45PVTN.js → Browser-FQHXHI3R.js} +16 -16
  3. package/dist/Calculator-XCRU5K4O.js +29 -0
  4. package/dist/{CurrencyConverter-BB4QWNER.js → CurrencyConverter-EHIQIFJK.js} +9 -9
  5. package/dist/Files-LTUUGPAM.js +141 -0
  6. package/dist/{Notepad-BLUA2254.js → Notepad-JPAXNEFR.js} +9 -9
  7. package/dist/PdfViewer-J55QKFNS.js +1 -0
  8. package/dist/{PomodoroTimer-KIJKDHVO.js → PomodoroTimer-IVDZBBUN.js} +8 -8
  9. package/dist/{Preview-JVL2N5GN.js → Preview-KRK4XT2B.js} +31 -31
  10. package/dist/Sidebar-FCXIPW5K.js +44 -0
  11. package/dist/{Stock-JQEJMIMG.js → Stock-OBS2LPX4.js} +7 -7
  12. package/dist/{Weather-FAQX55XL.js → Weather-I4TJBIEN.js} +18 -18
  13. package/dist/{WorldClock-YSZNGEL2.js → WorldClock-YU2ZPVSA.js} +6 -6
  14. package/dist/ai/index.js +134 -134
  15. package/dist/apps/ImageAnnotator.js +1 -1
  16. package/dist/apps/index.js +1 -1
  17. package/dist/bin/media-host-check.js +1 -1
  18. package/dist/bin/ui-check.js +1 -1
  19. package/dist/charts/BoxPlotChart.js +1 -1
  20. package/dist/charts/CandlestickChart.js +1 -1
  21. package/dist/charts/CartesianPlot.js +1 -1
  22. package/dist/charts/ChartBrush.js +1 -1
  23. package/dist/charts/ChartFrame.js +1 -1
  24. package/dist/charts/ChartSkeleton.js +1 -1
  25. package/dist/charts/ChordChart.js +1 -1
  26. package/dist/charts/ColumnChart.js +1 -1
  27. package/dist/charts/FunnelChart.js +1 -1
  28. package/dist/charts/HeatmapChart.js +1 -1
  29. package/dist/charts/HistogramChart.js +1 -1
  30. package/dist/charts/Meter.js +1 -1
  31. package/dist/charts/PieChart.js +1 -1
  32. package/dist/charts/RadarChart.js +1 -1
  33. package/dist/charts/RadialBarChart.js +1 -1
  34. package/dist/charts/RangeChart.js +1 -1
  35. package/dist/charts/RankedBars.js +1 -1
  36. package/dist/charts/SankeyChart.js +1 -1
  37. package/dist/charts/ScatterChart.js +1 -1
  38. package/dist/charts/SpecChart.js +1 -1
  39. package/dist/charts/StatTile.js +1 -1
  40. package/dist/charts/SunburstChart.js +1 -1
  41. package/dist/charts/TimeSeriesChart.js +1 -1
  42. package/dist/charts/TreemapChart.js +1 -1
  43. package/dist/charts/WaterfallChart.js +1 -1
  44. package/dist/{chunk-W2663E4S.js → chunk-23CZSU3H.js} +3 -3
  45. package/dist/{chunk-47UH3D4B.js → chunk-2DCATU5B.js} +1 -1
  46. package/dist/{chunk-RF3ZFTAU.js → chunk-2IEKMFVL.js} +1 -1
  47. package/dist/{chunk-TDXRG43I.js → chunk-2N6WWL7Y.js} +1 -1
  48. package/dist/{chunk-O4YKOS74.js → chunk-36MM4YRK.js} +9 -9
  49. package/dist/{chunk-HLE4LTRU.js → chunk-37EYKPR6.js} +1 -1
  50. package/dist/{chunk-RVVQDBV7.js → chunk-3B3QIHF7.js} +5 -5
  51. package/dist/{chunk-BKYRHQK2.js → chunk-3HLV6BEC.js} +12 -12
  52. package/dist/{chunk-BT2YPDQL.js → chunk-3N4XJS43.js} +3 -3
  53. package/dist/{chunk-232YPI2L.js → chunk-3R2TMLKH.js} +5 -5
  54. package/dist/{chunk-CON5NRCO.js → chunk-3ZC53F4T.js} +3 -3
  55. package/dist/{chunk-ZGCCV4WE.js → chunk-42GNFUAP.js} +10 -10
  56. package/dist/{chunk-OMFYTCBI.js → chunk-4FUQK2LK.js} +1 -1
  57. package/dist/{chunk-WKYNPGFB.js → chunk-4MCI7UHQ.js} +5 -5
  58. package/dist/chunk-4SEPQN2N.js +12 -0
  59. package/dist/{chunk-GEVNBBM7.js → chunk-4WW3SNL6.js} +1 -1
  60. package/dist/chunk-4YCWO2GZ.js +14 -0
  61. package/dist/{chunk-XSVQ5V7L.js → chunk-5O5QMMMG.js} +9 -9
  62. package/dist/{chunk-EATV7FMU.js → chunk-5RLJAXDR.js} +8 -8
  63. package/dist/{chunk-3YBXA72C.js → chunk-5X3Z45SL.js} +1 -1
  64. package/dist/{chunk-UEFIUTOU.js → chunk-5XYRFK7D.js} +1 -1
  65. package/dist/{chunk-6KOMF6WL.js → chunk-5ZS3VOJH.js} +1 -1
  66. package/dist/{chunk-YWNHK6Z5.js → chunk-64ZDYUE7.js} +15 -15
  67. package/dist/{chunk-WX2Q76WC.js → chunk-67JLD6AU.js} +6 -6
  68. package/dist/{chunk-OM6VWUAZ.js → chunk-6EETON2U.js} +1 -1
  69. package/dist/{chunk-4PIQG2ZK.js → chunk-6EXWWPAW.js} +1 -1
  70. package/dist/{chunk-ATZ262BR.js → chunk-6UB6YY3H.js} +1 -1
  71. package/dist/{chunk-ZGWXSHVM.js → chunk-77BK2IAJ.js} +1 -1
  72. package/dist/{chunk-Y4FWTYZS.js → chunk-7DTWIWFO.js} +6 -6
  73. package/dist/chunk-7IGWU6DK.js +8 -0
  74. package/dist/{chunk-XAEI36TW.js → chunk-AIGLJYQ5.js} +1 -1
  75. package/dist/chunk-AJVL6LXI.js +22 -0
  76. package/dist/{chunk-2OUAPOLK.js → chunk-ANGNTN36.js} +1 -1
  77. package/dist/{chunk-BC4FE77W.js → chunk-AYCWVVJ3.js} +50 -50
  78. package/dist/{chunk-7GJIIBJD.js → chunk-B27XRZ47.js} +1 -1
  79. package/dist/{chunk-EWVE5XG6.js → chunk-BEB3AGSY.js} +1 -1
  80. package/dist/{chunk-DIHHV6T6.js → chunk-CBBU74QT.js} +1 -1
  81. package/dist/chunk-CHV7U5UV.js +9 -0
  82. package/dist/{chunk-TGLUENXE.js → chunk-CIOPLPZW.js} +1 -1
  83. package/dist/{chunk-SS3CROPR.js → chunk-CVEVPB3O.js} +3 -3
  84. package/dist/chunk-CXXMSYA6.js +1 -0
  85. package/dist/{chunk-6Q7L32LL.js → chunk-DHRCI7KE.js} +1 -1
  86. package/dist/{chunk-HNEI2RKX.js → chunk-DOKA65JI.js} +1 -1
  87. package/dist/{chunk-XKNKRKHH.js → chunk-E7RMS776.js} +14 -14
  88. package/dist/chunk-EWSOX4WP.js +28 -0
  89. package/dist/{chunk-K5PDLRYH.js → chunk-FEWWCWKV.js} +9 -9
  90. package/dist/{chunk-SR4W2SYQ.js → chunk-FIXZT5TZ.js} +7 -7
  91. package/dist/{chunk-LAO6GLBY.js → chunk-FM34DWV7.js} +6 -6
  92. package/dist/{chunk-VP2GI3UP.js → chunk-FPYOZOUY.js} +8 -8
  93. package/dist/{chunk-VLKJN6HX.js → chunk-FSORYU5C.js} +12 -12
  94. package/dist/{chunk-MKNDDB6U.js → chunk-FYGPJPU7.js} +1 -1
  95. package/dist/{chunk-AFWLCXQD.js → chunk-GANZLRMW.js} +8 -8
  96. package/dist/{chunk-N5RV73CI.js → chunk-GBPGZFBS.js} +4 -4
  97. package/dist/chunk-GKX3C3JE.js +13 -0
  98. package/dist/{chunk-JLRF6FN7.js → chunk-GL4NELAT.js} +1 -1
  99. package/dist/{chunk-DGHSCKOE.js → chunk-GN3AHAVY.js} +4 -4
  100. package/dist/{chunk-7ZJRBFHA.js → chunk-HC3BZPWX.js} +1 -1
  101. package/dist/{chunk-JSHMIMAJ.js → chunk-HCDG7EUR.js} +1 -1
  102. package/dist/{chunk-GUHCKMC7.js → chunk-HE2I6KWY.js} +2 -2
  103. package/dist/chunk-HJECGV6W.js +5 -0
  104. package/dist/{chunk-TYQ2JL4J.js → chunk-HOXXEF52.js} +1 -1
  105. package/dist/{chunk-34L5SRM7.js → chunk-HRNT4UDG.js} +18 -18
  106. package/dist/{chunk-WPG3ZHYT.js → chunk-HU24RSAE.js} +1 -1
  107. package/dist/{chunk-7TNZ3DTT.js → chunk-I6V4DMNR.js} +2 -2
  108. package/dist/{chunk-EEB5XPWP.js → chunk-IBPULOGJ.js} +2 -2
  109. package/dist/{chunk-RZ2DWX4N.js → chunk-ILSE5F5F.js} +5 -5
  110. package/dist/{chunk-KAKJ7ENS.js → chunk-IOIY54KO.js} +2 -2
  111. package/dist/{chunk-NUPK6CUV.js → chunk-IQTURGC4.js} +1 -1
  112. package/dist/{chunk-VBLCYL4L.js → chunk-JA5WM66L.js} +1 -1
  113. package/dist/{chunk-XAF5ZI7H.js → chunk-JGZEZHMP.js} +1 -1
  114. package/dist/{chunk-CBVKGAZH.js → chunk-JOANOIVK.js} +1 -1
  115. package/dist/{chunk-24Y5JHIR.js → chunk-JTRQ7HAS.js} +1 -1
  116. package/dist/{chunk-CEIIQRK5.js → chunk-K6LO6QI5.js} +6 -6
  117. package/dist/{chunk-VLBIM33E.js → chunk-KHFPF534.js} +6 -6
  118. package/dist/{chunk-WN3JHPJI.js → chunk-KKYNDLOC.js} +6 -6
  119. package/dist/{chunk-4IHYWLWE.js → chunk-KLG6RYYC.js} +5 -5
  120. package/dist/{chunk-7K3FYCRZ.js → chunk-KNNFNOX7.js} +9 -9
  121. package/dist/chunk-KPFP2I2S.js +8 -0
  122. package/dist/{chunk-JZBLOIL7.js → chunk-KPPKPGQI.js} +1 -1
  123. package/dist/{chunk-XHSMDUEW.js → chunk-LBLWN3SH.js} +3 -3
  124. package/dist/chunk-LHATGPIE.js +19 -0
  125. package/dist/{chunk-TKIYZE7V.js → chunk-LQD54ZL5.js} +1 -1
  126. package/dist/{chunk-MTYEY7HT.js → chunk-M2GF44WC.js} +12 -12
  127. package/dist/{chunk-56XCGOX5.js → chunk-MFZ4YMXE.js} +6 -6
  128. package/dist/{chunk-VFHKD7TQ.js → chunk-MHVWUYEN.js} +1 -1
  129. package/dist/{chunk-BFRGDRFK.js → chunk-MKPZIEQP.js} +22 -22
  130. package/dist/{chunk-LL4KF43W.js → chunk-MRVW6F5E.js} +1 -1
  131. package/dist/chunk-MUSNAMWH.js +1 -0
  132. package/dist/{chunk-VEQ45GAH.js → chunk-MVBDE4AX.js} +1 -1
  133. package/dist/{chunk-V3XS6BTJ.js → chunk-MYJ3HQYG.js} +12 -12
  134. package/dist/{chunk-JFGJJNT2.js → chunk-N2BWOHNM.js} +6 -6
  135. package/dist/{chunk-N2445WHJ.js → chunk-NJ6WZHXC.js} +5 -5
  136. package/dist/{chunk-OXRQIWRT.js → chunk-NLQLVXMJ.js} +1 -1
  137. package/dist/{chunk-HSUTZCRT.js → chunk-NSNM4QIV.js} +5 -5
  138. package/dist/{chunk-QB2GJNGB.js → chunk-O3SCB4QZ.js} +8 -8
  139. package/dist/{chunk-HVYXJLAV.js → chunk-OMSIXLK4.js} +1 -1
  140. package/dist/{chunk-74JMBOQH.js → chunk-P4NWDRHS.js} +26 -26
  141. package/dist/{chunk-X5MUSNKH.js → chunk-PAVOVX3D.js} +1 -1
  142. package/dist/{chunk-LIWBCIRZ.js → chunk-PBZ3UQMS.js} +4 -4
  143. package/dist/chunk-PRWA4AAC.js +11 -0
  144. package/dist/{chunk-MWTCGJAI.js → chunk-Q4BJW37U.js} +1 -1
  145. package/dist/{chunk-WNOXHJVT.js → chunk-QB7TIWHT.js} +5 -5
  146. package/dist/{chunk-YO26RV3H.js → chunk-QF4FYOVE.js} +1 -1
  147. package/dist/{chunk-DJXXY23A.js → chunk-QHWD3G7T.js} +2 -2
  148. package/dist/{chunk-WXZZGHET.js → chunk-QT34GMZR.js} +1 -1
  149. package/dist/{chunk-UH5ZGWSA.js → chunk-QV5A7NFQ.js} +8 -8
  150. package/dist/chunk-RJG67VRP.js +15 -0
  151. package/dist/{chunk-63IGYBCQ.js → chunk-RMUOUMV2.js} +2 -2
  152. package/dist/{chunk-3FBXJO77.js → chunk-RPXRMTOU.js} +1 -1
  153. package/dist/chunk-RVD6HJUJ.js +4 -0
  154. package/dist/{chunk-NN32QUCE.js → chunk-SAAXAAAH.js} +1 -1
  155. package/dist/chunk-TIYRBJSB.js +7 -0
  156. package/dist/{chunk-4BKJ6A5H.js → chunk-TJ5ZX5HP.js} +10 -10
  157. package/dist/chunk-TN3W72FC.js +8 -0
  158. package/dist/{chunk-2DYVVHZA.js → chunk-U22563X2.js} +1 -1
  159. package/dist/{chunk-QADNVFV5.js → chunk-U45APXV3.js} +1 -1
  160. package/dist/{chunk-OOWPLQD5.js → chunk-UEADX2GV.js} +2 -2
  161. package/dist/chunk-UK2D2CSB.js +14 -0
  162. package/dist/{chunk-Z66QBDNU.js → chunk-UOHHIEH4.js} +1 -1
  163. package/dist/{chunk-H2CPT6K3.js → chunk-UQNKFMJR.js} +12 -12
  164. package/dist/{chunk-SE6IQZYW.js → chunk-V64XY7L4.js} +9 -9
  165. package/dist/{chunk-75H4BWNC.js → chunk-VEF3STCH.js} +1 -1
  166. package/dist/chunk-VLI2ED22.js +7 -0
  167. package/dist/{chunk-V4XR4MOS.js → chunk-VREZFFRE.js} +1 -1
  168. package/dist/chunk-VY5NO4TS.js +2 -0
  169. package/dist/{chunk-CMJD5URC.js → chunk-WCJR2GNH.js} +18 -18
  170. package/dist/{chunk-Y7KDCC6E.js → chunk-WM37FXRK.js} +1 -1
  171. package/dist/{chunk-4LOHQ4QB.js → chunk-X27K2NCU.js} +5 -5
  172. package/dist/{chunk-ZBJ7FTA5.js → chunk-X5RFTIHV.js} +1 -1
  173. package/dist/chunk-XJTZU7UH.js +4 -0
  174. package/dist/{chunk-RBS3AWE7.js → chunk-XK3VYRLR.js} +1 -1
  175. package/dist/{chunk-FJVZ2W55.js → chunk-XMAOLCQV.js} +1 -1
  176. package/dist/{chunk-GC4N4UQM.js → chunk-XXRUDMD5.js} +5 -5
  177. package/dist/{chunk-AMIMNRYU.js → chunk-Y6H5C6A4.js} +1 -1
  178. package/dist/{chunk-YYGJJ6EI.js → chunk-YGKQMENL.js} +1 -1
  179. package/dist/{chunk-NOGSS432.js → chunk-YNE5YC6E.js} +1 -1
  180. package/dist/chunk-YS3CF7GL.js +2 -0
  181. package/dist/{chunk-IB3LLQZC.js → chunk-ZSVBEJ4G.js} +1 -1
  182. package/dist/data/DataTable.js +1 -1
  183. package/dist/data/EntityList.js +1 -1
  184. package/dist/data/Kanban.js +1 -1
  185. package/dist/data/ListFooter.js +1 -1
  186. package/dist/data/ListLoadError.js +1 -1
  187. package/dist/data/Pagination.js +1 -1
  188. package/dist/data/ResizableTable.js +1 -1
  189. package/dist/file-intake/index.js +1 -1
  190. package/dist/forms/BorderInput.js +1 -1
  191. package/dist/forms/BrandAssetEditor.js +1 -1
  192. package/dist/forms/Calendar.js +1 -1
  193. package/dist/forms/ColorPicker.js +1 -1
  194. package/dist/forms/ComposerAttachments.js +1 -1
  195. package/dist/forms/CornersInput.js +1 -1
  196. package/dist/forms/DatePicker.js +1 -1
  197. package/dist/forms/DateRangePicker.js +1 -1
  198. package/dist/forms/DateTimePicker.js +1 -1
  199. package/dist/forms/DisplayChips.js +1 -1
  200. package/dist/forms/FilePicker.js +1 -1
  201. package/dist/forms/FormErrorSummary.js +1 -1
  202. package/dist/forms/IconPicker.js +1 -1
  203. package/dist/forms/ImageFocusPoint.js +1 -1
  204. package/dist/forms/InputNumber.js +1 -1
  205. package/dist/forms/LinkPicker.js +1 -1
  206. package/dist/forms/MediaLibrary.js +1 -1
  207. package/dist/forms/MediaUploadField.js +1 -1
  208. package/dist/forms/MediaUploadGrid.js +1 -1
  209. package/dist/forms/MediaUsedInList.js +1 -1
  210. package/dist/forms/NumericKeypad.js +1 -1
  211. package/dist/forms/PositionInput.js +1 -1
  212. package/dist/forms/Select.js +1 -1
  213. package/dist/forms/SidesInput.d.ts +13 -2
  214. package/dist/forms/SidesInput.js +1 -1
  215. package/dist/forms/Slider.js +1 -1
  216. package/dist/forms/Snippet.js +1 -1
  217. package/dist/forms/TagInput.js +1 -1
  218. package/dist/forms/TextToolbar.js +1 -1
  219. package/dist/forms/TimePicker.js +1 -1
  220. package/dist/forms/WidthsBar.js +1 -1
  221. package/dist/forms/mediaLibraryMenu.js +1 -1
  222. package/dist/forms/mediaMoveItems.js +1 -1
  223. package/dist/forms/textAlign.js +1 -1
  224. package/dist/forms/useFileIntake.js +1 -1
  225. package/dist/hooks/useTheme.d.ts +1 -1
  226. package/dist/icons/efficient-glyphs.js +1 -1
  227. package/dist/icons/efficient-looks.js +1 -1
  228. package/dist/icons/efficient.js +1 -1
  229. package/dist/icons/looks/map.js +1 -1
  230. package/dist/icons/payment.js +1 -1
  231. package/dist/icons/sets.js +1 -1
  232. package/dist/index.d.ts +4 -4
  233. package/dist/index.js +132 -132
  234. package/dist/locales/zh-Hans.js +1 -1
  235. package/dist/map/index.js +4 -4
  236. package/dist/model-viewer/index.d.ts +123 -0
  237. package/dist/model-viewer/index.js +7 -0
  238. package/dist/page-tabs/index.js +5 -5
  239. package/dist/pdf/index.js +1 -1
  240. package/dist/shell/Accordion.js +1 -1
  241. package/dist/shell/AppUpdateBanner.js +1 -1
  242. package/dist/shell/Avatar.js +1 -1
  243. package/dist/shell/Banner.js +1 -1
  244. package/dist/shell/Breadcrumbs.js +1 -1
  245. package/dist/shell/BudgetBar.js +1 -1
  246. package/dist/shell/Card.js +1 -1
  247. package/dist/shell/ColoredBadge.js +1 -1
  248. package/dist/shell/ConfirmDialog.js +1 -1
  249. package/dist/shell/ContainerFillChart.js +1 -1
  250. package/dist/shell/CountBadge.js +1 -1
  251. package/dist/shell/Dialog.js +1 -1
  252. package/dist/shell/Drawer.js +1 -1
  253. package/dist/shell/EditableGrid.js +1 -1
  254. package/dist/shell/EmptyState.js +1 -1
  255. package/dist/shell/GlobalSearch.js +1 -1
  256. package/dist/shell/HelpCenter.js +1 -1
  257. package/dist/shell/IconRail.js +1 -1
  258. package/dist/shell/ImageLightbox.js +1 -1
  259. package/dist/shell/ItemCount.js +1 -1
  260. package/dist/shell/LanguageSelect.js +1 -1
  261. package/dist/shell/Markdown.js +1 -1
  262. package/dist/shell/MetricBar.js +1 -1
  263. package/dist/shell/MetricBarLegend.js +1 -1
  264. package/dist/shell/MilestoneTimeline.js +1 -1
  265. package/dist/shell/PageHeader.js +1 -1
  266. package/dist/shell/ProductionTimeline.js +1 -1
  267. package/dist/shell/ResizeHandle.js +1 -1
  268. package/dist/shell/Result.js +1 -1
  269. package/dist/shell/SearchableSelect.js +1 -1
  270. package/dist/shell/SettingReset.js +1 -1
  271. package/dist/shell/SettingRow.js +1 -1
  272. package/dist/shell/SidebarLayout.js +1 -1
  273. package/dist/shell/SidebarNav.js +1 -1
  274. package/dist/shell/SortableList.js +1 -1
  275. package/dist/shell/Statistic.js +1 -1
  276. package/dist/shell/TimeAgo.js +1 -1
  277. package/dist/shell/TimelineTrack.js +1 -1
  278. package/dist/shell/TransferProgress.js +1 -1
  279. package/dist/shell/Tree.js +1 -1
  280. package/dist/shell/discardGuard.js +1 -1
  281. package/dist/shell/language.js +1 -1
  282. package/dist/shell/strings.d.ts +10 -0
  283. package/dist/shell/strings.js +1 -1
  284. package/dist/shell/toast.js +1 -1
  285. package/dist/telemetry/index.js +1 -1
  286. package/dist/templates/AuthScreen.js +1 -1
  287. package/dist/templates/ChatTemplate.js +1 -1
  288. package/dist/templates/CheckoutTemplate.js +1 -1
  289. package/dist/templates/DashboardTemplate.js +1 -1
  290. package/dist/templates/DataTablePage.js +1 -1
  291. package/dist/templates/EmailTemplate.js +1 -1
  292. package/dist/templates/ErrorBoundary.d.ts +1 -1
  293. package/dist/templates/ErrorBoundary.js +1 -1
  294. package/dist/templates/ErrorPage.js +1 -1
  295. package/dist/templates/FormLayoutPage.js +1 -1
  296. package/dist/templates/GalleryTemplate.js +1 -1
  297. package/dist/ui/index.d.ts +1 -1
  298. package/dist/ui/index.js +1 -1
  299. package/dist/version.js +1 -1
  300. package/package.json +12 -1
  301. package/dist/Calculator-5TRNFPY4.js +0 -29
  302. package/dist/Files-BKEREVQK.js +0 -141
  303. package/dist/PdfViewer-4YLDY4JY.js +0 -1
  304. package/dist/Sidebar-SAGLPIOC.js +0 -44
  305. package/dist/chunk-2SGOKMUU.js +0 -13
  306. package/dist/chunk-4Y33Y4OX.js +0 -8
  307. package/dist/chunk-574SLTKO.js +0 -8
  308. package/dist/chunk-64J7TYJ3.js +0 -4
  309. package/dist/chunk-A4PFVMQ2.js +0 -7
  310. package/dist/chunk-BHHFVIAD.js +0 -2
  311. package/dist/chunk-DG2TGWXI.js +0 -15
  312. package/dist/chunk-DRMIQ3YE.js +0 -1
  313. package/dist/chunk-ENFXDIIZ.js +0 -8
  314. package/dist/chunk-FFUTSMF5.js +0 -28
  315. package/dist/chunk-FI6IJTAJ.js +0 -14
  316. package/dist/chunk-FVKXDF2Q.js +0 -12
  317. package/dist/chunk-IATKDC52.js +0 -9
  318. package/dist/chunk-JJ2OXUK7.js +0 -14
  319. package/dist/chunk-S6AN76R3.js +0 -4
  320. package/dist/chunk-T7D73HT7.js +0 -11
  321. package/dist/chunk-TU2L7NW3.js +0 -7
  322. package/dist/chunk-UFM4YBZ7.js +0 -1
  323. package/dist/chunk-VDYF3WPJ.js +0 -2
  324. package/dist/chunk-XMY2HKVD.js +0 -19
  325. package/dist/chunk-XQWHKXLS.js +0 -22
  326. package/dist/chunk-YX2OOGV7.js +0 -4
@@ -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-XAF5ZI7H.js";import{pad2 as s}from"./chunk-LF27WIN2.js";import{useWidgetSettings as o}from"./chunk-BC4FE77W.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-47UH3D4B.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-HVYXJLAV.js";import"./chunk-YWNHK6Z5.js";import"./chunk-64J7TYJ3.js";import"./chunk-EIFNESXS.js";import"./chunk-MWTCGJAI.js";import"./chunk-RIG5FEVS.js";import"./chunk-TGLUENXE.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-NN32QUCE.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-DWGYC7OD.js";import"./chunk-JMGDGNM7.js";import"./chunk-GOAFMGUI.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import"./chunk-ISVODSRP.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__ */
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-JGZEZHMP.js";import{pad2 as s}from"./chunk-LF27WIN2.js";import{useWidgetSettings as o}from"./chunk-AYCWVVJ3.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-2DCATU5B.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-OMSIXLK4.js";import"./chunk-64ZDYUE7.js";import"./chunk-RVD6HJUJ.js";import"./chunk-EIFNESXS.js";import"./chunk-Q4BJW37U.js";import"./chunk-RIG5FEVS.js";import"./chunk-CIOPLPZW.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-SAAXAAAH.js";import"./chunk-KPPKPGQI.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as l}from"./chunk-KC3EX26K.js";import"./chunk-DWGYC7OD.js";import"./chunk-JMGDGNM7.js";import"./chunk-GOAFMGUI.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import"./chunk-ISVODSRP.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-HCDG7EUR.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__ */
@@ -19,42 +19,42 @@ return u("div",{className:"absolute inset-0 overflow-hidden pointer-events-none"
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
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
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 I(){/* @__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 A(){/* @__PURE__ */
23
23
  return u("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[
24
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 F(){/* @__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(F,{}):[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(D,{}):[95,96,99].includes(e)?/* @__PURE__ */p(I,{}):null}function C(){const[r,s]=d(b),[v,N]=d(()=>n(g)),[j,S]=d(null),[D,I]=d(!0),[,F]=d(0);m(()=>{const e=setInterval(()=>F(e=>e+1),6e4);return()=>clearInterval(e)},[]);const[C,A]=d(!1),[L,$]=d(r),[H,J]=d(v),{prefs:M,save:G}=l(),O={...x,...M.weather_prefs??{}},[W,Z]=d(O);o(h(()=>{$(r),J({...v}),Z({...O}),A(!0)},[r,v,O])),m(()=>{let t=!1;return I(!0),e(r).then(e=>{t||(S(e),I(!1))}),()=>{t=!0}},[r]);const U=e=>O.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 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 I({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(S,{}):[55,63,65,82].includes(e)?/* @__PURE__ */p(S,{heavy:!0}):[71,73,75].includes(e)?/* @__PURE__ */p(D,{}):[95,96,99].includes(e)?/* @__PURE__ */p(A,{}):null}function F(){const[r,s]=d(b),[v,N]=d(()=>n(g)),[j,S]=d(null),[D,A]=d(!0),[,C]=d(0);m(()=>{const e=setInterval(()=>C(e=>e+1),6e4);return()=>clearInterval(e)},[]);const[F,T]=d(!1),[$,H]=d(r),[L,G]=d(v),{prefs:J,save:M}=l(),O={...x,...J.weather_prefs??{}},[U,Z]=d(O);o(h(()=>{H(r),G({...v}),Z({...O}),T(!0)},[r,v,O])),m(()=>{let t=!1;return A(!0),e(r).then(e=>{t||(S(e),A(!1))}),()=>{t=!0}},[r]);const P=e=>O.useFahrenheit?`${w(e)}°F`:`${e}°`;if(D&&!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[X,B,E]=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[W,X,B]=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 ${E}`,style:{height:110},children:[
34
- /* @__PURE__ */p(T,{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 ${B}`,style:{height:110},children:[
34
+ /* @__PURE__ */p(I,{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
38
  /* @__PURE__ */p("div",{className:"text-base font-semibold leading-tight truncate drop-shadow-sm",children:j.city}),O.showLocalTime&&/* @__PURE__ */p("div",{className:"text-2xs opacity-90 leading-tight tabular-nums drop-shadow-sm",children:k(j.timezone,O.use24Hour)})]}),
39
- /* @__PURE__ */p("div",{className:"text-3xl font-extralight leading-none tracking-tight tabular-nums shrink-0 drop-shadow-sm",children:U(j.temp)})]}),
39
+ /* @__PURE__ */p("div",{className:"text-3xl font-extralight leading-none tracking-tight tabular-nums shrink-0 drop-shadow-sm",children:P(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
- /* @__PURE__ */p("span",{className:"text-lg leading-none drop-shadow-sm",children:B}),
43
- /* @__PURE__ */p("span",{className:"text-2xs font-medium drop-shadow-sm truncate",children:X})]}),
44
- /* @__PURE__ */u("span",{className:"text-2xs opacity-90 tabular-nums drop-shadow-sm shrink-0",children:["H:",U(j.high)," L:",U(j.low)]})]})]})]})}),
45
- /* @__PURE__ */u(i,{open:C,onClose:()=>A(!1),title:"Weather Settings",appearance:H,onAppearanceChange:J,onSave:()=>{s(L),N(H),G({weather_prefs:W}),localStorage.setItem(y,L),localStorage.setItem(g,JSON.stringify(H)),A(!1)},children:[
42
+ /* @__PURE__ */p("span",{className:"text-lg leading-none drop-shadow-sm",children:X}),
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:",P(j.high)," L:",P(j.low)]})]})]})]})}),
45
+ /* @__PURE__ */u(i,{open:F,onClose:()=>T(!1),title:"Weather Settings",appearance:L,onAppearanceChange:G,onSave:()=>{s($),N(L),M({weather_prefs:U}),localStorage.setItem(y,$),localStorage.setItem(g,JSON.stringify(L)),T(!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:()=>Z(t=>({...t,useFahrenheit:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(W.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:()=>Z(t=>({...t,useFahrenheit:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(U.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:()=>Z(t=>({...t,use24Hour:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(W.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:()=>Z(t=>({...t,use24Hour:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(U.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:W.showLocalTime,onChange:e=>Z(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:U.showLocalTime,onChange:e=>Z(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:L,onChange:e=>$(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{C as default};
59
+ /* @__PURE__ */p("select",{value:$,onChange:e=>H(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{F 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-XAF5ZI7H.js";import{useWidgetSettings as a}from"./chunk-BC4FE77W.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-47UH3D4B.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-HVYXJLAV.js";import"./chunk-YWNHK6Z5.js";import"./chunk-64J7TYJ3.js";import"./chunk-EIFNESXS.js";import"./chunk-MWTCGJAI.js";import"./chunk-RIG5FEVS.js";import"./chunk-TGLUENXE.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-NN32QUCE.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-DWGYC7OD.js";import"./chunk-JMGDGNM7.js";import"./chunk-GOAFMGUI.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import"./chunk-ISVODSRP.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([]),[F,D]=m(b),C={useFahrenheit:!!j.weather_prefs?.useFahrenheit},[S,J]=m(C),[G,T]=m(()=>/* @__PURE__ */new Date);l(()=>{const e=setInterval(()=>T(/* @__PURE__ */new Date),3e4);return()=>clearInterval(e)},[]);const U=Object.fromEntries(Object.entries(e).map(([e,t])=>[t.tz,e])),M=j.world_clocks,W=(()=>{if(!Array.isArray(M)||0===M.length)return g;const t=[];for(const n of M){const r=e[n]?n:U[n];r&&!t.includes(r)&&t.push(r)}return t.length?t:g})(),[A,O]=m({}),[E,H]=m(!0);l(()=>{let e=!1;return H(!0),(async()=>{const n={};await Promise.all(W.map(async e=>{const r=await t(e);r&&(n[e]=r)})),e||(O(n),H(!1))})(),()=>{e=!0}},[W.join(",")]),a(h(()=>{w([...W]),D({...b}),J({...C}),N(!0)},[W.join(","),b,C.useFahrenheit]));const I=e=>C.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-JGZEZHMP.js";import{useWidgetSettings as a}from"./chunk-AYCWVVJ3.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-2DCATU5B.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-OMSIXLK4.js";import"./chunk-64ZDYUE7.js";import"./chunk-RVD6HJUJ.js";import"./chunk-EIFNESXS.js";import"./chunk-Q4BJW37U.js";import"./chunk-RIG5FEVS.js";import"./chunk-CIOPLPZW.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-SAAXAAAH.js";import"./chunk-KPPKPGQI.js";import"./chunk-F3ZOO23R.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as c}from"./chunk-KC3EX26K.js";import"./chunk-DWGYC7OD.js";import"./chunk-JMGDGNM7.js";import"./chunk-GOAFMGUI.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-EVYD6UFQ.js";import"./chunk-M5K4AX4E.js";import"./chunk-ISVODSRP.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-HCDG7EUR.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([]),[D,C]=m(b),F={useFahrenheit:!!j.weather_prefs?.useFahrenheit},[S,U]=m(F),[A,G]=m(()=>/* @__PURE__ */new Date);l(()=>{const e=setInterval(()=>G(/* @__PURE__ */new Date),3e4);return()=>clearInterval(e)},[]);const J=Object.fromEntries(Object.entries(e).map(([e,t])=>[t.tz,e])),O=j.world_clocks,P=(()=>{if(!Array.isArray(O)||0===O.length)return g;const t=[];for(const n of O){const r=e[n]?n:J[n];r&&!t.includes(r)&&t.push(r)}return t.length?t:g})(),[W,M]=m({}),[T,Z]=m(!0);l(()=>{let e=!1;return Z(!0),(async()=>{const n={};await Promise.all(P.map(async e=>{const r=await t(e);r&&(n[e]=r)})),e||(M(n),Z(!1))})(),()=>{e=!0}},[P.join(",")]),a(h(()=>{w([...P]),C({...b}),U({...F}),N(!0)},[P.join(","),b,F.useFahrenheit]));const E=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:[E&&W.every(e=>!A[e])&&/* @__PURE__ */d(o,{size:"sm",padding:"py-6",label:"Loading"}),W.map(t=>{const r=A[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:[T&&P.every(e=>!W[e])&&/* @__PURE__ */d(o,{size:"sm",padding:"py-6",label:"Loading"}),P.map(t=>{const r=W[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,A);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:I(r.temp)})]}),
13
+ /* @__PURE__ */d("span",{className:"text-2xl font-extralight leading-none tabular-nums tracking-tight text-ink-strongest shrink-0",children:E(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:",I(r.high)," L:",I(r.low)]})]})]},t)})]})}),
22
- /* @__PURE__ */p(i,{open:y,onClose:()=>N(!1),title:"World Clock Settings",appearance:F,onAppearanceChange:D,onSave:()=>{0!==v.length&&(x({world_clocks:v,weather_prefs:{...j.weather_prefs??{},useFahrenheit:S.useFahrenheit}}),f(F),localStorage.setItem(k,JSON.stringify(F)),N(!1))},children:[
21
+ /* @__PURE__ */p("span",{className:"tabular-nums text-gray-500 shrink-0",children:["H:",E(r.high)," L:",E(r.low)]})]})]},t)})]})}),
22
+ /* @__PURE__ */p(i,{open:y,onClose:()=>N(!1),title:"World Clock Settings",appearance:D,onAppearanceChange:C,onSave:()=>{0!==v.length&&(x({world_clocks:v,weather_prefs:{...j.weather_prefs??{},useFahrenheit:S.useFahrenheit}}),f(D),localStorage.setItem(k,JSON.stringify(D)),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 "+(S.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:()=>U(t=>({...t,useFahrenheit:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(S.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"}),