PageSourceSearch

https://communaute.programme-tv.net/telfront/site/scripts/1604.ebcb1f8f4c4416d3.js

js programme-tv.net collected 2026-09-24 09:01:30 UTC 51,829 bytes, 2 lines download raw bytes

1(self.webpackChunktv_front=self.webpackChunktv_front||[]).push([["1604"],{6891(e){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Articles"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ids"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"articles"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"30"}},{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"uuids"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"in"},value:{kind:"Variable",name:{kind:"Name",value:"ids"}}}]}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"boneUUID"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"urlTemplate"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"resource"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:178}};i.loc.source={body:"query Articles($ids: [String!]) {\n	articles(limit: 30, filter: { uuids: { in: $ids } }) {\n		id\n		boneUUID\n		title\n		firstImage {\n			urlTemplate\n		}\n		resource {\n			path\n		}\n	}\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function n(e,i){for(var t=0;t<e.definitions.length;t++){var n=e.definitions[t];if(n.name&&n.name.value==i)return n}}i.definitions.forEach(function(e){if(e.name){var i=new Set;!function e(i,t){if("FragmentSpread"===i.kind)t.add(i.name.value);else if("VariableDefinition"===i.kind){var n=i.type;"NamedType"===n.kind&&t.add(n.name.value)}i.selectionSet&&i.selectionSet.selections.forEach(function(i){e(i,t)}),i.variableDefinitions&&i.variableDefinitions.forEach(function(i){e(i,t)}),i.definitions&&i.definitions.forEach(function(i){e(i,t)})}(e,i),t[e.name.value]=i}}),e.exports=i,e.exports.Articles=function(e,i){var a={kind:e.kind,definitions:[n(e,i)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var r=t[i]||new Set,s=new Set,l=new Set;for(r.forEach(function(e){l.add(e)});l.size>0;){var o=l;l=new Set,o.forEach(function(e){s.has(e)||(s.add(e),(t[e]||new Set).forEach(function(e){l.add(e)}))})}return s.forEach(function(i){var t=n(e,i);t&&a.definitions.push(t)}),a}(i,"Articles")},6749(e){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"EnhanceCritic"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"critic"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"rating"}},type:{kind:"NamedType",name:{kind:"Name",value:"Float"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"programId"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionId"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enhanceCritic"},arguments:[{kind:"Argument",name:{kind:"Name",value:"critic"},value:{kind:"Variable",name:{kind:"Name",value:"critic"}}},{kind:"Argument",name:{kind:"Name",value:"rating"},value:{kind:"Variable",name:{kind:"Name",value:"rating"}}},{kind:"Argument",name:{kind:"Name",value:"programId"},value:{kind:"Variable",name:{kind:"Name",value:"programId"}}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"collectionId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"result"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:217}};
1i.loc.source={body:"query EnhanceCritic($critic: String, $rating: Float, $programId: Int, $collectionId: Int) {\n	enhanceCritic(\n		critic: $critic\n		rating: $rating\n		programId: $programId\n		collectionId: $collectionId\n	) {\n		result\n	}\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function n(e,i){for(var t=0;t<e.definitions.length;t++){var n=e.definitions[t];if(n.name&&n.name.value==i)return n}}i.definitions.forEach(function(e){if(e.name){var i=new Set;!function e(i,t){if("FragmentSpread"===i.kind)t.add(i.name.value);else if("VariableDefinition"===i.kind){var n=i.type;"NamedType"===n.kind&&t.add(n.name.value)}i.selectionSet&&i.selectionSet.selections.forEach(function(i){e(i,t)}),i.variableDefinitions&&i.variableDefinitions.forEach(function(i){e(i,t)}),i.definitions&&i.definitions.forEach(function(i){e(i,t)})}(e,i),t[e.name.value]=i}}),e.exports=i,e.exports.EnhanceCritic=function(e,i){var a={kind:e.kind,definitions:[n(e,i)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var r=t[i]||new Set,s=new Set,l=new Set;for(r.forEach(function(e){l.add(e)});l.size>0;){var o=l;l=new Set,o.forEach(function(e){s.has(e)||(s.add(e),(t[e]||new Set).forEach(function(e){l.add(e)}))})}return s.forEach(function(i){var t=n(e,i);t&&a.definitions.push(t)}),a}(i,"EnhanceCritic")},5281(e){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ProgramsAndCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"programsFilter"}},type:{kind:"NamedType",name:{kind:"Name",value:"ProgramsFilterInput"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"collectionsFilter"}},type:{kind:"NamedType",name:{kind:"Name",value:"CollectionsFilterInput"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"programs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"30"}},{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"Variable",name:{kind:"Name",value:"programsFilter"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ProgramFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"collections"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"30"}},{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"Variable",name:{kind:"Name",value:"collectionsFilter"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CollectionFields"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ProgramFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Program"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"boneUUID"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"formatGenre"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"format"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatTEL"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"genre"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"urlTemplate"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"releasedYear"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resource"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"programProviderPeople"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"person"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"realFirstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"realLastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fullname"},arguments:[],directives:[]}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CollectionFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parentCollection"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"boneUUID"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resource"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"boneUUID"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"formatGenre"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"format"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatTEL"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"genre"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"urlTemplate"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"releasedYear"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"country"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resource"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"casting"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"person"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"realFirstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"realLastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fullname"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:959}};i.loc.source={body:"query ProgramsAndCollections(\n	$programsFilter: ProgramsFilterInput\n	$collectionsFilter: CollectionsFilterInput\n) {\n	programs(limit: 30, filter: $programsFilter) {\n		...ProgramFields\n	}\n	collections(limit: 30, filter: $collectionsFilter) {\n		...CollectionFields\n	}\n}\n\nfragment ProgramFields on Program {\n	title\n	boneUUID\n	id\n	formatGenre {\n		format {\n			formatTEL {\n				name\n			}\n		}\n		genre {\n			name\n		}\n	}\n	image {\n		urlTemplate\n	}\n	releasedYear\n	country\n	resource {\n		path\n	}\n	programProviderPeople {\n		position\n		person {\n			realFirstName\n			realLastName\n			fullname\n		}\n	}\n}\n\nfragment CollectionFields on Collection {\n	title\n	parentCollection {\n		id\n		boneUUID\n		title\n		resource {\n			path\n		}\n	}\n	boneUUID\n	id\n	formatGenre {\n		format {\n			formatTEL {\n				name\n			}\n		}\n		genre {\n			name\n		}\n	}\n	image {\n		urlTemplate\n	}\n	releasedYear\n	country\n	resource {\n		path\n	}\n	casting {\n		position\n		person {\n			realFirstName\n			realLastName\n			fullname\n		}\n	}\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function n(e,i){for(var t=0;t<e.definitions.length;t++){var n=e.definitions[t];if(n.name&&n.name.value==i)return n}}function a(e,i){var a={kind:e.kind,definitions:[n(e,i)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var r=t[i]||new Set,s=new Set,l=new Set;for(r.forEach(function(e){l.add(e)});l.size>0;){var o=l;l=new Set,o.forEach(function(e){s.has(e)||(s.add(e),(t[e]||new Set).forEach(function(e){l.add(e)}))})}
1return s.forEach(function(i){var t=n(e,i);t&&a.definitions.push(t)}),a}i.definitions.forEach(function(e){if(e.name){var i=new Set;!function e(i,t){if("FragmentSpread"===i.kind)t.add(i.name.value);else if("VariableDefinition"===i.kind){var n=i.type;"NamedType"===n.kind&&t.add(n.name.value)}i.selectionSet&&i.selectionSet.selections.forEach(function(i){e(i,t)}),i.variableDefinitions&&i.variableDefinitions.forEach(function(i){e(i,t)}),i.definitions&&i.definitions.forEach(function(i){e(i,t)})}(e,i),t[e.name.value]=i}}),e.exports=i,e.exports.ProgramsAndCollections=a(i,"ProgramsAndCollections"),e.exports.ProgramFields=a(i,"ProgramFields"),e.exports.CollectionFields=a(i,"CollectionFields")},1949(e){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"SelectionProgramsFeed"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"platforms"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"VodType"}}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"day"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DateTime"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"SelectionCoupDeCoeur"},name:{kind:"Name",value:"selectionItems"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"slug"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"eq"},value:{kind:"StringValue",value:"coup-de-coeur-tel",block:!1}}]}},{kind:"ObjectField",name:{kind:"Name",value:"day"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"gte"},value:{kind:"Variable",name:{kind:"Name",value:"day"}}}]}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"program"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"SelectionProgramFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"collection"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"SelectionCollectionFields"},directives:[]}]}}]}},{kind:"Field",alias:{kind:"Name",value:"SelectionStreaming"},name:{kind:"Name",value:"selectionItems"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"day"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"gte"},value:{kind:"Variable",name:{kind:"Name",value:"day"}}}]}},{kind:"ObjectField",name:{kind:"Name",value:"slug"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"eq"},value:{kind:"StringValue",value:"temps-fort",block:!1}}]}},{kind:"ObjectField",name:{kind:"Name",value:"platform"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"in"},value:{kind:"Variable",name:{kind:"Name",value:"platforms"}}}]}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"program"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"SelectionProgramFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"collection"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"SelectionCollectionFields"},directives:[]}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SelectionProgramFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Program"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"boneUUID"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"programImages"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"urlTemplate"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"resource"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"broadcasters"},name:{kind:"Name",value:"vodProviderPrograms"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"vodProvider"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"urlTemplate"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SelectionCollectionFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"parentCollection"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"boneUUID"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resource"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"collectionImages"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"urlTemplate"},arguments:[],directives:[]}]}}]}},{kind:"Field",alias:{kind:"Name",value:"broadcasters"},name:{kind:"Name",value:"vodProviderCollections"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"vodProvider"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"urlTemplate"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:1166}};i.loc.source={body:'query SelectionProgramsFeed($platforms: [VodType!]!, $limit: Int!, $day: DateTime!) {\n	SelectionCoupDeCoeur: selectionItems(\n		limit: $limit\n		filter: { slug: { eq: "coup-de-coeur-tel" }, day: { gte: $day } }\n	) {\n		program {\n			__typename\n			...SelectionProgramFields\n		}\n		collection {\n			__typename\n			...SelectionCollectionFields\n		}\n	}\n	SelectionStreaming: selectionItems(\n		limit: $limit\n		filter: { day: { gte: $day }, slug: { eq: "temps-fort" }, platform: { in: $platforms } }\n	) {\n		program {\n			__typename\n			...SelectionProgramFields\n		}\n		collection {\n			__typename\n			...SelectionCollectionFields\n		}\n	}\n}\n\nfragment SelectionProgramFields on Program {\n	title\n	boneUUID\n	id\n	programImages {\n		type\n		image {\n			urlTemplate\n		}\n	}\n	resource {\n		path\n	}\n	broadcasters: vodProviderPrograms {\n		vodProvider {\n			id\n			name\n			image {\n				urlTemplate\n			}\n		}\n	}\n}\n\nfragment SelectionCollectionFields on Collection {\n	parentCollection {\n		id\n		boneUUID\n		title\n		resource {\n			path\n		}\n	}\n	collectionImages {\n		type\n		image {\n			urlTemplate\n		}\n	}\n	broadcasters: vodProviderCollections {\n		vodProvider {\n			id\n			name\n			image {\n				urlTemplate\n			}\n		}\n	}\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function n(e,i){for(var t=0;t<e.definitions.length;t++){var n=e.definitions[t];if(n.name&&n.name.value==i)return n}}function a(e,i){var a={kind:e.kind,definitions:[n(e,i)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var r=t[i]||new Set,s=new Set,l=new Set;for(r.forEach(function(e){l.add(e)});l.size>0;){var o=l;l=new Set,o.forEach(function(e){s.has(e)||(s.add(e),(t[e]||new Set).forEach(function(e){l.add(e)}))})}
1return s.forEach(function(i){var t=n(e,i);t&&a.definitions.push(t)}),a}i.definitions.forEach(function(e){if(e.name){var i=new Set;!function e(i,t){if("FragmentSpread"===i.kind)t.add(i.name.value);else if("VariableDefinition"===i.kind){var n=i.type;"NamedType"===n.kind&&t.add(n.name.value)}i.selectionSet&&i.selectionSet.selections.forEach(function(i){e(i,t)}),i.variableDefinitions&&i.variableDefinitions.forEach(function(i){e(i,t)}),i.definitions&&i.definitions.forEach(function(i){e(i,t)})}(e,i),t[e.name.value]=i}}),e.exports=i,e.exports.SelectionProgramsFeed=a(i,"SelectionProgramsFeed"),e.exports.SelectionProgramFields=a(i,"SelectionProgramFields"),e.exports.SelectionCollectionFields=a(i,"SelectionCollectionFields")},5271(e,i,t){"use strict";t.d(i,{A:()=>u});var n=t(3135),a=t(6891),r=t.n(a),s=t(6749),l=t.n(s),o=t(5281),d=t.n(o),c=t(1949),m=t.n(c);class u{hub;constructor(){this.hub=new n.A({config:window.frontConfig.env.tel,mode:!1})}formatUUIDs(e){return e.length>0?e.map(e=>e):[]}async getBroadcasts({data:e}){if(!e)return[];let i=e.filter(e=>e.node.content.id.startsWith("TvBroadcast_")).map(e=>e.node.content.id.replace("TvBroadcast_","")).filter(e=>e);if(i.length)try{let e=await fetch(`${window.frontConfig.env.tel.uri}/v2/broadcasts.json?limit=${i.length}&included=${i}&projection=id,title,subtitle,channel{id,title,image,darkImage},program{image,title,duration,resource,rating,boneUUID,collection,formatGenre},startedAt,duration,audioDescription,isLive,isNew,isRebroadcast,hasDeafSubtitles,releasedYear,isTagHeart,isTagEvent,isBoEpg`),t=await e.json(),n=new Date;console.log("%cResponse : GetBroadcasts","color: #16262E; font-weight: bold; background-color: #D64550; padding: 4px",t.data.items);let a=t.data.items.filter(e=>n<new Date(e.startedAt)).sort((e,i)=>new Date(e.startedAt).getTime()-new Date(i.startedAt).getTime());return console.log("%cGetBroadcasts","color: #16262E; font-weight: bold; background-color: #D64550; padding: 4px",a),a}catch(e){console.error("TEL - GetBroadcasts Error : ",{error:e})}return[]}async getProgramsAndCollections({data:e}){if(!e)return[];let i=e.map(e=>e.node.content.id.replace("TvProgram:","")).filter(e=>e),t=e.map(e=>e.node.content.id.replace("TvCollection:","")).filter(e=>e);try{let e={programsFilter:{uuids:{in:this.formatUUIDs(i)}},collectionsFilter:{uuids:{in:this.formatUUIDs(t)}}},n=await (await this.hub.getClient()).query({query:d(),variables:e});console.log("%cGetProgramsAndCollections","color: #16262E; font-weight: bold; background-color: #D64550; padding: 4px",n.data);let a=n.data;return n?[...a.programs,...a.collections]:[]}catch(e){return console.error("Apollo - GetProgramsAndCollections Error : ",{error:e}),[]}}async getArticles({ids:e}){if(!e||0===e.length)return[];try{let i=await (await this.hub.getClient()).query({query:r(),variables:{ids:e}});return console.log("%cGetArticles","color: #16262E; font-weight: bold; background-color: #D64550; padding: 4px",i.data.articles),i.data.articles}catch(e){return console.error("Apollo - GetArticles Error : ",{error:e}),[]}}async getEnhanceCritic({data:e}){let i=new n.A({config:window.frontConfig.env.tel,isCredentialsRequired:!0}),{critic:t,rating:a,type:r,id:s}=e;try{let e=await (await i.getClient()).query({query:l(),variables:{critic:t,rating:a,[r]:s},fetchPolicy:"no-cache"});return console.log("%cGetEnhanceReview","color: #16262E; font-weight: bold; background-color: #D64550; padding: 4px",e.data.enhanceCritic.result),e.data.enhanceCritic.result}catch(e){return console.error("Apollo - GetEnhanceCritic Error : ",{error:e}),{errors:!0,message:"Une erreur est survenue lors de l'am\xe9lioration de votre critique",data:null}}}async getSelectionPrograms(){let e=new Date,i=e.getDay(),t=new Date(e);t.setDate(e.getDate()-(i+6)%7);try{let e=await (await this.hub.getClient()).query({query:m(),variables:{day:t.toISOString(),platforms:["AMAZON","CANAL","CATCHUP","DISNEY","MAX","NETFLIX","OCS"],limit:5}});return console.log("%cGetSelectionPrograms","color: #16262E; font-weight: bold; background-color: #D64550; padding: 4px",e.data),e.data}catch(e){return console.error("Apollo - GetSelectionPrograms Error : ",{error:e}),null}}}},2424(e,i,t){"use strict";t(8013),t(4138),t(6516)},5181(e,i,t){"use strict";new(t(5107))({elementSelector:".mainBroadcastCard"}).init()},3009(e,i,t){"use strict";t(5181)},108(e,i,t){"use strict";t.d(i,{$e:()=>s,Uq:()=>l,V6:()=>o,Zi:()=>a,eq:()=>m,sx:()=>r,xX:()=>c,yL:()=>d});var n=t(8141);let a={TEASER:"teaser",PAGINATED:"paginated"};function r(e,i=n.Zu.DEFAULT_LIMIT){return(Math.max(Number.parseInt(e,10)||1,1)-1)*i}function s(e,i=n.Zu.DEFAULT_LIMIT){let t=Number.parseInt(e,10)||0;return t<=0?1:Math.max(1,Math.ceil(t/i))}function l(e){return{slug:e?.getAttribute("data-slug"),programType:e?.getAttribute("data-program-type"),legacyProgramId:e?.getAttribute("data-legacy-program-id"),resourceKind:e?.getAttribute("data-resource-kind")||"program"}}function o({slug:e,programType:i,legacyProgramId:t,resourceKind:n="program",page:a=1}){let r;return e&&i&&t?(r="collection"===n?`/programme/${i}/r${t}-${e}/avis/`:"cinema"===i?`/cinema/${t}-${e}/avis/`:`/programme/${i}/${t}-${e}/avis/`,1>=Number.parseInt(a,10)?r:`${r}page-${a}.html`):""}function d(e,i,t=8){let n=0;for(let a=e;a<i&&n<t-1;a+=1)n+=1;let a=0;for(let i=e;i>1&&a<t-1;i-=1)a+=1;
1if(a===t-1&&n<t-1)return{firstDisplayedPage:i-(t-1),lastDisplayedPage:i};if(a<t-1&&n===t-1)return{firstDisplayedPage:1,lastDisplayedPage:1+(t-1)};let r=Math.floor(t/2),s=Math.min(e+r,i);return{firstDisplayedPage:t%2==0?Math.max(e-r+1,1):Math.max(e-r,1),lastDisplayedPage:s}}function c(e){return e?.getAttribute("data-layout")===a.PAGINATED}function m(){let e=document.querySelector(".program-navigation");if(!e)return;let i=document.querySelector(".header")?.offsetHeight||0,t=Math.max(0,e.getBoundingClientRect().top+window.scrollY-i);window.scrollTo({top:t,behavior:"smooth"})}},4011(e,i,t){"use strict";t.d(i,{A:()=>s});var n=t(5896),a=t(271),r=t(7955);function s({text:e="Vous n'avez pas encore not\xe9 de programmes.",subText:i="D\xe9couvrez les meilleurs programmes qui passent \xe0 la TV !",buttonText:t="Voir le programme TV",link:s=`https://${window.frontConfig.env.tel.domain}`,button:l=!0}){return(0,r.JK)()&&(s="teleloisirs://home"),(0,n.jsxs)("div",{className:"emptyCard",children:[(0,n.jsxs)("div",{className:"emptyCard-title",children:[e,(0,n.jsxs)("span",{children:[" ",i," "]})]}),l&&(0,a.A)({type:"primary",tag:"a",content:t,size:"large",attributes:{href:s,className:"emptyCard-cardCta"}})]})}},4985(e,i,t){"use strict";t.d(i,{A:()=>s});var n=t(5896),a=t(9393),r=t(636);function s({title:e,image:i,format:t,genre:s,director:l,releaseDate:o,country:d,path:c}){let m={mobile:{w:"95",h:"152",r:"5-8"},sizes:[{w:95,h:152,r:"5-8"}],has_different_ratios:!1};return(0,n.jsxs)("a",{className:"programCard",href:c,rel:"noopener noreferrer",title:e??"n/a",children:[(0,n.jsx)("div",{className:"programCard-image",children:i?(i=>{if(i.urlTemplate)return new a.A(i.urlTemplate,e,m,{lazyLoad:!0}).getImage()})(i):(0,n.jsx)(r.A,{name:"cinema-clap"})}),(0,n.jsxs)("div",{className:"programCard-content",children:[(0,n.jsx)("div",{className:"programCard-title",children:e??"n/a"}),(0,n.jsxs)("div",{className:"programCard-detailsItem",children:[(0,n.jsx)("span",{children:"Format :"})," ",t??"n/a"]}),(0,n.jsxs)("div",{className:"programCard-detailsItem",children:[(0,n.jsx)("span",{children:"Genre :"})," ",s??"n/a"]}),(0,n.jsxs)("div",{className:"programCard-detailsItem",children:[(0,n.jsx)("span",{children:"R\xe9alisateur :"})," ",l??"n/a"]}),(0,n.jsxs)("div",{className:"programCard-detailsItem",children:[(0,n.jsx)("span",{children:"Sortie :"})," ",o??"n/a"]}),(0,n.jsxs)("div",{className:"programCard-detailsItem",children:[(0,n.jsx)("span",{children:"Pays :"})," ",d??"n/a"]})]})]})}},9194(e,i,t){"use strict";t(2424)},2802(e,i,t){"use strict";t.d(i,{A:()=>v});var n=t(5896),a=t(5271),r=t(3099),s=t(5107),l=t(2799),o=t(7955),d=t(271),c=t(4011),m=t(4985);function u({likes:e=[],visibleCount:i=6,total:t=0}){let a=/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/.test(window.location.pathname.split("/").pop()),r={text:a?"Aucun programme mis en favoris":"Vous n'avez pas encore ajout\xe9 de programme en favoris.",subText:a?"Retrouvez ici les programmes mis en favoris de cet utilisateur.":"D\xe9couvrez les meilleurs programmes qui passent \xe0 la TV !",buttonText:"Voir le programme TV",link:`https://${window.frontConfig.env.tel.domain}`,button:!a};return(0,n.jsx)("div",{className:"likesProgram pagination-container",children:0===e.length?(0,n.jsx)(c.A,{...r}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("ol",{className:"likesProgram-list pagination-list twoColumnDesktopGrid",children:e.map((e,t)=>{let a=e.casting||e.programProviderPeople,r=e.title||e.parentCollection?.title,s=(0,o.JK)()?(0,o.mK)(e):(0,o.iI)(e);return(0,n.jsx)("li",{className:`likes-item pagination-item${t>=i?" hidden":""}`,children:(0,n.jsx)(m.A,{title:r,image:e.image,format:e.formatGenre?.format?.formatTEL?.name,genre:e.formatGenre?.genre?.name,director:a?.filter(e=>"R\xe9alisateur"===e.position).map(e=>e?.person?.fullname).join(", ")||"n/a",releaseDate:e.releasedYear,country:e.country,path:s})})})}),i<t&&(0,n.jsx)(d.A,{type:"secondary",tag:"button",content:"Voir plus",size:"large",iconRight:"chevron-right",attributes:{className:"likes-cta pagination-cta"}})]})})}class v extends l.uA{element=".userProfile-likes";constructor(e){super(e),this.user=new r.A,this.tel=new a.A,this.bookmarkType="add:like",this.currentUser={id:null},this.data={total:0},this.visibleCount=6,this.onShowMoreClickHandler=this.onShowMoreClickHandler.bind(this)}async beforeRender(){this.props.updateMenu(this.route.path),this.currentUser.id=this.props.userId;let e=this.getStore("likes")||await this.getUserLikes();
1this.getStore("likes")||this.setStore({likes:e}),this.data.total=e?.length||0}async getUserLikes(){return(await this.user.getUserBookmarks({type:this.bookmarkType,userId:this.currentUser.id})).map(e=>e.node.targetContent)}render(){let e=this.getStore("likes")||[];return(0,n.jsx)(u,{likes:e,visibleCount:this.visibleCount,total:this.data.total})}afterRender(){this.props.navigationHash=window.location.hash,this.widerLink=new s({elementSelector:".profileProgramCard"}),this.widerLink.init(),this.setupShowMoreButton()}setupShowMoreButton(){(0,o.ax)(".likesProgram",this.onShowMoreClickHandler)}onShowMoreClickHandler(){let e=this.visibleCount+6;this.revealMoreItems(e),this.visibleCount=Math.min(e,this.data.total),this.updateShowMoreButton()}revealMoreItems(e){(0,o.tf)(".likesProgram",this.visibleCount,e)}updateShowMoreButton(){(0,o.W_)(".likesProgram",this.visibleCount,this.data.total)}}},7418(e,i,t){"use strict";t.d(i,{A:()=>h});var n=t(5896),a=t(7119),r=t(3099),s=t(2799),l=t(2579),o=t(6067),d=t(271),c=t(7955),m=t(4011);let u={program:{text:"Vous n’avez pas encore not\xe9 de programmes.",subText:"D\xe9couvrez les meilleurs programmes qui passent \xe0 la TV !",buttonText:"Voir le programme TV",link:`https://${window.frontConfig.env.tel.domain}`,button:!0},article:{text:"Vous n’avez pas encore comment\xe9 un article.",subText:"D\xe9couvrez nos derni\xe8res actus !",buttonText:"Voir nos derni\xe8res news",link:`https://${window.frontConfig.env.tel.domain}/news/`,button:!0}};function v({reviews:e=[],currentUser:i,type:t="program",visibleCount:a=6,total:r=0}){let s=/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/.test(window.location.pathname.split("/").pop()),l={text:s?"Aucun avis":u[t].text,subText:s?"Retrouvez ici les avis de cet utilisateur.":u[t].subText,buttonText:u[t].buttonText,link:u[t].link,button:!s};return(0,n.jsx)("div",{className:"reviews",children:0===e.length?(0,n.jsx)(m.A,{...l}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("ol",{className:"reviews-list oneColumnGrid",children:e.map((e,t)=>{let r=t>=a;return(0,n.jsx)("li",{className:`reviews-item${r?" hidden":""}`,children:(0,n.jsx)(o.A,{content:e,currentUser:i,type:"profile"})},t)})}),a<r&&(0,n.jsx)(d.A,{type:"secondary",tag:"button",content:"Voir plus d'avis",size:"large",iconRight:"chevron-right",attributes:{className:"reviews-cta"}})]})})}(0,c.JK)()&&(u.program.link="teleloisirs://home",u.article.link="teleloisirs://news");class h extends s.uA{constructor(e){super(e),this.container=document.querySelector(".userProfile-content")||document.querySelector(".userMember-content"),this.urv=new a.A,this.user=new r.A,this.currentUser={id:null},this.reviews=[],this.endOffset=null,this.visibleCount=6,this.isFetching=!1,this.onShowMoreClickHandler=this.onShowMoreClickHandler.bind(this)}async beforeRender(){try{this.props.updateMenu(this.route.path);let e=await this.user.getMe();this.currentUser={...e};let i=this.getStore("reviews")||(await this.getReviews({type:"/avis"===this.route.path?"program":"article"})).reviews;this.getStore("reviews")||this.setStore({reviews:i})}catch(e){console.error(`${this.constructor.name}::beforeRender`,{error:e})}}render(){return(0,n.jsx)(v,{reviews:this.getStore("reviews"),currentUser:this.currentUser,type:"/avis"===this.route.path?"program":"article",visibleCount:this.visibleCount,total:this.reviews.total})}afterRender(){this.addEvents({cards:[...this.container.querySelectorAll(".card")]}),this.setupShowMoreButton()}addEvents({cards:e}={}){e.forEach(e=>{new l.A({card:e}).init()})}async getReviews({type:e,offset:i=this.endOffset}){try{let t=this.props.userId||this.currentUser.id,{edges:n,pageInfo:a,total:r}=await this.user.getUserReviews({userId:t,offset:i,where:{content:{brand:{key:{eq:"TEL"}},type:{in:{values:"program"===e?["tvprogram","tvcollection"]:["article"]}}}}});return this.endOffset=a.endOffset,this.reviews={edges:n,pageInfo:a,total:r},{reviews:n,pageInfo:a,total:r}}catch(e){console.error(`${this.constructor.name}::getReviews`,e)}}setupShowMoreButton(){let e=this.container.querySelector(".reviews-cta");e&&e.addEventListener("click",this.onShowMoreClickHandler)}async onShowMoreClickHandler(){let e=this.getStore("reviews"),i=this.visibleCount+6;i>e.length&&!this.isFetching&&this.reviews.total>e.length&&await this.prefetchReviews(),this.revealMoreReviews(i),this.visibleCount=Math.min(i,this.reviews.total),this.updateShowMoreButton()}async prefetchReviews(){if(!this.isFetching){this.isFetching=!0;try{let{reviews:e}=await this.getReviews({type:"/avis"===this.route.path?"program":"article"}),i=this.getStore("reviews");this.setStore({reviews:[...i,...e]}),this.injectHiddenReviews(e)}catch(e){console.error(`${this.constructor.name}::prefetchReviews`,e)}finally{this.isFetching=!1}}}injectHiddenReviews(e){let i=this.container.querySelector(".reviews-list");if(!i)return;let t=document.createDocumentFragment(),a=[];
1e.forEach(e=>{let i=(0,n.jsx)("li",{className:"reviews-item hidden",children:(0,n.jsx)(o.A,{content:e,currentUser:this.currentUser,type:"profile"})});t.appendChild(i),a.push(i.querySelector(".card"))}),i.appendChild(t),this.addEvents({cards:a})}revealMoreReviews(e){let i=this.container.querySelector(".reviews-list");i&&[...i.querySelectorAll(".reviews-item")].forEach((i,t)=>{t>=this.visibleCount&&t<e&&i.classList.remove("hidden")})}updateShowMoreButton(){let e=this.container.querySelector(".reviews-cta");if(e){let i=this.visibleCount<this.reviews.total;e.classList.toggle("hidden",!i)}}}},5105(e,i,t){"use strict";t.d(i,{A:()=>h});var n=t(5896),a=t(4947),r=t(3099),s=t(8644),l=t(5107),o=t(2799),d=t(8212),c=t(636),m=t(2697);function u({social:e,bookmarkType:i="follow:user"}){let t=e.node.user?.avatar||e.node.targetContent?.avatar||null,a=e.node.user?.id||e.node.targetContent?.id,r=e.node.user?.nickname||e.node.targetContent?.nickname||null,s=window.location.pathname.includes("/membre/"),l=r&&a;return(0,n.jsxs)("div",{className:"socialCard",children:[(0,n.jsxs)("div",{className:"socialCard-header","data-wide-target":!0,children:[(0,n.jsx)("figure",{className:"socialCard-media",children:t&&r?(0,n.jsx)("div",{className:"socialCard-mediaImage",children:(0,n.jsx)("img",{src:t,alt:r})}):(0,n.jsx)("div",{className:"socialCard-mediaImagePlaceholder",children:(0,n.jsx)(c.A,{name:"profile"})})}),l?(0,n.jsx)("a",{className:"socialCard-legend",href:`/membre/${a}`,"data-wide":!0,children:r||"Utilisateur non disponible"}):(0,n.jsx)("div",{className:"socialCard-legend unavailable",children:"Utilisateur non disponible"})]}),l&&!s&&(0,n.jsx)(m.A,{bookmarkPath:`/membre/${a}/`,bookmarkId:a,bookmarkType:i,initialStatus:!!e.isFollowed})]})}function v({socials:e={},route:i={},isGranted:t=!1}){let a=[];return"/abonnes"===i?a=e.subscribers.edges:"/abonnements"===i&&(a=e.subscriptions.edges),(0,n.jsx)("div",{class:"socials",children:(0,n.jsx)("ol",{class:"socials-list twoColumnDesktopGrid",children:a.map(e=>(0,n.jsx)("li",{class:"socials-item",children:(0,n.jsx)(u,{social:e,bookmarkType:"follow:user",isGranted:t})}))})})}class h extends o.uA{element=".socials";constructor(e){super(e),this.userId=null,this.route={path:window.location.hash.split("#")[1]},this.socials={},this.bookmark=new a.A({brand:"TEL"}),this.pmcBridge=new s.A,this.user=new r.A,this.bookmarkButton=new d.A}
1async beforeRender(){if(this.getStore("socials"))this.socials=this.getStore("socials");else try{this.isGranted=await this.pmcBridge.isGranted(),this.userId=this.props.userId,this.socials=await this.getSocials(this.userId),this.setStore({socials:this.socials})}catch(e){console.error("Socials::beforeRender : Error getting socials",e)}}async getSocials(e){try{let{subscribers:i,user:t}=await this.user.getUserEssential({id:e}),n={...i,edges:i.edges.map(e=>({...e,isFollowed:t.subscriptions.edges.some(i=>i.node.targetContent.id===e.node.user.id)}))},a={...t.subscriptions,edges:t.subscriptions.edges.map(e=>({...e,isFollowed:!0}))};return{subscribers:n,subscriptions:a,userNickname:t.nickname}}catch(e){console.error("Socials::getSocials : Error getting socials",e)}}render(){return(0,n.jsx)(v,{socials:this.socials,route:this.route.path,isGranted:this.isGranted})}afterRender(){this.container=document.querySelector(this.element),this.bookmarkButton.init(),this.bookmarkButton.scan(this.container),window.requestAnimationFrame(()=>{this.bookmarkButton.scan(this.container)}),this.widerLink=new l({elementSelector:".socialCard"}),this.widerLink.init()}}},4893(e,i,t){"use strict";var n=t(5896),a=t(636);class r{element;carousel;prevButton;nextButton;scrollBy;hasOverflow;isBrowserUpdatingFrame;constructor(e){this.element=e,this.carousel=e?.querySelector("[data-carouselLinks-target]"),this.prevButton,this.nextButton,this.scrollBy=200,this.isBrowserUpdatingFrame=!1,this.hasOverflow=!!(this.carousel&&this.carousel.scrollWidth>this.carousel.clientWidth),this.toggleScroller=this.toggleScroller.bind(this),this.initScroller=this.initScroller.bind(this),this.scrollToLeft=this.scrollToLeft.bind(this),this.scrollToRight=this.scrollToRight.bind(this),this.onScroll=this.onScroll.bind(this)}init(){this.hasOverflow&&(this.createNavigationButtons(),this.initScroller(),this.addEvents(),this.setCarouselAttributes())}addEvents(){this.carousel?.addEventListener("scroll",this.onScroll,{passive:!0}),this.prevButton?.addEventListener("click",this.scrollToLeft),this.nextButton?.addEventListener("click",this.scrollToRight)}onScroll(){this.isBrowserUpdatingFrame||(requestAnimationFrame(this.toggleScroller),this.isBrowserUpdatingFrame=!0)}scrollToLeft(){this.carousel?.scrollBy({left:-1*this.scrollBy,behavior:"smooth"})}scrollToRight(){this.carousel?.scrollBy({left:this.scrollBy,behavior:"smooth"})}initScroller(){this.element&&(this.element.classList.toggle("canScrollRight",!this.isScrollEnd),this.element.classList.toggle("canScrollLeft",!this.isScrollStart))}toggleScroller(){this.element?.classList.toggle("canScrollRight",!this.isScrollEnd),this.element?.classList.toggle("canScrollLeft",!this.isScrollStart),this.isBrowserUpdatingFrame=!1}setCarouselAttributes(){this.element?.setAttribute("data-carousel",""),this.carousel?.setAttribute("aria-live","polite"),this.carousel?.setAttribute("role","tablist")}get isScrollStart(){return this.carousel?.scrollLeft===0}get isScrollEnd(){if(this.carousel){let{scrollLeft:e,clientWidth:i,scrollWidth:t}=this.carousel;return Math.ceil(e+i+2)>=t}return!1}createNavigationButtons(){let e=this.createButton({type:"prev",title:"Slide pr\xe9c\xe9dente",svg:(0,a.A)({name:"chevron-right"})}),i=this.createButton({type:"next",title:"Slide suivante",svg:(0,a.A)({name:"chevron-right"})});this.element?.insertAdjacentElement("afterbegin",i),this.element?.insertAdjacentElement("afterbegin",e),this.prevButton=this.element?.querySelector(".carouselLinks-nav.prev"),this.nextButton=this.element?.querySelector(".carouselLinks-nav.next")}createButton({type:e,title:i,svg:t}){let a=(0,n.jsx)("button",{type:"button",title:i,className:`carouselLinks-navButton ${e}`}),r=(0,n.jsx)("div",{className:`carouselLinks-nav ${e}`,children:a});return a.appendChild(t),r}}document.querySelector(".navigation")&&new class{constructor(){this.navigation=document.querySelector(".navigation"),this.listContainer=this.navigation.querySelector(".navigation-listContainer"),this.list=this.listContainer.querySelector(".navigation-list"),this.isHashMode=this.navigation.hasAttribute("data-hash-mode"),this.activeItem=this.navigation.querySelector(".navigation-item.active")??this.navigation.querySelector(".navigation-item"),this.scrollToLeft=0,this.documentClientWidth=document.body.clientWidth,this.onHashChange=this.onHashChange.bind(this)}init(){this.carouselLinks=new r(this.navigation),this.carouselLinks.init(),this.isHashMode&&this.initHashMode(),this.scrollToActiveItemHorizontally()}initHashMode(){this.updateActiveFromHash(),this.addEvents()}addEvents(){window.addEventListener("hashchange",this.onHashChange)}onHashChange(){this.updateActiveFromHash(),this.scrollToActiveItemHorizontally()}updateActiveFromHash(){let e=window.location.hash||"#/feed";this.activeItem&&this.activeItem.classList.remove("active");let i=this.navigation.querySelector(`.navigation-item[data-hash="${e}"]`);i&&(i.classList.add("active"),this.activeItem=i)}scrollToActiveItemHorizontally(){if(!this.activeItem)return;let e=this.activeItem.offsetLeft+this.activeItem.clientWidth/2-this.listContainer.clientWidth/2;this.listContainer.scrollTo(e,0)}}().init()},5222(e,i,t){"use strict";var n=t(5896),a=t(4947),r=t(3099),s=t(8644),l=t(6608),o=t(7213),d=t(636),c=t(8212),m=t
1(7955);let u="follow:user";new class{constructor(){this.overview=document.querySelector(".overview"),this.followUserButton=this.overview.querySelector(".overview-bookmarkButton"),this.shareButton=this.overview.querySelector(".overview-shareButton"),this.userSubscriptions=this.overview.querySelector(".userSubscriptions"),this.userSubscribers=this.overview.querySelector(".userSubscribers"),this.user=new r.A,this.bookmark=new a.A({brand:"TEL"}),this.pmcBridge=new s.A,this.brandStorage=new l.A({trigram:"tel"}),this.currentUser={id:null,nickname:null,isFollowed:!1},this.onClickOnOverview=this.onClickOnOverview.bind(this)}async init(){try{this.isGranted=await this.pmcBridge.isGranted(),this.currentUser.id=await (0,m.WR)();let{user:e,subscribers:i}=await this.user.getUserEssential({id:this.currentUser.id});this.currentUser.nickname=e.nickname,this.getUserProfile({user:{id:e.id,nickname:this.currentUser.nickname,avatar:e.avatar,subscriptions:e.subscriptions,subscribers:i}}),this.getUserSubscriptions({user:{subscriptions:e.subscriptions}}),this.getUserSubscribers({user:{subscribers:i}});let t=this.overview.querySelector(".bookmarkButton");if(t){t.setAttribute("data-bookmark-id",e.id),t.setAttribute("data-id",e.id),t.setAttribute("data-bookmark-path",window.location.pathname);let i=new c.A;i.init(),i.scan(this.overview)}this.addEvents()}catch(e){this.getUserProfile({user:null}),console.warn("Overview::init : ERROR while getting user essential data",{error:e})}}async checkIfUserIsFollowed(){if(!this.isGranted)return;let e=(await this.pmcBridge.getProfile()).id,i=await this.user.getUserBookmarks({type:"follow:user",userId:e});this.currentUser.isFollowed=i.some(e=>e?.node?.content?.id===this.currentUser.id),this.currentUser.isFollowed&&this.followUserButton.classList.add("isFollowed")}addEvents(){this.overview.addEventListener("click",this.onClickOnOverview)}onClickOnOverview(e){let i=e.target,t=(0,o.A)({target:i,selectorString:".overview-bookmarkButton",nodeName:["button"]}),n=(0,o.A)({target:i,selectorString:".overview-shareButton",nodeName:["button"]}),a=(0,o.A)({target:i,selectorString:".userSubscriptions",nodeName:["li"]}),r=(0,o.A)({target:i,selectorString:".userSubscribers",nodeName:["li"]});t?this.handleFollowUserClick():n?this.handleShare():a?this.handleSocialsClick(i):r&&this.handleSocialsClick(i)}getUserProfile({user:e}){let i=this.overview.querySelector(".overview-media"),t=i.querySelector("img"),a=this.overview.querySelector(".overview-nickname"),r=this.overview.querySelector(".overview-headerNickname");e?.avatar?(t.src=e.avatar,t.alt=e.nickname):(t.remove(),i.insertAdjacentElement("afterbegin",(0,n.jsx)("div",{className:"overview-avatar",children:(0,n.jsx)(d.A,{name:"profile"})}))),e?.nickname?(a.textContent=e.nickname,r&&(r.textContent=e.nickname)):(a.textContent="Pseudo anonyme",r&&(r.textContent="Pseudo anonyme"))}getUserSubscriptions({user:e}){let i=this.overview.querySelector(".userSubscriptions"),t=e.subscriptions.total||0;i.textContent=`${t} abonnement${t>1?"s":""}`}getUserSubscribers({user:e}){let i=this.overview.querySelector(".userSubscribers"),t=e.subscribers.total||0;i.textContent=`${t} abonn\xe9${t>1?"s":""}`}handleFollowUserClick(){if(!this.isGranted)return window.location.href="#/compte";this.currentUser.isFollowed?this.unfollowUser():this.followUser()}handleSocialsClick(e){e.classList.contains("userSubscriptions")?window.location.hash="#/abonnements":e.classList.contains("userSubscribers")&&(window.location.hash="#/abonnes")}async followUser(){try{await this.bookmark.createBookmark({type:u,id:this.currentUser.id,path:`${window.location.origin}${window.location.pathname}`,contentType:"User"}),this.updateFollowButton({type:"add"}),this.currentUser.isFollowed=!0}catch(e){console.warn("Overview::followUser : ERROR while following user",{error:e})}}async unfollowUser(){try{await this.bookmark.deleteBookmark({type:u,id:this.currentUser.id}),this.updateFollowButton({type:"remove"}),this.currentUser.isFollowed=!1}catch(e){console.warn("Overview::unfollowUser : ERROR while unfollowing user",{error:e})}}updateFollowButton({type:e}){this.followUserButton.classList[e]("isFollowed");let i=this.overview.querySelector(".userSubscribers .cta-contentText"),t=Number.parseInt(i.textContent.match(/\d+/)?.[0]||"0",10),n="remove"===e?t-1:t+1;i.textContent=`${n} abonn\xe9${n>1?"s":""}`}handleShare(){let e=`${window.location.origin}/membre/${this.currentUser.id}`;navigator.share?navigator.share({title:`Profil de ${this.currentUser.nickname}`,text:`D\xe9couvrez le profil de ${this.currentUser.nickname}`,url:e}):navigator.clipboard.writeText(e)}}().init()},7955(e,i,t){"use strict";t.d(i,{JK:()=>s,WR:()=>r,W_:()=>m,ax:()=>d,iI:()=>o,mK:()=>l,tf:()=>c});var n=t(8644);let a=null;async function r(){if(a)return a;let e=new n.A,i=window.location.pathname.split("/").pop();return a=/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/.test(i)?i:(await e.getProfile()).id}function s(){return document.querySelector(".page")?.getAttribute("data-in-app")==="true"}function l(e){let i=e.__typename,t=void 0!==e.parentCollection,n=e.id;if(t){let i=e.parentCollection?`collection/${e.parentCollection.id}`:"collection";return`teleloisirs://${i}/${n}`}return`teleloisirs://${"Program"===i?"program":"news"}/${n}`}function o(e){let i=e.resource?.path||e.parentCollection?.resource?.path||e.url?.path;return`https://${window.frontConfig.env.tel.domain}${i}`}function d(e,i){let t=document.querySelector(e),n=t?.querySelector(".pagination-cta");n&&n.addEventListener("click",i)}function c(e,i,t){let n=document.querySelector(e),a=n?.querySelector(".pagination-list");
1a&&[...a.querySelectorAll(".pagination-item")].forEach((e,n)=>{n>=i&&n<t&&e.classList.remove("hidden")})}function m(e,i,t){let n=document.querySelector(e),a=n?.querySelector(".pagination-cta");a&&a.classList.toggle("hidden",!(i<t))}}}]);
2//# sourceMappingURL=1604.ebcb1f8f4c4416d3.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.