72 lines
3.4 KiB
TypeScript
72 lines
3.4 KiB
TypeScript
// Module ID: 9882
|
|
// Function ID: 76525
|
|
// Name: ShareFooterLayout
|
|
// Dependencies: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
|
// Exports: default
|
|
|
|
// Module 9882 (ShareFooterLayout)
|
|
import "result";
|
|
import { View } from "result";
|
|
import result from "result";
|
|
import result from "result";
|
|
import result from "result";
|
|
|
|
({ jsx: closure_4, Fragment: closure_5, jsxs: closure_6 } = result);
|
|
result = {};
|
|
result = { "Null": true, "Null": true, "Null": true, paddingHorizontal: require("result").space.PX_16, paddingVertical: require("result").space.PX_12, gap: require("result").space.PX_12, backgroundColor: require("result").colors.BACKGROUND_SURFACE_HIGHEST, borderTopWidth: 1, borderTopColor: require("result").colors.BORDER_SUBTLE };
|
|
result.footer = result;
|
|
result.footerSeparator = { marginHorizontal: -require("result").space.PX_16, borderBottomWidth: 1, borderBottomColor: require("result").colors.BORDER_SUBTLE };
|
|
result.warningWrapper = { st: "MESSAGE_REQUEST", backgroundColor: "POLL_CREATION_DURATION_ACTION_SHEET_KEY", borderWidth: "AGE_VERIFICATION_GET_STARTED_MODAL_KEY" };
|
|
const obj1 = { marginHorizontal: -require("result").space.PX_16, borderBottomWidth: 1, borderBottomColor: require("result").colors.BORDER_SUBTLE };
|
|
result.chatRow = { gap: require("result").space.PX_12 };
|
|
result = result.createStyles(result);
|
|
let closure_8 = { code: "function ShareFooterLayoutTsx1(){const{withSpring,footerPaddingBottom,ON_PRESS_SPRING}=this.__closure;return{paddingBottom:withSpring(footerPaddingBottom,ON_PRESS_SPRING,'respect-motion-settings')};}" };
|
|
result = result.fileFinishedImporting("modules/share/native/ShareFooterLayout.tsx");
|
|
|
|
export default function ShareFooterLayout(arg0) {
|
|
let avoidKeyboard;
|
|
let chatInput;
|
|
let preview;
|
|
let sendButton;
|
|
let warningText;
|
|
({ preview, warningText } = arg0);
|
|
({ chatInput, sendButton, avoidKeyboard } = arg0);
|
|
const tmp = result();
|
|
const sum = tmp.footer.paddingVertical + importDefault(dependencyMap[5])({ includeKeyboardHeight: avoidKeyboard, includeCustomKeyboardHeight: false }).insets.bottom;
|
|
const arg1 = sum;
|
|
let obj = arg1(dependencyMap[6]);
|
|
const fn = function f() {
|
|
const obj = { paddingBottom: sum(closure_2[7]).withSpring(sum, sum(closure_2[8]).ON_PRESS_SPRING, "respect-motion-settings") };
|
|
return obj;
|
|
};
|
|
obj = { withSpring: arg1(dependencyMap[7]).withSpring, footerPaddingBottom: sum, ON_PRESS_SPRING: arg1(dependencyMap[8]).ON_PRESS_SPRING };
|
|
fn.__closure = obj;
|
|
fn.__workletHash = 2871405301293;
|
|
fn.__initData = closure_8;
|
|
const animatedStyle = obj.useAnimatedStyle(fn);
|
|
obj = { style: items };
|
|
const items = [tmp.footer, animatedStyle];
|
|
let tmp5 = null;
|
|
if (null != preview) {
|
|
const obj1 = {};
|
|
const items1 = [preview, ];
|
|
const obj2 = { style: tmp.footerSeparator };
|
|
items1[1] = callback(View, obj2);
|
|
obj1.children = items1;
|
|
tmp5 = callback2(closure_5, obj1);
|
|
}
|
|
const items2 = [tmp5, ];
|
|
const obj3 = { style: tmp.warningWrapper };
|
|
const items3 = [chatInput, sendButton];
|
|
const items4 = [callback2(View, { style: tmp.chatRow, children: items3 }), ];
|
|
let tmp12 = null != warningText;
|
|
if (tmp12) {
|
|
const obj5 = { INTEGRATION_CREATE: null, ConstraintReasonCode: null, children: warningText };
|
|
tmp12 = callback(arg1(dependencyMap[9]).Text, obj5);
|
|
}
|
|
items4[1] = tmp12;
|
|
obj3.children = items4;
|
|
items2[1] = callback2(View, obj3);
|
|
obj.children = items2;
|
|
return callback2(importDefault(dependencyMap[6]).View, obj);
|
|
};
|