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OAAQ,QAAS,SAAU,OAAQ,MAAO,WAAY,SAAU,MAAO,OAAQ,EACtG1C,MAAO0C,IAAAA,MAAgB,CACvBE,YAAaF,IAAAA,MAAgB,CAC7BnC,KAAMmC,IAAAA,MAAgB,CACtBmD,aAAcnD,IAAAA,MAAgB,CAC9BvC,MAAOuC,IAAAA,GAAa,CACpB9B,SAAU8B,IAAAA,IAAc,CACxBzC,SAAUyC,IAAAA,IAAc,CACxBxC,SAAUwC,IAAAA,IAAc,CACxBlC,SAAUkC,IAAAA,IAAc,CACxBrC,SAAUqC,IAAAA,MAAgB,CAC1B6C,SAAU7C,IAAAA,IAAc,CACxBgD,OAAQhD,IAAAA,MAAgB,CACxB3C,MAAO2C,IAAAA,IAAc,CACrB8C,IAAK9C,IAAAA,MAAgB,CACrB+C,IAAK/C,IAAAA,MAAgB,EAMzB,MAAeb,KAAKA,EAAC,MCrOrB,WAAkB","sources":["webpack://_N_E/./icons/IconClose.jsx","webpack://_N_E/./components/forms/Select/index.jsx","webpack://_N_E/./components/forms/Select/SelectItem.jsx","webpack://_N_E/./lib/utils/createSearchParamsObject.js","webpack://_N_E/./lib/utils/makeQueryString.js","webpack://_N_E/./components/applications/plp/FilterControls/PerPage.jsx","webpack://_N_E/?b086","webpack://_N_E/./components/forms/Select/Select.module.scss","webpack://_N_E/./components/applications/plp/FilterControls/FilterControl.module.scss","webpack://_N_E/./lib/utils/removeSpaces.js","webpack://_N_E/./icons/IconInputError.jsx","webpack://_N_E/./components/forms/Input/index.jsx","webpack://_N_E/./components/forms/Input/Input.module.scss"],"sourcesContent":["\nexport function IconClose(props){\n return(\n \n \n \n )\n}","/* eslint-disable react-hooks/exhaustive-deps */\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport React, { useEffect, useRef, useState } from 'react';\n// import useDebounce from 'react-use/lib/useDebounce';\nimport Input from '../Input';\n\nimport Style from './Select.module.scss';\n\n\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 valuesMap = [],\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\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 setValue(() => ref?.current?.value ?? e?.target?.value)\n setIsActive(() => false)\n }\n\n\n useEffect(() => {\n if( value ){\n setValue(value)\n }\n\n }, [value])\n\n\n\n\n return(\n
\n
\n setIsActive(true)}\n onBlur={() => setTimeout(() => { setIsActive(false) }, 200)}\n />\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;","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 >\n {children}\n
  • \n ) \n}\n\n\nexport default SelectItem;","\n\n\nexport function createSearchParamsObject(searchParams){\n const obj = {};\n\n for (const [key, value] of searchParams.entries()) {\n \n if (obj !== undefined && obj.hasOwnProperty(key)) {\n\n if (Array.isArray(obj[key])) {\n obj[key].push(value);\n }\n else {\n obj[key] = new Array(obj[key]);\n obj[key].push(value);\n } \n\n }\n else {\n obj[key] = value;\n\n }\n\n }\n\n\n return obj\n}","\n/**\n * Makes a query string from an object for the URL\n * @param {object} query \n * @returns string\n */\n\nexport default function makeQueryString(query){\n let queryString = \"?\";\n\n for( let key in query ){\n if (Array.isArray(query[key])) {\n\n query[key].forEach(v => {\n queryString += `${key}=${v}&`\n }) \n \n }else{\n queryString += `${key}=${query[key]}&`\n }\n }\n\n return queryString.substring(0, queryString.length - 1)\n}\n","\"use client\"\n\nimport Select from \"@/components/forms/Select\";\nimport SelectItem from \"@/components/forms/Select/SelectItem\";\nimport Style from \"./FilterControl.module.scss\"\nimport { useState } from \"react\";\nimport { usePathname, useRouter, useSearchParams } from \"next/navigation\";\nimport { createSearchParamsObject } from \"@/lib/utils/createSearchParamsObject\";\nimport makeQueryString from \"@/lib/utils/makeQueryString\";\n\n\nfunction PerPage({ values = [ 24, 48, 96 ] }){\n const [ value, setValue ] = useState(values[1])\n const router = useRouter()\n const pathName = usePathname()\n const searchParams = useSearchParams()\n const query = createSearchParamsObject(searchParams)\n\n function handelChanges(value){\n setValue(value);\n\n const newQuery = makeQueryString({\n ...query,\n hitsPerPage: value,\n limit: value\n })\n\n router.push(pathName + newQuery)\n }\n\n\n return(\n \n {values.map((value, index) => (\n handelChanges(e.value)}\n >\n {value}\n \n ))}\n \n )\n}\n\nexport default PerPage;","import(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/applications/plp/FilterControls/PerPage.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/display/Badge/index.jsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/layout/GridColumn/GridColumn.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/display/Card/Card.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/app/(browse & nav)/Browse.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/display/TextBlock/TextBlock.module.scss\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/navigation/BackButton/index.jsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"default\"] */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/navigation/Breadcrumbs/index.jsx\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/navigation/FeaturedCategories/FeaturedCategories.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/display/Divider/Divider.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/product/ProductCard/ProductCard.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/product/Rating/Rating.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/components/product/Price/Price.module.scss\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/node_modules/next/dist/client/app-dir/link.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src4062338159/src/GardenRoute.store/node_modules/next/dist/client/image-component.js\");\n","// 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\",\"block\":\"Select_block__oYll3\",\"block__ocean\":\"Select_block__ocean__1IBlk\",\"activeBlock\":\"Select_activeBlock__4Lobl\",\"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\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"nav\":\"FilterControl_nav__EMXR2\",\"button\":\"FilterControl_button__UktRX\",\"active\":\"FilterControl_active__Rj541\",\"icon\":\"FilterControl_icon___n_St\",\"tag\":\"FilterControl_tag__Beuli\",\"clear\":\"FilterControl_clear__cxYMo\",\"back\":\"FilterControl_back__GTefT\",\"select\":\"FilterControl_select__RyYLN\",\"facetMenu\":\"FilterControl_facetMenu__IFzOI\",\"facetItem\":\"FilterControl_facetItem__T_XMu\",\"filterItem\":\"FilterControl_filterItem__D5pqC\"};","/**\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","\nexport function IconInputError(props){\n return(\n \n \n \n )\n}","/* eslint-disable react-hooks/exhaustive-deps */\nimport PropTypes from 'prop-types';\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\nimport removeSpaces from 'lib/utils/removeSpaces';\nimport Style from './Input.module.scss';\nimport { IconInputError } from '@/icons/IconInputError';\nimport { IconClose } from '@/icons/IconClose';\n\n\n\nconst Input = React.forwardRef(({\n type = \"text\",\n className,\n autocomplete,\n label,\n name,\n required = false,\n disabled,\n error = false,\n value,\n canClear,\n placeholder,\n min,\n max,\n accept,\n maxLength,\n minLength,\n readOnly,\n helpText,\n controlClass,\n unitText,\n onFocus = () => null,\n onBlur = () => null,\n onChange = () => null,\n onKeyUp = () => null,\n onInput = () => null,\n autoFocus = false,\n preText = null\n\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\n\n useEffect(() => {\n if( autoFocus ){ inputRef.current.focus() }\n \n }, [])\n\n\n useEffect(() => {\n if( value || value === 0 || value === \"\" ){\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( hasCurrentFocus && !hasValue ){\n setHasFocus(true)\n\n }else if( !hasCurrentFocus && hasValue ){\n setHasFocus(true)\n\n }else if( !hasCurrentFocus && !hasValue ){\n setHasFocus(false)\n }\n\n onBlur()\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 }\n\n\n return(\n
    \n
    \n {preText && (\n
    \n {preText}\n
    \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(label)}\n autoComplete={autocomplete}\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 />\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(label)}\n >\n {label}\n \n\n\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\", \"date\" ]),\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\n\n\nexport default Input;","// extracted by mini-css-extract-plugin\nmodule.exports = {\"control\":\"Input_control__hNWIt\",\"file\":\"Input_file__iQEKD\",\"active\":\"Input_active__WYu4O\",\"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\",\"preText\":\"Input_preText__0qOpk\",\"preTextGroup\":\"Input_preTextGroup__3Xxtj\"};"],"names":["IconClose","props","svg","viewBox","xmlSpace","aria-label","path","d","Select","React","ref","color","error","label","required","disabled","value","children","helpText","className","name","readOnly","valuesMap","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","ul","tabIndex","role","small","displayName","propTypes","PropTypes","isRequired","placeholder","SelectItem","index","isSelected","onClick","li","data-value","aria-selected","PerPage","values","router","useRouter","pathName","usePathname","query","createSearchParamsObject","searchParams","obj","key","entries","undefined","hasOwnProperty","Array","isArray","push","useSearchParams","map","handelChanges","newQuery","makeQueryString","queryString","forEach","v","substring","length","hitsPerPage","limit","removeSpaces","string","replace","IconInputError","type","autocomplete","canClear","min","max","accept","maxLength","minLength","controlClass","unitText","autoFocus","preText","inputType","setType","hasFocus","setHasFocus","focus","checkForValue","hasValue","hasCurrentFocus","document","activeElement","input","node","id","autoComplete","button","clearInput","togglePassword","newType","span","htmlFor","p"],"sourceRoot":""}