import{b as h,a as o,w,o as C,h as a,t as s,u as f,E as l,x as c,H as r}from"./vue-y3KLWBaS.js";import{n as g}from"./app-JmgyQoR0.js";const _={class:"zjobosdg"},T=["textContent"],M=["textContent"],A=["textContent"],k=["textContent"],y=h({__name:"MkDigitalClock",props:{showS:{type:Boolean,default:!0},showMs:{type:Boolean,default:!1},offset:{default:0-new Date().getTimezoneOffset()}},setup(b){const i=b;let n;const u=o(""),m=o(""),v=o(""),d=o(""),t=o(!1);let p=null;w(t,e=>{e&&window.setTimeout(()=>{t.value=!1},30)});const S=()=>{const e=new Date;e.setMinutes(e.getMinutes()+(new Date().getTimezoneOffset()+i.offset)),u.value=e.getHours().toString().padStart(2,"0"),m.value=e.getMinutes().toString().padStart(2,"0"),v.value=e.getSeconds().toString().padStart(2,"0"),d.value=Math.floor(e.getMilliseconds()/10).toString().padStart(2,"0"),e.getSeconds()!==p&&(t.value=!0),p=e.getSeconds()};return S(),w(()=>i.showMs,()=>{n&&window.clearInterval(n),n=window.setInterval(S,i.showMs?10:1e3)},{immediate:!0}),C(()=>{window.clearInterval(n)}),(e,x)=>(a(),s("span",_,[f("span",{textContent:l(u.value)},null,8,T),f("span",{class:c(["colon",{showColon:t.value}])},":",2),f("span",{textContent:l(m.value)},null,8,M),e.showS?(a(),s("span",{key:0,class:c(["colon",{showColon:t.value}])},":",2)):r("",!0),e.showS?(a(),s("span",{key:1,textContent:l(v.value)},null,8,A)):r("",!0),e.showMs?(a(),s("span",{key:2,class:c(["colon",{showColon:t.value}])},":",2)):r("",!0),e.showMs?(a(),s("span",{key:3,textContent:l(d.value)},null,8,k)):r("",!0)]))}}),E=g(y,[["__scopeId","data-v-7eb30fe9"]]),z=[{name:"UTC",abbrev:"UTC",offset:0},{name:"Europe/Berlin",abbrev:"CET",offset:60},{name:"Asia/Tokyo",abbrev:"JST",offset:540},{name:"Asia/Seoul",abbrev:"KST",offset:540},{name:"Asia/Shanghai",abbrev:"CST",offset:480},{name:"Australia/Sydney",abbrev:"AEST",offset:600},{name:"Australia/Darwin",abbrev:"ACST",offset:570},{name:"Australia/Perth",abbrev:"AWST",offset:480},{name:"America/New_York",abbrev:"EST",offset:-300},{name:"America/Mexico_City",abbrev:"CST",offset:-360},{name:"America/Phoenix",abbrev:"MST",offset:-420},{name:"America/Los_Angeles",abbrev:"PST",offset:-480}];export{E as M,z as t};
