efficient-shell 12.1.0 → 12.3.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.
- package/README.md +27 -0
- package/dist/{Browser-U3SO6PSV.js → Browser-OE7IMID6.js} +14 -14
- package/dist/Calculator-W6YA44OY.js +29 -0
- package/dist/{CurrencyConverter-XNWE5MQW.js → CurrencyConverter-TLI6PVRE.js} +8 -8
- package/dist/Files-5WRVSC5R.js +121 -0
- package/dist/{Notepad-YYNH67EN.js → Notepad-TUW4JP7M.js} +10 -10
- package/dist/PdfViewer-GFQAIHDP.js +1 -0
- package/dist/{PomodoroTimer-SBV43YX6.js → PomodoroTimer-FPGRFPNT.js} +68 -68
- package/dist/{Preview-KV3L22LT.js → Preview-BJRRRU4N.js} +21 -21
- package/dist/Sidebar-ROMFJHCD.js +44 -0
- package/dist/{Stock-GODZPUR3.js → Stock-P7D5WNKC.js} +3 -3
- package/dist/{Weather-2IIV4CFT.js → Weather-OUHUYBZ6.js} +18 -18
- package/dist/{WorldClock-JW4MLMCB.js → WorldClock-WXIV2KC6.js} +7 -7
- package/dist/ai/index.d.ts +9 -1
- package/dist/ai/index.js +79 -79
- package/dist/apps/index.d.ts +7 -0
- package/dist/apps/index.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/charts/BoxPlotChart.js +1 -1
- package/dist/charts/CandlestickChart.js +1 -1
- package/dist/charts/CartesianPlot.js +1 -1
- package/dist/charts/ChordChart.js +1 -1
- package/dist/charts/ColumnChart.js +1 -1
- package/dist/charts/FlowChart.d.ts +25 -0
- package/dist/charts/FlowChart.js +2 -0
- package/dist/charts/HeatmapChart.js +1 -1
- package/dist/charts/HistogramChart.js +1 -1
- package/dist/charts/PieChart.js +1 -1
- package/dist/charts/RadarChart.js +1 -1
- package/dist/charts/RangeChart.js +1 -1
- package/dist/charts/SankeyChart.js +1 -1
- package/dist/charts/ScatterChart.js +1 -1
- package/dist/charts/SpecChart.js +1 -1
- package/dist/charts/SunburstChart.js +1 -1
- package/dist/charts/TimeSeriesChart.js +1 -1
- package/dist/charts/TreemapChart.js +1 -1
- package/dist/charts/WaterfallChart.js +1 -1
- package/dist/charts/flowSpec.d.ts +94 -0
- package/dist/charts/flowSpec.js +1 -0
- package/dist/{chunk-CTW2OKYS.js → chunk-2B4EKAZL.js} +2 -2
- package/dist/{chunk-YRZP7JN4.js → chunk-2KNVUOWJ.js} +16 -16
- package/dist/{chunk-VGWYAYHB.js → chunk-3QYAYBJE.js} +3 -3
- package/dist/{chunk-FOTDGSY5.js → chunk-45IVWLKF.js} +1 -1
- package/dist/chunk-4DZVWK7U.js +7 -0
- package/dist/{chunk-5V6SA77P.js → chunk-53WYJ5LZ.js} +11 -11
- package/dist/{chunk-CC42UKIT.js → chunk-54K2ADBT.js} +1 -1
- package/dist/{chunk-VFBBGLRA.js → chunk-5BV2WW74.js} +13 -13
- package/dist/{chunk-LUSIZ2BK.js → chunk-5LZTYOYD.js} +7 -7
- package/dist/{chunk-GJJKWGBX.js → chunk-67JHJO6V.js} +10 -10
- package/dist/{chunk-VZLYB5LX.js → chunk-6DZGOGB2.js} +1 -1
- package/dist/chunk-6GDZUW3L.js +6 -0
- package/dist/{chunk-JCUG572K.js → chunk-6JDR6T4U.js} +1 -1
- package/dist/{chunk-PKNHSZWK.js → chunk-6JKSRXZM.js} +3 -3
- package/dist/{chunk-BXZNMSTZ.js → chunk-6NHPL5JL.js} +1 -1
- package/dist/{chunk-7EK7JNR4.js → chunk-6TLSXBKC.js} +1 -1
- package/dist/{chunk-NHBDLW52.js → chunk-6Y2BQI44.js} +1 -1
- package/dist/{chunk-XQUXL75F.js → chunk-74LZVJND.js} +1 -1
- package/dist/{chunk-GFBQ53WN.js → chunk-7HIHQR3X.js} +1 -1
- package/dist/{chunk-56ESGDIC.js → chunk-7JY3YYN4.js} +4 -4
- package/dist/{chunk-VQPZDZ3R.js → chunk-7TZRICMH.js} +4 -4
- package/dist/{chunk-EEVKJJ5S.js → chunk-AANXPLMA.js} +4 -4
- package/dist/{chunk-YKHAI5IZ.js → chunk-ASQX3GXB.js} +5 -5
- package/dist/chunk-AUZKIL62.js +23 -0
- package/dist/{chunk-4RTDZSGH.js → chunk-B3PNZBZM.js} +18 -18
- package/dist/{chunk-7ZYEDXZX.js → chunk-BGJMDP6J.js} +1 -1
- package/dist/{chunk-DSHEOC2O.js → chunk-CVLWJBR5.js} +1 -1
- package/dist/chunk-DCICBH2L.js +3 -0
- package/dist/chunk-DICWZEGH.js +2 -0
- package/dist/{chunk-UDJLRTQB.js → chunk-DNLRUZGS.js} +1 -1
- package/dist/{chunk-ACNDPAAT.js → chunk-DONZDILI.js} +1 -1
- package/dist/{chunk-J5ISQYVM.js → chunk-DPUM3H5N.js} +1 -1
- package/dist/{chunk-ZACNIKIQ.js → chunk-DULMOL3I.js} +1 -1
- package/dist/{chunk-CQCMJHDM.js → chunk-F245EG2A.js} +5 -5
- package/dist/{chunk-BFA5U5JF.js → chunk-F44E76EC.js} +11 -11
- package/dist/chunk-FAERBT6Y.js +1 -0
- package/dist/{chunk-Z43XVU2P.js → chunk-FGCIEJPP.js} +1 -1
- package/dist/{chunk-AQULCKKZ.js → chunk-FPRQB5W6.js} +11 -11
- package/dist/{chunk-KHVECW4M.js → chunk-FPZBHNZU.js} +6 -6
- package/dist/{chunk-27XV4TAU.js → chunk-GR43CABV.js} +2 -2
- package/dist/{chunk-LLBH6PHE.js → chunk-GYDCXCJT.js} +1 -1
- package/dist/{chunk-VW7W6LCV.js → chunk-H6PFTU3L.js} +1 -1
- package/dist/{chunk-SCCAMJB4.js → chunk-HE767CVB.js} +1 -1
- package/dist/{chunk-M7DFM2N7.js → chunk-HRMG2WMW.js} +63 -63
- package/dist/{chunk-L75RBQFH.js → chunk-IL56C56I.js} +2 -2
- package/dist/{chunk-VPYD7UJM.js → chunk-IMRGGJIJ.js} +3 -3
- package/dist/chunk-IWFWPFYQ.js +13 -0
- package/dist/chunk-IXAYZNOZ.js +11 -0
- package/dist/{chunk-DU5IBIZQ.js → chunk-JYGUTY6R.js} +1 -1
- package/dist/{chunk-DKUF7BD5.js → chunk-KDWK5WGU.js} +1 -1
- package/dist/{chunk-COMV3Z2U.js → chunk-KT5LLPUV.js} +1 -1
- package/dist/chunk-KZD2AFH2.js +13 -0
- package/dist/{chunk-TBBG2AWY.js → chunk-KZNJXV5I.js} +3 -3
- package/dist/{chunk-QBD7V4TK.js → chunk-LBMC6GR5.js} +1 -1
- package/dist/{chunk-XARBHOEZ.js → chunk-LDEFEPPL.js} +1 -1
- package/dist/{chunk-ONYPN3JY.js → chunk-LGK47SEN.js} +11 -11
- package/dist/{chunk-ESDWHHQY.js → chunk-LKVS4WCZ.js} +1 -1
- package/dist/chunk-M3OEWPXZ.js +1 -0
- package/dist/chunk-M3PUAGXJ.js +9 -0
- package/dist/{chunk-BXZSLRNO.js → chunk-MQKUGIN7.js} +12 -12
- package/dist/{chunk-63QLZYMN.js → chunk-NDLXD4EY.js} +5 -5
- package/dist/{chunk-2OMM2AG3.js → chunk-NEAT7BIP.js} +1 -1
- package/dist/{chunk-HS4EWT6L.js → chunk-NHNRNT4T.js} +2 -2
- package/dist/{chunk-NZYI4XV5.js → chunk-NRLTGGCS.js} +5 -5
- package/dist/chunk-NSOAHIQZ.js +11 -0
- package/dist/{chunk-TTSZSLQL.js → chunk-O6H2ZD32.js} +7 -7
- package/dist/{chunk-XBDHRMQI.js → chunk-OR5HUQSB.js} +9 -9
- package/dist/{chunk-FWUXYNWF.js → chunk-OY3JH66O.js} +4 -4
- package/dist/chunk-P3BLJCTQ.js +19 -0
- package/dist/{chunk-SX5CSXZO.js → chunk-P4L74UA5.js} +2 -2
- package/dist/chunk-PA273FZF.js +9 -0
- package/dist/{chunk-5THF6BJS.js → chunk-PFMZL3ZG.js} +2 -2
- package/dist/{chunk-PXIP246B.js → chunk-PT77FC5X.js} +1 -1
- package/dist/{chunk-AJ5NU7UH.js → chunk-Q2MW334M.js} +1 -1
- package/dist/{chunk-ORLQUGIN.js → chunk-QA33EHHO.js} +4 -4
- package/dist/{chunk-GRB4LKZC.js → chunk-QOQ6GXVA.js} +5 -5
- package/dist/{chunk-4UGFNTZ3.js → chunk-RQ4UIWWD.js} +11 -11
- package/dist/{chunk-2DOMIOYR.js → chunk-RYBYTUGZ.js} +1 -1
- package/dist/{chunk-JCTOQOVO.js → chunk-S6BGMLXI.js} +1 -1
- package/dist/chunk-SEJAT3UE.js +1 -0
- package/dist/{chunk-7F4U43YN.js → chunk-SGNJ7I7P.js} +4 -4
- package/dist/{chunk-ZYFBV4C7.js → chunk-SKFFBBAG.js} +2 -2
- package/dist/{chunk-FEJFGFPF.js → chunk-SPJIFRNY.js} +6 -6
- package/dist/{chunk-QN56R4V4.js → chunk-SSUZAOGI.js} +10 -10
- package/dist/{chunk-CENTHUBD.js → chunk-SYDGCECZ.js} +8 -8
- package/dist/{chunk-5F6KJAF3.js → chunk-THASH6OO.js} +13 -13
- package/dist/{chunk-I7H3OIYX.js → chunk-TKXUDCOI.js} +1 -1
- package/dist/{chunk-ZG3RF2VE.js → chunk-U7PXMVIY.js} +1 -1
- package/dist/chunk-UCIOCS4X.js +2 -0
- package/dist/{chunk-MRFNJZRR.js → chunk-UIWGVOFH.js} +8 -4
- package/dist/{chunk-HB2XXIQG.js → chunk-UMQLDWSS.js} +6 -6
- package/dist/chunk-VF53GD6D.js +5 -0
- package/dist/{chunk-CRU2BNEM.js → chunk-XGVMOV3O.js} +7 -7
- package/dist/{chunk-LOEOCZCN.js → chunk-Y4RERPFN.js} +1 -1
- package/dist/{chunk-ZUBTNUVE.js → chunk-Y7ANTS5W.js} +1 -1
- package/dist/chunk-YAQ5RF3H.js +28 -0
- package/dist/{chunk-ANSQT5ZS.js → chunk-ZATTQ3FX.js} +1 -1
- package/dist/{chunk-CRB5GM4W.js → chunk-ZDO62V4I.js} +1 -1
- package/dist/{chunk-HICNRXYB.js → chunk-ZICLAMMR.js} +1 -1
- package/dist/{chunk-IRZ6XM5A.js → chunk-ZXNJSSRV.js} +1 -1
- package/dist/{chunk-6XC3XX7F.js → chunk-ZZ67Q5HJ.js} +6 -6
- package/dist/data/DataTable.js +1 -1
- package/dist/data/EntityList.js +1 -1
- package/dist/data/ListLoadError.js +1 -1
- package/dist/data/ResizableTable.js +1 -1
- package/dist/format/index.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/Calendar.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/ComposerAttachments.js +1 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/DatePicker.js +1 -1
- package/dist/forms/DateRangePicker.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/FilePicker.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/Input.js +1 -1
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUploadGrid.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/NumericKeypad.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/RenameField.js +1 -1
- package/dist/forms/Select.js +1 -1
- package/dist/forms/SidesInput.js +1 -1
- package/dist/forms/Slider.js +1 -1
- package/dist/forms/Snippet.js +1 -1
- package/dist/forms/SplitButton.js +1 -1
- package/dist/forms/TagInput.js +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/forms/mediaLibraryMenu.js +1 -1
- package/dist/forms/textAlign.js +1 -1
- package/dist/icons/efficient-glyphs.js +1 -1
- package/dist/icons/efficient-looks.js +1 -1
- package/dist/icons/efficient.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/icons/looks/map.js +1 -1
- package/dist/icons/payment.js +1 -1
- package/dist/icons/sets.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +508 -508
- package/dist/map/index.js +3 -3
- package/dist/markdown/index.js +1 -1
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/Banner.js +1 -1
- package/dist/shell/Breadcrumbs.js +1 -1
- package/dist/shell/ColoredBadge.js +1 -1
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/Dialog.js +1 -1
- package/dist/shell/Drawer.js +1 -1
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/EditableGrid.js +1 -1
- package/dist/shell/EmptyState.js +1 -1
- package/dist/shell/HelpCenter.js +1 -1
- package/dist/shell/IconRail.js +1 -1
- package/dist/shell/ImageLightbox.js +1 -1
- package/dist/shell/ItemCount.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/MilestoneTimeline.js +1 -1
- package/dist/shell/PageHeader.js +1 -1
- package/dist/shell/PopupMenu.js +1 -1
- package/dist/shell/ProductionTimeline.js +1 -1
- package/dist/shell/ResizeHandle.js +1 -1
- package/dist/shell/Result.js +1 -1
- package/dist/shell/SearchableSelect.js +1 -1
- package/dist/shell/SettingReset.js +1 -1
- package/dist/shell/SidebarLayout.js +1 -1
- package/dist/shell/SidebarNav.js +1 -1
- package/dist/shell/SortableList.js +1 -1
- package/dist/shell/StepChain.js +1 -1
- package/dist/shell/Stepper.js +1 -1
- package/dist/shell/TimelineTrack.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/shell/TransferProgress.js +1 -1
- package/dist/shell/Tree.js +1 -1
- package/dist/shell/discardGuard.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/AuthScreen.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DashboardTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/ErrorBoundary.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/templates/GalleryTemplate.js +1 -1
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-6XGTP5OQ.js +0 -29
- package/dist/Files-S4AFZX4N.js +0 -121
- package/dist/PdfViewer-ZI3QOG4G.js +0 -1
- package/dist/Sidebar-XVVZJ7PR.js +0 -44
- package/dist/chunk-2T7MZ77B.js +0 -3
- package/dist/chunk-A2ZEGD2S.js +0 -11
- package/dist/chunk-AJO55X66.js +0 -6
- package/dist/chunk-BD4OHYQB.js +0 -13
- package/dist/chunk-BPECY7I7.js +0 -13
- package/dist/chunk-CWTY4GTU.js +0 -5
- package/dist/chunk-FUUJJ7OH.js +0 -7
- package/dist/chunk-GEZ45J4Z.js +0 -2
- package/dist/chunk-GGSPY3Q4.js +0 -23
- package/dist/chunk-HFDSKCPL.js +0 -1
- package/dist/chunk-HGZZXA2N.js +0 -9
- package/dist/chunk-HTDZ3XAJ.js +0 -9
- package/dist/chunk-HY3JYAUH.js +0 -19
- package/dist/chunk-S3C3XJG7.js +0 -1
- package/dist/chunk-UE54EN4C.js +0 -2
- package/dist/chunk-YAD7TML2.js +0 -28
- /package/dist/{chunk-MXK7A6ZM.js → chunk-K5A62ZS5.js} +0 -0
- /package/dist/{chunk-C4XV42QP.js → chunk-R3K2BNFF.js} +0 -0
|
@@ -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-
|
|
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-ZDO62V4I.js";import{pad2 as s}from"./chunk-LF27WIN2.js";import{useWidgetSettings as o}from"./chunk-HRMG2WMW.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-Y4RERPFN.js";import"./chunk-5A7MWTXX.js";import"./chunk-ZDMZM7HD.js";import"./chunk-HE767CVB.js";import"./chunk-B3PNZBZM.js";import"./chunk-VF53GD6D.js";import"./chunk-RXHTIJ64.js";import"./chunk-3DVNXNTF.js";import"./chunk-R3K2BNFF.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-IL56C56I.js";import"./chunk-SCGBCBXP.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as l}from"./chunk-KC3EX26K.js";import"./chunk-F3ZOO23R.js";import"./chunk-FZM3ZPW3.js";import"./chunk-CDAJKLGL.js";import"./chunk-F44E76EC.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-WGLHB6WE.js";import"./chunk-EOVXFXVV.js";import"./chunk-UQYNPYF4.js";import"./chunk-TE6R53YD.js";import"./chunk-UIWGVOFH.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as c}from"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-NJN5IKWO.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-43MCNASD.js";import"./chunk-C3QOHMR6.js";import"./chunk-TWVUQUUD.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,17 +17,17 @@ 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
|
|
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
|
|
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 D({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 F(){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
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__ */
|
|
23
23
|
return u("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[
|
|
24
|
-
/* @__PURE__ */p(
|
|
24
|
+
/* @__PURE__ */p(D,{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
|
|
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
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(
|
|
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(D,{}):[55,63,65,82].includes(e)?/* @__PURE__ */p(D,{heavy:!0}):[71,73,75].includes(e)?/* @__PURE__ */p(F,{}):[95,96,99].includes(e)?/* @__PURE__ */p(S,{}):null}function I(){const[r,s]=d(b),[v,N]=d(()=>n(g)),[j,D]=d(null),[F,S]=d(!0),[,C]=d(0);m(()=>{const e=setInterval(()=>C(e=>e+1),6e4);return()=>clearInterval(e)},[]);const[I,L]=d(!1),[$,H]=d(r),[B,W]=d(v),{prefs:Z,save:A}=l(),M={...x,...Z.weather_prefs??{}},[O,X]=d(M);o(h(()=>{H(r),W({...v}),X({...M}),L(!0)},[r,v,M])),m(()=>{let t=!1;return S(!0),e(r).then(e=>{t||(D(e),S(!1))}),()=>{t=!0}},[r]);const G=e=>M.useFahrenheit?`${w(e)}°F`:`${e}°`;if(F&&!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[
|
|
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[V,J,P]=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
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 ${P}`,style:{height:110},children:[
|
|
@@ -35,26 +35,26 @@ return u(f,{children:[
|
|
|
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}),
|
|
39
|
-
/* @__PURE__ */p("div",{className:"text-3xl font-extralight leading-none tracking-tight tabular-nums shrink-0 drop-shadow-sm",children:
|
|
38
|
+
/* @__PURE__ */p("div",{className:"text-base font-semibold leading-tight truncate drop-shadow-sm",children:j.city}),M.showLocalTime&&/* @__PURE__ */p("div",{className:"text-2xs opacity-90 leading-tight tabular-nums drop-shadow-sm",children:k(j.timezone,M.use24Hour)})]}),
|
|
39
|
+
/* @__PURE__ */p("div",{className:"text-3xl font-extralight leading-none tracking-tight tabular-nums shrink-0 drop-shadow-sm",children:G(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:
|
|
43
|
-
/* @__PURE__ */p("span",{className:"text-2xs font-medium drop-shadow-sm truncate",children:
|
|
44
|
-
/* @__PURE__ */u("span",{className:"text-2xs opacity-90 tabular-nums drop-shadow-sm shrink-0",children:["H:",
|
|
45
|
-
/* @__PURE__ */u(i,{open:
|
|
42
|
+
/* @__PURE__ */p("span",{className:"text-lg leading-none drop-shadow-sm",children:J}),
|
|
43
|
+
/* @__PURE__ */p("span",{className:"text-2xs font-medium drop-shadow-sm truncate",children:V})]}),
|
|
44
|
+
/* @__PURE__ */u("span",{className:"text-2xs opacity-90 tabular-nums drop-shadow-sm shrink-0",children:["H:",G(j.high)," L:",G(j.low)]})]})]})]})}),
|
|
45
|
+
/* @__PURE__ */u(i,{open:I,onClose:()=>L(!1),title:"Weather Settings",appearance:B,onAppearanceChange:W,onSave:()=>{s($),N(B),A({weather_prefs:O}),localStorage.setItem(y,$),localStorage.setItem(g,JSON.stringify(B)),L(!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:()=>X(t=>({...t,useFahrenheit:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(
|
|
50
|
+
/* @__PURE__ */p("div",{className:"flex gap-1",children:[{key:!1,label:"°C"},{key:!0,label:"°F"}].map(e=>/* @__PURE__ */p("button",{onClick:()=>X(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:()=>X(t=>({...t,use24Hour:e.key})),className:"px-3 py-1 text-xs font-medium rounded-lg border transition-colors "+(
|
|
53
|
+
/* @__PURE__ */p("div",{className:"flex gap-1",children:[{key:!1,label:"AM/PM"},{key:!0,label:"24H"}].map(e=>/* @__PURE__ */p("button",{onClick:()=>X(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:
|
|
55
|
+
/* @__PURE__ */p("input",{type:"checkbox",checked:O.showLocalTime,onChange:e=>X(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
|
|
60
|
-
/* @__PURE__ */p("p",{className:"mt-1 text-2xs text-ink-faintest",children:"Auto-detected from your timezone; change if needed."})]})]})]})}export{
|
|
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{I 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-
|
|
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-ZDO62V4I.js";import{useWidgetSettings as a}from"./chunk-HRMG2WMW.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-Y4RERPFN.js";import"./chunk-5A7MWTXX.js";import"./chunk-ZDMZM7HD.js";import"./chunk-HE767CVB.js";import"./chunk-B3PNZBZM.js";import"./chunk-VF53GD6D.js";import"./chunk-RXHTIJ64.js";import"./chunk-3DVNXNTF.js";import"./chunk-R3K2BNFF.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-IL56C56I.js";import"./chunk-SCGBCBXP.js";import"./chunk-2QY5BJLA.js";import"./chunk-UGTRSRIW.js";import{useShellPrefs as c}from"./chunk-KC3EX26K.js";import"./chunk-F3ZOO23R.js";import"./chunk-FZM3ZPW3.js";import"./chunk-CDAJKLGL.js";import"./chunk-F44E76EC.js";import"./chunk-URHGHXDN.js";import"./chunk-5QFPTDQF.js";import"./chunk-WGLHB6WE.js";import"./chunk-EOVXFXVV.js";import"./chunk-UQYNPYF4.js";import"./chunk-TE6R53YD.js";import"./chunk-UIWGVOFH.js";import"./chunk-J75ZT2JQ.js";import{LoadingSpinner as o}from"./chunk-R2VKEMZH.js";import"./chunk-MRJKZWWV.js";import"./chunk-NJN5IKWO.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-43MCNASD.js";import"./chunk-C3QOHMR6.js";import"./chunk-TWVUQUUD.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,F]=m([]),[w,D]=m(b),C={useFahrenheit:!!j.weather_prefs?.useFahrenheit},[W,T]=m(C),[B,S]=m(()=>/* @__PURE__ */new Date);l(()=>{const e=setInterval(()=>S(/* @__PURE__ */new Date),3e4);return()=>clearInterval(e)},[]);const V=Object.fromEntries(Object.entries(e).map(([e,t])=>[t.tz,e])),Z=j.world_clocks,G=(()=>{if(!Array.isArray(Z)||0===Z.length)return g;const t=[];for(const n of Z){const r=e[n]?n:V[n];r&&!t.includes(r)&&t.push(r)}return t.length?t:g})(),[H,M]=m({}),[O,R]=m(!0);l(()=>{let e=!1;return R(!0),(async()=>{const n={};await Promise.all(G.map(async e=>{const r=await t(e);r&&(n[e]=r)})),e||(M(n),R(!1))})(),()=>{e=!0}},[G.join(",")]),a(h(()=>{F([...G]),D({...b}),T({...C}),N(!0)},[G.join(","),b,C.useFahrenheit]));const J=e=>C.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:[
|
|
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&&G.every(e=>!H[e])&&/* @__PURE__ */d(o,{size:"sm",padding:"py-6",label:"Loading"}),G.map(t=>{const r=H[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,B);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:
|
|
13
|
+
/* @__PURE__ */d("span",{className:"text-2xl font-extralight leading-none tabular-nums tracking-tight text-ink-strongest shrink-0",children:J(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,15 +18,15 @@ 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:",
|
|
22
|
-
/* @__PURE__ */p(i,{open:y,onClose:()=>N(!1),title:"World Clock Settings",appearance:w,onAppearanceChange:
|
|
21
|
+
/* @__PURE__ */p("span",{className:"tabular-nums text-gray-500 shrink-0",children:["H:",J(r.high)," L:",J(r.low)]})]})]},t)})]})}),
|
|
22
|
+
/* @__PURE__ */p(i,{open:y,onClose:()=>N(!1),title:"World Clock Settings",appearance:w,onAppearanceChange:D,onSave:()=>{0!==v.length&&(x({world_clocks:v,weather_prefs:{...j.weather_prefs??{},useFahrenheit:W.useFahrenheit}}),f(w),localStorage.setItem(k,JSON.stringify(w)),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:()=>
|
|
27
|
+
/* @__PURE__ */d("div",{className:"flex gap-1",children:[{key:!1,label:"°C"},{key:!0,label:"°F"}].map(e=>/* @__PURE__ */d("button",{onClick:()=>T(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)))})]}),
|
|
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"}),
|
|
31
31
|
/* @__PURE__ */d("div",{className:"grid grid-cols-2 gap-1 max-h-56 overflow-y-auto",children:Object.keys(e).map(e=>/* @__PURE__ */p("label",{className:"flex items-center gap-2 text-sm py-1 cursor-pointer hover:bg-gray-50 rounded px-2",children:[
|
|
32
|
-
/* @__PURE__ */d("input",{type:"checkbox",checked:v.includes(e),onChange:()=>
|
|
32
|
+
/* @__PURE__ */d("input",{type:"checkbox",checked:v.includes(e),onChange:()=>F(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 h-3.5 w-3.5"}),e]},e))})]})]})]})}export{j as default};
|
package/dist/ai/index.d.ts
CHANGED
|
@@ -307,6 +307,12 @@ interface AssistantChatLabels {
|
|
|
307
307
|
/** What that button sends, the mention put in front: the assistant reads
|
|
308
308
|
* what people wrote since its last answer, so it answers that. */
|
|
309
309
|
askToReplyText: string;
|
|
310
|
+
/** Under a flowchart the assistant drew: its buttons, and what "Add to
|
|
311
|
+
* the PDF" sends. */
|
|
312
|
+
flowDownloadPng: string;
|
|
313
|
+
flowDownloadSvg: string;
|
|
314
|
+
flowToPdf: string;
|
|
315
|
+
flowToPdfText: string;
|
|
310
316
|
/** The Details panel beside the chat (`details`): its own name, and its
|
|
311
317
|
* cards' headings. */
|
|
312
318
|
detailsPanel: string;
|
|
@@ -558,8 +564,10 @@ interface MessageProps {
|
|
|
558
564
|
/** Saves the person's rating of this answer; with it, a finished answer the
|
|
559
565
|
* server named a run for shows thumbs. */
|
|
560
566
|
onRate?: (runId: string, rating: AssistantAnswerRating | null) => Promise<void> | void;
|
|
567
|
+
/** Sends the person's words to the assistant (a flowchart's "Add to the PDF"). */
|
|
568
|
+
onAsk?: (text: string) => void;
|
|
561
569
|
}
|
|
562
|
-
declare function Message({ message, speaker, toolLabels, labels, showReasoning, showToolOutput, showUsage, live, waitingSince, onApprove, plans, userActions, tableActions, onLinkClick, onOpenAttachment, onOpenFile, renderDataPart, showCopy, answerActions, onRate }: MessageProps): react_jsx_runtime.JSX.Element | null;
|
|
570
|
+
declare function Message({ message, speaker, toolLabels, labels, showReasoning, showToolOutput, showUsage, live, waitingSince, onApprove, plans, userActions, tableActions, onLinkClick, onOpenAttachment, onOpenFile, renderDataPart, showCopy, answerActions, onRate, onAsk }: MessageProps): react_jsx_runtime.JSX.Element | null;
|
|
563
571
|
|
|
564
572
|
interface ApprovalDecision {
|
|
565
573
|
approval_id: string;
|