var __spreadArray=this&&this.__spreadArray||function(t,i){for(var e=0,s=i.length,n=t.length;e<s;e++,n++)t[n]=i[e];return t};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(t){"use strict";var i,e,s,n,r,l;return{setters:[function(t){i=t.r;e=t.j;s=t.h;n=t.g},function(t){r=t.I},function(t){l=t.d},function(){},function(){},function(){}],execute:function(){var c={Total:"Totalt",VAT:"moms",Quantity:"Antal",Name:"Namn",Unit:"Enhet",Price:"Pris"};function a(t){return l.create({sv:c},t)}var o=".sc-ig-items-list-h{display:block}[hidden].sc-ig-items-list-h{display:none}.sc-ig-items-list-h>li.sc-ig-items-list{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch}.sc-ig-items-list-h>li.sc-ig-items-list>*.sc-ig-items-list:first-child{overflow:hidden;text-overflow:ellipsis}.sc-ig-items-list-h>li.sc-ig-items-list>*.sc-ig-items-list:last-child{margin-left:auto}.sc-ig-items-list-h>li.total.sc-ig-items-list{border-top:solid 1px rgb(var(--smoothly-color-contrast));margin-top:.2em;padding-top:.2em;font-weight:600}.sc-ig-items-list-h>li.vat.sc-ig-items-list{font-size:85%}[editable].sc-ig-items-list-h>li.total.sc-ig-items-list,[editable].sc-ig-items-list-h>li.vat.sc-ig-items-list{margin-right:1em}";var m=t("ig_items_list",function(){function t(t){i(this,t);this.changed=e(this,"changed",7);this.editable=false}t.prototype.componentWillLoad=function(){this.t=a(this.element)};t.prototype.edited=function(t,i){var e=this.items;if(i&&Array.isArray(e)){e[i]=t.detail;this.items=__spreadArray([],e)}else this.items=t.detail;this.changed.emit(this.items)};t.prototype.render=function(){var t=this;var i=this.t;var e=r.vat(this.items);return[Array.isArray(this.items)?this.items.map((function(i,e){return s("ig-item",{onEdit:function(i){return t.edited(i,e)},editable:t.editable,item:i,currency:t.currency})})):s("ig-item",{onEdit:function(i){return t.edited(i)},editable:this.editable,item:this.items,currency:this.currency}),s("li",{class:"total"},s("span",null,i("Total")),s("smoothly-display",{type:"price",value:r.amount(this.items),currency:this.currency})),e!=undefined?s("li",{class:"vat"},s("span",null,i("VAT")),s("smoothly-display",{type:"price",value:e,currency:this.currency})):""]};Object.defineProperty(t.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());m.style=o}}}));