@everymatrix/player-elevate-points-history 1.55.0 → 1.56.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 (35) hide show
  1. package/dist/cjs/bonus-pagination-limits_6.cjs.entry.js +282 -167
  2. package/dist/cjs/{index-d10609c2.js → index-c3f0d8ea.js} +247 -139
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/{player-elevate-card-items-198085c9.js → player-elevate-card-items-8b7d73d2.js} +1 -1
  5. package/dist/cjs/player-elevate-card.cjs.entry.js +21 -9
  6. package/dist/cjs/player-elevate-loyaltycard.cjs.entry.js +22 -10
  7. package/dist/cjs/player-elevate-points-history.cjs.js +3 -3
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/player-elevate-points-history/player-elevate-points-history.js +43 -5
  10. package/dist/esm/bonus-pagination-limits_6.entry.js +282 -167
  11. package/dist/esm/{index-7f3411b7.js → index-8008f845.js} +247 -139
  12. package/dist/esm/loader.js +3 -3
  13. package/dist/esm/{player-elevate-card-items-3780b49a.js → player-elevate-card-items-81ace8b1.js} +1 -1
  14. package/dist/esm/player-elevate-card.entry.js +21 -9
  15. package/dist/esm/player-elevate-loyaltycard.entry.js +22 -10
  16. package/dist/esm/player-elevate-points-history.js +4 -4
  17. package/dist/player-elevate-points-history/{p-a203a531.js → p-1c49c46d.js} +1 -1
  18. package/dist/player-elevate-points-history/p-3d707cb1.entry.js +1 -0
  19. package/dist/player-elevate-points-history/p-530d5612.js +2 -0
  20. package/dist/player-elevate-points-history/p-78e6bcdb.entry.js +1 -0
  21. package/dist/player-elevate-points-history/p-d7b1a6d5.entry.js +1 -0
  22. package/dist/player-elevate-points-history/player-elevate-points-history.esm.js +1 -1
  23. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.d.ts +2 -0
  24. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.dev.d.ts +2 -0
  25. package/package.json +1 -1
  26. package/dist/player-elevate-points-history/p-2d5f1bbe.entry.js +0 -1
  27. package/dist/player-elevate-points-history/p-702726b0.js +0 -2
  28. package/dist/player-elevate-points-history/p-75618658.entry.js +0 -1
  29. package/dist/player-elevate-points-history/p-b5dd7d1b.entry.js +0 -1
  30. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.d.ts +0 -2
  31. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.dev.d.ts +0 -2
  32. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/tools/plugins/index.d.ts +0 -0
  33. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  34. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  35. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-d10609c2.js');
6
- const playerElevateCardItems = require('./player-elevate-card-items-198085c9.js');
5
+ const index = require('./index-c3f0d8ea.js');
6
+ const playerElevateCardItems = require('./player-elevate-card-items-8b7d73d2.js');
7
7
 
8
8
  const DEFAULT_LANGUAGE$1 = 'en';
9
9
  const SUPPORTED_LANGUAGES$1 = ['pt-br', 'en', 'es-mx', 'hu', 'hr'];
