decord/source/modules/notifications/NotificationSettingsUtils.tsx

81 lines
2.5 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 13515
// Function ID: 13516
// Name: getAssignedNotifSettingsAndMappings
// Dependencies: [32, 13509, 13516, 2]
2026-07-20 16:05:17 +00:00
// Exports: getAssignedNotifSettingsAndMappings
2026-07-29 08:29:29 +00:00
// Module 13515 (getAssignedNotifSettingsAndMappings)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
import items2 from "items2";
2026-07-29 08:29:29 +00:00
let c3;
let c4;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ NOTIF_SETTING_MAPPING: c3, NOTIF_SETTINGS: c4 } = items2);
2026-07-23 10:11:24 +00:00
const result = require("knownExperimentConfigs").fileFinishedImporting("modules/notifications/NotificationSettingsUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getAssignedNotifSettingsAndMappings = function getAssignedNotifSettingsAndMappings() {
const settings = [];
const mappings = [];
const set = new Set();
2026-07-29 08:29:29 +00:00
const iter = dependencyMap[Symbol.iterator]();
const nextResult = iter.next();
while (iter !== undefined) {
let tmp3 = nextResult;
if (null != nextResult.experiment) {
let tmp4 = require;
let tmp5 = dependencyMap;
let tmp6 = nextResult;
let tmp7 = require(13516) /* knownExperimentConfigs */.knownExperimentConfigs[tmp3.experiment];
let obj2 = tmp7;
if (tmp7.definition.name !== tmp3.experiment) {
let _Error = Error;
let _HermesInternal = HermesInternal;
let str = " assigned to name ";
let str2 = "Experiment called ";
let tmp13 = new.target;
let tmp14 = new.target;
let error = new Error("Experiment called " + tmp7.definition.name + " assigned to name " + nextResult.experiment);
let tmp16 = error;
throw error;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
let tmp8 = tmp7;
let tmp9 = nextResult;
let variations = tmp3.variations;
continue;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
let tmp10 = nextResult;
let arr = settings.push(tmp3);
let addResult = set.add(tmp3.id);
continue;
2026-07-20 16:05:17 +00:00
}
const entries = Object.entries(closure_3);
2026-07-29 08:29:29 +00:00
while (tmp18 !== undefined) {
let tmp20 = callback;
let tmp21 = callback(tmp19, 2);
let tmp22 = tmp21[1];
2026-07-20 16:05:17 +00:00
let _parseInt = parseInt;
2026-07-29 08:29:29 +00:00
let parsed = parseInt(tmp21[0]);
let tmp24 = tmp22;
let tmp25 = tmp22;
for (const item10082 of tmp22) {
let tmp26 = item10082;
if (set.has(item10082)) {
let obj = { notifType: null, notifSetting: null };
let tmp27 = parsed;
obj[0] = parsed;
let tmp28 = item10082;
obj[1] = tmp26;
arr = mappings.push(obj);
let tmp30 = obj3;
obj3.return();
break;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
continue;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
continue;
2026-07-20 16:05:17 +00:00
}
return { settings, mappings };
};