{"version":3,"file":"static/chunks/45028-a03dc6c4f8b0b285.js","sources":["webpack://_N_E/./src/LegacyApp/client/components/converterValue/converterValue.jsx","webpack://_N_E/./src/LegacyApp/client/components/converterValue/converterValue.container.js","webpack://_N_E/./src/LegacyApp/client/components/converterValue/converterValue.style.js","webpack://_N_E/./src/LegacyApp/client/components/profitInput/profitInput.container.js","webpack://_N_E/./src/modules/games/Game/store/game/thunks/updateProfit.thunk.ts","webpack://_N_E/./src/LegacyApp/client/components/profitInput/profitInput.jsx","webpack://_N_E/./src/LegacyApp/client/modules/style/components/GameForm.styled.ts","webpack://_N_E/./src/common/components/number/balanceAmount/balanceCurrencyValue.style.ts","webpack://_N_E/./src/common/selectors/options.selectors.ts","webpack://_N_E/./src/modules/balance/styles/Balance.styled.ts","webpack://_N_E/./src/modules/balance/styles/BalanceWrapper.styled.ts","webpack://_N_E/./src/modules/games/Game/store/dice/selectors/useDiceRollRuleSelector.ts","webpack://_N_E/./src/modules/games/Game/store/game/thunks/updatePayout.thunk.ts","webpack://_N_E/./src/modules/games/Game/store/gameValidation/thunks/validateBetAmountThunk.js","webpack://_N_E/./src/modules/games/Game/store/gameValidation/thunks/validateProfitActionThunk.ts"],"sourceRoot":"","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { mathService } from '../../modules/math/mathService';\nimport { checkTablet } from '../../modules/app/appService';\nimport { config } from '../../config';\nimport { trans } from '../../modules/translation/translate';\nimport { Tooltip } from '../tooltip';\nimport { enhanceComponent } from '../../wrappers/enhanceComponent';\nimport { countPrecision } from '../../../methods/math/countPrecision';\nimport { mapApiCurrencyToLayoutCurrency } from '../../../../common/controllers/currency/currenciesSettings';\nimport { isTrueOrZero } from '../../../../common/methods/isTrueOrZero';\nimport { ConverterValueStyle } from './converterValue.style';\n\nclass ConverterValue extends React.PureComponent {\n\tstatic propTypes = {\n\t\tvalue: PropTypes.any,\n\t\tswitch: PropTypes.func,\n\t\tconverterCurrency: PropTypes.any,\n\t\tcurrency: PropTypes.string,\n\t\tprecision: PropTypes.number,\n\t\tprice: PropTypes.any,\n\t\tconfirm: PropTypes.bool,\n\t\tdeviceType: PropTypes.string,\n\t};\n\n\tswitch = () => {\n\t\tif (!this.actionEnabled()) {\n\t\t\treturn;\n\t\t}\n\t\tthis.props.switch(this.props.currency);\n\t};\n\n\tparsePrecision = (value, currency) => {\n\t\tconst precision = countPrecision(value);\n\t\tconst defaultPrecision =\n\t\t\tcurrency !== 'usd'\n\t\t\t\t? this.props.precision || config.decimals.bet\n\t\t\t\t: this.props.precision || 6;\n\t\tif (precision > defaultPrecision) {\n\t\t\treturn defaultPrecision;\n\t\t}\n\t\treturn precision === 1 ? 2 : precision;\n\t};\n\n\tactionEnabled = () => {\n\t\treturn checkTablet(this.props.deviceType);\n\t};\n\n\trender() {\n\t\tif (!this.props.converterCurrency) {\n\t\t\treturn null;\n\t\t}\n\t\tif (mapApiCurrencyToLayoutCurrency(this.props.currency) === 'usd') {\n\t\t\treturn null;\n\t\t}\n\t\tconst currency =\n\t\t\tthis.props.converterCurrency === 'usd' ? this.props.currency : 'usd';\n\t\tconst price = currency === 'usd' ? this.props.price : 1;\n\t\tlet value = this.props.value || 0;\n\t\tif (isTrueOrZero(value) && price !== 1) {\n\t\t\tvalue = this.props.value * price;\n\t\t}\n\t\tconst activeSwitch = this.actionEnabled();\n\t\tconst precision = this.parsePrecision(value, currency);\n\t\tconst content = (\n\t\t\t\n\t\t\t\t{currency === 'usd' && '~'}\n\t\t\t\t{mathService.currencyValue(\n\t\t\t\t\tvalue || 0,\n\t\t\t\t\tmapApiCurrencyToLayoutCurrency(currency),\n\t\t\t\t\tprecision,\n\t\t\t\t\tprecision,\n\t\t\t\t)}\n\t\t\t\n\t\t);\n\t\treturn activeSwitch ? (\n\t\t\t\n\t\t\t\t{content}\n\t\t\t\n\t\t) : (\n\t\t\t{content}\n\t\t);\n\t}\n}\n\nConverterValue = enhanceComponent({\n\tConverterValue,\n});\n\nexport { ConverterValue };\n","import { connect } from 'react-redux';\nimport { converterSwitchCurrency } from '../../store/converter/converter.actions';\nimport { ConverterValue } from './converterValue';\n\nconst mapStateToProps = (state, props) => {\n\treturn {\n\t\tprice: state.stats.price[props.currency || state.user.activeCurrency],\n\t\tconverterCurrency: state.converter.currency,\n\t\tcurrency: props.currency || state.user.activeCurrency,\n\t\tconfirm: state.converter.confirm,\n\t\tdeviceType: state.app.deviceType,\n\t};\n};\n\nconst mapDispatchToProps = (dispatch) => {\n\treturn {\n\t\tswitch: (data) => dispatch(converterSwitchCurrency(data)),\n\t};\n};\n\nconst ConverterValueContainer = connect(\n\tmapStateToProps,\n\tmapDispatchToProps,\n)(ConverterValue);\n\nexport { ConverterValueContainer };\n","import styled from 'styled-components';\nimport { box, noclick, onclick } from '../../modules/style/defaults';\nimport { fontSize } from '../../modules/style/mixins/fontSize';\n\nexport const ConverterValueStyle = styled.div.attrs(() => ({\n\tclassName: 'converter-value',\n}))`\n\t${onclick}\n\t${box}\n ${fontSize({\n\t\tsize: '10px',\n\t\tsizeDesktop: '12px',\n\t})};\n\tcolor: var(--color-dark-100);\n\tline-height: 1;\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\talign-items: flex-end;\n\ttext-transform: uppercase;\n\t${(props) => (props.noClick ? noclick : '')}\n`;\n","import { connect } from 'react-redux';\nimport {\n\tconverterToNative,\n\tconverterToUsd,\n} from '../../store/converter/converter.actions';\nimport { gameUpdateProfitError } from '../../../../modules/games/Game/store/gameValidation/gameValidation.actions';\nimport { updateProfitThunk } from '../../../../modules/games/Game/store/game/thunks/updateProfit.thunk';\nimport { ProfitInput } from './profitInput';\n\nconst mapStateToProps = (state, props) => {\n\treturn {\n\t\tvalue: props.value || state.game?.profitValue[props.game],\n\t\terror: state.gameValidation?.profitError[props.game],\n\t\tbetAmount: state.game?.betAmount[props.game],\n\t\tpayoutValue: props.payoutValue || state.game?.payoutValue[props.game],\n\t\tcurrency: props.currency || state.user.activeCurrency,\n\t\tisMobile: state.app.mobile,\n\t\tformCurrency:\n\t\t\tstate.converter.currency === 'usd'\n\t\t\t\t? state.converter.currency\n\t\t\t\t: props.currency || state.user.activeCurrency,\n\t\tdeviceType: state.app.deviceType,\n\t};\n};\n\nconst mapDispatchToProps = (dispatch, props) => {\n\treturn {\n\t\tupdateProfitValue: (value) => {\n\t\t\tif (props.updateProfitValue) {\n\t\t\t\treturn props.updateProfitValue(value, props.game);\n\t\t\t}\n\t\t\tdispatch(updateProfitThunk(value, undefined, props.game));\n\t\t},\n\t\tupdateProfitError: (error) => {\n\t\t\treturn dispatch(\n\t\t\t\tgameUpdateProfitError({\n\t\t\t\t\tvalue: error,\n\t\t\t\t\tgame: props.game,\n\t\t\t\t}),\n\t\t\t);\n\t\t},\n\t\ttoUsd: (...argument) => dispatch(converterToUsd(...argument)),\n\t\ttoNative: (...argument) => dispatch(converterToNative(...argument)),\n\t};\n};\n\nconst ProfitInputContainer = connect(\n\tmapStateToProps,\n\tmapDispatchToProps,\n)(ProfitInput);\n\nexport { ProfitInputContainer };\n","import { mathService } from '@legacyApp/client/modules/math/mathService';\nimport {\n\tgetPayoutDecimal,\n\tgetProfit,\n} from '@legacyApp/client/modules/app/gameService';\nimport { AppThunk } from '@legacyApp/types/store/ThunkAction';\nimport { roundNumber } from '@common/methods/roundNumber/roundNumber';\nimport { gameUpdateProfit } from '../game.actions';\nimport { validateProfitActionThunk } from '../../gameValidation/thunks/validateProfitActionThunk';\n\nexport const updateProfitThunk = (betAmount, payoutValue, game): AppThunk => {\n\treturn (dispatch, getState) => {\n\t\tconst state = getState();\n\t\tif (!payoutValue) {\n\t\t\tpayoutValue = state.game?.payoutValue[game];\n\t\t}\n\t\tif (!betAmount) {\n\t\t\tbetAmount = state.game?.betAmount[game];\n\t\t}\n\t\tpayoutValue = mathService.parseValue(payoutValue);\n\t\tbetAmount = mathService.parseValue(betAmount);\n\t\tif (!payoutValue && payoutValue !== 0) {\n\t\t\tpayoutValue = state.game?.payoutValue[game];\n\t\t}\n\t\tif (!betAmount) {\n\t\t\tbetAmount = 0;\n\t\t}\n\t\tconst profitValue = getProfit(\n\t\t\tbetAmount,\n\t\t\troundNumber(payoutValue, getPayoutDecimal(game)),\n\t\t);\n\t\tif (state.game?.profitValue[game] === profitValue) {\n\t\t\treturn;\n\t\t}\n\t\tdispatch(\n\t\t\tvalidateProfitActionThunk({\n\t\t\t\tvalue: profitValue,\n\t\t\t\tchangeError: true,\n\t\t\t\tgame,\n\t\t\t}),\n\t\t);\n\t\tdispatch(\n\t\t\tgameUpdateProfit({\n\t\t\t\tvalue: profitValue,\n\t\t\t\tgame,\n\t\t\t}),\n\t\t);\n\t};\n};\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport styled from 'styled-components';\nimport { preventDefault } from '@common/methods/preventDefault';\nimport { Input } from '../input/input';\nimport { Tooltip } from '../tooltip';\nimport { trans } from '../../modules/translation/translate';\nimport { mathService } from '../../modules/math/mathService';\nimport { CurrencySymbol } from '../currencySymbol/currencySymbol';\nimport { config } from '../../config';\nimport { ConverterValueContainer } from '../converterValue';\nimport { checkTablet, getId } from '../../modules/app/appService';\nimport { enhanceComponent } from '../../wrappers/enhanceComponent';\nimport { InputWrapperStyle } from '../input/styled/inputWrapper.style';\nimport { InputLabelStyle } from '../input/styled/inputLabelStyle';\nimport { InputRelativeBoxStyle } from '../input/styled/inputRelativeBox.styled';\n\nclass ProfitInput extends React.PureComponent {\n\tstatic propTypes = {\n\t\tvalue: PropTypes.any,\n\t\terror: PropTypes.any,\n\t\tgame: PropTypes.string.isRequired,\n\t\tclassNames: PropTypes.any,\n\t\tcurrency: PropTypes.string,\n\t\tbetAmount: PropTypes.any,\n\t\tpayoutValue: PropTypes.any,\n\t\tisMobile: PropTypes.bool,\n\t\tupdateProfitValue: PropTypes.func,\n\t\tupdateProfitError: PropTypes.func,\n\t\twithPayoutLabel: PropTypes.bool,\n\t\tnoUpdate: PropTypes.bool,\n\t\tformCurrency: PropTypes.any,\n\t\ttoUsd: PropTypes.func,\n\t\ttoNative: PropTypes.func,\n\t\tdeviceType: PropTypes.string,\n\t\tlocalTheme: PropTypes.any,\n\t\tonModal: PropTypes.bool,\n\t\thideTooltip: PropTypes.bool,\n\t};\n\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tconvertedValue: 0,\n\t\t\tid: 'profit',\n\t\t};\n\t}\n\n\tcomponentDidMount() {\n\t\tthis.setState({ id: `profit-${getId()}` });\n\t\tthis.props.updateProfitError(false);\n\t\tif (!this.props.noUpdate) {\n\t\t\tthis.props.updateProfitValue(this.props.betAmount);\n\t\t}\n\t\tthis.setConverted();\n\t}\n\n\tcomponentWillUnmount() {\n\t\tthis.props.updateProfitError(false);\n\t}\n\n\tcomponentDidUpdate(prevProps) {\n\t\tif (mathService.isNumberDiff(prevProps.value, this.props.value)) {\n\t\t\tthis.setConverted();\n\t\t}\n\n\t\tif (this.props.noUpdate) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst isBetAmountChanged = mathService.isNumberDiff(\n\t\t\tprevProps.betAmount,\n\t\t\tthis.props.betAmount,\n\t\t);\n\t\tconst isPayoutValueChanged = mathService.isNumberDiff(\n\t\t\tprevProps.payoutValue,\n\t\t\tthis.props.payoutValue,\n\t\t);\n\n\t\tif (isBetAmountChanged || isPayoutValueChanged) {\n\t\t\tthis.props.updateProfitValue(\n\t\t\t\tthis.props.betAmount,\n\t\t\t\tthis.props.payoutValue,\n\t\t\t);\n\t\t}\n\t}\n\n\tsetConverted = () => {\n\t\tconst convertedValue = this.props.toUsd(\n\t\t\tthis.props.value,\n\t\t\tthis.props.currency,\n\t\t\tconfig.decimals.balance,\n\t\t\tundefined,\n\t\t\ttrue,\n\t\t);\n\t\tthis.setState({\n\t\t\tconvertedValue,\n\t\t});\n\t};\n\n\trender() {\n\t\tconst converter = checkTablet(this.props.deviceType) && (\n\t\t\t\n\t\t);\n\t\tconst labelCurrency = this.props.isMobile && (\n\t\t\t\n\t\t);\n\t\tconst inputCurrency = !this.props.isMobile && (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t);\n\n\t\treturn (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{trans({ label: 'Profit' })}{' '}\n\t\t\t\t\t\t{this.props.withPayoutLabel &&\n\t\t\t\t\t\t\t`(x${this.props.payoutValue || '1.00'})`}{' '}\n\t\t\t\t\t\t{labelCurrency}\n\t\t\t\t\t{' '}\n\t\t\t\t\t{converter}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t{inputCurrency}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t);\n\t}\n}\n\nexport const ProfitInputWrapper = styled(InputWrapperStyle)``;\n\nProfitInput = enhanceComponent({\n\tProfitInput,\n});\n\nexport { ProfitInput };\n","import styled, { css } from 'styled-components';\nimport { StyledBalance } from '@modules/balance/styles/Balance.styled';\nimport { StyledBalanceWrapper } from '@modules/balance/styles/BalanceWrapper.styled';\nimport { CheckboxWrapperStyle } from '../../../components/checkbox/checkbox.style';\nimport { box } from '../defaults';\nimport { fontSize } from '../mixins/fontSize';\nimport { InputWrapperStyle } from '../../../components/input/styled/inputWrapper.style';\nimport { InputLabelStyle } from '../../../components/input/styled/inputLabelStyle';\n\nexport const StyledGameFormBox = styled.div`\n\twidth: 100%;\n`;\n\nexport const StyledGameForm = styled.form.attrs<{\n\t$noMargin?: boolean;\n}>({\n\tclassName: 'game-form',\n})<{\n\t$noMargin?: boolean;\n}>`\n\tmargin: 0 -5px;\n\tfloat: left;\n\twidth: calc(100% + 10px);\n\n\t${InputWrapperStyle},\n\t& > div {\n\t\tfloat: left;\n\t\tpadding: 3px;\n\t\tposition: relative;\n\n\t\t${InputLabelStyle} {\n\t\t\tmargin-bottom: 5px;\n\t\t\tmargin-top: 5px;\n\n\t\t\t@media (min-width: ${(props) => props.theme.media.minWidthDesktop}) {\n\t\t\t\tmargin-bottom: 7px;\n\t\t\t}\n\n\t\t\t@media (min-width: ${(props) => props.theme.media.minWidthBigDesktop}) {\n\t\t\t\tmargin-bottom: 10px;\n\t\t\t}\n\n\t\t\t@media (max-width: ${(props) => props.theme.media.maxWidthMobile}) {\n\t\t\t\tmargin-bottom: 5px;\n\t\t\t}\n\n\t\t\t@media (max-width: ${(props) => props.theme.media.maxWidthVerySmall}) {\n\t\t\t\tmargin-bottom: 3px;\n\t\t\t}\n\t\t}\n\n\t\t.relative {\n\t\t\t> i,\n\t\t\t.buttons-box > i,\n\t\t\t> svg {\n\t\t\t\tposition: absolute;\n\t\t\t\tbottom: 7px;\n\t\t\t\tright: 10px;\n\t\t\t\tcolor: #ffffff;\n\t\t\t\t${(props) =>\n\t\t\t\t\tfontSize({ sizeBigScreen: props.theme.text.size.bigScreen })};\n\t\t\t\ttransition: ${(props) => props.theme.layout.transition};\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\theight: 100%;\n\t\t\t\ttop: 0;\n\n\t\t\t\t@media (max-width: ${(props) => props.theme.media.maxWidthTablet}) {\n\t\t\t\t\tright: 7px;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t.buttons-box > i {\n\t\t\t\tposition: relative;\n\t\t\t\tpadding: 0;\n\n\t\t\t\t@media (max-width: ${(props) => props.theme.media.maxWidthDesktop}) {\n\t\t\t\t\tright: 5px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.input {\n\t\t\twidth: 100%;\n\t\t\tmax-width: unset;\n\t\t}\n\n\t\t${StyledBalance} {\n\t\t\tjustify-content: center;\n\t\t}\n\n\t\t${StyledBalanceWrapper} {\n\t\t\tmargin: 0 !important;\n\t\t}\n\n\t\t@media (min-width: ${(props) => props.theme.media.minWidthDesktop}) {\n\t\t\tpadding: 7px 15px;\n\t\t}\n\n\t\t@media (min-width: ${(props) => props.theme.media.minWidthBigDesktop}) {\n\t\t\tpadding: 15px;\n\t\t}\n\t}\n\n\t.game-box {\n\t\t.relative {\n\t\t\t.input {\n\t\t\t\tpadding: 0 10px;\n\t\t\t\tmin-height: ${(props) => props.theme.layout.input.height};\n\t\t\t}\n\n\t\t\ti {\n\t\t\t\tright: 0;\n\t\t\t}\n\n\t\t\t@media (max-width: ${(props) => props.theme.media.maxWidthMobile}) {\n\t\t\t\t.input {\n\t\t\t\t\tpadding: 0 5px;\n\t\t\t\t\tmin-height: ${(props) => props.theme.layout.input.heightMobile};\n\t\t\t\t}\n\n\t\t\t\ti {\n\t\t\t\t\tpadding-left: 0;\n\t\t\t\t\tpadding-right: 5px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t${CheckboxWrapperStyle} {\n\t\t\tmargin-right: 5px;\n\t\t}\n\t}\n\n\t@media (min-width: ${(props) => props.theme.media.minWidthDesktop}) {\n\t\tmargin: 0;\n\t\twidth: 100%;\n\t}\n\n\t@media (max-width: ${(props) => props.theme.media.maxWidthMobile}) {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tjustify-content: center;\n\t\talign-items: flex-end;\n\t}\n\n\t.user-modal & {\n\t\tmargin: 0 !important;\n\t\twidth: 100% !important;\n\n\t\t${(props) =>\n\t\t\tprops.$noMargin\n\t\t\t\t? css`\n\t\t\t\t\t\tmargin: -7px !important;\n\t\t\t\t\t\twidth: calc(100% + 14px) !important;\n\n\t\t\t\t\t\t.input-wrapper {\n\t\t\t\t\t\t\tpadding: 7px !important;\n\t\t\t\t\t\t}\n\t\t\t\t `\n\t\t\t\t: ''}\n\t}\n`;\n\nexport const StyledModalGameForm = styled(StyledGameForm)`\n\t${box};\n\ttext-align: left !important;\n`;\n","import classnames from 'classnames';\nimport styled, { css } from 'styled-components';\n\nimport { calcStyle } from '@legacyApp/client/modules/style/methods/calcStyle';\nimport { chatViewport } from '@legacyApp/client/modules/style/methods/chatViewport';\nimport { fontSize } from '@legacyApp/client/modules/style/mixins/fontSize';\n\nexport interface BalanceCurrencyValueProps {\n\tclassName?: string;\n\t$color?: string;\n}\n\nexport interface BalanceCurrencyValueBigProps {\n\tclassName?: string;\n\tvalue?: string | number;\n}\n\nexport interface BalanceCurrencyValueSmallProps {\n\tclassName?: string;\n}\n\nexport const BalanceCurrencyValueBigStyle = styled.span.attrs(\n\t(props) => ({\n\t\tclassName: classnames('balance__currency--value-big', props.className),\n\t}),\n)`\n\t${(props) =>\n\t\tchatViewport(\n\t\t\t(viewportPadding) => css`\n\t\t\t\t${fontSize({\n\t\t\t\t\tsize: '11px',\n\t\t\t\t\tsizeDesktop: '13px',\n\t\t\t\t\tminWidth: calcStyle({\n\t\t\t\t\t\ta: props.theme.media.minWidthSmallTablet,\n\t\t\t\t\t\tb: viewportPadding,\n\t\t\t\t\t}),\n\t\t\t\t\tsizeBigScreen: '15px',\n\t\t\t\t})}\n\t\t\t`,\n\t\t)}\n`;\n\nexport const BalanceCurrencyValueSmallStyle = styled.span.attrs(\n\t(props) => ({\n\t\tclassName: classnames('balance__currency--value-small', props.className),\n\t}),\n)`\n\t${chatViewport(\n\t\t(viewportPadding) => css`\n\t\t\tposition: relative;\n\t\t\t${(props) =>\n\t\t\t\tfontSize({\n\t\t\t\t\tsize: '9px',\n\t\t\t\t\tsizeDesktop: '10px',\n\t\t\t\t\tminWidth: calcStyle({\n\t\t\t\t\t\ta: props.theme.media.minWidthDesktop,\n\t\t\t\t\t\tb: viewportPadding,\n\t\t\t\t\t}),\n\t\t\t\t\tsizeBigScreen: '12px',\n\t\t\t\t})}\n\t\t\t${(props) =>\n\t\t\t\tfontSize({\n\t\t\t\t\tlabel: 'line-height',\n\t\t\t\t\tsize: '12px',\n\t\t\t\t\tsizeDesktop: '13px',\n\t\t\t\t\tminWidth: calcStyle({\n\t\t\t\t\t\ta: props.theme.media.minWidthDesktop,\n\t\t\t\t\t\tb: viewportPadding,\n\t\t\t\t\t}),\n\t\t\t\t\tsizeBigScreen: '15px',\n\t\t\t\t})}\n\t\t`,\n\t)}\n`;\n","import { shallowEqual } from 'react-redux';\nimport { useAppSelector } from '@legacyApp/hooks/store/useAppSelector';\nimport { OptionsType } from '@legacyApp/client/store/options/options.constants';\n\nexport const useOptionEnabled = (optionLabel: OptionsType) =>\n\tuseAppSelector(\n\t\t(state) => state.options?.[optionLabel],\n\t\tshallowEqual,\n\t);\n","import styled, { css } from 'styled-components';\nimport { cutTextStyle } from '@legacyApp/client/modules/style/defaults';\nimport { fontSize } from '@legacyApp/client/modules/style/mixins/fontSize';\nimport { calcStyle } from '@legacyApp/client/modules/style/methods/calcStyle';\nimport { chatViewport } from '@legacyApp/client/modules/style/methods/chatViewport';\nimport {\n\tBalanceCurrencyValueBigProps,\n\tBalanceCurrencyValueBigStyle,\n\tBalanceCurrencyValueSmallStyle,\n} from '@common/components/number/balanceAmount/balanceCurrencyValue.style';\nimport { mathService } from '@legacyApp/client/modules/math/mathService';\nimport { config } from '@legacyApp/client/config';\nimport { StyledActiveBalanceCurrency } from '@modules/balance/styles/BalanceCurrency.styled';\nimport { CSSClassNameBalanceCurrencyValue } from '@common/components/number/balanceAmount/balanceAmount';\n\ninterface BalanceStyledProps {\n\tonlySelector?: boolean;\n\tref?: any;\n\tvalue?: number;\n}\n\nconst minWidthMixin = (\n\tvalue: BalanceCurrencyValueBigProps['value'],\n\tsize = 8,\n) => {\n\treturn `${\n\t\tmathService.currencyValue(\n\t\t\tvalue,\n\t\t\tundefined,\n\t\t\tconfig.decimals.balance,\n\t\t\tconfig.decimals.balance,\n\t\t).length * size\n\t}px`;\n};\n\nexport const StyledBalance = styled.div.attrs(() => ({\n\tclassName: 'balance',\n}))`\n\t${(props) => (props.onlySelector ? 'width: 100%;' : '')};\n\tcursor: pointer;\n\tdisplay: flex;\n\tflex-direction: row;\n\tfont-family: ${(props) => props.theme.text.fonts.Black};\n\tposition: relative;\n\n\t.icon-wrapper {\n\t\tpadding-right: 25px !important;\n\n\t\t[class*='icon'] {\n\t\t\tright: 8px;\n\t\t}\n\t}\n\n\t.${CSSClassNameBalanceCurrencyValue} {\n\t\t${cutTextStyle};\n\t}\n\n\t${BalanceCurrencyValueBigStyle} {\n\t\t@media (min-width: ${(props) => props.theme.media.minWidthMobile}) {\n\t\t\tdisplay: inline-block;\n\t\t\tmin-width: ${(props) => minWidthMixin(props.value, 6.5)};\n\t\t}\n\t}\n\n\t${BalanceCurrencyValueSmallStyle} {\n\t\tdisplay: inline-block;\n\t\ttext-align: left;\n\t\tmin-width: 12px;\n\t}\n\n\t${chatViewport(\n\t\t(viewportPadding) => css`\n\t\t\t${(props) =>\n\t\t\t\tfontSize({\n\t\t\t\t\tsizeDesktop: calcStyle({\n\t\t\t\t\t\tmode: '-',\n\t\t\t\t\t\ta: props.theme.text.size.desktop,\n\t\t\t\t\t\tb: 2,\n\t\t\t\t\t}),\n\t\t\t\t\tminWidth: calcStyle({\n\t\t\t\t\t\ta: props.theme.media.minWidthDesktop,\n\t\t\t\t\t\tb: viewportPadding,\n\t\t\t\t\t}),\n\t\t\t\t\tsizeBigScreen: calcStyle({\n\t\t\t\t\t\tmode: '-',\n\t\t\t\t\t\ta: props.theme.text.size.bigScreen,\n\t\t\t\t\t\tb: 2,\n\t\t\t\t\t}),\n\t\t\t\t})}\n\n\t\t\t${StyledActiveBalanceCurrency} {\n\t\t\t\t.${CSSClassNameBalanceCurrencyValue} {\n\t\t\t\t\tmax-width: calc(100vw - 800px - ${viewportPadding});\n\n\t\t\t\t\t@media (max-width: ${(props) =>\n\t\t\t\t\t\t\tcalcStyle({\n\t\t\t\t\t\t\t\ta: props.theme.media.maxWidthTablet,\n\t\t\t\t\t\t\t\tb: viewportPadding,\n\t\t\t\t\t\t\t})}) {\n\t\t\t\t\t\tmax-width: calc(100vw - 350px);\n\t\t\t\t\t}\n\n\t\t\t\t\t@media (max-width: ${(props) =>\n\t\t\t\t\t\t\tcalcStyle({\n\t\t\t\t\t\t\t\ta: props.theme.media_v2.max_mobile_large,\n\t\t\t\t\t\t\t\tb: viewportPadding,\n\t\t\t\t\t\t\t})}) {\n\t\t\t\t\t\tmax-width: calc(100vw - 270px);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@media (min-width: ${(props) =>\n\t\t\t\t\tcalcStyle({\n\t\t\t\t\t\ta: props.theme.media.minWidthDesktop,\n\t\t\t\t\t\tb: viewportPadding,\n\t\t\t\t\t})}) {\n\t\t\t\t.icon-wrapper {\n\t\t\t\t\tpadding-right: 30px !important;\n\n\t\t\t\t\t[class*='icon'] {\n\t\t\t\t\t\tright: 11px;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t${BalanceCurrencyValueSmallStyle} {\n\t\t\t\t\tmin-width: 13px;\n\t\t\t\t}\n\n\t\t\t\t${BalanceCurrencyValueBigStyle} {\n\t\t\t\t\t// @ts-expect-error invalid type\n\t\t\t\t\tmin-width: ${(props) => {\n\t\t\t\t\t\t// @ts-expect-error invalid type\n\t\t\t\t\t\treturn minWidthMixin(props.value, 7);\n\t\t\t\t\t}};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@media (min-width: ${(props) =>\n\t\t\t\t\tcalcStyle({\n\t\t\t\t\t\ta: props.theme.media.minWidthBigDesktop,\n\t\t\t\t\t\tb: viewportPadding,\n\t\t\t\t\t})}) {\n\t\t\t\t${BalanceCurrencyValueSmallStyle} {\n\t\t\t\t\tmin-width: 15px;\n\t\t\t\t}\n\n\t\t\t\t${BalanceCurrencyValueBigStyle} {\n\t\t\t\t\tmin-width: ${(props) => {\n\t\t\t\t\t\t// @ts-expect-error invalid type\n\t\t\t\t\t\treturn minWidthMixin(props.value, 8);\n\t\t\t\t\t}};\n\t\t\t\t}\n\t\t\t}\n\t\t`,\n\t)}\n`;\n","import styled, { css } from 'styled-components';\n\ninterface BalanceWrapperStyledProps {\n\tonlySelector?: boolean;\n}\n\nexport const StyledBalanceWrapper = styled.div.attrs(\n\t{\n\t\tclassName: 'balance--wrapper',\n\t},\n)`\n\tposition: relative;\n\t${(props) =>\n\t\tprops.onlySelector\n\t\t\t? css`\n\t\t\t\t\tmargin: 0 0 30px;\n\t\t\t\t\tz-index: 3;\n\t\t\t `\n\t\t\t: ''}\n`;\n","import { shallowEqual } from 'react-redux';\nimport { useAppSelector } from '@legacyApp/hooks/store/useAppSelector';\nimport { RootState } from '@legacyApp/client/store/configure.store';\n\nexport const useDiceRollRuleSelector = () =>\n\tuseAppSelector(\n\t\t(state) => state.dice?.rollDirection,\n\t\tshallowEqual,\n\t);\n","import { mathService } from '@legacyApp/client/modules/math/mathService';\nimport { isTrueOrZero } from '@common/methods/isTrueOrZero';\nimport { AppThunk } from '@legacyApp/types/store/ThunkAction';\nimport { gameUpdatePayout } from '../game.actions';\nimport { GameType } from '../../../constants/availableGames';\n\nexport const updatePayoutThunk = (\n\tpayout: number | string,\n\tgame: GameType,\n\tisPayoutInput?: boolean,\n): AppThunk => {\n\treturn (dispatch, getState) => {\n\t\tlet payoutValue = mathService.parseValue(payout);\n\t\tif (!isPayoutInput && !isTrueOrZero(payoutValue)) {\n\t\t\tpayoutValue = 1;\n\t\t}\n\t\t// console.log('updatePayout', {\n\t\t// payout, roundedPayout: round(payout), payoutValue, state: getState().game.payoutValue, isPayoutInput,\n\t\t// });\n\t\tif (\n\t\t\t!mathService.isNumberDiff(getState().game.payoutValue[game], payoutValue)\n\t\t) {\n\t\t\treturn null;\n\t\t}\n\t\tdispatch(\n\t\t\tgameUpdatePayout({\n\t\t\t\tvalue: payoutValue,\n\t\t\t\tgame,\n\t\t\t}),\n\t\t);\n\t\treturn payoutValue;\n\t};\n};\n","import { validateBetAmount } from '@legacyApp/client/modules/app/gameService';\n\nexport const validateBetAmountThunk = ({\n\tvalue,\n\tisLogged,\n\tcurrency,\n\tcheckBalance,\n\tgame,\n}) => {\n\treturn (dispatch, getState) => {\n\t\tconst balances = getState().balance.balancesArray;\n\t\treturn validateBetAmount({\n\t\t\tvalue,\n\t\t\tbalances,\n\t\t\tisLogged,\n\t\t\tcurrency,\n\t\t\tcheckBalance: isLogged && balances?.length > 1 && checkBalance,\n\t\t\tgame: game || getState().game.activeGame,\n\t\t});\n\t\t// console.log('validateBetAmountAction', {\n\t\t// \tvalue,\n\t\t// \tisLogged,\n\t\t// \twallet,\n\t\t// \tcheckBalance,\n\t\t// \tgame,\n\t\t// \tbalances,\n\t\t// \tresult,\n\t\t// });\n\t\t// return result;\n\t};\n};\n","import { validateProfitAmount } from '@legacyApp/client/modules/app/gameService';\nimport { CurrencyType } from '@legacyApp/types/wallet/CurrencyType';\nimport { gameUpdateProfitError } from '../gameValidation.actions';\nimport { GameType } from '../../../constants/availableGames';\n\nexport const validateProfitActionThunk = ({\n\tvalue,\n\tcurrency,\n\tchangeError = true,\n\tgame,\n}: {\n\tvalue: number;\n\tcurrency?: CurrencyType;\n\tchangeError?: boolean;\n\tgame: GameType;\n}) => {\n\treturn (dispatch, getState) => {\n\t\tconst state = getState();\n\t\tconst result = validateProfitAmount({\n\t\t\tvalue,\n\t\t\tgame,\n\t\t\tcurrency: currency || state.user.activeCurrency,\n\t\t});\n\t\tif (result.error) {\n\t\t\tif (changeError) {\n\t\t\t\tdispatch(\n\t\t\t\t\tgameUpdateProfitError({\n\t\t\t\t\t\tvalue: result.error,\n\t\t\t\t\t\tgame,\n\t\t\t\t\t}),\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\tif (state.gameValidation?.profitError[game]) {\n\t\t\tdispatch(\n\t\t\t\tgameUpdateProfitError({\n\t\t\t\t\tvalue: '',\n\t\t\t\t\tgame,\n\t\t\t\t}),\n\t\t\t);\n\t\t}\n\t\treturn true;\n\t};\n};\n"],"names":["ConverterValue","actionEnabled","props","currency","value","precision","countPrecision","defaultPrecision","config","checkTablet","deviceType","this","converterCurrency","mapApiCurrencyToLayoutCurrency","price","isTrueOrZero","activeSwitch","parsePrecision","content","noClick","onClick","mathService","trans","label","options","React","enhanceComponent","ConverterValueContainer","connect","state","stats","user","activeCurrency","converter","confirm","app","dispatch","switch","data","converterSwitchCurrency","ConverterValueStyle","styled","className","onclick","box","fontSize","size","sizeDesktop","noclick","ProfitInputContainer","game","profitValue","error","gameValidation","profitError","betAmount","payoutValue","isMobile","mobile","formCurrency","updateProfitValue","undefined","getState","getProfit","roundNumber","getPayoutDecimal","validateProfitActionThunk","changeError","gameUpdateProfit","updateProfitError","gameUpdateProfitError","toUsd","converterToUsd","toNative","converterToNative","ProfitInput","convertedValue","setState","id","getId","noUpdate","setConverted","prevProps","isBetAmountChanged","isPayoutValueChanged","labelCurrency","noTippy","inputCurrency","ProfitInputWrapper","localTheme","classNames","htmlFor","preventDefault","withPayoutLabel","onModal","namespace","isVisible","hideTooltip","hideOnClick","I","gameInputId","type","isDisabled","name","InputWrapperStyle","StyledGameFormBox","StyledGameForm","InputLabelStyle","theme","media","minWidthDesktop","minWidthBigDesktop","maxWidthMobile","maxWidthVerySmall","sizeBigScreen","text","bigScreen","layout","transition","maxWidthTablet","maxWidthDesktop","StyledBalance","StyledBalanceWrapper","input","height","heightMobile","CheckboxWrapperStyle","$noMargin","css","StyledModalGameForm","BalanceCurrencyValueBigStyle","classnames","chatViewport","viewportPadding","minWidth","calcStyle","a","minWidthSmallTablet","b","BalanceCurrencyValueSmallStyle","useOptionEnabled","optionLabel","useAppSelector","shallowEqual","minWidthMixin","length","onlySelector","fonts","Black","CSSClassNameBalanceCurrencyValue","cutTextStyle","minWidthMobile","mode","desktop","StyledActiveBalanceCurrency","media_v2","max_mobile_large","useDiceRollRuleSelector","dice","rollDirection","updatePayoutThunk","payout","isPayoutInput","gameUpdatePayout","validateBetAmountThunk","isLogged","checkBalance","balances","balance","balancesArray","validateBetAmount","activeGame","result","validateProfitAmount"],"mappings":";;8xBAaMA,EAAAA,SAAAA,I,yMAYI,WACH,EAAKC,iBAGV,EAAKC,MAAL,OAAkB,EAAKA,MAAMC,c,oCAGb,SAACC,EAAOD,GACxB,IAAME,GAAYC,EAAAA,EAAAA,GAAeF,GAC3BG,EACQ,QAAbJ,EACG,EAAKD,MAAMG,WAAaG,EAAAA,EAAAA,SAAAA,IACxB,EAAKN,MAAMG,WAAa,EAC5B,OAAIA,E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