PageSourceSearch

https://veggiedeals-29afd.firebaseapp.com/assets/main-ClgP_npZ.js

js veggiedeals-29afd.firebaseapp.com collected 2026-10-03 14:07:58 UTC 10,211 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-Cy-V2yEw.js","assets/vendor-Dm1e2k69.js","assets/vendor-DHA0eyFV.css","assets/index-CxY3JD6w.js","assets/index-CAJNF0zX.css","assets/Home-D08k84f-.css","assets/About-C8WpJ3LV.js","assets/About-DsVSBDbt.css","assets/Contact-Du6AihsP.js","assets/Contact-jXJEUKKu.css","assets/SignIn-B-_Bsk8G.js","assets/SignIn-DpNc6hDJ.css","assets/Coupons-KU6E83gJ.js","assets/Coupons-C9uDAVqe.css","assets/Account-DK18CNBn.js","assets/Account-CDpkWUwM.css","assets/CouponDetailPage-BP-7Cs66.js","assets/CouponDetailPage-EutLynUX.css","assets/RedeemedCouponPage-DA90n6vd.js","assets/RedeemedCouponPage-B6WTa6aE.css","assets/VerifyEmail-D8hC2drG.js","assets/PartnershipApplication-duFfZ9Go.js","assets/PartnershipApplication-D2ADb3JS.css","assets/TermsOfService-C6m6oHHJ.js","assets/TermsAndPrivacy-DkVhNg0E.css","assets/PrivacyPolicy-COKl3m9U.js","assets/Welcome-Bnp8Oepj.js","assets/Welcome-jpHf8e17.css","assets/ValidationPage-jV6I206s.js","assets/ValidationPage-BpXa0_BU.css"])))=>i.map(i=>d[i]);
2import{u as b,A as S}from"./index-CxY3JD6w.js";import{r as s,u as A,j as e,L as x,a as E,N as g,g as N,d as w,b as k,c as I,B as V,R as T,e as l,O as P,f as C,h as z}from"./vendor-Dm1e2k69.js";const B="modulepreload",U=function(n){return"/"+n},y={},h=function(t,i,c){let d=Promise.resolve();if(i&&i.length>0){let o=function(m){return Promise.all(m.map(p=>Promise.resolve(p).then(r=>({status:"fulfilled",value:r}),r=>({status:"rejected",reason:r}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),f=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));d=o(i.map(m=>{if(m=U(m),m in y)return;y[m]=!0;const p=m.endsWith(".css"),r=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${r}`))return;const u=document.createElement("link");if(u.rel=p?"stylesheet":B,p||(u.as="script"),u.crossOrigin="",u.href=m,f&&u.setAttribute("nonce",f),document.head.appendChild(u),p)return new Promise((R,O)=>{u.addEventListener("load",R),u.addEventListener("error",()=>O(new Error(`Unable to preload CSS for ${m}`)))})}))}function j(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return d.then(o=>{for(const a of o||[])a.status==="rejected"&&j(a.reason);return t().catch(j)})},$=({user:n,logout:t,className:i})=>{const[c,d]=s.useState(!1),j=A(),o=s.useRef(null),a=async()=>{try{await t(),j("/")}catch(r){console.error("Failed to log out",r)}};s.useEffect(()=>{const r=u=>{o.current&&!o.current.contains(u.target)&&d(!1)};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[]);const f=`dropdown-container ${i||""}`.trim(),p=((r,u)=>r?r.length>u?`${r.substring(0,u)}…`:r:"")(n.displayName||n.email,25);return e.jsxs("div",{className:f,ref:o,children:[e.jsxs("button",{onClick:()=>d(!c),className:"dropdown-btn",children:[e.jsx("span",{className:"user-name",children:p}),e.jsx("span",{className:`dropdown-arrow ${c?"open":""}`})]}),c&&e.jsxs("ul",{className:"dropdown-menu",children:[e.jsx("li",{className:"dropdown-item",children:e.jsx(x,{to:"/coupons",onClick:()=>d(!1),children:"Coupons"})}),e.jsx("li",{className:"dropdown-item",children:e.jsx(x,{to:"/account",onClick:()=>d(!1),children:"My Account"})}),e.jsx("li",{className:"dropdown-item",children:e.jsx("button",{onClick:a,className:"logout-btn",children:"Sign Out"})})]})]})},F=()=>{const{currentUser:n,logout:t}=b(),i=E(),c=i.pathname!=="/",d=i.pathname==="/sign-in";return e.jsx("nav",{className:`navbar ${d?"sign-in-page":""}`,children:e.jsxs("div",{className:"navbar-container",children:[c&&e.jsx("div",{className:"back-to-home-button",children:e.jsxs(x,{to:"/",className:"back-to-home-link",children:[e.jsx("span",{className:"arrow-icon",children:"‹"}),e.jsx("span",{className:"mobile-home-text",children:"Home"}),e.jsx("span",{className:"back-to-home-text",children:"Back to Home"})]})}),e.jsx("div",{className:"navbar-controls",children:n?e.jsx("div",{className:"user-info-container",children:e.jsx($,{user:n,logout:t})}):i.pathname!=="/sign-in"?e.jsx(x,{to:"/sign-in",className:"sign-in-link",children:"Sign In"}):e.jsx("div",{})})]})})};function H(){return e.jsx("div",{className:"footer-section",children:e.jsxs("div",{className:"footer-container",children:[e.jsx("div",{className:"footer-logo",children:e.jsx(x,{to:"/",className:"social-logo",children:e.jsx("img",{src:"/images/VD_Text_Logo_H.webp",alt:"VeggieDeals"})})}),e.jsxs("div",{className:"footer-links",children:[e.jsx(x,{to:"/",children:"Home"}),e.jsx(x,{to:"/about",children:"About Us"}),e.jsx(x,{to:"/contact",children:"Contact Us"}),e.jsx(x,{to:"/partnership-application",children:"Partnership Application"}),e.jsx(x,{to:"/terms-of-service",children:"Terms of Service"}),e.jsx(x,{to:"/privacy-policy",children:"Privacy Policy"})]}),e.jsxs("div",{className:"social-icons",children:[e.jsx(x,{className:"social-icon-link facebook",to:"https://www.facebook.com/NorthwestVEG/",target:"_blank","aria-label":"Facebook",children:e.jsx("i",{className:"fab fa-facebook-f"})}),e.jsx(x,{className:"social-icon-link instagram",to:"https://www.instagram.com/northwestveg/",target:"_blank","aria-label":"Instagram",children:e.jsx("i",{className:"fab fa-instagram"})})]}),e.jsx("small",{className:"website-rights",children:"VeggieDeals © 2026"})]})})}const _=({children:n})=>{const{currentUser:t,emailVerified:i,loading:c}=b(),d=E(),[j,o]=s.useState({loading:!0,complete:null});return s.useEffect(()=>{o({loading:!0,complete:null}),c||(async()=>
2{if(t){const f=N(),m=w(f,"users",t.uid);try{const p=await k(m);p.exists()&&p.data().onboardingComplete?o({loading:!1,complete:!0}):o({loading:!1,complete:!1})}catch(p){console.error("Failed to check onboarding status:",p),o({loading:!1,complete:!1})}}else o({loading:!1,complete:!1})})()},[t,c]),c||j.loading?e.jsx("div",{children:"Loading..."}):t?j.complete?!i&&d.pathname!=="/verify-email"?e.jsx(g,{to:"/verify-email",replace:!0}):n:e.jsx(g,{to:`/welcome/${t.uid}`,replace:!0}):e.jsx(g,{to:"/sign-in",state:{from:d},replace:!0})},W=()=>{const[n,t]=s.useState(!1);s.useEffect(()=>{const c=window.innerWidth>1024,d=localStorage.getItem("hasDismissedDesktopBanner");c&&!d&&t(!0)},[]);const i=()=>{localStorage.setItem("hasDismissedDesktopBanner","true"),t(!1)};return n?e.jsxs("div",{className:"desktop-banner",children:[e.jsx("p",{children:"For the best experience at checkout, we recommend using VeggieDeals on your phone."}),e.jsx("button",{onClick:i,className:"dismiss-button",children:"×"})]}):null},D=()=>{const{pathname:n}=E();return s.useEffect(()=>{window.scrollTo(0,0)},[n]),null},q=({children:n})=>{const{currentUser:t,loading:i}=b(),{userId:c}=I(),[d,j]=s.useState(null),[o,a]=s.useState(!0);return s.useEffect(()=>{i||(async()=>{if(t&&c===t.uid){const m=N(),p=w(m,"users",t.uid),r=await k(p);let u=!1;r.exists()&&r.data().onboardingComplete===!0&&(u=!0),j(u)}else j(!1);a(!1)})()},[t,c,i]),i||o?e.jsx("div",{children:"Loading..."}):d?e.jsx(g,{to:"/coupons",replace:!0}):t&&t.uid!==c?e.jsx(g,{to:"/",replace:!0}):!t&&c?e.jsx(g,{to:"/sign-in",replace:!0}):n},L=()=>e.jsx("div",{className:"loading-spinner-overlay",children:e.jsx("span",{className:"loader"})}),G=s.lazy(()=>h(()=>import("./Home-Cy-V2yEw.js"),__vite__mapDeps([0,1,2,3,4,5]))),M=s.lazy(()=>h(()=>import("./About-C8WpJ3LV.js"),__vite__mapDeps([6,1,2,7]))),J=s.lazy(()=>h(()=>import("./Contact-Du6AihsP.js"),__vite__mapDeps([8,1,2,3,4,9]))),K=s.lazy(()=>h(()=>import("./SignIn-B-_Bsk8G.js"),__vite__mapDeps([10,1,2,3,4,11]))),Q=s.lazy(()=>h(()=>import("./Coupons-KU6E83gJ.js"),__vite__mapDeps([12,1,2,3,4,13]))),X=s.lazy(()=>h(()=>import("./Account-DK18CNBn.js"),__vite__mapDeps([14,1,2,3,4,15]))),Y=s.lazy(()=>h(()=>import("./CouponDetailPage-BP-7Cs66.js"),__vite__mapDeps([16,1,2,3,4,17]))),Z=s.lazy(()=>h(()=>import("./RedeemedCouponPage-DA90n6vd.js"),__vite__mapDeps([18,1,2,3,4,19]))),ee=s.lazy(()=>h(()=>import("./VerifyEmail-D8hC2drG.js"),__vite__mapDeps([20,1,2,3,4,11]))),se=s.lazy(()=>h(()=>import("./PartnershipApplication-duFfZ9Go.js"),__vite__mapDeps([21,1,2,22]))),te=s.lazy(()=>h(()=>import("./TermsOfService-C6m6oHHJ.js"),__vite__mapDeps([23,1,2,24]))),ne=s.lazy(()=>h(()=>import("./PrivacyPolicy-COKl3m9U.js"),__vite__mapDeps([25,1,2,24]))),oe=s.lazy(()=>h(()=>import("./Welcome-Bnp8Oepj.js"),__vite__mapDeps([26,1,2,3,4,27]))),ae=s.lazy(()=>h(()=>import("./ValidationPage-jV6I206s.js"),__vite__mapDeps([28,1,2,3,4,29]))),re=()=>e.jsxs("div",{className:"app-container",children:[e.jsx(D,{}),e.jsx(F,{}),e.jsx("div",{className:"content-wrap",children:e.jsx(P,{})}),e.jsx(H,{}),e.jsx(W,{})]}),ie=()=>e.jsxs("div",{className:"app-container",children:[e.jsx(D,{}),e.jsx("div",{className:"content-full-height",children:e.jsx(P,{})})]}),v=({children:n})=>{const{loading:t}=b();return t?e.jsx(L,{}):e.jsx(e.Fragment,{children:n})};function ce(){return e.jsx(V,{children:e.jsx(s.Suspense,{fallback:e.jsx(L,{}),children:e.jsxs(T,{children:[e.jsxs(l,{element:e.jsx(re,{}),children:[e.jsx(l,{path:"/",element:e.jsx(G,{})}),e.jsx(l,{path:"/about",element:e.jsx(M,{})}),e.jsx(l,{path:"/contact",element:e.jsx(J,{})}),e.jsx(l,{path:"/terms-of-service",element:e.jsx(te,{})}),e.jsx(l,{path:"/privacy-policy",element:e.jsx(ne,{})}),e.jsx(l,{path:"/sign-in",element:e.jsx(K,{})}),e.jsx(l,{path:"/welcome/:userId",element:e.jsx(q,{children:e.jsx(oe,{})})}),e.jsx(l,{path:"/partnership-application",element:e.jsx(se,{})}),e.jsx(l,{path:"/verify-email",element:e.jsx(ee,{})}),e.jsx(l,{path:"/coupons",element:e.jsx(v,{children:e.jsx(_,{children:e.jsx(Q,{})})})}),e.jsx(l,{path:"/coupon/:id",element:e.jsx(v,{children:e.jsx(_,{children:e.jsx(Y,{})})})}),e.jsx(l,{path:"/account",element:e.jsx(v,{children:e.jsx(_,{children:e.jsx(X,{})})})})]}),e.jsxs(l,{element:e.jsx(ie,{}),children:[e.jsx(l,{path:"/validation/:redemptionId",element:e.jsx(ae,{})}),e.jsx(l,{path:"/redeemed-coupon/:id",element:e.jsx(v,{children:e.jsx(_,{children:e.jsx(Z,{})})})})]}),e.jsx(l,{path:"*",element:e.jsx(g,{to:"/"})})]})})})}C.createRoot(document.getElementById("root")).render(e.jsx(z.StrictMode,{children:e.jsx(S,{children:e.jsx(ce,{})})}));export{L};

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.