Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,174 @@
|
||||
/* Metro module 15211; source: components_native/common/IconLabelBlock.tsx; dependencies: [29, 6, 7, 15, 17, 18, 31, 27, 33, 4501, 697, 1305, 4573, 9896, 4002, 3868, 2] */
|
||||
function _fun116345(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15408:6, offset: 0x024858e9, size: 498 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const env0_3 = ['error'];
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(29) /* metro dependency 29 */;
|
||||
const env0_5 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_6 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_7 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_8 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_9 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_10 = value2.View;
|
||||
const env0_11 = value2.Image;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_12 = value3.jsx;
|
||||
const env0_13 = value3.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createLegacyClassComponentStyles = createStylesModule.createLegacyClassComponentStyles;
|
||||
object2 = {wrapper: {'alignItems': 'center', 'paddingTop': 26, 'paddingBottom': 16}};
|
||||
const RED_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.RED_400;
|
||||
object2.error = {'fontSize': 12, 'textAlign': 'center', 'alignSelf': 'center', 'marginBottom': 10, color: RED_400};
|
||||
const TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
|
||||
object2.label = {'fontSize': 12, 'marginTop': 20, color: TEXT_SUBTLE};
|
||||
object2.iconUploaderWrapper = {'alignSelf': 'stretch', 'alignItems': 'center'};
|
||||
object2.text = {marginTop: 9};
|
||||
const env0_14 = Reflect.apply(createLegacyClassComponentStyles, createStylesModule, [object2]);
|
||||
const PureComponent = value.PureComponent;
|
||||
value = _fun116349(PureComponent);
|
||||
const ThemeContext = (require(3868) /* metro dependency 3868: native */).ThemeContext;
|
||||
value.contextType = ThemeContext;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/common/IconLabelBlock.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_116346() { // fn#116346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15408:240, offset: 0x02485adb, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_116346_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun116349(a0) { // fn#116349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15408:808, offset: 0x02485b3d, size: 149 bytes, params: 2, frame: 16
|
||||
const closure = IconLabelBlock;
|
||||
env0_9(closure, a0);
|
||||
return env0_6(closure, [{key: 'renderLabel', value: value_116351}, {key: 'renderText', value: value_116352},
|
||||
{key: 'renderIcon', value: value_116353}, {key: 'render', value: value_116354}]);
|
||||
}
|
||||
|
||||
function IconLabelBlock() { // fn#116350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15408:820, offset: 0x02485bd2, size: 113 bytes, params: 1, frame: 20
|
||||
const value = environment.__proto__;
|
||||
env1_5(this, IconLabelBlock);
|
||||
const value3 = env1_8(IconLabelBlock);
|
||||
return env1_7(this, _isNativeReflectConstruct_116346() ? global.Reflect.construct(value3, arguments,
|
||||
env1_8(this).constructor) : value3.apply(this, arguments));
|
||||
}
|
||||
|
||||
function value_116351() { // fn#116351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15408:1109, offset: 0x02485c43, size: 112 bytes, params: 1, frame: 18
|
||||
const value = environment.__proto__;
|
||||
const value2 = env1_14(this.context);
|
||||
const {label, labelStyle} = this.props;
|
||||
const value3 = null;
|
||||
if (value3 == label) {
|
||||
return value3;
|
||||
} else {
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
return (
|
||||
<LegacyText style={[value2.label, labelStyle]}>
|
||||
{label}
|
||||
</LegacyText>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function value_116352() { // fn#116352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15408:1280, offset: 0x02485cb3, size: 133 bytes, params: 1, frame: 19
|
||||
const value = environment.__proto__;
|
||||
const value2 = env1_14(this.context);
|
||||
const {text, textStyle, textAccessibilityRole} = this.props;
|
||||
const value3 = null;
|
||||
if (value3 == text) {
|
||||
return value3;
|
||||
} else {
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
variant="heading-md/medium"
|
||||
color="text-default"
|
||||
style={[value2.text, textStyle]}
|
||||
accessibilityRole={textAccessibilityRole}
|
||||
>
|
||||
{text}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function value_116353() { // fn#116353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15408:1537, offset: 0x02485d38, size: 352 bytes, params: 1, frame: 27
|
||||
var r8;
|
||||
var error;
|
||||
var value4;
|
||||
var items2;
|
||||
let value = environment.__proto__;
|
||||
const value2 = env1_14(this.context);
|
||||
const {iconProps, source, lightSource, darkSource, iconStyles, errorProps, errorStyles} = this.props;
|
||||
const value3 = null;
|
||||
if (value3 != iconProps) {
|
||||
error = iconProps.error;
|
||||
value4 = env1_4(iconProps, env1_3);
|
||||
var viewBindingProps = {style: value2.iconUploaderWrapper};
|
||||
items2 = [((Component) => <Component {...value4} />)(importDefault(9896) /* metro dependency 9896: IconUploader */)];
|
||||
items2[1] = value3 == error ? value3 : ((LegacyText) => <LegacyText style={[value2.error,
|
||||
errorStyles]} {...errorProps}>{error}</LegacyText>)((require(1305) /* metro dependency 1305: native */).LegacyText);
|
||||
return (
|
||||
<View {...viewBindingProps}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
if (value3 != source) {
|
||||
r8 = source;
|
||||
} else {
|
||||
value = require(4002) /* metro dependency 4002: shared */;
|
||||
r8 = value.isThemeLight(this.context.theme) ? lightSource : darkSource;
|
||||
}
|
||||
return (
|
||||
<Image
|
||||
source={r8}
|
||||
style={iconStyles}
|
||||
resizeMode="contain"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function value_116354() { // fn#116354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15408:1992, offset: 0x02485e98, size: 139 bytes, params: 1, frame: 16
|
||||
const value = environment.__proto__;
|
||||
const items3 = [env1_14(this.context).wrapper];
|
||||
items3[1] = this.props.wrapperStyles;
|
||||
const items2 = [this.renderIcon()];
|
||||
items2[1] = this.props.children;
|
||||
items2[2] = this.renderLabel();
|
||||
items2[3] = this.renderText();
|
||||
return (
|
||||
<View style={items3}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user