/* Metro module 7643; source: modules/premium/PremiumGiftingUtils.tsx; dependencies: [5, 1379, 4503, 4603, 44, 4129, 7067, 7076, 2] */ function _fun61195(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7821:6, offset: 0x0171db5e, size: 209 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(5) /* metro dependency 5 */; const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; const env0_5 = (require(4503) /* metro dependency 4503: MessageConstants */).MessageSendLocation; const value = _fun61196(); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/PremiumGiftingUtils.tsx'); exports.AnimationState = {ACTION: 'action', LOOP: 'loop', IDLE: 'idle'}; exports.sendGiftMessage = value; exports.unhandledGiftIntent = function() { }; } function _fun61196() { // fn#61196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7821:222, offset: 0x0171dc2f, size: 32 bytes, params: 1, frame: 12 const env0_0 = env0_3(_fun61198); return _fun61200; } function* _fun61198(a0, a1) { // fn#61198, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7821:242, offset: 0x0171dc58, size: 311 bytes, params: 3, frame: 22 var environment; if (false) { return undefined; } if (a1 == null) { throw new global.Error('giftCode must be defined'); } if (a0 == null) { throw new global.Error('Recipient must be defined'); } value = environment.__proto__.__proto__; let binding = env2_1; const value3 = binding(env2_2[3]); const openPrivateChannel = value3.openPrivateChannel; let id = a0.id; const value4 = Reflect.apply(openPrivateChannel, value3, [{recipientIds: id}]); yield value4.then(_fun61199); const value5 = undefined; if (false) { return value5; } binding = env2_0; const binding2 = env2_2; const giftCodeURL = binding(binding2[5]).getGiftCodeURL(a1); binding = env2_1; const value9 = binding(binding2[6]); const sendMessage = value9.sendMessage; id = value5.id; const value11 = binding(binding2[7]).parse(value5, giftCodeURL); const GIFTING = env2_5.GIFTING; return Reflect.apply(sendMessage, value9, [id, value11, undefined, {isGiftLinkSentOnBehalfOfUser: true, location: GIFTING}]); } function _fun61199(a0) { // fn#61199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7821:434, offset: 0x0171dd8f, size: 102 bytes, params: 2, frame: 15 const value = environment.__proto__.__proto__.__proto__; const channel = env3_4.getChannel(a0); env3_1(env3_2[4])(channel != null, 'PrivateChannel is null'); if (channel == null) { throw new global.Error('Channel must be defined'); } return channel; }