@betorigami/games 2.10.1 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/advanced-dice/AdvancedDiceContent/AdvancedDiceContent.d.ts +24 -0
- package/dist/components/advanced-dice/AdvancedDiceContent/AdvancedDiceContent.styles.d.ts +1 -0
- package/dist/components/advanced-dice/AdvancedDiceContentBottom/AdvancedDiceContentBottom.d.ts +55 -0
- package/dist/components/advanced-dice/AdvancedDiceContentBottom/AdvancedDiceContentBottom.styles.d.ts +1 -0
- package/dist/components/advanced-dice/AdvancedDiceControls/AdvancedDiceAuto.d.ts +15 -0
- package/dist/components/advanced-dice/AdvancedDiceControls/AdvancedDiceControls.styles.d.ts +1 -0
- package/dist/components/advanced-dice/AdvancedDiceControls/AdvancedDiceManual.d.ts +16 -0
- package/dist/components/advanced-dice/AdvancedDiceGame.d.ts +41 -0
- package/dist/components/advanced-dice/AdvancedDiceGame.styles.d.ts +1 -0
- package/dist/components/advanced-dice/AdvancedDiceSlider/AdvancedDiceSlider.d.ts +30 -0
- package/dist/components/advanced-dice/AdvancedDiceSlider/AdvancedDiceSlider.styles.d.ts +1 -0
- package/dist/components/advanced-dice/advanced-dice.api.d.ts +14 -0
- package/dist/components/advanced-dice/advanced-dice.constants.d.ts +59 -0
- package/dist/components/advanced-dice/advanced-dice.mock.api.d.ts +13 -0
- package/dist/components/advanced-dice/advanced-dice.types.d.ts +84 -0
- package/dist/components/advanced-dice/advanced-dice.utils.d.ts +18 -0
- package/dist/components/advanced-dice/strategies/base-roll-type.strategy.d.ts +30 -0
- package/dist/components/advanced-dice/strategies/index.d.ts +4 -0
- package/dist/components/advanced-dice/strategies/roll-between-two.strategy.d.ts +20 -0
- package/dist/components/advanced-dice/strategies/roll-between.strategy.d.ts +12 -0
- package/dist/components/advanced-dice/strategies/roll-outside.strategy.d.ts +19 -0
- package/dist/components/advanced-dice/strategies/roll-type-strategy.factory.d.ts +3 -0
- package/dist/components/baccarat/BaccaratBetButton/BaccaratBetButton.d.ts +11 -0
- package/dist/components/baccarat/BaccaratBetButton/BaccaratBetButton.styles.d.ts +1 -0
- package/dist/components/baccarat/BaccaratContent/BaccaratContent.d.ts +39 -0
- package/dist/components/baccarat/BaccaratContent/BaccaratContent.styles.d.ts +1 -0
- package/dist/components/baccarat/BaccaratControls/BaccaratAuto.d.ts +18 -0
- package/dist/components/baccarat/BaccaratControls/BaccaratControls.styles.d.ts +1 -0
- package/dist/components/baccarat/BaccaratControls/BaccaratManual.d.ts +19 -0
- package/dist/components/baccarat/BaccaratDisplay/BaccaratDisplay.d.ts +22 -0
- package/dist/components/baccarat/BaccaratDisplay/BaccaratDisplay.styles.d.ts +1 -0
- package/dist/components/baccarat/BaccaratGame.d.ts +40 -0
- package/dist/components/baccarat/BaccaratGame.styles.d.ts +1 -0
- package/dist/components/baccarat/baccarat.api.d.ts +19 -0
- package/dist/components/baccarat/baccarat.constants.d.ts +16 -0
- package/dist/components/baccarat/baccarat.mock.api.d.ts +8 -0
- package/dist/components/baccarat/baccarat.types.d.ts +17 -0
- package/dist/components/baccarat/baccarat.utils.d.ts +20 -0
- package/dist/components/baccarat/baccarat.utils.test.d.ts +1 -0
- package/dist/components/blackjack/BlackjackContent/BlackjackContent.d.ts +49 -0
- package/dist/components/blackjack/BlackjackContent/BlackjackContent.styles.d.ts +1 -0
- package/dist/components/blackjack/BlackjackControls/BlackjackControls.styles.d.ts +1 -0
- package/dist/components/blackjack/BlackjackControls/BlackjackManual.d.ts +30 -0
- package/dist/components/blackjack/BlackjackGame.d.ts +89 -0
- package/dist/components/blackjack/BlackjackGame.styles.d.ts +1 -0
- package/dist/components/blackjack/BlackjackSideBetOnboarding/BlackjackSideBetOnboarding.d.ts +16 -0
- package/dist/components/blackjack/BlackjackSideBetOnboarding/BlackjackSideBetOnboarding.styles.d.ts +1 -0
- package/dist/components/blackjack/actions/betController.d.ts +20 -0
- package/dist/components/blackjack/actions/gameActionHandlers.d.ts +18 -0
- package/dist/components/blackjack/blackjack.api.d.ts +37 -0
- package/dist/components/blackjack/blackjack.helpers.d.ts +45 -0
- package/dist/components/blackjack/blackjack.icons.d.ts +4 -0
- package/dist/components/blackjack/blackjack.mock.api.d.ts +22 -0
- package/dist/components/blackjack/blackjack.utils.d.ts +18 -0
- package/dist/components/blackjack/blackjack.utils.test.d.ts +1 -0
- package/dist/components/blackjack/controllers/CardAnimationController.d.ts +36 -0
- package/dist/components/blitz/BlitzContent/BlitzCard.d.ts +9 -0
- package/dist/components/blitz/BlitzContent/BlitzCard.styles.d.ts +1 -0
- package/dist/components/blitz/BlitzContent/BlitzCardContainer.d.ts +19 -0
- package/dist/components/blitz/BlitzContent/BlitzCardContainer.styles.d.ts +1 -0
- package/dist/components/blitz/BlitzContent/BlitzContent.d.ts +13 -0
- package/dist/components/blitz/BlitzContent/BlitzContent.styles.d.ts +1 -0
- package/dist/components/blitz/BlitzControls/BlitzAuto.d.ts +23 -0
- package/dist/components/blitz/BlitzControls/BlitzControls.styles.d.ts +1 -0
- package/dist/components/blitz/BlitzControls/BlitzManual.d.ts +25 -0
- package/dist/components/blitz/BlitzControls/BlitzPicksInput.d.ts +15 -0
- package/dist/components/blitz/BlitzGame.d.ts +43 -0
- package/dist/components/blitz/BlitzGame.styles.d.ts +1 -0
- package/dist/components/blitz/blitz.api.d.ts +21 -0
- package/dist/components/blitz/blitz.mock.api.d.ts +10 -0
- package/dist/components/blitz/blitz.utils.d.ts +45 -0
- package/dist/components/diamonds/DiamondsContent/DiamondSlot.d.ts +17 -0
- package/dist/components/diamonds/DiamondsContent/DiamondSlot.styles.d.ts +1 -0
- package/dist/components/diamonds/DiamondsContent/DiamondsContent.d.ts +28 -0
- package/dist/components/diamonds/DiamondsContent/DiamondsContent.styles.d.ts +1 -0
- package/dist/components/diamonds/DiamondsContent/DiamondsMultiplierItem.d.ts +12 -0
- package/dist/components/diamonds/DiamondsContent/DiamondsMultiplierItem.styles.d.ts +1 -0
- package/dist/components/diamonds/DiamondsContent/DiamondsProfitTooltip.d.ts +14 -0
- package/dist/components/diamonds/DiamondsContent/DiamondsProfitTooltip.styles.d.ts +1 -0
- package/dist/components/diamonds/DiamondsContent/DiamondsSlots.d.ts +13 -0
- package/dist/components/diamonds/DiamondsContent/DiamondsSlots.styles.d.ts +1 -0
- package/dist/components/diamonds/DiamondsControls/DiamondsAuto.d.ts +11 -0
- package/dist/components/diamonds/DiamondsControls/DiamondsControls.styles.d.ts +1 -0
- package/dist/components/diamonds/DiamondsControls/DiamondsManual.d.ts +13 -0
- package/dist/components/diamonds/DiamondsGame.d.ts +18 -0
- package/dist/components/diamonds/DiamondsGame.styles.d.ts +1 -0
- package/dist/components/diamonds/diamonds.api.d.ts +11 -0
- package/dist/components/diamonds/diamonds.mock.api.d.ts +11 -0
- package/dist/components/diamonds/diamonds.utils.d.ts +100 -0
- package/dist/components/diamonds/svgs/diamond-gems.d.ts +1 -0
- package/dist/components/dice/DiceContent/DiceContent.d.ts +23 -0
- package/dist/components/dice/DiceContent/DiceContent.styles.d.ts +1 -0
- package/dist/components/dice/DiceContentBottom/DiceContentBottom.d.ts +29 -0
- package/dist/components/dice/DiceContentBottom/DiceContentBottom.styles.d.ts +1 -0
- package/dist/components/dice/DiceControls/DiceAuto.d.ts +14 -0
- package/dist/components/dice/DiceControls/DiceControls.styles.d.ts +1 -0
- package/dist/components/dice/DiceControls/DiceManual.d.ts +19 -0
- package/dist/components/dice/DiceGame.d.ts +34 -0
- package/dist/components/dice/DiceGame.styles.d.ts +1 -0
- package/dist/components/dice/DiceSlider/DiceSlider.d.ts +31 -0
- package/dist/components/dice/DiceSlider/DiceSlider.styles.d.ts +1 -0
- package/dist/components/dice/dice-calculations.d.ts +28 -0
- package/dist/components/dice/dice.api.d.ts +18 -0
- package/dist/components/dice/dice.mock.api.d.ts +10 -0
- package/dist/components/keno/KenoContent/KenoContent.d.ts +20 -0
- package/dist/components/keno/KenoContent/KenoContent.styles.d.ts +1 -0
- package/dist/components/keno/KenoContentBottom/KenoContentBottom.d.ts +21 -0
- package/dist/components/keno/KenoContentBottom/KenoContentBottom.styles.d.ts +1 -0
- package/dist/components/keno/KenoControls/KenoAuto.d.ts +16 -0
- package/dist/components/keno/KenoControls/KenoControls.styles.d.ts +1 -0
- package/dist/components/keno/KenoControls/KenoManual.d.ts +16 -0
- package/dist/components/keno/KenoGame.d.ts +52 -0
- package/dist/components/keno/KenoGame.styles.d.ts +1 -0
- package/dist/components/keno/KenoGrid/KenoGrid.d.ts +18 -0
- package/dist/components/keno/KenoGrid/KenoGrid.styles.d.ts +1 -0
- package/dist/components/keno/KenoTile/KenoTile.d.ts +19 -0
- package/dist/components/keno/KenoTile/KenoTile.styles.d.ts +1 -0
- package/dist/components/keno/keno.api.d.ts +24 -0
- package/dist/components/keno/keno.mock.api.d.ts +19 -0
- package/dist/components/limbo/LimboContent/LimboContent.d.ts +21 -0
- package/dist/components/limbo/LimboContent/LimboContent.styles.d.ts +1 -0
- package/dist/components/limbo/LimboContentBottom/LimboContentBottom.d.ts +21 -0
- package/dist/components/limbo/LimboContentBottom/LimboContentBottom.styles.d.ts +1 -0
- package/dist/components/limbo/LimboControls/LimboAuto.d.ts +13 -0
- package/dist/components/limbo/LimboControls/LimboControls.styles.d.ts +1 -0
- package/dist/components/limbo/LimboControls/LimboManual.d.ts +19 -0
- package/dist/components/limbo/LimboGame.d.ts +37 -0
- package/dist/components/limbo/LimboGame.styles.d.ts +1 -0
- package/dist/components/limbo/Multiplier/LimboMultiplier.d.ts +27 -0
- package/dist/components/limbo/Multiplier/LimboMultiplier.styles.d.ts +1 -0
- package/dist/components/limbo/limbo.api.d.ts +29 -0
- package/dist/components/limbo/limbo.mock.api.d.ts +8 -0
- package/dist/components/mines/MinesControls/MinesAuto.d.ts +18 -0
- package/dist/components/mines/MinesControls/MinesControls.styles.d.ts +1 -0
- package/dist/components/mines/MinesControls/MinesManual.d.ts +32 -0
- package/dist/components/mines/MinesGame.d.ts +48 -0
- package/dist/components/mines/MinesGame.styles.d.ts +1 -0
- package/dist/components/mines/MinesGrid/MinesGrid.d.ts +26 -0
- package/dist/components/mines/MinesGrid/MinesGrid.styles.d.ts +1 -0
- package/dist/components/mines/MinesTile/MinesTile.d.ts +49 -0
- package/dist/components/mines/MinesTile/MinesTile.styles.d.ts +1 -0
- package/dist/components/mines/mines.api.d.ts +66 -0
- package/dist/components/mines/mines.constants.d.ts +27 -0
- package/dist/components/mines/mines.mock.api.d.ts +22 -0
- package/dist/components/plinko/PlinkoContent/PlinkoBin/PlinkoBin.d.ts +13 -0
- package/dist/components/plinko/PlinkoContent/PlinkoBin/PlinkoBin.styles.d.ts +1 -0
- package/dist/components/plinko/PlinkoContent/PlinkoBins/PlinkoBins.d.ts +10 -0
- package/dist/components/plinko/PlinkoContent/PlinkoBins/PlinkoBins.styles.d.ts +1 -0
- package/dist/components/plinko/PlinkoContent/PlinkoContent.d.ts +67 -0
- package/dist/components/plinko/PlinkoContent/PlinkoContent.styles.d.ts +1 -0
- package/dist/components/plinko/PlinkoControls/PlinkoAuto.d.ts +14 -0
- package/dist/components/plinko/PlinkoControls/PlinkoControls.styles.d.ts +1 -0
- package/dist/components/plinko/PlinkoControls/PlinkoManual.d.ts +16 -0
- package/dist/components/plinko/PlinkoEngine.d.ts +164 -0
- package/dist/components/plinko/PlinkoGame.d.ts +47 -0
- package/dist/components/plinko/PlinkoGame.styles.d.ts +1 -0
- package/dist/components/plinko/PlinkoRowsSelect/PlinkoRiskSelect.d.ts +10 -0
- package/dist/components/plinko/PlinkoRowsSelect/PlinkoRiskSelect.styles.d.ts +1 -0
- package/dist/components/plinko/PlinkoRowsSelect/PlinkoRowsSelect.d.ts +10 -0
- package/dist/components/plinko/PlinkoRowsSlider/PlinkoRowsSlider.d.ts +12 -0
- package/dist/components/plinko/PlinkoRowsSlider/PlinkoRowsSlider.styles.d.ts +1 -0
- package/dist/components/plinko/plinko-content.utils.d.ts +77 -0
- package/dist/components/plinko/plinko.api.d.ts +14 -0
- package/dist/components/plinko/plinko.constants.d.ts +47 -0
- package/dist/components/plinko/plinko.mock.api.d.ts +11 -0
- package/dist/components/plinko/plinko.utils.d.ts +20 -0
- package/dist/components/roulette/RouletteAnimator/RouletteAnimator.d.ts +42 -0
- package/dist/components/roulette/RouletteAnimator/RouletteAnimator.styles.d.ts +1 -0
- package/dist/components/roulette/RouletteContent/RouletteContent.d.ts +34 -0
- package/dist/components/roulette/RouletteContent/RouletteContent.styles.d.ts +1 -0
- package/dist/components/roulette/RouletteControls/RouletteAuto.d.ts +19 -0
- package/dist/components/roulette/RouletteControls/RouletteControls.styles.d.ts +1 -0
- package/dist/components/roulette/RouletteControls/RouletteManual.d.ts +17 -0
- package/dist/components/roulette/RouletteGame.d.ts +37 -0
- package/dist/components/roulette/RouletteGame.styles.d.ts +1 -0
- package/dist/components/roulette/RouletteGrid/RouletteGrid.d.ts +21 -0
- package/dist/components/roulette/RouletteGrid/RouletteGrid.styles.d.ts +1 -0
- package/dist/components/roulette/RouletteTop/RouletteTop.d.ts +18 -0
- package/dist/components/roulette/RouletteTop/RouletteTop.styles.d.ts +1 -0
- package/dist/components/roulette/assets/index.d.ts +2 -0
- package/dist/components/roulette/roulette.api.d.ts +16 -0
- package/dist/components/roulette/roulette.constants.d.ts +57 -0
- package/dist/components/roulette/roulette.mock.api.d.ts +10 -0
- package/dist/components/roulette/roulette.positions.d.ts +58 -0
- package/dist/components/roulette/roulette.transformer.d.ts +4 -0
- package/dist/components/roulette/roulette.utils.d.ts +24 -0
- package/dist/components/shared/Alert/Alert.d.ts +27 -0
- package/dist/components/shared/Alert/Alert.styles.d.ts +1 -0
- package/dist/components/shared/AlertManager/AlertManager.d.ts +28 -0
- package/dist/components/shared/AlertManager/AlertManager.styles.d.ts +1 -0
- package/dist/components/shared/BetDetailsComponent/BetDetailsComponent.d.ts +21 -0
- package/dist/components/shared/BetDetailsComponent/BetDetailsComponent.styles.d.ts +1 -0
- package/dist/components/shared/BetResultModal/BetResultDataExtractor.d.ts +75 -0
- package/dist/components/shared/BetResultModal/BetResultModal.d.ts +31 -0
- package/dist/components/shared/BetResultModal/BetResultModal.styles.d.ts +1 -0
- package/dist/components/shared/Button/Button.d.ts +26 -0
- package/dist/components/shared/Button/Button.styles.d.ts +1 -0
- package/dist/components/shared/Button/ButtonGroup.d.ts +5 -0
- package/dist/components/shared/Button/ButtonGroup.styles.d.ts +1 -0
- package/dist/components/shared/ChipStack/ChipStack.d.ts +10 -0
- package/dist/components/shared/ChipStack/ChipStack.styles.d.ts +1 -0
- package/dist/components/shared/ChipTableGameComponent.d.ts +43 -0
- package/dist/components/shared/DepositButton/DepositButton.d.ts +9 -0
- package/dist/components/shared/Drawer/Drawer.d.ts +45 -0
- package/dist/components/shared/Drawer/Drawer.styles.d.ts +1 -0
- package/dist/components/shared/FairnessDetails/FairnessContent.d.ts +47 -0
- package/dist/components/shared/FairnessDetails/FairnessContent.styles.d.ts +1 -0
- package/dist/components/shared/FairnessDetails/FairnessDetails.d.ts +14 -0
- package/dist/components/shared/FairnessDetails/HistoryTable.d.ts +28 -0
- package/dist/components/shared/FairnessDetails/HistoryTable.styles.d.ts +1 -0
- package/dist/components/shared/Footer/Footer.d.ts +20 -0
- package/dist/components/shared/Footer/Footer.styles.d.ts +1 -0
- package/dist/components/shared/GameComponent.d.ts +77 -0
- package/dist/components/shared/GameInfo/GameInfoModal.d.ts +16 -0
- package/dist/components/shared/GameInfo/GameInfoModal.styles.d.ts +1 -0
- package/dist/components/shared/GameInfo/gameInfoConfig.d.ts +27 -0
- package/dist/components/shared/GameLayout/GameLayout.d.ts +51 -0
- package/dist/components/shared/GameLayout/GameLayout.styles.d.ts +1 -0
- package/dist/components/shared/GameOutcomeDisplay/GameOutcomeDisplay.d.ts +113 -0
- package/dist/components/shared/GameOutcomeDisplay/GameOutcomeDisplay.styles.d.ts +1 -0
- package/dist/components/shared/GameProviderWrapper.d.ts +106 -0
- package/dist/components/shared/GameProviderWrapper.styles.d.ts +1 -0
- package/dist/components/shared/GameSidebar/GameSidebar.d.ts +16 -0
- package/dist/components/shared/GameSidebar/GameSidebar.styles.d.ts +1 -0
- package/dist/components/shared/GameWinPopup/GameWinPopup.d.ts +27 -0
- package/dist/components/shared/GameWinPopup/GameWinPopup.styles.d.ts +1 -0
- package/dist/components/shared/GenericAutobet/BetCountInput.d.ts +12 -0
- package/dist/components/shared/GenericAutobet/GenericAutobet.d.ts +52 -0
- package/dist/components/shared/GenericAutobet/GenericAutobet.styles.d.ts +1 -0
- package/dist/components/shared/GenericAutobet/context/autobet.context.d.ts +13 -0
- package/dist/components/shared/HistoryPills/HistoryPills.d.ts +27 -0
- package/dist/components/shared/HistoryPills/HistoryPills.styles.d.ts +1 -0
- package/dist/components/shared/HotkeysModal/HotKeysModal.styles.d.ts +1 -0
- package/dist/components/shared/HotkeysModal/HotkeysModal.d.ts +10 -0
- package/dist/components/shared/Inputs/BetAmountInput/BetAmountInput.d.ts +44 -0
- package/dist/components/shared/Inputs/ChipInput/ChipInput.d.ts +19 -0
- package/dist/components/shared/Inputs/ChipInput/ChipInput.styles.d.ts +1 -0
- package/dist/components/shared/Inputs/ChipInput/chip-input.constants.d.ts +4 -0
- package/dist/components/shared/Inputs/CurrencyInput/RawCurrencyInput.d.ts +36 -0
- package/dist/components/shared/Inputs/CurrencyInput/RawCurrencyInput.styles.d.ts +1 -0
- package/dist/components/shared/Inputs/Input/Input.d.ts +74 -0
- package/dist/components/shared/Inputs/Input/Input.styles.d.ts +1 -0
- package/dist/components/shared/LottieIcon/LottieIcon.d.ts +24 -0
- package/dist/components/shared/Modal/Modal.d.ts +29 -0
- package/dist/components/shared/Modal/Modal.styles.d.ts +1 -0
- package/dist/components/shared/Modal/Portal.d.ts +13 -0
- package/dist/components/shared/ResponsiveModal/ResponsiveModal.d.ts +17 -0
- package/dist/components/shared/ResponsiveModal/ResponsiveModal.styles.d.ts +1 -0
- package/dist/components/shared/Select/Select.d.ts +34 -0
- package/dist/components/shared/Select/Select.styles.d.ts +1 -0
- package/dist/components/shared/Spinner/Spinner.d.ts +5 -0
- package/dist/components/shared/Spinner/Spinner.styles.d.ts +1 -0
- package/dist/components/shared/Switch/Switch.d.ts +11 -0
- package/dist/components/shared/Switch/Switch.styles.d.ts +1 -0
- package/dist/components/shared/Toggle/Toggle.d.ts +15 -0
- package/dist/components/shared/Toggle/Toggle.styles.d.ts +1 -0
- package/dist/components/shared/Tooltip/Tooltip.d.ts +56 -0
- package/dist/components/shared/Tooltip/Tooltip.styles.d.ts +1 -0
- package/dist/components/shared/context/game.context.d.ts +90 -0
- package/dist/components/shared/types/chip.types.d.ts +10 -0
- package/dist/components/wheel/WheelAnimator/WheelAnimator.d.ts +31 -0
- package/dist/components/wheel/WheelAnimator/WheelAnimator.styles.d.ts +1 -0
- package/dist/components/wheel/WheelContentBottom/WheelContentBottom.d.ts +24 -0
- package/dist/components/wheel/WheelContentBottom/WheelContentBottom.styles.d.ts +1 -0
- package/dist/components/wheel/WheelControls/WheelAuto.d.ts +16 -0
- package/dist/components/wheel/WheelControls/WheelControls.styles.d.ts +1 -0
- package/dist/components/wheel/WheelControls/WheelManual.d.ts +16 -0
- package/dist/components/wheel/WheelGame.d.ts +26 -0
- package/dist/components/wheel/WheelGame.styles.d.ts +1 -0
- package/dist/components/wheel/WheelLayout/WheelLayout.d.ts +19 -0
- package/dist/components/wheel/WheelLayout/WheelLayout.styles.d.ts +1 -0
- package/dist/components/wheel/WheelSvg/WheelSvg.d.ts +12 -0
- package/dist/components/wheel/WheelSvg/WheelSvg.styles.d.ts +1 -0
- package/dist/components/wheel/wheel.api.d.ts +11 -0
- package/dist/components/wheel/wheel.constants.d.ts +25 -0
- package/dist/components/wheel/wheel.mock.api.d.ts +10 -0
- package/dist/components/wheel/wheel.multipliers.d.ts +11 -0
- package/dist/components/wheel/wheel.patterns.d.ts +3 -0
- package/dist/components/wheel/wheel.utils.d.ts +41 -0
- package/dist/controllers/bet-result-cache.controller.d.ts +14 -0
- package/dist/controllers/haptics.controller.d.ts +17 -0
- package/dist/controllers/history.controller.d.ts +56 -0
- package/dist/controllers/hotkey.controller.d.ts +30 -0
- package/dist/controllers/sound/sound-definitions.d.ts +24 -0
- package/dist/controllers/sound/sound-effects.controller.d.ts +18 -0
- package/dist/controllers/sound/sound-layer.types.d.ts +45 -0
- package/dist/index.d.ts +17 -8345
- package/dist/index.mjs +21123 -2196
- package/dist/limbo-multiplier-bg.svg +1 -0
- package/dist/shared/animation.styles.d.ts +1 -0
- package/dist/shared/async-throttle-queue.d.ts +51 -0
- package/dist/shared/async-throttle-queue.test.d.ts +1 -0
- package/dist/shared/autobet-pacing.d.ts +4 -0
- package/dist/shared/bet.types.d.ts +197 -0
- package/dist/shared/button-feedback.d.ts +13 -0
- package/dist/shared/calculations/games/dice.d.ts +1 -0
- package/dist/shared/calculations/games/keno.d.ts +25 -0
- package/dist/shared/calculations/games/mines.d.ts +7 -0
- package/dist/shared/calculations/utils/big-validation.d.ts +71 -0
- package/dist/shared/calculations/utils/bignumber-max.d.ts +2 -0
- package/dist/shared/calculations/utils/bignumber-min.d.ts +7 -0
- package/dist/shared/calculations/utils/factorial.d.ts +2 -0
- package/dist/shared/calculations/utils/hex-to-bytes.d.ts +1 -0
- package/dist/shared/calculations/utils/ncr.d.ts +2 -0
- package/dist/shared/cards/Card.d.ts +30 -0
- package/dist/shared/cards/Card.styles.d.ts +1 -0
- package/dist/shared/cards/CardStack.d.ts +6 -0
- package/dist/shared/cards/CardStack.styles.d.ts +1 -0
- package/dist/shared/cards/card.constants.d.ts +11 -0
- package/dist/shared/cards/card.types.d.ts +10 -0
- package/dist/shared/cards/card.utils.d.ts +5 -0
- package/dist/shared/chip-state.utils.d.ts +125 -0
- package/dist/shared/chip-state.utils.test.d.ts +1 -0
- package/dist/shared/component.styles.d.ts +1 -0
- package/dist/shared/constants.d.ts +60 -0
- package/dist/shared/create-api-factory.d.ts +10 -0
- package/dist/shared/event-map.d.ts +342 -0
- package/dist/shared/format-monetary-amount.d.ts +7 -0
- package/dist/shared/format-win-chance.d.ts +1 -0
- package/dist/shared/format-win-chance.test.d.ts +1 -0
- package/dist/shared/get-correlation-id.d.ts +5 -0
- package/dist/shared/get-currency-details.d.ts +12 -0
- package/dist/shared/get-currency-details.test.d.ts +1 -0
- package/dist/shared/get-currency-precision.d.ts +2 -0
- package/dist/shared/get-currency-precision.test.d.ts +1 -0
- package/dist/shared/get-currency-symbol-position.d.ts +4 -0
- package/dist/shared/get-currency-symbol-position.test.d.ts +1 -0
- package/dist/shared/get-currency-symbol.d.ts +2 -0
- package/dist/shared/get-currency-symbol.test.d.ts +1 -0
- package/dist/shared/get-game-outcome.d.ts +1 -0
- package/dist/shared/hotkey-helper.d.ts +14 -0
- package/dist/shared/icons/currencies/arsIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/audIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/brlIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/cadIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/chfIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/clpIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/cnyIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/czkIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/dopIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/eurIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/gbpIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/gcIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/gtqIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/hnlIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/hufIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/idrIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/inrIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/jpyIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/krwIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/kztIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/mxnIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/myrIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/ngnIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/nokIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/nzdIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/penIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/phpIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/ronIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/rubIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/scIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/thbIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/tryIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/uahIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/usdIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/uzsIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/vndIcon.d.ts +1 -0
- package/dist/shared/icons/currencies/zarIcon.d.ts +1 -0
- package/dist/shared/icons/get-currency-icon.d.ts +2 -0
- package/dist/shared/icons/get-currency-icon.test.d.ts +1 -0
- package/dist/shared/icons/index.d.ts +1 -0
- package/dist/shared/icons/kenoGemIcon.d.ts +1 -0
- package/dist/shared/icons/minesBombIcon.d.ts +1 -0
- package/dist/shared/icons/minesGemIcon.d.ts +1 -0
- package/dist/shared/mock-bridged-game-service.d.ts +42 -0
- package/dist/shared/mock-rng-generator.d.ts +3 -0
- package/dist/shared/origami-action.type.d.ts +7 -0
- package/dist/shared/origami-element.d.ts +21 -0
- package/dist/shared/primary-input.d.ts +2 -0
- package/dist/shared/provably-fair-verifier.d.ts +28 -0
- package/dist/shared/provider-api/bet-result.d.ts +18 -0
- package/dist/shared/provider-api/error-codes.d.ts +9 -0
- package/dist/shared/sleep.d.ts +1 -0
- package/dist/shared/utils/format-autobet-settings.d.ts +5 -0
- package/dist/shared/utils/prevent-non-numeric-input.d.ts +4 -0
- package/dist/shared/wait-for-event.d.ts +1 -0
- package/dist/shared/watch.d.ts +26 -0
- package/dist/translations/ar.json.d.ts +406 -0
- package/dist/translations/de.json.d.ts +406 -0
- package/dist/translations/dynamic-loader.d.ts +15 -0
- package/dist/translations/en-soc.json.d.ts +406 -0
- package/dist/translations/en.json.d.ts +408 -0
- package/dist/translations/es.json.d.ts +406 -0
- package/dist/translations/fi.json.d.ts +406 -0
- package/dist/translations/fr.json.d.ts +406 -0
- package/dist/translations/hi.json.d.ts +406 -0
- package/dist/translations/id.json.d.ts +406 -0
- package/dist/translations/index.d.ts +6872 -0
- package/dist/translations/ja.json.d.ts +406 -0
- package/dist/translations/ko.json.d.ts +406 -0
- package/dist/translations/language.context.d.ts +9 -0
- package/dist/translations/pl.json.d.ts +406 -0
- package/dist/translations/pt.json.d.ts +406 -0
- package/dist/translations/ru.json.d.ts +406 -0
- package/dist/translations/tr.json.d.ts +406 -0
- package/dist/translations/utils.d.ts +22 -0
- package/dist/translations/vi.json.d.ts +406 -0
- package/dist/translations/zh.json.d.ts +406 -0
- package/dist/utils/active-elements.d.ts +15 -0
- package/dist/utils/animate.d.ts +22 -0
- package/dist/utils/animation-registry.d.ts +24 -0
- package/dist/utils/blur-active-element.d.ts +7 -0
- package/dist/utils/event.d.ts +2 -0
- package/dist/utils/focus-trap.d.ts +24 -0
- package/dist/utils/game-layout-style.d.ts +9 -0
- package/dist/utils/scroll.d.ts +22 -0
- package/dist/utils/slot.controller.d.ts +23 -0
- package/dist/utils/tabbable.d.ts +9 -0
- package/package.json +18 -15
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
2
|
+
import { AdvancedDiceHistory, RollType, Bounds } from '../advanced-dice.types';
|
|
3
|
+
export declare class AdvancedDiceContent extends OrigamiElement {
|
|
4
|
+
static styles: import('lit').CSSResult[];
|
|
5
|
+
isPlaying: boolean;
|
|
6
|
+
showDice: boolean;
|
|
7
|
+
isWin: boolean;
|
|
8
|
+
edge: number;
|
|
9
|
+
resultValue: number | null;
|
|
10
|
+
history: AdvancedDiceHistory[];
|
|
11
|
+
isDesktop: boolean;
|
|
12
|
+
rollType: RollType;
|
|
13
|
+
bounds: Bounds;
|
|
14
|
+
secondBounds: Bounds;
|
|
15
|
+
private handleBoundsChange;
|
|
16
|
+
private handleMultiplierInputChange;
|
|
17
|
+
private handleWinChanceInputChange;
|
|
18
|
+
private handleBoundsInputValidityChange;
|
|
19
|
+
/**
|
|
20
|
+
* Convert internal bounds (0-10000) to display scale (0-100) for the slider.
|
|
21
|
+
*/
|
|
22
|
+
private get sliderPositions();
|
|
23
|
+
render(): import('lit').TemplateResult<1>;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const advancedDiceContentStyles: import('lit').CSSResult;
|
package/dist/components/advanced-dice/AdvancedDiceContentBottom/AdvancedDiceContentBottom.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
2
|
+
import { gameContextType } from '../../shared/context/game.context';
|
|
3
|
+
import { SupportedEdgePercentages } from '../../../shared/constants';
|
|
4
|
+
import { RollType, Bounds } from '../advanced-dice.types';
|
|
5
|
+
export declare class AdvancedDiceContentBottom extends OrigamiElement {
|
|
6
|
+
static styles: import('lit').CSSResult[];
|
|
7
|
+
rollType: RollType;
|
|
8
|
+
bounds: Bounds;
|
|
9
|
+
secondBounds: Bounds;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
gameData?: gameContextType;
|
|
12
|
+
private _winChanceInputValue;
|
|
13
|
+
private _multiplierInputValue;
|
|
14
|
+
private _winChanceFocused;
|
|
15
|
+
private _multiplierFocused;
|
|
16
|
+
private _previousMultiplierInputValue;
|
|
17
|
+
private _previousWinChanceInputValue;
|
|
18
|
+
private _lowerBoundInputValue;
|
|
19
|
+
private _upperBoundInputValue;
|
|
20
|
+
private _secondLowerBoundInputValue;
|
|
21
|
+
private _secondUpperBoundInputValue;
|
|
22
|
+
private _lowerBoundFocused;
|
|
23
|
+
private _upperBoundFocused;
|
|
24
|
+
private _secondLowerBoundFocused;
|
|
25
|
+
private _secondUpperBoundFocused;
|
|
26
|
+
get edge(): SupportedEdgePercentages;
|
|
27
|
+
private get minMultiplier();
|
|
28
|
+
private get strategy();
|
|
29
|
+
set winChanceInputValue(value: string);
|
|
30
|
+
set multiplierInputValue(value: string);
|
|
31
|
+
private calculateWinChance;
|
|
32
|
+
private calculateMultiplier;
|
|
33
|
+
private isValidMultiplier;
|
|
34
|
+
private isValidWinChance;
|
|
35
|
+
private setWinChanceValue;
|
|
36
|
+
private setMultiplierValue;
|
|
37
|
+
boundsChangeHandler(): void;
|
|
38
|
+
private setKnobValue;
|
|
39
|
+
private setLowerBoundValue;
|
|
40
|
+
private setUpperBoundValue;
|
|
41
|
+
private setSecondLowerBoundValue;
|
|
42
|
+
private setSecondUpperBoundValue;
|
|
43
|
+
private validateKnobValue;
|
|
44
|
+
private checkAndEmitBoundsValidity;
|
|
45
|
+
private getLowerBoundError;
|
|
46
|
+
private getUpperBoundError;
|
|
47
|
+
private getSecondLowerBoundError;
|
|
48
|
+
private getSecondUpperBoundError;
|
|
49
|
+
private renderMultiplierInput;
|
|
50
|
+
private renderWinChanceInput;
|
|
51
|
+
private renderTwoKnobInputs;
|
|
52
|
+
private renderFourKnobInputs;
|
|
53
|
+
private renderBoundsInputs;
|
|
54
|
+
render(): import('lit').TemplateResult<1>;
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const advancedDiceContentBottomStyles: import('lit').CSSResult;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
2
|
+
import { gameContextType } from '../../shared/context/game.context';
|
|
3
|
+
import { RollType } from '../advanced-dice.types';
|
|
4
|
+
export declare class AdvancedDiceAuto extends OrigamiElement {
|
|
5
|
+
static styles: import('lit').CSSResult[];
|
|
6
|
+
inputsDisabled: boolean;
|
|
7
|
+
autobetStopping: boolean;
|
|
8
|
+
readonly autobetInProgress = false;
|
|
9
|
+
betDisabled: boolean;
|
|
10
|
+
isDesktop: boolean;
|
|
11
|
+
betMaxMultiplier: number;
|
|
12
|
+
rollType: RollType;
|
|
13
|
+
gameData?: gameContextType;
|
|
14
|
+
render(): import('lit').TemplateResult<1>;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const advancedDiceControlsStyles: import('lit').CSSResult;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RollType } from '../advanced-dice.types';
|
|
2
|
+
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
3
|
+
import { gameContextType } from '../../shared/context/game.context';
|
|
4
|
+
export declare class AdvancedDiceManual extends OrigamiElement {
|
|
5
|
+
static styles: import('lit').CSSResult[];
|
|
6
|
+
isPlaying: boolean;
|
|
7
|
+
profitOnWin: string;
|
|
8
|
+
betDisabled: boolean;
|
|
9
|
+
inputsDisabled: boolean;
|
|
10
|
+
betMaxMultiplier: number;
|
|
11
|
+
rollType: RollType;
|
|
12
|
+
gameData?: gameContextType;
|
|
13
|
+
private isBetAmountValid;
|
|
14
|
+
private _betAboveBalance;
|
|
15
|
+
render(): import('lit').TemplateResult<1>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { AutobetSettingsWithId, GameBetResult, GameComponent } from '../shared/GameComponent';
|
|
2
|
+
import { MockAdvancedDiceApi } from './advanced-dice.mock.api';
|
|
3
|
+
import { AdvancedDiceApi } from './advanced-dice.api';
|
|
4
|
+
export declare class AdvancedDiceGame extends GameComponent {
|
|
5
|
+
static styles: import('lit').CSSResult[];
|
|
6
|
+
private isManualPlaying;
|
|
7
|
+
private showDice;
|
|
8
|
+
private isWin;
|
|
9
|
+
private resultValue;
|
|
10
|
+
private history;
|
|
11
|
+
private rollType;
|
|
12
|
+
private bounds;
|
|
13
|
+
private secondBounds;
|
|
14
|
+
private _multiplierInputValid;
|
|
15
|
+
private _winChanceInputValid;
|
|
16
|
+
private _boundsInputValid;
|
|
17
|
+
private _diceManualEl?;
|
|
18
|
+
private _diceAutoEl?;
|
|
19
|
+
get isToggleDisabled(): boolean;
|
|
20
|
+
get areInputsDisabled(): boolean;
|
|
21
|
+
/** Roll type cycle order for hotkey */
|
|
22
|
+
private static readonly ROLL_TYPE_ORDER;
|
|
23
|
+
constructor();
|
|
24
|
+
/** Cycles through roll types: Inside → Outside → Between → Inside */
|
|
25
|
+
private cycleRollType;
|
|
26
|
+
get advancedDiceApi(): AdvancedDiceApi | MockAdvancedDiceApi;
|
|
27
|
+
private buildGameInputs;
|
|
28
|
+
private calculateWinChance;
|
|
29
|
+
private calculateMultiplier;
|
|
30
|
+
private isValidWinChance;
|
|
31
|
+
dicePlay(): Promise<void>;
|
|
32
|
+
private handleBetExecution;
|
|
33
|
+
addToHistory(multiplier: number, won: boolean, id: string): void;
|
|
34
|
+
protected executeAutobet(autobetSettings: AutobetSettingsWithId, currentBetAmount: string): Promise<GameBetResult>;
|
|
35
|
+
private handleRollTypeChange;
|
|
36
|
+
private handleBoundsChange;
|
|
37
|
+
private handleMultiplierInputChange;
|
|
38
|
+
private handleWinChanceInputChange;
|
|
39
|
+
private handleBoundsInputValidityChange;
|
|
40
|
+
render(): import('lit').TemplateResult<1>;
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const advancedDiceGameStyles: import('lit').CSSResult;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
2
|
+
import { gameContextType } from '../../shared/context/game.context';
|
|
3
|
+
import { RollType } from '../advanced-dice.types';
|
|
4
|
+
export declare class AdvancedDiceSlider extends OrigamiElement {
|
|
5
|
+
static styles: import('lit').CSSResult[];
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
resultValue: number | null;
|
|
8
|
+
showDice: boolean;
|
|
9
|
+
isWin: boolean;
|
|
10
|
+
inGameDisplay: boolean;
|
|
11
|
+
persistResult: boolean;
|
|
12
|
+
ignoreInstantBet: boolean;
|
|
13
|
+
rollType: RollType;
|
|
14
|
+
firstBoundsLower: number;
|
|
15
|
+
firstBoundsUpper: number;
|
|
16
|
+
secondBoundsLower: number;
|
|
17
|
+
secondBoundsUpper: number;
|
|
18
|
+
gameData?: gameContextType;
|
|
19
|
+
private get edge();
|
|
20
|
+
private get strategy();
|
|
21
|
+
private isResultVisible;
|
|
22
|
+
private fadeOutTimer?;
|
|
23
|
+
private lastStepValue;
|
|
24
|
+
private lastStepFeedbackTime;
|
|
25
|
+
disconnectedCallback(): void;
|
|
26
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
27
|
+
private handleKnobChange;
|
|
28
|
+
private playKnobStepFeedback;
|
|
29
|
+
render(): import('lit').TemplateResult<1>;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const advancedDiceSliderStyles: import('lit').CSSResult;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseStartArgs, StartBetResponse } from '../../shared/bet.types';
|
|
2
|
+
import { Language } from '../../translations';
|
|
3
|
+
import { AdvancedDiceInputs } from './advanced-dice.types';
|
|
4
|
+
export interface AdvancedDiceStartArgs extends BaseStartArgs {
|
|
5
|
+
language: Language;
|
|
6
|
+
}
|
|
7
|
+
export declare class AdvancedDiceApi {
|
|
8
|
+
private authToken;
|
|
9
|
+
private baseUrl;
|
|
10
|
+
constructor(authToken: string, baseUrl: string);
|
|
11
|
+
startBet(data: AdvancedDiceStartArgs & {
|
|
12
|
+
gameInputs: AdvancedDiceInputs;
|
|
13
|
+
}): Promise<StartBetResponse>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Bounds, RollType } from './advanced-dice.types';
|
|
2
|
+
import { Language } from '../../translations';
|
|
3
|
+
export declare const getRollTypeOptions: (language: Language) => {
|
|
4
|
+
value: RollType;
|
|
5
|
+
label: string;
|
|
6
|
+
}[];
|
|
7
|
+
/**
|
|
8
|
+
* History entry for advanced dice game.
|
|
9
|
+
*/
|
|
10
|
+
export interface AdvancedDiceHistory {
|
|
11
|
+
multiplier: number;
|
|
12
|
+
won: boolean;
|
|
13
|
+
id: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Default bounds configuration for each roll type.
|
|
17
|
+
*/
|
|
18
|
+
export interface DefaultBoundsConfig {
|
|
19
|
+
bounds?: Bounds;
|
|
20
|
+
firstBounds?: Bounds;
|
|
21
|
+
secondBounds?: Bounds;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Default bounds for each roll type.
|
|
25
|
+
* Used when switching between roll types to reset to sensible defaults.
|
|
26
|
+
*/
|
|
27
|
+
export declare const DEFAULT_BOUNDS: Record<RollType, DefaultBoundsConfig>;
|
|
28
|
+
/**
|
|
29
|
+
* Knob identifiers for the slider.
|
|
30
|
+
* For ROLL_BETWEEN and ROLL_OUTSIDE: only firstBoundsLower and firstBoundsUpper are used.
|
|
31
|
+
* For ROLL_BETWEEN_TWO: all four knobs are used.
|
|
32
|
+
*/
|
|
33
|
+
export declare const SLIDER_KNOB_IDS: readonly ["firstBoundsLower", "firstBoundsUpper", "secondBoundsLower", "secondBoundsUpper"];
|
|
34
|
+
/** Input value precision for multiplier and win chance */
|
|
35
|
+
export declare const INPUT_VALUE_PRECISION = 4;
|
|
36
|
+
/**
|
|
37
|
+
* Divisor used in win chance calculations.
|
|
38
|
+
* Matches the backend's EFFECTIVE_RANGE (values 0-10000 inclusive = 10001 possible values).
|
|
39
|
+
*/
|
|
40
|
+
export declare const CALCULATION_DIVISOR = 10001;
|
|
41
|
+
/** Maximum internal bound value (0-10000 scale) */
|
|
42
|
+
export declare const MAX_INTERNAL_BOUND = 10000;
|
|
43
|
+
/** Minimum internal bound value */
|
|
44
|
+
export declare const MIN_INTERNAL_BOUND = 0;
|
|
45
|
+
/** Precision for bound input values (display scale) */
|
|
46
|
+
export declare const BOUND_INPUT_PRECISION = 2;
|
|
47
|
+
/** Min bound value in display scale */
|
|
48
|
+
export declare const MIN_BOUND_DISPLAY = 0;
|
|
49
|
+
/** Max bound value in display scale (100 = 10000 internal) */
|
|
50
|
+
export declare const MAX_BOUND_DISPLAY = 100;
|
|
51
|
+
/** Minimum win chance percentage */
|
|
52
|
+
export declare const MIN_WIN_CHANCE = 0.01;
|
|
53
|
+
/**
|
|
54
|
+
* Get the minimum number of winning spots.
|
|
55
|
+
* This is edge-independent - always 1 to ensure player can win.
|
|
56
|
+
*
|
|
57
|
+
* @returns Minimum number of winning spots (always 1)
|
|
58
|
+
*/
|
|
59
|
+
export declare const MIN_WIN_RANGE = 1;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BetResult } from '../../shared/bet.types';
|
|
2
|
+
import { AdvancedDiceStartArgs } from './advanced-dice.api';
|
|
3
|
+
import { AdvancedDiceInputs } from './advanced-dice.types';
|
|
4
|
+
export declare class MockAdvancedDiceApi {
|
|
5
|
+
private readonly edge;
|
|
6
|
+
constructor(edge: number);
|
|
7
|
+
startBet(data: AdvancedDiceStartArgs & {
|
|
8
|
+
gameInputs: AdvancedDiceInputs;
|
|
9
|
+
}): Promise<{
|
|
10
|
+
success: true;
|
|
11
|
+
data: BetResult;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export type Bounds = {
|
|
2
|
+
lower: number;
|
|
3
|
+
upper: number;
|
|
4
|
+
};
|
|
5
|
+
export declare enum RollType {
|
|
6
|
+
ROLL_BETWEEN = "ROLL_BETWEEN",
|
|
7
|
+
ROLL_OUTSIDE = "ROLL_OUTSIDE",
|
|
8
|
+
ROLL_BETWEEN_TWO = "ROLL_BETWEEN_TWO"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* History entry for advanced dice game.
|
|
12
|
+
*/
|
|
13
|
+
export interface AdvancedDiceHistory {
|
|
14
|
+
multiplier: number;
|
|
15
|
+
won: boolean;
|
|
16
|
+
id: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Default bounds configuration for each roll type.
|
|
20
|
+
*/
|
|
21
|
+
export interface DefaultBoundsConfig {
|
|
22
|
+
bounds?: Bounds;
|
|
23
|
+
firstBounds?: Bounds;
|
|
24
|
+
secondBounds?: Bounds;
|
|
25
|
+
}
|
|
26
|
+
export type RollBetween = {
|
|
27
|
+
mode: RollType.ROLL_BETWEEN;
|
|
28
|
+
bounds: Bounds;
|
|
29
|
+
};
|
|
30
|
+
export type RollOutside = {
|
|
31
|
+
mode: RollType.ROLL_OUTSIDE;
|
|
32
|
+
bounds: Bounds;
|
|
33
|
+
};
|
|
34
|
+
export type RollBetweenTwo = {
|
|
35
|
+
mode: RollType.ROLL_BETWEEN_TWO;
|
|
36
|
+
firstBounds: Bounds;
|
|
37
|
+
secondBounds: Bounds;
|
|
38
|
+
};
|
|
39
|
+
export type AdvancedDiceInputs = RollBetween | RollOutside | RollBetweenTwo;
|
|
40
|
+
/**
|
|
41
|
+
* Data structure for bounds results.
|
|
42
|
+
*/
|
|
43
|
+
export interface BoundsData {
|
|
44
|
+
bounds: Bounds;
|
|
45
|
+
secondBounds?: Bounds;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Result of a bounds validation operation (discriminated union).
|
|
49
|
+
*/
|
|
50
|
+
export type BoundsValidationResult = {
|
|
51
|
+
readonly valid: true;
|
|
52
|
+
} | {
|
|
53
|
+
readonly valid: false;
|
|
54
|
+
readonly error: string;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Result of a slider knob validation operation (discriminated union).
|
|
58
|
+
*/
|
|
59
|
+
export type SliderValidationResult = {
|
|
60
|
+
readonly valid: true;
|
|
61
|
+
} | {
|
|
62
|
+
readonly valid: false;
|
|
63
|
+
readonly clampedValue: number;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Result of evaluating a game outcome.
|
|
67
|
+
*/
|
|
68
|
+
export interface OutcomeResult {
|
|
69
|
+
winChancePercent: number;
|
|
70
|
+
isWin: boolean;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Slider knob positions in display scale (0-100).
|
|
74
|
+
*/
|
|
75
|
+
export interface SliderPositions {
|
|
76
|
+
firstBoundsLower: number;
|
|
77
|
+
firstBoundsUpper: number;
|
|
78
|
+
secondBoundsLower: number;
|
|
79
|
+
secondBoundsUpper: number;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Knob identifiers for the slider.
|
|
83
|
+
*/
|
|
84
|
+
export type SliderKnobId = 'firstBoundsLower' | 'firstBoundsUpper' | 'secondBoundsLower' | 'secondBoundsUpper';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SliderPositions, Bounds } from './advanced-dice.types';
|
|
2
|
+
export declare class AdvancedDiceUtils {
|
|
3
|
+
static isWithinBoundsInclusive(bounds: Bounds, result: number): boolean;
|
|
4
|
+
static getInclusiveBoundsRange(bounds: Bounds): number;
|
|
5
|
+
static isWithinBoundsExclusive(bounds: Bounds, result: number): boolean;
|
|
6
|
+
static getExclusiveBoundsRange(bounds: Bounds): number;
|
|
7
|
+
static calculateMultiplier(winChance: number, edge: number): string;
|
|
8
|
+
static getMinMultiplier(edge: number, minMultiplier: number | null): string;
|
|
9
|
+
static getMaxMultiplier(edge: number): string;
|
|
10
|
+
static getWinChanceFromMultiplier(multiplier: string, edge: number): number;
|
|
11
|
+
static getMultiplierFromWinChance(winChance: string, edge: number): string;
|
|
12
|
+
static isValidMultiplier(multiplier: string, edge: number, minMultiplier: number | null): boolean;
|
|
13
|
+
static isValidWinChance(winChance: string, edge: number, minMultiplier: number | null): boolean;
|
|
14
|
+
static boundToDisplayString(internalValue: number): string;
|
|
15
|
+
static boundsToSliderPositions(bounds: Bounds, secondBounds?: Bounds): SliderPositions;
|
|
16
|
+
static getMaxWinRange(edge: number, minMultiplier: number | null): number;
|
|
17
|
+
static getMaxWinChance(edge: number, minMultiplier: number | null): number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BoundsData, BoundsValidationResult, SliderValidationResult, SliderPositions, SliderKnobId, OutcomeResult, RollType, Bounds } from '../advanced-dice.types';
|
|
2
|
+
export declare abstract class BaseRollTypeStrategy {
|
|
3
|
+
abstract readonly rollType: RollType;
|
|
4
|
+
abstract readonly knobCount: 2 | 4;
|
|
5
|
+
abstract readonly hasSecondBounds: boolean;
|
|
6
|
+
abstract getMinKnobGap(edge: number, minMultiplier: number | null): number;
|
|
7
|
+
abstract getMaxKnobGap(edge: number, minMultiplier: number | null): number;
|
|
8
|
+
abstract calculateWinRange(bounds: Bounds, secondBounds?: Bounds): number;
|
|
9
|
+
abstract isWinningResult(bounds: Bounds, secondBounds: Bounds | undefined, result: number): boolean;
|
|
10
|
+
abstract scaleBoundsForWinChance(currentBounds: Bounds, currentSecondBounds: Bounds | undefined, newWinChance: number, edge: number, minMultiplier: number | null): BoundsData;
|
|
11
|
+
calculateWinChance(bounds: Bounds, secondBounds?: Bounds): number;
|
|
12
|
+
evaluateOutcome(bounds: Bounds, secondBounds: Bounds | undefined, result: number): OutcomeResult;
|
|
13
|
+
validateBounds(bounds: Bounds, secondBounds: Bounds | undefined, edge: number, minMultiplier: number | null): BoundsValidationResult;
|
|
14
|
+
validateKnobInput(currentBounds: Bounds, currentSecondBounds: Bounds | undefined, knobId: SliderKnobId, newValueDisplay: number, edge: number, minMultiplier: number | null): BoundsValidationResult;
|
|
15
|
+
protected buildProposedBounds(currentBounds: Bounds, _currentSecondBounds: Bounds | undefined, knobId: SliderKnobId, newValueInternal: number): BoundsData;
|
|
16
|
+
validateSliderKnobMove(knobId: SliderKnobId, newValue: number, currentPositions: SliderPositions, edge: number, minMultiplier: number | null): SliderValidationResult;
|
|
17
|
+
protected getKnobAllowedRange(knobId: SliderKnobId, currentPositions: SliderPositions, edge: number, minMultiplier: number | null): {
|
|
18
|
+
min: number;
|
|
19
|
+
max: number;
|
|
20
|
+
};
|
|
21
|
+
sliderPositionsToBounds(positions: SliderPositions): BoundsData;
|
|
22
|
+
boundsToSliderPositions(bounds: Bounds, secondBounds?: Bounds): SliderPositions;
|
|
23
|
+
getBoundsFromKnobChange(currentBounds: Bounds, _currentSecondBounds: Bounds | undefined, knobId: SliderKnobId, newValueDisplay: number, edge: number, minMultiplier: number | null): BoundsData;
|
|
24
|
+
protected clampBounds(lower: number, upper: number): Bounds;
|
|
25
|
+
protected enforceMinGap(bounds: Bounds, minGap: number): Bounds;
|
|
26
|
+
protected scaleZoneAroundCenter(bounds: Bounds, newExclusiveRange: number, minGap: number): Bounds;
|
|
27
|
+
protected pushKnobsRight(values: number[], fromIndex: number, minGap: number): number[];
|
|
28
|
+
protected pushKnobsLeft(values: number[], fromIndex: number, minGap: number): number[];
|
|
29
|
+
protected enforceGapForMovedKnob(values: Record<SliderKnobId, number>, movedKnob: SliderKnobId, minGap: number): Record<SliderKnobId, number>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseRollTypeStrategy } from './base-roll-type.strategy';
|
|
2
|
+
import { BoundsData, BoundsValidationResult, SliderPositions, SliderKnobId, RollType, Bounds } from '../advanced-dice.types';
|
|
3
|
+
export declare class RollBetweenTwoStrategy extends BaseRollTypeStrategy {
|
|
4
|
+
readonly rollType = RollType.ROLL_BETWEEN_TWO;
|
|
5
|
+
readonly knobCount: 4;
|
|
6
|
+
readonly hasSecondBounds = true;
|
|
7
|
+
getMinKnobGap(_edge: number, _minMultiplier: number | null): number;
|
|
8
|
+
getMaxKnobGap(edge: number, minMultiplier: number | null): number;
|
|
9
|
+
calculateWinRange(bounds: Bounds, secondBounds?: Bounds): number;
|
|
10
|
+
isWinningResult(bounds: Bounds, secondBounds: Bounds | undefined, result: number): boolean;
|
|
11
|
+
scaleBoundsForWinChance(currentBounds: Bounds, currentSecondBounds: Bounds | undefined, newWinChance: number, edge: number, minMultiplier: number | null): BoundsData;
|
|
12
|
+
validateBounds(bounds: Bounds, secondBounds: Bounds | undefined, edge: number, minMultiplier: number | null): BoundsValidationResult;
|
|
13
|
+
protected buildProposedBounds(currentBounds: Bounds, currentSecondBounds: Bounds | undefined, knobId: SliderKnobId, newValueInternal: number): BoundsData;
|
|
14
|
+
protected getKnobAllowedRange(knobId: SliderKnobId, currentPositions: SliderPositions, edge: number, minMultiplier: number | null): {
|
|
15
|
+
min: number;
|
|
16
|
+
max: number;
|
|
17
|
+
};
|
|
18
|
+
sliderPositionsToBounds(positions: SliderPositions): BoundsData;
|
|
19
|
+
getBoundsFromKnobChange(currentBounds: Bounds, currentSecondBounds: Bounds | undefined, knobId: SliderKnobId, newValueDisplay: number, edge: number, minMultiplier: number | null): BoundsData;
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseRollTypeStrategy } from './base-roll-type.strategy';
|
|
2
|
+
import { BoundsData, RollType, Bounds } from '../advanced-dice.types';
|
|
3
|
+
export declare class RollBetweenStrategy extends BaseRollTypeStrategy {
|
|
4
|
+
readonly rollType = RollType.ROLL_BETWEEN;
|
|
5
|
+
readonly knobCount: 2;
|
|
6
|
+
readonly hasSecondBounds = false;
|
|
7
|
+
getMinKnobGap(_edge: number, _minMultiplier: number | null): number;
|
|
8
|
+
getMaxKnobGap(edge: number, minMultiplier: number | null): number;
|
|
9
|
+
calculateWinRange(bounds: Bounds): number;
|
|
10
|
+
isWinningResult(bounds: Bounds, _secondBounds: Bounds | undefined, result: number): boolean;
|
|
11
|
+
scaleBoundsForWinChance(currentBounds: Bounds, _currentSecondBounds: Bounds | undefined, newWinChance: number, edge: number, minMultiplier: number | null): BoundsData;
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseRollTypeStrategy } from './base-roll-type.strategy';
|
|
2
|
+
import { BoundsData, BoundsValidationResult, SliderPositions, SliderKnobId, RollType, Bounds } from '../advanced-dice.types';
|
|
3
|
+
export declare class RollOutsideStrategy extends BaseRollTypeStrategy {
|
|
4
|
+
readonly rollType = RollType.ROLL_OUTSIDE;
|
|
5
|
+
readonly knobCount: 2;
|
|
6
|
+
readonly hasSecondBounds = false;
|
|
7
|
+
private readonly minLowerBound;
|
|
8
|
+
private readonly maxUpperBound;
|
|
9
|
+
getMinKnobGap(edge: number, minMultiplier: number | null): number;
|
|
10
|
+
getMaxKnobGap(_edge: number, _minMultiplier: number | null): number;
|
|
11
|
+
calculateWinRange(bounds: Bounds): number;
|
|
12
|
+
isWinningResult(bounds: Bounds, _secondBounds: Bounds | undefined, result: number): boolean;
|
|
13
|
+
scaleBoundsForWinChance(currentBounds: Bounds, _currentSecondBounds: Bounds | undefined, newWinChance: number, edge: number, minMultiplier: number | null): BoundsData;
|
|
14
|
+
validateBounds(bounds: Bounds, secondBounds: Bounds | undefined, edge: number, minMultiplier: number | null): BoundsValidationResult;
|
|
15
|
+
protected getKnobAllowedRange(knobId: SliderKnobId, currentPositions: SliderPositions, edge: number, minMultiplier: number | null): {
|
|
16
|
+
min: number;
|
|
17
|
+
max: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { BaccaratBetType } from '@betorigami/game-calculations';
|
|
3
|
+
export declare class BaccaratBetButton extends LitElement {
|
|
4
|
+
static styles: import('lit').CSSResult[];
|
|
5
|
+
type: BaccaratBetType;
|
|
6
|
+
label?: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
amount: number;
|
|
9
|
+
showHotkeys: boolean;
|
|
10
|
+
render(): import('lit').TemplateResult<1>;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const baccaratBetButtonStyles: import('lit').CSSResult;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
2
|
+
import { gameContextType } from '../../shared/context/game.context';
|
|
3
|
+
import { GameRound } from '../baccarat.types';
|
|
4
|
+
import { BaccaratBetType } from '@betorigami/game-calculations';
|
|
5
|
+
export declare class BaccaratContent extends OrigamiElement {
|
|
6
|
+
static styles: import('lit').CSSResult[];
|
|
7
|
+
isDesktop: boolean;
|
|
8
|
+
isPlaying: boolean;
|
|
9
|
+
gameWinPopupShowing: boolean;
|
|
10
|
+
gameRound: GameRound | null;
|
|
11
|
+
instantMode: boolean;
|
|
12
|
+
slowReveal: boolean;
|
|
13
|
+
gameData?: gameContextType;
|
|
14
|
+
placedChips: Map<BaccaratBetType, number>;
|
|
15
|
+
canUndo: boolean;
|
|
16
|
+
canClear: boolean;
|
|
17
|
+
private cardStack;
|
|
18
|
+
private baccaratDisplay;
|
|
19
|
+
private playerCards;
|
|
20
|
+
private bankerCards;
|
|
21
|
+
private displayedWinner;
|
|
22
|
+
private _slowRevealActive;
|
|
23
|
+
private get showHotkeys();
|
|
24
|
+
private lastProcessedRoundId;
|
|
25
|
+
onGameRoundChange(): Promise<void>;
|
|
26
|
+
private dealInstant;
|
|
27
|
+
/**
|
|
28
|
+
* Deal cards with sequential animation.
|
|
29
|
+
* Cards are added one by one, animated, then flipped.
|
|
30
|
+
*/
|
|
31
|
+
private dealAnimated;
|
|
32
|
+
private _revealResolve;
|
|
33
|
+
private awaitReveals;
|
|
34
|
+
private dealSlowReveal;
|
|
35
|
+
private dealCardsFaceDown;
|
|
36
|
+
private handleCardReveal;
|
|
37
|
+
private handleChipInteraction;
|
|
38
|
+
render(): import('lit').TemplateResult<1>;
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const baccaratContentStyles: import('lit').CSSResult;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
2
|
+
import { gameContextType } from '../../shared/context/game.context';
|
|
3
|
+
export declare class BaccaratAuto extends OrigamiElement {
|
|
4
|
+
static styles: import('lit').CSSResult[];
|
|
5
|
+
inputsDisabled: boolean;
|
|
6
|
+
autobetStopping: boolean;
|
|
7
|
+
readonly autobetInProgress = false;
|
|
8
|
+
betDisabled: boolean;
|
|
9
|
+
isDesktop: boolean;
|
|
10
|
+
perClickAmount: string;
|
|
11
|
+
totalBetAmount: string;
|
|
12
|
+
maxPerClickAmount?: string;
|
|
13
|
+
noChips: boolean;
|
|
14
|
+
gameData?: gameContextType;
|
|
15
|
+
private isBetAmountValid;
|
|
16
|
+
private handlePerClickAmountChange;
|
|
17
|
+
render(): import('lit').TemplateResult<1>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const baccaratControlsStyles: import('lit').CSSResult;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as OrigamiElement } from '../../../shared/origami-element';
|
|
2
|
+
import { gameContextType } from '../../shared/context/game.context';
|
|
3
|
+
export declare class BaccaratManual extends OrigamiElement {
|
|
4
|
+
isPlaying: boolean;
|
|
5
|
+
betDisabled: boolean;
|
|
6
|
+
inputsDisabled: boolean;
|
|
7
|
+
noChips: boolean;
|
|
8
|
+
slowReveal: boolean;
|
|
9
|
+
perClickAmount: string;
|
|
10
|
+
totalBetAmount: string;
|
|
11
|
+
maxPerClickAmount?: string;
|
|
12
|
+
gameData: gameContextType;
|
|
13
|
+
private isBetAmountValid;
|
|
14
|
+
private _betAboveBalance;
|
|
15
|
+
static styles: import('lit').CSSResult[];
|
|
16
|
+
private handlePerClickAmountChange;
|
|
17
|
+
private handleSlowRevealToggle;
|
|
18
|
+
render(): import('lit').TemplateResult<1>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { DisplayedCard } from '../baccarat.types';
|
|
3
|
+
import { BaccaratOutcome } from '@betorigami/game-calculations';
|
|
4
|
+
import { OrigamiCard } from '../../../shared/cards/Card';
|
|
5
|
+
export declare class BaccaratDisplay extends LitElement {
|
|
6
|
+
static styles: import('lit').CSSResult[];
|
|
7
|
+
playerCards: DisplayedCard[];
|
|
8
|
+
bankerCards: DisplayedCard[];
|
|
9
|
+
displayedWinner: BaccaratOutcome | null;
|
|
10
|
+
instantMode: boolean;
|
|
11
|
+
slowReveal: boolean;
|
|
12
|
+
outcomeDisplay: boolean;
|
|
13
|
+
cardBackImageUrl: string | null;
|
|
14
|
+
private cards;
|
|
15
|
+
/** Get a card element by its ID. Used by parent for animations. */
|
|
16
|
+
getCardById(cardId: string): OrigamiCard | undefined;
|
|
17
|
+
private get displayedPlayerValue();
|
|
18
|
+
private get displayedBankerValue();
|
|
19
|
+
private handleCardClick;
|
|
20
|
+
private renderHand;
|
|
21
|
+
render(): import('lit').TemplateResult<1>;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const baccaratDisplayStyles: import('lit').CSSResult;
|