@everymatrix/casino-wagering-bonus-progress 1.0.69 → 1.0.71

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
+ };
@@ -0,0 +1 @@
1
+ "use strict";var re=Object.defineProperty,ie=Object.defineProperties;var oe=Object.getOwnPropertyDescriptors;var H=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var z=(e,t,n)=>t in e?re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J=(e,t)=>{for(var n in t||(t={}))ce.call(t,n)&&z(e,n,t[n]);if(H)for(var n of H(t))le.call(t,n)&&z(e,n,t[n]);return e},U=(e,t)=>ie(e,oe(t));var h=(e,t,n)=>z(e,typeof t!="symbol"?t+"":t,n);var q=(e,t,n)=>new Promise((r,o)=>{var s=c=>{try{u(n.next(c))}catch(f){o(f)}},l=c=>{try{u(n.throw(c))}catch(f){o(f)}},u=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,l);u((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function L(){}function O(e,t){for(const n in t)e[n]=t[n];return e}function Y(e){return e()}function G(){return Object.create(null)}function T(e){e.forEach(Y)}function Z(e){return typeof e=="function"}function ue(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function fe(e){return Object.keys(e).length===0}const $e=["",!0,1,"true","contenteditable"];function v(e,t){e.appendChild(t)}function ae(e,t,n){const r=de(e);if(!r.getElementById(t)){const o=ee("style");o.id=t,o.textContent=n,he(r,o)}}function de(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function he(e,t){return v(e.head||e,t),t.sheet}function x(e,t,n){e.insertBefore(t,n||null)}function V(e){e.parentNode&&e.parentNode.removeChild(e)}function ee(e){return document.createElement(e)}function j(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function K(e){return document.createTextNode(e)}function ge(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function te(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function m(e,t){for(const n in t)te(e,n,t[n])}function _e(e){return Array.from(e.childNodes)}function me(e,t){t=""+t,e.data!==t&&(e.data=t)}function pe(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function be(e,t,n){~$e.indexOf(n)?pe(e,t):me(e,t)}function p(e,t,n){e.classList.toggle(t,!!n)}function we(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let D;function F(e){D=e}const P=[],Q=[];let C=[];const X=[],ye=Promise.resolve();let R=!1;function ve(){R||(R=!0,ye.then(I))}function M(e){C.push(e)}const W=new Set;let E=0;function I(){if(E!==0)return;const e=D;do{try{for(;E<P.length;){const t=P[E];E++,F(t),ke(t.$$)}}catch(t){throw P.length=0,E=0,t}for(F(null),P.length=0,E=0;Q.length;)Q.pop()();for(let t=0;t<C.length;t+=1){const n=C[t];W.has(n)||(W.add(n),n())}C.length=0}while(P.length);for(;X.length;)X.pop()();R=!1,W.clear(),F(e)}function ke(e){if(e.fragment!==null){e.update(),T(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(M)}}function Ee(e){const t=[],n=[];C.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),C=t}const Pe=new Set;function Ce(e,t){e&&e.i&&(Pe.delete(e),e.i(t))}function N(e,t){const n={},r={},o={$$scope:1};let s=e.length;for(;s--;){const l=e[s],u=t[s];if(u){for(const c in l)c in u||(r[c]=1);for(const c in u)o[c]||(n[c]=u[c],o[c]=1);e[s]=u}else for(const c in l)o[c]=1}for(const l in r)l in n||(n[l]=void 0);return n}function Oe(e,t,n){const{fragment:r,after_update:o}=e.$$;r&&r.m(t,n),M(()=>{const s=e.$$.on_mount.map(Y).filter(Z);e.$$.on_destroy?e.$$.on_destroy.push(...s):T(s),e.$$.on_mount=[]}),o.forEach(M)}function je(e,t){const n=e.$$;n.fragment!==null&&(Ee(n.after_update),T(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Ne(e,t){e.$$.dirty[0]===-1&&(P.push(e),ve(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Fe(e,t,n,r,o,s,l=null,u=[-1]){const c=D;F(e);const f=e.$$={fragment:null,ctx:[],props:s,update:L,not_equal:o,bound:G(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:G(),dirty:u,skip_bound:!1,root:t.target||c.$$.root};l&&l(f.root);let g=!1;if(f.ctx=n?n(e,t.props||{},(a,_,...d)=>{const y=d.length?d[0]:_;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)),_}):[],f.update(),g=!0,T(f.before_update),f.fragment=r?r(f.ctx):!1,t.target){if(t.hydrate){const a=_e(t.target);f.fragment&&f.fragment.l(a),a.forEach(V)}else f.fragment&&f.fragment.c();t.intro&&Ce(e.$$.fragment),Oe(e,t.target,t.anchor),I()}F(c)}let ne;typeof HTMLElement=="function"&&(ne=class extends HTMLElement{constructor(t,n,r){super();h(this,"$$ctor");h(this,"$$s");h(this,"$$c");h(this,"$$cn",!1);h(this,"$$d",{});h(this,"$$r",!1);h(this,"$$p_d",{});h(this,"$$l",{});h(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(t,n,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const o=this.$$c.$on(t,n);this.$$l_u.set(n,o)}super.addEventListener(t,n,r)}removeEventListener(t,n,r){if(super.removeEventListener(t,n,r),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return q(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let l;return{c:function(){l=ee("slot"),s!=="default"&&te(l,"name",s)},m:function(f,g){x(f,l,g)},d:function(f){f&&V(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=we(this);for(const s of this.$$s)s in r&&(n[s]=[t(s)]);for(const s of this.attributes){const l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=A(l,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:U(J({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const l=A(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const l of this.$$l[s]){const u=this.$$c.$on(s,l);this.$$l_u.set(l,u)}this.$$l={}}})}attributeChangedCallback(t,n,r){var o;this.$$r||(t=this.$$g_p(t),this.$$d[t]=A(t,r,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function A(e,t,n,r){var s;const o=(s=n[e])==null?void 0:s.type;if(t=o==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(o){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(o){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Le(e,t,n,r,o,s){let l=class extends ne{constructor(){super(e,n,o),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(l.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(c){var f;c=A(u,c,t),this.$$d[u]=c,(f=this.$$c)==null||f.$set({[u]:c})}})}),r.forEach(u=>{Object.defineProperty(l.prototype,u,{get(){var c;return(c=this.$$c)==null?void 0:c[u]}})}),e.element=l,l}class Se{constructor(){h(this,"$$");h(this,"$$set")}$destroy(){je(this,1),this.$destroy=L}$on(t,n){if(!Z(n))return L;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}$set(t){this.$$set&&!fe(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ae="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ae);function Me(e){ae(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}")}function Ie(e){let t,n,r,o,s,l,u,c,f;M(e[11]);let g=[{class:"ring",r:e[3],cx:e[9],cy:e[9],"stroke-width":`${e[5]}px`}],a={};for(let i=0;i<g.length;i+=1)a=O(a,g[i]);let _=[{class:`ring ring-progress ${e[1]===e[6].InProgress?"active":""}`,r:e[3],cx:e[9],cy:e[9],"stroke-width":`${e[5]}px`,"stroke-dasharray":`${e[8]} ${e[8]}`,"stroke-dashoffset":e[8]-Number(e[0])/100*e[8]}],d={};for(let i=0;i<_.length;i+=1)d=O(d,_[i]);let y=[{class:`center ${e[1]===e[6].InProgress?"active":""}`,r:e[3]-e[5]/2-3,cx:e[9],cy:e[9]}],k={};for(let i=0;i<y.length;i+=1)k=O(k,y[i]);let $=[{x:e[9],y:e[9]},e[7]("ProgressText")],b={};for(let i=0;i<$.length;i+=1)b=O(b,$[i]);let B=[{width:e[4],height:e[4]}],S={};for(let i=0;i<B.length;i+=1)S=O(S,B[i]);return{c(){t=j("svg"),n=j("circle"),r=j("circle"),o=j("circle"),s=j("text"),l=K(e[0]),u=K("%"),m(n,a),p(n,"svelte-1w8ge15",!0),m(r,d),p(r,"svelte-1w8ge15",!0),m(o,k),p(o,"svelte-1w8ge15",!0),m(s,b),p(s,"svelte-1w8ge15",!0),m(t,S),p(t,"svelte-1w8ge15",!0)},m(i,w){x(i,t,w),v(t,n),v(t,r),v(t,o),v(t,s),v(s,l),v(s,u),c||(f=ge(window,"resize",e[11]),c=!0)},p(i,[w]){m(n,a=N(g,[w&552&&{class:"ring",r:i[3],cx:i[9],cy:i[9],"stroke-width":`${i[5]}px`}])),p(n,"svelte-1w8ge15",!0),m(r,d=N(_,[w&875&&{class:`ring ring-progress ${i[1]===i[6].InProgress?"active":""}`,r:i[3],cx:i[9],cy:i[9],"stroke-width":`${i[5]}px`,"stroke-dasharray":`${i[8]} ${i[8]}`,"stroke-dashoffset":i[8]-Number(i[0])/100*i[8]}])),p(r,"svelte-1w8ge15",!0),m(o,k=N(y,[w&618&&{class:`center ${i[1]===i[6].InProgress?"active":""}`,r:i[3]-i[5]/2-3,cx:i[9],cy:i[9]}])),p(o,"svelte-1w8ge15",!0),w&1&&be(l,i[0],b.contenteditable),m(s,b=N($,[w&512&&{x:i[9],y:i[9]},w&128&&i[7]("ProgressText")])),p(s,"svelte-1w8ge15",!0),m(t,S=N(B,[w&16&&{width:i[4],height:i[4]}])),p(t,"svelte-1w8ge15",!0)},i:L,o:L,d(i){i&&V(t),c=!1,f()}}}function Te(e,t,n){let r,o,s,l,u,c,f,{percent:g=""}=t,{status:a=""}=t;var _;(function($){$.BeforeClaimed="BeforeClaimed",$.InProgress="active",$.ForfeitedOrCompleted="ForfeitedOrCompleted"})(_||(_={}));let d=200;const y=($,b="")=>({part:$,class:[$,b].join(" ")});function k(){n(2,d=window.innerWidth)}return e.$$set=$=>{"percent"in $&&n(0,g=$.percent),"status"in $&&n(1,a=$.status)},e.$$.update=()=>{e.$$.dirty&4&&n(10,r=d<=576),e.$$.dirty&1028&&n(4,o=r?d/4:100),e.$$.dirty&16&&n(5,s=o/7.5),e.$$.dirty&48&&n(3,l=o/2-s/2),e.$$.dirty&16&&n(9,u=o/2),e.$$.dirty&8&&n(8,c=l*2*Math.PI),e.$$.dirty&1024&&n(7,f=($,b="")=>y(`${$}${r?` ${$}Mobile`:""}`,b))},[g,a,d,l,o,s,_,f,c,u,r,k]}class se extends Se{constructor(t){super(),Fe(this,t,Te,Ie,ue,{percent:0,status:1},Me)}get percent(){return this.$$.ctx[0]}set percent(t){this.$$set({percent:t}),I()}get status(){return this.$$.ctx[1]}set status(t){this.$$set({status:t}),I()}}Le(se,{percent:{},status:{}},[],[],!0);exports.default=se;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-wagering-bonus-progress",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-wagering-bonus-progress.cjs",
6
6
  "module": "es2015/casino-wagering-bonus-progress.js",
@@ -11,8 +11,9 @@
11
11
  },
12
12
  "./es2015/casino-wagering-bonus-progress.cjs": "./es2015/casino-wagering-bonus-progress.cjs"
13
13
  },
14
- "files": [
15
- "es2015/"
14
+ "files": [
15
+ "es2015/",
16
+ "components"
16
17
  ],
17
18
  "publishConfig": {
18
19
  "access": "public"