Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,125 @@
|
||||
/* Metro module 10460; source: modules/premium/native/gifting/PremiumGiftDuration.tsx; dependencies: [31, 27, 1880, 33, 4501, 697, 7669, 6238, 7975, 10391, 3874, 4573, 1244, 7672, 6518, 2] */
|
||||
function _fun80958(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10646:6, offset: 0x01e91715, size: 567 bytes, params: 8, frame: 24
|
||||
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;
|
||||
let value = require(1880) /* metro dependency 1880: PremiumConstants */;
|
||||
const env0_5 = value.PREMIUM_YEARLY_DISCOUNT_PERCENT;
|
||||
const SubscriptionIntervalTypes = value.SubscriptionIntervalTypes;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_7 = value.jsx;
|
||||
const env0_8 = value.jsxs;
|
||||
const YEAR = SubscriptionIntervalTypes.YEAR;
|
||||
object = [YEAR];
|
||||
const MONTH = SubscriptionIntervalTypes.MONTH;
|
||||
object[1] = MONTH;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
let createStyles = value.createStyles;
|
||||
object = {};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object.container = {marginTop: PX_8};
|
||||
const object2 = {};
|
||||
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
|
||||
object2.borderColor = BACKGROUND_BRAND;
|
||||
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.borderWidth = 2;
|
||||
object.containerSelected = object2;
|
||||
object.labelContainer = {flexDirection: 'row'};
|
||||
const object4 = {};
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.marginStart = PX_8;
|
||||
const STATUS_POSITIVE_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_POSITIVE_BACKGROUND;
|
||||
object4.backgroundColor = STATUS_POSITIVE_BACKGROUND;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object4.paddingHorizontal = PX_8;
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object.labelPromo = object4;
|
||||
const env0_10 = Reflect.apply(createStyles, value, [object]);
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
createStyles = value.createStyles;
|
||||
object = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object.durationContainer = {marginHorizontal: PX_16};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object.durationTitle = {marginTop: PX_24};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/gifting/PremiumGiftDuration.tsx');
|
||||
exports.default = PremiumGiftDuration;
|
||||
}
|
||||
|
||||
function PremiumGiftDurationButton({selected, planInterval}) { // fn#80959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10646:627, offset: 0x01e9194c, size: 773 bytes, params: 2, frame: 40
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const value2 = (require(7669) /* metro dependency 7669: NativeGiftContext */).useNativeGiftContext();
|
||||
const premiumType = value2.premiumType;
|
||||
const env0_1 = value2.setPlanInterval;
|
||||
const styles = useStyles();
|
||||
const r6 = selected ? (require(6238) /* metro dependency 6238: TableRowNative */).TableRow : (require(7975) /* metro dependency 7975: RowButtonNative */).RowButton;
|
||||
const YEAR = SubscriptionIntervalTypes.YEAR;
|
||||
const r29 = planInterval !== YEAR ? null : '' + PREMIUM_YEARLY_DISCOUNT_PERCENT + '%';
|
||||
const value5 = (importDefault(10391) /* metro dependency 10391: usePremiumProductPricingString */)(premiumType,
|
||||
planInterval);
|
||||
const {accessibilityRole,
|
||||
accessibilityState} = (require(3874) /* metro dependency 3874: useA11yRolesNative */).useRadioA11yNative({selected: selected});
|
||||
const items2 = [styles.container];
|
||||
items2[1] = selected && styles.containerSelected;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const MONTH = SubscriptionIntervalTypes.MONTH;
|
||||
return (
|
||||
<View style={items2}>
|
||||
{((Component) => <Component label={<View style={styles.labelContainer}><Text variant="text-md/semibold">{planInterval === MONTH ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Mh9bTt) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.DRgqMo)}</Text>{r29 != null && <View style={styles.labelPromo}><Text variant="text-md/bold" color="always-white">{intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.IAybsG,
|
||||
{discount: r29}).toUpperCase()}</Text></View>}</View>} trailing={<Text variant="text-md/semibold">{value5}</Text>} onPress={function() {
|
||||
setPlanInterval(planInterval);
|
||||
}} arrow={false} accessibilityRole={accessibilityRole} accessibilityState={accessibilityState} start end />)(r6)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function PremiumGiftDuration() { // fn#80961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10646:1785, offset: 0x01e91c51, size: 314 bytes, params: 1, frame: 23
|
||||
const styles = useStyles();
|
||||
const nativeGiftContextModule = require(7669) /* metro dependency 7669: NativeGiftContext */;
|
||||
const useNativeGiftContext = nativeGiftContextModule.useNativeGiftContext;
|
||||
const env0_0 = Reflect.apply(useNativeGiftContext, nativeGiftContextModule, []).planInterval;
|
||||
const defaultImport = importDefault(7672) /* metro dependency 7672: NitroGiftPriceCopyExperiment */;
|
||||
const useConfig = defaultImport.useConfig;
|
||||
const value3 = env0_3.useMemo(_fun80962,
|
||||
[(importDefault(6518) /* metro dependency 6518: useInitialValue */)(Reflect.apply(useConfig, defaultImport,
|
||||
[{location: 'PremiumGiftDuration'}]).monthlyDefaultSelected)]);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const items2 = [<Text style={styles.durationTitle} variant="text-sm/semibold">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8XT6Nf'])}</Text>];
|
||||
items2[1] = value3.map(_fun80963);
|
||||
return (
|
||||
<View style={styles.durationContainer}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun80962() { // fn#80962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10646:1977, offset: 0x01e91d8b, size: 50 bytes, params: 1, frame: 14
|
||||
var r0;
|
||||
var items2;
|
||||
const binding = env0_1;
|
||||
const value = environment.__proto__;
|
||||
const binding2 = env1_9;
|
||||
if (binding) {
|
||||
items2 = [];
|
||||
arraySpread(items2, binding2, 0, binding2);
|
||||
r0 = items2.reverse();
|
||||
} else {
|
||||
r0 = binding2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun80963(a0, a1) { // fn#80963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10646:2183, offset: 0x01e91dbd, size: 51 bytes, params: 3, frame: 15
|
||||
return (
|
||||
<PremiumGiftDurationButton
|
||||
selected={planInterval === a0}
|
||||
planInterval={a0}
|
||||
key={a1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user