System.register(["./p-f74c489d.system.js","./p-224a435b.system.js"],(function(e){"use strict";var t,i,s,c,o,r;return{setters:[function(e){t=e.r;i=e.c;s=e.h;c=e.H;o=e.g},function(e){r=e.c}],execute:function(){var n=":host{--color-background-fixed:var(--pine-color-white);--color-background-interactive:var(--pine-color-grey-200);border-color:inherit;display:table-row;vertical-align:inherit}:host::part(checkbox-cell){background-color:var(--color-background-fixed);left:0;position:-webkit-sticky;position:sticky;z-index:1}:host(:hover),:host(:hover)::part(checkbox-cell),:host(:hover) ::slotted(pds-table-cell),:host(.is-selected),:host(.is-selected)::part(checkbox-cell),:host(.is-selected) ::slotted(pds-table-cell){background:var(--color-background-interactive)}";var l=n;var a=e("pds_table_row",function(){function e(e){var s=this;t(this,e);this.pdsTableRowSelected=i(this,"pdsTableRowSelected",7);this.handleClick=function(){s.isSelected=!s.isSelected;s.handleSelect(s.isSelected)};this.handleSelect=function(e){s.indeterminate=false;if(!r("pds-table-head",s.hostElement)){var t=Array.from(s.hostElement.parentNode.children).indexOf(s.hostElement);s.pdsTableRowSelected.emit({rowIndex:t,isSelected:e})}};this.generateUniqueId=function(){var e=Math.random().toString(36).substring(2,8);var t=(new Date).toISOString().replace(/[:.]/g,"-");var i="".concat(e,"-").concat(t);return i};this.indeterminate=undefined;this.isSelected=undefined}e.prototype.classNames=function(){var e=[];if(this.isSelected){e.push("is-selected")}return e.join("  ")};e.prototype.componentWillRender=function(){this.tableRef=this.hostElement.closest("pds-table");if(this.tableRef&&this.tableRef.fixedColumn){var e=this.hostElement.querySelector("pds-table-cell");e===null||e===void 0?void 0:e.classList.add("is-fixed")}};e.prototype.componentWillLoad=function(){if(this.isSelected){this.handleSelect(this.isSelected)}};e.prototype.render=function(){return s(c,{key:"dbfba35e818a96281f5df7e51e60f0bbaf4d5527",class:this.classNames(),role:"row"},this.tableRef&&this.tableRef.selectable&&s("pds-table-cell",{key:"a0d9118e63db0829f4352875cbacf76c11978fff",part:this.tableRef.fixedColumn?"checkbox-cell":"",class:this.tableRef.selectable?"has-checkbox":""},s("pds-checkbox",{key:"60ebde7bb2e745af55e3713b952f963d50396485",componentId:this.generateUniqueId(),onClick:this.handleClick,indeterminate:this.indeterminate,label:"Select Row",labelHidden:true,checked:this.isSelected})),s("slot",{key:"97f90a8d36781f3b278f83b16c778d5e2b6e9bce"}))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());a.style=l}}}));
//# sourceMappingURL=p-ca239d59.system.entry.js.map