/* iframe Height Adjuster 1.3.2 */ (function(window,document){'use strict';var supportedBrowser=!1;if(document.querySelector){if(window.addEventListener){supportedBrowser=!0}} window.aalEmbed=window.aalEmbed||{};if(!!window.aalEmbed.OverwriteIframeHeightLimit){return} window.aalEmbed.OverwriteIframeHeightLimit=function(e){var data=e.data;if(!(data.secret||data.message||data.value)){return} if(/[^a-zA-Z0-9]/.test(data.secret)){return} if('height'!==data.message){return} var iframes=document.querySelectorAll('iframe.components-sandbox, iframe[data-secret="'+data.secret+'"], iframe.aal-unit-preview-frame'),i,_thisFrame;for(i=0;i limit is still present because the browser is not supported.');console.log('For more information : https://medium.com/@wlarch/overwrite-and-bypass-wordpress-iframe-height-dimension-limit-using-javascript-9d5035c89e37')} function adjustFrameHeight(event){var _attrID=event.detail.id;var _iHeight=event.detail.height;event.detail.source.setAttribute('id',_attrID);event.detail.source.setAttribute('height',_iHeight.toString());event.detail.source.classList.add('aal-adjusted-height');var _secret=event.detail.data.secret;var _css='#'+_attrID+' { height: '+_iHeight+'px; overflow: hidden; } ';if(event.detail.isSandbox){event.detail.source.setAttribute('scrolling','no');var _innerIframe=event.detail.source.contentWindow.document.querySelector('iframe[data-secret="'+_secret+'"]');if(null!==_innerIframe){_innerIframe.setAttribute('height',_iHeight.toString())}} var _styleElem=document.getElementById('aal-embed-style-'+_secret+'-'+event.detail.number);if(_styleElem){_styleElem.innerHTML=_css;return} var head=document.head||document.getElementsByTagName('head')[0],style=document.createElement('style');style.type='text/css';style.id='aal-embed-style-'+_secret+'-'+event.detail.number;style.appendChild(document.createTextNode(_css));head.appendChild(style)} function debounceCallbackForEvent(func,timeout){var timeout=timeout||200;var _timeoutIDs={};var _heightsByIDs={};return function(){var scope=this,args=arguments;var _event=arguments[0];if(_event.detail.height===_heightsByIDs[_event.detail.number]){return} clearTimeout(_timeoutIDs[_event.detail.number]);_heightsByIDs[_event.detail.number]=_event.detail.height;_timeoutIDs[_event.detail.number]=setTimeout(function(){func.apply(scope,Array.prototype.slice.call(args))},timeout)}}})(window,document)