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

138 lines
3.9 KiB
TypeScript
Raw Normal View History

// Module ID: 15918
// Function ID: 15919
2026-08-15 05:55:55 +00:00
// Name: route
// Dependencies: [11473, 1114, 9781, 14453, 15919, 15920, 2722, 15917, 15922, 15923, 15924, 15925, 2]
2026-08-15 05:55:55 +00:00
// Module 15918 (route)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import getSystemLocale from "getSystemLocale" /* 1114 */;
import messagesProxyDefault from "messagesProxy" /* 2722 */;
import BellIcon from "BellIcon" /* 9781 */;
import getNamedExperiment from "getNamedExperiment" /* 14453 */;
import MobileNotifSettings from "MobileNotifSettings" /* 15917 */;
import frozen from "frozen" /* 15919 */;
import createToggle from "createToggle" /* 11473 */;
2026-08-15 05:55:55 +00:00
let obj = {
useTitle() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
2026-09-03 10:05:34 +00:00
return intl.string(getSystemLocale.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 getNamedExperiment.useIsDeclarativeSettingsUIAvailable("RootRoute");
2026-08-15 05:55:55 +00:00
},
screen: null
};
obj = {
2026-09-03 10:05:34 +00:00
route: frozen.MobileNotifSettingsSections.NOTIFICATIONS_REDESIGN,
2026-08-15 05:55:55 +00:00
getComponent() {
return require(15920).default;
2026-08-15 05:55:55 +00:00
}
};
2026-09-03 10:05:34 +00:00
obj[4] = obj;
2026-08-15 05:55:55 +00:00
const route = createToggle.createRoute(obj);
2026-08-31 15:47:37 +00:00
const obj1 = {
useTitle() {
const intl = getSystemLocale.intl;
2026-09-03 10:05:34 +00:00
return intl.string(messagesProxyDefault.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 getNamedExperiment.useNotifCategoryVisibility("REALTIME");
2026-08-31 15:47:37 +00:00
},
screen: {
2026-09-03 10:05:34 +00:00
route: frozen.MobileNotifSettingsSections.NOTIF_REALTIME,
2026-08-31 15:47:37 +00:00
getComponent() {
return require(15922).default;
2026-08-31 15:47:37 +00:00
}
}
};
const route1 = createToggle.createRoute(obj1);
const obj3 = {
useTitle() {
const intl = getSystemLocale.intl;
2026-09-03 10:05:34 +00:00
return intl.string(messagesProxyDefault["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 getNamedExperiment.useNotifCategoryVisibility("CATEGORY_SOCIAL");
2026-08-31 15:47:37 +00:00
},
screen: null
};
const obj2 = {
2026-09-03 10:05:34 +00:00
route: frozen.MobileNotifSettingsSections.NOTIF_REALTIME,
2026-08-31 15:47:37 +00:00
getComponent() {
return require(15922).default;
2026-08-31 15:47:37 +00:00
}
};
obj3[3] = {
2026-09-03 10:05:34 +00:00
route: frozen.MobileNotifSettingsSections.NOTIF_CATEGORY_SOCIAL,
2026-08-31 15:47:37 +00:00
getComponent() {
return require(15923).default;
2026-08-31 15:47:37 +00:00
}
};
const route2 = createToggle.createRoute(obj3);
const obj5 = {
useTitle() {
const intl = getSystemLocale.intl;
2026-09-03 10:05:34 +00:00
return intl.string(messagesProxyDefault.zRKbpz);
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 getNamedExperiment.useNotifCategoryVisibility("CATEGORY_SERVER");
2026-08-31 15:47:37 +00:00
},
screen: null
};
const obj4 = {
2026-09-03 10:05:34 +00:00
route: frozen.MobileNotifSettingsSections.NOTIF_CATEGORY_SOCIAL,
2026-08-31 15:47:37 +00:00
getComponent() {
return require(15923).default;
2026-08-31 15:47:37 +00:00
}
};
obj5[3] = {
2026-09-03 10:05:34 +00:00
route: frozen.MobileNotifSettingsSections.NOTIF_CATEGORY_SERVER,
2026-08-31 15:47:37 +00:00
getComponent() {
return require(15924).default;
2026-08-31 15:47:37 +00:00
}
};
const route3 = createToggle.createRoute(obj5);
2026-09-03 10:05:34 +00:00
const obj7 = {
useTitle() {
const intl = getSystemLocale.intl;
return intl.string(messagesProxyDefault.q5M7HV);
},
parent: MobileNotifSettings.MobileNotifSettings.NOTIFICATIONS_REDESIGN,
usePredicate() {
return getNamedExperiment.useNotifCategoryVisibility("CATEGORY_OTHER");
2026-09-03 10:05:34 +00:00
},
screen: null
};
2026-08-31 15:47:37 +00:00
const obj6 = {
2026-09-03 10:05:34 +00:00
route: frozen.MobileNotifSettingsSections.NOTIF_CATEGORY_SERVER,
getComponent() {
return require(15924).default;
2026-09-03 10:05:34 +00:00
}
};
obj7[3] = {
route: frozen.MobileNotifSettingsSections.NOTIF_CATEGORY_OTHER,
getComponent() {
return require(15925).default;
2026-09-03 10:05:34 +00:00
}
};
const route4 = createToggle.createRoute(obj7);
const obj8 = {
2026-08-31 15:47:37 +00:00
route: frozen.MobileNotifSettingsSections.NOTIF_CATEGORY_OTHER,
getComponent() {
return require(15925).default;
2026-08-31 15:47:37 +00:00
}
};
2026-08-24 06:08:38 +00:00
const result = set.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;