decord/source/modules/share/native/ShareFooterLayout.tsx

81 lines
3.8 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 10142
// Function ID: 10143
2026-07-20 16:05:17 +00:00
// Name: ShareFooterLayout
2026-08-05 07:35:12 +00:00
// Dependencies: [19, 17, 21, 4255, 712, 5295, 4116, 4664, 4668, 4251, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 10142 (ShareFooterLayout)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let c4;
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
const require = arg1;
({ jsx: c4, Fragment: c5, jsxs: closure_6 } = jsxProd);
createCacheKey = { footer: null, footerSeparator: null, warningWrapper: null, chatRow: null };
createCacheKey = { display: "flex", flexDirection: "column", flexShrink: 0, paddingHorizontal: require("Themes").space.PX_16, paddingVertical: require("Themes").space.PX_12, gap: require("Themes").space.PX_12, backgroundColor: require("Themes").colors.BACKGROUND_SURFACE_HIGHEST, borderTopWidth: 1, borderTopColor: require("Themes").colors.BORDER_SUBTLE };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { marginHorizontal: -require("Themes").space.PX_16, borderBottomWidth: 1, borderBottomColor: require("Themes").colors.BORDER_SUBTLE };
createCacheKey[2] = { display: "flex", flexDirection: "column", gap: 8 };
let obj1 = { marginHorizontal: -require("Themes").space.PX_16, borderBottomWidth: 1, borderBottomColor: require("Themes").colors.BORDER_SUBTLE };
createCacheKey[3] = { display: "flex", flexDirection: "row", gap: require("Themes").space.PX_12, alignItems: "flex-end" };
createCacheKey = createCacheKey.createStyles(createCacheKey);
2026-07-20 16:05:17 +00:00
let closure_8 = { code: "function ShareFooterLayoutTsx1(){const{withSpring,footerPaddingBottom,ON_PRESS_SPRING}=this.__closure;return{paddingBottom:withSpring(footerPaddingBottom,ON_PRESS_SPRING,'respect-motion-settings')};}" };
2026-07-29 08:29:29 +00:00
let obj2 = { display: "flex", flexDirection: "row", gap: require("Themes").space.PX_12, alignItems: "flex-end" };
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("modules/share/native/ShareFooterLayout.tsx");
2026-07-20 16:05:17 +00:00
export default function ShareFooterLayout(arg0) {
let avoidKeyboard;
let chatInput;
let preview;
let sendButton;
let warningText;
({ preview, warningText } = arg0);
2026-07-29 08:29:29 +00:00
let _require;
2026-07-20 16:05:17 +00:00
({ chatInput, sendButton, avoidKeyboard } = arg0);
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
2026-08-05 07:35:12 +00:00
const sum = tmp.footer.paddingVertical + importDefault(5295)({ includeKeyboardHeight: avoidKeyboard, includeCustomKeyboardHeight: false }).insets.bottom;
2026-07-29 08:29:29 +00:00
_require = sum;
2026-08-05 07:35:12 +00:00
let obj = _require(4116);
2026-07-20 16:05:17 +00:00
const fn = function f() {
2026-07-29 08:29:29 +00:00
const obj = { paddingBottom: null };
obj[0] = _undefined(outer1_2[7]).withSpring(_undefined, _undefined(outer1_2[8]).ON_PRESS_SPRING, "respect-motion-settings");
2026-07-20 16:05:17 +00:00
return obj;
};
2026-08-05 07:35:12 +00:00
obj = { withSpring: _require(4664).withSpring, footerPaddingBottom: sum, ON_PRESS_SPRING: _require(4668).ON_PRESS_SPRING };
2026-07-20 16:05:17 +00:00
fn.__closure = obj;
fn.__workletHash = 2871405301293;
fn.__initData = closure_8;
const animatedStyle = obj.useAnimatedStyle(fn);
2026-07-29 08:29:29 +00:00
obj = { style: items, children: null };
2026-07-23 10:11:24 +00:00
items = [tmp.footer, animatedStyle];
2026-07-29 08:29:29 +00:00
let tmp6Result = null;
2026-07-20 16:05:17 +00:00
if (null != preview) {
2026-07-29 08:29:29 +00:00
const obj1 = { children: null };
2026-07-20 16:05:17 +00:00
const items1 = [preview, ];
2026-07-29 08:29:29 +00:00
const obj2 = { style: null };
obj2[0] = tmp.footerSeparator;
2026-07-20 16:05:17 +00:00
items1[1] = callback(View, obj2);
2026-07-29 08:29:29 +00:00
obj1[0] = items1;
tmp6Result = tmp6(closure_5, obj1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const items2 = [tmp6Result, ];
const obj3 = { style: tmp.warningWrapper, children: null };
2026-07-20 16:05:17 +00:00
const items3 = [chatInput, sendButton];
2026-07-29 08:29:29 +00:00
const items4 = [closure_6(View, { style: tmp.chatRow, children: items3 }), ];
2026-07-20 16:05:17 +00:00
let tmp12 = null != warningText;
if (tmp12) {
2026-07-29 08:29:29 +00:00
const obj5 = { variant: "text-sm/normal", color: "text-feedback-warning", children: null };
obj5[2] = warningText;
2026-08-05 07:35:12 +00:00
tmp12 = callback(_require(4251).Text, obj5);
2026-07-20 16:05:17 +00:00
}
items4[1] = tmp12;
2026-07-29 08:29:29 +00:00
obj3[1] = items4;
items2[1] = closure_6(View, obj3);
obj[1] = items2;
2026-08-05 07:35:12 +00:00
return closure_6(importDefault(4116).View, obj);
2026-07-20 16:05:17 +00:00
};