// Metro module 10630 (f10631). import { TransportTypes } from "../../Constants"; import { RPCCloseCodes } from "../../../../Constants"; import { validateOriginAndUpdateSocket, processSocketThrottlers, validateSocketApplication, getDeprecatedVoiceSettingsWithShortcut, getVoiceSettingsWithShortcut } from "../../RPCHelpers"; import RPCError from "../../RPCError"; let env7131 = {}; let c7132_0 = async (c26763_0, c26763_1, c26763_2) => { let r49; let c26763_4; let c30269_0, c30269_1, c30269_2; L12: { c26763_4 = void 0; c30269_0 = c26763_0; c30269_1 = c26763_1; c30269_2 = c26763_2; validateOriginAndUpdateSocket(c26763_0, c26763_1); if (c26763_2 == null) { r49 = Promise.reject(new RPCError({ closeCode: RPCCloseCodes.INVALID_CLIENTID }, "No Client ID Specified")); break L12; } await processSocketThrottlers(c26763_2, c26763_0.transport !== TransportTypes.POST_MESSAGE, c26763_0.abortController.signal); return validateSocketApplication(c30269_0, c30269_2, c30269_1); } return r49; }; export const validateSocketClient = function() { const apply = c7132_0.apply; return c7132_0.apply(this, arguments); }; export const getDeprecatedVoiceSettings = () => getDeprecatedVoiceSettingsWithShortcut(() => []); export const getVoiceSettings = (a0) => getVoiceSettingsWithShortcut(a0, () => "");