/* Metro module 13539; source: modules/quests/native/BountiesModal/BountiesModalProgress.tsx; dependencies: [57, 31, 27, 33, 4501, 697, 4017, 4504, 4507, 2] */ import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */ import ReanimatedRexport from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */ 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 ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */ import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */ import * as TimingModule from '../../../../design/animation/reanimated/timing/timing.tsx'; /* Metro dependency 4504 */ function _fun102892(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13729:6, offset: 0x0224d3f3, size: 269 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ReactNativeModule; const env0_5 = value.StyleSheet; const env0_6 = value.View; value = require(33) /* metro dependency 33 */; const env0_7 = value.jsx; const env0_8 = value.jsxs; const env0_9 = (CreateStylesModule).createStyles(_fun102893); object = {code: 'function BountiesModalProgressTsx1(){const{withTiming,visible,timingFast}=this.__closure;return{opacity:withTiming(visible?1:0,timingFast)};}'}; object = {code: 'function BountiesModalProgressTsx2(){const{withTiming,progress,shouldSkipAnimation,timingNone,timingFast}=this.__closure;return{width:withTiming(progress*100+"%",shouldSkipAnimation?timingNone:timingFast,\'animate-always\')};}'}; (FileImportTrackerModule).fileFinishedImporting('modules/quests/native/BountiesModal/BountiesModalProgress.tsx'); exports.default = BountiesModalProgress; exports.PROGRESS_BAR_HEIGHT = 4; function _fun102893() { // fn#102893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13729:201, offset: 0x0224d500, size: 331 bytes, params: 1, frame: 17 const object = {}; object.progressContainer = {height: 4}; const object3 = {}; copyDataProperties(object3, StyleSheet.absoluteFillObject, undefined); object3['borderRadius'] = (importDefault(697) /* metro dependency 697: native */).radii.round; const CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT; object3['backgroundColor'] = CONTROL_OVERLAY_SECONDARY_BACKGROUND_DEFAULT; object3['opacity'] = 0.54; object.progressTrack = object3; const object4 = {'position': 'absolute', 'height': '100%', 'left': 0, 'bottom': 0, 'borderRadius': null, 'backgroundColor': null, 'shadowOffset': null, 'shadowRadius': 8, 'shadowOpacity': 1, 'elevation': 4, 'shadowColor': '#30C773'}; object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round; let GREEN_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_300; object4.backgroundColor = GREEN_300; object4.shadowOffset = {'width': 0, 'height': 0}; object.progressBar = object4; const object5 = {'position': 'absolute', 'height': '100%', 'left': 0, 'bottom': 0, 'borderRadius': null, 'backgroundColor': null, 'shadowOffset': null, 'shadowRadius': 12, 'shadowOpacity': 1, 'elevation': 8}; object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round; GREEN_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_300; object5.backgroundColor = GREEN_300; object5.shadowOffset = {'width': 0, 'height': 0}; GREEN_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_300; object5.shadowColor = GREEN_300; object.progressBarGlowLayer = object5; return object; } function BountiesModalProgress({progress, visible, style}) { // fn#102894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13729:1323, offset: 0x0224d64b, size: 575 bytes, params: 2, frame: 26 const styles = useStyles(); let useState = ReactModule.useState; const value2 = Reflect.apply(useState, ReactModule, [false]); const value3 = Module00057(value2, 2); const property = value3[0]; const property2 = value3[1]; useState = ReactModule.useState; const value4 = Module00057(Reflect.apply(useState, ReactModule, [progress]), 2); const property3 = value4[0]; if (progress !== property3) { value4[1](progress); property2(progress < property3); } let useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle; let closure = function() { var object = {}; var moduleValue = require(dependencyMap[7]); object.opacity = moduleValue.withTiming(visible ? 1 : 0, require(dependencyMap[8]).timingFast); return object; }; let object = {}; object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming; object.visible = visible; object.timingFast = (require(4507) /* metro dependency 4507: timingPresets */).timingFast; closure.__closure = object; closure.__workletHash = 5158131592262; closure.__initData = env0_10; const value5 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]); useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle; closure = BountiesModalProgressB; closure.__closure = {withTiming: (require(4504) /* metro dependency 4504: timing */).withTiming, progress: progress, shouldSkipAnimation: property, timingNone: (require(4507) /* metro dependency 4507: timingPresets */).timingNone, timingFast: (require(4507) /* metro dependency 4507: timingPresets */).timingFast}; closure.__workletHash = 15586067343237; closure.__initData = env0_11; const value6 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]); const View2 = (ReanimatedRexport).View; const items3 = [styles.progressContainer, style, value5]; const items2 = [ , ]; const View3 = (ReanimatedRexport).View; items2[1] = ; const View4 = (ReanimatedRexport).View; items2[2] = ; return ( {items2} ); function BountiesModalProgressB() { // fn#102896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13729:1759, owner: BountiesModalProgress.B, offset: 0x0224d8df, size: 114 bytes, params: 1, frame: 19 let value = environment.__proto__; const withTiming = TimingModule.withTiming; const value3 = 100 * progress; const binding = env0_2; value = require(4507) /* metro dependency 4507: timingPresets */; return {width: Reflect.apply(withTiming, TimingModule, [value3 + '%', binding ? value.timingNone : value.timingFast, 'animate-always'])}; } } } global.__d(_fun102892, 13539, [57, 31, 27, 33, 4501, 697, 4017, 4504, 4507, 2]) /* metro module 13539, dependencies: [57, 31, 27, 33, 4501, 697, 4017, 4504, 4507, 2] */;