Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
41 lines
1.5 KiB
TypeScript
41 lines
1.5 KiB
TypeScript
// Module ID: 15426
|
|
// Function ID: 15427
|
|
// Name: getSettingsOverrideReason
|
|
// Dependencies: [1937, 1084, 1115, 504, 2]
|
|
// Exports: default, useSettingsOverrideReason
|
|
|
|
// Module 15426 (getSettingsOverrideReason)
|
|
import util from "util" /* 1115 */;
|
|
import UserSettingsOverridesStore from "UserSettingsOverridesStore" /* 1937 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
require = fn;
|
|
const constants = fn(1084).SettingsOverrideReasonKeys;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/user_settings/accessibility/getSettingsOverrideReason.tsx");
|
|
|
|
export default function getSettingsOverrideReason(arg0) {
|
|
if (constants.REDUCED_MOTION === arg0) {
|
|
const intl2 = util.intl;
|
|
return intl2.format(util.t["1dT9V4"], {});
|
|
} else if (tmp.REDUCED_MOTION_STICKERS === arg0) {
|
|
const intl = util.intl;
|
|
return intl.string(util.t["2ExvRu"]);
|
|
}
|
|
};
|
|
export const useSettingsOverrideReason = function useSettingsOverrideReason(arg0) {
|
|
_require = arg0;
|
|
const items = [UserSettingsOverridesStore];
|
|
return require("initialize").useStateFromStores(items, () => {
|
|
const appliedOverrideReasonKey = UserSettingsOverridesStore.getAppliedOverrideReasonKey(closure_0);
|
|
if (constants.REDUCED_MOTION === appliedOverrideReasonKey) {
|
|
const intl2 = util.intl;
|
|
let formatResult = intl2.format(util.t["1dT9V4"], {});
|
|
} else if (tmp2.REDUCED_MOTION_STICKERS === appliedOverrideReasonKey) {
|
|
const intl = util.intl;
|
|
formatResult = intl.string(util.t["2ExvRu"]);
|
|
}
|
|
return formatResult;
|
|
});
|
|
};
|