System.register(["./p-DYlgS5d7.system.js","./p-C62JIZmE.system.js"],(function(r){"use strict";var n,e,i,a,t;return{setters:[function(r){n=r.r;e=r.h;i=r.H},function(r){a=r.c;t=r.u}],execute:function(){var o=":host{display:inline-block}div{--color-background-container:var(--pine-color-background-container-hover);-ms-flex-align:center;align-items:center;background-color:var(--color-background-container);border-radius:var(--border-radius-admin-round, var(--pine-border-radius-full));display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;position:relative}:host(.pds-avatar--admin) div{--border-radius-admin-round:var(--pine-dimension-150);border-radius:var(--border-radius-admin-round)}:host(.pds-avatar--has-image) div{background:transparent}@supports selector(:has){div:has(img){background-color:transparent}}.pds-avatar__button{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:var(--pine-dimension-none);border-radius:var(--pine-border-radius-full);cursor:pointer;display:-ms-flexbox;display:flex;padding:var(--pine-dimension-none)}.pds-avatar__button:focus-visible{outline:var(--pine-outline-focus)}.pds-avatar__badge{background-color:transparent;border:var(--pine-dimension-none);border-color:transparent;border-radius:var(--pine-border-radius-round);inset-block-end:var(--pine-dimension-none);inset-inline-end:var(--pine-dimension-none);position:absolute}img{border-radius:var(--border-radius-admin-round, var(--pine-border-radius-full));height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.pds-avatar__initials{color:var(--pine-color-brand);fill:var(--pine-color-brand);font-size:var(--pine-font-size-085);font-weight:var(--pine-font-weight-semi-bold);height:100%;text-align:center;width:100%}.pds-avatar__initials text{text-anchor:middle}";var s=r("pds_avatar",function(){function r(r){var i=this;n(this,r);this.alt=null;this.badge=false;this.dropdown=false;this.image=null;this.initials=null;this.size="lg";this.variant="customer";this.renderAssetWrapper=function(){var r={height:i.avatarSize(),width:i.avatarSize()};return e("div",{style:r,part:"asset-wrapper"},i.renderIconOrImage(),i.renderBadge())};this.renderAvatar=function(){return i.dropdown?e("button",{class:"pds-avatar__button",type:"button",part:"button","aria-label":"Avatar dropdown trigger"},i.renderAssetWrapper()):i.renderAssetWrapper()};this.renderBadge=function(){return i.badge&&e("pds-icon",{color:"var(--pine-color-purple-600)",class:"pds-avatar__badge",icon:a,size:"33.53%"})};this.renderIconOrImage=function(){if(i.image){return e("img",{alt:i.alt,src:i.image})}if(i.initials){return e("svg",{class:"pds-avatar__initials",viewBox:"0 0 32 32"},e("text",{x:"16",y:"20"},i.initials))}return e("pds-icon",{color:"var(--pine-color-brand)",icon:t,size:"33.53%"})};this.classNames=function(){var r;return r={"pds-avatar":true},r["pds-avatar--has-image"]=i.image!==""&&i.image!==null,r["pds-avatar--has-initials"]=i.initials!==""&&i.initials!==null,r["pds-avatar--".concat(i.variant)]=i.variant==="admin",r}}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(i,{key:"7bdd177a6b7064ed12cabeb21d96b0a0cc6071ae",id:this.componentId,class:Object.assign({},this.classNames())},this.renderAvatar())};return r}());s.style=o}}}));
//# sourceMappingURL=p-34763aae.system.entry.js.map