Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,272 @@
|
||||
/* Metro module 12294; source: components_native/premium/GiftPurchaseButton.tsx; dependencies: [5, 31, 27, 3808, 5140, 33, 4583, 4573, 566, 5143, 7355, 6771, 10385, 4496, 1244, 3802, 10381, 4579, 12295, 2] */
|
||||
function _fun93899(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12480:6, offset: 0x020c9868, size: 211 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(27) /* metro dependency 27 */).View;
|
||||
const subscriptionStore = importDefault(3808) /* metro dependency 3808: SubscriptionStore */;
|
||||
const iapStoreAndroid = importDefault(5140) /* metro dependency 5140: IAPStoreAndroid */;
|
||||
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/premium/GiftPurchaseButton.tsx');
|
||||
exports.default = GiftPurchaseButton;
|
||||
}
|
||||
|
||||
function GiftPurchaseButton({style, variant, planId, analyticsLocation = {}, recipientUserId}) { // fn#93900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12480:171, offset: 0x020c993b, size: 598 bytes, params: 2, frame: 31
|
||||
variant = variant === undefined ? 'primary' : variant;
|
||||
const value2 = (require(4583) /* metro dependency 4583: ButtonHooksNative */).useButtonTextColorStyles(variant);
|
||||
const object2 = {};
|
||||
const TextStyleSheet = (require(4573) /* metro dependency 4573: Text */).TextStyleSheet;
|
||||
copyDataProperties(object2, TextStyleSheet['text-sm/semibold'], undefined);
|
||||
copyDataProperties(object2, value2, undefined);
|
||||
const premiumSubscription = (require(566) /* metro dependency 566: flux */).useStateFromStores([SubscriptionStore],
|
||||
function() {
|
||||
return SubscriptionStore.getPremiumSubscription();
|
||||
});
|
||||
const productIdForGift = (require(5143) /* metro dependency 5143: ProductIdsAndroid */).getProductIdForGift(planId);
|
||||
const env0_3 = productIdForGift;
|
||||
const value4 = (require(7355) /* metro dependency 7355: IAPUtils */).useCanPurchaseIAP(productIdForGift);
|
||||
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([IAPStoreAndroid], _fun93902);
|
||||
const product = (require(566) /* metro dependency 566: flux */).useStateFromStores([IAPStoreAndroid], _fun93903);
|
||||
const r6 = premiumSubscription != null && premiumSubscription.planId === planId;
|
||||
const analyticsLocations = (importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */)().analyticsLocations;
|
||||
const value10 = analyticsLocations.useCallback(env0_3(_fun93905), [planId, recipientUserId, analyticsLocation,
|
||||
analyticsLocations,
|
||||
(require(10385) /* metro dependency 10385: createOrReuseGiftOrder */).useCreateOrReuseGiftOrder('GiftPurchaseButton')]);
|
||||
const BaseTextButton = (require(4579) /* metro dependency 4579: BaseTextButtonNative */).BaseTextButton;
|
||||
return (
|
||||
<View style={style}>
|
||||
<BaseTextButton
|
||||
textElement={(importDefault(12295) /* metro dependency 12295: renderPremiumButtonText */)({style: object2,
|
||||
basePlanId: planId, isCurrentPlan: r6, isGift: true, product: product})}
|
||||
variant={variant}
|
||||
size="sm"
|
||||
onPress={value10}
|
||||
loading={value5}
|
||||
disabled={!value4}
|
||||
grow
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun93902() { // fn#93902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12480:543, offset: 0x020c9ba4, size: 27 bytes, params: 1, frame: 11
|
||||
return IAPStoreAndroid.isPurchasingProduct(env0_3);
|
||||
}
|
||||
|
||||
function _fun93903() { // fn#93903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12480:608, offset: 0x020c9bbf, size: 27 bytes, params: 1, frame: 11
|
||||
return IAPStoreAndroid.getProduct(env0_3);
|
||||
}
|
||||
|
||||
function* _fun93905() { // fn#93905, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12480:764, offset: 0x020c9be5, size: 334 bytes, params: 1, frame: 19
|
||||
var object2;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var binding;
|
||||
var error;
|
||||
var binding3;
|
||||
var value10;
|
||||
var show;
|
||||
var intl;
|
||||
var string;
|
||||
var t;
|
||||
var R0RpRX;
|
||||
var CKsXk3;
|
||||
if (true) {
|
||||
value = environment.__proto__;
|
||||
try {
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value10 = binding(binding3[13]);
|
||||
show = value10.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[14]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[14]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
object2.title = Reflect.apply(string, intl, [R0RpRX]);
|
||||
intl = binding(binding3[14]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[14]).t;
|
||||
CKsXk3 = t.CKsXk3;
|
||||
object2.body = Reflect.apply(string, intl, [CKsXk3]);
|
||||
Reflect.apply(show, value10, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value10 = binding(binding3[13]);
|
||||
show = value10.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[14]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[14]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
object2.title = Reflect.apply(string, intl, [R0RpRX]);
|
||||
intl = binding(binding3[14]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[14]).t;
|
||||
CKsXk3 = t.CKsXk3;
|
||||
object2.body = Reflect.apply(string, intl, [CKsXk3]);
|
||||
Reflect.apply(show, value10, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value10 = binding(binding3[13]);
|
||||
show = value10.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[14]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[14]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
object2.title = Reflect.apply(string, intl, [R0RpRX]);
|
||||
intl = binding(binding3[14]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[14]).t;
|
||||
CKsXk3 = t.CKsXk3;
|
||||
object2.body = Reflect.apply(string, intl, [CKsXk3]);
|
||||
Reflect.apply(show, value10, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.planId = require;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value10 = binding(binding3[13]);
|
||||
show = value10.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[14]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[14]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
object2.title = Reflect.apply(string, intl, [R0RpRX]);
|
||||
intl = binding(binding3[14]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[14]).t;
|
||||
CKsXk3 = t.CKsXk3;
|
||||
object2.body = Reflect.apply(string, intl, [CKsXk3]);
|
||||
Reflect.apply(show, value10, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value10 = binding(binding3[13]);
|
||||
show = value10.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[14]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[14]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
object2.title = Reflect.apply(string, intl, [R0RpRX]);
|
||||
intl = binding(binding3[14]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[14]).t;
|
||||
CKsXk3 = t.CKsXk3;
|
||||
object2.body = Reflect.apply(string, intl, [CKsXk3]);
|
||||
Reflect.apply(show, value10, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.recipientUserId = dependencyMap;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value10 = binding(binding3[13]);
|
||||
show = value10.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[14]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[14]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
object2.title = Reflect.apply(string, intl, [R0RpRX]);
|
||||
intl = binding(binding3[14]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[14]).t;
|
||||
CKsXk3 = t.CKsXk3;
|
||||
object2.body = Reflect.apply(string, intl, [CKsXk3]);
|
||||
Reflect.apply(show, value10, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value3 = View(object2);
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value10 = binding(binding3[13]);
|
||||
show = value10.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[14]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[14]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
object2.title = Reflect.apply(string, intl, [R0RpRX]);
|
||||
intl = binding(binding3[14]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[14]).t;
|
||||
CKsXk3 = t.CKsXk3;
|
||||
object2.body = Reflect.apply(string, intl, [CKsXk3]);
|
||||
Reflect.apply(show, value10, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
yield value3;
|
||||
try {
|
||||
value4 = undefined;
|
||||
value5 = false;
|
||||
} catch (error) {
|
||||
value = environment.__proto__.__proto__;
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value10 = binding(binding3[13]);
|
||||
show = value10.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[14]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[14]).t;
|
||||
R0RpRX = t.R0RpRX;
|
||||
object2.title = Reflect.apply(string, intl, [R0RpRX]);
|
||||
intl = binding(binding3[14]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[14]).t;
|
||||
CKsXk3 = t.CKsXk3;
|
||||
object2.body = Reflect.apply(string, intl, [CKsXk3]);
|
||||
Reflect.apply(show, value10, [object2]);
|
||||
return undefined;
|
||||
}
|
||||
if (value5) {
|
||||
return value4;
|
||||
}
|
||||
binding = env2_0;
|
||||
var binding2 = env2_2;
|
||||
var {premiumType, planInterval} = binding(binding2[15]).getPremiumTypeFromPlanId(require);
|
||||
binding(binding2[16]).openGiftModal({recipientUserId: dependencyMap, premiumType: premiumType,
|
||||
planInterval: planInterval, analyticsLocation: importDefault, analyticsLocations: env1_4, order: value4});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user