@everymatrix/casino-wagering-bonus-progress 1.43.4 → 1.45.0

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