{"version":3,"sources":["components/age-check/AgeCheckComponent.jsx","state/ducks/ageCheck/actions.js","state/ducks/ageCheck/types.js","state/ducks/search/types.js","state/ducks/search/actions.js","components/common/filters/BaseFilter.js","state/ducks/filters/types.js","common/config.js","state/ducks/filters/api.js","state/ducks/filters/actions.js","components/common/filters/ItemNameFilter.js","components/common/filters/ItemCategoryFilter.js","components/common/filters/StateFilter.js","components/common/filters/LicenseNumberFilter.js","components/common/filters/QuantityTypeFilter.js","components/common/filters/PackageIdFilter.js","components/home/HomePage.jsx","state/ducks/items/types.js","state/ducks/items/actions.js","state/ducks/items/api.js","components/item-grid-result/ItemGridResult.jsx","components/item-list-result/ItemListResult.jsx","components/results/ResultsPage.jsx","components/app/App.js","serviceWorker.js","state/ducks/ageCheck/reducers.js","state/ducks/items/reducers.js","state/ducks/filters/reducers.js","state/initialState.js","state/ducks/search/reducers.js","state/store.js","index.js","images/logo.png","images/logo-sm.png"],"names":["dispatch","useDispatch","useSelector","state","ageCheck","ageCheckAccepted","React","createElement","className","src","Logo","alt","onClick","type","data","href","setQueryLengthWarning","showQueryLengthWarning","setSearchPage","page","setSearchQuery","query","setSearchFilter","name","values","setSearchSort","sort","setSearchStatus","filters","BaseFilter","_ref","value","onChange","request","requestQueryParams","labelSelector","x","valueSelector","defaultOptions","setDefaultOptions","useState","loadOptions","inputValue","callback","_objectSpread","then","_ref2","results","map","r","label","useEffect","AsyncSelect","isMulti","noOptionsMessage","_ref3","SET_STATES","config","apiBaseUrl","process","imageServerUrl","documentServerUrl","requestGetItemNames","search","Axios","get","concat","params","itemNames","setItemNames","requestGetItemCategories","itemCategories","setItemCategories","requestGetStates","states","types","setStates","requestGetLicenseNumbers","_ref4","licenseNumbers","setLicenseNumbers","requestGetQuantityTypes","_ref5","quantityTypes","setQuantityTypes","requestGetPackageIds","_ref6","packageIds","setPackageIds","ItemNameFilter","defaultProps","StateFilter","abbreviation","LicenseNumberFilter","QuantityTypeFilter","PackageIdFilter","history","useHistory","searchFilters","advancedSearch","setAdvancedSearch","onFilterChange","queryLength","trim","length","Object","keys","reduce","acc","curr","option","push","pathname","URLSearchParams","toString","id","AgeCheckComponent","Form","Group","FaSearch","fontSize","Control","placeholder","onKeyPress","charCode","target","setQuery","FaChevronUp","FaChevronDown","Container","Row","Col","md","controlId","Label","s","ItemCategoryFilter","Button","SET_ITEM","SET_ITEMS","setItems","items","requestGetItem","item","setItem","imageUrl","facilityName","license","category","cbdContent","cbdContentUnitOfMeasure","cbdContentDose","cbdContentDoseUnitOfMeasure","cbdPotency","thcContent","thcContentUnitOfMeasure","thcContentDose","thcContentDoseUnitOfMeasure","thcPotency","retailAvailability","classNames","class","props","qs","location","itemDetails","itemPackageDetails","display","setDisplay","showItemModal","setShowItemModal","showItemPackageModal","setShowItemPackageModal","stateLoadedFromUrl","setStateLoadedFromUrl","showRetailLicense","setShowRetailLicense","ageCheckPassed","handleClose","handlePackageClose","onItemClick","WarningText","searchResults","qsStates","abbreviations","split","undefined","forEach","filter","qsValue","v","qsSort","toLowerCase","qsQuery","prev","cur","requestGetItems","post","skip","updateHistory","window","substring","replace","start","total","meta","fluid","Link","to","runSearch","defaultValue","inline","as","style","width","onSortChange","FaTh","selected","FaList","lg","xs","sm","xl","key","ItemGridResult","assign","ItemListResult","toLocaleString","Pagination","totalPages","Math","ceil","paginationChange","Modal","show","onHide","size","Header","closeButton","Title","Body","Carousel","indicators","images","img","idx","Item","url","i","description","ingredients","join","packages","itemPackage","electronicProductCode","setItemPackage","requestGetItemPackage","onItemPackageClick","Footer","variant","authenticityCertificateImage","rel","download","App","Switch","Route","exact","path","render","HomePage","ResultsPage","Boolean","hostname","match","initialState","sessionStorage","getItem","ageCheckReducer","arguments","action","itemsReducer","filtersReducer","status","searchReducer","store","rootReducer","combineReducers","createStore","composeWithDevTools","applyMiddleware","reduxThunk","configureStore","axios","defaults","paramsSerializer","p","stringify","arrayFormat","ReactDOM","Provider","Router","document","getElementById","navigator","serviceWorker","ready","registration","unregister","catch","error","console","message","module","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AmBC,WACrBA,UAAUC,cAAcC,MACrBpQ,KAAMqQ,IACLA,EAAaC,eAEdC,MAAOC,IACNC,QAAQD,MAAMA,EAAME,Y,mBQzI5BC,EAAOC,QAAU,IAA0B,kC,mBCA3CD,EAAOC,QAAU,IAA0B,qC","file":"static/js/main.4a890183.chunk.js","sourcesContent":["import React from 'react';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { acceptAgeCheck } from '../../state/ducks/ageCheck/actions';\nimport './AgeCheckComponent.scss';\nimport Logo from '../../images/logo.png';\n\nexport default () => {\n const dispatch = useDispatch();\n\n const ageCheckPassed = useSelector((state) => {\n return state.ageCheck.ageCheckAccepted;\n });\n\n function accept() {\n dispatch(acceptAgeCheck());\n }\n\n if (!ageCheckPassed) {\n return (\n
\n
\n
\n
\n \"Metrc\"\n
\n
\n

Confirm Your Age

\n

\n You must be 21 years of age or older to view this site.\n

\n accept()}\n >\n I AM 21 OR OLDER\n \n \n Exit\n \n
\n
\n
\n );\n }\n return ''; \n};\n","import * as types from './types';\n\nconst acceptAgeCheck = () => ({\n type: types.ACCEPT_AGE_CHECK,\n data: true,\n});\n\nexport {\n acceptAgeCheck\n};","const ACCEPT_AGE_CHECK = 'app/ageCheck/ACCEPT_AGE_CHECK';\n\nexport {\n ACCEPT_AGE_CHECK\n};","const SET_QUERY_LENGTH_WARNING = 'app/search/SET_QUERY_LENGTH_WARNING';\nconst SET_SEARCH_PAGE = 'app/search/SET_SEARCH_PAGE';\nconst SET_SEARCH_QUERY = 'app/search/SET_SEARCH_QUERY';\nconst SET_SEARCH_FILTER = 'app/search/SET_SEARCH_FILTER';\nconst SET_SEARCH_SORT = 'app/search/SET_SEARCH_SORT';\nconst SET_SEARCH_STATUS = 'app/search/SET_SEARCH_STATUS';\n\nexport {\n SET_QUERY_LENGTH_WARNING,\n SET_SEARCH_SORT,\n SET_SEARCH_PAGE,\n SET_SEARCH_QUERY,\n SET_SEARCH_FILTER,\n SET_SEARCH_STATUS,\n};\n","import * as types from './types';\n\nconst setQueryLengthWarning = (showQueryLengthWarning) => ({\n type: types.SET_QUERY_LENGTH_WARNING,\n data: { showQueryLengthWarning },\n})\n\nconst setSearchPage = (page) => ({\n type: types.SET_SEARCH_PAGE,\n data: { page },\n});\n\nconst setSearchQuery = (query) => ({\n type: types.SET_SEARCH_QUERY,\n data: { query },\n});\n\nconst setSearchFilter = (name, values) => ({\n type: types.SET_SEARCH_FILTER,\n data: { name, values },\n});\n\nconst setSearchSort = (sort) => ({\n type: types.SET_SEARCH_SORT,\n data: { sort },\n});\n\nconst setSearchStatus = (filters) => ({\n type: types.SET_SEARCH_STATUS,\n data: { filters },\n});\n\nexport {\n setQueryLengthWarning,\n setSearchFilter,\n setSearchStatus,\n setSearchQuery,\n setSearchPage,\n setSearchSort,\n};\n","/* eslint-disable react/require-default-props */\nimport React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\n\nimport AsyncSelect from 'react-select/async';\nimport { useDispatch } from 'react-redux';\n\nconst BaseFilter = ({\n value = [],\n onChange = () => {},\n request,\n requestQueryParams,\n labelSelector = (x) => x,\n valueSelector = (x) => x,\n}) => {\n const dispatch = useDispatch();\n\n const [defaultOptions, setDefaultOptions] = useState([]);\n\n const loadOptions = (inputValue, callback) =>\n dispatch(request({ query: inputValue, ...requestQueryParams })).then(\n ({ data: results }) => {\n callback(\n results.map((r) => ({\n value: valueSelector(r),\n label: labelSelector(r),\n }))\n );\n }\n );\n\n useEffect(() => {\n loadOptions('', (results) => {\n setDefaultOptions(results);\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return (\n \n inputValue ? 'No matches' : 'Start typing to see matches'\n }\n />\n );\n};\n\nBaseFilter.propTypes = {\n onChange: PropTypes.func,\n request: PropTypes.func.isRequired,\n requestQueryParams: PropTypes.object,\n labelSelector: PropTypes.func,\n valueSelector: PropTypes.func,\n value: PropTypes.oneOfType([\n PropTypes.arrayOf(\n PropTypes.shape({ label: PropTypes.string, value: PropTypes.string })\n ),\n PropTypes.shape({ label: PropTypes.string, value: PropTypes.string }),\n ]),\n};\n\nexport default BaseFilter;\n","const GET_ITEM_NAMES = 'app/items/GET_ITEM_NAMES';\nconst SET_ITEM_NAMES = 'app/items/SET_ITEM_NAMES';\nconst GET_ITEM_CATEGORIES = 'app/items/GET_ITEM_CATEGORIES';\nconst SET_ITEM_CATEGORIES = 'app/items/SET_ITEM_CATEGORIES';\nconst GET_STATES = 'app/items/GET_STATES';\nconst SET_STATES = 'app/items/SET_STATES';\nconst GET_LICENSE_NUMBERS = 'app/items/GET_LICENSE_NUMBERS';\nconst SET_LICENSE_NUMBERS = 'app/items/SET_LICENSE_NUMBERS';\nconst GET_QUANTITY_TYPES = 'app/items/GET_QUANTITY_TYPES';\nconst SET_QUANTITY_TYPES = 'app/items/SET_QUANTITY_TYPES';\nconst GET_PACKAGE_IDS = 'app/items/GET_PACKAGE_IDS';\nconst SET_PACKAGE_IDS = 'app/items/SET_PACKAGE_IDS';\n\nexport {\n GET_ITEM_NAMES,\n SET_ITEM_NAMES,\n GET_ITEM_CATEGORIES,\n SET_ITEM_CATEGORIES,\n GET_STATES,\n SET_STATES,\n GET_LICENSE_NUMBERS,\n SET_LICENSE_NUMBERS,\n GET_QUANTITY_TYPES,\n SET_QUANTITY_TYPES,\n GET_PACKAGE_IDS,\n SET_PACKAGE_IDS,\n};\n","const config = {\n apiBaseUrl: process.env.REACT_APP_API_BASE_URL,\n imageServerUrl: process.env.REACT_APP_IMAGE_SERVER_URL,\n documentServerUrl: process.env.REACT_APP_DOCUMENT_SERVER_URL,\n};\n\nexport default config;\n","import Axios from 'axios';\nimport {\n getItemNames,\n setItemNames,\n getItemCategories,\n setItemCategories,\n getStates,\n setStates,\n getLicenseNumbers,\n setLicenseNumbers,\n getQuantityTypes,\n setQuantityTypes,\n getPackageIds,\n setPackageIds,\n} from './actions';\nimport config from '../../../common/config';\n\nexport const requestGetItemNames = (search) => (dispatch) => {\n dispatch(getItemNames(search));\n return Axios.get(`${config.apiBaseUrl}/item-names`, {\n params: search,\n }).then(({ data: itemNames }) => dispatch(setItemNames(itemNames)));\n};\n\nexport const requestGetItemCategories = (search) => (dispatch) => {\n dispatch(getItemCategories(search));\n return Axios.get(`${config.apiBaseUrl}/item-categories`, {\n params: search,\n }).then(({ data: itemCategories }) =>\n dispatch(setItemCategories(itemCategories))\n );\n};\n\nexport const requestGetStates = (search) => (dispatch) => {\n dispatch(getStates(search));\n return Axios.get(`${config.apiBaseUrl}/states`, {\n params: search,\n }).then(({ data: states }) => dispatch(setStates(states)));\n};\n\nexport const requestGetLicenseNumbers = (search) => (dispatch) => {\n dispatch(getLicenseNumbers(search));\n return Axios.get(`${config.apiBaseUrl}/license-numbers`, {\n params: search,\n }).then(({ data: licenseNumbers }) =>\n dispatch(setLicenseNumbers(licenseNumbers))\n );\n};\n\nexport const requestGetQuantityTypes = (search) => (dispatch) => {\n dispatch(getQuantityTypes(search));\n return Axios.get(`${config.apiBaseUrl}/quantity-types`, {\n params: search,\n }).then(({ data: quantityTypes }) =>\n dispatch(setQuantityTypes(quantityTypes))\n );\n};\n\nexport const requestGetPackageIds = (search) => (dispatch) => {\n dispatch(getPackageIds(search));\n return Axios.get(`${config.apiBaseUrl}/package-ids`, {\n params: search,\n }).then(({ data: packageIds }) =>\n dispatch(setPackageIds(packageIds))\n );\n};","import * as types from './types';\n\nconst getItemNames = (searchParams) => ({\n type: types.GET_ITEM_NAMES,\n data: searchParams,\n});\n\nconst setItemNames = (itemNames) => ({\n type: types.SET_ITEM_NAMES,\n data: itemNames,\n});\n\nconst getItemCategories = (searchParams) => ({\n type: types.GET_ITEM_CATEGORIES,\n data: searchParams,\n});\n\nconst setItemCategories = (itemCategories) => ({\n type: types.SET_ITEM_CATEGORIES,\n data: itemCategories,\n});\n\nconst getStates = (searchParams) => ({\n type: types.GET_STATES,\n data: searchParams,\n});\n\nconst setStates = (states) => ({\n type: types.SET_STATES,\n data: states,\n});\n\nconst getLicenseNumbers = (searchParams) => ({\n type: types.GET_LICENSE_NUMBERS,\n data: searchParams,\n});\n\nconst setLicenseNumbers = (licenseNumbers) => ({\n type: types.SET_LICENSE_NUMBERS,\n data: licenseNumbers,\n});\n\nconst getQuantityTypes = (searchParams) => ({\n type: types.GET_QUANTITY_TYPES,\n data: searchParams,\n});\n\nconst setQuantityTypes = (quantityTypes) => ({\n type: types.SET_QUANTITY_TYPES,\n data: quantityTypes,\n});\n\nconst getPackageIds = (searchParams) => ({\n type: types.GET_PACKAGE_IDS,\n data: searchParams,\n});\n\nconst setPackageIds = (packageIds) => ({\n type: types.SET_PACKAGE_IDS,\n data: packageIds,\n});\n\nexport {\n getItemNames,\n setItemNames,\n getItemCategories,\n setItemCategories,\n getStates,\n setStates,\n getLicenseNumbers,\n setLicenseNumbers,\n getQuantityTypes,\n setQuantityTypes,\n getPackageIds,\n setPackageIds,\n};\n","import BaseFilter from './BaseFilter';\nimport { requestGetItemNames as request } from '../../../state/ducks/filters/api';\n\nconst ItemNameFilter = ({ value, requestQueryParams, onChange }) => {\n return BaseFilter({ value, onChange, request, requestQueryParams });\n};\n\nItemNameFilter.defaultProps = BaseFilter.defaultProps;\n// ItemNameFilter.propTypes = {\n// value: BaseFilter.propTypes.value,\n// requestQueryParams: BaseFilter.propTypes.requestQueryParams,\n// onChange: BaseFilter.propTypes.onChange,\n// };\n\nexport default ItemNameFilter;\n","import BaseFilter from './BaseFilter';\nimport { requestGetItemCategories as request } from '../../../state/ducks/filters/api';\n\nconst ItemNameFilter = ({ value, requestQueryParams, onChange }) => {\n return BaseFilter({ value, onChange, request, requestQueryParams });\n};\n\nItemNameFilter.defaultProps = BaseFilter.defaultProps;\n// ItemNameFilter.propTypes = {\n// value: BaseFilter.propTypes.value,\n// requestQueryParams: BaseFilter.propTypes.requestQueryParams,\n// onChange: BaseFilter.propTypes.onChange,\n// };\n\nexport default ItemNameFilter;\n","import BaseFilter from './BaseFilter';\nimport { requestGetStates as request } from '../../../state/ducks/filters/api';\n\nconst StateFilter = ({ value, onChange }) => {\n return BaseFilter({\n value,\n onChange,\n request,\n labelSelector: (state) => state.name,\n valueSelector: (state) => state.abbreviation,\n });\n};\n\nStateFilter.defaultProps = BaseFilter.defaultProps;\n// StateFilter.propTypes = {\n// value: BaseFilter.propTypes.value,\n// onChange: BaseFilter.propTypes.onChange,\n// };\n\nexport default StateFilter;\n","import BaseFilter from './BaseFilter';\nimport { requestGetLicenseNumbers as request } from '../../../state/ducks/filters/api';\n\nconst LicenseNumberFilter = ({ value, requestQueryParams, onChange }) => {\n return BaseFilter({ value, onChange, request, requestQueryParams });\n};\n\nLicenseNumberFilter.defaultProps = BaseFilter.defaultProps;\n// LicenseNumberFilter.propTypes = {\n// value: BaseFilter.propTypes.value,\n// requestQueryParams: BaseFilter.propTypes.requestQueryParams,\n// onChange: BaseFilter.propTypes.onChange,\n// };\n\nexport default LicenseNumberFilter;\n","import BaseFilter from './BaseFilter';\nimport { requestGetQuantityTypes as request } from '../../../state/ducks/filters/api';\n\nconst QuantityTypeFilter = ({ value, requestQueryParams, onChange }) => {\n return BaseFilter({ value, onChange, request, requestQueryParams });\n};\n\nQuantityTypeFilter.defaultProps = BaseFilter.defaultProps;\n// QuantityTypeFilter.propTypes = {\n// value: BaseFilter.propTypes.value,\n// requestQueryParams: BaseFilter.propTypes.requestQueryParams,\n// onChange: BaseFilter.propTypes.onChange,\n// };\n\nexport default QuantityTypeFilter;\n","import BaseFilter from './BaseFilter';\nimport { requestGetPackageIds as request } from '../../../state/ducks/filters/api';\n\nconst PackageIdFilter = ({ value, requestQueryParams, onChange }) => {\n return BaseFilter({ value, onChange, request, requestQueryParams });\n};\n\nPackageIdFilter.defaultProps = BaseFilter.defaultProps;\n// PackageIdFilter.propTypes = {\n// value: BaseFilter.propTypes.value,\n// requestQueryParams: BaseFilter.propTypes.requestQueryParams,\n// onChange: BaseFilter.propTypes.onChange,\n// };\n\nexport default PackageIdFilter;\n","import React, { useState } from 'react';\nimport { Col, Form, Row, Button, Container } from 'react-bootstrap';\nimport { FaSearch, FaChevronDown, FaChevronUp } from 'react-icons/fa';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useHistory } from 'react-router-dom';\nimport AgeCheckComponent from '../age-check/AgeCheckComponent';\nimport Logo from '../../images/logo.png';\nimport {\n setQueryLengthWarning,\n setSearchFilter,\n setSearchQuery,\n} from '../../state/ducks/search/actions';\nimport ItemNameFilter from '../common/filters/ItemNameFilter';\nimport ItemCategoryFilter from '../common/filters/ItemCategoryFilter';\nimport StateFilter from '../common/filters/StateFilter';\nimport LicenseNumberFilter from '../common/filters/LicenseNumberFilter';\nimport QuantityTypeFilter from '../common/filters/QuantityTypeFilter';\nimport PackageIdFilter from '../common/filters/PackageIdFilter';\nimport './HomePage.scss';\n\nexport default () => {\n const dispatch = useDispatch();\n const history = useHistory();\n\n const query = useSelector((state) => state.search.query);\n const searchFilters = useSelector((state) => state.search.filters);\n const showQueryLengthWarning = useSelector((state) => state.search.showQueryLengthWarning);\n\n const [advancedSearch, setAdvancedSearch] = useState(false);\n\n const onFilterChange = (name, values) =>\n dispatch(setSearchFilter(name, values));\n\n const setQuery = (value) => dispatch(setSearchQuery(value));\n\n const search = () => {\n let queryLength = query.trim().length;\n dispatch(setQueryLengthWarning(queryLength < 3)); \n if (queryLength < 3) {\n return;\n };\n const filters = Object.keys(searchFilters).reduce((acc, curr) => {\n const values = (searchFilters[curr] || []).map((option) => option.value);\n if (values.length) acc[curr] = values;\n return acc;\n }, {});\n\n history.push({\n pathname: '/results',\n search: new URLSearchParams({ query, ...filters, sort:'relevancy' }).toString(),\n });\n };\n\n return (\n
\n \n
\n
\n
\n \"Metrc\"\n
\n
\n \n \n \n charCode === 13 && search()\n }\n value={query}\n onChange={({ target: { value } }) => setQuery(value)}\n />\n \n {showQueryLengthWarning &&\n
Search term must be at least 3 characters.
\n }\n setAdvancedSearch(!advancedSearch)}\n >\n Filter Search\n {advancedSearch ? : }\n \n {advancedSearch && (\n
\n \n \n \n \n State\n onFilterChange('states', values)}\n />\n \n \n \n \n \n \n Item Name\n s.value\n ),\n }}\n onChange={(values) =>\n onFilterChange('itemNames', values)\n }\n />\n \n \n \n \n Item Category\n s.value\n ),\n }}\n onChange={(values) =>\n onFilterChange('itemCategories', values)\n }\n />\n \n \n \n \n License Number\n s.value\n ),\n }}\n onChange={(values) =>\n onFilterChange('licenseNumbers', values)\n }\n />\n \n \n \n \n Quantity Type\n s.value\n ),\n }}\n onChange={(values) =>\n onFilterChange('quantityTypes', values)\n }\n />\n \n \n \n \n Package ID Number\n s.value\n ),\n }}\n onChange={(values) =>\n onFilterChange('packageIds', values)\n }\n />\n \n \n \n \n search()}\n >\n Search\n \n
\n )}\n
\n
\n
\n );\n};\n","const GET_ITEM = 'app/items/GET_ITEM';\nconst SET_ITEM = 'app/items/SET_ITEM';\nconst GET_ITEMS = 'app/items/GET_ITEMS';\nconst SET_ITEMS = 'app/items/SET_ITEMS';\nconst SET_ITEM_PACKAGE = '';\n\nexport { GET_ITEM, SET_ITEM, GET_ITEMS, SET_ITEMS, SET_ITEM_PACKAGE };\n","import * as types from './types';\n\nconst setItem = (item) => ({\n type: types.SET_ITEM,\n data: item,\n});\n\nconst setItems = (items) => ({\n type: types.SET_ITEMS,\n data: items,\n});\n\nconst setItemPackage = (itemPackage) => ({\n type: types.SET_ITEM_PACKAGE,\n data: itemPackage,\n});\n\nexport { setItem, setItems, setItemPackage };\n","import Axios from 'axios';\nimport { setItem, setItems, setItemPackage } from './actions';\nimport { setSearchStatus } from '../search/actions';\nimport config from '../../../common/config';\n\nexport const requestGetItem = (id) => (dispatch) => {\n dispatch(setSearchStatus('running'));\n return Axios.get(`${config.apiBaseUrl}/items/${id}`).then(\n ({ data: item }) => {\n dispatch(setItem(item));\n }\n );\n};\n\nexport const requestGetItems = (query, page, sort, filters) => (dispatch) => {\n dispatch(setSearchStatus('running'));\n if (query.trim().length < 3) {\n dispatch(setItems([]));\n dispatch(setSearchStatus('done'));\n return;\n }\n return Axios.post(`${config.apiBaseUrl}/items/search`, {\n query,\n sort,\n skip: (page - 1) * 24,\n ...filters,\n }).then(({ data: items }) => {\n dispatch(setItems(items));\n dispatch(setSearchStatus('done'));\n });\n};\n\nexport const requestGetItemPackage = (itemPackage) => (dispatch) => {\n return dispatch(setItemPackage(itemPackage));\n};","/* eslint-disable jsx-a11y/click-events-have-key-events */\n/* eslint-disable jsx-a11y/no-static-element-interactions */\nimport React from 'react';\nimport classNames from 'classnames';\nimport config from '../../common/config';\n\nexport default ({\n id,\n name,\n imageUrl,\n facilityName,\n license,\n state,\n category,\n cbdContent,\n cbdContentUnitOfMeasure,\n cbdContentDose,\n cbdContentDoseUnitOfMeasure,\n cbdPotency,\n thcContent,\n thcContentUnitOfMeasure,\n thcContentDose,\n thcContentDoseUnitOfMeasure,\n thcPotency,\n retailAvailability,\n className,\n onClick = () => {},\n}) => (\n
\n {name}\n
\n
\n
{name}
\n
{state}
\n
\n
{category}
\n
\n
\n
\n {cbdPotency && `CBD: ${cbdPotency}%`}\n
\n
\n {thcPotency && `THC: ${thcPotency}%`}\n
\n
\n
\n
\n {cbdContent && `CBD: ${cbdContent}`}{cbdContentUnitOfMeasure && `${cbdContentUnitOfMeasure}`}{cbdContent &&
}\n
\n
\n {thcContent && `THC: ${thcContent}`}{thcContentUnitOfMeasure && `${thcContentUnitOfMeasure}`}{thcContent &&
}\n
\n
\n
\n
\n {cbdContentDose && `CBD Dose: ${cbdContentDose}`}{cbdContentDoseUnitOfMeasure && `${cbdContentDoseUnitOfMeasure}`}\n
\n
\n {thcContentDose && `THC Dose: ${thcContentDose}`}{thcContentDoseUnitOfMeasure && `${thcContentDoseUnitOfMeasure}`}\n
\n
\n
\n
{facilityName}
\n
{license}
\n {retailAvailability &&
{retailAvailability.length} additional license(s)
}\n
\n
\n);\n","/* eslint-disable jsx-a11y/click-events-have-key-events */\n/* eslint-disable jsx-a11y/no-static-element-interactions */\nimport React from 'react';\nimport classNames from 'classnames';\nimport config from '../../common/config';\n\nexport default ({\n id,\n name,\n imageUrl,\n license,\n facilityName,\n state,\n category,\n cbdContent,\n cbdContentUnitOfMeasure,\n cbdContentDose,\n cbdContentDoseUnitOfMeasure,\n cbdPotency,\n thcContent,\n thcContentUnitOfMeasure,\n thcContentDose,\n thcContentDoseUnitOfMeasure,\n thcPotency,\n retailAvailability,\n className,\n onClick = () => {},\n}) => (\n
\n
\n
\n
\n
\n
\n {name}\n
\n
\n
\n
\n {name}\n
{category}
\n
\n
\n
\n
\n
\n
\n
\n
Facility
\n {facilityName}\n
\n
\n
License
\n {license}\n {retailAvailability &&
(+{retailAvailability.length})
}\n
\n
\n
State
\n {state}\n
\n
\n {(cbdContent || cbdContentDose || cbdPotency || thcContent || thcContentDose || thcPotency) &&
Potency
}\n
\n
\n {cbdPotency && `CBD: ${cbdPotency}%`}\n
\n
\n {thcPotency && `THC: ${thcPotency}%`}\n
\n
\n
\n
\n {cbdContent && `CBD: ${cbdContent}`}{cbdContentUnitOfMeasure && `${cbdContentUnitOfMeasure}`}{cbdContent &&
}\n
\n
\n {thcContent && `THC: ${thcContent}`}{thcContentUnitOfMeasure && `${thcContentUnitOfMeasure}`}{thcContent &&
}\n
\n
\n
\n
\n {cbdContentDose && `CBD Dose: ${cbdContentDose}`}{cbdContentDoseUnitOfMeasure && `${cbdContentDoseUnitOfMeasure}`}{cbdContentDose &&
}\n
\n
\n {thcContentDose && `THC Dose: ${thcContentDose}`}{thcContentDoseUnitOfMeasure && `${thcContentDoseUnitOfMeasure}`}{thcContentDose &&
}\n
\n
\n
\n
\n
\n
\n
\n);\n","import React, { useState, useEffect } from 'react';\nimport {\n Col,\n Form,\n Row,\n Button,\n Container,\n Modal,\n Carousel,\n} from 'react-bootstrap';\nimport { FaSearch, FaTh, FaList } from 'react-icons/fa';\nimport { useDispatch, useSelector } from 'react-redux';\nimport classNames from 'classnames';\nimport Pagination from '@vlsergey/react-bootstrap-pagination';\nimport AgeCheckComponent from '../age-check/AgeCheckComponent';\nimport Logo from '../../images/logo-sm.png';\nimport {\n setQueryLengthWarning,\n setSearchFilter,\n setSearchQuery,\n setSearchPage,\n setSearchSort,\n} from '../../state/ducks/search/actions';\nimport { requestGetItem, requestGetItems, requestGetItemPackage } from '../../state/ducks/items/api';\nimport ItemNameFilter from '../common/filters/ItemNameFilter';\nimport ItemCategoryFilter from '../common/filters/ItemCategoryFilter';\nimport StateFilter from '../common/filters/StateFilter';\nimport LicenseNumberFilter from '../common/filters/LicenseNumberFilter';\nimport QuantityTypeFilter from '../common/filters/QuantityTypeFilter';\nimport PackageIdFilter from '../common/filters/PackageIdFilter';\nimport './ResultsPage.scss';\nimport ItemGridResult from '../item-grid-result/ItemGridResult';\nimport ItemListResult from '../item-list-result/ItemListResult';\nimport config from '../../common/config';\nimport { useHistory, Link } from 'react-router-dom';\nimport Axios from 'axios';\n\nexport default (props) => {\n const qs = new URLSearchParams(props.location.search);\n\n const dispatch = useDispatch();\n const history = useHistory();\n const query = useSelector((state) => state.search.query);\n const page = useSelector((state) => state.search.page);\n const sort = useSelector((state) => state.search.sort);\n const searchFilters = useSelector((state) => state.search.filters);\n const items = useSelector((state) => state.items);\n const itemDetails = useSelector((state) => state.items.itemDetails);\n const itemPackageDetails = useSelector((state) => state.items.itemPackageDetails);\n const showQueryLengthWarning = useSelector((state) => state.search.showQueryLengthWarning);\n\n const [display, setDisplay] = useState('grid');\n\n const [showItemModal, setShowItemModal] = useState(false);\n const [showItemPackageModal, setShowItemPackageModal] = useState(false);\n const [stateLoadedFromUrl, setStateLoadedFromUrl] = useState(false);\n const [showRetailLicense, setShowRetailLicense] = useState(false);\n\n const ageCheckPassed = useSelector((state) => {\n return state.ageCheck.ageCheckAccepted;\n });\n\n const handleClose = () => { setShowRetailLicense(false); setShowItemModal(false); }\n const handlePackageClose = () => { setShowItemPackageModal(false); }\n const onItemClick = (item) => {\n dispatch(requestGetItem(item.id));\n setShowItemModal(true);\n };\n const onItemPackageClick = (itemPackage) => {\n dispatch(requestGetItemPackage(itemPackage));\n setShowItemPackageModal(true);\n };\n\n const runSearch = (value) => {\n dispatch(setQueryLengthWarning(value.trim().length < 3));\n dispatch(setSearchPage(1));\n dispatch(setSearchQuery(value));\n };\n\n const updateHistory = () => {\n const filters = Object.keys(searchFilters).reduce((acc, curr) => {\n const values = (searchFilters[curr] || []).map((option) => option.value);\n if (values.length) {\n acc[curr] = values;\n }\n return acc;\n }, {});\n\n if (window.location.search.substring(1) === new URLSearchParams({ query, ...filters, sort }).toString()) return\n\n history.replace({\n pathname: '/results',\n search: new URLSearchParams({ query, ...filters, sort }).toString(),\n });\n };\n\n const onFilterChange = (name, values) => {\n dispatch(setSearchFilter(name, values));\n dispatch(setSearchPage(1));\n };\n\n const onSortChange = (sort) => {\n dispatch(setSearchSort(sort.toLowerCase()));\n dispatch(setSearchPage(1));\n };\n\n const WarningText = () => {\n if (showQueryLengthWarning) {\n return Search term must be at least 3 characters.;\n }\n if (items.searchResults.results && items.searchResults.results.length === 0 ) {\n return Your query didn't match any items in our catalog.;\n }\n return null;\n }\n\n if (!stateLoadedFromUrl) {\n const qsStates = qs.get('states');\n const abbreviations = qsStates ? qsStates.split(',') : undefined;\n\n if (abbreviations && abbreviations.length) {\n //state values in URL are abbreviations. call server to get full state names as well\n Axios.get(`${config.apiBaseUrl}/states`, {\n params: { values: abbreviations },\n }).then(({ data: states }) => {\n onFilterChange(\n 'states',\n states.map(({ abbreviation: value, name: label }) => ({\n label,\n value,\n }))\n );\n });\n }\n\n //these values are all strings, so label is the same as value\n ['itemCategories', 'licenseNumbers', 'quantityTypes', 'itemNames','packageIds'].forEach(\n (filter) => {\n const qsValue = qs.get(filter);\n const values = qsValue\n ? qsValue.split(',').map((v) => ({ label: v, value: v }))\n : undefined;\n onFilterChange(filter, values);\n }\n );\n\n const qsSort = qs.get('sort');\n if (qsSort) {\n dispatch(setSearchSort(qsSort.toLowerCase()));\n }\n\n const qsQuery = qs.get('query');\n if (qsQuery) {\n dispatch(setSearchQuery(qsQuery));\n }\n\n setStateLoadedFromUrl(true);\n }\n\n useEffect(() => {\n const filters = Object.keys(searchFilters || []).reduce((prev, cur) => {\n prev[cur] = (searchFilters[cur] || []).map((filter) => filter.value);\n return prev;\n }, {});\n\n dispatch(requestGetItems(query, page, sort, filters));\n updateHistory();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [query, page, sort, searchFilters]);\n\n const paginationChange = (page) => {\n dispatch(setSearchPage(page + 1));\n };\n\n let start, results, total;\n\n if (items && items.searchResults && items.searchResults.meta) {\n start = items.searchResults.meta.start + 1;\n results = items.searchResults.meta.results;\n total = items.searchResults.meta.total;\n }\n\n return (\n
\n \n {ageCheckPassed && \n \n \n \n \"Metrc\"\n \n \n \n \n \n \n charCode === 13 && runSearch(value)\n }\n defaultValue={query}\n />\n \n \n \n \n \n
\n Sort by\n onSortChange(value)}\n >\n \n \n \n \n setDisplay('grid')}\n className={classNames(\n 'display-option',\n 'mr-3',\n 'd-none',\n 'd-xl-block',\n {\n selected: display === 'grid',\n }\n )}\n style={{ fontSize: 30 }}\n />\n setDisplay('list')}\n className={classNames(\n 'display-option',\n 'mr-3',\n 'd-none',\n 'd-xl-block',\n {\n selected: display === 'list',\n }\n )}\n style={{ fontSize: 30 }}\n />\n \n \n
\n \n \n
\n \n \n \n State\n onFilterChange('states', values)}\n />\n \n \n \n \n \n \n Item Name\n s.value\n ),\n }}\n onChange={(values) => onFilterChange('itemNames', values)}\n />\n \n \n \n \n \n \n Item Category\n s.value\n ),\n }}\n onChange={(values) =>\n onFilterChange('itemCategories', values)\n }\n />\n \n \n \n \n \n \n License Number\n s.value\n ),\n }}\n onChange={(values) =>\n onFilterChange('licenseNumbers', values)\n }\n />\n \n \n \n \n \n \n Quantity Type\n s.value\n ),\n }}\n onChange={(values) =>\n onFilterChange('quantityTypes', values)\n }\n />\n \n \n \n \n \n \n Package ID Number\n s.value\n ),\n }}\n onChange={(values) =>\n onFilterChange('packageIds', values)\n }\n />\n \n \n \n
\n \n \n \n {items &&\n items.searchResults.results &&\n items.searchResults.results.map((item) => (\n \n {display === 'grid' ? (\n onItemClick(item)}\n {...item}\n />\n ) : (\n onItemClick(item)}\n {...item}\n />\n )}\n \n ))}\n \n \n {total ? (\n \n {start.toLocaleString()}-{(start + results - 1).toLocaleString()} of {total.toLocaleString()} results\n \n ) : (\n \n \n \n )}\n \n {!!total && (\n \n paginationChange(page)\n }\n />\n )}\n \n \n \n
\n
\n }\n {showItemModal && itemDetails && (\n \n \n {itemDetails.name}\n \n \n \n \n \n \n {itemDetails.images.map((img, idx) => (\n \n \n \n ))}\n \n \n \n
\n
\n
{itemDetails.category}
\n
{itemDetails.state}
\n
\n
\n
\n {itemDetails.cbdPotency && `CBD: ${itemDetails.cbdPotency}%`}\n
\n
\n {itemDetails.thcPotency && `THC: ${itemDetails.thcPotency}%`}\n
\n
\n
\n
\n {itemDetails.cbdContent && `CBD: ${itemDetails.cbdContent}`}\n {itemDetails.cbdContentUnitOfMeasure && `${itemDetails.cbdContentUnitOfMeasure}`}{itemDetails.cbdContent &&
}\n
\n
\n {itemDetails.thcContent && `THC: ${itemDetails.thcContent}`}\n {itemDetails.thcContentUnitOfMeasure && `${itemDetails.thcContentUnitOfMeasure}`}{itemDetails.thcContent &&
}\n
\n
\n
\n
\n {itemDetails.cbdContentDose && `CBD Dose: ${itemDetails.cbdContentDose}`}\n {itemDetails.cbdContentDoseUnitOfMeasure && `${itemDetails.cbdContentDoseUnitOfMeasure}`}{itemDetails.cbdContentDose &&
}\n
\n
\n {itemDetails.thcContentDose && `THC Dose: ${itemDetails.thcContentDose}`}\n {itemDetails.thcContentDoseUnitOfMeasure && `${itemDetails.thcContentDoseUnitOfMeasure}`}{itemDetails.thcContentDose &&
}\n
\n
\n
{itemDetails.facilityName}
\n
\n
{itemDetails.license}
  \n \n
\n {showRetailLicense &&\n
\n
\n {(itemDetails.retailAvailability.map((i) => (\n
\n
• 
\n
{i.split('|')[0]}
\n
{i.split('|')[1]}
\n
\n )))}\n
\n
\n }\n
\n

Description

\n {itemDetails.description ||\n 'No description available for this item'}\n
\n {!!itemDetails.ingredients.length && (\n
\n

Ingredients

\n {itemDetails.ingredients.join(', ')}\n
\n )}\n {!!itemDetails.packages.length && (\n
\n

Packages

\n {(itemDetails.packages.map((itemPackage) => (\n \n )))}\n
\n )}\n
\n \n
\n
\n
\n \n \n \n
\n )}\n {showItemPackageModal && itemPackageDetails && (\n \n \n {itemDetails.name}\n \n \n \n \n \n
\n
\n
EPC:
\n
{itemPackageDetails.electronicProductCode}
\n
\n {itemPackageDetails.authenticityCertificateImage && (\n \n \n \n )}\n
\n \n
\n
\n
\n \n \n \n
\n )}\n
\n );\n};\n","import React from 'react';\nimport { Route, Switch } from 'react-router-dom';\nimport HomePage from '../home/HomePage';\nimport ResultsPage from '../results/ResultsPage';\n\nconst App = () => (\n \n } />\n }\n />\n \n);\n\nexport default App;\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.0/8 are considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then((registration) => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch((error) => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: { 'Service-Worker': 'script' },\n })\n .then((response) => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then((registration) => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready\n .then((registration) => {\n registration.unregister();\n })\n .catch((error) => {\n console.error(error.message);\n });\n }\n}\n","import * as types from './types';\n\nconst ageCheckPassedLocalStorage = () => {\n let ageCheckPassedLocalStorage = sessionStorage.getItem(\"ageCheckAccepted\");\n return ageCheckPassedLocalStorage;\n}\n\nconst initialState = {\n ageCheckAccepted: ageCheckPassedLocalStorage()\n};\n\nconst ageCheckReducer = (state = initialState, action) => {\n switch (action.type) {\n case types.ACCEPT_AGE_CHECK: {\n sessionStorage.setItem(\"ageCheckAccepted\", true);\n return { ...state, ageCheckAccepted: true };\n }\n default:\n return state;\n }\n};\n\nexport default ageCheckReducer;","import * as types from './types';\n\nconst initialState = {\n searchResults: [],\n};\n\nconst itemsReducer = (state = initialState, action) => {\n switch (action.type) {\n case types.SET_ITEM: {\n const { data: itemDetails } = action;\n return { ...state, itemDetails };\n }\n case types.SET_ITEMS: {\n const {\n data: { meta, items: results },\n } = action;\n return { ...state, searchResults: { meta, results } };\n }\n case types.SET_ITEM_PACKAGE: {\n const { data: itemPackageDetails } = action;\n return { ...state, itemPackageDetails };\n }\n default:\n return state;\n }\n};\n\nexport default itemsReducer;\n","import * as types from './types';\n\nconst initialState = {\n itemNames: [],\n itemCategories: [],\n states: [],\n licenseNumbers: [],\n};\n\nconst filtersReducer = (state = initialState, action) => {\n switch (action.type) {\n case types.SET_ITEM_NAMES: {\n const { data: itemNames } = action;\n return { ...state, itemNames };\n }\n case types.SET_ITEM_CATEGORIES: {\n const { data: itemCategories } = action;\n return { ...state, itemCategories };\n }\n case types.SET_STATES: {\n const { data: states } = action;\n return { ...state, states };\n }\n case types.SET_LICENSE_NUMBERS: {\n const { data: licenseNumbers } = action;\n return { ...state, licenseNumbers };\n }\n case types.SET_QUANTITY_TYPES: {\n const { data: quantityTypes } = action;\n return { ...state, quantityTypes };\n }\n default:\n return state;\n }\n};\n\nexport default filtersReducer;\n","const initialState = {};\n\nexport default initialState;\n","import * as types from './types';\n\nconst initialState = {\n query: '',\n page: 1,\n sort: 'name',\n filters: {\n itemNames: [],\n itemCategories: [],\n states: [],\n },\n showQueryLengthWarning : false,\n status: 'done',\n};\n\nconst searchReducer = (state = initialState, action) => {\n switch (action.type) {\n case types.SET_QUERY_LENGTH_WARNING: {\n return { ...state, showQueryLengthWarning: action.data.showQueryLengthWarning };\n }\n case types.SET_SEARCH_STATUS: {\n return { ...state, status: action.status };\n }\n case types.SET_SEARCH_PAGE: {\n const {\n data: { page },\n } = action;\n return {\n ...state,\n page,\n };\n }\n case types.SET_SEARCH_SORT: {\n const {\n data: { sort },\n } = action;\n return {\n ...state,\n sort,\n };\n }\n case types.SET_SEARCH_QUERY: {\n const {\n data: { query },\n } = action;\n return {\n ...state,\n query,\n };\n }\n case types.SET_SEARCH_FILTER: {\n const {\n data: { name, values },\n } = action;\n return {\n ...state,\n filters: {\n ...state.filters,\n [name]: values,\n },\n };\n }\n default:\n return state;\n }\n};\n\nexport default searchReducer;\n","import { applyMiddleware, combineReducers, createStore } from 'redux';\nimport { composeWithDevTools } from 'redux-devtools-extension';\nimport reduxThunk from 'redux-thunk';\nimport ageCheckReducer from './ducks/ageCheck/reducers';\nimport itemsReducer from './ducks/items/reducers';\nimport filtersReducer from './ducks/filters/reducers';\nimport initialState from './initialState';\nimport searchReducer from './ducks/search/reducers';\n\nfunction configureStore() {\n const rootReducer = combineReducers({\n items: itemsReducer,\n filters: filtersReducer,\n search: searchReducer,\n ageCheck: ageCheckReducer\n });\n\n return createStore(\n rootReducer,\n initialState,\n composeWithDevTools(applyMiddleware(reduxThunk))\n );\n}\n\nconst store = configureStore(initialState);\n\nexport default store;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.scss';\nimport { BrowserRouter as Router } from 'react-router-dom';\nimport { Provider } from 'react-redux';\nimport App from './components/app/App';\nimport * as serviceWorker from './serviceWorker';\nimport store from './state/store';\nimport axios from 'axios';\nimport qs from 'qs';\n\naxios.defaults.paramsSerializer = (p) => {\n return qs.stringify(p, { arrayFormat: 'comma' });\n};\n\nReactDOM.render(\n \n \n \n \n ,\n document.getElementById('root')\n);\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();\n","module.exports = __webpack_public_path__ + \"static/media/logo.a0bd6f62.png\";","module.exports = __webpack_public_path__ + \"static/media/logo-sm.375d2d0d.png\";"],"sourceRoot":""}