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JlD,QAAKiO,KAGFA,EAAoBC,6BACpBD,EAAoBE,0BAA2BnO,SAAc,QAAdA,EAAAA,EAAMoO,gBAANpO,IAAAA,OAAAA,EAAAA,EAAgBqO,UAC/DJ,EAAoBK,iCAAkCtO,aAAAA,EAAAA,EAAMuO,YAGjE,C","sources":["webpack://webstaurantstore/./EventDayPage/LimitedSaleStockNotice.tsx","webpack://webstaurantstore/./ProductDetails/Carousel/fetchAccessories.ts","webpack://webstaurantstore/./ProductDetails/Pricing/AddToCart/getItemQuantityText.ts","webpack://webstaurantstore/./ProductDetails/Pricing/AddToCart/getMinBuyForQuantityDropdown.ts","webpack://webstaurantstore/./ProductDetails/VirtualGrouping/VirtualGroupingHelper.ts","webpack://webstaurantstore/./__alias__/utilities/strings.ts","webpack://webstaurantstore/./analytics/AddToCart/carouselAddToCartAnalytics.ts","webpack://webstaurantstore/./common/AddToCartModal/VirtualGroupingModal.tsx","webpack://webstaurantstore/./common/AddToCartModal/VirtualGroupingQuantitySelection.tsx","webpack://webstaurantstore/./common/Header/hooks/useWindowDimensions.ts","webpack://webstaurantstore/./common/helpers/getCustomizableProductUrl.ts","webpack://webstaurantstore/./common/helpers/isMobile.ts","webpack://webstaurantstore/./common/navigation/setWindowLocationHref.ts","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/AddToCartButton.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/CartAndQuantity.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/Components/AddToCartErrorMessage.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/Components/AddToCartErrorMessageWrapper.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/Components/AdditionalControl.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/Components/EmailButtonWrapper.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/Components/GroupingSelectWrapper.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/Components/LimitedSaleStockNoticeWrapper.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/Components/OutOfStockLabel.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/Components/RequestAQuoteButton.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/Components/TopProductsAddToCartErrorMessage.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/Customizable.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/Email/EmailButton.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/GroupingSelect.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/HiddenFieldsForCart.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/ProductModals.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/PurchasingGroupMinimumQuantityView.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/QuantityDropdown.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/ViewReplacementButton.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/VirtualGroupingSelect.tsx","webpack://webstaurantstore/./productListing/ProductBox/AddToCart/index.tsx","webpack://webstaurantstore/./productListing/ProductBox/getVgItemPricing.ts","webpack://webstaurantstore/./productListing/ProductBox/isNonExclusivePlatinumPlusProduct.ts"],"sourcesContent":["import ct from \"class-types.macro\";\nimport React, { Suspense } from \"react\";\nimport useIsMounted from \"~/common/useIsMounted\";\n\nimport(\n /* webpackChunkName: \"LimitedSaleStockNoticeTooltip\" */ \"./Styles/tippy.css\"\n);\n\nconst Tippy = React.lazy(() => import(\"@tippyjs/react\"));\n\ninterface Props {\n saleStockLimit: number;\n saleStockAvailable: number;\n className?: ClassTypes | undefined;\n}\n\nconst LimitedSaleStockNotice = ({\n saleStockLimit,\n saleStockAvailable,\n className = ct(\"text-center\"),\n}: Props) => {\n const isMounted = useIsMounted();\n\n return (\n \n {saleStockAvailable / saleStockLimit > 0.5\n ? \"Limited Supply!\"\n : `Only ${saleStockAvailable} Left!`}\n <>\n {isMounted && (\n \n \n \n \n \n \n \n \n \n )}\n \n \n );\n};\n\nexport default LimitedSaleStockNotice;\n","import { logException } from \"@wss/error-tracking\";\nimport { toError } from \"@wss/error-tracking/utils\";\nimport { Accessory } from \"~/common/Store/models/ProductListing\";\n\nconst fetchAccessories = async (itemNumber: string): Promise => {\n const endpointUrl = \"/api/productlisting/productaccessories\";\n try {\n const result = await fetch(\n `${endpointUrl}?itemNumber=${encodeURIComponent(itemNumber)}`\n );\n\n return result.json();\n } catch (e) {\n const error = new Error(\"Error in fetchAccessories\", {\n cause: toError(e),\n });\n\n await logException(error);\n\n return [];\n }\n};\nexport default fetchAccessories;\n","export default (unitOfMeasure: string): string =>\n [\"FT\", \"LNFT\", \"Linear Ft.\"].includes(unitOfMeasure) ? \"Length\" : \"Quantity\";\n","interface Props {\n minBuy: number;\n mustBuy: number;\n}\n\nexport default ({ minBuy, mustBuy }: Props): number => {\n let startQuantity = Math.max(minBuy, mustBuy);\n\n // handle the case when the start quantity is not divisible by must buy\n if (mustBuy > 1 && minBuy > mustBuy && startQuantity % mustBuy !== 0) {\n let counter = 1;\n while (mustBuy * counter < minBuy) {\n counter += 1;\n startQuantity = mustBuy * counter;\n }\n }\n\n return startQuantity;\n};\n","/* eslint-disable import/prefer-default-export */\nimport uniq from \"lodash/uniq\";\nimport flow from \"lodash/fp/flow\";\nimport map from \"lodash/fp/map\";\nimport flatten from \"lodash/fp/flatten\";\nimport filter from \"lodash/fp/filter\";\nimport {\n ConfigurationOption,\n ProductDetailGroupingSelect,\n} from \"../ProductDetailPageResult\";\nimport { VirtualGroupingVariation } from \"./VirtualGroupingModel\";\nimport isMobile from \"~/common/helpers/isMobile\";\n\nexport const moveVirtualGroupingTile = (\n virtualGroupingVariationsRef: React.MutableRefObject<\n VirtualGroupingVariation[]\n >,\n virtualGroupMemberToDisplay: string | undefined\n) => {\n const indexOfSelectedVariation = virtualGroupingVariationsRef.current.findIndex(\n (item) => item.itemNumber === virtualGroupMemberToDisplay\n );\n\n // If the selected variation tile is not in the first 8 tiles it will move it to the first tile in the list.\n if (indexOfSelectedVariation >= 8) {\n const variationItemToShift = virtualGroupingVariationsRef.current.find(\n (item) => item.itemNumber === virtualGroupMemberToDisplay\n );\n\n virtualGroupingVariationsRef.current.splice(indexOfSelectedVariation, 1);\n\n virtualGroupingVariationsRef.current.unshift(\n variationItemToShift ?? {\n name: \"\",\n value: \"\",\n sortIndex: 0,\n previewImage: \"\",\n itemNumber: \"\",\n isInStock: false,\n price: {\n applyTypeLPriceToPlatinumPlus: false,\n displayMinimumAdvertisedPrice: false,\n displaySalePrice: false,\n hasLotQuantityDiscounts: false,\n hasQuantityDiscounts: false,\n hasSingleLotQuantityDiscount: false,\n minimumAdvertisedPriceOverride: {\n priceLevel5: 0,\n },\n minimumAdvertisedPriceProperties: {\n price: 0,\n type: \"string\",\n },\n price: 0,\n quantityDiscounts: [],\n salePrice: 0,\n },\n divideByUnit: \"\",\n divideByQuantity: \"\",\n showBelowMinimumAdvertisedPriceForLoggedInCustomers: false,\n showBelowMinimumAdvertisedPriceForPlatinumAndPlusCustomers: false,\n customerReviewSummary: \"\",\n }\n );\n }\n};\n\n// Gets the itemNumber of the virtual grouping product that is being selected\nexport const getItemNumber = (\n selectedOptions: ConfigurationOption[],\n productGroupingSelect: ProductDetailGroupingSelect[]\n) => {\n const matchingItem = productGroupingSelect.find((variation) =>\n selectedOptions.every((selectedOption) =>\n variation.configurationOptions.some(\n (option) =>\n option.name === selectedOption.name &&\n option.value === selectedOption.value\n )\n )\n );\n return matchingItem?.itemNumber;\n};\n\n// Gets the itemNumber from the virtual grouping url\nexport const getItemNumberFromUrl = (ev: PopStateEvent): string | null => {\n if (ev.state === null) {\n return null;\n }\n // eslint-disable-next-line @typescript-eslint/consistent-type-assertions\n const itemNumber = ev.state?.itemNumber as string;\n\n return itemNumber;\n};\n\n// Creates the array of valid options used to ensure what is being selected is a valid virtual grouping product.\nexport const processValidOptions = (\n productGroupingSelect: ProductDetailGroupingSelect[],\n selectedOptionsToFilter: readonly ConfigurationOption[],\n name: string\n) => {\n return uniq(\n flow(\n filter(\n (variation: ProductDetailGroupingSelect) =>\n selectedOptionsToFilter.length === 0 ||\n selectedOptionsToFilter.every((selectedOption) =>\n variation.configurationOptions.some(\n (option) =>\n option.name === selectedOption.name &&\n option.value === selectedOption.value\n )\n )\n ),\n map(\n (variation: ProductDetailGroupingSelect) =>\n variation.configurationOptions\n ),\n flatten,\n filter((option) => option.name === name),\n map((option) => option.value)\n )(productGroupingSelect)\n );\n};\n\nexport const showEightVirtualGroupTileVariations = (\n variations: VirtualGroupingVariation[]\n) => {\n return variations.length > 8 && isMobile(\"600px\")\n ? variations.slice(0, 8)\n : variations;\n};\n\n// Checks if the selected option is the same as the variation\nexport const findSelectedOption = (\n variation: VirtualGroupingVariation,\n selectedOptions: readonly ConfigurationOption[]\n) => {\n return (\n selectedOptions.find((option) => option.name === variation.name)?.value ===\n variation.value\n );\n};\n\nexport const getSortedOptions = (\n options: T[] | undefined\n): T[] | undefined => {\n if (options && options.length > 0) {\n return options.sort((a, b) => a.sortIndex - b.sortIndex);\n }\n\n return options;\n};\n","// eslint-disable-next-line import/prefer-default-export\nexport function upperCaseFirst(str?: string): string {\n if (typeof str === \"undefined\") return \"\";\n return str.charAt(0).toUpperCase() + str.slice(1);\n}\n","/* eslint-disable import/prefer-default-export */\nimport { checkIfCarouselIsRecAi } from \"~/userAnalytics\";\n\nexport const getCarouselProps = (\n addToCartButtonOnCarousel: HTMLElement | null\n) => {\n // type checking since we are using refs to pass the element\n if (!addToCartButtonOnCarousel) {\n return { carouselName: \"\", carouselModel: \"\", position: 0 };\n }\n const carouselElement = addToCartButtonOnCarousel?.closest(\n \"[gtm-carousel-name]\"\n );\n const carouselName = carouselElement?.getAttribute(\"gtm-carousel-name\");\n const addToCartButtons = carouselElement?.querySelectorAll(\n \"[name=addToCartButton]\"\n );\n if (!carouselName || !addToCartButtons) {\n return { carouselName: \"\", carouselModel: \"\", position: 0 };\n }\n const position =\n Array.from(addToCartButtons).indexOf(addToCartButtonOnCarousel) + 1;\n\n return {\n carouselName,\n carouselModel: checkIfCarouselIsRecAi(carouselName),\n position,\n };\n};\n","import React, { useState, useEffect, useCallback } from \"react\";\nimport ct from \"class-types.macro\";\nimport {\n Accessory,\n GroupingAttributes,\n GroupMember,\n} from \"~/common/Store/models/ProductListing\";\nimport { GroupingConfigurationOption } from \"~/common/Store/models/ProductPage\";\nimport Modal, { Header, Footer, Body } from \"~/common/ModalReact\";\nimport Button from \"~/common/Buttons\";\nimport { AddToCartModal } from \".\";\nimport getCustomizableProductUrl from \"~/common/helpers/getCustomizableProductUrl\";\nimport setWindowLocationHref from \"~/common/navigation/setWindowLocationHref\";\nimport fetchAccessories from \"~/ProductDetails/Carousel/fetchAccessories\";\nimport VirtualGroupingQuantitySelection from \"./VirtualGroupingQuantitySelection\";\nimport getMinBuyForQuantityDropdown from \"~/ProductDetails/Pricing/AddToCart/getMinBuyForQuantityDropdown\";\nimport { getSortedOptions } from \"~/ProductDetails/VirtualGrouping/VirtualGroupingHelper\";\n\ninterface Props extends AddToCartModal<\"virtualGrouping\"> {\n itemQuantityVisible?: boolean;\n groupingAttributes: GroupingAttributes;\n isCustomizable?: boolean;\n hasAccessories?: boolean;\n setAccessories?: React.Dispatch>;\n quantity: string;\n handleQuantityChange?: (quantity: string) => void;\n isProductListing?: boolean;\n previouslyPurchased?: boolean;\n}\n\nexport default ({\n itemQuantityVisible = false,\n groupingAttributes,\n isOpen,\n closeModal,\n submitModal,\n isCustomizable = false,\n hasAccessories,\n setAccessories,\n quantity,\n handleQuantityChange,\n isProductListing = false,\n previouslyPurchased = false,\n}: Props) => {\n useEffect(() => {\n import(\"./VirtualGroupingStyles.less\");\n });\n interface UserSelectedOptions {\n [index: string]: string;\n }\n\n const [\n userSelectedOptions,\n setUserSelectedOptions,\n ] = useState({});\n\n const [\n groupMemberBasedOnSelection,\n setGroupMemberBasedOnSelection,\n ] = useState();\n\n const [showQuantityDropdown, setShowQuantityDropdown] = useState(false);\n\n const [addToCartDisabled, setAddToCartDisabled] = useState(false);\n\n const [memberIsCustomizable, setMemberIsCustomizable] = useState(false);\n\n type GroupingOptions = {\n [key: string]: { sortIndex: number; value: string }[];\n };\n\n const groupingOptions: GroupingOptions = {};\n\n groupingAttributes.groupMembers.forEach((groupMember) => {\n groupMember.configurationOptions.forEach((option) => {\n if (option.name !== null && option.name !== undefined) {\n if (groupingOptions[option.name] === undefined) {\n groupingOptions[option.name] = [];\n }\n\n if (\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n groupingOptions[option.name]!.filter((o) => o.value === option.value)\n .length === 0\n ) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n groupingOptions[option.name]!.push(option);\n }\n }\n });\n });\n\n const keys = Object.keys(groupingOptions);\n\n const [showError, setShowError] = useState(false);\n const groupingOptionsSorted: GroupingOptions = {};\n\n keys.forEach((key) => {\n groupingOptionsSorted[key] = getSortedOptions(groupingOptions[key]) ?? [];\n });\n\n const shouldDisplayRequiredCustomization = (groupMember?: GroupMember) => {\n if (!groupMember) {\n return false;\n }\n\n const {\n customizationRequired,\n isCustomizable,\n customizationUrl,\n } = groupMember;\n\n return !!(customizationRequired && (isCustomizable || customizationUrl));\n };\n\n const getGroupMemberBasedOnSelection = useCallback(() => {\n const firstGroupMemberWithUserSelectedOption = (\n groupMember: GroupMember\n ) => {\n const configValues = groupMember.configurationOptions.map(\n (option) => option.value\n );\n\n return Object.values(userSelectedOptions).every((userSelectedValue) =>\n configValues.some((configValue) => configValue === userSelectedValue)\n );\n };\n\n if (Object.keys(userSelectedOptions).length === keys.length) {\n const groupMember = groupingAttributes.groupMembers.find(\n firstGroupMemberWithUserSelectedOption\n );\n\n setMemberIsCustomizable(shouldDisplayRequiredCustomization(groupMember));\n\n setGroupMemberBasedOnSelection(groupMember);\n return groupMember;\n }\n\n return undefined;\n }, [groupingAttributes.groupMembers, keys.length, userSelectedOptions]);\n\n useEffect(() => {\n if (userSelectedOptions) {\n getGroupMemberBasedOnSelection();\n }\n }, [getGroupMemberBasedOnSelection, userSelectedOptions]);\n\n useEffect(() => {\n if (groupMemberBasedOnSelection) {\n const startQuantity = getMinBuyForQuantityDropdown({\n minBuy: groupMemberBasedOnSelection.minimumBuy,\n mustBuy: groupMemberBasedOnSelection.mustBuy,\n });\n\n if (!itemQuantityVisible || (itemQuantityVisible && startQuantity > 1)) {\n setShowQuantityDropdown(true);\n } else {\n setShowQuantityDropdown(false);\n }\n }\n }, [groupMemberBasedOnSelection, itemQuantityVisible]);\n\n const handleSubmit = async (event: React.SyntheticEvent) => {\n event.preventDefault();\n\n if (groupMemberBasedOnSelection) {\n if (isCustomizable || memberIsCustomizable) {\n setWindowLocationHref(\n getCustomizableProductUrl(\n groupMemberBasedOnSelection.customizationUrl,\n groupMemberBasedOnSelection.itemNumber\n )\n );\n return;\n }\n\n let groupMemberHasAccessories = false;\n if (hasAccessories && setAccessories) {\n const accessoryData = await fetchAccessories(\n groupMemberBasedOnSelection.itemNumber\n );\n if (\n !isProductListing ||\n accessoryData.some((accessory) => accessory.isRequired)\n ) {\n setAccessories(accessoryData);\n groupMemberHasAccessories = !!accessoryData.length;\n }\n }\n\n submitModal({\n virtualGrouping: {\n groupMemberItemNumber: groupMemberBasedOnSelection.itemNumber,\n hasAccessories: groupMemberHasAccessories,\n },\n });\n } else {\n setShowError(true);\n }\n };\n\n const hasMatchingSelection = (\n groupingConfigurationOptions: GroupingConfigurationOption[],\n selectedElement: HTMLSelectElement\n ) => {\n return groupingConfigurationOptions.some((x) => {\n return (\n x.name === selectedElement.title && x.value === selectedElement.value\n );\n });\n };\n\n const hasMatchingSelections = (\n groupingConfigurationOptions: GroupingConfigurationOption[],\n selectedElements: HTMLSelectElement[]\n ) => {\n return selectedElements.every((selectedElement) =>\n hasMatchingSelection(groupingConfigurationOptions, selectedElement)\n );\n };\n\n const hasGroupMemberOptionWithCurrentSelections = (\n groupMember: GroupMember | undefined,\n selectElement: HTMLSelectElement,\n configurationOptionName: string,\n allSelects: HTMLSelectElement[]\n ) => {\n if (\n configurationOptionName &&\n groupMember !== undefined &&\n selectElement !== undefined\n ) {\n const allOtherSelects = allSelects.filter(\n (select) => select.value && select.title !== selectElement.title\n );\n\n return (\n configurationOptionName === selectElement.title &&\n hasMatchingSelections(groupMember.configurationOptions, allOtherSelects)\n );\n }\n\n return false;\n };\n\n const getAvailableOptionsBasedOnSelections = (\n selectElement: HTMLSelectElement,\n allSelectElements: HTMLSelectElement[]\n ) => {\n let availableOtherOptions: string[] = [];\n\n if (groupingAttributes?.groupMembers?.length > 0) {\n availableOtherOptions = groupingAttributes.groupMembers\n .map((groupMember, groupIndex) => {\n return groupMember.configurationOptions\n .filter((configurationOption) =>\n hasGroupMemberOptionWithCurrentSelections(\n groupingAttributes.groupMembers[groupIndex],\n selectElement,\n configurationOption.name,\n allSelectElements\n )\n )\n .map((configurationOption) => configurationOption.value);\n })\n .flat();\n }\n\n return availableOtherOptions;\n };\n\n const getVirtualGroupElements = () => {\n const productOptionSelectsClassName = \".virtual-grouping-select\";\n // eslint-disable-next-line @typescript-eslint/consistent-type-assertions\n return [\n ...document.querySelectorAll(\n productOptionSelectsClassName\n ),\n ];\n };\n\n const toggleDisabledOptions = (\n theOtherSelect: HTMLSelectElement,\n availableOtherOptions: string[]\n ) => {\n if (theOtherSelect?.options?.length > 0) {\n for (const option of theOtherSelect.options) {\n // eslint-disable-next-line no-continue\n if (!option.value) continue;\n if (availableOtherOptions.includes(option.value)) {\n option.removeAttribute(\"disabled\");\n } else {\n option.setAttribute(\"disabled\", \"disabled\");\n }\n }\n }\n };\n\n const disableUnavailableOptions = (\n event: React.ChangeEvent\n ) => {\n const virtualGroupElements = getVirtualGroupElements();\n\n if (!virtualGroupElements?.length) {\n return;\n }\n\n const targetSelect = event.currentTarget;\n const nonTargetSelects = virtualGroupElements.filter(\n (select) => select !== targetSelect\n );\n const allOptionSelectElements = [\n ...nonTargetSelects.filter((other) => other).map((other) => other),\n targetSelect,\n ];\n\n nonTargetSelects\n .filter((nonTargetSelect) => nonTargetSelect !== undefined)\n .forEach((nonTargetSelect) => {\n const availableOtherOptions = getAvailableOptionsBasedOnSelections(\n nonTargetSelect,\n allOptionSelectElements\n );\n\n toggleDisabledOptions(nonTargetSelect, availableOtherOptions);\n });\n };\n\n return (\n \n
\n

