Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
+298
@@ -0,0 +1,298 @@
|
||||
/* Metro module 14248; source: modules/user_settings/changelog/native/UserSettingsSurveyChangelogOverride.tsx; dependencies: [57, 31, 27, 4604, 9536, 33, 4501, 697, 6805, 6758, 6807, 4060, 6797, 7981, 4578, 9537, 4080, 566, 6266, 6231, 6238, 4573, 8338, 4572, 2] */
|
||||
function _fun107774(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14445:6, offset: 0x02308555, size: 386 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_6 = (require(27) /* metro dependency 27 */).ScrollView;
|
||||
const changelogStore = importDefault(4604) /* metro dependency 4604: ChangelogStore */;
|
||||
const surveyStore = importDefault(9536) /* metro dependency 9536: SurveyStore */;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value2.jsx;
|
||||
const env0_10 = value2.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const object = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object.padding = PX_16;
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object.backgroundColor = BACKGROUND_BASE_LOW;
|
||||
const env0_11 = Reflect.apply(createStyles, createStylesModule, [{scrollView: object}]);
|
||||
value = value.memo(UserSettingsSurveyChangelogOverride);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/changelog/native/UserSettingsSurveyChangelogOverride.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function SurveyOverrideInfoActionSheet({survey}) { // fn#107775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14445:302, offset: 0x023086d7, size: 187 bytes, params: 2, frame: 21
|
||||
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
const object2 = {};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
object2.header = <BottomSheetTitleHeader title="Last Survey Data" />;
|
||||
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
const Group = ActionSheetRow.Group;
|
||||
const Object = global.Object;
|
||||
return (
|
||||
<ActionSheet {...object2}>
|
||||
<Group hasIcons>
|
||||
{Object.entries(survey).map(_fun107776)}
|
||||
</Group>
|
||||
</ActionSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function SurveyOverrideActionSheet() { // fn#107778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14445:724, offset: 0x023088b2, size: 306 bytes, params: 1, frame: 23
|
||||
const [property, property2] = env0_4(env0_5.useState(_fun107779), 2);
|
||||
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
const object2 = {};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
object2.header = <BottomSheetTitleHeader title="Survey Override" />;
|
||||
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
|
||||
const textInput = <TextInput label="Survey Override" size="md" placeholder="Enter the ID of the Survey you want to test" onChange={property2} isClearable />;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const value = property === '';
|
||||
return (
|
||||
<ActionSheet {...object2}>
|
||||
{textInput}
|
||||
<Button
|
||||
text={value ? 'Reset Survey Override' : 'Fetch Survey'}
|
||||
variant={value ? 'destructive' : property == null ? 'secondary' : 'primary'}
|
||||
onPress={onPress_107780}
|
||||
/>
|
||||
</ActionSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function SurveyInfo() { // fn#107781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14445:1377, offset: 0x02308a90, size: 283 bytes, params: 1, frame: 23
|
||||
const value2 = undefined;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
const value3 = (importDefault(6266) /* metro dependency 6266: usePrevious */)(Reflect.apply(useStateFromStores,
|
||||
fluxModule, [[SurveyStore], function() {
|
||||
return SurveyStore.getCurrentSurvey();
|
||||
}]));
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
return (
|
||||
<TableRowGroup title="Surveys" hasIcons={false}>
|
||||
<TableRow
|
||||
label="Survey override"
|
||||
subLabel="Force a survey to be shown."
|
||||
arrow
|
||||
onPress={onPress_107783}
|
||||
/>
|
||||
<TableRow
|
||||
label="Previous survey data"
|
||||
subLabel={value3 == null ? 'No survey data' : value2}
|
||||
arrow={value3 != null}
|
||||
onPress={value3 != null ? _fun107784 : value2}
|
||||
/>
|
||||
</TableRowGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function ChangelogOverrideDebuggingActionSheet() { // fn#107785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14445:2017, offset: 0x02308c5f, size: 195 bytes, params: 1, frame: 22
|
||||
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
const object2 = {};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
object2.header = <BottomSheetTitleHeader title="Changelog Debugging" />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const JSON = global.JSON;
|
||||
const stringify = JSON.stringify;
|
||||
let value = ChangelogStore.getStateForDebugging();
|
||||
value = Reflect.apply(stringify, JSON, [value, undefined, '\t']);
|
||||
return (
|
||||
<ActionSheet {...object2}>
|
||||
<Text variant="text-md/semibold">
|
||||
{'' + value}
|
||||
</Text>
|
||||
</ActionSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function ChangelogOverrideActionSheet() { // fn#107786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14445:2291, offset: 0x02308d22, size: 306 bytes, params: 1, frame: 23
|
||||
const [property, property2] = env0_4(env0_5.useState(function() {
|
||||
return ChangelogStore.overrideId();
|
||||
}), 2);
|
||||
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
const object2 = {};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
object2.header = <BottomSheetTitleHeader title="Changelog Override" />;
|
||||
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
|
||||
const textInput = <TextInput label="Changelog Override" size="md" placeholder="Enter the ID of the changelog you want to test" onChange={property2} isClearable />;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const value = property === '';
|
||||
return (
|
||||
<ActionSheet {...object2}>
|
||||
{textInput}
|
||||
<Button
|
||||
text={value ? 'Reset Changelog Override' : 'Fetch Changelog'}
|
||||
variant={value ? 'destructive' : property == null ? 'secondary' : 'primary'}
|
||||
onPress={onPress_107788}
|
||||
/>
|
||||
</ActionSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function ChangelogInfo() { // fn#107789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14445:2938, offset: 0x02308ef2, size: 178 bytes, params: 1, frame: 22
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
return (
|
||||
<TableRowGroup title="Changelog" hasIcons={false}>
|
||||
<TableRow
|
||||
label="Changelog override"
|
||||
subLabel="Force a changelog to be shown."
|
||||
arrow
|
||||
onPress={onPress_107790}
|
||||
/>
|
||||
<TableRow
|
||||
label="Changelog debugging"
|
||||
arrow
|
||||
onPress={onPress_107791}
|
||||
/>
|
||||
</TableRowGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function UserSettingsSurveyChangelogOverride() { // fn#107792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14445:3472, offset: 0x02309036, size: 139 bytes, params: 1, frame: 20
|
||||
const styles = useStyles();
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
return (
|
||||
<ScrollView style={styles.scrollView}>
|
||||
<Stack spacing={16}>
|
||||
<SurveyInfo />
|
||||
<ChangelogInfo />
|
||||
</Stack>
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun107776(a0) { // fn#107776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14445:537, offset: 0x02308792, size: 207 bytes, params: 2, frame: 21
|
||||
var r0;
|
||||
var r1;
|
||||
var r10;
|
||||
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;
|
||||
r10 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = item3;
|
||||
r1 = value3;
|
||||
r10 = value;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r1 = value3;
|
||||
r10 = item;
|
||||
}
|
||||
}
|
||||
if (!r1) {
|
||||
r0.return();
|
||||
}
|
||||
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
const r7 = r10 != null ? global.JSON.stringify(r10) : 'null';
|
||||
const CopyIcon = (require(4060) /* metro dependency 4060: CopyIcon */).CopyIcon;
|
||||
return (
|
||||
<ActionSheetRow
|
||||
label={r3}
|
||||
subLabel={r7}
|
||||
icon={<CopyIcon />}
|
||||
onPress={onPress_107777}
|
||||
key={r3}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun107779() { // fn#107779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14445:779, offset: 0x023089e4, size: 33 bytes, params: 1, frame: 10
|
||||
let value = environment.__proto__;
|
||||
value = SurveyStore.getSurveyOverride();
|
||||
const value2 = null;
|
||||
return value2 != value ? value : value2;
|
||||
}
|
||||
|
||||
function SurveyOverrideActionSheetOnPress() { // fn#107780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14445:1248, owner: SurveyOverrideActionSheet.onPress, offset: 0x02308a05, size: 139 bytes, params: 1, frame: 12
|
||||
var value2;
|
||||
var value;
|
||||
if (env0_0 === '') {
|
||||
value = environment.__proto__;
|
||||
value = importAll(9537) /* metro dependency 9537: SurveyActionCreators */;
|
||||
value.overrideSurvey(null);
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
(importAll(9537) /* metro dependency 9537: SurveyActionCreators */).overrideSurvey(env0_0);
|
||||
}
|
||||
value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('SurveyOverrideActionSheet');
|
||||
}
|
||||
|
||||
function SurveyInfoOnPress() { // fn#107783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14445:1651, owner: SurveyInfo.onPress, offset: 0x02308bbe, size: 73 bytes, params: 1, frame: 16
|
||||
const value = environment.__proto__;
|
||||
const defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
||||
const openLazy = defaultImport.openLazy;
|
||||
const Promise = global.Promise;
|
||||
Reflect.apply(openLazy, defaultImport, [Promise.resolve({default: SurveyOverrideActionSheet}),
|
||||
'SurveyOverrideActionSheet']);
|
||||
}
|
||||
|
||||
function _fun107784() { // fn#107784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14445:1880, offset: 0x02308c07, size: 88 bytes, params: 1, frame: 17
|
||||
const value = environment.__proto__;
|
||||
const defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
||||
const openLazy = defaultImport.openLazy;
|
||||
const Promise = global.Promise;
|
||||
Reflect.apply(openLazy, defaultImport, [Promise.resolve({default: SurveyOverrideInfoActionSheet}),
|
||||
'SurveyOverrideInfoActionSheet', {survey: env0_0}]);
|
||||
}
|
||||
|
||||
function ChangelogOverrideActionSheetOnPress() { // fn#107788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14445:2794, owner: ChangelogOverrideActionSheet.onPress, offset: 0x02308e67, size: 139 bytes, params: 1, frame: 12
|
||||
var value2;
|
||||
var value;
|
||||
if (env0_0 === '') {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(8338) /* metro dependency 8338: ChangeLogActionCreators */;
|
||||
value.setChangelogOverride(null);
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(8338) /* metro dependency 8338: ChangeLogActionCreators */).setChangelogOverride(env0_0);
|
||||
}
|
||||
value = environment.__proto__;
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('ChangelogOverrideActionSheet');
|
||||
}
|
||||
|
||||
function ChangelogInfoOnPress() { // fn#107790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14445:3143, owner: ChangelogInfo.onPress, offset: 0x02308fa4, size: 73 bytes, params: 1, frame: 16
|
||||
const value = environment.__proto__;
|
||||
const defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
||||
const openLazy = defaultImport.openLazy;
|
||||
const Promise = global.Promise;
|
||||
Reflect.apply(openLazy, defaultImport, [Promise.resolve({default: ChangelogOverrideActionSheet}),
|
||||
'ChangelogOverrideActionSheet']);
|
||||
}
|
||||
|
||||
function ChangelogInfoOnPress_107791() { // fn#107791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14445:3323, owner: ChangelogInfo.onPress, offset: 0x02308fed, size: 73 bytes, params: 1, frame: 16
|
||||
const value = environment.__proto__;
|
||||
const defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
||||
const openLazy = defaultImport.openLazy;
|
||||
const Promise = global.Promise;
|
||||
Reflect.apply(openLazy, defaultImport, [Promise.resolve({default: ChangelogOverrideDebuggingActionSheet}),
|
||||
'ChangelogOverrideDebuggingActionSheet']);
|
||||
}
|
||||
|
||||
function onPress_107777() { // fn#107777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14445:660, offset: 0x02308861, size: 81 bytes, params: 1, frame: 15
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(6797) /* metro dependency 6797: ClipboardUtilsNative */;
|
||||
value.copy(env0_0 != null ? global.JSON.stringify(env0_0) : 'null');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user