@sticky-studio-npm/ui-core 0.1.68 → 0.1.70
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.
- package/dist/ui-bundle.es.js +786 -217
- package/package.json +3 -2
package/dist/ui-bundle.es.js
CHANGED
|
@@ -113,7 +113,7 @@ function on(e) {
|
|
|
113
113
|
return t = !0, e.apply(this, arguments);
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
-
var
|
|
116
|
+
var Be = function() {
|
|
117
117
|
};
|
|
118
118
|
function D(e) {
|
|
119
119
|
return typeof e == "function";
|
|
@@ -128,11 +128,11 @@ function Ae(e) {
|
|
|
128
128
|
}
|
|
129
129
|
return !1;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function wt(e) {
|
|
132
132
|
return e !== null && typeof e == "object";
|
|
133
133
|
}
|
|
134
134
|
function I(e) {
|
|
135
|
-
if (!
|
|
135
|
+
if (!wt(e))
|
|
136
136
|
return !1;
|
|
137
137
|
var t = Object.getPrototypeOf(e);
|
|
138
138
|
if (t == null)
|
|
@@ -163,7 +163,7 @@ function Jn(e, t, r) {
|
|
|
163
163
|
function De(e, t) {
|
|
164
164
|
var r = "isMobX" + e;
|
|
165
165
|
return t.prototype[r] = !0, function(n) {
|
|
166
|
-
return
|
|
166
|
+
return wt(n) && n[r] === !0;
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
function Ie(e) {
|
|
@@ -316,7 +316,7 @@ function ri(e) {
|
|
|
316
316
|
function Qe(e) {
|
|
317
317
|
return typeof e == "object" && typeof e.kind == "string";
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function Ct(e, t) {
|
|
320
320
|
process.env.NODE_ENV !== "production" && !t.includes(e.kind) && p("The decorator applied to '" + String(e.name) + "' cannot be used on a " + e.kind + " element");
|
|
321
321
|
}
|
|
322
322
|
var _ = /* @__PURE__ */ Symbol("mobx administration"), _e = /* @__PURE__ */ (function() {
|
|
@@ -369,9 +369,9 @@ _e.isPendingUnobservationMask_ = 2;
|
|
|
369
369
|
_e.diffValueMask_ = 4;
|
|
370
370
|
var an = /* @__PURE__ */ De("Atom", _e);
|
|
371
371
|
function nr(e, t, r) {
|
|
372
|
-
t === void 0 && (t =
|
|
372
|
+
t === void 0 && (t = Be), r === void 0 && (r = Be);
|
|
373
373
|
var n = new _e(e);
|
|
374
|
-
return t !==
|
|
374
|
+
return t !== Be && hs(n, t), r !== Be && Ar(n, r), n;
|
|
375
375
|
}
|
|
376
376
|
function ii(e, t) {
|
|
377
377
|
return Mr(e, t);
|
|
@@ -395,7 +395,7 @@ function Se(e, t, r) {
|
|
|
395
395
|
}) : typeof e == "function" && !Pe(e) && !Ze(e) ? Yn(e) ? je(e) : We(r, e) : e;
|
|
396
396
|
}
|
|
397
397
|
function oi(e, t, r) {
|
|
398
|
-
if (e == null || $e(e) ||
|
|
398
|
+
if (e == null || $e(e) || xt(e) || be(e) || re(e))
|
|
399
399
|
return e;
|
|
400
400
|
if (Array.isArray(e))
|
|
401
401
|
return S.array(e, {
|
|
@@ -454,10 +454,10 @@ function li(e, t, r, n) {
|
|
|
454
454
|
return e.defineProperty_(t, i, n);
|
|
455
455
|
}
|
|
456
456
|
function fi(e, t) {
|
|
457
|
-
process.env.NODE_ENV !== "production" &&
|
|
457
|
+
process.env.NODE_ENV !== "production" && Ct(t, ["method", "field"]);
|
|
458
458
|
var r = t.kind, n = t.name, i = t.addInitializer, s = this, o = function(l) {
|
|
459
459
|
var d, v, h, b;
|
|
460
|
-
return
|
|
460
|
+
return we((d = (v = s.options_) == null ? void 0 : v.name) != null ? d : n.toString(), l, (h = (b = s.options_) == null ? void 0 : b.autoAction) != null ? h : !1);
|
|
461
461
|
};
|
|
462
462
|
if (r == "field")
|
|
463
463
|
return function(u) {
|
|
@@ -488,7 +488,7 @@ function rr(e, t, r, n, i) {
|
|
|
488
488
|
h = h.bind((b = e.proxy_) != null ? b : e.target_);
|
|
489
489
|
}
|
|
490
490
|
return {
|
|
491
|
-
value:
|
|
491
|
+
value: we(
|
|
492
492
|
(o = (a = t.options_) == null ? void 0 : a.name) != null ? o : r.toString(),
|
|
493
493
|
h,
|
|
494
494
|
(u = (l = t.options_) == null ? void 0 : l.autoAction) != null ? u : !1,
|
|
@@ -531,7 +531,7 @@ function vi(e, t, r, n) {
|
|
|
531
531
|
}
|
|
532
532
|
function hi(e, t) {
|
|
533
533
|
var r;
|
|
534
|
-
process.env.NODE_ENV !== "production" &&
|
|
534
|
+
process.env.NODE_ENV !== "production" && Ct(t, ["method"]);
|
|
535
535
|
var n = t.name, i = t.addInitializer;
|
|
536
536
|
return Ze(e) || (e = je(e)), (r = this.options_) != null && r.bound && i(function() {
|
|
537
537
|
var s = this, o = s[n].bind(s);
|
|
@@ -581,7 +581,7 @@ function mi(e, t, r, n) {
|
|
|
581
581
|
}), n);
|
|
582
582
|
}
|
|
583
583
|
function gi(e, t) {
|
|
584
|
-
process.env.NODE_ENV !== "production" &&
|
|
584
|
+
process.env.NODE_ENV !== "production" && Ct(t, ["getter"]);
|
|
585
585
|
var r = this, n = t.name, i = t.addInitializer;
|
|
586
586
|
return i(function() {
|
|
587
587
|
var s = Le(this)[_], o = fe({}, r.options_, {
|
|
@@ -618,7 +618,7 @@ function Ni(e, t) {
|
|
|
618
618
|
if (process.env.NODE_ENV !== "production") {
|
|
619
619
|
if (t.kind === "field")
|
|
620
620
|
throw p("Please use `@observable accessor " + String(t.name) + "` instead of `@observable " + String(t.name) + "`");
|
|
621
|
-
|
|
621
|
+
Ct(t, ["accessor"]);
|
|
622
622
|
}
|
|
623
623
|
var r = this, n = t.kind, i = t.name, s = /* @__PURE__ */ new WeakSet();
|
|
624
624
|
function o(a, u) {
|
|
@@ -643,22 +643,22 @@ function Ai(e, t, r, n) {
|
|
|
643
643
|
process.env.NODE_ENV !== "production" && !("value" in n) && p("Cannot apply '" + i + "' to '" + e.name_ + "." + r.toString() + "':" + (`
|
|
644
644
|
'` + i + "' cannot be used on getter/setter properties"));
|
|
645
645
|
}
|
|
646
|
-
var Si = "true",
|
|
646
|
+
var Si = "true", wi = /* @__PURE__ */ or();
|
|
647
647
|
function or(e) {
|
|
648
648
|
return {
|
|
649
649
|
annotationType_: Si,
|
|
650
650
|
options_: e,
|
|
651
|
-
make_:
|
|
651
|
+
make_: Ci,
|
|
652
652
|
extend_: Di,
|
|
653
653
|
decorate_20223_: Vi
|
|
654
654
|
};
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function Ci(e, t, r, n) {
|
|
657
657
|
var i, s;
|
|
658
658
|
if (r.get)
|
|
659
659
|
return Oe.make_(e, t, r, n);
|
|
660
660
|
if (r.set) {
|
|
661
|
-
var o =
|
|
661
|
+
var o = we(t.toString(), r.set);
|
|
662
662
|
return n === e.target_ ? e.defineProperty_(t, {
|
|
663
663
|
configurable: f.safeDescriptors ? e.isPlainObject_ : !0,
|
|
664
664
|
set: o
|
|
@@ -690,7 +690,7 @@ function Di(e, t, r, n) {
|
|
|
690
690
|
if (r.set)
|
|
691
691
|
return e.defineProperty_(t, {
|
|
692
692
|
configurable: f.safeDescriptors ? e.isPlainObject_ : !0,
|
|
693
|
-
set:
|
|
693
|
+
set: we(t.toString(), r.set)
|
|
694
694
|
}, n);
|
|
695
695
|
if (typeof r.value == "function" && (i = this.options_) != null && i.autoBind) {
|
|
696
696
|
var o;
|
|
@@ -702,7 +702,7 @@ function Di(e, t, r, n) {
|
|
|
702
702
|
function Vi(e, t) {
|
|
703
703
|
p("'" + this.annotationType_ + "' cannot be used as a decorator");
|
|
704
704
|
}
|
|
705
|
-
var Li = "observable",
|
|
705
|
+
var Li = "observable", xi = "observable.ref", Bi = "observable.shallow", Ri = "observable.struct", ar = {
|
|
706
706
|
deep: !0,
|
|
707
707
|
name: void 0,
|
|
708
708
|
defaultDecorator: void 0,
|
|
@@ -712,9 +712,9 @@ Object.freeze(ar);
|
|
|
712
712
|
function rt(e) {
|
|
713
713
|
return e || ar;
|
|
714
714
|
}
|
|
715
|
-
var Wt = /* @__PURE__ */ Vt(Li), Ti = /* @__PURE__ */ Vt(
|
|
715
|
+
var Wt = /* @__PURE__ */ Vt(Li), Ti = /* @__PURE__ */ Vt(xi, {
|
|
716
716
|
enhancer: Dt
|
|
717
|
-
}), Pi = /* @__PURE__ */ Vt(
|
|
717
|
+
}), Pi = /* @__PURE__ */ Vt(Bi, {
|
|
718
718
|
enhancer: oi
|
|
719
719
|
}), ji = /* @__PURE__ */ Vt(Ri, {
|
|
720
720
|
enhancer: ai
|
|
@@ -751,15 +751,15 @@ var ki = {
|
|
|
751
751
|
},
|
|
752
752
|
map: function(t, r) {
|
|
753
753
|
var n = rt(r);
|
|
754
|
-
return new
|
|
754
|
+
return new xr(t, it(n), n.name);
|
|
755
755
|
},
|
|
756
756
|
set: function(t, r) {
|
|
757
757
|
var n = rt(r);
|
|
758
|
-
return new
|
|
758
|
+
return new Br(t, it(n), n.name);
|
|
759
759
|
},
|
|
760
760
|
object: function(t, r, n) {
|
|
761
761
|
return me(function() {
|
|
762
|
-
return
|
|
762
|
+
return wr(f.useProxies === !1 || n?.proxy === !1 ? Le({}, n) : ws({}, n), t, r);
|
|
763
763
|
});
|
|
764
764
|
},
|
|
765
765
|
ref: /* @__PURE__ */ oe(Ti),
|
|
@@ -788,7 +788,7 @@ var mn, gn, bt = 0, Fi = 1, Ki = (mn = (gn = /* @__PURE__ */ pt(function() {
|
|
|
788
788
|
writable: !1,
|
|
789
789
|
enumerable: !1
|
|
790
790
|
};
|
|
791
|
-
function
|
|
791
|
+
function we(e, t, r, n) {
|
|
792
792
|
r === void 0 && (r = !1), process.env.NODE_ENV !== "production" && (D(t) || p("`action` can only be invoked on functions"), (typeof e != "string" || !e) && p("actions should have valid names, got: '" + e + "'"));
|
|
793
793
|
function i() {
|
|
794
794
|
return qi(e, r, t, n || this, arguments);
|
|
@@ -808,7 +808,7 @@ function qi(e, t, r, n, i) {
|
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
810
|
function Hi(e, t, r, n) {
|
|
811
|
-
var i = process.env.NODE_ENV !== "production" &&
|
|
811
|
+
var i = process.env.NODE_ENV !== "production" && x() && !!e, s = 0;
|
|
812
812
|
if (process.env.NODE_ENV !== "production" && i) {
|
|
813
813
|
s = Date.now();
|
|
814
814
|
var o = n ? Array.from(n) : vt;
|
|
@@ -850,7 +850,7 @@ function ln(e) {
|
|
|
850
850
|
var zi = "create", Ee = /* @__PURE__ */ (function(e) {
|
|
851
851
|
function t(n, i, s, o, a) {
|
|
852
852
|
var u;
|
|
853
|
-
return s === void 0 && (s = process.env.NODE_ENV !== "production" ? "ObservableValue@" + ee() : "ObservableValue"), o === void 0 && (o = !0), a === void 0 && (a = ht.default), u = e.call(this, s) || this, u.enhancer = void 0, u.name_ = void 0, u.equals = void 0, u.hasUnreportedChange_ = !1, u.interceptors_ = void 0, u.changeListeners_ = void 0, u.value_ = void 0, u.dehancer = void 0, u.enhancer = i, u.name_ = s, u.equals = a, u.value_ = i(n, void 0, s), process.env.NODE_ENV !== "production" && o &&
|
|
853
|
+
return s === void 0 && (s = process.env.NODE_ENV !== "production" ? "ObservableValue@" + ee() : "ObservableValue"), o === void 0 && (o = !0), a === void 0 && (a = ht.default), u = e.call(this, s) || this, u.enhancer = void 0, u.name_ = void 0, u.equals = void 0, u.hasUnreportedChange_ = !1, u.interceptors_ = void 0, u.changeListeners_ = void 0, u.value_ = void 0, u.dehancer = void 0, u.enhancer = i, u.name_ = s, u.equals = a, u.value_ = i(n, void 0, s), process.env.NODE_ENV !== "production" && o && x() && Ce({
|
|
854
854
|
type: zi,
|
|
855
855
|
object: u,
|
|
856
856
|
observableKind: "value",
|
|
@@ -865,7 +865,7 @@ var zi = "create", Ee = /* @__PURE__ */ (function(e) {
|
|
|
865
865
|
}, r.set = function(i) {
|
|
866
866
|
var s = this.value_;
|
|
867
867
|
if (i = this.prepareNewValue_(i), i !== f.UNCHANGED) {
|
|
868
|
-
var o =
|
|
868
|
+
var o = x();
|
|
869
869
|
process.env.NODE_ENV !== "production" && o && k({
|
|
870
870
|
type: Y,
|
|
871
871
|
object: this,
|
|
@@ -921,7 +921,7 @@ var zi = "create", Ee = /* @__PURE__ */ (function(e) {
|
|
|
921
921
|
}, t;
|
|
922
922
|
})(_e), Z = /* @__PURE__ */ (function() {
|
|
923
923
|
function e(r) {
|
|
924
|
-
this.dependenciesState_ = E.NOT_TRACKING_, this.observing_ = [], this.newObserving_ = null, this.observers_ = /* @__PURE__ */ new Set(), this.runId_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = E.UP_TO_DATE_, this.unboundDepsCount_ = 0, this.value_ = new mt(null), this.name_ = void 0, this.triggeredBy_ = void 0, this.flags_ = 0, this.derivation = void 0, this.setter_ = void 0, this.isTracing_ = W.NONE, this.scope_ = void 0, this.equals_ = void 0, this.requiresReaction_ = void 0, this.keepAlive_ = void 0, this.onBOL = void 0, this.onBUOL = void 0, r.get || p(31), this.derivation = r.get, this.name_ = r.name || (process.env.NODE_ENV !== "production" ? "ComputedValue@" + ee() : "ComputedValue"), r.set && (this.setter_ =
|
|
924
|
+
this.dependenciesState_ = E.NOT_TRACKING_, this.observing_ = [], this.newObserving_ = null, this.observers_ = /* @__PURE__ */ new Set(), this.runId_ = 0, this.lastAccessedBy_ = 0, this.lowestObserverState_ = E.UP_TO_DATE_, this.unboundDepsCount_ = 0, this.value_ = new mt(null), this.name_ = void 0, this.triggeredBy_ = void 0, this.flags_ = 0, this.derivation = void 0, this.setter_ = void 0, this.isTracing_ = W.NONE, this.scope_ = void 0, this.equals_ = void 0, this.requiresReaction_ = void 0, this.keepAlive_ = void 0, this.onBOL = void 0, this.onBUOL = void 0, r.get || p(31), this.derivation = r.get, this.name_ = r.name || (process.env.NODE_ENV !== "production" ? "ComputedValue@" + ee() : "ComputedValue"), r.set && (this.setter_ = we(process.env.NODE_ENV !== "production" ? this.name_ + "-setter" : "ComputedValue-setter", r.set)), this.equals_ = r.equals || (r.compareStructural || r.struct ? ht.structural : ht.default), this.scope_ = r.context, this.requiresReaction_ = r.requiresReaction, this.keepAlive_ = !!r.keepAlive;
|
|
925
925
|
}
|
|
926
926
|
var t = e.prototype;
|
|
927
927
|
return t.onBecomeStale_ = function() {
|
|
@@ -961,7 +961,7 @@ var zi = "create", Ee = /* @__PURE__ */ (function(e) {
|
|
|
961
961
|
/* see #1208 */
|
|
962
962
|
this.dependenciesState_ === E.NOT_TRACKING_
|
|
963
963
|
), s = this.computeValue_(!0), o = i || ut(n) || ut(s) || !this.equals_(n, s);
|
|
964
|
-
return o && (this.value_ = s, process.env.NODE_ENV !== "production" &&
|
|
964
|
+
return o && (this.value_ = s, process.env.NODE_ENV !== "production" && x() && Ce({
|
|
965
965
|
observableKind: "computed",
|
|
966
966
|
debugObjectName: this.name_,
|
|
967
967
|
object: this.scope_,
|
|
@@ -1240,7 +1240,7 @@ function es(e) {
|
|
|
1240
1240
|
function gr(e, t) {
|
|
1241
1241
|
if (console.log("[mobx.trace] '" + e.name_ + "' is invalidated due to a change in: '" + t.name_ + "'"), e.isTracing_ === W.BREAK) {
|
|
1242
1242
|
var r = [];
|
|
1243
|
-
yr(
|
|
1243
|
+
yr(Cr(e), r, 1), new Function(`debugger;
|
|
1244
1244
|
/*
|
|
1245
1245
|
Tracing '` + e.name_ + `'
|
|
1246
1246
|
|
|
@@ -1283,7 +1283,7 @@ var de = /* @__PURE__ */ (function() {
|
|
|
1283
1283
|
if (f.trackingContext = this, Xt(this)) {
|
|
1284
1284
|
this.isTrackPending = !0;
|
|
1285
1285
|
try {
|
|
1286
|
-
this.onInvalidate_(), process.env.NODE_ENV !== "production" && this.isTrackPending &&
|
|
1286
|
+
this.onInvalidate_(), process.env.NODE_ENV !== "production" && this.isTrackPending && x() && Ce({
|
|
1287
1287
|
name: this.name_,
|
|
1288
1288
|
type: "scheduled-reaction"
|
|
1289
1289
|
});
|
|
@@ -1296,7 +1296,7 @@ var de = /* @__PURE__ */ (function() {
|
|
|
1296
1296
|
}, t.track = function(n) {
|
|
1297
1297
|
if (!this.isDisposed) {
|
|
1298
1298
|
H();
|
|
1299
|
-
var i =
|
|
1299
|
+
var i = x(), s;
|
|
1300
1300
|
process.env.NODE_ENV !== "production" && i && (s = Date.now(), k({
|
|
1301
1301
|
name: this.name_,
|
|
1302
1302
|
type: "reaction"
|
|
@@ -1317,7 +1317,7 @@ var de = /* @__PURE__ */ (function() {
|
|
|
1317
1317
|
if (f.disableErrorBoundaries)
|
|
1318
1318
|
throw n;
|
|
1319
1319
|
var s = process.env.NODE_ENV !== "production" ? "[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '" + this + "'" : "[mobx] uncaught error in '" + this + "'";
|
|
1320
|
-
f.suppressReactionErrors ? process.env.NODE_ENV !== "production" && console.warn("[mobx] (error in reaction '" + this.name_ + "' suppressed, fix error of causing action below)") : console.error(s, n), process.env.NODE_ENV !== "production" &&
|
|
1320
|
+
f.suppressReactionErrors ? process.env.NODE_ENV !== "production" && console.warn("[mobx] (error in reaction '" + this.name_ + "' suppressed, fix error of causing action below)") : console.error(s, n), process.env.NODE_ENV !== "production" && x() && Ce({
|
|
1321
1321
|
type: "error",
|
|
1322
1322
|
name: this.name_,
|
|
1323
1323
|
message: s,
|
|
@@ -1407,10 +1407,10 @@ function ns(e) {
|
|
|
1407
1407
|
});
|
|
1408
1408
|
};
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function x() {
|
|
1411
1411
|
return process.env.NODE_ENV !== "production" && !!f.spyListeners.length;
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1413
|
+
function Ce(e) {
|
|
1414
1414
|
if (process.env.NODE_ENV !== "production" && f.spyListeners.length)
|
|
1415
1415
|
for (var t = f.spyListeners, r = 0, n = t.length; r < n; r++)
|
|
1416
1416
|
t[r](e);
|
|
@@ -1420,7 +1420,7 @@ function k(e) {
|
|
|
1420
1420
|
var t = fe({}, e, {
|
|
1421
1421
|
spyReportStart: !0
|
|
1422
1422
|
});
|
|
1423
|
-
|
|
1423
|
+
Ce(t);
|
|
1424
1424
|
}
|
|
1425
1425
|
}
|
|
1426
1426
|
var rs = {
|
|
@@ -1428,7 +1428,7 @@ var rs = {
|
|
|
1428
1428
|
spyReportEnd: !0
|
|
1429
1429
|
};
|
|
1430
1430
|
function U(e) {
|
|
1431
|
-
process.env.NODE_ENV !== "production" &&
|
|
1431
|
+
process.env.NODE_ENV !== "production" && Ce(e ? fe({}, e, {
|
|
1432
1432
|
type: "report-end",
|
|
1433
1433
|
spyReportEnd: !0
|
|
1434
1434
|
}) : rs);
|
|
@@ -1452,9 +1452,9 @@ var dn = "action", ss = "action.bound", Er = "autoAction", os = "autoAction.boun
|
|
|
1452
1452
|
function Nr(e) {
|
|
1453
1453
|
var t = function(n, i) {
|
|
1454
1454
|
if (D(n))
|
|
1455
|
-
return
|
|
1455
|
+
return we(n.name || as, n, e);
|
|
1456
1456
|
if (D(i))
|
|
1457
|
-
return
|
|
1457
|
+
return we(n, i, e);
|
|
1458
1458
|
if (Qe(i))
|
|
1459
1459
|
return (e ? en : Qt).decorate_20223_(n, i);
|
|
1460
1460
|
if (Ae(i))
|
|
@@ -1468,11 +1468,11 @@ function Nr(e) {
|
|
|
1468
1468
|
};
|
|
1469
1469
|
return t;
|
|
1470
1470
|
}
|
|
1471
|
-
var
|
|
1472
|
-
Object.assign(
|
|
1471
|
+
var C = /* @__PURE__ */ Nr(!1);
|
|
1472
|
+
Object.assign(C, Qt);
|
|
1473
1473
|
var We = /* @__PURE__ */ Nr(!0);
|
|
1474
1474
|
Object.assign(We, en);
|
|
1475
|
-
|
|
1475
|
+
C.bound = /* @__PURE__ */ oe(us);
|
|
1476
1476
|
We.bound = /* @__PURE__ */ oe(cs);
|
|
1477
1477
|
function Pe(e) {
|
|
1478
1478
|
return D(e) && e.isMobxAction === !0;
|
|
@@ -1532,7 +1532,7 @@ function ms(e) {
|
|
|
1532
1532
|
i in e && (f[i] = !!e[i]);
|
|
1533
1533
|
}), f.allowStateReads = !f.observableRequiresReaction, process.env.NODE_ENV !== "production" && f.disableErrorBoundaries === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), e.reactionScheduler && ns(e.reactionScheduler);
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function wr(e, t, r, n) {
|
|
1536
1536
|
process.env.NODE_ENV !== "production" && (arguments.length > 4 && p("'extendObservable' expected 2-4 arguments"), typeof e != "object" && p("'extendObservable' expects an object as first argument"), be(e) && p("'extendObservable' should not be used on maps, use map.merge instead"), I(t) || p("'extendObservable' only accepts plain objects as second argument"), (Xe(t) || Xe(r)) && p("Extending an object with another observable (object) is not supported"));
|
|
1537
1537
|
var i = Yr(t);
|
|
1538
1538
|
return me(function() {
|
|
@@ -1547,7 +1547,7 @@ function Cr(e, t, r, n) {
|
|
|
1547
1547
|
});
|
|
1548
1548
|
}), e;
|
|
1549
1549
|
}
|
|
1550
|
-
function
|
|
1550
|
+
function Cr(e, t) {
|
|
1551
1551
|
return Dr(Me(e, t));
|
|
1552
1552
|
}
|
|
1553
1553
|
function Dr(e) {
|
|
@@ -1573,16 +1573,16 @@ var Rt = /* @__PURE__ */ ir("flow"), Os = /* @__PURE__ */ ir("flow.bound", {
|
|
|
1573
1573
|
return Je(t, r, Rt);
|
|
1574
1574
|
process.env.NODE_ENV !== "production" && arguments.length !== 1 && p("Flow expects single argument with generator function");
|
|
1575
1575
|
var n = t, i = n.name || "<unnamed flow>", s = function() {
|
|
1576
|
-
var a = this, u = arguments, l = ++ys, d =
|
|
1576
|
+
var a = this, u = arguments, l = ++ys, d = C(i + " - runid: " + l + " - init", n).apply(a, u), v, h = void 0, b = new Promise(function(m, y) {
|
|
1577
1577
|
var N = 0;
|
|
1578
1578
|
v = y;
|
|
1579
1579
|
function O(A) {
|
|
1580
1580
|
h = void 0;
|
|
1581
1581
|
var L;
|
|
1582
1582
|
try {
|
|
1583
|
-
L =
|
|
1584
|
-
} catch (
|
|
1585
|
-
return y(
|
|
1583
|
+
L = C(i + " - runid: " + l + " - yield " + N++, d.next).call(d, A);
|
|
1584
|
+
} catch (B) {
|
|
1585
|
+
return y(B);
|
|
1586
1586
|
}
|
|
1587
1587
|
X(L);
|
|
1588
1588
|
}
|
|
@@ -1590,9 +1590,9 @@ var Rt = /* @__PURE__ */ ir("flow"), Os = /* @__PURE__ */ ir("flow.bound", {
|
|
|
1590
1590
|
h = void 0;
|
|
1591
1591
|
var L;
|
|
1592
1592
|
try {
|
|
1593
|
-
L =
|
|
1594
|
-
} catch (
|
|
1595
|
-
return y(
|
|
1593
|
+
L = C(i + " - runid: " + l + " - yield " + N++, d.throw).call(d, A);
|
|
1594
|
+
} catch (B) {
|
|
1595
|
+
return y(B);
|
|
1596
1596
|
}
|
|
1597
1597
|
X(L);
|
|
1598
1598
|
}
|
|
@@ -1605,11 +1605,11 @@ var Rt = /* @__PURE__ */ ir("flow"), Os = /* @__PURE__ */ ir("flow.bound", {
|
|
|
1605
1605
|
}
|
|
1606
1606
|
O(void 0);
|
|
1607
1607
|
});
|
|
1608
|
-
return b.cancel =
|
|
1608
|
+
return b.cancel = C(i + " - runid: " + l + " - cancel", function() {
|
|
1609
1609
|
try {
|
|
1610
1610
|
h && En(h);
|
|
1611
1611
|
var m = d.return(void 0), y = Promise.resolve(m.value);
|
|
1612
|
-
y.then(
|
|
1612
|
+
y.then(Be, Be), En(y), v(new Vr());
|
|
1613
1613
|
} catch (N) {
|
|
1614
1614
|
v(N);
|
|
1615
1615
|
}
|
|
@@ -1688,7 +1688,7 @@ var Ss = {
|
|
|
1688
1688
|
p(13);
|
|
1689
1689
|
}
|
|
1690
1690
|
};
|
|
1691
|
-
function
|
|
1691
|
+
function ws(e, t) {
|
|
1692
1692
|
var r, n;
|
|
1693
1693
|
return Xn(), e = Le(e, t), (n = (r = e[_]).proxy_) != null ? n : r.proxy_ = new Proxy(e, Ss);
|
|
1694
1694
|
}
|
|
@@ -1741,7 +1741,7 @@ function pn(e, t, r) {
|
|
|
1741
1741
|
}
|
|
1742
1742
|
var Tt = /* @__PURE__ */ Symbol("mobx-keys");
|
|
1743
1743
|
function Ue(e, t, r) {
|
|
1744
|
-
return process.env.NODE_ENV !== "production" && (!I(e) && !I(Object.getPrototypeOf(e)) && p("'makeAutoObservable' can only be used for classes that don't have a superclass"), $e(e) && p("makeAutoObservable can only be used on objects not already made observable")), I(e) ?
|
|
1744
|
+
return process.env.NODE_ENV !== "production" && (!I(e) && !I(Object.getPrototypeOf(e)) && p("'makeAutoObservable' can only be used for classes that don't have a superclass"), $e(e) && p("makeAutoObservable can only be used on objects not already made observable")), I(e) ? wr(e, e, t, r) : (me(function() {
|
|
1745
1745
|
var n = Le(e, r)[_];
|
|
1746
1746
|
if (!e[Tt]) {
|
|
1747
1747
|
var i = Object.getPrototypeOf(e), s = new Set([].concat(Te(e), Te(i)));
|
|
@@ -1756,7 +1756,7 @@ function Ue(e, t, r) {
|
|
|
1756
1756
|
});
|
|
1757
1757
|
}), e);
|
|
1758
1758
|
}
|
|
1759
|
-
var Nn = "splice", Y = "update",
|
|
1759
|
+
var Nn = "splice", Y = "update", Cs = 1e4, Ds = {
|
|
1760
1760
|
get: function(t, r) {
|
|
1761
1761
|
var n = t[_];
|
|
1762
1762
|
return r === _ ? n : r === "length" ? n.getArrayLength_() : typeof r == "string" && !isNaN(r) ? n.get_(parseInt(r)) : z(yt, r) ? yt[r] : t[r];
|
|
@@ -1832,7 +1832,7 @@ var Nn = "splice", Y = "update", ws = 1e4, Ds = {
|
|
|
1832
1832
|
var d = this.spliceItemsIntoValues_(n, i, s);
|
|
1833
1833
|
return (i !== 0 || s.length !== 0) && this.notifyArraySplice_(n, s, d), this.dehanceValues_(d);
|
|
1834
1834
|
}, t.spliceItemsIntoValues_ = function(n, i, s) {
|
|
1835
|
-
if (s.length <
|
|
1835
|
+
if (s.length < Cs) {
|
|
1836
1836
|
var o;
|
|
1837
1837
|
return (o = this.values_).splice.apply(o, [n, i].concat(s));
|
|
1838
1838
|
} else {
|
|
@@ -1845,7 +1845,7 @@ var Nn = "splice", Y = "update", ws = 1e4, Ds = {
|
|
|
1845
1845
|
return a;
|
|
1846
1846
|
}
|
|
1847
1847
|
}, t.notifyArrayChildUpdate_ = function(n, i, s) {
|
|
1848
|
-
var o = !this.owned_ &&
|
|
1848
|
+
var o = !this.owned_ && x(), a = J(this), u = a || o ? {
|
|
1849
1849
|
observableKind: "array",
|
|
1850
1850
|
object: this.proxy_,
|
|
1851
1851
|
type: Y,
|
|
@@ -1856,7 +1856,7 @@ var Nn = "splice", Y = "update", ws = 1e4, Ds = {
|
|
|
1856
1856
|
} : null;
|
|
1857
1857
|
process.env.NODE_ENV !== "production" && o && k(u), this.atom_.reportChanged(), a && Q(this, u), process.env.NODE_ENV !== "production" && o && U();
|
|
1858
1858
|
}, t.notifyArraySplice_ = function(n, i, s) {
|
|
1859
|
-
var o = !this.owned_ &&
|
|
1859
|
+
var o = !this.owned_ && x(), a = J(this), u = a || o ? {
|
|
1860
1860
|
observableKind: "array",
|
|
1861
1861
|
object: this.proxy_,
|
|
1862
1862
|
debugObjectName: this.atom_.name_,
|
|
@@ -1973,33 +1973,33 @@ var yt = {
|
|
|
1973
1973
|
return n > -1 ? (this.splice(n, 1), !0) : !1;
|
|
1974
1974
|
}
|
|
1975
1975
|
};
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
function
|
|
1976
|
+
w("at", $);
|
|
1977
|
+
w("concat", $);
|
|
1978
|
+
w("flat", $);
|
|
1979
|
+
w("includes", $);
|
|
1980
|
+
w("indexOf", $);
|
|
1981
|
+
w("join", $);
|
|
1982
|
+
w("lastIndexOf", $);
|
|
1983
|
+
w("slice", $);
|
|
1984
|
+
w("toString", $);
|
|
1985
|
+
w("toLocaleString", $);
|
|
1986
|
+
w("toSorted", $);
|
|
1987
|
+
w("toSpliced", $);
|
|
1988
|
+
w("with", $);
|
|
1989
|
+
w("every", te);
|
|
1990
|
+
w("filter", te);
|
|
1991
|
+
w("find", te);
|
|
1992
|
+
w("findIndex", te);
|
|
1993
|
+
w("findLast", te);
|
|
1994
|
+
w("findLastIndex", te);
|
|
1995
|
+
w("flatMap", te);
|
|
1996
|
+
w("forEach", te);
|
|
1997
|
+
w("map", te);
|
|
1998
|
+
w("some", te);
|
|
1999
|
+
w("toReversed", te);
|
|
2000
|
+
w("reduce", Lr);
|
|
2001
|
+
w("reduceRight", Lr);
|
|
2002
|
+
function w(e, t) {
|
|
2003
2003
|
typeof Array.prototype[e] == "function" && (yt[e] = t(e));
|
|
2004
2004
|
}
|
|
2005
2005
|
function $(e) {
|
|
@@ -2031,13 +2031,13 @@ function Lr(e) {
|
|
|
2031
2031
|
};
|
|
2032
2032
|
}
|
|
2033
2033
|
var Ls = /* @__PURE__ */ De("ObservableArrayAdministration", vn);
|
|
2034
|
-
function
|
|
2035
|
-
return
|
|
2034
|
+
function xt(e) {
|
|
2035
|
+
return wt(e) && Ls(e[_]);
|
|
2036
2036
|
}
|
|
2037
|
-
var
|
|
2037
|
+
var xs = {}, ve = "add", Ot = "delete", xr = /* @__PURE__ */ (function() {
|
|
2038
2038
|
function e(r, n, i) {
|
|
2039
2039
|
var s = this;
|
|
2040
|
-
n === void 0 && (n = Se), i === void 0 && (i = process.env.NODE_ENV !== "production" ? "ObservableMap@" + ee() : "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[_] =
|
|
2040
|
+
n === void 0 && (n = Se), i === void 0 && (i = process.env.NODE_ENV !== "production" ? "ObservableMap@" + ee() : "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[_] = xs, this.data_ = void 0, this.hasMap_ = void 0, this.keysAtom_ = void 0, this.interceptors_ = void 0, this.changeListeners_ = void 0, this.dehancer = void 0, this.enhancer_ = n, this.name_ = i, D(Map) || p(18), me(function() {
|
|
2041
2041
|
s.keysAtom_ = nr(process.env.NODE_ENV !== "production" ? s.name_ + ".keys()" : "ObservableMap.keys()"), s.data_ = /* @__PURE__ */ new Map(), s.hasMap_ = /* @__PURE__ */ new Map(), r && s.merge(r);
|
|
2042
2042
|
});
|
|
2043
2043
|
}
|
|
@@ -2082,7 +2082,7 @@ var Bs = {}, ve = "add", Ot = "delete", Br = /* @__PURE__ */ (function() {
|
|
|
2082
2082
|
return !1;
|
|
2083
2083
|
}
|
|
2084
2084
|
if (this.has_(n)) {
|
|
2085
|
-
var o =
|
|
2085
|
+
var o = x(), a = J(this), u = a || o ? {
|
|
2086
2086
|
observableKind: "map",
|
|
2087
2087
|
debugObjectName: this.name_,
|
|
2088
2088
|
type: Ot,
|
|
@@ -2101,7 +2101,7 @@ var Bs = {}, ve = "add", Ot = "delete", Br = /* @__PURE__ */ (function() {
|
|
|
2101
2101
|
}, t.updateValue_ = function(n, i) {
|
|
2102
2102
|
var s = this.data_.get(n);
|
|
2103
2103
|
if (i = s.prepareNewValue_(i), i !== f.UNCHANGED) {
|
|
2104
|
-
var o =
|
|
2104
|
+
var o = x(), a = J(this), u = a || o ? {
|
|
2105
2105
|
observableKind: "map",
|
|
2106
2106
|
debugObjectName: this.name_,
|
|
2107
2107
|
type: Y,
|
|
@@ -2118,7 +2118,7 @@ var Bs = {}, ve = "add", Ot = "delete", Br = /* @__PURE__ */ (function() {
|
|
|
2118
2118
|
var l, d = new Ee(i, s.enhancer_, process.env.NODE_ENV !== "production" ? s.name_ + "." + Gt(n) : "ObservableMap.key", !1);
|
|
2119
2119
|
s.data_.set(n, d), i = d.value_, (l = s.hasMap_.get(n)) == null || l.setNewValue_(!0), s.keysAtom_.reportChanged();
|
|
2120
2120
|
});
|
|
2121
|
-
var o =
|
|
2121
|
+
var o = x(), a = J(this), u = a || o ? {
|
|
2122
2122
|
observableKind: "map",
|
|
2123
2123
|
debugObjectName: this.name_,
|
|
2124
2124
|
type: ve,
|
|
@@ -2187,7 +2187,7 @@ var Bs = {}, ve = "add", Ot = "delete", Br = /* @__PURE__ */ (function() {
|
|
|
2187
2187
|
}, t.replace = function(n) {
|
|
2188
2188
|
var i = this;
|
|
2189
2189
|
return ce(function() {
|
|
2190
|
-
for (var s =
|
|
2190
|
+
for (var s = Bs(n), o = /* @__PURE__ */ new Map(), a = !1, u = Re(i.data_.keys()), l; !(l = u()).done; ) {
|
|
2191
2191
|
var d = l.value;
|
|
2192
2192
|
if (!s.has(d)) {
|
|
2193
2193
|
var v = i.delete(d);
|
|
@@ -2210,12 +2210,12 @@ var Bs = {}, ve = "add", Ot = "delete", Br = /* @__PURE__ */ (function() {
|
|
|
2210
2210
|
if (i.data_.size !== o.size)
|
|
2211
2211
|
i.keysAtom_.reportChanged();
|
|
2212
2212
|
else
|
|
2213
|
-
for (var A = i.data_.keys(), L = o.keys(),
|
|
2214
|
-
if (
|
|
2213
|
+
for (var A = i.data_.keys(), L = o.keys(), B = A.next(), Fe = L.next(); !B.done; ) {
|
|
2214
|
+
if (B.value !== Fe.value) {
|
|
2215
2215
|
i.keysAtom_.reportChanged();
|
|
2216
2216
|
break;
|
|
2217
2217
|
}
|
|
2218
|
-
|
|
2218
|
+
B = A.next(), Fe = L.next();
|
|
2219
2219
|
}
|
|
2220
2220
|
i.data_ = o;
|
|
2221
2221
|
}), this;
|
|
@@ -2238,11 +2238,11 @@ var Bs = {}, ve = "add", Ot = "delete", Br = /* @__PURE__ */ (function() {
|
|
|
2238
2238
|
return "Map";
|
|
2239
2239
|
}
|
|
2240
2240
|
}]);
|
|
2241
|
-
})(), be = /* @__PURE__ */ De("ObservableMap",
|
|
2241
|
+
})(), be = /* @__PURE__ */ De("ObservableMap", xr);
|
|
2242
2242
|
function An(e) {
|
|
2243
2243
|
return e[Symbol.toStringTag] = "MapIterator", _n(e);
|
|
2244
2244
|
}
|
|
2245
|
-
function
|
|
2245
|
+
function Bs(e) {
|
|
2246
2246
|
if (Ie(e) || be(e))
|
|
2247
2247
|
return e;
|
|
2248
2248
|
if (Array.isArray(e))
|
|
@@ -2255,7 +2255,7 @@ function xs(e) {
|
|
|
2255
2255
|
} else
|
|
2256
2256
|
return p(21, e);
|
|
2257
2257
|
}
|
|
2258
|
-
var Rs = {},
|
|
2258
|
+
var Rs = {}, Br = /* @__PURE__ */ (function() {
|
|
2259
2259
|
function e(r, n, i) {
|
|
2260
2260
|
var s = this;
|
|
2261
2261
|
n === void 0 && (n = Se), i === void 0 && (i = process.env.NODE_ENV !== "production" ? "ObservableSet@" + ee() : "ObservableSet"), this.name_ = void 0, this[_] = Rs, this.data_ = /* @__PURE__ */ new Set(), this.atom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.dehancer = void 0, this.enhancer_ = void 0, this.name_ = i, D(Set) || p(22), this.enhancer_ = function(o, a) {
|
|
@@ -2298,7 +2298,7 @@ var Rs = {}, xr = /* @__PURE__ */ (function() {
|
|
|
2298
2298
|
ce(function() {
|
|
2299
2299
|
i.data_.add(i.enhancer_(n, void 0)), i.atom_.reportChanged();
|
|
2300
2300
|
});
|
|
2301
|
-
var o = process.env.NODE_ENV !== "production" &&
|
|
2301
|
+
var o = process.env.NODE_ENV !== "production" && x(), a = J(this), u = a || o ? {
|
|
2302
2302
|
observableKind: "set",
|
|
2303
2303
|
debugObjectName: this.name_,
|
|
2304
2304
|
type: ve,
|
|
@@ -2320,7 +2320,7 @@ var Rs = {}, xr = /* @__PURE__ */ (function() {
|
|
|
2320
2320
|
return !1;
|
|
2321
2321
|
}
|
|
2322
2322
|
if (this.has(n)) {
|
|
2323
|
-
var o = process.env.NODE_ENV !== "production" &&
|
|
2323
|
+
var o = process.env.NODE_ENV !== "production" && x(), a = J(this), u = a || o ? {
|
|
2324
2324
|
observableKind: "set",
|
|
2325
2325
|
debugObjectName: this.name_,
|
|
2326
2326
|
type: Ot,
|
|
@@ -2421,13 +2421,13 @@ var Rs = {}, xr = /* @__PURE__ */ (function() {
|
|
|
2421
2421
|
return "Set";
|
|
2422
2422
|
}
|
|
2423
2423
|
}]);
|
|
2424
|
-
})(), re = /* @__PURE__ */ De("ObservableSet",
|
|
2424
|
+
})(), re = /* @__PURE__ */ De("ObservableSet", Br);
|
|
2425
2425
|
function Sn(e) {
|
|
2426
2426
|
return e[Symbol.toStringTag] = "SetIterator", _n(e);
|
|
2427
2427
|
}
|
|
2428
|
-
var
|
|
2428
|
+
var wn = /* @__PURE__ */ Object.create(null), Cn = "remove", tn = /* @__PURE__ */ (function() {
|
|
2429
2429
|
function e(r, n, i, s) {
|
|
2430
|
-
n === void 0 && (n = /* @__PURE__ */ new Map()), s === void 0 && (s =
|
|
2430
|
+
n === void 0 && (n = /* @__PURE__ */ new Map()), s === void 0 && (s = wi), this.target_ = void 0, this.values_ = void 0, this.name_ = void 0, this.defaultAnnotation_ = void 0, this.keysAtom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.proxy_ = void 0, this.isPlainObject_ = void 0, this.appliedAnnotations_ = void 0, this.pendingKeys_ = void 0, this.target_ = r, this.values_ = n, this.name_ = i, this.defaultAnnotation_ = s, this.keysAtom_ = new _e(process.env.NODE_ENV !== "production" ? this.name_ + ".keys" : "ObservableObject.keys"), this.isPlainObject_ = I(this.target_), process.env.NODE_ENV !== "production" && !Ir(this.defaultAnnotation_) && p("defaultAnnotation must be valid annotation"), process.env.NODE_ENV !== "production" && (this.appliedAnnotations_ = {});
|
|
2431
2431
|
}
|
|
2432
2432
|
var t = e.prototype;
|
|
2433
2433
|
return t.getObservablePropValue_ = function(n) {
|
|
@@ -2448,7 +2448,7 @@ var Cn = /* @__PURE__ */ Object.create(null), wn = "remove", tn = /* @__PURE__ *
|
|
|
2448
2448
|
i = o.newValue;
|
|
2449
2449
|
}
|
|
2450
2450
|
if (i = s.prepareNewValue_(i), i !== f.UNCHANGED) {
|
|
2451
|
-
var a = J(this), u = process.env.NODE_ENV !== "production" &&
|
|
2451
|
+
var a = J(this), u = process.env.NODE_ENV !== "production" && x(), l = a || u ? {
|
|
2452
2452
|
type: Y,
|
|
2453
2453
|
observableKind: "object",
|
|
2454
2454
|
debugObjectName: this.name_,
|
|
@@ -2609,7 +2609,7 @@ var Cn = /* @__PURE__ */ Object.create(null), wn = "remove", tn = /* @__PURE__ *
|
|
|
2609
2609
|
var s = q(this, {
|
|
2610
2610
|
object: this.proxy_ || this.target_,
|
|
2611
2611
|
name: n,
|
|
2612
|
-
type:
|
|
2612
|
+
type: Cn
|
|
2613
2613
|
});
|
|
2614
2614
|
if (!s)
|
|
2615
2615
|
return null;
|
|
@@ -2617,7 +2617,7 @@ var Cn = /* @__PURE__ */ Object.create(null), wn = "remove", tn = /* @__PURE__ *
|
|
|
2617
2617
|
try {
|
|
2618
2618
|
var o;
|
|
2619
2619
|
H();
|
|
2620
|
-
var a = J(this), u = process.env.NODE_ENV !== "production" &&
|
|
2620
|
+
var a = J(this), u = process.env.NODE_ENV !== "production" && x(), l = this.values_.get(n), d = void 0;
|
|
2621
2621
|
if (!l && (a || u)) {
|
|
2622
2622
|
var v;
|
|
2623
2623
|
d = (v = pt(this.target_, n)) == null ? void 0 : v.value;
|
|
@@ -2629,7 +2629,7 @@ var Cn = /* @__PURE__ */ Object.create(null), wn = "remove", tn = /* @__PURE__ *
|
|
|
2629
2629
|
delete this.target_[n];
|
|
2630
2630
|
if (process.env.NODE_ENV !== "production" && delete this.appliedAnnotations_[n], l && (this.values_.delete(n), l instanceof Ee && (d = l.value_), mr(l)), this.keysAtom_.reportChanged(), (o = this.pendingKeys_) == null || (o = o.get(n)) == null || o.set(n in this.target_), a || u) {
|
|
2631
2631
|
var h = {
|
|
2632
|
-
type:
|
|
2632
|
+
type: Cn,
|
|
2633
2633
|
observableKind: "object",
|
|
2634
2634
|
object: this.proxy_ || this.target_,
|
|
2635
2635
|
debugObjectName: this.name_,
|
|
@@ -2647,7 +2647,7 @@ var Cn = /* @__PURE__ */ Object.create(null), wn = "remove", tn = /* @__PURE__ *
|
|
|
2647
2647
|
}, t.intercept_ = function(n) {
|
|
2648
2648
|
return tt(this, n);
|
|
2649
2649
|
}, t.notifyPropertyAddition_ = function(n, i) {
|
|
2650
|
-
var s, o = J(this), a = process.env.NODE_ENV !== "production" &&
|
|
2650
|
+
var s, o = J(this), a = process.env.NODE_ENV !== "production" && x();
|
|
2651
2651
|
if (o || a) {
|
|
2652
2652
|
var u = o || a ? {
|
|
2653
2653
|
type: ve,
|
|
@@ -2678,7 +2678,7 @@ Extending builtins is not supported.`), e;
|
|
|
2678
2678
|
}
|
|
2679
2679
|
var Ts = /* @__PURE__ */ De("ObservableObjectAdministration", tn);
|
|
2680
2680
|
function Dn(e) {
|
|
2681
|
-
return
|
|
2681
|
+
return wn[e] || (wn[e] = {
|
|
2682
2682
|
get: function() {
|
|
2683
2683
|
return this[_].getObservablePropValue_(e);
|
|
2684
2684
|
},
|
|
@@ -2688,7 +2688,7 @@ function Dn(e) {
|
|
|
2688
2688
|
});
|
|
2689
2689
|
}
|
|
2690
2690
|
function $e(e) {
|
|
2691
|
-
return
|
|
2691
|
+
return wt(e) ? Ts(e[_]) : !1;
|
|
2692
2692
|
}
|
|
2693
2693
|
function Vn(e, t, r) {
|
|
2694
2694
|
var n;
|
|
@@ -2734,7 +2734,7 @@ var hn = /* @__PURE__ */ (function(e) {
|
|
|
2734
2734
|
this.slice(),
|
|
2735
2735
|
//@ts-ignore
|
|
2736
2736
|
s.map(function(a) {
|
|
2737
|
-
return
|
|
2737
|
+
return xt(a) ? a.slice() : a;
|
|
2738
2738
|
})
|
|
2739
2739
|
);
|
|
2740
2740
|
}, r[Symbol.iterator] = function() {
|
|
@@ -2797,7 +2797,7 @@ function ks(e, t, r) {
|
|
|
2797
2797
|
}
|
|
2798
2798
|
function Me(e, t) {
|
|
2799
2799
|
if (typeof e == "object" && e !== null) {
|
|
2800
|
-
if (
|
|
2800
|
+
if (xt(e))
|
|
2801
2801
|
return t !== void 0 && p(23), e[_].atom_;
|
|
2802
2802
|
if (re(e))
|
|
2803
2803
|
return e.atom_;
|
|
@@ -2846,7 +2846,7 @@ function me(e) {
|
|
|
2846
2846
|
G(), ln(r), le(t);
|
|
2847
2847
|
}
|
|
2848
2848
|
}
|
|
2849
|
-
var
|
|
2849
|
+
var xn = St.toString;
|
|
2850
2850
|
function Mr(e, t, r) {
|
|
2851
2851
|
return r === void 0 && (r = -1), nn(e, t, r);
|
|
2852
2852
|
}
|
|
@@ -2860,8 +2860,8 @@ function nn(e, t, r, n, i) {
|
|
|
2860
2860
|
var s = typeof e;
|
|
2861
2861
|
if (s !== "function" && s !== "object" && typeof t != "object")
|
|
2862
2862
|
return !1;
|
|
2863
|
-
var o =
|
|
2864
|
-
if (o !==
|
|
2863
|
+
var o = xn.call(e);
|
|
2864
|
+
if (o !== xn.call(t))
|
|
2865
2865
|
return !1;
|
|
2866
2866
|
switch (o) {
|
|
2867
2867
|
// Strings, numbers, regular expressions, dates, and booleans are compared by value.
|
|
@@ -2881,7 +2881,7 @@ function nn(e, t, r, n, i) {
|
|
|
2881
2881
|
r >= 0 && r++;
|
|
2882
2882
|
break;
|
|
2883
2883
|
}
|
|
2884
|
-
e =
|
|
2884
|
+
e = Bn(e), t = Bn(t);
|
|
2885
2885
|
var a = o === "[object Array]";
|
|
2886
2886
|
if (!a) {
|
|
2887
2887
|
if (typeof e != "object" || typeof t != "object")
|
|
@@ -2914,8 +2914,8 @@ function nn(e, t, r, n, i) {
|
|
|
2914
2914
|
}
|
|
2915
2915
|
return n.pop(), i.pop(), !0;
|
|
2916
2916
|
}
|
|
2917
|
-
function
|
|
2918
|
-
return
|
|
2917
|
+
function Bn(e) {
|
|
2918
|
+
return xt(e) ? e.slice() : Ie(e) || be(e) || ue(e) || re(e) ? Array.from(e.entries()) : e;
|
|
2919
2919
|
}
|
|
2920
2920
|
var Rn, Us = ((Rn = At().Iterator) == null ? void 0 : Rn.prototype) || {};
|
|
2921
2921
|
function _n(e) {
|
|
@@ -2952,7 +2952,7 @@ function Ks(e) {
|
|
|
2952
2952
|
e || (e = Fs, process.env.NODE_ENV !== "production" && console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")), ms({ reactionScheduler: e });
|
|
2953
2953
|
}
|
|
2954
2954
|
function qs(e) {
|
|
2955
|
-
return
|
|
2955
|
+
return Cr(e);
|
|
2956
2956
|
}
|
|
2957
2957
|
var Hs = 1e4, Gs = 1e4, zs = (
|
|
2958
2958
|
/** @class */
|
|
@@ -3234,7 +3234,54 @@ process.env.NODE_ENV;
|
|
|
3234
3234
|
var Ut;
|
|
3235
3235
|
Ks(Kr);
|
|
3236
3236
|
Ut = rn.finalizeAllImmediately;
|
|
3237
|
-
const io = ({
|
|
3237
|
+
const io = ({
|
|
3238
|
+
onClick: e,
|
|
3239
|
+
disabled: t = !1,
|
|
3240
|
+
imagePath: r
|
|
3241
|
+
}) => /* @__PURE__ */ g("div", { className: "buy-bonus-wrap", "aria-hidden": t ? "true" : "false", children: [
|
|
3242
|
+
r && /* @__PURE__ */ c(
|
|
3243
|
+
"div",
|
|
3244
|
+
{
|
|
3245
|
+
className: "bonus-thumb",
|
|
3246
|
+
role: "img",
|
|
3247
|
+
"aria-label": "bonus thumbnail",
|
|
3248
|
+
style: { backgroundImage: `url(${r})` }
|
|
3249
|
+
}
|
|
3250
|
+
),
|
|
3251
|
+
/* @__PURE__ */ c(
|
|
3252
|
+
"button",
|
|
3253
|
+
{
|
|
3254
|
+
className: `buy-bonus ${t ? "disabled" : ""}`,
|
|
3255
|
+
onClick: e,
|
|
3256
|
+
disabled: t,
|
|
3257
|
+
"aria-pressed": t,
|
|
3258
|
+
children: r ? "Disable" : "Buy Bonus"
|
|
3259
|
+
}
|
|
3260
|
+
)
|
|
3261
|
+
] }), $n = ({
|
|
3262
|
+
label: e,
|
|
3263
|
+
value: t
|
|
3264
|
+
}) => /* @__PURE__ */ g("div", { className: "info", children: [
|
|
3265
|
+
/* @__PURE__ */ c("span", { className: "label", children: e }),
|
|
3266
|
+
/* @__PURE__ */ c("span", { className: "value", children: t })
|
|
3267
|
+
] }), so = ({
|
|
3268
|
+
onClick: e,
|
|
3269
|
+
disabled: t = !1,
|
|
3270
|
+
value: r,
|
|
3271
|
+
currency: n,
|
|
3272
|
+
activeAnteBet: i = !1
|
|
3273
|
+
}) => /* @__PURE__ */ g("div", { className: `bet-amount ${t ? "disabled" : ""}`, onClick: e, children: [
|
|
3274
|
+
/* @__PURE__ */ c("div", { className: "bet-amount-icon" }),
|
|
3275
|
+
/* @__PURE__ */ g("label", { className: `bet-amount-text ${i ? "ante-color" : ""}`, children: [
|
|
3276
|
+
r,
|
|
3277
|
+
" ",
|
|
3278
|
+
n
|
|
3279
|
+
] })
|
|
3280
|
+
] }), Fn = ({
|
|
3281
|
+
onClick: e,
|
|
3282
|
+
disabled: t = !1,
|
|
3283
|
+
className: r
|
|
3284
|
+
}) => /* @__PURE__ */ c("button", { className: `${r} ${t ? "disabled" : ""}`, onClick: e });
|
|
3238
3285
|
class oo {
|
|
3239
3286
|
activePopup = null;
|
|
3240
3287
|
constructor() {
|
|
@@ -3352,8 +3399,7 @@ class lo {
|
|
|
3352
3399
|
this.betIndex += 1, this.betAmount = this.betAmountRange[this.betIndex];
|
|
3353
3400
|
}
|
|
3354
3401
|
setPrevBetAmount() {
|
|
3355
|
-
if (this.betIndex < 1)
|
|
3356
|
-
return console.error("Bet Index must be more than 0");
|
|
3402
|
+
if (this.betIndex < 1) return console.error("Bet Index must be more than 0");
|
|
3357
3403
|
this.betIndex -= 1, this.betAmount = this.betAmountRange[this.betIndex];
|
|
3358
3404
|
}
|
|
3359
3405
|
setBetAmountRange(t) {
|
|
@@ -3454,14 +3500,14 @@ class po {
|
|
|
3454
3500
|
isActiveBonus: Oe,
|
|
3455
3501
|
isActiveInReelFeature: Oe,
|
|
3456
3502
|
isActiveAnteBet: Oe,
|
|
3457
|
-
setAnteBets:
|
|
3458
|
-
setActiveAnteBet:
|
|
3459
|
-
setActiveBonusFeature:
|
|
3460
|
-
setActiveInReelFeature:
|
|
3461
|
-
setInReelFeatures:
|
|
3462
|
-
setBonusFeatures:
|
|
3463
|
-
setHandlerOnce:
|
|
3464
|
-
buyHandler:
|
|
3503
|
+
setAnteBets: C,
|
|
3504
|
+
setActiveAnteBet: C,
|
|
3505
|
+
setActiveBonusFeature: C,
|
|
3506
|
+
setActiveInReelFeature: C,
|
|
3507
|
+
setInReelFeatures: C,
|
|
3508
|
+
setBonusFeatures: C,
|
|
3509
|
+
setHandlerOnce: C,
|
|
3510
|
+
buyHandler: C
|
|
3465
3511
|
});
|
|
3466
3512
|
}
|
|
3467
3513
|
setAnteBets(t) {
|
|
@@ -3669,15 +3715,15 @@ class bo {
|
|
|
3669
3715
|
isAutoPlayDisabled: S,
|
|
3670
3716
|
isBuyBonusDisabled: S,
|
|
3671
3717
|
isBetAmountLabelsDisabled: S,
|
|
3672
|
-
setIsSpinRunning:
|
|
3673
|
-
setIsSpinDisabled:
|
|
3674
|
-
setIsSlamStop:
|
|
3675
|
-
setHandlerOnce:
|
|
3676
|
-
setIsUIVisible:
|
|
3677
|
-
setIsAutoplayDisabled:
|
|
3678
|
-
setIsBuyBonusDisabled:
|
|
3679
|
-
setIsBetAmountLabelsDisabled:
|
|
3680
|
-
clickHandler:
|
|
3718
|
+
setIsSpinRunning: C,
|
|
3719
|
+
setIsSpinDisabled: C,
|
|
3720
|
+
setIsSlamStop: C,
|
|
3721
|
+
setHandlerOnce: C,
|
|
3722
|
+
setIsUIVisible: C,
|
|
3723
|
+
setIsAutoplayDisabled: C,
|
|
3724
|
+
setIsBuyBonusDisabled: C,
|
|
3725
|
+
setIsBetAmountLabelsDisabled: C,
|
|
3726
|
+
clickHandler: C
|
|
3681
3727
|
});
|
|
3682
3728
|
}
|
|
3683
3729
|
setHandlerOnce(t) {
|
|
@@ -3714,34 +3760,136 @@ class bo {
|
|
|
3714
3760
|
}
|
|
3715
3761
|
const Nt = new bo(), mo = F(() => {
|
|
3716
3762
|
const { isDisabled: e, isRunning: t, clickHandler: r } = Nt, { count: n, isStarted: i } = ye;
|
|
3717
|
-
return
|
|
3763
|
+
return /* @__PURE__ */ c(
|
|
3764
|
+
"button",
|
|
3765
|
+
{
|
|
3766
|
+
className: `spin-btn
|
|
3718
3767
|
${e ? "disabled" : ""}
|
|
3719
3768
|
${t ? "slam-stop" : ""}
|
|
3720
|
-
`,
|
|
3721
|
-
|
|
3722
|
-
|
|
3769
|
+
`,
|
|
3770
|
+
onClick: r.bind(Nt),
|
|
3771
|
+
children: i && t && n && /* @__PURE__ */ c("span", { className: "spin-btn_label", children: n })
|
|
3772
|
+
}
|
|
3773
|
+
);
|
|
3774
|
+
}), qn = ({
|
|
3775
|
+
onClick: e,
|
|
3776
|
+
disabled: t = !1,
|
|
3777
|
+
className: r,
|
|
3778
|
+
isActive: n
|
|
3779
|
+
}) => /* @__PURE__ */ c(
|
|
3780
|
+
"button",
|
|
3781
|
+
{
|
|
3782
|
+
className: `${r} ${t ? "disabled" : ""} ${n ? "active" : ""}`,
|
|
3783
|
+
onClick: e
|
|
3784
|
+
}
|
|
3785
|
+
), go = F(() => {
|
|
3786
|
+
const {
|
|
3787
|
+
lastWin: e,
|
|
3788
|
+
balance: t,
|
|
3789
|
+
betAmount: r,
|
|
3790
|
+
displayCurrency: n,
|
|
3791
|
+
setNextBetAmount: i,
|
|
3792
|
+
setPrevBetAmount: s
|
|
3793
|
+
} = ae, { setIsTurbo: o, isTurbo: a } = ne, { open: u } = T, {
|
|
3794
|
+
activeAnteBet: l,
|
|
3795
|
+
activeBonusFeature: d,
|
|
3796
|
+
activeInReelFeature: v,
|
|
3797
|
+
setActiveAnteBet: h
|
|
3798
|
+
} = Ne, { isUIVisible: b, isAutoPlayDisabled: m, isBuyBonusDisabled: y, isBetAmountLabelsDisabled: N } = Nt, O = dt(() => l?.imagePath || v?.imagePath || d?.imagePath, [l, d, v]), V = zn(() => {
|
|
3723
3799
|
l ? h.call(Ne, null) : u.call(T, P.buyBonus);
|
|
3724
3800
|
}, [l, h]);
|
|
3725
|
-
return c("div", { className: `ui-footer ${b ? "" : "hidden"}`, children:
|
|
3726
|
-
|
|
3801
|
+
return /* @__PURE__ */ c("div", { className: `ui-footer ${b ? "" : "hidden"}`, children: /* @__PURE__ */ g("div", { className: "top-row", children: [
|
|
3802
|
+
/* @__PURE__ */ g("div", { className: "left-group", children: [
|
|
3803
|
+
/* @__PURE__ */ c(
|
|
3804
|
+
io,
|
|
3805
|
+
{
|
|
3806
|
+
imagePath: O,
|
|
3807
|
+
disabled: y,
|
|
3808
|
+
onClick: V
|
|
3809
|
+
}
|
|
3810
|
+
),
|
|
3811
|
+
/* @__PURE__ */ g("div", { className: "balance-info", children: [
|
|
3812
|
+
/* @__PURE__ */ c($n, { label: "LAST WIN", value: `${e} ${n}` }),
|
|
3813
|
+
/* @__PURE__ */ c($n, { label: "BALANCE", value: `${t} ${n}` })
|
|
3814
|
+
] })
|
|
3815
|
+
] }),
|
|
3816
|
+
/* @__PURE__ */ g("div", { className: "bet-control", children: [
|
|
3817
|
+
/* @__PURE__ */ c(
|
|
3818
|
+
so,
|
|
3819
|
+
{
|
|
3820
|
+
activeAnteBet: !!l,
|
|
3821
|
+
value: r,
|
|
3822
|
+
currency: n,
|
|
3823
|
+
onClick: u.bind(T, P.bet),
|
|
3824
|
+
disabled: N
|
|
3825
|
+
}
|
|
3826
|
+
),
|
|
3827
|
+
/* @__PURE__ */ g("div", { className: "bet-box", children: [
|
|
3828
|
+
/* @__PURE__ */ c(
|
|
3829
|
+
Fn,
|
|
3830
|
+
{
|
|
3831
|
+
onClick: () => s.call(ae),
|
|
3832
|
+
className: "bet-btn minus",
|
|
3833
|
+
disabled: N
|
|
3834
|
+
}
|
|
3835
|
+
),
|
|
3836
|
+
/* @__PURE__ */ c(mo, { onClick: () => console.log("Spin"), state: "active" }),
|
|
3837
|
+
/* @__PURE__ */ c(
|
|
3838
|
+
Fn,
|
|
3839
|
+
{
|
|
3840
|
+
onClick: () => i.call(ae),
|
|
3841
|
+
className: "bet-btn plus",
|
|
3842
|
+
disabled: N
|
|
3843
|
+
}
|
|
3844
|
+
)
|
|
3845
|
+
] }),
|
|
3846
|
+
/* @__PURE__ */ c(
|
|
3847
|
+
qn,
|
|
3848
|
+
{
|
|
3849
|
+
className: "quick-spin",
|
|
3850
|
+
onClick: o.bind(ne, !a),
|
|
3851
|
+
isActive: a
|
|
3852
|
+
}
|
|
3853
|
+
),
|
|
3854
|
+
/* @__PURE__ */ c(
|
|
3855
|
+
qn,
|
|
3856
|
+
{
|
|
3857
|
+
className: "auto-spin",
|
|
3858
|
+
onClick: u.bind(T, P.autoplay),
|
|
3859
|
+
isActive: !1,
|
|
3860
|
+
disabled: m
|
|
3861
|
+
}
|
|
3862
|
+
)
|
|
3863
|
+
] })
|
|
3864
|
+
] }) });
|
|
3865
|
+
}), yo = ({
|
|
3866
|
+
onMount: e,
|
|
3867
|
+
onUnmount: t,
|
|
3868
|
+
className: r
|
|
3869
|
+
}) => {
|
|
3727
3870
|
const n = Ge(null);
|
|
3728
3871
|
return ze(() => (n.current && e && e(n.current), () => {
|
|
3729
3872
|
t?.();
|
|
3730
|
-
}), [e, t]),
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3873
|
+
}), [e, t]), /* @__PURE__ */ c(
|
|
3874
|
+
"div",
|
|
3875
|
+
{
|
|
3876
|
+
ref: n,
|
|
3877
|
+
className: r,
|
|
3878
|
+
style: {
|
|
3879
|
+
width: "100%",
|
|
3880
|
+
height: "100%",
|
|
3881
|
+
position: "relative"
|
|
3882
|
+
}
|
|
3883
|
+
}
|
|
3884
|
+
);
|
|
3735
3885
|
};
|
|
3736
3886
|
function Oo(e) {
|
|
3737
3887
|
const t = Ge(null);
|
|
3738
3888
|
return ze(() => {
|
|
3739
|
-
if (typeof e != "function")
|
|
3740
|
-
return;
|
|
3889
|
+
if (typeof e != "function") return;
|
|
3741
3890
|
const r = (n) => {
|
|
3742
3891
|
const i = t.current;
|
|
3743
|
-
if (!i)
|
|
3744
|
-
return;
|
|
3892
|
+
if (!i) return;
|
|
3745
3893
|
const s = n.target;
|
|
3746
3894
|
s && (i.contains(s) || e(n));
|
|
3747
3895
|
};
|
|
@@ -3754,17 +3902,103 @@ const Eo = F(() => {
|
|
|
3754
3902
|
const { volume: e, setVolume: t } = ne, [r, n] = he.useState(!1), i = Oo(() => n(!1)), s = zn(() => {
|
|
3755
3903
|
r || n(!0);
|
|
3756
3904
|
}, [r, n]);
|
|
3757
|
-
return
|
|
3905
|
+
return /* @__PURE__ */ g(sn, { children: [
|
|
3906
|
+
r && /* @__PURE__ */ g("div", { className: "volume-control", ref: i, children: [
|
|
3907
|
+
/* @__PURE__ */ c(
|
|
3908
|
+
"input",
|
|
3909
|
+
{
|
|
3910
|
+
type: "range",
|
|
3911
|
+
min: 0,
|
|
3912
|
+
max: 100,
|
|
3913
|
+
value: e,
|
|
3914
|
+
onChange: (o) => t.call(ne, Number(o.target.value)),
|
|
3915
|
+
className: "slider",
|
|
3916
|
+
"aria-label": "Volume"
|
|
3917
|
+
}
|
|
3918
|
+
),
|
|
3919
|
+
/* @__PURE__ */ c("span", { className: "volume-value", children: e })
|
|
3920
|
+
] }),
|
|
3921
|
+
/* @__PURE__ */ c(
|
|
3922
|
+
"button",
|
|
3923
|
+
{
|
|
3924
|
+
className: `btn-sound ${e === 0 ? "inactive" : ""}`,
|
|
3925
|
+
"aria-label": "Toggle Sound",
|
|
3926
|
+
onClick: s
|
|
3927
|
+
}
|
|
3928
|
+
)
|
|
3929
|
+
] });
|
|
3758
3930
|
}), No = F(() => {
|
|
3759
3931
|
const { open: e } = T, { isUIVisible: t } = Nt;
|
|
3760
|
-
return t ? g("div", { className: "settings-section", children: [
|
|
3932
|
+
return t ? /* @__PURE__ */ g("div", { className: "settings-section", children: [
|
|
3933
|
+
/* @__PURE__ */ c(Eo, {}),
|
|
3934
|
+
/* @__PURE__ */ c(
|
|
3935
|
+
"button",
|
|
3936
|
+
{
|
|
3937
|
+
className: "btn-settings",
|
|
3938
|
+
"aria-label": "Open Settings",
|
|
3939
|
+
onClick: e.bind(T, P.settings)
|
|
3940
|
+
}
|
|
3941
|
+
)
|
|
3942
|
+
] }) : null;
|
|
3761
3943
|
}), Ao = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='45'%20viewBox='0%200%2034%2045'%20fill='none'%3e%3cpath%20d='M7.69062%2031.7333H7.06121L9.3091%2028.0889L11.9167%2024C12.636%2022.9333%2012.666%2021.8074%2012.0066%2020.6222C11.527%2019.6741%2011.0475%2018.8148%2010.5679%2018.0444L11.1973%2017.6889C11.1973%2017.6296%2011.1674%2017.5704%2011.1074%2017.5111L10.3881%2017.6889C10.2083%2017.6296%2010.0284%2017.4222%209.8486%2017.0667C9.72871%2016.7111%209.63879%2016.5037%209.57885%2016.4444C9.15924%2016.1481%208.85952%2015.7037%208.67969%2015.1111L9.12927%2014.5778C8.94944%2014.4%208.88949%2014.2815%208.94944%2014.2222C9.06933%2013.4518%209.33907%2012.9185%209.75868%2012.6222C10.0584%2012.563%2010.0284%2012.3556%209.66877%2012L8.40994%2014.5778C7.93039%2013.9852%207.66065%2013.6%207.6007%2013.4222C7.6007%2013.1852%207.8105%2012.7704%208.23011%2012.1778C8.40994%2012%208.5598%2011.7926%208.67969%2011.5556C8.85952%2011.1407%208.94944%2010.6963%208.94944%2010.2222L8.40994%2011.3778C8.11022%2011.8519%207.69062%2011.9704%207.15112%2011.7333C7.15112%2011.4963%207.18109%2011.3481%207.24104%2011.2889C7.36093%2011.1704%207.51079%2011.0815%207.69062%2011.0222C7.87045%2010.9037%208.02031%2010.7852%208.1402%2010.6667L7.78053%2010.4C7.78053%2010.3407%207.81051%2010.2815%207.87045%2010.2222C7.87045%209.98518%207.90042%209.83704%207.96036%209.77778C7.54076%2010.1926%207.12115%2010.2222%206.70154%209.86667C6.82143%209.51111%206.88137%209.3037%206.88137%209.24444L6.97129%209.06666L7.15112%208.8C6.97129%208.85926%206.73151%208.88889%206.43179%208.88889C6.43179%208.53333%206.46177%208.32592%206.52171%208.26666C6.70154%207.79259%206.70154%207.34815%206.52171%206.93333L6.07213%207.28889C5.77241%207.46667%205.23292%207.46667%204.45365%207.28889C4.15393%206.6963%204.30379%206.13333%204.90322%205.6C4.84328%205.6%204.66345%205.62963%204.36373%205.68889C4.12395%205.68889%203.94412%205.68889%203.82423%205.68889C3.82423%206.22222%203.79426%206.60741%203.73432%206.84444C3.37465%206.25185%203.19482%205.86666%203.19482%205.68889C3.13488%205.62963%203.07494%205.6%203.01499%205.6L2.74524%205.33333L1.21667%202.66666L1.03684%202.13333C0.677179%201.00741%201.09679%200.355554%202.29566%200.177775H3.73432C3.97409%200.177775%204.42367%200.207404%205.08306%200.266663C5.80238%200.266663%206.25196%200.266663%206.43179%200.266663C7.33095%200.148146%208.05028%200.503704%208.58978%201.33333C9.18921%202.16296%2010.2982%203.94074%2011.9167%206.66667C12.0366%206.78518%2012.0965%207.05185%2012.0965%207.46666C12.8158%207.58518%2013.2354%208.14815%2013.3553%209.15555L14.0746%2010.0444L15.6032%2012.8C15.6032%2012.9185%2015.6332%2013.0074%2015.6931%2013.0667L16.5923%2014.4L17.7612%2014.0444L18.3906%2013.6C18.8102%2013.1852%2019.2298%2012.6519%2019.6494%2012L21.5377%209.06666L23.336%206.4C24.2951%204.97778%2025.0144%203.82222%2025.494%202.93333L26.0335%201.86667C26.573%201.80741%2026.8727%201.74815%2026.9326%201.68889C27.0525%201.57037%2027.0525%201.24444%2026.9326%200.71111C27.5321%200.355554%2028.5211%200.177775%2029.8998%200.177775C31.4584%200.0592581%2032.2676%200%2032.3276%200L32.5074%200.62222L32.8671%200.266663L32.957%200.35555C33.0169%200.414812%2033.0769%200.444444%2033.1368%200.444444C33.8561%200.799999%2034.0959%201.27407%2033.8561%201.86667C33.7362%202.28148%2033.3766%203.05185%2032.7771%204.17777L32.3276%204.35555L31.878%205.51111C31.0987%206.45926%2030.0497%208%2028.7309%2010.1333C27.5321%2012.0296%2026.6928%2013.3333%2026.2133%2014.0444C25.9136%2014.4%2024.6547%2016.4148%2022.4368%2020.0889L21.8973%2021.0667C21.5976%2021.7778%2021.6575%2022.4296%2022.0772%2023.0222L23.6956%2025.8667C23.6956%2025.9852%2023.7556%2026.1037%2023.8755%2026.2222C23.9954%2026.3407%2023.9654%2026.4889%2023.7856%2026.6667L24.3251%2026.9333C24.5648%2027.4074%2025.0744%2028.237%2025.8536%2029.4222C26.6329%2030.6074%2027.0525%2031.2593%2027.1124%2031.3778C27.1124%2031.4963%2027.1424%2031.5852%2027.2024%2031.6444C26.543%2031.9407%2026.4231%2032.2963%2026.8427%2032.7111C26.8427%2032.7704%2026.8127%2032.8296%2026.7528%2032.8889C26.7528%2032.9481%2026.7528%2033.0074%2026.7528%2033.0667C26.7528%2033.2444%2026.8427%2033.4222%2027.0225%2033.6C27.2024%2033.4222%2027.4122%2033.037%2027.6519%2032.4444C28.1914%2033.037%2028.4012%2033.5704%2028.2814%2034.0444C28.9407%2034.4%2029.2704%2034.9037%2029.2704%2035.5556C29.2704%2035.6741%2029.3004%2035.7333%2029.3603%2035.7333C29.6001%2035.9704%2029.9898%2036.5037%2030.5292%2037.3333L31.6082%2039.0222L31.9679%2039.5556C32.1477%2039.9704%2032.0878%2040.237%2031.7881%2040.3556H31.9679L32.5074%2040.1778L33.6763%2042.4C34.3956%2044%2033.9161%2044.8%2032.2376%2044.8C32.1777%2044.8%2032.1477%2044.7704%2032.1477%2044.7111C32.1477%2044.3556%2032.0878%2044.1778%2031.9679%2044.1778C31.7881%2044.1778%2031.6682%2044.2074%2031.6082%2044.2667C31.6082%2044.3259%2031.6082%2044.4444%2031.6082%2044.6222C31.6682%2044.7407%2031.6982%2044.8296%2031.6982%2044.8889H28.3713C27.5321%2044.8889%2026.7828%2044.4741%2026.1234%2043.6444L24.9545%2041.7778L21.8973%2036.8889L20.9082%2035.0222L20.0091%2033.5111L18.4805%2031.2C18.4805%2031.1407%2018.3307%2030.9037%2018.0309%2030.4889C17.6113%2029.9556%2017.1618%2029.8074%2016.6822%2030.0444C16.2626%2030.2222%2015.9029%2030.4593%2015.6032%2030.7556C15.3634%2031.0519%2015.1536%2031.3778%2014.9738%2031.7333L11.1973%2037.6L9.3091%2040.4444L9.12927%2040.7111V40.3556C9.06933%2040.1185%209.03935%2039.9407%209.03935%2039.8222C8.5598%2040.1185%208.40994%2040.4444%208.58978%2040.8C8.58978%2040.8593%208.67969%2040.8889%208.85952%2040.8889L7.51079%2043.2L6.70154%2042.7556C6.70154%2042.8148%206.70154%2043.0222%206.70154%2043.3778C6.76149%2043.7333%206.79146%2043.9704%206.79146%2044.0889C6.43179%2044.6815%205.80238%2044.9778%204.90322%2044.9778C4.06401%2045.037%202.92508%2044.9778%201.48642%2044.8C0.107712%2044.6222%20-0.311896%2043.8519%200.2276%2042.4889L0.407431%2042.1333L3.19482%2037.6L3.91415%2038.4889C4.03404%2037.9556%203.91415%2037.5111%203.55449%2037.1556L4.45365%2035.9111L5.17297%2034.8444L6.16205%2033.9556C6.1021%2033.5407%206.40182%2032.7704%207.06121%2031.6444V31.8222L7.42087%2032.2667L7.51079%2032.0889C7.51079%2032.0296%207.54076%2031.9407%207.6007%2031.8222V31.7333C7.90042%2031.7926%208.05028%2031.763%208.05028%2031.6444C8.11022%2031.4667%208.11022%2031.2889%208.05028%2031.1111C7.8105%2031.1111%207.69062%2031.3185%207.69062%2031.7333ZM9.03935%2030.5778C9.45896%2030.637%209.69874%2030.637%209.75868%2030.5778C9.81863%2030.5185%209.78865%2030.2519%209.66877%2029.7778H8.85952C8.97941%2030.2519%209.03935%2030.5481%209.03935%2030.6667C8.79958%2030.6667%208.61975%2030.7259%208.49986%2030.8444C8.49986%2030.9037%208.52983%2030.9926%208.58978%2031.1111C8.64972%2031.1704%208.70966%2031.1704%208.76961%2031.1111C8.8895%2031.1111%208.97941%2030.9333%209.03935%2030.5778ZM21.2679%2012.8L20.9982%2012.3556L20.099%2012.7111C20.2189%2012.9481%2020.3987%2013.2148%2020.6385%2013.5111C21.0581%2013.4518%2021.2679%2013.2148%2021.2679%2012.8ZM30.6192%2040.8C30.0797%2041.0963%2030.0197%2041.5407%2030.4393%2042.1333C30.739%2041.4815%2030.799%2041.037%2030.6192%2040.8ZM22.5267%2012.1778C22.9463%2011.7037%2023.0363%2011.2593%2022.7965%2010.8444C22.3169%2011.2593%2022.227%2011.7037%2022.5267%2012.1778ZM3.46457%205.06666L4.63348%204.44444L3.91415%204.17777L3.37466%204.97778C3.37466%205.03704%203.40463%205.06666%203.46457%205.06666ZM22.3469%2026.4L22.1671%2026.1333C21.9872%2026.4889%2021.8973%2026.7259%2021.8973%2026.8444L22.0772%2027.0222L22.257%2027.1111C22.257%2027.0519%2022.3169%2026.963%2022.4368%2026.8444C22.6167%2026.6667%2022.5867%2026.5185%2022.3469%2026.4ZM24.1452%2012.1778V11.5556C24.1452%2011.437%2024.0553%2011.3778%2023.8755%2011.3778L23.6057%2011.4667C23.6057%2011.9407%2023.7856%2012.1778%2024.1452%2012.1778ZM6.25196%2035.2889C6.25196%2035.5852%206.28194%2035.8222%206.34188%2036C6.52171%2035.7037%206.49174%2035.4667%206.25196%2035.2889ZM10.0284%208.88889L9.39902%209.77778C9.81863%209.6%2010.0284%209.3037%2010.0284%208.88889ZM28.1015%2039.5556C28.3413%2039.2%2028.3113%2038.8741%2028.0116%2038.5778C27.9517%2038.6963%2027.9217%2038.8741%2027.9217%2039.1111C27.9217%2039.1704%2027.9517%2039.2296%2028.0116%2039.2889C28.0116%2039.4074%2028.0416%2039.4963%2028.1015%2039.5556ZM29.8099%2037.0667C29.75%2037.4815%2029.8699%2037.7185%2030.1696%2037.7778C30.2895%2037.4222%2030.1696%2037.1852%2029.8099%2037.0667ZM3.01499%2042.4889C3.07494%2042.4296%203.16485%2042.4%203.28474%2042.4L3.19482%2042.2222C3.19482%2042.0444%203.19482%2041.8963%203.19482%2041.7778L3.10491%2041.8667H2.92508L3.01499%2042.0444C3.01499%2042.2222%203.01499%2042.3704%203.01499%2042.4889ZM11.2873%208.17778H11.4671C11.587%208.05926%2011.6469%207.91111%2011.6469%207.73333L11.3772%207.64444C11.3772%207.7037%2011.3472%207.79259%2011.2873%207.91111C11.2873%208.02963%2011.2873%208.11852%2011.2873%208.17778ZM29.5402%2038.8444L29.72%2038.4889V38.1333C29.6001%2038.1333%2029.5102%2038.1037%2029.4503%2038.0444C29.3304%2038.3407%2029.3603%2038.6074%2029.5402%2038.8444ZM28.641%206.31111H28.4612C28.4012%206.37037%2028.3713%206.51852%2028.3713%206.75555C28.4312%206.81481%2028.4912%206.84444%2028.5511%206.84444V6.57778L28.641%206.31111ZM28.0116%2037.1556C28.1914%2036.9185%2028.1615%2036.7111%2027.9217%2036.5333C27.9217%2036.6519%2027.9517%2036.7704%2028.0116%2036.8889V37.1556ZM24.7746%2032.7111C24.7147%2032.6518%2024.6248%2032.6222%2024.5049%2032.6222C24.5049%2032.8593%2024.4749%2033.0074%2024.415%2033.0667H24.6847C24.6847%2033.0074%2024.6847%2032.9481%2024.6847%2032.8889C24.7447%2032.8296%2024.7746%2032.7704%2024.7746%2032.7111ZM25.404%2033.9556H25.5839C25.5839%2033.8963%2025.5539%2033.8074%2025.494%2033.6889C25.494%2033.5704%2025.494%2033.5111%2025.494%2033.5111H25.404C25.3441%2033.5704%2025.2842%2033.6%2025.2242%2033.6C25.3441%2033.7185%2025.404%2033.837%2025.404%2033.9556ZM9.66877%2030.8444H9.48893V31.2889H9.57885C9.63879%2031.2296%209.66877%2031.0815%209.66877%2030.8444ZM6.52171%2041.8667L6.43179%2042.1333C6.43179%2042.1926%206.49174%2042.2815%206.61163%2042.4L6.79146%2042.2222C6.79146%2042.163%206.70154%2042.0444%206.52171%2041.8667ZM5.3528%2039.1111H5.53264C5.53264%2038.8148%205.44272%2038.637%205.26289%2038.5778C5.32283%2038.6963%205.3528%2038.8741%205.3528%2039.1111ZM29.9897%206.48889H30.2595V5.95555H30.0797L29.9897%206.22222V6.48889ZM27.2024%209.6H27.3822C27.3822%209.36296%2027.3522%209.21481%2027.2923%209.15555H27.1124C27.1124%209.39259%2027.1424%209.54074%2027.2024%209.6ZM11.3772%2027.6444V28.3556C11.557%2028.1185%2011.557%2027.8815%2011.3772%2027.6444ZM4.54356%208.08889L5.53264%207.46666L6.07213%207.28889C6.13207%207.22963%206.25196%207.2%206.43179%207.2C6.49174%207.67407%206.34188%208%205.98222%208.17778C5.62255%208.35555%205.143%208.32592%204.54356%208.08889ZM6.43179%208.88889C6.73151%208.88889%206.97129%208.85926%207.15112%208.8L6.97129%209.06666L6.88137%209.24444L6.52171%209.6C6.22199%209.77778%205.98222%209.68889%205.80238%209.33333L6.07213%209.06666H5.98222C6.04216%209.06666%206.1021%209.03703%206.16205%208.97778C6.22199%208.97778%206.31191%208.94815%206.43179%208.88889ZM6.34188%2011.0222V10.2222L7.24104%2010.4C7.06121%2010.8741%206.76149%2011.0815%206.34188%2011.0222ZM5.98222%209.06666H6.07213C5.59258%209.06666%205.29286%208.97778%205.17297%208.8C5.29286%208.8%205.44272%208.74074%205.62255%208.62222C5.80238%208.5037%205.92227%208.41481%205.98222%208.35555V9.06666Z'%20fill='white'/%3e%3c/svg%3e", So = F(() => {
|
|
3762
3944
|
const { betAmount: e, displayCurrency: t, setNextBetAmount: r, setPrevBetAmount: n } = ae;
|
|
3763
|
-
return g("div", { className: "overlay-bet-controller", children: [
|
|
3764
|
-
|
|
3945
|
+
return /* @__PURE__ */ g("div", { className: "overlay-bet-controller", children: [
|
|
3946
|
+
/* @__PURE__ */ c("div", { className: "decrease-bet", onClick: n.bind(ae) }),
|
|
3947
|
+
/* @__PURE__ */ g("div", { className: "bet-amount", children: [
|
|
3948
|
+
e,
|
|
3949
|
+
" ",
|
|
3950
|
+
t
|
|
3951
|
+
] }),
|
|
3952
|
+
/* @__PURE__ */ c("div", { className: "increase-bet", onClick: r.bind(ae) })
|
|
3953
|
+
] });
|
|
3954
|
+
}), Ur = ({
|
|
3955
|
+
value: e,
|
|
3956
|
+
onClick: t,
|
|
3957
|
+
active: r
|
|
3958
|
+
}) => /* @__PURE__ */ c("div", { className: `rectLabel ${r ? "current-active" : ""}`, onClick: () => t(e), children: /* @__PURE__ */ c("span", { children: e }) }), wo = F(() => {
|
|
3765
3959
|
const { betAmountRange: e, setBet: t, betAmount: r } = ae;
|
|
3766
|
-
return c("div", { className: "bet-popup-container", children: e.map((n, i) =>
|
|
3767
|
-
|
|
3960
|
+
return /* @__PURE__ */ c("div", { className: "bet-popup-container", children: e.map((n, i) => /* @__PURE__ */ c(
|
|
3961
|
+
Ur,
|
|
3962
|
+
{
|
|
3963
|
+
value: n,
|
|
3964
|
+
active: r === n,
|
|
3965
|
+
onClick: t.bind(ae, n)
|
|
3966
|
+
},
|
|
3967
|
+
i
|
|
3968
|
+
)) });
|
|
3969
|
+
}), Bt = ({
|
|
3970
|
+
checked: e,
|
|
3971
|
+
onChange: t
|
|
3972
|
+
}) => /* @__PURE__ */ c(
|
|
3973
|
+
"button",
|
|
3974
|
+
{
|
|
3975
|
+
className: `ap-toggle ${e ? "ap-toggle--on" : "ap-toggle--off"}`,
|
|
3976
|
+
"aria-pressed": e,
|
|
3977
|
+
onClick: () => t(!e),
|
|
3978
|
+
type: "button",
|
|
3979
|
+
children: /* @__PURE__ */ c("span", { className: "ap-toggle__knob" })
|
|
3980
|
+
}
|
|
3981
|
+
), Ft = ({ active: e, onClick: t, children: r }) => /* @__PURE__ */ c(
|
|
3982
|
+
"button",
|
|
3983
|
+
{
|
|
3984
|
+
className: `ap-limit ${e ? "ap-limit--active" : ""}`,
|
|
3985
|
+
onClick: t,
|
|
3986
|
+
type: "button",
|
|
3987
|
+
children: r
|
|
3988
|
+
}
|
|
3989
|
+
), Hn = ({
|
|
3990
|
+
active: e,
|
|
3991
|
+
onClick: t,
|
|
3992
|
+
children: r
|
|
3993
|
+
}) => /* @__PURE__ */ c("button", { className: `ap-tab ${e ? "ap-tab--active" : ""}`, onClick: t, type: "button", children: r }), Co = ({
|
|
3994
|
+
value: e,
|
|
3995
|
+
placeholder: t,
|
|
3996
|
+
inputType: r = "text",
|
|
3997
|
+
className: n = "",
|
|
3998
|
+
autoFocus: i = !0,
|
|
3999
|
+
onSubmit: s,
|
|
4000
|
+
onCancel: o
|
|
4001
|
+
}) => {
|
|
3768
4002
|
const [a, u] = pe(""), l = Ge(null), d = Ge(!1);
|
|
3769
4003
|
ze(() => {
|
|
3770
4004
|
u(e ?? ""), d.current = !1;
|
|
@@ -3780,55 +4014,267 @@ const Eo = F(() => {
|
|
|
3780
4014
|
}, b = (m) => {
|
|
3781
4015
|
m.key === "Enter" ? (m.preventDefault(), v(), l.current?.blur()) : m.key === "Escape" && (u(e ?? ""), o?.(), l.current?.blur());
|
|
3782
4016
|
};
|
|
3783
|
-
return
|
|
4017
|
+
return /* @__PURE__ */ c(
|
|
4018
|
+
"input",
|
|
4019
|
+
{
|
|
4020
|
+
ref: l,
|
|
4021
|
+
className: `ap-limit ${n}`,
|
|
4022
|
+
type: "number",
|
|
4023
|
+
value: a,
|
|
4024
|
+
placeholder: t,
|
|
4025
|
+
onChange: (m) => u(m.target.value),
|
|
4026
|
+
onBlur: h,
|
|
4027
|
+
onKeyDown: b,
|
|
4028
|
+
inputMode: r === "number" ? "numeric" : void 0,
|
|
4029
|
+
"aria-label": "custom limit input"
|
|
4030
|
+
}
|
|
4031
|
+
);
|
|
3784
4032
|
}, Do = F(() => {
|
|
3785
|
-
const {
|
|
4033
|
+
const {
|
|
4034
|
+
specialFeatureSwitcherOn: e,
|
|
4035
|
+
setSpecialFeatureSwitcher: t,
|
|
4036
|
+
countRange: r,
|
|
4037
|
+
count: n,
|
|
4038
|
+
setCount: i,
|
|
4039
|
+
lossLimit: s,
|
|
4040
|
+
winLimit: o,
|
|
4041
|
+
setLossLimit: a,
|
|
4042
|
+
limitsRange: u,
|
|
4043
|
+
setWinLimit: l,
|
|
4044
|
+
setIsStarted: d
|
|
4045
|
+
} = ye, [v, h] = he.useState(0), [b, m] = he.useState(!1), [y, N] = pe(""), O = dt(() => v ? o : s, [v, o, s]), V = dt(() => v ? l.bind(ye) : a.bind(ye), [v, l, a]);
|
|
3786
4046
|
ze(() => {
|
|
3787
4047
|
const A = O && !u.includes(O);
|
|
3788
4048
|
N(A ? O : 0);
|
|
3789
4049
|
}, [O, o]);
|
|
3790
4050
|
const X = !!n && n > 0;
|
|
3791
|
-
return
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
4051
|
+
return /* @__PURE__ */ g("div", { className: "autoplay-wrap", children: [
|
|
4052
|
+
/* @__PURE__ */ c("h3", { className: "ap-title", children: "Number of spins" }),
|
|
4053
|
+
/* @__PURE__ */ c("div", { className: "autoplay-count", children: r.map((A, L) => /* @__PURE__ */ c(
|
|
4054
|
+
Ur,
|
|
4055
|
+
{
|
|
4056
|
+
value: A,
|
|
4057
|
+
active: n === A,
|
|
4058
|
+
onClick: i.bind(ye, A)
|
|
4059
|
+
},
|
|
4060
|
+
L
|
|
4061
|
+
)) }),
|
|
4062
|
+
/* @__PURE__ */ g("div", { className: "ap-switch-row", children: [
|
|
4063
|
+
/* @__PURE__ */ c("div", { className: "ap-switch-label", children: "Stop on special feature WIN" }),
|
|
4064
|
+
/* @__PURE__ */ c("div", { className: "ap-switch-control", children: /* @__PURE__ */ c(
|
|
4065
|
+
Bt,
|
|
4066
|
+
{
|
|
4067
|
+
checked: e,
|
|
4068
|
+
onChange: (A) => t.call(ye, A)
|
|
4069
|
+
}
|
|
4070
|
+
) })
|
|
4071
|
+
] }),
|
|
4072
|
+
/* @__PURE__ */ g("div", { className: "ap-tabs", children: [
|
|
4073
|
+
/* @__PURE__ */ c(Hn, { active: !v, onClick: () => h(0), children: "Loss limit" }),
|
|
4074
|
+
/* @__PURE__ */ c(Hn, { active: !!v, onClick: () => h(1), children: "Single WIN limit" })
|
|
4075
|
+
] }),
|
|
4076
|
+
/* @__PURE__ */ c("div", { className: "ap-limits-panel", children: /* @__PURE__ */ c("div", { className: "ap-limits-inner", children: /* @__PURE__ */ g("div", { className: "ap-limit-grid", children: [
|
|
4077
|
+
u.map((A, L) => /* @__PURE__ */ g(
|
|
4078
|
+
Ft,
|
|
4079
|
+
{
|
|
4080
|
+
active: O === A,
|
|
4081
|
+
onClick: () => V(A),
|
|
4082
|
+
children: [
|
|
4083
|
+
A,
|
|
4084
|
+
"X BET"
|
|
4085
|
+
]
|
|
4086
|
+
},
|
|
4087
|
+
L
|
|
4088
|
+
)),
|
|
4089
|
+
/* @__PURE__ */ c(Ft, { active: !O, onClick: () => V(null), children: "NO LIMIT" }),
|
|
4090
|
+
b ? /* @__PURE__ */ c(
|
|
4091
|
+
Co,
|
|
4092
|
+
{
|
|
4093
|
+
value: "" + y,
|
|
4094
|
+
inputType: "number",
|
|
4095
|
+
onSubmit: (A) => {
|
|
4096
|
+
const L = A.trim();
|
|
4097
|
+
if (L === "") {
|
|
4098
|
+
m(!1);
|
|
4099
|
+
return;
|
|
4100
|
+
}
|
|
4101
|
+
const B = Number(L);
|
|
4102
|
+
N(B ?? 0), V(B), m(!1);
|
|
4103
|
+
},
|
|
4104
|
+
onCancel: () => {
|
|
4105
|
+
m(!1);
|
|
4106
|
+
}
|
|
4107
|
+
}
|
|
4108
|
+
) : /* @__PURE__ */ c(
|
|
4109
|
+
Ft,
|
|
4110
|
+
{
|
|
4111
|
+
onClick: () => {
|
|
4112
|
+
m(!0);
|
|
4113
|
+
},
|
|
4114
|
+
active: !!O && O === Number(y),
|
|
4115
|
+
children: y ? `${y}X BET` : "CUSTOM"
|
|
4116
|
+
}
|
|
4117
|
+
)
|
|
4118
|
+
] }) }) }),
|
|
4119
|
+
/* @__PURE__ */ c("div", { className: "ap-start-row", children: /* @__PURE__ */ c(
|
|
4120
|
+
"button",
|
|
4121
|
+
{
|
|
4122
|
+
className: `ap-start-btn ${X ? "" : "ap-start-btn--disabled"}`,
|
|
4123
|
+
onClick: d.bind(ye, !0),
|
|
4124
|
+
type: "button",
|
|
4125
|
+
disabled: !X,
|
|
4126
|
+
children: "Start Autoplay"
|
|
4127
|
+
}
|
|
4128
|
+
) })
|
|
4129
|
+
] });
|
|
4130
|
+
}), Gn = ({ onClick: e, label: t, className: r }) => /* @__PURE__ */ g("button", { className: `sp-action ${r}`, type: "button", onClick: e, children: [
|
|
4131
|
+
/* @__PURE__ */ c("span", { className: "sp-action__icon", "aria-hidden": "true" }),
|
|
4132
|
+
/* @__PURE__ */ c("span", { className: "sp-action__label", children: t })
|
|
4133
|
+
] }), qe = ({ onToggle: e, label: t, checked: r = !1 }) => /* @__PURE__ */ g("div", { className: "sp-row", children: [
|
|
4134
|
+
/* @__PURE__ */ c("div", { className: "sp-switch", children: /* @__PURE__ */ c(Bt, { checked: r, onChange: () => e(!r) }) }),
|
|
4135
|
+
/* @__PURE__ */ c("div", { className: "sp-label", children: t })
|
|
4136
|
+
] }), Vo = F(() => {
|
|
4137
|
+
const {
|
|
4138
|
+
introSkip: e,
|
|
4139
|
+
spaceToSkip: t,
|
|
4140
|
+
musicOn: r,
|
|
4141
|
+
soundsOn: n,
|
|
4142
|
+
spaceToSpin: i,
|
|
4143
|
+
setSpaceToSpin: s,
|
|
4144
|
+
setIntroSkip: o,
|
|
4145
|
+
setSpaceToSkip: a,
|
|
4146
|
+
setSoundsOn: u,
|
|
4147
|
+
setMusicOn: l
|
|
4148
|
+
} = ne, { open: d } = T;
|
|
4149
|
+
return /* @__PURE__ */ g("div", { className: "sp-wrap", children: [
|
|
4150
|
+
/* @__PURE__ */ g("div", { className: "sp-actions", children: [
|
|
4151
|
+
/* @__PURE__ */ c(
|
|
4152
|
+
Gn,
|
|
4153
|
+
{
|
|
4154
|
+
onClick: d.bind(T, P.history),
|
|
4155
|
+
className: "sp-action--history",
|
|
4156
|
+
label: "History"
|
|
4157
|
+
}
|
|
4158
|
+
),
|
|
4159
|
+
/* @__PURE__ */ c(
|
|
4160
|
+
Gn,
|
|
4161
|
+
{
|
|
4162
|
+
onClick: T.open.bind(T, P.payTable),
|
|
4163
|
+
className: "sp-action--paytable",
|
|
4164
|
+
label: "Paytable"
|
|
4165
|
+
}
|
|
4166
|
+
)
|
|
4167
|
+
] }),
|
|
4168
|
+
/* @__PURE__ */ c("h3", { className: "sp-section-title", children: "Audio" }),
|
|
4169
|
+
/* @__PURE__ */ g("div", { className: "sp-rows", children: [
|
|
4170
|
+
/* @__PURE__ */ c(qe, { onToggle: l.bind(ne), checked: r, label: "Music" }),
|
|
4171
|
+
/* @__PURE__ */ c(
|
|
4172
|
+
qe,
|
|
4173
|
+
{
|
|
4174
|
+
onToggle: u.bind(ne),
|
|
4175
|
+
checked: n,
|
|
4176
|
+
label: "Sounds"
|
|
4177
|
+
}
|
|
4178
|
+
)
|
|
4179
|
+
] }),
|
|
4180
|
+
/* @__PURE__ */ c("h3", { className: "sp-section-title", children: "Game launch" }),
|
|
4181
|
+
/* @__PURE__ */ c("div", { className: "sp-rows", children: /* @__PURE__ */ c(
|
|
4182
|
+
qe,
|
|
4183
|
+
{
|
|
4184
|
+
onToggle: o.bind(ne),
|
|
4185
|
+
checked: e,
|
|
4186
|
+
label: "Skip Intro"
|
|
4187
|
+
}
|
|
4188
|
+
) }),
|
|
4189
|
+
/* @__PURE__ */ c("h3", { className: "sp-section-title", children: "Keyboard" }),
|
|
4190
|
+
/* @__PURE__ */ g("div", { className: "sp-rows", children: [
|
|
4191
|
+
/* @__PURE__ */ c(
|
|
4192
|
+
qe,
|
|
4193
|
+
{
|
|
4194
|
+
onToggle: s.bind(ne),
|
|
4195
|
+
checked: i,
|
|
4196
|
+
label: "Spacebar to Spin"
|
|
4197
|
+
}
|
|
4198
|
+
),
|
|
4199
|
+
/* @__PURE__ */ c(
|
|
4200
|
+
qe,
|
|
4201
|
+
{
|
|
4202
|
+
onToggle: a.bind(ne),
|
|
4203
|
+
checked: t,
|
|
4204
|
+
label: "Spacebar to Skip"
|
|
4205
|
+
}
|
|
4206
|
+
)
|
|
4207
|
+
] })
|
|
4208
|
+
] });
|
|
3807
4209
|
}), Lo = ({ date: e, currencyCode: t, betAmount: r, winAmount: n }) => {
|
|
3808
4210
|
const [i, s] = pe(!1);
|
|
3809
|
-
return g("div", { className: `history-item ${i ? "active" : ""}`, role: "row", children: [
|
|
3810
|
-
|
|
4211
|
+
return /* @__PURE__ */ g("div", { className: `history-item ${i ? "active" : ""}`, role: "row", children: [
|
|
4212
|
+
/* @__PURE__ */ c("span", { className: "date-section", children: e }),
|
|
4213
|
+
/* @__PURE__ */ g("span", { className: "bet-section", children: [
|
|
4214
|
+
r,
|
|
4215
|
+
/* @__PURE__ */ c("span", { className: "currency", children: t })
|
|
4216
|
+
] }),
|
|
4217
|
+
/* @__PURE__ */ g("span", { className: "win-section", children: [
|
|
4218
|
+
n,
|
|
4219
|
+
/* @__PURE__ */ g("span", { className: "currency", children: [
|
|
4220
|
+
" ",
|
|
4221
|
+
t
|
|
4222
|
+
] })
|
|
4223
|
+
] }),
|
|
4224
|
+
/* @__PURE__ */ c(
|
|
4225
|
+
"div",
|
|
4226
|
+
{
|
|
4227
|
+
className: `vector ${i ? "up" : "down"}`,
|
|
4228
|
+
"aria-hidden": "true",
|
|
4229
|
+
onClick: () => s(!i)
|
|
4230
|
+
}
|
|
4231
|
+
),
|
|
4232
|
+
i && /* @__PURE__ */ g("div", { className: "additional-info", children: [
|
|
4233
|
+
/* @__PURE__ */ g("button", { className: "additional-button replay", children: [
|
|
4234
|
+
/* @__PURE__ */ c("div", { className: "replay-icon" }),
|
|
4235
|
+
"REPLAY"
|
|
4236
|
+
] }),
|
|
4237
|
+
/* @__PURE__ */ c("button", { className: "additional-button", children: "LINK" })
|
|
4238
|
+
] })
|
|
4239
|
+
] });
|
|
4240
|
+
}, xo = F(() => {
|
|
3811
4241
|
const { data: e } = _o;
|
|
3812
|
-
return g("div", { className: "history-wrap", role: "list", "aria-label": "History list", children: [
|
|
3813
|
-
|
|
4242
|
+
return /* @__PURE__ */ g("div", { className: "history-wrap", role: "list", "aria-label": "History list", children: [
|
|
4243
|
+
/* @__PURE__ */ g("div", { className: "history-item history-item--head", role: "row", children: [
|
|
4244
|
+
/* @__PURE__ */ c("span", { className: "date-section", children: "Date" }),
|
|
4245
|
+
/* @__PURE__ */ c("span", { className: "bet-section", children: "Bet" }),
|
|
4246
|
+
/* @__PURE__ */ c("span", { className: "win-section", children: "Win" })
|
|
4247
|
+
] }),
|
|
4248
|
+
e.map((t, r) => /* @__PURE__ */ c(
|
|
4249
|
+
Lo,
|
|
4250
|
+
{
|
|
4251
|
+
date: t.date,
|
|
4252
|
+
betAmount: t.betAmount,
|
|
4253
|
+
winAmount: t.winAmount,
|
|
4254
|
+
currencyCode: t.currencyCode,
|
|
4255
|
+
id: "aa"
|
|
4256
|
+
},
|
|
4257
|
+
r
|
|
4258
|
+
))
|
|
4259
|
+
] });
|
|
4260
|
+
}), Bo = F(({ item: e, type: t, onBuy: r }) => {
|
|
3814
4261
|
const { betAmount: n } = ae, { activeAnteBet: i, setActiveAnteBet: s } = Ne, o = e.title.split(`
|
|
3815
4262
|
`), [a, u] = pe(!1), [l, d] = pe(84), [v, h] = pe(0), [b, m] = pe(!1), y = Ge(null);
|
|
3816
4263
|
$r(() => {
|
|
3817
4264
|
const O = y.current;
|
|
3818
|
-
if (!O)
|
|
3819
|
-
return;
|
|
4265
|
+
if (!O) return;
|
|
3820
4266
|
const V = () => {
|
|
3821
4267
|
const A = getComputedStyle(O), L = A.getPropertyValue("--max-description-height").trim();
|
|
3822
|
-
let
|
|
4268
|
+
let B = 84;
|
|
3823
4269
|
if (L) {
|
|
3824
|
-
const
|
|
3825
|
-
|
|
4270
|
+
const xe = L.match(/^(-?\d+(\.\d+)?)(px)?$/);
|
|
4271
|
+
xe && (B = Number(xe[1]));
|
|
3826
4272
|
} else {
|
|
3827
|
-
const
|
|
3828
|
-
|
|
4273
|
+
const xe = A.getPropertyValue("max-height").trim();
|
|
4274
|
+
xe && xe.endsWith("px") && (B = Number(xe.replace("px", "")));
|
|
3829
4275
|
}
|
|
3830
4276
|
const Fe = O.scrollHeight;
|
|
3831
|
-
d(
|
|
4277
|
+
d(B), h(Fe), m(Fe > B + 1);
|
|
3832
4278
|
};
|
|
3833
4279
|
V();
|
|
3834
4280
|
const X = new ResizeObserver(V);
|
|
@@ -3837,26 +4283,97 @@ const Eo = F(() => {
|
|
|
3837
4283
|
};
|
|
3838
4284
|
}, [e.description]);
|
|
3839
4285
|
const N = a ? Math.max(v, l) : l;
|
|
3840
|
-
return g("div", { className: "sf-card", role: "group", "aria-label": o.join(" "), children: [
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
4286
|
+
return /* @__PURE__ */ g("div", { className: "sf-card", role: "group", "aria-label": o.join(" "), children: [
|
|
4287
|
+
/* @__PURE__ */ g("div", { className: "sf-card__title", children: [
|
|
4288
|
+
e.title,
|
|
4289
|
+
e.description && /* @__PURE__ */ c(
|
|
4290
|
+
"div",
|
|
4291
|
+
{
|
|
4292
|
+
ref: y,
|
|
4293
|
+
className: `sf-card__description ${a ? "open" : ""} ${b ? "expandable" : ""}`,
|
|
4294
|
+
style: { maxHeight: `${N}px` },
|
|
4295
|
+
onClick: () => {
|
|
4296
|
+
b && u((O) => !O);
|
|
4297
|
+
},
|
|
4298
|
+
children: /* @__PURE__ */ c("div", { children: e.description })
|
|
4299
|
+
}
|
|
4300
|
+
)
|
|
4301
|
+
] }),
|
|
4302
|
+
/* @__PURE__ */ c("div", { className: "sf-card__content", children: /* @__PURE__ */ c("div", { className: `sf-card__image-wrap ${a ? "hidden" : ""}`, children: e.imagePath ? /* @__PURE__ */ c("img", { src: e.imagePath, alt: o[0] }) : /* @__PURE__ */ c("div", { className: "sf-card__image-placeholder" }) }) }),
|
|
4303
|
+
/* @__PURE__ */ g("div", { className: `sf-card__bottom ${t}`, children: [
|
|
4304
|
+
/* @__PURE__ */ g("div", { className: "sf-card__price", children: [
|
|
4305
|
+
e.costMultiplier * n,
|
|
4306
|
+
" ",
|
|
4307
|
+
ae.displayCurrency
|
|
4308
|
+
] }),
|
|
4309
|
+
t === "ante" ? /* @__PURE__ */ c("div", { className: "sf-card__toggle", children: /* @__PURE__ */ c(
|
|
4310
|
+
Bt,
|
|
4311
|
+
{
|
|
4312
|
+
checked: i === e,
|
|
4313
|
+
onChange: (O) => s.call(Ne, O ? e.id : null)
|
|
4314
|
+
}
|
|
4315
|
+
) }) : /* @__PURE__ */ c("button", { className: "sf-buy-btn", type: "button", onClick: () => r && r(e.id), children: "BUY" })
|
|
4316
|
+
] })
|
|
4317
|
+
] });
|
|
4318
|
+
}), Kt = ({
|
|
4319
|
+
features: e,
|
|
4320
|
+
type: t,
|
|
4321
|
+
title: r,
|
|
4322
|
+
onBuy: n
|
|
4323
|
+
}) => /* @__PURE__ */ g(sn, { children: [
|
|
4324
|
+
/* @__PURE__ */ c("h2", { className: "sf-section-title", children: r }),
|
|
4325
|
+
/* @__PURE__ */ c("div", { className: "sf-grid", children: e.map((i, s) => /* @__PURE__ */ c(Bo, { item: i, type: t, onBuy: n }, s)) })
|
|
4326
|
+
] }), Ro = () => {
|
|
4327
|
+
const {
|
|
4328
|
+
anteBets: e,
|
|
4329
|
+
inReelFeatures: t,
|
|
4330
|
+
bonusFeatures: r,
|
|
4331
|
+
buyHandler: n
|
|
4332
|
+
} = Ne;
|
|
4333
|
+
return /* @__PURE__ */ g("div", { className: "sf-wrap", children: [
|
|
4334
|
+
e.length ? /* @__PURE__ */ c(
|
|
4335
|
+
Kt,
|
|
4336
|
+
{
|
|
4337
|
+
features: e,
|
|
4338
|
+
type: $t.ante,
|
|
4339
|
+
title: "Ante Bets"
|
|
4340
|
+
},
|
|
4341
|
+
0
|
|
4342
|
+
) : null,
|
|
4343
|
+
t.length ? /* @__PURE__ */ c(
|
|
4344
|
+
Kt,
|
|
4345
|
+
{
|
|
4346
|
+
features: t,
|
|
4347
|
+
type: $t.buy,
|
|
4348
|
+
title: "Reel Features",
|
|
4349
|
+
onBuy: n.bind(Ne)
|
|
4350
|
+
},
|
|
4351
|
+
1
|
|
4352
|
+
) : null,
|
|
4353
|
+
r.length ? /* @__PURE__ */ c(
|
|
4354
|
+
Kt,
|
|
4355
|
+
{
|
|
4356
|
+
features: r,
|
|
4357
|
+
type: $t.buy,
|
|
4358
|
+
title: "Bonus",
|
|
4359
|
+
onBuy: n.bind(Ne)
|
|
4360
|
+
},
|
|
4361
|
+
2
|
|
4362
|
+
) : null
|
|
4363
|
+
] });
|
|
3846
4364
|
}, To = F(({ payTableComponent: e }) => {
|
|
3847
4365
|
const { activePopup: t } = T;
|
|
3848
|
-
if (!t)
|
|
3849
|
-
return null;
|
|
4366
|
+
if (!t) return null;
|
|
3850
4367
|
const r = dt(() => {
|
|
3851
4368
|
switch (t) {
|
|
3852
4369
|
case P.bet:
|
|
3853
|
-
return
|
|
4370
|
+
return wo;
|
|
3854
4371
|
case P.autoplay:
|
|
3855
4372
|
return Do;
|
|
3856
4373
|
case P.settings:
|
|
3857
4374
|
return Vo;
|
|
3858
4375
|
case P.history:
|
|
3859
|
-
return
|
|
4376
|
+
return xo;
|
|
3860
4377
|
case P.buyBonus:
|
|
3861
4378
|
return Ro;
|
|
3862
4379
|
case P.payTable:
|
|
@@ -3865,34 +4382,86 @@ const Eo = F(() => {
|
|
|
3865
4382
|
return null;
|
|
3866
4383
|
}
|
|
3867
4384
|
}, [t]);
|
|
3868
|
-
return r ? c(r, {}) : null;
|
|
3869
|
-
}), Po = ({ configs: e, text: t, onClick: r }) =>
|
|
3870
|
-
"
|
|
3871
|
-
|
|
3872
|
-
|
|
4385
|
+
return r ? /* @__PURE__ */ c(r, {}) : null;
|
|
4386
|
+
}), Po = ({ configs: e, text: t, onClick: r }) => /* @__PURE__ */ c(
|
|
4387
|
+
"button",
|
|
4388
|
+
{
|
|
4389
|
+
type: "button",
|
|
4390
|
+
className: "additional-btn",
|
|
4391
|
+
style: {
|
|
4392
|
+
"--btn-bg": e?.background ?? "transparent",
|
|
4393
|
+
"--btn-color": e?.color ?? "inherit"
|
|
4394
|
+
},
|
|
4395
|
+
onClick: typeof r == "function" ? r : void 0,
|
|
4396
|
+
children: t
|
|
4397
|
+
}
|
|
4398
|
+
), jo = F(() => {
|
|
3873
4399
|
const { activeDialog: e } = ft;
|
|
3874
|
-
return e ? g("div", { className: "dialogs-wrap", "aria-live": "polite", children: [
|
|
4400
|
+
return e ? /* @__PURE__ */ g("div", { className: "dialogs-wrap", "aria-live": "polite", children: [
|
|
4401
|
+
/* @__PURE__ */ c("span", { className: "title", children: e?.title }),
|
|
4402
|
+
e?.imagePath && /* @__PURE__ */ c(
|
|
4403
|
+
"img",
|
|
4404
|
+
{
|
|
4405
|
+
className: "dialog-image",
|
|
4406
|
+
src: e.imagePath,
|
|
4407
|
+
alt: e.title ?? "dialog image"
|
|
4408
|
+
}
|
|
4409
|
+
),
|
|
4410
|
+
/* @__PURE__ */ c("span", { className: "message", children: e?.message }),
|
|
4411
|
+
e.toggle && /* @__PURE__ */ c(
|
|
4412
|
+
Bt,
|
|
4413
|
+
{
|
|
4414
|
+
checked: e.toggle.value,
|
|
4415
|
+
onChange: () => e.toggle?.onClick()
|
|
4416
|
+
}
|
|
4417
|
+
),
|
|
4418
|
+
/* @__PURE__ */ c("div", { className: "additional-btns", children: e?.buttons?.map((t, r) => /* @__PURE__ */ c(Po, { configs: t.configs, text: t.text, onClick: t.onClick }, r)) })
|
|
4419
|
+
] }) : null;
|
|
3875
4420
|
}), Mo = F(({ payTableComponent: e }) => {
|
|
3876
4421
|
const t = T.activePopup, r = ft.activeDialog;
|
|
3877
|
-
if (!t && !r)
|
|
3878
|
-
return null;
|
|
4422
|
+
if (!t && !r) return null;
|
|
3879
4423
|
const n = (s) => {
|
|
3880
4424
|
s.target === s.currentTarget && (T.close(), ft.close());
|
|
3881
4425
|
}, i = () => {
|
|
3882
4426
|
T.close(), ft.close();
|
|
3883
4427
|
};
|
|
3884
|
-
return
|
|
4428
|
+
return /* @__PURE__ */ g(
|
|
4429
|
+
"div",
|
|
4430
|
+
{
|
|
4431
|
+
className: `overlay ${r ? "dialog" : ""}`,
|
|
4432
|
+
onClick: n,
|
|
4433
|
+
role: "presentation",
|
|
4434
|
+
children: [
|
|
4435
|
+
typeof t == "string" && /* @__PURE__ */ c("span", { className: "popup-title", children: t.toUpperCase() }),
|
|
4436
|
+
/* @__PURE__ */ g("div", { className: "overlay-content", role: "dialog", "aria-modal": "true", children: [
|
|
4437
|
+
r && /* @__PURE__ */ c(jo, {}),
|
|
4438
|
+
!r && t && /* @__PURE__ */ c(To, { payTableComponent: e })
|
|
4439
|
+
] }),
|
|
4440
|
+
!r && /* @__PURE__ */ c("div", { className: "overlay-close", "aria-label": "Close", onClick: i, children: /* @__PURE__ */ c("img", { src: Ao, alt: "Close" }) }),
|
|
4441
|
+
t === P.buyBonus && /* @__PURE__ */ c(So, {})
|
|
4442
|
+
]
|
|
4443
|
+
}
|
|
4444
|
+
);
|
|
3885
4445
|
});
|
|
3886
4446
|
function Io({ payTableComponent: e }) {
|
|
3887
|
-
return
|
|
3888
|
-
|
|
3889
|
-
|
|
4447
|
+
return /* @__PURE__ */ g("div", { className: "app", children: [
|
|
4448
|
+
/* @__PURE__ */ g("div", { className: "game-container", children: [
|
|
4449
|
+
/* @__PURE__ */ c(yo, {}),
|
|
4450
|
+
/* @__PURE__ */ c(No, {}),
|
|
4451
|
+
/* @__PURE__ */ c(go, {})
|
|
4452
|
+
] }),
|
|
4453
|
+
/* @__PURE__ */ c(Mo, { payTableComponent: e })
|
|
4454
|
+
] });
|
|
4455
|
+
}
|
|
4456
|
+
const ko = () => /* @__PURE__ */ c(sn, {});
|
|
3890
4457
|
function qo(e, t = ko) {
|
|
3891
4458
|
if (!e) {
|
|
3892
4459
|
console.error("element not found");
|
|
3893
4460
|
return;
|
|
3894
4461
|
}
|
|
3895
|
-
Fr(e).render(
|
|
4462
|
+
Fr(e).render(
|
|
4463
|
+
/* @__PURE__ */ c(he.StrictMode, { children: /* @__PURE__ */ c(Io, { payTableComponent: t }) })
|
|
4464
|
+
);
|
|
3896
4465
|
}
|
|
3897
4466
|
export {
|
|
3898
4467
|
at as LOCAL_STORAGE_ITEM_NAMES,
|