2026-10-10 08:08:14 +00:00
|
|
|
// Module ID: 10808
|
|
|
|
|
// Function ID: 10809
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: getURLForApplication
|
2026-10-12 06:59:38 +00:00
|
|
|
// Dependencies: [9067, 9066, 2]
|
2026-07-29 08:29:29 +00:00
|
|
|
// Exports: default, getNonTestModeUrlForApplication, isUsingDevShelfActivityUrlOverride
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-10 08:08:14 +00:00
|
|
|
// Module 10808 (getURLForApplication)
|
2026-10-12 06:59:38 +00:00
|
|
|
import TestModeStore from "TestModeStore" /* 9067 */;
|
|
|
|
|
import DeveloperActivityShelfStore from "DeveloperActivityShelfStore" /* 9066 */;
|
2026-10-03 08:58:59 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/activities/getURLForApplication.tsx");
|
2026-07-29 08:29:29 +00:00
|
|
|
|
|
|
|
|
export default function getURLForApplication(arg0) {
|
2026-10-03 08:58:59 +00:00
|
|
|
let activityUrlOverride;
|
2026-09-10 05:38:07 +00:00
|
|
|
const state = DeveloperActivityShelfStore.getState();
|
2026-07-29 08:29:29 +00:00
|
|
|
let useActivityUrlOverride = state.useActivityUrlOverride;
|
2026-10-03 08:58:59 +00:00
|
|
|
const obj = DeveloperActivityShelfStore;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (useActivityUrlOverride) {
|
|
|
|
|
useActivityUrlOverride = null != state.activityUrlOverride;
|
|
|
|
|
}
|
|
|
|
|
if (useActivityUrlOverride) {
|
|
|
|
|
useActivityUrlOverride = "" !== state.activityUrlOverride;
|
|
|
|
|
}
|
|
|
|
|
if (useActivityUrlOverride) {
|
2026-10-03 08:58:59 +00:00
|
|
|
activityUrlOverride = obj.getState().activityUrlOverride;
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
2026-10-03 08:58:59 +00:00
|
|
|
const tmp4 = TestModeStore;
|
2026-09-10 05:38:07 +00:00
|
|
|
if (TestModeStore.inTestModeForEmbeddedApplication(arg0)) {
|
2026-07-29 08:29:29 +00:00
|
|
|
activityUrlOverride = tmp4.testModeOriginURL;
|
|
|
|
|
} else {
|
|
|
|
|
const _window = window;
|
|
|
|
|
activityUrlOverride = null;
|
|
|
|
|
if (null != ACTIVITY_APPLICATION_HOST) {
|
2026-08-13 07:00:46 +00:00
|
|
|
if (ACTIVITY_APPLICATION_HOST.startsWith("//")) {
|
|
|
|
|
const _URL = URL;
|
|
|
|
|
const _window2 = window;
|
2026-09-18 06:58:00 +00:00
|
|
|
const _window3 = window;
|
2026-08-13 07:00:46 +00:00
|
|
|
const _HermesInternal2 = HermesInternal;
|
2026-10-03 08:58:59 +00:00
|
|
|
const self = this;
|
|
|
|
|
const self2 = this;
|
2026-09-18 06:58:00 +00:00
|
|
|
const uRL = new URL(ACTIVITY_APPLICATION_HOST, "" + window.location.protocol + "//" + window.location.host);
|
|
|
|
|
const _HermesInternal3 = HermesInternal;
|
2026-08-13 07:00:46 +00:00
|
|
|
uRL.hostname = "" + arg0 + "." + uRL.hostname;
|
|
|
|
|
activityUrlOverride = uRL.origin;
|
|
|
|
|
} else {
|
|
|
|
|
const _HermesInternal = HermesInternal;
|
|
|
|
|
activityUrlOverride = "https://" + arg0 + "." + ACTIVITY_APPLICATION_HOST;
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return activityUrlOverride;
|
|
|
|
|
};
|
|
|
|
|
export const getNonTestModeUrlForApplication = function getNonTestModeUrlForApplication(arg0) {
|
2026-08-13 07:00:46 +00:00
|
|
|
if (null == ACTIVITY_APPLICATION_HOST) {
|
|
|
|
|
return null;
|
|
|
|
|
} else if (ACTIVITY_APPLICATION_HOST.startsWith("//")) {
|
|
|
|
|
const _URL = URL;
|
|
|
|
|
const _window = window;
|
2026-09-18 06:58:00 +00:00
|
|
|
const _window2 = window;
|
2026-08-13 07:00:46 +00:00
|
|
|
const _HermesInternal2 = HermesInternal;
|
2026-10-03 08:58:59 +00:00
|
|
|
const self = this;
|
|
|
|
|
const self2 = this;
|
2026-09-18 06:58:00 +00:00
|
|
|
const uRL = new URL(ACTIVITY_APPLICATION_HOST, "" + window.location.protocol + "//" + window.location.host);
|
|
|
|
|
const _HermesInternal3 = HermesInternal;
|
2026-08-13 07:00:46 +00:00
|
|
|
uRL.hostname = "" + arg0 + "." + uRL.hostname;
|
|
|
|
|
return uRL.origin;
|
|
|
|
|
} else {
|
2026-07-20 16:05:17 +00:00
|
|
|
const _HermesInternal = HermesInternal;
|
2026-08-13 07:00:46 +00:00
|
|
|
return "https://" + arg0 + "." + ACTIVITY_APPLICATION_HOST;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
export const isUsingDevShelfActivityUrlOverride = function isUsingDevShelfActivityUrlOverride() {
|
2026-09-10 05:38:07 +00:00
|
|
|
const state = DeveloperActivityShelfStore.getState();
|
2026-10-03 08:58:59 +00:00
|
|
|
const useActivityUrlOverride = state.useActivityUrlOverride && null != state.activityUrlOverride && "" !== state.activityUrlOverride;
|
2026-07-20 16:05:17 +00:00
|
|
|
return useActivityUrlOverride;
|
|
|
|
|
};
|