1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="85f8e2c8-86c3-5e03-a77a-76a98f032ded")}catch(e){}}(); 2import{S as T,a as B,Q as L}from"./modal.es-koqxDcNR.js";import{s as E}from"./index.es-3bae9036-DabXsto1.js";import{d as I,C as q,c,A as w,b as A,o as l,f as i,v as h,F as U,B as j}from"./index-XWCV5II-.js";const R=["src"],S=["href"],x=["src"],F=I({__name:"TopBrandingCreative",props:{otherData:{type:Object,required:!0},analyticsData:{type:Object,required:!0}},setup(g){const e=g,u={top:"top",left:"left",right:"right"},n=q("rootElement");let o;const v=c(()=>e.otherData.html),m=c(()=>{var t;const a=[];return(t=e.otherData.imptrackers)!=null&&t.length&&e.otherData.imptrackers.forEach(r=>a.push(r)),e.otherData.impresssionTrackingUrl&&a.push(e.otherData.impresssionTrackingUrl),e.otherData.impresssionTrackingUrl2&&a.push(e.otherData.impresssionTrackingUrl2),a}),f=c(()=>!!m.value.length),d=c(()=>e.otherData.referrerRequired?E(e.otherData.clickThrough):e.otherData.clickThrough),k=(t,a)=>{t&&(document.body.style.backgroundImage=`url('${t}')`),a&&(document.body.style.backgroundColor=a),document.body.classList.add("branding-page"),document.body.classList.add("branding_dfp"),document.body.classList.remove("not_branding")};function y(t){const a=t.pageY>306,r=window.innerWidth/2,s=t.pageX<r;return a?a&&(a&&s)?u.left:u.right:u.top}const b=()=>{if(!n.value||!e.analyticsData.id)return;const t=new B(d.value);o=L({analyticsDataId:e.analyticsData.id,analyticsDataExtraProvider:t}),o?.sendViewAnalytics(n.value)};function D(t){if(!o||!n.value)return;const a={place_click:y(t)};o.sendClickAnalytics(n.value,a)}function C(){!o||!n.value||o.sendRealImpressionAnalytics(n.value)}function _(){e.otherData.unescapeClick&&fetch(e.otherData.unescapeClick)}return w(()=>{var t,a,r;const s=((t=e.otherData)==null?void 0:t.backgroundColor)||((a=e.otherData)==null?void 0:a.bgColor),p=(r=e.otherData)==null?void 0:r.brandingImage;document.body&&k(p,s)}),A(()=>{b(),C()}),(t,a)=>(l(),i("div",{ref_key:"rootElement",ref:n,onClick:D},[v.value?(l(),i("iframe",{key:0,class:"branding-creative branding-creative--html",src:e.otherData.html},null,8,R)):h("",!0),d.value?(l(),i("a",{key:1,class:"branding-creative branding-creative--light",href:d.value,target:"_blank",onClick:_},null,8,S)):h("",!0),f.value?(l(!0),i(U,{key:2},j(m.value,(r,s)=>(l(),i("img",{key:s,src:r,alt:"",style:{display:"none"}},null,8,x))),128)):h("",!0)],512))}}),Q=T(F,[["__scopeId","data-v-6571fa60"]]);export{Q as default}; 3//# debugId=85f8e2c8-86c3-5e03-a77a-76a98f032ded
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.