60 lines
3.2 KiB
TypeScript
60 lines
3.2 KiB
TypeScript
/* Metro module 10474; source: modules/user_profile/native/UserProfilePrivateBanner.tsx; dependencies: [31, 27, 6816, 33, 4501, 697, 673, 6705, 4573, 1244, 2] */
|
|
function _fun81045(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10660:6, offset: 0x01e971bb, size: 321 bytes, params: 8, frame: 23
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
|
const PROFILE_TOP_LAYER_Z_INDEX = (require(6816) /* metro dependency 6816: Constants */).PROFILE_TOP_LAYER_Z_INDEX;
|
|
let value = require(33) /* metro dependency 33 */;
|
|
const env0_4 = value.jsx;
|
|
const env0_5 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
const object = {'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'center', 'gap': 6,
|
|
'paddingTop': 18};
|
|
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
|
object.paddingBottom = PX_12;
|
|
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object.paddingHorizontal = PX_8;
|
|
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
|
object.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
|
object.position = 'relative';
|
|
object.zIndex = PROFILE_TOP_LAYER_Z_INDEX;
|
|
const env0_6 = Reflect.apply(createStyles, value, [{banner: object}]);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/native/UserProfilePrivateBanner.tsx');
|
|
exports.default = UserProfilePrivateBanner;
|
|
}
|
|
|
|
function UserProfilePrivateBanner({primaryColor}) { // fn#81046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10660:557, offset: 0x01e972fc, size: 294 bytes, params: 2, frame: 22
|
|
var r5;
|
|
var object;
|
|
const styles = useStyles();
|
|
const items2 = [styles.banner];
|
|
const value2 = primaryColor != null;
|
|
if (value2) {
|
|
object = {};
|
|
object.backgroundColor = (require(673) /* metro dependency 673: ColorUtils */).int2hex(primaryColor);
|
|
r5 = object;
|
|
} else {
|
|
r5 = value2;
|
|
}
|
|
items2[1] = r5;
|
|
const LockIcon = (require(6705) /* metro dependency 6705: LockIcon */).LockIcon;
|
|
const TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
|
|
const lockIcon = <LockIcon size="xs" color={TEXT_DEFAULT} />;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const string = intl.string;
|
|
const KPnd2O = (require(1244) /* metro dependency 1244: indexNative */).t.KPnd2O;
|
|
return (
|
|
<View style={items2}>
|
|
{lockIcon}
|
|
<Text variant="text-sm/medium" color="text-default">
|
|
{Reflect.apply(string, intl, [KPnd2O])}
|
|
</Text>
|
|
</View>
|
|
);
|
|
}
|
|
|