Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,86 @@
|
||||
/* Metro module 12300; source: modules/guild_boosting/native/hooks/useGuildBoostPurchaseHandler.tsx; dependencies: [5, 31, 661, 3, 4247, 7294, 7023, 683, 4496, 1244, 6522, 2] */
|
||||
function _fun93940(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12486:6, offset: 0x020cbb71, size: 201 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
let value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('useGuildBoostPurchaseHandler');
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_boosting/native/hooks/useGuildBoostPurchaseHandler.tsx');
|
||||
exports.default = useGuildBoostPurchaseHandler;
|
||||
}
|
||||
|
||||
function useGuildBoostPurchaseHandler(a0) { // fn#93941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12486:301, offset: 0x020cbc3a, size: 92 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
const isMobileWebRedirectCheckoutEnabled2 = (require(4247) /* metro dependency 4247: MobileWebRedirectCheckoutUtils */).isMobileWebRedirectCheckoutEnabled();
|
||||
const binding = env0_4;
|
||||
const useCallback = binding.useCallback;
|
||||
let value = _fun93942();
|
||||
value = Reflect.apply(useCallback, binding, [value, [a0]]);
|
||||
return {shouldUseMobileWebRedirectCheckout: isMobileWebRedirectCheckoutEnabled2,
|
||||
handleMobileWebRedirectCheckout: value};
|
||||
}
|
||||
|
||||
function _fun93942() { // fn#93942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12486:409, offset: 0x020cbc96, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun93944);
|
||||
return _fun93947;
|
||||
}
|
||||
|
||||
function* _fun93944(a0, a1) { // fn#93944, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12486:429, offset: 0x020cbcc5, size: 170 bytes, params: 3, frame: 22
|
||||
var environment;
|
||||
if (true) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
var binding = env3_0;
|
||||
var binding2 = env3_2;
|
||||
var newAnalyticsLoadId = binding(binding2[5]).getNewAnalyticsLoadId();
|
||||
var value5 = binding(binding2[6]);
|
||||
yield value5.goToStandaloneGuildBoostCheckoutFromMobileApp(require, a1, newAnalyticsLoadId, _fun93945,
|
||||
_fun93946);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
env3_0(env3_2[10]).closeApplyBoostModal();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun93945() { // fn#93945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12486:549, offset: 0x020cbd6f, size: 144 bytes, params: 1, frame: 20
|
||||
let binding = env4_1;
|
||||
const binding2 = env4_2;
|
||||
const value2 = binding(binding2[7]);
|
||||
const track = value2.track;
|
||||
const MOBILE_OPEN_STANDALONE_GUILD_BOOST_CHECKOUT_PAGE = env4_5.MOBILE_OPEN_STANDALONE_GUILD_BOOST_CHECKOUT_PAGE;
|
||||
const object2 = {};
|
||||
object2.guild_id = require;
|
||||
object2.load_id = env0_2;
|
||||
binding = env0_0;
|
||||
const items2 = [];
|
||||
arraySpread(items2, binding, 0, undefined);
|
||||
object2.location_stack = items2;
|
||||
object2.custom_checkout_flow = env4_0(binding2[4]).getCustomCheckoutFlowForAnalytics();
|
||||
Reflect.apply(track, value2, [MOBILE_OPEN_STANDALONE_GUILD_BOOST_CHECKOUT_PAGE, object2]);
|
||||
env4_6.log('Successfully opened mobile web Guild Boost Management page');
|
||||
}
|
||||
|
||||
function _fun93946(a0) { // fn#93946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12486:801, offset: 0x020cbdff, size: 174 bytes, params: 2, frame: 19
|
||||
let binding = env4_6;
|
||||
binding.error('Failed to open mobile web Guild Boost Management page, error response: ', a0);
|
||||
binding = env4_1;
|
||||
const binding2 = env4_2;
|
||||
const value2 = binding(binding2[8]);
|
||||
const show = value2.show;
|
||||
const object2 = {};
|
||||
binding = env4_0;
|
||||
let intl = binding(binding2[9]).intl;
|
||||
const string = intl.string;
|
||||
const NrBVjw = binding(binding2[9]).t.NrBVjw;
|
||||
object2.title = Reflect.apply(string, intl, [NrBVjw]);
|
||||
intl = binding(binding2[9]).intl;
|
||||
object2.body = intl.string(binding(binding2[9]).t['gD+grx']);
|
||||
object2.hideActionSheet = true;
|
||||
Reflect.apply(show, value2, [object2]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user