2026-10-13 12:43:34 +00:00
|
|
|
// Module ID: 13954
|
|
|
|
|
// Function ID: 13955
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isClipsEnabled
|
2026-10-13 12:43:34 +00:00
|
|
|
// Dependencies: [2018, 13955, 558, 576, 504, 2]
|
2026-10-03 08:58:59 +00:00
|
|
|
// Exports: isClipsEnabled
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-10-13 12:43:34 +00:00
|
|
|
// Module 13954 (isClipsEnabled)
|
2026-10-03 08:58:59 +00:00
|
|
|
import react from "react" /* 576 */;
|
2026-10-13 12:43:34 +00:00
|
|
|
import ClipsExperiment from "ClipsExperiment" /* 13955 */;
|
2026-10-09 10:00:15 +00:00
|
|
|
import ClipsStore from "ClipsStore" /* 2018 */;
|
2026-10-03 08:58:59 +00:00
|
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-10-03 08:58:59 +00:00
|
|
|
let tmp;
|
|
|
|
|
const get_initialized = tmp(504);
|
2026-10-08 09:57:35 +00:00
|
|
|
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useIsClipsEnabled() {
|
2026-10-03 08:58:59 +00:00
|
|
|
let state;
|
|
|
|
|
let tmp5;
|
|
|
|
|
let tmp6;
|
|
|
|
|
const obj = react;
|
|
|
|
|
const cResult = obj.c(2);
|
|
|
|
|
const obj2 = ClipsExperiment;
|
|
|
|
|
let isClipsAvailable = obj2.useIsClipsAvailable();
|
|
|
|
|
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
|
|
|
const items = [ClipsStore];
|
2026-10-08 09:57:35 +00:00
|
|
|
const fn = function t() {
|
2026-10-03 08:58:59 +00:00
|
|
|
return state.getState().clipsSettings.clipsEnabled;
|
|
|
|
|
};
|
|
|
|
|
cResult[0] = items;
|
|
|
|
|
cResult[1] = fn;
|
|
|
|
|
tmp5 = items;
|
|
|
|
|
tmp6 = fn;
|
|
|
|
|
} else {
|
|
|
|
|
[tmp5, tmp6] = cResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-10-03 08:58:59 +00:00
|
|
|
const tmpResult = get_initialized;
|
|
|
|
|
if (isClipsAvailable) {
|
|
|
|
|
isClipsAvailable = tmpResult.useStateFromStores(tmp5, tmp6);
|
|
|
|
|
}
|
|
|
|
|
return isClipsAvailable;
|
2026-10-08 09:57:35 +00:00
|
|
|
}) : (function useIsClipsEnabled() {
|
2026-10-03 08:58:59 +00:00
|
|
|
let state;
|
|
|
|
|
const obj = ClipsExperiment;
|
|
|
|
|
let isClipsAvailable = obj.useIsClipsAvailable();
|
2026-09-10 05:38:07 +00:00
|
|
|
const items = [ClipsStore];
|
2026-10-03 08:58:59 +00:00
|
|
|
const obj2 = get_initialized;
|
2026-08-12 06:57:52 +00:00
|
|
|
if (isClipsAvailable) {
|
2026-08-25 06:04:03 +00:00
|
|
|
isClipsAvailable = obj2.useStateFromStores(items, () => state.getState().clipsSettings.clipsEnabled);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-12 06:57:52 +00:00
|
|
|
return isClipsAvailable;
|
2026-10-03 08:58:59 +00:00
|
|
|
});
|
|
|
|
|
const result = size.fileFinishedImporting("modules/clips/isClipsEnabled.tsx");
|
|
|
|
|
|
|
|
|
|
export const isClipsEnabled = function isClipsEnabled() {
|
|
|
|
|
const obj = ClipsExperiment;
|
|
|
|
|
const clipsEnabled = obj.areClipsAvailable() && ClipsStore.getState().clipsSettings.clipsEnabled;
|
|
|
|
|
return clipsEnabled;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-10-03 08:58:59 +00:00
|
|
|
export const useIsClipsEnabled = tmp2;
|