decord/source/modules/virtual_currency/native/OrbCheckoutMenu.tsx

59 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 14716
// Function ID: 112139
2026-07-20 16:05:17 +00:00
// Name: OrbCheckoutMenu
2026-07-24 07:16:23 +00:00
// Dependencies: [57, 31, 33, 4130, 4337, 11858, 1934, 3831, 5167, 4126, 7574, 4543, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-24 07:16:23 +00:00
// Module 14716 (OrbCheckoutMenu)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
import result from "result";
import jsxProd from "jsxProd";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
let closure_5;
let closure_6;
const require = arg1;
({ jsx: closure_5, jsxs: closure_6 } = jsxProd);
let closure_7 = _createForOfIteratorHelperLoose.createStyles({ textInput: { marginBottom: 16 }, title: { marginBottom: 8 } });
const result = require("jsxProd").fileFinishedImporting("modules/virtual_currency/native/OrbCheckoutMenu.tsx");
2026-07-20 16:05:17 +00:00
export default function OrbCheckoutMenu() {
const tmp = callback4();
const tmp2 = callback(React.useState("1409898407849365565"), 2);
const first = tmp2[0];
let closure_1 = tmp2[1];
const items = [first];
2026-07-23 10:11:24 +00:00
callback = React.useCallback(() => {
2026-07-20 16:05:17 +00:00
if (null != first) {
2026-07-23 10:11:24 +00:00
let obj = callback(outer1_2[4]);
2026-07-20 16:05:17 +00:00
obj = {
skuId: first,
analyticsLocations: [],
onCheckoutSuccess() {
2026-07-23 10:11:24 +00:00
callback(outer2_2[7]).open({ key: "ORB_CHECKOUT_SUCCESS", content: "Successfully redeemed item with Orbs" });
2026-07-20 16:05:17 +00:00
}
};
2026-07-23 10:11:24 +00:00
obj.pushLazy(first(outer1_2[6])(outer1_2[5], outer1_2.paths), obj);
2026-07-20 16:05:17 +00:00
}
}, items);
let obj = {};
2026-07-23 10:11:24 +00:00
obj = { style: tmp.title, variant: "text-md/bold", children: "Redeem SKU for Orbs" };
const items1 = [callback2(first(4126).Text, obj), , , ];
2026-07-20 16:05:17 +00:00
obj = {
containerStyle: tmp.textInput,
label: "SKU ID",
value: first,
onChange(arg0) {
return callback(arg0);
},
isClearable: true
};
2026-07-24 07:16:23 +00:00
items1[1] = callback2(first(7574).TextInput, obj);
2026-07-23 10:11:24 +00:00
const obj1 = { style: tmp.title, variant: "text-md/bold", children: "Checkout will open with the orb price of the product, if it exists" };
items1[2] = callback2(first(4126).Text, obj1);
const obj2 = { text: "Open Orbs Checkout", variant: "primary", onPress: callback, disabled: null == first };
items1[3] = callback2(first(4543).Button, obj2);
2026-07-20 16:05:17 +00:00
obj.children = items1;
2026-07-23 10:11:24 +00:00
return callback3(first(5167).Card, obj);
2026-07-20 16:05:17 +00:00
};