38 lines
1.6 KiB
TypeScript
38 lines
1.6 KiB
TypeScript
// Metro module 8954 (f8955).
|
|
import { MarketingURLs } from "../../Constants";
|
|
import { getIsSocialLayerParentApplication } from "../applications/useIsSocialLayerParentApplication";
|
|
import { intl, t } from "../../intl/index.native";
|
|
import { isAgeRestrictedContentClassification } from "../content_classification/utils";
|
|
export function getApplicationDetailsText(a0) {
|
|
const isSocialLayerParentApplication = getIsSocialLayerParentApplication(a0);
|
|
if (a0.privacy_policy_url != null && a0.terms_of_service_url != null) {
|
|
return intl.format(isSocialLayerParentApplication ? t.yVfotv : t.rxlyKL, {
|
|
application: a0.name,
|
|
privacyPolicyURL: a0.privacy_policy_url,
|
|
termsOfServiceURL: a0.terms_of_service_url,
|
|
discordPrivacyPolicyURL: MarketingURLs.PRIVACY
|
|
});
|
|
}
|
|
if (a0.privacy_policy_url != null) {
|
|
return intl.format(isSocialLayerParentApplication ? t.pYVSah : t.TBvmM2, {
|
|
application: a0.name,
|
|
privacyPolicyURL: a0.privacy_policy_url,
|
|
discordPrivacyPolicyURL: MarketingURLs.PRIVACY
|
|
});
|
|
}
|
|
if (a0.terms_of_service_url != null) {
|
|
return intl.format(isSocialLayerParentApplication ? t.nBLOp5 : t["q0T/Q1"], {
|
|
application: a0.name,
|
|
termsOfServiceURL: a0.terms_of_service_url,
|
|
discordPrivacyPolicyURL: MarketingURLs.PRIVACY
|
|
});
|
|
}
|
|
return intl.format(isSocialLayerParentApplication ? t["8LemYv"] : t["3Ywek3"], {
|
|
application: a0.name,
|
|
discordPrivacyPolicyURL: MarketingURLs.PRIVACY
|
|
});
|
|
}
|
|
export function isContentClassificationRestricted(a0, a1) {
|
|
return a0 != null && isAgeRestrictedContentClassification(a0) && a1 === false;
|
|
}
|