System.register(["./index-c820db66.system.js","./index-dc84aac6.system.js","./index-9ceb7f8c.system.js","./_commonjsHelpers-c8881874.system.js","./index-b0fe4e4c.system.js","./index-2d937df8.system.js"],(function(e){"use strict";var t,s,i;return{setters:[function(e){t=e.r;s=e.h},function(e){i=e.c},function(){},function(){},function(){},function(){}],execute:function(){var c=".sc-ig-customer-balance-h{display:block;padding-top:.5em}[hidden].sc-ig-customer-balance-h{display:none}.sc-ig-customer-balance-h>section.sc-ig-customer-balance>ig-items-list.sc-ig-customer-balance{padding-top:1em}.sc-ig-customer-balance-h>section.sc-ig-customer-balance:first-of-type{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.sc-ig-customer-balance-h>section.sc-ig-customer-balance:last-of-type{display:block}ig-future-due-dates.sc-ig-customer-balance{min-width:13em}ig-orders-table.sc-ig-customer-balance{border:1px solid rgb(var(--smoothly-medium-color));margin-top:1em}main.sc-ig-customer-balance{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}main.sc-ig-customer-balance>*.sc-ig-customer-balance{width:-webkit-min-content;width:-moz-min-content;width:min-content}";var r=e("ig_customer_balance",function(){function e(e){t(this,e)}e.prototype.componentWillLoad=function(){this.filterOrders()};e.prototype.filterOrders=function(){var e=this.orders?this.orders.filter((function(e){return e.payment.type=="customer"||e.payment.type=="card"?e.payment.charge=="balance":false})):undefined;this.ordersFiltered=e};e.prototype.render=function(){return[s("section",null,s("main",null,s("ig-schedule",{schedule:this.customer.schedule}),this.customer.limit?s("ig-customer-limit",{customer:this.customer}):[]),s("ig-future-due-dates",{dates:i.calculateDueDates(this.customer.schedule,4)})),s("section",null,this.customer.balance.length>0?s("ig-items-list",{items:this.customer.balance}):[],this.ordersFiltered&&this.ordersFiltered.length>0?s("ig-orders-table",{display:true,orders:this.ordersFiltered}):[])]};Object.defineProperty(e,"watchers",{get:function(){return{orders:["filterOrders"]}},enumerable:false,configurable:true});return e}());r.style=c}}}));