decord/source/modules/feedback/native/FeedbackModal.tsx

125 lines
4.5 KiB
TypeScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 11082
// Function ID: 11083
2026-07-20 16:05:17 +00:00
// Name: FeedbackForm
2026-08-13 07:00:46 +00:00
// Dependencies: [32, 19, 17, 21, 4342, 8012, 1236, 4338, 1993, 4755, 4550, 5823, 5310, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-13 07:00:46 +00:00
// Module 11082 (FeedbackForm)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
2026-07-29 08:29:29 +00:00
import noop from "noop";
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
let error;
let metroImportAll;
2026-07-23 10:11:24 +00:00
let require = arg1;
2026-07-20 16:05:17 +00:00
function FeedbackForm(result) {
let descriptionLabel;
2026-07-29 08:29:29 +00:00
let hideHelpdeskLink;
2026-07-23 10:11:24 +00:00
let importDefault;
2026-07-20 16:05:17 +00:00
let titleLabel;
result = result.result;
2026-07-23 10:11:24 +00:00
const require = result;
2026-07-29 08:29:29 +00:00
({ trackReport: importDefault, titleLabel, descriptionLabel, hideHelpdeskLink } = result);
let first;
2026-07-20 16:05:17 +00:00
const tmp = callback3();
const reason = result.reason;
const tmp2 = callback(React.useState(""), 2);
2026-07-29 08:29:29 +00:00
first = tmp2[0];
2026-07-20 16:05:17 +00:00
let label;
2026-07-29 08:29:29 +00:00
if (reason != null) {
2026-07-20 16:05:17 +00:00
label = reason.label;
}
2026-07-29 08:29:29 +00:00
let obj = { value: label, title: null, disabled: true };
if (titleLabel == null) {
const intl = tmp6(tmp7[6]).intl;
titleLabel = intl.string(tmp6(tmp7[6]).t.vcqwCj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[1] = titleLabel;
const items = [closure_7(require(first[5]).FormInput, obj, "channel-input"), closure_7(require(first[5]).FormDivider, {}), ];
obj = { value: first, title: null, onChange: null, multiline: true, numberOfLines: 4, autoCorrect: true };
if (descriptionLabel == null) {
const intl2 = tmp6(tmp7[6]).intl;
descriptionLabel = intl2.string(tmp6(tmp7[6]).t.h95hcn);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { children: null };
obj[1] = descriptionLabel;
obj[2] = tmp2[1];
items[2] = closure_7(require(first[5]).FormInput, obj);
obj[0] = items;
2026-07-23 10:11:24 +00:00
const items1 = [closure_8(require(first[5]).FormSection, obj), ];
2026-07-29 08:29:29 +00:00
const obj1 = { style: tmp.bottomContainer, children: null };
let tmp8Result = !hideHelpdeskLink;
if (!hideHelpdeskLink) {
const obj2 = { style: null, variant: "text-xs/medium", color: "text-muted", children: null };
obj2[0] = tmp.helpDeskLabel;
const intl3 = tmp6(tmp7[6]).intl;
const obj3 = { helpdeskURL: null };
let obj6 = importDefault(tmp7[8]);
obj3[0] = obj6.getSubmitRequestURL();
obj2[3] = intl3.format(tmp6(tmp7[6]).t.ybi2tD, obj3);
tmp8Result = tmp8(tmp6(tmp7[7]).Text, obj2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const items2 = [tmp8Result, ];
const obj4 = { style: tmp.submitButton, children: null };
let tmp13 = null == first;
if (!tmp13) {
tmp13 = "" === first;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj5 = { keyboardShouldPersistTaps: "handled", children: null };
obj6 = { disabled: tmp13, text: null, onPress: null };
const intl4 = tmp6(tmp7[6]).intl;
obj6[1] = intl4.string(require(first[6]).t.geKm7t);
obj6[2] = function onPress() {
2026-07-23 10:11:24 +00:00
let arr = outer1_1(first[10]);
2026-07-20 16:05:17 +00:00
arr = arr.pop();
const obj = {};
2026-07-23 10:11:24 +00:00
const merged = Object.assign(closure_0);
2026-07-29 08:29:29 +00:00
obj.feedback = first;
2026-07-20 16:05:17 +00:00
callback(obj);
};
2026-07-29 08:29:29 +00:00
obj4[1] = closure_7(require(first[9]).Button, obj6);
items2[1] = closure_7(closure_5, obj4);
obj1[1] = items2;
items1[1] = closure_8(closure_5, obj1);
obj5[1] = items1;
return closure_8(closure_6, obj5);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
({ View: c5, ScrollView: closure_6 } = get_ActivityIndicator);
({ jsx: error, jsxs: metroImportAll } = jsxProd);
let closure_9 = createCacheKey.createStyles({ helpDeskLabel: { lineHeight: 16, marginTop: 8 }, bottomContainer: { paddingHorizontal: 16 }, submitButton: { marginTop: 24, marginBottom: 24 } });
2026-07-23 10:11:24 +00:00
let result = require("get ActivityIndicator").fileFinishedImporting("modules/feedback/native/FeedbackModal.tsx");
2026-07-20 16:05:17 +00:00
export default function FeedbackModal(result) {
2026-07-23 10:11:24 +00:00
const _require = result;
2026-07-20 16:05:17 +00:00
result = result.result;
const importDefault = result;
const trackReport = result.trackReport;
2026-07-23 10:11:24 +00:00
let _slicedToArray = React.useRef({ result, trackReport });
2026-07-20 16:05:17 +00:00
const effect = React.useEffect(() => {
2026-07-23 10:11:24 +00:00
_slicedToArray.current = { result: closure_1, trackReport };
2026-07-20 16:05:17 +00:00
});
const callback = React.useCallback(() => {
let arr = result(trackReport[10]);
arr = arr.pop();
const current = ref.current;
current.trackReport(current.result);
}, []);
2026-07-29 08:29:29 +00:00
let obj = { initialRouteName: "Feedback", screens: null };
obj = { Feedback: null };
obj = { title: null, headerLeft: null, render: null };
2026-07-23 10:11:24 +00:00
const intl = _require(trackReport[6]).intl;
2026-07-29 08:29:29 +00:00
obj[0] = intl.string(_require(trackReport[6]).t["dBx+Cn"]);
obj[1] = _require(trackReport[12]).getHeaderCloseButton(callback);
obj[2] = function render() {
2026-07-23 10:11:24 +00:00
const merged = Object.assign(closure_0);
return outer1_7(outer1_10, {});
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj[0] = obj;
obj[1] = obj;
2026-07-23 10:11:24 +00:00
return callback2(_require(trackReport[11]).Navigator, obj);
2026-07-20 16:05:17 +00:00
};