Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -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