decord/source/modules/virtual_currency/native/OrbCheckoutMenu.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

54 lines
2.1 KiB
TypeScript

// Module ID: 15779
// Function ID: 15780
// Name: OrbCheckoutMenu
// Dependencies: [32, 19, 21, 4605, 4808, 13228, 1896, 4303, 5657, 4601, 6656, 5025, 2]
// Exports: default
// Module 15779 (OrbCheckoutMenu)
import asyncRequireImpl from "asyncRequireImpl" /* 1896 */;
import ModalActionCreatorsDefault from "ModalActionCreators" /* 4808 */;
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(4605);
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(13228, dependencyMap.paths), obj2);
}
}, items);
let obj = { children: null };
const items1 = [
closure_5(value(4601).Text, { style: tmp.title, variant: "text-md/bold", children: "Redeem SKU for Orbs" }),
closure_5(value(6656).TextInput, {
containerStyle: tmp.textInput,
label: "SKU ID",
value,
onChange(arg0) {
return closure_1(arg0);
},
isClearable: true
}),
closure_5(value(4601).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(5025).Button, { text: "Open Orbs Checkout", variant: "primary", onPress: callback, disabled: null == value })
];
obj.children = items1;
return closure_6(value(5657).Card, obj);
};