62 lines
4.3 KiB
TypeScript
62 lines
4.3 KiB
TypeScript
/* Metro module 11244; source: modules/threads/native/components/ThreadNotificationSettingsBottomSheet.tsx; dependencies: [1243, 33, 10914, 6805, 6758, 1244, 7988, 7153, 7987, 2] */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as ThreadConstantsModule from '../../ThreadConstants.tsx'; /* Metro dependency 1243 */
|
|
import * as BottomSheetTitleHeaderNativeModule from '../../../../design/components/Sheet/native/BottomSheetTitleHeader.native.tsx'; /* Metro dependency 6758 */
|
|
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 */
|
|
import * as ThreadNotificationSettingsModule from '../../ThreadNotificationSettings.tsx'; /* Metro dependency 10914 */
|
|
|
|
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});
|
|
(FileImportTrackerModule).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 = (ThreadNotificationSettingsModule).useThreadNotificationSetting(channel);
|
|
const ActionSheet = (ActionSheetNativeModule).ActionSheet;
|
|
const object = {};
|
|
const BottomSheetTitleHeader = (BottomSheetTitleHeaderNativeModule).BottomSheetTitleHeader;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
object.header = (
|
|
<BottomSheetTitleHeader title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.h850Ss)} />
|
|
);
|
|
const TableRadioGroup = (TableRadioGroupNativeModule).TableRadioGroup;
|
|
return (
|
|
<ActionSheet {...object}>
|
|
<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 = (TableRadioRowNativeModule).TableRadioRow;
|
|
return (
|
|
<TableRadioRow
|
|
value={setting}
|
|
label={label}
|
|
key={'' + setting}
|
|
/>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun85961, 11244, [1243, 33, 10914, 6805, 6758, 1244, 7988, 7153, 7987,
|
|
2]) /* metro module 11244, dependencies: [1243, 33, 10914, 6805, 6758, 1244, 7988, 7153, 7987, 2] */;
|