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AAU,W,OAAVA,C,EAIA1R,YAAW,W,OAAXA,C,cAZQ,Q,6jBAEd,IAAMhI,EAAO2Z,EAAIC,SAASzZ,SAAS,oBAC7BqZ,EAAQG,EAClBC,SACAJ,MAAM,iBACNrZ,SAAS,qBACCsZ,EAAQE,EAAIC,SAASzZ,SAAS,4BAC9BuZ,EAAaC,EACvBE,SACAC,UAAU,gCACV3Z,SAAS,kCACC6H,EAAc2R,EAAII,SAASC,MAAM,CAAC,E,sJCVlCtO,YAAW,W,OAAXA,C,EAUArB,gBAAe,W,OAAfA,C,EAEAwB,mBAAkB,W,OAAlBA,C,EAMAvB,YAAW,W,OAAXA,C,cApBE,Q,mDAER,IAAMoB,GAActJ,EAAAA,EAAAA,SACzB,aACA,eACA,gBACA,UACA,YACA,MACA,UAGWiI,GAAkBjI,EAAAA,EAAAA,SAAG,eAAgB,YAAa,aAElDyJ,GAAqBzJ,EAAAA,EAAAA,SAChC,aACA,qBACA,qBAGWkI,GAAclI,EAAAA,EAAAA,SACzB,kBACA,yBACA,eACA,SACA,aACA,aACA,OACA,eACA,iBACA,gBACA,UACA,UACA,eACA,MACA,eACA,mBACA,UACA,2BACA,mBACA,0B","sources":["webpack://webstaurantstore/./__alias__/re-captcha/index.tsx","webpack://webstaurantstore/./__alias__/re-captcha/re-captcha-disclaimer.tsx","webpack://webstaurantstore/./__alias__/re-captcha/re-captcha-provider.tsx","webpack://webstaurantstore/./__alias__/re-captcha/re-captcha.tsx","webpack://webstaurantstore/./__alias__/re-captcha/use-re-captcha.tsx","webpack://webstaurantstore/./common/DrawerModal/index.tsx","webpack://webstaurantstore/./common/Form/ConnectForm.tsx","webpack://webstaurantstore/./common/Form/Input.tsx","webpack://webstaurantstore/./common/Form/InputBase.tsx","webpack://webstaurantstore/./common/Form/InputError.tsx","webpack://webstaurantstore/./common/Form/SelectInput.tsx","webpack://webstaurantstore/./common/Form/index.tsx","webpack://webstaurantstore/./common/MediaViewerV2/SharedComponents/VideoViewer/hooks/useGtmVideoTracking.tsx","webpack://webstaurantstore/./common/Pagination/PaginationItem.tsx","webpack://webstaurantstore/./common/Pagination/index.tsx","webpack://webstaurantstore/./common/PopupArrow/index.tsx","webpack://webstaurantstore/./common/contexts/FeatureFlagProvider/index.tsx","webpack://webstaurantstore/./common/videoPlayer/ZestVideoPlayer.tsx","webpack://webstaurantstore/./productListing/ProductBox/GoodBetterBestRibbon.tsx","webpack://webstaurantstore/./productListing/ProductBox/Pricing/Map/LoginLink.tsx","webpack://webstaurantstore/./ProductDetails/Pricing/getLowestPrice.ts","webpack://webstaurantstore/./ProductDetails/Pricing/isActiveSale.ts","webpack://webstaurantstore/./ProductDetails/Pricing/shouldDisplayBelowMapPrice.ts","webpack://webstaurantstore/./ProductDetails/Pricing/shouldDisplayMapStyle.ts","webpack://webstaurantstore/./ProductDetails/Pricing/shouldDisplayQuantityDiscounts.ts","webpack://webstaurantstore/./__alias__/dialog/index.ts","webpack://webstaurantstore/./__alias__/store/index.ts","webpack://webstaurantstore/./common/DrawerModal/drawerModal.styles.ts","webpack://webstaurantstore/./common/Form/inputStyles.ts","webpack://webstaurantstore/./common/Form/useYupValidator.ts","webpack://webstaurantstore/./common/Form/validationSchema.ts","webpack://webstaurantstore/./common/Pagination/Pagination.styles.ts"],"sourcesContent":["export * from \"./use-re-captcha\";\nexport * from \"./re-captcha-provider\";\nexport * from \"./re-captcha-disclaimer\";\nexport * from \"./re-captcha\";","/* eslint-disable import/prefer-default-export */\nimport clsx from \"clsx\";\nimport React, { HTMLAttributes } from \"react\";\ntype RecaptchaDisclaimerProps = HTMLAttributes & {\n anchorProps?: HTMLAttributes;\n};\nexport function RecaptchaDisclaimer({\n anchorProps,\n className,\n ...rest\n}: RecaptchaDisclaimerProps) {\n return \n This form is protected by reCAPTCHA and the Google\n
\n \n Privacy Policy\n {\" \"}\n and{\" \"}\n \n Terms of Service\n {\" \"}\n apply.\n
;\n}","import React, { createContext, ReactNode, useCallback, useEffect, useMemo, useRef } from \"react\";\nimport { logException } from \"@wss/error-tracking\";\nimport { Throwable } from \"@wss/error-tracking/throwable\";\nimport { env } from \"~/common/Environment\";\ntype Recaptcha = {\n execute: (key: string, opts?: {\n action?: string;\n }) => Promise;\n ready: (cb: () => void) => void;\n};\nconst recaptchaSiteKeys = {\n local: \"6Lf0ILAUAAAAAAG_5Z5G2ihgXtxsjvw6CKYt3OHs\",\n development: \"6Lf0ILAUAAAAAAG_5Z5G2ihgXtxsjvw6CKYt3OHs\",\n test: \"6Lf0ILAUAAAAAAG_5Z5G2ihgXtxsjvw6CKYt3OHs\",\n production: \"6LcMB7EUAAAAAIBgYhbNBrCNyKHlQtMgVYTjpT8V\"\n};\n\n/** Preflight uses the dev key */\nconst recaptchaSiteKey = recaptchaSiteKeys[env.isPreflight ? \"development\" : env.current];\nconst scriptId = \"google-recaptcha-v3\";\nexport type RecaptchaContextType = {\n /** See {@link useReCaptcha } for more information on how to use ReCaptcha. */\n execute: (action?: string) => Promise>;\n /** Allows a consumer to wait for the re-captcha script to be loaded */\n onLoad: (cb: () => void) => void;\n};\nexport const RecaptchaContext = createContext(null);\ntype ReCaptchaProviderProps = {\n action?: string;\n language?: string;\n useEnterprise?: boolean;\n children?: ReactNode;\n};\n\n/**\n * Provides all pages in SF with the ability to use ReCaptcha.\n *\n * See {@link useReCaptcha } for more information on how to use ReCaptcha.\n *\n * {@link https://developers.google.com/recaptcha/docs/v3 ReCaptcha Documentation}\n *\n * {@link https://github.com/t49tran/react-google-recaptcha-v3 Github Reference}\n */\nexport function ReCaptchaProvider({\n action: defaultAction,\n useEnterprise = false,\n language,\n children\n}: ReCaptchaProviderProps): JSX.Element {\n const instanceRef = useRef(null);\n const subs = useRef void>>(new Set());\n const onLoad: RecaptchaContextType[\"onLoad\"] = useCallback(function handleOnLoad(cb: () => void): void {\n if (!instanceRef.current) {\n subs.current.add(cb);\n return;\n }\n cb();\n }, []);\n const execute: RecaptchaContextType[\"execute\"] = useCallback(async function onExecute(action?: string): ReturnType {\n if (!instanceRef.current) {\n const error = new Error(\"Google Recaptcha has not been loaded\");\n await logException(error);\n return {\n isError: true,\n error\n };\n }\n try {\n const result = await instanceRef.current.execute(recaptchaSiteKey, {\n action: action ?? defaultAction\n });\n return {\n isError: false,\n value: result\n };\n } catch (error) {\n await logException(error);\n return {\n isError: true,\n error\n };\n }\n }, [defaultAction]);\n const handleLoad = useCallback(async function onLoad(): Promise {\n if (!window.grecaptcha) {\n await logException(new Error(\"Recaptcha was no able to load\"));\n return;\n }\n const ref: Recaptcha = useEnterprise ? window.grecaptcha.enterprise : window.grecaptcha;\n ref.ready(function handleRecaptchaReady() {\n instanceRef.current = ref;\n subs.current.forEach(sub => sub());\n subs.current.clear();\n });\n }, [useEnterprise]);\n const handleError = useCallback(async function onError() {\n // We ignore the error because the execute function will return a Throwable error allowing the consumer to determine how to notify the user that re-captcha has failed to load.\n }, []);\n const handleUnload = useCallback(function onUnload() {\n const nodeBadge = document.querySelector(\".grecaptcha-badge\");\n if (nodeBadge && nodeBadge.parentNode) {\n document.body.removeChild(nodeBadge.parentNode);\n }\n instanceRef.current = null;\n const js = document.querySelector(`#${scriptId}`);\n js?.removeEventListener(\"load\", handleLoad);\n js?.removeEventListener(\"error\", handleError);\n }, [handleError, handleLoad]);\n useEffect(function initRecaptchaScript() {\n const script = document.querySelector(`#${scriptId}`);\n if (script) {\n if (window.grecaptcha) {\n // The ReCaptcha script has already loaded and executed\n handleLoad();\n } else {\n // Wait until the script finishes loading\n script.addEventListener(\"load\", handleLoad);\n }\n return handleUnload;\n }\n const scriptName = useEnterprise ? \"enterprise.js\" : \"api.js\";\n const url = new URL(`https://www.google.com/recaptcha/${scriptName}`);\n url.searchParams.append(\"render\", recaptchaSiteKey);\n if (language) {\n url.searchParams.append(\"hl\", language);\n }\n const js = document.createElement(\"script\");\n js.id = scriptId;\n js.src = url.href;\n js.addEventListener(\"load\", handleLoad);\n js.addEventListener(\"error\", handleError);\n document.head.appendChild(js);\n return handleUnload;\n }, [handleError, handleLoad, handleUnload, language, useEnterprise]);\n const value = useMemo(() => ({\n execute,\n onLoad\n }), [execute, onLoad]);\n return \n {children}\n ;\n}","/* eslint-disable import/prefer-default-export */\nimport { useEffect } from \"react\";\nimport { useReCaptcha } from \"./use-re-captcha\";\ntype ReCaptchaProps = {\n action?: string;\n onVerify: (token: string) => void | Promise;\n onError?: (error: unknown) => void | Promise;\n};\n\n/** @deprecated Please use the `useRecaptcha` hook instead */\nexport function ReCaptcha({\n action,\n onVerify,\n onError\n}: ReCaptchaProps): null {\n const context = useReCaptcha();\n useEffect(function initRecaptchaToken() {\n async function executeRecaptcha(): Promise {\n try {\n const result = await context.execute(action);\n if (result.isError) return onError?.(result.error);\n return onVerify(result.value);\n } catch (error) {\n return onError?.(error);\n }\n }\n context.onLoad(executeRecaptcha);\n }, [action, context, onError, onVerify]);\n return null;\n}","/* eslint-disable import/prefer-default-export */\nimport { useContext } from \"react\";\nimport { RecaptchaContext, RecaptchaContextType } from \"./re-captcha-provider\";\nexport type UseReCaptcha = {\n /**\n * Used to manually trigger an audit of the current session.\n *\n * Returns a token that can be sent to the server to determine the user's trust score.\n *\n * @example\n * const reCaptcha = useReCaptcha(\"Login-Form-Submit\");\n *\n * function handleSubmit(): Promise {\n * try {\n * const result = await reCaptcha.execute();\n * // If an action was not passed to useReCaptcha we could pass one now\n * // reCaptcha.execute(\"Login-Form-Submit\")\n * if(result.isError) return await logException(result.error)\n * await fetch(url, {\n * method: \"POST\",\n * data: JSON.stringify({\n * reCaptchaToken: result.value\n * })\n * })\n * } catch(error) {\n * await logException(error)\n * }\n * }\n */\n execute: RecaptchaContextType[\"execute\"];\n onLoad: RecaptchaContextType[\"onLoad\"];\n};\nexport function useReCaptcha(): UseReCaptcha {\n const recaptcha = useContext(RecaptchaContext);\n if (!recaptcha) {\n throw new Error('\"useReCaptcha\" can only be used within a ');\n }\n return recaptcha;\n}","import React, { ReactNode, useEffect } from \"react\";\nimport { useDialogPolyfill } from \"@wss/dialog\";\nimport { cls } from \"cls\";\nimport { controlClassNames, dialogClassNames, dialogAnimationClassNames, headerClassNames, headingContainerClassNames, headingClassNames, spacerClassNames } from \"./drawerModal.styles\";\nif (window.HTMLDialogElement === undefined) import(\"dialog-polyfill/dialog-polyfill.css\");\ninterface Props {\n id: string;\n dialogRef: React.RefObject;\n children: JSX.Element;\n title: string;\n subtitle?: string;\n leftControlContent?: React.ReactNode;\n leftControlFunction?: () => void;\n leftControlHref?: string;\n rightControlContent?: React.ReactNode;\n rightControlFunction?: () => void;\n rightControlHref?: string;\n dialogClasses?: string;\n dialogAnimationClasses?: string;\n controlClasses?: string;\n headerClasses?: string;\n headerStyles?: React.CSSProperties;\n headingClasses?: string;\n subtitleClasses?: string;\n spacerClasses?: string;\n onClose?: () => void;\n leftControlArialLabelText?: string;\n}\nconst DrawerModal = (props: Props) => {\n const {\n id,\n dialogRef,\n children,\n title,\n subtitle,\n leftControlContent,\n leftControlFunction,\n leftControlHref,\n rightControlContent,\n rightControlFunction,\n rightControlHref,\n dialogClasses,\n dialogAnimationClasses,\n controlClasses,\n headerClasses,\n headerStyles = {},\n headingClasses = headingClassNames,\n subtitleClasses,\n spacerClasses,\n onClose,\n leftControlArialLabelText = \"\"\n } = props;\n const headingId = `dialogHeading${title.replace(/\\s/g, \"\")}`;\n useDialogPolyfill(dialogRef);\n useEffect(() => {\n const dialogReference = dialogRef;\n if (dialogReference.current && onClose) {\n dialogReference.current?.addEventListener(\"close\", onClose);\n }\n return () => {\n if (dialogReference.current && onClose) {\n dialogReference.current?.removeEventListener(\"close\", onClose);\n }\n };\n }, [dialogRef, onClose]);\n const renderControl = (contentConditional: ReactNode | undefined, hrefConditional: string | undefined, isLeftSide: boolean) => {\n if (contentConditional !== undefined && hrefConditional !== undefined) {\n return \n {isLeftSide ? leftControlContent : rightControlContent}\n ;\n }\n if (contentConditional !== undefined) {\n return ;\n }\n return ;\n };\n return \n
\n {renderControl(leftControlContent, leftControlHref, true)}\n
\n

