This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
// Metro module 16208 (f16209).
import { Soundpacks } from "../soundpacks/Constants";
import { t } from "../../intl/index.native";
import Module16209 from "../../_bundle/Module16209";
import Module16210 from "../../_bundle/Module16210";
import { DismissibleContent } from "../../_bundle/Module1358";
const r15 = {
THROW_EMOJI: 0,
0: "THROW_EMOJI",
SNOW: 1,
1: "SNOW"
};
const r20 = {
experiment: null,
useIsExperimentEligible: () => false,
getIsExperimentEligible: () => false,
startTimeMs: 1766163600000,
endTimeMs: 1767632400000,
isDesktopOnly: true,
soundpack: Soundpacks.WINTER_HOLIDAY,
soundpackLabel: t.Z5OQNp,
appSpinnerSources: {
webmDark: Module16209,
webmLight: Module16210
},
coachmarkDismissibleContent: DismissibleContent.HOLIDAY_COACHMARK_WINTER_2025,
coachmarkBackgroundColor: "#1170ed"
};
export default r20;
export { r15 as HolidayEmojiAnimationType };
+64
View File
@@ -0,0 +1,64 @@
// Metro module 16207 (f16208).
import ApexExperimentStore from "../experiments/apex/ApexExperimentStore";
import SoundpackStore from "../soundpacks/SoundpackStore";
import { Soundpacks } from "../soundpacks/Constants";
import AutomaticLifecycleManager from "../../lib/AutomaticLifecycleManager";
import HolidayEventsConfig from "./HolidayEventsConfig";
import HolidayEventsUtils from "./HolidayEventsUtils";
import { setSoundpack } from "../soundpacks/SoundpackActions";
import { setIncomingRingtone } from "./setIncomingRingtone.android";
import getSoundsForPack from "../soundpacks/getSoundsForPack";
class HolidayEventsManager extends AutomaticLifecycleManager {
stores = new Map().set(ApexExperimentStore, () => this.handleExperimentUpdated());
actions = {
NOTIFICATIONS_SET_DISABLED_SOUNDS: this.updateRingtone
};
handleExperimentUpdated = () => {
if (!HolidayEventsConfig.isDesktopOnly) {
this.updateSoundpack();
this.updateRingtone();
}
};
updateSoundpack() {
let r21;
const soundpack = SoundpackStore.getSoundpack();
const lastSoundpackExperimentId = SoundpackStore.getLastSoundpackExperimentId();
const r6 = HolidayEventsConfig.experiment == null ? void 0 : HolidayEventsConfig.experiment.definition.name;
L14: {
L6: {
r21 = HolidayEventsUtils.isEligible();
if (!r21) {
if (lastSoundpackExperimentId == null && soundpack === Soundpacks.CLASSIC) {
break L6;
}
setSoundpack(Soundpacks.CLASSIC, null);
break L14;
}
}
if (r21) {
r21 = HolidayEventsConfig.soundpack != null;
}
if (r21) {
r21 = r6 !== lastSoundpackExperimentId;
}
if (r21) {
r21 = soundpack !== HolidayEventsConfig.soundpack;
}
if (r21) {
setSoundpack(HolidayEventsConfig.soundpack, r6);
}
}
}
updateRingtone() {
if (HolidayEventsUtils.isEligible()) {
const soundsForPack = getSoundsForPack(SoundpackStore.getSoundpack());
if (soundsForPack.call_ringing != null) {
setIncomingRingtone("call_ringing", soundsForPack.call_ringing + ".mp3");
}
} else {
setIncomingRingtone("call_ringing", "call_ringing.mp3");
}
}
}
const holidayEventsManager = new HolidayEventsManager();
export default holidayEventsManager;
+42
View File
@@ -0,0 +1,42 @@
// Metro module 16211 (f16212).
import HolidayEventsConfig from "./HolidayEventsConfig";
const r12 = {
isEligible: function isEligible() {
const isExperimentEligible = HolidayEventsConfig.getIsExperimentEligible();
const r11 = Date.now();
return r11 >= HolidayEventsConfig.startTimeMs && r11 <= HolidayEventsConfig.endTimeMs && isExperimentEligible;
},
useHolidaySoundpack: function useHolidaySoundpack() {
const isExperimentEligible = HolidayEventsConfig.useIsExperimentEligible();
const r8 = Date.now();
return r8 >= HolidayEventsConfig.startTimeMs && r8 <= HolidayEventsConfig.endTimeMs && isExperimentEligible ? HolidayEventsConfig.soundpack != null ? HolidayEventsConfig.soundpackLabel != null ? {
soundpack: HolidayEventsConfig.soundpack,
soundpackLabel: HolidayEventsConfig.soundpackLabel
} : null : null : null;
},
useIsEligible: function useIsEligible() {
const isExperimentEligible = HolidayEventsConfig.useIsExperimentEligible();
const r11 = Date.now();
return r11 >= HolidayEventsConfig.startTimeMs && r11 <= HolidayEventsConfig.endTimeMs && isExperimentEligible;
},
getAppSpinnerSources: function getAppSpinnerSources() {
const r6 = Date.now();
return r6 >= HolidayEventsConfig.startTimeMs && r6 <= HolidayEventsConfig.endTimeMs ? HolidayEventsConfig.appSpinnerSources : null;
},
getLoadingTips: function getLoadingTips() {
const r6 = Date.now();
const r0 = r6 >= HolidayEventsConfig.startTimeMs && r6 <= HolidayEventsConfig.endTimeMs;
let r16 = null;
if (r0) {
const getLoadingTips2 = HolidayEventsConfig.getLoadingTips;
r16 = getLoadingTips2 == null ? void 0 : getLoadingTips2.call(HolidayEventsConfig);
}
return r16;
},
getHolidaySoundpack: function getHolidaySoundpack() {
const isExperimentEligible = HolidayEventsConfig.getIsExperimentEligible();
const r8 = Date.now();
return r8 >= HolidayEventsConfig.startTimeMs && r8 <= HolidayEventsConfig.endTimeMs && isExperimentEligible ? HolidayEventsConfig.soundpack != null ? HolidayEventsConfig.soundpack : null : null;
}
};
export default r12;
@@ -0,0 +1,11 @@
// Metro module 16213 (f16214).
import { NativeModules } from "react-native";
export function setIncomingRingtone(a0) {
const DCDNotificationCategoryUtils = NativeModules.DCDNotificationCategoryUtils;
if (DCDNotificationCategoryUtils != null) {
const setIncomingRingtone2 = DCDNotificationCategoryUtils.setIncomingRingtone;
if (setIncomingRingtone2 != null) {
setIncomingRingtone2.call(DCDNotificationCategoryUtils, a0);
}
}
}