(()=>{"use strict";var e={n:t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.domReady,r=e=>{try{return new URL(e).searchParams.get("unique-id")}catch(e){return null}};e.n(t)()((()=>{const e=Array.from(document.querySelectorAll("iframe.gigafact-embed-auto-height"));0!==e.length&&(window.addEventListener("message",(t=>{const{data:n}=t;if("setHeight"===n?.type&&"number"==typeof n?.height&&"string"==typeof n?.uniqueId)for(const t of e)if(r(t.src)===n.uniqueId){t.style.height=`${n.height}px`;break}})),window.addEventListener("resize",(()=>{e.forEach((e=>{""!==e.style.height&&(e.style.height="")}))})))}))})();