1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__||=[]).push([[6251],{1323(e,t,i){i.d(t,{A:()=>a});var s=i(76998),l=i(34156),n=i.n(l),r=i(68985),o=i(23236),c=i(23446);class a extends s.Component{constructor(){super(...arguments),this.state={fullSizedWindow:!1,iframeInitialWidth:null,iframeInitialHeight:null},this.componentRef=s.createRef(),this.bodyWrapperRef=s.createRef(),this.toggleFullscreenHandler=()=>{this.isFullscreen()||this.state.fullSizedWindow?this.exitFullscreen():this.enterFullscreen()},this.closeActionHandler=()=>{this.isFullscreen()&&this.exitFullscreen(),this.state.fullSizedWindow&&this.exitFullSizeWindow(),(0,o.Tn)(this.props.onCloseHandler)&&this.props.onCloseHandler()},this.onFullscreenToggle=()=>{this.setFullscreenIframe()}}componentDidMount(){r.Fr&&this.props.popupLayout&&(this.enterFullscreen(),this.scrollModalToTop()),document.addEventListener("fullscreenchange",this.onFullscreenToggle),document.addEventListener("mozfullscreenchange",this.onFullscreenToggle),document.addEventListener("webkitfullscreenchange",this.onFullscreenToggle),document.addEventListener("msfullscreenchange",this.onFullscreenToggle)}componentWillUnmount(){document.removeEventListener("fullscreenchange",this.onFullscreenToggle),document.removeEventListener("mozfullscreenchange",this.onFullscreenToggle),document.removeEventListener("webkitfullscreenchange",this.onFullscreenToggle),document.removeEventListener("msfullscreenchange",this.onFullscreenToggle)}scrollModalToTop(){const e=document.querySelector(".c-modal");e&&e.scrollTo(0,0)}setFullSizeIframe(){const e=this.bodyWrapperRef.current.querySelector("iframe");e&&e.setAttribute("height",(window.innerHeight-36).toString())}setFullscreenIframe(){const e=this.bodyWrapperRef.current?this.bodyWrapperRef.current.querySelector("iframe"):null;if(e)if(this.isFullscreen()){this.setState(()=>({iframeInitialWidth:e.getAttribute("width"),iframeInitialHeight:e.getAttribute("height")}));const t=window.screen.width,i=window.screen.height-36;e.setAttribute("width",t.toString()),e.setAttribute("height",i.toString())}else{const{iframeInitialWidth:t,iframeInitialHeight:i}=this.state;e.setAttribute("width",t),e.setAttribute("height",i)}}enterFullSizeWindow(){(0,o.SS)(),this.setFullSizeIframe(),this.setState({fullSizedWindow:!0})}exitFullSizeWindow(){(0,o.fk)(),this.setState({fullSizedWindow:!1})}enterFullscreen(){!1===(0,o.lh)(this.componentRef.current)&&this.enterFullSizeWindow()}exitFullscreen(){!1===(0,o.Eh)()&&this.exitFullSizeWindow()}isFullscreen(){return document.fullscreenElement||document.webkitCurrentFullScreenElement}render(){const{enabled:e=!1,popupLayout:t,children:i}=this.props;if(!e)return i;const s=n()({"c-maximise-screen-wrapper":!0,"c-maximise-screen-wrapper--popup":t,"c-maximise-screen-wrapper--full-size":this.state.fullSizedWindow});return(0,c.jsxs)("div",{ref:this.componentRef,className:s,children:[(0,c.jsx)("div",{className:"c-maximise-screen-wrapper__toolbar c-maximise-screen-wrapper__toolbar--top",children:(0,c.jsxs)("div",{className:"c-maximise-screen-wrapper__toolbar-right",children:[(0,c.jsx)("span",{title:"Enter Full Screen",className:"material-icons c-maximise-screen-wrapper__enter-fullscreen",onClick:this.toggleFullscreenHandler,children:"fullscreen"}),(0,c.jsx)("span",{title:"Exit Full Screen",className:"material-icons c-maximise-screen-wrapper__exit-fullscreen",onClick:this.toggleFullscreenHandler,children:"fullscreen_exit"}),(0,c.jsx)("span",{title:"Close",className:"material-icons c-maximise-screen-wrapper__close",onClick:this.closeActionHandler,children:"close"})]})}),(0,c.jsx)("div",{ref:this.bodyWrapperRef,className:"c-maximise-screen-wrapper__body",children:i})]})}}},85610(e,t,i){i.r(t),i.d(t,{IframeModule:()=>g,default:()=>x});var s=i(76998),l=i(11947),n=i(49113),r=i(68985);var o=i(10011),c=i(91634),a=i(61332),d=i(13978),u=i(1323),h=i(13761),m=i(23446);const p=l.Ay.div.withConfig({displayName:"IframeModule__Wrapper",componentId:"sc-1ozr9kh-0"})(["",";",";",";"],e=>{let{theme:t}=e;return(0,a.yG)(t,t.siteBuilderModules.iframeModule)},e=>{let{theme:t}=e;return(0,a.yG)(t,t.module.vStyles)},e=>{let{theme:t}=e;return(0,a.yG)(t,t.module.dStyles)}),f=l.Ay.div.withConfig({displayName:"IframeModule__IframeHeadingSection",componentId:"sc-1ozr9kh-1"})([""," ",""],e=>{var t;let{theme:i,dStyles:s}=e;return(0,a.yG)(i,null===s||void 0===s||null===(t=s.elements)||void 0===t?void 0:t.headingSection)},e=>{var t;let{theme:i,vStyles:s}=e;return(0,a.yG)(i,null===s||void 0===s||null===(t=s.elements)||void 0===t?void 0:t.headingSection)});function g(e){const t=(0,s.useRef)(null),{options:{data:{proxyIncomingQueryParameters:i=!1}={}}={},pageConfig:{siteId:n}={},section:{id:a,title:h,titleSize:g,text:x,url:S="",height:v,heightMobile:w,appendUserDataToUrl:F,showMaximiseScreenOption:y,path:b="",appendIncomingQueryParametersToUrl:_,vendor:A}={},location:{search:I}}=e,E=(0,s.useContext)(l.Dx),{iframeModule:T}=E.siteBuilderModules,j=h||x?"DEFAULT":"COMPACT",z=T.displayStyles[j],W=T.visualStyles.DEFAULT;return(0,s.useEffect)(()=>{const{loggedIn:e,email:s}=d.A.getShortAccountDetails();let l=S;
1if(F&&("GLISSER"===A||"GLISSER_LIVE"===A)&&e)l=(0,o.bC)(l,s);else if((I||i)&&_){const e=i?(0,o.oj)(n):I;l=(0,o.zI)(l,b,e)}t.current&&t.current.setAttribute("src",l)},[i,F,_,b,I,n,S,A]),(0,s.useEffect)(()=>{var e;const i=r.Fr?w:v;null===(e=t.current)||void 0===e||e.setAttribute("height",i)},[]),(0,m.jsx)(c.XN,{section:e.section,moduleTheme:{dStyles:z,vStyles:W},children:(0,m.jsxs)(p,{children:[(h||x)&&(0,m.jsx)(f,{vStyles:W,dStyles:z,children:(0,m.jsx)("div",{className:"container",children:(0,m.jsx)("div",{className:"row middle-xs",children:(0,m.jsxs)("div",{className:"col-xs-12",children:[(0,m.jsx)(c.A1,{displayStyles:z,content:h,as:g}),(0,m.jsx)(c.fz,{content:x})]})})})}),(0,m.jsx)("div",{className:"container",children:(0,m.jsx)("div",{className:"row middle-xs",children:(0,m.jsx)("div",{className:"col-xs-12",children:(0,m.jsx)(u.A,{enabled:y,children:(0,m.jsx)("iframe",{ref:t,id:a,title:`iframe-${a}`,width:"100%"})})})})})]})})}const x=(0,h.Ng)(e=>({options:e.options,pageConfig:e.pageConfig}))((0,n.y)(g))}}]); 2//# sourceMappingURL=IframeModule.291f4845.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.