var __spreadArray=this&&this.__spreadArray||function(t,e){for(var s=0,r=e.length,i=t.length;s<r;s++,i++)t[i]=e[s];return t};System.register(["./p-e0e8055c.system.js","./p-2cf27486.system.js","./p-b9937edc.system.js","./p-b93550e9.system.js"],(function(t){"use strict";var e,s,r,i,o;return{setters:[function(t){e=t.r;s=t.c;r=t.h},function(t){i=t.d;o=t.a},function(){},function(){}],execute:function(){var n=".sc-ig-customers-h{display:block;width:100%;max-width:90em;margin:auto}ig-customer-create-popup.sc-ig-customers{bottom:3.5em;margin-right:2.5em}";var u=t("ig_customers",function(){function t(t){e(this,t);this.updateCustomers=s(this,"updateCustomers",7);this.selected={}}t.prototype.componentWillLoad=function(){if(!this.customersFiltered)this.filterCustomers()};t.prototype.handleFilterChanged=function(t){this.filter=t.detail;t.stopPropagation()};t.prototype.filterCustomers=function(){var t=this.customers&&(this.filter?i.filter(this.filter,this.customers):__spreadArray([],this.customers));this.customersFiltered=t};t.prototype.handleSelectedChanged=function(t){this.selected=t.detail};t.prototype.onCreate=function(t){this.updateCustomers.emit(t.detail)};t.prototype.render=function(){var t=this;return[r("ig-filter",{template:o.template,filter:this.filter}),r("ig-customer-actions",{whitelist:this.whitelist,selected:this.selected}),r("ig-customers-table",{customers:this.customersFiltered,orders:this.orders,selected:this.selected,whitelist:this.whitelist}),r("ig-customer-create-popup",{hidden:true,onCreate:function(e){return t.onCreate(e)}}),r("ig-customers-footer",{customers:this.customersFiltered})]};Object.defineProperty(t,"watchers",{get:function(){return{customers:["filterCustomers"],filter:["filterCustomers"]}},enumerable:false,configurable:true});return t}());u.style=n}}}));