System.register(["./index-c820db66.system.js","./index-2d937df8.system.js","./_commonjsHelpers-c8881874.system.js"],(function(t){"use strict";var i,e,s,n;return{setters:[function(t){i=t.r;e=t.h;s=t.g},function(t){n=t.d},function(){}],execute:function(){var o={Number:"Nummer",Amount:"Summa",Schedule:"Schema",Start:"Påbörjar",End:"Upphör",Due:"Nästa betalning","There are no subscriptions to display.":"Det finns inga prenummerationer att visa."};function r(t){return n.create({sv:o},t)}var l=".sc-ig-subscription-table-h{display:block;width:100%;max-width:90em;margin:auto}[hidden].sc-ig-subscription-table-h{display:none}.sc-ig-subscription-table-h>p.sc-ig-subscription-table{padding-left:1em}.sc-ig-subscription-table-h>table.sc-ig-subscription-table{width:100%}.sc-ig-subscription-table-h>table.sc-ig-subscription-table>thead.sc-ig-subscription-table>tr.sc-ig-subscription-table{display:table-row;font-weight:bold;height:2em}.sc-ig-subscription-table-h>table.sc-ig-subscription-table>thead.sc-ig-subscription-table>tr.sc-ig-subscription-table>*.sc-ig-subscription-table{display:table-cell;padding-right:.5em;padding-left:.3em;vertical-align:middle;position:-webkit-sticky;position:sticky;top:1.55cm;z-index:1;text-align:left}.sc-ig-subscription-table-h>table.sc-ig-subscription-table>td.sc-ig-subscription-table{text-align:center}";var c=t("ig_subscription_table",function(){function t(t){i(this,t);this.opened={}}t.prototype.componentWillLoad=function(){this.t=r(this.element)};t.prototype.toggleColumn=function(t){var i=Object.assign({},this.opened);if(t.detail["id"]&&i[t.detail.id]==t.detail.column)delete i[t.detail.id];else i[t.detail.id]=t.detail.column;this.opened=i};t.prototype.render=function(){var t=this;return[this.subscriptions?[e("table",null,e("thead",null,e("tr",null,e("th",{color:"light"},this.t("Number")),e("th",{color:"light"},this.t("Amount")),e("th",{color:"light"},this.t("Schedule")),e("th",{color:"light"},this.t("Start")),e("th",{color:"light"},this.t("End")),e("th",{color:"light"},this.t("Due")))),this.subscriptions.map((function(i){var s;return[e("ig-subscription-table-row",{opened:t.opened[i.id],subscription:i}),e("ig-subscription-details",{opened:(s=t.opened[i.id])!==null&&s!==void 0?s:"",subscription:i,customer:t.customer})]})))]:e("p",null,this.t("There are no subscriptions to display."))]};Object.defineProperty(t.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());c.style=l}}}));