Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
53 lines
2.4 KiB
TypeScript
53 lines
2.4 KiB
TypeScript
// Module ID: 12310
|
|
// Function ID: 12311
|
|
// Name: MediaKeyboardButtonIcon
|
|
// Dependencies: [19, 21, 4472, 4341, 1609, 4606, 4609, 11023, 2]
|
|
// Exports: MediaKeyboardButtonIcon
|
|
|
|
// Module 12310 (MediaKeyboardButtonIcon)
|
|
import KeyboardTypes from "KeyboardTypes" /* 1609 */;
|
|
import ReanimatedRexportDefault from "ReanimatedRexport" /* 4341 */;
|
|
import useKeyboardTypeDefault from "useKeyboardType" /* 4472 */;
|
|
import timing from "timing" /* 4606 */;
|
|
import timingPresets from "timingPresets" /* 4609 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
require = fn;
|
|
const jsx = fn(21).jsx;
|
|
const __initData = { code: "function MediaKeyboardButtonIconTsx1(){const{keyboard,KeyboardTypes,withTiming,timingStandard}=this.__closure;const isActive=keyboard===KeyboardTypes.MEDIA||keyboard===KeyboardTypes.APP_LAUNCHER;return{transform:[{rotate:withTiming(isActive?'45deg':'0deg',timingStandard)}]};}" };
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/media_keyboard/native/MediaKeyboardButtonIcon.tsx");
|
|
|
|
export const MediaKeyboardButtonIcon = function MediaKeyboardButtonIcon(arg0) {
|
|
if (arg0 == null) {
|
|
throw new TypeError("Cannot destructure 'undefined' or 'null'.");
|
|
} else {
|
|
const merged = Object.assign(arg0, undefined);
|
|
const tmp5 = useKeyboardTypeDefault();
|
|
_require = tmp5;
|
|
const fn = function s() {
|
|
const tmp4 = closure_0 === KeyboardTypes.KeyboardTypes.MEDIA || closure_0 === KeyboardTypes.KeyboardTypes.APP_LAUNCHER;
|
|
let str = "0deg";
|
|
if (tmp4) {
|
|
str = "45deg";
|
|
}
|
|
const obj = { transform: null };
|
|
const tmp2Result = timing;
|
|
const items = [{ rotate: timing.withTiming(str, timingPresets.timingStandard) }];
|
|
obj.transform = items;
|
|
return obj;
|
|
};
|
|
const obj2 = { keyboard: tmp5, KeyboardTypes: require("KeyboardTypes").KeyboardTypes, withTiming: require("timing").withTiming, timingStandard: require("timingPresets").timingStandard };
|
|
fn.__closure = obj2;
|
|
fn.__workletHash = 10698563185643;
|
|
fn.__initData = __initData;
|
|
const animatedStyle = require("ReanimatedRexport").useAnimatedStyle(fn);
|
|
const obj3 = { style: animatedStyle, children: null };
|
|
const obj4 = {};
|
|
const merged1 = Object.assign(merged);
|
|
obj3.children = jsx(require("PlusLargeIcon").PlusLargeIcon, {});
|
|
return jsx(ReanimatedRexportDefault.View, { style: animatedStyle, children: null });
|
|
}
|
|
};
|