decord/source/components_native/common/VolumeSlider.tsx

77 lines
2.9 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 12139
// Function ID: 12140
2026-07-20 16:05:17 +00:00
// Name: VolumeSlider
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 17, 4529, 21, 500, 4661, 712, 4097, 12140, 8105, 4782, 1236, 6896, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-15 05:55:55 +00:00
// Module 12139 (VolumeSlider)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import { MAX_EMBEDDED_VOLUME_PERCEPTUAL as closure_4 } from "DesktopSources";
import jsxProd from "jsxProd";
import set from "set";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
import set from "DesktopSources";
2026-07-29 08:29:29 +00:00
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c5, jsxs: closure_6 } = jsxProd);
2026-07-20 16:05:17 +00:00
let num = 16;
2026-07-23 10:11:24 +00:00
if (set.isAndroid()) {
2026-07-20 16:05:17 +00:00
num = 0;
}
2026-07-29 08:29:29 +00:00
let closure_7 = createCacheKey.createStyles({ volumerSlider: { flexDirection: "row", alignItems: "center" }, leftIcon: { marginRight: num }, rightIcon: { marginLeft: num }, volumerSliderNative: { flex: 1, marginVertical: -10, backgroundColor: "transparent" } });
2026-07-23 10:11:24 +00:00
const result = set.fileFinishedImporting("components_native/common/VolumeSlider.tsx");
2026-07-20 16:05:17 +00:00
export default function VolumeSlider(maxTrackTintColor) {
let maxVolume;
let onResponderGrant;
2026-07-23 10:11:24 +00:00
let require;
2026-07-20 16:05:17 +00:00
let value;
let PRIMARY_400 = maxTrackTintColor.maxTrackTintColor;
if (PRIMARY_400 === undefined) {
2026-07-29 08:29:29 +00:00
PRIMARY_400 = importDefault(712).unsafe_rawColors.PRIMARY_400;
2026-07-20 16:05:17 +00:00
}
({ maxVolume, value } = maxTrackTintColor);
if (maxVolume === undefined) {
maxVolume = closure_4;
}
2026-07-23 10:11:24 +00:00
({ onValueChange: require, onResponderGrant } = maxTrackTintColor);
2026-07-29 08:29:29 +00:00
const merged = Object.assign(maxTrackTintColor, Object.create(null));
const tmp4 = callback2();
2026-08-15 05:55:55 +00:00
let obj = require(4097) /* map */;
2026-07-29 08:29:29 +00:00
let minTrackColor = merged.minTrackColor;
if (minTrackColor == null) {
minTrackColor = obj.useToken(importDefault(712).colors.BACKGROUND_BRAND);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { style: items, children: null };
items = [tmp4.volumerSlider, maxTrackTintColor.style];
obj = { style: tmp4.leftIcon };
2026-08-15 05:55:55 +00:00
const items1 = [callback(require(12140) /* VoiceXIcon */.VoiceXIcon, obj), , ];
2026-07-29 08:29:29 +00:00
const obj1 = { style: tmp4.volumerSliderNative, value: null, minimumValue: 0, maximumValue: null, minimumTrackTintColor: null, maximumTrackTintColor: null, accessibilityLabel: null, onValueChange: null, onResponderGrant: null };
2026-08-15 05:55:55 +00:00
let tmp5Result = tmp5(4782);
2026-07-29 08:29:29 +00:00
obj1[1] = tmp5Result.amplitudeToPerceptual(value);
obj1[3] = maxVolume;
obj1[4] = minTrackColor;
obj1[5] = PRIMARY_400;
const intl = tmp5(1236).intl;
obj1[6] = intl.string(require(1236) /* getSystemLocale */.t.xPHVBs);
obj1[7] = function onValueChange(arg0) {
2026-07-23 10:11:24 +00:00
return callback(outer1_0(outer1_2[10]).perceptualToAmplitude(arg0));
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
if (onResponderGrant == null) {
tmp5Result = tmp5(500);
2026-07-20 16:05:17 +00:00
let fn;
2026-07-29 08:29:29 +00:00
if (tmp5Result.isAndroid()) {
2026-07-20 16:05:17 +00:00
fn = () => true;
}
onResponderGrant = fn;
}
2026-07-29 08:29:29 +00:00
obj1[8] = onResponderGrant;
2026-08-15 05:55:55 +00:00
items1[1] = callback(importDefault(8105), obj1);
items1[2] = callback(require(6896) /* VoiceNormalIcon */.VoiceNormalIcon, { style: tmp4.rightIcon });
2026-07-29 08:29:29 +00:00
obj[1] = items1;
return closure_6(View, obj);
2026-07-20 16:05:17 +00:00
};