Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
80 lines
2.8 KiB
TypeScript
80 lines
2.8 KiB
TypeScript
// Module ID: 11918
|
|
// Function ID: 11919
|
|
// Name: OrbsRewardBackground
|
|
// Dependencies: [32, 19, 4631, 1896, 21, 504, 1094, 5672, 11919, 8428, 11920, 2]
|
|
// Exports: OrbsRewardBackground
|
|
|
|
// Module 11918 (OrbsRewardBackground)
|
|
import FastImageDefault from "FastImage" /* 5672 */;
|
|
import _modDef11919 from "module_11919" /* 11919 */;
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import AccessibilityStore from "AccessibilityStore" /* 4631 */;
|
|
import AppStateStore from "AppStateStore" /* 1896 */;
|
|
|
|
const _modDef11920 = tmp15(11920);
|
|
const require = fn;
|
|
const jsxProd = fn(21);
|
|
({ jsx: closure_7, jsxs: closure_8 } = jsxProd);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/virtual_currency/native/OrbsRewardBackground.tsx");
|
|
|
|
export const OrbsRewardBackground = function OrbsRewardBackground(arg0) {
|
|
({ style, onReady } = arg0);
|
|
importDefault = undefined;
|
|
dependencyMap = undefined;
|
|
_slicedToArray = undefined;
|
|
noop = undefined;
|
|
const items = [AccessibilityStore];
|
|
const stateFromStores = onReady(504).useStateFromStores(items, () => useReducedMotion.useReducedMotion);
|
|
const obj = onReady(504);
|
|
let tmp = onReady;
|
|
const items1 = [AppStateStore];
|
|
const stateFromStores1 = onReady(504).useStateFromStores(items1, () => state.getState());
|
|
const obj2 = onReady(504);
|
|
[tmp6, c1] = noop.useState(false);
|
|
const tmp5 = _slicedToArray(noop.useState(false), 2);
|
|
[tmp8, c2] = noop.useState(false);
|
|
const callback = noop.useCallback(() => _undefined(true), []);
|
|
const callback1 = noop.useCallback(() => _undefined2(true), []);
|
|
if (!tmp6) {
|
|
const tmp11 = !stateFromStores;
|
|
}
|
|
_slicedToArray = tmp6;
|
|
noop = obj3.useRef(false);
|
|
const items2 = [tmp6, onReady];
|
|
const effect = obj3.useEffect(() => {
|
|
let tmp = c3;
|
|
if (c3) {
|
|
tmp = !ref.current;
|
|
}
|
|
if (tmp) {
|
|
ref.current = true;
|
|
onReady();
|
|
}
|
|
}, items2);
|
|
const obj4 = { source: null, style: null, resizeMode: "cover", onLoad: null };
|
|
const obj5 = { uri: null };
|
|
const tmp13 = closure_8;
|
|
const tmp14 = closure_7;
|
|
const tmp7 = _slicedToArray(noop.useState(false), 2);
|
|
obj5.uri = _modDef11919;
|
|
obj4.source = obj5;
|
|
obj4.style = style;
|
|
obj4.onLoad = callback;
|
|
const children = [closure_7(FastImageDefault, obj4), ];
|
|
let tmp14Result = !stateFromStores;
|
|
if (!stateFromStores) {
|
|
tmp14Result = stateFromStores1 === onReady(1094).AppStates.ACTIVE;
|
|
}
|
|
if (tmp14Result) {
|
|
const obj6 = { source: null, style: null, resizeMode: "cover", onLoad: null, disableFocus: true, playInBackground: true, preventsDisplaySleepDuringVideoPlayback: false };
|
|
const obj7 = { uri: _modDef11920 };
|
|
obj6.source = obj7;
|
|
obj6.style = style;
|
|
obj6.onLoad = callback1;
|
|
tmp14Result = tmp14(tmp(8428).VideoComponent, obj6);
|
|
}
|
|
children[1] = tmp14Result;
|
|
return tmp13(noop.Fragment, { children });
|
|
};
|