@sticky-studio-npm/ui-core 0.1.76 → 0.1.78
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 +229 -229
- package/dist/ui-bundle.umd.js +3 -3
- package/package.json +1 -1
package/dist/ui-bundle.es.js
CHANGED
|
@@ -3283,6 +3283,153 @@ const io = ({
|
|
|
3283
3283
|
className: r
|
|
3284
3284
|
}) => /* @__PURE__ */ c("button", { className: `${r} ${t ? "disabled" : ""}`, onClick: e });
|
|
3285
3285
|
class oo {
|
|
3286
|
+
isRunning = !1;
|
|
3287
|
+
isDisabled = !1;
|
|
3288
|
+
isSlamStop = !1;
|
|
3289
|
+
isUIVisible = !1;
|
|
3290
|
+
isAutoPlayDisabled = !1;
|
|
3291
|
+
isBuyBonusDisabled = !1;
|
|
3292
|
+
isBetAmountLabelsDisabled = !1;
|
|
3293
|
+
handler;
|
|
3294
|
+
handlerSet = !1;
|
|
3295
|
+
constructor() {
|
|
3296
|
+
pn(this, {
|
|
3297
|
+
isRunning: S,
|
|
3298
|
+
isDisabled: S,
|
|
3299
|
+
isSlamStop: S,
|
|
3300
|
+
isUIVisible: S,
|
|
3301
|
+
isAutoPlayDisabled: S,
|
|
3302
|
+
isBuyBonusDisabled: S,
|
|
3303
|
+
isBetAmountLabelsDisabled: S,
|
|
3304
|
+
setIsSpinRunning: C,
|
|
3305
|
+
setIsSpinDisabled: C,
|
|
3306
|
+
setIsSlamStop: C,
|
|
3307
|
+
setHandlerOnce: C,
|
|
3308
|
+
setIsUIVisible: C,
|
|
3309
|
+
setIsAutoplayDisabled: C,
|
|
3310
|
+
setIsBuyBonusDisabled: C,
|
|
3311
|
+
setIsBetAmountLabelsDisabled: C,
|
|
3312
|
+
clickHandler: C
|
|
3313
|
+
});
|
|
3314
|
+
}
|
|
3315
|
+
setHandlerOnce(t) {
|
|
3316
|
+
if (this.handlerSet) {
|
|
3317
|
+
console.error("[SpinButton] handler already set");
|
|
3318
|
+
return;
|
|
3319
|
+
}
|
|
3320
|
+
this.handler = t, this.handlerSet = !0;
|
|
3321
|
+
}
|
|
3322
|
+
setIsUIVisible(t) {
|
|
3323
|
+
this.isUIVisible = t;
|
|
3324
|
+
}
|
|
3325
|
+
setIsAutoplayDisabled(t) {
|
|
3326
|
+
this.isAutoPlayDisabled = t;
|
|
3327
|
+
}
|
|
3328
|
+
setIsBetAmountLabelsDisabled(t) {
|
|
3329
|
+
this.isBetAmountLabelsDisabled = t;
|
|
3330
|
+
}
|
|
3331
|
+
setIsSpinDisabled(t) {
|
|
3332
|
+
this.isDisabled = t;
|
|
3333
|
+
}
|
|
3334
|
+
setIsBuyBonusDisabled(t) {
|
|
3335
|
+
this.isBuyBonusDisabled = t;
|
|
3336
|
+
}
|
|
3337
|
+
clickHandler() {
|
|
3338
|
+
this.handler?.();
|
|
3339
|
+
}
|
|
3340
|
+
setIsSpinRunning(t) {
|
|
3341
|
+
this.isRunning = t;
|
|
3342
|
+
}
|
|
3343
|
+
setIsSlamStop(t) {
|
|
3344
|
+
this.isSlamStop = t;
|
|
3345
|
+
}
|
|
3346
|
+
}
|
|
3347
|
+
const Nt = new oo();
|
|
3348
|
+
class ao {
|
|
3349
|
+
anteBets = [
|
|
3350
|
+
{
|
|
3351
|
+
id: 0,
|
|
3352
|
+
title: "Bonus 1 bonus bonus bonus",
|
|
3353
|
+
description: "Players choose between differeqeqw wqeqweqw qweqw asdas asdas asdsa sad asd as d asdasda asda sdas das asde qweq qweent alleys, risking modifiers that can escalate the tension or offer valuable bonuses, culminating in a thrilling escape or a betrayal spin.",
|
|
3354
|
+
imagePath: "/img_2.png",
|
|
3355
|
+
costMultiplier: 50
|
|
3356
|
+
},
|
|
3357
|
+
{
|
|
3358
|
+
id: 1,
|
|
3359
|
+
title: "Bonus 1 bonus bonus bonus",
|
|
3360
|
+
description: "Players choose between differeqeqw wqeqweqw qweqw asdas asdas asdsa sad asd as d asdasda asda sdas das asde qweq qweent alleys, risking modifiers that can escalate the tension or offer valuable bonuses, culminating in a thrilling escape or a betrayal spin.",
|
|
3361
|
+
imagePath: "/img_2.png",
|
|
3362
|
+
costMultiplier: 50
|
|
3363
|
+
}
|
|
3364
|
+
];
|
|
3365
|
+
inReelFeatures = [];
|
|
3366
|
+
bonusFeatures = [];
|
|
3367
|
+
activeAnteBet = null;
|
|
3368
|
+
activeBonusFeature = null;
|
|
3369
|
+
activeInReelFeature = null;
|
|
3370
|
+
handler;
|
|
3371
|
+
handlerSet = !1;
|
|
3372
|
+
constructor() {
|
|
3373
|
+
pn(this, {
|
|
3374
|
+
anteBets: S,
|
|
3375
|
+
inReelFeatures: S,
|
|
3376
|
+
bonusFeatures: S,
|
|
3377
|
+
activeAnteBet: S,
|
|
3378
|
+
activeBonusFeature: S,
|
|
3379
|
+
activeInReelFeature: S,
|
|
3380
|
+
isActiveBonus: Oe,
|
|
3381
|
+
isActiveInReelFeature: Oe,
|
|
3382
|
+
isActiveAnteBet: Oe,
|
|
3383
|
+
setAnteBets: C,
|
|
3384
|
+
setActiveAnteBet: C,
|
|
3385
|
+
setActiveBonusFeature: C,
|
|
3386
|
+
setActiveInReelFeature: C,
|
|
3387
|
+
setInReelFeatures: C,
|
|
3388
|
+
setBonusFeatures: C,
|
|
3389
|
+
setHandlerOnce: C,
|
|
3390
|
+
buyHandler: C
|
|
3391
|
+
});
|
|
3392
|
+
}
|
|
3393
|
+
setAnteBets(t) {
|
|
3394
|
+
this.anteBets = t;
|
|
3395
|
+
}
|
|
3396
|
+
setActiveAnteBet(t) {
|
|
3397
|
+
t !== null ? this.activeAnteBet = this.anteBets.find((r) => r.id === t) || null : this.activeAnteBet = null;
|
|
3398
|
+
}
|
|
3399
|
+
setActiveBonusFeature(t) {
|
|
3400
|
+
this.activeBonusFeature = t;
|
|
3401
|
+
}
|
|
3402
|
+
setActiveInReelFeature(t) {
|
|
3403
|
+
this.activeInReelFeature = t;
|
|
3404
|
+
}
|
|
3405
|
+
setInReelFeatures(t) {
|
|
3406
|
+
this.inReelFeatures = t;
|
|
3407
|
+
}
|
|
3408
|
+
setBonusFeatures(t) {
|
|
3409
|
+
this.bonusFeatures = t;
|
|
3410
|
+
}
|
|
3411
|
+
get isActiveBonus() {
|
|
3412
|
+
return !!this.activeBonusFeature;
|
|
3413
|
+
}
|
|
3414
|
+
get isActiveInReelFeature() {
|
|
3415
|
+
return !!this.activeInReelFeature;
|
|
3416
|
+
}
|
|
3417
|
+
get isActiveAnteBet() {
|
|
3418
|
+
return !!this.activeAnteBet;
|
|
3419
|
+
}
|
|
3420
|
+
setHandlerOnce(t) {
|
|
3421
|
+
if (this.handlerSet) {
|
|
3422
|
+
console.error("[BuyBonus] handler already set");
|
|
3423
|
+
return;
|
|
3424
|
+
}
|
|
3425
|
+
this.handler = t, this.handlerSet = !0;
|
|
3426
|
+
}
|
|
3427
|
+
buyHandler(t) {
|
|
3428
|
+
this.handler?.(t);
|
|
3429
|
+
}
|
|
3430
|
+
}
|
|
3431
|
+
const Ne = new ao();
|
|
3432
|
+
class uo {
|
|
3286
3433
|
activePopup = null;
|
|
3287
3434
|
constructor() {
|
|
3288
3435
|
Ue(this);
|
|
@@ -3297,14 +3444,14 @@ class oo {
|
|
|
3297
3444
|
return this.activePopup !== null;
|
|
3298
3445
|
}
|
|
3299
3446
|
}
|
|
3300
|
-
const T = new
|
|
3447
|
+
const T = new uo(), P = {
|
|
3301
3448
|
bet: "bet",
|
|
3302
3449
|
autoplay: "autoplay",
|
|
3303
3450
|
settings: "settings",
|
|
3304
3451
|
history: "history",
|
|
3305
3452
|
buyBonus: "buy_bonus",
|
|
3306
3453
|
payTable: "pay_table"
|
|
3307
|
-
},
|
|
3454
|
+
}, co = {
|
|
3308
3455
|
insufficientFunds: "insufficient funds"
|
|
3309
3456
|
}, Kn = {
|
|
3310
3457
|
primary: {
|
|
@@ -3315,9 +3462,9 @@ const T = new oo(), P = {
|
|
|
3315
3462
|
background: "#1C1B1E",
|
|
3316
3463
|
color: "#FFFFFF"
|
|
3317
3464
|
}
|
|
3318
|
-
},
|
|
3465
|
+
}, lo = [
|
|
3319
3466
|
{
|
|
3320
|
-
name:
|
|
3467
|
+
name: co.insufficientFunds,
|
|
3321
3468
|
title: "Insufficient Funds",
|
|
3322
3469
|
imagePath: "/img_1.png",
|
|
3323
3470
|
message: "Your balance is low, please make a deposit",
|
|
@@ -3340,8 +3487,8 @@ const T = new oo(), P = {
|
|
|
3340
3487
|
SOUND_ON: "SOUND_ON",
|
|
3341
3488
|
MUSIC_ON: "MUSIC_ON"
|
|
3342
3489
|
};
|
|
3343
|
-
class
|
|
3344
|
-
dialogs =
|
|
3490
|
+
class fo {
|
|
3491
|
+
dialogs = lo;
|
|
3345
3492
|
activeDialog = null;
|
|
3346
3493
|
constructor() {
|
|
3347
3494
|
Ue(this);
|
|
@@ -3360,66 +3507,42 @@ class co {
|
|
|
3360
3507
|
return this.activeDialog !== null;
|
|
3361
3508
|
}
|
|
3362
3509
|
}
|
|
3363
|
-
const ft = new
|
|
3364
|
-
class
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3510
|
+
const ft = new fo();
|
|
3511
|
+
class po {
|
|
3512
|
+
introSkip = JSON.parse(localStorage.getItem(at.SKIP_INTRO)) || !1;
|
|
3513
|
+
spaceToSpin = !1;
|
|
3514
|
+
spaceToSkip = !1;
|
|
3515
|
+
isTurbo = !1;
|
|
3369
3516
|
volume = 50;
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
20,
|
|
3373
|
-
50,
|
|
3374
|
-
100,
|
|
3375
|
-
500,
|
|
3376
|
-
1e3,
|
|
3377
|
-
5e3,
|
|
3378
|
-
1e4,
|
|
3379
|
-
25e3,
|
|
3380
|
-
5e5,
|
|
3381
|
-
65e3,
|
|
3382
|
-
8e4,
|
|
3383
|
-
1e5,
|
|
3384
|
-
15e4,
|
|
3385
|
-
2e5
|
|
3386
|
-
];
|
|
3387
|
-
maxBetAmount = this.betAmountRange[0];
|
|
3388
|
-
minBetAmount = this.betAmountRange[this.betAmountRange.length - 1];
|
|
3389
|
-
displayCurrency = "FUN";
|
|
3517
|
+
musicOn = !0;
|
|
3518
|
+
soundsOn = !0;
|
|
3390
3519
|
constructor() {
|
|
3391
3520
|
Ue(this);
|
|
3392
3521
|
}
|
|
3393
|
-
|
|
3394
|
-
this.
|
|
3395
|
-
}
|
|
3396
|
-
setNextBetAmount() {
|
|
3397
|
-
if (this.betIndex === this.betAmountRange.length - 1)
|
|
3398
|
-
return console.error("Bet Index must be less than BetStore.betAmountRange.length");
|
|
3399
|
-
this.betIndex += 1, this.betAmount = this.betAmountRange[this.betIndex];
|
|
3522
|
+
setMusicOn(t) {
|
|
3523
|
+
this.musicOn = t, localStorage.setItem(at.MUSIC_ON, t.toString());
|
|
3400
3524
|
}
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
this.betIndex -= 1, this.betAmount = this.betAmountRange[this.betIndex];
|
|
3525
|
+
setVolume(t) {
|
|
3526
|
+
this.volume = t;
|
|
3404
3527
|
}
|
|
3405
|
-
|
|
3406
|
-
this.
|
|
3528
|
+
setIsTurbo(t) {
|
|
3529
|
+
this.isTurbo = t;
|
|
3407
3530
|
}
|
|
3408
|
-
|
|
3409
|
-
this.
|
|
3531
|
+
setSoundsOn(t) {
|
|
3532
|
+
this.soundsOn = t, localStorage.setItem(at.SOUND_ON, t.toString());
|
|
3410
3533
|
}
|
|
3411
|
-
|
|
3412
|
-
this.
|
|
3534
|
+
setIntroSkip(t) {
|
|
3535
|
+
this.introSkip = t, localStorage.setItem(at.SKIP_INTRO, t.toString());
|
|
3413
3536
|
}
|
|
3414
|
-
|
|
3415
|
-
this.
|
|
3537
|
+
setSpaceToSpin(t) {
|
|
3538
|
+
this.spaceToSpin = t;
|
|
3416
3539
|
}
|
|
3417
|
-
|
|
3418
|
-
this.
|
|
3540
|
+
setSpaceToSkip(t) {
|
|
3541
|
+
this.spaceToSkip = t;
|
|
3419
3542
|
}
|
|
3420
3543
|
}
|
|
3421
|
-
const
|
|
3422
|
-
class
|
|
3544
|
+
const ne = new po();
|
|
3545
|
+
class vo {
|
|
3423
3546
|
countRange = [10, 25, 50, 70, 100, 500, 1e3];
|
|
3424
3547
|
limitsRange = [10, 20, 50];
|
|
3425
3548
|
count = 0;
|
|
@@ -3464,126 +3587,66 @@ class fo {
|
|
|
3464
3587
|
this.currentWinLimit = t;
|
|
3465
3588
|
}
|
|
3466
3589
|
}
|
|
3467
|
-
const ye = new
|
|
3468
|
-
class
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3590
|
+
const ye = new vo();
|
|
3591
|
+
class ho {
|
|
3592
|
+
balance = 1e4;
|
|
3593
|
+
betAmount = 10;
|
|
3594
|
+
betIndex = 0;
|
|
3595
|
+
lastWin = 0;
|
|
3596
|
+
volume = 50;
|
|
3597
|
+
betAmountRange = [
|
|
3598
|
+
10,
|
|
3599
|
+
20,
|
|
3600
|
+
50,
|
|
3601
|
+
100,
|
|
3602
|
+
500,
|
|
3603
|
+
1e3,
|
|
3604
|
+
5e3,
|
|
3605
|
+
1e4,
|
|
3606
|
+
25e3,
|
|
3607
|
+
5e5,
|
|
3608
|
+
65e3,
|
|
3609
|
+
8e4,
|
|
3610
|
+
1e5,
|
|
3611
|
+
15e4,
|
|
3612
|
+
2e5
|
|
3484
3613
|
];
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
activeBonusFeature = null;
|
|
3489
|
-
activeInReelFeature = null;
|
|
3490
|
-
handler;
|
|
3491
|
-
handlerSet = !1;
|
|
3614
|
+
maxBetAmount = this.betAmountRange[0];
|
|
3615
|
+
minBetAmount = this.betAmountRange[this.betAmountRange.length - 1];
|
|
3616
|
+
displayCurrency = "FUN";
|
|
3492
3617
|
constructor() {
|
|
3493
|
-
|
|
3494
|
-
anteBets: S,
|
|
3495
|
-
inReelFeatures: S,
|
|
3496
|
-
bonusFeatures: S,
|
|
3497
|
-
activeAnteBet: S,
|
|
3498
|
-
activeBonusFeature: S,
|
|
3499
|
-
activeInReelFeature: S,
|
|
3500
|
-
isActiveBonus: Oe,
|
|
3501
|
-
isActiveInReelFeature: Oe,
|
|
3502
|
-
isActiveAnteBet: Oe,
|
|
3503
|
-
setAnteBets: C,
|
|
3504
|
-
setActiveAnteBet: C,
|
|
3505
|
-
setActiveBonusFeature: C,
|
|
3506
|
-
setActiveInReelFeature: C,
|
|
3507
|
-
setInReelFeatures: C,
|
|
3508
|
-
setBonusFeatures: C,
|
|
3509
|
-
setHandlerOnce: C,
|
|
3510
|
-
buyHandler: C
|
|
3511
|
-
});
|
|
3512
|
-
}
|
|
3513
|
-
setAnteBets(t) {
|
|
3514
|
-
this.anteBets = t;
|
|
3515
|
-
}
|
|
3516
|
-
setActiveAnteBet(t) {
|
|
3517
|
-
t !== null ? this.activeAnteBet = this.anteBets.find((r) => r.id === t) || null : this.activeAnteBet = null;
|
|
3518
|
-
}
|
|
3519
|
-
setActiveBonusFeature(t) {
|
|
3520
|
-
this.activeBonusFeature = t;
|
|
3521
|
-
}
|
|
3522
|
-
setActiveInReelFeature(t) {
|
|
3523
|
-
this.activeInReelFeature = t;
|
|
3524
|
-
}
|
|
3525
|
-
setInReelFeatures(t) {
|
|
3526
|
-
this.inReelFeatures = t;
|
|
3527
|
-
}
|
|
3528
|
-
setBonusFeatures(t) {
|
|
3529
|
-
this.bonusFeatures = t;
|
|
3618
|
+
Ue(this);
|
|
3530
3619
|
}
|
|
3531
|
-
|
|
3532
|
-
|
|
3620
|
+
setBet(t) {
|
|
3621
|
+
this.betAmount = t;
|
|
3533
3622
|
}
|
|
3534
|
-
|
|
3535
|
-
|
|
3623
|
+
setNextBetAmount() {
|
|
3624
|
+
if (this.betIndex === this.betAmountRange.length - 1)
|
|
3625
|
+
return console.error("Bet Index must be less than BetStore.betAmountRange.length");
|
|
3626
|
+
this.betIndex += 1, this.betAmount = this.betAmountRange[this.betIndex];
|
|
3536
3627
|
}
|
|
3537
|
-
|
|
3538
|
-
|
|
3628
|
+
setPrevBetAmount() {
|
|
3629
|
+
if (this.betIndex < 1) return console.error("Bet Index must be more than 0");
|
|
3630
|
+
this.betIndex -= 1, this.betAmount = this.betAmountRange[this.betIndex];
|
|
3539
3631
|
}
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
console.error("[BuyBonus] handler already set");
|
|
3543
|
-
return;
|
|
3544
|
-
}
|
|
3545
|
-
this.handler = t, this.handlerSet = !0;
|
|
3632
|
+
setBetAmountRange(t) {
|
|
3633
|
+
this.betAmountRange = t, t.length > 0 && (this.maxBetAmount = t[0], this.minBetAmount = t[t.length - 1]);
|
|
3546
3634
|
}
|
|
3547
|
-
|
|
3548
|
-
this.
|
|
3635
|
+
setDisplayCurrency(t) {
|
|
3636
|
+
this.displayCurrency = t;
|
|
3549
3637
|
}
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
class vo {
|
|
3553
|
-
introSkip = JSON.parse(localStorage.getItem(at.SKIP_INTRO)) || !1;
|
|
3554
|
-
spaceToSpin = !1;
|
|
3555
|
-
spaceToSkip = !1;
|
|
3556
|
-
isTurbo = !1;
|
|
3557
|
-
volume = 50;
|
|
3558
|
-
musicOn = !0;
|
|
3559
|
-
soundsOn = !0;
|
|
3560
|
-
constructor() {
|
|
3561
|
-
Ue(this);
|
|
3638
|
+
setBalance(t) {
|
|
3639
|
+
this.balance = t;
|
|
3562
3640
|
}
|
|
3563
|
-
|
|
3564
|
-
this.
|
|
3641
|
+
setLastWin(t) {
|
|
3642
|
+
this.lastWin = t;
|
|
3565
3643
|
}
|
|
3566
3644
|
setVolume(t) {
|
|
3567
|
-
this.volume = t;
|
|
3568
|
-
}
|
|
3569
|
-
setIsTurbo(t) {
|
|
3570
|
-
this.isTurbo = t;
|
|
3571
|
-
}
|
|
3572
|
-
setSoundsOn(t) {
|
|
3573
|
-
this.soundsOn = t, localStorage.setItem(at.SOUND_ON, t.toString());
|
|
3574
|
-
}
|
|
3575
|
-
setIntroSkip(t) {
|
|
3576
|
-
this.introSkip = t, localStorage.setItem(at.SKIP_INTRO, t.toString());
|
|
3577
|
-
}
|
|
3578
|
-
setSpaceToSpin(t) {
|
|
3579
|
-
this.spaceToSpin = t;
|
|
3580
|
-
}
|
|
3581
|
-
setSpaceToSkip(t) {
|
|
3582
|
-
this.spaceToSkip = t;
|
|
3645
|
+
this.volume = Math.max(0, Math.min(100, t));
|
|
3583
3646
|
}
|
|
3584
3647
|
}
|
|
3585
|
-
const
|
|
3586
|
-
class
|
|
3648
|
+
const ae = new ho();
|
|
3649
|
+
class _o {
|
|
3587
3650
|
data = [
|
|
3588
3651
|
{
|
|
3589
3652
|
date: "26.11.2024 00:16",
|
|
@@ -3695,70 +3758,7 @@ class ho {
|
|
|
3695
3758
|
this.data = t;
|
|
3696
3759
|
}
|
|
3697
3760
|
}
|
|
3698
|
-
const
|
|
3699
|
-
class bo {
|
|
3700
|
-
isRunning = !1;
|
|
3701
|
-
isDisabled = !1;
|
|
3702
|
-
isSlamStop = !1;
|
|
3703
|
-
isUIVisible = !1;
|
|
3704
|
-
isAutoPlayDisabled = !1;
|
|
3705
|
-
isBuyBonusDisabled = !1;
|
|
3706
|
-
isBetAmountLabelsDisabled = !1;
|
|
3707
|
-
handler;
|
|
3708
|
-
handlerSet = !1;
|
|
3709
|
-
constructor() {
|
|
3710
|
-
pn(this, {
|
|
3711
|
-
isRunning: S,
|
|
3712
|
-
isDisabled: S,
|
|
3713
|
-
isSlamStop: S,
|
|
3714
|
-
isUIVisible: S,
|
|
3715
|
-
isAutoPlayDisabled: S,
|
|
3716
|
-
isBuyBonusDisabled: S,
|
|
3717
|
-
isBetAmountLabelsDisabled: S,
|
|
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
|
|
3727
|
-
});
|
|
3728
|
-
}
|
|
3729
|
-
setHandlerOnce(t) {
|
|
3730
|
-
if (this.handlerSet) {
|
|
3731
|
-
console.error("[SpinButton] handler already set");
|
|
3732
|
-
return;
|
|
3733
|
-
}
|
|
3734
|
-
this.handler = t, this.handlerSet = !0;
|
|
3735
|
-
}
|
|
3736
|
-
setIsUIVisible(t) {
|
|
3737
|
-
this.isUIVisible = t;
|
|
3738
|
-
}
|
|
3739
|
-
setIsAutoplayDisabled(t) {
|
|
3740
|
-
this.isAutoPlayDisabled = t;
|
|
3741
|
-
}
|
|
3742
|
-
setIsBetAmountLabelsDisabled(t) {
|
|
3743
|
-
this.isBetAmountLabelsDisabled = t;
|
|
3744
|
-
}
|
|
3745
|
-
setIsSpinDisabled(t) {
|
|
3746
|
-
this.isDisabled = t;
|
|
3747
|
-
}
|
|
3748
|
-
setIsBuyBonusDisabled(t) {
|
|
3749
|
-
this.isBuyBonusDisabled = t;
|
|
3750
|
-
}
|
|
3751
|
-
clickHandler() {
|
|
3752
|
-
this.handler?.();
|
|
3753
|
-
}
|
|
3754
|
-
setIsSpinRunning(t) {
|
|
3755
|
-
this.isRunning = t;
|
|
3756
|
-
}
|
|
3757
|
-
setIsSlamStop(t) {
|
|
3758
|
-
this.isSlamStop = t;
|
|
3759
|
-
}
|
|
3760
|
-
}
|
|
3761
|
-
const Nt = new bo(), mo = F(() => {
|
|
3761
|
+
const bo = new _o(), mo = F(() => {
|
|
3762
3762
|
const { isDisabled: e, isRunning: t, clickHandler: r } = Nt, { count: n, isStarted: i } = ye;
|
|
3763
3763
|
return /* @__PURE__ */ c(
|
|
3764
3764
|
"button",
|
|
@@ -4238,7 +4238,7 @@ const Eo = F(() => {
|
|
|
4238
4238
|
] })
|
|
4239
4239
|
] });
|
|
4240
4240
|
}, xo = F(() => {
|
|
4241
|
-
const { data: e } =
|
|
4241
|
+
const { data: e } = bo;
|
|
4242
4242
|
return /* @__PURE__ */ g("div", { className: "history-wrap", role: "list", "aria-label": "History list", children: [
|
|
4243
4243
|
/* @__PURE__ */ g("div", { className: "history-item history-item--head", role: "row", children: [
|
|
4244
4244
|
/* @__PURE__ */ c("span", { className: "date-section", children: "Date" }),
|
|
@@ -4472,10 +4472,10 @@ export {
|
|
|
4472
4472
|
Ne as bonusStore,
|
|
4473
4473
|
qo as createUi,
|
|
4474
4474
|
Kn as defaultDialogButtonsConfigs,
|
|
4475
|
-
|
|
4476
|
-
|
|
4475
|
+
lo as defaultDialogs,
|
|
4476
|
+
co as defaultDialogsNames,
|
|
4477
4477
|
ft as dialogStore,
|
|
4478
|
-
|
|
4478
|
+
bo as historyStore,
|
|
4479
4479
|
T as popupStore,
|
|
4480
4480
|
ne as settingsStore,
|
|
4481
4481
|
Nt as uiStore
|
package/dist/ui-bundle.umd.js
CHANGED
|
@@ -44,8 +44,8 @@ Use 'override' annotation for methods overridden by subclass.`)}}var Vs=fr(0),Ls
|
|
|
44
44
|
*
|
|
45
45
|
* This source code is licensed under the MIT license found in the
|
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
|
47
|
-
*/var yr;function Hs(){return yr||(yr=1,process.env.NODE_ENV!=="production"&&(function(){function e(b,g){return b===g&&(b!==0||1/b===1/g)||b!==b&&g!==g}function t(b,g){d||i.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var y=g();if(!v){var S=g();s(y,S)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),v=!0)}S=o({inst:{value:y,getSnapshot:g}});var O=S[0].inst,L=S[1];return u(function(){O.value=y,O.getSnapshot=g,r(O)&&L({inst:O})},[b,y,g]),a(function(){return r(O)&&L({inst:O}),b(function(){r(O)&&L({inst:O})})},[b]),l(y),y}function r(b){var g=b.getSnapshot;b=b.value;try{var y=g();return!s(b,y)}catch{return!0}}function n(b,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=m,s=typeof Object.is=="function"?Object.is:e,o=i.useState,a=i.useEffect,u=i.useLayoutEffect,l=i.useDebugValue,d=!1,v=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;rn.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),rn}var Or;function Gs(){return Or||(Or=1,process.env.NODE_ENV==="production"?wt.exports=Ks():wt.exports=Hs()),wt.exports}var Rs=Gs();function Er(e){e.reaction=new de("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function zs(e,t){t===void 0&&(t="observed");var r=m.useRef(null);if(!r.current){var n={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(a){return tn.unregister(n),n.onStoreChange=a,n.reaction||(Er(n),n.stateVersion=Symbol()),function(){var u;n.onStoreChange=null,(u=n.reaction)===null||u===void 0||u.dispose(),n.reaction=null}},getSnapshot:function(){return n.stateVersion}};r.current=n}var i=r.current;i.reaction||(Er(i),tn.register(r,i,i)),m.useDebugValue(i.reaction,ks),Rs.useSyncExternalStore(i.subscribe,i.getSnapshot,i.getSnapshot);var s,o;if(i.reaction.track(function(){try{s=e()}catch(a){o=a}}),o)throw o;return s}var sn,on,Ws=!0,Nr=!0,Sr=typeof Symbol=="function"&&Symbol.for,Zs=(on=(sn=Object.getOwnPropertyDescriptor(function(){},"name"))===null||sn===void 0?void 0:sn.configurable)!==null&&on!==void 0?on:!1,Ar=Sr?Symbol.for("react.forward_ref"):typeof m.forwardRef=="function"&&m.forwardRef(function(e){return null}).$$typeof,Cr=Sr?Symbol.for("react.memo"):typeof m.memo=="function"&&m.memo(function(e){return null}).$$typeof;function K(e,t){var r;if(process.env.NODE_ENV,Cr&&e.$$typeof===Cr)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var n=(r=void 0)!==null&&r!==void 0?r:!1,i=e,s=e.displayName||e.name;if(Ar&&e.$$typeof===Ar&&(n=!0,i=e.render,typeof i!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var o=function(a,u){return zs(function(){return i(a,u)},s)};return o.displayName=e.displayName,Zs&&Object.defineProperty(o,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(o.contextTypes=e.contextTypes,process.env.NODE_ENV!=="production"&&Nr&&(Nr=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),n&&(o=m.forwardRef(o)),o=m.memo(o),Ys(e,o),process.env.NODE_ENV!=="production"&&Object.defineProperty(o,"contextTypes",{set:function(){var a,u;throw new Error("[mobx-react-lite] `".concat(this.displayName||((a=this.type)===null||a===void 0?void 0:a.displayName)||((u=this.type)===null||u===void 0?void 0:u.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),o}var Xs={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Ys(e,t){Object.keys(e).forEach(function(r){Xs[r]||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}process.env.NODE_ENV;var an;Is(Ir.unstable_batchedUpdates),an=tn.finalizeAllImmediately;const Js=({onClick:e,disabled:t=!1,imagePath:r})=>c.jsxs("div",{className:"buy-bonus-wrap","aria-hidden":t?"true":"false",children:[r&&c.jsx("div",{className:"bonus-thumb",role:"img","aria-label":"bonus thumbnail",style:{backgroundImage:`url(${r})`}}),c.jsx("button",{className:`buy-bonus ${t?"disabled":""}`,onClick:e,disabled:t,"aria-pressed":t,children:r?"Disable":"Buy Bonus"})]}),wr=({label:e,value:t})=>c.jsxs("div",{className:"info",children:[c.jsx("span",{className:"label",children:e}),c.jsx("span",{className:"value",children:t})]}),Qs=({onClick:e,disabled:t=!1,value:r,currency:n,activeAnteBet:i=!1})=>c.jsxs("div",{className:`bet-amount ${t?"disabled":""}`,onClick:e,children:[c.jsx("div",{className:"bet-amount-icon"}),c.jsxs("label",{className:`bet-amount-text ${i?"ante-color":""}`,children:[r," ",n]})]}),Dr=({onClick:e,disabled:t=!1,className:r})=>c.jsx("button",{className:`${r} ${t?"disabled":""}`,onClick:e});class eo{activePopup=null;constructor(){Ie(this)}open(t){this.activePopup=t}close(){this.activePopup=null}get isOpen(){return this.activePopup!==null}}const x=new eo,M={bet:"bet",autoplay:"autoplay",settings:"settings",history:"history",buyBonus:"buy_bonus",payTable:"pay_table"},Vr={insufficientFunds:"insufficient funds"},un={primary:{background:"#FBDE38",color:"#1C1B1E"},secondary:{background:"#1C1B1E",color:"#FFFFFF"}},Lr=[{name:Vr.insufficientFunds,title:"Insufficient Funds",imagePath:"/img_1.png",message:"Your balance is low, please make a deposit",buttons:[{text:"Back",configs:un.secondary},{text:"Ok",configs:un.primary}]}],Dt={ante:"ante",buy:"buy"},Je={SKIP_INTRO:"SKIP_INTRO",SOUND_ON:"SOUND_ON",MUSIC_ON:"MUSIC_ON"};class to{dialogs=Lr;activeDialog=null;constructor(){Ie(this)}add(t){this.dialogs.push(t)}open(t){const r=this.dialogs.find(n=>t===n.name);r?this.activeDialog=r:console.error(`Couldn't find dialog named ${t}`)}close(){this.activeDialog=null}get isOpen(){return this.activeDialog!==null}}const Qe=new to;class no{balance=1e4;betAmount=10;betIndex=0;lastWin=0;volume=50;betAmountRange=[10,20,50,100,500,1e3,5e3,1e4,25e3,5e5,65e3,8e4,1e5,15e4,2e5];maxBetAmount=this.betAmountRange[0];minBetAmount=this.betAmountRange[this.betAmountRange.length-1];displayCurrency="FUN";constructor(){Ie(this)}setBet(t){this.betAmount=t}setNextBetAmount(){if(this.betIndex===this.betAmountRange.length-1)return console.error("Bet Index must be less than BetStore.betAmountRange.length");this.betIndex+=1,this.betAmount=this.betAmountRange[this.betIndex]}setPrevBetAmount(){if(this.betIndex<1)return console.error("Bet Index must be more than 0");this.betIndex-=1,this.betAmount=this.betAmountRange[this.betIndex]}setBetAmountRange(t){this.betAmountRange=t,t.length>0&&(this.maxBetAmount=t[0],this.minBetAmount=t[t.length-1])}setDisplayCurrency(t){this.displayCurrency=t}setBalance(t){this.balance=t}setLastWin(t){this.lastWin=t}setVolume(t){this.volume=Math.max(0,Math.min(100,t))}}const ne=new no;class ro{countRange=[10,25,50,70,100,500,1e3];limitsRange=[10,20,50];count=0;specialFeatureSwitcherOn=!1;lossLimit=null;winLimit=null;currentWinLimit=0;currentLossLimit=0;isStarted=!1;constructor(){Ie(this)}setCount(t){this.count=t}setIsStarted(t){this.isStarted=t}setLimitsRange(t){this.limitsRange=t}setCountRange(t){this.countRange=t}setSpecialFeatureSwitcher(t){this.specialFeatureSwitcherOn=t}setLossLimit(t){this.lossLimit=t}setCurrentLossLimit(t){this.currentLossLimit=t}setWinLimit(t){this.winLimit=t}setCurrentWinLimit(t){this.currentWinLimit=t}}const ge=new ro;class io{anteBets=[{id:0,title:"Bonus 1 bonus bonus bonus",description:"Players choose between differeqeqw wqeqweqw qweqw asdas asdas asdsa sad asd as d asdasda asda sdas das asde qweq qweent alleys, risking modifiers that can escalate the tension or offer valuable bonuses, culminating in a thrilling escape or a betrayal spin.",imagePath:"/img_2.png",costMultiplier:50},{id:1,title:"Bonus 1 bonus bonus bonus",description:"Players choose between differeqeqw wqeqweqw qweqw asdas asdas asdsa sad asd as d asdasda asda sdas das asde qweq qweent alleys, risking modifiers that can escalate the tension or offer valuable bonuses, culminating in a thrilling escape or a betrayal spin.",imagePath:"/img_2.png",costMultiplier:50}];inReelFeatures=[];bonusFeatures=[];activeAnteBet=null;activeBonusFeature=null;activeInReelFeature=null;handler;handlerSet=!1;constructor(){zt(this,{anteBets:N,inReelFeatures:N,bonusFeatures:N,activeAnteBet:N,activeBonusFeature:N,activeInReelFeature:N,isActiveBonus:Ne,isActiveInReelFeature:Ne,isActiveAnteBet:Ne,setAnteBets:D,setActiveAnteBet:D,setActiveBonusFeature:D,setActiveInReelFeature:D,setInReelFeatures:D,setBonusFeatures:D,setHandlerOnce:D,buyHandler:D})}setAnteBets(t){this.anteBets=t}setActiveAnteBet(t){t!==null?this.activeAnteBet=this.anteBets.find(r=>r.id===t)||null:this.activeAnteBet=null}setActiveBonusFeature(t){this.activeBonusFeature=t}setActiveInReelFeature(t){this.activeInReelFeature=t}setInReelFeatures(t){this.inReelFeatures=t}setBonusFeatures(t){this.bonusFeatures=t}get isActiveBonus(){return!!this.activeBonusFeature}get isActiveInReelFeature(){return!!this.activeInReelFeature}get isActiveAnteBet(){return!!this.activeAnteBet}setHandlerOnce(t){if(this.handlerSet){console.error("[BuyBonus] handler already set");return}this.handler=t,this.handlerSet=!0}buyHandler(t){this.handler?.(t)}}const me=new io;class so{introSkip=JSON.parse(localStorage.getItem(Je.SKIP_INTRO))||!1;spaceToSpin=!1;spaceToSkip=!1;isTurbo=!1;volume=50;musicOn=!0;soundsOn=!0;constructor(){Ie(this)}setMusicOn(t){this.musicOn=t,localStorage.setItem(Je.MUSIC_ON,t.toString())}setVolume(t){this.volume=t}setIsTurbo(t){this.isTurbo=t}setSoundsOn(t){this.soundsOn=t,localStorage.setItem(Je.SOUND_ON,t.toString())}setIntroSkip(t){this.introSkip=t,localStorage.setItem(Je.SKIP_INTRO,t.toString())}setSpaceToSpin(t){this.spaceToSpin=t}setSpaceToSkip(t){this.spaceToSkip=t}}const re=new so;class oo{data=[{date:"26.11.2024 00:16",betAmount:1011,winAmount:20,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:20,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:1,winAmount:2e4,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"}];constructor(){Ie(this)}setData(t){this.data=t}}const Br=new oo;class ao{isRunning=!1;isDisabled=!1;isSlamStop=!1;isUIVisible=!1;isAutoPlayDisabled=!1;isBuyBonusDisabled=!1;isBetAmountLabelsDisabled=!1;handler;handlerSet=!1;constructor(){zt(this,{isRunning:N,isDisabled:N,isSlamStop:N,isUIVisible:N,isAutoPlayDisabled:N,isBuyBonusDisabled:N,isBetAmountLabelsDisabled:N,setIsSpinRunning:D,setIsSpinDisabled:D,setIsSlamStop:D,setHandlerOnce:D,setIsUIVisible:D,setIsAutoplayDisabled:D,setIsBuyBonusDisabled:D,setIsBetAmountLabelsDisabled:D,clickHandler:D})}setHandlerOnce(t){if(this.handlerSet){console.error("[SpinButton] handler already set");return}this.handler=t,this.handlerSet=!0}setIsUIVisible(t){this.isUIVisible=t}setIsAutoplayDisabled(t){this.isAutoPlayDisabled=t}setIsBetAmountLabelsDisabled(t){this.isBetAmountLabelsDisabled=t}setIsSpinDisabled(t){this.isDisabled=t}setIsBuyBonusDisabled(t){this.isBuyBonusDisabled=t}clickHandler(){this.handler?.()}setIsSpinRunning(t){this.isRunning=t}setIsSlamStop(t){this.isSlamStop=t}}const et=new ao,uo=K(()=>{const{isDisabled:e,isRunning:t,clickHandler:r}=et,{count:n,isStarted:i}=ge;return c.jsx("button",{className:`spin-btn
|
|
47
|
+
*/var yr;function Hs(){return yr||(yr=1,process.env.NODE_ENV!=="production"&&(function(){function e(b,g){return b===g&&(b!==0||1/b===1/g)||b!==b&&g!==g}function t(b,g){d||i.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var y=g();if(!v){var S=g();s(y,S)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),v=!0)}S=o({inst:{value:y,getSnapshot:g}});var O=S[0].inst,L=S[1];return u(function(){O.value=y,O.getSnapshot=g,r(O)&&L({inst:O})},[b,y,g]),a(function(){return r(O)&&L({inst:O}),b(function(){r(O)&&L({inst:O})})},[b]),l(y),y}function r(b){var g=b.getSnapshot;b=b.value;try{var y=g();return!s(b,y)}catch{return!0}}function n(b,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=m,s=typeof Object.is=="function"?Object.is:e,o=i.useState,a=i.useEffect,u=i.useLayoutEffect,l=i.useDebugValue,d=!1,v=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;rn.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),rn}var Or;function Gs(){return Or||(Or=1,process.env.NODE_ENV==="production"?wt.exports=Ks():wt.exports=Hs()),wt.exports}var Rs=Gs();function Er(e){e.reaction=new de("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function zs(e,t){t===void 0&&(t="observed");var r=m.useRef(null);if(!r.current){var n={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(a){return tn.unregister(n),n.onStoreChange=a,n.reaction||(Er(n),n.stateVersion=Symbol()),function(){var u;n.onStoreChange=null,(u=n.reaction)===null||u===void 0||u.dispose(),n.reaction=null}},getSnapshot:function(){return n.stateVersion}};r.current=n}var i=r.current;i.reaction||(Er(i),tn.register(r,i,i)),m.useDebugValue(i.reaction,ks),Rs.useSyncExternalStore(i.subscribe,i.getSnapshot,i.getSnapshot);var s,o;if(i.reaction.track(function(){try{s=e()}catch(a){o=a}}),o)throw o;return s}var sn,on,Ws=!0,Nr=!0,Sr=typeof Symbol=="function"&&Symbol.for,Zs=(on=(sn=Object.getOwnPropertyDescriptor(function(){},"name"))===null||sn===void 0?void 0:sn.configurable)!==null&&on!==void 0?on:!1,Ar=Sr?Symbol.for("react.forward_ref"):typeof m.forwardRef=="function"&&m.forwardRef(function(e){return null}).$$typeof,Cr=Sr?Symbol.for("react.memo"):typeof m.memo=="function"&&m.memo(function(e){return null}).$$typeof;function K(e,t){var r;if(process.env.NODE_ENV,Cr&&e.$$typeof===Cr)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var n=(r=void 0)!==null&&r!==void 0?r:!1,i=e,s=e.displayName||e.name;if(Ar&&e.$$typeof===Ar&&(n=!0,i=e.render,typeof i!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var o=function(a,u){return zs(function(){return i(a,u)},s)};return o.displayName=e.displayName,Zs&&Object.defineProperty(o,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(o.contextTypes=e.contextTypes,process.env.NODE_ENV!=="production"&&Nr&&(Nr=!1,console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))),n&&(o=m.forwardRef(o)),o=m.memo(o),Ys(e,o),process.env.NODE_ENV!=="production"&&Object.defineProperty(o,"contextTypes",{set:function(){var a,u;throw new Error("[mobx-react-lite] `".concat(this.displayName||((a=this.type)===null||a===void 0?void 0:a.displayName)||((u=this.type)===null||u===void 0?void 0:u.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),o}var Xs={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Ys(e,t){Object.keys(e).forEach(function(r){Xs[r]||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}process.env.NODE_ENV;var an;Is(Ir.unstable_batchedUpdates),an=tn.finalizeAllImmediately;const Js=({onClick:e,disabled:t=!1,imagePath:r})=>c.jsxs("div",{className:"buy-bonus-wrap","aria-hidden":t?"true":"false",children:[r&&c.jsx("div",{className:"bonus-thumb",role:"img","aria-label":"bonus thumbnail",style:{backgroundImage:`url(${r})`}}),c.jsx("button",{className:`buy-bonus ${t?"disabled":""}`,onClick:e,disabled:t,"aria-pressed":t,children:r?"Disable":"Buy Bonus"})]}),wr=({label:e,value:t})=>c.jsxs("div",{className:"info",children:[c.jsx("span",{className:"label",children:e}),c.jsx("span",{className:"value",children:t})]}),Qs=({onClick:e,disabled:t=!1,value:r,currency:n,activeAnteBet:i=!1})=>c.jsxs("div",{className:`bet-amount ${t?"disabled":""}`,onClick:e,children:[c.jsx("div",{className:"bet-amount-icon"}),c.jsxs("label",{className:`bet-amount-text ${i?"ante-color":""}`,children:[r," ",n]})]}),Dr=({onClick:e,disabled:t=!1,className:r})=>c.jsx("button",{className:`${r} ${t?"disabled":""}`,onClick:e});class eo{isRunning=!1;isDisabled=!1;isSlamStop=!1;isUIVisible=!1;isAutoPlayDisabled=!1;isBuyBonusDisabled=!1;isBetAmountLabelsDisabled=!1;handler;handlerSet=!1;constructor(){zt(this,{isRunning:N,isDisabled:N,isSlamStop:N,isUIVisible:N,isAutoPlayDisabled:N,isBuyBonusDisabled:N,isBetAmountLabelsDisabled:N,setIsSpinRunning:D,setIsSpinDisabled:D,setIsSlamStop:D,setHandlerOnce:D,setIsUIVisible:D,setIsAutoplayDisabled:D,setIsBuyBonusDisabled:D,setIsBetAmountLabelsDisabled:D,clickHandler:D})}setHandlerOnce(t){if(this.handlerSet){console.error("[SpinButton] handler already set");return}this.handler=t,this.handlerSet=!0}setIsUIVisible(t){this.isUIVisible=t}setIsAutoplayDisabled(t){this.isAutoPlayDisabled=t}setIsBetAmountLabelsDisabled(t){this.isBetAmountLabelsDisabled=t}setIsSpinDisabled(t){this.isDisabled=t}setIsBuyBonusDisabled(t){this.isBuyBonusDisabled=t}clickHandler(){this.handler?.()}setIsSpinRunning(t){this.isRunning=t}setIsSlamStop(t){this.isSlamStop=t}}const Je=new eo;class to{anteBets=[{id:0,title:"Bonus 1 bonus bonus bonus",description:"Players choose between differeqeqw wqeqweqw qweqw asdas asdas asdsa sad asd as d asdasda asda sdas das asde qweq qweent alleys, risking modifiers that can escalate the tension or offer valuable bonuses, culminating in a thrilling escape or a betrayal spin.",imagePath:"/img_2.png",costMultiplier:50},{id:1,title:"Bonus 1 bonus bonus bonus",description:"Players choose between differeqeqw wqeqweqw qweqw asdas asdas asdsa sad asd as d asdasda asda sdas das asde qweq qweent alleys, risking modifiers that can escalate the tension or offer valuable bonuses, culminating in a thrilling escape or a betrayal spin.",imagePath:"/img_2.png",costMultiplier:50}];inReelFeatures=[];bonusFeatures=[];activeAnteBet=null;activeBonusFeature=null;activeInReelFeature=null;handler;handlerSet=!1;constructor(){zt(this,{anteBets:N,inReelFeatures:N,bonusFeatures:N,activeAnteBet:N,activeBonusFeature:N,activeInReelFeature:N,isActiveBonus:Ne,isActiveInReelFeature:Ne,isActiveAnteBet:Ne,setAnteBets:D,setActiveAnteBet:D,setActiveBonusFeature:D,setActiveInReelFeature:D,setInReelFeatures:D,setBonusFeatures:D,setHandlerOnce:D,buyHandler:D})}setAnteBets(t){this.anteBets=t}setActiveAnteBet(t){t!==null?this.activeAnteBet=this.anteBets.find(r=>r.id===t)||null:this.activeAnteBet=null}setActiveBonusFeature(t){this.activeBonusFeature=t}setActiveInReelFeature(t){this.activeInReelFeature=t}setInReelFeatures(t){this.inReelFeatures=t}setBonusFeatures(t){this.bonusFeatures=t}get isActiveBonus(){return!!this.activeBonusFeature}get isActiveInReelFeature(){return!!this.activeInReelFeature}get isActiveAnteBet(){return!!this.activeAnteBet}setHandlerOnce(t){if(this.handlerSet){console.error("[BuyBonus] handler already set");return}this.handler=t,this.handlerSet=!0}buyHandler(t){this.handler?.(t)}}const ge=new to;class no{activePopup=null;constructor(){Ie(this)}open(t){this.activePopup=t}close(){this.activePopup=null}get isOpen(){return this.activePopup!==null}}const x=new no,M={bet:"bet",autoplay:"autoplay",settings:"settings",history:"history",buyBonus:"buy_bonus",payTable:"pay_table"},Vr={insufficientFunds:"insufficient funds"},un={primary:{background:"#FBDE38",color:"#1C1B1E"},secondary:{background:"#1C1B1E",color:"#FFFFFF"}},Lr=[{name:Vr.insufficientFunds,title:"Insufficient Funds",imagePath:"/img_1.png",message:"Your balance is low, please make a deposit",buttons:[{text:"Back",configs:un.secondary},{text:"Ok",configs:un.primary}]}],Dt={ante:"ante",buy:"buy"},Qe={SKIP_INTRO:"SKIP_INTRO",SOUND_ON:"SOUND_ON",MUSIC_ON:"MUSIC_ON"};class ro{dialogs=Lr;activeDialog=null;constructor(){Ie(this)}add(t){this.dialogs.push(t)}open(t){const r=this.dialogs.find(n=>t===n.name);r?this.activeDialog=r:console.error(`Couldn't find dialog named ${t}`)}close(){this.activeDialog=null}get isOpen(){return this.activeDialog!==null}}const et=new ro;class io{introSkip=JSON.parse(localStorage.getItem(Qe.SKIP_INTRO))||!1;spaceToSpin=!1;spaceToSkip=!1;isTurbo=!1;volume=50;musicOn=!0;soundsOn=!0;constructor(){Ie(this)}setMusicOn(t){this.musicOn=t,localStorage.setItem(Qe.MUSIC_ON,t.toString())}setVolume(t){this.volume=t}setIsTurbo(t){this.isTurbo=t}setSoundsOn(t){this.soundsOn=t,localStorage.setItem(Qe.SOUND_ON,t.toString())}setIntroSkip(t){this.introSkip=t,localStorage.setItem(Qe.SKIP_INTRO,t.toString())}setSpaceToSpin(t){this.spaceToSpin=t}setSpaceToSkip(t){this.spaceToSkip=t}}const ne=new io;class so{countRange=[10,25,50,70,100,500,1e3];limitsRange=[10,20,50];count=0;specialFeatureSwitcherOn=!1;lossLimit=null;winLimit=null;currentWinLimit=0;currentLossLimit=0;isStarted=!1;constructor(){Ie(this)}setCount(t){this.count=t}setIsStarted(t){this.isStarted=t}setLimitsRange(t){this.limitsRange=t}setCountRange(t){this.countRange=t}setSpecialFeatureSwitcher(t){this.specialFeatureSwitcherOn=t}setLossLimit(t){this.lossLimit=t}setCurrentLossLimit(t){this.currentLossLimit=t}setWinLimit(t){this.winLimit=t}setCurrentWinLimit(t){this.currentWinLimit=t}}const me=new so;class oo{balance=1e4;betAmount=10;betIndex=0;lastWin=0;volume=50;betAmountRange=[10,20,50,100,500,1e3,5e3,1e4,25e3,5e5,65e3,8e4,1e5,15e4,2e5];maxBetAmount=this.betAmountRange[0];minBetAmount=this.betAmountRange[this.betAmountRange.length-1];displayCurrency="FUN";constructor(){Ie(this)}setBet(t){this.betAmount=t}setNextBetAmount(){if(this.betIndex===this.betAmountRange.length-1)return console.error("Bet Index must be less than BetStore.betAmountRange.length");this.betIndex+=1,this.betAmount=this.betAmountRange[this.betIndex]}setPrevBetAmount(){if(this.betIndex<1)return console.error("Bet Index must be more than 0");this.betIndex-=1,this.betAmount=this.betAmountRange[this.betIndex]}setBetAmountRange(t){this.betAmountRange=t,t.length>0&&(this.maxBetAmount=t[0],this.minBetAmount=t[t.length-1])}setDisplayCurrency(t){this.displayCurrency=t}setBalance(t){this.balance=t}setLastWin(t){this.lastWin=t}setVolume(t){this.volume=Math.max(0,Math.min(100,t))}}const re=new oo;class ao{data=[{date:"26.11.2024 00:16",betAmount:1011,winAmount:20,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:20,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:1,winAmount:2e4,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"},{date:"26.11.2024 00:16",betAmount:10,winAmount:2002,currencyCode:"USD"}];constructor(){Ie(this)}setData(t){this.data=t}}const Br=new ao,uo=K(()=>{const{isDisabled:e,isRunning:t,clickHandler:r}=Je,{count:n,isStarted:i}=me;return c.jsx("button",{className:`spin-btn
|
|
48
48
|
${e?"disabled":""}
|
|
49
49
|
${t?"slam-stop":""}
|
|
50
|
-
`,onClick:r.bind(et),children:i&&t&&n&&c.jsx("span",{className:"spin-btn_label",children:n})})}),Tr=({onClick:e,disabled:t=!1,className:r,isActive:n})=>c.jsx("button",{className:`${r} ${t?"disabled":""} ${n?"active":""}`,onClick:e}),co=K(()=>{const{lastWin:e,balance:t,betAmount:r,displayCurrency:n,setNextBetAmount:i,setPrevBetAmount:s}=ne,{setIsTurbo:o,isTurbo:a}=re,{open:u}=x,{activeAnteBet:l,activeBonusFeature:d,activeInReelFeature:v,setActiveAnteBet:h}=me,{isUIVisible:b,isAutoPlayDisabled:g,isBuyBonusDisabled:y,isBetAmountLabelsDisabled:S}=et,O=m.useMemo(()=>l?.imagePath||v?.imagePath||d?.imagePath,[l,d,v]),L=m.useCallback(()=>{l?h.call(me,null):u.call(x,M.buyBonus)},[l,h]);return c.jsx("div",{className:`ui-footer ${b?"":"hidden"}`,children:c.jsxs("div",{className:"top-row",children:[c.jsxs("div",{className:"left-group",children:[c.jsx(Js,{imagePath:O,disabled:y,onClick:L}),c.jsxs("div",{className:"balance-info",children:[c.jsx(wr,{label:"LAST WIN",value:`${e} ${n}`}),c.jsx(wr,{label:"BALANCE",value:`${t} ${n}`})]})]}),c.jsxs("div",{className:"bet-control",children:[c.jsx(Qs,{activeAnteBet:!!l,value:r,currency:n,onClick:u.bind(x,M.bet),disabled:S}),c.jsxs("div",{className:"bet-box",children:[c.jsx(Dr,{onClick:()=>s.call(ne),className:"bet-btn minus",disabled:S}),c.jsx(uo,{onClick:()=>console.log("Spin"),state:"active"}),c.jsx(Dr,{onClick:()=>i.call(ne),className:"bet-btn plus",disabled:S})]}),c.jsx(Tr,{className:"quick-spin",onClick:o.bind(re,!a),isActive:a}),c.jsx(Tr,{className:"auto-spin",onClick:u.bind(x,M.autoplay),isActive:!1,disabled:g})]})]})})}),lo=({onMount:e,onUnmount:t,className:r})=>{const n=m.useRef(null);return m.useEffect(()=>(n.current&&e&&e(n.current),()=>{t?.()}),[e,t]),c.jsx("div",{ref:n,className:r,style:{width:"100%",height:"100%",position:"relative"}})};function fo(e){const t=m.useRef(null);return m.useEffect(()=>{if(typeof e!="function")return;const r=n=>{const i=t.current;if(!i)return;const s=n.target;s&&(i.contains(s)||e(n))};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e]),t}const po=K(()=>{const{volume:e,setVolume:t}=re,[r,n]=m.useState(!1),i=fo(()=>n(!1)),s=m.useCallback(()=>{r||n(!0)},[r,n]);return c.jsxs(c.Fragment,{children:[r&&c.jsxs("div",{className:"volume-control",ref:i,children:[c.jsx("input",{type:"range",min:0,max:100,value:e,onChange:o=>t.call(re,Number(o.target.value)),className:"slider","aria-label":"Volume"}),c.jsx("span",{className:"volume-value",children:e})]}),c.jsx("button",{className:`btn-sound ${e===0?"inactive":""}`,"aria-label":"Toggle Sound",onClick:s})]})}),vo=K(()=>{const{open:e}=x,{isUIVisible:t}=et;return t?c.jsxs("div",{className:"settings-section",children:[c.jsx(po,{}),c.jsx("button",{className:"btn-settings","aria-label":"Open Settings",onClick:e.bind(x,M.settings)})]}):null}),ho="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",_o=K(()=>{const{betAmount:e,displayCurrency:t,setNextBetAmount:r,setPrevBetAmount:n}=ne;return c.jsxs("div",{className:"overlay-bet-controller",children:[c.jsx("div",{className:"decrease-bet",onClick:n.bind(ne)}),c.jsxs("div",{className:"bet-amount",children:[e," ",t]}),c.jsx("div",{className:"increase-bet",onClick:r.bind(ne)})]})}),Pr=({value:e,onClick:t,active:r})=>c.jsx("div",{className:`rectLabel ${r?"current-active":""}`,onClick:()=>t(e),children:c.jsx("span",{children:e})}),bo=K(()=>{const{betAmountRange:e,setBet:t,betAmount:r}=ne;return c.jsx("div",{className:"bet-popup-container",children:e.map((n,i)=>{const s=r===n;return c.jsx(Pr,{value:n,active:s,onClick:t.bind(ne,n)},i)})})}),Vt=({checked:e,onChange:t})=>c.jsx("button",{className:`ap-toggle ${e?"ap-toggle--on":"ap-toggle--off"}`,"aria-pressed":e,onClick:()=>t(!e),type:"button",children:c.jsx("span",{className:"ap-toggle__knob"})}),cn=({active:e,onClick:t,children:r})=>c.jsx("button",{className:`ap-limit ${e?"ap-limit--active":""}`,onClick:t,type:"button",children:r}),xr=({active:e,onClick:t,children:r})=>c.jsx("button",{className:`ap-tab ${e?"ap-tab--active":""}`,onClick:t,type:"button",children:r}),go=({value:e,placeholder:t,inputType:r="text",className:n="",autoFocus:i=!0,onSubmit:s,onCancel:o})=>{const[a,u]=m.useState(""),l=m.useRef(null),d=m.useRef(!1);m.useEffect(()=>{u(e??""),d.current=!1},[e]),m.useEffect(()=>{i&&setTimeout(()=>{l.current?.focus(),l.current?.select()},0)},[i]);const v=()=>{d.current||(d.current=!0,s(a.trim()))},h=()=>{v()},b=g=>{g.key==="Enter"?(g.preventDefault(),v(),l.current?.blur()):g.key==="Escape"&&(u(e??""),o?.(),l.current?.blur())};return c.jsx("input",{ref:l,className:`ap-limit ${n}`,type:"number",value:a,placeholder:t,onChange:g=>u(g.target.value),onBlur:h,onKeyDown:b,inputMode:r==="number"?"numeric":void 0,"aria-label":"custom limit input"})},mo=K(()=>{const{specialFeatureSwitcherOn:e,setSpecialFeatureSwitcher:t,countRange:r,count:n,setCount:i,lossLimit:s,winLimit:o,setLossLimit:a,limitsRange:u,setWinLimit:l,setIsStarted:d}=ge,[v,h]=m.useState(0),[b,g]=m.useState(!1),[y,S]=m.useState(""),O=m.useMemo(()=>v?o:s,[v,o,s]),L=m.useMemo(()=>v?l.bind(ge):a.bind(ge),[v,l,a]);m.useEffect(()=>{const A=O&&!u.includes(O);S(A?O:0)},[O,o]);const ie=!!n&&n>0;return c.jsxs("div",{className:"autoplay-wrap",children:[c.jsx("h3",{className:"ap-title",children:"Number of spins"}),c.jsx("div",{className:"autoplay-count",children:r.map((A,B)=>{const P=n===A;return c.jsx(Pr,{value:A,active:P,onClick:i.bind(ge,A)},B)})}),c.jsxs("div",{className:"ap-switch-row",children:[c.jsx("div",{className:"ap-switch-label",children:"Stop on special feature WIN"}),c.jsx("div",{className:"ap-switch-control",children:c.jsx(Vt,{checked:e,onChange:A=>t.call(ge,A)})})]}),c.jsxs("div",{className:"ap-tabs",children:[c.jsx(xr,{active:!v,onClick:()=>h(0),children:"Loss limit"}),c.jsx(xr,{active:!!v,onClick:()=>h(1),children:"Single WIN limit"})]}),c.jsx("div",{className:"ap-limits-panel",children:c.jsx("div",{className:"ap-limits-inner",children:c.jsxs("div",{className:"ap-limit-grid",children:[u.map((A,B)=>c.jsxs(cn,{active:O===A,onClick:()=>L(A),children:[A,"X BET"]},B)),c.jsx(cn,{active:!O,onClick:()=>L(null),children:"NO LIMIT"}),b?c.jsx(go,{value:""+y,inputType:"number",onSubmit:A=>{const B=A.trim();if(B===""){g(!1);return}const P=Number(B);S(P??0),L(P),g(!1)},onCancel:()=>{g(!1)}}):c.jsx(cn,{onClick:()=>{g(!0)},active:!!O&&O===Number(y),children:y?`${y}X BET`:"CUSTOM"})]})})}),c.jsx("div",{className:"ap-start-row",children:c.jsx("button",{className:`ap-start-btn ${ie?"":"ap-start-btn--disabled"}`,onClick:d.bind(ge,!0),type:"button",disabled:!ie,children:"Start Autoplay"})})]})}),jr=({onClick:e,label:t,className:r})=>c.jsxs("button",{className:`sp-action ${r}`,type:"button",onClick:e,children:[c.jsx("span",{className:"sp-action__icon","aria-hidden":"true"}),c.jsx("span",{className:"sp-action__label",children:t})]}),tt=({onToggle:e,label:t,checked:r=!1})=>c.jsxs("div",{className:"sp-row",children:[c.jsx("div",{className:"sp-switch",children:c.jsx(Vt,{checked:r,onChange:()=>e(!r)})}),c.jsx("div",{className:"sp-label",children:t})]}),yo=K(()=>{const{introSkip:e,spaceToSkip:t,musicOn:r,soundsOn:n,spaceToSpin:i,setSpaceToSpin:s,setIntroSkip:o,setSpaceToSkip:a,setSoundsOn:u,setMusicOn:l}=re,{open:d}=x;return c.jsxs("div",{className:"sp-wrap",children:[c.jsxs("div",{className:"sp-actions",children:[c.jsx(jr,{onClick:d.bind(x,M.history),className:"sp-action--history",label:"History"}),c.jsx(jr,{onClick:x.open.bind(x,M.payTable),className:"sp-action--paytable",label:"Paytable"})]}),c.jsx("h3",{className:"sp-section-title",children:"Audio"}),c.jsxs("div",{className:"sp-rows",children:[c.jsx(tt,{onToggle:l.bind(re),checked:r,label:"Music"}),c.jsx(tt,{onToggle:u.bind(re),checked:n,label:"Sounds"})]}),c.jsx("h3",{className:"sp-section-title",children:"Game launch"}),c.jsx("div",{className:"sp-rows",children:c.jsx(tt,{onToggle:o.bind(re),checked:e,label:"Skip Intro"})}),c.jsx("h3",{className:"sp-section-title",children:"Keyboard"}),c.jsxs("div",{className:"sp-rows",children:[c.jsx(tt,{onToggle:s.bind(re),checked:i,label:"Spacebar to Spin"}),c.jsx(tt,{onToggle:a.bind(re),checked:t,label:"Spacebar to Skip"})]})]})}),Oo=({date:e,currencyCode:t,betAmount:r,winAmount:n})=>{const[i,s]=m.useState(!1);return c.jsxs("div",{className:`history-item ${i?"active":""}`,role:"row",children:[c.jsx("span",{className:"date-section",children:e}),c.jsxs("span",{className:"bet-section",children:[r,c.jsx("span",{className:"currency",children:t})]}),c.jsxs("span",{className:"win-section",children:[n,c.jsxs("span",{className:"currency",children:[" ",t]})]}),c.jsx("div",{className:`vector ${i?"up":"down"}`,"aria-hidden":"true",onClick:()=>s(!i)}),i&&c.jsxs("div",{className:"additional-info",children:[c.jsxs("button",{className:"additional-button replay",children:[c.jsx("div",{className:"replay-icon"}),"REPLAY"]}),c.jsx("button",{className:"additional-button",children:"LINK"})]})]})},Eo=K(()=>{const{data:e}=Br;return c.jsxs("div",{className:"history-wrap",role:"list","aria-label":"History list",children:[c.jsxs("div",{className:"history-item history-item--head",role:"row",children:[c.jsx("span",{className:"date-section",children:"Date"}),c.jsx("span",{className:"bet-section",children:"Bet"}),c.jsx("span",{className:"win-section",children:"Win"})]}),e.map((t,r)=>c.jsx(Oo,{date:t.date,betAmount:t.betAmount,winAmount:t.winAmount,currencyCode:t.currencyCode,id:"aa"},r))]})}),No=K(({item:e,type:t,onBuy:r})=>{const{betAmount:n}=ne,{activeAnteBet:i,setActiveAnteBet:s}=me,o=e.title.split(`
|
|
51
|
-
`),[a,u]=m.useState(!1),[l,d]=m.useState(84),[v,h]=m.useState(0),[b,g]=m.useState(!1),y=m.useRef(null);m.useLayoutEffect(()=>{const O=y.current;if(!O)return;const L=()=>{const A=getComputedStyle(O),B=A.getPropertyValue("--max-description-height").trim();let P=84;if(B){const $e=B.match(/^(-?\d+(\.\d+)?)(px)?$/);$e&&(P=Number($e[1]))}else{const $e=A.getPropertyValue("max-height").trim();$e&&$e.endsWith("px")&&(P=Number($e.replace("px","")))}const nt=O.scrollHeight;d(P),h(nt),g(nt>P+1)};L();const ie=new ResizeObserver(L);return ie.observe(O),window.addEventListener("resize",L),()=>{ie.disconnect(),window.removeEventListener("resize",L)}},[e.description]);const S=a?Math.max(v,l):l;return c.jsxs("div",{className:"sf-card",role:"group","aria-label":o.join(" "),children:[c.jsxs("div",{className:"sf-card__title",children:[e.title,e.description&&c.jsx("div",{ref:y,className:`sf-card__description ${a?"open":""} ${b?"expandable":""}`,style:{maxHeight:`${S}px`},onClick:()=>{b&&u(O=>!O)},children:c.jsx("div",{children:e.description})})]}),c.jsx("div",{className:"sf-card__content",children:c.jsx("div",{className:`sf-card__image-wrap ${a?"hidden":""}`,children:e.imagePath?c.jsx("img",{src:e.imagePath,alt:o[0]}):c.jsx("div",{className:"sf-card__image-placeholder"})})}),c.jsxs("div",{className:`sf-card__bottom ${t}`,children:[c.jsxs("div",{className:"sf-card__price",children:[e.costMultiplier*n," ",
|
|
50
|
+
`,onClick:r.bind(Je),children:i&&t&&n&&c.jsx("span",{className:"spin-btn_label",children:n})})}),Tr=({onClick:e,disabled:t=!1,className:r,isActive:n})=>c.jsx("button",{className:`${r} ${t?"disabled":""} ${n?"active":""}`,onClick:e}),co=K(()=>{const{lastWin:e,balance:t,betAmount:r,displayCurrency:n,setNextBetAmount:i,setPrevBetAmount:s}=re,{setIsTurbo:o,isTurbo:a}=ne,{open:u}=x,{activeAnteBet:l,activeBonusFeature:d,activeInReelFeature:v,setActiveAnteBet:h}=ge,{isUIVisible:b,isAutoPlayDisabled:g,isBuyBonusDisabled:y,isBetAmountLabelsDisabled:S}=Je,O=m.useMemo(()=>l?.imagePath||v?.imagePath||d?.imagePath,[l,d,v]),L=m.useCallback(()=>{l?h.call(ge,null):u.call(x,M.buyBonus)},[l,h]);return c.jsx("div",{className:`ui-footer ${b?"":"hidden"}`,children:c.jsxs("div",{className:"top-row",children:[c.jsxs("div",{className:"left-group",children:[c.jsx(Js,{imagePath:O,disabled:y,onClick:L}),c.jsxs("div",{className:"balance-info",children:[c.jsx(wr,{label:"LAST WIN",value:`${e} ${n}`}),c.jsx(wr,{label:"BALANCE",value:`${t} ${n}`})]})]}),c.jsxs("div",{className:"bet-control",children:[c.jsx(Qs,{activeAnteBet:!!l,value:r,currency:n,onClick:u.bind(x,M.bet),disabled:S}),c.jsxs("div",{className:"bet-box",children:[c.jsx(Dr,{onClick:()=>s.call(re),className:"bet-btn minus",disabled:S}),c.jsx(uo,{onClick:()=>console.log("Spin"),state:"active"}),c.jsx(Dr,{onClick:()=>i.call(re),className:"bet-btn plus",disabled:S})]}),c.jsx(Tr,{className:"quick-spin",onClick:o.bind(ne,!a),isActive:a}),c.jsx(Tr,{className:"auto-spin",onClick:u.bind(x,M.autoplay),isActive:!1,disabled:g})]})]})})}),lo=({onMount:e,onUnmount:t,className:r})=>{const n=m.useRef(null);return m.useEffect(()=>(n.current&&e&&e(n.current),()=>{t?.()}),[e,t]),c.jsx("div",{ref:n,className:r,style:{width:"100%",height:"100%",position:"relative"}})};function fo(e){const t=m.useRef(null);return m.useEffect(()=>{if(typeof e!="function")return;const r=n=>{const i=t.current;if(!i)return;const s=n.target;s&&(i.contains(s)||e(n))};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e]),t}const po=K(()=>{const{volume:e,setVolume:t}=ne,[r,n]=m.useState(!1),i=fo(()=>n(!1)),s=m.useCallback(()=>{r||n(!0)},[r,n]);return c.jsxs(c.Fragment,{children:[r&&c.jsxs("div",{className:"volume-control",ref:i,children:[c.jsx("input",{type:"range",min:0,max:100,value:e,onChange:o=>t.call(ne,Number(o.target.value)),className:"slider","aria-label":"Volume"}),c.jsx("span",{className:"volume-value",children:e})]}),c.jsx("button",{className:`btn-sound ${e===0?"inactive":""}`,"aria-label":"Toggle Sound",onClick:s})]})}),vo=K(()=>{const{open:e}=x,{isUIVisible:t}=Je;return t?c.jsxs("div",{className:"settings-section",children:[c.jsx(po,{}),c.jsx("button",{className:"btn-settings","aria-label":"Open Settings",onClick:e.bind(x,M.settings)})]}):null}),ho="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",_o=K(()=>{const{betAmount:e,displayCurrency:t,setNextBetAmount:r,setPrevBetAmount:n}=re;return c.jsxs("div",{className:"overlay-bet-controller",children:[c.jsx("div",{className:"decrease-bet",onClick:n.bind(re)}),c.jsxs("div",{className:"bet-amount",children:[e," ",t]}),c.jsx("div",{className:"increase-bet",onClick:r.bind(re)})]})}),Pr=({value:e,onClick:t,active:r})=>c.jsx("div",{className:`rectLabel ${r?"current-active":""}`,onClick:()=>t(e),children:c.jsx("span",{children:e})}),bo=K(()=>{const{betAmountRange:e,setBet:t,betAmount:r}=re;return c.jsx("div",{className:"bet-popup-container",children:e.map((n,i)=>{const s=r===n;return c.jsx(Pr,{value:n,active:s,onClick:t.bind(re,n)},i)})})}),Vt=({checked:e,onChange:t})=>c.jsx("button",{className:`ap-toggle ${e?"ap-toggle--on":"ap-toggle--off"}`,"aria-pressed":e,onClick:()=>t(!e),type:"button",children:c.jsx("span",{className:"ap-toggle__knob"})}),cn=({active:e,onClick:t,children:r})=>c.jsx("button",{className:`ap-limit ${e?"ap-limit--active":""}`,onClick:t,type:"button",children:r}),xr=({active:e,onClick:t,children:r})=>c.jsx("button",{className:`ap-tab ${e?"ap-tab--active":""}`,onClick:t,type:"button",children:r}),go=({value:e,placeholder:t,inputType:r="text",className:n="",autoFocus:i=!0,onSubmit:s,onCancel:o})=>{const[a,u]=m.useState(""),l=m.useRef(null),d=m.useRef(!1);m.useEffect(()=>{u(e??""),d.current=!1},[e]),m.useEffect(()=>{i&&setTimeout(()=>{l.current?.focus(),l.current?.select()},0)},[i]);const v=()=>{d.current||(d.current=!0,s(a.trim()))},h=()=>{v()},b=g=>{g.key==="Enter"?(g.preventDefault(),v(),l.current?.blur()):g.key==="Escape"&&(u(e??""),o?.(),l.current?.blur())};return c.jsx("input",{ref:l,className:`ap-limit ${n}`,type:"number",value:a,placeholder:t,onChange:g=>u(g.target.value),onBlur:h,onKeyDown:b,inputMode:r==="number"?"numeric":void 0,"aria-label":"custom limit input"})},mo=K(()=>{const{specialFeatureSwitcherOn:e,setSpecialFeatureSwitcher:t,countRange:r,count:n,setCount:i,lossLimit:s,winLimit:o,setLossLimit:a,limitsRange:u,setWinLimit:l,setIsStarted:d}=me,[v,h]=m.useState(0),[b,g]=m.useState(!1),[y,S]=m.useState(""),O=m.useMemo(()=>v?o:s,[v,o,s]),L=m.useMemo(()=>v?l.bind(me):a.bind(me),[v,l,a]);m.useEffect(()=>{const A=O&&!u.includes(O);S(A?O:0)},[O,o]);const ie=!!n&&n>0;return c.jsxs("div",{className:"autoplay-wrap",children:[c.jsx("h3",{className:"ap-title",children:"Number of spins"}),c.jsx("div",{className:"autoplay-count",children:r.map((A,B)=>{const P=n===A;return c.jsx(Pr,{value:A,active:P,onClick:i.bind(me,A)},B)})}),c.jsxs("div",{className:"ap-switch-row",children:[c.jsx("div",{className:"ap-switch-label",children:"Stop on special feature WIN"}),c.jsx("div",{className:"ap-switch-control",children:c.jsx(Vt,{checked:e,onChange:A=>t.call(me,A)})})]}),c.jsxs("div",{className:"ap-tabs",children:[c.jsx(xr,{active:!v,onClick:()=>h(0),children:"Loss limit"}),c.jsx(xr,{active:!!v,onClick:()=>h(1),children:"Single WIN limit"})]}),c.jsx("div",{className:"ap-limits-panel",children:c.jsx("div",{className:"ap-limits-inner",children:c.jsxs("div",{className:"ap-limit-grid",children:[u.map((A,B)=>c.jsxs(cn,{active:O===A,onClick:()=>L(A),children:[A,"X BET"]},B)),c.jsx(cn,{active:!O,onClick:()=>L(null),children:"NO LIMIT"}),b?c.jsx(go,{value:""+y,inputType:"number",onSubmit:A=>{const B=A.trim();if(B===""){g(!1);return}const P=Number(B);S(P??0),L(P),g(!1)},onCancel:()=>{g(!1)}}):c.jsx(cn,{onClick:()=>{g(!0)},active:!!O&&O===Number(y),children:y?`${y}X BET`:"CUSTOM"})]})})}),c.jsx("div",{className:"ap-start-row",children:c.jsx("button",{className:`ap-start-btn ${ie?"":"ap-start-btn--disabled"}`,onClick:d.bind(me,!0),type:"button",disabled:!ie,children:"Start Autoplay"})})]})}),jr=({onClick:e,label:t,className:r})=>c.jsxs("button",{className:`sp-action ${r}`,type:"button",onClick:e,children:[c.jsx("span",{className:"sp-action__icon","aria-hidden":"true"}),c.jsx("span",{className:"sp-action__label",children:t})]}),tt=({onToggle:e,label:t,checked:r=!1})=>c.jsxs("div",{className:"sp-row",children:[c.jsx("div",{className:"sp-switch",children:c.jsx(Vt,{checked:r,onChange:()=>e(!r)})}),c.jsx("div",{className:"sp-label",children:t})]}),yo=K(()=>{const{introSkip:e,spaceToSkip:t,musicOn:r,soundsOn:n,spaceToSpin:i,setSpaceToSpin:s,setIntroSkip:o,setSpaceToSkip:a,setSoundsOn:u,setMusicOn:l}=ne,{open:d}=x;return c.jsxs("div",{className:"sp-wrap",children:[c.jsxs("div",{className:"sp-actions",children:[c.jsx(jr,{onClick:d.bind(x,M.history),className:"sp-action--history",label:"History"}),c.jsx(jr,{onClick:x.open.bind(x,M.payTable),className:"sp-action--paytable",label:"Paytable"})]}),c.jsx("h3",{className:"sp-section-title",children:"Audio"}),c.jsxs("div",{className:"sp-rows",children:[c.jsx(tt,{onToggle:l.bind(ne),checked:r,label:"Music"}),c.jsx(tt,{onToggle:u.bind(ne),checked:n,label:"Sounds"})]}),c.jsx("h3",{className:"sp-section-title",children:"Game launch"}),c.jsx("div",{className:"sp-rows",children:c.jsx(tt,{onToggle:o.bind(ne),checked:e,label:"Skip Intro"})}),c.jsx("h3",{className:"sp-section-title",children:"Keyboard"}),c.jsxs("div",{className:"sp-rows",children:[c.jsx(tt,{onToggle:s.bind(ne),checked:i,label:"Spacebar to Spin"}),c.jsx(tt,{onToggle:a.bind(ne),checked:t,label:"Spacebar to Skip"})]})]})}),Oo=({date:e,currencyCode:t,betAmount:r,winAmount:n})=>{const[i,s]=m.useState(!1);return c.jsxs("div",{className:`history-item ${i?"active":""}`,role:"row",children:[c.jsx("span",{className:"date-section",children:e}),c.jsxs("span",{className:"bet-section",children:[r,c.jsx("span",{className:"currency",children:t})]}),c.jsxs("span",{className:"win-section",children:[n,c.jsxs("span",{className:"currency",children:[" ",t]})]}),c.jsx("div",{className:`vector ${i?"up":"down"}`,"aria-hidden":"true",onClick:()=>s(!i)}),i&&c.jsxs("div",{className:"additional-info",children:[c.jsxs("button",{className:"additional-button replay",children:[c.jsx("div",{className:"replay-icon"}),"REPLAY"]}),c.jsx("button",{className:"additional-button",children:"LINK"})]})]})},Eo=K(()=>{const{data:e}=Br;return c.jsxs("div",{className:"history-wrap",role:"list","aria-label":"History list",children:[c.jsxs("div",{className:"history-item history-item--head",role:"row",children:[c.jsx("span",{className:"date-section",children:"Date"}),c.jsx("span",{className:"bet-section",children:"Bet"}),c.jsx("span",{className:"win-section",children:"Win"})]}),e.map((t,r)=>c.jsx(Oo,{date:t.date,betAmount:t.betAmount,winAmount:t.winAmount,currencyCode:t.currencyCode,id:"aa"},r))]})}),No=K(({item:e,type:t,onBuy:r})=>{const{betAmount:n}=re,{activeAnteBet:i,setActiveAnteBet:s}=ge,o=e.title.split(`
|
|
51
|
+
`),[a,u]=m.useState(!1),[l,d]=m.useState(84),[v,h]=m.useState(0),[b,g]=m.useState(!1),y=m.useRef(null);m.useLayoutEffect(()=>{const O=y.current;if(!O)return;const L=()=>{const A=getComputedStyle(O),B=A.getPropertyValue("--max-description-height").trim();let P=84;if(B){const $e=B.match(/^(-?\d+(\.\d+)?)(px)?$/);$e&&(P=Number($e[1]))}else{const $e=A.getPropertyValue("max-height").trim();$e&&$e.endsWith("px")&&(P=Number($e.replace("px","")))}const nt=O.scrollHeight;d(P),h(nt),g(nt>P+1)};L();const ie=new ResizeObserver(L);return ie.observe(O),window.addEventListener("resize",L),()=>{ie.disconnect(),window.removeEventListener("resize",L)}},[e.description]);const S=a?Math.max(v,l):l;return c.jsxs("div",{className:"sf-card",role:"group","aria-label":o.join(" "),children:[c.jsxs("div",{className:"sf-card__title",children:[e.title,e.description&&c.jsx("div",{ref:y,className:`sf-card__description ${a?"open":""} ${b?"expandable":""}`,style:{maxHeight:`${S}px`},onClick:()=>{b&&u(O=>!O)},children:c.jsx("div",{children:e.description})})]}),c.jsx("div",{className:"sf-card__content",children:c.jsx("div",{className:`sf-card__image-wrap ${a?"hidden":""}`,children:e.imagePath?c.jsx("img",{src:e.imagePath,alt:o[0]}):c.jsx("div",{className:"sf-card__image-placeholder"})})}),c.jsxs("div",{className:`sf-card__bottom ${t}`,children:[c.jsxs("div",{className:"sf-card__price",children:[e.costMultiplier*n," ",re.displayCurrency]}),t==="ante"?c.jsx("div",{className:"sf-card__toggle",children:c.jsx(Vt,{checked:i===e,onChange:O=>s.call(ge,O?e.id:null)})}):c.jsx("button",{className:"sf-buy-btn",type:"button",onClick:()=>r&&r(e.id),children:"BUY"})]})]})}),ln=({features:e,type:t,title:r,onBuy:n})=>c.jsxs(c.Fragment,{children:[c.jsx("h2",{className:"sf-section-title",children:r}),c.jsx("div",{className:"sf-grid",children:e.map((i,s)=>c.jsx(No,{item:i,type:t,onBuy:n},s))})]}),So=()=>{const{anteBets:e,inReelFeatures:t,bonusFeatures:r,buyHandler:n}=ge;return c.jsxs("div",{className:"sf-wrap",children:[e.length?c.jsx(ln,{features:e,type:Dt.ante,title:"Ante Bets"},0):null,t.length?c.jsx(ln,{features:t,type:Dt.buy,title:"Reel Features",onBuy:n.bind(ge)},1):null,r.length?c.jsx(ln,{features:r,type:Dt.buy,title:"Bonus",onBuy:n.bind(ge)},2):null]})},Ao=K(({payTableComponent:e})=>{const{activePopup:t}=x;if(!t)return null;const r=m.useMemo(()=>{switch(t){case M.bet:return bo;case M.autoplay:return mo;case M.settings:return yo;case M.history:return Eo;case M.buyBonus:return So;case M.payTable:return e;default:return null}},[t]);return r?c.jsx(r,{}):null}),Co=({configs:e,text:t,onClick:r})=>c.jsx("button",{type:"button",className:"additional-btn",style:{"--btn-bg":e?.background??"transparent","--btn-color":e?.color??"inherit"},onClick:typeof r=="function"?r:void 0,children:t}),wo=K(()=>{const{activeDialog:e}=et;return e?c.jsxs("div",{className:"dialogs-wrap","aria-live":"polite",children:[c.jsx("span",{className:"title",children:e?.title}),e?.imagePath&&c.jsx("img",{className:"dialog-image",src:e.imagePath,alt:e.title??"dialog image"}),c.jsx("span",{className:"message",children:e?.message}),e.toggle&&c.jsx(Vt,{checked:e.toggle.value,onChange:()=>e.toggle?.onClick()}),c.jsx("div",{className:"additional-btns",children:e?.buttons?.map((t,r)=>c.jsx(Co,{configs:t.configs,text:t.text,onClick:t.onClick},r))})]}):null}),Do=K(({payTableComponent:e})=>{const t=x.activePopup,r=et.activeDialog;if(!t&&!r)return null;const n=s=>{s.target===s.currentTarget&&(x.close(),et.close())},i=()=>{x.close(),et.close()};return c.jsxs("div",{className:`overlay ${r?"dialog":""}`,onClick:n,role:"presentation",children:[typeof t=="string"&&c.jsx("span",{className:"popup-title",children:t.toUpperCase()}),c.jsxs("div",{className:"overlay-content",role:"dialog","aria-modal":"true",children:[r&&c.jsx(wo,{}),!r&&t&&c.jsx(Ao,{payTableComponent:e})]}),!r&&c.jsx("div",{className:"overlay-close","aria-label":"Close",onClick:i,children:c.jsx("img",{src:ho,alt:"Close"})}),t===M.buyBonus&&c.jsx(_o,{})]})});function Vo({payTableComponent:e}){return c.jsxs("div",{className:"app",children:[c.jsxs("div",{className:"game-container",children:[c.jsx(lo,{}),c.jsx(vo,{}),c.jsx(co,{})]}),c.jsx(Do,{payTableComponent:e})]})}const Lo=()=>c.jsx(c.Fragment,{});function Bo(e,t=Lo){if(!e){console.error("element not found");return}Mr.createRoot(e).render(c.jsx(m.StrictMode,{children:c.jsx(Vo,{payTableComponent:t})}))}w.LOCAL_STORAGE_ITEM_NAMES=Qe,w.PopupNames=M,w.autoplayStore=me,w.betStore=re,w.bonusFeatureTypes=Dt,w.bonusStore=ge,w.createUi=Bo,w.defaultDialogButtonsConfigs=un,w.defaultDialogs=Lr,w.defaultDialogsNames=Vr,w.dialogStore=et,w.historyStore=Br,w.popupStore=x,w.settingsStore=ne,w.uiStore=Je,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})}));
|