Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,46 @@
|
||||
/* Metro module 7025; source: modules/premium/native/components/LinkButton.tsx; dependencies: [31, 33, 4501, 5278, 4573, 2] */
|
||||
function _fun55670(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7203:6, offset: 0x013ad8be, size: 206 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_2 = value.jsx;
|
||||
const env0_3 = value.jsxs;
|
||||
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({defaultContainerStyle: {'display': 'flex',
|
||||
'flexDirection': 'row', 'alignItems': 'center', 'justifyContent': 'center'},
|
||||
disabledContainerStyle: {opacity: 0.5}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/components/LinkButton.tsx');
|
||||
exports.LinkButton = LinkButton;
|
||||
}
|
||||
|
||||
function LinkButton({onPress, text, containerStyle, disabled, textStyle, variant, textColor, iconRight}) { // fn#55671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7203:391, offset: 0x013ad98c, size: 277 bytes, params: 2, frame: 26
|
||||
variant = variant === undefined ? 'text-xs/medium' : variant;
|
||||
textColor = textColor === undefined ? 'text-link' : textColor;
|
||||
const styles = useStyles();
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const items2 = [styles.defaultContainerStyle];
|
||||
items2[1] = disabled && styles.disabledContainerStyle;
|
||||
items2[2] = containerStyle;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<PressableOpacity
|
||||
style={items2}
|
||||
hitSlop={{'top': 8, 'right': 8, 'bottom': 8}}
|
||||
accessibilityRole="button"
|
||||
activeOpacity={0.2}
|
||||
disabled={disabled}
|
||||
onPress={onPress}
|
||||
>
|
||||
<Text
|
||||
style={textStyle}
|
||||
variant={variant}
|
||||
color={textColor}
|
||||
>
|
||||
{text}
|
||||
</Text>
|
||||
{iconRight}
|
||||
</PressableOpacity>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* Metro module 7580; source: modules/premium/native/components/PillText.tsx; dependencies: [661, 33, 4501, 697, 7581, 4589, 4573, 2] */
|
||||
function _fun60828(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7758:6, offset: 0x01710c86, size: 235 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).HorizontalGradient;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const object = {'paddingHorizontal': 8, 'borderRadius': null, 'justifyContent': 'center'};
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const env0_5 = Reflect.apply(createStyles, createStylesModule, [{pillTextContainer: object,
|
||||
pillText: {textTransform: 'uppercase'}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/components/PillText.tsx');
|
||||
exports.default = PillText;
|
||||
}
|
||||
|
||||
function PillText({pillText, style}) { // fn#60829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7758:386, offset: 0x01710d71, size: 186 bytes, params: 2, frame: 21
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(7581) /* metro dependency 7581: usePremiumPrimaryGradientColors */)();
|
||||
const defaultImport = importDefault(4589) /* metro dependency 4589 */;
|
||||
const items2 = [styles.pillTextContainer, style];
|
||||
const {START, END} = HorizontalGradient;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return ((Component) => <Component style={items2} start={START} end={END} colors={value2}><Text variant="text-xs/semibold" color="always-white" style={styles.pillText}>{pillText}</Text></Component>)(defaultImport);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
/* Metro module 11939; source: modules/premium/native/components/ProgressCircle.tsx; dependencies: [6, 7, 15, 17, 18, 31, 27, 33, 4501, 7744, 3868, 697, 2] */
|
||||
function _fun91635(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12125:6, offset: 0x0206c5c6, size: 423 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_8 = (require(27) /* metro dependency 27 */).View;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value2.jsx;
|
||||
const env0_10 = value2.jsxs;
|
||||
const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createLegacyClassComponentStyles({progressCircle: {'alignItems': 'center',
|
||||
'justifyContent': 'center'}, circle: {'position': 'absolute', 'width': '100%', 'height': '100%'},
|
||||
circleOverlay: {'position': 'relative', 'display': 'flex', 'justifyContent': 'center', 'alignItems': 'center'}});
|
||||
const Component = value.Component;
|
||||
value = _fun91639(Component);
|
||||
const ThemeContext = (require(3868) /* metro dependency 3868: native */).ThemeContext;
|
||||
value.contextType = ThemeContext;
|
||||
const GUILD_BOOSTING_PINK = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GUILD_BOOSTING_PINK;
|
||||
value.defaultProps = {'size': 20, 'strokeWidth': 0.9, color: GUILD_BOOSTING_PINK};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/native/components/ProgressCircle.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_91636() { // fn#91636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12125:200, offset: 0x0206c76d, 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_91636_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun91639(a0) { // fn#91639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12125:657, offset: 0x0206c7cf, size: 99 bytes, params: 2, frame: 16
|
||||
const closure = ProgressCircle;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'renderCircle', value: value_91641}, {key: 'render', value: value_91642}]);
|
||||
}
|
||||
|
||||
function value_91641() { // fn#91641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12125:959, offset: 0x0206c832, size: 354 bytes, params: 1, frame: 31
|
||||
const value = environment.__proto__;
|
||||
const value2 = env1_11(this.context);
|
||||
const {percent, color, size, strokeWidth} = this.props;
|
||||
let Math = global.Math;
|
||||
const min = Math.min;
|
||||
const Math2 = global.Math;
|
||||
const value4 = Reflect.apply(min, Math, [Math2.max(percent, 0), 100]);
|
||||
const value5 = (size - strokeWidth) / 2;
|
||||
Math = global.Math;
|
||||
const PI = Math.PI;
|
||||
const value6 = value5 * PI * 2;
|
||||
const defaultImport = importDefault(7744) /* metro dependency 7744 */;
|
||||
const circle = value2.circle;
|
||||
const Circle = (require(7744) /* metro dependency 7744 */).Circle;
|
||||
return ((Component) => <Component viewBox={'0 0 ' + size + ' ' + size} style={circle}><Circle fill="none" cx={size / 2} cy={size / 2} r={value5} strokeWidth={strokeWidth} strokeLinecap="round" transform={'rotate(-90 ' + size / 2 + ' ' + size / 2 + ')'} stroke={color} style={{strokeDasharray: value6,
|
||||
strokeDashoffset: (1 - value4 / 100) * value6}} /></Component>)(defaultImport);
|
||||
}
|
||||
|
||||
function value_91642() { // fn#91642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12125:1384, offset: 0x0206c994, size: 144 bytes, params: 1, frame: 20
|
||||
const value = environment.__proto__;
|
||||
const value2 = env1_11(this.context);
|
||||
const {style, children} = this.props;
|
||||
const items2 = [value2.progressCircle, style];
|
||||
const value3 = this.renderCircle();
|
||||
const value4 = null;
|
||||
return (
|
||||
<View style={items2}>
|
||||
{value3}
|
||||
{value4 != children ? <View style={value2.circleOverlay}>{children}</View> : value4}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user