Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,106 @@
|
||||
/* Metro module 9928; source: modules/feedback/native/FeedbackModal.tsx; dependencies: [57, 31, 27, 33, 4501, 7972, 1244, 6766, 1948, 4578, 5080, 5280, 5282, 2] */
|
||||
function _fun77724(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10114:6, offset: 0x01e08948, size: 289 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = value.ScrollView;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({helpDeskLabel: {'lineHeight': 16,
|
||||
'marginTop': 8}, bottomContainer: {paddingHorizontal: 16}, submitButton: {'marginTop': 24, 'marginBottom': 24}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/feedback/native/FeedbackModal.tsx');
|
||||
exports.default = FeedbackModal;
|
||||
}
|
||||
|
||||
function FeedbackForm_77725({result, trackReport, titleLabel, descriptionLabel, hideHelpdeskLink}) { // fn#77725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10114:328, offset: 0x01e08a69, size: 841 bytes, params: 2, frame: 36
|
||||
var r9;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var TextWithIOSLinkWorkaround;
|
||||
var format;
|
||||
var ybi2tD;
|
||||
var object;
|
||||
const styles = useStyles();
|
||||
const reason = result.reason;
|
||||
const [property, property2] = env0_3(env0_4.useState(''), 2);
|
||||
const FormSection = (require(7972) /* metro dependency 7972: native */).FormSection;
|
||||
const FormInput = (require(7972) /* metro dependency 7972: native */).FormInput;
|
||||
const items2 = [<FormInput value={reason?.label} title={titleLabel ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vcqwCj)} disabled key="channel-input" />];
|
||||
const FormDivider = (require(7972) /* metro dependency 7972: native */).FormDivider;
|
||||
items2[1] = <FormDivider />;
|
||||
items2[2] = <FormInput value={property} title={descriptionLabel ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.h95hcn)} onChange={property2} multiline numberOfLines={4} autoCorrect />;
|
||||
const formSection = <FormSection>{items2}</FormSection>;
|
||||
if (hideHelpdeskLink) {
|
||||
r9 = !hideHelpdeskLink;
|
||||
} else {
|
||||
TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
var textWithIOSLinkWorkaroundProps = {'style': null, 'variant': 'text-xs/medium', 'color': 'text-muted',
|
||||
style: styles.helpDeskLabel};
|
||||
format = intl.format;
|
||||
ybi2tD = (require(1244) /* metro dependency 1244: indexNative */).t.ybi2tD;
|
||||
object = {};
|
||||
object.helpdeskURL = (importDefault(1948) /* metro dependency 1948: HelpdeskUtils */).getSubmitRequestURL();
|
||||
r9 = <TextWithIOSLinkWorkaround {...textWithIOSLinkWorkaroundProps}>{Reflect.apply(format, intl, [ybi2tD,
|
||||
object])}</TextWithIOSLinkWorkaround>;
|
||||
}
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
return (
|
||||
<ScrollView keyboardShouldPersistTaps="handled">
|
||||
{formSection}
|
||||
<View style={styles.bottomContainer}>
|
||||
{r9}
|
||||
<View style={styles.submitButton}>
|
||||
<Button
|
||||
disabled={property == null || property === ''}
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.geKm7t)}
|
||||
onPress={onPress_77726}
|
||||
/>
|
||||
</View>
|
||||
</View>
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
|
||||
function FeedbackModal(a0) { // fn#77727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10114:1388, offset: 0x01e08dfd, size: 267 bytes, params: 2, frame: 22
|
||||
const env0_0 = a0;
|
||||
const env0_3 = env0_4.useRef({result: a0.result, trackReport: a0.trackReport});
|
||||
env0_4.useEffect(_fun77728);
|
||||
const value2 = env0_4.useCallback(_fun77729, []);
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
const object = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['dBx+Cn']);
|
||||
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(value2);
|
||||
object.render = render_77730;
|
||||
return <Navigator initialRouteName="Feedback" screens={{Feedback: object}} />;
|
||||
}
|
||||
|
||||
function FeedbackForm_77725OnPress() { // fn#77726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10114:1250, owner: FeedbackForm_77725.onPress, offset: 0x01e08db2, size: 75 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
const trackReportBinding = trackReport;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, result, undefined);
|
||||
object2['feedback'] = env0_2;
|
||||
trackReportBinding(object2);
|
||||
}
|
||||
|
||||
function _fun77728() { // fn#77728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10114:1495, offset: 0x01e08f08, size: 37 bytes, params: 1, frame: 4
|
||||
env0_3.current = {result: result, trackReport: trackReport};
|
||||
}
|
||||
|
||||
function _fun77729() { // fn#77729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10114:1559, offset: 0x01e08f2d, size: 66 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
|
||||
const current = env0_3.current;
|
||||
current.trackReport(current.result);
|
||||
}
|
||||
|
||||
function FeedbackModalRender() { // fn#77730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10114:1807, owner: FeedbackModal.render, offset: 0x01e08f6f, size: 37 bytes, params: 1, frame: 13
|
||||
return <FeedbackForm_77725 {...env0_0} />;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user