decord/beta/source/modules/connections/native/LeaveConnectionRoleActionSheet.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

122 lines
4.5 KiB
TypeScript

// Module ID: 11692
// Function ID: 11693
// Name: LeaveConnectionRoleActionSheet
// Dependencies: [19, 17, 21, 4758, 558, 568, 4754, 1119, 5188, 7397, 2]
// Module 11692 (LeaveConnectionRoleActionSheet)
import c from "c" /* 568 */;
import util from "util" /* 1119 */;
import Text_Text from "Text/Text" /* 4754 */;
import components_Button_Button from "components/Button/Button" /* 5188 */;
import Sheet_BottomSheet from "Sheet/BottomSheet" /* 7397 */;
import noop from "module_19" /* 19 */;
require = fn;
const View = fn(17).View;
const jsxProd = fn(21);
({ jsx: c3, jsxs: closure_4 } = jsxProd);
const createStyles = fn(4758);
let closure_5 = createStyles.createStyles({ container: { padding: 12 }, marginTop: { marginTop: 8 }, button: { marginTop: 8, marginBottom: 16 } });
const ReactCompilerGating = fn(558);
const size = fn(2);
const result = size.fileFinishedImporting("modules/connections/native/LeaveConnectionRoleActionSheet.tsx");
export default ReactCompilerGating.isReactCompilerEnabled() ? ((onLeaveRolePressed) => {
const cResult = c.c(14);
onLeaveRolePressed = onLeaveRolePressed.onLeaveRolePressed;
const tmp4 = closure_5();
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const obj2 = { variant: "heading-lg/extrabold", color: "mobile-text-heading-primary", children: null };
const intl = tmp(1119).intl;
obj2.children = intl.string(tmp(1119).t.vytvJF);
const tmp7 = React3(tmp(4754).Text, obj2);
cResult[0] = tmp7;
let first = tmp7;
} else {
first = cResult[0];
}
if (cResult[1] === Symbol.for("react.memo_cache_sentinel")) {
const intl2 = tmp(1119).intl;
const stringResult = intl2.string(tmp(1119).t.caJwb5);
cResult[1] = stringResult;
let tmp8 = stringResult;
} else {
tmp8 = cResult[1];
}
if (cResult[2] !== tmp4.marginTop) {
const obj3 = { style: tmp4.marginTop, variant: "text-md/normal", color: "text-default", children: tmp8 };
const tmp12 = React3(tmp(4754).Text, obj3);
cResult[2] = tmp4.marginTop;
cResult[3] = tmp12;
let tmp10 = tmp12;
} else {
tmp10 = cResult[3];
}
if (cResult[4] === Symbol.for("react.memo_cache_sentinel")) {
const intl3 = tmp(1119).intl;
const stringResult1 = intl3.string(tmp(1119).t["+Oi4XF"]);
cResult[4] = stringResult1;
let tmp13 = stringResult1;
} else {
tmp13 = cResult[4];
}
if (cResult[5] !== onLeaveRolePressed) {
const obj4 = { variant: "destructive", onPress: onLeaveRolePressed, text: tmp13, grow: true };
const tmp17 = React3(tmp(5188).Button, obj4);
cResult[5] = onLeaveRolePressed;
cResult[6] = tmp17;
let tmp15 = tmp17;
} else {
tmp15 = cResult[6];
}
if (cResult[7] === tmp4.button) {
if (cResult[8] === tmp15) {
let tmp18 = cResult[9];
}
if (cResult[10] === tmp4.container) {
if (cResult[11] === tmp10) {
if (cResult[12] === tmp18) {
let tmp20 = cResult[13];
}
return tmp20;
}
}
const obj5 = { children: null };
const obj6 = { style: tmp4.container, children: null };
const items = [first, tmp10, tmp18];
obj6.children = items;
obj5.children = React4(View, obj6);
const tmp24 = React3(tmp(7397).BottomSheet, obj5);
cResult[10] = tmp4.container;
cResult[11] = tmp10;
cResult[12] = tmp18;
cResult[13] = tmp24;
tmp20 = tmp24;
}
const tmp19 = React3(View, { style: tmp4.button, children: tmp15 });
cResult[7] = tmp4.button;
cResult[8] = tmp15;
cResult[9] = tmp19;
tmp18 = tmp19;
}) : ((onLeaveRolePressed) => {
const tmp = closure_5();
const obj = { children: null };
const obj2 = { style: tmp.container, children: null };
const obj3 = { variant: "heading-lg/extrabold", color: "mobile-text-heading-primary", children: null };
const intl = util.intl;
obj3.children = intl.string(util.t.vytvJF);
const items = [React3(Text_Text.Text, obj3), , ];
const obj4 = { style: tmp.marginTop, variant: "text-md/normal", color: "text-default", children: null };
const intl2 = util.intl;
obj4.children = intl2.string(util.t.caJwb5);
items[1] = React3(Text_Text.Text, obj4);
const obj5 = { style: tmp.button, children: null };
const obj6 = { variant: "destructive", onPress: onLeaveRolePressed.onLeaveRolePressed, text: null, grow: true };
const intl3 = util.intl;
obj6.text = intl3.string(util.t["+Oi4XF"]);
obj5.children = React3(components_Button_Button.Button, obj6);
items[2] = React3(View, obj5);
obj2.children = items;
obj.children = React4(View, obj2);
return React3(Sheet_BottomSheet.BottomSheet, obj);
});