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SAAS,CAACvK,EAAI,CAAGuG,GAEJ,IAAfmF,EAAqB,CAIzBd,aAAaG,OAAO,CAAC,YAAaxK,KAAKyK,SAAS,CAAC/M,EAAMsM,SAAS,EAClE,CACF,EACA5J,cAAe,IAEf,CACF,GAEM,CAACsK,gBAAc,CAAC,CAAGC,EAAQzJ,OAAO,CAE3B,UAAC4E,CAAQ,aAAEiF,CAAW,YAAEC,CAAU,UAAEC,CAAQ,aAAEC,CAAW,CAAC,CACrEP,EAAQzJ,OAAO,CAAC,EAEHyJ,EAAQxJ,OAAO,EAAC","sources":["webpack://_N_E/./components/NakamaProvider.js","webpack://_N_E/./store/reducers/player.js","webpack://_N_E/./constants/web3.js","webpack://_N_E/./store/reducers/txn.js","webpack://_N_E/./store/index.js","webpack://_N_E/./store/reducers/global.js","webpack://_N_E/./store/reducers/match.js","webpack://_N_E/./store/reducers/matchmaking.js","webpack://_N_E/./store/reducers/ui.js"],"sourcesContent":["\"use client\";\n\nexport const OpCodeInitClock = 1;\nexport const OpCodeInitNoop = 2;\nexport const OpCodeInitState = 3;\nexport const OpCodeReady = 4;\nexport const OpCodeStart = 5;\n\nexport const OpCodeLetter = 10;\nexport const OpCodeLetterCorrect = 11;\nexport const OpCodeLetterIncorrect = 12;\nexport const OpCodeBoost = 13;\n\nexport const OpCodeTimerStart = 20;\nexport const OpCodeTimerExpired = 21;\n\nexport const OpCodeMatchRoundStarting = 30;\nexport const OpCodeMatchRoundSolved = 31;\nexport const OpCodeMatchRoundFailed = 32;\nexport const OpCodeMatchComplete = 33;\nexport const OpCodeMatchFailed = 34;\n\nexport const OpCodeHealth = 40;\n\nexport const OpCodePoints = 100;\nexport const OpCodeEncyclopedia = 101;\nexport const OpCodeKnockout = 102;\n\nexport const OpCodeToName = {\n [OpCodeInitClock]: \"OpCodeInitClock\",\n [OpCodeInitNoop]: \"OpCodeInitNoop\",\n [OpCodeInitState]: \"OpCodeInitState\",\n [OpCodeReady]: \"OpCodeReady\",\n [OpCodeStart]: \"OpCodeStart\",\n [OpCodeLetter]: \"OpCodeLetter\",\n [OpCodeBoost]: \"OpCodeBoost\",\n [OpCodeLetterCorrect]: \"OpCodeLetterCorrect\",\n [OpCodeLetterIncorrect]: \"OpCodeLetterIncorrect\",\n [OpCodeTimerStart]: \"OpCodeTimerStart\",\n [OpCodeTimerExpired]: \"OpCodeTimerExpired\",\n [OpCodeMatchRoundStarting]: \"OpCodeMatchRoundStarting\",\n [OpCodeMatchRoundSolved]: \"OpCodeMatchRoundSolved\",\n [OpCodeMatchRoundFailed]: \"OpCodeMatchRoundFailed\",\n [OpCodeMatchComplete]: \"OpCodeMatchComplete\",\n [OpCodeMatchFailed]: \"OpCodeMatchFailed\",\n [OpCodePoints]: \"OpCodePoints\",\n [OpCodeEncyclopedia]: \"OpCodeEncyclopedia\",\n [OpCodeKnockout]: \"OpCodeKnockout\",\n [OpCodeHealth]: \"OpCodeHealth\",\n};\n\nexport const NotifCodeMatchPlayerJoined = 1000;\nexport const NotifCodeMatchRub = 1001;\nexport const NotifCodeMatchReady = 1002;\nexport const NotifCodeBlockchainStakeStatus = 1100;\nexport const NotifCodeBlockchainPermitStatus = 1101;\nexport const NotifCodeBlockchainDepositStatus = 1102;\n\nexport const FlowPhaseUnknownUser = \"unknown-user\";\nexport const FlowPhaseNotJoined = \"not-joined\";\nexport const FlowPhaseWaitingForReady = \"waiting-for-ready\";\nexport const FlowPhaseCountdown = \"countdown\";\nexport const FlowPhasePlaying = \"playing\";\nexport const FlowPhaseEnding = \"ending\";\n","\"use client\";\n\nimport {createAsyncThunk, createSelector, createSlice} from \"@reduxjs/toolkit\";\nimport {asyncOps} from \"@spyre-io/js\";\n\nconst initialState = {\n lastUpdated: null,\n genUsername: {\n req: asyncOps.new(),\n value: \"\",\n },\n updateAccount: asyncOps.new(),\n balanceFetch: asyncOps.new(),\n permit: {\n op: asyncOps.new(),\n txnId: 0,\n },\n deposit: {\n op: asyncOps.new(),\n txnId: 0,\n },\n};\n\nconst select = (state) => state.player;\nconst selectGenUsername = createSelector(select, (state) => state.genUsername);\nconst selectFetch = createSelector(select, (state) => state.fetch);\nconst selectPermit = createSelector(select, (state) => state.permit);\nconst selectDeposit = createSelector(select, (state) => state.deposit);\n\nexport const playerSelectors = {\n select,\n selectGenUsername,\n selectFetch,\n selectPermit,\n selectDeposit,\n};\n\nexport const generateUsername = createAsyncThunk(\n \"player/username/generate\",\n async (_, {extra: {rpc}}) => {\n return await rpc.call(\"account/generate-unique\", {});\n },\n);\n\nexport const updateUsername = createAsyncThunk(\n \"player/username/update\",\n async (username, {extra: {rpc}}) => {\n return await rpc.call((client, session) =>\n client.updateAccount(session, {username}),\n );\n },\n);\n\nexport const getInProgressBalance = createAsyncThunk(\n \"player/balance/in-progress\",\n async (_, {extra: {rpc}}) => {\n return await rpc.call(\"hangman/web3/balance/get-in-progress-balance\", {});\n },\n);\n\n// TODO: move to txns\nexport const submitPermit = createAsyncThunk(\n \"player/permit/submit\",\n async (\n {permit: {owner, spender, value, nonce, deadline}, signature},\n {extra: {rpc}},\n ) => {\n return await rpc.call(\"pipeline/permit\", {\n permit: {\n owner,\n spender,\n value: value.toString(),\n nonce: nonce.toString(),\n deadline: deadline.toString(),\n },\n signedMsg: signature,\n });\n },\n);\n\n// TODO: move to txns\nexport const submitDeposit = createAsyncThunk(\n \"player/deposit/submit\",\n async (\n {deposit: {user, nonce, expiry, amount, fee}, rsv},\n {extra: {rpc}},\n ) => {\n return await rpc.call(\"pipeline/deposit\", {\n deposit: {\n user,\n nonce: nonce.toString(),\n expiry: expiry.toString(),\n amount: amount.toString(),\n fee: fee.toString(),\n },\n signedMsg: rsv,\n });\n },\n);\n\nconst playerSlice = createSlice({\n name: \"nakama\",\n initialState,\n reducers: {\n diffUpdateWallet: (state, {payload: {key, diff}}) => {\n state.account.wallet[key] += diff;\n },\n resolvePermit: (state, {payload: message}) => {\n const {\n content: {\n payload: {value},\n },\n } = message;\n const {txnId} = JSON.parse(value);\n if (state.permit.txnId === txnId) {\n state.permit.op = asyncOps.success();\n }\n },\n resolveDeposit: (state, {payload: message}) => {\n const {\n content: {\n payload: {value},\n },\n } = message;\n const {txnId} = JSON.parse(value);\n if (state.deposit.txnId === txnId) {\n state.deposit.op = asyncOps.success();\n }\n },\n },\n extraReducers: (builder) => {\n builder\n // generate username\n .addCase(generateUsername.pending, (state) => {\n state.genUsername.req = asyncOps.inProgress();\n })\n .addCase(generateUsername.fulfilled, (state, action) => {\n const {username} = action.payload;\n\n state.genUsername.value = username;\n state.genUsername.req = asyncOps.success();\n })\n .addCase(generateUsername.rejected, (state, action) => {\n state.genUsername.req = asyncOps.failure(action.error.message);\n })\n // update username\n .addCase(updateUsername.pending, (state) => {\n state.updateAccount = asyncOps.inProgress();\n })\n .addCase(updateUsername.fulfilled, (state, {payload: username}) => {\n state.updateAccount = asyncOps.success();\n })\n .addCase(updateUsername.rejected, (state, action) => {\n state.updateAccount = asyncOps.failure(action.error.message);\n })\n // get in progress balance\n .addCase(getInProgressBalance.pending, (state) => {\n state.balanceFetch = asyncOps.inProgress();\n })\n .addCase(getInProgressBalance.fulfilled, (state, action) => {\n state.balanceFetch = asyncOps.success();\n })\n .addCase(getInProgressBalance.rejected, (state, action) => {\n state.balanceFetch = asyncOps.failure(action.error.message);\n })\n // permit\n .addCase(submitPermit.pending, (state) => {\n state.permit.op = asyncOps.inProgress();\n })\n .addCase(submitPermit.fulfilled, (state, action) => {\n state.permit.txnId = action.payload.txnId;\n })\n .addCase(submitPermit.rejected, (state, action) => {\n state.permit.op = asyncOps.failure(action.error.message);\n })\n // deposit\n .addCase(submitDeposit.pending, (state) => {\n state.deposit.op = asyncOps.inProgress();\n })\n .addCase(submitDeposit.fulfilled, (state, action) => {\n state.deposit.txnId = action.payload.txnId;\n })\n .addCase(submitDeposit.rejected, (state, action) => {\n state.deposit.op = asyncOps.failure(action.error.message);\n });\n },\n});\n\nexport const {diffUpdateWallet, resolvePermit, resolveDeposit} =\n playerSlice.actions;\n\nexport default playerSlice.reducer;\n","export const metadata = {\n name: \"Hangman\",\n description: \"Play Hangman with your friends!\",\n url: \"https://hangman.cloud\",\n logoUrl: \"https://hangman.cloud/hangman.svg\",\n};\n\nexport const TxnPhases = {\n Started: \"started\",\n Failed: \"failed\",\n Resolved: \"resolved\",\n};\n","import {TxnPhases} from \"@/constants/web3\";\nimport {createAsyncThunk, createSelector, createSlice} from \"@reduxjs/toolkit\";\nimport {asyncOps} from \"@spyre-io/js\";\n\n/**\n * Txn looks like.\n * { id, meta, startedAt, endedAt, phase }\n */\n\nconst initialState = {\n txns: [],\n nonce: {\n op: asyncOps.new(),\n value: \"\",\n },\n};\n\nconst select = (state) => state.txn;\nconst selectTxns = createSelector(select, (state) => state.txns);\nconst selectTxn = (id) =>\n createSelector(selectTxns, (txns) => txns.find((txn) => txn.id === id));\nconst selectNonce = createSelector(select, (state) => state.nonce);\n\nexport const txnSelectors = {\n select,\n selectTxns,\n selectTxn,\n selectNonce,\n};\n\nexport const getNonce = createAsyncThunk(\n \"txns/getNonce\",\n async (_, {extra: {rpc}}) => {\n const res = await rpc.call(\"nonces/get-nonce\", {});\n if (res.payload.success) {\n return res.payload;\n }\n\n throw new Error(res.payload.Error);\n },\n);\n\nconst slice = createSlice({\n name: \"txns\",\n initialState,\n reducers: {\n started: (state, {payload: {id, meta}}) => {\n state.txns.push({\n id,\n meta,\n startedAt: Date.now(),\n phase: TxnPhases.Started,\n });\n },\n failed: (state, {payload: {id, error}}) => {\n const txn = state.txns.find((txn) => txn.id === id);\n if (txn) {\n txn.endedAt = Date.now();\n txn.phase = TxnPhases.Failed;\n txn.error = error;\n }\n },\n resolved: (state, {payload: {id, receipt}}) => {\n const txn = state.txns.find((txn) => txn.id === id);\n if (txn) {\n txn.endedAt = Date.now();\n txn.phase = TxnPhases.Resolved;\n txn.receipt = receipt;\n }\n },\n },\n extraReducers: (builder) => {\n builder\n .addCase(getNonce.pending, (state) => {\n state.nonce.op = asyncOps.inProgress();\n })\n .addCase(getNonce.fulfilled, (state, {payload}) => {\n state.nonce.op = asyncOps.success();\n state.nonce.value = payload.nonce;\n })\n .addCase(getNonce.rejected, (state, {error}) => {\n state.nonce.op = asyncOps.failure(error);\n });\n },\n});\n\nexport const {started, failed, resolved} = slice.actions;\n\nexport default slice.reducer;\n","\"use client\";\n\nimport * as Sentry from \"@sentry/react\";\nimport {configureStore, createReducer} from \"@reduxjs/toolkit\";\nimport globalReducer from \"@/store/reducers/global\";\nimport playerReducer from \"@/store/reducers/player\";\nimport matchmakingReducer from \"@/store/reducers/matchmaking\";\nimport matchReducer from \"@/store/reducers/match\";\nimport uiReducer from \"@/store/reducers/ui\";\nimport txnReducer from \"@/store/reducers/txn\";\n\nconst sentryReduxEnhancer = Sentry.createReduxEnhancer({\n //\n});\n\nexport const selectConfig = (state) => state.config;\nexport const selectIsInMaintenanceMode = (state) =>\n state.config[\"maintenance-on\"] === true;\nexport const selectMaintenanceMessage = (state) =>\n state.config[\"maintenance-message\"];\nexport const selectIsMaintenanceRefresh = (state) =>\n state.config[\"maintenance-refresh\"] === true;\n\nexport const store = (config, spyre) =>\n configureStore({\n reducer: {\n config: createReducer(config, () => {}),\n global: globalReducer,\n player: playerReducer,\n matchmaking: matchmakingReducer,\n match: matchReducer,\n ui: uiReducer,\n txn: txnReducer,\n },\n middleware: (getDefaultMiddleware) =>\n getDefaultMiddleware({\n serializableCheck: false,\n thunk: {\n extraArgument: {\n spyreClient: spyre,\n rpc: spyre.rpc,\n },\n },\n }),\n enhancers: [sentryReduxEnhancer],\n });\n","import {createAsyncThunk, createSelector, createSlice} from \"@reduxjs/toolkit\";\nimport {asyncOps, childLogger} from \"@spyre-io/js\";\nimport mixpanel from \"mixpanel-browser\";\n\nconst logger = childLogger(\"global\");\n\nconst initialState = {\n init: asyncOps.new(),\n notifsRequest: asyncOps.new(),\n notifs: {},\n};\n\nconst select = (state) => state.global;\nconst selectInit = createSelector(select, (state) => state.init);\nconst selectNotifs = createSelector(select, (state) => state.notifs);\n\nexport const globalSelectors = {\n select,\n selectInit,\n selectNotifs,\n};\n\nexport const updateNotifs = createAsyncThunk(\n \"global/updateNotifs\",\n async (_, {extra: {spyreClient}}) => {\n return await spyreClient.notifications.list(10);\n },\n);\n\nexport const deleteNotifs = createAsyncThunk(\n \"global/deleteNotifs\",\n async (ids, {extra: {spyreClient}}) => {\n const result = await spyreClient.notifications.delete(ids);\n\n return {ids, result};\n },\n);\n\nexport const deleteNotifsOfCode = createAsyncThunk(\n \"global/deleteNotifsOfCode\",\n async (code, {getState, extra: {spyreClient}}) => {\n const state = getState();\n const notifs = globalSelectors.selectNotifs(state);\n if (!notifs[code]) {\n return [];\n }\n\n const ids = notifs[code].map((notif) => notif.id);\n const result = await spyreClient.notifications.delete(ids);\n\n return {ids, result};\n },\n);\n\nconst globalSlice = createSlice({\n name: \"global\",\n initialState,\n reducers: {\n startInit: (state) => {\n state.init = asyncOps.inProgress();\n\n if (process.env.NEXT_PUBLIC_MIXPANEL_ISDISABLED === \"true\") {\n logger.info(\"Mixpanel is disabled.\");\n\n mixpanel.track = (...params) =>\n logger.info(\"[Mixpanel] Track(@Params)\", JSON.stringify(params));\n mixpanel.people = {\n set: () => {},\n increment: () => {},\n set_once: () => {},\n };\n mixpanel.identify = () => {};\n return;\n }\n\n mixpanel.init(process.env.NEXT_PUBLIC_MIXPANEL_TOKEN, {\n debug: false, // process.env.NEXT_PUBLIC_ENV !== 'production',\n track_pageview: true,\n persistence: \"localStorage\",\n ignore_dnt: true,\n api_host: process.env.NEXT_PUBLIC_MIXPANEL_API_HOST,\n });\n },\n finishInit: (state) => {\n state.init = asyncOps.success();\n },\n resetInit: (state) => {\n state.init = asyncOps.new();\n },\n addNotif: (state, {payload}) => {\n const {code} = payload;\n\n if (!state.notifs[code]) {\n state.notifs[code] = [];\n }\n\n state.notifs[code].push(payload);\n },\n },\n extraReducers: (builder) => {\n builder\n // update notifs\n .addCase(updateNotifs.pending, (state) => {\n state.notifsRequest = asyncOps.inProgress();\n })\n .addCase(updateNotifs.fulfilled, (state, action) => {\n state.notifsRequest = asyncOps.success();\n\n const notifs = action.payload;\n for (const notif of notifs) {\n const {code} = notif;\n\n if (!state.notifs[code]) {\n state.notifs[code] = [];\n }\n\n const list = state.notifs[code];\n const index = list.findIndex((n) => n.id === notif.id);\n if (index === -1) {\n list.push(notif);\n } else {\n list[index] = notif;\n }\n }\n })\n .addCase(updateNotifs.rejected, (state, action) => {\n state.notifsRequest = asyncOps.failure(action.error.message);\n })\n // delete notifs\n .addCase(deleteNotifs.fulfilled, (state, {payload: {ids, result}}) => {\n for (const id of ids) {\n for (const code in state.notifs) {\n state.notifs[code] = state.notifs[code].filter(\n (notif) => notif.id !== id,\n );\n }\n }\n })\n .addCase(deleteNotifs.rejected, (_, action) => {\n //\n })\n // delete notifs of code\n .addCase(deleteNotifsOfCode.fulfilled, (state, {payload: {ids = []}}) => {\n for (const id of ids) {\n for (const code in state.notifs) {\n state.notifs[code] = state.notifs[code].filter(\n (notif) => notif.id !== id,\n );\n }\n }\n })\n .addCase(deleteNotifsOfCode.rejected, (_, action) => {\n //\n });\n },\n});\n\nexport const {startInit, finishInit, resetInit, addNotif} = globalSlice.actions;\n\nexport default globalSlice.reducer;\n","import {\n NotifCodeMatchPlayerJoined,\n NotifCodeMatchReady,\n NotifCodeMatchRub,\n} from \"@/components/NakamaProvider\";\nimport {logger} from \"@/util/logger\";\nimport {createSelector, createSlice} from \"@reduxjs/toolkit\";\nimport {NotificationManager} from \"react-notifications\";\n\nconst initialState = {\n // [matchId] = match state\n active: \"\",\n matches: {},\n};\n\nconst select = (state) => state.match;\nconst selectMatches = createSelector(select, (state) => state.matches);\nconst selectActive = createSelector(select, (state) => state.active);\nconst selectMatch = (matchId) =>\n createSelector(selectMatches, (matches) => matches[matchId]);\n\nexport const matchSelectors = {\n select,\n selectMatches,\n selectActive,\n selectMatch,\n};\n\nconst matchSlice = createSlice({\n name: \"match\",\n initialState,\n reducers: {\n setActive: (state, {payload: {id, match}}) => {\n state.active = id;\n state.matches = {\n ...state.matches,\n [id]: match,\n };\n },\n clearActive: (state) => {\n state.active = \"\";\n },\n notify: (state, action) => {\n const {\n code,\n content: {payload},\n } = action.payload;\n const {\n value: {matchId},\n } = payload;\n\n switch (code) {\n case NotifCodeMatchPlayerJoined: {\n if (matchId !== state.active) {\n logger.info(\n \"Notification for @MatchId does not belong to current match.\",\n matchId,\n );\n return;\n }\n\n logger.info(\"A player has joined the match!\");\n NotificationManager.info(\"A challenger has started playing!\");\n\n break;\n }\n case NotifCodeMatchRub: {\n if (matchId !== state.active) {\n logger.info(\n \"Notification for @MatchId does not belong to current match.\",\n matchId,\n );\n return;\n }\n\n logger.info(\"A player has almost won!\");\n NotificationManager.warning(\n \"Your challenger has almost solved the word!\",\n );\n\n break;\n }\n case NotifCodeMatchReady: {\n if (matchId === state.active) {\n logger.info(\n \"Notification for @MatchId does not belong to current match.\",\n matchId,\n );\n return;\n }\n\n logger.info(\"Match ready!\");\n NotificationManager.success(\"Match results are in!\");\n break;\n }\n }\n },\n },\n extraReducers: (builder) => {\n //\n },\n});\n\nexport const {setActive, clearActive, notify} = matchSlice.actions;\n\nexport default matchSlice.reducer;\n","\"use client\";\n\nimport {createAsyncThunk, createSlice} from \"@reduxjs/toolkit\";\nimport {asyncOps} from \"@spyre-io/js\";\n\nconst combine = (creatorMatchId, opponentMatchIds) => {\n const results = [];\n if (creatorMatchId && creatorMatchId.length > 0) {\n results.push(creatorMatchId);\n }\n\n if (opponentMatchIds && opponentMatchIds.length > 0) {\n results.push(...opponentMatchIds);\n }\n\n return results;\n};\n\nconst initialState = {\n brackets: [],\n getBrackets: asyncOps.new(),\n find: asyncOps.new(),\n signing: asyncOps.new(),\n accept: asyncOps.new(),\n matchJoin: asyncOps.new(),\n matchmakingInfo: null,\n matchJoinIds: [],\n match: null,\n};\n\nconst select = (state) => state.matchmaking;\nconst selectBrackets = (state) => select(state).brackets;\nconst selectGetBrackets = (state) => select(state).getBrackets;\nconst selectSigning = (state) => select(state).signing;\nconst selectAccept = (state) => select(state).accept;\nconst selectMatchFind = (state) => select(state).find;\nconst selectMatchmakingInfo = (state) => select(state).matchmakingInfo;\nconst selectMatchJoin = (state) => select(state).matchJoin;\nconst selectMatch = (state) => select(state).match;\n\nexport const matchmakingSelectors = {\n select,\n selectBrackets,\n selectGetBrackets,\n selectSigning,\n selectAccept,\n selectMatchFind,\n selectMatchmakingInfo,\n selectMatchJoin,\n selectMatch,\n};\n\nexport const findMatchmakingInfo = createAsyncThunk(\n \"matchmaking/find\",\n async (bracketId, {extra: {rpc}}) => {\n const res = await rpc.call(\"hangman/matchmaking/find\", {bracketId});\n if (res.success) {\n return res;\n }\n\n throw new Error(res.error);\n },\n);\n\nexport const acceptMatchmakingInfo = createAsyncThunk(\n \"matchmaking/accept\",\n async (rsv, {getState, extra: {rpc}}) => {\n const state = getState();\n const matchmakingInfo = selectMatchmakingInfo(state);\n const body = {\n mmId: matchmakingInfo.mmId,\n };\n if (rsv) {\n body.signature = {\n r: rsv.r,\n s: rsv.s,\n v: rsv.v,\n };\n }\n\n const res = await rpc.call(\"hangman/matchmaking/accept\", body);\n if (res.success) {\n return res;\n }\n\n throw new Error(res.error);\n },\n);\n\nexport const joinMatch = createAsyncThunk(\n \"matchmaking/join\",\n async (_, {getState}) => {\n const state = getState();\n const matchmakingInfo = selectMatchmakingInfo(state);\n /*\n let match;\n const { matchJoinIds } = select(state); \n for (const id of matchJoinIds) {\n try {\n match = await join(id, { mmId: matchmakingInfo.mmId, });\n\n break;\n } catch (error) {\n logger.info(\"Couldn't join match @MatchId: \" + error, id);\n }\n }\n\n if (!match) {\n throw new Error('Could not join any matches.');\n }\n\n return match;\n */\n },\n);\n\nconst matchSlice = createSlice({\n name: \"matchmaking\",\n initialState,\n reducers: {\n reset: (state) => {\n state.find = asyncOps.new();\n state.signing = asyncOps.new();\n state.accept = asyncOps.new();\n state.matchJoin = asyncOps.new();\n state.matchInfo = null;\n state.message = null;\n state.matchJoinIds = [];\n state.match = null;\n state.matchmakingInfo = null;\n },\n startSign: (state) => {\n state.signing = asyncOps.inProgress();\n },\n resetSign: (state) => {\n state.signing = asyncOps.new();\n },\n finishSign: (state) => {\n state.signing = asyncOps.new();\n },\n },\n extraReducers: (builder) => {\n builder\n // find match\n .addCase(findMatchmakingInfo.pending, (state) => {\n state.accept = asyncOps.new();\n state.matchJoin = asyncOps.new();\n state.find = asyncOps.inProgress();\n state.match = null;\n state.matchInfo = null;\n state.message = null;\n state.matchJoinIds = [];\n state.matchmakingInfo = null;\n })\n .addCase(findMatchmakingInfo.fulfilled, (state, action) => {\n state.find = asyncOps.success();\n\n const {matchmakingInfo, matchInfo} = action.payload;\n\n // we might already be in a match\n const {creatorMatchId, opponentMatchIds} = matchInfo;\n const matchJoinIds = combine(creatorMatchId, opponentMatchIds);\n if (matchJoinIds.length > 0) {\n state.matchJoinIds = matchJoinIds;\n }\n\n state.matchmakingInfo = matchmakingInfo;\n })\n .addCase(findMatchmakingInfo.rejected, (state, action) => {\n console.error(action.error);\n state.find = asyncOps.failure(action.error.message);\n })\n // accept match\n .addCase(acceptMatchmakingInfo.pending, (state) => {\n state.matchJoin = asyncOps.new();\n state.accept = asyncOps.inProgress();\n })\n .addCase(acceptMatchmakingInfo.fulfilled, (state, action) => {\n state.accept = asyncOps.success();\n state.matchJoinIds = action.payload.matchJoinIds;\n })\n .addCase(acceptMatchmakingInfo.rejected, (state, action) => {\n console.error(action.error);\n state.accept = asyncOps.failure(action.error.message);\n })\n // join match\n .addCase(joinMatch.pending, (state) => {\n state.matchJoin = asyncOps.inProgress();\n })\n .addCase(joinMatch.fulfilled, (state, action) => {\n state.matchJoin = asyncOps.success();\n state.match = action.payload;\n state.matchJoinIds = [];\n })\n .addCase(joinMatch.rejected, (state, action) => {\n state.matchJoinIds = [];\n state.matchJoin = asyncOps.failure(action.error.message);\n });\n },\n});\n\nexport const {reset, startSign, resetSign, finishSign} = matchSlice.actions;\n\nexport default matchSlice.reducer;\n","\"use client\";\n\nimport {createAsyncThunk, createSelector, createSlice} from \"@reduxjs/toolkit\";\n\nexport const NotifScore = \"score\";\nexport const NotifPenalty = \"penalty\";\n\nexport const TutorialVideo = \"video\";\nexport const TutorialFtueFree = \"ftue.free-v2\";\n\nlet _id = 0;\n\nexport const scoreNotifFac = (score) => {\n const id = _id++;\n\n return {\n id,\n time: Date.now(),\n type: NotifScore,\n value: score,\n t: 0,\n };\n};\n\nexport const penaltyNotifFac = (score) => {\n const id = _id++;\n\n return {\n id,\n time: Date.now(),\n type: NotifPenalty,\n value: score,\n t: 0,\n };\n};\n\nconst initialState = {\n notifs: [],\n ghost: {\n createdAtClientMs: 0,\n t: 0,\n },\n tutorials: {\n initialized: false,\n [TutorialVideo]: 0,\n [TutorialFtueFree]: 0,\n },\n};\n\nconst select = (state) => state.ui;\nconst selectNotifs = createSelector(select, (state) => state.notifs);\nconst selectGhost = createSelector(select, (state) => state.ghost);\nconst selectTutorials = createSelector(select, (state) => state.tutorials);\n\nexport const uiSelectors = {\n select,\n selectNotifs,\n selectGhost,\n selectTutorials,\n};\n\nexport const initTutorials = createAsyncThunk(\n \"ui/initTutorials\",\n async (_, {dispatch}) => {\n const json = localStorage.getItem(\"tutorials\");\n\n let tutorials = {};\n if (json) {\n tutorials = JSON.parse(json);\n }\n\n if (tutorials.hasOwnProperty(TutorialVideo) === false) {\n tutorials[TutorialVideo] = 0;\n }\n\n if (tutorials.hasOwnProperty(TutorialFtueFree) === false) {\n tutorials[TutorialFtueFree] = 0;\n }\n\n localStorage.setItem(\"tutorials\", JSON.stringify(tutorials));\n\n dispatch(_initTutorials({tutorials}));\n },\n);\n\nconst uiSlice = createSlice({\n name: \"ui\",\n initialState,\n reducers: {\n addNotif: (state, {payload: notif}) => {\n state.notifs.push(notif);\n },\n\n updateNotif: (state, {payload: {id, t}}) => {\n const notif = state.notifs.find((n) => n.id === id);\n notif.t = t;\n },\n\n clearNotif: (state, {payload: id}) => {\n state.notifs = state.notifs.filter((n) => n.id !== id);\n },\n\n setGhost: (state, {payload: {createdAtClientMs, t}}) => {\n state.ghost = {\n createdAtClientMs,\n t,\n };\n },\n\n _initTutorials: (state, {payload: {tutorials}}) => {\n state.tutorials = {initialized: true, ...tutorials};\n },\n\n setTutorial: (state, {payload: {index, key, doNotWrite}}) => {\n state.tutorials[key] = index;\n\n if (doNotWrite === true) {\n return;\n }\n\n localStorage.setItem(\"tutorials\", JSON.stringify(state.tutorials));\n },\n },\n extraReducers: (builder) => {\n //\n },\n});\n\nconst {_initTutorials} = uiSlice.actions;\n\nexport const {addNotif, updateNotif, clearNotif, setGhost, setTutorial} =\n uiSlice.actions;\n\nexport default uiSlice.reducer;\n"],"names":["OpCodeInitNoop","OpCodeInitState","OpCodeReady","OpCodeStart","OpCodeTimerStart","OpCodeTimerExpired","OpCodeMatchRoundStarting","OpCodeMatchRoundSolved","OpCodeMatchFailed","OpCodeHealth","OpCodePoints","OpCodeEncyclopedia","OpCodeKnockout","OpCodeToName","NotifCodeMatchRub","initialState","lastUpdated","genUsername","req","asyncOps","new","value","updateAccount","balanceFetch","permit","op","txnId","deposit","select","state","player","createSelector","fetch","generateUsername","createAsyncThunk","_","extra","rpc","call","username","client","session","submitPermit","owner","spender","nonce","deadline","signature","toString","signedMsg","user","expiry","amount","fee","rsv","createSlice","name","reducers","diffUpdateWallet","payload","key","diff","account","wallet","resolvePermit","message","content","JSON","parse","success","resolveDeposit","extraReducers","builder","addCase","pending","inProgress","fulfilled","action","rejected","failure","error","updateUsername","getInProgressBalance","submitDeposit","playerSlice","actions","reducer","TxnPhases","Started","Failed","Resolved","txns","txn","getNonce","res","Error","slice","started","id","meta","push","startedAt","Date","now","phase","failed","find","endedAt","resolved","receipt","sentryReduxEnhancer","Sentry","selectIsInMaintenanceMode","config","selectMaintenanceMessage","store","spyre","configureStore","createReducer","global","globalReducer","playerReducer","matchmaking","matchmakingReducer","match","matchReducer","ui","uiReducer","txnReducer","getDefaultMiddleware","serializableCheck","thunk","extraArgument","spyreClient","enhancers","childLogger","init","notifsRequest","notifs","selectInit","selectNotifs","globalSelectors","notifications","list","ids","result","delete","code","getState","map","notif","startInit","mixpanel","process","debug","track_pageview","persistence","ignore_dnt","api_host","finishInit","resetInit","addNotif","updateNotifs","index","findIndex","n","deleteNotifs","filter","deleteNotifsOfCode","globalSlice","selectMatches","matches","selectActive","active","matchSelectors","selectMatch","matchId","setActive","clearActive","notify","NotifCodeMatchPlayerJoined","logger","info","NotificationManager","warning","NotifCodeMatchReady","matchSlice","combine","creatorMatchId","opponentMatchIds","results","length","brackets","getBrackets","signing","accept","matchJoin","matchmakingInfo","matchJoinIds","selectMatchmakingInfo","matchmakingSelectors","selectBrackets","selectGetBrackets","selectSigning","selectAccept","selectMatchFind","selectMatchJoin","bracketId","body","mmId","r","s","v","reset","matchInfo","startSign","resetSign","finishSign","findMatchmakingInfo","console","acceptMatchmakingInfo","joinMatch","TutorialVideo","TutorialFtueFree","selectGhost","ghost","selectTutorials","tutorials","uiSelectors","initTutorials","dispatch","json","localStorage","getItem","hasOwnProperty","setItem","stringify","_initTutorials","uiSlice","createdAtClientMs","t","initialized","updateNotif","clearNotif","setGhost","setTutorial","doNotWrite"],"sourceRoot":"","ignoreList":[]}