@kengic/vue 0.26.7-beta.46 → 0.26.7-beta.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1444,7 +1444,7 @@ Check the top-level render call using <` + ns + ">.");
1444
1444
  }
1445
1445
  process.env.NODE_ENV === "production" ? react.exports = requireReact_production_min() : react.exports = requireReact_development();
1446
1446
  var reactExports = react.exports;
1447
- const React$1 = /* @__PURE__ */ getDefaultExportFromCjs(reactExports), React$2 = /* @__PURE__ */ _mergeNamespaces({
1447
+ const React$1 = /* @__PURE__ */ getDefaultExportFromCjs(reactExports), ReactOriginal = /* @__PURE__ */ _mergeNamespaces({
1448
1448
  __proto__: null,
1449
1449
  default: React$1
1450
1450
  }, [reactExports]), defaultIconDimensions$1 = Object.freeze(
@@ -2695,11 +2695,11 @@ reactExports.forwardRef((e, r) => IconComponent({
2695
2695
  ...e,
2696
2696
  _ref: r
2697
2697
  }));
2698
- import("./close-outlined-DMcSQWxQ.0683c16c.mjs").then(({ default: e }) => addIcon$1("ant-design:close-outlined", e));
2699
- import("./fullscreen-exit-outlined-X1iYkFc4.da3deb06.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-exit-outlined", e));
2700
- import("./fullscreen-outlined-DDBrsRcy.1885b403.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-outlined", e));
2701
- import("./exclamation-circle-outlined-DZrXCnvM.656424c7.mjs").then(({ default: e }) => addIcon$1("ant-design:exclamation-circle-outlined", e));
2702
- import("./search-outlined-Od1M_oxf.552e1c9b.mjs").then(({ default: e }) => addIcon$1("ant-design:search-outlined", e));
2698
+ import("./close-outlined-DMcSQWxQ.479f2f97.mjs").then(({ default: e }) => addIcon$1("ant-design:close-outlined", e));
2699
+ import("./fullscreen-exit-outlined-X1iYkFc4.50832b66.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-exit-outlined", e));
2700
+ import("./fullscreen-outlined-DDBrsRcy.122b2bd9.mjs").then(({ default: e }) => addIcon$1("ant-design:fullscreen-outlined", e));
2701
+ import("./exclamation-circle-outlined-DZrXCnvM.4dd067b9.mjs").then(({ default: e }) => addIcon$1("ant-design:exclamation-circle-outlined", e));
2702
+ import("./search-outlined-Od1M_oxf.d97e3339.mjs").then(({ default: e }) => addIcon$1("ant-design:search-outlined", e));
2703
2703
  var jsxRuntime = { exports: {} }, reactJsxRuntime_production_min = {};
2704
2704
  /**
2705
2705
  * @license React
@@ -23709,361 +23709,6 @@ function noop$4() {
23709
23709
  function formatProdErrorMessage(e) {
23710
23710
  return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
23711
23711
  }
23712
- var withSelector = { exports: {} }, useSyncExternalStoreWithSelector_production_min = {};
23713
- /**
23714
- * @license React
23715
- * use-sync-external-store-with-selector.production.min.js
23716
- *
23717
- * Copyright (c) Facebook, Inc. and its affiliates.
23718
- *
23719
- * This source code is licensed under the MIT license found in the
23720
- * LICENSE file in the root directory of this source tree.
23721
- */
23722
- var hasRequiredUseSyncExternalStoreWithSelector_production_min;
23723
- function requireUseSyncExternalStoreWithSelector_production_min() {
23724
- if (hasRequiredUseSyncExternalStoreWithSelector_production_min)
23725
- return useSyncExternalStoreWithSelector_production_min;
23726
- hasRequiredUseSyncExternalStoreWithSelector_production_min = 1;
23727
- var e = reactExports;
23728
- function r(x, w) {
23729
- return x === w && (x !== 0 || 1 / x === 1 / w) || x !== x && w !== w;
23730
- }
23731
- var n = typeof Object.is == "function" ? Object.is : r, a = e.useSyncExternalStore, o = e.useRef, l = e.useEffect, u = e.useMemo, p = e.useDebugValue;
23732
- return useSyncExternalStoreWithSelector_production_min.useSyncExternalStoreWithSelector = function(x, w, N, U, ne) {
23733
- var oe = o(null);
23734
- if (oe.current === null) {
23735
- var ue = { hasValue: !1, value: null };
23736
- oe.current = ue;
23737
- } else
23738
- ue = oe.current;
23739
- oe = u(function() {
23740
- function st(aa) {
23741
- if (!ut) {
23742
- if (ut = !0, ta = aa, aa = U(aa), ne !== void 0 && ue.hasValue) {
23743
- var la = ue.value;
23744
- if (ne(la, aa))
23745
- return ea = la;
23746
- }
23747
- return ea = aa;
23748
- }
23749
- if (la = ea, n(ta, aa))
23750
- return la;
23751
- var ua = U(aa);
23752
- return ne !== void 0 && ne(la, ua) ? la : (ta = aa, ea = ua);
23753
- }
23754
- var ut = !1, ta, ea, oa = N === void 0 ? null : N;
23755
- return [function() {
23756
- return st(w());
23757
- }, oa === null ? void 0 : function() {
23758
- return st(oa());
23759
- }];
23760
- }, [w, N, U, ne]);
23761
- var se = a(x, oe[0], oe[1]);
23762
- return l(function() {
23763
- ue.hasValue = !0, ue.value = se;
23764
- }, [se]), p(se), se;
23765
- }, useSyncExternalStoreWithSelector_production_min;
23766
- }
23767
- var useSyncExternalStoreWithSelector_development = {};
23768
- /**
23769
- * @license React
23770
- * use-sync-external-store-with-selector.development.js
23771
- *
23772
- * Copyright (c) Facebook, Inc. and its affiliates.
23773
- *
23774
- * This source code is licensed under the MIT license found in the
23775
- * LICENSE file in the root directory of this source tree.
23776
- */
23777
- var hasRequiredUseSyncExternalStoreWithSelector_development;
23778
- function requireUseSyncExternalStoreWithSelector_development() {
23779
- return hasRequiredUseSyncExternalStoreWithSelector_development || (hasRequiredUseSyncExternalStoreWithSelector_development = 1, process.env.NODE_ENV !== "production" && function() {
23780
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
23781
- var e = reactExports;
23782
- function r(w, N) {
23783
- return w === N && (w !== 0 || 1 / w === 1 / N) || w !== w && N !== N;
23784
- }
23785
- var n = typeof Object.is == "function" ? Object.is : r, a = e.useSyncExternalStore, o = e.useRef, l = e.useEffect, u = e.useMemo, p = e.useDebugValue;
23786
- function x(w, N, U, ne, oe) {
23787
- var ue = o(null), se;
23788
- ue.current === null ? (se = {
23789
- hasValue: !1,
23790
- value: null
23791
- }, ue.current = se) : se = ue.current;
23792
- var st = u(function() {
23793
- var oa = !1, aa, la, ua = function(va) {
23794
- if (!oa) {
23795
- oa = !0, aa = va;
23796
- var wa = ne(va);
23797
- if (oe !== void 0 && se.hasValue) {
23798
- var ba = se.value;
23799
- if (oe(ba, wa))
23800
- return la = ba, ba;
23801
- }
23802
- return la = wa, wa;
23803
- }
23804
- var ma = aa, $a = la;
23805
- if (n(ma, va))
23806
- return $a;
23807
- var xa = ne(va);
23808
- return oe !== void 0 && oe($a, xa) ? $a : (aa = va, la = xa, xa);
23809
- }, ga = U === void 0 ? null : U, ha = function() {
23810
- return ua(N());
23811
- }, fa = ga === null ? void 0 : function() {
23812
- return ua(ga());
23813
- };
23814
- return [ha, fa];
23815
- }, [N, U, ne, oe]), ut = st[0], ta = st[1], ea = a(w, ut, ta);
23816
- return l(function() {
23817
- se.hasValue = !0, se.value = ea;
23818
- }, [ea]), p(ea), ea;
23819
- }
23820
- useSyncExternalStoreWithSelector_development.useSyncExternalStoreWithSelector = x, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
23821
- }()), useSyncExternalStoreWithSelector_development;
23822
- }
23823
- process.env.NODE_ENV === "production" ? withSelector.exports = requireUseSyncExternalStoreWithSelector_production_min() : withSelector.exports = requireUseSyncExternalStoreWithSelector_development();
23824
- var withSelectorExports = withSelector.exports, React = "default" in React$2 ? React$1 : React$2, ContextKey = Symbol.for("react-redux-context"), gT = typeof globalThis < "u" ? globalThis : {};
23825
- function getContext() {
23826
- var n;
23827
- if (!React.createContext)
23828
- return {};
23829
- const e = (n = gT[ContextKey]) != null ? n : gT[ContextKey] = /* @__PURE__ */ new Map();
23830
- let r = e.get(React.createContext);
23831
- return r || (r = React.createContext(
23832
- null
23833
- ), process.env.NODE_ENV !== "production" && (r.displayName = "ReactRedux"), e.set(React.createContext, r)), r;
23834
- }
23835
- var ReactReduxContext = /* @__PURE__ */ getContext(), notInitialized = () => {
23836
- throw new Error("uSES not initialized!");
23837
- };
23838
- function createReduxContextHook(e = ReactReduxContext) {
23839
- return function() {
23840
- const r = React.useContext(e);
23841
- if (process.env.NODE_ENV !== "production" && !r)
23842
- throw new Error(
23843
- "could not find react-redux context value; please ensure the component is wrapped in a <Provider>"
23844
- );
23845
- return r;
23846
- };
23847
- }
23848
- var useReduxContext = /* @__PURE__ */ createReduxContextHook(), useSyncExternalStoreWithSelector = notInitialized, initializeUseSelector = (e) => {
23849
- useSyncExternalStoreWithSelector = e;
23850
- }, refEquality = (e, r) => e === r;
23851
- function createSelectorHook(e = ReactReduxContext) {
23852
- const r = e === ReactReduxContext ? useReduxContext : createReduxContextHook(e), n = (a, o = {}) => {
23853
- const { equalityFn: l = refEquality, devModeChecks: u = {} } = typeof o == "function" ? { equalityFn: o } : o;
23854
- if (process.env.NODE_ENV !== "production") {
23855
- if (!a)
23856
- throw new Error("You must pass a selector to useSelector");
23857
- if (typeof a != "function")
23858
- throw new Error("You must pass a function as a selector to useSelector");
23859
- if (typeof l != "function")
23860
- throw new Error(
23861
- "You must pass a function as an equality function to useSelector"
23862
- );
23863
- }
23864
- const {
23865
- store: p,
23866
- subscription: x,
23867
- getServerState: w,
23868
- stabilityCheck: N,
23869
- identityFunctionCheck: U
23870
- } = r(), ne = React.useRef(!0), oe = React.useCallback(
23871
- {
23872
- [a.name](se) {
23873
- const st = a(se);
23874
- if (process.env.NODE_ENV !== "production") {
23875
- const {
23876
- identityFunctionCheck: ut,
23877
- stabilityCheck: ta
23878
- } = {
23879
- stabilityCheck: N,
23880
- identityFunctionCheck: U,
23881
- ...u
23882
- };
23883
- if (ta === "always" || ta === "once" && ne.current) {
23884
- const ea = a(se);
23885
- if (!l(st, ea)) {
23886
- let oa;
23887
- try {
23888
- throw new Error();
23889
- } catch (aa) {
23890
- ({ stack: oa } = aa);
23891
- }
23892
- console.warn(
23893
- "Selector " + (a.name || "unknown") + ` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
23894
- Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,
23895
- {
23896
- state: se,
23897
- selected: st,
23898
- selected2: ea,
23899
- stack: oa
23900
- }
23901
- );
23902
- }
23903
- }
23904
- if ((ut === "always" || ut === "once" && ne.current) && st === se) {
23905
- let ea;
23906
- try {
23907
- throw new Error();
23908
- } catch (oa) {
23909
- ({ stack: ea } = oa);
23910
- }
23911
- console.warn(
23912
- "Selector " + (a.name || "unknown") + ` returned the root state when called. This can lead to unnecessary rerenders.
23913
- Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,
23914
- { stack: ea }
23915
- );
23916
- }
23917
- ne.current && (ne.current = !1);
23918
- }
23919
- return st;
23920
- }
23921
- }[a.name],
23922
- [a, N, u.stabilityCheck]
23923
- ), ue = useSyncExternalStoreWithSelector(
23924
- x.addNestedSub,
23925
- p.getState,
23926
- w || p.getState,
23927
- oe,
23928
- l
23929
- );
23930
- return React.useDebugValue(ue), ue;
23931
- };
23932
- return Object.assign(n, {
23933
- withTypes: () => n
23934
- }), n;
23935
- }
23936
- var useSelector = /* @__PURE__ */ createSelectorHook();
23937
- function defaultNoopBatch(e) {
23938
- e();
23939
- }
23940
- function createListenerCollection() {
23941
- let e = null, r = null;
23942
- return {
23943
- clear() {
23944
- e = null, r = null;
23945
- },
23946
- notify() {
23947
- defaultNoopBatch(() => {
23948
- let n = e;
23949
- for (; n; )
23950
- n.callback(), n = n.next;
23951
- });
23952
- },
23953
- get() {
23954
- const n = [];
23955
- let a = e;
23956
- for (; a; )
23957
- n.push(a), a = a.next;
23958
- return n;
23959
- },
23960
- subscribe(n) {
23961
- let a = !0;
23962
- const o = r = {
23963
- callback: n,
23964
- next: null,
23965
- prev: r
23966
- };
23967
- return o.prev ? o.prev.next = o : e = o, function() {
23968
- !a || e === null || (a = !1, o.next ? o.next.prev = o.prev : r = o.prev, o.prev ? o.prev.next = o.next : e = o.next);
23969
- };
23970
- }
23971
- };
23972
- }
23973
- var nullListeners = {
23974
- notify() {
23975
- },
23976
- get: () => []
23977
- };
23978
- function createSubscription(e, r) {
23979
- let n, a = nullListeners, o = 0, l = !1;
23980
- function u(se) {
23981
- N();
23982
- const st = a.subscribe(se);
23983
- let ut = !1;
23984
- return () => {
23985
- ut || (ut = !0, st(), U());
23986
- };
23987
- }
23988
- function p() {
23989
- a.notify();
23990
- }
23991
- function x() {
23992
- ue.onStateChange && ue.onStateChange();
23993
- }
23994
- function w() {
23995
- return l;
23996
- }
23997
- function N() {
23998
- o++, n || (n = e.subscribe(x), a = createListenerCollection());
23999
- }
24000
- function U() {
24001
- o--, n && o === 0 && (n(), n = void 0, a.clear(), a = nullListeners);
24002
- }
24003
- function ne() {
24004
- l || (l = !0, N());
24005
- }
24006
- function oe() {
24007
- l && (l = !1, U());
24008
- }
24009
- const ue = {
24010
- addNestedSub: u,
24011
- notifyNestedSubs: p,
24012
- handleChangeWrapper: x,
24013
- isSubscribed: w,
24014
- trySubscribe: ne,
24015
- tryUnsubscribe: oe,
24016
- getListeners: () => a
24017
- };
24018
- return ue;
24019
- }
24020
- var canUseDOM = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", useIsomorphicLayoutEffect$1 = canUseDOM || isReactNative ? React.useLayoutEffect : React.useEffect;
24021
- function Provider$1({
24022
- store: e,
24023
- context: r,
24024
- children: n,
24025
- serverState: a,
24026
- stabilityCheck: o = "once",
24027
- identityFunctionCheck: l = "once"
24028
- }) {
24029
- const u = React.useMemo(() => {
24030
- const w = createSubscription(e);
24031
- return {
24032
- store: e,
24033
- subscription: w,
24034
- getServerState: a ? () => a : void 0,
24035
- stabilityCheck: o,
24036
- identityFunctionCheck: l
24037
- };
24038
- }, [e, a, o, l]), p = React.useMemo(() => e.getState(), [e]);
24039
- useIsomorphicLayoutEffect$1(() => {
24040
- const { subscription: w } = u;
24041
- return w.onStateChange = w.notifyNestedSubs, w.trySubscribe(), p !== e.getState() && w.notifyNestedSubs(), () => {
24042
- w.tryUnsubscribe(), w.onStateChange = void 0;
24043
- };
24044
- }, [u, p]);
24045
- const x = r || ReactReduxContext;
24046
- return /* @__PURE__ */ React.createElement(x.Provider, { value: u }, n);
24047
- }
24048
- var Provider_default = Provider$1;
24049
- function createStoreHook(e = ReactReduxContext) {
24050
- const r = e === ReactReduxContext ? useReduxContext : createReduxContextHook(e), n = () => {
24051
- const { store: a } = r();
24052
- return a;
24053
- };
24054
- return Object.assign(n, {
24055
- withTypes: () => n
24056
- }), n;
24057
- }
24058
- var useStore = /* @__PURE__ */ createStoreHook();
24059
- function createDispatchHook(e = ReactReduxContext) {
24060
- const r = e === ReactReduxContext ? useStore : createStoreHook(e), n = () => r().dispatch;
24061
- return Object.assign(n, {
24062
- withTypes: () => n
24063
- }), n;
24064
- }
24065
- var useDispatch = /* @__PURE__ */ createDispatchHook();
24066
- initializeUseSelector(withSelectorExports.useSyncExternalStoreWithSelector);
24067
23712
  const KgSlice = createSlice({
24068
23713
  initialState: { option: {} },
24069
23714
  name: "Kg",
@@ -24077,18 +23722,6 @@ const KgSlice = createSlice({
24077
23722
  function getOption(e) {
24078
23723
  return console.log("222", e, e.option), e.option;
24079
23724
  }
24080
- const getOption2 = (e) => (console.log("222:B", e, e.option), e.option), kgStore = configureStore({
24081
- middleware: (e) => e({
24082
- serializableCheck: {
24083
- ignoredActionPaths: ["payload.fn"],
24084
- ignoredActions: [],
24085
- ignoredPaths: []
24086
- }
24087
- }),
24088
- reducer: KgSlice.reducer
24089
- });
24090
- useDispatch.withTypes();
24091
- const useKgSelector = useSelector.withTypes();
24092
23725
  var classnames = { exports: {} };
24093
23726
  /*!
24094
23727
  Copyright (c) 2018 Jed Watson.
@@ -25413,7 +25046,7 @@ var token2CSSVar = function(e) {
25413
25046
  if (!n)
25414
25047
  return e();
25415
25048
  }, r);
25416
- }, fullClone$3 = _objectSpread2$7({}, React$2), useInsertionEffect$1 = fullClone$3.useInsertionEffect, useInsertionEffectPolyfill = function(e, r, n) {
25049
+ }, fullClone$3 = _objectSpread2$7({}, ReactOriginal), useInsertionEffect$1 = fullClone$3.useInsertionEffect, useInsertionEffectPolyfill = function(e, r, n) {
25417
25050
  reactExports.useMemo(e, n), useLayoutEffect$1(function() {
25418
25051
  return r(!0);
25419
25052
  }, n);
@@ -25421,7 +25054,7 @@ var token2CSSVar = function(e) {
25421
25054
  return useInsertionEffect$1(function() {
25422
25055
  return e(), r();
25423
25056
  }, n);
25424
- } : useInsertionEffectPolyfill, fullClone$2 = _objectSpread2$7({}, React$2), useInsertionEffect = fullClone$2.useInsertionEffect, useCleanupRegister = function(e) {
25057
+ } : useInsertionEffectPolyfill, fullClone$2 = _objectSpread2$7({}, ReactOriginal), useInsertionEffect = fullClone$2.useInsertionEffect, useCleanupRegister = function(e) {
25425
25058
  var r = [], n = !1;
25426
25059
  function a(o) {
25427
25060
  if (n) {
@@ -28308,7 +27941,7 @@ function genPresetColor(e, r) {
28308
27941
  }));
28309
27942
  }, {});
28310
27943
  }
28311
- const fullClone$1 = Object.assign({}, React$2), {
27944
+ const fullClone$1 = Object.assign({}, ReactOriginal), {
28312
27945
  useId: useId$2
28313
27946
  } = fullClone$1, useEmptyId = () => "", useThemeKey = typeof useId$2 > "u" ? useEmptyId : useId$2;
28314
27947
  function useTheme(e, r, n) {
@@ -28430,7 +28063,7 @@ const useDomMotionEvents = function(e) {
28430
28063
  };
28431
28064
  }, []), [a, n];
28432
28065
  };
28433
- var useIsomorphicLayoutEffect = canUseDom() ? reactExports.useLayoutEffect : reactExports.useEffect;
28066
+ var useIsomorphicLayoutEffect$1 = canUseDom() ? reactExports.useLayoutEffect : reactExports.useEffect;
28434
28067
  const useNextFrame = function() {
28435
28068
  var e = reactExports.useRef(null);
28436
28069
  function r() {
@@ -28464,7 +28097,7 @@ const useStepQueue = function(e, r, n) {
28464
28097
  u(STEP_PREPARE, !0);
28465
28098
  }
28466
28099
  var ne = r ? SIMPLE_STEP_QUEUE : FULL_STEP_QUEUE;
28467
- return useIsomorphicLayoutEffect(function() {
28100
+ return useIsomorphicLayoutEffect$1(function() {
28468
28101
  if (l !== STEP_NONE && l !== STEP_ACTIVATED) {
28469
28102
  var oe = ne.indexOf(l), ue = ne[oe + 1], se = n(l);
28470
28103
  se === SkipStep ? u(ue, !0) : ue && w(function(st) {
@@ -28526,7 +28159,7 @@ function useStatus(e, r, n, a) {
28526
28159
  });
28527
28160
  }, N))), pi === STEP_PREPARED && Ei(), DoStep;
28528
28161
  }), Aa = _slicedToArray$2(Da, 2), Ua = Aa[0], pi = Aa[1], Ri = isActive(pi);
28529
- gi.current = Ri, useIsomorphicLayoutEffect(function() {
28162
+ gi.current = Ri, useIsomorphicLayoutEffect$1(function() {
28530
28163
  wa(r);
28531
28164
  var $i = Ma.current;
28532
28165
  Ma.current = !0;
@@ -32732,7 +32365,7 @@ var getPortalContainer = function(e) {
32732
32365
  process.env.NODE_ENV !== "production" && (Portal.displayName = "Portal");
32733
32366
  var RefContext = /* @__PURE__ */ reactExports.createContext({});
32734
32367
  function getUseId() {
32735
- var e = _objectSpread2$7({}, React$2);
32368
+ var e = _objectSpread2$7({}, ReactOriginal);
32736
32369
  return e.useId;
32737
32370
  }
32738
32371
  var uuid$3 = 0, useOriginId = getUseId();
@@ -63059,7 +62692,7 @@ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
63059
62692
  TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
63060
62693
  var IntlContext = typeof window < "u" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = reactExports.createContext(null)) : reactExports.createContext(null);
63061
62694
  IntlContext.Consumer;
63062
- var IntlProvider$1 = IntlContext.Provider, Provider = IntlProvider$1, Context = IntlContext;
62695
+ var IntlProvider$1 = IntlContext.Provider, Provider$1 = IntlProvider$1, Context = IntlContext;
63063
62696
  function useIntl() {
63064
62697
  var e = reactExports.useContext(Context);
63065
62698
  return invariantIntlContext(e), e;
@@ -63162,7 +62795,7 @@ var IntlProvider = function(e) {
63162
62795
  prevConfig: u
63163
62796
  };
63164
62797
  }, r.prototype.render = function() {
63165
- return invariantIntlContext(this.state.intl), reactExports.createElement(Provider, { value: this.state.intl }, this.props.children);
62798
+ return invariantIntlContext(this.state.intl), reactExports.createElement(Provider$1, { value: this.state.intl }, this.props.children);
63166
62799
  }, r.displayName = "IntlProvider", r.defaultProps = DEFAULT_INTL_CONFIG, r;
63167
62800
  }(reactExports.PureComponent);
63168
62801
  function areEqual(e, r) {
@@ -65635,6 +65268,375 @@ class KgVarConfigElement extends HTMLElement {
65635
65268
  function initKgVarConfigElement() {
65636
65269
  customElements.define("kg-var-config", KgVarConfigElement);
65637
65270
  }
65271
+ var withSelector = { exports: {} }, useSyncExternalStoreWithSelector_production_min = {};
65272
+ /**
65273
+ * @license React
65274
+ * use-sync-external-store-with-selector.production.min.js
65275
+ *
65276
+ * Copyright (c) Facebook, Inc. and its affiliates.
65277
+ *
65278
+ * This source code is licensed under the MIT license found in the
65279
+ * LICENSE file in the root directory of this source tree.
65280
+ */
65281
+ var hasRequiredUseSyncExternalStoreWithSelector_production_min;
65282
+ function requireUseSyncExternalStoreWithSelector_production_min() {
65283
+ if (hasRequiredUseSyncExternalStoreWithSelector_production_min)
65284
+ return useSyncExternalStoreWithSelector_production_min;
65285
+ hasRequiredUseSyncExternalStoreWithSelector_production_min = 1;
65286
+ var e = reactExports;
65287
+ function r(x, w) {
65288
+ return x === w && (x !== 0 || 1 / x === 1 / w) || x !== x && w !== w;
65289
+ }
65290
+ var n = typeof Object.is == "function" ? Object.is : r, a = e.useSyncExternalStore, o = e.useRef, l = e.useEffect, u = e.useMemo, p = e.useDebugValue;
65291
+ return useSyncExternalStoreWithSelector_production_min.useSyncExternalStoreWithSelector = function(x, w, N, U, ne) {
65292
+ var oe = o(null);
65293
+ if (oe.current === null) {
65294
+ var ue = { hasValue: !1, value: null };
65295
+ oe.current = ue;
65296
+ } else
65297
+ ue = oe.current;
65298
+ oe = u(function() {
65299
+ function st(aa) {
65300
+ if (!ut) {
65301
+ if (ut = !0, ta = aa, aa = U(aa), ne !== void 0 && ue.hasValue) {
65302
+ var la = ue.value;
65303
+ if (ne(la, aa))
65304
+ return ea = la;
65305
+ }
65306
+ return ea = aa;
65307
+ }
65308
+ if (la = ea, n(ta, aa))
65309
+ return la;
65310
+ var ua = U(aa);
65311
+ return ne !== void 0 && ne(la, ua) ? la : (ta = aa, ea = ua);
65312
+ }
65313
+ var ut = !1, ta, ea, oa = N === void 0 ? null : N;
65314
+ return [function() {
65315
+ return st(w());
65316
+ }, oa === null ? void 0 : function() {
65317
+ return st(oa());
65318
+ }];
65319
+ }, [w, N, U, ne]);
65320
+ var se = a(x, oe[0], oe[1]);
65321
+ return l(function() {
65322
+ ue.hasValue = !0, ue.value = se;
65323
+ }, [se]), p(se), se;
65324
+ }, useSyncExternalStoreWithSelector_production_min;
65325
+ }
65326
+ var useSyncExternalStoreWithSelector_development = {};
65327
+ /**
65328
+ * @license React
65329
+ * use-sync-external-store-with-selector.development.js
65330
+ *
65331
+ * Copyright (c) Facebook, Inc. and its affiliates.
65332
+ *
65333
+ * This source code is licensed under the MIT license found in the
65334
+ * LICENSE file in the root directory of this source tree.
65335
+ */
65336
+ var hasRequiredUseSyncExternalStoreWithSelector_development;
65337
+ function requireUseSyncExternalStoreWithSelector_development() {
65338
+ return hasRequiredUseSyncExternalStoreWithSelector_development || (hasRequiredUseSyncExternalStoreWithSelector_development = 1, process.env.NODE_ENV !== "production" && function() {
65339
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
65340
+ var e = reactExports;
65341
+ function r(w, N) {
65342
+ return w === N && (w !== 0 || 1 / w === 1 / N) || w !== w && N !== N;
65343
+ }
65344
+ var n = typeof Object.is == "function" ? Object.is : r, a = e.useSyncExternalStore, o = e.useRef, l = e.useEffect, u = e.useMemo, p = e.useDebugValue;
65345
+ function x(w, N, U, ne, oe) {
65346
+ var ue = o(null), se;
65347
+ ue.current === null ? (se = {
65348
+ hasValue: !1,
65349
+ value: null
65350
+ }, ue.current = se) : se = ue.current;
65351
+ var st = u(function() {
65352
+ var oa = !1, aa, la, ua = function(va) {
65353
+ if (!oa) {
65354
+ oa = !0, aa = va;
65355
+ var wa = ne(va);
65356
+ if (oe !== void 0 && se.hasValue) {
65357
+ var ba = se.value;
65358
+ if (oe(ba, wa))
65359
+ return la = ba, ba;
65360
+ }
65361
+ return la = wa, wa;
65362
+ }
65363
+ var ma = aa, $a = la;
65364
+ if (n(ma, va))
65365
+ return $a;
65366
+ var xa = ne(va);
65367
+ return oe !== void 0 && oe($a, xa) ? $a : (aa = va, la = xa, xa);
65368
+ }, ga = U === void 0 ? null : U, ha = function() {
65369
+ return ua(N());
65370
+ }, fa = ga === null ? void 0 : function() {
65371
+ return ua(ga());
65372
+ };
65373
+ return [ha, fa];
65374
+ }, [N, U, ne, oe]), ut = st[0], ta = st[1], ea = a(w, ut, ta);
65375
+ return l(function() {
65376
+ se.hasValue = !0, se.value = ea;
65377
+ }, [ea]), p(ea), ea;
65378
+ }
65379
+ useSyncExternalStoreWithSelector_development.useSyncExternalStoreWithSelector = x, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
65380
+ }()), useSyncExternalStoreWithSelector_development;
65381
+ }
65382
+ process.env.NODE_ENV === "production" ? withSelector.exports = requireUseSyncExternalStoreWithSelector_production_min() : withSelector.exports = requireUseSyncExternalStoreWithSelector_development();
65383
+ var withSelectorExports = withSelector.exports, React = "default" in ReactOriginal ? React$1 : ReactOriginal, ContextKey = Symbol.for("react-redux-context"), gT = typeof globalThis < "u" ? globalThis : {};
65384
+ function getContext() {
65385
+ var n;
65386
+ if (!React.createContext)
65387
+ return {};
65388
+ const e = (n = gT[ContextKey]) != null ? n : gT[ContextKey] = /* @__PURE__ */ new Map();
65389
+ let r = e.get(React.createContext);
65390
+ return r || (r = React.createContext(
65391
+ null
65392
+ ), process.env.NODE_ENV !== "production" && (r.displayName = "ReactRedux"), e.set(React.createContext, r)), r;
65393
+ }
65394
+ var ReactReduxContext = /* @__PURE__ */ getContext(), notInitialized = () => {
65395
+ throw new Error("uSES not initialized!");
65396
+ };
65397
+ function createReduxContextHook(e = ReactReduxContext) {
65398
+ return function() {
65399
+ const r = React.useContext(e);
65400
+ if (process.env.NODE_ENV !== "production" && !r)
65401
+ throw new Error(
65402
+ "could not find react-redux context value; please ensure the component is wrapped in a <Provider>"
65403
+ );
65404
+ return r;
65405
+ };
65406
+ }
65407
+ var useReduxContext = /* @__PURE__ */ createReduxContextHook(), useSyncExternalStoreWithSelector = notInitialized, initializeUseSelector = (e) => {
65408
+ useSyncExternalStoreWithSelector = e;
65409
+ }, refEquality = (e, r) => e === r;
65410
+ function createSelectorHook(e = ReactReduxContext) {
65411
+ const r = e === ReactReduxContext ? useReduxContext : createReduxContextHook(e), n = (a, o = {}) => {
65412
+ const { equalityFn: l = refEquality, devModeChecks: u = {} } = typeof o == "function" ? { equalityFn: o } : o;
65413
+ if (process.env.NODE_ENV !== "production") {
65414
+ if (!a)
65415
+ throw new Error("You must pass a selector to useSelector");
65416
+ if (typeof a != "function")
65417
+ throw new Error("You must pass a function as a selector to useSelector");
65418
+ if (typeof l != "function")
65419
+ throw new Error(
65420
+ "You must pass a function as an equality function to useSelector"
65421
+ );
65422
+ }
65423
+ const {
65424
+ store: p,
65425
+ subscription: x,
65426
+ getServerState: w,
65427
+ stabilityCheck: N,
65428
+ identityFunctionCheck: U
65429
+ } = r(), ne = React.useRef(!0), oe = React.useCallback(
65430
+ {
65431
+ [a.name](se) {
65432
+ const st = a(se);
65433
+ if (process.env.NODE_ENV !== "production") {
65434
+ const {
65435
+ identityFunctionCheck: ut,
65436
+ stabilityCheck: ta
65437
+ } = {
65438
+ stabilityCheck: N,
65439
+ identityFunctionCheck: U,
65440
+ ...u
65441
+ };
65442
+ if (ta === "always" || ta === "once" && ne.current) {
65443
+ const ea = a(se);
65444
+ if (!l(st, ea)) {
65445
+ let oa;
65446
+ try {
65447
+ throw new Error();
65448
+ } catch (aa) {
65449
+ ({ stack: oa } = aa);
65450
+ }
65451
+ console.warn(
65452
+ "Selector " + (a.name || "unknown") + ` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
65453
+ Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,
65454
+ {
65455
+ state: se,
65456
+ selected: st,
65457
+ selected2: ea,
65458
+ stack: oa
65459
+ }
65460
+ );
65461
+ }
65462
+ }
65463
+ if ((ut === "always" || ut === "once" && ne.current) && st === se) {
65464
+ let ea;
65465
+ try {
65466
+ throw new Error();
65467
+ } catch (oa) {
65468
+ ({ stack: ea } = oa);
65469
+ }
65470
+ console.warn(
65471
+ "Selector " + (a.name || "unknown") + ` returned the root state when called. This can lead to unnecessary rerenders.
65472
+ Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,
65473
+ { stack: ea }
65474
+ );
65475
+ }
65476
+ ne.current && (ne.current = !1);
65477
+ }
65478
+ return st;
65479
+ }
65480
+ }[a.name],
65481
+ [a, N, u.stabilityCheck]
65482
+ ), ue = useSyncExternalStoreWithSelector(
65483
+ x.addNestedSub,
65484
+ p.getState,
65485
+ w || p.getState,
65486
+ oe,
65487
+ l
65488
+ );
65489
+ return React.useDebugValue(ue), ue;
65490
+ };
65491
+ return Object.assign(n, {
65492
+ withTypes: () => n
65493
+ }), n;
65494
+ }
65495
+ var useSelector = /* @__PURE__ */ createSelectorHook();
65496
+ function defaultNoopBatch(e) {
65497
+ e();
65498
+ }
65499
+ function createListenerCollection() {
65500
+ let e = null, r = null;
65501
+ return {
65502
+ clear() {
65503
+ e = null, r = null;
65504
+ },
65505
+ notify() {
65506
+ defaultNoopBatch(() => {
65507
+ let n = e;
65508
+ for (; n; )
65509
+ n.callback(), n = n.next;
65510
+ });
65511
+ },
65512
+ get() {
65513
+ const n = [];
65514
+ let a = e;
65515
+ for (; a; )
65516
+ n.push(a), a = a.next;
65517
+ return n;
65518
+ },
65519
+ subscribe(n) {
65520
+ let a = !0;
65521
+ const o = r = {
65522
+ callback: n,
65523
+ next: null,
65524
+ prev: r
65525
+ };
65526
+ return o.prev ? o.prev.next = o : e = o, function() {
65527
+ !a || e === null || (a = !1, o.next ? o.next.prev = o.prev : r = o.prev, o.prev ? o.prev.next = o.next : e = o.next);
65528
+ };
65529
+ }
65530
+ };
65531
+ }
65532
+ var nullListeners = {
65533
+ notify() {
65534
+ },
65535
+ get: () => []
65536
+ };
65537
+ function createSubscription(e, r) {
65538
+ let n, a = nullListeners, o = 0, l = !1;
65539
+ function u(se) {
65540
+ N();
65541
+ const st = a.subscribe(se);
65542
+ let ut = !1;
65543
+ return () => {
65544
+ ut || (ut = !0, st(), U());
65545
+ };
65546
+ }
65547
+ function p() {
65548
+ a.notify();
65549
+ }
65550
+ function x() {
65551
+ ue.onStateChange && ue.onStateChange();
65552
+ }
65553
+ function w() {
65554
+ return l;
65555
+ }
65556
+ function N() {
65557
+ o++, n || (n = e.subscribe(x), a = createListenerCollection());
65558
+ }
65559
+ function U() {
65560
+ o--, n && o === 0 && (n(), n = void 0, a.clear(), a = nullListeners);
65561
+ }
65562
+ function ne() {
65563
+ l || (l = !0, N());
65564
+ }
65565
+ function oe() {
65566
+ l && (l = !1, U());
65567
+ }
65568
+ const ue = {
65569
+ addNestedSub: u,
65570
+ notifyNestedSubs: p,
65571
+ handleChangeWrapper: x,
65572
+ isSubscribed: w,
65573
+ trySubscribe: ne,
65574
+ tryUnsubscribe: oe,
65575
+ getListeners: () => a
65576
+ };
65577
+ return ue;
65578
+ }
65579
+ var canUseDOM = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", isReactNative = typeof navigator < "u" && navigator.product === "ReactNative", useIsomorphicLayoutEffect = canUseDOM || isReactNative ? React.useLayoutEffect : React.useEffect;
65580
+ function Provider({
65581
+ store: e,
65582
+ context: r,
65583
+ children: n,
65584
+ serverState: a,
65585
+ stabilityCheck: o = "once",
65586
+ identityFunctionCheck: l = "once"
65587
+ }) {
65588
+ const u = React.useMemo(() => {
65589
+ const w = createSubscription(e);
65590
+ return {
65591
+ store: e,
65592
+ subscription: w,
65593
+ getServerState: a ? () => a : void 0,
65594
+ stabilityCheck: o,
65595
+ identityFunctionCheck: l
65596
+ };
65597
+ }, [e, a, o, l]), p = React.useMemo(() => e.getState(), [e]);
65598
+ useIsomorphicLayoutEffect(() => {
65599
+ const { subscription: w } = u;
65600
+ return w.onStateChange = w.notifyNestedSubs, w.trySubscribe(), p !== e.getState() && w.notifyNestedSubs(), () => {
65601
+ w.tryUnsubscribe(), w.onStateChange = void 0;
65602
+ };
65603
+ }, [u, p]);
65604
+ const x = r || ReactReduxContext;
65605
+ return /* @__PURE__ */ React.createElement(x.Provider, { value: u }, n);
65606
+ }
65607
+ var Provider_default = Provider;
65608
+ function createStoreHook(e = ReactReduxContext) {
65609
+ const r = e === ReactReduxContext ? useReduxContext : createReduxContextHook(e), n = () => {
65610
+ const { store: a } = r();
65611
+ return a;
65612
+ };
65613
+ return Object.assign(n, {
65614
+ withTypes: () => n
65615
+ }), n;
65616
+ }
65617
+ var useStore = /* @__PURE__ */ createStoreHook();
65618
+ function createDispatchHook(e = ReactReduxContext) {
65619
+ const r = e === ReactReduxContext ? useStore : createStoreHook(e), n = () => r().dispatch;
65620
+ return Object.assign(n, {
65621
+ withTypes: () => n
65622
+ }), n;
65623
+ }
65624
+ var useDispatch = /* @__PURE__ */ createDispatchHook();
65625
+ initializeUseSelector(withSelectorExports.useSyncExternalStoreWithSelector);
65626
+ console.log("AAA", KgSlice, KgWorkStationSlice);
65627
+ const store = configureStore({
65628
+ middleware: (e) => e({
65629
+ serializableCheck: {
65630
+ ignoredActionPaths: ["payload.fn"],
65631
+ ignoredActions: [],
65632
+ ignoredPaths: []
65633
+ }
65634
+ }),
65635
+ reducer: {
65636
+ Kg: KgSlice.reducer,
65637
+ KgWorkStation: KgWorkStationSlice.reducer
65638
+ }
65639
+ });
65638
65640
  var assign$3 = make_assign$1(), create$1$1 = make_create$1(), trim$1$1 = make_trim$1(), Global$5$1 = typeof window < "u" ? window : commonjsGlobal$1, util$6$1 = {
65639
65641
  assign: assign$3,
65640
65642
  create: create$1$1,
@@ -66258,16 +66260,6 @@ function getWorkStationArea(e = "") {
66258
66260
  return a || (a = storejs.get(LOCAL_STORAGE_KEY__WORK_STATION_AREA, null)), a;
66259
66261
  };
66260
66262
  }
66261
- const kgWorkStationStore = configureStore({
66262
- middleware: (e) => e({
66263
- serializableCheck: {
66264
- ignoredActionPaths: ["payload.fn"],
66265
- ignoredActions: [],
66266
- ignoredPaths: []
66267
- }
66268
- }),
66269
- reducer: KgWorkStationSlice.reducer
66270
- }), useKgWorkStationDispatch = useDispatch.withTypes(), useKgWorkStationSelector = useSelector.withTypes();
66271
66263
  function useKg$1() {
66272
66264
  const e = useIntl();
66273
66265
  return {
@@ -66284,14 +66276,14 @@ function doKgWorkStation(e = "") {
66284
66276
  let r = {
66285
66277
  closeModal() {
66286
66278
  var n, a;
66287
- ((a = (n = kgStore.getState().option) == null ? void 0 : n.KgWorkStation) == null ? void 0 : a.isOn) !== !1 && kgWorkStationStore.dispatch(closeModal({ id: e }));
66279
+ ((a = (n = store.getState().Kg.option) == null ? void 0 : n.KgWorkStation) == null ? void 0 : a.isOn) !== !1 && store.dispatch(closeModal({ id: e }));
66288
66280
  },
66289
66281
  get(n) {
66290
- const a = ref(kgWorkStationStore.getState()[e]), o = kgWorkStationStore.subscribe(() => a.value = n(kgWorkStationStore.getState()[e]));
66282
+ const a = ref(store.getState().KgWorkStation[e]), o = store.subscribe(() => a.value = n(store.getState().KgWorkStation[e]));
66291
66283
  return [a, o];
66292
66284
  },
66293
66285
  getIsVisible() {
66294
- const n = ref(getIsVisible(e)(kgWorkStationStore.getState())), a = kgWorkStationStore.subscribe(() => n.value = getIsVisible(e)(kgWorkStationStore.getState()));
66286
+ const n = ref(getIsVisible(e)(store.getState().KgWorkStation)), a = store.subscribe(() => n.value = getIsVisible(e)(store.getState().KgWorkStation));
66295
66287
  return [n, a];
66296
66288
  },
66297
66289
  id: e,
@@ -66307,18 +66299,18 @@ function doKgWorkStation(e = "") {
66307
66299
  }),
66308
66300
  openModal() {
66309
66301
  var n, a;
66310
- ((a = (n = kgStore.getState().option) == null ? void 0 : n.KgWorkStation) == null ? void 0 : a.isOn) !== !1 && kgWorkStationStore.dispatch(openModal({ id: e }));
66302
+ ((a = (n = store.getState().Kg.option) == null ? void 0 : n.KgWorkStation) == null ? void 0 : a.isOn) !== !1 && store.dispatch(openModal({ id: e }));
66311
66303
  },
66312
66304
  set(n) {
66313
66305
  var a;
66314
- ii$1(`${e} | doKgWorkStation | set() | \u8FDB\u5165`), ((a = kgWorkStationStore.getState()[e]) == null ? void 0 : a.isMount) === !0 ? kgWorkStationStore.dispatch(set$3({ fn: n, id: e })) : this.onMount(async () => (ii$1(`${e} | doKgWorkStation | set() | dispatch set`), setTimeout(() => {
66315
- kgWorkStationStore.dispatch(set$3({ fn: n, id: e }));
66306
+ ii$1(`${e} | doKgWorkStation | set() | \u8FDB\u5165`), ((a = store.getState().KgWorkStation[e]) == null ? void 0 : a.isMount) === !0 ? store.dispatch(set$3({ fn: n, id: e })) : this.onMount(async () => (ii$1(`${e} | doKgWorkStation | set() | dispatch set`), setTimeout(() => {
66307
+ store.dispatch(set$3({ fn: n, id: e }));
66316
66308
  }), !1), !0);
66317
66309
  },
66318
- store: kgWorkStationStore,
66310
+ store,
66319
66311
  subscribe(n) {
66320
- return kgWorkStationStore.subscribe(() => {
66321
- n(kgWorkStationStore.getState()[e]);
66312
+ return store.subscribe(() => {
66313
+ n(store.getState().KgWorkStation[e]);
66322
66314
  });
66323
66315
  },
66324
66316
  workStation: null,
@@ -66329,13 +66321,13 @@ function doKgWorkStation(e = "") {
66329
66321
  get(n, a) {
66330
66322
  switch (a) {
66331
66323
  case "workStation":
66332
- return getWorkStation(e)(kgWorkStationStore.getState());
66324
+ return getWorkStation(e)(store.getState().KgWorkStation);
66333
66325
  case "workStation$": {
66334
- const o = ref(getWorkStation(e)(kgWorkStationStore.getState())), l = kgWorkStationStore.subscribe(() => o.value = getWorkStation(e)(kgWorkStationStore.getState()));
66326
+ const o = ref(getWorkStation(e)(store.getState().KgWorkStation)), l = store.subscribe(() => o.value = getWorkStation(e)(store.getState().KgWorkStation));
66335
66327
  return [o, l];
66336
66328
  }
66337
66329
  case "workStationArea":
66338
- return getWorkStationArea(e)(kgWorkStationStore.getState());
66330
+ return getWorkStationArea(e)(store.getState().KgWorkStation);
66339
66331
  }
66340
66332
  return Reflect.get(n, a);
66341
66333
  }
@@ -66409,7 +66401,7 @@ class KgUtil$1 {
66409
66401
  function KgWorkStationModal() {
66410
66402
  var ma, $a, xa;
66411
66403
  var e;
66412
- const r = useID(), n = doKgWorkStation(r), a = useIntl(), o = useKg$1(), l = useKgWorkStationDispatch(), u = useKgWorkStationSelector(getIsVisible(r)), p = useKgWorkStationSelector(getIsOpen(r)), [x, w] = reactExports.useState([]), [N, U] = reactExports.useState([]), [ne, oe] = reactExports.useState([]), [ue, se] = reactExports.useState(""), [st, ut] = reactExports.useState(""), ta = useKgWorkStationSelector(getWorkStation()), ea = useKgWorkStationSelector(getWorkStationArea()), oa = (ma = (e = x.find((Sa) => Sa.devcod === N[0])) == null ? void 0 : e.workstationAreas) != null ? ma : [], aa = ($a = x.filter((Sa) => {
66404
+ const r = useID(), n = doKgWorkStation(r), a = useIntl(), o = useKg$1(), l = useDispatch(), u = useSelector(getIsVisible(r)), p = useSelector(getIsOpen(r)), [x, w] = reactExports.useState([]), [N, U] = reactExports.useState([]), [ne, oe] = reactExports.useState([]), [ue, se] = reactExports.useState(""), [st, ut] = reactExports.useState(""), ta = useSelector(getWorkStation()), ea = useSelector(getWorkStationArea()), oa = (ma = (e = x.find((Sa) => Sa.devcod === N[0])) == null ? void 0 : e.workstationAreas) != null ? ma : [], aa = ($a = x.filter((Sa) => {
66413
66405
  var Ta, Ia, Na, Ca;
66414
66406
  return ue ? ((Ia = (Ta = Sa.devcod) == null ? void 0 : Ta.toLowerCase()) == null ? void 0 : Ia.includes(ue.toLowerCase())) || ((Ca = (Na = Sa.devcodDsc) == null ? void 0 : Na.toLowerCase()) == null ? void 0 : Ca.includes(ue.toLowerCase())) : Sa;
66415
66407
  })) != null ? $a : [], la = (xa = oa.filter((Sa) => {
@@ -66552,30 +66544,30 @@ function KgWorkStationModal() {
66552
66544
  }
66553
66545
  function KgWorkStation() {
66554
66546
  var e;
66555
- const r = useKgSelector(getOption), n = useKgSelector(getOption2);
66556
- if (console.log("333", r), console.log("333:B", n), ((e = r == null ? void 0 : r.KgWorkStation) == null ? void 0 : e.isOn) === !1)
66547
+ const r = useSelector(getOption);
66548
+ if (console.log("333", r), ((e = r == null ? void 0 : r.KgWorkStation) == null ? void 0 : e.isOn) === !1)
66557
66549
  return null;
66558
- const a = useID(), o = useKg$1(), l = doKgWorkStation(a), u = useKgWorkStationSelector(getIsVisible(a)), p = useKgWorkStationSelector(getWorkStation()), x = useKgWorkStationSelector(getWorkStationArea()), w = (() => {
66559
- let ne = "text";
66560
- return u || (ne += " kgcrant-kg-invisible"), ne;
66561
- })(), N = (() => {
66562
- var oe, ue, se;
66563
- if (!p)
66564
- return o.t("KgWorkStation.selectWorkStation");
66565
- let ne = (oe = (p == null ? void 0 : p.devcodDsc) || (p == null ? void 0 : p.devcod)) != null ? oe : "";
66566
- return x && (ne += " / " + ((se = (ue = x.wrkareDsc) != null ? ue : x.wrkare) != null ? se : "")), ne;
66550
+ const n = useID(), a = useKg$1(), o = doKgWorkStation(n), l = useSelector(getIsVisible(n)), u = useSelector(getWorkStation()), p = useSelector(getWorkStationArea()), x = (() => {
66551
+ let U = "text";
66552
+ return l || (U += " kgcrant-kg-invisible"), U;
66553
+ })(), w = (() => {
66554
+ var ne, oe, ue;
66555
+ if (!u)
66556
+ return a.t("KgWorkStation.selectWorkStation");
66557
+ let U = (ne = (u == null ? void 0 : u.devcodDsc) || (u == null ? void 0 : u.devcod)) != null ? ne : "";
66558
+ return p && (U += " / " + ((ue = (oe = p.wrkareDsc) != null ? oe : p.wrkare) != null ? ue : "")), U;
66567
66559
  })();
66568
- function U() {
66569
- l.openModal();
66560
+ function N() {
66561
+ o.openModal();
66570
66562
  }
66571
66563
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
66572
66564
  /* @__PURE__ */ jsxRuntimeExports.jsx(
66573
66565
  Tooltip,
66574
66566
  {
66575
- className: w,
66567
+ className: x,
66576
66568
  placement: "bottomRight",
66577
66569
  title: /* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedFormattedMessage, { id: "KgWorkStation.workStationAndWorkStationArea" }),
66578
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { onClick: U, children: N })
66570
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { onClick: N, children: w })
66579
66571
  }
66580
66572
  ),
66581
66573
  /* @__PURE__ */ jsxRuntimeExports.jsx(KgWorkStationModal, {})
@@ -66586,15 +66578,15 @@ class KgWorkStationElement extends HTMLElement {
66586
66578
  super(), D_(this, "unmount", null);
66587
66579
  }
66588
66580
  connectedCallback() {
66589
- this.id || (this.id = h$1.uuid()), kgWorkStationStore.dispatch(mount({ id: this.id }));
66581
+ this.id || (this.id = h$1.uuid()), store.dispatch(mount({ id: this.id }));
66590
66582
  const r = createRoot$1(this);
66591
66583
  r.render(
66592
- /* @__PURE__ */ jsxRuntimeExports.jsx(KgProvider, { id: this.id, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Provider_default, { store: kgWorkStationStore, children: /* @__PURE__ */ jsxRuntimeExports.jsx(KgWorkStation, {}) }) })
66584
+ /* @__PURE__ */ jsxRuntimeExports.jsx(KgProvider, { id: this.id, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Provider_default, { store, children: /* @__PURE__ */ jsxRuntimeExports.jsx(KgWorkStation, {}) }) })
66593
66585
  ), this.unmount = () => r.unmount();
66594
66586
  }
66595
66587
  disconnectedCallback() {
66596
66588
  var r;
66597
- (r = this.unmount) == null || r.call(this), this.unmount = null, kgWorkStationStore.dispatch(unmount({ id: this.id }));
66589
+ (r = this.unmount) == null || r.call(this), this.unmount = null, store.dispatch(unmount({ id: this.id }));
66598
66590
  }
66599
66591
  }
66600
66592
  function initKgWorkStationElement() {
@@ -66605,7 +66597,7 @@ function initWebComponents() {
66605
66597
  }
66606
66598
  function initKgCoreReact(e) {
66607
66599
  const { ref: r, option: n } = e != null ? e : {};
66608
- setRef(r), console.log("000", n), kgStore.dispatch(setOption(n)), initWebComponents();
66600
+ setRef(r), store.dispatch(setOption(n)), initWebComponents();
66609
66601
  }
66610
66602
  function bound01(e, r) {
66611
66603
  isOnePointZero(e) && (e = "100%");
@@ -70072,7 +70064,7 @@ function fi(e) {
70072
70064
  })
70073
70065
  );
70074
70066
  }
70075
- const version = "0.26.7-beta.46", en$1 = {
70067
+ const version = "0.26.7-beta.48", en$1 = {
70076
70068
  kg: {
70077
70069
  KgAppSelect: {
70078
70070
  businessManager: "Business Manager",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.26.7-beta.46",
3
+ "version": "0.26.7-beta.48",
4
4
  "scripts": {
5
5
  "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
@@ -39,7 +39,7 @@
39
39
  "@iconify-icons/ph": "1.2.5",
40
40
  "@iconify/vue": "4.1.2",
41
41
  "@kengic/core.core": "0.0.1-beta.19",
42
- "@kengic/core.react": "0.0.1-beta.75",
42
+ "@kengic/core.react": "0.0.1-beta.77",
43
43
  "@kengic/pont": "1.2.17-beta.1",
44
44
  "@rys-fe/vite-plugin-theme": "0.8.6",
45
45
  "@thymine/xunee": "0.4.9-beta.8",