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