Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
88 lines
3.7 KiB
TypeScript
88 lines
3.7 KiB
TypeScript
// Module ID: 16824
|
|
// Function ID: 16825
|
|
// Name: VibegrationsThinkingOverlay
|
|
// Dependencies: [19, 17, 16753, 21, 4640, 576, 504, 5695, 16580, 4636, 1115, 3593, 16801, 2]
|
|
// Exports: default
|
|
|
|
// Module 16824 (VibegrationsThinkingOverlay)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import VibegrationsChatStore from "VibegrationsChatStore" /* 16753 */;
|
|
|
|
const require = fn;
|
|
get_ActivityIndicator = fn(17);
|
|
({ ScrollView: closure_4, View: hasOwnProperty } = get_ActivityIndicator);
|
|
const jsxProd = fn(21);
|
|
({ jsx: closure_7, jsxs: closure_8 } = jsxProd);
|
|
const createStyles = fn(4640);
|
|
let obj2 = { root: null, opaque: null, body: null, header: null, panel: null };
|
|
const rect = { position: "absolute", top: nativeDefault.space.PX_8, left: nativeDefault.space.PX_8, right: nativeDefault.space.PX_8 };
|
|
obj2.root = rect;
|
|
obj2.opaque = { backgroundColor: nativeDefault.colors.BACKGROUND_SURFACE_HIGH, borderRadius: nativeDefault.modules.mobile.CARD_DEFAULT_RADIUS };
|
|
let obj3 = { backgroundColor: nativeDefault.colors.BACKGROUND_SURFACE_HIGH, borderRadius: nativeDefault.modules.mobile.CARD_DEFAULT_RADIUS };
|
|
obj2.body = { gap: nativeDefault.space.PX_8 };
|
|
let obj4 = { gap: nativeDefault.space.PX_8 };
|
|
obj2.header = { flexDirection: "row", alignItems: "center", gap: nativeDefault.space.PX_8 };
|
|
obj2.panel = { maxHeight: 240 };
|
|
let closure_9 = createStyles.createStyles(obj2);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/vibegrations/native/VibegrationsThinkingOverlay.tsx");
|
|
|
|
export default function VibegrationsThinkingOverlay(projectId) {
|
|
projectId = projectId.projectId;
|
|
const tmp = closure_9();
|
|
const ref = noop.useRef(null);
|
|
const items = [VibegrationsChatStore];
|
|
const items1 = [projectId];
|
|
const stateFromStores = projectId(504).useStateFromStores(items, () => VibegrationsChatStore.getThinkingActivity(projectId), items1);
|
|
let str;
|
|
if (stateFromStores != null) {
|
|
str = stateFromStores.text;
|
|
}
|
|
if (str == null) {
|
|
str = "";
|
|
}
|
|
const obj2 = { style: tmp.root, children: null };
|
|
const obj3 = { style: tmp.opaque, children: null };
|
|
const obj4 = { style: tmp.body, children: null };
|
|
const obj5 = { style: tmp.header, children: null };
|
|
const obj = projectId(504);
|
|
const tmp8 = closure_8;
|
|
const items2 = [closure_7(projectId(16580).LightbulbIcon, { size: "xs", color: ref(576).colors.TEXT_BRAND }), ];
|
|
const obj7 = { variant: "text-sm/semibold", color: "text-strong", children: null };
|
|
const intl = tmp3(1115).intl;
|
|
obj7.children = intl.string(ref(3593).ltkR4n);
|
|
items2[1] = closure_7(projectId(4636).Text, obj7);
|
|
obj5.children = items2;
|
|
const items3 = [closure_8(closure_5, obj5), ];
|
|
if ("" !== str) {
|
|
const obj8 = {
|
|
ref,
|
|
style: tmp.panel,
|
|
nestedScrollEnabled: true,
|
|
onContentSizeChange() {
|
|
const current = ref.current;
|
|
let scrollToEndResult;
|
|
if (current != null) {
|
|
scrollToEndResult = current.scrollToEnd({ animated: false });
|
|
}
|
|
return scrollToEndResult;
|
|
},
|
|
children: null
|
|
};
|
|
const obj9 = { source: str };
|
|
obj8.children = tmp6(tmp9(16801), obj9);
|
|
let tmp6Result = tmp6(closure_4, obj8);
|
|
} else {
|
|
const obj10 = { variant: "text-sm/normal", color: "text-muted", children: null };
|
|
const intl2 = tmp3(1115).intl;
|
|
obj10.children = intl2.string(tmp9(3593).rXPcUx);
|
|
tmp6Result = tmp6(tmp3(4636).Text, obj10);
|
|
}
|
|
const obj6 = { size: "xs", color: ref(576).colors.TEXT_BRAND };
|
|
items3[1] = tmp6Result;
|
|
obj4.children = items3;
|
|
obj3.children = closure_7(projectId(5695).Card, { variant: "primary", shadow: "high", children: tmp8(closure_5, obj4) });
|
|
obj2.children = closure_7(closure_5, obj3);
|
|
return closure_7(closure_5, obj2);
|
|
};
|