@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.
- package/CHANGELOG.md +14 -0
- package/dist/components/Advice/styles.module.scss +4 -4
- package/dist/components/Amount/index.js +1 -1
- package/dist/components/Amount/styles.module.scss +3 -3
- package/dist/components/BarChart/index.js +1 -1
- package/dist/components/BarChart/styles.module.scss +2 -2
- package/dist/components/BillCalculation/components/ConceptCard/styles.module.scss +4 -4
- package/dist/components/BillCalculation/components/Glossary/index.js +2 -2
- package/dist/components/BillCalculation/components/Glossary/styles.module.scss +1 -1
- package/dist/components/BillCalculation/index.js +2 -2
- package/dist/components/BillCalculation/styles.module.scss +3 -3
- package/dist/components/BillCalculation/utils.js +2 -2
- package/dist/components/BillSummary/components/BilledConcepts/components/Concept/styles.module.scss +3 -3
- package/dist/components/BillSummary/components/BilledConcepts/constants.js +2 -2
- package/dist/components/BillSummary/components/BilledConcepts/index.js +4 -4
- package/dist/components/BillSummary/components/BilledConcepts/styles.module.scss +3 -3
- package/dist/components/BillSummary/components/BilledConcepts/utils.js +3 -3
- package/dist/components/BillSummary/index.js +6 -6
- package/dist/components/BillSummary/styles.module.scss +4 -4
- package/dist/components/ConsumptionComparison/components/ComparisonTable/components/DataLine/styles.module.scss +1 -1
- package/dist/components/ConsumptionComparison/components/ComparisonTable/components/Season/styles.module.scss +1 -1
- package/dist/components/ConsumptionComparison/components/ComparisonTable/constants.js +5 -5
- package/dist/components/ConsumptionComparison/components/ComparisonTable/styles.module.scss +3 -3
- package/dist/components/ConsumptionComparison/components/ConsumptionAdvice/styles.module.scss +3 -3
- package/dist/components/ConsumptionComparison/components/PercentageComparison/styles.module.scss +4 -4
- package/dist/components/ConsumptionComparison/index.js +3 -3
- package/dist/components/ConsumptionComparison/styles.module.scss +4 -4
- package/dist/components/ConsumptionEnergyDetails/components/ConsumptionEnergyComparison/index.js +3 -3
- package/dist/components/ConsumptionEnergyDetails/components/ConsumptionEnergyComparison/styles.module.scss +3 -3
- package/dist/components/ConsumptionEnergyDetails/components/ConsumptionInDaysLabel/styles.module.scss +1 -1
- package/dist/components/ConsumptionEnergyDetails/components/EnergyTotalConsumption/index.js +1 -1
- package/dist/components/ConsumptionEnergyDetails/components/PercentageComparison/styles.module.scss +3 -3
- package/dist/components/ConsumptionEnergyDetails/index.js +1 -1
- package/dist/components/ConsumptionEnergyDetails/styles.module.scss +3 -3
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/index.js +1 -1
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/styles.module.scss +3 -3
- package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderConsumption/styles.module.scss +2 -2
- package/dist/components/ConsumptionIncluded/components/TimelineRow/index.js +1 -1
- package/dist/components/ConsumptionIncluded/components/TimelineRow/styles.module.scss +2 -2
- package/dist/components/ConsumptionIncluded/index.js +1 -1
- package/dist/components/ConsumptionIncluded/styles.module.scss +1 -1
- package/dist/components/ConsumptionIncluded/utils.js +14 -14
- package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/components/ReadingRow/styles.module.scss +1 -1
- package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/styles.module.scss +2 -2
- package/dist/components/ConsumptionPeriod/components/HistoryGraph/index.js +2 -2
- package/dist/components/ConsumptionPeriod/components/HistoryGraph/styles.module.scss +2 -2
- package/dist/components/ConsumptionPeriod/components/Reading/styles.module.scss +3 -3
- package/dist/components/ConsumptionPeriod/index.js +2 -2
- package/dist/components/ConsumptionPeriod/styles.module.scss +1 -1
- package/dist/components/DebtState/styles.module.scss +1 -1
- package/dist/components/MainBillData/components/BillAlert/components/BillParticularConditions/styles.module.scss +1 -1
- package/dist/components/MainBillData/components/BillAlert/index.js +2 -2
- package/dist/components/MainBillData/components/BillAlert/styles.module.scss +3 -3
- package/dist/components/MainBillData/components/BillBody/components/ClientData/styles.module.scss +3 -3
- package/dist/components/MainBillData/components/BillBody/components/Consumption/styles.module.scss +2 -2
- package/dist/components/MainBillData/components/BillBody/components/ReadingDetails/styles.module.scss +3 -3
- package/dist/components/MainBillData/components/BillBody/index.js +1 -1
- package/dist/components/MainBillData/components/BillBody/styles.module.scss +1 -1
- package/dist/components/MainBillData/components/BillHeader/components/TypeAndNumber/styles.module.scss +2 -2
- package/dist/components/MainBillData/components/BillHeader/index.js +3 -3
- package/dist/components/MainBillData/components/BillHeader/styles.module.scss +3 -3
- package/dist/components/MainBillData/index.js +1 -1
- package/dist/components/MainBillData/styles.module.scss +3 -3
- package/dist/components/Period/index.js +2 -2
- package/dist/components/Period/styles.module.scss +4 -4
- package/dist/components/PowerProgresBar/index.js +1 -1
- package/dist/components/PowerProgresBar/styles.module.scss +3 -3
- package/dist/components/RateAndCategory/index.js +1 -1
- package/dist/components/RateAndCategory/styles.module.scss +2 -2
- package/dist/components/RatesDefinition/components/BillRate/components/RatePrices/styles.module.scss +1 -1
- package/dist/components/RatesDefinition/components/BillRate/styles.module.scss +3 -3
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/Category/styles.module.scss +3 -3
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/components/IndicatorLabel/styles.module.scss +1 -1
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Legend/styles.module.scss +2 -2
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Stages/styles.module.scss +2 -2
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/index.js +2 -2
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/styles.module.scss +3 -3
- package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/utils.js +3 -3
- package/dist/components/RatesDefinition/components/CategoryByConsumption/index.js +2 -2
- package/dist/components/RatesDefinition/components/CategoryByConsumption/styles.module.scss +3 -3
- package/dist/components/RatesDefinition/components/PurchasedRate/styles.module.scss +4 -4
- package/dist/components/RatesDefinition/styles.module.scss +3 -3
- package/dist/components/SmartBillProvider/index.js +1 -1
- package/dist/components/StyledAmount/index.js +1 -1
- package/dist/components/WithContextApi/index.js +3 -3
- package/dist/index.js +1 -1
- package/dist/scss/variables/{_colors.scss → colors.module.scss} +1 -1
- package/dist/scss/variables/{_colorsExport.scss → colorsExport.module.scss} +2 -2
- package/dist/scss/variables/{_commonColors.scss → commonColors.module.scss} +1 -3
- package/dist/shared/constants/aliases.js +1 -1
- package/dist/shared/types/componentsTypes.js +1 -1
- package/dist/shared/types/smartBillTypes.js +3 -3
- package/dist/shared/utils/billCalculation.js +4 -4
- package/dist/shared/utils/consumptions.js +7 -7
- package/dist/shared/utils/context.js +1 -1
- package/dist/shared/utils/periods.js +1 -1
- package/package.json +5 -5
- package/dist/scss/variables/_fontFamilies.scss +0 -6
- package/dist/scss/variables/_utils.scss +0 -15
- /package/dist/scss/variables/{_fontSizes.scss → fontSizes.module.scss} +0 -0
- /package/dist/scss/variables/{_mediaQueries.scss → mediaQueries.module.scss} +0 -0
- /package/dist/scss/variables/{_sizes.scss → sizes.module.scss} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
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/
|
|
2
|
-
@import '../../../../scss/variables/
|
|
1
|
+
@import '../../../../scss/variables/mediaQueries.module.scss';
|
|
2
|
+
@import '../../../../scss/variables/colors.module.scss';
|
|
3
3
|
|
|
4
4
|
$widht-check-icon: 24px;
|
|
5
5
|
$height-check-icon: 24px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
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
|
});
|
|
@@ -28,12 +28,12 @@ var getBimesterDate = function getBimesterDate(periods, text) {
|
|
|
28
28
|
exports.getBimesterDate = getBimesterDate;
|
|
29
29
|
var getTotalDaysDescriptionComsumption = function getTotalDaysDescriptionComsumption(period, texts) {
|
|
30
30
|
var _period$settlements;
|
|
31
|
-
var totalDays = period === null || period === void 0
|
|
31
|
+
var totalDays = period === null || period === void 0 || (_period$settlements = period.settlements) === null || _period$settlements === void 0 ? void 0 : _period$settlements.total_settlements_days;
|
|
32
32
|
return "".concat(totalDays, " ").concat(texts.days);
|
|
33
33
|
};
|
|
34
34
|
var getTotalDaysDescriptionSettlement = function getTotalDaysDescriptionSettlement(period, texts, dataRetriver) {
|
|
35
35
|
var _period$settlements2;
|
|
36
|
-
var totalDays = period === null || period === void 0
|
|
36
|
+
var totalDays = period === null || period === void 0 || (_period$settlements2 = period.settlements) === null || _period$settlements2 === void 0 ? void 0 : _period$settlements2.total_settlements_days;
|
|
37
37
|
var currentConsumptionDays = dataRetriver(period).days;
|
|
38
38
|
return currentConsumptionDays && totalDays ? "".concat(currentConsumptionDays, " ").concat(texts.of, " ").concat(totalDays, " ").concat(texts.days) : '-';
|
|
39
39
|
};
|
|
@@ -44,16 +44,16 @@ var getConsumptionDescriptionSettlement = function getConsumptionDescriptionSett
|
|
|
44
44
|
var getCardSubtitleSettlement = function getCardSubtitleSettlement(period, text, dataRetriver) {
|
|
45
45
|
var _period$settlements3;
|
|
46
46
|
var currentSettlement = dataRetriver(period).number || 0;
|
|
47
|
-
var totalSettlements = (period === null || period === void 0
|
|
47
|
+
var totalSettlements = (period === null || period === void 0 || (_period$settlements3 = period.settlements) === null || _period$settlements3 === void 0 ? void 0 : _period$settlements3.total_settlements) || 0;
|
|
48
48
|
return "".concat(text.settlement, " ").concat(currentSettlement, " ").concat(text.of, " ").concat(totalSettlements);
|
|
49
49
|
};
|
|
50
50
|
var getCurrent = function getCurrent(period) {
|
|
51
51
|
var _period$settlements4;
|
|
52
|
-
return (period === null || period === void 0
|
|
52
|
+
return (period === null || period === void 0 || (_period$settlements4 = period.settlements) === null || _period$settlements4 === void 0 ? void 0 : _period$settlements4.current) || {};
|
|
53
53
|
};
|
|
54
54
|
var getRemaining = function getRemaining(period) {
|
|
55
|
-
var _period$settlements5
|
|
56
|
-
return (period === null || period === void 0
|
|
55
|
+
var _period$settlements5;
|
|
56
|
+
return (period === null || period === void 0 || (_period$settlements5 = period.settlements) === null || _period$settlements5 === void 0 || (_period$settlements5 = _period$settlements5.remaining) === null || _period$settlements5 === void 0 ? void 0 : _period$settlements5[0]) || {};
|
|
57
57
|
};
|
|
58
58
|
var consumptionMapper = function consumptionMapper(period, texts) {
|
|
59
59
|
var _period$settlements6, _period$settlements7;
|
|
@@ -70,7 +70,7 @@ var consumptionMapper = function consumptionMapper(period, texts) {
|
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
72
|
var settlementCurrentMapper = function settlementCurrentMapper(period, texts) {
|
|
73
|
-
var _period$settlements8, _period$
|
|
73
|
+
var _period$settlements8, _period$settlements9, _period$settlements10;
|
|
74
74
|
return {
|
|
75
75
|
cardTitle: texts.billing,
|
|
76
76
|
cardSubtitle: getCardSubtitleSettlement(period, texts, getCurrent),
|
|
@@ -78,14 +78,14 @@ var settlementCurrentMapper = function settlementCurrentMapper(period, texts) {
|
|
|
78
78
|
cardDescription2: getTotalDaysDescriptionSettlement(period, texts, getCurrent),
|
|
79
79
|
value: (0, _consumptions.getCurrentConsumption)(period, _consumptions2.ENERGY_TYPES.ACTIVE).value,
|
|
80
80
|
unit: (0, _consumptions.getCurrentConsumption)(period, _consumptions2.ENERGY_TYPES.ACTIVE).unit,
|
|
81
|
-
date: period !== null && period !== void 0 && (_period$settlements8 = period.settlements) !== null && _period$settlements8 !== void 0 && (_period$settlements8
|
|
82
|
-
settlementNumber: (period === null || period === void 0
|
|
81
|
+
date: period !== null && period !== void 0 && (_period$settlements8 = period.settlements) !== null && _period$settlements8 !== void 0 && (_period$settlements8 = _period$settlements8.current) !== null && _period$settlements8 !== void 0 && _period$settlements8.issued_on ? (0, _dayjs.default)(period.settlements.current.issued_on, 'YYYY-MM-DD').format('DD/MM/YYYY') : '-',
|
|
82
|
+
settlementNumber: (period === null || period === void 0 || (_period$settlements9 = period.settlements) === null || _period$settlements9 === void 0 || (_period$settlements9 = _period$settlements9.current) === null || _period$settlements9 === void 0 ? void 0 : _period$settlements9.number) || '-',
|
|
83
83
|
isCurrent: true,
|
|
84
|
-
order: period === null || period === void 0
|
|
84
|
+
order: period === null || period === void 0 || (_period$settlements10 = period.settlements) === null || _period$settlements10 === void 0 || (_period$settlements10 = _period$settlements10.current) === null || _period$settlements10 === void 0 ? void 0 : _period$settlements10.number
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
87
|
var settlementRemainingMapper = function settlementRemainingMapper(period, texts) {
|
|
88
|
-
var _period$
|
|
88
|
+
var _period$settlements11, _period$settlements12, _period$settlements13;
|
|
89
89
|
return {
|
|
90
90
|
cardTitle: texts.billing,
|
|
91
91
|
cardSubtitle: getCardSubtitleSettlement(period, texts, getRemaining),
|
|
@@ -93,10 +93,10 @@ var settlementRemainingMapper = function settlementRemainingMapper(period, texts
|
|
|
93
93
|
cardDescription2: getTotalDaysDescriptionSettlement(period, texts, getRemaining),
|
|
94
94
|
value: (0, _consumptions.getRemainingConsumption)(period, _consumptions2.ENERGY_TYPES.ACTIVE).value,
|
|
95
95
|
unit: (0, _consumptions.getRemainingConsumption)(period, _consumptions2.ENERGY_TYPES.ACTIVE).unit,
|
|
96
|
-
date: (period === null || period === void 0
|
|
97
|
-
settlementNumber: (period === null || period === void 0
|
|
96
|
+
date: (period === null || period === void 0 || (_period$settlements11 = period.settlements) === null || _period$settlements11 === void 0 || (_period$settlements11 = _period$settlements11.remaining) === null || _period$settlements11 === void 0 ? void 0 : _period$settlements11.length) > 0 ? (0, _dayjs.default)(period.settlements.remaining[0].issued_on, 'YYYY-MM-DD').format('DD/MM/YYYY') : '-',
|
|
97
|
+
settlementNumber: (period === null || period === void 0 || (_period$settlements12 = period.settlements) === null || _period$settlements12 === void 0 || (_period$settlements12 = _period$settlements12.remaining) === null || _period$settlements12 === void 0 || (_period$settlements12 = _period$settlements12[0]) === null || _period$settlements12 === void 0 ? void 0 : _period$settlements12.number) || '-',
|
|
98
98
|
isRemaining: true,
|
|
99
|
-
order: period === null || period === void 0
|
|
99
|
+
order: period === null || period === void 0 || (_period$settlements13 = period.settlements) === null || _period$settlements13 === void 0 || (_period$settlements13 = _period$settlements13.remaining) === null || _period$settlements13 === void 0 || (_period$settlements13 = _period$settlements13[0]) === null || _period$settlements13 === void 0 ? void 0 : _period$settlements13.number
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
102
|
var dataMapper = function dataMapper() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import '../../../../scss/variables/
|
|
2
|
-
@import '../../../../scss/variables/
|
|
1
|
+
@import '../../../../scss/variables/colorsExport.module.scss';
|
|
2
|
+
@import '../../../../scss/variables/sizes.module.scss';
|
|
3
3
|
|
|
4
4
|
.container {
|
|
5
5
|
align-items: center;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
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(
|
|
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 HistoryGraph = function HistoryGraph(_ref) {
|
|
27
27
|
var billData = _ref.billData,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import '../../../../scss/variables/
|
|
2
|
-
@import '../../../../scss/variables/
|
|
1
|
+
@import '../../../../scss/variables/colorsExport.module.scss';
|
|
2
|
+
@import '../../../../scss/variables/sizes.module.scss';
|
|
3
3
|
|
|
4
4
|
.container {
|
|
5
5
|
align-items: center;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import '../../../../scss/variables/
|
|
2
|
-
@import '../../../../scss/variables/
|
|
3
|
-
@import '../../../../scss/variables/
|
|
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
|
background-color: $white;
|
|
@@ -33,7 +33,7 @@ var ConsumptionPeriod = function ConsumptionPeriod(_ref) {
|
|
|
33
33
|
className: _stylesModule.default.readingsAndDesktopSummaryContainer
|
|
34
34
|
}, /*#__PURE__*/_react.default.createElement(_Reading.default, {
|
|
35
35
|
title: texts.consumptionPeriod.initialReading,
|
|
36
|
-
date: currentPeriod === null || currentPeriod === void 0
|
|
36
|
+
date: currentPeriod === null || currentPeriod === void 0 || (_currentPeriod$settle = currentPeriod.settlements) === null || _currentPeriod$settle === void 0 ? void 0 : _currentPeriod$settle.start_date,
|
|
37
37
|
readingType: initialReading.type,
|
|
38
38
|
readingValue: (0, _readings.getActiveEnergyRecord)(initialReading).value,
|
|
39
39
|
classes: {
|
|
@@ -45,7 +45,7 @@ var ConsumptionPeriod = function ConsumptionPeriod(_ref) {
|
|
|
45
45
|
}
|
|
46
46
|
})), /*#__PURE__*/_react.default.createElement(_Reading.default, {
|
|
47
47
|
title: texts.consumptionPeriod.finalReading,
|
|
48
|
-
date: currentPeriod === null || currentPeriod === void 0
|
|
48
|
+
date: currentPeriod === null || currentPeriod === void 0 || (_currentPeriod$settle2 = currentPeriod.settlements) === null || _currentPeriod$settle2 === void 0 ? void 0 : _currentPeriod$settle2.end_date,
|
|
49
49
|
readingType: finalReading.type,
|
|
50
50
|
readingValue: (0, _readings.getActiveEnergyRecord)(finalReading).value,
|
|
51
51
|
classes: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
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
|
});
|
|
@@ -19,7 +19,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
19
19
|
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."); }
|
|
20
20
|
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); }
|
|
21
21
|
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; }
|
|
22
|
-
function _iterableToArrayLimit(
|
|
22
|
+
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; } }
|
|
23
23
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
24
24
|
var BillAlert = function BillAlert(_ref) {
|
|
25
25
|
var contextApiInfo = _ref.contextApiInfo,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import '../../../../scss/variables/
|
|
2
|
-
@import '../../../../scss/variables/
|
|
3
|
-
@import '../../../../scss/variables/
|
|
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
|
align-items: center;
|
package/dist/components/MainBillData/components/BillBody/components/ClientData/styles.module.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import '../../../../../../scss/variables/
|
|
2
|
-
@import '../../../../../../scss/variables/
|
|
3
|
-
@import '../../../../../../scss/variables/
|
|
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
|
%assets-styles {
|
|
6
6
|
fill: $dark-gray !important;
|
package/dist/components/MainBillData/components/BillBody/components/Consumption/styles.module.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import '../../../../../../scss/variables/
|
|
2
|
-
@import '../../../../../../scss/variables/
|
|
1
|
+
@import '../../../../../../scss/variables/colorsExport.module.scss';
|
|
2
|
+
@import '../../../../../../scss/variables/sizes.module.scss';
|
|
3
3
|
|
|
4
4
|
.container {
|
|
5
5
|
background-color: $white;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import '../../../../../../scss/variables/
|
|
2
|
-
@import '../../../../../../scss/variables/
|
|
3
|
-
@import '../../../../../../scss/variables/
|
|
1
|
+
@import '../../../../../../scss/variables/mediaQueries.module.scss';
|
|
2
|
+
@import '../../../../../../scss/variables/colorsExport.module.scss';
|
|
3
|
+
@import '../../../../../../scss/variables/sizes.module.scss';
|
|
4
4
|
|
|
5
5
|
%svg-styles {
|
|
6
6
|
> svg {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
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/
|
|
2
|
-
@import '../../../../../../scss/variables/
|
|
1
|
+
@import '../../../../../../scss/variables/colorsExport.module.scss';
|
|
2
|
+
@import '../../../../../../scss/variables/mediaQueries.module.scss';
|
|
3
3
|
|
|
4
4
|
.container {
|
|
5
5
|
align-items: flex-start;
|
|
@@ -19,7 +19,7 @@ var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
|
|
|
19
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
20
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
21
|
var BillHeader = function BillHeader(_ref) {
|
|
22
|
-
var _currentPeriod$settle, _currentPeriod$settle2
|
|
22
|
+
var _currentPeriod$settle, _currentPeriod$settle2;
|
|
23
23
|
var contextApiInfo = _ref.contextApiInfo,
|
|
24
24
|
billData = _ref.billData;
|
|
25
25
|
var assets = contextApiInfo.assets,
|
|
@@ -29,8 +29,8 @@ var BillHeader = function BillHeader(_ref) {
|
|
|
29
29
|
isDesktopSize = _useScreenSize.isDesktopSize,
|
|
30
30
|
isMobileOrTablet = _useScreenSize.isMobileOrTablet;
|
|
31
31
|
var currentPeriod = (0, _periods.getCurrentPeriod)(billData);
|
|
32
|
-
var issuedOnDate = currentPeriod === null || currentPeriod === void 0
|
|
33
|
-
var totalSettlements = currentPeriod === null || currentPeriod === void 0
|
|
32
|
+
var issuedOnDate = currentPeriod === null || currentPeriod === void 0 || (_currentPeriod$settle = currentPeriod.settlements) === null || _currentPeriod$settle === void 0 || (_currentPeriod$settle = _currentPeriod$settle.current) === null || _currentPeriod$settle === void 0 ? void 0 : _currentPeriod$settle.issued_on;
|
|
33
|
+
var totalSettlements = currentPeriod === null || currentPeriod === void 0 || (_currentPeriod$settle2 = currentPeriod.settlements) === null || _currentPeriod$settle2 === void 0 ? void 0 : _currentPeriod$settle2.total_settlements;
|
|
34
34
|
var debtStatusLabel = billData.debt_status_label;
|
|
35
35
|
var debtStatusValidation = debtStatusLabel !== null;
|
|
36
36
|
var multipleSettlements = totalSettlements > 1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import '../../../../scss/variables/
|
|
2
|
-
@import '../../../../scss/variables/
|
|
3
|
-
@import '../../../../scss/variables/
|
|
1
|
+
@import '../../../../scss/variables/mediaQueries.module.scss';
|
|
2
|
+
@import '../../../../scss/variables/colorsExport.module.scss';
|
|
3
|
+
@import '../../../../scss/variables/sizes.module.scss';
|
|
4
4
|
|
|
5
5
|
.container {
|
|
6
6
|
background-color: $white;
|
|
@@ -19,7 +19,7 @@ var MainBillData = function MainBillData(_ref) {
|
|
|
19
19
|
var billData = _ref.billData,
|
|
20
20
|
classes = _ref.classes;
|
|
21
21
|
var currentPeriod = (0, _periods.getCurrentPeriod)(billData);
|
|
22
|
-
var multipleSettlements = (currentPeriod === null || currentPeriod === void 0
|
|
22
|
+
var multipleSettlements = (currentPeriod === null || currentPeriod === void 0 || (_currentPeriod$settle = currentPeriod.settlements) === null || _currentPeriod$settle === void 0 ? void 0 : _currentPeriod$settle.total_settlements) > 1;
|
|
23
23
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
24
24
|
className: "".concat(_stylesModule.default.container, " ").concat(classes.container)
|
|
25
25
|
}, /*#__PURE__*/_react.default.createElement(_BillHeader.default, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import '../../scss/variables/
|
|
2
|
-
@import '../../scss/variables/
|
|
3
|
-
@import '../../scss/variables/
|
|
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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
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
|
});
|
|
@@ -52,7 +52,7 @@ var Period = function Period(_ref) {
|
|
|
52
52
|
var periodicity = settlements === null || settlements === void 0 ? void 0 : settlements.periodicity;
|
|
53
53
|
var periodNumber = currentPeriod.number,
|
|
54
54
|
year = currentPeriod.year;
|
|
55
|
-
var currentSettlement = settlements === null || settlements === void 0
|
|
55
|
+
var currentSettlement = settlements === null || settlements === void 0 || (_settlements$current = settlements.current) === null || _settlements$current === void 0 ? void 0 : _settlements$current.number;
|
|
56
56
|
var totalSettlements = settlements === null || settlements === void 0 ? void 0 : settlements.total_settlements;
|
|
57
57
|
var startDate = (0, _dayjs.default)(settlements === null || settlements === void 0 ? void 0 : settlements.start_date).format('DD/MM');
|
|
58
58
|
var endDate = (0, _dayjs.default)(settlements === null || settlements === void 0 ? void 0 : settlements.end_date).format('DD/MM');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@import '../../scss/variables/
|
|
2
|
-
@import '../../scss/variables/
|
|
3
|
-
@import '../../scss/variables/
|
|
4
|
-
@import '../../scss/variables/
|
|
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
|
.withIssuedDateContainer {
|
|
7
7
|
background-color: $white;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
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/
|
|
2
|
-
@import '../../scss/variables/
|
|
3
|
-
@import '../../scss/variables/
|
|
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
|
%exceededPower {
|
|
6
6
|
display: flex;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
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/
|
|
2
|
-
@import '../../../../scss/variables/
|
|
3
|
-
@import '../../../../scss/variables/
|
|
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
|
align-items: center;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import '../../../../../../scss/variables/
|
|
2
|
-
@import '../../../../../../scss/variables/
|
|
3
|
-
@import '../../../../../../scss/variables/
|
|
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
|
align-items: center;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import '../../../../../../../../scss/variables/
|
|
2
|
-
@import '../../../../../../../../scss/variables/
|
|
1
|
+
@import '../../../../../../../../scss/variables/colorsExport.module.scss';
|
|
2
|
+
@import '../../../../../../../../scss/variables/mediaQueries.module.scss';
|
|
3
3
|
|
|
4
4
|
.legendContainer {
|
|
5
5
|
border-top: 1px solid $borders-gray;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import '../../../../../../../../scss/variables/
|
|
2
|
-
@import '../../../../../../../../scss/variables/
|
|
1
|
+
@import '../../../../../../../../scss/variables/colorsExport.module.scss';
|
|
2
|
+
@import '../../../../../../../../scss/variables/mediaQueries.module.scss';
|
|
3
3
|
|
|
4
4
|
$substage-spacing: 4px;
|
|
5
5
|
$substage-spacing-responsive: 2px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(
|
|
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
|
});
|
|
@@ -22,7 +22,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
22
22
|
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."); }
|
|
23
23
|
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); }
|
|
24
24
|
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; }
|
|
25
|
-
function _iterableToArrayLimit(
|
|
25
|
+
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; } }
|
|
26
26
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
27
|
var RateStagesGraph = function RateStagesGraph(_ref) {
|
|
28
28
|
var value = _ref.value,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import '../../../../../../scss/variables/
|
|
2
|
-
@import '../../../../../../scss/variables/
|
|
3
|
-
@import '../../../../../../scss/variables/
|
|
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
|
display: flex;
|
|
@@ -7,9 +7,9 @@ exports.getStagesFormattedData = void 0;
|
|
|
7
7
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
8
8
|
var _constants = require("./constants");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
function _typeof(
|
|
11
|
-
function ownKeys(
|
|
12
|
-
function _objectSpread(
|
|
10
|
+
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); }
|
|
11
|
+
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; }
|
|
12
|
+
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; }
|
|
13
13
|
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; }
|
|
14
14
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
15
15
|
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(
|
|
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
|
});
|
|
@@ -22,7 +22,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
22
22
|
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."); }
|
|
23
23
|
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); }
|
|
24
24
|
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; }
|
|
25
|
-
function _iterableToArrayLimit(
|
|
25
|
+
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; } }
|
|
26
26
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
27
|
var CategoryByConsumption = function CategoryByConsumption(_ref) {
|
|
28
28
|
var contextApiInfo = _ref.contextApiInfo,
|