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xB7C,SAAU6C,IAAAA,IAAc,CACxBtC,SAAUsC,IAAAA,IAAc,CACxB1C,SAAU0C,IAAAA,MAAgB,CAC1BiH,SAAUjH,IAAAA,IAAc,CACxBoH,OAAQpH,IAAAA,MAAgB,CACxBhD,MAAOgD,IAAAA,IAAc,CACrBkH,IAAKlH,IAAAA,MAAgB,CACrBmH,IAAKnH,IAAAA,MAAgB,EAIzB,MAAelB,KAAKA","sources":["webpack://_N_E/./components/icons/IconDone.jsx","webpack://_N_E/./components/forms/Select/index.jsx","webpack://_N_E/./components/forms/Select/Select.module.scss","webpack://_N_E/./components/icons/IconSearch.jsx","webpack://_N_E/./components/applications/pip/components/Options/DisplayName/SelectedDisplay.jsx","webpack://_N_E/./components/applications/pip/components/Options/DisplayName/SetExtraDisplay.jsx","webpack://_N_E/./components/applications/pip/components/Options/DisplayName/HelpText.jsx","webpack://_N_E/./components/applications/pip/components/Options/DisplayName/index.jsx","webpack://_N_E/./components/icons/IconInputError.jsx","webpack://_N_E/./components/forms/Select/SelectItem.jsx","webpack://_N_E/./components/applications/pip/components/CustomizeSelect/CustomizeSelect.module.scss","webpack://_N_E/./components/forms/Input/Input.module.scss","webpack://_N_E/./components/applications/pip/components/Options/DisplayName/DisplayName.module.scss","webpack://_N_E/./lib/Utils/moveItemInArray.js","webpack://_N_E/./components/applications/pip/components/CustomizeSelect/CustomizeSelect.helpers.js","webpack://_N_E/./components/applications/pip/components/CustomizeSelect/index.jsx","webpack://_N_E/./components/applications/pip/components/Options/Dropdowns.jsx","webpack://_N_E/./lib/Utils/removeSpaces.js","webpack://_N_E/./components/forms/Input/index.jsx"],"sourcesContent":["\nexport function IconDone(props){\n return(\n \n \n \n )\n}","\"use client\"\n\n/* eslint-disable react-hooks/exhaustive-deps */\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport React, { useEffect, useRef, useState } from 'react';\nimport Input from '../Input';\nimport Style from './Select.module.scss';\n\n\nconst Select = React.forwardRef(({ \n error, \n label, \n required, \n disabled, \n value, \n children, \n helpText, \n className,\n name,\n color,\n readOnly,\n onKeyUp = () => null,\n onInput = () => null,\n onChange = () => null,\n watchActiveState = () => null\n\n}, ref) => {\n const [ newValue, setValue ] = useState(null)\n const inputRef = useRef()\n const [ isActive, setIsActive ] = useState(false)\n\n useEffect(() => {\n watchActiveState(isActive)\n \n }, [ isActive ])\n \n\n \n const triggerEvents = (event) => {\n const value = inputRef.current.value;\n\n if( onChange ){ onChange(value, inputRef.current, event); }\n if( onKeyUp ){ onKeyUp(value, inputRef.current, event); }\n if( onInput ){ onInput(value, inputRef.current, event); }\n }\n\n \n const inputChange = (e) => {\n if(inputRef.current){\n triggerEvents(e)\n }\n\n setValue(() => ref?.current?.value ?? e?.target?.value)\n setIsActive(() => false)\n }\n\n\n useEffect(() => {\n if( value ){\n setValue(value);\n setIsActive(false);\n }\n\n }, [value])\n\n\n\n\n return(\n
\n
\n setIsActive(true)}\n onBlur={() => setTimeout(() => { setIsActive(false) }, 500)}\n id={name}\n />\n \n \n {children}\n \n\n
\n\n {helpText &&\n \n {helpText}\n \n }\n
\n )\n})\n\nSelect.displayName = \"Select\";\n\nSelect.propTypes = {\n label: PropTypes.string.isRequired,\n placeholder: PropTypes.string,\n name: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n required: PropTypes.bool,\n disabled: PropTypes.bool,\n helpText: PropTypes.string,\n error: PropTypes.bool,\n value: PropTypes.any,\n children: PropTypes.any.isRequired,\n className: PropTypes.string\n}\n\n\nexport default Select;","// extracted by mini-css-extract-plugin\nmodule.exports = {\"control\":\"Select_control__Jqc_9\",\"label\":\"Select_label__6sA1V\",\"help\":\"Select_help__1eRzJ\",\"menu\":\"Select_menu__ASeJT\",\"arrowBtn\":\"Select_arrowBtn__jgZRx\",\"block\":\"Select_block__oYll3\",\"block__ocean\":\"Select_block__ocean__1IBlk\",\"arrowBtn__active\":\"Select_arrowBtn__active__Evunc\",\"error__label\":\"Select_error__label__4cHjx\",\"error__control\":\"Select_error__control__c0wJR\",\"error__help\":\"Select_error__help__xU1MD\",\"label__ocean\":\"Select_label__ocean__jqv6w\",\"control__ocean\":\"Select_control__ocean__rC4mq\",\"controlGroup\":\"Select_controlGroup__TuNhA\",\"controlGroupActive\":\"Select_controlGroupActive__uFzSO\",\"active\":\"Select_active__GvTec\",\"menuItem\":\"Select_menuItem__46Y4I\",\"menuItemSelected\":\"Select_menuItemSelected__qsDSM\"};","\nexport function IconSearch(props){\n return(\n \n \n \n \n )\n}","import Image from \"next/image\";\nimport Style from './DisplayName.module.scss'\n\n\n\nfunction SelectedDisplay({ selectedOption, blurImage }){\n return(\n <>\n {(!Array.isArray(selectedOption) && selectedOption?.title) ? (\n
\n \n {selectedOption?.image && (\n {selectedOption?.title}\n )} {selectedOption.title}\n \n
\n\n ):(\n <>\n {Array.isArray(selectedOption) && (\n
\n \n {selectedOption?.[0]?.image && (\n {selectedOption?.[0]?.title}\n )} \n \n {selectedOption.map(opt => opt.title).join(\", \")}\n \n
\n )}\n \n )}\n \n )\n}\n\nexport default SelectedDisplay;","import clsx from 'clsx';\nimport Style from './DisplayName.module.scss'\n\n\n\nfunction SetExtraDisplay({ products, productSetLength }){\n return(\n \n {(productSetLength !== products.length) ? (\n \n \n For the:\n \n\n {products.map((product, i) => `${product.name}${i+1 !== products.length ? \", \" : \"\"}`)}\n \n ):(\n \n For all pieces in this set.\n \n )}\n \n )\n}\n\nexport default SetExtraDisplay;","import Style from './DisplayName.module.scss'\n\nfunction HelpText({ children }){\n return(\n
\n {children}\n
\n )\n}\n\nexport default HelpText;","import PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport { IconAlertTriangle } from \"components/icons/IconAlertTriangle\";\nimport { IconDone } from \"components/icons/IconDone\";\nimport { IconPlus } from \"components/icons/IconPlus\";\nimport utils from 'styles/globals/utils.module.scss';\nimport Style from './DisplayName.module.scss'\nimport { blurImage } from 'lib/Constants/blurImage';\nimport { isValidElement, useEffect, useState } from \"react\";\nimport SelectedDisplay from \"./SelectedDisplay\";\nimport SetExtraDisplay from \"./SetExtraDisplay\";\nimport HelpText from \"./HelpText\";\n\n\nfunction DisplayName({ \n name, \n hasError = true, \n step, \n isOpen = false, \n isSelected, \n productSetLength,\n products = [],\n contextState,\n length,\n selectedOption = null,\n isStepCallout = false,\n availabilityTitle = \"option\",\n helpText = null,\n stepClassName = \"\"\n}){\n const [ open, setOpen ] = useState(false);\n\n useEffect(() => {\n setOpen(isOpen);\n }, [ isOpen ])\n\n\n return(\n setOpen(!open)}>\n
\n {(hasError && !isSelected) ? (\n \n \n \n\n ):(\n <>\n {isValidElement(step) ? (\n \n {step}\n \n\n ):(\n \n \n {isSelected ? : `${step}` }\n \n )}\n \n )}\n \n
\n \n {((length && !selectedOption?.title) && !selectedOption?.[0]?.title) ? (\n \n {length} {availabilityTitle}{length > 1 && \"s\"} available\n \n ):null}\n \n {name}\n\n \n\n {helpText && (\n \n {helpText}\n \n )}\n \n\n {contextState === \"sets\" && (\n \n )}\n\n {(hasError && !isSelected) && (\n \n  Please choose a customization!\n \n )}\n
\n
\n\n \n
\n )\n}\n\n\nDisplayName.propTypes = {\n name: PropTypes.string,\n hasError: PropTypes.bool,\n selectedOption: PropTypes.oneOfType([ PropTypes.array, PropTypes.object ]),\n isOpen: PropTypes.bool,\n isSelected: PropTypes.bool,\n productSetLength: PropTypes.number,\n products: PropTypes.array,\n contextState: PropTypes.string,\n length: PropTypes.number,\n step: PropTypes.oneOfType([ PropTypes.string, PropTypes.element ]),\n isStepCallout: PropTypes.bool,\n availabilityTitle: PropTypes.string,\n helpText: PropTypes.oneOfType([ PropTypes.string, PropTypes.element ]),\n stepClassName: PropTypes.string\n}\n\n\nexport default DisplayName;","\nexport function IconInputError(props){\n return(\n \n \n \n )\n}","import clsx from 'clsx';\nimport Style from './Select.module.scss';\n\n\nfunction SelectItem({ \n value, \n children, \n name,\n index = -1, \n isSelected = false,\n onClick = () => null \n}){\n return(\n
  • onClick({ value, name })}\n role=\"option\"\n >\n {children}\n
  • \n ) \n}\n\n\nexport default SelectItem;","// extracted by mini-css-extract-plugin\nmodule.exports = {\"block\":\"CustomizeSelect_block__VRgp_\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"control\":\"Input_control__hNWIt\",\"active\":\"Input_active__WYu4O\",\"file\":\"Input_file__iQEKD\",\"label\":\"Input_label__Gql5L\",\"help\":\"Input_help__1zng9\",\"block__select\":\"Input_block__select__cIx0D\",\"block\":\"Input_block__U2yiM\",\"errorIcon\":\"Input_errorIcon__JluuM\",\"flushRightIcon\":\"Input_flushRightIcon__fRr4q\",\"error__label\":\"Input_error__label__YUuBD\",\"error__control\":\"Input_error__control__6LJBw\",\"error__help\":\"Input_error__help__GiGRS\",\"hasUnit\":\"Input_hasUnit__8laLF\",\"controlGroup\":\"Input_controlGroup__4_lzQ\",\"togglePassword\":\"Input_togglePassword__dkWy4\",\"clearInput\":\"Input_clearInput__I9MTa\",\"searchIcon\":\"Input_searchIcon__RQt3P\",\"postFix\":\"Input_postFix__3MhPJ\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"selected\":\"DisplayName_selected__YF68x\",\"extrasName\":\"DisplayName_extrasName__KnvLr\",\"block\":\"DisplayName_block__m1bnq\",\"name\":\"DisplayName_name__LROqS\",\"optionsLength\":\"DisplayName_optionsLength__hiH10\",\"step\":\"DisplayName_step__PFqqQ\",\"stepCallout\":\"DisplayName_stepCallout__DWqTO\",\"stepCheck\":\"DisplayName_stepCheck__VAPaV\",\"stepIcon\":\"DisplayName_stepIcon__JiZKG\",\"stepIconError\":\"DisplayName_stepIconError__6MRfV\",\"shake\":\"DisplayName_shake__Wmfs9\",\"stepError\":\"DisplayName_stepError__jKK06\",\"label\":\"DisplayName_label__t8JpN\",\"toggleIcon\":\"DisplayName_toggleIcon__14DXr\",\"iconRotate\":\"DisplayName_iconRotate__zDDqh\",\"text\":\"DisplayName_text__6D2Z_\",\"extras\":\"DisplayName_extras___vZMX\",\"extrasStandard\":\"DisplayName_extrasStandard__kXxYX\",\"optionSelections\":\"DisplayName_optionSelections___V2K2\",\"image\":\"DisplayName_image__gc8TI\",\"error\":\"DisplayName_error__CtY26\",\"controlGroup\":\"DisplayName_controlGroup__6HXXe\",\"control\":\"DisplayName_control__CTftq\"};","/**\n * Move an item in an array\n * @param {Number} from \n * @param {Number} to \n * @param {Array} arr \n * @returns \n */\n\nexport default function moveItemInArray(from, to, arr) {\n const newArr = [...arr];\n const item = newArr.splice(from, 1)[0];\n\n newArr.splice(to, 0, item);\n\n return newArr;\n}\n","import moveItemInArray from \"lib/Utils/moveItemInArray\";\nimport parseOptionLabel from 'components/applications/pip/helpers/parseOptionLabel.helper';\n\n\nexport function sortDropdownsByPrice(options = []){\n const parsedValues = options.map(item => {\n const parsed = parseOptionLabel(item.label)\n return {\n ...item,\n ...parsed\n }\n })\n\n const initialSort = parsedValues.sort((a, b) => a[\"priceAdjustNumeric\"] > b[\"priceAdjustNumeric\"] ? 1 : -1); \n const noThxIndex = initialSort.findIndex(item => item.text === \"No Thanks\")\n const sorted = (noThxIndex !== -1) ? moveItemInArray(noThxIndex, 0, initialSort) : initialSort;\n\n return sorted;\n}","/* eslint-disable react-hooks/exhaustive-deps */\nimport PropTypes from \"prop-types\";\nimport Select from \"components/forms/Select\";\nimport { useContext, useState } from \"react\";\nimport { ProductOptionContext } from \"components/applications/pip/contexts/ProductOptionContext\";\nimport formatPrice from \"lib/Utils/formatPrice\";\nimport Style from './CustomizeSelect.module.scss'\n// import { toast } from 'react-toastify'\nimport { getUpdateReducerName } from \"components/applications/pip/helpers/PIP.helpers\"\nimport parseOptionLabel from 'components/applications/pip/helpers/parseOptionLabel.helper';\n\nimport { useEffect } from \"react\";\nimport { sortDropdownsByPrice } from \"./CustomizeSelect.helpers\";\nimport SelectItem from \"components/forms/Select/SelectItem\";\n\n\nfunction CustomizeSelect({ optionData, product_id = null, contextState, step }){\n const [ state, dispatch ] = useContext(ProductOptionContext);\n const [ optionValues, setOptionValues ] = useState([]);\n const [ value, setValue ] = useState(null)\n\n\n useEffect(() => {\n const sorted = sortDropdownsByPrice(optionData.values)\n setOptionValues(sorted)\n\n }, [])\n\n\n\n function openState(state){\n dispatch({\n type: \"customSelectIsOpen\",\n data: state\n })\n }\n\n\n\n \n const handelChanges = (option, selectedValue) => {\n const selected = option.values.find(opt => opt.option_id === parseInt(selectedValue))\n const parseSelect = parseOptionLabel(selected.label)\n const reducerType = getUpdateReducerName(contextState)\n\n setValue(parseSelect?.text)\n\n dispatch({\n type: reducerType,\n data: {\n key: option?.display_name,\n title: parseSelect?.text,\n attributeValue: selectedValue,\n price: parseSelect?.priceAdjustNumeric ?? 0,\n product_id: product_id\n }\n })\n\n\n // notify receivers of the global update\n dispatch({ \n type: \"setReceiverControl\", \n data: {\n key: option?.display_name,\n title: parseSelect?.text,\n step: step,\n product_id: product_id\n } \n })\n \n\n // toast(`${parseSelect?.text.includes(\"No \") ? `No ${option.display_name.split(\"Select\")[1]}` : parseSelect?.text} added`)\n }\n\n\n return(\n
    \n \n
    \n )\n}\n\n\nCustomizeSelect.propTypes = {\n optionData: PropTypes.object\n}\n\n\nexport default CustomizeSelect;","import DisplayName from \"./DisplayName\"\nimport CustomizeSelect from \"components/applications/pip/components/CustomizeSelect\"\n\nfunction Dropdowns({ \n item, \n step, \n errors, \n product_id, \n openState = false, \n isSelected,\n contextState = \"options\",\n productSetLength,\n selectedOption\n}){\n return(\n
    \n ele?.display_name === item?.display_name)}\n isOpen={openState}\n {...{ \n productSetLength, \n step, \n isSelected, \n contextState, \n selectedOption \n }}\n products={item?.setProducts}\n />\n \n
    \n \n
    \n
    \n )\n}\n\nexport default Dropdowns","/**\n * Removes ALL spaces from a string\n * @param {String} string \n * @returns a string with no spaces\n */\n\nexport default function removeSpaces(string = \"\"){\n return string.replace(/\\s/g, '');\n}\n","\"use client\"\n\n/* eslint-disable react-hooks/exhaustive-deps */\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useId, useRef, useState } from 'react';\nimport clsx from 'clsx';\nimport removeSpaces from 'lib/Utils/removeSpaces';\nimport { IconClose } from 'components/icons/IconClose';\nimport { IconInputError } from 'components/icons/IconInputError';\nimport { IconSearch } from 'components/icons/IconSearch';\n\nimport Style from './Input.module.scss';\n\n\n\nconst Input = React.forwardRef(({\n type = \"text\",\n className,\n autoComplete,\n label,\n name,\n required,\n disabled,\n error = false,\n value,\n canClear,\n placeholder,\n min,\n max,\n id,\n accept,\n maxLength,\n minLength,\n readOnly,\n helpText,\n controlClass,\n unitText = null,\n onFocus = () => null,\n onBlur = () => null,\n onChange = () => null,\n onKeyUp = () => null,\n onInput = () => null,\n autoFocus = false,\n clearBtnTabIndex = 0,\n ...other\n}, ref ) => {\n\n const inputRef = useRef()\n const [ newValue, setValue ] = useState(\"\")\n const [ inputType, setType ] = useState(type);\n const [ hasFocus, setHasFocus ] = useState(null)\n const genId = useId()\n\n useEffect(() => {\n if( autoFocus ){ \n inputRef.current.focus() \n }\n \n }, [])\n\n\n useEffect(() => {\n if( value || value === 0 ){\n setValue(value)\n setHasFocus(true)\n }\n \n }, [ value ])\n\n \n \n const togglePassword = () => {\n const newType = inputType === \"text\" ? \"password\" : \"text\"\n setType(newType)\n }\n\n\n const triggerEvents = (event) => {\n const value = inputRef.current.value;\n\n if( onChange ){ onChange(value, inputRef.current, event); }\n if( onKeyUp ){ onKeyUp(value, inputRef.current, event); }\n if( onInput ){ onInput(value, inputRef.current, event); }\n }\n\n\n function checkForValue(e){\n const hasValue = ref?.current?.value.length || e?.target?.value.length;\n const hasCurrentFocus = document.activeElement === inputRef.current;\n\n if( \n ((hasCurrentFocus && hasValue) ||\n (hasCurrentFocus && !hasValue) || \n (!hasCurrentFocus && hasValue)) &&\n e.type === \"focus\"\n ){\n setHasFocus(true)\n\n }else if( (!hasCurrentFocus && !hasValue) ){\n setHasFocus(false)\n onBlur()\n\n }else if ( e.type === \"blur\" ){\n onBlur()\n }\n }\n\n\n const inputChange = (e) => {\n triggerEvents(e)\n setValue(ref?.current?.value ?? e?.target?.value)\n checkForValue(e)\n }\n\n\n const clearInput = () => {\n inputRef.current.value = \"\";\n\n setValue(\"\")\n triggerEvents()\n onBlur()\n }\n\n\n return(\n
    \n
    \n {\n inputRef.current = node;\n\n if (typeof ref === 'function') {\n ref(node);\n\n } else if (ref) {\n ref.current = node;\n }\n }}\n id={removeSpaces(id ?? genId)}\n autoComplete={!autoComplete && \"new-password\"}\n type={inputType}\n name={name}\n className={clsx(Style.control, controlClass, error && Style.error__control)} \n required={required}\n placeholder={placeholder}\n value={newValue}\n accept={accept}\n disabled={disabled}\n onChange={inputChange}\n onInput={inputChange}\n onKeyUp={inputChange}\n onFocus={() => {\n onFocus()\n setHasFocus(true)\n }}\n onBlur={checkForValue}\n min={min}\n max={max}\n readOnly={readOnly}\n minLength={type === \"password\" ? 8 : minLength}\n maxLength={type === \"password\" ? 20 : maxLength}\n {...other}\n />\n\n {error && (\n \n )}\n\n\n {(canClear && hasFocus && type !== \"password\") && (\n \n )}\n \n\n {type === \"password\" && (\n \n )}\n\n\n {unitText && (\n \n {unitText}\n \n )}\n\n\n inputRef.current.focus()}\n className={clsx(Style.label, error && Style.error__label, !!unitText && Style.hasUnit)} \n htmlFor={removeSpaces(id ?? genId)}\n style={{ width: (!unitText && (type !== \"search\" || type !== \"password\" )) ? \"100%\" : \"80%\" }}\n >\n {label}\n \n\n {type === \"search\" && }\n
    \n\n {helpText && \n

    \n {helpText}\n

    \n }\n
    \n )\n})\n\nInput.displayName = 'Input';\n\n\nInput.propTypes = {\n type: PropTypes.oneOf([\"text\", \"email\", \"number\", \"time\", \"url\", \"password\", \"search\", \"tel\" ]),\n label: PropTypes.string,\n placeholder: PropTypes.string,\n name: PropTypes.string,\n controlClass: PropTypes.string,\n value: PropTypes.any,\n onChange: PropTypes.func,\n required: PropTypes.bool,\n disabled: PropTypes.bool,\n readOnly: PropTypes.bool,\n helpText: PropTypes.string,\n canClear: PropTypes.bool,\n accept: PropTypes.string,\n error: PropTypes.bool,\n min: PropTypes.number,\n max: PropTypes.number,\n}\n\n\nexport default Input;"],"names":["IconDone","props","svg","xmlSpace","viewBox","aria-label","path","d","Select","React","ref","error","label","required","disabled","value","children","helpText","className","name","color","readOnly","onKeyUp","onInput","onChange","watchActiveState","newValue","setValue","useState","inputRef","useRef","isActive","setIsActive","useEffect","triggerEvents","current","event","div","clsx","Style","class","Input","inputChange","e","target","onFocus","onBlur","setTimeout","id","menu","tabIndex","role","aria-labelledby","button","type","onClick","small","displayName","propTypes","PropTypes","placeholder","IconSearch","focusable","aria-hidden","title","SelectedDisplay","selectedOption","blurImage","Array","isArray","span","image","Image","src","width","height","alt","blurDataURL","map","opt","join","SetExtraDisplay","products","length","product","i","HelpText","DisplayName","hasError","step","isOpen","isSelected","productSetLength","contextState","isStepCallout","availabilityTitle","stepClassName","open","setOpen","summary","utils","IconAlertTriangle","isValidElement","strong","fill","IconPlus","IconInputError","SelectItem","index","li","data-value","aria-selected","CustomizeSelect","optionData","product_id","state","dispatch","useContext","ProductOptionContext","optionValues","setOptionValues","sortDropdownsByPrice","sorted","options","initialSort","parsedValues","item","parsed","parseOptionLabel","sort","a","b","noThxIndex","findIndex","text","moveItemInArray","to","arr","newArr","splice","from","values","handelChanges","option","selectedValue","selected","find","option_id","parseInt","parseSelect","reducerType","getUpdateReducerName","data","key","display_name","attributeValue","price","priceAdjustNumeric","openState","priceAdjust","formatPrice","Dropdowns","errors","details","some","ele","setProducts","fieldset","removeSpaces","string","replace","autoComplete","canClear","min","max","accept","maxLength","minLength","controlClass","unitText","autoFocus","clearBtnTabIndex","other","inputType","setType","hasFocus","setHasFocus","genId","useId","focus","checkForValue","hasValue","hasCurrentFocus","document","activeElement","input","node","clearInput","IconClose","togglePassword","newType","htmlFor","style","p"],"sourceRoot":"","ignoreList":[]}