Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,123 @@
|
||||
/* Metro module 5278; source: design/void/Pressables/native/Pressables.tsx; dependencies: [31, 27, 4586, 1309, 33, 4501, 697, 477, 5279, 2] */
|
||||
function _fun46911(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5456:6, offset: 0x011b29f6, size: 310 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).Pressable;
|
||||
const env0_5 = (require(4586) /* metro dependency 4586: styleConstants */).IOS_POINTER_STYLE;
|
||||
const env0_6 = (require(1309) /* metro dependency 1309: FormConstants */).getThemedRippleConfig;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
|
||||
const env0_8 = Reflect.apply(createStyles, createStylesModule,
|
||||
[{pressedHighlight: {backgroundColor: BACKGROUND_MOD_MUTED}}]);
|
||||
const value3 = value.forwardRef(_fun46916);
|
||||
value = value.forwardRef(_fun46917);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Pressables/native/Pressables.tsx');
|
||||
exports.PressableOpacity = value3;
|
||||
exports.PressableHighlight = value;
|
||||
}
|
||||
|
||||
function PressableBase(a0) { // fn#46912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5456:297, offset: 0x011b2b2c, size: 253 bytes, params: 2, frame: 25
|
||||
const children = a0.children;
|
||||
const androidRippleConfig = a0.androidRippleConfig;
|
||||
const style = a0.style;
|
||||
const type = a0.type;
|
||||
const activeOpacity = a0.activeOpacity;
|
||||
const env0_3 = activeOpacity;
|
||||
const underlayColor = a0.underlayColor;
|
||||
const innerRef = a0.innerRef;
|
||||
const object2 = {'children': 0, 'androidRippleConfig': 0, 'style': 0, 'type': 0, 'activeOpacity': 0,
|
||||
'underlayColor': 0, 'innerRef': 0};
|
||||
silentSetPrototypeOf(object2, null, undefined);
|
||||
const value = copyDataProperties({}, a0, object2, type);
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<Pressable
|
||||
android_ripple={env0_3.useMemo(_fun46915, [androidRippleConfig, style])}
|
||||
style={env0_3.useMemo(_fun46913, [type, activeOpacity, underlayColor, style,
|
||||
styles.pressedHighlight.backgroundColor])}
|
||||
ref={innerRef}
|
||||
{...value}
|
||||
>
|
||||
{children}
|
||||
</Pressable>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun46916(a0, a1) { // fn#46916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5456:883, offset: 0x011b2d79, size: 98 bytes, params: 3, frame: 17
|
||||
let activeOpacity = a0.activeOpacity;
|
||||
activeOpacity = activeOpacity === undefined ? 0.2 : activeOpacity;
|
||||
const value = Object.create(null);
|
||||
value.activeOpacity = 0;
|
||||
return (
|
||||
<PressableBase
|
||||
innerRef={a1}
|
||||
type="opacity"
|
||||
activeOpacity={activeOpacity}
|
||||
{...copyDataProperties({}, a0, value, undefined)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun46917(a0, a1) { // fn#46917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5456:1013, offset: 0x011b2ddb, size: 84 bytes, params: 3, frame: 16
|
||||
const underlayColor = a0.underlayColor;
|
||||
const value = Object.create(null);
|
||||
value.underlayColor = 0;
|
||||
return (
|
||||
<PressableBase
|
||||
innerRef={a1}
|
||||
type="highlight"
|
||||
underlayColor={underlayColor}
|
||||
{...copyDataProperties({}, a0, value, undefined)}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun46913() { // fn#46913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5456:475, offset: 0x011b2c29, size: 56 bytes, params: 1, frame: 11
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
return value.isAndroid() ? style : function({pressed}) {
|
||||
var value2 = null;
|
||||
return [style,
|
||||
pressed ? type === 'highlight' ? {backgroundColor: value2 != underlayColor ? underlayColor : backgroundColor} : {opacity: value2 != activeOpacity ? activeOpacity : 0.2} : value2,
|
||||
|
||||
IOS_POINTER_STYLE];
|
||||
};
|
||||
}
|
||||
|
||||
function _fun46915() { // fn#46915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5456:625, offset: 0x011b2cdc, size: 157 bytes, params: 1, frame: 19
|
||||
var r9;
|
||||
var r4;
|
||||
var object2;
|
||||
var cornerRadius;
|
||||
var defaultImport;
|
||||
var value3;
|
||||
var getThemedRippleConfigBinding;
|
||||
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
||||
if (platformUtilsModule.isAndroid()) {
|
||||
cornerRadius = (androidRippleConfig ?? ({})).cornerRadius;
|
||||
if (cornerRadius != null) {
|
||||
r4 = cornerRadius;
|
||||
} else {
|
||||
defaultImport = importDefault(5279) /* metro dependency 5279: StyleSheetUtils */;
|
||||
value3 = defaultImport.getStyleProp(style, 'borderRadius');
|
||||
if (value3 == null) {
|
||||
r4 = cornerRadius;
|
||||
r9 = defaultImport;
|
||||
} else {
|
||||
r4 = value3;
|
||||
r9 = defaultImport;
|
||||
}
|
||||
}
|
||||
getThemedRippleConfigBinding = getThemedRippleConfig;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, androidRippleConfig, r9);
|
||||
object2['cornerRadius'] = r4;
|
||||
return getThemedRippleConfigBinding(object2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user