text: "use strict";
  /*
   * ATTENTION: An "eval-source-map" devtool has been used.
   * This devtool is neither made for production nor for readable output files.
   * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
   * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
   * or disable the default devtool with "devtool: false".
   * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
   */
  self["webpackHotUpdate_N_E"]("pages/index",{
  
  /***/ "./components/InputContainer/ButtonCalculator/index.jsx":
  /*!**************************************************************!*\
    !*** ./components/InputContainer/ButtonCalculator/index.jsx ***!
    \**************************************************************/
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ ButtonCalculator; }\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"./node_modules/react/jsx-dev-runtime.js\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _contexts_SalaryContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../contexts/SalaryContext */ \"./contexts/SalaryContext.js\");\n/* harmony import */ var _utils_calcularINSS__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../utils/calcularINSS */ \"./utils/calcularINSS.js\");\n\n\n\n\nvar _s = $RefreshSig$();\nfunction ButtonCalculator(props) {\n    _s();\n    var ref = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_contexts_SalaryContext__WEBPACK_IMPORTED_MODULE_2__[\"default\"]), setPorcentagemIRPF = ref.setPorcentagemIRPF, porcentagemINSS = ref.porcentagemINSS, setPorcentagemINSS = ref.setPorcentagemINSS;\n    var salarioBrutoInput = props.salarioBrutoInput, totalDescontoInput = props.totalDescontoInput, dependentesInput = props.dependentesInput;\n    var handleCalcular = function() {\n        var salarioBruto = (0,_utils_calcularINSS__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(salarioBrutoInput);\n        console.log(salarioBruto);\n        setPorcentagemINSS(salarioBruto[1]);\n    // const salarioBase = salarioBrutoInput - descontoINSS;\n    // const IRRF = salarioBase * descontoIRRF - parcelaDedutivaIRRF;\n    // console.log('descontoIRRF', descontoIRRF);\n    // console.log('descontoINSS', descontoINSS);\n    // console.log('salarioBase', salarioBase);\n    // console.log('IRRF', IRRF);\n    // console.log('parcelaDedutivaIRRF', parcelaDedutivaIRRF);\n    //   const liquidSalary = base - irf - descounts;\n    //   return liquidSalary.toFixed(2);\n    // export const calculateTax = (grossSalary, descounts, dependents) => {\n    //   // IRRF = (salário bruto – desconto INSS) x alíquota IRRF – parcela dedutível\n    //   if (dependents >= 1) {\n    //     const base = grossSalary - dependents * 189.59;\n    //     const irf = base * verifyIRRF(grossSalary).aliquota - verifyIRRF(grossSalary).parcel;\n    //     const inss = verifyINSS(grossSalary).value;\n    //     const liquidSalary = grossSalary - irf - inss - descounts;\n    //     return liquidSalary.toFixed(2);\n    //   }\n    //   console.log(verifyINSS(grossSalary).value);\n    //   const base = grossSalary - verifyINSS(grossSalary).value;\n    //   const irf = base * verifyIRRF(grossSalary).aliquota - verifyIRRF(grossSalary).parcel;\n    //   const liquidSalary = base - irf - descounts;\n    //   return liquidSalary.toFixed(2);\n    // };\n    };\n    return(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"div\", {\n        className: \"button__main\",\n        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"button\", {\n            onClick: handleCalcular,\n            children: \"CALCULAR\"\n        }, void 0, false, {\n            fileName: \"/home/ederu/Workspace/frontend-challenge/components/InputContainer/ButtonCalculator/index.jsx\",\n            lineNumber: 48,\n            columnNumber: 7\n        }, this)\n    }, void 0, false, {\n        fileName: \"/home/ederu/Workspace/frontend-challenge/components/InputContainer/ButtonCalculator/index.jsx\",\n        lineNumber: 47,\n        columnNumber: 5\n    }, this));\n};\n_s(ButtonCalculator, \"5tAX9UyYB95bANJ8d5EwGGKNTlE=\");\n_c = ButtonCalculator;\nvar _c;\n$RefreshReg$(_c, \"ButtonCalculator\");\n\n\n;\n    // Wrapped in an IIFE to avoid polluting the global scope\n    ;\n    (function () {\n        var _a, _b;\n        // Legacy CSS implementations will `eval` browser code in a Node.js context\n        // to extract CSS. For backwards compatibility, we need to check we're in a\n        // browser context before continuing.\n        if (typeof self !== 'undefined' &&\n            // AMP / No-JS mode does not inject these helpers:\n            '$RefreshHelpers$' in self) {\n            // @ts-ignore __webpack_module__ is global\n            var currentExports = module.exports;\n            // @ts-ignore __webpack_module__ is global\n            var prevExports = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevExports) !== null && _b !== void 0 ? _b : null;\n            // This cannot happen in MainTemplate because the exports mismatch between\n            // templating and execution.\n            self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id);\n            // A module can be accepted automatically based on its exports, e.g. when\n            // it is a Refresh Boundary.\n            if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) {\n                // Save the previous exports on update so we can compare the boundary\n                // signatures.\n                module.hot.dispose(function (data) {\n                    data.prevExports = currentExports;\n                });\n                // Unconditionally accept an update to this module, we'll check if it's\n                // still a Refresh Boundary later.\n                // @ts-ignore importMeta is replaced in the loader\n                module.hot.accept();\n                // This field is set when the previous version of this module was a\n                // Refresh Boundary, letting us know we need to check for invalidation or\n                // enqueue an update.\n                if (prevExports !== null) {\n                    // A boundary can become ineligible if its exports are incompatible\n                    // with the previous exports.\n                    //\n                    // For example, if you add/remove/change exports, we'll want to\n                    // re-execute the importing modules, and force those components to\n                    // re-render. Similarly, if you convert a class component to a\n                    // function, we want to invalidate the boundary.\n                    if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevExports, currentExports)) {\n                        module.hot.invalidate();\n                    }\n                    else {\n                        self.$RefreshHelpers$.scheduleUpdate();\n                    }\n                }\n            }\n            else {\n                // Since we just executed the code for the module, it's possible that the\n                // new exports made it ineligible for being a boundary.\n                // We only care about the case when we were _previously_ a boundary,\n                // because we already accepted this update (accidental side effect).\n                var isNoLongerABoundary = prevExports !== null;\n                if (isNoLongerABoundary) {\n                    module.hot.invalidate();\n                }\n            }\n        }\n    })();\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9jb21wb25lbnRzL0lucHV0Q29udGFpbmVyL0J1dHRvbkNhbGN1bGF0b3IvaW5kZXguanN4LmpzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQWtDO0FBQ3lCO0FBQ0w7O0FBQ3ZDLFFBQVEsQ0FBQ0csZ0JBQWdCLENBQUNDLEtBQUssRUFBRSxDQUFDOztJQUMvQyxHQUFLLENBQStESixHQUF5QixHQUF6QkEsaURBQVUsQ0FBQ0MsK0RBQWEsR0FBcEZJLGtCQUFrQixHQUEwQ0wsR0FBeUIsQ0FBckZLLGtCQUFrQixFQUFFQyxlQUFlLEdBQXlCTixHQUF5QixDQUFqRU0sZUFBZSxFQUFFQyxrQkFBa0IsR0FBS1AsR0FBeUIsQ0FBaERPLGtCQUFrQjtJQUMvRCxHQUFLLENBQUdDLGlCQUFpQixHQUEyQ0osS0FBSyxDQUFqRUksaUJBQWlCLEVBQUVDLGtCQUFrQixHQUF1QkwsS0FBSyxDQUE5Q0ssa0JBQWtCLEVBQU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bnN0IGJhc2UgPSBncm9zc1NhbGFyeSAtIHZlcmlmeUlOU1MoZ3Jvc3NTYWxhcnkpLnZhbHVlO1xuICAgIC8vICAgY29uc3QgaXJmID0gYmFzZSAqIHZlcmlmeUlSUkYoZ3Jvc3NTYWxhcnkpLmFsaXF1b3RhIC0gdmVyaWZ5SVJSRihncm9zc1NhbGFyeSkucGFyY2VsO1xuICAgIC8vICAgY29uc3QgbGlxdWlkU2FsYXJ5ID0gYmFzZSAtIGlyZiAtIGRlc2NvdW50cztcbiAgICAvLyAgIHJldHVybiBsaXF1aWRTYWxhcnkudG9GaXhlZCgyKTtcbiAgICAvLyB9O1xuICB9O1xuXG4gIFxuXG4gIHJldHVybiAoXG4gICAgPGRpdiBjbGFzc05hbWU9XCJidXR0b25fX21haW5cIj5cbiAgICAgIDxidXR0b24gb25DbGljaz17aGFuZGxlQ2FsY3VsYXJ9PkNBTENVTEFSPC9idXR0b24+XG4gICAgPC9kaXY+XG4gICk7XG59XG5cbiJdLCJuYW1lcyI6WyJ1c2VDb250ZXh0IiwiU2FsYXJ5Q29udGV4dCIsImNhbGN1bGFySU5TUyIsIkJ1dHRvbkNhbGN1bGF0b3IiLCJwcm9wcyIsInNldFBvcmNlbnRhZ2VtSVJQRiIsInBvcmNlbnRhZ2VtSU5TUyIsInNldFBvcmNlbnRhZ2VtSU5TUyIsInNhbGFyaW9CcnV0b0lucHV0IiwidG90YWxEZXNjb250b0lucHV0IiwiZGVwZW5kZW50ZXNJbnB1dCIsImhhbmRsZUNhbGN1bGFyIiwic2FsYXJpb0JydXRvIiwiY29uc29sZSIsImxvZyIsImRpdiIsImNsYXNzTmFtZSIsImJ1dHRvbiIsIm9uQ2xpY2siXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./components/InputContainer/ButtonCalculator/index.jsx\n");
  
  /***/ })
  
  });