68 lines
3.6 KiB
TypeScript
68 lines
3.6 KiB
TypeScript
/* Metro module 11795; source: modules/voice_panel/VoicePanelConstants.tsx; dependencies: [477, 2] */
|
|
function _fun90330(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11981:6, offset: 0x02034d13, size: 630 bytes, params: 8, frame: 29
|
|
let Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const object = {'mass': 0.5, 'damping': 80, 'stiffness': 200};
|
|
const object6 = {};
|
|
copyDataProperties(object6, object, undefined);
|
|
object6['overshootClamping'] = true;
|
|
const object9 = {};
|
|
copyDataProperties(object9, object, undefined);
|
|
object9['overshootClamping'] = true;
|
|
const object10 = {};
|
|
copyDataProperties(object10, object, undefined);
|
|
object10['mass'] = 0.3;
|
|
const object11 = {NO_VIDEO_PARTICIPANTS: 'no_video_participants', CALLER_DISCONNECTED: 'caller_disconnected'};
|
|
const object12 = {};
|
|
const NO_VIDEO_PARTICIPANTS = object11.NO_VIDEO_PARTICIPANTS;
|
|
object12[NO_VIDEO_PARTICIPANTS] = {'width': 2, 'height': 1};
|
|
const Set = global.Set;
|
|
Object = global.Object;
|
|
const set = new Set(Object.keys(object12));
|
|
const isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
|
|
const isIOS2 = (require(477) /* metro dependency 477: PlatformUtils */).isIOS();
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/VoicePanelConstants.tsx');
|
|
exports.VoicePanelModes = {DISMISSED: 'dismissed', PIP: 'pip', PANEL: 'panel'};
|
|
exports.getAnalyticsNameForVoicePanelMode = getAnalyticsNameForVoicePanelMode;
|
|
exports.VOICE_PANEL_CHUNK_DIVISOR = 3;
|
|
exports.DEFAULT_BORDER_RADIUS = 24;
|
|
exports.DEFAULT_BORDER_RADIUS_PIP = 24;
|
|
exports.DRAWER_SPRING_PHYSICS = {'mass': 0.2, 'damping': 10, 'stiffness': 200};
|
|
exports.LAYOUT_PHYSICS = {'mass': 0.3, 'damping': 25, 'stiffness': 150};
|
|
exports.UI_SHOW_HIDE_PHYSICS = {'mass': 0.4, 'damping': 60, 'stiffness': 150};
|
|
exports.MODE_CHANGE_PHYSICS = object;
|
|
exports.MODE_CHANGE_PHYSICS_CLAMPED = object6;
|
|
exports.BORDER_RADIUS_PHYSICS = object9;
|
|
exports.PANEL_CONTROLS_HEIGHT_PHYSICS = object10;
|
|
exports.SPEAKING_PHYSICS = {'mass': 0.32, 'damping': 10, 'stiffness': 300, 'restDisplacementThreshold': 0.001,
|
|
'restSpeedThreshold': 0.001, 'overshootClamping': true};
|
|
exports.PUSH_TO_TALK_PIP_PHYSICS = {'damping': 20, 'mass': 0.1, 'stiffness': 100};
|
|
exports.DRAWER_SPRING_PHYSICS_GESTURE_ACTIVE = {'mass': 0.1, 'damping': 20, 'stiffness': 500};
|
|
exports.GridItemTypes = {USER: 'USER', STREAM: 'STREAM', ACTIVITY: 'ACTIVIY'};
|
|
exports.BASE_TARGET_CARD_SIZE = 165;
|
|
exports.VoicePanelCTACard = object11;
|
|
exports.VoicePanelCTACardDimensions = object12;
|
|
exports.VoicePanelCTACardDimensionKeys = set;
|
|
exports.VoicePanelCardItemType = {PARTICIPANT: 'participant', CTA: 'cta'};
|
|
exports.IS_ANDROID = isAndroid2;
|
|
exports.IS_IOS = isIOS2;
|
|
exports.SECONDARY_PIP_TOP_MARGIN = 8;
|
|
exports.VOICE_PANEL_DRAWER_MAX_WIDTH = 540;
|
|
}
|
|
|
|
function getAnalyticsNameForVoicePanelMode(a0) { // fn#90331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11981:811, offset: 0x02034f89, size: 70 bytes, params: 2, frame: 3
|
|
const DISMISSED = env0_0.DISMISSED;
|
|
if (DISMISSED === a0) {
|
|
return 'dismissed';
|
|
}
|
|
const PIP = env0_0.PIP;
|
|
if (PIP === a0) {
|
|
return 'pip';
|
|
}
|
|
const PANEL = env0_0.PANEL;
|
|
if (PANEL === a0) {
|
|
return 'grid';
|
|
}
|
|
}
|
|
|