@everymatrix/player-elevate-points-history 1.58.0 → 1.58.2
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 +15 -534
- package/dist/cjs/{player-elevate-card-items-24c0f3f8.js → player-elevate-card-items-2227dc0b.js} +107 -6
- package/dist/cjs/player-elevate-card.cjs.entry.js +1 -1
- package/dist/cjs/player-elevate-loyaltycard.cjs.entry.js +1 -1
- package/dist/collection/components/player-elevate-points-history/player-elevate-points-history.js +3 -4
- package/dist/collection/utils/translation.js +1 -0
- package/dist/esm/bonus-pagination-limits_6.entry.js +69 -588
- package/dist/esm/{player-elevate-card-items-b9e81d29.js → player-elevate-card-items-431ffcbf.js} +107 -6
- package/dist/esm/player-elevate-card.entry.js +1 -1
- package/dist/esm/player-elevate-loyaltycard.entry.js +1 -1
- package/dist/player-elevate-points-history/{p-23c8a06e.entry.js → p-822adbb3.entry.js} +1 -1
- package/dist/player-elevate-points-history/{p-84c4fe4f.entry.js → p-84b56194.entry.js} +1 -1
- package/dist/player-elevate-points-history/p-c9a5d95c.js +1 -0
- package/dist/player-elevate-points-history/p-eb68c265.entry.js +1 -0
- package/dist/player-elevate-points-history/player-elevate-points-history.esm.js +1 -1
- package/dist/stencil.config.js +2 -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 +0 -1
- package/dist/types/utils/translation.d.ts +1 -0
- package/package.json +1 -1
- package/dist/player-elevate-points-history/p-19f453c3.entry.js +0 -1
- package/dist/player-elevate-points-history/p-4fc54b9e.js +0 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/stencil.config.dev.d.ts +0 -2
- /package/dist/types/{builds/emfe-widgets → Users/adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/storybook/main.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/packages/stencil/player-elevate-points-history/storybook/preview.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/player-elevate-points-history/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-ba216df9.js');
|
|
6
6
|
const locale_utils = require('./locale.utils-dc4c7c34.js');
|
|
7
|
-
const playerElevateCardItems = require('./player-elevate-card-items-
|
|
7
|
+
const playerElevateCardItems = require('./player-elevate-card-items-2227dc0b.js');
|
|
8
8
|
|
|
9
9
|
const DEFAULT_LANGUAGE$1 = 'en';
|
|
10
10
|
const SUPPORTED_LANGUAGES$1 = ['pt-br', 'en', 'es-mx', 'hu', 'hr'];
|
|
@@ -899,6 +899,7 @@ const translation = {
|
|
|
899
899
|
bonus: 'Bonus',
|
|
900
900
|
coins: 'Coins',
|
|
901
901
|
noContent: 'No Content',
|
|
902
|
+
loading: 'Loading',
|
|
902
903
|
redeem: 'Redeem',
|
|
903
904
|
reload: 'Reload',
|
|
904
905
|
reloadMsgWhenError: 'Network Problem, please ',
|
|
@@ -1038,9 +1039,17 @@ const formatDate = (date) => {
|
|
|
1038
1039
|
].join(':'));
|
|
1039
1040
|
};
|
|
1040
1041
|
|
|
1041
|
-
const backSvg =
|
|
1042
|
+
const backSvg = `<svg width="9" height="15" viewBox="0 0 9 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1043
|
+
<path d="M7.75 1L1.25 7.5L7.75 14" stroke="#242424" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1044
|
+
</svg>
|
|
1045
|
+
`;
|
|
1042
1046
|
|
|
1043
|
-
const menuSvg =
|
|
1047
|
+
const menuSvg = `<svg width="30" height="8" viewBox="0 0 30 8" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1048
|
+
<circle cx="4" cy="4" r="4" fill="black"/>
|
|
1049
|
+
<circle cx="15" cy="4" r="4" fill="black"/>
|
|
1050
|
+
<circle cx="26" cy="4" r="4" fill="black"/>
|
|
1051
|
+
</svg>
|
|
1052
|
+
`;
|
|
1044
1053
|
|
|
1045
1054
|
const renderTopBar = (locale, type, pageSetting) => index.h("div", { class: "TopBarContainer" },
|
|
1046
1055
|
index.h("div", { class: "BackImageContainer" },
|
|
@@ -1062,534 +1071,6 @@ const renderTabs = (locale, type, onChangeTab) => index.h("div", { class: "Tabs
|
|
|
1062
1071
|
index.h("div", { class: `TabBorderBottom ${cssActive}` })));
|
|
1063
1072
|
}));
|
|
1064
1073
|
|
|
1065
|
-
function a() {
|
|
1066
|
-
}
|
|
1067
|
-
function M(t) {
|
|
1068
|
-
return t();
|
|
1069
|
-
}
|
|
1070
|
-
function O() {
|
|
1071
|
-
return /* @__PURE__ */ Object.create(null);
|
|
1072
|
-
}
|
|
1073
|
-
function y(t) {
|
|
1074
|
-
t.forEach(M);
|
|
1075
|
-
}
|
|
1076
|
-
function N(t) {
|
|
1077
|
-
return typeof t == "function";
|
|
1078
|
-
}
|
|
1079
|
-
function R(t, e) {
|
|
1080
|
-
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
1081
|
-
}
|
|
1082
|
-
function T(t) {
|
|
1083
|
-
return Object.keys(t).length === 0;
|
|
1084
|
-
}
|
|
1085
|
-
function H(t, e) {
|
|
1086
|
-
t.appendChild(e);
|
|
1087
|
-
}
|
|
1088
|
-
function U(t, e, n) {
|
|
1089
|
-
const s = I(t);
|
|
1090
|
-
if (!s.getElementById(e)) {
|
|
1091
|
-
const i = v("style");
|
|
1092
|
-
i.id = e, i.textContent = n, z(s, i);
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
function I(t) {
|
|
1096
|
-
if (!t)
|
|
1097
|
-
return document;
|
|
1098
|
-
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
1099
|
-
return e && /** @type {ShadowRoot} */
|
|
1100
|
-
e.host ? (
|
|
1101
|
-
/** @type {ShadowRoot} */
|
|
1102
|
-
e
|
|
1103
|
-
) : t.ownerDocument;
|
|
1104
|
-
}
|
|
1105
|
-
function z(t, e) {
|
|
1106
|
-
return H(
|
|
1107
|
-
/** @type {Document} */
|
|
1108
|
-
t.head || t,
|
|
1109
|
-
e
|
|
1110
|
-
), e.sheet;
|
|
1111
|
-
}
|
|
1112
|
-
function B(t, e, n) {
|
|
1113
|
-
t.insertBefore(e, n || null);
|
|
1114
|
-
}
|
|
1115
|
-
function E(t) {
|
|
1116
|
-
t.parentNode && t.parentNode.removeChild(t);
|
|
1117
|
-
}
|
|
1118
|
-
function v(t) {
|
|
1119
|
-
return document.createElement(t);
|
|
1120
|
-
}
|
|
1121
|
-
function D(t, e, n) {
|
|
1122
|
-
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
|
1123
|
-
}
|
|
1124
|
-
function F(t) {
|
|
1125
|
-
return Array.from(t.childNodes);
|
|
1126
|
-
}
|
|
1127
|
-
function G(t) {
|
|
1128
|
-
const e = {};
|
|
1129
|
-
return t.childNodes.forEach(
|
|
1130
|
-
/** @param {Element} node */
|
|
1131
|
-
(n) => {
|
|
1132
|
-
e[n.slot || "default"] = !0;
|
|
1133
|
-
}
|
|
1134
|
-
), e;
|
|
1135
|
-
}
|
|
1136
|
-
let p;
|
|
1137
|
-
function _(t) {
|
|
1138
|
-
p = t;
|
|
1139
|
-
}
|
|
1140
|
-
function J() {
|
|
1141
|
-
if (!p)
|
|
1142
|
-
throw new Error("Function called outside component initialization");
|
|
1143
|
-
return p;
|
|
1144
|
-
}
|
|
1145
|
-
function V(t) {
|
|
1146
|
-
J().$$.on_mount.push(t);
|
|
1147
|
-
}
|
|
1148
|
-
const $ = [], w = [];
|
|
1149
|
-
let h = [];
|
|
1150
|
-
const A = [], q = /* @__PURE__ */ Promise.resolve();
|
|
1151
|
-
let x = !1;
|
|
1152
|
-
function K() {
|
|
1153
|
-
x || (x = !0, q.then(m));
|
|
1154
|
-
}
|
|
1155
|
-
function k(t) {
|
|
1156
|
-
h.push(t);
|
|
1157
|
-
}
|
|
1158
|
-
const b = /* @__PURE__ */ new Set();
|
|
1159
|
-
let f = 0;
|
|
1160
|
-
function m() {
|
|
1161
|
-
if (f !== 0)
|
|
1162
|
-
return;
|
|
1163
|
-
const t = p;
|
|
1164
|
-
do {
|
|
1165
|
-
try {
|
|
1166
|
-
for (; f < $.length; ) {
|
|
1167
|
-
const e = $[f];
|
|
1168
|
-
f++, _(e), Q(e.$$);
|
|
1169
|
-
}
|
|
1170
|
-
} catch (e) {
|
|
1171
|
-
throw $.length = 0, f = 0, e;
|
|
1172
|
-
}
|
|
1173
|
-
for (_(null), $.length = 0, f = 0; w.length; )
|
|
1174
|
-
w.pop()();
|
|
1175
|
-
for (let e = 0; e < h.length; e += 1) {
|
|
1176
|
-
const n = h[e];
|
|
1177
|
-
b.has(n) || (b.add(n), n());
|
|
1178
|
-
}
|
|
1179
|
-
h.length = 0;
|
|
1180
|
-
} while ($.length);
|
|
1181
|
-
for (; A.length; )
|
|
1182
|
-
A.pop()();
|
|
1183
|
-
x = !1, b.clear(), _(t);
|
|
1184
|
-
}
|
|
1185
|
-
function Q(t) {
|
|
1186
|
-
if (t.fragment !== null) {
|
|
1187
|
-
t.update(), y(t.before_update);
|
|
1188
|
-
const e = t.dirty;
|
|
1189
|
-
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(k);
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
|
-
function W(t) {
|
|
1193
|
-
const e = [], n = [];
|
|
1194
|
-
h.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), h = e;
|
|
1195
|
-
}
|
|
1196
|
-
const X = /* @__PURE__ */ new Set();
|
|
1197
|
-
function Y(t, e) {
|
|
1198
|
-
t && t.i && (X.delete(t), t.i(e));
|
|
1199
|
-
}
|
|
1200
|
-
function Z(t, e, n) {
|
|
1201
|
-
const { fragment: s, after_update: i } = t.$$;
|
|
1202
|
-
s && s.m(e, n), k(() => {
|
|
1203
|
-
const r = t.$$.on_mount.map(M).filter(N);
|
|
1204
|
-
t.$$.on_destroy ? t.$$.on_destroy.push(...r) : y(r), t.$$.on_mount = [];
|
|
1205
|
-
}), i.forEach(k);
|
|
1206
|
-
}
|
|
1207
|
-
function tt(t, e) {
|
|
1208
|
-
const n = t.$$;
|
|
1209
|
-
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 = []);
|
|
1210
|
-
}
|
|
1211
|
-
function et(t, e) {
|
|
1212
|
-
t.$$.dirty[0] === -1 && ($.push(t), K(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
1213
|
-
}
|
|
1214
|
-
function nt(t, e, n, s, i, r, o = null, l = [-1]) {
|
|
1215
|
-
const c = p;
|
|
1216
|
-
_(t);
|
|
1217
|
-
const u = t.$$ = {
|
|
1218
|
-
fragment: null,
|
|
1219
|
-
ctx: [],
|
|
1220
|
-
// state
|
|
1221
|
-
props: r,
|
|
1222
|
-
update: a,
|
|
1223
|
-
not_equal: i,
|
|
1224
|
-
bound: O(),
|
|
1225
|
-
// lifecycle
|
|
1226
|
-
on_mount: [],
|
|
1227
|
-
on_destroy: [],
|
|
1228
|
-
on_disconnect: [],
|
|
1229
|
-
before_update: [],
|
|
1230
|
-
after_update: [],
|
|
1231
|
-
context: new Map(e.context || (c ? c.$$.context : [])),
|
|
1232
|
-
// everything else
|
|
1233
|
-
callbacks: O(),
|
|
1234
|
-
dirty: l,
|
|
1235
|
-
skip_bound: !1,
|
|
1236
|
-
root: e.target || c.$$.root
|
|
1237
|
-
};
|
|
1238
|
-
o && o(u.root);
|
|
1239
|
-
let L = !1;
|
|
1240
|
-
if (u.ctx = n ? n(t, e.props || {}, (d, C, ...S) => {
|
|
1241
|
-
const j = S.length ? S[0] : C;
|
|
1242
|
-
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;
|
|
1243
|
-
}) : [], u.update(), L = !0, y(u.before_update), u.fragment = s ? s(u.ctx) : !1, e.target) {
|
|
1244
|
-
if (e.hydrate) {
|
|
1245
|
-
const d = F(e.target);
|
|
1246
|
-
u.fragment && u.fragment.l(d), d.forEach(E);
|
|
1247
|
-
} else
|
|
1248
|
-
u.fragment && u.fragment.c();
|
|
1249
|
-
e.intro && Y(t.$$.fragment), Z(t, e.target, e.anchor), m();
|
|
1250
|
-
}
|
|
1251
|
-
_(c);
|
|
1252
|
-
}
|
|
1253
|
-
let P;
|
|
1254
|
-
typeof HTMLElement == "function" && (P = class extends HTMLElement {
|
|
1255
|
-
/** The Svelte component constructor */
|
|
1256
|
-
$$ctor;
|
|
1257
|
-
/** Slots */
|
|
1258
|
-
$$s;
|
|
1259
|
-
/** The Svelte component instance */
|
|
1260
|
-
$$c;
|
|
1261
|
-
/** Whether or not the custom element is connected */
|
|
1262
|
-
$$cn = !1;
|
|
1263
|
-
/** Component props data */
|
|
1264
|
-
$$d = {};
|
|
1265
|
-
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
1266
|
-
$$r = !1;
|
|
1267
|
-
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
1268
|
-
$$p_d = {};
|
|
1269
|
-
/** @type {Record<string, Function[]>} Event listeners */
|
|
1270
|
-
$$l = {};
|
|
1271
|
-
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
1272
|
-
$$l_u = /* @__PURE__ */ new Map();
|
|
1273
|
-
constructor(t, e, n) {
|
|
1274
|
-
super(), this.$$ctor = t, this.$$s = e, n && this.attachShadow({ mode: "open" });
|
|
1275
|
-
}
|
|
1276
|
-
addEventListener(t, e, n) {
|
|
1277
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
|
|
1278
|
-
const s = this.$$c.$on(t, e);
|
|
1279
|
-
this.$$l_u.set(e, s);
|
|
1280
|
-
}
|
|
1281
|
-
super.addEventListener(t, e, n);
|
|
1282
|
-
}
|
|
1283
|
-
removeEventListener(t, e, n) {
|
|
1284
|
-
if (super.removeEventListener(t, e, n), this.$$c) {
|
|
1285
|
-
const s = this.$$l_u.get(e);
|
|
1286
|
-
s && (s(), this.$$l_u.delete(e));
|
|
1287
|
-
}
|
|
1288
|
-
}
|
|
1289
|
-
async connectedCallback() {
|
|
1290
|
-
if (this.$$cn = !0, !this.$$c) {
|
|
1291
|
-
let t = function(i) {
|
|
1292
|
-
return () => {
|
|
1293
|
-
let r;
|
|
1294
|
-
return {
|
|
1295
|
-
c: function() {
|
|
1296
|
-
r = v("slot"), i !== "default" && D(r, "name", i);
|
|
1297
|
-
},
|
|
1298
|
-
/**
|
|
1299
|
-
* @param {HTMLElement} target
|
|
1300
|
-
* @param {HTMLElement} [anchor]
|
|
1301
|
-
*/
|
|
1302
|
-
m: function(c, u) {
|
|
1303
|
-
B(c, r, u);
|
|
1304
|
-
},
|
|
1305
|
-
d: function(c) {
|
|
1306
|
-
c && E(r);
|
|
1307
|
-
}
|
|
1308
|
-
};
|
|
1309
|
-
};
|
|
1310
|
-
};
|
|
1311
|
-
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
1312
|
-
return;
|
|
1313
|
-
const e = {}, n = G(this);
|
|
1314
|
-
for (const i of this.$$s)
|
|
1315
|
-
i in n && (e[i] = [t(i)]);
|
|
1316
|
-
for (const i of this.attributes) {
|
|
1317
|
-
const r = this.$$g_p(i.name);
|
|
1318
|
-
r in this.$$d || (this.$$d[r] = g(r, i.value, this.$$p_d, "toProp"));
|
|
1319
|
-
}
|
|
1320
|
-
for (const i in this.$$p_d)
|
|
1321
|
-
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
1322
|
-
this.$$c = new this.$$ctor({
|
|
1323
|
-
target: this.shadowRoot || this,
|
|
1324
|
-
props: {
|
|
1325
|
-
...this.$$d,
|
|
1326
|
-
$$slots: e,
|
|
1327
|
-
$$scope: {
|
|
1328
|
-
ctx: []
|
|
1329
|
-
}
|
|
1330
|
-
}
|
|
1331
|
-
});
|
|
1332
|
-
const s = () => {
|
|
1333
|
-
this.$$r = !0;
|
|
1334
|
-
for (const i in this.$$p_d)
|
|
1335
|
-
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
1336
|
-
const r = g(
|
|
1337
|
-
i,
|
|
1338
|
-
this.$$d[i],
|
|
1339
|
-
this.$$p_d,
|
|
1340
|
-
"toAttribute"
|
|
1341
|
-
);
|
|
1342
|
-
r == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, r);
|
|
1343
|
-
}
|
|
1344
|
-
this.$$r = !1;
|
|
1345
|
-
};
|
|
1346
|
-
this.$$c.$$.after_update.push(s), s();
|
|
1347
|
-
for (const i in this.$$l)
|
|
1348
|
-
for (const r of this.$$l[i]) {
|
|
1349
|
-
const o = this.$$c.$on(i, r);
|
|
1350
|
-
this.$$l_u.set(r, o);
|
|
1351
|
-
}
|
|
1352
|
-
this.$$l = {};
|
|
1353
|
-
}
|
|
1354
|
-
}
|
|
1355
|
-
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
1356
|
-
// and setting attributes through setAttribute etc, this is helpful
|
|
1357
|
-
attributeChangedCallback(t, e, n) {
|
|
1358
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = g(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
1359
|
-
}
|
|
1360
|
-
disconnectedCallback() {
|
|
1361
|
-
this.$$cn = !1, Promise.resolve().then(() => {
|
|
1362
|
-
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
1363
|
-
});
|
|
1364
|
-
}
|
|
1365
|
-
$$g_p(t) {
|
|
1366
|
-
return Object.keys(this.$$p_d).find(
|
|
1367
|
-
(e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
|
|
1368
|
-
) || t;
|
|
1369
|
-
}
|
|
1370
|
-
});
|
|
1371
|
-
function g(t, e, n, s) {
|
|
1372
|
-
const i = n[t]?.type;
|
|
1373
|
-
if (e = i === "Boolean" && typeof e != "boolean" ? e != null : e, !s || !n[t])
|
|
1374
|
-
return e;
|
|
1375
|
-
if (s === "toAttribute")
|
|
1376
|
-
switch (i) {
|
|
1377
|
-
case "Object":
|
|
1378
|
-
case "Array":
|
|
1379
|
-
return e == null ? null : JSON.stringify(e);
|
|
1380
|
-
case "Boolean":
|
|
1381
|
-
return e ? "" : null;
|
|
1382
|
-
case "Number":
|
|
1383
|
-
return e ?? null;
|
|
1384
|
-
default:
|
|
1385
|
-
return e;
|
|
1386
|
-
}
|
|
1387
|
-
else
|
|
1388
|
-
switch (i) {
|
|
1389
|
-
case "Object":
|
|
1390
|
-
case "Array":
|
|
1391
|
-
return e && JSON.parse(e);
|
|
1392
|
-
case "Boolean":
|
|
1393
|
-
return e;
|
|
1394
|
-
case "Number":
|
|
1395
|
-
return e != null ? +e : e;
|
|
1396
|
-
default:
|
|
1397
|
-
return e;
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
|
-
function it(t, e, n, s, i, r) {
|
|
1401
|
-
let o = class extends P {
|
|
1402
|
-
constructor() {
|
|
1403
|
-
super(t, n, i), this.$$p_d = e;
|
|
1404
|
-
}
|
|
1405
|
-
static get observedAttributes() {
|
|
1406
|
-
return Object.keys(e).map(
|
|
1407
|
-
(l) => (e[l].attribute || l).toLowerCase()
|
|
1408
|
-
);
|
|
1409
|
-
}
|
|
1410
|
-
};
|
|
1411
|
-
return Object.keys(e).forEach((l) => {
|
|
1412
|
-
Object.defineProperty(o.prototype, l, {
|
|
1413
|
-
get() {
|
|
1414
|
-
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
1415
|
-
},
|
|
1416
|
-
set(c) {
|
|
1417
|
-
c = g(l, c, e), this.$$d[l] = c, this.$$c?.$set({ [l]: c });
|
|
1418
|
-
}
|
|
1419
|
-
});
|
|
1420
|
-
}), s.forEach((l) => {
|
|
1421
|
-
Object.defineProperty(o.prototype, l, {
|
|
1422
|
-
get() {
|
|
1423
|
-
return this.$$c?.[l];
|
|
1424
|
-
}
|
|
1425
|
-
});
|
|
1426
|
-
}), t.element = /** @type {any} */
|
|
1427
|
-
o, o;
|
|
1428
|
-
}
|
|
1429
|
-
class st {
|
|
1430
|
-
/**
|
|
1431
|
-
* ### PRIVATE API
|
|
1432
|
-
*
|
|
1433
|
-
* Do not use, may change at any time
|
|
1434
|
-
*
|
|
1435
|
-
* @type {any}
|
|
1436
|
-
*/
|
|
1437
|
-
$$ = void 0;
|
|
1438
|
-
/**
|
|
1439
|
-
* ### PRIVATE API
|
|
1440
|
-
*
|
|
1441
|
-
* Do not use, may change at any time
|
|
1442
|
-
*
|
|
1443
|
-
* @type {any}
|
|
1444
|
-
*/
|
|
1445
|
-
$$set = void 0;
|
|
1446
|
-
/** @returns {void} */
|
|
1447
|
-
$destroy() {
|
|
1448
|
-
tt(this, 1), this.$destroy = a;
|
|
1449
|
-
}
|
|
1450
|
-
/**
|
|
1451
|
-
* @template {Extract<keyof Events, string>} K
|
|
1452
|
-
* @param {K} type
|
|
1453
|
-
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
1454
|
-
* @returns {() => void}
|
|
1455
|
-
*/
|
|
1456
|
-
$on(e, n) {
|
|
1457
|
-
if (!N(n))
|
|
1458
|
-
return a;
|
|
1459
|
-
const s = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
1460
|
-
return s.push(n), () => {
|
|
1461
|
-
const i = s.indexOf(n);
|
|
1462
|
-
i !== -1 && s.splice(i, 1);
|
|
1463
|
-
};
|
|
1464
|
-
}
|
|
1465
|
-
/**
|
|
1466
|
-
* @param {Partial<Props>} props
|
|
1467
|
-
* @returns {void}
|
|
1468
|
-
*/
|
|
1469
|
-
$set(e) {
|
|
1470
|
-
this.$$set && !T(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
const rt = "4";
|
|
1474
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(rt);
|
|
1475
|
-
function ct(t, e) {
|
|
1476
|
-
if (t) {
|
|
1477
|
-
const n = document.createElement("style");
|
|
1478
|
-
n.innerHTML = e, t.appendChild(n);
|
|
1479
|
-
}
|
|
1480
|
-
}
|
|
1481
|
-
function ot(t, e) {
|
|
1482
|
-
const n = new URL(e);
|
|
1483
|
-
fetch(n.href).then((s) => s.text()).then((s) => {
|
|
1484
|
-
const i = document.createElement("style");
|
|
1485
|
-
i.innerHTML = s, t && t.appendChild(i);
|
|
1486
|
-
}).catch((s) => {
|
|
1487
|
-
console.error("There was an error while trying to load client styling from URL", s);
|
|
1488
|
-
});
|
|
1489
|
-
}
|
|
1490
|
-
function lt(t, e, n) {
|
|
1491
|
-
if (window.emMessageBus) {
|
|
1492
|
-
const s = document.createElement("style");
|
|
1493
|
-
window.emMessageBus.subscribe(e, (i) => {
|
|
1494
|
-
s.innerHTML = i, t && t.appendChild(s);
|
|
1495
|
-
});
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
|
-
function ut(t) {
|
|
1499
|
-
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)}}");
|
|
1500
|
-
}
|
|
1501
|
-
function dt(t) {
|
|
1502
|
-
let e;
|
|
1503
|
-
return {
|
|
1504
|
-
c() {
|
|
1505
|
-
e = v("div"), e.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
|
|
1506
|
-
},
|
|
1507
|
-
m(n, s) {
|
|
1508
|
-
B(n, e, s), t[4](e);
|
|
1509
|
-
},
|
|
1510
|
-
p: a,
|
|
1511
|
-
i: a,
|
|
1512
|
-
o: a,
|
|
1513
|
-
d(n) {
|
|
1514
|
-
n && E(e), t[4](null);
|
|
1515
|
-
}
|
|
1516
|
-
};
|
|
1517
|
-
}
|
|
1518
|
-
function ft(t, e, n) {
|
|
1519
|
-
let { clientstyling: s = "" } = e, { clientstylingurl: i = "" } = e, { mbsource: r } = e, o;
|
|
1520
|
-
V(() => () => {
|
|
1521
|
-
});
|
|
1522
|
-
function l(c) {
|
|
1523
|
-
w[c ? "unshift" : "push"](() => {
|
|
1524
|
-
o = c, n(0, o);
|
|
1525
|
-
});
|
|
1526
|
-
}
|
|
1527
|
-
return t.$$set = (c) => {
|
|
1528
|
-
"clientstyling" in c && n(1, s = c.clientstyling), "clientstylingurl" in c && n(2, i = c.clientstylingurl), "mbsource" in c && n(3, r = c.mbsource);
|
|
1529
|
-
}, t.$$.update = () => {
|
|
1530
|
-
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
1531
|
-
3 && s && o && ct(o, s), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
1532
|
-
5 && i && o && ot(o, i), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
1533
|
-
9 && r && o && lt(o, `${r}.Style`);
|
|
1534
|
-
}, [
|
|
1535
|
-
o,
|
|
1536
|
-
s,
|
|
1537
|
-
i,
|
|
1538
|
-
r,
|
|
1539
|
-
l
|
|
1540
|
-
];
|
|
1541
|
-
}
|
|
1542
|
-
class $t extends st {
|
|
1543
|
-
constructor(e) {
|
|
1544
|
-
super(), nt(
|
|
1545
|
-
this,
|
|
1546
|
-
e,
|
|
1547
|
-
ft,
|
|
1548
|
-
dt,
|
|
1549
|
-
R,
|
|
1550
|
-
{
|
|
1551
|
-
clientstyling: 1,
|
|
1552
|
-
clientstylingurl: 2,
|
|
1553
|
-
mbsource: 3
|
|
1554
|
-
},
|
|
1555
|
-
ut
|
|
1556
|
-
);
|
|
1557
|
-
}
|
|
1558
|
-
get clientstyling() {
|
|
1559
|
-
return this.$$.ctx[1];
|
|
1560
|
-
}
|
|
1561
|
-
set clientstyling(e) {
|
|
1562
|
-
this.$$set({ clientstyling: e }), m();
|
|
1563
|
-
}
|
|
1564
|
-
get clientstylingurl() {
|
|
1565
|
-
return this.$$.ctx[2];
|
|
1566
|
-
}
|
|
1567
|
-
set clientstylingurl(e) {
|
|
1568
|
-
this.$$set({ clientstylingurl: e }), m();
|
|
1569
|
-
}
|
|
1570
|
-
get mbsource() {
|
|
1571
|
-
return this.$$.ctx[3];
|
|
1572
|
-
}
|
|
1573
|
-
set mbsource(e) {
|
|
1574
|
-
this.$$set({ mbsource: e }), m();
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1577
|
-
it($t, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
1578
|
-
|
|
1579
|
-
function i(n) {
|
|
1580
|
-
return function(...t) {
|
|
1581
|
-
try {
|
|
1582
|
-
return n.apply(this, t);
|
|
1583
|
-
} catch (e) {
|
|
1584
|
-
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"))
|
|
1585
|
-
return !1;
|
|
1586
|
-
throw e;
|
|
1587
|
-
}
|
|
1588
|
-
};
|
|
1589
|
-
}
|
|
1590
|
-
customElements.define = i(customElements.define);
|
|
1591
|
-
!customElements.get("general-animation-loading") && customElements.define("general-animation-loading", $t.element);
|
|
1592
|
-
|
|
1593
1074
|
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}";
|
|
1594
1075
|
const PlayerElevatePointsHistoryStyle0 = playerElevatePointsHistoryCss;
|
|
1595
1076
|
|
|
@@ -1631,7 +1112,7 @@ const PlayerElevatePointsHistory = class {
|
|
|
1631
1112
|
}
|
|
1632
1113
|
loadWallets(renderer) {
|
|
1633
1114
|
if (!this.pointsWallets[this.type] || this.pointsWallets[this.type].isLoading) {
|
|
1634
|
-
return index.h("
|
|
1115
|
+
return index.h("div", { class: "Loading" }, this.locale.loading);
|
|
1635
1116
|
}
|
|
1636
1117
|
else {
|
|
1637
1118
|
if (this.pointsWallets[this.type].wallets.length === 0) {
|
|
@@ -1645,9 +1126,9 @@ const PlayerElevatePointsHistory = class {
|
|
|
1645
1126
|
render() {
|
|
1646
1127
|
var _a, _b;
|
|
1647
1128
|
const pageSetting = this.getPageSettingByType(this.type);
|
|
1648
|
-
return (index.h("main", { key: '
|
|
1129
|
+
return (index.h("main", { key: 'd942867ea3a231e2aece64b5254addfcc38f1058' }, index.h("general-styling-wrapper", { key: '69e69c3116ebc71d610437fcf43fd000fcb663c4', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl,
|
|
1649
1130
|
// @ts-ignore
|
|
1650
|
-
targetTranslations: translation, translationUrl: this.translationUrl }), index.h("player-elevate-pointcard", { key: '
|
|
1131
|
+
targetTranslations: translation, translationUrl: this.translationUrl }), index.h("player-elevate-pointcard", { key: 'b68a7a98b33935c2d2a5895de3ee5518ca6fd6a3', playerAvatarUrl: this.playerAvatarUrl, endpoint: this.endpoint, session: this.session, language: this.language, clientStylingUrl: this.clientStylingUrl, clientStyling: this.clientStyling, translationUrl: this.translationUrl }), index.h("div", { key: 'd5ee5c395cfab035f2cbc3ac189029fef3cae50e', class: "PlayerElevatePointsDetaisContainer" }, [
|
|
1651
1132
|
renderTopBar(this.locale, this.type, pageSetting),
|
|
1652
1133
|
renderTabs(this.locale, this.type, (type) => this.switchTab(type)),
|
|
1653
1134
|
((_a = this.pointsWallets[this.type]) === null || _a === void 0 ? void 0 : _a.isLoadFailed)
|