import{r as t,c as e,h as r}from"./p-a0e89da3.js";const a=class{constructor(r){t(this,r),this.selectAll=e(this,"selectAll",7)}watchSelected(){this.selectAll.emit(this.selected)}renderSelectBox(){if(this.selectable)return r("materials-checkbox",{color:"primary",onChange:()=>{this.selected=!this.selected},onClick:t=>t.stopPropagation(),checked:this.selected})}getClasses(){return{container:!0,"container-background-primary":"primary"===this.color,"container-background-secondary":"secondary"===this.color}}render(){return r("div",{class:this.getClasses()},this.renderSelectBox(),r("slot",null))}static get watchers(){return{selected:["watchSelected"]}}static get style(){return":host{display:block}:host .container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;border-bottom:1px solid #e0e0e0;background-color:var(--mdc-theme-datatable-header,#fff);color:var(--mdc-theme-on-datatable-header,#212121);padding:0 8px}:host materials-checkbox{-ms-flex-item-align:center;align-self:center}"}};export{a as materials_datatable_header};