"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[4303],{4303:(t,e,a)=>{a.r(e),a.d(e,{useClockStore:()=>y});var s=a(84522),r=a(10435),i=a(5536),o=a(80661),c=a.n(o),n=a(74003),d=a(73844);const u=c()(),l=n.sM?["星期天","星期一","星期二","星期三","星期四","星期五","星期六"]:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],y=(0,r.Q_)(s.BU.clock,{syncCloud:{watch:["clockType"]},syncStorage:{watch:["clockType"]},state:()=>({modalShow:!1,clockType:2,timerNumberArr:(0,i.dA)(),dateNumberArr:(0,i.E2)(),weekDay:u.day(),weekDayStr:l[u.day()],dateStr:n.sM?u.format("YYYY-MM-DD"):u.format("DD/MM/YYYY")}),getters:{},actions:{setModal(t){this.modalShow=t},setClockType(t){this.clockType=t},toggelType(){this.clockType=1===this.clockType?2:1},updateDate(){const t=c()();this.weekDay=t.day(),this.weekDayStr=l[t.day()],this.dateStr=n.sM?t.format("YYYY-MM-DD"):t.format("DD/MM/YYYY")},updateTime(){this.timerNumberArr=(0,i.dA)(),this.dateNumberArr=(0,i.E2)()}}});d.i.subscribe("EVERY_SECOND",y().updateTime),d.i.subscribe("EVERY_DAY",y().updateDate)},5536:(t,e,a)=>{a.d(e,{E2:()=>i,_K:()=>s,dA:()=>r});const s=t=>t>=10?(""+t).split("").map((t=>Number(t))):[0,t],r=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;const e=t.getHours(),a=t.getMinutes(),r=t.getSeconds();return[...s(e),...s(a),...s(r)]},i=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;const e=t.getFullYear(),a=t.getMonth()+1,r=t.getDate();return[...s(e),...s(a),...s(r)]}}}]);