PageSourceSearch

https://www.teletica.com/_next/static/chunks/pages/auth/activar-cuenta-1e616f0429b11fb8.js

js teletica.com collected 2026-09-24 09:22:12 UTC 5,190 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5628],{57843:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>p,default:()=>v});var a=t(63857),r=t(70825),n=t.n(r),i=t(43081),c=t.n(i),o=t(14232),l=t(7033),d=t(4553),u=t(88880),x=t(4791),j=t(37876),p=!0;function v(e){var s=(0,o.useState)("activating"),t=s[0],r=s[1],i=(0,o.useState)(""),p=i[0],v=i[1];return(0,o.useEffect)(function(){var e;(e=(0,a.A)(c().mark(function e(){var s,t,a,n;return c().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=new URLSearchParams(window.location.search).get("tk")){e.next=5;break}return r("error"),v("Token no v\xe1lido o faltante."),e.abrupt("return");case 5:return e.prev=5,e.next=8,fetch("/api/auth/active-account",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:s})});case 8:if((t=e.sent).ok){e.next=17;break}return e.next=13,t.json();case 13:return a=e.sent,r("error"),v(a.error||"Error al activar la cuenta."),e.abrupt("return");case 17:return e.next=19,t.json();case 19:(n=e.sent).success?r("success"):(r("error"),v(n.error||"Error al activar la cuenta.")),e.next=28;break;case 23:e.prev=23,e.t0=e.catch(5),console.error(e.t0),r("error"),v("Error interno del servidor.");case 28:case"end":return e.stop()}},e,null,[[5,23]])})),function(){return e.apply(this,arguments)})()},[]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(x.W,{props:e}),(0,j.jsx)(d.A,{section:e.section}),(0,j.jsx)(u.A,{micrositeClass:"main main-register",id:"content",children:(0,j.jsx)("div",{className:"jsx-4281062364 wrapper",children:(0,j.jsxs)("div",{className:"jsx-4281062364 section section-registerForm",children:["activating"===t&&(0,j.jsxs)("div",{className:"jsx-4281062364 activation-status",children:[(0,j.jsx)("h1",{className:"jsx-4281062364 section-title",children:"Activando cuenta..."}),(0,j.jsx)("p",{className:"jsx-4281062364",children:"Por favor espera mientras activamos tu cuenta."})]}),"success"===t&&(0,j.jsxs)("div",{className:"jsx-4281062364 activation-status success",children:[(0,j.jsx)("h1",{className:"jsx-4281062364 section-title",children:"\xa1Cuenta activada!"}),(0,j.jsx)("p",{className:"jsx-4281062364",children:"Tu cuenta ha sido activada exitosamente. Ahora puedes iniciar sesi\xf3n."}),(0,j.jsx)("a",{href:"/login",className:"jsx-4281062364 btn btn-primary",children:"Iniciar Sesi\xf3n"})]}),"error"===t&&(0,j.jsxs)("div",{className:"jsx-4281062364 activation-status error",children:[(0,j.jsx)("h1",{className:"jsx-4281062364 section-title",children:"Error al activar la cuenta"}),(0,j.jsx)("p",{className:"jsx-4281062364",children:p}),(0,j.jsx)("a",{href:"/registro",className:"jsx-4281062364 btn btn-primary",children:"Volver al Registro"})]})]})})}),(0,j.jsx)(l.A,{}),(0,j.jsx)(n(),{id:"4281062364",children:[".activation-status.jsx-4281062364{text-align:center;margin-top:50px;}",".activation-status.success.jsx-4281062364{color:green;}",".activation-status.error.jsx-4281062364{color:red;}",".btn.jsx-4281062364{margin-top:20px;display:inline-block;padding:10px 20px;background-color:#007bff;color:#fff;-webkit-text-decoration:none;text-decoration:none;border-radius:5px;}",".btn.jsx-4281062364:hover{background-color:#0056b3;}"]})]})}},67751:(e,s,t)=>{"use strict";t.d(s,{A:()=>n});var a=t(14232),r=t(37876);function n(e){var s=e.id,t=e.classType,n=e.style,i=e.pushSlot,c=void 0!==i&&i,o=(0,a.useState)(!1),l=o[0],d=o[1],u=(0,a.useState)(!1),x=u[0],j=u[1];return t=t?"ad ".concat(t):"",(0,a.useEffect)(function(){if(c){var e=setInterval(function(){"undefined"!=typeof googletag&&"undefined"!=typeof googletag&&void 0!==googletag.cmd&&void 0!==googletag.cmd.push&&(d(!0),clearInterval(e))},1e3);l&&!x&&googletag.cmd.push(function(){googletag.display("".concat(s)),j(!0)})}},[l]),(0,r.jsx)("div",{id:s,className:t,style:n})}},88880:(e,s,t)=>{"use strict";t.d(s,{A:()=>u});var a=t(67751),r=t(37876);function n(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.A,{id:"div-gpt-ad-1648033296806-0",pushSlot:!0}),(0,r.jsx)(a.A,{id:"leaderboard",classType:"ad-leaderboard"}),(0,r.jsx)(a.A,{id:"interstitial",classType:"ad-interstitial"})]})}function i(e){return e.props,(0,r.jsx)(n,{})}var c=t(22007),o=t(30154),l=t(22294);function d(){var e=(0,c.Ay)("/api/news/getAlert",o.A,{revalidateOnFocus:!1}).data;return null!=e&&e.length?(0,r.jsx)("div",{className:"widget widget-alertNews",children:(0,r.jsxs)("div",{className:"wrapper",children:[(0,r.jsxs)("div",{className:"title",children:[(0,r.jsxs)("div",{className:"live-indicator",children:[(0,r.jsx)("span",{}),(0,r.jsx)("span",{})]}),(0,r.jsx)("span",{className:"titleName",children:"ALERTA"})]}),(0,r.jsx)("ul",{className:"content",children:null==e?void 0:e.map(function(e,s){return(0,r.jsx)("li",{className:"content-item",children:(0,r.jsx)("a",{href:l.A.generateUrl(e),children:e.Title_en})},s)})})]})}):null}function u(e){var s=e.children,t=e.micrositeClass,a=e.withAds;return(0,r.jsxs)("main",{id:"content",className:t,children:[(void 0===a||a)&&(0,r.jsx)(i,{}),(0,r.jsx)(d,{}),s]})}},99243:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/activar-cuenta",function(){return t(57843)}])}},e=>{var s=s=>e(e.s=s);e.O(0,[3689,1575,636,6593,8792],()=>s(99243)),_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.