@widergy/utilitygo-smart-bill-web 3.0.4 → 3.2.0

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 (109) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/components/Advice/index.js +1 -1
  3. package/dist/components/Amount/index.js +24 -20
  4. package/dist/components/Banner/index.js +4 -2
  5. package/dist/components/BarChart/index.js +10 -8
  6. package/dist/components/BillCalculation/components/ConceptCard/index.js +21 -14
  7. package/dist/components/BillCalculation/components/Glossary/index.js +1 -1
  8. package/dist/components/BillCalculation/index.js +13 -9
  9. package/dist/components/BillCalculation/utils.js +12 -13
  10. package/dist/components/BillSummary/components/BilledConcepts/components/Concept/index.js +30 -23
  11. package/dist/components/BillSummary/components/BilledConcepts/components/PieChartContainer/index.js +2 -2
  12. package/dist/components/BillSummary/components/BilledConcepts/index.js +15 -16
  13. package/dist/components/BillSummary/components/BilledConcepts/utils.js +11 -10
  14. package/dist/components/BillSummary/index.js +5 -6
  15. package/dist/components/ConsumptionComparison/components/ComparisonTable/components/DataLine/index.js +9 -5
  16. package/dist/components/ConsumptionComparison/components/ComparisonTable/components/Season/index.js +1 -1
  17. package/dist/components/ConsumptionComparison/components/ComparisonTable/constants.js +6 -8
  18. package/dist/components/ConsumptionComparison/components/ComparisonTable/index.js +2 -2
  19. package/dist/components/ConsumptionComparison/components/ComparisonTable/utils.js +15 -14
  20. package/dist/components/ConsumptionComparison/components/ConsumptionAdvice/index.js +2 -2
  21. package/dist/components/ConsumptionComparison/components/PercentageComparison/index.js +3 -3
  22. package/dist/components/ConsumptionComparison/components/PercentageComparison/utils.js +1 -1
  23. package/dist/components/ConsumptionComparison/index.js +2 -3
  24. package/dist/components/ConsumptionEnergyDetails/components/ConsumptionEnergyComparison/index.js +51 -50
  25. package/dist/components/ConsumptionEnergyDetails/components/ConsumptionInDaysLabel/index.js +23 -19
  26. package/dist/components/ConsumptionEnergyDetails/components/EnergyTotalConsumption/index.js +3 -3
  27. package/dist/components/ConsumptionEnergyDetails/components/PercentageComparison/index.js +3 -3
  28. package/dist/components/ConsumptionEnergyDetails/components/PercentageComparison/utils.js +1 -1
  29. package/dist/components/ConsumptionEnergyDetails/index.js +24 -22
  30. package/dist/components/ConsumptionIncluded/components/TimelineRow/components/Card/index.js +15 -12
  31. package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderConsumption/index.js +3 -3
  32. package/dist/components/ConsumptionIncluded/components/TimelineRow/components/HeaderSettlement/index.js +3 -3
  33. package/dist/components/ConsumptionIncluded/components/TimelineRow/index.js +9 -9
  34. package/dist/components/ConsumptionIncluded/index.js +1 -1
  35. package/dist/components/ConsumptionIncluded/utils.js +47 -65
  36. package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/components/ReadingRow/index.js +22 -18
  37. package/dist/components/ConsumptionPeriod/components/ConsumptionSummary/index.js +37 -30
  38. package/dist/components/ConsumptionPeriod/components/HistoryGraph/index.js +1 -1
  39. package/dist/components/ConsumptionPeriod/components/Reading/index.js +35 -26
  40. package/dist/components/ConsumptionPeriod/index.js +24 -18
  41. package/dist/components/Date/index.js +17 -13
  42. package/dist/components/DebtState/index.js +9 -6
  43. package/dist/components/IconAndDetails/index.js +22 -17
  44. package/dist/components/Magnitude/index.js +14 -8
  45. package/dist/components/Magnitude/utils.js +1 -1
  46. package/dist/components/MainBillData/components/BillAlert/components/BillParticularConditions/index.js +3 -3
  47. package/dist/components/MainBillData/components/BillAlert/index.js +8 -6
  48. package/dist/components/MainBillData/components/BillBody/components/ClientData/index.js +38 -29
  49. package/dist/components/MainBillData/components/BillBody/components/Consumption/index.js +2 -2
  50. package/dist/components/MainBillData/components/BillBody/components/ReadingDetails/index.js +34 -28
  51. package/dist/components/MainBillData/components/BillBody/index.js +15 -13
  52. package/dist/components/MainBillData/components/BillHeader/components/TypeAndNumber/index.js +11 -7
  53. package/dist/components/MainBillData/components/BillHeader/index.js +19 -15
  54. package/dist/components/MainBillData/index.js +3 -4
  55. package/dist/components/Period/index.js +42 -35
  56. package/dist/components/PowerProgresBar/components/PowerConsumption/index.js +7 -4
  57. package/dist/components/PowerProgresBar/index.js +2 -2
  58. package/dist/components/RateAndCategory/index.js +12 -8
  59. package/dist/components/RatesDefinition/components/BillRate/components/RatePrices/index.js +1 -1
  60. package/dist/components/RatesDefinition/components/BillRate/index.js +2 -2
  61. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/Category/index.js +2 -2
  62. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/components/IndicatorLabel/index.js +3 -3
  63. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/index.js +2 -2
  64. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Indicator/utils.js +2 -2
  65. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Legend/index.js +1 -1
  66. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/components/Stages/index.js +2 -2
  67. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/index.js +1 -1
  68. package/dist/components/RatesDefinition/components/CategoryByConsumption/components/RateStagesGraph/utils.js +5 -5
  69. package/dist/components/RatesDefinition/components/CategoryByConsumption/index.js +1 -1
  70. package/dist/components/RatesDefinition/components/PurchasedRate/index.js +2 -2
  71. package/dist/components/RatesDefinition/index.js +1 -1
  72. package/dist/components/SmartBillSummary/constants.js +25 -0
  73. package/dist/components/SmartBillSummary/index.js +70 -0
  74. package/dist/components/SmartBillSummary/styles.module.scss +48 -0
  75. package/dist/components/SmartBillSummary/tabs/Consumptions/components/Billing/constants.js +9 -0
  76. package/dist/components/SmartBillSummary/tabs/Consumptions/components/Billing/index.js +90 -0
  77. package/dist/components/SmartBillSummary/tabs/Consumptions/components/Billing/styles.module.scss +55 -0
  78. package/dist/components/SmartBillSummary/tabs/Consumptions/components/Billing/utils.js +32 -0
  79. package/dist/components/SmartBillSummary/tabs/Consumptions/components/BimestralConsumption/constants.js +13 -0
  80. package/dist/components/SmartBillSummary/tabs/Consumptions/components/BimestralConsumption/index.js +78 -0
  81. package/dist/components/SmartBillSummary/tabs/Consumptions/components/BimestralConsumption/styles.module.scss +43 -0
  82. package/dist/components/SmartBillSummary/tabs/Consumptions/components/CurrentConsumption/components/ConsumptionComparison/constants.js +9 -0
  83. package/dist/components/SmartBillSummary/tabs/Consumptions/components/CurrentConsumption/components/ConsumptionComparison/index.js +68 -0
  84. package/dist/components/SmartBillSummary/tabs/Consumptions/components/CurrentConsumption/components/ConsumptionComparison/styles.module.scss +43 -0
  85. package/dist/components/SmartBillSummary/tabs/Consumptions/components/CurrentConsumption/components/ConsumptionComparison/utils.js +35 -0
  86. package/dist/components/SmartBillSummary/tabs/Consumptions/components/CurrentConsumption/components/ConsumptionEvolution/index.js +72 -0
  87. package/dist/components/SmartBillSummary/tabs/Consumptions/components/CurrentConsumption/components/ConsumptionEvolution/styles.module.scss +29 -0
  88. package/dist/components/SmartBillSummary/tabs/Consumptions/components/CurrentConsumption/components/ConsumptionEvolution/utils.js +71 -0
  89. package/dist/components/SmartBillSummary/tabs/Consumptions/components/CurrentConsumption/index.js +64 -0
  90. package/dist/components/SmartBillSummary/tabs/Consumptions/components/CurrentConsumption/styles.module.scss +22 -0
  91. package/dist/components/SmartBillSummary/tabs/Consumptions/components/CurrentConsumption/utils.js +56 -0
  92. package/dist/components/SmartBillSummary/tabs/Consumptions/index.js +54 -0
  93. package/dist/components/SmartBillSummary/tabs/Consumptions/styles.module.scss +31 -0
  94. package/dist/components/SmartBillSummary/utils.js +30 -0
  95. package/dist/components/StyledAmount/constants.js +1 -1
  96. package/dist/components/StyledAmount/index.js +18 -13
  97. package/dist/components/WithContextApi/index.js +2 -2
  98. package/dist/components/WithContextApi/layout.js +2 -3
  99. package/dist/components/WithSeason/index.js +2 -2
  100. package/dist/constants/deviceSizes.js +1 -1
  101. package/dist/constants/testsIds.js +136 -0
  102. package/dist/index.js +15 -1
  103. package/dist/shared/Context/index.js +1 -1
  104. package/dist/shared/constants/tabs.js +11 -0
  105. package/dist/shared/utils/billCalculation.js +5 -6
  106. package/dist/shared/utils/consumptions.js +9 -20
  107. package/dist/shared/utils/periods.js +2 -5
  108. package/dist/utils.js +1 -1
  109. package/package.json +1 -1
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getConsumptionComparison = void 0;
7
+ var _lodash = require("lodash");
8
+ const getConsumptionComparison = (backgroundImages, labels, periods) => {
9
+ const {
10
+ noData,
11
+ description,
12
+ successDescription,
13
+ warningDescription,
14
+ bimester
15
+ } = labels || {};
16
+ const {
17
+ LightEvolutionImage,
18
+ WarningEvolutionImage,
19
+ SuccessEvolutionImage
20
+ } = backgroundImages || {};
21
+ const {
22
+ current,
23
+ previous
24
+ } = periods?.reduce((acc, period) => {
25
+ if (period?.current && !acc.current) {
26
+ acc.current = period;
27
+ } else if (!period?.current && !acc.previous) {
28
+ acc.previous = period;
29
+ }
30
+ return acc;
31
+ }, {
32
+ current: null,
33
+ previous: null
34
+ }) || {};
35
+ const currentConsumption = current?.consumptions?.[0]?.value;
36
+ const previousConsumption = previous?.consumptions?.[0]?.value;
37
+ const period = current?.number;
38
+ if (!periods || (0, _lodash.isEmpty)(periods) || !currentConsumption || !previousConsumption) {
39
+ return {
40
+ colorTheme: 'gray',
41
+ description,
42
+ icon: 'IconEyeOff',
43
+ Image: LightEvolutionImage,
44
+ percentage: null,
45
+ period: noData
46
+ };
47
+ }
48
+ const percentageChange = previousConsumption === 0 && currentConsumption === 0 ? 0 : previousConsumption !== 0 ? (currentConsumption - previousConsumption) / previousConsumption * 100 : 100;
49
+ const formattedPercentage = `${Math.abs(Math.round(percentageChange))}%`;
50
+ if (currentConsumption > previousConsumption) {
51
+ return {
52
+ colorTheme: 'warning',
53
+ description: warningDescription(formattedPercentage),
54
+ icon: 'IconArrowUpRight',
55
+ Image: WarningEvolutionImage,
56
+ percentage: formattedPercentage,
57
+ period: bimester(period)
58
+ };
59
+ }
60
+ if (currentConsumption <= previousConsumption) {
61
+ return {
62
+ colorTheme: 'success',
63
+ description: successDescription(formattedPercentage),
64
+ icon: 'IconArrowDownRight',
65
+ Image: SuccessEvolutionImage,
66
+ percentage: formattedPercentage,
67
+ period: bimester(period)
68
+ };
69
+ }
70
+ };
71
+ exports.getConsumptionComparison = getConsumptionComparison;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _energyUi = require("@widergy/energy-ui");
9
+ var _propTypes = require("prop-types");
10
+ var _billDataTypes = require("../../../../../../shared/types/billDataTypes");
11
+ var _ConsumptionComparison = _interopRequireDefault(require("./components/ConsumptionComparison"));
12
+ var _ConsumptionEvolution = _interopRequireDefault(require("./components/ConsumptionEvolution"));
13
+ var _utils = require("./utils");
14
+ var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
+ const CurrentConsumption = _ref => {
17
+ let {
18
+ assets,
19
+ smartBill,
20
+ texts
21
+ } = _ref;
22
+ const {
23
+ periods
24
+ } = smartBill || {};
25
+ const periodsToCompare = (0, _utils.getConsumptionPeriodsToCompare)(periods);
26
+ const {
27
+ totalConsumption,
28
+ unit,
29
+ description
30
+ } = (0, _utils.getConsumptionLabels)(periodsToCompare, texts) || {};
31
+ const title = texts?.consumptions?.youConsumedTitle;
32
+ return /*#__PURE__*/_react.default.createElement("div", {
33
+ className: _stylesModule.default.container
34
+ }, /*#__PURE__*/_react.default.createElement(_energyUi.UTLabel, {
35
+ colorTheme: "gray",
36
+ variant: "small"
37
+ }, title), /*#__PURE__*/_react.default.createElement("div", {
38
+ className: _stylesModule.default.details
39
+ }, /*#__PURE__*/_react.default.createElement("div", {
40
+ className: _stylesModule.default.consumption
41
+ }, /*#__PURE__*/_react.default.createElement(_energyUi.UTLabel, {
42
+ variant: "title1",
43
+ weight: "medium"
44
+ }, totalConsumption), /*#__PURE__*/_react.default.createElement(_energyUi.UTLabel, {
45
+ variant: "subtitle1",
46
+ weight: "medium"
47
+ }, unit)), /*#__PURE__*/_react.default.createElement(_energyUi.UTLabel, {
48
+ colorTheme: "gray",
49
+ withMarkdown: true
50
+ }, description)), /*#__PURE__*/_react.default.createElement(_ConsumptionComparison.default, {
51
+ periodsToCompare: periodsToCompare,
52
+ texts: texts
53
+ }), /*#__PURE__*/_react.default.createElement(_ConsumptionEvolution.default, {
54
+ assets: assets,
55
+ periods: periodsToCompare,
56
+ texts: texts
57
+ }));
58
+ };
59
+ CurrentConsumption.propTypes = {
60
+ assets: _propTypes.object,
61
+ smartBill: _billDataTypes.billDataTypes,
62
+ texts: _propTypes.object
63
+ };
64
+ var _default = exports.default = CurrentConsumption;
@@ -0,0 +1,22 @@
1
+ .container {
2
+ background-color: var(--light01);
3
+ border-radius: 8px;
4
+ box-shadow: var(--shadowGrayBottom1);
5
+ flex: 1;
6
+ padding: 24px;
7
+ }
8
+
9
+ .details {
10
+ border-bottom: 1px solid var(--light04);
11
+ display: flex;
12
+ flex-direction: column;
13
+ grid-gap: 12px;
14
+ margin: 0 -24px;
15
+ padding: 24px 24px 12px;
16
+ }
17
+
18
+ .consumption {
19
+ align-items: flex-end;
20
+ display: flex;
21
+ grid-gap: 8px;
22
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getConsumptionPeriodsToCompare = exports.getConsumptionLabels = void 0;
7
+ var _lodash = require("lodash");
8
+ var _numeral = _interopRequireDefault(require("numeral"));
9
+ var _dayjs = _interopRequireDefault(require("dayjs"));
10
+ require("dayjs/locale/es");
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ _dayjs.default.locale('es');
13
+ const getConsumptionPeriodsToCompare = function () {
14
+ let periods = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
15
+ if (!(0, _lodash.isEmpty)(periods)) {
16
+ const currentPeriod = periods.find(period => period.current);
17
+ const previousYearPeriod = periods.find(period => period.number === currentPeriod.number && parseInt(period.year, 10) === parseInt(currentPeriod.year, 10) - 1);
18
+ return [currentPeriod, previousYearPeriod];
19
+ }
20
+ };
21
+ exports.getConsumptionPeriodsToCompare = getConsumptionPeriodsToCompare;
22
+ const formatDate = date => {
23
+ if (!date) return '';
24
+ const day = (0, _dayjs.default)(date).format('D');
25
+ const month = (0, _lodash.capitalize)((0, _dayjs.default)(date).format('MMM'));
26
+ return `${day} de ${month}`;
27
+ };
28
+ const getConsumptionLabels = function () {
29
+ let periods = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
30
+ let texts = arguments.length > 1 ? arguments[1] : undefined;
31
+ const currentPeriod = periods?.find(period => period?.current);
32
+ const totalConsumption = currentPeriod?.consumptions?.[0];
33
+ const dailyConsumption = currentPeriod?.consumptions?.[1];
34
+ const {
35
+ value: totalConsumptionValue,
36
+ unit: totalConsumptionUnit
37
+ } = totalConsumption || {};
38
+ const {
39
+ value: dailyConsumptionValue,
40
+ unit: dailyConsumptionUnit
41
+ } = dailyConsumption || {};
42
+ const startDate = currentPeriod?.settlements?.start_date;
43
+ const endDate = currentPeriod?.settlements?.end_date;
44
+ const description = texts.consumptions.youConsumedDescription({
45
+ dailyConsumptionUnit,
46
+ dailyConsumptionValue: (0, _numeral.default)(dailyConsumptionValue).format('0,0.[00]'),
47
+ endDate: formatDate(endDate),
48
+ startDate: formatDate(startDate)
49
+ });
50
+ return {
51
+ description,
52
+ totalConsumption: (0, _numeral.default)(totalConsumptionValue).format('0,0.[00]'),
53
+ unit: totalConsumptionUnit
54
+ };
55
+ };
56
+ exports.getConsumptionLabels = getConsumptionLabels;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _energyUi = require("@widergy/energy-ui");
9
+ var _propTypes = require("prop-types");
10
+ var _billDataTypes = require("../../../../shared/types/billDataTypes");
11
+ var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
12
+ var _BimestralConsumption = _interopRequireDefault(require("./components/BimestralConsumption"));
13
+ var _CurrentConsumption = _interopRequireDefault(require("./components/CurrentConsumption"));
14
+ var _Billing = _interopRequireDefault(require("./components/Billing"));
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
+ const Consumptions = _ref => {
17
+ let {
18
+ assets,
19
+ smartBill,
20
+ translations
21
+ } = _ref;
22
+ const {
23
+ title,
24
+ description
25
+ } = translations?.consumptions || {};
26
+ return /*#__PURE__*/_react.default.createElement("div", {
27
+ className: _stylesModule.default.generalContainer
28
+ }, /*#__PURE__*/_react.default.createElement(_BimestralConsumption.default, {
29
+ assets: assets,
30
+ texts: translations
31
+ }), /*#__PURE__*/_react.default.createElement("div", {
32
+ className: _stylesModule.default.consumptionDetail
33
+ }, /*#__PURE__*/_react.default.createElement("div", {
34
+ className: _stylesModule.default.consumptionDetailTitles
35
+ }, /*#__PURE__*/_react.default.createElement(_energyUi.UTLabel, {
36
+ variant: "title3",
37
+ weight: "medium"
38
+ }, title), /*#__PURE__*/_react.default.createElement(_energyUi.UTLabel, null, description)), /*#__PURE__*/_react.default.createElement("div", {
39
+ className: _stylesModule.default.consumptionDetailColumns
40
+ }, /*#__PURE__*/_react.default.createElement(_CurrentConsumption.default, {
41
+ assets: assets,
42
+ smartBill: smartBill,
43
+ texts: translations
44
+ }), /*#__PURE__*/_react.default.createElement(_Billing.default, {
45
+ smartBill: smartBill,
46
+ texts: translations
47
+ }))));
48
+ };
49
+ Consumptions.propTypes = {
50
+ assets: _propTypes.object,
51
+ smartBill: _billDataTypes.billDataTypes,
52
+ translations: _propTypes.object
53
+ };
54
+ var _default = exports.default = Consumptions;
@@ -0,0 +1,31 @@
1
+ @import '../../../../scss/variables/mediaQueries.module.scss';
2
+
3
+ .generalContainer {
4
+ display: flex;
5
+ flex-direction: column;
6
+ grid-gap: 32px;
7
+ padding: 24px 32px;
8
+
9
+ @media #{$mobile} {
10
+ padding: 24px 16px;
11
+ }
12
+ }
13
+
14
+ .consumptionDetailTitles {
15
+ display: flex;
16
+ flex-direction: column;
17
+ grid-gap: 8px;
18
+ }
19
+
20
+ .consumptionDetailColumns {
21
+ display: flex;
22
+ flex: 1;
23
+ flex-wrap: wrap;
24
+ grid-gap: 32px;
25
+ }
26
+
27
+ .consumptionDetail {
28
+ display: flex;
29
+ flex-direction: column;
30
+ grid-gap: 24px;
31
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getTabOptions = exports.getDefaultCurrentTab = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _energyUi = require("@widergy/energy-ui");
9
+ var _lodash = require("lodash");
10
+ var _tabs = require("../../shared/constants/tabs");
11
+ var _constants = require("./constants");
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
+ const getTabOptions = (tabOptions, smartBill) => {
14
+ const hasBimestralPeriodicity = smartBill?.periods?.some(period => period.settlements?.periodicity === _constants.BIMESTRAL_PERIODICITY);
15
+ return tabOptions.map(tab => ({
16
+ ...tab,
17
+ icon: /*#__PURE__*/_react.default.createElement(_energyUi.UTIcon, {
18
+ name: tab.icon
19
+ })
20
+ })).filter(_ref => {
21
+ let {
22
+ enabled,
23
+ value
24
+ } = _ref;
25
+ return enabled && (value !== _tabs.SMARTBILL_TABS.CONSUMPTIONS || hasBimestralPeriodicity);
26
+ });
27
+ };
28
+ exports.getTabOptions = getTabOptions;
29
+ const getDefaultCurrentTab = tabOptions => !(0, _lodash.isEmpty)(tabOptions) && (tabOptions.find(tab => tab?.defaultSelected) || tabOptions?.[0])?.value;
30
+ exports.getDefaultCurrentTab = getDefaultCurrentTab;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.VARIANTS = void 0;
7
7
  var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
9
  const VARIANTS = exports.VARIANTS = {
10
10
  small: {
11
11
  currencyLabelStyle: _stylesModule.default.smallCurrency,
@@ -11,17 +11,18 @@ var _smartBillTypes = require("../../shared/types/smartBillTypes");
11
11
  var _WithContextApi = _interopRequireDefault(require("../WithContextApi"));
12
12
  var _constants = require("./constants");
13
13
  var _stylesModule = _interopRequireDefault(require("./styles.module.scss"));
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
15
  const StyledAmount = _ref => {
16
16
  let {
17
- contextApiInfo,
18
- currency = '$',
17
+ alias,
18
+ aliasDecimal,
19
19
  amount,
20
20
  amountFormat = '0,0.00',
21
+ contextApiInfo,
22
+ currency = '$',
23
+ dataTestId,
21
24
  splitChar = ',',
22
- variant = 'medium',
23
- alias,
24
- aliasDecimal
25
+ variant = 'medium'
25
26
  } = _ref;
26
27
  const {
27
28
  Label
@@ -35,22 +36,26 @@ const StyledAmount = _ref => {
35
36
  className: _stylesModule.default.container
36
37
  }, /*#__PURE__*/_react.default.createElement(Label, {
37
38
  alias: alias,
38
- className: currencyLabelStyle
39
+ className: currencyLabelStyle,
40
+ dataTestId: dataTestId ? `${dataTestId}currency` : ''
39
41
  }, currency), /*#__PURE__*/_react.default.createElement(Label, {
40
- alias: alias
42
+ alias: alias,
43
+ dataTestId: dataTestId ? `${dataTestId}integer` : ''
41
44
  }, integerPart), /*#__PURE__*/_react.default.createElement(Label, {
42
45
  alias: aliasDecimal,
43
- className: decimalLabelStyle
46
+ className: decimalLabelStyle,
47
+ dataTestId: dataTestId ? `${dataTestId}decimal` : ''
44
48
  }, decimalPart));
45
49
  };
46
50
  StyledAmount.propTypes = {
47
- contextApiInfo: _smartBillTypes.contextApiInfoTypes,
48
- currency: _propTypes.string,
51
+ alias: _propTypes.string,
52
+ aliasDecimal: _propTypes.string,
49
53
  amount: _propTypes.number,
50
54
  amountFormat: _propTypes.string,
55
+ contextApiInfo: _smartBillTypes.contextApiInfoTypes,
56
+ currency: _propTypes.string,
57
+ dataTestId: _propTypes.string,
51
58
  splitChar: _propTypes.string,
52
- alias: _propTypes.string,
53
- aliasDecimal: _propTypes.string,
54
59
  variant: _propTypes.string
55
60
  };
56
61
  var _default = exports.default = (0, _WithContextApi.default)()(StyledAmount);
@@ -9,8 +9,8 @@ var _aliases = require("../../shared/constants/aliases");
9
9
  var _Context = require("../../shared/Context");
10
10
  var _context = require("../../shared/utils/context");
11
11
  var _layout = _interopRequireDefault(require("./layout"));
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
- 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); }
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
14
14
  const withContextApi = retrieveStyle => Component => props => /*#__PURE__*/_react.default.createElement(_Context.SmartBillConsumer, null, contextApiInfo => {
15
15
  const infoWithUnpackedComponents = {
16
16
  ...contextApiInfo,
@@ -9,10 +9,9 @@ var _propTypes = require("prop-types");
9
9
  var _reactJss = _interopRequireDefault(require("react-jss"));
10
10
  var _componentsTypes = require("../../shared/types/componentsTypes");
11
11
  var _smartBillTypes = require("../../shared/types/smartBillTypes");
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
13
13
  const ThemedComponent = props => {
14
- var _props$contextApiInfo;
15
- const StyledComponent = props.retrieveStyle && (_props$contextApiInfo = props.contextApiInfo) !== null && _props$contextApiInfo !== void 0 && _props$contextApiInfo.theme ? (0, _reactJss.default)(props.retrieveStyle(props.contextApiInfo.theme))(props.Component) : props.Component;
14
+ const StyledComponent = props.retrieveStyle && props.contextApiInfo?.theme ? (0, _reactJss.default)(props.retrieveStyle(props.contextApiInfo.theme))(props.Component) : props.Component;
16
15
  return /*#__PURE__*/_react.default.createElement(StyledComponent, props);
17
16
  };
18
17
  ThemedComponent.propTypes = {
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _season = require("../../shared/utils/season");
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- 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); }
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
11
11
  const withSeason = () => Component => props => {
12
12
  // eslint-disable-next-line react/prop-types
13
13
  const season = (0, _season.getSeason)(props.monthNumber);
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.TabletViewport = exports.TabletMobileViewport = exports.TabletBreakpoint = exports.TABLET = exports.MobileViewport = exports.MobileBreakpoint = exports.MOBILE = exports.HDBreakpoint = exports.FullHDBreakpoint = exports.DesktopViewport = exports.DefaultViewport = exports.DESKTOP = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactResponsive = _interopRequireDefault(require("react-responsive"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
10
  const TabletBreakpoint = exports.TabletBreakpoint = 1024;
11
11
  const MobileBreakpoint = exports.MobileBreakpoint = 768;
12
12
  const FullHDBreakpoint = exports.FullHDBreakpoint = 1920;
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.smartBill = void 0;
7
+ const ID_CONSTANTS = {
8
+ AMOUNT: 'amount',
9
+ BILLED_CONCEPTS: 'billedConcepts',
10
+ BILL_BODY: 'billBody',
11
+ BILL_CALCULATION: 'billCalculation',
12
+ BILL_HEADER: 'billHeader',
13
+ CLIENT_DATA: 'clientData',
14
+ CONCEPT: 'concept',
15
+ CONCEPT_CARD: 'conceptCard',
16
+ CONSUMPTION_ENERGY_COMPARISON: 'consumptionEnergyComparison',
17
+ CONSUMPTION_ENERGY_DETAILS: 'consumptionEnergyDetails',
18
+ CONSUMPTION_IN_DAYS_LABEL: 'consumptionInDaysLabel',
19
+ CONSUMPTION_PERIOD: 'consumptionPeriod',
20
+ CONSUMPTION_PERIODICITY: 'consumptionPeriodicity',
21
+ CURRENT_CONSUMPTION: 'currentConsumption',
22
+ ICON_AND_DETAILS: 'iconAndDetails',
23
+ MAIN_BILL_DATA: 'mainBillData',
24
+ PERIOD: 'period',
25
+ RATE_AND_CATEGORY: 'rateAndCategory',
26
+ REDING_DETAILS: 'readingDetails',
27
+ REMAINING_CONSUMPTION: 'remainingConsumption',
28
+ SMART_BILL: 'smartBill',
29
+ TITLE: 'title',
30
+ TYPE_AND_NUMBER: 'typeAndNumber'
31
+ };
32
+ const smartBill = exports.smartBill = {
33
+ banner: `${ID_CONSTANTS.SMART_BILL}.banner`,
34
+ barChart: {
35
+ title: `${ID_CONSTANTS.SMART_BILL}.barChart.${ID_CONSTANTS.TITLE}`,
36
+ yAxisLabel: `${ID_CONSTANTS.SMART_BILL}.barChart.yAxisLabel`
37
+ },
38
+ billCalculation: {
39
+ conceptCard: {
40
+ card: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.BILL_CALCULATION}.${ID_CONSTANTS.CONCEPT_CARD}.card.`,
41
+ expandButton: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.BILL_CALCULATION}.${ID_CONSTANTS.CONCEPT_CARD}.expandButton.`,
42
+ footer: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.BILL_CALCULATION}.${ID_CONSTANTS.CONCEPT_CARD}.footer.`,
43
+ header: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.BILL_CALCULATION}.${ID_CONSTANTS.CONCEPT_CARD}.header.`,
44
+ line: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.BILL_CALCULATION}.${ID_CONSTANTS.CONCEPT_CARD}.line.`
45
+ },
46
+ title: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.BILL_CALCULATION}.${ID_CONSTANTS.TITLE}`
47
+ },
48
+ billedConcepts: {
49
+ concept: {
50
+ amount: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.BILLED_CONCEPTS}.${ID_CONSTANTS.CONCEPT}.${ID_CONSTANTS.AMOUNT}.`,
51
+ progressBar: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.BILLED_CONCEPTS}.${ID_CONSTANTS.CONCEPT}.progressBar.`,
52
+ title: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.BILLED_CONCEPTS}.${ID_CONSTANTS.CONCEPT}.${ID_CONSTANTS.TITLE}.`,
53
+ toggle: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.BILLED_CONCEPTS}.${ID_CONSTANTS.CONCEPT}.toggle.`
54
+ },
55
+ title: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.BILLED_CONCEPTS}.${ID_CONSTANTS.TITLE}`
56
+ },
57
+ card: `${ID_CONSTANTS.SMART_BILL}.card.`,
58
+ clientData: {
59
+ adheredToDigitalBill: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CLIENT_DATA}.adheredToDigitalBill`,
60
+ clientDataLocation: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CLIENT_DATA}.clientDataLocation.`,
61
+ clientDataPostalAdress: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CLIENT_DATA}.clientDataPostalAdress.`,
62
+ clientDataTitle: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CLIENT_DATA}.clientDataTitle`,
63
+ clientNumber: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CLIENT_DATA}.clientNumber.`,
64
+ emailDigitalBill: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CLIENT_DATA}.emailDigitalBill.`,
65
+ holderName: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CLIENT_DATA}.holderName.`,
66
+ ivaCondition: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CLIENT_DATA}.ivaCondition.`
67
+ },
68
+ consumptionComparison: {
69
+ comparisonTable: {
70
+ dataLine: `${ID_CONSTANTS.SMART_BILL}.consumptionComparison.comparisonTable.dataLine.`
71
+ }
72
+ },
73
+ consumptionEnergyDetails: {
74
+ consumptionEnergyComparison: {
75
+ consumptionInDaysLabel: {
76
+ consumptionPeriodicity: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CONSUMPTION_ENERGY_DETAILS}.${ID_CONSTANTS.CONSUMPTION_ENERGY_COMPARISON}.${ID_CONSTANTS.CONSUMPTION_IN_DAYS_LABEL}.${ID_CONSTANTS.CONSUMPTION_PERIODICITY}.`,
77
+ currentConsumption: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CONSUMPTION_ENERGY_DETAILS}.${ID_CONSTANTS.CONSUMPTION_ENERGY_COMPARISON}.${ID_CONSTANTS.CONSUMPTION_IN_DAYS_LABEL}.${ID_CONSTANTS.CURRENT_CONSUMPTION}.`,
78
+ remainingConsumption: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CONSUMPTION_ENERGY_DETAILS}.${ID_CONSTANTS.CONSUMPTION_ENERGY_COMPARISON}.${ID_CONSTANTS.CONSUMPTION_IN_DAYS_LABEL}.${ID_CONSTANTS.REMAINING_CONSUMPTION}.`
79
+ },
80
+ consumptionPeriodicity: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CONSUMPTION_ENERGY_DETAILS}.${ID_CONSTANTS.CONSUMPTION_ENERGY_COMPARISON}.${ID_CONSTANTS.CONSUMPTION_PERIODICITY}`,
81
+ currentConsumption: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CONSUMPTION_ENERGY_DETAILS}.${ID_CONSTANTS.CONSUMPTION_ENERGY_COMPARISON}.${ID_CONSTANTS.CURRENT_CONSUMPTION}`,
82
+ remainingConsumption: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CONSUMPTION_ENERGY_DETAILS}.${ID_CONSTANTS.CONSUMPTION_ENERGY_COMPARISON}.${ID_CONSTANTS.REMAINING_CONSUMPTION}`
83
+ },
84
+ consumptionTitle: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CONSUMPTION_ENERGY_DETAILS}.consumptionTitle`
85
+ },
86
+ consumptionPeriod: {
87
+ consumptionSummary: {
88
+ desktop: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CONSUMPTION_PERIOD}.consumptionSummary.desktop.`,
89
+ mobile: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CONSUMPTION_PERIOD}.consumptionSummary.mobile.`
90
+ },
91
+ reading: {
92
+ finalReading: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CONSUMPTION_PERIOD}.reading.finalReading`,
93
+ initialReading: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.CONSUMPTION_PERIOD}.reading.initialReading`
94
+ }
95
+ },
96
+ mainBillData: {
97
+ billAlert: {
98
+ particularConditionsAlert: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.MAIN_BILL_DATA}.billAlert.particularConditionsAlert`
99
+ },
100
+ billBody: {
101
+ amount: {
102
+ amount: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.MAIN_BILL_DATA}.${ID_CONSTANTS.BILL_BODY}.${ID_CONSTANTS.AMOUNT}.${ID_CONSTANTS.AMOUNT}.`,
103
+ expiration: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.MAIN_BILL_DATA}.${ID_CONSTANTS.BILL_BODY}.${ID_CONSTANTS.AMOUNT}.expiration.`
104
+ },
105
+ readingDetails: {
106
+ iconAndDetails: {
107
+ feederLine: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.MAIN_BILL_DATA}.${ID_CONSTANTS.BILL_BODY}.${ID_CONSTANTS.REDING_DETAILS}.${ID_CONSTANTS.ICON_AND_DETAILS}.feederLine.`,
108
+ meterNumber: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.MAIN_BILL_DATA}.${ID_CONSTANTS.BILL_BODY}.${ID_CONSTANTS.REDING_DETAILS}.${ID_CONSTANTS.ICON_AND_DETAILS}.meterNumber.`,
109
+ readingType: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.MAIN_BILL_DATA}.${ID_CONSTANTS.BILL_BODY}.${ID_CONSTANTS.REDING_DETAILS}.${ID_CONSTANTS.ICON_AND_DETAILS}.readingType.`,
110
+ transformationCenter: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.MAIN_BILL_DATA}.${ID_CONSTANTS.BILL_BODY}.${ID_CONSTANTS.REDING_DETAILS}.${ID_CONSTANTS.ICON_AND_DETAILS}.transformationCenter.`
111
+ },
112
+ readingTitle: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.MAIN_BILL_DATA}.${ID_CONSTANTS.BILL_BODY}.${ID_CONSTANTS.REDING_DETAILS}.readingTitle`
113
+ }
114
+ },
115
+ billHeader: {
116
+ debtState: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.MAIN_BILL_DATA}.${ID_CONSTANTS.BILL_HEADER}.debtState`,
117
+ issuedOnDate: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.MAIN_BILL_DATA}.${ID_CONSTANTS.BILL_HEADER}.issuedOnDate.`,
118
+ typeAndNumber: {
119
+ billNumber: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.MAIN_BILL_DATA}.${ID_CONSTANTS.BILL_HEADER}.${ID_CONSTANTS.TYPE_AND_NUMBER}.billNumber`,
120
+ billType: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.MAIN_BILL_DATA}.${ID_CONSTANTS.BILL_HEADER}.${ID_CONSTANTS.TYPE_AND_NUMBER}.billType`,
121
+ billTypeAndNumber: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.MAIN_BILL_DATA}.${ID_CONSTANTS.BILL_HEADER}.${ID_CONSTANTS.TYPE_AND_NUMBER}.billTypeAndNumber`
122
+ },
123
+ utilityLogo: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.MAIN_BILL_DATA}.${ID_CONSTANTS.BILL_HEADER}.utilityLogo`
124
+ }
125
+ },
126
+ period: {
127
+ periodLabel: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.PERIOD}.periodLabel`,
128
+ periodTooltip: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.PERIOD}.periodTooltip`,
129
+ tooltipIcon: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.PERIOD}.tooltipIcon`
130
+ },
131
+ rateAndCategory: {
132
+ category: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.RATE_AND_CATEGORY}.category`,
133
+ rate: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.RATE_AND_CATEGORY}.rate`,
134
+ title: `${ID_CONSTANTS.SMART_BILL}.${ID_CONSTANTS.RATE_AND_CATEGORY}.${ID_CONSTANTS.TITLE}`
135
+ }
136
+ };
package/dist/index.js CHANGED
@@ -65,6 +65,18 @@ Object.defineProperty(exports, "SmartBillProvider", {
65
65
  return _SmartBillProvider.default;
66
66
  }
67
67
  });
68
+ Object.defineProperty(exports, "SmartBillSummary", {
69
+ enumerable: true,
70
+ get: function () {
71
+ return _SmartBillSummary.default;
72
+ }
73
+ });
74
+ Object.defineProperty(exports, "Tabs", {
75
+ enumerable: true,
76
+ get: function () {
77
+ return _tabs.SMARTBILL_TABS;
78
+ }
79
+ });
68
80
  Object.defineProperty(exports, "billDataTypes", {
69
81
  enumerable: true,
70
82
  get: function () {
@@ -77,6 +89,7 @@ Object.defineProperty(exports, "rateStagesTypes", {
77
89
  return _rateStagesTypes.rateStagesTypes;
78
90
  }
79
91
  });
92
+ var _SmartBillSummary = _interopRequireDefault(require("./components/SmartBillSummary"));
80
93
  var _SmartBillProvider = _interopRequireDefault(require("./components/SmartBillProvider"));
81
94
  var _MainBillData = _interopRequireDefault(require("./components/MainBillData"));
82
95
  var _ConsumptionPeriod = _interopRequireDefault(require("./components/ConsumptionPeriod"));
@@ -92,6 +105,7 @@ var Aliases = _aliases;
92
105
  exports.Aliases = _aliases;
93
106
  var _billDataTypes = require("./shared/types/billDataTypes");
94
107
  var _rateStagesTypes = require("./shared/types/rateStagesTypes");
108
+ var _tabs = require("./shared/constants/tabs");
95
109
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
96
110
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
97
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
111
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.SmartBillProvider = exports.SmartBillConsumer = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
9
  const ContextApi = /*#__PURE__*/_react.default.createContext({});
10
10
  const {
11
11
  Provider: SmartBillProvider,
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SMARTBILL_TABS = void 0;
7
+ const SMARTBILL_TABS = exports.SMARTBILL_TABS = {
8
+ CONSUMPTIONS: 'consumptionsTab',
9
+ BILLING: 'billingTab',
10
+ GLOSSARY: 'glossaryTab'
11
+ };