66 lines
4.1 KiB
TypeScript
66 lines
4.1 KiB
TypeScript
/* Metro module 7546; source: modules/premium/native/SubscriptionRenewalMutationsNotice.tsx; dependencies: [31, 27, 33, 4501, 697, 6235, 1305, 1244, 3802, 2] */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
|
|
import * as LegacyTokensModule from '../../../design/migrations/native/LegacyTokens.tsx'; /* Metro dependency 6235 */
|
|
|
|
function _fun60684(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7724:6, offset: 0x01709f9e, size: 337 bytes, params: 8, frame: 22
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
let value = JsxRuntimeModule;
|
|
const env0_4 = value.jsx;
|
|
const env0_5 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
object = {};
|
|
const object2 = {'padding': 10, 'marginVertical': 5, 'marginHorizontal': 15, 'borderRadius': null,
|
|
'display': 'flex', 'flexDirection': 'row', 'justifyContent': 'center'};
|
|
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
|
const DARK_PRIMARY_630_LIGHT_PRIMARY_230 = (LegacyTokensModule).DARK_PRIMARY_630_LIGHT_PRIMARY_230;
|
|
object2.backgroundColor = DARK_PRIMARY_630_LIGHT_PRIMARY_230;
|
|
object.container = object2;
|
|
const DARK_PRIMARY_300_LIGHT_PRIMARY_500 = (LegacyTokensModule).DARK_PRIMARY_300_LIGHT_PRIMARY_500;
|
|
object.icon = {'alignSelf': 'center', 'marginLeft': 15, color: DARK_PRIMARY_300_LIGHT_PRIMARY_500};
|
|
object.text = {'paddingLeft': 10, 'marginRight': 15, color: DARK_PRIMARY_300_LIGHT_PRIMARY_500};
|
|
const env0_6 = Reflect.apply(createStyles, value, [object]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/premium/native/SubscriptionRenewalMutationsNotice.tsx');
|
|
exports.default = SubscriptionRenewalMutationsNotice;
|
|
function SubscriptionRenewalMutationsNotice({subscription, renewalMutations}) { // fn#60685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7724:660, offset: 0x0170a0ef, size: 299 bytes, params: 2, frame: 27
|
|
var r13;
|
|
var value;
|
|
const styles = useStyles();
|
|
const WarningCircle = (NativeModule).WarningCircle;
|
|
const warningCircle = <WarningCircle style={styles.icon} />;
|
|
const LegacyText = (NativeModule).LegacyText;
|
|
const intl = (IndexNativeModule).intl;
|
|
const format = intl.format;
|
|
const ar1cPl = (IndexNativeModule).t.ar1cPl;
|
|
if (subscription.hasExternalPlanChange) {
|
|
value = require(3802) /* metro dependency 3802: PremiumUtils */;
|
|
value = value.getExternalPlanDisplayName(renewalMutations);
|
|
r13 = value;
|
|
} else {
|
|
value = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
|
|
value = value.getDisplayName(renewalMutations.planId);
|
|
r13 = value;
|
|
}
|
|
return (
|
|
<View style={styles.container}>
|
|
{warningCircle}
|
|
<LegacyText style={styles.text}>
|
|
{Reflect.apply(format, intl, [ar1cPl, {planName: r13, date: subscription.currentPeriodEnd}])}
|
|
</LegacyText>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun60684, 7546, [31, 27, 33, 4501, 697, 6235, 1305, 1244, 3802,
|
|
2]) /* metro module 7546, dependencies: [31, 27, 33, 4501, 697, 6235, 1305, 1244, 3802, 2] */;
|