1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3302],{25603:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lang]/app/profile",function(){return s(87159)}])},49440:function(e,t,s){"use strict";s.d(t,{Z:function(){return c}});var a=s(51438),i=s(52951),n=s(88029),r=s(5950),l=s(85893),o=s(67294),d=s(83352),c=function(e){(0,n.Z)(s,e);var t=(0,r.Z)(s);function s(e){var i;return(0,a.Z)(this,s),(i=t.call(this,e)).state={},i}return(0,i.Z)(s,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this,t=this.props;return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"label-input-access-auth",style:!0===this.props.noMargTop?{marginTop:0}:{},children:["Lastname"===t.name?"Last name":"Firstname"===t.name?"First name":t.name,"pass"===t.type?this.props.noTooltip?null:(0,l.jsxs)("div",{className:"label-input-access-auth-info",children:[(0,l.jsx)(d.Z,{style:{marginTop:0}}),(0,l.jsxs)("div",{className:"label-input-access-auth-info-hover",children:["Requirements:",(0,l.jsx)("br",{})," - ","Min. length 12 characters",(0,l.jsx)("br",{})," - ","At least 1 digit",(0,l.jsx)("br",{})," - ","At least 1 special character ","(!@#$%^&*)",(0,l.jsx)("br",{})," - ","At least 1 capital letter",(0,l.jsx)("br",{})," - ","At least 1 small letter"]})]}):null]}),(0,l.jsx)("input",{ref:t.inputRef?t.inputRef:null,value:t.value,disabled:!!this.props.disabled,onChange:function(s){return e.props.disabled?null:t.handleInput(t.type,s.target.value)},name:t.name,type:t.crypt?"password":"text",placeholder:"Lastname"===t.name?"Last name":"Firstname"===t.name?"First name":t.name,className:t.err?"input-access-auth input-access-auth-err transition-300":"input-access-auth transition-300"})]})}}]),s}(o.Component)},87159:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return x}});var a=s(47568),i=s(51438),n=s(52951),r=s(88029),l=s(5950),o=s(97582),d=s(85893),c=s(67294),h=s(14364),p=s(29473),m=s(37742),u=s(49440),g=s(16923),f=s(47565),v=s(11163),j=s.n(v),x=function(e){(0,r.Z)(s,e);var t=(0,l.Z)(s);function s(e){var a;return(0,i.Z)(this,s),(a=t.call(this,e)).state={user:{firstname:"",lastname:"",email:"",title:"",oldpass:"",pass:"",pass2:""},projects:[],project:null,errUSer:{firstname:!1,lastname:!1,email:!1,title:!1,oldpass:!1,pass:!1,pass2:!1},edited:{firstname:!1,lastname:!1,email:!1,title:!1,oldpass:!1,pass:!1,pass2:!1},largerMenu:!1,omniUpdate:!1,loaded:!1},a}return(0,n.Z)(s,[{key:"componentDidMount",value:function(){var e=this;return(0,a.Z)((function(){var t;return(0,o.__generator)(this,(function(s){switch(s.label){case 0:return e.mountPage=!0,[4,(0,h.ih)(e.props.lang)];case 1:return t=s.sent(),e.mountPage&&(e.getInfoUser(),(0,m.S)("visit_profile_page",{account:t.type})),[2]}}))}))()}},{key:"getInfoUser",value:function(){var e=this;p.h.get("/get_info_user",{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token")}}).then((function(t){var s=t.data.data,a=e.state.user;a.firstname=s.firstname,a.lastname=s.lastname,a.title=s.title,a.email=s.email,e.setState({user:a,projects:s.projects,project:s.projects.length>0?s.projects[0]:null,largerMenu:s.larger_menu_scroll,omniUpdate:s.omniscent_updates_by_mail,loaded:!0})})).catch((function(t){console.log("ok error"),(0,f.Z)("unknown_error","error",e.props.lang)}))}},{key:"testMail",value:function(){p.h.get("/test_mail_design",{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token")}}).then((function(e){})).catch((function(e){}))}},{key:"componentWillUnmount",value:function(){this.mountPage=!1}},{key:"handleInput",value:function(e,t){var s=this.state.edited,a=this.state.user;s[e]=!0,a[e]=t,this.setState({user:a,edited:s})}},{key:"sendData",value:function(){var e=this,t={},s=this.state.edited,a=this.state.user,i=this.state.errUSer,n=!1;s.firstname&&a.firstname.length<2&&(i.firstname=!0,n=!0),s.lastname&&a.lastname.length<2&&(i.lastname=!0,n=!0),s.pass&&s.pass2&&(a.pass!==a.pass2&&(i.pass=!0,i.pass2=!0,n=!0),(0,h.VC)(a.pass)&&(i.pass=!0,i.pass2=!0,n=!0)),this.setState({errUSer:i}),setTimeout(function(){this.setState({errUSer:{firstname:!1,lastname:!1,email:!1,oldpass:!1,pass:!1,pass2:!1}})}.bind(this),1500),!1===n&&(this.setState({sending:!0}),s.firstname&&(t.firstname=a.firstname),s.lastname&&(t.lastname=a.lastname),s.title&&(t.title=a.title),s.pass&&s.pass2&&(t.oldpass=a.oldpass,t.pass=a.pass,t.pass2=a.pass2),p.h.post("/update_info_user",t,{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token")}}).then((function(t){var s=t.data;if(e.setState({sending:!1}),s.error){if((0,f.Z)(s.error,"error",e.props.lang,500),"wrong_password"===s.error){var a=e.state.errUSer;a.oldpass=!0,e.setState({errUSer:a}),setTimeout(function(){this.setState({errUSer:{firstname:!1,lastname:!1,email:!1,oldpass:!1,pass:!1,pass2:!1}})}.bind(e),1500)}}else(0,f.Z)("changes_applied","good",e.props.lang)})).catch((function(t){console.log("err"),(0,f.Z)("unknown_error","error",e.props.lang),e.setState({sending:!1})}
1)))}},{key:"editLargerMenu",value:function(){var e=this;this.setState({largerMenu:!this.state.largerMenu}),p.h.get("/update_one_flag_info",{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token")}}).then((function(e){window&&window.location&&window.location.pathname&&j().reload(window.location.pathname)})).catch((function(t){(0,f.Z)("unknown_error","error",e.props.lang)}))}},{key:"editOniUpdate",value:function(){var e=this;this.setState({omniUpdate:!this.state.omniUpdate}),p.h.get("/update_one_flag_info",{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token"),mail:"y"}}).then((function(e){window&&window.location&&window.location.pathname&&j().reload(window.location.pathname)})).catch((function(t){(0,f.Z)("unknown_error","error",e.props.lang)}))}},{key:"updateProject",value:function(e){var t=this;this.setState({project:e}),p.h.post("/update_project_order",{first_projet:e},{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token")}}).then((function(t){localStorage.setItem("project",e),(0,h.S$)("project",e,50),(0,h._v)(20),window&&window.location&&window.location.pathname&&j().reload(window.location.pathname)})).catch((function(e){(0,f.Z)("unknown_error","error",t.props.lang),t.setState({sending:!1})}))}},{key:"renderSkeleton",value:function(){return(0,d.jsxs)("div",{className:"container-withbg",children:[(0,d.jsx)("div",{className:"skeleton-block",style:{height:28,width:120,borderRadius:4,marginBottom:20}}),(0,d.jsxs)("div",{className:"white-area-content",style:{marginTop:0,display:"flex",alignItems:"center",padding:"20px 26px"},children:[(0,d.jsx)("div",{className:"skeleton-block",style:{width:54,height:54,borderRadius:"50%",flexShrink:0}}),(0,d.jsxs)("div",{style:{marginLeft:18},children:[(0,d.jsx)("div",{className:"skeleton-block",style:{height:17,width:160,borderRadius:4}}),(0,d.jsx)("div",{className:"skeleton-block",style:{height:14,width:220,borderRadius:4,marginTop:8}})]})]}),(0,d.jsxs)("div",{className:"white-area-content",children:[(0,d.jsx)("div",{className:"skeleton-block",style:{height:15,width:150,borderRadius:4}}),(0,d.jsx)("div",{className:"white-area-content-splitter"}),(0,d.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,d.jsxs)("div",{style:{width:"calc(50% - 15px)"},children:[(0,d.jsx)("div",{className:"skeleton-block",style:{height:15,width:100,borderRadius:4,marginTop:18}}),(0,d.jsx)("div",{className:"skeleton-block",style:{height:46,borderRadius:6,marginTop:8}})]}),(0,d.jsxs)("div",{style:{width:"calc(50% - 15px)"},children:[(0,d.jsx)("div",{className:"skeleton-block",style:{height:15,width:60,borderRadius:4,marginTop:18}}),(0,d.jsx)("div",{className:"skeleton-block",style:{height:46,borderRadius:6,marginTop:8}})]})]}),(0,d.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginTop:2},children:[(0,d.jsxs)("div",{style:{width:"calc(50% - 15px)"},children:[(0,d.jsx)("div",{className:"skeleton-block",style:{height:15,width:80,borderRadius:4,marginTop:18}}),(0,d.jsx)("div",{className:"skeleton-block",style:{height:46,borderRadius:6,marginTop:8}})]}),(0,d.jsxs)("div",{style:{width:"calc(50% - 15px)"},children:[(0,d.jsx)("div",{className:"skeleton-block",style:{height:15,width:80,borderRadius:4,marginTop:18}}),(0,d.jsx)("div",{className:"skeleton-block",style:{height:46,borderRadius:6,marginTop:8}})]})]}),(0,d.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:22},children:(0,d.jsx)("div",{className:"skeleton-block",style:{height:38,width:130,borderRadius:6}})})]}),(0,d.jsxs)("div",{className:"white-area-content",children:[(0,d.jsx)("div",{className:"skeleton-block",style:{height:15,width:130,borderRadius:4}}),(0,d.jsx)("div",{className:"white-area-content-splitter"}),(0,d.jsxs)("div",{style:{width:"calc(50% - 15px)"},children:[(0,d.jsx)("div",{className:"skeleton-block",style:{height:15,width:90,borderRadius:4,marginTop:18}}),(0,d.jsx)("div",{className:"skeleton-block",style:{height:46,borderRadius:6,marginTop:8}})]}),(0,d.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginTop:2},children:[(0,d.jsxs)("div",{style:{width:"calc(50% - 15px)"},children:[(0,d.jsx)("div",{className:"skeleton-block",style:{height:15,width:75,borderRadius:4,marginTop:18}}),(0,d.jsx)("div",{className:"skeleton-block",style:{height:46,borderRadius:6,marginTop:8}})]}),(0,d.jsxs)("div",{style:{width:"calc(50% - 15px)"},children:[(0,d.jsx)("div",{className:"skeleton-block",style:{height:15,width:110,borderRadius:4,marginTop:18}}),(0,d.jsx)("div",{className:"skeleton-block",style:{height:46,borderRadius:6,marginTop:8}})]})]}),(0,d.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:22},children:(0,d.jsx)("div",{className:"skeleton-block",style:{height:38,width:130,borderRadius:6}})})]}),(0,d.jsxs)("div",{className:"white-area-content",children:[(0,d.jsx)("div",{className:"skeleton-block",style:{height:15,width:90,borderRadius:4}}),(0,d.jsx)("div",{className:"white-area-content-splitter"}),[0,1].map((function(e){return(0,d.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"14px 0",borderBottom:0===e?"1px solid rgba(0,3,10,0.07)":"none"},children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"skeleton-block",style:{height:14,width:0===e?170:190,borderRadius:4}}),(0,d.jsx)("div",{className:"skeleton-block",style:{height:13,width:0===e?230:270,borderRadius:4,marginTop:6}})]}),(0,d.jsx)("div",{className:"skeleton-block",style:{width:40,height:22,borderRadius:99,marginLeft:24,flexShrink:0}})]},e)}))]})]})}},{key:"render",value:function(){var e=this;if(!this.state.loaded)return this.renderSkeleton();var t=this.state.user,s=((t.firstname?t.firstname[0]:"")+(t.lastname?t.lastname[0]:"")).toUpperCase()||"?";return(0,d.jsxs)("div",{className:"container-withbg",children:[(0,d.jsx)("div",{className:"title-top-list",style:{marginBottom:20},children:"My profile"}),(0,d.jsxs)("div",{className:"white-area-content profile-hero",style:{marginTop:0},children:[(0,d.jsx)("div",{className:"profile-avatar-circle",children:s}),(0,d.jsxs)("div",{className:"profile-hero-info",children:[(0,d.jsx)("div",{className:"profile-hero-name",children:t.firstname||t.lastname?(t.firstname+" "+t.lastname).trim():"\u2014"}),(0,d.jsxs)("div",{className:"profile-hero-sub",children:[t.email,t.title?(0,d.jsx)("span",{className:"profile-hero-badge",children:t.title}):null]})]})]}),(0,d.jsxs)("div",{className:"white-area-content",children:[(0,d.jsx)("div",{className:"profile-card-title",children:"Account information"}),(0,d.jsx)("div",{className:"white-area-content-splitter"}),(0,d.jsxs)("div",{className:"area-profile-split",children:[(0,d.jsx)("div",{className:"area-profile-split-u",children:(0,d.jsx)(u.Z,{name:"Email address",type:"email",err:this.state.errUSer.email,value:this.state.user.email,disabled:!0,noMargTop:!1})}),(0,d.jsx)("div",{className:"area-profile-split-u",children:(0,d.jsx)(u.Z,{name:"Title",type:"title",err:this.state.errUSer.title,value:this.state.user.title,handleInput:this.handleInput.bind(this),noMargTop:!1})})]}),(0,d.jsxs)("div",{className:"area-profile-split",children:[(0,d.jsx)("div",{className:"area-profile-split-u",children:(0,d.jsx)(u.Z,{name:"Firstname",type:"firstname",err:this.state.errUSer.firstname,value:this.state.user.firstname,handleInput:this.handleInput.bind(this)})}),(0,d.jsx)("div",{className:"area-profile-split-u",children:(0,d.jsx)(u.Z,{name:"Lastname",type:"lastname",err:this.state.errUSer.lastname,value:this.state.user.lastname,handleInput:this.handleInput.bind(this)})})]}),(0,d.jsx)("div",{className:"profile-save-row",children:(0,d.jsx)("div",{className:"profile-save-btn transition-300",onClick:function(){return e.sendData()},children:this.state.sending?(0,d.jsx)(g.Z,{}):"Save changes"})})]}),(0,d.jsxs)("div",{className:"white-area-content",children:[(0,d.jsx)("div",{className:"profile-card-title",children:"Change password"}),(0,d.jsx)("div",{className:"white-area-content-splitter"}),(0,d.jsxs)("div",{className:"area-profile-split",children:[(0,d.jsx)("div",{className:"area-profile-split-u",children:(0,d.jsx)(u.Z,{name:"Old Password",type:"oldpass",noTooltip:!0,err:this.state.errUSer.oldpass,value:this.state.user.oldpass,handleInput:this.handleInput.bind(this),crypt:!0})}),(0,d.jsx)("div",{className:"area-profile-split-u"})]}),(0,d.jsxs)("div",{className:"area-profile-split",children:[(0,d.jsx)("div",{className:"area-profile-split-u",children:(0,d.jsx)(u.Z,{name:"Password",type:"pass",err:this.state.errUSer.pass,value:this.state.user.pass,handleInput:this.handleInput.bind(this),crypt:!0})}),(0,d.jsx)("div",{className:"area-profile-split-u",children:(0,d.jsx)(u.Z,{name:"Repeat Password",type:"pass2",err:this.state.errUSer.pass2,value:this.state.user.pass2,handleInput:this.handleInput.bind(this),crypt:!0})})]}),(0,d.jsx)("div",{className:"profile-save-row",children:(0,d.jsx)("div",{className:"profile-save-btn transition-300",onClick:function(){return e.sendData()},children:this.state.sending?(0,d.jsx)(g.Z,{}):"Save changes"})})]}),(0,d.jsxs)("div",{className:"white-area-content",children:[(0,d.jsx)("div",{className:"profile-card-title",children:"Preferences"}),(0,d.jsx)("div",{className:"white-area-content-splitter"}),(0,d.jsxs)("div",{className:"profile-toggle-row",onClick:function(){return e.editLargerMenu()},children:[(0,d.jsxs)("div",{className:"profile-toggle-info",children:[(0,d.jsx)("div",{className:"profile-toggle-label",children:"Scroll bar menu visible"}),(0,d.jsx)("div",{className:"profile-toggle-desc",children:"Keep the sidebar scroll bar al
1ways visible"})]}),(0,d.jsx)("div",{className:"profile-toggle-track transition-300"+(this.state.largerMenu?" profile-toggle-track-on":""),children:(0,d.jsx)("div",{className:"profile-toggle-knob transition-300"+(this.state.largerMenu?" profile-toggle-knob-on":"")})})]}),(0,d.jsxs)("div",{className:"profile-toggle-row profile-toggle-row-last",onClick:function(){return e.editOniUpdate()},children:[(0,d.jsxs)("div",{className:"profile-toggle-info",children:[(0,d.jsx)("div",{className:"profile-toggle-label",children:"Omniscent news by email"}),(0,d.jsx)("div",{className:"profile-toggle-desc",children:"Receive platform updates and news in your inbox"})]}),(0,d.jsx)("div",{className:"profile-toggle-track transition-300"+(this.state.omniUpdate?" profile-toggle-track-on":""),children:(0,d.jsx)("div",{className:"profile-toggle-knob transition-300"+(this.state.omniUpdate?" profile-toggle-knob-on":"")})})]}),this.state.projects.length>1?(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"white-area-content-splitter"}),(0,d.jsx)("div",{className:"profile-toggle-label",style:{marginBottom:12},children:"Active project"}),(0,d.jsx)("div",{className:"profile-project-tabs",children:this.state.projects.map((function(t,s){return(0,d.jsx)("div",{className:"profile-project-tab transition-200"+(e.state.project===t?" profile-project-tab-active":""),onClick:function(){return e.updateProject(t)},children:t.replace("_"," ")},"list_opt_project_"+t)}))})]}):null]}),(0,d.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:20,marginBottom:40},children:(0,d.jsx)("div",{className:"profile-logout-btn transition-300",onClick:function(){localStorage.removeItem("auth_identifier_token"),(0,h.m3)(e.props.lang,"")},children:"Log out"})})]})}}]),s}(c.Component)}},function(e){e.O(0,[9774,2888,179],(function(){return t=25603,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.