@ahoo-wang/fetcher-react 3.15.4 → 3.15.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"DataMonitorService.d.ts","sourceRoot":"","sources":["../../src/dataMonitor/DataMonitorService.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAKxD,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAsBD,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,cAAc,CAAyC;IAC/D,OAAO,CAAC,OAAO,CAGZ;IAEH,UAAU,IAAI,IAAI;IAelB,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,6BAA6B,EAC3C,QAAQ,GAAE,MAAc,GACvB,IAAI;IA2BP,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAW7B,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IAQ3D,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,6BAA6B,GAAG,IAAI;IAQrF,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;YAIpB,aAAa;YAgCb,UAAU;IAOxB,OAAO,CAAC,MAAM;IAsBd,OAAO,CAAC,aAAa;CAatB;AAED,eAAO,MAAM,kBAAkB,oBAA2B,CAAC"}
1
+ {"version":3,"file":"DataMonitorService.d.ts","sourceRoot":"","sources":["../../src/dataMonitor/DataMonitorService.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAKxD,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAsBD,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,cAAc,CAAyC;IAC/D,OAAO,CAAC,OAAO,CAGZ;IAEH,UAAU,IAAI,IAAI;IAelB,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,6BAA6B,EAC3C,QAAQ,GAAE,MAAc,GACvB,IAAI;IA0BP,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAW7B,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IAQ3D,kBAAkB,CAChB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,6BAA6B,GAC1C,IAAI;IAQP,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;YAIpB,aAAa;YAmCb,UAAU;IAYxB,OAAO,CAAC,MAAM;IAsBd,OAAO,CAAC,aAAa;CAatB;AAED,eAAO,MAAM,kBAAkB,oBAA2B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useDataMonitor.d.ts","sourceRoot":"","sources":["../../src/dataMonitor/useDataMonitor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,YAAY,EAAE,6BAA6B,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,wBAAgB,cAAc,CAC5B,OAAO,EAAE,qBAAqB,GAC7B,oBAAoB,CA8DtB"}
1
+ {"version":3,"file":"useDataMonitor.d.ts","sourceRoot":"","sources":["../../src/dataMonitor/useDataMonitor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,YAAY,EAAE,6BAA6B,CAAC;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,wBAAgB,cAAc,CAC5B,OAAO,EAAE,qBAAqB,GAC7B,oBAAoB,CAmEtB"}
package/dist/index.es.js CHANGED
@@ -3,11 +3,11 @@ import { createContext as t, useCallback as n, useContext as r, useEffect as i,
3
3
  import { Fragment as u, jsx as d } from "react/jsx-runtime";
4
4
  import { BroadcastTypedEventBus as f, SerialTypedEventBus as p, nameGenerator as m } from "@ahoo-wang/fetcher-eventbus";
5
5
  import { produce as h } from "immer";
6
- import { JsonResultExtractor as g, fetcher as _, fetcherRegistrar as v, getFetcher as y } from "@ahoo-wang/fetcher";
7
- import { JsonEventStreamResultExtractor as b } from "@ahoo-wang/fetcher-eventstream";
8
- import { KeyStorage as x } from "@ahoo-wang/fetcher-storage";
6
+ import { JsonResultExtractor as g, ResultExtractors as _, fetcher as v, fetcherRegistrar as y, getFetcher as b } from "@ahoo-wang/fetcher";
7
+ import { JsonEventStreamResultExtractor as x } from "@ahoo-wang/fetcher-eventstream";
8
+ import { KeyStorage as S } from "@ahoo-wang/fetcher-storage";
9
9
  //#region \0rolldown/runtime.js
10
- var S = Object.defineProperty, __name = (e, t) => S(e, "name", {
10
+ var C = Object.defineProperty, __name = (e, t) => C(e, "name", {
11
11
  value: t,
12
12
  configurable: !0
13
13
  });
@@ -104,15 +104,15 @@ function useMounted() {
104
104
  }
105
105
  //#endregion
106
106
  //#region src/core/usePromiseState.ts
107
- var C = /* @__PURE__ */ function(e) {
107
+ var w = /* @__PURE__ */ function(e) {
108
108
  return e.IDLE = "idle", e.LOADING = "loading", e.SUCCESS = "success", e.ERROR = "error", e;
109
109
  }({});
110
110
  function usePromiseState(e) {
111
- let [t, r] = c(e?.initialStatus ?? C.IDLE), [i, o] = c(void 0), [s, l] = c(void 0), u = useMounted(), d = useLatest(e), f = n(() => {
112
- u() && (r(C.LOADING), l(void 0));
111
+ let [t, r] = c(e?.initialStatus ?? w.IDLE), [i, o] = c(void 0), [s, l] = c(void 0), u = useMounted(), d = useLatest(e), f = n(() => {
112
+ u() && (r(w.LOADING), l(void 0));
113
113
  }, [u]), p = n(async (e) => {
114
114
  if (u()) {
115
- o(e), r(C.SUCCESS), l(void 0);
115
+ o(e), r(w.SUCCESS), l(void 0);
116
116
  try {
117
117
  await d.current?.onSuccess?.(e);
118
118
  } catch (e) {
@@ -121,7 +121,7 @@ function usePromiseState(e) {
121
121
  }
122
122
  }, [u, d]), m = n(async (e) => {
123
123
  if (u()) {
124
- l(e), r(C.ERROR), o(void 0);
124
+ l(e), r(w.ERROR), o(void 0);
125
125
  try {
126
126
  await d.current?.onError?.(e);
127
127
  } catch (e) {
@@ -129,11 +129,11 @@ function usePromiseState(e) {
129
129
  }
130
130
  }
131
131
  }, [u, d]), h = n(() => {
132
- u() && (r(C.IDLE), l(void 0), o(void 0));
132
+ u() && (r(w.IDLE), l(void 0), o(void 0));
133
133
  }, [u]);
134
134
  return a(() => ({
135
135
  status: t,
136
- loading: t === C.LOADING,
136
+ loading: t === w.LOADING,
137
137
  result: i,
138
138
  error: s,
139
139
  setLoading: f,
@@ -358,7 +358,7 @@ async function _temp$1() {
358
358
  __name(_temp$1, "_temp");
359
359
  //#endregion
360
360
  //#region src/core/fullscreen/FullscreenContext.tsx
361
- var w = t(void 0);
361
+ var T = t(void 0);
362
362
  function FullscreenProvider(t) {
363
363
  let n = e(13), r, i, a;
364
364
  n[0] === t ? (r = n[1], i = n[2], a = n[3]) : ({children: r, target: a, ...i} = t, n[0] = t, n[1] = r, n[2] = i, n[3] = a);
@@ -373,13 +373,13 @@ function FullscreenProvider(t) {
373
373
  children: r
374
374
  }), n[7] = r, n[8] = f, n[9] = p) : p = n[9];
375
375
  let m;
376
- return n[10] !== u || n[11] !== p ? (m = /* @__PURE__ */ d(w.Provider, {
376
+ return n[10] !== u || n[11] !== p ? (m = /* @__PURE__ */ d(T.Provider, {
377
377
  value: u,
378
378
  children: p
379
379
  }), n[10] = u, n[11] = p, n[12] = m) : m = n[12], m;
380
380
  }
381
381
  function useFullscreenContext() {
382
- return r(w);
382
+ return r(T);
383
383
  }
384
384
  //#endregion
385
385
  //#region src/core/useRefs.ts
@@ -576,7 +576,7 @@ function useImmerKeyStorage(t, n) {
576
576
  }
577
577
  //#endregion
578
578
  //#region src/cosec/useSecurity.ts
579
- var T = {
579
+ var E = {
580
580
  jti: "",
581
581
  sub: "anonymous",
582
582
  iat: 0,
@@ -594,7 +594,7 @@ function useSecurity(t, n) {
594
594
  r[5] !== c || r[6] !== s ? (t3 = () => {
595
595
  s(), c.current.onSignOut?.();
596
596
  }, r[5] = c, r[6] = s, r[7] = t3) : t3 = r[7];
597
- let u = t3, d = o?.access?.payload ?? T, f = o?.authenticated ?? !1, p;
597
+ let u = t3, d = o?.access?.payload ?? E, f = o?.authenticated ?? !1, p;
598
598
  return r[8] !== l || r[9] !== u || r[10] !== d || r[11] !== f ? (p = {
599
599
  currentUser: d,
600
600
  authenticated: f,
@@ -604,18 +604,18 @@ function useSecurity(t, n) {
604
604
  }
605
605
  //#endregion
606
606
  //#region src/cosec/SecurityContext.tsx
607
- var E = t(void 0);
607
+ var D = t(void 0);
608
608
  function SecurityProvider(t) {
609
609
  let n = e(7), r, i, a;
610
610
  n[0] === t ? (r = n[1], i = n[2], a = n[3]) : ({tokenStorage: i, children: r, ...a} = t, n[0] = t, n[1] = r, n[2] = i, n[3] = a);
611
611
  let o = useSecurity(i, a), s;
612
- return n[4] !== r || n[5] !== o ? (s = /* @__PURE__ */ d(E.Provider, {
612
+ return n[4] !== r || n[5] !== o ? (s = /* @__PURE__ */ d(D.Provider, {
613
613
  value: o,
614
614
  children: r
615
615
  }), n[4] = r, n[5] = o, n[6] = s) : s = n[6], s;
616
616
  }
617
617
  function useSecurityContext() {
618
- let e = r(E);
618
+ let e = r(D);
619
619
  if (!e) throw Error("useSecurityContext must be used within a SecurityProvider");
620
620
  return e;
621
621
  }
@@ -661,21 +661,21 @@ function RefreshableRouteGuard(t) {
661
661
  function useFetcher(t) {
662
662
  let n = e(21), r;
663
663
  n[0] === t ? r = n[1] : (r = t || {}, n[0] = t, n[1] = r);
664
- let { fetcher: i } = r, a = i === void 0 ? v.default : i, { loading: o, result: s, error: l, status: u, execute: d, reset: f, abort: p } = useExecutePromise(t), [m, h] = c(void 0), g = useLatest(t), _;
665
- n[2] === a ? _ = n[3] : (_ = y(a), n[2] = a, n[3] = _);
666
- let b = _, t3;
667
- n[4] !== b || n[5] !== g || n[6] !== d ? (t3 = async (e) => {
664
+ let { fetcher: i } = r, a = i === void 0 ? y.default : i, { loading: o, result: s, error: l, status: u, execute: d, reset: f, abort: p } = useExecutePromise(t), [m, h] = c(void 0), g = useLatest(t), _;
665
+ n[2] === a ? _ = n[3] : (_ = b(a), n[2] = a, n[3] = _);
666
+ let v = _, t3;
667
+ n[4] !== v || n[5] !== g || n[6] !== d ? (t3 = async (e) => {
668
668
  try {
669
669
  await d(async (t) => {
670
670
  e.abortController = t;
671
- let n = await b.exchange(e, g.current);
671
+ let n = await v.exchange(e, g.current);
672
672
  return h(n), await n.extractResult();
673
673
  });
674
674
  } catch (e) {
675
675
  let t = e;
676
676
  throw h(void 0), t;
677
677
  }
678
- }, n[4] = b, n[5] = g, n[6] = d, n[7] = t3) : t3 = n[7];
678
+ }, n[4] = v, n[5] = g, n[6] = d, n[7] = t3) : t3 = n[7];
679
679
  let x = t3, t4;
680
680
  n[8] === f ? t4 = n[9] : (t4 = () => {
681
681
  f(), h(void 0);
@@ -799,7 +799,7 @@ function useFetcherListStreamQuery(t) {
799
799
  let n = e(2), r;
800
800
  return n[0] === t ? r = n[1] : (r = {
801
801
  ...t,
802
- resultExtractor: b
802
+ resultExtractor: x
803
803
  }, n[0] = t, n[1] = r), useFetcherQuery(r);
804
804
  }
805
805
  //#endregion
@@ -856,7 +856,7 @@ function useEventSubscription(t) {
856
856
  }
857
857
  //#endregion
858
858
  //#region src/notification/channel/browserNotification.ts
859
- var D = "browser", BrowserNotificationChannel = class {
859
+ var O = "browser", BrowserNotificationChannel = class {
860
860
  async send(e) {
861
861
  try {
862
862
  if (!this.isSupported()) return;
@@ -879,7 +879,7 @@ var D = "browser", BrowserNotificationChannel = class {
879
879
  isSupported() {
880
880
  return "Notification" in window;
881
881
  }
882
- }, O = new BrowserNotificationChannel(), k = class NotificationChannelRegistry {
882
+ }, k = new BrowserNotificationChannel(), A = class NotificationChannelRegistry {
883
883
  constructor() {
884
884
  this.registry = /* @__PURE__ */ new Map();
885
885
  }
@@ -912,12 +912,12 @@ var D = "browser", BrowserNotificationChannel = class {
912
912
  let t = new NotificationChannelRegistry();
913
913
  return e.forEach(([e, n]) => t.register(e, n)), t;
914
914
  }
915
- }.create([[D, O]]), A = "NOTIFICATION_CENTER_EVENT", j = "NOTIFICATION_CENTER_EVENT_HANDLER", beforeUnloadHandler = () => {
916
- M.destroy();
915
+ }.create([[O, k]]), j = "NOTIFICATION_CENTER_EVENT", M = "NOTIFICATION_CENTER_EVENT_HANDLER", beforeUnloadHandler = () => {
916
+ N.destroy();
917
917
  }, NotificationCenter = class {
918
918
  constructor() {
919
- this.eventBus = new f({ delegate: new p(A) }), this.eventBus.on({
920
- name: j,
919
+ this.eventBus = new f({ delegate: new p(j) }), this.eventBus.on({
920
+ name: M,
921
921
  once: !1,
922
922
  handle: async (e) => {
923
923
  await this.sendNotification(e.type, e.message);
@@ -925,7 +925,7 @@ var D = "browser", BrowserNotificationChannel = class {
925
925
  });
926
926
  }
927
927
  async sendNotification(e, t) {
928
- let n = k.get(e);
928
+ let n = A.get(e);
929
929
  if (!n) throw Error(`Channel ${e} is not registered`);
930
930
  await n.send(t);
931
931
  }
@@ -936,26 +936,26 @@ var D = "browser", BrowserNotificationChannel = class {
936
936
  });
937
937
  }
938
938
  off() {
939
- this.eventBus.off(j);
939
+ this.eventBus.off(M);
940
940
  }
941
941
  destroy() {
942
942
  this.off(), this.eventBus.destroy();
943
943
  }
944
- }, M = new NotificationCenter();
944
+ }, N = new NotificationCenter();
945
945
  window.addEventListener("beforeunload", beforeUnloadHandler);
946
946
  //#endregion
947
947
  //#region src/dataMonitor/useDataMonitorEventBus.ts
948
- var N = new f({ delegate: new p("DATA_MONITOR_EVENT") });
948
+ var P = new f({ delegate: new p("DATA_MONITOR_EVENT") });
949
949
  function useDataMonitorEventBus() {
950
- let subscribe = (e) => N.on(e), unsubscribe = (e) => N.off(e);
950
+ let subscribe = (e) => P.on(e), unsubscribe = (e) => P.off(e);
951
951
  return {
952
952
  subscribe,
953
953
  unsubscribe
954
954
  };
955
955
  }
956
- var P = { emit: (e) => N.emit(e) }, DataMonitorService = class {
956
+ var F = { emit: (e) => P.emit(e) }, DataMonitorService = class {
957
957
  constructor() {
958
- this.monitoredViews = /* @__PURE__ */ new Map(), this.storage = new x({
958
+ this.monitoredViews = /* @__PURE__ */ new Map(), this.storage = new S({
959
959
  key: "view:dataMonitor",
960
960
  defaultValue: {}
961
961
  });
@@ -975,8 +975,8 @@ var P = { emit: (e) => N.emit(e) }, DataMonitorService = class {
975
975
  total: null,
976
976
  intervalId: null
977
977
  };
978
- this.monitoredViews.set(e, o), this.fetchAndCheck(e), o.intervalId = window.setInterval(() => {
979
- this.fetchAndCheck(e);
978
+ this.monitoredViews.set(e, o), this.fetchAndCheck(e).then(), o.intervalId = window.setInterval(() => {
979
+ this.fetchAndCheck(e).then();
980
980
  }, a), this.saveToStorage();
981
981
  }
982
982
  disable(e) {
@@ -1000,7 +1000,7 @@ var P = { emit: (e) => N.emit(e) }, DataMonitorService = class {
1000
1000
  let n = await this.fetchCount(t.countUrl, t.condition), r = this.monitoredViews.get(e);
1001
1001
  if (!r) return;
1002
1002
  let i = r.total;
1003
- i !== null && i !== n ? (r.total = n, this.notify(e, r.notification, n), await P.emit({
1003
+ i !== null && i !== n ? (r.total = n, this.notify(e, r.notification, n), await F.emit({
1004
1004
  type: "DATA_CHANGED",
1005
1005
  viewId: e,
1006
1006
  viewName: r.viewName,
@@ -1012,7 +1012,7 @@ var P = { emit: (e) => N.emit(e) }, DataMonitorService = class {
1012
1012
  }
1013
1013
  }
1014
1014
  async fetchCount(e, t) {
1015
- return await _.post(e, { body: t });
1015
+ return await v.post(e, { body: t }, { resultExtractor: _.Json });
1016
1016
  }
1017
1017
  notify(e, t, n) {
1018
1018
  let r = {
@@ -1025,7 +1025,7 @@ var P = { emit: (e) => N.emit(e) }, DataMonitorService = class {
1025
1025
  window.focus(), t.navigationUrl && (window.location.href = t.navigationUrl);
1026
1026
  }
1027
1027
  };
1028
- M.publish("browser", r);
1028
+ N.publish("browser", r);
1029
1029
  }
1030
1030
  saveToStorage() {
1031
1031
  let e = {};
@@ -1039,50 +1039,54 @@ var P = { emit: (e) => N.emit(e) }, DataMonitorService = class {
1039
1039
  };
1040
1040
  }), this.storage.set(e);
1041
1041
  }
1042
- }, F = new DataMonitorService();
1042
+ }, I = new DataMonitorService();
1043
1043
  //#endregion
1044
1044
  //#region src/dataMonitor/useDataMonitor.ts
1045
1045
  function useDataMonitor(t) {
1046
- let n = e(33), { viewId: r, countUrl: a, viewName: o, condition: l, notification: u, interval: d } = t, t0;
1047
- n[0] === r ? t0 = n[1] : (t0 = () => F.isEnabled(r), n[0] = r, n[1] = t0);
1046
+ let n = e(36), { viewId: r, countUrl: a, viewName: o, condition: l, notification: u, interval: d } = t, t0;
1047
+ n[0] === r ? t0 = n[1] : (t0 = () => I.isEnabled(r), n[0] = r, n[1] = t0);
1048
1048
  let [f, p] = c(t0), m = s(r), t1, h;
1049
1049
  n[2] === r ? (t1 = n[3], h = n[4]) : (t1 = () => {
1050
1050
  m.current = r;
1051
1051
  }, h = [r], n[2] = r, n[3] = t1, n[4] = h), i(t1, h);
1052
1052
  let t3, g;
1053
- n[5] !== l || n[6] !== r ? (t3 = () => {
1054
- F.isEnabled(r) && F.updateCondition(r, l);
1055
- }, g = [r, l], n[5] = l, n[6] = r, n[7] = t3, n[8] = g) : (t3 = n[7], g = n[8]), i(t3, g);
1053
+ n[5] === r ? (t3 = n[6], g = n[7]) : (t3 = () => {
1054
+ p(I.isEnabled(r));
1055
+ }, g = [r], n[5] = r, n[6] = t3, n[7] = g), i(t3, g);
1056
1056
  let t5, _;
1057
- n[9] !== u || n[10] !== r ? (t5 = () => {
1058
- F.isEnabled(r) && F.updateNotification(r, u);
1059
- }, _ = [r, u], n[9] = u, n[10] = r, n[11] = t5, n[12] = _) : (t5 = n[11], _ = n[12]), i(t5, _);
1057
+ n[8] !== l || n[9] !== r ? (t5 = () => {
1058
+ I.isEnabled(r) && I.updateCondition(r, l);
1059
+ }, _ = [r, l], n[8] = l, n[9] = r, n[10] = t5, n[11] = _) : (t5 = n[10], _ = n[11]), i(t5, _);
1060
1060
  let t7, v;
1061
- n[13] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => () => {
1061
+ n[12] !== u || n[13] !== r ? (t7 = () => {
1062
+ I.isEnabled(r) && I.updateNotification(r, u);
1063
+ }, v = [r, u], n[12] = u, n[13] = r, n[14] = t7, n[15] = v) : (t7 = n[14], v = n[15]), i(t7, v);
1064
+ let y, t9;
1065
+ n[16] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => () => {
1062
1066
  let e = m.current;
1063
- F.isEnabled(e) && F.disable(e);
1064
- }, v = [], n[13] = t7, n[14] = v) : (t7 = n[13], v = n[14]), i(t7, v);
1065
- let t9;
1066
- n[15] !== l || n[16] !== a || n[17] !== d || n[18] !== u || n[19] !== r || n[20] !== o ? (t9 = () => {
1067
- F.enable(r, a, o, l, u, d), p(!0);
1068
- }, n[15] = l, n[16] = a, n[17] = d, n[18] = u, n[19] = r, n[20] = o, n[21] = t9) : t9 = n[21];
1069
- let y = t9, t10;
1070
- n[22] === r ? t10 = n[23] : (t10 = () => {
1071
- F.disable(r), p(!1);
1072
- }, n[22] = r, n[23] = t10);
1073
- let b = t10, t11;
1074
- n[24] !== b || n[25] !== y || n[26] !== f ? (t11 = () => {
1075
- f ? b() : y();
1076
- }, n[24] = b, n[25] = y, n[26] = f, n[27] = t11) : t11 = n[27];
1077
- let x = t11, S;
1078
- return n[28] !== b || n[29] !== y || n[30] !== f || n[31] !== x ? (S = {
1067
+ I.isEnabled(e) && I.disable(e);
1068
+ }, y = [], n[16] = y, n[17] = t9) : (y = n[16], t9 = n[17]), i(t9, y);
1069
+ let t11;
1070
+ n[18] !== l || n[19] !== a || n[20] !== d || n[21] !== u || n[22] !== r || n[23] !== o ? (t11 = () => {
1071
+ I.enable(r, a, o, l, u, d), p(!0);
1072
+ }, n[18] = l, n[19] = a, n[20] = d, n[21] = u, n[22] = r, n[23] = o, n[24] = t11) : t11 = n[24];
1073
+ let b = t11, t12;
1074
+ n[25] === r ? t12 = n[26] : (t12 = () => {
1075
+ I.disable(r), p(!1);
1076
+ }, n[25] = r, n[26] = t12);
1077
+ let x = t12, t13;
1078
+ n[27] !== x || n[28] !== b || n[29] !== f ? (t13 = () => {
1079
+ f ? x() : b();
1080
+ }, n[27] = x, n[28] = b, n[29] = f, n[30] = t13) : t13 = n[30];
1081
+ let S = t13, C;
1082
+ return n[31] !== x || n[32] !== b || n[33] !== f || n[34] !== S ? (C = {
1079
1083
  isEnabled: f,
1080
- enable: y,
1081
- disable: b,
1082
- toggle: x
1083
- }, n[28] = b, n[29] = y, n[30] = f, n[31] = x, n[32] = S) : S = n[32], S;
1084
+ enable: b,
1085
+ disable: x,
1086
+ toggle: S
1087
+ }, n[31] = x, n[32] = b, n[33] = f, n[34] = S, n[35] = C) : C = n[35], C;
1084
1088
  }
1085
1089
  //#endregion
1086
- export { T as ANONYMOUS_USER, DataMonitorService, w as FullscreenContext, FullscreenProvider, C as PromiseStatus, RefreshableRouteGuard, RouteGuard, E as SecurityContext, SecurityProvider, addFullscreenChangeListener, collectMethods, createExecuteApiHooks, createQueryApiHooks, P as dataMonitorEventBus, F as dataMonitorService, enterFullscreen, exitFullscreen, getFullscreenElement, isFullscreen, isValidateQuery, methodNameToHookName, removeFullscreenChangeListener, useCountQuery, useDataMonitor, useDataMonitorEventBus, useDebouncedCallback, useDebouncedExecutePromise, useDebouncedFetcher, useDebouncedFetcherQuery, useDebouncedQuery, useEventSubscription, useExecutePromise, useFetcher, useFetcherCountQuery, useFetcherListQuery, useFetcherListStreamQuery, useFetcherPagedQuery, useFetcherQuery, useFetcherSingleQuery, useForceUpdate, useFullscreen, useFullscreenContext, useImmerKeyStorage, useKeyStorage, useLatest, useListQuery, useListStreamQuery, useMounted, usePagedQuery, usePromiseState, useQuery, useQueryState, useRefs, useRequestId, useSecurity, useSecurityContext, useSingleQuery };
1090
+ export { E as ANONYMOUS_USER, DataMonitorService, T as FullscreenContext, FullscreenProvider, w as PromiseStatus, RefreshableRouteGuard, RouteGuard, D as SecurityContext, SecurityProvider, addFullscreenChangeListener, collectMethods, createExecuteApiHooks, createQueryApiHooks, F as dataMonitorEventBus, I as dataMonitorService, enterFullscreen, exitFullscreen, getFullscreenElement, isFullscreen, isValidateQuery, methodNameToHookName, removeFullscreenChangeListener, useCountQuery, useDataMonitor, useDataMonitorEventBus, useDebouncedCallback, useDebouncedExecutePromise, useDebouncedFetcher, useDebouncedFetcherQuery, useDebouncedQuery, useEventSubscription, useExecutePromise, useFetcher, useFetcherCountQuery, useFetcherListQuery, useFetcherListStreamQuery, useFetcherPagedQuery, useFetcherQuery, useFetcherSingleQuery, useForceUpdate, useFullscreen, useFullscreenContext, useImmerKeyStorage, useKeyStorage, useLatest, useListQuery, useListStreamQuery, useMounted, usePagedQuery, usePromiseState, useQuery, useQueryState, useRefs, useRequestId, useSecurity, useSecurityContext, useSingleQuery };
1087
1091
 
1088
1092
  //# sourceMappingURL=index.es.js.map