UNPKG

@ionic/core

Version:
4 lines • 1.17 kB
/*! * (C) Ionic http://ionicframework.com - MIT License */ import{d as t,H as r,h as o,f as e,t as d}from"./p-Ct2aBEue.js";import{b as s}from"./p-HthJZjZ6.js";const i=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow()}render(){return o(e,{key:"998217066084f966bf5d356fed85bcbd451f675a",class:s(this)},o("slot",{key:"1a6f7c9d4dc6a875f86b5b3cda6d59cb39587f22"}))}static get style(){return{ios:":host{border-radius:var(--border-radius);display:block}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;-o-object-fit:cover;object-fit:cover;overflow:hidden}:host{--border-radius:50%;width:48px;height:48px}",md:":host{border-radius:var(--border-radius);display:block}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;-o-object-fit:cover;object-fit:cover;overflow:hidden}:host{--border-radius:50%;width:64px;height:64px}"}}},[289,"ion-avatar"]),a=i,c=function(){"undefined"!=typeof customElements&&["ion-avatar"].forEach((t=>{"ion-avatar"===t&&(customElements.get(d(t))||customElements.define(d(t),i))}))};export{a as IonAvatar,c as defineCustomElement}