/*! Built with http://stenciljs.com */
webcomponents.loadBundle("4xnu6ybe",["exports","./chunk-31baaa34.js","./chunk-6409091d.js","./chunk-735731b6.js","./chunk-4bc80c3c.js","./chunk-c13350ec.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,s=this.el.getElementsByClassName("ema-iframe-iframe")[0],r=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),s.setAttribute("width",t.Css.getVar("width",this.el)),s.setAttribute("height",t.Css.getVar("height",this.el))),this.fullscreen){var i=this.fullscreenMargin.split(",");i.length&&1===i.length&&(t.Css.setVar("top",i[0],this.el),t.Css.setVar("right",i[0],this.el),t.Css.setVar("bottom",i[0],this.el),t.Css.setVar("left",i[0],this.el)),i.length&&2===i.length&&(t.Css.setVar("top",i[0],this.el),t.Css.setVar("right",i[1],this.el),t.Css.setVar("bottom",i[0],this.el),t.Css.setVar("left",i[1],this.el)),i.length&&3===i.length&&(t.Css.setVar("top",i[0],this.el),t.Css.setVar("right",i[1],this.el),t.Css.setVar("bottom",i[2],this.el)),i.length&&4===i.length&&(t.Css.setVar("top",i[0],this.el),t.Css.setVar("right",i[1],this.el),t.Css.setVar("bottom",i[2],this.el),t.Css.setVar("left",i[3],this.el)),n.DomUtil.addClass(r,this.fullscreenClass)}this.zIndex&&t.Css.setVar("zIndex",this.zIndex,this.el),s.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})});