@everymatrix/casino-wagering-bonuses-controller 1.54.0 → 1.54.2

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