// Module ID: 4184 // Function ID: 4185 // Name: RouteParam // Dependencies: [677, 1398, 507, 4185, 2] // Module 4184 (RouteParam) import { PSEUDO_GUILD_IDS } from "INVITE"; import { StaticChannelRoutes } from "set"; const result = require("getAuthenticationPath").fileFinishedImporting("modules/routing/RouteParam.tsx"); export const RouteParam = { guildId() { let obj = arg0; if (arg0 === undefined) { obj = {}; } let str = obj.name; if (str === undefined) { str = "guildId"; } let flag = obj.optional; if (flag === undefined) { flag = false; } const mapped = PSEUDO_GUILD_IDS.map(importDefault(4185)); const combined = "" + mapped.join("|") + "|\\d+"; let flag2 = { optional: flag }.optional; if (flag2 === undefined) { flag2 = false; } let str2 = ""; if (flag2) { str2 = "?"; } const unescapedPathParam = new require(507) /* getAuthenticationPath */.UnescapedPathParam(":" + importDefault(4185)(str) + "(" + combined + ")" + str2); return unescapedPathParam; }, channelId() { let obj = arg0; if (arg0 === undefined) { obj = {}; } let str = obj.name; if (str === undefined) { str = "channelId"; } let flag = obj.optional; if (flag === undefined) { flag = false; } const items = [...StaticChannelRoutes]; const mapped = items.map(importDefault(4185)); const combined = "" + mapped.join("|") + "|\\d+"; let flag2 = { optional: flag }.optional; if (flag2 === undefined) { flag2 = false; } let str2 = ""; if (flag2) { str2 = "?"; } const unescapedPathParam = new require(507) /* getAuthenticationPath */.UnescapedPathParam(":" + importDefault(4185)(str) + "(" + combined + ")" + str2); return unescapedPathParam; } };