module.exports=[27837,a=>{"use strict";var b=a.i(45618);let c=process.env.SUPABASE_SERVICE_ROLE_KEY||"placeholder-key-for-build",d=(0,b.createClient)("https://ixrgjfluwrwkzpxoaocw.supabase.co",c,{auth:{autoRefreshToken:!1,persistSession:!1}});a.s(["supabaseAdmin",0,d])},2421,a=>{"use strict";var b=a.i(37936),c=a.i(27837);async function d(a){if(!a)return{success:!1,error:"Email is required"};try{let{data:b,error:d}=await c.supabaseAdmin.from("leads").select("programa_id, programs(title)").ilike("correo",a).order("created_at",{ascending:!1}).limit(1).maybeSingle();if(d)throw d;if(b?.programs){let a=b.programs,c=Array.isArray(a)?a[0]?.title||null:a?.title||null;if(c)return{success:!0,title:c}}if(b?.programa_id){let{data:a}=await c.supabaseAdmin.from("programs").select("title").eq("id",b.programa_id).maybeSingle();if(a?.title)return{success:!0,title:a.title}}return{success:!1,error:"No program found for this email"}}catch(a){return console.error("Error in getStudentProgram:",a),{success:!1,error:a.message}}}(0,a.i(13095).ensureServerEntryExports)([d]),(0,b.registerServerReference)(d,"40843e5de07ddd8d69d1aab690dc9dff9f62ec4cea",null),a.s(["getStudentProgram",()=>d])},74380,a=>{"use strict";var b=a.i(54143),c=a.i(2421);a.s([],18008),a.i(18008),a.s(["40843e5de07ddd8d69d1aab690dc9dff9f62ec4cea",()=>c.getStudentProgram,"408752d41840a9129533a279989e29f571a78e21c2",()=>b.getSiteSettings],74380)}];

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