@everymatrix/casino-wagering-bonuses-controller 1.53.0 → 1.53.11

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