Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
181 lines
5.6 KiB
TypeScript
181 lines
5.6 KiB
TypeScript
// Module ID: 8294
|
|
// Function ID: 8295
|
|
// Name: NativeLottieView
|
|
// Dependencies: [19, 17, 21, 1368, 8295, 113, 558, 568, 2]
|
|
|
|
// Module 8294 (NativeLottieView)
|
|
import _mod17 from "module_17" /* 17 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import codegenNativeCommandsDefault from "codegenNativeCommands" /* 113 */;
|
|
import LottieNodeNativeComponentDefault from "LottieNodeNativeComponent" /* 8295 */;
|
|
import noop_mod from "module_19" /* 19 */;
|
|
import PlatformUtils from "PlatformUtils" /* 1368 */;
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let noop = noop_mod;
|
|
({ useEffect: c2, useRef: c3 } = noop);
|
|
let noop = noop_mod;
|
|
const jsx = jsxProd.jsx;
|
|
if (PlatformUtils.isAndroid()) {
|
|
let importDefaultResult = LottieNodeNativeComponentDefault;
|
|
} else {
|
|
importDefaultResult = _mod17.requireNativeComponent("NativeLottieNode");
|
|
}
|
|
const metroRequire = importDefaultResult;
|
|
let closure_7 = codegenNativeCommandsDefault({ supportedCommands: ["setup"] });
|
|
const NativeLottieRenderMode = { LOOP: 0, [0]: "LOOP", STILL: 1, [1]: "STILL", ONCE: 2, [2]: "ONCE" };
|
|
const result = size.fileFinishedImporting("modules/stickers/native/NativeLottieView.tsx");
|
|
|
|
export default ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => {
|
|
const obj = renderMode(ref[7]);
|
|
const cResult = obj.c(17);
|
|
({ asset, url, width, height, opacity, renderMode, animating, accessibilityLabel } = arg0);
|
|
let num = 1;
|
|
if (undefined !== opacity) {
|
|
num = opacity;
|
|
}
|
|
if (undefined === renderMode) {
|
|
renderMode = obj.LOOP;
|
|
}
|
|
ref = noop.useRef(null);
|
|
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
const fn = function l(arg0) {
|
|
({ asset, url, width, height, renderMode, animating, accessibilityLabel } = arg0);
|
|
let tmp = "" !== url;
|
|
if (tmp) {
|
|
tmp = 0 !== width;
|
|
}
|
|
if (tmp) {
|
|
tmp = 0 !== height;
|
|
}
|
|
if (tmp) {
|
|
closure_7.setup(ref.current, asset, url, width, height, renderMode, animating, accessibilityLabel);
|
|
}
|
|
};
|
|
cResult[0] = fn;
|
|
let first = fn;
|
|
} else {
|
|
first = cResult[0];
|
|
}
|
|
if (cResult[1] === accessibilityLabel) {
|
|
if (cResult[2] === tmp3) {
|
|
if (cResult[3] === asset) {
|
|
if (cResult[4] === height) {
|
|
if (cResult[5] === url) {
|
|
if (cResult[6] === width) {
|
|
let tmp6 = cResult[7];
|
|
}
|
|
current = tmp6;
|
|
noop = current(tmp6);
|
|
if (cResult[8] !== tmp6) {
|
|
class S {
|
|
constructor() {
|
|
closure_4.current = closure_3;
|
|
return;
|
|
}
|
|
}
|
|
cResult[8] = tmp6;
|
|
cResult[9] = S;
|
|
const tmp9 = S;
|
|
} else {
|
|
class S {
|
|
constructor() {
|
|
closure_4.current = closure_3;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
first(tmp9);
|
|
if (cResult[10] !== renderMode) {
|
|
class S {
|
|
constructor() {
|
|
closure_4.current = closure_3;
|
|
return;
|
|
}
|
|
}
|
|
const items = [renderMode];
|
|
cResult[10] = renderMode;
|
|
cResult[11] = tmp14;
|
|
cResult[12] = items;
|
|
let tmp13 = items;
|
|
const tmp12 = tmp14;
|
|
} else {
|
|
class S {
|
|
constructor() {
|
|
closure_4.current = closure_3;
|
|
return;
|
|
}
|
|
}
|
|
tmp13 = cResult[12];
|
|
}
|
|
first(tmp12, tmp13);
|
|
if (cResult[13] === height) {
|
|
class S {
|
|
constructor() {
|
|
closure_4.current = closure_3;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
const obj2 = { ref, style: null };
|
|
let size = { width, height, opacity: num };
|
|
obj2.style = size;
|
|
const tmp19 = <closure_6 ref={ref} style={null} />;
|
|
cResult[13] = height;
|
|
cResult[14] = num;
|
|
cResult[15] = width;
|
|
cResult[16] = tmp19;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const size1 = { asset, url, width, height, animating: tmp3, accessibilityLabel };
|
|
cResult[1] = accessibilityLabel;
|
|
cResult[2] = undefined === animating || animating;
|
|
cResult[3] = asset;
|
|
cResult[4] = height;
|
|
cResult[5] = url;
|
|
cResult[6] = width;
|
|
cResult[7] = size1;
|
|
tmp6 = size1;
|
|
}) : ((accessibilityLabel) => {
|
|
({ width, height, opacity } = accessibilityLabel);
|
|
({ asset, url } = accessibilityLabel);
|
|
if (opacity === undefined) {
|
|
opacity = 1;
|
|
}
|
|
let LOOP = accessibilityLabel.renderMode;
|
|
if (LOOP === undefined) {
|
|
LOOP = obj.LOOP;
|
|
}
|
|
let flag = accessibilityLabel.animating;
|
|
if (flag === undefined) {
|
|
flag = true;
|
|
}
|
|
current = undefined;
|
|
const ref = noop.useRef(null);
|
|
const size = { asset, url, width, height, animating: flag, accessibilityLabel: accessibilityLabel.accessibilityLabel };
|
|
current = current(size);
|
|
size(() => {
|
|
closure_3.current = size;
|
|
});
|
|
const items = [LOOP];
|
|
size(() => {
|
|
({ asset, url, width, height, animating, accessibilityLabel } = ref.current);
|
|
let tmp2 = "" !== url;
|
|
if (tmp2) {
|
|
tmp2 = 0 !== width;
|
|
}
|
|
if (tmp2) {
|
|
tmp2 = 0 !== height;
|
|
}
|
|
if (tmp2) {
|
|
closure_7.setup(ref.current, asset, url, width, height, tmp, animating, accessibilityLabel);
|
|
}
|
|
}, items);
|
|
obj = { ref, style: { width, height, opacity } };
|
|
return <closure_6 ref={ref} style={{ width, height, opacity }} />;
|
|
});
|
|
export { NativeLottieRenderMode };
|