decord/source/modules/notifications/settings/native/MobileNotifSettingsRoutes.tsx

144 lines
4.7 KiB
TypeScript
Raw Normal View History

// Module ID: 16005
// Function ID: 16006
// Name: MobileNotifSettingsRoutes
// Dependencies: [11601, 1114, 9906, 14538, 16006, 16007, 2722, 15572, 16013, 16014, 16015, 16016, 2]
2026-08-15 05:55:55 +00:00
// Module 16005 (MobileNotifSettingsRoutes)
import util from "util" /* 1114 */;
import _modDef2722 from "module_2722" /* 2722 */;
import BellIcon from "BellIcon" /* 9906 */;
import notifications_NotificationSettingsUtils from "notifications/NotificationSettingsUtils" /* 14538 */;
import MobileNotifSettings from "MobileNotifSettings" /* 15572 */;
import MobileNotifSettingsSections from "MobileNotifSettingsSections" /* 16006 */;
import SettingBuilders_mod from "SettingBuilders" /* 11601 */;
import size from "module_2" /* 2 */;
2026-08-15 05:55:55 +00:00
const require = globalThis.__r;
let SettingBuilders = SettingBuilders_mod;
const obj = {
2026-08-15 05:55:55 +00:00
useTitle() {
const intl = util.intl;
return intl.string(util.t.HcoRu0);
2026-08-15 05:55:55 +00:00
},
2026-09-03 10:05:34 +00:00
IconComponent: BellIcon.BellIcon,
parent: null,
2026-08-15 05:55:55 +00:00
usePredicate() {
return notifications_NotificationSettingsUtils.useIsDeclarativeSettingsUIAvailable("RootRoute");
2026-08-31 15:47:37 +00:00
},
screen: {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIFICATIONS_REDESIGN,
2026-08-31 15:47:37 +00:00
getComponent() {
return require("RedesignSettingsNotificationScreen").default;
2026-08-31 15:47:37 +00:00
}
}
};
const route = SettingBuilders.createRoute(obj);
let SettingBuilders = SettingBuilders_mod;
2026-08-31 15:47:37 +00:00
const obj3 = {
useTitle() {
const intl = util.intl;
return intl.string(_modDef2722.S5cB9e);
2026-08-31 15:47:37 +00:00
},
2026-09-03 10:05:34 +00:00
parent: MobileNotifSettings.MobileNotifSettings.NOTIFICATIONS_REDESIGN,
2026-08-31 15:47:37 +00:00
usePredicate() {
return notifications_NotificationSettingsUtils.useNotifCategoryVisibility("REALTIME");
2026-08-31 15:47:37 +00:00
},
screen: null
};
const obj2 = {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIFICATIONS_REDESIGN,
2026-08-31 15:47:37 +00:00
getComponent() {
return require("RedesignSettingsNotificationScreen").default;
2026-08-31 15:47:37 +00:00
}
};
obj3.screen = {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIF_REALTIME,
2026-08-31 15:47:37 +00:00
getComponent() {
return require("RedesignSettingsRealtimeScreen").default;
2026-08-31 15:47:37 +00:00
}
};
const route1 = SettingBuilders.createRoute(obj3);
let SettingBuilders = SettingBuilders_mod;
2026-08-31 15:47:37 +00:00
const obj5 = {
useTitle() {
const intl = util.intl;
return intl.string(_modDef2722["UzRF+8"]);
2026-08-31 15:47:37 +00:00
},
2026-09-03 10:05:34 +00:00
parent: MobileNotifSettings.MobileNotifSettings.NOTIFICATIONS_REDESIGN,
2026-08-31 15:47:37 +00:00
usePredicate() {
return notifications_NotificationSettingsUtils.useNotifCategoryVisibility("CATEGORY_SOCIAL");
2026-08-31 15:47:37 +00:00
},
screen: null
};
const obj4 = {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIF_REALTIME,
2026-08-31 15:47:37 +00:00
getComponent() {
return require("RedesignSettingsRealtimeScreen").default;
2026-08-31 15:47:37 +00:00
}
};
obj5.screen = {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIF_CATEGORY_SOCIAL,
2026-08-31 15:47:37 +00:00
getComponent() {
return require("RedesignSettingsCategorySocialScreen").default;
2026-08-31 15:47:37 +00:00
}
};
const route2 = SettingBuilders.createRoute(obj5);
let SettingBuilders = SettingBuilders_mod;
2026-09-03 10:05:34 +00:00
const obj7 = {
useTitle() {
const intl = util.intl;
return intl.string(_modDef2722.zRKbpz);
2026-09-03 10:05:34 +00:00
},
parent: MobileNotifSettings.MobileNotifSettings.NOTIFICATIONS_REDESIGN,
usePredicate() {
return notifications_NotificationSettingsUtils.useNotifCategoryVisibility("CATEGORY_SERVER");
2026-09-03 10:05:34 +00:00
},
screen: null
};
2026-08-31 15:47:37 +00:00
const obj6 = {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIF_CATEGORY_SOCIAL,
2026-09-03 10:05:34 +00:00
getComponent() {
return require("RedesignSettingsCategorySocialScreen").default;
2026-09-03 10:05:34 +00:00
}
};
obj7.screen = {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIF_CATEGORY_SERVER,
2026-09-03 10:05:34 +00:00
getComponent() {
return require("RedesignSettingsCategoryServerScreen").default;
2026-09-03 10:05:34 +00:00
}
};
const route3 = SettingBuilders.createRoute(obj7);
let SettingBuilders = SettingBuilders_mod;
const obj9 = {
useTitle() {
const intl = util.intl;
return intl.string(_modDef2722.q5M7HV);
},
parent: MobileNotifSettings.MobileNotifSettings.NOTIFICATIONS_REDESIGN,
usePredicate() {
return notifications_NotificationSettingsUtils.useNotifCategoryVisibility("CATEGORY_OTHER");
},
screen: null
};
2026-09-03 10:05:34 +00:00
const obj8 = {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIF_CATEGORY_SERVER,
getComponent() {
return require("RedesignSettingsCategoryServerScreen").default;
}
};
obj9.screen = {
route: MobileNotifSettingsSections.MobileNotifSettingsSections.NOTIF_CATEGORY_OTHER,
2026-08-31 15:47:37 +00:00
getComponent() {
return require("RedesignSettingsCategoryOtherScreen").default;
2026-08-31 15:47:37 +00:00
}
};
const route4 = SettingBuilders.createRoute(obj9);
const result = size.fileFinishedImporting("modules/notifications/settings/native/MobileNotifSettingsRoutes.tsx");
2026-08-15 05:55:55 +00:00
2026-09-03 10:05:34 +00:00
export const RootRoute = route;
export const RealtimeRoute = route1;
export const CategorySocialRoute = route2;
export const CategoryServerRoute = route3;
export const CategoryOtherRoute = route4;