var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,a=1,s=arguments.length;a<s;a++){t=arguments[a];for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]}return e};return __assign.apply(this,arguments)};System.register(["./p-641f968d.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js"],(function(e){"use strict";var t,a,s;return{setters:[function(e){t=e.h},function(e){a=e.c},function(e){s=e.g}],execute:function(){e("G",r);function r(e){var r;var n=e.states,l=e.data,o=e.callbacks,i=e.elements;var d=i.columns,p=i.rows;var c=n.show;var m=l.hiddenColumns&&l.hiddenColumns.split(",").map(Number);var u="@media (max-width: "+l.mdBreakpoint+"px)";var b="@media (min-width: "+(Boolean(p.length<2)?l.mdBreakpoint:l.smBreakpoint)+"px) and (max-width: "+l.mdBreakpoint+"px)";var v={Table:(r={borderCollapse:"collapse",tableLayout:"fixed",width:"100%","& tbody tr":{borderBottom:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)","&:first-child":{borderTop:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)"}},"& th":{paddingBottom:"var(--sl-spacing-small)",textAlign:"left",fontWeight:"var(--sl-font-weight-semibold)",overflowWrap:"anywhere"},"& td":{padding:"var(--sl-spacing-small)",paddingLeft:"0",overflow:"hidden",textOverflow:"ellipsis"}},r[u]={"& thead":{display:"none"},"& tr":{display:"block",background:"inherit",border:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.1)",borderRadius:"var(--sl-border-radius-large)",padding:"var(--sl-spacing-medium)",fontSize:"var(--sl-font-size-small)",marginBottom:"var(--sl-spacing-large)"},"& td":{display:"grid",borderTop:"none",padding:"0",marginBottom:"var(--sl-spacing-medium)","&:first-child":{textAlign:"left"},"&:before":{content:"attr(data-label)",whiteSpace:"nowrap"},"&:last-child":{marginBottom:"0"},"&.hidden:before":{content:"none"}}},r[b]={"& tbody":{display:"grid",gridTemplateColumns:"0.5fr 0.5fr",gap:"25px"}},r),ButtonContainer:__assign({display:"flex","justify-content":"flex-end","margin-top":"var(--sl-spacing-small)"},s({direction:"row",size:"var(--sl-spacing-small)"})),ButtonDisabled:{"&::part(base)":{opacity:"0.25"}}};var g=a(v);var f=g.toString();if(c==="empty")return i.emptyElement;return t("div",null,t("style",{type:"text/css"},f),t("table",{class:g.classes.Table},l.textOverrides.showLabels&&t("thead",null,t("tr",null,d===null||d===void 0?void 0:d.map((function(e){if(typeof e==="string")return t("th",null,e);return t("th",{style:{width:"30px"}},e)})))),t("tbody",null,c==="loading"&&i.loadingElement,c==="rows"&&(p===null||p===void 0?void 0:p.map((function(e,a){return t("tr",{style:{borderTop:""+(!l.textOverrides.showLabels&&a===0?"none":"")},part:"table-row"},e.map((function(e,a){return typeof d[a]==="string"?t("td",{class:(m===null||m===void 0?void 0:m.includes(a))?"hidden":"","data-label":d[a]+":",style:{gridTemplateColumns:(m===null||m===void 0?void 0:m.includes(a))?"1fr":"0.5fr 0.5fr"}},e):t("td",null,e)})))}))))),t("div",{class:g.classes.ButtonContainer,part:n.namespace+"-button-wrapper"},t("sl-button",{size:"small",disabled:!n.hasPrev,loading:c==="loading",onClick:o.prevPage,exportparts:"base: secondarybutton-base",class:!n.hasPrev?g.classes.ButtonDisabled:""},l.textOverrides.prevLabel),t("sl-button",{size:"small",loading:c==="loading",disabled:!n.hasNext,onClick:o.nextPage,exportparts:"base: secondarybutton-base",class:!n.hasNext?g.classes.ButtonDisabled:""},l.textOverrides.moreLabel)))}}}}));