Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,89 @@
|
||||
/* Metro module 13407; source: modules/parent_tools/hooks/useFamilyCenterActivities.tsx; dependencies: [5116, 5117, 632, 5187, 5137, 2] */
|
||||
function _fun102029(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:6, offset: 0x02228ae7, size: 179 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const closure = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[2]).useStateFromStores([FamilyCenterStore], _fun102031);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const familyCenterStore = importDefault(5116) /* metro dependency 5116: FamilyCenterStore */;
|
||||
const env0_3 = (require(5117) /* metro dependency 5117: FamilyCenterConstants */).TeenActionDisplayType;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/parent_tools/hooks/useFamilyCenterActivities.tsx');
|
||||
exports.useActionsForDisplayType = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[2]).useStateFromStoresArray([FamilyCenterStore], _fun102033);
|
||||
};
|
||||
exports.useActionTotalsForDisplayType = closure;
|
||||
exports.useHasActionForAnyDisplayType = function() {
|
||||
return require(dependencyMap[2]).useStateFromStores([FamilyCenterStore], _fun102035);
|
||||
};
|
||||
exports.useFormattedTotalForDisplayType = useFormattedTotalForDisplayType;
|
||||
}
|
||||
|
||||
function useActionTotalsForDisplayType(a0) { // fn#102030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:138, offset: 0x02228b9a, size: 66 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
return (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
|
||||
_fun102031);
|
||||
}
|
||||
|
||||
function useActionsForDisplayType(a0) { // fn#102032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:370, offset: 0x02228bf7, size: 67 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
return (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStoresArray([FamilyCenterStore],
|
||||
_fun102033);
|
||||
}
|
||||
|
||||
function useHasActionForAnyDisplayType() { // fn#102034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:582, offset: 0x02228c55, size: 59 bytes, params: 1, frame: 13
|
||||
return (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([FamilyCenterStore],
|
||||
_fun102035);
|
||||
}
|
||||
|
||||
function useFormattedTotalForDisplayType(a0) { // fn#102037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:761, offset: 0x02228cdc, size: 174 bytes, params: 2, frame: 18
|
||||
var r1;
|
||||
var totalSpendAmount;
|
||||
var totalSpendCurrency;
|
||||
var value;
|
||||
const r2 = useActionTotalsForDisplayType(a0) ?? 0;
|
||||
const TOTAL_VOICE_MINUTES = TeenActionDisplayType.TOTAL_VOICE_MINUTES;
|
||||
if (a0 === TOTAL_VOICE_MINUTES) {
|
||||
return (require(5187) /* metro dependency 5187: FamilyCenterUtils */).formatTotalTime(r2);
|
||||
}
|
||||
const PURCHASES = TeenActionDisplayType.PURCHASES;
|
||||
if (a0 === PURCHASES) {
|
||||
totalSpendAmount = FamilyCenterStore.getTotalSpendAmount();
|
||||
totalSpendCurrency = FamilyCenterStore.getTotalSpendCurrency();
|
||||
if (totalSpendAmount == null) {
|
||||
r1 = r2;
|
||||
} else if (totalSpendCurrency == null) {
|
||||
r1 = r2;
|
||||
} else {
|
||||
value = require(5137) /* metro dependency 5137: PriceUtils */;
|
||||
value = value.shortenAndFormatPrice(totalSpendAmount, totalSpendCurrency);
|
||||
r1 = value;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
return r2;
|
||||
}
|
||||
|
||||
function _fun102031() { // fn#102031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:219, offset: 0x02228bdc, size: 27 bytes, params: 1, frame: 11
|
||||
return FamilyCenterStore.getTotalForDisplayType(env0_0);
|
||||
}
|
||||
|
||||
function _fun102033() { // fn#102033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:451, offset: 0x02228c3a, size: 27 bytes, params: 1, frame: 11
|
||||
return FamilyCenterStore.getActionsForDisplayType(env0_0);
|
||||
}
|
||||
|
||||
function _fun102035() { // fn#102035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:662, offset: 0x02228c90, size: 47 bytes, params: 1, frame: 11
|
||||
var environment;
|
||||
const Object = global.Object;
|
||||
const values = Object.values;
|
||||
const value = environment.__proto__;
|
||||
return Reflect.apply(values, Object, [TeenActionDisplayType]).some(_fun102036);
|
||||
}
|
||||
|
||||
function _fun102036(a0) { // fn#102036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13597:689, offset: 0x02228cbf, size: 29 bytes, params: 2, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
return FamilyCenterStore.getTotalForDisplayType(a0) > 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user