2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 16689
|
|
|
|
|
// Function ID: 16690
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: VibegrationsPlatformUtils
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [1895, 13805, 9817, 2]
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 16689 (VibegrationsPlatformUtils)
|
|
|
|
|
import PushNotificationDefault from "PushNotification" /* 9817 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import AppStateStore from "AppStateStore" /* 1895 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
const LocalNotificationTypes = fn(13805).LocalNotificationTypes;
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
let result = size.fileFinishedImporting("modules/vibegrations/lib/VibegrationsPlatformUtils.native.tsx");
|
2026-08-24 06:08:38 +00:00
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
openVibegrationsAppInstallModal() {
|
|
|
|
|
return Promise.resolve();
|
|
|
|
|
},
|
|
|
|
|
isWindowFocused() {
|
2026-09-10 05:38:07 +00:00
|
|
|
return "active" === AppStateStore.getState();
|
2026-08-24 06:08:38 +00:00
|
|
|
},
|
|
|
|
|
areTurnNotificationsDisabled() {
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
presentTurnNotification(arg0) {
|
|
|
|
|
({ projectId, guildId } = arg0);
|
|
|
|
|
({ title, body } = arg0);
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj2 = { category: "local", alertTitle: title, alertBody: body, userInfo: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
if (null != guildId) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj4 = { guildId };
|
|
|
|
|
let obj5 = obj4;
|
2026-08-24 06:08:38 +00:00
|
|
|
} else {
|
2026-09-10 05:38:07 +00:00
|
|
|
obj5 = {};
|
2026-08-24 06:08:38 +00:00
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
const merged = Object.assign(obj5);
|
|
|
|
|
obj2.userInfo = { type: LocalNotificationTypes.VIBEGRATIONS, projectId, channel_id: projectId };
|
|
|
|
|
const result = PushNotificationDefault.presentLocalNotification(obj2);
|
2026-08-24 06:08:38 +00:00
|
|
|
},
|
2026-09-10 05:38:07 +00:00
|
|
|
relayPreviewCapture() {
|
2026-08-24 06:08:38 +00:00
|
|
|
return Promise.resolve({ status: "unavailable" });
|
|
|
|
|
},
|
2026-09-10 05:38:07 +00:00
|
|
|
relayPreviewControl() {
|
2026-08-24 06:08:38 +00:00
|
|
|
return Promise.resolve({ status: "unavailable" });
|
|
|
|
|
},
|
2026-09-10 05:38:07 +00:00
|
|
|
releasePreviewControl() {
|
2026-08-24 06:08:38 +00:00
|
|
|
|
|
|
|
|
},
|
2026-09-10 05:38:07 +00:00
|
|
|
beginPreviewOperation() {
|
2026-08-24 06:08:38 +00:00
|
|
|
|
|
|
|
|
},
|
2026-09-10 05:38:07 +00:00
|
|
|
endPreviewOperation() {
|
2026-08-24 06:08:38 +00:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
};
|