@everymatrix/casino-engagement-suite-luckywheel-list 1.58.1 → 1.59.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-188ff5f5.entry.js +1 -0
- package/dist/casino-engagement-suite-luckywheel-list/p-75e1bc2e.js +15 -0
- package/dist/cjs/{casino-engagement-suite-luckywheel-list-660f479c.js → casino-engagement-suite-luckywheel-list-8d3c0caf.js} +1 -528
- package/dist/cjs/casino-engagement-suite-luckywheel-list_2.cjs.entry.js +2 -1
- package/dist/cjs/index.cjs.js +2 -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-a950eff2.js → casino-engagement-suite-luckywheel-list-27298430.js} +27 -554
- package/dist/esm/casino-engagement-suite-luckywheel-list_2.entry.js +2 -1
- package/dist/esm/index.js +2 -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-19bf678d.entry.js +0 -1
- package/dist/casino-engagement-suite-luckywheel-list/p-89bbc8c4.js +0 -15
- 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
- /package/dist/types/{builds/emfe-widgets → Users/adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel-list/.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/casino-engagement-suite-luckywheel-list/.stencil/packages/stencil/casino-engagement-suite-luckywheel-list/storybook/main.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel-list/.stencil/packages/stencil/casino-engagement-suite-luckywheel-list/storybook/preview.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel-list/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-luckywheel-list/.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/casino-engagement-suite-luckywheel-list/.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/casino-engagement-suite-luckywheel-list/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { h
|
|
1
|
+
import { h, r as registerInstance, c as createEvent, g as getElement } from './index-8671bc92.js';
|
|
2
|
+
import '@everymatrix/general-animation-loading/dist';
|
|
2
3
|
|
|
3
4
|
/*! *****************************************************************************
|
|
4
5
|
Copyright (c) Microsoft Corporation.
|
|
@@ -74,534 +75,6 @@ const getTranslations = (url) => {
|
|
|
74
75
|
});
|
|
75
76
|
};
|
|
76
77
|
|
|
77
|
-
function a() {
|
|
78
|
-
}
|
|
79
|
-
function M(t) {
|
|
80
|
-
return t();
|
|
81
|
-
}
|
|
82
|
-
function O() {
|
|
83
|
-
return /* @__PURE__ */ Object.create(null);
|
|
84
|
-
}
|
|
85
|
-
function y(t) {
|
|
86
|
-
t.forEach(M);
|
|
87
|
-
}
|
|
88
|
-
function N(t) {
|
|
89
|
-
return typeof t == "function";
|
|
90
|
-
}
|
|
91
|
-
function R(t, e) {
|
|
92
|
-
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
93
|
-
}
|
|
94
|
-
function T(t) {
|
|
95
|
-
return Object.keys(t).length === 0;
|
|
96
|
-
}
|
|
97
|
-
function H(t, e) {
|
|
98
|
-
t.appendChild(e);
|
|
99
|
-
}
|
|
100
|
-
function U(t, e, n) {
|
|
101
|
-
const s = I(t);
|
|
102
|
-
if (!s.getElementById(e)) {
|
|
103
|
-
const i = v("style");
|
|
104
|
-
i.id = e, i.textContent = n, z(s, i);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
function I(t) {
|
|
108
|
-
if (!t)
|
|
109
|
-
return document;
|
|
110
|
-
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
111
|
-
return e && /** @type {ShadowRoot} */
|
|
112
|
-
e.host ? (
|
|
113
|
-
/** @type {ShadowRoot} */
|
|
114
|
-
e
|
|
115
|
-
) : t.ownerDocument;
|
|
116
|
-
}
|
|
117
|
-
function z(t, e) {
|
|
118
|
-
return H(
|
|
119
|
-
/** @type {Document} */
|
|
120
|
-
t.head || t,
|
|
121
|
-
e
|
|
122
|
-
), e.sheet;
|
|
123
|
-
}
|
|
124
|
-
function B(t, e, n) {
|
|
125
|
-
t.insertBefore(e, n || null);
|
|
126
|
-
}
|
|
127
|
-
function E(t) {
|
|
128
|
-
t.parentNode && t.parentNode.removeChild(t);
|
|
129
|
-
}
|
|
130
|
-
function v(t) {
|
|
131
|
-
return document.createElement(t);
|
|
132
|
-
}
|
|
133
|
-
function D(t, e, n) {
|
|
134
|
-
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
|
135
|
-
}
|
|
136
|
-
function F(t) {
|
|
137
|
-
return Array.from(t.childNodes);
|
|
138
|
-
}
|
|
139
|
-
function G(t) {
|
|
140
|
-
const e = {};
|
|
141
|
-
return t.childNodes.forEach(
|
|
142
|
-
/** @param {Element} node */
|
|
143
|
-
(n) => {
|
|
144
|
-
e[n.slot || "default"] = !0;
|
|
145
|
-
}
|
|
146
|
-
), e;
|
|
147
|
-
}
|
|
148
|
-
let p;
|
|
149
|
-
function _(t) {
|
|
150
|
-
p = t;
|
|
151
|
-
}
|
|
152
|
-
function J() {
|
|
153
|
-
if (!p)
|
|
154
|
-
throw new Error("Function called outside component initialization");
|
|
155
|
-
return p;
|
|
156
|
-
}
|
|
157
|
-
function V(t) {
|
|
158
|
-
J().$$.on_mount.push(t);
|
|
159
|
-
}
|
|
160
|
-
const $ = [], w = [];
|
|
161
|
-
let h = [];
|
|
162
|
-
const A = [], q = /* @__PURE__ */ Promise.resolve();
|
|
163
|
-
let x = !1;
|
|
164
|
-
function K() {
|
|
165
|
-
x || (x = !0, q.then(m));
|
|
166
|
-
}
|
|
167
|
-
function k(t) {
|
|
168
|
-
h.push(t);
|
|
169
|
-
}
|
|
170
|
-
const b = /* @__PURE__ */ new Set();
|
|
171
|
-
let f = 0;
|
|
172
|
-
function m() {
|
|
173
|
-
if (f !== 0)
|
|
174
|
-
return;
|
|
175
|
-
const t = p;
|
|
176
|
-
do {
|
|
177
|
-
try {
|
|
178
|
-
for (; f < $.length; ) {
|
|
179
|
-
const e = $[f];
|
|
180
|
-
f++, _(e), Q(e.$$);
|
|
181
|
-
}
|
|
182
|
-
} catch (e) {
|
|
183
|
-
throw $.length = 0, f = 0, e;
|
|
184
|
-
}
|
|
185
|
-
for (_(null), $.length = 0, f = 0; w.length; )
|
|
186
|
-
w.pop()();
|
|
187
|
-
for (let e = 0; e < h.length; e += 1) {
|
|
188
|
-
const n = h[e];
|
|
189
|
-
b.has(n) || (b.add(n), n());
|
|
190
|
-
}
|
|
191
|
-
h.length = 0;
|
|
192
|
-
} while ($.length);
|
|
193
|
-
for (; A.length; )
|
|
194
|
-
A.pop()();
|
|
195
|
-
x = !1, b.clear(), _(t);
|
|
196
|
-
}
|
|
197
|
-
function Q(t) {
|
|
198
|
-
if (t.fragment !== null) {
|
|
199
|
-
t.update(), y(t.before_update);
|
|
200
|
-
const e = t.dirty;
|
|
201
|
-
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(k);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
function W(t) {
|
|
205
|
-
const e = [], n = [];
|
|
206
|
-
h.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), h = e;
|
|
207
|
-
}
|
|
208
|
-
const X = /* @__PURE__ */ new Set();
|
|
209
|
-
function Y(t, e) {
|
|
210
|
-
t && t.i && (X.delete(t), t.i(e));
|
|
211
|
-
}
|
|
212
|
-
function Z(t, e, n) {
|
|
213
|
-
const { fragment: s, after_update: i } = t.$$;
|
|
214
|
-
s && s.m(e, n), k(() => {
|
|
215
|
-
const r = t.$$.on_mount.map(M).filter(N);
|
|
216
|
-
t.$$.on_destroy ? t.$$.on_destroy.push(...r) : y(r), t.$$.on_mount = [];
|
|
217
|
-
}), i.forEach(k);
|
|
218
|
-
}
|
|
219
|
-
function tt(t, e) {
|
|
220
|
-
const n = t.$$;
|
|
221
|
-
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 = []);
|
|
222
|
-
}
|
|
223
|
-
function et(t, e) {
|
|
224
|
-
t.$$.dirty[0] === -1 && ($.push(t), K(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
225
|
-
}
|
|
226
|
-
function nt(t, e, n, s, i, r, o = null, l = [-1]) {
|
|
227
|
-
const c = p;
|
|
228
|
-
_(t);
|
|
229
|
-
const u = t.$$ = {
|
|
230
|
-
fragment: null,
|
|
231
|
-
ctx: [],
|
|
232
|
-
// state
|
|
233
|
-
props: r,
|
|
234
|
-
update: a,
|
|
235
|
-
not_equal: i,
|
|
236
|
-
bound: O(),
|
|
237
|
-
// lifecycle
|
|
238
|
-
on_mount: [],
|
|
239
|
-
on_destroy: [],
|
|
240
|
-
on_disconnect: [],
|
|
241
|
-
before_update: [],
|
|
242
|
-
after_update: [],
|
|
243
|
-
context: new Map(e.context || (c ? c.$$.context : [])),
|
|
244
|
-
// everything else
|
|
245
|
-
callbacks: O(),
|
|
246
|
-
dirty: l,
|
|
247
|
-
skip_bound: !1,
|
|
248
|
-
root: e.target || c.$$.root
|
|
249
|
-
};
|
|
250
|
-
o && o(u.root);
|
|
251
|
-
let L = !1;
|
|
252
|
-
if (u.ctx = n ? n(t, e.props || {}, (d, C, ...S) => {
|
|
253
|
-
const j = S.length ? S[0] : C;
|
|
254
|
-
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;
|
|
255
|
-
}) : [], u.update(), L = !0, y(u.before_update), u.fragment = s ? s(u.ctx) : !1, e.target) {
|
|
256
|
-
if (e.hydrate) {
|
|
257
|
-
const d = F(e.target);
|
|
258
|
-
u.fragment && u.fragment.l(d), d.forEach(E);
|
|
259
|
-
} else
|
|
260
|
-
u.fragment && u.fragment.c();
|
|
261
|
-
e.intro && Y(t.$$.fragment), Z(t, e.target, e.anchor), m();
|
|
262
|
-
}
|
|
263
|
-
_(c);
|
|
264
|
-
}
|
|
265
|
-
let P;
|
|
266
|
-
typeof HTMLElement == "function" && (P = class extends HTMLElement {
|
|
267
|
-
/** The Svelte component constructor */
|
|
268
|
-
$$ctor;
|
|
269
|
-
/** Slots */
|
|
270
|
-
$$s;
|
|
271
|
-
/** The Svelte component instance */
|
|
272
|
-
$$c;
|
|
273
|
-
/** Whether or not the custom element is connected */
|
|
274
|
-
$$cn = !1;
|
|
275
|
-
/** Component props data */
|
|
276
|
-
$$d = {};
|
|
277
|
-
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
278
|
-
$$r = !1;
|
|
279
|
-
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
280
|
-
$$p_d = {};
|
|
281
|
-
/** @type {Record<string, Function[]>} Event listeners */
|
|
282
|
-
$$l = {};
|
|
283
|
-
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
284
|
-
$$l_u = /* @__PURE__ */ new Map();
|
|
285
|
-
constructor(t, e, n) {
|
|
286
|
-
super(), this.$$ctor = t, this.$$s = e, n && this.attachShadow({ mode: "open" });
|
|
287
|
-
}
|
|
288
|
-
addEventListener(t, e, n) {
|
|
289
|
-
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
|
|
290
|
-
const s = this.$$c.$on(t, e);
|
|
291
|
-
this.$$l_u.set(e, s);
|
|
292
|
-
}
|
|
293
|
-
super.addEventListener(t, e, n);
|
|
294
|
-
}
|
|
295
|
-
removeEventListener(t, e, n) {
|
|
296
|
-
if (super.removeEventListener(t, e, n), this.$$c) {
|
|
297
|
-
const s = this.$$l_u.get(e);
|
|
298
|
-
s && (s(), this.$$l_u.delete(e));
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
async connectedCallback() {
|
|
302
|
-
if (this.$$cn = !0, !this.$$c) {
|
|
303
|
-
let t = function(i) {
|
|
304
|
-
return () => {
|
|
305
|
-
let r;
|
|
306
|
-
return {
|
|
307
|
-
c: function() {
|
|
308
|
-
r = v("slot"), i !== "default" && D(r, "name", i);
|
|
309
|
-
},
|
|
310
|
-
/**
|
|
311
|
-
* @param {HTMLElement} target
|
|
312
|
-
* @param {HTMLElement} [anchor]
|
|
313
|
-
*/
|
|
314
|
-
m: function(c, u) {
|
|
315
|
-
B(c, r, u);
|
|
316
|
-
},
|
|
317
|
-
d: function(c) {
|
|
318
|
-
c && E(r);
|
|
319
|
-
}
|
|
320
|
-
};
|
|
321
|
-
};
|
|
322
|
-
};
|
|
323
|
-
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
324
|
-
return;
|
|
325
|
-
const e = {}, n = G(this);
|
|
326
|
-
for (const i of this.$$s)
|
|
327
|
-
i in n && (e[i] = [t(i)]);
|
|
328
|
-
for (const i of this.attributes) {
|
|
329
|
-
const r = this.$$g_p(i.name);
|
|
330
|
-
r in this.$$d || (this.$$d[r] = g(r, i.value, this.$$p_d, "toProp"));
|
|
331
|
-
}
|
|
332
|
-
for (const i in this.$$p_d)
|
|
333
|
-
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
334
|
-
this.$$c = new this.$$ctor({
|
|
335
|
-
target: this.shadowRoot || this,
|
|
336
|
-
props: {
|
|
337
|
-
...this.$$d,
|
|
338
|
-
$$slots: e,
|
|
339
|
-
$$scope: {
|
|
340
|
-
ctx: []
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
});
|
|
344
|
-
const s = () => {
|
|
345
|
-
this.$$r = !0;
|
|
346
|
-
for (const i in this.$$p_d)
|
|
347
|
-
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
348
|
-
const r = g(
|
|
349
|
-
i,
|
|
350
|
-
this.$$d[i],
|
|
351
|
-
this.$$p_d,
|
|
352
|
-
"toAttribute"
|
|
353
|
-
);
|
|
354
|
-
r == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, r);
|
|
355
|
-
}
|
|
356
|
-
this.$$r = !1;
|
|
357
|
-
};
|
|
358
|
-
this.$$c.$$.after_update.push(s), s();
|
|
359
|
-
for (const i in this.$$l)
|
|
360
|
-
for (const r of this.$$l[i]) {
|
|
361
|
-
const o = this.$$c.$on(i, r);
|
|
362
|
-
this.$$l_u.set(r, o);
|
|
363
|
-
}
|
|
364
|
-
this.$$l = {};
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
368
|
-
// and setting attributes through setAttribute etc, this is helpful
|
|
369
|
-
attributeChangedCallback(t, e, n) {
|
|
370
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = g(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
371
|
-
}
|
|
372
|
-
disconnectedCallback() {
|
|
373
|
-
this.$$cn = !1, Promise.resolve().then(() => {
|
|
374
|
-
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
$$g_p(t) {
|
|
378
|
-
return Object.keys(this.$$p_d).find(
|
|
379
|
-
(e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
|
|
380
|
-
) || t;
|
|
381
|
-
}
|
|
382
|
-
});
|
|
383
|
-
function g(t, e, n, s) {
|
|
384
|
-
const i = n[t]?.type;
|
|
385
|
-
if (e = i === "Boolean" && typeof e != "boolean" ? e != null : e, !s || !n[t])
|
|
386
|
-
return e;
|
|
387
|
-
if (s === "toAttribute")
|
|
388
|
-
switch (i) {
|
|
389
|
-
case "Object":
|
|
390
|
-
case "Array":
|
|
391
|
-
return e == null ? null : JSON.stringify(e);
|
|
392
|
-
case "Boolean":
|
|
393
|
-
return e ? "" : null;
|
|
394
|
-
case "Number":
|
|
395
|
-
return e ?? null;
|
|
396
|
-
default:
|
|
397
|
-
return e;
|
|
398
|
-
}
|
|
399
|
-
else
|
|
400
|
-
switch (i) {
|
|
401
|
-
case "Object":
|
|
402
|
-
case "Array":
|
|
403
|
-
return e && JSON.parse(e);
|
|
404
|
-
case "Boolean":
|
|
405
|
-
return e;
|
|
406
|
-
case "Number":
|
|
407
|
-
return e != null ? +e : e;
|
|
408
|
-
default:
|
|
409
|
-
return e;
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
function it(t, e, n, s, i, r) {
|
|
413
|
-
let o = class extends P {
|
|
414
|
-
constructor() {
|
|
415
|
-
super(t, n, i), this.$$p_d = e;
|
|
416
|
-
}
|
|
417
|
-
static get observedAttributes() {
|
|
418
|
-
return Object.keys(e).map(
|
|
419
|
-
(l) => (e[l].attribute || l).toLowerCase()
|
|
420
|
-
);
|
|
421
|
-
}
|
|
422
|
-
};
|
|
423
|
-
return Object.keys(e).forEach((l) => {
|
|
424
|
-
Object.defineProperty(o.prototype, l, {
|
|
425
|
-
get() {
|
|
426
|
-
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
427
|
-
},
|
|
428
|
-
set(c) {
|
|
429
|
-
c = g(l, c, e), this.$$d[l] = c, this.$$c?.$set({ [l]: c });
|
|
430
|
-
}
|
|
431
|
-
});
|
|
432
|
-
}), s.forEach((l) => {
|
|
433
|
-
Object.defineProperty(o.prototype, l, {
|
|
434
|
-
get() {
|
|
435
|
-
return this.$$c?.[l];
|
|
436
|
-
}
|
|
437
|
-
});
|
|
438
|
-
}), t.element = /** @type {any} */
|
|
439
|
-
o, o;
|
|
440
|
-
}
|
|
441
|
-
class st {
|
|
442
|
-
/**
|
|
443
|
-
* ### PRIVATE API
|
|
444
|
-
*
|
|
445
|
-
* Do not use, may change at any time
|
|
446
|
-
*
|
|
447
|
-
* @type {any}
|
|
448
|
-
*/
|
|
449
|
-
$$ = void 0;
|
|
450
|
-
/**
|
|
451
|
-
* ### PRIVATE API
|
|
452
|
-
*
|
|
453
|
-
* Do not use, may change at any time
|
|
454
|
-
*
|
|
455
|
-
* @type {any}
|
|
456
|
-
*/
|
|
457
|
-
$$set = void 0;
|
|
458
|
-
/** @returns {void} */
|
|
459
|
-
$destroy() {
|
|
460
|
-
tt(this, 1), this.$destroy = a;
|
|
461
|
-
}
|
|
462
|
-
/**
|
|
463
|
-
* @template {Extract<keyof Events, string>} K
|
|
464
|
-
* @param {K} type
|
|
465
|
-
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
466
|
-
* @returns {() => void}
|
|
467
|
-
*/
|
|
468
|
-
$on(e, n) {
|
|
469
|
-
if (!N(n))
|
|
470
|
-
return a;
|
|
471
|
-
const s = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
472
|
-
return s.push(n), () => {
|
|
473
|
-
const i = s.indexOf(n);
|
|
474
|
-
i !== -1 && s.splice(i, 1);
|
|
475
|
-
};
|
|
476
|
-
}
|
|
477
|
-
/**
|
|
478
|
-
* @param {Partial<Props>} props
|
|
479
|
-
* @returns {void}
|
|
480
|
-
*/
|
|
481
|
-
$set(e) {
|
|
482
|
-
this.$$set && !T(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
const rt = "4";
|
|
486
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(rt);
|
|
487
|
-
function ct(t, e) {
|
|
488
|
-
if (t) {
|
|
489
|
-
const n = document.createElement("style");
|
|
490
|
-
n.innerHTML = e, t.appendChild(n);
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
function ot(t, e) {
|
|
494
|
-
const n = new URL(e);
|
|
495
|
-
fetch(n.href).then((s) => s.text()).then((s) => {
|
|
496
|
-
const i = document.createElement("style");
|
|
497
|
-
i.innerHTML = s, t && t.appendChild(i);
|
|
498
|
-
}).catch((s) => {
|
|
499
|
-
console.error("There was an error while trying to load client styling from URL", s);
|
|
500
|
-
});
|
|
501
|
-
}
|
|
502
|
-
function lt(t, e, n) {
|
|
503
|
-
if (window.emMessageBus) {
|
|
504
|
-
const s = document.createElement("style");
|
|
505
|
-
window.emMessageBus.subscribe(e, (i) => {
|
|
506
|
-
s.innerHTML = i, t && t.appendChild(s);
|
|
507
|
-
});
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
function ut(t) {
|
|
511
|
-
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)}}");
|
|
512
|
-
}
|
|
513
|
-
function dt(t) {
|
|
514
|
-
let e;
|
|
515
|
-
return {
|
|
516
|
-
c() {
|
|
517
|
-
e = v("div"), e.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
|
|
518
|
-
},
|
|
519
|
-
m(n, s) {
|
|
520
|
-
B(n, e, s), t[4](e);
|
|
521
|
-
},
|
|
522
|
-
p: a,
|
|
523
|
-
i: a,
|
|
524
|
-
o: a,
|
|
525
|
-
d(n) {
|
|
526
|
-
n && E(e), t[4](null);
|
|
527
|
-
}
|
|
528
|
-
};
|
|
529
|
-
}
|
|
530
|
-
function ft(t, e, n) {
|
|
531
|
-
let { clientstyling: s = "" } = e, { clientstylingurl: i = "" } = e, { mbsource: r } = e, o;
|
|
532
|
-
V(() => () => {
|
|
533
|
-
});
|
|
534
|
-
function l(c) {
|
|
535
|
-
w[c ? "unshift" : "push"](() => {
|
|
536
|
-
o = c, n(0, o);
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
|
-
return t.$$set = (c) => {
|
|
540
|
-
"clientstyling" in c && n(1, s = c.clientstyling), "clientstylingurl" in c && n(2, i = c.clientstylingurl), "mbsource" in c && n(3, r = c.mbsource);
|
|
541
|
-
}, t.$$.update = () => {
|
|
542
|
-
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
543
|
-
3 && s && o && ct(o, s), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
544
|
-
5 && i && o && ot(o, i), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
545
|
-
9 && r && o && lt(o, `${r}.Style`);
|
|
546
|
-
}, [
|
|
547
|
-
o,
|
|
548
|
-
s,
|
|
549
|
-
i,
|
|
550
|
-
r,
|
|
551
|
-
l
|
|
552
|
-
];
|
|
553
|
-
}
|
|
554
|
-
class $t extends st {
|
|
555
|
-
constructor(e) {
|
|
556
|
-
super(), nt(
|
|
557
|
-
this,
|
|
558
|
-
e,
|
|
559
|
-
ft,
|
|
560
|
-
dt,
|
|
561
|
-
R,
|
|
562
|
-
{
|
|
563
|
-
clientstyling: 1,
|
|
564
|
-
clientstylingurl: 2,
|
|
565
|
-
mbsource: 3
|
|
566
|
-
},
|
|
567
|
-
ut
|
|
568
|
-
);
|
|
569
|
-
}
|
|
570
|
-
get clientstyling() {
|
|
571
|
-
return this.$$.ctx[1];
|
|
572
|
-
}
|
|
573
|
-
set clientstyling(e) {
|
|
574
|
-
this.$$set({ clientstyling: e }), m();
|
|
575
|
-
}
|
|
576
|
-
get clientstylingurl() {
|
|
577
|
-
return this.$$.ctx[2];
|
|
578
|
-
}
|
|
579
|
-
set clientstylingurl(e) {
|
|
580
|
-
this.$$set({ clientstylingurl: e }), m();
|
|
581
|
-
}
|
|
582
|
-
get mbsource() {
|
|
583
|
-
return this.$$.ctx[3];
|
|
584
|
-
}
|
|
585
|
-
set mbsource(e) {
|
|
586
|
-
this.$$set({ mbsource: e }), m();
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
it($t, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
590
|
-
|
|
591
|
-
function i(n) {
|
|
592
|
-
return function(...t) {
|
|
593
|
-
try {
|
|
594
|
-
return n.apply(this, t);
|
|
595
|
-
} catch (e) {
|
|
596
|
-
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"))
|
|
597
|
-
return !1;
|
|
598
|
-
throw e;
|
|
599
|
-
}
|
|
600
|
-
};
|
|
601
|
-
}
|
|
602
|
-
customElements.define = i(customElements.define);
|
|
603
|
-
!customElements.get("general-animation-loading") && customElements.define("general-animation-loading", $t.element);
|
|
604
|
-
|
|
605
78
|
var LuckyWheelRewardType;
|
|
606
79
|
(function (LuckyWheelRewardType) {
|
|
607
80
|
LuckyWheelRewardType[LuckyWheelRewardType["FreeSpins"] = 0] = "FreeSpins";
|
|
@@ -2814,9 +2287,9 @@ function cleanEscapedString(input) {
|
|
|
2814
2287
|
}
|
|
2815
2288
|
|
|
2816
2289
|
const getHistoryLoaderTemplate = (lang) => {
|
|
2817
|
-
return h
|
|
2818
|
-
h
|
|
2819
|
-
h
|
|
2290
|
+
return h("div", { class: "HistoryLoader" },
|
|
2291
|
+
h("casino-engagement-suite-progress-bar", { indeterminate: true }),
|
|
2292
|
+
h("span", null, translate('loading', lang)));
|
|
2820
2293
|
};
|
|
2821
2294
|
const getRewards = (luckywheel, result) => {
|
|
2822
2295
|
var _a, _b, _c, _d;
|
|
@@ -2826,27 +2299,27 @@ const getRewards = (luckywheel, result) => {
|
|
|
2826
2299
|
const assets = (_d = (_c = luckywheel.Program.WheelOfFortune) === null || _c === void 0 ? void 0 : _c.Partitions[index]) === null || _d === void 0 ? void 0 : _d.Image1;
|
|
2827
2300
|
const displayAssets = assets['en'] || assets['*'];
|
|
2828
2301
|
const programName = luckywheel.Program.Name['en'] || luckywheel.Program.Name['*'];
|
|
2829
|
-
return h
|
|
2302
|
+
return h("div", { class: "HistoryRewards" }, displayName ? displayName : displayAssets ? (h("img", { src: displayAssets })) : programName);
|
|
2830
2303
|
};
|
|
2831
2304
|
const getStatus = (state) => {
|
|
2832
2305
|
return state === 'fulfilled' ? 'Success' : 'Failed';
|
|
2833
2306
|
};
|
|
2834
2307
|
const getLuckyWheelsHistoryTemplate = (luckywheels, historyGroups, openedHistoryIds, toggleLuckyWheelHistory, lang) => {
|
|
2835
2308
|
if (luckywheels.length === 0) {
|
|
2836
|
-
return h
|
|
2309
|
+
return h("p", { class: "HistoryEmptyMessage" }, translate('noHistory', lang));
|
|
2837
2310
|
}
|
|
2838
|
-
return h
|
|
2311
|
+
return h("div", { class: "HistoryList" }, luckywheels.map((luckywheel) => {
|
|
2839
2312
|
var _a;
|
|
2840
|
-
return h
|
|
2841
|
-
h
|
|
2313
|
+
return h("div", { key: luckywheel.Program.Id, class: `HistoryListItem ${openedHistoryIds.includes(luckywheel.Program.Id) ? 'Opened' : 'Closed'}` },
|
|
2314
|
+
h("header", { class: "HistoryListItemHeader", "data-id": luckywheel.Program.Id, onClick: toggleLuckyWheelHistory },
|
|
2842
2315
|
luckywheel.Program.Name['en'] || luckywheel.Program.Name['*'],
|
|
2843
|
-
h
|
|
2844
|
-
h
|
|
2845
|
-
h
|
|
2846
|
-
return (h
|
|
2847
|
-
h
|
|
2848
|
-
h
|
|
2849
|
-
h
|
|
2316
|
+
h("button", { class: "EngagementSuiteIconButton ArrowDown" })),
|
|
2317
|
+
h("div", { class: "HistoryListItemBody" },
|
|
2318
|
+
h("div", { class: "HistoryInfoRow" }, (_a = historyGroups[luckywheel.Program.Id]) === null || _a === void 0 ? void 0 : _a.map((history) => {
|
|
2319
|
+
return (h("div", { class: "HistoryInfo" },
|
|
2320
|
+
h("div", { class: "HistoryCol Rewards" }, getRewards(luckywheel, history.Draw.Result)),
|
|
2321
|
+
h("div", { class: "HistoryCol Issued" }, getStatus(history.Draw.State)),
|
|
2322
|
+
h("div", { class: "HistoryCol Time" }, format(new Date(history.Draw.Time), 'LLL d, yyyy HH:mm:ss'))));
|
|
2850
2323
|
}))));
|
|
2851
2324
|
}));
|
|
2852
2325
|
};
|
|
@@ -3024,41 +2497,41 @@ const CasinoEngagementSuiteLuckyWheelList = class {
|
|
|
3024
2497
|
}
|
|
3025
2498
|
getLuckyWheelHeaderTemplate(luckywheel) {
|
|
3026
2499
|
var _a, _b;
|
|
3027
|
-
return (h
|
|
2500
|
+
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)))));
|
|
3028
2501
|
}
|
|
3029
2502
|
getLuckyWheelTemplate(luckywheel, index) {
|
|
3030
2503
|
const countdown = this.timers[luckywheel.Program.Id];
|
|
3031
2504
|
//TODO: canceled status
|
|
3032
2505
|
const isCanceled = luckywheel.Current.RemainingTimes === 0;
|
|
3033
|
-
return (h
|
|
2506
|
+
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)))));
|
|
3034
2507
|
}
|
|
3035
2508
|
getHeaderTemplate() {
|
|
3036
|
-
return h
|
|
2509
|
+
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 }));
|
|
3037
2510
|
}
|
|
3038
2511
|
getListTemplate() {
|
|
3039
2512
|
if (this.isLoading) {
|
|
3040
|
-
return h
|
|
2513
|
+
return h("general-animation-loading", null);
|
|
3041
2514
|
}
|
|
3042
2515
|
if (this.luckyWheels.length) {
|
|
3043
|
-
return h
|
|
2516
|
+
return h("div", { class: "LuckyWheelsListWrapper" }, h("div", { class: "LuckyWheelsList" }, this.luckyWheels.map((luckywheel, index) => this.getLuckyWheelTemplate(luckywheel, index))));
|
|
3044
2517
|
}
|
|
3045
2518
|
else {
|
|
3046
|
-
return h
|
|
2519
|
+
return h("div", { class: "LuckyWheelsListEmpty" }, h("h2", null, translate('noluckywheels', this.language)), h("p", null, translate('tryOtherGames', this.language)));
|
|
3047
2520
|
}
|
|
3048
2521
|
}
|
|
3049
2522
|
getTooltipTemplate() {
|
|
3050
2523
|
if (this.tooltip) {
|
|
3051
|
-
return h
|
|
2524
|
+
return h("div", { class: "EngagementSuiteTooltipBackdrop" }, h("div", { class: "EngagementSuiteTooltip" }, h("button", { class: "EngagementSuiteIconButton Close", onClick: this.hideTooltip }), translate('tooltip', this.language)));
|
|
3052
2525
|
}
|
|
3053
2526
|
else {
|
|
3054
2527
|
return '';
|
|
3055
2528
|
}
|
|
3056
2529
|
}
|
|
3057
2530
|
getTabsTemplate() {
|
|
3058
|
-
return h
|
|
2531
|
+
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))));
|
|
3059
2532
|
}
|
|
3060
2533
|
getHistoryTabTemplate() {
|
|
3061
|
-
return h
|
|
2534
|
+
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
|
|
3062
2535
|
? getHistoryLoaderTemplate(this.language)
|
|
3063
2536
|
: getLuckyWheelsHistoryTemplate(this.luckyWheels, this.luckywheelHistory, this.openedHistoryIds, this.toggleLuckyWheelHistory, this.language));
|
|
3064
2537
|
}
|
|
@@ -3068,7 +2541,7 @@ const CasinoEngagementSuiteLuckyWheelList = class {
|
|
|
3068
2541
|
: this.getHistoryTabTemplate();
|
|
3069
2542
|
}
|
|
3070
2543
|
render() {
|
|
3071
|
-
return h
|
|
2544
|
+
return h("div", { key: 'b640229fe6feea73f03ee6ce4a2e80e269240780', class: `LuckyWheelsListPopup ${this.device}` }, this.getHeaderTemplate(), this.getTabsTemplate(), this.getTabsContentTemplate(), this.getTooltipTemplate());
|
|
3072
2545
|
}
|
|
3073
2546
|
get host() { return getElement(this); }
|
|
3074
2547
|
static get watchers() { return {
|
|
@@ -1,5 +1,6 @@
|
|
|
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-27298430.js';
|
|
2
2
|
import { r as registerInstance, h, g as getElement } from './index-8671bc92.js';
|
|
3
|
+
import '@everymatrix/general-animation-loading/dist';
|
|
3
4
|
|
|
4
5
|
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)}";
|
|
5
6
|
const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarCss;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { C as CasinoEngagementSuiteLuckyWheelList } from './casino-engagement-suite-luckywheel-list-
|
|
1
|
+
export { C as CasinoEngagementSuiteLuckyWheelList } from './casino-engagement-suite-luckywheel-list-27298430.js';
|
|
2
2
|
import './index-8671bc92.js';
|
|
3
|
+
import '@everymatrix/general-animation-loading/dist';
|