System.register(["./index-0425c4de.system.js"],(function(e){"use strict";var t,s,o,l;return{setters:[function(e){t=e.r;s=e.h;o=e.f;l=e.g}],execute:function(){var a=".sc-bds-table-row-h{display:table-row;height:64px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;border-bottom:1px solid var(--color-border-2, #e0e0e0)}.sc-bds-table-row-h .collapse-body.sc-bds-table-row{padding:16px;max-height:100px;text-align:left;opacity:1;-webkit-transition:all ease 0.5s;transition:all ease 0.5s}.sc-bds-table-row-h:last-child{border-bottom:none}.clickable--true.sc-bds-table-row-h:hover{background-color:var(--color-hover, rgba(0, 0, 0, 0.08));border-bottom:1px solid var(--color-border-2, #e0e0e0);cursor:pointer}.clickable--true.sc-bds-table-row-h{border-bottom:none}.selected--true.sc-bds-table-row-h{border-radius:8px;outline:2px solid var(--color-primary, #1e6bf1);outline-offset:-1px;border-bottom:none}.dense-row.sc-bds-table-row-h{height:auto}.collapse-body.sc-bds-table-row-h{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}.arrow.sc-bds-table-row{-webkit-transition:all ease 0.3s;-moz-transition:all ease 0.3s;transition:all ease 0.3s;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.active.sc-bds-table-row{-webkit-transform:rotate(0deg);transform:rotate(0deg)}.collapse.sc-bds-table-row-h{height:0}.collapse.sc-bds-table-row-h .collapse-body.sc-bds-table-row{padding:0;max-height:0;opacity:0;overflow:hidden;-webkit-transition:all ease-in-out 0.5s;transition:all ease-in-out 0.5s}.collapse.sc-bds-table-row-h th.sc-bds-table-row{padding:0}";var r=e("bds_table_row",function(){function e(e){var s=this;t(this,e);this.toggleCollapse=function(e){if(s.collapse){var t=document.querySelector('[body-collapse="'.concat(e,'"]'));t.classList.toggle("collapse");s.isCollapsed=!s.isCollapsed}};this.isDense=false;this.collapse=undefined;this.isCollapsed=true;this.colspanNumber=null;this.bdsTable=undefined;this.collapseRow=undefined;this.clickable=false;this.selected=false;this.bodyCollapse=undefined;this.dataTarget=undefined}e.prototype.componentWillLoad=function(){this.bdsTable=this.element.closest("bds-table");this.collapseRow=document.querySelector('[body-collapse="'.concat(this.dataTarget,'"]'));this.colspanNumber=document.querySelector("bds-table-row").children.length;if(this.bdsTable&&(this.bdsTable.getAttribute("dense-table")==="true"||this.bdsTable.denseTable===true)){this.isDense=true}if(this.bdsTable&&(this.bdsTable.getAttribute("collapse")==="true"||this.bdsTable.collapse===true)){this.collapse=true;this.clickable=true}if(this.collapseRow){this.collapseRow.classList.add("collapse");this.collapseRow.classList.add("collapse-body")}};e.prototype.componentWillUpdate=function(){var e=this.element.closest("bds-table");if(e&&(e.getAttribute("dense-table")==="true"||e.denseTable===true)){this.isDense=true}};e.prototype.render=function(){var e;var t=this;if(this.bodyCollapse){return s("th",{colSpan:this.colspanNumber},s("div",{class:"collapse-body"},s("slot",null)))}else{var l=this.element.closest("bds-table-header")===this.element.parentElement;return s(o,{class:(e={host:true},e["clickable--".concat(this.clickable)]=!l&&this.clickable===true?true:false,e["selected--".concat(this.selected)]=true,e["dense-row"]=this.isDense,e),onClick:function(){return t.toggleCollapse(t.dataTarget)}},this.collapse&&s("bds-table-cell",{type:"custom"},!l&&s("bds-icon",{class:{arrow:true,active:this.isCollapsed},name:"arrow-down"})),s("slot",null))}};Object.defineProperty(e.prototype,"element",{get:function(){return l(this)},enumerable:false,configurable:true});return e}());r.style=a}}}));