System.register(["./p-7a5d5d62.system.js"],(function(r){"use strict";var a,e,o;return{setters:[function(r){a=r.r;e=r.h;o=r.H}],execute:function(){var t=":host{display:inline-block}div{--background-color:var(--pine-color-primary-100);--badge-background-color:var(--pine-color-base-white);--border:var(--pine-border-default);--radius-round:50%;-ms-flex-align:center;align-items:center;background-color:var(--background-color);border-radius:var(--admin-radius-round, var(--radius-round));display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;position:relative}:host(.pds-avatar--admin) div{--admin-radius-round:12px;border-radius:var(--admin-radius-round)}:host(.pds-avatar--has-image) div{background:transparent}@supports selector(:has){div:has(img){background-color:transparent}}.pds-avatar__button{--box-shadow-focus:0 0 0 4px var(--pine-color-primary-200);-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:var(--radius-round);cursor:pointer;display:-ms-flexbox;display:flex;padding:0}.pds-avatar__button:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}.pds-avatar__badge{background-color:var(--badge-background-color);border:var(--border);border-color:var(--badge-background-color);border-radius:var(--radius-round);bottom:0;position:absolute;right:0}img{border-radius:var(--admin-radius-round, var(--radius-round));height:100%;-o-object-fit:cover;object-fit:cover;width:100%}";var i=t;var n=r("pds_avatar",function(){function r(r){var o=this;a(this,r);this.renderAvatar=function(){var r={height:o.avatarSize(),width:o.avatarSize()};return o.dropdown?e("button",{class:"pds-avatar__button",type:"button"},e("div",{style:r},o.renderIconOrImage(),o.renderBadge())):e("div",{style:r},o.renderIconOrImage(),o.renderBadge())};this.renderBadge=function(){return o.badge&&e("pds-icon",{class:"pds-avatar__badge",name:"check-circle-filled",size:"33.53%"})};this.renderIconOrImage=function(){return o.image?e("img",{alt:o.alt,src:o.image}):e("pds-icon",{name:"user-filled",size:"33.53%"})};this.classNames=function(){var r;return r={"pds-avatar":true},r["pds-avatar--has-image"]=o.image!==""&&o.image!==null,r["pds-avatar--".concat(o.variant)]=o.variant==="admin",r};this.alt=null;this.badge=false;this.componentId=undefined;this.dropdown=false;this.image=null;this.size="lg";this.variant="customer"}r.prototype.avatarSize=function(){var r={xs:"24px",sm:"32px",md:"40px",lg:"56px",xl:"64px"};if(r[this.size]){return r[this.size]}else{return this.size}};r.prototype.render=function(){return e(o,{key:"595815274032d146a4bb480940d152ba2507c2b4",id:this.componentId,class:Object.assign({},this.classNames())},this.renderAvatar())};return r}());n.style=i}}}));
//# sourceMappingURL=p-7a7416d5.system.entry.js.map