\n {title}\n

\n {subtitle &&

{subtitle}

}\n
\n {renderControl(rightControlContent, rightControlHref, false)}\n
\n {children}\n
;\n};\nexport default DrawerModal;","import React from \"react\";\nimport { useFormContext, UseFormMethods, FieldError, Control } from \"react-hook-form\";\nexport type FormProps = UseFormMethods & {\n errors: {\n [name: string]: FieldError;\n };\n control: Control;\n clearErrors(name?: string): void;\n};\nconst ConnectForm = ({\n children\n}: {\n children: (props: FormProps) => React.ReactElement;\n}) => {\n const methods = useFormContext();\n return children({\n ...methods\n });\n};\nexport default ConnectForm;","import React, { ReactElement, CSSProperties, FocusEventHandler } from \"react\";\nimport ct from \"class-types.macro\";\nimport camelcase from \"lodash/camelCase\";\nimport ConnectForm from \"./ConnectForm\";\nimport InputBase from \"./InputBase\";\nimport { inputLabel, inputMessage } from \"./inputStyles\";\nimport InputError from \"./InputError\";\nexport type InputProps = {\n label: string;\n name?: string;\n id?: string;\n placeholder?: string;\n type?: \"text\" | \"tel\" | \"password\" | \"date\" | \"email\" | \"number\" | \"decimal\";\n required?: boolean;\n showRequired?: boolean;\n showOptional?: boolean;\n displayErrorMessage?: boolean;\n hintMessage?: string;\n children?: ReactElement;\n defaultValues?: string;\n labelClassName?: string;\n labelExtra?: React.ReactNode;\n errorText?: string;\n labelStyle?: CSSProperties;\n style?: CSSProperties;\n className?: string;\n containerPadding?: boolean;\n errorPosition?: string;\n errorStyles?: CSSProperties;\n inputErrorStyles?: CSSProperties;\n overrideDefaultErrorPositioning?: boolean;\n ariaLabel?: string;\n maxLength?: number;\n labelExtraClassName?: string;\n onBlur?: FocusEventHandler | undefined;\n min?: string;\n max?: string;\n clearErrorOnFocus?: boolean;\n errorClassName?: string;\n innerRef?: React.LegacyRef;\n overrideDefaultInputHeight?: boolean;\n dataTestId?: string;\n inputMode?: \"text\" | \"tel\" | \"email\" | \"numeric\" | \"none\" | \"url\" | \"decimal\" | \"search\" | undefined;\n spellCheck?: boolean;\n containerClassName?: string;\n containerStyles?: CSSProperties;\n};\nconst Input = ({\n label,\n type = \"text\",\n name = camelcase(label),\n id = name,\n placeholder = \"\",\n required = false,\n showRequired = true,\n showOptional = false,\n displayErrorMessage = true,\n hintMessage = \"\",\n defaultValues = \"\",\n labelClassName = inputLabel,\n labelExtra = null,\n errorText,\n children,\n className,\n style,\n labelStyle = {},\n errorPosition,\n errorStyles,\n inputErrorStyles = {},\n ariaLabel = \"\",\n maxLength,\n labelExtraClassName,\n onBlur,\n overrideDefaultErrorPositioning = false,\n min,\n max,\n clearErrorOnFocus = true,\n errorClassName = \"\",\n innerRef,\n overrideDefaultInputHeight = false,\n dataTestId = \"\",\n inputMode = \"text\",\n spellCheck = true,\n containerClassName = \"\",\n containerStyles = {}\n}: InputProps) => {\n return \n {({\n errors,\n clearErrors\n }) => {\n const error = errors[name];\n return
\n {label ? : null}\n {\n if (clearErrorOnFocus) {\n clearErrors(name);\n }\n }} defaultValue={defaultValues} className={className} style={style} aria-label={ariaLabel} aria-required={required} {...error?.message?.length > 0 && {\n \"aria-invalid\": true,\n \"aria-describedby\": `${name}Error`\n }} maxLength={maxLength} onBlur={onBlur} min={min} max={max} innerRef={innerRef} overrideDefaultInputHeight={overrideDefaultInputHeight} data-testid={dataTestId} spellCheck={spellCheck} inputMode={inputMode} inputErrorStyles={inputErrorStyles} />\n {children}\n {(!displayErrorMessage || !error) && hintMessage !== \"\" && \n {hintMessage}\n }\n \n
;\n }}\n
;\n};\nexport default Input;","/* eslint-disable no-param-reassign */\nimport React, { useState, useEffect, CSSProperties } from \"react\";\nimport { NumericFormatProps } from \"react-number-format\";\nimport { FieldError, useFormContext, useController } from \"react-hook-form\";\nimport { inputBase, inputBaseOptionalClasses, inputError } from \"./inputStyles\";\ntype InputProps = React.HTMLProps & Pick> & {\n error: FieldError | undefined;\n name: string;\n inputErrorStyles?: CSSProperties;\n overrideDefaultInputHeight?: boolean;\n innerRef?: React.LegacyRef | undefined;\n};\nconst InputBase = (inputProps: InputProps) => {\n const propsToRemove = [\"onBlur\", \"error\", \"register\", \"className\", \"style\", \"innerRef\", \"defaultValue\", \"inputErrorStyles\", \"overrideDefaultInputHeight\"];\n const [isIE, setIsIE] = useState(false);\n const spreadInputProps = Object.fromEntries(Object.entries(inputProps).filter(([key]) => !propsToRemove.includes(key)));\n const spreadStyleProps = inputProps.overrideDefaultInputHeight ? {\n ...inputProps.style\n } : {\n height: \"42px\",\n ...inputProps.style\n };\n const {\n control\n } = useFormContext();\n const {\n field\n } = useController({\n name: inputProps.name,\n control,\n defaultValue: inputProps.defaultValue\n });\n const {\n error\n } = inputProps;\n useEffect(() => {\n (async () => {\n const {\n default: Bowser\n } = await import(\"bowser\");\n if (Bowser.msie) {\n setIsIE(true);\n }\n })();\n });\n const errorStyles = inputProps.inputErrorStyles || null;\n return {\n const input = e.currentTarget;\n if (inputProps.onBlur) {\n inputProps.onBlur(e);\n }\n if (input.value.trim().length <= 0) return;\n field.onBlur();\n }} ref={inputProps.innerRef} data-sentry-component=\"InputBase\" data-sentry-source-file=\"InputBase.tsx\" />;\n};\nexport default InputBase;","import ct from \"class-types.macro\";\nimport React, { CSSProperties } from \"react\";\nimport { FieldError } from \"react-hook-form\";\nimport { inputErrorMessage, inputErrorMessageFont } from \"./inputStyles\";\ntype InputErrorProps = {\n label: string;\n name: string;\n displayErrorMessage?: boolean;\n errors: {\n [name: string]: FieldError;\n };\n errorPosition?: string;\n requiredText?: string;\n className?: string;\n styles?: CSSProperties;\n overridePosition?: boolean;\n customErrorMessage?: boolean;\n};\nconst InputError = ({\n label,\n name,\n displayErrorMessage = true,\n errors,\n errorPosition,\n requiredText,\n className,\n styles,\n overridePosition = false,\n customErrorMessage = false\n}: InputErrorProps) => {\n const error = errors[name];\n const errorClass = (overridePosition ? `${inputErrorMessageFont} ` : `${inputErrorMessage} `) + (errorPosition || ct(\"absolute\")) + (className ? ` ${className}` : \"\");\n const renderError = (error: FieldError) => {\n if (error?.message === undefined) {\n return \"\";\n }\n if (error.type === \"required\" && customErrorMessage) {\n return error.message;\n }\n if (error.type === \"required\") {\n return requiredText || `${label} is required`;\n }\n if (error.type === \"typeError\") {\n const typeMatches = error.message.match(/must be a `([A-z]+)` type/);\n if (typeMatches != null && typeMatches.length > 1) {\n return `${label} must be a ${typeMatches[1]}`;\n }\n }\n return error.message;\n };\n return <>\n {displayErrorMessage && error && \n {renderError(error)}\n }\n ;\n};\nexport default InputError;","import React, { CSSProperties } from \"react\";\nimport ct from \"class-types.macro\";\nimport camelcase from \"lodash/camelCase\";\nimport ConnectForm from \"./ConnectForm\";\nimport { inputBase, inputError, inputLabel, selectInputIcon, selectInputIconNoLabel } from \"./inputStyles\";\nimport Icon from \"~/common/Icons/Standard\";\nimport InputError from \"./InputError\";\ntype SelectProps = {\n label?: string;\n id?: string;\n name?: string;\n options: readonly {\n value: string | number;\n text: string;\n group?: {\n name: string;\n };\n }[];\n clearErrorsOnFocus?: boolean;\n defaultValue?: string | number;\n displayErrorMessage?: boolean;\n placeholder?: string;\n noPlaceholder?: boolean;\n errorText?: string;\n labelClassName?: string;\n svgClassName?: string;\n required?: boolean;\n showRequired?: boolean;\n errorPosition?: string;\n errorStyles?: CSSProperties;\n selectErrorClass?: string | null;\n overrideDefaultErrorPositioning?: boolean;\n containerClassName?: string;\n hiddenLabel?: boolean;\n style?: CSSProperties;\n iconStyle?: CSSProperties;\n selectErrorStyles?: CSSProperties;\n selectClassName?: string | null;\n placeHolderClassName?: string;\n dataTestId?: string;\n requiredAttribute?: boolean;\n};\nconst SelectInput = ({\n label,\n name = camelcase(label),\n id = name,\n options,\n defaultValue = \"\",\n displayErrorMessage = true,\n placeholder = `Select ${label}`,\n noPlaceholder = false,\n errorText = label || \"This field\",\n labelClassName = inputLabel,\n svgClassName = \"\",\n required = false,\n showRequired = true,\n errorPosition,\n errorStyles,\n selectErrorClass = null,\n overrideDefaultErrorPositioning = false,\n containerClassName,\n hiddenLabel,\n style,\n iconStyle,\n selectErrorStyles = {},\n selectClassName = null,\n placeHolderClassName = \"[&:not(:placeholder-shown)]:pr-10\",\n dataTestId = \"\",\n clearErrorsOnFocus = true,\n requiredAttribute = false\n}: SelectProps) => {\n return \n {({\n register,\n errors,\n clearErrors\n }) => {\n const selectErrorStyling = errors[name] ? selectErrorStyles : null;\n return
\n {label ? : null}\n \n \n \n
;\n }}\n
;\n};\nexport default SelectInput;","import React, { useEffect } from \"react\";\nimport { useForm, FormProvider, SubmitHandler, ValidationMode, UseFormMethods, FieldValues } from \"react-hook-form\";\nimport { ObjectSchema } from \"yup\";\nimport useYupValidator from \"./useYupValidator\";\nimport { emptySchema } from \"./validationSchema\";\nimport(/* webpackChunkName: \"form-styles\" */\"./styles.css\");\nexport default function Form({\n children,\n validationSchema,\n onSubmit,\n resetOnSubmit = false,\n action,\n method,\n formId,\n validationMode = \"onBlur\",\n reValidateMode = \"onBlur\",\n formMethodsRef,\n shouldFocusError = false,\n onValidationFailed,\n tabIndexNumber,\n ariaLabelBy = \"\",\n formRef\n}: {\n children: React.ReactElement | React.ReactElement[];\n validationSchema?: ObjectSchema;\n onSubmit?: SubmitHandler;\n resetOnSubmit?: boolean;\n action?: string;\n method?: string;\n formId?: string;\n validationMode?: keyof ValidationMode;\n reValidateMode?: Exclude;\n formMethodsRef?: {\n current: UseFormMethods | undefined;\n };\n shouldFocusError?: boolean;\n onValidationFailed?: (errors: ReturnType[\"errors\"]) => void;\n tabIndexNumber?: number;\n ariaLabelBy?: string;\n formRef?: React.LegacyRef;\n}) {\n const resolver = useYupValidator(validationSchema ?? emptySchema);\n const methods = useForm({\n mode: validationMode,\n shouldFocusError,\n reValidateMode,\n resolver\n });\n useEffect(() => {\n if (Object.keys(methods.errors).length) {\n onValidationFailed?.(methods.errors);\n }\n /*\n Our version of React Forms does not support callbacks on validation failed.\n This implementation is for OnSubmit and this will run on each re-render.\n Please make sure to only display an error message if there is not one already present.\n if (!errorMessage) setErrorMessage('There was an error in the form')\n Do not add onValidationFailed to the deps array because then the parent would\n need to memoize it.\n */\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [methods.errors]);\n if (formMethodsRef) {\n const forwardRefFormMethods = formMethodsRef;\n forwardRefFormMethods.current = methods;\n }\n const onSubmitWrapper: SubmitHandler = (data, event) => {\n if (onSubmit) {\n onSubmit(data, event);\n }\n if (resetOnSubmit) {\n methods.reset();\n }\n };\n return \n
0 && {\n \"aria-labelledby\": `${ariaLabelBy}`\n }}>\n {children}\n
\n
;\n}","import { MutableRefObject, useCallback, useRef } from \"react\";\nimport { sendGtmEvent } from \"~/analytics/definitions\";\nconst getCurrentPercent = (currentTime = 0, duration = 1): number => {\n return Math.round(currentTime / duration * 100);\n};\nconst useGtmVideoTracking = (videoRef: MutableRefObject, videoUrl: string, title: string, extendedEventLabel?: string) => {\n const percentBreakpointsRef = useRef<-1 | 0 | 25 | 50 | 75 | 100>(-1);\n const sendGtmVideoEvent = useCallback((videoPercent: number, videoStatus: string, eventAction: string) => {\n sendGtmEvent({\n event: \"video_tracking\",\n eventAction,\n eventLabel: extendedEventLabel ? `${videoUrl} - ${extendedEventLabel}` : videoUrl,\n htmlVideoPercent: videoPercent,\n htmlVideoStatus: videoStatus,\n htmlVideoTitle: title,\n htmlVideoUrl: videoUrl,\n pageUrl: window.location.href\n });\n }, [videoUrl, title, extendedEventLabel]);\n const sendGtmPlayEvent = useCallback(() => {\n const currentPercent = getCurrentPercent(videoRef.current?.currentTime, videoRef.current?.duration);\n if (videoRef.current) {\n if (videoRef.current.currentTime === 0) {\n sendGtmVideoEvent(0, \"Initial Play\", \"Initial Play\");\n } else {\n sendGtmVideoEvent(currentPercent, \"Resume Play\", \"Resume Play\");\n }\n }\n }, [sendGtmVideoEvent, videoRef]);\n const sendGtmProgressEvent = useCallback(() => {\n const currentPercent = getCurrentPercent(videoRef.current?.currentTime, videoRef.current?.duration);\n if (videoRef?.current) {\n if (currentPercent === 100 && percentBreakpointsRef.current !== 100) {\n percentBreakpointsRef.current = 100;\n sendGtmVideoEvent(100, \"complete\", \"Reached the end\");\n } else if (currentPercent >= 75 && percentBreakpointsRef.current < 75) {\n percentBreakpointsRef.current = 75;\n sendGtmVideoEvent(75, \"progress\", \"Reached 75%\");\n } else if (currentPercent >= 50 && percentBreakpointsRef.current < 50) {\n percentBreakpointsRef.current = 50;\n sendGtmVideoEvent(50, \"progress\", \"Reached 50%\");\n } else if (currentPercent >= 25 && percentBreakpointsRef.current < 25) {\n percentBreakpointsRef.current = 25;\n sendGtmVideoEvent(25, \"progress\", \"Reached 25%\");\n }\n }\n }, [sendGtmVideoEvent, videoRef]);\n const sendGtmPauseEvent = useCallback(() => {\n const currentPercent = getCurrentPercent(videoRef.current?.currentTime, videoRef.current?.duration);\n // onPause technically fires at the video end, this prevents an unnecessary event from firing\n if (currentPercent < 100) {\n sendGtmVideoEvent(currentPercent, \"pause\", \"Paused\");\n }\n }, [sendGtmVideoEvent, videoRef]);\n return {\n sendGtmProgressEvent,\n sendGtmPauseEvent,\n sendGtmPlayEvent\n };\n};\nexport default useGtmVideoTracking;","import React from \"react\";\nimport ct from \"class-types.macro\";\nimport Icon from \"~/common/Icons/Standard\";\nexport interface Props {\n name: string | number;\n listItemClasses: string;\n linkClasses: string;\n targetPage: number;\n totalPages: number;\n ariaLabel: string;\n icon?: string;\n createHREF?: (page: number) => string;\n onChange?: ((page: number, pageSize: number) => void) | undefined;\n}\nconst PaginationItem = ({\n name,\n listItemClasses,\n linkClasses,\n targetPage,\n totalPages,\n ariaLabel,\n icon,\n createHREF,\n onChange\n}: Props) => {\n const onChangeFunc = (e: React.SyntheticEvent, page: number) => {\n e.preventDefault();\n if (onChange) {\n onChange(page, totalPages);\n }\n };\n return
  • \n onChangeFunc(e, targetPage) : undefined} className={`${linkClasses} pagerLink`}>\n {icon ? : name}\n \n
  • ;\n};\nexport default PaginationItem;","import React, { useEffect, useState } from \"react\";\nimport ct from \"class-types.macro\";\nimport PaginationItem from \"./PaginationItem\";\nimport { linkClasses, currentLinkClasses, listClasses, listItemClasses } from \"./Pagination.styles\";\nexport interface Props {\n currentPage: number;\n onChange?: ((page: number, pageSize: number) => void) | undefined;\n total: number;\n pageSize: number;\n createHREF?: (page: number) => string;\n}\nconst Pagination = ({\n currentPage,\n onChange,\n total,\n pageSize,\n createHREF\n}: Props) => {\n const productlistingPageLimit = 100;\n const totalPages = Math.min(Math.ceil(total / pageSize), productlistingPageLimit);\n const [pagerList, setPagerList] = useState<{\n name: string | number;\n value: number;\n }[]>([]);\n useEffect(() => {\n const newPagerList = [];\n // display first five pagers if currentPage is within first 4 pagers\n if (totalPages > 7 && currentPage <= 4) {\n for (let page = 1; page < currentPage; page += 1) {\n newPagerList.push({\n name: page,\n value: page\n });\n }\n newPagerList.push({\n name: currentPage,\n value: currentPage\n });\n for (let page = currentPage + 1; page < 6; page += 1) {\n newPagerList.push({\n name: page,\n value: page\n });\n }\n // \\u2026 is the unicode for a horizontal ellipsis\n newPagerList.push({\n name: \"\\u2026\",\n value: 6\n });\n newPagerList.push({\n name: totalPages,\n value: totalPages\n });\n }\n // display last five pagers if currentPage is within last 4 pagers\n else if (totalPages > 7 && currentPage >= totalPages - 3) {\n newPagerList.push({\n name: 1,\n value: 1\n });\n newPagerList.push({\n name: \"\\u2026\",\n value: totalPages - 5\n });\n for (let page = totalPages - 4; page < currentPage; page += 1) {\n newPagerList.push({\n name: page,\n value: page\n });\n }\n newPagerList.push({\n name: currentPage,\n value: currentPage\n });\n for (let page = currentPage; page < totalPages; page += 1) {\n newPagerList.push({\n name: page + 1,\n value: page + 1\n });\n }\n }\n // display ellipses based on current page location\n else {\n if (totalPages > 7 && currentPage - 3 > 1) {\n newPagerList.push({\n name: 1,\n value: 1\n });\n newPagerList.push({\n name: \"\\u2026\",\n value: currentPage - 3\n });\n newPagerList.push({\n name: currentPage - 2,\n value: currentPage - 2\n });\n newPagerList.push({\n name: currentPage - 1,\n value: currentPage - 1\n });\n } else {\n for (let page = 1; page < currentPage; page += 1) {\n newPagerList.push({\n name: page,\n value: page\n });\n }\n }\n newPagerList.push({\n name: currentPage,\n value: currentPage\n });\n if (totalPages > 7 && currentPage + 3 < totalPages) {\n newPagerList.push({\n name: currentPage + 1,\n value: currentPage + 1\n });\n newPagerList.push({\n name: currentPage + 2,\n value: currentPage + 2\n });\n newPagerList.push({\n name: \"\\u2026\",\n value: currentPage + 3\n });\n newPagerList.push({\n name: totalPages,\n value: totalPages\n });\n } else {\n for (let page = currentPage; page < totalPages; page += 1) {\n newPagerList.push({\n name: page + 1,\n value: page + 1\n });\n }\n }\n }\n setPagerList(newPagerList);\n }, [totalPages, currentPage]);\n return ;\n};\nexport default Pagination;","import React, { CSSProperties } from \"react\";\nimport ct from \"class-types.macro\";\nimport type { Placement } from \"tippy.js\";\nfunction PopupArrow({\n placement\n}: {\n placement: Placement;\n}) {\n const commonClasses: {\n [placement: string]: string;\n } = {\n top: ct(\"border-transparent\", \"border-solid\", \"border-b-0\", \"block\", \"h-0\", \"absolute\", \"w-0\"),\n bottom: ct(\"border-transparent\", \"border-solid\", \"border-t-0\", \"block\", \"h-0\", \"absolute\", \"w-0\"),\n right: ct(\"border-transparent\", \"border-solid\", \"border-l-0\", \"block\", \"h-0\", \"absolute\", \"w-0\"),\n left: ct(\"border-transparent\", \"border-solid\", \"border-r-0\", \"block\", \"h-0\", \"absolute\", \"w-0\")\n };\n const arrowClasses: {\n [placement: string]: string;\n } = {\n top: ct(\"border-11\", \"-bottom-2-3/4\", \"z-10\"),\n bottom: ct(\"border-11\", \"-top-2-3/4\", \"z-10\"),\n right: ct(\"border-11\", \"-left-2-3/4\", \"z-10\"),\n left: ct(\"border-11\", \"-right-10px\", \"z-10\")\n };\n const arrowStyle: {\n [placement: string]: CSSProperties;\n } = {\n right: {\n borderRightColor: \"rgba(0, 0, 0, 0.25)\"\n },\n top: {\n borderTopColor: \"rgba(0, 0, 0, 0.25)\"\n },\n bottom: {\n borderBottomColor: \"rgba(0, 0, 0, 0.25)\"\n },\n left: {\n borderLeftColor: \"rgba(0, 0, 0, 0.25)\"\n }\n };\n const afterClasses: {\n [placement: string]: string;\n } = {\n top: ct(\"border-10\", \"bottom-2-1/4\", \"transform\", \"-translate-x-1/2\", \"translate-y-1/2\"),\n bottom: ct(\"border-10\", \"top-2-1/4\", \"transform\", \"-translate-x-1/2\", \"-translate-y-1/2\"),\n right: ct(\"border-10\", \"left-2-1/4\", \"transform\", \"-translate-x-1/2\", \"-translate-y-1/2\"),\n left: ct(\"border-10\", \"right-2-1/4\", \"transform\", \"translate-x-1/2\", \"-translate-y-1/2\")\n };\n const afterStyle: {\n [placement: string]: CSSProperties;\n } = {\n right: {\n borderRightColor: \"#fff\"\n },\n bottom: {\n borderBottomColor: \"#fff\"\n },\n top: {\n borderTopColor: \"#fff\"\n },\n left: {\n borderLeftColor: \"#fff\"\n }\n };\n return
    \n
    \n
    ;\n}\nexport default PopupArrow;","import React from \"react\";\nimport { createContext } from \"@wss/react\";\ntype FeatureFlagState = {\n featureFlags: Record;\n evaluateFlag: (key: string) => boolean;\n};\nconst [FeatureFlagContext, useContext] = createContext();\nexport const useFeatureFlag = () => useContext();\ninterface FeatureFlagProviderProps {\n featureFlags?: Record;\n children: React.ReactNode;\n}\nconst FeatureFlagProvider = ({\n featureFlags = {},\n children\n}: FeatureFlagProviderProps) => {\n const value: FeatureFlagState = {\n featureFlags,\n evaluateFlag: (key: string) => featureFlags[key] ?? false\n };\n return \n {children}\n ;\n};\nexport default FeatureFlagProvider;","/* eslint-disable @typescript-eslint/consistent-type-assertions */\nimport React, { useEffect, useRef } from \"react\";\nimport { VideoPlayer, VideoPlayerProps } from \"@clarkinc/zest-design-system/ui\";\nimport { cls } from \"@wss/cls\";\nimport { Video } from \"~/common/Store/models/Video\";\nimport useGtmVideoTracking from \"../MediaViewerV2/SharedComponents/VideoViewer/hooks/useGtmVideoTracking\";\ninterface Props {\n posterImage: string;\n sources: Partial;\n activePlayer?: boolean;\n currentIndex: number;\n selected: number;\n autoPlay?: boolean;\n videoClasses?: string;\n youtubeId?: string;\n useCdn?: boolean;\n playsInline?: boolean;\n closedCaptionsrc?: string;\n shouldLoopVideo?: boolean;\n isModal?: boolean;\n videoSection?: string;\n}\nconst ZestVideoPlayer = (props: Props & VideoPlayerProps) => {\n const {\n youtubeId,\n useCdn,\n selected,\n activePlayer,\n currentIndex,\n posterImage,\n videoClasses,\n closedCaptionsrc,\n playsInline,\n sources,\n shouldLoopVideo,\n isModal,\n videoSection,\n autoPlay,\n title,\n ...rest\n } = props;\n const videoRef = useRef(null);\n const baseUrl = useCdn ? \"https://cdn.webstaurantstore.com/videos/\" : \"/videos/\";\n const getCaptionUrl = () => {\n if (!closedCaptionsrc) {\n return undefined;\n }\n const captionBaseUrl = \"/videos/closed_captioning/\";\n return captionBaseUrl + closedCaptionsrc;\n };\n const pauseYoutubeVideo = () => {\n const iframe = document.getElementsByClassName(\"videoPlayer\")[0] as HTMLIFrameElement;\n if (iframe) {\n // resetting the iframe src to pause Youtube video\n const videoSource = iframe.src;\n iframe.src = videoSource;\n }\n };\n useEffect(() => {\n if (currentIndex !== selected) {\n if (youtubeId) {\n pauseYoutubeVideo();\n } else {\n const video = document.querySelector(`.videoPlayer-${currentIndex}`) as HTMLVideoElement;\n if (!video?.paused) {\n video.pause();\n }\n }\n }\n }, [activePlayer, currentIndex, selected, youtubeId]);\n const relativeSources = Object.fromEntries(Object.entries(sources ?? {}).filter(([, value]) => value !== undefined).map(([key, value]) => [key, `${baseUrl}${value}`]));\n const highestSrc = sources?.high || sources?.medium || sources?.low || sources?.product || sources?.ipad || \"\";\n const {\n sendGtmProgressEvent,\n sendGtmPauseEvent,\n sendGtmPlayEvent\n } = useGtmVideoTracking(videoRef, `${baseUrl}${highestSrc}`, title ?? \"Unknown video title\", videoSection);\n\n // This is a workaround as onTimeUpdate is not working with the Zest Player and will be updated at a later time.\n useEffect(() => {\n const currentVideoRef = videoRef.current;\n if (currentVideoRef) {\n currentVideoRef.addEventListener(\"timeupdate\", sendGtmProgressEvent);\n }\n return () => {\n if (currentVideoRef) {\n currentVideoRef.removeEventListener(\"timeupdate\", sendGtmProgressEvent);\n }\n };\n }, [sendGtmProgressEvent]);\n return youtubeId &&