"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[1238,4554,9927],{49194:(t,e,a)=>{a.r(e),a.d(e,{useTimerCountdownStore:()=>w,widgetInfo:()=>h});var i=a(10435),o=a(74003);const d={name:"",time:0,repeatType:"none",dateType:"solar",timerStyle:{fontColor:"rgba(248, 248, 248, 1)",bgType:"image",bgColor:(0,a(13409).zY)(),bgImageColor:"",bgImage:{large:`${o.c1}/widget-background/background08_larg.jpg`,medium:`${o.c1}/widget-background/background08_medium.jpg`,small:`${o.c1}/widget-background/background08_small.jpg`},bgMask:20}};var s=a(20222),g=a(34461),n=a(62731),l=a(94119),r=a(24581),m=a(57268),c=a(37587);const h=(0,m.Fl)((()=>(0,c.E)(r.R.timerCountdown)||{})),w=(0,i.Q_)("timer-countdown",{state:()=>({modalShow:!1,modalState:{size:"s",openType:"add"},widgetData:d}),actions:{getWidgetData(t){if("edit"===t.openType){const e=(0,s.useIconStore)().getIconData(t.editId);this.widgetData=e?{...e.widgetData}:{...n.VU}}else this.widgetData={...d}},openModal(t){this.getWidgetData(t),this.modalState=t,this.setModal(!0)},closeModal(){this.setModal(!1),g.r.cancel()},setModal(t){l.G.setStatus(r.R.timerCountdown,t),this.modalShow=t},saveModalData(t){this.widgetData={...this.widgetData,...t}},saveWidgetData(){const t=(0,s.useIconStore)();"add"===this.modalState.openType||"preview"===this.modalState.openType?t.saveIcon({type:"widget",name:h.value.title,widgetSize:this.modalState.size,widgetName:h.value.name,origin:"add",widgetData:this.widgetData}):"edit"===this.modalState.openType&&t.saveWidgetData(this.modalState.editId,this.widgetData)}}})}}]);