System.register(["./index-c820db66.system.js","./index-2d937df8.system.js","./_commonjsHelpers-c8881874.system.js"],(function(t){"use strict";var s,e,r;return{setters:[function(t){s=t.r;e=t.g},function(t){r=t.d},function(){}],execute:function(){var o={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"};function a(t){return r.create({sv:o},t)}var i='.sc-ig-status-h{display:inline-block;position:relative;top:.2em;padding:.2em .3em;border-radius:.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))}';var n=t("ig_status",function(){function t(t){s(this,t)}t.prototype.componentWillLoad=function(){this.t=a(this.element)};t.prototype.render=function(){var t,s;var e=this.t;return[(t=this.quantity)===null||t===void 0?void 0:t.toString(),this.quantity&&((s=this.unit)!==null&&s!==void 0?s:"×"),e(this.status)].filter((function(t){return t})).join(" ")};Object.defineProperty(t.prototype,"element",{get:function(){return e(this)},enumerable:false,configurable:true});return t}());n.style=i}}}));