System.register(["./index-c820db66.system.js","./index-04238c17.system.js","./index-2d937df8.system.js","./index-8fad73f5.system.js","./App-f9075e71.system.js","./_commonjsHelpers-c8881874.system.js","./index-b0fe4e4c.system.js"],(function(e){"use strict";var t,n,o,i,r,s;return{setters:[function(e){t=e.r;n=e.j;o=e.h;i=e.g},function(){},function(e){r=e.d},function(e){s=e.N},function(){},function(){},function(){}],execute:function(){var p={Save:"Spara",Cancel:"Avbryt",primary:"primär",cellphone:"mobiltelefon",landline:"fast telefon","Please enter a valid phone number.":"Ange ett giltigt telefonnummer.","Phone number":"Telefonnummer"};function u(e){return r.create({sv:p},e)}var l=".sc-ig-phone-number-input-h{margin-top:.5em;display:block}smoothly-submit.sc-ig-phone-number-input,smoothly-submit.sc-ig-phone-number-input>button.sc-ig-phone-number-input{background-color:transparent;border:none;cursor:pointer;color:transparent;width:auto;float:right;margin-top:.2em}smoothly-input.sc-ig-phone-number-input{border:1px solid rgb(var(--smoothly-medium-color))}form.sc-ig-phone-number-input{display:-ms-flexbox;display:flex;-ms-flex-flow:row;flex-flow:row;-ms-flex-wrap:wrap;flex-wrap:wrap}form.sc-ig-phone-number-input>*.sc-ig-phone-number-input:not(smoothly-icon){width:100%}form.sc-ig-phone-number-input>tr.sc-ig-phone-number-input>span.sc-ig-phone-number-input>smoothly-icon.sc-ig-phone-number-input{float:left;margin-right:.2em}form.sc-ig-phone-number-input>tr.sc-ig-phone-number-input>span.sc-ig-phone-number-input{float:left;margin-right:1em;padding-bottom:.5em;padding-top:.5em;font-size:.9em}";var m=e("ig_phone_number_input",function(){function e(e){t(this,e);this.add=n(this,"add",7);this.edit=n(this,"edit",7);this.notice=n(this,"notice",7);this.types=[];this.type=this.types[0];this.mode="edit"}e.prototype.componentWillLoad=function(){this.t=u(this.element)};e.prototype.onSubmit=function(e){var t=e.detail.phone;if(t){if(this.mode=="add")this.add.emit({type:this.type,value:t});else this.edit.emit(t)}else this.notice.emit(s.failed(this.t("Please enter a valid phone number.")))};e.prototype.onCancel=function(){this.edit.emit(this.value)};e.prototype.onSelectionChanged=function(e){this.type=e.detail.value};e.prototype.toUpperCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};e.prototype.render=function(){var e=this;var t=this.t;return o("form",null,this.mode=="add"?o("smoothly-select",{background:"transparent"},this.types.map((function(n){return e.type==n?o("option",{value:n,selected:true},e.toUpperCase(t(n))):o("option",{value:n},e.toUpperCase(t(n)))}))):[],o("smoothly-input",{type:"phone",name:"phone",value:this.value},this.mode=="add"?t("Phone number"):t(this.type)),o("div",null,o("smoothly-submit",{prevent:true,onSubmit:function(t){return e.onSubmit(t)}},o("smoothly-icon",{name:"checkmark-circle",toolTip:t("Save"),color:"success",fill:"clear",size:"small"})),o("smoothly-submit",{prevent:true,onSubmit:function(){return e.onCancel()}},o("smoothly-icon",{name:"close-circle",toolTip:t("Cancel"),color:"light",fill:"clear",size:"small"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());m.style=l}}}));