"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[1634,4554,9927],{86264:(t,a,e)=>{e.r(a),e.d(a,{useTimerMarkStore:()=>p,widgetInfo:()=>h});var i=e(10435),d=e(74003);const o={name:"",time:0,dateType:"solar",timerStyle:{fontColor:"rgba(248, 248, 248, 1)",bgType:"image",bgColor:(0,e(13409).zY)(),bgImageColor:"",bgImage:{large:`${d.c1}/widget-background/background05_larg.jpg`,medium:`${d.c1}/widget-background/background05_medium.jpg`,small:`${d.c1}/widget-background/background05_small.jpg`},bgMask:20}};var s=e(20222),g=e(34461),l=e(62731),n=e(94119),r=e(24581),m=e(57268),c=e(37587);const h=(0,m.Fl)((()=>(0,c.E)(r.R.timerMark)||{})),p=(0,i.Q_)("timer-mark",{state:()=>({modalShow:!1,modalState:{size:"s",openType:"add"},widgetData:o}),actions:{getWidgetData(t){if("edit"===t.openType){const a=(0,s.useIconStore)().getIconData(t.editId);this.widgetData=a?{...a.widgetData}:{...l.gs}}else this.widgetData={...o}},openModal(t){this.getWidgetData(t),this.modalState=t,this.setModal(!0)},closeModal(){this.setModal(!1),g.r.cancel()},setModal(t){n.G.setStatus(r.R.timerMark,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)}}})}}]);