decord/source/modules/parent_tools/hooks/useHelpLineVisibility.tsx

49 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 10141
// Function ID: 78411
2026-07-20 16:05:17 +00:00
// Name: useShouldShowHelplineLink
2026-07-28 08:39:19 +00:00
// Dependencies: [31, 1922, 5775, 6236, 624, 10142, 2]
2026-07-20 16:05:17 +00:00
// Exports: useShouldShowThroughlineLink
2026-07-28 08:39:19 +00:00
// Module 10141 (useShouldShowHelplineLink)
2026-07-23 10:11:24 +00:00
import result from "result";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_5 from "_isNativeReflectConstruct";
import set from "_isNativeReflectConstruct";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function useShouldShowHelplineLink() {
2026-07-28 08:39:19 +00:00
const tmp = importDefault(6236)();
2026-07-20 16:05:17 +00:00
const items = [closure_5];
2026-07-23 10:11:24 +00:00
stateFromStores = stateFromStores(624).useStateFromStores(items, () => outer1_5.getUserCountry());
let obj = stateFromStores(624);
const items1 = [_isNativeReflectConstruct];
2026-07-20 16:05:17 +00:00
const items2 = [stateFromStores];
2026-07-23 10:11:24 +00:00
const stateFromStores1 = stateFromStores(624).useStateFromStores(items1, () => outer1_4.locale);
2026-07-20 16:05:17 +00:00
const effect = React.useEffect(() => {
if (null == stateFromStores) {
2026-07-23 10:11:24 +00:00
const userCountryCode = stateFromStores(outer1_2[5]).fetchUserCountryCode();
const obj = stateFromStores(outer1_2[5]);
2026-07-20 16:05:17 +00:00
}
}, items2);
let hasItem = !tmp;
if (hasItem) {
hasItem = null != stateFromStores;
}
if (hasItem) {
hasItem = set.has(stateFromStores.alpha2);
}
if (hasItem) {
hasItem = set1.has(stateFromStores1);
}
return hasItem;
}
2026-07-23 10:11:24 +00:00
let set = new Set(["US"]);
const set1 = new Set(["en-US", "es-ES"]);
const result = set.fileFinishedImporting("modules/parent_tools/hooks/useHelpLineVisibility.tsx");
2026-07-20 16:05:17 +00:00
export { useShouldShowHelplineLink };
export const useShouldShowThroughlineLink = function useShouldShowThroughlineLink() {
2026-07-28 08:39:19 +00:00
const tmp = importDefault(6236)();
return !importDefault(6236)() && !useShouldShowHelplineLink();
2026-07-20 16:05:17 +00:00
};