PageSourceSearch

https://www.molotov.tv/624-796d37d20e2a12b2c052.js

js molotov.tv collected 2026-10-01 10:31:08 UTC 9,072 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_molotovtv_js_front_landing=self.webpackChunk_molotovtv_js_front_landing||[]).push([[624],{40624:(e,t,o)=>{o.r(t),o.d(t,{default:()=>se});var n=o(23029),r=o(92901),s=o(9417),i=o(85501),a=o(56822),l=o(53954),c=o(64467),u=o(96540),d=o(61225),f=o(80971),p=o(54625),A=o(62359),m=o(42917),h=o(63761),v=o(67931),y=o(32485),g=o.n(y),x=o(15992),j=o(77050),M=o(74848);const b=function(e){var t=e.customStyle,o=e.value,n=e.onClick;return(0,M.jsxs)("div",{className:g()(j.A.root,t),children:[(0,M.jsx)("span",{className:j.A.value,children:o}),(0,M.jsx)("span",{className:j.A.button,onClick:n,children:x.A.modify})]})};var P=o(79223);const S=function(e){var t=e.hasPassword,o=e.onClickEditPassword,n=e.onClickSetPassword;return t?(0,M.jsx)(b,{value:"••••••••••••",onClick:o}):(0,M.jsx)(P.A,{color:P.A.colors.greyFull,value:"Créer un mot de passe",onClick:n})};const C=function(e){var t=e.email,o=void 0===t?"":t,n=e.style,r=e.renderModes,s=void 0===r?{}:r,i=e.hasPassword;return(0,M.jsxs)("div",{children:[(0,M.jsx)(m.A,{title:x.A.profile.connexion,mobileTitle:x.A.profile.mobileConnexion,customStyle:n.title,isLogout:!0}),(0,M.jsxs)(h.A,{customStyle:n.group,children:[(0,M.jsx)(v.A,{title:x.A.profile.email}),(0,M.jsx)(b,{value:o,onClick:s.emailUpdateMode})]}),(0,M.jsxs)(h.A,{customStyle:n.lastGroup,inputStyle:i?null:n.createPasswordButton,children:[(0,M.jsx)(v.A,{title:x.A.profile.password}),S({hasPassword:i,onClickEditPassword:s.updatePasswordMode,onClickSetPassword:s.setPasswordMode})]})]})};var w=o(63950),k=o.n(w),R=o(36034);const V=function(e){var t=e.children,o=e.customStyle;return(0,M.jsx)("div",{className:g()(R.A.selectGroup,o),children:t})};var _=o(7769),N=o(81318),I=o(85315),T=o(69281),B=o(3418),D=o(43683),F=o(77194);function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,n=(0,l.A)(e);if(t){var r=(0,l.A)(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return(0,a.A)(this,o)}}var U=function(e){(0,i.A)(o,e);var t=G(o);function o(e){var r;(0,n.A)(this,o),r=t.call(this,e),(0,c.A)((0,s.A)(r),"firstname",void 0),(0,c.A)((0,s.A)(r),"lastname",void 0),(0,c.A)((0,s.A)(r),"gender",void 0),(0,c.A)((0,s.A)(r),"day",void 0),(0,c.A)((0,s.A)(r),"month",void 0),(0,c.A)((0,s.A)(r),"year",void 0),(0,c.A)((0,s.A)(r),"onSubmit",(function(){var e=r.props.submit,t="".concat(r.year,"-").concat(r.month,"-").concat(r.day);0!==r.day.length&&0!==r.month.length&&0!==r.year.length||(t=0),e({first_name:r.firstname,last_name:r.lastname,birthday:t,gender:r.gender||""})}));var i=e.account,a=i.firstname,l=i.lastname,u=i.gender,d=i.birthday;if(r.day="",r.month="",r.year="",d){var f=new Date(d),p=f.getDate(),A=f.getMonth()+1;r.day=p<10?"0"+p:p,r.month=A<10?"0"+A:A,r.year=f.getFullYear()}return r.firstname=a,r.lastname=l,r.gender=u,r}return(0,r.A)(o,[{key:"componentDidMount",value:function(){B.A.trackPage("account_profile")}},{key:"render",value:function(){var e=this,t=this.props,o=t.account,n=t.profileInformation,r=t.style;return(0,M.jsxs)("div",{className:F.A.profileInfoWrapper,children:[(0,M.jsx)(m.A,{title:x.A.profile.personalInfo,mobileTitle:x.A.profile.mobilePersonalInfo,customStyle:r.title}),(0,M.jsxs)(h.A,{customStyle:r.group,children:[(0,M.jsx)(v.A,{title:x.A.profile.lastname}),(0,M.jsx)(_.A,{value:o.lastname,customStyle:F.A.input,onChange:function(t){e.lastname=t}})]}),(0,M.jsxs)(h.A,{customStyle:r.group,children:[(0,M.jsx)(v.A,{title:x.A.profile.firstname}),(0,M.jsx)(_.A,{value:o.firstname,customStyle:F.A.input,onChange:function(t){e.firstname=t}})]}),(0,M.jsxs)(h.A,{customStyle:r.group,children:[(0,M.jsx)(v.A,{title:x.A.profile.gender}),(0,M.jsx)(N.A,{name:"sex",values:[{value:"M",valueDisplayed:x.A.profile.male},{value:"F",valueDisplayed:x.A.profile.female}],selectedValue:this.gender,buttonStyle:F.A.radio,onChange:function(t){e.gender=t},radioButtonStyle:F.A.radioButtonStyle})]}),(0,M.jsxs)(h.A,{customStyle:r.lastGroup,inputStyle:g()(F.A.select,F.A.birthday),children:[(0,M.jsx)(v.A,{title:x.A.profile.birthday}),(0,M.jsxs)(V,{customStyle:F.A.birthdaySelect,children:[(0,M.jsx)(I.A,{values:D.A.getDaysArray(),onChange:function(t){e.day=t},selectedValue:this.day}),(0,M.jsx)(I.A,{values:D.A.getMonthsArray(),onChange:function(t){e.month=t},selectedValue:this.month}),(0,M.jsx)(I.A,{values:D.A.getYearsArray(),onChange:function(t){e.year=t},selectedValue:this.year})]})]}),(0,M.jsx)(T.A,{customStyle:F.A.separator}),(0,M.jsx)(P.A,{color:P.A.colors.yellowFull,customStyle:g()(F.A.saveBtn,(0,c.A)({},F.A.pending,n.pending)),value:x.A.profile.save,onClick:this.onSubmit}),(0,M.jsx)("br",{className:F.A.clear})]})}}]),o}(u.Component);(0,c.A)(U,"defaultProps",{account:{},profileInformation:{},style:{},renderModes:{},submit:k()});var W=o(73563),q=o(74778);const z=function(e){var t=e.style,o=e.renderModes,n=void 0===o?{}:o;return(0,M.jsxs)("div",{children:[(0,M.jsx)(m.A,{title:x.A.profile.deleteAccount,customStyle:t.title}),(0,M.jsxs)("div",{className:q.A.flexWrapper,children:[(0,M.jsx)("p",{children:"Votre compte sera définitivement supprimé"}),(0,M.jsx)("span",{className:q.A.toDeleteAccount,onClick:n.deleteAccountMode,children:x.A.profile.pursue})]})]})};var E,L,O=o(24617),Y=o(27415),H=o(22559),J=o(69389),Z=o(54590),K=o(12033),Q=o(9638),
1X=o(92058),$=o(21695),ee=o(74618);function te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,n=(0,l.A)(e);if(t){var r=(0,l.A)(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return(0,a.A)(this,o)}}var oe="default",ne="password_set",re="delete_account",se=(0,d.Ng)((function(e,t){return{account:(0,H.A)(e),profileInformation:e.profileInformation,query:(0,J.Z)(t),navVisible:e.ui.navVisible}}))((L=function(e){(0,i.A)(o,e);var t=te(o);function o(){var e;(0,n.A)(this,o);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),(0,c.A)((0,s.A)(e),"submit",(function(t){e.props.dispatch((0,Q.z0)(t))})),(0,c.A)((0,s.A)(e),"handleUpdateProfile",(function(t){var o=t.firstname,n=t.lastname;e.props.dispatch((0,Q.VR)(o,n))})),(0,c.A)((0,s.A)(e),"redirectToProfileMode",(function(t,o){var n=[];t&&n.push("mode=".concat(t)),o&&n.push("prev=".concat(o));var r=n.join("&");e.props.dispatch((0,f.VC)(ee.A.profile+(r?"?".concat(r):"")))})),(0,c.A)((0,s.A)(e),"getRenderModes",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{updatePasswordMode:function(){return e.props.dispatch((0,f.VC)(ee.A.resetPassword+"?email="+e.props.account.email))},setPasswordMode:function(){return e.redirectToProfileMode(ne,t.mode)},emailUpdateMode:function(){return e.props.dispatch((0,f.VC)(ee.A.resetEmail+"?email="+e.props.account.email))},deleteAccountMode:function(){return e.redirectToProfileMode(re)},customMode:function(t){return function(){return e.redirectToProfileMode(t)}},defaultMode:function(){return e.redirectToProfileMode()}}})),e}return(0,r.A)(o,[{key:"componentDidMount",value:function(){this.props.dispatch((0,Q.Jt)()),(0,Z.h)(o.getMeta())}},{key:"componentWillUnmount",value:function(){(0,Z.z)()}},{key:"render",value:function(){var e=this.props,t=e.account,o=e.profileInformation,n=e.query,r=e.navVisible,s=n.mode||oe,i=n.prev||oe;return(0,M.jsx)("div",{"data-test":"page-profile",children:(0,M.jsxs)(W.A,{navVisible:r,children:[s===ne&&(0,M.jsx)(O.A,{close:this.getRenderModes().customMode(i)}),s===re&&(0,M.jsx)(Y.A,{close:this.getRenderModes().defaultMode,renderModes:this.getRenderModes(n)}),s===oe&&(0,M.jsxs)("div",{children:[(0,M.jsx)(C,{renderModes:this.getRenderModes(),hasPassword:t.hasPassword,email:t.email,style:X.A}),(0,M.jsx)(U,{account:t,profileInformation:o,renderModes:this.getRenderModes(),style:X.A,submit:this.submit}),(0,M.jsxs)("div",{className:X.A.groupText,children:[(0,M.jsx)(m.A,{title:$.A.i18n.profile.options,customStyle:X.A.title}),(0,M.jsxs)("div",{children:["Vous pouvez gérer l'ensemble de vos options souscrites depuis la rubrique"," ",(0,M.jsx)(p.N_,{className:X.A.yellowLink,to:ee.A.offers,children:"Options et chaînes"}),"."]})]}),(0,M.jsx)("div",{className:X.A.lastGroup,children:(0,M.jsx)(z,{renderModes:this.getRenderModes(),style:X.A})})]})]})})}}],[{key:"getMeta",value:function(){return{og:{title:$.A.i18n.pageTitle.public,type:"website",image:(0,K.Y)("image.pageHome.ogImage"),imageAlt:"Logo Molotov.tv",url:"".concat((0,A.PI)()).concat($.A.routes.profile),imageHeight:400,imageWidth:588,description:"Mon compte"}}}}]),o}(u.Component),(0,c.A)(L,"defaultProps",{account:{},profileInformation:{}}),E=L))||E}}]);
2//# sourceMappingURL=624-796d37d20e2a12b2c052.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.