@20minutes/tyr 2.43.6 → 2.43.7

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.
Files changed (33) hide show
  1. package/dist/assets/partners/layoutContract.d.ts +18 -0
  2. package/dist/assets/thirdParties/tracking/partnerTrackingOverrides.d.ts +1 -1
  3. package/dist/components/atoms/Misc/Scripts/globals.d.ts +1 -0
  4. package/dist/components/organisms/ArticlePage/BlockedContentBlock/BlockedContentBlock.d.ts +2 -0
  5. package/dist/components/organisms/ArticlePage/BlockedContentBlockMinified/BlockedContentBlockMinified.d.ts +2 -0
  6. package/dist/css/articlePage-desktop-critical.css +1 -1
  7. package/dist/css/articlePage-desktop-no-critical.css +1 -1
  8. package/dist/css/articlePage-mobile-critical.css +1 -1
  9. package/dist/css/articlePage-mobile-no-critical.css +1 -1
  10. package/dist/css/gamePage-desktop-critical.css +1 -1
  11. package/dist/css/gamePage-desktop-no-critical.css +1 -1
  12. package/dist/css/gamePage-mobile-critical.css +1 -1
  13. package/dist/css/gamePage-mobile-no-critical.css +1 -1
  14. package/dist/css/gameappPage-mobile-critical.css +1 -1
  15. package/dist/css/gameappPage-mobile-no-critical.css +1 -1
  16. package/dist/css/livePage-desktop-critical.css +1 -1
  17. package/dist/css/livePage-desktop-no-critical.css +1 -1
  18. package/dist/css/livePage-mobile-critical.css +1 -1
  19. package/dist/css/livePage-mobile-no-critical.css +1 -1
  20. package/dist/css/trafficPage-desktop-critical.css +1 -1
  21. package/dist/css/trafficPage-desktop-no-critical.css +1 -1
  22. package/dist/css/trafficPage-mobile-critical.css +1 -1
  23. package/dist/css/trafficPage-mobile-no-critical.css +1 -1
  24. package/dist/index.es.js +12302 -12201
  25. package/dist/index.umd.js +74 -74
  26. package/dist/js/cmp.min.js +2 -2
  27. package/dist/js/main.min.js +3 -3
  28. package/dist/js/partner-tracking-overrides.min.js +1 -1
  29. package/dist/js/piano.min.js +1 -1
  30. package/dist/templates/HtmlTemplate/HtmlTemplate.d.ts +1 -1
  31. package/dist/types/ThirdParties/Helpers.d.ts +0 -1
  32. package/dist/types/graphql-schema.d.ts +2 -15
  33. package/package.json +6 -6
@@ -1,2 +1,2 @@
1
- !function(){"use strict";var e=(e=>(e.ARCHIVE_BY_DAY="archivebyday",e.ARCHIVE_BY_YEAR="archivebyyear",e.ARTICLE="article",e.ASTRO="astro",e.ASTRO_HOME="astrohome",e.CONTACT="contact",e.DIRECT="direct",e.ELECTIONS="elections",e.ELECTIONSHOME="electionshome",e.GAME="game",e.GAME_APP="gameapp",e.GAMEHOME="gamehome",e.HOME="home",e.JOB_DETAILS="jobdetails",e.JOBS="jobs",e.JOURNALIST="journalist",e.LA21E="la21e",e.LEGAL="legal",e.LEGALNOTICE="legalnotice",e.LEGALNOTICEHOME="legalnoticehome",e.LEGALNOTICEDEPARTMENT="legalnoticedepartment",e.LIVE="live",e.MOBILE_APPS="mobileapps",e.MOST_COMMENTED="mostcommented",e.MOST_READ="mostread",e.MOST_SHARED="mostshared",e.MOST_VIEWED="mostviewed",e.MOVIES="movies",e.NEWS="news",e.PARTNER="partner",e.PROGRAMME_TV_CHANNEL="programmetvchannel",e.PROGRAMME_TV_HOME="programmetvhome",e.PROGRAMME_TV_NOW="programmetvnow",e.PROGRAMME_TV_PROGRAM="programmetvprogram",e.PROGRAMME_TV_TOMORROW="programmetvtomorrow",e.REWIND="rewind",e.SEARCH="search",e.SECTION="section",e.SERVICE="service",e.SITEMAP="sitemap",e.SPORT="sport",e.STORY="story",e.TAG="tag",e.TRAFFIC="traffic",e.TV_HOME="tvhome",e.TV_LIVE="tvlive",e.TV_MOST_RECENT="tvmostrecent",e.TV_MOST_VIEWED="tvmostviewed",e.TV_SHOW="tvshow",e.TV_SHOWS="tvshows",e.TV_VIDEO="tvvideo",e.WEATHER="weather",e))(e||{});const t=["breadcrumb","contentSource","contentTitle","pageKey","pageName","pageUri","sectionLabel","subType","tagsSlug"],a=["chapter1","chapter2","chapter3","chapter4","name","pageType"],r=["chapter1","chapter2","chapter3","chapter4"],o=new Set(Object.values(e)),n=e=>"object"==typeof e&&null!==e,c=(e,t)=>Object.fromEntries(t.flatMap(t=>"string"==typeof e[t]?[[t,e[t]]]:[])),i=e=>{if(!n(e)||!n(e.meta))return;const r="string"==typeof e.meta.source?e.meta.source:void 0;if(!r||1!==e.meta.version||!1===e.meta.enabled)return;const i={meta:{enabled:!0===e.meta.enabled||void 0,source:r,version:1}};if(n(e.datalayer)){const a={...c(e.datalayer,t.filter(e=>"breadcrumb"!==e&&"pageName"!==e))};"string"==typeof e.datalayer.pageName&&o.has(e.datalayer.pageName)&&(a.pageName=e.datalayer.pageName),Array.isArray(e.datalayer.breadcrumb)&&e.datalayer.breadcrumb.every(e=>"string"==typeof e)&&(a.breadcrumb=e.datalayer.breadcrumb),Object.keys(a).length>0&&(i.datalayer=a)}if(n(e.piano)){const t={...c(e.piano,a)},r=(e=>{if(!n(e))return;const t=Object.entries(e).filter(([,e])=>["boolean","number","string"].includes(typeof e)||null===e);return t.length>0?Object.fromEntries(t):void 0})(e.piano.customProps);r&&(t.customProps=r),Object.keys(t).length>0&&(i.piano=t)}return i},s=()=>{if(window.partnerTrackingOverrides)return i(window.partnerTrackingOverrides);const e=document.getElementById("partner-tracking-overrides"),t=(e=>{const t=e?.trim();if(t&&"\x3c!-- PARTNER_TRACKING_OVERRIDES_SLOT --\x3e"!==t)try{return i(JSON.parse(t))}catch(e){return void console.warn("Failed to parse partner tracking overrides:",e)}})(e?.textContent);return t&&(window.partnerTrackingOverrides=t),t},p=(()=>{const e=((e,a)=>{const r=a?.datalayer,o={...e??{}};return r?(r.breadcrumb&&(o.breadcrumb=[...r.breadcrumb]),void 0!==r.pageName&&(o.pageName=r.pageName),t.filter(e=>"breadcrumb"!==e&&"pageName"!==e).forEach(e=>{void 0!==r[e]&&(o[e]=r[e])}),o):o})(window.datalayerInfo,s());return window.datalayerInfo=e,e})(),m=s();m&&((e,t)=>{const a=document.getElementById("__EDGEE_DATA_LAYER__");if(!a)return!1;let o;try{o=JSON.parse(a.textContent||"{}")}catch(e){return console.warn("Failed to update Edgee data layer with partner tracking overrides:",e),!1}const c=n(o.data_collection)?o.data_collection:{};o.data_collection=c;const i=n(c.context)?c.context:{};c.context=i;const s=n(i.page)?i.page:{};i.page=s;const p=n(s.properties)?s.properties:{};s.properties=p;const m=t.piano,E="string"==typeof e.pageUri?e.pageUri:"",l="string"==typeof e.contentTitle?e.contentTitle:"";if(E)try{const e=new URL(E);s.title=e.pathname,p.page=e.pathname,p.page_url=E,p["s:page_canonical"]=E,p["s:site_level2"]=e.hostname}catch{p.page_url=E}if(l&&(p.page_title_html=l),"string"==typeof e.contentSource&&(p["s:content_source"]=e.contentSource),"string"==typeof e.pageName&&(p.content_type=e.pageName,p["s:page_type"]=e.pageName),m){"string"==typeof m.name&&m.name&&(s.title=m.name,p.page=m.name),"string"==typeof m.pageType&&(p["s:page_type"]=m.pageType),r.forEach(e=>{"string"==typeof m[e]&&(p[`page_${e}`]=m[e])});const e=m.customProps;e&&"object"==typeof e&&Object.keys(e).forEach(t=>{p[t]=e[t]})}a.textContent=JSON.stringify(o)})(p,m)}();
1
+ !function(){"use strict";var e=(e=>(e.ARCHIVE_BY_DAY="archivebyday",e.ARCHIVE_BY_YEAR="archivebyyear",e.ARTICLE="article",e.ASTRO="astro",e.ASTRO_HOME="astrohome",e.CONTACT="contact",e.DIRECT="direct",e.ELECTIONS="elections",e.ELECTIONSHOME="electionshome",e.GAME="game",e.GAME_APP="gameapp",e.GAMEHOME="gamehome",e.HOME="home",e.JOB_DETAILS="jobdetails",e.JOBS="jobs",e.JOURNALIST="journalist",e.LA21E="la21e",e.LEGAL="legal",e.LEGALNOTICE="legalnotice",e.LEGALNOTICEHOME="legalnoticehome",e.LEGALNOTICEDEPARTMENT="legalnoticedepartment",e.LIVE="live",e.MOBILE_APPS="mobileapps",e.MOST_COMMENTED="mostcommented",e.MOST_READ="mostread",e.MOST_SHARED="mostshared",e.MOST_VIEWED="mostviewed",e.MOVIES="movies",e.NEWS="news",e.PARTNER="partner",e.PROGRAMME_TV_CHANNEL="programmetvchannel",e.PROGRAMME_TV_HOME="programmetvhome",e.PROGRAMME_TV_NOW="programmetvnow",e.PROGRAMME_TV_PROGRAM="programmetvprogram",e.PROGRAMME_TV_TOMORROW="programmetvtomorrow",e.REWIND="rewind",e.SEARCH="search",e.SECTION="section",e.SERVICE="service",e.SITEMAP="sitemap",e.SPORT="sport",e.STORY="story",e.TAG="tag",e.TRAFFIC="traffic",e.TV_HOME="tvhome",e.TV_LIVE="tvlive",e.TV_MOST_RECENT="tvmostrecent",e.TV_MOST_VIEWED="tvmostviewed",e.TV_SHOW="tvshow",e.TV_SHOWS="tvshows",e.TV_VIDEO="tvvideo",e.WEATHER="weather",e))(e||{});const t=["breadcrumb","contentSource","contentTitle","pageKey","pageName","pageUri","sectionLabel","subType","tagsSlug"],a=["chapter1","chapter2","chapter3","chapter4","name","pageType"],r=["chapter1","chapter2","chapter3","chapter4"],o=new Set(Object.values(e)),n=e=>"object"==typeof e&&null!==e,c=(e,t)=>Object.fromEntries(t.flatMap(t=>"string"==typeof e[t]?[[t,e[t]]]:[])),i=e=>{if(!n(e)||!n(e.meta))return;const r="string"==typeof e.meta.source?e.meta.source:void 0;if(!r||1!==e.meta.version||!1===e.meta.enabled)return;const i={meta:{enabled:!0===e.meta.enabled||void 0,source:r,version:1}};if(n(e.datalayer)){const a={...c(e.datalayer,t.filter(e=>"breadcrumb"!==e&&"pageName"!==e))};"string"==typeof e.datalayer.pageName&&o.has(e.datalayer.pageName)&&(a.pageName=e.datalayer.pageName),Array.isArray(e.datalayer.breadcrumb)&&e.datalayer.breadcrumb.every(e=>"string"==typeof e)&&(a.breadcrumb=e.datalayer.breadcrumb),Object.keys(a).length>0&&(i.datalayer=a)}if(n(e.piano)){const t={...c(e.piano,a)},r=(e=>{if(!n(e))return;const t=Object.entries(e).filter(([,e])=>["boolean","number","string"].includes(typeof e)||null===e);return t.length>0?Object.fromEntries(t):void 0})(e.piano.customProps);r&&(t.customProps=r),Object.keys(t).length>0&&(i.piano=t)}return i},s=()=>{if(window.partnerTrackingOverrides)return i(window.partnerTrackingOverrides);const e=(e=>{const t=e?.trim();if(t&&"\x3c!-- PARTNER_SLOT:ANALYTICS_CONTEXT --\x3e"!==t)try{return i(JSON.parse(t))}catch(e){return void console.warn("Failed to parse partner tracking overrides:",e)}})(document.getElementById("partner-tracking-overrides")?.textContent);return e&&(window.partnerTrackingOverrides=e),e},p=(()=>{const e=((e,a)=>{const r=a?.datalayer,o={...e??{}};return r?(r.breadcrumb&&(o.breadcrumb=[...r.breadcrumb]),void 0!==r.pageName&&(o.pageName=r.pageName),t.filter(e=>"breadcrumb"!==e&&"pageName"!==e).forEach(e=>{void 0!==r[e]&&(o[e]=r[e])}),o):o})(window.datalayerInfo,s());return window.datalayerInfo=e,e})(),m=s();m&&((e,t)=>{const a=document.getElementById("__EDGEE_DATA_LAYER__");if(!a)return!1;let o;try{o=JSON.parse(a.textContent||"{}")}catch(e){return console.warn("Failed to update Edgee data layer with partner tracking overrides:",e),!1}const c=n(o.data_collection)?o.data_collection:{};o.data_collection=c;const i=n(c.context)?c.context:{};c.context=i;const s=n(i.page)?i.page:{};i.page=s;const p=n(s.properties)?s.properties:{};s.properties=p;const m=t.piano,l="string"==typeof e.pageUri?e.pageUri:"",E="string"==typeof e.contentTitle?e.contentTitle:"";if(l)try{const e=new URL(l);s.title=e.pathname,p.page=e.pathname,p.page_url=l,p["s:page_canonical"]=l,p["s:site_level2"]=e.hostname}catch{p.page_url=l}if(E&&(p.page_title_html=E),"string"==typeof e.contentSource&&(p["s:content_source"]=e.contentSource),"string"==typeof e.pageName&&(p.content_type=e.pageName,p["s:page_type"]=e.pageName),m){"string"==typeof m.name&&m.name&&(s.title=m.name,p.page=m.name),"string"==typeof m.pageType&&(p["s:page_type"]=m.pageType),r.forEach(e=>{"string"==typeof m[e]&&(p[`page_${e}`]=m[e])});const e=m.customProps;e&&"object"==typeof e&&Object.keys(e).forEach(t=>{p[t]=e[t]})}a.textContent=JSON.stringify(o)})(p,m)}();
2
2
  //# sourceMappingURL=partner-tracking-overrides.min.js.map
