@20minutes/tyr 0.1.44 → 0.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +12509 -12904
- package/dist/index.umd.js +95 -95
- package/dist/js/ads.min.js +1 -0
- package/dist/js/atinternet.min.js +1 -0
- package/dist/js/cmp.min.js +1 -0
- package/dist/js/datalayer.min.js +1 -0
- package/dist/js/gtm.min.js +1 -0
- package/dist/js/thirdParties.min.js +1 -1
- package/dist/templates/HtmlTemplate/HtmlTemplate.d.ts +5 -0
- package/dist/types/ThirdParties/Ads/AdSizesType.d.ts +53 -61
- package/package.json +1 -1
- package/dist/assets/scripts/thirdParties/ads/adSlotsKeyValues.d.ts +0 -1
- package/dist/assets/scripts/thirdParties/ads/dfpAdSlots.d.ts +0 -2
- package/dist/assets/scripts/thirdParties/ads/dfpCall.d.ts +0 -1
- package/dist/assets/scripts/thirdParties/ads/dfpConfig.d.ts +0 -1
- package/dist/assets/scripts/thirdParties/ads/dfpDatalayerAdapter.d.ts +0 -2
- package/dist/assets/scripts/thirdParties/ads/index.d.ts +0 -5
- package/dist/assets/scripts/thirdParties/atinternet/index.d.ts +0 -1
- package/dist/assets/scripts/thirdParties/atinternet/manager.d.ts +0 -10
- package/dist/assets/scripts/thirdParties/atinternet/pageTracking.d.ts +0 -3
- package/dist/assets/scripts/thirdParties/cmp/consentListeners.d.ts +0 -1
- package/dist/assets/scripts/thirdParties/cmp/dailyConsent.d.ts +0 -1
- package/dist/assets/scripts/thirdParties/cmp/index.d.ts +0 -5
- package/dist/assets/scripts/thirdParties/cmp/items.d.ts +0 -3
- package/dist/assets/scripts/thirdParties/cmp/noticeListeners.d.ts +0 -1
- package/dist/assets/scripts/thirdParties/cmp/partnersHandler.d.ts +0 -1
- package/dist/assets/scripts/thirdParties/datalayer.d.ts +0 -3
- package/dist/assets/scripts/thirdParties/gtm/index.d.ts +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){"use strict";const u={desktop:{divers:{BAN_ATF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250], [1600,1200]]",BAN_BTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",BAN_MTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",INREAD:"[[1,1], [300,250], [300,250v], [640,380], [640,380v], [640,533], [640,533v]]",PAVE_ARTICLE:"[[1,1], [300,250]]",PAVE_ATF:"[[1,1], [300,250], [300,600]]",PAVE_BTF:"[[1,1], [300,250], [300,600]]",PAVE_COM:"[[1,1], [300,250]]",PAVE_MTF:"[[1,1], [300,250], [300,600]]"},horoscope:{BAN_ATF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250], [1600,1200]]",BAN_BTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",BAN_MTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",INREAD:"[[1,1], [300,250], [300,250v], [640,380], [640,380v], [640,533], [640,533v]]",PAVE_ARTICLE:"[[1,1], [300,250]]",PAVE_ATF:"[[1,1], [300,250], [300,600]]",PAVE_BTF:"[[1,1], [300,250], [300,600]]",PAVE_COM:"[[1,1], [300,250]]",PAVE_MTF:"[[1,1], [300,250], [300,600]]"}},mobile:{divers:{ARTICLE_ATF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",ARTICLE_BTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",ARTICLE_MTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",HEADER_AD:'[[1,1], [320,50], [320,100], "Fluid"]',INREAD:'[[300,250], [300,250v], [640,380], [640,380v], [640,533], [640,533v], "Fluid"]',INTRASTITIEL_GAG:"[[1,1], [320,480]]",INTRASTITIEL_PROG:"[[1,1], [320,480]]",NFB_1:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",NFB_2:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]"},horoscope:{ARTICLE_ATF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",ARTICLE_BTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",ARTICLE_MTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",HEADER_AD:'[[1,1], [320,50], [320,100], "Fluid"]',INREAD:'[[300,250], [300,250v], [640,380], [640,380v], [640,533], [640,533v], "Fluid"]',INTRASTITIEL_GAG:"[[1,1], [320,480]]",INTRASTITIEL_PROG:"[[1,1], [320,480]]",NFB_1:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",NFB_2:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]"}}};var I=(e=>(e[e.divers=0]="divers",e[e.horoscope=1]="horoscope",e))(I||{}),g=(e=>(e.UNKNOWN="Non connu",e.SLIDESHOW_COVER="Slideshow cover",e.SLIDESHOW_COVER_LISTING_PAGE="Slideshow listing page",e.SLIDESHOW_PAGE="Slideshow page",e.ARTICLE="article",e.MISC="divers",e.HOME="home",e.LIVE="live",e.SECTION="section",e.TAG="tag",e))(g||{}),r=(e=>(e.MISC="divers",e.HOME="home",e.LOCAL="local",e.PLANET="plan\xE8te",e))(r||{}),A=(e=>(e.PAGETYPE="pageType",e.TAGS="tags",e))(A||{});const _=e=>{var t,a,o,d;switch(e){case"pageType":return Object.values(g).includes((t=window.datalayer)==null?void 0:t.page_type)?(a=window.datalayer.page_type)==null?void 0:a.toLowerCase():g.MISC;case"tags":return Object.values(r).includes((o=window.datalayer)==null?void 0:o.tags)?(d=window.datalayer.tags)==null?void 0:d.toLowerCase():r.MISC}return window.datalayer[e]},h=()=>{window.dfp=window.dfp||{},window.dfp.targeting=window.dfp.targeting||{},Object.values(A).forEach(e=>{window.dfp.targeting[e]=_(e)})},S=["nfb_1","nfb_2"],m=e=>{var t;const a=e instanceof Array?e:[e];window.dfp.slots=((t=window.dfp)==null?void 0:t.slots)||[],window.dfp.slots=[...window.dfp.slots,...a]},y=e=>{window.dfp.slotsReady=!1,googletag.cmd.push(()=>{const t=[];document.querySelectorAll("div[data-dfp-path]").forEach(a=>{const o=a.getAttribute("data-dfp-name"),d=a.getAttribute("data-dfp-path"),v=a.getAttribute("id"),s=d?.split("/").filter(l=>l!==""),i=(s?.[1]||null)==="20minutes_desktop"?"desktop":"mobile",c=s?.[s.length-1]||null;if(v&&o&&i&&c){let l;if(l=o&&JSON.parse(u[i][c][o.toUpperCase()])||null,d&&l&&googletag){let n=null;if(S.includes(o)?(n=googletag.defineSlot([d,o].join("/"),l),n!=null&&n.getSlotElementId()&&a.setAttribute("id",n.getSlotElementId())):n=googletag.defineSlot([d,o].join("/"),l,v),!n)return;n.addService(googletag.pubads()),t.push({slotElementId:n.getSlotElementId(),path:d,sizes:JSON.stringify(l)}),Object.entries(e).map(([P,B])=>n?.setTargeting(P,B))}}}),window.dfp.slotsReady=!0,m(t)})};let T=!1,E=0;const b=1500,p="renderAd",L=()=>T||googletag&&googletag.pubadsReady&&window.dfp.slotsReady&&window.dfp.hubvisorEnd,f=e=>{googletag&&googletag.cmd.push(()=>{const t={};googletag.pubads().getSlots().forEach(o=>{t[o.getSlotElementId()]=o});const a=[];e.forEach(o=>{t[o]&&a.push(t[o])}),a.length&&googletag.pubads().refresh(a)})},N=()=>{document.addEventListener(p,e=>{if(!e.target)return;const t=e;t&&t.target.closest("[data-dfp-name]")&&t.detail.length&&f([t.detail[0].id])},!0)},R=()=>{const e=document.querySelectorAll('div[data-dfp-name][data-delayed="true"]');Array.prototype.forEach.call(e,t=>{t.addEventListener(t.getAttribute("id"),function a(){t.dispatchEvent(new CustomEvent(p,{detail:[{id:t.getAttribute("id")}]})),t.removeEventListener(p,a)})})},C=()=>{const e=[],t=document.querySelectorAll('div[data-dfp-name][data-delayed="false"]');t.length>0&&Array.prototype.forEach.call(t,a=>{e.push(a.getAttribute("id"))}),f(e)},w=()=>{C(),R()},F=()=>{const e=setInterval(()=>{if(!L()&&E<b){E+=100;return}clearInterval(e),T=!0,N(),document.readyState!=="loading"?w():window.addEventListener("DOMContentLoaded",()=>{w()})},100)},O=()=>{googletag.cmd.push(()=>{googletag.pubads().setTargeting("lang","fr"),googletag.pubads().setTargeting("dn",window.location.hostname);try{const t=window.location.href.split("?")[1];t&&t.split("&").forEach(a=>{const o=a.split("=");o[0]==="20minutest"&&googletag.pubads().setTargeting(o[0],o[1])})}catch{}googletag.pubads().enableSingleRequest(),googletag.pubads().disableInitialLoad(),googletag.enableServices();const e=Math.max(document.documentElement.clientWidth,window.innerWidth||0);e>=1400?googletag.pubads().setTargeting("screen",["1400","1000"]):e>=1e3&&googletag.pubads().setTargeting("screen","1000")})};(()=>{O(),h(),y(window.dfp.targeting),F()})()})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){"use strict";const y=r=>{const e=document.cookie.split(";").filter(t=>t.indexOf(r)!==-1)[0];return e?e.split("=")[1]:"{}"};function _(r){let e=r;const t="\xE3\xE0\xE1\xE4\xE2\u1EBD\xE8\xE9\xEB\xEA\xEC\xED\xEF\xEE\xF5\xF2\xF3\xF6\xF4\xF9\xFA\xFC\xFB\xF1\xE7\xB7/_,:;",a="aaaaaeeeeeiiiiooooouuuunc------";for(let n=0;n<t.length;n+=1)e=r.replace(new RegExp(t.charAt(n),"g"),a.charAt(n));return e}const o=r=>{let e=r.toLowerCase().replace(/[\s-]+/g,"_");return e=_(e),e.replace(/[^\w-]+/g,"")},g=()=>window.layout||"",i=()=>{const r=new URLSearchParams(window.location.search);return Object.fromEntries(r.entries())},b=(r,e,t=()=>{})=>{performance.mark(`20mn:${r}:Start`);const a=document.getElementsByTagName("script")[0],n=document.createElement("script");n.async=!0,n.src=e,n.onload=()=>{t(),performance.mark(`20mn:${r}:End`)},a&&a.parentNode&&a.parentNode.insertBefore(n,a)};var f=Object.defineProperty,c=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,s=(r,e,t)=>e in r?f(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,l=(r,e)=>{for(var t in e||(e={}))h.call(e,t)&&s(r,t,e[t]);if(c)for(var t of c(e))x.call(e,t)&&s(r,t,e[t]);return r};const v=()=>{const r=window.datalayer,e={};if(e["b:user_darkmode"]=r.darkmode==="1",e["b:user_status"]=r.user_status==="Connecte",e["b:user_status"]){const t=y("20mnUserDataLayer"),a=t?JSON.parse(decodeURIComponent(t)):null;a&&(e["s:user_id"]=String(a.i),Number.isNaN(a.d)||(e["n:user_a"]=parseInt(a.d,10)),Number.isNaN(a.l)||(e["n:user_zip"]=parseInt(a.l,10)),Number.isNaN(a.g)||(e["n:user_g"]=parseInt(a.g,10)))}return e},E=()=>{var r,e,t;const a={},n=i();return("utm_source"in n||"utm_campaign"in n||"utm_medium"in n)&&("utm_source"in n||(a.utm_source=(r=n.utm_medium)!=null?r:n.utm_campaign),"utm_campaign"in n||(a.utm_campaign=(e=n.utm_source)!=null?e:n.utm_medium),"utm_medium"in n||(a.utm_medium=(t=n.utm_source)!=null?t:n.utm_campaign)),a},O=()=>{var r;const e=window.datalayer,t={};t["b:user_adblock"]=!window.adsapp,t["s:page_url_raw"]=window.location.href,t.page_url=window.location.href,e.source_type&&(t["s:content_source"]=e.source_type),e.referrer&&(t["s:misc_referrer"]=e.referrer),t["s:page_type"]=e.page_type||"other";const a=document.querySelector("link[rel='canonical']");if(a&&(t["s:page_canonical"]=(r=a.getAttribute("href"))!=null?r:""),e.chapter4&&(t["s:chapter4"]=e.chapter4),e.page_uri==="/search"){const n=i();t["s:misc_search"]=n.q||""}return l(l({},t),v())};var k=Object.defineProperty,j=Object.defineProperties,N=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,d=(r,e,t)=>e in r?k(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,p=(r,e)=>{for(var t in e||(e={}))P.call(e,t)&&d(r,t,e[t]);if(u)for(var t of u(e))T.call(e,t)&&d(r,t,e[t]);return r},F=(r,e)=>j(r,N(e));const m=()=>{b("ATInternet","https://www.20minutes.fr/js/script-at.js")},w=()=>{window.ATInternet={onTrackerLoad:()=>{var r,e,t;if(window.ATInternet.Tracker){const a=new window.ATInternet.Tracker.Tag;a.privacy.getVisitorMode()===null&&a.privacy.setVisitorMode("cnil","exempt");const n=window.datalayer.article_section?o(window.datalayer.article_section):"";a.page.set({name:window.datalayer.libelle?o(window.datalayer.libelle):"",chapter1:window.datalayer.chapter1?o(window.datalayer.chapter1):n,chapter2:window.datalayer.chapter2?o(window.datalayer.chapter2):"",chapter3:window.datalayer.chapter3?o(window.datalayer.chapter3):"",customObject:{device:g()==="desktop"?"desktop":"smartphone"}}),a.customVars.set({site:{2:(r=window.datalayer.content_id)!=null?r:""}}),a.setProps(F(p(p({},O()),E()),{"b:pageview_with_consent":a.privacy.getVisitorMode().name==="optin","s:site_level2":window.location.hostname}),!0),a.identifiedVisitor.set({id:(e=window.datalayer.ac)!=null?e:"",category:(t=window.datalayer.an)!=null?t:""}),a.dispatch()}}}};(()=>{document.readyState!=="loading"?(w(),m()):window.addEventListener("DOMContentLoaded",()=>{w(),m()})})()})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){"use strict";const p=n=>{const e=document.cookie.split(";").filter(o=>o.indexOf(n)!==-1)[0];return e?e.split("=")[1]:"{}"},i=n=>{const e=[`${n.name}=`,"expires=Thu, 1 Jan 1970 00:00:01 UTC","path=/"];n.domain&&e.push(`domain=${n.domain}`),document.cookie=e.join("; ")},a=n=>{document.cookie.split(";").map(e=>e.split("=")[0].trim()).filter(e=>n.indexOf(e)===-1).forEach(e=>{const{hostname:o}=window.location;i({name:e}),i({name:e,domain:o.substring(o.indexOf(".")+1)}),i({name:e,domain:o.substring(o.indexOf("."))}),i({name:e,domain:`.${o}`})})},d=n=>{for(let e=0;e<sessionStorage.length;e+=1){const o=sessionStorage.key(e);o&&n.indexOf(o)===-1&&sessionStorage.removeItem(o)}},c=n=>{for(let e=0;e<localStorage.length;e+=1){const o=localStorage.key(e);o&&n.indexOf(o)===-1&&localStorage.removeItem(o)}},r=["20mnToken","20mnUserDataLayer","20mnTutorial","20mnUserInfo","20mnUserSession","_vfa","_vfb","_vfz","atauthority","atid","atidvisitor","atidx","atuserid","didomi_token","euconsent-v2","_pbjs_userid_consent_data","osano_consentmanager","osano_consentmanager_expdate","osano_consentmanager_uuid","SESSIDSF","SESSIDSFRM","TCPID","TSTD","ei_client_id","_biz_pendingA","_biz_flagsA","_biz_uid","_biz_nA","ajs_group_id","ajs_user_id","ajs_anonymous_id","TSNGUID","_mkto_trk","JSESSIONID","staging-login_idle_session_timeout","login_service_login_newrelic_com_tokens","login_idle_session_timeout","lang","auth_expiration_timestamp","sticky-scorecast-business-chat","__utna","__utnv","auth_token","PHPSESSID","sticky-scorecast-business-app","sticky-scorecast-prod-app","realm"],m=["_vf_sid","consent_validity_date","20mn-articlesSaved","20mn-font","closedInfo","20mn-known-user","20mn-block-links","20mnBreakingNewsBanner","20mnAppBanner","20mn-visits-content","20minutes-font"],l=["vfThirdpartyCookiesEnabled","com.batch.sessionId","loadIntrasticial"],_=()=>{window.didomiOnReady.push(()=>{let n=new Date;const e=n.getTimezoneOffset();n=new Date(n.getTime()-e*60*1e3);const o=n.toISOString().split("T")[0],t=localStorage.getItem("consent_validity_date");t&&o>t&&(window.Didomi.reset(),localStorage.removeItem("consent_validity_date"),window.disapproveDidomiGTMEvents=!0,a(r),c(m),d(l),window.Didomi.notice.show())})},u=()=>{window.didomiEventListeners.push({event:"notice.clickagree",listener:()=>{console.log("notice.clickagree")}}),window.didomiEventListeners.push({event:"notice.clickmoreinfo",listener:()=>{console.log("notice.clickmoreinfo")}}),window.didomiEventListeners.push({event:"notice.clickdisagree",listener:()=>{console.log("notice.clickdisagree")}})},w=()=>{window.cmpVariables={consentEventsCount:0},window.didomiEventListeners.push({event:"consent.changed",listener:()=>{const n=p("euconsent-v2"),e=window.cmpVariables.consentEventsCount>0?!0:!!n,o=!window.Didomi.getUserConsentStatusForPurpose("Cookies"),t=window.sessionStorage.getItem("cmpModal");e&&!t&&(o&&(a(r),c(m),d(l)),setTimeout(()=>{window.location.reload()})),t&&window.sessionStorage.removeItem("cmpModal"),window.cmpVariables.consentEventsCount+=1}})},g=(n,e,o=()=>{})=>{performance.mark(`20mn:${n}:Start`);const t=document.getElementsByTagName("script")[0],s=document.createElement("script");s.async=!0,s.src=e,s.onload=()=>{o(),performance.mark(`20mn:${n}:End`)},t&&t.parentNode&&t.parentNode.insertBefore(s,t)},v=()=>{window.didomiEventListeners=window.didomiEventListeners||[],window.didomiEventListeners.push({event:"consent.changed",listener:()=>{var n,e;(e=(n=window.ATInternet)==null?void 0:n.Tracker)!=null&&e.instances&&window.ATInternet.Tracker.instances.forEach(o=>{o.privacy.getVisitorMode().name!=="optout"&&(o.privacy.setVisitorMode("cnil","exempt"),window.Didomi.getUserConsentStatusForPurpose("mesureda-6qyqaZXC")&&o.privacy.setVisitorOptin())})}})},S=()=>{window.didomiOnReady=window.didomiOnReady||[];const n=(e,o)=>{o?(e.eventStatus==="tcloaded"||e.eventStatus==="useractioncomplete")&&(g("DFP_init","https://securepubads.g.doubleclick.net/tag/js/gpt.js"),window.__tcfapi&&window.__tcfapi("removeEventListener",2,null,e.listenerId)):console.log("Issue with dfp callback")};window.didomiOnReady.push(()=>{typeof n<"u"&&window.__tcfapi("addEventListener",2,n)})},f=()=>{S(),v()};(()=>{_(),f(),w(),u()})()})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){"use strict";var i=Object.defineProperty,t=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,o=(r,a,e)=>a in r?i(r,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[a]=e,n=(r,a)=>{for(var e in a||(a={}))l.call(a,e)&&o(r,e,a[e]);if(t)for(var e of t(a))d.call(a,e)&&o(r,e,a[e]);return r};const s=()=>{var r;return{page_uri:"/",page_type:((r=window.datalayer)==null?void 0:r.pageType)||"divers"}},u=()=>({darkmode:"0",user_status:document.cookie.match("(^|;)\\s*20mnUserInfo\\s*=\\s*([^;]+)")?"Connecte":"Pas connecte"}),y=()=>{var r,a;return{signature:((r=window.datalayer)==null?void 0:r.signature)||void 0,nbParagraphs:((a=window.datalayer)==null?void 0:a.nbParagraphs)||void 0}},c=({signature:r,nbParagraphs:a}={})=>{window.datalayer=window.datalayer||{},window.datalayer.signature=r||"",a&&(window.datalayer.nbParagraphs=a)},p=()=>{const r=s(),a=u(),e=y();window.datalayer=n(n(n({},r),a),e)};(()=>{c(),p()})()})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(r){"use strict";const l=()=>{var n;return(n=Array.from(document.querySelectorAll(".c-tags--breadcrumb")))==null?void 0:n.reduce((e,a)=>e+a.innerHTML,"")},t=()=>{window.gtmDatalayer=window.gtmDatalayer||[];const n=document.cookie.match("(^|;)\\s*20mnUserDataLayer\\s*=\\s*([^;]+)"),e=n?JSON.parse(decodeURIComponent(n.pop())):null;window.gtmDatalayer=[{page_uri:window.location.pathname,user_status:window.datalayer.user_status,referrer:document.referrer,breadcrumb:l(),user:{d:e?.d||null,g:e?.g||null,i:e?.i||null,l:e?.l||null,o:e?.o||null}}]};return r.initGTMPageConfig=t,Object.defineProperty(r,"__esModule",{value:!0}),r})({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){"use strict";const z={horoscope:{BAN_ATF:"[[1,1], [728,90], [970,90], [970,250], [1000,90], [1000,250], [1600,1200]]",BAN_BTF:"[[1,1], [728,90], [970,90], [970,250], [1000,90], [1000,250]]",PAVE_ATF:"[[1,1], [300,250], [300,600]]",PAVE_MTF:"[[1,1], [300,250], [300,600]]",ARTICLE_BTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",HEADER_AD:"[[1,1], [300,50], [300,100], [320,50], [320,100]]",INTRASTITIEL_GAG:"[[1,1], [320,480]]",INTRASTITIEL_PROG:"[[1,1], [320,480]]"},divers:{BAN_ATF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250], [1600,1200]]",BAN_BTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",BAN_MTF:"[[1,1], [728,90], [970,90], [970,250], [980,250], [1000,90], [1000,250]]",INREAD:"[[1,1], [300,250], [300,250v], [640,380], [640,380v], [640,533], [640,533v]]",PAVE_ARTICLE:"[[1,1], [300,250]]",PAVE_ATF:"[[1,1], [300,250], [300,600]]",PAVE_BTF:"[[1,1], [300,250], [300,600]]",PAVE_COM:"[[1,1], [300,250]]",PAVE_MTF:"[[1,1], [300,250], [300,600]]",ARTICLE_ATF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",ARTICLE_BTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",ARTICLE_MTF:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",HEADER_AD:'[[1,1], [320,50], [320,100], "Fluid"]',INTRASTITIEL_GAG:"[[1,1], [320,480]]",INTRASTITIEL_PROG:"[[1,1], [320,480]]",NFB_1:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]",NFB_2:"[[1,1], [300,50], [300,100], [300,168], [300,250], [320,50], [320,100], [320,480]]"}};var _=(t=>(t.HOROSCOPE="horoscope",t.MISC="divers",t))(_||{}),g=(t=>(t.UNKNOWN="Non connu",t.SLIDESHOW_COVER="Slideshow cover",t.SLIDESHOW_COVER_LISTING_PAGE="Slideshow listing page",t.SLIDESHOW_PAGE="Slideshow page",t.ARTICLE="article",t.MISC="divers",t.HOME="home",t.LIVE="live",t.SECTION="section",t.TAG="tag",t))(g||{}),p=(t=>(t.MISC="divers",t.HOME="home",t.LOCAL="local",t.PLANET="plan\xE8te",t))(p||{}),y=(t=>(t.PAGETYPE="pageType",t.TAGS="tags",t))(y||{});const J=t=>{var e,n,o,a;switch(t){case"pageType":return Object.values(g).includes((e=window.datalayer)==null?void 0:e.page_type)?(n=window.datalayer.page_type)==null?void 0:n.toLowerCase():g.MISC;case"tags":return Object.values(p).includes((o=window.datalayer)==null?void 0:o.tags)?(a=window.datalayer.tags)==null?void 0:a.toLowerCase():p.MISC}return window.datalayer[t]},K=()=>{window.dfp=window.dfp||{},window.dfp.targeting=window.dfp.targeting||{},Object.values(y).forEach(t=>{window.dfp.targeting[t]=J(t)})},W=["nfb_1","nfb_2"],Y=t=>{var e;const n=t instanceof Array?t:[t];window.dfp.slots=((e=window.dfp)==null?void 0:e.slots)||[],window.dfp.slots=[...window.dfp.slots,...n]},Q=t=>{window.dfp.slotsReady=!1;const e=[];googletag.cmd.push(()=>{document.querySelectorAll("div[data-dfp-path]").forEach(n=>{const o=n.getAttribute("data-dfp-name"),a=n.getAttribute("data-dfp-path"),c=n.getAttribute("id"),d=a?.split("/"),q=d?.[d.length-1]||null;if(Object.values(_).includes(q)){const u=o&&JSON.parse(z[q][o.toUpperCase()])||null;if(c&&o&&a&&u&&googletag){let i=null;if(W.includes(o)?(i=googletag.defineSlot([a,o].join("/"),u),i!=null&&i.getSlotElementId()&&n.setAttribute("id",i.getSlotElementId())):i=googletag.defineSlot([a,o].join("/"),u,c),!i)return;i.addService(googletag.pubads()),e.push({slotElementId:i.getSlotElementId(),path:a,sizes:JSON.stringify(u)}),Object.entries(t).map(([Ue,He])=>i?.setTargeting(Ue,He))}}})}),window.dfp.slotsReady=!0,Y(e)};let f=!1,h=0;const X=1500,m="renderAd",Z=()=>f||googletag&&googletag.pubadsReady&&window.dfp.slotsReady&&window.dfp.hubvisorEnd,b=t=>{googletag&&googletag.cmd.push(()=>{const e={};googletag.pubads().getSlots().forEach(o=>{e[o.getSlotElementId()]=o});const n=[];t.forEach(o=>{e[o]&&n.push(e[o])}),n.length&&googletag.pubads().refresh(n)})},ee=()=>{document.addEventListener(m,t=>{if(!t.target)return;const e=t;e&&e.target.closest("[data-dfp-name]")&&e.detail.length&&b([e.detail[0].id])},!0)},te=()=>{const t=document.querySelectorAll('div[data-dfp-name][data-delayed="true"]');Array.prototype.forEach.call(t,e=>{e.addEventListener(e.getAttribute("id"),function n(){e.dispatchEvent(new CustomEvent(m,{detail:[{id:e.getAttribute("id")}]})),e.removeEventListener(m,n)})})},ne=()=>{const t=[],e=document.querySelectorAll('div[data-dfp-name][data-delayed="false"]');e.length>0&&Array.prototype.forEach.call(e,n=>{t.push(n.getAttribute("id"))}),b(t)},E=()=>{ne(),te()},oe=()=>{const t=setInterval(()=>{if(!Z()&&h<X){h+=100;return}clearInterval(t),f=!0,ee(),document.readyState!=="loading"?E():window.addEventListener("DOMContentLoaded",()=>{E()})},100)},ae=()=>{googletag.cmd.push(()=>{googletag.pubads().setTargeting("lang","fr"),googletag.pubads().setTargeting("dn",window.location.hostname);try{const e=window.location.href.split("?")[1];e&&e.split("&").forEach(n=>{const o=n.split("=");o[0]==="20minutest"&&googletag.pubads().setTargeting(o[0],o[1])})}catch{}googletag.pubads().enableSingleRequest(),googletag.pubads().disableInitialLoad(),googletag.enableServices();const t=Math.max(document.documentElement.clientWidth,window.innerWidth||0);t>=1400?googletag.pubads().setTargeting("screen",["1400","1000"]):t>=1e3&&googletag.pubads().setTargeting("screen","1000")})},S=t=>{const e=document.cookie.split(";").filter(n=>n.indexOf(t)!==-1)[0];return e?e.split("=")[1]:"{}"},l=t=>{const e=[`${t.name}=`,"expires=Thu, 1 Jan 1970 00:00:01 UTC","path=/"];t.domain&&e.push(`domain=${t.domain}`),document.cookie=e.join("; ")},T=t=>{document.cookie.split(";").map(e=>e.split("=")[0].trim()).filter(e=>t.indexOf(e)===-1).forEach(e=>{const{hostname:n}=window.location;l({name:e}),l({name:e,domain:n.substring(n.indexOf(".")+1)}),l({name:e,domain:n.substring(n.indexOf("."))}),l({name:e,domain:`.${n}`})})},I=t=>{for(let e=0;e<sessionStorage.length;e+=1){const n=sessionStorage.key(e);n&&t.indexOf(n)===-1&&sessionStorage.removeItem(n)}},A=t=>{for(let e=0;e<localStorage.length;e+=1){const n=localStorage.key(e);n&&t.indexOf(n)===-1&&localStorage.removeItem(n)}};function ie(t){let e=t;const n="\xE3\xE0\xE1\xE4\xE2\u1EBD\xE8\xE9\xEB\xEA\xEC\xED\xEF\xEE\xF5\xF2\xF3\xF6\xF4\xF9\xFA\xFC\xFB\xF1\xE7\xB7/_,:;",o="aaaaaeeeeeiiiiooooouuuunc------";for(let a=0;a<n.length;a+=1)e=t.replace(new RegExp(n.charAt(a),"g"),o.charAt(a));return e}const r=t=>{let e=t.toLowerCase().replace(/[\s-]+/g,"_");return e=ie(e),e.replace(/[^\w-]+/g,"")},re=(t,e=100)=>{const n=t.getBoundingClientRect(),o=window.pageYOffset||document.documentElement.scrollTop,a=Math.max(document.documentElement.clientHeight,window.innerHeight||0),c=o+a,d=n.top+o;return c>d-e},se=()=>window.layout||"",O=()=>{const t=new URLSearchParams(window.location.search);return Object.fromEntries(t.entries())},L=["20mnToken","20mnUserDataLayer","20mnTutorial","20mnUserInfo","20mnUserSession","_vfa","_vfb","_vfz","atauthority","atid","atidvisitor","atidx","atuserid","didomi_token","euconsent-v2","_pbjs_userid_consent_data","osano_consentmanager","osano_consentmanager_expdate","osano_consentmanager_uuid","SESSIDSF","SESSIDSFRM","TCPID","TSTD","ei_client_id","_biz_pendingA","_biz_flagsA","_biz_uid","_biz_nA","ajs_group_id","ajs_user_id","ajs_anonymous_id","TSNGUID","_mkto_trk","JSESSIONID","staging-login_idle_session_timeout","login_service_login_newrelic_com_tokens","login_idle_session_timeout","lang","auth_expiration_timestamp","sticky-scorecast-business-chat","__utna","__utnv","auth_token","PHPSESSID","sticky-scorecast-business-app","sticky-scorecast-prod-app","realm"],C=["_vf_sid","consent_validity_date","20mn-articlesSaved","20mn-font","closedInfo","20mn-known-user","20mn-block-links","20mnBreakingNewsBanner","20mnAppBanner","20mn-visits-content","20minutes-font"],k=["vfThirdpartyCookiesEnabled","com.batch.sessionId","loadIntrasticial"],de=()=>{window.didomiOnReady.push(()=>{let t=new Date;const e=t.getTimezoneOffset();t=new Date(t.getTime()-e*60*1e3);const n=t.toISOString().split("T")[0],o=localStorage.getItem("consent_validity_date");o&&n>o&&(window.Didomi.reset(),localStorage.removeItem("consent_validity_date"),window.disapproveDidomiGTMEvents=!0,T(L),A(C),I(k),window.Didomi.notice.show())})},le=()=>{window.didomiEventListeners.push({event:"notice.clickagree",listener:()=>{console.log("notice.clickagree")}}),window.didomiEventListeners.push({event:"notice.clickmoreinfo",listener:()=>{console.log("notice.clickmoreinfo")}}),window.didomiEventListeners.push({event:"notice.clickdisagree",listener:()=>{console.log("notice.clickdisagree")}})},ce=()=>{window.cmpVariables={consentEventsCount:0},window.didomiEventListeners.push({event:"consent.changed",listener:()=>{const t=S("euconsent-v2"),e=window.cmpVariables.consentEventsCount>0?!0:!!t,n=!window.Didomi.getUserConsentStatusForPurpose("Cookies"),o=window.sessionStorage.getItem("cmpModal");e&&!o&&(n&&(T(L),A(C),I(k)),setTimeout(()=>{window.location.reload()})),o&&window.sessionStorage.removeItem("cmpModal"),window.cmpVariables.consentEventsCount+=1}})},w=(t,e,n=()=>{})=>{performance.mark(`20mn:${t}:Start`);const o=document.getElementsByTagName("script")[0],a=document.createElement("script");a.async=!0,a.src=e,a.onload=()=>{n(),performance.mark(`20mn:${t}:End`)},o&&o.parentNode&&o.parentNode.insertBefore(a,o)},ue=()=>{window.didomiEventListeners=window.didomiEventListeners||[],window.didomiEventListeners.push({event:"consent.changed",listener:()=>{var t,e;(e=(t=window.ATInternet)==null?void 0:t.Tracker)!=null&&e.instances&&window.ATInternet.Tracker.instances.forEach(n=>{n.privacy.getVisitorMode().name!=="optout"&&(n.privacy.setVisitorMode("cnil","exempt"),window.Didomi.getUserConsentStatusForPurpose("mesureda-6qyqaZXC")&&n.privacy.setVisitorOptin())})}})},ge=()=>{window.didomiOnReady=window.didomiOnReady||[];const t=(e,n)=>{n?(e.eventStatus==="tcloaded"||e.eventStatus==="useractioncomplete")&&(w("DFP_init","https://securepubads.g.doubleclick.net/tag/js/gpt.js"),window.__tcfapi&&window.__tcfapi("removeEventListener",2,null,e.listenerId)):console.log("Issue with dfp callback")};window.didomiOnReady.push(()=>{typeof t<"u"&&window.__tcfapi("addEventListener",2,t)})},pe=()=>{ge(),ue()};var me=Object.defineProperty,P=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,D=(t,e,n)=>e in t?me(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,v=(t,e)=>{for(var n in e||(e={}))we.call(e,n)&&D(t,n,e[n]);if(P)for(var n of P(e))ve.call(e,n)&&D(t,n,e[n]);return t};const _e=()=>{var t;return{page_uri:"/",page_type:((t=window.datalayer)==null?void 0:t.pageType)||"divers"}},ye=()=>({darkmode:"0",user_status:document.cookie.match("(^|;)\\s*20mnUserInfo\\s*=\\s*([^;]+)")?"Connecte":"Pas connecte"}),fe=()=>{var t,e;return{signature:((t=window.datalayer)==null?void 0:t.signature)||void 0,nbParagraphs:((e=window.datalayer)==null?void 0:e.nbParagraphs)||void 0}},he=({signature:t,nbParagraphs:e}={})=>{window.datalayer=window.datalayer||{},window.datalayer.signature=t||"",e&&(window.datalayer.nbParagraphs=e)},be=()=>{const t=_e(),e=ye(),n=fe();window.datalayer=v(v(v({},t),e),n)};let s=[],x;const Ee=(t,e)=>{let n=!1;return()=>{n||(t(),n=!0,x=setTimeout(()=>{n=!1},e))}},Se=t=>t.event&&re(t.elem,Number(t.distance))?(t.elem.dispatchEvent(new Event(t.event)),t.elem.dataset.lazyLoaded="true",!1):!0,N=()=>{Ee(()=>{s=s.filter(Se),s.length<=0&&(clearTimeout(x),window.removeEventListener("scroll",N))},50)()},Te=()=>{s.length<=0||window.addEventListener("scroll",N)},Ie=t=>{s.push(t),Te()},$=()=>{document.querySelectorAll('[data-delayed="true"]').forEach(t=>{const e={elem:t,event:t.getAttribute("id"),distance:t.dataset.distanceVisible};Ie(e)})},Ae=()=>{document.readyState!=="loading"?$():window.addEventListener("DOMContentLoaded",()=>{$()})};var Oe=Object.defineProperty,F=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,j=(t,e,n)=>e in t?Oe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e)=>{for(var n in e||(e={}))Le.call(e,n)&&j(t,n,e[n]);if(F)for(var n of F(e))Ce.call(e,n)&&j(t,n,e[n]);return t};const ke=()=>{const t=window.datalayer,e={};if(e["b:user_darkmode"]=t.darkmode==="1",e["b:user_status"]=t.user_status==="Connecte",e["b:user_status"]){const n=S("20mnUserDataLayer"),o=n?JSON.parse(decodeURIComponent(n)):null;o&&(e["s:user_id"]=String(o.i),Number.isNaN(o.d)||(e["n:user_a"]=parseInt(o.d,10)),Number.isNaN(o.l)||(e["n:user_zip"]=parseInt(o.l,10)),Number.isNaN(o.g)||(e["n:user_g"]=parseInt(o.g,10)))}return e},Pe=()=>{var t,e,n;const o={},a=O();return("utm_source"in a||"utm_campaign"in a||"utm_medium"in a)&&("utm_source"in a||(o.utm_source=(t=a.utm_medium)!=null?t:a.utm_campaign),"utm_campaign"in a||(o.utm_campaign=(e=a.utm_source)!=null?e:a.utm_medium),"utm_medium"in a||(o.utm_medium=(n=a.utm_source)!=null?n:a.utm_campaign)),o},De=()=>{var t;const e=window.datalayer,n={};n["b:user_adblock"]=!window.adsapp,n["s:page_url_raw"]=window.location.href,n.page_url=window.location.href,e.source_type&&(n["s:content_source"]=e.source_type),e.referrer&&(n["s:misc_referrer"]=e.referrer),n["s:page_type"]=e.page_type||"other";const o=document.querySelector("link[rel='canonical']");if(o&&(n["s:page_canonical"]=(t=o.getAttribute("href"))!=null?t:""),e.chapter4&&(n["s:chapter4"]=e.chapter4),e.page_uri==="/search"){const a=O();n["s:misc_search"]=a.q||""}return R(R({},n),ke())};var xe=Object.defineProperty,Ne=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,M=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,V=(t,e,n)=>e in t?xe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,B=(t,e)=>{for(var n in e||(e={}))Fe.call(e,n)&&V(t,n,e[n]);if(M)for(var n of M(e))je.call(e,n)&&V(t,n,e[n]);return t},Re=(t,e)=>Ne(t,$e(e));const G=()=>{w("ATInternet","https://www.20minutes.fr/js/script-at.js")},U=()=>{window.ATInternet={onTrackerLoad:()=>{var t,e,n;if(window.ATInternet.Tracker){const o=new window.ATInternet.Tracker.Tag;o.privacy.getVisitorMode()===null&&o.privacy.setVisitorMode("cnil","exempt");const a=window.datalayer.article_section?r(window.datalayer.article_section):"";o.page.set({name:window.datalayer.libelle?r(window.datalayer.libelle):"",chapter1:window.datalayer.chapter1?r(window.datalayer.chapter1):a,chapter2:window.datalayer.chapter2?r(window.datalayer.chapter2):"",chapter3:window.datalayer.chapter3?r(window.datalayer.chapter3):"",customObject:{device:se()==="desktop"?"desktop":"smartphone"}}),o.customVars.set({site:{2:(t=window.datalayer.content_id)!=null?t:""}}),o.setProps(Re(B(B({},De()),Pe()),{"b:pageview_with_consent":o.privacy.getVisitorMode().name==="optin","s:site_level2":window.location.hostname}),!0),o.identifiedVisitor.set({id:(e=window.datalayer.ac)!=null?e:"",category:(n=window.datalayer.an)!=null?n:""}),o.dispatch()}}}},Me=()=>{document.readyState!=="loading"?(U(),G()):window.addEventListener("DOMContentLoaded",()=>{U(),G()})},H=()=>{!document.querySelector(".gcse-search")||w("googlesearch",`https://cse.google.com/cse.js?cx=${window.envVariables.googleSearchCode}`)},Ve=()=>{document.readyState!=="loading"?H():window.addEventListener("DOMContentLoaded",()=>{H()})},Be=()=>{var t;return(t=Array.from(document.querySelectorAll(".c-tags--breadcrumb")))==null?void 0:t.reduce((e,n)=>e+n.innerHTML,"")},Ge=()=>{window.gtmDatalayer=window.gtmDatalayer||[];const t=document.cookie.match("(^|;)\\s*20mnUserDataLayer\\s*=\\s*([^;]+)"),e=t?JSON.parse(decodeURIComponent(t.pop())):null;window.gtmDatalayer=[{page_uri:window.location.pathname,user_status:window.datalayer.user_status,referrer:document.referrer,breadcrumb:Be(),user:{d:e?.d||null,g:e?.g||null,i:e?.i||null,l:e?.l||null,o:e?.o||null}}]};(()=>{he(),be(),Ge(),de(),pe(),ce(),le(),ae(),K(),Q(window.dfp.targeting),oe(),Me(),Ae(),Ve()})()})();
|
|
1
|
+
(function(){"use strict";const l=(e,t=100)=>{const n=e.getBoundingClientRect(),o=window.pageYOffset||document.documentElement.scrollTop,r=Math.max(document.documentElement.clientHeight,window.innerHeight||0),v=o+r,y=n.top+o;return v>y-t};let c=[],d;const m=(e,t)=>{let n=!1;return()=>{n||(e(),n=!0,d=setTimeout(()=>{n=!1},t))}},u=e=>e.event&&l(e.elem,Number(e.distance))?(e.elem.dispatchEvent(new Event(e.event)),e.elem.dataset.lazyLoaded="true",!1):!0,a=()=>{m(()=>{c=c.filter(u),c.length<=0&&(clearTimeout(d),window.removeEventListener("scroll",a))},50)()},g=()=>{c.length<=0||window.addEventListener("scroll",a)},h=e=>{c.push(e),g()},i=()=>{document.querySelectorAll('[data-delayed="true"]').forEach(e=>{const t={elem:e,event:e.getAttribute("id"),distance:e.dataset.distanceVisible};h(t)})},w=()=>{document.readyState!=="loading"?i():window.addEventListener("DOMContentLoaded",()=>{i()})},p=(e,t,n=()=>{})=>{performance.mark(`20mn:${e}:Start`);const o=document.getElementsByTagName("script")[0],r=document.createElement("script");r.async=!0,r.src=t,r.onload=()=>{n(),performance.mark(`20mn:${e}:End`)},o&&o.parentNode&&o.parentNode.insertBefore(r,o)},s=()=>{!document.querySelector(".gcse-search")||p("googlesearch",`https://cse.google.com/cse.js?cx=${window.envVariables.googleSearchCode}`)},E=()=>{document.readyState!=="loading"?s():window.addEventListener("DOMContentLoaded",()=>{s()})};(()=>{w(),E()})()})();
|
|
@@ -20,6 +20,11 @@ export interface HtmlTemplateProps {
|
|
|
20
20
|
didomiScript?: string;
|
|
21
21
|
gtmScript?: string;
|
|
22
22
|
gtmNoScript?: string;
|
|
23
|
+
gtmConfigScript?: string;
|
|
24
|
+
adsScript?: string;
|
|
25
|
+
datalayerScript?: string;
|
|
26
|
+
atinternetScript?: string;
|
|
27
|
+
cmpScript?: string;
|
|
23
28
|
mainInlineScript?: string;
|
|
24
29
|
memberScript?: string;
|
|
25
30
|
adblockScript?: string;
|
|
@@ -1,67 +1,59 @@
|
|
|
1
|
-
declare const miscList: {
|
|
2
|
-
BAN_ATF: string;
|
|
3
|
-
BAN_BTF: string;
|
|
4
|
-
BAN_MTF: string;
|
|
5
|
-
INREAD: string;
|
|
6
|
-
PAVE_ARTICLE: string;
|
|
7
|
-
PAVE_ATF: string;
|
|
8
|
-
PAVE_BTF: string;
|
|
9
|
-
PAVE_COM: string;
|
|
10
|
-
PAVE_MTF: string;
|
|
11
|
-
ARTICLE_ATF: string;
|
|
12
|
-
ARTICLE_BTF: string;
|
|
13
|
-
ARTICLE_MTF: string;
|
|
14
|
-
HEADER_AD: string;
|
|
15
|
-
INTRASTITIEL_GAG: string;
|
|
16
|
-
INTRASTITIEL_PROG: string;
|
|
17
|
-
NFB_1: string;
|
|
18
|
-
NFB_2: string;
|
|
19
|
-
};
|
|
20
|
-
declare const horoscopeList: {
|
|
21
|
-
BAN_ATF: string;
|
|
22
|
-
BAN_BTF: string;
|
|
23
|
-
PAVE_ATF: string;
|
|
24
|
-
PAVE_MTF: string;
|
|
25
|
-
ARTICLE_BTF: string;
|
|
26
|
-
HEADER_AD: string;
|
|
27
|
-
INTRASTITIEL_GAG: string;
|
|
28
|
-
INTRASTITIEL_PROG: string;
|
|
29
|
-
};
|
|
30
1
|
export declare const adSizesList: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
2
|
+
desktop: {
|
|
3
|
+
divers: {
|
|
4
|
+
BAN_ATF: string;
|
|
5
|
+
BAN_BTF: string;
|
|
6
|
+
BAN_MTF: string;
|
|
7
|
+
INREAD: string;
|
|
8
|
+
PAVE_ARTICLE: string;
|
|
9
|
+
PAVE_ATF: string;
|
|
10
|
+
PAVE_BTF: string;
|
|
11
|
+
PAVE_COM: string;
|
|
12
|
+
PAVE_MTF: string;
|
|
13
|
+
};
|
|
14
|
+
horoscope: {
|
|
15
|
+
BAN_ATF: string;
|
|
16
|
+
BAN_BTF: string;
|
|
17
|
+
BAN_MTF: string;
|
|
18
|
+
INREAD: string;
|
|
19
|
+
PAVE_ARTICLE: string;
|
|
20
|
+
PAVE_ATF: string;
|
|
21
|
+
PAVE_BTF: string;
|
|
22
|
+
PAVE_COM: string;
|
|
23
|
+
PAVE_MTF: string;
|
|
24
|
+
};
|
|
40
25
|
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
26
|
+
mobile: {
|
|
27
|
+
divers: {
|
|
28
|
+
ARTICLE_ATF: string;
|
|
29
|
+
ARTICLE_BTF: string;
|
|
30
|
+
ARTICLE_MTF: string;
|
|
31
|
+
HEADER_AD: string;
|
|
32
|
+
INREAD: string;
|
|
33
|
+
INTRASTITIEL_GAG: string;
|
|
34
|
+
INTRASTITIEL_PROG: string;
|
|
35
|
+
NFB_1: string;
|
|
36
|
+
NFB_2: string;
|
|
37
|
+
};
|
|
38
|
+
horoscope: {
|
|
39
|
+
ARTICLE_ATF: string;
|
|
40
|
+
ARTICLE_BTF: string;
|
|
41
|
+
ARTICLE_MTF: string;
|
|
42
|
+
HEADER_AD: string;
|
|
43
|
+
INREAD: string;
|
|
44
|
+
INTRASTITIEL_GAG: string;
|
|
45
|
+
INTRASTITIEL_PROG: string;
|
|
46
|
+
NFB_1: string;
|
|
47
|
+
NFB_2: string;
|
|
48
|
+
};
|
|
59
49
|
};
|
|
60
50
|
};
|
|
61
51
|
export declare enum AdPagesTypeEnum {
|
|
62
|
-
|
|
63
|
-
|
|
52
|
+
'divers' = 0,
|
|
53
|
+
'horoscope' = 1
|
|
64
54
|
}
|
|
65
|
-
export declare type AdSizesType =
|
|
66
|
-
|
|
67
|
-
|
|
55
|
+
export declare type AdSizesType = {
|
|
56
|
+
desktop: keyof typeof adSizesList['desktop']['divers'] & keyof typeof adSizesList['desktop']['horoscope'];
|
|
57
|
+
mobile: keyof typeof adSizesList['mobile']['divers'] & keyof typeof adSizesList['mobile']['horoscope'];
|
|
58
|
+
};
|
|
59
|
+
export declare type AdPagesType = keyof typeof AdPagesTypeEnum;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const setAdSlotsKeyValues: () => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const callDfp: () => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const setDfpConfig: () => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './pageTracking';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare type SocialProps = {
|
|
2
|
-
utm_source: string;
|
|
3
|
-
utm_campaign: string;
|
|
4
|
-
utm_medium: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const manageSocialProps: () => Partial<SocialProps>;
|
|
7
|
-
export declare const manageDefaultCustomProps: () => {
|
|
8
|
-
[x: string]: string | number | boolean;
|
|
9
|
-
};
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const initCommonListeners: () => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const dailyConsentHandler: () => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const initNoticeListeners: () => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const connectPartnersToCmp: () => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const initGTMPageConfig: () => void;
|