System.register(["./p-7a5d5d62.system.js"],(function(e){"use strict";var t,s,i,c,r;return{setters:[function(e){t=e.r;s=e.c;i=e.h;c=e.H;r=e.g}],execute:function(){var o=":host{--background-fixed:var(--pine-color-base-white);--background-interactive:var(--pine-color-neutral-grey-200);border-color:inherit;display:table-row;vertical-align:inherit}:host::part(checkbox-cell){background-color:var(--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(--background-interactive)}";var a=o;var l=e("pds_table_row",function(){function e(e){var i=this;t(this,e);this.pdsTableRowSelected=s(this,"pdsTableRowSelected",7);this.handleCheckboxClick=function(){i.isSelected=!i.isSelected;var e=Array.from(i.hostElement.parentNode.children).indexOf(i.hostElement);i.pdsTableRowSelected.emit({rowIndex:e,isSelected:i.isSelected})};this.generateUniqueId=function(){var e=Math.random().toString(36).substring(2,8);var t=(new Date).toISOString().replace(/[:.]/g,"-");var s="".concat(e,"-").concat(t);return s};this.isSelected=false}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.render=function(){return i(c,{key:"b809dac3a76a195446be9cec359887f701213c83",class:this.classNames(),role:"row"},this.tableRef&&this.tableRef.selectable&&i("pds-table-cell",{part:this.tableRef.fixedColumn?"checkbox-cell":"",class:this.tableRef.selectable?"has-checkbox":""},i("pds-checkbox",{componentId:this.generateUniqueId(),onClick:this.handleCheckboxClick,label:"Select Row",labelHidden:true,checked:this.isSelected})),i("slot",{key:"30e8125faa0238ff4c9d2e2ce4dc927173ab35ef"}))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());l.style=a}}}));
//# sourceMappingURL=p-68e7924e.system.entry.js.map