PageSourceSearch

https://assets.allocine.fr/js/website/script-03.3a605b397e6f273356c5.js

js allocine.fr collected 2026-09-24 08:31:05 UTC 8,901 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkallocine_js=self.webpackChunkallocine_js||[]).push([[4812],{24700:function(t,e,n){n.r(e),n.d(e,{createPosition:function(){return Y},getClientConfiguration:function(){return Z},getPostrollAsVideoConfiguration:function(){return tt},getPostrollConfiguration:function(){return X},getPrerollConfiguration:function(){return W},init:function(){return G},refreshAds:function(){return U},removePosition:function(){return H}});var o=n(89955),i=n(76191),s=n(85113),a=n(34403),r=n(2434),d=n(2472),l=n(6147),c=n.n(l);Object.defineProperty(p,"name",{value:"default",configurable:!0});let u=!1;function p(t,e=null,n={}){if(u&&"function"==typeof e)return e(),!1;if(u)return!1;const o=`https://cdn.lib.getjad.io/library/${t.network}/${t.site}`;c()(o,n,(()=>{u=!0,"function"==typeof e&&e()}))}var g=n(9276),m=n(22380),w=n(49501),f=n(56902),h=n(38134),_=n(20994),y=n(92022),j=n(2470),b=n(64522);const E=Math.round(1e10*Math.random());let $=window.JadIds;const v=window.JadConfig,C=v?.cmpPaywall,A=v?.adsMapping,P=v?.wemass,I=window.dataLayerJan,O=["jad_session_no_position=all","jad_no_position=all"],D=document.getElementsByClassName("js-autopromo")[0],B=document.getElementsByClassName("js-inread")[0];let T,N,S;o.ch?(T=document.getElementsByClassName("js-sticky-atf")[0],N=document.getElementsByClassName("js-sticky-mtf")[0],S=document.getElementsByClassName("js-sticky-btf")[0]):(T=document.getElementsByClassName("js-atf")[0],N=document.getElementsByClassName("js-mtf")[0],S=document.getElementsByClassName("js-btf")[0]);const k=[i.vT,i.rL,i.Yb,i.Ob],x=[T,N,S,D];let J,R,M=v?.["tag-id"],L=!1,Q=!1;const q=(t,e)=>{const n=[];return Object.entries(e??{}).forEach((([e,o])=>{o&&-1!==t.indexOf(o)&&n.push(e)})),n},F=async(t=null)=>{if(L)return"function"==typeof t&&t(),!1;L=!0,o.n8&&"generic_universe"!==v?.targeting?.site_section&&(M=await(0,r.DQ)(M));const e=M?.split("/"),n={network:e?.[1],site:e?.[2]};J=`${M}${v?.["tag-other-levels"]}`;const i=await(async t=>{let e={...t};const n=document.location.hash;if(n){const t=n.split("#")[1].split("=");t.length&&(e[t[0]]=t[1])}const i=(0,r.Yp)();e={...e,...i.length?{mics_webediaMics:i}:{}},e={...e};const s=(0,r.if)();if(e={...e,...s?{bluekai:[s]}:{}},e={...e,...R?{content_height_case:`${R}`}:{},...window.bottom_ads_detected?{bottom_ads_detected:"true"}:{}},o.DU){let t=null;await(0,r.qf)().then((e=>{t=e})),e={...e,...t??{}}}return e})({...v?.targeting?v.targeting:{}});let a={page:`${J}`,targeting:i};if(C&&(a={...a,cmp:{...C}}),P&&(a={...a,wemass:{targeting:{page:{type:I?.site_route,content:{categories:[I?.content_category]},article:{id:I?.content_id,title:I?.content_title,description:I?.content_description??"",topics:v?.targeting?.keywords??[],authors:[I?.content_author_name??[]],publishedAt:I?.content_publication_date?new Date(I.content_publication_date).toISOString():"",premium:I?.content_premium??!1,wordCount:I?.content_word_count??null,paragraphCount:I?.content_paragraph_count??null,section:I?.content_type??"",subsection:I?.content_sub_category??""},user:{type:I?.content_user_type??"",age:I?.content_age??null,gender:I?.content_gender??""}}}}}),$?.length){const t=(0,m.Jc)(s.tz)?21600:43200;a={...a,debug:!1,elementsMapping:{...A},pagePositions:[...q($,A)],interstitialOnFirstPageEnabled:!0,minRefreshTime:5,autoRefreshEnabled:v?.autoRefresh,hashedId:{sha256email:localStorage.getItem("_hid_")},cappingByPosition:v?.customInterstitialCapping?[{position:"interstitial",ttl:t,limit:1}]:null}}p(n,(()=>{Q||(window.jad?.cmd?.push((()=>{window.jad?.public?.setConfig(a),window.jad?.public?.loadPositions()})),Q=!0,d.A.emit(d.$.JAD_LOADED)),t&&t()}))},U=(t,e=[])=>{if(void 0===window.jad||void 0===window.jad.public)return!1;const n=[];let o=[];if(t.advertisementTargets.length&&(t.advertisementTargets.forEach((t=>{const e=`dfp-${t}`;n.push(e)})),o=q(n,A)),Array.isArray(e)&&e.length){const t=[];e.forEach(((e,n)=>{t.push(`${o[n]}/${e}`)})),o=t}o.length&&window.jad.cmd?.push((()=>{window.jad?.public?.refreshAds(o)}))},Y=(t,e,n=!0)=>{if(!t||!e)return;const o=`dfp-${t}`;let i=(0,b.Kg)(e)?e:e.id;if(n){const t=document.createElement("div");t.id=o,(0,b.sb)(e)?e.appendChild(t):document.getElementById(e)?.appendChild(t),i=o}window.jad?.cmd?.push((()=>{window.jad?.public?.createNewPosition({name:q([o],A)[0],divId:i})})),U({advertisementTargets:[t]},[i])},z=()=>{if(void 0===window.jad||void 0===window.jad.public)return!1;window.jad.public.addEventListener("positionRenderEnded",(t=>{if(!t)return;const e=document.getElementById(t.slot.getSlotElementId());e&&(t.isEmpty||t.advertiserId===i.Yw?e.parentElement?.parentElement&&(0,g.vy)(e.parentElement.parentElement,i.Vq):((0,g.iQ)(e,"filled"),-1!==["dfp-atf","dfp-btf","dfp-mtf"].indexOf(t.slot.getSlotElementId())&&((0,g.iQ)(e,"ad-titled"),e.setAttribute("data-title",(0,y.default)("ads_placeholder.title"))),"dfp-masthead"==t.slot.getSlotElementId()&&e.parentElement&&(0,g.iQ)(e.parentElement,"children-filled")))})),(0,r.WE)(),(()=>{const t=document.getElementsByClassName("js-added-ad");if(!t.length)return;for(const e of t)(0,g.iQ)(e,"added-ad");const e={rootMargin:2*window.innerHeight+"px"};(0,j.z)([...t],(t=>{Y("added-ad",t.id,!1)}),e)})(),window.jad.cmd?.push((()=>{window.jad?.public?.displayPositions()}))},G=t=>
1{if(i.BX!==a.U.JAD_SYSTEM_CODE||!$||!$.length)return(0,w.O)()||console.warn('Jad or "wrapper V2" (using Dfp adserver) display init not engaged'),t(),!1;window.jad=window.jad||{},window.jad.cmd=window.jad.cmd||[],F(),function(){let t="all"===window.sessionStorage.getItem("jad_session_no_position");return!!t||(O.forEach((e=>{-1===document.location.hash.indexOf(e)||(t=!0)})),t)}()&&(0,g.iQ)(document.body,"jad-no-position"),d.A.on(d.$.ASYNCHRONOUS_PAGE_CHANGE,U),i.jp&&(0,m.Jc)(s.tz)&&($=(0,r.Fb)($,["dfp-pulse"])),(async()=>{if(!$||!$.length||!v)return(0,w.O)()||console.warn("DFP setDisplayAds error either JAD_LIST_ID or JAD_CONFIG_PAGE is missing or empty"),!1;R=(0,r.Ch)([document.getElementById("article-container"),document.getElementById("article-title")]),(0,r.tK)({news:i.jp,slideshow:i.Ig,longread:i._P},B,x,k)})().then((()=>{t(),Q?z():d.A.on(d.$.JAD_LOADED,z)}))},H=(t,e)=>{if(!t||!e||!e.firstChild)return;const n=e.firstChild;if((0,b.sb)(n)){const e=n.id,o=q([e],A)[0];window.jad?.cmd?.push((()=>{window.jad?.public?.removePosition(`${o}/${e}`)})),U({advertisementTargets:[t]},[e])}},V=()=>new Promise((t=>{L?t():F((()=>{t()}))})),K=async(t,e,n)=>{let s=e;return e||(s="playercontent"),new Promise((e=>{const a=`${t}_${s}`;if(v&&M)if("/embed"!==v["tag-other-levels"])V().then((()=>{const t=`${a}/${a}`;window.jad?.cmd?.push((()=>{window.jad?.public?.setTargetingOnPosition(a,{...n}),window.jad?.public?.getDailymotionAdsParamsForScript([`${t}`],(n=>{e(n[`${t}`])}))}))}));else{const n=((t,e)=>{const n=["fallback=true"];if(t.targeting)for(const[e,o]of Object.entries(t.targeting))n.push(`${e}=${o}`);if(o.d$){const s=(0,f.A)({url:window.location.href,correlator:E,description_url:window.location.href,vpos:e,iu:`${M}${t["tag-other-levels"]}`,sz:o.d$?"480x360|480x361|480x270|640x480|640x360":"480x360|480x361",env:"vp",gdfp_req:"1",impl:"s",output:"vast",unviewed_position_start:1,cust_params:n.join("&")});return`${i.fp}${s?"?"+s:""}`}{const e=`${t["tag-id"]}${t["tag-other-levels"]}`;return`${encodeURIComponent(e)}/${encodeURIComponent(n.join("&"))}`}})(v,t);e(n)}else e(!1)}))},W=async t=>{let e=!1;const n=(0,h.A)(t,["videos","0"]);if(t.partner&&!1===t.partner.preRoll)return{tag:i.qA};const o={},s=(0,h.A)(n,["duration"]),a=s&&"string"==typeof s?s.split(":"):null;let d=null;a?d=60*+a[0]*60+60*+a[1]+ +a[2]:s&&!a&&(d=parseInt(s,10)),(0,_.A)(d)&&(o.duration_steps=[`${(0,r.sT)(d)}`]);try{e=await K("preroll",t.player_position,o)}catch(t){console.warn("getPrerollConfiguration error : ",t)}return{tag:e}},X=async t=>{let e=!1;if(t.partner&&!t.partner.postRoll)return{tag:i.qA};try{e=await K("postroll",t.player_position,{})}catch(t){console.warn("getPostrollConfiguration error : ",t)}return{tag:e}},Z=()=>({system:"wbads",client:"googima",adscheduleid:"randomstring",vpaidcontrols:!0,vpaidmode:"insecure"}),tt=async t=>t.partner&&!t.partner.postRoll?Promise.resolve({}):new Promise((e=>{V().then((()=>{window.jad?.cmd?.push((()=>{(t=>{if(t.videos?.length){const e=t.videos[0],n={},o=(e.countries??[]).reduce(((t,e)=>e?.id?[...t,`${e.id}`]:t),[]);o.length&&(n.nationality=o),e.genresIds&&e.genresIds.length&&(n.genre=e.genresIds.map((t=>`${t}`))),e.relatedEntityId&&(n[`${e.relatedEntityType}_id`]=[`${e.relatedEntityId}`]),window.jad?.public?.setTargetingOnPosition("trailer",n)}})(t),(t=>{let e=!1;const n=n=>{e||(e=!0,t({type:"jad",postroll:n??[]}))},o=window.setTimeout(n,5e3);v&&"/embed"===v["tag-other-levels"]&&(window.jad?.public?.loadPositions(),window.jad?.public?.displayPositions()),window.jad?.public?.getTrailers((t=>{clearTimeout(o),n(t)}))})(e)}))}))}))}}]);
2//# sourceMappingURL=script-03.3a605b397e6f273356c5.js.map

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.