@everymatrix/casino-mystery-chest-modal 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,503 @@
|
|
|
1
|
+
function z() {
|
|
2
|
+
}
|
|
3
|
+
function et(t) {
|
|
4
|
+
return t();
|
|
5
|
+
}
|
|
6
|
+
function W() {
|
|
7
|
+
return /* @__PURE__ */ Object.create(null);
|
|
8
|
+
}
|
|
9
|
+
function M(t) {
|
|
10
|
+
t.forEach(et);
|
|
11
|
+
}
|
|
12
|
+
function nt(t) {
|
|
13
|
+
return typeof t == "function";
|
|
14
|
+
}
|
|
15
|
+
function st(t, e) {
|
|
16
|
+
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
17
|
+
}
|
|
18
|
+
let A;
|
|
19
|
+
function Y(t, e) {
|
|
20
|
+
return t === e ? !0 : (A || (A = document.createElement("a")), A.href = e, t === A.href);
|
|
21
|
+
}
|
|
22
|
+
function rt(t) {
|
|
23
|
+
return Object.keys(t).length === 0;
|
|
24
|
+
}
|
|
25
|
+
function a(t, e) {
|
|
26
|
+
t.appendChild(e);
|
|
27
|
+
}
|
|
28
|
+
function lt(t, e, n) {
|
|
29
|
+
const o = ct(t);
|
|
30
|
+
if (!o.getElementById(e)) {
|
|
31
|
+
const i = $("style");
|
|
32
|
+
i.id = e, i.textContent = n, at(o, i);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function ct(t) {
|
|
36
|
+
if (!t)
|
|
37
|
+
return document;
|
|
38
|
+
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
39
|
+
return e && /** @type {ShadowRoot} */
|
|
40
|
+
e.host ? (
|
|
41
|
+
/** @type {ShadowRoot} */
|
|
42
|
+
e
|
|
43
|
+
) : t.ownerDocument;
|
|
44
|
+
}
|
|
45
|
+
function at(t, e) {
|
|
46
|
+
return a(
|
|
47
|
+
/** @type {Document} */
|
|
48
|
+
t.head || t,
|
|
49
|
+
e
|
|
50
|
+
), e.sheet;
|
|
51
|
+
}
|
|
52
|
+
function it(t, e, n) {
|
|
53
|
+
t.insertBefore(e, n || null);
|
|
54
|
+
}
|
|
55
|
+
function J(t) {
|
|
56
|
+
t.parentNode && t.parentNode.removeChild(t);
|
|
57
|
+
}
|
|
58
|
+
function $(t) {
|
|
59
|
+
return document.createElement(t);
|
|
60
|
+
}
|
|
61
|
+
function E(t) {
|
|
62
|
+
return document.createTextNode(t);
|
|
63
|
+
}
|
|
64
|
+
function b() {
|
|
65
|
+
return E(" ");
|
|
66
|
+
}
|
|
67
|
+
function dt(t, e, n, o) {
|
|
68
|
+
return t.addEventListener(e, n, o), () => t.removeEventListener(e, n, o);
|
|
69
|
+
}
|
|
70
|
+
function f(t, e, n) {
|
|
71
|
+
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
|
72
|
+
}
|
|
73
|
+
function ft(t) {
|
|
74
|
+
return Array.from(t.childNodes);
|
|
75
|
+
}
|
|
76
|
+
function L(t, e) {
|
|
77
|
+
e = "" + e, t.data !== e && (t.data = /** @type {string} */
|
|
78
|
+
e);
|
|
79
|
+
}
|
|
80
|
+
function ut(t) {
|
|
81
|
+
const e = {};
|
|
82
|
+
return t.childNodes.forEach(
|
|
83
|
+
/** @param {Element} node */
|
|
84
|
+
(n) => {
|
|
85
|
+
e[n.slot || "default"] = !0;
|
|
86
|
+
}
|
|
87
|
+
), e;
|
|
88
|
+
}
|
|
89
|
+
let U;
|
|
90
|
+
function C(t) {
|
|
91
|
+
U = t;
|
|
92
|
+
}
|
|
93
|
+
const x = [], Z = [];
|
|
94
|
+
let y = [];
|
|
95
|
+
const tt = [], $t = /* @__PURE__ */ Promise.resolve();
|
|
96
|
+
let H = !1;
|
|
97
|
+
function ht() {
|
|
98
|
+
H || (H = !0, $t.then(V));
|
|
99
|
+
}
|
|
100
|
+
function T(t) {
|
|
101
|
+
y.push(t);
|
|
102
|
+
}
|
|
103
|
+
const q = /* @__PURE__ */ new Set();
|
|
104
|
+
let w = 0;
|
|
105
|
+
function V() {
|
|
106
|
+
if (w !== 0)
|
|
107
|
+
return;
|
|
108
|
+
const t = U;
|
|
109
|
+
do {
|
|
110
|
+
try {
|
|
111
|
+
for (; w < x.length; ) {
|
|
112
|
+
const e = x[w];
|
|
113
|
+
w++, C(e), _t(e.$$);
|
|
114
|
+
}
|
|
115
|
+
} catch (e) {
|
|
116
|
+
throw x.length = 0, w = 0, e;
|
|
117
|
+
}
|
|
118
|
+
for (C(null), x.length = 0, w = 0; Z.length; )
|
|
119
|
+
Z.pop()();
|
|
120
|
+
for (let e = 0; e < y.length; e += 1) {
|
|
121
|
+
const n = y[e];
|
|
122
|
+
q.has(n) || (q.add(n), n());
|
|
123
|
+
}
|
|
124
|
+
y.length = 0;
|
|
125
|
+
} while (x.length);
|
|
126
|
+
for (; tt.length; )
|
|
127
|
+
tt.pop()();
|
|
128
|
+
H = !1, q.clear(), C(t);
|
|
129
|
+
}
|
|
130
|
+
function _t(t) {
|
|
131
|
+
if (t.fragment !== null) {
|
|
132
|
+
t.update(), M(t.before_update);
|
|
133
|
+
const e = t.dirty;
|
|
134
|
+
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(T);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
function gt(t) {
|
|
138
|
+
const e = [], n = [];
|
|
139
|
+
y.forEach((o) => t.indexOf(o) === -1 ? e.push(o) : n.push(o)), n.forEach((o) => o()), y = e;
|
|
140
|
+
}
|
|
141
|
+
const mt = /* @__PURE__ */ new Set();
|
|
142
|
+
function pt(t, e) {
|
|
143
|
+
t && t.i && (mt.delete(t), t.i(e));
|
|
144
|
+
}
|
|
145
|
+
function bt(t, e, n) {
|
|
146
|
+
const { fragment: o, after_update: i } = t.$$;
|
|
147
|
+
o && o.m(e, n), T(() => {
|
|
148
|
+
const s = t.$$.on_mount.map(et).filter(nt);
|
|
149
|
+
t.$$.on_destroy ? t.$$.on_destroy.push(...s) : M(s), t.$$.on_mount = [];
|
|
150
|
+
}), i.forEach(T);
|
|
151
|
+
}
|
|
152
|
+
function wt(t, e) {
|
|
153
|
+
const n = t.$$;
|
|
154
|
+
n.fragment !== null && (gt(n.after_update), M(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
155
|
+
}
|
|
156
|
+
function xt(t, e) {
|
|
157
|
+
t.$$.dirty[0] === -1 && (x.push(t), ht(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
158
|
+
}
|
|
159
|
+
function yt(t, e, n, o, i, s, r = null, l = [-1]) {
|
|
160
|
+
const d = U;
|
|
161
|
+
C(t);
|
|
162
|
+
const c = t.$$ = {
|
|
163
|
+
fragment: null,
|
|
164
|
+
ctx: [],
|
|
165
|
+
// state
|
|
166
|
+
props: s,
|
|
167
|
+
update: z,
|
|
168
|
+
not_equal: i,
|
|
169
|
+
bound: W(),
|
|
170
|
+
// lifecycle
|
|
171
|
+
on_mount: [],
|
|
172
|
+
on_destroy: [],
|
|
173
|
+
on_disconnect: [],
|
|
174
|
+
before_update: [],
|
|
175
|
+
after_update: [],
|
|
176
|
+
context: new Map(e.context || (d ? d.$$.context : [])),
|
|
177
|
+
// everything else
|
|
178
|
+
callbacks: W(),
|
|
179
|
+
dirty: l,
|
|
180
|
+
skip_bound: !1,
|
|
181
|
+
root: e.target || d.$$.root
|
|
182
|
+
};
|
|
183
|
+
r && r(c.root);
|
|
184
|
+
let m = !1;
|
|
185
|
+
if (c.ctx = n ? n(t, e.props || {}, (u, v, ...h) => {
|
|
186
|
+
const p = h.length ? h[0] : v;
|
|
187
|
+
return c.ctx && i(c.ctx[u], c.ctx[u] = p) && (!c.skip_bound && c.bound[u] && c.bound[u](p), m && xt(t, u)), v;
|
|
188
|
+
}) : [], c.update(), m = !0, M(c.before_update), c.fragment = o ? o(c.ctx) : !1, e.target) {
|
|
189
|
+
if (e.hydrate) {
|
|
190
|
+
const u = ft(e.target);
|
|
191
|
+
c.fragment && c.fragment.l(u), u.forEach(J);
|
|
192
|
+
} else
|
|
193
|
+
c.fragment && c.fragment.c();
|
|
194
|
+
e.intro && pt(t.$$.fragment), bt(t, e.target, e.anchor), V();
|
|
195
|
+
}
|
|
196
|
+
C(d);
|
|
197
|
+
}
|
|
198
|
+
let ot;
|
|
199
|
+
typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
|
200
|
+
/** The Svelte component constructor */
|
|
201
|
+
$$ctor;
|
|
202
|
+
/** Slots */
|
|
203
|
+
$$s;
|
|
204
|
+
/** The Svelte component instance */
|
|
205
|
+
$$c;
|
|
206
|
+
/** Whether or not the custom element is connected */
|
|
207
|
+
$$cn = !1;
|
|
208
|
+
/** Component props data */
|
|
209
|
+
$$d = {};
|
|
210
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
211
|
+
$$r = !1;
|
|
212
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
213
|
+
$$p_d = {};
|
|
214
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
215
|
+
$$l = {};
|
|
216
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
217
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
218
|
+
constructor(t, e, n) {
|
|
219
|
+
super(), this.$$ctor = t, this.$$s = e, n && this.attachShadow({ mode: "open" });
|
|
220
|
+
}
|
|
221
|
+
addEventListener(t, e, n) {
|
|
222
|
+
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
|
|
223
|
+
const o = this.$$c.$on(t, e);
|
|
224
|
+
this.$$l_u.set(e, o);
|
|
225
|
+
}
|
|
226
|
+
super.addEventListener(t, e, n);
|
|
227
|
+
}
|
|
228
|
+
removeEventListener(t, e, n) {
|
|
229
|
+
if (super.removeEventListener(t, e, n), this.$$c) {
|
|
230
|
+
const o = this.$$l_u.get(e);
|
|
231
|
+
o && (o(), this.$$l_u.delete(e));
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
async connectedCallback() {
|
|
235
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
236
|
+
let t = function(i) {
|
|
237
|
+
return () => {
|
|
238
|
+
let s;
|
|
239
|
+
return {
|
|
240
|
+
c: function() {
|
|
241
|
+
s = $("slot"), i !== "default" && f(s, "name", i);
|
|
242
|
+
},
|
|
243
|
+
/**
|
|
244
|
+
* @param {HTMLElement} target
|
|
245
|
+
* @param {HTMLElement} [anchor]
|
|
246
|
+
*/
|
|
247
|
+
m: function(d, c) {
|
|
248
|
+
it(d, s, c);
|
|
249
|
+
},
|
|
250
|
+
d: function(d) {
|
|
251
|
+
d && J(s);
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
257
|
+
return;
|
|
258
|
+
const e = {}, n = ut(this);
|
|
259
|
+
for (const i of this.$$s)
|
|
260
|
+
i in n && (e[i] = [t(i)]);
|
|
261
|
+
for (const i of this.attributes) {
|
|
262
|
+
const s = this.$$g_p(i.name);
|
|
263
|
+
s in this.$$d || (this.$$d[s] = S(s, i.value, this.$$p_d, "toProp"));
|
|
264
|
+
}
|
|
265
|
+
for (const i in this.$$p_d)
|
|
266
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
267
|
+
this.$$c = new this.$$ctor({
|
|
268
|
+
target: this.shadowRoot || this,
|
|
269
|
+
props: {
|
|
270
|
+
...this.$$d,
|
|
271
|
+
$$slots: e,
|
|
272
|
+
$$scope: {
|
|
273
|
+
ctx: []
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
const o = () => {
|
|
278
|
+
this.$$r = !0;
|
|
279
|
+
for (const i in this.$$p_d)
|
|
280
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
281
|
+
const s = S(
|
|
282
|
+
i,
|
|
283
|
+
this.$$d[i],
|
|
284
|
+
this.$$p_d,
|
|
285
|
+
"toAttribute"
|
|
286
|
+
);
|
|
287
|
+
s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
|
|
288
|
+
}
|
|
289
|
+
this.$$r = !1;
|
|
290
|
+
};
|
|
291
|
+
this.$$c.$$.after_update.push(o), o();
|
|
292
|
+
for (const i in this.$$l)
|
|
293
|
+
for (const s of this.$$l[i]) {
|
|
294
|
+
const r = this.$$c.$on(i, s);
|
|
295
|
+
this.$$l_u.set(s, r);
|
|
296
|
+
}
|
|
297
|
+
this.$$l = {};
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
301
|
+
// and setting attributes through setAttribute etc, this is helpful
|
|
302
|
+
attributeChangedCallback(t, e, n) {
|
|
303
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = S(t, n, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
304
|
+
}
|
|
305
|
+
disconnectedCallback() {
|
|
306
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
307
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
$$g_p(t) {
|
|
311
|
+
return Object.keys(this.$$p_d).find(
|
|
312
|
+
(e) => this.$$p_d[e].attribute === t || !this.$$p_d[e].attribute && e.toLowerCase() === t
|
|
313
|
+
) || t;
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
function S(t, e, n, o) {
|
|
317
|
+
const i = n[t]?.type;
|
|
318
|
+
if (e = i === "Boolean" && typeof e != "boolean" ? e != null : e, !o || !n[t])
|
|
319
|
+
return e;
|
|
320
|
+
if (o === "toAttribute")
|
|
321
|
+
switch (i) {
|
|
322
|
+
case "Object":
|
|
323
|
+
case "Array":
|
|
324
|
+
return e == null ? null : JSON.stringify(e);
|
|
325
|
+
case "Boolean":
|
|
326
|
+
return e ? "" : null;
|
|
327
|
+
case "Number":
|
|
328
|
+
return e ?? null;
|
|
329
|
+
default:
|
|
330
|
+
return e;
|
|
331
|
+
}
|
|
332
|
+
else
|
|
333
|
+
switch (i) {
|
|
334
|
+
case "Object":
|
|
335
|
+
case "Array":
|
|
336
|
+
return e && JSON.parse(e);
|
|
337
|
+
case "Boolean":
|
|
338
|
+
return e;
|
|
339
|
+
case "Number":
|
|
340
|
+
return e != null ? +e : e;
|
|
341
|
+
default:
|
|
342
|
+
return e;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
function vt(t, e, n, o, i, s) {
|
|
346
|
+
let r = class extends ot {
|
|
347
|
+
constructor() {
|
|
348
|
+
super(t, n, i), this.$$p_d = e;
|
|
349
|
+
}
|
|
350
|
+
static get observedAttributes() {
|
|
351
|
+
return Object.keys(e).map(
|
|
352
|
+
(l) => (e[l].attribute || l).toLowerCase()
|
|
353
|
+
);
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
return Object.keys(e).forEach((l) => {
|
|
357
|
+
Object.defineProperty(r.prototype, l, {
|
|
358
|
+
get() {
|
|
359
|
+
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
360
|
+
},
|
|
361
|
+
set(d) {
|
|
362
|
+
d = S(l, d, e), this.$$d[l] = d, this.$$c?.$set({ [l]: d });
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
}), o.forEach((l) => {
|
|
366
|
+
Object.defineProperty(r.prototype, l, {
|
|
367
|
+
get() {
|
|
368
|
+
return this.$$c?.[l];
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
}), t.element = /** @type {any} */
|
|
372
|
+
r, r;
|
|
373
|
+
}
|
|
374
|
+
class kt {
|
|
375
|
+
/**
|
|
376
|
+
* ### PRIVATE API
|
|
377
|
+
*
|
|
378
|
+
* Do not use, may change at any time
|
|
379
|
+
*
|
|
380
|
+
* @type {any}
|
|
381
|
+
*/
|
|
382
|
+
$$ = void 0;
|
|
383
|
+
/**
|
|
384
|
+
* ### PRIVATE API
|
|
385
|
+
*
|
|
386
|
+
* Do not use, may change at any time
|
|
387
|
+
*
|
|
388
|
+
* @type {any}
|
|
389
|
+
*/
|
|
390
|
+
$$set = void 0;
|
|
391
|
+
/** @returns {void} */
|
|
392
|
+
$destroy() {
|
|
393
|
+
wt(this, 1), this.$destroy = z;
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* @template {Extract<keyof Events, string>} K
|
|
397
|
+
* @param {K} type
|
|
398
|
+
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
399
|
+
* @returns {() => void}
|
|
400
|
+
*/
|
|
401
|
+
$on(e, n) {
|
|
402
|
+
if (!nt(n))
|
|
403
|
+
return z;
|
|
404
|
+
const o = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
405
|
+
return o.push(n), () => {
|
|
406
|
+
const i = o.indexOf(n);
|
|
407
|
+
i !== -1 && o.splice(i, 1);
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* @param {Partial<Props>} props
|
|
412
|
+
* @returns {void}
|
|
413
|
+
*/
|
|
414
|
+
$set(e) {
|
|
415
|
+
this.$$set && !rt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
const Et = "4";
|
|
419
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Et);
|
|
420
|
+
const Ct = (t) => window.postMessage(t, window.location.href);
|
|
421
|
+
function zt(t) {
|
|
422
|
+
lt(t, "svelte-286imq", ".dialog{position:fixed;left:50%;transform:translateX(-50%);z-index:300;background:var(--emw--color-gray-transparency-30, rgba(13, 27, 29, 0.9215686275));bottom:0;width:60%;height:90%;border-top-left-radius:72px;border-top-right-radius:72px;box-sizing:border-box;padding:40px 80px;align-content:center}.dialog__content{display:flex;flex-direction:column;align-items:center;gap:40px;text-align:center}.dialog__content__icon-container{position:relative}.dialog__content__icon{position:relative;width:127px;height:127px}.dialog__content__coin-glare{width:105px;height:105px;border-radius:40px;background:linear-gradient(317.36deg, #91caff 3.8%, #f3ffc2 100%);filter:blur(30px);position:absolute;z-index:0;top:50%;left:50%;right:0;transform:translate(-50%, -50%)}.dialog__content__title{margin:0;color:var(--emw--color-primary, #d3ffed);font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--size-medium-2x-minus, 40px);line-height:46px}.dialog__content__message{margin:0;color:var(--emw--color-primary-variant, #a9ccbe);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-large, 20px);line-height:28px;max-width:295px}.dialog__content__btn{margin-top:60px;transition:300ms;cursor:pointer;width:280px;height:60px;top:32px;left:103px;padding:10px;border-radius:54px;border:none;background:linear-gradient(90deg, var(--emw--button-border-color, #75ffe9) 0%, var(--emw--button-border-color-secondary, #b2ff6d) 100%);font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-medium-plus, 18px);line-height:18px;letter-spacing:0px;color:var(--emw--color-background-secondary, #0c1a1c);opacity:0;-webkit-animation:fadeIn 500ms ease 1s forwards;animation:fadeIn 500ms ease 1s forwards}.mobile{width:100%;height:100%;border-top-left-radius:28px;border-top-right-radius:28px;padding:20px 28px}.mobile .dialog__content{gap:22px}.mobile .dialog__content__icon{width:initial;height:initial}.mobile .dialog__content__coin-glare{height:65px;width:65px}.mobile .dialog__content__title{font-size:var(--emw--font-size-2x-large, 32px);line-height:36px}.mobile .dialog__content__message{font-size:var(--emw--font-size-medium, 16px);line-height:24px;max-width:240px}.mobile .dialog__content__btn{margin-top:78px;width:220px;font-size:var(--emw--font-size-medium, 16px);height:48px}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}");
|
|
423
|
+
}
|
|
424
|
+
function Ot(t) {
|
|
425
|
+
let e, n, o, i, s, r, l, d, c, m = (
|
|
426
|
+
/*dialogContent*/
|
|
427
|
+
t[0].title + ""
|
|
428
|
+
), u, v, h, p = (
|
|
429
|
+
/*dialogContent*/
|
|
430
|
+
t[0].message + ""
|
|
431
|
+
), P, X, F, G, B, O = (
|
|
432
|
+
/*dialogContent*/
|
|
433
|
+
t[0].bold + ""
|
|
434
|
+
), I, K, k, j = (
|
|
435
|
+
/*dialogContent*/
|
|
436
|
+
t[0].btn + ""
|
|
437
|
+
), D, N, R, Q;
|
|
438
|
+
return {
|
|
439
|
+
c() {
|
|
440
|
+
e = $("div"), n = $("div"), o = $("div"), i = $("div"), s = b(), r = $("img"), d = b(), c = $("h2"), u = E(m), v = b(), h = $("p"), P = E(p), X = b(), F = $("br"), G = b(), B = $("b"), I = E(O), K = b(), k = $("button"), D = E(j), f(i, "class", "dialog__content__coin-glare"), f(r, "class", "dialog__content__icon"), Y(r.src, l = /*dialogContent*/
|
|
441
|
+
t[0].img) || f(r, "src", l), f(r, "alt", ""), f(o, "class", "dialog__content__icon-container"), f(c, "class", "dialog__content__title"), f(h, "class", "dialog__content__message"), f(k, "class", "dialog__content__btn"), f(n, "class", "dialog__content"), f(e, "class", N = "dialog " + /*mobileView*/
|
|
442
|
+
(t[1] ? "mobile" : ""));
|
|
443
|
+
},
|
|
444
|
+
m(_, g) {
|
|
445
|
+
it(_, e, g), a(e, n), a(n, o), a(o, i), a(o, s), a(o, r), a(n, d), a(n, c), a(c, u), a(n, v), a(n, h), a(h, P), a(h, X), a(h, F), a(h, G), a(h, B), a(B, I), a(n, K), a(n, k), a(k, D), R || (Q = dt(
|
|
446
|
+
k,
|
|
447
|
+
"click",
|
|
448
|
+
/*hideDialog*/
|
|
449
|
+
t[2]
|
|
450
|
+
), R = !0);
|
|
451
|
+
},
|
|
452
|
+
p(_, [g]) {
|
|
453
|
+
g & /*dialogContent*/
|
|
454
|
+
1 && !Y(r.src, l = /*dialogContent*/
|
|
455
|
+
_[0].img) && f(r, "src", l), g & /*dialogContent*/
|
|
456
|
+
1 && m !== (m = /*dialogContent*/
|
|
457
|
+
_[0].title + "") && L(u, m), g & /*dialogContent*/
|
|
458
|
+
1 && p !== (p = /*dialogContent*/
|
|
459
|
+
_[0].message + "") && L(P, p), g & /*dialogContent*/
|
|
460
|
+
1 && O !== (O = /*dialogContent*/
|
|
461
|
+
_[0].bold + "") && L(I, O), g & /*dialogContent*/
|
|
462
|
+
1 && j !== (j = /*dialogContent*/
|
|
463
|
+
_[0].btn + "") && L(D, j), g & /*mobileView*/
|
|
464
|
+
2 && N !== (N = "dialog " + /*mobileView*/
|
|
465
|
+
(_[1] ? "mobile" : "")) && f(e, "class", N);
|
|
466
|
+
},
|
|
467
|
+
i: z,
|
|
468
|
+
o: z,
|
|
469
|
+
d(_) {
|
|
470
|
+
_ && J(e), R = !1, Q();
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
function jt(t, e, n) {
|
|
475
|
+
let { dialogContent: o } = e, { mobileView: i = !1 } = e;
|
|
476
|
+
const s = () => {
|
|
477
|
+
Ct({ type: "HideDialog" });
|
|
478
|
+
};
|
|
479
|
+
return t.$$set = (r) => {
|
|
480
|
+
"dialogContent" in r && n(0, o = r.dialogContent), "mobileView" in r && n(1, i = r.mobileView);
|
|
481
|
+
}, [o, i, s];
|
|
482
|
+
}
|
|
483
|
+
class Nt extends kt {
|
|
484
|
+
constructor(e) {
|
|
485
|
+
super(), yt(this, e, jt, Ot, st, { dialogContent: 0, mobileView: 1 }, zt);
|
|
486
|
+
}
|
|
487
|
+
get dialogContent() {
|
|
488
|
+
return this.$$.ctx[0];
|
|
489
|
+
}
|
|
490
|
+
set dialogContent(e) {
|
|
491
|
+
this.$$set({ dialogContent: e }), V();
|
|
492
|
+
}
|
|
493
|
+
get mobileView() {
|
|
494
|
+
return this.$$.ctx[1];
|
|
495
|
+
}
|
|
496
|
+
set mobileView(e) {
|
|
497
|
+
this.$$set({ mobileView: e }), V();
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
vt(Nt, { dialogContent: {}, mobileView: { type: "Boolean" } }, [], [], !0);
|
|
501
|
+
export {
|
|
502
|
+
Nt as C
|
|
503
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { C as n } from "../components/CasinoMysteryChestModal-C4YvfBFg.js";
|
|
2
|
+
function a(t) {
|
|
3
|
+
return function(...s) {
|
|
4
|
+
try {
|
|
5
|
+
return t.apply(this, s);
|
|
6
|
+
} catch (e) {
|
|
7
|
+
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"))
|
|
8
|
+
return !1;
|
|
9
|
+
throw e;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
customElements.define = a(customElements.define);
|
|
14
|
+
!customElements.get("casino-mystery-chest-modal") && customElements.define("casino-mystery-chest-modal", n.element);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-mystery-chest-modal",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "es2015/casino-mystery-chest-modal.cjs",
|
|
6
6
|
"module": "es2015/casino-mystery-chest-modal.js",
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|
|
24
24
|
}
|
|
25
|
-
}
|
|
25
|
+
}
|