\n Product Options\n

\n
\n\n \n
\n \n

This item has further options available.

\n {keys.map((key) => (\n
\n \n {\n disableUnavailableOptions(e);\n setUserSelectedOptions({\n ...userSelectedOptions,\n [key]: e.target.value,\n });\n }}\n title={key}\n >\n \n {/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion */}\n {groupingOptionsSorted[key]!.map((option) => (\n \n ))}\n \n \n \n
\n
\n ))}\n {showQuantityDropdown && groupMemberBasedOnSelection && (\n \n )}\n \n \n \n
\n \n Cancel\n \n {isCustomizable || memberIsCustomizable ? (\n \n \n Customize Now\n \n ) : (\n \n Add To Cart\n \n )}\n
\n \n );\n};\n","import { range } from \"range\";\nimport React, { Dispatch, SetStateAction, useEffect, useState } from \"react\";\nimport getItemQuantityText from \"~/ProductDetails/Pricing/AddToCart/getItemQuantityText\";\nimport getMinBuyForQuantityDropdown from \"~/ProductDetails/Pricing/AddToCart/getMinBuyForQuantityDropdown\";\n\ninterface Props {\n quantity: string;\n minBuy: number;\n mustBuy: number;\n unitOfMeasure: string;\n handleQuantityChange?: (quantity: string) => void;\n setAddToCartDisabled: Dispatch>;\n}\n\nconst VirtualGroupingQuantitySelection = ({\n quantity,\n minBuy,\n mustBuy,\n unitOfMeasure,\n handleQuantityChange,\n setAddToCartDisabled,\n}: Props) => {\n const numberOfOptions = 15;\n const startQuantity = getMinBuyForQuantityDropdown({ minBuy, mustBuy });\n const highestOptionDisplayed = startQuantity + numberOfOptions * mustBuy;\n const itemQuantityText = getItemQuantityText(unitOfMeasure);\n const [showCustomQuantity, setShowCustomQuantity] = useState(false);\n const [errors, setErrors] = useState([]);\n\n useEffect(() => {\n if (!quantity || Number(quantity) < startQuantity) {\n handleQuantityChange?.(startQuantity.toString());\n } else if (Number(quantity) > highestOptionDisplayed) {\n setShowCustomQuantity(true);\n }\n }, [handleQuantityChange, highestOptionDisplayed, quantity, startQuantity]);\n\n const handleOnChange = (\n event: React.ChangeEvent\n ) => {\n const inputValue = event.target.value;\n\n if (inputValue === \"other\") {\n setShowCustomQuantity(true);\n handleQuantityChange?.(startQuantity.toString());\n return;\n }\n\n const validationErrors: string[] = [];\n let errorsExist = false;\n\n const input = Number(inputValue);\n if (Number.isNaN(Number(input)) || input < startQuantity) {\n errorsExist = true;\n validationErrors.push(`Minimum of ${startQuantity} is required.`);\n }\n\n if (mustBuy > 1 && input % mustBuy !== 0) {\n errorsExist = true;\n validationErrors.push(\n `Please enter a quantity as a multiple of ${mustBuy}`\n );\n }\n\n if (!errorsExist) {\n setErrors([]);\n handleQuantityChange?.(inputValue);\n setAddToCartDisabled(false);\n } else {\n setErrors(validationErrors);\n setAddToCartDisabled(true);\n }\n };\n\n return (\n
\n
\n {minBuy > 1 && mustBuy === 1 && (\n

\n You must buy a minimum of {minBuy} due to manufacturer packaging.\n

\n )}\n {minBuy > 1 && mustBuy > 1 && (\n

\n You must buy a minimum of {minBuy} and in additional increments of{\" \"}\n {mustBuy} due to manufacturer packaging.\n

\n )}\n {minBuy === 1 && mustBuy > 1 && (\n

\n You must buy a minimum of {mustBuy} at a time due to manufacturer\n packaging.\n

\n )}\n {!showCustomQuantity && (\n
\n
\n \n \n {range(0, numberOfOptions).map((index) => (\n \n ))}\n \n \n \n \n
\n
\n )}\n
\n {showCustomQuantity && (\n <>\n \n 0 ? \"error\" : \"\"}`}\n name=\"qty\"\n defaultValue={quantity}\n aria-label=\"Quantity\"\n onChange={handleOnChange}\n />\n \n )}\n
\n
\n
\n {errors &&\n errors.map((error) => (\n

\n {error}\n

\n ))}\n
\n
\n );\n};\n\nexport default VirtualGroupingQuantitySelection;\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { useState, useEffect } from \"react\";\n\nfunction debounce(\n func: (...args: Params) => any,\n timeout: number\n): (...args: Params) => void {\n let timer: NodeJS.Timeout;\n return (...args: Params) => {\n clearTimeout(timer);\n timer = setTimeout(() => {\n func(...args);\n }, timeout);\n };\n}\nconst getWindowDimensions = () => {\n let width = 0;\n if (window?.visualViewport) {\n const scrollBarWidth = window.innerWidth - window.visualViewport.width;\n width = window.visualViewport.width + scrollBarWidth;\n } else {\n width = window.innerWidth;\n }\n\n return { width };\n};\n\nexport default function useWindowDimensions(mounted: boolean) {\n const [windowDimensions, setWindowDimensions] = useState(\n getWindowDimensions()\n );\n\n useEffect(() => {\n function handleResize() {\n if (mounted) {\n setWindowDimensions(getWindowDimensions());\n }\n }\n\n window.addEventListener(\"resize\", debounce(handleResize, 300));\n return () => window.removeEventListener(\"resize\", handleResize);\n }, [mounted]);\n\n return windowDimensions;\n}\n","const getCustomizableProductUrl = (\n customizationUrl: string,\n itemNumber: string\n) => {\n return (\n customizationUrl ||\n `/customized-products/${encodeURIComponent(\n itemNumber.toLowerCase().replace(\"/\", \"*\")\n )}/`\n );\n};\n\nexport default getCustomizableProductUrl;\n","/* global navigator */\n\n/**\n * Determines if the window is currently at a mobile size\n * @param {String} [maxWidth = '767px'] - max width the window can be before not being mobile\n * @returns {Boolean} whether or not the window is at a mobile screen size\n */\nconst isMobile = (maxWidth = \"767px\", detectTouch = false) => {\n const isSmallScreenSize = window.parent.matchMedia(`(max-width: ${maxWidth})`)\n .matches;\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n /** @ts-ignore */\n const isTouchScreen = \"ontouchstart\" in window || navigator.msMaxTouchPoints;\n let mobile = isSmallScreenSize;\n\n if (detectTouch && isTouchScreen) {\n mobile = true;\n }\n\n return mobile;\n};\n\nexport default isMobile;\n","const setWindowLocationHref = (url?: string) => {\n if (url && url.length) {\n window.location.href = url;\n }\n};\n\nexport default setWindowLocationHref;\n","import React, { forwardRef } from \"react\";\nimport { Input as TextInput } from \"@clarkinc/zest-design-system/ui\";\nimport { ProductListingView } from \".\";\n\nconst ignoreNonNumericInput = (event: React.KeyboardEvent) => {\n const regex = RegExp(\"([^0-9]+)$\");\n\n // Check key length to allow modifier and arrow keys through - ex. \"ArrowDown\"\n if (event.key.length === 1 && regex.test(event.key)) {\n event.preventDefault();\n }\n};\n\ninterface Props {\n isOutlet: boolean;\n itemIsInCart: boolean;\n productListingView?: ProductListingView;\n handleAddToCart: (event: React.SyntheticEvent) => void;\n handleQuantityChange: (value: string) => void;\n quantity: string;\n previouslyPurchased?: boolean;\n opensModal?: boolean;\n itemNumber?: string;\n}\n\nconst AddToCartButton = forwardRef(\n (\n {\n isOutlet,\n itemIsInCart,\n handleAddToCart,\n handleQuantityChange,\n quantity,\n productListingView,\n previouslyPurchased = false,\n opensModal = false,\n itemNumber,\n },\n ref\n ) => {\n const getGtmId = () => {\n if (opensModal) {\n return \"\";\n }\n if (previouslyPurchased) {\n return \"BuyItAgainATC\";\n }\n return \"AddToCartATC\";\n };\n\n if (isOutlet) {\n if (itemIsInCart) {\n return (\n \n Already in your cart\n \n );\n }\n return (\n \n );\n }\n\n if (productListingView === \"topProductsCarousel\") {\n return (\n <>\n \n \n \n );\n }\n\n return (\n <>\n handleQuantityChange(value)}\n value={quantity}\n data-testid=\"itemAddCartQty\"\n />\n \n \n );\n }\n);\n\nexport default AddToCartButton;\n","import ct from \"class-types.macro\";\nimport React from \"react\";\n\nexport interface CartAndQuantityProps {\n isCompareWithProductBox: boolean;\n productListingView: import(\"./index\").ProductListingView;\n undoBtnContainerStyle: boolean;\n}\n\nexport default function CartAndQuantity({\n isCompareWithProductBox,\n productListingView,\n undoBtnContainerStyle,\n children,\n}: CartAndQuantityProps & { children: React.ReactNode }) {\n return (\n \n {children}\n \n );\n}\n","import { cls } from \"@wss/cls\";\nimport React from \"react\";\n\ninterface AddToCartErrorMessageProps {\n errorMessage: string | undefined;\n isInStock: boolean;\n}\n\nconst AddToCartErrorMessage = ({\n errorMessage,\n isInStock,\n}: AddToCartErrorMessageProps) => {\n return (\n \n {errorMessage}\n

\n );\n};\n\nexport default AddToCartErrorMessage;\n","import React from \"react\";\nimport { ProductListingView } from \"..\";\nimport AddToCartErrorMessage from \"./AddToCartErrorMessage\";\n\ninterface AddToCartErrorMessageWrapperProps {\n errorMessage: string | undefined;\n isInStock: boolean;\n productListingView: ProductListingView;\n}\n\nconst AddToCartErrorMessageWrapper = ({\n errorMessage,\n isInStock,\n productListingView,\n}: AddToCartErrorMessageWrapperProps) => {\n const displayErrorMessage =\n productListingView !== \"topProductsCarousel\" && errorMessage;\n\n return (\n <>\n {displayErrorMessage && (\n \n )}\n \n );\n};\n\nexport default AddToCartErrorMessageWrapper;\n","/* eslint-disable no-else-return */\nimport React, { SyntheticEvent, useEffect, useRef } from \"react\";\nimport Customizable from \"../Customizable\";\nimport {\n GroupMember,\n Product,\n SelectedProduct,\n} from \"~/common/Store/models/ProductListing\";\nimport { ProductListingView } from \"..\";\nimport ValidationError from \"../../ValidationError\";\nimport RequestAQuoteButton from \"./RequestAQuoteButton\";\nimport {\n canBeReplaced,\n doesAnyGroupMembersHasMustPurchaseMoreThanOne,\n ProductBoxType,\n} from \"../logic\";\nimport ViewReplacementButton from \"../ViewReplacementButton\";\nimport CartAndQuantity from \"../CartAndQuantity\";\nimport QuantityDropdown from \"../QuantityDropdown\";\nimport AddToCartButton from \"../AddToCartButton\";\nimport HiddenFieldsForCart from \"../HiddenFieldsForCart\";\n\ninterface AdditionalControlProps {\n displayRequiredCustomization: boolean;\n forceCustomQuantity: boolean;\n groupingValue: string;\n groupMemberSelected: boolean | undefined;\n handleAddToCart: (event: SyntheticEvent) => void;\n handleQuantityChange: (value: string) => void;\n handleQuantityIsVisible: () => void;\n hasCustomizableProductsOverride: boolean;\n hasMultipleVGGrouping: boolean;\n incrementCount: number;\n isOnCompareProductsPage: boolean;\n isRequestAQuoteEnabled: boolean | undefined;\n isVirtualItem: boolean;\n itemIsInCart: boolean;\n lastQuantityInterval: number;\n previouslyPurchased: boolean;\n product: Product;\n productBoxType: ProductBoxType;\n productListingView: ProductListingView;\n quantity: string;\n selectedGroupMember: false | \"\" | GroupMember | undefined;\n selectedProduct: SelectedProduct;\n error?: Readonly;\n setError: React.Dispatch<\n React.SetStateAction | undefined>\n >;\n showQuantityDropdown: boolean;\n startBuy: number;\n}\n\nconst canButtonOpenModal = (\n hasAccessories: boolean,\n hasMultipleVGGrouping: boolean,\n isVirtualItem: boolean\n) => {\n return hasAccessories || (isVirtualItem && hasMultipleVGGrouping);\n};\n\nconst isReplaceableOrItemWithQuantity = (\n itemCanBeReplaced: boolean,\n shouldShowQuantityDropdown: boolean,\n showCartAndQuantityComponent: boolean\n) => {\n return (\n itemCanBeReplaced ||\n shouldShowQuantityDropdown ||\n showCartAndQuantityComponent\n );\n};\n\nconst shouldShowQuantityComponents = (\n mustPurchaseMoreThanOne: boolean,\n anyGroupMembersHasMustPurchaseMoreThanOne: boolean\n) => {\n return mustPurchaseMoreThanOne || anyGroupMembersHasMustPurchaseMoreThanOne;\n};\n\nconst shouldUpdateQuantityIsVisible = (\n isCustomizeNowProductBox: boolean,\n isInStock: boolean,\n isRequestAQuoteEnabled: boolean | undefined,\n itemCanBeReplaced: boolean,\n shouldShowQuantityDropdown: boolean,\n showCartAndQuantityComponent: boolean\n) => {\n return !(\n isCustomizeNowProductBox ||\n isRequestAQuoteEnabled ||\n (isInStock &&\n isReplaceableOrItemWithQuantity(\n itemCanBeReplaced,\n shouldShowQuantityDropdown,\n showCartAndQuantityComponent\n ))\n );\n};\n\ninterface CustomizationProduct {\n customizationUrl: string;\n isCustomizable: boolean;\n link: string;\n}\n\nconst getConditionalProductInfo = (\n groupMemberSelected: boolean | undefined,\n product: Product,\n selectedProduct: SelectedProduct\n): CustomizationProduct => {\n const { isCustomizable, link, customizationUrl } = groupMemberSelected\n ? selectedProduct\n : product;\n\n return {\n isCustomizable,\n link,\n customizationUrl,\n };\n};\n\nconst shouldUndoBtnContainerStyle = (\n anyGroupMembersHasMustPurchaseMoreThanOne: boolean,\n grouping: boolean,\n groupingValue: string,\n isCustomizeNowProductBox: boolean,\n showQuantityDropdown: boolean\n) => {\n return (\n !isCustomizeNowProductBox &&\n ((grouping &&\n ((groupingValue && showQuantityDropdown) ||\n (!groupingValue && anyGroupMembersHasMustPurchaseMoreThanOne))) ||\n (!grouping && showQuantityDropdown))\n );\n};\n\nconst AdditionalControl = ({\n displayRequiredCustomization,\n forceCustomQuantity,\n groupingValue,\n groupMemberSelected,\n handleAddToCart,\n handleQuantityChange,\n handleQuantityIsVisible,\n hasCustomizableProductsOverride,\n hasMultipleVGGrouping,\n incrementCount,\n isOnCompareProductsPage,\n isRequestAQuoteEnabled,\n isVirtualItem,\n itemIsInCart,\n lastQuantityInterval,\n previouslyPurchased,\n product,\n productBoxType,\n productListingView,\n quantity,\n selectedGroupMember,\n selectedProduct,\n error,\n setError,\n showQuantityDropdown,\n startBuy,\n}: AdditionalControlProps) => {\n const {\n grouping,\n groupingAttributes,\n hasAccessories,\n isReplacementEligible = false,\n itemNumber,\n mustBuy,\n mustPurchaseMoreThanOne,\n requestAQuoteUrl,\n } = product;\n const qtyInputRef = useRef(null);\n\n const { isCompareWithProductBox, isCustomizeNowProductBox } = productBoxType;\n const { isInStock, isOutlet } = selectedProduct;\n const { isCustomizable, link, customizationUrl } = getConditionalProductInfo(\n groupMemberSelected,\n product,\n selectedProduct\n );\n const anyGroupMembersHasMustPurchaseMoreThanOne = doesAnyGroupMembersHasMustPurchaseMoreThanOne(\n groupingAttributes\n );\n const isVirtual = grouping && isVirtualItem;\n const opensModal = canButtonOpenModal(\n hasAccessories,\n hasMultipleVGGrouping,\n isVirtualItem\n );\n const showQuantityComponents = shouldShowQuantityComponents(\n mustPurchaseMoreThanOne,\n anyGroupMembersHasMustPurchaseMoreThanOne\n );\n const shouldShowQuantityDropdown =\n showQuantityDropdown && showQuantityComponents;\n const showCartAndQuantityComponent =\n showQuantityComponents && grouping && !groupingValue;\n const itemCanBeReplaced = canBeReplaced(isOutlet, isReplacementEligible);\n const undoBtnContainerStyle = shouldUndoBtnContainerStyle(\n anyGroupMembersHasMustPurchaseMoreThanOne,\n grouping,\n groupingValue,\n isCustomizeNowProductBox,\n showQuantityDropdown\n );\n\n const shouldUpdateQuantityVisibility = shouldUpdateQuantityIsVisible(\n isCustomizeNowProductBox,\n isInStock,\n isRequestAQuoteEnabled,\n itemCanBeReplaced,\n shouldShowQuantityDropdown,\n showCartAndQuantityComponent\n );\n\n useEffect(() => {\n if (error) {\n qtyInputRef.current?.focus();\n }\n }, [error]);\n\n useEffect(() => {\n if (shouldUpdateQuantityVisibility) {\n handleQuantityIsVisible();\n }\n }, [handleQuantityIsVisible, shouldUpdateQuantityVisibility]);\n\n if (isCustomizeNowProductBox) {\n return (\n \n );\n } else if (isRequestAQuoteEnabled) {\n return ;\n } else if (isInStock) {\n if (itemCanBeReplaced) {\n return (\n \n );\n }\n\n if (shouldShowQuantityDropdown) {\n return (\n \n );\n }\n\n if (showCartAndQuantityComponent) {\n return (\n \n \n \n );\n }\n\n return (\n <>\n \n \n \n \n \n );\n }\n\n return null;\n};\n\nexport default AdditionalControl;\n","import React from \"react\";\nimport { Product, SelectedProduct } from \"~/common/Store/models/ProductListing\";\nimport { UserState } from \"~/common/Store/models/RootReadonly\";\nimport EmailButton from \"../Email/EmailButton\";\n\ninterface EmailButtonWrapperProps {\n hasCustomizableProductsOverride: boolean;\n isCarouselProductBox: boolean;\n product: Product;\n selectedProduct: SelectedProduct;\n groupingValue: string;\n user: UserState;\n}\n\nconst getOutOfStockItemNumber = (\n product: Product,\n selectedProduct: SelectedProduct,\n groupingValue: string\n): string => {\n const { grouping, groupingAttributes } = product;\n\n const hasInStockGroupingMembers =\n grouping &&\n groupingAttributes.groupMembers.some((members) => members.isInStock);\n\n // VG items have no master grouping item, so need to be handled differently\n if (groupingAttributes.isVirtual) {\n return hasInStockGroupingMembers\n ? selectedProduct.itemNumber\n : groupingValue;\n }\n\n return hasInStockGroupingMembers\n ? selectedProduct.itemNumber\n : product.itemNumber;\n};\n\nconst EmailButtonWrapper = ({\n hasCustomizableProductsOverride,\n isCarouselProductBox,\n product,\n selectedProduct,\n groupingValue,\n user,\n}: Readonly) => {\n const shouldDisplayOutOfStockEmail =\n !selectedProduct.isInStock &&\n !product.isReplacementEligible &&\n !isCarouselProductBox &&\n !hasCustomizableProductsOverride;\n\n return (\n <>\n {shouldDisplayOutOfStockEmail && (\n \n )}\n \n );\n};\n\nexport default EmailButtonWrapper;\n","import React from \"react\";\nimport { Product } from \"~/common/Store/models/ProductListing\";\nimport { anyGroupMembersInStock } from \"../logic\";\nimport GroupingSelect from \"../GroupingSelect\";\nimport { ProductListingView } from \"..\";\n\ninterface GroupingSelectWrapperProps {\n groupingValue: string;\n handleGroupingChange: (\n event: React.ChangeEvent\n ) => void;\n isCarouselProductBox: boolean;\n isCompareWithProductBox: boolean;\n isOnCompareProductsPage: boolean;\n isVirtualItem: boolean;\n product: Product;\n productListingView?: ProductListingView;\n}\n\nconst GroupingSelectWrapper = ({\n groupingValue,\n handleGroupingChange,\n isCarouselProductBox,\n isCompareWithProductBox,\n isOnCompareProductsPage,\n isVirtualItem,\n product,\n productListingView,\n}: GroupingSelectWrapperProps) => {\n const { grouping, groupingAttributes } = product;\n\n return (\n <>\n {grouping &&\n anyGroupMembersInStock(groupingAttributes) &&\n !isVirtualItem && (\n \n )}\n \n );\n};\n\nexport default GroupingSelectWrapper;\n","import React from \"react\";\nimport { Product } from \"~/common/Store/models/ProductListing\";\nimport LimitedSaleStockNotice from \"~/EventDayPage/LimitedSaleStockNotice\";\nimport { ProductListingView } from \"..\";\n\ninterface LimitedSaleStockNoticeWrapperProps {\n product: Product;\n productListingView: ProductListingView;\n showSaleStockNotice: boolean;\n}\n\nconst LimitedSaleStockNoticeWrapper = ({\n product,\n productListingView,\n showSaleStockNotice,\n}: LimitedSaleStockNoticeWrapperProps) => {\n const displayNotice =\n productListingView === \"list\" &&\n showSaleStockNotice &&\n product.saleStock?.saleStockLimit &&\n product.saleStock?.remainingSaleQuantity;\n\n return (\n <>\n {displayNotice && (\n
\n \n
\n )}\n \n );\n};\n\nexport default LimitedSaleStockNoticeWrapper;\n","import React from \"react\";\n\ninterface OutOfStockLabelProps {\n isInStock: boolean;\n isReplacementEligible: boolean;\n isCarouselProductBox: boolean;\n outOfStockStyle: string | undefined;\n}\n\nconst OutOfStockLabel = ({\n isInStock,\n isReplacementEligible,\n isCarouselProductBox,\n outOfStockStyle,\n}: OutOfStockLabelProps) => {\n const shouldShowOutOfStock =\n !isInStock && !isReplacementEligible && isCarouselProductBox;\n\n if (shouldShowOutOfStock) {\n return (\n \n \n Out Of Stock\n \n \n );\n }\n\n return null;\n};\n\nexport default OutOfStockLabel;\n","import React from \"react\";\n\ninterface RequestAQuoteButtonProps {\n requestAQuoteUrl: string | undefined;\n}\n\nconst RequestAQuoteButton = ({\n requestAQuoteUrl,\n}: RequestAQuoteButtonProps) => {\n const href = requestAQuoteUrl ?? \"/special-orders/\";\n\n return (\n \n Request a Quote\n \n );\n};\n\nexport default RequestAQuoteButton;\n","import React from \"react\";\nimport { ProductListingView } from \"..\";\n\ninterface TopProductsAddToCartErrorMessageProps {\n errorMessage: string | undefined;\n itemNumber: string;\n productListingView: ProductListingView;\n}\n\nconst TopProductsAddToCartErrorMessage = ({\n errorMessage,\n itemNumber,\n productListingView,\n}: TopProductsAddToCartErrorMessageProps) => {\n const displayErrorMessage =\n productListingView === \"topProductsCarousel\" && errorMessage;\n\n return (\n <>\n {displayErrorMessage && (\n \n {errorMessage}\n

