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

76 lines
3.8 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 11253
// Function ID: 11254
2026-07-20 16:05:17 +00:00
// Name: ShareFooterLayout
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 21, 4380, 712, 5475, 4120, 4814, 4818, 4376, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 11253 (ShareFooterLayout)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
2026-08-25 06:04:03 +00:00
import _modDef4120 from "module_4120" /* 4120 */;
import useSafeAreaInsetsKeyboardAwareDefault from "useSafeAreaInsetsKeyboardAware" /* 5475 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ jsx: c4, Fragment: c5, jsxs: closure_6 } = jsxProd);
createCacheKey = { footer: null, footerSeparator: null, warningWrapper: null, chatRow: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { display: "flex", flexDirection: "column", flexShrink: 0, paddingHorizontal: ThemesDefault.space.PX_16, paddingVertical: ThemesDefault.space.PX_12, gap: ThemesDefault.space.PX_12, backgroundColor: ThemesDefault.colors.BACKGROUND_SURFACE_HIGHEST, borderTopWidth: 1, borderTopColor: ThemesDefault.colors.BORDER_SUBTLE };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[1] = { marginHorizontal: -ThemesDefault.space.PX_16, borderBottomWidth: 1, borderBottomColor: ThemesDefault.colors.BORDER_SUBTLE };
2026-07-29 08:29:29 +00:00
createCacheKey[2] = { display: "flex", flexDirection: "column", gap: 8 };
2026-08-24 06:08:38 +00:00
let obj1 = { marginHorizontal: -ThemesDefault.space.PX_16, borderBottomWidth: 1, borderBottomColor: ThemesDefault.colors.BORDER_SUBTLE };
createCacheKey[3] = { display: "flex", flexDirection: "row", gap: ThemesDefault.space.PX_12, alignItems: "flex-end" };
let closure_7 = 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-08-24 06:08:38 +00:00
let obj2 = { display: "flex", flexDirection: "row", gap: ThemesDefault.space.PX_12, alignItems: "flex-end" };
const result = require("set").fileFinishedImporting("modules/share/native/ShareFooterLayout.tsx");
2026-07-20 16:05:17 +00:00
export default function ShareFooterLayout(arg0) {
({ 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-08-24 06:08:38 +00:00
const tmp = callback2();
const sum = tmp.footer.paddingVertical + useSafeAreaInsetsKeyboardAwareDefault({ includeKeyboardHeight: avoidKeyboard, includeCustomKeyboardHeight: false }).insets.bottom;
2026-07-29 08:29:29 +00:00
_require = sum;
2026-08-25 06:04:03 +00:00
let obj = _require(4120);
2026-07-20 16:05:17 +00:00
const fn = function f() {
2026-08-24 06:08:38 +00:00
const obj = { paddingBottom: _undefined(closure_1_2[7]).withSpring(_undefined, _undefined(closure_1_2[8]).ON_PRESS_SPRING, "respect-motion-settings") };
2026-07-20 16:05:17 +00:00
return obj;
};
2026-08-25 06:04:03 +00:00
obj = { withSpring: _require(4814).withSpring, footerPaddingBottom: sum, ON_PRESS_SPRING: _require(4818).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-08-24 06:08:38 +00:00
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-25 06:04:03 +00:00
tmp12 = callback(_require(4376).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-25 06:04:03 +00:00
return closure_6(_modDef4120.View, obj);
2026-07-20 16:05:17 +00:00
};