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

54 lines
2.1 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 15215
// Function ID: 15216
2026-07-20 16:05:17 +00:00
// Name: OrbCheckoutMenu
2026-08-24 06:08:38 +00:00
// Dependencies: [32, 19, 21, 4668, 5265, 12034, 2008, 4097, 6323, 4739, 8110, 4750, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 15215 (OrbCheckoutMenu)
import closure_3 from "_slicedToArray" /* 32 */;
import closure_4 from "noop" /* 19 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c5, jsxs: closure_6 } = jsxProd);
let closure_7 = createCacheKey.createStyles({ textInput: { marginBottom: 16 }, title: { marginBottom: 8 } });
2026-08-24 06:08:38 +00:00
const result = require("set").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];
2026-08-24 06:08:38 +00:00
closure_1 = tmp2[1];
2026-07-20 16:05:17 +00:00
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-08-24 06:08:38 +00:00
let obj = callback(closure_1_2[4]);
2026-07-29 08:29:29 +00:00
obj = { skuId: null, analyticsLocations: null, onCheckoutSuccess: null };
obj[0] = tmp;
obj[1] = [];
obj[2] = function onCheckoutSuccess() {
callback(table[7]).open({ key: "ORB_CHECKOUT_SUCCESS", content: "Successfully redeemed item with Orbs" });
2026-07-20 16:05:17 +00:00
};
2026-08-24 06:08:38 +00:00
obj.pushLazy(first(closure_1_2[6])(closure_1_2[5], closure_1_2.paths), obj);
2026-07-20 16:05:17 +00:00
}
}, items);
2026-07-29 08:29:29 +00:00
let obj = { children: null };
2026-07-23 10:11:24 +00:00
obj = { style: tmp.title, variant: "text-md/bold", children: "Redeem SKU for Orbs" };
2026-08-24 06:08:38 +00:00
const items1 = [callback2(first(4739).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-08-24 06:08:38 +00:00
items1[1] = callback2(first(8110).TextInput, obj);
items1[2] = callback2(first(4739).Text, { style: tmp.title, variant: "text-md/bold", children: "Checkout will open with the orb price of the product, if it exists" });
items1[3] = callback2(first(4750).Button, { text: "Open Orbs Checkout", variant: "primary", onPress: callback, disabled: null == first });
2026-07-29 08:29:29 +00:00
obj[0] = items1;
2026-08-24 06:08:38 +00:00
return callback3(first(6323).Card, obj);
2026-07-20 16:05:17 +00:00
};