\n )}\n \n );\n};\n\nexport default TopProductsAddToCartErrorMessage;\n","import React, { SyntheticEvent } from \"react\";\nimport getCustomizableProductUrl from \"~/common/helpers/getCustomizableProductUrl\";\nimport setWindowLocationHref from \"~/common/navigation/setWindowLocationHref\";\nimport { Product } from \"~/common/Store/models/ProductListing\";\nimport { groupingSelected, valid } from \"../validations\";\nimport CartAndQuantity, { CartAndQuantityProps } from \"./CartAndQuantity\";\nimport ValidationError from \"../ValidationError\";\n\ninterface CustomizableProps extends CartAndQuantityProps {\n product: Product;\n itemNumber: string;\n isCustomizable: boolean;\n hasCustomizableProductsOverride: boolean;\n isVirtual?: boolean;\n hasMultipleVGGrouping?: boolean;\n groupingValue?: string;\n handleAddToCart?: (event: SyntheticEvent) => void;\n displayRequiredCustomization?: boolean;\n link?: string;\n customizationUrl: string;\n isOnCompareProductsPage: boolean;\n setError: React.Dispatch<\n React.SetStateAction | undefined>\n >;\n}\n\nexport default function Customizable({\n isCompareWithProductBox,\n isOnCompareProductsPage,\n productListingView,\n undoBtnContainerStyle,\n product,\n itemNumber,\n isCustomizable,\n hasCustomizableProductsOverride,\n isVirtual,\n hasMultipleVGGrouping,\n groupingValue,\n handleAddToCart,\n displayRequiredCustomization,\n link = \"\",\n customizationUrl,\n setError,\n}: CustomizableProps) {\n const handleCustomize = (event: SyntheticEvent) => {\n event.preventDefault();\n\n if (!isVirtual) {\n window.location.href = getCustomizableProductUrl(\n product.customizationUrl,\n itemNumber\n );\n }\n\n const isValid = valid({\n product,\n quantity: product.startBuy,\n groupingValue,\n validationsToRun: [groupingSelected],\n });\n\n if (!isValid.isError && isVirtual) {\n if (!hasMultipleVGGrouping && groupingValue) {\n setWindowLocationHref(\n getCustomizableProductUrl(customizationUrl, groupingValue)\n );\n }\n if (hasMultipleVGGrouping && handleAddToCart) {\n handleAddToCart(event);\n }\n } else if (isValid.isError) {\n setError(isValid.error);\n }\n };\n\n const comparisonPageStyles = isOnCompareProductsPage\n ? \"leading-3 text-sm-1/2 h-8 mb-0\"\n : \"\";\n\n return (\n \n {displayRequiredCustomization ||\n (hasCustomizableProductsOverride && isCustomizable) ? (\n \n \n Customize Now\n \n ) : (\n \n \n Learn More\n \n \n )}\n \n );\n}\n","import React, { useState, useRef, useEffect } from \"react\";\nimport ct from \"class-types.macro\";\nimport { UserState } from \"~/common/Store/models/RootReadonly\";\nimport { groupingSelected, valid as productValid } from \"../../validations\";\nimport { Product } from \"~/common/Store/models/ProductListing\";\nimport { valid } from \"~/common/Email/EmailValidator\";\n\ninterface Props {\n product: Product;\n itemNumber: string;\n user: UserState;\n}\n\nexport default ({ product, itemNumber, user }: Props) => {\n const form = useRef(null);\n\n const [hide, setHideElement] = useState(false);\n\n const [email, setEmail] = useState(\"\");\n\n useEffect(() => {\n if (user.emailAddress !== undefined) {\n setEmail(String(user.emailAddress));\n }\n }, [user.emailAddress]);\n\n const [validationMessage, setValidationMessage] = useState(\"\");\n const [successMessage, setSuccessMessage] = useState(\"\");\n\n const handleEmailChange = (event: React.ChangeEvent) => {\n const newEmail = String(event.target.value);\n setEmail(newEmail);\n };\n\n const handleSendingEmail = async (event: React.SyntheticEvent) => {\n event.preventDefault();\n\n const isValid = productValid({\n product,\n quantity: 1,\n groupingValue: itemNumber,\n validationsToRun: [groupingSelected],\n });\n\n if (\n product.grouping &&\n product.groupingAttributes.isVirtual &&\n isValid.isError\n ) {\n return {};\n }\n\n if (!valid({ emailAddress: email })) {\n return setValidationMessage(\"Email is invalid, try again.\");\n }\n\n const endpointUrl = \"/api/customers/notifications/productavailability/add\";\n\n const request = {\n itemnumber: itemNumber,\n email,\n };\n\n await fetch(endpointUrl, {\n method: \"POST\",\n headers: {\n \"Content-type\": \"application/json\",\n },\n body: JSON.stringify(request),\n }).catch((error) => {\n // eslint-disable-next-line no-console\n console.log(error);\n });\n\n setHideElement(true);\n\n const { emailSignupEvent } = await import(\"~/gtm\");\n emailSignupEvent(email);\n\n return setSuccessMessage(\n \"We will notify you when this product is available.\"\n );\n };\n\n return (\n
\n {!successMessage ? (\n <>\n
\n

Out of Stock

\n\n

\n Enter an email to be notified when product is back in stock:\n

\n
\n\n \n {!hide && (\n
\n \n {\n // Note: CF uses 'sellout-submit' class to do some DOM manipulation using jquery\n // To avoid using jquery but to use the react event handling,\n // updated the classname to 'sellout-submit-react' instead.\n }\n \n
\n )}\n
\n {validationMessage && (\n

\n {validationMessage}\n

\n )}\n
\n \n \n ) : (\n
\n

Out of Stock

{\" \"}\n

{successMessage}

\n
\n )}\n
\n );\n};\n","import React from \"react\";\nimport { cls } from \"@wss/cls\";\nimport { upperCaseFirst } from \"@wss/utilities/strings\";\nimport formatAsCurrency from \"@wss/utilities/formatAsCurrency\";\nimport { GroupMember, Product } from \"~/common/Store/models/ProductListing\";\nimport isActiveSale from \"../isActiveSale\";\nimport { ProductListingView } from \"~/productListing/ProductBox/AddToCart\";\n\ninterface Props {\n groupingValue: string;\n product: Product;\n isCompareWithProductBox?: boolean;\n isOnCompareProductsPage?: boolean;\n isCarouselProductBox?: boolean;\n productListingView?: ProductListingView;\n handleGroupingChange: (\n event: React.ChangeEvent\n ) => void;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\nconst getSuffixType = (x: GroupMember) => x.configurationOptions[0]!.name;\n\nconst shouldHideSuffixPrice = (suffix: GroupMember) =>\n suffix.price.applyTypeLPriceToPlatinumPlus ||\n suffix.price.displayMinimumAdvertisedPrice;\n\nexport default ({\n groupingValue,\n product,\n handleGroupingChange,\n isCompareWithProductBox,\n isOnCompareProductsPage,\n isCarouselProductBox,\n productListingView,\n}: Props) => {\n const { groupingAttributes } = product;\n /** TODO: Catalog should give the title attribute */\n const groupMembers = groupingAttributes.groupMembers\n .map((groupMemberOriginal) => ({\n ...groupMemberOriginal,\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n title: groupMemberOriginal.configurationOptions[0]!.value,\n activeSale: isActiveSale(groupMemberOriginal.price),\n }))\n .sort(function handleSort(a, b) {\n return a.title?.localeCompare(b.title);\n });\n\n return (\n \n \n {groupMembers.map((groupMember) => (\n \n {groupMember.title}\n {shouldHideSuffixPrice(groupMember)\n ? \"\"\n : ` - ${formatAsCurrency.formatIfUndefined(\n groupMember.activeSale\n ? groupMember.price.salePrice\n : groupMember.price.price\n )}/${groupMember.unitOfMeasurement}`}\n \n ))}\n \n );\n};\n","import React from \"react\";\nimport { Product } from \"~/common/Store/models/ProductListing\";\n\ninterface Props {\n product: Product;\n}\n\nexport default ({ product }: Props) => {\n return (\n <>\n \n {!product.grouping && (\n \n )}\n {product.outletAttributes.isOutlet && (\n <>\n \n \n \n )}\n \n );\n};\n","import React, { MutableRefObject } from \"react\";\nimport VirtualGroupingModal from \"~/common/AddToCartModal/VirtualGroupingModal\";\nimport AccessoriesModal from \"~/common/AddToCartModal/AccessoriesModal\";\nimport OutletModal from \"~/common/AddToCartModal/OutletModal\";\nimport ProductWarningModal from \"~/common/AddToCartModal/ProductWarningModal\";\nimport CartLimitModal from \"~/ProductDetails/Pricing/AddToCart/CartLimitModal\";\nimport { AddToCartModalUserInputs } from \"~/common/AddToCartModal\";\nimport {\n Accessory,\n GroupingAttributes,\n OutletAttributes,\n} from \"~/common/Store/models/ProductListing\";\n\nexport interface ProductModalData {\n itemNumber: string;\n activeModal:\n | \"\"\n | \"accessories\"\n | \"virtualGrouping\"\n | \"warranty\"\n | \"commercialUse\"\n | \"warning\"\n | \"outlet\";\n closeModal: () => void;\n submitModal: (result?: AddToCartModalUserInputs | undefined) => void;\n hasAcknowledgedProductWarning: MutableRefObject;\n hasAcknowledgedOutletItem: MutableRefObject;\n hasCustomizableProductsOverride: boolean;\n cartLimitMessage: string;\n isCartModalOpen: boolean;\n setIsCartModalOpen: React.Dispatch>;\n accessories: readonly Accessory[];\n hasAccessories: boolean;\n setAccessories: React.Dispatch>;\n groupingAttributes: GroupingAttributes;\n outletAttributes: OutletAttributes;\n isOutlet: boolean;\n warningContent: string | undefined;\n previouslyPurchased: boolean;\n displayRequiredCustomization: boolean;\n quantity: string;\n itemQuantityVisible: boolean;\n handleQuantityChange: (value: string) => void;\n selectedAccessoryIds: string[] | undefined;\n}\n\nconst ProductModals = ({\n itemNumber,\n activeModal,\n isCartModalOpen,\n accessories,\n hasAccessories,\n setAccessories,\n groupingAttributes,\n outletAttributes,\n isOutlet,\n submitModal,\n closeModal,\n hasAcknowledgedOutletItem,\n hasAcknowledgedProductWarning,\n hasCustomizableProductsOverride,\n cartLimitMessage,\n setIsCartModalOpen,\n warningContent,\n previouslyPurchased,\n displayRequiredCustomization,\n quantity,\n itemQuantityVisible,\n selectedAccessoryIds,\n handleQuantityChange,\n}: ProductModalData) => {\n const isVirtualGroupingModalOpen = activeModal === \"virtualGrouping\";\n const isAccessoriesModalOpen = activeModal === \"accessories\";\n const isOutletModalOpen = activeModal === \"outlet\";\n const isProductWarningModalOpen = activeModal === \"warning\";\n\n return (\n <>\n {isVirtualGroupingModalOpen && groupingAttributes && (\n \n )}\n {isAccessoriesModalOpen && !selectedAccessoryIds && (\n \n )}\n {outletAttributes && isOutletModalOpen && (\n \n )}\n {warningContent && isProductWarningModalOpen && (\n \n )}\n {isCartModalOpen && (\n \n )}\n \n );\n};\n\nexport default ProductModals;\n","/* eslint-disable jsx-a11y/control-has-associated-label */\n/* eslint-disable react/style-prop-object */\nimport React, { useState } from \"react\";\nimport EmailButton from \"./Email/EmailButton\";\nimport { Product } from \"~/common/Store/models/ProductListing\";\nimport { UserState } from \"~/common/Store/models/RootReadonly\";\nimport { PurchasingGroupSelectedProduct } from \"~/productListing/PurchasingGroupPage/purchasingGroupPageResult\";\n\ninterface Props {\n user: UserState;\n product: Product;\n isProductDiscontinued?: boolean;\n setPurchasingGroupItemsSelected: (\n selectedProduct: PurchasingGroupSelectedProduct\n ) => void;\n}\n\nconst PurchasingGroupMinimumQuantityView = ({\n user,\n product,\n isProductDiscontinued,\n setPurchasingGroupItemsSelected,\n}: Props) => {\n const { isInStock } = product;\n const [quantity, setQuantity] = useState(0);\n\n const handleQuantityChange = (event: React.ChangeEvent) => {\n event.preventDefault();\n let qty = Number(event.target.value);\n\n qty = qty > 0 ? qty : 0;\n\n setQuantity(qty);\n if (setPurchasingGroupItemsSelected) {\n setPurchasingGroupItemsSelected({\n itemNumber: product.grouping ? product.originalId : product.itemNumber,\n product,\n quantity: qty,\n });\n }\n };\n\n const handleQuantityUpButtonChange = (\n event: React.MouseEvent\n ) => {\n event.preventDefault();\n const newValue = Number(quantity) + 1;\n setQuantity(newValue);\n if (setPurchasingGroupItemsSelected) {\n setPurchasingGroupItemsSelected({\n itemNumber: product.grouping ? product.originalId : product.itemNumber,\n product,\n quantity: newValue,\n });\n }\n };\n\n const handleQuantityDownButtonChange = (\n event: React.MouseEvent\n ) => {\n event.preventDefault();\n if (quantity > 0) {\n const newValue = Number(quantity) - 1;\n setQuantity(newValue);\n if (setPurchasingGroupItemsSelected) {\n setPurchasingGroupItemsSelected({\n itemNumber: product.grouping\n ? product.originalId\n : product.itemNumber,\n product,\n quantity: newValue,\n });\n }\n }\n };\n\n return (\n
\n {!isInStock && !isProductDiscontinued && (\n \n )}\n {isInStock && (\n
\n \n
\n \n \n \n
\n
\n )}\n
\n );\n};\n\nexport default PurchasingGroupMinimumQuantityView;\n","import React, { useEffect } from \"react\";\nimport { range } from \"range\";\nimport { GroupMember, Product } from \"~/common/Store/models/ProductListing\";\nimport CartAndQuantity, { CartAndQuantityProps } from \"./CartAndQuantity\";\n\nexport const incrementCount = 16;\n\ninterface QuantityDropdown extends CartAndQuantityProps {\n handleQuantityChange: (value: string) => void;\n product: Product;\n grouping: boolean;\n lastQuantityInterval: number;\n quantity: string;\n forceCustomQuantity: boolean;\n handleAddToCart: (event: React.SyntheticEvent) => void;\n selectedGroupMember: false | \"\" | GroupMember | undefined;\n mustPurchaseMoreThanOne: boolean;\n startBuy: number;\n mustBuy: number;\n}\n\nconst QuantityDropdown = ({\n handleQuantityChange,\n lastQuantityInterval,\n quantity,\n forceCustomQuantity,\n handleAddToCart,\n selectedGroupMember,\n mustPurchaseMoreThanOne,\n startBuy,\n mustBuy,\n isCompareWithProductBox,\n productListingView,\n undoBtnContainerStyle,\n}: QuantityDropdown) => {\n const handleQuantityChanged = ({\n target: { value },\n }: React.ChangeEvent) =>\n handleQuantityChange(value);\n\n useEffect(() => {\n handleQuantityChange(startBuy.toString());\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [selectedGroupMember]);\n\n let increments = mustPurchaseMoreThanOne\n ? range(0, incrementCount).map((index) => startBuy + index * mustBuy)\n : [];\n\n if (selectedGroupMember && selectedGroupMember.mustPurchaseMoreThanOne) {\n increments = range(0, incrementCount).map(\n (index) =>\n selectedGroupMember.startBuy + index * selectedGroupMember.mustBuy\n );\n }\n\n return (\n \n \n {range(1, incrementCount).map((i) => (\n \n ))}\n \n \n