2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 15415
|
|
|
|
|
// Function ID: 15416
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getSettingsOverrideReason
|
2026-09-05 10:56:28 +00:00
|
|
|
// Dependencies: [1936, 1084, 1114, 504, 2]
|
2026-07-29 08:29:29 +00:00
|
|
|
// Exports: default, useSettingsOverrideReason
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 15415 (getSettingsOverrideReason)
|
2026-09-10 05:38:07 +00:00
|
|
|
import util from "util" /* 1114 */;
|
|
|
|
|
import UserSettingsOverridesStore from "UserSettingsOverridesStore" /* 1936 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
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");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default function getSettingsOverrideReason(arg0) {
|
|
|
|
|
if (constants.REDUCED_MOTION === arg0) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const intl2 = util.intl;
|
|
|
|
|
return intl2.format(util.t["1dT9V4"], {});
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp.REDUCED_MOTION_STICKERS === arg0) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const intl = util.intl;
|
|
|
|
|
return intl.string(util.t["2ExvRu"]);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
};
|
2026-07-20 16:05:17 +00:00
|
|
|
export const useSettingsOverrideReason = function useSettingsOverrideReason(arg0) {
|
2026-09-10 05:38:07 +00:00
|
|
|
_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"], {});
|
2026-07-29 08:29:29 +00:00
|
|
|
} else if (tmp2.REDUCED_MOTION_STICKERS === appliedOverrideReasonKey) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const intl = util.intl;
|
|
|
|
|
formatResult = intl.string(util.t["2ExvRu"]);
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return formatResult;
|
|
|
|
|
});
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|