PageSourceSearch

https://communaute.programme-tv.net/telfront/site/scripts/dynamic-import-headerMenuAccount.7b6b2dc084600eac.js

js programme-tv.net collected 2026-09-24 09:01:46 UTC 10,813 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunktv_front=self.webpackChunktv_front||[]).push([["5945"],{5896(e,t,i){var n=i(3348);Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return n.Fragment}}),Object.defineProperty(t,"jsx",{enumerable:!0,get:function(){return n.jsx}}),Object.defineProperty(t,"jsxs",{enumerable:!0,get:function(){return n.jsx}})},3135(e,t,i){i.d(t,{A:()=>u});var n=i(1029),o=i(5961),s=i(1426),r=i(1445),a=i(4068),l=i(5496),c=i(6575);async function d({config:e,isCredentialsRequired:t=!1,mode:i=null}){if(!e.uri)throw Error("Apollo Client: URL is required");let d={"content-type":"application/json"};e.authorization&&(d.authorization=`Bearer ${e.authorization}`),e.apiKey&&(d["x-api-key"]=e.apiKey),e.introspectionKey&&(d["x-introspection-key"]=e.introspectionKey);let u=new a.z({attempts:{max:2}}),h=n.C.from([u,new o.P({uri:e.uri3?e.uri3:e.uri,headers:d,credentials:t?"include":"omit",useGETForQueries:!i,fetch:(e,t)=>fetch(e.toString().replace(/(%20)+/g,"%20"),t),print:(e,t)=>(0,c.Z)(t(e))})]);globalThis.__apolloClients||(globalThis.__apolloClients={});let m=globalThis.__apolloClients??{},p=`${e.uri}::${t?"credentials":"no-credentials"}`;if(m[p])return m[p];let g=new s.R({link:h,cache:new r.D,devtools:{enabled:!0},localState:new l.X({})});return m[p]=g,g}class u{config;isCredentialsRequired;mode;constructor({config:e,isCredentialsRequired:t,mode:i}){this.config=e,this.isCredentialsRequired=t,this.mode=i}getClient(){return d({config:this.config,isCredentialsRequired:this.isCredentialsRequired,mode:this.mode})}}},9157(e,t,i){i.d(t,{y:()=>n});function n({context:e,data:t,nullMessage:i,backgroundColor:n}){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:i||`${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:i="#93C48B"}){console.log(`%c${e}`,`color: #16262E; font-weight: bold; background-color: ${i}; padding: 4px`,t)}({context:e,data:t,backgroundColor:n}),t)}},2088(e,t,i){i.d(t,{A:()=>n});function n(){return Date.now()+Math.floor(100*Math.random())}},636(e,t,i){i.d(t,{A:()=>o});var n=i(5896);function o({name:e,attributes:t={},srOnlyText:i="",useDefaultAttributes:o=!0}){let s={"aria-hidden":(!0).toString(),focusable:(!1).toString()};delete t.className,delete t.class;let r=o?Object.assign({},s,t||{}):t,a=(0,n.jsx)("svg",{className:`icon icon-${e}`,...r,children:(0,n.jsx)("use",{href:`#${e}`})});return i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"sr-only",children:i}),a]}):a}},475(e,t,i){var n,o;i.d(t,{Ll:()=>c,aD:()=>a,aZ:()=>s,cE:()=>n,ou:()=>r});class s{constructor(e,t,i){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}
1class r{constructor(e,t,i,n,o,s){this.kind=e,this.start=t,this.end=i,this.line=n,this.column=o,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let a={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},l=new Set(Object.keys(a));function c(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&l.has(t)}(o=n||(n={})).QUERY="query",o.MUTATION="mutation",o.SUBSCRIPTION="subscription"},7585(e,t,i){var n=i(3099),o=i(8644),s=i(7213),r=i(6615);new class{constructor(){this.profile=document.querySelector("#headerTopbarProfil"),this.menuAccount=document.querySelector(".headerTopbar-menuAccount"),this.avatarContainer=document.querySelector(".headerTopbar-profilAvatar"),this.elementTarget=document.querySelector("html"),this.pmcBridge=new o.A,this.user=new n.A,this.data=null,this.currentUser={id:null,isGranted:!1},this.onDocumentClicked=this.onDocumentClicked.bind(this)}
1async init(){if(this.addEvents(),this.currentUser={id:(await this.pmcBridge.getProfile()).id,isGranted:await this.pmcBridge.isGranted()},this.currentUser.isGranted)try{this.data=await this.user.getMe(this.currentUser.id),window.dataLayer.push({star_followed:!!this.data.followPeople.total}),new r.A({text:"Dans Mon Espace, retrouvez l’activit\xe9 de vos membres dans votre fil d’actualit\xe9 !",autoRemove:!1,keyBrowserStorage:"feedTooltip"}).init(),this.data.subscribers.total>0&&new r.A({text:"Un nouvel utilisateur vous suit !",mainButtonText:"Je d\xe9couvre",mainButtonHref:`https://${window.frontConfig.env.community.domain}/mon-espace#/abonnes`,autoRemove:!0,keyBrowserStorage:"feedSubscribersTooltip"}).init()}catch(e){console.error("Error: HeaderMenuAccount::init : ERROR while getting user data",{error:e})}}addEvents(){this.profile.addEventListener("click",e=>{let t=e.target;(0,s.A)({target:t,selectorString:".headerTopbar-profilButton",nodeName:["button"]})&&this.currentUser.isGranted&&this.toggleMenu()})}toggleMenu(){this.isMenuOpen()?this.close():this.open()}isMenuOpen(){return this.menuAccount.classList.contains("opened")}open(){this.createOutsideClickListener(),this.elementTarget.classList.add("menuAccount-active"),this.menuAccount.classList.add("opened")}close(){document.removeEventListener("click",this.onDocumentClicked),this.elementTarget.classList.remove("menuAccount-active"),this.menuAccount.classList.remove("opened")}createOutsideClickListener(){document.addEventListener("click",this.onDocumentClicked)}onDocumentClicked(e){let t=e.target;(0,s.A)({target:t,selectorString:".headerTopbar-profilButton",nodeName:["button"]})||this.toggleMenu()}}().init()},6464(e,t,i){i.d(t,{A:()=>l});var n=i(5896),o=i(6608),s=i(2088),r=i(7213),a=i(636);class l{constructor({text:e="",target:t,keyBrowserStorage:i="",displayCloseButton:n=!1,displayMainButton:r=!0,mainButtonText:a="J'ai compris",autoRemove:l=!0,delayToRemove:c=1e4,onRemove:d=()=>{},customClass:u="",closeOnOutsideClick:h=!0,mainButtonHref:m=""}){this.text=e,this.target=t,this.id=(0,s.A)(),this.keyBrowserStorage=i,this.displayCloseButton=n,this.displayMainButton=r,this.mainButtonText=a,this.autoRemove=l,this.delayToRemove=c,this.onRemove=d,this.customClass=u,this.closeOnOutsideClick=h,this.mainButtonHref=m,this.tooltipId=`tooltip-${this.id}`,this.checkboxId=`checkbox-${this.id}`,""===this.keyBrowserStorage&&console.warn("Tooltip module: missing keyBrowserStorage parameter"),this.brandStorage=new o.A({trigram:"tel"}),this.onClickOnContainer=this.onClickOnContainer.bind(this),this.removeTooltip=this.removeTooltip.bind(this)}init(){this.canBeDisplayed()&&(this.render(),this.container=this.target.querySelector(`#${this.tooltipId}`),this.addEvents(),this.autoRemove&&setTimeout(()=>{this.removeTooltip()},this.delayToRemove))}canBeDisplayed(){let e=this.brandStorage.getStorage({local:[this.keyBrowserStorage]});return!e?.local[this.keyBrowserStorage]&&!document.querySelector(".tooltip")}render(){this.target.appendChild((0,n.jsxs)("div",{className:`tooltip ${this.customClass}${this.displayCloseButton?" closable":""}`,id:this.tooltipId,children:[this.displayCloseButton&&(0,n.jsx)("button",{type:"button",className:"tooltip-close",children:(0,n.jsx)(a.A,{name:"x-mark",srOnlyText:"Fermer l'info-bulle"})}),(0,n.jsx)("div",{className:"tooltip-text",children:this.text}),this.displayMainButton&&(0,n.jsx)("button",{type:"button",className:"tooltip-button",children:this.mainButtonText})]}))}addEvents(){this.container.addEventListener("click",this.onClickOnContainer),this.closeOnOutsideClick&&document.addEventListener("click",this.removeTooltip)}onClickOnContainer(e){let t=e.target,i=(0,r.A)({target:t,selectorString:".tooltip-close",nodeName:["button"]}),n=(0,r.A)({target:t,selectorString:".tooltip-button",nodeName:["button"]});n&&this.mainButtonHref&&window.location.assign(this.mainButtonHref),(i||n)&&this.removeTooltip()}removeTooltip(){this.onRemove(),this.container.remove(),this.closeOnOutsideClick&&document.removeEventListener("click",this.removeTooltip),this.brandStorage.setStorage({local:{[this.keyBrowserStorage]:!0}})}}},6615(e,t,i){i.d(t,{A:()=>
1o});var n=i(6464);class o{constructor({text:e,keyBrowserStorage:t,mainButtonText:i,autoRemove:o,mainButtonHref:s}){this.tooltip=new n.A({text:e,customClass:"tooltipUserMenu",hasDoNotShowAgainCheckbox:!0,keyBrowserStorage:t,autoRemove:o,mainButtonText:i,mainButtonHref:s,target:document.querySelector("#headerTopbarProfil")})}async init(){this.tooltip.init()}}}}]);
2//# sourceMappingURL=dynamic-import-headerMenuAccount.7b6b2dc084600eac.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.