var __spreadArray=this&&this.__spreadArray||function(e,r){for(var i=0,o=r.length,t=e.length;i<o;i++,t++)e[t]=r[i];return e};System.register(["./index-c820db66.system.js","./index-9ceb7f8c.system.js","./index-dc84aac6.system.js","./_commonjsHelpers-c8881874.system.js","./index-b0fe4e4c.system.js","./index-2d937df8.system.js"],(function(e){"use strict";var r,i,o,t,s;return{setters:[function(e){r=e.r;i=e.h},function(e){o=e.d},function(e){t=e.s;s=e.O},function(){},function(){},function(){}],execute:function(){var d=".sc-ig-orders-h{display:block}[hidden].sc-ig-orders-h{display:none}.sc-ig-orders-h>div.sc-ig-orders>ig-orders-table.sc-ig-orders{border:1px solid rgb(var(--smoothly-medium-color))}.sc-ig-orders-h>div.sc-ig-orders>ig-orders-footer.sc-ig-orders{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 0}smoothly-trigger.sc-ig-orders{display:inline}.sc-ig-orders-h>div.sc-ig-orders>div.sc-ig-orders>smoothly-trigger.sc-ig-orders:hover{border-color:transparent}.toolbar.sc-ig-orders{z-index:1;padding:0.5em 0 0.9em 0.5em;overflow:hidden;position:fixed;height:10.1em;background-color:rgb(var(--smoothly-light-color));top:33%;right:0;border-radius:.3em 0 0 .3em;-webkit-box-shadow:var(--smoothly-shadow);box-shadow:var(--smoothly-shadow);-webkit-animation-name:slide;animation-name:slide;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}@-webkit-keyframes slide{0%{width:0}}@keyframes slide{0%{width:0}}#charge.sc-ig-orders{display:inline-block;border-radius:5px 0 0 0;background-color:rgb(var(--smoothly-success-color))}#cancel.sc-ig-orders,#refund.sc-ig-orders{display:inline-block;border-radius:0;background-color:rgb(var(--smoothly-danger-color))}#synchronize.sc-ig-orders{display:inline-block;border-radius:0;background-color:rgb(var(--smoothly-dark-color));border-bottom-left-radius:5px}p.sc-ig-orders{margin:1em}";var n=e("ig_orders",function(){function e(e){r(this,e);this.selected={};this.display=false}e.prototype.componentWillLoad=function(){if(!this.ordersFiltered)this.updateOrders()};e.prototype.handleFilterChanged=function(e){this.filter=e.detail;e.stopPropagation()};e.prototype.updateOrders=function(){var e=this.orders&&(this.filter?o.filter(this.filter,this.orders):__spreadArray([],this.orders));this.ordersFiltered=e&&t(e,"created")};e.prototype.handleSelectedChanged=function(e){this.selected=e.detail;e.stopPropagation()};e.prototype.render=function(){return i("div",null,i("ig-filter",{template:s.template,filter:this.filter}),i("ig-orders-actions",{selected:this.selected}),i("ig-orders-table",{display:this.display,orders:this.ordersFiltered,selected:this.selected,receipt:this.receipt,embedded:this.embedded}),i("ig-orders-footer",{orders:this.ordersFiltered,selected:this.selected}))};Object.defineProperty(e,"watchers",{get:function(){return{orders:["updateOrders"],filter:["updateOrders"]}},enumerable:false,configurable:true});return e}());n.style=d}}}));