115 lines
3.6 KiB
TypeScript
115 lines
3.6 KiB
TypeScript
// Module ID: 6101
|
|
// Function ID: 6102
|
|
// Name: QuarantineModeInfoAlert
|
|
// Dependencies: [19, 1085, 21, 5092, 5906, 587, 558, 576, 1126, 1200, 5088, 5398, 2]
|
|
|
|
// Module 6101 (QuarantineModeInfoAlert)
|
|
import react2 from "react" /* 576 */;
|
|
import nativeDefault from "native" /* 587 */;
|
|
import Constants from "Constants" /* 1085 */;
|
|
import intl3 from "intl" /* 1126 */;
|
|
import native from "native" /* 1200 */;
|
|
import Text_Text from "Text/Text" /* 5088 */;
|
|
import AlertDefault from "Alert" /* 5398 */;
|
|
import react from "react" /* 19 */;
|
|
import Fragment from "Fragment" /* 21 */;
|
|
import createStyles_mod from "createStyles" /* 5092 */;
|
|
import TextStyles from "TextStyles" /* 5906 */;
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let c3;
|
|
let closure_4;
|
|
let obj2;
|
|
const Fonts = Constants.Fonts;
|
|
({ jsx: c3, jsxs: closure_4 } = Fragment);
|
|
let createStyles = createStyles_mod;
|
|
let obj = { header: obj2, text: { textAlign: "center", marginVertical: 8 } };
|
|
obj2 = { textAlign: "center", marginVertical: 12 };
|
|
createStyles = createStyles.createStyles;
|
|
const merged = Object.assign(TextStyles(Fonts.PRIMARY_BOLD, nativeDefault.colors.MOBILE_TEXT_HEADING_PRIMARY, 24));
|
|
let closure_5 = createStyles(obj);
|
|
let tmp7 = ReactCompilerGating.isReactCompilerEnabled() ? (function QuarantineModeInfoAlert(onClose) {
|
|
let first;
|
|
let items;
|
|
let tmp10;
|
|
let tmp12;
|
|
let tmp7;
|
|
const obj = react2;
|
|
const cResult = obj.c(10);
|
|
onClose = onClose.onClose;
|
|
const tmp4 = closure_5();
|
|
const header = tmp4.header;
|
|
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
const intl = tmp(1126).intl;
|
|
const stringResult = intl.string(intl3.t.EouHwv);
|
|
cResult[0] = stringResult;
|
|
first = stringResult;
|
|
} else {
|
|
first = cResult[0];
|
|
}
|
|
if (cResult[1] !== tmp4.header) {
|
|
const obj2 = { style: header, children: first };
|
|
const tmp9 = _false(native.LegacyText, obj2);
|
|
cResult[1] = tmp4.header;
|
|
cResult[2] = tmp9;
|
|
tmp7 = tmp9;
|
|
} else {
|
|
tmp7 = cResult[2];
|
|
}
|
|
const text = tmp4.text;
|
|
if (cResult[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
const intl2 = tmp(1126).intl;
|
|
const stringResult1 = intl2.string(intl3.t.zNPBMA);
|
|
cResult[3] = stringResult1;
|
|
tmp10 = stringResult1;
|
|
} else {
|
|
tmp10 = cResult[3];
|
|
}
|
|
if (cResult[4] !== tmp4.text) {
|
|
const obj3 = { style: text, variant: "text-md/medium", children: tmp10 };
|
|
const tmp14 = _false(Text_Text.Text, obj3);
|
|
cResult[4] = tmp4.text;
|
|
cResult[5] = tmp14;
|
|
tmp12 = tmp14;
|
|
} else {
|
|
tmp12 = cResult[5];
|
|
}
|
|
if (cResult[6] === onClose) {
|
|
if (cResult[7] === tmp7) {
|
|
let tmp15;
|
|
if (cResult[8] === tmp12) {
|
|
tmp15 = cResult[9];
|
|
}
|
|
return tmp15;
|
|
}
|
|
}
|
|
const obj4 = { onClose, children: items };
|
|
items = [tmp7, tmp12];
|
|
const tmp16 = React3(AlertDefault, obj4);
|
|
cResult[6] = onClose;
|
|
cResult[7] = tmp7;
|
|
cResult[8] = tmp12;
|
|
cResult[9] = tmp16;
|
|
tmp15 = tmp16;
|
|
}) : (function QuarantineModeInfoAlert(onClose) {
|
|
let intl;
|
|
let intl2;
|
|
let items;
|
|
onClose = onClose.onClose;
|
|
const tmp = closure_5();
|
|
const obj = { onClose, children: items };
|
|
const obj2 = { style: tmp.header, children: intl.string(intl3.t.EouHwv) };
|
|
const tmp2 = AlertDefault;
|
|
const LegacyText = native.LegacyText;
|
|
intl = intl3.intl;
|
|
items = [_false(LegacyText, obj2), ];
|
|
const obj3 = { style: tmp.text, variant: "text-md/medium", children: intl2.string(intl3.t.zNPBMA) };
|
|
const Text = Text_Text.Text;
|
|
intl2 = intl3.intl;
|
|
items[1] = _false(Text, obj3);
|
|
return React3(tmp2, obj);
|
|
});
|
|
const result = size.fileFinishedImporting("modules/quarantine/native/QuarantineModeInfoAlert.tsx");
|
|
|
|
export default tmp7;
|