Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4975.js (118.4 MB)
98 lines
2.7 KiB
TypeScript
98 lines
2.7 KiB
TypeScript
// Module ID: 13983
|
|
// Function ID: 13984
|
|
// Name: settings/NotifSettingsUtils
|
|
// Dependencies: [13984, 1226, 13985, 558, 568, 504, 2]
|
|
// Exports: b64ToDeclarativeSettingsProto
|
|
|
|
// Module 13983 (settings/NotifSettingsUtils)
|
|
import user_settings_UserSettingsUtils from "user_settings/UserSettingsUtils" /* 1226 */;
|
|
import notification_settings from "notification_settings" /* 13985 */;
|
|
import NotifSettingsProtoStore from "NotifSettingsProtoStore" /* 13984 */;
|
|
|
|
require = fn;
|
|
let ReactCompilerGating = fn(558);
|
|
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => {
|
|
_require = arg0;
|
|
const cResult = require("c").c(4);
|
|
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
const items = [NotifSettingsProtoStore];
|
|
cResult[0] = items;
|
|
let first = items;
|
|
} else {
|
|
first = cResult[0];
|
|
}
|
|
if (cResult[1] !== arg0) {
|
|
const fn = function u() {
|
|
return NotifSettingsProtoStore.getSetting(closure_0);
|
|
};
|
|
const items1 = [arg0];
|
|
cResult[1] = arg0;
|
|
cResult[2] = fn;
|
|
cResult[3] = items1;
|
|
let tmp7 = items1;
|
|
let tmp6 = fn;
|
|
} else {
|
|
tmp6 = cResult[2];
|
|
tmp7 = cResult[3];
|
|
}
|
|
const obj = require("c");
|
|
return require("initialize").useStateFromStores(first, tmp6, tmp7);
|
|
}) : ((arg0) => {
|
|
_require = arg0;
|
|
const items = [NotifSettingsProtoStore];
|
|
const items1 = [arg0];
|
|
return require("initialize").useStateFromStores(items, () => NotifSettingsProtoStore.getSetting(closure_0), items1);
|
|
});
|
|
let closure_3 = tmp2;
|
|
fn(558);
|
|
ReactCompilerGating = fn(558);
|
|
const tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => {
|
|
const tmp = closure_3(arg0);
|
|
let flag;
|
|
if (tmp != null) {
|
|
flag = tmp.toggle;
|
|
}
|
|
if (flag == null) {
|
|
flag = true;
|
|
}
|
|
return flag;
|
|
}) : ((arg0) => {
|
|
const tmp = closure_3(arg0);
|
|
let flag;
|
|
if (tmp != null) {
|
|
flag = tmp.toggle;
|
|
}
|
|
if (flag == null) {
|
|
flag = true;
|
|
}
|
|
return flag;
|
|
});
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/notifications/settings/NotifSettingsUtils.tsx");
|
|
|
|
export const b64ToDeclarativeSettingsProto = function b64ToDeclarativeSettingsProto(declarative_settings_proto) {
|
|
return user_settings_UserSettingsUtils.b64ToProto(notification_settings.DeclarativeSettings, declarative_settings_proto);
|
|
};
|
|
export const useNotifSettingValue = tmp2;
|
|
export const useNotifSettingToggleValue = tmp3;
|
|
export const useNotifSettingRadioValue = ReactCompilerGating.isReactCompilerEnabled() ? ((arg0) => {
|
|
const tmp = closure_3(arg0);
|
|
let num;
|
|
if (tmp != null) {
|
|
num = tmp.radio;
|
|
}
|
|
if (num == null) {
|
|
num = 0;
|
|
}
|
|
return num;
|
|
}) : ((arg0) => {
|
|
const tmp = closure_3(arg0);
|
|
let num;
|
|
if (tmp != null) {
|
|
num = tmp.radio;
|
|
}
|
|
if (num == null) {
|
|
num = 0;
|
|
}
|
|
return num;
|
|
});
|