1(self.webpackChunkhomepageUi=self.webpackChunkhomepageUi||[]).push([[340],{340(H,f,r){r.d(f,{EmbedAutoHeightDirective:()=>x});var c=r(7705),s=r(5802),o=r(5547),l=r(2271),p=r(3588);function d(e){return!("type"in e)||"size"!==e.type&&"size2portal"!==e.type||!("params"in e)||"object"!=typeof e.params||null===e.params?null:a("height"in e.params?e.params.height:void 0)}function a(e){let n;if("number"==typeof e)n=e;else{if("string"!=typeof e||!/^\d+$/.test(e))return null;n=Number(e)}if(!Number.isFinite(n))return null;const t=Math.ceil(n);return t>0?Math.min(t,1e5):null}let x=(()=>{class e{constructor(){this.cmsEmbedAutoHeight=(0,c.hFB)(""),this.reserveWhileWaiting=(0,c.hFB)(!0),this.frame=(0,s.WQX)(o.aKT),this.pageWindow=(0,s.WQX)(s.qQL).defaultView,this.expectedOrigin=(0,l.EW)(()=>function E(e){if(""===e)return null;try{return new URL(e).origin}catch{return null}}(this.cmsEmbedAutoHeight())),this.heightPx=(0,s.vPA)(null),this.waiting=(0,l.EW)(()=>this.reserveWhileWaiting()&&""!==this.cmsEmbedAutoHeight()&&null===this.heightPx()),this.hasWarnedUnexpectedOrigin=!1;const t=(0,s.WQX)(s.abz);(0,o.mal)(()=>{const i=this.pageWindow;if(null===i)return;const h=new AbortController;t.onDestroy(()=>{h.abort()}),i.addEventListener("message",g=>{const u=this.expectedOrigin();if(null===u||null===g.source||g.source!==this.frame.nativeElement.contentWindow)return;if(g.origin!==u)return void this.warnUnexpectedOrigin(g.origin,u);const m=function b(e){if("string"==typeof e){const n=/^\d+-(\d+)$/.exec(e);if(n)return a(n[1]);if(e.startsWith("{"))try{const t=JSON.parse(e);if("object"==typeof t&&null!==t)return d(t)}catch{}return null}return"object"==typeof e&&null!==e?d(e):null}(g.data);null!==m&&this.heightPx.set(m)},{signal:h.signal})})}requestHeight(){const t=this.expectedOrigin();null!==t&&this.frame.nativeElement.contentWindow?.postMessage("height-0",t)}warnUnexpectedOrigin(t,i){(0,p.LM)()&&!this.hasWarnedUnexpectedOrigin&&(this.hasWarnedUnexpectedOrigin=!0,console.warn(`[cms-externer-inhalt] message from own frame with origin "${t}" \u2014 expected "${i}", message ignored`))}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=o.FsC({type:e,selectors:[["iframe","cmsEmbedAutoHeight",""]],hostVars:4,hostBindings:function(i,h){1&i&&o.bIt("load",function(){return h.requestHeight()}),2&i&&(o.xc7("height",h.heightPx(),"px"),o.AVh("cms-embed-waiting",h.waiting()))},inputs:{cmsEmbedAutoHeight:[1,"cmsEmbedAutoHeight"],reserveWhileWaiting:[1,"reserveWhileWaiting"]}})}}return e})()}}]);
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.