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box.tsx","webpack://_N_E/./components/ui/checkbox/Checkbox.tsx","webpack://_N_E/./hooks/useBreadcrumb.tsx","webpack://_N_E/./libs/contentful/ComponentMapping.ts","webpack://_N_E/./libs/contentful/components/CmsPage.tsx","webpack://_N_E/./components/loginPage/forms/ForgotPasswordForm.tsx","webpack://_N_E/./components/loginPage/forms/LoginForm.tsx","webpack://_N_E/./components/loginPage/forms/SignupForm.tsx","webpack://_N_E/./components/loginPage/LoginPage.tsx","webpack://_N_E/./pages/[locale]/account/login/index.tsx","webpack://_N_E/./utils/klaviyo.ts","webpack://_N_E/./components/loginPage/Login.module.scss"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/[locale]/account/login\",\n function () {\n return require(\"private-next-pages/[locale]/account/login/index.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/[locale]/account/login\"])\n });\n }\n ","import { FieldValidator } from \"final-form\";\nimport { ChangeEvent, FC, ReactElement } from \"react\";\nimport { Field } from \"react-final-form\";\nimport Checkbox from \"@Components/ui/checkbox/Checkbox\";\n\ninterface Props {\n name: string;\n className?: string;\n isChecked?: boolean;\n disabled?: boolean;\n id: string;\n label?: string | ReactElement;\n validate?: FieldValidator;\n onChange?: (e: ChangeEvent) => void;\n}\n\nconst CheckBoxField: FC = ({\n name,\n className,\n isChecked = false,\n disabled = false,\n id,\n label,\n validate,\n onChange,\n ...restProps\n}) => {\n return (\n \n {({ input }) => (\n {\n onChange?.(value);\n input?.onChange?.(value);\n }}\n />\n )}\n \n );\n};\n\nexport default CheckBoxField;\n","import { ReactElement, useEffect, useState } from \"react\";\nimport { FC } from \"react\";\n\ninterface Props {\n className?: string | object;\n isChecked?: boolean;\n handleOnChange?: (e: any) => void;\n disabled?: boolean;\n name: string;\n id?: string;\n label?: string | ReactElement;\n value?: string;\n}\n\nconst Checkbox: FC = ({\n className,\n isChecked = false,\n handleOnChange,\n disabled,\n name,\n id,\n label,\n value,\n}) => {\n const [checked, setChecked] = useState(false);\n const [inputValue, setInputValue] = useState(0);\n\n const handleChange = () => {\n setChecked(!checked);\n setInputValue(inputValue ? 0 : 1);\n handleOnChange?.(!checked ? value : 0);\n };\n\n useEffect(() => {\n setChecked(isChecked);\n }, [isChecked]);\n\n return (\n
\n \n \n
\n );\n};\n\nCheckbox.defaultProps = {\n className: \"\",\n isChecked: false,\n disabled: false,\n name: \"\",\n id: \"\",\n label: \"\",\n value: \"\",\n};\nexport default Checkbox;\n","import { useEffect } from \"react\";\nimport { BreadcrumbProps } from \"@Types/Breadcrumbs\";\nimport {\n setHomeSlug,\n setCollectionSlug,\n setCurrentSlug,\n} from \"@wff/store/breadcrumbsSlice\";\nimport { useAppDispatch } from \"@wff/store/hooks\";\n\nexport const useBreadcrumb = (props: BreadcrumbProps) => {\n // homeSlug: {title: \"title\", link:\"/\"} - (Set automatically in Contentful pages) - The First part of the slug, usually the Root.\n // collectionSlug: {title: \"title\", link:\"/\"} - (Needs to be set where the link is before user redirect) - The slug for the navigation category or product category (The collection where the link the user comes from is).\n // currentSlug: {title: \"title\", link:\"/\"} - (Needs to be set in the actual page) - The slug for the actual page where user is (The page the user is right now).\n\n const { homeSlug, collectionSlug, currentSlug } = props;\n const dispatch = useAppDispatch();\n\n useEffect(() => {\n if (homeSlug) dispatch(setHomeSlug(homeSlug));\n if (collectionSlug) dispatch(setCollectionSlug(collectionSlug));\n if (currentSlug) dispatch(setCurrentSlug(currentSlug));\n }, [homeSlug, collectionSlug, currentSlug, dispatch]);\n};\n","import dynamic from \"next/dynamic\";\n\nexport type componentMappingTypes = {\n [Key in string]: Function;\n};\n\n/**\n * Map all the cms components here to dynamically display content from cms\n * In the JSON key must match with contentType.id from contentful cms\n */\nconst componentMapping: componentMappingTypes = {\n TextEditor: dynamic(\n () => import(\"@Libs/contentful/components/cms-text-editor/CmsTextEditor\")\n ),\n Banner: dynamic(\n () => import(\"@Components/contentful-components/banner/Banner\")\n ),\n HomePageHeroSlider: dynamic(\n () =>\n import(\n \"@Components/contentful-components/heroSlider/custom/HomePageHeroSlider\"\n )\n ),\n HeroSlider: dynamic(\n () => import(\"@Components/contentful-components/heroSlider/HeroSlider\")\n ),\n UserFeedback: dynamic(\n () => import(\"@Components/contentful-components/user-feedback/UserFeedBack\")\n ),\n UserReviews: dynamic(\n () => import(\"@Components/contentful-components/user-reviews/UserReviews\")\n ),\n SalesPropositions: dynamic(\n () =>\n import(\n \"@Components/contentful-components/uniqueSalesPropositions/UniqueSalesPropositions\"\n )\n ),\n CarouselProductList: dynamic(\n () =>\n import(\"@Components/contentful-components/promo-carousel/PromoCarousel\")\n ),\n Educational: dynamic(\n () => import(\"@Components/contentful-components/educational/Educational\")\n ),\n KnowYourCuts: dynamic(\n () =>\n import(\"@Components/contentful-components/know-your-cuts/KnowYourCuts\")\n ),\n StoriesOfWildfork: dynamic(\n () => import(\"@Components/storiesOfWildfork/StoriesOfWildfork\")\n ),\n MediaImage: dynamic(\n () => import(\"@Components/contentful-components/media-image/MediaImage\")\n ),\n\n RichTextContent: dynamic(\n () => import(\"@Components/contentful-components/rich-text/RichTextContent\")\n ),\n\n MembershipTable: dynamic(\n () =>\n import(\n \"@Components/contentful-components/membership-table/MembershipTable\"\n )\n ),\n\n MediaEmbedYoutubeVideo: dynamic(\n () =>\n import(\n \"@Components/contentful-components/media-embed-youtube-video/MediaEmbedYoutubeVideo\"\n )\n ),\n\n SectionTitleIconDescription: dynamic(\n () =>\n import(\n \"@Components/contentful-components/section-title-icon-description/SectionTitleIconDescription\"\n )\n ),\n\n SectionTextImage: dynamic(\n () =>\n import(\n \"@Components/contentful-components/section-text-image/SectionTextImage\"\n )\n ),\n\n SectionDivider: dynamic(\n () =>\n import(\"@Components/contentful-components/section-divider/SectionDivider\")\n ),\n};\n\nexport default componentMapping;\n","import logger from \"@Utils/Logger\";\nimport AppLayout from \"@wff/components/layout/AppLayout\";\nimport { useBreadcrumb } from \"@wff/hooks/useBreadcrumb\";\nimport componentMapping from \"../ComponentMapping\";\nimport { getCmsPageBySlug } from \"../Contentful.helper\";\n\ninterface cmsPageProps {\n children?: React.ReactNode;\n pageModel: any;\n pageTitle?: string;\n productSKU?: string;\n pageDescription?: string;\n}\n\ninterface pageModelTypes {\n locale?: string;\n slug?: string;\n productId?: string;\n resourceName?: string;\n}\n\ninterface getCMSPageModelOptions {\n keepOriginalSlug?: boolean;\n}\n\n/**\n * Component - CMS Page\n * @returns\n */\nconst CmsPage = (props: cmsPageProps) => {\n const {\n pageModel,\n pageTitle = \"\",\n productSKU,\n pageDescription = \"\",\n children,\n } = props;\n const contents = pageModel?.pageContent?.templates?.items ?? [];\n\n let templates;\n if (contents.length > 0) {\n let Comp;\n templates = contents.map((content: any, index: number) => {\n const contentKey = content?.content_type;\n // eslint-disable-next-line security/detect-object-injection\n Comp = componentMapping[contentKey];\n if (Comp) {\n return ;\n } else {\n return null;\n }\n });\n }\n // set the Root label for Breadcrumbs in all pages\n useBreadcrumb({\n homeSlug: {\n title: pageModel?.siteGlobal?.homeSlugLabel\n ? pageModel?.siteGlobal?.homeSlugLabel\n : \"Home\",\n link: \"/\",\n },\n });\n\n return (\n <>\n \n {templates}\n {children}\n \n \n );\n};\n\nexport const getCMSPageModel = async (\n query: string,\n payload: pageModelTypes,\n options?: getCMSPageModelOptions\n) => {\n const { locale = \"en-US\", slug } = payload;\n const { keepOriginalSlug = false } = options || {};\n let slugStr = slug;\n\n const country = (locale.split(\"-\")?.[1] ?? \"us\").toLocaleLowerCase();\n\n if (slug && !keepOriginalSlug) {\n slugStr = `wildfork-${country}-${slug}`;\n }\n\n const reqPayload = {\n ...payload,\n slug: slugStr,\n country,\n };\n\n logger.info(\"CmsPage.tsx getCMSPageModel()\", payload);\n\n return await getCmsPageBySlug(query, reqPayload);\n};\n\nexport default CmsPage;\n","import { FormApi } from \"final-form\";\nimport { noop } from \"lodash\";\nimport { useTranslation } from \"next-i18next\";\nimport { FC, SyntheticEvent } from \"react\";\nimport { Form } from \"react-final-form\";\nimport FormTextField from \"@Components/forms/formFields/textField/FormTextField\";\nimport { FormMessage } from \"@Components/forms/formMessage/FormMessage\";\nimport CTFieldValidator, {\n email,\n required,\n} from \"@Components/forms/helpers/FieldValidator\";\nimport { submitFormActionForgotPassword } from \"@Components/forms/helpers/commonFormSubmission\";\nimport { formStateChangeHandler } from \"@Components/forms/helpers/handlers\";\nimport { Button } from \"@Components/ui\";\nimport { AUTO_ERROR_CODE_MESSAGE_TRANSLATION } from \"@Constants/snackbar\";\nimport { IloginFormSection } from \"@Types/login-page\";\nimport { useForgotPassword } from \"@wff/hooks/useAuthHooks\";\nimport {\n FORM_TYPES,\n useFormFieldValidation,\n} from \"@wff/hooks/useFormFieldValidation\";\nimport { useAppDispatch, useAppSelector } from \"@wff/store/hooks\";\nimport { localeSelector } from \"@wff/store/localeSlice\";\n\ninterface Props {\n onClickCancel: () => void;\n isCheckout?: boolean;\n loginFormSection?: IloginFormSection;\n}\n\nconst ForgotPasswordForm: FC = ({\n onClickCancel,\n isCheckout,\n loginFormSection,\n}) => {\n const forgotPassInputPlaceholderEmail =\n loginFormSection?.forgotPassInputPlaceholderEmail;\n const forgotPassSubmitButtonText =\n loginFormSection?.forgotPassSubmitButtonText;\n const forgotPassCancelButtonText =\n loginFormSection?.forgotPassCancelButtonText;\n const forgotPassErrorRequiredEmail =\n loginFormSection?.forgotPassErrorRequiredEmail;\n const forgotPassErrorInvalidEmail =\n loginFormSection?.forgotPassErrorInvalidEmail;\n const EmailInputLabel = forgotPassInputPlaceholderEmail\n ? forgotPassInputPlaceholderEmail\n : \"\";\n\n const { t } = useTranslation(\"common\");\n const dispatch = useAppDispatch();\n const currentLocale = useAppSelector(localeSelector);\n const {\n forgotPasswordState,\n setForgotPasswordState,\n forgotPasswordStateHandler,\n } = useForgotPassword();\n\n const errorCodeTranslation = {\n WF_CUSTOMER_001: t(\"customer.form_errors.existing_account_html\"),\n WF_CUSTOMER_002: t(\"customer.form_errors.blank_email\"),\n WF_CUSTOMER_008: AUTO_ERROR_CODE_MESSAGE_TRANSLATION.WF_CUSTOMER_008(\n currentLocale?.languageCode\n ),\n };\n const validationTranslation = {\n allFieldsBlank: t(\"customer.form_errors.all_fields_blank\"),\n emailBlank: t(\"customer.form_errors.blank_email\"),\n emailNeedsContentAfterAtSymbol: t(\n \"customer.form_errors.format_ends_with_at\"\n ),\n };\n\n const {\n touched,\n setTouched,\n setFormError,\n formErrorMessages,\n setFormActionIsActive,\n } = useFormFieldValidation({\n type: FORM_TYPES.FORGOT_PASSWORD,\n touched: true, // this form does not require touching for validation\n formState: forgotPasswordState,\n languageCode: currentLocale?.languageCode,\n errorCodeTranslation,\n validationTranslation,\n formAction: () => {\n submitFormActionForgotPassword({\n dispatch,\n payload: forgotPasswordState,\n setFormError,\n errorCodeTranslation,\n languageCode: currentLocale?.languageCode,\n });\n },\n });\n\n const handleOnClickSubmit = (\n e: SyntheticEvent,\n form: FormApi>\n ) => {\n e.preventDefault();\n setFormActionIsActive(true);\n setTimeout(() => {\n form.reset();\n forgotPasswordStateHandler(\"email\", \"\");\n }, 100);\n };\n\n return (\n (\n
\n \n\n {\n formStateChangeHandler({\n key: \"email\",\n value: e.target.value,\n formState: forgotPasswordState,\n setTouched,\n formStateSetter: setForgotPasswordState,\n });\n }}\n />\n
\n handleOnClickSubmit(e, form)}\n disabled={!touched}\n type=\"submit\"\n >\n {forgotPassSubmitButtonText}\n \n \n
\n \n )}\n />\n );\n};\n\nexport default ForgotPasswordForm;\n","import { noop } from \"lodash\";\nimport { useTranslation } from \"next-i18next\";\nimport { ChangeEvent, FC, SyntheticEvent } from \"react\";\nimport { Form } from \"react-final-form\";\nimport { useRouter } from \"next/router\";\nimport FormTextField from \"@Components/forms/formFields/textField/FormTextField\";\nimport { FormMessage } from \"@Components/forms/formMessage/FormMessage\";\nimport CTFieldValidator, {\n email,\n required,\n strongPassword,\n strongPasswordForCA,\n} from \"@Components/forms/helpers/FieldValidator\";\nimport { formStateChangeHandler } from \"@Components/forms/helpers/handlers\";\nimport { Button } from \"@Components/ui\";\nimport { IloginFormSection } from \"@Types/login-page\";\nimport { isIdentifyKlaviyoUser } from \"@Utils/klaviyo\";\nimport { submitFormActionLogin } from \"@wff/components/forms/helpers/commonFormSubmission\";\nimport { dispatchCartFromCookie } from \"@wff/hooks/useActionBasedOnStorage\";\nimport { useLogin } from \"@wff/hooks/useAuthHooks\";\nimport { useCustomer } from \"@wff/hooks/useCustomer\";\nimport {\n FORM_TYPES,\n useFormFieldValidation,\n} from \"@wff/hooks/useFormFieldValidation\";\nimport { useLocaleRouter } from \"@wff/hooks/useLocaleRouter\";\nimport { useAppDispatch, useAppSelector } from \"@wff/store/hooks\";\n\ninterface ILoginFormProps {\n onClickForgotPassword: () => void;\n loginFormSection?: IloginFormSection;\n}\n\nconst LoginForm: FC = ({\n onClickForgotPassword,\n loginFormSection,\n}) => {\n const loginEmailInputPlaceholder =\n loginFormSection?.loginEmailInputPlaceholder;\n const loginPasswordInputPlaceholder =\n loginFormSection?.loginPasswordInputPlaceholder;\n const forgotPasswordLinkText = loginFormSection?.forgotPasswordLinkText;\n const loginButtonText = loginFormSection?.loginButtonText;\n const loginErrorHeading = loginFormSection?.loginErrorHeading || \"\";\n const loginErrorMessage = loginFormSection?.loginErrorMessage || \"\"; // using the\n const EmailInputLabel = loginEmailInputPlaceholder || \"\";\n const PasswordInputLabel = loginPasswordInputPlaceholder || \"\";\n\n const dispatch = useAppDispatch();\n const { push } = useLocaleRouter();\n const { t } = useTranslation(\"common\");\n const { loginState, setLoginState } = useLogin();\n const { getCustomerDetails } = useCustomer();\n const { locale, customerInfo } = useAppSelector((state) => state);\n const { email: loggedInUserEmail, firstName, lastName } = customerInfo;\n const currentLocale = locale;\n const router = useRouter();\n const redirectTo = router.query?.to?.toString();\n const errorCodeTranslation = {\n WF_CUSTOMER_004: loginErrorMessage,\n };\n\n const validationTranslation = {\n allFieldsBlank: t(\"customer.form_errors.all_fields_blank\"),\n firstNameBlank: t(\"customer.form_errors.invalid_first_name\"),\n lastNameBlank: t(\"customer.form_errors.invalid_last_name\"),\n emailBlank: t(\"customer.form_errors.blank_email\"),\n emailNeedsContentAfterAtSymbol: t(\n \"customer.form_errors.format_ends_with_at\"\n ),\n passwordBlank: t(\"customer.form_errors.blank_password_field\"),\n confirmPasswordBlank: t(\"customer.form_errors.blank_password_field\"),\n passwordsDoNotMatch: t(\"customer.form_errors.password_mismatch\"),\n };\n\n /**\n * This method triggers the Klaviyo identify event upon the successfull user login\n */\n const triggerKlaviyoUserIdentifyEvent = () => {\n const paramObj = {\n $email: loggedInUserEmail,\n $first_name: firstName,\n $last_name: lastName,\n };\n isIdentifyKlaviyoUser(paramObj);\n };\n\n const {\n touched,\n setTouched,\n setFormError,\n formErrorMessages,\n setFormActionIsActive,\n } = useFormFieldValidation({\n type: FORM_TYPES.LOGIN,\n touched: true, // this form does not require touching for validation\n formState: loginState,\n languageCode: currentLocale?.languageCode,\n errorCodeTranslation,\n validationTranslation,\n formAction: async () => {\n submitFormActionLogin({\n dispatch,\n payload: loginState,\n setFormError,\n errorCodeTranslation,\n actionOnFormSuccess: () => {\n dispatchCartFromCookie({ dispatch });\n triggerKlaviyoUserIdentifyEvent();\n getCustomerDetails(); // TODO from Jared: if /account gets updated in the near future to make this call (there could be a future refactor that does this) on mount, we may be able to delete this getCustomerDetails() call from this here\n push(redirectTo ?? \"/account\");\n },\n });\n },\n });\n\n const handleInputChange = (\n e: ChangeEvent,\n fieldStateKey: string\n ) => {\n formStateChangeHandler({\n key: fieldStateKey,\n value: e.target.value,\n formState: loginState,\n setTouched,\n formStateSetter: setLoginState,\n });\n };\n\n const handleOnClickSubmit = (\n e: SyntheticEvent\n ) => {\n e.preventDefault();\n setFormActionIsActive(true);\n };\n\n return (\n {\n return (\n \n \n {\n handleInputChange(e, \"email\");\n }}\n />\n {\n handleInputChange(e, \"password\");\n }}\n />\n \n
\n \n {loginButtonText}\n \n
\n \n );\n }}\n />\n );\n};\n\nexport default LoginForm;\n","import { noop } from \"lodash\";\nimport { useTranslation } from \"next-i18next\";\nimport { ChangeEvent, FC, SyntheticEvent, useState } from \"react\";\nimport { Form } from \"react-final-form\";\nimport Checkbox from \"@Components/forms/formFields/checkbox/Checkbox\";\nimport FormTextField from \"@Components/forms/formFields/textField/FormTextField\";\nimport { FormMessage } from \"@Components/forms/formMessage/FormMessage\";\nimport CTFieldValidator, {\n confirmPassword,\n email,\n name,\n required,\n strongPassword,\n strongPasswordForCA,\n} from \"@Components/forms/helpers/FieldValidator\";\nimport { formStateChangeHandler } from \"@Components/forms/helpers/handlers\";\nimport PasswordStrengthChecker from \"@Components/password-strength-checker\";\nimport { Button } from \"@Components/ui\";\nimport CmsTextEditorContent from \"@Libs/contentful/components/cms-text-editor/CmsTextEditor\";\nimport { ISignupFormSection } from \"@Types/login-page\";\nimport { isCanadianLocale } from \"@Utils/locale\";\nimport { submitFormActionSignup } from \"@wff/components/forms/helpers/commonFormSubmission\";\nimport { useSignup } from \"@wff/hooks/useAuthHooks\";\nimport {\n FORM_TYPES,\n useFormFieldValidation,\n} from \"@wff/hooks/useFormFieldValidation\";\nimport { useLocaleRouter } from \"@wff/hooks/useLocaleRouter\";\nimport { setCustomerInfo } from \"@wff/store/customerInfoSlice\";\nimport { useAppDispatch, useAppSelector } from \"@wff/store/hooks\";\nimport { localeSelector } from \"@wff/store/localeSlice\";\nimport classes from \"../Login.module.scss\";\n\nexport const PASSWORD_INPUT_ID = \"form_field-password\";\nexport const CONFIRM_PASSWORD_INPUT_ID = \"form_field-password_confirmation\";\n\ninterface Props {\n isCheckout?: boolean;\n signupFormSection?: ISignupFormSection;\n}\n\nconst RegisterForm: FC = ({ isCheckout = false, signupFormSection }) => {\n const signUpFormMessage = signupFormSection?.signUpFormMessage;\n const signUpInputPlaceholderFirstName =\n signupFormSection?.signUpInputPlaceholderFirstName;\n const signUpInputPlaceholderLastName =\n signupFormSection?.signUpInputPlaceholderLastName;\n const signUpInputPlaceholderEmail =\n signupFormSection?.signUpInputPlaceholderEmail;\n const signUpInputPlaceholderPassword =\n signupFormSection?.signUpInputPlaceholderPassword;\n const signUpInputPlaceholderConfirmPassword =\n signupFormSection?.signUpInputPlaceholderConfirmPassword;\n const showNewsletterCheckbox = !!signupFormSection?.showNewsletterCheckbox;\n const newsletterCheckboxLabel = signupFormSection?.newsletterCheckboxLabel;\n const signUpButtonText = signupFormSection?.signUpButtonText;\n const signUpErrorMessagePasswordMismatch =\n signupFormSection?.signUpErrorMessagePasswordMismatch;\n const FirstNameInputLabel = signUpInputPlaceholderFirstName || \"\";\n const LastNameInputLabel = signUpInputPlaceholderLastName || \"\";\n const EmailInputLabel = signUpInputPlaceholderEmail || \"\";\n const PasswordInputLabel = signUpInputPlaceholderPassword || \"\";\n const PasswordConfirmInputLabel = signUpInputPlaceholderConfirmPassword || \"\";\n const signUpErrorHeading = signupFormSection?.signUpErrorHeading || \"\";\n\n const currentLocale = useAppSelector(localeSelector);\n const { push } = useLocaleRouter();\n const dispatch = useAppDispatch();\n const { signupState, setSignupState } = useSignup({\n acceptMarketing: showNewsletterCheckbox,\n });\n const { t } = useTranslation(\"common\");\n const [password, setPassword] = useState({\n password: \"\",\n confirmedPassword: \"\",\n });\n const [fieldName, setFieldName] = useState(\"\");\n const [showPasswordChecker, setShowPasswordChecker] = useState(false);\n const errorCodeTranslation = {\n WF_CUSTOMER_001: t(\"customer.form_errors.existing_account_html\"),\n WF_CUSTOMER_002: t(\"customer.form_errors.blank_email\"),\n WF_CUSTOMER_003: t(\"customer.form_errors.blank_password\"),\n WF_CUSTOMER_005: t(\"customer.form_errors.blank_field\"),\n };\n\n const validationTranslation = {\n allFieldsBlank: t(\"customer.form_errors.all_fields_blank\"),\n firstNameBlank: t(\"customer.form_errors.invalid_first_name\"),\n lastNameBlank: t(\"customer.form_errors.invalid_last_name\"),\n emailBlank: t(\"customer.form_errors.blank_email\"),\n emailNeedsContentAfterAtSymbol: t(\n \"customer.form_errors.format_ends_with_at\"\n ),\n passwordBlank: t(\"customer.form_errors.blank_password\"),\n confirmPasswordBlank: t(\"customer.form_errors.blank_password\"),\n passwordsDoNotMatch: t(\"customer.form_errors.password_mismatch\"),\n };\n\n const actionOnFormSuccess = () => {\n const customerInfo = {\n firstName: signupState.firstName,\n lastName: signupState.lastName,\n email: signupState.email,\n };\n dispatch(setCustomerInfo(customerInfo));\n push(\"/account\");\n };\n\n const {\n touched,\n setTouched,\n setFormError,\n formErrorMessages,\n setFormActionIsActive,\n } = useFormFieldValidation({\n type: FORM_TYPES.SIGNUP,\n touched: true, // this form does not require touching for validation\n formState: signupState,\n languageCode: currentLocale?.languageCode,\n errorCodeTranslation,\n validationTranslation,\n formAction: () => {\n signupState.email = signupState.email.trim();\n submitFormActionSignup({\n dispatch,\n payload: signupState,\n setFormError,\n errorCodeTranslation,\n actionOnFormSuccess,\n });\n },\n });\n\n const handleInputChange = (\n e: ChangeEvent,\n fieldStateKey: string\n ) => {\n formStateChangeHandler({\n key: fieldStateKey,\n value: e.target.value,\n formState: signupState,\n setTouched,\n formStateSetter: setSignupState,\n });\n if (fieldStateKey === \"password\" || fieldStateKey === \"confirmedPassword\") {\n setPassword((prevState) => ({\n ...prevState,\n [fieldStateKey]: e.target.value,\n }));\n }\n };\n\n /**\n * The function `handleFocus` checks if the active element is an input element and updates the state\n * variables `password` and `showPasswordChecker` based on the type and name of the input element.\n */\n const handleFocus = ({ target: { type, name, value } }: any) => {\n if (\n type === \"password\" ||\n name === \"password\" ||\n name === \"passwordConfirm\"\n ) {\n setPassword((prevState) => ({\n ...prevState,\n [name === \"password\" ? name : \"confirmedPassword\"]: value,\n }));\n setFieldName(name);\n setShowPasswordChecker(true);\n formErrorMessages.length = 0;\n } else {\n setShowPasswordChecker(false);\n }\n };\n\n const handleOnClickSubmit = async (\n e: SyntheticEvent\n ) => {\n e.preventDefault();\n setFormActionIsActive(true);\n setShowPasswordChecker(false);\n };\n const { locale } = useAppSelector((state) => state);\n return (\n (\n <>\n {\n /* This code is conditionally rendering the `` \n component based on the current locale's language code. */\n (currentLocale?.languageCode === \"en-CA\" ||\n currentLocale?.languageCode === \"fr-CA\") &&\n showPasswordChecker && (\n \n )\n }\n
\n \n
\n \n
\n {\n handleInputChange(e, \"firstName\");\n }}\n onFocus={handleFocus}\n />\n {\n handleInputChange(e, \"lastName\");\n }}\n onFocus={handleFocus}\n />\n {\n handleInputChange(e, \"email\");\n }}\n onFocus={handleFocus}\n />\n {\n handleInputChange(e, \"password\");\n }}\n onFocus={handleFocus}\n />\n {\n handleInputChange(e, \"confirmedPassword\");\n }}\n onFocus={handleFocus}\n />\n }\n isChecked={signupState.acceptMarketing}\n onChange={() => {\n formStateChangeHandler({\n key: \"acceptMarketing\",\n value: !signupState.acceptMarketing,\n setTouched,\n formState: signupState,\n formStateSetter: setSignupState,\n });\n }}\n />\n
\n \n {signUpButtonText}\n \n
\n \n \n )}\n />\n );\n};\n\nexport default RegisterForm;\n","import clsx from \"clsx\";\nimport { useState } from \"react\";\nimport Avatar from \"@mui/material/Avatar\";\nimport CmsTextEditorContent from \"@Libs/contentful/components/cms-text-editor/CmsTextEditor\";\nimport { LoginPageProps } from \"@Types/login-page\";\nimport Link from \"@wff/components/Link\";\nimport ForgotPasswordForm from \"./forms/ForgotPasswordForm\";\nimport LoginForm from \"./forms/LoginForm\";\nimport SignupForm from \"./forms/SignupForm\";\nimport classes from \"./Login.module.scss\";\n\nexport const Login = (props: LoginPageProps) => {\n const {\n icon,\n mainPageTitle,\n mainPageSubtitle,\n loginFormSection,\n signupFormSection,\n allBenefitsButtonText,\n allBenefitsButtonUrl,\n } = props;\n const [isPasswordRecoverForm, setIsPasswordRecoverForm] = useState(false);\n const [activeForm, setActiveForm] = useState<\"login\" | \"register\">(\"login\");\n const isLoginActive = activeForm === \"login\";\n const isRegisterActive = activeForm === \"register\";\n\n const handleClickOnForgotPassword = () => setIsPasswordRecoverForm(true);\n const handleClickRecoverPasswordCancel = () =>\n setIsPasswordRecoverForm(false);\n\n return (\n
\n
\n
\n \n
\n

