41 lines
1.3 KiB
TypeScript
41 lines
1.3 KiB
TypeScript
// Metro module 9643 (f9644).
|
|
import { AnalyticEvents, AnalyticsSections } from "../../../../Constants";
|
|
import AnalyticsUtils from "../../../../utils/AnalyticsUtils";
|
|
import { fetchPremiumSubscriptionPlans } from "../../../../actions/SubscriptionPlanActionCreators";
|
|
import { fetchPaymentSources } from "../../../billing/actions/BillingActionCreators";
|
|
import AlertActionCreators from "../../../../actions/native/AlertActionCreators";
|
|
function $mk115519($env) {
|
|
return () => import("./StickersPremiumUpsellAlert").then($mk118134($env));
|
|
}
|
|
function $mk118134($env) {
|
|
return (a0) => {
|
|
let env31990 = {
|
|
$parent: $env
|
|
};
|
|
env31990[0] = a0.default;
|
|
return (a0) => env31990.$parent.$parent[6](env31990[0], {
|
|
...a0,
|
|
analyticsLocation: env31990.$parent[0]
|
|
});
|
|
};
|
|
}
|
|
let env6378 = {};
|
|
export default async function openStickersPremiumUpsellAlert(location2) {
|
|
let env30129;
|
|
const r12 = env6378;
|
|
let c26497_2 = r12;
|
|
const r27 = env30129 = {
|
|
$parent: r12
|
|
};
|
|
let c26497_1 = r27;
|
|
env30129[0] = location2;
|
|
AnalyticsUtils.track(AnalyticEvents.OPEN_MODAL, {
|
|
type: AnalyticsSections.STICKER_PREMIUM_TIER_2_UPSELL_MODAL,
|
|
location: location2
|
|
});
|
|
await Promise.all([fetchPremiumSubscriptionPlans(), fetchPaymentSources()]);
|
|
AlertActionCreators.openLazy({
|
|
importer: $mk115519(c26497_1)
|
|
});
|
|
};
|