"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[377],{42566:(e,t,l)=>{l.r(t);l(42325);var i=l(97982),a=(l(13503),l(18216)),s=l(68398),n=l(96755),r=l(35490),o=l(83523),m=l(13234),u=l(57268),w=l(29445),d=l(94209),S=l(96201),y=l(14674),c=l(52058),g=l(30829),f=l(40805),p=l(39365),Z=l(29852);const _=(0,u.aZ)({__name:"year-modal-preview",setup(e){const t=(0,S.useTimerYearStore)(),l=(0,Z.S)();return(e,i)=>((0,u.wg)(),(0,u.j4)(c.Z,{sizes:(0,w.SU)(S.widgetInfo).sizes,"default-size":(0,w.SU)(t).modalState.size},{item:(0,u.w5)((e=>{let{size:t}=e;return["s"===t?((0,u.wg)(),(0,u.j4)(p.Z,{key:0,"timer-style":(0,w.SU)(l).timerStyle},null,8,["timer-style"])):"m"===t?((0,u.wg)(),(0,u.j4)(f.Z,{key:1,"timer-style":(0,w.SU)(l).timerStyle},null,8,["timer-style"])):"l"===t?((0,u.wg)(),(0,u.j4)(g.Z,{key:2,"timer-style":(0,w.SU)(l).timerStyle},null,8,["timer-style"])):(0,u.kq)("",!0)]})),_:1},8,["sizes","default-size"]))}});var h=l(37984),U=l(20222);const k=(0,u.aZ)({__name:"widget-year-modal",setup(e){const t=(0,S.useTimerYearStore)(),l=(0,Z.S)(),i=e=>{l.setStyle(e)},a=(0,u.Fl)((()=>"preview"===t.modalState.openType||"add"===t.modalState.openType)),s=async()=>{if(l.saveStyle(),t.closeModal(),a.value){(0,U.useIconStore)().saveIcon({type:"widget",name:S.widgetInfo.value.title,widgetSize:t.modalState.size,widgetName:S.widgetInfo.value.name,origin:"add"})}};return(e,n)=>{const c=m.Z,g=o.Z,f=r.Z;return(0,u.wg)(),(0,u.j4)(f,{class:"widget-year-modal",ani:"fade",show:(0,w.SU)(t).modalShow},{default:(0,u.w5)((()=>[(0,u.Wm)(g,{"full-screen-btn":!1,onOnClose:n[0]||(n[0]=e=>(0,w.SU)(t).closeModal())},{default:(0,u.w5)((()=>[(0,u.Wm)(y.Z,null,{title:(0,u.w5)((()=>[(0,u.Uk)((0,d.toDisplayString)((0,w.SU)(S.widgetInfo).title),1)])),left:(0,u.w5)((()=>[(0,u.Wm)(h.Z,{class:"relative mt-[30px]","timer-style":(0,w.SU)(l).timerStyle,onOnChange:i},null,8,["timer-style"])])),right:(0,u.w5)((()=>[(0,u.Wm)(_)])),footer:(0,u.w5)((()=>[(0,u.Wm)(c,{class:"w-full",onClick:s},{default:(0,u.w5)((()=>[(0,u.Uk)((0,d.toDisplayString)((0,w.SU)(a)?"添加":"完成"),1)])),_:1})])),_:1})])),_:1})])),_:1},8,["show"])}}});var v=l(18023),z=l(63477);(()=>{const e=(0,z.em)(),t=(0,s.createApp)(k);(0,v.f)(t),t.use(n.M),t.use(a.Z),t.use(i.Z),t.mount(e)})()}}]);