(function(t){function e(e){for(var r,i,s=e[0],u=e[1],c=e[2],l=0,f=[];l3&&-1!==n.search(/[A-Z]/)&&(n=n.replace(/[a-z]+/g,"")),n=n.substr(0,3).toUpperCase(),n}),v={name:"avatar",props:{username:{type:String},inline:{type:Boolean},size:{type:Number,default:50},src:{type:String},rounded:{type:Boolean,default:!0},lighten:{type:Number,default:80},parser:{type:Function,default:b,validator:function(t){return"string"===typeof t("John",b)}}},data:function(){return{backgroundColor:"#CCCCCC",imgError:!1}},mounted:function(){this.isImage||this.$emit("avatar-initials",this.username,this.userInitial)},computed:{background:function(){return this.isImage?"":this.backgroundColor||this.randomBackgroundColor(this.username.length,this.backgroundColors)},isImage:function(){return console.log("caca"),!this.imgError&&Boolean(this.src)},style:function(){var t={display:"flex",width:"".concat(this.size,"px"),height:"".concat(this.size,"px"),borderRadius:this.rounded?"50%":0,lineHeight:"".concat(this.size+Math.floor(this.size/20),"px"),fontWeight:"bold",alignItems:"center",justifyContent:"center",textAlign:"center",userSelect:"none"},e={background:"transparent url('".concat(this.src,"') no-repeat scroll 0% 0% / ").concat(this.size,"px ").concat(this.size,"px content-box border-box")},n={backgroundColor:this.background,font:"".concat(Math.floor(this.size/2.5),"px/").concat(this.size,"px Helvetica, Arial, sans-serif"),color:this.fontColor},r=this.isImage?e:n;return Object.assign(t,r),t},userInitial:function(){if(!this.isImage){var t=this.initials||this.parser(this.username,b);return t}return""}},methods:{initial:b,onImgError:function(){this.imgError=!0},randomBackgroundColor:function(t,e){return e[t%e.length]},lightenColor:function(t,e){var n=!1;"#"===t[0]&&(t=t.slice(1),n=!0);var r=parseInt(t,16),o=(r>>16)+e;o>255?o=255:o<0&&(o=0);var a=(r>>8&255)+e;a>255?a=255:a<0&&(a=0);var i=(255&r)+e;return i>255?i=255:i<0&&(i=0),(n?"#":"")+(i|a<<8|o<<16).toString(16)}}},y=v,x=Object(i["a"])(y,m,g,!1,null,null,null),w=x.exports,_={name:"Home",props:{username:{type:String},pathToImage:{type:String}},components:{Avatar:w}},C=_,j=(n("a1ee"),Object(i["a"])(C,h,d,!1,null,null,null)),I=j.exports,O={name:"Home",components:{UserRibbon:I}},k=O,S=(n("b747"),Object(i["a"])(k,p,f,!1,null,null,null)),E=S.exports;r["a"].use(l["a"]);var z=[{path:"/",name:"Home",component:E},{path:"/about",name:"About",component:function(){return n.e("about").then(n.bind(null,"722f"))}}],P=new l["a"]({routes:z}),T=P;r["a"].config.productionTip=!1,new r["a"]({router:T,render:function(t){return t(c)}}).$mount("#app")},fa77:function(t,e,n){"use strict";n("aa3d")}}); //# sourceMappingURL=app.b85903d7.js.map