PageSourceSearch

https://conectartdf.com/_next/static/chunks/app/perfil/%5Bid%5D/subir-documentacion/layout-89d33363edaa30a4.js

js conectartdf.com collected 2026-10-02 00:17:21 UTC 2,905 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1220,3859,3945,6485,8300],{4873:(e,t,r)=>{"use strict";var n=r(12115).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;t.c=function(e){return n.H.useMemoCache(e)}},15262:(e,t,r)=>{Promise.resolve().then(r.bind(r,52321))},19749:(e,t,r)=>{"use strict";e.exports=r(4873)},52321:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AuthGuard:()=>c});var n=r(95155),s=r(19749),u=r(12115),a=r(82222),i=r(78076);let c=e=>{let t,r,c,o=(0,s.c)(9),{children:l}=e,h=(0,a.useRouter)(),m=(0,a.usePathname)(),{isAuthenticated:f,isInitializing:d}=(0,i.A)();if(o[0]!==f||o[1]!==d||o[2]!==m||o[3]!==h?(t=()=>{if(!d&&!f){let e=encodeURIComponent(m||"/");h.replace(`/auth/login?redirect=${e}`)}},r=[f,d,h,m],o[0]=f,o[1]=d,o[2]=m,o[3]=h,o[4]=t,o[5]=r):(t=o[4],r=o[5]),(0,u.useEffect)(t,r),d){let e;return o[6]===Symbol.for("react.memo_cache_sentinel")?(e=(0,n.jsx)("div",{className:"min-h-[100dvh] flex items-center justify-center bg-cod-gray-100 px-6",children:(0,n.jsx)("p",{className:"text-base md:text-lg text-cod-gray-600",children:"Verificando sesi\xf3n..."})}),o[6]=e):e=o[6],e}return f?(o[7]!==l?(c=(0,n.jsx)(n.Fragment,{children:l}),o[7]=l,o[8]=c):c=o[8],c):null}},78076:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(19749),s=r(12115),u=r(80282);let a=()=>({user:u.authStore.getUser(),token:u.authStore.getToken(),isInitializing:u.authStore.getIsInitializing()}),i={user:null,token:null,isInitializing:!0};function c(){let e,t,r,c=(0,n.c)(5),[o,l]=(0,s.useState)(i);c[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>(l(a()),u.authStore.subscribe(()=>{l(a())})),t=[],c[0]=e,c[1]=t):(e=c[0],t=c[1]),(0,s.useEffect)(e,t);let h=!!o.user&&!!o.token;return c[2]!==o||c[3]!==h?(r={...o,isAuthenticated:h},c[2]=o,c[3]=h,c[4]=r):r=c[4],r}},80282:(e,t,r)=>{"use strict";r.d(t,{authStore:()=>l});let n="ctdf_user";function s(e){try{e?localStorage.setItem(n,JSON.stringify(e)):localStorage.removeItem(n)}catch{}}let u=null,a=function(){try{let e=localStorage.getItem(n);return e?JSON.parse(e):null}catch{return null}}(),i=!0,c=[],o=()=>c.forEach(e=>e()),l={getToken:()=>u,setToken:e=>{u=e,o()},getUser:()=>a,setUser:e=>{a=e,s(e),o()},getIsInitializing:()=>i,setIsInitializing:e=>{i=e,o()},logout:async()=>{try{await fetch("https://conectartdf.com/api/auth/logout/",{method:"POST",credentials:"include"})}catch(e){console.error("Logout failed",e)}u=null,a=null,i=!1,s(null),o(),window.location.href="/"},subscribe:e=>(c.push(e),()=>{c=c.filter(t=>t!==e)})}},82222:(e,t,r)=>{"use strict";var n=r(55042);r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})}},e=>{e.O(0,[8441,4454,7358],()=>e(e.s=15262)),_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.