@everymatrix/casino-engagement-suite-luckywheel-list 0.2.0 → 1.54.4
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/casino-engagement-suite-luckywheel-list/casino-engagement-suite-luckywheel-list.esm.js +1 -1
- package/dist/casino-engagement-suite-luckywheel-list/index.esm.js +1 -1
- package/dist/casino-engagement-suite-luckywheel-list/{p-d670dd01.entry.js → p-06b52e8a.entry.js} +1 -1
- package/dist/casino-engagement-suite-luckywheel-list/p-337bb4b1.js +1 -0
- package/dist/cjs/{casino-engagement-suite-luckywheel-list-78d76a7f.js → casino-engagement-suite-luckywheel-list-7950e3a2.js} +484 -6
- package/dist/cjs/casino-engagement-suite-luckywheel-list_2.cjs.entry.js +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/collection/components/casino-engagement-suite-luckywheel-list/casino-engagement-suite-luckywheel-list.js +1 -1
- package/dist/esm/{casino-engagement-suite-luckywheel-list-4b92f6dd.js → casino-engagement-suite-luckywheel-list-56360247.js} +510 -32
- package/dist/esm/casino-engagement-suite-luckywheel-list_2.entry.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel-list/.stencil/packages/stencil/casino-engagement-suite-luckywheel-list/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel-list/.stencil/packages/stencil/casino-engagement-suite-luckywheel-list/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-luckywheel-list/casino-engagement-suite-luckywheel-list.d.ts +1 -1
- package/package.json +1 -1
- package/dist/casino-engagement-suite-luckywheel-list/p-3bb0fed3.js +0 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel-list/.stencil/packages/stencil/casino-engagement-suite-luckywheel-list/stencil.config.d.ts +0 -2
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel-list/.stencil/packages/stencil/casino-engagement-suite-luckywheel-list/stencil.config.dev.d.ts +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, r as registerInstance, c as createEvent, g as getElement } from './index-0beffa82.js';
|
|
1
|
+
import { h as h$1, r as registerInstance, c as createEvent, g as getElement } from './index-0beffa82.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
const SUPPORTED_LANGUAGES = ['en'];
|
|
@@ -47,13 +47,491 @@ const getTranslations = (url) => {
|
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
50
|
+
function a() {
|
|
51
|
+
}
|
|
52
|
+
function N(t) {
|
|
53
|
+
return t();
|
|
54
|
+
}
|
|
55
|
+
function A() {
|
|
56
|
+
return /* @__PURE__ */ Object.create(null);
|
|
57
|
+
}
|
|
58
|
+
function y(t) {
|
|
59
|
+
t.forEach(N);
|
|
60
|
+
}
|
|
61
|
+
function P(t) {
|
|
62
|
+
return typeof t == "function";
|
|
63
|
+
}
|
|
64
|
+
function B(t, e) {
|
|
65
|
+
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
66
|
+
}
|
|
67
|
+
function R(t) {
|
|
68
|
+
return Object.keys(t).length === 0;
|
|
69
|
+
}
|
|
70
|
+
function H(t, e) {
|
|
71
|
+
t.appendChild(e);
|
|
72
|
+
}
|
|
73
|
+
function I(t, e, n) {
|
|
74
|
+
const s = U(t);
|
|
75
|
+
if (!s.getElementById(e)) {
|
|
76
|
+
const i = v("style");
|
|
77
|
+
i.id = e, i.textContent = n, D(s, i);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
function U(t) {
|
|
81
|
+
if (!t) return document;
|
|
82
|
+
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
83
|
+
return e && /** @type {ShadowRoot} */
|
|
84
|
+
e.host ? (
|
|
85
|
+
/** @type {ShadowRoot} */
|
|
86
|
+
e
|
|
87
|
+
) : t.ownerDocument;
|
|
88
|
+
}
|
|
89
|
+
function D(t, e) {
|
|
90
|
+
return H(
|
|
91
|
+
/** @type {Document} */
|
|
92
|
+
t.head || t,
|
|
93
|
+
e
|
|
94
|
+
), e.sheet;
|
|
95
|
+
}
|
|
96
|
+
function M(t, e, n) {
|
|
97
|
+
t.insertBefore(e, n || null);
|
|
98
|
+
}
|
|
99
|
+
function E(t) {
|
|
100
|
+
t.parentNode && t.parentNode.removeChild(t);
|
|
101
|
+
}
|
|
102
|
+
function v(t) {
|
|
103
|
+
return document.createElement(t);
|
|
104
|
+
}
|
|
105
|
+
function G(t, e, n) {
|
|
106
|
+
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
|
107
|
+
}
|
|
108
|
+
function J(t) {
|
|
109
|
+
return Array.from(t.childNodes);
|
|
110
|
+
}
|
|
111
|
+
function V(t) {
|
|
112
|
+
const e = {};
|
|
113
|
+
return t.childNodes.forEach(
|
|
114
|
+
/** @param {Element} node */
|
|
115
|
+
(n) => {
|
|
116
|
+
e[n.slot || "default"] = !0;
|
|
117
|
+
}
|
|
118
|
+
), e;
|
|
119
|
+
}
|
|
120
|
+
let C;
|
|
121
|
+
function p(t) {
|
|
122
|
+
C = t;
|
|
123
|
+
}
|
|
124
|
+
const f = [], x = [];
|
|
125
|
+
let h = [];
|
|
126
|
+
const S = [], z = /* @__PURE__ */ Promise.resolve();
|
|
127
|
+
let w = !1;
|
|
128
|
+
function F() {
|
|
129
|
+
w || (w = !0, z.then(m));
|
|
130
|
+
}
|
|
131
|
+
function k(t) {
|
|
132
|
+
h.push(t);
|
|
133
|
+
}
|
|
134
|
+
const b = /* @__PURE__ */ new Set();
|
|
135
|
+
let $ = 0;
|
|
136
|
+
function m() {
|
|
137
|
+
if ($ !== 0)
|
|
138
|
+
return;
|
|
139
|
+
const t = C;
|
|
140
|
+
do {
|
|
141
|
+
try {
|
|
142
|
+
for (; $ < f.length; ) {
|
|
143
|
+
const e = f[$];
|
|
144
|
+
$++, p(e), q(e.$$);
|
|
145
|
+
}
|
|
146
|
+
} catch (e) {
|
|
147
|
+
throw f.length = 0, $ = 0, e;
|
|
148
|
+
}
|
|
149
|
+
for (p(null), f.length = 0, $ = 0; x.length; ) x.pop()();
|
|
150
|
+
for (let e = 0; e < h.length; e += 1) {
|
|
151
|
+
const n = h[e];
|
|
152
|
+
b.has(n) || (b.add(n), n());
|
|
153
|
+
}
|
|
154
|
+
h.length = 0;
|
|
155
|
+
} while (f.length);
|
|
156
|
+
for (; S.length; )
|
|
157
|
+
S.pop()();
|
|
158
|
+
w = !1, b.clear(), p(t);
|
|
159
|
+
}
|
|
160
|
+
function q(t) {
|
|
161
|
+
if (t.fragment !== null) {
|
|
162
|
+
t.update(), y(t.before_update);
|
|
163
|
+
const e = t.dirty;
|
|
164
|
+
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(k);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
function K(t) {
|
|
168
|
+
const e = [], n = [];
|
|
169
|
+
h.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), h = e;
|
|
170
|
+
}
|
|
171
|
+
const Q = /* @__PURE__ */ new Set();
|
|
172
|
+
function W(t, e) {
|
|
173
|
+
t && t.i && (Q.delete(t), t.i(e));
|
|
174
|
+
}
|
|
175
|
+
function X(t, e, n) {
|
|
176
|
+
const { fragment: s, after_update: i } = t.$$;
|
|
177
|
+
s && s.m(e, n), k(() => {
|
|
178
|
+
const l = t.$$.on_mount.map(N).filter(P);
|
|
179
|
+
t.$$.on_destroy ? t.$$.on_destroy.push(...l) : y(l), t.$$.on_mount = [];
|
|
180
|
+
}), i.forEach(k);
|
|
181
|
+
}
|
|
182
|
+
function Y(t, e) {
|
|
183
|
+
const n = t.$$;
|
|
184
|
+
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 = []);
|
|
185
|
+
}
|
|
186
|
+
function Z(t, e) {
|
|
187
|
+
t.$$.dirty[0] === -1 && (f.push(t), F(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
188
|
+
}
|
|
189
|
+
function tt(t, e, n, s, i, l, u = null, c = [-1]) {
|
|
190
|
+
const o = C;
|
|
191
|
+
p(t);
|
|
192
|
+
const r = t.$$ = {
|
|
193
|
+
fragment: null,
|
|
194
|
+
ctx: [],
|
|
195
|
+
// state
|
|
196
|
+
props: l,
|
|
197
|
+
update: a,
|
|
198
|
+
not_equal: i,
|
|
199
|
+
bound: A(),
|
|
200
|
+
// lifecycle
|
|
201
|
+
on_mount: [],
|
|
202
|
+
on_destroy: [],
|
|
203
|
+
on_disconnect: [],
|
|
204
|
+
before_update: [],
|
|
205
|
+
after_update: [],
|
|
206
|
+
context: new Map(e.context || (o ? o.$$.context : [])),
|
|
207
|
+
// everything else
|
|
208
|
+
callbacks: A(),
|
|
209
|
+
dirty: c,
|
|
210
|
+
skip_bound: !1,
|
|
211
|
+
root: e.target || o.$$.root
|
|
212
|
+
};
|
|
213
|
+
u && u(r.root);
|
|
214
|
+
let _ = !1;
|
|
215
|
+
if (r.ctx = n(t, e.props || {}, (d, L, ...j) => {
|
|
216
|
+
const O = j.length ? j[0] : L;
|
|
217
|
+
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;
|
|
218
|
+
}), r.update(), _ = !0, y(r.before_update), r.fragment = s(r.ctx), e.target) {
|
|
219
|
+
if (e.hydrate) {
|
|
220
|
+
const d = J(e.target);
|
|
221
|
+
r.fragment && r.fragment.l(d), d.forEach(E);
|
|
222
|
+
} else
|
|
223
|
+
r.fragment && r.fragment.c();
|
|
224
|
+
e.intro && W(t.$$.fragment), X(t, e.target, e.anchor), m();
|
|
225
|
+
}
|
|
226
|
+
p(o);
|
|
227
|
+
}
|
|
228
|
+
let T;
|
|
229
|
+
typeof HTMLElement == "function" && (T = class extends HTMLElement {
|
|
230
|
+
/** The Svelte component constructor */
|
|
231
|
+
$$ctor;
|
|
232
|
+
/** Slots */
|
|
233
|
+
$$s;
|
|
234
|
+
/** The Svelte component instance */
|
|
235
|
+
$$c;
|
|
236
|
+
/** Whether or not the custom element is connected */
|
|
237
|
+
$$cn = !1;
|
|
238
|
+
/** Component props data */
|
|
239
|
+
$$d = {};
|
|
240
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
241
|
+
$$r = !1;
|
|
242
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
243
|
+
$$p_d = {};
|
|
244
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
245
|
+
$$l = {};
|
|
246
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
247
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
248
|
+
constructor(t, e, n) {
|
|
249
|
+
super(), this.$$ctor = t, this.$$s = e, n && this.attachShadow({ mode: "open" });
|
|
250
|
+
}
|
|
251
|
+
addEventListener(t, e, n) {
|
|
252
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
|
|
253
|
+
const s = this.$$c.$on(t, e);
|
|
254
|
+
this.$$l_u.set(e, s);
|
|
255
|
+
}
|
|
256
|
+
super.addEventListener(t, e, n);
|
|
257
|
+
}
|
|
258
|
+
removeEventListener(t, e, n) {
|
|
259
|
+
if (super.removeEventListener(t, e, n), this.$$c) {
|
|
260
|
+
const s = this.$$l_u.get(e);
|
|
261
|
+
s && (s(), this.$$l_u.delete(e));
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
async connectedCallback() {
|
|
265
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
266
|
+
let t = function(i) {
|
|
267
|
+
return () => {
|
|
268
|
+
let l;
|
|
269
|
+
return {
|
|
270
|
+
c: function() {
|
|
271
|
+
l = v("slot"), i !== "default" && G(l, "name", i);
|
|
272
|
+
},
|
|
273
|
+
/**
|
|
274
|
+
* @param {HTMLElement} target
|
|
275
|
+
* @param {HTMLElement} [anchor]
|
|
276
|
+
*/
|
|
277
|
+
m: function(o, r) {
|
|
278
|
+
M(o, l, r);
|
|
279
|
+
},
|
|
280
|
+
d: function(o) {
|
|
281
|
+
o && E(l);
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
287
|
+
return;
|
|
288
|
+
const e = {}, n = V(this);
|
|
289
|
+
for (const i of this.$$s)
|
|
290
|
+
i in n && (e[i] = [t(i)]);
|
|
291
|
+
for (const i of this.attributes) {
|
|
292
|
+
const l = this.$$g_p(i.name);
|
|
293
|
+
l in this.$$d || (this.$$d[l] = g(l, i.value, this.$$p_d, "toProp"));
|
|
294
|
+
}
|
|
295
|
+
for (const i in this.$$p_d)
|
|
296
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
297
|
+
this.$$c = new this.$$ctor({
|
|
298
|
+
target: this.shadowRoot || this,
|
|
299
|
+
props: {
|
|
300
|
+
...this.$$d,
|
|
301
|
+
$$slots: e,
|
|
302
|
+
$$scope: {
|
|
303
|
+
ctx: []
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
const s = () => {
|
|
308
|
+
this.$$r = !0;
|
|
309
|
+
for (const i in this.$$p_d)
|
|
310
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
311
|
+
const l = g(
|
|
312
|
+
i,
|
|
313
|
+
this.$$d[i],
|
|
314
|
+
this.$$p_d,
|
|
315
|
+
"toAttribute"
|
|
316
|
+
);
|
|
317
|
+
l == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, l);
|
|
318
|
+
}
|
|
319
|
+
this.$$r = !1;
|
|
320
|
+
};
|
|
321
|
+
this.$$c.$$.after_update.push(s), s();
|
|
322
|
+
for (const i in this.$$l)
|
|
323
|
+
for (const l of this.$$l[i]) {
|
|
324
|
+
const u = this.$$c.$on(i, l);
|
|
325
|
+
this.$$l_u.set(l, u);
|
|
326
|
+
}
|
|
327
|
+
this.$$l = {};
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
331
|
+
// and setting attributes through setAttribute etc, this is helpful
|
|
332
|
+
attributeChangedCallback(t, e, n) {
|
|
333
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = g(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
334
|
+
}
|
|
335
|
+
disconnectedCallback() {
|
|
336
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
337
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
$$g_p(t) {
|
|
341
|
+
return Object.keys(this.$$p_d).find(
|
|
342
|
+
(e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
|
|
343
|
+
) || t;
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
function g(t, e, n, s) {
|
|
347
|
+
const i = n[t]?.type;
|
|
348
|
+
if (e = i === "Boolean" && typeof e != "boolean" ? e != null : e, !s || !n[t])
|
|
349
|
+
return e;
|
|
350
|
+
if (s === "toAttribute")
|
|
351
|
+
switch (i) {
|
|
352
|
+
case "Object":
|
|
353
|
+
case "Array":
|
|
354
|
+
return e == null ? null : JSON.stringify(e);
|
|
355
|
+
case "Boolean":
|
|
356
|
+
return e ? "" : null;
|
|
357
|
+
case "Number":
|
|
358
|
+
return e ?? null;
|
|
359
|
+
default:
|
|
360
|
+
return e;
|
|
361
|
+
}
|
|
362
|
+
else
|
|
363
|
+
switch (i) {
|
|
364
|
+
case "Object":
|
|
365
|
+
case "Array":
|
|
366
|
+
return e && JSON.parse(e);
|
|
367
|
+
case "Boolean":
|
|
368
|
+
return e;
|
|
369
|
+
case "Number":
|
|
370
|
+
return e != null ? +e : e;
|
|
371
|
+
default:
|
|
372
|
+
return e;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
function et(t, e, n, s, i, l) {
|
|
376
|
+
let u = class extends T {
|
|
377
|
+
constructor() {
|
|
378
|
+
super(t, n, i), this.$$p_d = e;
|
|
379
|
+
}
|
|
380
|
+
static get observedAttributes() {
|
|
381
|
+
return Object.keys(e).map(
|
|
382
|
+
(c) => (e[c].attribute || c).toLowerCase()
|
|
383
|
+
);
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
return Object.keys(e).forEach((c) => {
|
|
387
|
+
Object.defineProperty(u.prototype, c, {
|
|
388
|
+
get() {
|
|
389
|
+
return this.$$c && c in this.$$c ? this.$$c[c] : this.$$d[c];
|
|
390
|
+
},
|
|
391
|
+
set(o) {
|
|
392
|
+
o = g(c, o, e), this.$$d[c] = o, this.$$c?.$set({ [c]: o });
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
}), s.forEach((c) => {
|
|
396
|
+
Object.defineProperty(u.prototype, c, {
|
|
397
|
+
get() {
|
|
398
|
+
return this.$$c?.[c];
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
}), t.element = /** @type {any} */
|
|
402
|
+
u, u;
|
|
403
|
+
}
|
|
404
|
+
class nt {
|
|
405
|
+
/**
|
|
406
|
+
* ### PRIVATE API
|
|
407
|
+
*
|
|
408
|
+
* Do not use, may change at any time
|
|
409
|
+
*
|
|
410
|
+
* @type {any}
|
|
411
|
+
*/
|
|
412
|
+
$$ = void 0;
|
|
413
|
+
/**
|
|
414
|
+
* ### PRIVATE API
|
|
415
|
+
*
|
|
416
|
+
* Do not use, may change at any time
|
|
417
|
+
*
|
|
418
|
+
* @type {any}
|
|
419
|
+
*/
|
|
420
|
+
$$set = void 0;
|
|
421
|
+
/** @returns {void} */
|
|
422
|
+
$destroy() {
|
|
423
|
+
Y(this, 1), this.$destroy = a;
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* @template {Extract<keyof Events, string>} K
|
|
427
|
+
* @param {K} type
|
|
428
|
+
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
429
|
+
* @returns {() => void}
|
|
430
|
+
*/
|
|
431
|
+
$on(e, n) {
|
|
432
|
+
if (!P(n))
|
|
433
|
+
return a;
|
|
434
|
+
const s = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
435
|
+
return s.push(n), () => {
|
|
436
|
+
const i = s.indexOf(n);
|
|
437
|
+
i !== -1 && s.splice(i, 1);
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* @param {Partial<Props>} props
|
|
442
|
+
* @returns {void}
|
|
443
|
+
*/
|
|
444
|
+
$set(e) {
|
|
445
|
+
this.$$set && !R(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
const it = "4";
|
|
449
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(it);
|
|
450
|
+
function st(t) {
|
|
451
|
+
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)}}");
|
|
452
|
+
}
|
|
453
|
+
function rt(t) {
|
|
454
|
+
let e;
|
|
455
|
+
return {
|
|
456
|
+
c() {
|
|
457
|
+
e = v("div"), e.innerHTML = '<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
|
|
458
|
+
},
|
|
459
|
+
m(n, s) {
|
|
460
|
+
M(n, e, s), t[3](e);
|
|
461
|
+
},
|
|
462
|
+
p: a,
|
|
463
|
+
i: a,
|
|
464
|
+
o: a,
|
|
465
|
+
d(n) {
|
|
466
|
+
n && E(e), t[3](null);
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
function lt(t, e, n) {
|
|
471
|
+
let { clientstyling: s = "" } = e, { clientstylingurl: i = "" } = e, l;
|
|
472
|
+
const u = () => {
|
|
473
|
+
let r = document.createElement("style");
|
|
474
|
+
r.innerHTML = s, l.appendChild(r);
|
|
475
|
+
}, c = () => {
|
|
476
|
+
let r = new URL(i), _ = document.createElement("style");
|
|
477
|
+
fetch(r.href).then((d) => d.text()).then((d) => {
|
|
478
|
+
_.innerHTML = d, setTimeout(
|
|
479
|
+
() => {
|
|
480
|
+
l.appendChild(_);
|
|
481
|
+
},
|
|
482
|
+
1
|
|
483
|
+
), setTimeout(
|
|
484
|
+
() => {
|
|
485
|
+
},
|
|
486
|
+
500
|
|
487
|
+
);
|
|
488
|
+
});
|
|
489
|
+
};
|
|
490
|
+
function o(r) {
|
|
491
|
+
x[r ? "unshift" : "push"](() => {
|
|
492
|
+
l = r, n(0, l);
|
|
493
|
+
});
|
|
494
|
+
}
|
|
495
|
+
return t.$$set = (r) => {
|
|
496
|
+
"clientstyling" in r && n(1, s = r.clientstyling), "clientstylingurl" in r && n(2, i = r.clientstylingurl);
|
|
497
|
+
}, t.$$.update = () => {
|
|
498
|
+
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
499
|
+
3 && s && l && u(), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
500
|
+
5 && i && l && c();
|
|
501
|
+
}, [l, s, i, o];
|
|
502
|
+
}
|
|
503
|
+
class ct extends nt {
|
|
504
|
+
constructor(e) {
|
|
505
|
+
super(), tt(this, e, lt, rt, B, { clientstyling: 1, clientstylingurl: 2 }, st);
|
|
506
|
+
}
|
|
507
|
+
get clientstyling() {
|
|
508
|
+
return this.$$.ctx[1];
|
|
509
|
+
}
|
|
510
|
+
set clientstyling(e) {
|
|
511
|
+
this.$$set({ clientstyling: e }), m();
|
|
512
|
+
}
|
|
513
|
+
get clientstylingurl() {
|
|
514
|
+
return this.$$.ctx[2];
|
|
515
|
+
}
|
|
516
|
+
set clientstylingurl(e) {
|
|
517
|
+
this.$$set({ clientstylingurl: e }), m();
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
et(ct, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
55
521
|
|
|
56
|
-
|
|
522
|
+
function i(n) {
|
|
523
|
+
return function(...t) {
|
|
524
|
+
try {
|
|
525
|
+
return n.apply(this, t);
|
|
526
|
+
} catch (e) {
|
|
527
|
+
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"))
|
|
528
|
+
return !1;
|
|
529
|
+
throw e;
|
|
530
|
+
}
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
customElements.define = i(customElements.define);
|
|
534
|
+
!customElements.get("general-animation-loading") && customElements.define("general-animation-loading", ct.element);
|
|
57
535
|
|
|
58
536
|
var LuckyWheelRewardType;
|
|
59
537
|
(function (LuckyWheelRewardType) {
|
|
@@ -2267,9 +2745,9 @@ function cleanEscapedString(input) {
|
|
|
2267
2745
|
}
|
|
2268
2746
|
|
|
2269
2747
|
const getHistoryLoaderTemplate = (lang) => {
|
|
2270
|
-
return h("div", { class: "HistoryLoader" },
|
|
2271
|
-
h("casino-engagement-suite-progress-bar", { indeterminate: true }),
|
|
2272
|
-
h("span", null, translate('loading', lang)));
|
|
2748
|
+
return h$1("div", { class: "HistoryLoader" },
|
|
2749
|
+
h$1("casino-engagement-suite-progress-bar", { indeterminate: true }),
|
|
2750
|
+
h$1("span", null, translate('loading', lang)));
|
|
2273
2751
|
};
|
|
2274
2752
|
const getRewards = (luckywheel, result) => {
|
|
2275
2753
|
var _a, _b, _c, _d;
|
|
@@ -2279,27 +2757,27 @@ const getRewards = (luckywheel, result) => {
|
|
|
2279
2757
|
const assets = (_d = (_c = luckywheel.program.wheelOfFortune) === null || _c === void 0 ? void 0 : _c.partitions[index]) === null || _d === void 0 ? void 0 : _d.image1;
|
|
2280
2758
|
const displayAssets = assets['en'] || assets['*'];
|
|
2281
2759
|
const programName = luckywheel.program.name['en'] || luckywheel.program.name['*'];
|
|
2282
|
-
return h("div", { class: "HistoryRewards" }, displayName ? displayName : displayAssets ? (h("img", { src: displayAssets })) : programName);
|
|
2760
|
+
return h$1("div", { class: "HistoryRewards" }, displayName ? displayName : displayAssets ? (h$1("img", { src: displayAssets })) : programName);
|
|
2283
2761
|
};
|
|
2284
2762
|
const getStatus = (state) => {
|
|
2285
2763
|
return state === 'fulfilled' ? 'Success' : 'Failed';
|
|
2286
2764
|
};
|
|
2287
2765
|
const getLuckyWheelsHistoryTemplate = (luckywheels, historyGroups, openedHistoryIds, toggleLuckyWheelHistory, lang) => {
|
|
2288
2766
|
if (luckywheels.length === 0) {
|
|
2289
|
-
return h("p", { class: "HistoryEmptyMessage" }, translate('noHistory', lang));
|
|
2767
|
+
return h$1("p", { class: "HistoryEmptyMessage" }, translate('noHistory', lang));
|
|
2290
2768
|
}
|
|
2291
|
-
return h("div", { class: "HistoryList" }, luckywheels.map((luckywheel) => {
|
|
2292
|
-
return h("div", { key: luckywheel.program.id, class: `HistoryListItem ${openedHistoryIds.includes(luckywheel.program.id) ? 'Opened' : 'Closed'}` },
|
|
2293
|
-
h("header", { class: "HistoryListItemHeader", "data-id": luckywheel.program.id, onClick: toggleLuckyWheelHistory },
|
|
2769
|
+
return h$1("div", { class: "HistoryList" }, luckywheels.map((luckywheel) => {
|
|
2770
|
+
return h$1("div", { key: luckywheel.program.id, class: `HistoryListItem ${openedHistoryIds.includes(luckywheel.program.id) ? 'Opened' : 'Closed'}` },
|
|
2771
|
+
h$1("header", { class: "HistoryListItemHeader", "data-id": luckywheel.program.id, onClick: toggleLuckyWheelHistory },
|
|
2294
2772
|
luckywheel.program.name['en'] || luckywheel.program.name['*'],
|
|
2295
|
-
h("button", { class: "EngagementSuiteIconButton ArrowDown" })),
|
|
2296
|
-
h("div", { class: "HistoryListItemBody" },
|
|
2297
|
-
h("div", { class: "HistoryInfoRow" }, Object.entries(historyGroups).map((histories) => {
|
|
2773
|
+
h$1("button", { class: "EngagementSuiteIconButton ArrowDown" })),
|
|
2774
|
+
h$1("div", { class: "HistoryListItemBody" },
|
|
2775
|
+
h$1("div", { class: "HistoryInfoRow" }, Object.entries(historyGroups).map((histories) => {
|
|
2298
2776
|
return histories[0] === luckywheel.program.id && histories[1].map((history) => {
|
|
2299
|
-
return h("div", { class: "HistoryInfo" },
|
|
2300
|
-
h("div", { class: "HistoryCol Rewards" }, getRewards(luckywheel, history.draw.result)),
|
|
2301
|
-
h("div", { class: "HistoryCol Issued" }, getStatus(history.draw.state)),
|
|
2302
|
-
h("div", { class: "HistoryCol Time" }, format(new Date(history.draw.time), 'LLL d, yyyy HH:mm:ss')));
|
|
2777
|
+
return h$1("div", { class: "HistoryInfo" },
|
|
2778
|
+
h$1("div", { class: "HistoryCol Rewards" }, getRewards(luckywheel, history.draw.result)),
|
|
2779
|
+
h$1("div", { class: "HistoryCol Issued" }, getStatus(history.draw.state)),
|
|
2780
|
+
h$1("div", { class: "HistoryCol Time" }, format(new Date(history.draw.time), 'LLL d, yyyy HH:mm:ss')));
|
|
2303
2781
|
});
|
|
2304
2782
|
}))));
|
|
2305
2783
|
}));
|
|
@@ -2532,41 +3010,41 @@ const CasinoEngagementSuiteLuckyWheelList = class {
|
|
|
2532
3010
|
}
|
|
2533
3011
|
getLuckyWheelHeaderTemplate(luckywheel) {
|
|
2534
3012
|
var _a, _b;
|
|
2535
|
-
return (h("div", { class: "LuckyWheelsCardHeader" }, h("div", { class: `LuckyWheelsName` }, this.getLuckyWheelName(luckywheel)), (h("div", { class: "LuckyWheelsCounter" }, h("div", { class: `${((_a = luckywheel.current) === null || _a === void 0 ? void 0 : _a.remainingTimes) ? 'LuckyWheelsHighlightedCounter' : 'LuckyWheelsEmptyCounter'}` }, (_b = luckywheel.current) === null || _b === void 0 ? void 0 : _b.remainingTimes)))));
|
|
3013
|
+
return (h$1("div", { class: "LuckyWheelsCardHeader" }, h$1("div", { class: `LuckyWheelsName` }, this.getLuckyWheelName(luckywheel)), (h$1("div", { class: "LuckyWheelsCounter" }, h$1("div", { class: `${((_a = luckywheel.current) === null || _a === void 0 ? void 0 : _a.remainingTimes) ? 'LuckyWheelsHighlightedCounter' : 'LuckyWheelsEmptyCounter'}` }, (_b = luckywheel.current) === null || _b === void 0 ? void 0 : _b.remainingTimes)))));
|
|
2536
3014
|
}
|
|
2537
3015
|
getLuckyWheelTemplate(luckywheel, index) {
|
|
2538
3016
|
const countdown = this.timers[luckywheel.program.id];
|
|
2539
3017
|
//TODO: canceled status
|
|
2540
3018
|
const isCanceled = luckywheel.current.remainingTimes === 0;
|
|
2541
|
-
return (h("div", { class: this.getLuckyWheelClasses(luckywheel), onClick: this.handleLuckyWheelClick, key: luckywheel.program.id, "data-id": luckywheel.program.id, "data-index": index }, this.getLuckyWheelHeaderTemplate(luckywheel), isCanceled ? (h("div", { class: "ForfeitedMessage" }, h("div", null, translate('canceled', this.language)), h("div", null, translate('support', this.language)))) : (h("div", { class: "LuckyWheelsCountdownWrapper" }, h("span", { class: "LuckyWheelsCountdown" }, countdown)))));
|
|
3019
|
+
return (h$1("div", { class: this.getLuckyWheelClasses(luckywheel), onClick: this.handleLuckyWheelClick, key: luckywheel.program.id, "data-id": luckywheel.program.id, "data-index": index }, this.getLuckyWheelHeaderTemplate(luckywheel), isCanceled ? (h$1("div", { class: "ForfeitedMessage" }, h$1("div", null, translate('canceled', this.language)), h$1("div", null, translate('support', this.language)))) : (h$1("div", { class: "LuckyWheelsCountdownWrapper" }, h$1("span", { class: "LuckyWheelsCountdown" }, countdown)))));
|
|
2542
3020
|
}
|
|
2543
3021
|
getHeaderTemplate() {
|
|
2544
|
-
return h("header", { class: "LuckyWheelsListPopupHeader" }, h("button", { onClick: this.showTooltip, class: "EngagementSuiteIconButton Help" }), h("div", { class: "LuckyWheelsListPopupHeaderName" }, translate('luckyWheel', this.language)), h("button", { class: "EngagementSuiteIconButton Close", onClick: this.handleCloseClick }));
|
|
3022
|
+
return h$1("header", { class: "LuckyWheelsListPopupHeader" }, h$1("button", { onClick: this.showTooltip, class: "EngagementSuiteIconButton Help" }), h$1("div", { class: "LuckyWheelsListPopupHeaderName" }, translate('luckyWheel', this.language)), h$1("button", { class: "EngagementSuiteIconButton Close", onClick: this.handleCloseClick }));
|
|
2545
3023
|
}
|
|
2546
3024
|
getListTemplate() {
|
|
2547
3025
|
if (this.isLoading) {
|
|
2548
|
-
return h("general-animation-loading", null);
|
|
3026
|
+
return h$1("general-animation-loading", null);
|
|
2549
3027
|
}
|
|
2550
3028
|
if (this.luckywheels.length) {
|
|
2551
|
-
return h("div", { class: "LuckyWheelsListWrapper" }, h("div", { class: "LuckyWheelsList" }, this.luckywheels.map((luckywheel, index) => this.getLuckyWheelTemplate(luckywheel, index))));
|
|
3029
|
+
return h$1("div", { class: "LuckyWheelsListWrapper" }, h$1("div", { class: "LuckyWheelsList" }, this.luckywheels.map((luckywheel, index) => this.getLuckyWheelTemplate(luckywheel, index))));
|
|
2552
3030
|
}
|
|
2553
3031
|
else {
|
|
2554
|
-
return h("div", { class: "LuckyWheelsListEmpty" }, h("h2", null, translate('noluckywheels', this.language)), h("p", null, translate('tryOtherGames', this.language)));
|
|
3032
|
+
return h$1("div", { class: "LuckyWheelsListEmpty" }, h$1("h2", null, translate('noluckywheels', this.language)), h$1("p", null, translate('tryOtherGames', this.language)));
|
|
2555
3033
|
}
|
|
2556
3034
|
}
|
|
2557
3035
|
getTooltipTemplate() {
|
|
2558
3036
|
if (this.tooltip) {
|
|
2559
|
-
return h("div", { class: "EngagementSuiteTooltipBackdrop" }, h("div", { class: "EngagementSuiteTooltip" }, h("button", { class: "EngagementSuiteIconButton Close", onClick: this.hideTooltip }), translate('tooltip', this.language)));
|
|
3037
|
+
return h$1("div", { class: "EngagementSuiteTooltipBackdrop" }, h$1("div", { class: "EngagementSuiteTooltip" }, h$1("button", { class: "EngagementSuiteIconButton Close", onClick: this.hideTooltip }), translate('tooltip', this.language)));
|
|
2560
3038
|
}
|
|
2561
3039
|
else {
|
|
2562
3040
|
return '';
|
|
2563
3041
|
}
|
|
2564
3042
|
}
|
|
2565
3043
|
getTabsTemplate() {
|
|
2566
|
-
return h("div", { class: "EngagementSuiteTabsWrapper" }, h("div", { class: "EngagementSuiteTabs" }, h("div", { "data-index": "1", onClick: this.handleTabChange, class: `EngagementSuiteTab ${this.activeTab === 1 ? 'Active' : ''}` }, translate('luckywheels', this.language)), h("div", { "data-index": "2", onClick: this.handleTabChange, class: `EngagementSuiteTab ${this.activeTab === 2 ? 'Active' : ''}` }, translate('history', this.language))));
|
|
3044
|
+
return h$1("div", { class: "EngagementSuiteTabsWrapper" }, h$1("div", { class: "EngagementSuiteTabs" }, h$1("div", { "data-index": "1", onClick: this.handleTabChange, class: `EngagementSuiteTab ${this.activeTab === 1 ? 'Active' : ''}` }, translate('luckywheels', this.language)), h$1("div", { "data-index": "2", onClick: this.handleTabChange, class: `EngagementSuiteTab ${this.activeTab === 2 ? 'Active' : ''}` }, translate('history', this.language))));
|
|
2567
3045
|
}
|
|
2568
3046
|
getHistoryTabTemplate() {
|
|
2569
|
-
return h("div", { class: "HistoryWrapper" }, h("div", { class: "HistoryCols" }, h("div", { class: "HistoryColName Rewards" }, translate('rewards', this.language)), h("div", { class: "HistoryColName Issued" }, translate('issued', this.language)), h("div", { class: "HistoryColName Time" }, translate('time', this.language))), this.historyLoading
|
|
3047
|
+
return h$1("div", { class: "HistoryWrapper" }, h$1("div", { class: "HistoryCols" }, h$1("div", { class: "HistoryColName Rewards" }, translate('rewards', this.language)), h$1("div", { class: "HistoryColName Issued" }, translate('issued', this.language)), h$1("div", { class: "HistoryColName Time" }, translate('time', this.language))), this.historyLoading
|
|
2570
3048
|
? getHistoryLoaderTemplate(this.language)
|
|
2571
3049
|
: getLuckyWheelsHistoryTemplate(this.luckywheels, this.luckywheelHistory, this.openedHistoryIds, this.toggleLuckyWheelHistory, this.language));
|
|
2572
3050
|
}
|
|
@@ -2576,7 +3054,7 @@ const CasinoEngagementSuiteLuckyWheelList = class {
|
|
|
2576
3054
|
: this.getHistoryTabTemplate();
|
|
2577
3055
|
}
|
|
2578
3056
|
render() {
|
|
2579
|
-
return h("div", { key: 'bec9d35e1b9362a5098ab53c9fddb620b407b17e', class: `LuckyWheelsListPopup ${this.device}` }, this.getHeaderTemplate(), this.getTabsTemplate(), this.getTabsContentTemplate(), this.getTooltipTemplate());
|
|
3057
|
+
return h$1("div", { key: 'bec9d35e1b9362a5098ab53c9fddb620b407b17e', class: `LuckyWheelsListPopup ${this.device}` }, this.getHeaderTemplate(), this.getTabsTemplate(), this.getTabsContentTemplate(), this.getTooltipTemplate());
|
|
2580
3058
|
}
|
|
2581
3059
|
get host() { return getElement(this); }
|
|
2582
3060
|
static get watchers() { return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as casino_engagement_suite_luckywheel_list } from './casino-engagement-suite-luckywheel-list-
|
|
1
|
+
export { C as casino_engagement_suite_luckywheel_list } from './casino-engagement-suite-luckywheel-list-56360247.js';
|
|
2
2
|
import { r as registerInstance, h, g as getElement } from './index-0beffa82.js';
|
|
3
3
|
|
|
4
4
|
const casinoEngagementSuiteProgressBarCss = ":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:var(--emw--font-size-small, 14px);line-height:14px}@keyframes indeterminate{0%{left:-200%;right:100%}60%{left:110%;right:-10%}to{left:110%;right:-10%}}.ProgressBarBackground{height:8px;background-color:var(--emw--color-gray-300, #666178);border-radius:var(--emw--border-radius-small, 4px);position:relative;overflow:hidden}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));transition:width ease-out 0.3s}.ProgressBarLine.Indeterminate{animation:indeterminate 1s linear infinite}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 12px);line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-gray-300, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as CasinoEngagementSuiteLuckyWheelList } from './casino-engagement-suite-luckywheel-list-
|
|
1
|
+
export { C as CasinoEngagementSuiteLuckyWheelList } from './casino-engagement-suite-luckywheel-list-56360247.js';
|
|
2
2
|
import './index-0beffa82.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import "../../../../../../dist/packages/stencil/casino-engagement-suite-progress-bar/dist/types/index";
|
|
3
|
-
import "../../../../../../dist/packages/svelte/general-animation-loading/
|
|
3
|
+
import "../../../../../../dist/packages/svelte/general-animation-loading/esnext/general-animation-loading";
|
|
4
4
|
import { LuckyWheel } from '../../components';
|
|
5
5
|
import { LuckyWheelHistory } from '../../models/luckywheel';
|
|
6
6
|
export declare class CasinoEngagementSuiteLuckyWheelList {
|