import{h as m,i as n,e as s,t as u,u as o,o as d}from"./vue.esm-bundler.js?ver=1.4.1";import"./common.js?ver=1.4.1";import{d as l}from"./Utils.js?ver=1.4.1";const c=["title"],p={__name:"ConvertedTime",props:{dateTime:{type:[Object,String],required:!1},withTime:{type:Boolean,required:!1,default:!0},onlyTime:{type:Boolean,required:!1,default:!1}},setup(a){const i=a,e=m("MMM DD, YYYY");return n(()=>{let t="MMM DD, YYYY";new Date(i.dateTime).getFullYear()===new Date().getFullYear()&&(t="MMM DD"),i.onlyTime?e.value="h:mm A":i.withTime?e.value=t+" h:mm A":e.value=t}),(t,r)=>(d(),s("span",{title:o(l)(a.dateTime,"MMM DD, YYYY h:mm A")},u(o(l)(a.dateTime,e.value)),9,c))}};export{p as _};
