efficient-shell 13.11.0 → 13.13.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 +1 -1
- package/dist/{Browser-S2ISEYGX.js → Browser-H3A2AO7Q.js} +16 -16
- package/dist/{Calculator-TJ4XFVNQ.js → Calculator-3PVLP3UK.js} +22 -22
- package/dist/{CurrencyConverter-6H3QM3TU.js → CurrencyConverter-JLRIAP2Z.js} +6 -6
- package/dist/{Files-37P4KZOM.js → Files-YVC66K6X.js} +77 -77
- package/dist/{Notepad-4PQFMUYM.js → Notepad-BCND3SM3.js} +9 -9
- package/dist/PdfViewer-PFQGQRQX.js +1 -0
- package/dist/{PomodoroTimer-2MFWO3KK.js → PomodoroTimer-I575OSRR.js} +46 -46
- package/dist/{Preview-CC7QJZGV.js → Preview-UXATJW7C.js} +49 -49
- package/dist/Sidebar-GYGYAXS2.js +44 -0
- package/dist/{Stock-OYUZ4D3M.js → Stock-EPJQJ3XE.js} +3 -3
- package/dist/{Weather-377NKPA5.js → Weather-RPCD2UW3.js} +22 -22
- package/dist/{WorldClock-M6AMXQY2.js → WorldClock-AC3EUSVG.js} +7 -7
- package/dist/ai/index.d.ts +25 -1
- package/dist/ai/index.js +103 -103
- package/dist/apps/ImageAnnotator.js +1 -1
- package/dist/apps/index.js +1 -1
- package/dist/bin/browser-check.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/ChartBrush.js +1 -1
- package/dist/charts/ChartFrame.js +1 -1
- package/dist/charts/ChartSkeleton.js +1 -1
- package/dist/charts/ChordChart.js +1 -1
- package/dist/charts/ColumnChart.js +1 -1
- package/dist/charts/FunnelChart.js +1 -1
- package/dist/charts/HeatmapChart.js +1 -1
- package/dist/charts/HistogramChart.js +1 -1
- package/dist/charts/Meter.js +1 -1
- package/dist/charts/PieChart.js +1 -1
- package/dist/charts/RadarChart.js +1 -1
- package/dist/charts/RadialBarChart.js +1 -1
- package/dist/charts/RangeChart.js +1 -1
- package/dist/charts/RankedBars.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/StatTile.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/{chunk-MZCYB2MW.js → chunk-223XYIIH.js} +1 -1
- package/dist/{chunk-R5SVNFUG.js → chunk-22N3KA7A.js} +4 -4
- package/dist/{chunk-TZBNN6HD.js → chunk-23LK4PLJ.js} +8 -8
- package/dist/{chunk-7WMFHPKS.js → chunk-2GMYO6ET.js} +1 -1
- package/dist/{chunk-FCWBO7I3.js → chunk-2QE6QD4Y.js} +7 -7
- package/dist/{chunk-H4GOJ26X.js → chunk-2YK6ZB7C.js} +1 -1
- package/dist/chunk-3J4SFHC7.js +15 -0
- package/dist/{chunk-5UPLN44S.js → chunk-3PLQKRD4.js} +12 -12
- package/dist/chunk-47UTEV3P.js +23 -0
- package/dist/{chunk-65JCQLM4.js → chunk-4F3SUYN5.js} +1 -1
- package/dist/{chunk-TAEO2JC6.js → chunk-4IYHQNKZ.js} +1 -1
- package/dist/chunk-4Q2CZ4US.js +7 -0
- package/dist/{chunk-CVXJKHPD.js → chunk-4S3E3VJH.js} +6 -6
- package/dist/{chunk-5LHEPE4B.js → chunk-4U5M37SF.js} +1 -1
- package/dist/{chunk-F3MO56N4.js → chunk-5HFKVEWW.js} +1 -1
- package/dist/{chunk-YMUHIJDJ.js → chunk-5POQCJL6.js} +4 -4
- package/dist/chunk-65FZQ572.js +8 -0
- package/dist/{chunk-VWYICGVA.js → chunk-6AUQWWUA.js} +1 -1
- package/dist/{chunk-RJ24VXBZ.js → chunk-6HYO2W3O.js} +4 -4
- package/dist/{chunk-WAKWESOR.js → chunk-6LDXTZGE.js} +1 -1
- package/dist/{chunk-FOE2QHDE.js → chunk-6LYKIC7W.js} +9 -9
- package/dist/{chunk-EQFWFQOZ.js → chunk-6QKTQOEV.js} +27 -27
- package/dist/{chunk-2FQBY4ED.js → chunk-7RGHV3J5.js} +5 -5
- package/dist/chunk-7TJZ5AJE.js +11 -0
- package/dist/{chunk-VMKTA5HL.js → chunk-AEEK74UI.js} +6 -6
- package/dist/{chunk-CCPUNN4F.js → chunk-AHMYBYXJ.js} +1 -1
- package/dist/chunk-B53VREFW.js +8 -0
- package/dist/{chunk-GHLXZDLU.js → chunk-BG3C4ALM.js} +1 -1
- package/dist/{chunk-GAGCE2ML.js → chunk-CKTFXTJL.js} +1 -1
- package/dist/{chunk-BXZLSY2S.js → chunk-CWVQH2SP.js} +1 -1
- package/dist/chunk-DEYVAMJQ.js +19 -0
- package/dist/{chunk-IODIQ77P.js → chunk-DO3DSSAW.js} +1 -1
- package/dist/chunk-DQTYV6AC.js +9 -0
- package/dist/{chunk-4RSBPRCQ.js → chunk-DVVB2CY5.js} +1 -1
- package/dist/{chunk-XOZ5VPXF.js → chunk-EHNQGKW4.js} +1 -1
- package/dist/{chunk-75TPMXA7.js → chunk-ELPW25CA.js} +1 -1
- package/dist/{chunk-BNPJHOAC.js → chunk-EMRTVPQ5.js} +9 -9
- package/dist/{chunk-4HJNHI4A.js → chunk-F4VILY3O.js} +1 -1
- package/dist/{chunk-ZDCCYRFF.js → chunk-F5B5WOQ7.js} +2 -2
- package/dist/{chunk-AJ5GLMGD.js → chunk-FBS55WOX.js} +7 -7
- package/dist/{chunk-TDG5WGLR.js → chunk-FDDM7VMQ.js} +1 -1
- package/dist/chunk-FQD6P6EZ.js +4 -0
- package/dist/{chunk-57GRXAXJ.js → chunk-FT2YDMG7.js} +1 -1
- package/dist/{chunk-PR6FNBKR.js → chunk-FTKLODQK.js} +1 -1
- package/dist/{chunk-VUM6BYAX.js → chunk-G4D2WM3J.js} +1 -1
- package/dist/{chunk-H7CIK74N.js → chunk-G53Y6EPJ.js} +13 -13
- package/dist/{chunk-ZDDMFFQK.js → chunk-GITRDCHS.js} +1 -1
- package/dist/{chunk-4YWQE67T.js → chunk-GO2TZ35U.js} +1 -1
- package/dist/{chunk-6XPS3H5Z.js → chunk-GYPYOBG5.js} +8 -8
- package/dist/{chunk-ZGIAMYTI.js → chunk-HK53EKZH.js} +1 -1
- package/dist/{chunk-X22SFR5F.js → chunk-HOROMBJB.js} +8 -8
- package/dist/{chunk-XCY7A5UM.js → chunk-HZ7TUMNL.js} +1 -1
- package/dist/{chunk-Z62HFEFS.js → chunk-I6QVXM2M.js} +15 -15
- package/dist/{chunk-6SOS6OBB.js → chunk-IE6TRMIW.js} +1 -1
- package/dist/{chunk-NVAH2NQI.js → chunk-IG7JPSBG.js} +1 -1
- package/dist/chunk-IJNQ2BUY.js +2 -0
- package/dist/{chunk-NUDL6UO3.js → chunk-IOLUF3UL.js} +1 -1
- package/dist/chunk-IUVGHHR3.js +1 -0
- package/dist/chunk-J6QC45OS.js +8 -0
- package/dist/{chunk-KV6XCHAG.js → chunk-JGKDWDVM.js} +16 -16
- package/dist/{chunk-JOYGSKWG.js → chunk-JHGBFZHL.js} +5 -5
- package/dist/{chunk-PZNF2TEB.js → chunk-JNSRDEB6.js} +9 -9
- package/dist/{chunk-SC3AQXJY.js → chunk-JPCPO4MX.js} +8 -8
- package/dist/{chunk-BSEQJM7X.js → chunk-JPKNVTTK.js} +1 -1
- package/dist/{chunk-NDWX5Z4D.js → chunk-JR2HHKVP.js} +1 -1
- package/dist/{chunk-DU7TJVX5.js → chunk-KEVJBI5Q.js} +1 -1
- package/dist/{chunk-R5TSUJTK.js → chunk-KLUCEASW.js} +6 -6
- package/dist/{chunk-2UBR4YUF.js → chunk-KNZ7YTFH.js} +1 -1
- package/dist/{chunk-3DV5YLAI.js → chunk-KYQKMBSY.js} +5 -5
- package/dist/{chunk-3YCU6V3U.js → chunk-L2WBCXG7.js} +1 -1
- package/dist/{chunk-ROKUEMAK.js → chunk-L3BECLHD.js} +1 -1
- package/dist/{chunk-VOD5MRBF.js → chunk-L3STE7JN.js} +2 -2
- package/dist/{chunk-YW6BODBX.js → chunk-LURBH6G4.js} +1 -1
- package/dist/{chunk-PC3MYH2K.js → chunk-LXPDURUL.js} +2 -2
- package/dist/{chunk-DASRJ26L.js → chunk-M2TQOJ3G.js} +1 -1
- package/dist/{chunk-IRCASURW.js → chunk-M7W63T6H.js} +8 -8
- package/dist/{chunk-ZHR2HNT2.js → chunk-MEF4JVXP.js} +15 -15
- package/dist/{chunk-VVXBBU6R.js → chunk-MHCNQKEK.js} +3 -3
- package/dist/{chunk-FEQQMRHJ.js → chunk-MOKABQCY.js} +2 -2
- package/dist/{chunk-ARBS2EZ6.js → chunk-NA4XPE7S.js} +3 -3
- package/dist/{chunk-HWJQLLJA.js → chunk-NEHVW324.js} +8 -8
- package/dist/{chunk-AKKDFFUO.js → chunk-NILGK2KJ.js} +1 -1
- package/dist/{chunk-6D6Q3ZCG.js → chunk-NJD7HVTP.js} +5 -5
- package/dist/chunk-NMP74ZCB.js +1 -0
- package/dist/{chunk-XPSWZQR4.js → chunk-OEPQIIYL.js} +1 -1
- package/dist/{chunk-CUJA3HBZ.js → chunk-OLSA36VX.js} +8 -8
- package/dist/{chunk-FVORTWUY.js → chunk-ORV2AVIJ.js} +1 -1
- package/dist/chunk-OWAYSIQH.js +8 -0
- package/dist/{chunk-YM7AWNMY.js → chunk-OZ4R6U2M.js} +1 -1
- package/dist/{chunk-G5U7IRH4.js → chunk-P5C7DI5A.js} +5 -5
- package/dist/{chunk-F3G7S5HO.js → chunk-PALWXHBQ.js} +27 -27
- package/dist/{chunk-QO7UHTUE.js → chunk-PKXHAF43.js} +6 -6
- package/dist/chunk-PR3VNBQY.js +28 -0
- package/dist/{chunk-NZKR3JPM.js → chunk-QBMMORYP.js} +1 -1
- package/dist/{chunk-AEMTJGD4.js → chunk-QNWC3RWK.js} +1 -1
- package/dist/{chunk-QDEQHT2T.js → chunk-QQGNTDMO.js} +1 -1
- package/dist/{chunk-V5VAKDLS.js → chunk-QTVE3OSD.js} +6 -6
- package/dist/{chunk-ZAL72BPF.js → chunk-R6GXVLY7.js} +1 -1
- package/dist/chunk-RDGXSAOD.js +2 -0
- package/dist/{chunk-OAKXWYZD.js → chunk-RFR2K7JO.js} +2 -2
- package/dist/{chunk-Y43S6YS5.js → chunk-RZJ63ZM4.js} +10 -10
- package/dist/{chunk-2A2C2YBE.js → chunk-S5N37QIV.js} +2 -2
- package/dist/{chunk-ROPVIMIR.js → chunk-SR6DDTUN.js} +1 -1
- package/dist/chunk-TNNH6F3V.js +11 -0
- package/dist/{chunk-IEW5JTIR.js → chunk-U2ZTHOQL.js} +1 -1
- package/dist/{chunk-BRFUQAVC.js → chunk-U7WDBCVV.js} +1 -1
- package/dist/{chunk-O5UD3ZWM.js → chunk-UC5IC3AM.js} +10 -10
- package/dist/{chunk-HTHNDX32.js → chunk-UFX7F3KG.js} +1 -1
- package/dist/{chunk-Q6GECV4J.js → chunk-UXGNF3OG.js} +1 -1
- package/dist/{chunk-2LRSUDGN.js → chunk-VADWTS7H.js} +5 -5
- package/dist/{chunk-IYTOOV7Q.js → chunk-VCR3RADH.js} +1 -1
- package/dist/{chunk-ITEOA45V.js → chunk-VFSAJMNX.js} +1 -1
- package/dist/{chunk-TMSSR5UH.js → chunk-VQ35LXDC.js} +1 -1
- package/dist/{chunk-3TCGXYUC.js → chunk-VXSYHTBP.js} +1 -1
- package/dist/{chunk-WEZ2RO72.js → chunk-VYHVIKP6.js} +8 -8
- package/dist/{chunk-YAM3L5N4.js → chunk-W2TPXKCV.js} +1 -1
- package/dist/chunk-W6NGPSMM.js +22 -0
- package/dist/{chunk-DFOKJAIS.js → chunk-WBXPA7TY.js} +1 -1
- package/dist/{chunk-FXG7TOZN.js → chunk-WF4A2HSB.js} +1 -1
- package/dist/{chunk-PGATHOTX.js → chunk-WIFK6TLB.js} +1 -1
- package/dist/{chunk-IOZSLFGR.js → chunk-WJMPTW3G.js} +1 -1
- package/dist/chunk-WWCAVO3R.js +14 -0
- package/dist/{chunk-4HJX2M4W.js → chunk-XEPA5J6K.js} +1 -1
- package/dist/{chunk-YEEMRWBS.js → chunk-XHD6Q6JV.js} +1 -1
- package/dist/{chunk-P62QGXRW.js → chunk-XMFJDT6Y.js} +13 -13
- package/dist/{chunk-BLXHT72M.js → chunk-XOQGBU25.js} +1 -1
- package/dist/{chunk-H4LUHKUJ.js → chunk-XRTH47EO.js} +49 -49
- package/dist/chunk-XSHDPG45.js +9 -0
- package/dist/{chunk-ID35S5Y6.js → chunk-XWJT6TFU.js} +1 -1
- package/dist/{chunk-PA3OU3Y7.js → chunk-YDFDTRZF.js} +5 -5
- package/dist/{chunk-44ZHEIJZ.js → chunk-YGKLZBWC.js} +11 -11
- package/dist/{chunk-5PSFENSW.js → chunk-YM2Z4LZ2.js} +16 -16
- package/dist/{chunk-LOFFHXZ4.js → chunk-YMHCLK3F.js} +10 -10
- package/dist/{chunk-KGBB6REQ.js → chunk-YNVH2EIE.js} +3 -3
- package/dist/{chunk-O32GIVYD.js → chunk-YY7OFUT2.js} +3 -3
- package/dist/{chunk-JWUNK2PW.js → chunk-ZCGT5YNR.js} +1 -1
- package/dist/{chunk-NLHGFQ54.js → chunk-ZNV75GAG.js} +1 -1
- package/dist/{chunk-E44RNULN.js → chunk-ZYU5HAIC.js} +1 -1
- package/dist/data/DataTable.js +1 -1
- package/dist/data/EntityList.js +1 -1
- package/dist/data/Gantt.js +1 -1
- package/dist/data/Kanban.js +1 -1
- package/dist/data/ListFooter.js +1 -1
- package/dist/data/ListLoadError.js +1 -1
- package/dist/data/Pagination.js +1 -1
- package/dist/data/ResizableTable.js +1 -1
- package/dist/file-intake/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/DateTimePicker.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/FilePicker.js +1 -1
- package/dist/forms/FormErrorSummary.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/ImageFocusPoint.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/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/TagInput.d.ts +5 -1
- package/dist/forms/TagInput.js +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/TimePicker.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/forms/mediaLibraryMenu.js +1 -1
- package/dist/forms/mediaMoveItems.js +1 -1
- package/dist/forms/textAlign.js +1 -1
- package/dist/forms/useFileIntake.js +1 -1
- package/dist/index.js +665 -665
- package/dist/locales/zh-Hans.js +1 -1
- package/dist/map/index.js +4 -4
- package/dist/model-viewer/index.js +3 -3
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/shell/Accordion.js +1 -1
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/Avatar.js +1 -1
- package/dist/shell/Banner.js +1 -1
- package/dist/shell/Breadcrumbs.js +1 -1
- package/dist/shell/BudgetBar.js +1 -1
- package/dist/shell/Card.js +1 -1
- package/dist/shell/ColoredBadge.js +1 -1
- package/dist/shell/ConfirmDialog.js +1 -1
- package/dist/shell/ContainerFillChart.js +1 -1
- package/dist/shell/CountBadge.js +1 -1
- package/dist/shell/Dialog.js +1 -1
- package/dist/shell/Drawer.js +1 -1
- package/dist/shell/EditableGrid.js +1 -1
- package/dist/shell/EmptyState.js +1 -1
- package/dist/shell/GlobalSearch.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/MetricBar.js +1 -1
- package/dist/shell/MetricBarLegend.js +1 -1
- package/dist/shell/MilestoneTimeline.js +1 -1
- package/dist/shell/PageHeader.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/SettingRow.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/Statistic.js +1 -1
- package/dist/shell/TimeAgo.js +1 -1
- package/dist/shell/TimelineTrack.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/shell/language.js +1 -1
- package/dist/shell/strings.d.ts +3 -0
- package/dist/shell/strings.js +1 -1
- package/dist/shell/toast.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/ErrorPage.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/templates/GalleryTemplate.js +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/PdfViewer-OLQBTKOC.js +0 -1
- package/dist/Sidebar-7SHI7P5Z.js +0 -44
- package/dist/chunk-3RX5KCUH.js +0 -9
- package/dist/chunk-B3KQELHS.js +0 -7
- package/dist/chunk-B447IHIL.js +0 -4
- package/dist/chunk-BKZOTBDP.js +0 -23
- package/dist/chunk-BLXEDMZM.js +0 -8
- package/dist/chunk-D53FU245.js +0 -8
- package/dist/chunk-DEJIH3ZQ.js +0 -1
- package/dist/chunk-FBMYLCCE.js +0 -11
- package/dist/chunk-FW6KE6OU.js +0 -1
- package/dist/chunk-HTHD7STJ.js +0 -9
- package/dist/chunk-KITSIQCV.js +0 -19
- package/dist/chunk-OZV5P5A7.js +0 -15
- package/dist/chunk-QXXMRV4E.js +0 -2
- package/dist/chunk-R3R6ZJNW.js +0 -28
- package/dist/chunk-RMEYKJEH.js +0 -8
- package/dist/chunk-UF76AFFY.js +0 -22
- package/dist/chunk-UHQBHSWL.js +0 -11
- package/dist/chunk-V3KQIY6T.js +0 -8
- package/dist/chunk-WUEH6DLJ.js +0 -14
- package/dist/chunk-YJGA4LPG.js +0 -2
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-
|
|
2
|
-
return
|
|
3
|
-
/* @__PURE__ */
|
|
4
|
-
/* @__PURE__ */A("div",{className:"px-3 pt-3 flex justify-center gap-2",children:["focus","short","long"].map(e=>/* @__PURE__ */A("button",{onClick:()=>m(e),className:`px-3 py-1 text-sm font-bold rounded transition-colors ${t.mode===e?
|
|
5
|
-
/* @__PURE__ */
|
|
1
|
+
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-EHNQGKW4.js";import{subscribePomo as o,getPomoSnapshot as a,setPomoDurations as n,setPomoAlarm as r,setPomoAlarmConfig as s,setPomoBehaviour as i,setPomoFocusSound as l,useTodoTasks as c,pomodoroToday as u,migratePomodoroTasksOnce as d,pomoSwitchMode as m,pomoPause as h,pomoStart as p,ALARM_OPTIONS as g,playAlarm as k,FOCUS_SOUND_OPTIONS as f,previewFocusSound as b}from"./chunk-RFR2K7JO.js";import{PLACEHOLDER_INK as x}from"./chunk-AYZY3YNC.js";import{formatTime as v}from"./chunk-NHKT5IH6.js";import"./chunk-36BRD5J3.js";import"./chunk-JRQMX4PK.js";import{pad2 as y}from"./chunk-LF27WIN2.js";import{useWidgetSettings as N}from"./chunk-XRTH47EO.js";import"./chunk-4LXCCZDM.js";import"./chunk-AW7TOB6N.js";import"./chunk-KNUR2UEG.js";import"./chunk-JDCM2VHG.js";import"./chunk-M2TQOJ3G.js";import"./chunk-ZDMZM7HD.js";import"./chunk-5A7MWTXX.js";import"./chunk-BG3C4ALM.js";import"./chunk-JGKDWDVM.js";import"./chunk-FQD6P6EZ.js";import"./chunk-EIFNESXS.js";import"./chunk-FTKLODQK.js";import"./chunk-RIG5FEVS.js";import"./chunk-JR2HHKVP.js";import"./chunk-VWGWZY7A.js";import"./chunk-7QSDPSXP.js";import"./chunk-HK53EKZH.js";import"./chunk-4U5M37SF.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{Icon as S}from"./chunk-ISVODSRP.js";import"./chunk-J75ZT2JQ.js";import"./chunk-R2VKEMZH.js";import"./chunk-G67CJAQ2.js";import"./chunk-SOZCWT6I.js";import"./chunk-PGN5ME7B.js";import"./chunk-62LW225J.js";import"./chunk-GLUJS42B.js";import"./chunk-D65T4H6J.js";import"./chunk-STKJA4PV.js";import"./chunk-VQ35LXDC.js";import"./chunk-UQYNPYF4.js";import"./chunk-MRJKZWWV.js";import"./chunk-TWVUQUUD.js";import"./chunk-5FYDNH4Y.js";import"./chunk-LNXBTK7Q.js";import"./chunk-IUVGHHR3.js";import"./chunk-C3QOHMR6.js";import{useSyncExternalStore as j,useEffect as w,useMemo as B,useState as M,useRef as T,useCallback as P}from"react";import{jsxs as D,Fragment as I,jsx as A}from"react/jsx-runtime";var V="pomodoro_appearance",R="pomodoro_active_task_id",L={focus:"Pomodoro",short:"Short Break",long:"Long Break"},W={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var $=25,E=5,F=15,K=!1,G=!1,H=4,J=!0,O=!0,Q="bell",U=100,X=1,Z="none",_=50,Y=(e,t,o,a)=>"number"==typeof e&&isFinite(e)?Math.max(t,Math.min(o,Math.round(e))):a;function z(){const t=j(o,a,a),{prefs:k,save:b}=C(),x=function(e){const t=e&&"object"==typeof e?e:{};return{focusMinutes:Y(t.focusMinutes,1,120,$),shortBreakMinutes:Y(t.shortBreakMinutes,1,120,E),longBreakMinutes:Y(t.longBreakMinutes,1,120,F),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:K,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:G,longBreakInterval:Y(t.longBreakInterval,1,20,H),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:J,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:O,alarmSound:g.some(e=>e.id===t.alarmSound)?t.alarmSound:Q,alarmVolume:Y(t.alarmVolume,0,100,U),alarmRepeat:Y(t.alarmRepeat,1,5,X),focusSound:f.some(e=>e.id===t.focusSound)?t.focusSound:Z,focusVolume:Y(t.focusVolume,0,100,_)}}(k.pomodoro_settings);w(()=>{n({focus:60*x.focusMinutes,short:60*x.shortBreakMinutes,long:60*x.longBreakMinutes})},[x.focusMinutes,x.shortBreakMinutes,x.longBreakMinutes]),w(()=>{r(x.alarmSound),s(x.alarmVolume,x.alarmRepeat)},[x.alarmSound,x.alarmVolume,x.alarmRepeat]),w(()=>{i({autoStartBreaks:x.autoStartBreaks,autoStartPomodoros:x.autoStartPomodoros,longBreakInterval:x.longBreakInterval})},[x.autoStartBreaks,x.autoStartPomodoros,x.longBreakInterval]),w(()=>{l(x.focusSound,x.focusVolume)},[x.focusSound,x.focusVolume]),w(()=>{if("undefined"!=typeof Notification&&"default"===Notification.permission)try{Notification.requestPermission()}catch{}},[]);const z=c(),ee=z.tasks,te=B(()=>u(),[]),oe=function(e,t){return B(()=>t?(e=>{const t=[],o=[];for(const a of e)(a.done?o:t).push(a);return[...t,...o]})(e):e,[e,t])}(B(()=>ee.filter(e=>!!e.dueDate&&(e.dueDate===te||e.dueDate<te&&!e.done)),[ee,te]),x.checkToBottom),[ae,ne]=M(()=>localStorage.getItem(R)),[re,se]=M(!1),[ie,le]=M(null),ce=T(!1);w(()=>{ce.current||(ce.current=!0,d(ee,z.setAllTasks))},[]),w(()=>{try{ae?localStorage.setItem(R,ae):localStorage.removeItem(R)}catch{}},[ae]),w(()=>{if(!ie)return;const e=()=>le(null),t=setTimeout(()=>document.addEventListener("click",e),0);return()=>{clearTimeout(t),document.removeEventListener("click",e)}},[ie]);const ue=T(t.streak);w(()=>{if(t.streak>ue.current&&ae){const e=ee.find(e=>e.id===ae);if(e){const t=(e.completed??0)+1,o=e.estimated??0,a=x.autoCheckTasks&&o>0&&t>=o;z.updateTask(ae,{completed:t,done:e.done||a})}}ue.current=t.streak},[t.streak,ae,x.autoCheckTasks,ee,z]);const me=oe.reduce((e,t)=>e+(t.completed??0),0),he=oe.reduce((e,t)=>e+Math.max(t.estimated??0,t.completed??0),0),pe=oe.reduce((e,t)=>t.done?e:e+Math.max(0,(t.estimated??0)-(t.completed??0)),0),ge=t.running&&"focus"===t.mode?t.remaining:0,ke=pe*x.focusMinutes*60+ge,fe=new Date(Date.now()+1e3*ke),be=v(fe.toISOString(),{clock:{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}}),xe=(ke/3600).toFixed(1),ve=ae?ee.find(e=>e.id===ae)??null:null,ye=y(Math.floor(t.remaining/60)),Ne=y(t.remaining%60),[Ce,Se]=M(()=>e(V)),[je,we]=M(!1),[Be,Me]=M(Ce),[Te,Pe]=M(x);N(P(()=>{Me({...Ce}),Pe({...x}),we(!0)},[Ce,x]));const De="focus"!==t.mode,Ie=W[t.mode],Ae=De?(Ve=Ie,Re=Ce.activeOpacity/100,`rgba(${parseInt(Ve.slice(1,3),16)}, ${parseInt(Ve.slice(3,5),16)}, ${parseInt(Ve.slice(5,7),16)}, ${Re})`):`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${Ce.activeOpacity/100})`;var Ve,Re;const Le={primary:De?"text-white":"text-gray-900",secondary:De?"text-white/85":"text-gray-700",muted:De?"text-white/65":"text-gray-500",tabActive:De?"bg-white/15 text-white":"bg-gray-200 text-gray-900",tabInactive:De?"text-white/75 hover:bg-white/10":"text-gray-500 hover:bg-gray-200",divider:De?"border-white/30":"border-gray-200",softDivider:De?"border-white/20":"border-gray-200",iconBtn:De?"bg-black/15 hover:bg-black/25 text-white/85":"bg-gray-200 hover:bg-gray-300 text-gray-600",addTaskBtn:De?"border-white/45 text-white/90 hover:bg-white/[0.06]":"border-gray-300 text-gray-500 hover:bg-gray-200/50"},We=De?Ie:"#0f172a";/* @__PURE__ */
|
|
2
|
+
return D(I,{children:[
|
|
3
|
+
/* @__PURE__ */D("div",{className:`flex flex-col h-full select-none transition-colors duration-300 ${Le.primary}`,style:{backgroundColor:Ae,backdropFilter:Ce.activeBlur>0?`blur(${Ce.activeBlur}px)`:void 0},children:[
|
|
4
|
+
/* @__PURE__ */A("div",{className:"px-3 pt-3 flex justify-center gap-2",children:["focus","short","long"].map(e=>/* @__PURE__ */A("button",{onClick:()=>m(e),className:`px-3 py-1 text-sm font-bold rounded transition-colors ${t.mode===e?Le.tabActive:Le.tabInactive}`,children:L[e]},e))}),
|
|
5
|
+
/* @__PURE__ */D("div",{className:"text-center font-bold tabular-nums leading-none tracking-tight mt-3",style:{fontSize:"4.5rem"},children:[ye,":",Ne]}),
|
|
6
6
|
/* @__PURE__ */A("div",{className:"flex justify-center mt-3 mb-2",children:/* @__PURE__ */A("button",{onClick:()=>t.running?h():p(),className:"bg-surface px-12 py-3 rounded-md font-bold text-base shadow-[0_4px_0_rgba(0,0,0,0.12)] hover:shadow-[0_3px_0_rgba(0,0,0,0.12)] active:translate-y-1 active:shadow-none transition-all",style:{color:We,letterSpacing:"0.08em"},children:t.running?"PAUSE":"START"})}),
|
|
7
|
-
/* @__PURE__ */A("div",{className:"px-3 py-3 text-center",children:ve?/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */A("div",{className:`text-base font-medium leading-tight truncate mt-0.5 ${
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */A("h3",{className:`text-base font-bold tracking-tight ${
|
|
12
|
-
/* @__PURE__ */A("button",{className:`rounded p-1 transition-colors ${
|
|
13
|
-
/* @__PURE__ */A("div",{className:`border-t mx-3 mt-2 ${
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
return
|
|
7
|
+
/* @__PURE__ */A("div",{className:"px-3 py-3 text-center",children:ve?/* @__PURE__ */D(I,{children:[
|
|
8
|
+
/* @__PURE__ */D("div",{className:`text-xs leading-tight ${Le.muted}`,children:["#",(ve.completed??0)+1]}),
|
|
9
|
+
/* @__PURE__ */A("div",{className:`text-base font-medium leading-tight truncate mt-0.5 ${Le.primary}`,children:ve.name})]}):/* @__PURE__ */A("div",{className:`text-xs italic ${Le.muted}`,children:"No task selected"})}),
|
|
10
|
+
/* @__PURE__ */D("div",{className:"px-3 mt-1 flex items-center justify-between",children:[
|
|
11
|
+
/* @__PURE__ */A("h3",{className:`text-base font-bold tracking-tight ${Le.primary}`,children:"Tasks"}),
|
|
12
|
+
/* @__PURE__ */A("button",{className:`rounded p-1 transition-colors ${Le.iconBtn}`,"aria-label":"Tasks menu",tabIndex:-1,children:/* @__PURE__ */A(S,{name:"more-vertical",look:"solid",className:"h-4 w-4"})})]}),
|
|
13
|
+
/* @__PURE__ */A("div",{className:`border-t mx-3 mt-2 ${Le.divider}`}),
|
|
14
|
+
/* @__PURE__ */D("div",{className:"flex-1 px-3 py-3 space-y-2 overflow-y-auto",children:[oe.map(e=>{const t=e.id===ae;/* @__PURE__ */
|
|
15
|
+
return D("div",{onClick:()=>ne(e.id),className:"bg-surface text-ink-strong rounded-md flex items-center pr-2 py-3 shadow-sm cursor-pointer transition-shadow hover:shadow-(--elevation-panel) "+(t?"border-l-4 border-gray-700 pl-2":"pl-3 border-l-4 border-transparent"),children:[
|
|
16
16
|
/* @__PURE__ */A("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,z.toggleDone(o)},className:"shrink-0",children:e.done?/* @__PURE__ */A("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",style:{color:We},children:/* @__PURE__ */A("path",{d:"M10 0a10 10 0 100 20 10 10 0 000-20zm-1 14.5l-4.5-4.5 1.4-1.4 3.1 3.1 6.1-6.1 1.4 1.4z"})}):/* @__PURE__ */A("svg",{className:"h-5 w-5 text-gray-300",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:/* @__PURE__ */A("circle",{cx:"12",cy:"12",r:"10"})})}),
|
|
17
17
|
/* @__PURE__ */A("span",{className:"ml-3 flex-1 font-semibold truncate "+(e.done?"line-through text-gray-400":"text-gray-800"),children:e.name}),
|
|
18
|
-
/* @__PURE__ */
|
|
18
|
+
/* @__PURE__ */D("span",{className:"text-sm tabular-nums mr-2 shrink-0",children:[
|
|
19
19
|
/* @__PURE__ */A("span",{className:"font-bold text-gray-500",children:e.completed??0}),
|
|
20
20
|
/* @__PURE__ */A("span",{className:"text-gray-400",children:" / "}),
|
|
21
21
|
/* @__PURE__ */A("span",{className:"text-gray-400",children:e.estimated??"–"})]}),
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */A("button",{onClick:t=>{t.stopPropagation(),le(ie===e.id?null:e.id)},className:"rounded p-1 bg-gray-100 hover:bg-gray-200",children:/* @__PURE__ */A(S,{name:"more-vertical",look:"solid",className:"h-4 w-4 text-ink-faint"})}),ie===e.id&&/* @__PURE__ */A("div",{className:"absolute right-0 top-full mt-1 bg-white text-gray-800 rounded shadow-lg border border-gray-200 z-10 min-w-[110px] overflow-hidden",onClick:e=>e.stopPropagation(),children:/* @__PURE__ */A("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,z.removeTask(o),ae===o&&ne(null),le(null)},className:"block w-full px-3 h-8 text-sm text-left hover:bg-red-50 text-red-600",children:"Delete"})})]})]},e.id)}),re?/* @__PURE__ */A(de,{onSubmit:(e,t)=>{const o=e.trim();if(!o)return;const a=z.addTask({name:o,estimated:t,completed:0,dueDate:te});ae||ne(a),se(!1)},onCancel:()=>se(!1),accentColor:We}):/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */D("div",{className:"relative",children:[
|
|
23
|
+
/* @__PURE__ */A("button",{onClick:t=>{t.stopPropagation(),le(ie===e.id?null:e.id)},className:"rounded p-1 bg-gray-100 hover:bg-gray-200",children:/* @__PURE__ */A(S,{name:"more-vertical",look:"solid",className:"h-4 w-4 text-ink-faint"})}),ie===e.id&&/* @__PURE__ */A("div",{className:"absolute right-0 top-full mt-1 bg-white text-gray-800 rounded shadow-lg border border-gray-200 z-10 min-w-[110px] overflow-hidden",onClick:e=>e.stopPropagation(),children:/* @__PURE__ */A("button",{onClick:t=>{var o;t.stopPropagation(),o=e.id,z.removeTask(o),ae===o&&ne(null),le(null)},className:"block w-full px-3 h-8 text-sm text-left hover:bg-red-50 text-red-600",children:"Delete"})})]})]},e.id)}),re?/* @__PURE__ */A(de,{onSubmit:(e,t)=>{const o=e.trim();if(!o)return;const a=z.addTask({name:o,estimated:t,completed:0,dueDate:te});ae||ne(a),se(!1)},onCancel:()=>se(!1),accentColor:We}):/* @__PURE__ */D("button",{onClick:()=>se(!0),className:`w-full border-2 border-dashed rounded-md py-3 font-semibold flex items-center justify-center gap-2 transition-colors ${Le.addTaskBtn}`,children:[
|
|
24
24
|
/* @__PURE__ */A(S,{name:"add-circle",className:"h-5 w-5",strokeWidth:2}),"Add Task"]})]}),
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */A("span",{className:`font-bold ${
|
|
28
|
-
/* @__PURE__ */A("span",{className:
|
|
29
|
-
/* @__PURE__ */A("span",{className:`font-bold ${
|
|
30
|
-
/* @__PURE__ */A("span",{className:`font-bold ${
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
/* @__PURE__ */A(q,{open:je,onClose:()=>we(!1),onSave:()=>{Se(Be),localStorage.setItem(
|
|
33
|
-
return
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */D("div",{className:`border-t px-3 py-3 flex items-center justify-center gap-5 text-sm ${Le.softDivider}`,children:[
|
|
26
|
+
/* @__PURE__ */D("span",{className:Le.secondary,children:["Pomos: ",
|
|
27
|
+
/* @__PURE__ */A("span",{className:`font-bold ${Le.primary}`,children:me}),
|
|
28
|
+
/* @__PURE__ */A("span",{className:Le.muted,children:" / "}),
|
|
29
|
+
/* @__PURE__ */A("span",{className:`font-bold ${Le.primary}`,children:he})]}),ke>0&&/* @__PURE__ */D("span",{className:Le.secondary,children:["Finish At: ",
|
|
30
|
+
/* @__PURE__ */A("span",{className:`font-bold ${Le.primary}`,children:be}),
|
|
31
|
+
/* @__PURE__ */D("span",{className:Le.muted,children:[" (",xe,"h)"]})]})]})]}),
|
|
32
|
+
/* @__PURE__ */A(q,{open:je,onClose:()=>we(!1),onSave:()=>{Se(Be),localStorage.setItem(V,JSON.stringify(Be)),b({pomodoro_settings:Te}),we(!1)},configAppearance:Be,setConfigAppearance:Me,configPrefs:Te,setConfigPrefs:Pe})]})}function q({open:e,onClose:o,onSave:a,configAppearance:n,setConfigAppearance:r,configPrefs:s,setConfigPrefs:i}){const l=(e,t)=>i(o=>({...o,[e]:t}));/* @__PURE__ */
|
|
33
|
+
return D(t,{open:e,onClose:o,title:"Pomodoro Settings",appearance:n,onAppearanceChange:r,onSave:a,children:[
|
|
34
|
+
/* @__PURE__ */D(ee,{icon:/* @__PURE__ */A(le,{}),label:"TIMER",children:[
|
|
35
|
+
/* @__PURE__ */D("div",{children:[
|
|
36
36
|
/* @__PURE__ */A("p",{className:"text-sm font-bold text-gray-800 mb-2",children:"Time (minutes)"}),
|
|
37
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */D("div",{className:"grid grid-cols-3 gap-3",children:[
|
|
38
38
|
/* @__PURE__ */A(ae,{label:"Pomodoro",value:s.focusMinutes,onChange:e=>l("focusMinutes",e),max:120}),
|
|
39
39
|
/* @__PURE__ */A(ae,{label:"Short Break",value:s.shortBreakMinutes,onChange:e=>l("shortBreakMinutes",e),max:120}),
|
|
40
40
|
/* @__PURE__ */A(ae,{label:"Long Break",value:s.longBreakMinutes,onChange:e=>l("longBreakMinutes",e),max:120})]})]}),
|
|
41
41
|
/* @__PURE__ */A(te,{label:"Auto Start Breaks",children:/* @__PURE__ */A(se,{checked:s.autoStartBreaks,onChange:e=>l("autoStartBreaks",e)})}),
|
|
42
42
|
/* @__PURE__ */A(te,{label:"Auto Start Pomodoros",children:/* @__PURE__ */A(se,{checked:s.autoStartPomodoros,onChange:e=>l("autoStartPomodoros",e)})}),
|
|
43
43
|
/* @__PURE__ */A(te,{label:"Long Break interval",children:/* @__PURE__ */A(ne,{value:s.longBreakInterval,onChange:e=>l("longBreakInterval",e),min:1,max:20,className:"w-14 text-center"})})]}),
|
|
44
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */D(ee,{icon:/* @__PURE__ */A(ce,{}),label:"TASK",children:[
|
|
45
45
|
/* @__PURE__ */A(te,{label:"Auto Check Tasks",info:'If you enable "Auto Check Tasks", the active task will be automatically checked when the actual pomodoro count reaches the estimated count.',children:/* @__PURE__ */A(se,{checked:s.autoCheckTasks,onChange:e=>l("autoCheckTasks",e)})}),
|
|
46
46
|
/* @__PURE__ */A(te,{label:"Check to Bottom",info:'If you enable "Check to Bottom", the checked task will be automatically moved to the bottom of the task list.',children:/* @__PURE__ */A(se,{checked:s.checkToBottom,onChange:e=>l("checkToBottom",e)})})]}),
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */A(te,{label:"Alarm Sound",children:/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */D(ee,{icon:/* @__PURE__ */A(ue,{}),label:"SOUND",children:[
|
|
48
|
+
/* @__PURE__ */A(te,{label:"Alarm Sound",children:/* @__PURE__ */D("div",{className:"flex items-center gap-2",children:[
|
|
49
49
|
/* @__PURE__ */A(re,{value:s.alarmSound,onChange:e=>l("alarmSound",e),options:g.map(e=>({id:e.id,label:e.label}))}),"off"!==s.alarmSound&&/* @__PURE__ */A("button",{type:"button",onClick:()=>k(s.alarmSound,{volume:s.alarmVolume,repeat:1}),className:"px-2 py-1 text-2xs rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
|
|
50
50
|
/* @__PURE__ */A(oe,{value:s.alarmVolume,onChange:e=>l("alarmVolume",e)}),
|
|
51
51
|
/* @__PURE__ */A(te,{label:"repeat",children:/* @__PURE__ */A(ne,{value:s.alarmRepeat,onChange:e=>l("alarmRepeat",e),min:1,max:5,className:"w-14 text-center"})}),
|
|
52
|
-
/* @__PURE__ */A(te,{label:"Focus Sound",children:/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */A(te,{label:"Focus Sound",children:/* @__PURE__ */D("div",{className:"flex items-center gap-2",children:[
|
|
53
53
|
/* @__PURE__ */A(re,{value:s.focusSound,onChange:e=>l("focusSound",e),options:f}),"none"!==s.focusSound&&/* @__PURE__ */A("button",{type:"button",onClick:()=>b(s.focusSound,s.focusVolume),className:"px-2 py-1 text-2xs rounded border border-line-strong text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
|
|
54
54
|
/* @__PURE__ */A(oe,{value:s.focusVolume,onChange:e=>l("focusVolume",e)})]})]})}function ee({icon:e,label:t,children:o}){/* @__PURE__ */
|
|
55
|
-
return
|
|
56
|
-
/* @__PURE__ */
|
|
55
|
+
return D("div",{className:"border-t border-gray-200 pt-3 first:border-0 first:pt-0",children:[
|
|
56
|
+
/* @__PURE__ */D("div",{className:"flex items-center gap-2 mb-3 text-ink-faintest",children:[e,
|
|
57
57
|
/* @__PURE__ */A("span",{className:"text-xs font-bold tracking-[0.15em]",children:t})]}),
|
|
58
58
|
/* @__PURE__ */A("div",{className:"space-y-3",children:o})]})}function te({label:e,info:t,children:o}){/* @__PURE__ */
|
|
59
|
-
return
|
|
60
|
-
/* @__PURE__ */
|
|
59
|
+
return D("div",{className:"flex items-center justify-between gap-3",children:[
|
|
60
|
+
/* @__PURE__ */D("div",{className:"flex items-center gap-2 min-w-0",children:[
|
|
61
61
|
/* @__PURE__ */A("span",{className:"text-sm font-semibold text-gray-800",children:e}),t&&/* @__PURE__ */A(ie,{title:t})]}),
|
|
62
62
|
/* @__PURE__ */A("div",{className:"shrink-0",children:o})]})}function oe({value:e,onChange:t}){/* @__PURE__ */
|
|
63
|
-
return
|
|
63
|
+
return D("div",{className:"flex items-center justify-end gap-3",children:[
|
|
64
64
|
/* @__PURE__ */A("span",{className:"text-xs text-gray-400 w-7 text-right tabular-nums",children:e}),
|
|
65
65
|
/* @__PURE__ */A("input",{type:"range",min:0,max:100,value:e,onChange:e=>t(parseInt(e.target.value,10)),className:"w-40 accent-blue-500"})]})}function ae({label:e,value:t,onChange:o,min:a=1,max:n=99}){/* @__PURE__ */
|
|
66
|
-
return
|
|
66
|
+
return D("label",{className:"flex flex-col",children:[
|
|
67
67
|
/* @__PURE__ */A("span",{className:"text-xs font-semibold text-gray-500 mb-1",children:e}),
|
|
68
68
|
/* @__PURE__ */A(ne,{value:t,onChange:o,min:a,max:n})]})}function ne({value:e,onChange:t,min:o=1,max:a=99,className:n=""}){/* @__PURE__ */
|
|
69
69
|
return A("input",{type:"number",min:o,max:a,value:e,onChange:e=>t(Math.max(o,Math.min(a,parseInt(e.target.value,10)||o))),className:`bg-gray-100 border-0 rounded-md px-2 h-8 text-sm font-medium text-ink-strong focus:outline-none focus:ring-2 focus:ring-blue-500 w-full ${n}`})}function re({value:e,onChange:t,options:o}){/* @__PURE__ */
|
|
70
|
-
return
|
|
70
|
+
return D("div",{className:"relative",children:[
|
|
71
71
|
/* @__PURE__ */A("select",{value:e,onChange:e=>t(e.target.value),className:"appearance-none bg-gray-100 border-0 rounded-md pl-3 pr-8 h-8 text-sm font-medium text-ink-strong focus:outline-none focus:ring-2 focus:ring-blue-500 cursor-pointer",children:o.map(e=>/* @__PURE__ */A("option",{value:e.id,children:e.label},e.id))}),
|
|
72
72
|
/* @__PURE__ */A(S,{name:"chevron-down",className:`absolute right-2 top-1/2 -translate-y-1/2 h-3.5 w-3.5 pointer-events-none ${x}`,strokeWidth:2.5})]})}function se({checked:e,onChange:t}){/* @__PURE__ */
|
|
73
73
|
return A("button",{type:"button",role:"switch","aria-checked":e,onClick:()=>t(!e),className:"relative inline-flex h-6 w-11 items-center rounded-full transition-colors "+(e?"bg-emerald-500":"bg-gray-300"),children:/* @__PURE__ */A("span",{className:"absolute h-5 w-5 rounded-full bg-white shadow transition-transform "+(e?"translate-x-[22px]":"translate-x-0.5")})})}function ie({title:e}){/* @__PURE__ */
|
|
74
74
|
return A("span",{title:e,className:"inline-flex items-center justify-center w-4 h-4 rounded-full bg-gray-300 text-on-accent text-3xs font-bold cursor-help",children:"i"})}function le(){/* @__PURE__ */
|
|
75
|
-
return
|
|
75
|
+
return D("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
|
|
76
76
|
/* @__PURE__ */A("circle",{cx:"12",cy:"12",r:"9"}),
|
|
77
77
|
/* @__PURE__ */A("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 7v5l3 2"})]})}function ce(){/* @__PURE__ */
|
|
78
|
-
return
|
|
78
|
+
return D("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
|
|
79
79
|
/* @__PURE__ */A("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),
|
|
80
80
|
/* @__PURE__ */A("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12l2 2 4-4"})]})}function ue(){/* @__PURE__ */
|
|
81
|
-
return
|
|
81
|
+
return D("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[
|
|
82
82
|
/* @__PURE__ */A("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 5L6 9H2v6h4l5 4V5z"}),
|
|
83
83
|
/* @__PURE__ */A("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.5 8.5a5 5 0 010 7M19 5a9 9 0 010 14"})]})}function de({onSubmit:e,onCancel:t,accentColor:o}){const[a,n]=M(""),[r,s]=M(1),i=()=>e(a,r);/* @__PURE__ */
|
|
84
|
-
return
|
|
84
|
+
return D("div",{className:"bg-surface text-ink-strong rounded-md p-3 shadow-(--elevation-panel)",children:[
|
|
85
85
|
/* @__PURE__ */A("input",{autoFocus:!0,value:a,onChange:e=>n(e.target.value),placeholder:"What are you working on?",onKeyDown:e=>{"Enter"===e.key&&i(),"Escape"===e.key&&t()},className:"w-full text-base font-medium bg-transparent border-0 outline-none placeholder-gray-400"}),
|
|
86
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */D("div",{className:"flex items-center justify-between mt-2",children:[
|
|
87
87
|
/* @__PURE__ */A("span",{className:"text-xs font-semibold text-gray-500",children:"Est Pomodoros"}),
|
|
88
88
|
/* @__PURE__ */A("input",{type:"number",min:1,max:20,value:r,onChange:e=>s(Math.max(1,Math.min(20,parseInt(e.target.value,10)||1))),className:"w-16 bg-gray-100 rounded px-2 py-1 text-sm text-right border-0 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),
|
|
89
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */D("div",{className:"flex gap-2 mt-3 justify-end",children:[
|
|
90
90
|
/* @__PURE__ */A("button",{onClick:t,className:"px-3 py-1 text-sm text-gray-500 hover:bg-gray-100 rounded",children:"Cancel"}),
|
|
91
91
|
/* @__PURE__ */A("button",{onClick:i,className:"px-4 py-1 text-sm font-semibold text-white rounded shadow-sm",style:{backgroundColor:o},children:"Save"})]})]})}export{z as default};
|