/* Metro module 8431; source: modules/polls/chat/formatPollMessageChatData.tsx; dependencies: [4502, 6540, 1379, 1945, 4814, 1878, 8432, 661, 4242, 3797, 3801, 1423, 8433, 3790, 3773, 8434, 1244, 7149, 8436, 477, 8437, 8438, 2] */ import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */ import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */ import GuildMemberStore from '../../../stores/GuildMemberStore.tsx'; /* Metro dependency 1945 */ import AccessibilityStore from '../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */ import MessageStore from '../../../stores/MessageStore.tsx'; /* Metro dependency 4814 */ import EmojiStore from '../../emojis/EmojiStore.tsx'; /* Metro dependency 6540 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */ import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */ import * as Module04242Module from '../../../by-id/module-04242.js'; /* Metro dependency 4242 */ import * as PollsInteractionStoreModule from '../PollsInteractionStore.tsx'; /* Metro dependency 8432 */ import * as PollLayoutTypesModule from '../../../external/discord_common/js/shared/shared-constants/PollLayoutTypes.tsx'; /* Metro dependency 8436 */ import * as PollMessageChatDataTypesModule from './PollMessageChatDataTypes.tsx'; /* Metro dependency 8437 */ function _fun66917(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:6, offset: 0x01c0f902, size: 390 bytes, params: 8, frame: 23 const env0_0 = require; const _arrayLikeToArray_66920 = function(a0, a1) { var r0; var r1; var r2; var value3; var length; var value5; var value = undefined; var value2 = value == null; reducibleJoin2: while (true) { if (value2) { r0 = value2; break reducibleJoin2; } value3 = value > a0.length; r0 = value3; break reducibleJoin2; } reducibleJoin4: while (true) { if (r0) { length = a0.length; r1 = length; break reducibleJoin4; } r1 = value; break reducibleJoin4; } value = (0, global.Array)(r1); var value4 = 0; if (value4 < r1) { r2 = value4; reducibleLoop5: while (true) { value[r2] = a0[r2]; value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (value5 < r1) { r2 = value5; continue reducibleLoop5; } break reducibleLoop5; } } return value; }; const reactionForId2 = reactionForId; const isPollMessageDirectlyInteractive2 = isPollMessageDirectlyInteractive; const computeBasicPollChatData2 = computeBasicPollChatData; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const EMPTY_STRING_SNOWFLAKE_ID = ConstantsModule.EMPTY_STRING_SNOWFLAKE_ID; object = {'channelId': null, 'selectedAnswerIds': null, 'submitting': false, 'editing': false, 'showResults': false}; object.channelId = EMPTY_STRING_SNOWFLAKE_ID; const Set = global.Set; object.selectedAnswerIds = new Set(); (FileImportTrackerModule).fileFinishedImporting('modules/polls/chat/formatPollMessageChatData.tsx'); exports.default = formatPollMessageChatData; exports.reactionForId = reactionForId2; exports.isPollMessageDirectlyInteractive = isPollMessageDirectlyInteractive2; exports.computeBasicPollChatData = computeBasicPollChatData2; function _createForOfIteratorHelperLoose_66918(a0, a1) { // fn#66918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:243, offset: 0x01c0fa88, size: 372 bytes, params: 3, frame: 20 var r6; var r9; var r5; var value3; var regexp; const env0_0 = a0; const Symbol = global.Symbol; let value = typeof Symbol !== 'undefined'; let r1 = value && a0[global.Symbol.iterator]; r1 = !r1 ? a0['@@iterator'] : r1; if (r1) { value = r1.call(a0); return value.next.bind(value); } const Array = global.Array; if (Array.isArray(a0)) { if (r1) { } return _fun66919; } value = undefined; if (a0) { if (typeof a0 === 'string') { value = _arrayLikeToArray_66920(a0, value); r5 = value; } else { value3 = ({}).toString.call(a0).slice(8, -1); r6 = value3 === 'Object' && a0.constructor; r9 = r6 ? a0.constructor.name : value3; if (r9 === 'Map') { r6 = global.Array.from(a0); } else if (r9 === 'Set') { r6 = global.Array.from(a0); } else if (r9 === 'Arguments') { value = _arrayLikeToArray_66920(a0, value); r6 = value; } else { regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', ''); if (regexp.test(r9)) { value = _arrayLikeToArray_66920(a0, value); r6 = value; } else { r6 = value; } } r5 = r6; } } else { r5 = value; } if (r5) { if (r5) { } return _fun66919; } const TypeError = global.TypeError; throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'); function _fun66919() { // fn#66919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:814, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5 return env0_1 >= env0_0.length ? {done: true} : {done: false, value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]}; } } function reactionForId(a0, a1) { // fn#66921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:1239, offset: 0x01c0fbfc, size: 133 bytes, params: 3, frame: 19 var r2; var value3; var emoji; var id; var value4; var value5; const value = _createForOfIteratorHelperLoose_66918(a0); const value2 = value(); let done = value2.done; if (done) { return undefined; } let r3 = value2; while (true) { value3 = r3.value; emoji = value3.emoji; id = emoji.id; if (typeof id === 'number') { emoji = value3.emoji; id = emoji.id; value4 = '' + id; r2 = value4; } else { emoji = value3.emoji; id = emoji.id; r2 = id; } if (r2 === a1) { break; } value5 = value(); done = value5.done; if (done) { return undefined; } r3 = value5; continue; } return value3; } function transformPollEmoji(a0) { // fn#66922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:1418, offset: 0x01c0fc81, size: 366 bytes, params: 2, frame: 18 var animated; var r2; var r1; var object; var id; var defaultImport; let value = a1; const value2 = undefined; let r0 = value !== value2 ? value : {}; let animateEmoji = r0.animateEmoji; animateEmoji = !(animateEmoji === value2) && animateEmoji; let size = r0.size; size = size === value2 ? 48 : size; value = null; if (value != a0) { animated = a0.animated; r0 = value != animated || value == a0.id ? animated : value != (value == EmojiStore.getCustomEmojiById(a0.id) ? value2 : EmojiStore.getCustomEmojiById(a0.id).animated) && (value == EmojiStore.getCustomEmojiById(a0.id) ? value2 : EmojiStore.getCustomEmojiById(a0.id).animated); r1 = animateEmoji && value != r0; r1 = r1 && r0; object = {}; id = a0.id; r2 = value == id ? value : '' + a0.id; object.id = r2; object.name = a0.name; id = a0.id; if (value == id) { defaultImport = importDefault(3797) /* metro dependency 3797: UnicodeEmojis */; r2 = defaultImport.convertSurrogateToName(a0.name); } else { r2 = a0.name; } object.displayName = r2; id = a0.id; if (value == id) { value = importDefault(3801) /* metro dependency 3801: EmojiUtils */; value = value.getURL(a0.name); r2 = value; } else { value = importDefault(1423) /* metro dependency 1423: AvatarUtils */; value = value.getEmojiURL({id: a0.id, animated: r1, size: size}); r2 = value; } object.src = r2; object.animated = r1; return object; } return value2; } function isPollMessageDirectlyInteractive(a0) { // fn#66923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:1847, offset: 0x01c0fdef, size: 53 bytes, params: 2, frame: 15 return a0.poll == null || MessageStore.getMessage(a0.channel_id, a0.id) === a0; } function computeBasicPollChatData(a0, a1) { // fn#66924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:1949, offset: 0x01c0fe24, size: 644 bytes, params: 3, frame: 31 var r2; var r13; var r8; var r1; var r5; var reactions; var r7; var r11; var r23; var r14; var r15; var r20; var r18; var object; var value6; var moduleValue; var getPollStateBinding; var selectedAnswerIds; var submitting; var editing; var showResults; var reactions2; var messageStoreBinding; var value13; var channelStoreBinding; var value16; var hasAutomodQuarantinedProfile2; var isMemberCommunicationDisabled2; let value = a1; const value2 = a2; const value3 = undefined; const formattedExpirationLabel = (value2 !== value3 ? value2 : {}).formattedExpirationLabel; const poll = a0.poll; const value4 = null; if (value4 != poll) { value6 = a0.state === MessageStates.SENT; if (value6) { if (value4 != formattedExpirationLabel) { r2 = formattedExpirationLabel; } else { moduleValue = require(8433) /* metro dependency 8433: useFormattedExpirationLabel */; r2 = moduleValue.formatExpirationLabel(poll.expiry); } r13 = r2; } else { r13 = ''; } r8 = value4 == r13 && value6; if (value4 != value) { r1 = value; } else { getPollStateBinding = getPollState; value = a0.getChannelId(); value = getPollStateBinding(value, a0.id); r1 = value; } r1 = value4 == r1 ? env0_11 : r1; selectedAnswerIds = r1.selectedAnswerIds; submitting = r1.submitting; editing = r1.editing; showResults = r1.showResults; reactions2 = a0.reactions; value = isPollMessageDirectlyInteractive(a0); if (value) { r2 = reactions2; r7 = true; } else { messageStoreBinding = MessageStore; value = messageStoreBinding.getMessage(a0.channel_id, a0.id); r5 = !a0.isSearchHit && value4 != value; reactions = value4 == value ? value3 : value.reactions; r2 = value4 == reactions ? reactions2 : reactions; r7 = r5; } value = selectedAnswerIds.size > 0; value13 = r2.some(function(a0) { return a0.me_vote === true; }); r11 = !editing && value13; r23 = r11 || r8 || showResults; r14 = value6 && r7; if (r14) { r15 = value13 ? editing : !value13; r15 = !r15 ? r23 : r15; r14 = r15; } channelStoreBinding = ChannelStore; value16 = channelStoreBinding.getChannel(a0.getChannelId()); r20 = value4 == value16 || value4 == value16.getGuildId ? value3 : value16.getGuildId(); r18 = value4 != r20 ? GuildMemberStore.getSelfMember(r20) : value4; hasAutomodQuarantinedProfile2 = (require(3790) /* metro dependency 3790: AutomodPermissionUtils */).hasAutomodQuarantinedProfile(r18); isMemberCommunicationDisabled2 = (require(3773) /* metro dependency 3773: CommunicationDisabledUtils */).isMemberCommunicationDisabled(r18); object = {poll: poll, canTapAnswers: r14}; r14 = r11 && value6; r14 = r14 && !r8; object.canRemoveVote = r14; object.canShowVoteCounts = r23; r14 = !submitting && value; r14 = r14 && !r11; r14 = r14 && value6; r14 = r14 && !hasAutomodQuarantinedProfile2; r14 = r14 && !isMemberCommunicationDisabled2; object.canSubmitVote = r14; object.expirationLabel = r13; object.hasSelectedAnswer = value; object.hasVoted = r11; object.hasVoteRecorded = value13; object.isEditingVote = editing; object.isExpired = r8; object.isInteractive = r7; object.isSent = value6; object.reactions = r2; object.selectedAnswerIds = selectedAnswerIds; object.submitting = submitting; object.tapShouldOpenVotersModal = r23; object.showResults = showResults; return object; } return value3; } function formatPollMessageChatData(a0, a1) { // fn#66926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:3130, offset: 0x01c100b9, size: 1652 bytes, params: 3, frame: 39 var r1; var r17; var canTapAnswers; var canRemoveVote; var canShowVoteCounts; var canSubmitVote; var expirationLabel; const intl = (IndexNativeModule).intl; var string; const t = (IndexNativeModule).t; var hasSelectedAnswer; var hasVoted; var isEditingVote; var isExpired; var isInteractive; var reactions; var selectedAnswerIds; var submitting; var tapShouldOpenVotersModal; var showResults; var Math; var max; var value9; var value10; var value17; var isIOS2; var value21; var value23; var allow_multiselect; var value28; var moduleValue7; const value = a2; const value2 = undefined; const r0 = value !== value2 ? value : {}; if (r0.animateEmoji !== value2) { } let theme = r0.theme; theme = theme === value2 ? 'dark' : theme; const formattedExpirationLabel = r0.formattedExpirationLabel; var env0_1; var env0_13; var env0_14; const poll = a0.poll; if (poll != null) { var currentUser = UserStore.getCurrentUser(); if (currentUser == null) { return value2; } env0_1 = AccessibilityStore.useReducedMotion; var channelStoreBinding = ChannelStore; var getChannel = channelStoreBinding.getChannel; var getChannelId = a0.getChannelId; var value4 = Reflect.apply(getChannel, channelStoreBinding, [Reflect.apply(getChannelId, a0, [])]); var avatarUrl = (require(8434) /* metro dependency 8434: buildPlatformPollResourcesNative */).getAvatarUrl(currentUser, value4 == null || value4.getGuildId == null ? value2 : value4.getGuildId()); var answers = poll.answers; var layout_type = poll.layout_type; var computeBasicPollChatDataBinding = computeBasicPollChatData; var object = {formattedExpirationLabel: formattedExpirationLabel}; var basicPollChatData = computeBasicPollChatDataBinding(a0, a1, object); if (basicPollChatData != null) { canTapAnswers = basicPollChatData.canTapAnswers; canRemoveVote = basicPollChatData.canRemoveVote; canShowVoteCounts = basicPollChatData.canShowVoteCounts; canSubmitVote = basicPollChatData.canSubmitVote; expirationLabel = basicPollChatData.expirationLabel; if (value2 !== expirationLabel) { r1 = expirationLabel; } else { r1 = intl.string(t['e+J3JZ']); } hasSelectedAnswer = basicPollChatData.hasSelectedAnswer; hasVoted = basicPollChatData.hasVoted; isEditingVote = basicPollChatData.isEditingVote; isExpired = basicPollChatData.isExpired; isInteractive = basicPollChatData.isInteractive; reactions = basicPollChatData.reactions; selectedAnswerIds = basicPollChatData.selectedAnswerIds; submitting = basicPollChatData.submitting; tapShouldOpenVotersModal = basicPollChatData.tapShouldOpenVotersModal; showResults = basicPollChatData.showResults; env0_13 = intl.formatToPlainString(t.XRkuof, {count: (require(7149) /* metro dependency 7149: PollsUtils */).getTotalVotes(reactions)}); Math = global.Math; max = Math.max; value9 = answers.map(_fun66927); object = []; arraySpread(object, value9, 0, undefined); env0_14 = apply(max, object, Math, undefined); value10 = answers.map(_fun66928); value17 = (require(4242) /* metro dependency 4242 */).match({isExpired: isExpired, canSubmitVote: canSubmitVote, hasVoted: hasVoted, isEditingVote: isEditingVote, canRemoveVote: canRemoveVote, isInteractive: isInteractive, showResults: showResults}).with({isInteractive: false}, function() { }).with({isExpired: true}, _fun66941).with({isEditingVote: true}, _fun66942).with({canRemoveVote: true}, _fun66943).with({'hasVoted': false, 'showResults': true}, _fun66944).otherwise(_fun66945); isIOS2 = (require(477) /* metro dependency 477: PlatformUtils */).isIOS(); string = intl.string; r17 = isIOS2 ? Reflect.apply(string, intl, [t['PVATM/']]) : Reflect.apply(string, intl, [t.cHfFql]); value21 = (require(4242) /* metro dependency 4242 */).match({isExpired: isExpired, isInteractive: isInteractive, isEditingVote: isEditingVote}).with({'isInteractive': false, 'isExpired': false}, _fun66946); object = {isEditingVote: true}; value23 = value21.with(object, _fun66947).otherwise(_fun66948); if (isInteractive) { if (isExpired) { r1 = value2; } else if (hasVoted) { r1 = value2; } else if (showResults) { r1 = value2; } else { object = {'label': null, 'presentation': 'textButton', 'enabled': true, 'type': 'showVotes'}; object.label = intl.string(t['/KHAUF']); r1 = object; } } else { r1 = value2; } allow_multiselect = poll.allow_multiselect; value28 = (require(4242) /* metro dependency 4242 */).match({isInteractive: isInteractive, isExpired: isExpired, canSelectMultipleAnswers: allow_multiselect}).with({isInteractive: false}, _fun66949).with({isExpired: true}, _fun66950).with({canSelectMultipleAnswers: true}, _fun66951).otherwise(_fun66952); object = {}; object.question = poll.question; object.promptLabel = value28; object.answers = value10; moduleValue7 = require(4242) /* metro dependency 4242 */; object.answersInteraction = moduleValue7.match({tapShouldOpenVotersModal: tapShouldOpenVotersModal, canTapAnswers: canTapAnswers, canSelectMultipleAnswers: allow_multiselect}).with({tapShouldOpenVotersModal: true}, _fun66953).with({canTapAnswers: false}, _fun66954).with({canSelectMultipleAnswers: false}, _fun66955).with({canSelectMultipleAnswers: true}, _fun66956).exhaustive(); object.answerTapAccessibilityLabel = tapShouldOpenVotersModal ? r17 : value2; object.layoutType = layout_type; object.resources = (importDefault(8438) /* metro dependency 8438: buildPollResources */)({theme: theme, layoutType: layout_type}); object.containerStyle = 'normal'; object.primaryAction = value17; object.isInteractive = isInteractive; object.canTapAnswers = canTapAnswers; object.canSelectMultipleAnswers = allow_multiselect; object.hasSelectedAnswer = hasSelectedAnswer; object.canShowVoteCounts = canShowVoteCounts; object.hasVoted = hasVoted; object.isExpired = isExpired; object.myAvatarUrl = avatarUrl; object.secondaryAction = value23; object.tertiaryAction = r1; return object; } } return value2; function _fun66927({answer_id}) { // fn#66927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:3998, offset: 0x01c1072d, size: 99 bytes, params: 2, frame: 14 let value = environment.__proto__; const reactionForIdBinding = reactionForId; const reactionsBinding = reactions; value = '' + answer_id; value = reactionForIdBinding(reactionsBinding, value); return (value == null || value.count_details == null ? undefined : value.count_details.vote) ?? 0; } function _fun66928(a0) { // fn#66928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:4129, offset: 0x01c10790, size: 819 bytes, params: 2, frame: 27 var me_vote; var r8; var value11; let value = '' + a0.answer_id; const reactionForIdBinding = reactionForId; const reactionsBinding = reactions; const value4 = undefined; const value5 = reactionForIdBinding(reactionsBinding, value); const vote = value5 == null || value5.count_details == null ? value4 : value5.count_details.vote; const value6 = 0; let r0 = vote ?? value6; const r9 = value6 === env0_12 ? value6 : r0 / env0_12; const value8 = selectedAnswerIds.has(value); const r11 = r0 >= env0_14 && value6 !== r0; const hasVotedBinding = hasVoted; if (hasVotedBinding) { me_vote = value5 == null ? value4 : value5.me_vote; value11 = me_vote != null; r0 = me_vote; r8 = value11; } else { r0 = value4; r8 = hasVotedBinding; } r8 = r8 && r0; let object = {didSelfVote: r8}; object.hasVoted = hasVoted; object.isExpired = isExpired; object.isSelected = value8; object.isLeader = r11; object.showResults = showResults; const value21 = Module04242Module.match(object).with({'isExpired': true, 'isLeader': true, 'didSelfVote': true}, function() { return 'victorSelected'; }).with({'isExpired': true, 'isLeader': true, 'didSelfVote': false}, function() { return 'victorNotSelected'; }).with({'isExpired': true, 'didSelfVote': true}, function() { return 'loserSelected'; }).with({isExpired: true}, function() { return 'notVoted'; }).with({'didSelfVote': true, 'isExpired': false}, function() { return 'voted'; }).with({'hasVoted': true, 'isExpired': false}, function() { return 'notVoted'; }).with({isSelected: true}, function() { return 'selected'; }).with({'isExpired': false, 'showResults': true}, function() { return 'notVoted'; }).otherwise(function() { return 'normalVote'; }); object = {answerId: value}; const object2 = {}; object2.text = a0.poll_media.text; object2.emoji = transformPollEmoji(a0.poll_media.emoji, {animateEmoji: animateEmoji}); object2.stickerId = a0.poll_media.sticker_id; object2.attachmentIds = a0.poll_media.attachment_ids; object.pollMedia = object2; object.isSelected = value8; object.isVictor = isExpired && r11; object.didSelfVote = r8; object.style = value21; object.shouldAnimateTransition = submitting && !useReducedMotion; const Math = global.Math; object.votesPercentage = Math.round(100 * r9); value = Reflect.apply(Module04242Module.match, value, [layout_type]); const PollLayoutTypes = (PollLayoutTypesModule).PollLayoutTypes; const IMAGE_ONLY_ANSWERS = PollLayoutTypes.IMAGE_ONLY_ANSWERS; value = value.with(IMAGE_ONLY_ANSWERS, _fun66938); object.votes = value.otherwise(_fun66939); return object; function _fun66938() { // fn#66938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:5275, offset: 0x01c10af9, size: 48 bytes, params: 1, frame: 13 return '(' + env0_0.toLocaleString() + ')'; } function _fun66939() { // fn#66939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:5318, offset: 0x01c10b29, size: 76 bytes, params: 1, frame: 15 const intl = (IndexNativeModule).intl; const formatToPlainString = intl.formatToPlainString; const XRkuof = (IndexNativeModule).t.XRkuof; return Reflect.apply(formatToPlainString, intl, [XRkuof, {count: env0_0}]); } } function _fun66942() { // fn#66942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:5603, offset: 0x01c10b75, size: 96 bytes, params: 1, frame: 15 const intl = (IndexNativeModule).intl; const string = intl.string; const JwkNU4 = (IndexNativeModule).t.JwkNU4; return {label: Reflect.apply(string, intl, [JwkNU4]), presentation: 'button', enabled: hasSelectedAnswer, type: 'submit'}; } function _fun66943() { // fn#66943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:5732, offset: 0x01c10bd5, size: 84 bytes, params: 1, frame: 15 const intl = (IndexNativeModule).intl; const string = intl.string; const XhQEh8 = (IndexNativeModule).t.XhQEh8; return {'label': null, 'presentation': 'secondaryButton', 'enabled': true, 'type': 'remove', label: Reflect.apply(string, intl, [XhQEh8])}; } function _fun66944() { // fn#66944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:5881, offset: 0x01c10c29, size: 84 bytes, params: 1, frame: 15 const object = {'label': null, 'presentation': 'secondaryButton', 'enabled': true, 'type': 'showVotes'}; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.gNj6In); return object; } function _fun66945() { // fn#66945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:6009, offset: 0x01c10c7d, size: 96 bytes, params: 1, frame: 15 const intl = (IndexNativeModule).intl; const string = intl.string; const JwkNU4 = (IndexNativeModule).t.JwkNU4; return {label: Reflect.apply(string, intl, [JwkNU4]), presentation: 'button', enabled: canSubmitVote, type: 'submit'}; } function _fun66946() { // fn#66946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:6322, offset: 0x01c10cdd, size: 84 bytes, params: 1, frame: 15 const object = {'label': null, 'presentation': 'text', 'enabled': false}; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.trrip0); return object; } function _fun66947() { // fn#66947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:6436, offset: 0x01c10d31, size: 82 bytes, params: 1, frame: 15 const object = {'label': null, 'presentation': 'textButton', 'enabled': true, 'type': 'cancel'}; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC']); return object; } function _fun66948() { // fn#66948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:6559, offset: 0x01c10d83, size: 49 bytes, params: 1, frame: 3 return {'label': null, 'secondaryLabel': null, 'accessibilityHint': null, 'presentation': 'text', 'enabled': true, 'type': 'showVoterDetails', label: env0_13, secondaryLabel: env0_4, accessibilityHint: env0_15}; } function _fun66951() { // fn#66951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:6994, offset: 0x01c10db4, size: 64 bytes, params: 1, frame: 14 const intl = (IndexNativeModule).intl; return intl.string((IndexNativeModule).t.yCXvxa); } function _fun66952() { // fn#66952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:7053, offset: 0x01c10df4, size: 64 bytes, params: 1, frame: 14 const intl = (IndexNativeModule).intl; return intl.string((IndexNativeModule).t['9Y2wKO']); } function _fun66953() { // fn#66953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:7298, offset: 0x01c10e34, size: 39 bytes, params: 1, frame: 11 const PollChatAnswerInteractionType = (PollMessageChatDataTypesModule).PollChatAnswerInteractionType; return PollChatAnswerInteractionType.LIST; } function _fun66954() { // fn#66954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:7374, offset: 0x01c10e34, size: 39 bytes, params: 1, frame: 11 const PollChatAnswerInteractionType = (PollMessageChatDataTypesModule).PollChatAnswerInteractionType; return PollChatAnswerInteractionType.LIST; } function _fun66955() { // fn#66955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:7461, offset: 0x01c10e5b, size: 39 bytes, params: 1, frame: 11 const PollChatAnswerInteractionType = (PollMessageChatDataTypesModule).PollChatAnswerInteractionType; return PollChatAnswerInteractionType.RADIO_BUTTONS; } function _fun66956() { // fn#66956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8616:7557, offset: 0x01c10e82, size: 39 bytes, params: 1, frame: 11 const PollChatAnswerInteractionType = (PollMessageChatDataTypesModule).PollChatAnswerInteractionType; return PollChatAnswerInteractionType.CHECKBOXES; } } } function _fun66941() { // fn#66941, offset: 0x00c37b63, size: 4 bytes, params: 1, frame: 1 } function _fun66949() { // fn#66949, offset: 0x00c37b63, size: 4 bytes, params: 1, frame: 1 } function _fun66950() { // fn#66950, offset: 0x00c37b63, size: 4 bytes, params: 1, frame: 1 } global.__d(_fun66917, 8431, [4502, 6540, 1379, 1945, 4814, 1878, 8432, 661, 4242, 3797, 3801, 1423, 8433, 3790, 3773, 8434, 1244, 7149, 8436, 477, 8437, 8438, 2]) /* metro module 8431, dependencies: [4502, 6540, 1379, 1945, 4814, 1878, 8432, 661, 4242, 3797, 3801, 1423, 8433, 3790, 3773, 8434, 1244, 7149, 8436, 477, 8437, 8438, 2] */;