System.register(["./index-c820db66.system.js","./index-39cc694b.system.js","./index-542a2c72.system.js","./index-dc84aac6.system.js","./index-2d937df8.system.js","./_commonjsHelpers-c8881874.system.js","./index-9ceb7f8c.system.js","./index-b0fe4e4c.system.js"],(function(e){"use strict";var t,n,r,s,i,l,a,d;return{setters:[function(e){t=e.r;n=e.h;r=e.g},function(e){s=e.b},function(e){i=e.d},function(e){l=e.I;a=e.E},function(e){d=e.d},function(){},function(){},function(){}],execute:function(){var o={Amount:"Belopp",Reason:"Anledning",Error:"Fel",Status:"Status",Type:"Typ",Details:"Detaljer"," (failed)":" (misslyckades)",defer:"skicka",order:"beställa",cancel:"avbryta",charge:"godkänna",refund:"återbetala",settle:"utbetala",fail:"misslycka",synchronize:"synkronisera","gross: ":"brutto: ","net: ":"netto: ","fee: ":"avgift: "};function u(e){return d.create({sv:o},e)}var c="*.sc-ig-order-events-h{display:-ms-flexbox;display:flex}[hidden].sc-ig-order-events-h{display:none}.sc-ig-order-events-h>span.sc-ig-order-events{-ms-flex-positive:1;flex-grow:1;padding-left:0.6em;padding-right:0.6em}ul.sc-ig-order-events{width:100%;list-style-type:none;-webkit-padding-start:0;padding-inline-start:0;margin-top:0;margin-bottom:0}summary.sc-ig-order-events{outline:none;text-align:left}dl.sc-ig-order-events{margin:8px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;max-height:3em;-ms-flex-pack:start;justify-content:flex-start}dt.sc-ig-order-events{font-weight:bold;text-align:left}dd.sc-ig-order-events{text-align:left;margin:0}";var m=e("ig_order_events",function(){function e(e){t(this,e)}e.prototype.componentWillLoad=function(){this.t=u(this.element)};e.prototype.render=function(){var e=this;return n("ul",null,this.event.map((function(t){return n("li",null,t.type=="fail"&&t.items!=undefined?[n("details",null,n("summary",null,i.DateTime.localize(i.DateTime.parse(t.date)),n("b",null," ",e.t(t.original))," ",e.t(" (failed)")," ",l.amount(t.items)," ",e.currency),e.renderEvent(t))]:t.type=="fail"&&t.items==undefined?[n("details",null,n("summary",null,i.DateTime.localize(i.DateTime.parse(t.date)),n("b",null," ",e.t(t.original))," ",e.t(" (failed)")),e.renderEvent(t))]:t.type=="settle"?[n("summary",null," ",i.DateTime.localize(i.DateTime.parse(t.date)),n("b",null," ",e.t(t.type)),"  ",e.t("gross: ")," ",t.gross," ",e.currency," ",e.t("fee: ")," ",t.fee," ",e.currency," ",e.t("net: ")," ",t.net," ",e.currency)]:t.type!="fail"&&t.items==undefined?[n("summary",null," ",i.DateTime.localize(i.DateTime.parse(t.date)),n("b",null," ",e.t(t.type)))]:t.type!="fail"&&t.items!=undefined?[n("summary",null," ",i.DateTime.localize(i.DateTime.parse(t.date)),n("b",null," ",e.t(t.type))," ",l.amount(t.items)," ",e.currency)]:"Error")})))};e.prototype.renderEvent=function(e){var t,r;var i;switch(e.type){case"defer":case"deny":case"cancel":case"charge":case"order":case"pay":case"pend":case"refund":case"settle":case"synchronize":i=n("dl",null,e.items?[n("dt",null,this.t("Amount")),n("dd",null,l.amount(e.items)," ",this.currency)]:"");break;case"fail":i=n("dl",null,e.items?[n("dt",null,this.t("Amount")),n("dd",null,l.amount(e.items)," ",this.currency)]:"",e.original?[n("dt",null,this.t("Reason")),n("dd",null,this.t(e.original))]:"",e.error?[n("dt",null,this.t("Error")),n("dd",null,e.error)]:"",((t=e.error)===null||t===void 0?void 0:t.status)?[n("dt",null,this.t("Status")),n("dd",null,e.error.status)]:"",((r=e.error)===null||r===void 0?void 0:r.type)?[n("dt",null,this.t("Type")),n("dd",null,e.error.type)]:"",a.Fail.is(e)&&s.is(e.error)?[n("dt",null,this.t("Details")),n("dd",null,e.error.details.body.status.message)]:"");break;default:i=n("dl",null)}return i};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());m.style=c}}}));