Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,85 @@
|
||||
/* Metro module 10463; source: modules/premium/native/gifting/PremiumGiftSuccess.tsx; dependencies: [31, 27, 7261, 1376, 33, 4501, 697, 1585, 7669, 44, 10464, 10392, 7675, 566, 1367, 1365, 10465, 10466, 10467, 2] */
|
||||
function _fun80981(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10649:6, offset: 0x01e931f3, size: 253 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const promotionsStore = importDefault(7261) /* metro dependency 7261: PromotionsStore */;
|
||||
const env0_6 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.Fragment;
|
||||
const env0_9 = value.jsxs;
|
||||
const env0_10 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun80982);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/gifting/PremiumGiftSuccess.tsx');
|
||||
exports.default = PremiumGiftSuccess;
|
||||
}
|
||||
|
||||
function _fun80982(a0) { // fn#80982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10649:230, offset: 0x01e932f0, size: 250 bytes, params: 2, frame: 17
|
||||
const object4 = {};
|
||||
const object5 = {'backgroundColor': null, 'paddingHorizontal': null, 'flex': 1, 'alignContent': 'center',
|
||||
'justifyContent': 'center', 'flexGrow': 1};
|
||||
let BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object5.backgroundColor = BACKGROUND_BASE_LOW;
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.paddingHorizontal = PX_16;
|
||||
object4.bodyContainer = object5;
|
||||
const object6 = {};
|
||||
BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object6.backgroundColor = BACKGROUND_BASE_LOW;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.paddingTop = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.paddingBottom = a0 + PX_16;
|
||||
const PX_162 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object6.paddingHorizontal = PX_162;
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.gap = PX_8;
|
||||
const SHADOW_TOP_LOW = (importDefault(697) /* metro dependency 697: native */).shadows.SHADOW_TOP_LOW;
|
||||
copyDataProperties(object6, SHADOW_TOP_LOW, PX_16);
|
||||
object4.actionContainer = object6;
|
||||
return object4;
|
||||
}
|
||||
|
||||
function PremiumGiftSuccess() { // fn#80983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10649:737, offset: 0x01e933ea, size: 560 bytes, params: 1, frame: 24
|
||||
const styles = useStyles((importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom);
|
||||
const {recipientUser, giftCodeRecord,
|
||||
selectedGiftingPromotionReward} = (require(7669) /* metro dependency 7669: NativeGiftContext */).useNativeGiftContext();
|
||||
(importDefault(44) /* metro dependency 44 */)(giftCodeRecord != null,
|
||||
'Gift code record cannot be null on success screen');
|
||||
const value3 = (importDefault(10464) /* metro dependency 10464: useGiftingPromotionConfig */)();
|
||||
const value4 = (importDefault(10392) /* metro dependency 10392: useShouldShowGiftingPromotionDeco */)();
|
||||
const value5 = (require(7675) /* metro dependency 7675: useFetchCollectiblesCategoriesAndPurchases */).useGetOrFetchPurchase(selectedGiftingPromotionReward,
|
||||
false);
|
||||
env0_3.useEffect(_fun80985, [value4, value3,
|
||||
(require(566) /* metro dependency 566: flux */).useStateFromStores([PromotionsStore], _fun80984)]);
|
||||
return (
|
||||
<>
|
||||
<View style={styles.bodyContainer}>
|
||||
{recipientUser == null ? ((Component) => <Component giftCodeRecord={giftCodeRecord} />)(importDefault(10465) /* metro dependency 10465: PremiumGiftPurchaseSuccess */) : ((Component) => <Component />)(importDefault(10466) /* metro dependency 10466: PremiumGiftDMPurchaseSuccess */)}
|
||||
</View>
|
||||
<View style={styles.actionContainer}>
|
||||
{value5 != null ? ((Component) => <Component purchase={value5} />)(importDefault(10467) /* metro dependency 10467: PremiumGiftingPromotionSuccessActions */) : recipientUser == null ? ((PremiumGiftSuccessActions) => <PremiumGiftSuccessActions giftCodeRecord={giftCodeRecord} />)((require(10465) /* metro dependency 10465: PremiumGiftPurchaseSuccess */).PremiumGiftSuccessActions) : ((PremiumGiftDMSuccessActions) => <PremiumGiftDMSuccessActions />)((require(10466) /* metro dependency 10466: PremiumGiftDMPurchaseSuccess */).PremiumGiftDMSuccessActions)}
|
||||
</View>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun80984() { // fn#80984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10649:1075, offset: 0x01e9361a, size: 35 bytes, params: 1, frame: 10
|
||||
const value = environment.__proto__;
|
||||
return PromotionsStore.getGiftPromotion()?.id;
|
||||
}
|
||||
|
||||
function _fun80985() { // fn#80985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10649:1152, offset: 0x01e9363d, size: 140 bytes, params: 1, frame: 18
|
||||
var value5;
|
||||
var moduleValue;
|
||||
if (env0_0 != null && env0_0.reminderNotice != null && env0_1 && env0_2 != null) {
|
||||
value5 = environment.__proto__;
|
||||
moduleValue = require(1367) /* metro dependency 1367: DismissibleContentUtils */;
|
||||
moduleValue.markSnowflakeBoundDismissibleContentAsDismissed((require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.GIFTING_PROMOTION_REMINDER,
|
||||
|
||||
env0_2, {dismissAction: ContentDismissActionType.INDIRECT_ACTION});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user