@bahmni/registration-app 0.0.1-dev.336 → 0.0.1-dev.338

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,16 +1,16 @@
1
- import { jsx as r, jsxs as p, Fragment as x } from "react/jsx-runtime";
2
- import { a as G, u as W, q as Y, p as J, $ as X, v as Z, R as ee, b as te } from "./index-BjmjdKVd.js";
1
+ import { jsx as r, jsxs as h, Fragment as x } from "react/jsx-runtime";
2
+ import { l as G, u as W, B as Y, o as J, P as X, E as Z, S as ee, m as te } from "./index-CMTtgcpf.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
- import { useState as l, useCallback as h, useEffect as I, useMemo as _ } from "react";
5
- const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
4
+ import { useState as c, useCallback as _, useEffect as I, useMemo as p } from "react";
5
+ const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", le = "DocumentsTable-module_documentIframe__ptq5I", ce = "DocumentsTable-module_documentImage__KQVgS", d = {
6
6
  documentsTableBody: ne,
7
7
  viewAttachmentsLink: oe,
8
8
  documentViewerContainer: re,
9
9
  attachmentItem: de,
10
10
  attachmentCounter: se,
11
11
  attachmentError: me,
12
- documentIframe: ce,
13
- documentImage: le
12
+ documentIframe: le,
13
+ documentImage: ce
14
14
  }, ue = {
15
15
  documentIdentifier: "DOCUMENTS_DOCUMENT_IDENTIFIER",
16
16
  documentType: "DOCUMENTS_TYPE",
@@ -18,7 +18,7 @@ const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTab
18
18
  uploadedBy: "DOCUMENTS_UPLOADED_BY",
19
19
  attachments: "DOCUMENTS_ATTACHMENTS"
20
20
  };
