import{r as registerInstance,c as createEvent,h,H as Host}from"./index-BdVwMG9u.js";import{s as stopEventBubbling}from"./form-input-DYvzaBlM.js";import{B as BEM}from"./bem-ByiN-QjD.js";import{a as ariaBooleanToString}from"./aria-DBsOHTWj.js";import"./helpers-BNj87EbG.js";import"./browser-B1u-Mq75.js";import"./config.utils-B7jugjyM.js";var DateCalendarCell=function(){function t(t){var e=this;registerInstance(this,t);this.balSelectDay=createEvent(this,"balSelectDay");this.selected=false;this.today=false;this.disabled=false;this.onClick=function(t,a){if(!e.disabled){e.balSelectDay.emit(a)}else{stopEventBubbling(t)}}}t.prototype.render=function(){var t=this;var e=BEM.block("date-calendar-cell");return h(Host,{key:"d1db2d94effc57679d76eda478c58b8b249ec8f8",class:Object.assign(Object.assign(Object.assign(Object.assign({},e.class()),e.modifier("today").class(!this.disabled&&this.today)),e.modifier("selected").class(!this.disabled&&this.selected)),e.modifier("disabled").class(this.disabled===true)),tabIndex:-1,type:"button",role:"button","aria-label":this.fullDate,"aria-selected":ariaBooleanToString(this.selected),"aria-disabled":ariaBooleanToString(this.disabled),title:this.fullDate,onClick:function(e){return t.onClick(e,t.isoDate)}},h("time",{key:"9f52e4756e920afd593cc0e189fb7a3a787f87f0",dateTime:this.isoDate},this.day))};return t}();export{DateCalendarCell as bal_date_calendar_cell};