import{r as registerInstance,h,H as Host}from"./index-da72c774.js";import{c as cls}from"./helpers-82cb299a.js";var styleCss="x-media{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;margin:0;padding:0;text-align:inherit}x-media>img{margin:0 1.5rem 0 0;max-width:100%;height:auto;background-color:rgba(0, 0, 0, 0.1);-webkit-box-shadow:0px 3px 1rem rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(var(--color-border-rgb, 200, 199, 204), 0.35);box-shadow:0px 3px 1rem rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(var(--color-border-rgb, 200, 199, 204), 0.35);-webkit-animation:loadingBG 0.5s infinite alternate;animation:loadingBG 0.5s infinite alternate}.is-dark-mode x-media>img{background-color:rgba(255, 255, 255, 0.1)}x-media>div.media-body{-ms-flex:1;flex:1}x-media.media-rounded>img{border-radius:0.45em}x-media.media-right>img{margin:0 0 0 1.5rem;-ms-flex-order:999;order:999}";var XMediaStyle0=styleCss;var XMedia=function(){function e(e){registerInstance(this,e);this.src=undefined;this.width=undefined;this.height=undefined;this.description=undefined;this.align=undefined;this.rounded=false}e.prototype.render=function(){return h(Host,{key:"32f39e53243f18293ec51557e46bb6a324b1e636",class:cls({"media-rounded":this.rounded,"media-right":this.align==="right"})},this.src&&h("img",{key:"584d16e5f063b38acd8449d9fb26ede85f178819",style:{width:this.width,height:this.height},src:this.src,alt:this.description,"aria-label":this.description}),h("div",{key:"7e3c4c91b4302bcac4bac45a168d8dfd8cd51d6a",class:"media-body"},h("slot",{key:"922b47a898f1be481071521700519e9be68de691"})))};return e}();XMedia.style=XMediaStyle0;export{XMedia as x_media};