PageSourceSearch

https://espace-client.sfr.fr/multi/chunk-B3AO6L2H.js

js sfr.fr collected 2026-10-01 09:00:49 UTC 7,326 bytes, 24 lines download raw bytes

1import{a as te}from"./chunk-QJYRJE6G.js";import{a as ee}from"./chunk-UOWE5MPD.js";import{a as F}from"./chunk-KI35ECEC.js";import{h as J,j as X,k as Z}from"./chunk-XOVRTSHC.js";import"./chunk-ZO4EAQHA.js";import{Aa as p,Ba as V,Ca as $,Fa as r,G as j,Ga as _,Ha as v,K as u,O as P,P as L,T as C,Ua as R,V as k,Va as H,X as g,Y as a,Za as z,_a as q,ab as B,ca as h,fa as U,jb as W,ka as m,la as d,m as A,ma as M,na as y,nb as Q,oa as E,ob as K,pa as f,qa as l,ra as s,sa as x,sb as Y,ta as b,ua as I,va as N,wa as O,xa as S,ya as D,yb as G}from"./chunk-XDQKWMTK.js";var T=class t{extra=R.required();status=C(!1);ngOnInit(){let n=this.extra().status;this.status.set(n==="ACTIVE")}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=h({type:t,selectors:[["app-extra-input"]],inputs:{extra:[1,"extra"]},decls:12,vars:7,consts:[[1,"W"],[1,"action","mob-col"],[1,"content"],["alt","ligne","height","40","loading","lazy","width","40",3,"src"],[1,"text"],[1,"actions","r","nm"],["disabled","","type","checkbox",1,"switch","hid",3,"checked","id","name"],[3,"for"]],template:function(e,i){e&1&&(b(0,"div",0)(1,"div",1)(2,"div",2),N(3,"img",3),b(4,"div",4)(5,"b"),r(6),I()()(),b(7,"div",5)(8,"b"),r(9),I(),N(10,"input",6)(11,"label",7),I()()()),e&2&&(a(3),S("src",i.extra().logoURL,g),a(3),_(i.extra().name),a(3),_(i.status()?"Activ\xE9e":"D\xE9sactiv\xE9e"),a(),S("checked",i.status())("id",i.extra().code)("name",i.extra().name),a(),S("htmlFor",i.extra().code))},encapsulation:2})};var w=class t{url;apollo=u(J);http=u(B);urlService=u(Z);constructor(){this.url=this.urlService.getApiUrl()+"/v10"}getExtrasSummary(n){return this.url.includes("localhost")?A(F):this.apollo.query({query:X`
2                {
3                    group(line: "${n}", essentialLines: true)
4                    {
5                        lines {
6                            pseudo
7                            lineNumber
8                            role
9                            extra {
10                                isFullActivation
11                                extraInfosList{
12                                    code
13                                    description
14                                    extraType
15                                    logoURL
16                                    name
17                                    startDate
18                                    status
19                                    statusEffetSR
20                                }
21                            }
22                        }
23                    }
24                }`,context:{showLoader:!0}})}activate(n,e){let i=new z({"Content-Type":"application/json",Accept:"application/json",secure:"false","Access-Control-Allow-Origin":"*"});return this.url.includes("localhost")?A(F):this.http.post(`${this.url}/extra/activate/${n}/${e}`,null,{context:new q().set(G,!0),headers:i})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})};var re=["scrollTarget"],oe=(t,n)=>n.lineNumber;function le(t,n){if(t&1&&(l(0,"div",1)(1,"sfcu-message",3)(2,"p")(3,"b"),r(4),s()()()()),t&2){let e=p();a(),f("type",e.MessageType.OK),a(3),_(n)}}function se(t,n){if(t&1&&r(0),t&2){let e,i=p(2);v(" ",(e=i.heartLine())==null?null:e.lineNumber," ")}}function ce(t,n){if(t&1&&x(0,"app-extra-input",4),t&2){let e=n.$implicit;f("extra",e)}}function pe(t,n){if(t&1&&r(0),t&2){let e=p().$implicit;v(" ",e==null?null:e.lineNumber," ")}}function ue(t,n){if(t&1&&x(0,"app-extra-input",4),t&2){let e=n.$implicit;f("extra",e)}}function me(t,n){if(t&1){let e=O();y(0,ue,1,1,"app-extra-input",4,M),l(2,"div",5)(3,"button",6),D("click",function(){P(e);let c=p().$implicit,o=p(2);return L(o.callActivation(c.lineNumber))}),r(4,"Activer les options par SMS"),s()()}if(t&2){let e=p().$implicit;E(e.extra==null?null:e.extra.extraInfosList)}}function de(t,n){if(t&1&&(l(0,"div",1)(1,"div",7)(2,"div",8),x(3,"img",9),l(4,"b"),r(5,"Ajoutez des contenus et partagez les avec votre famille !"),s()(),l(6,"div",10)(7,"a",11),r(8,"Ajouter des options"),s()()()()),t&2){let e=p(3);a(7),f("href",e.getUrlAjoutOption(),g)}}function fe(t,n){if(t&1&&(l(0,"div")(1,"h2"),r(2),s(),m(3,pe,1,1),s(),m(4,me,5,0)(5,de,9,1,"div",1)),t&2){let e=n.$implicit;
24a(2),v("Ligne: ",(e==null?null:e.pseudo)||(e==null?null:e.lineNumber)),a(),d(e!=null&&e.pseudo?3:-1),a(),d(!(e.extra==null||e.extra.extraInfosList==null)&&e.extra.extraInfosList.length?4:5)}}function xe(t,n){if(t&1){let e=O();l(0,"div")(1,"h2"),r(2),s(),m(3,se,1,1),s(),y(4,ce,1,1,"app-extra-input",4,M),l(6,"div",5)(7,"button",6),D("click",function(){let c;P(e);let o=p();return L(o.callActivation((c=o.heartLine())==null?null:c.lineNumber))}),r(8,"Activer les options par SMS"),s()(),y(9,fe,6,3,null,null,oe),x(11,"app-bloc-liens-utiles")}if(t&2){let e,i,c,o=p();a(2),v("Ligne: ",((e=o.heartLine())==null?null:e.pseudo)||((e=o.heartLine())==null?null:e.lineNumber)),a(),d((i=o.heartLine())!=null&&i.pseudo?3:-1),a(),E((c=o.heartLine())==null||c.extra==null?null:c.extra.extraInfosList),a(5),E(o.addiLines())}}function _e(t,n){if(t&1&&(l(0,"div",2)(1,"div",12),x(2,"img",13),l(3,"h2",14),r(4),s(),l(5,"p"),r(6," Ajouter des contenus et partagez les avec votre famille !"),s(),l(7,"div",15)(8,"a",11),r(9,"Ajouter des options"),s()()()()),t&2){let e,i=p();a(4),_((e=i.holder())==null?null:e.firstName),a(4),f("href",i.getUrlAjoutOption(),g)}}var ie=class t extends ee{extrasService=u(w);window=u(K);successMessage=C(null);scrollTarget=H("scrollTarget");ngOnInit(){super.fetchSummary(n=>this.extrasService.getExtrasSummary(n)),this.taggageService.tagPage("Pass/Yellow/Extras")}callActivation(n){this.extrasService.activate(this.heartLine()?.lineNumber,n).pipe(W(this.destroyRef)).subscribe({next:e=>{console.log(e),this.successMessage.set("SMS envoy\xE9"),this.scrollTarget()?.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},error:e=>console.error(e)})}getUrlAjoutOption(){let n=this.window.location.origin,e=n.includes("pfv")?"https://www.pfv.sfr.fr/espace-client/options":"https://www.sfr.fr/espace-client/options";return e=n.includes("cms")?"https://cms.sfr.fr/espace-client/options":n.includes("futpsw")?"https://futpsw.sfr.fr/espace-client/options":e,e}MessageType=Q;static \u0275fac=(()=>{let n;return function(i){return(n||(n=k(t)))(i||t)}})();static \u0275cmp=h({type:t,selectors:[["app-partage-contenus"]],viewQuery:function(e,i){e&1&&V(i.scrollTarget,re,5),e&2&&$()},features:[U],decls:6,vars:2,consts:[["scrollTarget",""],[1,"W"],[1,"E"],[3,"type"],[3,"extra"],[1,"actions","c"],[1,"btn",3,"click"],[1,"action","mob-col"],[1,"content"],["src","//static.s-sfr.fr/assets/pictos/plus_cercle_40_rouge.svg","alt","Ajouter","width","40","height","40"],[1,"actions","r","nm"],[1,"btn",3,"href"],[1,"alert"],["alt","","height","57","src","https://static.s-sfr.fr/assets/pictos/plus_cercle_40_rouge.svg","width","57"],[1,"bold"],[1,"actions"]],template:function(e,i){if(e&1&&(l(0,"h1",null,0),r(2,"Partage des contenus"),s(),m(3,le,5,2,"div",1),m(4,xe,12,2)(5,_e,10,2,"div",2)),e&2){let c,o;a(3),d((c=i.successMessage())?3:-1,c),a(),d(!((o=i.heartLine())==null||o.extra==null||o.extra.extraInfosList==null)&&o.extra.extraInfosList.length?4:5)}},dependencies:[T,te,Y],styles:["p[_ngcontent-%COMP%]{margin-top:.75em}"]})};export{ie as PartageContenus};

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.