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AA,CAAS8H,EAAI,cACnD,OAAOsS,EAAQA,CAAK,CAAC,EAAE,CAAGqE,KAAAA,CAC5B,oDCFA4V,EAAAC,OAAA,EAAkB,k6BCAlBD,EAAAC,OAAA,EAAkB,gLCAlBD,EAAAC,OAAA,EAAkB,oOCAlBD,EAAAC,OAAA,EAAkB,mdCAlBD,EAAAC,OAAA,EAAkB,8qBCAlBD,EAAAC,OAAA,EAAkB,sICAlBD,EAAAC,OAAA,EAAkB,sgDCAlBD,EAAAC,OAAA,EAAkB,qhBCAlBD,EAAAC,OAAA,EAAkB,8dCAlBD,EAAAC,OAAA,EAAkB,mMCAlBD,EAAAC,OAAA,EAAkB,0HCAlBD,EAAAC,OAAA,EAAkB,+DCAlBD,EAAAC,OAAA,EAAkB,4LCAlBD,EAAAC,OAAA,EAAkB,4PCAlBD,EAAAC,OAAA,EAAkB,iJCAlBD,EAAAC,OAAA,EAAkB,6nBCAlBD,EAAAC,OAAA,EAAkB,gvBCAlBD,EAAAC,OAAA,EAAkB,oeCAlBD,EAAAC,OAAA,EAAkB,orBCAlBD,EAAAC,OAAA,EAAkB,gUCAlBD,EAAAC,OAAA,EAAkB,6UCAlBD,EAAAC,OAAA,EAAkB,0KCAlBD,EAAAC,OAAA,EAAkB,wwBCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/../../packages/core/src/RecommendedProducts/index.ts","webpack://_N_E/../../packages/hooks/src/useRecommendedProducts/types.ts","webpack://_N_E/../../packages/hooks/src/useRecommendedProducts/index.ts","webpack://_N_E/../../packages/core/src/RecommendedProducts/types.ts","webpack://_N_E/./src/__components/CartEmptyState/index.tsx","webpack://_N_E/../../components/src/SocialProof/index.tsx","webpack://_N_E/../../packages/core/src/socialProof/SocialProofApiService.ts","webpack://_N_E/../../packages/hooks/src/useSocialProof/types.ts","webpack://_N_E/../../packages/hooks/src/useSocialProof/index.ts","webpack://_N_E/../../packages/hooks/src/useProductAddons/index.ts","webpack://_N_E/./src/__components/CartProductList/ServiceIconModal/index.tsx","webpack://_N_E/./src/__components/CartProductList/ProductServiceCheckbox/index.tsx","webpack://_N_E/./src/__components/CartProductList/ProductService/ServiceRadio.tsx","webpack://_N_E/./src/__components/CartProductList/ProductServiceRadioGroup/index.tsx","webpack://_N_E/./src/__components/CartProductList/ProductServiceContent/index.tsx","webpack://_N_E/./src/__components/CartProductList/CartProductAddons/Addon/index.tsx","webpack://_N_E/./src/__components/CartProductList/CartProductAddons/AddonButton/types.ts","webpack://_N_E/./src/__components/CartProductList/CartProductAddons/AddonButton/index.tsx","webpack://_N_E/./src/__components/CartProductList/CartProductAddons/AddonCard/index.tsx","webpack://_N_E/./src/__components/CartProductList/CartProductAddons/index.tsx","webpack://_N_E/../../packages/hooks/src/useDebouncedCallback/index.ts","webpack://_N_E/../../components/src/QuantityStepper/types.ts","webpack://_N_E/../../components/src/QuantityStepper/index.tsx","webpack://_N_E/./src/__components/ProductCard/__components/ProductCardImage/index.tsx","webpack://_N_E/./src/__components/CartProductList/CartProductRow/utils.ts","webpack://_N_E/./src/__components/CartProductList/CartProductRow/index.tsx","webpack://_N_E/../../packages/core/src/shoppingCart/index.ts","webpack://_N_E/./src/__components/CartProductList/ProductService/index.tsx","webpack://_N_E/../../packages/hooks/src/useSuggestedProducts/index.tsx","webpack://_N_E/./src/__components/CartProductList/SuggestedProducts/index.tsx","webpack://_N_E/./src/__components/CartProductList/index.tsx","webpack://_N_E/./src/__components/ProductCard/__components/ProductStatus/index.tsx","webpack://_N_E/./src/layouts/_components/TwoSideLayout/TwoSideLayout.tsx","webpack://_N_E/../../components/src/Alert/index.tsx","webpack://_N_E/../../components/src/Carousel/useCurrentSlide.ts","webpack://_N_E/../../components/src/Carousel/Slider.tsx","webpack://_N_E/../../components/src/Carousel/Buttons/BackButton.tsx","webpack://_N_E/../../components/src/Carousel/Buttons/NextButton.tsx","webpack://_N_E/../../components/src/Carousel/Carousel.tsx","webpack://_N_E/../../components/src/Carousel/ResponsiveCarousel.tsx","webpack://_N_E/../../components/src/Carousel/index.ts","webpack://_N_E/../../components/src/HtmlCustom/types.ts","webpack://_N_E/../../components/src/RadioGroupBase/index.tsx","webpack://_N_E/../../packages/utils/src/isAnalyticsConsentDenied/index.ts","webpack://_N_E/../../packages/services/src/Algonomy/DTO/TopSellingDTO/index.ts","webpack://_N_E/../../packages/utils/src/useCalcItemPrice/index.ts","webpack://_N_E/../../components/src/Cards/TopSellingCard/components/SearchResultsPrice/index.tsx","webpack://_N_E/../../components/src/Cards/TopSellingCard/index.tsx","webpack://_N_E/../../components/src/RecommendedProductCarousel/index.tsx","webpack://_N_E/../../packages/hooks/src/useScroll/index.ts","webpack://_N_E/../../packages/hooks/src/useThrottle/index.ts","webpack://_N_E/../../components/src/ScrollTopButton/index.tsx","webpack://_N_E/../../packages/utils/src/getCookieByName/index.ts","webpack://_N_E/./src/__components/CartEmptyState/CartEmptyState.module.css","webpack://_N_E/./src/__components/CartProductList/CartProductAddons/Addon/Addon.module.css","webpack://_N_E/./src/__components/CartProductList/CartProductAddons/AddonButton/AddonButton.module.css","webpack://_N_E/./src/__components/CartProductList/CartProductAddons/AddonCard/AddonCard.module.css","webpack://_N_E/./src/__components/CartProductList/CartProductAddons/CartProductAddons.module.css","webpack://_N_E/./src/__components/CartProductList/CartProductList.module.css","webpack://_N_E/./src/__components/CartProductList/CartProductRow/CartProductRow.module.css","webpack://_N_E/./src/__components/CartProductList/ProductService/Service.module.css","webpack://_N_E/./src/__components/CartProductList/ProductServiceCheckbox/ProductServiceCheckbox.module.css","webpack://_N_E/./src/__components/CartProductList/ProductServiceContent/ProductServiceContent.module.css","webpack://_N_E/./src/__components/CartProductList/ProductServiceRadioGroup/ProductServiceRadioGroup.module.css","webpack://_N_E/./src/__components/CartProductList/ServiceIconModal/ServiceIconModal.module.css","webpack://_N_E/./src/__components/ProductCard/__components/ProductCardImage/ProductCardImage.module.css","webpack://_N_E/./src/__components/ProductCard/__components/ProductStatus/ProductStatus.module.css","webpack://_N_E/./src/layouts/_components/TwoSideLayout/TwoSideLayout.module.css","webpack://_N_E/../../components/src/Alert/Alert.module.css","webpack://_N_E/../../components/src/Cards/TopSellingCard/TopSellingCard.module.css","webpack://_N_E/../../components/src/Cards/TopSellingCard/components/SearchResultsPrice/SearchResultsPrice.module.css","webpack://_N_E/../../components/src/Carousel/Carousel.module.css","webpack://_N_E/../../components/src/Carousel/Slider.module.css","webpack://_N_E/../../components/src/QuantityStepper/QuantityStepper.module.css","webpack://_N_E/../../components/src/RadioGroupBase/RadioGroupBase.module.css","webpack://_N_E/../../components/src/RecommendedProductCarousel/RecommendedProductCarousel.module.css","webpack://_N_E/../../components/src/ScrollTopButton/ScrollTopButton.module.css"],"sourcesContent":["import ApiClient from '@package/services/src/ApiClient'\nimport { RecommendedProductService } from './services';\nimport { CarouselsResponse } from './types';\n\nclass RecommendedProductCarouselsApi implements RecommendedProductService {\n  constructor(private readonly apiClient: ApiClient) {}\n\n  public async getRecommendedProductsCarouselsItems(placements: string, brandCode: string): Promise<CarouselsResponse | null> {\n    try {\n      const urlParams = new URLSearchParams([\n        ['brandCode', brandCode],\n        ['placements', placements],\n        ['count', '15'],\n      ]);\n      const recommendedProductsCarouselData = await this.apiClient.get(`recsForPlacements?${urlParams}`);\n      const json = await recommendedProductsCarouselData.json();\n      return json;\n    } catch (error) {\n      return null;\n    }\n  }\n}\n\nexport default RecommendedProductCarouselsApi;\n","export const RECOMMENDED_PRODUCTS = 'RECOMMENDED_PRODUCTS';\n","import { apiClient } from '../services';\nimport { useStrictQuery } from '../useCustomQuery';\n\nimport RecommendedProductCarouselsApi from '@package/core/src/RecommendedProducts';\nimport { RECOMMENDED_PRODUCTS } from './types';\n\nconst recommendedProductsService = new RecommendedProductCarouselsApi(apiClient);\n\nconst useRecommendedProducts = (placement: string, brandCode: string) => {\n  const { data: recommendedProducts } = useStrictQuery(\n    [RECOMMENDED_PRODUCTS],\n    async () => {\n      return await recommendedProductsService.getRecommendedProductsCarouselsItems(\n        placement,\n        brandCode,\n      );\n    },\n    { refetchOnWindowFocus: false, refetchOnMount: false },\n  );\n  return { recommendedProducts };\n};\n\nexport default useRecommendedProducts;\n","import { Placements } from '@package/services/src/Algonomy/types';\n\nexport const EMPTY_SHOPPING_CART_PAGE_PLACEMENTS = 'cart_page.rr2';\nexport const EMPTY_SHOPPING_CART_MOBILE_PAGE_PLACEMENTS = 'cart_page.mrr2'\n\nexport type CarouselsResponse = {\n  placements?: Placements;\n  rcs: string;\n  status: string;\n  viewGuid?: string;\n};\n","import RecommendedProductCarousel from '@base/components/src/RecommendedProductCarousel';\nimport Image from '@base/components/src/Image';\nimport Link from '@base/components/src/Link';\nimport { Underline } from '@base/components/src/Link/types';\nimport config from 'config-base';\nimport clsx from 'clsx';\nimport styles from './CartEmptyState.module.css';\nimport useRecommendedProducts from '@package/hooks/src/useRecommendedProducts';\nimport {\n  EMPTY_SHOPPING_CART_MOBILE_PAGE_PLACEMENTS,\n  EMPTY_SHOPPING_CART_PAGE_PLACEMENTS,\n} from '@package/core/src/RecommendedProducts/types';\nimport { PlacementItem } from '@app/marketplace/src/types/algonomy';\nimport { CartEmptyStateProps } from './types';\n\nconst CartEmptyState = ({ isMobile }: CartEmptyStateProps) => {\n  const { recommendedProducts } = useRecommendedProducts(\n    isMobile ? EMPTY_SHOPPING_CART_MOBILE_PAGE_PLACEMENTS : EMPTY_SHOPPING_CART_PAGE_PLACEMENTS,\n    config.brandCode,\n  );\n  return (\n    <>\n      <section id=\"cart-empty-page\" className={styles.cartEmpty}>\n        <h1 className={styles.emptyTitle}>Your shopping cart is empty</h1>\n        <div className={styles.cartImage}>\n          <Image layout=\"fill\" src=\"/marketplace-static/images/icons/shoping-cart-empty.svg\" alt=\"shoppin-cart-empty\" />\n        </div>\n        <p className={styles.emptyDescription}>\n          Please{' '}\n          <Link\n            data-testid={'my-account-url'}\n            showCursorPointer\n            href={config.myAccountUrl}\n            classes={clsx(styles.emptyLink, config.brandCode === '2' && styles.emptyLinkAGD)}\n            underline={Underline.always}\n          >\n            log into\n          </Link>\n          {` your account to view any items that were added to your cart from a previous visit. If you are not a ${\n            config.brandCode === '2' ? 'Airgun Depot' : 'Pyramyd AIR'\n          } customer please `}\n          <Link\n            data-testid={'create-account-url'}\n            showCursorPointer\n            href={config.createAccountUrl}\n            classes={clsx(styles.emptyLink, config.brandCode === '2' && styles.emptyLinkAGD)}\n            underline={Underline.always}\n          >\n            sign up here!\n          </Link>\n        </p>\n      </section>\n      {recommendedProducts?.placements?.map((placement: PlacementItem, key) => (\n        <section key={key}>\n          <RecommendedProductCarousel placement={placement} brandCode={config.brandCode} />\n        </section>\n      ))}\n    </>\n  );\n};\n\nexport default CartEmptyState;\n","'use client';\n\nimport { SocialProofDynamicMessage } from '@package/core/src/socialProof';\nimport DOMPurify from 'isomorphic-dompurify';\nimport { useEffect, useRef } from 'react';\n\nimport { htmlSanitizeConfig } from '../HtmlCustom/types';\n\nimport { CreateSocialProofsResult, SocialProofProps, SocialProofRenderMessage } from './types';\n\nconst prepareInnerHtml = (message: SocialProofRenderMessage): string => {\n  const sanitizedStyle = message.messageStyle ? DOMPurify.sanitize(message.messageStyle, htmlSanitizeConfig) : '';\n  const sanitizedMessage = message.finalMessage ? DOMPurify.sanitize(message.finalMessage, htmlSanitizeConfig) : '';\n  const styleMarkup = sanitizedStyle ? `<style>${sanitizedStyle}</style>` : '';\n  const messageMarkup = sanitizedMessage ? `<div>${sanitizedMessage}</div>` : '';\n  return `${styleMarkup}${messageMarkup}`;\n};\n\nconst stripSelectorPrefix = (selector: string): string => selector.replace(/^[.#]+/, '');\n\nconst startMessageRotation = (\n  wrapper: HTMLElement,\n  preparedHtml: string[],\n  duration: number,\n): ReturnType<typeof setInterval> | null => {\n  wrapper.innerHTML = preparedHtml[0];\n  if (preparedHtml.length < 2) {\n    return null;\n  }\n  //start from the first message and rotate in interval\n  let index = 0;\n  return setInterval(() => {\n    index = (index + 1) % preparedHtml.length;\n    wrapper.innerHTML = preparedHtml[index];\n  }, duration);\n};\n\n//for categories cards we bound to each product id and a location selector\nconst createSocialProofsNodes = (messages: SocialProofDynamicMessage[]): CreateSocialProofsResult => {\n  const nodes: HTMLElement[] = [];\n  const timers: ReturnType<typeof setInterval>[] = [];\n\n  messages.forEach((dynamicMessage) => {\n    if (!dynamicMessage.locationSelector) {\n      return;\n    }\n\n    let anchors: NodeListOf<Element> | null = null;\n    try {\n      anchors = document.querySelectorAll(dynamicMessage.locationSelector);\n    } catch {\n      console.error('could not find a selector');\n      return;\n    }\n    if (!anchors || anchors.length === 0) {\n      return;\n    }\n\n    const displayInformationList = dynamicMessage.displayInformationList ?? [];\n    if (displayInformationList.length === 0) {\n      return;\n    }\n\n    const strippedSelector = stripSelectorPrefix(dynamicMessage.locationSelector);\n\n    anchors.forEach((anchor) => {\n      const productId = anchor.closest('[id]')?.id;\n      if (!productId) {\n        return;\n      }\n\n      const displayInformation = displayInformationList.find((info) => info.productId === productId);\n      if (!displayInformation) {\n        return;\n      }\n\n      const messageList = (displayInformation.messageList ?? []).filter(\n        (message): message is SocialProofRenderMessage & { order: number; empty: boolean } =>\n          Boolean(message.finalMessage),\n      );\n      if (messageList.length === 0) {\n        return;\n      }\n\n      //cache dom sanitization\n      const preparedHtml = messageList.map(prepareInnerHtml);\n\n      const wrapper = document.createElement('div');\n      wrapper.className = [`${strippedSelector}-social-proof-container`, messageList[0]?.messageStyleCode]\n        .filter(Boolean)\n        .join(' ');\n      const timer = startMessageRotation(wrapper, preparedHtml, dynamicMessage.displayDuration);\n      anchor.insertAdjacentElement('afterend', wrapper);\n      nodes.push(wrapper);\n      if (timer) {\n        timers.push(timer);\n      }\n    });\n  });\n\n  return { nodes, timers };\n};\n\nconst SocialProof = ({ data, subProductSku }: SocialProofProps) => {\n  const nodesRef = useRef<HTMLElement[]>([]);\n  const timersRef = useRef<ReturnType<typeof setInterval>[]>([]);\n\n  useEffect(() => {\n    //clean up nodes/timers from a previous response before injecting the new ones\n    timersRef.current.forEach((timer) => clearInterval(timer));\n    timersRef.current = [];\n    nodesRef.current.forEach((node) => node.remove());\n    nodesRef.current = [];\n\n    const messages = data?.dynamicSocialProofMessages;\n    if (!messages || messages.length === 0) {\n      return;\n    }\n    const { nodes, timers } = createSocialProofsNodes(messages);\n    nodesRef.current = nodes;\n    timersRef.current = timers;\n\n    return () => {\n      timersRef.current.forEach((timer) => clearInterval(timer));\n      timersRef.current = [];\n      nodesRef.current.forEach((node) => node.remove());\n      nodesRef.current = [];\n    };\n  }, [data?.dynamicSocialProofMessages]);\n\n  return null;\n};\n\nexport default SocialProof;\n","import ApiClient from '@package/services/src/ApiClient';\nimport Result from '@package/services/src/Result';\n\nimport { socialProofMessagesMock } from './mock';\nimport { SocialProofService } from './services';\nimport { SocialProofMessagesRequest, SocialProofMessagesResponse } from './types';\n\nexport default class SocialProofApiService implements SocialProofService {\n  public constructor(private readonly apiClient: ApiClient) {}\n\n  public async getSocialProofMessages(\n    request: SocialProofMessagesRequest,\n    options?: { signal?: AbortSignal },\n  ): Promise<Result<SocialProofMessagesResponse>> {\n    try {\n      const urlParams = new URLSearchParams();\n\n      Object.entries(request).forEach(([key, value]) => {\n        if (value !== null && value !== undefined && value !== '') {\n          urlParams.append(key, String(value));\n        }\n      });\n\n      const response = await this.apiClient.get(`/social-proof/messages?${urlParams.toString()}`, {\n        signal: options?.signal,\n      });\n      const json: SocialProofMessagesResponse = await response.json();\n\n      return new Result(json);\n    } catch (error) {\n      if ((error as DOMException)?.name === 'AbortError') {\n        return new Result(null);\n      }\n      console.error('Error fetching social proof messages', error);\n      return new Result(null);\n    }\n  }\n}\n","export const SOCIAL_PROOF_QUERY_KEY = 'social-proof-messages';\n","import SocialProofApiService from '@package/core/src/socialProof/SocialProofApiService';\nimport { SocialProofMessagesRequest } from '@package/core/src/socialProof/types';\n\nimport { apiClient } from '../services';\nimport { useStrictQuery } from '../useCustomQuery';\n\nimport { SOCIAL_PROOF_QUERY_KEY } from './types';\n\nconst socialProofApiService = new SocialProofApiService(apiClient);\n\nexport default function useSocialProof(params: SocialProofMessagesRequest) {\n  const { data, refetch } = useStrictQuery(\n    [SOCIAL_PROOF_QUERY_KEY],\n    async () => {\n      const res = await socialProofApiService.getSocialProofMessages(params);\n      return res.data;\n    },\n    {\n      enabled: false,\n      refetchOnMount: false,\n      refetchOnWindowFocus: false,\n    },\n  );\n\n  return { data, refetch };\n}\n","import CartApiService from '@package/core/src/shoppingCart/CartApiService';\nimport CartInteractor from '@package/core/src/shoppingCart/CartInteractor';\n\nimport { apiClient, cookieStorage, listrakAnalytic } from '../services';\nimport { useStrictQuery } from '../useCustomQuery';\n\nimport { PRODUCT_ADDONS_DATA_QUERY_KEY } from './types';\n\nconst cartService = new CartApiService(apiClient, cookieStorage, listrakAnalytic);\nconst cartInteractor = new CartInteractor(cartService);\n\nexport default function useProductAddons(productSku: string, relatedProductsAvailable: boolean) {\n  const { data: productAddons, isFetched } = useStrictQuery([PRODUCT_ADDONS_DATA_QUERY_KEY, productSku], async () => {\n    if (relatedProductsAvailable) {\n      const { data } = await cartInteractor.getProductAddons({ productSku });\n\n      return data;\n    }\n  });\n\n  return { isFetched, productAddons };\n}\n","import CustomServiceAnchorDialog from '../../CustomServiceAnchorDialog';\nimport { FC } from 'react';\nimport { ServiceInfoIconProps } from './types';\nimport styles from './ServiceIconModal.module.css';\n\nconst ServiceInfoIconWithModal: FC<ServiceInfoIconProps> = ({\n  productSku,\n  serviceId,\n  addService,\n  addCustomService,\n  anchorContent,\n  infoMode,\n}) => (\n  <CustomServiceAnchorDialog\n    productSku={productSku}\n    serviceId={serviceId}\n    addService={addService}\n    id={`service-info-icon-with-modal-dialog-${productSku}`}\n    addCustomService={addCustomService}\n    infoMode={infoMode}\n    anchorContent={\n      anchorContent ||\n      ((open: () => void) => (\n        <img\n          data-testid=\"servic-dialog-trigger\"\n          src=\"/marketplace-static/images/icons/infoIcon.svg\"\n          alt=\"info icon\"\n          width={14}\n          height={14}\n          className={`${styles.infoIcon} infoIcon`}\n          onClick={(e) => {\n            e.stopPropagation();\n            e.preventDefault();\n            open();\n          }}\n        />\n      ))\n    }\n  />\n);\n\nexport default ServiceInfoIconWithModal;\n","import { ProductServiceCheckboxProps } from './types';\nimport { MouseEventHandler, useState } from 'react';\nimport { ProductServicesElement } from '@package/core';\nimport FormCheckbox from '@base/components/src/FormCheckbox';\nimport Spinner from '@base/components/src/Spinner';\nimport ServiceInfoIconWithModal from '../ServiceIconModal';\nimport styles from './ProductServiceCheckbox.module.css';\n\nconst ProductServiceCheckbox = ({\n  services,\n  productSku,\n  isProductRemovable,\n  deleteService,\n  addProductService,\n  addCustomService,\n}: ProductServiceCheckboxProps) => {\n  const [loadServiceId, setLoadServiceId] = useState<number>(-1);\n  const handleAddCombinedProduct = async (service: ProductServicesElement) => {\n    try {\n      if (loadServiceId !== -1) return;\n      setLoadServiceId(service.id);\n      if (service.selected && deleteService) {\n        await deleteService(service.sku);\n        return;\n      }\n\n      await addProductService({ ...service });\n    } catch (error) {\n      console.error(error);\n    } finally {\n      setLoadServiceId(-1);\n    }\n  };\n\n  return (\n    <div data-testid=\"services-checkbox-container\" className={styles.checkboxGroupContainer}>\n      {services.map((service) => (\n        <div data-testid=\"service-radio-button\" key={service.id} className={styles.container}>\n          {service.canAddToCart ? (\n            <>\n              <FormCheckbox\n                id={service.id.toString()}\n                value={service.selected}\n                label={service.name}\n                onChange={() => handleAddCombinedProduct(service)}\n                labelClick\n                checkboxControllerClassName={styles.checkboxController}\n                checkboxMainContainerClasses={styles.checkboxContainer}\n              />\n              <ServiceInfoIconWithModal\n                infoMode={service.selected}\n                productSku={productSku}\n                serviceId={service.id}\n                addService={() => handleAddCombinedProduct(service)}\n                addCustomService={addCustomService}\n              />\n              {loadServiceId === service.id && (\n                <div className={styles.opportunityDesc}>\n                  <Spinner className={styles.serviceRadioSpinner} width=\"w-3\" height=\"h-3\" />\n                  <div className={styles.addToOrder}>\n                    {service.selected ? 'Removing from Order' : 'Adding to Order'}\n                  </div>\n                </div>\n              )}\n            </>\n          ) : (\n            <ServiceInfoIconWithModal\n              infoMode={service.selected}\n              productSku={productSku}\n              serviceId={service.id}\n              addService={() => handleAddCombinedProduct(service)}\n              addCustomService={addCustomService}\n              anchorContent={(open: MouseEventHandler<HTMLSpanElement> | undefined) => (\n                <span\n                  onClick={(e) => {\n                    if (service.selected && isProductRemovable) {\n                      handleAddCombinedProduct(service);\n                      return;\n                    }\n                    open?.(e);\n                  }}\n                  className={styles.container}\n                >\n                  <FormCheckbox\n                    id={service.id.toString()}\n                    value={service.selected}\n                    label={service.name}\n                    onChange={() => {}}\n                    labelClick\n                    checkboxControllerClassName={styles.checkboxController}\n                    checkboxMainContainerClasses={styles.checkboxContainer}\n                  />\n                  <img\n                    src=\"/marketplace-static/images/icons/infoIcon.svg\"\n                    alt=\"info icon\"\n                    width={14}\n                    height={14}\n                    className={`${styles.infoIcon} infoIcon`}\n                    onClick={(e) => {\n                      e.stopPropagation();\n                      open?.(e);\n                    }}\n                  />\n                </span>\n              )}\n            />\n          )}\n        </div>\n      ))}\n    </div>\n  );\n};\n\nexport default ProductServiceCheckbox;\n","import { FC, MouseEventHandler, useEffect, useRef } from 'react';\nimport Radio from '@base/components/src/Radio';\nimport Spinner from '@base/components/src/Spinner';\n\nimport { ServiceRadioProps } from './types';\nimport ServiceInfoIconWithModal from '../ServiceIconModal';\nimport styles from './Service.module.css';\n\nconst ServiceRadio: FC<ServiceRadioProps> = ({\n  onClick,\n  selectedService,\n  productSku,\n  serviceId,\n  canAddToCart,\n  checked,\n  stopLoading,\n  addService,\n  addCustomService,\n  hideInfoIcon = true,\n  ...rest\n}) => {\n  const timeout = useRef<NodeJS.Timeout | null>(null);\n\n  const showLoading = selectedService === rest.value;\n\n  useEffect(() => {\n    if (checked) {\n      stopLoading();\n    }\n    return () => {\n      stopLoading();\n    };\n  }, [checked]);\n\n  useEffect(() => {\n    if (timeout.current) {\n      clearTimeout(timeout.current);\n    }\n    if (showLoading) {\n      timeout.current = setTimeout(() => {\n        stopLoading();\n      }, 5000);\n    }\n  }, [checked, showLoading]);\n\n  return canAddToCart ? (\n    <Radio\n      {...rest}\n      checked={checked}\n      onClick={onClick}\n      labelClassName={`${styles.label} serviceRadioLabel`}\n      radioClassName={styles.serviceRadioIcon}\n      size=\"small\"\n      endAdornmentClassName={styles.radioIcon}\n      endAdornment={showLoading && <Spinner className={styles.serviceRadioSpinner} />}\n      textEndAdornmentClassName={'ml-2'}\n      textEndAdornment={\n        !hideInfoIcon && (\n          <ServiceInfoIconWithModal\n            infoMode={checked}\n            productSku={productSku}\n            serviceId={serviceId}\n            addService={addService}\n            addCustomService={addCustomService}\n          />\n        )\n      }\n    />\n  ) : (\n    <ServiceInfoIconWithModal\n      infoMode={checked}\n      productSku={productSku}\n      serviceId={serviceId}\n      addService={addService}\n      addCustomService={addCustomService}\n      anchorContent={(open: MouseEventHandler<HTMLSpanElement> | undefined) => (\n        <span data-testid={'service-radio-dialog-trigger'} onClick={open}>\n          <Radio\n            {...rest}\n            checked={checked}\n            labelClassName={`${styles.label} serviceRadioLabel`}\n            radioClassName={styles.serviceRadioIcon}\n            endAdornmentClassName={styles.radioIcon}\n            size=\"small\"\n            endAdornment={showLoading && <Spinner className={styles.serviceRadioSpinner} />}\n            textEndAdornmentClassName={'ml-2 flex-[1_1_10%]'}\n            textEndAdornment={\n              <img\n                src=\"/marketplace-static/images/icons/infoIcon.svg\"\n                alt=\"info icon\"\n                width={14}\n                height={14}\n                onClick={(e) => {\n                  e.stopPropagation();\n                  e.preventDefault();\n                  open && open(e);\n                }}\n                className={`${styles.infoIcon} infoIcon`}\n              />\n            }\n          />\n        </span>\n      )}\n    />\n  );\n};\n\nexport default ServiceRadio;\n","import { FC, useCallback, useMemo, useState } from 'react';\nimport clsx from 'clsx';\nimport RadioGroupBase from '@base/components/src/RadioGroupBase';\nimport ServiceRadio from '../ProductService/ServiceRadio';\nimport { AddCustomServiceGroupRequest, ProductServicesElement } from '@package/core/src/shoppingCart/types';\nimport { DefaultOptionValue, ServiceOptionProps } from '../ProductServiceContent/types';\n\nimport { ProductServiceRadioGroupProps } from './types';\nimport styles from './ProductServiceRadioGroup.module.css';\n\nconst ProductServiceRadioGroup: FC<ProductServiceRadioGroupProps> = ({\n  services,\n  productSku,\n  addProductService,\n  addCustomService,\n  deleteProductService,\n}) => {\n  const [selectedServices, setSelectedServices] = useState<DefaultOptionValue>(null);\n\n  const disableServiceRadio = selectedServices !== null;\n\n  const stopLoading = useCallback(() => {\n    setSelectedServices(null);\n  }, []);\n\n  const handleAddProduct = useCallback(async (service: ProductServicesElement) => {\n    setSelectedServices(service.price.effectivePrice);\n    try {\n      setSelectedServices(service.price.effectivePrice);\n      await addProductService({ ...service });\n    } catch (error) {\n      stopLoading();\n    }\n  }, []);\n\n  const mappedOptions = useMemo(() => {\n    const isSelectedOption = services.some((service) => service.selected);\n    const newOptions = services.map((service) => ({\n      label: service.name,\n      value: service.price.effectivePrice,\n      checked: service.selected,\n      canSelect: service.canAddToCart,\n      onChange: async () => {\n        if (service.selected) return;\n        await handleAddProduct(service);\n      },\n      optionProps: {\n        id: service.id,\n        canAddToCart: service.canAddToCart,\n        hideInfoIcon: false,\n        addService: async () => await handleAddProduct(service),\n        addCustomService: async (request: AddCustomServiceGroupRequest) => await addCustomService(request),\n      },\n    }));\n\n    if (isSelectedOption) {\n      newOptions.push({\n        label: 'None',\n        value: 0,\n        checked: false,\n        canSelect: true,\n        onChange: async () => {\n          setSelectedServices(0);\n          await deleteProductService();\n        },\n        optionProps: {\n          id: 0,\n          canAddToCart: true,\n          hideInfoIcon: true,\n          addService: async () => await deleteProductService(),\n          addCustomService: async (_: AddCustomServiceGroupRequest) => await deleteProductService(),\n        },\n      });\n    }\n    return newOptions;\n  }, [services]);\n\n  return (\n    <RadioGroupBase<ServiceOptionProps>\n      name=\"serviceRadio\"\n      options={mappedOptions}\n      classNameRoot={clsx(styles.radioGroup, styles.mobileView)}\n      layout=\"vertical\"\n      renderRadio={({ optionProps, ...rest }) =>\n        optionProps ? (\n          <ServiceRadio\n            {...rest}\n            key={optionProps.id}\n            hideInfoIcon={optionProps.hideInfoIcon}\n            serviceId={optionProps.id}\n            canAddToCart={optionProps.canAddToCart}\n            productSku={productSku}\n            disabled={disableServiceRadio}\n            selectedService={selectedServices}\n            stopLoading={stopLoading}\n            addService={optionProps.addService}\n            addCustomService={optionProps.addCustomService}\n            className={styles.radio}\n            data-testid=\"service-radio-button\"\n          />\n        ) : null\n      }\n    />\n  );\n};\n\nexport default ProductServiceRadioGroup;\n","import clsx from 'clsx';\nimport ProductServiceCheckbox from '../ProductServiceCheckbox';\nimport styles from './ProductServiceContent.module.css';\nimport { ProductServiceContentProps } from './types';\nimport ProductServiceRadioGroup from '../ProductServiceRadioGroup';\nimport { ProductServicesElement } from '@package/core/src/shoppingCart/types';\n\nconst ProductServiceContent = (props: Readonly<ProductServiceContentProps>) => {\n  const {\n    title,\n    productSku,\n    services,\n    className,\n    isProductRemovable,\n    addProductService,\n    deleteProductService,\n    deleteSpecifiedService,\n    addCustomService,\n  } = props;\n\n  const servicesGroups = services.reduce(\n    (acc, service) => {\n      if (service.combineAllowed) {\n        acc.combined = acc.combined || [];\n        acc.combined.push(service);\n      } else {\n        acc.nonCombined = acc.nonCombined || [];\n        acc.nonCombined.push(service);\n      }\n      return acc;\n    },\n    {\n      combined: null,\n      nonCombined: null,\n    } as {\n      combined: ProductServicesElement[] | null;\n      nonCombined: ProductServicesElement[] | null;\n    },\n  );\n\n  return (\n    <div className={clsx(styles.contentContainer, className)}>\n      <p className={styles.title}>{title}</p>\n      <div className={styles.servicesContainer}>\n        {servicesGroups.nonCombined ? (\n          <ProductServiceRadioGroup\n            services={servicesGroups.nonCombined}\n            productSku={productSku}\n            addProductService={addProductService}\n            addCustomService={addCustomService}\n            deleteProductService={deleteProductService}\n          />\n        ) : null}\n\n        {servicesGroups.combined ? (\n          <ProductServiceCheckbox\n            deleteService={deleteSpecifiedService}\n            addProductService={addProductService}\n            addCustomService={addCustomService}\n            services={servicesGroups.combined}\n            productSku={productSku}\n            isProductRemovable={isProductRemovable}\n          />\n        ) : null}\n      </div>\n    </div>\n  );\n};\n\nexport default ProductServiceContent;\n","import { ResponsiveCarousel } from '@base/components/src/Carousel';\nimport clsx from 'clsx';\nimport config from 'config-base';\nimport styles from './Addon.module.css';\nimport { AddonProps } from './types';\n\nconst Addon = <V extends Record<string, unknown> = Record<string, unknown>>({\n  id,\n  title,\n  data,\n  renderAddonItem,\n}: AddonProps<V>) => (\n  <div id={id} className={clsx(styles.addonItem, { [styles.addonItemAGD]: config.brandCode !== '0' })}>\n    {title && <p className={clsx(styles.addonTitle, { [styles.addonTitleAGD]: config.brandCode !== '0' })}>{title}</p>}\n    <ResponsiveCarousel<V>\n      buttonsAbsolute\n      hideDotButtons\n      visibleSlidesQuery={{ xxl: 4, xl: 4, lg: 3, md: 3, sm: 2, xs: config.brandCode === '2' ? 2 : 1 }}\n      slideData={data}\n      carouselPadding={'h-[330px] !pb-0'}\n      carouselHeight={'h-[330px]'}\n      renderSlide={renderAddonItem}\n    />\n  </div>\n);\n\nexport default Addon;\n","export const ADD_STATE_TIMEOUT = 2500;\n\nexport enum ButtonState {\n  Adding = 'ADDING',\n  Added = 'ADDED',\n  Add = 'ADD',\n}\n\nexport type AddonButtonProps = {\n  onClick(): Promise<void>;\n  outOfStock?: boolean;\n};\n","import Button from '@base/components/src/Button';\nimport CheckIcon from '@base/components/src/Icon/CheckIcon';\nimport Spinner from '@base/components/src/Spinner';\nimport clsx from 'clsx';\nimport config from 'config-base';\nimport { useCallback, useMemo, useState } from 'react';\nimport { ADD_STATE_TIMEOUT, AddonButtonProps, ButtonState } from './types';\nimport styles from './AddonButton.module.css';\n\nconst AddonButton = ({ onClick, outOfStock = false }: AddonButtonProps) => {\n  const [buttonState, setButtonState] = useState<ButtonState>(ButtonState.Add);\n\n  const buttonLabel = useMemo(() => {\n    switch (buttonState) {\n      case ButtonState.Add:\n        return 'Add to Cart';\n\n      case ButtonState.Adding:\n        return 'Adding';\n\n      case ButtonState.Added:\n        return (\n          <>\n            <CheckIcon />\n            <div className=\"font-bold\">Added</div>\n          </>\n        );\n    }\n  }, [buttonState]);\n\n  const handleClick = useCallback(\n    async (event: React.MouseEvent<HTMLButtonElement>) => {\n      event.stopPropagation();\n      event.preventDefault();\n\n      const preventStateChange = buttonState === ButtonState.Adding || buttonState === ButtonState.Added;\n      if (preventStateChange) return;\n\n      if (outOfStock) return await onClick();\n\n      setButtonState(ButtonState.Adding);\n      await onClick();\n      setButtonState(ButtonState.Added);\n      setTimeout(() => {\n        setButtonState(ButtonState.Add);\n      }, ADD_STATE_TIMEOUT);\n    },\n    [buttonState],\n  );\n\n  return (\n    <Button\n      label={buttonLabel}\n      classes={clsx(styles.addonButton, {\n        [styles.addonButtonAdding]: buttonState === ButtonState.Adding,\n        'addonButtonAdded': buttonState === ButtonState.Added,\n        [styles.addonButtonAGD]: config.brandCode !== '0',\n      })}\n      onClick={handleClick}\n      size={'medium'}\n      endIcon={buttonState === ButtonState.Adding ? <Spinner /> : null}\n      data-testid=\"addon-button-add\"\n    />\n  );\n};\n\nexport default AddonButton;\n","import Image from '@base/components/src/Image';\nimport Link from '@base/components/src/Link';\nimport Rating from '@base/components/src/Rating';\nimport { DiscountPrice } from '@package/core/src/shoppingCart/types';\nimport currencyFormatting from '@package/utils/src/currencyFormatting';\nimport clsx from 'clsx';\nimport config from 'config-base';\nimport AddonButton from '../AddonButton';\nimport { AddonCardProps } from './types';\nimport styles from './AddonCard.module.css';\n\nconst isDiscountPrice = (price: number | DiscountPrice): price is DiscountPrice =>\n  typeof price === 'object' && price !== null && 'effectivePrice' in price;\n\nconst AddonCard = ({ data, onAddProduct, outOfStock, onClick }: AddonCardProps) => (\n  <Link\n    classes={clsx(styles.card, { [styles.cardAGD]: config.brandCode !== '0' })}\n    showCursorPointer={Boolean(onClick)}\n    href={data.productUrl}\n    onClick={onClick}\n    data-testid=\"addons-product-card\"\n  >\n    <Image\n      className={styles.cardMedia}\n      src={data.smallImage || data.image || '../../../marketplace-static/images/TestGunImage1.png'}\n      alt={data.name}\n      width={180}\n      height={141}\n    />\n    <div className={styles.cardContent}>\n      {typeof data.rating === 'number' && (\n        <Rating\n          hideRating={true}\n          reviewers={data.reviewsCount}\n          defaultValue={data.rating}\n          ratingContainerClasses={styles.ratingContainer}\n        />\n      )}\n      <div className={`${styles.cartName} ${styles.cartNameClamp}`}>{data.name}</div>\n      <div className={styles.cardPrice}>\n        <div className={styles.cardPriceText}>\n          {currencyFormatting(\n            isDiscountPrice(data.price) ? data.price.effectivePrice : data.discountPrice || data.price,\n          )}\n        </div>\n        {isDiscountPrice(data.price) && data.price.discount > 0 ? (\n          <>\n            <div className={styles.oldPrice}>{currencyFormatting(data.price.originalPrice)}</div>\n            <div className={styles.discountOff}>{`${currencyFormatting(data.price.discount)} Off`}</div>\n          </>\n        ) : (\n          Boolean(data.discountPrice) && (\n            <div className={styles.oldPrice}>{currencyFormatting(data.price as number)}</div>\n          )\n        )}\n      </div>\n    </div>\n    <AddonButton outOfStock={outOfStock} onClick={onAddProduct} />\n  </Link>\n);\n\nexport default AddonCard;\n","import Accordion from '@base/components/src/Accordion';\nimport {\n  CustomConfigurationElement,\n  ProductAddonElement,\n  ProductCustomConfiguration,\n} from '@package/core/src/shoppingCart';\nimport useProductAddons from '@package/hooks/src/useProductAddons';\nimport clsx from 'clsx';\nimport { Fragment, memo } from 'react';\n\nimport ProductServiceContent from '../ProductServiceContent';\nimport config from 'config-base';\nimport Addon from './Addon';\nimport AddonCard from './AddonCard';\nimport CustomServiceAnchorDialog from '../../CustomServiceAnchorDialog';\nimport { AddonsProps } from './types';\nimport styles from './CartProductAddons.module.css';\n\nconst CartProductAddons = ({\n  productSku,\n  productQuantity,\n  relatedProductsAvailable,\n  isProductRemovable,\n  addProduct,\n  addProductService,\n  deleteProductService,\n  addCustomService,\n}: AddonsProps) => {\n  const { productAddons } = useProductAddons(productSku, relatedProductsAvailable) as any;\n  const isProductAddons =\n    productAddons?.customConfigurations?.length > 0 ||\n    productAddons?.serviceContracts?.length > 0 ||\n    productAddons?.accessoryList?.length > 0 ||\n    productAddons?.ammoList?.length > 0;\n  return relatedProductsAvailable ? (\n    <>\n      {productAddons && isProductAddons && (\n        <Accordion\n          title={'Services & Add-ons'}\n          className={clsx(styles.addon, { [styles.addonAGD]: config.brandCode !== '0' })}\n          headerClassName={styles.accordironAddonsHeader}\n          titleClass={styles.accordionAddonsTitle}\n          iconClassName={styles.accordionIcon}\n          contentClassName={styles.accordionContent}\n          data-testid=\"product-addons\"\n        >\n          {productAddons && (\n            <div className={styles.addonsList}>\n              {productAddons?.serviceContracts?.map((addon: any) => (\n                <ProductServiceContent\n                  key={`${addon.seq}${productQuantity}`}\n                  className={styles.service}\n                  title={addon.name}\n                  productSku={productSku}\n                  services={addon.elements}\n                  isProductRemovable={isProductRemovable}\n                  addProductService={async (service) => {\n                    await addProductService({\n                      serviceId: service.id,\n                      productSku,\n                      productQuantity,\n                      serviceType: addon.name,\n                      product: service,\n                    });\n                  }}\n                  deleteProductService={async () => await deleteProductService(addon.name)}\n                  addCustomService={addCustomService}\n                />\n              ))}\n              {productAddons.customConfigurations.length > 0 &&\n                productAddons.customConfigurations.map((configuration: ProductCustomConfiguration, idx: number) => (\n                  <Addon<CustomConfigurationElement>\n                    key={idx}\n                    title={configuration.name}\n                    data={configuration.elements}\n                    renderAddonItem={(product) => (\n                      <CustomServiceAnchorDialog\n                        productSku={productSku}\n                        serviceId={product.id}\n                        id={`custom-service-card-product-addons-dialog`}\n                        infoMode={false}\n                        addService={async () => {\n                          await addProductService({\n                            serviceId: product.id,\n                            productSku,\n                            productQuantity,\n                            serviceType: configuration.name,\n                            product,\n                          });\n                        }}\n                        addCustomService={addCustomService}\n                        anchorContent={(open: (() => void) | undefined) => (\n                          <AddonCard\n                            data={product}\n                            outOfStock={!product.canAddToCart}\n                            onClick={open}\n                            onAddProduct={\n                              product.canAddToCart\n                                ? async () => {\n                                    await addProductService({\n                                      serviceId: product.id,\n                                      productSku,\n                                      productQuantity,\n                                      serviceType: configuration.name,\n                                      product,\n                                    });\n                                  }\n                                : async () => open && open()\n                            }\n                          />\n                        )}\n                      />\n                    )}\n                  />\n                ))}\n              {productAddons.accessoryList.length > 0 && (\n                <Addon<ProductAddonElement>\n                  id=\"accesories-list\"\n                  title={'Accessories'}\n                  data={productAddons.accessoryList}\n                  renderAddonItem={(product) => (\n                    <AddonCard\n                      data={product}\n                      onAddProduct={async () => await addProduct([{ productSKU: product.sku, product }])}\n                    />\n                  )}\n                />\n              )}\n              {productAddons.ammoList.length > 0 && (\n                <Addon<ProductAddonElement>\n                  id=\"ammo-list\"\n                  title={'Ammo'}\n                  data={productAddons.ammoList}\n                  renderAddonItem={(product) => (\n                    <AddonCard\n                      data={product}\n                      onAddProduct={async () => await addProduct([{ productSKU: product.sku, product }])}\n                    />\n                  )}\n                />\n              )}\n            </div>\n          )}\n        </Accordion>\n      )}\n      {productAddons?.scopeAccessories?.length > 0 && (\n        <Accordion\n          title={'Mounts'}\n          className={clsx(styles.addon, {\n            [styles.addonAGD]: config.brandCode !== '0',\n          })}\n          headerClassName={styles.accordironAddonsHeader}\n          titleClass={styles.accordionAddonsTitle}\n          iconClassName={styles.accordionIcon}\n          contentClassName={styles.accordionContent}\n          data-testid=\"product-mounts\"\n        >\n          {productAddons?.scopeAccessories.map((scopeAccessorieItems: ProductAddonElement, index: number) => {\n            const accesorieKeys = Object.keys(scopeAccessorieItems);\n            return (\n              <Fragment key={index}>\n                {accesorieKeys.map((scopeTitle: string) => (\n                  <Fragment key={scopeTitle}>\n                    <Addon<ProductAddonElement>\n                      id=\"mounts-list\"\n                      title={scopeTitle}\n                      data={scopeAccessorieItems[scopeTitle]}\n                      renderAddonItem={(product) => (\n                        <AddonCard\n                          data={product}\n                          onAddProduct={async () => await addProduct([{ productSKU: product.sku, product }])}\n                        />\n                      )}\n                    />\n                  </Fragment>\n                ))}\n              </Fragment>\n            );\n          })}\n        </Accordion>\n      )}\n    </>\n  ) : null;\n};\n\nexport default memo(CartProductAddons);\n","import { useEffect, useRef } from 'react';\n\nimport { DebouncedCallback } from './types';\n\n/**\n * Debounces `callback` by `delay` ms and exposes `flush`/`cancel`.\n *\n * The quantity stepper fires one write per burst of taps instead of one per tap, but a pending\n * write must never be lost: `flush` is called on blur, on Enter and on unmount so a quantity the\n * shopper set is always sent, even if they leave the row before the delay elapses.\n */\nexport default function useDebouncedCallback<TArgs extends Array<unknown>>(\n  callback: (...args: TArgs) => void,\n  delay: number,\n): DebouncedCallback<TArgs> {\n  const timerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n  const pendingArgsRef = useRef<TArgs | null>(null);\n\n  // Everything below reads through refs, so the returned function never has to be memoised: a\n  // re-render hands back a fresh closure that still sees the scheduled call.\n  const callbackRef = useRef(callback);\n  callbackRef.current = callback;\n  const delayRef = useRef(delay);\n  delayRef.current = delay;\n\n  const cancel = () => {\n    if (timerRef.current !== null) {\n      clearTimeout(timerRef.current);\n      timerRef.current = null;\n    }\n    pendingArgsRef.current = null;\n  };\n\n  const flush = () => {\n    const args = pendingArgsRef.current;\n    if (args === null) {\n      return;\n    }\n    cancel();\n    callbackRef.current(...args);\n  };\n\n  const isPending = () => pendingArgsRef.current !== null;\n\n  const debounced = (...args: TArgs) => {\n    pendingArgsRef.current = args;\n    if (timerRef.current !== null) {\n      clearTimeout(timerRef.current);\n    }\n    timerRef.current = setTimeout(flush, delayRef.current);\n  };\n\n  // Unmounting mid-edit (row removed, navigating to checkout) must still send the pending value.\n  const flushRef = useRef(flush);\n  flushRef.current = flush;\n  useEffect(\n    () => () => {\n      flushRef.current();\n    },\n    [],\n  );\n\n  return Object.assign(debounced, { flush, cancel, isPending });\n}\n","export const MAX_QUANTITY_MESSAGE = 'Max qty. reached';\n\n/** A cart line can never go below one — decrementing past it removes the line instead. */\nexport const MIN_QUANTITY = 1;\n\n/** A quantity typed into the field must be a whole number written out in plain digits. */\nexport const WHOLE_NUMBER_PATTERN = /^\\d+$/;\n\n/** Ceiling for a line whose product carries no purchase limit of its own. */\nexport const DEFAULT_MAX_QUANTITY = 100;\n\nexport type QuantityStepperProps = {\n  /** Current quantity as the server knows it. */\n  value: number;\n  /** Upper bound for this line, already resolved from the product's purchase limit. */\n  max?: number;\n  /** Fires with a committed quantity, after the debounce settles. */\n  onChange: (quantity: number) => void;\n  /**\n   * Fires instead of decrementing below 1, and when a zero is typed (after the debounce, or at once\n   * on blur / Enter). When omitted the line cannot be removed: the decrement control is rendered\n   * disabled at quantity 1 and a typed zero is restored on blur.\n   */\n  onDelete?: () => void;\n  /** Renders the flat, non-interactive variant used for fixed-quantity lines (free items). */\n  disabled?: boolean;\n  /**\n   * This line's own update is in flight. The field and the steps stay live — the parent is expected\n   * to queue what they commit — but echoes of `value` are held back until it clears. Nothing is locked\n   * or restyled; it is exposed as `aria-busy`. Distinct from `disabled`, which swaps in the flat\n   * variant.\n   */\n  syncing?: boolean;\n  /** Debounce applied to increments, decrements and typing. */\n  debounceMs?: number;\n  id?: string;\n  dataTestId?: string;\n  className?: string;\n};\n","'use client';\n\nimport useDebouncedCallback from '@package/hooks/src/useDebouncedCallback';\nimport clsx from 'clsx';\nimport { useEffect, useState } from 'react';\n\nimport Button from '../Button';\n\nimport styles from './QuantityStepper.module.css';\nimport {\n  DEFAULT_MAX_QUANTITY,\n  MAX_QUANTITY_MESSAGE,\n  MIN_QUANTITY,\n  QuantityStepperProps,\n  WHOLE_NUMBER_PATTERN,\n} from './types';\n\nexport default function QuantityStepper(props: Readonly<QuantityStepperProps>) {\n  const {\n    value,\n    max = DEFAULT_MAX_QUANTITY,\n    onChange,\n    onDelete,\n    disabled = false,\n    syncing = false,\n    debounceMs = 300,\n    id = 'qty',\n    className,\n  } = props;\n\n  // Local text so typing stays responsive; the server remains the source of truth and resets this\n  // whenever it echoes a new quantity back.\n  const [draft, setDraft] = useState(String(value));\n\n  // A typed zero goes through the same debounce as any other quantity, so a digit typed after it\n  // (\"0\" then \"5\") replaces the removal instead of racing it. It only lands as a removal: a line\n  // that cannot be removed never schedules one.\n  const commit = useDebouncedCallback((quantity: number) => {\n    if (quantity === 0) {\n      onDelete?.();\n      return;\n    }\n    onChange(quantity);\n  }, debounceMs);\n\n  // Kept above the `disabled` early return: a line that flips between editable and fixed would\n  // otherwise change how many hooks this component runs between two renders.\n  //\n  // The field stays editable while a write is in flight, so the server's echo can be older than what\n  // is on screen. It is only taken once this line is idle: nothing in flight and nothing waiting on\n  // the debounce. An emptied field is a half-finished edit and is left alone; blur restores it.\n  useEffect(() => {\n    if (syncing || commit.isPending()) {\n      return;\n    }\n    setDraft((current) => (current === '' ? current : String(value)));\n  }, [value, syncing]);\n\n  // Steps are taken from what is on screen, not from `value`. Within one debounce window the\n  // server has not answered yet, so stepping off `value` would make every tap in a burst compute\n  // the same number and three taps would raise the quantity by one.\n  const current = draft === '' ? value : Number(draft);\n\n  const atMax = current >= max;\n  const canDelete = typeof onDelete === 'function';\n\n  const setQuantity = (next: number) => {\n    const clamped = Math.max(Math.min(next, max), MIN_QUANTITY);\n    setDraft(String(clamped));\n    commit(clamped);\n  };\n\n  // A step still waiting on the debounce would otherwise land after the removal — on unmount at the\n  // latest — and write a quantity for a line that is gone.\n  const handleDelete = () => {\n    commit.cancel();\n    onDelete?.();\n  };\n\n  const handleDecrement = () => {\n    if (current <= MIN_QUANTITY) {\n      // At one, the control is a delete affordance rather than a decrement.\n      if (canDelete) {\n        handleDelete();\n      }\n      return;\n    }\n    setQuantity(current - 1);\n  };\n\n  const handleIncrement = () => {\n    if (!atMax) {\n      setQuantity(current + 1);\n    }\n  };\n\n  const handleDraftChange = (next: string) => {\n    // Whole numbers only. `type=\"number\"` still reports `2.5`, `1e3` or `-3` as values, and stripping\n    // their non-digits would turn them into a different quantity (25, 13, 3). They are treated like\n    // an emptied field instead: nothing is sent and blur restores the last quantity.\n    if (!WHOLE_NUMBER_PATTERN.test(next)) {\n      setDraft('');\n      commit.cancel();\n      return;\n    }\n\n    // A zero (\"0\", \"00\") removes the line once the debounce settles, like the trash. Where the line\n    // cannot be removed it stays a half-finished edit: nothing is sent and blur restores the value.\n    const parsed = Number(next);\n    if (parsed === 0) {\n      setDraft(next);\n      if (canDelete) {\n        commit(0);\n      } else {\n        commit.cancel();\n      }\n      return;\n    }\n\n    // Clamped on every keystroke, so the field can never show a quantity that cannot be ordered.\n    // The floor is applied last on purpose: `max` can be 0 (an explicit purchase limit of zero), and\n    // clamping the ceiling afterwards would turn a typed quantity into a write of 0.\n    const clamped = Math.max(Math.min(parsed, max), MIN_QUANTITY);\n    setDraft(String(clamped));\n    commit(clamped);\n  };\n\n  const handleBlur = () => {\n    const parsed = Number(draft);\n    if (draft === '' || (parsed === 0 && !canDelete)) {\n      setDraft(String(value));\n      return;\n    }\n    // A zero left in the field is sent now as a removal, the same way any other typed value is.\n    if (parsed === 0) {\n      commit.flush();\n      return;\n    }\n    setDraft(String(Math.max(Math.min(parsed, max), MIN_QUANTITY)));\n    commit.flush();\n  };\n\n  const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n    if (event.key === 'Enter') {\n      event.preventDefault();\n      handleBlur();\n    }\n  };\n\n  if (disabled) {\n    return (\n      <div className={clsx(styles.stepper, styles.stepperDisabled, className)} aria-busy={syncing}>\n        {canDelete ? (\n          <Button\n            id={`${id}-delete`}\n            variant=\"text\"\n            ariaLabel=\"Remove item\"\n            classes={styles.control}\n            onClick={handleDelete}\n          >\n            <svg width=\"12\" height=\"16\" viewBox=\"0 0 20 26\" aria-hidden=\"true\" focusable=\"false\">\n              <path\n                d=\"M19.503 4.32c-.13-.14-.309-.218-.5-.218h-3.737L13.843.437C13.743.174 13.49 0 13.204 0H6.48c-.286 0-.538.18-.639.443L4.474 4.096H.681c-.191 0-.37.079-.5.219-.128.14-.195.325-.178.515l1.49 20.498c.028.358.325.633.684.633h15.33c.36 0 .656-.275.684-.633l1.496-20.492c.012-.19-.056-.376-.184-.516zM6.956 1.373h5.778l1.064 2.734H5.931l1.025-2.734zm9.919 23.22H2.81L1.415 5.47h16.85l-1.39 19.125z\"\n                fill=\"currentColor\"\n              />\n              <path\n                d=\"M5.774 21.797h.062c.375-.033.656-.364.622-.74L5.398 8.922c-.033-.376-.375-.673-.739-.622-.375.033-.655.364-.622.74l1.06 12.136c.027.359.324.622.677.622zM8.626 21.897h.062c.376-.033.656-.364.622-.74l-.773-8.875c-.034-.376-.376-.667-.74-.622-.375.033-.655.364-.622.74l.773 8.875c.034.359.331.622.678.622z\"\n                fill=\"currentColor\"\n              />\n            </svg>\n          </Button>\n        ) : null}\n        <span className={styles.staticValue}>{value}</span>\n      </div>\n    );\n  }\n\n  const showTrash = current <= MIN_QUANTITY && canDelete;\n  return (\n    <div className={clsx(styles.wrapper, className)} aria-busy={syncing}>\n      <div className={styles.stepper}>\n        <Button\n          id={showTrash ? `${id}-delete` : `${id}-decrement`}\n          variant=\"text\"\n          ariaLabel={showTrash ? 'Remove item' : 'Decrease quantity'}\n          // Nothing is locked mid-write: steps go through the same debounce as typing, and the parent\n          // queues a removal behind whatever is in flight.\n          classes={styles.control}\n          disabled={current <= MIN_QUANTITY && !canDelete}\n          onClick={handleDecrement}\n        >\n          {showTrash ? (\n            <svg width=\"12\" height=\"16\" viewBox=\"0 0 20 26\" aria-hidden=\"true\" focusable=\"false\">\n              <path\n                d=\"M19.503 4.32c-.13-.14-.309-.218-.5-.218h-3.737L13.843.437C13.743.174 13.49 0 13.204 0H6.48c-.286 0-.538.18-.639.443L4.474 4.096H.681c-.191 0-.37.079-.5.219-.128.14-.195.325-.178.515l1.49 20.498c.028.358.325.633.684.633h15.33c.36 0 .656-.275.684-.633l1.496-20.492c.012-.19-.056-.376-.184-.516zM6.956 1.373h5.778l1.064 2.734H5.931l1.025-2.734zm9.919 23.22H2.81L1.415 5.47h16.85l-1.39 19.125z\"\n                fill=\"currentColor\"\n              />\n              <path\n                d=\"M5.774 21.797h.062c.375-.033.656-.364.622-.74L5.398 8.922c-.033-.376-.375-.673-.739-.622-.375.033-.655.364-.622.74l1.06 12.136c.027.359.324.622.677.622zM8.626 21.897h.062c.376-.033.656-.364.622-.74l-.773-8.875c-.034-.376-.376-.667-.74-.622-.375.033-.655.364-.622.74l.773 8.875c.034.359.331.622.678.622z\"\n                fill=\"currentColor\"\n              />\n            </svg>\n          ) : (\n            <svg width=\"16\" height=\"2\" viewBox=\"0 0 16 2\" aria-hidden=\"true\" focusable=\"false\">\n              <rect width=\"16\" height=\"2\" fill=\"currentColor\" />\n            </svg>\n          )}\n        </Button>\n\n        <input\n          id={`${id}-input`}\n          data-testid={`${id}-input`}\n          className={styles.input}\n          type=\"number\"\n          inputMode=\"numeric\"\n          autoComplete=\"off\"\n          aria-label=\"Quantity\"\n          min={MIN_QUANTITY}\n          max={max}\n          value={draft}\n          onChange={(event) => handleDraftChange(event.target.value)}\n          onBlur={handleBlur}\n          onKeyDown={handleKeyDown}\n          // A focused number field changes value on wheel-over; dropping focus first stops a page\n          // scroll from silently rewriting the quantity.\n          onWheel={(event) => event.currentTarget.blur()}\n        />\n\n        <Button\n          id={`${id}-increment`}\n          variant=\"text\"\n          ariaLabel=\"Increase quantity\"\n          classes={styles.control}\n          disabled={atMax}\n          onClick={handleIncrement}\n        >\n          <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" aria-hidden=\"true\" focusable=\"false\">\n            <rect y=\"7\" width=\"16\" height=\"2\" fill=\"currentColor\" />\n            <rect x=\"7\" width=\"2\" height=\"16\" fill=\"currentColor\" />\n          </svg>\n        </Button>\n      </div>\n\n      {atMax ? (\n        <p className={styles.maxMessage} role=\"status\">\n          {MAX_QUANTITY_MESSAGE}\n        </p>\n      ) : null}\n    </div>\n  );\n}\n","import Image from '@base/components/src/Image';\nimport Link from '@base/components/src/Link';\nimport clsx from 'clsx';\nimport { MouseEventHandler } from 'react';\n\nimport CustomServiceAnchorDialog from '../../../CustomServiceAnchorDialog';\n\nimport styles from './ProductCardImage.module.css';\nimport { ProductCardImageProps } from './types';\n\nconst ProductCardImage = ({\n  product,\n  imgLayout,\n  isReviewOrderPage,\n  isShippingOptionPage,\n}: Readonly<ProductCardImageProps>) =>\n  product.typeService ? (\n    <CustomServiceAnchorDialog\n      disableBackdropClick\n      productSku={product.mainSku ?? ''}\n      serviceId={Number(product.id.replace('PY-S-', ''))}\n      id={`custom-service-product-card-dialog`}\n      infoMode\n      anchorContent={(open: MouseEventHandler<HTMLDivElement> | undefined) => (\n        <div\n          className={clsx(styles.imageWrapper, {\n            [styles.productImageReview]: isReviewOrderPage || isShippingOptionPage,\n          })}\n          onClick={open}\n        >\n          <Image\n            data-testid=\"product-image\"\n            className={styles.productImage}\n            layout={imgLayout || 'intrinsic'}\n            src={product.image !== '' ? product.image : '../../../marketplace-static/images/TestGunImage1.png'}\n            alt={product.name}\n            width={270}\n            height={187}\n          />\n        </div>\n      )}\n    />\n  ) : (\n    <>\n      {product.name === 'Gift eCard' ? (\n        <div\n          data-testid={'product-url'}\n          className={clsx(styles.imageWrapper, {\n            [styles.productImageReview]: isReviewOrderPage || isShippingOptionPage,\n          })}\n        >\n          <Image\n            data-testid=\"product-image\"\n            className={`${styles.productImage} !cursor-auto`}\n            layout={imgLayout || 'intrinsic'}\n            src={product.image !== '' ? product.image : '../../../marketplace-static/images/TestGunImage1.png'}\n            alt={product.name}\n            width={270}\n            height={187}\n          />\n        </div>\n      ) : (\n        <Link\n          data-testid={'product-url'}\n          href={product.productUrl}\n          classes={clsx(styles.imageWrapper, {\n            [styles.productImageReview]: isReviewOrderPage || isShippingOptionPage,\n          })}\n        >\n          <Image\n            data-testid=\"product-image\"\n            className={styles.productImage}\n            layout={imgLayout || 'intrinsic'}\n            src={product.image !== '' ? product.image : '../../../marketplace-static/images/TestGunImage1.png'}\n            alt={product.name}\n            width={270}\n            height={187}\n          />\n        </Link>\n      )}\n    </>\n  );\n\nexport default ProductCardImage;\n","/**\n * Quantity to add when the free-ammo banner is clicked, or `null` when the banner carries no\n * machine-readable quantity — an older or hand-edited template, which renders as plain text rather\n * than a control that would add the wrong amount.\n *\n * The banner reaches the client as one finished sentence — the backend has already substituted the\n * number into the `alert-cart-ammo-free` Promotions template — so the `data-remaining` attribute\n * that template carries is the only structured copy of it left. Matching the attribute by name\n * rather than scraping the first digit in the prose keeps the click correct when marketing rewords\n * the sentence in webadmin.\n */\nexport const parseFreeAmmoQuantity = (banner?: string | null): number | null => {\n  const remaining = Number(banner?.match(/data-remaining=\"(\\d+)\"/)?.[1]);\n\n  return Number.isInteger(remaining) && remaining > 0 ? remaining : null;\n};\n","import clsx from 'clsx';\nimport Button from '@base/components/src/Button';\nimport QuantityStepper from '@base/components/src/QuantityStepper';\nimport { DEFAULT_MAX_QUANTITY } from '@base/components/src/QuantityStepper/types';\nimport { useQueryClient } from '@package/hooks/src/useCustomQuery';\nimport { SHOPPING_CART_DATA_QUERY_KEY } from '@package/hooks/src/useShoppingCart/types';\nimport currencyFormatting from '@package/utils/src/currencyFormatting';\nimport getBrandProductId from '@package/utils/src/getBrandProductId';\nimport { useCallback, useRef, useState } from 'react';\nimport config from 'config-base';\nimport ProductCardImage from '../../ProductCard/__components/ProductCardImage';\nimport ProductInfo from '../../ProductCard/__components/ProductInfo';\nimport ProductPurchaseLimitMessage from '../../ProductCard/__components/ProductPurchaseLimitMessage';\nimport ProductStatus from '../../ProductCard/__components/ProductStatus';\nimport CustomProductDescription from '../../ProductCard/__components/CustomProductDescription';\nimport ProductFee from '../../ProductCard/__components/ProductFee';\nimport CouponApply from '../../CouponApply';\nimport CouponApplyErrorMessage from '../../CouponApplyErrorMessage';\nimport { CartProductRowProps } from './types';\nimport { parseFreeAmmoQuantity } from './utils';\nimport styles from './CartProductRow.module.css';\n//import ProductCard from '../../ProductCard';\n\nconst CartProductRow = (props: Readonly<CartProductRowProps>) => {\n  const {\n    orderId,\n    product,\n    vendorName,\n    dataTestId,\n    regularCouponApplied,\n    isProductRemovable,\n    deleteProduct,\n    updateProductQuantity,\n    onApplyCouponToItem,\n    onGetTermsContent,\n    readOnly = false,\n  } = props;\n  const queryClient = useQueryClient();\n\n  /*\n   * Serialises this row's writes without blocking the shopper. Every write rewrites the cart and\n   * re-splits free ammo, so two must never overlap — but instead of refusing input while one is in\n   * flight, the newest write is parked and sent when the current one settles. Anything parked before\n   * it is dropped: it was superseded on screen, and sending it would only flash a stale total.\n   * The cart-wide `loading` from useShoppingCart is an OR across seven mutations, so it cannot say\n   * which product is busy.\n   *\n   * Bumping `resetNonce` remounts the stepper, which re-seeds its draft from `product.quantity` —\n   * on a failure the server value is unchanged, so nothing else would pull the draft back.\n   */\n  const [isSyncing, setIsSyncing] = useState(false);\n  const [resetNonce, setResetNonce] = useState(0);\n  const inFlightRef = useRef(false);\n  const parkedWriteRef = useRef<(() => Promise<void>) | null>(null);\n  // The trash stays live mid-write, so a double tap must not queue a second removal of the same line,\n  // and nothing typed after a removal may be sent for a line that is on its way out.\n  const removingRef = useRef(false);\n\n  // A parked write is built when it is sent, not when it is parked, so it addresses the line as the\n  // server last returned it rather than as it was when the shopper typed.\n  const latestRef = useRef({ product, orderId, updateProductQuantity, deleteProduct });\n  latestRef.current = { product, orderId, updateProductQuantity, deleteProduct };\n\n  const runLatest = useCallback(async (write: () => Promise<void>) => {\n    if (inFlightRef.current) {\n      parkedWriteRef.current = write;\n      return;\n    }\n    inFlightRef.current = true;\n    setIsSyncing(true);\n    let next: (() => Promise<void>) | null = write;\n    try {\n      while (next) {\n        const current: () => Promise<void> = next;\n        try {\n          await current();\n        } catch (error) {\n          console.error('cart row update failed', error);\n          // A quantity parked behind a failed write was set on top of a value the server never took,\n          // so it goes with it. A parked removal does not depend on the quantity and is still sent.\n          if (!removingRef.current) {\n            parkedWriteRef.current = null;\n          }\n          setResetNonce((nonce) => nonce + 1);\n          await queryClient.invalidateQueries([SHOPPING_CART_DATA_QUERY_KEY]);\n        }\n        // Read after the recovery too: the remount above flushes any pending step, and a write\n        // parked meanwhile must be sent now rather than left behind for the next write to trail.\n        next = parkedWriteRef.current;\n        parkedWriteRef.current = null;\n      }\n    } finally {\n      // A removal that went through unmounts this row; one that failed must not leave it frozen.\n      removingRef.current = false;\n      inFlightRef.current = false;\n      setIsSyncing(false);\n    }\n  }, []);\n\n  const handleUpdateProductQuantity = useCallback(async (value: number) => {\n    if (removingRef.current) {\n      return;\n    }\n    await runLatest(() =>\n      latestRef.current.updateProductQuantity({\n        orderId: latestRef.current.orderId,\n        productItemId: latestRef.current.product.seq,\n        newQuantity: value,\n      }),\n    );\n  }, []);\n\n  const handleRemoveProduct = useCallback(async () => {\n    if (removingRef.current) {\n      return;\n    }\n    removingRef.current = true;\n    await runLatest(() =>\n      latestRef.current.deleteProduct({\n        productItemId: latestRef.current.product.seq,\n        orderId: latestRef.current.orderId,\n        product: latestRef.current.product,\n      }),\n    );\n  }, []);\n\n  const isQuantityEditable = readOnly ? false : product.price && product.editable;\n  const freeAmmoQuantity = parseFreeAmmoQuantity(product.freeAmmoBanner);\n  const freeAmmoTargetQuantity = freeAmmoQuantity ? product.quantity + freeAmmoQuantity : 0;\n  /*\n   * The stepper refuses to write past the line's limit, and this click writes the same field, so it\n   * answers to the same ceiling — an absent limit falls back to the stepper's own default. A promo\n   * that does not fit under the limit is left as plain copy rather than offered as a click that\n   * would either overshoot the limit or add less than the banner promises.\n   */\n  const canAddFreeAmmo =\n    freeAmmoTargetQuantity > 0 && freeAmmoTargetQuantity <= (product.purchaseLimit ?? DEFAULT_MAX_QUANTITY);\n\n  /*\n   * Promotions copy, authored in webadmin — the same trust boundary as the other AlertMessage\n   * banners — so it is kept in its own leaf element: a malformed tag can then only corrupt itself\n   * rather than swallowing what follows.\n   */\n  const freeAmmoBanner = product.freeAmmoBanner ? (\n    canAddFreeAmmo ? (\n      <Button\n        id={`free-ammo-banner-${product.seq}`}\n        variant=\"text\"\n        ariaLabel={`Add ${freeAmmoQuantity} more to get one free`}\n        classes={styles.freeAmmoBanner}\n        onClick={() => void handleUpdateProductQuantity(freeAmmoTargetQuantity)}\n      >\n        <span data-testid=\"free-ammo-banner\" dangerouslySetInnerHTML={{ __html: product.freeAmmoBanner }} />\n      </Button>\n    ) : (\n      <p\n        data-testid=\"free-ammo-banner\"\n        className={styles.freeAmmoBanner}\n        dangerouslySetInnerHTML={{ __html: product.freeAmmoBanner }}\n      />\n    )\n  ) : null;\n\n  return (\n    <article\n      data-testid={dataTestId}\n      id={getBrandProductId(product.id, product.brandItemCode ?? null)}\n      className={`${styles.productRow} cartProductRow`}\n    >\n      <figure className={styles.productCard}>\n        <ProductCardImage product={product} imgLayout=\"responsive\" />\n        <figcaption>\n          <div className=\"productInfo\">\n            <ProductInfo product={product} />\n          </div>\n\n          <div className={`${styles.desktopView} productProperties`}>\n            {product.backordered ? (\n              <ProductStatus\n                dataId=\"main-list-backordered\"\n                title={'Backordered'}\n                stockDateMessage={product.stockDate}\n              />\n            ) : null}\n            {product.specialOrder ? (\n              <ProductStatus dataId=\"main-list-special\" title={'Special Order'} stockDateMessage={product.stockDate} />\n            ) : null}\n            {product.purchaseLimitMessage ? (\n              <ProductPurchaseLimitMessage testid=\"product-purchase-message\" message={product.purchaseLimitMessage} />\n            ) : null}\n            {product.superConfigurator ? (\n              <CustomProductDescription\n                testid=\"custom-product-description\"\n                description={product.productSpecifications}\n              />\n            ) : null}\n            {(product.backordered || product.specialOrder) && product.additionalProductFee ? (\n              <div className={clsx(styles.productFee, styles.additionalFeePriceContainer)}>\n                <ProductFee data={product.additionalProductFee} className={styles.productFeeAdditional} />\n                <div className={styles.boxView}>\n                  <p className={styles.additionalFeePrice}>\n                    {currencyFormatting(product.additionalProductFee.price, false)}\n                  </p>\n                </div>\n              </div>\n            ) : null}\n          </div>\n\n          {vendorName && config.brandCode === '0' ? (\n            <div data-testid=\"product-vendor\" className=\"productVendor\">\n              <p className={styles.vendorDescription}>Sold & shipped by</p>\n              <p data-testid=\"product-vendor-name\" className={styles.vendorName}>\n                {vendorName}\n              </p>\n            </div>\n          ) : null}\n\n          <div className={`${styles.desktopView} productCoupon`}>\n            {!product.couponAllowed && regularCouponApplied ? (\n              <CouponApplyErrorMessage message=\"Coupon Ineligible\" />\n            ) : null}{' '}\n            {product.autoClipCoupon && product.couponAllowed ? (\n              <CouponApply\n                onApplyCouponToItem={onApplyCouponToItem}\n                onGetTermsContent={onGetTermsContent}\n                productId={`${product.id}-desktop`}\n                autoClipCoupon={product.autoClipCoupon}\n              />\n            ) : null}\n          </div>\n        </figcaption>\n      </figure>\n      <>\n        <div className={`${styles.mobileView} productCoupon`}>\n          {!product.couponAllowed && regularCouponApplied ? (\n            <CouponApplyErrorMessage message=\"Coupon Ineligible\" />\n          ) : null}{' '}\n          {product.autoClipCoupon && product.couponAllowed ? (\n            <CouponApply\n              onApplyCouponToItem={onApplyCouponToItem}\n              onGetTermsContent={onGetTermsContent}\n              productId={`${product.id}-mobile`}\n              autoClipCoupon={product.autoClipCoupon}\n            />\n          ) : null}\n        </div>\n        <div className={styles.mobileView}>\n          {product.backordered ? (\n            <ProductStatus dataId=\"main-list-backordered\" title={'Backordered'} stockDateMessage={product.stockDate} />\n          ) : null}\n\n          {product.specialOrder ? (\n            <ProductStatus dataId=\"main-list-special\" title={'Special Order'} stockDateMessage={product.stockDate} />\n          ) : null}\n\n          {product.purchaseLimitMessage ? (\n            <ProductPurchaseLimitMessage testid=\"product-purchase-message\" message={product.purchaseLimitMessage} />\n          ) : null}\n\n          {product.superConfigurator ? (\n            <CustomProductDescription testid=\"custom-product-description\" description={product.productSpecifications} />\n          ) : null}\n\n          {(product.backordered || product.specialOrder) && product.additionalProductFee ? (\n            <div className={styles.productFee}>\n              <ProductFee data={product.additionalProductFee} />\n              <div className={styles.boxView}>\n                <span>{currencyFormatting(product.additionalProductFee.price, false)}</span>\n              </div>\n            </div>\n          ) : null}\n        </div>\n      </>\n\n      {/* <ProductCard\n        vendorName={vendorName}\n        product={product}\n        imgLayout=\"responsive\"\n        readonly={readOnly}\n        isProductRemovable={isProductRemovable}\n        regularCouponApplied={regularCouponApplied}\n        onRemoveProduct={async () =>\n          await deleteProduct({\n            productItemId: product.seq,\n            orderId,\n            product,\n          })\n        }\n        onApplyCouponToItem={onApplyCouponToItem}\n        onGetTermsContent={onGetTermsContent}\n      /> */}\n      <div className={`${styles.productContainer} productContainer`}>\n        <div className={styles.productPriceRow}>\n          <div className={styles.producActionContainer}>\n            <div\n              data-testid={isQuantityEditable ? 'product-qty' : 'product-qty-no-editable'}\n              className={styles.quantityContainer}\n            >\n              <QuantityStepper\n                key={`qty-${product.seq}-${resetNonce}`}\n                id={`qty-${product.seq}`}\n                value={product.quantity}\n                syncing={isSyncing}\n                // Passed through as-is: an absent limit lets the stepper apply its own default, and an\n                // explicit 0 survives as 0 so the line cannot be increased.\n                max={product.purchaseLimit}\n                disabled={!isQuantityEditable}\n                onChange={(quantity) => void handleUpdateProductQuantity(quantity)}\n                onDelete={isProductRemovable ? () => void handleRemoveProduct() : undefined}\n              />\n            </div>\n          </div>\n\n          <span className={clsx(styles.price, { [styles.freePrice]: product.price === 0 })} data-testid=\"product-price\">\n            {currencyFormatting(product.price)}\n          </span>\n        </div>\n\n        {freeAmmoBanner ? <div className={styles.freeAmmoRow}>{freeAmmoBanner}</div> : null}\n      </div>\n    </article>\n  );\n};\n\nexport default CartProductRow;\n","export * from './interactorTypes';\nexport * from './CartApiService';\nexport * from './CartInteractor';\nexport * from './interactorTypes'\nexport * from './types';\nexport * from './services';\n","import { ProductServiceType } from '@package/core/src/shoppingCart';\nimport clsx from 'clsx';\n\nimport ProductServiceContent from '../ProductServiceContent';\nimport config from 'config-base';\nimport styles from './Service.module.css';\nimport { ProductServiceProps } from './types';\n\nconst ProductService = ({\n  data,\n  productSku,\n  className,\n  contentClassName,\n  isProductRemovable,\n  addProductService,\n  addCustomService,\n  deleteSpecifiedService,\n  deleteProductService,\n}: ProductServiceProps) => (\n  <div\n    className={clsx(styles.serviceAddon, { [styles.serviceAddonAGD]: config.brandCode !== '0' }, className)}\n    data-testid=\"product-service\"\n  >\n    <ProductServiceContent\n      key={`${data.seq}${productSku}`}\n      title={data.name}\n      services={data.elements}\n      productSku={productSku}\n      className={contentClassName}\n      isProductRemovable={isProductRemovable}\n      deleteSpecifiedService={async (sku: string) => {\n        await deleteSpecifiedService(sku);\n      }}\n      addProductService={async (service) => {\n        await addProductService({\n          serviceId: service.id,\n          productSku,\n          serviceType: ProductServiceType.ExpertSetup,\n          product: service,\n        });\n      }}\n      deleteProductService={async () => {\n        await deleteProductService();\n      }}\n      addCustomService={addCustomService}\n    />\n  </div>\n);\n\nexport default ProductService;\n","import CartApiService from '@package/core/src/shoppingCart/CartApiService';\nimport CartInteractor from '@package/core/src/shoppingCart/CartInteractor';\nimport { Product } from '@package/core/src/shoppingCart/types';\n\nimport { apiClient, cookieStorage, listrakAnalytic } from '../services';\nimport { useStrictQuery } from '../useCustomQuery';\n\nimport { SUGGESTED_PRODUCTS_DATA_QUERY_KEY } from './types';\n\nconst cartService = new CartApiService(apiClient, cookieStorage, listrakAnalytic);\nconst cartInteractor = new CartInteractor(cartService);\n\nexport default function useSuggestedProducts(products: Array<Product>, vendorId: number, minPrice: number) {\n  const excludeIds = [] as Array<string>;\n  products.map((product: Product) => excludeIds.push(product.id));\n\n  const { data: suggestedProducts, isFetched } = useStrictQuery(\n    [SUGGESTED_PRODUCTS_DATA_QUERY_KEY, vendorId, minPrice],\n    async () => {\n      if (vendorId) {\n        const res = await cartInteractor.getSuggestedProducts({\n          vendorId,\n          minPrice,\n          excludeIds: excludeIds.join(','),\n        });\n\n        return res.data;\n      }\n    },\n  );\n\n  return { isFetched, suggestedProducts };\n}\n","import Accordion from '@base/components/src/Accordion';\nimport { ProductAddonElement } from '@package/core/src/shoppingCart/types';\nimport useSuggestedProducts from '@package/hooks/src/useSuggestedProducts';\nimport { memo, useEffect, useState } from 'react';\nimport { SuggestedProductProps } from './types';\nimport AddonCard from '../CartProductAddons/AddonCard';\nimport Addon from '../CartProductAddons/Addon';\nimport clsx from 'clsx';\n\nimport config from 'config-base';\nimport styles from '../CartProductAddons/CartProductAddons.module.css';\n\nexport function SuggestedProductsComponent({\n  vendorId,\n  vendorName,\n  minPrice,\n  products,\n  addProduct,\n}: SuggestedProductProps) {\n  const [productsList, setProductsList] = useState<any>([]);\n\n  const { suggestedProducts } = useSuggestedProducts(products, vendorId, minPrice);\n\n  useEffect(() => {\n    if (suggestedProducts) setProductsList(suggestedProducts);\n  }, [suggestedProducts]);\n\n  return productsList && productsList.length > 0 ? (\n    <Accordion\n      title={`Other ${vendorName} products`}\n      className={clsx(styles.addon, {\n        [styles.addonAGD]: config.brandCode !== '0',\n      })}\n      headerClassName={styles.accordironAddonsHeader}\n      titleClass={styles.accordionAddonsTitle}\n      iconClassName={styles.accordionIcon}\n      contentClassName={styles.accordionContent}\n      data-testid=\"suggested-products\"\n    >\n      <div className={styles.suggestedProductsList}>\n        <Addon<ProductAddonElement>\n          data={productsList}\n          renderAddonItem={(product) => (\n            <AddonCard\n              data={product}\n              onAddProduct={async () => await addProduct([{ productSKU: product.sku, product }])}\n            />\n          )}\n        />\n      </div>\n    </Accordion>\n  ) : null;\n}\n\nconst SuggestedProducts = memo(SuggestedProductsComponent);\n\nexport default SuggestedProducts;\n","import Alert from '@base/components/src/Alert';\n// import Link from '@base/components/src/Link';\nimport SocialProof from '@base/components/src/SocialProof';\nimport useShoppingCart from '@package/hooks/src/useShoppingCart';\nimport useSocialProof from '@package/hooks/src/useSocialProof';\nimport getBrandProductId from '@package/utils/src/getBrandProductId';\n// import config from 'config-base';\nimport { useEffect, useMemo, useState } from 'react';\n\nimport CartProductAddons from './CartProductAddons';\nimport styles from './CartProductList.module.css';\nimport CartProductRow from './CartProductRow';\nimport ProductService from './ProductService';\nimport SuggestedProducts from './SuggestedProducts';\nimport { apiClient } from '../../services';\nimport AlertsApiService from '@package/core/src/alerts/AlertsApiService';\nimport { AlertProps, CartProductListProps } from './types';\nimport { SubOrder } from '@package/core/src/shoppingCart/types';\n\nconst alertsService = new AlertsApiService(apiClient);\n\nexport default function CartProductList(props: Readonly<CartProductListProps>) {\n  const { subOrders, readOnly = false, checkoutButtonAvailable, regularCouponApplied } = props;\n  const {\n    // saveToWishlist,\n    addProductService,\n    deleteProduct,\n    updateProductQuantity,\n    addProduct,\n    deleteProductService,\n    applyCouponToItem,\n    addCustomService,\n    loading,\n    success,\n  } = useShoppingCart({ disableGetShoppingCart: readOnly, mainCart: true });\n\n  const cartIds = useMemo(\n    () =>\n      (subOrders ?? [])\n        .flatMap((order) => order.products ?? [])\n        .map((product) => getBrandProductId(product.id, product.brandItemCode ?? null))\n        .join('|'),\n    [subOrders],\n  );\n\n  const { data: socialProofData, refetch: refetchSocialProof } = useSocialProof({\n    placements: 'cart_page',\n    productIds: cartIds,\n  });\n\n  const [alertState, setAlertState] = useState<AlertProps>({\n    processing: false,\n    finished: false,\n    processMessage: '',\n  });\n\n  let sellers: any = [];\n\n  const setSellers = (vendorOrderId: number, prevSellers: any) => (sellers = [vendorOrderId, ...prevSellers]);\n\n  const updateCartAlertMessage = (message: string) => setAlertState({ processMessage: message });\n\n  const onGetTermsContent = async () => {\n    const termsContent = await alertsService.getTermsAlert();\n    return termsContent?.data;\n  };\n\n  useEffect(() => {\n    setAlertState({\n      processing: loading,\n      finished: loading ? false : success,\n      processMessage: alertState.processMessage,\n    });\n  }, [loading, success]);\n\n  useEffect(() => {\n    if (cartIds) {\n      refetchSocialProof();\n    }\n  }, [cartIds]);\n\n  return (\n    <>\n      {subOrders?.map((order: SubOrder) =>\n        order?.products?.map((product) => {\n          const isProductRemovable = readOnly ? false : (product.removeAvailable ?? false);\n          return (\n            <div className={styles.subOrderContainer} key={product.seq}>\n              <CartProductRow\n                dataTestId={`${product.id}-product-item`}\n                orderId={order.orderId}\n                product={product}\n                vendorName={order.vendor}\n                readOnly={readOnly}\n                regularCouponApplied={regularCouponApplied}\n                deleteProduct={async (data) => {\n                  updateCartAlertMessage('Removing item');\n                  await deleteProduct(data);\n                }}\n                updateProductQuantity={async (data) => {\n                  updateCartAlertMessage('Update quantity');\n                  await updateProductQuantity(data);\n                }}\n                onApplyCouponToItem={async (couponCode, isApply) => {\n                  updateCartAlertMessage('Applying coupon to item');\n                  await applyCouponToItem({ couponCode, isApply });\n                }}\n                isProductRemovable={isProductRemovable}\n                onGetTermsContent={onGetTermsContent}\n              />\n              {product.services &&\n                !readOnly &&\n                product.services.map((service) => (\n                  <ProductService\n                    key={`${service.name}${product.quantity}`}\n                    data={service}\n                    contentClassName={styles.servicesExpert}\n                    productSku={product.id}\n                    isProductRemovable={isProductRemovable}\n                    deleteSpecifiedService={async (sku: string) => {\n                      updateCartAlertMessage('Removing item.');\n                      const productToDelete = order.products?.find((product) => product.id === sku);\n                      if (productToDelete) {\n                        await deleteProduct({\n                          productItemId: productToDelete.seq,\n                          orderId: order.orderId,\n                          product,\n                        });\n                      }\n                    }}\n                    addProductService={async (data) => {\n                      updateCartAlertMessage('Adding service to order');\n                      await addProductService({\n                        ...data,\n                        productQuantity: product.quantity,\n                      });\n                    }}\n                    deleteProductService={async () => {\n                      updateCartAlertMessage('Removing item.');\n                      await deleteProductService({\n                        orderId: order.orderId,\n                        productSku: product.id,\n                        serviceType: service.name,\n                      });\n                    }}\n                    addCustomService={addCustomService}\n                  />\n                ))}\n              {!readOnly && (\n                <CartProductAddons\n                  relatedProductsAvailable={!!product.relatedProductsAvailable}\n                  productSku={product.id}\n                  productQuantity={product.quantity}\n                  isProductRemovable={isProductRemovable}\n                  addProduct={async (data) => {\n                    updateCartAlertMessage('Adding item to order');\n                    await addProduct(data);\n                  }}\n                  addProductService={async (data) => {\n                    updateCartAlertMessage('Adding service to order');\n                    await addProductService(data);\n                  }}\n                  deleteProductService={async (serviceType) => {\n                    updateCartAlertMessage('Removing item.');\n                    await deleteProductService({\n                      orderId: order.orderId,\n                      productSku: product.id,\n                      serviceType,\n                    });\n                  }}\n                  addCustomService={addCustomService}\n                />\n              )}\n\n              {!readOnly && !sellers.includes(order.vendorId) && (\n                <>\n                  <div style={{ display: 'none' }}>{setSellers(order.vendorId, sellers)}</div>\n                  <SuggestedProducts\n                    vendorId={order.vendorId}\n                    vendorName={order.vendor}\n                    minPrice={\n                      order.vendorShipping?.banners?.find(\n                        (banner) => banner.amountLeft != null && banner.amountLeft !== 0,\n                      )?.amountLeft ?? 0\n                    }\n                    products={order.products || []}\n                    addProduct={async (data) => {\n                      updateCartAlertMessage('Adding item to order');\n                      await addProduct(data);\n                    }}\n                  />\n                </>\n              )}\n            </div>\n          );\n        }),\n      )}\n\n      {/* Replaced by CartActions (Continue / Share / Save cards)\n      {!readOnly && (\n        <div className={`${styles.linkContainer} linkContainer`}>\n          <span\n            id=\"save-to-wish-list\"\n            className=\"!font-bold cursor-pointer\"\n            onClick={async () => await saveToWishlist()}\n          >\n            Save cart to wishlist\n          </span>\n\n          <Link\n            classes={`${styles.cartLink} continueShoppingBtnCart`}\n            showCursorPointer\n            href={config.mainPyramydairUrl}\n            data-testid=\"continue-shipping-btn\"\n          >\n            <span className={'text-sm'}>\n              Continue shopping <span className=\"!text-[8px] inline-block rotate-45\">&#9701;</span>\n            </span>\n          </Link>\n        </div>\n      )}\n      */}\n\n      <Alert\n        processing={alertState.processing}\n        finished={alertState.finished}\n        processMessage={alertState.processMessage}\n        finishMessage={'Order updated.'}\n        checkoutButtonAvailable={checkoutButtonAvailable}\n      />\n\n      <SocialProof data={socialProofData} />\n    </>\n  );\n}\n","import styles from './ProductStatus.module.css';\nimport { ProductStatusProps } from './types';\n\nconst ProductStatus = ({ dataId, title, stockDateMessage }: ProductStatusProps) => (\n  <div data-testid={dataId} className={styles.statusContainer}>\n    <p className={`${styles.productStatus} ${styles.productStatusBackordered} productStatusBackordered `}>{title}</p>\n    {stockDateMessage && <p className={styles.productCaption}>{stockDateMessage}</p>}\n  </div>\n);\n\nexport default ProductStatus;\n","import { FC } from 'react';\nimport clsx from 'clsx';\n\nimport styles from './TwoSideLayout.module.css';\nimport { TwoSideLayoutProps } from './types';\n\nconst TwoSideLayout: FC<TwoSideLayoutProps> = ({ rightSide, leftSide, rightSideClass, leftSideClasses, className }) => (\n  <div className={clsx(styles.twoSideLayout, className)}>\n    <article className={clsx(styles.article, leftSideClasses)}>{leftSide}</article>\n    <aside className={clsx(styles.aside, rightSideClass)}>{rightSide}</aside>\n  </div>\n);\n\nexport default TwoSideLayout;\n","import clsx from 'clsx';\nimport { useState, useEffect, useRef } from 'react';\n\nimport CheckIcon from '../Icon/CheckIcon';\n\nimport styles from './Alert.module.css';\nimport { AlertComponentProps, AlertToast } from './types';\n\nconst MAX_STACK_SIZE = 3;\n\nconst Alert = ({\n  processing,\n  finished,\n  processMessage,\n  finishMessage,\n  vertical = 'center',\n  horizontal = 'bottom',\n  checkoutButtonAvailable,\n  duration = 4000,\n  trigger,\n}: AlertComponentProps) => {\n  const [toasts, setToasts] = useState<AlertToast[]>([]);\n  const [popupIsVisible, setPopupIsVisible] = useState<boolean>(false);\n  // Mirror of `toasts` so effects and timer callbacks can read/update the stack\n  // without side effects inside setState updaters (StrictMode double-invokes them).\n  const toastsRef = useRef<AlertToast[]>([]);\n  const toastIdRef = useRef(0);\n  const timersRef = useRef<Record<number, ReturnType<typeof setTimeout>>>({});\n  const previousProcessing = useRef(false);\n  const previousFinished = useRef(false);\n  const previousTrigger = useRef(trigger);\n\n  const classNames: string = clsx(\n    styles.Alert,\n    { [styles.AlertCenter]: vertical === 'center' },\n    { [styles.AlertLeft]: vertical === 'left' },\n    { [styles.AlertRight]: vertical === 'right' },\n    { [styles.AlertBottom]: horizontal === 'bottom' },\n    { [styles.AlertTop]: horizontal === 'top' },\n    { [styles.AlertBottomMobile]: popupIsVisible },\n    {\n      [styles.AlertValuedCustomerPopup]: checkoutButtonAvailable && popupIsVisible,\n    },\n  );\n\n  const commitToasts = (next: AlertToast[]): void => {\n    toastsRef.current = next;\n    setToasts(next);\n  };\n\n  const clearToastTimer = (id: number): void => {\n    clearTimeout(timersRef.current[id]);\n    delete timersRef.current[id];\n  };\n\n  const removeToast = (id: number): void => {\n    clearToastTimer(id);\n    commitToasts(toastsRef.current.filter((toast) => toast.id !== id));\n  };\n\n  const scheduleAutoHide = (id: number): void => {\n    clearToastTimer(id);\n    timersRef.current[id] = setTimeout(() => removeToast(id), duration);\n  };\n\n  const dropOverflow = (stack: AlertToast[]): AlertToast[] => {\n    stack.slice(0, Math.max(stack.length - MAX_STACK_SIZE, 0)).forEach((toast) => clearToastTimer(toast.id));\n    return stack.slice(-MAX_STACK_SIZE);\n  };\n\n  const pushToast = (stack: AlertToast[], toast: Omit<AlertToast, 'id'>): AlertToast[] => {\n    toastIdRef.current += 1;\n    return dropOverflow([...stack, { ...toast, id: toastIdRef.current }]);\n  };\n\n  const isVisible = (el: Element | null): boolean => {\n    if (!el) return false;\n    const style = window.getComputedStyle(el);\n    if (style.display === 'none' || style.visibility === 'hidden') return false;\n    return el.getBoundingClientRect().height > 0;\n  };\n\n  const setPopupVisibility = (): void => {\n    const popup = document.getElementById('checkout-total-popup');\n    setPopupIsVisible(isVisible(popup));\n  };\n\n  useEffect(() => {\n    setPopupVisibility();\n\n    const startedProcessing = !previousProcessing.current && !!processing;\n    const stoppedProcessing = previousProcessing.current && !processing;\n    const justFinished = !previousFinished.current && !!finished;\n    previousProcessing.current = !!processing;\n    previousFinished.current = !!finished;\n\n    let next = toastsRef.current;\n\n    if (startedProcessing) {\n      next = pushToast(next, { status: 'processing' });\n    }\n\n    if (justFinished) {\n      const processingToast = [...next].reverse().find((toast) => toast.status === 'processing');\n      if (processingToast) {\n        next = next.map((toast) =>\n          toast.id === processingToast.id ? { ...toast, status: 'finished' as const, message: finishMessage } : toast,\n        );\n        scheduleAutoHide(processingToast.id);\n      } else {\n        next = pushToast(next, { status: 'finished', message: finishMessage });\n        scheduleAutoHide(toastIdRef.current);\n      }\n    } else if (stoppedProcessing) {\n      // The operation ended without success — drop its pending processing toast.\n      next = next.filter((toast) => toast.status !== 'processing');\n    }\n\n    if (next !== toastsRef.current) {\n      commitToasts(next);\n    }\n  }, [processing, finished]);\n\n  useEffect(() => {\n    if (previousTrigger.current === trigger) return;\n    previousTrigger.current = trigger;\n    commitToasts(pushToast(toastsRef.current, { status: 'finished', message: finishMessage }));\n    scheduleAutoHide(toastIdRef.current);\n    // `trigger` alone on purpose: a bump of it is the whole signal to push a toast. The helpers above\n    // are recreated every render and `finishMessage` is read at fire time, so listing either would\n    // re-enter this effect on unrelated renders — the guard turns those into no-ops, but they are noise.\n  }, [trigger]);\n\n  useEffect(() => {\n    return () => {\n      Object.values(timersRef.current).forEach(clearTimeout);\n    };\n  }, []);\n\n  return (\n    <>\n      {toasts.length > 0 ? (\n        <div aria-hidden className={classNames}>\n          {toasts.map((toast, index) => {\n            const depth = toasts.length - 1 - index;\n            return (\n              <div\n                key={toast.id}\n                className={clsx(styles.AlertToast, {\n                  [styles.AlertToastFront]: depth === 0,\n                  [styles.AlertToastMid]: depth === 1,\n                  [styles.AlertToastBack]: depth >= 2,\n                })}\n              >\n                <div\n                  className={clsx(styles.AlertContent, styles.Alert_animation, {\n                    'updateOrderAlert': toast.status === 'finished',\n                  })}\n                >\n                  {toast.status === 'processing' ? (\n                    processMessage\n                  ) : (\n                    <>\n                      <CheckIcon /> {toast.message}\n                    </>\n                  )}\n                </div>\n              </div>\n            );\n          })}\n        </div>\n      ) : null}\n    </>\n  );\n};\n\nexport default Alert;\n","import { CarouselContext, CarouselStoreInterface } from 'pure-react-carousel';\nimport { useContext, useEffect, useState } from 'react';\n\nexport default function useCurrentSlide(): number {\n  const carouselContext: CarouselStoreInterface = useContext(CarouselContext);\n  const [currentSlide, setCurrentSlide] = useState(carouselContext.state.currentSlide);\n  useEffect(() => {\n    function onChange() {\n      setCurrentSlide(carouselContext.state.currentSlide);\n    }\n    carouselContext.subscribe(onChange);\n    return () => carouselContext.unsubscribe(onChange);\n  }, [carouselContext]);\n\n  return currentSlide;\n}\n","'use client';\n\nimport clsx from 'clsx';\nimport { Slider as PecSlider, Slide as PrcSlide } from 'pure-react-carousel';\n\nimport styles from './Slider.module.css';\nimport { DefaultValue, CarouselProps } from './types';\nimport useCurrentSlide from './useCurrentSlide';\n\nfunction Slider<V = DefaultValue>(props: CarouselProps<V>) {\n  const {\n    slideData,\n    renderSlide,\n    visibleSlides,\n    carouselHeight,\n    carouselPadding,\n    slideContentClassName,\n    sliderWrapperClass,\n  } = props;\n  const calcSlideContentHeight: string = carouselHeight || styles.mediumHeight;\n  const calcCarouselPaddingBottom: string = carouselPadding || styles.basePadding;\n  const slideClasses: string = clsx(styles.slide, calcCarouselPaddingBottom);\n  const slideContentClasses: string = clsx(\n    styles.slideContent,\n    styles.slideContentTransition,\n    calcSlideContentHeight,\n    slideContentClassName,\n  );\n  const currentSlide: number = useCurrentSlide();\n\n  return (\n    <PecSlider draggable={false} className={styles.slider} classNameTrayWrap={sliderWrapperClass}>\n      {slideData.map((data, index) => (\n        <PrcSlide className={`${slideClasses} carousel-padding`} index={index} data-testid={`slide-${index}`} key={`slide-${index}`}>\n          <div className={slideContentClasses}>{renderSlide(data, index, visibleSlides, currentSlide)}</div>\n        </PrcSlide>\n      ))}\n    </PecSlider>\n  );\n}\n\nexport default Slider;\n","'use client';\n\nimport clsx from 'clsx';\nimport { ButtonBack, CarouselContext } from 'pure-react-carousel';\nimport { FC, useContext, useEffect, useState } from 'react';\nimport { CarouselButtonProps } from '../types';\nimport config from 'config-base';\nimport styles from '../Carousel.module.css';\n\nconst BackButton: FC<CarouselButtonProps> = ({ buttonsAbsolute, hideButtons, arrowClassName, backArrowClasses }) => {\n  const carouselContext = useContext(CarouselContext);\n  const [currentSlide, setCurrentSlide] = useState(carouselContext.state.currentSlide);\n\n  useEffect(() => {\n    function onChange() {\n      setCurrentSlide(carouselContext.state.currentSlide);\n    }\n    carouselContext.subscribe(onChange);\n    return () => carouselContext.unsubscribe(onChange);\n  }, [carouselContext]);\n\n  return (\n    !hideButtons && (\n      <ButtonBack\n        className={clsx(\n          styles.carouselButtons,\n          styles.backButton,\n          {\n            [styles.carouselButtonLeft]: buttonsAbsolute,\n            [`${styles.carouselButtonLeftAGD} ${styles.carouselButtonsAGD}`]:\n              buttonsAbsolute && config.brandCode !== '0',\n            [styles.backButtonAGD]: config.brandCode !== '0',\n          },\n          arrowClassName,\n          backArrowClasses,\n        )}\n        disabled={currentSlide === 0}\n      >\n        <span></span>\n      </ButtonBack>\n    )\n  );\n};\n\nexport default BackButton;\n","'use client';\n\nimport clsx from 'clsx';\nimport { ButtonNext, CarouselContext } from 'pure-react-carousel';\nimport { FC, useContext, useEffect, useState } from 'react';\nimport config from 'config-base';\nimport { CarouselButtonProps } from '../types';\n\nimport styles from '../Carousel.module.css';\n\nconst NextButton: FC<CarouselButtonProps> = ({\n  buttonsAbsolute,\n  hideButtons,\n  total,\n  step,\n  arrowClassName,\n  nextArrowClasses,\n}) => {\n  const carouselContext = useContext(CarouselContext);\n  const [currentSlide, setCurrentSlide] = useState(carouselContext.state.currentSlide);\n\n  useEffect(() => {\n    function onChange() {\n      setCurrentSlide(carouselContext.state.currentSlide);\n    }\n    carouselContext.subscribe(onChange);\n    return () => carouselContext.unsubscribe(onChange);\n  }, [carouselContext]);\n\n  return (\n    !hideButtons && (\n      <ButtonNext\n        className={clsx(\n          styles.carouselButtons,\n          styles.nextButton,\n          {\n            [styles.carouselButtonRight]: buttonsAbsolute,\n            [`${styles.carouselButtonRightAGD} ${styles.carouselButtonsAGD}`]:\n              buttonsAbsolute && config.brandCode !== '0',\n            [styles.nextButtonAGD]: config.brandCode !== '0',\n          },\n          arrowClassName,\n          nextArrowClasses,\n        )}\n        disabled={step ? currentSlide + step === total : false}\n      >\n        <span></span>\n      </ButtonNext>\n    )\n  );\n};\n\nexport default NextButton;\n","'use client';\n\nimport clsx from 'clsx';\nimport { CarouselProvider, DotGroup, Dot } from 'pure-react-carousel';\nimport { Fragment } from 'react';\n\nimport styles from './Carousel.module.css';\nimport Slider from './Slider';\nimport { DefaultValue, CarouselProps, RenderDotsProps } from './types';\nimport BackButton from './Buttons/BackButton';\nimport NextButton from './Buttons/NextButton';\n\nfunction Carousel<V = DefaultValue>(props: Readonly<CarouselProps<V>>) {\n  const {\n    slideData,\n    className,\n    hideButtons,\n    hideDotButtons = false,\n    disableDrag = false,\n    buttonsAbsolute,\n    dotClassName,\n    arrowClassName,\n    dragStep = 1,\n    backArrowClasses,\n    nextArrowClasses,\n    carouselContentClassName,\n    currentImageIndex,\n    ...rest\n  } = props;\n  const dotClasses: string = clsx(styles.dots, styles.dotsButton, dotClassName);\n\n  return (\n    <CarouselProvider\n      infinite\n      lockOnWindowScroll\n      step={rest.visibleSlides}\n      className={clsx(styles.carousel, className)}\n      naturalSlideWidth={100}\n      naturalSlideHeight={100}\n      totalSlides={slideData.length}\n      visibleSlides={rest.visibleSlides}\n      dragEnabled={!disableDrag}\n      touchEnabled={!disableDrag}\n      dragStep={dragStep}\n      currentSlide={currentImageIndex}\n    >\n      <div className={clsx(styles.carouselContent, carouselContentClassName)}>\n        <BackButton\n          buttonsAbsolute={buttonsAbsolute}\n          hideButtons={hideButtons}\n          arrowClassName={arrowClassName}\n          backArrowClasses={backArrowClasses}\n        />\n\n        <Slider slideData={slideData} {...rest} />\n\n        <NextButton\n          buttonsAbsolute={buttonsAbsolute}\n          hideButtons={hideButtons}\n          total={slideData.length}\n          step={rest.visibleSlides}\n          arrowClassName={arrowClassName}\n          nextArrowClasses={nextArrowClasses}\n        />\n      </div>\n      {!hideDotButtons && (\n        <DotGroup\n          className={dotClasses}\n          showAsSelectedForCurrentSlideOnly={true}\n          renderDots={(dotPros: RenderDotsProps) => {\n            const totalDots = Math.ceil(dotPros.totalSlides! / dotPros.visibleSlides!);\n            const renderDot = new Array<number>(totalDots).fill(0);\n            for (let slideId = 1; slideId < renderDot.length; slideId++) {\n              renderDot[slideId] = renderDot[slideId - 1] + dotPros.visibleSlides!;\n            }\n            return renderDot.map((slideIdx: number) => (\n              <Fragment key={slideIdx}>\n                <Dot slide={slideIdx} />\n              </Fragment>\n            ));\n          }}\n        />\n      )}\n    </CarouselProvider>\n  );\n}\n\nexport default Carousel;\n","'use client';\n\nimport useMediaQuery from '@package/hooks/src/useMediaQuery';\nimport { useMemo } from 'react';\n\nimport Carousel from './Carousel';\nimport { ResponsiveCarouselProps, DefaultValue } from './types';\n\nexport default function ResponsiveCarousel<V = DefaultValue>(props: ResponsiveCarouselProps<V>) {\n  const { visibleSlidesQuery, hideDotButtons, hideArrow, ...rest } = props;\n\n  const xxl: boolean = useMediaQuery('(min-width:1280px)');\n  const xl: boolean = useMediaQuery('(min-width:1024px)');\n  const lg: boolean = useMediaQuery('(min-width:960px)');\n  const md: boolean = useMediaQuery('(min-width:768px)');\n  const sm: boolean = useMediaQuery('(min-width:425px)');\n\n  const visibleSlides: number = useMemo((): number => {\n    if (xxl) return visibleSlidesQuery.xxl;\n    if (xl) return visibleSlidesQuery.xl;\n    if (lg) return visibleSlidesQuery.lg;\n    if (md) return visibleSlidesQuery.md;\n    if (sm) return visibleSlidesQuery.sm;\n    return visibleSlidesQuery.xs;\n  }, [xxl, xl, lg, md, sm, visibleSlidesQuery]);\n\n  const allElementVisible = useMemo(() => rest.slideData.length <= visibleSlides, [rest.slideData, visibleSlides]);\n\n  return (\n    <Carousel<V>\n      {...rest}\n      visibleSlides={visibleSlides}\n      hideButtons={allElementVisible || hideArrow}\n      hideDotButtons={hideDotButtons || allElementVisible}\n      disableDrag={allElementVisible}\n    />\n  );\n}\n","import dynamic from 'next/dynamic';\nexport * from './types';\n\n/** react pure carousel is shown in reduce unused javascript error on lighthouse analytics\n * in order to remove this error we need to import those component dynamicaly\n */\nexport const ResponsiveCarousel = dynamic<any>(() => import('./ResponsiveCarousel') as any) as any;\n","export type HtmlProps = {\n  htmlString: string;\n  className?: string;\n};\n\nexport const htmlSanitizeConfig = {\n  FORCE_BODY: true,\n  ALLOWED_URI_REGEXP: /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\\-]+(?:[^a-z+.\\-:]|$))/i,\n  ADD_ATTR: ['onclick', 'allow', 'allowfullscreen', 'frameborder', 'scrolling'],\n  ADD_TAGS: ['iframe', 'script', 'style'],\n};\n","import clsx from 'clsx';\nimport { PropsWithChildren } from 'react';\n\nimport { RadioGroupContext } from '../RadioGroupContext';\n\nimport styles from './RadioGroupBase.module.css';\nimport { RadioGroupBaseProps } from './types';\n\nexport default function RadioGroupBase<Option = undefined>({\n  options,\n  radioProps,\n  layout = 'horizontal',\n  classNameRoot,\n  renderRadio,\n  onChange,\n  value,\n  children,\n  name,\n  id,\n}: PropsWithChildren<RadioGroupBaseProps<Option>>) {\n  const radioGroupBaseClassNames: string = clsx(\n    styles.radioGroupBaseRoot,\n    classNameRoot,\n    { [styles.horizontal]: layout === 'horizontal' },\n    { [styles.vertical]: layout === 'vertical' },\n  );\n  return (\n    <RadioGroupContext.Provider value={{ onChange, name, value }}>\n      <div className={radioGroupBaseClassNames} role=\"radiogroup\">\n        {children}\n        {options?.map((option: any, idx: number) =>\n          renderRadio({\n            ...option,\n            ...radioProps,\n            checked: option.checked || option.value == value,\n            onClick: (event: React.MouseEvent<HTMLElement>): void => {\n              event.stopPropagation();\n              option.onClick && option.onClick();\n            },\n            key: idx,\n            id: id,\n          }),\n        )}\n      </div>\n    </RadioGroupContext.Provider>\n  );\n}\n","import getCookieValueByName from '../getCookieByName';\n\nexport const ANALYTICS_CONSENT_COOKIE = 'consent_analytics';\n\n/**\n * True when the visitor blocked the Analytics category in the Usercentrics banner.\n * GTM writes `consent_analytics=denied` in that case (CDEV-10403).\n *\n * @param cookieString - `document.cookie` on the client, or the request Cookie header on the server\n */\nconst isAnalyticsConsentDenied = (cookieString = ''): boolean =>\n  getCookieValueByName(cookieString, ANALYTICS_CONSENT_COOKIE) === 'denied';\n\nexport default isAnalyticsConsentDenied;\n","import { RecommendedProductItem, TopSellingProduct } from '../../types';\n\nclass TopSellingDTO {\n  private recommendedProductItem;\n\n  constructor(recommendedProductItem: RecommendedProductItem) {\n    this.recommendedProductItem = recommendedProductItem;\n  }\n\n  public get getProduct(): TopSellingProduct {\n    return {\n      clickTrackingURL: this.recommendedProductItem.clickTrackingURL,\n      imageId: this.recommendedProductItem.imageURL,\n      linkId: this.recommendedProductItem.productURL,\n      name: this.recommendedProductItem.name,\n      numReviews: this.recommendedProductItem.numReviews,\n      rating: this.recommendedProductItem.rating,\n      priceCents: this.recommendedProductItem.priceCents,\n      salePriceCents: this.recommendedProductItem.salePriceCents || -1,\n      new: this.recommendedProductItem.attributes?.New ? this.recommendedProductItem.attributes.New[0] === 'true' : false,\n      newPriceMax: this.recommendedProductItem.attributes?.NewPriceMax\n        ? this.recommendedProductItem.attributes.NewPriceMax[0]\n        : undefined,\n      newPriceMin: this.recommendedProductItem.attributes?.NewPriceMin\n        ? this.recommendedProductItem.attributes.NewPriceMin[0]\n        : undefined,\n      newSalePriceMax: this.recommendedProductItem.attributes?.NewSalePriceMax\n        ? this.recommendedProductItem.attributes.NewSalePriceMax[0]\n        : undefined,\n      newSalePriceMin: this.recommendedProductItem.attributes?.NewSalePriceMin\n        ? this.recommendedProductItem.attributes.NewSalePriceMin[0]\n        : undefined,\n      usedPriceCents: this.recommendedProductItem.attributes?.UsedAnyPriceMin\n        ? this.recommendedProductItem.attributes.UsedAnyPriceMin[0]\n        : undefined,\n      pricePerUnit: this.recommendedProductItem.attributes?.PricePerUnit\n        ? this.recommendedProductItem.attributes.PricePerUnit[0]\n        : undefined,\n      pricePerUnitLabel: this.recommendedProductItem.attributes?.PricePerUnitLabel\n        ? this.recommendedProductItem.attributes.PricePerUnitLabel[0]\n        : undefined,\n      productConditionMax: this.recommendedProductItem.attributes?.ProductConditionMax\n        ? this.recommendedProductItem.attributes.ProductConditionMax[0]\n        : undefined,\n    } as TopSellingProduct;\n  }\n}\n\nexport default TopSellingDTO;\n","import currencyFormatting from '../currencyFormatting';\nimport { getPriceRange } from '../moneyUtils';\n\nimport { UseCalcItemPriceProps, UseCalcItemPriceResult } from './types';\n\n/**\n *\n * getSalesPrice is responsible for showing price or price range if have or don't have sales (red color price typically)\n * getOriginalPrice is responsible for show \"old price\" or refurb price\n *\n */\nconst useCalcItemPrice = ({\n  priceCents,\n  salePriceCents,\n  newPriceMin,\n  newPriceMax,\n  newSalePriceMin,\n  newSalePriceMax,\n  productConditionMax,\n  UsedAnyPriceMin,\n}: UseCalcItemPriceProps): UseCalcItemPriceResult => {\n  const getSalesPrice = () => {\n    const salePriceRange = getPriceRange(newSalePriceMin, newSalePriceMax);\n    const originalpriceRange = getPriceRange(newPriceMin, newPriceMax);\n    if (UsedAnyPriceMin) {\n      if (productConditionMax) {\n        // if refurbished\n        // if (newPriceMin && newSalePriceMin && newPriceMin < newSalePriceMin) {\n        //   // 2 SubModels and one is Refurb.\n        //   return getPriceRange(newPriceMin, newSalePriceMin);\n        // }\n        // range price - $400-$500\n        if (salePriceRange) {\n          return salePriceRange;\n        }\n        // price - $400\n        if (newSalePriceMin) {\n          return `$${newSalePriceMin}`;\n        }\n        if (originalpriceRange) {\n          // range price if refurbished - $400-$500\n          return originalpriceRange;\n        }\n        if (newPriceMin) {\n          return currencyFormatting(Number(newPriceMin));\n        }\n        // single price if refurbished\n        // unexpected case pls contact java developer\n        return currencyFormatting(priceCents / 100);\n      }\n      if (originalpriceRange) {\n        // range price - $400-$500\n        return originalpriceRange;\n      }\n\n      // corner case for refurbished and no sales\n      // ex: Stoeger RX20 S3 Breakbarrel Air Rifle\n      if (priceCents && salePriceCents < 0) {\n        return currencyFormatting(priceCents / 100);\n      }\n      // just price - $500\n      return currencyFormatting(salePriceCents / 100);\n    }\n    if (salePriceRange) {\n      // range price if sales - $300-$350\n      return salePriceRange;\n    } else if (salePriceCents > 0) {\n      // just price if sales - $500\n      return currencyFormatting(salePriceCents / 100);\n    } else if (priceCents > 0) {\n      if (originalpriceRange) {\n        // if no sales and is range\n        return originalpriceRange;\n      }\n      // just a single prcie without sales - $500\n      return currencyFormatting(priceCents / 100);\n    } else {\n      return null;\n    }\n  };\n\n  const getOriginalPrice = () => {\n    if (salePriceCents < 0) {\n      return null;\n    }\n    const priceRange = getPriceRange(newPriceMin, newPriceMax);\n    if (priceRange) {\n      // if we have sales and this is a price range - $400-$500\n      return priceRange;\n    } else if (priceCents > 0) {\n      // if we have sales and this is a single price - $400\n      return currencyFormatting(priceCents / 100);\n    } else {\n      return null;\n    }\n  };\n\n  const getProductConditionalPrice = () => {\n    // price for product conditional max\n    // ex: Refurb. $300\n    if (UsedAnyPriceMin) {\n      return currencyFormatting(Number(UsedAnyPriceMin));\n    }\n    return currencyFormatting(salePriceCents / 100);\n  };\n\n  return {\n    isRefurbished: Boolean(productConditionMax && UsedAnyPriceMin),\n    getSalesPrice,\n    getOriginalPrice,\n    getProductConditionalPrice,\n  };\n};\n\nexport default useCalcItemPrice;\n","import useCalcItemPrice from '@package/utils/src/useCalcItemPrice';\nimport { Fragment } from 'react';\nimport config from 'config-base';\nimport styles from './SearchResultsPrice.module.css';\nimport { SearchResultsPriceProps } from './types';\nimport clsx from 'clsx';\n\nconst SearchResultsPrice = ({\n  priceCents,\n  pricePerUnit,\n  pricePerUnitLabel,\n  ProductConditionMax,\n  salePriceCents,\n  NewPriceMax,\n  NewPriceMin,\n  NewSalePriceMax,\n  NewSalePriceMin,\n  UsedAnyPriceMin,\n}: SearchResultsPriceProps) => {\n  const { getSalesPrice, getOriginalPrice, getProductConditionalPrice, isRefurbished } = useCalcItemPrice({\n    newPriceMin: NewPriceMin || null,\n    newPriceMax: NewPriceMax || null,\n    newSalePriceMin: NewSalePriceMin || null,\n    newSalePriceMax: NewSalePriceMax || null,\n    productConditionMax: ProductConditionMax || null,\n    priceCents,\n    salePriceCents,\n    UsedAnyPriceMin,\n  });\n\n  const renderWithPricePerUnit = () =>\n    pricePerUnit && <span className={styles.rdLabel}>{` ${pricePerUnit} ${pricePerUnitLabel!}`}</span>;\n\n  const renderSalesPrice = (salesPrice: string | null | undefined) => {\n    return (\n      salePriceCents && (\n        <p\n          className={clsx(styles.searchItemPrice, {\n            [styles.searchItemPriceAgd]: config.brandCode !== '0',\n            [styles.searchItemPricePyr]: config.brandCode === '0',\n          })}\n        >\n          {salesPrice}\n          {renderWithPricePerUnit()}\n        </p>\n      )\n    );\n  };\n\n  const renderOriginalPrice = (\n    originalPrice: string | null | undefined,\n    productConditionPrice: string | null | undefined,\n  ) => {\n    if (isRefurbished && productConditionPrice) {\n      return (\n        <span\n          className={clsx(styles.rdLabel, styles.originalPrice, styles.refurbPrice, {\n            [styles.refurbPriceAgd]: config.brandCode !== '0',\n            [styles.originalPricePyr]: config.brandCode === '0',\n          })}\n        >{`${ProductConditionMax!}. ${productConditionPrice}`}</span>\n      );\n    } else {\n      return (\n        <>\n          {originalPrice ? (\n            <span\n              className={clsx(styles.rdLabel, styles.originalPrice, styles.refurbPrice, {\n                [styles.refurbPriceAgd]: config.brandCode !== '0',\n                [styles.originalPricePyr]: config.brandCode === '0',\n              })}\n            >\n              <span>{originalPrice}</span>\n            </span>\n          ) : null}\n        </>\n      );\n    }\n  };\n\n  const renderSearchResultsPrice = () => {\n    const salesPrice = getSalesPrice();\n    const originalPrice = getOriginalPrice();\n    const productConditionPrice = getProductConditionalPrice();\n    return (\n      <Fragment>\n        {renderSalesPrice(salesPrice)}\n        {renderOriginalPrice(originalPrice, productConditionPrice)}\n      </Fragment>\n    );\n  };\n\n  return <>{renderSearchResultsPrice()}</>;\n};\n\nexport default SearchResultsPrice;\n","import { calcAGDrating } from '@package/utils/src/rating';\nimport clsx from 'clsx';\n\nimport Image from 'next/image';\nimport Link from '../../Link';\nimport Rating from '../../Rating';\nimport config from 'config-base';\nimport styles from './TopSellingCard.module.css';\nimport { TopSellingCardProps } from './types';\nimport SearchResultsPrice from './components/SearchResultsPrice';\n\nconst TopSellingCard = ({\n  searchItem,\n  className,\n  idx,\n  imageClasses,\n  priorityIndex = 2,\n  onClick,\n  onContextMenu,\n}: TopSellingCardProps) => {\n  const {\n    imageId,\n    linkId,\n    name,\n    newPriceMin,\n    newPriceMax,\n    newSalePriceMin,\n    newSalePriceMax,\n    numReviews,\n    priceCents,\n    pricePerUnit,\n    pricePerUnitLabel,\n    productConditionMax,\n    rating,\n    salePriceCents,\n  } = searchItem;\n  return (\n    <div\n      className={clsx(\n        styles.searchItemContainer,\n        {\n          [styles.searchItemContainerAGD]: config.brandCode !== '0',\n          [styles.searchItemContainerPYR]: config.brandCode === '0',\n        },\n        className,\n      )}\n    >\n      <Link\n        data-testid={'top-selling-card-link-card'}\n        href={linkId}\n        classes={clsx(styles.linkCard, {\n          [styles.linkCardAGD]: config.brandCode !== '0',\n        })}\n        onClick={(ev: any) => {\n          if (onClick) {\n            ev.preventDefault();\n            onClick(searchItem?.clickTrackingURL, linkId);\n          }\n        }}\n        onContextMenu={() => {\n          if (onContextMenu) {\n            onContextMenu(searchItem?.clickTrackingURL);\n          }\n        }}\n        showCursorPointer\n      >\n        <div className={styles.searchItemImageContainer}>\n          <Image\n            priority={priorityIndex === -1 ? false : idx <= priorityIndex}\n            src={imageId}\n            width={400}\n            height={300}\n            alt={name}\n            className={clsx(styles.searchItemImage, imageClasses)}\n          />\n          {searchItem?.new && (\n            <span className={styles.newImage}>\n              <Image src={'/marketplace-static/images/new_icon.png'} layout=\"fill\" alt=\"new\" />\n            </span>\n          )}\n          {salePriceCents > 0 && (\n            <span className={styles.saleImage}>\n              <Image src={'/marketplace-static/images/sale.svg'} layout=\"fill\" alt=\"sale\" />\n            </span>\n          )}\n        </div>\n        <Rating\n          reviewers={numReviews || 0}\n          defaultValue={calcAGDrating(rating) || 0}\n          ratingContainerClasses={clsx(styles.rating, {\n            [styles.ratingAGD]: config.brandCode !== '0',\n          })}\n          ratingTextClasses={clsx(styles.ratingText, {\n            [styles.ratingTextAGD]: config.brandCode !== '0',\n          })}\n          hideRating={true}\n        />\n        <p className={clsx(styles.searchItemName, styles.nameClamp)}>{name}</p>\n        <SearchResultsPrice\n          pricePerUnit={pricePerUnit as string | undefined}\n          priceCents={priceCents}\n          salePriceCents={salePriceCents}\n          pricePerUnitLabel={pricePerUnitLabel as string | undefined}\n          NewPriceMax={newPriceMax as string | undefined}\n          NewPriceMin={newPriceMin as string | undefined}\n          NewSalePriceMax={newSalePriceMax as string | undefined}\n          NewSalePriceMin={newSalePriceMin as string | undefined}\n          ProductConditionMax={productConditionMax as string | undefined}\n        />\n      </Link>\n    </div>\n  );\n};\n\nexport default TopSellingCard;\n","import { PopularProductCarouselProps } from './types';\n\nimport styles from './RecommendedProductCarousel.module.css';\nimport clsx from 'clsx';\nimport { clickTrackingURL, RecommendedProductItem } from '@package/services/src/Algonomy/types';\nimport useMediaQuery from '@package/hooks/src/useMediaQuery';\nimport isAnalyticsConsentDenied from '@package/utils/src/isAnalyticsConsentDenied';\nimport TopSellingDTO from '@package/services/src/Algonomy/DTO/TopSellingDTO';\nimport TopSellingCard from '../Cards/TopSellingCard';\nimport ResponsiveCarousel from '../Carousel/ResponsiveCarousel';\n\nconst RecommendedProductCarousel = ({ placement, brandCode }: PopularProductCarouselProps) => {\n  const { strategyMessage, recommendedProducts } = placement;\n  const mobile: boolean = useMediaQuery('(max-width:1279px)');\n  // Skips the beacon when the url is missing (fetch('') would GET the current page)\n  // or when the visitor denied Analytics consent (consent_analytics=denied).\n  const sendClickTracking = (clickUrl: clickTrackingURL): Promise<unknown> => {\n    if (!clickUrl || isAnalyticsConsentDenied(document.cookie)) {\n      return Promise.resolve();\n    }\n    return fetch(clickUrl).catch((error) => {\n      console.log('can not send tracking url data to algonomy from algonomy carousel', error, clickUrl);\n    });\n  };\n\n  const handleSelectCard = (clickUrl: clickTrackingURL, linkUrl: string) => {\n    void sendClickTracking(clickUrl).finally(() => {\n      window.location.href = linkUrl;\n    });\n  };\n\n  const handleRightClickCard = (clickUrl: clickTrackingURL) => {\n    void sendClickTracking(clickUrl);\n  };\n  return (\n    <div className={clsx(styles.topSellings, brandCode === '2' && styles.topSellingsAGD)}>\n      <p className={clsx(styles.trending, brandCode === '2' && styles.trendingAGD)}>{strategyMessage}</p>\n      <div\n        className={clsx(\n          styles.topSellingsCarousel,\n          {\n            'bg-secondary-second': brandCode === '0',\n          },\n          {\n            'bg-white': brandCode !== '0',\n          },\n        )}\n      >\n        <ResponsiveCarousel<RecommendedProductItem>\n          slideData={recommendedProducts}\n          buttonsAbsolute\n          hideDotButtons={!mobile}\n          visibleSlidesQuery={{\n            xxl: 5,\n            xl: 4,\n            lg: 3,\n            md: 3,\n            sm: 2,\n            xs: 2,\n          }}\n          renderSlide={(popular: RecommendedProductItem, idx: number) => {\n            const topSellingProduct = new TopSellingDTO(popular);\n            return (\n              <TopSellingCard\n                searchItem={topSellingProduct.getProduct}\n                idx={idx}\n                imageClasses={clsx(\n                  styles.cartEmptyStateCardImage,\n                  brandCode === '2' && styles.cartEmptyStateCardImageAGD,\n                )}\n                onClick={handleSelectCard}\n                onContextMenu={handleRightClickCard}\n              />\n            );\n          }}\n          carouselPadding={styles.cartEmptyStatePadding}\n          carouselHeight={styles.cartEmptyStateHeight}\n          slideContentClassName={styles.slideContent}\n          dotClassName={styles.dots}\n          dragStep={mobile ? 2 : 5}\n        />\n      </div>\n    </div>\n  );\n};\n\nexport default RecommendedProductCarousel;\n","/* eslint-disable @typescript-eslint/no-unnecessary-condition */\nimport { useState, useEffect, useCallback } from 'react';\n\nimport { UseScrollState } from './types';\n\nconst useScroll = (): UseScrollState => {\n  const [scrollState, setScrollState] = useState<UseScrollState>({ x: 0, y: 0 });\n\n  const handleScroll = useCallback(() => {\n    if (window) {\n      setScrollState((prevState) => ({\n        ...prevState,\n        y: window.scrollY,\n        x: window.scrollX,\n      }));\n    }\n  }, [scrollState]);\n\n  useEffect(() => {\n    window.addEventListener('scroll', handleScroll, { passive: true });\n    return () => {\n      window.removeEventListener('scroll', handleScroll, {\n        passive: true,\n      } as unknown as EventListenerOptions);\n    };\n  }, [scrollState]);\n\n  return scrollState;\n};\n\nexport default useScroll;\n","import { useEffect, useRef, useState } from 'react'\n\nconst useThrottle = <T>(value: T, interval = 500): T => {\n  const [throttledValue, setThrottledValue] = useState<T>(value)\n  const lastExecuted = useRef<number>(Date.now())\n\n  useEffect(() => {\n    if (Date.now() >= lastExecuted.current + interval) {\n      lastExecuted.current = Date.now()\n      setThrottledValue(value)\n    } else {\n      const timerId = setTimeout(() => {\n        lastExecuted.current = Date.now()\n        setThrottledValue(value)\n      }, interval)\n\n      return () => clearTimeout(timerId)\n    }\n  }, [value, interval])\n\n  return throttledValue\n}\n\nexport default useThrottle;\n","import useScroll from '@package/hooks/src/useScroll';\nimport clsx from 'clsx';\nimport { useCallback, useEffect, useRef, useState } from 'react';\n\nimport styles from './ScrollTopButton.module.css';\nimport useThrottle from '@package/hooks/src/useThrottle';\n\nconst ScrollTopButton = () => {\n  const { y } = useScroll();\n\n  const [snippetLoaded, setSnippetLoaded] = useState<boolean>(false);\n  const snippetState = useRef<boolean>(false);\n  const throttledValue = useThrottle(y);\n\n\n  const handleScrollTop = useCallback(() => {\n    window.scrollTo({ top: 0, behavior: 'smooth' });\n  }, []);\n\n  useEffect(() => {\n    snippetState.current = !!document.getElementById('needle_pageLinc');\n    if(snippetState.current !== snippetLoaded){\n      setSnippetLoaded(snippetState.current);\n    }\n  } , [throttledValue])\n\n  return (\n    <aside\n      id=\"scroll-to-top-btn\"\n      onClick={handleScrollTop}\n      className={clsx(styles.scrollTopButton, {\n        [styles.scrollTopButton_active]: y > 0,\n        [styles.withSnippet]: snippetLoaded,\n      })}\n    >\n      <div className={styles.scrollTopButton__btn} aria-label=\"backToTop\">\n        {y > 0 && <div className={styles.arrowUp}></div>}\n      </div>\n    </aside>\n  );\n};\n\nexport default ScrollTopButton;\n","export default function getCookieValueByName(cookies: string, name: string) {\n  const match = cookies.match(new RegExp(`(^| )${name}=([^;]+)`));\n  return match ? match[2] : undefined;\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"cartEmpty\":\"CartEmptyState_cartEmpty__2qFq1\",\"emptyTitle\":\"CartEmptyState_emptyTitle__rjo3f\",\"cartImage\":\"CartEmptyState_cartImage__e0Qnr\",\"emptyDescription\":\"CartEmptyState_emptyDescription__lqbk8\",\"emptyLink\":\"CartEmptyState_emptyLink__h7ZAE\",\"emptyLinkAGD\":\"CartEmptyState_emptyLinkAGD__TDwwz\",\"topSellings\":\"CartEmptyState_topSellings__sPyNY\",\"topSellingsAGD\":\"CartEmptyState_topSellingsAGD__g8eZi\",\"topSellingsCarousel\":\"CartEmptyState_topSellingsCarousel__ysIbF\",\"trending\":\"CartEmptyState_trending__nWuMt\",\"trendingAGD\":\"CartEmptyState_trendingAGD__IPY_3\",\"slideContent\":\"CartEmptyState_slideContent__TxMow\",\"dots\":\"CartEmptyState_dots__g7dqp\",\"cartEmptyStatePadding\":\"CartEmptyState_cartEmptyStatePadding__x9mXD\",\"cartEmptyStateHeight\":\"CartEmptyState_cartEmptyStateHeight__OT84X\",\"cartEmptyStateCardImage\":\"CartEmptyState_cartEmptyStateCardImage__YzZTv\",\"cartEmptyStateCardImageAGD\":\"CartEmptyState_cartEmptyStateCardImageAGD__vPu_G\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"addonItem\":\"Addon_addonItem__I1_Jd\",\"addonItemAGD\":\"Addon_addonItemAGD__2Ei0u\",\"addonTitle\":\"Addon_addonTitle__SohRr\",\"addonTitleAGD\":\"Addon_addonTitleAGD__LlDJm\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"addonButton\":\"AddonButton_addonButton__Ilzc0\",\"addonButtonAGD\":\"AddonButton_addonButtonAGD__omw4k\",\"addonButtonAdding\":\"AddonButton_addonButtonAdding__3uIeB\",\"addonButtonAdded\":\"AddonButton_addonButtonAdded__OCxeA\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"card\":\"AddonCard_card__FMLt6\",\"cardAGD\":\"AddonCard_cardAGD__t7P9Z\",\"cardMedia\":\"AddonCard_cardMedia__byIg4\",\"cardContent\":\"AddonCard_cardContent__IYvTo\",\"ratingContainer\":\"AddonCard_ratingContainer__dBxS9\",\"cardPrice\":\"AddonCard_cardPrice__uQTxG\",\"cardPriceText\":\"AddonCard_cardPriceText__LmLCE\",\"oldPrice\":\"AddonCard_oldPrice__vgPsk\",\"discountOff\":\"AddonCard_discountOff__6EHDo\",\"cartName\":\"AddonCard_cartName__z8O7M\",\"cartNameClamp\":\"AddonCard_cartNameClamp__L57_L\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"addon\":\"CartProductAddons_addon__QGD66\",\"addonAGD\":\"CartProductAddons_addonAGD__HBV6z\",\"accordironAddonsHeader\":\"CartProductAddons_accordironAddonsHeader__ij8gK\",\"accordionAddonsTitle\":\"CartProductAddons_accordionAddonsTitle____1mG\",\"accordionIcon\":\"CartProductAddons_accordionIcon__Ie0SL\",\"accordionContent\":\"CartProductAddons_accordionContent__MfVQu\",\"checkIcon\":\"CartProductAddons_checkIcon__ATSxB\",\"cardAddedSuccess\":\"CartProductAddons_cardAddedSuccess__yhHsI\",\"addonsList\":\"CartProductAddons_addonsList__Mkdcb\",\"service\":\"CartProductAddons_service__V43ap\",\"serviceModal\":\"CartProductAddons_serviceModal__IwkVr\",\"suggestedProductsList\":\"CartProductAddons_suggestedProductsList__jU_xI\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"subOrderContainer\":\"CartProductList_subOrderContainer__D3_EJ\",\"linkContainer\":\"CartProductList_linkContainer__zI4AM\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"productRow\":\"CartProductRow_productRow__6B7To\",\"productContainer\":\"CartProductRow_productContainer__zEyV0\",\"productPriceRow\":\"CartProductRow_productPriceRow__e8TY8\",\"producActionContainer\":\"CartProductRow_producActionContainer__mMgFK\",\"quantityContainer\":\"CartProductRow_quantityContainer__TUnBe\",\"price\":\"CartProductRow_price___J41S\",\"freePrice\":\"CartProductRow_freePrice__iq_Ry\",\"productCard\":\"CartProductRow_productCard__hGLSS\",\"orderDetailsCard\":\"CartProductRow_orderDetailsCard__Tdb6x\",\"productFee\":\"CartProductRow_productFee__2_bIV\",\"vendorDescription\":\"CartProductRow_vendorDescription__HvfEe\",\"vendorName\":\"CartProductRow_vendorName__mnd8H\",\"vendorDetails\":\"CartProductRow_vendorDetails__YSuod\",\"boxView\":\"CartProductRow_boxView__xgZz9\",\"additionalFeePrice\":\"CartProductRow_additionalFeePrice__hcrD8\",\"additionalFeePriceContainer\":\"CartProductRow_additionalFeePriceContainer__D9JrL\",\"productFeeAdditional\":\"CartProductRow_productFeeAdditional__gvK4I\",\"editButtons\":\"CartProductRow_editButtons__pTCM_\",\"wishListButton\":\"CartProductRow_wishListButton__NsACI\",\"buttonDivider\":\"CartProductRow_buttonDivider__z74IX\",\"removeButtonHidden\":\"CartProductRow_removeButtonHidden__K2eNb\",\"orderDetails\":\"CartProductRow_orderDetails__QVF92\",\"vendorDetailsReview\":\"CartProductRow_vendorDetailsReview__dCpuJ\",\"reviewOrderDesktopView\":\"CartProductRow_reviewOrderDesktopView__jQExZ\",\"mobileView\":\"CartProductRow_mobileView__RK_MP\",\"desktopView\":\"CartProductRow_desktopView__JV_Sv\",\"freeAmmoRow\":\"CartProductRow_freeAmmoRow__g0oIO\",\"freeAmmoBanner\":\"CartProductRow_freeAmmoBanner__xvcmY\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"serviceModal\":\"Service_serviceModal__H1VFV\",\"radioIcon\":\"Service_radioIcon__wKK6_\",\"infoIcon\":\"Service_infoIcon__Avj0S\",\"label\":\"Service_label__4KIC2\",\"contentContainer\":\"Service_contentContainer__ctv0_\",\"serviceAddon\":\"Service_serviceAddon__PzniF\",\"serviceAddonAGD\":\"Service_serviceAddonAGD__dy_6_\",\"accordionContent\":\"Service_accordionContent__Bp4dv\",\"serviceRadioSpinner\":\"Service_serviceRadioSpinner__s2TiZ\",\"serviceRadioIcon\":\"Service_serviceRadioIcon__Sk4Kd\",\"serviceRadioDialogHeader\":\"Service_serviceRadioDialogHeader__Nqf0A\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"checkboxController\":\"ProductServiceCheckbox_checkboxController__hL8Bg\",\"checkboxContainer\":\"ProductServiceCheckbox_checkboxContainer__V6FDV\",\"checkboxGroupContainer\":\"ProductServiceCheckbox_checkboxGroupContainer__F73Yr\",\"container\":\"ProductServiceCheckbox_container__oalgD\",\"serviceRadioSpinner\":\"ProductServiceCheckbox_serviceRadioSpinner__jj_f_\",\"opportunityDesc\":\"ProductServiceCheckbox_opportunityDesc__8zjkX\",\"addToOrder\":\"ProductServiceCheckbox_addToOrder__45_kf\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"contentContainer\":\"ProductServiceContent_contentContainer___iuDi\",\"title\":\"ProductServiceContent_title__6tWSI\",\"servicesContainer\":\"ProductServiceContent_servicesContainer__5guSh\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"radioGroup\":\"ProductServiceRadioGroup_radioGroup__emToh\",\"radio\":\"ProductServiceRadioGroup_radio__3F3mQ\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"infoIcon\":\"ServiceIconModal_infoIcon__mTiAf\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"productImage\":\"ProductCardImage_productImage__26c4l\",\"imageWrapper\":\"ProductCardImage_imageWrapper__85Tvv\",\"productImageReview\":\"ProductCardImage_productImageReview__2Ulp_\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"statusContainer\":\"ProductStatus_statusContainer__rueq7\",\"productStatus\":\"ProductStatus_productStatus__ShfSZ\",\"productStatusBackordered\":\"ProductStatus_productStatusBackordered__9X116\",\"productCaption\":\"ProductStatus_productCaption__dYAfk\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"twoSideLayout\":\"TwoSideLayout_twoSideLayout__8jkl6\",\"article\":\"TwoSideLayout_article__beadT\",\"aside\":\"TwoSideLayout_aside__4BDpQ\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"Alert\":\"Alert_Alert__AnZby\",\"Alert_animation\":\"Alert_Alert_animation__p_d3X\",\"slideUp\":\"Alert_slideUp__qB_LI\",\"AlertCenter\":\"Alert_AlertCenter__ay7w2\",\"AlertLeft\":\"Alert_AlertLeft__RF8OH\",\"AlertRight\":\"Alert_AlertRight__NY_OF\",\"AlertTop\":\"Alert_AlertTop__3Ywu8\",\"AlertBottom\":\"Alert_AlertBottom__IdFxm\",\"AlertToast\":\"Alert_AlertToast__MtHcX\",\"AlertToastFront\":\"Alert_AlertToastFront__NZle3\",\"AlertToastMid\":\"Alert_AlertToastMid__LiOPT\",\"AlertToastBack\":\"Alert_AlertToastBack__L1duJ\",\"AlertContent\":\"Alert_AlertContent__P8SBy\",\"AlertBottomMobile\":\"Alert_AlertBottomMobile__C6CSY\",\"AlertValuedCustomerPopup\":\"Alert_AlertValuedCustomerPopup__j5pkq\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"searchItemContainer\":\"TopSellingCard_searchItemContainer__h6eoJ\",\"searchItemContainerAGD\":\"TopSellingCard_searchItemContainerAGD__Q8icW\",\"searchItemName\":\"TopSellingCard_searchItemName__zxoRV\",\"saleImage\":\"TopSellingCard_saleImage__9QzSO\",\"newImage\":\"TopSellingCard_newImage__KRkhp\",\"searchItemImageContainer\":\"TopSellingCard_searchItemImageContainer__TxJ5h\",\"nameClamp\":\"TopSellingCard_nameClamp__7Ly12\",\"rating\":\"TopSellingCard_rating__slLi8\",\"ratingAGD\":\"TopSellingCard_ratingAGD__fDkzD\",\"ratingText\":\"TopSellingCard_ratingText__P4Anr\",\"ratingTextAGD\":\"TopSellingCard_ratingTextAGD__SaGgp\",\"linkCard\":\"TopSellingCard_linkCard__NZ_fo\",\"linkCardAGD\":\"TopSellingCard_linkCardAGD__RE34n\",\"searchItemContainerPYR\":\"TopSellingCard_searchItemContainerPYR__HuwL7\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"searchItemPrice\":\"SearchResultsPrice_searchItemPrice__TXrxO\",\"searchItemPriceAgd\":\"SearchResultsPrice_searchItemPriceAgd__XBNOG\",\"rdLabel\":\"SearchResultsPrice_rdLabel__H0fkb\",\"originalPrice\":\"SearchResultsPrice_originalPrice__67Kzd\",\"refurbPrice\":\"SearchResultsPrice_refurbPrice__yV8Ll\",\"refurbPriceAgd\":\"SearchResultsPrice_refurbPriceAgd___vm_r\",\"searchItemPricePyr\":\"SearchResultsPrice_searchItemPricePyr__49mST\",\"originalPricePyr\":\"SearchResultsPrice_originalPricePyr___kSQg\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"carousel\":\"Carousel_carousel__uDQw5\",\"carouselContent\":\"Carousel_carouselContent__7CXeY\",\"dots\":\"Carousel_dots__5QaQK\",\"dotsButton\":\"Carousel_dotsButton__Y1Jxm\",\"carouselButtons\":\"Carousel_carouselButtons__sMHvn\",\"carouselButtonLeft\":\"Carousel_carouselButtonLeft__FX9k1\",\"carouselButtonRight\":\"Carousel_carouselButtonRight__1B_fw\",\"carouselButtonLeftAGD\":\"Carousel_carouselButtonLeftAGD__uzbwX\",\"carouselButtonRightAGD\":\"Carousel_carouselButtonRightAGD__BXCwM\",\"backButton\":\"Carousel_backButton__Uphtd\",\"backButtonAGD\":\"Carousel_backButtonAGD__AdKgg\",\"nextButton\":\"Carousel_nextButton__njz_s\",\"nextButtonAGD\":\"Carousel_nextButtonAGD__RRoR1\",\"carouselButtonsAGD\":\"Carousel_carouselButtonsAGD__UVQCF\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"slider\":\"Slider_slider__ett1a\",\"slide\":\"Slider_slide__qJBa5\",\"carousel__inner-slide\":\"Slider_carousel__inner-slide__4cusl\",\"carousel\":\"Slider_carousel__bvs4D\",\"slideContent\":\"Slider_slideContent__xVsXp\",\"slideContentTransition\":\"Slider_slideContentTransition__EneP5\",\"mediumHeight\":\"Slider_mediumHeight__fB1_o\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"wrapper\":\"QuantityStepper_wrapper__ayn5f\",\"stepper\":\"QuantityStepper_stepper__QsrT8\",\"stepperDisabled\":\"QuantityStepper_stepperDisabled__BDqGj\",\"control\":\"QuantityStepper_control__BV_44\",\"input\":\"QuantityStepper_input__oawMV\",\"staticValue\":\"QuantityStepper_staticValue__vgC4M\",\"maxMessage\":\"QuantityStepper_maxMessage__B_mMb\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"radioGroupBaseRoot\":\"RadioGroupBase_radioGroupBaseRoot__o3wIW\",\"horizontal\":\"RadioGroupBase_horizontal__w_GXq\",\"vertical\":\"RadioGroupBase_vertical__P8x3x\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"topSellings\":\"RecommendedProductCarousel_topSellings__49OX8\",\"topSellingsAGD\":\"RecommendedProductCarousel_topSellingsAGD__zclFZ\",\"topSellingsCarousel\":\"RecommendedProductCarousel_topSellingsCarousel__RfY_p\",\"trending\":\"RecommendedProductCarousel_trending__Z_uod\",\"trendingAGD\":\"RecommendedProductCarousel_trendingAGD__MlHq5\",\"slideContent\":\"RecommendedProductCarousel_slideContent__soGKu\",\"dots\":\"RecommendedProductCarousel_dots__ED0wq\",\"cartEmptyStatePadding\":\"RecommendedProductCarousel_cartEmptyStatePadding__Rcwol\",\"cartEmptyStateHeight\":\"RecommendedProductCarousel_cartEmptyStateHeight__jLom1\",\"cartEmptyStateCardImage\":\"RecommendedProductCarousel_cartEmptyStateCardImage__v3viU\",\"cartEmptyStateCardImageAGD\":\"RecommendedProductCarousel_cartEmptyStateCardImageAGD__myC41\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"scrollTopButton\":\"ScrollTopButton_scrollTopButton__zluGr\",\"zoomOut\":\"ScrollTopButton_zoomOut__rbyV2\",\"scrollTopButton_active\":\"ScrollTopButton_scrollTopButton_active__OYLYP\",\"zoomIn\":\"ScrollTopButton_zoomIn___McJ6\",\"scrollTopButton__btn\":\"ScrollTopButton_scrollTopButton__btn__MokWV\",\"arrowUpIcon\":\"ScrollTopButton_arrowUpIcon__tDevS\",\"arrowUp\":\"ScrollTopButton_arrowUp__L2Pz0\",\"withSnippet\":\"ScrollTopButton_withSnippet__kkUUM\"};"],"names":["recommendedProductsService","_getRecommendedProductsCarouselsItems","RecommendedProductCarouselsApi","apiClient","_classCallCheck","_createClass","key","value","_asyncToGenerator","_regeneratorRuntime","_callee","placements","brandCode","urlParams","recommendedProductsCarouselData","json","_context","prev","next","URLSearchParams","get","concat","sent","abrupt","t0","stop","_x","_x2","apply","arguments","_components_CartEmptyState","_ref","_recommendedProducts$","placement","recommendedProducts","_useRecommendedProduc","isMobile","config","_useStrictQuery","useStrictQuery","getRecommendedProductsCarouselsItems","refetchOnWindowFocus","refetchOnMount","data","_jsxs","_Fragment","children","id","className","styles","_jsx","Image","layout","src","alt","Link","showCursorPointer","href","myAccountUrl","classes","clsx","underline","Underline","always","createAccountUrl","map","RecommendedProductCarousel","ButtonState","prepareInnerHtml","message","sanitizedStyle","messageStyle","DOMPurify","htmlSanitizeConfig","sanitizedMessage","finalMessage","startMessageRotation","wrapper","preparedHtml","duration","innerHTML","length","index","setInterval","createSocialProofsNodes","messages","nodes","timers","forEach","dynamicMessage","locationSelector","_dynamicMessage$displ","anchors","document","querySelectorAll","_unused","console","error","displayInformationList","strippedSelector","selector","replace","anchor","_anchor$closest","_displayInformation$m","_messageList$","productId","closest","displayInformation","find","info","messageList","filter","Boolean","createElement","messageStyleCode","join","timer","displayDuration","insertAdjacentElement","push","src_SocialProof","subProductSku","nodesRef","useRef","timersRef","useEffect","current","clearInterval","node","remove","dynamicSocialProofMessages","_createSocialProofsNo","SocialProofApiService","_getSocialProofMessages","request","options","response","Object","entries","_ref2","_slicedToArray","append","String","toString","signal","Result","name","socialProofApiService","cartService","CartApiService","cookieStorage","listrakAnalytic","cartInteractor","CartInteractor","ServiceIconModal","productSku","serviceId","addService","addCustomService","anchorContent","infoMode","CustomServiceAnchorDialog","open","width","height","onClick","e","stopPropagation","preventDefault","CartProductList_ProductServiceCheckbox","services","isProductRemovable","deleteService","addProductService","_useState","useState","loadServiceId","setLoadServiceId","handleAddCombinedProduct","service","selected","sku","_objectSpread","finish","canAddToCart","FormCheckbox","label","onChange","labelClick","checkboxControllerClassName","checkboxMainContainerClasses","checkboxContainer","ServiceInfoIconWithModal","Spinner","ProductService_ServiceRadio","selectedService","checked","stopLoading","_ref$hideInfoIcon","hideInfoIcon","rest","_objectWithoutProperties","_excluded","timeout","showLoading","clearTimeout","setTimeout","Radio","labelClassName","radioClassName","size","endAdornmentClassName","endAdornment","serviceRadioSpinner","textEndAdornmentClassName","textEndAdornment","CartProductList_ProductServiceRadioGroup","deleteProductService","selectedServices","setSelectedServices","disableServiceRadio","useCallback","handleAddProduct","price","effectivePrice","mappedOptions","useMemo","_onChange2","_addService2","_addCustomService3","isSelectedOption","some","newOptions","_onChange","_addService","_addCustomService2","canSelect","_callee2","_context2","optionProps","_callee3","_context3","_callee4","_context4","_callee5","_context5","_callee6","_context6","_callee7","_","_context7","_x3","RadioGroupBase","classNameRoot","renderRadio","_ref3","_createElement","ServiceRadio","disabled","CartProductList_ProductServiceContent","props","title","deleteSpecifiedService","servicesGroups","reduce","acc","combineAllowed","combined","nonCombined","ProductServiceRadioGroup","ProductServiceCheckbox","CartProductAddons_Addon","renderAddonItem","_defineProperty","ResponsiveCarousel","buttonsAbsolute","hideDotButtons","visibleSlidesQuery","xxl","xl","lg","md","sm","xs","slideData","carouselPadding","carouselHeight","renderSlide","CartProductAddons_AddonButton","_clsx","_ref$outOfStock","outOfStock","Add","buttonState","setButtonState","buttonLabel","Adding","Added","CheckIcon","handleClick","event","Button","endIcon","isDiscountPrice","CartProductAddons_AddonCard","onAddProduct","productUrl","smallImage","image","rating","Rating","hideRating","reviewers","reviewsCount","defaultValue","ratingContainerClasses","ratingContainer","currencyFormatting","discountPrice","discount","originalPrice","AddonButton","CartProductList_CartProductAddons","memo","productAddons","_productAddons$custom","_productAddons$servic","_productAddons$access","_productAddons$ammoLi","_productAddons$servic2","_productAddons$scopeA","productQuantity","relatedProductsAvailable","addProduct","PRODUCT_ADDONS_DATA_QUERY_KEY","getProductAddons","_yield$cartInteractor","isFetched","isProductAddons","customConfigurations","serviceContracts","accessoryList","ammoList","Accordion","headerClassName","titleClass","iconClassName","contentClassName","addon","ProductServiceContent","elements","serviceType","product","seq","configuration","idx","Addon","AddonCard","productSKU","scopeAccessories","scopeAccessorieItems","accesorieKeys","keys","Fragment","scopeTitle","_callee8","_context8","WHOLE_NUMBER_PATTERN","QuantityStepper","callback","delay","timerRef","pendingArgsRef","callbackRef","delayRef","cancel","flush","flushRef","_props$max","max","onDelete","_props$disabled","_props$syncing","syncing","_props$debounceMs","debounceMs","_props$id","draft","setDraft","commit","quantity","args","_toConsumableArray","assign","_len","_key","isPending","Number","atMax","canDelete","setQuantity","clamped","Math","min","handleDelete","handleDraftChange","test","parsed","handleBlur","variant","ariaLabel","viewBox","focusable","d","fill","showTrash","type","inputMode","autoComplete","target","onBlur","onKeyDown","onWheel","currentTarget","blur","y","x","role","_components_ProductCardImage","_product$mainSku","imgLayout","isReviewOrderPage","isShippingOptionPage","typeService","disableBackdropClick","mainSku","parseFreeAmmoQuantity","banner","_banner$match","remaining","match","isInteger","CartProductList_CartProductRow","_product$purchaseLimi","_product$brandItemCod","orderId","vendorName","dataTestId","regularCouponApplied","deleteProduct","updateProductQuantity","onApplyCouponToItem","onGetTermsContent","_props$readOnly","readOnly","queryClient","useQueryClient","isSyncing","setIsSyncing","_useState2","resetNonce","setResetNonce","inFlightRef","parkedWriteRef","removingRef","latestRef","runLatest","write","nonce","invalidateQueries","SHOPPING_CART_DATA_QUERY_KEY","handleUpdateProductQuantity","productItemId","newQuantity","handleRemoveProduct","isQuantityEditable","editable","freeAmmoQuantity","freeAmmoBanner","freeAmmoTargetQuantity","canAddFreeAmmo","purchaseLimit","DEFAULT_MAX_QUANTITY","dangerouslySetInnerHTML","__html","getBrandProductId","brandItemCode","ProductCardImage","ProductInfo","backordered","ProductStatus","dataId","stockDateMessage","stockDate","specialOrder","purchaseLimitMessage","ProductPurchaseLimitMessage","testid","superConfigurator","CustomProductDescription","description","productSpecifications","additionalProductFee","ProductFee","productFeeAdditional","couponAllowed","CouponApplyErrorMessage","autoClipCoupon","CouponApply","undefined","CartProductList_ProductService","ProductServiceType","ExpertSetup","SuggestedProducts","vendorId","minPrice","products","productsList","setProductsList","suggestedProducts","_useSuggestedProducts","excludeIds","SUGGESTED_PRODUCTS_DATA_QUERY_KEY","res","getSuggestedProducts","alertsService","AlertsApiService","CartProductList","params","subOrders","checkoutButtonAvailable","_useShoppingCart","useShoppingCart","disableGetShoppingCart","mainCart","applyCouponToItem","loading","success","cartIds","flatMap","order","_order$products","_useSocialProof","productIds","getSocialProofMessages","enabled","refetch","socialProofData","refetchSocialProof","processing","finished","processMessage","alertState","setAlertState","sellers","updateCartAlertMessage","termsContent","getTermsAlert","_order$products2","_ref4","_ref8","_ref9","_ref10","vendorOrderId","prevSellers","_ref11","_product$removeAvaila","_order$vendorShipping","_order$vendorShipping2","removeAvailable","CartProductRow","vendor","couponCode","isApply","_x4","_ref5","_ref6","ProductService","_order$products3","productToDelete","_x5","_x6","CartProductAddons","_x7","_callee9","_context9","_x8","_callee10","_context10","_x9","includes","style","display","vendorShipping","banners","amountLeft","_callee11","_context11","_x10","Alert","finishMessage","SocialProof","__webpack_exports__","Z","rightSide","leftSide","rightSideClass","leftSideClasses","_ref$vertical","vertical","_ref$horizontal","horizontal","_ref$duration","trigger","toasts","setToasts","popupIsVisible","setPopupIsVisible","toastsRef","toastIdRef","previousProcessing","previousFinished","previousTrigger","classNames","commitToasts","clearToastTimer","removeToast","toast","scheduleAutoHide","pushToast","stack","slice","isVisible","el","window","getComputedStyle","visibility","getBoundingClientRect","setPopupVisibility","getElementById","startedProcessing","stoppedProcessing","justFinished","status","processingToast","reverse","values","_clsx8","depth","Carousel_Slider","carouselContext","currentSlide","setCurrentSlide","visibleSlides","slideContentClassName","sliderWrapperClass","calcSlideContentHeight","calcCarouselPaddingBottom","slideClasses","slideContentClasses","useContext","CarouselContext","state","subscribe","unsubscribe","PecSlider","draggable","classNameTrayWrap","PrcSlide","Buttons_BackButton","hideButtons","arrowClassName","backArrowClasses","ButtonBack","Buttons_NextButton","total","step","nextArrowClasses","ButtonNext","ownKeys","r","t","getOwnPropertySymbols","o","getOwnPropertyDescriptor","enumerable","Carousel_Carousel","_props$hideDotButtons","_props$disableDrag","disableDrag","dotClassName","_props$dragStep","dragStep","carouselContentClassName","currentImageIndex","dotClasses","CarouselProvider","infinite","lockOnWindowScroll","naturalSlideWidth","naturalSlideHeight","totalSlides","dragEnabled","touchEnabled","BackButton","Slider","getOwnPropertyDescriptors","defineProperties","defineProperty","NextButton","DotGroup","showAsSelectedForCurrentSlideOnly","renderDots","dotPros","renderDot","ceil","slideId","slideIdx","Dot","slide","hideArrow","useMediaQuery","allElementVisible","Carousel","dynamic","Promise","all","__webpack_require__","then","bind","loadableGenerated","webpack","FORCE_BODY","ALLOWED_URI_REGEXP","ADD_ATTR","ADD_TAGS","radioProps","_ref$layout","radioGroupBaseClassNames","RadioGroupContext","Provider","option","src_isAnalyticsConsentDenied","cookieString","getCookieValueByName","TopSellingDTO","recommendedProductItem","_this$recommendedProd","_this$recommendedProd2","_this$recommendedProd3","_this$recommendedProd4","_this$recommendedProd5","_this$recommendedProd6","_this$recommendedProd7","_this$recommendedProd8","_this$recommendedProd9","clickTrackingURL","imageId","imageURL","linkId","productURL","numReviews","priceCents","salePriceCents","attributes","New","newPriceMax","NewPriceMax","newPriceMin","NewPriceMin","newSalePriceMax","NewSalePriceMax","newSalePriceMin","NewSalePriceMin","usedPriceCents","UsedAnyPriceMin","pricePerUnit","PricePerUnit","pricePerUnitLabel","PricePerUnitLabel","productConditionMax","ProductConditionMax","src_useCalcItemPrice","isRefurbished","getSalesPrice","salePriceRange","getPriceRange","originalpriceRange","getOriginalPrice","getProductConditionalPrice","components_SearchResultsPrice","_clsx2","_clsx3","salesPrice","productConditionPrice","_useCalcItemPrice","useCalcItemPrice","Cards_TopSellingCard","searchItem","imageClasses","_ref$priorityIndex","priorityIndex","onContextMenu","ev","priority","calcAGDrating","ratingTextClasses","SearchResultsPrice","src_RecommendedProductCarousel","strategyMessage","mobile","sendClickTracking","clickUrl","isAnalyticsConsentDenied","cookie","resolve","fetch","log","handleSelectCard","linkUrl","location","handleRightClickCard","popular","topSellingProduct","TopSellingCard","getProduct","src_useScroll","scrollState","setScrollState","handleScroll","prevState","scrollY","scrollX","addEventListener","passive","removeEventListener","src_useThrottle","interval","throttledValue","setThrottledValue","lastExecuted","Date","now","timerId","src_ScrollTopButton","_useScroll","snippetLoaded","setSnippetLoaded","snippetState","useThrottle","handleScrollTop","scrollTo","top","behavior","arrowUp","cookies","RegExp","module","exports"],"sourceRoot":""}