@everymatrix/casino-wagering-bonus-progress 1.54.0 → 1.54.4

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