/*! Built with http://stenciljs.com */
webcomponents.loadBundle("2to9fe03",["exports","./chunk-4381ee16.js","./chunk-2f6d8e71.js","./chunk-4bc80c3c.js","./chunk-47f66c02.js","./chunk-f85f75a4.js"],function(e,t,s,r,i,n){var l=window.webcomponents.h,a=function(){function e(){this.fullscreenClass="iframe-holder-fullscreen",this.width="100%",this.height="420px",this.fullscreen=!1,this.fullscreenMargin="0,0,0,0"}return e.prototype.onIframeLoaded=function(){this.iframeLoaded.emit({src:this.src})},e.prototype.componentDidLoad=function(){this.postRender()},e.prototype.componentDidUpdate=function(){this.postRender()},e.prototype.postRender=function(){var e=this,r=this.el.getElementsByClassName("ema-iframe-iframe")[0],i=this.el.getElementsByClassName("ema-iframe-holder")[0];if(this.fullscreen||(t.Css.setVar("width",this.width,this.el),t.Css.setVar("height",this.height,this.el),r.setAttribute("width",t.Css.getVar("width",this.el)),r.setAttribute("height",t.Css.getVar("height",this.el))),this.fullscreen){var n=this.fullscreenMargin.split(",");n.length&&1===n.length&&(t.Css.setVar("top",n[0],this.el),t.Css.setVar("right",n[0],this.el),t.Css.setVar("bottom",n[0],this.el),t.Css.setVar("left",n[0],this.el)),n.length&&2===n.length&&(t.Css.setVar("top",n[0],this.el),t.Css.setVar("right",n[1],this.el),t.Css.setVar("bottom",n[0],this.el),t.Css.setVar("left",n[1],this.el)),n.length&&3===n.length&&(t.Css.setVar("top",n[0],this.el),t.Css.setVar("right",n[1],this.el),t.Css.setVar("bottom",n[2],this.el)),n.length&&4===n.length&&(t.Css.setVar("top",n[0],this.el),t.Css.setVar("right",n[1],this.el),t.Css.setVar("bottom",n[2],this.el),t.Css.setVar("left",n[3],this.el)),s.DomUtil.addClass(i,this.fullscreenClass)}this.zIndex&&t.Css.setVar("zIndex",this.zIndex,this.el),r.onload=function(){t.Css.setVar("visibility","visible",e.el),e.iframeLoaded.emit({src:e.src,el:e.el})}},e.prototype.render=function(){return l("div",{class:"ema-iframe-holder "},l("iframe",{src:this.src,frameborder:"0",class:"ema-iframe-iframe"}))},Object.defineProperty(e,"is",{get:function(){return"ema-iframe"},enumerable:!0,configurable:!0}),Object.defineProperty(e,"properties",{get:function(){return{el:{elementRef:!0},fullscreen:{type:Boolean,attr:"fullscreen"},fullscreenMargin:{type:String,attr:"fullscreen-margin"},height:{type:String,attr:"height"},src:{type:String,attr:"src"},width:{type:String,attr:"width"},zIndex:{type:Number,attr:"z-index"}}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"events",{get:function(){return[{name:"iframeLoaded",method:"iframeLoaded",bubbles:!0,cancelable:!0,composed:!0}]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"style",{get:function(){return"ema-iframe{--top:0;--right:0;--bottom:0;--left:0;--visibility:hidden}ema-iframe .ema-iframe-holder{z-index:var(--zIndex);width:var(--width);height:var(--height);visibility:var(--visibility, \"visible\")}ema-iframe .ema-iframe-holder iframe{height:100%;width:100%}ema-iframe .iframe-holder-fullscreen{position:fixed;top:var(--top);right:var(--right);bottom:var(--bottom);left:var(--left);-webkit-overflow-scrolling:touch;overflow-y:scroll}ema-iframe .iframe-holder-fullscreen iframe{height:100%;width:100%}"},enumerable:!0,configurable:!0}),e}();e.EmaIframe=a,Object.defineProperty(e,"__esModule",{value:!0})});