import{r as t,h as s,g as r}from"./p-890a2f7e.js";import{d as e}from"./p-c5e6713f.js";import{P as o,E as i}from"./p-d6eb762b.js";import{I as l}from"./p-d30b6245.js";import"./p-888f7794.js";import"./p-be8a42cb.js";import{d as a}from"./p-9f421a09.js";import"./p-87741a18.js";import"./p-112455b1.js";import"./p-1ae2b158.js";import"./p-a96ec623.js";const d={"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!"},n=class{constructor(s){t(this,s)}componentWillLoad(){"string"==typeof this.order&&(this.order=JSON.parse(this.order)),this.t=a.create({sv:d},this.element)}render(){const t=this.t;return this.order=this.order,[s("header",null,s("h1",null,t("Order complete"))),s("main",null,s("dl",null,s("dt",null,t("Order number")),s("dd",null,this.order.number?this.order.number:t("Not available")),s("dt",null,t("Amount")),s("dd",null,this.order.currency," ",l.amount(this.order.items)),s("dt",null,t("Created")),s("dd",null,s("smoothly-display-date-time",{datetime:this.order.created?e.DateTime.localize(e.DateTime.parse(this.order.created)):t("Not available")})),this.order.customer&&"string"!=typeof this.order.customer?this.order.customer.phone?[s("dt",null,t("Phone")),s("dd",null,o.get(this.order.customer.phone))]:this.order.customer.email?[s("dt",null,t("Email")),s("dd",null,i.get(this.order.customer.email))]:"":""),s("h2",null,t("Thanks for your purchase!")))]}get element(){return r(this)}};n.style=":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}";export{n as ig_display_order}