1function loadEmbedField(oembedContainer){const iframeWrapper=oembedContainer.querySelector(".iframe_wrapper");if(!iframeWrapper)return;const url=iframeWrapper.dataset.embedUrl;if(!url)return;function setIframe(data){let{maxHeight:maxHeight,maxWidth:maxWidth,height:height,width:width}=iframeWrapper.dataset;maxHeight=void 0===maxHeight||maxHeight?maxHeight:data.height,maxWidth=void 0===maxWidth||maxWidth?maxWidth:data.width,height=void 0===height||height?height:data.height,width=void 0===width||width?width:data.width;const el=document.createElement("div");el.innerHTML=data.html;const iframe=el.firstChild;if(iframeWrapper.appendChild(iframe),maxHeight){const maxHeightStr=maxHeight.toString(10)+"px";oembedContainer.style.maxHeight=maxHeightStr,iframe.style.maxHeight=maxHeightStr}if(maxWidth){const maxWidthStr=maxWidth.toString(10)+"px";oembedContainer.style.maxWidth=maxWidthStr,iframe.style.maxWidth=maxWidthStr}if(height){const heightStr=height.toString(10)+"px";oembedContainer.style.height=heightStr,iframe.style.height=heightStr}if(width){const widthStr=width.toString(10)+"px";oembedContainer.style.width=widthStr,iframe.style.width=widthStr}}const embedResponse={html:iframeWrapper.dataset.embedResponseHtml,width:iframeWrapper.dataset.embedResponseWidth,height:iframeWrapper.dataset.embedResponseHeight};if(embedResponse.html)return void setIframe(embedResponse);const request=new XMLHttpRequest,requestUrl="/_hcms/oembed?url="+encodeURIComponent(url)+"&autoplay=0";request.open("GET",requestUrl,!0),request.onload=function(){if(request.status>=200&&request.status<400){setIframe(JSON.parse(request.responseText))}else console.error("Server reached, error retrieving results.")},request.onerror=function(){console.error("Could not reach the server.")},request.send()}document.addEventListener("DOMContentLoaded",function(){var oEmbedContainers=document.getElementsByClassName("oembed_container");Array.prototype.forEach.call(oEmbedContainers,loadEmbedField)}); 2//# sourceURL=https://20918047.fs1.hubspotusercontent-eu1.net/hubfs/20918047/hub_generated/template_assets/1/189627924030/1790599897145/template_embed.js
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.