@@ -36,9 +36,17 @@ const BonusPaginationLimits = class {
36
36
  constructor(hostRef) {
37
37
  index.registerInstance(this, hostRef);
38
38
  this.pageLimitChanged = index.createEvent(this, "pageLimitChanged", 7);
39
+ /**
40
+ * Language of the widget
41
+ */
39
42
  this.language = 'en';
43
+ /**
44
+ * Translation via url
45
+ */
40
46
  this.translationUrl = '';
41
- this.pageLimitOptions = undefined;
47
+ /**
48
+ * Default limit for per page, default: 10
49
+ */
42
50
  this.limit = 10;
43
51
  this.pageLimits = [10, 25, 50];
44
52
  }
@@ -137,19 +145,49 @@ const BonusPaginationNav = class {
137
145
  constructor(hostRef) {
138
146
  index.registerInstance(this, hostRef);
139
147
  this.reloadPageEmitter = index.createEvent(this, "reloadPageByType", 7);
148
+ /**
149
+ * The received length of dataset
150
+ */
140
151
  this.total = 1;
152
+ /**
153
+ * The received limit for the number of pages
154
+ */
141
155
  this.limit = 10;
156
+ /**
157
+ * The offset of dataset
158
+ */
142
159
  this.offset = 0;
160
+ /**
161
+ * The table id, use to identify which table listen the page change message
162
+ * when there is more than 1 table on same page
163
+ */
143
164
  this.tableId = 'default';
165
+ /**
166
+ * Language
167
+ */
144
168
  this.language = 'en';
169
+ /**
170
+ * Translation via url
171
+ */
145
172
  this.translationUrl = '';
173
+ /**
174
+ * Customize pagination: Activate pagination arrows
175
+ */
146
176
  this.arrowsActive = true;
177
+ /**
178
+ * Customize pagination: Activate pagination secondary arrows
179
+ */
147
180
  this.secondaryArrowsActive = true;
181
+ /**
182
+ * Customize pagination: Activate pagination numbered navigation
183
+ */
148
184
  this.displayPageNumbers = true;
149
- this.displayRangeOfTotal = undefined;
185
+ /**
186
+ * The Nav Items count for the pagination, default: 5
187
+ * the value should be Odd, 5, 7
188
+ */
150
189
  this.navItemAccount = 5;
151
190
  this.endPageIndex = 0;
152
- this.pagesArray = undefined;
153
191
  this.currentPage = 1;
154
192
  this.showAsEllipsisMid = !this.arrowsActive;
155
193
  }
@@ -302,6 +340,18 @@ const GeneralStylingWrapperStyle0 = generalStylingWrapperCss;
302
340
  const GeneralStylingWrapper = class {
303
341
  constructor(hostRef) {
304
342
  index.registerInstance(this, hostRef);
343
+ /**
344
+ * Client custom styling via inline styles
345
+ */
346
+ this.clientStyling = '';
347
+ /**
348
+ * Client custom styling via url
349
+ */
350
+ this.clientStylingUrl = '';
351
+ /**
352
+ * Translation via url
353
+ */
354
+ this.translationUrl = '';
305
355
  this.stylingAppends = false;
306
356
  this.setClientStyling = () => {
307
357
  let sheet = document.createElement('style');
@@ -323,10 +373,6 @@ const GeneralStylingWrapper = class {
323
373
  console.log('error ', err);
324
374
  });
325
375
  };
326
- this.clientStyling = '';
327
- this.clientStylingUrl = '';
328
- this.translationUrl = '';
329
- this.targetTranslations = undefined;
330
376
  }
331
377
  componentDidRender() {
332
378
  // start custom styling area
@@ -644,9 +690,6 @@ const PlayerElevateCardData = class {
644
690
  constructor(hostRef) {
645
691
  index.registerInstance(this, hostRef);
646
692
  this.playerElevateLeveLoaded = index.createEvent(this, "playerElevateLeveLoaded", 7);
647
- this.params = undefined;
648
- this.playerElevateLevel = undefined;
649
- this.pointExpireString = undefined;
650
693
  }
651
694
  handleWindowResizs() {
652
695
  this.initLevelProgressbar();
@@ -814,23 +857,40 @@ const PlayerElevatePointcardStyle0 = playerElevatePointcardCss;
814
857
  const PlayerElevatePointcard = class {
815
858
  constructor(hostRef) {
816
859
  index.registerInstance(this, hostRef);
817
- this.isPointDetailCard = this.buttonType === 'earningRule';
818
- this.endpoint = undefined;
860
+ /**
861
+ * The style that widget shows,available value: Dark, Light
862
+ * Default: Dark
863
+ */
819
864
  this.theme = 'Dark';
820
- this.session = undefined;
821
- this.playerAvatarUrl = undefined;
865
+ /**
866
+ * Widget Language to show
867
+ */
822
868
  this.language = 'en';
823
- this.playerName = undefined;
824
- this.cardTitle = undefined;
869
+ /**
870
+ * Check if the card used in points details widget, default: 'earningRule'
871
+ * value: 'details'/'earningRule'
872
+ * It effected the button in card
873
+ * 'earningRule': button text, 'earning rules', post 'BEEPointRulesClicked' when clicked
874
+ * 'details': button text, 'details', post 'BEEDetailsClicked' when clicked
875
+ */
825
876
  this.buttonType = 'earningRule';
877
+ /**
878
+ * datePattern
879
+ */
826
880
  this.dateFormat = 'yyyy-MM-dd';
881
+ /**
882
+ * Client custom styling via inline styles
883
+ */
827
884
  this.clientStyling = '';
885
+ /**
886
+ * Client custom styling via url
887
+ */
828
888
  this.clientStylingUrl = '';
889
+ /**
890
+ * Translation via url
891
+ */
829
892
  this.translationUrl = '';
830
- this.pointExpireString = undefined;
831
- this.playerElevateLevel = undefined;
832
- this.elevateWalletTotal = undefined;
833
- this.elevateSPTotal = undefined;
893
+ this.isPointDetailCard = this.buttonType === 'earningRule';
834
894
  }
835
895
  onSessionOrEndpointChange() {
836
896
  this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
@@ -1063,35 +1123,35 @@ const renderTabs = (locale, type, onChangeTab) => index.h("div", { class: "Tabs
1063
1123
 
1064
1124
  function a() {
1065
1125
  }
1066
- function N(t) {
1126
+ function M(t) {
1067
1127
  return t();
1068
1128
  }
1069
- function A() {
1129
+ function O() {
1070
1130
  return /* @__PURE__ */ Object.create(null);
1071
1131
  }
1072
1132
  function y(t) {
1073
- t.forEach(N);
1133
+ t.forEach(M);
1074
1134
  }
1075
- function P(t) {
1135
+ function N(t) {
1076
1136
  return typeof t == "function";
1077
1137
  }
1078
- function B(t, e) {
1138
+ function R(t, e) {
1079
1139
  return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
1080
1140
  }
1081
- function R(t) {
1141
+ function T(t) {
1082
1142
  return Object.keys(t).length === 0;
1083
1143
  }
1084
1144
  function H(t, e) {
1085
1145
  t.appendChild(e);
1086
1146
  }
1087
- function I(t, e, n) {
1088
- const s = U(t);
1147
+ function U(t, e, n) {
1148
+ const s = I(t);
1089
1149
  if (!s.getElementById(e)) {
1090
1150
  const i = v("style");
1091
- i.id = e, i.textContent = n, D(s, i);
1151
+ i.id = e, i.textContent = n, z(s, i);
1092
1152
  }
1093
1153
  }
1094
- function U(t) {
1154
+ function I(t) {
1095
1155
  if (!t) return document;
1096
1156
  const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
1097
1157
  return e && /** @type {ShadowRoot} */
@@ -1100,14 +1160,14 @@ function U(t) {
1100
1160
  e
1101
1161
  ) : t.ownerDocument;
1102
1162
  }
1103
- function D(t, e) {
1163
+ function z(t, e) {
1104
1164
  return H(
1105
1165
  /** @type {Document} */
1106
1166
  t.head || t,
1107
1167
  e
1108
1168
  ), e.sheet;
1109
1169
  }
1110
- function M(t, e, n) {
1170
+ function B(t, e, n) {
1111
1171
  t.insertBefore(e, n || null);
1112
1172
  }
1113
1173
  function E(t) {
@@ -1116,13 +1176,13 @@ function E(t) {
1116
1176
  function v(t) {
1117
1177
  return document.createElement(t);
1118
1178
  }
1119
- function G(t, e, n) {
1179
+ function D(t, e, n) {
1120
1180
  n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
1121
1181
  }
1122
- function J(t) {
1182
+ function F(t) {
1123
1183
  return Array.from(t.childNodes);
1124
1184
  }
1125
- function V(t) {
1185
+ function G(t) {
1126
1186
  const e = {};
1127
1187
  return t.childNodes.forEach(
1128
1188
  /** @param {Element} node */
@@ -1131,116 +1191,123 @@ function V(t) {
1131
1191
  }
1132
1192
  ), e;
1133
1193
  }
1134
- let C;
1135
- function p(t) {
1136
- C = t;
1194
+ let p;
1195
+ function _(t) {
1196
+ p = t;
1197
+ }
1198
+ function J() {
1199
+ if (!p) throw new Error("Function called outside component initialization");
1200
+ return p;
1137
1201
  }
1138
- const f = [], x = [];
1202
+ function V(t) {
1203
+ J().$$.on_mount.push(t);
1204
+ }
1205
+ const $ = [], w = [];
1139
1206
  let h = [];
1140
- const S = [], z = /* @__PURE__ */ Promise.resolve();
1141
- let w = !1;
1142
- function F() {
1143
- w || (w = !0, z.then(m));
1207
+ const A = [], q = /* @__PURE__ */ Promise.resolve();
1208
+ let x = !1;
1209
+ function K() {
1210
+ x || (x = !0, q.then(m));
1144
1211
  }
1145
1212
  function k(t) {
1146
1213
  h.push(t);
1147
1214
  }
1148
1215
  const b = /* @__PURE__ */ new Set();
1149
- let $ = 0;
1216
+ let f = 0;
1150
1217
  function m() {
1151
- if ($ !== 0)
1218
+ if (f !== 0)
1152
1219
  return;
1153
- const t = C;
1220
+ const t = p;
1154
1221
  do {
1155
1222
  try {
1156
- for (; $ < f.length; ) {
1157
- const e = f[$];
1158
- $++, p(e), q(e.$$);
1223
+ for (; f < $.length; ) {
1224
+ const e = $[f];
1225
+ f++, _(e), Q(e.$$);
1159
1226
  }
1160
1227
  } catch (e) {
1161
- throw f.length = 0, $ = 0, e;
1228
+ throw $.length = 0, f = 0, e;
1162
1229
  }
1163
- for (p(null), f.length = 0, $ = 0; x.length; ) x.pop()();
1230
+ for (_(null), $.length = 0, f = 0; w.length; ) w.pop()();
1164
1231
  for (let e = 0; e < h.length; e += 1) {
1165
1232
  const n = h[e];
1166
1233
  b.has(n) || (b.add(n), n());
1167
1234
  }
1168
1235
  h.length = 0;
1169
- } while (f.length);
1170
- for (; S.length; )
1171
- S.pop()();
1172
- w = !1, b.clear(), p(t);
1236
+ } while ($.length);
1237
+ for (; A.length; )
1238
+ A.pop()();
1239
+ x = !1, b.clear(), _(t);
1173
1240
  }
1174
- function q(t) {
1241
+ function Q(t) {
1175
1242
  if (t.fragment !== null) {
1176
1243
  t.update(), y(t.before_update);
1177
1244
  const e = t.dirty;
1178
1245
  t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(k);
1179
1246
  }
1180
1247
  }
1181
- function K(t) {
1248
+ function W(t) {
1182
1249
  const e = [], n = [];
1183
1250
  h.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), h = e;
1184
1251
  }
1185
- const Q = /* @__PURE__ */ new Set();
1186
- function W(t, e) {
1187
- t && t.i && (Q.delete(t), t.i(e));
1252
+ const X = /* @__PURE__ */ new Set();
1253
+ function Y(t, e) {
1254
+ t && t.i && (X.delete(t), t.i(e));
1188
1255
  }
1189
- function X(t, e, n) {
1256
+ function Z(t, e, n) {
1190
1257
  const { fragment: s, after_update: i } = t.$$;
1191
1258
  s && s.m(e, n), k(() => {
1192
- const l = t.$$.on_mount.map(N).filter(P);
1193
- t.$$.on_destroy ? t.$$.on_destroy.push(...l) : y(l), t.$$.on_mount = [];
1259
+ const r = t.$$.on_mount.map(M).filter(N);
1260
+ t.$$.on_destroy ? t.$$.on_destroy.push(...r) : y(r), t.$$.on_mount = [];
1194
1261
  }), i.forEach(k);
1195
1262
  }
1196
- function Y(t, e) {
1263
+ function tt(t, e) {
1197
1264
  const n = t.$$;
1198
- n.fragment !== null && (K(n.after_update), y(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
1265
+ n.fragment !== null && (W(n.after_update), y(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
1199
1266
  }
1200
- function Z(t, e) {
1201
- t.$$.dirty[0] === -1 && (f.push(t), F(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
1267
+ function et(t, e) {
1268
+ t.$$.dirty[0] === -1 && ($.push(t), K(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
1202
1269
  }
1203
- function tt(t, e, n, s, i, l, u = null, c = [-1]) {
1204
- const o = C;
1205
- p(t);
1206
- const r = t.$$ = {
1270
+ function nt(t, e, n, s, i, r, o = null, l = [-1]) {
1271
+ const c = p;
1272
+ _(t);
1273
+ const u = t.$$ = {
1207
1274
  fragment: null,
1208
1275
  ctx: [],
1209
1276
  // state
1210
- props: l,
1277
+ props: r,
1211
1278
  update: a,
1212
1279
  not_equal: i,
1213
- bound: A(),
1280
+ bound: O(),
1214
1281
  // lifecycle
1215
1282
  on_mount: [],
1216
1283
  on_destroy: [],
1217
1284
  on_disconnect: [],
1218
1285
  before_update: [],
1219
1286
  after_update: [],
1220
- context: new Map(e.context || (o ? o.$$.context : [])),
1287
+ context: new Map(e.context || (c ? c.$$.context : [])),
1221
1288
  // everything else
1222
- callbacks: A(),
1223
- dirty: c,
1289
+ callbacks: O(),
1290
+ dirty: l,
1224
1291
  skip_bound: !1,
1225
- root: e.target || o.$$.root
1292
+ root: e.target || c.$$.root
1226
1293
  };
1227
- u && u(r.root);
1228
- let _ = !1;
1229
- if (r.ctx = n ? n(t, e.props || {}, (d, L, ...j) => {
1230
- const O = j.length ? j[0] : L;
1231
- return r.ctx && i(r.ctx[d], r.ctx[d] = O) && (!r.skip_bound && r.bound[d] && r.bound[d](O), _ && Z(t, d)), L;
1232
- }) : [], r.update(), _ = !0, y(r.before_update), r.fragment = s ? s(r.ctx) : !1, e.target) {
1294
+ o && o(u.root);
1295
+ let L = !1;
1296
+ if (u.ctx = n ? n(t, e.props || {}, (d, C, ...S) => {
1297
+ const j = S.length ? S[0] : C;
1298
+ return u.ctx && i(u.ctx[d], u.ctx[d] = j) && (!u.skip_bound && u.bound[d] && u.bound[d](j), L && et(t, d)), C;
1299
+ }) : [], u.update(), L = !0, y(u.before_update), u.fragment = s ? s(u.ctx) : !1, e.target) {
1233
1300
  if (e.hydrate) {
1234
- const d = J(e.target);
1235
- r.fragment && r.fragment.l(d), d.forEach(E);
1301
+ const d = F(e.target);
1302
+ u.fragment && u.fragment.l(d), d.forEach(E);
1236
1303
  } else
1237
- r.fragment && r.fragment.c();
1238
- e.intro && W(t.$$.fragment), X(t, e.target, e.anchor), m();
1304
+ u.fragment && u.fragment.c();
1305
+ e.intro && Y(t.$$.fragment), Z(t, e.target, e.anchor), m();
1239
1306
  }
1240
- p(o);
1307
+ _(c);
1241
1308
  }
1242
- let T;
1243
- typeof HTMLElement == "function" && (T = class extends HTMLElement {
1309
+ let P;
1310
+ typeof HTMLElement == "function" && (P = class extends HTMLElement {
1244
1311
  /** The Svelte component constructor */
1245
1312
  $$ctor;
1246
1313
  /** Slots */
@@ -1279,32 +1346,32 @@ typeof HTMLElement == "function" && (T = class extends HTMLElement {
1279
1346
  if (this.$$cn = !0, !this.$$c) {
1280
1347
  let t = function(i) {
1281
1348
  return () => {
1282
- let l;
1349
+ let r;
1283
1350
  return {
1284
1351
  c: function() {
1285
- l = v("slot"), i !== "default" && G(l, "name", i);
1352
+ r = v("slot"), i !== "default" && D(r, "name", i);
1286
1353
  },
1287
1354
  /**
1288
1355
  * @param {HTMLElement} target
1289
1356
  * @param {HTMLElement} [anchor]
1290
1357
  */
1291
- m: function(o, r) {
1292
- M(o, l, r);
1358
+ m: function(c, u) {
1359
+ B(c, r, u);
1293
1360
  },
1294
- d: function(o) {
1295
- o && E(l);
1361
+ d: function(c) {
1362
+ c && E(r);
1296
1363
  }
1297
1364
  };
1298
1365
  };
1299
1366
  };
1300
1367
  if (await Promise.resolve(), !this.$$cn || this.$$c)
1301
1368
  return;
1302
- const e = {}, n = V(this);
1369
+ const e = {}, n = G(this);
1303
1370
  for (const i of this.$$s)
1304
1371
  i in n && (e[i] = [t(i)]);
1305
1372
  for (const i of this.attributes) {
1306
- const l = this.$$g_p(i.name);
1307
- l in this.$$d || (this.$$d[l] = g(l, i.value, this.$$p_d, "toProp"));
1373
+ const r = this.$$g_p(i.name);
1374
+ r in this.$$d || (this.$$d[r] = g(r, i.value, this.$$p_d, "toProp"));
1308
1375
  }
1309
1376
  for (const i in this.$$p_d)
1310
1377
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -1322,21 +1389,21 @@ typeof HTMLElement == "function" && (T = class extends HTMLElement {
1322
1389
  this.$$r = !0;
1323
1390
  for (const i in this.$$p_d)
1324
1391
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
1325
- const l = g(
1392
+ const r = g(
1326
1393
  i,
1327
1394
  this.$$d[i],
1328
1395
  this.$$p_d,
1329
1396
  "toAttribute"
1330
1397
  );
1331
- l == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, l);
1398
+ r == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, r);
1332
1399
  }
1333
1400
  this.$$r = !1;
1334
1401
  };
1335
1402
  this.$$c.$$.after_update.push(s), s();
1336
1403
  for (const i in this.$$l)
1337
- for (const l of this.$$l[i]) {
1338
- const u = this.$$c.$on(i, l);
1339
- this.$$l_u.set(l, u);
1404
+ for (const r of this.$$l[i]) {
1405
+ const o = this.$$c.$on(i, r);
1406
+ this.$$l_u.set(r, o);
1340
1407
  }
1341
1408
  this.$$l = {};
1342
1409
  }
@@ -1386,36 +1453,36 @@ function g(t, e, n, s) {
1386
1453
  return e;
1387
1454
  }
1388
1455
  }
1389
- function et(t, e, n, s, i, l) {
1390
- let u = class extends T {
1456
+ function it(t, e, n, s, i, r) {
1457
+ let o = class extends P {
1391
1458
  constructor() {
1392
1459
  super(t, n, i), this.$$p_d = e;
1393
1460
  }
1394
1461
  static get observedAttributes() {
1395
1462
  return Object.keys(e).map(
1396
- (c) => (e[c].attribute || c).toLowerCase()
1463
+ (l) => (e[l].attribute || l).toLowerCase()
1397
1464
  );
1398
1465
  }
1399
1466
  };
1400
- return Object.keys(e).forEach((c) => {
1401
- Object.defineProperty(u.prototype, c, {
1467
+ return Object.keys(e).forEach((l) => {
1468
+ Object.defineProperty(o.prototype, l, {
1402
1469
  get() {
1403
- return this.$$c && c in this.$$c ? this.$$c[c] : this.$$d[c];
1470
+ return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
1404
1471
  },
1405
- set(o) {
1406
- o = g(c, o, e), this.$$d[c] = o, this.$$c?.$set({ [c]: o });
1472
+ set(c) {
1473
+ c = g(l, c, e), this.$$d[l] = c, this.$$c?.$set({ [l]: c });
1407
1474
  }
1408
1475
  });
1409
- }), s.forEach((c) => {
1410
- Object.defineProperty(u.prototype, c, {
1476
+ }), s.forEach((l) => {
1477
+ Object.defineProperty(o.prototype, l, {
1411
1478
  get() {
1412
- return this.$$c?.[c];
1479
+ return this.$$c?.[l];
1413
1480
  }
1414
1481
  });
1415
1482
  }), t.element = /** @type {any} */
1416
- u, u;
1483
+ o, o;
1417
1484
  }
1418
- class nt {
1485
+ class st {
1419
1486
  /**
1420
1487
  * ### PRIVATE API
1421
1488
  *
@@ -1434,7 +1501,7 @@ class nt {
1434
1501
  $$set = void 0;
1435
1502
  /** @returns {void} */
1436
1503
  $destroy() {
1437
- Y(this, 1), this.$destroy = a;
1504
+ tt(this, 1), this.$destroy = a;
1438
1505
  }
1439
1506
  /**
1440
1507
  * @template {Extract<keyof Events, string>} K
@@ -1443,7 +1510,7 @@ class nt {
1443
1510
  * @returns {() => void}
1444
1511
  */
1445
1512
  $on(e, n) {
1446
- if (!P(n))
1513
+ if (!N(n))
1447
1514
  return a;
1448
1515
  const s = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
1449
1516
  return s.push(n), () => {
@@ -1456,67 +1523,93 @@ class nt {
1456
1523
  * @returns {void}
1457
1524
  */
1458
1525
  $set(e) {
1459
- this.$$set && !R(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
1526
+ this.$$set && !T(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
1527
+ }
1528
+ }
1529
+ const rt = "4";
1530
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(rt);
1531
+ function ct(t, e) {
1532
+ if (t) {
1533
+ const n = document.createElement("style");
1534
+ n.innerHTML = e, t.appendChild(n);
1535
+ }
1536
+ }
1537
+ function ot(t, e) {
1538
+ const n = new URL(e);
1539
+ fetch(n.href).then((s) => s.text()).then((s) => {
1540
+ const i = document.createElement("style");
1541
+ i.innerHTML = s, t && t.appendChild(i);
1542
+ }).catch((s) => {
1543
+ console.error("There was an error while trying to load client styling from URL", s);
1544
+ });
1545
+ }
1546
+ function lt(t, e, n) {
1547
+ if (window.emMessageBus) {
1548
+ const s = document.createElement("style");
1549
+ window.emMessageBus.subscribe(e, (i) => {
1550
+ s.innerHTML = i, t && t.appendChild(s);
1551
+ });
1460
1552
  }
1461
1553
  }
1462
- const it = "4";
1463
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(it);
1464
- function st(t) {
1465
- I(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
1554
+ function ut(t) {
1555
+ U(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
1466
1556
  }
1467
- function rt(t) {
1557
+ function dt(t) {
1468
1558
  let e;
1469
1559
  return {
1470
1560
  c() {
1471
- e = v("div"), e.innerHTML = '<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
1561
+ e = v("div"), e.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
1472
1562
  },
1473
1563
  m(n, s) {
1474
- M(n, e, s), t[3](e);
1564
+ B(n, e, s), t[4](e);
1475
1565
  },
1476
1566
  p: a,
1477
1567
  i: a,
1478
1568
  o: a,
1479
1569
  d(n) {
1480
- n && E(e), t[3](null);
1570
+ n && E(e), t[4](null);
1481
1571
  }
1482
1572
  };
1483
1573
  }
1484
- function lt(t, e, n) {
1485
- let { clientstyling: s = "" } = e, { clientstylingurl: i = "" } = e, l;
1486
- const u = () => {
1487
- let r = document.createElement("style");
1488
- r.innerHTML = s, l.appendChild(r);
1489
- }, c = () => {
1490
- let r = new URL(i), _ = document.createElement("style");
1491
- fetch(r.href).then((d) => d.text()).then((d) => {
1492
- _.innerHTML = d, setTimeout(
1493
- () => {
1494
- l.appendChild(_);
1495
- },
1496
- 1
1497
- ), setTimeout(
1498
- () => {
1499
- },
1500
- 500
1501
- );
1502
- });
1503
- };
1504
- function o(r) {
1505
- x[r ? "unshift" : "push"](() => {
1506
- l = r, n(0, l);
1574
+ function ft(t, e, n) {
1575
+ let { clientstyling: s = "" } = e, { clientstylingurl: i = "" } = e, { mbsource: r } = e, o;
1576
+ V(() => () => {
1577
+ });
1578
+ function l(c) {
1579
+ w[c ? "unshift" : "push"](() => {
1580
+ o = c, n(0, o);
1507
1581
  });
1508
1582
  }
1509
- return t.$$set = (r) => {
1510
- "clientstyling" in r && n(1, s = r.clientstyling), "clientstylingurl" in r && n(2, i = r.clientstylingurl);
1583
+ return t.$$set = (c) => {
1584
+ "clientstyling" in c && n(1, s = c.clientstyling), "clientstylingurl" in c && n(2, i = c.clientstylingurl), "mbsource" in c && n(3, r = c.mbsource);
1511
1585
  }, t.$$.update = () => {
1512
1586
  t.$$.dirty & /*clientstyling, customStylingContainer*/
1513
- 3 && s && l && u(), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
1514
- 5 && i && l && c();
1515
- }, [l, s, i, o];
1587
+ 3 && s && o && ct(o, s), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
1588
+ 5 && i && o && ot(o, i), t.$$.dirty & /*mbsource, customStylingContainer*/
1589
+ 9 && r && o && lt(o, `${r}.Style`);
1590
+ }, [
1591
+ o,
1592
+ s,
1593
+ i,
1594
+ r,
1595
+ l
1596
+ ];
1516
1597
  }
1517
- class ct extends nt {
1598
+ class $t extends st {
1518
1599
  constructor(e) {
1519
- super(), tt(this, e, lt, rt, B, { clientstyling: 1, clientstylingurl: 2 }, st);
1600
+ super(), nt(
1601
+ this,
1602
+ e,
1603
+ ft,
1604
+ dt,
1605
+ R,
1606
+ {
1607
+ clientstyling: 1,
1608
+ clientstylingurl: 2,
1609
+ mbsource: 3
1610
+ },
1611
+ ut
1612
+ );
1520
1613
  }
1521
1614
  get clientstyling() {
1522
1615
  return this.$$.ctx[1];
@@ -1530,8 +1623,14 @@ class ct extends nt {
1530
1623
  set clientstylingurl(e) {
1531
1624
  this.$$set({ clientstylingurl: e }), m();
1532
1625
  }
1626
+ get mbsource() {
1627
+ return this.$$.ctx[3];
1628
+ }
1629
+ set mbsource(e) {
1630
+ this.$$set({ mbsource: e }), m();
1631
+ }
1533
1632
  }
1534
- et(ct, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
1633
+ it($t, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
1535
1634
 
1536
1635
  function i(n) {
1537
1636
  return function(...t) {
@@ -1545,7 +1644,7 @@ function i(n) {
1545
1644
  };
1546
1645
  }
1547
1646
  customElements.define = i(customElements.define);
1548
- !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", ct.element);
1647
+ !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", $t.element);
1549
1648
 
1550
1649
  const playerElevatePointsHistoryCss = ":host{display:block}main{max-width:420px}main player-elevate-pointcard{width:100%;height:220px}.PlayerElevatePointsDetaisContainer{background:#FFFFFF;padding:20px 10px 0;margin-top:-100px;position:relative;min-height:360px}.PlayerElevatePointsDetaisContainer .ReloadMsg{padding:20px}.PlayerElevatePointsDetaisContainer .ReloadMsg a.Reload{cursor:pointer}.TitleContainer{font-size:20px;font-weight:500;line-height:25px;letter-spacing:0em;text-align:left;display:flex;justify-content:space-between}.TopBarContainer{display:flex;align-items:center;justify-content:space-between}.TopBarContainer .TitleContainer{width:100%}.TopBarContainer .Title{background:#303030;padding:5px 16px;color:#FFFFFF;box-shadow:0px 4px 13px 0px rgba(0, 0, 0, 0.2509803922);border-radius:8px;width:fit-content;margin-left:7px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.PaginationContainer{display:flex;justify-content:center}.MonthStat{margin-top:25px;display:none;font-size:16px;font-weight:500;line-height:19px;letter-spacing:0px;text-align:left;color:#242424}.MonthStat .Amount{color:#53B65A}.BackImageContainer{width:35px;height:35px;flex:0 0 35px;border-radius:6px;text-align:center;line-height:35px;box-shadow:0px 4px 40px 0px rgba(138, 149, 158, 0.2);display:none}.Records{margin-top:16px}.MenuImage,.BackImage{cursor:pointer;display:none}.Row{display:flex;justify-content:space-between;align-items:center}.Row:nth-child(n+2){margin-top:3px}.Tabs.Row{justify-content:space-around;margin-top:20px}.Tabs.Row .TabText{font-size:16px;margin:10px 15px;color:#9C9C9C;cursor:pointer}.Tabs.Row .TabText.active{color:#242424;font-weight:600}.Tabs.Row .TabBorderBottom{height:5px;border-radius:4px;background:transparent}.Tabs.Row .TabBorderBottom.active{background:#242424}.RecordContainer{margin:5px 0;padding:10px;box-shadow:0px 0px 8px 0px rgba(0, 0, 0, 0.1019607843);border-radius:5px}.RecordContainer .Title{color:#242424;font-size:16px;font-weight:600;line-height:19px;letter-spacing:0px;text-align:left}.RecordContainer .HistoryPoints{text-transform:lowercase}.RecordContainer .Amount{font-size:16px;font-weight:600;line-height:19px;letter-spacing:0px;text-align:left}.RecordContainer .Amount.Positive{color:#53B65A}.RecordContainer .Amount.Negative{color:#B41E2D}.RecordContainer .DateTime{color:#9C9C9C;font-size:16px;font-weight:400;line-height:19px;letter-spacing:0px;text-align:left}.RecordContainer .Tag{font-size:12px;font-weight:500;line-height:14px;letter-spacing:0em;text-align:center;color:#767171;padding:8px 30px;border-radius:8px;box-shadow:0px 2px 4px 0px rgba(0, 0, 0, 0.2509803922)}.NoContent{font-size:16px;color:var(--emw--color-black-100, #afafaf);text-align:center;height:120px;line-height:120px}";
1551
1650
  const PlayerElevatePointsHistoryStyle0 = playerElevatePointsHistoryCss;
@@ -1554,20 +1653,36 @@ const PlayerElevatePointsHistory = class {
1554
1653
  constructor(hostRef) {
1555
1654
  index.registerInstance(this, hostRef);
1556
1655
  this.paginationReset = index.createEvent(this, "paginationReset", 7);
1557
- this.playerAvatarUrl = undefined;
1558
- this.session = undefined;
1559
- this.endpoint = undefined;
1560
- this.limit = undefined;
1656
+ /**
1657
+ * Customize pagination: Activate pagination secondary arrows
1658
+ */
1561
1659
  this.secondaryArrowsActive = true;
1660
+ /**
1661
+ * Customize pagination: Activate pagination numbered navigation
1662
+ */
1562
1663
  this.displayPageNumbers = false;
1664
+ /**
1665
+ * Customize page list options, default: 10,25,50
1666
+ */
1563
1667
  this.pageLimitOptions = '10,25,50';
1668
+ /**
1669
+ * Language of the widget
1670
+ */
1564
1671
  this.language = 'en';
1672
+ /**
1673
+ * Client custom styling via string
1674
+ */
1565
1675
  this.clientStyling = '';
1676
+ /**
1677
+ * Client custom styling via url
1678
+ */
1566
1679
  this.clientStylingUrl = '';
1680
+ /**
1681
+ * translation via url
1682
+ */
1567
1683
  this.translationUrl = '';
1568
1684
  this.locale = translation['en'];
1569
1685
  this.type = WalletType.spendable;
1570
- this.pageSetting = undefined;
1571
1686
  this.pointsWallets = {};
1572
1687
  }
1573
1688
  switchTab(type) {