System.register(["./index-c820db66.system.js","./index-2d937df8.system.js","./_commonjsHelpers-c8881874.system.js"],(function(t){"use strict";var i,e,s,r;return{setters:[function(t){i=t.r;e=t.h;s=t.g},function(t){r=t.d},function(){}],execute:function(){var l={Limit:"Gräns","Soft limit":"Mjuk gräns",Margin:"Marginal","Credit limit":"Kreditgräns","Automatic charge limit.":"Gräns för automatisk debitering.","Automatic charge margin.":"Marginal för automatisk debitering."};function n(t){return r.create({sv:l},t)}var o=".sc-ig-customer-limit-h{width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:distribute;justify-content:space-around}[hidden].sc-ig-customer-limit-h{display:none}.sc-ig-customer-limit-h>section.sc-ig-customer-limit{width:100%}.sc-ig-customer-limit-h>section.sc-ig-customer-limit>label.sc-ig-customer-limit{font-weight:bold;text-align:left;padding-bottom:.2em}.sc-ig-customer-limit-h>section.sc-ig-customer-limit>smoothly-display.sc-ig-customer-limit{width:10em;max-width:10em;text-transform:capitalize;-ms-flex-item-align:start;align-self:flex-start}.sc-ig-customer-limit-h>section.sc-ig-customer-limit>span.sc-ig-customer-limit{background:rgba(0, 0, 0, 0.5);text-align:center;border-radius:6px;padding:.6em;position:absolute;z-index:1;visibility:hidden}.sc-ig-customer-limit-h>section.sc-ig-customer-limit:hover>span.sc-ig-customer-limit{visibility:visible;-moz-transition-delay:.5s;-webkit-transition-delay:.5s;transition-delay:.5s}";var m=t("ig_customer_limit",function(){function t(t){i(this,t)}t.prototype.componentWillLoad=function(){this.t=n(this.element)};t.prototype.render=function(){var t=typeof this.customer.limit=="number"?this.customer.limit:undefined;var i=typeof this.customer.limit=="object"&&this.customer.limit.hard?this.customer.limit.hard:undefined;var s=typeof this.customer.limit=="object"&&this.customer.limit.soft?this.customer.limit.soft:undefined;var r=typeof this.customer.limit=="object"&&this.customer.limit.margin?this.customer.limit.margin:undefined;return t?e("section",null,e("label",null,this.t("Credit limit")),e("smoothly-display",null,t+" "+this.customer.currency)):[i&&e("section",null,e("label",null,this.t("Credit limit")),e("smoothly-display",null,i+" "+this.customer.currency)),s&&e("section",null,e("label",null,this.t("Soft limit")),e("smoothly-display",null,s+" "+this.customer.currency),e("span",null,this.t("Automatic charge limit."))),r&&e("section",null,e("label",null,this.t("Margin")),e("smoothly-display",null,r+" "+this.customer.currency),e("span",null,this.t("Automatic charge margin.")))]};Object.defineProperty(t.prototype,"element",{get:function(){return s(this)},enumerable:false,configurable:true});return t}());m.style=o}}}));