PageSourceSearch

https://univarta.com/chunk-5PT3UO6A.js

js univarta.com collected 2026-10-02 10:04:34 UTC 5,165 bytes, 1 lines download raw bytes

1import{j as I}from"./chunk-JZ3DYTF3.js";import{a as E}from"./chunk-33ETZXUA.js";import{p as f}from"./chunk-ZWPYZVPJ.js";import{Ab as C,Bb as g,Cb as A,Db as S,Eb as P,Ma as c,Mb as a,Pa as _,Ua as x,Ub as M,Vb as O,W as o,Yb as D,bb as p,fa as l,ma as v,oa as w,rb as u,sb as r,tb as m,tc as b,wa as s,xc as H,yb as d,yc as R,zb as y}from"./chunk-GSPIL6H6.js";function T(i){let t=i.trim();return t?/^<!DOCTYPE\s+/i.test(t)||/^<html[\s>/]/i.test(t)?t:`<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><style>html,body{margin:0;padding:0;width:100%;max-width:100%;box-sizing:border-box;}body{min-height:2rem;overflow:auto;display:flex;justify-content:center;align-items:flex-start;}</style></head><body>${i}</body></html>`:""}var z=["frame"],h=class i{htmlContent=H.required();frameRef=R("frame");platformId=o(s);destroyRef=o(l);constructor(){let t;x(()=>{f(this.platformId)&&(t=w(()=>{let e=this.frameRef()?.nativeElement;if(!e)return;let n=this.htmlContent()?.trim()??"";if(!n){e.removeAttribute("srcdoc"),e.srcdoc="";return}e.srcdoc=T(n)}))}),this.destroyRef.onDestroy(()=>{t?.destroy();let e=this.frameRef()?.nativeElement;e&&(e.srcdoc="",e.removeAttribute("srcdoc"))})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=p({type:i,selectors:[["app-homepage-ad-script-frame"]],viewQuery:function(e,n){e&1&&M(n.frameRef,z,5),e&2&&O()},inputs:{htmlContent:[1,"htmlContent"]},decls:3,vars:0,consts:[["frame",""],[1,"homepage-ad-script-frame"],["title","Advertisement","loading","lazy","referrerpolicy","no-referrer-when-downgrade","sandbox","allow-scripts allow-same-origin",1,"homepage-ad-script-frame__iframe"]],template:function(e,n){e&1&&(A(0,"div",1),P(1,"iframe",2,0),S())},styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}.homepage-ad-script-frame[_ngcontent-%COMP%]{width:100%;height:100%}.homepage-ad-script-frame__iframe[_ngcontent-%COMP%]{width:100%;height:100%;min-height:0;border:0;display:block}"]})};function L(i,t){if(i&1&&g(0,"app-homepage-ad-script-frame",2),i&2){let e=a(2);d("htmlContent",e.google_ad_script)}}function j(i,t){if(i&1&&r(0,L,1,1,"app-homepage-ad-script-frame",2),i&2){let e=a(3);m(e.showScriptFrame()?0:-1)}}function U(i,t){if(i&1&&(y(0,"a",3),g(1,"img",4),C()),i&2){let e=a(2);d("href",e.content_url.trim(),c),_(),d("src",e.image_src.trim(),c),u("alt",(e.image_alt==null?null:e.image_alt.trim())||"Advertisement")}}function K(i,t){if(i&1&&g(0,"img",4),i&2){let e=a(2);d("src",e.image_src.trim(),c),u("alt",(e.image_alt==null?null:e.image_alt.trim())||"Advertisement")}}function B(i,t){if(i&1&&r(0,U,2,3,"a",3)(1,K,1,2,"img",4),i&2){let e=a();m(e.content_url!=null&&e.content_url.trim()?0:1)}}function Q(i,t){if(i&1&&r(0,j,1,1)(1,B,2,1),i&2){let e=t;m((e.creative_type||"").toLowerCase()==="script"?0:e.image_src!=null&&e.image_src.trim()?1:-1)}}function $(i,t){if(i&1&&(y(0,"div",1),r(1,Q,2,1),C()),i&2){let e,n=a();D("homepage-ad--sidebar",n.layout==="sidebar"),_(),m((e=n.creative())?1:-1,e)}}var q=2,F=class i{slotKey;layout="banner";ads=o(I);destroyRef=o(l);platformId=o(s);creative=v(null);hasRenderablePayload=b(()=>{let t=this.creative();return t?(t.creative_type||"").toLowerCase()==="script"?!!t.google_ad_script?.trim():!!t.image_src?.trim():!1});showScriptFrame=b(()=>{let t=this.creative();return t?(t.creative_type||"").toLowerCase()==="script"&&!!t.google_ad_script?.trim():!1});ngOnInit(){f(this.platformId)&&this.ads.getHomepageAds(q).pipe(E(this.destroyRef)).subscribe({next:t=>this.creative.set(t.slots[this.slotKey]??null),error:()=>this.creative.set(null)})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=p({type:i,selectors:[["app-homepage-ad-slot"]],inputs:{slotKey:"slotKey",layout:"layout"},decls:1,vars:1,consts:[["role","region","aria-label","Advertisement",1,"homepage-ad","top-ad",3,"homepage-ad--sidebar"],["role","region","aria-label","Advertisement",1,"homepage-ad","top-ad"],[3,"htmlContent"],["target","_blank","rel","nofollow sponsored noopener noreferrer",1,"homepage-ad__link",3,"href"],["loading","lazy","decoding","async",1,"homepage-ad__img",3,"src"]],template:function(e,n){e&1&&r(0,$,2,3,"div",0),e&2&&m(n.hasRenderablePayload()?0:-1)},dependencies:[h],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:contents}.homepage-ad[_ngcontent-%COMP%]{width:55.556vw;height:6.25vw;margin:2.083vw 22.222vw;box-sizing:border-box;overflow:hidden;display:flex;align-items:stretch}.homepage-ad[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1;min-height:0}.homepage-ad__link[_ngcontent-%COMP%]{display:block;width:100%;height:100%}.homepage-ad__img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:fill;object-position:center;display:block}.homepage-ad--sidebar[_ngcontent-%COMP%]{width:100%;height:auto;margin:0;min-height:0}.homepage-ad--sidebar[_ngcontent-%COMP%]   .homepage-ad__img[_ngcontent-%COMP%]{width:100%;height:auto;max-height:17.361vw;object-fit:contain}
1@media(max-width:490px){.homepage-ad[_ngcontent-%COMP%]{width:calc(100% - 6.154vw);height:12.308vw;margin:3.077vw}.homepage-ad.top-ad[_ngcontent-%COMP%]{margin:0 3.077vw 5.128vw}}'],changeDetection:0})};export{F as a};

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.