import{b as C,w as h,o as p,p as a,q as f,D as r,x as u,H as i,a as s,j as n}from"./vue-Cm77DuTi.js";import{_ as g}from"./app-QjDgb7aF.js";const T={class:"zjobosdg"},_=["textContent"],M=["textContent"],x=["textContent"],A=["textContent"],k=C({__name:"MkDigitalClock",props:{showS:{type:Boolean,default:!0},showMs:{type:Boolean,default:!1},offset:{default:0-new Date().getTimezoneOffset()}},setup(o){const c=o;let l;const m=s(""),v=s(""),d=s(""),S=s(""),t=s(!1);let w=null;h(t,e=>{e&&window.setTimeout(()=>{t.value=!1},30)});const b=()=>{const e=new Date;e.setMinutes(e.getMinutes()+(new Date().getTimezoneOffset()+c.offset)),m.value=e.getHours().toString().padStart(2,"0"),v.value=e.getMinutes().toString().padStart(2,"0"),d.value=e.getSeconds().toString().padStart(2,"0"),S.value=Math.floor(e.getMilliseconds()/10).toString().padStart(2,"0"),e.getSeconds()!==w&&(t.value=!0),w=e.getSeconds()};return b(),h(()=>c.showMs,()=>{l&&window.clearInterval(l),l=window.setInterval(b,c.showMs?10:1e3)},{immediate:!0}),p(()=>{window.clearInterval(l)}),(e,y)=>(n(),a("span",T,[f("span",{textContent:r(m.value)},null,8,_),f("span",{class:u(["colon",{showColon:t.value}])},":",2),f("span",{textContent:r(v.value)},null,8,M),o.showS?(n(),a("span",{key:0,class:u(["colon",{showColon:t.value}])},":",2)):i("",!0),o.showS?(n(),a("span",{key:1,textContent:r(d.value)},null,8,x)):i("",!0),o.showMs?(n(),a("span",{key:2,class:u(["colon",{showColon:t.value}])},":",2)):i("",!0),o.showMs?(n(),a("span",{key:3,textContent:r(S.value)},null,8,A)):i("",!0)]))}}),z=g(k,[["__scopeId","data-v-7eb30fe9"]]),E=[{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{z as M,E as t};
//# sourceMappingURL=timezones-C_EP85t3.js.map
