Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
771 lines
36 KiB
TypeScript
771 lines
36 KiB
TypeScript
// Module ID: 17526
|
|
// Function ID: 17527
|
|
// Name: SoundButton
|
|
// Dependencies: [19, 17, 17519, 21, 4529, 4790, 580, 1368, 5373, 558, 568, 5219, 12100, 7409, 17527, 17528, 7441, 7461, 17530, 17516, 17532, 4786, 5347, 2]
|
|
|
|
// Module 17526 (SoundButton)
|
|
import c from "c" /* 568 */;
|
|
import nativeDefault from "native" /* 580 */;
|
|
import ReanimatedRexport2 from "ReanimatedRexport" /* 4529 */;
|
|
import spring from "spring" /* 5219 */;
|
|
import EmojiDefault from "Emoji" /* 7409 */;
|
|
import getSoundboardEmojiUrlDefault from "getSoundboardEmojiUrl" /* 12100 */;
|
|
import openSoundboardSoundPreviewActionSheetDefault from "openSoundboardSoundPreviewActionSheet" /* 17532 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const ReanimatedRexport_mod = ReanimatedRexport2;
|
|
|
|
require = fn;
|
|
const View = fn(17).View;
|
|
const jsxProd = fn(21);
|
|
({ jsx: hasOwnProperty, jsxs: metroRequire } = jsxProd);
|
|
let ReanimatedRexport = ReanimatedRexport_mod;
|
|
let closure_7 = ReanimatedRexport.createAnimatedComponent(View);
|
|
const SPRING_CONFIG = { damping: 10, stiffness: 300, mass: 1 };
|
|
const createStyles = fn(4790);
|
|
let obj = { button: null, buttonPressed: null, buttonDisabled: null, buttonPlaying: null, playingBackground: null, emoji: null, emojiWrapper: null, text: null, textPlaying: null, lock: null };
|
|
const merged = Object.assign(nativeDefault.shadows.SHADOW_LOW);
|
|
obj.button = { marginTop: 4, height: fn(17519).SOUND_BUTTON_HEIGHT, backgroundColor: nativeDefault.colors.CARD_BACKGROUND_DEFAULT, display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", borderRadius: nativeDefault.radii.lg, borderWidth: 1, borderColor: nativeDefault.colors.BORDER_MUTED };
|
|
let obj2 = { marginTop: 4, height: fn(17519).SOUND_BUTTON_HEIGHT, backgroundColor: nativeDefault.colors.CARD_BACKGROUND_DEFAULT, display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", borderRadius: nativeDefault.radii.lg, borderWidth: 1, borderColor: nativeDefault.colors.BORDER_MUTED };
|
|
obj.buttonPressed = { backgroundColor: nativeDefault.colors.CARD_PRIMARY_PRESSED_BG };
|
|
obj.buttonDisabled = { opacity: 0.5 };
|
|
let obj4 = { backgroundColor: nativeDefault.colors.CARD_PRIMARY_PRESSED_BG };
|
|
obj.buttonPlaying = { borderStyle: "solid", borderWidth: 2, borderColor: nativeDefault.colors.STATUS_SPEAKING };
|
|
const rect = { position: "absolute", top: 0, bottom: 0, start: 0, end: 0, backgroundColor: nativeDefault.colors.CARD_SECONDARY_BG, borderRadius: nativeDefault.radii.lg - 2 };
|
|
obj.playingBackground = rect;
|
|
const PlatformUtils = fn(1368);
|
|
let num;
|
|
if (PlatformUtils.isIOS()) {
|
|
num = 24;
|
|
}
|
|
obj.emoji = { height: 24, width: 24, fontSize: num, lineHeight: 28 };
|
|
let size = { display: "flex", alignItems: "center", justifyContent: "center", height: 40, width: 40, backgroundColor: nativeDefault.colors.BACKGROUND_MOD_MUTED, backgroundSize: 32, borderRadius: nativeDefault.radii.round, marginBottom: 8 };
|
|
obj.emojiWrapper = size;
|
|
obj.text = { marginHorizontal: 8 };
|
|
obj.textPlaying = { marginHorizontal: 6 };
|
|
const size1 = { position: "absolute", top: nativeDefault.space.PX_12, end: nativeDefault.space.PX_12, width: 12, height: 12, tintColor: nativeDefault.colors.WHITE };
|
|
obj.lock = size1;
|
|
let closure_9 = createStyles.createStyles(obj);
|
|
let ReanimatedRexport = ReanimatedRexport_mod;
|
|
let closure_10 = ReanimatedRexport.createAnimatedComponent(fn(5373).PressableOpacity);
|
|
let ReactCompilerGating = fn(558);
|
|
let closure_11 = ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => {
|
|
closure_0 = arg0;
|
|
const cResult = c.c(20);
|
|
const sharedValue = ReanimatedRexport2.useSharedValue(0);
|
|
const sharedValue1 = ReanimatedRexport2.useSharedValue(0);
|
|
if (cResult[0] !== sharedValue) {
|
|
const fn = function o() {
|
|
const result = sharedValue.set(1);
|
|
};
|
|
cResult[0] = sharedValue;
|
|
cResult[1] = fn;
|
|
let tmp4 = fn;
|
|
} else {
|
|
tmp4 = cResult[1];
|
|
}
|
|
if (cResult[2] !== sharedValue) {
|
|
const fn2 = function c() {
|
|
const result = sharedValue.set(0);
|
|
};
|
|
cResult[2] = sharedValue;
|
|
cResult[3] = fn2;
|
|
let tmp5 = fn2;
|
|
} else {
|
|
tmp5 = cResult[3];
|
|
}
|
|
if (cResult[4] === arg0) {
|
|
if (cResult[5] === sharedValue1) {
|
|
let tmp6 = cResult[6];
|
|
}
|
|
if (cResult[7] === arg0) {
|
|
if (cResult[8] === sharedValue1) {
|
|
if (cResult[9] === sharedValue) {
|
|
let tmp7 = cResult[10];
|
|
}
|
|
const effect = noop.useEffect(tmp6, tmp7);
|
|
if (cResult[11] === tmp4) {
|
|
if (cResult[12] === tmp5) {
|
|
let tmp10 = cResult[13];
|
|
}
|
|
if (cResult[14] === sharedValue1) {
|
|
if (cResult[15] === sharedValue) {
|
|
let tmp11 = cResult[16];
|
|
}
|
|
if (cResult[17] === tmp10) {
|
|
if (cResult[18] === tmp11) {
|
|
let tmp12 = cResult[19];
|
|
}
|
|
return tmp12;
|
|
}
|
|
const obj4 = { handlers: tmp10, sharedValues: tmp11 };
|
|
cResult[17] = tmp10;
|
|
cResult[18] = tmp11;
|
|
cResult[19] = obj4;
|
|
tmp12 = obj4;
|
|
}
|
|
const obj5 = { pressed: sharedValue, playing: sharedValue1 };
|
|
cResult[14] = sharedValue1;
|
|
cResult[15] = sharedValue;
|
|
cResult[16] = obj5;
|
|
tmp11 = obj5;
|
|
}
|
|
const obj6 = { pressIn: tmp4, pressOut: tmp5 };
|
|
cResult[11] = tmp4;
|
|
cResult[12] = tmp5;
|
|
cResult[13] = obj6;
|
|
tmp10 = obj6;
|
|
}
|
|
}
|
|
const items = [arg0, sharedValue1, sharedValue];
|
|
cResult[7] = arg0;
|
|
cResult[8] = sharedValue1;
|
|
cResult[9] = sharedValue;
|
|
cResult[10] = items;
|
|
tmp7 = items;
|
|
}
|
|
const fn3 = function h() {
|
|
let num = 0;
|
|
if (closure_0) {
|
|
num = 1;
|
|
}
|
|
const result = sharedValue1.set(num);
|
|
};
|
|
cResult[4] = arg0;
|
|
cResult[5] = sharedValue1;
|
|
cResult[6] = fn3;
|
|
tmp6 = fn3;
|
|
}) : ((arg0) => {
|
|
closure_0 = arg0;
|
|
const sharedValue = ReanimatedRexport2.useSharedValue(0);
|
|
const sharedValue1 = ReanimatedRexport2.useSharedValue(0);
|
|
const items = [sharedValue];
|
|
const items1 = [sharedValue];
|
|
const callback = noop.useCallback(() => {
|
|
const result = sharedValue.set(1);
|
|
}, items);
|
|
const items2 = [arg0, sharedValue1, sharedValue];
|
|
const callback1 = noop.useCallback(() => {
|
|
const result = sharedValue.set(0);
|
|
}, items1);
|
|
const effect = noop.useEffect(() => {
|
|
let num = 0;
|
|
if (closure_0) {
|
|
num = 1;
|
|
}
|
|
const result = sharedValue1.set(num);
|
|
}, items2);
|
|
return { handlers: { pressIn: callback, pressOut: callback1 }, sharedValues: { pressed: sharedValue, playing: sharedValue1 } };
|
|
});
|
|
const __initData = { 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\"}]};}" };
|
|
const __initData2 = { code: "function SoundButtonTsx2(){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\"}]};}" };
|
|
ReactCompilerGating = fn(558);
|
|
let closure_14 = ReactCompilerGating.isReactCompilerEnabled() ? ((animationConfig) => {
|
|
_require = animationConfig;
|
|
const fn = function t() {
|
|
const pressed = animationConfig.sharedValues.pressed;
|
|
const playing = animationConfig.sharedValues.playing;
|
|
value = pressed.get();
|
|
const tmp3 = playing.get() > 0;
|
|
let num = animationConfig.playingAnimationDelay;
|
|
if (num == null) {
|
|
num = 0;
|
|
}
|
|
const obj = ReanimatedRexport2;
|
|
const tmp4Result = spring;
|
|
const playing2 = tmp.sharedValues.playing;
|
|
const items = [1, animationConfig.scaleFactors.playing];
|
|
const tmp4Result5 = ReanimatedRexport2;
|
|
const withDelayResult = obj.withDelay(num, tmp4Result.withSpring(ReanimatedRexport2.interpolate(playing2.get(), [0, 1], items), closure_8));
|
|
const tmp4Result6 = spring;
|
|
const pressed2 = tmp.sharedValues.pressed;
|
|
const items1 = [1, animationConfig.scaleFactors.pressed];
|
|
const withSpringResult = tmp4Result6.withSpring(ReanimatedRexport2.interpolate(pressed2.get(), [0, 1], items1), closure_8);
|
|
let tmp8 = withSpringResult;
|
|
if (0 === value) {
|
|
tmp8 = withSpringResult;
|
|
if (tmp3) {
|
|
tmp8 = withDelayResult;
|
|
}
|
|
}
|
|
const items2 = [{ scale: tmp8 }, ];
|
|
const tmp4Result7 = ReanimatedRexport2;
|
|
const pressed3 = tmp.sharedValues.pressed;
|
|
let num2;
|
|
value2 = pressed3.get();
|
|
if (animationConfig != null) {
|
|
num2 = tmp.pressedRotationDegrees;
|
|
}
|
|
if (num2 == null) {
|
|
num2 = 0;
|
|
}
|
|
const obj2 = { transform: null };
|
|
const obj3 = { rotate: null };
|
|
const items3 = [0, num2];
|
|
obj3.rotate = "" + ReanimatedRexport2.interpolate(value2, [0, 1], items3) + "deg";
|
|
items2[1] = obj3;
|
|
obj2.transform = items2;
|
|
return obj2;
|
|
};
|
|
let obj = require("ReanimatedRexport");
|
|
fn.__closure = { animationConfig, withDelay: require("ReanimatedRexport").withDelay, withSpring: require("spring").withSpring, interpolate: require("ReanimatedRexport").interpolate, SPRING_CONFIG };
|
|
fn.__workletHash = 13932429225740;
|
|
fn.__initData = __initData;
|
|
return obj.useAnimatedStyle(fn);
|
|
}) : ((animationConfig) => {
|
|
_require = animationConfig;
|
|
const fn = function t() {
|
|
const pressed = animationConfig.sharedValues.pressed;
|
|
const playing = animationConfig.sharedValues.playing;
|
|
value = pressed.get();
|
|
const tmp3 = playing.get() > 0;
|
|
let num = animationConfig.playingAnimationDelay;
|
|
if (num == null) {
|
|
num = 0;
|
|
}
|
|
const obj = ReanimatedRexport2;
|
|
const tmp4Result = spring;
|
|
const playing2 = tmp.sharedValues.playing;
|
|
const items = [1, animationConfig.scaleFactors.playing];
|
|
const tmp4Result5 = ReanimatedRexport2;
|
|
const withDelayResult = obj.withDelay(num, tmp4Result.withSpring(ReanimatedRexport2.interpolate(playing2.get(), [0, 1], items), closure_8));
|
|
const tmp4Result6 = spring;
|
|
const pressed2 = tmp.sharedValues.pressed;
|
|
const items1 = [1, animationConfig.scaleFactors.pressed];
|
|
const withSpringResult = tmp4Result6.withSpring(ReanimatedRexport2.interpolate(pressed2.get(), [0, 1], items1), closure_8);
|
|
let tmp8 = withSpringResult;
|
|
if (0 === value) {
|
|
tmp8 = withSpringResult;
|
|
if (tmp3) {
|
|
tmp8 = withDelayResult;
|
|
}
|
|
}
|
|
const items2 = [{ scale: tmp8 }, ];
|
|
const tmp4Result7 = ReanimatedRexport2;
|
|
const pressed3 = tmp.sharedValues.pressed;
|
|
let num2;
|
|
value2 = pressed3.get();
|
|
if (animationConfig != null) {
|
|
num2 = tmp.pressedRotationDegrees;
|
|
}
|
|
if (num2 == null) {
|
|
num2 = 0;
|
|
}
|
|
const obj2 = { transform: null };
|
|
const obj3 = { rotate: null };
|
|
const items3 = [0, num2];
|
|
obj3.rotate = "" + ReanimatedRexport2.interpolate(value2, [0, 1], items3) + "deg";
|
|
items2[1] = obj3;
|
|
obj2.transform = items2;
|
|
return obj2;
|
|
};
|
|
let obj = require("ReanimatedRexport");
|
|
fn.__closure = { animationConfig, withDelay: require("ReanimatedRexport").withDelay, withSpring: require("spring").withSpring, interpolate: require("ReanimatedRexport").interpolate, SPRING_CONFIG };
|
|
fn.__workletHash = 15726002162159;
|
|
fn.__initData = __initData2;
|
|
return obj.useAnimatedStyle(fn);
|
|
});
|
|
ReactCompilerGating = fn(558);
|
|
let closure_15 = ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => {
|
|
const cResult = c.c(21);
|
|
({ sound, sharedValues } = arg0);
|
|
const tmp3 = closure_9();
|
|
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
const obj2 = { pressed: 0.8, playing: 1.2 };
|
|
cResult[0] = obj2;
|
|
let first = obj2;
|
|
} else {
|
|
first = cResult[0];
|
|
}
|
|
if (cResult[1] !== sharedValues) {
|
|
const obj3 = { sharedValues, scaleFactors: first };
|
|
cResult[1] = sharedValues;
|
|
cResult[2] = obj3;
|
|
let tmp5 = obj3;
|
|
} else {
|
|
tmp5 = cResult[2];
|
|
}
|
|
const tmp7 = closure_14(tmp5);
|
|
if (cResult[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
const obj4 = { pressed: 0.7200000000000001, playing: 1.08 };
|
|
cResult[3] = obj4;
|
|
let tmp8 = obj4;
|
|
} else {
|
|
tmp8 = cResult[3];
|
|
}
|
|
if (cResult[4] !== sharedValues) {
|
|
const obj5 = { sharedValues, scaleFactors: tmp8, playingAnimationDelay: 100, pressedRotationDegrees: -15 };
|
|
cResult[4] = sharedValues;
|
|
cResult[5] = obj5;
|
|
let tmp9 = obj5;
|
|
} else {
|
|
tmp9 = cResult[5];
|
|
}
|
|
const tmp6Result = closure_14(tmp9);
|
|
if (cResult[6] === tmp7) {
|
|
if (cResult[7] === tmp3.emojiWrapper) {
|
|
let tmp11 = cResult[8];
|
|
}
|
|
({ emoji, emoji: emoji2 } = tmp3);
|
|
if (cResult[9] !== sound) {
|
|
const tmp14 = getSoundboardEmojiUrlDefault(sound, 24);
|
|
cResult[9] = sound;
|
|
cResult[10] = tmp14;
|
|
let tmp12 = tmp14;
|
|
} else {
|
|
tmp12 = cResult[10];
|
|
}
|
|
let str = sound.emojiName;
|
|
if (str == null) {
|
|
str = "";
|
|
}
|
|
if (cResult[11] === tmp3.emoji) {
|
|
if (cResult[12] === tmp12) {
|
|
if (cResult[13] === str) {
|
|
let tmp16 = cResult[14];
|
|
}
|
|
if (cResult[15] === tmp6Result) {
|
|
if (cResult[16] === tmp16) {
|
|
let tmp20 = cResult[17];
|
|
}
|
|
if (cResult[18] === tmp20) {
|
|
if (cResult[19] === tmp11) {
|
|
let tmp24 = cResult[20];
|
|
}
|
|
return tmp24;
|
|
}
|
|
const obj6 = { style: tmp11, children: tmp20 };
|
|
const tmp27 = hasOwnProperty(closure_7, obj6);
|
|
cResult[18] = tmp20;
|
|
cResult[19] = tmp11;
|
|
cResult[20] = tmp27;
|
|
tmp24 = tmp27;
|
|
}
|
|
const obj7 = { style: tmp6Result, children: tmp16 };
|
|
const tmp23 = hasOwnProperty(closure_7, obj7);
|
|
cResult[15] = tmp6Result;
|
|
cResult[16] = tmp16;
|
|
cResult[17] = tmp23;
|
|
tmp20 = tmp23;
|
|
}
|
|
}
|
|
const obj8 = { fastImageStyle: emoji, textEmojiStyle: emoji2, src: tmp12, name: str };
|
|
const tmp19 = hasOwnProperty(EmojiDefault, obj8);
|
|
cResult[11] = tmp3.emoji;
|
|
cResult[12] = tmp12;
|
|
cResult[13] = str;
|
|
cResult[14] = tmp19;
|
|
tmp16 = tmp19;
|
|
}
|
|
const items = [tmp3.emojiWrapper, tmp7];
|
|
cResult[6] = tmp7;
|
|
cResult[7] = tmp3.emojiWrapper;
|
|
cResult[8] = items;
|
|
tmp11 = items;
|
|
}) : ((arg0) => {
|
|
({ sound, sharedValues } = arg0);
|
|
const tmp = closure_9();
|
|
const obj = { style: null, children: null };
|
|
const items = [tmp.emojiWrapper, closure_14({ sharedValues, scaleFactors: { pressed: 0.8, playing: 1.2 } })];
|
|
obj.style = items;
|
|
const obj2 = { style: closure_14({ sharedValues, scaleFactors: { pressed: 0.7200000000000001, playing: 1.08 }, playingAnimationDelay: 100, pressedRotationDegrees: -15 }), children: null };
|
|
const obj3 = { fastImageStyle: tmp.emoji, textEmojiStyle: tmp.emoji, src: null, name: null };
|
|
const tmp2 = closure_14({ sharedValues, scaleFactors: { pressed: 0.8, playing: 1.2 } });
|
|
obj3.src = getSoundboardEmojiUrlDefault(sound, 24);
|
|
let str = sound.emojiName;
|
|
if (str == null) {
|
|
str = "";
|
|
}
|
|
obj3.name = str;
|
|
obj2.children = hasOwnProperty(EmojiDefault, obj3);
|
|
obj.children = hasOwnProperty(closure_7, obj2);
|
|
return hasOwnProperty(closure_7, obj);
|
|
});
|
|
ReactCompilerGating = fn(558);
|
|
let obj5 = { borderStyle: "solid", borderWidth: 2, borderColor: nativeDefault.colors.STATUS_SPEAKING };
|
|
size = fn(2);
|
|
let result = size.fileFinishedImporting("modules/soundboard/native/SoundButton.tsx");
|
|
|
|
export const SoundButton = noop.memo(ReactCompilerGating.isReactCompilerEnabled() ? ((sound) => {
|
|
const cResult = sound(soundGridLocation[10]).c(56);
|
|
sound = sound.sound;
|
|
const channel = sound.channel;
|
|
soundGridLocation = sound.soundGridLocation;
|
|
({ style, isSectionLocked } = sound);
|
|
let obj = sound(soundGridLocation[10]);
|
|
const buttonWidth = sound(soundGridLocation[14]).useSoundButtonStyleConfig().buttonWidth;
|
|
const tmp6 = closure_9();
|
|
const tmp7 = channel(soundGridLocation[15])(sound, channel.id);
|
|
const playSoundboardSound = tmp7.playSoundboardSound;
|
|
const isPlayingSound = tmp7.isPlayingSound;
|
|
const tmpResult = sound(soundGridLocation[14]);
|
|
const analyticsLocations = channel(soundGridLocation[16])(channel(tmp2[17]).SOUNDBOARD_BUTTON).analyticsLocations;
|
|
const tmp8 = channel(soundGridLocation[16]);
|
|
const soundboardSoundLock = sound(soundGridLocation[18]).useSoundboardSoundLock(sound, channel);
|
|
const isLocked = soundboardSoundLock.isLocked;
|
|
({ lockedAccessibilityHint, onLockedPress } = soundboardSoundLock);
|
|
if (cResult[0] === analyticsLocations) {
|
|
if (cResult[1] === channel) {
|
|
if (cResult[2] === onLockedPress) {
|
|
if (cResult[3] === playSoundboardSound) {
|
|
if (cResult[4] === isLocked) {
|
|
if (cResult[5] === soundGridLocation) {
|
|
let tmp10 = cResult[6];
|
|
}
|
|
const tmp12 = closure_11(isPlayingSound);
|
|
const _Symbol = Symbol;
|
|
if (cResult[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
const obj2 = { pressed: 0.95, playing: 1.05 };
|
|
cResult[7] = obj2;
|
|
let tmp14 = obj2;
|
|
} else {
|
|
tmp14 = cResult[7];
|
|
}
|
|
if (cResult[8] !== tmp12.sharedValues) {
|
|
const obj3 = { sharedValues: tmp12.sharedValues, scaleFactors: tmp14 };
|
|
cResult[8] = tmp12.sharedValues;
|
|
cResult[9] = obj3;
|
|
let tmp15 = obj3;
|
|
} else {
|
|
tmp15 = cResult[9];
|
|
}
|
|
const tmp17 = closure_14(tmp15);
|
|
const pressed = tmp12.sharedValues.pressed;
|
|
if (cResult[10] === analyticsLocations) {
|
|
if (cResult[11] === channel) {
|
|
if (cResult[12] === sound) {
|
|
if (cResult[13] === soundGridLocation) {
|
|
let tmp19 = cResult[14];
|
|
}
|
|
if (cResult[15] !== buttonWidth) {
|
|
const obj4 = { width: buttonWidth };
|
|
cResult[15] = buttonWidth;
|
|
cResult[16] = obj4;
|
|
let tmp20 = obj4;
|
|
} else {
|
|
tmp20 = cResult[16];
|
|
}
|
|
let buttonPressed = null;
|
|
if (tmp18) {
|
|
buttonPressed = tmp6.buttonPressed;
|
|
}
|
|
let buttonPlaying = null;
|
|
if (isPlayingSound) {
|
|
buttonPlaying = tmp6.buttonPlaying;
|
|
}
|
|
let buttonDisabled = null;
|
|
if (isLocked) {
|
|
buttonDisabled = null;
|
|
if (!tmp4) {
|
|
buttonDisabled = tmp6.buttonDisabled;
|
|
}
|
|
}
|
|
if (cResult[17] === tmp17) {
|
|
if (cResult[18] === style) {
|
|
if (cResult[19] === tmp6.button) {
|
|
if (cResult[20] === tmp20) {
|
|
if (cResult[21] === buttonPressed) {
|
|
if (cResult[22] === buttonPlaying) {
|
|
if (cResult[23] === buttonDisabled) {
|
|
let tmp24 = cResult[24];
|
|
}
|
|
if (cResult[25] === isPlayingSound) {
|
|
if (cResult[26] === tmp6.playingBackground) {
|
|
let tmp25 = cResult[27];
|
|
}
|
|
if (cResult[28] === tmp12.sharedValues) {
|
|
if (cResult[29] === tmp5) {
|
|
if (cResult[30] === sound) {
|
|
let tmp29 = cResult[31];
|
|
}
|
|
let textPlaying = null;
|
|
if (isPlayingSound) {
|
|
textPlaying = tmp6.textPlaying;
|
|
}
|
|
if (cResult[32] === tmp6.text) {
|
|
if (cResult[33] === textPlaying) {
|
|
let tmp34 = cResult[34];
|
|
}
|
|
if (cResult[35] === sound.name) {
|
|
if (cResult[36] === tmp34) {
|
|
let tmp35 = cResult[37];
|
|
}
|
|
if (cResult[38] === tmp12.handlers.pressIn) {
|
|
if (cResult[39] === tmp12.handlers.pressOut) {
|
|
if (cResult[40] === tmp10) {
|
|
if (cResult[41] === lockedAccessibilityHint) {
|
|
if (cResult[42] === tmp19) {
|
|
if (cResult[43] === sound.name) {
|
|
if (cResult[44] === tmp24) {
|
|
if (cResult[45] === tmp25) {
|
|
if (cResult[46] === tmp29) {
|
|
if (cResult[47] === tmp35) {
|
|
let tmp38 = cResult[48];
|
|
}
|
|
if (cResult[49] === tmp4) {
|
|
if (cResult[50] === isLocked) {
|
|
if (cResult[51] === tmp6.lock) {
|
|
let tmp42 = cResult[52];
|
|
}
|
|
if (cResult[53] === tmp38) {
|
|
if (cResult[54] === tmp42) {
|
|
let tmp45 = cResult[55];
|
|
}
|
|
return tmp45;
|
|
}
|
|
const obj5 = { children: null };
|
|
const items = [tmp38, tmp42];
|
|
obj5.children = items;
|
|
const tmp48 = onLockedPress(analyticsLocations, obj5);
|
|
cResult[53] = tmp38;
|
|
cResult[54] = tmp42;
|
|
class E {
|
|
constructor() {
|
|
tmp = closure_1(closure_2[20])(channel, sound, analyticsLocations[analyticsLocations.length - 1], soundGridLocation);
|
|
return;
|
|
}
|
|
}
|
|
cResult[55] = tmp48;
|
|
tmp45 = tmp48;
|
|
}
|
|
}
|
|
let tmp43 = isLocked;
|
|
if (isLocked) {
|
|
tmp43 = !tmp4;
|
|
}
|
|
if (tmp43) {
|
|
const obj6 = { style: tmp6.lock };
|
|
tmp43 = isLocked(tmp(tmp2[22]).LockIcon, obj6);
|
|
}
|
|
cResult[49] = tmp4;
|
|
cResult[50] = isLocked;
|
|
cResult[51] = tmp6.lock;
|
|
cResult[52] = tmp43;
|
|
tmp42 = tmp43;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const obj7 = { style: tmp24, accessibilityRole: "button", accessibilityLabel: sound.name, accessibilityHint: lockedAccessibilityHint, onPressIn: tmp12.handlers.pressIn, onPressOut: tmp12.handlers.pressOut, onPress: tmp10, onLongPress: tmp19, children: null };
|
|
const items1 = [tmp25, , ];
|
|
class E {
|
|
constructor() {
|
|
tmp = closure_1(closure_2[20])(channel, sound, analyticsLocations[analyticsLocations.length - 1], soundGridLocation);
|
|
return;
|
|
}
|
|
}
|
|
items1[2] = tmp35;
|
|
obj7.children = items1;
|
|
const tmp41 = onLockedPress(closure_10, obj7);
|
|
cResult[38] = tmp12.handlers.pressIn;
|
|
cResult[39] = tmp12.handlers.pressOut;
|
|
cResult[40] = tmp10;
|
|
cResult[41] = lockedAccessibilityHint;
|
|
cResult[42] = tmp19;
|
|
cResult[43] = sound.name;
|
|
cResult[44] = tmp24;
|
|
cResult[45] = tmp25;
|
|
cResult[46] = tmp29;
|
|
cResult[47] = tmp35;
|
|
cResult[48] = tmp41;
|
|
tmp38 = tmp41;
|
|
}
|
|
const obj8 = { lineClamp: 1, style: tmp34, variant: "text-sm/semibold", children: sound.name };
|
|
const tmp37 = isLocked(tmp(tmp2[21]).Text, obj8);
|
|
cResult[35] = sound.name;
|
|
cResult[36] = tmp34;
|
|
cResult[37] = tmp37;
|
|
tmp35 = tmp37;
|
|
}
|
|
const items2 = [tmp6.text, textPlaying];
|
|
cResult[32] = tmp6.text;
|
|
cResult[33] = textPlaying;
|
|
cResult[34] = items2;
|
|
tmp34 = items2;
|
|
}
|
|
}
|
|
let tmp30 = tmp5;
|
|
if (tmp5) {
|
|
const obj9 = { sharedValues: tmp12.sharedValues, sound };
|
|
tmp30 = isLocked(closure_15, obj9);
|
|
}
|
|
cResult[28] = tmp12.sharedValues;
|
|
cResult[29] = tmp5;
|
|
cResult[30] = sound;
|
|
cResult[31] = tmp30;
|
|
tmp29 = tmp30;
|
|
}
|
|
let tmp26 = isPlayingSound;
|
|
if (isPlayingSound) {
|
|
const obj10 = { style: tmp6.playingBackground };
|
|
tmp26 = isLocked(analyticsLocations, obj10);
|
|
}
|
|
cResult[25] = isPlayingSound;
|
|
cResult[26] = tmp6.playingBackground;
|
|
cResult[27] = tmp26;
|
|
tmp25 = tmp26;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const items3 = [tmp6.button, tmp20, buttonPressed, tmp17, , , ];
|
|
class E {
|
|
constructor() {
|
|
tmp = closure_1(closure_2[20])(channel, sound, analyticsLocations[analyticsLocations.length - 1], soundGridLocation);
|
|
return;
|
|
}
|
|
}
|
|
items3[5] = buttonDisabled;
|
|
items3[6] = style;
|
|
cResult[17] = tmp17;
|
|
cResult[18] = style;
|
|
cResult[19] = tmp6.button;
|
|
cResult[20] = tmp20;
|
|
cResult[21] = buttonPressed;
|
|
cResult[22] = buttonPlaying;
|
|
cResult[23] = buttonDisabled;
|
|
cResult[24] = items3;
|
|
tmp24 = items3;
|
|
}
|
|
}
|
|
}
|
|
class E {
|
|
constructor() {
|
|
tmp = closure_1(closure_2[20])(channel, sound, analyticsLocations[analyticsLocations.length - 1], soundGridLocation);
|
|
return;
|
|
}
|
|
}
|
|
cResult[10] = analyticsLocations;
|
|
cResult[11] = channel;
|
|
cResult[12] = sound;
|
|
cResult[13] = soundGridLocation;
|
|
cResult[14] = E;
|
|
tmp19 = E;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const fn = function o() {
|
|
if (isLocked) {
|
|
onLockedPress(() => {
|
|
const obj = sound(soundGridLocation[19]);
|
|
const result = obj.openSoundboardSoundPickerActionSheet({ channel, analyticsSource: channel(soundGridLocation[17]).PREMIUM_UPSELL, initialScrollLocation });
|
|
});
|
|
} else {
|
|
playSoundboardSound(analyticsLocations);
|
|
}
|
|
};
|
|
cResult[0] = analyticsLocations;
|
|
cResult[1] = channel;
|
|
cResult[2] = onLockedPress;
|
|
cResult[3] = playSoundboardSound;
|
|
cResult[4] = isLocked;
|
|
cResult[5] = soundGridLocation;
|
|
cResult[6] = fn;
|
|
tmp10 = fn;
|
|
}) : ((sound) => {
|
|
sound = sound.sound;
|
|
const channel = sound.channel;
|
|
const soundGridLocation = sound.soundGridLocation;
|
|
let flag = sound.isSectionLocked;
|
|
if (flag === undefined) {
|
|
flag = false;
|
|
}
|
|
let playSoundboardSound;
|
|
let analyticsLocations;
|
|
let isLocked;
|
|
let onLockedPress;
|
|
let tmp3 = null != sound.emojiId;
|
|
if (!tmp3) {
|
|
tmp3 = null != sound.emojiName;
|
|
}
|
|
const tmp4 = closure_9();
|
|
const tmp5 = channel(soundGridLocation[15])(sound, channel.id);
|
|
playSoundboardSound = tmp5.playSoundboardSound;
|
|
const isPlayingSound = tmp5.isPlayingSound;
|
|
let obj = sound(soundGridLocation[14]);
|
|
analyticsLocations = channel(soundGridLocation[16])(channel(tmp2[17]).SOUNDBOARD_BUTTON).analyticsLocations;
|
|
const tmp6 = channel(soundGridLocation[16]);
|
|
const soundboardSoundLock = sound(soundGridLocation[18]).useSoundboardSoundLock(sound, channel);
|
|
isLocked = soundboardSoundLock.isLocked;
|
|
onLockedPress = soundboardSoundLock.onLockedPress;
|
|
const items = [analyticsLocations, onLockedPress, channel, soundGridLocation, playSoundboardSound, isLocked];
|
|
const callback = playSoundboardSound.useCallback(() => {
|
|
if (isLocked) {
|
|
onLockedPress(() => {
|
|
const obj = sound(soundGridLocation[19]);
|
|
const result = obj.openSoundboardSoundPickerActionSheet({ channel, analyticsSource: channel(soundGridLocation[17]).PREMIUM_UPSELL, initialScrollLocation });
|
|
});
|
|
} else {
|
|
playSoundboardSound(analyticsLocations);
|
|
}
|
|
}, items);
|
|
const tmp9 = closure_11(isPlayingSound);
|
|
const pressed = tmp9.sharedValues.pressed;
|
|
const obj2 = { sharedValues: tmp9.sharedValues, scaleFactors: { pressed: 0.95, playing: 1.05 } };
|
|
const tmpResult = sound(soundGridLocation[18]);
|
|
const items1 = [channel, sound, soundGridLocation, analyticsLocations];
|
|
const tmp10 = closure_14({ sharedValues: tmp9.sharedValues, scaleFactors: { pressed: 0.95, playing: 1.05 } });
|
|
const items2 = [tmp4.button, { width: obj.useSoundButtonStyleConfig().buttonWidth }, , , , , ];
|
|
let buttonPressed = null;
|
|
const callback1 = playSoundboardSound.useCallback(() => {
|
|
openSoundboardSoundPreviewActionSheetDefault(channel, sound, analyticsLocations[analyticsLocations.length - 1], soundGridLocation);
|
|
}, items1);
|
|
if (tmp11) {
|
|
buttonPressed = tmp4.buttonPressed;
|
|
}
|
|
items2[2] = buttonPressed;
|
|
items2[3] = tmp10;
|
|
let buttonPlaying = null;
|
|
if (isPlayingSound) {
|
|
buttonPlaying = tmp4.buttonPlaying;
|
|
}
|
|
items2[4] = buttonPlaying;
|
|
let buttonDisabled = null;
|
|
if (isLocked) {
|
|
buttonDisabled = null;
|
|
if (!flag) {
|
|
buttonDisabled = tmp4.buttonDisabled;
|
|
}
|
|
}
|
|
const obj3 = { style: items2, accessibilityRole: "button", accessibilityLabel: sound.name, accessibilityHint: soundboardSoundLock.lockedAccessibilityHint, onPressIn: tmp9.handlers.pressIn, onPressOut: tmp9.handlers.pressOut, onPress: callback, onLongPress: callback1, children: null };
|
|
items2[5] = buttonDisabled;
|
|
items2[6] = sound.style;
|
|
let tmp19 = isPlayingSound;
|
|
if (isPlayingSound) {
|
|
const obj4 = { style: tmp4.playingBackground };
|
|
tmp19 = isLocked(tmp14, obj4);
|
|
}
|
|
const items3 = [tmp19, , ];
|
|
if (tmp3) {
|
|
const obj5 = { sharedValues: tmp9.sharedValues, sound };
|
|
tmp3 = isLocked(closure_15, obj5);
|
|
}
|
|
items3[1] = tmp3;
|
|
const items4 = [tmp4.text, ];
|
|
let textPlaying = null;
|
|
if (isPlayingSound) {
|
|
textPlaying = tmp4.textPlaying;
|
|
}
|
|
items4[1] = textPlaying;
|
|
items3[2] = isLocked(sound(soundGridLocation[21]).Text, { lineClamp: 1, style: items4, variant: "text-sm/semibold", children: sound.name });
|
|
obj3.children = items3;
|
|
const children = [onLockedPress(closure_10, obj3), ];
|
|
if (isLocked) {
|
|
isLocked = !flag;
|
|
}
|
|
if (isLocked) {
|
|
const obj7 = { style: tmp4.lock };
|
|
isLocked = tmp23(tmp(tmp2[22]).LockIcon, obj7);
|
|
}
|
|
children[1] = isLocked;
|
|
return onLockedPress(analyticsLocations, { children });
|
|
}));
|