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ack://_N_E/./components/applications/pip/components/Options/OptionsSets.jsx"],"sourcesContent":["/* eslint-disable react-hooks/exhaustive-deps */\nimport PropTypes from \"prop-types\";\nimport React, { useContext, useEffect } from \"react\";\nimport { ProductOptionContext } from \"components/applications/pip/contexts/ProductOptionContext\";\nimport useSetNextOption from \"custom_hooks/useSetNextOption\";\nimport ErrorBoundary from \"services/ErrorBoundary\";\nimport { buildSetGlobalOptions } from \"components/applications/pip/helpers/PIP.helpers\";\nimport CustomizeType from \"./CustomizeType\";\nimport clsx from \"clsx\";\nimport Style from './Options.module.scss'\n\n\nconst OptionsSets = React.forwardRef(({\n customTypes = [], \n customGlobalTypes = [],\n setData = {}, \n setOptions, \n hideSwatch, \n stockedOptions, \n specialOrderOptions,\n product_id,\n errors,\n}, ref ) => {\n\n const [ state, dispatch ] = useContext(ProductOptionContext);\n const next = useSetNextOption({ product_id })\n\n useEffect(() => {\n const obj = buildSetGlobalOptions(setOptions)\n\n if( Object.keys(obj).length ){\n dispatch({ \n type: \"setSets\", \n data: obj\n })\n } \n \n }, [ setOptions ])\n\n\n\n return(\n \n
\n \n \n
\n
\n )\n})\n\n\nOptionsSets.displayName = 'OptionsSets';\n\nOptionsSets.propTypes = {\n setOptions: PropTypes.array, \n setData: PropTypes.object \n}\n\n\nexport default OptionsSets;"],"names":["OptionsSets","React","ref","customTypes","customGlobalTypes","setData","setOptions","hideSwatch","stockedOptions","specialOrderOptions","product_id","errors","state","dispatch","useContext","ProductOptionContext","next","useSetNextOption","useEffect","obj","buildSetGlobalOptions","Object","keys","length","type","data","ErrorBoundary","div","className","clsx","Style","CustomizeType","optionData","showDisplayName","contextState","productSetLength","displayName","propTypes","PropTypes"],"sourceRoot":"","ignoreList":[]}