1(this.webpackJsonpclaroshop_pwa=this.webpackJsonpclaroshop_pwa||[]).push([[54],{337:function(e,a,t){"use strict";t.r(a),t.d(a,"default",(function(){return d}));var n=t(3),l=t(0),c=t.n(l),r=t(14),s=t(7),i=t(12),o=t(2),m=t(59);t(129);function d(e){var a=Object.assign({},e),t=a.ruta,d=void 0===t?"/login":t,u=a.profile,g=Object(i.a)("session_token",""),E=Object(n.a)(g,1)[0],b=Object(i.a)("profileData",""),p=Object(n.a)(b,1)[0],O=Object(i.a)("dataFacebook",""),f=Object(n.a)(O,1)[0],j=Object(l.useState)(p.nombre),N=Object(n.a)(j,2),v=N[0],_=N[1],h=(Object(r.g)(),window.location.href),w=(window.location.pathname,Object(l.useState)("")),x=Object(n.a)(w,2),R=x[0],k=x[1],S=[],F=Object(m.c)().logOut;return Object(l.useEffect)((function(){!E||p&&f||(_(u.nombre),u.nombre&&(S=u.nombre.split(" "),k(S[0])))}),[u,v]),Object(l.useEffect)((function(){E&&f.name&&(S=f.name.split(" "),k(S[0]))}),[f]),c.a.createElement("div",{className:"login icoMiCuenta"},E&&(v||R)?c.a.createElement(c.a.Fragment,null,c.a.createElement("span",{className:"textReference"},c.a.createElement("span",{className:"smallText"},"Bienvenido")," ",String(R).length>8?c.a.createElement(c.a.Fragment,null,String(R).substring(0,7)," ..."):String(R)),c.a.createElement("div",{className:"box__login",id:"box__login"},c.a.createElement("dl",null,c.a.createElement("dt",null,c.a.createElement(s.a,{to:"/mi-cuenta"},"Entrar a mi cuenta")),c.a.createElement("dt",null,"/login"===d?c.a.createElement(s.a,{to:"/login?redirect=".concat(o.h,"/mi-cuenta/mis-pedidos/dias=30/pagina=1")},"Revisar mis pedidos"):c.a.createElement(s.a,{to:"".concat(o.h,"/mi-cuenta/mis-pedidos/dias=30/pagina=1")},"Revisar mis pedidos"))),c.a.createElement("dl",{className:"logOut"},c.a.createElement("dt",null,c.a.createElement("p",null,"\xbf No eres ",R," ?"),c.a.createElement("div",{className:"cerrar",onClick:F},"Cerrar mi sesi\xf3n"))))):c.a.createElement(c.a.Fragment,null,c.a.createElement("span",{className:"textReference"},c.a.createElement("span",{className:"smallText"},"Hola")," Registrate"),c.a.createElement("div",{className:"box__login",id:"box__login"},c.a.createElement("dl",{className:"logIn"},c.a.createElement("dt",null,c.a.createElement(s.a,{className:"redBtn btn-login",to:"/login?redirect=".concat(h)},"Ingresar")),c.a.createElement("dd",null,c.a.createElement("p",null,"\xbfEres Nuevo?"),c.a.createElement(s.a,{className:"standardBtn btn-registro",to:"/registro?redirect=".concat(h)},"Reg\xedstrate"))))))}}}]); 2//# sourceMappingURL=Header_HeaderMiCuenta.5391d614e49b05d235a8.chunk.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.