222 lines
11 KiB
TypeScript
222 lines
11 KiB
TypeScript
/* Metro module 10384; source: modules/premium/native/hooks/useSelectPremiumGift.tsx; dependencies: [5, 31, 1484, 7669, 10385, 3802, 4496, 1244, 10382, 2] */
|
|
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
|
|
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
|
|
import * as NativeGiftContextModule from '../../../payments/native/NativeGiftContext.tsx'; /* Metro dependency 7669 */
|
|
import * as CreateOrReuseGiftOrderModule from '../../../payments/native/utils/createOrReuseGiftOrder.tsx'; /* Metro dependency 10385 */
|
|
|
|
function _fun80454(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10570:6, offset: 0x01e7bbf3, size: 137 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/premium/native/hooks/useSelectPremiumGift.tsx');
|
|
exports.useSelectPremiumGift = useSelectPremiumGift;
|
|
function useSelectPremiumGift(a0) { // fn#80455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10570:226, offset: 0x01e7bc7c, size: 189 bytes, params: 2, frame: 20
|
|
const value2 = (UseNavigationNativeModule).useNavigation();
|
|
const {setPremiumType, recipientUserId, planInterval,
|
|
setOrder} = (NativeGiftContextModule).useNativeGiftContext();
|
|
return setOrder.useCallback(_fun80456(), [setPremiumType, planInterval,
|
|
(CreateOrReuseGiftOrderModule).useCreateOrReuseGiftOrder(a0),
|
|
recipientUserId, setOrder, value2]);
|
|
function _fun80456() { // fn#80456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10570:451, offset: 0x01e7bd39, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env1_3(_fun80458);
|
|
return _fun80459;
|
|
function* _fun80458(a0) { // fn#80458, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10570:471, offset: 0x01e7bd68, size: 325 bytes, params: 2, frame: 20
|
|
var object;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var error;
|
|
var binding2;
|
|
var show;
|
|
var intl;
|
|
var string;
|
|
var t;
|
|
var R0RpRX;
|
|
var CKsXk3;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__;
|
|
env2_4(undefined);
|
|
importDefault(a0);
|
|
var binding = env3_0;
|
|
var planIdForPremiumType = binding(env3_2[5]).getPlanIdForPremiumType(a0, env2_3);
|
|
try {
|
|
binding = env2_5;
|
|
} catch (error) {
|
|
binding = env3_1;
|
|
binding2 = env3_2;
|
|
value = binding(binding2[6]);
|
|
show = value.show;
|
|
object = {};
|
|
binding = env3_0;
|
|
intl = binding(binding2[7]).intl;
|
|
string = intl.string;
|
|
t = binding(binding2[7]).t;
|
|
R0RpRX = t.R0RpRX;
|
|
object.title = Reflect.apply(string, intl, [R0RpRX]);
|
|
intl = binding(binding2[7]).intl;
|
|
string = intl.string;
|
|
t = binding(binding2[7]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
object.body = Reflect.apply(string, intl, [CKsXk3]);
|
|
Reflect.apply(show, value, [object]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object = {};
|
|
} catch (error) {
|
|
binding = env3_1;
|
|
binding2 = env3_2;
|
|
value = binding(binding2[6]);
|
|
show = value.show;
|
|
object = {};
|
|
binding = env3_0;
|
|
intl = binding(binding2[7]).intl;
|
|
string = intl.string;
|
|
t = binding(binding2[7]).t;
|
|
R0RpRX = t.R0RpRX;
|
|
object.title = Reflect.apply(string, intl, [R0RpRX]);
|
|
intl = binding(binding2[7]).intl;
|
|
string = intl.string;
|
|
t = binding(binding2[7]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
object.body = Reflect.apply(string, intl, [CKsXk3]);
|
|
Reflect.apply(show, value, [object]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.planId = planIdForPremiumType;
|
|
} catch (error) {
|
|
binding = env3_1;
|
|
binding2 = env3_2;
|
|
value = binding(binding2[6]);
|
|
show = value.show;
|
|
object = {};
|
|
binding = env3_0;
|
|
intl = binding(binding2[7]).intl;
|
|
string = intl.string;
|
|
t = binding(binding2[7]).t;
|
|
R0RpRX = t.R0RpRX;
|
|
object.title = Reflect.apply(string, intl, [R0RpRX]);
|
|
intl = binding(binding2[7]).intl;
|
|
string = intl.string;
|
|
t = binding(binding2[7]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
object.body = Reflect.apply(string, intl, [CKsXk3]);
|
|
Reflect.apply(show, value, [object]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env3_1;
|
|
binding2 = env3_2;
|
|
value = binding(binding2[6]);
|
|
show = value.show;
|
|
object = {};
|
|
binding = env3_0;
|
|
intl = binding(binding2[7]).intl;
|
|
string = intl.string;
|
|
t = binding(binding2[7]).t;
|
|
R0RpRX = t.R0RpRX;
|
|
object.title = Reflect.apply(string, intl, [R0RpRX]);
|
|
intl = binding(binding2[7]).intl;
|
|
string = intl.string;
|
|
t = binding(binding2[7]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
object.body = Reflect.apply(string, intl, [CKsXk3]);
|
|
Reflect.apply(show, value, [object]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
object.recipientUserId = dependencyMap;
|
|
} catch (error) {
|
|
binding = env3_1;
|
|
binding2 = env3_2;
|
|
value = binding(binding2[6]);
|
|
show = value.show;
|
|
object = {};
|
|
binding = env3_0;
|
|
intl = binding(binding2[7]).intl;
|
|
string = intl.string;
|
|
t = binding(binding2[7]).t;
|
|
R0RpRX = t.R0RpRX;
|
|
object.title = Reflect.apply(string, intl, [R0RpRX]);
|
|
intl = binding(binding2[7]).intl;
|
|
string = intl.string;
|
|
t = binding(binding2[7]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
object.body = Reflect.apply(string, intl, [CKsXk3]);
|
|
Reflect.apply(show, value, [object]);
|
|
return undefined;
|
|
}
|
|
try {
|
|
value6 = binding(object);
|
|
} catch (error) {
|
|
binding = env3_1;
|
|
binding2 = env3_2;
|
|
value = binding(binding2[6]);
|
|
show = value.show;
|
|
object = {};
|
|
binding = env3_0;
|
|
intl = binding(binding2[7]).intl;
|
|
string = intl.string;
|
|
t = binding(binding2[7]).t;
|
|
R0RpRX = t.R0RpRX;
|
|
object.title = Reflect.apply(string, intl, [R0RpRX]);
|
|
intl = binding(binding2[7]).intl;
|
|
string = intl.string;
|
|
t = binding(binding2[7]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
object.body = Reflect.apply(string, intl, [CKsXk3]);
|
|
Reflect.apply(show, value, [object]);
|
|
return undefined;
|
|
}
|
|
yield value6;
|
|
try {
|
|
value7 = undefined;
|
|
value8 = false;
|
|
} catch (error) {
|
|
binding = env3_1;
|
|
binding2 = env3_2;
|
|
value = binding(binding2[6]);
|
|
show = value.show;
|
|
object = {};
|
|
binding = env3_0;
|
|
intl = binding(binding2[7]).intl;
|
|
string = intl.string;
|
|
t = binding(binding2[7]).t;
|
|
R0RpRX = t.R0RpRX;
|
|
object.title = Reflect.apply(string, intl, [R0RpRX]);
|
|
intl = binding(binding2[7]).intl;
|
|
string = intl.string;
|
|
t = binding(binding2[7]).t;
|
|
CKsXk3 = t.CKsXk3;
|
|
object.body = Reflect.apply(string, intl, [CKsXk3]);
|
|
Reflect.apply(show, value, [object]);
|
|
return undefined;
|
|
}
|
|
if (value8) {
|
|
return value7;
|
|
}
|
|
env2_4(value7);
|
|
var navigate = require.navigate;
|
|
var PremiumGiftScreens = env3_0(env3_2[8]).PremiumGiftScreens;
|
|
var CUSTOMIZATION = PremiumGiftScreens.CUSTOMIZATION;
|
|
Reflect.apply(navigate, require, [CUSTOMIZATION]);
|
|
}
|
|
}
|
|
|
|
function _fun80459() { // fn#80459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10570:780, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return env0_0.apply(this, arguments);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun80454, 10384, [5, 31, 1484, 7669, 10385, 3802, 4496, 1244, 10382,
|
|
2]) /* metro module 10384, dependencies: [5, 31, 1484, 7669, 10385, 3802, 4496, 1244, 10382, 2] */;
|