module.exports=[50640,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"InvariantError",{enumerable:!0,get:function(){return d}});class d extends Error{constructor(a,b){super(`Invariant: ${a.endsWith(".")?a:a+"."} This is a bug in Next.js.`,b),this.name="InvariantError"}}},23538,a=>{"use strict";var b=a.i(37936),c=a.i(45618);function d(){let a=process.env.SUPABASE_SERVICE_ROLE_KEY||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU";return(0,c.createClient)("http://localhost:54321",a,{auth:{autoRefreshToken:!1,persistSession:!1}})}var e=a.i(18558);async function f(){let a=d(),{data:{users:b},error:c}=await a.auth.admin.listUsers();if(c)throw c;return b}async function g(a){let b=d(),{data:{user:c},error:f}=await b.auth.admin.createUser({email:a.email,password:a.password||Math.random().toString(36).slice(-10),email_confirm:a.email_confirm??!0});if(f)throw f;return(0,e.revalidatePath)("/admin/users"),c}async function h(a){let b=d(),{error:c}=await b.auth.admin.deleteUser(a);if(c)throw c;(0,e.revalidatePath)("/admin/users")}async function i(a,b){let c=d(),{error:f}=await c.auth.admin.updateUserById(a,{ban_duration:b?"876000h":"0h"});if(f)throw f;(0,e.revalidatePath)("/admin/users")}async function j(a){let b=d(),{error:c}=await b.auth.admin.generateLink({type:"recovery",email:a});if(c)throw c}(0,a.i(13095).ensureServerEntryExports)([f,g,h,i,j]),(0,b.registerServerReference)(f,"00943512a2bfb0af76d0fa6f57151d5959dbbf8d3a",null),(0,b.registerServerReference)(g,"40bcd2e55053d75f38f9f2dfa368ab3f5dcfddffc1",null),(0,b.registerServerReference)(h,"40754fb1921e61318fdfee6eb02cbcd7118ad5bfd4",null),(0,b.registerServerReference)(i,"60f860e2cdd1f53f949d1f31f85f5320b81ffa2491",null),(0,b.registerServerReference)(j,"406d01f3d29890da62989fa40f7a68722384aa195c",null),a.s(["createUser",0,g,"deleteUser",0,h,"getUsers",0,f,"resetPassword",0,j,"updateUserStatus",0,i],23538)},11446,a=>{"use strict";var b=a.i(23538);a.s([],21652),a.i(21652),a.s(["00943512a2bfb0af76d0fa6f57151d5959dbbf8d3a",()=>b.getUsers,"406d01f3d29890da62989fa40f7a68722384aa195c",()=>b.resetPassword,"40754fb1921e61318fdfee6eb02cbcd7118ad5bfd4",()=>b.deleteUser,"40bcd2e55053d75f38f9f2dfa368ab3f5dcfddffc1",()=>b.createUser,"60f860e2cdd1f53f949d1f31f85f5320b81ffa2491",()=>b.updateUserStatus],11446)}];

//# sourceMappingURL=_13clls0._.js.map