System.register(["./p-2172a2da.system.js","./p-1a333ccd.system.js","./p-fba672db.system.js","./p-38e2ad31.system.js","./p-2fc64b72.system.js","./p-af035210.system.js","./p-b5dd9b68.system.js","./p-32626b8d.system.js","./p-f887c8bb.system.js","./p-8a0a3550.system.js","./p-5ccdd889.system.js"],(function(e){"use strict";var t,r,n,s,o,i,d,a;return{setters:[function(e){t=e.r;r=e.h;n=e.g},function(e){s=e.d},function(e){o=e.P;i=e.E},function(e){d=e.I},function(){},function(){},function(e){a=e.d},function(){},function(){},function(){},function(){}],execute:function(){var u={"Order complete":"Köp slutfört","Order number":"Ordernummer",Amount:"Summa",Created:"Skapad",Phone:"Telefon","Not available":"Ej angivet","Thanks for your purchase!":"Tack för köpet!"};function l(e){return a.create({sv:u},e)}var m=":host{display:block}:host[hidden]{display:none}header{height:56px;width:100%}header>h1{margin:0;color:rgb(var(--smoothly-success-contrast));background:rgb(var(--smoothly-success-color));padding:0.8em}main{margin:1em}dl{margin-top:3em}dt{font-weight:bold}dd{margin-bottom:1em;margin-left:0}";var c=e("ig_display_order",function(){function e(e){t(this,e)}e.prototype.componentWillLoad=function(){if(typeof this.order=="string")this.order=JSON.parse(this.order);this.t=l(this.element)};e.prototype.render=function(){var e=this.t;this.order=this.order;return[r("header",null,r("h1",null,e("Order complete"))),r("main",null,r("dl",null,r("dt",null,e("Order number")),r("dd",null,this.order.number?this.order.number:e("Not available")),r("dt",null,e("Amount")),r("dd",null,this.order.currency," ",d.amount(this.order.items)),r("dt",null,e("Created")),r("dd",null,r("smoothly-display-date-time",{datetime:this.order.created?s.DateTime.localize(s.DateTime.parse(this.order.created)):e("Not available")})),!this.order.customer||typeof this.order.customer=="string"?"":this.order.customer.phone?[r("dt",null,e("Phone")),r("dd",null,o.get(this.order.customer.phone))]:this.order.customer.email?[r("dt",null,e("Email")),r("dd",null,i.get(this.order.customer.email))]:""),r("h2",null,e("Thanks for your purchase!")))]};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());c.style=m}}}));