decord/source/modules/safety_hub/native/AppealIngestionCollectSignal.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

98 lines
5.1 KiB
TypeScript

// Module ID: 12031
// Function ID: 12032
// Name: AppealIngestionCollectSignal
// Dependencies: [19, 17, 8537, 21, 4636, 576, 4355, 8716, 8536, 12010, 573, 4603, 12032, 1896, 1114, 12016, 4632, 2]
// Exports: default
// Module 12031 (AppealIngestionCollectSignal)
import DispatcherDefault from "Dispatcher" /* 573 */;
import nativeDefault from "native" /* 576 */;
import asyncRequireImpl from "asyncRequireImpl" /* 1896 */;
import useA11yRolesNative from "useA11yRolesNative" /* 4355 */;
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4603 */;
import SafetyHubUtils from "SafetyHubUtils" /* 8536 */;
import Form from "Form" /* 8716 */;
import noop from "module_19" /* 19 */;
require = fn;
function AppealSignalRadioRow(signal) {
signal = signal.signal;
({ selected, onSelect: importDefault } = signal);
const radioA11yNative = useA11yRolesNative.useRadioA11yNative({ selected });
({ accessibilityRole, accessibilityState } = radioA11yNative);
const obj2 = { style: signal.rowStyle, label: null, onPress: null, trailing: null, accessibilityRole: null, accessibilityState: null };
const obj3 = { text: null };
obj3.text = SafetyHubUtils.getAppealSignalDisplayText(signal);
obj2.label = timestampProducer(Form.FormRow.Label, obj3);
obj2.onPress = function onPress() {
return importDefault(signal);
};
obj2.trailing = timestampProducer(Form.FormRow.Radio, { selected });
obj2.accessibilityRole = accessibilityRole;
obj2.accessibilityState = accessibilityState;
return timestampProducer(Form.FormRow, obj2);
}
const View = fn(17).View;
const SafetyHubConstants = fn(8537);
({ AppealIngestionSignal: closure_4, AppealIngestionSignalOrder: hasOwnProperty } = SafetyHubConstants);
const jsxProd = fn(21);
({ jsx: metroRequire, jsxs: closure_7 } = jsxProd);
const createStyles = fn(4636);
let obj2 = { container: { flex: 1, paddingHorizontal: 16 }, form: { marginBottom: 16, backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW }, formRow: null, formSection: null, disclaimer: null };
let obj3 = { marginBottom: 16, backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW };
obj2.formRow = { paddingVertical: 16, backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOWEST };
obj2.formSection = { gap: 8 };
obj2.disclaimer = { marginTop: 24 };
let closure_8 = createStyles.createStyles(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("modules/safety_hub/native/AppealIngestionCollectSignal.tsx");
export default function AppealIngestionCollectSignal(isDsaEligible) {
isDsaEligible = isDsaEligible.isDsaEligible;
function handleAppealSignalSelect(signal) {
DispatcherDefault.dispatch({ type: "SAFETY_HUB_APPEAL_SIGNAL_SELECT", signal });
let tmp4 = isDsaEligible;
if (isDsaEligible) {
tmp4 = signal === constants.SOMETHING_ELSE;
}
if (tmp4) {
const obj3 = {
onSave(userInput) {
formRow(573).dispatch({ type: "SAFETY_HUB_APPEAL_SIGNAL_CUSTOM_INPUT_CHANGE", userInput });
const obj = formRow(573);
const obj2 = { type: "SAFETY_HUB_APPEAL_SIGNAL_CUSTOM_INPUT_CHANGE", userInput };
formRow(4603).hideActionSheet("AppealIngestionFreeTextAppealReasonActionSheet");
},
onClose() {
return formRow(4603).hideActionSheet("AppealIngestionFreeTextAppealReasonActionSheet");
}
};
ActionSheetActionCreatorsDefault.openLazy(asyncRequireImpl(12032, dependencyMap.paths), "AppealIngestionFreeTextAppealReasonActionSheet", obj3);
const tmpResult = ActionSheetActionCreatorsDefault;
}
}
const tmp = closure_8();
const formRow = tmp;
dependencyMap = isDsaEligible(12010).useSafetyHubAppealSignal();
const intl = isDsaEligible(1114).intl;
let obj = isDsaEligible(12010);
const intl2 = isDsaEligible(1114).intl;
const stringResult = intl.string(isDsaEligible(1114).t["C5q+pW"]);
let obj2 = { children: null };
const items = [closure_6(isDsaEligible(12016).AppealIngestionModalHeader, { headerText: stringResult, subHeaderText: intl2.string(isDsaEligible(1114).t.VEcRhw) }), ];
let obj3 = { style: tmp.container, children: null };
const obj4 = { style: tmp.form, children: null };
const stringResult1 = intl2.string(isDsaEligible(1114).t.VEcRhw);
const items1 = [closure_6(isDsaEligible(8716).FormSection, { sectionBodyStyle: tmp.formSection, accessibilityRole: "radiogroup", children: closure_5.map((signal, index) => timestampProducer(AppealSignalRadioRow, { signal, selected: signal === closure_2, rowStyle: formRow.formRow, onSelect: handleAppealSignalSelect }, "formrow-" + index)) }), ];
const obj6 = { style: tmp.disclaimer, children: null };
const obj7 = { variant: "text-sm/normal", children: null };
const intl3 = isDsaEligible(1114).intl;
obj7.children = intl3.format(isDsaEligible(1114).t["8k9GCW"], {});
obj6.children = closure_6(isDsaEligible(4632).Text, obj7);
items1[1] = closure_6(handleAppealSignalSelect, obj6);
obj4.children = items1;
obj3.children = closure_7(isDsaEligible(8716).Form, obj4);
items[1] = closure_6(handleAppealSignalSelect, obj3);
obj2.children = items;
return closure_7(isDsaEligible(12016).AppealIngestionModalScreen, obj2);
};