PageSourceSearch

https://eter9.com/vite/BBfYrWmm.js

js eter9.com collected 2026-10-04 00:23:09 UTC 6,704 bytes, 1 lines download raw bytes

1import{u as Q}from"./BmOmbsqo.js";import{E as ee}from"./D2yGXAS0.js";import{al as $,av as G,i as F}from"./app-Cr5SLL7l.js";import{d as A,t as P,E as te}from"./zByg6RkK.js";import{b as U,c as w,a as r,e as ae,X as oe,g as i,l as f,F as W,D as j,C as H,q as I,j as K,t as se,H as V,h as Y,i as ne,u as l,B as le}from"./D2O8tWz_.js";import"./BX8RwoyW.js";const ue=["cx","cy","fill","opacity"],re=["x","y","font-size","font-weight","fill","opacity"],ie=["x1","y1","x2","y2","stroke","stroke-width"],ce=["x1","y1","x2","y2","stroke","stroke-width"],de=["x1","y1","x2","y2","stroke","stroke-width"],Z=.5,q=.6,p=1,h=.7,_=.75,S=1,T=1,X=.35,me=U({__name:"E9AnalogClock",props:{thickness:{default:.1},offset:{default:0-new Date().getTimezoneOffset()},twentyfour:{type:Boolean,default:!1},graduations:{default:"dots"},fadeGraduations:{type:Boolean,default:!0},sAnimation:{default:"elastic"},now:{type:Function,default:()=>new Date}},setup(L){const k=(t,u)=>{const o=Math.abs(t-u);return Math.abs((o+Math.PI)%(Math.PI*2)-Math.PI)},s=L,N=w(()=>{const t=[],u=s.twentyfour?24:12;for(let o=0;o<u;o++){const n=Math.PI*o/(u/2);t.push(n)}return t}),g=w(()=>{const t=[],u=s.twentyfour?24:12;for(let o=0;o<u;o++){const n=Math.PI*o/(u/2);t.push(n)}return t});let M=!0;const a=r(),z=r(),C=r(),c=r(),y=r(),e=r(0),v=r(0),d=r(0),m=r(0),b=r(0),E=r(0),B=r(!1);let R=!1;
1const O=r();function x(){const t=s.now();t.setMinutes(t.getMinutes()+t.getTimezoneOffset()+s.offset);const u=d.value,o=v.value,n=e.value;d.value=t.getSeconds(),v.value=t.getMinutes(),e.value=t.getHours(),!(u===d.value&&o===v.value&&n===e.value)&&(m.value=Math.PI*(e.value%(s.twentyfour?24:12)+(v.value+d.value/60)/60)/(s.twentyfour?12:6),b.value=Math.PI*(v.value+d.value/60)/30,R&&O.value?(E.value=Math.PI*60/30,A.delete(x),O.value.addEventListener("transitionend",()=>{B.value=!0,requestAnimationFrame(()=>{E.value=0,requestAnimationFrame(()=>{B.value=!1,M&&A.add(x)})})},{once:!0})):E.value=Math.PI*d.value/30,R=d.value===59)}x();function D(){const t=getComputedStyle(document.documentElement),u=G(t.getPropertyValue("--MI_THEME-bg")).isDark(),o=G(t.getPropertyValue("--MI_THEME-accent")).toHexString();a.value=u?"rgba(255, 255, 255, 0.3)":"rgba(0, 0, 0, 0.3)",z.value=u?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.3)",C.value=G(t.getPropertyValue("--MI_THEME-fg")).toHexString(),c.value=o,y.value=o}return D(),ae(()=>{A.add(x),$.on("themeChanged",D)}),oe(()=>{M=!1,A.delete(x),$.off("themeChanged",D)}),(t,u)=>(i(),f("svg",{class:"xCnJ0",viewBox:"0 0 10 10",preserveAspectRatio:"none"},[s.graduations==="dots"?(i(!0),f(W,{key:0},j(N.value,(o,n)=>(i(),f("circle",{cx:5+Math.sin(o)*(5-Z),cy:5-Math.cos(o)*(5-Z),r:.125,fill:(s.twentyfour?e.value:e.value%12)===n?y.value:a.value,opacity:!s.fadeGraduations||(s.twentyfour?e.value:e.value%12)===n?1:Math.max(0,1-k(m.value,o)/Math.PI-X)},null,8,ue))),256)):s.graduations==="numbers"?(i(!0),f(W,{key:1},j(g.value,(o,n)=>(i(),f("text",{x:5+Math.sin(o)*(5-q),y:5-Math.cos(o)*(5-q),"text-anchor":"middle","dominant-baseline":"middle","font-size":(s.twentyfour?e.value:e.value%12)===n?1:.7,"font-weight":(s.twentyfour?e.value:e.value%12)===n?"bold":"normal",fill:(s.twentyfour?e.value:e.value%12)===n?y.value:"currentColor",opacity:!s.fadeGraduations||(s.twentyfour?e.value:e.value%12)===n?1:Math.max(0,1-k(m.value,o)/Math.PI-X)},V(n===0?s.twentyfour?"24":"12":n),9,re))),256)):H("",!0),I("line",{ref_key:"sLine",ref:O,class:K(["xBtTb",{xdhcS:!B.value&&t.sAnimation!=="none",xzwNz:t.sAnimation==="elastic",x74pr:t.sAnimation==="easeOut"}]),x1:5-0*(T*h),y1:5+1*(T*h),x2:5+0*(T*5-p),y2:5-1*(T*5-p),stroke:z.value,"stroke-width":t.thickness/2,style:se(`transform: rotateZ(${E.value}rad)`),"stroke-linecap":"round"},null,14,ie),I("line",{x1:5-Math.sin(b.value)*(S*h),y1:5+Math.cos(b.value)*(S*h),x2:5+Math.sin(b.value)*(S*5-p),y2:5-Math.cos(b.value)*(S*5-p),stroke:C.value,"stroke-width":t.thickness,"stroke-linecap":"round"},null,8,ce),I("line",{x1:5-Math.sin(m.value)*(_*h),y1:5+Math.cos(m.value)*(_*h),x2:5+Math.sin(m.value)*(_*5-p),y2:5-Math.cos(m.value)*(_*5-p),stroke:c.value,"stroke-width":t.thickness,"stroke-linecap":"round"},null,8,de)],2))}});const J="clock",xe=U({__name:"WidgetClock",props:{widget:{}},emits:["updateProps"],setup(L,{expose:k,emit:s}){const N={transparent:{type:"boolean",default:!1},size:{type:"radio",default:"medium",options:[{value:"small",label:F.ts.small},{value:"medium",label:F.ts.medium},{value:"large",label:F.ts.large}]},thickness:{type:"radio",default:.2,options:[{value:.1,label:"thin"},{value:.2,label:"medium"},{value:.3,label:"thick"}]},graduations:{type:"radio",default:"numbers",options:[{value:"none",label:"None"},{value:"dots",label:"Dots"},{value:"numbers",label:"Numbers"}]},fadeGraduations:{type:"boolean",default:!0},sAnimation:{type:"radio",default:"elastic",options:[{value:"none",label:"None"},{value:"elastic",label:"Elastic"},{value:"easeOut",label:"Ease out"}]},twentyFour:{type:"boolean",default:!1},label:{type:"radio",default:"none",options:[{value:"none",label:"None"},{value:"time",label:"Time"},{value:"tz",label:"TZ"},{value:"timeAndTz",label:"Time + TZ"}]},timezone:{type:"enum",default:null,enum:[...P.map(e=>({label:e.name,value:e.name.toLowerCase()})),{label:"(auto)",value:null}]}},g=L,M=s,{widgetProps:a,configure:z}=Q(J,N,g,M),C=w(()=>(a.timezone===null?P.find(e=>e.name.toLowerCase()===Intl.DateTimeFormat().resolvedOptions().timeZone.toLowerCase())?.abbrev:P.find(e=>e.name.toLowerCase()===a.timezone)?.abbrev)??"?"),c=w(()=>a.timezone===null?0-new Date().getTimezoneOffset():P.find(e=>e.name.toLowerCase()===a.timezone)?.offset??0),y=w(()=>(c.value>=0?"+":"-")+Math.floor(c.value/60).toString().padStart(2,"0")+":"+(c.value%60).toString().padStart(2,"0"));return k({name:J,configure:z,id:g.widget?g.widget.id:null}),(e,v)=>(i(),Y(ee,{naked:l(a).transparent,showHeader:!1,"data-cy-mkw-clock":""},{default:ne(()=>[I("div",{class:K(["xtNeE",{xmABV:l(a).size==="small",x1Scx:l(a).size==="medium",xpP
1Xc:l(a).size==="large"}])},[l(a).label==="tz"||l(a).label==="timeAndTz"?(i(),f("div",{key:0,class:"_monospace x4NYE xbGsr"},V(C.value),3)):H("",!0),le(me,{class:"xbwb7",thickness:l(a).thickness,offset:c.value,graduations:l(a).graduations,fadeGraduations:l(a).fadeGraduations,twentyfour:l(a).twentyFour,sAnimation:l(a).sAnimation},null,8,["class","thickness","offset","graduations","fadeGraduations","twentyfour","sAnimation"]),l(a).label==="time"||l(a).label==="timeAndTz"?(i(),Y(te,{key:1,class:"x4NYE x3teH _monospace",showS:!1,offset:c.value},null,8,["class","offset"])):H("",!0),l(a).label==="tz"||l(a).label==="timeAndTz"?(i(),f("div",{key:2,class:"_monospace x4NYE xEzLW"},V(y.value),3)):H("",!0)],2)]),_:1},8,["naked"]))}});export{xe as default};

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.