2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 4531
|
|
|
|
|
// Function ID: 4532
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isClipsEnabled
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [4507, 4532, 589, 500, 2]
|
2026-07-29 08:29:29 +00:00
|
|
|
// Exports: isClipsEnabled, isDecoupledClipsEnabled, useIsClipsEnabled, useIsDecoupledClipsEnabled
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 4531 (isClipsEnabled)
|
|
|
|
|
import initialize from "initialize" /* 589 */;
|
|
|
|
|
import apexExperiment from "apexExperiment" /* 4532 */;
|
|
|
|
|
import closure_2 from "_migrateDefaultStorage" /* 4507 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
require = arg1;
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/clips/isClipsEnabled.tsx");
|
2026-07-29 08:29:29 +00:00
|
|
|
|
|
|
|
|
export const isClipsEnabled = function isClipsEnabled() {
|
2026-08-24 06:08:38 +00:00
|
|
|
let decoupledClipsEnabled = apexExperiment.areClipsAvailable();
|
2026-08-12 06:57:52 +00:00
|
|
|
if (decoupledClipsEnabled) {
|
|
|
|
|
decoupledClipsEnabled = store.getState().clipsSettings.clipsEnabled;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-12 06:57:52 +00:00
|
|
|
if (decoupledClipsEnabled) {
|
|
|
|
|
decoupledClipsEnabled = store.getState().clipsSettings.decoupledClipsEnabled;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-12 06:57:52 +00:00
|
|
|
return decoupledClipsEnabled;
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
|
|
|
|
export const useIsClipsEnabled = function useIsClipsEnabled() {
|
2026-08-24 06:08:38 +00:00
|
|
|
let isClipsAvailable = apexExperiment.useIsClipsAvailable();
|
|
|
|
|
const obj = apexExperiment;
|
|
|
|
|
const items = [closure_2];
|
|
|
|
|
const stateFromStores = initialize.useStateFromStores(items, () => store.getState().clipsSettings.clipsEnabled);
|
|
|
|
|
const obj2 = initialize;
|
|
|
|
|
const items1 = [closure_2];
|
|
|
|
|
const stateFromStores1 = initialize.useStateFromStores(items1, () => store.getState().clipsSettings.decoupledClipsEnabled);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (isClipsAvailable) {
|
|
|
|
|
isClipsAvailable = stateFromStores;
|
|
|
|
|
}
|
|
|
|
|
if (isClipsAvailable) {
|
2026-08-12 06:57:52 +00:00
|
|
|
isClipsAvailable = stateFromStores1;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return isClipsAvailable;
|
2026-07-29 08:29:29 +00:00
|
|
|
};
|
2026-07-20 16:05:17 +00:00
|
|
|
export const isDecoupledClipsEnabled = function isDecoupledClipsEnabled() {
|
2026-08-24 06:08:38 +00:00
|
|
|
let decoupledClipsEnabled = apexExperiment.areClipsAvailable();
|
2026-08-12 06:57:52 +00:00
|
|
|
if (decoupledClipsEnabled) {
|
|
|
|
|
decoupledClipsEnabled = store.getState().clipsSettings.clipsEnabled;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-08-12 06:57:52 +00:00
|
|
|
if (decoupledClipsEnabled) {
|
|
|
|
|
decoupledClipsEnabled = obj2.getState().clipsSettings.decoupledClipsEnabled;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj = apexExperiment;
|
2026-08-12 06:57:52 +00:00
|
|
|
obj2 = store;
|
|
|
|
|
const tmp = require;
|
|
|
|
|
if (decoupledClipsEnabled) {
|
|
|
|
|
decoupledClipsEnabled = tmpResult.isWindows();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-12 06:57:52 +00:00
|
|
|
return decoupledClipsEnabled;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const useIsDecoupledClipsEnabled = function useIsDecoupledClipsEnabled() {
|
2026-08-24 06:08:38 +00:00
|
|
|
let isClipsAvailable = apexExperiment.useIsClipsAvailable();
|
|
|
|
|
const obj = apexExperiment;
|
2026-08-12 06:57:52 +00:00
|
|
|
const tmp = require;
|
2026-08-24 06:08:38 +00:00
|
|
|
const items = [closure_2];
|
|
|
|
|
const stateFromStores = initialize.useStateFromStores(items, () => store.getState().clipsSettings.clipsEnabled);
|
|
|
|
|
const obj2 = initialize;
|
|
|
|
|
const items1 = [closure_2];
|
|
|
|
|
const stateFromStores1 = initialize.useStateFromStores(items1, () => store.getState().clipsSettings.decoupledClipsEnabled);
|
2026-07-29 08:29:29 +00:00
|
|
|
if (isClipsAvailable) {
|
|
|
|
|
isClipsAvailable = stateFromStores;
|
|
|
|
|
}
|
|
|
|
|
if (isClipsAvailable) {
|
2026-08-12 06:57:52 +00:00
|
|
|
isClipsAvailable = stateFromStores1;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj3 = initialize;
|
2026-08-12 06:57:52 +00:00
|
|
|
if (isClipsAvailable) {
|
|
|
|
|
isClipsAvailable = tmpResult.isWindows();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-12 06:57:52 +00:00
|
|
|
return isClipsAvailable;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|