@everymatrix/player-elevate-points-history 1.53.0 → 1.53.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/bonus-pagination-limits_6.cjs.entry.js +587 -33
- package/dist/cjs/{index-d10609c2.js → index-1f0a05aa.js} +241 -139
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{player-elevate-card-items-f69d5f29.js → player-elevate-card-items-6bfb137f.js} +1 -1
- package/dist/cjs/player-elevate-card.cjs.entry.js +21 -9
- package/dist/cjs/player-elevate-loyaltycard.cjs.entry.js +21 -9
- package/dist/cjs/player-elevate-points-history.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/player-elevate-points-history/player-elevate-points-history.js +44 -6
- package/dist/esm/bonus-pagination-limits_6.entry.js +643 -89
- package/dist/esm/{index-7f3411b7.js → index-0dc7e971.js} +241 -139
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{player-elevate-card-items-0b23f85a.js → player-elevate-card-items-b370b44a.js} +1 -1
- package/dist/esm/player-elevate-card.entry.js +21 -9
- package/dist/esm/player-elevate-loyaltycard.entry.js +21 -9
- package/dist/esm/player-elevate-points-history.js +3 -3
- package/dist/player-elevate-points-history/p-21d9f0ce.js +2 -0
- package/dist/player-elevate-points-history/p-9a629429.entry.js +1 -0
- package/dist/player-elevate-points-history/p-a5c50e2b.entry.js +1 -0
- package/dist/player-elevate-points-history/p-bb33b2db.entry.js +1 -0
- package/dist/player-elevate-points-history/{p-d3990dc6.js → p-f09b6964.js} +1 -1
- package/dist/player-elevate-points-history/player-elevate-points-history.esm.js +1 -1
- 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
- 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
- package/dist/types/components/player-elevate-points-history/player-elevate-points-history.d.ts +1 -1
- package/package.json +1 -1
- package/dist/player-elevate-points-history/p-702726b0.js +0 -2
- package/dist/player-elevate-points-history/p-a69c8a36.entry.js +0 -1
- package/dist/player-elevate-points-history/p-dd9c00ae.entry.js +0 -1
- package/dist/player-elevate-points-history/p-fc8ae547.entry.js +0 -1
- 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
- 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
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const playerElevateCardItems = require('./player-elevate-card-items-
|
|
5
|
+
const index = require('./index-1f0a05aa.js');
|
|
6
|
+
const playerElevateCardItems = require('./player-elevate-card-items-6bfb137f.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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
818
|
-
|
|
860
|
+
/**
|
|
861
|
+
* The style that widget shows,available value: Dark, Light
|
|
862
|
+
* Default: Dark
|
|
863
|
+
*/
|
|
819
864
|
this.theme = 'Dark';
|
|
820
|
-
|
|
821
|
-
|
|
865
|
+
/**
|
|
866
|
+
* Widget Language to show
|
|
867
|
+
*/
|
|
822
868
|
this.language = 'en';
|
|
823
|
-
|
|
824
|
-
|
|
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.
|
|
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 });
|
|
@@ -1069,13 +1129,491 @@ const renderTabs = (locale, type, onChangeTab) => index.h("div", { class: "Tabs
|
|
|
1069
1129
|
index.h("div", { class: `TabBorderBottom ${cssActive}` })));
|
|
1070
1130
|
}));
|
|
1071
1131
|
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
}
|
|
1132
|
+
function a() {
|
|
1133
|
+
}
|
|
1134
|
+
function N(t) {
|
|
1135
|
+
return t();
|
|
1136
|
+
}
|
|
1137
|
+
function A() {
|
|
1138
|
+
return /* @__PURE__ */ Object.create(null);
|
|
1139
|
+
}
|
|
1140
|
+
function y(t) {
|
|
1141
|
+
t.forEach(N);
|
|
1142
|
+
}
|
|
1143
|
+
function P(t) {
|
|
1144
|
+
return typeof t == "function";
|
|
1145
|
+
}
|
|
1146
|
+
function B(t, e) {
|
|
1147
|
+
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
1148
|
+
}
|
|
1149
|
+
function R(t) {
|
|
1150
|
+
return Object.keys(t).length === 0;
|
|
1151
|
+
}
|
|
1152
|
+
function H(t, e) {
|
|
1153
|
+
t.appendChild(e);
|
|
1154
|
+
}
|
|
1155
|
+
function I(t, e, n) {
|
|
1156
|
+
const s = U(t);
|
|
1157
|
+
if (!s.getElementById(e)) {
|
|
1158
|
+
const i = v("style");
|
|
1159
|
+
i.id = e, i.textContent = n, D(s, i);
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
function U(t) {
|
|
1163
|
+
if (!t) return document;
|
|
1164
|
+
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
1165
|
+
return e && /** @type {ShadowRoot} */
|
|
1166
|
+
e.host ? (
|
|
1167
|
+
/** @type {ShadowRoot} */
|
|
1168
|
+
e
|
|
1169
|
+
) : t.ownerDocument;
|
|
1170
|
+
}
|
|
1171
|
+
function D(t, e) {
|
|
1172
|
+
return H(
|
|
1173
|
+
/** @type {Document} */
|
|
1174
|
+
t.head || t,
|
|
1175
|
+
e
|
|
1176
|
+
), e.sheet;
|
|
1177
|
+
}
|
|
1178
|
+
function M(t, e, n) {
|
|
1179
|
+
t.insertBefore(e, n || null);
|
|
1180
|
+
}
|
|
1181
|
+
function E(t) {
|
|
1182
|
+
t.parentNode && t.parentNode.removeChild(t);
|
|
1183
|
+
}
|
|
1184
|
+
function v(t) {
|
|
1185
|
+
return document.createElement(t);
|
|
1186
|
+
}
|
|
1187
|
+
function G(t, e, n) {
|
|
1188
|
+
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
|
1189
|
+
}
|
|
1190
|
+
function J(t) {
|
|
1191
|
+
return Array.from(t.childNodes);
|
|
1192
|
+
}
|
|
1193
|
+
function V(t) {
|
|
1194
|
+
const e = {};
|
|
1195
|
+
return t.childNodes.forEach(
|
|
1196
|
+
/** @param {Element} node */
|
|
1197
|
+
(n) => {
|
|
1198
|
+
e[n.slot || "default"] = !0;
|
|
1199
|
+
}
|
|
1200
|
+
), e;
|
|
1201
|
+
}
|
|
1202
|
+
let C;
|
|
1203
|
+
function p(t) {
|
|
1204
|
+
C = t;
|
|
1205
|
+
}
|
|
1206
|
+
const f = [], x = [];
|
|
1207
|
+
let h = [];
|
|
1208
|
+
const S = [], z = /* @__PURE__ */ Promise.resolve();
|
|
1209
|
+
let w = !1;
|
|
1210
|
+
function F() {
|
|
1211
|
+
w || (w = !0, z.then(m));
|
|
1212
|
+
}
|
|
1213
|
+
function k(t) {
|
|
1214
|
+
h.push(t);
|
|
1215
|
+
}
|
|
1216
|
+
const b = /* @__PURE__ */ new Set();
|
|
1217
|
+
let $ = 0;
|
|
1218
|
+
function m() {
|
|
1219
|
+
if ($ !== 0)
|
|
1220
|
+
return;
|
|
1221
|
+
const t = C;
|
|
1222
|
+
do {
|
|
1223
|
+
try {
|
|
1224
|
+
for (; $ < f.length; ) {
|
|
1225
|
+
const e = f[$];
|
|
1226
|
+
$++, p(e), q(e.$$);
|
|
1227
|
+
}
|
|
1228
|
+
} catch (e) {
|
|
1229
|
+
throw f.length = 0, $ = 0, e;
|
|
1230
|
+
}
|
|
1231
|
+
for (p(null), f.length = 0, $ = 0; x.length; ) x.pop()();
|
|
1232
|
+
for (let e = 0; e < h.length; e += 1) {
|
|
1233
|
+
const n = h[e];
|
|
1234
|
+
b.has(n) || (b.add(n), n());
|
|
1235
|
+
}
|
|
1236
|
+
h.length = 0;
|
|
1237
|
+
} while (f.length);
|
|
1238
|
+
for (; S.length; )
|
|
1239
|
+
S.pop()();
|
|
1240
|
+
w = !1, b.clear(), p(t);
|
|
1241
|
+
}
|
|
1242
|
+
function q(t) {
|
|
1243
|
+
if (t.fragment !== null) {
|
|
1244
|
+
t.update(), y(t.before_update);
|
|
1245
|
+
const e = t.dirty;
|
|
1246
|
+
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(k);
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
function K(t) {
|
|
1250
|
+
const e = [], n = [];
|
|
1251
|
+
h.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), h = e;
|
|
1252
|
+
}
|
|
1253
|
+
const Q = /* @__PURE__ */ new Set();
|
|
1254
|
+
function W(t, e) {
|
|
1255
|
+
t && t.i && (Q.delete(t), t.i(e));
|
|
1256
|
+
}
|
|
1257
|
+
function X(t, e, n) {
|
|
1258
|
+
const { fragment: s, after_update: i } = t.$$;
|
|
1259
|
+
s && s.m(e, n), k(() => {
|
|
1260
|
+
const l = t.$$.on_mount.map(N).filter(P);
|
|
1261
|
+
t.$$.on_destroy ? t.$$.on_destroy.push(...l) : y(l), t.$$.on_mount = [];
|
|
1262
|
+
}), i.forEach(k);
|
|
1263
|
+
}
|
|
1264
|
+
function Y(t, e) {
|
|
1265
|
+
const n = t.$$;
|
|
1266
|
+
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 = []);
|
|
1267
|
+
}
|
|
1268
|
+
function Z(t, e) {
|
|
1269
|
+
t.$$.dirty[0] === -1 && (f.push(t), F(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
1270
|
+
}
|
|
1271
|
+
function tt(t, e, n, s, i, l, u = null, c = [-1]) {
|
|
1272
|
+
const o = C;
|
|
1273
|
+
p(t);
|
|
1274
|
+
const r = t.$$ = {
|
|
1275
|
+
fragment: null,
|
|
1276
|
+
ctx: [],
|
|
1277
|
+
// state
|
|
1278
|
+
props: l,
|
|
1279
|
+
update: a,
|
|
1280
|
+
not_equal: i,
|
|
1281
|
+
bound: A(),
|
|
1282
|
+
// lifecycle
|
|
1283
|
+
on_mount: [],
|
|
1284
|
+
on_destroy: [],
|
|
1285
|
+
on_disconnect: [],
|
|
1286
|
+
before_update: [],
|
|
1287
|
+
after_update: [],
|
|
1288
|
+
context: new Map(e.context || (o ? o.$$.context : [])),
|
|
1289
|
+
// everything else
|
|
1290
|
+
callbacks: A(),
|
|
1291
|
+
dirty: c,
|
|
1292
|
+
skip_bound: !1,
|
|
1293
|
+
root: e.target || o.$$.root
|
|
1294
|
+
};
|
|
1295
|
+
u && u(r.root);
|
|
1296
|
+
let _ = !1;
|
|
1297
|
+
if (r.ctx = n(t, e.props || {}, (d, L, ...j) => {
|
|
1298
|
+
const O = j.length ? j[0] : L;
|
|
1299
|
+
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;
|
|
1300
|
+
}), r.update(), _ = !0, y(r.before_update), r.fragment = s(r.ctx), e.target) {
|
|
1301
|
+
if (e.hydrate) {
|
|
1302
|
+
const d = J(e.target);
|
|
1303
|
+
r.fragment && r.fragment.l(d), d.forEach(E);
|
|
1304
|
+
} else
|
|
1305
|
+
r.fragment && r.fragment.c();
|
|
1306
|
+
e.intro && W(t.$$.fragment), X(t, e.target, e.anchor), m();
|
|
1307
|
+
}
|
|
1308
|
+
p(o);
|
|
1309
|
+
}
|
|
1310
|
+
let T;
|
|
1311
|
+
typeof HTMLElement == "function" && (T = class extends HTMLElement {
|
|
1312
|
+
/** The Svelte component constructor */
|
|
1313
|
+
$$ctor;
|
|
1314
|
+
/** Slots */
|
|
1315
|
+
$$s;
|
|
1316
|
+
/** The Svelte component instance */
|
|
1317
|
+
$$c;
|
|
1318
|
+
/** Whether or not the custom element is connected */
|
|
1319
|
+
$$cn = !1;
|
|
1320
|
+
/** Component props data */
|
|
1321
|
+
$$d = {};
|
|
1322
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
1323
|
+
$$r = !1;
|
|
1324
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
1325
|
+
$$p_d = {};
|
|
1326
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
1327
|
+
$$l = {};
|
|
1328
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
1329
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
1330
|
+
constructor(t, e, n) {
|
|
1331
|
+
super(), this.$$ctor = t, this.$$s = e, n && this.attachShadow({ mode: "open" });
|
|
1332
|
+
}
|
|
1333
|
+
addEventListener(t, e, n) {
|
|
1334
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
|
|
1335
|
+
const s = this.$$c.$on(t, e);
|
|
1336
|
+
this.$$l_u.set(e, s);
|
|
1337
|
+
}
|
|
1338
|
+
super.addEventListener(t, e, n);
|
|
1339
|
+
}
|
|
1340
|
+
removeEventListener(t, e, n) {
|
|
1341
|
+
if (super.removeEventListener(t, e, n), this.$$c) {
|
|
1342
|
+
const s = this.$$l_u.get(e);
|
|
1343
|
+
s && (s(), this.$$l_u.delete(e));
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
async connectedCallback() {
|
|
1347
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
1348
|
+
let t = function(i) {
|
|
1349
|
+
return () => {
|
|
1350
|
+
let l;
|
|
1351
|
+
return {
|
|
1352
|
+
c: function() {
|
|
1353
|
+
l = v("slot"), i !== "default" && G(l, "name", i);
|
|
1354
|
+
},
|
|
1355
|
+
/**
|
|
1356
|
+
* @param {HTMLElement} target
|
|
1357
|
+
* @param {HTMLElement} [anchor]
|
|
1358
|
+
*/
|
|
1359
|
+
m: function(o, r) {
|
|
1360
|
+
M(o, l, r);
|
|
1361
|
+
},
|
|
1362
|
+
d: function(o) {
|
|
1363
|
+
o && E(l);
|
|
1364
|
+
}
|
|
1365
|
+
};
|
|
1366
|
+
};
|
|
1367
|
+
};
|
|
1368
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
1369
|
+
return;
|
|
1370
|
+
const e = {}, n = V(this);
|
|
1371
|
+
for (const i of this.$$s)
|
|
1372
|
+
i in n && (e[i] = [t(i)]);
|
|
1373
|
+
for (const i of this.attributes) {
|
|
1374
|
+
const l = this.$$g_p(i.name);
|
|
1375
|
+
l in this.$$d || (this.$$d[l] = g(l, i.value, this.$$p_d, "toProp"));
|
|
1376
|
+
}
|
|
1377
|
+
for (const i in this.$$p_d)
|
|
1378
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
1379
|
+
this.$$c = new this.$$ctor({
|
|
1380
|
+
target: this.shadowRoot || this,
|
|
1381
|
+
props: {
|
|
1382
|
+
...this.$$d,
|
|
1383
|
+
$$slots: e,
|
|
1384
|
+
$$scope: {
|
|
1385
|
+
ctx: []
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
});
|
|
1389
|
+
const s = () => {
|
|
1390
|
+
this.$$r = !0;
|
|
1391
|
+
for (const i in this.$$p_d)
|
|
1392
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
1393
|
+
const l = g(
|
|
1394
|
+
i,
|
|
1395
|
+
this.$$d[i],
|
|
1396
|
+
this.$$p_d,
|
|
1397
|
+
"toAttribute"
|
|
1398
|
+
);
|
|
1399
|
+
l == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, l);
|
|
1400
|
+
}
|
|
1401
|
+
this.$$r = !1;
|
|
1402
|
+
};
|
|
1403
|
+
this.$$c.$$.after_update.push(s), s();
|
|
1404
|
+
for (const i in this.$$l)
|
|
1405
|
+
for (const l of this.$$l[i]) {
|
|
1406
|
+
const u = this.$$c.$on(i, l);
|
|
1407
|
+
this.$$l_u.set(l, u);
|
|
1408
|
+
}
|
|
1409
|
+
this.$$l = {};
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
1413
|
+
// and setting attributes through setAttribute etc, this is helpful
|
|
1414
|
+
attributeChangedCallback(t, e, n) {
|
|
1415
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = g(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
1416
|
+
}
|
|
1417
|
+
disconnectedCallback() {
|
|
1418
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
1419
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
1420
|
+
});
|
|
1421
|
+
}
|
|
1422
|
+
$$g_p(t) {
|
|
1423
|
+
return Object.keys(this.$$p_d).find(
|
|
1424
|
+
(e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
|
|
1425
|
+
) || t;
|
|
1426
|
+
}
|
|
1427
|
+
});
|
|
1428
|
+
function g(t, e, n, s) {
|
|
1429
|
+
const i = n[t]?.type;
|
|
1430
|
+
if (e = i === "Boolean" && typeof e != "boolean" ? e != null : e, !s || !n[t])
|
|
1431
|
+
return e;
|
|
1432
|
+
if (s === "toAttribute")
|
|
1433
|
+
switch (i) {
|
|
1434
|
+
case "Object":
|
|
1435
|
+
case "Array":
|
|
1436
|
+
return e == null ? null : JSON.stringify(e);
|
|
1437
|
+
case "Boolean":
|
|
1438
|
+
return e ? "" : null;
|
|
1439
|
+
case "Number":
|
|
1440
|
+
return e ?? null;
|
|
1441
|
+
default:
|
|
1442
|
+
return e;
|
|
1443
|
+
}
|
|
1444
|
+
else
|
|
1445
|
+
switch (i) {
|
|
1446
|
+
case "Object":
|
|
1447
|
+
case "Array":
|
|
1448
|
+
return e && JSON.parse(e);
|
|
1449
|
+
case "Boolean":
|
|
1450
|
+
return e;
|
|
1451
|
+
case "Number":
|
|
1452
|
+
return e != null ? +e : e;
|
|
1453
|
+
default:
|
|
1454
|
+
return e;
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
function et(t, e, n, s, i, l) {
|
|
1458
|
+
let u = class extends T {
|
|
1459
|
+
constructor() {
|
|
1460
|
+
super(t, n, i), this.$$p_d = e;
|
|
1461
|
+
}
|
|
1462
|
+
static get observedAttributes() {
|
|
1463
|
+
return Object.keys(e).map(
|
|
1464
|
+
(c) => (e[c].attribute || c).toLowerCase()
|
|
1465
|
+
);
|
|
1466
|
+
}
|
|
1467
|
+
};
|
|
1468
|
+
return Object.keys(e).forEach((c) => {
|
|
1469
|
+
Object.defineProperty(u.prototype, c, {
|
|
1470
|
+
get() {
|
|
1471
|
+
return this.$$c && c in this.$$c ? this.$$c[c] : this.$$d[c];
|
|
1472
|
+
},
|
|
1473
|
+
set(o) {
|
|
1474
|
+
o = g(c, o, e), this.$$d[c] = o, this.$$c?.$set({ [c]: o });
|
|
1475
|
+
}
|
|
1476
|
+
});
|
|
1477
|
+
}), s.forEach((c) => {
|
|
1478
|
+
Object.defineProperty(u.prototype, c, {
|
|
1479
|
+
get() {
|
|
1480
|
+
return this.$$c?.[c];
|
|
1481
|
+
}
|
|
1482
|
+
});
|
|
1483
|
+
}), t.element = /** @type {any} */
|
|
1484
|
+
u, u;
|
|
1485
|
+
}
|
|
1486
|
+
class nt {
|
|
1487
|
+
/**
|
|
1488
|
+
* ### PRIVATE API
|
|
1489
|
+
*
|
|
1490
|
+
* Do not use, may change at any time
|
|
1491
|
+
*
|
|
1492
|
+
* @type {any}
|
|
1493
|
+
*/
|
|
1494
|
+
$$ = void 0;
|
|
1495
|
+
/**
|
|
1496
|
+
* ### PRIVATE API
|
|
1497
|
+
*
|
|
1498
|
+
* Do not use, may change at any time
|
|
1499
|
+
*
|
|
1500
|
+
* @type {any}
|
|
1501
|
+
*/
|
|
1502
|
+
$$set = void 0;
|
|
1503
|
+
/** @returns {void} */
|
|
1504
|
+
$destroy() {
|
|
1505
|
+
Y(this, 1), this.$destroy = a;
|
|
1506
|
+
}
|
|
1507
|
+
/**
|
|
1508
|
+
* @template {Extract<keyof Events, string>} K
|
|
1509
|
+
* @param {K} type
|
|
1510
|
+
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
1511
|
+
* @returns {() => void}
|
|
1512
|
+
*/
|
|
1513
|
+
$on(e, n) {
|
|
1514
|
+
if (!P(n))
|
|
1515
|
+
return a;
|
|
1516
|
+
const s = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
1517
|
+
return s.push(n), () => {
|
|
1518
|
+
const i = s.indexOf(n);
|
|
1519
|
+
i !== -1 && s.splice(i, 1);
|
|
1520
|
+
};
|
|
1521
|
+
}
|
|
1522
|
+
/**
|
|
1523
|
+
* @param {Partial<Props>} props
|
|
1524
|
+
* @returns {void}
|
|
1525
|
+
*/
|
|
1526
|
+
$set(e) {
|
|
1527
|
+
this.$$set && !R(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
const it = "4";
|
|
1531
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(it);
|
|
1532
|
+
function st(t) {
|
|
1533
|
+
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)}}");
|
|
1534
|
+
}
|
|
1535
|
+
function rt(t) {
|
|
1536
|
+
let e;
|
|
1537
|
+
return {
|
|
1538
|
+
c() {
|
|
1539
|
+
e = v("div"), e.innerHTML = '<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
|
|
1540
|
+
},
|
|
1541
|
+
m(n, s) {
|
|
1542
|
+
M(n, e, s), t[3](e);
|
|
1543
|
+
},
|
|
1544
|
+
p: a,
|
|
1545
|
+
i: a,
|
|
1546
|
+
o: a,
|
|
1547
|
+
d(n) {
|
|
1548
|
+
n && E(e), t[3](null);
|
|
1549
|
+
}
|
|
1550
|
+
};
|
|
1551
|
+
}
|
|
1552
|
+
function lt(t, e, n) {
|
|
1553
|
+
let { clientstyling: s = "" } = e, { clientstylingurl: i = "" } = e, l;
|
|
1554
|
+
const u = () => {
|
|
1555
|
+
let r = document.createElement("style");
|
|
1556
|
+
r.innerHTML = s, l.appendChild(r);
|
|
1557
|
+
}, c = () => {
|
|
1558
|
+
let r = new URL(i), _ = document.createElement("style");
|
|
1559
|
+
fetch(r.href).then((d) => d.text()).then((d) => {
|
|
1560
|
+
_.innerHTML = d, setTimeout(
|
|
1561
|
+
() => {
|
|
1562
|
+
l.appendChild(_);
|
|
1563
|
+
},
|
|
1564
|
+
1
|
|
1565
|
+
), setTimeout(
|
|
1566
|
+
() => {
|
|
1567
|
+
},
|
|
1568
|
+
500
|
|
1569
|
+
);
|
|
1570
|
+
});
|
|
1571
|
+
};
|
|
1572
|
+
function o(r) {
|
|
1573
|
+
x[r ? "unshift" : "push"](() => {
|
|
1574
|
+
l = r, n(0, l);
|
|
1575
|
+
});
|
|
1576
|
+
}
|
|
1577
|
+
return t.$$set = (r) => {
|
|
1578
|
+
"clientstyling" in r && n(1, s = r.clientstyling), "clientstylingurl" in r && n(2, i = r.clientstylingurl);
|
|
1579
|
+
}, t.$$.update = () => {
|
|
1580
|
+
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
1581
|
+
3 && s && l && u(), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
1582
|
+
5 && i && l && c();
|
|
1583
|
+
}, [l, s, i, o];
|
|
1584
|
+
}
|
|
1585
|
+
class ct extends nt {
|
|
1586
|
+
constructor(e) {
|
|
1587
|
+
super(), tt(this, e, lt, rt, B, { clientstyling: 1, clientstylingurl: 2 }, st);
|
|
1588
|
+
}
|
|
1589
|
+
get clientstyling() {
|
|
1590
|
+
return this.$$.ctx[1];
|
|
1591
|
+
}
|
|
1592
|
+
set clientstyling(e) {
|
|
1593
|
+
this.$$set({ clientstyling: e }), m();
|
|
1594
|
+
}
|
|
1595
|
+
get clientstylingurl() {
|
|
1596
|
+
return this.$$.ctx[2];
|
|
1597
|
+
}
|
|
1598
|
+
set clientstylingurl(e) {
|
|
1599
|
+
this.$$set({ clientstylingurl: e }), m();
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
et(ct, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
1077
1603
|
|
|
1078
|
-
|
|
1604
|
+
function i(n) {
|
|
1605
|
+
return function(...t) {
|
|
1606
|
+
try {
|
|
1607
|
+
return n.apply(this, t);
|
|
1608
|
+
} catch (e) {
|
|
1609
|
+
if (e instanceof DOMException && e.message.includes("has already been used with this registry") || e.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
1610
|
+
return !1;
|
|
1611
|
+
throw e;
|
|
1612
|
+
}
|
|
1613
|
+
};
|
|
1614
|
+
}
|
|
1615
|
+
customElements.define = i(customElements.define);
|
|
1616
|
+
!customElements.get("general-animation-loading") && customElements.define("general-animation-loading", ct.element);
|
|
1079
1617
|
|
|
1080
1618
|
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}";
|
|
1081
1619
|
const PlayerElevatePointsHistoryStyle0 = playerElevatePointsHistoryCss;
|
|
@@ -1084,20 +1622,36 @@ const PlayerElevatePointsHistory = class {
|
|
|
1084
1622
|
constructor(hostRef) {
|
|
1085
1623
|
index.registerInstance(this, hostRef);
|
|
1086
1624
|
this.paginationReset = index.createEvent(this, "paginationReset", 7);
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
this.limit = undefined;
|
|
1625
|
+
/**
|
|
1626
|
+
* Customize pagination: Activate pagination secondary arrows
|
|
1627
|
+
*/
|
|
1091
1628
|
this.secondaryArrowsActive = true;
|
|
1629
|
+
/**
|
|
1630
|
+
* Customize pagination: Activate pagination numbered navigation
|
|
1631
|
+
*/
|
|
1092
1632
|
this.displayPageNumbers = false;
|
|
1633
|
+
/**
|
|
1634
|
+
* Customize page list options, default: 10,25,50
|
|
1635
|
+
*/
|
|
1093
1636
|
this.pageLimitOptions = '10,25,50';
|
|
1637
|
+
/**
|
|
1638
|
+
* Language of the widget
|
|
1639
|
+
*/
|
|
1094
1640
|
this.language = 'en';
|
|
1641
|
+
/**
|
|
1642
|
+
* Client custom styling via string
|
|
1643
|
+
*/
|
|
1095
1644
|
this.clientStyling = '';
|
|
1645
|
+
/**
|
|
1646
|
+
* Client custom styling via url
|
|
1647
|
+
*/
|
|
1096
1648
|
this.clientStylingUrl = '';
|
|
1649
|
+
/**
|
|
1650
|
+
* translation via url
|
|
1651
|
+
*/
|
|
1097
1652
|
this.translationUrl = '';
|
|
1098
1653
|
this.locale = translation['en'];
|
|
1099
1654
|
this.type = WalletType.spendable;
|
|
1100
|
-
this.pageSetting = undefined;
|
|
1101
1655
|
this.pointsWallets = {};
|
|
1102
1656
|
}
|
|
1103
1657
|
switchTab(type) {
|