System.register(["./p-26626013.system.js","./p-224a435b.system.js"],(function(e){"use strict";var t,i,a,r,o,s;return{setters:[function(e){t=e.r;i=e.c;a=e.h;r=e.H;o=e.g},function(e){s=e.c}],execute:function(){var d=":host{--border-head-default:var(--pine-border-width-thin) solid var(--pine-color-grey-300);--color-background-fixed:var(--pine-color-base-white);border-color:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;display:table-header-group;vertical-align:middle}:host::part(checkbox-cell){background-color:var(--color-background-fixed);left:0;position:-webkit-sticky;position:sticky;z-index:1}:host pds-table-checkbox-cell{-webkit-border-after:var(--border-head-default);border-block-end:var(--border-head-default)}";var n=d;var c=e("pds_table_head",function(){function e(e){var a=this;t(this,e);this.pdsTableSelectAll=i(this,"pdsTableSelectAll",7);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.handleInput=function(e){a.isSelected=!e.target.checked;a.handleSelect(a.isSelected)};this.handleSelect=function(e){a.indeterminate=false;if(s("pds-table-head",a.hostElement)){a.pdsTableSelectAll.emit({isSelected:e})}};this.indeterminate=undefined;this.isSelected=undefined}e.prototype.componentWillLoad=function(){if(this.isSelected){this.handleSelect(this.isSelected)}};e.prototype.componentWillRender=function(){this.tableRef=this.hostElement.closest("pds-table");if(this.tableRef&&this.tableRef.fixedColumn){var e=this.hostElement.querySelector("pds-table-head-cell:first-child");e===null||e===void 0?void 0:e.classList.add("is-fixed")}};e.prototype.render=function(){return a(r,{key:"7729235908073cae63294e4ad641bae0403e2c34",role:"row"},this.tableRef&&this.tableRef.selectable&&a("pds-table-head-cell",{key:"2bb801124a3f8d1c9f18d03d1461953da4cdafc6",part:this.tableRef.selectable?"checkbox-cell":""},a("pds-checkbox",{key:"2119be5b2db13a44add35fa9c9fc761a68a2b060",componentId:this.generateUniqueId(),indeterminate:this.indeterminate,onInput:this.handleInput,label:"Select All Rows",labelHidden:true,checked:this.isSelected})),a("slot",{key:"baa5b3af10a77e1a8aff537c3c731fbc59a54ca8"}))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());c.style=n}}}));
//# sourceMappingURL=p-c25d94c0.system.entry.js.map