var S=Object.defineProperty,A=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var O=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var j=(a,o,l)=>o in a?S(a,o,{enumerable:!0,configurable:!0,writable:!0,value:l}):a[o]=l,G=(a,o)=>{for(var l in o||(o={}))J.call(o,l)&&j(a,l,o[l]);if(O)for(var l of O(o))K.call(o,l)&&j(a,l,o[l]);return a},H=(a,o)=>A(a,F(o));var R=(a,o,l)=>new Promise((Y,v)=>{var T=u=>{try{d(l.next(u))}catch(f){v(f)}},y=u=>{try{d(l.throw(u))}catch(f){v(f)}},d=u=>u.done?Y(u.value):Promise.resolve(u.value).then(T,y);d((l=l.apply(a,o)).next())});import{P as L,__tla as N}from"./index-3705f1a8.js";import{d as W,aG as p,r as Q,a4 as U,dk as V,j as X,dl as $,bG as Z,b5 as C,aR as ee,aE as te,bt as ae,_ as k,o as q,l as le,t as ne,ax as oe,z as re,f as se,a8 as ue,y as P,c as me,w as h,e as s,a as w,__tla as ie}from"./index-b5895273.js";import{__tla as ce}from"./onMountedOrActivated-6125a24a.js";import{__tla as _e}from"./useWindowSizeFn-a59bee15.js";import{__tla as pe}from"./useContentViewHeight-cd147d02.js";let x,de=Promise.all([(()=>{try{return N}catch(a){}})(),(()=>{try{return ie}catch(a){}})(),(()=>{try{return ce}catch(a){}})(),(()=>{try{return _e}catch(a){}})(),(()=>{try{return pe}catch(a){}})()]).then(()=>R(void 0,null,function*(){const v=W({name:"Time",props:{value:p.oneOfType([p.number,p.instanceOf(Date),p.string]).isRequired,step:p.number.def(60),mode:p.oneOf(["date","datetime","relative"]).def("relative")},setup(t){const i=Q(""),{t:c}=U();V(b,t.step*1e3),X(()=>t.value,()=>{b()},{immediate:!0});function D(){const{value:e}=t;let r=0;if(ee(e)){const m=e.toString().length>10?e:e*1e3;r=new Date(m).getTime()}else te(e)?r=new Date(e).getTime():ae(e)&&(r=e.getTime());return r}function b(){const{mode:e,value:r}=t,m=D();e==="relative"?i.value=M(m):e==="datetime"?i.value=$(r):e==="date"&&(i.value=Z(r))}function M(e){const r=new Date().getTime(),m=C(e).isBefore(r);let n=r-e;m||(n=-n);let _="",g=c(m?"component.time.before":"component.time.after");return n<1e3?_=c("component.time.just"):n<6e4?_=parseInt(n/1e3)+c("component.time.seconds")+g:n>=6e4&&n<36e5?_=Math.floor(n/6e4)+c("component.time.minutes")+g:n>=36e5&&n<864e5?_=Math.floor(n/36e5)+c("component.time.hours")+g:n>=864e5&&n<262386e4?_=Math.floor(n/864e5)+c("component.time.days")+g:n>=262386e4&&n<=3156786e4&&m?_=C(e).format("MM-DD-HH-mm"):_=C(e).format("YYYY"),_}return{date:i}}});function T(t,i,c,D,b,M){return q(),le("span",null,ne(t.date),1)}const y=k(v,[["render",T]]),d=oe(y),u=W({components:{PageWrapper:L,Time:d,CollapseContainer:re},setup(){const t=new Date().getTime(),i=se({time1:t-60*3*1e3,time2:t-86400*3*1e3});return H(G({},ue(i)),{now:t})}}),f=w("br",null,null,-1),z=w("br",null,null,-1),B=w("br",null,null,-1),E=w("br",null,null,-1);function I(t,i,c,D,b,M){const e=P("Time"),r=P("CollapseContainer"),m=P("PageWrapper");return q(),me(m,{title:"\u65F6\u95F4\u7EC4\u4EF6\u793A\u4F8B"},{default:h(()=>[s(r,{title:"\u57FA\u7840\u793A\u4F8B"},{default:h(()=>[s(e,{value:t.time1},null,8,["value"]),f,s(e,{value:t.time2},null,8,["value"])]),_:1}),s(r,{title:"\u5B9A\u65F6\u66F4\u65B0",class:"my-4"},{default:h(()=>[s(e,{value:t.now,step:1},null,8,["value"]),z,s(e,{value:t.now,step:5},null,8,["value"])]),_:1}),s(r,{title:"\u5B9A\u65F6\u66F4\u65B0"},{default:h(()=>[s(e,{value:t.now,mode:"date"},null,8,["value"]),B,s(e,{value:t.now,mode:"datetime"},null,8,["value"]),E,s(e,{value:t.now},null,8,["value"])]),_:1})]),_:1})}x=k(u,[["render",I]])}));export{de as __tla,x as default};