efficient-shell 7.70.0 → 7.73.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/dist/{Browser-XDIOSJS4.js → Browser-5XJ3XNPZ.js} +14 -14
- package/dist/Calculator-GQGK6DO3.js +29 -0
- package/dist/ConfirmDialog-YVFPLUQH.js +1 -0
- package/dist/{CurrencyConverter-YEG2OFM7.js → CurrencyConverter-UPCIPOFS.js} +8 -8
- package/dist/{Documents-MRYWQZ6F.js → Documents-VNXTKUCK.js} +30 -30
- package/dist/Files-UROUCEP6.js +87 -0
- package/dist/{Notepad-PWMJWNUE.js → Notepad-NZNQ4LN5.js} +15 -15
- package/dist/PdfViewer-YELEO346.js +1 -0
- package/dist/{PomodoroTimer-7PWB2HLD.js → PomodoroTimer-JPWZ4DDT.js} +8 -8
- package/dist/{Preview-XMWD3UNB.js → Preview-Q46CQBXU.js} +56 -56
- package/dist/Sidebar-FS2PX6DU.js +43 -0
- package/dist/{Spreadsheet-M2KRJ7BF.js → Spreadsheet-2UFPQX3D.js} +14 -14
- package/dist/{Stock-EO7DOEEF.js → Stock-FRUP3BIN.js} +3 -3
- package/dist/{Weather-Y6E3HASC.js → Weather-MQOSCQQR.js} +16 -16
- package/dist/{WorldClock-HXGPRRQZ.js → WorldClock-7GQYAE4T.js} +6 -6
- package/dist/ai/index.js +18 -18
- package/dist/apps/index.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/{chunk-RDLWLATO.js → chunk-3E27HV76.js} +2 -2
- package/dist/{chunk-BIR6UUSP.js → chunk-3NYPZO4K.js} +4 -4
- package/dist/{chunk-Q2A75VYD.js → chunk-43TOBCP4.js} +5 -5
- package/dist/{chunk-YSJA274H.js → chunk-5G76CZPP.js} +2 -2
- package/dist/{chunk-I7OLF2FL.js → chunk-5MCD5KGU.js} +8 -8
- package/dist/chunk-7FA25555.js +466 -0
- package/dist/{chunk-JVSFX53V.js → chunk-A5UR5LGU.js} +7 -7
- package/dist/chunk-A7XLRGZQ.js +1040 -0
- package/dist/chunk-EJ4RMSQB.js +1 -0
- package/dist/chunk-F6FTF37T.js +46 -0
- package/dist/chunk-G5GERM76.js +2 -0
- package/dist/{chunk-4EOL3HTG.js → chunk-IF3ZX46R.js} +13 -13
- package/dist/{chunk-XMSL2GJP.js → chunk-L5X6V677.js} +1 -1
- package/dist/{chunk-XA4APY3B.js → chunk-MY4HINJT.js} +1 -1
- package/dist/{chunk-2WZP2RMC.js → chunk-MYUJDXQC.js} +1 -1
- package/dist/chunk-N55MVC2J.js +1 -0
- package/dist/{chunk-PZ53QKHH.js → chunk-OKFO3XYS.js} +3 -3
- package/dist/{chunk-EU4BCXGA.js → chunk-RWNNFCSA.js} +1 -1
- package/dist/{chunk-4ZBKHQVW.js → chunk-RZHHSQDO.js} +13 -13
- package/dist/{chunk-WS3P7QXT.js → chunk-SBA7JZ72.js} +65 -65
- package/dist/{chunk-44BJ3XGZ.js → chunk-USHLHGAH.js} +8 -8
- package/dist/chunk-UULKUZAG.js +1 -0
- package/dist/{chunk-6I4ZV67D.js → chunk-VB2Q65XD.js} +2 -2
- package/dist/{chunk-CCCVRRC7.js → chunk-WLGJ7OCM.js} +1 -1
- package/dist/{chunk-YJIG2KT3.js → chunk-YIC644QO.js} +3 -3
- package/dist/format/index.d.ts +1 -1
- package/dist/format/index.js +1 -1
- package/dist/icons/efficient-glyphs.d.ts +486 -0
- package/dist/icons/efficient-glyphs.js +1 -0
- package/dist/icons/efficient-looks.d.ts +1007 -6
- package/dist/icons/efficient-looks.js +915 -915
- package/dist/icons/efficient-meanings.d.ts +425 -0
- package/dist/icons/efficient-meanings.js +1 -0
- package/dist/icons/efficient.d.ts +5 -897
- package/dist/icons/efficient.js +1 -466
- package/dist/{index-BpCIWxCw.d.ts → index-CZGuHIbF.d.ts} +2 -86
- package/dist/{index-CHufemKB.d.ts → index-aXJMK0gn.d.ts} +85 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +274 -274
- package/dist/map/index.d.ts +9 -3
- package/dist/map/index.js +13 -13
- package/dist/map-site.css +4 -3
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/ui/index.d.ts +2 -2
- package/dist/ui/index.js +1 -1
- package/package.json +11 -1
- package/dist/Calculator-TTFPAPP7.js +0 -29
- package/dist/ConfirmDialog-JP35CDMP.js +0 -1
- package/dist/Files-MJPDM7I3.js +0 -87
- package/dist/PdfViewer-LALOZLBP.js +0 -1
- package/dist/Sidebar-NWSMRAIE.js +0 -43
- package/dist/chunk-6MZFPE5S.js +0 -1040
- package/dist/chunk-7AQUUDJL.js +0 -1
- package/dist/chunk-AA5RO6ER.js +0 -47
- package/dist/chunk-AP2QEJXQ.js +0 -1
- package/dist/chunk-DELNCIUK.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-
|
|
1
|
+
import{loadAppearance as e,WidgetSettingsModal as t}from"./chunk-MY4HINJT.js";import{subscribePomo as a,getPomoSnapshot as o,setPomoDurations as n,setPomoAlarm as r,setPomoAlarmConfig as s,setPomoBehaviour as l,setPomoFocusSound as i,useTodoTasks as c,migratePomodoroTasksOnce as d,pomoSwitchMode as u,pomoPause as m,pomoStart as h,ALARM_OPTIONS as p,playAlarm as g,FOCUS_SOUND_OPTIONS as f,previewFocusSound as b}from"./chunk-5G76CZPP.js";import{PLACEHOLDER_INK as k}from"./chunk-CU3GY5Y2.js";import{useWidgetSettings as x}from"./chunk-SBA7JZ72.js";import"./chunk-TPDOOCFS.js";import"./chunk-OKFO3XYS.js";import"./chunk-DAMBAXPA.js";import{useShellPrefs as v}from"./chunk-RZHHSQDO.js";import"./chunk-5A7MWTXX.js";import"./chunk-3NYPZO4K.js";import"./chunk-YIC644QO.js";import"./chunk-UVBK6YSR.js";import"./chunk-KNUR2UEG.js";import"./chunk-G5GERM76.js";import"./chunk-3E27HV76.js";import"./chunk-7IQ3B77H.js";import"./chunk-FIEA5CGB.js";import"./chunk-K7PQXJO7.js";import"./chunk-D65T4H6J.js";import{Icon as y}from"./chunk-76DRQSJM.js";import"./chunk-2EJRVQ3Y.js";import"./chunk-C3QOHMR6.js";import"./chunk-2J6F4EE7.js";import{useSyncExternalStore as N,useEffect as w,useMemo as C,useState as S,useRef as B,useCallback as M}from"react";import{jsxs as j,Fragment as T,jsx as P}from"react/jsx-runtime";var I="pomodoro_appearance",A="pomodoro_active_task_id",$={focus:"Pomodoro",short:"Short Break",long:"Long Break"},D={focus:"#0f172a",short:"#508a52",long:"#5b7898"};var V=25,L=5,R=15,E=!1,O=!1,_=4,F=!0,H=!0,J="bell",W=100,Y=1,K="none",Q=50,G=(e,t,a,o)=>"number"==typeof e&&isFinite(e)?Math.max(t,Math.min(a,Math.round(e))):o;function U(){const t=N(a,o,o),{prefs:g,save:b}=v(),k=function(e){const t=e&&"object"==typeof e?e:{};return{focusMinutes:G(t.focusMinutes,1,120,V),shortBreakMinutes:G(t.shortBreakMinutes,1,120,L),longBreakMinutes:G(t.longBreakMinutes,1,120,R),autoStartBreaks:"boolean"==typeof t.autoStartBreaks?t.autoStartBreaks:E,autoStartPomodoros:"boolean"==typeof t.autoStartPomodoros?t.autoStartPomodoros:O,longBreakInterval:G(t.longBreakInterval,1,20,_),autoCheckTasks:"boolean"==typeof t.autoCheckTasks?t.autoCheckTasks:F,checkToBottom:"boolean"==typeof t.checkToBottom?t.checkToBottom:H,alarmSound:p.some(e=>e.id===t.alarmSound)?t.alarmSound:J,alarmVolume:G(t.alarmVolume,0,100,W),alarmRepeat:G(t.alarmRepeat,1,5,Y),focusSound:f.some(e=>e.id===t.focusSound)?t.focusSound:K,focusVolume:G(t.focusVolume,0,100,Q)}}(g.pomodoro_settings);w(()=>{n({focus:60*k.focusMinutes,short:60*k.shortBreakMinutes,long:60*k.longBreakMinutes})},[k.focusMinutes,k.shortBreakMinutes,k.longBreakMinutes]),w(()=>{r(k.alarmSound),s(k.alarmVolume,k.alarmRepeat)},[k.alarmSound,k.alarmVolume,k.alarmRepeat]),w(()=>{l({autoStartBreaks:k.autoStartBreaks,autoStartPomodoros:k.autoStartPomodoros,longBreakInterval:k.longBreakInterval})},[k.autoStartBreaks,k.autoStartPomodoros,k.longBreakInterval]),w(()=>{i(k.focusSound,k.focusVolume)},[k.focusSound,k.focusVolume]),w(()=>{if("undefined"!=typeof Notification&&"default"===Notification.permission)try{Notification.requestPermission()}catch{}},[]);const U=c(),X=U.tasks,Z=C(()=>/* @__PURE__ */(new Date).toISOString().slice(0,10),[]),q=function(e,t){return C(()=>t?(e=>{const t=[],a=[];for(const o of e)(o.done?a:t).push(o);return[...t,...a]})(e):e,[e,t])}(C(()=>X.filter(e=>!!e.dueDate&&(e.dueDate===Z||e.dueDate<Z&&!e.done)),[X,Z]),k.checkToBottom),[ee,te]=S(()=>localStorage.getItem(A)),[ae,oe]=S(!1),[ne,re]=S(null),se=B(!1);w(()=>{se.current||(se.current=!0,d(X,U.setAllTasks))},[]),w(()=>{try{ee?localStorage.setItem(A,ee):localStorage.removeItem(A)}catch{}},[ee]),w(()=>{if(!ne)return;const e=()=>re(null),t=setTimeout(()=>document.addEventListener("click",e),0);return()=>{clearTimeout(t),document.removeEventListener("click",e)}},[ne]);const le=B(t.streak);w(()=>{if(t.streak>le.current&&ee){const e=X.find(e=>e.id===ee);if(e){const t=(e.completed??0)+1,a=e.estimated??0,o=k.autoCheckTasks&&a>0&&t>=a;U.updateTask(ee,{completed:t,done:e.done||o})}}le.current=t.streak},[t.streak,ee,k.autoCheckTasks,X,U]);const ce=q.reduce((e,t)=>e+(t.completed??0),0),de=q.reduce((e,t)=>e+Math.max(t.estimated??0,t.completed??0),0),ue=q.reduce((e,t)=>t.done?e:e+Math.max(0,(t.estimated??0)-(t.completed??0)),0),me=t.running&&"focus"===t.mode?t.remaining:0,he=ue*k.focusMinutes*60+me,pe=new Date(Date.now()+1e3*he).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),ge=(he/3600).toFixed(1),fe=ee?X.find(e=>e.id===ee)??null:null,be=String(Math.floor(t.remaining/60)).padStart(2,"0"),ke=String(t.remaining%60).padStart(2,"0"),[xe,ve]=S(()=>e(I)),[ye,Ne]=S(!1),[we,Ce]=S(xe),[Se,Be]=S(k);x(M(()=>{Ce({...xe}),Be({...k}),Ne(!0)},[xe,k]));const Me="focus"!==t.mode,je=D[t.mode],Te=Me?(Pe=je,Ie=xe.activeOpacity/100,`rgba(${parseInt(Pe.slice(1,3),16)}, ${parseInt(Pe.slice(3,5),16)}, ${parseInt(Pe.slice(5,7),16)}, ${Ie})`):`rgb(var(--taskbar-bg-rgb, 243 244 246) / ${xe.activeOpacity/100})`;var Pe,Ie;const Ae={primary:Me?"text-white":"text-gray-900",secondary:Me?"text-white/85":"text-gray-700",muted:Me?"text-white/65":"text-gray-500",tabActive:Me?"bg-white/15 text-white":"bg-gray-200 text-gray-900",tabInactive:Me?"text-white/75 hover:bg-white/10":"text-gray-500 hover:bg-gray-200",divider:Me?"border-white/30":"border-gray-200",softDivider:Me?"border-white/20":"border-gray-200",iconBtn:Me?"bg-black/15 hover:bg-black/25 text-white/85":"bg-gray-200 hover:bg-gray-300 text-gray-600",addTaskBtn:Me?"border-white/45 text-white/90 hover:bg-white/[0.06]":"border-gray-300 text-gray-500 hover:bg-gray-200/50"},$e=Me?je:"#0f172a";/* @__PURE__ */
|
|
2
2
|
return j(T,{children:[
|
|
3
3
|
/* @__PURE__ */j("div",{className:`flex flex-col h-full select-none transition-colors duration-300 ${Ae.primary}`,style:{backgroundColor:Te,backdropFilter:xe.activeBlur>0?`blur(${xe.activeBlur}px)`:void 0},children:[
|
|
4
4
|
/* @__PURE__ */P("div",{className:"px-3 pt-3 flex justify-center gap-2",children:["focus","short","long"].map(e=>/* @__PURE__ */P("button",{onClick:()=>u(e),className:`px-3 py-1 text-sm font-bold rounded transition-colors ${t.mode===e?Ae.tabActive:Ae.tabInactive}`,children:$[e]},e))}),
|
|
@@ -13,14 +13,14 @@ return j(T,{children:[
|
|
|
13
13
|
/* @__PURE__ */P("div",{className:`border-t mx-3 mt-2 ${Ae.divider}`}),
|
|
14
14
|
/* @__PURE__ */j("div",{className:"flex-1 px-3 py-3 space-y-2 overflow-y-auto",children:[q.map(e=>{const t=e.id===ee;/* @__PURE__ */
|
|
15
15
|
return j("div",{onClick:()=>te(e.id),className:"bg-white text-gray-800 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
|
-
/* @__PURE__ */P("button",{onClick:t=>{var a;t.stopPropagation(),a=e.id,
|
|
16
|
+
/* @__PURE__ */P("button",{onClick:t=>{var a;t.stopPropagation(),a=e.id,U.toggleDone(a)},className:"shrink-0",children:e.done?/* @__PURE__ */P("svg",{className:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",style:{color:$e},children:/* @__PURE__ */P("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__ */P("svg",{className:"h-5 w-5 text-gray-300",fill:"none",stroke:"currentColor",strokeWidth:2,viewBox:"0 0 24 24",children:/* @__PURE__ */P("circle",{cx:"12",cy:"12",r:"10"})})}),
|
|
17
17
|
/* @__PURE__ */P("span",{className:"ml-3 flex-1 font-semibold truncate "+(e.done?"line-through text-gray-400":"text-gray-800"),children:e.name}),
|
|
18
18
|
/* @__PURE__ */j("span",{className:"text-sm tabular-nums mr-2 shrink-0",children:[
|
|
19
19
|
/* @__PURE__ */P("span",{className:"font-bold text-gray-500",children:e.completed??0}),
|
|
20
20
|
/* @__PURE__ */P("span",{className:"text-gray-400",children:" / "}),
|
|
21
21
|
/* @__PURE__ */P("span",{className:"text-gray-400",children:e.estimated??"–"})]}),
|
|
22
22
|
/* @__PURE__ */j("div",{className:"relative",children:[
|
|
23
|
-
/* @__PURE__ */P("button",{onClick:t=>{t.stopPropagation(),re(ne===e.id?null:e.id)},className:"rounded p-1 bg-gray-100 hover:bg-gray-200",children:/* @__PURE__ */P(y,{name:"more-vertical",look:"solid",className:"h-4 w-4 text-gray-500"})}),ne===e.id&&/* @__PURE__ */P("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__ */P("button",{onClick:t=>{var a;t.stopPropagation(),a=e.id,
|
|
23
|
+
/* @__PURE__ */P("button",{onClick:t=>{t.stopPropagation(),re(ne===e.id?null:e.id)},className:"rounded p-1 bg-gray-100 hover:bg-gray-200",children:/* @__PURE__ */P(y,{name:"more-vertical",look:"solid",className:"h-4 w-4 text-gray-500"})}),ne===e.id&&/* @__PURE__ */P("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__ */P("button",{onClick:t=>{var a;t.stopPropagation(),a=e.id,U.removeTask(a),ee===a&&te(null),re(null)},className:"block w-full px-3 h-8 text-sm text-left hover:bg-red-50 text-red-600",children:"Delete"})})]})]},e.id)}),ae?/* @__PURE__ */P(ie,{onSubmit:(e,t)=>{const a=e.trim();if(!a)return;const o=U.addTask({name:a,estimated:t,completed:0,dueDate:Z});ee||te(o),oe(!1)},onCancel:()=>oe(!1),accentColor:$e}):/* @__PURE__ */j("button",{onClick:()=>oe(!0),className:`w-full border-2 border-dashed rounded-md py-3 font-semibold flex items-center justify-center gap-2 transition-colors ${Ae.addTaskBtn}`,children:[
|
|
24
24
|
/* @__PURE__ */P(y,{name:"add-circle",className:"h-5 w-5",strokeWidth:2}),"Add Task"]})]}),
|
|
25
25
|
/* @__PURE__ */j("div",{className:`border-t px-3 py-3 flex items-center justify-center gap-5 text-sm ${Ae.softDivider}`,children:[
|
|
26
26
|
/* @__PURE__ */j("span",{className:Ae.secondary,children:["Pomos: ",
|
|
@@ -31,7 +31,7 @@ return j("div",{onClick:()=>te(e.id),className:"bg-white text-gray-800 rounded-m
|
|
|
31
31
|
/* @__PURE__ */j("span",{className:Ae.muted,children:[" (",ge,"h)"]})]})]})]}),
|
|
32
32
|
/* @__PURE__ */P(z,{open:ye,onClose:()=>Ne(!1),onSave:()=>{ve(we),localStorage.setItem(I,JSON.stringify(we)),b({pomodoro_settings:Se}),Ne(!1)},configAppearance:we,setConfigAppearance:Ce,configPrefs:Se,setConfigPrefs:Be})]})}function z({open:e,onClose:a,onSave:o,configAppearance:n,setConfigAppearance:r,configPrefs:s,setConfigPrefs:l}){const i=(e,t)=>l(a=>({...a,[e]:t}));/* @__PURE__ */
|
|
33
33
|
return j(t,{open:e,onClose:a,title:"Pomodoro Settings",appearance:n,onAppearanceChange:r,onSave:o,children:[
|
|
34
|
-
/* @__PURE__ */j(
|
|
34
|
+
/* @__PURE__ */j(X,{icon:/* @__PURE__ */P(re,{}),label:"TIMER",children:[
|
|
35
35
|
/* @__PURE__ */j("div",{children:[
|
|
36
36
|
/* @__PURE__ */P("p",{className:"text-sm font-bold text-gray-800 mb-2",children:"Time (minutes)"}),
|
|
37
37
|
/* @__PURE__ */j("div",{className:"grid grid-cols-3 gap-3",children:[
|
|
@@ -41,17 +41,17 @@ return j(t,{open:e,onClose:a,title:"Pomodoro Settings",appearance:n,onAppearance
|
|
|
41
41
|
/* @__PURE__ */P(Z,{label:"Auto Start Breaks",children:/* @__PURE__ */P(oe,{checked:s.autoStartBreaks,onChange:e=>i("autoStartBreaks",e)})}),
|
|
42
42
|
/* @__PURE__ */P(Z,{label:"Auto Start Pomodoros",children:/* @__PURE__ */P(oe,{checked:s.autoStartPomodoros,onChange:e=>i("autoStartPomodoros",e)})}),
|
|
43
43
|
/* @__PURE__ */P(Z,{label:"Long Break interval",children:/* @__PURE__ */P(te,{value:s.longBreakInterval,onChange:e=>i("longBreakInterval",e),min:1,max:20,className:"w-14 text-center"})})]}),
|
|
44
|
-
/* @__PURE__ */j(
|
|
44
|
+
/* @__PURE__ */j(X,{icon:/* @__PURE__ */P(se,{}),label:"TASK",children:[
|
|
45
45
|
/* @__PURE__ */P(Z,{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__ */P(oe,{checked:s.autoCheckTasks,onChange:e=>i("autoCheckTasks",e)})}),
|
|
46
46
|
/* @__PURE__ */P(Z,{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__ */P(oe,{checked:s.checkToBottom,onChange:e=>i("checkToBottom",e)})})]}),
|
|
47
|
-
/* @__PURE__ */j(
|
|
47
|
+
/* @__PURE__ */j(X,{icon:/* @__PURE__ */P(le,{}),label:"SOUND",children:[
|
|
48
48
|
/* @__PURE__ */P(Z,{label:"Alarm Sound",children:/* @__PURE__ */j("div",{className:"flex items-center gap-2",children:[
|
|
49
49
|
/* @__PURE__ */P(ae,{value:s.alarmSound,onChange:e=>i("alarmSound",e),options:p.map(e=>({id:e.id,label:e.label}))}),"off"!==s.alarmSound&&/* @__PURE__ */P("button",{type:"button",onClick:()=>g(s.alarmSound,{volume:s.alarmVolume,repeat:1}),className:"px-2 py-1 text-2xs rounded border border-gray-300 text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
|
|
50
50
|
/* @__PURE__ */P(q,{value:s.alarmVolume,onChange:e=>i("alarmVolume",e)}),
|
|
51
51
|
/* @__PURE__ */P(Z,{label:"repeat",children:/* @__PURE__ */P(te,{value:s.alarmRepeat,onChange:e=>i("alarmRepeat",e),min:1,max:5,className:"w-14 text-center"})}),
|
|
52
52
|
/* @__PURE__ */P(Z,{label:"Focus Sound",children:/* @__PURE__ */j("div",{className:"flex items-center gap-2",children:[
|
|
53
53
|
/* @__PURE__ */P(ae,{value:s.focusSound,onChange:e=>i("focusSound",e),options:f}),"none"!==s.focusSound&&/* @__PURE__ */P("button",{type:"button",onClick:()=>b(s.focusSound,s.focusVolume),className:"px-2 py-1 text-2xs rounded border border-gray-300 text-gray-600 hover:bg-gray-100",children:"Play"})]})}),
|
|
54
|
-
/* @__PURE__ */P(q,{value:s.focusVolume,onChange:e=>i("focusVolume",e)})]})]})}function
|
|
54
|
+
/* @__PURE__ */P(q,{value:s.focusVolume,onChange:e=>i("focusVolume",e)})]})]})}function X({icon:e,label:t,children:a}){/* @__PURE__ */
|
|
55
55
|
return j("div",{className:"border-t border-gray-200 pt-3 first:border-0 first:pt-0",children:[
|
|
56
56
|
/* @__PURE__ */j("div",{className:"flex items-center gap-2 mb-3 text-gray-400",children:[e,
|
|
57
57
|
/* @__PURE__ */P("span",{className:"text-xs font-bold tracking-[0.15em]",children:t})]}),
|
|
@@ -88,4 +88,4 @@ return j("div",{className:"bg-white text-gray-800 rounded-md p-3 shadow-(--eleva
|
|
|
88
88
|
/* @__PURE__ */P("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
89
|
/* @__PURE__ */j("div",{className:"flex gap-2 mt-3 justify-end",children:[
|
|
90
90
|
/* @__PURE__ */P("button",{onClick:t,className:"px-3 py-1 text-sm text-gray-500 hover:bg-gray-100 rounded",children:"Cancel"}),
|
|
91
|
-
/* @__PURE__ */P("button",{onClick:l,className:"px-4 py-1 text-sm font-semibold text-white rounded shadow-sm",style:{backgroundColor:a},children:"Save"})]})]})}export{
|
|
91
|
+
/* @__PURE__ */P("button",{onClick:l,className:"px-4 py-1 text-sm font-semibold text-white rounded shadow-sm",style:{backgroundColor:a},children:"Save"})]})]})}export{U as default};
|