import{r as t,c as s,h as i,H as e}from"./p-976cb30b.js";import{s as a}from"./p-438af756.js";import{B as h}from"./p-ae86d0a0.js";const l=class{constructor(i){t(this,i),this.balSelectDay=s(this,"balSelectDay",7),this.onClick=(t,s)=>{this.disabled?a(t):this.balSelectDay.emit(s)},this.day=void 0,this.month=void 0,this.year=void 0,this.isoDate=void 0,this.fullDate=void 0,this.selected=!1,this.today=!1,this.disabled=!1}render(){const t=h.block("date-calendar-cell");return i(e,{class:Object.assign(Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("today").class(!this.disabled&&this.today)),t.modifier("selected").class(!this.disabled&&this.selected)),t.modifier("disabled").class(!0===this.disabled)),tabIndex:-1,type:"button",role:"button","aria-label":this.fullDate,"aria-selected":this.selected?"true":"false","aria-disabled":this.disabled?"true":"false",title:this.fullDate,onClick:t=>this.onClick(t,this.isoDate)},i("time",{dateTime:this.isoDate},this.day))}};export{l as bal_date_calendar_cell}