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(e){"use strict";var t,n,o,i,s,r,c;return{setters:[function(e){t=e.r;n=e.j;o=e.h;i=e.g},function(e){s=e.I;r=e.c},function(e){c=e.d},function(){},function(){},function(){}],execute:function(){var l={daily:"daglig",weekly:"veckovis",monthly:"månadsvis",quarterly:"kvartalsvis",yearly:"årlig",ongoing:"pågående"};function u(e){return c.create({sv:l},e)}var d=".sc-ig-subscription-table-row-h{display:table-row}[hidden].sc-ig-subscription-table-row-h{display:none}.sc-ig-subscription-table-row-h:hover{border-top:1px solid rgb(var(--smoothly-medium-color));border-bottom:1px solid rgb(var(--smoothly-medium-color));-webkit-box-shadow:var(--smoothly-shadow);box-shadow:var(--smoothly-shadow)}.sc-ig-subscription-table-row-h>td.sc-ig-subscription-table-row>.openable.sc-ig-subscription-table-row{padding:.5em .3em;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:3em;display:inline-block}.opened.sc-ig-subscription-table-row,.openable.sc-ig-subscription-table-row{cursor:pointer}.opened.sc-ig-subscription-table-row{border:solid 1px rgb(var(--smoothly-medium-shade));background-color:rgb(var(--smoothly-dark-shade));border-bottom:3px solid rgb(var(--smoothly-dark-shade));border-radius:0 0 2px 2px;margin-bottom:-2px}.sc-ig-subscription-table-row-h>td.sc-ig-subscription-table-row:first-of-type>.opened.sc-ig-subscription-table-row{border-left:none}";var a=e("ig_subscription_table_row",function(){function e(e){t(this,e);this.columnClicked=n(this,"columnClicked",7);this.opened=""}e.prototype.componentWillLoad=function(){this.t=u(this.element)};e.prototype.handleColumnClick=function(e){this.opened=e;this.columnClicked.emit({id:this.subscription.id,column:e})};e.prototype.render=function(){var e=this;var t;return[o("td",null,o("section",{class:"openable"+(this.opened=="number"?" opened":""),onClick:function(){return e.handleColumnClick("number")}},(t=this.subscription.number)!==null&&t!==void 0?t:this.subscription.id)),o("td",null,o("smoothly-display-amount",{class:"openable"+(this.opened=="amount"?" opened":""),onClick:function(){return e.handleColumnClick("amount")},amount:s.amount(this.subscription.items),currency:this.subscription.currency})),o("td",null,o("section",{class:"openable"+(this.opened=="schedule"?" opened":""),onClick:function(){return e.handleColumnClick("schedule")}},this.t(typeof this.subscription.schedule=="object"?this.subscription.schedule.frequency:this.subscription.schedule))),o("td",null,o("section",{class:"openable"+(this.opened=="start"?" opened":""),onClick:function(){return e.handleColumnClick("start")}},this.subscription.start)),o("td",null,o("section",{class:"openable"+(this.opened=="end"?" opened":""),onClick:function(){return e.handleColumnClick("end")}},this.subscription.end?this.subscription.end:this.t("ongoing"))),o("td",null,o("section",{class:"openable"+(this.opened=="due"?" opened":""),onClick:function(){return e.handleColumnClick("due")}},r.next(this.subscription.schedule,this.subscription.start)))]};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());a.style=d}}}));