import{r as t,g as s}from"./p-890a2f7e.js";import{d as a}from"./p-9f421a09.js";import"./p-112455b1.js";const r={created:"skapad",ordered:"beställd",cancelled:"avbruten",charged:"godkänd",paid:"betald",refunded:"återbetald",denied:"nekad",pending:"väntande",deferred:"skickad",active:"aktiv",inactive:"inaktiv",suspended:"avstängd",settled:"utbetald",authorized:"auktoriserad",failed:"misslyckad"},o=class{constructor(s){t(this,s)}componentWillLoad(){this.t=a.create({sv:r},this.element)}render(){var t,s;const a=this.t;return[null===(t=this.quantity)||void 0===t?void 0:t.toString(),this.quantity&&(null!==(s=this.unit)&&void 0!==s?s:"×"),a(this.status)].filter((t=>t)).join(" ")}get element(){return s(this)}};o.style=".sc-ig-status-h{display:inline-block;position:relative;top:0.2em;padding:0.2em 0.3em;border-radius:0.6em;overflow:hidden;text-align:center;text-overflow:ellipsis;width:100%}[hidden].sc-ig-status-h{display:none}[status=failed].sc-ig-status-h,[status=suspended].sc-ig-status-h,[status=denied].sc-ig-status-h{background-color:rgb(var(--smoothly-danger-color));color:rgb(var(--smoothly-danger-contrast))}[status=authorized].sc-ig-status-h,[status=active].sc-ig-status-h,[status=ordered].sc-ig-status-h{background-color:rgb(var(--smoothly-success-color));color:rgb(var(--smoothly-success-contrast))}[status=inactive].sc-ig-status-h,[status=cancelled].sc-ig-status-h,[status=refunded].sc-ig-status-h{background-color:rgb(var(--smoothly-medium-color));color:rgb(var(--smoothly-medium-contrast))}[status=created].sc-ig-status-h,[status=deferred].sc-ig-status-h,[status=pending].sc-ig-status-h{background-color:rgb(var(--smoothly-warning-color));color:rgb(var(--smoothly-warning-contrast))}[status=charged].sc-ig-status-h,[status=paid].sc-ig-status-h{background-color:rgb(var(--smoothly-tertiary-tint));color:rgb(var(--smoothly-success-contrast))}[status=settled].sc-ig-status-h{background-color:rgb(var(--smoothly-tertiary-color));color:rgb(var(--smoothly-tertiary-contrast))}";export{o as ig_status}