decord/source/modules/virtual_currency/native/OrbCheckoutMenu.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

54 lines
2.1 KiB
TypeScript

// Module ID: 15817
// Function ID: 15818
// Name: OrbCheckoutMenu
// Dependencies: [32, 19, 21, 4638, 4841, 13301, 1897, 4336, 5693, 4634, 6714, 5060, 2]
// Exports: default
// Module 15817 (OrbCheckoutMenu)
import asyncRequireImpl from "asyncRequireImpl" /* 1897 */;
import ModalActionCreatorsDefault from "ModalActionCreators" /* 4841 */;
import _slicedToArray from "module_32" /* 32 */;
import noop from "module_19" /* 19 */;
require = fn;
const jsxProd = fn(21);
({ jsx: hasOwnProperty, jsxs: metroRequire } = jsxProd);
const createStyles = fn(4638);
let closure_7 = createStyles.createStyles({ textInput: { marginBottom: 16 }, title: { marginBottom: 8 } });
const size = fn(2);
const result = size.fileFinishedImporting("modules/virtual_currency/native/OrbCheckoutMenu.tsx");
export default function OrbCheckoutMenu() {
const tmp = closure_7();
[value, closure_1] = noop.useState("1409898407849365565");
const items = [value];
const callback = noop.useCallback(() => {
if (null != first) {
const obj2 = {
skuId: tmp,
analyticsLocations: [],
onCheckoutSuccess() {
closure_1_1(closure_1_2[7]).open({ key: "ORB_CHECKOUT_SUCCESS", content: "Successfully redeemed item with Orbs" });
}
};
ModalActionCreatorsDefault.pushLazy(asyncRequireImpl(13301, dependencyMap.paths), obj2);
}
}, items);
let obj = { children: null };
const items1 = [
closure_5(value(4634).Text, { style: tmp.title, variant: "text-md/bold", children: "Redeem SKU for Orbs" }),
closure_5(value(6714).TextInput, {
containerStyle: tmp.textInput,
label: "SKU ID",
value,
onChange(arg0) {
return closure_1(arg0);
},
isClearable: true
}),
closure_5(value(4634).Text, { style: tmp.title, variant: "text-md/bold", children: "Checkout will open with the orb price of the product, if it exists" }),
closure_5(value(5060).Button, { text: "Open Orbs Checkout", variant: "primary", onPress: callback, disabled: null == value })
];
obj.children = items1;
return closure_6(value(5693).Card, obj);
};