PageSourceSearch

https://ds-andpizza.netlify.app/_next/static/chunks/8cadd39d3951927c.js

js ds-andpizza.netlify.app collected 2026-10-03 10:40:49 UTC 32,309 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,363485,949783,e=>{"use strict";e.s(["validateLogin",()=>t],363485);var s=e.i(952170);let a=s.default.object({emailLogin:s.default.string().email({tlds:{allow:!1}}).required().error(e=>(e.forEach(e=>{switch(e.code){case"string.empty":e.message="Email Address is required.";break;case"string.max":case"string.email":e.message="Email is invalid."}}),e)),passwordLogin:s.default.string().required().error(e=>(e.forEach(e=>{"string.empty"===e.code&&(e.message="Password is required.")}),e))}),t=async e=>{let{error:s}=await a.validate(e,{abortEarly:!1});if(!s)return null;let t={};for(let e of s.details)t[e.path[0]]=e.message;return t};e.s(["default",()=>u],949783),e.i(973512);var l=e.i(391166),o=e.i(622610),r=e.i(464585),n=e.i(165009);let i=s.default.object({emailForgot:s.default.string().email({tlds:{allow:!1}}).required().error(e=>(e.forEach(e=>{switch(e.code){case"string.empty":e.message="Email Address is required.";break;case"string.max":case"string.email":e.message="Email is invalid."}}),e))}),d=async e=>{let{error:s}=await i.validate(e,{abortEarly:!1});if(!s)return null;let a={};for(let e of s.details)a[e.path[0]]=e.message;return a};var c=e.i(375248);let u=e=>{let{onBack:s}=e,[a,t]=(0,o.useState)("email"),[i,u]=(0,o.useState)(""),[m,_]=(0,o.useState)(""),[g,h]=(0,o.useState)(""),[y,f]=(0,o.useState)(""),[v,j]=(0,o.useState)(null),[p,x]=(0,o.useState)(null),[w,P]=(0,o.useState)(!1),[b,M]=(0,o.useState)(null),[N,k]=(0,o.useState)(0),I=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(!b||"code"!==a)return void k(0);let e=()=>k(Math.max(0,b-Math.floor(Date.now()/1e3)));e();let s=setInterval(e,1e3);return()=>clearInterval(s)},[b,a]);let C=async()=>{if(I.current||b&&b>Math.floor(Date.now()/1e3))return;I.current=!0,x(null);let e=await d({emailForgot:i.trim()});if(e){x(e.emailForgot),I.current=!1;return}P(!0);try{var s;let e=await c.api.userPasswordResetRequest({email:i.trim(),source:"customers",brandID:"HnMYOvQ1uZfcI5ATRD90"}),a=(null==e||null==(s=e.data)?void 0:s.data)||{};j(a.sessionId),M(a.resendAvailableAt||Math.floor(Date.now()/1e3)+60),t("code")}catch(e){x(e.message||"Unable to send a reset code. Please try again.")}I.current=!1,P(!1)},z=async()=>{if(x(null),!/^\d{6}$/.test(m))return void x("Enter the 6-digit code from your email.");if(g.length<8)return void x("Your new password must be at least ".concat(8," characters."));if(g!==y)return void x("Passwords do not match.");P(!0);let e=!1;try{var s,a;let l=await c.api.userPasswordResetVerify({sessionId:v,code:m}),o=null==l||null==(a=l.data)||null==(s=a.data)?void 0:s.token;if(!o)throw Error("That code is invalid or has expired. Please request a new one.");await (0,c.signInWithCustomTokenAuth)(o),e=!0,await (0,c.passwordUpdate)(c.auth.currentUser,g),t("done")}catch(s){e&&await (0,c.logout)(),x(s.message||"Unable to reset your password. Please try again.")}P(!1)};return(0,l.jsxs)("div",{className:"mx-auto",children:["email"===a&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("p",{className:"mt-3",children:"Enter your email address and we'll send you a 6-digit verification code."}),(0,l.jsxs)("div",{className:"mb-3 w-100",children:[(0,l.jsx)("label",{htmlFor:"forgotEmail",className:"form-label",children:"Email Address"}),(0,l.jsx)("input",{type:"text",className:"form-control".concat(p?" is-invalid":""),id:"forgotEmail",value:i,onKeyDown:e=>{"Enter"===e.key&&C()},onChange:e=>u(e.target.value)}),p&&(0,l.jsx)("div",{className:"invalid-feedback",children:p})]}),(0,l.jsx)("div",{className:"mb-3",children:(0,l.jsxs)(n.default,{className:"w-100",disabled:w,onClick:C,children:["Send Code",w&&(0,l.jsx)(r.Spinner,{size:"sm",className:"ms-2"})]})})]}),"code"===a&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h6",{className:"mt-3",children:"Enter your code"}),(0,l.jsx)("div",{className:"alert alert-success",children:"If an account exists for that email, a verification code was sent."}),(0,l.jsxs)("div",{className:"mb-3 w-100",children:[(0,l.jsx)("label",{htmlFor:"forgotCode",className:"form-label",children:"6-digit code"}),(0,l.jsx)("input",{type:"text",inputMode:"numeric",maxLength:"6",className:"form-control text-center",id:"forgotCode",placeholder:"000000",style:{fontSize:"1.4rem",letterSpacing:"0.4rem"},value:m,onChange:e=>_(e.target.value.replace(/\D/g,""))})]}),(0,l.jsxs)("div",{className:"mb-3 w-100",children:[(0,l.jsx)("label",{htmlFor:"forgotPassword",className:"form-label",children:"New password"}),(0,l.jsx)("input",{type:"password",className:"form-control",id:"forgotPassword",autoComplete:"new-password",value:g,onChange:e=>h(e.target.value)})]}),(0,l.jsxs)("div",{className:"mb-3 w-100",children:[(0,l.jsx)("label",{htmlFor:"forgotConfirm",className:"form-label",children:"Confirm new password"}),(0,l.jsx)("input",{type:"password",className:"form-control",id:"forgotConfirm",autoComplete:"new-password",value:y,onKeyDown:e=>{"Enter"===e.key&&z()},onChange:e=>f(e.target.value)})]}),p&&(0,l.jsx)("div",{className:"alert alert-danger",children:p}),(0,l.jsx)("div",{className:"mb-3",children:(0,l.jsxs)(n.default,{className:"w-100",onClick:()=>!w&&z(),children:["Reset Password",w&&(0,l.jsx)(r.Spinner,{size:"sm",className:"ms-2"})]})}),(0,l.jsx)("div",{className:"mb-3",children:(0,l.jsx)(n.default,{variant:"outline-primary",className:"w-100",onClick:C,disabled:w||N>0,children:N>0?"Resend code in ".concat(N,"s"):"Resend code"})})]}),"done"===a&&(0,l.jsxs)("div",{className:"alert alert-success mt-3",children:[(0,l.jsx)("h5",{className:"mb-2",children:"Password updated"}),(0,l.jsx)("p",{className:"mb-0",children:"Your password has been reset and you're now signed in."})]}),"done"!==a&&(0,l.jsx)("div",{className:"mb-3",children:(0,l.jsxs)("a",{href:"javascript:void(0)",className:"btn-link text-primary",onClick:s,children:[(0,l.jsx)("i",{className:"bi-arrow-left-circle me-2"}),"Back to login"]})})]})}},723471,(e,s,a)=>{s.exports=e.r(594618)},464585,e=>{"use strict";e.s(["Spinner",()=>r],464585);var s=e.i(264458),a=e.i(622610),t=e.i(464079),l=e.i(391166);let o=a.forwardRef((e,a)=>{let{bsPrefix:o,variant:r,animation:n="border",size:i,as:d="div",className:c,...u}=e;o=(0,t.useBootstrapPrefix)(o,"spinner");let m="".concat(o,"-").concat(n);return(0,l.jsx)(d,{ref:a,...u,className:(0,s.default)(c,m,i&&"".concat(m,"-").concat(i),r&&"text-".concat(r))})});o.displayName="Spinner";let r=o},962575,e=>{"use strict";e.s(["default",()=>t]);var s=e.i(391166);e.i(622610);var a=e.i(250503);let t=()=>{let e=(0,a.useSelector)(e=>{var s,a;return null==(a=e.brand)||null==(s=a.site)?void 0:s.primaryColor}),t=(0,a.useSelector)(e=>25*e.loader.authing+25*e.loader.fetching);return(0,s.jsx)("div",{className:"progress position-absolute rounded-0 start-0 border-0 w-100 top-0",role:"progressbar","aria-label":"loading","aria-valuenow":t,"aria-valuemin":"
10","aria-valuemax":"100",style:{height:"4px",zIndex:"1000"},children:(0,s.jsx)("div",{className:"progress-bar",style:{width:"".concat(t,"%"),backgroundColor:e}})})}},165009,e=>{"use strict";e.s(["default",()=>o]);var s=e.i(391166),a=e.i(622610),t=e.i(250503),l=e.i(392373);let o=e=>{let o=(0,t.useSelector)(e=>{var s;return null==(s=e.brand.site)?void 0:s.primaryColor}),[r,n]=(0,a.useState)(null),[i,d]=(0,a.useState)(null),[c,u]=(0,a.useState)(null),[m,_]=(0,a.useState)(null);return(0,a.useEffect)(()=>{"primary"===m||"outline-primary"===m?(d(o),n((null==m?void 0:m.includes("outline"))?"#FFFFFF":o),u((null==m?void 0:m.includes("outline"))?o:"#FFFFFF")):(d(null),n(null),u(null))},[m,o]),(0,a.useEffect)(()=>{_(e.variant?e.variant:"primary")},[e.variant]),(0,s.jsx)(l.default,{...e,style:{...e.style,color:c,backgroundColor:r,borderColor:i},onMouseEnter:()=>{var s;("primary"===m||"outline-primary"===m)&&(n((null==(s=e.className)||s.includes("outline"),o)),u("#FFFFFF"),e.onMouseEnter&&e.onMouseEnter())},onMouseLeave:()=>{("primary"===m||"outline-primary"===m)&&(n((null==m?void 0:m.includes("outline"))?"#FFFFFF":o),u((null==m?void 0:m.includes("outline"))?o:"#FFFFFF"),e.onMouseLeave&&e.onMouseLeave())},variant:(null==m?void 0:m.includes("primary"))?null:m})}},264458,(e,s,a)=>{!function(){"use strict";var a={}.hasOwnProperty;function t(){for(var e="",s=0;s<arguments.length;s++){var o=arguments[s];o&&(e=l(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return t.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var s="";for(var o in e)a.call(e,o)&&e[o]&&(s=l(s,o));return s}(o)))}return e}function l(e,s){return s?e?e+" "+s:e+s:e}if(s.exports)t.default=t,s.exports=t;else if("function"==typeof define&&"object"==typeof define.amd&&define.amd)void 0!==t&&e.v(t);else window.classNames=t}()},464079,e=>{"use strict";e.s(["useBootstrapBreakpoints",()=>r,"useBootstrapMinBreakpoint",()=>n,"useBootstrapPrefix",()=>o,"useIsRTL",()=>i]);var s=e.i(622610);e.i(391166);let a=s.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:t,Provider:l}=a;function o(e,t){let{prefixes:l}=(0,s.useContext)(a);return e||l[t]||t}function r(){let{breakpoints:e}=(0,s.useContext)(a);return e}function n(){let{minBreakpoint:e}=(0,s.useContext)(a);return e}function i(){let{dir:e}=(0,s.useContext)(a);return"rtl"===e}},879487,e=>{"use strict";e.s(["default",()=>r,"useButtonProps",()=>l]);var s=e.i(622610),a=e.i(391166);let t=["as","disabled"];function l(e){let{tagName:s,disabled:a,href:t,target:l,rel:o,role:r,onClick:n,tabIndex:i=0,type:d}=e;s||(s=null!=t||null!=l||null!=o?"a":"button");let c={tagName:s};if("button"===s)return[{type:d||"button",disabled:a},c];let u=e=>{var l;if(!a&&("a"!==s||(l=t)&&"#"!==l.trim())||e.preventDefault(),a)return void e.stopPropagation();null==n||n(e)};return"a"===s&&(t||(t="#"),a&&(t=void 0)),[{role:null!=r?r:"button",disabled:void 0,tabIndex:a?void 0:i,href:t,target:"a"===s?l:void 0,"aria-disabled":a||void 0,rel:"a"===s?o:void 0,onClick:u,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),u(e))}},c]}let o=s.forwardRef((e,s)=>{let{as:o,disabled:r}=e,n=function(e,s){if(null==e)return{};var a={};for(var t in e)if(({}).hasOwnProperty.call(e,t)){if(s.indexOf(t)>=0)continue;a[t]=e[t]}return a}(e,t),[i,{tagName:d}]=l(Object.assign({tagName:o,disabled:r},n));return(0,a.jsx)(d,Object.assign({},n,i,{ref:s}))});o.displayName="Button";let r=o},392373,e=>{"use strict";e.s(["default",()=>n]);var s=e.i(264458),a=e.i(622610),t=e.i(879487),l=e.i(464079),o=e.i(391166);let r=a.forwardRef((e,a)=>{let{as:r,bsPrefix:n,variant:i="primary",size:d,active:c=!1,disabled:u=!1,className:m,..._}=e,g=(0,l.useBootstrapPrefix)(n,"btn"),[h,{tagName:y}]=(0,t.useButtonProps)({tagName:r,disabled:u,..._});return(0,o.jsx)(y,{...h,..._,ref:a,disabled:u,className:(0,s.default)(m,g,c&&"active",i&&"".concat(g,"-").concat(i),d&&"".concat(g,"-").concat(d),_.href&&u&&"disabled")})});r.displayName="Button";let n=r},354926,e=>{"use strict";e.s(["AuthProvider",()=>i,"useAuth",()=>n]);var s=e.i(391166),a=e.i(622610),t=e.i(375248),l=e.i(250503),o=e.i(205796);let r=a.default.createContext();function n(){return a.default.useContext(r)}function i(e){let{children:n}=e,i=(0,l.useDispatch)(),[d,c]=(0,a.useState)(),[u,m]=(0,a.useState)(!1),[_,g]=(0,a.useState)(),[h,y]=(0,a.useState)(!0),[f,v]=(0,a.useState)(!1),[j,p]=(0,a.useState)({}),x=async()=>{y(!0),await (0,t.logout)(),y(!1)},w=async(e,s)=>{try{v(!0);let a=await (0,t.signIn)(e,s);return I(a.user)}
1catch(e){throw v(!1),Error(t.errorCodes[e.code]||e.message)}},P=async e=>{try{v(!0);let s=await (0,t.popup)(e),a=await (0,t.getDocument)("users",s.user.uid);return a||(a={name:s.user.displayName,email:s.user.email||"",phone:s.user.phone||"",emailVerified:!0,permissions:{fundraiser:!0},signup:!1},s.user.photoURL&&(a.photoURL=s.user.photoURL),await (0,t.createDocument)({entity:"users",id:s.user.uid,merge:!0},a)),I(s.user)}catch(e){throw v(!1),Error(t.errorCodes[e.code]||e.message)}},b=async e=>{try{await (0,t.updateDocument)({entity:"users",id:_.uid},e),c({...d,...e})}catch(e){throw Error(t.errorCodes[e.code]||e.message)}},M=async e=>{m(!0);let s=null;try{let a=await (0,t.createAccount)(e.email,e.password);try{s=a.user,delete e.password;let l=await (0,t.createDocument)({entity:"users",id:a.user.uid,merge:!0},e);return m(!1),l}catch(s){throw e.password&&delete e.password,await (0,t.createDocument)({entity:"signup_errors"},{data:e,error:s.message}),Error("There was an issue creating your account. Please try again.")}}catch(a){if(m(!1),s)try{await (0,t.deleteAccount)(s)}catch(s){throw e.password&&delete e.password,await (0,t.createDocument)({entity:"signup_errors"},{data:e,error:s.message}),Error("There was an issue creating your account. Please try again.")}throw Error(t.errorCodes[a.code]||a.message)}},N=async e=>{try{await (0,t.emailUpdate)(_,e),await (0,t.updateDocument)({entity:"users",id:_.uid},{email:e})}catch(e){throw Error(t.errorCodes[e.code]||e.message)}c({...d,email:e})},k=async e=>{try{await (0,t.passwordUpdate)(_,e)}catch(e){throw Error(t.errorCodes[e.code]||e.message)}},I=async e=>{try{let s=await (0,t.getDocument)("users",e.uid);if(!s){c(null),y(!1);return}if(!s.permissions||!s.permissions.fundraiser){p({wrongType:!0}),g(null),c(null),await (0,t.logout)(),v(!1),y(!1);return}c({...s,uid:e.uid}),y(!1)}catch(e){g(null),c(null),v(!1),y(!1)}};return(0,a.useEffect)(()=>{h||i((0,o.setAuthing)(2))},[h,i]),(0,a.useEffect)(()=>(i((0,o.setAuthing)(1)),(0,t.authStateChanged)(e=>{e?(g(e),I(e)):(g(null),c(null),y(!1),i((0,o.setAuthing)(2)))})),[i]),(0,s.jsx)(r.Provider,{value:{currentUser:_,user:d,addAccount:M,signOut:x,logIn:w,socialLogin:P,loading:h,changeEmail:N,changePassword:k,error:j,loggingIn:f,adding:u,setLoggingIn:v,completeProfile:b},children:n})}},890080,e=>{"use strict";e.s(["default",()=>r]);var s=e.i(622610),a=e.i(250503),t=e.i(354926),l=e.i(144831),o=e.i(327012);function r(){let e=(0,t.useAuth)(),r=(0,a.useDispatch)();return(0,s.useEffect)(()=>{e.loading||(r((0,l.setUser)(e.user)),r((0,o.setUser)(e.user)),r((0,l.setCurrentUser)(e.currentUser)))},[e.user,e.currentUser,e.loading,r]),null}},163911,e=>{e.v("/_next/static/media/logo.fcec586d.png")},842839,e=>{e.v("/_next/static/media/ds-logo.c866e9cb.svg")},169986,e=>{"use strict";e.s(["default",()=>s]);let s={src:e.i(163911).default,width:262,height:108,blurWidth:8,blurHeight:3,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAYAAACuyE5IAAAAbklEQVR42gFjAJz/AFpZWVU7Ojo3CQkJCQkJCQgNDQ0MDQ0NDAoKCgkICAgHAJKSkox5eXlzfXx8d3Z2dm+BgYF6fn19dn5+fnhrampjADg4ODVTU1NPYGBgXDk5OTVCQkI+QUFBPT08PDk6Ojo2szga7mi+1EMAAAAASUVORK5CYII="}},92864,e=>{e.v({addIndex:"styles-module-scss-module__jPM-4a__addIndex",andPizzaHeader:"styles-module-scss-module__jPM-4a__andPizzaHeader",andPizzaHeaderSolid:"styles-module-scss-module__jPM-4a__andPizzaHeaderSolid",andPizzaItBottomText:"styles-module-scss-module__jPM-4a__andPizzaItBottomText",andPizzaItContainer:"styles-module-scss-module__jPM-4a__andPizzaItContainer",andPizzaItContent:"styles-module-scss-module__jPM-4a__andPizzaItContent",andPizzaItImg:"styles-module-scss-module__jPM-4a__andPizzaItImg",andPizzaItLeft:"styles-module-scss-module__jPM-4a__andPizzaItLeft",andPizzaItRight:"styles-module-scss-module__jPM-4a__andPizzaItRight",andPizzaItText:"styles-module-scss-module__jPM-4a__andPizzaItText",andPizzaItTickBox:"styles-module-scss-module__jPM-4a__andPizzaItTickBox",andPizzaItTickItem:"styles-module-scss-module__jPM-4a__andPizzaItTickItem",andPizzaItTickList:"styles-module-scss-module__jPM-4a__andPizzaItTickList",andPizzaItTickListWrong:"styles-module-scss-module__jPM-4a__andPizzaItTickListWrong",collapse:"styles-module-scss-module__jPM-4a__collapse",collapsing:"styles-module-scss-module__jPM-4a__collapsing",container:"styles-module-scss-module__jPM-4a__container",earningsBg:"styles-module-scss-module__jPM-4a__earningsBg",earningsBottom:"styles-module-scss-module__jPM-4a__earningsBottom",earningsContent:"styles-module-scss-module__jPM-4a__earningsContent",earningsGrid:"styles-module-scss-module__jPM-4a__earningsGrid",earningsHead:"styles-module-scss-module__jPM-4a__earningsHead",earningsImage:"styles-module-scss-module__jPM-4a__earningsImage",earningsImageHolder:"styles-module-scss-module__jPM-4a__earningsImageHolder",earningsList:"styles-module-scss-module__jPM-4a__earningsList",earningsSection:"styles-module-scss-module__jPM-4a__earningsSection",earningsTier:"styles-module-scss-module__jPM-4a__earningsTier",faqBg:"styles-module-scss-module__jPM-4a__faqBg",faqGrid:"styles-module-scss-module__jPM-4a__faqGrid",faqHeading:"styles-module-scss-module__jPM-4a__faqHeading",faqHolder:"styles-module-scss-module__jPM-4a__faqHolder",faqSection:"styles-module-scss-module__jPM-4a__faqSection",footer
1:"styles-module-scss-module__jPM-4a__footer",footerAbout:"styles-module-scss-module__jPM-4a__footerAbout",footerLogo:"styles-module-scss-module__jPM-4a__footerLogo",footerLower:"styles-module-scss-module__jPM-4a__footerLower",footerLowerInner:"styles-module-scss-module__jPM-4a__footerLowerInner",footerNav:"styles-module-scss-module__jPM-4a__footerNav",footerNavLink:"styles-module-scss-module__jPM-4a__footerNavLink",footerUpper:"styles-module-scss-module__jPM-4a__footerUpper",footerUpperInner:"styles-module-scss-module__jPM-4a__footerUpperInner",galleryImage:"styles-module-scss-module__jPM-4a__galleryImage",galleryItem:"styles-module-scss-module__jPM-4a__galleryItem",galleryItemFirst:"styles-module-scss-module__jPM-4a__galleryItemFirst",galleryList:"styles-module-scss-module__jPM-4a__galleryList",gallerySection:"styles-module-scss-module__jPM-4a__gallerySection",guidelineItem:"styles-module-scss-module__jPM-4a__guidelineItem",guidelinesContent:"styles-module-scss-module__jPM-4a__guidelinesContent",guidelinesHeader:"styles-module-scss-module__jPM-4a__guidelinesHeader",guidelinesIcon:"styles-module-scss-module__jPM-4a__guidelinesIcon",guidelinesList:"styles-module-scss-module__jPM-4a__guidelinesList",guidelinesSection:"styles-module-scss-module__jPM-4a__guidelinesSection",guidelinesTitle:"styles-module-scss-module__jPM-4a__guidelinesTitle",headerActions:"styles-module-scss-module__jPM-4a__headerActions",headerActionsMobile:"styles-module-scss-module__jPM-4a__headerActionsMobile",headerPadding:"styles-module-scss-module__jPM-4a__headerPadding",heroButton:"styles-module-scss-module__jPM-4a__heroButton",heroGrid:"styles-module-scss-module__jPM-4a__heroGrid",heroHeading:"styles-module-scss-module__jPM-4a__heroHeading",heroHeadingHighlight:"styles-module-scss-module__jPM-4a__heroHeadingHighlight",heroImageHolder:"styles-module-scss-module__jPM-4a__heroImageHolder",heroRight:"styles-module-scss-module__jPM-4a__heroRight",heroSection:"styles-module-scss-module__jPM-4a__heroSection",hiwBody:"styles-module-scss-module__jPM-4a__hiwBody",hiwBox:"styles-module-scss-module__jPM-4a__hiwBox",hiwContent:"styles-module-scss-module__jPM-4a__hiwContent",hiwHeading:"styles-module-scss-module__jPM-4a__hiwHeading",hiwIcon:"styles-module-scss-module__jPM-4a__hiwIcon",hiwIconHolder:"styles-module-scss-module__jPM-4a__hiwIconHolder",hiwItem:"styles-module-scss-module__jPM-4a__hiwItem",hiwList:"styles-module-scss-module__jPM-4a__hiwList",hiwSection:"styles-module-scss-module__jPM-4a__hiwSection",imageTextBottom:"styles-module-scss-module__jPM-4a__imageTextBottom",imageTextCopy:"styles-module-scss-module__jPM-4a__imageTextCopy",imageTextGrid:"styles-module-scss-module__jPM-4a__imageTextGrid",imageTextReverse:"styles-module-scss-module__jPM-4a__imageTextReverse",imageTextSection:"styles-module-scss-module__jPM-4a__imageTextSection",imageWrap:"styles-module-scss-module__jPM-4a__imageWrap",layoutContentInset:"styles-module-scss-module__jPM-4a__layoutContentInset",layoutContentShell:"styles-module-scss-module__jPM-4a__layoutContentShell",menuPanel:"styles-module-scss-module__jPM-4a__menuPanel",menuPanelOpen:"styles-module-scss-module__jPM-4a__menuPanelOpen",navContent:"styles-module-scss-module__jPM-4a__navContent",navInside:"styles-module-scss-module__jPM-4a__navInside",navInsideContent:"styles-module-scss-module__jPM-4a__navInsideContent",navItem:"styles-module-scss-module__jPM-4a__navItem",navLink:"styles-module-scss-module__jPM-4a__navLink",navLinkActive:"styles-module-scss-module__jPM-4a__navLinkActive",navLinkText:"styles-module-scss-module__jPM-4a__navLinkText",navList:"styles-module-scss-module__jPM-4a__navList",navbar:"styles-module-scss-module__jPM-4a__navbar",navbarBrand:"styles-module-scss-module__jPM-4a__navbarBrand",navbarCollapse:"styles-module-scss-module__jPM-4a__navbarCollapse",navbarInside:"styles-module-scss-module__jPM-4a__navbarInside",navbarToggler:"styles-module-scss-module__jPM-4a__navbarToggler",navbarTogglerCollapsed:"styles-module-scss-module__jPM-4a__navbarTogglerCollapsed",navbarTogglerExpanded:"styles-module-scss-module__jPM-4a__navbarTogglerExpanded",navbarTogglerIcon:"styles-module-scss-module__jPM-4a__navbarTogglerIcon",pageRoot:"styles-module-scss-module__jPM-4a__pageRoot",poweredBy:"styles-module-scss-module__jPM-4a__poweredBy",poweredByBlock:"styles-module-scss-module__jPM-4a__poweredByBlock",poweredByLogo:"styles-module-scss-module__jPM-4a__poweredByLogo",primaryButton:"styles-module-scss-module__jPM-4a__primaryButton",rowReverse:"styles-module-scss-module__jPM-4a__rowReverse",scrollDown:"styles-module-scss-module__jPM-4a__scrollDown",shareBody:"styles-module-scss-module__jPM-4a__shareBody",shareButtonSpacing:"styles-module-scss-module__jPM-4a__shareButtonSpacing",shareHero:"styles-module-scss-module__jPM-4a__shareHero",shareWidget:"styles-module-scss-module__jPM-4a__shareWidget",show:"styles-module-scss-module__jPM-4a__show",tickBox:"styles-module-scss-module__jPM-4a__tickBox",t
1ickItem:"styles-module-scss-module__jPM-4a__tickItem",tickList:"styles-module-scss-module__jPM-4a__tickList",tickListWrong:"styles-module-scss-module__jPM-4a__tickListWrong",toggleText:"styles-module-scss-module__jPM-4a__toggleText",toggleTextClose:"styles-module-scss-module__jPM-4a__toggleTextClose",toggleTextMenu:"styles-module-scss-module__jPM-4a__toggleTextMenu"})},624979,e=>{"use strict";e.s(["default",()=>r]);var s=e.i(391166),a=e.i(622610),t=e.i(723471),l=e.i(169986),o=e.i(92864);let r=e=>{let[r,n]=a.default.useState(!1),i=e.page?e.page:"home",d=(0,t.usePathname)()||"/";a.default.useEffect(()=>{if("home"!==i)return void document.body.classList.remove("fixed");let e=()=>{window.scrollY>=10?document.body.classList.add("fixed"):document.body.classList.remove("fixed")};return e(),window.addEventListener("scroll",e,{passive:!0}),()=>{window.removeEventListener("scroll",e),document.body.classList.remove("fixed")}},[i]),a.default.useEffect(()=>{if(!r)return;let e=()=>n(!1);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[r]);let c="/"===d,u="home"!==i,m="".concat(o.andPizzaHeader," ").concat(!c||u?o.andPizzaHeaderSolid:""," ").concat(u?"position-static":"");return(0,s.jsx)("header",{className:m,"data-page":i,children:(0,s.jsx)("div",{className:o.container,children:(0,s.jsx)("nav",{className:o.navbar,"aria-label":"Primary",children:(0,s.jsxs)("div",{className:o.navInside,children:[(0,s.jsx)("a",{className:o.navbarBrand,href:c?"https://www.andpizza.com/":"/",target:c?"_blank":"_self",rel:c?"noreferrer":void 0,children:(0,s.jsx)("img",{src:l.default.src,alt:"andPizza"})}),(0,s.jsxs)("button",{className:"".concat(o.navbarToggler," ").concat(r?o.navbarTogglerExpanded:""," ").concat(r?"":o.navbarTogglerCollapsed),"data-expanded":r?"true":"false",type:"button","aria-expanded":r,"aria-controls":"andPizzaNav","aria-label":"Toggle navigation",onClick:e=>{e&&e.preventDefault(),n(!r)},children:[(0,s.jsx)("span",{className:"".concat(o.toggleText," ").concat(o.toggleTextClose),children:"Close"}),(0,s.jsx)("span",{className:o.navbarTogglerIcon,"aria-hidden":"true"})]}),(0,s.jsx)("div",{id:"andPizzaNav","data-open":r?"true":"false",className:"".concat(o.menuPanel," ").concat(r?o.menuPanelOpen:""),children:(0,s.jsxs)("div",{className:o.navContent,children:[(0,s.jsxs)("ul",{className:o.navList,children:[(0,s.jsx)("li",{className:o.navItem,children:(0,s.jsx)("a",{className:o.navLink,href:"/",onClick:()=>n(!1),children:(0,s.jsx)("span",{className:o.navLinkText,children:"Home"})})}),(0,s.jsx)("li",{className:o.navItem,children:(0,s.jsx)("a",{className:o.navLink,href:"/login",onClick:()=>n(!1),children:(0,s.jsx)("span",{className:o.navLinkText,children:"Login"})})})]}),(0,s.jsx)("div",{className:"".concat(o.headerActionsMobile," ").concat(o.navInsideContent),children:(0,s.jsx)("a",{href:"/new-request",className:"".concat(o.primaryButton," ").concat(o.heroButton),onClick:()=>n(!1),children:"Book Now"})}),(0,s.jsx)("div",{className:"account-footer d-block d-xl-none position-absolute start-0 bottom-0 bg-light pb-4 pt-4 w-100 bg-dark text-center",children:(0,s.jsxs)("ul",{className:"navbar-nav gap-3 mb-0",children:[(0,s.jsx)("li",{className:"nav-item ".concat(o.navItem),children:(0,s.jsx)("a",{target:"_blank",href:"https://www.andpizza.com/terms/",rel:"noreferrer",className:"nav-link",onClick:()=>n(!1),children:"Terms & Conditions"})}),(0,s.jsx)("li",{className:"nav-item ".concat(o.navItem),children:(0,s.jsx)("a",{target:"_blank",href:"https://www.andpizza.com/privacy-policy/",rel:"noreferrer",className:"nav-link",onClick:()=>n(!1),children:"Privacy Policy"})}),(0,s.jsxs)("li",{className:"nav-item ".concat(o.navItem," ").concat(o.poweredBy),children:[(0,s.jsx)("span",{children:"Powered by"}),(0,s.jsx)("a",{target:"_blank",href:"https://www.donationscout.com",className:"nav-link",rel:"noreferrer",children:"DonationScout"})]})]})})]})}),(0,s.jsx)("div",{className:o.headerActions,children:(0,s.jsx)("a",{href:"/new-request",className:o.primaryButton,children:"Book Now"})})]})})})})}},362578,e=>{"use strict";e.s(["default",()=>r],362578);var s=e.i(391166),a=e.i(622610),t=e.i(169986);let l={src:e.i(842839).default,width:124,height:18,blurWidth:0,blurHeight:0};var o=e.i(92864);let r=()=>{let[e,r]=a.default.useState("/");a.default.useEffect(()=>{r(window.location.pathname)},[]);let n="/"===e;return(0,s.jsxs)("footer",{className:o.footer,children:[(0,s.jsx)("div",{className:o.footerUpper,children:(0,s.jsx)("div",{className:o.container,children:(0,s.jsx)("div",{className:o.footerUpperInner,children:(0,s.jsxs)("div",{className:o.footerAbout,children:[(0,s.jsx)("h2",{children:"// ABOUT &PIZZA"}),(0,s.jsx)("p",{children:"&pizza is a fast-casual pizza brand built on bold flavor, personal expression, and community vibes. Founded in Washington, DC, we make every pie fresh to order with quality ingredients and a whole lot of personality. Our shops reflect the neighborhoods we're part of, and our people lead with passion. This isn't just pizza - it's a movement, and you're invited."})]})})})}),(0,s.jsx)("div",{className:o.footerLower,children:(0,s.jsx)("div",{className:o.container,children:(0,s.jsxs)("div",{className:o.footerLowerInner,children:[(0,s.jsx)("a",{href:n?"https://www.andpizza.com/":"/",className:o.footerLogo,target:n?"_blank":"_self",rel:n?"noreferrer":void 0,children:(0,s.jsx)("img",{src:t.default.src,alt:"andPizza"})}),(0,s.jsx)("nav",{"aria-label":"Footer",children:(0,s.jsxs)("div",{className:o.footerNav,children:[(0,s.jsx)("a",{className:o.footerNavLink,href:"/locations",children:"Locations"}),(0,s.jsx)("a",{className:o.footerNavLink,href:"/",children:"Home"}),(0,s.jsx)("a",{className:o.footerNavLink,href:"/login",children:"Login"})]})}),(0,s.jsxs)("div",{className:o.poweredByBlock,children:[(0,s.jsx)("span",{children:"Powered by"}),(0,s.jsx)("a",{href:"https://www.donationscout.com",target:"_blank",rel:"noreferrer","aria-label":"DonationScout",children:(0,s.jsx)("img",{className:o.poweredByLogo,src:l.src,alt:"DonationScout"})})]})]})})})]})}},309620,e=>{e.v({containerFluid:"login-module-scss-module__F9QPiW__containerFluid",orDivider:"login-module-scss-module__F9QPiW__orDivider"})},990974,e=>{"use strict";e.s(["default",()=>c]);var s=e.i(391166),a=e.i(622610),t=e.i(354926),l=e.i(890080),o=e.i(962575),r=e.i(624979),n=e.i(362578),i=e.i(92864);let d=e=>{let{children:l}=e,n=(0,t.useAuth)(),[i,d]=(0,a.useState)(!0);return((0,a.useEffect)(()=>
1{if(!n.loading){if(n.currentUser&&n.user)return void window.location.replace("/upcoming-events");d(!1)}},[n.loading,n.currentUser,n.user]),n.loading||i)?(0,s.jsx)(o.default,{}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.default,{static:!0,page:"login"}),l]})};function c(e){let{children:a}=e;return(0,s.jsxs)(t.AuthProvider,{children:[(0,s.jsx)(l.default,{}),(0,s.jsxs)(d,{children:[(0,s.jsx)("div",{className:i.layoutContentShell,children:(0,s.jsx)("div",{className:i.layoutContentInset,children:a})}),(0,s.jsx)(n.default,{})]})]})}},960913,e=>{"use strict";e.s(["default",()=>m],960913);var s=e.i(391166),a=e.i(990974),t=e.i(622610),l=e.i(464585),o=e.i(354926),r=e.i(363485),n=e.i(165009),i=e.i(949783),d=e.i(309620);let c=()=>{let e=(0,o.useAuth)(),[a,c]=(0,t.useState)(!1),[u,m]=(0,t.useState)(""),[_,g]=(0,t.useState)(""),[h,y]=(0,t.useState)(null),[f,v]=(0,t.useState)(!1),j=async()=>{y(null),c(!0);let s={emailLogin:u.trim(),passwordLogin:_.trim()},a=await (0,r.validateLogin)(s);if(a)y(a);else try{await e.logIn(u.trim(),_.trim())}catch(e){y({passwordLogin:e.message})}c(!1)},p=async s=>{try{await e.socialLogin(s)}catch(e){y({social:e.message})}};return(0,t.useEffect)(()=>{e.error&&Object.keys(e.error).length>0&&y(e.error)},[e.error]),(0,t.useEffect)(()=>{y(null),c(!1),v(!1)},[]),(0,s.jsx)("div",{className:"container",style:{paddingTop:"74px"},children:(0,s.jsx)("div",{className:"row",children:(0,s.jsxs)("div",{className:"col-md-12",children:[(0,s.jsx)("div",{className:"container text-center",children:(0,s.jsx)("h1",{children:f?"Forgot your password?":"Login to Account"})}),f?(0,s.jsx)(i.default,{onBack:()=>v(!1)}):(0,s.jsxs)("div",{className:"mx-auto",children:[(0,s.jsxs)("div",{className:"row mt-3 mb-3",children:[(0,s.jsx)("div",{className:"col-12 mb-2 mb-md-0 col-md-6",children:(0,s.jsxs)(n.default,{className:"w-100",onClick:()=>p("facebook"),children:[(0,s.jsx)("i",{className:"bi-facebook me-2"}),"Log in with Facebook"]})}),(0,s.jsx)("div",{className:"col-12 col-md-6",children:(0,s.jsxs)(n.default,{className:"w-100",onClick:()=>p("google"),children:[(0,s.jsx)("i",{className:"bi-google me-2"}),"Log in with Google"]})})]}),(null==h?void 0:h.social)&&(0,s.jsx)("div",{className:"alert alert-danger mb-3",children:null==h?void 0:h.social}),(0,s.jsx)("div",{className:"".concat(d.orDivider," mt-4 mb-4"),children:(0,s.jsx)("span",{children:"Or log in with email"})}),(0,s.jsxs)("div",{className:"mb-3 w-100",children:[(0,s.jsx)("label",{htmlFor:"yourEmail",className:"form-label",children:"Email Address"}),(0,s.jsx)("input",{type:"text",className:"form-control".concat((null==h?void 0:h.emailLogin)?" is-invalid":""),id:"yourEmail",value:u,onKeyDown:e=>{"Enter"===e.key&&j()},onChange:e=>m(e.target.value)}),(null==h?void 0:h.emailLogin)&&(0,s.jsx)("div",{className:"invalid-feedback",children:null==h?void 0:h.emailLogin})]}),(0,s.jsxs)("div",{className:"mb-3 w-100",children:[(0,s.jsx)("label",{htmlFor:"yourPassword",className:"form-label",children:"Password"}),(0,s.jsx)("input",{type:"password",className:"form-control".concat((null==h?void 0:h.passwordLogin)?" is-invalid":""),id:"yourPassword",value:_,onKeyDown:e=>{"Enter"===e.key&&j()},onChange:e=>g(e.target.value)}),(null==h?void 0:h.passwordLogin)&&(0,s.jsx)("div",{className:"invalid-feedback",children:null==h?void 0:h.passwordLogin})]}),(null==h?void 0:h.wrongType)&&(0,s.jsxs)("div",{className:"alert alert-danger mt-4",children:["The email is associated with a restaurant user account. Please login at"," ",(0,s.jsx)("a",{href:"https://manage.donationscout.com",children:"https://manage.donationscout.com"}),"."]}),(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsxs)(n.default,{className:"w-100",onClick:()=>j(),children:["Login",a&&(0,s.jsx)(l.Spinner,{size:"sm",className:"ms-2"})]})}),(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)("a",{href:"javascript:void(0)",className:"btn-link text-primary",onClick:()=>v(!0),children:"Forgot your password?"})})]})]})})})},u=()=>(0,s.jsx)(c,{});function m(){return(0,s.jsx)(a.default,{children:(0,s.jsx)(u,{})})}}]);

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.