@bahmni/registration-app 0.0.1-dev.342 → 0.0.1-dev.343

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