PageSourceSearch

https://www.cesoirtv.com/tgcfront/site/scripts/269.c1eaee985163e2fd.js

js cesoirtv.com collected 2026-10-02 07:14:23 UTC 54,746 bytes, 2 lines download raw bytes

1(self.webpackChunktv_front=self.webpackChunktv_front||[]).push([["269"],{8224(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateBookmark"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateBookmarkInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createBookmark"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bookmark"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:123}};t.loc.source={body:"mutation CreateBookmark($data: CreateBookmarkInput!) {\n	createBookmark(data: $data) {\n		status\n		bookmark {\n			id\n		}\n	}\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}t.definitions.forEach(function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,n)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,n)}),t.definitions&&t.definitions.forEach(function(t){e(t,n)})}(e,t),n[e.name.value]=t}}),e.exports=t,e.exports.CreateBookmark=function(e,t){var a={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=n[t]||new Set,r=new Set,o=new Set;for(s.forEach(function(e){o.add(e)});o.size>0;){var l=o;o=new Set,l.forEach(function(e){r.has(e)||(r.add(e),(n[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(t){var n=i(e,t);n&&a.definitions.push(n)}),a}(t,"CreateBookmark")},8771(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteBookmark"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"brand"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BookmarkBrandKey"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"contentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"type"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteBookmark"},arguments:[{kind:"Argument",name:{kind:"Name",value:"brand"},value:{kind:"Variable",name:{kind:"Name",value:"brand"}}},{kind:"Argument",name:{kind:"Name",value:"contentId"},value:{kind:"Variable",name:{kind:"Name",value:"contentId"}}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"Variable",name:{kind:"Name",value:"type"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:173}};t.loc.source={body:"mutation DeleteBookmark($brand: BookmarkBrandKey!, $contentId: String!, $type: String!) {\n	deleteBookmark(brand: $brand, contentId: $contentId, type: $type) {\n		status\n	}\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}t.definitions.forEach(function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);
1else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,n)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,n)}),t.definitions&&t.definitions.forEach(function(t){e(t,n)})}(e,t),n[e.name.value]=t}}),e.exports=t,e.exports.DeleteBookmark=function(e,t){var a={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=n[t]||new Set,r=new Set,o=new Set;for(s.forEach(function(e){o.add(e)});o.size>0;){var l=o;o=new Set,l.forEach(function(e){r.has(e)||(r.add(e),(n[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(t){var n=i(e,t);n&&a.definitions.push(n)}),a}(t,"DeleteBookmark")},3722(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ContentBookmarks"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"where"}},type:{kind:"NamedType",name:{kind:"Name",value:"WhereBookmarksInput"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bookmarks"},arguments:[{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"Variable",name:{kind:"Name",value:"where"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:214}};t.loc.source={body:"query ContentBookmarks($where: WhereBookmarksInput) {\n	bookmarks(where: $where) {\n		edges {\n			node {\n				id\n				type\n				content {\n					id\n					image\n					path\n					title\n				}\n				updatedAt\n			}\n		}\n		total\n	}\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}t.definitions.forEach(function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,n)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,n)}),t.definitions&&t.definitions.forEach(function(t){e(t,n)})}(e,t),n[e.name.value]=t}}),e.exports=t,e.exports.ContentBookmarks=function(e,t){var a={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=n[t]||new Set,r=new Set,o=new Set;for(s.forEach(function(e){o.add(e)});o.size>0;){var l=o;o=new Set,l.forEach(function(e){r.has(e)||(r.add(e),(n[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(t){var n=i(e,t);n&&a.definitions.push(n)}),a}(t,"ContentBookmarks")},9760(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ProfileSubscribersBookmarks"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"where"}},type:{kind:"NamedType",name:{kind:"Name",value:"WhereBookmarksInput"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bookmarks"},arguments:[{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"Variable",name:{kind:"Name",value:"where"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nickname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatar"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:186}};t.loc.source={body:"query ProfileSubscribersBookmarks($where: WhereBookmarksInput) {\n	bookmarks(where: $where) {\n		total\n		edges {\n			node {\n				user {\n					id\n					nickname\n					avatar\n				}\n			}\n		}\n	}\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}t.definitions.forEach(function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);
1else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,n)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,n)}),t.definitions&&t.definitions.forEach(function(t){e(t,n)})}(e,t),n[e.name.value]=t}}),e.exports=t,e.exports.ProfileSubscribersBookmarks=function(e,t){var a={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=n[t]||new Set,r=new Set,o=new Set;for(s.forEach(function(e){o.add(e)});o.size>0;){var l=o;o=new Set,l.forEach(function(e){r.has(e)||(r.add(e),(n[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(t){var n=i(e,t);n&&a.definitions.push(n)}),a}(t,"ProfileSubscribersBookmarks")},7715(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ProfileSubscriptionsBookmarks"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"where"}},type:{kind:"NamedType",name:{kind:"Name",value:"WhereBookmarksInput"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bookmarks"},arguments:[{kind:"Argument",name:{kind:"Name",value:"where"},value:{kind:"Variable",name:{kind:"Name",value:"where"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetContent"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nickname"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"avatar"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:235}};t.loc.source={body:"query ProfileSubscriptionsBookmarks($where: WhereBookmarksInput) {\n	bookmarks(where: $where) {\n		total\n		edges {\n			node {\n				type\n				targetContent {\n					... on User {\n						id\n						nickname\n						avatar\n					}\n				}\n			}\n		}\n	}\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var i=e.definitions[n];if(i.name&&i.name.value==t)return i}}t.definitions.forEach(function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,n)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,n)}),t.definitions&&t.definitions.forEach(function(t){e(t,n)})}(e,t),n[e.name.value]=t}}),e.exports=t,e.exports.ProfileSubscriptionsBookmarks=function(e,t){var a={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=n[t]||new Set,r=new Set,o=new Set;for(s.forEach(function(e){o.add(e)});o.size>0;){var l=o;o=new Set,l.forEach(function(e){r.has(e)||(r.add(e),(n[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(t){var n=i(e,t);n&&a.definitions.push(n)}),a}(t,"ProfileSubscriptionsBookmarks")},8644(e,t,n){"use strict";n.d(t,{A:()=>s});var i=n(1708),a=n(6638);class s extends a.A{useButton(e,t=!1,n=!1){window.pmcstarter(i=>i.useButton(e,t,n))}async isConnected(){return new Promise((e,t)=>{window.pmcstarter(async n=>{try{let t=await n.isConnected();e(t)}catch(e){console.warn("PmcBridge::isConnected error",e),t(e)}})})}async getConfigEnv(){return new Promise(e=>{window.pmcstarter(t=>{e(t.config.env)})})}async getNewsletterSubscriptions(){return new Promise((e,t)=>
1{window.pmcstarter(async n=>{try{let t=await n.getApiModule(),i=await t.getSubscriptions();e(i)}catch(e){console.warn("PmcBridge::getNewsletterSubscriptions error",e),t(e)}})})}async setNewsletterSubscriptions(e){return new Promise((t,n)=>{window.pmcstarter(async i=>{try{let n=await i.getApiModule(),a=await n.subscribe(e);t(a)}catch(e){console.warn("PmcBridge::setNewsletterSubscriptions error",e),n(e)}})})}async isPremium(){let e=await this.getConfigEnv(),t="prod"===e?"":`${e}-`;return!!(0,i.A)(`${t}pmc-premium`)}formatCustomGridData({bouquetId:e,channels:t}){return{profile:{tvguideTeleloisirs:{bouquet:e,channels:t.join(","),updatedAt:new Date().toISOString()}}}}async getUserSignupService(){return new Promise((e,t)=>{window.pmcstarter(async n=>{try{let t=await n.getUserSignupService();e(t)}catch(e){console.warn("PmcBridge::getUserSignupService error",e),t(e)}})})}cancelGoogleIdentity(){window.pmcstarter("cancelGoogleIdentity")}getTrigram(){let e=document.querySelector("[data-pmc-trigram]")?.getAttribute("data-pmc-trigram");return e?"ptv"===e?"tls":"ctv"===e?"tgc":e:null}}},6608(e,t,n){"use strict";n.d(t,{A:()=>i});class i{brandKey;constructor({trigram:e}){this.brandKey=`${e}-website`}getStorage({local:e=[],session:t=[]}){let n,i,a=e.length,s=t.length;return 0===a&&0===s?void console.warn("BrandStorage::getStorage, No keys to find"):(a>0&&(n=this.manipulateStorage({action:"get",type:"localStorage",keys:e})),s>0&&(i=this.manipulateStorage({action:"get",type:"sessionStorage",keys:t})),{local:n,session:i})}setStorage({local:e={},session:t={}}){let n=Object.keys(e).length,i=Object.keys(t).length;0===n&&0===i?console.warn("BrandStorage::setStorage, No data to set"):(n>0&&this.manipulateStorage({action:"set",type:"localStorage",data:e}),i>0&&this.manipulateStorage({action:"set",type:"sessionStorage",data:t}))}removeStorage({local:e=[],session:t=[]}){let n=e.length,i=t.length;0===e.length&&0===t.length?console.warn("BrandStorage::removeStorage, No keys to remove"):(n>0&&this.manipulateStorage({action:"remove",type:"localStorage",keys:e}),i>0&&this.manipulateStorage({action:"remove",type:"sessionStorage",keys:t}))}manipulateStorage({action:e,type:t,keys:n=[],data:i={}}){let a=JSON.parse(window[t].getItem(this.brandKey)||"{}");return({get:()=>{let e={};for(let t of n)e[t]=a[t];return e},set:()=>{let e=this.getMergedData({parsedData:a,data:i});window[t].setItem(this.brandKey,JSON.stringify(e))},remove:()=>{for(let e of n)delete a[e];Object.keys(a).length>0?window[t].setItem(this.brandKey,JSON.stringify(a)):window[t].removeItem(this.brandKey)}})[e]()}getMergedData({parsedData:e,data:t}){let n={...e};for(let i in t)Object.hasOwn(t,i)&&(t[i]instanceof Object&&e[i]instanceof Object?n[i]=this.getMergedData({parsedData:e[i],data:t[i]}):n[i]=t[i]);return n}}},9873(e,t,n){"use strict";function i(e){e.forEach(e=>{window.dataLayer.push(e),e.hitCallback&&"function"==typeof e.hitCallback&&e.hitCallback()})}n.d(t,{A:()=>i})},598(e,t,n){"use strict";function i(e){window.coreAds.queue?.push(()=>window.coreAds.addDisplaySlot(e))}n.d(t,{A:()=>i})},7238(e,t,n){"use strict";function i(){return document.documentElement.scrollTop||document.body.scrollTop||0}n.d(t,{A:()=>i})},7213(e,t,n){"use strict";function i({target:e,selectorString:t,nodeName:n}){return(Array.isArray(n)?n:[n]).some(n=>e.nodeName.toLowerCase()===n&&e.matches(t))}n.d(t,{A:()=>i})},8684(e,t,n){"use strict";function i(e,t){let n=window?.pmdConsent?.queue;if(n?.find(t=>t.type===e)){t instanceof Function&&t();return}if(n?.find(e=>"noConsentGiven"===e.type))return;let i=()=>{let n=window?.pmdConsent?.queue;n?.find(t=>t.type===e)?t instanceof Function&&t():n?.find(e=>"noConsentGiven"===e.type)||window.setTimeout(()=>window.requestAnimationFrame(i),100)};window.requestAnimationFrame(i)}n.d(t,{A:()=>i})},3452(e,t,n){"use strict";function i(e){let t=document.createElement("script");if(e.onLoadCallback&&(t.onload=e.onLoadCallback),e.onErrorCallback&&(t.onerror=e.onErrorCallback),"src"in e)t.src=e.src,t.defer=e.defer??!0;else if("inlineCode"in e)t.innerHTML=e.inlineCode;else throw Error('generateScriptElement::requires either "src" or "inlineCode" parameter');return t}n.d(t,{A:()=>i})},1708(e,t,n){"use strict";function i(e){let t=document.cookie.split(";"),n=t.map(e=>e.split("=")[1].trim())[t.map(e=>e.split("=")[0].trim()).indexOf(e)];return void 0===n?null:n}n.d(t,{A:()=>i})},6350(e,t,n){"use strict";n.d(t,{A:()=>i});class i{elements;onIntersection;once;observer;constructor({elements:e=null,onIntersection:t=()=>{},rootMargin:n=`0px 0px ${window.innerHeight}px 0px`,threshold:i=0,once:a=!0}){this.elements=e,this.onIntersection=t,this.once=a,this.observer=new IntersectionObserver(this.callbackOnIntersection.bind(this),{rootMargin:n,threshold:i})}observe(){this.elements?Array.isArray(this.elements)?this.elements.forEac
1h(e=>{this.observer.observe(e)}):this.observer.observe(this.elements):console.warn("Error: Observer::observe: No element to observe")}unobserve(e){this.observer.unobserve(e)}callbackOnIntersection(e){e.forEach(e=>{e.isIntersecting&&(this.once&&this.unobserve(e.target),this.onIntersection(e))})}}},6638(e,t,n){"use strict";n.d(t,{A:()=>i});class i{async getProfile(){return new Promise((e,t)=>{window.pmcstarter(async n=>{try{let t=await n.getProfile();e(t)}catch(e){console.warn("PmcBridge::getProfile error",e),t(e)}})})}async updateProfile({datas:e}){return new Promise((t,n)=>{window.pmcstarter(async i=>{try{let n=await i.getApiModule(),a=await n.updateProfile(e);t(a)}catch(e){console.warn("PmcBridge::updateProfile error",e),n(e)}})})}async isGranted(){return new Promise((e,t)=>{window.pmcstarter(async n=>{try{let t=(await n.getRoles()||[]).some(e=>["ADMIN","ALIVE"].includes(e));e(t)}catch(e){console.warn("PmcBridge::isGranted error",e),t(e)}})})}async getConfig(){return new Promise(e=>{window.pmcstarter(t=>e(t.config))})}async getPmcDomain(){return new Promise(e=>{window.pmcstarter(async t=>e(t.config.pmcUris.brandConnect))})}}},636(e,t,n){"use strict";n.d(t,{A:()=>a});var i=n(5896);function a({name:e,attributes:t={},srOnlyText:n="",useDefaultAttributes:a=!0}){let s={"aria-hidden":(!0).toString(),focusable:(!1).toString()};delete t.className,delete t.class;let r=a?Object.assign({},s,t||{}):t,o=(0,i.jsx)("svg",{className:`icon icon-${e}`,...r,children:(0,i.jsx)("use",{href:`#${e}`})});return n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"sr-only",children:n}),o]}):o}},8980(e,t,n){"use strict";let i;var a=n(9873),s=n(1708);window.navigator.userAgent.includes("jsdom")||window.dataLayer.push({auth_id:(0,s.A)("authId"),media_player:(i=[],[...document.querySelectorAll("[data-ads-core]")].forEach(e=>{let t=JSON.parse(e.getAttribute("data-ads-core")||"null"),n=t?.playerPosition==="Autre"?"embedded":t?.playerPosition,a=t?.playerProvider;n&&a&&i.push(`${n.toLowerCase()}${a}`)}),0===i.length?"none":i.join(",")),page_title:document.title});let r=async()=>{let e=await new Promise((e,t)=>{window.pmcstarter(async n=>{try{if((await n.getRoles()||[]).some(e=>["ADMIN","ALIVE"].includes(e))){let t=await n.getProfile();e(!!t&&!!t.profile?.tvguideTeleloisirs?.channels)}else e(!1)}catch(e){console.warn("PMC Profile::hasCustomGrid error",e),t(e)}})}),t=await new Promise((e,t)=>{window.pmcstarter(async n=>{try{if((await n.getRoles()||[]).some(e=>["ADMIN","ALIVE"].includes(e))){let t=await n.getProfile();e(!!t&&!!t.profile?.darkMode)}else e(!1)}catch(e){console.warn("PMC Profile::hasDarkMode error",e),t(e)}})});(0,a.A)([{custom_grid:e},{darkmode_pmc:t}])};(async()=>{let e=document.querySelector("body").getAttribute("data-pmc-trigram");(0,a.A)([{polls:!!window.polls}]),await r(),window.pmcstarter(async e=>{let t=await e.getProfile(),n=!1;if(t){let e=t?.paymentSubscriptions?.rights.filter(e=>"paid-web-content"===e);e?.length&&(n=!0)}window.dataLayer.push({paywall_subscriber:n})}),"tel"===e&&document.addEventListener("abtasty_executedCampaign",e=>{window.dataLayer.push({event:"dispatch",ab_test_variation:e.detail.variationId})})})();var o=n(8644),l=n(5943);new class{constructor(){this.pmcBridge=new o.A,this.datadogClient=null,this.config=null,this.trigram=null,this.useSlimSdk=!0}
1async init(){this.config=await this.pmcBridge.getConfig(),this.trigram=this.pmcBridge.getTrigram(),"tel"===this.trigram&&(this.useSlimSdk=!1),this.initDatadogClient()}initDatadogClient(){let e=document.querySelector("[data-deploy-version]").getAttribute("data-deploy-version"),t=this.config.env;this.datadogClient=new l.A({brandTrigram:this.trigram,version:e,sessionSampleRate:{tel:.4,tgc:15,tls:4}[this.trigram],sessionReplaySampleRate:0,options:{traceSampleRate:0,trackInteractions:!0,defaultPrivacyLevel:"allow",profilingSampleRate:t.includes("rec")?100:20},useSlimSdk:this.useSlimSdk}),this.datadogClient.initializeDatadogRUM(),this.datadogClient.init()}}().init();var c=n(6638);class d{defaultSignUpService;brandLegalLink;customRoutes;isOpenGranted;routes;container;appElement;closeButton;pmcBridge;isLoaded;constructor({defaultSignUpService:e,brandLegalLink:t,customRoutes:n=[],isOpenGranted:i=()=>!0}){this.defaultSignUpService=e,this.brandLegalLink=t,this.customRoutes=n,this.isOpenGranted=i,this.routes=["/compte","/connexion","/lien-connexion","/inscription","/reinitialisation","/finalisation",...this.customRoutes.map(e=>e.path)],this.container=document.querySelector(".userLoginTunnel"),this.appElement=document.querySelector(".userLoginTunnel-app"),this.closeButton=this.container.querySelector(".userLoginTunnel-close"),this.isLoaded=!1,this.pmcBridge=new c.A,this.onHashChange=this.onHashChange.bind(this),this.onUserPressEscape=this.onUserPressEscape.bind(this)}init(){this.addEvents(),this.checkOpening()&&this.openPanel()}checkOpening(){let e=window.location.hash.substring(1);return this.routes.includes(e)&&this.isOpenGranted(e)}addEvents(){window.addEventListener("hashchange",this.onHashChange),document.addEventListener("insitePanel",e=>{let t=e.detail;this.appElement.dataset.dynamicProps=JSON.stringify(t),window.location.hash=t.route})}onHashChange(e){let t=e?.oldURL?e.oldURL.split("#")[1]:"",n=window.location.hash.substring(1);this.checkOpening()&&!this.appElement.hasChildNodes()?this.openPanel():!this.routes.includes(n)&&this.routes.includes(t)&&this.closePanel()}onUserPressEscape(e){"Escape"===e.key&&this.container.classList.contains("show")&&this.closeButton.dispatchEvent(new window.Event("click",{bubbles:!0}))}async openPanel(){if(document.querySelector("html").classList.add("userLoginTunnel-active"),this.container.classList.add("show"),window.addEventListener("keydown",this.onUserPressEscape),!this.isLoaded&&!this.appElement.hasChildNodes()){this.isLoaded=!0;let{default:e}=await Promise.all([n.e("415"),n.e("822")]).then(n.bind(n,2326));new e({defaultSignUpService:this.defaultSignUpService,brandLegalLink:this.brandLegalLink,customRoutes:this.customRoutes}).init()}}closePanel(){document.querySelector("html").classList.remove("userLoginTunnel-active"),this.container.classList.remove("show"),window.removeEventListener("keydown",this.onUserPressEscape),delete this.container.dataset.ult}}var u=n(5896),h=n(1029),m=n(5961),p=n(1426),g=n(1445),f=n(4068),v=n(5496),b=n(6737);async function k({config:e,isCredentialsRequired:t=!1,mode:n=null}){if(!e.uri)throw Error("Apollo Client: URL is required");let i={"content-type":"application/json"};e.authorization&&(i.authorization=`Bearer ${e.authorization}`),e.apiKey&&(i["x-api-key"]=e.apiKey),e.introspectionKey&&(i["x-introspection-key"]=e.introspectionKey);let a=new f.z({attempts:{max:2}}),s=h.C.from([a,new m.P({uri:e.uri3?e.uri3:e.uri,headers:i,credentials:t?"include":"omit",useGETForQueries:!n,fetch:(e,t)=>fetch(e.toString().replace(/(%20)+/g,"%20"),t),print:(e,t)=>(0,b.Z)(t(e))})]);globalThis.__apolloClients||(globalThis.__apolloClients={});let r=globalThis.__apolloClients??{},o=`${e.uri}::${t?"credentials":"no-credentials"}`;if(r[o])return r[o];let l=new p.R({link:s,cache:new g.D,devtools:{enabled:!0},localState:new v.X({})});return r[o]=l,l}class w{config;isCredentialsRequired;mode;constructor({config:e,isCredentialsRequired:t,mode:n}){this.config=e,this.isCredentialsRequired=t,this.mode=n}getClient(){return k({config:this.config,isCredentialsRequired:this.isCredentialsRequired,mode:this.mode})}}function y({context:e,data:t,nullMessage:n,backgroundColor:i}){return null==t?(!function({context:e,data:t}){console.log(`%c${e} NULL ASSERTION`,"color: #16262E; font-weight: bold; background-color:rgb(255, 255, 255); padding: 4px",t)}({context:e,data:t}),{message:n||`${e} is null`,error:null}):("object"==typeof t&&null!==t&&"errors"in t&&t.errors?!function({context:e,error:t}){console.log(`%c${e} ERRORS`,"color: #16262E; font-weight: bold; background-color:rgb(255, 0, 0); padding: 4px",t)}({context:e,error:t.errors}):!function({context:e,data:t,backgroundColor:n="#93C48B"}){console.log(`%c${e}`,`color: #16262E; font-weight: bold; background-color: ${n}; padding: 4px`,t)}({context:e,data:t,backgroundColor:i}),t)}var S=n(8224),C=n.n(S),E=n(8771),N=n.n(E),B=n(3722),A=n.n(B),L=n(9760),T=n.n(L),P=n(7715),x=n.n(P);class q{hub;pmcBridge;brand;constructor({brand:e}){this.pmcBridge=new o.A,this.brand=e,this.hub=new w({config:window.frontConfig.env.gateway})}async getHub(){return await this.pmcBridge.isGranted()?new w({config:window.frontConfig.env.gateway,isCredentialsRequired:!0,mode:!0}):this.hub}async getId(){let e=await this.pmcBridge.getProfile();return e?e.id:null}async getHubForMutation(){return new w({config:window.frontConfig.env.gateway,isCredentialsRequired:!0})}async getBookmarks({id:e,type:t}){try{let n=await this.getHub(),i=await (await n.getClient()).query({query:A(),variables:{where:{type:{eq:t},content:{id:{eq:e}}}}});return y({context:"Bookmarks",data:i,nullMessage:"Bookmarks is null",backgroundColor:"#5B618A"}).data.bookmarks}catch(e){return console.error("Apollo - GetBookmarks Error : ",{error:e}),{edges:[],total:0}}}async createBookmark({type:e,id:t,path:n,contentType:i}){try{let a=await this.getHubForMutation(),s=await (await a.getClient()).mutate({mutation:C(),variables:{data:{type:e,content:{id:t,path:n,type:i},brand:{key:this.brand}}}});return y({context:"CreateBookmark",data:s,nullMessage:"CreateBookmark is null",backgroundColor:"#5B618A"}).data.createBookmark.status}catch(e){return console.error("Apollo - CreateBookmark Error : ",{error:e}),[]}}async deleteBookmark({type:e,id:t}){try{let n=await this.getHubForMutation(),i=await (await n.getClient()).mutate({mutation:N(),variables:{brand:this.brand,contentId:t,type:e}});return y({context:"DeleteBookmark",data:i,nullMessage:"DeleteBookmark is null",backgroundColor:"#5B618A"}).data.deleteBookmark.status}catch(e){return console.error("Apollo - DeleteBookmark Error : ",{error:e}),[]}}async getConfiguration(){let e=new BookmarkClient({trigram:"tel",env:await this.pmcBridge.getConfigEnv(),apiVersion:2,userId:await this.getId()});try{return(await e.getConfiguration()).json()}catch(e){return console.error("BookmarkClient - GetConfiguration Error : ",{error:e}),[]}}async postConfiguration(e){let t=new BookmarkClient({trigram:"tel",env:await this.pmcBridge.getConfigEnv(),apiVersion:2,userId:await this.getId()});try{return(await t.postConfiguration(e)).json()}catch(e){return console.error("BookmarkClient - PostConfiguration Error : ",{error:e}),[]}}async getProfileSubscriptionsBookmarks({id:e}){try{let t=await this.getHub(),n=await (await t.getClient()).query({query:x(),variables:{where:{user:{id:{eq:e}},type:{eq:"follow:user"},brand:{key:{eq:this.brand}}}}});return y({context:"getProfileSubscriptions",data:n,nullMessage:"getProfileSubscriptions is null",backgroundColor:"#5B618A"}).data.bookmarks.edges}catch(e){return console.error("Apollo - getProfileSubscriptions Error : ",{error:e}),[]}}async getProfileSubscribersBookmarks({id:e}){try{let t=await this.getHub(),n=await (await t.getClient()).query({query:T(),variables:{where:{type:{eq:"follow:user"},user:{id:{eq:e}},brand:{key:{eq:this.brand}}}}});return y({context:"getProfileSubscribers",data:n,nullMessage:"getProfileSubscribers is null",backgroundColor:"#5B618A"}).data.bookmarks.edges}catch(e){return console.error("Apollo - getProfileSubscribersBookmarks Error : ",{error:e}),[]}}}class F{constructor(){this.pmc=new o.A,this.bookmark=new q({brand:"TEL"})}async setAlertConsent(e="tele_loisirs_alert"){let t=e.split(",");await this.pmc.setNewsletterSubscriptions(t)}async getAlertConsent(e="tele_loisirs_alert"){let t=await this.pmc.getNewsletterSubscriptions([e]);return"tele_loisirs_alert"===e?t.reduce((e,t)=>
1t,{}):t}async updateAlertConfig(e,t="set"){await this.bookmark.postConfiguration([{bookmark_type:"alert"===e?"follow:broadcast":"follow:people",notification_type:"email",enable:"set"===t}])}async getAlertConfig(e){return(await this.bookmark.getConfiguration()).filter(e=>"email"===e.notificationType).filter(t=>t.bookmarkType===e&&t).reduce((e,t)=>t,{})}}function D(){let e=document.querySelector(".userLoginTunnel-container"),t=`${window.location.origin}${window.location.pathname}`;return e.hasAttribute("data-origin-hash")?`${t}${e.getAttribute("data-origin-hash")}`:t}let O={tel:{legalsUrl:"https://www.prismamedia.com/mentions-legales-tel",faqUrl:"https://connect.programme-tv.net/faq"},tgc:{legalsUrl:"https://www.prismamedia.com/mentions-legales-ctv",faqUrl:"https://connect.programme.tv/faq"},tls:{legalsUrl:"https://www.prismamedia.com/mentions-legales-t2s/",faqUrl:"https://connect.cesoirtv.com/faq"}};var I=n(6608);class H{parentContainer;firstFocusableElement;focusableElements;focusableContent;lastFocusableElement;firstActiveElementToFocus;lastFocusableElementOriginalValue;constructor({parentContainer:e,firstFocusableElement:t,lastFocusableElement:n,firstActiveElementToFocus:i=!1}){this.parentContainer=e,this.firstFocusableElement=t,this.focusableElements='button:not([disabled]), [href]:not(use), input, select, textarea, [tabindex]:not([tabindex="-1"])',this.focusableContent=[...this.parentContainer.querySelectorAll(this.focusableElements)],this.lastFocusableElement=n,this.firstActiveElementToFocus=i,this.updateFocusableContent=this.updateFocusableContent.bind(this)}init(){this.addEvents(),this.firstActiveElementToFocus instanceof HTMLElement?this.firstActiveElementToFocus.focus():this.firstFocusableElement.focus()}addEvents(){document.addEventListener("keydown",this.updateFocusableContent)}updateFocusableContent(e){this.focusableContent=[...this.parentContainer.querySelectorAll(this.focusableElements)];let t=this.focusableContent[this.focusableContent.length-1];this.lastFocusableElementOriginalValue=this.lastFocusableElement,this.focusableContent.includes(this.lastFocusableElement)||(this.lastFocusableElement=t),this.setFocus(e)}setFocus(e){("Tab"===e.key||9===e.keyCode)&&this.isTabPressed(e),this.lastFocusableElementOriginalValue&&(this.lastFocusableElement=this.lastFocusableElementOriginalValue)}isTabPressed(e){e.shiftKey?this.focusBackward(e):this.focusForward(e)}focusBackward(e){document.activeElement===this.firstFocusableElement&&(e.preventDefault(),this.lastFocusableElement.focus())}focusForward(e){document.activeElement===this.lastFocusableElement&&(e.preventDefault(),this.firstFocusableElement.focus())}destroy(){document.removeEventListener("keydown",this.setFocus)}}var M=n(7213),R=n(2799),j=n(636);let $=function({type:e,tag:t="button",content:n,iconLeft:i,iconLeftOptions:a={},iconRight:s,iconRightOptions:r={},size:o,srOnlyText:l,attributes:c={}}){let{className:d,...h}=c||{},m="button"!==t||h.type?h:{type:"button",...h};return(0,u.jsxs)(t,{className:`cta ${d||""} ${o} ${e}`,...m,children:[l&&(0,u.jsx)("span",{className:"sr-only",children:l}),(0,u.jsxs)("span",{className:"cta-content",children:[i&&(0,u.jsx)(j.A,{name:i,...a}),n&&(0,u.jsx)("span",{className:"cta-text",children:n}),s&&(0,u.jsx)(j.A,{name:s,...r})]})]})};function V(e){let t={alert:{text:"Recevez par email les interactions des membres de la communaut\xe9 T\xe9l\xe9-Loisirs sur vos avis.",buttonText:"Non merci aux mails"},star:{text:"Recevez par email les interactions des membres de la communaut\xe9 T\xe9l\xe9-Loisirs sur vos avis.",buttonText:"Non merci aux mails"},comment_like_review:{text:"Recevez par email les interactions des membres de la communaut\xe9 T\xe9l\xe9-Loisirs sur vos avis.",buttonText:"Non merci aux mails"}},n=t[e.feature.entry].text,i=t[e.feature.entry].buttonText;return(0,u.jsxs)("div",{className:"ultConsent",children:[(0,u.jsx)("h2",{className:"ultConsent-title",children:"Derni\xe8re \xe9tape !"}),(0,u.jsx)("p",{className:"ultConsent-text",children:n}),(0,u.jsx)(j.A,{name:"letter"}),(0,u.jsx)("div",{className:"ultConsent-buttons",children:(0,u.jsx)($,{type:"primary",tag:"button",content:"Je veux recevoir les emails T\xe9l\xe9-Loisirs !",size:"large",attributes:{className:"ultConsent-acceptButton"}})}),(0,u.jsxs)("p",{className:"ultConsent-link",children:["Vous pouvez \xe0 tout moment modifier vos pr\xe9f\xe9rences en allant dans"," ",(0,u.jsx)("a",{href:"/mes-parametres",children:"vos param\xe8tres"})]}),(0,u.jsx)("div",{className:"ultConsent-buttons",children:(0,u.jsx)($,{type:"secondary",tag:"button",content:i,size:"large",attributes:{className:"transparent ultConsent-denyButton"}})})]})}class _ extends R.uA{element=".ultConsent";constructor(e){super(e),this.redirectTo=D(),this.alertBridge=new F,this.brandStorage=new I.A({trigram:"tel"}),this.onClickOnButtons=this.onClickOnButtons.bind(this)}getStorageProps(){let e=this.brandStorage.getStorage({session:["pmcInSiteFeatureProps"]});return e?.session.pmcInSiteFeatureProps||{}}render(){return(0,u.jsx)(V,{feature:this.getStorageProps()})}afterRender(){this.container=document.querySelector(this.element),this.button=this.container.querySelector(".ultConsent-acceptButton"),this.addEvents(),this.setFocusTrap()}beforeDestroy(){this.focusTrap.destroy()}setFocusTrap(){this.focusTrap=new H({parentContainer:document.querySelector(".userLoginTunnel"),firstFocusableElement:document.querySelector(".userLoginTunnel-close"),lastFocusableElement:this.container.querySelector(".ultConsent-link a:last-child")}),this.focusTrap.init()}addEvents(){this.container.addEventListener("click",this.onClickOnButtons)}onClickOnButtons(e){let t=e.target,n=(0,M.A)({target:t,selectorStr
1ing:".ultConsent-acceptButton",nodeName:["button"]}),i=(0,M.A)({target:t,selectorString:".ultConsent-denyButton",nodeName:["button"]});n?this.onClickOnAccept(e):i&&this.onClickOnDeny(e)}async onClickOnAccept(e){e.preventDefault();let t=this.button.querySelector(".cta-content");t.classList.add("pmcInsiteLoading"),await this.alertBridge.setAlertConsent(this.getStorageProps().consentName),await this.alertBridge.updateAlertConfig(this.getStorageProps().entry),this.closeButton=document.querySelector(".userLoginTunnel-close"),this.closeButton.dispatchEvent(new CustomEvent("click",{bubbles:!0,detail:{consent:!0}})),t.classList.remove("pmcInsiteLoading")}onClickOnDeny(e){e.preventDefault(),document.dispatchEvent(new CustomEvent("ultClosing",{detail:{consent:!1}})),window.location.hash="!"}}function U(e){return(0,u.jsxs)("div",{className:"ultPseudo",children:[(0,u.jsx)("p",{className:"ultPseudo-mainText",children:"Derni\xe8re \xe9tape !"}),(0,u.jsx)("p",{className:"ultPseudo-secondaryText",children:e.featureEntry.intro}),(0,u.jsxs)("form",{className:"ultPseudo-form",children:[(0,u.jsxs)("div",{className:"ultPseudo-formPseudo",children:[(0,u.jsx)("label",{htmlFor:"pmc-pseudo",children:"Mon pseudo"}),(0,u.jsx)("input",{type:"text",name:"pseudo",id:"pmc-pseudo",placeholder:"Nom d'utilisateur"}),(0,u.jsx)("span",{className:"ultPseudo-formInputSvg",children:(0,u.jsx)(j.A,{name:"check"})})]}),(0,u.jsx)("div",{id:"pmc-pseudo-error"}),(0,u.jsx)("div",{className:"ultPseudo-cta",children:(0,u.jsx)($,{type:"primary",tag:"button",content:"Je publie mon commentaire",size:"large",attributes:{disabled:!0,className:"ultPseudo-formButton"}})})]})]})}class G extends R.uA{element=".ultPseudo";constructor(e){super(e),this.timer=null,this.redirectTo=D(),this.pmcBridge=new o.A,this.brandStorage=new I.A({trigram:"tel"}),this.onClickOnSubmit=this.onClickOnSubmit.bind(this),this.onKeyUpOnStep=this.onKeyUpOnStep.bind(this)}getStorageProps(){let e=this.brandStorage.getStorage({session:["pmcInSiteFeatureProps"]});return e?.session.pmcInSiteFeatureProps||{}}beforeRender(){let e=this.getStorageProps();this.featureEntry=({pseudo:{intro:"Choisissez le pseudonyme (20 caract\xe8res max.) avec lequel vous publiez vos commentaires",type:"{type}"}})[e.entry],e.dynamicValues&&(this.featureEntry=function({dynamicValues:e,featureEntry:t}){return Object.keys(e).forEach(n=>{Object.keys(t).forEach(i=>{let a=`{${n}}`;t[i]=t[i].replace(RegExp(a,"g"),e[n])})}),t}({dynamicValues:e.dynamicValues,featureEntry:this.featureEntry})),this.type="comment"===this.featureEntry.type?"comments_article":"notice_program"}render(){return(0,u.jsx)(U,{featureEntry:this.featureEntry})}afterRender(){this.container=document.querySelector(this.element),this.pseudo=this.container.querySelector("#pmc-pseudo"),this.pseudoError=this.container.querySelector("#pmc-pseudo-error"),this.pseudoSvg=this.container.querySelector(".ultPseudo-formInputSvg"),this.button=this.container.querySelector(".ultPseudo-formButton"),this.addEvents(),this.setFocusTrap()}beforeDestroy(){this.focusTrap.destroy()}setFocusTrap(){this.focusTrap=new H({parentContainer:document.querySelector(".userLoginTunnel"),firstFocusableElement:document.querySelector(".userLoginTunnel-close"),lastFocusableElement:this.button}),this.focusTrap.init()}addEvents(){this.container.addEventListener("keyup",this.onKeyUpOnStep),this.button.addEventListener("click",this.onClickOnSubmit)}onKeyUpOnStep(){clearTimeout(this.timer),this.timer=setTimeout(()=>{let e=this.pseudo.value;this.pseudoError.innerHTML="",this.button.setAttribute("disabled",!0),this.pseudo.classList.remove("error"),this.pseudoSvg.classList.remove("active"),e.length>=3&&e.length<=20?(this.button.removeAttribute("disabled"),this.pseudo.classList.remove("error"),this.pseudoSvg.classList.add("active")):e.length>=20?(this.pseudo.classList.add("error"),this.pseudoError.innerHTML="Votre pseudo doit faire 20 caract\xe8res max."):(this.button.setAttribute("disabled",!0),this.pseudo.classList.add("error"),this.pseudoSvg.classList.remove("active"))},200)}onClickOnSubmit(e){e.preventDefault(),this.ctaContent=this.button.querySelector(".cta-content"),this.ctaContent.classList.add("pmcInsiteLoading"),this.pmcBridge.updateProfile({datas:{nickname:this.pseudo.value}}).then(()=>{this.brandStorage.setStorage({session:{urvNickname:this.pseudo.value}});let e=document.querySelector(".userLoginTunnel-close"),t=this.brandStorage.getStorage({local:["saveComment","saveLike"]}
1),n=t?.local.saveComment,i={comment:!0,nickname:this.pseudo.value,...n};e.dispatchEvent(new CustomEvent("click",{bubbles:!0,detail:i}))}).catch(e=>{this.ctaContent.classList.remove("pmcInsiteLoading"),this.button.setAttribute("disabled",!0),this.pseudo.classList.add("error"),this.pseudoSvg.classList.remove("active");let t=Number.parseInt(e.cause.code.split("-")[2],10),n={136:"Le caract\xe8re @ n'est pas autoris\xe9.",138:"Ce pseudo est interdit.",default:"Ce pseudo est d\xe9j\xe0 utilis\xe9."};this.pseudoError.innerHTML=n[t]||n.default})}}let z=function(){let e=window.location.search.match(/[?&]signupservice=([^&]*)/i);if(e?.[1])try{return decodeURIComponent(e[1])}catch(e){console.error("Error decoding signupservice parameter",e)}return null}();!window.sessionStorage.getItem("signupservice-marketing")&&z?window.sessionStorage.setItem("signupservice-marketing",z):window.sessionStorage.removeItem("signupservice-marketing");let K=document.querySelector(".userLoginTunnel")?.getAttribute("data-trigram")||"tel",J=`${{tel:"TEL",tls:"PTV",tgc:"CTV"}[K]||"TEL"}_COMPTE-PMC_HEADER_SITE-TEL_SE-CONNECTER`,W=O[K]?.legalsUrl||O.tel.legalsUrl;window.pmcstarter(async e=>{let t=await e.isConnected();new d({defaultSignUpService:J,brandLegalLink:W,customRoutes:[{path:"/consentement",component:_},{path:"/pseudo",component:G}],isOpenGranted:e=>!t||["/consentement","/pseudo"].includes(e)}).init()}),n.p,n.p;var Q=n(3452);class X{config;onReady;pmcBridge;constructor({config:e,onReady:t=()=>{}}){this.config=e,this.onReady=t,this.pmcBridge=new c.A,this.onBatchLoaded=this.onBatchLoaded.bind(this),this.onBatchApi=this.onBatchApi.bind(this),this.onSubscriptionChanged=this.onSubscriptionChanged.bind(this)}init(){this.declareQueue();let e=(0,Q.A)({src:"https://via.batch.com/v4/bootstrap.min.js",onLoadCallback:this.onBatchLoaded});document.body.appendChild(e)}declareQueue(){window.batchSDK=window.batchSDK||((...e)=>{(window.batchSDK.q=window.batchSDK.q||[]).push(e)})}onBatchLoaded(){window.batchSDK("setup",this.config.setup),window.batchSDK(this.onBatchApi)}async onBatchApi(e){e.on("subscriptionChanged",this.onSubscriptionChanged),this.onReady(e),this.setCustomUserId(e)}async onSubscriptionChanged(e,t){t.subscribed&&"true"!==window.localStorage.getItem("batchSubscriptionChanged")&&(window.localStorage.setItem("batchSubscriptionChanged","true"),(await window.navigator.serviceWorker.ready).showNotification(this.config.showNotification.title,this.config.showNotification.options??{}))}async setCustomUserId(e){let t=await this.pmcBridge.getProfile(),n=await e.profile();if(t)await n.identify({customId:t.id}),window.dataLayer.push({event:"dispatch",batch_user_id:t.id});else{let t=await e.getInstallationID();await n.identify({customId:t}),window.dataLayer.push({event:"dispatch",batch_user_id:t})}}}var Y=n(8684);new class{constructor(){this.setup={defaultIcon:`${window.location.protocol}//${window.location.host}//tgcfront/site//static/logo-192x192.png`,smallIcon:`${window.location.protocol}//${window.location.host}//tgcfront/site//static/logo-105x49.png`,ui:{native:{autoShow:!0}}},this.setup.apiKey="D7F843B0D0D5496CAEDC4C837881380E",this.setup.subdomain="cesoirtv",this.setup.authKey="2.M26p/08CM5ed0vseHh9fECyeIkBtkXKkFOvkPdDLgyg=",this.setup.vapidPublicKey="BOMJzuYtnuE1JNLZyM+yUId7YAJtmXAJ8wQJoNTA5WzMIJF9h4RIQRMotX4Md8r7NeH77n+sll8n92lHJFoE7tw="}init(){(0,Y.A)("allConsentGiven",()=>{this.batchSdk=new X({config:{setup:this.setup,showNotification:{title:"TV Grandes Cha\xeenes vous remercie pour votre inscription.",options:{body:"La r\xe9daction s\xe9lectionne les meilleures news pour vous !  ",data:{title:" ",alert:" ","com.batch":{da:{a:"batch.deeplink",args:{l:"https://www.cesoirtv.com/#utm_source=edito&utm_medium=push-web&utm_campaign=welcome",newTab:!0}}}}}}}}),this.batchSdk.init()})}}().init();var Z=n(6350),ee=n(598);class et{constructor(){this.body=document.querySelector("body"),this.bannerTopElement=document.querySelector(".ads-banniereHaute .ads-core-placer"),this.natives=[...document.querySelectorAll(".ads-native")],this.outbrain=document.querySelector(".ads-outbrain"),this.ads={},this.adsMinHeightEnabled=!1,this.isCoreAdsDisabled=this.body.classList.contains("core-ads-disabled"),this.pmcBridge=new o.A,this.callbackSlotRender=this.callbackSlotRender.bind(this),this.onAdsRender=this.onAdsRender.bind(this)}async onConsentGiven(){await this.initScripts()}async lazyLoadOutbrain(){let e,t;
1!await this.pmcBridge.isPremium()&&(e=[...document.querySelectorAll(".ads-outbrain")],t=null,e.length>1?e.forEach(e=>{!t&&e.offsetHeight>0&&(t=e)}):1===e.length&&(t=e[0]),t&&new Z.A({elements:t,onIntersection:()=>{let n=(0,Q.A)({src:t.querySelector("[data-widget-src]").getAttribute("data-widget-src")});document.getElementsByTagName("body")[0].appendChild(n),n.onload=()=>{try{window.OBR.extern.researchWidget(),e.forEach(e=>e.classList.add("adLoaded"))}catch(e){console.warn("Outbrain error")}}}}).observe())}lazyLoadNative(){let e=document.querySelector("html").classList.contains("darkMode")?"darkMode":"lightMode";this.natives.forEach(t=>(function(e,{customType:t=""}={}){let n=e.getAttribute("id");if(n){let i=e.getAttribute("data-ads-core"),a=e.closest("[data-ads-custom-type]");if(a){let s=JSON.parse(a.getAttribute("data-ads-custom-type")||""),r=s?.[t];r&&(n=n.replace("customType",r),e.setAttribute("id",n),i&&e.setAttribute("data-ads-core",i.replace("customType",r)),a.removeAttribute("data-ads-custom-type"))}e.classList.remove("ads-lazyload"),e.classList.add("ads-core-placer"),(0,ee.A)(n)}})(t.querySelector(".ads-lazyload"),{customType:e}))}getBannerTopData(){this.ads.bannerTop={elementId:this.bannerTopElement.getAttribute("id")}}addGoogleTagListener(){!function({callback:e=!1}={}){window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push(()=>{window.googletag.pubads().addEventListener("slotRenderEnded",t=>{e&&"function"==typeof e&&e(t.slot.getSlotElementId())})})}({callback:this.callbackSlotRender})}callbackSlotRender(e){this.ads.bannerTop&&e===this.ads.bannerTop.elementId&&this.addBannerTopRules(),this.onAdsRender(e)}addBannerTopRules(){this.detectBannerTopHeight()}detectBannerTopHeight(){let e=this.bannerTopElement.closest(".innerAds");setTimeout(()=>{this.getElementsHeight(e)>200&&!this.adsMinHeightEnabled&&(this.adsMinHeightEnabled=!0,e.style.minHeight="250px")},1e3)}getElementsHeight(e){return e.getBoundingClientRect().height}onAdsRender(e){let t=this.getAdPlaceholer(e);t&&this.setAdPlaceholderLoaded(t)}getAdPlaceholer(e){let t=document.querySelector(`#corps #${e}`);return t?t.closest(".containerAds"):null}setAdPlaceholderLoaded(e){e.classList.add("adLoaded")}}new class extends et{constructor(){super(),this.body=document.querySelector("body"),this.bannerTopElement=document.querySelector(".ads-banniereHaute .ads-core-placer"),this.outbrain=document.querySelector(".ads-outbrain"),this.ads={},this.adsMinHeightEnabled=!1,this.isCoreAdsDisabled=this.body.classList.contains("core-ads-disabled")}
1async init(){(0,Y.A)("allConsentGiven",async()=>await this.onConsentGiven()),(0,Y.A)("adsConsentGiven",async()=>await this.onConsentGiven()),null!==this.bannerTopElement&&this.getBannerTopData(),this.addGoogleTagListener();let e=document.querySelector("body")?.getAttribute("data-pmc-trigram"),t=(0,s.A)("x-ff-abtest-group");if(e){e=e.toUpperCase();let n={};["A","B"].includes(t)&&n[e]?.[t]&&(0,a.A)([{...n[e][t]}])}}async initScripts(){this.outbrain&&await this.lazyLoadOutbrain()}}().init()},4184(e,t,n){"use strict";var i=n(8644),a=n(6608),s=n(7213);new class{constructor(){this.topBar=document.querySelector(".headerTopbar"),this.navbar=document.querySelector(".headerNavbar"),this.menuButtonBurger=document.querySelector(".headerTopbar-menuButtonBurger"),this.profileButtonTop=this.topBar.querySelector(".headerTopbar-profileButton"),this.profileMenu=this.topBar.querySelector(".headerTopbar-profileMenu"),this.textButton=this.topBar.querySelector(".headerTopbar-profileButtonText"),this.elementTarget=document.querySelector("html"),this.connectedTextButton=this.topBar.querySelector(".headerTopbar-profileButtonText").getAttribute("data-text-connected"),this.connectButton=this.topBar.querySelector(".pmc-authentification"),this.pmcBridge=new i.A,this.brandStorage=null,this.previousHash=null,this.isMobile=window.matchMedia("(max-width: 749px)").matches,this.onHashChangeToggleMenuState=this.onHashChangeToggleMenuState.bind(this),this.topbarAction=this.topbarAction.bind(this),this.onDocumentClicked=this.onDocumentClicked.bind(this)}
1async init(){this.isGranted=await this.pmcBridge.isGranted(),await this.actionIsGranted(),"#menu"===window.location.hash&&this.showNavbarOverlay(),this.addEvents()}addEvents(){window.addEventListener("hashchange",this.onHashChangeToggleMenuState),this.topBar.addEventListener("click",this.topbarAction)}onHashChangeToggleMenuState(e){this.previousHash=e?.oldURL?e.oldURL.split("#")[1]:null,"#menu"===window.location.hash?this.showNavbarOverlay():this.hideNavbarOverlay()}topbarAction(e){let t=e.target,n=(0,s.A)({target:t,selectorString:".headerTopbar-menuButton",nodeName:["button"]}),i=(0,s.A)({target:t,selectorString:".headerTopbar-profileButton",nodeName:["button"]});n?this.toggleNavbar():i&&!this.isGranted?this.onClickProfileButton():i&&this.isGranted&&this.showSubMenu()}createOutsideClickListener(){document.addEventListener("click",this.onDocumentClicked)}async onClickProfileButton(){try{this.isGranted||(this.brandStorage=new a.A({trigram:await this.pmcBridge.getTrigram()}),this.brandStorage.setStorage({session:{pmcInSiteFeatureProps:{entry:"header"}}}),window.location.hash="/compte")}catch(e){console.error("Error on click profile button:",e)}}onDocumentClicked(e){let t=e.target;(0,s.A)({target:t,selectorString:".headerTopbar-profileButton",nodeName:["button"]})||this.toggleProfileMenu()}toggleNavbar(){"#menu"===window.location.hash?(this.hideNavbarOverlay(),history.replaceState(null,null,window.location.href.split("#")[0])):window.location.hash="#menu"}showNavbarOverlay(){this.isMobile&&(this.navbar.classList.add("opened"),this.menuButtonBurger.classList.add("open"),this.elementTarget.classList.add("headerNavbar-active"))}hideNavbarOverlay(){this.isMobile&&(this.navbar.classList.remove("opened"),this.menuButtonBurger.classList.remove("open"),this.elementTarget.classList.remove("headerNavbar-active"))}actionLogin(){this.changeButtonText(),this.showProfileBlock()}changeButtonText(){this.textButton.innerHTML=this.connectedTextButton}async showProfileBlock(){let e=await this.pmcBridge.getProfile(),t=e?.avatar;this.profileButtonTop.classList.add("connected");let n=this.profileButtonTop.querySelector(".cta-content");if(n){let e=n.querySelector("svg");if(e&&e.remove(),t){let e=document.createElement("img");e.src=t,e.alt="User Avatar",e.className="headerTopbar-profileAvatar",n.prepend(e)}}}showSubMenu(){this.isGranted&&this.profileMenu.classList.toggle("opened")}async actionIsGranted(){this.isGranted?this.actionLogin():this.showProfileBlock()}}().init();var r=n(9873),o=n(7238);null!==document.querySelector("#header")&&new class{constructor(){this.header=document.querySelector("#header"),this.headerTopbar=document.querySelector(".header-topbar"),this.headerNavbar=document.querySelector(".header-navbar"),this.newsletterLink=document.querySelector('.headerNavbar-listItemLinkMore[title="Newsletter"]'),this.delta=5,this.timer=250,this.didScroll=!1,this.lastScrollTop=0,this.currentScroll=0,this.headerOffsetHeight=this.header.offsetHeight,this.headerNavbarOffsetHeight=this.headerNavbar.offsetHeight,this.headerTopbarOffsetHeight=this.headerTopbar.offsetHeight,this.onScroll=this.onScroll.bind(this),this.updateWindowSize=this.updateWindowSize.bind(this),this.onClickNewsletterLink=this.onClickNewsletterLink.bind(this)}init(){this.updateWindowSize(),this.addEvents(),this.checkHeaderNavbarStickyness()}addEvents(){window.addEventListener("scroll",this.onScroll,{passive:!0}),window.addEventListener("resize",this.updateWindowSize,{passive:!0}),this.newsletterLink.addEventListener("click",this.onClickNewsletterLink)}onScroll(){window.matchMedia("(min-width: 750px)").matches&&(this.didScroll=!0,this.currentScroll=(0,o.A)(),this.isScrollBeforeHeaderHeight()?this.handleScrollBeforeHeaderHeight():this.handleScrollAfterHeaderHeight())}updateWindowSize(){this.windowInnerHeight=window.innerHeight,this.bodyClientHeight=document.body.clientHeight}onClickNewsletterLink(e){e.preventDefault(),(0,r.A)([{event:"button_click",button_name:"cta-nl-menu-burger",hitCallback:()=>{window.location.href=e.target.getAttribute("href")}}])}checkHeaderNavbarStickyness(){setInterval(()=>{this.didScroll&&(this.handleHeaderNavbarStickyness(),this.didScroll=!1)},this.timer)}handleHeaderNavbarStickyness(){this.currentScroll=(0,o.A)(),this.hasScrolledLessThanDelta()||(this.isScrollAfterNavbarHeight()&&this.checkScrollForNavbar(),this.lastScrollTop=this.currentScroll)}hasScrolledLessThanDelta(){return Math.abs(this.lastScrollTop-this.currentScroll)<=this.delta}isScrollAfterNavbarHeight(){return this.currentScroll>this.headerNavbarOffsetHeight}checkScrollForNavbar(){this.isScrollDown()?this.removeStickyFromNavbar():this.addStickyToNavbar()}isScrollBeforeHeaderHeight(){return this.currentScroll<=this.headerOffsetHeight}handleScrollBeforeHeaderHeight(){this.isScrollOnTopOfPage()&&(this.header.classList.remove("sticky"),this.header.classList.remove("sticky-active"),this.headerNavbar.
1style.transform=`translate3d(0, ${-1*this.currentScroll}px, 0)`)}isScrollOnTopOfPage(){return 0===this.currentScroll||!this.header.classList.contains("sticky-active")}handleScrollAfterHeaderHeight(){this.header.classList.add("sticky"),this.headerNavbar.style.removeProperty("transform")}isScrollDown(){return this.currentScroll>this.lastScrollTop&&this.isScrollAfterNavbarHeight()}removeStickyFromNavbar(){this.header.classList.remove("sticky-active")}addStickyToNavbar(){this.isStickyNeededForNavbar()&&this.header.classList.add("sticky-active")}isStickyNeededForNavbar(){let e=this.bodyClientHeight>this.windowInnerHeight,t=this.currentScroll>this.headerTopbarOffsetHeight;return e&&t}}().init()}}]);
2//# sourceMappingURL=269.c1eaee985163e2fd.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.