PageSourceSearch

https://devhunt.org/_next/static/chunks/app/not-found-1768166192b87eec.js?dpl=dpl_FUqeUfuFvDS6FjCNEye2BHyw7FiL

js devhunt.org collected 2026-10-03 21:23:22 UTC 3,530 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9160],{5141:function(e,t,n){Promise.resolve().then(n.bind(n,65973)),Promise.resolve().then(n.t.bind(n,81072,23))},17671:function(e,t,n){"use strict";n.d(t,{$:function(){return l},default:function(){return o}});var i=n(41598),r=n(96351),u=n(152),a=n(51087);let s=(0,r.createContext)();function o(e){let{children:t}=e,[n]=(0,r.useState)(()=>(0,u.A)()),[o,l]=(0,r.useState)(null),[c,d]=(0,r.useState)(null),[h,f]=(0,r.useState)(!0),m=(0,r.useRef)(void 0),v=async e=>{if(m.current=e,!e){d(null);return}let{data:t}=await n.from("profiles").select().eq("id",e).maybeSingle();if(null==t?void 0:t.deleted_at){await n.auth.signOut().catch(()=>null),window.location.pathname.startsWith("/login")||(window.location.href="/login?deleted=1");return}d(t)};(0,r.useEffect)(()=>{let e=new URLSearchParams("".concat(window.location.search.slice(1),"&").concat(window.location.hash.slice(1)));if((0,a.mE)(e.get("error_description"))&&!window.location.pathname.startsWith("/login")){window.location.href="/login?deleted=1";return}let t=!0;n.auth.getSession().then(async e=>{var n;let{data:i}=e;t&&(l(i.session),await v(null===(n=i.session)||void 0===n?void 0:n.user.id),t&&f(!1))});let{data:{subscription:i}}=n.auth.onAuthStateChange((e,t)=>{l(t),m.current!==(null==t?void 0:t.user.id)&&v(null==t?void 0:t.user.id)});return()=>{t=!1,i.unsubscribe()}},[n]);let w=async()=>{await v(null==o?void 0:o.user.id)};return(0,i.jsx)(s.Provider,{value:{supabase:n,session:o,user:c,loading:h,refreshUser:w},children:(0,i.jsx)(i.Fragment,{children:t})})}let l=()=>(0,r.useContext)(s)},65973:function(e,t,n){"use strict";n.d(t,{default:function(){return a}});var i=n(96351),r=n(61306),u=n(17671);function a(){var e;let t=(0,r.usePathname)(),n=(0,r.useRouter)(),{session:a}=(0,u.$)(),s=null==t?void 0:null===(e=t.match(/^\/tool\/([^/]+)\/?$/))||void 0===e?void 0:e[1];return(0,i.useEffect)(()=>{if(!s||!(null==a?void 0:a.user.id))return;let e="admin-tool-redirect:".concat(s);try{var t;if(Date.now()-Number(null!==(t=sessionStorage.getItem(e))&&void 0!==t?t:0)<18e4)return;sessionStorage.setItem(e,String(Date.now()))}catch(e){}fetch("/api/account/admin").then(e=>e.ok?e.json():{admin:!1}).then(e=>e.admin&&n.replace("/admin/tool/".concat(s))).catch(()=>{})},[s,null==a?void 0:a.user.id]),null}},61306:function(e,t,n){"use strict";var i=n(69408);n.o(i,"useParams")&&n.d(t,{useParams:function(){return i.useParams}}),n.o(i,"usePathname")&&n.d(t,{usePathname:function(){return i.usePathname}}),n.o(i,"useRouter")&&n.d(t,{useRouter:function(){return i.useRouter}}),n.o(i,"useSearchParams")&&n.d(t,{useSearchParams:function(){return i.useSearchParams}})},51087:function(e,t,n){"use strict";n.d(t,{Ju:function(){return i},ZF:function(){return r},mE:function(){return u}});let i="Deleted user";function r(e,t){let n=e=>e.trim().replace(/^@/,"").replace(/\s+/g," ").toLowerCase();return"string"==typeof e&&!!t&&n(e).length>0&&n(e)===n(t)}let u=e=>!!e&&/banned|user.*(deleted|disabled)/i.test(e)},152:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var i=n(78140);let r=()=>(0,i.createClientComponentClient)({supabaseUrl:"https://xpdhqqwgprlqmqaqmnyx.supabase.co/",supabaseKey:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InhwZGhxcXdncHJscW1xYXFtbnl4Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2ODQ4NTg0ODcsImV4cCI6MjAwMDQzNDQ4N30.fwN6a_NzygrFxhj0GCxGnJJpHv8q8iNEjY1jvhL8Kv0",isSingleton:!0})}},function(e){e.O(0,[1072,274,8140,6003,3032,1744],function(){return e(e.s=5141)}),_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.