System.register(["./index-c820db66.system.js","./index-dc84aac6.system.js","./index-2d937df8.system.js","./index-9ceb7f8c.system.js","./_commonjsHelpers-c8881874.system.js","./index-b0fe4e4c.system.js"],(function(t){"use strict";var e,n,s,o,i;return{setters:[function(t){e=t.r;n=t.h;s=t.g},function(t){o=t.a},function(t){i=t.d},function(){},function(){},function(){}],execute:function(){var r={"total count: ":"totalt antal: ","active: ":"aktiva: ","created: ":"skapade: ","inactive: ":"inaktiva: ","pending: ":"väntande: ","suspended: ":"avstängda: "};function l(t){return i.create({sv:r},t)}var c="footer.sc-ig-customers-footer{display:block;margin:auto;border:1px solid rgb(var(--smoothly-medium-color));width:100%;max-width:90em;z-index:1;position:-webkit-sticky;position:sticky;bottom:0;color:rgb(var(--smoothly-light-contrast));background-color:rgb(var(--smoothly-light-color));padding:.5em 0 .5em 0em}.sc-ig-customers-footer-h>footer.sc-ig-customers-footer>td.sc-ig-customers-footer>span.sc-ig-customers-footer{display:inline-block;margin-left:0.4em;margin-right:0.6em}.sc-ig-customers-footer-h>footer.sc-ig-customers-footer>td.sc-ig-customers-footer{display:inline-block;padding-top:0.2em;margin-left:2em}";var u=t("ig_customers_footer",function(){function t(t){e(this,t)}t.prototype.componentWillLoad=function(){this.t=l(this.element)};t.prototype.render=function(){var t=this;var e;var s=this.customers?this.customers.reduce((function(e,n){var s=e[0],i=e[1],r=e[2],l=e[3];var c,u;var a=(c=n.status)!==null&&c!==void 0?c:o.Status.getStatus(n,t.orders?(u=t.orders[n.id])===null||u===void 0?void 0:u.slice(0,1).shift():undefined);return a=="active"?[++s,i,r,l]:a=="created"?[s,++i,r,l]:a=="pending"?[s,i,++r,l]:[s,i,r,++l]}),[0,0,0,0]):[0,0,0,0],i=s[0],r=s[1],l=s[2],c=s[3];return n("footer",null,n("td",null,n("span",null,this.t("total count: ")),n("span",null,this.customers?(e=this.customers)===null||e===void 0?void 0:e.length:0)),n("td",null,n("span",null,this.t("active: ")),n("span",null,i)),n("td",null,n("span",null,this.t("created: ")),n("span",null,r)),n("td",null,n("span",null,this.t("pending: ")),n("span",null,l)),n("td",null,n("span",null,this.t("suspended: ")),n("span",null,c)))};Object.defineProperty(t.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());u.style=c}}}));