1import{u as z}from"./widget-BrT_NbSR.js";import{t as s,M as h}from"./timezones-Cr3z4INu.js";import{b as k,p as l,u as o,D as m,H as d,q as C,k as y,t as L,x as S,f as i,j as r}from"./vue-Cm77DuTi.js";import{_ as D}from"./app-BC9vAXdb.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const M={key:0,class:"label"},x={class:"time"},O={key:1,class:"label"},p="digitalClock",P=k({__name:"digital-clock",props:{widget:{}},emits:["updateProps"],setup(c,{expose:u,emit:f}){const b={transparent:{type:"boolean",default:!1},fontSize:{type:"number",default:1.5,step:.1},showMs:{type:"boolean",default:!0},showLabel:{type:"boolean",default:!0},timezone:{type:"enum",default:null,enum:[...s.map(t=>({label:t.name,value:t.name.toLowerCase()})),{label:"(auto)",value:null}]}},n=c,w=f,{widgetProps:e,configure:_}=z(p,b,n,w),g=i(()=>(e.timezone===null?s.find(t=>t.name.toLowerCase()===Intl.DateTimeFormat().resolvedOptions().timeZone.toLowerCase())?.abbrev:s.find(t=>t.name.toLowerCase()===e.timezone)?.abbrev)??"?"),a=i(()=>e.timezone===null?0-new Date().getTimezoneOffset():s.find(t=>t.name.toLowerCase()===e.timezone)?.offset??0),v=i(()=>(a.value>=0?"+":"-")+Math.floor(a.value/60).toString().padStart(2,"0")+":"+(a.value%60).toString().padStart(2,"0"));return u({name:p,configure:_,id:n.widget?n.widget.id:null}),(t,B)=>(r(),l("div",{class:S(["mkw-digitalClock _monospace",{_panel:!o(e).transparent}]),style:L({fontSize:`${o(e).fontSize}em`})},[o(e).showLabel?(r(),l("div",M,m(g.value),1)):d("",!0),C("div",x,[y(h,{"show-ms":o(e).showMs,offset:a.value},null,8,["show-ms","offset"])]),o(e).showLabel?(r(),l("div",O,m(v.value),1)):d("",!0)],6))}}),A=D(P,[["__scopeId","data-v-8eb05dd3"]]);export{A as default}; 2//# sourceMappingURL=digital-clock-DtqovLmg.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.