import{r as t}from"./p-dfbe004d.js";const s=class{constructor(s){t(this,s),this.date=new Date,this.hourFormat="auto",this.type="date"}render(){const t="timestamp"===this.type?1e3*parseInt(this.date.toString()):this.date,s=new Date(t),i="auto"===this.hourFormat?void 0:"12"===this.hourFormat;if(!isNaN(s.getMilliseconds()))return new Intl.DateTimeFormat(this.locale,{weekday:this.weekday,era:this.era,year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,timeZoneName:this.timeZoneName,timeZone:this.timeZone,hour12:i}).format(s)}};export{s as sc_format_date}