/* Metro module 11736; source: modules/polls/native/PollDurationActionSheet.tsx; dependencies: [31, 33, 11735, 3869, 4080, 7988, 1244, 7987, 6805, 2] */ import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */ import UsePollDurationOptions from '../usePollDurationOptions.tsx'; /* Metro dependency 11735 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as AccessibilityAnnouncerAndroidModule from '../../../external/discord_common/js/packages/design/components/AccessibilityAnnouncer/AccessibilityAnnouncer.android.tsx'; /* Metro dependency 3869 */ import * as ActionSheetNativeModule from '../../../design/components/Sheet/native/ActionSheet.native.tsx'; /* Metro dependency 6805 */ import * as TableRadioRowNativeModule from '../../../design/components/TableRow/native/TableRadioRow.native.tsx'; /* Metro dependency 7987 */ import * as TableRadioGroupNativeModule from '../../../design/components/TableRow/native/TableRadioGroup.native.tsx'; /* Metro dependency 7988 */ function _fun89936(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11922:6, offset: 0x02024c9b, size: 153 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/polls/native/PollDurationActionSheet.tsx'); exports.default = PollDurationActionSheet; function PollDurationRadioGroup({selectedDuration, onChange}) { // fn#89937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11922:120, offset: 0x02024d34, size: 234 bytes, params: 2, frame: 22 const value2 = (UsePollDurationOptions)(); const value3 = ReactModule.useCallback(_fun89938, [value2, onChange]); const TableRadioGroup = (TableRadioGroupNativeModule).TableRadioGroup; object = {}; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['0ZStp9']); object.hasIcons = false; object.onChange = value3; object.defaultValue = selectedDuration; const Object = global.Object; return ( {Object.entries(value2).map(_fun89939)} ); function _fun89938(a0) { // fn#89938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11922:218, offset: 0x02024e1e, size: 93 bytes, params: 2, frame: 15 onChange(a0); const AccessibilityAnnouncer = (AccessibilityAnnouncerAndroidModule).AccessibilityAnnouncer; AccessibilityAnnouncer.announce(env0_1[a0]); (ActionSheetActionCreators).hideActionSheet(); } function _fun89939(a0) { // fn#89939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11922:459, offset: 0x02024e7b, size: 128 bytes, params: 2, frame: 18 var r0; var r1; var r5; var item3; var value3; const iterator = a0[Symbol.iterator](); const iterator2 = iterator.next; let item2 = Reflect.apply(iterator2, iterator, []); let item = item2.value; item2 = item2.done ? undefined : iterator; const value = undefined; const value2 = item2 === value; const r3 = value2 ? value : item; if (value2) { r0 = item2; r1 = value2; r5 = value; } else { item3 = Reflect.apply(iterator2, item2, []); item = item3.value; item3 = item3.done ? undefined : item2; value3 = item3 === value; if (value3) { r0 = item3; r1 = value3; r5 = value; } else { r0 = item3; r1 = value3; r5 = item; } } if (!r1) { r0.return(); } const TableRadioRow = (TableRadioRowNativeModule).TableRadioRow; return ( ); } } function PollDurationActionSheet({selectedDuration, onChange}) { // fn#89940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11922:619, offset: 0x02024efb, size: 90 bytes, params: 2, frame: 18 const ActionSheet = (ActionSheetNativeModule).ActionSheet; return ( ); } } global.__d(_fun89936, 11736, [31, 33, 11735, 3869, 4080, 7988, 1244, 7987, 6805, 2]) /* metro module 11736, dependencies: [31, 33, 11735, 3869, 4080, 7988, 1244, 7987, 6805, 2] */;