System.register(["./index-c820db66.system.js","./index-2d937df8.system.js","./_commonjsHelpers-c8881874.system.js"],(function(e){"use strict";var t,o,r,i,s;return{setters:[function(e){t=e.r;o=e.j;r=e.h;i=e.g},function(e){s=e.d},function(){}],execute:function(){var n={"Create customer":"Skapa kund",Close:"Stäng"};function c(e){return s.create({sv:n},e)}var a=".sc-ig-customer-create-popup-h{position:-webkit-sticky;position:sticky;float:right;width:34em;max-width:85%}.sc-ig-customer-create-popup-h>smoothly-icon.sc-ig-customer-create-popup{position:relative;cursor:pointer;float:right;z-index:2}.sc-ig-customer-create-popup-h>ig-customer-create.sc-ig-customer-create-popup{background-color:rgb(var(--smoothly-medium-contrast));border:solid 1px rgb(var(--smoothly-medium-shade));border-radius:.6em;padding-left:1em;padding-right:1em;padding-top:1em;padding-bottom:.5em;position:absolute;right:-1.4em;bottom:4.2em;z-index:2}.arrow.sc-ig-customer-create-popup{background-color:rgb(var(--smoothly-medium-contrast));border-color:rgb(var(--smoothly-medium-shade));width:30px;height:30px;border-bottom-style:solid;border-bottom-width:1px;border-right-style:solid;border-right-width:1px;position:absolute;right:.5em;bottom:3.2em;-webkit-transform:rotate(45deg);transform:rotate(45deg);z-index:2}.sc-ig-customer-create-popup-h .background.sc-ig-customer-create-popup{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1}";var p=e("ig_customer_create_popup",function(){function e(e){t(this,e);this.create=o(this,"create",7);this.opened=false;this.visible=false}e.prototype.componentWillLoad=function(){this.t=c(this.element)};e.prototype.onCreate=function(e){this.create.emit(e.detail)};e.prototype.onClose=function(e){this.opened=false};e.prototype.render=function(){var e=this;return[this.opened?[r("ig-customer-create",{onClose:function(t){return e.onClose(t)},onCreateCustomer:function(t){return e.onCreate(t)}}),r("div",{class:"arrow"}),r("div",{class:"background",onClick:function(){return e.opened=false}})]:[],r("smoothly-icon",{name:this.opened?"chevron-down-circle":"add-circle",size:"large",toolTip:this.opened?this.t("Close"):this.t("Create customer"),onClick:function(){return e.opened=!e.opened}})]};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());p.style=a}}}));