System.register(["./index-c820db66.system.js","./index-2d937df8.system.js","./_commonjsHelpers-c8881874.system.js"],(function(e){"use strict";var t,o,s,i,l;return{setters:[function(e){t=e.r;o=e.j;s=e.h;i=e.g},function(e){l=e.d},function(){}],execute:function(){var n={Delete:"Radera","Confirm removal":"Bekräfta borttagning"};function r(e){return l.create({sv:n},e)}var a=":host{display:-ms-flexbox;display:flex;position:relative}:host>.card{height:calc(14.49em - 1.4em);background-color:rgb(var(--smoothly-default-shade));-webkit-box-shadow:0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);box-shadow:0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);border-radius:.7em;width:calc(23em - 1.4em);padding:.7em;position:relative}:host>.card>smoothly-display:nth-of-type(1){position:absolute;top:45%;left:25%;font-size:120%;width:50%}:host>.card>p{position:absolute;bottom:15%;left:75%;font-size:80%;text-transform:uppercase}:host>.card>smoothly-display:nth-of-type(2){position:absolute;bottom:10%;left:75%;font-size:1.1em}:host>.card>smoothly-icon{position:absolute;top:7em;right:-3em;cursor:pointer}:host>.table{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host>.table>*{width:10em}:host>.table>*:nth-child(2){width:15em}:host>.table>p{display:none}:host>.table>smoothly-icon{position:absolute;right:0em;cursor:pointer;display:none}:host>.table:hover>smoothly-icon{display:block}";var d=e("ig_payment_method",function(){function e(e){t(this,e);this.deleteMethod=o(this,"deleteMethod",7);this.deletable=false;this.selected=false}e.prototype.componentWillLoad=function(){this.t=r(this.element)};e.prototype.methodDeletedHandler=function(e){this.deleteMethod.emit(e)};e.prototype.render=function(){var e=this;return s("div",{class:this.mode},s("ig-scheme-logotype",{size:this.mode=="card"?"large":"small",scheme:this.method.scheme}),s("smoothly-display",{type:"card-number",value:this.method.iin+"******"+this.method.last4}),s("p",null,"Expires"),s("smoothly-display",{type:"card-expires",value:this.method.expires}),this.deletable?[s("smoothly-icon",{name:"trash-outline",toolTip:this.t("Delete"),style:{display:this.selected?"none":""},size:this.mode=="card"?"medium":"small",onClick:function(){return e.selected=true}}),s("smoothly-icon",{name:"trash",toolTip:this.t("Confirm removal"),style:{display:this.selected?"block":"none"},color:"danger",size:this.mode=="card"?"medium":"small",onClick:function(){return e.methodDeletedHandler(e.method)}})]:null)};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());d.style=a}}}));