Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
75 lines
2.6 KiB
TypeScript
75 lines
2.6 KiB
TypeScript
// Module ID: 11547
|
|
// Function ID: 11548
|
|
// Name: useHelpLineVisibility
|
|
// Dependencies: [19, 2026, 7651, 8801, 563, 11118, 2]
|
|
// Exports: useShouldShowHelplineLink, useShouldShowThroughlineLink
|
|
|
|
// Module 11547 (useHelpLineVisibility)
|
|
import useIsInAdultAgeGroupDefault from "useIsInAdultAgeGroup" /* 8801 */;
|
|
import MessageRequestActionCreators from "MessageRequestActionCreators" /* 11118 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import LocaleStore from "LocaleStore" /* 2026 */;
|
|
import FamilyCenterStore from "FamilyCenterStore" /* 7651 */;
|
|
|
|
require = fn;
|
|
const set = new Set(["US"]);
|
|
const set1 = new Set(["en-US", "es-ES"]);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/parent_tools/hooks/useHelpLineVisibility.tsx");
|
|
|
|
export const useShouldShowHelplineLink = function useShouldShowHelplineLink() {
|
|
const tmp = useIsInAdultAgeGroupDefault();
|
|
const items = [FamilyCenterStore];
|
|
stateFromStores = stateFromStores(563).useStateFromStores(items, () => userCountry.getUserCountry());
|
|
const obj = stateFromStores(563);
|
|
const items1 = [LocaleStore];
|
|
const items2 = [stateFromStores];
|
|
const stateFromStores1 = stateFromStores(563).useStateFromStores(items1, () => locale.locale);
|
|
const effect = noop.useEffect(() => {
|
|
if (null == stateFromStores) {
|
|
const userCountryCode = MessageRequestActionCreators.fetchUserCountryCode();
|
|
}
|
|
}, items2);
|
|
let hasItem = !tmp;
|
|
if (!tmp) {
|
|
hasItem = null != stateFromStores;
|
|
}
|
|
if (hasItem) {
|
|
hasItem = set.has(stateFromStores.alpha2);
|
|
}
|
|
if (hasItem) {
|
|
hasItem = set1.has(stateFromStores1);
|
|
}
|
|
return hasItem;
|
|
};
|
|
export const useShouldShowThroughlineLink = function useShouldShowThroughlineLink() {
|
|
const tmp = useIsInAdultAgeGroupDefault();
|
|
let stateFromStores;
|
|
const tmp2 = useIsInAdultAgeGroupDefault();
|
|
const items = [FamilyCenterStore];
|
|
stateFromStores = stateFromStores(563).useStateFromStores(items, () => userCountry.getUserCountry());
|
|
let obj = stateFromStores(563);
|
|
const items1 = [LocaleStore];
|
|
const items2 = [stateFromStores];
|
|
const stateFromStores1 = stateFromStores(563).useStateFromStores(items1, () => locale.locale);
|
|
const effect = noop.useEffect(() => {
|
|
if (null == stateFromStores) {
|
|
const userCountryCode = MessageRequestActionCreators.fetchUserCountryCode();
|
|
}
|
|
}, items2);
|
|
let hasItem = !tmp2;
|
|
if (!tmp2) {
|
|
hasItem = null != stateFromStores;
|
|
}
|
|
if (hasItem) {
|
|
hasItem = set.has(stateFromStores.alpha2);
|
|
}
|
|
if (hasItem) {
|
|
hasItem = set1.has(stateFromStores1);
|
|
}
|
|
let tmp10 = !tmp;
|
|
if (!tmp) {
|
|
tmp10 = !hasItem;
|
|
}
|
|
return tmp10;
|
|
};
|