// Module ID: 12558 // Function ID: 12559 // Name: KeybindRouterStore // Dependencies: [1085, 4704, 4717, 1254, 1259, 2] // Module 12558 (KeybindRouterStore) import matchPathCompat from "matchPathCompat" /* 4704 */; import Constants from "Constants" /* 1085 */; import module_1254 from "module_1254" /* 1254 */; import size from "module_2" /* 2 */; let c2; let c3; function getMatchData(pathname) { let CHANNEL; let GUILD_BOOSTING_MARKETING; let RouteParam2; let RouteParam3; let channelId; let guildId; let guildIdResult; let str = pathname; let str2 = pathname; const matchPath = matchPathCompat.matchPath; matchPathCompat; if (pathname == null) { str2 = ""; } const obj = { path: CHANNEL(guildIdResult, RouteParam2.channelId({ optional: true }), ":messageId?") }; CHANNEL = constants.CHANNEL; const RouteParam = tmp(4717).RouteParam; guildIdResult = RouteParam.guildId(); RouteParam2 = tmp(4717).RouteParam; const matchPathResult = matchPath(str2, obj); const tmp4 = constants; if (null != matchPathResult) { ({ guildId, channelId } = matchPathResult.params); let tmp10 = null; if (guildId !== _false) { tmp10 = guildId; } const obj2 = { guildId: tmp10, channelId }; if (channelId == null) { channelId = null; } return obj2; } else { let obj5; const matchPath2 = matchPathCompat.matchPath; matchPathCompat; if (str == null) { str = ""; } const obj3 = { path: GUILD_BOOSTING_MARKETING(RouteParam3.guildId()) }; GUILD_BOOSTING_MARKETING = tmp4.GUILD_BOOSTING_MARKETING; RouteParam3 = tmp(4717).RouteParam; const matchPath2Result = matchPath2(str, obj3); if (null != matchPath2Result) { obj5 = { guildId: matchPath2Result.params.guildId, channelId: null }; const obj4 = { guildId: matchPath2Result.params.guildId, channelId: null }; } else { obj5 = { guildId: null, channelId: null }; } return obj5; } } ({ Routes: c2, ME: c3 } = Constants); const withEqualityFn = module_1254.createWithEqualityFn((arg0) => { let closure_0 = arg0; let obj = { path: null, basePath: "/", guildId: null, channelId: null, updatePath(path) { let channelId; let closure_1; let closure_2; let guildId; ({ guildId: closure_1, channelId: closure_2 } = getMatchData(path)); getMatchData(path); let obj = path(dependencyMap[4]); obj.batchUpdates(() => { const obj = { path, guildId, channelId }; return path(obj); }); }, resetPath(pathname) { let channelId; let closure_1; let closure_2; let guildId; const basePath = pathname; ({ guildId: closure_1, channelId: closure_2 } = getMatchData(pathname)); getMatchData(pathname); let obj = basePath(dependencyMap[4]); obj.batchUpdates(() => { const obj = { path: null, guildId, channelId, basePath }; return basePath(obj); }); } }; return obj; }); const result = size.fileFinishedImporting("modules/routing/KeybindRouterStore.tsx"); export default withEqualityFn;