@everymatrix/pam-account-balance-modal 0.1.3 → 0.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.
@@ -1,27 +1,88 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
3
3
  import { EventSourcePolyfill } from "event-source-polyfill";
4
- import * as currencyFormatter from "currency.js";
5
4
  import { translate } from "../../utils/locale.utils";
6
5
  import "../../../../../ui-skeleton/dist/types/index";
7
6
  export class PamAccountBalanceModal {
8
7
  constructor() {
9
8
  this.totalCalculationModes = ['totalCashAmount', 'totalRealAmount'];
10
- this.setLocaleIdentifier = () => {
11
- if (this.customLocaleIdentifier.includes(this.language)) {
12
- return this.customLocaleIdentifier;
13
- }
14
- };
9
+ /**
10
+ * Returns the formatted balance
11
+ * @param balance -> the balance value to be formatted
12
+ */
15
13
  this.formatBalance = (balance) => {
16
- if (this.customLocaleIdentifier) {
17
- return new Intl.NumberFormat(this.setLocaleIdentifier(), { useGrouping: true }).format(balance);
14
+ if (this.customDisplayFormat) {
15
+ return this.formatFromCustom(balance);
18
16
  }
19
- if (this.currencySeparator && this.currencyDecimal) {
20
- // @ts-ignore
21
- return currencyFormatter.default(balance, { separator: this.currencySeparator, decimal: this.currencyDecimal, symbol: '', precision: parseInt(this.currencyPrecision || '2', 10) }).format();
17
+ const locales = this.currencyLocale || this.language;
18
+ const formatOptions = {
19
+ style: 'currency',
20
+ currency: this.currency,
21
+ useGrouping: true,
22
+ currencyDisplay: this.currencyDisplay || 'code',
23
+ maximumFractionDigits: this.maximumFractionDigits === '' || isNaN(Number(this.maximumFractionDigits)) ? 2 : Number(this.maximumFractionDigits),
24
+ minimumFractionDigits: this.minimumFractionDigits === '' || isNaN(Number(this.minimumFractionDigits)) ? 0 : Number(this.minimumFractionDigits),
25
+ };
26
+ return new Intl.NumberFormat(locales, formatOptions).format(balance);
27
+ };
28
+ /**
29
+ * Parses customdisplayformat and returns the formatted balance accordingly.
30
+ * Example:
31
+ * if customdisplayformat = '{amount|,.1} {currency}', currency = 'EUR'
32
+ * then formatFromCustom(123123.199) = '123,123.1 EUR'
33
+ * @param balance
34
+ */
35
+ this.formatFromCustom = (balance) => {
36
+ const tokens = [];
37
+ let acc = '';
38
+ for (const char of this.customDisplayFormat) {
39
+ switch (char) {
40
+ default:
41
+ acc += char;
42
+ break;
43
+ case '{':
44
+ acc && tokens.push(acc);
45
+ acc = '';
46
+ break;
47
+ case '}':
48
+ const [variable, args] = acc.split('|');
49
+ acc = '';
50
+ if (variable.toLowerCase() === 'currency') {
51
+ acc = this.currency;
52
+ }
53
+ else if (variable.toLowerCase() === 'amount') {
54
+ // defaults
55
+ let sepThousands = ',';
56
+ let sepDecimal = '.';
57
+ let decimals = 2;
58
+ // override defaults if args provided (' ' is considered empty so default is used)
59
+ if (args) {
60
+ args[0] !== ' ' && (sepThousands = args[0]);
61
+ args[1] !== ' ' && (sepDecimal = args[1]);
62
+ args[2] !== ' ' && !isNaN(Number(args[2])) && (decimals = Number(args[2]));
63
+ }
64
+ // separate int and fractional part, also round down to desired precision
65
+ let [integerPart, fractionalPart] = String(Math.floor(balance * 10 ** decimals) / 10 ** decimals).split('.');
66
+ // format int part by adding thousands separators
67
+ acc += integerPart[0];
68
+ for (let i = 1; i < integerPart.length; ++i) {
69
+ if ((integerPart.length - i) % 3 === 0) {
70
+ acc += (sepThousands + integerPart[i]);
71
+ }
72
+ else {
73
+ acc += integerPart[i];
74
+ }
75
+ }
76
+ // add fractional part if it exists
77
+ fractionalPart && (acc += (sepDecimal + fractionalPart));
78
+ }
79
+ acc && tokens.push(acc);
80
+ acc = '';
81
+ break;
82
+ }
22
83
  }
23
- // @ts-ignore
24
- return currencyFormatter.default(balance, { separator: '.', decimal: ',', symbol: '', precision: parseInt(this.currencyPrecision || '2', 10) }).format();
84
+ tokens.push(acc);
85
+ return tokens.join('');
25
86
  };
26
87
  this.getBalances = () => {
27
88
  this.isLoading = true;
@@ -189,20 +250,21 @@ export class PamAccountBalanceModal {
189
250
  break;
190
251
  }
191
252
  };
192
- this.userId = undefined;
193
- this.session = undefined;
194
- this.endpoint = undefined;
195
- this.customLocaleIdentifier = undefined;
196
- this.displayBalanceOption = undefined;
197
- this.totalCalculationMode = undefined;
198
- this.currencySeparator = undefined;
199
- this.currencyDecimal = undefined;
200
- this.currencyPrecision = undefined;
201
- this.mbSource = undefined;
202
- this.clientStyling = undefined;
203
- this.clientStylingUrl = undefined;
204
- this.translationUrl = undefined;
253
+ this.userId = '';
254
+ this.session = '';
255
+ this.endpoint = '';
256
+ this.mbSource = '';
257
+ this.clientStyling = '';
258
+ this.clientStylingUrl = '';
259
+ this.translationUrl = '';
205
260
  this.language = 'en';
261
+ this.displayBalanceOption = 'All';
262
+ this.totalCalculationMode = 'totalCashAmount';
263
+ this.currencyLocale = 'en';
264
+ this.currencyDisplay = 'code';
265
+ this.maximumFractionDigits = '2';
266
+ this.minimumFractionDigits = '0';
267
+ this.customDisplayFormat = '';
206
268
  this.isLoading = true;
207
269
  this.isModalDisplayed = false;
208
270
  this.isSplitWallet = false;
@@ -343,10 +405,10 @@ export class PamAccountBalanceModal {
343
405
  }
344
406
  }
345
407
  render() {
346
- const balanceButton = (h("button", { class: "BalanceValue", onClick: () => this.toggleModal('open') }, h("p", null, this.balances['Total'].length > 0 ? this.formatBalance(this.balances['Total'][0].amount) : '0', " ", this.currency), h("span", { class: " {isModalDisplayed ? 'TriangleActive' : 'TriangleInactive'}" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" }, h("path", { id: "arrow", d: "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z", transform: "translate(-274.511 -441.088)", fill: "#d1d1d1" })))));
408
+ const balanceButton = (h("button", { class: "BalanceValue", onClick: () => this.toggleModal('open') }, h("p", null, this.balances['Total'].length > 0 ? this.formatBalance(this.balances['Total'][0].amount) : '0'), h("span", { class: " {isModalDisplayed ? 'TriangleActive' : 'TriangleInactive'}" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" }, h("path", { id: "arrow", d: "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z", transform: "translate(-274.511 -441.088)", fill: "#d1d1d1" })))));
347
409
  const balanceModal = (h("div", { class: this.isModalDisplayed ? 'BalanceModalWrapper Open' : 'BalanceModalWrapper' }, h("button", { class: "BalanceModalClose", onClick: () => this.toggleModal('close') }), h("div", { class: "BalanceModal" }, h("div", { class: "ModalContent" }, h("div", { class: "BalanceModalHeader" }, h("p", { class: "BalanceModalTitle" }, translate('Title', this.language))), h("div", { class: "BalanceModalBody" }, Object.keys(this.balances).map((key) => {
348
410
  return (h("div", { class: "BalanceModalRowBoth" }, this.balances[key].map((balance) => {
349
- return (h("div", { class: "BalanceModalRowLine" }, h("p", { class: "BalanceModalText" }, translate(key, this.language), " ", balance.productType ? translate(balance.productType, this.language) : ''), h("p", { class: "BalanceModalValue" }, h("span", { class: "BalanceModalAmount" }, balance.amount ? this.formatBalance(balance.amount) : '0'), h("span", { class: "BalanceModalCurrency" }, " " + this.currency))));
411
+ return (h("div", { class: "BalanceModalRowLine" }, h("p", { class: "BalanceModalText" }, translate(key, this.language), " ", balance.productType ? translate(balance.productType, this.language) : ''), h("p", { class: "BalanceModalValue" }, h("span", { class: "BalanceModalAmount" }, balance.amount ? this.formatBalance(balance.amount) : '0'))));
350
412
  })));
351
413
  })), h("div", { class: "BalanceModalFooter" }, h("button", { class: "BalanceModalAction", onClick: () => this.balanceModalOpenDeposit() }, translate('DepositButton', this.language)))))));
352
414
  const skeleton = (h("div", { class: "LoadingSkeleton" }, h("ui-skeleton", { structure: "title", height: "20px", width: "auto" })));
@@ -383,7 +445,8 @@ export class PamAccountBalanceModal {
383
445
  "text": ""
384
446
  },
385
447
  "attribute": "user-id",
386
- "reflect": true
448
+ "reflect": true,
449
+ "defaultValue": "''"
387
450
  },
388
451
  "session": {
389
452
  "type": "string",
@@ -400,7 +463,8 @@ export class PamAccountBalanceModal {
400
463
  "text": ""
401
464
  },
402
465
  "attribute": "session",
403
- "reflect": true
466
+ "reflect": true,
467
+ "defaultValue": "''"
404
468
  },
405
469
  "endpoint": {
406
470
  "type": "string",
@@ -417,9 +481,10 @@ export class PamAccountBalanceModal {
417
481
  "text": ""
418
482
  },
419
483
  "attribute": "endpoint",
420
- "reflect": true
484
+ "reflect": true,
485
+ "defaultValue": "''"
421
486
  },
422
- "customLocaleIdentifier": {
487
+ "mbSource": {
423
488
  "type": "string",
424
489
  "mutable": false,
425
490
  "complexType": {
@@ -433,10 +498,11 @@ export class PamAccountBalanceModal {
433
498
  "tags": [],
434
499
  "text": ""
435
500
  },
436
- "attribute": "custom-locale-identifier",
437
- "reflect": true
501
+ "attribute": "mb-source",
502
+ "reflect": true,
503
+ "defaultValue": "''"
438
504
  },
439
- "displayBalanceOption": {
505
+ "clientStyling": {
440
506
  "type": "string",
441
507
  "mutable": false,
442
508
  "complexType": {
@@ -450,10 +516,11 @@ export class PamAccountBalanceModal {
450
516
  "tags": [],
451
517
  "text": ""
452
518
  },
453
- "attribute": "display-balance-option",
454
- "reflect": true
519
+ "attribute": "client-styling",
520
+ "reflect": true,
521
+ "defaultValue": "''"
455
522
  },
456
- "totalCalculationMode": {
523
+ "clientStylingUrl": {
457
524
  "type": "string",
458
525
  "mutable": false,
459
526
  "complexType": {
@@ -467,10 +534,11 @@ export class PamAccountBalanceModal {
467
534
  "tags": [],
468
535
  "text": ""
469
536
  },
470
- "attribute": "total-calculation-mode",
471
- "reflect": true
537
+ "attribute": "client-styling-url",
538
+ "reflect": true,
539
+ "defaultValue": "''"
472
540
  },
473
- "currencySeparator": {
541
+ "translationUrl": {
474
542
  "type": "string",
475
543
  "mutable": false,
476
544
  "complexType": {
@@ -484,10 +552,11 @@ export class PamAccountBalanceModal {
484
552
  "tags": [],
485
553
  "text": ""
486
554
  },
487
- "attribute": "currency-separator",
488
- "reflect": true
555
+ "attribute": "translation-url",
556
+ "reflect": true,
557
+ "defaultValue": "''"
489
558
  },
490
- "currencyDecimal": {
559
+ "language": {
491
560
  "type": "string",
492
561
  "mutable": false,
493
562
  "complexType": {
@@ -501,10 +570,11 @@ export class PamAccountBalanceModal {
501
570
  "tags": [],
502
571
  "text": ""
503
572
  },
504
- "attribute": "currency-decimal",
505
- "reflect": true
573
+ "attribute": "language",
574
+ "reflect": true,
575
+ "defaultValue": "'en'"
506
576
  },
507
- "currencyPrecision": {
577
+ "displayBalanceOption": {
508
578
  "type": "string",
509
579
  "mutable": false,
510
580
  "complexType": {
@@ -518,10 +588,11 @@ export class PamAccountBalanceModal {
518
588
  "tags": [],
519
589
  "text": ""
520
590
  },
521
- "attribute": "currency-precision",
522
- "reflect": true
591
+ "attribute": "display-balance-option",
592
+ "reflect": true,
593
+ "defaultValue": "'All'"
523
594
  },
524
- "mbSource": {
595
+ "totalCalculationMode": {
525
596
  "type": "string",
526
597
  "mutable": false,
527
598
  "complexType": {
@@ -535,10 +606,11 @@ export class PamAccountBalanceModal {
535
606
  "tags": [],
536
607
  "text": ""
537
608
  },
538
- "attribute": "mb-source",
539
- "reflect": true
609
+ "attribute": "total-calculation-mode",
610
+ "reflect": true,
611
+ "defaultValue": "'totalCashAmount'"
540
612
  },
541
- "clientStyling": {
613
+ "currencyLocale": {
542
614
  "type": "string",
543
615
  "mutable": false,
544
616
  "complexType": {
@@ -550,12 +622,13 @@ export class PamAccountBalanceModal {
550
622
  "optional": false,
551
623
  "docs": {
552
624
  "tags": [],
553
- "text": ""
625
+ "text": "These props are used only by Intl.NumberFormat and have no effect if customdisplayformat is passed, as it will be used instead"
554
626
  },
555
- "attribute": "client-styling",
556
- "reflect": true
627
+ "attribute": "currency-locale",
628
+ "reflect": true,
629
+ "defaultValue": "'en'"
557
630
  },
558
- "clientStylingUrl": {
631
+ "currencyDisplay": {
559
632
  "type": "string",
560
633
  "mutable": false,
561
634
  "complexType": {
@@ -569,10 +642,11 @@ export class PamAccountBalanceModal {
569
642
  "tags": [],
570
643
  "text": ""
571
644
  },
572
- "attribute": "client-styling-url",
573
- "reflect": true
645
+ "attribute": "currency-display",
646
+ "reflect": true,
647
+ "defaultValue": "'code'"
574
648
  },
575
- "translationUrl": {
649
+ "maximumFractionDigits": {
576
650
  "type": "string",
577
651
  "mutable": false,
578
652
  "complexType": {
@@ -586,10 +660,11 @@ export class PamAccountBalanceModal {
586
660
  "tags": [],
587
661
  "text": ""
588
662
  },
589
- "attribute": "translation-url",
590
- "reflect": true
663
+ "attribute": "maximum-fraction-digits",
664
+ "reflect": true,
665
+ "defaultValue": "'2'"
591
666
  },
592
- "language": {
667
+ "minimumFractionDigits": {
593
668
  "type": "string",
594
669
  "mutable": false,
595
670
  "complexType": {
@@ -603,9 +678,27 @@ export class PamAccountBalanceModal {
603
678
  "tags": [],
604
679
  "text": ""
605
680
  },
606
- "attribute": "language",
681
+ "attribute": "minimum-fraction-digits",
607
682
  "reflect": true,
608
- "defaultValue": "'en'"
683
+ "defaultValue": "'0'"
684
+ },
685
+ "customDisplayFormat": {
686
+ "type": "string",
687
+ "mutable": false,
688
+ "complexType": {
689
+ "original": "string",
690
+ "resolved": "string",
691
+ "references": {}
692
+ },
693
+ "required": false,
694
+ "optional": false,
695
+ "docs": {
696
+ "tags": [],
697
+ "text": "The {} blocks are replaced by their respective values. Everything else in the string is left as it is.\nThe \"amount\" block also accepts arguments that must be placed after \"|\". \nFirst char is the Thousands Separator, second is the Decimal Separator, third is Decimal Precision.\nAn empty value (' ') indicates that the default values should be used for that specific arg."
698
+ },
699
+ "attribute": "custom-display-format",
700
+ "reflect": true,
701
+ "defaultValue": "''"
609
702
  }
610
703
  };
611
704
  }
@@ -9,7 +9,6 @@ export const TRANSLATIONS = {
9
9
  "Casino": "Casino",
10
10
  "Sports": "Sports",
11
11
  "DepositButton": "Deposit",
12
- "Loading": "Loading ..."
13
12
  },
14
13
  "zh-hk": {
15
14
  "Title": "您的結餘",
@@ -20,7 +19,6 @@ export const TRANSLATIONS = {
20
19
  "Casino": "賭場",
21
20
  "Sports": "體育",
22
21
  "DepositButton": "存款",
23
- "Loading": "載入中 ..."
24
22
  },
25
23
  "de": {
26
24
  "Title": "Ihr Guthaben",
@@ -31,7 +29,6 @@ export const TRANSLATIONS = {
31
29
  "Casino": "Casino",
32
30
  "Sports": "Sport",
33
31
  "DepositButton": "Einzahlen",
34
- "Loading": "Wird geladen ..."
35
32
  },
36
33
  "it": {
37
34
  "Title": "Il tuo saldo",
@@ -42,7 +39,6 @@ export const TRANSLATIONS = {
42
39
  "Casino": "Casinò",
43
40
  "Sports": "Sport",
44
41
  "DepositButton": "Deposita",
45
- "Loading": "Caricamento ..."
46
42
  },
47
43
  "fr": {
48
44
  "Title": "Votre solde",
@@ -53,7 +49,6 @@ export const TRANSLATIONS = {
53
49
  "Casino": "Casino",
54
50
  "Sports": "Sports",
55
51
  "DepositButton": "Dépôt",
56
- "Loading": "Chargement ..."
57
52
  },
58
53
  "es": {
59
54
  "Title": "Tu saldo",
@@ -64,7 +59,6 @@ export const TRANSLATIONS = {
64
59
  "Casino": "Casino",
65
60
  "Sports": "Deportes",
66
61
  "DepositButton": "Depósito",
67
- "Loading": "Cargando ..."
68
62
  },
69
63
  "tr": {
70
64
  "Title": "Bakiyeniz",
@@ -75,7 +69,6 @@ export const TRANSLATIONS = {
75
69
  "Casino": "Kumarhane",
76
70
  "Sports": "Spor",
77
71
  "DepositButton": "Yatır",
78
- "Loading": "Yükleniyor ..."
79
72
  },
80
73
  "ru": {
81
74
  "Title": "Ваш баланс",
@@ -86,7 +79,6 @@ export const TRANSLATIONS = {
86
79
  "Casino": "Казино",
87
80
  "Sports": "Спорт",
88
81
  "DepositButton": "Депозит",
89
- "Loading": "Загружается ..."
90
82
  },
91
83
  "ro": {
92
84
  "Title": "Soldul tău",
@@ -97,7 +89,6 @@ export const TRANSLATIONS = {
97
89
  "Casino": "Cazinou",
98
90
  "Sports": "Sporturi",
99
91
  "DepositButton": "Depozit",
100
- "Loading": "Se încarcă ..."
101
92
  },
102
93
  "hr": {
103
94
  "Title": "Vaš saldo",
@@ -108,7 +99,6 @@ export const TRANSLATIONS = {
108
99
  "Casino": "Casino",
109
100
  "Sports": "Sportovi",
110
101
  "DepositButton": "Depozit",
111
- "Loading": "Učitavanje ..."
112
102
  },
113
103
  "hu": {
114
104
  "Title": "Az egyenleged",
@@ -119,7 +109,6 @@ export const TRANSLATIONS = {
119
109
  "Casino": "Kaszinó",
120
110
  "Sports": "Sport",
121
111
  "DepositButton": "Befizetés",
122
- "Loading": "Betöltés ..."
123
112
  },
124
113
  "pl": {
125
114
  "Title": "Twoje saldo",
@@ -130,7 +119,6 @@ export const TRANSLATIONS = {
130
119
  "Casino": "Kasyno",
131
120
  "Sports": "Sport",
132
121
  "DepositButton": "Wpłać",
133
- "Loading": "Ładowanie ..."
134
122
  },
135
123
  "pt": {
136
124
  "Title": "Seu Saldo",
@@ -141,7 +129,6 @@ export const TRANSLATIONS = {
141
129
  "Casino": "Cassino",
142
130
  "Sports": "Esportes",
143
131
  "DepositButton": "Depositar",
144
- "Loading": "Carregando ..."
145
132
  },
146
133
  "sl": {
147
134
  "Title": "Vaš saldo",
@@ -152,7 +139,6 @@ export const TRANSLATIONS = {
152
139
  "Casino": "Kasino",
153
140
  "Sports": "Šport",
154
141
  "DepositButton": "Depozit",
155
- "Loading": "Nalaganje ..."
156
142
  },
157
143
  "sr": {
158
144
  "Title": "Vaš saldo",
@@ -163,7 +149,6 @@ export const TRANSLATIONS = {
163
149
  "Casino": "Kasino",
164
150
  "Sports": "Sport",
165
151
  "DepositButton": "Depozit",
166
- "Loading": "Učitavanje ..."
167
152
  },
168
153
  "pt-br": {
169
154
  "Title": "Seu Saldo",
@@ -174,7 +159,6 @@ export const TRANSLATIONS = {
174
159
  "Casino": "Cassino",
175
160
  "Sports": "Esportes",
176
161
  "DepositButton": "Depositar",
177
- "Loading": "Carregando ..."
178
162
  },
179
163
  "es-mx": {
180
164
  "Title": "Tu saldo",
@@ -185,7 +169,6 @@ export const TRANSLATIONS = {
185
169
  "Casino": "Casino",
186
170
  "Sports": "Deportes",
187
171
  "DepositButton": "Depósito",
188
- "Loading": "Cargando ..."
189
172
  },
190
173
  "en-us": {
191
174
  "Title": "Your Balance",
@@ -196,7 +179,6 @@ export const TRANSLATIONS = {
196
179
  "Casino": "Casino",
197
180
  "Sports": "Sports",
198
181
  "DepositButton": "Deposit",
199
- "Loading": "Loading ..."
200
182
  }
201
183
  };
202
184
  export const getTranslations = (url) => {
@@ -206,6 +188,7 @@ export const getTranslations = (url) => {
206
188
  .then((res) => res.json())
207
189
  .then((data) => {
208
190
  Object.keys(data).forEach((item) => {
191
+ TRANSLATIONS[item] = TRANSLATIONS[item] || {};
209
192
  for (let key in data[item]) {
210
193
  TRANSLATIONS[item][key] = data[item][key];
211
194
  }
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { P as PamAccountBalanceModal } from './pam-account-balance-modal-8ebcc863.js';
1
+ export { P as PamAccountBalanceModal } from './pam-account-balance-modal-d4c15371.js';
2
2
  import './index-ee727666.js';
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["pam-account-balance-modal_2",[[1,"pam-account-balance-modal",{"userId":[513,"user-id"],"session":[513],"endpoint":[513],"customLocaleIdentifier":[513,"custom-locale-identifier"],"displayBalanceOption":[513,"display-balance-option"],"totalCalculationMode":[513,"total-calculation-mode"],"currencySeparator":[513,"currency-separator"],"currencyDecimal":[513,"currency-decimal"],"currencyPrecision":[513,"currency-precision"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isLoading":[32],"isModalDisplayed":[32],"isSplitWallet":[32],"currentStream":[32],"currency":[32],"updateRealAmountState":[32],"balances":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]]], options);
8
+ return bootstrapLazy([["pam-account-balance-modal_2",[[1,"pam-account-balance-modal",{"userId":[513,"user-id"],"session":[513],"endpoint":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"displayBalanceOption":[513,"display-balance-option"],"totalCalculationMode":[513,"total-calculation-mode"],"currencyLocale":[513,"currency-locale"],"currencyDisplay":[513,"currency-display"],"maximumFractionDigits":[513,"maximum-fraction-digits"],"minimumFractionDigits":[513,"minimum-fraction-digits"],"customDisplayFormat":[513,"custom-display-format"],"isLoading":[32],"isModalDisplayed":[32],"isSplitWallet":[32],"currentStream":[32],"currency":[32],"updateRealAmountState":[32],"balances":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };