decord/stable/source/modules/checkout/native/GiftCardMobileConsumptionActionSheet.tsx
github-actions 57c2214117 chore: update source for stable 347.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-29 21:26:22 +00:00

81 lines
3.6 KiB
TypeScript

// Module ID: 7666
// Function ID: 7667
// Name: GiftCardMobileConsumptionActionSheet
// Dependencies: [19, 17, 2038, 21, 4788, 576, 1612, 4755, 7427, 5216, 5941, 4784, 1115, 2252, 5218, 2]
// Exports: default
// Module 7666 (GiftCardMobileConsumptionActionSheet)
import nativeDefault from "native" /* 576 */;
import useSafeAreaInsetsDefault from "useSafeAreaInsets" /* 1612 */;
import _modDef2252 from "module_2252" /* 2252 */;
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4755 */;
import noop from "module_19" /* 19 */;
const require = fn;
const View = fn(17).View;
const ContentDismissActionType = fn(2038).ContentDismissActionType;
const jsxProd = fn(21);
({ jsx: metroRequire, jsxs: closure_7 } = jsxProd);
const createStyles = fn(4788);
let obj2 = { sheet: { backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW }, container: null, illustration: null, body: null };
let obj3 = { backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW };
obj2.container = { paddingHorizontal: nativeDefault.space.PX_16 };
const obj4 = { paddingHorizontal: nativeDefault.space.PX_16 };
obj2.illustration = { alignSelf: "stretch", alignItems: "center", paddingTop: nativeDefault.space.PX_12 };
obj2.body = { textAlign: "center", fontFamily: "gg sans", fontSize: 16, fontWeight: 600, lineHeight: 20, alignSelf: "center", width: 280 };
let closure_8 = createStyles.createStyles(obj2);
const size = fn(2);
const result = size.fileFinishedImporting("modules/checkout/native/GiftCardMobileConsumptionActionSheet.tsx");
export default function GiftCardMobileConsumptionActionSheet(markAsDismissed) {
markAsDismissed = markAsDismissed.markAsDismissed;
noop = undefined;
const tmp = closure_8();
importDefault = noop.useRef(false);
dependencyMap = noop.useRef(markAsDismissed);
const items = [markAsDismissed];
const effect = noop.useEffect(() => {
closure_2.current = markAsDismissed;
}, items);
const effect1 = noop.useEffect(() => () => {
if (!ref.current) {
ref2.current(constants.AUTO_DISMISS);
}
}, []);
const items1 = [markAsDismissed];
noop = noop.useCallback((arg0) => {
if (!ref.current) {
tmp.current = true;
markAsDismissed(arg0);
ActionSheetActionCreatorsDefault.hideActionSheet();
}
}, items1);
let obj = {
startExpanded: true,
backgroundStyles: tmp.sheet,
onDismiss() {
return closure_3(ContentDismissActionType.USER_DISMISS);
},
children: null
};
const obj2 = { style: null, children: null };
const items2 = [tmp.container, { paddingBottom: useSafeAreaInsetsDefault().bottom }];
obj2.style = items2;
const obj3 = { spacing: nativeDefault.space.PX_16, children: null };
const items3 = [closure_6(View, { style: tmp.illustration, children: closure_6(markAsDismissed(5941).LaptopSpotIllustration, { scale: 1, width: 150, height: 123 }) }), , ];
const obj5 = { variant: "text-md/medium", color: "text-default", style: tmp.body, children: null };
const intl = markAsDismissed(1115).intl;
obj5.children = intl.string(_modDef2252.V3DI1E);
items3[1] = closure_6(markAsDismissed(4784).Text, obj5);
const obj6 = { size: "lg", variant: "secondary", grow: true, text: null, onPress: null };
const intl2 = markAsDismissed(1115).intl;
obj6.text = intl2.string(_modDef2252.YZePWx);
obj6.onPress = function onPress() {
return closure_3(ContentDismissActionType.USER_DISMISS);
};
items3[2] = closure_6(markAsDismissed(5218).Button, obj6);
obj3.children = items3;
obj2.children = closure_7(markAsDismissed(5216).Stack, obj3);
obj.children = closure_6(View, obj2);
return closure_6(markAsDismissed(7427).BottomSheet, obj);
};