27 lines
972 B
TypeScript
27 lines
972 B
TypeScript
// Module ID: 15326
|
|
// Function ID: 15327
|
|
// Name: prefetchFamilyCenterAgeGroupWhen
|
|
// Dependencies: [7292, 7294, 2]
|
|
// Exports: prefetchFamilyCenterAgeGroupWhen
|
|
|
|
// Module 15326 (prefetchFamilyCenterAgeGroupWhen)
|
|
import maybeFetchCollectiblesForInvoicesDefault from "maybeFetchCollectiblesForInvoices" /* 7294 */;
|
|
import closure_2 from "freshTeenActivityWithMap" /* 7292 */;
|
|
|
|
const result = require("set").fileFinishedImporting("modules/parent_tools/FamilyCenterAgeGroupPrefetch.tsx");
|
|
|
|
export const prefetchFamilyCenterAgeGroupWhen = function prefetchFamilyCenterAgeGroupWhen(isFamilyCenterV3Enabled) {
|
|
let tmp = isFamilyCenterV3Enabled;
|
|
if (isFamilyCenterV3Enabled) {
|
|
tmp = null == closure_2.getAgeGroup();
|
|
}
|
|
if (tmp) {
|
|
if (!closure_2.isLoading()) {
|
|
if (obj.canRefetch()) {
|
|
maybeFetchCollectiblesForInvoicesDefault.initialPageLoad();
|
|
const obj2 = maybeFetchCollectiblesForInvoicesDefault;
|
|
}
|
|
}
|
|
obj = closure_2;
|
|
}
|
|
};
|