PageSourceSearch

https://www.tropicalsmoothiecafe.com/_next/static/chunks/3nz5zgph_x92o.js

js tropicalsmoothiecafe.com collected 2026-09-24 09:43:13 UTC 24,449 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,204709,e=>{"use strict";e.s(["FEATURE_FLAG_CAFE_DELIVERY_ADDRESS_API",0,"enabled_cafe_delivery_address_api","FEATURE_FLAG_CAFE_LOCATION_SEARCH_API",0,"enabled_cafe_location_search_api","FEATURE_FLAG_CAFE_PICKUP_LOCATION_API",0,"enabled_cafe_pickup_location_api","FEATURE_FLAG_CAFE_RECENT_ORDERS_API",0,"enabled_cafe_recent_orders_api","FEATURE_FLAG_ENABLE_APPLE_LOGIN",0,"enabled_apple_login","FEATURE_FLAG_ENABLE_BIRTHDAY",0,"enabled_birthday","FEATURE_FLAG_ENABLE_FACEBOOK_LOGIN",0,"enabled_facebook_login","FEATURE_FLAG_ENABLE_RECAPTCHA",0,"enabled_recaptcha","FEATURE_FLAG_FAVORITE_PRODUCT_API",0,"enabled_favorite_product_api","FEATURE_FLAG_MENU_CATEGORIES_CMS_API",0,"enabled_menu_categories_cms_api","FEATURE_FLAG_MENU_PRODUCTS_API",0,"enabled_menu_products_api","FEATURE_FLAG_MENU_QUICK_ADD_TO_BAG",0,"enabled_menu_quick_add_to_bag","FEATURE_FLAG_SIGNUP_WELCOME_MENU_CATEGORY",0,"signup_welcome_menu_category"])},912011,e=>{"use strict";var a=e.i(271645),t=e.i(251438),r=e.i(340290),o=e.i(597585);let i="enabled_braze_home_content",s=e=>{let a=o.BUNDLED_APP_CONFIG[e];if(null==a)return!0;if("boolean"==typeof a)return a;if("string"==typeof a){let e=a.trim().toLowerCase();if("true"===e||"1"===e)return!0;if("false"===e||"0"===e)return!1}return!0},n=e=>!e.includes("braze")&&e.endsWith("_api"),l=async(e,a)=>!e.includes("braze")||e===i||await (0,t.getRemoteConfigFlag)(i)?a:(r.Logger.warn(`[FeatureFlag] Master kill-switch activated (home folder). Braze section '${e}' showing fallback content.`,{flag:e,masterSwitch:!1}),!1),d=new Map;e.s(["useFeatureFlag",0,e=>{let o=d.get(e),[c,u]=(0,a.useState)(o??!1),[g,m]=(0,a.useState)(void 0===o);return(0,a.useEffect)(()=>{if(d.has(e))return;let a=!0;return(async()=>{try{if(!await (0,t.initializeFirebaseRemoteConfig)()){r.Logger.warn(`[FeatureFlag] Firebase Remote Config initialization unavailable for '${e}'. Using default value.`);let t=s(e);d.set(e,t),a&&u(t);return}let o=await (0,t.getRemoteConfigFlag)(e);r.Logger.info(`[FeatureFlag] Fetched flag '${e}' from Remote Config:`,o),o=await l(e,o),((e,a)=>{if(a)return n(e)?r.Logger.info(`[FeatureFlag] Flag '${e}' enabled (order-page-api). API section visible.`):e.includes("braze")?r.Logger.info(`[FeatureFlag] Flag '${e}' enabled (home). Using Braze content.`):r.Logger.info(`[FeatureFlag] Flag '${e}' enabled.`);return n(e)?r.Logger.warn(`[FeatureFlag] Flag '${e}' disabled (order-page-api). API section hidden.`):e===i?r.Logger.warn(`[FeatureFlag] Master kill-switch '${e}' is disabled (home folder). All Braze sections showing fallback.`):e.includes("braze")?r.Logger.warn(`[FeatureFlag] Flag '${e}' disabled (home). Showing fallback content.`):r.Logger.warn(`[FeatureFlag] Flag '${e}' disabled.`)})(e,o),d.set(e,o),a&&u(o)}catch(o){r.Logger.warn(`[FeatureFlag] Error resolving flag '${e}' (Remote Config init/fetch failed). Using default value.`,o);let t=s(e);d.set(e,t),a&&u(t)}finally{a&&m(!1)}})(),()=>{a=!1}},[e]),{value:c,isLoading:g}}])},972024,e=>{"use strict";var a=e.i(271645),t=e.i(264760);e.s(["useHideHeaderFooter",0,function(){let{setShowHeader:e,setShowFooter:r}=(0,t.useLayoutContext)();(0,a.useLayoutEffect)(()=>(e(!1),r(!1),()=>{e(!0),r(!0)}),[e,r])}])},951091,e=>{"use strict";e.s(["ValidationErrors",0,{EMAIL_REQUIRED:"Email is required",EMAIL_INVALID:"Must be a valid email address",PASSWORD_REQUIRED:"Password is required",PASSWORD_WEAK:"Password must be at least 8 characters with uppercase, lowercase, number, and special character",PASSWORD_CONFIRM_REQUIRED:"Password confirmation is required",PASSWORD_MISMATCH:"Passwords do not match",FIRST_NAME_REQUIRED:"First name is required",LAST_NAME_REQUIRED:"Last name is required",PHONE_INVALID:"Please enter a valid phone number",BIRTHDAY_INVALID:"Birthday must be in YYYY-MM-DD format",TERMS_REQUIRED:"You must accept the terms and conditions"}])},790392,e=>{"use strict";var a=e.i(843476),t=e.i(618566);e.s(["default",0,function(){return"/"===(0,t.usePathname)()?null:(0,a.jsxs)("div",{className:"flex min-h-screen w-full items-center justify-center",role:"status","aria-live":"polite","aria-label":"Loading",children:[(0,a.jsx)("img",{src:"/assets/images/loader.png",alt:"Loading",className:"h-40 w-40 animate-spin object-contain"}),(0,a.jsx)("span",{className:"sr-only",children:"Loading..."})]})}])},611994,e=>{"use strict";var a=e.i(843476),t=e.i(271645);let r=e=>{var r,o;let{label:i,labelPosition:s,error:n,info:l,errorIconSrc:d,errorTextClassName:c="",infoIconSrc:u,wrapperClassName:g="",id:m,disabled:p,className:f="",insideLabelClassName:E="",containerHeight
1ClassName:_="h-56",maskIconSrc:A,unmaskIconSrc:h,toggleAriaLabel:w="password",...b}=e,[x,L]=(0,t.useState)(!1),[v,y]=(0,t.useState)(!1),[N,F]=(0,t.useState)(String(b.value??b.defaultValue??"").length>0),C=!!A,I=(r=b.type,C?v?"text":"password":r),P=!I||["text","email","tel","search","url","password"].includes(I)?"overflow-hidden text-ellipsis whitespace-nowrap":"",S=(o=b.value,void 0===o?N:null!==o&&(!("string"==typeof o||Array.isArray(o))||o.length>0)),T=x||S,R=!!n,O=!!l,M=m?`${m}-error`:void 0,j=m?`${m}-info`:void 0,k=[b["aria-describedby"],R?M:void 0,!R&&O?j:void 0].filter(e=>!!(e&&e.trim().length>0)).flatMap(e=>e.split(/\s+/)).filter((e,a,t)=>t.indexOf(e)===a).join(" ")||void 0,U=!!R||b["aria-invalid"],D=e=>{L(!0),b.onFocus?.(e)},G=e=>{L(!1),b.onBlur?.(e)},B=e=>{F(e.target.value.length>0),b.onChange?.(e)},$={border:`var(--border-width-thin, 2px) solid ${R?"var(--color-error, #BF2A1F)":x?"var(--color-brand-support-default, #046E7E)":"#E2E2E2"}`,opacity:p?.6:1,cursor:p?"not-allowed":"text"},V=R?"text-[#BF2A1F]":"text-gray-500",Q="form-input-autofill",z=C&&(0,a.jsx)("button",{type:"button","aria-label":v?`Hide ${w}`:`Show ${w}`,onClick:()=>y(e=>!e),className:"absolute right-1 top-1/2 z-10 -translate-y-1/2 inline-flex h-11 w-11 items-center justify-center",children:(0,a.jsx)("img",{src:v?h??A:A,alt:"",className:"w-[24px] h-[24px]"})}),W=R&&(0,a.jsxs)("div",{className:"flex items-start gap-1.5","data-testid":"form-input-error",id:M,children:[d?(0,a.jsx)("img",{src:d,alt:"",className:"mt-0.5 w-16 h-16 shrink-0"}):null,(0,a.jsx)("span",{className:`font-secondary text-sm ${c}`,"data-testid":"form-input-error-text",style:c?void 0:{color:"#BF2A1F"},children:n})]}),H=!R&&O&&(0,a.jsxs)("div",{className:"flex items-start gap-1.5","data-testid":"form-input-info",id:j,children:[u?(0,a.jsx)("img",{src:u,alt:"",className:"mt-0.5 w-16 h-16 shrink-0"}):null,(0,a.jsx)("span",{className:"font-secondary text-sm","data-testid":"form-input-error-text",style:{color:"#6E6E6E",fontFamily:"Inter, sans-serif"},children:l})]});return"inside"===s?(0,a.jsxs)("div",{className:`flex flex-col ${g}`,"data-testid":"form-input-wrapper",children:[(0,a.jsxs)("label",{htmlFor:m,className:`relative block ${_} rounded-lg bg-white`,style:$,"data-testid":"form-input-container",children:[i&&(0,a.jsx)("span",{style:{top:"50%",left:"16px",transform:T?"translateY(-20px)":"translateY(-50%)",opacity:+!!T,fontSize:T?"16px":"14px",transition:"transform 80ms ease-out, opacity 80ms ease-out"},className:`absolute left-4 text-16 font-medium pointer-events-none ${V} ${E}`,"data-testid":"form-input-label",children:i}),(0,a.jsx)("input",{id:m,disabled:p,className:`bg-transparent outline-none text-gray-900 text-sm w-[80%] disabled:cursor-not-allowed ${Q} ${P} ${f}`,"data-testid":"form-input-field",style:{position:"absolute",top:"50%",left:"16px",right:C?"56px":"16px",fontSize:"16px",marginTop:T?"4px":"0",transform:T?"translateY(-4px)":"translateY(-50%)",transition:"transform 80ms ease-out"},...b,"aria-invalid":U,"aria-describedby":k,type:I,placeholder:T?"":b.placeholder??"",onFocus:D,onBlur:G,onChange:B}),z]}),H,W]}):(0,a.jsxs)("div",{className:`flex flex-col gap-1.5 ${g}`,"data-testid":"form-input-wrapper",children:[i&&(0,a.jsx)("label",{htmlFor:m,className:`text-sm font-medium ${V}`,"data-testid":"form-input-label",children:i}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{id:m,disabled:p,className:`px-4 py-3 outline-none rounded-lg text-sm bg-white disabled:bg-gray-100 disabled:cursor-not-allowed transition-all duration-150 w-full ${C?"pr-14":""} ${Q} ${P} ${f}`,style:$,"data-testid":"form-input-field",...b,"aria-invalid":U,"aria-describedby":k,type:I,onFocus:D,onBlur:G,onChange:B}),z]}),W]})};e.s(["FormInput",0,r,"default",0,r],611994)},354398,e=>{"use strict";var a=e.i(843476),t=e.i(207670);let r={large:"h-[var(--spacing-80)]",medium:"h-[var(--spacing-40)]",small:"h-[var(--spacing-24)]",none:"h-0"};e.s(["default",0,e=>{let{className:o="",spacing:i="none",style:s}=e;return(0,a.jsx)("div",{className:(0,t.default)("w-full shrink-0",r[i],o),style:s,"aria-hidden":"true"})}])},485212,e=>{"use strict";let a="auth_encrypted_current_credential";e.s(["clearEncryptedCurrentPassword",0,()=>{try{window.sessionStorage.removeItem(a)}catch{}},"getEncryptedCurrentPassword",0,()=>{try{let e=window.sessionStorage.getItem(a);if(!e||0===e.trim().length)return null;return e}catch{return null}},"setEncryptedCurrentPassword",0,e=>{try{if(!e||0===e.trim().length)return void window.sessionStorage.removeItem(a);window.sessionStorage.setItem(a,e)}catch{}}])},707617,e=>{"use strict";var a=e.i(843476);e.i(247167);var t=e.i(271645),r=e.i(618566),o=e.i(438067),i=e.i(340290),s=e.i(175364),n=e.i(470491),l=e.i(36841),d=e.i(354398),c=e.i(949661),u=e.i(611994);let g=e=>{let{title:r,emailLabel:o,emailValue:i,emailError:s,passwordLabel:g,passwordValue:m,passwordError:p,passwordEyeIcon:f,passwordClosedEyeIcon:E,errorIcon:_,onEmailFocus:A,onPasswordFocus:h,loginButton:w,facebookButton:b,facebookIcon:x,appleButton:L,appleIcon:v,forgotPassword:y,noAccount:N,joinNow:F,onEmailChange:C,onPasswordChange:I,onTogglePasswordVisibility:P,onLogin:S,onFacebookLogin:T,onAppleLogin:R,onForgotPassword:O,onSignup:M,showPassword:j=!1,isLoading:k=!1,loadingTarget:U,generalErrorTitle:D,generalError:G,captchaSlot:B}=e,[$,V]=(0,t.useState)(!1),Q=(0,t.useCallback)(()=>
1{if("u"<typeof document)return;let e=null;if(s?e="email":p?e="password":(D||G)&&(e="login-general-error-banner"),!e)return;let a=document.getElementById(e);a&&(a.scrollIntoView({behavior:"smooth",block:"center"}),a instanceof HTMLElement&&a.focus({preventScroll:!0}))},[s,p,D,G]);(0,t.useEffect)(()=>{$&&(s||p||D||G)&&(Q(),V(!1))},[$,s,p,D,G,Q]);let z=U??(k?"primary":null),W=null!==z,H="primary"===z,K="facebook"===z,q="apple"===z,Y=r.replace(/([a-z])([A-Z])/g,"$1 $2").trim(),X=r.trim(),Z=Y.match(/^(.*?\bTropic)\s*Rewards\s*Account\s*$/i),J=Z?.[1]?.trim()??(Y.includes("Rewards Account")?Y.replace(/\s*Rewards\s*Account\s*$/i,"").trim():Y),ee=/Rewards\s*Account\s*$/i.test(Y)?"Rewards Account":"";return(0,a.jsxs)("div",{className:"flex flex-col items-center w-full max-w-[512px] gap-[var(--spacing-16)]",children:[(0,a.jsx)("h1",{className:"text-center text-[20px] leading-[22px] min-[700px]:hidden",style:{color:"var(--color-content-primary, #1A1A1A)",fontFamily:'var(--font-family-primary, "Sway Display")',fontStyle:"normal",fontWeight:800},children:X}),(0,a.jsxs)("h1",{className:"hidden text-center text-[32px] leading-[var(--line-height-heading-tablet-lg)] lg:leading-[32px] min-[700px]:block",style:{color:"var(--color-content-primary, #1A1A1A)",fontFamily:'var(--font-family-primary, "Sway Dis
1play")',fontStyle:"normal",fontWeight:800},children:[(0,a.jsx)("span",{className:"block",children:J}),ee?(0,a.jsx)("span",{className:"block",children:ee}):null]}),(0,a.jsx)(c.AuthErrorBanner,{bannerId:"login-general-error-banner",iconSrc:"/assets/icons/error-close.svg",iconAlt:"Error",title:D??void 0,description:G??void 0}),(0,a.jsxs)("div",{className:"w-full flex flex-col gap-[var(--spacing-16)]",children:[(0,a.jsx)(u.FormInput,{id:"email",name:"email",type:"email",autoComplete:"email","aria-required":"true",wrapperClassName:"gap-[var(--spacing-8)]",label:o,labelPosition:"inside",insideLabelClassName:"font-secondary !text-[var(--font-size-sm)] !font-medium !leading-[20px]",placeholder:o,value:i,className:"font-secondary text-[var(--color-content-secondary)] placeholder:text-[var(--color-content-secondary)] !font-normal !text-[var(--font-size-md)] !leading-[22px]",onChange:e=>C?.(e.target.value),onBlur:A,error:s??void 0,errorIconSrc:_}),(0,a.jsx)(u.FormInput,{id:"password",name:"password",type:j?"text":"password",autoComplete:"current-password","aria-required":"true",label:g,labelPosition:"inside",insideLabelClassName:"font-secondary !text-[var(--font-size-sm)] !font-medium !leading-[20px]",wrapperClassName:"gap-[var(--spacing-8)]",placeholder:g,value:m,className:"font-secondary text-[var(--color-content-secondary)] placeholder:text-[var(--color-content-secondary)] !font-normal !text-[var(--font-size-md)] !leading-[22px]",onChange:e=>I?.(e.target.value),onBlur:h,error:p??void 0,errorIconSrc:_,maskIconSrc:f,unmaskIconSrc:E})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-[var(--spacing-12)] w-full mt-[var(--spacing-12)]",children:[(0,a.jsx)(n.default,{variant:"filled",color:"action",size:"md",className:`w-full transition-colors duration-150 disabled:cursor-not-allowed ${H?"disabled:opacity-100 bg-[#E2E2E2] hover:bg-[#E2E2E2]":""}`,style:{backgroundColor:H?"#E2E2E2":W?"var(--color-brand-action-default)":void 0,color:H?"#8F8F8F":"var(--color-content-primary-inverse)",fontFamily:'var(--font-family-primary, "Sway Dis
1play")'},onClick:e=>{V(!0),S?.(e)},disabled:W,children:H?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{src:"/assets/icons/button-loader.svg",alt:"","aria-hidden":"true",className:"w-20 h-20 animate-spin"}),(0,a.jsx)("span",{children:"Validating..."})]}):w}),T&&(0,a.jsxs)(n.default,{type:"button",size:"md",onClick:T,disabled:W,className:`relative w-full flex items-center justify-center ${K?"disabled:cursor-not-allowed disabled:opacity-100":""}`,style:{backgroundColor:"#0866ff",color:"#fff"},children:[(0,a.jsx)("img",{src:x,alt:"","aria-hidden":"true",className:"absolute left-[16px] size-[24px]"}),K?(0,a.jsxs)("span",{className:"inline-flex items-center gap-[var(--spacing-8)]",children:[(0,a.jsx)("img",{src:"/assets/icons/button-loader.svg",alt:"","aria-hidden":"true",className:"w-20 h-20 animate-spin"}),(0,a.jsx)("span",{children:"Validating..."})]}):b]}),R&&(0,a.jsx)(n.default,{type:"button",size:"md",onClick:R,disabled:W,className:`relative w-full flex items-center justify-center ${q?"disabled:cursor-not-allowed disabled:opacity-100":""}`,style:{backgroundColor:"#1a1a1a",color:"#fff"},children:q?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{src:"/assets/icons/button-loader.svg",alt:"","aria-hidden":"true",className:"absolute left-[16px] w-20 h-20 animate-spin"}),(0,a.jsx)("span",{children:"Validating..."})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{src:v,alt:"","aria-hidden":"true",className:"absolute left-[16px] size-[20px]"}),L]})})]}),(0,a.jsx)("div",{className:"font-primary flex justify-center w-full mt-[var(--spacing-8)]",children:(0,a.jsx)(l.default,{href:"#",onClick:e=>{e.preventDefault(),O?.()},className:"font-bold text-[var(--color-brand-action-default)] text-[var(--font-size-sm)] leading-[16px]",style:{textDecoration:"none",fontFamily:'var(--font-family-primary, "Sway Dis
1play")',fontStyle:"normal",fontWeight:700},children:y})}),B?(0,a.jsx)("div",{className:"flex justify-center w-full mt-[var(--spacing-8)]",children:B}):null,(0,a.jsx)(d.default,{className:"bg-[var(--color-border-default)] h-px w-full my-[var(--spacing-16)]","aria-hidden":"true"}),(0,a.jsxs)("footer",{className:"flex flex-col items-center w-full gap-[var(--spacing-8)]","aria-label":"Sign up information",children:[(0,a.jsx)("span",{className:"font-bold text-[var(--font-size-md)] text-[var(--color-content-primary)] text-center leading-[18px]",style:{fontFamily:'var(--font-family-primary, "Sway Display")',fontStyle:"normal",fontWeight:700},children:N}),(0,a.jsx)(l.default,{href:"#",onClick:e=>{e.preventDefault(),M?.()},style:{textDecoration:"none"},className:"font-primary font-bold text-[var(--color-brand-action-default)] text-[var(--font-size-sm)] leading-[16px]",children:F})]})]})};var m=e.i(779902),p=e.i(782104);let f=e=>{let t={title:e?.title??m.default.title,emailLabel:e?.emailLabel??m.default.emailLabel,emailValue:e?.emailValue??"",emailError:e?.emailError??"",passwordLabel:e?.passwordLabel??m.default.passwordLabel,passwordValue:e?.passwordValue??"",passwordError:e?.passwordError??"",passwordEyeIcon:e?.passwordEyeIcon??m.default.passwordEyeIcon,passwordClosedEyeIcon:e?.passwordClosedEyeIcon??m.default.passwordClosedEyeIcon,errorIcon:e?.errorIcon??m.default.errorIcon,loginButton:e?.loginButton??m.default.loginButton,facebookButton:e?.facebookButton??m.default.facebookButton,facebookIcon:e?.facebookIcon??m.default.facebookIcon,appleButton:e?.appleButton??m.default.appleButton,appleIcon:e?.appleIcon??m.default.appleIcon,forgotPassword:e?.forgotPassword??m.default.forgotPassword,noAccount:e?.noAccount??m.default.noAccount,joinNow:e?.joinNow??m.default.joinNow,onEmailChange:e?.onEmailChange,onEmailFocus:e?.onEmailFocus,onPasswordChange:e?.onPasswordChange,onPasswordFocus:e?.onPasswordFocus,onTogglePasswordVisibility:e?.onTogglePasswordVisibility,onLogin:e?.onLogin,onFacebookLogin:e?.onFacebookLogin,onAppleLogin:e?.onAppleLogin,onForgotPassword:e?.onForgotPassword,onSignup:e?.onSignup,showPassword:e?.showPassword,isLoading:e?.isLoading,loadingTarget:e?.loadingTarget,generalErrorTitle:e?.generalErrorTitle,generalError:e?.generalError,captchaSlot:e?.captchaSlot};return(0,a.jsx)(p.default,{children:(0,a.jsx)(g,{...t})})};e.i(152703);var E=e.i(29119),_=e.i(747886),A=e.i(951091);e.i(670357);var h=e.i(125264),w=e.i(549665),b=e.i(184480),x=e.i(474180),L=e.i(185994),v=e.i(455263),y=e.i(678351);e.i(542114);var N=e.i(320162),F=e.i(633221),C=e.i(790392),I=e.i(912011),P=e.i(204709),S=e.i(942208),T=e.i(13217),R=e.i(485212),O=e.i(687657);function M(){let e,n,l,d,c=(0,o.useAppDispatch)(),u=(0,r.useRouter)(),g=(0,r.useSearchParams)(),m=g?.get("redirect")??"",p=g?.get("forgotPasswordSuccess")??"",M=g?.get("forgotPasswordMessage")??"",{redirectAfterLogin:j,signupPath:k,forgotPasswordPath:U,previousPage:D}=(e=(0,O.isSafeInternalPath)(m)&&m!==S.ROUTES.HOME,n=S.ROUTES.HOME,e&&(n=m),l=encodeURIComponent(n),d=e?`/auth/signup?redirect=${l}`:"/auth/signup",{redirectAfterLogin:n,signupPath:d,forgotPasswordPath:e?`/auth/login/forgot-password?redirect=${l}`:"/auth/login/forgot-password",previousPage:e?m:(0,O.getPreviousPageFromReferrer)()}),G="6LeKN-wqAAAAANuZ05ujSTN3RvSQwyW2S2eKCJIj".trim()??"",{value:B}=(0,I.useFeatureFlag)(P.FEATURE_FLAG_ENABLE_RECAPTCHA),$=G.length>0&&B,[V,Q]=(0,t.useState)(""),[z,W]=(0,t.useState)(""),[H,K]=(0,t.useState)(!1),[q,Y]=(0,t.useState)(null),[X,Z]=(0,t.useState)({}),[J,ee]=(0,t.useState)(!1),[ea,et]=(0,t.useState)(null),[er,eo]=(0,t.useState)(!0),ei=(0,t.useRef)(!1),es=(0,t.useRef)(null),{value:en,isLoading:el}=(0,I.useFeatureFlag)(P.FEATURE_FLAG_ENABLE_APPLE_LOGIN),{value:ed,isLoading:ec}=(0,I.useFeatureFlag)(P.FEATURE_FLAG_ENABLE_FACEBOOK_LOGIN);(0,t.useEffect)(()=>{(0,h.logRewardsLoginScreenView)()},[]),(0,t.useEffect)(()=>{if(ei.current||"1"!==p)return;ei.current=!0;let e=M.trim().length>0?M:"Password reset instructions sent. Please check your email.";(0,T.showToast)(e,"success")},[M,p]),(0,t.useEffect)(()=>{el||i.Logger.info("[LoginPage] Apple login flag loaded:",{enabled:en,flagLoading:el})},[en,el]),(0,t.useEffect)(()=>{ec||i.Logger.info("[LoginPage] Facebook login flag loaded:",{enabled:ed,flagLoading:ec})}
1,[ed,ec]),(0,y.useFacebookSdkPreinitialize)(ed,"LoginPage"),(0,t.useEffect)(()=>{let e=globalThis.setTimeout(()=>{eo(!1)},350);return()=>{globalThis.clearTimeout(e)}},[]);let eu=e=>{K(e),e||Y(null)},eg=(e,a)=>{a.token&&(document.cookie=`auth_token=${a.token}; path=/; SameSite=Lax`);let t=a.email?.trim(),r="";t&&t.length>0?r=t:"email"===e&&(r=V.trim());let o=void 0===a.userId||null===a.userId?"":String(a.userId).trim(),i=o.length>0?o:void 0,s=a.firstName?.trim(),n=a.lastName?.trim();(0,h.logLoginEvent)({loginMethod:e,previousPage:D,...r?{email:r}:{},...i?{customerid:i}:{},...s?{firstName:s}:{},...n?{lastName:n}:{}}),u.push(j)},em=async e=>{e.preventDefault(),(0,N.trackAccountQMEvent)({eventName:F.ACCOUNT_QM_EVENT_NAMES.LOGIN_CLICKED,location:F.ACCOUNT_QM_LOCATIONS.LOGIN_PAGE,metadata:{timestamp:new Date().toISOString()}});let a={};if(V.trim()?(0,_.validateEmail)(V)||(a.email=A.ValidationErrors.EMAIL_INVALID):a.email=A.ValidationErrors.EMAIL_REQUIRED,(0,_.validatePasswordRequired)(z)||(a.password=A.ValidationErrors.PASSWORD_REQUIRED),Object.keys(a).length>0)return void Z(a);if($&&!ea)return void Z((0,L.getCaptchaRequiredError)());let t=s.CryptoManager.aesEncrypt(z);Y("primary"),await (0,x.executeAuthFlow)({dispatch:c,setErrors:Z,setIsLoading:eu,loginType:F.ACCOUNT_QM_EVENT_NAMES.LOGIN_API_FAILURE,qmLocation:F.ACCOUNT_QM_LOCATIONS.LOGIN_PAGE,attemptLogMessage:"[LoginPage] Attempting login",successLogMessage:"[LoginPage] Login successful",errorLogMessage:"[LoginPage] Login failed:",failureTitle:"Login failed",fallbackMessage:"Login failed. Please check your credentials and try again.",getAttemptMeta:()=>({email:V}),execute:async()=>(0,E.loginUser)(V,z),onResolved:e=>{(0,R.setEncryptedCurrentPassword)(t),eg("email",e)}})},ep=async()=>{(0,N.trackAccountQMEvent)({eventName:F.ACCOUNT_QM_EVENT_NAMES.FACEBOOK_CLICKED,location:F.ACCOUNT_QM_LOCATIONS.LOGIN_PAGE,metadata:{timestamp:new Date().toISOString()}}),Y("facebook"),await (0,x.executeAuthFlow)({dispatch:c,setErrors:Z,setIsLoading:eu,loginType:F.ACCOUNT_QM_EVENT_NAMES.FACEBOOK_API_FAILURE,qmLocation:F.ACCOUNT_QM_LOCATIONS.LOGIN_PAGE,attemptLogMessage:"[LoginPage] Attempting Facebook login",successLogMessage:"[LoginPage] Facebook login successful",errorLogMessage:"[LoginPage] Facebook login failed:",failureTitle:"Facebook login failed",fallbackMessage:"Facebook login failed. Please try again.",execute:async()=>{let e=await (0,w.getFacebookAccessToken)(),a=(0,w.getWebDeviceToken)();return(0,E.loginWithFacebookUser)(e,a)},getSuccessMeta:e=>({email:e.email}),onResolved:e=>{(0,R.clearEncryptedCurrentPassword)(),eg("facebook",e)}})},ef=async()=>{(0,N.trackAccountQMEvent)({eventName:F.ACCOUNT_QM_EVENT_NAMES.APPLE_CLICKED,location:F.ACCOUNT_QM_LOCATIONS.LOGIN_PAGE,metadata:{timestamp:new Date().toISOString()}}),Y("apple"),await (0,x.executeAuthFlow)({dispatch:c,setErrors:Z,setIsLoading:eu,loginType:F.ACCOUNT_QM_EVENT_NAMES.APPLE_API_FAILURE,qmLocation:F.ACCOUNT_QM_LOCATIONS.LOGIN_PAGE,attemptLogMessage:"[LoginPage] Attempting Apple login",successLogMessage:"[LoginPage] Apple login successful",errorLogMessage:"[LoginPage] Apple login failed:",failureTitle:"Apple login failed",fallbackMessage:"Apple login failed. Please try again.",execute:async()=>{let{accessToken:e,idToken:a}=await (0,b.getAppleAuthTokens)();return(0,E.loginWithAppleUser)(e,a)},getSuccessMeta:e=>({email:e.email}),onResolved:e=>{(0,R.clearEncryptedCurrentPassword)(),eg("apple",e)}})};return er?(0,a.jsx)(C.default,{}):(0,a.jsx)(f,{emailValue:V,passwordValue:z,showPassword:J,isLoading:H,loadingTarget:q,emailError:X.email,passwordError:X.password,generalErrorTitle:X.generalTitle,generalError:X.general,onEmailChange:e=>{Q(e),X.email&&Z(e=>({...e,email:""}))},onEmailFocus:()=>{V.trim()&&!(0,_.validateEmail)(V)&&Z(e=>({...e,email:A.ValidationErrors.EMAIL_INVALID}))},onPasswordChange:e=>{W(e),X.password&&Z(e=>({...e,password:""}))},onPasswordFocus:()=>{z&&!(0,_.validatePasswordRequired)(z)&&Z(e=>({...e,password:A.ValidationErrors.PASSWORD_REQUIRED}))},onTogglePasswordVisibility:()=>{ee(e=>!e)},onLogin:em,onFacebookLogin:ed?ep:void 0,onAppleLogin:en?ef:void 0,onForgotPassword:()=>{(0,N.trackAccountQMEvent)({eventName:F.ACCOUNT_QM_EVENT_NAMES.FORGOT_PASSWORD_CLICKED,location:F.ACCOUNT_QM_LOCATIONS.LOGIN_PAGE,metadata:{timestamp:new Date().toISOString()}}),i.Logger.info("[LoginPage] Navigating to forgot password"),u.push(U)},onSignup:()=>{(0,N.trackAccountQMEvent)({eventName:F.ACCOUNT_QM_EVENT_NAMES.SIGNUP_CLICKED,location:F.ACCOUNT_QM_LOCATIONS.LOGIN_PAGE,metadata:{timestamp:new Date().toISOString()}}),i.Logger.info("[LoginPage] Navigating to signup"),u.push(k)},captchaSlot:$?(0,a.jsx)(v.default,{ref:es,sitekey:G,onChange:e=>{(0,L.handleAuthRecaptchaChange)(e,et,Z)}}):void 0})}var j=e.i(972024);e.s(["default",0,function(){return(0,j.useHideHeaderFooter)(),(0,a.jsx)("main",{"aria-label":"Login page content",children:(0,a.jsx)(M,{})})}],707617)}]);

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.