1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6402],{26402:function(e,t,r){r.r(t),r.d(t,{default:function(){return p}});var i=r(85893),l=r(90512),n=r(4298),s=r.n(n),a=r(67294);let u=new Set(["gs-iframe-height","iframe-height","resize"]),h=e=>e.replace(/\/$/,"");var o=e=>{let[t,r]=(0,a.useState)();return(0,a.useEffect)(()=>{let t;if(!e)return;try{t=new URL(e).origin}catch(e){return}let i=t=>{if("number"==typeof t)return t;if("string"==typeof t)try{return i(JSON.parse(t))}catch(e){return}if(t&&"object"==typeof t){var r;let i="string"==typeof t.type?t.type:null;if(i&&!u.has(i)&&null==t.height&&null==t.iframeHeight)return;let l="string"==typeof t.url?t.url:null;if(l){let t=h(l)===h(e),r=function(e,t){try{return new URL(e).origin===new URL(t).origin}catch(e){return!1}}(l,e);if(!t&&!r)return}let n=null!==(r=t.height)&&void 0!==r?r:t.iframeHeight;return null==n?void 0:Number(n)}},l=e=>{if(e.origin!==t)return;let l=i(e.data);"number"==typeof l&&Number.isFinite(l)&&!(l<100)&&r(l)};return window.addEventListener("message",l),()=>{window.removeEventListener("message",l)}},[e]),t};let c=["view.ceros.com","stage-view.ceros.com"],f=[{key:"mobile_height",cssVar:"--ife-h-base"},{key:"mobile_landscape_height",cssVar:"--ife-h-sm"},{key:"tablet_height",cssVar:"--ife-h-md"},{key:"tablet_landscape_height",cssVar:"--ife-h-lg"},{key:"desktop_height",cssVar:"--ife-h-xl"},{key:"large_height",cssVar:"--ife-h-2xl"}],m={module:"min-h-[300px]",full_page:"min-h-[min(70vh,900px)]"},g=e=>{try{return c.includes(new URL(e).hostname)}catch(e){return!1}},d=(e,t)=>{if(!g(e))return e;let{desktop_height:r,mobile_height:i}=t||{};if(!r&&!i)return e;try{let t=new URL(e);return r&&t.searchParams.set("heightOverride",String(r)),i&&t.searchParams.set("mobileHeightOverride",String(i)),t.toString()}catch(t){return e}},y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"full_page"===e?"full_page":"module"===e||"in_page"===e?"module":"full_width"===t.width?"full_page":"module"};var p=function(e){let{iframe_url:t,iframe_title:r,layout:n,options:u}=e,h=y(null!=n?n:null==u?void 0:u.layout,u),p=(0,a.useMemo)(()=>d(t,u||{}),[t,u]),v=o(p),b=(0,a.useMemo)(()=>g(p),[p]),_=!1,w=f.reduce((e,t)=>{let r=Number(null==u?void 0:u[t.key]);Number.isFinite(r)&&r>0&&(_=!0);let i=Number.isFinite(r)&&r>0?r:e.last;return i&&(e.style[t.cssVar]="".concat(i,"px")),{last:i||e.last,style:e.style}},{last:0,style:{}}).style,x="number"==typeof v&&v>0,k=!x&&_,N=(0,l.Z)("block w-full border-0",k?"h-[var(--ife-h-base)] sm:h-[var(--ife-h-sm)] md:h-[var(--ife-h-md)] lg:h-[var(--ife-h-lg)] xl:h-[var(--ife-h-xl)] 2xl:h-[var(--ife-h-2xl)]":m[h]);return(0,i.jsxs)(i.Fragment,{children:[b&&(0,i.jsx)(s(),{src:"https://view.ceros.com/scroll-proxy.min.js","data-ceros-origin-domains":c.join(" "),strategy:"lazyOnload"}),(0,i.jsx)("div",{className:(0,l.Z)("iframe-embed","full_page"===h?"iframe-embed--full-page iframe-embed__full-width":"iframe-embed--module container","w-full"),style:k?w:void 0,children:(0,i.jsx)("iframe",{src:p,title:r,loading:"lazy",scrolling:"no",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",className:N,style:x?{height:"".concat(v,"px")}:void 0})})]})}}}]);
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.