Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
+99
@@ -0,0 +1,99 @@
|
||||
/* Metro module 10125; source: modules/virtual_currency/hooks/native/useVirtualCurrencyBalanceAnimationData.tsx; dependencies: [57, 31, 4502, 566, 6266, 2] */
|
||||
function _fun79018(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10311:6, offset: 0x01e419af, size: 153 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/virtual_currency/hooks/native/useVirtualCurrencyBalanceAnimationData.tsx');
|
||||
exports.useVirtualCurrencyBalanceAnimationData = useVirtualCurrencyBalanceAnimationData;
|
||||
}
|
||||
|
||||
function useVirtualCurrencyBalanceAnimationData({initialRenderedBalance, balance}) { // fn#79019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10311:281, offset: 0x01e41a48, size: 446 bytes, params: 2, frame: 26
|
||||
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
|
||||
function() {
|
||||
return AccessibilityStore.useReducedMotion;
|
||||
});
|
||||
const binding = env0_4;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, [null]);
|
||||
const binding2 = env0_3;
|
||||
const value3 = binding2(value2, 2);
|
||||
const property = value3[0];
|
||||
var env0_4 = value3[1];
|
||||
const env0_5 = binding.useRef(null);
|
||||
const value4 = binding.useRef(null);
|
||||
useState = binding.useState;
|
||||
const value5 = binding2(Reflect.apply(useState, binding, [initialRenderedBalance != null]), 2);
|
||||
const property2 = value5[0];
|
||||
const env0_7 = value5[1];
|
||||
useState = binding.useState;
|
||||
const value6 = binding2(Reflect.apply(useState, binding, [initialRenderedBalance == null]), 2);
|
||||
const property3 = value6[0];
|
||||
const env0_9 = value6[1];
|
||||
const value = (importDefault(6266) /* metro dependency 6266: usePrevious */)(balance);
|
||||
const value7 = binding.useCallback(function() {
|
||||
}, []);
|
||||
const value8 = binding.useCallback(_fun79022, []);
|
||||
const value9 = binding.useCallback(_fun79023, [property]);
|
||||
binding.useEffect(_fun79024, [initialRenderedBalance, balance, property3, useReducedMotion, value9]);
|
||||
binding.useEffect(_fun79027, [balance, value, property, property3, useReducedMotion, value9]);
|
||||
return {onValueChange: value7, onValueReached: value8, showInitialRenderedBalance: property2,
|
||||
currentAnimationType: property, lottieRef: value4};
|
||||
}
|
||||
|
||||
function _fun79022() { // fn#79022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10311:610, offset: 0x01e41c06, size: 28 bytes, params: 1, frame: 11
|
||||
env0_5.current = null;
|
||||
env0_4(null);
|
||||
}
|
||||
|
||||
function _fun79023(a0) { // fn#79023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10311:661, offset: 0x01e41c22, size: 109 bytes, params: 2, frame: 12
|
||||
var binding;
|
||||
var current;
|
||||
if (a0 !== 0) {
|
||||
binding = env0_5;
|
||||
binding.current = a0 > 0 ? 'earn' : 'spend';
|
||||
binding = env0_3;
|
||||
current = env0_5.current;
|
||||
if (binding === current) {
|
||||
current = env0_6.current;
|
||||
if (current != null) {
|
||||
current.play();
|
||||
}
|
||||
} else {
|
||||
env0_4(env0_5.current);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun79024() { // fn#79024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10311:793, offset: 0x01e41c8f, size: 76 bytes, params: 1, frame: 14
|
||||
if (initialRenderedBalance == null) {
|
||||
return undefined;
|
||||
}
|
||||
if (balance === null) {
|
||||
return undefined;
|
||||
}
|
||||
if (env0_8) {
|
||||
return undefined;
|
||||
}
|
||||
const env0_0 = global.setTimeout(_fun79025, 1250);
|
||||
return _fun79026;
|
||||
}
|
||||
|
||||
function _fun79027() { // fn#79027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10311:932, offset: 0x01e41d16, size: 86 bytes, params: 1, frame: 12
|
||||
let r1 = balance !== null && env0_10 !== null && balance !== env0_10;
|
||||
r1 = r1 && env0_8 && !useReducedMotion;
|
||||
if (r1) {
|
||||
env0_11(balance - env0_10);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun79025() { // fn#79025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10311:842, offset: 0x01e41cdb, size: 59 bytes, params: 1, frame: 12
|
||||
if (!useReducedMotion) {
|
||||
env1_11(balance - initialRenderedBalance);
|
||||
}
|
||||
env1_7(false);
|
||||
env1_9(true);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
/* Metro module 4127; source: modules/virtual_currency/hooks/native/useVirtualCurrencyMobileEnabled.tsx; dependencies: [1581, 4128, 2] */
|
||||
function _fun34250(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#34250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4298:6, offset: 0x01050150, size: 112 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/virtual_currency/hooks/native/useVirtualCurrencyMobileEnabled.tsx');
|
||||
exports.isVirtualCurrencyEnabled = isVirtualCurrencyEnabled;
|
||||
exports.useVirtualCurrencyMobileEnabled = useVirtualCurrencyMobileEnabled;
|
||||
}
|
||||
|
||||
function isVirtualCurrencyEnabled() { // fn#34251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4298:226, offset: 0x010501c0, size: 105 bytes, params: 1, frame: 13
|
||||
var value;
|
||||
const isMetaQuest2 = (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest();
|
||||
const object2 = {};
|
||||
if (isMetaQuest2) {
|
||||
object2.enabled = false;
|
||||
} else {
|
||||
value = importDefault(4128) /* metro dependency 4128: VirtualCurrencyMobileExperiment */;
|
||||
object2.enabled = value.getConfig({location: 'isVirtualCurrencyEnabled'}).enabled;
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
function useVirtualCurrencyMobileEnabled() { // fn#34252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4298:374, offset: 0x01050229, size: 101 bytes, params: 1, frame: 15
|
||||
var object2;
|
||||
const value2 = (importDefault(4128) /* metro dependency 4128: VirtualCurrencyMobileExperiment */).useConfig({location: 'useVirtualCurrencyMobileEnabled'});
|
||||
let value = require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */;
|
||||
value = value.isMetaQuest();
|
||||
object2 = {};
|
||||
if (value) {
|
||||
object2.enabled = false;
|
||||
} else {
|
||||
object2.enabled = value2.enabled;
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user