CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
index.development.js72 linesDownload Raw Back to system
1System.register(['zustand/vanilla', 'react', 'use-sync-external-store/shim/with-selector'], (function (exports) {2  'use strict';3  var _starExcludes = {4    __proto__: null,5    create: 1,6    default: 1,7    useStore: 18  };9  var createStore, ReactExports, useSyncExternalStoreExports;10  return {11    setters: [function (module) {12      createStore = module.createStore;13      var setter = { __proto__: null };14      for (var name in module) {15        if (!_starExcludes[name]) setter[name] = module[name];16      }17      exports(setter);18    }, function (module) {19      ReactExports = module.default;20    }, function (module) {21      useSyncExternalStoreExports = module.default;22    }],23    execute: (function () {24 25      exports("useStore", useStore);26 27      const { useDebugValue } = ReactExports;28      const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports;29      let didWarnAboutEqualityFn = false;30      const identity = (arg) => arg;31      function useStore(api, selector = identity, equalityFn) {32        if (equalityFn && !didWarnAboutEqualityFn) {33          console.warn(34            "[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"35          );36          didWarnAboutEqualityFn = true;37        }38        const slice = useSyncExternalStoreWithSelector(39          api.subscribe,40          api.getState,41          api.getServerState || api.getInitialState,42          selector,43          equalityFn44        );45        useDebugValue(slice);46        return slice;47      }48      const createImpl = (createState) => {49        if (typeof createState !== "function") {50          console.warn(51            "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."52          );53        }54        const api = typeof createState === "function" ? createStore(createState) : createState;55        const useBoundStore = (selector, equalityFn) => useStore(api, selector, equalityFn);56        Object.assign(useBoundStore, api);57        return useBoundStore;58      };59      const create = exports("create", (createState) => createState ? createImpl(createState) : createImpl);60      var react = exports("default", (createState) => {61        {62          console.warn(63            "[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."64          );65        }66        return create(createState);67      });68 69    })70  };71}));72