1"use strict";(self.webpackChunk_gp_web_frontend=self.webpackChunk_gp_web_frontend||[]).push([["inline-placement"],{
1"./src/ts/components/inline-placement/inline-placement.ts":(e,t,n)=>{n.r(t),n.d(t,{init:()=>c,inlinePlacementComponent:()=>o});var r=n("../utils/dist/jwplayer/jwplayer-utils.js"),a=n("./src/ts/ads.ts"),i=n("./src/ts/services/cmp.ts");const o=e=>{const t={referenceObject:null,shouldInitialise:e=>{const{page:{category:{pageType:n}}}=window.digitalData;switch(e){case"ad-outstream":if(["post","listfeature","feature","package","event","venue","film"].includes(n)){const e=document.querySelectorAll("#content p"),[,n]=e[Symbol.iterator]();return!!n&&(t.referenceObject=n,!0)}return!!["hub","home"].includes(n)&&(t.referenceObject=document.querySelector("div#inline-placement-ref"),!!t.referenceObject);case"sponsored-listing":return!!["listfeature","feature"].includes(n)&&(t.referenceObject=document.querySelector(".tile:nth-of-type(5)"),!!t.referenceObject);default:return!1}},jwplayerWillLoad:()=>{const e=document.querySelector(".jwplayer-placement .jwplayer"),t=document.querySelector('[data-component="editorial-video"]');return null!==e||null!==t},createOutstreamContainer:async()=>{var e;const n=document.createElement("div");n.id="inline-placement",t.jwplayerWillLoad()&&n.setAttribute("hidden","true");const o=document.createElement("div");o.classList.add("teads-placement"),n.appendChild(o);const{page:{pageInfo:{siteId:c,contentType:l},category:{primaryCategory:s}}}=window.digitalData,d=(0,r.M)({contentType:l,primaryCategory:s,siteId:c})?document.querySelector('[id^="ad-native-2-"]')?document.querySelector('[id^="ad-native-2-"]'):document.querySelector('[id^="ad-native-1-"]'):document.querySelector('[id^="ad-outstream-1-"]');d&&n.appendChild(d),t.referenceObject.insertAdjacentElement("afterend",n);const{storageAllowed:u}=await(0,i.cY)();if(u&&d){const t=null===(e=window.adSlots)||void 0===e?void 0:e.find((e=>e.adContainerId===d.id));t&&(t.loadsAutomatically=!0,(0,a.XQ)([t]))}},moveZonePContainer:()=>{t.referenceObject.insertAdjacentElement("afterend",e)},initialise:e=>{t.shouldInitialise(e)&&("ad-outstream"===e&&t.createOutstreamContainer(),"sponsored-listing"===e&&t.moveZonePContainer())},bindEvents:()=>{const{dataset:{inlineStrategy:n}}=e;return t.initialise(n),{}}};return t},c=e=>{const t=Math.floor(1e4*Math.random());return{listeners:o(e).bindEvents(),componentId:`inline-placement-${t}`}}},
1"../utils/dist/jwplayer/jwplayer-utils.js":(e,t)=>{t.M=void 0,t.M=({contentType:e,primaryCategory:t,siteId:n})=>"uk-worldwide"===n?"cityhome"===e||"travel and hotels (category)"===t:["uk-london","us-newyork"].includes(n)?["cityhome","post"].includes(e)||["things to do (category)","restaurants (category)","bars and pubs (category)"].includes(t):["us-losangeles"].includes(n)}
1}]);
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.