@everymatrix/casino-wagering-bonuses-controller 1.87.26 → 1.87.27

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