1 line
1.2 KiB
JavaScript
1 line
1.2 KiB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[351,604,768,891,1176,2354,2821,3050,3518,3548,3874,4021,5952,6351,8626,9465,9552],{43902:(e,t,n)=>{"use strict";n.d(t,{ResponsiveIframe:()=>r});var s=n(95155),o=n(12115);function r(e){let{src:t,className:n="",allow:r,style:a}=e,i=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let e=i.current;if(!e)return;let t=()=>{let t=e=>e.offsetParent?e.offsetTop+t(e.offsetParent):e.offsetTop,n=Math.max(0,document.documentElement.clientHeight-t(e));e.style.height="".concat(n,"px")},n=()=>{if(window.location.hash&&window.location.hash.length){let t=new URL(e.src);t.hash=window.location.hash,e.src=t.toString()}};return t(),n(),window.addEventListener("resize",t),window.addEventListener("hashchange",n),e.addEventListener("load",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("hashchange",n),e.removeEventListener("load",t)}},[]),(0,s.jsx)("iframe",{ref:i,id:"myFrame",src:t,className:"w-full border-none ".concat(n),style:{display:"block",width:"100%",height:"100%",...a},allow:r,allowFullScreen:!0})}},68379:(e,t,n)=>{Promise.resolve().then(n.bind(n,43902))}},e=>{var t=t=>e(e.s=t);e.O(0,[8441,1684,7358],()=>t(68379)),_N_E=e.O()}]); |