\n
\n
\n {products?.map((product, pi) => (\n \n {product.category !== products[pi - 1]?.category && (\n \n )}\n \n {products[pi + 1] && product.category !== products[pi + 1]?.category &&
}\n \n ))}\n
\n
\n );\n};\nexport default Categories;\n","\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/sass-loader/dist/cjs.js!./index.scss\";\n export default content && content.locals ? content.locals : undefined;\n","/* istanbul ignore file */\n\nexport const formatCurrency = (amount: number) => {\n const region = 'en-US';\n const currency = 'USD';\n\n return Intl.NumberFormat(region, {\n currency,\n style: 'currency',\n }).format(amount);\n};\n","import { Heading, Text, Image } from '@legalshield/adonis-ux-framework';\nimport './index.scss';\nimport { useCalculator } from 'contexts/CalculatorContext/useCalculator';\nimport { useMemo } from 'react';\nimport priceTag from '../../images/price-tag.svg';\nimport { formatCurrency } from 'utils';\n\nconst Calculator = () => {\n const { selectedProducts } = useCalculator();\n const total = useMemo(() => selectedProducts.reduce((acc, product) => acc + product.price, 0), [selectedProducts]);\n\n return (\n