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AAOa,IAAAA,MAAgB,CACvBZ,YAAaY,IAAAA,MAAgB,CAC7BX,KAAMW,IAAAA,MAAgB,CACtBoG,aAAcpG,IAAAA,MAAgB,CAC9BhI,MAAOgI,IAAAA,GAAa,CACpBwG,SAAUxG,IAAAA,IAAc,CACxB4F,SAAU5F,IAAAA,IAAc,CACxBtC,SAAUsC,IAAAA,IAAc,CACxBmG,SAAUnG,IAAAA,IAAc,CACxBR,SAAUQ,IAAAA,MAAgB,CAC1B6F,SAAU7F,IAAAA,IAAc,CACxBgG,OAAQhG,IAAAA,MAAgB,CACxBvB,MAAOuB,IAAAA,IAAc,CACrB8F,IAAK9F,IAAAA,MAAgB,CACrB+F,IAAK/F,IAAAA,MAAgB,EAIzB,MAAed,KAAKA","sources":["webpack://_N_E/../client/use-merged-ref.ts","webpack://_N_E/./contexts/reducers/GlobalReducer.js","webpack://_N_E/./lib/Constants/toastDefaults.js","webpack://_N_E/./contexts/GlobalContext.js","webpack://_N_E/../../../src/client/app-dir/link.tsx","webpack://_N_E/./services/AuthenteakApi.js","webpack://_N_E/./components/forms/Button/Button.module.scss","webpack://_N_E/./components/applications/my_account/AuthEmail/index.jsx","webpack://_N_E/./lib/Utils/isInternalLink.js","webpack://_N_E/./components/navigation/SmartLink/index.jsx","webpack://_N_E/./components/feedback/Loader/index.jsx","webpack://_N_E/./components/icons/IconClose.jsx","webpack://_N_E/./components/icons/IconSearch.jsx","webpack://_N_E/./services/myaccount/AuthContext.service.js","webpack://_N_E/./components/icons/IconInputError.jsx","webpack://_N_E/./node_modules/clsx/dist/clsx.m.js","webpack://_N_E/./components/forms/Input/Input.module.scss","webpack://_N_E/./components/forms/Button/index.jsx","webpack://_N_E/./components/feedback/Loader/Loader.module.scss","webpack://_N_E/./components/icons/IconSpinner.jsx","webpack://_N_E/./lib/Utils/removeSpaces.js","webpack://_N_E/./components/forms/Input/index.jsx"],"sourcesContent":["import { useCallback, useRef, type Ref } from 'react'\n\n// This is a compatibility hook to support React 18 and 19 refs.\n// In 19, a cleanup function from refs may be returned.\n// In 18, returning a cleanup function creates a warning.\n// Since we take userspace refs, we don't know ahead of time if a cleanup function will be returned.\n// This implements cleanup functions with the old behavior in 18.\n// We know refs are always called alternating with `null` and then `T`.\n// So a call with `null` means we need to call the previous cleanup functions.\nexport function useMergedRef(\n refA: Ref,\n refB: Ref\n): Ref {\n const cleanupA = useRef<(() => void) | null>(null)\n const cleanupB = useRef<(() => void) | null>(null)\n\n // NOTE: In theory, we could skip the wrapping if only one of the refs is non-null.\n // (this happens often if the user doesn't pass a ref to Link/Form/Image)\n // But this can cause us to leak a cleanup-ref into user code (e.g. via ``),\n // and the user might pass that ref into ref-merging library that doesn't support cleanup refs\n // (because it hasn't been updated for React 19)\n // which can then cause things to blow up, because a cleanup-returning ref gets called with `null`.\n // So in practice, it's safer to be defensive and always wrap the ref, even on React 19.\n return useCallback(\n (current: TElement | null): void => {\n if (current === null) {\n const cleanupFnA = cleanupA.current\n if (cleanupFnA) {\n cleanupA.current = null\n cleanupFnA()\n }\n const cleanupFnB = cleanupB.current\n if (cleanupFnB) {\n cleanupB.current = null\n cleanupFnB()\n }\n } else {\n if (refA) {\n cleanupA.current = applyRef(refA, current)\n }\n if (refB) {\n cleanupB.current = applyRef(refB, current)\n }\n }\n },\n [refA, refB]\n )\n}\n\nfunction applyRef(\n refA: NonNullable>,\n current: TElement\n) {\n if (typeof refA === 'function') {\n const cleanup = refA(current)\n if (typeof cleanup === 'function') {\n return cleanup\n } else {\n return () => refA(null)\n }\n } else {\n refA.current = current\n return () => {\n refA.current = null\n }\n }\n}\n","/**\n* Global State Manager:\n* - only put things in here that are truly global (e.g. Cart & Customer Data, Theme)\n* otherwise make it a local state or pass it in a prop\n*/\n\n\n// use our initial state as a type of manifest for the Global State\nexport const initialState = {\n user: {\n isLoggedIn: false,\n email: \"\",\n customer_group_id: 5,\n exists: null,\n external_customer_id: 0,\n user_id: 0\n },\n cart: {},\n thirdParty: {\n zendesk: false,\n nostoSession: process.env.NODE_ENV === \"development\" ? \"64d25a2e95be7b70ae573a09\" : null\n },\n urlParams: {},\n urlAction: null,\n widget:{\n isOpen: false,\n component: null,\n showBackdrop: true,\n page: {\n component: null,\n }\n }\n}\n\n\nexport const GlobalReducer = (state, action) => {\n switch(action.type){\n\n case \"setUrlAction\": \n return{\n ...state,\n urlAction: action.data\n }\n\n\n case \"clearUrlParams\": {\n return{\n ...state,\n urlParams: {},\n urlAction: \"clear\",\n }\n }\n\n case \"initUrlParams\": {\n return {\n ...state,\n urlParams: {\n ...action?.data\n },\n urlAction: null\n }\n }\n\n case \"setAndApplyUrlParams\": {\n return {\n ...state,\n urlParams: {\n ...action?.data\n },\n urlAction: \"apply\"\n }\n }\n\n case \"setUrlParams\": {\n return {\n ...state,\n urlParams: {\n ...state.urlParams,\n ...action?.data\n }\n }\n }\n\n case \"closeWidget\":\n return{\n ...state,\n widget: {\n ...state.widget,\n isOpen: false,\n component: null,\n page: {\n component: null\n }\n }\n }\n\n case \"setWidgetPage\": \n return{\n ...state,\n widget: {\n ...state.widget,\n page: {\n ...action.data\n }\n }\n }\n\n case \"setWidget\":\n return{\n ...state,\n widget: {\n ...state.widget,\n ...action.data\n }\n }\n\n\n case \"nostoSession\":\n return{\n ...state,\n thirdParty:{\n ...state.thirdParty,\n nostoSession: action.data\n }\n }\n\n case \"zendeskInit\":\n return{\n ...state,\n thirdParty: {\n ...state.thirdParty,\n zendesk: action.data\n }\n }\n\n\n \n case \"login\":\n return{\n ...state,\n user: {\n ...state.user,\n isLoggedIn: true,\n ...action.data\n }\n };\n\n \n\n case \"setEmail\":\n return{\n ...state,\n user: {\n ...state.user,\n ...action.data\n }\n };\n\n\n \n case \"logout\":\n return{\n ...state,\n user: {\n ...state.user,\n isLoggedIn: false,\n data: {}\n }\n };\n \n\n default:\n throw new Error(\"Doh! You did not choose GlobalReducer method type to perform. Please try agin or go to GlobalContext.js for available types.\")\n }\n};\n","\n\n// Global Toast default Options\nexport const toastDefaults = {\n position: \"top-right\",\n autoClose: 5000,\n hideProgressBar: false,\n closeOnClick: true,\n pauseOnHover: true,\n draggable: true,\n progress: undefined,\n newestOnTop: true\n}\n\n","\"use client\"\n\nimport { useReducer, createContext } from 'react';\nimport { GlobalReducer, initialState } from './reducers/GlobalReducer';\nimport { ToastContainer } from 'react-toastify'\nimport { toastDefaults } from 'lib/Constants/toastDefaults';\n\n\nexport const GlobalContext = createContext();\n\n// Create our Provider with our Reducer as our state manager\nexport const GlobalContextProvider = props => {\n const [state, dispatch] = useReducer(GlobalReducer, initialState);\n\n return (\n \n {props.children}\n\n \n \n );\n};\n\n","'use client'\n\nimport type { NextRouter } from '../../shared/lib/router/router'\n\nimport React from 'react'\nimport type { UrlObject } from 'url'\nimport { formatUrl } from '../../shared/lib/router/utils/format-url'\nimport { AppRouterContext } from '../../shared/lib/app-router-context.shared-runtime'\nimport type { AppRouterInstance } from '../../shared/lib/app-router-context.shared-runtime'\nimport { PrefetchKind } from '../components/router-reducer/router-reducer-types'\nimport { useMergedRef } from '../use-merged-ref'\nimport { isAbsoluteUrl } from '../../shared/lib/utils'\nimport { addBasePath } from '../add-base-path'\nimport { warnOnce } from '../../shared/lib/utils/warn-once'\nimport {\n mountLinkInstance,\n onNavigationIntent,\n unmountLinkInstance,\n} from '../components/links'\n\ntype Url = string | UrlObject\ntype RequiredKeys = {\n [K in keyof T]-?: {} extends Pick ? never : K\n}[keyof T]\ntype OptionalKeys = {\n [K in keyof T]-?: {} extends Pick ? K : never\n}[keyof T]\n\ntype InternalLinkProps = {\n /**\n * **Required**. The path or URL to navigate to. It can also be an object (similar to `URL`).\n *\n * @example\n * ```tsx\n * // Navigate to /dashboard:\n * Dashboard\n *\n * // Navigate to /about?name=test:\n * \n * About\n * \n * ```\n *\n * @remarks\n * - For external URLs, use a fully qualified URL such as `https://...`.\n * - In the App Router, dynamic routes must not include bracketed segments in `href`.\n */\n href: Url\n\n /**\n * @deprecated v10.0.0: `href` props pointing to a dynamic route are\n * automatically resolved and no longer require the `as` prop.\n */\n as?: Url\n\n /**\n * Replace the current `history` state instead of adding a new URL into the stack.\n *\n * @defaultValue `false`\n *\n * @example\n * ```tsx\n * \n * About (replaces the history state)\n * \n * ```\n */\n replace?: boolean\n\n /**\n * Whether to override the default scroll behavior. If `true`, Next.js attempts to maintain\n * the scroll position if the newly navigated page is still visible. If not, it scrolls to the top.\n *\n * If `false`, Next.js will not modify the scroll behavior at all.\n *\n * @defaultValue `true`\n *\n * @example\n * ```tsx\n * \n * No auto scroll\n * \n * ```\n */\n scroll?: boolean\n\n /**\n * Update the path of the current page without rerunning data fetching methods\n * like `getStaticProps`, `getServerSideProps`, or `getInitialProps`.\n *\n * @remarks\n * `shallow` only applies to the Pages Router. For the App Router, see the\n * [following documentation](https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating#using-the-native-history-api).\n *\n * @defaultValue `false`\n *\n * @example\n * ```tsx\n * \n * Shallow navigation\n * \n * ```\n */\n shallow?: boolean\n\n /**\n * Forces `Link` to pass its `href` to the child component. Useful if the child is a custom\n * component that wraps an `` tag, or if you're using certain styling libraries.\n *\n * @defaultValue `false`\n *\n * @example\n * ```tsx\n * \n * Dashboard\n * \n * ```\n */\n passHref?: boolean\n\n /**\n * Prefetch the page in the background.\n * Any `` that is in the viewport (initially or through scroll) will be prefetched.\n * Prefetch can be disabled by passing `prefetch={false}`.\n *\n * @remarks\n * Prefetching is only enabled in production.\n *\n * - In the **App Router**:\n * - `null` (default): Prefetch behavior depends on static vs dynamic routes:\n * - Static routes: fully prefetched\n * - Dynamic routes: partial prefetch to the nearest segment with a `loading.js`\n * - `true`: Always prefetch the full route and data.\n * - `false`: Disable prefetching on both viewport and hover.\n * - In the **Pages Router**:\n * - `true` (default): Prefetches the route and data in the background on viewport or hover.\n * - `false`: Prefetch only on hover, not on viewport.\n *\n * @defaultValue `true` (Pages Router) or `null` (App Router)\n *\n * @example\n * ```tsx\n * \n * Dashboard\n * \n * ```\n */\n prefetch?: boolean | null\n\n /**\n * The active locale is automatically prepended in the Pages Router. `locale` allows for providing\n * a different locale, or can be set to `false` to opt out of automatic locale behavior.\n *\n * @remarks\n * Note: locale only applies in the Pages Router and is ignored in the App Router.\n *\n * @example\n * ```tsx\n * // Use the 'fr' locale:\n * \n * About (French)\n * \n *\n * // Disable locale prefix:\n * \n * About (no locale prefix)\n * \n * ```\n */\n locale?: string | false\n\n /**\n * Enable legacy link behavior, requiring an `` tag to wrap the child content\n * if the child is a string or number.\n *\n * @defaultValue `false`\n * @see https://github.com/vercel/next.js/commit/489e65ed98544e69b0afd7e0cfc3f9f6c2b803b7\n */\n legacyBehavior?: boolean\n\n /**\n * Optional event handler for when the mouse pointer is moved onto the ``.\n */\n onMouseEnter?: React.MouseEventHandler\n\n /**\n * Optional event handler for when the `` is touched.\n */\n onTouchStart?: React.TouchEventHandler\n\n /**\n * Optional event handler for when the `` is clicked.\n */\n onClick?: React.MouseEventHandler\n}\n\n// TODO-APP: Include the full set of Anchor props\n// adding this to the publicly exported type currently breaks existing apps\n\n// `RouteInferType` is a stub here to avoid breaking `typedRoutes` when the type\n// isn't generated yet. It will be replaced when the webpack plugin runs.\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport type LinkProps = InternalLinkProps\ntype LinkPropsRequired = RequiredKeys\ntype LinkPropsOptional = OptionalKeys>\n\nfunction isModifiedEvent(event: React.MouseEvent): boolean {\n const eventTarget = event.currentTarget as HTMLAnchorElement | SVGAElement\n const target = eventTarget.getAttribute('target')\n return (\n (target && target !== '_self') ||\n event.metaKey ||\n event.ctrlKey ||\n event.shiftKey ||\n event.altKey || // triggers resource download\n (event.nativeEvent && event.nativeEvent.which === 2)\n )\n}\n\nfunction linkClicked(\n e: React.MouseEvent,\n router: NextRouter | AppRouterInstance,\n href: string,\n as: string,\n replace?: boolean,\n shallow?: boolean,\n scroll?: boolean\n): void {\n const { nodeName } = e.currentTarget\n\n // anchors inside an svg have a lowercase nodeName\n const isAnchorNodeName = nodeName.toUpperCase() === 'A'\n\n if (isAnchorNodeName && isModifiedEvent(e)) {\n // ignore click for browser’s default behavior\n return\n }\n\n e.preventDefault()\n\n const navigate = () => {\n // If the router is an NextRouter instance it will have `beforePopState`\n const routerScroll = scroll ?? true\n if ('beforePopState' in router) {\n router[replace ? 'replace' : 'push'](href, as, {\n shallow,\n scroll: routerScroll,\n })\n } else {\n router[replace ? 'replace' : 'push'](as || href, {\n scroll: routerScroll,\n })\n }\n }\n\n React.startTransition(navigate)\n}\n\ntype LinkPropsReal = React.PropsWithChildren<\n Omit, keyof LinkProps> &\n LinkProps\n>\n\nfunction formatStringOrUrl(urlObjOrString: UrlObject | string): string {\n if (typeof urlObjOrString === 'string') {\n return urlObjOrString\n }\n\n return formatUrl(urlObjOrString)\n}\n\n/**\n * A React component that extends the HTML `` element to provide\n * [prefetching](https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating#2-prefetching)\n * and client-side navigation. This is the primary way to navigate between routes in Next.js.\n *\n * @remarks\n * - Prefetching is only enabled in production.\n *\n * @see https://nextjs.org/docs/app/api-reference/components/link\n */\nconst Link = React.forwardRef(\n function LinkComponent(props, forwardedRef) {\n let children: React.ReactNode\n\n const {\n href: hrefProp,\n as: asProp,\n children: childrenProp,\n prefetch: prefetchProp = null,\n passHref,\n replace,\n shallow,\n scroll,\n onClick,\n onMouseEnter: onMouseEnterProp,\n onTouchStart: onTouchStartProp,\n legacyBehavior = false,\n ...restProps\n } = props\n\n children = childrenProp\n\n if (\n legacyBehavior &&\n (typeof children === 'string' || typeof children === 'number')\n ) {\n children = {children}\n }\n\n const router = React.useContext(AppRouterContext)\n\n const prefetchEnabled = prefetchProp !== false\n /**\n * The possible states for prefetch are:\n * - null: this is the default \"auto\" mode, where we will prefetch partially if the link is in the viewport\n * - true: we will prefetch if the link is visible and prefetch the full page, not just partially\n * - false: we will not prefetch if in the viewport at all\n */\n const appPrefetchKind =\n prefetchProp === null ? PrefetchKind.AUTO : PrefetchKind.FULL\n\n if (process.env.NODE_ENV !== 'production') {\n function createPropError(args: {\n key: string\n expected: string\n actual: string\n }) {\n return new Error(\n `Failed prop type: The prop \\`${args.key}\\` expects a ${args.expected} in \\`\\`, but got \\`${args.actual}\\` instead.` +\n (typeof window !== 'undefined'\n ? \"\\nOpen your browser's console to view the Component stack trace.\"\n : '')\n )\n }\n\n // TypeScript trick for type-guarding:\n const requiredPropsGuard: Record = {\n href: true,\n } as const\n const requiredProps: LinkPropsRequired[] = Object.keys(\n requiredPropsGuard\n ) as LinkPropsRequired[]\n requiredProps.forEach((key: LinkPropsRequired) => {\n if (key === 'href') {\n if (\n props[key] == null ||\n (typeof props[key] !== 'string' && typeof props[key] !== 'object')\n ) {\n throw createPropError({\n key,\n expected: '`string` or `object`',\n actual: props[key] === null ? 'null' : typeof props[key],\n })\n }\n } else {\n // TypeScript trick for type-guarding:\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const _: never = key\n }\n })\n\n // TypeScript trick for type-guarding:\n const optionalPropsGuard: Record = {\n as: true,\n replace: true,\n scroll: true,\n shallow: true,\n passHref: true,\n prefetch: true,\n onClick: true,\n onMouseEnter: true,\n onTouchStart: true,\n legacyBehavior: true,\n } as const\n const optionalProps: LinkPropsOptional[] = Object.keys(\n optionalPropsGuard\n ) as LinkPropsOptional[]\n optionalProps.forEach((key: LinkPropsOptional) => {\n const valType = typeof props[key]\n\n if (key === 'as') {\n if (props[key] && valType !== 'string' && valType !== 'object') {\n throw createPropError({\n key,\n expected: '`string` or `object`',\n actual: valType,\n })\n }\n } else if (\n key === 'onClick' ||\n key === 'onMouseEnter' ||\n key === 'onTouchStart'\n ) {\n if (props[key] && valType !== 'function') {\n throw createPropError({\n key,\n expected: '`function`',\n actual: valType,\n })\n }\n } else if (\n key === 'replace' ||\n key === 'scroll' ||\n key === 'shallow' ||\n key === 'passHref' ||\n key === 'prefetch' ||\n key === 'legacyBehavior'\n ) {\n if (props[key] != null && valType !== 'boolean') {\n throw createPropError({\n key,\n expected: '`boolean`',\n actual: valType,\n })\n }\n } else {\n // TypeScript trick for type-guarding:\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const _: never = key\n }\n })\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (props.locale) {\n warnOnce(\n 'The `locale` prop is not supported in `next/link` while using the `app` router. Read more about app router internalization: https://nextjs.org/docs/app/building-your-application/routing/internationalization'\n )\n }\n if (!asProp) {\n let href: string | undefined\n if (typeof hrefProp === 'string') {\n href = hrefProp\n } else if (\n typeof hrefProp === 'object' &&\n typeof hrefProp.pathname === 'string'\n ) {\n href = hrefProp.pathname\n }\n\n if (href) {\n const hasDynamicSegment = href\n .split('/')\n .some((segment) => segment.startsWith('[') && segment.endsWith(']'))\n\n if (hasDynamicSegment) {\n throw new Error(\n `Dynamic href \\`${href}\\` found in while using the \\`/app\\` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href`\n )\n }\n }\n }\n }\n\n const { href, as } = React.useMemo(() => {\n const resolvedHref = formatStringOrUrl(hrefProp)\n return {\n href: resolvedHref,\n as: asProp ? formatStringOrUrl(asProp) : resolvedHref,\n }\n }, [hrefProp, asProp])\n\n // This will return the first child, if multiple are provided it will throw an error\n let child: any\n if (legacyBehavior) {\n if (process.env.NODE_ENV === 'development') {\n if (onClick) {\n console.warn(\n `\"onClick\" was passed to with \\`href\\` of \\`${hrefProp}\\` but \"legacyBehavior\" was set. The legacy behavior requires onClick be set on the child of next/link`\n )\n }\n if (onMouseEnterProp) {\n console.warn(\n `\"onMouseEnter\" was passed to with \\`href\\` of \\`${hrefProp}\\` but \"legacyBehavior\" was set. The legacy behavior requires onMouseEnter be set on the child of next/link`\n )\n }\n try {\n child = React.Children.only(children)\n } catch (err) {\n if (!children) {\n throw new Error(\n `No children were passed to with \\`href\\` of \\`${hrefProp}\\` but one child is required https://nextjs.org/docs/messages/link-no-children`\n )\n }\n throw new Error(\n `Multiple children were passed to with \\`href\\` of \\`${hrefProp}\\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children` +\n (typeof window !== 'undefined'\n ? \" \\nOpen your browser's console to view the Component stack trace.\"\n : '')\n )\n }\n } else {\n child = React.Children.only(children)\n }\n } else {\n if (process.env.NODE_ENV === 'development') {\n if ((children as any)?.type === 'a') {\n throw new Error(\n 'Invalid with child. Please remove or use .\\nLearn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor'\n )\n }\n }\n }\n\n const childRef: any = legacyBehavior\n ? child && typeof child === 'object' && child.ref\n : forwardedRef\n\n // Use a callback ref to attach an IntersectionObserver to the anchor tag on\n // mount. In the future we will also use this to keep track of all the\n // currently mounted instances, e.g. so we can re-prefetch them after\n // a revalidation or refresh.\n const observeLinkVisibilityOnMount = React.useCallback(\n (element: HTMLAnchorElement | SVGAElement) => {\n if (prefetchEnabled && router !== null) {\n mountLinkInstance(element, href, router, appPrefetchKind)\n }\n return () => {\n unmountLinkInstance(element)\n }\n },\n [prefetchEnabled, href, router, appPrefetchKind]\n )\n\n const mergedRef = useMergedRef(observeLinkVisibilityOnMount, childRef)\n\n const childProps: {\n onTouchStart?: React.TouchEventHandler\n onMouseEnter: React.MouseEventHandler\n onClick: React.MouseEventHandler\n href?: string\n ref?: any\n } = {\n ref: mergedRef,\n onClick(e) {\n if (process.env.NODE_ENV !== 'production') {\n if (!e) {\n throw new Error(\n `Component rendered inside next/link has to pass click event to \"onClick\" prop.`\n )\n }\n }\n\n if (!legacyBehavior && typeof onClick === 'function') {\n onClick(e)\n }\n\n if (\n legacyBehavior &&\n child.props &&\n typeof child.props.onClick === 'function'\n ) {\n child.props.onClick(e)\n }\n\n if (!router) {\n return\n }\n\n if (e.defaultPrevented) {\n return\n }\n\n linkClicked(e, router, href, as, replace, shallow, scroll)\n },\n onMouseEnter(e) {\n if (!legacyBehavior && typeof onMouseEnterProp === 'function') {\n onMouseEnterProp(e)\n }\n\n if (\n legacyBehavior &&\n child.props &&\n typeof child.props.onMouseEnter === 'function'\n ) {\n child.props.onMouseEnter(e)\n }\n\n if (!router) {\n return\n }\n\n if (!prefetchEnabled || process.env.NODE_ENV === 'development') {\n return\n }\n\n onNavigationIntent(e.currentTarget as HTMLAnchorElement | SVGAElement)\n },\n onTouchStart: process.env.__NEXT_LINK_NO_TOUCH_START\n ? undefined\n : function onTouchStart(e) {\n if (!legacyBehavior && typeof onTouchStartProp === 'function') {\n onTouchStartProp(e)\n }\n\n if (\n legacyBehavior &&\n child.props &&\n typeof child.props.onTouchStart === 'function'\n ) {\n child.props.onTouchStart(e)\n }\n\n if (!router) {\n return\n }\n\n if (!prefetchEnabled) {\n return\n }\n\n onNavigationIntent(\n e.currentTarget as HTMLAnchorElement | SVGAElement\n )\n },\n }\n\n // If child is an tag and doesn't have a href attribute, or if the 'passHref' property is\n // defined, we specify the current 'href', so that repetition is not needed by the user.\n // If the url is absolute, we can bypass the logic to prepend the basePath.\n if (isAbsoluteUrl(as)) {\n childProps.href = as\n } else if (\n !legacyBehavior ||\n passHref ||\n (child.type === 'a' && !('href' in child.props))\n ) {\n childProps.href = addBasePath(as)\n }\n\n return legacyBehavior ? (\n React.cloneElement(child, childProps)\n ) : (\n \n {children}\n \n )\n }\n)\n\nexport default Link\n","import axios from 'axios';\n\n// axios instance with a dynamic base URL\nconst createApiInstance = (apiURL) => {\n return axios.create({\n baseURL: apiURL\n});\n};\n\n// Default Authenteak API base URL\nconst API = createApiInstance(process.env.NEXT_PUBLIC_api_endpoint + '/api');\n\n// proxy API base URL\nconst teakAPI = createApiInstance(process.env.NEXT_PUBLIC_siteUrl);\n\nexport { teakAPI, API };\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"block\":\"Button_block__ylP4I\",\"autoHeight\":\"Button_autoHeight__h_wNQ\",\"noAnimate\":\"Button_noAnimate__AJN_B\",\"round\":\"Button_round__e3Hwr\",\"size__icon\":\"Button_size__icon__ta4z_\",\"size__full\":\"Button_size__full__HNRNA\",\"size__xs\":\"Button_size__xs__aI7fU\",\"size__sm\":\"Button_size__sm__j5gaa\",\"size__md\":\"Button_size__md__tJhPA\",\"size__lg\":\"Button_size__lg__jzMsP\",\"size__xl\":\"Button_size__xl__VeALW\",\"size__xxl\":\"Button_size__xxl__wSWbh\",\"color__white\":\"Button_color__white__ZvjVh\",\"color__transparent\":\"Button_color__transparent__LdZnv\",\"color__transparent-link\":\"Button_color__transparent-link__PfRBx\",\"color__green-outline\":\"Button_color__green-outline__gJhj3\",\"color__dark-outline\":\"Button_color__dark-outline__10XK7\",\"color__dove-outline\":\"Button_color__dove-outline__7Qfca\",\"color__indigo-outline\":\"Button_color__indigo-outline__SKLJb\",\"color__ocean-outline\":\"Button_color__ocean-outline__m7aNx\",\"color__ice-outline\":\"Button_color__ice-outline__sOt2a\"};","import PropTypes from 'prop-types';\nimport { useContext, useRef, useState, useEffect } from 'react';\nimport { GlobalContext } from 'contexts/GlobalContext';\nimport Button from \"components/forms/Button\";\nimport Input from \"components/forms/Input\";\nimport { CheckEmail } from 'services/myaccount/AuthContext.service';\nimport { useSearchParams } from 'next/navigation';\nimport Loader from 'components/feedback/Loader';\nimport clsx from 'clsx';\n\nimport utils from 'styles/globals/utils.module.scss';\nimport Style from \"components/applications/my_account/styles/Auth.module.scss\"\n\nfunction AuthEmail({ setShown }){\n const [ global, dispatch ] = useContext(GlobalContext)\n const [ email, setEmail ] = useState(\"\")\n const [ hasError, setError ] = useState(false)\n const emailRef = useRef()\n const [disabled, setDisabled] = useState(false);\n const searchParams = useSearchParams();\n\n\n const handleEmail = (value) => {\n setEmail(value)\n }\n \n useEffect(() => {\n if (searchParams.get('emailID')) {\n setEmail(searchParams.get('emailID'));\n } \n\n }, [])\n\n\n useEffect(() => {\n\n if (searchParams.get('emailID') && email.length) {\n saveEmail();\n }\n\n }, [email])\n\n const saveEmail = e => {\n if (e) {\n e.preventDefault();\n }\n\n if( /[^@\\s]+@[^@\\s]+\\.[^@\\s]+/i.test(email) === false ){\n setError(true);\n\n }else{\n setError(false);\n setDisabled(true);\n\n dispatch({\n type: \"setEmail\",\n data: {\n email\n }\n });\n\n \n CheckEmail(email)\n .then((response) => {\n if(response.data.exists){\n setShown({ email: false, password: true })\n \n }else{\n setShown({ email: false, password: false, register: true })\n }\n \n }).catch((error) => {\n setShown({ email: false, password: false, register: true })\n });\n }\n\n }\n\n\n return(\n
\n
\n \n Enter your email address to sign in, or to create an account\n \n\n \n \n \n
\n
\n )\n}\n\n\nAuthEmail.propTypes = {\n setShown: PropTypes.func\n}\n\n\nexport default AuthEmail;","\n/**\n * Determines if a link is internal or external\n * @param {string} href \n * @returns boolean\n */\n\nexport default function isInternalLink(href = \"\") { \n return (typeof href === \"string\" && href.startsWith('/')) || new RegExp(`^(https?:\\/\\/(www\\.)?${process.env.NEXT_PUBLIC_siteUrl})`, 'i').test(href);\n}","import isInternalLink from \"lib/Utils/isInternalLink\";\nimport Link from \"next/link\";\n\nfunction SmartLink({ href, children, className, title, ...rest }){\n\tconst internal = isInternalLink(href);\n\n\treturn(\n\t\t\n\t\t\t{children}\n\t\t\n\t)\n};\n\nexport default SmartLink;\n","\"use client\"\n\nimport Style from './Loader.module.scss';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { IconSpinner } from 'components/icons/IconSpinner';\nimport { useEffect, useState } from 'react';\n\n\nfunction Loader({ \n isLoading = false, \n isSuccessful = false, \n hasError = false, \n isLarge = false, \n children = null,\n isGreenCheck = false,\n isDark = false,\n className = \"\"\n}){\n const [ success, setSuccess ] = useState(false)\n const [ error, setError ] = useState(false)\n const [ loading, setLoading ] = useState(false)\n\n\n useEffect(() => {\n setLoading(isLoading)\n\n if( isSuccessful || hasError ){\n setLoading(false)\n\n setSuccess(isSuccessful)\n setError(hasError)\n\n setTimeout(() => {\n setSuccess(false)\n setError(false)\n }, 2000)\n }\n\n \n return () => {\n setLoading(false)\n setSuccess(false)\n setError(false)\n }\n\n }, [isSuccessful, hasError, isLoading])\n\n\n return(\n <>\n {success || error || loading ?\n
\n {success &&
}\n {error &&
}\n\n {loading && (\n \n )}\n
\n :\n children\n }\n \n )\n}\n\n\nLoader.propTypes = {\n isLoading: PropTypes.bool,\n isSuccessful: PropTypes.bool,\n hasError: PropTypes.bool,\n isLarge: PropTypes.bool,\n isDark: PropTypes.bool,\n isGreenCheck: PropTypes.bool,\n className: PropTypes.string,\n children: PropTypes.node\n}\n\nexport default Loader;","\nexport function IconClose(props){\n return(\n \n \n \n )\n}","\nexport function IconSearch(props){\n return(\n \n \n \n \n )\n}","import { API, teakAPI } from 'services/AuthenteakApi';\n\nconst AuthHeader = (authData) => {\n if(!authData){\n return false;\n }\n return { headers: {\"Authorization\" : `Bearer ${authData.access_token}`} }\n}\n\n\nconst AuthCheck = (authData, redirectIfGuest = true) => {\n try {\n if( !authData && redirectIfGuest && window ){\n window.location.href('/login?return='+window.location.pathname);\n return;\n }\n\n if(authData?.length){\n return authData;\n }\n\n } catch (e) {\n return false;\n }\n\n return false;\n}\n\n\n\nconst CheckEmail = (email) => {\n return teakAPI.get(\"/api/teakAPI/accounts/emailExists/\"+email);\n}\n\nconst LoginUser = ( credentials ) => { //this is already server call used only in nextauth.js file\n return API.post(\"/login\", credentials)\n}\n\nconst GetAccount = (authData) => {//already server call\n let headers = AuthHeader(authData);\n return API.get(\"/accounts\", headers)\n}\n\nconst UpdateAccount = (authData, userData) => {\n let headers = AuthHeader(authData);\n return teakAPI.put(\"/api/teakAPI/accounts\", userData, headers)\n}\n\nconst GetAddresses = (authData) => { //already server call\n let headers = AuthHeader(authData); \n return API.get(\"/accounts/addresses\", headers) \n}\n\nconst GetAddress = (authData, address_id) => { //already server call\n let headers = AuthHeader(authData);\n return API.get(\"/accounts/addresses/\"+address_id, headers)\n}\n\nconst GetOrders = (authData) => { //already server call\n let headers = AuthHeader(authData);\n return API.get(\"/accounts/orders\", headers)\n}\n\nconst GetWishlists = (authData) => {\n let headers = AuthHeader(authData);\n return teakAPI.get(\"/api/teakAPI/accounts/wishlists\", headers)\n}\n\nconst GetWishlist = (authData, wishlist_id) => {\n let headers = AuthHeader(authData);\n return teakAPI.get(\"/api/teakAPI/accounts/wishlists/\"+wishlist_id, headers)\n}\n\nconst RemoveProductsFromWishlist = (authData, wishlist_id, product_ids) => {\n let headers = AuthHeader(authData);\n return teakAPI.post(\"/api/teakAPI/accounts/wishlists/\"+wishlist_id+\"/removeProductsFromList\", product_ids, headers)\n}\n\nconst AddProductsToWishlist = (authData, wishlist_id, product_ids) => {\n let headers = AuthHeader(authData);\n return teakAPI.post(\"/api/teakAPI/accounts/wishlists/\"+wishlist_id+\"/addProductsToList\", product_ids, headers)\n}\n\nconst GetOrder = (authData, order_id) => { // server call\n let headers = AuthHeader(authData);\n return API.get(\"/accounts/orders/\"+order_id, headers)\n}\n\nconst CreateAddress = (authData, address) => {\n let headers = AuthHeader(authData);\n return teakAPI.post(\"/api/teakAPI/accounts/addresses\", address, headers)\n}\n\nconst DeleteAddress = (authData, address_id) => {\n let headers = AuthHeader(authData);\n return teakAPI.delete(\"/api/teakAPI/accounts/addresses/\"+address_id, headers)\n}\n\nconst UpdateAddress = (authData, addressData) => {\n let headers = AuthHeader(authData);\n return teakAPI.put(\"/api/teakAPI/accounts/addresses/\"+addressData.id, addressData, headers)\n}\n\nconst CreateWishlist = (authData, wishlist) => {\n let headers = AuthHeader(authData);\n return teakAPI.post(\"/api/teakAPI/accounts/wishlists\", wishlist, headers)\n}\n\nconst LogoutUser = (authData) => { // server call\n let headers = AuthHeader(authData);\n return API.post(\"/logout\", {}, headers)\n}\n\nconst ForgotPassword = ( credentials ) => {\n return teakAPI.post(\"/api/teakAPI/forgotPassword\", credentials)\n}\n\nconst SendMagicLink = ( credentials ) => {\n return teakAPI.post(\"/api/teakAPI/sendMagicLink\", credentials)\n}\n\nconst RegisterUser = (userData) => {\n return teakAPI.post(\"/api/teakAPI/accounts\", userData)\n}\n\nconst UpdatePassword = (payload) => {\n return teakAPI.post(\"/api/teakAPI/updatePassword\", payload)\n}\n\nconst SignInWithToken = (payload) => { // server call\n return API.post(\"/loginWithToken\", payload)\n}\n\n\nexport {\n AuthCheck,\n CheckEmail,\n ForgotPassword,\n SendMagicLink,\n RegisterUser,\n GetAccount,\n UpdateAccount,\n GetOrder,\n GetWishlists,\n GetWishlist,\n AddProductsToWishlist,\n RemoveProductsFromWishlist,\n GetAddress,\n CreateAddress,\n UpdateAddress,\n DeleteAddress,\n GetOrders,\n CreateWishlist,\n GetAddresses,\n LoginUser,\n UpdatePassword,\n SignInWithToken,\n LogoutUser\n}","\nexport function IconInputError(props){\n return(\n \n \n \n )\n}","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e))for(t=0;t\n {children}\n \n );\n }\n\n\n // non link functional button\n function StandardButton(){\n return(\n \n )\n }\n\n\n // if you just need a fake button with no functionally\n function PsedoButton(){\n return(\n
\n {children}\n
\n )\n }\n\n\n\n function getType(){\n switch(type){\n case \"link\": return LinkButton();\n case \"psedo\": return PsedoButton();\n default: return StandardButton()\n }\n }\n\n\n return (\n <>\n {getType()}\n \n )\n}\n\n\nButton.propTypes = {\n color: PropTypes.oneOfType([ PropTypes.string, PropTypes.object ]),\n size: PropTypes.oneOf([\"xs\", \"sm\", \"md\", \"lg\", \"xl\", \"xxl\", \"icon\", \"full\"]),\n isRound: PropTypes.bool,\n isDisabled: PropTypes.bool,\n variant: PropTypes.oneOf([\"outline\", \"link\"]),\n href: PropTypes.string,\n type: PropTypes.oneOf([\"link\", \"button\", \"submit\", \"reset\", \"psedo\"]),\n title: PropTypes.string,\n icon: PropTypes.bool,\n name: PropTypes.string,\n noAnimate: PropTypes.bool,\n autoHeight: PropTypes.bool,\n className: PropTypes.string\n};\n\n\nexport default Button;","// extracted by mini-css-extract-plugin\nmodule.exports = {\"block\":\"Loader_block___ga_t\",\"spinner\":\"Loader_spinner__2v_m1\",\"spin\":\"Loader_spin__pmSzK\",\"largeSpinner\":\"Loader_largeSpinner__Zn3BA\",\"greenCheckmark\":\"Loader_greenCheckmark__dwuJr\",\"draw\":\"Loader_draw__29Tbu\",\"checkmark\":\"Loader_checkmark__YncRO\",\"error\":\"Loader_error__wr2_0\",\"shake\":\"Loader_shake__4Llqb\"};","\nexport function IconSpinner(props){\n const { fill, width, height, className, isDark } = props;\n\n return(\n \n \n \n \n \n \n \n )\n}","/**\n * Removes ALL spaces from a string\n * @param {String} string \n * @returns a string with no spaces\n */\n\nexport default function removeSpaces(string = \"\"){\n return string.replace(/\\s/g, '');\n}\n","\"use client\"\n\n/* eslint-disable react-hooks/exhaustive-deps */\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useId, useRef, useState } from 'react';\nimport clsx from 'clsx';\nimport removeSpaces from 'lib/Utils/removeSpaces';\nimport { IconClose } from 'components/icons/IconClose';\nimport { IconInputError } from 'components/icons/IconInputError';\nimport { IconSearch } from 'components/icons/IconSearch';\n\nimport Style from './Input.module.scss';\n\n\n\nconst Input = React.forwardRef(({\n type = \"text\",\n className,\n autoComplete,\n label,\n name,\n required,\n disabled,\n error = false,\n value,\n canClear,\n placeholder,\n min,\n max,\n id,\n accept,\n maxLength,\n minLength,\n readOnly,\n helpText,\n controlClass,\n unitText = null,\n onFocus = () => null,\n onBlur = () => null,\n onChange = () => null,\n onKeyUp = () => null,\n onInput = () => null,\n autoFocus = false,\n clearBtnTabIndex = 0,\n ...other\n}, ref ) => {\n\n const inputRef = useRef()\n const [ newValue, setValue ] = useState(\"\")\n const [ inputType, setType ] = useState(type);\n const [ hasFocus, setHasFocus ] = useState(null)\n const genId = useId()\n\n useEffect(() => {\n if( autoFocus ){ \n inputRef.current.focus() \n }\n \n }, [])\n\n\n useEffect(() => {\n if( value || value === 0 ){\n setValue(value)\n setHasFocus(true)\n }\n \n }, [ value ])\n\n \n \n const togglePassword = () => {\n const newType = inputType === \"text\" ? \"password\" : \"text\"\n setType(newType)\n }\n\n\n const triggerEvents = (event) => {\n const value = inputRef.current.value;\n\n if( onChange ){ onChange(value, inputRef.current, event); }\n if( onKeyUp ){ onKeyUp(value, inputRef.current, event); }\n if( onInput ){ onInput(value, inputRef.current, event); }\n }\n\n\n function checkForValue(e){\n const hasValue = ref?.current?.value.length || e?.target?.value.length;\n const hasCurrentFocus = document.activeElement === inputRef.current;\n\n if( \n ((hasCurrentFocus && hasValue) ||\n (hasCurrentFocus && !hasValue) || \n (!hasCurrentFocus && hasValue)) &&\n e.type === \"focus\"\n ){\n setHasFocus(true)\n\n }else if( (!hasCurrentFocus && !hasValue) ){\n setHasFocus(false)\n onBlur()\n\n }else if ( e.type === \"blur\" ){\n onBlur()\n }\n }\n\n\n const inputChange = (e) => {\n triggerEvents(e)\n setValue(ref?.current?.value ?? e?.target?.value)\n checkForValue(e)\n }\n\n\n const clearInput = () => {\n inputRef.current.value = \"\";\n\n setValue(\"\")\n triggerEvents()\n onBlur()\n }\n\n\n return(\n
\n
\n {\n inputRef.current = node;\n\n if (typeof ref === 'function') {\n ref(node);\n\n } else if (ref) {\n ref.current = node;\n }\n }}\n id={removeSpaces(id ?? genId)}\n autoComplete={!autoComplete && \"new-password\"}\n type={inputType}\n name={name}\n className={clsx(Style.control, controlClass, error && Style.error__control)} \n required={required}\n placeholder={placeholder}\n value={newValue}\n accept={accept}\n disabled={disabled}\n onChange={inputChange}\n onInput={inputChange}\n onKeyUp={inputChange}\n onFocus={() => {\n onFocus()\n setHasFocus(true)\n }}\n onBlur={checkForValue}\n min={min}\n max={max}\n readOnly={readOnly}\n minLength={type === \"password\" ? 8 : minLength}\n maxLength={type === \"password\" ? 20 : maxLength}\n {...other}\n />\n\n {error && (\n \n )}\n\n\n {(canClear && hasFocus && type !== \"password\") && (\n \n )}\n \n\n {type === \"password\" && (\n \n )}\n\n\n {unitText && (\n \n {unitText}\n \n )}\n\n\n inputRef.current.focus()}\n className={clsx(Style.label, error && Style.error__label, !!unitText && Style.hasUnit)} \n htmlFor={removeSpaces(id ?? genId)}\n style={{ width: (!unitText && (type !== \"search\" || type !== \"password\" )) ? \"100%\" : \"80%\" }}\n >\n {label}\n \n\n {type === \"search\" && }\n
\n\n {helpText && \n

\n {helpText}\n

\n }\n
\n )\n})\n\nInput.displayName = 'Input';\n\n\nInput.propTypes = {\n type: PropTypes.oneOf([\"text\", \"email\", \"number\", \"time\", \"url\", \"password\", \"search\", \"tel\" ]),\n label: PropTypes.string,\n placeholder: PropTypes.string,\n name: PropTypes.string,\n controlClass: PropTypes.string,\n value: PropTypes.any,\n onChange: PropTypes.func,\n required: PropTypes.bool,\n disabled: PropTypes.bool,\n readOnly: PropTypes.bool,\n helpText: PropTypes.string,\n canClear: PropTypes.bool,\n accept: PropTypes.string,\n error: PropTypes.bool,\n min: PropTypes.number,\n max: PropTypes.number,\n}\n\n\nexport default Input;"],"names":["useMergedRef","refA","refB","cleanupA","useRef","cleanupB","useCallback","current","cleanupFnA","cleanupFnB","applyRef","cleanup","initialState","user","isLoggedIn","email","customer_group_id","exists","external_customer_id","user_id","cart","thirdParty","zendesk","nostoSession","process","urlParams","urlAction","widget","isOpen","component","showBackdrop","page","state","action","type","data","toastDefaults","position","autoClose","hideProgressBar","closeOnClick","pauseOnHover","draggable","progress","undefined","newestOnTop","createContext","props","dispatch","useReducer","GlobalReducer","GlobalContext","Provider","value","children","ToastContainer","stacked","formatStringOrUrl","urlObjOrString","formatUrl","React","Link","forwardRef","LinkComponent","forwardedRef","child","href","hrefProp","as","asProp","childrenProp","prefetch","prefetchProp","passHref","replace","shallow","scroll","onClick","onMouseEnter","onMouseEnterProp","onTouchStart","onTouchStartProp","legacyBehavior","restProps","a","router","useContext","AppRouterContext","prefetchEnabled","appPrefetchKind","PrefetchKind","AUTO","FULL","useMemo","resolvedHref","only","childRef","ref","observeLinkVisibilityOnMount","mountLinkInstance","element","unmountLinkInstance","childProps","e","defaultPrevented","linkClicked","nodeName","currentTarget","toUpperCase","isModifiedEvent","target","eventTarget","getAttribute","event","metaKey","ctrlKey","shiftKey","altKey","nativeEvent","which","preventDefault","startTransition","routerScroll","onNavigationIntent","env","NODE_ENV","isAbsoluteUrl","addBasePath","cloneElement","createApiInstance","axios","create","baseURL","apiURL","teakAPI","AuthEmail","setShown","global","setEmail","useState","hasError","setError","emailRef","disabled","setDisabled","searchParams","useSearchParams","useEffect","get","length","saveEmail","test","CheckEmail","then","response","password","register","catch","error","form","onSubmit","method","fieldset","legend","className","clsx","utils","Input","label","placeholder","name","autoFocus","handleEmail","helpText","Button","size","color","Style","Loader","isLoading","propTypes","PropTypes","SmartLink","title","rest","internal","isInternalLink","startsWith","RegExp","rel","isSuccessful","isLarge","isGreenCheck","isDark","success","setSuccess","loading","setLoading","setTimeout","div","role","IconSpinner","IconClose","svg","viewBox","xmlSpace","aria-label","path","d","IconSearch","focusable","aria-hidden","AuthHeader","authData","headers","access_token","AuthCheck","redirectIfGuest","window","location","pathname","UpdateAccount","userData","put","GetWishlist","wishlist_id","RemoveProductsFromWishlist","product_ids","post","CreateAddress","address","DeleteAddress","address_id","delete","UpdateAddress","addressData","id","CreateWishlist","wishlist","ForgotPassword","credentials","SendMagicLink","RegisterUser","UpdatePassword","payload","IconInputError","variant","isRound","isDisabled","noAnimate","icon","autoHeight","newProps","useId","buttonStyle","class","getType","PsedoButton","button","fill","width","height","linearGradient","x1","y1","x2","y2","stop","offset","stopColor","removeSpaces","string","autoComplete","required","canClear","min","max","accept","maxLength","minLength","readOnly","controlClass","unitText","onFocus","onBlur","onChange","onKeyUp","onInput","clearBtnTabIndex","other","inputRef","newValue","setValue","inputType","setType","hasFocus","setHasFocus","genId","focus","triggerEvents","checkForValue","hasValue","hasCurrentFocus","document","activeElement","inputChange","input","node","clearInput","tabIndex","togglePassword","newType","span","htmlFor","style","p","displayName"],"sourceRoot":"","ignoreList":[15]}