51 lines
3.2 KiB
TypeScript
51 lines
3.2 KiB
TypeScript
/* Metro module 11244; source: modules/threads/native/components/ThreadNotificationSettingsBottomSheet.tsx; dependencies: [1243, 33, 10914, 6805, 6758, 1244, 7988, 7153, 7987, 2] */
|
|
function _fun85961(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11430:6, offset: 0x01f82b9a, size: 145 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = (require(1243) /* metro dependency 1243: ThreadConstants */).getThreadNotificationOptions;
|
|
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/threads/native/components/ThreadNotificationSettingsBottomSheet.tsx');
|
|
exports.default = ThreadNotificationsBottomSheet;
|
|
}
|
|
|
|
function ThreadNotificationsBottomSheet({channel}) { // fn#85962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11430:268, offset: 0x01f82c2b, size: 293 bytes, params: 2, frame: 24
|
|
const value2 = (require(10914) /* metro dependency 10914: ThreadNotificationSettings */).useThreadNotificationSetting(channel);
|
|
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
|
const object2 = {};
|
|
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
object2.header = <BottomSheetTitleHeader title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.h850Ss)} />;
|
|
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
|
|
return (
|
|
<ActionSheet {...object2}>
|
|
<TableRadioGroup
|
|
hasIcons={false}
|
|
value={value2}
|
|
onChange={onChange_85963}
|
|
accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.h850Ss)}
|
|
>
|
|
{getThreadNotificationOptions().map(_fun85964)}
|
|
</TableRadioGroup>
|
|
</ActionSheet>
|
|
);
|
|
}
|
|
|
|
function ThreadNotificationsBottomSheetOnChange(a0) { // fn#85963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11430:549, owner: ThreadNotificationsBottomSheet.onChange, offset: 0x01f82d50, size: 55 bytes, params: 2, frame: 14
|
|
let value = environment.__proto__;
|
|
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
|
|
return value.setNotificationSettings(channel, {flags: a0});
|
|
}
|
|
|
|
function _fun85964({setting, label}) { // fn#85964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11430:672, offset: 0x01f82d87, size: 90 bytes, params: 2, frame: 17
|
|
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
|
return (
|
|
<TableRadioRow
|
|
value={setting}
|
|
label={label}
|
|
key={'' + setting}
|
|
/>
|
|
);
|
|
}
|
|
|