@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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const pamAccountBalanceModal = require('./pam-account-balance-modal-81ade12d.js');
5
+ const pamAccountBalanceModal = require('./pam-account-balance-modal-8f1e0d8b.js');
6
6
  require('./index-f01eba32.js');
7
7
 
8
8
 
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["pam-account-balance-modal_2.cjs",[[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);
11
+ return index.bootstrapLazy([["pam-account-balance-modal_2.cjs",[[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);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -1107,26 +1107,6 @@ var eventsource = {exports: {}};
1107
1107
  }(typeof globalThis === 'undefined' ? (typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : commonjsGlobal) : globalThis));
1108
1108
  }(eventsource, eventsource.exports));
1109
1109
 
1110
- var currency_min$1 = {exports: {}};
1111
-
1112
- /*
1113
- currency.js - v2.0.4
1114
- http://scurker.github.io/currency.js
1115
-
1116
- Copyright (c) 2021 Jason Wilson
1117
- Released under MIT license
1118
- */
1119
-
1120
- (function (module, exports) {
1121
- (function(e,g){module.exports=g();})(commonjsGlobal,function(){function e(b,a){if(!(this instanceof e))return new e(b,a);a=Object.assign({},m,a);var d=Math.pow(10,a.precision);this.intValue=b=g(b,a);this.value=b/d;a.increment=a.increment||1/d;a.groups=a.useVedic?n:p;this.s=a;this.p=d;}function g(b,a){var d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!0;var c=a.decimal;
1122
- var h=a.errorOnInvalid,k=a.fromCents,l=Math.pow(10,a.precision),f=b instanceof e;if(f&&k)return b.intValue;if("number"===typeof b||f)c=f?b.value:b;else if("string"===typeof b)h=new RegExp("[^-\\d"+c+"]","g"),c=new RegExp("\\"+c,"g"),c=(c=b.replace(/\((.*)\)/,"-$1").replace(h,"").replace(c,"."))||0;else {if(h)throw Error("Invalid Input");c=0;}k||(c=(c*l).toFixed(4));return d?Math.round(c):c}var m={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(b,
1123
- a){var d=a.pattern,c=a.negativePattern,h=a.symbol,k=a.separator,l=a.decimal;a=a.groups;var f=(""+b).replace(/^-/,"").split("."),q=f[0];f=f[1];return (0<=b.value?d:c).replace("!",h).replace("#",q.replace(a,"$1"+k)+(f?l+f:""))},fromCents:!1},p=/(\d)(?=(\d{3})+\b)/g,n=/(\d)(?=(\d\d)+\d\b)/g;e.prototype={add:function(b){var a=this.s,d=this.p;return e((this.intValue+g(b,a))/(a.fromCents?1:d),a)},subtract:function(b){var a=this.s,d=this.p;return e((this.intValue-g(b,a))/(a.fromCents?1:d),a)},multiply:function(b){var a=
1124
- this.s;return e(this.intValue*b/(a.fromCents?1:Math.pow(10,a.precision)),a)},divide:function(b){var a=this.s;return e(this.intValue/g(b,a,!1),a)},distribute:function(b){var a=this.intValue,d=this.p,c=this.s,h=[],k=Math[0<=a?"floor":"ceil"](a/b),l=Math.abs(a-k*b);for(d=c.fromCents?1:d;0!==b;b--){var f=e(k/d,c);0<l--&&(f=f[0<=a?"add":"subtract"](1/d));h.push(f);}return h},dollars:function(){return ~~this.value},cents:function(){return ~~(this.intValue%this.p)},format:function(b){var a=this.s;return "function"===
1125
- typeof b?b(this,a):a.format(this,Object.assign({},a,b))},toString:function(){var b=this.s,a=b.increment;return (Math.round(this.intValue/this.p/a)*a).toFixed(b.precision)},toJSON:function(){return this.value}};return e});
1126
- }(currency_min$1));
1127
-
1128
- const currency_min = currency_min$1.exports;
1129
-
1130
1110
  const DEFAULT_LANGUAGE = 'en';
1131
1111
  const TRANSLATIONS = {
1132
1112
  "en": {
@@ -1138,7 +1118,6 @@ const TRANSLATIONS = {
1138
1118
  "Casino": "Casino",
1139
1119
  "Sports": "Sports",
1140
1120
  "DepositButton": "Deposit",
1141
- "Loading": "Loading ..."
1142
1121
  },
1143
1122
  "zh-hk": {
1144
1123
  "Title": "您的結餘",
@@ -1149,7 +1128,6 @@ const TRANSLATIONS = {
1149
1128
  "Casino": "賭場",
1150
1129
  "Sports": "體育",
1151
1130
  "DepositButton": "存款",
1152
- "Loading": "載入中 ..."
1153
1131
  },
1154
1132
  "de": {
1155
1133
  "Title": "Ihr Guthaben",
@@ -1160,7 +1138,6 @@ const TRANSLATIONS = {
1160
1138
  "Casino": "Casino",
1161
1139
  "Sports": "Sport",
1162
1140
  "DepositButton": "Einzahlen",
1163
- "Loading": "Wird geladen ..."
1164
1141
  },
1165
1142
  "it": {
1166
1143
  "Title": "Il tuo saldo",
@@ -1171,7 +1148,6 @@ const TRANSLATIONS = {
1171
1148
  "Casino": "Casinò",
1172
1149
  "Sports": "Sport",
1173
1150
  "DepositButton": "Deposita",
1174
- "Loading": "Caricamento ..."
1175
1151
  },
1176
1152
  "fr": {
1177
1153
  "Title": "Votre solde",
@@ -1182,7 +1158,6 @@ const TRANSLATIONS = {
1182
1158
  "Casino": "Casino",
1183
1159
  "Sports": "Sports",
1184
1160
  "DepositButton": "Dépôt",
1185
- "Loading": "Chargement ..."
1186
1161
  },
1187
1162
  "es": {
1188
1163
  "Title": "Tu saldo",
@@ -1193,7 +1168,6 @@ const TRANSLATIONS = {
1193
1168
  "Casino": "Casino",
1194
1169
  "Sports": "Deportes",
1195
1170
  "DepositButton": "Depósito",
1196
- "Loading": "Cargando ..."
1197
1171
  },
1198
1172
  "tr": {
1199
1173
  "Title": "Bakiyeniz",
@@ -1204,7 +1178,6 @@ const TRANSLATIONS = {
1204
1178
  "Casino": "Kumarhane",
1205
1179
  "Sports": "Spor",
1206
1180
  "DepositButton": "Yatır",
1207
- "Loading": "Yükleniyor ..."
1208
1181
  },
1209
1182
  "ru": {
1210
1183
  "Title": "Ваш баланс",
@@ -1215,7 +1188,6 @@ const TRANSLATIONS = {
1215
1188
  "Casino": "Казино",
1216
1189
  "Sports": "Спорт",
1217
1190
  "DepositButton": "Депозит",
1218
- "Loading": "Загружается ..."
1219
1191
  },
1220
1192
  "ro": {
1221
1193
  "Title": "Soldul tău",
@@ -1226,7 +1198,6 @@ const TRANSLATIONS = {
1226
1198
  "Casino": "Cazinou",
1227
1199
  "Sports": "Sporturi",
1228
1200
  "DepositButton": "Depozit",
1229
- "Loading": "Se încarcă ..."
1230
1201
  },
1231
1202
  "hr": {
1232
1203
  "Title": "Vaš saldo",
@@ -1237,7 +1208,6 @@ const TRANSLATIONS = {
1237
1208
  "Casino": "Casino",
1238
1209
  "Sports": "Sportovi",
1239
1210
  "DepositButton": "Depozit",
1240
- "Loading": "Učitavanje ..."
1241
1211
  },
1242
1212
  "hu": {
1243
1213
  "Title": "Az egyenleged",
@@ -1248,7 +1218,6 @@ const TRANSLATIONS = {
1248
1218
  "Casino": "Kaszinó",
1249
1219
  "Sports": "Sport",
1250
1220
  "DepositButton": "Befizetés",
1251
- "Loading": "Betöltés ..."
1252
1221
  },
1253
1222
  "pl": {
1254
1223
  "Title": "Twoje saldo",
@@ -1259,7 +1228,6 @@ const TRANSLATIONS = {
1259
1228
  "Casino": "Kasyno",
1260
1229
  "Sports": "Sport",
1261
1230
  "DepositButton": "Wpłać",
1262
- "Loading": "Ładowanie ..."
1263
1231
  },
1264
1232
  "pt": {
1265
1233
  "Title": "Seu Saldo",
@@ -1270,7 +1238,6 @@ const TRANSLATIONS = {
1270
1238
  "Casino": "Cassino",
1271
1239
  "Sports": "Esportes",
1272
1240
  "DepositButton": "Depositar",
1273
- "Loading": "Carregando ..."
1274
1241
  },
1275
1242
  "sl": {
1276
1243
  "Title": "Vaš saldo",
@@ -1281,7 +1248,6 @@ const TRANSLATIONS = {
1281
1248
  "Casino": "Kasino",
1282
1249
  "Sports": "Šport",
1283
1250
  "DepositButton": "Depozit",
1284
- "Loading": "Nalaganje ..."
1285
1251
  },
1286
1252
  "sr": {
1287
1253
  "Title": "Vaš saldo",
@@ -1292,7 +1258,6 @@ const TRANSLATIONS = {
1292
1258
  "Casino": "Kasino",
1293
1259
  "Sports": "Sport",
1294
1260
  "DepositButton": "Depozit",
1295
- "Loading": "Učitavanje ..."
1296
1261
  },
1297
1262
  "pt-br": {
1298
1263
  "Title": "Seu Saldo",
@@ -1303,7 +1268,6 @@ const TRANSLATIONS = {
1303
1268
  "Casino": "Cassino",
1304
1269
  "Sports": "Esportes",
1305
1270
  "DepositButton": "Depositar",
1306
- "Loading": "Carregando ..."
1307
1271
  },
1308
1272
  "es-mx": {
1309
1273
  "Title": "Tu saldo",
@@ -1314,7 +1278,6 @@ const TRANSLATIONS = {
1314
1278
  "Casino": "Casino",
1315
1279
  "Sports": "Deportes",
1316
1280
  "DepositButton": "Depósito",
1317
- "Loading": "Cargando ..."
1318
1281
  },
1319
1282
  "en-us": {
1320
1283
  "Title": "Your Balance",
@@ -1325,7 +1288,6 @@ const TRANSLATIONS = {
1325
1288
  "Casino": "Casino",
1326
1289
  "Sports": "Sports",
1327
1290
  "DepositButton": "Deposit",
1328
- "Loading": "Loading ..."
1329
1291
  }
1330
1292
  };
1331
1293
  const translate = (key, customLang, values) => {
@@ -1347,21 +1309,83 @@ const PamAccountBalanceModal = class {
1347
1309
  constructor(hostRef) {
1348
1310
  index.registerInstance(this, hostRef);
1349
1311
  this.totalCalculationModes = ['totalCashAmount', 'totalRealAmount'];
1350
- this.setLocaleIdentifier = () => {
1351
- if (this.customLocaleIdentifier.includes(this.language)) {
1352
- return this.customLocaleIdentifier;
1353
- }
1354
- };
1312
+ /**
1313
+ * Returns the formatted balance
1314
+ * @param balance -> the balance value to be formatted
1315
+ */
1355
1316
  this.formatBalance = (balance) => {
1356
- if (this.customLocaleIdentifier) {
1357
- return new Intl.NumberFormat(this.setLocaleIdentifier(), { useGrouping: true }).format(balance);
1317
+ if (this.customDisplayFormat) {
1318
+ return this.formatFromCustom(balance);
1358
1319
  }
1359
- if (this.currencySeparator && this.currencyDecimal) {
1360
- // @ts-ignore
1361
- return currency_min(balance, { separator: this.currencySeparator, decimal: this.currencyDecimal, symbol: '', precision: parseInt(this.currencyPrecision || '2', 10) }).format();
1320
+ const locales = this.currencyLocale || this.language;
1321
+ const formatOptions = {
1322
+ style: 'currency',
1323
+ currency: this.currency,
1324
+ useGrouping: true,
1325
+ currencyDisplay: this.currencyDisplay || 'code',
1326
+ maximumFractionDigits: this.maximumFractionDigits === '' || isNaN(Number(this.maximumFractionDigits)) ? 2 : Number(this.maximumFractionDigits),
1327
+ minimumFractionDigits: this.minimumFractionDigits === '' || isNaN(Number(this.minimumFractionDigits)) ? 0 : Number(this.minimumFractionDigits),
1328
+ };
1329
+ return new Intl.NumberFormat(locales, formatOptions).format(balance);
1330
+ };
1331
+ /**
1332
+ * Parses customdisplayformat and returns the formatted balance accordingly.
1333
+ * Example:
1334
+ * if customdisplayformat = '{amount|,.1} {currency}', currency = 'EUR'
1335
+ * then formatFromCustom(123123.199) = '123,123.1 EUR'
1336
+ * @param balance
1337
+ */
1338
+ this.formatFromCustom = (balance) => {
1339
+ const tokens = [];
1340
+ let acc = '';
1341
+ for (const char of this.customDisplayFormat) {
1342
+ switch (char) {
1343
+ default:
1344
+ acc += char;
1345
+ break;
1346
+ case '{':
1347
+ acc && tokens.push(acc);
1348
+ acc = '';
1349
+ break;
1350
+ case '}':
1351
+ const [variable, args] = acc.split('|');
1352
+ acc = '';
1353
+ if (variable.toLowerCase() === 'currency') {
1354
+ acc = this.currency;
1355
+ }
1356
+ else if (variable.toLowerCase() === 'amount') {
1357
+ // defaults
1358
+ let sepThousands = ',';
1359
+ let sepDecimal = '.';
1360
+ let decimals = 2;
1361
+ // override defaults if args provided (' ' is considered empty so default is used)
1362
+ if (args) {
1363
+ args[0] !== ' ' && (sepThousands = args[0]);
1364
+ args[1] !== ' ' && (sepDecimal = args[1]);
1365
+ args[2] !== ' ' && !isNaN(Number(args[2])) && (decimals = Number(args[2]));
1366
+ }
1367
+ // separate int and fractional part, also round down to desired precision
1368
+ let [integerPart, fractionalPart] = String(Math.floor(balance * 10 ** decimals) / 10 ** decimals).split('.');
1369
+ // format int part by adding thousands separators
1370
+ acc += integerPart[0];
1371
+ for (let i = 1; i < integerPart.length; ++i) {
1372
+ if ((integerPart.length - i) % 3 === 0) {
1373
+ acc += (sepThousands + integerPart[i]);
1374
+ }
1375
+ else {
1376
+ acc += integerPart[i];
1377
+ }
1378
+ }
1379
+ // add fractional part if it exists
1380
+ fractionalPart && (acc += (sepDecimal + fractionalPart));
1381
+ }
1382
+ acc && tokens.push(acc);
1383
+ acc = '';
1384
+ break;
1385
+ }
1362
1386
  }
1363
- // @ts-ignore
1364
- return currency_min(balance, { separator: '.', decimal: ',', symbol: '', precision: parseInt(this.currencyPrecision || '2', 10) }).format();
1387
+ tokens.push(acc);
1388
+ return tokens.join('');
1365
1389
  };
1366
1390
  this.getBalances = () => {
1367
1391
  this.isLoading = true;
@@ -1528,20 +1552,21 @@ const PamAccountBalanceModal = class {
1528
1552
  break;
1529
1553
  }
1530
1554
  };
1531
- this.userId = undefined;
1532
- this.session = undefined;
1533
- this.endpoint = undefined;
1534
- this.customLocaleIdentifier = undefined;
1535
- this.displayBalanceOption = undefined;
1536
- this.totalCalculationMode = undefined;
1537
- this.currencySeparator = undefined;
1538
- this.currencyDecimal = undefined;
1539
- this.currencyPrecision = undefined;
1540
- this.mbSource = undefined;
1541
- this.clientStyling = undefined;
1542
- this.clientStylingUrl = undefined;
1543
- this.translationUrl = undefined;
1555
+ this.userId = '';
1556
+ this.session = '';
1557
+ this.endpoint = '';
1558
+ this.mbSource = '';
1559
+ this.clientStyling = '';
1560
+ this.clientStylingUrl = '';
1561
+ this.translationUrl = '';
1544
1562
  this.language = 'en';
1563
+ this.displayBalanceOption = 'All';
1564
+ this.totalCalculationMode = 'totalCashAmount';
1565
+ this.currencyLocale = 'en';
1566
+ this.currencyDisplay = 'code';
1567
+ this.maximumFractionDigits = '2';
1568
+ this.minimumFractionDigits = '0';
1569
+ this.customDisplayFormat = '';
1545
1570
  this.isLoading = true;
1546
1571
  this.isModalDisplayed = false;
1547
1572
  this.isSplitWallet = false;
@@ -1682,10 +1707,10 @@ const PamAccountBalanceModal = class {
1682
1707
  }
1683
1708
  }
1684
1709
  render() {
1685
- const balanceButton = (index.h("button", { class: "BalanceValue", onClick: () => this.toggleModal('open') }, index.h("p", null, this.balances['Total'].length > 0 ? this.formatBalance(this.balances['Total'][0].amount) : '0', " ", this.currency), index.h("span", { class: " {isModalDisplayed ? 'TriangleActive' : 'TriangleInactive'}" }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" }, index.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" })))));
1710
+ const balanceButton = (index.h("button", { class: "BalanceValue", onClick: () => this.toggleModal('open') }, index.h("p", null, this.balances['Total'].length > 0 ? this.formatBalance(this.balances['Total'][0].amount) : '0'), index.h("span", { class: " {isModalDisplayed ? 'TriangleActive' : 'TriangleInactive'}" }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" }, index.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" })))));
1686
1711
  const balanceModal = (index.h("div", { class: this.isModalDisplayed ? 'BalanceModalWrapper Open' : 'BalanceModalWrapper' }, index.h("button", { class: "BalanceModalClose", onClick: () => this.toggleModal('close') }), index.h("div", { class: "BalanceModal" }, index.h("div", { class: "ModalContent" }, index.h("div", { class: "BalanceModalHeader" }, index.h("p", { class: "BalanceModalTitle" }, translate('Title', this.language))), index.h("div", { class: "BalanceModalBody" }, Object.keys(this.balances).map((key) => {
1687
1712
  return (index.h("div", { class: "BalanceModalRowBoth" }, this.balances[key].map((balance) => {
1688
- return (index.h("div", { class: "BalanceModalRowLine" }, index.h("p", { class: "BalanceModalText" }, translate(key, this.language), " ", balance.productType ? translate(balance.productType, this.language) : ''), index.h("p", { class: "BalanceModalValue" }, index.h("span", { class: "BalanceModalAmount" }, balance.amount ? this.formatBalance(balance.amount) : '0'), index.h("span", { class: "BalanceModalCurrency" }, " " + this.currency))));
1713
+ return (index.h("div", { class: "BalanceModalRowLine" }, index.h("p", { class: "BalanceModalText" }, translate(key, this.language), " ", balance.productType ? translate(balance.productType, this.language) : ''), index.h("p", { class: "BalanceModalValue" }, index.h("span", { class: "BalanceModalAmount" }, balance.amount ? this.formatBalance(balance.amount) : '0'))));
1689
1714
  })));
1690
1715
  })), index.h("div", { class: "BalanceModalFooter" }, index.h("button", { class: "BalanceModalAction", onClick: () => this.balanceModalOpenDeposit() }, translate('DepositButton', this.language)))))));
1691
1716
  const skeleton = (index.h("div", { class: "LoadingSkeleton" }, index.h("ui-skeleton", { structure: "title", height: "20px", width: "auto" })));
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["pam-account-balance-modal_2.cjs",[[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);
22
+ return index.bootstrapLazy([["pam-account-balance-modal_2.cjs",[[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);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const pamAccountBalanceModal = require('./pam-account-balance-modal-81ade12d.js');
5
+ const pamAccountBalanceModal = require('./pam-account-balance-modal-8f1e0d8b.js');
6
6
  const index = require('./index-f01eba32.js');
7
7
 
8
8
  const uiSkeletonCss = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";