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kB,0rBCAlBD,EAAAC,OAAA,EAAkB,kiBCAlBD,EAAAC,OAAA,EAAkB,2KCAlBD,EAAAC,OAAA,EAAkB,krDCAlBD,EAAAC,OAAA,EAAkB,sxBCAlBD,EAAAC,OAAA,EAAkB,oqBCAlBD,EAAAC,OAAA,EAAkB,kECAlBD,EAAAC,OAAA,EAAkB,8ECAlBD,EAAAC,OAAA,EAAkB,kzBCAlBD,EAAAC,OAAA,EAAkB,sbCAlBD,EAAAC,OAAA,EAAkB,gkBCAlBD,EAAAC,OAAA,EAAkB,oKCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./src/__components/CouponApply/index.tsx","webpack://_N_E/../../components/src/Icon/IneligibleIcon.tsx","webpack://_N_E/./src/__components/CouponApplyErrorMessage/index.tsx","webpack://_N_E/../../packages/hooks/src/useServiceMissingItem/types.ts","webpack://_N_E/../../packages/hooks/src/useServiceMissingItem/index.ts","webpack://_N_E/../../components/src/Scripts/JQueryScript.tsx","webpack://_N_E/../../packages/utils/src/jqueryDetection/index.ts","webpack://_N_E/../../packages/hooks/src/useControlledAccordion/index.tsx","webpack://_N_E/./src/__components/CustomizableService/__components/CustomService/types.ts","webpack://_N_E/./src/__components/CustomizableService/__components/Accordion/index.tsx","webpack://_N_E/./src/__components/CustomizableService/__components/CustomServiceDescription/index.tsx","webpack://_N_E/../../packages/hooks/src/useCalcItemPrice/index.ts","webpack://_N_E/../../components/src/Cards/TopSellingAlgonomy/components/SearchResultsPrice/index.tsx","webpack://_N_E/../../components/src/Buttons/AddToCartButton/types.ts","webpack://_N_E/../../packages/utils/src/yieldToMain/index.ts","webpack://_N_E/../../components/src/Buttons/AddToCartButton/index.tsx","webpack://_N_E/../../components/src/Cards/TopSellingAlgonomy/index.tsx","webpack://_N_E/../../components/src/Carousel/EmblaCarousel/EmblaDotButtons/index.tsx","webpack://_N_E/../../components/src/Carousel/EmblaCarousel/EmblaArrowButtons/index.tsx","webpack://_N_E/../../components/src/Carousel/EmblaCarousel/hooks/usePrevNextButtons/index.ts","webpack://_N_E/../../components/src/Carousel/EmblaCarousel/hooks/useDotButton/index.ts","webpack://_N_E/../../components/src/Carousel/EmblaCarousel/index.tsx","webpack://_N_E/../../packages/utils/src/productStatus/index.ts","webpack://_N_E/./src/__components/CustomizableService/__components/ServiceCarousel/index.tsx","webpack://_N_E/../../components/src/Icon/SelectedServiceCartIcon.tsx","webpack://_N_E/./src/__components/CustomizableService/__components/CustomServiceLabel/index.tsx","webpack://_N_E/./src/__components/CustomizableService/__components/CustomServiceAccordionTitle/index.tsx","webpack://_N_E/./src/__components/CustomizableService/store/types.ts","webpack://_N_E/./src/__components/CustomizableService/store/utils.ts","webpack://_N_E/./src/__components/CustomizableService/__components/IncludedCard/index.tsx","webpack://_N_E/./src/__components/CustomizableService/__components/CustomServiceProductGroup/index.tsx","webpack://_N_E/../../components/src/Snackbar/index.tsx","webpack://_N_E/./src/__components/CustomizableService/__components/CustomServiceFooter/index.tsx","webpack://_N_E/../../packages/hooks/src/useClickOutside/index.ts","webpack://_N_E/../../packages/utils/src/addSpaceBeforeCaps/index.ts","webpack://_N_E/../../components/src/ComboBox/__components/ComboBoxMobile/index.tsx","webpack://_N_E/../../components/src/Icon/ComboBoxIcon.tsx","webpack://_N_E/../../components/src/Icon/SelectedComboBox/index.tsx","webpack://_N_E/../../components/src/ComboBox/types.ts","webpack://_N_E/../../components/src/ComboBox/index.tsx","webpack://_N_E/./src/__components/CustomizableService/__components/CustomServiceDescriptionInput/index.tsx","webpack://_N_E/./src/__components/CustomizableService/__components/CustomServiceQuestion/types.ts","webpack://_N_E/./src/__components/CustomizableService/__components/CustomServiceQuestion/index.tsx","webpack://_N_E/../../packages/utils/src/isEnglishAlphabet/index.ts","webpack://_N_E/./src/__components/CustomizableService/__components/TextArea/index.tsx","webpack://_N_E/./src/__components/CustomizableService/store/index.ts","webpack://_N_E/./src/__components/CustomizableService/store/actionTypes.ts","webpack://_N_E/./src/__components/CustomizableService/store/reducer.ts","webpack://_N_E/./src/__components/CustomizableService/__components/CustomService/index.tsx","webpack://_N_E/./src/__components/CustomizableService/index.tsx","webpack://_N_E/./src/__components/CustomServiceAnchorDialog/index.tsx","webpack://_N_E/./src/__components/ProductCard/__components/CustomProductDescription/index.tsx","webpack://_N_E/./src/__components/ProductCard/__components/ProductFee/index.tsx","webpack://_N_E/./src/layouts/_components/pyr/ProductCardName/index.tsx","webpack://_N_E/./src/__components/ProductCard/__components/ProductDescription/index.tsx","webpack://_N_E/./src/__components/ProductCard/__components/ProductInfo/index.tsx","webpack://_N_E/./src/__components/ProductCard/__components/ProductPurchaseLimitMessage/index.tsx","webpack://_N_E/../../components/src/AnchorDialog/index.tsx","webpack://_N_E/../../components/src/FormCheckbox/index.tsx","webpack://_N_E/../../components/src/FormHelperText/index.tsx","webpack://_N_E/../../components/src/Icon/ServiceStepIcon/index.tsx","webpack://_N_E/../../components/src/LoadMoreSpinner/index.tsx","webpack://_N_E/../../components/src/PageErrorMessage/index.tsx","webpack://_N_E/../../packages/utils/src/areEqualValues/index.ts","webpack://_N_E/../../components/src/Radio/index.tsx","webpack://_N_E/../../components/src/RadioGroupContext/index.tsx","webpack://_N_E/../../components/src/Rating/index.tsx","webpack://_N_E/../../packages/core/src/shoppingCart/types.ts","webpack://_N_E/../../packages/utils/src/moneyUtils/index.ts","webpack://_N_E/../../packages/utils/src/rating/index.ts","webpack://_N_E/./src/__components/CouponApply/CouponApply.module.css","webpack://_N_E/./src/__components/CouponApplyErrorMessage/CouponApplyErrorMessage.module.css","webpack://_N_E/./src/__components/CustomServiceAnchorDialog/CustomServiceAnchorDialog.module.css","webpack://_N_E/./src/__components/CustomizableService/__components/Accordion/Accordion.module.css","webpack://_N_E/./src/__components/CustomizableService/__components/CustomService/CustomizableService.module.css","webpack://_N_E/./src/__components/CustomizableService/__components/CustomServiceAccordionTitle/CustomServiceAccordionTitle.module.css","webpack://_N_E/./src/__components/CustomizableService/__components/CustomServiceDescription/CustomServiceDescription.module.css","webpack://_N_E/./src/__components/CustomizableService/__components/CustomServiceDescriptionInput/CustomServiceDescriptionInput.module.css","webpack://_N_E/./src/__components/CustomizableService/__components/CustomServiceFooter/CustomServiceFooter.module.css","webpack://_N_E/./src/__components/CustomizableService/__components/CustomServiceLabel/CustomServiceLabel.module.css","webpack://_N_E/./src/__components/CustomizableService/__components/CustomServiceProductGroup/CustomServiceProductGroup.module.css","webpack://_N_E/./src/__components/CustomizableService/__components/CustomServiceQuestion/CustomServiceQuestions.module.css","webpack://_N_E/./src/__components/CustomizableService/__components/IncludedCard/IncludedCard.module.css","webpack://_N_E/./src/__components/CustomizableService/__components/ServiceCarousel/ServiceCarousel.module.css","webpack://_N_E/./src/__components/CustomizableService/__components/TextArea/TextArea.module.css","webpack://_N_E/./src/__components/ProductCard/__components/ProductDescription/ProductDescription.module.css","webpack://_N_E/./src/__components/ProductCard/__components/ProductFee/ProductFee.module.css","webpack://_N_E/./src/__components/ProductCard/__components/ProductInfo/ProductInfo.module.css","webpack://_N_E/./src/__components/ProductCard/__components/ProductPurchaseLimitMessage/ProductPurchase.module.css","webpack://_N_E/./src/layouts/_components/pyr/ProductCardName/ProductCardName.module.css","webpack://_N_E/../../components/src/Buttons/AddToCartButton/AddToCartButton.module.css","webpack://_N_E/../../components/src/Cards/TopSellingAlgonomy/TopSellingCard.module.css","webpack://_N_E/../../components/src/Cards/TopSellingAlgonomy/components/SearchResultsPrice/SearchResultsPrice.module.css","webpack://_N_E/../../components/src/Carousel/EmblaCarousel/EmblaCarousel.module.css","webpack://_N_E/../../components/src/Carousel/EmblaCarousel/EmblaDotButtons/EmblaDotButtons.module.css","webpack://_N_E/../../components/src/ComboBox/ComboBox.module.css","webpack://_N_E/../../components/src/ComboBox/__components/ComboBoxMobile/ComboBoxMobile.module.css","webpack://_N_E/../../components/src/FormCheckbox/FormCheckbox.module.css","webpack://_N_E/../../components/src/FormHelperText/FormHelperText.module.css","webpack://_N_E/../../components/src/Icon/SelectedComboBox/SelectedComboBox.module.css","webpack://_N_E/../../components/src/Icon/ServiceStepIcon/ServiceStepIcon.module.css","webpack://_N_E/../../components/src/PageErrorMessage/PageErrorMessage.module.css","webpack://_N_E/../../components/src/Radio/Radio.module.css","webpack://_N_E/../../components/src/Rating/Rating.module.css","webpack://_N_E/../../components/src/Snackbar/Snackbar.module.css"],"sourcesContent":["import { MouseEventHandler, useEffect, useState } from 'react';\nimport FormCheckbox from '@base/components/src/FormCheckbox';\nimport AnchorDialog from '@base/components/src/AnchorDialog';\nimport CouponApplyErrorMessage from '../CouponApplyErrorMessage';\nimport { CouponApplyProps } from './types';\nimport clsx from 'clsx';\nimport styles from './CouponApply.module.css';\n\nconst CouponApply = ({ onApplyCouponToItem, productId, autoClipCoupon, onGetTermsContent }: CouponApplyProps) => {\n  const [applyCoupon, setApplyCoupon] = useState(autoClipCoupon.applied);\n  const [loading, setLoading] = useState(false);\n  const [termsContent, setTermsContent] = useState<string | null>(null);\n  const [applyCouponError, setApplyCouponError] = useState<string | null>(null);\n  const handleApply = async () => {\n    try {\n      if (onApplyCouponToItem) {\n        setLoading(true);\n        await onApplyCouponToItem(autoClipCoupon.couponId, !applyCoupon);\n        setApplyCoupon((prevApplyCoupon) => !prevApplyCoupon);\n      }\n    } catch (error) {\n      if (error instanceof Error) {\n        setApplyCouponError(error.message);\n      }\n    } finally {\n      setLoading(false);\n    }\n  };\n\n  useEffect(() => {\n    setApplyCoupon(autoClipCoupon.applied);\n  }, [autoClipCoupon.applied]);\n\n  return (\n    <>\n      {applyCouponError && <CouponApplyErrorMessage message={applyCouponError} />}\n      <div className={styles.couponApply}>\n        <div className={styles.couponApplyLabel}>Coupon</div>\n        <div className={styles.couponApplyInput}>\n          <FormCheckbox\n            checkboxControllerClassName={styles.couponApplyCheckbox}\n            checkboxLabelClassName={styles.couponApplyCheckboxLabel}\n            clickOnLabel={true}\n            clickOnLabelCallback={handleApply}\n            disabled={loading}\n            id={productId}\n            value={applyCoupon}\n            onChange={handleApply}\n            label={\n              <>\n                {applyCoupon ? (\n                  <span className={styles.couponAppliedMessage}>\n                    Saving <b>${autoClipCoupon.discountAmount.toFixed(2)}</b> coupon applied at checkout\n                  </span>\n                ) : (\n                  <>\n                    Coupon price <b>${autoClipCoupon.couponPrice.toFixed(2)}</b>\n                  </>\n                )}\n                &nbsp;\n              </>\n            }\n          />\n          {!applyCoupon && (\n            <AnchorDialog\n              iconClassName={styles.couponApplyTermsIcon}\n              contentClassName={styles.couponApplyTermsContent}\n              anchorContent={(open: MouseEventHandler<HTMLSpanElement>) => (\n                <span\n                  data-testid={`coupon-apply-dialog-trigger`}\n                  className={clsx(styles.couponApplyTerms, {\n                    [styles.couponApplyTermsDisabled]: loading,\n                  })}\n                  onClick={async (e) => {\n                    if (onGetTermsContent) {\n                      const terms = await onGetTermsContent();\n                      setTermsContent(terms);\n                      open(e);\n                    }\n                  }}\n                >\n                  Terms\n                </span>\n              )}\n            >\n              <div dangerouslySetInnerHTML={{ __html: termsContent ?? '' }} />\n            </AnchorDialog>\n          )}\n        </div>\n      </div>\n    </>\n  );\n};\n\nexport default CouponApply;\n","const IneligibleIcon = () => (\n  <svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n    <path\n      fillRule=\"evenodd\"\n      clipRule=\"evenodd\"\n      d=\"M6 12C7.59132 12 9.11741 11.3679 10.2426 10.2426C11.3679 9.11745 12 7.59127 12 6C12 4.40873 11.3679 2.88259 10.2426 1.75739C9.11745 0.632138 7.59127 0 6 0C4.40873 0 2.88259 0.632138 1.75739 1.75739C0.632138 2.88255 0 4.40873 0 6C0 7.59127 0.632138 9.11741 1.75739 10.2426C2.88255 11.3679 4.40873 12 6 12ZM6.12751 4.69458L3.71654 2.30206L2.30777 3.7217L4.71342 6.10893L2.30233 8.53862L3.72197 9.94739L6.12792 7.52288L8.4177 9.83163L9.83773 8.42326L7.54202 6.10853L9.8319 3.83746L8.42353 2.41742L6.12751 4.69458Z\"\n      fill=\"#B32722\"\n    />\n  </svg>\n);\n\nexport default IneligibleIcon;\n","import { FC } from 'react';\nimport IneligibleIcon from '@base/components/src/Icon/IneligibleIcon';\nimport styles from './CouponApplyErrorMessage.module.css';\nimport { CouponApplyErrorMessageProps } from './types';\n\nconst CouponApplyErrorMessage: FC<CouponApplyErrorMessageProps> = ({ message }) => (\n  <div className={styles.couponApplyError}>\n    <IneligibleIcon />\n    <span className={styles.couponApplyErrorMessage}>{message}</span>\n  </div>\n);\n\nexport default CouponApplyErrorMessage;\n","export const SERVICE_INFO_QUERY_KEY = 'service-info';\nexport const CUSTOMIZABLE_SERVICE_INFO_QUERY_KEY = 'customizable-service-info';\n","import CartApiService from '@package/core/src/shoppingCart/CartApiService';\nimport CartInteractor from '@package/core/src/shoppingCart/CartInteractor';\nimport { AddMissingItemRequest, GetServiceInfoRequest } from '@package/core/src/shoppingCart/interactorTypes';\n\nimport { apiClient, cookieStorage, listrakAnalytic } from '../services';\nimport { useQueryClient, useStrictMutation, useStrictQuery } from '../useCustomQuery';\nimport { SHOPPING_CART_DATA_QUERY_KEY } from '../useShoppingCart/types';\n\nimport { CUSTOMIZABLE_SERVICE_INFO_QUERY_KEY, SERVICE_INFO_QUERY_KEY } from './types';\n\nconst cartService = new CartApiService(apiClient, cookieStorage, listrakAnalytic);\nconst cartInteractor = new CartInteractor(cartService);\n\nexport default function useServiceMissingItem(request: GetServiceInfoRequest) {\n  const queryClient = useQueryClient();\n\n  const { data: serviceInfo, isFetching } = useStrictQuery(\n    [SERVICE_INFO_QUERY_KEY, request.serviceId, request.relatedProductSku],\n    async () => {\n      const res = await cartInteractor.getServiceInfo(request);\n\n      return res.data;\n    },\n    {\n      /**\n       * @deprecated\n       * this api request isn't used anymore\n       * use getCustomizedService instead\n       */\n      enabled: false,\n    },\n  );\n\n  const { data: customService, isFetching: isCustomizableServiceInfoFetching } = useStrictQuery(\n    [CUSTOMIZABLE_SERVICE_INFO_QUERY_KEY, request.serviceId, request.relatedProductSku],\n    async () => {\n      const res = await cartInteractor.getCustomizedService(request);\n\n      return res;\n    },\n    {\n      refetchOnMount: false,\n      refetchOnWindowFocus: false,\n      cacheTime: 0,\n      staleTime: 0,\n    },\n  );\n\n  const { mutateAsync: addMissingItem } = useStrictMutation(\n    async (data: AddMissingItemRequest) => {\n      await cartInteractor.addMissingItem(data);\n    },\n    {\n      onSuccess: async () => {\n        await queryClient.invalidateQueries([SHOPPING_CART_DATA_QUERY_KEY]);\n      },\n    },\n  );\n\n  return { serviceInfo, customService, addMissingItem, isFetching, isCustomizableServiceInfoFetching };\n}\n","import Script from 'next/script';\n\nimport { JQueryScriptProps } from './types';\n\nexport default function JQueryScript({ version = '3.7.1', onLoad }: Readonly<JQueryScriptProps>) {\n  return (\n    <Script\n      id=\"jquery-script\"\n      src={`https://code.jquery.com/jquery-${version}.min.js`}\n      strategy=\"lazyOnload\"\n      onLoad={() => {\n        if (onLoad) {\n          onLoad();\n        }\n      }}\n    />\n  );\n}\n","/**\n * Checks if a string contains jQuery-related code patterns\n * @param content - The string content to check for jQuery usage\n * @returns true if jQuery patterns are detected, false otherwise\n */\nexport const hasJQueryContent = (content: string | null | undefined): boolean => {\n  if (!content) {\n    return false;\n  }\n\n  // Check for common jQuery patterns\n  return (\n    content.includes('$') ||\n    content.includes('jQuery') ||\n    content.includes('$(')\n  );\n};\n\n/**\n * Checks multiple string contents for jQuery usage\n * @param contents - Array of strings to check for jQuery usage\n * @returns true if jQuery patterns are detected in any of the contents, false otherwise\n */\nexport const hasJQueryInContents = (...contents: Array<string | null | undefined>): boolean => {\n  return contents.some((content) => hasJQueryContent(content));\n};","import { useEffect, useRef, useState } from 'react';\n\nimport { UseAccordionProps } from './types';\n\n// in order to work this you have to add overflow: hidden to the ref element and some transitions\n// duration should be equal to the transition duration\nconst useAccordion = ({ shortListRef, isOpened, duration, onStateChange }: UseAccordionProps) => {\n  const timeoutRef = useRef<any>(0);\n  const isShortListOpened = useRef<boolean>(isOpened);\n  const [height, setHeight] = useState<string>(isOpened ? 'auto' : '0px');\n\n  const updateHeight = () => {\n    if (!timeoutRef.current) {\n      if (shortListRef.current) {\n        if (isShortListOpened.current) {\n          setHeight(`${shortListRef.current.scrollHeight}px`);\n          timeoutRef.current = setTimeout(() => {\n            setHeight('auto');\n            timeoutRef.current = null;\n          }, duration);\n        } else {\n          setHeight(`${shortListRef.current.scrollHeight}px`);\n          timeoutRef.current = setTimeout(() => {\n            setHeight('0px');\n            timeoutRef.current = null;\n          }, 10);\n        }\n      }\n    }\n  };\n\n  const handleAccordionOpen = () => {\n    if (!timeoutRef.current) {\n      const newIsOpen = !isShortListOpened.current;\n      isShortListOpened.current = newIsOpen;\n      onStateChange?.(newIsOpen);\n      updateHeight();\n    }\n  };\n\n  useEffect(() => {\n    if (isOpened !== isShortListOpened.current) {\n      isShortListOpened.current = isOpened;\n      updateHeight();\n    }\n  }, [isOpened]);\n\n  useEffect(() => {\n    return () => clearTimeout(timeoutRef.current as NodeJS.Timeout);\n  }, []);\n\n  return { handleAccordionOpen, height, isShortListOpened };\n};\n\nexport default useAccordion;\n","import {\n  ServiceRelatedProductGroup,\n  ServiceQuestion as ServiceQuestionType,\n  CustomizedService,\n  AddCustomServiceGroupRequest,\n} from '@package/core/src/shoppingCart/types';\n\nexport type CustomizableServiceDialogProps = {\n  productSku: string;\n  serviceId: string;\n  serviceSku?: string;\n  customService: CustomizedService;\n  infoMode?: boolean;\n  onClose: () => void;\n  addService?: () => Promise<void>;\n  addCustomService?: (request: AddCustomServiceGroupRequest) => Promise<void>;\n};\n\nexport type ProductServiceStep = {\n  id: string;\n  type: 'questionGroup' | 'productGroup';\n  parentId: string | null;\n  stepTitle: string;\n  serviceStep: ServiceQuestionType[] | ServiceRelatedProductGroup;\n};\n\nexport const ACCORDION_DURATION = 300;\n\nexport const ARROW_CUTTING_QUESTION = 'Would you like your arrows cut?';\nexport const CUT_METHOD_QUESTION = 'How would you like us to cut your arrows?';\nexport const CUSTOM_LENGTH_QUESTION = 'What custom length would you like?';\nexport const DRAW_LENGTH_QUESTION = 'Draw Length';\nexport const EXPERT_LENGTH = 'Expert Length';\n// Expert Length cuts 0.5\" past the riser; for arrow recommendation we approximate the arrow length as the\n// customer's draw length plus this offset (inches).\nexport const EXPERT_LENGTH_DRAW_OFFSET = 1;\n\n// Questions whose change triggers an arrow recommendation. Cut-method is included so choosing \"Expert\n// Length\" (no explicit length input) still fires using draw length; Draw Length itself is included so\n// editing it in Expert Length mode refreshes the recommendation (arrow length = draw length + offset).\nexport const ARROW_REC_QUESTIONS = [\n  CUSTOM_LENGTH_QUESTION,\n  CUT_METHOD_QUESTION,\n  DRAW_LENGTH_QUESTION,\n  'Draw Weight',\n  'Arrow Tip Weight',\n] as const;\nexport type ArrowRecQuestionTitle = (typeof ARROW_REC_QUESTIONS)[number];\n","import { FC, useRef, memo } from 'react';\nimport clsx from 'clsx';\nimport useControlledAccordion from '@package/hooks/src/useControlledAccordion';\n\nimport { AccordionProps } from './types';\nimport styles from './Accordion.module.css';\nimport { ACCORDION_DURATION } from '../CustomService/types';\nimport config from 'config-base';\n\nconst Accordion: FC<AccordionProps> = ({\n  title,\n  children,\n  icon,\n  defaultOpen = false,\n  disabled = false,\n  className = '',\n  hideArrow = false,\n  onChange,\n  dataTestId\n}) => {\n  const contentRef = useRef<HTMLDivElement>(null);\n  const { height, isShortListOpened } = useControlledAccordion({\n    shortListRef: contentRef,\n    isOpened: defaultOpen,\n    duration: ACCORDION_DURATION,\n    onStateChange: onChange,\n  });\n\n  const handleClick = () => {\n    if (disabled) return;\n    onChange?.(!defaultOpen);\n  };\n\n  return (\n    <div data-testid={dataTestId} className={`${styles.accordion} ${className} ${height === 'auto' ? styles.opened : ''}`}>\n      <button\n        type=\"button\"\n        className={clsx(styles.header, isShortListOpened.current && styles.opened, disabled && styles.disabled)}\n        onClick={handleClick}\n      >\n        {icon && <div className={clsx(styles.icon, { accordionIconOpen: isShortListOpened.current })}>{icon}</div>}\n        <div className={styles.title}>{title}</div>\n        {!disabled && !hideArrow && (\n          <>\n            {config.brandCode === '0' && (\n              <div className={styles.arrow}>\n                <svg width=\"15\" height=\"14\" viewBox=\"0 0 15 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                  <path d=\"M7.5042 1.50519e-06L14.9595 13.5L0.048852 13.5L7.5042 1.50519e-06Z\" fill=\"currentColor\" />\n                </svg>\n              </div>\n            )}\n            {config.brandCode === '2' && (\n              <svg\n                width=\"16\"\n                height=\"12\"\n                viewBox=\"0 0 16 12\"\n                fill=\"none\"\n                xmlns=\"http://www.w3.org/2000/svg\"\n                className={styles.arrowAGD}\n              >\n                <path\n                  d=\"M7.15007 10.8016L0.350066 4.00159C0.238498 3.89055 0.149966 3.75856 0.0895555 3.61321C0.0291452 3.46786 -0.00195312 3.312 -0.00195312 3.15459C-0.00195312 2.99718 0.0291452 2.84132 0.0895555 2.69597C0.149966 2.55062 0.238498 2.41863 0.350066 2.30759L1.49207 1.18759C1.60311 1.07602 1.73509 0.98749 1.88045 0.92708C2.0258 0.86667 2.18166 0.835571 2.33907 0.835571C2.49647 0.835571 2.65233 0.86667 2.79769 0.92708C2.94304 0.98749 3.07503 1.07602 3.18607 1.18759L8.00507 6.00659L12.8241 1.18759C12.9351 1.07602 13.0671 0.98749 13.2124 0.92708C13.3578 0.86667 13.5137 0.835571 13.6711 0.835571C13.8285 0.835571 13.9843 0.86667 14.1297 0.92708C14.275 0.98749 14.407 1.07602 14.5181 1.18759L15.6481 2.31759C15.7596 2.42863 15.8482 2.56062 15.9086 2.70597C15.969 2.85133 16.0001 3.00718 16.0001 3.16459C16.0001 3.322 15.969 3.47786 15.9086 3.62321C15.8482 3.76857 15.7596 3.90055 15.6481 4.01159L8.84807 10.8116C8.73658 10.9235 8.60411 11.0122 8.45825 11.0728C8.31239 11.1334 8.156 11.1645 7.99807 11.1645C7.84013 11.1645 7.68375 11.1334 7.53788 11.0728C7.39202 11.0122 7.25955 10.9235 7.14807 10.8116L7.15007 10.8016Z\"\n                  fill=\"#333C45\"\n                />\n              </svg>\n            )}\n          </>\n        )}\n      </button>\n      <div ref={contentRef} className={styles.accordionContent} style={{ height }}>\n        <div className={styles.accordionContentChildren}>{children}</div>\n      </div>\n    </div>\n  );\n};\n\nexport default memo(Accordion);\n","import { FC, memo } from 'react';\nimport styles from './CustomServiceDescription.module.css';\nimport { CustomServiceDescriptionProps } from './types';\n\nconst CustomServiceDescription: FC<CustomServiceDescriptionProps> = ({ description, alertMessage }) => {\n  return (\n    <>\n      {description && (\n        <div dangerouslySetInnerHTML={{ __html: description }} className={styles.customizableServiceData}></div>\n      )}\n      {alertMessage && <div dangerouslySetInnerHTML={{ __html: alertMessage }} className={styles.alertMessage}></div>}\n    </>\n  );\n};\n\nexport default memo(CustomServiceDescription);\n","import currencyFormatting from '@package/utils/src/currencyFormatting';\nimport { getPriceRange } from '@package/utils/src/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 (crossed price typically below red price)\n * getProductConditionalPrice is responsoblie for showing special price (Refurb. $300 for example)\n */\nconst useCalcItemPrice = ({\n  priceCents,\n  salePriceCents,\n  newPriceMin,\n  newPriceMax,\n  newSalePriceMin,\n  newSalePriceMax,\n  productConditionMax,\n  productCondition,\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 currencyFormatting(Number(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(\n      Boolean(productConditionMax && UsedAnyPriceMin) ||\n        (productConditionMax === 'Refurb' && !UsedAnyPriceMin) ||\n        (productCondition && productCondition?.length > 0 && productCondition[0] === 'Refurb'),\n    ),\n    getSalesPrice,\n    getOriginalPrice,\n    getProductConditionalPrice,\n  };\n};\n\nexport default useCalcItemPrice;\n","import clsx from 'clsx';\nimport currencyFormatting from '@package/utils/src/currencyFormatting';\nimport useCalcItemPrice from '@package/hooks/src/useCalcItemPrice';\nimport styles from './SearchResultsPrice.module.css';\nimport config from 'config-base';\nimport { SearchResultsPriceProps } from './types';\n\nconst SearchResultsPrice = ({\n  priceCents,\n  pricePerUnit,\n  pricePerUnitLabel,\n  ProductConditionMax,\n  ProductCondition,\n  salePriceCents,\n  NewPriceMax,\n  NewPriceMin,\n  NewSalePriceMax,\n  NewSalePriceMin,\n  UsedAnyPriceMin,\n  priceContainerClassName,\n  discountCents,\n  quantity,\n  itemId\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    productCondition: ProductCondition || null,\n    priceCents,\n    salePriceCents,\n    UsedAnyPriceMin,\n  });\n\n  const renderWithPricePerUnit = () =>\n    pricePerUnit && (\n      <span\n        data-testid={`search-result-with-price-per-unit-price-${itemId}`}\n        className={`${styles.rdLabel} ${styles.pricePerUnit} pricePerUnit`}\n      >{`${pricePerUnit} ${pricePerUnitLabel!}`}</span>\n    );\n\n  const renderItemsAmount = () =>\n    quantity && quantity > 1 ? <span className={`${styles.priceItemsAmount}`}>{`x${quantity}`}</span> : null;\n\n  const renderSalesPrice = (\n    salesPrice: string | null | undefined,\n    productConditionPrice: string | null | undefined,\n  ) => {\n    if (productConditionPrice === 'FREE') {\n      return (\n        <p\n          data-testid={`search-result-sales-price-${itemId}`}\n          className={clsx(styles.searchItemPrice, 'salesPrice', {\n            [styles.searchItemPricePyr]: config.brandCode === '0',\n          })}\n        >{`FREE`}</p>\n      );\n    }\n\n    return salePriceCents ? (\n      <p\n        data-testid={`search-result-sales-${itemId}`}\n        className={clsx(styles.searchItemPrice, 'salesPrice', {\n          [styles.salesPriceAgd]: config.brandCode === '2',\n          [styles.searchItemPricePyr]: config.brandCode === '0',\n        })}\n      >\n        {salesPrice}\n        {renderWithPricePerUnit()}\n      </p>\n    ) : null;\n  };\n\n  const renderOriginalPrice = (\n    originalPrice: string | null | undefined,\n    salesPrice: string | null | undefined,\n    productConditionPrice: string | null | undefined,\n  ) => {\n    if (productConditionPrice === 'FREE' || salesPrice === originalPrice) {\n      return null;\n    }\n    if (isRefurbished && productConditionPrice) {\n      return (\n        <span\n          data-testid={`search-result-original-price-${itemId}`}\n          className={clsx(styles.rdLabel, styles.originalPrice, styles.refurbPrice, 'originalPrice', {\n            [styles.originalPriceAgd]: config.brandCode === '2',\n            [styles.originalPricePyr]: config.brandCode === '0',\n          })}\n        >\n          {`${ProductConditionMax!}.`}\n          {UsedAnyPriceMin && ` ${productConditionPrice}`}\n        </span>\n      );\n    } else {\n      return (\n        <>\n          {originalPrice ? (\n            <span\n              data-testid={`search-result-original-price-${itemId}`}\n              className={clsx(styles.rdLabel, styles.originalPrice, styles.refurbPrice, 'originalPrice', {\n                [styles.originalPriceAgd]: config.brandCode === '2',\n                [styles.originalPricePyr]: config.brandCode === '0',\n              })}\n            >\n              <span>{originalPrice}</span>\n            </span>\n          ) : null}\n        </>\n      );\n    }\n  };\n\n  const renderDiscountAmount = (discountCents: number) => (\n    <p data-testid={`search-result-discount-amount-${itemId}`} className={`${styles.discountAmount}`}>\n      {`${currencyFormatting(discountCents / 100)} off`}\n      <span className={styles.asterisk}>*</span>\n    </p>\n  );\n\n  const renderSearchResultsPrice = () => {\n    const salesPrice = getSalesPrice();\n    const originalPrice = getOriginalPrice();\n    const productConditionPrice = getProductConditionalPrice();\n    return config.brandCode === '2' ? (\n      <div data-testid={`search-result-price-container-${itemId}`} className={clsx(priceContainerClassName)}>\n        {renderOriginalPrice(originalPrice, salesPrice, productConditionPrice)}\n        {renderSalesPrice(salesPrice, productConditionPrice)}\n        {discountCents && discountCents > 0 && productConditionPrice !== 'FREE'\n          ? renderDiscountAmount(discountCents)\n          : null}\n      </div>\n    ) : (\n      <div data-testid={`search-result-price-container-${itemId}`} className={clsx(priceContainerClassName)}>\n        {renderSalesPrice(salesPrice, productConditionPrice)}\n        {renderOriginalPrice(originalPrice, salesPrice, productConditionPrice)}\n        {discountCents && discountCents > 0 && productConditionPrice !== 'FREE'\n          ? renderDiscountAmount(discountCents)\n          : null}\n      </div>\n    );\n  };\n\n  return <>{renderSearchResultsPrice()}</>;\n};\n\nexport default SearchResultsPrice;\n","export type AddToCartButtonProps = {\n  id?: string;\n  addToCartOption: AddToCartOption;\n  handleAddToCart: () => Promise<void>;\n  disabled?: boolean;\n};\n\nexport enum ButtonVariants {\n  addToCard,\n  specialOrders,\n  preOrder,\n  info,\n  productDetails,\n  notAvailble,\n  contactUs,\n  viewAdditionalItems,\n}\n\nexport type AddToCartOption = {\n  id: ButtonVariants;\n  text: string;\n  purchasable: boolean;\n};\n","export default async function yieldToMain() {\n  return new Promise((resolve) => {\n    setTimeout(resolve, 0);\n  });\n}\n","'use client';\n\nimport { FC, useState } from 'react';\nimport { AddToCartButtonProps, ButtonVariants } from './types';\nimport BaseButton from '../BaseButton';\nimport clsx from 'clsx';\nimport yieldToMain from '@package/utils/src/yieldToMain';\nimport styles from './AddToCartButton.module.css';\n\nconst AddToCartButton: FC<AddToCartButtonProps> = ({ handleAddToCart, addToCartOption, disabled = false, id }) => {\n  const [loading, setLoading] = useState<boolean>(false);\n\n  const mapButtonStyles = (buttonVariant: ButtonVariants): string => {\n    const buttonVariants: Record<number, string> = {\n      [ButtonVariants.specialOrders]: 'btnPrimary',\n      [ButtonVariants.preOrder]: 'btnSecondary',\n      [ButtonVariants.info]: 'btnBase',\n      [ButtonVariants.productDetails]: 'btnBase',\n      [ButtonVariants.notAvailble]: `${styles.outOfStock} btnBase`,\n      [ButtonVariants.contactUs]: 'btnBase',\n      [ButtonVariants.viewAdditionalItems]: 'btnBase',\n    };\n    return buttonVariants[buttonVariant];\n  };\n\n  return (\n    <BaseButton\n      id={id}\n      classes={clsx(styles.addTocartButton, mapButtonStyles(addToCartOption.id))}\n      label={addToCartOption.text === 'Pre Order' ? 'Pre-Order' : addToCartOption.text}\n      disabled={loading || disabled}\n      loading={loading}\n      onClick={async () => {\n        await yieldToMain();\n        setLoading(true);\n        await handleAddToCart();\n        setLoading(false);\n      }}\n    />\n  );\n};\n\nexport default AddToCartButton;\n","import clsx from 'clsx';\n\nimport Image from 'next/image';\nimport Link from '../../Link';\nimport Rating from '../../Rating';\nimport { calcAGDrating } from '@package/utils/src/rating';\nimport { TopSellingCardProps } from './types';\nimport SearchResultsPrice from './components/SearchResultsPrice';\nimport AddToCartButton from '../../Buttons/AddToCartButton';\nimport BaseButton from '../../Buttons/BaseButton';\nimport RadioButton from '../../Radio';\nimport styles from './TopSellingCard.module.css';\nimport config from 'config-base';\n\n/** Attribute keys the API sends under a different name than we show. Anything absent renders as-is. */\nconst SPEC_LABELS: Record<string, string> = {\n  Straightness: 'Straightness +/-',\n  'Arrow Diameter': 'Diameter',\n};\n\nconst TopSellingCard = ({\n  searchItem,\n  className,\n  idx,\n  priorityIndex = 2,\n  addToCartButton,\n  isRadioSelect,\n  isSelected,\n  isRemoveable,\n  selectedButtonClass = styles.btnSecondary,\n  backordered = false,\n  attributes,\n  onClick,\n  onContextMenu,\n  handleAddToCart,\n  onViewAdapter,\n  onDeselect,\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    productCondition,\n    rating,\n    salePriceCents,\n    usedPriceCents,\n    id,\n    relatedProductsImperative,\n    productType,\n    serviceId,\n    serviceType,\n    purchasable,\n    addToCartButtonText,\n    addToCartOptionId,\n    tidBit,\n  } = searchItem;\n\n  const handleCardClick = () =>\n    onClick?.(searchItem?.clickTrackingURL, linkId, relatedProductsImperative, serviceId, serviceType, productType, id);\n\n  const attributeEntries = attributes ? Object.entries(attributes) : [];\n\n  return (\n    <div\n      className={clsx(\n        styles.searchItemContainer,\n        { [styles.searchItemContainerPYR]: config.brandCode === '0' },\n        className,\n      )}\n      data-test-type={productType}\n    >\n      <Link\n        data-testid={`top-selling-cart-link-${idx}`}\n        showCursorPointer\n        href={linkId}\n        classes={clsx(styles.linkCard, { [styles.linkFlex]: serviceType })}\n        onClick={(ev: any) => {\n          if (onClick) {\n            ev.preventDefault();\n            if (isSelected && onDeselect && isRemoveable) {\n              onDeselect();\n            } else {\n              handleCardClick();\n            }\n          }\n        }}\n        onContextMenu={() => {\n          if (onContextMenu) {\n            onContextMenu(searchItem?.clickTrackingURL);\n          }\n        }}\n      >\n        <div\n          className={clsx(styles.searchItemImageContainer, { [styles.radioSelect]: isRadioSelect })}\n          data-selected={isSelected}\n        >\n          {isRadioSelect && (\n            <RadioButton\n              id={`top-selling-card-radio-${searchItem.id}`}\n              radioLabelClassName={styles.cardRadioLabel}\n              checked={Boolean(isSelected)}\n              value={id}\n              onChange={handleCardClick}\n            />\n          )}\n          <Image\n            priority={priorityIndex === -1 ? false : idx <= priorityIndex}\n            src={imageId}\n            width={400}\n            height={300}\n            alt={name}\n            className={styles.searchItemImage}\n            data-testid={'top-selling-card-item-image-container'}\n          />\n          {searchItem?.new &&\n            (config.brandCode === '2' ? (\n              <div>NEW</div>\n            ) : (\n              <span data-testid={`top-selling-card-new-icon-${searchItem.id}`} className={styles.newImage}>\n                <Image src={'/marketplace-static/images/new_icon.png'} fill alt=\"new\" />\n              </span>\n            ))}\n          {salePriceCents > 0 &&\n            (config.brandCode === '2' ? (\n              <div className={styles.AGDBadgesContainer}>\n                <div className={styles.AGDSaleLabel}>Sale</div>\n              </div>\n            ) : (\n              <span data-testid={`top-selling-card-sale-icon-${searchItem.id}`} className={styles.saleImage}>\n                <Image src={'/marketplace-static/images/sale.svg'} fill alt=\"sale\" />\n              </span>\n            ))}\n        </div>\n        {backordered ? (\n          <div className={styles.statusContainer}>\n            <p className={`${styles.productStatus} ${styles.productStatusBackordered} productStatusBackordered `}>\n              Backordered\n            </p>\n          </div>\n        ) : null}\n        {!serviceType && (\n          <Rating\n            reviewers={numReviews || 0}\n            defaultValue={calcAGDrating(rating) || 0}\n            ratingContainerClasses={styles.rating}\n            ratingTextClasses={styles.ratingText}\n            hideRating={true}\n          />\n        )}\n        <p\n          data-testid={`top-selling-card-name-${searchItem.id}`}\n          className={clsx(styles.searchItemName, styles.nameClamp, 'cardName', {\n            [styles.searchItemNameAGD]: config.brandCode === '2',\n          })}\n        >\n          {name}\n        </p>\n        <SearchResultsPrice\n          pricePerUnit={pricePerUnit}\n          priceCents={priceCents}\n          salePriceCents={salePriceCents}\n          pricePerUnitLabel={pricePerUnitLabel}\n          NewPriceMax={newPriceMax}\n          NewPriceMin={newPriceMin}\n          NewSalePriceMax={newSalePriceMax}\n          NewSalePriceMin={newSalePriceMin}\n          ProductConditionMax={productConditionMax}\n          ProductCondition={productCondition}\n          UsedAnyPriceMin={usedPriceCents}\n          itemId={searchItem.id}\n        />\n      </Link>\n      {attributeEntries.length > 0 ? (\n        <div className={styles.arrowSpecsTable} data-testid={`arrow-specs-${searchItem.id}`}>\n          {attributeEntries.map(([label, value]) => (\n            <div className={styles.arrowSpecRow} key={label}>\n              <span className={styles.arrowSpecLabel}>{SPEC_LABELS[label] ?? label}</span>\n              <span className={styles.arrowSpecValue}>{value}</span>\n            </div>\n          ))}\n        </div>\n      ) : null}\n      {tidBit && (\n        <p className={styles.tidBit}>\n          <span className={styles.tidBitText} title={tidBit}>\n            {tidBit}\n          </span>\n        </p>\n      )}\n      {isRemoveable ? (\n        <BaseButton\n          id={`top-selling-card-select-${searchItem.id}`}\n          label={isSelected ? 'Remove' : 'Select'}\n          classes={clsx(isSelected ? selectedButtonClass : styles.btnBase, styles.radioSelectButton, {\n            [styles.radioSelectButtonSelected]: isSelected,\n          })}\n          onClick={(e) => {\n            e.preventDefault();\n            if (isSelected && onDeselect) {\n              onDeselect();\n            } else {\n              handleCardClick();\n            }\n          }}\n        />\n      ) : null}\n      {addToCartButton ? (\n        <AddToCartButton\n          id={`top-selling-card-add-to-cart-btn-${searchItem.id}`}\n          handleAddToCart={async () => {\n            if (Number(addToCartOptionId) === 7) {\n              onViewAdapter && (await onViewAdapter(id));\n              return;\n            }\n            if (Number(addToCartOptionId) === 6) {\n              window.location.href = 'https://www.pyramydair.com/contact-us';\n              return;\n            }\n            if (!purchasable) {\n              window.location.href = linkId;\n              return;\n            }\n            if (handleAddToCart) {\n              await handleAddToCart(\n                id,\n                priceCents,\n                '1',\n                productType,\n                serviceId,\n                serviceType,\n                relatedProductsImperative,\n                searchItem?.clickTrackingURL,\n              );\n            }\n          }}\n          addToCartOption={{\n            id: Number(addToCartOptionId),\n            purchasable,\n            text: addToCartButtonText,\n          }}\n        />\n      ) : null}\n    </div>\n  );\n};\n\nexport default TopSellingCard;\n","'use client';\n\nimport { FC, memo } from 'react';\nimport { DotButtonProps, DotsProps } from './types';\nimport clsx from 'clsx';\nimport styles from './EmblaDotButtons.module.css';\n\nconst DotButton: FC<DotButtonProps> = (props) => {\n  const { children, className, active, onClick, dotClassName, ...restProps } = props;\n  return (\n    <button\n      type=\"button\"\n      className={clsx(styles.embla__dot, className, { [styles.embla__dotActive]: active }, dotClassName)}\n      onClick={onClick}\n      data-active={active}\n      {...restProps}\n    >\n      {children}\n    </button>\n  );\n};\n\nexport const Dots: FC<DotsProps> = memo(({ emblaApi, scrollSnaps, selectedIndex, onclick, dotClassName }) => {\n  if (!emblaApi) return null;\n  return (\n    <div className={styles.emblaDots}>\n      {scrollSnaps.map((_, index) => (\n        <DotButton\n          key={index}\n          active={index === selectedIndex}\n          onClick={() => onclick(index)}\n          dotClassName={dotClassName}\n        />\n      ))}\n    </div>\n  );\n});\n","'use client';\n\nimport { FC, memo } from 'react';\nimport clsx from 'clsx';\nimport { PropType } from './types';\nimport styles from '../EmblaCarousel.module.css';\n\nexport const PrevButton: FC<PropType> = memo((props) => {\n  const { children, buttonsAbsolute, arrowClassName, backArrowClasses, className, ...restProps } = props;\n  return (\n    <button\n      className={clsx(\n        styles.carouselButtons,\n        styles.backButton,\n        {\n          [styles.carouselButtonLeft]: buttonsAbsolute,\n        },\n        arrowClassName,\n        backArrowClasses,\n      )}\n      type=\"button\"\n      {...restProps}\n    >\n      {children}\n    </button>\n  );\n});\n\nexport const NextButton: FC<PropType> = memo((props) => {\n  const { children, buttonsAbsolute, arrowClassName, nextArrowClasses, ...restProps } = props;\n  return (\n    <button\n      className={clsx(\n        styles.carouselButtons,\n        styles.nextButton,\n        {\n          [styles.carouselButtonRight]: buttonsAbsolute,\n        },\n        arrowClassName,\n        nextArrowClasses,\n      )}\n      type=\"button\"\n      {...restProps}\n    >\n      {children}\n    </button>\n  );\n});\n","import { EmblaCarouselType } from 'embla-carousel';\nimport { useCallback, useEffect, useState } from 'react';\nimport { UsePrevNextButtonsType } from './types';\n\nconst usePrevNextButtons = (emblaApi: EmblaCarouselType | undefined): UsePrevNextButtonsType => {\n  const [prevBtnDisabled, setPrevBtnDisabled] = useState(true);\n  const [nextBtnDisabled, setNextBtnDisabled] = useState(true);\n\n  const onPrevButtonClick = useCallback(() => {\n    if (!emblaApi) return;\n    emblaApi.scrollPrev();\n  }, [emblaApi]);\n\n  const onNextButtonClick = useCallback(() => {\n    if (!emblaApi) return;\n    emblaApi.scrollNext();\n  }, [emblaApi]);\n\n  const onSelect = useCallback((emblaApi: EmblaCarouselType) => {\n    setPrevBtnDisabled(!emblaApi.canScrollPrev());\n    setNextBtnDisabled(!emblaApi.canScrollNext());\n  }, []);\n\n  useEffect(() => {\n    if (!emblaApi) return;\n\n    onSelect(emblaApi);\n    emblaApi.on('reInit', onSelect).on('select', onSelect);\n  }, [emblaApi, onSelect]);\n\n  return {\n    prevBtnDisabled,\n    nextBtnDisabled,\n    onPrevButtonClick,\n    onNextButtonClick,\n  };\n};\n\nexport default usePrevNextButtons;\n","import { useCallback, useEffect, useState } from 'react';\nimport { EmblaCarouselType } from 'embla-carousel';\nimport { UseDotButtonType } from './types';\n\nconst useDotButton = (emblaApi: EmblaCarouselType | undefined): UseDotButtonType => {\n  const [selectedIndex, setSelectedIndex] = useState(0);\n  const [scrollSnaps, setScrollSnaps] = useState<number[]>([]);\n\n  const onDotButtonClick = useCallback(\n    (index: number) => {\n      if (!emblaApi) return;\n      emblaApi.scrollTo(index);\n    },\n    [emblaApi],\n  );\n\n  const onInit = useCallback((emblaApi: EmblaCarouselType) => {\n    setScrollSnaps(emblaApi.scrollSnapList());\n  }, []);\n\n  const onSelect = useCallback((emblaApi: EmblaCarouselType) => {\n    setSelectedIndex(emblaApi.selectedScrollSnap());\n  }, []);\n\n  useEffect(() => {\n    if (!emblaApi) return;\n\n    onInit(emblaApi);\n    onSelect(emblaApi);\n    emblaApi.on('reInit', onInit).on('reInit', onSelect).on('select', onSelect);\n  }, [emblaApi, onInit, onSelect]);\n\n  return {\n    selectedIndex,\n    scrollSnaps,\n    setSelectedIndex,\n    onDotButtonClick,\n  };\n};\n\nexport default useDotButton;\n","'use client';\n\nimport useEmblaCarousel from 'embla-carousel-react';\nimport clsx from 'clsx';\nimport { Dots } from './EmblaDotButtons';\nimport { CarouselProps } from './types';\nimport { NextButton, PrevButton } from './EmblaArrowButtons';\nimport usePrevNextButtons from './hooks/usePrevNextButtons';\nimport useDotButton from './hooks/useDotButton';\n\nimport styles from './EmblaCarousel.module.css';\n\nconst EmblaCarousel = <T,>({\n  slides,\n  options,\n  showArrows = true,\n  showDots = true,\n  className,\n  slideContentClassName,\n  containerClassName,\n  backArrowClasses,\n  nextArrowClasses,\n  dotClassName,\n}: CarouselProps<T>) => {\n  const [emblaRef, emblaApi] = useEmblaCarousel({\n    containScroll: 'trimSnaps',\n    ...options,\n  });\n\n  const { selectedIndex, scrollSnaps, onDotButtonClick } = useDotButton(emblaApi);\n\n  const { prevBtnDisabled, nextBtnDisabled, onPrevButtonClick, onNextButtonClick } = usePrevNextButtons(emblaApi);\n\n  return (\n    <div className={clsx(styles.embla, styles.carouselContent, className)}>\n      <div className={'emblaViewport'} ref={emblaRef}>\n        <div className={clsx(styles.embla__container, 'emblaContainer', containerClassName)}>\n          {slides.map((slide, index) => (\n            <div className={clsx(styles.embla__slide, 'emblaSlide', slideContentClassName)} key={index}>\n              {slide}\n            </div>\n          ))}\n        </div>\n      </div>\n\n      {showArrows ? (\n        <>\n          <PrevButton onClick={onPrevButtonClick} disabled={prevBtnDisabled} backArrowClasses={backArrowClasses} />\n          <NextButton onClick={onNextButtonClick} disabled={nextBtnDisabled} nextArrowClasses={nextArrowClasses} />\n        </>\n      ) : null}\n\n      {showDots && scrollSnaps.length > 1 ? (\n        <Dots\n          emblaApi={emblaApi}\n          scrollSnaps={scrollSnaps}\n          selectedIndex={selectedIndex}\n          onclick={onDotButtonClick}\n          dotClassName={dotClassName}\n        />\n      ) : null}\n    </div>\n  );\n};\n\nexport default EmblaCarousel;\n","export const isBackOrdered = (status?: string): boolean => status === 'Pre-Order';\n","'use client';\n\nimport clsx from 'clsx';\nimport config from 'config-base';\nimport TopSellingCardAlgonomy from '@base/components/src/Cards/TopSellingAlgonomy';\nimport EmblaCarousel from '@base/components/src/Carousel/EmblaCarousel';\nimport { isBackOrdered } from '@package/utils/src/productStatus';\nimport { ServiceCarouselProps } from './types';\nimport styles from './ServiceCarousel.module.css';\n\nconst ServiceCarousel = ({\n  services,\n  onSelect,\n  onDeselectServiceProduct,\n  selectedService,\n  additionalSlides = [],\n  showAttributes = false,\n}: ServiceCarouselProps) => {\n  const renderSlides = () => {\n    const serviceSlides = services.map((service, idx) => (\n      <TopSellingCardAlgonomy\n        key={service.id}\n        searchItem={service}\n        idx={idx}\n        onClick={() => onSelect(service)}\n        onDeselect={services.length > 1 ? onDeselectServiceProduct : undefined}\n        priorityIndex={-1}\n        isRadioSelect\n        isRemoveable={services.length > 1}\n        isSelected={selectedService?.id === service.id}\n        className={clsx(styles.customServiceCard, { [styles.customServiceCardPyr]: config.brandCode === '0' })}\n        backordered={isBackOrdered(service.addToCartButtonText)}\n        selectedButtonClass={config.brandCode === '0' ? 'btnBlack' : undefined}\n        attributes={showAttributes ? service.attributes : undefined}\n      />\n    ));\n\n    return [...(additionalSlides || []), ...serviceSlides];\n  };\n  return (\n    <EmblaCarousel\n      slides={renderSlides()}\n      options={{\n        slidesToScroll: 2,\n        breakpoints: {\n          '(min-width: 768px)': { slidesToScroll: 3 },\n          '(min-width: 1024px)': { slidesToScroll: 4 },\n        },\n      }}\n      showArrows\n      showDots\n      slideContentClassName={styles.customServiceSlide}\n      containerClassName={styles.customServiceContainer}\n      dotClassName={styles.customServiceDotButtons}\n      className={styles.customServiceCarousel}\n    />\n  );\n};\n\nexport default ServiceCarousel;\n","const SelectedServiceCartIcon = () => {\n  return (\n    <svg\n      width=\"22\"\n      height=\"18\"\n      viewBox=\"0 0 22 18\"\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      className=\"inline-block ml-1\"\n    >\n      <path\n        fillRule=\"evenodd\"\n        clipRule=\"evenodd\"\n        d=\"M8.19593 3.23828C9.101 3.23828 9.87671 4.01399 9.87671 4.91907C9.87671 5.82414 9.101 6.59986 8.19593 6.59986C7.29085 6.59986 6.51514 5.82414 6.51514 4.91907C6.51514 4.01399 7.29085 3.23828 8.19593 3.23828Z\"\n        fill=\"black\"\n      />\n      <path\n        fillRule=\"evenodd\"\n        clipRule=\"evenodd\"\n        d=\"M15.5011 3.23828C16.4062 3.23828 17.1819 4.01399 17.1819 4.91907C17.1819 5.82414 16.4062 6.59986 15.5011 6.59986C14.596 6.59986 13.8203 5.82414 13.8203 4.91907C13.8203 4.01399 14.596 3.23828 15.5011 3.23828Z\"\n        fill=\"black\"\n      />\n      <path\n        d=\"M0.500034 0.969693C-0.166678 0.969693 -0.166678 0 0.500034 0H1.53038C2.80318 0 3.83337 0.787891 4.19713 1.93939H20.864C21.1669 1.93939 21.4094 2.24236 21.2882 2.54544L18.9852 9.51535C18.6216 10.6668 17.5913 11.3942 16.3791 11.3942H6.56103L6.68219 11.9396C6.92465 12.7275 7.59123 13.2729 8.43978 13.2729H17.4096C18.0763 13.2729 18.0763 14.2426 17.4096 14.2426H8.43978C7.16698 14.2426 6.07614 13.3941 5.77303 12.182L3.28821 2.30312C3.1064 1.51523 2.37917 0.969821 1.53062 0.969821L0.500034 0.969693Z\"\n        fill=\"#C0C0C0\"\n      />\n      <path\n        fillRule=\"evenodd\"\n        clipRule=\"evenodd\"\n        d=\"M8.62116 14.8477C9.46967 14.8477 10.1969 15.5749 10.1969 16.4234C10.1969 17.2719 9.46967 17.9992 8.62116 17.9992C7.77265 17.9992 7.04541 17.2719 7.04541 16.4234C7.04541 15.5749 7.77265 14.8477 8.62116 14.8477Z\"\n        fill=\"#C0C0C0\"\n      />\n      <path\n        fillRule=\"evenodd\"\n        clipRule=\"evenodd\"\n        d=\"M15.4698 14.8477C16.3183 14.8477 17.0455 15.5749 17.0455 16.4234C17.0455 17.2719 16.3183 17.9992 15.4698 17.9992C14.6213 17.9992 13.894 17.2719 13.894 16.4234C13.894 15.5749 14.6213 14.8477 15.4698 14.8477Z\"\n        fill=\"#C0C0C0\"\n      />\n    </svg>\n  );\n};\n\nexport default SelectedServiceCartIcon;\n","import { FC, MouseEvent } from 'react';\nimport { CustomServiceLabelProps } from './types';\nimport Link from '@base/components/src/Link';\nimport { Underline } from '@base/components/src/Link/types';\nimport styles from './CustomServiceLabel.module.css';\n\nimport { clsx } from 'clsx';\nimport config from 'config-base';\n\nconst CustomServiceLabel: FC<CustomServiceLabelProps> = ({\n  groupUrl,\n  isSelected,\n  isAccordionOpened,\n  upgrade,\n  onChange,\n}) => {\n  if (upgrade && !isAccordionOpened) {\n    return (\n      <span className={clsx(styles.changeText, { [styles.groupUrlAGD]: config.brandCode === '2' })} onClick={onChange}>\n        Upgrade\n      </span>\n    );\n  }\n  return groupUrl ? (\n    <Link\n      underline={Underline.always}\n      showCursorPointer\n      classes={clsx(styles.groupUrl, { [styles.groupUrlAGD]: config.brandCode === '2' })}\n      href={groupUrl}\n      onClick={(e: MouseEvent<HTMLAnchorElement>) => {\n        e.preventDefault();\n        e.stopPropagation();\n        window.location.href = groupUrl;\n      }}\n    >{`Shop Products`}</Link>\n  ) : isSelected && !isAccordionOpened ? (\n    <span className={clsx(styles.changeText, { [styles.groupUrlAGD]: config.brandCode === '2' })} onClick={onChange}>\n      {upgrade ? 'Upgrade' : 'Change'}\n    </span>\n  ) : null;\n};\n\nexport default CustomServiceLabel;\n","import { FC } from 'react';\nimport clsx from 'clsx';\nimport SelectedServiceCartIcon from '@base/components/src/Icon/SelectedServiceCartIcon';\nimport Spinner from '@base/components/src/Spinner';\nimport CustomServiceLabel from '../CustomServiceLabel';\n\nimport styles from './CustomServiceAccordionTitle.module.css';\nimport { CustomServiceAccordionTitleProps } from './types';\n\nconst CustomServiceAccordionTitle: FC<CustomServiceAccordionTitleProps> = ({\n  groupName,\n  groupUrl,\n  selectedProduct,\n  included,\n  required,\n  isAccordionOpened,\n  selectedItem,\n  isSelected,\n  className,\n  upgrade,\n  handleChangeSelectedService,\n  loading,\n}) => {\n  const groupNameWithoutSpaces = groupName?.toString().replace(/\\s/g, '')\n  return (\n    <div\n      data-testid={`custom-service-accordion-title-${groupNameWithoutSpaces}`}\n      className={clsx(\n        styles.title,\n        !required && !selectedItem && styles.optional,\n        ((isAccordionOpened && required) || isSelected) && styles.openProductAccordionOpened,\n        className,\n        loading && styles.loading,\n      )}\n    >\n      <div>\n        <span>{groupName}</span>\n        {selectedItem ? <span className={styles.selectedServiceItem}>{` (${selectedItem})`}</span> : null}\n        {selectedProduct ? <SelectedServiceCartIcon /> : null}\n        {included ? <span className={styles.included}> (included)</span> : null}\n        {!required ? (\n          <span className={clsx(styles.optional, { [styles.optionalActive]: selectedItem })}> (optional)</span>\n        ) : null}\n        {loading ? <Spinner className={styles.loadingSpinner} /> : null}\n      </div>\n      <CustomServiceLabel\n        groupUrl={groupUrl}\n        isSelected={isSelected}\n        isAccordionOpened={isAccordionOpened}\n        upgrade={upgrade}\n        onChange={() => {\n          handleChangeSelectedService?.();\n        }}\n      />\n    </div>\n  );\n};\n\nexport default CustomServiceAccordionTitle;\n","import { CustomizedService, ServiceQuestionAnswerOption, ServiceQuestion } from '@package/core/src/shoppingCart/types';\nimport { TopSellingProductExtended } from '@package/services/src/Algonomy/types';\n\ntype ServiceQuestionParentId = {\n  serviceId: string;\n  id: string | null;\n  serviceName: string | null;\n};\n\ntype ServiceProductParentId = {\n  serviceId: string;\n  id: string | null;\n};\n\ntype CustomServiceFormData<T, P> = {\n  values: Record<string, T>;\n  parentId: Record<string, P | null>;\n  errors: Record<string, boolean>;\n};\n\nexport type ServiceQuestionAnswerPayload = ServiceQuestionAnswerOption & { uom: string | null };\n\nexport type ServiceQuestionData = CustomServiceFormData<ServiceQuestionAnswerPayload | null, ServiceQuestionParentId>;\nexport type ServiceProductData = CustomServiceFormData<TopSellingProductExtended | null, ServiceProductParentId>;\n\nexport type QuestionUpdate = {\n  questionTitle: string;\n  selectedOption: ServiceQuestionAnswerOption;\n  questions?: ServiceQuestion[] | null;\n};\n\nexport type ProductUpdate = {\n  groupName: string;\n  product: TopSellingProductExtended | null;\n  required: boolean;\n  relatedQuestionsToMClear?: string[];\n  newQuestions?: CustomizedService | null;\n};\n\nexport type CustomServiceFormState = {\n  customService: CustomizedService;\n  serviceQuestionAnswers: ServiceQuestionData;\n  relatedProducts: ServiceProductData;\n  productQuestions: { [groupName: string]: ServiceQuestion[] };\n  touched: boolean;\n  subTotal: number;\n};\n\nexport const QUESTIONS_PARENT_ID = 'Service Details';\n// Product-group name (lowercased) that marks the arrow-cutting flow — an answer whose serviceId > 0 and\n// relatedProductGroup matches this is the \"cut my arrows\" selection.\nexport const ARROWS_GROUP = 'arrows';\n","import { TopSellingProductExtended } from '@package/services/src/Algonomy/types';\nimport {\n  ServiceQuestion,\n  ServiceRelatedProductGroup,\n  ServiceQuestionAnswerOption,\n  RelatedService,\n  ServiceQuestionAnswer,\n} from '@package/core/src/shoppingCart/types';\n\nimport {\n  ServiceQuestionAnswerPayload,\n  ServiceQuestionData,\n  ServiceProductData,\n  QUESTIONS_PARENT_ID,\n  ARROWS_GROUP,\n} from './types';\nimport {\n  ARROW_CUTTING_QUESTION,\n  CUT_METHOD_QUESTION,\n  CUSTOM_LENGTH_QUESTION,\n  EXPERT_LENGTH,\n} from '../__components/CustomService/types';\n\nexport const calculateProductPrice = (product: TopSellingProductExtended | null): number => {\n  if (!product) return 0;\n  return (product.salePriceCents > 0 ? product.salePriceCents : product.priceCents) / 100;\n};\n\n/**\n * Build the Service Details answer maps (values/errors/parentId, all keyed `Service Details-<title>`) for a\n * questions tree — shared by createInitialState and the REPLACE_ARROW_CUTTING_QUESTION reducer (when the\n * backend ships a freshly-computed arrow-cutting chain). Recurses into a selected answer's related questions so nested\n * questions seed their value + required error key exactly as if the parent had been picked interactively.\n * When `prior` is provided, a previous selection is kept only if the question still offers it (matched by\n * answerValue against the NEW options, adopting the new option so its recomputed related questions replace\n * stale ones); otherwise the question re-seeds (single option, Arrow Tip Weight, and the cut-method\n * question → Expert Length auto-select, else null).\n */\nexport const buildServiceQuestionState = (\n  questions: ServiceQuestion[] | null,\n  baseServiceId: string,\n  prior?: ServiceQuestionData,\n): ServiceQuestionData => {\n  const values: ServiceQuestionData['values'] = {};\n  const errors: ServiceQuestionData['errors'] = {};\n  const parentId: ServiceQuestionData['parentId'] = {};\n\n  const resolveAnswer = (\n    question: ServiceQuestion,\n    priorValue: ServiceQuestionAnswerPayload | null | undefined,\n  ): ServiceQuestionAnswerPayload | null => {\n    const options = question.answerOptions;\n\n    if (priorValue) {\n      // Free-text question (no options): keep the typed value as-is.\n      if (!options || options.length === 0) return priorValue;\n      // Keep the selection only if still offered, adopting the NEW option so its recomputed related\n      // questions replace the stale ones.\n      const match = options.find((option) => option.answerValue === priorValue.answerValue);\n      if (match) return { ...match, uom: question.uom || null };\n    }\n\n    if (options && options.length === 1) return { ...options[0], uom: question.uom || null };\n    if (question.title === 'Arrow Tip Weight' && options && options.length > 0) {\n      return { ...options[0], uom: question.uom || null };\n    }\n    // Default the cut-method question to Expert Length (matched by value, not index) so opting into arrow\n    // cutting pre-selects it. Only when that option exists — otherwise leave unselected.\n    if (question.title === CUT_METHOD_QUESTION) {\n      const expert = options?.find((option) => option.answerValue === EXPERT_LENGTH);\n      return expert ? { ...expert, uom: question.uom || null } : null;\n    }\n    return null;\n  };\n\n  const seed = (question: ServiceQuestion) => {\n    const key = `${QUESTIONS_PARENT_ID}-${question.title}`;\n    if (question.required) {\n      errors[key] = false;\n    }\n    const answer = resolveAnswer(question, prior?.values[key]);\n    values[key] = answer;\n    parentId[key] = { serviceId: baseServiceId, id: QUESTIONS_PARENT_ID, serviceName: QUESTIONS_PARENT_ID };\n    answer?.relatedQuestions?.forEach(seed);\n  };\n\n  questions?.forEach(seed);\n\n  return { values, errors, parentId };\n};\n\n/**\n * The arrow-cutting service (e.g. serviceId 332) lives nested under the \"Service Details\" cut chain rather\n * than a related-product group, so the `relatedServices` builder in `handleAddService` — which only picks\n * up non-\"Service Details\" parentId groups — never captures it. Build its payload entry explicitly here.\n *\n * The backend (`ProductServiceImpl.tryToFindRelatedService`) attaches a matched entry as its own $0 SERVICE\n * cart line on the selected arrow, matched by `baseProductSku` (which must also appear in top-level\n * `relatedProducts` — it does: the chosen Arrows product). `serviceQuestionAnswers` is free-form display\n * text on that cut line. Returns null when arrows-cut is No / unselected (serviceId 0 or no Arrows product).\n */\nexport const buildArrowCuttingService = (\n  values: ServiceQuestionData['values'],\n  productValues: ServiceProductData['values'],\n): RelatedService | null => {\n  const arrowCutAnswer = values[`${QUESTIONS_PARENT_ID}-${ARROW_CUTTING_QUESTION}`];\n  const arrowCutServiceId = Number(arrowCutAnswer?.serviceId);\n  const arrowSku = arrowCutAnswer?.relatedProductGroup\n    ? productValues[arrowCutAnswer.relatedProductGroup]?.id\n    : undefined;\n\n  if (!(arrowCutServiceId > 0) || !arrowSku) return null;\n\n  const serviceQuestionAnswers = [CUT_METHOD_QUESTION, CUSTOM_LENGTH_QUESTION]\n    .map((title): ServiceQuestionAnswer | null => {\n      const answer = values[`${QUESTIONS_PARENT_ID}-${title}`];\n      if (!answer?.answerValue) return null;\n      return { question: title, answer: answer.uom ? `${answer.answerValue} ${answer.uom}` : answer.answerValue };\n    })\n    .filter((qa): qa is ServiceQuestionAnswer => qa !== null);\n\n  return {\n    baseProductSku: arrowSku,\n    serviceId: arrowCutServiceId,\n    servicePrice: arrowCutAnswer?.servicePrice || 0,\n    serviceQuestionAnswers,\n  };\n};\n\n/**\n * Collect every descendant question title reachable through an option's `relatedQuestions` (all depths).\n * Used to purge stale nested `Service Details-` answer keys when a question's subtree is replaced.\n */\nexport const collectDescendantTitles = (\n  question: ServiceQuestion,\n  acc: Set<string> = new Set<string>(),\n): Set<string> => {\n  question.answerOptions?.forEach((option) => {\n    option.relatedQuestions?.forEach((related) => {\n      acc.add(related.title);\n      collectDescendantTitles(related, acc);\n    });\n  });\n  return acc;\n};\n\nexport const checkIfOtherQuestionsRequireGroup = (\n  questions: ServiceQuestion[] | null,\n  currentQuestionTitle: string,\n  groupName: string,\n  questionAnswers: Record<string, ServiceQuestionAnswerOption | null>,\n): boolean => {\n  return (\n    questions?.some((q) => {\n      if (q.title === currentQuestionTitle) return false;\n      const currentAnswer = questionAnswers[q.title];\n      return (\n        (currentAnswer?.serviceId ?? 0) > 0 &&\n        currentAnswer?.relatedProductGroup?.toLowerCase() === groupName.toLowerCase()\n      );\n    }) ?? false\n  );\n};\n\nexport const isArrowCuttingOption = (option: ServiceQuestionAnswerOption | null): boolean =>\n  (option?.serviceId ?? 0) > 0 && option?.relatedProductGroup?.toLowerCase() === ARROWS_GROUP;\n\nexport const isArrowCuttingSelected = (values: Record<string, ServiceQuestionAnswerPayload | null>): boolean =>\n  Object.values(values).some(isArrowCuttingOption);\n\nexport const isArrowCuttingQuestion = (question: ServiceQuestion): boolean =>\n  question.answerOptions?.some(isArrowCuttingOption) ?? false;\n\n/**\n * Render-order helper: surface the cut-method question's \"Expert Length\" option first so it leads the radio\n * group (it is also the default selection). Pure display reorder keyed by answerValue — returns the question\n * unchanged for anything but the cut-method question, or when Expert Length is absent / already first.\n * Selection state is keyed by value, so reordering is display-only.\n */\nexport const withExpertLengthFirst = (question: ServiceQuestion): ServiceQuestion => {\n  if (question.title !== CUT_METHOD_QUESTION || !question.answerOptions) return question;\n  const expertIndex = question.answerOptions.findIndex((option) => option.answerValue === EXPERT_LENGTH);\n  if (expertIndex <= 0) return question;\n  const reordered = [...question.answerOptions];\n  const [expert] = reordered.splice(expertIndex, 1);\n  return { ...question, answerOptions: [expert, ...reordered] };\n};\n\nexport const calculateServicePriceUpdate = (\n  questionTitle: string,\n  selectedOption: ServiceQuestionAnswerOption,\n  currentAnswers: Record<string, ServiceQuestionAnswerOption | null>,\n): number => {\n  let priceUpdate = 0;\n\n  // Subtract previous answer's service price if it exists\n  const previousAnswer = currentAnswers[questionTitle];\n  if (previousAnswer?.servicePrice) {\n    priceUpdate -= previousAnswer.servicePrice;\n  }\n\n  // Add new answer's service price if it exists\n  // serviceId must be > 0 because\n  if (selectedOption.servicePrice && selectedOption.serviceId) {\n    priceUpdate += selectedOption.servicePrice;\n  }\n\n  // Round to 2 decimal places to avoid floating point precision issues\n  return Number(priceUpdate.toFixed(2));\n};\n\nexport const calculateProductGroupPriceUpdate = (subTotal: number, previousPrice: number, newPrice: number): number =>\n  Number((subTotal - previousPrice + newPrice).toFixed(2));\n\nexport const getUniqueObjectsByKey = <T, K extends keyof T>(arr: T[], key: K): T[] => {\n  const seen = new Set<T[K]>();\n  return arr.filter((item) => {\n    const val = item[key];\n    if (seen.has(val)) return false;\n    seen.add(val);\n    return true;\n  });\n};\n\nexport const isProductInCartIncludedInGroup = (group: ServiceRelatedProductGroup): boolean =>\n  Boolean(\n    group.recommendedProducts?.products &&\n      group.recommendedProducts.products.length > 1 &&\n      group.selectedProduct &&\n      group.recommendedProducts.products.some(\n        (product) => group.selectedProduct && product.id === group.selectedProduct.id,\n      ),\n  );\n\nexport const isProductSelectedInGroup = (group: ServiceRelatedProductGroup, isProductSelected: boolean): boolean =>\n  isProductInCartIncludedInGroup(group) ? isProductSelected : !group.selectedProduct;\n\nexport const isSelectedProductInForm = (\n  selectedProduct: TopSellingProductExtended | null,\n  formValue: TopSellingProductExtended | null,\n): boolean => Boolean(selectedProduct && formValue && selectedProduct.id === formValue.id);\n","import { FC } from 'react';\nimport clsx from 'clsx';\nimport Radio from '@base/components/src/Radio';\nimport BaseButton from '@base/components/src/Buttons/BaseButton';\n\nimport styles from './IncludedCard.module.css';\nimport { IncludedCardProps } from './types';\n\nconst IncludedCard: FC<IncludedCardProps> = ({ id, title, isSelected, onSelect }) => {\n  return (\n    <div className={styles.card}>\n      <div className={styles.linkCard}>\n        <div className={styles.imageContainer}>\n          <div className={styles.radioContainer}>\n            <Radio id={`${id}-radio`} value={id} checked={isSelected} onChange={() => onSelect?.(id)} size=\"big\" />\n          </div>\n          <div className={styles.textContainer}>\n            <p className={styles.title}>{title}</p>\n          </div>\n        </div>\n      </div>\n      {!isSelected ? (\n        <BaseButton\n          id=\"radio-select-button\"\n          label={isSelected ? 'Remove' : 'Select'}\n          classes={clsx(isSelected ? styles.btnSecondary : styles.btnBase, styles.radioSelectButton, {\n            [styles.radioSelectButtonSelected]: isSelected,\n          })}\n          onClick={(e) => {\n            e.preventDefault();\n            onSelect?.(id);\n          }}\n        />\n      ) : null}\n    </div>\n  );\n};\n\nexport default IncludedCard;\n","import { forwardRef, MouseEvent, useEffect, useRef, useState } from 'react';\nimport config from 'config-base';\nimport clsx from 'clsx';\nimport { TopSellingProductExtended } from '@package/services/src/Algonomy/types';\nimport AlertsApiService from '@package/core/src/alerts/AlertsApiService';\nimport AlertsInteractor from '@package/core/src/alerts/AlertsInteractor';\nimport { apiClient } from '../../../../services';\nimport Accordion from '../Accordion';\nimport ServiceCarousel from '../ServiceCarousel';\nimport ServiceStepIcon from '@base/components/src/Icon/ServiceStepIcon';\nimport { CustomServiceProductGroupProps } from './types';\nimport PageErrorMessage from '@base/components/src/PageErrorMessage';\nimport CustomServiceAccordionTitle from '../CustomServiceAccordionTitle';\nimport { isSelectedProductInForm } from '../../store/utils';\nimport { ARROWS_GROUP, QUESTIONS_PARENT_ID } from '../../store/types';\nimport { isBackOrdered } from '@package/utils/src/productStatus';\nimport useAllertEdit from '@package/hooks/src/useAllertEdit';\nimport { EditIcon } from '@base/components/src/Icon';\nimport styles from './CustomServiceProductGroup.module.css';\nimport IncludedCard from '../IncludedCard';\n\nconst alertsService = new AlertsApiService(apiClient);\nconst alertsInteractor = new AlertsInteractor(alertsService);\n\nconst CustomServiceProductGroup = forwardRef<HTMLDivElement, CustomServiceProductGroupProps>(\n  (\n    {\n      relatedProductGroup,\n      productFormState,\n      stepIndex,\n      isAccordionOpened,\n      stepId,\n      errorSection,\n      stepTitle,\n      accordionChange,\n      onSelectServiceProduct,\n      onDeselectServiceProduct,\n      getBackorderMessage,\n    },\n    ref,\n  ) => {\n    const { groupName, groupUrl, recommendedProducts, selectedProduct, included, required } = relatedProductGroup;\n    const productGroupValue = productFormState.values[groupName];\n    const [isLoading, setIsLoading] = useState(false);\n\n    const isArrowsGroup = groupName.toLowerCase() === ARROWS_GROUP;\n    const isArrowsEmpty = isArrowsGroup && recommendedProducts.products.length === 0;\n    const [alertHtml, setAlertHtml] = useState<string | null>(null);\n    const [isAlertSettled, setIsAlertSettled] = useState(false);\n    const isAlertFetchingRef = useRef(false);\n    const [alertMessage, setAlertMessage] = useState<string | null>(null);\n    const { allertEditUrl } = useAllertEdit('3809', 'promoAlertMessageEdit');\n\n    const handleChangeSelectedService = (isOpen: boolean) => {\n      accordionChange?.(stepId, isOpen);\n    };\n\n    const loadBackorderMessage = async (serviceProduct: TopSellingProductExtended | null) => {\n      if (isBackOrdered(serviceProduct?.addToCartButtonText) && !alertMessage) {\n        const message = await getBackorderMessage();\n        setAlertMessage(message ?? null);\n      }\n    };\n\n    const handleSelectServiceProduct = async (\n      serviceProductGroupName: string,\n      required: boolean,\n      serviceProduct: TopSellingProductExtended | null,\n    ) => {\n      setIsLoading(true);\n      try {\n        await onSelectServiceProduct(serviceProductGroupName, required, serviceProduct);\n        await loadBackorderMessage(serviceProduct);\n      } finally {\n        setIsLoading(false);\n      }\n    };\n\n    const handleArrowAlertClick = (event: MouseEvent<HTMLDivElement>) => {\n      if ((event.target as HTMLElement).closest('[data-action=\"open-bow-details\"]')) {\n        accordionChange?.(QUESTIONS_PARENT_ID, true);\n      }\n    };\n\n    const loadArrowAlert = async () => {\n      isAlertFetchingRef.current = true;\n      try {\n        const result = await alertsInteractor.getArrowNoMatchAlert();\n        setAlertHtml(result.data ?? null);\n      } finally {\n        setIsAlertSettled(true);\n        isAlertFetchingRef.current = false;\n      }\n    };\n\n    const renderArrowsEmptyContent = () => {\n      if (!isAlertSettled) {\n        return null;\n      }\n      if (!alertHtml) {\n        return (\n          <PageErrorMessage\n            id={`service-product-group-${groupName}-empty`}\n            className={styles.productErrorMessage}\n            message={\n              <>\n                Please add your{' '}\n                <button\n                  type=\"button\"\n                  className=\"underline\"\n                  onClick={() => accordionChange?.(QUESTIONS_PARENT_ID, true)}\n                >\n                  bow details\n                </button>{' '}\n                before we can recommend arrows.\n              </>\n            }\n            ignoreScroll\n          />\n        );\n      }\n      return (\n        <PageErrorMessage\n          id={`service-product-group-${groupName}-empty`}\n          className={styles.productErrorMessage}\n          message={<div onClick={handleArrowAlertClick} dangerouslySetInnerHTML={{ __html: alertHtml }} />}\n          ignoreScroll\n        />\n      );\n    };\n    const handleDeselectServiceProduct = (serviceProductGroupName: string) => {\n      onDeselectServiceProduct(serviceProductGroupName);\n    };\n\n    useEffect(() => {\n      if (isArrowsEmpty && !isAlertSettled && !isAlertFetchingRef.current) {\n        void loadArrowAlert();\n      }\n    }, [isArrowsEmpty, isAlertSettled]);\n\n    useEffect(() => {\n      void loadBackorderMessage(productGroupValue);\n      return () => {\n        setAlertMessage(null);\n      };\n    }, []);\n\n    return (\n      <div ref={ref}>\n        <Accordion\n          defaultOpen={isAccordionOpened}\n          className={clsx(styles.customizableServiceAccordion, {\n            [styles.customizableServiceAccordionRequired]: !required && !productGroupValue?.name,\n          })}\n          key={groupName}\n          dataTestId={`custom-service-product-group-accordion-${groupName}`}\n          icon={\n            <ServiceStepIcon\n              type={\n                productFormState.values[groupName] || included || selectedProduct\n                  ? 'success'\n                  : isAccordionOpened\n                    ? 'opened'\n                    : 'number'\n              }\n              number={stepIndex}\n              optional={!required}\n            />\n          }\n          title={\n            <CustomServiceAccordionTitle\n              groupName={stepTitle}\n              groupUrl={groupUrl}\n              required={required}\n              included={included && !Boolean(productGroupValue)}\n              upgrade={included && relatedProductGroup.recommendedProducts.products.length > 0}\n              selectedProduct={isSelectedProductInForm(selectedProduct, productGroupValue) ? selectedProduct : null}\n              isAccordionOpened={isAccordionOpened}\n              selectedItem={productGroupValue?.name ?? null}\n              isSelected={!!productGroupValue?.name && relatedProductGroup.recommendedProducts.products.length >= 1}\n              handleChangeSelectedService={() => handleChangeSelectedService(true)}\n              loading={isLoading}\n            />\n          }\n          disabled={\n            (!!selectedProduct && relatedProductGroup.recommendedProducts.products.length === 0) ||\n            (included && relatedProductGroup.recommendedProducts.products.length === 0)\n          }\n          hideArrow={!!groupUrl}\n          onChange={handleChangeSelectedService}\n        >\n          {isArrowsEmpty ? (\n            renderArrowsEmptyContent()\n          ) : !groupUrl ? (\n            <>\n              <div\n                className={clsx(\n                  styles.productErrorMessage,\n                  styles.errorMessageWrapper,\n                  !(productFormState.errors[groupName] && errorSection === groupName) &&\n                    styles.errorMessageWrapperHidden,\n                )}\n              >\n                <PageErrorMessage\n                  id={`service-product-group-${groupName}-error`}\n                  message={`Please select a ${groupName}, or add one to your cart. It is required for this service.`}\n                  className={styles.productErrorMessage}\n                  ignoreScroll\n                />\n              </div>\n\n              <ServiceCarousel\n                services={recommendedProducts.products}\n                onSelect={(product) => handleSelectServiceProduct(groupName, required, product)}\n                onDeselectServiceProduct={() => handleDeselectServiceProduct(groupName)}\n                selectedService={productGroupValue}\n                showAttributes={isArrowsGroup}\n                additionalSlides={\n                  included && relatedProductGroup.recommendedProducts.products.length > 0\n                    ? [\n                        <IncludedCard\n                          key={`included-${groupName}`}\n                          id={groupName}\n                          title={`Included ${groupName}`}\n                          isSelected={!productGroupValue}\n                          onSelect={() => handleDeselectServiceProduct(groupName)}\n                        />,\n                      ]\n                    : null\n                }\n              />\n              {isBackOrdered(productGroupValue?.addToCartButtonText) && alertMessage ? (\n                <>\n                  {allertEditUrl ? (\n                    <EditIcon\n                      url={`${config.webAdminUrl}promoAlertMessageEdit.php?brand=${config.brandCode}&id=3809`}\n                    />\n                  ) : null}\n                  <div className={styles.alertMessageWrapper}>\n                    <div dangerouslySetInnerHTML={{ __html: alertMessage }} className={styles.alertMessage}></div>\n                  </div>\n                </>\n              ) : null}\n            </>\n          ) : (\n            <PageErrorMessage\n              id={`service-product-group-${groupName}-required`}\n              className={styles.productErrorMessage}\n              message={`Please add a <a href=\"${groupUrl}\" class=\"underline\">${groupName}</a> ${\n                config.brandCode === '2' ? '' : 'that are shipped & sold by Pyramyd AIR'\n              } to your cart. It is required for this service.`}\n              ignoreScroll\n            />\n          )}\n        </Accordion>\n      </div>\n    );\n  },\n);\n\nexport default CustomServiceProductGroup;\n","'use client';\n\nimport { useEffect, useState } from 'react';\nimport { SnackbarProps } from './types';\nimport styles from './Snackbar.module.css';\nimport clsx from 'clsx';\n\nconst Snackbar = ({ message, open, className, onClose, autoHideDuration = 2000, type }: SnackbarProps) => {\n  const [isOpen, setIsOpen] = useState(open);\n\n  useEffect(() => {\n    if (open && autoHideDuration) {\n      setIsOpen(true);\n      const closeTimer = setTimeout(() => {\n        setIsOpen(false);\n      }, autoHideDuration - 150);\n\n      const timer = setTimeout(() => {\n        onClose();\n      }, autoHideDuration);\n\n      return () => {\n        clearTimeout(timer);\n        clearTimeout(closeTimer);\n      };\n    }\n  }, [open, autoHideDuration, onClose]);\n\n  return (\n    <div className={clsx(styles.snackbar, isOpen && styles.open, className)}>\n      <div\n        className={clsx(styles.content, {\n          [styles.loading]: type === 'loading',\n          [styles.success]: type === 'success',\n        })}\n      >\n        <span className={styles.message}>{message}</span>\n      </div>\n    </div>\n  );\n};\n\nexport default Snackbar;\n","import { clsx } from 'clsx';\nimport { FC, useEffect, useMemo, useState } from 'react';\nimport BaseButton from '@base/components/src/Button';\nimport Snackbar from '@base/components/src/Snackbar';\nimport currencyFormatting from '@package/utils/src/currencyFormatting';\nimport Spinner from '@base/components/src/Spinner';\nimport styles from './CustomServiceFooter.module.css';\nimport { CustomServiceFooterProps, FooterStatus } from './types';\nimport { ACCORDION_DURATION } from '../CustomService/types';\nimport config from 'config-base';\n\nconst CustomServiceFooter: FC<CustomServiceFooterProps> = ({\n  price,\n  isLoading,\n  selectedProductGroupsCount,\n  contentRef,\n  nextSection,\n  activeAccordions,\n  snackBarData,\n  handleAddService,\n  onSnackBarClose,\n}) => {\n  const [showShadow, setShowShadow] = useState(false);\n\n  const checkScroll = () => {\n    if (!contentRef.current) return;\n\n    const { scrollHeight, clientHeight, scrollTop } = contentRef.current;\n    const isNotAtBottom = scrollTop + clientHeight < scrollHeight - 1;\n\n    setShowShadow((prev) => (prev !== isNotAtBottom ? isNotAtBottom : prev));\n  };\n\n  const checkOverflow = () => {\n    if (!contentRef.current) return;\n\n    setTimeout(() => {\n      if (!contentRef.current) return;\n\n      const { scrollHeight, clientHeight } = contentRef.current;\n      // Content is overflowing when scrollHeight > clientHeight\n      const hasOverflow = scrollHeight > clientHeight;\n\n      setShowShadow((prev) => (prev !== hasOverflow ? hasOverflow : prev));\n    }, ACCORDION_DURATION);\n  };\n\n  const footerStatus: FooterStatus = useMemo(() => {\n    if (isLoading) {\n      return 'loading';\n    }\n    if (!nextSection) {\n      return 'active';\n    }\n    if (nextSection && !activeAccordions.includes(nextSection)) {\n      return 'next';\n    }\n    return 'disabled';\n  }, [nextSection, activeAccordions, isLoading]);\n\n  const footerTheme = {\n    active: {\n      text: selectedProductGroupsCount > 0 ? 'Add All to Cart' : 'Add Service',\n      styles: '',\n    },\n    next: {\n      text: 'Next',\n      styles: clsx(styles.submitButtonNext, { [styles.submitButtonNextAGD]: config.brandCode === '2' }),\n    },\n    disabled: {\n      text: 'Choose Options',\n      styles: clsx(styles.submitButtonDisabled, { [styles.submitButtonDisabledAGD]: config.brandCode === '2' }),\n    },\n    loading: {\n      text: selectedProductGroupsCount > 0 ? 'Add All to Cart' : 'Add Service',\n      styles: styles.submitButtonDisabled,\n    },\n  };\n\n  useEffect(() => {\n    checkOverflow();\n  }, [activeAccordions]);\n\n  useEffect(() => {\n    const contentElement = contentRef.current;\n    if (contentElement) {\n      contentElement.addEventListener('scroll', checkScroll);\n      window.addEventListener('resize', checkOverflow);\n    }\n\n    return () => {\n      if (contentElement) {\n        contentElement.removeEventListener('scroll', checkScroll);\n        window.removeEventListener('resize', checkOverflow);\n      }\n    };\n  }, []);\n\n  return (\n    <div className={clsx(styles.customizableServiceFooter, { [styles.customizableServiceFooterShadow]: showShadow })}>\n      <Snackbar\n        message={snackBarData?.message}\n        type={snackBarData?.type}\n        open={!!snackBarData}\n        onClose={onSnackBarClose}\n      />\n      <div className={styles.footerContent} data-testid={'custom-service-footer'}>\n        <div className={styles.footerPriceContainer}>\n          <p className={styles.subtotalLabel}>SUBTOTAL:&nbsp;</p>\n          <div className={styles.priceContainer}>\n            <p data-testid={'custom-service-subtotal'} className={styles.price}>\n              {currencyFormatting(price.effectivePrice)}\n            </p>\n            {price.discount > 0 && (\n              <p className={styles.originalPrice}>{currencyFormatting(price.effectivePrice + price.discount)}</p>\n            )}\n          </div>\n        </div>\n        <p className={styles.subtotalDescription}>\n          {selectedProductGroupsCount ? (\n            <>\n              {`${selectedProductGroupsCount} ${selectedProductGroupsCount === 1 ? 'Product' : 'Products'} + `}\n              {price.originalPrice === 0 ? (\n                <>\n                  <span className={styles.freeText}>FREE</span>{' '}\n                </>\n              ) : null}\n              Service\n            </>\n          ) : (\n            'Service'\n          )}\n        </p>\n      </div>\n      <BaseButton\n        classes={clsx(styles.submitButton, footerTheme[footerStatus].styles)}\n        onClick={() => handleAddService(footerStatus)}\n        id={`customizable-services-button-${footerTheme[footerStatus].text.toString().replace(/\\s/g, '')}`}\n      >\n        <>\n          {footerTheme[footerStatus].text}\n          {footerStatus === 'loading' && <Spinner />}\n        </>\n      </BaseButton>\n    </div>\n  );\n};\n\nexport default CustomServiceFooter;\n","import { RefObject, useEffect } from 'react';\n\nimport { Handler } from './types';\n\nconst useOnClickOutside = (ref: RefObject<any>, handler: Handler) => {\n  useEffect(() => {\n    const listener = (event: Event) => {\n      if (!ref.current || ref.current.contains(event.target)) {\n        return;\n      }\n      handler(event);\n    };\n    document.addEventListener('mousedown', listener);\n    document.addEventListener('touchstart', listener);\n    return () => {\n      document.removeEventListener('mousedown', listener);\n      document.removeEventListener('touchstart', listener);\n    };\n  }, [ref, handler]);\n};\n\nexport default useOnClickOutside;\n","const addSpaceBeforeCaps = (text: string): string => {\n  return text.replace(/([A-Z])/g, ' $1').trim();\n};\n\nexport default addSpaceBeforeCaps;\n","import { MouseEvent } from 'react';\nimport clsx from 'clsx';\nimport addSpaceBeforeCaps from '@package/utils/src/addSpaceBeforeCaps';\nimport CloseIcon from '../../../Icon/CloseIcon';\n\nimport { ComboBoxMobileProps } from './types';\nimport styles from './ComboBoxMobile.module.css';\n\nconst ComboBoxMobile = <T,>({\n  options,\n  title,\n  id,\n  hideSelected,\n  selected,\n  mobile,\n  handleClose,\n  onChange,\n}: ComboBoxMobileProps<T>) => {\n  const handleChange = (event: MouseEvent<HTMLDivElement>, value: T) => {\n    event.stopPropagation();\n    onChange(value);\n    handleClose();\n  };\n\n  return (\n    <>\n      <div className={styles.selectOptions}>\n        <div className={styles.selectOptionTitle}>\n          {`${addSpaceBeforeCaps(title)}`}\n          <CloseIcon\n            id={`${id}-close-icon`}\n            className={styles.closeIcon}\n            onClick={handleClose}\n            width={36}\n            height={36}\n          />\n        </div>\n        {options.map((option: any) => {\n          if (hideSelected && option.value === selected && !mobile) return;\n\n          return (\n            <div\n              id={`${id}-option-${option.value}`}\n              onClick={(event) => handleChange(event, option)}\n              key={option.value}\n              className={clsx(styles.option, {\n                [styles.optionDisabled]: !option.available,\n                [styles.optionSelected]: option.value === selected,\n              })}\n            >\n              <span className={clsx({ [styles.disabled]: !option.available })}>\n                {option.value ? option.value : '--Not Specified--'}\n              </span>\n            </div>\n          );\n        })}\n      </div>\n      <div className={clsx(styles.backdrop, { [styles.backDropFadeIn]: closed })} onClick={handleClose} />\n    </>\n  );\n};\n\nexport default ComboBoxMobile;\n","type ComboBoxIconProps = {\n  color?: string;\n};\n\nconst ComboBoxIcon = ({ color = 'black' }: ComboBoxIconProps) => (\n  <svg width=\"11\" height=\"24\" viewBox=\"0 0 11 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n    <path d=\"M5.5 -9.61651e-07L10.2631 9L0.736862 9L5.5 -9.61651e-07Z\" fill={color} />\n    <path d=\"M5.5 24L0.73686 15H10.2631L5.5 24Z\" fill={color} />\n  </svg>\n);\n\nexport default ComboBoxIcon;\n","import styles from './SelectedComboBox.module.css';\n\nconst SelectedComboBox = () => (\n  <svg className={styles.selectedIconSvg} fill=\"none\" stroke=\"currentColor\" viewBox=\"0 0 24 24\">\n    <path strokeLinecap=\"round\" strokeLinejoin=\"round\" strokeWidth={4} d=\"M5 13l4 4L19 7\" />\n  </svg>\n);\n\nexport default SelectedComboBox;\n","export type CustomSelectOption = {\n  value: string;\n  selected: boolean;\n  available: boolean;\n};\n\nexport type ComboBoxProps = {\n  id: string;\n  options: CustomSelectOption[];\n  selectedOption: CustomSelectOption | null;\n  placeholder?: string;\n  error?: boolean;\n  disabled?: boolean;\n  required?: boolean;\n  label?: string;\n  comboboxContainerClassName?: string;\n  additionalLabel?: string;\n  onSelect: (option: CustomSelectOption) => void;\n  onCustomInput: (value: string) => Promise<string>;\n  onAdditionalLabelClick?: () => void;\n};\n\nexport const ITEM_HEIGHT = 40;\nexport const MAX_ITEMS = 6;\n","import { useState, useEffect, useRef, KeyboardEventHandler, useMemo, ChangeEvent } from 'react';\nimport { useFloating, autoUpdate, flip, offset, shift, limitShift } from '@floating-ui/react-dom';\nimport clsx from 'clsx';\nimport useOnClickOutside from '@package/hooks/src/useClickOutside';\nimport useMediaQuery from '@package/hooks/src/useMediaQuery';\nimport ComboBoxMobile from './__components/ComboBoxMobile';\nimport ComboBoxIcon from '../Icon/ComboBoxIcon';\nimport SelectedComboBox from '../Icon/SelectedComboBox';\nimport Portal from '../Portal';\nimport { ComboBoxProps, ITEM_HEIGHT, MAX_ITEMS, CustomSelectOption } from './types';\n\nimport styles from './ComboBox.module.css';\n\nconst ComboBox = ({\n  comboboxContainerClassName,\n  additionalLabel,\n  id,\n  onAdditionalLabelClick,\n  onSelect,\n  onCustomInput,\n  options = [],\n  selectedOption = null,\n  error = false,\n  disabled = false,\n  required = false,\n  placeholder = 'Select an option...',\n  label = 'Field Label',\n}: ComboBoxProps) => {\n  const [isOpen, setIsOpen] = useState(false);\n  const [searchQuery, setSearchQuery] = useState('');\n  const [highlightedIndex, setHighlightedIndex] = useState(-1);\n  const comboboxRef = useRef<HTMLDivElement>(null);\n  const searchInputRef = useRef<HTMLInputElement>(null);\n  const listRef = useRef<HTMLUListElement>(null);\n  const mobile: boolean = useMediaQuery('(max-width:1279px)');\n  const { refs, floatingStyles } = useFloating({\n    whileElementsMounted: autoUpdate,\n    placement: 'bottom-start',\n    strategy: 'fixed',\n    middleware: [\n      offset({\n        mainAxis: 8,\n      }),\n      flip({\n        fallbackPlacements: ['top-start'],\n        padding: {\n          bottom: 150,\n          top: 10,\n        },\n      }),\n      shift({\n        limiter: limitShift({\n          offset: 5,\n        }),\n      }),\n    ],\n  });\n\n  const filteredOptions = useMemo(\n    () => options.filter((option) => option?.value?.toString().toLowerCase().includes(searchQuery.toLowerCase())),\n    [searchQuery, options],\n  );\n\n  const handleClickOutside = () => {\n    setIsOpen(false);\n    setHighlightedIndex(-1);\n  };\n\n  useOnClickOutside(refs.floating, handleClickOutside);\n\n  const handleSelectOption = (option: CustomSelectOption) => {\n    if (!disabled) {\n      setSearchQuery('');\n      setIsOpen(false);\n      onSelect?.(option);\n    }\n  };\n\n  const handleOpenComboBox = () => {\n    if (!disabled) setIsOpen((prev) => !prev);\n  };\n\n  const handleComboBoxKeyDown: KeyboardEventHandler<HTMLInputElement> = (e) => {\n    switch (e.key) {\n      case 'ArrowDown':\n        e.preventDefault();\n        setHighlightedIndex((prev) => (prev < filteredOptions.length - 1 ? prev + 1 : prev));\n        break;\n      case 'ArrowUp':\n        e.preventDefault();\n        setHighlightedIndex((prev) => (prev > 0 ? prev - 1 : prev));\n        break;\n      case 'Enter':\n        e.preventDefault();\n        if (filteredOptions[highlightedIndex]) handleSelectOption(filteredOptions[highlightedIndex]);\n        break;\n      case 'Escape':\n        e.preventDefault();\n        setIsOpen(false);\n        setSearchQuery('');\n        break;\n    }\n  };\n\n  const scrollToHighlightedOption = () => {\n    const listElement = listRef.current;\n    const highlightedElement = listElement?.children[highlightedIndex];\n\n    if (listElement && highlightedElement) {\n      highlightedElement.scrollIntoView({\n        block: 'nearest',\n        behavior: 'smooth',\n      });\n    }\n  };\n\n  const renderComboBoxMobile = () =>\n    isOpen ? (\n      <ComboBoxMobile\n        options={options}\n        title={label}\n        id={id}\n        handleClose={() => setIsOpen(false)}\n        hideSelected={false}\n        selected={selectedOption?.value || ''}\n        mobile={mobile}\n        onChange={(value) => handleSelectOption(value as CustomSelectOption)}\n      />\n    ) : null;\n\n  const handleComboBoxInput = (event: ChangeEvent<HTMLInputElement>) => {\n    const target = event.target;\n    setSearchQuery(target.value);\n    setHighlightedIndex(0);\n  };\n\n  const handleCustomInput = async (event: Event) => {\n    const target = event.target as HTMLInputElement;\n    const customInputResult = await onCustomInput(target.value);\n    if (customInputResult) {\n      setSearchQuery(customInputResult);\n      setHighlightedIndex(0);\n    }\n  };\n\n  useEffect(() => {\n    /**\n     * in order to control combobox by external script we have to do this\n     *\n     */\n    const comboBoxInput = document.getElementById(`${id}-comboBox`);\n    comboBoxInput?.addEventListener('custom-input', handleCustomInput as EventListener);\n\n    return () => {\n      comboBoxInput?.removeEventListener('custom-input', handleCustomInput as EventListener);\n    };\n  }, []);\n\n  useEffect(() => {\n    if (isOpen && searchInputRef.current && !mobile) {\n      searchInputRef.current.focus();\n    }\n\n    if (!isOpen) {\n      setHighlightedIndex(-1);\n    }\n  }, [isOpen, mobile]);\n\n  useEffect(() => {\n    if (isOpen) {\n      scrollToHighlightedOption();\n    }\n  }, [highlightedIndex, isOpen]);\n\n  return (\n    <div className={clsx(styles.container, comboboxContainerClassName)} ref={comboboxRef}>\n      <div className={styles.comboBoxLabelContainer}>\n        <p className={clsx(styles.label, { [styles.labelError]: error })}>\n          {label}\n          {required && <span>*</span>}\n        </p>\n        {additionalLabel && (\n          <p className={styles.additionalLabel} onClick={() => onAdditionalLabelClick?.()}>\n            {additionalLabel}\n          </p>\n        )}\n      </div>\n      <div\n        onClick={handleOpenComboBox}\n        className={clsx(styles.comboBoxTrigger, {\n          [styles.comboBoxTriggerError]: error,\n          [styles.comboBoxTriggerDefault]: !isOpen && !error,\n          [styles.comboBoxTriggerDisabled]: disabled,\n        })}\n        ref={refs.setReference}\n      >\n        <input\n          id={`${id}-comboBox`}\n          ref={searchInputRef}\n          type=\"search\"\n          className={clsx(styles.searchInput, {\n            [styles.comboBoxActive]: isOpen,\n          })}\n          placeholder={''}\n          value={searchQuery}\n          onChange={handleComboBoxInput}\n          onKeyDown={handleComboBoxKeyDown}\n        />\n\n        <span\n          className={clsx(styles.selectedText, 'hidden', {\n            [styles.selectedTextPlaceholder]: !selectedOption,\n            [styles.comboBoxInActive]: !isOpen,\n          })}\n        >\n          {selectedOption?.value || placeholder}\n        </span>\n\n        <span className={styles.dropdownIcon}>\n          <ComboBoxIcon color={error ? 'red' : 'black'} />\n        </span>\n      </div>\n\n      {!mobile ? (\n        <Portal selector=\"#portal\">\n          <div\n            ref={refs.setFloating}\n            className={clsx(styles.dropdown, {\n              [styles.dropdownOpen]: isOpen,\n              [styles.dropdownClosed]: !isOpen,\n            })}\n            style={{\n              ...floatingStyles,\n              maxWidth: `${comboboxRef?.current?.clientWidth}px`,\n            }}\n          >\n            <ul\n              ref={listRef}\n              style={{\n                maxHeight: `${ITEM_HEIGHT * MAX_ITEMS + 6}px`,\n              }}\n              className={styles.optionsList}\n            >\n              {filteredOptions.length === 0 ? (\n                <li className={styles.noOptions}>No options found</li>\n              ) : (\n                filteredOptions.map((option, index) => (\n                  <li\n                    key={index}\n                    style={{ height: `${ITEM_HEIGHT}px` }}\n                    className={clsx(styles.option, {\n                      [styles.optionHighlighted]: index === highlightedIndex,\n                    })}\n                    onClick={() => handleSelectOption(option)}\n                    onMouseEnter={() => setHighlightedIndex(index)}\n                  >\n                    <div className={styles.comboBoxItemContainer}>\n                      <span className={styles.selectedText}>{option.value}</span>\n                      {option === selectedOption && (\n                        <span className={styles.selectedIcon}>\n                          <SelectedComboBox />\n                        </span>\n                      )}\n                    </div>\n                  </li>\n                ))\n              )}\n            </ul>\n          </div>\n        </Portal>\n      ) : (\n        renderComboBoxMobile()\n      )}\n    </div>\n  );\n};\n\nexport default ComboBox;\n","import clsx from 'clsx';\nimport { memo, useEffect, useRef } from 'react';\nimport styles from './CustomServiceDescriptionInput.module.css';\n\nconst QuestionDescriptionInput = memo(\n  ({ description, isVisible, className }: { description: string; isVisible: boolean; className?: string }) => {\n    const descriptionRef = useRef<HTMLDivElement>(null);\n\n    useEffect(() => {\n      if (isVisible && descriptionRef.current) {\n        descriptionRef.current.scrollIntoView({ behavior: 'smooth', block: 'end', inline: 'end' });\n      }\n    }, [isVisible, description]);\n\n    return (\n      <div\n        ref={descriptionRef}\n        className={clsx(styles.description, className, { [styles.descriptionVisible]: isVisible })}\n        dangerouslySetInnerHTML={{ __html: description }}\n      />\n    );\n  },\n);\n\nexport default QuestionDescriptionInput;\n","import { ServiceQuestion } from '@package/core/src/shoppingCart/types';\nimport { CustomServiceFormState, ServiceQuestionAnswerPayload } from '../../store/types';\n\n// Delay before a typed free-text answer is committed to formState (which also fires the arrow\n// recommendation HTTP). Keeps per-keystroke typing from hammering the backend.\nexport const QUESTION_INPUT_DEBOUNCE_MS = 400;\n\nexport type CustomServiceQuestionsProps = {\n  questions: ServiceQuestion[];\n  formState: CustomServiceFormState;\n  isAccordionOpen: boolean;\n  stepIndex: number;\n  parentId: string;\n  stepId: string;\n  errorSection: string | null;\n  stepTitle: string;\n  handleQuestionChange: (\n    questionTitle: string,\n    parentId: string,\n    required: boolean,\n    selectedOption: ServiceQuestionAnswerPayload,\n  ) => Promise<void>;\n  accordionChange: (stepId: string, isOpen: boolean) => void;\n  onSelectParentProduct: () => void;\n  onError: (message: string) => void;\n};\n\nexport type DebouncedQuestionInputProps = {\n  id: string;\n  committedValue: string;\n  displayDash: boolean;\n  disabled: boolean;\n  placeholder: string;\n  className: string;\n  onCommit: (value: string) => void;\n};\n","import { forwardRef, useEffect, useMemo, useRef, useState } from 'react';\nimport { clsx } from 'clsx';\nimport { ServiceQuestion, ServiceQuestionAnswerOption } from '@package/core/src/shoppingCart/types';\nimport useMediaQuery from '@package/hooks/src/useMediaQuery';\nimport useDebounce from '@package/utils/src/useDebounce';\nimport currencyFormatting from '@package/utils/src/currencyFormatting';\nimport ServiceStepIcon from '@base/components/src/Icon/ServiceStepIcon';\nimport Radio from '@base/components/src/Radio';\nimport Spinner from '@base/components/src/Spinner';\nimport ComboBox from '@base/components/src/ComboBox';\nimport { CustomSelectOption } from '@base/components/src/ComboBox/types';\nimport CustomServiceAccordionTitle from '../CustomServiceAccordionTitle';\nimport Accordion from '../Accordion';\nimport PageErrorMessage from '@base/components/src/PageErrorMessage';\nimport { QUESTIONS_PARENT_ID, ServiceQuestionAnswerPayload } from '../../store/types';\nimport QuestionDescriptionInput from '../CustomServiceDescriptionInput';\nimport { CustomServiceQuestionsProps, DebouncedQuestionInputProps, QUESTION_INPUT_DEBOUNCE_MS } from './types';\nimport styles from './CustomServiceQuestions.module.css';\n\n// A free-text service-question input. Shows keystrokes instantly from local state, but only commits the\n// value to formState (and thus fires getArrowRecommendation) after the user pauses for\n// QUESTION_INPUT_DEBOUNCE_MS — or immediately on blur, so a fast add-to-cart doesn't drop the last value.\nconst DebouncedQuestionInput = ({\n  id,\n  committedValue,\n  displayDash,\n  disabled,\n  placeholder,\n  className,\n  onCommit,\n}: DebouncedQuestionInputProps) => {\n  const [value, setValue] = useState(committedValue);\n  const debounced = useDebounce(value, QUESTION_INPUT_DEBOUNCE_MS);\n  // Last value we pushed to / received from formState — guards against re-committing an unchanged value\n  // and lets us detect external resets (service swap / REINIT) so the local echo can follow them.\n  const lastCommittedRef = useRef(committedValue);\n  // Hold the latest onCommit so the debounce effect can depend on [debounced] alone (a fresh onCommit\n  // identity every render must not re-trigger the effect and defeat the debounce).\n  const onCommitRef = useRef(onCommit);\n  onCommitRef.current = onCommit;\n\n  useEffect(() => {\n    if (committedValue !== lastCommittedRef.current) {\n      lastCommittedRef.current = committedValue;\n      setValue(committedValue);\n    }\n  }, [committedValue]);\n\n  useEffect(() => {\n    if (debounced === lastCommittedRef.current) return;\n    lastCommittedRef.current = debounced;\n    onCommitRef.current(debounced);\n  }, [debounced]);\n\n  const flush = () => {\n    if (value === lastCommittedRef.current) return;\n    lastCommittedRef.current = value;\n    onCommitRef.current(value);\n  };\n\n  return (\n    <input\n      id={id}\n      name={id}\n      type=\"text\"\n      value={displayDash ? '-' : value}\n      onChange={(e) => setValue(e.target.value)}\n      onBlur={flush}\n      placeholder={placeholder}\n      className={className}\n      disabled={disabled}\n    />\n  );\n};\n\nconst CustomServiceQuestions = forwardRef<HTMLDivElement, CustomServiceQuestionsProps>(\n  (\n    {\n      questions,\n      formState,\n      isAccordionOpen,\n      stepIndex,\n      parentId,\n      stepId,\n      stepTitle,\n      errorSection,\n      handleQuestionChange,\n      accordionChange,\n      onSelectParentProduct,\n      onError,\n    },\n    ref,\n  ) => {\n    const [visibleDescription, setVisibleDescription] = useState<{ title: string; description: string } | null>(null);\n    const [isLoading, setIsLoading] = useState(false);\n    const selectedQuestion = useRef<ServiceQuestionAnswerPayload | null>(null);\n    const descriptionRef = useRef<string>('');\n    const mobile: boolean = useMediaQuery('(max-width:1279px)');\n    const isAllQuestionsAnswered = useMemo(() => {\n      return questions.every((question) => {\n        const answer = formState.serviceQuestionAnswers.values[`${parentId}-${question.title}`];\n        return Boolean(answer);\n      });\n    }, [formState, questions]);\n\n    const isRelatedProductSelected = useMemo(() => {\n      if (!parentId || parentId === QUESTIONS_PARENT_ID) return false;\n      return !formState.relatedProducts.values[parentId];\n    }, [formState, parentId]);\n\n    const isValueInRange = (value: string, answerOptions: ServiceQuestionAnswerOption[]): boolean => {\n      const numericValue = Number(value);\n      if (isNaN(numericValue)) return false;\n\n      const numericValues = answerOptions\n        .map((option) => option.answerValue)\n        .filter((value) => !isNaN(Number(value)))\n        .map(Number);\n\n      if (numericValues.length === 0) return false;\n\n      const min = Math.min(...numericValues);\n      const max = Math.max(...numericValues);\n\n      return numericValue >= min && numericValue <= max;\n    };\n\n    const getQuestionRanges = (question: ServiceQuestion): { range: string; min: number; max: number } | null => {\n      if (!question.answerOptions) return null;\n      const numericValues = question.answerOptions\n        .map((option) => option.answerValue)\n        .filter((value) => !isNaN(Number(value)))\n        .map(Number);\n\n      if (numericValues.length === 0) return null;\n\n      const min = Math.min(...numericValues);\n      const max = Math.max(...numericValues);\n\n      return {\n        range: `${question.title}: ${min}-${max}${question.uom ? question.uom : ''}`,\n        min,\n        max,\n      };\n    };\n\n    const hasSingleAnswerOption = (answerOptions: ServiceQuestionAnswerOption[]): boolean => {\n      return !!(answerOptions && answerOptions.length === 1);\n    };\n\n    const toggleDescription = (title: string, description: string) => {\n      descriptionRef.current = description;\n      setVisibleDescription((prev) => (prev?.title === title ? null : { title, description }));\n    };\n\n    const selectQuestion = async (\n      title: string,\n      parentId: string,\n      required: boolean,\n      selectedOption: ServiceQuestionAnswerPayload,\n    ) => {\n      if (isLoading) return;\n      selectedQuestion.current = selectedOption;\n      setIsLoading(true);\n      await handleQuestionChange(title, parentId, required, selectedOption);\n      selectedQuestion.current = null;\n      setIsLoading(false);\n    };\n\n    const renderServiceLabel = (option: ServiceQuestionAnswerOption, uom: string | null) => {\n      return (\n        <div className={styles.radioText}>\n          <span>\n            {option.answerValue} {uom ? `(${uom})` : ''}\n          </span>\n          {option?.servicePrice !== null && option.servicePrice >= 0 && option.serviceId > 0 ? (\n            <span className={styles.radioPrice}>{currencyFormatting(option.servicePrice)}</span>\n          ) : null}\n          {selectedQuestion.current?.id === option.id && isLoading ? (\n            <Spinner className={styles.serviceRadioSpinner} />\n          ) : null}\n        </div>\n      );\n    };\n\n    const renderSelectedQuestion = ({ title, uom, description, answerOptions, required }: ServiceQuestion) => {\n      const isInputDisabled = !!(answerOptions && hasSingleAnswerOption(answerOptions));\n      if (!answerOptions?.length || isInputDisabled) {\n        return (\n          <div>\n            <div className={`${styles.radioGroupServiceHeader} ${styles.textInputContainer}`}>\n              <span\n                className={clsx(styles.radioGroupServiceTitle, {\n                  [styles.radioGroupServiceTitleError]:\n                    formState.serviceQuestionAnswers.errors[`${parentId}-${title}`] && errorSection === stepId,\n                })}\n              >\n                {title}\n                {required ? '*' : null}\n              </span>\n              {description ? (\n                <span className={styles.radioGroupServiceDetails} onClick={() => toggleDescription(title, description)}>\n                  {visibleDescription?.title === title ? 'Hide Details' : 'See Details'}\n                </span>\n              ) : null}\n            </div>\n            <DebouncedQuestionInput\n              id={`${parentId}-${title}`}\n              committedValue={formState.serviceQuestionAnswers.values[`${parentId}-${title}`]?.answerValue || ''}\n              displayDash={\n                formState.serviceQuestionAnswers.values[`${parentId}-${title}`]?.answerValue === '0' && isInputDisabled\n              }\n              onCommit={(inputValue) => {\n                handleQuestionChange(title, parentId, required, {\n                  answerValue: inputValue,\n                  serviceId: 0,\n                  servicePrice: null,\n                  relatedProductGroup: null,\n                  relatedQuestions: null,\n                  id: 0,\n                  uom,\n                });\n              }}\n              placeholder={`Enter ${title.toLowerCase()}${uom ? ` (${uom})` : ''}`}\n              className={clsx(styles.textInput, {\n                [styles.textInputError]:\n                  formState.serviceQuestionAnswers.errors[`${parentId}-${title}`] && errorSection === stepId,\n              })}\n              disabled={isInputDisabled}\n            />\n          </div>\n        );\n      }\n      if (\n        answerOptions.length < 4 ||\n        answerOptions.some(\n          (option) => option.serviceId > 0 && (option.relatedProductGroup !== null || option.relatedQuestions !== null),\n        ) ||\n        answerOptions.every((option) => isNaN(Number(option.answerValue)))\n      ) {\n        return (\n          <div>\n            <div className={styles.radioGroupServiceHeader}>\n              <span\n                className={clsx(styles.radioGroupServiceTitle, {\n                  [styles.radioGroupServiceTitleError]:\n                    formState.serviceQuestionAnswers.errors[`${parentId}-${title}`] && errorSection === stepId,\n                })}\n              >\n                {title}\n                {required ? '*' : null}\n              </span>\n              {description ? (\n                <span className={styles.radioGroupServiceDetails} onClick={() => toggleDescription(title, description)}>\n                  {visibleDescription?.title === title ? 'Hide Details' : 'See Details'}\n                </span>\n              ) : null}\n            </div>\n            <div className={styles.radioGroupService}>\n              {answerOptions.map((option) => (\n                <Radio\n                  id={String(option.id)}\n                  key={option.answerValue}\n                  value={option.answerValue}\n                  label={renderServiceLabel(option, uom)}\n                  checked={\n                    formState.serviceQuestionAnswers.values[`${parentId}-${title}`]?.answerValue === option.answerValue\n                  }\n                  onChange={() => {\n                    selectQuestion(title, parentId, required, {\n                      ...option,\n                      uom,\n                    });\n                  }}\n                  radioLabelClassName={styles.radioLabel}\n                  error={formState.serviceQuestionAnswers.errors[`${parentId}-${title}`] && errorSection === stepId}\n                />\n              ))}\n            </div>\n          </div>\n        );\n      }\n      return (\n        <ComboBox\n          id={title}\n          label={`${title}${uom ? ` (${uom})` : ''}`}\n          options={answerOptions.map((option) => ({\n            value: option.answerValue,\n            selected:\n              formState.serviceQuestionAnswers.values[`${parentId}-${title}`]?.answerValue === option.answerValue,\n            available: true,\n          }))}\n          selectedOption={\n            formState?.serviceQuestionAnswers?.values[`${parentId}-${title}`]?.answerValue\n              ? {\n                  value: formState?.serviceQuestionAnswers?.values[`${parentId}-${title}`]?.answerValue ?? '',\n                  selected: true,\n                  available: true,\n                }\n              : null\n          }\n          onCustomInput={async (option) => {\n            if (!answerOptions || !isValueInRange(option, answerOptions)) {\n              const ranges = getQuestionRanges({ title, uom, description, answerOptions, required });\n              if (ranges) {\n                onError(\n                  `Please select for ${stepTitle} value in range ${ranges.min}-${ranges.max}${uom ? ` ${uom}` : ''}`,\n                );\n                return '';\n              }\n            }\n            handleQuestionChange(title, parentId, required, {\n              answerValue: option,\n              serviceId: 0,\n              servicePrice: null,\n              relatedProductGroup: null,\n              relatedQuestions: null,\n              id: 0,\n              uom,\n            });\n            return option;\n          }}\n          onSelect={(option: CustomSelectOption) => {\n            const selectedAnswerOption = answerOptions.find(\n              (answerOption) => answerOption.answerValue === option.value,\n            );\n            if (selectedAnswerOption) {\n              handleQuestionChange(title, parentId, required, {\n                ...selectedAnswerOption,\n                uom,\n              });\n            }\n          }}\n          placeholder={getQuestionRanges({ title, uom, description, answerOptions, required })?.range || ''}\n          additionalLabel={\n            description ? (visibleDescription?.title === title ? 'Hide Details' : 'See Details') : undefined\n          }\n          onAdditionalLabelClick={() => description && toggleDescription(title, description)}\n          error={formState.serviceQuestionAnswers.errors[`${parentId}-${title}`] && errorSection === stepId}\n          required={required}\n          comboboxContainerClassName={styles.comboBoxContainer}\n        />\n      );\n    };\n\n    const parentProductLink = useMemo(() => {\n      return parentId === QUESTIONS_PARENT_ID ? '' : parentId;\n    }, [parentId]);\n\n    return (\n      <div ref={ref} data-testid={`custom-service-question-${stepId}`}>\n        <Accordion\n          defaultOpen={isAccordionOpen}\n          className={styles.customizableServiceAccordion}\n          dataTestId={`custom-service-question-accordion-${stepId}`}\n          title={\n            <CustomServiceAccordionTitle\n              groupName={stepTitle}\n              selectedItem={questions\n                .map((question) => {\n                  const answer = formState.serviceQuestionAnswers.values[`${parentId}-${question.title}`];\n                  if (!answer) return '';\n                  if (\n                    answer.answerValue === '0' &&\n                    question.answerOptions &&\n                    hasSingleAnswerOption(question.answerOptions)\n                  ) {\n                    return '-';\n                  }\n                  return answer.answerValue;\n                })\n                .filter((value) => value !== '')\n                .join(', ')}\n              groupUrl={''}\n              selectedProduct={null}\n              required={questions.some((question) => question.required)}\n              isAccordionOpened={isAccordionOpen}\n              isSelected={isAllQuestionsAnswered}\n              included={false}\n            />\n          }\n          icon={\n            <ServiceStepIcon\n              type={isAllQuestionsAnswered ? 'success' : isAccordionOpen ? 'opened' : 'number'}\n              number={stepIndex}\n            />\n          }\n          onChange={(isOpen) => accordionChange(stepId, isOpen)}\n        >\n          <div className={styles.questionGroupContainerInner}>\n            {isRelatedProductSelected && (\n              <PageErrorMessage\n                id=\"service-question-required-products-error\"\n                className={styles.questionErrorMessage}\n                message={\n                  <>\n                    Please select the required products:{' '}\n                    <span className=\"underline cursor-pointer\" onClick={onSelectParentProduct}>\n                      {parentProductLink}\n                    </span>\n                  </>\n                }\n                ignoreScroll\n              />\n            )}\n            <div className={styles.questionGroupContainer}>\n              <div>\n                {questions.map((question) => (\n                  <div\n                    key={question.title}\n                    className={clsx(styles.questionContainer, {\n                      [styles.customQuestionDisabled]: isRelatedProductSelected,\n                    })}\n                  >\n                    {renderSelectedQuestion(question)}\n                    {visibleDescription?.title === question.title && mobile && (\n                      <QuestionDescriptionInput\n                        description={descriptionRef.current}\n                        isVisible={!!(visibleDescription?.description && visibleDescription.title === question.title)}\n                        className={styles.questionDescriptionMobile}\n                      />\n                    )}\n                  </div>\n                ))}\n              </div>\n              {!mobile ? (\n                <QuestionDescriptionInput\n                  description={descriptionRef.current}\n                  isVisible={!!visibleDescription?.description}\n                  className={styles.questionDescriptionDesktop}\n                />\n              ) : null}\n            </div>\n          </div>\n        </Accordion>\n      </div>\n    );\n  },\n);\n\nexport default CustomServiceQuestions;\n","export default (value: string) => {\n  const invalidCharactersRegex = /[^(~`!@#$%^&*()_+=[\\]\\{}|;'‘’“”:\",.\\/<>?a-zA-Z0-9-\\s)]+/;\n  const testResult = !invalidCharactersRegex.test(value); // true if all valid\n  let correctValue = '';\n  if (!testResult) {\n    correctValue = value.replace(invalidCharactersRegex, '');\n  }\n  return [testResult, correctValue];\n};\n","import { FC } from 'react';\nimport { TextAreaProps } from './types';\nimport dynamic from 'next/dynamic';\nimport styles from './TextArea.module.css';\nimport { clsx } from 'clsx';\nimport isEnglishAlphabet from '@package/utils/src/isEnglishAlphabet';\nimport { FormErrorCode } from '@package/utils/src/formValidation';\n\nconst FormHelperText = dynamic(() => import('@base/components/src/FormHelperText'), { ssr: false });\n\nconst TextArea: FC<TextAreaProps> = (props) => {\n  const {\n    name,\n    label,\n    id,\n    maxLength,\n    value,\n    errorMessage,\n    error = false,\n    required = false,\n    classes,\n    onChange,\n    ...rest\n  } = props;\n\n  const handleChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {\n    const [isValid] = isEnglishAlphabet(e.target.value);\n    if (!isValid) {\n      window.alert(FormErrorCode.EnglishAlphabet);\n      return;\n    }\n    onChange?.(e);\n  };\n\n  return (\n    <div className={clsx(classes)}>\n      <div className={styles.textAreaLabelContainer}>\n        {label && (\n          <label htmlFor={id} className={styles.textAreaLabel}>\n            {label}\n          </label>\n        )}\n        {error && <FormHelperText error>{errorMessage}</FormHelperText>}\n      </div>\n      <div className={styles.textAreaWrapper}>\n        <textarea\n          id={id}\n          data-testid={id}\n          className={clsx({ [styles.textAreaError]: error }, styles.textArea)}\n          name={name}\n          maxLength={maxLength}\n          value={value}\n          onChange={handleChange}\n          {...rest}\n        />\n      </div>\n      {maxLength && (\n        <span className={styles.maxLengthText}>\n          {value && value.length > 0 ? `${maxLength - value.length} characters left` : `${maxLength} characters max`}\n        </span>\n      )}\n    </div>\n  );\n};\n\nexport default TextArea;\n","import { CustomizedService } from '@package/core/src/shoppingCart/types';\nimport { CustomServiceFormState, ServiceQuestionData, ServiceProductData, QUESTIONS_PARENT_ID } from './types';\nimport { calculateProductPrice } from './utils';\n\nconst createInitialState = ({\n  baseServiceId,\n  customService,\n}: {\n  baseServiceId: string;\n  customService: CustomizedService;\n}): CustomServiceFormState => {\n  const serviceQuestionAnswers: ServiceQuestionData = {\n    values: {},\n    errors: {},\n    parentId: {},\n  };\n\n  const relatedProducts: ServiceProductData = {\n    values: {},\n    errors: {},\n    parentId: {},\n  };\n\n  let subTotal = customService.price.effectivePrice;\n  if (customService.questions) {\n    customService.questions.forEach((question) => {\n      if (question.required) {\n        serviceQuestionAnswers.errors[`${QUESTIONS_PARENT_ID}-${question.title}`] = false;\n      }\n\n      // Check if there's only one answer option\n      let initialValue = null;\n      if (question.answerOptions && question.answerOptions.length === 1) {\n        // Auto-select the single option\n        initialValue = {\n          ...question.answerOptions[0],\n          uom: question.uom || null,\n        };\n      } else if (\n        question.title === 'Arrow Tip Weight' &&\n        question.answerOptions &&\n        question.answerOptions.length > 0\n      ) {\n        // Auto-select the first option for Arrow Tip Weight so the arrow-recommendation API\n        // can fire as soon as the user picks Arrow Length + Draw Weight, without forcing them\n        // to also tap the tip-weight radio.\n        initialValue = {\n          ...question.answerOptions[0],\n          uom: question.uom || null,\n        };\n      }\n\n      serviceQuestionAnswers.values[`${QUESTIONS_PARENT_ID}-${question.title}`] = initialValue;\n      serviceQuestionAnswers.parentId[`${QUESTIONS_PARENT_ID}-${question.title}`] = {\n        serviceId: baseServiceId,\n        id: QUESTIONS_PARENT_ID,\n        serviceName: QUESTIONS_PARENT_ID,\n      };\n    });\n  }\n\n  if (customService.relatedProductGroups) {\n    customService.relatedProductGroups.forEach((group) => {\n      if (group.required && !group.included) {\n        relatedProducts.values[group.groupName] =\n          group.recommendedProducts?.products?.length === 1 ? group.recommendedProducts.products[0] : null;\n        relatedProducts.errors[group.groupName] = false;\n        relatedProducts.parentId[group.groupName] = null;\n      }\n      if (group.selectedProduct) {\n        relatedProducts.values[group.groupName] = group.selectedProduct;\n        relatedProducts.errors[group.groupName] = false;\n        relatedProducts.parentId[group.groupName] = {\n          serviceId: baseServiceId,\n          id: group.groupName,\n        };\n      }\n      if (group.recommendedProducts?.products?.length === 1 && group.required) {\n        subTotal += calculateProductPrice(group.recommendedProducts.products[0]);\n      }\n    });\n  }\n  return {\n    customService,\n    serviceQuestionAnswers,\n    relatedProducts,\n    productQuestions: {},\n    subTotal,\n    touched: false,\n  };\n};\n\nexport default createInitialState;\n","import { ProductUpdate, ServiceProductData, ServiceQuestionData, ServiceQuestionAnswerPayload } from './types';\n\nimport { CustomizedService, ServiceQuestion, ServiceRelatedProductGroup } from '@package/core/src/shoppingCart/types';\n\nexport const UPDATE_QUESTION = 'UPDATE_QUESTION';\nexport const UPDATE_PRODUCT = 'UPDATE_PRODUCT';\nexport const DELETE_PRODUCT = 'DELETE_PRODUCT';\nexport const VALIDATE_FORM = 'VALIDATE_FORM';\nexport const RESET_ARROW_PRODUCTS = 'RESET_ARROW_PRODUCTS';\n// Attach ONLY the freshly-fetched arrow-cutting cut chain onto the already-selected \"Yes\", re-keyed under\n// the Service Details namespace and preserving still-valid nested picks. Every other Service Details\n// answer, product group, and product question is left untouched. Fired after Draw Length + arrow cutting\n// are both chosen and getProductQuestions returns the drawLength-dependent options.\nexport const REPLACE_ARROW_CUTTING_QUESTION = 'REPLACE_ARROW_CUTTING_QUESTION';\n\nexport type UpdateQuestionAction = {\n  type: typeof UPDATE_QUESTION;\n  payload: {\n    newQuestions: CustomizedService | null;\n    required: boolean;\n    questionId: string;\n    selectedOption: ServiceQuestionAnswerPayload;\n  };\n};\n\nexport type ValidateFormAction = {\n  type: typeof VALIDATE_FORM;\n  payload: {\n    serviceQuestionAnswers: ServiceQuestionData;\n    relatedProducts: ServiceProductData;\n  };\n};\n\nexport type UpdateProductAction = {\n  type: typeof UPDATE_PRODUCT;\n  payload: ProductUpdate;\n};\n\nexport type DeleteProductAction = {\n  type: typeof DELETE_PRODUCT;\n  payload: {\n    groupName: string;\n  };\n};\n\nexport type ResetArrowProductsAction = {\n  type: typeof RESET_ARROW_PRODUCTS;\n  payload: {\n    group: ServiceRelatedProductGroup;\n  };\n};\n\nexport type ReplaceArrowCuttingQuestionAction = {\n  type: typeof REPLACE_ARROW_CUTTING_QUESTION;\n  payload: {\n    // The freshly-fetched arrow-cutting question (from getProductQuestions with drawLength). Only its\n    // picked option's relatedQuestions are attached; its serviceId/ids are not adopted. `null` when the\n    // fetch failed or returned no arrow-cutting question — the reducer then keeps the node's initial chain.\n    question: ServiceQuestion | null;\n    baseServiceId: string;\n  };\n};\n\nexport type CustomServiceActions =\n  | UpdateQuestionAction\n  | ValidateFormAction\n  | UpdateProductAction\n  | DeleteProductAction\n  | ResetArrowProductsAction\n  | ReplaceArrowCuttingQuestionAction;\n","import { CustomServiceFormState, ProductUpdate, QUESTIONS_PARENT_ID } from './types';\nimport {\n  UPDATE_QUESTION,\n  UPDATE_PRODUCT,\n  DELETE_PRODUCT,\n  VALIDATE_FORM,\n  RESET_ARROW_PRODUCTS,\n  REPLACE_ARROW_CUTTING_QUESTION,\n  CustomServiceActions,\n} from './actionTypes';\nimport { ServiceQuestion } from '@package/core/src/shoppingCart/types';\nimport { TopSellingProductExtended } from '@package/services/src/Algonomy/types';\nimport {\n  buildServiceQuestionState,\n  calculateProductPrice,\n  checkIfOtherQuestionsRequireGroup,\n  calculateServicePriceUpdate,\n  calculateProductGroupPriceUpdate,\n  isArrowCuttingQuestion,\n  collectDescendantTitles,\n} from './utils';\n\nexport default function reducer(state: CustomServiceFormState, action: CustomServiceActions): CustomServiceFormState {\n  switch (action.type) {\n    case REPLACE_ARROW_CUTTING_QUESTION: {\n      // Attach the freshly-fetched arrow-cutting cut chain onto the already-selected answer, re-keying the\n      // nested questions under the Service Details namespace (matching the inline serviceSteps walk) and\n      // preserving still-valid prior picks. Only the arrow-cutting subtree is touched — every other Service\n      // Details answer, product group, and product question is left exactly as-is.\n      const { question: fetchedQuestion, baseServiceId } = action.payload;\n\n      const existingQuestions = state.customService.questions ?? [];\n      const targetIndex = existingQuestions.findIndex(isArrowCuttingQuestion);\n      if (targetIndex === -1) return state;\n\n      const oldQuestion = existingQuestions[targetIndex];\n      const questionKey = `${QUESTIONS_PARENT_ID}-${oldQuestion.title}`;\n      const selectedAnswer = state.serviceQuestionAnswers.values[questionKey];\n      // Nothing selected, or \"No\" picked (no cut chain to attach): leave state untouched.\n      if (!selectedAnswer) return state;\n\n      // Related-questions chain for the option the user actually picked (match by value). Prefer the\n      // freshly fetched chain; when the fetch failed or returned no arrow-cutting question (fetchedQuestion\n      // is null), fall back to the node's own (initial) chain so the user still sees the old questions.\n      // Only `relatedQuestions` are adopted — the existing option's serviceId/servicePrice/ids stay.\n      const fetchedOption = fetchedQuestion?.answerOptions?.find(\n        (option) => option.answerValue === selectedAnswer.answerValue,\n      );\n      const nodeOption = oldQuestion.answerOptions?.find((option) => option.answerValue === selectedAnswer.answerValue);\n      const attachedRelatedQuestions = fetchedOption?.relatedQuestions ?? nodeOption?.relatedQuestions ?? null;\n\n      // Node mirror: update ONLY the picked option's relatedQuestions on the in-state question node so a\n      // later reselect still carries the fetched chain; preserve every other option verbatim.\n      const updatedQuestion: ServiceQuestion = {\n        ...oldQuestion,\n        answerOptions:\n          oldQuestion.answerOptions?.map((option) =>\n            option.answerValue === selectedAnswer.answerValue\n              ? { ...option, relatedQuestions: attachedRelatedQuestions }\n              : option,\n          ) ?? null,\n      };\n      const updatedQuestions = existingQuestions.map((question, index) =>\n        index === targetIndex ? updatedQuestion : question,\n      );\n\n      // Rebuild the arrow-cutting subtree's Service Details answer maps from the updated question,\n      // preserving still-valid nested selections (buildServiceQuestionState matches by answerValue and\n      // auto-selects single options). Scoped to this one question so no other answer is rebuilt.\n      const rebuilt = buildServiceQuestionState([updatedQuestion], baseServiceId, state.serviceQuestionAnswers);\n\n      // Purge stale nested keys: any Service Details- key that belonged to the OLD subtree but is absent\n      // from the rebuilt subtree (e.g. a deeper option that no longer exists for the new drawLength).\n      const values = { ...state.serviceQuestionAnswers.values };\n      const errors = { ...state.serviceQuestionAnswers.errors };\n      const parentId = { ...state.serviceQuestionAnswers.parentId };\n      collectDescendantTitles(oldQuestion).forEach((title) => {\n        const key = `${QUESTIONS_PARENT_ID}-${title}`;\n        if (!(key in rebuilt.values)) {\n          delete values[key];\n          delete errors[key];\n          delete parentId[key];\n        }\n      });\n\n      return {\n        ...state,\n        customService: { ...state.customService, questions: updatedQuestions },\n        serviceQuestionAnswers: {\n          values: { ...values, ...rebuilt.values },\n          errors: { ...errors, ...rebuilt.errors },\n          parentId: { ...parentId, ...rebuilt.parentId },\n        },\n      };\n    }\n    case UPDATE_QUESTION: {\n      /**\n       * 1.remove previous answer state\n       * 1a.remove previous answer related question bounded to a product group\n       * (bounded and rendered below a product group when a user selects an answer)\n       * 1b.remove previous answer related question bounded to an answer without a product group\n       * (bounded and rendered below the answer when a user selects an answer)\n       * 2. update question answer and error (select new answer on question)\n       * 3. new answer has related questions, it means that  new questions (related)\n       * appear below the answer/related product group\n       * must create a state for them\n       * 3a. render below the product group\n       * user selected an answer and new questions appeared below the product group\n       * 3b. render below the answer\n       * user selected an answer and new questions appeared below the answer\n       * 4. If a new answer has related questions and those questions are related to a product group (1a, 3a)\n       * we must update a state for this related product group also\n       * make a product group required and bound related questions to the product group in updatedProductQuestions\n       * updatedProductQuestions will be used in a view for rendering questions\n       */\n      const { questionId, selectedOption, newQuestions, required } = action.payload;\n\n      const updatedQuestionsValues = { ...state.serviceQuestionAnswers.values };\n      const updatedQuestionErrors = { ...state.serviceQuestionAnswers.errors };\n      const updatedQuestionParentIds = { ...state.serviceQuestionAnswers.parentId };\n      const updatedProductValues = { ...state.relatedProducts.values };\n      const updatedProductErrors = { ...state.relatedProducts.errors };\n      const updatedProductParentIds = { ...state.relatedProducts.parentId };\n      let updatedProductQuestions = { ...state.productQuestions };\n      let updatedProductGroups = [...(state.customService.relatedProductGroups || [])];\n\n      //1. remove previous answer state\n      const previousAnswer = state.serviceQuestionAnswers.values[questionId];\n\n      if ((previousAnswer?.serviceId ?? 0) > 0 && previousAnswer?.relatedProductGroup) {\n        /**\n         * 1a. remove previous answer related question bounded to a product group\n         * (bounded and rendered below a product group when a user selects an answer)\n         */\n        const groupIndex = updatedProductGroups.findIndex(\n          (group) => group.groupName.toLowerCase() === previousAnswer.relatedProductGroup?.toLowerCase(),\n        );\n        if (groupIndex !== -1) {\n          const otherQuestionsRequireThisGroup = checkIfOtherQuestionsRequireGroup(\n            state.customService.questions,\n            questionId,\n            previousAnswer.relatedProductGroup,\n            state.serviceQuestionAnswers.values,\n          );\n          if (!updatedProductGroups[groupIndex].selectedProduct) {\n            if (!otherQuestionsRequireThisGroup) {\n              updatedProductGroups = updatedProductGroups.map((group, index) =>\n                index === groupIndex ? { ...group, required: false } : group,\n              );\n              if (previousAnswer.relatedQuestions) {\n                previousAnswer.relatedQuestions.forEach((relatedQuestion) => {\n                  const questionKey = `${previousAnswer.relatedProductGroup}-${relatedQuestion.title}`;\n                  delete updatedQuestionErrors[questionKey];\n                  delete updatedQuestionsValues[questionKey];\n                  delete updatedQuestionParentIds[questionKey];\n\n                  // Also clean up any child questions that belong to this product group question\n                  Object.keys(updatedQuestionsValues).forEach((key) => {\n                    if (\n                      key.startsWith(`${previousAnswer.relatedProductGroup}-`) &&\n                      updatedQuestionParentIds[key]?.id === previousAnswer.relatedProductGroup\n                    ) {\n                      delete updatedQuestionErrors[key];\n                      delete updatedQuestionsValues[key];\n                      delete updatedQuestionParentIds[key];\n                    }\n                  });\n                });\n              }\n              delete updatedProductValues[previousAnswer.relatedProductGroup];\n              delete updatedProductErrors[previousAnswer.relatedProductGroup];\n              delete updatedProductParentIds[previousAnswer.relatedProductGroup];\n              delete updatedProductQuestions[previousAnswer.relatedProductGroup];\n            }\n          } else {\n            if (previousAnswer?.relatedQuestions) {\n              previousAnswer?.relatedQuestions?.forEach((relatedQuestion) => {\n                const questionKey = `${previousAnswer.relatedProductGroup}-${relatedQuestion.title}`;\n                delete updatedQuestionErrors[questionKey];\n                delete updatedQuestionsValues[questionKey];\n                delete updatedQuestionParentIds[questionKey];\n              });\n              delete updatedProductQuestions[previousAnswer.relatedProductGroup];\n            }\n          }\n        }\n      } else if (previousAnswer?.relatedQuestions) {\n        /**\n         * 1b. remove previous answer related question bounded to an answer without a product group\n         * (bounded and rendered below the answer when a user selects an answer)\n         */\n        const parentId = updatedQuestionParentIds[questionId]?.id;\n        previousAnswer.relatedQuestions.forEach((relatedQuestion) => {\n          const questionKey = `${parentId}-${relatedQuestion.title}`;\n          delete updatedQuestionsValues[questionKey];\n          delete updatedQuestionErrors[questionKey];\n          delete updatedQuestionParentIds[questionKey];\n        });\n      }\n\n      //2.update question answer and error (select new answer on question)\n      const newSelectedOption = { ...selectedOption };\n      if (newQuestions?.questions) {\n        newSelectedOption.relatedQuestions = newSelectedOption.relatedQuestions\n          ? [...newSelectedOption.relatedQuestions, ...newQuestions.questions]\n          : newQuestions.questions;\n      }\n      updatedQuestionsValues[questionId] = newSelectedOption;\n      if (required) {\n        updatedQuestionErrors[questionId] = !newSelectedOption;\n      }\n\n      /**\n       * 3. new answer has related questions, it means that  new questions (related)\n       * appear below the answer/related product group\n       * must create a state for them\n       */\n      if (newSelectedOption?.relatedQuestions) {\n        if (newSelectedOption.relatedProductGroup && newSelectedOption.serviceId > 0) {\n          /**\n           * 3a. render below the product group\n           * user selected an answer and new questions appeared below the product group\n           */\n          newSelectedOption.relatedQuestions.forEach((relatedQuestion: ServiceQuestion) => {\n            updatedQuestionsValues[`${newSelectedOption.relatedProductGroup}-${relatedQuestion.title}`] = null;\n            updatedQuestionParentIds[`${newSelectedOption.relatedProductGroup}-${relatedQuestion.title}`] = {\n              serviceId: `${newSelectedOption.serviceId}`,\n              id: newSelectedOption.relatedProductGroup,\n              serviceName: newQuestions?.name || null,\n            };\n            if (relatedQuestion.required) {\n              updatedQuestionErrors[`${newSelectedOption.relatedProductGroup}-${relatedQuestion.title}`] = false;\n            }\n          });\n        } else {\n          const relatedQuestionParentId = updatedQuestionParentIds[questionId];\n          /**\n           * 3b. render below the answer\n           * user selected an answer and new questions appeared below the answer\n           */\n          if (relatedQuestionParentId) {\n            newSelectedOption.relatedQuestions.forEach((relatedQuestion: ServiceQuestion) => {\n              updatedQuestionsValues[`${relatedQuestionParentId.id}-${relatedQuestion.title}`] = null;\n              updatedQuestionParentIds[`${relatedQuestionParentId.id}-${relatedQuestion.title}`] = {\n                serviceId: relatedQuestionParentId.serviceId,\n                id: relatedQuestionParentId.id,\n                serviceName: relatedQuestionParentId.serviceName,\n              };\n              if (relatedQuestion.required) {\n                updatedQuestionErrors[`${relatedQuestionParentId.id}-${relatedQuestion.title}`] = false;\n              }\n            });\n          }\n        }\n      }\n\n      /**\n       * 4. If a new answer has related questions and those questions are related to a product group (1a, 3a)\n       * we must update a state for this related product group also\n       * make a product group required and bound related questions to the product group in updatedProductQuestions\n       * updatedProductQuestions will be used in a view for rendering questions\n       */\n      if (newSelectedOption.serviceId > 0 && newSelectedOption.relatedProductGroup) {\n        const groupIndex = updatedProductGroups.findIndex(\n          (group) => group.groupName.toLowerCase() === (newSelectedOption.relatedProductGroup as string).toLowerCase(),\n        );\n        const hasSelectedProduct =\n          updatedProductGroups[groupIndex]?.selectedProduct ||\n          updatedProductValues[newSelectedOption.relatedProductGroup];\n\n        if (groupIndex !== -1 && !hasSelectedProduct) {\n          updatedProductGroups = updatedProductGroups.map((group, index) =>\n            index === groupIndex ? { ...group, required: true } : group,\n          );\n          // Initialize product values and errors when group becomes required\n          if (newSelectedOption.relatedProductGroup) {\n            updatedProductValues[newSelectedOption.relatedProductGroup] = null;\n            updatedProductErrors[newSelectedOption.relatedProductGroup] = true;\n            updatedProductParentIds[newSelectedOption.relatedProductGroup] = {\n              serviceId: `${newSelectedOption.serviceId}`,\n              id: questionId,\n            };\n\n            // Add generic questions for the product group (if newQuestions exist)\n            if (newQuestions?.questions) {\n              updatedProductQuestions[newSelectedOption.relatedProductGroup] = newQuestions.questions;\n\n              // Initialize question entries for the product group questions\n              newQuestions.questions.forEach((question) => {\n                const questionKey = `${newSelectedOption.relatedProductGroup}-${question.title}`;\n                updatedQuestionsValues[questionKey] = null;\n                updatedQuestionParentIds[questionKey] = {\n                  serviceId: `${newSelectedOption.serviceId}`,\n                  id: newSelectedOption.relatedProductGroup!,\n                  serviceName: newQuestions.name || null,\n                };\n                if (question.required) {\n                  updatedQuestionErrors[questionKey] = false;\n                }\n              });\n            }\n          }\n        } else if (groupIndex !== -1) {\n          // Make sure the group is marked as required even if a product is already selected\n          updatedProductGroups = updatedProductGroups.map((group, index) =>\n            index === groupIndex ? { ...group, required: true } : group,\n          );\n\n          // Add generic questions for the product group even when product is already selected\n          if (newQuestions?.questions && newSelectedOption.relatedProductGroup) {\n            updatedProductQuestions[newSelectedOption.relatedProductGroup] = newQuestions.questions;\n\n            // Initialize question entries for the product group questions\n            newQuestions.questions.forEach((question) => {\n              const questionKey = `${newSelectedOption.relatedProductGroup}-${question.title}`;\n              updatedQuestionsValues[questionKey] = null;\n              updatedQuestionParentIds[questionKey] = {\n                serviceId: `${newSelectedOption.serviceId}`,\n                id: newSelectedOption.relatedProductGroup!,\n                serviceName: newQuestions.name || null,\n              };\n              if (question.required) {\n                updatedQuestionErrors[questionKey] = false;\n              }\n            });\n          }\n        }\n      }\n\n      const allQuestionsAnswered = Object.values(updatedQuestionsValues).every((question) => question !== null);\n\n      let updatedSubTotal = state.subTotal;\n      updatedSubTotal += calculateServicePriceUpdate(\n        questionId,\n        newSelectedOption,\n        state.serviceQuestionAnswers.values,\n      );\n\n      return {\n        ...state,\n        customService: {\n          ...state.customService,\n          relatedProductGroups: updatedProductGroups,\n        },\n        serviceQuestionAnswers: {\n          ...state.serviceQuestionAnswers,\n          values: updatedQuestionsValues,\n          errors: updatedQuestionErrors,\n          parentId: updatedQuestionParentIds,\n        },\n        relatedProducts: {\n          ...state.relatedProducts,\n          values: updatedProductValues,\n          errors: updatedProductErrors,\n          parentId: updatedProductParentIds,\n        },\n        productQuestions: updatedProductQuestions,\n        touched: allQuestionsAnswered ? true : state.touched,\n        subTotal: updatedSubTotal,\n      };\n    }\n    case UPDATE_PRODUCT: {\n      const { groupName, product, required, relatedQuestionsToMClear, newQuestions } = action.payload as ProductUpdate;\n      const productGroup = state.customService.relatedProductGroups?.find(\n        (group) => group.groupName.toLowerCase() === groupName.toLowerCase(),\n      );\n      const selectedProduct = productGroup?.selectedProduct;\n      const previousProduct = state.relatedProducts.values[groupName];\n      const previousPrice =\n        selectedProduct && previousProduct?.id === selectedProduct.id ? 0 : calculateProductPrice(previousProduct);\n      const newPrice = selectedProduct && product?.id === selectedProduct.id ? 0 : calculateProductPrice(product);\n\n      const updatedValues = {\n        ...state.relatedProducts.values,\n        [groupName]: product,\n      };\n\n      const updatedErrors = {\n        ...state.relatedProducts.errors,\n        [groupName]: required ? product === null : false,\n      };\n\n      // Clear related questions if provided\n      let updatedQuestionValues = { ...state.serviceQuestionAnswers.values };\n      let updatedQuestionErrors = { ...state.serviceQuestionAnswers.errors };\n      let updatedQuestionParentIds = { ...state.serviceQuestionAnswers.parentId };\n\n      if (relatedQuestionsToMClear && relatedQuestionsToMClear.length > 0) {\n        relatedQuestionsToMClear.forEach((questionKey) => {\n          updatedQuestionValues[questionKey] = null;\n          updatedQuestionErrors[questionKey] = false;\n        });\n      }\n\n      // Set new questions if provided (product-specific questions)\n      let updatedProductQuestions = { ...state.productQuestions };\n      if (newQuestions?.questions && product) {\n        // Replace generic questions with product-specific questions\n        updatedProductQuestions[groupName] = newQuestions.questions;\n\n        // Initialize new product-specific question entries\n        newQuestions.questions.forEach((question) => {\n          const questionKey = `${groupName}-${question.title}`;\n          updatedQuestionValues[questionKey] = null;\n          updatedQuestionParentIds[questionKey] = {\n            serviceId: updatedQuestionParentIds[questionKey]?.serviceId || '0',\n            id: groupName,\n            serviceName: newQuestions.name || null,\n          };\n          if (question.required) {\n            updatedQuestionErrors[questionKey] = false;\n          }\n        });\n      }\n\n      return {\n        ...state,\n        serviceQuestionAnswers: {\n          ...state.serviceQuestionAnswers,\n          values: updatedQuestionValues,\n          errors: updatedQuestionErrors,\n          parentId: updatedQuestionParentIds,\n        },\n        relatedProducts: {\n          ...state.relatedProducts,\n          values: updatedValues,\n          errors: updatedErrors,\n        },\n        productQuestions: updatedProductQuestions,\n        touched: required ? true : state.touched,\n        subTotal: calculateProductGroupPriceUpdate(state.subTotal, previousPrice, newPrice),\n      };\n    }\n    case DELETE_PRODUCT: {\n      const { groupName } = action.payload;\n      const productToDelete = state.relatedProducts.values[groupName];\n      const productGroup = state.customService.relatedProductGroups?.find((group) => group.groupName === groupName);\n      const selectedProduct = productGroup?.selectedProduct;\n\n      // Don't deduct price if deleting a product that's already in cart (selectedProduct)\n      const priceToDeduct =\n        selectedProduct && productToDelete?.id === selectedProduct.id ? 0 : calculateProductPrice(productToDelete);\n\n      const updatedValues = { ...state.relatedProducts.values };\n      const updatedErrors = { ...state.relatedProducts.errors };\n      const updatedParentIds = { ...state.relatedProducts.parentId };\n      const updatedProductQuestions = { ...state.productQuestions };\n\n      // Clean up all related questions for this product group\n      let updatedQuestionValues = { ...state.serviceQuestionAnswers.values };\n      let updatedQuestionErrors = { ...state.serviceQuestionAnswers.errors };\n      let updatedQuestionParentIds = { ...state.serviceQuestionAnswers.parentId };\n\n      // Reset all questions that belong to this product group\n      Object.keys(updatedQuestionValues).forEach((key) => {\n        if (key.startsWith(`${groupName}-`)) {\n          updatedQuestionValues[key] = null;\n          updatedQuestionErrors[key] = false;\n        }\n      });\n\n      // Check if the product group is still required\n\n      if (productGroup && productGroup.required && !productGroup.included) {\n        // If required, set to null instead of deleting so nextSection validation works\n        updatedValues[groupName] = null;\n        updatedErrors[groupName] = true; // Mark as error since required product is missing\n        updatedParentIds[groupName] = null;\n      } else {\n        // If not required, we can delete completely\n        delete updatedValues[groupName];\n        delete updatedErrors[groupName];\n        delete updatedParentIds[groupName];\n      }\n\n      return {\n        ...state,\n        serviceQuestionAnswers: {\n          ...state.serviceQuestionAnswers,\n          values: updatedQuestionValues,\n          errors: updatedQuestionErrors,\n          parentId: updatedQuestionParentIds,\n        },\n        relatedProducts: {\n          values: updatedValues,\n          errors: updatedErrors,\n          parentId: updatedParentIds,\n        },\n        productQuestions: updatedProductQuestions,\n        subTotal: state.subTotal - priceToDeduct,\n      };\n    }\n    case VALIDATE_FORM:\n      return {\n        ...state,\n        relatedProducts: {\n          ...state.relatedProducts,\n          ...action.payload.relatedProducts,\n        },\n        serviceQuestionAnswers: {\n          ...state.serviceQuestionAnswers,\n          ...action.payload.serviceQuestionAnswers,\n        },\n      };\n    case RESET_ARROW_PRODUCTS: {\n      /**\n       * Dispatched from `getArrows` (CustomService/index.tsx) after the\n       * `/product/arrow-recommendation` API returns a fresh recommendation set.\n       *\n       * Payload example:\n       *   { group: { groupName: 'Arrows',\n       *              recommendedProducts: { products: [{ id: 'PY-P-1717', ... }] },\n       *              required: true, selectedProduct: null, included: false, groupUrl: null } }\n       *\n       * Goal: swap the catalog of products in the matching group (or append it\n       * if missing), wipe stale form state tied to the group, and re-derive the\n       * subtotal — without clobbering an already-fulfilled bundle slot.\n       */\n      const { group: incomingGroup } = action.payload;\n      const incomingName = incomingGroup.groupName;\n      const existingGroups = state.customService.relatedProductGroups ?? [];\n      const groupIndex = existingGroups.findIndex((g) => g.groupName.toLowerCase() === incomingName.toLowerCase());\n\n      let updatedProductGroups = [...existingGroups];\n      let canonicalName: string;\n      let canonicalIndex: number;\n      let existingSelectedProduct: TopSellingProductExtended | null;\n\n      // 1. Resolve target group — match by case-insensitive groupName, OR append.\n      //    Before: customService.relatedProductGroups contains the pre-recommendation Arrows\n      //            (e.g. products: [{ id: 'PY-P-6857' }]).\n      //    After (match path): same slot replaced with API products (e.g. [{ id: 'PY-P-1717' }]).\n      //    After (append path): new entry pushed (only happens if the service had no Arrows group).\n      //    `included: true` is a bundle-fulfilled slot — bail with a shallow copy so we never\n      //    clobber it. Shallow copy (not bare `return state`) forces a fresh ref so consumers\n      //    re-render even though no logical change happened.\n      if (groupIndex === -1) {\n        updatedProductGroups.push({ ...incomingGroup, included: false });\n        canonicalName = incomingGroup.groupName;\n        canonicalIndex = updatedProductGroups.length - 1;\n        existingSelectedProduct = null;\n      } else {\n        const existing = existingGroups[groupIndex];\n        if (existing.included) {\n          return { ...state };\n        }\n        // Preserve `selectedProduct` (already-in-cart marker) and `included` from the existing\n        // group; only `recommendedProducts` and `required` come from the API payload.\n        updatedProductGroups[groupIndex] = {\n          ...existing,\n          recommendedProducts: incomingGroup.recommendedProducts,\n          required: incomingGroup.required,\n          selectedProduct: existing.selectedProduct,\n          included: existing.included,\n        };\n        canonicalName = existing.groupName; // keep existing casing for state keys\n        canonicalIndex = groupIndex;\n        existingSelectedProduct = existing.selectedProduct;\n      }\n\n      // 2. Snapshot all four flat dictionaries we may mutate (shallow clones — the dispatch\n      //    will produce a new state object; existing references stay frozen for React).\n      const updatedQuestionsValues = { ...state.serviceQuestionAnswers.values };\n      const updatedQuestionErrors = { ...state.serviceQuestionAnswers.errors };\n      const updatedQuestionParentIds = { ...state.serviceQuestionAnswers.parentId };\n      const updatedProductQuestions = { ...state.productQuestions };\n\n      // Service Details answers are the user's service-level selections (e.g. the arrow-cutting\n      // toggle, which carries `relatedProductGroup: 'Arrows'`). A product-catalog refresh must\n      // never clear them — only product-group-scoped state is touched below.\n      const isServiceDetailsAnswer = (key: string): boolean =>\n        state.serviceQuestionAnswers.parentId[key]?.id === QUESTIONS_PARENT_ID;\n\n      // 3. NARROW reset — clear the group's own product-scoped state, but keep service-injected\n      //    sub-questions visible (re-rendered from productQuestions) with their answer reset so the\n      //    user re-confirms them for the new catalog.\n      //    Composite-key convention: `${groupName}-${questionTitle}`.\n      //    Example before:\n      //      serviceQuestionAnswers.values: { 'Arrows-How would you like us to cut your arrows?': {...},\n      //                                       'Arrows-What custom length would you like?': {...} }\n      //      productQuestions: { 'Arrows': [ServiceQuestion, ...] }\n      //    After:\n      //      serviceQuestionAnswers.values: { 'Arrows-How would you like us to cut your arrows?': null } // reset\n      //      productQuestions: { 'Arrows': [ServiceQuestion, ...] }                                       // kept\n      const groupKeyPrefix = `${canonicalName}-`;\n      // Titles still rendered under the group (service-injected, e.g. the cut-method question).\n      const visibleGroupTitles = new Set((state.productQuestions[canonicalName] ?? []).map((q) => q.title));\n      Object.keys(updatedQuestionsValues).forEach((key) => {\n        if (!key.startsWith(groupKeyPrefix)) return;\n        const title = key.slice(groupKeyPrefix.length);\n        if (visibleGroupTitles.has(title)) {\n          // Keep the sub-question visible but reset its answer. errors[key] + parentId[key] stay,\n          // so its error key remains present (value === null gates `nextSection`).\n          updatedQuestionsValues[key] = null;\n        } else {\n          // Nested/conditional child (e.g. 'What custom length') — re-seeded when its parent option\n          // is reselected, so drop it entirely.\n          delete updatedQuestionsValues[key];\n          delete updatedQuestionErrors[key];\n          delete updatedQuestionParentIds[key];\n        }\n      });\n      // productQuestions[canonicalName] is intentionally NOT deleted, so the reset sub-question keeps\n      // rendering. (Groups with no service-injected questions simply have no entry here.)\n\n      // 4. BROAD reset — null any answer whose `relatedProductGroup` points at this group\n      //    (case-insensitive) UNLESS it lives in the Service Details section. The arrow-cutting\n      //    toggle (`Service Details-Would you like your arrows cut?`) carries\n      //    `relatedProductGroup: 'Arrows'`, so it matches — but it is a service-level selection the\n      //    user must keep, so the `isServiceDetailsAnswer` guard skips it. The clause still nulls\n      //    product-group summoners that live outside Service Details. We null the value only;\n      //    `errors[key]` stays so `nextSection` keeps surfacing the question.\n      Object.entries(updatedQuestionsValues).forEach(([key, value]) => {\n        if (value?.relatedProductGroup?.toLowerCase() === incomingName.toLowerCase() && !isServiceDetailsAnswer(key)) {\n          updatedQuestionsValues[key] = null;\n        }\n      });\n\n      // 5. Previous-product price (for subtotal delta), mirroring `DELETE_PRODUCT`'s guard:\n      //    if the user previously picked the same product that's already in cart\n      //    (`selectedProduct.id === previousProduct.id`), they already paid for it — deduct 0.\n      //    Otherwise deduct the product's effective price via `calculateProductPrice`.\n      const previousProduct = state.relatedProducts.values[canonicalName] ?? null;\n      const previousPrice =\n        existingSelectedProduct && previousProduct?.id === existingSelectedProduct.id\n          ? 0\n          : calculateProductPrice(previousProduct);\n\n      // 6. Reset product-side state for the group.\n      //    Before: relatedProducts.values: { 'Arrows': { id: 'PY-P-6857', ... } }  // stale pick\n      //    After:  relatedProducts.values: { 'Arrows': null }                       // wiped\n      //    `errors[canonicalName] = required` so nextSection / footer-CTA flag the group as\n      //    incomplete. `parentId` is overwritten only on the append path (synthetic\n      //    `{ serviceId: '0', id: 'Service Details' }` since no specific question owns it);\n      //    on match we preserve any prior sub-service attribution.\n      const updatedProductValues = { ...state.relatedProducts.values };\n      const updatedProductErrors = { ...state.relatedProducts.errors };\n      const updatedProductParentIds = { ...state.relatedProducts.parentId };\n\n      const requiredAfterMerge = updatedProductGroups[canonicalIndex].required;\n\n      updatedProductValues[canonicalName] = null;\n      updatedProductErrors[canonicalName] = requiredAfterMerge;\n      if (groupIndex === -1) {\n        updatedProductParentIds[canonicalName] = {\n          serviceId: '0',\n          id: QUESTIONS_PARENT_ID,\n        };\n      }\n\n      // 7. Auto-select on single recommended product (mirrors `createInitialState`) — if the API\n      //    returned exactly one product and the group is required, pre-pick it. Same\n      //    don't-double-charge guard applies to the new price.\n      //    Example: API returns { products: [{ id: 'PY-P-1717', priceCents: 2499, ... }] } and\n      //    `required: true` ⇒ relatedProducts.values['Arrows'] = that product, errors → false,\n      //    autoSelectedPrice ≈ 24.99 (or 0 if it equals the already-in-cart selectedProduct).\n      const products = incomingGroup.recommendedProducts?.products ?? [];\n      let autoSelectedPrice = 0;\n      if (products.length === 1 && requiredAfterMerge) {\n        updatedProductValues[canonicalName] = products[0];\n        updatedProductErrors[canonicalName] = false;\n        autoSelectedPrice =\n          existingSelectedProduct && products[0].id === existingSelectedProduct.id\n            ? 0\n            : calculateProductPrice(products[0]);\n      }\n\n      // 8. Subtotal delta + return new state.\n      //    `calculateProductGroupPriceUpdate(prev, oldPrice, newPrice)` = round(prev - old + new, 2).\n      //    `touched` flips to true when the group is required (matches UPDATE_PRODUCT's rule).\n      const updatedSubTotal = calculateProductGroupPriceUpdate(state.subTotal, previousPrice, autoSelectedPrice);\n\n      return {\n        ...state,\n        customService: {\n          ...state.customService,\n          relatedProductGroups: updatedProductGroups,\n        },\n        serviceQuestionAnswers: {\n          values: updatedQuestionsValues,\n          errors: updatedQuestionErrors,\n          parentId: updatedQuestionParentIds,\n        },\n        relatedProducts: {\n          values: updatedProductValues,\n          errors: updatedProductErrors,\n          parentId: updatedProductParentIds,\n        },\n        productQuestions: updatedProductQuestions,\n        subTotal: updatedSubTotal,\n        touched: requiredAfterMerge ? true : state.touched,\n      };\n    }\n    default:\n      return state;\n  }\n}\n","import { useRef, useMemo, useReducer, useState, useCallback, FC, useEffect } from 'react';\nimport clsx from 'clsx';\nimport ServiceStepIcon from '@base/components/src/Icon/ServiceStepIcon';\nimport { SnackbarData } from '@base/components/src/Snackbar/types';\nimport {\n  ServiceQuestion,\n  ServiceRelatedProductGroup,\n  AddCustomServiceGroupRequest,\n  CustomizedService,\n} from '@package/core/src/shoppingCart/types';\nimport { TopSellingProductExtended } from '@package/services/src/Algonomy/types';\nimport ShoppingCartApiService from '@package/core/src/shoppingCart/CartApiService';\nimport PromotionBannerApiService from '@package/core/src/promotionBanner/PromotionBannerApiService';\nimport JQueryScript from '@base/components/src/Scripts/JQueryScript';\nimport { hasJQueryInContents } from '@package/utils/src/jqueryDetection';\n\nimport Accordion from '../Accordion';\nimport CustomServiceDescription from '../CustomServiceDescription';\nimport CustomServiceProductGroup from '../CustomServiceProductGroup';\nimport CustomServiceFooter from '../CustomServiceFooter';\nimport CustomServiceAccordionTitle from '../CustomServiceAccordionTitle';\nimport { FooterStatus } from '../CustomServiceFooter/types';\nimport CustomServiceQuestions from '../CustomServiceQuestion';\nimport TextArea from '../TextArea';\n\nimport createInitialCustomServiceState from '../../store';\nimport reducer from '../../store/reducer';\nimport { apiClient, cookieStorage, listrakAnalytic } from '../../../../services';\nimport {\n  UPDATE_PRODUCT,\n  UPDATE_QUESTION,\n  DELETE_PRODUCT,\n  VALIDATE_FORM,\n  RESET_ARROW_PRODUCTS,\n  REPLACE_ARROW_CUTTING_QUESTION,\n} from '../../store/actionTypes';\nimport { QUESTIONS_PARENT_ID, ServiceQuestionAnswerPayload } from '../../store/types';\nimport {\n  getUniqueObjectsByKey,\n  isProductSelectedInGroup,\n  isArrowCuttingSelected,\n  isArrowCuttingQuestion,\n  isArrowCuttingOption,\n  buildArrowCuttingService,\n  withExpertLengthFirst,\n} from '../../store/utils';\nimport config from 'config-base';\nimport {\n  ACCORDION_DURATION,\n  ARROW_REC_QUESTIONS,\n  ArrowRecQuestionTitle,\n  CUT_METHOD_QUESTION,\n  CUSTOM_LENGTH_QUESTION,\n  DRAW_LENGTH_QUESTION,\n  EXPERT_LENGTH,\n  EXPERT_LENGTH_DRAW_OFFSET,\n  CustomizableServiceDialogProps,\n  ProductServiceStep,\n} from './types';\nimport { ArrowTipWeightCategory } from '@package/core/src/shoppingCart/interactorTypes';\nimport styles from './CustomizableService.module.css';\n\nconst services = new ShoppingCartApiService(apiClient, cookieStorage, listrakAnalytic);\nconst promotionBannerService = new PromotionBannerApiService(apiClient);\n\nconst CustomizableServiceDialog: FC<CustomizableServiceDialogProps> = ({\n  productSku,\n  serviceId,\n  customService,\n  serviceSku,\n  infoMode,\n  onClose,\n  addService,\n  addCustomService,\n}) => {\n  const [formState, dispatch] = useReducer(\n    reducer,\n    {\n      baseServiceId: serviceId,\n      customService,\n    },\n    createInitialCustomServiceState,\n  );\n  const [comment, setComment] = useState<string>('');\n  const [isLoading, setIsLoading] = useState<boolean>(false);\n  const [openSections, setOpenSections] = useState<{ [key: string]: boolean }>({ serviceInfo: true });\n  const [snackBarData, setSnackBarData] = useState<SnackbarData | null>(null);\n  const shouldLoadJQuery = useMemo(\n    () => hasJQueryInContents(customService.description, customService.alertMessage),\n    [customService.description, customService.alertMessage],\n  );\n\n  const activeAccordion = useRef<string[]>(\n    customService.alertMessage || customService.description ? ['serviceInfo'] : [],\n  );\n  const questionsRef = useRef<{ [key: string]: HTMLDivElement | null }>({});\n  const productRefs = useRef<{ [key: string]: HTMLDivElement | null }>({});\n  const contentRef = useRef<HTMLDivElement>(null);\n  const errorSection = useRef<string | null>(null);\n  const refreshQuestionsId = useRef(0);\n  const arrowRecAbortRef = useRef<AbortController | null>(null);\n  const applyQuestionsAbortRef = useRef<Map<string, AbortController>>(new Map());\n\n  const selectedProductGroupsCount = useMemo(() => {\n    return Object.keys(formState.relatedProducts.values).filter((key) => {\n      const selectedProduct = formState.relatedProducts.values[key];\n      if (!selectedProduct) return false;\n      const group = customService.relatedProductGroups?.find((g) => g.groupName === key);\n      if (!group) return false;\n      // Count if there's a selected product AND it's different from the group's original selectedProduct\n      return group.selectedProduct ? selectedProduct.id !== group.selectedProduct.id : true;\n    }).length;\n  }, [formState]);\n\n  const serviceSteps = useMemo(() => {\n    // Build dynamic questions array that includes related questions\n    const dynamicQuestions: ServiceQuestion[] = [];\n\n    // Returns the related questions to render inline in Service Details, or null.\n    // Inline when:\n    //   - the answer has no product group (e.g. peep height), or\n    //   - it's the arrow-cutting \"Yes\" (has group \"Arrows\", but shows inline by exception).\n    // Any other product-group answer renders below its group instead, so it stays null here.\n    const relatedToInline = (answer: ServiceQuestionAnswerPayload | null) =>\n      answer?.relatedQuestions && (!answer.relatedProductGroup || isArrowCuttingOption(answer))\n        ? answer.relatedQuestions\n        : null;\n\n    if (formState.customService.questions && formState.customService.questions.length > 0) {\n      formState.customService.questions.forEach((question) => {\n        // Add the original question\n        dynamicQuestions.push({ ...question });\n\n        // Inline the selected answer's full nested chain — any depth, any number of siblings per level —\n        // by walking it iteratively (no recursion). Covers peep height (1 level) and the arrow-cutting cut\n        // chain (How to cut → Custom Length → What custom length) alike.\n        // `visited` guards against a title reappearing deeper in the chain (cyclic or duplicate-title data):\n        // the walk keys the next selection by title alone, so an unguarded repeat would loop forever. Each\n        // title expands at most once per top-level chain. Seed with the root title; reset per top-level.\n        const visited = new Set<string>([question.title]);\n        const selectedAnswer = formState.serviceQuestionAnswers.values[`${QUESTIONS_PARENT_ID}-${question.title}`];\n        let level = relatedToInline(selectedAnswer);\n        while (level && level.length > 0) {\n          const nextLevel: ServiceQuestion[] = [];\n          level.forEach((relatedQuestion) => {\n            if (visited.has(relatedQuestion.title)) return;\n            visited.add(relatedQuestion.title);\n            // Reorder the cut-method question so Expert Length leads the radio group (display-only).\n            dynamicQuestions.push(withExpertLengthFirst({ ...relatedQuestion }));\n            const relatedSelected =\n              formState.serviceQuestionAnswers.values[`${QUESTIONS_PARENT_ID}-${relatedQuestion.title}`];\n            const relatedChildren = relatedToInline(relatedSelected);\n            if (relatedChildren) {\n              nextLevel.push(...relatedChildren);\n            }\n          });\n          level = nextLevel;\n        }\n      });\n    }\n\n    const questions =\n      Object.values(formState.serviceQuestionAnswers.values).length > 0\n        ? [\n            {\n              type: 'questionGroup' as const,\n              id: QUESTIONS_PARENT_ID,\n              parentId: QUESTIONS_PARENT_ID,\n              serviceStep: dynamicQuestions,\n              stepTitle: QUESTIONS_PARENT_ID,\n            },\n          ]\n        : [];\n\n    const productGroups: ProductServiceStep[] =\n      formState.customService.relatedProductGroups?.map((group) => ({\n        type: 'productGroup' as const,\n        id: group.groupName,\n        parentId: formState.relatedProducts.parentId?.[group.groupName]?.id as string,\n        serviceStep: group,\n        stepTitle: group.groupName,\n      })) || [];\n\n    // The arrow-cutting group's cut sub-questions render inline in Service Details (above); don't also\n    // render them below the Arrows product group. Suppress ONLY this group — other product-injected\n    // questions are unaffected. Undefined when cut is No/unselected, so nothing is suppressed then.\n    const arrowCuttingGroupName = Object.values(formState.serviceQuestionAnswers.values)\n      .find(isArrowCuttingOption)\n      ?.relatedProductGroup?.toLowerCase();\n\n    Object.entries(formState.productQuestions).forEach(([groupName, questions]) => {\n      if (arrowCuttingGroupName && groupName.toLowerCase() === arrowCuttingGroupName) return;\n      const groupIndex = productGroups.findIndex((group) => group.id.toLowerCase() === groupName.toLowerCase());\n      if (groupIndex !== -1) {\n        const relatedSteps: ProductServiceStep[] = questions.map((question) => {\n          const questionStep = [question];\n          question.answerOptions?.forEach((option) => {\n            if (\n              option.relatedQuestions &&\n              formState.serviceQuestionAnswers.values?.[`${groupName}-${question.title}`]?.answerValue ===\n                option.answerValue\n            ) {\n              questionStep.push(...option.relatedQuestions);\n            }\n          });\n          return {\n            type: 'questionGroup' as const,\n            id: question.title,\n            parentId: formState.serviceQuestionAnswers.parentId?.[`${groupName}-${question.title}`]?.id as string,\n            serviceStep: questionStep,\n            stepTitle:\n              (formState.serviceQuestionAnswers.parentId?.[`${groupName}-${question.title}`]?.serviceName || '') +\n              ': Service Details',\n          };\n        });\n        productGroups.splice(groupIndex + 1, 0, ...relatedSteps);\n      }\n    });\n\n    return [...questions, ...productGroups];\n  }, [formState]);\n\n  const nextSection = useMemo((): string | null => {\n    for (const step of serviceSteps) {\n      if (step.type === 'questionGroup') {\n        const questions = step.serviceStep as ServiceQuestion[];\n        const hasInvalidQuestion = questions.some(\n          (question) =>\n            // check if the question is required and if it is, check if it has an error\n            formState.serviceQuestionAnswers.errors.hasOwnProperty(`${step.parentId}-${question.title}`) &&\n            formState.serviceQuestionAnswers.values[`${step.parentId}-${question.title}`] === null,\n        );\n\n        if (hasInvalidQuestion) {\n          return step.id;\n        }\n      } else if (step.type === 'productGroup') {\n        const group = step.serviceStep as ServiceRelatedProductGroup;\n        if (\n          group.required &&\n          !group.included &&\n          isProductSelectedInGroup(group, formState.relatedProducts.values[group.groupName] === null) &&\n          formState.relatedProducts.values[group.groupName] === null\n        ) {\n          return step.id;\n        }\n      }\n    }\n\n    return null;\n  }, [formState]);\n\n  const handleAccordionChange = useCallback((accordionId: string, isOpen: boolean) => {\n    setActiveAccordion(accordionId, isOpen);\n  }, []);\n\n  const setActiveAccordion = (accordionId: string, isOpen: boolean) => {\n    if (isOpen) {\n      activeAccordion.current = [accordionId];\n    } else {\n      activeAccordion.current = [];\n    }\n    setOpenSections({ [accordionId]: isOpen });\n  };\n\n  const setSnackBarError = (message?: string) =>\n    setSnackBarData({\n      message: message || 'Please review missing information',\n      type: 'error',\n    });\n\n  const setSnackBarLoading = () =>\n    setSnackBarData({\n      message: 'Updating Order',\n      type: 'loading',\n    });\n\n  const setSnackBarSuccess = () =>\n    setSnackBarData({\n      message: 'Order updated',\n      type: 'success',\n    });\n\n  const validateForm = (status: FooterStatus) => {\n    if (nextSection) {\n      const step = serviceSteps.find((step) => step.id === nextSection);\n      if (!step) return true;\n\n      if (step.type === 'questionGroup') {\n        const questions = step.serviceStep as ServiceQuestion[];\n        const questionErrors = { ...formState.serviceQuestionAnswers.errors };\n        questions.forEach((question) => {\n          if (questionErrors.hasOwnProperty(`${step.parentId}-${question.title}`)) {\n            questionErrors[`${step.parentId}-${question.title}`] =\n              formState.serviceQuestionAnswers.values[`${step.parentId}-${question.title}`] === null;\n          }\n        });\n\n        if (status === 'disabled') {\n          setSnackBarError();\n          errorSection.current = nextSection;\n        } else {\n          errorSection.current = null;\n        }\n\n        dispatch({\n          type: VALIDATE_FORM,\n          payload: {\n            serviceQuestionAnswers: {\n              ...formState.serviceQuestionAnswers,\n              values: formState.serviceQuestionAnswers.values,\n              errors: questionErrors,\n            },\n            relatedProducts: {\n              ...formState.relatedProducts,\n            },\n          },\n        });\n\n        setActiveAccordion(step.id, true);\n        setTimeout(() => {\n          const element = questionsRef.current[step.id];\n          if (element && contentRef.current) {\n            // Calculate position relative to content container\n            const elementTop = element.offsetTop;\n            const containerTop = contentRef.current.offsetTop;\n\n            contentRef.current.scrollTo({\n              top: elementTop - containerTop - 20,\n              behavior: 'smooth',\n            });\n          }\n        }, ACCORDION_DURATION);\n      } else if (step.type === 'productGroup') {\n        const productErrors = { ...formState.relatedProducts.errors };\n        productErrors[nextSection] = true;\n\n        if (status === 'disabled') {\n          setSnackBarError();\n          errorSection.current = nextSection;\n        } else {\n          errorSection.current = null;\n        }\n\n        dispatch({\n          type: VALIDATE_FORM,\n          payload: {\n            serviceQuestionAnswers: { ...formState.serviceQuestionAnswers },\n            relatedProducts: {\n              ...formState.relatedProducts,\n              errors: productErrors,\n            },\n          },\n        });\n\n        setActiveAccordion(step.id, true);\n        setTimeout(() => {\n          const element = productRefs.current[step.id];\n          if (element && contentRef.current) {\n            const elementTop = element.offsetTop;\n            const containerTop = contentRef.current.offsetTop;\n\n            contentRef.current.scrollTo({\n              top: elementTop - containerTop - 20,\n              behavior: 'smooth',\n            });\n          }\n        }, ACCORDION_DURATION);\n      }\n\n      return false;\n    }\n\n    return true;\n  };\n\n  const handleServiceInfoChange = useCallback((isOpen: boolean) => {\n    setActiveAccordion('serviceInfo', isOpen);\n  }, []);\n\n  const onSelectServiceProduct = useCallback(\n    async (serviceProductGroupName: string, required: boolean, serviceProduct: TopSellingProductExtended | null) => {\n      const relatedQuestions = Object.entries(formState.serviceQuestionAnswers.values)\n        .filter(([key]) => key.startsWith(`${serviceProductGroupName}-`))\n        .map(([key, value]) => ({\n          questionKey: key,\n          questionTitle: key.split('-').slice(1).join('-'),\n          answer: value,\n        }));\n\n      const relatedQuestionsToMClear =\n        relatedQuestions.length > 0 ? relatedQuestions.map((q) => q.questionKey) : undefined;\n\n      let newQuestions: CustomizedService | null = null;\n\n      if (serviceProduct && relatedQuestions.length > 0) {\n        try {\n          const existingParentId = formState.serviceQuestionAnswers.parentId[relatedQuestions[0]?.questionKey];\n          const serviceIdToUse = existingParentId?.serviceId || serviceId;\n\n          const fetchedQuestions = await services.getProductQuestions(Number(serviceIdToUse), serviceProduct.id);\n          if (fetchedQuestions) {\n            newQuestions = fetchedQuestions;\n          }\n        } catch (error) {\n          console.error('Failed to fetch product questions:', error);\n        }\n      }\n\n      dispatch({\n        type: UPDATE_PRODUCT,\n        payload: {\n          groupName: serviceProductGroupName,\n          product: serviceProduct,\n          required,\n          relatedQuestionsToMClear,\n          newQuestions,\n        },\n      });\n    },\n    [dispatch, formState],\n  );\n\n  const onDeselectServiceProduct = useCallback(\n    (serviceProductGroupName: string) => {\n      dispatch({\n        type: DELETE_PRODUCT,\n        payload: {\n          groupName: serviceProductGroupName,\n        },\n      });\n    },\n    [dispatch],\n  );\n\n  const handleGetBackorderMessage = async (): Promise<string | undefined> => {\n    const result = await promotionBannerService.getAlertMessage(\n      'content/promotion-alerts/alert-service-backorder-message',\n    );\n    return result.data;\n  };\n\n  const handleAddService = async (status: FooterStatus) => {\n    const isValid = validateForm(status);\n\n    if (!isValid || isLoading) {\n      return;\n    }\n\n    try {\n      setIsLoading(true);\n      setSnackBarLoading();\n      if (!formState.customService.relatedProductGroups && !formState.customService.questions) {\n        await addService?.();\n        setSnackBarSuccess();\n        onClose();\n        return;\n      }\n\n      const relatedProducts =\n        Object.values(formState.relatedProducts.values).length > 0\n          ? Object.entries(formState.relatedProducts.values)\n              .filter(([, product]) => product !== null)\n              .map(([groupName, product]) => {\n                const group = formState.customService.relatedProductGroups?.find((g) => g.groupName === groupName);\n                return {\n                  sku: product!.id,\n                  required: Boolean(group?.required),\n                };\n              })\n          : null;\n\n      const relatedServices = getUniqueObjectsByKey(\n        Object.values(formState.serviceQuestionAnswers.parentId).filter(\n          (item): item is { serviceId: string; id: string | null; serviceName: string | null } => item !== null,\n        ),\n        'id',\n      )\n        .filter((relatedServiceId) => relatedServiceId?.id !== QUESTIONS_PARENT_ID)\n        .map((relatedServiceId) => {\n          let servicePrice = 0;\n          const services = Object.keys(formState.serviceQuestionAnswers.values)\n            .filter(\n              (key) => !key.startsWith('Service Details-') && formState.serviceQuestionAnswers.values[key]?.answerValue,\n            )\n            .map((key) => {\n              const service = formState.serviceQuestionAnswers.values[key];\n              const answerValue = service?.answerValue;\n              const uom = service?.uom;\n              if (service) {\n                servicePrice += service.servicePrice || 0;\n              }\n              return {\n                question: key.substring(`${relatedServiceId?.id}-`.length),\n                answer: uom ? `${answerValue} ${uom}` : (answerValue as string),\n              };\n            });\n          return {\n            baseProductSku: formState.relatedProducts.values[relatedServiceId?.id as string]?.id as string,\n            serviceId: Number(relatedServiceId?.serviceId),\n            serviceQuestionAnswers: services,\n            servicePrice,\n          };\n        });\n\n      const serviceQuestionAnswers = Object.keys(formState.serviceQuestionAnswers.values)\n        .filter(\n          (key) => key.startsWith('Service Details-') && formState.serviceQuestionAnswers.values[key]?.answerValue,\n        )\n        .map((key) => {\n          const answer = formState.serviceQuestionAnswers.values[key];\n          if (answer?.serviceId && answer.servicePrice) {\n            const service = relatedServices.find((service) => service.serviceId === answer.serviceId);\n            if (service) {\n              service.servicePrice += answer.servicePrice;\n            }\n          }\n          return {\n            question: key.substring('Service Details-'.length),\n            answer: answer?.uom ? `${answer.answerValue} ${answer.uom}` : (answer?.answerValue as string),\n          };\n        });\n      // The arrow-cutting service (serviceId 332) is nested under the Service Details cut chain, so the\n      // relatedServices builder above doesn't capture it — append it explicitly as its own $0 service line.\n      const arrowCuttingService = buildArrowCuttingService(\n        formState.serviceQuestionAnswers.values,\n        formState.relatedProducts.values,\n      );\n      const payload: AddCustomServiceGroupRequest = {\n        serviceId,\n        comment,\n        baseProductSku: productSku,\n        servicePrice: formState.customService.price.effectivePrice,\n        relatedProducts,\n        serviceQuestionAnswers,\n        relatedServices: arrowCuttingService ? [...(relatedServices ?? []), arrowCuttingService] : relatedServices,\n      };\n      await addCustomService?.(payload);\n      setSnackBarSuccess();\n      onClose();\n    } catch (error) {\n      console.error('Failed to add service:', error);\n      setSnackBarError('Failed to add service. Please try again or contact support.');\n    } finally {\n      setIsLoading(false);\n      // Noibu tracking beacon — fires on every add attempt (success and failure).\n      console.error('Custom service added', { serviceId, serviceName: formState.customService.name });\n    }\n  };\n\n  const getArrows = async (\n    questionTitle: string,\n    parentId: string,\n    selectedOption: ServiceQuestionAnswerPayload,\n    // Answers the caller seeded on this same tick (e.g. cut-method's single-option \"What custom length\"\n    // child). Those UPDATE_QUESTION dispatches have not yet committed to formState, so fold them in here by\n    // questionId — otherwise valueFor reads the stale pre-seed value and getArrows bails without firing.\n    overrides: Record<string, ServiceQuestionAnswerPayload> = {},\n  ) => {\n    if (!ARROW_REC_QUESTIONS.includes(questionTitle as ArrowRecQuestionTitle)) {\n      return;\n    }\n\n    const valueFor = (title: string): string | undefined => {\n      const key = `${parentId}-${title}`;\n      if (overrides[key]) return overrides[key].answerValue;\n      if (title === questionTitle) return selectedOption.answerValue;\n      return formState.serviceQuestionAnswers.values[key]?.answerValue;\n    };\n\n    // Arrow length source depends on the cut method: Custom Length uses the length the customer picked;\n    // Expert Length has no explicit input, so approximate it as their draw length plus the expert offset.\n    const cutMethod = valueFor(CUT_METHOD_QUESTION);\n    let arrowLengthRaw: string | undefined;\n    if (cutMethod === EXPERT_LENGTH) {\n      const drawLengthRaw = valueFor(DRAW_LENGTH_QUESTION);\n      const drawLength = Number(drawLengthRaw);\n      arrowLengthRaw =\n        drawLengthRaw && Number.isFinite(drawLength) ? String(drawLength + EXPERT_LENGTH_DRAW_OFFSET) : undefined;\n    } else {\n      arrowLengthRaw = valueFor(CUSTOM_LENGTH_QUESTION);\n    }\n    const drawWeightRaw = valueFor('Draw Weight');\n    const tipWeightRaw = valueFor('Arrow Tip Weight');\n\n    if (!arrowLengthRaw || !drawWeightRaw) {\n      return;\n    }\n\n    const request = {\n      productSku,\n      arrowLength: Number(arrowLengthRaw),\n      drawWeight: Number(drawWeightRaw),\n      ...(tipWeightRaw ? { tipWeightCategory: tipWeightRaw as ArrowTipWeightCategory } : {}),\n    };\n    arrowRecAbortRef.current?.abort();\n    const controller = new AbortController();\n    arrowRecAbortRef.current = controller;\n    const recomendedArrows = await services.getArrowRecommendation(request, controller.signal);\n    if (controller.signal.aborted) {\n      return;\n    }\n    if (!recomendedArrows?.recommendedProducts?.products?.length) {\n      console.error('No recommended arrows returned', request);\n      return;\n    }\n    // Only swap the Arrows product group for the fresh recommendation. The arrow-cutting Service Details\n    // questions are drawLength-specific (attached by REPLACE_ARROW_CUTTING_QUESTION) — not per-arrow — so\n    // they are deliberately left untouched here; refetching them without drawLength would collapse the\n    // cut chain and discard the customer's picked custom length.\n    dispatch({ type: RESET_ARROW_PRODUCTS, payload: { group: recomendedArrows } });\n  };\n\n  /**\n   * Fetch the service-injected questions for an answer (when it carries a serviceId) and dispatch\n   * UPDATE_QUESTION. Shared by handleQuestionChange and the arrow-cutting refresh in getArrows.\n   */\n  const applyServiceQuestions = async (\n    questionId: string,\n    selectedOption: ServiceQuestionAnswerPayload,\n    required: boolean,\n    productId?: string,\n  ) => {\n    let newQuestions: CustomizedService | null = null;\n\n    if (selectedOption.serviceId > 0) {\n      applyQuestionsAbortRef.current.get(questionId)?.abort();\n      const controller = new AbortController();\n      applyQuestionsAbortRef.current.set(questionId, controller);\n      const relatedQuestions = await services.getProductQuestions(\n        selectedOption.serviceId,\n        productId,\n        undefined,\n        controller.signal,\n      );\n      if (controller.signal.aborted) {\n        return;\n      }\n      if (relatedQuestions) {\n        newQuestions = relatedQuestions;\n      }\n    }\n\n    dispatch({\n      type: UPDATE_QUESTION,\n      payload: { questionId, selectedOption, newQuestions, required },\n    });\n  };\n\n  /**\n   * Auto-select nested single-option children at pick time so the pick-time path matches the REPLACE path.\n   * UPDATE_QUESTION (reducer step 3) seeds every related question `null`; buildServiceQuestionState (the\n   * REPLACE_ARROW_CUTTING_QUESTION path a Draw Length change runs through) instead auto-selects a lone\n   * option. Without this, a single-option child like \"What custom length\" (only value 25) renders blank the\n   * moment Custom Length is picked, then jumps to 25 after any Draw Length change. Seeding here — a plain\n   * follow-up UPDATE_QUESTION per lone-option child — keeps the reducer untouched and mirrors resolveAnswer's\n   * single-option rule. Empty-option children (`[]` → free-text input) are intentionally left null/editable.\n   * `baseId` is the namespace the reducer keyed the children under: the product group for a service answer\n   * (step 3a), else the parent's own parentId (step 3b) — a seeded child's own descendants inherit that same\n   * base, so the recursion re-uses it.\n   */\n  const seedSingleOptionRelatedQuestions = (\n    baseId: string,\n    relatedQuestions: ServiceQuestion[] | null | undefined,\n  ): Record<string, ServiceQuestionAnswerPayload> => {\n    const seeded: Record<string, ServiceQuestionAnswerPayload> = {};\n    relatedQuestions?.forEach((related) => {\n      const options = related.answerOptions;\n      if (!options || options.length !== 1) return;\n      const selected: ServiceQuestionAnswerPayload = { ...options[0], uom: related.uom || null };\n      const childId = `${baseId}-${related.title}`;\n      dispatch({\n        type: UPDATE_QUESTION,\n        payload: {\n          questionId: childId,\n          selectedOption: selected,\n          newQuestions: null,\n          required: related.required ?? false,\n        },\n      });\n      seeded[childId] = selected;\n      Object.assign(seeded, seedSingleOptionRelatedQuestions(baseId, selected.relatedQuestions));\n    });\n    return seeded;\n  };\n\n  /**\n   * Refetch the service questions for the chosen Draw Length (base service id, not the cut sub-service id)\n   * and attach the freshly-computed arrow-cutting cut chain onto the selected \"Yes\" — the nested\n   * custom-length options are drawLength-dependent. Only the arrow-cutting subtree is replaced; the rest of\n   * Service Details is untouched. Only the latest in-flight request is applied; on error the current\n   * questions are kept.\n   */\n  const refreshArrowCuttingQuestion = async (drawLength: string, isArrowCutReselect = false) => {\n    const drawLengthValue = Number(drawLength);\n    if (!Number.isFinite(drawLengthValue)) return;\n\n    const requestId = refreshQuestionsId.current + 1;\n    refreshQuestionsId.current = requestId;\n\n    let arrowCuttingQuestion: ServiceQuestion | null = null;\n    try {\n      const response = await services.getProductQuestions(Number(serviceId), productSku, drawLengthValue);\n      arrowCuttingQuestion = response?.questions?.find(isArrowCuttingQuestion) ?? null;\n    } catch (error) {\n      console.error('Failed to refresh arrow-cutting question', error);\n    }\n\n    if (requestId !== refreshQuestionsId.current) return; // superseded by a newer refresh\n    // Always dispatch for the latest request: a fetched question attaches the drawLength cut chain; null\n    // makes the reducer fall back to the node's initial chain, so a failed request shows the old questions.\n    dispatch({\n      type: REPLACE_ARROW_CUTTING_QUESTION,\n      payload: { question: arrowCuttingQuestion, baseServiceId: serviceId },\n    });\n\n    // Default the cut-method to Expert Length and fire its recommendation. Arrow cutting \"No\" doesn't clear\n    // the Service Details- cut-method key, so a prior pick survives REPLACE's prior-preservation. Cases:\n    //   - empty / already Expert (fresh \"Yes\", No→Yes from Expert, Draw Length change in Expert mode) → fire\n    //   - No→Yes re-select that left a stale Custom Length pick → force Expert (UPDATE_QUESTION drops\n    //     Custom's nested chain), then fire\n    //   - Draw Length change while Custom Length is the pick → leave it (Custom's rec is driven by its typed\n    //     length); don't override\n    // getArrows self-guards on draw weight/length, so it no-ops until those are known. Source the cut chain\n    // from the fetched question, falling back to the in-state arrow-cutting node.\n    const cutMethodKey = `${QUESTIONS_PARENT_ID}-${CUT_METHOD_QUESTION}`;\n    const cutMethodValue = formState.serviceQuestionAnswers.values[cutMethodKey];\n    const cuttingChain = arrowCuttingQuestion ?? formState.customService.questions?.find(isArrowCuttingQuestion);\n    const cutMethodQuestion = cuttingChain?.answerOptions\n      ?.flatMap((option) => option.relatedQuestions ?? [])\n      .find((related) => related.title === CUT_METHOD_QUESTION);\n    const expertOption = cutMethodQuestion?.answerOptions?.find((option) => option.answerValue === EXPERT_LENGTH);\n\n    const isExpertOrEmpty = !cutMethodValue || cutMethodValue.answerValue === EXPERT_LENGTH;\n    // Only a fresh re-select resets a stale non-Expert pick; a Draw Length change preserves an explicit Custom.\n    const shouldForceExpert = isArrowCutReselect && !isExpertOrEmpty;\n    // Fire ONLY on a fresh arrow-cut (re)select — handleQuestionChange's getArrows no-ops for the \"Yes\"\n    // option, so Change B is what fires it there. On a Draw Length change, that same getArrows already fires\n    // with the just-picked length; firing here too would read this stale pre-dispatch closure (the OLD draw\n    // length) and, via the shared arrowRec abort controller, cancel the correct request — leaving the stale\n    // recommendation as the winner.\n    if (isArrowCutReselect && expertOption && (isExpertOrEmpty || shouldForceExpert)) {\n      const expertSelected = { ...expertOption, uom: cutMethodQuestion?.uom || null };\n      if (shouldForceExpert) {\n        dispatch({\n          type: UPDATE_QUESTION,\n          payload: {\n            questionId: cutMethodKey,\n            selectedOption: expertSelected,\n            newQuestions: null,\n            required: cutMethodQuestion?.required ?? false,\n          },\n        });\n      }\n      await getArrows(CUT_METHOD_QUESTION, QUESTIONS_PARENT_ID, expertSelected);\n    }\n  };\n\n  /**\n   * When Draw Length has a value AND arrow cutting is selected (either order, or already selected), refetch\n   * and attach the drawLength-dependent cut chain onto the arrow-cutting \"Yes\". `nextValues` folds in the\n   * just-picked answer because the reducer dispatch above has not yet committed to formState.\n   */\n  const maybeRefreshArrowCuttingQuestion = async (questionId: string, selectedOption: ServiceQuestionAnswerPayload) => {\n    // Only the arrow-cutting answer itself and Draw Length feed the drawLength-dependent cut chain. Ignore\n    // every other Service Details change (peep height, tip weight, nested cut sub-questions, ...) so they\n    // don't needlessly re-hit the backend.\n    const affectsArrowCutting =\n      isArrowCuttingOption(selectedOption) || questionId === `${QUESTIONS_PARENT_ID}-Draw Length`;\n    if (!affectsArrowCutting) return;\n\n    const nextValues = { ...formState.serviceQuestionAnswers.values, [questionId]: selectedOption };\n    const drawLength = nextValues[`${QUESTIONS_PARENT_ID}-Draw Length`]?.answerValue;\n    if (drawLength && isArrowCuttingSelected(nextValues)) {\n      // Pass whether this refresh was triggered by the arrow-cutting answer itself (a No→Yes re-select) vs a\n      // Draw Length change, so the cut-method can reset to Expert only on a fresh re-select.\n      await refreshArrowCuttingQuestion(drawLength, isArrowCuttingOption(selectedOption));\n    }\n  };\n\n  const handleQuestionChange = async (\n    questionTitle: string,\n    parentId: string,\n    required: boolean,\n    selectedOption: ServiceQuestionAnswerPayload,\n  ) => {\n    const questionId = `${parentId}-${questionTitle}`;\n    // Single-option children seeded on this same tick (see else-branch), folded into getArrows so its arrow\n    // recommendation can read them before their UPDATE_QUESTION dispatches commit to formState.\n    let seededOverrides: Record<string, ServiceQuestionAnswerPayload> = {};\n\n    if (isArrowCuttingOption(selectedOption)) {\n      // Commit the cut selection and mark the Arrows group required. When the drawLength refresh below will\n      // fire (Draw Length is chosen), strip the initial relatedQuestions so the pre-fetch chain doesn't flash\n      // before the authoritative one lands — the per-option spinner covers the wait, and the refresh seeds\n      // the chain (falling back to this initial chain on failure). When no refresh will fire (no Draw\n      // Length), keep the initial chain so the cut sub-questions still render.\n      const nextValues = { ...formState.serviceQuestionAnswers.values, [questionId]: selectedOption };\n      const willRefresh = !!nextValues[`${QUESTIONS_PARENT_ID}-Draw Length`]?.answerValue;\n      dispatch({\n        type: UPDATE_QUESTION,\n        payload: {\n          questionId,\n          selectedOption: willRefresh ? { ...selectedOption, relatedQuestions: null } : { ...selectedOption },\n          newQuestions: null,\n          required,\n        },\n      });\n      // Yes picked BEFORE Draw Length keeps the initial cut chain (willRefresh false); the reducer seeds the\n      // cut-method null, and the Expert default would otherwise only land later via REPLACE — after the first\n      // Draw Length pick's getArrows has already read that null cut-method, fallen into the custom-length\n      // branch, and bailed (no arrow recommendation ever fires). Seed Expert here so it is committed before\n      // that pick — then getArrows sees Expert + the new Draw Length and fires. When willRefresh is true the\n      // chain is stripped and REPLACE seeds Expert instead, so this only runs on the no-Draw-Length path.\n      if (!willRefresh) {\n        const cutMethodQuestion = selectedOption.relatedQuestions?.find(\n          (related) => related.title === CUT_METHOD_QUESTION,\n        );\n        const expertOption = cutMethodQuestion?.answerOptions?.find((option) => option.answerValue === EXPERT_LENGTH);\n        if (expertOption) {\n          dispatch({\n            type: UPDATE_QUESTION,\n            payload: {\n              questionId: `${QUESTIONS_PARENT_ID}-${CUT_METHOD_QUESTION}`,\n              selectedOption: { ...expertOption, uom: cutMethodQuestion?.uom || null },\n              newQuestions: null,\n              required: cutMethodQuestion?.required ?? false,\n            },\n          });\n        }\n      }\n    } else {\n      const productId = selectedOption.relatedProductGroup\n        ? formState.relatedProducts.values[selectedOption.relatedProductGroup]?.id\n        : undefined;\n      await applyServiceQuestions(questionId, selectedOption, required, productId);\n      // Match the REPLACE path: auto-select any lone-option nested child the reducer just seeded null (e.g.\n      // \"What custom length\" under Custom Length), so it doesn't render blank now and 25 after a DL change.\n      const childBaseId =\n        selectedOption.serviceId > 0 && selectedOption.relatedProductGroup\n          ? selectedOption.relatedProductGroup\n          : parentId;\n      seededOverrides = seedSingleOptionRelatedQuestions(childBaseId, selectedOption.relatedQuestions);\n    }\n\n    await getArrows(questionTitle, parentId, selectedOption, seededOverrides);\n\n    await maybeRefreshArrowCuttingQuestion(questionId, selectedOption);\n  };\n\n  useEffect(() => {\n    if (document) {\n      setTimeout(() => {\n        const htmlRoot = document?.querySelector('html');\n        htmlRoot?.classList.add('preventDialogScroll');\n      }, 0);\n    }\n    return () => {\n      if (document) {\n        const htmlRoot = document?.querySelector('html');\n        htmlRoot?.classList.remove('preventDialogScroll');\n      }\n    };\n  }, []);\n\n  return (\n    <>\n      <p className={styles.customizableServiceTitle}>{customService.name}</p>\n      <div className={styles.customizableServiceContent} ref={contentRef} id=\"customizableServiceContent\">\n        {formState.customService.banner ? (\n          <img\n            src={formState.customService.banner}\n            className={styles.customServiceBanner}\n            data-testid={'custom-service-banner'}\n            alt=\"Custom Service Banner\"\n            width={328}\n            height={75}\n          />\n        ) : null}\n        {/* Renders service info and questions in an accordion layout if either exists,\n              otherwise renders them directly in the content area */}\n        <CustomServiceDescription\n          description={\n            infoMode ||\n            (!formState.customService.questions &&\n              !formState.customService.relatedProductGroups &&\n              formState.customService.description)\n              ? formState.customService.description\n              : null\n          }\n          alertMessage={\n            infoMode ||\n            (!formState.customService.questions &&\n              !formState.customService.relatedProductGroups &&\n              formState.customService.alertMessage)\n              ? formState.customService.alertMessage\n              : null\n          }\n        />\n        {/* questions or groups exists now we show all info in accordions */}\n        {!infoMode && (customService.questions || customService.relatedProductGroups) ? (\n          <>\n            {formState.customService.description || formState.customService.alertMessage ? (\n              <Accordion\n                defaultOpen={openSections.serviceInfo}\n                title={'Service Info'}\n                dataTestId={'custom-service-description-accordion'}\n                icon={<ServiceStepIcon type=\"success\" />}\n                className={clsx(styles.descriptionAccordion, styles.descriptionAccordionRequired, {\n                  [styles.descriptionAccordionRequiredAGD]: config.brandCode === '2',\n                })}\n                onChange={handleServiceInfoChange}\n              >\n                <CustomServiceDescription\n                  description={formState.customService.description ?? null}\n                  alertMessage={formState.customService.alertMessage ?? null}\n                />\n              </Accordion>\n            ) : null}\n            {serviceSteps.map((step, stepIndex) => {\n              if (step.type === 'questionGroup') {\n                return (\n                  <CustomServiceQuestions\n                    key={step.id}\n                    ref={(el) => {\n                      questionsRef.current[step.id] = el;\n                    }}\n                    stepIndex={stepIndex + 1}\n                    stepId={step.id}\n                    stepTitle={step.stepTitle}\n                    questions={step.serviceStep as ServiceQuestion[]}\n                    isAccordionOpen={openSections[step.id]}\n                    parentId={step.parentId as string}\n                    formState={formState}\n                    errorSection={errorSection.current}\n                    accordionChange={handleAccordionChange}\n                    handleQuestionChange={handleQuestionChange}\n                    onError={setSnackBarError}\n                    onSelectParentProduct={() => {\n                      setActiveAccordion(step.parentId as string, true);\n                    }}\n                  />\n                );\n              }\n              if (step.type === 'productGroup') {\n                return (\n                  <CustomServiceProductGroup\n                    key={step.id}\n                    ref={(el) => {\n                      productRefs.current[step.id] = el;\n                    }}\n                    stepId={step.id}\n                    relatedProductGroup={step.serviceStep as ServiceRelatedProductGroup}\n                    productFormState={formState.relatedProducts}\n                    stepIndex={stepIndex + 1}\n                    stepTitle={step.stepTitle}\n                    isAccordionOpened={openSections[step.id]}\n                    onSelectServiceProduct={onSelectServiceProduct}\n                    onDeselectServiceProduct={onDeselectServiceProduct}\n                    getBackorderMessage={handleGetBackorderMessage}\n                    accordionChange={handleAccordionChange}\n                    errorSection={errorSection.current}\n                  />\n                );\n              }\n            })}\n            {formState.customService.commentAllowed ? (\n              <Accordion\n                dataTestId={'custom-service-comments-accordion'}\n                defaultOpen={openSections.comments}\n                title={\n                  <CustomServiceAccordionTitle\n                    groupName={'Comments'}\n                    selectedItem={null}\n                    groupUrl={''}\n                    selectedProduct={null}\n                    required={false}\n                    isAccordionOpened={openSections.comments}\n                    isSelected={false}\n                    included={false}\n                    className={clsx({ [styles.commentAccordionActive]: !!comment })}\n                  />\n                }\n                icon={\n                  <ServiceStepIcon type={comment ? 'success' : 'number'} number={serviceSteps.length + 1} optional />\n                }\n                className={clsx(styles.descriptionAccordion, {\n                  [styles.descriptionAccordionRequired]: !!comment,\n                  [styles.descriptionAccordionRequiredAGD]: config.brandCode === '2' && !!comment,\n                })}\n                onChange={(isOpen) => setActiveAccordion('comments', isOpen)}\n              >\n                <TextArea\n                  value={comment}\n                  maxLength={comment.length > 0 ? 1000 : undefined}\n                  onChange={(e) => setComment(e.target.value)}\n                  name=\"comment\"\n                  id=\"comment\"\n                  placeholder=\"Customer comments and text right here\"\n                  classes={styles.commentTextArea}\n                />\n              </Accordion>\n            ) : null}\n          </>\n        ) : null}\n      </div>\n      {!infoMode ? (\n        <CustomServiceFooter\n          contentRef={contentRef}\n          price={{ ...customService.price, effectivePrice: formState.subTotal }}\n          nextSection={nextSection}\n          selectedProductGroupsCount={selectedProductGroupsCount}\n          handleAddService={handleAddService}\n          activeAccordions={activeAccordion.current}\n          isLoading={isLoading}\n          snackBarData={snackBarData}\n          onSnackBarClose={() => setSnackBarData(null)}\n        />\n      ) : null}\n      {shouldLoadJQuery ? <JQueryScript /> : null}\n    </>\n  );\n};\n\nexport default CustomizableServiceDialog;\n","import { FC } from 'react';\nimport useServiceMissingItem from '@package/hooks/src/useServiceMissingItem';\nimport LoadMoreSpinner from '@base/components/src/LoadMoreSpinner';\nimport { CustomizableServiceDialogLoaderProps } from './types';\nimport CustomizableServiceDialog from './__components/CustomService';\n\nconst CustomizableServiceDialogLoader: FC<CustomizableServiceDialogLoaderProps> = ({\n  productSku,\n  serviceId,\n  infoMode,\n  onClose,\n  addService,\n  addCustomService,\n}) => {\n  const { customService, isCustomizableServiceInfoFetching } = useServiceMissingItem({\n    relatedProductSku: productSku,\n    serviceId,\n  });\n\n  return !customService || isCustomizableServiceInfoFetching ? (\n    <LoadMoreSpinner />\n  ) : (\n    <CustomizableServiceDialog\n      customService={customService}\n      productSku={productSku}\n      serviceId={String(serviceId)}\n      infoMode={infoMode}\n      addService={addService}\n      onClose={onClose}\n      addCustomService={addCustomService}\n    />\n  );\n};\n\nexport default CustomizableServiceDialogLoader;\n","import { FC } from 'react';\nimport AnchorDialog from '@base/components/src/AnchorDialog';\nimport CustomizableServiceDialogLoader from '../CustomizableService';\n\nimport styles from './CustomServiceAnchorDialog.module.css';\nimport { CustomServiceAnchorDialogProps } from './types';\n\nconst CustomServiceAnchorDialog: FC<CustomServiceAnchorDialogProps> = ({\n  productSku,\n  serviceId,\n  infoMode,\n  addService,\n  addCustomService,\n  ...rest\n}) => (\n  <AnchorDialog\n    className={styles.dialog}\n    contentClassName={styles.dialogContent}\n    paperClassName={styles.dialogPaper}\n    titleClassName={styles.customizableServiceTitle}\n    iconClassName={styles.customizableServiceIcon}\n    {...rest}\n    id={`customizable-service-dialog-${serviceId}`}\n  >\n    {(_: any, close: () => void) => (\n      <CustomizableServiceDialogLoader\n        productSku={productSku}\n        serviceId={serviceId}\n        infoMode={infoMode}\n        onClose={close}\n        addService={addService}\n        addCustomService={addCustomService}\n      />\n    )}\n  </AnchorDialog>\n);\n\nexport default CustomServiceAnchorDialog;\n","import { CustomProductDescriptionProps } from './types';\n\nconst CustomProductDescription = ({ testid, description }: Readonly<CustomProductDescriptionProps>) =>\n  description ? (\n    <div data-testid={testid}>\n      <p>Custom Build</p>\n      <p>{description.join(' • ')}</p>\n    </div>\n  ) : null;\n\nexport default CustomProductDescription;\n","import ArrowUpIcon from '@base/components/src/Icon/KeyboardArrowUp';\nimport QuestionMarkIcon from '@base/components/src/Icon/QuestionMarkIcon';\nimport Popover from '@base/components/src/Popover';\nimport { ProductFeeProps } from './types';\nimport clsx from 'clsx';\n\nimport styles from './ProductFee.module.css';\n\nconst ProductFee = ({ data, className }: Readonly<ProductFeeProps>) => (\n  <div className={clsx(styles.productFeeBox, className)}>\n    <div className=\"mr-2\">\n      <span>{data.name}</span>\n    </div>\n    <Popover\n      data-testid=\"product-fee\"\n      contentClassName={clsx(styles.productTooltipPaper, styles.tooltipContentWrapper)}\n      containerClassName={styles.tooltipContainer}\n      showShadow={false}\n      anchorComponent={() => <QuestionMarkIcon className={styles.questionMark} />}\n      popoverContent={() => (\n        <div className={styles.tooltipContent}>\n          <span className={styles.arrowUp}>\n            <ArrowUpIcon className={`${styles.arrowUp} ${styles.arrowUpColor}`} />\n          </span>\n          <span>\n            <div className={styles.tooltipContentMessage}>{data.message}</div>\n          </span>\n        </div>\n      )}\n    />\n  </div>\n);\n\nexport default ProductFee;\n","import Link from '@base/components/src/Link';\nimport { MouseEventHandler } from 'react';\nimport clsx from 'clsx';\n\nimport CustomServiceAnchorDialog from '../../../../__components/CustomServiceAnchorDialog';\nimport styles from './ProductCardName.module.css';\nimport { ProductCardNameProps } from './types';\n\nconst ProductCardName = ({ product, layout, isReviewOrderPage, isShippingOptionPage }: ProductCardNameProps) =>\n  product.serviceInfo ? (\n    <CustomServiceAnchorDialog\n      disableBackdropClick\n      id={`custom-service-product-card-name-dialog`}\n      productSku={product.mainSku ?? ''}\n      serviceId={Number(product.id.replace('PY-S-', ''))}\n      infoMode\n      anchorContent={(open: MouseEventHandler<HTMLDivElement> | undefined) => (\n        <div data-testid=\"product-name\" onClick={open} className=\"productName\">\n          <p\n            className={clsx(styles.productName, {\n              [styles.orderDetailsProductName]: layout === 'order-details',\n              [styles.orderDetailsProductNameReview]: isReviewOrderPage || isShippingOptionPage,\n            })}\n          >\n            {product.name}\n          </p>\n        </div>\n      )}\n    />\n  ) : (\n    <div className=\"productName\">\n      <Link data-testid=\"product-name-link\" href={product.productUrl}>\n        <p\n          className={clsx(styles.productName, {\n            [styles.orderDetailsProductName]: layout === 'order-details',\n            [styles.orderDetailsProductNameReview]: isReviewOrderPage || isShippingOptionPage,\n          })}\n        >\n          {product.name}\n        </p>\n      </Link>\n    </div>\n  );\n\nexport default ProductCardName;\n","import clsx from 'clsx';\n\nimport styles from './ProductDescription.module.css';\nimport { ProductDescriptionProps } from './types';\n\nconst ProductDescription = ({ description, brandItemCode, className, layout, isReviewOrderPage, isShippingOptionPage }: Readonly<ProductDescriptionProps>) =>\n  description && !isShippingOptionPage ? (\n    <div\n      className={clsx(styles.productDescription, className, {\n        [styles.orderDetailsProductDescription]: layout === 'order-details',\n        [styles.orderDetailsProductReviewDescription]: isReviewOrderPage,\n      })}\n    >\n      {[brandItemCode, ...description].join(' • ')}\n    </div>\n  ) : null;\n\nexport default ProductDescription;\n","import Accordion from '@base/components/src/Accordion';\nimport Image from '@base/components/src/Image';\nimport { ProductConditionRank } from '@package/core/src/shoppingCart/types';\nimport clsx from 'clsx';\nimport config from 'config-base';\n\nimport ProductCardName from '@/components/ProductCardName';\nimport ProductDescription from '../ProductDescription';\n\nimport styles from './ProductInfo.module.css';\nimport { ProductInfoProps } from './types';\n\nconst ProductInfo = (props: ProductInfoProps) => {\n  const { product, productTextClassName, layout, isReviewOrderPage, isShippingOptionPage } = props;\n  const productIDDescription = config.brandCode === '2' ? product.brandItemCode : product.id;\n  const renderProductWithDescription = (productTypeService: boolean) =>\n    !productTypeService ? (\n      <>\n        <Accordion\n          title={\n            <p data-testid=\"product-sku\" className={`${styles.productBoldText} productBoldText`}>\n              {!product.itemConditionRank && (\n                <span\n                  className={clsx(styles.productId, productTextClassName, {\n                    [styles.orderDetailsProductId]: layout === 'order-details',\n                    [styles.orderDetailsReviewProductId]: isReviewOrderPage,\n                  })}\n                >\n                  {productIDDescription}\n                </span>\n              )}\n              {product.itemConditionRank && (\n                <span\n                  data-testid=\"item-condition-rank\"\n                  className={clsx(\n                    styles.productConditionRank,\n                    styles.productConditionRankAccordion,\n                    productTextClassName,\n                  )}\n                >\n                  {ProductConditionRank[product.itemConditionRank]}\n                </span>\n              )}\n              <span data-testid=\"product-sku-icon\" className={styles.infoIconWrapper}>\n                <Image\n                  src=\"/marketplace-static/images/icons/infoIcon.svg\"\n                  alt=\"info icon\"\n                  width={10}\n                  height={10}\n                  className={`${styles.infoIcon} infoIcon`}\n                />\n              </span>\n            </p>\n          }\n          withoutIcon\n          className={styles.accordionProductDesc}\n          headerClassName={styles.accordionProductDescTitle}\n          contentClassName={styles.accordionProductDescContent}\n        >\n          <ProductDescription\n            description={product.productSpecifications}\n            brandItemCode={productIDDescription ?? ''}\n            layout={layout}\n            isReviewOrderPage={isReviewOrderPage}\n            isShippingOptionPage={isShippingOptionPage}\n          />\n        </Accordion>\n        <div className={styles.productDescriptionDesktop}>\n          <ProductDescription\n            description={product.productSpecifications}\n            brandItemCode={productIDDescription ?? ''}\n            layout={layout}\n            isReviewOrderPage={isReviewOrderPage}\n            isShippingOptionPage={isShippingOptionPage}\n          />\n        </div>\n      </>\n    ) : (\n      <>\n        <ProductDescription\n          description={product.productSpecifications}\n          brandItemCode={productIDDescription ?? ''}\n          layout={layout}\n          isReviewOrderPage={isReviewOrderPage}\n          isShippingOptionPage={isShippingOptionPage}\n        />\n        {product.itemConditionRank && (\n          <span\n            data-testid=\"product-condition-rank\"\n            className={clsx(styles.productConditionRank, styles.productConditionRankDescription)}\n          >\n            {ProductConditionRank[product.itemConditionRank]}\n          </span>\n        )}\n      </>\n    );\n\n  return (\n    <>\n      <ProductCardName\n        product={product}\n        layout={layout}\n        isReviewOrderPage={isReviewOrderPage}\n        isShippingOptionPage={isShippingOptionPage}\n      />\n      {!product.superConfigurator &&\n        !isShippingOptionPage &&\n        (product.productSpecifications ? (\n          renderProductWithDescription(product.typeService)\n        ) : (\n          <div data-testid=\"product-sku\" className={`${styles.productBoldText} productBoldText`}>\n            <span\n              className={clsx(styles.productId, {\n                [styles.orderDetailsProductId]: layout === 'order-details',\n                [styles.orderDetailsReviewProductId]: isReviewOrderPage,\n              })}\n            >\n              {productIDDescription}\n            </span>\n            {product.itemConditionRank && (\n              <span className={styles.productConditionRank}>{ProductConditionRank[product.itemConditionRank]}</span>\n            )}\n          </div>\n        ))}\n    </>\n  );\n};\n\nexport default ProductInfo;\n","import styles from './ProductPurchase.module.css';\n\ntype ProductPurchaseLimitMessageProps = {\n  testid: string;\n  message: string;\n};\n\nexport default function ProductPurchaseLimitMessage({ testid, message }: ProductPurchaseLimitMessageProps) {\n  return (\n    <div className=\"my-4\" data-testid={testid}>\n      <div className={styles.purchaseLimitContainer}>\n        <div>\n          <span className={styles.purchaseLimitNote}>Please note:</span>\n          <span>{message}</span>\n        </div>\n      </div>\n    </div>\n  );\n}\n","import { useState } from 'react';\n\nimport Dialog from '../Dialog';\n\n\nconst AnchorDialog = ({ children, anchorContent, ...rest }: any) => {\n  const [isVisible, setIsVisible] = useState<boolean>(false);\n\n  const open = (): void => setIsVisible(true);\n  const close = (): void => setIsVisible(false);\n  return (\n    children && (\n      <>\n        {anchorContent(open, close)}\n        <Dialog open={isVisible} onClose={close} {...rest}>\n          {typeof children === 'function' ? children(open, close) : children}\n        </Dialog>\n      </>\n    )\n  );\n};\n\nexport default AnchorDialog;\n","'use client';\n\nimport clsx from 'clsx';\nimport { useRef } from 'react';\nimport CheckBoxIcon from '../Icon/CheckCheckboxIcon';\nimport styles from './FormCheckbox.module.css';\nimport config from 'config-base';\nimport { CheckboxProps } from './types';\n\nconst Checkbox = ({\n  checkboxMainContainerClasses,\n  checkboxContainerClassName,\n  checkboxControllerClassName,\n  checkboxLabelClassName,\n  label,\n  id,\n  disabled,\n  value,\n  name,\n  labelClick,\n  onChange,\n  clickOnLabel,\n  clickOnLabelCallback,\n}: CheckboxProps) => {\n  const checkboxRef = useRef<HTMLInputElement>(null);\n  const checkboxControllerStyles: string = clsx(\n    styles.checkboxControler,\n    { [styles.checkboxControlerChecked]: value },\n    { [styles.checkboxControlerDisabled]: disabled },\n    checkboxControllerClassName,\n  );\n\n  return (\n    <div className={clsx(styles.checkboxMainContainer, checkboxMainContainerClasses)}>\n      <label className={clsx(styles.checkboxContainer, checkboxContainerClassName)}>\n        <input\n          type=\"checkbox\"\n          name={name}\n          ref={checkboxRef}\n          id={id}\n          data-testid={`checkbox-${id}`}\n          className={styles.checkboxInput}\n          aria-labelledby={`checkbox-${id}`}\n          aria-label={`checkbox-${id}`}\n          disabled={disabled}\n          checked={value}\n          onChange={onChange}\n        />\n        <span className={checkboxControllerStyles}>\n          {value && (\n            <CheckBoxIcon\n              className={clsx(styles.checkboxIcon, 'checkboxIcon', {\n                [styles.checkboxIconDisabled]: disabled,\n              })}\n            />\n          )}\n        </span>\n      </label>\n      <span\n        className={clsx(checkboxLabelClassName, styles.checkboxLabel, {\n          [styles.checkboxLabelDisabled]: disabled,\n          [styles.checkboxLabelAGD]: config.brandCode !== '0',\n          [styles.checkboxLabelCheckedAGD]: config.brandCode !== '0' && value,\n        })}\n        data-testid={`checkbox-label-${id}`}\n        onClick={() => {\n          if (labelClick) {\n            checkboxRef.current?.click();\n          }\n          if (clickOnLabel && clickOnLabelCallback) {\n            clickOnLabelCallback();\n          }\n        }}\n      >\n        {label}\n      </span>\n    </div>\n  );\n};\n\nexport default Checkbox;\n","import clsx from 'clsx';\nimport { PropsWithChildren } from 'react';\nimport { FormHelperTextProps } from './types';\nimport styles from './FormHelperText.module.css';\n\nconst FormHelperText = ({\n  className,\n  error,\n  Component = 'span',\n  children,\n  ...rest\n}: PropsWithChildren<FormHelperTextProps>) => (\n  <div className={clsx(styles.helperText, 'helperText', className)} {...rest}>\n    {children}\n  </div>\n);\n\nexport default FormHelperText;\n","import { FC, memo, useEffect, useState } from 'react';\nimport styles from './ServiceStepIcon.module.css';\nimport { ServiceStepIconProps } from './types';\nimport clsx from 'clsx';\nimport config from 'config-base';\n\nconst ServiceStepIcon: FC<ServiceStepIconProps> = ({ type, number, className = '', optional = false }) => {\n  const [animationStarted, setAnimationStarted] = useState(false);\n  const [checkVisible, setCheckVisible] = useState(type === 'success');\n  const [numberVisible, setNumberVisible] = useState(type !== 'success');\n  const [initialType] = useState(type);\n\n  useEffect(() => {\n    if (type === 'success' && initialType !== 'success') {\n      setAnimationStarted(true);\n\n      const hideNumberTimer = setTimeout(() => {\n        setNumberVisible(false);\n      }, 300);\n\n      const showCheckTimer = setTimeout(() => {\n        setCheckVisible(true);\n      }, 600);\n\n      return () => {\n        clearTimeout(hideNumberTimer);\n        clearTimeout(showCheckTimer);\n      };\n    }\n  }, [type, initialType]);\n\n  if (type === 'success') {\n    return (\n      <div\n        className={clsx(\n          'flex items-center justify-center w-6 h-6',\n          {\n            'text-[#647889]': config.brandCode === '2',\n            'text-primary': config.brandCode !== '2',\n          },\n          className,\n        )}\n      >\n        <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n          <circle\n            cx=\"12\"\n            cy=\"12\"\n            r=\"11\"\n            stroke=\"currentColor\"\n            strokeWidth=\"2\"\n            fill=\"currentColor\"\n            className={clsx({\n              [styles.animateCircle]: animationStarted,\n              [styles.fillCircle]: animationStarted && config.brandCode !== '2',\n              [styles.fillCircleAGD]: animationStarted && config.brandCode === '2',\n            })}\n          />\n          {numberVisible && (\n            <text\n              x=\"12\"\n              y=\"17\"\n              textAnchor=\"middle\"\n              className={clsx({\n                [styles.fadeNumber]: animationStarted,\n              })}\n              fill=\"white\"\n              fontSize=\"12\"\n              fontWeight=\"bold\"\n              fontFamily=\"sans-serif\"\n            >\n              {number}\n            </text>\n          )}\n          {checkVisible && (\n            <path\n              d=\"M7 12L10.5 15.5L17 9\"\n              stroke=\"white\"\n              strokeWidth=\"2\"\n              strokeLinecap=\"round\"\n              strokeLinejoin=\"round\"\n              className={clsx({\n                [styles.animateCheck]: animationStarted,\n              })}\n            />\n          )}\n        </svg>\n      </div>\n    );\n  }\n\n  return (\n    <div\n      className={`${styles.serviceStepIcon} ${styles.serviceStepIconNumber} ${\n        optional ? styles.serviceStepIconOptional : ''\n      } ${\n        type === 'opened'\n          ? config.brandCode === '2'\n            ? styles.serviceStepIconOpenedAGD\n            : styles.serviceStepIconOpened\n          : ''\n      } ${className}`}\n    >\n      {number}\n    </div>\n  );\n};\n\nexport default memo(ServiceStepIcon);\n","const LoadMoreSpinner = () => (\n  <div className=\"flex w-full min-h-[150px] items-center justify-center\">\n    <div className=\"relative -top-8 -left-8\">\n      <div className=\"w-16 h-16 rounded-full absolute border border-solid border-gray-light\"></div>\n      <div className=\"w-16 h-16 rounded-full animate-spin absolute border border-solid border-yellow-rating border-t-transparent\"></div>\n    </div>\n  </div>\n);\n\nexport default LoadMoreSpinner;\n","import { FC, useEffect, useRef } from 'react';\nimport FormHelperText from '../FormHelperText';\nimport WarningIcon from '../Icon/WarningIcon';\nimport clsx from 'clsx';\nimport styles from './PageErrorMessage.module.css';\nimport { PaymentErrorProps } from './types';\n\nconst PageErrorMessage: FC<PaymentErrorProps> = ({ id, message, className, ignoreScroll }) => {\n  const errorRef = useRef<HTMLDivElement>(null);\n\n  useEffect(() => {\n    if (message && errorRef.current && !ignoreScroll) {\n      errorRef.current.scrollIntoView({ behavior: 'smooth', block: 'center' });\n    }\n  }, [message]);\n\n  return (\n    <div id={id} data-testid={id} ref={errorRef} className={clsx(styles.paymentError, className)}>\n      <FormHelperText error className={styles.messageContainer}>\n        <div className={styles.warningIconContainer}>\n          <WarningIcon className={styles.warningIcon} width={16} height={16} />\n        </div>\n\n        {typeof message === 'string' ? (\n          <div className={styles.paymentErrorMessage} dangerouslySetInnerHTML={{ __html: message }} />\n        ) : (\n          <span className={styles.paymentErrorMessage}>{message}</span>\n        )}\n      </FormHelperText>\n    </div>\n  );\n};\n\nexport default PageErrorMessage;\n","export default function areEqualValues(value1: any, value2: any): boolean {\n  if (typeof value2 === 'object' && value2 !== null) {\n    return value1 === value2;\n  }\n\n  // The value could be a number, the DOM will stringify it anyway.\n  return String(value1) === String(value2);\n}\n","import areEqualValues from '@package/utils/src/areEqualValues';\nimport clsx from 'clsx';\nimport { useContext } from 'react';\n\nimport CircleIcon from '../Icon/CircleIcon';\nimport { RadioGroupContext } from '../RadioGroupContext';\nimport { RadioGroupContextValue } from '../RadioGroupContext/types';\n\nimport styles from './Radio.module.css';\nimport { RadioComponentProps, RadioGroupState } from './types';\n\nexport function useRadioGroup(): RadioGroupState | undefined {\n  return useContext(RadioGroupContext);\n}\n\nconst Radio = ({\n  className,\n  name: nameProp,\n  value,\n  id,\n  checked: checkedProp,\n  disabled,\n  size = 'big',\n  onChange: onChangeProp,\n  radioLabelClassName,\n  radioClassName,\n  labelClassName,\n  label,\n  classNameLabel,\n  customRadioContainerClasses,\n  uncheckedClassName,\n  textEndAdornment,\n  textEndAdornmentClassName,\n  endAdornment,\n  endAdornmentClassName,\n  canSelect = true,\n  error,\n  ...rest\n}: RadioComponentProps) => {\n  const radioGroup: RadioGroupContextValue | undefined = useRadioGroup();\n\n  const onChange = (event: React.ChangeEvent<HTMLInputElement>): void => {\n    if (disabled) return;\n\n    if (canSelect) {\n      if (onChangeProp) {\n        onChangeProp(event);\n      }\n      if (radioGroup && radioGroup.onChange) {\n        radioGroup.onChange(event);\n      }\n    }\n  };\n\n  let name = nameProp;\n  let checked = checkedProp;\n  if (radioGroup) {\n    if (typeof checked === 'undefined') {\n      checked = areEqualValues(radioGroup.value, value);\n    }\n    if (typeof name === 'undefined') {\n      name = radioGroup.name;\n    }\n  }\n\n  return (\n    <div\n      className={clsx(styles.radioContainer, className)}\n      id={`${id}-container-${value}`}\n      data-testid={`${id}-container-${value}`}\n      {...rest}\n    >\n      <label\n        className={clsx(\n          clsx(styles.radioLabelRoot, radioLabelClassName, { [styles.disabledLabel]: disabled }),\n          { [styles.radioLabelError]: error },\n        )}\n      >\n        <span className={clsx(styles.radio, 'radio', radioClassName)}>\n          <span className={styles.iconButtonLabel}>\n            <input\n              id={id}\n              data-testid={`radio-button-${id}`}\n              type=\"radio\"\n              value={value}\n              onChange={onChange}\n              checked={checked}\n              disabled={disabled}\n              className={styles.radioInput}\n              name={name}\n            />\n            <div\n              className={clsx(\n                styles.uncheked,\n                'uncheked',\n                uncheckedClassName,\n                { [`checked ${styles.checked}`]: checkedProp },\n                { [styles.unchekedSmall]: size === 'small' },\n                { [styles.disabledUncheked]: disabled },\n                { [styles.disabledChecked]: disabled && checkedProp },\n              )}\n            >\n              {checked && <CircleIcon />}\n            </div>\n          </span>\n        </span>\n        {label ? (\n          <span className={clsx(styles.labelRoot, labelClassName)} data-testid={`${id}-label-${value}`}>\n            {typeof label === 'string' ? (\n              <span className={clsx(styles.label, { [styles.disabledLabel]: disabled }, classNameLabel)}>{label}</span>\n            ) : (\n              <div\n                className={clsx(styles.label, 'label', customRadioContainerClasses, {\n                  [styles.disabledLabel]: disabled,\n                })}\n              >\n                {label}\n              </div>\n            )}\n          </span>\n        ) : null}\n      </label>\n      {textEndAdornment ? (\n        <div data-testid={`${id}-text-end-adornment-${value}`} className={textEndAdornmentClassName}>\n          {textEndAdornment}\n        </div>\n      ) : null}\n      {endAdornment ? (\n        <div data-testid={`${id}-end-adornment-${value}`} className={endAdornmentClassName}>\n          {endAdornment}\n        </div>\n      ) : null}\n    </div>\n  );\n};\n\nexport default Radio;\n","import { createContext } from 'react';\n\nimport { RadioGroupContextValue } from './types';\n\n/**\n * @ignore - internal component.\n */\nexport const RadioGroupContext = createContext<RadioGroupContextValue | undefined>(undefined);\n\nif (process.env.NODE_ENV !== 'production') {\n  RadioGroupContext.displayName = 'RadioGroupContext';\n}\n","import clsx from 'clsx';\nimport config from 'config-base';\nimport styles from './Rating.module.css';\n\nexport type RatingProps = {\n  defaultValue: number;\n  reviewers: number | undefined;\n  ratingContainerClasses?: string;\n  ratingDescription?: string;\n  ratingTextClasses?: string;\n  hideRating?: boolean;\n  width?: number;\n  height?: number;\n};\n\nconst ratingNumber = (rating: number) => {\n  return rating.toFixed(1).toString().replace('.', '');\n};\n\nconst Rating = ({\n  defaultValue,\n  reviewers,\n  ratingContainerClasses,\n  ratingTextClasses,\n  hideRating = false,\n  ratingDescription = '',\n  width = 96,\n  height = 16,\n}: RatingProps) => {\n  return (\n    <div className={clsx(styles.rating, ratingContainerClasses)}>\n      <img\n        src={`/marketplace-static/images/stars/${config.brandCode === '2' ? 'agd' : ''}cnt${ratingNumber(\n          defaultValue,\n        )}.svg`}\n        alt=\"rating\"\n        loading=\"lazy\"\n        width={width}\n        height={height}\n      />\n      <div className={clsx(styles.ratingText, ratingTextClasses, 'ratingText')}>\n        {!hideRating && `${parseFloat(defaultValue.toFixed(1))}`}\n        {`(${reviewers || '0'}${ratingDescription})`}\n      </div>\n    </div>\n  );\n};\n\nexport default Rating;\n","import { TopSellingProductExtended } from '@package/services/src/Algonomy/types';\n\nexport enum ProductServiceType {\n  ExpertSetup = 'Expert Setup',\n  ServiceContract = 'Service Contract',\n  CustomConfiguration = 'Custom Configuration',\n}\n\nexport enum SignatureStateType {\n  Available = 'AVAILABLE',\n  Unavailable = 'UNAVAILABLE',\n  Forced = 'FORCED',\n}\n\nexport enum SignatureForcedReasonType {\n  GiftCard = 'GIFT_CARD',\n  OverThreshold = 'OVER_THRESHOLD',\n  RequiredState = 'REQUIRED_STATE',\n  RequiredPelletType = 'REQUIRED_PELLET_TYPE',\n  Customer = 'CUSTOMER',\n}\n\nexport enum ProductConditionRank {\n  NEW = 'New',\n  OPEN_BOX = 'Open box',\n  REMANUFACTURED = 'Remanufactured',\n  REFURBISHED = 'Refurbished',\n  LIFEXTENDED = 'Life Extended',\n}\n\nexport enum ShoppingCartStepType {\n  ShoppingCart = '/shopping-cart',\n}\n\nexport enum DiscountErrorType {\n  GiftCardError = 'gift_cart_error',\n  CouponError = 'coupon_error',\n}\n\nexport type DiscountErrorState = {\n  code: DiscountErrorType;\n  message: string;\n};\n\nexport type AdditionalProductFee = {\n  message: string;\n  name: string;\n  price: number;\n  sku: string;\n};\n\nexport type ServiceInfoProduct = {\n  image: string;\n  name: string;\n  price: number;\n  sku: string;\n};\n\nexport type ServiceInfo = {\n  buyButtonAvailable: boolean;\n  content: string;\n  desc: string;\n  editContentUrl: string;\n  editServiceUrl: string;\n  editable: boolean;\n  largeImage: string;\n  name: string;\n  price: number;\n  serviceAdditionalProducts: Array<ServiceInfoProduct>;\n  serviceRelatedProducts: Array<ServiceInfoProduct>;\n};\n\nexport type ProductServiceInfo = {\n  name: string;\n  price: number;\n  desc: string;\n  largeImage: string;\n};\n\nexport type ProductAddonElement = {\n  name: string;\n  price: number | DiscountPrice;\n  productUrl: string;\n  sku?: string;\n  smallImage?: string;\n  image?: string;\n  rating?: number;\n  id?: number;\n  discountPrice?: number;\n  reviewsCount?: number;\n  [key: string]: any;\n};\n\nexport type CustomConfigurationElement = {\n  id: number;\n  name: string;\n  price: number;\n  image: string;\n  productUrl: string;\n  canAddToCart: boolean;\n  selected: boolean;\n  sku: string;\n};\n\nexport type ProductCustomConfiguration = {\n  name: ProductServiceType;\n  seq: number;\n  mainSku: string;\n  elements: Array<CustomConfigurationElement>;\n};\n\nexport type ProductServicesElement = {\n  id: number;\n  canAddToCart: boolean;\n  name: string;\n  price: DiscountPrice;\n  selected: boolean;\n  image: string;\n  sku: string;\n  combineAllowed: boolean;\n};\n\nexport type ProductServices = {\n  name: ProductServiceType;\n  combineAllowed: boolean;\n  elements: Array<ProductServicesElement>;\n  seq?: number;\n};\n\nexport type ProductAddons = {\n  accessoryList: Array<ProductAddonElement>;\n  ammoList: Array<ProductAddonElement>;\n  customConfigurations: Array<ProductCustomConfiguration>;\n  serviceContracts: Array<ProductServices>;\n  scopeAccessories: Array<ProductAddonElement>;\n};\n\nexport type Product = {\n  id: string;\n  name: string;\n  image: string;\n  brandItemCode?: string;\n  stockDate?: string;\n  quantity: number;\n  price: number;\n  productSpecifications?: Array<string> | null;\n  specialOrder?: boolean;\n  backordered?: boolean;\n  seq: number;\n  productUrl: string;\n  mainSku?: string | null;\n  purchaseLimit?: number;\n  purchaseLimitMessage?: string | null;\n  editable?: boolean;\n  removeAvailable?: boolean;\n  superConfigurator?: boolean;\n  serviceInfo?: ProductServiceInfo;\n  additionalProductFee?: AdditionalProductFee | null;\n  services?: Array<ProductServices>;\n  addons?: Array<ProductAddons>;\n  relatedProductsAvailable?: boolean;\n  typeService: boolean;\n  sku?: string;\n  itemConditionRank?: 'NEW' | 'OPEN_BOX' | 'REMANUFACTURED' | 'REFURBISHED' | 'LIFEXTENDED';\n  autoClipCoupon?: AutoClipCoupon | null;\n  couponAllowed?: boolean;\n  /**\n   * Finished free-ammo promo copy for this line, e.g. `+Add 2 more & get 1 FREE`. The backend sets\n   * it on a single line per cart — the lowest priced eligible ammo — and only while the promo is\n   * still reachable, so its presence alone decides whether the banner renders.\n   */\n  freeAmmoBanner?: string | null;\n};\n\nexport type SignatureState = {\n  checked: boolean;\n  forcedReasonType: SignatureForcedReasonType | null;\n  state: SignatureStateType;\n};\n\nexport type CartBannerType = 'loyalty' | 'free_shipping' | 'seller_free_shipping';\n\nexport type CartBanner = {\n  type: CartBannerType;\n  message: string;\n  amountMin: number | null;\n  amountLeft: number | null;\n  zone: string | null;\n};\n\nexport type SubOrderVendorShipping = {\n  shippingOption: number;\n  sendAsTheyArrive: boolean;\n  signatureState: SignatureState;\n  banners: CartBanner[];\n};\nexport type SubOrder = {\n  vendor: string;\n  vendorId: number;\n  orderId: number;\n  methodId: number;\n  showCanadaRestrictMessage: boolean;\n  productsWithoutAirShippingOption?: Array<string>;\n  vendorShipping: SubOrderVendorShipping;\n  products?: Array<Product>;\n};\n\nexport type CartSummary = {\n  productsAndServices: number;\n  subTotal: number;\n  giftCard: number | null;\n  bullseyeBucks: number | null;\n  bundleDiscount: number | null;\n  affirmStarting: number;\n  totalDue: number;\n  /** Donation persisted on the order (backend reads it via getOrderDonation, same value as the checkout summary). NOT included in totalDue. */\n  donation?: number | null;\n  couponDiscount: number | null;\n  autoApplyCouponResponse?: {\n    couponNumber: string;\n    autoCouponDiscount: number;\n  } | null;\n  tax: number;\n  state: string;\n  country: string;\n  additionalProductFees: Array<AdditionalProductFee> | null;\n  checkoutButtonAvailable?: string;\n};\n\nexport type CouponMessage = {\n  message: string;\n  code: string;\n};\n\nexport type ShoppingCard = {\n  adminUser: boolean;\n  applyCouponMessage: CouponMessage | null;\n  enabledRecaptcha: boolean;\n  notDeliverable: boolean;\n  cartItems: number;\n  cartSummary: CartSummary;\n  subOrders: Array<SubOrder>;\n  cookies?: string | null;\n  regularCouponApplied: boolean;\n  paymentMethod: string;\n};\n\nexport type GetShareCartLinkResponse = {\n  orderKey: string;\n  refId: string;\n};\n\nexport type AutoClipCoupon = {\n  couponId: string;\n  applied: boolean;\n  discountAmount: number;\n  couponPrice: number;\n};\n\nexport type CustomizedService = {\n  name: string;\n  banner: string | null;\n  description: string | null;\n  alertMessage: string | null;\n  price: DiscountPrice;\n  questions: ServiceQuestion[] | null;\n  relatedProductGroups: ServiceRelatedProductGroup[] | null;\n  commentAllowed: boolean;\n  showBuyButton: boolean;\n};\n\nexport type ServiceRelatedProductGroup = {\n  groupName: string; // Accordion title and id\n  groupUrl: string | null; // if groupd url then disable accordion and show title (link to a category);\n  recommendedProducts: ServiceRecommendedProductsGroup;\n  required: boolean;\n  selectedProduct: TopSellingProductExtended | null; // if not null it means that a product from the group in a cart (closed and disabled accordion and cart icon in the title);\n  included: boolean; // scope or mount already included (show included in the title and disable accordion);\n};\n\nexport type ServiceRecommendedProductsGroup = {\n  products: TopSellingProductExtended[];\n};\n\nexport type ServiceQuestionAnswerOption = {\n  id: number;\n  answerValue: `${number}` | Exclude<string, `${number}`>; // either numeric string or non-numeric string\n  serviceId: number;\n  servicePrice: number | null; // if not a string number it means that radio button input;\n  relatedProductGroup: string | null; // if not null make product group required\n  relatedQuestions: ServiceQuestion[] | null;\n};\n\nexport type ServiceQuestion = {\n  title: string;\n  uom: string | null; // unit of measure, show in placheloder of input ex: Product Range: 30-50lbs where lbs is uom and 30-50 is from answerOption.answerValue (two values)\n  description: string;\n  answerOptions: ServiceQuestionAnswerOption[] | null;\n  required: boolean;\n};\n\nexport type ServiceQuestionAnswer = {\n  question: string;\n  answer: string;\n  uom?: string;\n};\n\nexport type RelatedService = {\n  baseProductSku: string;\n  serviceId: number;\n  servicePrice: number;\n  serviceQuestionAnswers: ServiceQuestionAnswer[];\n};\n\nexport type ProductGroupsPayload = Array<{\n  sku: string;\n  required: boolean;\n}>;\n\nexport type AddCustomServiceGroupRequest = {\n  baseProductSku: string;\n  serviceId: string;\n  servicePrice: number;\n  comment: string | null;\n  relatedProducts: ProductGroupsPayload | null;\n  relatedServices: RelatedService[] | null;\n  serviceQuestionAnswers: ServiceQuestionAnswer[] | null;\n};\n\nexport type DiscountPrice = {\n  effectivePrice: number;\n  originalPrice: number;\n  discount: number;\n};\n","import currencyFormatting from '../currencyFormatting';\n\nexport const getPriceRange = (minPrice: string | null, maxPrice: string | null) => {\n  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n  if (minPrice != null && maxPrice != null && !(minPrice === maxPrice)) {\n    const min = (((minPrice as any) * 100) / 100).toFixed(2);\n    const max = (((maxPrice as any) * 100) / 100).toFixed(2);\n    const resultMin = currencyFormatting(Number(min));\n    const resultMax = currencyFormatting(Number(max));\n    if (resultMin && resultMax) {\n      return `${resultMin} - ${resultMax}`;\n    }\n  }\n  return null;\n};\n","export const calcRating = (rating: number): number => {\n  const roundedRating = Math.round(rating);\n  const diff = rating - roundedRating;\n  if (diff > 0.25 && diff < 0.75) {\n    return roundedRating + 0.5;\n  }\n  if (diff > 0.75) {\n    return roundedRating + 1;\n  }\n  if (rating < 0.25 && rating > 0) {\n    return 0.25;\n  }\n\n  return roundedRating;\n};\n\nexport const calcAGDrating = (rating: number) => {\n  if (rating === -1) {\n    return 0;\n  }\n  const roundedRating = Math.round(rating);\n  const diff = rating - roundedRating;\n  if (diff === 0.25) {\n    return roundedRating;\n  }\n  return Math.round(rating * 2) / 2;\n};\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"couponApply\":\"CouponApply_couponApply__Ao42j\",\"couponApplyLabel\":\"CouponApply_couponApplyLabel__qMgvY\",\"couponApplyInput\":\"CouponApply_couponApplyInput__rvVvm\",\"couponApplyCheckbox\":\"CouponApply_couponApplyCheckbox__SMiax\",\"couponApplyTerms\":\"CouponApply_couponApplyTerms__iPvgN\",\"couponApplyCheckboxLabel\":\"CouponApply_couponApplyCheckboxLabel__IVG2s\",\"couponApplyTermsContent\":\"CouponApply_couponApplyTermsContent__kNjhh\",\"couponApplyTermsIcon\":\"CouponApply_couponApplyTermsIcon__6QCsh\",\"couponAppliedMessage\":\"CouponApply_couponAppliedMessage__Z0elV\",\"couponApplyTermsDisabled\":\"CouponApply_couponApplyTermsDisabled__JiBRM\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"couponApplyError\":\"CouponApplyErrorMessage_couponApplyError__R5Ddg\",\"couponApplyErrorMessage\":\"CouponApplyErrorMessage_couponApplyErrorMessage__M7mtr\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"dialog\":\"CustomServiceAnchorDialog_dialog__cAx_o\",\"dialogContent\":\"CustomServiceAnchorDialog_dialogContent__8EIy7\",\"dialogPaper\":\"CustomServiceAnchorDialog_dialogPaper__lMZU9\",\"customizableServiceTitle\":\"CustomServiceAnchorDialog_customizableServiceTitle__9D8Ln\",\"customizableServiceIcon\":\"CustomServiceAnchorDialog_customizableServiceIcon__GNFM2\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"accordion\":\"Accordion_accordion__OAC1H\",\"header\":\"Accordion_header__silXL\",\"opened\":\"Accordion_opened__3PTLB\",\"arrow\":\"Accordion_arrow__E_8ci\",\"icon\":\"Accordion_icon__VrCtW\",\"title\":\"Accordion_title__B6jbL\",\"disabled\":\"Accordion_disabled__fBvdm\",\"arrowAGD\":\"Accordion_arrowAGD__iE3sX\",\"accordionContent\":\"Accordion_accordionContent__eWHMc\",\"accordionContentChildren\":\"Accordion_accordionContentChildren__TFZmI\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"customizableServiceTitle\":\"CustomizableService_customizableServiceTitle__57SHD\",\"customizableServiceContent\":\"CustomizableService_customizableServiceContent__3q8MQ\",\"customizableServiceIcon\":\"CustomizableService_customizableServiceIcon__as3rS\",\"customServiceBanner\":\"CustomizableService_customServiceBanner__6jcAQ\",\"descriptionAccordion\":\"CustomizableService_descriptionAccordion__abFZY\",\"questionContainer\":\"CustomizableService_questionContainer__0oCmF\",\"commentTextArea\":\"CustomizableService_commentTextArea__m1cxC\",\"commentAccordionActive\":\"CustomizableService_commentAccordionActive__Q8Z_I\",\"descriptionAccordionRequired\":\"CustomizableService_descriptionAccordionRequired__ocXAD\",\"descriptionAccordionRequiredAGD\":\"CustomizableService_descriptionAccordionRequiredAGD__nrW_n\",\"dialogContent\":\"CustomizableService_dialogContent__2Elpn\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"title\":\"CustomServiceAccordionTitle_title__ICmuJ\",\"openProductAccordionOpened\":\"CustomServiceAccordionTitle_openProductAccordionOpened__vOK3Y\",\"selectedProductName\":\"CustomServiceAccordionTitle_selectedProductName__eRonn\",\"selectedServiceItem\":\"CustomServiceAccordionTitle_selectedServiceItem__Zu_Br\",\"included\":\"CustomServiceAccordionTitle_included__CCRXC\",\"optional\":\"CustomServiceAccordionTitle_optional__UfBpJ\",\"optionalActive\":\"CustomServiceAccordionTitle_optionalActive__kLYJt\",\"loading\":\"CustomServiceAccordionTitle_loading__y_PQb\",\"loadingSpinner\":\"CustomServiceAccordionTitle_loadingSpinner__ZKV8r\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"customizableServiceData\":\"CustomServiceDescription_customizableServiceData__F39Pp\",\"alertMessage\":\"CustomServiceDescription_alertMessage__e4zUS\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"description\":\"CustomServiceDescriptionInput_description__D2_fa\",\"descriptionVisible\":\"CustomServiceDescriptionInput_descriptionVisible__iJ5EB\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"customizableServiceFooter\":\"CustomServiceFooter_customizableServiceFooter__LB7Zx\",\"customizableServiceFooterShadow\":\"CustomServiceFooter_customizableServiceFooterShadow__6BA6o\",\"footerContent\":\"CustomServiceFooter_footerContent__S_Bql\",\"footerPriceContainer\":\"CustomServiceFooter_footerPriceContainer__LRCf9\",\"subtotalLabel\":\"CustomServiceFooter_subtotalLabel__KFNVu\",\"subtotalDescription\":\"CustomServiceFooter_subtotalDescription__HTnAy\",\"priceContainer\":\"CustomServiceFooter_priceContainer___3bad\",\"price\":\"CustomServiceFooter_price__XJols\",\"originalPrice\":\"CustomServiceFooter_originalPrice__Y_wXS\",\"submitButton\":\"CustomServiceFooter_submitButton__F4g03\",\"submitButtonDisabled\":\"CustomServiceFooter_submitButtonDisabled__ZCve7\",\"submitButtonNext\":\"CustomServiceFooter_submitButtonNext___f9KO\",\"submitButtonNextAGD\":\"CustomServiceFooter_submitButtonNextAGD__TvHct\",\"submitButtonDisabledAGD\":\"CustomServiceFooter_submitButtonDisabledAGD__Nlyli\",\"freeText\":\"CustomServiceFooter_freeText__4bYyk\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"groupUrl\":\"CustomServiceLabel_groupUrl__gug9X\",\"changeText\":\"CustomServiceLabel_changeText__i0P29\",\"groupUrlAGD\":\"CustomServiceLabel_groupUrlAGD__0on2w\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"customizableServiceAccordion\":\"CustomServiceProductGroup_customizableServiceAccordion__FOWzy\",\"customizableServiceAccordionRequired\":\"CustomServiceProductGroup_customizableServiceAccordionRequired__5S4m1\",\"productErrorMessage\":\"CustomServiceProductGroup_productErrorMessage__SUaX1\",\"errorMessageWrapper\":\"CustomServiceProductGroup_errorMessageWrapper__4FuF_\",\"errorMessageWrapperHidden\":\"CustomServiceProductGroup_errorMessageWrapperHidden__YJw9s\",\"productGroupContainer\":\"CustomServiceProductGroup_productGroupContainer__FUL2i\",\"alertMessage\":\"CustomServiceProductGroup_alertMessage__kA8v7\",\"fadeIn\":\"CustomServiceProductGroup_fadeIn__lGcaX\",\"fadeOut\":\"CustomServiceProductGroup_fadeOut__bcPoC\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"customizableServiceAccordion\":\"CustomServiceQuestions_customizableServiceAccordion__Ey6cT\",\"questionGroupContainer\":\"CustomServiceQuestions_questionGroupContainer___DCRB\",\"questionGroupContainerInner\":\"CustomServiceQuestions_questionGroupContainerInner__4UHcr\",\"questionContainer\":\"CustomServiceQuestions_questionContainer__AK8mE\",\"radioGroupServiceHeader\":\"CustomServiceQuestions_radioGroupServiceHeader__tTD3e\",\"radioLabel\":\"CustomServiceQuestions_radioLabel__f9Zdc\",\"radioGroupService\":\"CustomServiceQuestions_radioGroupService__oFJX6\",\"radioGroupServiceTitle\":\"CustomServiceQuestions_radioGroupServiceTitle__1_kQm\",\"radioGroupServiceTitleError\":\"CustomServiceQuestions_radioGroupServiceTitleError__KcQUN\",\"radioGroupServiceDetails\":\"CustomServiceQuestions_radioGroupServiceDetails__BCKpQ\",\"radioText\":\"CustomServiceQuestions_radioText__hclOS\",\"radioPrice\":\"CustomServiceQuestions_radioPrice__xB_w3\",\"comboBoxContainer\":\"CustomServiceQuestions_comboBoxContainer__0hC2y\",\"customQuestionDisabled\":\"CustomServiceQuestions_customQuestionDisabled__MCnd0\",\"questionErrorMessage\":\"CustomServiceQuestions_questionErrorMessage__tz4r3\",\"serviceRadioSpinner\":\"CustomServiceQuestions_serviceRadioSpinner__Rb4_W\",\"questionDescriptionDesktop\":\"CustomServiceQuestions_questionDescriptionDesktop__1M1P1\",\"questionDescriptionMobile\":\"CustomServiceQuestions_questionDescriptionMobile__wTHSl\",\"textInputContainer\":\"CustomServiceQuestions_textInputContainer__jzw0p\",\"textInput\":\"CustomServiceQuestions_textInput__l7ElH\",\"textInputError\":\"CustomServiceQuestions_textInputError__W8kyO\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"card\":\"IncludedCard_card__9iitk\",\"linkCard\":\"IncludedCard_linkCard__2TX8p\",\"imageContainer\":\"IncludedCard_imageContainer__ExhM3\",\"textContainer\":\"IncludedCard_textContainer__D5M3u\",\"radioContainer\":\"IncludedCard_radioContainer__LjdWj\",\"title\":\"IncludedCard_title__zx2Li\",\"radioSelectButton\":\"IncludedCard_radioSelectButton__5E1MB\",\"radioSelectButtonSelected\":\"IncludedCard_radioSelectButtonSelected__evq2c\",\"btnBase\":\"IncludedCard_btnBase__ilIPt\",\"btnSecondary\":\"IncludedCard_btnSecondary__fkiHf\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"customServiceSlide\":\"ServiceCarousel_customServiceSlide__eb_2c\",\"customServiceContainer\":\"ServiceCarousel_customServiceContainer__Bbn_D\",\"customServiceCard\":\"ServiceCarousel_customServiceCard__yfvIW\",\"customServiceDotButtons\":\"ServiceCarousel_customServiceDotButtons__p4jFE\",\"customServiceCarousel\":\"ServiceCarousel_customServiceCarousel__C0_Rp\",\"customServiceCardPyr\":\"ServiceCarousel_customServiceCardPyr__5K_dW\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"textAreaLabelContainer\":\"TextArea_textAreaLabelContainer__b6z9v\",\"textAreaLabel\":\"TextArea_textAreaLabel__yNj1E\",\"textAreaWrapper\":\"TextArea_textAreaWrapper__3RDII\",\"textArea\":\"TextArea_textArea__eqsTf\",\"textAreaError\":\"TextArea_textAreaError__ha3wx\",\"maxLengthText\":\"TextArea_maxLengthText__2KYnj\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"productDescription\":\"ProductDescription_productDescription__FkZWK\",\"orderDetailsProductDescription\":\"ProductDescription_orderDetailsProductDescription__4a4zw\",\"orderDetailsProductReviewDescription\":\"ProductDescription_orderDetailsProductReviewDescription__HDH0l\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"productFeeBox\":\"ProductFee_productFeeBox__2NZAA\",\"productTooltipPaper\":\"ProductFee_productTooltipPaper__LJph5\",\"tooltipContentWrapper\":\"ProductFee_tooltipContentWrapper__OJJry\",\"slideUp\":\"ProductFee_slideUp__3n2_w\",\"tooltipContainer\":\"ProductFee_tooltipContainer__PvYu1\",\"questionMark\":\"ProductFee_questionMark__dpxbE\",\"tooltipContent\":\"ProductFee_tooltipContent__79wZ7\",\"arrowUp\":\"ProductFee_arrowUp__qXE6D\",\"arrowUpColor\":\"ProductFee_arrowUpColor__eYzi3\",\"tooltipContentMessage\":\"ProductFee_tooltipContentMessage__PB64A\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"productBoldText\":\"ProductInfo_productBoldText__CprRH\",\"productId\":\"ProductInfo_productId__R0pw8\",\"productConditionRank\":\"ProductInfo_productConditionRank__bew9V\",\"productConditionRankAccordion\":\"ProductInfo_productConditionRankAccordion__hT3V_\",\"productConditionRankDescription\":\"ProductInfo_productConditionRankDescription__3gCTL\",\"infoIconWrapper\":\"ProductInfo_infoIconWrapper___sTjb\",\"infoIcon\":\"ProductInfo_infoIcon__d_Tn8\",\"accordionProductDesc\":\"ProductInfo_accordionProductDesc__PGVkf\",\"accordionProductDescTitle\":\"ProductInfo_accordionProductDescTitle__aiktg\",\"accordionProductDescContent\":\"ProductInfo_accordionProductDescContent__zyczI\",\"productDescriptionDesktop\":\"ProductInfo_productDescriptionDesktop___6ewi\",\"orderDetailsProductId\":\"ProductInfo_orderDetailsProductId__BVtdH\",\"orderDetailsReviewProductId\":\"ProductInfo_orderDetailsReviewProductId__hMVvL\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"purchaseLimitContainer\":\"ProductPurchase_purchaseLimitContainer__HoYdt\",\"purchaseLimitNote\":\"ProductPurchase_purchaseLimitNote__H1eQV\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"dialogContainer\":\"ProductCardName_dialogContainer__EaR32\",\"productName\":\"ProductCardName_productName__7ns79\",\"largeImage\":\"ProductCardName_largeImage__AngAs\",\"orderDetailsProductName\":\"ProductCardName_orderDetailsProductName__M81zG\",\"orderDetailsProductNameReview\":\"ProductCardName_orderDetailsProductNameReview__dm_ZI\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"addTocartButton\":\"AddToCartButton_addTocartButton__HK7Ta\",\"outOfStock\":\"AddToCartButton_outOfStock__KQhMa\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"searchItemContainer\":\"TopSellingCard_searchItemContainer__6IrRW\",\"radioSelect\":\"TopSellingCard_radioSelect__LP8Es\",\"cardRadioLabel\":\"TopSellingCard_cardRadioLabel__QaYPT\",\"searchItemName\":\"TopSellingCard_searchItemName__J2dv6\",\"saleImage\":\"TopSellingCard_saleImage__WHECB\",\"newImage\":\"TopSellingCard_newImage__GLJLp\",\"searchItemImageContainer\":\"TopSellingCard_searchItemImageContainer__mf6_t\",\"nameClamp\":\"TopSellingCard_nameClamp__Jnkoo\",\"rating\":\"TopSellingCard_rating__4_kBH\",\"ratingText\":\"TopSellingCard_ratingText__BJ8Uy\",\"ratingColor\":\"TopSellingCard_ratingColor__gZ6yc\",\"linkCard\":\"TopSellingCard_linkCard__dUO30\",\"linkFlex\":\"TopSellingCard_linkFlex__Hcnn0\",\"searchItemNameAGD\":\"TopSellingCard_searchItemNameAGD__8pUjm\",\"radioSelectButton\":\"TopSellingCard_radioSelectButton__NPi1e\",\"radioSelectButtonSelected\":\"TopSellingCard_radioSelectButtonSelected__xHlPd\",\"btnBase\":\"TopSellingCard_btnBase__cc9D1\",\"btnSecondary\":\"TopSellingCard_btnSecondary__kZF3_\",\"tidBit\":\"TopSellingCard_tidBit__f9rRd\",\"tidBitText\":\"TopSellingCard_tidBitText__3AFVB\",\"AGDSaleLabel\":\"TopSellingCard_AGDSaleLabel__iT9e7\",\"AGDBadgesContainer\":\"TopSellingCard_AGDBadgesContainer__Lv6v4\",\"statusContainer\":\"TopSellingCard_statusContainer__F4T6C\",\"productStatus\":\"TopSellingCard_productStatus__oDcBx\",\"productStatusBackordered\":\"TopSellingCard_productStatusBackordered__4ydR_\",\"arrowSpecsTable\":\"TopSellingCard_arrowSpecsTable___tTob\",\"arrowSpecRow\":\"TopSellingCard_arrowSpecRow__2nGm6\",\"arrowSpecLabel\":\"TopSellingCard_arrowSpecLabel__WU5Vo\",\"arrowSpecValue\":\"TopSellingCard_arrowSpecValue__yGmSs\",\"searchItemContainerPYR\":\"TopSellingCard_searchItemContainerPYR__eQopy\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"searchItemPrice\":\"SearchResultsPrice_searchItemPrice__NM3So\",\"rdLabel\":\"SearchResultsPrice_rdLabel__ISZ3z\",\"discountAmount\":\"SearchResultsPrice_discountAmount__MZp3x\",\"salesPriceAgd\":\"SearchResultsPrice_salesPriceAgd__CRBIH\",\"originalPriceAgd\":\"SearchResultsPrice_originalPriceAgd__pAqbA\",\"pricePerUnit\":\"SearchResultsPrice_pricePerUnit__AJg16\",\"priceItemsAmount\":\"SearchResultsPrice_priceItemsAmount__PU5A4\",\"originalPrice\":\"SearchResultsPrice_originalPrice__T_C04\",\"refurbPrice\":\"SearchResultsPrice_refurbPrice___Ydeq\",\"asterisk\":\"SearchResultsPrice_asterisk__5Kfek\",\"searchItemPricePyr\":\"SearchResultsPrice_searchItemPricePyr__h3170\",\"originalPricePyr\":\"SearchResultsPrice_originalPricePyr__dK87O\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"embla\":\"EmblaCarousel_embla__932RO\",\"embla__container\":\"EmblaCarousel_embla__container__ICJep\",\"embla__slide\":\"EmblaCarousel_embla__slide__vau5n\",\"carouselButtons\":\"EmblaCarousel_carouselButtons__X_ryy\",\"carouselButtonLeft\":\"EmblaCarousel_carouselButtonLeft__JNLzt\",\"carouselButtonRight\":\"EmblaCarousel_carouselButtonRight__W1DFI\",\"backButton\":\"EmblaCarousel_backButton__VIV0_\",\"nextButton\":\"EmblaCarousel_nextButton__wshyB\",\"carouselContent\":\"EmblaCarousel_carouselContent__dv0qz\",\"carouselButtonsAGD\":\"EmblaCarousel_carouselButtonsAGD__3xBuW\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"embla__dot\":\"EmblaDotButtons_embla__dot__F1nnD\",\"embla__dotActive\":\"EmblaDotButtons_embla__dotActive__LXIRe\",\"emblaDots\":\"EmblaDotButtons_emblaDots__XBBCX\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"comboBoxItemContainer\":\"ComboBox_comboBoxItemContainer__L8Xa4\",\"comboBoxLabelContainer\":\"ComboBox_comboBoxLabelContainer__iuTSR\",\"container\":\"ComboBox_container___ebs2\",\"label\":\"ComboBox_label__vFmbf\",\"additionalLabel\":\"ComboBox_additionalLabel__hXhmZ\",\"comboBoxTrigger\":\"ComboBox_comboBoxTrigger__sXCLM\",\"comboBoxTriggerError\":\"ComboBox_comboBoxTriggerError__p37Rs\",\"labelError\":\"ComboBox_labelError__cuYUB\",\"comboBoxTriggerDefault\":\"ComboBox_comboBoxTriggerDefault__h6lCn\",\"comboBoxTriggerDisabled\":\"ComboBox_comboBoxTriggerDisabled__nak17\",\"searchInput\":\"ComboBox_searchInput__a9_s9\",\"comboBoxActive\":\"ComboBox_comboBoxActive__PruZw\",\"selectedText\":\"ComboBox_selectedText__s0wvC\",\"selectedTextPlaceholder\":\"ComboBox_selectedTextPlaceholder__AXQd4\",\"comboBoxInActive\":\"ComboBox_comboBoxInActive__6IfaT\",\"dropdownIcon\":\"ComboBox_dropdownIcon___Xifo\",\"dropdown\":\"ComboBox_dropdown__cR3Hg\",\"dropdownOpen\":\"ComboBox_dropdownOpen__kuON7\",\"dropdownClosed\":\"ComboBox_dropdownClosed__cVI1u\",\"dropdownBottom\":\"ComboBox_dropdownBottom__dyRYm\",\"dropdownTop\":\"ComboBox_dropdownTop__1Bxsb\",\"optionsList\":\"ComboBox_optionsList__98bNF\",\"noOptions\":\"ComboBox_noOptions__cbvP6\",\"selectOptions\":\"ComboBox_selectOptions__cC_HI\",\"selectOptionTitle\":\"ComboBox_selectOptionTitle__OtiKf\",\"closeIcon\":\"ComboBox_closeIcon__NJkV9\",\"option\":\"ComboBox_option__h8enC\",\"optionDisabled\":\"ComboBox_optionDisabled__ibAsV\",\"optionSelected\":\"ComboBox_optionSelected__Yd4Ag\",\"optionHighlighted\":\"ComboBox_optionHighlighted__S3OPL\",\"disabled\":\"ComboBox_disabled__w49jx\",\"backdrop\":\"ComboBox_backdrop__xJjdb\",\"backDropFadeIn\":\"ComboBox_backDropFadeIn__IdDNQ\",\"backDropFadeOut\":\"ComboBox_backDropFadeOut__AV9E9\",\"selectedIcon\":\"ComboBox_selectedIcon__Jm4JY\",\"placeholder\":\"ComboBox_placeholder__PSmm_\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"selectDropDown\":\"ComboBoxMobile_selectDropDown__QrUPC\",\"arrow\":\"ComboBoxMobile_arrow__8rVxX\",\"opened\":\"ComboBoxMobile_opened__uBj8d\",\"placeholder\":\"ComboBoxMobile_placeholder__YyzSX\",\"selectOptions\":\"ComboBoxMobile_selectOptions__2pohT\",\"selectOptionTitle\":\"ComboBoxMobile_selectOptionTitle__9Px1w\",\"closeIcon\":\"ComboBoxMobile_closeIcon__9V__k\",\"option\":\"ComboBoxMobile_option__Zedzl\",\"optionDisabled\":\"ComboBoxMobile_optionDisabled__JV45w\",\"optionSelected\":\"ComboBoxMobile_optionSelected__AgFnu\",\"disabled\":\"ComboBoxMobile_disabled___934n\",\"backdrop\":\"ComboBoxMobile_backdrop__3Ux_9\",\"backDropFadeIn\":\"ComboBoxMobile_backDropFadeIn__aFZG3\",\"fadeIn\":\"ComboBoxMobile_fadeIn__VpeM1\",\"selectOptionsDown\":\"ComboBoxMobile_selectOptionsDown__WQbi9\",\"selectOptionsUp\":\"ComboBoxMobile_selectOptionsUp__W47ti\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"checkboxMainContainer\":\"FormCheckbox_checkboxMainContainer__SKX0K\",\"checkboxContainer\":\"FormCheckbox_checkboxContainer__4H7_X\",\"checkboxInput\":\"FormCheckbox_checkboxInput__SULIz\",\"checkboxControler\":\"FormCheckbox_checkboxControler__aNl19\",\"checkboxControlerChecked\":\"FormCheckbox_checkboxControlerChecked__u0GaQ\",\"checkboxControlerDisabled\":\"FormCheckbox_checkboxControlerDisabled__Kx3Fm\",\"checkboxIcon\":\"FormCheckbox_checkboxIcon__kopl_\",\"checkboxIconDisabled\":\"FormCheckbox_checkboxIconDisabled__df1Lp\",\"checkboxLabel\":\"FormCheckbox_checkboxLabel__B3jMT\",\"checkboxLabelDisabled\":\"FormCheckbox_checkboxLabelDisabled__XraNs\",\"disableSelect\":\"FormCheckbox_disableSelect__geR_q\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"helperText\":\"FormHelperText_helperText__PBI8o\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"selectedIconSvg\":\"SelectedComboBox_selectedIconSvg__kZ6Fg\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"serviceStepIcon\":\"ServiceStepIcon_serviceStepIcon__HWDSH\",\"serviceStepIconSuccess\":\"ServiceStepIcon_serviceStepIconSuccess__geti7\",\"serviceStepIconNumber\":\"ServiceStepIcon_serviceStepIconNumber__MqaP9\",\"serviceStepIconOptional\":\"ServiceStepIcon_serviceStepIconOptional__9z7ik\",\"serviceStepIconOpened\":\"ServiceStepIcon_serviceStepIconOpened__wsGVq\",\"serviceStepIconOpenedAGD\":\"ServiceStepIcon_serviceStepIconOpenedAGD__05rRw\",\"animateCircle\":\"ServiceStepIcon_animateCircle__uE80w\",\"drawCircle\":\"ServiceStepIcon_drawCircle___5Lw4\",\"fillCircle\":\"ServiceStepIcon_fillCircle__u2SlQ\",\"fillCircleAGD\":\"ServiceStepIcon_fillCircleAGD__usqr_\",\"animateCheck\":\"ServiceStepIcon_animateCheck__bJnk7\",\"drawCheck\":\"ServiceStepIcon_drawCheck__F6nU3\",\"fadeNumber\":\"ServiceStepIcon_fadeNumber__P2mjm\",\"fadeOut\":\"ServiceStepIcon_fadeOut__m9yjQ\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"paymentError\":\"PageErrorMessage_paymentError__BLL9_\",\"messageContainer\":\"PageErrorMessage_messageContainer__zWZ4M\",\"warningIcon\":\"PageErrorMessage_warningIcon__8qdCp\",\"warningIconContainer\":\"PageErrorMessage_warningIconContainer__Vl84x\",\"paymentErrorMessage\":\"PageErrorMessage_paymentErrorMessage__aG2_o\",\"compact\":\"PageErrorMessage_compact__wFMPh\",\"paymentErrorMessageCompact\":\"PageErrorMessage_paymentErrorMessageCompact__YB2BR\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"radioContainer\":\"Radio_radioContainer__zqeGJ\",\"radioLabelError\":\"Radio_radioLabelError__Up4qX\",\"radioLabelRoot\":\"Radio_radioLabelRoot__OAWnF\",\"radio\":\"Radio_radio__x6Zie\",\"iconButtonLabel\":\"Radio_iconButtonLabel__eIrJr\",\"radioInput\":\"Radio_radioInput__BgjOj\",\"uncheked\":\"Radio_uncheked__b0y6i\",\"unchekedSmall\":\"Radio_unchekedSmall__OsqpV\",\"labelRoot\":\"Radio_labelRoot__v9NdU\",\"label\":\"Radio_label__QUgqz\",\"disabledLabel\":\"Radio_disabledLabel__SVHV2\",\"disabledUncheked\":\"Radio_disabledUncheked__HCpLT\",\"disabledChecked\":\"Radio_disabledChecked__krKXw\",\"checked\":\"Radio_checked__8yr7y\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"rating\":\"Rating_rating__6O_ui\",\"ratingText\":\"Rating_ratingText__s2vMm\",\"ratingValue\":\"Rating_ratingValue__KS_rp\",\"baseColor\":\"Rating_baseColor__lBxZu\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"snackbar\":\"Snackbar_snackbar__OILbQ\",\"open\":\"Snackbar_open__pmvha\",\"content\":\"Snackbar_content__1bDNJ\",\"loading\":\"Snackbar_loading__5eGOh\",\"success\":\"Snackbar_success__MAHzE\"};"],"names":["__webpack_exports__","Z","_ref","_ref2","onApplyCouponToItem","productId","autoClipCoupon","onGetTermsContent","_useState","useState","applied","applyCoupon","setApplyCoupon","_useState2","loading","setLoading","_useState3","termsContent","setTermsContent","_useState4","applyCouponError","setApplyCouponError","handleApply","_asyncToGenerator","_regeneratorRuntime","_callee","_context","prev","next","couponId","prevApplyCoupon","t0","Error","message","finish","stop","apply","arguments","useEffect","_jsxs","_Fragment","children","_jsx","CouponApplyErrorMessage","className","styles","FormCheckbox","checkboxControllerClassName","checkboxLabelClassName","clickOnLabel","clickOnLabelCallback","disabled","id","value","onChange","label","discountAmount","toFixed","couponPrice","AnchorDialog","iconClassName","contentClassName","anchorContent","open","_ref3","clsx","_defineProperty","onClick","_callee2","e","_context2","sent","_x","dangerouslySetInnerHTML","__html","Icon_IneligibleIcon","width","height","viewBox","fill","xmlns","fillRule","clipRule","d","_components_CouponApplyErrorMessage","IneligibleIcon","ButtonVariants","cartService","CartApiService","apiClient","cookieStorage","listrakAnalytic","cartInteractor","CartInteractor","JQueryScript","_ref$version","version","onLoad","Script","src","concat","strategy","hasJQueryInContents","_len","length","contents","_key","some","content","includes","useControlledAccordion","shortListRef","isOpened","duration","onStateChange","timeoutRef","useRef","isShortListOpened","setHeight","updateHeight","current","scrollHeight","setTimeout","clearTimeout","handleAccordionOpen","newIsOpen","CUT_METHOD_QUESTION","CUSTOM_LENGTH_QUESTION","DRAW_LENGTH_QUESTION","EXPERT_LENGTH","ARROW_REC_QUESTIONS","_components_Accordion","memo","title","icon","_ref$defaultOpen","defaultOpen","_ref$disabled","_ref$className","_ref$hideArrow","hideArrow","dataTestId","contentRef","_useControlledAccordi","type","accordionIconOpen","config","brandCode","ref","style","_components_CustomServiceDescription","description","alertMessage","customizableServiceData","src_useCalcItemPrice","priceCents","salePriceCents","newPriceMin","newPriceMax","newSalePriceMin","newSalePriceMax","productConditionMax","productCondition","UsedAnyPriceMin","isRefurbished","Boolean","getSalesPrice","salePriceRange","getPriceRange","originalpriceRange","currencyFormatting","Number","getOriginalPrice","getProductConditionalPrice","components_SearchResultsPrice","salesPrice","originalPrice","productConditionPrice","pricePerUnit","pricePerUnitLabel","ProductConditionMax","ProductCondition","NewPriceMax","NewPriceMin","NewSalePriceMax","NewSalePriceMin","priceContainerClassName","discountCents","itemId","quantity","_useCalcItemPrice","useCalcItemPrice","renderSalesPrice","_clsx2","renderOriginalPrice","_clsx3","_clsx4","renderDiscountAmount","_yieldToMain","abrupt","Promise","resolve","Buttons_AddToCartButton","buttonVariant","_buttonVariants","handleAddToCart","addToCartOption","BaseButton","classes","buttonVariants","specialOrders","preOrder","info","productDetails","notAvailble","contactUs","viewAdditionalItems","text","yieldToMain","SPEC_LABELS","Straightness","TopSellingAlgonomy","searchItem","idx","_ref$priorityIndex","priorityIndex","addToCartButton","isRadioSelect","isSelected","isRemoveable","_ref$selectedButtonCl","selectedButtonClass","_ref$backordered","backordered","attributes","onContextMenu","onViewAdapter","onDeselect","imageId","linkId","name","numReviews","rating","usedPriceCents","relatedProductsImperative","productType","serviceId","serviceType","purchasable","addToCartButtonText","addToCartOptionId","tidBit","handleCardClick","clickTrackingURL","attributeEntries","Object","entries","Link","showCursorPointer","href","ev","preventDefault","RadioButton","radioLabelClassName","checked","Image","priority","alt","Rating","reviewers","defaultValue","calcAGDrating","ratingContainerClasses","ratingTextClasses","hideRating","SearchResultsPrice","map","_SPEC_LABELS$label","_slicedToArray","AddToCartButton","window","location","_excluded","ownKeys","r","t","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","_objectSpread","forEach","getOwnPropertyDescriptors","defineProperties","defineProperty","DotButton","props","active","dotClassName","restProps","_objectWithoutProperties","Dots","emblaApi","scrollSnaps","selectedIndex","onclick","_","index","_excluded2","PrevButton","buttonsAbsolute","arrowClassName","backArrowClasses","NextButton","nextArrowClasses","hooks_usePrevNextButtons","prevBtnDisabled","setPrevBtnDisabled","nextBtnDisabled","setNextBtnDisabled","onPrevButtonClick","useCallback","scrollPrev","onNextButtonClick","scrollNext","onSelect","canScrollPrev","canScrollNext","on","hooks_useDotButton","setSelectedIndex","setScrollSnaps","onDotButtonClick","scrollTo","onInit","scrollSnapList","selectedScrollSnap","Carousel_EmblaCarousel","slides","options","_ref$showArrows","showArrows","_ref$showDots","showDots","slideContentClassName","containerClassName","_useEmblaCarousel","useEmblaCarousel","containScroll","_useEmblaCarousel2","emblaRef","_useDotButton","useDotButton","_usePrevNextButtons","usePrevNextButtons","slide","isBackOrdered","status","_components_ServiceCarousel","serviceSlides","services","onDeselectServiceProduct","selectedService","_ref$additionalSlides","additionalSlides","_ref$showAttributes","showAttributes","EmblaCarousel","service","TopSellingCardAlgonomy","undefined","_toConsumableArray","slidesToScroll","breakpoints","customServiceCarousel","Icon_SelectedServiceCartIcon","_components_CustomServiceLabel","groupUrl","isAccordionOpened","upgrade","underline","Underline","always","stopPropagation","_components_CustomServiceAccordionTitle","groupName","selectedProduct","included","required","selectedItem","handleChangeSelectedService","groupNameWithoutSpaces","toString","replace","SelectedServiceCartIcon","Spinner","loadingSpinner","CustomServiceLabel","QUESTIONS_PARENT_ID","ARROWS_GROUP","calculateProductPrice","product","buildServiceQuestionState","questions","baseServiceId","prior","values","errors","parentId","resolveAnswer","question","priorValue","answerOptions","match","find","option","answerValue","uom","expert","seed","_answer$relatedQuesti","key","answer","serviceName","relatedQuestions","buildArrowCuttingService","productValues","_productValues$arrowC","arrowCutAnswer","arrowCutServiceId","arrowSku","relatedProductGroup","serviceQuestionAnswers","qa","baseProductSku","servicePrice","collectDescendantTitles","_question$answerOptio","acc","Set","_option$relatedQuesti","related","add","checkIfOtherQuestionsRequireGroup","currentQuestionTitle","questionAnswers","_questions$some","q","_currentAnswer$servic","_currentAnswer$relate","currentAnswer","toLowerCase","isArrowCuttingOption","_option$serviceId","_option$relatedProduc","isArrowCuttingQuestion","_question$answerOptio2","_question$answerOptio3","withExpertLengthFirst","expertIndex","findIndex","reordered","_reordered$splice","splice","_reordered$splice2","calculateServicePriceUpdate","questionTitle","selectedOption","currentAnswers","priceUpdate","previousAnswer","calculateProductGroupPriceUpdate","subTotal","previousPrice","newPrice","getUniqueObjectsByKey","arr","seen","item","val","has","isProductInCartIncludedInGroup","group","_group$recommendedPro","recommendedProducts","products","_components_IncludedCard","Radio","size","alertsService","AlertsApiService","alertsInteractor","AlertsInteractor","CustomServiceProductGroup","forwardRef","_ref4","_productGroupValue$na","productFormState","stepIndex","stepId","errorSection","stepTitle","accordionChange","onSelectServiceProduct","getBackorderMessage","productGroupValue","isLoading","setIsLoading","isArrowsGroup","isArrowsEmpty","alertHtml","setAlertHtml","isAlertSettled","setIsAlertSettled","isAlertFetchingRef","setAlertMessage","allertEditUrl","_useAllertEdit","useAllertEdit","isOpen","loadBackorderMessage","serviceProduct","handleSelectServiceProduct","serviceProductGroupName","_x2","_x3","_x4","loadArrowAlert","_callee3","_result$data","_context3","getArrowNoMatchAlert","result","data","handleDeselectServiceProduct","Accordion","ServiceStepIcon","number","optional","CustomServiceAccordionTitle","isSelectedProductInForm","formValue","PageErrorMessage","event","target","closest","ignoreScroll","ServiceCarousel","IncludedCard","EditIcon","url","webAdminUrl","src_Snackbar","_clsx","onClose","_ref$autoHideDuration","autoHideDuration","setIsOpen","closeTimer","timer","_components_CustomServiceFooter","price","selectedProductGroupsCount","nextSection","activeAccordions","snackBarData","handleAddService","onSnackBarClose","showShadow","setShowShadow","checkScroll","_contentRef$current","clientHeight","isNotAtBottom","scrollTop","checkOverflow","_contentRef$current2","hasOverflow","footerStatus","useMemo","footerTheme","submitButtonDisabled","contentElement","addEventListener","removeEventListener","Snackbar","effectivePrice","discount","useClickOutside","handler","listener","contains","document","_components_ComboBoxMobile","hideSelected","selected","mobile","handleClose","handleChange","trim","CloseIcon","available","closed","Icon_ComboBoxIcon","_ref$color","color","Icon_SelectedComboBox","stroke","strokeLinecap","strokeLinejoin","strokeWidth","src_ComboBox","_clsx5","_comboboxRef$current","comboboxContainerClassName","additionalLabel","onAdditionalLabelClick","onCustomInput","_ref$options","_ref$selectedOption","_ref$error","error","_ref$required","_ref$placeholder","placeholder","_ref$label","searchQuery","setSearchQuery","highlightedIndex","setHighlightedIndex","comboboxRef","searchInputRef","listRef","useMediaQuery","_useFloating","useFloating","whileElementsMounted","autoUpdate","placement","middleware","offset","mainAxis","flip","fallbackPlacements","padding","bottom","top","shift","limiter","limitShift","refs","floatingStyles","filteredOptions","_option$value","useOnClickOutside","floating","handleSelectOption","scrollToHighlightedOption","listElement","highlightedElement","scrollIntoView","block","behavior","handleCustomInput","customInputResult","comboBoxInput","getElementById","focus","setReference","onKeyDown","ComboBoxIcon","ComboBoxMobile","Portal","selector","setFloating","maxWidth","clientWidth","maxHeight","ITEM_HEIGHT","onMouseEnter","SelectedComboBox","QuestionDescriptionInput","isVisible","descriptionRef","inline","DebouncedQuestionInput","committedValue","displayDash","onCommit","setValue","debounced","useDebounce","lastCommittedRef","onCommitRef","onBlur","CustomServiceQuestions","formState","isAccordionOpen","handleQuestionChange","onSelectParentProduct","onError","visibleDescription","setVisibleDescription","selectedQuestion","isAllQuestionsAnswered","every","isRelatedProductSelected","relatedProducts","isValueInRange","numericValue","isNaN","numericValues","min","Math","max","getQuestionRanges","range","hasSingleAnswerOption","toggleDescription","selectQuestion","renderServiceLabel","_selectedQuestion$cur","serviceRadioSpinner","renderSelectedQuestion","_ref5","_formState$serviceQue5","_formState$serviceQue6","_formState$serviceQue7","_getQuestionRanges","_formState$serviceQue","_formState$serviceQue2","isInputDisabled","inputValue","_formState$serviceQue3","String","ComboBox","_formState$serviceQue4","ranges","_x5","selectedAnswerOption","answerOption","comboBoxContainer","parentProductLink","join","questionDescriptionMobile","questionDescriptionDesktop","isEnglishAlphabet","invalidCharactersRegex","testResult","test","correctValue","FormHelperText","dynamic","then","__webpack_require__","bind","ssr","loadableGenerated","webpack","_components_TextArea","maxLength","errorMessage","_props$error","rest","htmlFor","_isEnglishAlphabet","_isEnglishAlphabet2","alert","FormErrorCode","EnglishAlphabet","store","customService","initialValue","relatedProductGroups","_group$recommendedPro2","productQuestions","touched","UPDATE_QUESTION","UPDATE_PRODUCT","DELETE_PRODUCT","VALIDATE_FORM","RESET_ARROW_PRODUCTS","REPLACE_ARROW_CUTTING_QUESTION","reducer","state","action","_state$customService$","_fetchedQuestion$answ","_oldQuestion$answerOp","_fetchedOption$relate","_oldQuestion$answerOp2","_oldQuestion$answerOp3","_action$payload","payload","fetchedQuestion","existingQuestions","targetIndex","oldQuestion","questionKey","selectedAnswer","fetchedOption","nodeOption","attachedRelatedQuestions","updatedQuestion","updatedQuestions","rebuilt","_action$payload2","questionId","newQuestions","updatedQuestionsValues","updatedQuestionErrors","updatedQuestionParentIds","updatedProductValues","updatedProductErrors","updatedProductParentIds","updatedProductQuestions","updatedProductGroups","_previousAnswer$servi","groupIndex","_previousAnswer$relat","_previousAnswer$relat2","otherQuestionsRequireThisGroup","relatedQuestion","_updatedQuestionParen","startsWith","_updatedQuestionParen2","newSelectedOption","relatedQuestionParentId","_updatedProductGroups","hasSelectedProduct","allQuestionsAnswered","updatedSubTotal","_state$customService$2","relatedQuestionsToMClear","productGroup","previousProduct","updatedValues","updatedErrors","updatedQuestionValues","_updatedQuestionParen3","_state$customService$3","productToDelete","priceToDeduct","updatedParentIds","_state$customService$4","_state$productQuestio","_state$relatedProduct","_incomingGroup$recomm","_incomingGroup$recomm2","canonicalName","canonicalIndex","existingSelectedProduct","incomingGroup","incomingName","existingGroups","g","existing","isServiceDetailsAnswer","_state$serviceQuestio","groupKeyPrefix","visibleGroupTitles","slice","_value$relatedProduct","requiredAfterMerge","autoSelectedPrice","ShoppingCartApiService","promotionBannerService","PromotionBannerApiService","CustomService","_ref9","_ref10","_ref15","_ref16","_ref17","_ref18","_ref19","_formState$customServ4","_formState$customServ5","productSku","infoMode","serviceSku","addService","addCustomService","_useReducer","useReducer","createInitialCustomServiceState","dispatch","comment","setComment","serviceInfo","openSections","setOpenSections","setSnackBarData","shouldLoadJQuery","activeAccordion","questionsRef","productRefs","refreshQuestionsId","arrowRecAbortRef","applyQuestionsAbortRef","Map","_customService$relate","serviceSteps","_formState$customServ","_Object$values$find","dynamicQuestions","relatedToInline","visited","level","_loop","nextLevel","relatedChildren","serviceStep","productGroups","_formState$relatedPro","arrowCuttingGroupName","relatedSteps","questionStep","_ret","_step","_iterator","_createForOfIteratorHelper","s","n","done","_loop2","step","hasOwnProperty","v","isProductSelected","err","f","handleAccordionChange","accordionId","setActiveAccordion","setSnackBarError","setSnackBarSuccess","validateForm","questionErrors","element","elementTop","offsetTop","containerTop","productErrors","handleServiceInfoChange","_relatedQuestions$","existingParentId","serviceIdToUse","fetchedQuestions","_ref7","_ref8","split","getProductQuestions","console","handleGetBackorderMessage","getAlertMessage","relatedServices","arrowCuttingService","_ref11","_ref12","_ref13","_formState$customServ2","_ref14","sku","relatedServiceId","_formState$relatedPro2","substring","getArrows","_callee4","_arrowRecAbortRef$cur","_recomendedArrows$rec","overrides","valueFor","arrowLengthRaw","drawLengthRaw","drawLength","drawWeightRaw","tipWeightRaw","request","controller","recomendedArrows","_args4","_context4","cutMethod","isFinite","arrowLength","drawWeight","tipWeightCategory","abort","AbortController","getArrowRecommendation","signal","aborted","_x6","_x7","applyServiceQuestions","_callee5","_applyQuestionsAbortR","_context5","get","set","_x8","_x9","_x10","_x11","seedSingleOptionRelatedQuestions","baseId","seeded","_related$required","childId","assign","refreshArrowCuttingQuestion","_callee6","_arrowCuttingQuestion","_formState$customServ3","_cuttingChain$answerO","_cutMethodQuestion$an","isArrowCutReselect","drawLengthValue","requestId","arrowCuttingQuestion","_response$questions$f","_response$questions","response","cutMethodKey","cutMethodValue","cuttingChain","cutMethodQuestion","expertOption","isExpertOrEmpty","shouldForceExpert","expertSelected","_cutMethodQuestion$re","_args6","_context6","flatMap","_x12","maybeRefreshArrowCuttingQuestion","_callee7","_nextValues","nextValues","_context7","_x13","_x14","_callee8","seededOverrides","_nextValues2","willRefresh","_selectedOption$relat","_cutMethodQuestion$an2","_cutMethodQuestion$re2","_formState$relatedPro3","_context8","_x15","_x16","_x17","_x18","_document","htmlRoot","querySelector","classList","_document2","remove","banner","CustomServiceDescription","el","commentAllowed","comments","TextArea","commentTextArea","CustomServiceFooter","CustomizableService","queryClient","_useStrictQuery","isFetching","_useStrictQuery2","isCustomizableServiceInfoFetching","_onSuccess","_useServiceMissingIte","relatedProductSku","useQueryClient","useStrictQuery","res","getServiceInfo","enabled","getCustomizedService","refetchOnMount","refetchOnWindowFocus","cacheTime","staleTime","addMissingItem","_useStrictMutation","useStrictMutation","onSuccess","invalidateQueries","SHOPPING_CART_DATA_QUERY_KEY","mutateAsync","LoadMoreSpinner","CustomizableServiceDialog","_components_CustomServiceAnchorDialog","paperClassName","titleClassName","customizableServiceIcon","close","CustomizableServiceDialogLoader","testid","Popover","anchorComponent","QuestionMarkIcon","popoverContent","ArrowUpIcon","pyr_ProductCardName","_product$mainSku","layout","isReviewOrderPage","isShippingOptionPage","CustomServiceAnchorDialog","disableBackdropClick","mainSku","productUrl","_components_ProductDescription","brandItemCode","_components_ProductInfo","productTextClassName","productIDDescription","ProductCardName","superConfigurator","productSpecifications","typeService","ProductDescription","itemConditionRank","ProductConditionRank","withoutIcon","headerClassName","ProductPurchaseLimitMessage","setIsVisible","Dialog","checkboxMainContainerClasses","checkboxContainerClassName","labelClick","checkboxRef","checkboxControllerStyles","CheckBoxIcon","_checkboxRef$current","click","Component","_ref$optional","animationStarted","setAnimationStarted","checkVisible","setCheckVisible","numberVisible","setNumberVisible","initialType","hideNumberTimer","showCheckTimer","cx","cy","x","y","textAnchor","fontSize","fontWeight","fontFamily","errorRef","WarningIcon","src_Radio","value1","nameProp","checkedProp","_ref$size","onChangeProp","radioClassName","labelClassName","classNameLabel","customRadioContainerClasses","uncheckedClassName","textEndAdornment","textEndAdornmentClassName","endAdornment","endAdornmentClassName","_ref$canSelect","canSelect","radioGroup","useContext","RadioGroupContext","value2","CircleIcon","createContext","_ref$hideRating","_ref$ratingDescriptio","ratingDescription","_ref$width","_ref$height","parseFloat","ProductServiceType","SignatureStateType","SignatureForcedReasonType","DiscountErrorType","minPrice","maxPrice","resultMin","resultMax","roundedRating","round","module","exports"],"sourceRoot":""}