(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5297],{4873:(e,s,t)=>{"use strict";var r=t(2115).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;s.c=function(e){return r.H.useMemoCache(e)}},6251:(e,s,t)=>{"use strict";t.d(s,{A:()=>o});let r=t(2707).A.create({baseURL:"https://ngo-backend-1-u8ji.onrender.com/api",timeout:3e4,headers:{"Content-Type":"application/json"}});r.interceptors.request.use(e=>{{let s=localStorage.getItem("token");s&&(e.headers.Authorization=`Bearer ${s}`)}return e},e=>Promise.reject(e)),r.interceptors.response.use(e=>e,e=>(e.response?.status===401&&(localStorage.removeItem("token"),localStorage.removeItem("user"),window.location.href="/login"),console.error("API Error:",{url:e.config?.url,status:e.response?.status,message:e.response?.data?.message||e.message}),Promise.reject(e)));let o=r},9378:(e,s,t)=>{Promise.resolve().then(t.bind(t,919))},9749:(e,s,t)=>{"use strict";e.exports=t(4873)}},e=>{e.O(0,[2137,3981,5641,919,8441,9826,7358],()=>e(e.s=9378)),_N_E=e.O()}]);