{"version":3,"file":"static/chunks/5481.d2d454aad4c0ad71.js","sources":["webpack://_N_E/./src/LegacyApp/client/modules/app/reducers/setPerGameReducer.ts","webpack://_N_E/./src/modules/games/Game/store/gameValidation/gameValidation.reducer.js"],"sourceRoot":"","sourcesContent":["import { getPerGameInitObject } from '../getPerGameInitObject';\n\nimport { setPerGame } from './setPerGame';\n\nexport const setPerGameReducer = (\n\tinitValue,\n\tsetAction,\n\tparseValue,\n\tinitAction,\n) => {\n\treturn (\n\t\tstate = getPerGameInitObject(\n\t\t\tinitValue,\n\t\t\tundefined,\n\t\t\tundefined,\n\t\t\ttrue,\n\t\t\tparseValue,\n\t\t),\n\t\taction = {\n\t\t\ttype: '',\n\t\t},\n\t) => {\n\t\treturn setPerGame({\n\t\t\tstate,\n\t\t\taction,\n\t\t\tinitValue,\n\t\t\tsetAction,\n\t\t\tparseValue,\n\t\t\tinitAction,\n\t\t});\n\t};\n};\n","import { combineReducers } from 'redux';\nimport { REGISTRY_GAME_PACKAGE } from '@legacyApp/client/store/registry/registry.constants';\nimport { setPerGameReducer } from '@legacyApp/client/modules/app/reducers/setPerGameReducer';\nimport {\n\tGAME_UPDATE_AMOUNT_ERROR,\n\tGAME_UPDATE_FORM_ERROR,\n\tGAME_UPDATE_PAYOUT_ERROR,\n\tGAME_UPDATE_PROFIT_ERROR,\n\tGAME_UPDATE_WIN_CHANCE_ERROR,\n} from './gameValidation.constants';\n\nconst formErrorReducer = setPerGameReducer(\n\tfalse,\n\tGAME_UPDATE_FORM_ERROR,\n\tundefined,\n\tREGISTRY_GAME_PACKAGE,\n);\nconst betAmountErrorReducer = setPerGameReducer(\n\tfalse,\n\tGAME_UPDATE_AMOUNT_ERROR,\n\tundefined,\n\tREGISTRY_GAME_PACKAGE,\n);\nconst payoutErrorReducer = setPerGameReducer(\n\tfalse,\n\tGAME_UPDATE_PAYOUT_ERROR,\n\tundefined,\n\tREGISTRY_GAME_PACKAGE,\n);\nconst winChanceErrorReducer = setPerGameReducer(\n\tfalse,\n\tGAME_UPDATE_WIN_CHANCE_ERROR,\n\tundefined,\n\tREGISTRY_GAME_PACKAGE,\n);\nconst profitErrorReducer = setPerGameReducer(\n\tfalse,\n\tGAME_UPDATE_PROFIT_ERROR,\n\tundefined,\n\tREGISTRY_GAME_PACKAGE,\n);\n\nconst gameValidationReducer = combineReducers({\n\tformError: formErrorReducer,\n\tbetAmountError: betAmountErrorReducer,\n\tpayoutError: payoutErrorReducer,\n\twinChanceError: winChanceErrorReducer,\n\tprofitError: profitErrorReducer,\n});\n\nexport default gameValidationReducer;\n"],"names":["setPerGameReducer","initValue","setAction","parseValue","initAction","state","getPerGameInitObject","undefined","action","type","setPerGame","formErrorReducer","GAME_UPDATE_FORM_ERROR","REGISTRY_GAME_PACKAGE","betAmountErrorReducer","GAME_UPDATE_AMOUNT_ERROR","payoutErrorReducer","GAME_UPDATE_PAYOUT_ERROR","winChanceErrorReducer","GAME_UPDATE_WIN_CHANCE_ERROR","profitErrorReducer","GAME_UPDATE_PROFIT_ERROR","gameValidationReducer","combineReducers","formError","betAmountError","payoutError","winChanceError","profitError"],"mappings":";;8IAIaA,EAAoB,SAChCC,EACAC,EACAC,EACAC,GAEA,OAAO,WAWF,IAVJC,EAUI,wDAVIC,EAAAA,EAAAA,GACPL,OACAM,OACAA,GACA,EACAJ,GAEDK,EAGI,uDAHK,CACRC,KAAM,IAGP,OAAOC,EAAAA,EAAAA,GAAW,CACjBL,MAAAA,EACAG,OAAAA,EACAP,UAAAA,EACAC,UAAAA,EACAC,WAAAA,EACAC,WAAAA,O,2ECjBGO,GAAmBX,EAAAA,EAAAA,IACxB,EACAY,EAAAA,QACAL,EACAM,EAAAA,IAEKC,GAAwBd,EAAAA,EAAAA,IAC7B,EACAe,EAAAA,QACAR,EACAM,EAAAA,IAEKG,GAAqBhB,EAAAA,EAAAA,IAC1B,EACAiB,EAAAA,QACAV,EACAM,EAAAA,IAEKK,GAAwBlB,EAAAA,EAAAA,IAC7B,EACAmB,EAAAA,QACAZ,EACAM,EAAAA,IAEKO,GAAqBpB,EAAAA,EAAAA,IAC1B,EACAqB,EAAAA,QACAd,EACAM,EAAAA,IAGKS,GAAwBC,EAAAA,EAAAA,IAAgB,CAC7CC,UAAWb,EACXc,eAAgBX,EAChBY,YAAaV,EACbW,eAAgBT,EAChBU,YAAaR,IAGd","debug_id":"a01427e8-e1b8-5e83-a1b5-5d70bd606bd0"}