import{r as l,h as e,H as s,g as t}from"./p-93b809e8.js";const a=class{constructor(e){l(this,e),this.isDense=!1,this.type="text",this.sortable=!1}renderContent(){return"custom"===this.type?e("div",{class:"cell cell-custom dense-cell"},e("slot",null)):"text"===this.type?e("div",{class:"cell dense-cell"},e("bds-typo",{variant:"fs-14",bold:this.sortable?"bold":"regular"},e("slot",null))):"action"===this.type?e("div",{class:"cell cell-action dense-cell"},e("slot",null)):"collapse"===this.type?e("td",{colSpan:2,class:"cell cell-action dense-cell"},e("slot",null)):e("slot",null)}componentWillLoad(){const l=this.element.closest("bds-table");l&&"true"===l.getAttribute("dense-table")&&(this.isDense=!0)}render(){return e(s,null,this.renderContent())}get element(){return t(this)}};a.style='.sc-bds-table-cell-h{display:table-cell;padding:0 8px;font-family:"Nunito Sans", "Carbona", "Tahoma", "Helvetica", "Arial", sans-serif;font-size:14px;vertical-align:middle}.cell.sc-bds-table-cell{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;min-height:48px;margin:8px 0;color:var(--color-content-default, #454545);font-family:"Nunito Sans", "Carbona", "Tahoma", "Helvetica", "Arial", sans-serif;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.dense-cell.sc-bds-table-cell{margin:0}.cell-custom.sc-bds-table-cell{gap:8px}.cell-action.sc-bds-table-cell{-ms-flex-direction:row;flex-direction:row;gap:8px}.sc-bds-table-cell-h:first-child{padding-left:16px}.sc-bds-table-cell-h:last-child{padding-right:16px}';export{a as bds_table_cell}