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