@@ -1,2 +1,2 @@
1
- !function(){"use strict";var e=(e=>(e.ARCHIVE_BY_DAY="archivebyday",e.ARCHIVE_BY_YEAR="archivebyyear",e.ARTICLE="article",e.ASTRO="astro",e.ASTRO_HOME="astrohome",e.CONTACT="contact",e.DIRECT="direct",e.ELECTIONS="elections",e.ELECTIONSHOME="electionshome",e.GAME="game",e.GAME_APP="gameapp",e.GAMEHOME="gamehome",e.HOME="home",e.JOB_DETAILS="jobdetails",e.JOBS="jobs",e.JOURNALIST="journalist",e.LA21E="la21e",e.LEGAL="legal",e.LEGALNOTICE="legalnotice",e.LEGALNOTICEHOME="legalnoticehome",e.LEGALNOTICEDEPARTMENT="legalnoticedepartment",e.LIVE="live",e.MOBILE_APPS="mobileapps",e.MOST_COMMENTED="mostcommented",e.MOST_READ="mostread",e.MOST_SHARED="mostshared",e.MOST_VIEWED="mostviewed",e.MOVIES="movies",e.NEWS="news",e.PARTNER="partner",e.PROGRAMME_TV_CHANNEL="programmetvchannel",e.PROGRAMME_TV_HOME="programmetvhome",e.PROGRAMME_TV_NOW="programmetvnow",e.PROGRAMME_TV_PROGRAM="programmetvprogram",e.PROGRAMME_TV_TOMORROW="programmetvtomorrow",e.REWIND="rewind",e.SEARCH="search",e.SECTION="section",e.SERVICE="service",e.SITEMAP="sitemap",e.SPORT="sport",e.STORY="story",e.TAG="tag",e.TRAFFIC="traffic",e.TV_HOME="tvhome",e.TV_LIVE="tvlive",e.TV_MOST_RECENT="tvmostrecent",e.TV_MOST_VIEWED="tvmostviewed",e.TV_SHOW="tvshow",e.TV_SHOWS="tvshows",e.TV_VIDEO="tvvideo",e.WEATHER="weather",e))(e||{});class t extends Error{}t.prototype.name="InvalidTokenError";var n=(e=>(e.down="down",e.heart="heart",e.laughing="laughing",e.sad="sad",e.shock="shock",e.up="up",e))(n||{});n.up,n.down,n.sad,n.heart,n.laughing,n.shock;const a=(e,t)=>{let n=e.toLowerCase().replace(/[\s-]+/g,"-");return n=(e=>{let t=e;const n="ãàáäâẽèéëêìíïîõòóöôùúüûñç·/,:;";for(let e=0;e<30;e+=1)t=t.replace(new RegExp(n.charAt(e),"g"),"aaaaaeeeeeiiiiooooouuuunc-----".charAt(e));return t})(n),n.replace(/[^\w-]+/g,"").replace(/-*$/g,"")},r=()=>{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())},o=["chapter1","chapter2","chapter3","chapter4"],i=()=>document.querySelectorAll(".c-content > p").length,s=()=>[...document.querySelectorAll(".c-content > p")].reduce((e,t)=>e+t.innerHTML.length,0),c=()=>{const e={},t=r();return("utm_source"in t||"utm_campaign"in t||"utm_medium"in t)&&("utm_source"in t||(e.utm_source=t.utm_medium??t.utm_campaign),"utm_campaign"in t||(e.utm_campaign=t.utm_source??t.utm_medium),"utm_medium"in t||(e.utm_medium=t.utm_source??t.utm_campaign)),e},d=()=>{const e=window.datalayerInfo,t={};e?.breadcrumb?.forEach((e,t)=>{let n=a(e);"diaporamas"===n&&(n="diaporama"),"actualite"===n&&(n="actu-generale"),"guide-dachat"===n&&(n="guide-achat");const r=o[t];r&&window.PianoPageInfo&&(window.PianoPageInfo[r]=n)});const n=Number(e?.contentId);Number.isFinite(n)&&(t["n:content_id"]=n),t.content_type=e?.pageName??"other",t["s:page_type"]="content",t["d:content_published_date"]=e?.modificationDate?new Date(e.modificationDate).toISOString():"",t["d:content_modified_date"]=e?.publicationDate?new Date(e.publicationDate).toISOString():"";const r=Number(e?.journalist?.id);return Number.isFinite(r)&&(t["n:content_id_journaliste"]=r),t["s:content_tags"]=e?.tagsSlug??"",t["s:content_signature"]=a(e?.signature??""),t["s:content_title"]=a(e?.contentTitle??""),t["n:content_title_characters_number"]=Number(e?.contentTitle?.length)||0,t["s:content_subtype"]="texte",t["n:content_video_number"]=e?.videoCount??0,t["n:content_20min_video_number"]=e?.video20mnCount??0,t["n:content_embed_number"]=e?.embedCount??0,e?.podcastCount&&e?.podcastCount>0?t["s:content_subtype"]="podcast":t["n:content_video_number"]>0&&(t["s:content_subtype"]="video"),t},p=(e,t,n,a)=>(window.PianoPageInfo&&(t&&(window.PianoPageInfo.chapter1=t),n&&(window.PianoPageInfo.chapter2=n),a&&(window.PianoPageInfo.chapter3=a)),e?{"s:page_type":e}:{}),u=()=>{const e=window.datalayerInfo,t={};t["b:user_adblock"]=!window.adsapp,t.page_url=e?.pageUri??"",window.PianoPageInfo&&(window.PianoPageInfo.name=new URL(window.location.href).pathname,e?.pageUri&&(window.PianoPageInfo.name=new URL(e.pageUri).pathname)),e?.contentSource&&(t["s:content_source"]=e.contentSource),document.referrer&&(t["s:misc_referrer"]=document.referrer),t["s:page_type"]=e?.pageName||"other";const n=document.querySelector("link[rel='canonical']");if(n&&(t["s:page_canonical"]=n.getAttribute("href")??""),"/search"===e?.pageUri){const e=r();t["s:misc_search"]=e.q||""}return window.performance&&(t.navigation_method=window.performance.getEntriesByType?.("navigation")?.map(e=>e.type)?.pop()||null),{...t,...c()}},l=()=>{switch(window.datalayerInfo?.pageName||"other"){case e.ARCHIVE_BY_DAY:case e.ARCHIVE_BY_YEAR:return p("divers");case e.ARTICLE:return(()=>{const e=d();return e["n:content_characters_number"]=Number(s()),e["n:content_paragraphs_number"]=i(),e})();case e.ASTRO_HOME:return"numerology"===window.datalayerInfo?.pageKey?p("home_numerologie","services","numerologie"):p("home_horoscope","services","horoscope");case e.ASTRO:return["un","deux","trois","quatre","cinq","six","sept","huit","neuf"].includes(window.datalayerInfo?.pageKey||"")?p("numerologie","services","numerologie"):p("horoscope","services","horoscope");case e.DIRECT:return p("divers","le-direct");case e.ELECTIONS:case e.ELECTIONSHOME:return(()=>{const{national:e,region:t,department:n,constituency:a,town:r}=window.datalayerInfo?.elections||{};return window.PianoPageInfo&&(window.PianoPageInfo.chapter1="elections",window.PianoPageInfo.chapter2="resultats",r&&n?(window.PianoPageInfo.chapter3=n,window.PianoPageInfo.chapter4=r):a&&n?(window.PianoPageInfo.chapter3=n,window.PianoPageInfo.chapter4=a):n&&t?(window.PianoPageInfo.chapter3=t,window.PianoPageInfo.chapter4=n):t?(window.PianoPageInfo.chapter3="france",window.PianoPageInfo.chapter4=t):e&&(window.PianoPageInfo.chapter3=e)),{"s:page_type":"elections"}})();case e.HOME:return window.PianoPageInfo&&(window.PianoPageInfo.chapter1="accueil",window.PianoPageInfo.chapter2=""),{"s:page_type":"home","s:content_source":"20mn",content_type:null};case e.GAME:return p(void 0,"services","jeux",window.datalayerInfo?.pageKey);case e.GAME_APP:return(()=>{p(void 0,"services","jeux",window.datalayerInfo?.pageKey);const e=d();return e["s:page_type"]="home_game",window.datalayerInfo?.pageKey&&(e["s:page_type"]="game"),e})();case e.GAMEHOME:return p("home_game","services","jeux");case e.JOB_DETAILS:return(()=>{const{pageKey:e,tagsSlug:t="",contentTitle:n="",embedCount:a=0,videoCount:r=0,video20mnCount:o=0}=window.datalayerInfo||{};return{"s:content_source":"labsense","s:page_type":"content",content_type:"card","s:content_tags":t,"s:content_signature":"","s:content_title":n,"s:content_subtype":"job","n:content_id":Number(e),"n:content_id_journaliste":0,"n:content_title_characters_number":Number(n.length)||0,"n:content_video_number":r,"n:content_20min_video_number":o,"n:content_embed_number":a,"n:content_characters_number":Number(s()),"n:content_paragraphs_number":i(),"d:content_published_date":"","d:content_modified_date":""}})();case e.JOBS:return p("home_tag",window.datalayerInfo?.pageKey,"");case e.JOURNALIST:return(()=>{const{firstName:e,lastName:t}=window.datalayerInfo?.journalist||{};return e&&t&&window.PianoPageInfo&&(window.PianoPageInfo.chapter1=`journaliste--${e}-${t}`),{"s:page_type":"journalist"}})();case e.LA21E:return p("divers","focus--accueil");case e.LEGALNOTICE:return(()=>{const{contentTitle:e}=window.datalayerInfo||{};return e&&window.PianoPageInfo&&(window.PianoPageInfo.chapter1=`legal-announcement--${e}`),{"s:page_type":"legal_notice"}})();case e.LEGALNOTICEDEPARTMENT:return(()=>{const{contentTitle:e}=window.datalayerInfo||{};return window.PianoPageInfo&&(window.PianoPageInfo.chapter1=`legal-announcement-list--${e}`),{"s:page_type":"legal_notice_department"}})();case e.LEGALNOTICEHOME:return p("legal_notice_home","legal-announcement-list");case e.LEGAL:return(()=>{const{pageKey:e}=window.datalayerInfo||{};if(window.PianoPageInfo)switch(e){case"cookies":window.PianoPageInfo.chapter1="gestion-cookies";break;case"privacy":window.PianoPageInfo.chapter1="politique-protection-donnees-personnelles";break;default:window.PianoPageInfo.chapter1=e}return{"s:page_type":"divers"}})();case e.LIVE:return(()=>{const e=d();return e["n:content_paragraphs_number"]=window.datalayerInfo?.livePosts??0,e})();case e.MOBILE_APPS:return p("divers","mobile");case e.MOST_COMMENTED:return p("most_commented");case e.MOST_READ:return p("most_read");case e.MOST_SHARED:return p("most_shared");case e.MOST_VIEWED:return p("home_tag");case e.MOVIES:return p("divers","entertainment","cinema");case e.NEWS:return p("divers","a-la-une");case e.TAG:return p("home_tag",window.datalayerInfo?.pageKey,"");case e.SITEMAP:return p("divers","plan-site");case e.SPORT:return(()=>{const{breadcrumb:e=[]}=window.datalayerInfo||{};return window.PianoPageInfo&&(window.PianoPageInfo.chapter1=e.shift(),window.PianoPageInfo.chapter2=e.shift(),window.PianoPageInfo.chapter3=e.shift(),window.PianoPageInfo.chapter4=e.shift()),{"s:page_type":"divers"}})();case e.STORY:return(()=>{const e=d();return e["s:content_subtype"]=window.datalayerInfo?.subType??"",e})();case e.SERVICE:return p("divers","pratique");case e.TRAFFIC:return p("infos_trafic");case e.TV_HOME:return p("home_tv","tv");case e.TV_LIVE:return p("home_tv_live","tv");case e.TV_MOST_RECENT:return p("tv_divers","tv","videos-recentes");case e.TV_MOST_VIEWED:return p("tv_divers","tv","videos-plus-vues");case e.TV_SHOW:return p("home_tv_show","tv",window.datalayerInfo?.pageKey);case e.TV_SHOWS:return p("tv_divers","tv","emissions");case e.TV_VIDEO:return(()=>{window.PianoPageInfo&&(window.PianoPageInfo.chapter1="tv");const e=d();return e.content_type="page",e["s:content_subtype"]="video",e})();case e.WEATHER:return p("previsions-meteo-france");default:return{}}};let m=-1;const g=e=>{addEventListener("pageshow",t=>{t.persisted&&(m=t.timeStamp,e(t))},!0)},_=(e,t,n,a)=>{let r,o;return i=>{t.value>=0&&(i||a)&&(o=t.value-(r??0),(o||void 0===r)&&(r=t.value,t.delta=o,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},h=e=>{requestAnimationFrame(()=>requestAnimationFrame(e))},w=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},f=()=>w()?.activationStart??0,v=(e,t=-1)=>{const n=w();let a="navigate";return m>=0?a="back-forward-cache":n&&(document.prerendering||f()>0?a="prerender":document.wasDiscarded?a="restore":n.type&&(a=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:a}},E=new WeakMap;function y(e,t){let n=E.get(t);return n||(n=new WeakMap,E.set(t,n)),n.get(e)||n.set(e,new t),n.get(e)}class P{t;i=0;o=[];h(e){if(e.hadRecentInput)return;const t=this.o[0],n=this.o.at(-1);this.i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}}const b=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const a=new PerformanceObserver(e=>{queueMicrotask(()=>{t(e.getEntries())})});return a.observe({type:e,buffered:!0,...n}),a}}catch{}},I=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let T=-1;const O=new Set,A=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,S=e=>{if("hidden"===document.visibilityState){if("visibilitychange"===e.type)for(const e of O)e();isFinite(T)||(T="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("prerenderingchange",S,!0))}},M=()=>{if(T<0){const e=f(),t=document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(t=>"hidden"===t.name&&t.startTime>=e)?.startTime;T=t??A(),addEventListener("visibilitychange",S,!0),addEventListener("prerenderingchange",S,!0),g(()=>{setTimeout(()=>{T=A()})})}return{get firstHiddenTime(){return T},onHidden(e){O.add(e)}}},N=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},L=[1800,3e3],R=(e,t={})=>{N(()=>{const n=M();let a,r=v("FCP");const o=b("paint",e=>{for(const t of e)"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-f(),0),r.entries.push(t),a(!0)))});o&&(a=_(e,r,L,t.reportAllChanges),g(n=>{r=v("FCP"),a=_(e,r,L,t.reportAllChanges),h(()=>{r.value=performance.now()-n.timeStamp,a(!0)})}))})},C=[.1,.25];let k=0,V=1/0,H=0;const D=e=>{for(const t of e)t.interactionId&&(V=Math.min(V,t.interactionId),H=Math.max(H,t.interactionId),k=H?(H-V)/7+1:0)};let j;const q=()=>j?k:performance.interactionCount??0;let G=0;class x{l=[];u=new Map;m;p;v(){G=q(),this.l.length=0,this.u.clear()}T(){const e=Math.min(this.l.length-1,Math.floor((q()-G)/50));return this.l[e]}h(e){if(this.m?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this.l.at(-1);let n=this.u.get(e.interactionId);if(n||this.l.length<10||e.duration>t.L){if(n?e.duration>n.L?(n.entries=[e],n.L=e.duration):e.duration===n.L&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],L:e.duration},this.u.set(n.id,n),this.l.push(n)),this.l.sort((e,t)=>t.L-e.L),this.l.length>10){const e=this.l.splice(10);for(const t of e)this.u.delete(t.id)}this.p?.(n)}}}const W=e=>{const t=globalThis.requestIdleCallback||setTimeout,n=globalThis.cancelIdleCallback||clearTimeout;if("hidden"===document.visibilityState)e();else{const a=I(e);let r=-1;const o=()=>{n(r),a()};addEventListener("visibilitychange",o,{once:!0,capture:!0}),r=t(()=>{removeEventListener("visibilitychange",o,{capture:!0}),a()})}},B=[200,500],U=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=M();N(()=>{"interactionCount"in performance||j||(j=b("event",D,{durationThreshold:0}));let a,r=v("INP");const o=y(t,x),i=e=>{W(()=>{for(const t of e)o.h(t);const t=o.T();t&&t.L!==r.value&&(r.value=t.L,r.entries=t.entries,a())})},s=b("event",i,{durationThreshold:t.durationThreshold??40});a=_(e,r,B,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{i(s.takeRecords()),a(!0)}),g(()=>{o.v(),r=v("INP"),a=_(e,r,B,t.reportAllChanges)}))})};class F{m;h(e){this.m?.(e)}}const K=[2500,4e3],$=e=>{const t={click:a(e.name),click_chapter1:e?.chapter1||null,click_chapter2:e?.chapter2||null,click_chapter3:e?.chapter3||null},n=`click.${e.type}`;if(window.pa?(e.customProps&&Object.keys(e.customProps).length>0&&window.pa.setProperties(e.customProps,{persistent:!1,events:[n]}),window.pa.sendEvent(n,t)):window._paq&&(e.customProps&&Object.keys(e.customProps).length>0&&window._paq.push(["setProperties",e.customProps,{persistent:!1,events:[n]}]),window._paq.push(["sendEvent",n,t])),!window.edgee?.track)return;const r=document.getElementById("__EDGEE_DATA_LAYER__");let o={};if(r)try{const e=JSON.parse(r.textContent||"");e.data_collection.context=e.data_collection.context||{},o=e.data_collection.context.page?.properties||{}}catch{o={}}window.edgee.track({name:n,properties:{...o,click:t.click,click_chapter1:t.click_chapter1,click_chapter2:t.click_chapter2,click_chapter3:t.click_chapter3,click_type:e?.type??"navigation",...e.customProps}},{"edgee/piano-analytics":!0})},Y=e=>{window._paq&&window._paq.push(["sendEvent","page.display",{page:e?.name??window.PianoPageInfo?.name,page_chapter1:e?.chapter1??window.PianoPageInfo?.chapter1,page_chapter2:e?.chapter2??window.PianoPageInfo?.chapter2,page_chapter3:e?.chapter3??window.PianoPageInfo?.chapter3,page_chapter4:e?.chapter4??window.PianoPageInfo?.chapter4}]),window.edgee?.page&&!1!==e?.enableEdgee&&window.edgee.page()},J=()=>{if(!(100*Math.random()<=15))return;const e=new Set;((e,t={})=>{const n=M();R(I(()=>{let a,r=v("CLS",0);const o=y(t,P),i=e=>{for(const t of e)o.h(t);o.i>r.value&&(r.value=o.i,r.entries=o.o,a())},s=b("layout-shift",i);s&&(a=_(e,r,C,t.reportAllChanges),n.onHidden(()=>{i(s.takeRecords()),a(!0)}),g(()=>{o.i=0,r=v("CLS",0),a=_(e,r,C,t.reportAllChanges),h(a)}),setTimeout(a))}))})(t=>{e.add(t)}),U(t=>{e.add(t)}),((e,t={})=>{N(()=>{const n=M();let a,r=v("LCP");const o=y(t,F),i=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)o.h(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-f(),0),r.entries=[t],a())},s=b("largest-contentful-paint",i);if(s){a=_(e,r,K,t.reportAllChanges);const n=I(()=>{i(s.takeRecords()),s.disconnect(),a(!0)}),o=e=>{e.isTrusted&&(W(n),removeEventListener(e.type,o,{capture:!0}))};for(const e of["keydown","click","visibilitychange"])addEventListener(e,o,{capture:!0});g(n=>{r=v("LCP"),a=_(e,r,K,t.reportAllChanges),h(()=>{r.value=performance.now()-n.timeStamp,a(!0)})})}})})(t=>{e.add(t)});window.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&(()=>{if(0!==e.size){if(window._paq){const t={};e.forEach(e=>{const n=e.name.toLowerCase();t[`name_${n}`]=e.name,t[`value_${n}`]=e.value,t[`rating_${n}`]=e.rating,t[`delta_${n}`]=e.delta}),window._paq.push(["sendEvent","technique.cwv",t])}e.clear()}})()})},z=["breadcrumb","contentSource","contentTitle","pageKey","pageName","pageUri","sectionLabel","subType","tagsSlug"],Q=["chapter1","chapter2","chapter3","chapter4","name","pageType"],X=["name","chapter1","chapter2","chapter3","chapter4"],Z=new Set(Object.values(e)),ee=e=>"object"==typeof e&&null!==e,te=(e,t)=>Object.fromEntries(t.flatMap(t=>"string"==typeof e[t]?[[t,e[t]]]:[])),ne=e=>{if(!ee(e)||!ee(e.meta))return;const t="string"==typeof e.meta.source?e.meta.source:void 0;if(!t||1!==e.meta.version||!1===e.meta.enabled)return;const n={meta:{enabled:!0===e.meta.enabled||void 0,source:t,version:1}};if(ee(e.datalayer)){const t={...te(e.datalayer,z.filter(e=>"breadcrumb"!==e&&"pageName"!==e))};"string"==typeof e.datalayer.pageName&&Z.has(e.datalayer.pageName)&&(t.pageName=e.datalayer.pageName),Array.isArray(e.datalayer.breadcrumb)&&e.datalayer.breadcrumb.every(e=>"string"==typeof e)&&(t.breadcrumb=e.datalayer.breadcrumb),Object.keys(t).length>0&&(n.datalayer=t)}if(ee(e.piano)){const t={...te(e.piano,Q)},a=(e=>{if(!ee(e))return;const t=Object.entries(e).filter(([,e])=>["boolean","number","string"].includes(typeof e)||null===e);return t.length>0?Object.fromEntries(t):void 0})(e.piano.customProps);a&&(t.customProps=a),Object.keys(t).length>0&&(n.piano=t)}return n},ae=()=>{if(window.partnerTrackingOverrides)return ne(window.partnerTrackingOverrides);const e=document.getElementById("partner-tracking-overrides"),t=(e=>{const t=e?.trim();if(t&&"\x3c!-- PARTNER_TRACKING_OVERRIDES_SLOT --\x3e"!==t)try{return ne(JSON.parse(t))}catch(e){return void console.warn("Failed to parse partner tracking overrides:",e)}})(e?.textContent);return t&&(window.partnerTrackingOverrides=t),t},re=()=>{const e=((e,t)=>{const n=t?.datalayer,a={...e??{}};return n?(n.breadcrumb&&(a.breadcrumb=[...n.breadcrumb]),void 0!==n.pageName&&(a.pageName=n.pageName),z.filter(e=>"breadcrumb"!==e&&"pageName"!==e).forEach(e=>{void 0!==n[e]&&(a[e]=n[e])}),a):a})(window.datalayerInfo,ae());return window.datalayerInfo=e,e},oe=()=>{const e={};if(e["b:user_darkmode"]="dark"===document.documentElement.getAttribute("data-theme"),e["b:user_status"]=!!document.cookie.match("(^|;)\\s*20mnUserInfo\\s*=\\s*([^;]+)"),!e["b:user_status"])return e;const t=(e=>{const t=document.cookie.split(";").filter(t=>-1!==t.indexOf(e))[0];return t?t.split("=")[1]:"{}"})("20mnUserDataLayer"),n=t?(()=>{try{return JSON.parse(decodeURIComponent(t))}catch{return null}})():null;return n&&(e["s:user_id"]=String(n.i),Number.isNaN(n.d)||(e["n:user_a"]=Number(n.d)),Number.isNaN(n.l)||(e["n:user_zip"]=Number(n.l)),Number.isNaN(n.g)||(e["n:user_g"]=Number(n.g))),e};(()=>{re();const e=ae();var t;window.sendPageTracking=Y,window.sendClickTracking=$,window._paq=window._paq||[],window._paq.push(["privacy.include.properties",["content_type","s:page_type","d:content_published_date","d:content_modified_date","n:content_id","n:content_id_journaliste","s:content_tags","s:content_signature","s:content_title","n:content_title_characters_number","s:content_subtype","n:content_video_number","n:content_20min_video_number","n:content_embed_number","s:content_subtype","s:content_subtype","n:content_characters_number","n:content_paragraphs_number","s:content_source","s:misc_referrer","s:page_canonical","s:misc_search","s:site_level2","b:user_darkmode","b:user_status","navigation_method","cta_context","cta_destination","cta_engagement","cta_type","name_lcp","value_lcp","rating_lcp","delta_lcp","name_inp","value_inp","rating_inp","delta_inp","name_cls","value_cls","rating_cls","delta_cls"]]),window.PianoPageInfo={name:"",chapter1:"",chapter2:""},window.PianoPageInfo=((e,t)=>{const n={...e};return t?.piano?(X.forEach(e=>{void 0!==t.piano?.[e]&&(n[e]=t.piano[e])}),n):n})(window.PianoPageInfo,e),window._paq.push(["setProperties",{...u(),...l(),...oe(),...(t=e,{...t?.piano?.customProps??{},...t?.piano?.pageType?{"s:page_type":t.piano.pageType}:{}}),"s:site_level2":window.location.hostname},{persistent:!0,events:["page.*","click.*"]}]),Y({enableEdgee:!1}),J()})()}();
1
+ !function(){"use strict";var e=(e=>(e.ARCHIVE_BY_DAY="archivebyday",e.ARCHIVE_BY_YEAR="archivebyyear",e.ARTICLE="article",e.ASTRO="astro",e.ASTRO_HOME="astrohome",e.CONTACT="contact",e.DIRECT="direct",e.ELECTIONS="elections",e.ELECTIONSHOME="electionshome",e.GAME="game",e.GAME_APP="gameapp",e.GAMEHOME="gamehome",e.HOME="home",e.JOB_DETAILS="jobdetails",e.JOBS="jobs",e.JOURNALIST="journalist",e.LA21E="la21e",e.LEGAL="legal",e.LEGALNOTICE="legalnotice",e.LEGALNOTICEHOME="legalnoticehome",e.LEGALNOTICEDEPARTMENT="legalnoticedepartment",e.LIVE="live",e.MOBILE_APPS="mobileapps",e.MOST_COMMENTED="mostcommented",e.MOST_READ="mostread",e.MOST_SHARED="mostshared",e.MOST_VIEWED="mostviewed",e.MOVIES="movies",e.NEWS="news",e.PARTNER="partner",e.PROGRAMME_TV_CHANNEL="programmetvchannel",e.PROGRAMME_TV_HOME="programmetvhome",e.PROGRAMME_TV_NOW="programmetvnow",e.PROGRAMME_TV_PROGRAM="programmetvprogram",e.PROGRAMME_TV_TOMORROW="programmetvtomorrow",e.REWIND="rewind",e.SEARCH="search",e.SECTION="section",e.SERVICE="service",e.SITEMAP="sitemap",e.SPORT="sport",e.STORY="story",e.TAG="tag",e.TRAFFIC="traffic",e.TV_HOME="tvhome",e.TV_LIVE="tvlive",e.TV_MOST_RECENT="tvmostrecent",e.TV_MOST_VIEWED="tvmostviewed",e.TV_SHOW="tvshow",e.TV_SHOWS="tvshows",e.TV_VIDEO="tvvideo",e.WEATHER="weather",e))(e||{});class t extends Error{}t.prototype.name="InvalidTokenError";var n=(e=>(e.down="down",e.heart="heart",e.laughing="laughing",e.sad="sad",e.shock="shock",e.up="up",e))(n||{});n.up,n.down,n.sad,n.heart,n.laughing,n.shock;const a=(e,t)=>{let n=e.toLowerCase().replace(/[\s-]+/g,"-");return n=(e=>{let t=e;const n="ãàáäâẽèéëêìíïîõòóöôùúüûñç·/,:;";for(let e=0;e<30;e+=1)t=t.replace(new RegExp(n.charAt(e),"g"),"aaaaaeeeeeiiiiooooouuuunc-----".charAt(e));return t})(n),n.replace(/[^\w-]+/g,"").replace(/-*$/g,"")},r=()=>{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())},o=["chapter1","chapter2","chapter3","chapter4"],i=()=>document.querySelectorAll(".c-content > p").length,s=()=>[...document.querySelectorAll(".c-content > p")].reduce((e,t)=>e+t.innerHTML.length,0),c=()=>{const e={},t=r();return("utm_source"in t||"utm_campaign"in t||"utm_medium"in t)&&("utm_source"in t||(e.utm_source=t.utm_medium??t.utm_campaign),"utm_campaign"in t||(e.utm_campaign=t.utm_source??t.utm_medium),"utm_medium"in t||(e.utm_medium=t.utm_source??t.utm_campaign)),e},d=()=>{const e=window.datalayerInfo,t={};e?.breadcrumb?.forEach((e,t)=>{let n=a(e);"diaporamas"===n&&(n="diaporama"),"actualite"===n&&(n="actu-generale"),"guide-dachat"===n&&(n="guide-achat");const r=o[t];r&&window.PianoPageInfo&&(window.PianoPageInfo[r]=n)});const n=Number(e?.contentId);Number.isFinite(n)&&(t["n:content_id"]=n),t.content_type=e?.pageName??"other",t["s:page_type"]="content",t["d:content_published_date"]=e?.modificationDate?new Date(e.modificationDate).toISOString():"",t["d:content_modified_date"]=e?.publicationDate?new Date(e.publicationDate).toISOString():"";const r=Number(e?.journalist?.id);return Number.isFinite(r)&&(t["n:content_id_journaliste"]=r),t["s:content_tags"]=e?.tagsSlug??"",t["s:content_signature"]=a(e?.signature??""),t["s:content_title"]=a(e?.contentTitle??""),t["n:content_title_characters_number"]=Number(e?.contentTitle?.length)||0,t["s:content_subtype"]="texte",t["n:content_video_number"]=e?.videoCount??0,t["n:content_20min_video_number"]=e?.video20mnCount??0,t["n:content_embed_number"]=e?.embedCount??0,e?.podcastCount&&e?.podcastCount>0?t["s:content_subtype"]="podcast":t["n:content_video_number"]>0&&(t["s:content_subtype"]="video"),t},p=(e,t,n,a)=>(window.PianoPageInfo&&(t&&(window.PianoPageInfo.chapter1=t),n&&(window.PianoPageInfo.chapter2=n),a&&(window.PianoPageInfo.chapter3=a)),e?{"s:page_type":e}:{}),u=()=>{const e=window.datalayerInfo,t={};t["b:user_adblock"]=!window.adsapp,t.page_url=e?.pageUri??"",window.PianoPageInfo&&(window.PianoPageInfo.name=new URL(window.location.href).pathname,e?.pageUri&&(window.PianoPageInfo.name=new URL(e.pageUri).pathname)),e?.contentSource&&(t["s:content_source"]=e.contentSource),document.referrer&&(t["s:misc_referrer"]=document.referrer),t["s:page_type"]=e?.pageName||"other";const n=document.querySelector("link[rel='canonical']");if(n&&(t["s:page_canonical"]=n.getAttribute("href")??""),"/search"===e?.pageUri){const e=r();t["s:misc_search"]=e.q||""}return window.performance&&(t.navigation_method=window.performance.getEntriesByType?.("navigation")?.map(e=>e.type)?.pop()||null),{...t,...c()}},l=()=>{switch(window.datalayerInfo?.pageName||"other"){case e.ARCHIVE_BY_DAY:case e.ARCHIVE_BY_YEAR:return p("divers");case e.ARTICLE:return(()=>{const e=d();return e["n:content_characters_number"]=Number(s()),e["n:content_paragraphs_number"]=i(),e})();case e.ASTRO_HOME:return"numerology"===window.datalayerInfo?.pageKey?p("home_numerologie","services","numerologie"):p("home_horoscope","services","horoscope");case e.ASTRO:return["un","deux","trois","quatre","cinq","six","sept","huit","neuf"].includes(window.datalayerInfo?.pageKey||"")?p("numerologie","services","numerologie"):p("horoscope","services","horoscope");case e.DIRECT:return p("divers","le-direct");case e.ELECTIONS:case e.ELECTIONSHOME:return(()=>{const{national:e,region:t,department:n,constituency:a,town:r}=window.datalayerInfo?.elections||{};return window.PianoPageInfo&&(window.PianoPageInfo.chapter1="elections",window.PianoPageInfo.chapter2="resultats",r&&n?(window.PianoPageInfo.chapter3=n,window.PianoPageInfo.chapter4=r):a&&n?(window.PianoPageInfo.chapter3=n,window.PianoPageInfo.chapter4=a):n&&t?(window.PianoPageInfo.chapter3=t,window.PianoPageInfo.chapter4=n):t?(window.PianoPageInfo.chapter3="france",window.PianoPageInfo.chapter4=t):e&&(window.PianoPageInfo.chapter3=e)),{"s:page_type":"elections"}})();case e.HOME:return window.PianoPageInfo&&(window.PianoPageInfo.chapter1="accueil",window.PianoPageInfo.chapter2=""),{"s:page_type":"home","s:content_source":"20mn",content_type:null};case e.GAME:return p(void 0,"services","jeux",window.datalayerInfo?.pageKey);case e.GAME_APP:return(()=>{p(void 0,"services","jeux",window.datalayerInfo?.pageKey);const e=d();return e["s:page_type"]="home_game",window.datalayerInfo?.pageKey&&(e["s:page_type"]="game"),e})();case e.GAMEHOME:return p("home_game","services","jeux");case e.JOB_DETAILS:return(()=>{const{pageKey:e,tagsSlug:t="",contentTitle:n="",embedCount:a=0,videoCount:r=0,video20mnCount:o=0}=window.datalayerInfo||{};return{"s:content_source":"labsense","s:page_type":"content",content_type:"card","s:content_tags":t,"s:content_signature":"","s:content_title":n,"s:content_subtype":"job","n:content_id":Number(e),"n:content_id_journaliste":0,"n:content_title_characters_number":Number(n.length)||0,"n:content_video_number":r,"n:content_20min_video_number":o,"n:content_embed_number":a,"n:content_characters_number":Number(s()),"n:content_paragraphs_number":i(),"d:content_published_date":"","d:content_modified_date":""}})();case e.JOBS:return p("home_tag",window.datalayerInfo?.pageKey,"");case e.JOURNALIST:return(()=>{const{firstName:e,lastName:t}=window.datalayerInfo?.journalist||{};return e&&t&&window.PianoPageInfo&&(window.PianoPageInfo.chapter1=`journaliste--${e}-${t}`),{"s:page_type":"journalist"}})();case e.LA21E:return p("divers","focus--accueil");case e.LEGALNOTICE:return(()=>{const{contentTitle:e}=window.datalayerInfo||{};return e&&window.PianoPageInfo&&(window.PianoPageInfo.chapter1=`legal-announcement--${e}`),{"s:page_type":"legal_notice"}})();case e.LEGALNOTICEDEPARTMENT:return(()=>{const{contentTitle:e}=window.datalayerInfo||{};return window.PianoPageInfo&&(window.PianoPageInfo.chapter1=`legal-announcement-list--${e}`),{"s:page_type":"legal_notice_department"}})();case e.LEGALNOTICEHOME:return p("legal_notice_home","legal-announcement-list");case e.LEGAL:return(()=>{const{pageKey:e}=window.datalayerInfo||{};if(window.PianoPageInfo)switch(e){case"cookies":window.PianoPageInfo.chapter1="gestion-cookies";break;case"privacy":window.PianoPageInfo.chapter1="politique-protection-donnees-personnelles";break;default:window.PianoPageInfo.chapter1=e}return{"s:page_type":"divers"}})();case e.LIVE:return(()=>{const e=d();return e["n:content_paragraphs_number"]=window.datalayerInfo?.livePosts??0,e})();case e.MOBILE_APPS:return p("divers","mobile");case e.MOST_COMMENTED:return p("most_commented");case e.MOST_READ:return p("most_read");case e.MOST_SHARED:return p("most_shared");case e.MOST_VIEWED:return p("home_tag");case e.MOVIES:return p("divers","entertainment","cinema");case e.NEWS:return p("divers","a-la-une");case e.TAG:return p("home_tag",window.datalayerInfo?.pageKey,"");case e.SITEMAP:return p("divers","plan-site");case e.SPORT:return(()=>{const{breadcrumb:e=[]}=window.datalayerInfo||{};return window.PianoPageInfo&&(window.PianoPageInfo.chapter1=e.shift(),window.PianoPageInfo.chapter2=e.shift(),window.PianoPageInfo.chapter3=e.shift(),window.PianoPageInfo.chapter4=e.shift()),{"s:page_type":"divers"}})();case e.STORY:return(()=>{const e=d();return e["s:content_subtype"]=window.datalayerInfo?.subType??"",e})();case e.SERVICE:return p("divers","pratique");case e.TRAFFIC:return p("infos_trafic");case e.TV_HOME:return p("home_tv","tv");case e.TV_LIVE:return p("home_tv_live","tv");case e.TV_MOST_RECENT:return p("tv_divers","tv","videos-recentes");case e.TV_MOST_VIEWED:return p("tv_divers","tv","videos-plus-vues");case e.TV_SHOW:return p("home_tv_show","tv",window.datalayerInfo?.pageKey);case e.TV_SHOWS:return p("tv_divers","tv","emissions");case e.TV_VIDEO:return(()=>{window.PianoPageInfo&&(window.PianoPageInfo.chapter1="tv");const e=d();return e.content_type="page",e["s:content_subtype"]="video",e})();case e.WEATHER:return p("previsions-meteo-france");default:return{}}};let m=-1;const g=e=>{addEventListener("pageshow",t=>{t.persisted&&(m=t.timeStamp,e(t))},!0)},_=(e,t,n,a)=>{let r,o;return i=>{t.value>=0&&(i||a)&&(o=t.value-(r??0),(o||void 0===r)&&(r=t.value,t.delta=o,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},h=e=>{requestAnimationFrame(()=>requestAnimationFrame(e))},w=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},f=()=>w()?.activationStart??0,v=(e,t=-1)=>{const n=w();let a="navigate";return m>=0?a="back-forward-cache":n&&(document.prerendering||f()>0?a="prerender":document.wasDiscarded?a="restore":n.type&&(a=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:a}},E=new WeakMap;function y(e,t){let n=E.get(t);return n||(n=new WeakMap,E.set(t,n)),n.get(e)||n.set(e,new t),n.get(e)}class P{t;i=0;o=[];h(e){if(e.hadRecentInput)return;const t=this.o[0],n=this.o.at(-1);this.i&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),this.t?.(e)}}const b=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const a=new PerformanceObserver(e=>{queueMicrotask(()=>{t(e.getEntries())})});return a.observe({type:e,buffered:!0,...n}),a}}catch{}},T=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let I=-1;const O=new Set,A=()=>"hidden"!==document.visibilityState||document.prerendering?1/0:0,S=e=>{if("hidden"===document.visibilityState){if("visibilitychange"===e.type)for(const e of O)e();isFinite(I)||(I="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("prerenderingchange",S,!0))}},N=()=>{if(I<0){const e=f(),t=document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").find(t=>"hidden"===t.name&&t.startTime>=e)?.startTime;I=t??A(),addEventListener("visibilitychange",S,!0),addEventListener("prerenderingchange",S,!0),g(()=>{setTimeout(()=>{I=A()})})}return{get firstHiddenTime(){return I},onHidden(e){O.add(e)}}},M=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},L=[1800,3e3],C=(e,t={})=>{M(()=>{const n=N();let a,r=v("FCP");const o=b("paint",e=>{for(const t of e)"first-contentful-paint"===t.name&&(o.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-f(),0),r.entries.push(t),a(!0)))});o&&(a=_(e,r,L,t.reportAllChanges),g(n=>{r=v("FCP"),a=_(e,r,L,t.reportAllChanges),h(()=>{r.value=performance.now()-n.timeStamp,a(!0)})}))})},R=[.1,.25];let k=0,V=1/0,H=0;const D=e=>{for(const t of e)t.interactionId&&(V=Math.min(V,t.interactionId),H=Math.max(H,t.interactionId),k=H?(H-V)/7+1:0)};let j;const q=()=>j?k:performance.interactionCount??0;let G=0;class x{l=[];u=new Map;m;p;v(){G=q(),this.l.length=0,this.u.clear()}T(){const e=Math.min(this.l.length-1,Math.floor((q()-G)/50));return this.l[e]}h(e){if(this.m?.(e),!e.interactionId&&"first-input"!==e.entryType)return;const t=this.l.at(-1);let n=this.u.get(e.interactionId);if(n||this.l.length<10||e.duration>t.L){if(n?e.duration>n.L?(n.entries=[e],n.L=e.duration):e.duration===n.L&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],L:e.duration},this.u.set(n.id,n),this.l.push(n)),this.l.sort((e,t)=>t.L-e.L),this.l.length>10){const e=this.l.splice(10);for(const t of e)this.u.delete(t.id)}this.p?.(n)}}}const W=e=>{const t=globalThis.requestIdleCallback||setTimeout,n=globalThis.cancelIdleCallback||clearTimeout;if("hidden"===document.visibilityState)e();else{const a=T(e);let r=-1;const o=()=>{n(r),a()};addEventListener("visibilitychange",o,{once:!0,capture:!0}),r=t(()=>{removeEventListener("visibilitychange",o,{capture:!0}),a()})}},B=[200,500],U=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=N();M(()=>{"interactionCount"in performance||j||(j=b("event",D,{durationThreshold:0}));let a,r=v("INP");const o=y(t,x),i=e=>{W(()=>{for(const t of e)o.h(t);const t=o.T();t&&t.L!==r.value&&(r.value=t.L,r.entries=t.entries,a())})},s=b("event",i,{durationThreshold:t.durationThreshold??40});a=_(e,r,B,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{i(s.takeRecords()),a(!0)}),g(()=>{o.v(),r=v("INP"),a=_(e,r,B,t.reportAllChanges)}))})};class F{m;h(e){this.m?.(e)}}const Y=[2500,4e3],$=e=>{const t={click:a(e.name),click_chapter1:e?.chapter1||null,click_chapter2:e?.chapter2||null,click_chapter3:e?.chapter3||null},n=`click.${e.type}`;if(window.pa?(e.customProps&&Object.keys(e.customProps).length>0&&window.pa.setProperties(e.customProps,{persistent:!1,events:[n]}),window.pa.sendEvent(n,t)):window._paq&&(e.customProps&&Object.keys(e.customProps).length>0&&window._paq.push(["setProperties",e.customProps,{persistent:!1,events:[n]}]),window._paq.push(["sendEvent",n,t])),!window.edgee?.track)return;const r=document.getElementById("__EDGEE_DATA_LAYER__");let o={};if(r)try{const e=JSON.parse(r.textContent||"");e.data_collection.context=e.data_collection.context||{},o=e.data_collection.context.page?.properties||{}}catch{o={}}window.edgee.track({name:n,properties:{...o,click:t.click,click_chapter1:t.click_chapter1,click_chapter2:t.click_chapter2,click_chapter3:t.click_chapter3,click_type:e?.type??"navigation",...e.customProps}},{"edgee/piano-analytics":!0})},K=e=>{window._paq&&window._paq.push(["sendEvent","page.display",{page:e?.name??window.PianoPageInfo?.name,page_chapter1:e?.chapter1??window.PianoPageInfo?.chapter1,page_chapter2:e?.chapter2??window.PianoPageInfo?.chapter2,page_chapter3:e?.chapter3??window.PianoPageInfo?.chapter3,page_chapter4:e?.chapter4??window.PianoPageInfo?.chapter4}]),window.edgee?.page&&!1!==e?.enableEdgee&&window.edgee.page()},J=()=>{if(!(100*Math.random()<=15))return;const e=new Set;((e,t={})=>{const n=N();C(T(()=>{let a,r=v("CLS",0);const o=y(t,P),i=e=>{for(const t of e)o.h(t);o.i>r.value&&(r.value=o.i,r.entries=o.o,a())},s=b("layout-shift",i);s&&(a=_(e,r,R,t.reportAllChanges),n.onHidden(()=>{i(s.takeRecords()),a(!0)}),g(()=>{o.i=0,r=v("CLS",0),a=_(e,r,R,t.reportAllChanges),h(a)}),setTimeout(a))}))})(t=>{e.add(t)}),U(t=>{e.add(t)}),((e,t={})=>{M(()=>{const n=N();let a,r=v("LCP");const o=y(t,F),i=e=>{t.reportAllChanges||(e=e.slice(-1));for(const t of e)o.h(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-f(),0),r.entries=[t],a())},s=b("largest-contentful-paint",i);if(s){a=_(e,r,Y,t.reportAllChanges);const n=T(()=>{i(s.takeRecords()),s.disconnect(),a(!0)}),o=e=>{e.isTrusted&&(W(n),removeEventListener(e.type,o,{capture:!0}))};for(const e of["keydown","click","visibilitychange"])addEventListener(e,o,{capture:!0});g(n=>{r=v("LCP"),a=_(e,r,Y,t.reportAllChanges),h(()=>{r.value=performance.now()-n.timeStamp,a(!0)})})}})})(t=>{e.add(t)});window.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&(()=>{if(0!==e.size){if(window._paq){const t={};e.forEach(e=>{const n=e.name.toLowerCase();t[`name_${n}`]=e.name,t[`value_${n}`]=e.value,t[`rating_${n}`]=e.rating,t[`delta_${n}`]=e.delta}),window._paq.push(["sendEvent","technique.cwv",t])}e.clear()}})()})},z=["breadcrumb","contentSource","contentTitle","pageKey","pageName","pageUri","sectionLabel","subType","tagsSlug"],X=["chapter1","chapter2","chapter3","chapter4","name","pageType"],Q=["name","chapter1","chapter2","chapter3","chapter4"],Z=new Set(Object.values(e)),ee=e=>"object"==typeof e&&null!==e,te=(e,t)=>Object.fromEntries(t.flatMap(t=>"string"==typeof e[t]?[[t,e[t]]]:[])),ne=e=>{if(!ee(e)||!ee(e.meta))return;const t="string"==typeof e.meta.source?e.meta.source:void 0;if(!t||1!==e.meta.version||!1===e.meta.enabled)return;const n={meta:{enabled:!0===e.meta.enabled||void 0,source:t,version:1}};if(ee(e.datalayer)){const t={...te(e.datalayer,z.filter(e=>"breadcrumb"!==e&&"pageName"!==e))};"string"==typeof e.datalayer.pageName&&Z.has(e.datalayer.pageName)&&(t.pageName=e.datalayer.pageName),Array.isArray(e.datalayer.breadcrumb)&&e.datalayer.breadcrumb.every(e=>"string"==typeof e)&&(t.breadcrumb=e.datalayer.breadcrumb),Object.keys(t).length>0&&(n.datalayer=t)}if(ee(e.piano)){const t={...te(e.piano,X)},a=(e=>{if(!ee(e))return;const t=Object.entries(e).filter(([,e])=>["boolean","number","string"].includes(typeof e)||null===e);return t.length>0?Object.fromEntries(t):void 0})(e.piano.customProps);a&&(t.customProps=a),Object.keys(t).length>0&&(n.piano=t)}return n},ae=()=>{if(window.partnerTrackingOverrides)return ne(window.partnerTrackingOverrides);const e=(e=>{const t=e?.trim();if(t&&"\x3c!-- PARTNER_SLOT:ANALYTICS_CONTEXT --\x3e"!==t)try{return ne(JSON.parse(t))}catch(e){return void console.warn("Failed to parse partner tracking overrides:",e)}})(document.getElementById("partner-tracking-overrides")?.textContent);return e&&(window.partnerTrackingOverrides=e),e},re=()=>{const e=((e,t)=>{const n=t?.datalayer,a={...e??{}};return n?(n.breadcrumb&&(a.breadcrumb=[...n.breadcrumb]),void 0!==n.pageName&&(a.pageName=n.pageName),z.filter(e=>"breadcrumb"!==e&&"pageName"!==e).forEach(e=>{void 0!==n[e]&&(a[e]=n[e])}),a):a})(window.datalayerInfo,ae());return window.datalayerInfo=e,e},oe=e=>{const t=e?.piano?.customProps??{},n="string"==typeof t.page_canonical?t.page_canonical:void 0;return{...t,...n?{page_url:n}:{},...e?.piano?.pageType?{"s:page_type":e.piano.pageType}:{}}},ie=(e,t)=>{const n={...e};return t?.piano?(Q.forEach(e=>{void 0!==t.piano?.[e]&&(n[e]=t.piano[e])}),"string"==typeof t.piano.customProps?.page&&void 0===t.piano.name&&(n.name=t.piano.customProps.page),n):n},se=()=>{const e={};if(e["b:user_darkmode"]="dark"===document.documentElement.getAttribute("data-theme"),e["b:user_status"]=!!document.cookie.match("(^|;)\\s*20mnUserInfo\\s*=\\s*([^;]+)"),!e["b:user_status"])return e;const t=(e=>{const t=document.cookie.split(";").filter(t=>-1!==t.indexOf(e))[0];return t?t.split("=")[1]:"{}"})("20mnUserDataLayer"),n=t?(()=>{try{return JSON.parse(decodeURIComponent(t))}catch{return null}})():null;return n&&(e["s:user_id"]=String(n.i),Number.isNaN(n.d)||(e["n:user_a"]=Number(n.d)),Number.isNaN(n.l)||(e["n:user_zip"]=Number(n.l)),Number.isNaN(n.g)||(e["n:user_g"]=Number(n.g))),e};(()=>{re();const e=ae();window.sendPageTracking=K,window.sendClickTracking=$,window._paq=window._paq||[],window._paq.push(["privacy.include.properties",["content_type","s:page_type","d:content_published_date","d:content_modified_date","n:content_id","n:content_id_journaliste","s:content_tags","s:content_signature","s:content_title","n:content_title_characters_number","s:content_subtype","n:content_video_number","n:content_20min_video_number","n:content_embed_number","s:content_subtype","s:content_subtype","n:content_characters_number","n:content_paragraphs_number","s:content_source","s:misc_referrer","s:page_canonical","s:misc_search","s:site_level2","b:user_darkmode","b:user_status","navigation_method","cta_context","cta_destination","cta_engagement","cta_type","name_lcp","value_lcp","rating_lcp","delta_lcp","name_inp","value_inp","rating_inp","delta_inp","name_cls","value_cls","rating_cls","delta_cls"]]),window.PianoPageInfo={name:"",chapter1:"",chapter2:""},window.PianoPageInfo=ie(window.PianoPageInfo,e),window._paq.push(["setProperties",{...u(),...l(),...se(),"s:site_level2":window.location.hostname,...oe(e)},{persistent:!0,events:["page.*","click.*"]}]),window.PianoPageInfo=ie(window.PianoPageInfo,e),K({enableEdgee:!1}),J()})()}();
2
2
  //# sourceMappingURL=piano.min.js.map
