decord/source/modules/virtual_currency/native/OrbCheckoutMenu.tsx
github-actions f0f877e8ce chore: update source for alpha 347.1
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
2026-09-15 14:23:42 +00:00

54 lines
2.1 KiB
TypeScript

// Module ID: 15799
// Function ID: 15800
// Name: OrbCheckoutMenu
// Dependencies: [32, 19, 21, 4639, 4842, 13290, 1897, 4338, 5692, 4635, 6711, 5059, 2]
// Exports: default
// Module 15799 (OrbCheckoutMenu)
import asyncRequireImpl from "asyncRequireImpl" /* 1897 */;
import ModalActionCreatorsDefault from "ModalActionCreators" /* 4842 */;
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(4639);
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(13290, dependencyMap.paths), obj2);
}
}, items);
let obj = { children: null };
const items1 = [
closure_5(value(4635).Text, { style: tmp.title, variant: "text-md/bold", children: "Redeem SKU for Orbs" }),
closure_5(value(6711).TextInput, {
containerStyle: tmp.textInput,
label: "SKU ID",
value,
onChange(arg0) {
return closure_1(arg0);
},
isClearable: true
}),
closure_5(value(4635).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(5059).Button, { text: "Open Orbs Checkout", variant: "primary", onPress: callback, disabled: null == value })
];
obj.children = items1;
return closure_6(value(5692).Card, obj);
};