PageSourceSearch

https://www.elheraldo.com.ar/_next/static/chunks/pages/iniciar-sesion-226b72ac9de6b08d.js

js elheraldo.com.ar collected 2026-10-02 08:26:02 UTC 14,183 bytes, 28 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1716],{37961:function(e,i,n){"use strict";var r=n(4680);i.Z=r.Z},87636:function(e,i,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/iniciar-sesion",function(){return n(70621)}])},70621:function(e,i,n){"use strict";n.r(i),n.d(i,{default:function(){return ea}});var r=n(57135),o=n(77637),t=n(15767),a=n(4637),s=n(59496),c=n(36562),l=n(36762),d=n(14987),u=n(12542),_=n(10001),h=n(86751),v=n(27515),g=n.n(v),f=n(61428),x=n(28910),m=n(24784),p=n(79594),y=n(74601),k=n(41688),C=n.n(k),b=n(71131),j=n(45929),w=n(4814),N=n(44783),S=n(22591),Z=n(37961),F=n(42827),I=n(29865),q=n(32634),E=n(19861);function P(e){return(0,E.ZP)("MuiCircularProgress",e)}(0,q.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);let T=["className","color","disableShrink","size","style","thickness","value","variant"],L=e=>e,R,A,H,V,M=(0,S.F4)(R||(R=L`
2  0% {
3    transform: rotate(0deg);
4  }
5
6  100% {
7    transform: rotate(360deg);
8  }
9`)),B=(0,S.F4)(A||(A=L`
10  0% {
11    stroke-dasharray: 1px, 200px;
12    stroke-dashoffset: 0;
13  }
14
15  50% {
16    stroke-dasharray: 100px, 200px;
17    stroke-dashoffset: -15px;
18  }
19
20  100% {
21    stroke-dasharray: 100px, 200px;
22    stroke-dashoffset: -125px;
23  }
24`)),D=e=>{let{classes:i,variant:n,color:r,disableShrink:o}=e,t={root:["root",n,`color${(0,Z.Z)(r)}`],svg:["svg"],circle:["circle",`circle${(0,Z.Z)(n)}`,o&&"circleDisableShrink"]};return(0,N.Z)(t,P,i)},K=(0,I.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver(e,i){let{ownerState:n}=e;return[i.root,i[n.variant],i[`color${(0,Z.Z)(n.color)}`]]}})(({ownerState:e,theme:i})=>(0,j.Z)({display:"inline-block"},"determinate"===e.variant&&{transition:i.transitions.create("transform")},"inherit"!==e.color&&{color:(i.vars||i).palette[e.color].main}),({ownerState:e})=>"indeterminate"===e.variant&&(0,S.iv)(H||(H=L`
25      animation: ${0} 1.4s linear infinite;
26    `),M)),O=(0,I.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,i)=>i.svg})({display:"block"}),U=(0,I.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver(e,i){let{ownerState:n}=e;return[i.circle,i[`circle${(0,Z.Z)(n.variant)}`],n.disableShrink&&i.circleDisableShrink]}})(({ownerState:e,theme:i})=>(0,j.Z)({stroke:"currentColor"},"determinate"===e.variant&&{transition:i.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&(0,S.iv)(V||(V=L`
27      animation: ${0} 1.4s ease-in-out infinite;
28    `),B)),X=s.forwardRef(function(e,i){let n=(0,F.i)({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:t=!1,size:s=40,style:c,thickness:l=3.6,value:d=0,variant:u="indeterminate"}=n,_=(0,b.Z)(n,T),h=(0,j.Z)({},n,{color:o,disableShrink:t,size:s,thickness:l,value:d,variant:u}),v=D(h),g={},f={},x={};if("determinate"===u){let m=2*Math.PI*((44-l)/2);g.strokeDasharray=m.toFixed(3),x["aria-valuenow"]=Math.round(d),g.strokeDashoffset=`${((100-d)/100*m).toFixed(3)}px`,f.transform="rotate(-90deg)"}return(0,a.jsx)(K,(0,j.Z)({className:(0,w.Z)(v.root,r),style:(0,j.Z)({width:s,height:s},f,c),ownerState:h,ref:i,role:"progressbar"},x,_,{children:(0,a.jsx)(O,{className:v.svg,ownerState:h,viewBox:"22 22 44 44",children:(0,a.jsx)(U,{className:v.circle,style:g,ownerState:h,cx:44,cy:44,r:(44-l)/2,fill:"none",strokeWidth:l})})}))});var $,Q=n(28263),G=n(57432),z=n(2444),J=n.n(z),Y=n(31474),W=n(92696),ee=(0,a.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsxs)("g",{clipPath:"url(#clip0_2017_18309)",children:[(0,a.jsx)("path",{d:"M24 12C24 5.37262 18.6274 0 12 0C5.37262 0 0 5.37262 0 12C0 17.9895 4.38825 22.954 10.125 23.8542V15.4688H7.07812V12H10.125V9.35625C10.125 6.34875 11.9166 4.6875 14.6576 4.6875C15.9705 4.6875 17.3438 4.92188 17.3438 4.92188V7.875H15.8306C14.3399 7.875 13.875 8.80003 13.875 9.74906V12H17.2031L16.6711 15.4688H13.875V23.8542C19.6117 22.954 24 17.9896 24 12Z",fill:"#1877F2"}),(0,a.jsx)("path",{d:"M16.6711 15.4688L17.2031 12H13.875V9.74906C13.875 8.79994 14.3399 7.875 15.8306 7.875H17.3438V4.92188C17.3438 4.92188 15.9705 4.6875 14.6575 4.6875C11.9166 4.6875 10.125 6.34875 10.
28125 9.35625V12H7.07812V15.4688H10.125V23.8542C10.7453 23.9514 11.3722 24.0002 12 24C12.6278 24.0002 13.2547 23.9514 13.875 23.8542V15.4688H16.6711Z",fill:"white"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_2017_18309",children:(0,a.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}),ei=function(e){var i=e.classes;if("TRUE"!==W.env.NEXT_PUBLIC_HAS_FACEBOOK_LOGIN)return(0,a.jsx)(a.Fragment,{});var n,o,u=(0,s.useContext)(d.V).providerAuthenticate,_=(0,l.aF)().asyncUserInfo,h=(0,c.useRouter)(),v=(n=(0,r.Z)(function(){var e,i,n;return(0,t.__generator)(this,function(e){switch(e.label){case 0:if("TRUE"!==W.env.NEXT_PUBLIC_HAS_FACEBOOK_LOGIN)return[2];return[4,fetch("".concat("https://elheraldoapiv3.eleco.com.ar/api/v2","/auth/login/facebook"))];case 1:return[4,e.sent().json()];case 2:return(n=null==(i=e.sent())?void 0:i.data)&&h.push(n),[2]}})}),function(){return n.apply(this,arguments)}),g=(o=(0,r.Z)(function(e){var i,n,r,o,a,s;return(0,t.__generator)(this,function(t){switch(t.label){case 0:return[4,u(e,"facebook")];case 1:return(i=t.sent())&&i.success&&(_(),a=localStorage.getItem("redirectTo")||(0,Y.bp)(null==h?void 0:null===(n=h.query)||void 0===n?void 0:n.redirect),localStorage.removeItem("redirectTo"),s=i.new_user?"/".concat((null==m?void 0:null===(r=m.translations)||void 0===r?void 0:null===(o=r.facebook_login)||void 0===o?void 0:o.redirect)||"bienvenido","?provider=facebook"):"/",(0,Y._F)(h,a,s)),[2]}})}),function(e){return o.apply(this,arguments)});return(0,s.useEffect)(function(){var e,i,n;(null==h?void 0:null===(e=h.query)||void 0===e?void 0:e.code)&&(null==h?void 0:null===(i=h.query)||void 0===i?void 0:i.provider)==="facebook"&&g(null==h?void 0:null===(n=h.query)||void 0===n?void 0:n.code)},[null==h?void 0:h.query]),(0,a.jsxs)("button",{className:"".concat(void 0===i?"":i," ").concat(J()["facebook-login"]),onClick:function(){return v()},type:"button","aria-label":"Continuar con Facebook",role:"button",tabIndex:0,children:[ee,(0,a.jsx)("span",{children:"Continuar con Facebook"})]})},en=n(74302),er=n.n(en),eo=function(){return(0,a.jsxs)("div",{className:er().loadingContainer,children:[(0,a.jsx)("span",{className:er().message,children:"Cargando.."}),(0,a.jsx)(X,{})]})},et=n(92696),ea=function(){var e=(0,s.useState)(""),i=e[0],n=e[1],v=(0,s.useState)(""),k=v[0],b=v[1],j=(0,s.useState)(!1),w=j[0],N=j[1],S=(0,l.aF)().asyncUserInfo,Z=(0,s.useContext)(d.V).authenticate,F=(0,s.useState)(""),I=F[0],q=F[1],E=(0,s.useState)(!1),P=E[0],T=E[1],L=(0,c.useRouter)(),R=(0,s.useState)(!0),A=R[0],H=R[1],V="TRUE"===et.env.NEXT_PUBLIC_HAS_FACEBOOK_LOGIN,M=function(e){f.jg("login",e)};(0,s.useEffect)(function(){if(L.isReady){if((0,p.zt)("token")){var e,i=(0,Y.bp)(null===(e=L.query)||void 0===e?void 0:e.redirect);(0,Y._F)(L,i,"/mi-cuenta");return}H(!1)}},[L.isReady]),(0,s.useEffect)(function(){if(L.isReady&&L.query.redirect){var e=(0,Y.bp)(L.query.redirect);if(e){var i={};L.query.index&&(i.index=L.query.index),L.query.type&&(i.type=L.query.type),localStorage.setItem("redirectTo",(0,Y.ki)(e,i))}}},[L.isReady,L.query.redirect,L.query.index,L.query.type]);var B,D=function(e){13===e.keyCode&&K()},K=(B=(0,r.Z)(function(){var e,n,r,a,s,c,l,d,u;return(0,t.__generator)(this,function(t){return/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(i)?k.length>=6?(e={email:i,password:k},i&&k?(T(!0),Z(e).then(function(e){(null==e?void 0:e.error)?(M("wrong data"),q((null==e?void 0:e.message)||"Revis\xe1 los datos ingresados"),T(!1)):S().then(function(e){if(e){if(M("email"),L.query&&L.query.redirect){var i,n=L.query,r=n.redirect,t=(0,o.Z)(n,["redirect"]),a=(0,Y.bp)(r),s=a&&!(0,Y.sD)(a)?(0,Y.DZ)(a,t):a;(0,Y._F)(L,s,"/")}else if((null==window?void 0:null===(i=window.history)||void 0===i?void 0:i.length)>=2){var c=localStorage.getItem("redirectTo");c?(localStorage.removeItem("redirectTo"),(0,Y._F)(L,c,"/")):L.back()}else L.push("/")}else q("Error al autenticar"),M("fail"),T(!1)}).catch(function(e){console.log(e),q("Error de conexi\xf3n con el servidor, intente m\xe1s tarde."),T(!1)})}).catch(function(e){console.log(e),q("Error de conexi\xf3n con el servidor, intente m\xe1s tarde."),T(!1)})):(null==m?void 0:null===(n=m.translations)||void 0===n?void 0:null===(r=n.signin)||void 0===r?void 0:r.empty_data)?q(null==m?void 0:null===(a=m.translations)||void 0===a?void 0:null===(s=a.signin)||void 0===s?void 0:s.empty_data):q("Ingres\xe1 tu usuario y contrase\xf1a")):q("La contrase\xf1a debe tener m\xe1s de 6 caracteres"):(null==m?void 0:null===(c=m.translations)||void 0===c?void 0:null===(l=c.signin)||void 0===l?void 0:l.invalid_email)?q(null==m?void 0:null===(d=m.translations)||void 0===d?void 0:null===(u=d.signin)||void 0===u?void 0:u.invalid_email):q("Ingres\xe1 un email v\xe1lido"),[2]})}),function(){return B.apply(this,arguments)});return(0,a.jsxs)("section",{className:g().background,children:[(0,a.jsx)(_.Z,{titlePage:"Inicio de sesi\xf3n"}),w?(0,a.jsx)(eo,{}):(0,a.jsxs)("section",{className:g().mainContainer,children:[(0,a.jsx)("div",{className:g().coverImage,children:(0,a.jsx)(y.Z,{src:C(),alt:"Persona leyendo las noticias",className:g().image,objectFit:"cover",quality:"100",priority:!0})}),(0,a.jsxs)("div",{className:g().contentContainer,children:[(0,a.jsx)("div",{className:g().topLogo,children:(0,a.jsx)(u.Z,{nofloat:"true",src:x.Z.logo,link:"/"})}),(0,a.jsxs)("div",{className:g().topContent,children:[(0,a.jsxs)("div",{className:g().mainContent,children:[(0,a.jsxs)("div",{className:g().headerText,children:[(0,a.jsx)("h1",{children:"Iniciar sesi\xf3n"}),(0,a.jsxs)("div",{className:g()["google-content-container"],children:[(0,a.jsx)(G.k,{classes:g()["google-content"],setIsLoading:N}),V?null:(0,a.jsx)("span",{className:g()["google-divider"],children:"\xd3"})]}),V?(0,a.jsxs)("div",{className:g()["google-content-container"],children:[(0,a.jsx)(ei,{classes:g()["google-content"]}),(0,a.jsx)("span",{className:g()["google-divider"],children:"\xd3"})]}):null]}),(0,a.jsxs)("form",{className:g()["smaller-margin"],children:[A?(0,a.jsx)("span",{className:"d-flex justify-center my-5",children:(0,a.jsx)(X,{})}):(0,a.jsxs)("div",{className:g().inputContainer,children:[(0,a.jsx)(Q.Z,{type:"email",label:"Email",value:i,onChange:function(e){n(e.target.value),q("")},required:!0,background:"var(--white)",onKeyDown:function(e){return D(e)},autoComplete:"email",colorFocused:(null==m?void 0:m.rr_ss_black)?"var(--black)":void 0}),(0,a.jsx)(Q.Z,{type:"password",label:"Contrase\xf1a",required:!0,value:k,autoComplete:"current-password",onChange:function(e){b(e.target.value),q("")},minLength:"6",onKeyDown:function(e){return D(e)},background:"var(--white)",colorFocused:(null==m?void 0:m.rr_ss_black)?"var(--black)":void 0})]}),(0,a.jsxs)("div",{className:g().information,children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"".concat(g().error," ").concat(I?g().shown:g().hidden),children:I}),(0,a.jsx)("a",{href:"/cambiar-password",className:"".concat(g().changePassword),children:"\xbfOlvidaste tu contrase\xf1a?"})]}),(0,a.jsxs)("span",{children:['Al iniciar sesi\xf3n, confirmo que he le\xeddo y acepto los "',(0,a.jsx)("a",{href:"/terminos-y-condiciones",children:"T\xe9rminos y condiciones"}),'" y la "',(0,a.jsx)("a",{href:"/politicas-de-privacidad",children:"Pol\xedtica de privacidad"}),'"']})]}),(0,a.jsx)(h.Z,{disabled:P,loading:P,handleClick:K,text:"INICIAR SESI\xd3N",classname:g().sendButton}),(0,a.jsxs)("span",{className:g().bottomCTA,children:["\xbfA\xfan no ten\xe9s una cuenta?"," ",(0,a.jsx)("a",{href:"/plan"===L.query.redirect?L.asPath.replace("iniciar-sesion","registro"):"/registro",children:"Registrate ac\xe1"})]})]})]}),(0,a.jsx)("span",{className:g().contactFooter,children:m.telefono?" Por consultas, comunicate al ".concat(m.telefono):""})]})]})]})]})}},2444:function(e){e.exports={heightSticky:"FacebookLogin_heightSticky__4HV3R","copyright-content":"FacebookLogin_copyright-content__pser0","facebook-login":"FacebookLogin_facebook-login__V9SQ8"}},74302:function(e){e.exports={heightSticky:"LoadingScreen_heightSticky__MQ9zF","copyright-content":"LoadingScreen_copyright-content__NfeT6",loadingContainer:"LoadingScreen_loadingContainer__bX_KW",message:"LoadingScreen_message__unJke"}},27515:function(e){e.exports={heightSticky:"iniciar-sesion_heightSticky__UEC2F","copyright-content":"iniciar-sesion_copyright-content__0cri4",text:"iniciar-sesion_text___aQnS",mainContainer:"iniciar-sesion_mainContainer__21SBN",contentContainer:"iniciar-sesion_contentContainer__dYTQE",contactFooter:"iniciar-sesion_contactFooter__KKTWd",mainContent:"iniciar-sesion_mainContent__xivAR",bottomCTA:"iniciar-sesion_bottomCTA__pTq3S",useForm:"iniciar-sesion_useForm__MKKul",sendButton:"iniciar-sesion_sendButton__JYZyi",information:"iniciar-sesion_information__T00EX",inputContainer:"iniciar-sesion_inputContainer__wIoUB",headerText:"iniciar-sesion_headerText__qAQEI","header-span":"iniciar-sesion_header-span__6bbB0",boldText:"iniciar-sesion_boldText__G6ex7",gap:"iniciar-sesion_gap__sy7qN",background:"iniciar-sesion_background__HXuK9",topContent:"iniciar-sesion_topContent__07xML",coverImage:"iniciar-sesion_coverImage__xg3qz",topLogo:"iniciar-sesion_topLogo__2QM8J","smaller-margin":"iniciar-sesion_smaller-margin__jwI_s",changePassword:"iniciar-sesion_changePassword__5cYY2",error:"iniciar-sesion_error__EkSxL",shown:"iniciar-sesion_shown__DZ4KA",hidden:"iniciar-sesion_hidden___5ZsR",animateAppear:"iniciar-sesion_animateAppear__MrkmF",appear:"iniciar-sesion_appear__QHK0J","google-content-container":"iniciar-sesion_google-content-container__fF_Gd","google-divider":"iniciar-sesion_google-divider___kb0X"}}}
28,function(e){e.O(0,[8226,2473,5157,2160,8194,9774,2888,179],function(){return e(e.s=87636)}),_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.