1import{t as f,h as ya,a as c,b as ja}from"../chunks/BklBZkdz.js";import"../chunks/DC1xZWHk.js";import{p as Ha,l as Sa,a as Ua,t as y,g as d,b as Aa,c as e,s as t,r as s,m as M,d as P,e as m,f as Ea}from"../chunks/CTuNfd5H.js";import{s as j}from"../chunks/32k-qDYz.js";import{i as H}from"../chunks/CPygTg6n.js";import{s as $a}from"../chunks/DBz27G93.js";import{r as Da,s as ra,a as Va}from"../chunks/iOavxUsr.js";import{e as l}from"../chunks/TTQ8g4_F.js";import{b as Ca}from"../chunks/CKkvPoDd.js";import{p as La}from"../chunks/BDD76Zze.js";import{i as Ma}from"../chunks/BA4Uaf6Y.js";import{s as Pa,a as x}from"../chunks/BVFFq6I0.js";import{a as qa}from"../chunks/OxU3imQ9.js";import{g as Ta,a as Wa}from"../chunks/CgGx5pqY.js";import{o as Fa}from"../chunks/BdeJmggZ.js";import"../chunks/BOXybboA.js";import{s as ia,a as Ia,b as Ba,c as Na}from"../chunks/DvScURzw.js";import{b as Qa}from"../chunks/CRoczeXV.js";import{h as Ya}from"../chunks/DzCLEe4N.js";import{p as Ga}from"../chunks/dcxvTajm.js";import{b as Oa}from"../chunks/BPGdG2Do.js";import{a as za}from"../chunks/CuSaXuEW.js";import{a as Ja}from"../chunks/SzErPH2C.js";import{a as Ka}from"../chunks/C1Rz16pW.js";import{c as Ra}from"../chunks/D_zJf0Hu.js";import{p as Xa}from"../chunks/DXJ6deNo.js";import{p as Za}from"../chunks/DSQdE6T-.js";import{a as ae}from"../chunks/B_ZSughQ.js";import{t as ee}from"../chunks/emLrVYkX.js";import{w as te}from"../chunks/CKfAjHmd.js";var se=f('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">'),re=f('<a href="/admin" class="text-primary text-sm hover:underline">Admin Dashboard</a>'),ie=f('<img alt="Profile" class="inset-0 h-8 w-8 rounded-full">'),oe=f('<!> <a href="/profile" class="text-primary text-sm hover:underline"><div class="text-primary relative flex flex-col cursor-pointer items-center justify-center h-8 w-8 rounded-full bg-blue-200 text-lg font-bold"><!></div></a>',1),le=f('<a href="/login" class="bg-primary hover:bg-primary-dark rounded-md px-4 py-2 text-white">Login</a>'),ne=f("<p> </p>"),ce=f('<div class="site-container svelte-57nhdj"><header class="bg-white shadow-md"><nav class="container mx-auto flex items-center justify-between p-1"><div class="flex items-center"><a href="/" class="text-primary text-2xl font-bold"><span class="sr-only">VietSpark</span> <img src="/logos/225357894_335085408311214_4818242809207101955_n.png" alt="VietSpark Logo" class="h-20"></a></div> <div class="hidden space-x-3 lg:flex"><a href="/" class="nav-link svelte-57nhdj">Home</a> <a href="/about" class="nav-link svelte-57nhdj">About Us</a> <a href="/events" class="nav-link svelte-57nhdj">Events</a> <a href="/programs" class="nav-link svelte-57nhdj">Programs</a> <a href="/testimonials" class="nav-link svelte-57nhdj">Testimonials</a> <a href="/work-with-us" class="nav-link svelte-57nhdj">Work With Us</a> <a href="/contact" class="nav-link svelte-57nhdj">Contact</a> <a href="/donate" class="nav-link svelte-57nhdj">Donate</a></div> <div class="flex items-center space-x-4"><!> <button class="text-gray-600 focus:outline-none lg:hidden" aria-label="Toggle menu"><i class="fas fa-bars text-xl"></i></button></div></nav> <div><div class="space-y-1 px-2 pb-3 pt-2"><a href="/" class="mobile-nav-link svelte-57nhdj">Home</a> <a href="/about" class="mobile-nav-link svelte-57nhdj">About Us</a> <a href="/events" class="mobile-nav-link svelte-57nhdj">Events</a> <a href="/programs" class="mobile-nav-link svelte-57nhdj">Programs</a> <a href="/testimonials" class="mobile-nav-link svelte-57nhdj">Testimonials</a> <a href="/work-with-us" class="mobile-nav-link svelte-57nhdj">Work With Us</a> <a href="/contact" class="mobile-nav-link svelte-57nhdj">Contact</a> <a href="/donate" class="mobile-nav-link svelte-57nhdj">Donate</a></div></div></header> <main class="svelte-57nhdj"><!></main> <footer class="bg-gray-800 text-white"><div class="container mx-auto px-4 py-8"><div class="grid grid-cols-1 gap-8 md:grid-cols-4"><div><div class="mb-4"><img src="/logos/225357894_335085408311214_4818242809207101955_n.png" alt="VietSpark Logo" class="mb-2 h-12"> <h3 class="text-lg font-bold">VietSpark</h3></div> <p class="mb-4 text-gray-300">Empowering Vietnamese professionals to lead in tech</p> <div class="flex space-x-4"><a href="https://www.facebook.com/VietSpark.org" class="text-white transition-colors duration-300 hover:text-blue-400" aria-label="Facebook" target="_blank"><i class="fab fa-facebook-f text-xl"></i></a> <a href="https://www.linkedin.com/company/vietnam-business-professional-in-tech/" class="text-white transition-colors duration-300 hover:text-blue-400" aria-label="LinkedIn" target="_blank"><i class="fab fa-linkedin-in text-xl"></i></a></div></div> <div><h3 class="mb-4 text-lg font-bold">Quick Links</h3> <ul class="space-y-2"><li><a href="/about" class="text-gray-300 hover:text-white">About Us</a></li> <li><a href="/events" class="text-gray-300 hover:text-white">Events</a></li> <li><a href="/blog" class="text-gray-300 hover:text-white">Blog</a></li></ul></div> <div><h3 class="mb-4 text-lg font-bold">Get Involved</h3> <ul class="space-y-2"><li><a href="/work-with-us" class="text-gray-300 hover:text-white">Volunteer</a></li> <li><a href="/donate" class="text-gray-300 hover:text-white">Donate</a></li> <li><a href="/contact" class="text-gray-300 hover:text-white">Contact Us</a></li></ul></div> <div><h3 class="mb-4 text-lg font-bold">Newsletter</h3> <p class="mb-4 text-gray-300">Subscribe to our newsletter for updates</p> <form class="flex flex-col space-y-2"><input type="email" placeholder="Your email" required class="w-full rounded-md px-3 py-2 text-primary-700 focus:outline-none"> <button type="submit" class="bg-primary hover:bg-primary-dark rounded-md px-4 py-2 focus:outline-none disabled:opacity-50"> </button> <!></form></div></div> <div class="mt-8 border-t border-gray-700 pt-8 text-center text-gray-300"><p> </p></div></div></footer></div>');function Fe(oa,q){Ha(q,!1);const[h,la]=Pa(),na=()=>x(Na,"$subscribers",h),p=()=>x(Wa,"$userData",h),T=()=>x(qa,"$authUser",h),W=()=>x(Ia,"$subscriberLoading",h),F=()=>x(Ba,"$subscriberError",h);let _=M(!1),b=M(""),u=M("");function ca(){m(_,!d(_))}function n(){m(_,!1)}async function va(){m(u,"");try{na().find(a=>a.email===d(b))||await ia.addSubscriber(d(b)),m(u,"Thank you for subscribing!"),m(b,"")}catch(a){m(u,a.message)}}Fa(async()=>{await Qa.getAboutUs(),await Ya.getHome(),await Ga.fetchPartners(),await Oa.fetchFAQs(),await Ta(),await ee.getTestimonials(),await za.fetchFaqCategories(),await Ja.getEvents(),await Ka.fetchEventCategories(),await Ra.getBlogs(),await Xa.getPrograms(),await Za.getProjects(),await ae.getApplications(),await ia.fetchSub
1scribers(),await te.getWorkshops()}),Sa(()=>p(),()=>{console.log("user",p())}),Ua(),Ma();var S=ce();ya(a=>{var r=se();c(a,r)});var U=e(S),A=e(U),I=t(e(A),4),B=e(I);{var da=a=>{var r=oe(),g=Ea(r);{var L=o=>{var i=re();c(o,i)};H(g,o=>{var i;(i=p())!=null&&i.isAdmin&&o(L)})}var w=t(g,2),sa=e(w),_a=e(sa);{var ka=o=>{var i=ie();y(()=>{var v;return Va(i,"src",(v=p())==null?void 0:v.profileImage)}),c(o,i)},wa=o=>{var i=ja();y(v=>j(i,v),[()=>{var v;return(T().name||((v=p())==null?void 0:v.name)||"V").charAt(0).toUpperCase()}],P),c(o,i)};H(_a,o=>{var i;(i=p())!=null&&i.profileImage?o(ka):o(wa,!1)})}s(sa),s(w),c(a,r)},ma=a=>{var r=le();c(a,r)};H(B,a=>{T()?a(da):a(ma,!1)})}var fa=t(B,2);s(I),s(A);var E=t(A,2);let N;var Q=e(E),Y=e(Q),G=t(Y,2),O=t(G,2),z=t(O,2),J=t(z,2),K=t(J,2),R=t(K,2),pa=t(R,2);s(Q),s(E),s(U);var $=t(U,2),ha=e($);$a(ha,q,"default",{}),s($);var X=t($,2),Z=e(X),D=e(Z),aa=t(e(D),6),V=t(e(aa),4),C=e(V);Da(C);var k=t(C,2),ba=e(k,!0);s(k);var ua=t(k,2);{var ga=a=>{var r=ne();let g;var L=e(r,!0);s(r),y(w=>{g=ra(r,1,"text-sm",null,g,w),j(L,d(u))},[()=>({"text-red-500":F(),"text-green-500":!F()})],P),c(a,r)};H(ua,a=>{d(u)&&a(ga)})}s(V),s(aa),s(D);var ea=t(D,2),ta=e(ea),xa=e(ta);s(ta),s(ea),s(Z),s(X),s(S),y((a,r)=>{N=ra(E,1,"lg:hidden",null,N,a),k.disabled=W(),j(ba,W()?"Subscribing...":"Subscribe"),j(xa,`© ${r??""} VietSpark. All rights reserved.`)},[()=>({hidden:!d(_)}),()=>new Date().getFullYear()],P),l("click",fa,ca),l("click",Y,n),l("click",G,n),l("click",O,n),l("click",z,n),l("click",J,n),l("click",K,n),l("click",R,n),l("click",pa,n),Ca(C,()=>d(b),a=>m(b,a)),l("submit",V,La(va)),c(oa,S),Aa(),la()}export{Fe as component};
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.