21
- function R(a) {
21
+ function B(a) {
22
22
  return !a || a.includes(":") ? "#" : `/openmrs/auth?requested_document=/document_images/${a}`;
23
23
  }
24
24
  function ie(a, E) {
@@ -33,18 +33,18 @@ const Te = [
33
33
  "attachments",
34
34
  "uploadedOn",
35
35
  "uploadedBy"
36
- ], pe = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, B = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], Ne = ({ config: a, encounterUuids: E }) => {
37
- const [s, w] = l(!1), [o, U] = l(
36
+ ], he = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, R = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], Ne = ({ config: a, encounterUuids: E }) => {
37
+ const [s, w] = c(!1), [o, U] = c(
38
38
  null
39
- ), [$, O] = l(
39
+ ), [$, O] = c(
40
40
  /* @__PURE__ */ new Set()
41
- ), g = G(), { t: n } = W(), { addNotification: L } = Y(), k = Number(a?.pageSize) || 5, [f, C] = l(1), [u, V] = l(k), [q, A] = l(void 0), M = h((e) => {
41
+ ), g = G(), { t: n } = W(), { addNotification: L } = Y(), k = Number(a?.pageSize) || 5, [f, C] = c(1), [u, V] = c(k), [F, A] = c(void 0), M = _((e) => {
42
42
  U(e), w(!0);
43
- }, []), F = h(() => {
43
+ }, []), H = _(() => {
44
44
  w(!1), U(null), O(/* @__PURE__ */ new Set());
45
- }, []), v = h((e) => {
45
+ }, []), v = _((e) => {
46
46
  O((t) => new Set(t).add(e));
47
- }, []), { data: i, isLoading: H, isError: b, error: y } = ae({
47
+ }, []), { data: i, isLoading: P, isError: b, error: y } = ae({
48
48
  queryKey: [
49
49
  "documents",
50
50
  g,
@@ -74,39 +74,39 @@ const Te = [
74
74
  const e = new AbortController();
75
75
  return (async () => {
76
76
  if (!s || !o) return;
77
- const t = /* @__PURE__ */ new Set(), m = B(o);
78
- for (let c = 0; c < m.length; c++) {
79
- const S = R(m[c].url);
77
+ const t = /* @__PURE__ */ new Set(), m = R(o);
78
+ for (let l = 0; l < m.length; l++) {
79
+ const S = B(m[l].url);
80
80
  try {
81
81
  (await fetch(S, {
82
82
  method: "HEAD",
83
83
  signal: e.signal
84
- })).ok || t.add(c);
84
+ })).ok || t.add(l);
85
85
  } catch (D) {
86
- D instanceof Error && D.name !== "AbortError" && t.add(c);
86
+ D instanceof Error && D.name !== "AbortError" && t.add(l);
87
87
  }
88
88
  }
89
89
  e.signal.aborted || O(t);
90
90
  })(), () => e.abort();
91
91
  }, [s, o]);
92
- const j = h(
92
+ const q = _(
93
93
  (e, t) => {
94
94
  t !== u ? (V(t), C(1), A(void 0)) : C(e);
95
95
  },
96
96
  [u]
97
- ), N = _(
97
+ ), N = p(
98
98
  () => a?.fields ?? Te,
99
99
  [a?.fields]
100
- ), P = _(() => [...i?.documents ?? []].sort((e, t) => !e.uploadedOn && !t.uploadedOn ? 0 : e.uploadedOn ? t.uploadedOn ? new Date(t.uploadedOn).getTime() - new Date(e.uploadedOn).getTime() : -1 : 1), [i]), Q = _(() => ie(N, n), [N, n]), z = _(
100
+ ), j = p(() => [...i?.documents ?? []].sort((e, t) => !e.uploadedOn && !t.uploadedOn ? 0 : e.uploadedOn ? t.uploadedOn ? new Date(t.uploadedOn).getTime() - new Date(e.uploadedOn).getTime() : -1 : 1), [i]), z = p(() => ie(N, n), [N, n]), K = p(
101
101
  () => N.map((e) => ({
102
102
  key: e,
103
103
  sortable: e !== "attachments"
104
104
  })),
105
105
  [N]
106
- ), T = _(
107
- () => o ? B(o) : [],
106
+ ), T = p(
107
+ () => o ? R(o) : [],
108
108
  [o]
109
- ), K = h(
109
+ ), Q = _(
110
110
  (e, t) => {
111
111
  switch (t) {
112
112
  case "documentIdentifier":
@@ -137,24 +137,24 @@ const Te = [
137
137
  },
138
138
  [M, n]
139
139
  );
140
- return /* @__PURE__ */ p(x, { children: [
140
+ return /* @__PURE__ */ h(x, { children: [
141
141
  /* @__PURE__ */ r("div", { "data-testid": "documents-table", children: /* @__PURE__ */ r(
142
142
  ee,
143
143
  {
144
- headers: Q,
144
+ headers: z,
145
145
  ariaLabel: n("DOCUMENTS_TABLE_HEADING"),
146
- rows: P,
147
- loading: H,
146
+ rows: j,
147
+ loading: P,
148
148
  errorStateMessage: b ? y?.message : null,
149
- sortable: z,
149
+ sortable: K,
150
150
  emptyStateMessage: n("DOCUMENTS_NO_RECORDS"),
151
- renderCell: K,
151
+ renderCell: Q,
152
152
  className: d.documentsTableBody,
153
153
  dataTestId: "documents-table",
154
154
  pageSize: u,
155
- totalItems: q,
155
+ totalItems: F,
156
156
  page: f,
157
- onPageChange: j
157
+ onPageChange: q
158
158
  }
159
159
  ) }),
160
160
  s && o && /* @__PURE__ */ r(
@@ -163,20 +163,20 @@ const Te = [
163
163
  id: "modalIdForActionAreaLayout",
164
164
  portalId: "main-display-area",
165
165
  open: s,
166
- onRequestClose: F,
166
+ onRequestClose: H,
167
167
  modalHeading: o.documentIdentifier,
168
168
  passiveModal: !0,
169
169
  size: "lg",
170
170
  testId: "document-view-modal",
171
171
  children: /* @__PURE__ */ r("div", { className: d.documentViewerContainer, children: T.map((e, t) => {
172
- const m = R(e.url), c = e.contentType?.toLowerCase().includes("pdf"), S = (e.contentType?.toLowerCase().includes("image") ?? !1) || pe.test(e.url ?? ""), D = $.has(t);
173
- return m === "#" || D ? /* @__PURE__ */ p(
172
+ const m = B(e.url), l = e.contentType?.toLowerCase().includes("pdf"), S = (e.contentType?.toLowerCase().includes("image") ?? !1) || he.test(e.url ?? ""), D = $.has(t);
173
+ return m === "#" || D ? /* @__PURE__ */ h(
174
174
  "div",
175
175
  {
176
176
  className: d.attachmentError,
177
177
  "data-testid": `attachment-error-${t}`,
178
178
  children: [
179
- T.length > 1 && /* @__PURE__ */ p("p", { className: d.attachmentCounter, children: [
179
+ T.length > 1 && /* @__PURE__ */ h("p", { className: d.attachmentCounter, children: [
180
180
  t + 1,
181
181
  "/",
182
182
  T.length
@@ -185,13 +185,13 @@ const Te = [
185
185
  ]
186
186
  },
187
187
  `${o.id}-${e.url}`
188
- ) : /* @__PURE__ */ p(
188
+ ) : /* @__PURE__ */ h(
189
189
  "div",
190
190
  {
191
191
  className: d.attachmentItem,
192
192
  "data-testid": `attachment-item-${t}`,
193
193
  children: [
194
- T.length > 1 && /* @__PURE__ */ p("p", { className: d.attachmentCounter, children: [
194
+ T.length > 1 && /* @__PURE__ */ h("p", { className: d.attachmentCounter, children: [
195
195
  t + 1,
196
196
  "/",
197
197
  T.length
@@ -207,7 +207,7 @@ const Te = [
207
207
  ) : /* @__PURE__ */ r(
208
208
  "iframe",
209
209
  {
210
- src: c ? `${m}#toolbar=0` : m,
210
+ src: l ? `${m}#toolbar=0` : m,
211
211
  className: d.documentIframe,
212
212
  title: o.documentIdentifier,
213
213
  onError: () => v(t)
@@ -1,78 +1,78 @@
1
1
  import { jsx as i, jsxs as re, Fragment as oe } from "react/jsx-runtime";
2
- import { u as ae, a as se, c as te, h as ne, d as de, e as ie, f as le, U as me, l as ce, g as q, v as ue, $ as fe, R as $, _ as ye, A as he, b as be, i as pe } from "./index-BjmjdKVd.js";
2
+ import { u as ae, l as se, a as te, n as ne, V as de, r as ie, t as me, K as le, v as ce, Z as q, E as ue, P as fe, S as K, O as ye, L as be, m as he, b as pe } from "./index-CMTtgcpf.js";
3
3
  import { useQueryClient as ge, useQuery as y } from "@tanstack/react-query";
4
- import { useState as k, useMemo as d, useCallback as h } from "react";
5
- const Ne = "FormsTable-module_formsTableBody__SvGha", Ae = "FormsTable-module_customAccordianItem__isszs", O = {
4
+ import { useState as V, useMemo as d, useCallback as b } from "react";
5
+ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_customAccordianItem__isszs", A = {
6
6
  formsTableBody: Ne,
7
- customAccordianItem: Ae
8
- }, Be = ({
7
+ customAccordianItem: Oe
8
+ }, Le = ({
9
9
  episodeOfCareUuids: T,
10
- encounterUuids: m,
11
- config: Q
10
+ encounterUuids: l,
11
+ config: k
12
12
  }) => {
13
- const { t: n } = ae(), c = se(), [u, I] = k(!1), [s, _] = k(null), {
13
+ const { t: n } = ae(), c = se(), [u, E] = V(!1), [s, I] = V(null), {
14
14
  numberOfVisits: w,
15
- hideThumbnail: K = !1,
15
+ hideThumbnail: j = !1,
16
16
  forms: f
17
- } = Q ?? {}, B = te(
17
+ } = k ?? {}, L = te(
18
18
  T,
19
- m
20
- ), j = ge(), {
21
- data: E = [],
19
+ l
20
+ ), x = ge(), {
21
+ data: B = [],
22
22
  isLoading: F,
23
- isError: L,
24
- error: x,
25
- refetch: G
23
+ isError: S,
24
+ error: G,
25
+ refetch: H
26
26
  } = y({
27
27
  queryKey: ["forms", c, T],
28
28
  queryFn: () => ne(c, void 0, w),
29
- enabled: !!c && !B
30
- }), R = d(() => {
31
- let e = E;
32
- return m && m.length > 0 && (e = e.filter(
33
- (r) => m.includes(r.encounterUuid)
29
+ enabled: !!c && !L
30
+ }), M = d(() => {
31
+ let e = B;
32
+ return l && l.length > 0 && (e = e.filter(
33
+ (r) => l.includes(r.encounterUuid)
34
34
  )), Array.isArray(f) && f.length > 0 && (e = e.filter(
35
35
  (r) => f.some((o) => o.toLowerCase() === r.formName.toLowerCase())
36
36
  )), e;
37
- }, [E, m, f]), { data: M = [] } = y({
37
+ }, [B, l, f]), { data: _ = [] } = y({
38
38
  queryKey: ["observationForms"],
39
39
  queryFn: () => de()
40
- }), v = h(
41
- (e) => M.find((r) => r.name === e)?.uuid,
42
- [M]
43
- ), b = d(() => {
40
+ }), v = b(
41
+ (e) => _.find((r) => r.name === e)?.uuid,
42
+ [_]
43
+ ), h = d(() => {
44
44
  if (s)
45
45
  return v(s.formName);
46
46
  }, [s, v]), {
47
- data: l,
48
- isLoading: H,
49
- isError: V,
47
+ data: m,
48
+ isLoading: $,
49
+ isError: z,
50
50
  error: p
51
51
  } = y({
52
- queryKey: ["formMetadata", b],
53
- queryFn: () => ie(b),
54
- enabled: !!b && u
52
+ queryKey: ["formMetadata", h],
53
+ queryFn: () => ie(h),
54
+ enabled: !!h && u
55
55
  }), {
56
56
  data: g,
57
- isLoading: z,
58
- isError: P,
57
+ isLoading: P,
58
+ isError: Q,
59
59
  error: N
60
60
  } = y({
61
61
  queryKey: ["formsEncounterFHIR", s?.encounterUuid],
62
- queryFn: () => le(s.encounterUuid),
62
+ queryFn: () => me(s.encounterUuid),
63
63
  enabled: !!s?.encounterUuid && u
64
64
  });
65
- me(
65
+ le(
66
66
  (e) => {
67
- e.patientUUID === c && e.updatedConcepts.size > 0 && (G(), j.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
67
+ e.patientUUID === c && e.updatedConcepts.size > 0 && (H(), x.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
68
68
  },
69
69
  [c]
70
70
  );
71
- const Y = d(() => !g?.entry || !s?.formName ? [] : g.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => {
71
+ const Z = d(() => !g?.entry || !s?.formName ? [] : g.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => {
72
72
  const r = ce(e);
73
73
  return !r || r.includes(s.formName);
74
- }), [g, s?.formName]), J = d(() => {
75
- if (!l?.schema) return;
74
+ }), [g, s?.formName]), Y = d(() => {
75
+ if (!m?.schema) return;
76
76
  const e = [], r = (o) => {
77
77
  (o ?? []).forEach((t) => {
78
78
  const a = t;
@@ -80,45 +80,45 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Ae = "FormsTable-module_cu
80
80
  });
81
81
  };
82
82
  return r(
83
- l.schema.controls ?? []
83
+ m.schema.controls ?? []
84
84
  ), e.length > 0 ? e : void 0;
85
- }, [l]), W = d(() => {
86
- if (!l?.schema) return;
85
+ }, [m]), J = d(() => {
86
+ if (!m?.schema) return;
87
87
  const e = {}, r = (o, t) => {
88
88
  for (const a of o)
89
89
  if (a.type === "section") {
90
- const A = a.label?.value ?? "Section";
91
- r(a.controls ?? [], A);
90
+ const O = a.label?.value ?? "Section";
91
+ r(a.controls ?? [], O);
92
92
  } else
93
93
  a.id != null && t && (e[String(a.id)] = t), a.controls && r(a.controls, t);
94
94
  };
95
95
  return r(
96
- l.schema.controls ?? [],
96
+ m.schema.controls ?? [],
97
97
  null
98
98
  ), Object.keys(e).length > 0 ? e : void 0;
99
- }, [l]), X = d(() => {
99
+ }, [m]), W = d(() => {
100
100
  if (p)
101
101
  return q(p).message;
102
102
  if (N)
103
103
  return q(N).message;
104
- }, [p, N]), S = d(
104
+ }, [p, N]), C = d(
105
105
  () => [
106
106
  { key: "recordedOn", header: n("RECORDED_ON") },
107
107
  { key: "recordedBy", header: n("RECORDED_BY") }
108
108
  ],
109
109
  [n]
110
- ), Z = d(
110
+ ), X = d(
111
111
  () => [
112
112
  { key: "recordedOn", sortable: !0 },
113
113
  { key: "recordedBy", sortable: !0 }
114
114
  ],
115
115
  []
116
- ), U = d(() => {
117
- const e = R.reduce(
116
+ ), D = d(() => {
117
+ const e = M.reduce(
118
118
  (r, o) => {
119
119
  const t = o.formName;
120
120
  r[t] ??= [];
121
- const a = o.providers.map((A) => A.providerName).filter(Boolean).join(", ");
121
+ const a = o.providers.map((O) => O.providerName).filter(Boolean).join(", ");
122
122
  return r[t].push({
123
123
  id: o.encounterUuid,
124
124
  formName: o.formName,
@@ -138,58 +138,58 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Ae = "FormsTable-module_cu
138
138
  )
139
139
  })
140
140
  ).sort((r, o) => r.formName.localeCompare(o.formName));
141
- }, [R, n]), C = h((e) => {
142
- _(e), I(!0);
143
- }, []), ee = h(() => {
144
- I(!1), _(null);
145
- }, []), D = h(
141
+ }, [M, n]), R = b((e) => {
142
+ I(e), E(!0);
143
+ }, []), ee = b(() => {
144
+ E(!1), I(null);
145
+ }, []), U = b(
146
146
  (e, r) => {
147
147
  switch (r) {
148
148
  case "recordedOn":
149
- return /* @__PURE__ */ i(fe, { onClick: () => C(e), children: e.recordedOn });
149
+ return /* @__PURE__ */ i(fe, { onClick: () => R(e), children: e.recordedOn });
150
150
  case "recordedBy":
151
151
  return e.recordedBy;
152
152
  default:
153
153
  return null;
154
154
  }
155
155
  },
156
- [C]
156
+ [R]
157
157
  );
158
158
  return /* @__PURE__ */ re(oe, { children: [
159
- /* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: F || L || U.length === 0 || B ? /* @__PURE__ */ i(
160
- $,
159
+ /* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: F || S || D.length === 0 || L ? /* @__PURE__ */ i(
160
+ K,
161
161
  {
162
- headers: S,
162
+ headers: C,
163
163
  ariaLabel: n("FORMS_HEADING"),
164
164
  rows: [],
165
165
  loading: F,
166
- errorStateMessage: L ? x?.message : void 0,
166
+ errorStateMessage: S ? G?.message : void 0,
167
167
  emptyStateMessage: n("FORMS_UNAVAILABLE"),
168
- renderCell: D,
169
- className: O.formsTableBody,
168
+ renderCell: U,
169
+ className: A.formsTableBody,
170
170
  dataTestId: "forms-table"
171
171
  }
172
- ) : /* @__PURE__ */ i(ye, { align: "start", children: U.map((e, r) => {
172
+ ) : /* @__PURE__ */ i(ye, { align: "start", children: D.map((e, r) => {
173
173
  const { formName: o, records: t } = e;
174
174
  return /* @__PURE__ */ i(
175
- he,
175
+ be,
176
176
  {
177
177
  title: o,
178
- className: O.customAccordianItem,
178
+ className: A.customAccordianItem,
179
179
  testId: `accordian-title-${o}`,
180
180
  open: r === 0,
181
181
  children: /* @__PURE__ */ i(
182
- $,
182
+ K,
183
183
  {
184
- headers: S,
184
+ headers: C,
185
185
  ariaLabel: n("FORMS_HEADING"),
186
186
  rows: t,
187
187
  loading: !1,
188
188
  errorStateMessage: "",
189
- sortable: Z,
189
+ sortable: X,
190
190
  emptyStateMessage: n("FORMS_UNAVAILABLE"),
191
- renderCell: D,
192
- className: O.formsTableBody,
191
+ renderCell: U,
192
+ className: A.formsTableBody,
193
193
  dataTestId: `forms-table-${o}`
194
194
  }
195
195
  )
@@ -198,7 +198,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Ae = "FormsTable-module_cu
198
198
  );
199
199
  }) }) }),
200
200
  u && s && /* @__PURE__ */ i(
201
- be,
201
+ he,
202
202
  {
203
203
  id: "modalIdForActionAreaLayout",
204
204
  portalId: "main-display-area",
@@ -212,15 +212,15 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Ae = "FormsTable-module_cu
212
212
  children: /* @__PURE__ */ i(
213
213
  pe,
214
214
  {
215
- observations: Y,
216
- isLoading: H || z,
217
- isError: V || P,
218
- errorMessage: X,
215
+ observations: Z,
216
+ isLoading: $ || P,
217
+ isError: z || Q,
218
+ errorMessage: W,
219
219
  emptyStateMessage: n("NO_FORM_DATA_AVAILABLE"),
220
220
  testIdPrefix: s.formName,
221
- hideThumbnail: K,
222
- controlOrder: J,
223
- sectionMap: W
221
+ hideThumbnail: j,
222
+ controlOrder: Y,
223
+ sectionMap: J
224
224
  }
225
225
  )
226
226
  }
@@ -228,5 +228,5 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Ae = "FormsTable-module_cu
228
228
  ] });
229
229
  };
230
230
  export {
231
- Be as default
231
+ Le as default
232
232
  };
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-zv-gfVHZ.js";
2
- import { t as d, w as f, x as e } from "./index-BjmjdKVd.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-C-raIn0u.js";
2
+ import { s as d, w as f, y as e } from "./index-CMTtgcpf.js";
3
3
  var p = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,9 +1,9 @@
1
- import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-zv-gfVHZ.js";
2
- import { t as v, w as C, x as e } from "./index-BjmjdKVd.js";
1
+ import { c as l, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-C-raIn0u.js";
2
+ import { s as v, w as C, y as e } from "./index-CMTtgcpf.js";
3
3
  var h = (t) => {
4
- const [r, o] = s({
4
+ const [r, o] = l({
5
5
  prefix: "TanstackQueryDevtools"
6
- }), a = v(), l = C(() => {
6
+ }), a = v(), s = C(() => {
7
7
  const n = r.theme_preference || c;
8
8
  return n !== "system" ? n : a();
9
9
  });
@@ -16,7 +16,7 @@ var h = (t) => {
16
16
  setLocalStore: o,
17
17
  get children() {
18
18
  return e(i.Provider, {
19
- value: l,
19
+ value: s,
20
20
  get children() {
21
21
  return e(m, {
22
22
  get children() {