decord/source/modules/soundboard/native/SoundButton.tsx

336 lines
16 KiB
TypeScript
Raw Normal View History

// Module ID: 17072
// Function ID: 17073
2026-07-29 08:29:29 +00:00
// Name: SoundButtonEmoji
// Dependencies: [19, 17, 17065, 21, 4296, 4560, 576, 1115, 5123, 4974, 7130, 11939, 17073, 17074, 7162, 7182, 17076, 17062, 17078, 4556, 5095, 2]
2026-07-20 16:05:17 +00:00
// Module 17072 (SoundButtonEmoji)
import ThemesDefault from "Themes" /* 576 */;
import EmojiDefault from "Emoji" /* 7130 */;
import getSoundboardEmojiUrlDefault from "getSoundboardEmojiUrl" /* 11939 */;
2026-08-24 06:08:38 +00:00
import importAllResult from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
import importDefaultResult from "module_4296" /* 4296 */;
import set from "set" /* 1115 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
function SoundButtonEmoji(arg0) {
({ sound, sharedValues } = arg0);
2026-08-27 16:17:25 +00:00
const tmp = callback();
2026-07-29 08:29:29 +00:00
let obj = { sharedValues, scaleFactors: { pressed: 0.8, playing: 1.2 } };
obj1 = obj(4296);
2026-08-27 16:17:25 +00:00
const fn = function o() {
2026-07-29 08:29:29 +00:00
const pressed = obj.sharedValues.pressed;
const playing = obj.sharedValues.playing;
2026-07-20 16:05:17 +00:00
let value = pressed.get();
2026-08-27 16:17:25 +00:00
obj = obj(sharedValue1[4]);
2026-07-29 08:29:29 +00:00
let num = obj.playingAnimationDelay;
if (num == null) {
num = 0;
2026-07-20 16:05:17 +00:00
}
2026-08-27 16:17:25 +00:00
let tmp4Result = tmp4(tmp5[9]);
tmp4Result = tmp4(tmp5[4]);
2026-07-29 08:29:29 +00:00
const playing2 = tmp.sharedValues.playing;
const items = [1, obj.scaleFactors.playing];
const tmp3 = playing.get() > 0;
2026-08-27 16:17:25 +00:00
const withDelayResult = obj.withDelay(num, tmp4Result.withSpring(tmp4Result.interpolate(playing2.get(), [0, 1], items), closure_1_8));
const tmp4Result1 = obj(sharedValue1[9]);
2026-07-29 08:29:29 +00:00
const pressed2 = tmp.sharedValues.pressed;
const items1 = [1, obj.scaleFactors.pressed];
2026-08-27 16:17:25 +00:00
const withSpringResult = tmp4Result1.withSpring(obj(sharedValue1[4]).interpolate(pressed2.get(), [0, 1], items1), closure_1_8);
2026-07-29 08:29:29 +00:00
let tmp8 = withSpringResult;
2026-07-20 16:05:17 +00:00
if (0 === value) {
2026-07-29 08:29:29 +00:00
tmp8 = withSpringResult;
if (tmp3) {
tmp8 = withDelayResult;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
const items2 = [{ scale: tmp8 }, ];
2026-08-27 16:17:25 +00:00
const tmp4Result2 = obj(sharedValue1[4]);
2026-07-29 08:29:29 +00:00
const pressed3 = tmp.sharedValues.pressed;
let num2 = tmp.pressedRotationDegrees;
2026-07-20 16:05:17 +00:00
value = pressed3.get();
2026-07-29 08:29:29 +00:00
if (num2 == null) {
num2 = 0;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { transform: null };
2026-08-27 16:17:25 +00:00
obj = { rotate: "" + obj(sharedValue1[4]).interpolate(value, [0, 1], items3) + "deg" };
2026-07-29 08:29:29 +00:00
items3 = [0, num2];
items2[1] = obj;
obj[0] = items2;
2026-07-20 16:05:17 +00:00
return obj;
};
obj = { animationConfig: obj, withDelay: obj(4296).withDelay, withSpring: obj(4974).withSpring, interpolate: obj(4296).interpolate, SPRING_CONFIG: closure_8 };
2026-07-20 16:05:17 +00:00
fn.__closure = obj;
fn.__workletHash = 13932429225740;
2026-08-27 16:17:25 +00:00
fn.__initData = closure_11;
2026-07-29 08:29:29 +00:00
obj = { sharedValues, scaleFactors: { pressed: 0.7200000000000001, playing: 1.08 }, playingAnimationDelay: 100, pressedRotationDegrees: -15 };
const animatedStyle = obj1.useAnimatedStyle(fn);
let obj4 = obj(4296);
2026-08-27 16:17:25 +00:00
const fn2 = function o() {
2026-07-29 08:29:29 +00:00
const pressed = obj.sharedValues.pressed;
const playing = obj.sharedValues.playing;
let value = pressed.get();
2026-08-27 16:17:25 +00:00
obj = obj(sharedValue1[4]);
2026-07-29 08:29:29 +00:00
let num = obj.playingAnimationDelay;
if (num == null) {
num = 0;
}
2026-08-27 16:17:25 +00:00
let tmp4Result = tmp4(tmp5[9]);
tmp4Result = tmp4(tmp5[4]);
2026-07-29 08:29:29 +00:00
const playing2 = tmp.sharedValues.playing;
const items = [1, obj.scaleFactors.playing];
const tmp3 = playing.get() > 0;
2026-08-27 16:17:25 +00:00
const withDelayResult = obj.withDelay(num, tmp4Result.withSpring(tmp4Result.interpolate(playing2.get(), [0, 1], items), closure_1_8));
const tmp4Result1 = obj(sharedValue1[9]);
2026-07-29 08:29:29 +00:00
const pressed2 = tmp.sharedValues.pressed;
const items1 = [1, obj.scaleFactors.pressed];
2026-08-27 16:17:25 +00:00
const withSpringResult = tmp4Result1.withSpring(obj(sharedValue1[4]).interpolate(pressed2.get(), [0, 1], items1), closure_1_8);
2026-07-29 08:29:29 +00:00
let tmp8 = withSpringResult;
if (0 === value) {
tmp8 = withSpringResult;
if (tmp3) {
tmp8 = withDelayResult;
}
}
const items2 = [{ scale: tmp8 }, ];
2026-08-27 16:17:25 +00:00
const tmp4Result2 = obj(sharedValue1[4]);
2026-07-29 08:29:29 +00:00
const pressed3 = tmp.sharedValues.pressed;
let num2 = tmp.pressedRotationDegrees;
value = pressed3.get();
if (num2 == null) {
num2 = 0;
}
obj = { transform: null };
2026-08-27 16:17:25 +00:00
obj = { rotate: "" + obj(sharedValue1[4]).interpolate(value, [0, 1], items3) + "deg" };
2026-07-29 08:29:29 +00:00
items3 = [0, num2];
items2[1] = obj;
obj[0] = items2;
return obj;
};
obj1 = { animationConfig: obj, withDelay: obj(4296).withDelay, withSpring: obj(4974).withSpring, interpolate: obj(4296).interpolate, SPRING_CONFIG: closure_8 };
2026-07-29 08:29:29 +00:00
fn2.__closure = obj1;
fn2.__workletHash = 13932429225740;
2026-08-27 16:17:25 +00:00
fn2.__initData = closure_11;
2026-07-29 08:29:29 +00:00
const obj2 = { style: items, children: null };
items = [tmp.emojiWrapper, animatedStyle];
const obj3 = { style: obj4.useAnimatedStyle(fn2), children: null };
2026-08-24 06:08:38 +00:00
obj4 = { fastImageStyle: tmp.emoji, textEmojiStyle: tmp.emoji, src: getSoundboardEmojiUrlDefault(sound, 24), name: null };
2026-07-29 08:29:29 +00:00
let str = sound.emojiName;
if (str == null) {
str = "";
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj4[3] = str;
2026-08-27 16:17:25 +00:00
obj3[1] = closure_5(EmojiDefault, obj4);
obj2[1] = closure_5(closure_7, obj3);
return closure_5(closure_7, obj2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let c3 = importAllResult;
2026-08-27 16:17:25 +00:00
({ jsx: c5, jsxs: closure_6 } = jsxProd);
let closure_7 = importDefaultResult.createAnimatedComponent(View);
let closure_8 = { damping: 10, stiffness: 300, mass: 1 };
2026-08-04 08:36:32 +00:00
let obj = { button: null, buttonPressed: null, buttonDisabled: null, buttonPlaying: null, playingBackground: null, emoji: null, emojiWrapper: null, text: null, textPlaying: null, lock: null };
2026-08-24 06:08:38 +00:00
obj = { marginTop: 4, height: require("SOUND_BUTTON_HEIGHT").SOUND_BUTTON_HEIGHT, backgroundColor: ThemesDefault.colors.CARD_BACKGROUND_DEFAULT, display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", borderRadius: ThemesDefault.radii.lg, borderWidth: 1, borderColor: ThemesDefault.colors.BORDER_MUTED };
const merged = Object.assign(ThemesDefault.shadows.SHADOW_LOW);
2026-07-29 08:29:29 +00:00
obj[0] = obj;
2026-08-24 06:08:38 +00:00
obj[1] = { backgroundColor: ThemesDefault.colors.CARD_PRIMARY_PRESSED_BG };
2026-07-29 08:29:29 +00:00
obj[2] = { opacity: 0.5 };
2026-08-24 06:08:38 +00:00
createCacheKey = { borderStyle: "solid", borderWidth: 2, borderColor: ThemesDefault.colors.STATUS_SPEAKING };
2026-07-29 08:29:29 +00:00
obj[3] = createCacheKey;
2026-08-24 06:08:38 +00:00
let obj1 = { backgroundColor: ThemesDefault.colors.CARD_PRIMARY_PRESSED_BG };
obj[4] = { position: "absolute", top: 0, bottom: 0, start: 0, end: 0, backgroundColor: ThemesDefault.colors.CARD_SECONDARY_BG, borderRadius: ThemesDefault.radii.lg - 2 };
2026-07-20 16:05:17 +00:00
let num;
2026-07-23 10:11:24 +00:00
if (set.isIOS()) {
2026-07-20 16:05:17 +00:00
num = 24;
}
2026-08-04 08:36:32 +00:00
obj[5] = { height: 24, width: 24, fontSize: num, lineHeight: 28 };
2026-08-24 06:08:38 +00:00
let obj3 = { position: "absolute", top: 0, bottom: 0, start: 0, end: 0, backgroundColor: ThemesDefault.colors.CARD_SECONDARY_BG, borderRadius: ThemesDefault.radii.lg - 2 };
obj[6] = { display: "flex", alignItems: "center", justifyContent: "center", height: 40, width: 40, backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_MUTED, backgroundSize: 32, borderRadius: ThemesDefault.radii.round, marginBottom: 8 };
2026-08-04 08:36:32 +00:00
obj[7] = { marginHorizontal: 8 };
obj[8] = { marginHorizontal: 6 };
2026-08-24 06:08:38 +00:00
let obj4 = { display: "flex", alignItems: "center", justifyContent: "center", height: 40, width: 40, backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_MUTED, backgroundSize: 32, borderRadius: ThemesDefault.radii.round, marginBottom: 8 };
obj[9] = { position: "absolute", top: ThemesDefault.space.PX_12, end: ThemesDefault.space.PX_12, width: 12, height: 12, tintColor: ThemesDefault.colors.WHITE };
2026-08-27 16:17:25 +00:00
let closure_9 = createCacheKey.createStyles(obj);
2026-08-24 06:08:38 +00:00
const obj5 = { position: "absolute", top: ThemesDefault.space.PX_12, end: ThemesDefault.space.PX_12, width: 12, height: 12, tintColor: ThemesDefault.colors.WHITE };
2026-08-27 16:17:25 +00:00
let closure_10 = importDefaultResult.createAnimatedComponent(require("PressableBase").PressableOpacity);
let closure_11 = { code: "function SoundButtonTsx1(){const{animationConfig,withDelay,withSpring,interpolate,SPRING_CONFIG}=this.__closure;var _animationConfig$play,_animationConfig$pres,_animationConfig;const isNotPressed=animationConfig.sharedValues.pressed.get()===0;const isPlaying=animationConfig.sharedValues.playing.get()>0;const shouldDoPlayingAnimation=isNotPressed&&isPlaying;const playingAnimationScaleValue=withDelay((_animationConfig$play=animationConfig.playingAnimationDelay)!==null&&_animationConfig$play!==void 0?_animationConfig$play:0,withSpring(interpolate(animationConfig.sharedValues.playing.get(),[0,1],[1,animationConfig.scaleFactors.playing]),SPRING_CONFIG));const pressedAnimationScaleValue=withSpring(interpolate(animationConfig.sharedValues.pressed.get(),[0,1],[1,animationConfig.scaleFactors.pressed]),SPRING_CONFIG);const rotationScaleValue=interpolate(animationConfig.sharedValues.pressed.get(),[0,1],[0,(_animationConfig$pres=(_animationConfig=animationConfig)===null||_animationConfig===void 0?void 0:_animationConfig.pressedRotationDegrees)!==null&&_animationConfig$pres!==void 0?_animationConfig$pres:0]);return{transform:[{scale:shouldDoPlayingAnimation?playingAnimationScaleValue:pressedAnimationScaleValue},{rotate:rotationScaleValue+\"deg\"}]};}" };
2026-08-24 06:08:38 +00:00
const importDefaultResult1 = importDefaultResult;
2026-07-23 10:11:24 +00:00
let result = set.fileFinishedImporting("modules/soundboard/native/SoundButton.tsx");
export const SoundButton = importAllResult.memo(function SoundButtonComponent(sound) {
2026-07-20 16:05:17 +00:00
sound = sound.sound;
2026-07-29 08:29:29 +00:00
let obj = sound;
2026-07-20 16:05:17 +00:00
const channel = sound.channel;
2026-07-29 08:29:29 +00:00
let sharedValue = channel;
2026-08-27 16:17:25 +00:00
const soundGridLocation = sound.soundGridLocation;
let sharedValue1 = soundGridLocation;
2026-07-20 16:05:17 +00:00
let flag = sound.isSectionLocked;
if (flag === undefined) {
flag = false;
}
2026-07-23 10:11:24 +00:00
let playSoundboardSound;
let analyticsLocations;
2026-08-27 16:17:25 +00:00
let isLocked;
let onLockedPress;
obj = obj(sharedValue1[12]);
2026-07-29 08:29:29 +00:00
let tmp3 = null != sound.emojiId;
if (!tmp3) {
tmp3 = null != sound.emojiName;
2026-07-20 16:05:17 +00:00
}
2026-08-27 16:17:25 +00:00
const tmp4 = callback();
const tmp5 = sharedValue(sharedValue1[13])(sound, channel.id);
playSoundboardSound = tmp5.playSoundboardSound;
const isPlayingSound = tmp5.isPlayingSound;
analyticsLocations = sharedValue(sharedValue1[14])(sharedValue(tmp2[15]).SOUNDBOARD_BUTTON).analyticsLocations;
let tmpResult = tmp(tmp2[16]);
const soundboardSoundLock = tmpResult.useSoundboardSoundLock(sound, channel);
isLocked = soundboardSoundLock.isLocked;
onLockedPress = soundboardSoundLock.onLockedPress;
let items = [analyticsLocations, onLockedPress, channel, soundGridLocation, playSoundboardSound, isLocked];
2026-07-29 08:29:29 +00:00
obj = isPlayingSound;
sharedValue = undefined;
sharedValue1 = undefined;
2026-08-27 16:17:25 +00:00
callback = playSoundboardSound.useCallback(() => {
if (isLocked) {
onLockedPress(() => {
obj = closure_1_0(closure_1_2[17]);
obj = { channel: closure_1, analyticsSource: closure_1_1(closure_1_2[15]).PREMIUM_UPSELL, initialScrollLocation: closure_2 };
const result = obj.openSoundboardSoundPickerActionSheet(obj);
});
2026-07-20 16:05:17 +00:00
} else {
playSoundboardSound(analyticsLocations);
}
2026-08-27 16:17:25 +00:00
}, items);
tmpResult = tmp(tmp2[4]);
sharedValue = tmpResult.useSharedValue(0);
const tmp6 = sharedValue(sharedValue1[14]);
sharedValue1 = obj(sharedValue1[4]).useSharedValue(0);
let items1 = [sharedValue];
2026-07-29 08:29:29 +00:00
let items2 = [sharedValue];
2026-07-23 10:11:24 +00:00
const callback1 = playSoundboardSound.useCallback(() => {
2026-07-29 08:29:29 +00:00
const result = sharedValue.set(1);
2026-08-27 16:17:25 +00:00
}, items1);
let items3 = [isPlayingSound, sharedValue1, sharedValue];
const callback2 = playSoundboardSound.useCallback(() => {
2026-07-29 08:29:29 +00:00
const result = sharedValue.set(0);
2026-08-27 16:17:25 +00:00
}, items2);
2026-07-29 08:29:29 +00:00
const effect = playSoundboardSound.useEffect(() => {
let num = 0;
if (obj) {
num = 1;
}
const result = sharedValue1.set(num);
2026-08-27 16:17:25 +00:00
}, items3);
2026-07-29 08:29:29 +00:00
obj = { pressed: sharedValue, playing: sharedValue1 };
obj = { sharedValues: obj, scaleFactors: { pressed: 0.95, playing: 1.05 } };
2026-08-27 16:17:25 +00:00
const tmpResult1 = obj(sharedValue1[4]);
const fn = function o() {
2026-07-29 08:29:29 +00:00
const pressed = obj.sharedValues.pressed;
const playing = obj.sharedValues.playing;
let value = pressed.get();
2026-08-27 16:17:25 +00:00
obj = obj(sharedValue1[4]);
2026-07-29 08:29:29 +00:00
let num = obj.playingAnimationDelay;
if (num == null) {
num = 0;
}
2026-08-27 16:17:25 +00:00
let tmp4Result = tmp4(tmp5[9]);
tmp4Result = tmp4(tmp5[4]);
2026-07-29 08:29:29 +00:00
const playing2 = tmp.sharedValues.playing;
const items = [1, obj.scaleFactors.playing];
const tmp3 = playing.get() > 0;
2026-08-27 16:17:25 +00:00
const withDelayResult = obj.withDelay(num, tmp4Result.withSpring(tmp4Result.interpolate(playing2.get(), [0, 1], items), closure_1_8));
const tmp4Result1 = obj(sharedValue1[9]);
2026-07-29 08:29:29 +00:00
const pressed2 = tmp.sharedValues.pressed;
const items1 = [1, obj.scaleFactors.pressed];
2026-08-27 16:17:25 +00:00
const withSpringResult = tmp4Result1.withSpring(obj(sharedValue1[4]).interpolate(pressed2.get(), [0, 1], items1), closure_1_8);
2026-07-29 08:29:29 +00:00
let tmp8 = withSpringResult;
if (0 === value) {
tmp8 = withSpringResult;
if (tmp3) {
tmp8 = withDelayResult;
}
}
const items2 = [{ scale: tmp8 }, ];
2026-08-27 16:17:25 +00:00
const tmp4Result2 = obj(sharedValue1[4]);
2026-07-29 08:29:29 +00:00
const pressed3 = tmp.sharedValues.pressed;
let num2 = tmp.pressedRotationDegrees;
value = pressed3.get();
if (num2 == null) {
num2 = 0;
}
obj = { transform: null };
2026-08-27 16:17:25 +00:00
obj = { rotate: "" + obj(sharedValue1[4]).interpolate(value, [0, 1], items3) + "deg" };
2026-07-29 08:29:29 +00:00
items3 = [0, num2];
items2[1] = obj;
obj[0] = items2;
return obj;
};
2026-08-27 16:17:25 +00:00
const tmpResult2 = obj(sharedValue1[4]);
fn.__closure = { animationConfig: obj, withDelay: obj(sharedValue1[4]).withDelay, withSpring: obj(sharedValue1[9]).withSpring, interpolate: obj(sharedValue1[4]).interpolate, SPRING_CONFIG: closure_8 };
2026-07-29 08:29:29 +00:00
fn.__workletHash = 13932429225740;
2026-08-27 16:17:25 +00:00
fn.__initData = closure_11;
2026-07-29 08:29:29 +00:00
let pressed = obj.pressed;
2026-08-27 16:17:25 +00:00
const animatedStyle = tmpResult2.useAnimatedStyle(fn);
2026-08-28 06:19:39 +00:00
const items4 = [channel, sound, soundGridLocation, analyticsLocations];
2026-08-27 16:17:25 +00:00
obj1 = { animationConfig: obj, withDelay: obj(sharedValue1[4]).withDelay, withSpring: obj(sharedValue1[9]).withSpring, interpolate: obj(sharedValue1[4]).interpolate, SPRING_CONFIG: closure_8 };
const items5 = [tmp4.button, { width: obj.useSoundButtonStyleConfig().buttonWidth }, , , , , ];
2026-07-29 08:29:29 +00:00
let buttonPressed = null;
const callback3 = playSoundboardSound.useCallback(() => {
2026-08-28 06:19:39 +00:00
sharedValue(sharedValue1[18])(sharedValue, obj, analyticsLocations[analyticsLocations.length - 1], sharedValue1);
2026-08-27 16:17:25 +00:00
}, items4);
if (tmp15) {
2026-07-29 08:29:29 +00:00
buttonPressed = tmp4.buttonPressed;
2026-07-20 16:05:17 +00:00
}
2026-08-27 16:17:25 +00:00
items5[2] = buttonPressed;
items5[3] = animatedStyle;
2026-07-20 16:05:17 +00:00
let buttonPlaying = null;
if (isPlayingSound) {
2026-07-29 08:29:29 +00:00
buttonPlaying = tmp4.buttonPlaying;
2026-07-20 16:05:17 +00:00
}
2026-08-27 16:17:25 +00:00
items5[4] = buttonPlaying;
2026-07-20 16:05:17 +00:00
let buttonDisabled = null;
2026-08-27 16:17:25 +00:00
if (isLocked) {
2026-07-20 16:05:17 +00:00
buttonDisabled = null;
if (!flag) {
2026-07-29 08:29:29 +00:00
buttonDisabled = tmp4.buttonDisabled;
2026-07-20 16:05:17 +00:00
}
}
2026-08-27 16:17:25 +00:00
const obj2 = { style: items5, accessibilityRole: "button", accessibilityLabel: sound.name, accessibilityHint: soundboardSoundLock.lockedAccessibilityHint, onPressIn: callback1, onPressOut: callback2, onPress: callback, onLongPress: callback3, children: null };
items5[5] = buttonDisabled;
items5[6] = sound.style;
let tmp23 = isPlayingSound;
2026-08-04 08:36:32 +00:00
if (isPlayingSound) {
const obj3 = { style: null };
obj3[0] = tmp4.playingBackground;
2026-08-27 16:17:25 +00:00
tmp23 = isLocked(tmp18, obj3);
2026-08-04 08:36:32 +00:00
}
2026-08-27 16:17:25 +00:00
const items6 = [tmp23, , ];
2026-07-29 08:29:29 +00:00
if (tmp3) {
2026-08-04 08:36:32 +00:00
const obj4 = { sharedValues: null, sound: null };
obj4[0] = obj;
obj4[1] = sound;
2026-08-27 16:17:25 +00:00
tmp3 = isLocked(SoundButtonEmoji, obj4);
2026-07-20 16:05:17 +00:00
}
2026-08-27 16:17:25 +00:00
items6[1] = tmp3;
const items7 = [tmp4.text, ];
2026-07-20 16:05:17 +00:00
let textPlaying = null;
if (isPlayingSound) {
2026-07-29 08:29:29 +00:00
textPlaying = tmp4.textPlaying;
2026-07-20 16:05:17 +00:00
}
2026-08-27 16:17:25 +00:00
items7[1] = textPlaying;
items6[2] = isLocked(obj(sharedValue1[19]).Text, { lineClamp: 1, style: items7, variant: "text-sm/semibold", children: sound.name });
obj2[8] = items6;
const children = [onLockedPress(closure_10, obj2), ];
if (isLocked) {
isLocked = !flag;
2026-07-20 16:05:17 +00:00
}
2026-08-27 16:17:25 +00:00
if (isLocked) {
2026-08-04 08:36:32 +00:00
const obj6 = { style: null };
obj6[0] = tmp4.lock;
2026-08-27 16:17:25 +00:00
isLocked = tmp27(tmp(tmp2[20]).LockIcon, obj6);
2026-07-20 16:05:17 +00:00
}
2026-08-27 16:17:25 +00:00
children[1] = isLocked;
return onLockedPress(analyticsLocations, { children });
2026-07-20 16:05:17 +00:00
});