55 lines
3.4 KiB
TypeScript
55 lines
3.4 KiB
TypeScript
/* Metro module 14241; source: modules/virtual_currency/native/OrbCheckoutMenu.tsx; dependencies: [57, 31, 33, 4501, 5080, 10113, 1962, 3857, 6239, 4573, 7981, 4578, 2] */
|
|
function _fun107719(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14438:6, offset: 0x02306bb1, size: 222 bytes, params: 8, frame: 20
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
|
const env0_4 = importAll(31) /* metro dependency 31 */;
|
|
const value = require(33) /* metro dependency 33 */;
|
|
const env0_5 = value.jsx;
|
|
const env0_6 = value.jsxs;
|
|
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({textInput: {marginBottom: 16},
|
|
title: {marginBottom: 8}});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/virtual_currency/native/OrbCheckoutMenu.tsx');
|
|
exports.default = OrbCheckoutMenu;
|
|
}
|
|
|
|
function OrbCheckoutMenu() { // fn#107720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14438:226, offset: 0x02306c8f, size: 377 bytes, params: 1, frame: 25
|
|
const styles = useStyles();
|
|
const binding = env0_4;
|
|
const [property, env0_1] = env0_3(binding.useState('1409898407849365565'), 2);
|
|
const value4 = binding.useCallback(_fun107721, [property]);
|
|
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
const items2 = [<Text style={styles.title} variant="text-md/bold">{'Redeem SKU for Orbs'}</Text>];
|
|
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
|
|
items2[1] = <TextInput containerStyle={styles.textInput} label="SKU ID" value={property} onChange={onChange_107723} isClearable />;
|
|
items2[2] = <Text style={styles.title} variant="text-md/bold">{'Checkout will open with the orb price of the product, if it exists'}</Text>;
|
|
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
|
items2[3] = <Button text="Open Orbs Checkout" variant="primary" onPress={value4} disabled={property == null} />;
|
|
return (
|
|
<Card>
|
|
{items2}
|
|
</Card>
|
|
);
|
|
}
|
|
|
|
function _fun107721() { // fn#107721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14438:339, offset: 0x02306e08, size: 121 bytes, params: 1, frame: 16
|
|
var environment;
|
|
var value2;
|
|
var defaultImport;
|
|
if (env0_0 != null) {
|
|
value2 = environment.__proto__;
|
|
defaultImport = importDefault(dependencyMap[4]);
|
|
defaultImport.pushLazy(require(dependencyMap[6])(dependencyMap[5], dependencyMap.paths), {skuId: env0_0,
|
|
analyticsLocations: [], onCheckoutSuccess: onCheckoutSuccess_107722});
|
|
}
|
|
}
|
|
|
|
function onCheckoutSuccess_107722() { // fn#107722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14438:441, offset: 0x02306e81, size: 52 bytes, params: 1, frame: 12
|
|
const value = environment.__proto__.__proto__;
|
|
(importDefault(3857) /* metro dependency 3857: ToastActionCreators */).open({'key': 'ORB_CHECKOUT_SUCCESS',
|
|
'content': 'Successfully redeemed item with Orbs'});
|
|
}
|
|
|