/* Metro module 11939; source: modules/premium/native/components/ProgressCircle.tsx; dependencies: [6, 7, 15, 17, 18, 31, 27, 33, 4501, 7744, 3868, 697, 2] */ import ClassCallCheck from '../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from '../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */ import PossibleConstructorReturn from '../../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */ import Module00017 from '../../../../by-id/module-00017.js'; /* Metro dependency 17 */ import Inherits from '../../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */ import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */ import Module07744 from '../../../../by-id/module-07744.js'; /* Metro dependency 7744 */ import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */ import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as NativeModule from '../../../../external/discord_common/js/packages/design/native.tsx'; /* Metro dependency 3868 */ import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */ import * as Module07744Module from '../../../../by-id/module-07744.js'; /* Metro dependency 7744 */ 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}); let value = ReactModule; const env0_11 = (CreateStylesModule).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 = (NativeModule).ThemeContext; value.contextType = ThemeContext; const GUILD_BOOSTING_PINK = (Native).unsafe_rawColors.GUILD_BOOSTING_PINK; value.defaultProps = {'size': 20, 'strokeWidth': 0.9, color: GUILD_BOOSTING_PINK}; (FileImportTrackerModule).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 ProgressCircle2 = ProgressCircle; Inherits(ProgressCircle2, a0); return CreateClass(ProgressCircle2, [{key: 'renderCircle', value: value_91641}, {key: 'render', value: value_91642}]); function ProgressCircle() { // fn#91640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12125:669, offset: 0x0108afcb, size: 113 bytes, params: 1, frame: 20 const value = environment.__proto__; env1_3(this, ProgressCircle); const value3 = env1_6(ProgressCircle); return env1_5(this, _isNativeReflectConstruct_91636() ? global.Reflect.construct(value3, arguments, env1_6(this).constructor) : value3.apply(this, arguments)); } 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 = Module07744; const circle = value2.circle; const Circle = (Module07744Module).Circle; return ((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 ( {value3} { value4 != children ? ( {children} ) : value4 } ); } } } global.__d(_fun91635, 11939, [6, 7, 15, 17, 18, 31, 27, 33, 4501, 7744, 3868, 697, 2]) /* metro module 11939, dependencies: [6, 7, 15, 17, 18, 31, 27, 33, 4501, 7744, 3868, 697, 2] */;