/* Metro module 12291; source: components_native/premium/PremiumTierCard.tsx; dependencies: [31, 27, 7047, 1880, 33, 4501, 697, 6235, 1357, 4589, 676, 3802, 12292, 12293, 7312, 7250, 7251, 7307, 6239, 2] */
import MobileVisualRefreshExperiment from '../../modules/themes/experiments/MobileVisualRefreshExperiment.tsx'; /* Metro dependency 1357 */
import defaultImport2 from '../../by-id/module-04589-LinearGradient.js'; /* Metro dependency 4589 */
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 ConstantsIOSModule from '../../ConstantsIOS.tsx'; /* Metro dependency 676 */
import * as PremiumConstantsModule from '../../modules/premium/PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as PremiumUtilsModule from '../../utils/PremiumUtils.tsx'; /* Metro dependency 3802 */
import * as LegacyTokensModule from '../../design/migrations/native/LegacyTokens.tsx'; /* Metro dependency 6235 */
import * as ColorConstantsModule from '../../modules/colors/native/ColorConstants.tsx'; /* Metro dependency 7047 */
function _fun93895(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12477:6, offset: 0x020c92c9, size: 506 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.View;
const env0_4 = value.Image;
value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.Fragment;
const env0_9 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object = {header: {'marginTop': 24, 'padding': 16}, textLogoTier0: {'width': 158, 'height': 32},
textLogoTier1: {'width': 185, 'height': 32}, textLogoTier2: {'width': 80, 'height': 32},
wumpusLogo: {'position': 'absolute', 'top': 0, 'right': 24, 'zIndex': 1}, wumpusLogoTier0: {'width': 83,
'height': 100}, wumpusLogoTier1: {'width': 86, 'height': 100}, wumpusLogoTier2: {'width': 133, 'height': 100}};
const object2 = {padding: 16};
object2.borderBottomRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object2.borderBottomLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object.body = object2;
const DARK_PRIMARY_630_LIGHT_PRIMARY_100 = (LegacyTokensModule).DARK_PRIMARY_630_LIGHT_PRIMARY_100;
object.bodyLegacy = {backgroundColor: DARK_PRIMARY_630_LIGHT_PRIMARY_100};
const env0_10 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('components_native/premium/PremiumTierCard.tsx');
exports.default = _default_93896;
function _default_93896({premiumType, children, style}) { // fn#93896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12477:748, offset: 0x020c94c3, size: 793 bytes, params: 2, frame: 28
const styles = useStyles();
const value3 = (MobileVisualRefreshExperiment)('PremiumTierCard');
const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8;
const defaultImport2Props = {style: styles.header};
const HorizontalGradient = (ConstantsIOSModule).HorizontalGradient;
const START = HorizontalGradient.START;
defaultImport2Props.start = START;
const END = HorizontalGradient.END;
defaultImport2Props.end = END;
defaultImport2Props.colors = getPremiumGradientColor(premiumType);
const imageBindingProps = {'accessible': true, 'accessibilityLabel': null, 'accessibilityRole': 'header',
accessibilityLabel: (PremiumUtilsModule).getPremiumTypeDisplayName(premiumType)};
let TIER_0 = PremiumTypes.TIER_0;
imageBindingProps.style = TIER_0 === premiumType ? styles.textLogoTier0 : PremiumTypes.TIER_1 === premiumType ? styles.textLogoTier1 : PremiumTypes.TIER_2 !== premiumType ? undefined : styles.textLogoTier2;
TIER_0 = PremiumTypes.TIER_0;
imageBindingProps.source = TIER_0 === premiumType ? importDefault(12292) /* metro dependency 12292 */ : PremiumTypes.TIER_1 === premiumType ? importDefault(12293) /* metro dependency 12293 */ : PremiumTypes.TIER_2 !== premiumType ? undefined : importDefault(7312) /* metro dependency 7312 */;
const items3 = [
((Component) => )(defaultImport2),
];
const items2 = [styles.wumpusLogo];
TIER_0 = PremiumTypes.TIER_0;
items2[1] = TIER_0 === premiumType ? styles.wumpusLogoTier0 : PremiumTypes.TIER_1 === premiumType ? styles.wumpusLogoTier1 : PremiumTypes.TIER_2 !== premiumType ? undefined : styles.wumpusLogoTier2;
TIER_0 = PremiumTypes.TIER_0;
items3[1] = (
);
items3[2] = (
{children}
);
const fragment = (
<>
{items3}
>
);
if (value3) {
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
return (
{fragment}
);
} else {
return (
{fragment}
);
}
}
}
global.__d(_fun93895, 12291, [31, 27, 7047, 1880, 33, 4501, 697, 6235, 1357, 4589, 676, 3802, 12292, 12293, 7312,
7250, 7251, 7307, 6239,
2]) /* metro module 12291, dependencies: [31, 27, 7047, 1880, 33, 4501, 697, 6235, 1357, 4589, 676, 3802, 12292, 12293, 7312, 7250, 7251, 7307, 6239, 2] */;