@everymatrix/casino-wagering-bonus-progress 1.54.6 → 1.54.9
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/components/{CasinoWageringBonusProgress-P2tvmlbE.js → CasinoWageringBonusProgress-BNOMED5f.js} +2 -2
- package/components/CasinoWageringBonusProgress-Dvj2_Nd0.js +794 -0
- package/components/CasinoWageringBonusProgress-zQo4yjHd.cjs +1 -0
- package/es2015/casino-wagering-bonus-progress.cjs +1 -0
- package/es2015/casino-wagering-bonus-progress.js +16 -0
- package/esnext/casino-wagering-bonus-progress.js +1 -1
- package/package.json +1 -1
|
@@ -214,10 +214,10 @@ function mt(t, e, n, i, s, o, u = null, c = [-1]) {
|
|
|
214
214
|
};
|
|
215
215
|
u && u(f.root);
|
|
216
216
|
let g = !1;
|
|
217
|
-
if (f.ctx = n(t, e.props || {}, (a, h, ...d) => {
|
|
217
|
+
if (f.ctx = n ? n(t, e.props || {}, (a, h, ...d) => {
|
|
218
218
|
const b = d.length ? d[0] : h;
|
|
219
219
|
return f.ctx && s(f.ctx[a], f.ctx[a] = b) && (!f.skip_bound && f.bound[a] && f.bound[a](b), g && gt(t, a)), h;
|
|
220
|
-
}), f.update(), g = !0, S(f.before_update), f.fragment = i(f.ctx), e.target) {
|
|
220
|
+
}) : [], f.update(), g = !0, S(f.before_update), f.fragment = i ? i(f.ctx) : !1, e.target) {
|
|
221
221
|
if (e.hydrate) {
|
|
222
222
|
const a = st(e.target);
|
|
223
223
|
f.fragment && f.fragment.l(a), a.forEach(z);
|
|
@@ -0,0 +1,794 @@
|
|
|
1
|
+
var nt = Object.defineProperty, st = Object.defineProperties;
|
|
2
|
+
var rt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var D = Object.getOwnPropertySymbols;
|
|
4
|
+
var it = Object.prototype.hasOwnProperty, ot = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var T = (t, e, n) => e in t ? nt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, H = (t, e) => {
|
|
6
|
+
for (var n in e || (e = {}))
|
|
7
|
+
it.call(e, n) && T(t, n, e[n]);
|
|
8
|
+
if (D)
|
|
9
|
+
for (var n of D(e))
|
|
10
|
+
ot.call(e, n) && T(t, n, e[n]);
|
|
11
|
+
return t;
|
|
12
|
+
}, J = (t, e) => st(t, rt(e));
|
|
13
|
+
var h = (t, e, n) => T(t, typeof e != "symbol" ? e + "" : e, n);
|
|
14
|
+
var U = (t, e, n) => new Promise((r, o) => {
|
|
15
|
+
var s = (c) => {
|
|
16
|
+
try {
|
|
17
|
+
u(n.next(c));
|
|
18
|
+
} catch (f) {
|
|
19
|
+
o(f);
|
|
20
|
+
}
|
|
21
|
+
}, l = (c) => {
|
|
22
|
+
try {
|
|
23
|
+
u(n.throw(c));
|
|
24
|
+
} catch (f) {
|
|
25
|
+
o(f);
|
|
26
|
+
}
|
|
27
|
+
}, u = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(s, l);
|
|
28
|
+
u((n = n.apply(t, e)).next());
|
|
29
|
+
});
|
|
30
|
+
function F() {
|
|
31
|
+
}
|
|
32
|
+
function v(t, e) {
|
|
33
|
+
for (const n in e) t[n] = e[n];
|
|
34
|
+
return (
|
|
35
|
+
/** @type {T & S} */
|
|
36
|
+
t
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
function X(t) {
|
|
40
|
+
return t();
|
|
41
|
+
}
|
|
42
|
+
function q() {
|
|
43
|
+
return /* @__PURE__ */ Object.create(null);
|
|
44
|
+
}
|
|
45
|
+
function I(t) {
|
|
46
|
+
t.forEach(X);
|
|
47
|
+
}
|
|
48
|
+
function Y(t) {
|
|
49
|
+
return typeof t == "function";
|
|
50
|
+
}
|
|
51
|
+
function ct(t, e) {
|
|
52
|
+
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
53
|
+
}
|
|
54
|
+
function lt(t) {
|
|
55
|
+
return Object.keys(t).length === 0;
|
|
56
|
+
}
|
|
57
|
+
const ut = ["", !0, 1, "true", "contenteditable"];
|
|
58
|
+
function w(t, e) {
|
|
59
|
+
t.appendChild(e);
|
|
60
|
+
}
|
|
61
|
+
function ft(t, e, n) {
|
|
62
|
+
const r = $t(t);
|
|
63
|
+
if (!r.getElementById(e)) {
|
|
64
|
+
const o = x("style");
|
|
65
|
+
o.id = e, o.textContent = n, at(r, o);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function $t(t) {
|
|
69
|
+
if (!t) return document;
|
|
70
|
+
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
71
|
+
return e && /** @type {ShadowRoot} */
|
|
72
|
+
e.host ? (
|
|
73
|
+
/** @type {ShadowRoot} */
|
|
74
|
+
e
|
|
75
|
+
) : t.ownerDocument;
|
|
76
|
+
}
|
|
77
|
+
function at(t, e) {
|
|
78
|
+
return w(
|
|
79
|
+
/** @type {Document} */
|
|
80
|
+
t.head || t,
|
|
81
|
+
e
|
|
82
|
+
), e.sheet;
|
|
83
|
+
}
|
|
84
|
+
function Z(t, e, n) {
|
|
85
|
+
t.insertBefore(e, n || null);
|
|
86
|
+
}
|
|
87
|
+
function R(t) {
|
|
88
|
+
t.parentNode && t.parentNode.removeChild(t);
|
|
89
|
+
}
|
|
90
|
+
function x(t) {
|
|
91
|
+
return document.createElement(t);
|
|
92
|
+
}
|
|
93
|
+
function O(t) {
|
|
94
|
+
return document.createElementNS("http://www.w3.org/2000/svg", t);
|
|
95
|
+
}
|
|
96
|
+
function G(t) {
|
|
97
|
+
return document.createTextNode(t);
|
|
98
|
+
}
|
|
99
|
+
function dt(t, e, n, r) {
|
|
100
|
+
return t.addEventListener(e, n, r), () => t.removeEventListener(e, n, r);
|
|
101
|
+
}
|
|
102
|
+
function tt(t, e, n) {
|
|
103
|
+
n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
|
|
104
|
+
}
|
|
105
|
+
function m(t, e) {
|
|
106
|
+
for (const n in e)
|
|
107
|
+
tt(t, n, e[n]);
|
|
108
|
+
}
|
|
109
|
+
function ht(t) {
|
|
110
|
+
return Array.from(t.childNodes);
|
|
111
|
+
}
|
|
112
|
+
function _t(t, e) {
|
|
113
|
+
e = "" + e, t.data !== e && (t.data = /** @type {string} */
|
|
114
|
+
e);
|
|
115
|
+
}
|
|
116
|
+
function gt(t, e) {
|
|
117
|
+
e = "" + e, t.wholeText !== e && (t.data = /** @type {string} */
|
|
118
|
+
e);
|
|
119
|
+
}
|
|
120
|
+
function mt(t, e, n) {
|
|
121
|
+
~ut.indexOf(n) ? gt(t, e) : _t(t, e);
|
|
122
|
+
}
|
|
123
|
+
function pt(t) {
|
|
124
|
+
const e = {};
|
|
125
|
+
return t.childNodes.forEach(
|
|
126
|
+
/** @param {Element} node */
|
|
127
|
+
(n) => {
|
|
128
|
+
e[n.slot || "default"] = !0;
|
|
129
|
+
}
|
|
130
|
+
), e;
|
|
131
|
+
}
|
|
132
|
+
let V;
|
|
133
|
+
function j(t) {
|
|
134
|
+
V = t;
|
|
135
|
+
}
|
|
136
|
+
const P = [], K = [];
|
|
137
|
+
let C = [];
|
|
138
|
+
const Q = [], bt = /* @__PURE__ */ Promise.resolve();
|
|
139
|
+
let W = !1;
|
|
140
|
+
function yt() {
|
|
141
|
+
W || (W = !0, bt.then(S));
|
|
142
|
+
}
|
|
143
|
+
function M(t) {
|
|
144
|
+
C.push(t);
|
|
145
|
+
}
|
|
146
|
+
const z = /* @__PURE__ */ new Set();
|
|
147
|
+
let E = 0;
|
|
148
|
+
function S() {
|
|
149
|
+
if (E !== 0)
|
|
150
|
+
return;
|
|
151
|
+
const t = V;
|
|
152
|
+
do {
|
|
153
|
+
try {
|
|
154
|
+
for (; E < P.length; ) {
|
|
155
|
+
const e = P[E];
|
|
156
|
+
E++, j(e), wt(e.$$);
|
|
157
|
+
}
|
|
158
|
+
} catch (e) {
|
|
159
|
+
throw P.length = 0, E = 0, e;
|
|
160
|
+
}
|
|
161
|
+
for (j(null), P.length = 0, E = 0; K.length; ) K.pop()();
|
|
162
|
+
for (let e = 0; e < C.length; e += 1) {
|
|
163
|
+
const n = C[e];
|
|
164
|
+
z.has(n) || (z.add(n), n());
|
|
165
|
+
}
|
|
166
|
+
C.length = 0;
|
|
167
|
+
} while (P.length);
|
|
168
|
+
for (; Q.length; )
|
|
169
|
+
Q.pop()();
|
|
170
|
+
W = !1, z.clear(), j(t);
|
|
171
|
+
}
|
|
172
|
+
function wt(t) {
|
|
173
|
+
if (t.fragment !== null) {
|
|
174
|
+
t.update(), I(t.before_update);
|
|
175
|
+
const e = t.dirty;
|
|
176
|
+
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(M);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
function kt(t) {
|
|
180
|
+
const e = [], n = [];
|
|
181
|
+
C.forEach((r) => t.indexOf(r) === -1 ? e.push(r) : n.push(r)), n.forEach((r) => r()), C = e;
|
|
182
|
+
}
|
|
183
|
+
const Et = /* @__PURE__ */ new Set();
|
|
184
|
+
function Pt(t, e) {
|
|
185
|
+
t && t.i && (Et.delete(t), t.i(e));
|
|
186
|
+
}
|
|
187
|
+
function N(t, e) {
|
|
188
|
+
const n = {}, r = {}, o = { $$scope: 1 };
|
|
189
|
+
let s = t.length;
|
|
190
|
+
for (; s--; ) {
|
|
191
|
+
const l = t[s], u = e[s];
|
|
192
|
+
if (u) {
|
|
193
|
+
for (const c in l)
|
|
194
|
+
c in u || (r[c] = 1);
|
|
195
|
+
for (const c in u)
|
|
196
|
+
o[c] || (n[c] = u[c], o[c] = 1);
|
|
197
|
+
t[s] = u;
|
|
198
|
+
} else
|
|
199
|
+
for (const c in l)
|
|
200
|
+
o[c] = 1;
|
|
201
|
+
}
|
|
202
|
+
for (const l in r)
|
|
203
|
+
l in n || (n[l] = void 0);
|
|
204
|
+
return n;
|
|
205
|
+
}
|
|
206
|
+
function Ct(t, e, n) {
|
|
207
|
+
const { fragment: r, after_update: o } = t.$$;
|
|
208
|
+
r && r.m(e, n), M(() => {
|
|
209
|
+
const s = t.$$.on_mount.map(X).filter(Y);
|
|
210
|
+
t.$$.on_destroy ? t.$$.on_destroy.push(...s) : I(s), t.$$.on_mount = [];
|
|
211
|
+
}), o.forEach(M);
|
|
212
|
+
}
|
|
213
|
+
function vt(t, e) {
|
|
214
|
+
const n = t.$$;
|
|
215
|
+
n.fragment !== null && (kt(n.after_update), I(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
216
|
+
}
|
|
217
|
+
function Ot(t, e) {
|
|
218
|
+
t.$$.dirty[0] === -1 && (P.push(t), yt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
219
|
+
}
|
|
220
|
+
function Nt(t, e, n, r, o, s, l = null, u = [-1]) {
|
|
221
|
+
const c = V;
|
|
222
|
+
j(t);
|
|
223
|
+
const f = t.$$ = {
|
|
224
|
+
fragment: null,
|
|
225
|
+
ctx: [],
|
|
226
|
+
// state
|
|
227
|
+
props: s,
|
|
228
|
+
update: F,
|
|
229
|
+
not_equal: o,
|
|
230
|
+
bound: q(),
|
|
231
|
+
// lifecycle
|
|
232
|
+
on_mount: [],
|
|
233
|
+
on_destroy: [],
|
|
234
|
+
on_disconnect: [],
|
|
235
|
+
before_update: [],
|
|
236
|
+
after_update: [],
|
|
237
|
+
context: new Map(e.context || (c ? c.$$.context : [])),
|
|
238
|
+
// everything else
|
|
239
|
+
callbacks: q(),
|
|
240
|
+
dirty: u,
|
|
241
|
+
skip_bound: !1,
|
|
242
|
+
root: e.target || c.$$.root
|
|
243
|
+
};
|
|
244
|
+
l && l(f.root);
|
|
245
|
+
let _ = !1;
|
|
246
|
+
if (f.ctx = n ? n(t, e.props || {}, (a, g, ...d) => {
|
|
247
|
+
const y = d.length ? d[0] : g;
|
|
248
|
+
return f.ctx && o(f.ctx[a], f.ctx[a] = y) && (!f.skip_bound && f.bound[a] && f.bound[a](y), _ && Ot(t, a)), g;
|
|
249
|
+
}) : [], f.update(), _ = !0, I(f.before_update), f.fragment = r ? r(f.ctx) : !1, e.target) {
|
|
250
|
+
if (e.hydrate) {
|
|
251
|
+
const a = ht(e.target);
|
|
252
|
+
f.fragment && f.fragment.l(a), a.forEach(R);
|
|
253
|
+
} else
|
|
254
|
+
f.fragment && f.fragment.c();
|
|
255
|
+
e.intro && Pt(t.$$.fragment), Ct(t, e.target, e.anchor), S();
|
|
256
|
+
}
|
|
257
|
+
j(c);
|
|
258
|
+
}
|
|
259
|
+
let et;
|
|
260
|
+
typeof HTMLElement == "function" && (et = class extends HTMLElement {
|
|
261
|
+
constructor(e, n, r) {
|
|
262
|
+
super();
|
|
263
|
+
/** The Svelte component constructor */
|
|
264
|
+
h(this, "$$ctor");
|
|
265
|
+
/** Slots */
|
|
266
|
+
h(this, "$$s");
|
|
267
|
+
/** The Svelte component instance */
|
|
268
|
+
h(this, "$$c");
|
|
269
|
+
/** Whether or not the custom element is connected */
|
|
270
|
+
h(this, "$$cn", !1);
|
|
271
|
+
/** Component props data */
|
|
272
|
+
h(this, "$$d", {});
|
|
273
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
274
|
+
h(this, "$$r", !1);
|
|
275
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
276
|
+
h(this, "$$p_d", {});
|
|
277
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
278
|
+
h(this, "$$l", {});
|
|
279
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
280
|
+
h(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
281
|
+
this.$$ctor = e, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
282
|
+
}
|
|
283
|
+
addEventListener(e, n, r) {
|
|
284
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(n), this.$$c) {
|
|
285
|
+
const o = this.$$c.$on(e, n);
|
|
286
|
+
this.$$l_u.set(n, o);
|
|
287
|
+
}
|
|
288
|
+
super.addEventListener(e, n, r);
|
|
289
|
+
}
|
|
290
|
+
removeEventListener(e, n, r) {
|
|
291
|
+
if (super.removeEventListener(e, n, r), this.$$c) {
|
|
292
|
+
const o = this.$$l_u.get(n);
|
|
293
|
+
o && (o(), this.$$l_u.delete(n));
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
connectedCallback() {
|
|
297
|
+
return U(this, null, function* () {
|
|
298
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
299
|
+
let e = function(s) {
|
|
300
|
+
return () => {
|
|
301
|
+
let l;
|
|
302
|
+
return {
|
|
303
|
+
c: function() {
|
|
304
|
+
l = x("slot"), s !== "default" && tt(l, "name", s);
|
|
305
|
+
},
|
|
306
|
+
/**
|
|
307
|
+
* @param {HTMLElement} target
|
|
308
|
+
* @param {HTMLElement} [anchor]
|
|
309
|
+
*/
|
|
310
|
+
m: function(f, _) {
|
|
311
|
+
Z(f, l, _);
|
|
312
|
+
},
|
|
313
|
+
d: function(f) {
|
|
314
|
+
f && R(l);
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
320
|
+
return;
|
|
321
|
+
const n = {}, r = pt(this);
|
|
322
|
+
for (const s of this.$$s)
|
|
323
|
+
s in r && (n[s] = [e(s)]);
|
|
324
|
+
for (const s of this.attributes) {
|
|
325
|
+
const l = this.$$g_p(s.name);
|
|
326
|
+
l in this.$$d || (this.$$d[l] = L(l, s.value, this.$$p_d, "toProp"));
|
|
327
|
+
}
|
|
328
|
+
for (const s in this.$$p_d)
|
|
329
|
+
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
330
|
+
this.$$c = new this.$$ctor({
|
|
331
|
+
target: this.shadowRoot || this,
|
|
332
|
+
props: J(H({}, this.$$d), {
|
|
333
|
+
$$slots: n,
|
|
334
|
+
$$scope: {
|
|
335
|
+
ctx: []
|
|
336
|
+
}
|
|
337
|
+
})
|
|
338
|
+
});
|
|
339
|
+
const o = () => {
|
|
340
|
+
this.$$r = !0;
|
|
341
|
+
for (const s in this.$$p_d)
|
|
342
|
+
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
343
|
+
const l = L(
|
|
344
|
+
s,
|
|
345
|
+
this.$$d[s],
|
|
346
|
+
this.$$p_d,
|
|
347
|
+
"toAttribute"
|
|
348
|
+
);
|
|
349
|
+
l == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, l);
|
|
350
|
+
}
|
|
351
|
+
this.$$r = !1;
|
|
352
|
+
};
|
|
353
|
+
this.$$c.$$.after_update.push(o), o();
|
|
354
|
+
for (const s in this.$$l)
|
|
355
|
+
for (const l of this.$$l[s]) {
|
|
356
|
+
const u = this.$$c.$on(s, l);
|
|
357
|
+
this.$$l_u.set(l, u);
|
|
358
|
+
}
|
|
359
|
+
this.$$l = {};
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
364
|
+
// and setting attributes through setAttribute etc, this is helpful
|
|
365
|
+
attributeChangedCallback(e, n, r) {
|
|
366
|
+
var o;
|
|
367
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = L(e, r, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [e]: this.$$d[e] }));
|
|
368
|
+
}
|
|
369
|
+
disconnectedCallback() {
|
|
370
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
371
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
$$g_p(e) {
|
|
375
|
+
return Object.keys(this.$$p_d).find(
|
|
376
|
+
(n) => this.$$p_d[n].attribute === e || !this.$$p_d[n].attribute && n.toLowerCase() === e
|
|
377
|
+
) || e;
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
function L(t, e, n, r) {
|
|
381
|
+
var s;
|
|
382
|
+
const o = (s = n[t]) == null ? void 0 : s.type;
|
|
383
|
+
if (e = o === "Boolean" && typeof e != "boolean" ? e != null : e, !r || !n[t])
|
|
384
|
+
return e;
|
|
385
|
+
if (r === "toAttribute")
|
|
386
|
+
switch (o) {
|
|
387
|
+
case "Object":
|
|
388
|
+
case "Array":
|
|
389
|
+
return e == null ? null : JSON.stringify(e);
|
|
390
|
+
case "Boolean":
|
|
391
|
+
return e ? "" : null;
|
|
392
|
+
case "Number":
|
|
393
|
+
return e == null ? null : e;
|
|
394
|
+
default:
|
|
395
|
+
return e;
|
|
396
|
+
}
|
|
397
|
+
else
|
|
398
|
+
switch (o) {
|
|
399
|
+
case "Object":
|
|
400
|
+
case "Array":
|
|
401
|
+
return e && JSON.parse(e);
|
|
402
|
+
case "Boolean":
|
|
403
|
+
return e;
|
|
404
|
+
case "Number":
|
|
405
|
+
return e != null ? +e : e;
|
|
406
|
+
default:
|
|
407
|
+
return e;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
function jt(t, e, n, r, o, s) {
|
|
411
|
+
let l = class extends et {
|
|
412
|
+
constructor() {
|
|
413
|
+
super(t, n, o), this.$$p_d = e;
|
|
414
|
+
}
|
|
415
|
+
static get observedAttributes() {
|
|
416
|
+
return Object.keys(e).map(
|
|
417
|
+
(u) => (e[u].attribute || u).toLowerCase()
|
|
418
|
+
);
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
return Object.keys(e).forEach((u) => {
|
|
422
|
+
Object.defineProperty(l.prototype, u, {
|
|
423
|
+
get() {
|
|
424
|
+
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
425
|
+
},
|
|
426
|
+
set(c) {
|
|
427
|
+
var f;
|
|
428
|
+
c = L(u, c, e), this.$$d[u] = c, (f = this.$$c) == null || f.$set({ [u]: c });
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
}), r.forEach((u) => {
|
|
432
|
+
Object.defineProperty(l.prototype, u, {
|
|
433
|
+
get() {
|
|
434
|
+
var c;
|
|
435
|
+
return (c = this.$$c) == null ? void 0 : c[u];
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
}), t.element = /** @type {any} */
|
|
439
|
+
l, l;
|
|
440
|
+
}
|
|
441
|
+
class Ft {
|
|
442
|
+
constructor() {
|
|
443
|
+
/**
|
|
444
|
+
* ### PRIVATE API
|
|
445
|
+
*
|
|
446
|
+
* Do not use, may change at any time
|
|
447
|
+
*
|
|
448
|
+
* @type {any}
|
|
449
|
+
*/
|
|
450
|
+
h(this, "$$");
|
|
451
|
+
/**
|
|
452
|
+
* ### PRIVATE API
|
|
453
|
+
*
|
|
454
|
+
* Do not use, may change at any time
|
|
455
|
+
*
|
|
456
|
+
* @type {any}
|
|
457
|
+
*/
|
|
458
|
+
h(this, "$$set");
|
|
459
|
+
}
|
|
460
|
+
/** @returns {void} */
|
|
461
|
+
$destroy() {
|
|
462
|
+
vt(this, 1), this.$destroy = F;
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* @template {Extract<keyof Events, string>} K
|
|
466
|
+
* @param {K} type
|
|
467
|
+
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
468
|
+
* @returns {() => void}
|
|
469
|
+
*/
|
|
470
|
+
$on(e, n) {
|
|
471
|
+
if (!Y(n))
|
|
472
|
+
return F;
|
|
473
|
+
const r = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
474
|
+
return r.push(n), () => {
|
|
475
|
+
const o = r.indexOf(n);
|
|
476
|
+
o !== -1 && r.splice(o, 1);
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* @param {Partial<Props>} props
|
|
481
|
+
* @returns {void}
|
|
482
|
+
*/
|
|
483
|
+
$set(e) {
|
|
484
|
+
this.$$set && !lt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
const At = "4";
|
|
488
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(At);
|
|
489
|
+
function Lt(t) {
|
|
490
|
+
ft(t, "svelte-1xvg6od", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ProgressText{fill:#FFFFFF;text-anchor:middle;dominant-baseline:middle;font-style:normal;font-weight:700;font-size:22.0351951033px}.ProgressTextMobile{font-size:5.1282051282vw}circle.ring{stroke:#F2F4F6;fill:transparent}circle.ring-progress{transition:0.35s stroke-dashoffset;stroke:#C4C4C4;transform:rotate(-90deg);transform-origin:50% 50%}circle.ring-progress.active{stroke:#00AEEF}circle.center{fill:#C4C4C4}circle.center.active{fill:#00AEEF}");
|
|
491
|
+
}
|
|
492
|
+
function Mt(t) {
|
|
493
|
+
let e, n, r, o, s, l, u, c, f;
|
|
494
|
+
M(
|
|
495
|
+
/*onwindowresize*/
|
|
496
|
+
t[11]
|
|
497
|
+
);
|
|
498
|
+
let _ = [
|
|
499
|
+
{
|
|
500
|
+
class: "ring",
|
|
501
|
+
r: (
|
|
502
|
+
/*radius*/
|
|
503
|
+
t[3]
|
|
504
|
+
),
|
|
505
|
+
cx: (
|
|
506
|
+
/*center*/
|
|
507
|
+
t[9]
|
|
508
|
+
),
|
|
509
|
+
cy: (
|
|
510
|
+
/*center*/
|
|
511
|
+
t[9]
|
|
512
|
+
),
|
|
513
|
+
"stroke-width": `${/*ringStrokeWidth*/
|
|
514
|
+
t[5]}px`
|
|
515
|
+
}
|
|
516
|
+
], a = {};
|
|
517
|
+
for (let i = 0; i < _.length; i += 1)
|
|
518
|
+
a = v(a, _[i]);
|
|
519
|
+
let g = [
|
|
520
|
+
{
|
|
521
|
+
class: `ring ring-progress ${/*status*/
|
|
522
|
+
t[1] === /*BonusStatus*/
|
|
523
|
+
t[6].InProgress ? "active" : ""}`,
|
|
524
|
+
r: (
|
|
525
|
+
/*radius*/
|
|
526
|
+
t[3]
|
|
527
|
+
),
|
|
528
|
+
cx: (
|
|
529
|
+
/*center*/
|
|
530
|
+
t[9]
|
|
531
|
+
),
|
|
532
|
+
cy: (
|
|
533
|
+
/*center*/
|
|
534
|
+
t[9]
|
|
535
|
+
),
|
|
536
|
+
"stroke-width": `${/*ringStrokeWidth*/
|
|
537
|
+
t[5]}px`,
|
|
538
|
+
"stroke-dasharray": `${/*circumference*/
|
|
539
|
+
t[8]} ${/*circumference*/
|
|
540
|
+
t[8]}`,
|
|
541
|
+
"stroke-dashoffset": (
|
|
542
|
+
/*circumference*/
|
|
543
|
+
t[8] - Number(
|
|
544
|
+
/*percent*/
|
|
545
|
+
t[0]
|
|
546
|
+
) / 100 * /*circumference*/
|
|
547
|
+
t[8]
|
|
548
|
+
)
|
|
549
|
+
}
|
|
550
|
+
], d = {};
|
|
551
|
+
for (let i = 0; i < g.length; i += 1)
|
|
552
|
+
d = v(d, g[i]);
|
|
553
|
+
let y = [
|
|
554
|
+
{
|
|
555
|
+
class: `center ${/*status*/
|
|
556
|
+
t[1] === /*BonusStatus*/
|
|
557
|
+
t[6].InProgress ? "active" : ""}`,
|
|
558
|
+
r: (
|
|
559
|
+
/*radius*/
|
|
560
|
+
t[3] - /*ringStrokeWidth*/
|
|
561
|
+
t[5] / 2 - 3
|
|
562
|
+
),
|
|
563
|
+
cx: (
|
|
564
|
+
/*center*/
|
|
565
|
+
t[9]
|
|
566
|
+
),
|
|
567
|
+
cy: (
|
|
568
|
+
/*center*/
|
|
569
|
+
t[9]
|
|
570
|
+
)
|
|
571
|
+
}
|
|
572
|
+
], k = {};
|
|
573
|
+
for (let i = 0; i < y.length; i += 1)
|
|
574
|
+
k = v(k, y[i]);
|
|
575
|
+
let $ = [
|
|
576
|
+
{
|
|
577
|
+
x: (
|
|
578
|
+
/*center*/
|
|
579
|
+
t[9]
|
|
580
|
+
),
|
|
581
|
+
y: (
|
|
582
|
+
/*center*/
|
|
583
|
+
t[9]
|
|
584
|
+
)
|
|
585
|
+
},
|
|
586
|
+
/*classWithPartMatchMobile*/
|
|
587
|
+
t[7]("ProgressText")
|
|
588
|
+
], p = {};
|
|
589
|
+
for (let i = 0; i < $.length; i += 1)
|
|
590
|
+
p = v(p, $[i]);
|
|
591
|
+
let B = [
|
|
592
|
+
{
|
|
593
|
+
width: (
|
|
594
|
+
/*size*/
|
|
595
|
+
t[4]
|
|
596
|
+
),
|
|
597
|
+
height: (
|
|
598
|
+
/*size*/
|
|
599
|
+
t[4]
|
|
600
|
+
)
|
|
601
|
+
}
|
|
602
|
+
], A = {};
|
|
603
|
+
for (let i = 0; i < B.length; i += 1)
|
|
604
|
+
A = v(A, B[i]);
|
|
605
|
+
return {
|
|
606
|
+
c() {
|
|
607
|
+
e = O("svg"), n = O("circle"), r = O("circle"), o = O("circle"), s = O("text"), l = G(
|
|
608
|
+
/*percent*/
|
|
609
|
+
t[0]
|
|
610
|
+
), u = G("%"), m(n, a), m(r, d), m(o, k), m(s, p), m(e, A);
|
|
611
|
+
},
|
|
612
|
+
m(i, b) {
|
|
613
|
+
Z(i, e, b), w(e, n), w(e, r), w(e, o), w(e, s), w(s, l), w(s, u), c || (f = dt(
|
|
614
|
+
window,
|
|
615
|
+
"resize",
|
|
616
|
+
/*onwindowresize*/
|
|
617
|
+
t[11]
|
|
618
|
+
), c = !0);
|
|
619
|
+
},
|
|
620
|
+
p(i, [b]) {
|
|
621
|
+
m(n, a = N(_, [
|
|
622
|
+
b & /*radius, center, ringStrokeWidth*/
|
|
623
|
+
552 && {
|
|
624
|
+
class: "ring",
|
|
625
|
+
r: (
|
|
626
|
+
/*radius*/
|
|
627
|
+
i[3]
|
|
628
|
+
),
|
|
629
|
+
cx: (
|
|
630
|
+
/*center*/
|
|
631
|
+
i[9]
|
|
632
|
+
),
|
|
633
|
+
cy: (
|
|
634
|
+
/*center*/
|
|
635
|
+
i[9]
|
|
636
|
+
),
|
|
637
|
+
"stroke-width": `${/*ringStrokeWidth*/
|
|
638
|
+
i[5]}px`
|
|
639
|
+
}
|
|
640
|
+
])), m(r, d = N(g, [
|
|
641
|
+
b & /*status, BonusStatus, radius, center, ringStrokeWidth, circumference, percent*/
|
|
642
|
+
875 && {
|
|
643
|
+
class: `ring ring-progress ${/*status*/
|
|
644
|
+
i[1] === /*BonusStatus*/
|
|
645
|
+
i[6].InProgress ? "active" : ""}`,
|
|
646
|
+
r: (
|
|
647
|
+
/*radius*/
|
|
648
|
+
i[3]
|
|
649
|
+
),
|
|
650
|
+
cx: (
|
|
651
|
+
/*center*/
|
|
652
|
+
i[9]
|
|
653
|
+
),
|
|
654
|
+
cy: (
|
|
655
|
+
/*center*/
|
|
656
|
+
i[9]
|
|
657
|
+
),
|
|
658
|
+
"stroke-width": `${/*ringStrokeWidth*/
|
|
659
|
+
i[5]}px`,
|
|
660
|
+
"stroke-dasharray": `${/*circumference*/
|
|
661
|
+
i[8]} ${/*circumference*/
|
|
662
|
+
i[8]}`,
|
|
663
|
+
"stroke-dashoffset": (
|
|
664
|
+
/*circumference*/
|
|
665
|
+
i[8] - Number(
|
|
666
|
+
/*percent*/
|
|
667
|
+
i[0]
|
|
668
|
+
) / 100 * /*circumference*/
|
|
669
|
+
i[8]
|
|
670
|
+
)
|
|
671
|
+
}
|
|
672
|
+
])), m(o, k = N(y, [
|
|
673
|
+
b & /*status, BonusStatus, radius, ringStrokeWidth, center*/
|
|
674
|
+
618 && {
|
|
675
|
+
class: `center ${/*status*/
|
|
676
|
+
i[1] === /*BonusStatus*/
|
|
677
|
+
i[6].InProgress ? "active" : ""}`,
|
|
678
|
+
r: (
|
|
679
|
+
/*radius*/
|
|
680
|
+
i[3] - /*ringStrokeWidth*/
|
|
681
|
+
i[5] / 2 - 3
|
|
682
|
+
),
|
|
683
|
+
cx: (
|
|
684
|
+
/*center*/
|
|
685
|
+
i[9]
|
|
686
|
+
),
|
|
687
|
+
cy: (
|
|
688
|
+
/*center*/
|
|
689
|
+
i[9]
|
|
690
|
+
)
|
|
691
|
+
}
|
|
692
|
+
])), b & /*percent*/
|
|
693
|
+
1 && mt(
|
|
694
|
+
l,
|
|
695
|
+
/*percent*/
|
|
696
|
+
i[0],
|
|
697
|
+
p.contenteditable
|
|
698
|
+
), m(s, p = N($, [
|
|
699
|
+
b & /*center*/
|
|
700
|
+
512 && {
|
|
701
|
+
x: (
|
|
702
|
+
/*center*/
|
|
703
|
+
i[9]
|
|
704
|
+
),
|
|
705
|
+
y: (
|
|
706
|
+
/*center*/
|
|
707
|
+
i[9]
|
|
708
|
+
)
|
|
709
|
+
},
|
|
710
|
+
b & /*classWithPartMatchMobile*/
|
|
711
|
+
128 && /*classWithPartMatchMobile*/
|
|
712
|
+
i[7]("ProgressText")
|
|
713
|
+
])), m(e, A = N(B, [
|
|
714
|
+
b & /*size*/
|
|
715
|
+
16 && {
|
|
716
|
+
width: (
|
|
717
|
+
/*size*/
|
|
718
|
+
i[4]
|
|
719
|
+
),
|
|
720
|
+
height: (
|
|
721
|
+
/*size*/
|
|
722
|
+
i[4]
|
|
723
|
+
)
|
|
724
|
+
}
|
|
725
|
+
]));
|
|
726
|
+
},
|
|
727
|
+
i: F,
|
|
728
|
+
o: F,
|
|
729
|
+
d(i) {
|
|
730
|
+
i && R(e), c = !1, f();
|
|
731
|
+
}
|
|
732
|
+
};
|
|
733
|
+
}
|
|
734
|
+
function St(t, e, n) {
|
|
735
|
+
let r, o, s, l, u, c, f, { percent: _ = "" } = e, { status: a = "" } = e;
|
|
736
|
+
var g;
|
|
737
|
+
(function($) {
|
|
738
|
+
$.BeforeClaimed = "BeforeClaimed", $.InProgress = "active", $.ForfeitedOrCompleted = "ForfeitedOrCompleted";
|
|
739
|
+
})(g || (g = {}));
|
|
740
|
+
let d = 200;
|
|
741
|
+
const y = ($, p = "") => ({
|
|
742
|
+
part: $,
|
|
743
|
+
class: [$, p].join(" ")
|
|
744
|
+
});
|
|
745
|
+
function k() {
|
|
746
|
+
n(2, d = window.innerWidth);
|
|
747
|
+
}
|
|
748
|
+
return t.$$set = ($) => {
|
|
749
|
+
"percent" in $ && n(0, _ = $.percent), "status" in $ && n(1, a = $.status);
|
|
750
|
+
}, t.$$.update = () => {
|
|
751
|
+
t.$$.dirty & /*innerWidth*/
|
|
752
|
+
4 && n(10, r = d <= 576), t.$$.dirty & /*isMobileView, innerWidth*/
|
|
753
|
+
1028 && n(4, o = r ? d / 4 : 100), t.$$.dirty & /*size*/
|
|
754
|
+
16 && n(5, s = o / 7.5), t.$$.dirty & /*size, ringStrokeWidth*/
|
|
755
|
+
48 && n(3, l = o / 2 - s / 2), t.$$.dirty & /*size*/
|
|
756
|
+
16 && n(9, u = o / 2), t.$$.dirty & /*radius*/
|
|
757
|
+
8 && n(8, c = l * 2 * Math.PI), t.$$.dirty & /*isMobileView*/
|
|
758
|
+
1024 && n(7, f = ($, p = "") => y(`${$}${r ? ` ${$}Mobile` : ""}`, p));
|
|
759
|
+
}, [
|
|
760
|
+
_,
|
|
761
|
+
a,
|
|
762
|
+
d,
|
|
763
|
+
l,
|
|
764
|
+
o,
|
|
765
|
+
s,
|
|
766
|
+
g,
|
|
767
|
+
f,
|
|
768
|
+
c,
|
|
769
|
+
u,
|
|
770
|
+
r,
|
|
771
|
+
k
|
|
772
|
+
];
|
|
773
|
+
}
|
|
774
|
+
class It extends Ft {
|
|
775
|
+
constructor(e) {
|
|
776
|
+
super(), Nt(this, e, St, Mt, ct, { percent: 0, status: 1 }, Lt);
|
|
777
|
+
}
|
|
778
|
+
get percent() {
|
|
779
|
+
return this.$$.ctx[0];
|
|
780
|
+
}
|
|
781
|
+
set percent(e) {
|
|
782
|
+
this.$$set({ percent: e }), S();
|
|
783
|
+
}
|
|
784
|
+
get status() {
|
|
785
|
+
return this.$$.ctx[1];
|
|
786
|
+
}
|
|
787
|
+
set status(e) {
|
|
788
|
+
this.$$set({ status: e }), S();
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
jt(It, { percent: {}, status: {} }, [], [], !0);
|
|
792
|
+
export {
|
|
793
|
+
It as default
|
|
794
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var st=Object.defineProperty,rt=Object.defineProperties;var it=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var ot=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable;var B=(t,e,n)=>e in t?st(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,H=(t,e)=>{for(var n in e||(e={}))ot.call(e,n)&&B(t,n,e[n]);if(D)for(var n of D(e))ct.call(e,n)&&B(t,n,e[n]);return t},J=(t,e)=>rt(t,it(e));var h=(t,e,n)=>B(t,typeof e!="symbol"?e+"":e,n);var U=(t,e,n)=>new Promise((r,o)=>{var s=c=>{try{u(n.next(c))}catch(f){o(f)}},l=c=>{try{u(n.throw(c))}catch(f){o(f)}},u=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,l);u((n=n.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function F(){}function v(t,e){for(const n in e)t[n]=e[n];return t}function X(t){return t()}function q(){return Object.create(null)}function I(t){t.forEach(X)}function Y(t){return typeof t=="function"}function lt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function ut(t){return Object.keys(t).length===0}const ft=["",!0,1,"true","contenteditable"];function w(t,e){t.appendChild(e)}function $t(t,e,n){const r=at(t);if(!r.getElementById(e)){const o=x("style");o.id=e,o.textContent=n,dt(r,o)}}function at(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function dt(t,e){return w(t.head||t,e),e.sheet}function Z(t,e,n){t.insertBefore(e,n||null)}function R(t){t.parentNode&&t.parentNode.removeChild(t)}function x(t){return document.createElement(t)}function O(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function G(t){return document.createTextNode(t)}function ht(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function tt(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function m(t,e){for(const n in e)tt(t,n,e[n])}function _t(t){return Array.from(t.childNodes)}function gt(t,e){e=""+e,t.data!==e&&(t.data=e)}function mt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function pt(t,e,n){~ft.indexOf(n)?mt(t,e):gt(t,e)}function bt(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}let V;function N(t){V=t}const P=[],K=[];let C=[];const Q=[],yt=Promise.resolve();let W=!1;function wt(){W||(W=!0,yt.then(M))}function L(t){C.push(t)}const z=new Set;let E=0;function M(){if(E!==0)return;const t=V;do{try{for(;E<P.length;){const e=P[E];E++,N(e),kt(e.$$)}}catch(e){throw P.length=0,E=0,e}for(N(null),P.length=0,E=0;K.length;)K.pop()();for(let e=0;e<C.length;e+=1){const n=C[e];z.has(n)||(z.add(n),n())}C.length=0}while(P.length);for(;Q.length;)Q.pop()();W=!1,z.clear(),N(t)}function kt(t){if(t.fragment!==null){t.update(),I(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(L)}}function Et(t){const e=[],n=[];C.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),C=e}const Pt=new Set;function Ct(t,e){t&&t.i&&(Pt.delete(t),t.i(e))}function j(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],u=e[s];if(u){for(const c in l)c in u||(r[c]=1);for(const c in u)o[c]||(n[c]=u[c],o[c]=1);t[s]=u}else for(const c in l)o[c]=1}for(const l in r)l in n||(n[l]=void 0);return n}function vt(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),L(()=>{const s=t.$$.on_mount.map(X).filter(Y);t.$$.on_destroy?t.$$.on_destroy.push(...s):I(s),t.$$.on_mount=[]}),o.forEach(L)}function Ot(t,e){const n=t.$$;n.fragment!==null&&(Et(n.after_update),I(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function jt(t,e){t.$$.dirty[0]===-1&&(P.push(t),wt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Nt(t,e,n,r,o,s,l=null,u=[-1]){const c=V;N(t);const f=t.$$={fragment:null,ctx:[],props:s,update:F,not_equal:o,bound:q(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:q(),dirty:u,skip_bound:!1,root:e.target||c.$$.root};l&&l(f.root);let _=!1;if(f.ctx=n?n(t,e.props||{},(a,g,...d)=>{const y=d.length?d[0]:g;return f.ctx&&o(f.ctx[a],f.ctx[a]=y)&&(!f.skip_bound&&f.bound[a]&&f.bound[a](y),_&&jt(t,a)),g}):[],f.update(),_=!0,I(f.before_update),f.fragment=r?r(f.ctx):!1,e.target){if(e.hydrate){const a=_t(e.target);f.fragment&&f.fragment.l(a),a.forEach(R)}else f.fragment&&f.fragment.c();e.intro&&Ct(t.$$.fragment),vt(t,e.target,e.anchor),M()}N(c)}let et;typeof HTMLElement=="function"&&(et=class extends HTMLElement{constructor(e,n,r){super();h(this,"$$ctor");h(this,"$$s");h(this,"$$c");h(this,"$$cn",!1);h(this,"$$d",{});h(this,"$$r",!1);h(this,"$$p_d",{});h(this,"$$l",{});h(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(e,n,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const o=this.$$c.$on(e,n);this.$$l_u.set(n,o)}super.addEventListener(e,n,r)}removeEventListener(e,n,r){if(super.removeEventListener(e,n,r),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return U(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(s){return()=>{let l;return{c:function(){l=x("slot"),s!=="default"&&tt(l,"name",s)},m:function(f,_){Z(f,l,_)},d:function(f){f&&R(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=bt(this);for(const s of this.$$s)s in r&&(n[s]=[e(s)]);for(const s of this.attributes){const l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=A(l,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:J(H({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const l=A(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const l of this.$$l[s]){const u=this.$$c.$on(s,l);this.$$l_u.set(l,u)}this.$$l={}}})}attributeChangedCallback(e,n,r){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=A(e,r,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function A(t,e,n,r){var s;const o=(s=n[t])==null?void 0:s.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Ft(t,e,n,r,o,s){let l=class extends et{constructor(){super(t,n,o),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(u=>(e[u].attribute||u).toLowerCase())}};return Object.keys(e).forEach(u=>{Object.defineProperty(l.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(c){var f;c=A(u,c,e),this.$$d[u]=c,(f=this.$$c)==null||f.$set({[u]:c})}})}),r.forEach(u=>{Object.defineProperty(l.prototype,u,{get(){var c;return(c=this.$$c)==null?void 0:c[u]}})}),t.element=l,l}class St{constructor(){h(this,"$$");h(this,"$$set")}$destroy(){Ot(this,1),this.$destroy=F}$on(e,n){if(!Y(n))return F;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}$set(e){this.$$set&&!ut(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const At="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(At);function Lt(t){$t(t,"svelte-1xvg6od","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ProgressText{fill:#FFFFFF;text-anchor:middle;dominant-baseline:middle;font-style:normal;font-weight:700;font-size:22.0351951033px}.ProgressTextMobile{font-size:5.1282051282vw}circle.ring{stroke:#F2F4F6;fill:transparent}circle.ring-progress{transition:0.35s stroke-dashoffset;stroke:#C4C4C4;transform:rotate(-90deg);transform-origin:50% 50%}circle.ring-progress.active{stroke:#00AEEF}circle.center{fill:#C4C4C4}circle.center.active{fill:#00AEEF}")}function Mt(t){let e,n,r,o,s,l,u,c,f;L(t[11]);let _=[{class:"ring",r:t[3],cx:t[9],cy:t[9],"stroke-width":`${t[5]}px`}],a={};for(let i=0;i<_.length;i+=1)a=v(a,_[i]);let g=[{class:`ring ring-progress ${t[1]===t[6].InProgress?"active":""}`,r:t[3],cx:t[9],cy:t[9],"stroke-width":`${t[5]}px`,"stroke-dasharray":`${t[8]} ${t[8]}`,"stroke-dashoffset":t[8]-Number(t[0])/100*t[8]}],d={};for(let i=0;i<g.length;i+=1)d=v(d,g[i]);let y=[{class:`center ${t[1]===t[6].InProgress?"active":""}`,r:t[3]-t[5]/2-3,cx:t[9],cy:t[9]}],k={};for(let i=0;i<y.length;i+=1)k=v(k,y[i]);let $=[{x:t[9],y:t[9]},t[7]("ProgressText")],p={};for(let i=0;i<$.length;i+=1)p=v(p,$[i]);let T=[{width:t[4],height:t[4]}],S={};for(let i=0;i<T.length;i+=1)S=v(S,T[i]);return{c(){e=O("svg"),n=O("circle"),r=O("circle"),o=O("circle"),s=O("text"),l=G(t[0]),u=G("%"),m(n,a),m(r,d),m(o,k),m(s,p),m(e,S)},m(i,b){Z(i,e,b),w(e,n),w(e,r),w(e,o),w(e,s),w(s,l),w(s,u),c||(f=ht(window,"resize",t[11]),c=!0)},p(i,[b]){m(n,a=j(_,[b&552&&{class:"ring",r:i[3],cx:i[9],cy:i[9],"stroke-width":`${i[5]}px`}])),m(r,d=j(g,[b&875&&{class:`ring ring-progress ${i[1]===i[6].InProgress?"active":""}`,r:i[3],cx:i[9],cy:i[9],"stroke-width":`${i[5]}px`,"stroke-dasharray":`${i[8]} ${i[8]}`,"stroke-dashoffset":i[8]-Number(i[0])/100*i[8]}])),m(o,k=j(y,[b&618&&{class:`center ${i[1]===i[6].InProgress?"active":""}`,r:i[3]-i[5]/2-3,cx:i[9],cy:i[9]}])),b&1&&pt(l,i[0],p.contenteditable),m(s,p=j($,[b&512&&{x:i[9],y:i[9]},b&128&&i[7]("ProgressText")])),m(e,S=j(T,[b&16&&{width:i[4],height:i[4]}]))},i:F,o:F,d(i){i&&R(e),c=!1,f()}}}function It(t,e,n){let r,o,s,l,u,c,f,{percent:_=""}=e,{status:a=""}=e;var g;(function($){$.BeforeClaimed="BeforeClaimed",$.InProgress="active",$.ForfeitedOrCompleted="ForfeitedOrCompleted"})(g||(g={}));let d=200;const y=($,p="")=>({part:$,class:[$,p].join(" ")});function k(){n(2,d=window.innerWidth)}return t.$$set=$=>{"percent"in $&&n(0,_=$.percent),"status"in $&&n(1,a=$.status)},t.$$.update=()=>{t.$$.dirty&4&&n(10,r=d<=576),t.$$.dirty&1028&&n(4,o=r?d/4:100),t.$$.dirty&16&&n(5,s=o/7.5),t.$$.dirty&48&&n(3,l=o/2-s/2),t.$$.dirty&16&&n(9,u=o/2),t.$$.dirty&8&&n(8,c=l*2*Math.PI),t.$$.dirty&1024&&n(7,f=($,p="")=>y(`${$}${r?` ${$}Mobile`:""}`,p))},[_,a,d,l,o,s,g,f,c,u,r,k]}class nt extends St{constructor(e){super(),Nt(this,e,It,Mt,lt,{percent:0,status:1},Lt)}get percent(){return this.$$.ctx[0]}set percent(e){this.$$set({percent:e}),M()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),M()}}Ft(nt,{percent:{},status:{}},[],[],!0);exports.default=nt;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){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"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoWageringBonusProgress-zQo4yjHd.cjs")).then(({default:t})=>{!customElements.get("casino-wagering-bonus-progress")&&customElements.define("casino-wagering-bonus-progress",t.element)})}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
if (typeof window != "undefined") {
|
|
2
|
+
let n = function(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 = n(customElements.define), import("../components/CasinoWageringBonusProgress-Dvj2_Nd0.js").then(({ default: t }) => {
|
|
14
|
+
!customElements.get("casino-wagering-bonus-progress") && customElements.define("casino-wagering-bonus-progress", t.element);
|
|
15
|
+
});
|
|
16
|
+
}
|