72 lines
3.8 KiB
TypeScript
72 lines
3.8 KiB
TypeScript
/* Metro module 11795; source: modules/voice_panel/VoicePanelConstants.tsx; dependencies: [477, 2] */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as PlatformUtilsModule from '../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
|
|
|
|
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 object2 = {'mass': 0.5, 'damping': 80, 'stiffness': 200};
|
|
const object3 = {};
|
|
copyDataProperties(object3, object2, undefined);
|
|
object3['overshootClamping'] = true;
|
|
const object4 = {};
|
|
copyDataProperties(object4, object2, undefined);
|
|
object4['overshootClamping'] = true;
|
|
const object5 = {};
|
|
copyDataProperties(object5, object2, undefined);
|
|
object5['mass'] = 0.3;
|
|
const object7 = {NO_VIDEO_PARTICIPANTS: 'no_video_participants', CALLER_DISCONNECTED: 'caller_disconnected'};
|
|
const object8 = {};
|
|
const NO_VIDEO_PARTICIPANTS = object7.NO_VIDEO_PARTICIPANTS;
|
|
object8[NO_VIDEO_PARTICIPANTS] = {'width': 2, 'height': 1};
|
|
const Set = global.Set;
|
|
Object = global.Object;
|
|
const set = new Set(Object.keys(object8));
|
|
const isAndroid2 = (PlatformUtilsModule).isAndroid();
|
|
const isIOS2 = (PlatformUtilsModule).isIOS();
|
|
(FileImportTrackerModule).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 = object2;
|
|
exports.MODE_CHANGE_PHYSICS_CLAMPED = object3;
|
|
exports.BORDER_RADIUS_PHYSICS = object4;
|
|
exports.PANEL_CONTROLS_HEIGHT_PHYSICS = object5;
|
|
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 = object7;
|
|
exports.VoicePanelCTACardDimensions = object8;
|
|
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';
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun90330, 11795, [477, 2]) /* metro module 11795, dependencies: [477, 2] */;
|