/* Metro module 10272; source: components_native/common/VolumeSlider.tsx; dependencies: [31, 27, 4291, 33, 477, 4501, 697, 3860, 10273, 7992, 4615, 1244, 6711, 2] */ import Module07992 from '../../by-id/module-07992.jsx'; /* Metro dependency 7992 */ 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 JsxRuntimeModule from '../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as UseTokenModule from '../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */ import * as ConstantsModule from '../../external/discord_common/js/packages/media-engine/Constants.tsx'; /* Metro dependency 4291 */ import * as CreateStylesModule from '../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */ import * as PerceptualVolumeUtilsModule from '../../utils/PerceptualVolumeUtils.tsx'; /* Metro dependency 4615 */ import * as VoiceNormalIconModule from '../../design/components/Icon/native/redesign/generated/VoiceNormalIcon.tsx'; /* Metro dependency 6711 */ import * as VoiceXIconModule from '../../design/components/Icon/native/redesign/generated/VoiceXIcon.tsx'; /* Metro dependency 10273 */ function _fun79715(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10458:6, offset: 0x01e5f0cf, size: 310 bytes, params: 8, frame: 21 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const value = 0; importAll(dependencyMap[value]); const r9 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() ? value : 16; const env0_7 = (CreateStylesModule).createStyles({volumerSlider: {'flexDirection': 'row', 'alignItems': 'center'}, leftIcon: {marginRight: r9}, rightIcon: {marginLeft: r9}, volumerSliderNative: {'flex': 1, 'marginVertical': -10, 'backgroundColor': 'transparent'}}); (FileImportTrackerModule).fileFinishedImporting('components_native/common/VolumeSlider.tsx'); exports.default = VolumeSlider; function VolumeSlider(a0) { // fn#79716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10458:430, offset: 0x01e5f205, size: 571 bytes, params: 2, frame: 32 var r10; var moduleValue3; const style = a0.style; const maxTrackTintColor = a0.maxTrackTintColor; const value = undefined; const r13 = maxTrackTintColor !== value ? maxTrackTintColor : (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_400; const value3 = a0.value; const maxVolume = a0.maxVolume; const r15 = maxVolume !== value ? maxVolume : MAX_EMBEDDED_VOLUME_PERCEPTUAL; const env0_0 = a0.onValueChange; const onResponderGrant = a0.onResponderGrant; const object = {'style': 0, 'maxTrackTintColor': 0, 'value': 0, 'maxVolume': 0, 'onValueChange': 0, 'onResponderGrant': 0}; silentSetPrototypeOf(object, null, undefined); const value5 = copyDataProperties({}, a0, object, value3); const styles = useStyles(); const useToken = UseTokenModule.useToken; const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND; const r14 = value5.minTrackColor ?? Reflect.apply(useToken, UseTokenModule, [BACKGROUND_BRAND]); const items3 = [styles.volumerSlider, style]; const VoiceXIcon = (VoiceXIconModule).VoiceXIcon; const items2 = [ , ]; const defaultImport = Module07992; const defaultImportProps = {style: styles.volumerSliderNative, value: (PerceptualVolumeUtilsModule).amplitudeToPerceptual(value3), minimumValue: 0, maximumValue: r15, minimumTrackTintColor: r14, maximumTrackTintColor: r13}; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; defaultImportProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xPHVBs); defaultImportProps.onValueChange = onValueChange_79717; if (onResponderGrant != null) { r10 = onResponderGrant; } else { moduleValue3 = require(477) /* metro dependency 477: PlatformUtils */; r10 = moduleValue3.isAndroid() ? function() { return true; } : value; } defaultImportProps.onResponderGrant = r10; items2[1] = ((Component) => )(defaultImport); const VoiceNormalIcon = (VoiceNormalIconModule).VoiceNormalIcon; items2[2] = ; return ( {items2} ); function VolumeSliderOnValueChange(a0) { // fn#79717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10458:997, owner: VolumeSlider.onValueChange, offset: 0x01e5f440, size: 53 bytes, params: 2, frame: 13 const onValueChangeBinding = onValueChange; let value = environment.__proto__; value = require(4615) /* metro dependency 4615: PerceptualVolumeUtils */; return onValueChangeBinding(value.perceptualToAmplitude(a0)); } } } global.__d(_fun79715, 10272, [31, 27, 4291, 33, 477, 4501, 697, 3860, 10273, 7992, 4615, 1244, 6711, 2]) /* metro module 10272, dependencies: [31, 27, 4291, 33, 477, 4501, 697, 3860, 10273, 7992, 4615, 1244, 6711, 2] */;