25 lines
955 B
TypeScript
25 lines
955 B
TypeScript
// Metro module 6557 (f6558).
|
|
import { SubscriptionStatusTypes } from "../../../../Constants";
|
|
import { getBillingInformationString } from "../../../../utils/PremiumUtils";
|
|
import { isIOS } from "../../../../_bundle/Module501";
|
|
import { t, intl } from "../../../../intl/index.native";
|
|
import { manageSubscription } from "../../../../utils/native/IAPUtils";
|
|
export function getBillingInformationStringNative(a0, a1, r12 = null, r11 = false) {
|
|
let c15794_0;
|
|
c15794_0 = void 0;
|
|
let r19 = getBillingInformationString(a0, a1, r12, r11, arguments[4]);
|
|
if (isIOS() && a0.isPurchasedViaApple && a0.status === SubscriptionStatusTypes.ACTIVE) {
|
|
const gknRR3 = t.gknRR3;
|
|
c15794_0 = async () => {
|
|
await manageSubscription();
|
|
};
|
|
r19 = intl.format(gknRR3, {
|
|
renewalDate: a1.subscriptionPeriodStart,
|
|
onSubscriptionManagementClick: function() {
|
|
return c15794_0.apply(this, arguments);
|
|
}
|
|
});
|
|
}
|
|
return r19;
|
|
}
|