decord/stable/source/modules/vibegrations/native/VibegrationsSettingsRequestCard.tsx
2026-10-06 22:12:49 +00:00

175 lines
6.2 KiB
TypeScript

// Module ID: 16388
// Function ID: 16389
// Name: VibegrationsSettingsRequestCard
// Dependencies: [19, 17, 21, 4837, 588, 558, 576, 4801, 16262, 4833, 1127, 3718, 5282, 2]
// Module 16388 (VibegrationsSettingsRequestCard)
import react_native from "react-native" /* 17 */;
import nativeDefault from "native" /* 588 */;
import ActionSheetActionCreators from "ActionSheetActionCreators" /* 4801 */;
import VibegrationsSettingsSheet from "VibegrationsSettingsSheet" /* 16262 */;
import react from "react" /* 19 */;
import Fragment from "Fragment" /* 21 */;
import createStyles from "createStyles" /* 4837 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
const VibegrationsSettingsSheetDefault = VibegrationsSettingsSheet;
let projectId;
let hasOwnProperty;
let metroRequire;
let obj2;
const View = react_native.View;
({ jsx: hasOwnProperty, jsxs: metroRequire } = Fragment);
let obj = { card: obj2 };
obj2 = { backgroundColor: nativeDefault.colors.BACKGROUND_MOD_SUBTLE, borderWidth: 1, borderColor: nativeDefault.colors.BORDER_SUBTLE, borderRadius: nativeDefault.radii.md, padding: nativeDefault.space.PX_12, marginTop: nativeDefault.space.PX_8, gap: nativeDefault.space.PX_8 };
let closure_7 = createStyles.createStyles(obj);
let tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? ((projectId) => {
let intl;
let items;
let tmp = projectId;
let obj = projectId(576);
const cResult = obj.c(16);
projectId = projectId.projectId;
const request = projectId.request;
const tmp4 = closure_7();
if (cResult[0] === projectId) {
if (cResult[1] === request.keys) {
let tmp5;
let tmp7;
let tmp11;
let tmp14;
let tmp17;
let tmp20;
if (cResult[2] === request.note) {
tmp5 = cResult[3];
}
const _Symbol = Symbol;
const card = tmp4.card;
if (cResult[4] === Symbol.for("react.memo_cache_sentinel")) {
let obj2 = { variant: "text-xs/semibold", color: "text-muted", children: intl.string(request(3718).wgDhiQ) };
const Text = tmp(4833).Text;
intl = tmp(1127).intl;
const tmp10 = closure_5(Text, obj2);
cResult[4] = tmp10;
tmp7 = tmp10;
} else {
tmp7 = cResult[4];
}
if (cResult[5] !== request.note) {
if (null != request.note) {
let note;
if ("" !== request.note) {
note = request.note;
}
cResult[5] = request.note;
cResult[6] = note;
tmp11 = note;
}
const intl2 = tmp(1127).intl;
note = intl2.string(request(3718)["V+DBhs"]);
} else {
tmp11 = cResult[6];
}
if (cResult[7] !== tmp11) {
const obj3 = { variant: "text-sm/normal", color: "text-default", children: tmp11 };
const tmp16 = closure_5(tmp(4833).Text, obj3);
cResult[7] = tmp11;
cResult[8] = tmp16;
tmp14 = tmp16;
} else {
tmp14 = cResult[8];
}
const _Symbol2 = Symbol;
if (cResult[9] === Symbol.for("react.memo_cache_sentinel")) {
const intl3 = tmp(1127).intl;
const stringResult = intl3.string(request(3718)["KO2xN+"]);
cResult[9] = stringResult;
tmp17 = stringResult;
} else {
tmp17 = cResult[9];
}
if (cResult[10] !== tmp5) {
const obj4 = { variant: "secondary", size: "sm", onPress: tmp5, text: tmp17 };
const tmp22 = closure_5(tmp(5282).Button, obj4);
cResult[10] = tmp5;
cResult[11] = tmp22;
tmp20 = tmp22;
} else {
tmp20 = cResult[11];
}
if (cResult[12] === tmp4.card) {
if (cResult[13] === tmp14) {
let tmp23;
if (cResult[14] === tmp20) {
tmp23 = cResult[15];
}
return tmp23;
}
}
const obj5 = { style: card, children: items };
items = [tmp7, tmp14, tmp20];
const tmp26 = closure_6(View, obj5);
cResult[12] = tmp4.card;
cResult[13] = tmp14;
cResult[14] = tmp20;
cResult[15] = tmp26;
tmp23 = tmp26;
}
}
const fn = function o() {
let obj2;
const tmp = ActionSheetActionCreators;
const showActionSheet = tmp.showActionSheet;
const obj = { content: hasOwnProperty(VibegrationsSettingsSheetDefault, obj2), key: VibegrationsSettingsSheet.VIBEGRATIONS_SETTINGS_SHEET_KEY };
obj2 = { projectId, scopeKeys: request.keys, note: request.note, notifyAgent: true, isPreview: true };
showActionSheet(obj);
};
cResult[0] = projectId;
cResult[1] = request.keys;
cResult[2] = request.note;
cResult[3] = fn;
tmp5 = fn;
}) : ((projectId) => {
let intl;
let intl3;
projectId = projectId.projectId;
const request = projectId.request;
const items = [projectId, request];
let tmp = closure_7();
let obj = { style: tmp.card, children: null };
const callback = react.useCallback(() => {
let obj2;
const tmp = ActionSheetActionCreators;
const showActionSheet = tmp.showActionSheet;
const obj = { content: hasOwnProperty(VibegrationsSettingsSheetDefault, obj2), key: VibegrationsSettingsSheet.VIBEGRATIONS_SETTINGS_SHEET_KEY };
obj2 = { projectId, scopeKeys: request.keys, note: request.note, notifyAgent: true, isPreview: true };
showActionSheet(obj);
}, items);
let obj2 = { variant: "text-xs/semibold", color: "text-muted", children: intl.string(request(3718).wgDhiQ) };
const Text = projectId(4833).Text;
intl = projectId(1127).intl;
const items1 = [closure_5(Text, obj2), , ];
const tmp3 = closure_6;
const tmp4 = View;
if (null != request.note) {
let note;
if ("" !== request.note) {
note = request.note;
}
const obj3 = { variant: "text-sm/normal", color: "text-default", children: note };
items1[1] = closure_5(tmp9, obj3);
const obj4 = { variant: "secondary", size: "sm", onPress: callback, text: intl3.string(request(3718)["KO2xN+"]) };
const Button = tmp6(5282).Button;
intl3 = tmp6(1127).intl;
items1[2] = closure_5(Button, obj4);
obj.children = items1;
return tmp3(tmp4, obj);
}
const intl2 = tmp6(1127).intl;
note = intl2.string(tmp8(3718)["V+DBhs"]);
});
const result = size.fileFinishedImporting("modules/vibegrations/native/VibegrationsSettingsRequestCard.tsx");
export default tmp3;