Files
2026-07-28 01:06:53 +03:00

57 lines
3.5 KiB
TypeScript

/* Metro module 15178; source: modules/threads/native/components/ThreadAutoArchiveBottomSheet.tsx; dependencies: [31, 1386, 33, 7878, 7988, 1244, 7987, 2] */
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 IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ChannelConstantsModule from '../../../channel/ChannelConstants.tsx'; /* Metro dependency 1386 */
import * as ThreadAutoArchiveModule from '../../ThreadAutoArchive.tsx'; /* Metro dependency 7878 */
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 _fun115954(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15375:6, offset: 0x02475b52, size: 163 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ReactModule;
value = value.memo(_fun115955);
(FileImportTrackerModule).fileFinishedImporting('modules/threads/native/components/ThreadAutoArchiveBottomSheet.tsx');
exports.AutoArchiveDurationOptions = value;
function _fun115955({title, description, channel, selected, onSelectDuration}) { // fn#115955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15375:153, offset: 0x02475bf5, size: 256 bytes, params: 2, frame: 21
const autoArchiveOptions = (ThreadAutoArchiveModule).getAutoArchiveOptions();
const env0_0 = channel != null && channel.isForumPost() && channel.hasFlag(ChannelFlags.PINNED);
const TableRadioGroup = (TableRadioGroupNativeModule).TableRadioGroup;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const H4mGfI = (IndexNativeModule).t.H4mGfI;
return (
<TableRadioGroup
value={selected}
title={title}
description={description}
accessibilityLabel={Reflect.apply(string, intl, [H4mGfI])}
onChange={onSelectDuration}
hasIcons={false}
>
{autoArchiveOptions.map(_fun115956)}
</TableRadioGroup>
);
function _fun115956(a0) { // fn#115956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15375:473, offset: 0x02475cf5, size: 83 bytes, params: 2, frame: 16
const value = environment.__proto__;
const TableRadioRow = (TableRadioRowNativeModule).TableRadioRow;
return (
<TableRadioRow
value={a0.value}
disabled={env0_0}
label={a0.label}
key={a0.value}
/>
);
}
}
}
global.__d(_fun115954, 15178, [31, 1386, 33, 7878, 7988, 1244, 7987,
2]) /* metro module 15178, dependencies: [31, 1386, 33, 7878, 7988, 1244, 7987, 2] */;