@widergy/utilitygo-smart-bill-web 2.1.1 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/components/Advice/styles.module.scss +4 -4
  3. package/dist/components/Amount/index.js +1 -1
  4. package/dist/components/Amount/styles.module.scss +3 -3
  5. package/dist/components/BarChart/index.js +1 -1
  6. package/dist/components/BarChart/styles.module.scss +2 -2
  7. package/dist/components/BillCalculation/components/ConceptCard/styles.module.scss +4 -4
  8. package/dist/components/BillCalculation/components/Glossary/index.js +2 -2
  9. package/dist/components/BillCalculation/components/Glossary/styles.module.scss +1 -1
  10. package/dist/components/BillCalculation/index.js +2 -2
  11. package/dist/components/BillCalculation/styles.module.scss +3 -3
  12. package/dist/components/BillCalculation/utils.js +2 -2
  13. package/dist/components/BillSummary/components/BilledConcepts/components/Concept/styles.module.scss +3 -3
  14. package/dist/components/BillSummary/components/BilledConcepts/constants.js +2 -2
  15. package/dist/components/BillSummary/components/BilledConcepts/index.js +4 -4
  16. package/dist/components/BillSummary/components/BilledConcepts/styles.module.scss +3 -3
  17. package/dist/components/BillSummary/components/BilledConcepts/utils.js +3 -3
  18. package/dist/components/BillSummary/index.js +6 -6
  19. package/dist/components/BillSummary/styles.module.scss +4 -4
  20. package/dist/components/ConsumptionComparison/components/ComparisonTable/components/DataLine/styles.module.scss +1 -1
  21. package/dist/components/ConsumptionComparison/components/ComparisonTable/components/Season/styles.module.scss +1 -1
  22. package/dist/components/ConsumptionComparison/components/ComparisonTable/constants.js +5 -5
  23. package/dist/components/ConsumptionComparison/components/ComparisonTable/styles.module.scss +3 -3
  24. package/dist/components/ConsumptionComparison/components/ConsumptionAdvice/styles.module.scss +3 -3
  25. package/dist/components/ConsumptionComparison/components/PercentageComparison/styles.module.scss +4 -4
  26. package/dist/components/ConsumptionComparison/index.js +3 -3
  27. package/dist/components/ConsumptionComparison/styles.module.scss +4 -4
  28. package/dist/components/ConsumptionEnergyDetails/components/ConsumptionEnergyComparison/index.js +3 -3
  29. package/dist/components/ConsumptionEnergyDetails/components/ConsumptionEnergyComparison/styles.module.scss +3 -3
  30. package/dist/components/ConsumptionEnergyDetails/components/ConsumptionInDaysLabel/styles.module.scss +1 -1
  31. package/dist/components/ConsumptionEnergyDetails/components/EnergyTotalConsumption/index.js +1 -1
  32. package/dist/components/ConsumptionEnergyDetails/components/PercentageComparison/styles.module.scss +3 -3
  33. package/dist/components/ConsumptionEnergyDetails/index.js +1 -1
  34. package/dist/components/ConsumptionEnergyDetails/styles.module.scss +3 -3
  35. package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/index.js +1 -1
  36. package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/styles.module.scss +3 -3
  37. package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderConsumption/styles.module.scss +2 -2
  38. package/dist/components/ConsumptionIncluded/components/TimelineRow/index.js +1 -1
  39. package/dist/components/ConsumptionIncluded/components/TimelineRow/styles.module.scss +2 -2
  40. package/dist/components/ConsumptionIncluded/index.js +1 -1
  41. package/dist/components/ConsumptionIncluded/styles.module.scss +1 -1
  42. package/dist/components/ConsumptionIncluded/utils.js +14 -14
  43. package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/components/ReadingRow/styles.module.scss +1 -1
  44. package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/styles.module.scss +2 -2
  45. package/dist/components/ConsumptionPeriod/components/HistoryGraph/index.js +2 -2
  46. package/dist/components/ConsumptionPeriod/components/HistoryGraph/styles.module.scss +2 -2
  47. package/dist/components/ConsumptionPeriod/components/Reading/styles.module.scss +3 -3
  48. package/dist/components/ConsumptionPeriod/index.js +2 -2
  49. package/dist/components/ConsumptionPeriod/styles.module.scss +1 -1
  50. package/dist/components/DebtState/styles.module.scss +1 -1
  51. package/dist/components/MainBillData/components/BillAlert/components/BillParticularConditions/styles.module.scss +1 -1
  52. package/dist/components/MainBillData/components/BillAlert/index.js +2 -2
  53. package/dist/components/MainBillData/components/BillAlert/styles.module.scss +3 -3
  54. package/dist/components/MainBillData/components/BillBody/components/ClientData/styles.module.scss +3 -3
  55. package/dist/components/MainBillData/components/BillBody/components/Consumption/styles.module.scss +2 -2
  56. package/dist/components/MainBillData/components/BillBody/components/ReadingDetails/styles.module.scss +3 -3
  57. package/dist/components/MainBillData/components/BillBody/index.js +1 -1
  58. package/dist/components/MainBillData/components/BillBody/styles.module.scss +1 -1
  59. package/dist/components/MainBillData/components/BillHeader/components/TypeAndNumber/styles.module.scss +2 -2
  60. package/dist/components/MainBillData/components/BillHeader/index.js +3 -3
  61. package/dist/components/MainBillData/components/BillHeader/styles.module.scss +3 -3
  62. package/dist/components/MainBillData/index.js +1 -1
  63. package/dist/components/MainBillData/styles.module.scss +3 -3
  64. package/dist/components/Period/index.js +2 -2
  65. package/dist/components/Period/styles.module.scss +4 -4
  66. package/dist/components/PowerProgresBar/index.js +1 -1
  67. package/dist/components/PowerProgresBar/styles.module.scss +3 -3
  68. package/dist/components/RateAndCategory/index.js +1 -1
  69. package/dist/components/RateAndCategory/styles.module.scss +2 -2
  70. package/dist/components/RatesDefinition/components/BillRate/components/RatePrices/styles.module.scss +1 -1
  71. package/dist/components/RatesDefinition/components/BillRate/styles.module.scss +3 -3
  72. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/Category/styles.module.scss +3 -3
  73. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/components/IndicatorLabel/styles.module.scss +1 -1
  74. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Legend/styles.module.scss +2 -2
  75. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Stages/styles.module.scss +2 -2
  76. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/index.js +2 -2
  77. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/styles.module.scss +3 -3
  78. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/utils.js +3 -3
  79. package/dist/components/RatesDefinition/components/CategoryByConsumption/index.js +2 -2
  80. package/dist/components/RatesDefinition/components/CategoryByConsumption/styles.module.scss +3 -3
  81. package/dist/components/RatesDefinition/components/PurchasedRate/styles.module.scss +4 -4
  82. package/dist/components/RatesDefinition/styles.module.scss +3 -3
  83. package/dist/components/SmartBillProvider/index.js +1 -1
  84. package/dist/components/StyledAmount/index.js +1 -1
  85. package/dist/components/WithContextApi/index.js +3 -3
  86. package/dist/index.js +1 -1
  87. package/dist/scss/variables/{_colors.scss → colors.module.scss} +1 -1
  88. package/dist/scss/variables/{_colorsExport.scss → colorsExport.module.scss} +2 -2
  89. package/dist/scss/variables/{_commonColors.scss → commonColors.module.scss} +1 -3
  90. package/dist/shared/constants/aliases.js +1 -1
  91. package/dist/shared/types/componentsTypes.js +1 -1
  92. package/dist/shared/types/smartBillTypes.js +3 -3
  93. package/dist/shared/utils/billCalculation.js +4 -4
  94. package/dist/shared/utils/consumptions.js +7 -7
  95. package/dist/shared/utils/context.js +1 -1
  96. package/dist/shared/utils/periods.js +1 -1
  97. package/package.json +5 -5
  98. package/dist/scss/variables/_fontFamilies.scss +0 -6
  99. package/dist/scss/variables/_utils.scss +0 -15
  100. /package/dist/scss/variables/{_fontSizes.scss → fontSizes.module.scss} +0 -0
  101. /package/dist/scss/variables/{_mediaQueries.scss → mediaQueries.module.scss} +0 -0
  102. /package/dist/scss/variables/{_sizes.scss → sizes.module.scss} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [2.2.1](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v2.2.0...v2.2.1) (2023-09-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * lock web utils and energy ui ([#31](https://github.com/widergy/UtilityGO-Smart-Bill-Web/issues/31)) ([33334bf](https://github.com/widergy/UtilityGO-Smart-Bill-Web/commit/33334bfcca45298e8b34075e2bfd347a545014af))
7
+
8
+ # [2.2.0](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v2.1.1...v2.2.0) (2023-09-07)
9
+
10
+
11
+ ### Features
12
+
13
+ * node upgrade ([#32](https://github.com/widergy/UtilityGO-Smart-Bill-Web/issues/32)) ([de9dc25](https://github.com/widergy/UtilityGO-Smart-Bill-Web/commit/de9dc25915c4a0299c85ceaf573a06319d63b809))
14
+
1
15
  ## [2.1.1](https://github.com/widergy/UtilityGO-Smart-Bill-Web/compare/v2.1.0...v2.1.1) (2023-06-27)
2
16
 
3
17
 
@@ -1,7 +1,7 @@
1
- @import '../../scss/variables/_colorsExport.scss';
2
- @import '../../scss/variables/_fontSizes.scss';
3
- @import '../../scss/variables/_mediaQueries';
4
- @import '../../scss/variables/_sizes.scss';
1
+ @import '../../scss/variables/colorsExport.module.scss';
2
+ @import '../../scss/variables/fontSizes.module.scss';
3
+ @import '../../scss/variables/mediaQueries.module.scss';
4
+ @import '../../scss/variables/sizes.module.scss';
5
5
 
6
6
  .container {
7
7
  background-color: $background-soft-gray;
@@ -41,7 +41,7 @@ var Amount = function Amount(_ref) {
41
41
  }];
42
42
  var getExpirationComponent = function getExpirationComponent(item) {
43
43
  var _item$expiration;
44
- return (item === null || item === void 0 ? void 0 : (_item$expiration = item.expiration) === null || _item$expiration === void 0 ? void 0 : _item$expiration.date) && /*#__PURE__*/_react.default.createElement("div", {
44
+ return (item === null || item === void 0 || (_item$expiration = item.expiration) === null || _item$expiration === void 0 ? void 0 : _item$expiration.date) && /*#__PURE__*/_react.default.createElement("div", {
45
45
  className: "".concat(_stylesModule.default.firstExpirationDateContainer, " ").concat(withBottomMargin && _stylesModule.default.withBottomMargin),
46
46
  key: item.text
47
47
  }, /*#__PURE__*/_react.default.createElement(Label, {
@@ -1,6 +1,6 @@
1
- @import '../../scss/variables/_colorsExport.scss';
2
- @import '../../scss/variables/_mediaQueries';
3
- @import '../../scss/variables/_sizes';
1
+ @import '../../scss/variables/colorsExport.module.scss';
2
+ @import '../../scss/variables/mediaQueries.module.scss';
3
+ @import '../../scss/variables/sizes.module.scss';
4
4
 
5
5
  .container {
6
6
  background-color: $white;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -1,5 +1,5 @@
1
- @import '../../scss/variables/_mediaQueries';
2
- @import '../../scss/variables/_colorsExport.scss';
1
+ @import '../../scss/variables/mediaQueries.module.scss';
2
+ @import '../../scss/variables/colorsExport.module.scss';
3
3
 
4
4
  .chart {
5
5
  height: 198px;
@@ -1,7 +1,7 @@
1
- @import '../../../../scss/variables/_fontSizes';
2
- @import '../../../../scss/variables/_colors';
3
- @import '../../../../scss/variables/_mediaQueries';
4
- @import '../../../../scss/variables/_sizes';
1
+ @import '../../../../scss/variables/fontSizes.module.scss';
2
+ @import '../../../../scss/variables/colors.module.scss';
3
+ @import '../../../../scss/variables/mediaQueries.module.scss';
4
+ @import '../../../../scss/variables/sizes.module.scss';
5
5
 
6
6
 
7
7
  .headerContainer {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -18,7 +18,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
18
18
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
19
19
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
20
20
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
21
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
21
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
22
22
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
23
  var Glossary = function Glossary(_ref) {
24
24
  var glossaryConcepts = _ref.glossaryConcepts,
@@ -1,4 +1,4 @@
1
- @import '../../../../scss/variables/_colors';
1
+ @import '../../../../scss/variables/colors.module.scss';
2
2
 
3
3
  .infoIconTooltip {
4
4
  margin-right: 8px;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -23,7 +23,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
23
23
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
24
24
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
25
25
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
26
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
26
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
27
27
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
28
28
  var BillCalculation = function BillCalculation(_ref) {
29
29
  var billData = _ref.billData,
@@ -1,6 +1,6 @@
1
- @import '../../scss/variables/_colors';
2
- @import '../../scss/variables/_sizes';
3
- @import '../../scss/variables/_mediaQueries';
1
+ @import '../../scss/variables/colors.module.scss';
2
+ @import '../../scss/variables/sizes.module.scss';
3
+ @import '../../scss/variables/mediaQueries.module.scss';
4
4
 
5
5
  .container {
6
6
  display: flex;
@@ -14,7 +14,7 @@ var periodToTitleMapper = function periodToTitleMapper(billData, texts, periodFo
14
14
  var currentPeriod = (0, _periods.getCurrentPeriod)(billData) || {};
15
15
  var settlements = currentPeriod.settlements;
16
16
  var periodicity = settlements === null || settlements === void 0 ? void 0 : settlements.periodicity;
17
- var currentSettlement = (settlements === null || settlements === void 0 ? void 0 : (_settlements$current = settlements.current) === null || _settlements$current === void 0 ? void 0 : _settlements$current.number) || '-';
17
+ var currentSettlement = (settlements === null || settlements === void 0 || (_settlements$current = settlements.current) === null || _settlements$current === void 0 ? void 0 : _settlements$current.number) || '-';
18
18
  var totalSettlements = (settlements === null || settlements === void 0 ? void 0 : settlements.total_settlements) || '-';
19
19
  var periodNumber = (currentPeriod === null || currentPeriod === void 0 ? void 0 : currentPeriod.number) || '-';
20
20
  var year = (currentPeriod === null || currentPeriod === void 0 ? void 0 : currentPeriod.year) || '-';
@@ -22,7 +22,7 @@ var periodToTitleMapper = function periodToTitleMapper(billData, texts, periodFo
22
22
  settlement = _texts$commons.settlement,
23
23
  period = _texts$commons.period,
24
24
  bimester = _texts$commons.bimester;
25
- var issuedDate = settlements === null || settlements === void 0 ? void 0 : (_settlements$current2 = settlements.current) === null || _settlements$current2 === void 0 ? void 0 : _settlements$current2.issued_on;
25
+ var issuedDate = settlements === null || settlements === void 0 || (_settlements$current2 = settlements.current) === null || _settlements$current2 === void 0 ? void 0 : _settlements$current2.issued_on;
26
26
  var issuedDateLabel = withBillCalcTitleDate ? " (".concat((0, _dayjs.default)(issuedDate, 'YYYY-MM-DD').format('MM/YYYY'), ")") : '';
27
27
  if (periodFormatter) return periodFormatter({
28
28
  startDate: settlements === null || settlements === void 0 ? void 0 : settlements.start_date,
@@ -1,6 +1,6 @@
1
- @import '../../../../../../scss/variables/_colorsExport.scss';
2
- @import '../../../../../../scss/variables/_mediaQueries';
3
- @import '../../../../../../scss/variables/_fontSizes';
1
+ @import '../../../../../../scss/variables/colorsExport.module.scss';
2
+ @import '../../../../../../scss/variables/mediaQueries.module.scss';
3
+ @import '../../../../../../scss/variables/fontSizes.module.scss';
4
4
 
5
5
  $progress-bar-desktop-height: 8px;
6
6
  $progress-bar-mobile-height: 12px;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.toggleOptions = exports.progressBar = exports.pieChart = exports.COLORS = void 0;
7
- var _colorsExport = require("../../../../scss/variables/_colorsExport.scss");
7
+ var _colorsExportModule = require("../../../../scss/variables/colorsExport.module.scss");
8
8
  var pieChart = 'pieChart';
9
9
  exports.pieChart = pieChart;
10
10
  var progressBar = 'progressBar';
@@ -21,5 +21,5 @@ var toggleOptions = function toggleOptions(assets) {
21
21
  }];
22
22
  };
23
23
  exports.toggleOptions = toggleOptions;
24
- var COLORS = [_colorsExport.primary, _colorsExport.darkGray, _colorsExport.pieChartGray, _colorsExport.pieChartLightGray];
24
+ var COLORS = [_colorsExportModule.primary, _colorsExportModule.darkGray, _colorsExportModule.pieChartGray, _colorsExportModule.pieChartLightGray];
25
25
  exports.COLORS = COLORS;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -21,7 +21,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
21
21
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
22
22
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
23
23
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
24
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
24
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
25
25
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
26
26
  var BilledConcepts = function BilledConcepts(_ref) {
27
27
  var _billData$detail;
@@ -41,10 +41,10 @@ var BilledConcepts = function BilledConcepts(_ref) {
41
41
  var handleChangeToggleOption = function handleChangeToggleOption(newOption) {
42
42
  return setToggleOption(newOption);
43
43
  };
44
- var totalAmount = billData === null || billData === void 0 ? void 0 : (_billData$detail = billData.detail) === null || _billData$detail === void 0 ? void 0 : _billData$detail.total_amount;
44
+ var totalAmount = billData === null || billData === void 0 || (_billData$detail = billData.detail) === null || _billData$detail === void 0 ? void 0 : _billData$detail.total_amount;
45
45
  var concepts = (0, _react.useMemo)(function () {
46
46
  var _billData$detail2;
47
- return (0, _utils.getOrderedAndColoredConcepts)(billData === null || billData === void 0 ? void 0 : (_billData$detail2 = billData.detail) === null || _billData$detail2 === void 0 ? void 0 : _billData$detail2.concepts, totalAmount, showZeroConcepts, (0, _utils.getColorsDefinition)(colors));
47
+ return (0, _utils.getOrderedAndColoredConcepts)(billData === null || billData === void 0 || (_billData$detail2 = billData.detail) === null || _billData$detail2 === void 0 ? void 0 : _billData$detail2.concepts, totalAmount, showZeroConcepts, (0, _utils.getColorsDefinition)(colors));
48
48
  }, []);
49
49
  var negativeAmmount = concepts.some(function (concept) {
50
50
  return concept.total < 0;
@@ -1,6 +1,6 @@
1
- @import '../../../../scss/variables/_colorsExport.scss';
2
- @import '../../../../scss/variables/_mediaQueries';
3
- @import '../../../../scss/variables/_sizes';
1
+ @import '../../../../scss/variables/colorsExport.module.scss';
2
+ @import '../../../../scss/variables/mediaQueries.module.scss';
3
+ @import '../../../../scss/variables/sizes.module.scss';
4
4
 
5
5
  $toggle-size: 30px;
6
6
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -9,8 +9,8 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _constants = require("./constants");
10
10
  var _Concept = _interopRequireDefault(require("./components/Concept"));
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
13
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
14
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
15
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
16
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -26,7 +26,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
26
26
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
27
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
28
28
  var BillSummary = function BillSummary(_ref) {
29
- var _billData$client, _billData$client$rate, _billData$client2, _billData$client2$rat, _currentPeriod$settle, _currentPeriod$settle2, _currentPeriod$settle3;
29
+ var _billData$client, _billData$client2, _currentPeriod$settle, _currentPeriod$settle2;
30
30
  var contextApiInfo = _ref.contextApiInfo,
31
31
  billData = _ref.billData;
32
32
  var config = contextApiInfo.config,
@@ -43,10 +43,10 @@ var BillSummary = function BillSummary(_ref) {
43
43
  var hiredPowerConsumption = (0, _consumptions.getTotalConsumption)(currentPeriod, _consumptions2.POWER_TYPES.PURCHASED);
44
44
  var registeredPowerConsumption = (0, _consumptions.getTotalConsumption)(currentPeriod, _consumptions2.POWER_TYPES.REGISTERED);
45
45
  var exceededPower = (0, _consumptions.getTotalConsumption)(currentPeriod, _consumptions2.POWER_TYPES.EXCEEDED);
46
- var rate = billData === null || billData === void 0 ? void 0 : (_billData$client = billData.client) === null || _billData$client === void 0 ? void 0 : (_billData$client$rate = _billData$client.rate) === null || _billData$client$rate === void 0 ? void 0 : _billData$client$rate.purchased;
47
- var category = billData === null || billData === void 0 ? void 0 : (_billData$client2 = billData.client) === null || _billData$client2 === void 0 ? void 0 : (_billData$client2$rat = _billData$client2.rate) === null || _billData$client2$rat === void 0 ? void 0 : _billData$client2$rat.category;
48
- var multipleSettlements = (currentPeriod === null || currentPeriod === void 0 ? void 0 : (_currentPeriod$settle = currentPeriod.settlements) === null || _currentPeriod$settle === void 0 ? void 0 : _currentPeriod$settle.total_settlements) > 1;
49
- var issuedDate = currentPeriod === null || currentPeriod === void 0 ? void 0 : (_currentPeriod$settle2 = currentPeriod.settlements) === null || _currentPeriod$settle2 === void 0 ? void 0 : (_currentPeriod$settle3 = _currentPeriod$settle2.current) === null || _currentPeriod$settle3 === void 0 ? void 0 : _currentPeriod$settle3.issued_on;
46
+ var rate = billData === null || billData === void 0 || (_billData$client = billData.client) === null || _billData$client === void 0 || (_billData$client = _billData$client.rate) === null || _billData$client === void 0 ? void 0 : _billData$client.purchased;
47
+ var category = billData === null || billData === void 0 || (_billData$client2 = billData.client) === null || _billData$client2 === void 0 || (_billData$client2 = _billData$client2.rate) === null || _billData$client2 === void 0 ? void 0 : _billData$client2.category;
48
+ var multipleSettlements = (currentPeriod === null || currentPeriod === void 0 || (_currentPeriod$settle = currentPeriod.settlements) === null || _currentPeriod$settle === void 0 ? void 0 : _currentPeriod$settle.total_settlements) > 1;
49
+ var issuedDate = currentPeriod === null || currentPeriod === void 0 || (_currentPeriod$settle2 = currentPeriod.settlements) === null || _currentPeriod$settle2 === void 0 || (_currentPeriod$settle2 = _currentPeriod$settle2.current) === null || _currentPeriod$settle2 === void 0 ? void 0 : _currentPeriod$settle2.issued_on;
50
50
  var _useScreenSize = (0, _hooks.useScreenSize)(),
51
51
  isDesktopSize = _useScreenSize.isDesktopSize;
52
52
  var withBanner = showBillSummaryBanner(billData);
@@ -1,7 +1,7 @@
1
- @import '../../scss/variables/_colors';
2
- @import '../../scss/variables/_sizes';
3
- @import '../../scss/variables/_mediaQueries';
4
- @import '../../scss/variables/_fontSizes';
1
+ @import '../../scss/variables/colors.module.scss';
2
+ @import '../../scss/variables/sizes.module.scss';
3
+ @import '../../scss/variables/mediaQueries.module.scss';
4
+ @import '../../scss/variables/fontSizes.module.scss';
5
5
 
6
6
  $containers-width: 50%;
7
7
 
@@ -1,4 +1,4 @@
1
- @import '../../../../../../scss/variables/_mediaQueries';
1
+ @import '../../../../../../scss/variables/mediaQueries.module.scss';
2
2
 
3
3
  .container {
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- @import '../../../../../../scss/variables/_mediaQueries';
1
+ @import '../../../../../../scss/variables/mediaQueries.module.scss';
2
2
 
3
3
  .container {
4
4
  align-items: center;
@@ -13,7 +13,7 @@ var _utils = require("../../../../utils");
13
13
  var _aliases = require("../../../../shared/constants/aliases");
14
14
  var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
16
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
17
17
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
18
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
19
19
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
@@ -95,12 +95,12 @@ var desktopGetHeaderFields = function desktopGetHeaderFields(contextApiInfo, wit
95
95
  exports.desktopGetHeaderFields = desktopGetHeaderFields;
96
96
  var formatInterval = function formatInterval(period) {
97
97
  var _period$settlements, _period$settlements2;
98
- var startDate = period === null || period === void 0 ? void 0 : (_period$settlements = period.settlements) === null || _period$settlements === void 0 ? void 0 : _period$settlements.start_date;
99
- var endDate = period === null || period === void 0 ? void 0 : (_period$settlements2 = period.settlements) === null || _period$settlements2 === void 0 ? void 0 : _period$settlements2.end_date;
98
+ var startDate = period === null || period === void 0 || (_period$settlements = period.settlements) === null || _period$settlements === void 0 ? void 0 : _period$settlements.start_date;
99
+ var endDate = period === null || period === void 0 || (_period$settlements2 = period.settlements) === null || _period$settlements2 === void 0 ? void 0 : _period$settlements2.end_date;
100
100
  return startDate && endDate && "".concat((0, _dayjs.default)(startDate).format('DD/MM'), " - ").concat((0, _dayjs.default)(endDate).format('DD/MM'));
101
101
  };
102
102
  var getField = function getField() {
103
- var _data$period, _data$period$settleme, _getDailyConsumption$, _ref;
103
+ var _data$period, _getDailyConsumption$, _ref;
104
104
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
105
105
  var contextApiInfo = arguments.length > 1 ? arguments[1] : undefined;
106
106
  var Label = contextApiInfo.Label;
@@ -129,7 +129,7 @@ var getField = function getField() {
129
129
  Component: data ? /*#__PURE__*/_react.default.createElement(_Magnitude.default, {
130
130
  numberAlias: magnitudeAlias,
131
131
  unitAlias: unitAlias,
132
- value: (_data$period = data.period) === null || _data$period === void 0 ? void 0 : (_data$period$settleme = _data$period.settlements) === null || _data$period$settleme === void 0 ? void 0 : _data$period$settleme.total_settlements_days,
132
+ value: (_data$period = data.period) === null || _data$period === void 0 || (_data$period = _data$period.settlements) === null || _data$period === void 0 ? void 0 : _data$period.total_settlements_days,
133
133
  unit: data.daysUnit,
134
134
  classes: {
135
135
  numberAndUnit: _stylesModule.default.numberAndUnit
@@ -1,6 +1,6 @@
1
- @import '../../../../scss/variables/_colorsExport.scss';
2
- @import '../../../../scss/variables/_mediaQueries';
3
- @import '../../../../scss/variables/_sizes';
1
+ @import '../../../../scss/variables/colorsExport.module.scss';
2
+ @import '../../../../scss/variables/mediaQueries.module.scss';
3
+ @import '../../../../scss/variables/sizes.module.scss';
4
4
 
5
5
  .expand {
6
6
  width: 100%;
@@ -1,6 +1,6 @@
1
- @import '../../../..//scss/variables/_colorsExport.scss';
2
- @import '../../../../scss/variables/_sizes.scss';
3
- @import '../../../../scss/variables/_mediaQueries.scss';
1
+ @import '../../../..//scss/variables/colorsExport.module.scss';
2
+ @import '../../../../scss/variables/sizes.module.scss';
3
+ @import '../../../../scss/variables/mediaQueries.module.scss';
4
4
 
5
5
  .container {
6
6
  align-items: center;
@@ -1,7 +1,7 @@
1
- @import '../../../../scss/variables/_colorsExport.scss';
2
- @import '../../../../scss/variables/_mediaQueries';
3
- @import '../../../../scss/variables/_sizes';
4
- @import '../../../../scss/variables/_fontSizes';
1
+ @import '../../../../scss/variables/colorsExport.module.scss';
2
+ @import '../../../../scss/variables/mediaQueries.module.scss';
3
+ @import '../../../../scss/variables/sizes.module.scss';
4
+ @import '../../../../scss/variables/fontSizes.module.scss';
5
5
 
6
6
  $icon-size: 25px;
7
7
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -27,7 +27,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
27
27
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28
28
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
29
29
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
30
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
30
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
31
31
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
32
32
  var ConsumptionComparison = function ConsumptionComparison(_ref) {
33
33
  var _currentPeriod$settle;
@@ -59,7 +59,7 @@ var ConsumptionComparison = function ConsumptionComparison(_ref) {
59
59
  }, []);
60
60
  var savingsPercentage = (0, _periods.getSavingsPercentage)(currentPeriod);
61
61
  var showTemp = billData.previous_period_avg_temperature && billData.current_period_avg_temperature;
62
- var multipleSettlements = (currentPeriod === null || currentPeriod === void 0 ? void 0 : (_currentPeriod$settle = currentPeriod.settlements) === null || _currentPeriod$settle === void 0 ? void 0 : _currentPeriod$settle.total_settlements) > 1;
62
+ var multipleSettlements = (currentPeriod === null || currentPeriod === void 0 || (_currentPeriod$settle = currentPeriod.settlements) === null || _currentPeriod$settle === void 0 ? void 0 : _currentPeriod$settle.total_settlements) > 1;
63
63
  var ComparisonTableRender = function ComparisonTableRender() {
64
64
  return /*#__PURE__*/_react.default.createElement(_ComparisonTable.default, {
65
65
  billData: billData,
@@ -1,7 +1,7 @@
1
- @import '../../scss/variables/_mediaQueries';
2
- @import '../../scss/variables/_colors';
3
- @import '../../scss/variables/_colorsExport.scss';
4
- @import '../../scss/variables/_sizes';
1
+ @import '../../scss/variables/mediaQueries.module.scss';
2
+ @import '../../scss/variables/colors.module.scss';
3
+ @import '../../scss/variables/colorsExport.module.scss';
4
+ @import '../../scss/variables/sizes.module.scss';
5
5
 
6
6
  .container {
7
7
  display: flex;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -44,7 +44,7 @@ var ConsumptionEnergyComparison = function ConsumptionEnergyComparison(_ref) {
44
44
  }, /*#__PURE__*/_react.default.createElement(_ConsumptionInDaysLabel.default, {
45
45
  consumption: dataValidation(currentConsumption.value),
46
46
  unit: dataValidation(currentConsumption.unit),
47
- totalDays: dataValidation(settlements === null || settlements === void 0 ? void 0 : (_settlements$current = settlements.current) === null || _settlements$current === void 0 ? void 0 : _settlements$current.days),
47
+ totalDays: dataValidation(settlements === null || settlements === void 0 || (_settlements$current = settlements.current) === null || _settlements$current === void 0 ? void 0 : _settlements$current.days),
48
48
  numberAlias: _aliases.CONSUMPTION_DAYS_NUMBER_ACTUAL,
49
49
  unitAlias: _aliases.CONSUMPTION_DAYS_UNIT_ACTUAL,
50
50
  daysAlias: _aliases.CONSUMPTION_DAYS_DAYS_ACTUAL,
@@ -62,7 +62,7 @@ var ConsumptionEnergyComparison = function ConsumptionEnergyComparison(_ref) {
62
62
  }, /*#__PURE__*/_react.default.createElement(_ConsumptionInDaysLabel.default, {
63
63
  consumption: dataValidation(remainingConsumption.value),
64
64
  unit: dataValidation(remainingConsumption.unit),
65
- totalDays: dataValidation(settlements === null || settlements === void 0 ? void 0 : (_settlements$remainin = settlements.remaining[0]) === null || _settlements$remainin === void 0 ? void 0 : _settlements$remainin.days),
65
+ totalDays: dataValidation(settlements === null || settlements === void 0 || (_settlements$remainin = settlements.remaining[0]) === null || _settlements$remainin === void 0 ? void 0 : _settlements$remainin.days),
66
66
  classes: {
67
67
  container: currentIsFirstSettlement ? _stylesModule.default.remainingConsumptionLabel : _stylesModule.default.firstSettlementRemainingConsumptionLabel
68
68
  },
@@ -1,6 +1,6 @@
1
- @import '../../../../scss/variables/_colorsExport.scss';
2
- @import '../../../../scss/variables/_mediaQueries';
3
- @import '../../../../scss/variables/_sizes';
1
+ @import '../../../../scss/variables/colorsExport.module.scss';
2
+ @import '../../../../scss/variables/mediaQueries.module.scss';
3
+ @import '../../../../scss/variables/sizes.module.scss';
4
4
 
5
5
  $border-radius: 5px;
6
6
 
@@ -1,4 +1,4 @@
1
- @import '../../../../scss/variables/_mediaQueries';
1
+ @import '../../../../scss/variables/mediaQueries.module.scss';
2
2
 
3
3
  .consumptionAndUnit {
4
4
  align-items: baseline;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -1,6 +1,6 @@
1
- @import '../../../../scss/variables/_colorsExport.scss';
2
- @import '../../../../scss/variables/_mediaQueries';
3
- @import '../../../../scss/variables/_sizes';
1
+ @import '../../../../scss/variables/colorsExport.module.scss';
2
+ @import '../../../../scss/variables/mediaQueries.module.scss';
3
+ @import '../../../../scss/variables/sizes.module.scss';
4
4
 
5
5
  $icon-size: 30px;
6
6
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -1,6 +1,6 @@
1
- @import '../../scss/variables/_colorsExport.scss';
2
- @import '../../scss/variables/_mediaQueries';
3
- @import '../../scss/variables/_sizes';
1
+ @import '../../scss/variables/colorsExport.module.scss';
2
+ @import '../../scss/variables/mediaQueries.module.scss';
3
+ @import '../../scss/variables/sizes.module.scss';
4
4
 
5
5
  $border-radius: 5px;
6
6
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -1,6 +1,6 @@
1
- @import '../../../../../../scss/variables/_colors';
2
- @import '../../../../../../scss/variables/_sizes';
3
- @import '../../../../../../scss/variables/_mediaQueries';
1
+ @import '../../../../../../scss/variables/colors.module.scss';
2
+ @import '../../../../../../scss/variables/sizes.module.scss';
3
+ @import '../../../../../../scss/variables/mediaQueries.module.scss';
4
4
 
5
5
  $container-margin-bottom-size: 24px;
6
6
 
@@ -1,5 +1,5 @@
1
- @import '../../../../../../scss/variables/_mediaQueries';
2
- @import '../../../../../../scss/variables/_colors';
1
+ @import '../../../../../../scss/variables/mediaQueries.module.scss';
2
+ @import '../../../../../../scss/variables/colors.module.scss';
3
3
 
4
4
  .container {
5
5
  display: flex;