70 lines
3.2 KiB
TypeScript
70 lines
3.2 KiB
TypeScript
/* Metro module 11107; source: modules/media_keyboard/native/useMediaKeyboardItemsPerRow.tsx; dependencies: [31, 4011, 2] */
|
|
function _fun85075(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11293:6, offset: 0x01f62b0d, size: 121 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importAll(31) /* metro dependency 31 */;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/media_keyboard/native/useMediaKeyboardItemsPerRow.tsx');
|
|
exports.useMediaKeyboardItemsPerRow = useMediaKeyboardItemsPerRow;
|
|
}
|
|
|
|
function useMediaKeyboardItemsPerRow() { // fn#85076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11293:231, offset: 0x01f62b86, size: 305 bytes, params: 1, frame: 17
|
|
var r3;
|
|
var binding;
|
|
var useRef;
|
|
var value8;
|
|
var value;
|
|
const value2 = (importDefault(4011) /* metro dependency 4011: useWindowSizeClassifier */)();
|
|
const WindowSizeClassifier = (require(4011) /* metro dependency 4011: useWindowSizeClassifier */).WindowSizeClassifier;
|
|
const XLARGE = WindowSizeClassifier.XLARGE;
|
|
if (XLARGE === value2) {
|
|
r3 = 8;
|
|
binding = env0_3;
|
|
useRef = binding.useRef;
|
|
value = 17 * r3;
|
|
value8 = Reflect.apply(useRef, binding, [value]);
|
|
binding.useEffect(_fun85077, [r3]);
|
|
return {itemsPerRow: r3, itemsPageSize: value, itemsPageSizeRef: value8};
|
|
}
|
|
const LARGE = WindowSizeClassifier.LARGE;
|
|
if (LARGE === value2) {
|
|
r3 = 6;
|
|
binding = env0_3;
|
|
useRef = binding.useRef;
|
|
value = 17 * r3;
|
|
value8 = Reflect.apply(useRef, binding, [value]);
|
|
binding.useEffect(_fun85077, [r3]);
|
|
return {itemsPerRow: r3, itemsPageSize: value, itemsPageSizeRef: value8};
|
|
}
|
|
const NORMAL = WindowSizeClassifier.NORMAL;
|
|
if (NORMAL === value2) {
|
|
r3 = 4;
|
|
binding = env0_3;
|
|
useRef = binding.useRef;
|
|
value = 17 * r3;
|
|
value8 = Reflect.apply(useRef, binding, [value]);
|
|
binding.useEffect(_fun85077, [r3]);
|
|
return {itemsPerRow: r3, itemsPageSize: value, itemsPageSizeRef: value8};
|
|
}
|
|
const SMALL = WindowSizeClassifier.SMALL;
|
|
if (SMALL === value2) {
|
|
r3 = 3;
|
|
binding = env0_3;
|
|
useRef = binding.useRef;
|
|
value = 17 * r3;
|
|
value8 = Reflect.apply(useRef, binding, [value]);
|
|
binding.useEffect(_fun85077, [r3]);
|
|
return {itemsPerRow: r3, itemsPageSize: value, itemsPageSizeRef: value8};
|
|
}
|
|
const Error = global.Error;
|
|
value = 'Unknown window size classifier: ' + value2;
|
|
const value7 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
const error = new Error();
|
|
throw error instanceof Object ? error : value7;
|
|
}
|
|
|
|
function _fun85077() { // fn#85077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11293:634, offset: 0x01f62cb7, size: 28 bytes, params: 1, frame: 3
|
|
env0_1.current = 17 * env0_0;
|
|
}
|
|
|