PageSourceSearch

https://ici.tou.tv/_next/static/chunks/pages/completer-profil-0535889f3b7646f5.js

js tou.tv collected 2026-10-02 03:10:35 UTC 7,551 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[875],{29155:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/completer-profil",function(){return n(90277)}])},46206:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var i=n(24246),o=n(28228),l=n(27378),r=n(88039),s=n(30504),a=n(90093),c=n(55072),u=n(15224),d=n(69864),p=n(31367),h=n(95850),m=n(93722),g=n(60473),f=n(56718),v=n(17668),x=n(24241),j=n(52419),y=n(1585),_=n(50416),b=n(3257);let w=e=>(null==e?void 0:e.behaviour)===h.kY.AutoSubscribe,Z=e=>(null==e?void 0:e.behaviour)===h.kY.Manual;function C(e){let{fromEntitlements:t,onSubmit:n}=e,{auth:c}=(0,u.a)(),{accountData:h,isLoading:y}=(0,f.m)(),{mailingLists:b,loading:C}=(0,d.Z)(),[S]=(0,l.useState)({level:"success",title:(0,g.t)("Your account has been successfully created!")}),[E,$]=(0,l.useState)(!1),B=(0,l.useRef)(null),{spacing:q,fontWeights:L}=(0,o.useTheme)(),{register:N,handleSubmit:F,setValue:M}=(0,r.cI)({mode:"onBlur"}),O=(null==b?void 0:b.filter(Z).length)===0,R=(0,l.useCallback)(async e=>{if(null==c?void 0:c.accessToken){for(let t of($(!0),null!=b?b:[])){if(!t.id)return;
1if(w(t)||(null==e?void 0:e[t.id])){let e={id:t.id,toutv:t.id===v.PY,partner:t.id===v.Vq};try{await (0,p.eF)(c.accessToken,t.id,!0),(0,x.cM)(new j.a4(e))}catch(t){(0,x.cM)(new j.a4(e,t))}}}$(!1),null==n||n()}else t||null==n||n()},[null==c?void 0:c.accessToken,b,n,t]),Y=F(R);return((0,l.useEffect)(()=>{null==b||b.filter(w).forEach(e=>{e.id&&M(e.id,!0)})},[b,M]),(0,l.useEffect)(()=>{if(["warning","error"].includes(S.level)){var e;window.scrollTo({top:null===(e=B.current)||void 0===e?void 0:e.getBoundingClientRect().top,behavior:"smooth"})}},[S]),(0,l.useEffect)(()=>{O&&R()},[R,O]),y||C)?(0,i.jsx)(P,{}):!h||O?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.SH,{alert:S,ref:B}),(0,i.jsxs)(a.ZP,{onSubmit:Y,children:[(0,i.jsx)(a.ZP.Title,{children:(0,m.o)("account_user_info","complete_your_profile")}),(0,i.jsx)(I,{$_css3:q[16],children:null==b?void 0:b.filter(Z).map(e=>e.id?(0,i.jsxs)("div",{children:[(0,i.jsx)(k,{color:"gray-b",weight:"light",$_css:q[16],children:e.title}),(0,i.jsx)(T,{htmlFor:e.id,text:e.description,$_css2:L.light,children:(0,i.jsx)(a.ZP.Checkbox,{...N(e.id)})})]},e.id):null)}),(0,i.jsx)(a.ZP.Buttons,{children:(0,i.jsx)(_.Z,{isLoading:E,type:"submit",backgroundColor:"brandDarker",children:(0,g.t)("Continue")})})]})]})}var P=(0,o.default)(y.Z).withConfig({componentId:"sc-70d2c834-0"})({margin:"0 auto"}),k=(0,o.default)(b.l5).withConfig({componentId:"sc-70d2c834-1"})(e=>({marginBottom:e.$_css})),T=(0,o.default)(c.ZP.CheckboxLabel).withConfig({componentId:"sc-70d2c834-2"})(e=>({"* & p":{fontWeight:e.$_css2}})),I=(0,o.default)(a.ZP.Content).withConfig({componentId:"sc-70d2c834-3"})(e=>({gap:e.$_css3}))},66899:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var i=n(24246),o=n(88038),l=n.n(o),r=n(28228),s=n(97787);let a={gem:{image:{height:630,url:"https://gem.cbc.ca/images/share/gem.jpg",width:1200},itunes_app_argument:"https://gem.cbc.ca",title:"CBC Gem",type:"website"},toutv:{image:{height:630,url:"https://ici.tou.tv/images/share/toutv.png",width:1200},itunes_app_argument:"https://ici.tou.tv",title:"ICI TOU.TV",type:"website"}};function c(e){var t,n,o,c,u,d,p,h,m;let{title:g,htmlMeta:f,structuredMetadata:v}=e,x=(0,s.Xf)(),{colors:j}=(0,r.useTheme)(),y=null==f?void 0:f.description,_=null==f?void 0:f["og:description"],b=null==f?void 0:f["og:url"],w=null==f?void 0:f["og:title"],Z=null!==(c=null==f?void 0:f["og:type"])&&void 0!==c?c:a[x].type,C=String(null!==(u=null==f?void 0:f["og:image.width"])&&void 0!==u?u:a[x].image.width),P=String(null!==(d=null==f?void 0:f["og:image.height"])&&void 0!==d?d:a[x].image.height),k=null!==(p=null==f?void 0:null===(t=f["og:image"])||void 0===t?void 0:t.replace("(_Size_)",null!=C?C:1200))&&void 0!==p?p:a[x].image.url,T=null==f?void 0:f.keywords,I=null==f?void 0:f["apple-media-service-subscription-v2"],S=null==f?void 0:f["apple-itunes-app"],E=null==f?void 0:f.robots,$=null==f?void 0:f.canonicalUrl,B=null!==(m=null!==(h=g&&"".concat(g," | ").concat(a[x].title))&&void 0!==h?h:null==f?void 0:f.title)&&void 0!==m?m:a[x].title;return(0,i.jsxs)(l(),{children:[(0,i.jsx)("title",{children:B}),T&&(0,i.jsx)("meta",{name:"keywords",content:T}),y&&(0,i.jsx)("meta",{name:"description",content:y}),w&&(0,i.jsx)("meta",{property:"og:title",content:w}),_&&(0,i.jsx)("meta",{property:"og:description",content:_}),b&&(0,i.jsx)("meta",{property:"og:url",content:b}),(0,i.jsx)("meta",{property:"og:type",content:Z}),(0,i.jsx)("meta",{property:"og:image",content:k}),(0,i.jsx)("meta",{property:"og:image:width",content:C}),(0,i.jsx)("meta",{property:"og:image:height",content:P}),(0,i.jsx)("meta",{name:"theme-color",content:j.gray1}),I&&(0,i.jsx)("meta",{name:"apple-media-service-subscription-v2",content:"expires=".concat(I.expires,', type={"availabilityType": ').concat(null===(n=I.type)||void 0===n?void 0:n.availabilityType,', "tiers": [').concat(null===(o=I.type)||void 0===o?void 0:o.tiers,"]}")}),S&&(0,i.jsx)("meta",{name:"apple-itunes-app",content:S}),(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),E&&(0,i.jsx)("meta",{name:"robots",content:E}),v&&(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(v)}}),$&&(0,i.jsx)("link",{rel:"canonical",href:$})]})}},50416:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var i=n(24246),o=n(28228);n(27378);
1var l=n(50220),r=n(60473),s=n(40209),a=n(85022),c=n(7811);function u(e){let{isLoading:t,children:n,...o}=e;return(0,i.jsx)(p,{disabled:t,isLoading:t,"data-cy":l.$n.loadingBtn,...o,children:(0,i.jsx)(d,{isLoading:t,children:n})})}function d(e){let{isLoading:t,loadingAriaLabel:n,children:o}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h,{"aria-hidden":t,$_css:t?0:1,children:o}),t&&(0,i.jsx)(c.Z,{"aria-label":null!=n?n:(0,r.t)("Loading")})]})}var p=(0,o.default)(function(e){let{isLoading:t,buttonComponent:n="Primary",children:o,...l}=e,r={Primary:s.Z,Secondary:a.Z}[n];return(0,i.jsx)(r,{...l,children:o})}).withConfig({componentId:"sc-6e3d265d-0"})({position:"relative"}),h=(0,o.default)("span").withConfig({componentId:"sc-6e3d265d-1"})(e=>({opacity:e.$_css}))},59502:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var i=n(24246),o=n(27378),l=n(86677),r=n(88478),s=n(13822),a=n(72358),c=n(85484);function u(e){let{pageId:t,trackFilterChanges:n=!1,additionalAnalyticsData:u,children:d}=e,p=(0,l.useRouter)(),h=!!t&&window.location.pathname,m=(0,r.l)(h),g=(0,r.l)(p.query);return(0,o.useEffect)(()=>{let e=p.asPath.substring(1);e||(e="accueil"),s.Z.add(e,s.r.page)},[p.asPath]),(0,o.useEffect)(()=>{h&&(m||n&&g)&&c.Z.trackPage(t,(0,a.OI)(p.asPath),p.query,u)},[t,h,g,m,p.asPath,p.query,n,u]),(0,i.jsx)(i.Fragment,{children:d})}},90277:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var i=n(24246),o=n(86677),l=n(46206),r=n(66899),s=n(9343),a=n(5685),c=n(93722),u=n(65861),d=n(59502);function p(){let e=(0,o.useRouter)();return(0,i.jsxs)(d.Z,{pageId:u.u.CompleteProfile,children:[(0,i.jsx)(r.Z,{title:(0,c.o)("account_user_info","complete_profile")}),(0,i.jsx)(a.ZP,{as:"h1",children:(0,c.o)("account_user_info","complete_your_profile")}),(0,i.jsx)(s.rj,{children:(0,i.jsx)(s.vB,{children:(0,i.jsx)(l.Z,{onSubmit:()=>{var t;let n=null!==(t=e.query.returnUrl)&&void 0!==t?t:"/";
1e.push({pathname:n,query:"/"===n?{displayPremiumModal:!0}:void 0},n)}})})})]})}}},function(e){e.O(0,[3085,546,2888,9774,179],function(){return e(e.s=29155)}),_N_E=e.O()}]);

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.