System.register(["./p-7a5d5d62.system.js"],(function(t){"use strict";var r,e,a,n;return{setters:[function(t){r=t.r;e=t.h;a=t.H;n=t.g}],execute:function(){var i=":host{--background:var(--pine-color-base-white);background:var(--background);border-collapse:separate;-webkit-box-sizing:border-box;box-sizing:border-box;display:table;width:100%}:host(.is-responsive){background-attachment:local, local, scroll, scroll;background-image:-webkit-gradient(linear, left top, right top, from(var(--background)), to(var(--background))), -webkit-gradient(linear, left top, right top, from(var(--background)), to(var(--background))), -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), to(rgba(255, 255, 255, 0))), -webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.1)), to(rgba(255, 255, 255, 0)));background-image:linear-gradient(to right, var(--background), var(--background)), linear-gradient(to right, var(--background), var(--background)), linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)), linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));background-position:left center, right center, left center, right center;background-repeat:no-repeat;background-size:4px 100%, 4px 100%, 4px 100%, 4px 100%;display:block;margin:0 auto;max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content;overflow-x:auto;white-space:nowrap}";var o=i;var c=t("pds_table",function(){function t(t){r(this,t);this.compact=undefined;this.componentId=undefined;this.responsive=undefined;this.fixedColumn=undefined;this.selectable=undefined;this.sortingColumn=null;this.sortingDirection="asc"}t.prototype.componentWillLoad=function(){this.sortingColumn=null};t.prototype.classNames=function(){var t=["pds-table"];if(this.compact){t.push("is-compact")}if(this.responsive){t.push("is-responsive")}return t.join("  ")};t.prototype.sortTable=function(t,r){var e=this.el.querySelector("pds-table-body");var a=Array.from(e.querySelectorAll("pds-table-row"));var n=Array.from(this.el.querySelectorAll("pds-table-head-cell[sortable]"));var i=n.find((function(r){return r.innerText.trim()===t}));if(!i){console.warn('Column "'.concat(t,'" not found.'));return}var o=n.indexOf(i);a.sort((function(t,e){var a=t.querySelector("pds-table-cell:nth-child(".concat(o+1,")")).textContent.trim();var n=e.querySelector("pds-table-cell:nth-child(".concat(o+1,")")).textContent.trim();if(r==="asc"){return a.localeCompare(n)}else{return n.localeCompare(a)}}));e.innerHTML="";a.forEach((function(t){e.appendChild(t)}))};t.prototype.handleTableSort=function(t){var r=t.detail.direction;this.sortTable(t.detail.column,r);this.sortingColumn=t.detail.column;this.sortingDirection=r};t.prototype.render=function(){return e(a,{key:"a2c7913248cd3d9f73503bde080e8c88aa1a5a71",class:this.classNames(),id:this.componentId,role:"grid",selectable:this.selectable},e("slot",{key:"94e51585d1c5c868896452a79b972c8ee8e27483"}))};Object.defineProperty(t.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());c.style=o}}}));
//# sourceMappingURL=p-dbe98ba2.system.entry.js.map