PageSourceSearch

https://razorcms-production.up.railway.app/admin/node_modules/.strapi/vite/deps/chunk-YSWPEPN7.js?v=d15f9e09

js razorcms-production.up.railway.app collected 2026-10-03 12:16:27 UTC 1,468 bytes, 46 lines download raw bytes

1import {
2  useCallbackRef
3} from "/admin/node_modules/.strapi/vite/deps/chunk-NQ2VHHSG.js?v=d15f9e09";
4import {
5  require_react
6} from "/admin/node_modules/.strapi/vite/deps/chunk-VB5JOH6R.js?v=d15f9e09";
7import {
8  __toESM
9} from "/admin/node_modules/.strapi/vite/deps/chunk-X6GFWOGJ.js?v=d15f9e09";
10
11// node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@codemirror+langua_q7p5l5qq6toq5swdfaay2akjmi/node_modules/@strapi/admin/dist/admin/admin/src/hooks/useEnterprise.mjs
12var React = __toESM(require_react(), 1);
13function isEnterprise() {
14  return window.strapi.isEE;
15}
16var useEnterprise = (ceData, eeCallback, opts = {}) => {
17  const { defaultValue = null, combine = (_ceData, eeData) => eeData, enabled = true } = opts;
18  const eeCallbackRef = useCallbackRef(eeCallback);
19  const combineCallbackRef = useCallbackRef(combine);
20  const [{ data }, setData] = React.useState({
21    data: isEnterprise() && enabled ? defaultValue : ceData
22  });
23  React.useEffect(() => {
24    async function importEE() {
25      const eeData = await eeCallbackRef();
26      const combinedValue = combineCallbackRef(ceData, eeData);
27      setData({
28        data: combinedValue ? combinedValue : eeData
29      });
30    }
31    if (isEnterprise() && enabled) {
32      importEE();
33    }
34  }, [
35    ceData,
36    eeCallbackRef,
37    combineCallbackRef,
38    enabled
39  ]);
40  return data;
41};
42
43export {
44  useEnterprise
45};
46//# sourceMappingURL=chunk-YSWPEPN7.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.