Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,81 @@
|
||||
/* Metro module 5415; source: unknown; dependencies: [57, 31, 27, 33, 1485, 5404, 5416, 5405, 5418] */
|
||||
function _fun47724(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5593:6, offset: 0x011cab58, size: 539 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const value = 1;
|
||||
const env0_4 = importAll(dependencyMap[value]);
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value2.Animated;
|
||||
const I18nManager = value2.I18nManager;
|
||||
const env0_6 = value2.Image;
|
||||
const Platform = value2.Platform;
|
||||
const StyleSheet = value2.StyleSheet;
|
||||
const env0_7 = value2.View;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value3.jsx;
|
||||
const env0_9 = value3.jsxs;
|
||||
object2 = {'borderless': true, 'foreground': null, 'radius': 20};
|
||||
const Version = Platform.Version;
|
||||
object2.foreground = Version >= 23;
|
||||
const create = StyleSheet.create;
|
||||
object2 = {};
|
||||
Object = global.Object;
|
||||
object2.container = Object.assign({'alignItems': 'center', 'flexDirection': 'row',
|
||||
minWidth: StyleSheet.hairlineWidth}, {'marginVertical': 3, 'marginHorizontal': 11});
|
||||
object2.disabled = {opacity: 0.5};
|
||||
object2.label = {'fontSize': 17, 'letterSpacing': 0.35};
|
||||
object2.labelWrapper = {'flexDirection': 'row', 'alignItems': 'flex-start'};
|
||||
let getConstants = I18nManager.getConstants;
|
||||
object2.icon = {'height': 24, 'width': 24, 'margin': 3, 'resizeMode': 'contain',
|
||||
transform: [{scaleX: Reflect.apply(getConstants, I18nManager, []).isRTL ? -1 : value}]};
|
||||
object2.iconWithLabel = {};
|
||||
object2.iconMaskContainer = {'flex': 1, 'flexDirection': 'row', 'justifyContent': 'center'};
|
||||
object2.iconMaskFillerRect = {'flex': 1, 'backgroundColor': '#000'};
|
||||
getConstants = I18nManager.getConstants;
|
||||
object2.iconMask = {'height': 21, 'width': 13, 'marginLeft': -14.5, 'marginVertical': 12, 'alignSelf': 'center',
|
||||
'resizeMode': 'contain', transform: [{scaleX: Reflect.apply(getConstants, I18nManager, []).isRTL ? -1 : value}]};
|
||||
const env0_11 = Reflect.apply(create, StyleSheet, [object2]);
|
||||
exports.default = HeaderBackButton_47725;
|
||||
}
|
||||
|
||||
function HeaderBackButton_47725({disabled, allowFontScaling, backImage, label, labelStyle, labelVisible, onLabelLayout, onPress, pressColor, pressOpacity, screenLayout, tintColor, titleLayout, truncatedLabel, accessibilityLabel, testID, style}) { // fn#47725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5593:961, offset: 0x011cad73, size: 678 bytes, params: 2, frame: 28
|
||||
var r9;
|
||||
var items2;
|
||||
var Boolean;
|
||||
const r18 = labelVisible !== undefined && labelVisible;
|
||||
const env0_3 = r18;
|
||||
const value3 = 'Back';
|
||||
const env0_8 = truncatedLabel === undefined ? value3 : truncatedLabel;
|
||||
const r12 = accessibilityLabel !== undefined ? accessibilityLabel : label ? value3 === label ? 'Go back' : '' + label + ', back' : 'Go back';
|
||||
const moduleValue = require(1485) /* metro dependency 1485 */;
|
||||
const useTheme = moduleValue.useTheme;
|
||||
const colors = Reflect.apply(useTheme, moduleValue, []).colors;
|
||||
const [env0_9, env0_10] = env0_3(onLabelLayout.useState(undefined), 2);
|
||||
const r11 = tintColor !== undefined ? tintColor : colors.text;
|
||||
const env0_11 = r11;
|
||||
const defaultImport = importDefault(5418) /* metro dependency 5418 */;
|
||||
const defaultImportProps2 = {'disabled': null, 'accessible': true, 'accessibilityRole': 'button',
|
||||
disabled: disabled, accessibilityLabel: r12, testID: testID,
|
||||
onPress: disabled ? undefined : HeaderBackButton_47725HandlePress, pressColor: pressColor,
|
||||
pressOpacity: pressOpacity, android_ripple: env0_10};
|
||||
disabled = disabled && env0_11.disabled;
|
||||
defaultImportProps2.style = [env0_11.container, disabled, style];
|
||||
defaultImportProps2.hitSlop = {'top': 16, 'right': 16, 'bottom': 16, 'left': 16};
|
||||
const Fragment = onLabelLayout.Fragment;
|
||||
if (backImage) {
|
||||
r9 = backImage({tintColor: r11});
|
||||
} else {
|
||||
items2 = [env0_11.icon];
|
||||
Boolean = global.Boolean;
|
||||
items2[1] = Boolean(r18) && env0_11.iconWithLabel;
|
||||
Boolean = global.Boolean;
|
||||
items2[2] = Boolean(r11) && ({tintColor: r11});
|
||||
r9 = <Image style={items2} source={require(5404) /* metro dependency 5404 */} fadeDuration={0} />;
|
||||
}
|
||||
return ((Component) => <Component {...defaultImportProps2}><Fragment>{[r9,
|
||||
HeaderBackButton_47725RenderLabel()]}</Fragment></Component>)(defaultImport);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user