1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8295],{36946:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>v,default:()=>w});var n=t(63857),a=t(70825),r=t.n(a),i=t(43081),o=t.n(i),l=t(14232),c=t(7033),d=t(4553),x=t(4791),m=t(88880),u=t(54587),p=t.n(u),j=t(48230),h=t.n(j),g=t(73266),f=t(37876),v=!0;function w(e){var s,t=(0,l.useState)(""),a=t[0],i=t[1],u=(0,l.useState)(""),j=u[0],v=u[1],w=(0,l.useState)("password"),N=w[0],b=w[1],k=(0,l.useState)(""),y=k[0],S=k[1],A=(0,l.useState)(!1),_=A[0],C=A[1],T=(0,l.useState)(!1),M=T[0],E=T[1],I=(s=(0,n.A)(o().mark(function e(s){var t,n,r,i;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s.preventDefault(),S(""),C(!0),e.prev=3,e.next=6,fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({CorreoUsuario:j,Contrasena:a})});case 6:return(t=e.sent).ok||(401===t.status?S("Usuario o contrase\xf1a incorrecto"):S("Error durante el inicio de sesi\xf3n. Int\xe9ntalo de nuevo.")),e.next=10,t.json();case 10:if(!(n=e.sent).error){e.next=14;break}return S(n.error),e.abrupt("return");case 14:r=n.token,i=n.userData,localStorage.setItem("authToken",r),localStorage.setItem("userData",JSON.stringify(i)),g.A.emit("check-login",{check:!0}),E(!0),setTimeout(function(){window.location.href="/"},2e3),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(3),console.error(e.t0);case 25:return e.prev=25,C(!1),e.finish(25);case 28:case"end":return e.stop()}},e,null,[[3,22,25,28]])})),function(e){return s.apply(this,arguments)});return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(x.W,{props:e}),(0,f.jsx)(d.A,{section:e.section}),(0,f.jsxs)(m.A,{micrositeClass:"main main-register",id:"content",children:[(0,f.jsx)("div",{className:"jsx-906932678 "+"modal modal-registerSuccess ".concat(M?"active":""),children:(0,f.jsxs)("div",{className:"jsx-906932678 modal-content",children:[(0,f.jsx)("button",{type:"button",onClick:function(){E(!1)},className:"jsx-906932678 btn-modalClose",children:(0,f.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-906932678 icon",children:[(0,f.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none",className:"jsx-906932678"}),(0,f.jsx)("path",{d:"M18 6l-12 12",className:"jsx-906932678"}),(0,f.jsx)("path",{d:"M6 6l12 12",className:"jsx-906932678"})]})}),(0,f.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-906932678 icon",children:[(0,f.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none",className:"jsx-906932678"}),(0,f.jsx)("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",className:"jsx-906932678"}),(0,f.jsx)("path",{d:"M9 12l2 2l4 -4",className:"jsx-906932678"})]}),(0,f.jsx)("span",{className:"jsx-906932678 title",children:"Inicio de sesi\xf3n exitoso!"}),(0,f.jsx)("p",{className:"jsx-906932678",children:"Ser\xe1s redirigido en breve..."}),(0,f.jsx)(h(),{href:"/",className:"btn btn-primary",type:"button",children:"Entendido"})]})}),(0,f.jsx)("div",{className:"jsx-906932678 wrapper",children:(0,f.jsxs)("div",{className:"jsx-906932678 section section-registerForm",children:[(0,f.jsx)("h1",{className:"jsx-906932678 section-title",children:"Iniciar Sesi\xf3n"}),(0,f.jsxs)("div",{className:"jsx-906932678 registerForm-content",children:[(0,f.jsxs)("form",{onSubmit:I,className:"jsx-906932678",children:[(0,f.jsx)("div",{className:"jsx-906932678 form-group",children:(0,f.jsx)("input",{type:"email",name:"email",id:"email",placeholder:"Ingrese su email (*)","aria-label":"Email",required:!0,value:j,onChange:function(e){return v(e.target.value)},className:"jsx-906932678 form-control"})}),(0,f.jsxs)("div",{className:"jsx-906932678 form-group",children:[(0,f.jsx)("input",{type:N,name:"password",id:"password",placeholder:"Ingrese su contrase\xf1a (*)","aria-label":"Contrase\xf1a",required:!0,value:a,onChange:function(e){return i(e.target.value)},className:"jsx-906932678 form-control"}),(0,f.jsx)("button",{type:"button","aria-label":"Show/Hide Password",onClick:function(){b("password"===N?"text":"password")},className:"jsx-906932678 btn-icon",children:"password"!==N?(0,f.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#777",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-906932678 icon",children:[(0,f.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none",className:"jsx-906932678"}),(0,f.jsx)("path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",className:"jsx-906932678"}),(0,f.jsx)("path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6",className:"jsx-906932678"})]}):(0,f.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#777",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-906932678 icon",children:[(0,f.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none",className:"jsx-906932678"}),(0,f.jsx)("path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828",className:"jsx-906932678"}),(0,f.jsx)("path",{d:"M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87",className:"jsx-906932678"}),(0,f.jsx)("path",{d:"M3 3l18 18",className:"jsx-906932678"})]})}),(0,f.jsx)(h(),{className:"forgotPass",href:"/auth/olvidar-contrasena",children:"\xbfOlvidaste tu contrase\xf1a?"})]}),y&&(0,f.jsx)("p",{style:{color:"red",fontSize:"12px",marginTop:"5px"},className:"jsx-906932678 error-message",children:y}),(0,f.jsx)("div",{className:"jsx-906932678 form-group",children:(0,f.jsx)("button",{type:"submit",disabled:_,className:"jsx-906932678 btn btn-primary",children:_?(0,f.jsx)("span",{style:{display:"inline-block",width:"16px",height:"16px",border:"2px s
1olid #fff",borderTop:"2px solid transparent",borderRadius:"50%",animation:"spin 1s linear infinite"},className:"jsx-906932678 loader"}):"Iniciar Sesi\xf3n"})}),(0,f.jsxs)("div",{className:"jsx-906932678 registerText mt-1 mb-text-center",children:["\xbfA\xfan no tienes cuenta?"," ",(0,f.jsx)(h(),{href:"/registro",children:(0,f.jsx)("span",{className:"jsx-906932678 fw-700",children:"Registrate aqu\xed"})})]})]}),(0,f.jsx)(p(),{className:"logo-tt mt-2",src:"/static/images/teletica/logo_teletica.png",width:400,height:400,alt:"Logo Teletica"})]})]})})]}),(0,f.jsx)(c.A,{}),(0,f.jsx)(r(),{id:"906932678",children:["@-webkit-keyframes spin-jsx-906932678{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}","@keyframes spin-jsx-906932678{0%{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}100%{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}",".modal-loginSuccess.jsx-906932678{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;z-index:1000;}",".modal-loginSuccess.jsx-906932678 .modal-content.jsx-906932678{background:#fff;padding:20px;border-radius:8px;text-align:center;position:relative;}",".modal-loginSuccess.jsx-906932678 .btn-modalClose.jsx-906932678{position:absolute;top:10px;right:10px;background:none;border:none;cursor:pointer;}",".modal-loginSuccess.jsx-906932678 .title.jsx-906932678{font-size:18px;font-weight:bold;margin-bottom:10px;}"]})]})}},65745:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(36946)}])},67751:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});var n=t(14232),a=t(37876);function r(e){var s=e.id,t=e.classType,r=e.style,i=e.pushSlot,o=void 0!==i&&i,l=(0,n.useState)(!1),c=l[0],d=l[1],x=(0,n.useState)(!1),m=x[0],u=x[1];return t=t?"ad ".concat(t):"",(0,n.useEffect)(function(){if(o){var e=setInterval(function(){"undefined"!=typeof googletag&&"undefined"!=typeof googletag&&void 0!==googletag.cmd&&void 0!==googletag.cmd.push&&(d(!0),clearInterval(e))},1e3);c&&!m&&googletag.cmd.push(function(){googletag.display("".concat(s)),u(!0)})}},[c]),(0,a.jsx)("div",{id:s,className:t,style:r})}},73266:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});let n=function(e){return{all:e=e||new Map,on:function(s,t){var n=e.get(s);n?n.push(t):e.set(s,[t])},off:function(s,t){var n=e.get(s);n&&(t?n.splice(n.indexOf(t)>>>0,1):e.set(s,[]))},emit:function(s,t){var n=e.get(s);n&&n.slice().map(function(e){e(t)}),(n=e.get("*"))&&n.slice().map(function(e){e(s,t)})}}}()},88880:(e,s,t)=>{"use strict";t.d(s,{A:()=>x});var n=t(67751),a=t(37876);function r(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.A,{id:"div-gpt-ad-1648033296806-0",pushSlot:!0}),(0,a.jsx)(n.A,{id:"leaderboard",classType:"ad-leaderboard"}),(0,a.jsx)(n.A,{id:"interstitial",classType:"ad-interstitial"})]})}function i(e){return e.props,(0,a.jsx)(r,{})}var o=t(22007),l=t(30154),c=t(22294);function d(){var e=(0,o.Ay)("/api/news/getAlert",l.A,{revalidateOnFocus:!1}).data;return null!=e&&e.length?(0,a.jsx)("div",{className:"widget widget-alertNews",children:(0,a.jsxs)("div",{className:"wrapper",children:[(0,a.jsxs)("div",{className:"title",children:[(0,a.jsxs)("div",{className:"live-indicator",children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]}),(0,a.jsx)("span",{className:"titleName",children:"ALERTA"})]}),(0,a.jsx)("ul",{className:"content",children:null==e?void 0:e.map(function(e,s){return(0,a.jsx)("li",{className:"content-item",children:(0,a.jsx)("a",{href:c.A.generateUrl(e),children:e.Title_en})},s)})})]})}):null}function x(e){var s=e.children,t=e.micrositeClass,n=e.withAds;return(0,a.jsxs)("main",{id:"content",className:t,children:[(void 0===n||n)&&(0,a.jsx)(i,{}),(0,a.jsx)(d,{}),s]})}}},e=>{var s=s=>e(e.s=s);e.O(0,[4587,3689,8230,1575,636,6593,8792],()=>s(65745)),_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.