1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[48321,66575,64897],{8765:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var a=r(11729),n=r(1984),o=r.n(n),s=r(75332),i=r(85680),d=r(8014);function c(e){var t=e.title,r=e.description,n=e.children,c=e.canonicalPath,u=e.metaIndex,p=void 0!==u&&u,l=e.slugsLangs,m=(0,s.useRouter)(),f=m.locale,g=m.asPath,h=new URL("/".concat(f).concat(c||g),i.HOST_SEO).href.split("?")[0].replace(/\/$/,"");return(0,d.jsxs)(o(),{children:[(0,d.jsx)("meta",{charSet:"utf-8"}),(0,d.jsx)("meta",{content:"#eaecf0",name:"theme-color"},"theme-color"),t&&(0,d.jsx)("title",{children:t}),t&&(0,d.jsx)("meta",{content:t,name:"title"},"title"),t&&(0,d.jsx)("meta",{content:t,property:"og:title"}),r&&(0,d.jsx)("meta",{content:r,name:"description"},"description"),r&&(0,d.jsx)("meta",{content:r,property:"og:description"}),(0,d.jsx)("meta",{content:"width=device-width, initial-scale=1, viewport-fit=cover, user-scalable=no",name:"viewport"}),(0,d.jsx)("meta",{content:"IE=edge",httpEquiv:"X-UA-Compatible"}),(0,d.jsx)("meta",{content:"Cecotec",property:"og:site_name"}),(0,d.jsx)("meta",{content:"Cecotec",property:"product:brand"}),(0,d.jsx)("meta",{content:h,property:"og:url"}),(0,d.jsx)("link",{href:h,rel:"canonical"}),(null!==p&&void 0!==p?p:i.NOINDEX)&&(0,d.jsx)("meta",{content:"noindex",name:"robots"}),(null!==p&&void 0!==p?p:i.NOINDEX)&&(0,d.jsx)("meta",{content:"noindex",name:"googlebot"}),l?function(e){var t={es:{domain:"https://cecotec.es",langCode:"es-ES"},pt:{domain:"https://cecotec.pt",langCode:"pt-PT"},fr:{domain:"https://www.storececotec.fr",langCode:"fr-FR"},de:{domain:"https://storececotec.de",langCode:"de-DE"},it:{domain:"https://storececotec.it",langCode:"it-IT"},hu:{domain:"https://cecotec.hu",langCode:"hu-HU"},nl:{domain:"https://shopcecotec.nl",langCode:"nl-NL"},"es-mx":{domain:"https://cecotec.mx",langCode:"es-MX"},pl:{domain:"https://cecotec.pl",langCode:"pl-PL"}},r=function(t){return e?"/".concat(e[t]):""},n=function(t){return!e||!!e[t]};return Object.entries(t).filter((function(e){var t=(0,a.Z)(e,1)[0];return n(t)})).map((function(e){var t=(0,a.Z)(e,2),n=t[0],o=t[1],s=o.domain,i=o.langCode;return{path:"".concat(s,"/").concat(n).concat(r(n)),langCode:i}}))}("base"===l?null:l).map((function(e){var t=e.path,r=e.langCode;return(0,d.jsx)("link",{rel:"alternate",href:t,hrefLang:r},r)})):null,n]})}},17845:function(e,t,r){"use strict";r.d(t,{Z:function(){return a.Z}});var a=r(8765)},66575:function(e,t,r){"use strict";r.d(t,{VY:function(){return p},W2:function(){return u},h4:function(){return d},im:function(){return i},lM:function(){return c}});var a=r(74229),n=r(37216),o=(0,n.hO)(7.2),s=(0,n.hO)(6.4),i=(0,a.Z)("div",{target:"e16004eb4"})("background-color:",n.O9.NEUTRAL_BLACK,";position:relative;",n.BC.greaterThan("large"),"{padding-top:",o,";}"),d=(0,a.Z)("header",{target:"e16004eb3"})("background:",n.O9.NEUTRAL_BLACK,";",n.BC.greaterThan("large"),"{position:fixed;top:0;left:0;right:0;z-index:1000;}"),c=(0,a.Z)("div",{target:"e16004eb2"})("padding:0 ",(0,n.hO)(1.6),";position:relative;",n.BC.greaterThan("medium"),"{padding:0 ",(0,n.hO)(5.6),";}",n.BC.greaterThan("large"),"{max-width:",(0,n.hO)(125.6),";margin:0 auto;}",n.BC.greaterThan("huge"),"{padding:0;}@media screen and (min-width: 1441px){max-width:",(0,n.hO)(143.6),";}"),u=(0,a.Z)(c,{target:"e16004eb1"})("height:",(0,n.hO)(6.4),";display:flex;align-items:center;justify-content:space-between;img{height:",(0,n.hO)(1.8),";",n.BC.greaterThan("small"),"{height:",(0,n.hO)(3.2),";}}",n.BC.greaterThan("large"),"{height:",(0,n.hO)(7.2),";}"),p=(0,a.Z)("div",{target:"e16004eb0"})("margin:0 auto;max-width:",(function(e){return e.fluid?(0,n.hO)(192):"100%"}),";background-color:",(function(e){return!e.backgroundImage&&n.O9.NEUTRAL_WHITE}),";min-height:calc(100vh - ",s,");position:relative;",n.BC.greaterThan("medium"),"{min-height:calc(100vh - ",o,");}")},7289:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return D},default:function(){return E}});var a=r(56168),n=r(37216),o=r(46682),s=r(44111),i=r(74229);var d=(0,i.Z)("div",{target:"eqr5qzi2"})({name:"1garym5",styles:"align-self:center;text-align:center;margin-top:auto;margin-bottom:auto"}),c=(0,i.Z)("div",{target:"eqr5qzi1"})({name:"sn2xfj",styles:"display:grid;gap:3rem"}),u=(0,i.Z)("form",{target:"eqr5qzi0"})("display:grid;gap:1rem;",n.BC.greaterThan("M"),"{grid-template-columns:repeat(2, 1fr);}>label{margin:0;padding:0;}>button{margin:0;",n.BC.greaterThan("M"),"{justify-self:end;}}"),p=r(18003),l=r(11729),m=r(52055),f=r(28068),g=r(6852),h=r(5173),w=r(8014);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?v(Object(r),!0).forEach((function(t){(0,p.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=r(44813),_=r.n(b),x=r(63983);function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){(0,p.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var C=(0,o.l)((function(e){var t=e.firstName,r=e.lastName,o=(0,a.useState)({firstName:t,lastName:r}),i=o[0],d=o[1],c=(0,a.useState)(!1),p=c[0],v=c[1],b=(0,a.useState)({}),_=b[0],x=b[1],O=(0,f.a)().refreshUserData,y=(0,s.Z)("common").t,C=(0,m.dq)(),P=(0,m.Fe)("user"),U=(0,l.Z)(P,2),N=U[0],T=U[1];return(0,w.jsxs)(u,{onSubmit:function(e){e.preventDefault();var t={};i.firstName&&i.lastName?(v(!0),N.updateInfo(i).then((function(e){T({type:"UPDATE_CLIENT",payload:e}),O().then((function(){(0,g.o)(y("UpdateUserDataForm__update-success"))}))})).catch((function(e){var t,r=C(e);(0,g.B)(null!==(t=r.messageBody)&&void 0!==t?t:y("UpdateUserDataForm__update-error"))})).finally((function(){v(!1),x(t)}))):(!i.firstName&&(t.firstName=y("UpdateUserDataForm__fistname-require")),!i.lastName&&(t.lastName=y("UpdateUserDataForm__lastname-require")),x(t))},children:[(0,w.jsx)(n.TY,{error:_.firstName,label:y("UpdateUserDataForm__input-name"),name:"name",type:"text",value:i.firstName,onChange:function(e){return d(j(j({},i),{},{firstName:e.target.value}))}}),(0,w.jsx)(n.TY,{error:_.lastName,label:y("UpdateUserDataForm__input-lastname"),name:"lastname",type:"text",value:i.lastName,onChange:function(e){return d(j(j({},i),{},{lastName:e.target.value}))}}),(0,w.jsx)("div",{}),(0,w.jsx)(h.Z,{primary:!0,as:"button",text:y("UpdateUserDataForm__update-data"),type:"submit",loading:p})]})}),(function(e){return{firstName:e.firstName,lastName:e.lastName}})),P=(0,o.Y)((function(){var e=(0,a.useState)({oldPassword:"",password:"",passwordConfirm:""}),t=e[0],r=e[1],o=(0,a.useState)({}),i=o[0],d=o[1],c=(0,s.Z)("common").t,p=function(){var e={};if(t.oldPassword||t.password||t.passwordConfirm){if(t.password===t.passwordConfirm&&t.password&&t.passwordConfirm||(e.password=c("UpdateUserPasswordForm__password-not-equal"),e.passwordConfirm=c("UpdateUserPasswordForm__password-not-equal")),t.oldPassword||(e.oldPassword=c("UpdateUserPasswordForm__password-require")),t.password===t.oldPassword){var r=c("UpdateUserPasswordForm__new-password-not-may-equal-current-password");e.password=r,e.passwordConfirm=r}}else{var a=c("UpdateUserPasswordForm__password-require");e.oldPassword=a,e.password=a,e.passwordConfirm=a}return e};return(0,w.jsxs)(u,{onSubmit:function(e){e.preventDefault();var a=p();_()(a)?x.$T.updatePassword(t).then((function(){(0,g.o)(c("UpdateUserPasswordForm__update-password-success")),r({oldPassword:"",password:"",passwordConfirm:""}),d(a)}),(function(e){!function(e,t){if(e){var r={};e.oldPassword&&(r.oldPassword=e.oldPassword[0]),e.password&&(r.password=e.password[0]),t(r),e.nonFieldErrors&&(0,g.o)(e.nonFieldErrors,!0)}}(e.body,d)})):d(a)},children:[(0,w.jsx)(n.TY,{error:i.oldPassword,label:c("UpdateUserPasswordForm__input-current-password"),name:"current-password",type:"password",value:t.oldPassword,width:8,onChange:function(e){r(y(y({},t),{},{oldPassword:e.target.value}))}}),(0,w.jsx)("div",{}),(0,w.jsx)(n.TY,{error:i.password,label:c("UpdateUserPasswordForm__input-new-password"),name:"new-password",type:"password",value:t.password,onChange:function(e){return r(y(y({},t),{},{password:e.target.value}))}}),(0,w.jsx)(n.TY,{error:i.passwordConfirm,label:c("UpdateUserPasswordForm__input-repeat-new-password"),name:"new-password",type:"password",value:t.passwordConfirm,onChange:function(e){r(y(y({},t),{},{passwordConfirm:e.target.value}))}}),(0,w.jsx)("div",{}),(0,w.jsx)(h.Z,{primary:!0,as:"button",text:c("UpdateUserPasswordForm__change-password"),type:"submit"})]})}),{group:"USER",permission:"UPDATE_PASSWORD"});function U(e){var t=e.userData,r=(0,s.Z)("common").t;return t?(0,w.jsxs)(c,{children:[(0,w.jsx)(C,{firstName:t.firstName,lastName:t.lastName}),(0,w.jsx)(P,{})]}):(0,w.jsxs)(d,{children:[(0,w.jsx)(n.y3,{}),(0,w.jsx)(n.ZT,{children:r("Global__loading")})]})}var N=r(17845),T=r(22365),D=!0,E=function(e){var t=e.categories,r
1=e.linksInformation,a=e.storeConfiguration,n=e.alertTextConfiguration,o=(0,m.I4)("common").t,s=(0,f.a)().user;return(0,m.Tc)({pageType:"other"}),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(N.Z,{metaIndex:!0,description:o("me__head-description"),title:o("me__head-title")}),(0,w.jsx)(T.AccountLayout,{categories:t,userData:s,linksInformation:r,storeConfiguration:a,alertTextConfiguration:n,children:(0,w.jsx)(U,{userData:s})})]})}},33014:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/me",function(){return r(7289)}])}},function(e){e.O(0,[90625,5173,49774,92888,40179],(function(){return t=33014,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.