decord/source/modules/expression_picker/native/ExpressionPickerActionSheet.tsx

94 lines
3.7 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 10186
// Function ID: 10187
2026-07-20 16:05:17 +00:00
// Name: ExpressionPickerActionSheet
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 1391, 6951, 10187, 21, 4115, 4239, 1627, 589, 10188, 4342, 1494, 1629, 6370, 500, 9340, 6950, 10189, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-15 05:55:55 +00:00
// Module 10186 (ExpressionPickerActionSheet)
2026-07-29 08:29:29 +00:00
import noop from "noop";
import ensureGuildLoaded from "ensureGuildLoaded";
2026-07-23 10:11:24 +00:00
import { ACTION_SHEET_START_HEIGHT_RATIO as closure_5 } from "ACTION_SHEET_START_HEIGHT_RATIO";
import { STICKER_FORMATS } from "PADDING_HORIZONTAL";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
let c9;
let error;
let metroImportAll;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: error, Fragment: metroImportAll, jsxs: c9 } = jsxProd);
2026-07-23 10:11:24 +00:00
const result = require("ACTION_SHEET_START_HEIGHT_RATIO").fileFinishedImporting("modules/expression_picker/native/ExpressionPickerActionSheet.tsx");
2026-07-20 16:05:17 +00:00
export default function ExpressionPickerActionSheet(arg0) {
2026-07-29 08:29:29 +00:00
let noop;
2026-07-23 10:11:24 +00:00
let dependencyMap;
2026-07-20 16:05:17 +00:00
let hideGifFavorites;
2026-07-23 10:11:24 +00:00
let importDefault;
2026-07-20 16:05:17 +00:00
let initialGifQuery;
let onDismiss;
2026-07-23 10:11:24 +00:00
let require;
2026-07-20 16:05:17 +00:00
let visibleTabs;
2026-07-29 08:29:29 +00:00
({ channelId: require, onPressEmoji: importDefault, onPressSticker: dependencyMap, onPressGIF: noop } = arg0);
2026-07-20 16:05:17 +00:00
({ hideGifFavorites, onDismiss, visibleTabs, initialGifQuery } = arg0);
2026-08-15 05:55:55 +00:00
let obj = require(4115);
2026-07-20 16:05:17 +00:00
const sharedValue = obj.useSharedValue(-1);
2026-08-15 05:55:55 +00:00
let obj1 = require(4239) /* useKeyboardType */;
const keyboardContextForType = obj1.useKeyboardContextForType(require(1627) /* KeyboardTypes */.KeyboardTypes.EXPRESSION);
2026-07-29 08:29:29 +00:00
let obj2 = require(589) /* initialize */;
const items = [ensureGuildLoaded];
const stateFromStores = obj2.useStateFromStores(items, () => outer1_4.getChannel(closure_0));
2026-08-15 05:55:55 +00:00
const height = importDefault(1494)({ ignoreKeyboard: true }).height;
const diff = height - require(6370) /* NAV_BAR_HEIGHT */.NAV_BAR_HEIGHT_MULTILINE - importDefault(1629)().top;
2026-07-29 08:29:29 +00:00
let tmp15Result = null;
2026-07-20 16:05:17 +00:00
if (undefined !== stateFromStores) {
2026-07-29 08:29:29 +00:00
let isIOSResult = tmp2(500).isIOS();
2026-07-20 16:05:17 +00:00
if (isIOSResult) {
2026-07-29 08:29:29 +00:00
obj = { animatedSheetIndex: null, followSystemKeyboard: true };
obj[0] = sharedValue;
2026-08-15 05:55:55 +00:00
isIOSResult = callback(tmp7(9340), obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { children: null };
2026-07-20 16:05:17 +00:00
const items1 = [isIOSResult, ];
2026-07-29 08:29:29 +00:00
obj1 = { scrollable: true, animatedIndex: null, startHeight: null, containerHeight: null, onDismiss: null, children: null };
obj1[1] = sharedValue;
obj1[2] = height * closure_5;
obj1[3] = diff;
obj1[4] = onDismiss;
obj2 = { bottomSheetRef: null, bottomSheetIndex: null, channel: null, expressionType: null, hideGifFavorites: null, onPressEmoji: null, onPressGIF: null, onPressSticker: null, visibleTabs: null, initialGifQuery: null, stickerFormats: null, height: null };
obj2[0] = ref;
obj2[1] = sharedValue;
obj2[2] = stateFromStores;
obj2[3] = keyboardContextForType;
obj2[4] = hideGifFavorites;
obj2[5] = function onPressEmoji(arg0) {
callback(arg0);
outer1_0(outer1_2[9]).dismissKeyboard();
const obj = outer1_0(outer1_2[9]);
outer1_1(outer1_2[10]).hideActionSheet();
};
obj2[6] = function onPressGIF(arg0) {
callback3(arg0);
outer1_0(outer1_2[9]).dismissKeyboard();
const obj = outer1_0(outer1_2[9]);
outer1_1(outer1_2[10]).hideActionSheet();
};
obj2[7] = function onPressSticker(arg0) {
callback2(arg0);
outer1_0(outer1_2[9]).dismissKeyboard();
const obj = outer1_0(outer1_2[9]);
outer1_1(outer1_2[10]).hideActionSheet();
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj2[8] = visibleTabs;
obj2[9] = initialGifQuery;
obj2[10] = STICKER_FORMATS;
obj2[11] = diff;
2026-08-15 05:55:55 +00:00
obj1[5] = callback(tmp7(10189), obj2);
items1[1] = callback(tmp2(6950).BottomSheet, obj1);
2026-07-29 08:29:29 +00:00
obj[0] = items1;
tmp15Result = closure_9(closure_8, obj);
const tmp15 = closure_9;
const tmp16 = closure_8;
const tmp2Result = tmp2(500);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp15Result;
2026-07-20 16:05:17 +00:00
};