{mainPageTitle}

\n
\n \n
\n
\n
\n
\n setActiveForm(\"login\")}\n >\n {loginFormSection?.loginFormTitle}\n \n setActiveForm(\"register\")}\n >\n {signupFormSection?.signUpFormTitle}\n \n
\n
\n \n
\n {isPasswordRecoverForm ? (\n <>\n

\n {loginFormSection?.loginFormTitle}\n

\n \n \n ) : (\n <>\n

\n {loginFormSection?.loginFormTitle}\n

\n \n \n )}\n
\n
\n\n \n
\n

\n {signupFormSection?.signUpFormTitle}\n

\n \n
\n \n \n
\n \n \n {allBenefitsButtonText}\n \n \n
\n
\n
\n );\n};\n\nexport default Login;\n","import Login from \"@Components/loginPage/LoginPage\";\nimport CmsPage, { getCMSPageModel } from \"@Libs/contentful/components/CmsPage\";\nimport LoginPageQuery from \"@Libs/contentful/queries/LoginPage\";\nimport { pageModel } from \"@Types/Contentful\";\nimport { makeStaticProps, getStaticPaths } from \"@wff/libs/i18n/getStatic\";\ninterface LoginPageProps {\n pageModel: pageModel;\n}\n\nconst LoginPage = ({ pageModel }: LoginPageProps) => {\n const { pageContent = {} } = pageModel;\n\n return (\n \n \n \n );\n};\n\nconst overrideStaticProps = async (props: any) => {\n const { locale } = props;\n\n const pageModel = await getCMSPageModel(LoginPageQuery, {\n locale,\n });\n\n return {\n props: {\n pageModel,\n },\n };\n};\n\nconst getStaticProps = makeStaticProps([\"common\"], overrideStaticProps);\nexport { getStaticPaths, getStaticProps };\n\nexport default LoginPage;\n","import pickBy from \"lodash/pickBy\";\nimport { getPriceOrDiscounted } from \"@Components/cart/helpers/helpers\";\nimport { ICTProductDataCurrent } from \"@Types/product\";\nimport { convertToDollar } from \"@Utils/currency\";\nimport { ICartLineItem } from \"@wff/interfaces/cart\";\nimport { ICartState } from \"@wff/store/cartSlice\";\n\ninterface IIdentifyParams {\n $email: string;\n $first_name: string;\n $last_name: string;\n}\n\ndeclare global {\n interface Window {\n klaviyo: {\n push: (params: any) => Promise;\n identify: (_params: IIdentifyParams) => Promise;\n };\n }\n}\n\nconst sendKlaviyoAnalytics = (params: any[]) => {\n window?.klaviyo?.push(params);\n};\n\nconst removeFalsyValues = (obj: any) => {\n return pickBy(obj);\n};\n\nconst processLineItems = (\n lineItems: ICartLineItem[],\n locale: string,\n url: string\n) => {\n const items: {}[] = [];\n const itemNames: string[] = [];\n\n lineItems?.forEach((item) => {\n itemNames.push(item.name);\n items.push({\n ProductID: item.sku,\n SKU: item.sku,\n ProductName: item.name,\n Quantity: item.quantity,\n ItemPrice: convertToDollar(item.totalPrice / item.quantity),\n RowTotal: convertToDollar(item.totalPrice),\n ProductURL: `${new URL(url).origin}/${locale}/products/${item.slug}/`,\n ImageURL: item.productImageUrl,\n ProductCategories: [],\n });\n });\n\n return { itemNames, items };\n};\n\nexport const getFormattedProductForKlaviyo = (\n currentProduct: ICTProductDataCurrent,\n locale: string,\n url: string\n) => {\n const priceData = currentProduct?.masterVariant?.prices;\n const imageUrl = currentProduct?.masterVariant?.images?.[0]?.url;\n const totalPrice = priceData ? getPriceOrDiscounted(priceData) : \"\";\n const productName = currentProduct?.name?.[locale];\n\n const formattedProduct = {\n ProductName: productName,\n ProductID: currentProduct?.masterVariant?.sku,\n Price: totalPrice,\n Categories: [],\n CompareAtPrice: \"\",\n ImageUrl: imageUrl,\n Brand: \"\",\n Url: url,\n Locale: locale,\n };\n\n return removeFalsyValues(formattedProduct);\n};\n\nexport const getFormattedCheckoutDataForKlaviyo = (\n cartData: ICartState,\n locale: string,\n url: string\n) => {\n const { lineItems = [] } = cartData;\n const { itemNames, items } = processLineItems(lineItems, locale, url);\n\n const formattedCartData = {\n $value: convertToDollar(cartData?.totalPrice),\n ItemNames: itemNames,\n CheckoutURL: url,\n Categories: [],\n Items: items,\n Locale: locale,\n };\n\n return removeFalsyValues(formattedCartData);\n};\n\nexport const getFormattedAddToCartDataForKlaviyo = (\n currentProduct: ICTProductDataCurrent,\n cartData: ICartState,\n locale: string,\n url: string\n) => {\n const priceData = currentProduct?.masterVariant?.prices;\n const productName = currentProduct?.name?.[locale] ?? \"\";\n const productSlug = currentProduct?.slug?.[locale] ?? \"\";\n const productSku = currentProduct?.masterVariant?.sku ?? \"\";\n const productPrice = priceData ? getPriceOrDiscounted(priceData) : 0;\n const totalPrice = convertToDollar(cartData.totalPrice) + productPrice;\n const productImageUrl = currentProduct?.masterVariant?.images?.[0]?.url ?? \"\";\n const baseURL = new URL(url).origin;\n const checkoutURL = `${baseURL}/${locale}/checkout`;\n const currentLineItem: ICartLineItem = {\n id: \"\",\n name: productName,\n weightText: \"\",\n perUnitPriceText: \"\",\n itemPiecesText: \"\",\n totalPrice: productPrice * 100,\n quantity: 1,\n productImageUrl,\n sku: productSku,\n slug: productSlug,\n isFixedPrice: false,\n };\n const { lineItems = [] } = cartData;\n const { itemNames, items } = processLineItems(\n [...lineItems, currentLineItem],\n locale,\n url\n );\n\n const formattedProduct = {\n $value: totalPrice,\n AddedItemProductName: productName,\n AddedItemProductID: productSku,\n AddedItemSKU: productSku,\n AddedItemCategories: [],\n AddedItemURL: url,\n AddedItemPrice: productPrice,\n AddedItemQuantity: 1,\n ItemNames: itemNames,\n CheckoutURL: checkoutURL,\n Items: items,\n };\n\n return removeFalsyValues(formattedProduct);\n};\n\nexport const isIdentifyKlaviyoUser = (_paramObj: IIdentifyParams) => {\n return window?.klaviyo?.identify(_paramObj);\n};\n\nexport const sendTrackKlaviyoEvent = (params: any) =>\n sendKlaviyoAnalytics([\"track\", ...params]);\n\nexport const sendViewedItemKlaviyoEvent = (data: any) =>\n sendKlaviyoAnalytics([\"trackViewedItem\", data]);\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"customer-welcome__image\":\"Login_customer-welcome__image___8_Nz\",\"inner-image\":\"Login_inner-image__5T7Zn\",\"form__subscribe-to-marketing\":\"Login_form__subscribe-to-marketing__KwEpn\"};"],"names":["window","__NEXT_P","push","name","className","isChecked","disabled","id","label","validate","onChange","restProps","Field","input","Checkbox","handleOnChange","value","useState","checked","setChecked","inputValue","setInputValue","useEffect","div","type","htmlFor","defaultProps","useBreadcrumb","props","homeSlug","collectionSlug","currentSlug","dispatch","useAppDispatch","setHomeSlug","setCollectionSlug","setCurrentSlug","TextEditor","dynamic","Banner","HomePageHeroSlider","HeroSlider","UserFeedback","UserReviews","SalesPropositions","CarouselProductList","Educational","KnowYourCuts","StoriesOfWildfork","MediaImage","RichTextContent","MembershipTable","MediaEmbedYoutubeVideo","SectionTitleIconDescription","SectionTextImage","SectionDivider","query","payload","options","locale","slug","keepOriginalSlug","slugStr","country","reqPayload","split","toLocaleLowerCase","logger","getCmsPageBySlug","pageModel","templates","Comp","pageTitle","productSKU","pageDescription","children","contents","pageContent","items","length","map","content","index","contentKey","content_type","componentMapping","title","siteGlobal","homeSlugLabel","link","AppLayout","onClickCancel","isCheckout","loginFormSection","forgotPassInputPlaceholderEmail","forgotPassSubmitButtonText","forgotPassCancelButtonText","forgotPassErrorRequiredEmail","forgotPassErrorInvalidEmail","EmailInputLabel","t","useTranslation","currentLocale","useAppSelector","localeSelector","useForgotPassword","forgotPasswordState","setForgotPasswordState","forgotPasswordStateHandler","errorCodeTranslation","WF_CUSTOMER_001","WF_CUSTOMER_002","WF_CUSTOMER_008","AUTO_ERROR_CODE_MESSAGE_TRANSLATION","languageCode","validationTranslation","allFieldsBlank","emailBlank","emailNeedsContentAfterAtSymbol","useFormFieldValidation","FORM_TYPES","touched","formState","formAction","submitFormActionForgotPassword","setFormError","setTouched","formErrorMessages","setFormActionIsActive","Form","data-testid","onSubmit","noop","render","form","FormMessage","message","errors","FormTextField","CTFieldValidator","required","email","outlined","e","formStateChangeHandler","key","target","formStateSetter","Button","onClick","handleOnClickSubmit","preventDefault","setTimeout","reset","router","onClickForgotPassword","loginEmailInputPlaceholder","loginPasswordInputPlaceholder","forgotPasswordLinkText","loginButtonText","loginErrorHeading","loginErrorMessage","PasswordInputLabel","useLocaleRouter","useLogin","loginState","setLoginState","getCustomerDetails","useCustomer","state","customerInfo","loggedInUserEmail","firstName","lastName","redirectTo","useRouter","to","toString","WF_CUSTOMER_004","firstNameBlank","lastNameBlank","passwordBlank","confirmPasswordBlank","passwordsDoNotMatch","triggerKlaviyoUserIdentifyEvent","paramObj","$email","$first_name","$last_name","isIdentifyKlaviyoUser","submitFormActionLogin","actionOnFormSuccess","dispatchCartFromCookie","handleInputChange","fieldStateKey","testID","aria-label","strongPasswordForCA","strongPassword","password","a","signupFormSection","signUpFormMessage","signUpInputPlaceholderFirstName","signUpInputPlaceholderLastName","signUpInputPlaceholderEmail","signUpInputPlaceholderPassword","signUpInputPlaceholderConfirmPassword","showNewsletterCheckbox","newsletterCheckboxLabel","signUpButtonText","signUpErrorMessagePasswordMismatch","FirstNameInputLabel","LastNameInputLabel","PasswordConfirmInputLabel","signUpErrorHeading","useSignup","acceptMarketing","signupState","setSignupState","confirmedPassword","setPassword","fieldName","setFieldName","showPasswordChecker","setShowPasswordChecker","WF_CUSTOMER_003","WF_CUSTOMER_005","setCustomerInfo","trim","submitFormActionSignup","prevState","handleFocus","PasswordStrengthChecker","CmsTextEditorContent","onFocus","withPreview","isCanadianLocale","confirmPassword","classes","icon","mainPageTitle","mainPageSubtitle","allBenefitsButtonText","allBenefitsButtonUrl","isPasswordRecoverForm","setIsPasswordRecoverForm","activeForm","setActiveForm","isLoginActive","isRegisterActive","article","Avatar","alt","src","url","h1","main","button","clsx","loginFormTitle","signUpFormTitle","section","h2","ForgotPasswordForm","LoginForm","SignupForm","footer","Link","href","passHref","span","CmsPage","Login","sendKlaviyoAnalytics","params","klaviyo","removeFalsyValues","obj","pickBy","processLineItems","lineItems","itemNames","forEach","item","ProductID","sku","SKU","ProductName","Quantity","quantity","ItemPrice","convertToDollar","totalPrice","RowTotal","ProductURL","URL","origin","ImageURL","productImageUrl","ProductCategories","getFormattedProductForKlaviyo","currentProduct","priceData","masterVariant","prices","imageUrl","images","getPriceOrDiscounted","formattedProduct","Price","Categories","CompareAtPrice","ImageUrl","Brand","Url","Locale","getFormattedCheckoutDataForKlaviyo","cartData","formattedCartData","$value","ItemNames","CheckoutURL","Items","getFormattedAddToCartDataForKlaviyo","productName","productSlug","productSku","productPrice","baseURL","checkoutURL","currentLineItem","weightText","perUnitPriceText","itemPiecesText","isFixedPrice","AddedItemProductName","AddedItemProductID","AddedItemSKU","AddedItemCategories","AddedItemURL","AddedItemPrice","AddedItemQuantity","_paramObj","identify","sendTrackKlaviyoEvent","sendViewedItemKlaviyoEvent","data","module","exports"],"sourceRoot":""}