@@ -36,6 +36,6 @@ export interface HtmlTemplateProps {
36
36
  customPrint?: boolean;
37
37
  backgroundPageColor?: ColorType;
38
38
  hasTopSentinel?: boolean;
39
- partnerTrackingOverridesSlot?: boolean;
39
+ partnerLayoutContract?: boolean;
40
40
  }
41
41
  export declare const HtmlTemplate: React.FC<HtmlTemplateProps>;
@@ -43,7 +43,6 @@ export interface FirstPartyScriptsType {
43
43
  datalayerInfo?: DatalayerInfoType;
44
44
  scriptSchedulerScript?: string;
45
45
  partnerFeatures?: PartnerFeaturesType;
46
- partnerTrackingOverridesSlot?: boolean;
47
46
  }
48
47
  export interface ThirdPartiesConfigType {
49
48
  veryHighPriority: ScriptType[];
@@ -172,7 +172,6 @@ export type TArticle = TCounting & TCrawlable & TLockable & TNode & TProofreadab
172
172
  __typename?: 'Article';
173
173
  ai_generating_at?: Maybe<Scalars['DateTime']['output']>;
174
174
  announced_at?: Maybe<Scalars['DateTime']['output']>;
175
- audio_url?: Maybe<Scalars['String']['output']>;
176
175
  brand_id: Scalars['ID']['output'];
177
176
  comment?: Maybe<TCommentSingleConnection>;
178
177
  comments?: Maybe<TCommentListConnection>;
@@ -209,7 +208,6 @@ export type TArticle = TCounting & TCrawlable & TLockable & TNode & TProofreadab
209
208
  locked_at?: Maybe<Scalars['DateTime']['output']>;
210
209
  locked_by?: Maybe<TContentLockerSingleConnection>;
211
210
  locked_by_user_id?: Maybe<Scalars['ID']['output']>;
212
- majelan_id?: Maybe<Scalars['String']['output']>;
213
211
  medias?: Maybe<Array<Maybe<TContentMedia>>>;
214
212
  meta?: Maybe<TMeta>;
215
213
  on_home?: Maybe<Scalars['Boolean']['output']>;
@@ -1285,7 +1283,6 @@ export type TBrand = {
1285
1283
  export type TBrandArticleArgs = {
1286
1284
  article_id?: InputMaybe<Scalars['ID']['input']>;
1287
1285
  legacy_id?: InputMaybe<Scalars['Int']['input']>;
1288
- majelan_id?: InputMaybe<Scalars['String']['input']>;
1289
1286
  options?: InputMaybe<TArticleSingleConnectionOptions>;
1290
1287
  };
1291
1288
  export type TBrandArticlesArgs = {
@@ -2503,7 +2500,6 @@ export type TCrawlable = {
2503
2500
  export type TCreateArticleFromSynchroType = {
2504
2501
  ai_generating_at?: InputMaybe<Scalars['DateTime']['input']>;
2505
2502
  announced_at?: InputMaybe<Scalars['DateTime']['input']>;
2506
- audio_url?: InputMaybe<Scalars['String']['input']>;
2507
2503
  brand_id: Scalars['ID']['input'];
2508
2504
  clientMutationId?: InputMaybe<Scalars['String']['input']>;
2509
2505
  comments_count?: InputMaybe<Scalars['Int']['input']>;
@@ -2532,7 +2528,6 @@ export type TCreateArticleFromSynchroType = {
2532
2528
  legacy_id?: InputMaybe<Scalars['Int']['input']>;
2533
2529
  linked_articles?: InputMaybe<Array<InputMaybe<TEditorialContentInput>>>;
2534
2530
  linked_contents?: InputMaybe<Array<InputMaybe<TEditorialContentInput>>>;
2535
- majelan_id?: InputMaybe<Scalars['String']['input']>;
2536
2531
  medias?: InputMaybe<Array<InputMaybe<TMediaInput>>>;
2537
2532
  meta?: InputMaybe<TMetaInput>;
2538
2533
  pinterest_count?: InputMaybe<Scalars['Int']['input']>;
@@ -2564,7 +2559,6 @@ export type TCreateArticleFromSynchroType = {
2564
2559
  export type TCreateArticleType = {
2565
2560
  ai_generating_at?: InputMaybe<Scalars['DateTime']['input']>;
2566
2561
  announced_at?: InputMaybe<Scalars['DateTime']['input']>;
2567
- audio_url?: InputMaybe<Scalars['String']['input']>;
2568
2562
  brand_id: Scalars['ID']['input'];
2569
2563
  clientMutationId?: InputMaybe<Scalars['String']['input']>;
2570
2564
  comments_count?: InputMaybe<Scalars['Int']['input']>;
@@ -2593,7 +2587,6 @@ export type TCreateArticleType = {
2593
2587
  legacy_id?: InputMaybe<Scalars['Int']['input']>;
2594
2588
  linked_articles?: InputMaybe<Array<InputMaybe<TEditorialContentInput>>>;
2595
2589
  linked_contents?: InputMaybe<Array<InputMaybe<TEditorialContentInput>>>;
2596
- majelan_id?: InputMaybe<Scalars['String']['input']>;
2597
2590
  medias?: InputMaybe<Array<InputMaybe<TMediaInput>>>;
2598
2591
  meta?: InputMaybe<TMetaInput>;
2599
2592
  pinterest_count?: InputMaybe<Scalars['Int']['input']>;
@@ -2626,7 +2619,6 @@ export type TCreateArticleType = {
2626
2619
  export type TCreateArticleWithAiType = {
2627
2620
  ai_generating_at?: InputMaybe<Scalars['DateTime']['input']>;
2628
2621
  announced_at?: InputMaybe<Scalars['DateTime']['input']>;
2629
- audio_url?: InputMaybe<Scalars['String']['input']>;
2630
2622
  brand_id: Scalars['ID']['input'];
2631
2623
  clientMutationId?: InputMaybe<Scalars['String']['input']>;
2632
2624
  comments_count?: InputMaybe<Scalars['Int']['input']>;
@@ -2656,7 +2648,6 @@ export type TCreateArticleWithAiType = {
2656
2648
  legacy_id?: InputMaybe<Scalars['Int']['input']>;
2657
2649
  linked_articles?: InputMaybe<Array<InputMaybe<TEditorialContentInput>>>;
2658
2650
  linked_contents?: InputMaybe<Array<InputMaybe<TEditorialContentInput>>>;
2659
- majelan_id?: InputMaybe<Scalars['String']['input']>;
2660
2651
  medias?: InputMaybe<Array<InputMaybe<TMediaInput>>>;
2661
2652
  meta?: InputMaybe<TMetaInput>;
2662
2653
  output_fields: Array<InputMaybe<ArticleAiFields>>;
@@ -3641,6 +3632,7 @@ export type TCreateSuggestAiType = {
3641
3632
  brand_id: Scalars['ID']['input'];
3642
3633
  clientMutationId?: InputMaybe<Scalars['String']['input']>;
3643
3634
  config?: InputMaybe<Scalars['JSONObject']['input']>;
3635
+ contentModel?: InputMaybe<EditorialContentModelType>;
3644
3636
  content_blocks?: InputMaybe<Scalars['JSONObject']['input']>;
3645
3637
  databaseId?: InputMaybe<Scalars['UUID']['input']>;
3646
3638
  enclose?: InputMaybe<Scalars['JSONObject']['input']>;
@@ -11485,7 +11477,6 @@ export type TPublishableContent = TCounting & TNode & TProofreadable & TPublisha
11485
11477
  __typename?: 'PublishableContent';
11486
11478
  ai_generating_at?: Maybe<Scalars['DateTime']['output']>;
11487
11479
  announced_at?: Maybe<Scalars['DateTime']['output']>;
11488
- audio_url?: Maybe<Scalars['String']['output']>;
11489
11480
  brand_id: Scalars['ID']['output'];
11490
11481
  catalog?: Maybe<Scalars['String']['output']>;
11491
11482
  comment?: Maybe<TCommentSingleConnection>;
@@ -11530,7 +11521,6 @@ export type TPublishableContent = TCounting & TNode & TProofreadable & TPublisha
11530
11521
  locked_at?: Maybe<Scalars['DateTime']['output']>;
11531
11522
  locked_by?: Maybe<TContentLockerSingleConnection>;
11532
11523
  locked_by_user_id?: Maybe<Scalars['ID']['output']>;
11533
- majelan_id?: Maybe<Scalars['String']['output']>;
11534
11524
  medias?: Maybe<Array<Maybe<TContentMedia>>>;
11535
11525
  meta?: Maybe<TMeta>;
11536
11526
  meta_all?: Maybe<TMeta>;
@@ -15568,7 +15558,6 @@ export type TUpdateArticleFieldWithAiType = {
15568
15558
  export type TUpdateArticleFromSynchroType = {
15569
15559
  ai_generating_at?: InputMaybe<Scalars['DateTime']['input']>;
15570
15560
  announced_at?: InputMaybe<Scalars['DateTime']['input']>;
15571
- audio_url?: InputMaybe<Scalars['String']['input']>;
15572
15561
  brand_id: Scalars['ID']['input'];
15573
15562
  clientMutationId?: InputMaybe<Scalars['String']['input']>;
15574
15563
  comments_count?: InputMaybe<Scalars['Int']['input']>;
@@ -15596,7 +15585,6 @@ export type TUpdateArticleFromSynchroType = {
15596
15585
  legacy_id?: InputMaybe<Scalars['Int']['input']>;
15597
15586
  linked_articles?: InputMaybe<Array<InputMaybe<TEditorialContentInput>>>;
15598
15587
  linked_contents?: InputMaybe<Array<InputMaybe<TEditorialContentInput>>>;
15599
- majelan_id?: InputMaybe<Scalars['String']['input']>;
15600
15588
  medias?: InputMaybe<Array<InputMaybe<TMediaInput>>>;
15601
15589
  meta?: InputMaybe<TMetaInput>;
15602
15590
  pinterest_count?: InputMaybe<Scalars['Int']['input']>;
@@ -15628,7 +15616,6 @@ export type TUpdateArticleFromSynchroType = {
15628
15616
  export type TUpdateArticleType = {
15629
15617
  ai_generating_at?: InputMaybe<Scalars['DateTime']['input']>;
15630
15618
  announced_at?: InputMaybe<Scalars['DateTime']['input']>;
15631
- audio_url?: InputMaybe<Scalars['String']['input']>;
15632
15619
  brand_id: Scalars['ID']['input'];
15633
15620
  clientMutationId?: InputMaybe<Scalars['String']['input']>;
15634
15621
  comments_count?: InputMaybe<Scalars['Int']['input']>;
@@ -15658,7 +15645,6 @@ export type TUpdateArticleType = {
15658
15645
  linked_articles?: InputMaybe<Array<InputMaybe<TEditorialContentInput>>>;
15659
15646
  linked_contents?: InputMaybe<Array<InputMaybe<TEditorialContentInput>>>;
15660
15647
  lock?: InputMaybe<Scalars['Boolean']['input']>;
15661
- majelan_id?: InputMaybe<Scalars['String']['input']>;
15662
15648
  medias?: InputMaybe<Array<InputMaybe<TMediaInput>>>;
15663
15649
  meta?: InputMaybe<TMetaInput>;
15664
15650
  on_home?: InputMaybe<Scalars['Boolean']['input']>;
@@ -16645,6 +16631,7 @@ export type TUpdateSuggestAiType = {
16645
16631
  brand_id: Scalars['ID']['input'];
16646
16632
  clientMutationId?: InputMaybe<Scalars['String']['input']>;
16647
16633
  config?: InputMaybe<Scalars['JSONObject']['input']>;
16634
+ contentModel?: InputMaybe<EditorialContentModelType>;
16648
16635
  content_blocks?: InputMaybe<Scalars['JSONObject']['input']>;
16649
16636
  enclose?: InputMaybe<Scalars['JSONObject']['input']>;
16650
16637
  id: Scalars['ID']['input'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@20minutes/tyr",
3
- "version": "2.43.6",
3
+ "version": "2.43.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/20minutes/tyr.git"
@@ -61,7 +61,7 @@
61
61
  "html-react-parser": "^6.1.3",
62
62
  "html-to-react": "^1.7.0",
63
63
  "jwt-decode": "^4.0.0",
64
- "node-html-parser": "^8.0.3",
64
+ "node-html-parser": "^8.0.4",
65
65
  "react": "^18.3.1",
66
66
  "react-dom": "^18.3.1",
67
67
  "uri-js": "npm:uri-js-replace",
@@ -70,10 +70,10 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@20minutes/eslint-config": "^3.0.4",
73
- "@aws-sdk/client-s3": "3.1075.0",
73
+ "@aws-sdk/client-s3": "3.1078.0",
74
74
  "@graphql-codegen/cli": "^7.1.3",
75
75
  "@graphql-codegen/typescript": "^6.0.2",
76
- "@graphql-codegen/typescript-operations": "^6.0.4",
76
+ "@graphql-codegen/typescript-operations": "^6.0.5",
77
77
  "@octokit/core": "7.0.6",
78
78
  "@rollup/plugin-commonjs": "^29.0.3",
79
79
  "@rollup/plugin-node-resolve": "^16.0.3",
@@ -103,7 +103,7 @@
103
103
  "jest-worker": "^30.4.1",
104
104
  "jsdom": "^29.1.1",
105
105
  "mockdate": "^3.0.5",
106
- "postcss": "^8.5.15",
106
+ "postcss": "^8.5.16",
107
107
  "purgecss": "^8.0.0",
108
108
  "purgecss-from-html": "^8.0.0",
109
109
  "rollup": "^4.62.2",
@@ -115,7 +115,7 @@
115
115
  "tsx": "^4.22.4",
116
116
  "typed-query-selector": "^2.12.2",
117
117
  "typescript": "^6.0.3",
118
- "unplugin-dts": "^1.0.2",
118
+ "unplugin-dts": "^1.0.3",
119
119
  "vite": "^7.3.1",
120
120
  "vite-tsconfig-paths": "^6.1.1",
121
121
  "vitest": "4.0.18"