@bahmni/widgets 0.0.1-dev.411 → 0.0.1-dev.413

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.
@@ -42078,7 +42078,7 @@ function Tc({
42078
42078
  }, s), a));
42079
42079
  }
42080
42080
  const {
42081
- open: P01,
42081
+ open: F01,
42082
42082
  ...rft
42083
42083
  } = So.propTypes ?? {};
42084
42084
  Tc.propTypes = {
@@ -71199,7 +71199,7 @@ const p3 = ({
71199
71199
  container: XHt,
71200
71200
  accordion: QHt,
71201
71201
  rows: eMt
71202
- }, F01 = ({
71202
+ }, j01 = ({
71203
71203
  title: t,
71204
71204
  rows: e,
71205
71205
  children: r,
@@ -73831,23 +73831,23 @@ u1.getAdapter = JIe.getAdapter;
73831
73831
  u1.HttpStatusCode = Ru;
73832
73832
  u1.default = u1;
73833
73833
  const {
73834
- Axios: U01,
73835
- AxiosError: W01,
73836
- CanceledError: q01,
73837
- isCancel: G01,
73838
- CancelToken: K01,
73839
- VERSION: Y01,
73840
- all: J01,
73841
- Cancel: X01,
73842
- isAxiosError: Q01,
73843
- spread: er1,
73844
- toFormData: tr1,
73845
- AxiosHeaders: rr1,
73846
- HttpStatusCode: nr1,
73847
- formToJSON: or1,
73848
- getAdapter: ar1,
73849
- mergeConfig: ir1,
73850
- create: sr1
73834
+ Axios: W01,
73835
+ AxiosError: q01,
73836
+ CanceledError: G01,
73837
+ isCancel: K01,
73838
+ CancelToken: Y01,
73839
+ VERSION: J01,
73840
+ all: X01,
73841
+ Cancel: Q01,
73842
+ isAxiosError: er1,
73843
+ spread: tr1,
73844
+ toFormData: rr1,
73845
+ AxiosHeaders: nr1,
73846
+ HttpStatusCode: or1,
73847
+ formToJSON: ar1,
73848
+ getAdapter: ir1,
73849
+ mergeConfig: sr1,
73850
+ create: lr1
73851
73851
  } = u1, yxt = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", Vxt = (t) => {
73852
73852
  if (!t.issue || !Array.isArray(t.issue))
73853
73853
  return null;
@@ -77431,7 +77431,7 @@ const R_t = (t) => /^\d{4}-\d{2}-\d{2}T/.test(t), D_t = () => {
77431
77431
  }
77432
77432
  };
77433
77433
  }, ja = D_t(), S_t = (t, e) => `${h1}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(t)}`, $_t = "SHORT", I_t = "FULLY_SPECIFIED";
77434
- async function lr1(t, e) {
77434
+ async function cr1(t, e) {
77435
77435
  const r = S_t(t), n = await Vt(r);
77436
77436
  return !n.results || n.results.length === 0 ? null : n.results[0];
77437
77437
  }
@@ -82806,7 +82806,7 @@ async function UZe(t, e, r) {
82806
82806
  const n = jZe(t, e, r);
82807
82807
  return await Vt(n);
82808
82808
  }
82809
- async function cr1(t, e, r) {
82809
+ async function dr1(t, e, r) {
82810
82810
  const n = jZe(
82811
82811
  t,
82812
82812
  e,
@@ -82816,7 +82816,7 @@ async function cr1(t, e, r) {
82816
82816
  );
82817
82817
  return await Vt(n);
82818
82818
  }
82819
- async function dr1(t, e, r, n) {
82819
+ async function ur1(t, e, r, n) {
82820
82820
  const a = oTt(
82821
82821
  t,
82822
82822
  e,
@@ -82970,7 +82970,7 @@ const qZe = async () => {
82970
82970
  schema: n,
82971
82971
  translations: d
82972
82972
  };
82973
- }, ur1 = async (t, e, r) => {
82973
+ }, hr1 = async (t, e, r) => {
82974
82974
  const n = nTt(t, r), a = await Vt(n);
82975
82975
  return Array.isArray(a) ? a : [];
82976
82976
  }, HTt = h1 + "/bahmnicore/diseaseSummaryData?", MTt = async (t, e, r, n) => {
@@ -83079,7 +83079,7 @@ function $Tt(t) {
83079
83079
  };
83080
83080
  });
83081
83081
  }
83082
- async function hr1(t, e, r = 10, n = 1) {
83082
+ async function pr1(t, e, r = 10, n = 1) {
83083
83083
  const a = (n - 1) * r, i = DTt(
83084
83084
  t,
83085
83085
  e,
@@ -83317,7 +83317,7 @@ async function aOt(t) {
83317
83317
  const l = setTimeout(s, QTt);
83318
83318
  a.focus(), a.print();
83319
83319
  }
83320
- const pr1 = ({
83320
+ const fr1 = ({
83321
83321
  printOptions: t,
83322
83322
  renderContext: e,
83323
83323
  renderData: r,
@@ -97618,7 +97618,7 @@ function qh({
97618
97618
  }, s), a));
97619
97619
  }
97620
97620
  const {
97621
- open: fr1,
97621
+ open: mr1,
97622
97622
  ...RFt
97623
97623
  } = Hi.propTypes ?? {};
97624
97624
  qh.propTypes = {
@@ -98464,7 +98464,7 @@ const e8 = () => {
98464
98464
  "useNotification must be used within a NotificationProvider"
98465
98465
  );
98466
98466
  return t;
98467
- }, mr1 = () => {
98467
+ }, wr1 = () => {
98468
98468
  const { addNotification: t } = z1();
98469
98469
  return be(() => {
98470
98470
  ja.register((e) => {
@@ -98544,7 +98544,7 @@ const jFt = "DocumentUpload-module_container__rONO3", UFt = "DocumentUpload-modu
98544
98544
  }) => {
98545
98545
  const a = (n ?? "").toLowerCase();
98546
98546
  return a.includes("image") ? /* @__PURE__ */ D(NIe, { id: t, imageSrc: e, alt: r }) : a.includes("video") ? /* @__PURE__ */ D(_Ie, { id: t, videoSrc: e, modalTitle: r }) : /* @__PURE__ */ D(AIe, { id: t, src: e, modalTitle: r });
98547
- }, ajt = (t) => t.startsWith("image/") || t.startsWith("video/") || t === "application/pdf", wr1 = ({
98547
+ }, ajt = (t) => t.startsWith("image/") || t.startsWith("video/") || t === "application/pdf", gr1 = ({
98548
98548
  patientUuid: t,
98549
98549
  encounterTypeName: e,
98550
98550
  saveTarget: r,
@@ -98762,7 +98762,7 @@ function gjt(t, e) {
98762
98762
  ageDetails: wjt(t.birthDate, e)
98763
98763
  };
98764
98764
  }
98765
- const gr1 = () => {
98765
+ const vr1 = () => {
98766
98766
  const { t } = ut(), { addNotification: e } = z1(), r = v0(), {
98767
98767
  data: n,
98768
98768
  isLoading: a,
@@ -103237,7 +103237,7 @@ const n8 = (t) => t?.controls ?? [], aBe = (t) => t.flatMap((e) => [
103237
103237
  const r = e.split("/")[0].split("^").pop()?.replace(/\.\d+$/, "");
103238
103238
  if (r)
103239
103239
  return r;
103240
- }, vr1 = (t, e) => t?.date ? wt(t.date, e).formattedResult : e("DATE_ERROR_PARSE"), o8 = (t, e, r) => {
103240
+ }, Er1 = (t, e) => t?.date ? wt(t.date, e).formattedResult : e("DATE_ERROR_PARSE"), o8 = (t, e, r) => {
103241
103241
  if (t.observationValue?.value == null)
103242
103242
  return "";
103243
103243
  const { value: n, unit: a, type: i } = t.observationValue;
@@ -103270,7 +103270,7 @@ const n8 = (t) => t?.controls ?? [], aBe = (t) => t.flatMap((e) => [
103270
103270
  display: e,
103271
103271
  referenceRange: s || void 0
103272
103272
  };
103273
- }, Er1 = (t, e, r) => ({
103273
+ }, yr1 = (t, e, r) => ({
103274
103274
  index: e,
103275
103275
  header: wGt(t),
103276
103276
  value: o8(t, r),
@@ -103304,7 +103304,7 @@ function lBe(t, e, r) {
103304
103304
  // conceptId is required to group the multiselect obs
103305
103305
  };
103306
103306
  }
103307
- function yr1(t) {
103307
+ function Vr1(t) {
103308
103308
  const e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set();
103309
103309
  t.entry?.forEach(({ resource: s }) => {
103310
103310
  s?.id && (s.resourceType === "Encounter" ? e.set(s.id, s) : s.resourceType === "Observation" && (r.set(s.id, s), s.hasMember?.forEach((l) => {
@@ -103323,7 +103323,7 @@ function yr1(t) {
103323
103323
  c.members ? i.push(c) : a.push(c);
103324
103324
  }), { observations: a, groupedObservations: i };
103325
103325
  }
103326
- function Vr1(t) {
103326
+ function Hr1(t) {
103327
103327
  const e = /* @__PURE__ */ new Map();
103328
103328
  return t.observations.forEach((r) => {
103329
103329
  if (!r.encounter?.id) return;
@@ -103349,13 +103349,13 @@ function Vr1(t) {
103349
103349
  };
103350
103350
  });
103351
103351
  }
103352
- function Hr1(t) {
103352
+ function Mr1(t) {
103353
103353
  return [...t].sort((e, r) => {
103354
103354
  const n = e.encounterDetails?.date, a = r.encounterDetails?.date;
103355
103355
  return !n && !a ? 0 : n ? a ? new Date(a).getTime() - new Date(n).getTime() : -1 : 1;
103356
103356
  });
103357
103357
  }
103358
- function Mr1(t) {
103358
+ function br1(t) {
103359
103359
  const e = [...t.observations, ...t.groupedObservations];
103360
103360
  if (e.length === 0) return t;
103361
103361
  const r = e.reduce(
@@ -104743,7 +104743,7 @@ const BKt = ({
104743
104743
  key: t.key,
104744
104744
  component: t.component
104745
104745
  });
104746
- }, br1 = (t) => l8.find((e) => e.key === t), xr1 = () => {
104746
+ }, xr1 = (t) => l8.find((e) => e.key === t), Nr1 = () => {
104747
104747
  l8.length = 0;
104748
104748
  }, UKt = (t) => {
104749
104749
  switch (t?.toLowerCase()) {
@@ -110867,7 +110867,7 @@ const uXt = async (t) => (await eke(t, "completed")).map(cXt), lLe = ({
110867
110867
  default:
110868
110868
  return "IMMUNIZATION_HISTORY_WIDGET_TITLE";
110869
110869
  }
110870
- }, fXt = ({ config: t }) => {
110870
+ }, fXt = (t) => t === "not-done" ? "IMMUNIZATION_HISTORY_WIDGET_ADD_WAIVER_BUTTON" : "IMMUNIZATION_HISTORY_WIDGET_ADD_BUTTON", mXt = ({ config: t }) => {
110871
110871
  const { t: e } = ut(), r = v0(), [n, a] = Ee(0), i = t, s = i?.status, l = i?.encounterType, c = i?.startEncounterPrivilege, d = i?.administeredFields, u = i?.notAdministeredFields, m = {
110872
110872
  columns: d ? d.filter((v) => aLe.includes(v)) : aLe,
110873
110873
  expandedFields: d ? d.filter(
@@ -110976,7 +110976,7 @@ const uXt = async (t) => (await eke(t, "completed")).map(cXt), lLe = ({
110976
110976
  autoAlign: !0,
110977
110977
  size: "lg",
110978
110978
  kind: "ghost",
110979
- label: e("IMMUNIZATION_HISTORY_WIDGET_ADD_BUTTON"),
110979
+ label: e(fXt(s)),
110980
110980
  onClick: M,
110981
110981
  children: /* @__PURE__ */ D(
110982
110982
  a2,
@@ -110996,9 +110996,9 @@ const uXt = async (t) => (await eke(t, "completed")).map(cXt), lLe = ({
110996
110996
  ]
110997
110997
  }
110998
110998
  );
110999
- }, mXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
110999
+ }, wXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
111000
111000
  __proto__: null,
111001
- default: fXt
111001
+ default: mXt
111002
111002
  }, Symbol.toStringTag, { value: "Module" })), MBe = [
111003
111003
  "programName",
111004
111004
  "startDate",
@@ -111006,15 +111006,15 @@ const uXt = async (t) => (await eke(t, "completed")).map(cXt), lLe = ({
111006
111006
  "outcome",
111007
111007
  "state",
111008
111008
  "careManager"
111009
- ], wXt = ["careManager"], gXt = "Edit Patient Programs", vXt = "ProgramDetails-module_error__KOaxf", EXt = "ProgramDetails-module_loading__-c-ec", yXt = "ProgramDetails-module_grid__Anpu7", VXt = "ProgramDetails-module_header__1QY-2", HXt = "ProgramDetails-module_title__VYDAP", MXt = "ProgramDetails-module_programDetails__PPdA7", qn = {
111010
- error: vXt,
111011
- loading: EXt,
111012
- grid: yXt,
111013
- header: VXt,
111014
- title: HXt,
111015
- programDetails: MXt
111009
+ ], gXt = ["careManager"], vXt = "Edit Patient Programs", EXt = "ProgramDetails-module_error__KOaxf", yXt = "ProgramDetails-module_loading__-c-ec", VXt = "ProgramDetails-module_grid__Anpu7", HXt = "ProgramDetails-module_header__1QY-2", MXt = "ProgramDetails-module_title__VYDAP", bXt = "ProgramDetails-module_programDetails__PPdA7", qn = {
111010
+ error: EXt,
111011
+ loading: yXt,
111012
+ grid: VXt,
111013
+ header: HXt,
111014
+ title: MXt,
111015
+ programDetails: bXt
111016
111016
  };
111017
- function bXt(t) {
111017
+ function xXt(t) {
111018
111018
  return t ? t.map((e) => e.name).filter((e) => !MBe.includes(e)) : [];
111019
111019
  }
111020
111020
  function dLe(t, e, r) {
@@ -111035,7 +111035,7 @@ function dLe(t, e, r) {
111035
111035
  }))
111036
111036
  };
111037
111037
  }
111038
- const xXt = (t) => ["programs", t], NXt = async (t, e, r) => {
111038
+ const NXt = (t) => ["programs", t], AXt = async (t, e, r) => {
111039
111039
  const n = await _Tt(t);
111040
111040
  if (r && n.episodeUuid) {
111041
111041
  const a = await WZe(n.episodeUuid);
@@ -111046,24 +111046,24 @@ const xXt = (t) => ["programs", t], NXt = async (t, e, r) => {
111046
111046
  );
111047
111047
  }
111048
111048
  return dLe(n, e);
111049
- }, Nr1 = ({
111049
+ }, Ar1 = ({
111050
111050
  programUUID: t,
111051
111051
  config: e
111052
111052
  }) => {
111053
111053
  const { t: r } = ut(), { addNotification: n } = z1(), [a, i] = Ee(!1), { userPrivileges: s } = en(), l = $r(
111054
111054
  s,
111055
- gXt
111055
+ vXt
111056
111056
  ), c = $e(
111057
- () => bXt(e?.fields),
111057
+ () => xXt(e?.fields),
111058
111058
  [e?.fields]
111059
111059
  ), d = $e(
111060
111060
  () => (e?.fields ?? []).some(
111061
- (N) => wXt.includes(N.name)
111061
+ (N) => gXt.includes(N.name)
111062
111062
  ),
111063
111063
  [e?.fields]
111064
111064
  ), { data: u, isLoading: m, isError: w, refetch: g } = Ct({
111065
- queryKey: xXt(t),
111066
- queryFn: () => NXt(
111065
+ queryKey: NXt(t),
111066
+ queryFn: () => AXt(
111067
111067
  t,
111068
111068
  c,
111069
111069
  d
@@ -111246,18 +111246,18 @@ const xXt = (t) => ["programs", t], NXt = async (t, e, r) => {
111246
111246
  }
111247
111247
  );
111248
111248
  };
111249
- var uLe = 1, AXt = 0.9, _Xt = 0.8, CXt = 0.17, yd = 0.1, Vd = 0.999, zXt = 0.9999, TXt = 0.99, OXt = /[\\\/_+.#"@\[\(\{&]/, LXt = /[\\\/_+.#"@\[\(\{&]/g, RXt = /[\s-]/, bBe = /[\s-]/g;
111249
+ var uLe = 1, _Xt = 0.9, CXt = 0.8, zXt = 0.17, yd = 0.1, Vd = 0.999, TXt = 0.9999, OXt = 0.99, LXt = /[\\\/_+.#"@\[\(\{&]/, RXt = /[\\\/_+.#"@\[\(\{&]/g, DXt = /[\s-]/, bBe = /[\s-]/g;
111250
111250
  function t5(t, e, r, n, a, i, s) {
111251
- if (i === e.length) return a === t.length ? uLe : TXt;
111251
+ if (i === e.length) return a === t.length ? uLe : OXt;
111252
111252
  var l = `${a},${i}`;
111253
111253
  if (s[l] !== void 0) return s[l];
111254
- for (var c = n.charAt(i), d = r.indexOf(c, a), u = 0, m, w, g, V; d >= 0; ) m = t5(t, e, r, n, d + 1, i + 1, s), m > u && (d === a ? m *= uLe : OXt.test(t.charAt(d - 1)) ? (m *= _Xt, g = t.slice(a, d - 1).match(LXt), g && a > 0 && (m *= Math.pow(Vd, g.length))) : RXt.test(t.charAt(d - 1)) ? (m *= AXt, V = t.slice(a, d - 1).match(bBe), V && a > 0 && (m *= Math.pow(Vd, V.length))) : (m *= CXt, a > 0 && (m *= Math.pow(Vd, d - a))), t.charAt(d) !== e.charAt(i) && (m *= zXt)), (m < yd && r.charAt(d - 1) === n.charAt(i + 1) || n.charAt(i + 1) === n.charAt(i) && r.charAt(d - 1) !== n.charAt(i)) && (w = t5(t, e, r, n, d + 1, i + 2, s), w * yd > m && (m = w * yd)), m > u && (u = m), d = r.indexOf(c, d + 1);
111254
+ for (var c = n.charAt(i), d = r.indexOf(c, a), u = 0, m, w, g, V; d >= 0; ) m = t5(t, e, r, n, d + 1, i + 1, s), m > u && (d === a ? m *= uLe : LXt.test(t.charAt(d - 1)) ? (m *= CXt, g = t.slice(a, d - 1).match(RXt), g && a > 0 && (m *= Math.pow(Vd, g.length))) : DXt.test(t.charAt(d - 1)) ? (m *= _Xt, V = t.slice(a, d - 1).match(bBe), V && a > 0 && (m *= Math.pow(Vd, V.length))) : (m *= zXt, a > 0 && (m *= Math.pow(Vd, d - a))), t.charAt(d) !== e.charAt(i) && (m *= TXt)), (m < yd && r.charAt(d - 1) === n.charAt(i + 1) || n.charAt(i + 1) === n.charAt(i) && r.charAt(d - 1) !== n.charAt(i)) && (w = t5(t, e, r, n, d + 1, i + 2, s), w * yd > m && (m = w * yd)), m > u && (u = m), d = r.indexOf(c, d + 1);
111255
111255
  return s[l] = u, u;
111256
111256
  }
111257
111257
  function hLe(t) {
111258
111258
  return t.toLowerCase().replace(bBe, " ");
111259
111259
  }
111260
- function DXt(t, e, r) {
111260
+ function SXt(t, e, r) {
111261
111261
  return t = r && r.length > 0 ? `${t + " " + r.join(" ")}` : t, t5(t, e, hLe(t), hLe(e), 0, 0, {});
111262
111262
  }
111263
111263
  function yn(t, e, { checkForDefaultPrevented: r = !0 } = {}) {
@@ -111290,7 +111290,7 @@ function Rn(...t) {
111290
111290
  function T2(...t) {
111291
111291
  return ue.useCallback(Rn(...t), t);
111292
111292
  }
111293
- function SXt(t, e) {
111293
+ function $Xt(t, e) {
111294
111294
  const r = ue.createContext(e), n = (i) => {
111295
111295
  const { children: s, ...l } = i, c = ue.useMemo(() => l, Object.values(l));
111296
111296
  return /* @__PURE__ */ D(r.Provider, { value: c, children: s });
@@ -111304,7 +111304,7 @@ function SXt(t, e) {
111304
111304
  }
111305
111305
  return [n, a];
111306
111306
  }
111307
- function $Xt(t, e = []) {
111307
+ function IXt(t, e = []) {
111308
111308
  let r = [];
111309
111309
  function n(i, s) {
111310
111310
  const l = ue.createContext(s), c = r.length;
@@ -111332,9 +111332,9 @@ function $Xt(t, e = []) {
111332
111332
  );
111333
111333
  };
111334
111334
  };
111335
- return a.scopeName = t, [n, IXt(a, ...e)];
111335
+ return a.scopeName = t, [n, ZXt(a, ...e)];
111336
111336
  }
111337
- function IXt(...t) {
111337
+ function ZXt(...t) {
111338
111338
  const e = t[0];
111339
111339
  if (t.length === 1) return e;
111340
111340
  const r = () => {
@@ -111353,23 +111353,23 @@ function IXt(...t) {
111353
111353
  return r.scopeName = e.scopeName, r;
111354
111354
  }
111355
111355
  var Ga = globalThis?.document ? ue.useLayoutEffect : () => {
111356
- }, ZXt = ue[" useId ".trim().toString()] || (() => {
111357
- }), kXt = 0;
111356
+ }, kXt = ue[" useId ".trim().toString()] || (() => {
111357
+ }), BXt = 0;
111358
111358
  function Gr(t) {
111359
- const [e, r] = ue.useState(ZXt());
111359
+ const [e, r] = ue.useState(kXt());
111360
111360
  return Ga(() => {
111361
- r((n) => n ?? String(kXt++));
111361
+ r((n) => n ?? String(BXt++));
111362
111362
  }, [t]), e ? `radix-${e}` : "";
111363
111363
  }
111364
- var BXt = ue[" useInsertionEffect ".trim().toString()] || Ga;
111365
- function PXt({
111364
+ var PXt = ue[" useInsertionEffect ".trim().toString()] || Ga;
111365
+ function FXt({
111366
111366
  prop: t,
111367
111367
  defaultProp: e,
111368
111368
  onChange: r = () => {
111369
111369
  },
111370
111370
  caller: n
111371
111371
  }) {
111372
- const [a, i, s] = FXt({
111372
+ const [a, i, s] = jXt({
111373
111373
  defaultProp: e,
111374
111374
  onChange: r
111375
111375
  }), l = t !== void 0, c = l ? t : a;
@@ -111385,7 +111385,7 @@ function PXt({
111385
111385
  const d = ue.useCallback(
111386
111386
  (u) => {
111387
111387
  if (l) {
111388
- const m = jXt(u) ? u(t) : u;
111388
+ const m = UXt(u) ? u(t) : u;
111389
111389
  m !== t && s.current?.(m);
111390
111390
  } else
111391
111391
  i(u);
@@ -111394,24 +111394,24 @@ function PXt({
111394
111394
  );
111395
111395
  return [c, d];
111396
111396
  }
111397
- function FXt({
111397
+ function jXt({
111398
111398
  defaultProp: t,
111399
111399
  onChange: e
111400
111400
  }) {
111401
111401
  const [r, n] = ue.useState(t), a = ue.useRef(r), i = ue.useRef(e);
111402
- return BXt(() => {
111402
+ return PXt(() => {
111403
111403
  i.current = e;
111404
111404
  }, [e]), ue.useEffect(() => {
111405
111405
  a.current !== r && (i.current?.(r), a.current = r);
111406
111406
  }, [r, a]), [r, n, i];
111407
111407
  }
111408
- function jXt(t) {
111408
+ function UXt(t) {
111409
111409
  return typeof t == "function";
111410
111410
  }
111411
111411
  // @__NO_SIDE_EFFECTS__
111412
111412
  function xBe(t) {
111413
- const e = /* @__PURE__ */ UXt(t), r = ue.forwardRef((n, a) => {
111414
- const { children: i, ...s } = n, l = ue.Children.toArray(i), c = l.find(qXt);
111413
+ const e = /* @__PURE__ */ WXt(t), r = ue.forwardRef((n, a) => {
111414
+ const { children: i, ...s } = n, l = ue.Children.toArray(i), c = l.find(GXt);
111415
111415
  if (c) {
111416
111416
  const d = c.props.children, u = l.map((m) => m === c ? ue.Children.count(d) > 1 ? ue.Children.only(null) : ue.isValidElement(d) ? d.props.children : null : m);
111417
111417
  return /* @__PURE__ */ D(e, { ...s, ref: a, children: ue.isValidElement(d) ? ue.cloneElement(d, void 0, u) : null });
@@ -111421,22 +111421,22 @@ function xBe(t) {
111421
111421
  return r.displayName = `${t}.Slot`, r;
111422
111422
  }
111423
111423
  // @__NO_SIDE_EFFECTS__
111424
- function UXt(t) {
111424
+ function WXt(t) {
111425
111425
  const e = ue.forwardRef((r, n) => {
111426
111426
  const { children: a, ...i } = r;
111427
111427
  if (ue.isValidElement(a)) {
111428
- const s = KXt(a), l = GXt(i, a.props);
111428
+ const s = YXt(a), l = KXt(i, a.props);
111429
111429
  return a.type !== ue.Fragment && (l.ref = n ? Rn(n, s) : s), ue.cloneElement(a, l);
111430
111430
  }
111431
111431
  return ue.Children.count(a) > 1 ? ue.Children.only(null) : null;
111432
111432
  });
111433
111433
  return e.displayName = `${t}.SlotClone`, e;
111434
111434
  }
111435
- var WXt = /* @__PURE__ */ Symbol("radix.slottable");
111436
- function qXt(t) {
111437
- return ue.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === WXt;
111435
+ var qXt = /* @__PURE__ */ Symbol("radix.slottable");
111436
+ function GXt(t) {
111437
+ return ue.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === qXt;
111438
111438
  }
111439
- function GXt(t, e) {
111439
+ function KXt(t, e) {
111440
111440
  const r = { ...e };
111441
111441
  for (const n in e) {
111442
111442
  const a = t[n], i = e[n];
@@ -111447,11 +111447,11 @@ function GXt(t, e) {
111447
111447
  }
111448
111448
  return { ...t, ...r };
111449
111449
  }
111450
- function KXt(t) {
111450
+ function YXt(t) {
111451
111451
  let e = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, r = e && "isReactWarning" in e && e.isReactWarning;
111452
111452
  return r ? t.ref : (e = Object.getOwnPropertyDescriptor(t, "ref")?.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? t.props.ref : t.props.ref || t.ref);
111453
111453
  }
111454
- var YXt = [
111454
+ var JXt = [
111455
111455
  "a",
111456
111456
  "button",
111457
111457
  "div",
@@ -111469,14 +111469,14 @@ var YXt = [
111469
111469
  "span",
111470
111470
  "svg",
111471
111471
  "ul"
111472
- ], tn = YXt.reduce((t, e) => {
111472
+ ], tn = JXt.reduce((t, e) => {
111473
111473
  const r = /* @__PURE__ */ xBe(`Primitive.${e}`), n = ue.forwardRef((a, i) => {
111474
111474
  const { asChild: s, ...l } = a, c = s ? r : e;
111475
111475
  return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ D(c, { ...l, ref: i });
111476
111476
  });
111477
111477
  return n.displayName = `Primitive.${e}`, { ...t, [e]: n };
111478
111478
  }, {});
111479
- function JXt(t, e) {
111479
+ function XXt(t, e) {
111480
111480
  t && i5.flushSync(() => t.dispatchEvent(e));
111481
111481
  }
111482
111482
  function Ka(t) {
@@ -111485,7 +111485,7 @@ function Ka(t) {
111485
111485
  e.current = t;
111486
111486
  }), ue.useMemo(() => (...r) => e.current?.(...r), []);
111487
111487
  }
111488
- function XXt(t, e = globalThis?.document) {
111488
+ function QXt(t, e = globalThis?.document) {
111489
111489
  const r = Ka(t);
111490
111490
  ue.useEffect(() => {
111491
111491
  const n = (a) => {
@@ -111494,7 +111494,7 @@ function XXt(t, e = globalThis?.document) {
111494
111494
  return e.addEventListener("keydown", n, { capture: !0 }), () => e.removeEventListener("keydown", n, { capture: !0 });
111495
111495
  }, [r, e]);
111496
111496
  }
111497
- var QXt = "DismissableLayer", r5 = "dismissableLayer.update", eQt = "dismissableLayer.pointerDownOutside", tQt = "dismissableLayer.focusOutside", fLe, NBe = ue.createContext({
111497
+ var eQt = "DismissableLayer", r5 = "dismissableLayer.update", tQt = "dismissableLayer.pointerDownOutside", rQt = "dismissableLayer.focusOutside", fLe, NBe = ue.createContext({
111498
111498
  layers: /* @__PURE__ */ new Set(),
111499
111499
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
111500
111500
  branches: /* @__PURE__ */ new Set()
@@ -111508,14 +111508,14 @@ var QXt = "DismissableLayer", r5 = "dismissableLayer.update", eQt = "dismissable
111508
111508
  onInteractOutside: s,
111509
111509
  onDismiss: l,
111510
111510
  ...c
111511
- } = t, d = ue.useContext(NBe), [u, m] = ue.useState(null), w = u?.ownerDocument ?? globalThis?.document, [, g] = ue.useState({}), V = T2(e, (L) => m(L)), y = Array.from(d.layers), [M] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), b = y.indexOf(M), v = u ? y.indexOf(u) : -1, E = d.layersWithOutsidePointerEventsDisabled.size > 0, N = v >= b, H = oQt((L) => {
111511
+ } = t, d = ue.useContext(NBe), [u, m] = ue.useState(null), w = u?.ownerDocument ?? globalThis?.document, [, g] = ue.useState({}), V = T2(e, (L) => m(L)), y = Array.from(d.layers), [M] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), b = y.indexOf(M), v = u ? y.indexOf(u) : -1, E = d.layersWithOutsidePointerEventsDisabled.size > 0, N = v >= b, H = aQt((L) => {
111512
111512
  const O = L.target, B = [...d.branches].some((k) => k.contains(O));
111513
111513
  !N || B || (a?.(L), s?.(L), L.defaultPrevented || l?.());
111514
- }, w), A = aQt((L) => {
111514
+ }, w), A = iQt((L) => {
111515
111515
  const O = L.target;
111516
111516
  [...d.branches].some((k) => k.contains(O)) || (i?.(L), s?.(L), L.defaultPrevented || l?.());
111517
111517
  }, w);
111518
- return XXt((L) => {
111518
+ return QXt((L) => {
111519
111519
  v === d.layers.size - 1 && (n?.(L), !L.defaultPrevented && l && (L.preventDefault(), l()));
111520
111520
  }, w), ue.useEffect(() => {
111521
111521
  if (u)
@@ -111546,8 +111546,8 @@ var QXt = "DismissableLayer", r5 = "dismissableLayer.update", eQt = "dismissable
111546
111546
  );
111547
111547
  }
111548
111548
  );
111549
- ABe.displayName = QXt;
111550
- var rQt = "DismissableLayerBranch", nQt = ue.forwardRef((t, e) => {
111549
+ ABe.displayName = eQt;
111550
+ var nQt = "DismissableLayerBranch", oQt = ue.forwardRef((t, e) => {
111551
111551
  const r = ue.useContext(NBe), n = ue.useRef(null), a = T2(e, n);
111552
111552
  return ue.useEffect(() => {
111553
111553
  const i = n.current;
@@ -111557,8 +111557,8 @@ var rQt = "DismissableLayerBranch", nQt = ue.forwardRef((t, e) => {
111557
111557
  };
111558
111558
  }, [r.branches]), /* @__PURE__ */ D(tn.div, { ...t, ref: a });
111559
111559
  });
111560
- nQt.displayName = rQt;
111561
- function oQt(t, e = globalThis?.document) {
111560
+ oQt.displayName = nQt;
111561
+ function aQt(t, e = globalThis?.document) {
111562
111562
  const r = Ka(t), n = ue.useRef(!1), a = ue.useRef(() => {
111563
111563
  });
111564
111564
  return ue.useEffect(() => {
@@ -111566,7 +111566,7 @@ function oQt(t, e = globalThis?.document) {
111566
111566
  if (l.target && !n.current) {
111567
111567
  let c = function() {
111568
111568
  _Be(
111569
- eQt,
111569
+ tQt,
111570
111570
  r,
111571
111571
  d,
111572
111572
  { discrete: !0 }
@@ -111588,11 +111588,11 @@ function oQt(t, e = globalThis?.document) {
111588
111588
  onPointerDownCapture: () => n.current = !0
111589
111589
  };
111590
111590
  }
111591
- function aQt(t, e = globalThis?.document) {
111591
+ function iQt(t, e = globalThis?.document) {
111592
111592
  const r = Ka(t), n = ue.useRef(!1);
111593
111593
  return ue.useEffect(() => {
111594
111594
  const a = (i) => {
111595
- i.target && !n.current && _Be(tQt, r, { originalEvent: i }, {
111595
+ i.target && !n.current && _Be(rQt, r, { originalEvent: i }, {
111596
111596
  discrete: !1
111597
111597
  });
111598
111598
  };
@@ -111608,9 +111608,9 @@ function mLe() {
111608
111608
  }
111609
111609
  function _Be(t, e, r, { discrete: n }) {
111610
111610
  const a = r.originalEvent.target, i = new CustomEvent(t, { bubbles: !1, cancelable: !0, detail: r });
111611
- e && a.addEventListener(t, e, { once: !0 }), n ? JXt(a, i) : a.dispatchEvent(i);
111611
+ e && a.addEventListener(t, e, { once: !0 }), n ? XXt(a, i) : a.dispatchEvent(i);
111612
111612
  }
111613
- var Hd = "focusScope.autoFocusOnMount", Md = "focusScope.autoFocusOnUnmount", wLe = { bubbles: !1, cancelable: !0 }, iQt = "FocusScope", CBe = ue.forwardRef((t, e) => {
111613
+ var Hd = "focusScope.autoFocusOnMount", Md = "focusScope.autoFocusOnUnmount", wLe = { bubbles: !1, cancelable: !0 }, sQt = "FocusScope", CBe = ue.forwardRef((t, e) => {
111614
111614
  const {
111615
111615
  loop: r = !1,
111616
111616
  trapped: n = !1,
@@ -111653,7 +111653,7 @@ var Hd = "focusScope.autoFocusOnMount", Md = "focusScope.autoFocusOnUnmount", wL
111653
111653
  const y = document.activeElement;
111654
111654
  if (!l.contains(y)) {
111655
111655
  const b = new CustomEvent(Hd, wLe);
111656
- l.addEventListener(Hd, d), l.dispatchEvent(b), b.defaultPrevented || (sQt(hQt(zBe(l)), { select: !0 }), document.activeElement === y && dn(l));
111656
+ l.addEventListener(Hd, d), l.dispatchEvent(b), b.defaultPrevented || (lQt(pQt(zBe(l)), { select: !0 }), document.activeElement === y && dn(l));
111657
111657
  }
111658
111658
  return () => {
111659
111659
  l.removeEventListener(Hd, d), setTimeout(() => {
@@ -111668,7 +111668,7 @@ var Hd = "focusScope.autoFocusOnMount", Md = "focusScope.autoFocusOnUnmount", wL
111668
111668
  if (!r && !n || g.paused) return;
111669
111669
  const M = y.key === "Tab" && !y.altKey && !y.ctrlKey && !y.metaKey, b = document.activeElement;
111670
111670
  if (M && b) {
111671
- const v = y.currentTarget, [E, N] = lQt(v);
111671
+ const v = y.currentTarget, [E, N] = cQt(v);
111672
111672
  E && N ? !y.shiftKey && b === N ? (y.preventDefault(), r && dn(E, { select: !0 })) : y.shiftKey && b === E && (y.preventDefault(), r && dn(N, { select: !0 })) : b === v && y.preventDefault();
111673
111673
  }
111674
111674
  },
@@ -111676,13 +111676,13 @@ var Hd = "focusScope.autoFocusOnMount", Md = "focusScope.autoFocusOnUnmount", wL
111676
111676
  );
111677
111677
  return /* @__PURE__ */ D(tn.div, { tabIndex: -1, ...s, ref: w, onKeyDown: V });
111678
111678
  });
111679
- CBe.displayName = iQt;
111680
- function sQt(t, { select: e = !1 } = {}) {
111679
+ CBe.displayName = sQt;
111680
+ function lQt(t, { select: e = !1 } = {}) {
111681
111681
  const r = document.activeElement;
111682
111682
  for (const n of t)
111683
111683
  if (dn(n, { select: e }), document.activeElement !== r) return;
111684
111684
  }
111685
- function lQt(t) {
111685
+ function cQt(t) {
111686
111686
  const e = zBe(t), r = gLe(e, t), n = gLe(e.reverse(), t);
111687
111687
  return [r, n];
111688
111688
  }
@@ -111698,9 +111698,9 @@ function zBe(t) {
111698
111698
  }
111699
111699
  function gLe(t, e) {
111700
111700
  for (const r of t)
111701
- if (!cQt(r, { upTo: e })) return r;
111701
+ if (!dQt(r, { upTo: e })) return r;
111702
111702
  }
111703
- function cQt(t, { upTo: e }) {
111703
+ function dQt(t, { upTo: e }) {
111704
111704
  if (getComputedStyle(t).visibility === "hidden") return !0;
111705
111705
  for (; t; ) {
111706
111706
  if (e !== void 0 && t === e) return !1;
@@ -111709,17 +111709,17 @@ function cQt(t, { upTo: e }) {
111709
111709
  }
111710
111710
  return !1;
111711
111711
  }
111712
- function dQt(t) {
111712
+ function uQt(t) {
111713
111713
  return t instanceof HTMLInputElement && "select" in t;
111714
111714
  }
111715
111715
  function dn(t, { select: e = !1 } = {}) {
111716
111716
  if (t && t.focus) {
111717
111717
  const r = document.activeElement;
111718
- t.focus({ preventScroll: !0 }), t !== r && dQt(t) && e && t.select();
111718
+ t.focus({ preventScroll: !0 }), t !== r && uQt(t) && e && t.select();
111719
111719
  }
111720
111720
  }
111721
- var vLe = uQt();
111722
- function uQt() {
111721
+ var vLe = hQt();
111722
+ function hQt() {
111723
111723
  let t = [];
111724
111724
  return {
111725
111725
  add(e) {
@@ -111735,26 +111735,26 @@ function ELe(t, e) {
111735
111735
  const r = [...t], n = r.indexOf(e);
111736
111736
  return n !== -1 && r.splice(n, 1), r;
111737
111737
  }
111738
- function hQt(t) {
111738
+ function pQt(t) {
111739
111739
  return t.filter((e) => e.tagName !== "A");
111740
111740
  }
111741
- var pQt = "Portal", TBe = ue.forwardRef((t, e) => {
111741
+ var fQt = "Portal", TBe = ue.forwardRef((t, e) => {
111742
111742
  const { container: r, ...n } = t, [a, i] = ue.useState(!1);
111743
111743
  Ga(() => i(!0), []);
111744
111744
  const s = r || a && globalThis?.document?.body;
111745
111745
  return s ? OLe.createPortal(/* @__PURE__ */ D(tn.div, { ...n, ref: e }), s) : null;
111746
111746
  });
111747
- TBe.displayName = pQt;
111748
- function fQt(t, e) {
111747
+ TBe.displayName = fQt;
111748
+ function mQt(t, e) {
111749
111749
  return ue.useReducer((r, n) => e[r][n] ?? r, t);
111750
111750
  }
111751
111751
  var R3 = (t) => {
111752
- const { present: e, children: r } = t, n = mQt(e), a = typeof r == "function" ? r({ present: n.isPresent }) : ue.Children.only(r), i = T2(n.ref, wQt(a));
111752
+ const { present: e, children: r } = t, n = wQt(e), a = typeof r == "function" ? r({ present: n.isPresent }) : ue.Children.only(r), i = T2(n.ref, gQt(a));
111753
111753
  return typeof r == "function" || n.isPresent ? ue.cloneElement(a, { ref: i }) : null;
111754
111754
  };
111755
111755
  R3.displayName = "Presence";
111756
- function mQt(t) {
111757
- const [e, r] = ue.useState(), n = ue.useRef(null), a = ue.useRef(t), i = ue.useRef("none"), s = t ? "mounted" : "unmounted", [l, c] = fQt(s, {
111756
+ function wQt(t) {
111757
+ const [e, r] = ue.useState(), n = ue.useRef(null), a = ue.useRef(t), i = ue.useRef("none"), s = t ? "mounted" : "unmounted", [l, c] = mQt(s, {
111758
111758
  mounted: {
111759
111759
  UNMOUNT: "unmounted",
111760
111760
  ANIMATION_OUT: "unmountSuspended"
@@ -111805,12 +111805,12 @@ function mQt(t) {
111805
111805
  function Fs(t) {
111806
111806
  return t?.animationName || "none";
111807
111807
  }
111808
- function wQt(t) {
111808
+ function gQt(t) {
111809
111809
  let e = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, r = e && "isReactWarning" in e && e.isReactWarning;
111810
111810
  return r ? t.ref : (e = Object.getOwnPropertyDescriptor(t, "ref")?.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? t.props.ref : t.props.ref || t.ref);
111811
111811
  }
111812
111812
  var bd = 0;
111813
- function gQt() {
111813
+ function vQt() {
111814
111814
  ue.useEffect(() => {
111815
111815
  const t = document.querySelectorAll("[data-radix-focus-guard]");
111816
111816
  return document.body.insertAdjacentElement("afterbegin", t[0] ?? yLe()), document.body.insertAdjacentElement("beforeend", t[1] ?? yLe()), bd++, () => {
@@ -111822,11 +111822,11 @@ function yLe() {
111822
111822
  const t = document.createElement("span");
111823
111823
  return t.setAttribute("data-radix-focus-guard", ""), t.tabIndex = 0, t.style.outline = "none", t.style.opacity = "0", t.style.position = "fixed", t.style.pointerEvents = "none", t;
111824
111824
  }
111825
- var pl = "right-scroll-bar-position", fl = "width-before-scroll-bar", vQt = "with-scroll-bars-hidden", EQt = "--removed-body-scroll-bar-size";
111825
+ var pl = "right-scroll-bar-position", fl = "width-before-scroll-bar", EQt = "with-scroll-bars-hidden", yQt = "--removed-body-scroll-bar-size";
111826
111826
  function xd(t, e) {
111827
111827
  return typeof t == "function" ? t(e) : t && (t.current = e), t;
111828
111828
  }
111829
- function yQt(t, e) {
111829
+ function VQt(t, e) {
111830
111830
  var r = Ee(function() {
111831
111831
  return {
111832
111832
  // value
@@ -111847,14 +111847,14 @@ function yQt(t, e) {
111847
111847
  })[0];
111848
111848
  return r.callback = e, r.facade;
111849
111849
  }
111850
- var VQt = typeof window < "u" ? ue.useLayoutEffect : ue.useEffect, VLe = /* @__PURE__ */ new WeakMap();
111851
- function HQt(t, e) {
111852
- var r = yQt(null, function(n) {
111850
+ var HQt = typeof window < "u" ? ue.useLayoutEffect : ue.useEffect, VLe = /* @__PURE__ */ new WeakMap();
111851
+ function MQt(t, e) {
111852
+ var r = VQt(null, function(n) {
111853
111853
  return t.forEach(function(a) {
111854
111854
  return xd(a, n);
111855
111855
  });
111856
111856
  });
111857
- return VQt(function() {
111857
+ return HQt(function() {
111858
111858
  var n = VLe.get(r);
111859
111859
  if (n) {
111860
111860
  var a = new Set(n), i = new Set(t), s = r.current;
@@ -111867,11 +111867,11 @@ function HQt(t, e) {
111867
111867
  VLe.set(r, t);
111868
111868
  }, [t]), r;
111869
111869
  }
111870
- function MQt(t) {
111870
+ function bQt(t) {
111871
111871
  return t;
111872
111872
  }
111873
- function bQt(t, e) {
111874
- e === void 0 && (e = MQt);
111873
+ function xQt(t, e) {
111874
+ e === void 0 && (e = bQt);
111875
111875
  var r = [], n = !1, a = {
111876
111876
  read: function() {
111877
111877
  if (n)
@@ -111925,9 +111925,9 @@ function bQt(t, e) {
111925
111925
  };
111926
111926
  return a;
111927
111927
  }
111928
- function xQt(t) {
111928
+ function NQt(t) {
111929
111929
  t === void 0 && (t = {});
111930
- var e = bQt(null);
111930
+ var e = xQt(null);
111931
111931
  return e.options = br({ async: !0, ssr: !1 }, t), e;
111932
111932
  }
111933
111933
  var OBe = function(t) {
@@ -111940,16 +111940,16 @@ var OBe = function(t) {
111940
111940
  return ue.createElement(n, br({}, r));
111941
111941
  };
111942
111942
  OBe.isSideCarExport = !0;
111943
- function NQt(t, e) {
111943
+ function AQt(t, e) {
111944
111944
  return t.useMedium(e), OBe;
111945
111945
  }
111946
- var LBe = xQt(), Nd = function() {
111946
+ var LBe = NQt(), Nd = function() {
111947
111947
  }, D3 = ue.forwardRef(function(t, e) {
111948
111948
  var r = ue.useRef(null), n = ue.useState({
111949
111949
  onScrollCapture: Nd,
111950
111950
  onWheelCapture: Nd,
111951
111951
  onTouchMoveCapture: Nd
111952
- }), a = n[0], i = n[1], s = t.forwardProps, l = t.children, c = t.className, d = t.removeScrollBar, u = t.enabled, m = t.shards, w = t.sideCar, g = t.noRelative, V = t.noIsolation, y = t.inert, M = t.allowPinchZoom, b = t.as, v = b === void 0 ? "div" : b, E = t.gapMode, N = Dke(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), H = w, A = HQt([r, e]), L = br(br({}, N), a);
111952
+ }), a = n[0], i = n[1], s = t.forwardProps, l = t.children, c = t.className, d = t.removeScrollBar, u = t.enabled, m = t.shards, w = t.sideCar, g = t.noRelative, V = t.noIsolation, y = t.inert, M = t.allowPinchZoom, b = t.as, v = b === void 0 ? "div" : b, E = t.gapMode, N = Dke(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), H = w, A = MQt([r, e]), L = br(br({}, N), a);
111953
111953
  return ue.createElement(
111954
111954
  ue.Fragment,
111955
111955
  null,
@@ -111966,37 +111966,37 @@ D3.classNames = {
111966
111966
  fullWidth: fl,
111967
111967
  zeroRight: pl
111968
111968
  };
111969
- var AQt = function() {
111969
+ var _Qt = function() {
111970
111970
  if (typeof __webpack_nonce__ < "u")
111971
111971
  return __webpack_nonce__;
111972
111972
  };
111973
- function _Qt() {
111973
+ function CQt() {
111974
111974
  if (!document)
111975
111975
  return null;
111976
111976
  var t = document.createElement("style");
111977
111977
  t.type = "text/css";
111978
- var e = AQt();
111978
+ var e = _Qt();
111979
111979
  return e && t.setAttribute("nonce", e), t;
111980
111980
  }
111981
- function CQt(t, e) {
111981
+ function zQt(t, e) {
111982
111982
  t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
111983
111983
  }
111984
- function zQt(t) {
111984
+ function TQt(t) {
111985
111985
  var e = document.head || document.getElementsByTagName("head")[0];
111986
111986
  e.appendChild(t);
111987
111987
  }
111988
- var TQt = function() {
111988
+ var OQt = function() {
111989
111989
  var t = 0, e = null;
111990
111990
  return {
111991
111991
  add: function(r) {
111992
- t == 0 && (e = _Qt()) && (CQt(e, r), zQt(e)), t++;
111992
+ t == 0 && (e = CQt()) && (zQt(e, r), TQt(e)), t++;
111993
111993
  },
111994
111994
  remove: function() {
111995
111995
  t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
111996
111996
  }
111997
111997
  };
111998
- }, OQt = function() {
111999
- var t = TQt();
111998
+ }, LQt = function() {
111999
+ var t = OQt();
112000
112000
  return function(e, r) {
112001
112001
  ue.useEffect(function() {
112002
112002
  return t.add(e), function() {
@@ -112005,35 +112005,35 @@ var TQt = function() {
112005
112005
  }, [e && r]);
112006
112006
  };
112007
112007
  }, RBe = function() {
112008
- var t = OQt(), e = function(r) {
112008
+ var t = LQt(), e = function(r) {
112009
112009
  var n = r.styles, a = r.dynamic;
112010
112010
  return t(n, a), null;
112011
112011
  };
112012
112012
  return e;
112013
- }, LQt = {
112013
+ }, RQt = {
112014
112014
  left: 0,
112015
112015
  top: 0,
112016
112016
  right: 0,
112017
112017
  gap: 0
112018
112018
  }, Ad = function(t) {
112019
112019
  return parseInt(t || "", 10) || 0;
112020
- }, RQt = function(t) {
112020
+ }, DQt = function(t) {
112021
112021
  var e = window.getComputedStyle(document.body), r = e[t === "padding" ? "paddingLeft" : "marginLeft"], n = e[t === "padding" ? "paddingTop" : "marginTop"], a = e[t === "padding" ? "paddingRight" : "marginRight"];
112022
112022
  return [Ad(r), Ad(n), Ad(a)];
112023
- }, DQt = function(t) {
112023
+ }, SQt = function(t) {
112024
112024
  if (t === void 0 && (t = "margin"), typeof window > "u")
112025
- return LQt;
112026
- var e = RQt(t), r = document.documentElement.clientWidth, n = window.innerWidth;
112025
+ return RQt;
112026
+ var e = DQt(t), r = document.documentElement.clientWidth, n = window.innerWidth;
112027
112027
  return {
112028
112028
  left: e[0],
112029
112029
  top: e[1],
112030
112030
  right: e[2],
112031
112031
  gap: Math.max(0, n - r + e[2] - e[0])
112032
112032
  };
112033
- }, SQt = RBe(), co = "data-scroll-locked", $Qt = function(t, e, r, n) {
112033
+ }, $Qt = RBe(), co = "data-scroll-locked", IQt = function(t, e, r, n) {
112034
112034
  var a = t.left, i = t.top, s = t.right, l = t.gap;
112035
112035
  return r === void 0 && (r = "margin"), `
112036
- .`.concat(vQt, ` {
112036
+ .`.concat(EQt, ` {
112037
112037
  overflow: hidden `).concat(n, `;
112038
112038
  padding-right: `).concat(l, "px ").concat(n, `;
112039
112039
  }
@@ -112071,26 +112071,26 @@ var TQt = function() {
112071
112071
  }
112072
112072
 
112073
112073
  body[`).concat(co, `] {
112074
- `).concat(EQt, ": ").concat(l, `px;
112074
+ `).concat(yQt, ": ").concat(l, `px;
112075
112075
  }
112076
112076
  `);
112077
112077
  }, HLe = function() {
112078
112078
  var t = parseInt(document.body.getAttribute(co) || "0", 10);
112079
112079
  return isFinite(t) ? t : 0;
112080
- }, IQt = function() {
112080
+ }, ZQt = function() {
112081
112081
  ue.useEffect(function() {
112082
112082
  return document.body.setAttribute(co, (HLe() + 1).toString()), function() {
112083
112083
  var t = HLe() - 1;
112084
112084
  t <= 0 ? document.body.removeAttribute(co) : document.body.setAttribute(co, t.toString());
112085
112085
  };
112086
112086
  }, []);
112087
- }, ZQt = function(t) {
112087
+ }, kQt = function(t) {
112088
112088
  var e = t.noRelative, r = t.noImportant, n = t.gapMode, a = n === void 0 ? "margin" : n;
112089
- IQt();
112089
+ ZQt();
112090
112090
  var i = ue.useMemo(function() {
112091
- return DQt(a);
112091
+ return SQt(a);
112092
112092
  }, [a]);
112093
- return ue.createElement(SQt, { styles: $Qt(i, !e, a, r ? "" : "!important") });
112093
+ return ue.createElement($Qt, { styles: IQt(i, !e, a, r ? "" : "!important") });
112094
112094
  }, n5 = !1;
112095
112095
  if (typeof window < "u")
112096
112096
  try {
@@ -112103,7 +112103,7 @@ if (typeof window < "u")
112103
112103
  } catch {
112104
112104
  n5 = !1;
112105
112105
  }
112106
- var U2 = n5 ? { passive: !1 } : !1, kQt = function(t) {
112106
+ var U2 = n5 ? { passive: !1 } : !1, BQt = function(t) {
112107
112107
  return t.tagName === "TEXTAREA";
112108
112108
  }, DBe = function(t, e) {
112109
112109
  if (!(t instanceof Element))
@@ -112112,11 +112112,11 @@ var U2 = n5 ? { passive: !1 } : !1, kQt = function(t) {
112112
112112
  return (
112113
112113
  // not-not-scrollable
112114
112114
  r[e] !== "hidden" && // contains scroll inside self
112115
- !(r.overflowY === r.overflowX && !kQt(t) && r[e] === "visible")
112115
+ !(r.overflowY === r.overflowX && !BQt(t) && r[e] === "visible")
112116
112116
  );
112117
- }, BQt = function(t) {
112118
- return DBe(t, "overflowY");
112119
112117
  }, PQt = function(t) {
112118
+ return DBe(t, "overflowY");
112119
+ }, FQt = function(t) {
112120
112120
  return DBe(t, "overflowX");
112121
112121
  }, MLe = function(t, e) {
112122
112122
  var r = e.ownerDocument, n = e;
@@ -112131,14 +112131,14 @@ var U2 = n5 ? { passive: !1 } : !1, kQt = function(t) {
112131
112131
  n = n.parentNode;
112132
112132
  } while (n && n !== r.body);
112133
112133
  return !1;
112134
- }, FQt = function(t) {
112134
+ }, jQt = function(t) {
112135
112135
  var e = t.scrollTop, r = t.scrollHeight, n = t.clientHeight;
112136
112136
  return [
112137
112137
  e,
112138
112138
  r,
112139
112139
  n
112140
112140
  ];
112141
- }, jQt = function(t) {
112141
+ }, UQt = function(t) {
112142
112142
  var e = t.scrollLeft, r = t.scrollWidth, n = t.clientWidth;
112143
112143
  return [
112144
112144
  e,
@@ -112146,13 +112146,13 @@ var U2 = n5 ? { passive: !1 } : !1, kQt = function(t) {
112146
112146
  n
112147
112147
  ];
112148
112148
  }, SBe = function(t, e) {
112149
- return t === "v" ? BQt(e) : PQt(e);
112149
+ return t === "v" ? PQt(e) : FQt(e);
112150
112150
  }, $Be = function(t, e) {
112151
- return t === "v" ? FQt(e) : jQt(e);
112152
- }, UQt = function(t, e) {
112151
+ return t === "v" ? jQt(e) : UQt(e);
112152
+ }, WQt = function(t, e) {
112153
112153
  return t === "h" && e === "rtl" ? -1 : 1;
112154
- }, WQt = function(t, e, r, n, a) {
112155
- var i = UQt(t, window.getComputedStyle(e).direction), s = i * n, l = r.target, c = e.contains(l), d = !1, u = s > 0, m = 0, w = 0;
112154
+ }, qQt = function(t, e, r, n, a) {
112155
+ var i = WQt(t, window.getComputedStyle(e).direction), s = i * n, l = r.target, c = e.contains(l), d = !1, u = s > 0, m = 0, w = 0;
112156
112156
  do {
112157
112157
  if (!l)
112158
112158
  break;
@@ -112172,16 +112172,16 @@ var U2 = n5 ? { passive: !1 } : !1, kQt = function(t) {
112172
112172
  return [t.deltaX, t.deltaY];
112173
112173
  }, xLe = function(t) {
112174
112174
  return t && "current" in t ? t.current : t;
112175
- }, qQt = function(t, e) {
112175
+ }, GQt = function(t, e) {
112176
112176
  return t[0] === e[0] && t[1] === e[1];
112177
- }, GQt = function(t) {
112177
+ }, KQt = function(t) {
112178
112178
  return `
112179
112179
  .block-interactivity-`.concat(t, ` {pointer-events: none;}
112180
112180
  .allow-interactivity-`).concat(t, ` {pointer-events: all;}
112181
112181
  `);
112182
- }, KQt = 0, W2 = [];
112183
- function YQt(t) {
112184
- var e = ue.useRef([]), r = ue.useRef([0, 0]), n = ue.useRef(), a = ue.useState(KQt++)[0], i = ue.useState(RBe)[0], s = ue.useRef(t);
112182
+ }, YQt = 0, W2 = [];
112183
+ function JQt(t) {
112184
+ var e = ue.useRef([]), r = ue.useRef([0, 0]), n = ue.useRef(), a = ue.useState(YQt++)[0], i = ue.useState(RBe)[0], s = ue.useRef(t);
112185
112185
  ue.useEffect(function() {
112186
112186
  s.current = t;
112187
112187
  }, [t]), ue.useEffect(function() {
@@ -112214,12 +112214,12 @@ function YQt(t) {
112214
112214
  if (!n.current && "changedTouches" in y && (E || N) && (n.current = H), !H)
112215
112215
  return !0;
112216
112216
  var X = n.current || H;
112217
- return WQt(X, M, y, X === "h" ? E : N);
112217
+ return qQt(X, M, y, X === "h" ? E : N);
112218
112218
  }, []), c = ue.useCallback(function(y) {
112219
112219
  var M = y;
112220
112220
  if (!(!W2.length || W2[W2.length - 1] !== i)) {
112221
112221
  var b = "deltaY" in M ? bLe(M) : Us(M), v = e.current.filter(function(H) {
112222
- return H.name === M.type && (H.target === M.target || M.target === H.shadowParent) && qQt(H.delta, b);
112222
+ return H.name === M.type && (H.target === M.target || M.target === H.shadowParent) && GQt(H.delta, b);
112223
112223
  })[0];
112224
112224
  if (v && v.should) {
112225
112225
  M.cancelable && M.preventDefault();
@@ -112233,7 +112233,7 @@ function YQt(t) {
112233
112233
  }
112234
112234
  }
112235
112235
  }, []), d = ue.useCallback(function(y, M, b, v) {
112236
- var E = { name: y, delta: M, target: b, should: v, shadowParent: JQt(b) };
112236
+ var E = { name: y, delta: M, target: b, should: v, shadowParent: XQt(b) };
112237
112237
  e.current.push(E), setTimeout(function() {
112238
112238
  e.current = e.current.filter(function(N) {
112239
112239
  return N !== E;
@@ -112261,28 +112261,28 @@ function YQt(t) {
112261
112261
  return ue.createElement(
112262
112262
  ue.Fragment,
112263
112263
  null,
112264
- V ? ue.createElement(i, { styles: GQt(a) }) : null,
112265
- g ? ue.createElement(ZQt, { noRelative: t.noRelative, gapMode: t.gapMode }) : null
112264
+ V ? ue.createElement(i, { styles: KQt(a) }) : null,
112265
+ g ? ue.createElement(kQt, { noRelative: t.noRelative, gapMode: t.gapMode }) : null
112266
112266
  );
112267
112267
  }
112268
- function JQt(t) {
112268
+ function XQt(t) {
112269
112269
  for (var e = null; t !== null; )
112270
112270
  t instanceof ShadowRoot && (e = t.host, t = t.host), t = t.parentNode;
112271
112271
  return e;
112272
112272
  }
112273
- const XQt = NQt(LBe, YQt);
112273
+ const QQt = AQt(LBe, JQt);
112274
112274
  var IBe = ue.forwardRef(function(t, e) {
112275
- return ue.createElement(D3, br({}, t, { ref: e, sideCar: XQt }));
112275
+ return ue.createElement(D3, br({}, t, { ref: e, sideCar: QQt }));
112276
112276
  });
112277
112277
  IBe.classNames = D3.classNames;
112278
- var QQt = function(t) {
112278
+ var ee1 = function(t) {
112279
112279
  if (typeof document > "u")
112280
112280
  return null;
112281
112281
  var e = Array.isArray(t) ? t[0] : t;
112282
112282
  return e.ownerDocument.body;
112283
112283
  }, q2 = /* @__PURE__ */ new WeakMap(), Ws = /* @__PURE__ */ new WeakMap(), qs = {}, _d = 0, ZBe = function(t) {
112284
112284
  return t && (t.host || ZBe(t.parentNode));
112285
- }, ee1 = function(t, e) {
112285
+ }, te1 = function(t, e) {
112286
112286
  return e.map(function(r) {
112287
112287
  if (t.contains(r))
112288
112288
  return r;
@@ -112291,8 +112291,8 @@ var QQt = function(t) {
112291
112291
  }).filter(function(r) {
112292
112292
  return !!r;
112293
112293
  });
112294
- }, te1 = function(t, e, r, n) {
112295
- var a = ee1(e, Array.isArray(t) ? t : [t]);
112294
+ }, re1 = function(t, e, r, n) {
112295
+ var a = te1(e, Array.isArray(t) ? t : [t]);
112296
112296
  qs[r] || (qs[r] = /* @__PURE__ */ new WeakMap());
112297
112297
  var i = qs[r], s = [], l = /* @__PURE__ */ new Set(), c = new Set(a), d = function(m) {
112298
112298
  !m || l.has(m) || (l.add(m), d(m.parentNode));
@@ -112317,13 +112317,13 @@ var QQt = function(t) {
112317
112317
  q2.set(m, w), i.set(m, g), w || (Ws.has(m) || m.removeAttribute(n), Ws.delete(m)), g || m.removeAttribute(r);
112318
112318
  }), _d--, _d || (q2 = /* @__PURE__ */ new WeakMap(), q2 = /* @__PURE__ */ new WeakMap(), Ws = /* @__PURE__ */ new WeakMap(), qs = {});
112319
112319
  };
112320
- }, re1 = function(t, e, r) {
112320
+ }, ne1 = function(t, e, r) {
112321
112321
  r === void 0 && (r = "data-aria-hidden");
112322
- var n = Array.from(Array.isArray(t) ? t : [t]), a = QQt(t);
112323
- return a ? (n.push.apply(n, Array.from(a.querySelectorAll("[aria-live], script"))), te1(n, a, r, "aria-hidden")) : function() {
112322
+ var n = Array.from(Array.isArray(t) ? t : [t]), a = ee1(t);
112323
+ return a ? (n.push.apply(n, Array.from(a.querySelectorAll("[aria-live], script"))), re1(n, a, r, "aria-hidden")) : function() {
112324
112324
  return null;
112325
112325
  };
112326
- }, S3 = "Dialog", [kBe] = $Xt(S3), [ne1, wr] = kBe(S3), BBe = (t) => {
112326
+ }, S3 = "Dialog", [kBe] = IXt(S3), [oe1, wr] = kBe(S3), BBe = (t) => {
112327
112327
  const {
112328
112328
  __scopeDialog: e,
112329
112329
  children: r,
@@ -112331,14 +112331,14 @@ var QQt = function(t) {
112331
112331
  defaultOpen: a,
112332
112332
  onOpenChange: i,
112333
112333
  modal: s = !0
112334
- } = t, l = ue.useRef(null), c = ue.useRef(null), [d, u] = PXt({
112334
+ } = t, l = ue.useRef(null), c = ue.useRef(null), [d, u] = FXt({
112335
112335
  prop: n,
112336
112336
  defaultProp: a ?? !1,
112337
112337
  onChange: i,
112338
112338
  caller: S3
112339
112339
  });
112340
112340
  return /* @__PURE__ */ D(
112341
- ne1,
112341
+ oe1,
112342
112342
  {
112343
112343
  scope: e,
112344
112344
  triggerRef: l,
@@ -112355,7 +112355,7 @@ var QQt = function(t) {
112355
112355
  );
112356
112356
  };
112357
112357
  BBe.displayName = S3;
112358
- var PBe = "DialogTrigger", oe1 = ue.forwardRef(
112358
+ var PBe = "DialogTrigger", ae1 = ue.forwardRef(
112359
112359
  (t, e) => {
112360
112360
  const { __scopeDialog: r, ...n } = t, a = wr(PBe, r), i = T2(e, a.triggerRef);
112361
112361
  return /* @__PURE__ */ D(
@@ -112373,28 +112373,28 @@ var PBe = "DialogTrigger", oe1 = ue.forwardRef(
112373
112373
  );
112374
112374
  }
112375
112375
  );
112376
- oe1.displayName = PBe;
112377
- var u8 = "DialogPortal", [ae1, FBe] = kBe(u8, {
112376
+ ae1.displayName = PBe;
112377
+ var u8 = "DialogPortal", [ie1, FBe] = kBe(u8, {
112378
112378
  forceMount: void 0
112379
112379
  }), jBe = (t) => {
112380
112380
  const { __scopeDialog: e, forceMount: r, children: n, container: a } = t, i = wr(u8, e);
112381
- return /* @__PURE__ */ D(ae1, { scope: e, forceMount: r, children: ue.Children.map(n, (s) => /* @__PURE__ */ D(R3, { present: r || i.open, children: /* @__PURE__ */ D(TBe, { asChild: !0, container: a, children: s }) })) });
112381
+ return /* @__PURE__ */ D(ie1, { scope: e, forceMount: r, children: ue.Children.map(n, (s) => /* @__PURE__ */ D(R3, { present: r || i.open, children: /* @__PURE__ */ D(TBe, { asChild: !0, container: a, children: s }) })) });
112382
112382
  };
112383
112383
  jBe.displayName = u8;
112384
112384
  var mc = "DialogOverlay", UBe = ue.forwardRef(
112385
112385
  (t, e) => {
112386
112386
  const r = FBe(mc, t.__scopeDialog), { forceMount: n = r.forceMount, ...a } = t, i = wr(mc, t.__scopeDialog);
112387
- return i.modal ? /* @__PURE__ */ D(R3, { present: n || i.open, children: /* @__PURE__ */ D(se1, { ...a, ref: e }) }) : null;
112387
+ return i.modal ? /* @__PURE__ */ D(R3, { present: n || i.open, children: /* @__PURE__ */ D(le1, { ...a, ref: e }) }) : null;
112388
112388
  }
112389
112389
  );
112390
112390
  UBe.displayName = mc;
112391
- var ie1 = /* @__PURE__ */ xBe("DialogOverlay.RemoveScroll"), se1 = ue.forwardRef(
112391
+ var se1 = /* @__PURE__ */ xBe("DialogOverlay.RemoveScroll"), le1 = ue.forwardRef(
112392
112392
  (t, e) => {
112393
112393
  const { __scopeDialog: r, ...n } = t, a = wr(mc, r);
112394
112394
  return (
112395
112395
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
112396
112396
  // ie. when `Overlay` and `Content` are siblings
112397
- /* @__PURE__ */ D(IBe, { as: ie1, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ D(
112397
+ /* @__PURE__ */ D(IBe, { as: se1, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ D(
112398
112398
  tn.div,
112399
112399
  {
112400
112400
  "data-state": p8(a.open),
@@ -112408,16 +112408,16 @@ var ie1 = /* @__PURE__ */ xBe("DialogOverlay.RemoveScroll"), se1 = ue.forwardRef
112408
112408
  ), V2 = "DialogContent", WBe = ue.forwardRef(
112409
112409
  (t, e) => {
112410
112410
  const r = FBe(V2, t.__scopeDialog), { forceMount: n = r.forceMount, ...a } = t, i = wr(V2, t.__scopeDialog);
112411
- return /* @__PURE__ */ D(R3, { present: n || i.open, children: i.modal ? /* @__PURE__ */ D(le1, { ...a, ref: e }) : /* @__PURE__ */ D(ce1, { ...a, ref: e }) });
112411
+ return /* @__PURE__ */ D(R3, { present: n || i.open, children: i.modal ? /* @__PURE__ */ D(ce1, { ...a, ref: e }) : /* @__PURE__ */ D(de1, { ...a, ref: e }) });
112412
112412
  }
112413
112413
  );
112414
112414
  WBe.displayName = V2;
112415
- var le1 = ue.forwardRef(
112415
+ var ce1 = ue.forwardRef(
112416
112416
  (t, e) => {
112417
112417
  const r = wr(V2, t.__scopeDialog), n = ue.useRef(null), a = T2(e, r.contentRef, n);
112418
112418
  return ue.useEffect(() => {
112419
112419
  const i = n.current;
112420
- if (i) return re1(i);
112420
+ if (i) return ne1(i);
112421
112421
  }, []), /* @__PURE__ */ D(
112422
112422
  qBe,
112423
112423
  {
@@ -112439,7 +112439,7 @@ var le1 = ue.forwardRef(
112439
112439
  }
112440
112440
  );
112441
112441
  }
112442
- ), ce1 = ue.forwardRef(
112442
+ ), de1 = ue.forwardRef(
112443
112443
  (t, e) => {
112444
112444
  const r = wr(V2, t.__scopeDialog), n = ue.useRef(!1), a = ue.useRef(!1);
112445
112445
  return /* @__PURE__ */ D(
@@ -112463,7 +112463,7 @@ var le1 = ue.forwardRef(
112463
112463
  ), qBe = ue.forwardRef(
112464
112464
  (t, e) => {
112465
112465
  const { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: a, onCloseAutoFocus: i, ...s } = t, l = wr(V2, r), c = ue.useRef(null), d = T2(e, c);
112466
- return gQt(), /* @__PURE__ */ xe(a1, { children: [
112466
+ return vQt(), /* @__PURE__ */ xe(a1, { children: [
112467
112467
  /* @__PURE__ */ D(
112468
112468
  CBe,
112469
112469
  {
@@ -112488,26 +112488,26 @@ var le1 = ue.forwardRef(
112488
112488
  }
112489
112489
  ),
112490
112490
  /* @__PURE__ */ xe(a1, { children: [
112491
- /* @__PURE__ */ D(pe1, { titleId: l.titleId }),
112492
- /* @__PURE__ */ D(me1, { contentRef: c, descriptionId: l.descriptionId })
112491
+ /* @__PURE__ */ D(fe1, { titleId: l.titleId }),
112492
+ /* @__PURE__ */ D(we1, { contentRef: c, descriptionId: l.descriptionId })
112493
112493
  ] })
112494
112494
  ] });
112495
112495
  }
112496
- ), h8 = "DialogTitle", de1 = ue.forwardRef(
112496
+ ), h8 = "DialogTitle", ue1 = ue.forwardRef(
112497
112497
  (t, e) => {
112498
112498
  const { __scopeDialog: r, ...n } = t, a = wr(h8, r);
112499
112499
  return /* @__PURE__ */ D(tn.h2, { id: a.titleId, ...n, ref: e });
112500
112500
  }
112501
112501
  );
112502
- de1.displayName = h8;
112503
- var GBe = "DialogDescription", ue1 = ue.forwardRef(
112502
+ ue1.displayName = h8;
112503
+ var GBe = "DialogDescription", he1 = ue.forwardRef(
112504
112504
  (t, e) => {
112505
112505
  const { __scopeDialog: r, ...n } = t, a = wr(GBe, r);
112506
112506
  return /* @__PURE__ */ D(tn.p, { id: a.descriptionId, ...n, ref: e });
112507
112507
  }
112508
112508
  );
112509
- ue1.displayName = GBe;
112510
- var KBe = "DialogClose", he1 = ue.forwardRef(
112509
+ he1.displayName = GBe;
112510
+ var KBe = "DialogClose", pe1 = ue.forwardRef(
112511
112511
  (t, e) => {
112512
112512
  const { __scopeDialog: r, ...n } = t, a = wr(KBe, r);
112513
112513
  return /* @__PURE__ */ D(
@@ -112521,15 +112521,15 @@ var KBe = "DialogClose", he1 = ue.forwardRef(
112521
112521
  );
112522
112522
  }
112523
112523
  );
112524
- he1.displayName = KBe;
112524
+ pe1.displayName = KBe;
112525
112525
  function p8(t) {
112526
112526
  return t ? "open" : "closed";
112527
112527
  }
112528
- var YBe = "DialogTitleWarning", [Ar1, JBe] = SXt(YBe, {
112528
+ var YBe = "DialogTitleWarning", [_r1, JBe] = $Xt(YBe, {
112529
112529
  contentName: V2,
112530
112530
  titleName: h8,
112531
112531
  docsSlug: "dialog"
112532
- }), pe1 = ({ titleId: t }) => {
112532
+ }), fe1 = ({ titleId: t }) => {
112533
112533
  const e = JBe(YBe), r = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
112534
112534
 
112535
112535
  If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -112538,25 +112538,25 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
112538
112538
  return ue.useEffect(() => {
112539
112539
  t && (document.getElementById(t) || console.error(r));
112540
112540
  }, [r, t]), null;
112541
- }, fe1 = "DialogDescriptionWarning", me1 = ({ contentRef: t, descriptionId: e }) => {
112542
- const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${JBe(fe1).contentName}}.`;
112541
+ }, me1 = "DialogDescriptionWarning", we1 = ({ contentRef: t, descriptionId: e }) => {
112542
+ const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${JBe(me1).contentName}}.`;
112543
112543
  return ue.useEffect(() => {
112544
112544
  const a = t.current?.getAttribute("aria-describedby");
112545
112545
  e && a && (document.getElementById(e) || console.warn(n));
112546
112546
  }, [n, t, e]), null;
112547
- }, we1 = BBe, ge1 = jBe, ve1 = UBe, Ee1 = WBe, ye1 = /* @__PURE__ */ Symbol.for("react.lazy"), wc = ue[" use ".trim().toString()];
112548
- function Ve1(t) {
112547
+ }, ge1 = BBe, ve1 = jBe, Ee1 = UBe, ye1 = WBe, Ve1 = /* @__PURE__ */ Symbol.for("react.lazy"), wc = ue[" use ".trim().toString()];
112548
+ function He1(t) {
112549
112549
  return typeof t == "object" && t !== null && "then" in t;
112550
112550
  }
112551
112551
  function XBe(t) {
112552
- return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === ye1 && "_payload" in t && Ve1(t._payload);
112552
+ return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === Ve1 && "_payload" in t && He1(t._payload);
112553
112553
  }
112554
112554
  // @__NO_SIDE_EFFECTS__
112555
- function He1(t) {
112556
- const e = /* @__PURE__ */ Me1(t), r = ue.forwardRef((n, a) => {
112555
+ function Me1(t) {
112556
+ const e = /* @__PURE__ */ be1(t), r = ue.forwardRef((n, a) => {
112557
112557
  let { children: i, ...s } = n;
112558
112558
  XBe(i) && typeof wc == "function" && (i = wc(i._payload));
112559
- const l = ue.Children.toArray(i), c = l.find(xe1);
112559
+ const l = ue.Children.toArray(i), c = l.find(Ne1);
112560
112560
  if (c) {
112561
112561
  const d = c.props.children, u = l.map((m) => m === c ? ue.Children.count(d) > 1 ? ue.Children.only(null) : ue.isValidElement(d) ? d.props.children : null : m);
112562
112562
  return /* @__PURE__ */ D(e, { ...s, ref: a, children: ue.isValidElement(d) ? ue.cloneElement(d, void 0, u) : null });
@@ -112566,22 +112566,22 @@ function He1(t) {
112566
112566
  return r.displayName = `${t}.Slot`, r;
112567
112567
  }
112568
112568
  // @__NO_SIDE_EFFECTS__
112569
- function Me1(t) {
112569
+ function be1(t) {
112570
112570
  const e = ue.forwardRef((r, n) => {
112571
112571
  let { children: a, ...i } = r;
112572
112572
  if (XBe(a) && typeof wc == "function" && (a = wc(a._payload)), ue.isValidElement(a)) {
112573
- const s = Ae1(a), l = Ne1(i, a.props);
112573
+ const s = _e1(a), l = Ae1(i, a.props);
112574
112574
  return a.type !== ue.Fragment && (l.ref = n ? Rn(n, s) : s), ue.cloneElement(a, l);
112575
112575
  }
112576
112576
  return ue.Children.count(a) > 1 ? ue.Children.only(null) : null;
112577
112577
  });
112578
112578
  return e.displayName = `${t}.SlotClone`, e;
112579
112579
  }
112580
- var be1 = /* @__PURE__ */ Symbol("radix.slottable");
112581
- function xe1(t) {
112582
- return ue.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === be1;
112580
+ var xe1 = /* @__PURE__ */ Symbol("radix.slottable");
112581
+ function Ne1(t) {
112582
+ return ue.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === xe1;
112583
112583
  }
112584
- function Ne1(t, e) {
112584
+ function Ae1(t, e) {
112585
112585
  const r = { ...e };
112586
112586
  for (const n in e) {
112587
112587
  const a = t[n], i = e[n];
@@ -112592,11 +112592,11 @@ function Ne1(t, e) {
112592
112592
  }
112593
112593
  return { ...t, ...r };
112594
112594
  }
112595
- function Ae1(t) {
112595
+ function _e1(t) {
112596
112596
  let e = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, r = e && "isReactWarning" in e && e.isReactWarning;
112597
112597
  return r ? t.ref : (e = Object.getOwnPropertyDescriptor(t, "ref")?.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? t.props.ref : t.props.ref || t.ref);
112598
112598
  }
112599
- var _e1 = [
112599
+ var Ce1 = [
112600
112600
  "a",
112601
112601
  "button",
112602
112602
  "div",
@@ -112614,17 +112614,17 @@ var _e1 = [
112614
112614
  "span",
112615
112615
  "svg",
112616
112616
  "ul"
112617
- ], kn = _e1.reduce((t, e) => {
112618
- const r = /* @__PURE__ */ He1(`Primitive.${e}`), n = ue.forwardRef((a, i) => {
112617
+ ], kn = Ce1.reduce((t, e) => {
112618
+ const r = /* @__PURE__ */ Me1(`Primitive.${e}`), n = ue.forwardRef((a, i) => {
112619
112619
  const { asChild: s, ...l } = a, c = s ? r : e;
112620
112620
  return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ D(c, { ...l, ref: i });
112621
112621
  });
112622
112622
  return n.displayName = `Primitive.${e}`, { ...t, [e]: n };
112623
- }, {}), pa = '[cmdk-group=""]', Cd = '[cmdk-group-items=""]', Ce1 = '[cmdk-group-heading=""]', QBe = '[cmdk-item=""]', NLe = `${QBe}:not([aria-disabled="true"])`, o5 = "cmdk-item-select", J2 = "data-value", ze1 = (t, e, r) => DXt(t, e, r), ePe = ue.createContext(void 0), xi = () => ue.useContext(ePe), tPe = ue.createContext(void 0), f8 = () => ue.useContext(tPe), rPe = ue.createContext(void 0), nPe = ue.forwardRef((t, e) => {
112623
+ }, {}), pa = '[cmdk-group=""]', Cd = '[cmdk-group-items=""]', ze1 = '[cmdk-group-heading=""]', QBe = '[cmdk-item=""]', NLe = `${QBe}:not([aria-disabled="true"])`, o5 = "cmdk-item-select", J2 = "data-value", Te1 = (t, e, r) => SXt(t, e, r), ePe = ue.createContext(void 0), xi = () => ue.useContext(ePe), tPe = ue.createContext(void 0), f8 = () => ue.useContext(tPe), rPe = ue.createContext(void 0), nPe = ue.forwardRef((t, e) => {
112624
112624
  let r = X2(() => {
112625
112625
  var x, C;
112626
112626
  return { search: "", value: (C = (x = t.value) != null ? x : t.defaultValue) != null ? C : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
112627
- }), n = X2(() => /* @__PURE__ */ new Set()), a = X2(() => /* @__PURE__ */ new Map()), i = X2(() => /* @__PURE__ */ new Map()), s = X2(() => /* @__PURE__ */ new Set()), l = oPe(t), { label: c, children: d, value: u, onValueChange: m, filter: w, shouldFilter: g, loop: V, disablePointerSelection: y = !1, vimBindings: M = !0, ...b } = t, v = Gr(), E = Gr(), N = Gr(), H = ue.useRef(null), A = Be1();
112627
+ }), n = X2(() => /* @__PURE__ */ new Set()), a = X2(() => /* @__PURE__ */ new Map()), i = X2(() => /* @__PURE__ */ new Map()), s = X2(() => /* @__PURE__ */ new Set()), l = oPe(t), { label: c, children: d, value: u, onValueChange: m, filter: w, shouldFilter: g, loop: V, disablePointerSelection: y = !1, vimBindings: M = !0, ...b } = t, v = Gr(), E = Gr(), N = Gr(), H = ue.useRef(null), A = Pe1();
112628
112628
  H2(() => {
112629
112629
  if (u !== void 0) {
112630
112630
  let x = u.trim();
@@ -112673,7 +112673,7 @@ var _e1 = [
112673
112673
  }), filter: () => l.current.shouldFilter, label: c || t["aria-label"], getDisablePointerSelection: () => l.current.disablePointerSelection, listId: v, inputId: N, labelId: E, listInnerRef: H }), []);
112674
112674
  function B(x, C) {
112675
112675
  var z, R;
112676
- let G = (R = (z = l.current) == null ? void 0 : z.filter) != null ? R : ze1;
112676
+ let G = (R = (z = l.current) == null ? void 0 : z.filter) != null ? R : Te1;
112677
112677
  return x ? G(x, r.current.search, C) : 0;
112678
112678
  }
112679
112679
  function k() {
@@ -112725,7 +112725,7 @@ var _e1 = [
112725
112725
  function Y() {
112726
112726
  var x, C, z;
112727
112727
  let R = re();
112728
- R && (((x = R.parentElement) == null ? void 0 : x.firstChild) === R && ((z = (C = R.closest(pa)) == null ? void 0 : C.querySelector(Ce1)) == null || z.scrollIntoView({ block: "nearest" })), R.scrollIntoView({ block: "nearest" }));
112728
+ R && (((x = R.parentElement) == null ? void 0 : x.firstChild) === R && ((z = (C = R.closest(pa)) == null ? void 0 : C.querySelector(ze1)) == null || z.scrollIntoView({ block: "nearest" })), R.scrollIntoView({ block: "nearest" }));
112729
112729
  }
112730
112730
  function re() {
112731
112731
  var x;
@@ -112746,7 +112746,7 @@ var _e1 = [
112746
112746
  }
112747
112747
  function Q(x) {
112748
112748
  let C = re(), z = C?.closest(pa), R;
112749
- for (; z && !R; ) z = x > 0 ? Ze1(z, pa) : ke1(z, pa), R = z?.querySelector(NLe);
112749
+ for (; z && !R; ) z = x > 0 ? ke1(z, pa) : Be1(z, pa), R = z?.querySelector(NLe);
112750
112750
  R ? L.setState("value", R.getAttribute(J2)) : ce(x);
112751
112751
  }
112752
112752
  let ne = () => le(oe().length - 1), _ = (x) => {
@@ -112794,8 +112794,8 @@ var _e1 = [
112794
112794
  }
112795
112795
  }
112796
112796
  }
112797
- } }, ue.createElement("label", { "cmdk-label": "", htmlFor: O.inputId, id: O.labelId, style: Fe1 }, c), $3(t, (x) => ue.createElement(tPe.Provider, { value: L }, ue.createElement(ePe.Provider, { value: O }, x))));
112798
- }), Te1 = ue.forwardRef((t, e) => {
112797
+ } }, ue.createElement("label", { "cmdk-label": "", htmlFor: O.inputId, id: O.labelId, style: je1 }, c), $3(t, (x) => ue.createElement(tPe.Provider, { value: L }, ue.createElement(ePe.Provider, { value: O }, x))));
112798
+ }), Oe1 = ue.forwardRef((t, e) => {
112799
112799
  var r, n;
112800
112800
  let a = Gr(), i = ue.useRef(null), s = ue.useContext(rPe), l = xi(), c = oPe(t), d = (n = (r = c.current) == null ? void 0 : r.forceMount) != null ? n : s?.forceMount;
112801
112801
  H2(() => {
@@ -112816,22 +112816,22 @@ var _e1 = [
112816
112816
  if (!g) return null;
112817
112817
  let { disabled: M, value: b, onSelect: v, forceMount: E, keywords: N, ...H } = t;
112818
112818
  return ue.createElement(kn.div, { ref: Rn(i, e), ...H, id: a, "cmdk-item": "", role: "option", "aria-disabled": !!M, "aria-selected": !!w, "data-disabled": !!M, "data-selected": !!w, onPointerMove: M || l.getDisablePointerSelection() ? void 0 : y, onClick: M ? void 0 : V }, t.children);
112819
- }), Oe1 = ue.forwardRef((t, e) => {
112819
+ }), Le1 = ue.forwardRef((t, e) => {
112820
112820
  let { heading: r, children: n, forceMount: a, ...i } = t, s = Gr(), l = ue.useRef(null), c = ue.useRef(null), d = Gr(), u = xi(), m = Dn((g) => a || u.filter() === !1 ? !0 : g.search ? g.filtered.groups.has(s) : !0);
112821
112821
  H2(() => u.group(s), []), aPe(s, l, [t.value, t.heading, c]);
112822
112822
  let w = ue.useMemo(() => ({ id: s, forceMount: a }), [a]);
112823
112823
  return ue.createElement(kn.div, { ref: Rn(l, e), ...i, "cmdk-group": "", role: "presentation", hidden: m ? void 0 : !0 }, r && ue.createElement("div", { ref: c, "cmdk-group-heading": "", "aria-hidden": !0, id: d }, r), $3(t, (g) => ue.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? d : void 0 }, ue.createElement(rPe.Provider, { value: w }, g))));
112824
- }), Le1 = ue.forwardRef((t, e) => {
112824
+ }), Re1 = ue.forwardRef((t, e) => {
112825
112825
  let { alwaysRender: r, ...n } = t, a = ue.useRef(null), i = Dn((s) => !s.search);
112826
112826
  return !r && !i ? null : ue.createElement(kn.div, { ref: Rn(a, e), ...n, "cmdk-separator": "", role: "separator" });
112827
- }), Re1 = ue.forwardRef((t, e) => {
112827
+ }), De1 = ue.forwardRef((t, e) => {
112828
112828
  let { onValueChange: r, ...n } = t, a = t.value != null, i = f8(), s = Dn((d) => d.search), l = Dn((d) => d.selectedItemId), c = xi();
112829
112829
  return ue.useEffect(() => {
112830
112830
  t.value != null && i.setState("search", t.value);
112831
112831
  }, [t.value]), ue.createElement(kn.input, { ref: e, ...n, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": c.listId, "aria-labelledby": c.labelId, "aria-activedescendant": l, id: c.inputId, type: "text", value: a ? t.value : s, onChange: (d) => {
112832
112832
  a || i.setState("search", d.target.value), r?.(d.target.value);
112833
112833
  } });
112834
- }), De1 = ue.forwardRef((t, e) => {
112834
+ }), Se1 = ue.forwardRef((t, e) => {
112835
112835
  let { children: r, label: n = "Suggestions", ...a } = t, i = ue.useRef(null), s = ue.useRef(null), l = Dn((d) => d.selectedItemId), c = xi();
112836
112836
  return ue.useEffect(() => {
112837
112837
  if (s.current && i.current) {
@@ -112846,21 +112846,21 @@ var _e1 = [
112846
112846
  };
112847
112847
  }
112848
112848
  }, []), ue.createElement(kn.div, { ref: Rn(i, e), ...a, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": l, "aria-label": n, id: c.listId }, $3(t, (d) => ue.createElement("div", { ref: Rn(s, c.listInnerRef), "cmdk-list-sizer": "" }, d)));
112849
- }), Se1 = ue.forwardRef((t, e) => {
112849
+ }), $e1 = ue.forwardRef((t, e) => {
112850
112850
  let { open: r, onOpenChange: n, overlayClassName: a, contentClassName: i, container: s, ...l } = t;
112851
- return ue.createElement(we1, { open: r, onOpenChange: n }, ue.createElement(ge1, { container: s }, ue.createElement(ve1, { "cmdk-overlay": "", className: a }), ue.createElement(Ee1, { "aria-label": t.label, "cmdk-dialog": "", className: i }, ue.createElement(nPe, { ref: e, ...l }))));
112852
- }), $e1 = ue.forwardRef((t, e) => Dn((r) => r.filtered.count === 0) ? ue.createElement(kn.div, { ref: e, ...t, "cmdk-empty": "", role: "presentation" }) : null), Ie1 = ue.forwardRef((t, e) => {
112851
+ return ue.createElement(ge1, { open: r, onOpenChange: n }, ue.createElement(ve1, { container: s }, ue.createElement(Ee1, { "cmdk-overlay": "", className: a }), ue.createElement(ye1, { "aria-label": t.label, "cmdk-dialog": "", className: i }, ue.createElement(nPe, { ref: e, ...l }))));
112852
+ }), Ie1 = ue.forwardRef((t, e) => Dn((r) => r.filtered.count === 0) ? ue.createElement(kn.div, { ref: e, ...t, "cmdk-empty": "", role: "presentation" }) : null), Ze1 = ue.forwardRef((t, e) => {
112853
112853
  let { progress: r, children: n, label: a = "Loading...", ...i } = t;
112854
112854
  return ue.createElement(kn.div, { ref: e, ...i, "cmdk-loading": "", role: "progressbar", "aria-valuenow": r, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": a }, $3(t, (s) => ue.createElement("div", { "aria-hidden": !0 }, s)));
112855
- }), Vr = Object.assign(nPe, { List: De1, Item: Te1, Input: Re1, Group: Oe1, Separator: Le1, Dialog: Se1, Empty: $e1, Loading: Ie1 });
112856
- function Ze1(t, e) {
112855
+ }), Vr = Object.assign(nPe, { List: Se1, Item: Oe1, Input: De1, Group: Le1, Separator: Re1, Dialog: $e1, Empty: Ie1, Loading: Ze1 });
112856
+ function ke1(t, e) {
112857
112857
  let r = t.nextElementSibling;
112858
112858
  for (; r; ) {
112859
112859
  if (r.matches(e)) return r;
112860
112860
  r = r.nextElementSibling;
112861
112861
  }
112862
112862
  }
112863
- function ke1(t, e) {
112863
+ function Be1(t, e) {
112864
112864
  let r = t.previousElementSibling;
112865
112865
  for (; r; ) {
112866
112866
  if (r.matches(e)) return r;
@@ -112896,7 +112896,7 @@ function aPe(t, e, r, n = []) {
112896
112896
  i.value(t, l, c), (s = e.current) == null || s.setAttribute(J2, l), a.current = l;
112897
112897
  }), a;
112898
112898
  }
112899
- var Be1 = () => {
112899
+ var Pe1 = () => {
112900
112900
  let [t, e] = ue.useState(), r = X2(() => /* @__PURE__ */ new Map());
112901
112901
  return H2(() => {
112902
112902
  r.current.forEach((n) => n()), r.current = /* @__PURE__ */ new Map();
@@ -112904,47 +112904,47 @@ var Be1 = () => {
112904
112904
  r.current.set(n, a), e({});
112905
112905
  };
112906
112906
  };
112907
- function Pe1(t) {
112907
+ function Fe1(t) {
112908
112908
  let e = t.type;
112909
112909
  return typeof e == "function" ? e(t.props) : "render" in e ? e.render(t.props) : t;
112910
112910
  }
112911
112911
  function $3({ asChild: t, children: e }, r) {
112912
- return t && ue.isValidElement(e) ? ue.cloneElement(Pe1(e), { ref: e.ref }, r(e.props.children)) : r(e);
112913
- }
112914
- var Fe1 = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
112915
- const je1 = "CommandPalette-module_overlay__MMHhx", Ue1 = "CommandPalette-module_dialog__9Bete", We1 = "CommandPalette-module_inputWrapper__-gPbe", qe1 = "CommandPalette-module_searchIcon__9SuOa", Ge1 = "CommandPalette-module_input__Qk6nY", Ke1 = "CommandPalette-module_annotationSuggestionPrefix__zaXFp", Ye1 = "CommandPalette-module_annotationBadge__L0nIf", Je1 = "CommandPalette-module_escHint__cnr7R", Xe1 = "CommandPalette-module_list__J8pb6", Qe1 = "CommandPalette-module_empty__XFtVI", et1 = "CommandPalette-module_group__dFVy1", tt1 = "CommandPalette-module_item__KVHYz", rt1 = "CommandPalette-module_itemActions__JEA1i", nt1 = "CommandPalette-module_chevronButton__AJ6gx", ot1 = "CommandPalette-module_navIcon__D-qMS", at1 = "CommandPalette-module_avatar__1yb6S", it1 = "CommandPalette-module_itemContent__nMTsU", st1 = "CommandPalette-module_itemLabel__5-tfj", lt1 = "CommandPalette-module_additionalFields__RTptn", ct1 = "CommandPalette-module_additionalField__quBWU", dt1 = "CommandPalette-module_fieldLabel__fydJO", ut1 = "CommandPalette-module_chevronIcon__-CEOh", ht1 = "CommandPalette-module_actionButton__If4Pm", pt1 = "CommandPalette-module_actionButtonLabel__aikTo", ft1 = "CommandPalette-module_actionButtonDefault__OhyJg", mt1 = "CommandPalette-module_actionEnterHint__aAtZ4", wt1 = "CommandPalette-module_loading__Dv3-h", gt1 = "CommandPalette-module_ekgLine__scLbr", vt1 = "CommandPalette-module_ekgPath__RTNDz", Et1 = "CommandPalette-module_footer__HGa-Q", yt1 = "CommandPalette-module_shortcutHint__NkFX8", Vt1 = "CommandPalette-module_kbd__k9aaD", ht = {
112916
- overlay: je1,
112917
- dialog: Ue1,
112918
- inputWrapper: We1,
112919
- searchIcon: qe1,
112920
- input: Ge1,
112921
- annotationSuggestionPrefix: Ke1,
112922
- annotationBadge: Ye1,
112923
- escHint: Je1,
112924
- list: Xe1,
112925
- empty: Qe1,
112926
- group: et1,
112927
- item: tt1,
112928
- itemActions: rt1,
112929
- chevronButton: nt1,
112930
- navIcon: ot1,
112931
- avatar: at1,
112932
- itemContent: it1,
112933
- itemLabel: st1,
112934
- additionalFields: lt1,
112935
- additionalField: ct1,
112936
- fieldLabel: dt1,
112937
- chevronIcon: ut1,
112938
- actionButton: ht1,
112939
- actionButtonLabel: pt1,
112940
- actionButtonDefault: ft1,
112941
- actionEnterHint: mt1,
112942
- loading: wt1,
112943
- ekgLine: gt1,
112944
- ekgPath: vt1,
112945
- footer: Et1,
112946
- shortcutHint: yt1,
112947
- kbd: Vt1
112912
+ return t && ue.isValidElement(e) ? ue.cloneElement(Fe1(e), { ref: e.ref }, r(e.props.children)) : r(e);
112913
+ }
112914
+ var je1 = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
112915
+ const Ue1 = "CommandPalette-module_overlay__MMHhx", We1 = "CommandPalette-module_dialog__9Bete", qe1 = "CommandPalette-module_inputWrapper__-gPbe", Ge1 = "CommandPalette-module_searchIcon__9SuOa", Ke1 = "CommandPalette-module_input__Qk6nY", Ye1 = "CommandPalette-module_annotationSuggestionPrefix__zaXFp", Je1 = "CommandPalette-module_annotationBadge__L0nIf", Xe1 = "CommandPalette-module_escHint__cnr7R", Qe1 = "CommandPalette-module_list__J8pb6", et1 = "CommandPalette-module_empty__XFtVI", tt1 = "CommandPalette-module_group__dFVy1", rt1 = "CommandPalette-module_item__KVHYz", nt1 = "CommandPalette-module_itemActions__JEA1i", ot1 = "CommandPalette-module_chevronButton__AJ6gx", at1 = "CommandPalette-module_navIcon__D-qMS", it1 = "CommandPalette-module_avatar__1yb6S", st1 = "CommandPalette-module_itemContent__nMTsU", lt1 = "CommandPalette-module_itemLabel__5-tfj", ct1 = "CommandPalette-module_additionalFields__RTptn", dt1 = "CommandPalette-module_additionalField__quBWU", ut1 = "CommandPalette-module_fieldLabel__fydJO", ht1 = "CommandPalette-module_chevronIcon__-CEOh", pt1 = "CommandPalette-module_actionButton__If4Pm", ft1 = "CommandPalette-module_actionButtonLabel__aikTo", mt1 = "CommandPalette-module_actionButtonDefault__OhyJg", wt1 = "CommandPalette-module_actionEnterHint__aAtZ4", gt1 = "CommandPalette-module_loading__Dv3-h", vt1 = "CommandPalette-module_ekgLine__scLbr", Et1 = "CommandPalette-module_ekgPath__RTNDz", yt1 = "CommandPalette-module_footer__HGa-Q", Vt1 = "CommandPalette-module_shortcutHint__NkFX8", Ht1 = "CommandPalette-module_kbd__k9aaD", ht = {
112916
+ overlay: Ue1,
112917
+ dialog: We1,
112918
+ inputWrapper: qe1,
112919
+ searchIcon: Ge1,
112920
+ input: Ke1,
112921
+ annotationSuggestionPrefix: Ye1,
112922
+ annotationBadge: Je1,
112923
+ escHint: Xe1,
112924
+ list: Qe1,
112925
+ empty: et1,
112926
+ group: tt1,
112927
+ item: rt1,
112928
+ itemActions: nt1,
112929
+ chevronButton: ot1,
112930
+ navIcon: at1,
112931
+ avatar: it1,
112932
+ itemContent: st1,
112933
+ itemLabel: lt1,
112934
+ additionalFields: ct1,
112935
+ additionalField: dt1,
112936
+ fieldLabel: ut1,
112937
+ chevronIcon: ht1,
112938
+ actionButton: pt1,
112939
+ actionButtonLabel: ft1,
112940
+ actionButtonDefault: mt1,
112941
+ actionEnterHint: wt1,
112942
+ loading: gt1,
112943
+ ekgLine: vt1,
112944
+ ekgPath: Et1,
112945
+ footer: yt1,
112946
+ shortcutHint: Vt1,
112947
+ kbd: Ht1
112948
112948
  }, Pr = {
112949
112949
  name: "COMMAND_PALETTE_FIELD_NAME",
112950
112950
  identifier: "COMMAND_PALETTE_FIELD_ID",
@@ -112992,16 +112992,16 @@ const je1 = "CommandPalette-module_overlay__MMHhx", Ue1 = "CommandPalette-module
112992
112992
  labelKey: Pr.activeVisitUuid,
112993
112993
  getValue: (t) => t.activeVisitUuid ? "Active" : null
112994
112994
  }
112995
- }, Ht1 = (t, e) => t.startsWith("patient:") || e.length < 2 || t.toLowerCase().includes(e.toLowerCase()) ? 1 : 0;
112996
- function Mt1(t, e) {
112995
+ }, Mt1 = (t, e) => t.startsWith("patient:") || e.length < 2 || t.toLowerCase().includes(e.toLowerCase()) ? 1 : 0;
112996
+ function bt1(t, e) {
112997
112997
  const r = t?.[0] ?? "", n = e?.[0] ?? "";
112998
112998
  return (r + n).toUpperCase() || "?";
112999
112999
  }
113000
- function bt1(t, e) {
113000
+ function xt1(t, e) {
113001
113001
  return e.map((r) => ml[r].getValue(t)).filter(Boolean).join(" · ");
113002
113002
  }
113003
- const xt1 = 350;
113004
- function Nt1(t) {
113003
+ const Nt1 = 350;
113004
+ function At1(t) {
113005
113005
  const e = t.toLowerCase().split("+"), r = e.at(-1), n = new Set(e.slice(0, -1));
113006
113006
  return {
113007
113007
  key: r,
@@ -113013,18 +113013,18 @@ function Nt1(t) {
113013
113013
  }
113014
113014
  function ALe(t, e) {
113015
113015
  return e.some((r) => {
113016
- const n = Nt1(r);
113016
+ const n = At1(r);
113017
113017
  return t.key.toLowerCase() === n.key && t.metaKey === n.meta && t.ctrlKey === n.ctrl && t.shiftKey === n.shift && t.altKey === n.alt;
113018
113018
  });
113019
113019
  }
113020
- const At1 = ({
113020
+ const _t1 = ({
113021
113021
  patient: t,
113022
113022
  patientFieldsConfig: e,
113023
113023
  patientActions: r,
113024
113024
  activeActionIndex: n,
113025
113025
  onNavigate: a
113026
113026
  }) => {
113027
- const { t: i } = ut("command-palette"), [s, l] = Ee(!1), c = r[n], d = ml.name.getValue(t) ?? "", u = Mt1(t.givenName, t.familyName), m = bt1(
113027
+ const { t: i } = ut("command-palette"), [s, l] = Ee(!1), c = r[n], d = ml.name.getValue(t) ?? "", u = bt1(t.givenName, t.familyName), m = xt1(
113028
113028
  t,
113029
113029
  e.primaryFields
113030
113030
  ), w = {
@@ -113098,7 +113098,7 @@ const At1 = ({
113098
113098
  }
113099
113099
  );
113100
113100
  }, m8 = Z1(null);
113101
- function _t1() {
113101
+ function Ct1() {
113102
113102
  const t = Mt(m8);
113103
113103
  if (!t)
113104
113104
  throw new Error(
@@ -113106,7 +113106,7 @@ function _t1() {
113106
113106
  );
113107
113107
  return t;
113108
113108
  }
113109
- function Ct1(t, e = 500) {
113109
+ function zt1(t, e = 500) {
113110
113110
  const [r, n] = Ee(t);
113111
113111
  return be(() => {
113112
113112
  const a = setTimeout(() => {
@@ -113117,8 +113117,8 @@ function Ct1(t, e = 500) {
113117
113117
  };
113118
113118
  }, [t, e]), r;
113119
113119
  }
113120
- function zt1(t, e = null) {
113121
- const [r, n] = Ee([]), [a, i] = Ee(!1), [s, l] = Ee(null), c = Ct1(t, 300), d = Ae(0);
113120
+ function Tt1(t, e = null) {
113121
+ const [r, n] = Ee([]), [a, i] = Ee(!1), [s, l] = Ee(null), c = zt1(t, 300), d = Ae(0);
113122
113122
  return be(() => {
113123
113123
  t.length >= 2 ? i(!0) : (i(!1), n([]), l(null));
113124
113124
  }, [t]), be(() => {
@@ -113146,7 +113146,7 @@ function zt1(t, e = null) {
113146
113146
  };
113147
113147
  }, [c, e]), { patients: r, loading: a, error: s };
113148
113148
  }
113149
- const Tt1 = () => /* @__PURE__ */ xe(
113149
+ const Ot1 = () => /* @__PURE__ */ xe(
113150
113150
  "svg",
113151
113151
  {
113152
113152
  className: ht.searchIcon,
@@ -113167,7 +113167,7 @@ const Tt1 = () => /* @__PURE__ */ xe(
113167
113167
  )
113168
113168
  ]
113169
113169
  }
113170
- ), Ot1 = () => {
113170
+ ), Lt1 = () => {
113171
113171
  const { t } = ut("command-palette"), {
113172
113172
  isOpen: e,
113173
113173
  setOpen: r,
@@ -113175,7 +113175,7 @@ const Tt1 = () => /* @__PURE__ */ xe(
113175
113175
  patientActions: a,
113176
113176
  patientFieldsConfig: i,
113177
113177
  searchAnnotations: s
113178
- } = _t1(), [l, c] = Ee(""), [d, u] = Ee(null), [m, w] = Ee(0), { patients: g, loading: V, error: y } = zt1(
113178
+ } = Ct1(), [l, c] = Ee(""), [d, u] = Ee(null), [m, w] = Ee(0), { patients: g, loading: V, error: y } = Tt1(
113179
113179
  l,
113180
113180
  d
113181
113181
  ), M = ke(() => {
@@ -113256,10 +113256,10 @@ const Tt1 = () => /* @__PURE__ */ xe(
113256
113256
  {
113257
113257
  label: t("COMMAND_PALETTE_ARIA_LABEL"),
113258
113258
  onValueChange: N,
113259
- filter: Ht1,
113259
+ filter: Mt1,
113260
113260
  children: [
113261
113261
  /* @__PURE__ */ xe("div", { className: ht.inputWrapper, children: [
113262
- /* @__PURE__ */ D(Tt1, {}),
113262
+ /* @__PURE__ */ D(Ot1, {}),
113263
113263
  d && /* @__PURE__ */ D("span", { className: ht.annotationBadge, children: d.label }),
113264
113264
  /* @__PURE__ */ D(
113265
113265
  Vr.Input,
@@ -113346,7 +113346,7 @@ const Tt1 = () => /* @__PURE__ */ xe(
113346
113346
  heading: t("COMMAND_PALETTE_GROUP_PATIENTS"),
113347
113347
  className: ht.group,
113348
113348
  children: g.map((Y) => /* @__PURE__ */ D(
113349
- At1,
113349
+ _t1,
113350
113350
  {
113351
113351
  patient: Y,
113352
113352
  patientFieldsConfig: i,
@@ -113390,7 +113390,7 @@ const Tt1 = () => /* @__PURE__ */ xe(
113390
113390
  document.body
113391
113391
  );
113392
113392
  };
113393
- function Lt1(t, e, r) {
113393
+ function Rt1(t, e, r) {
113394
113394
  const n = Ae(0);
113395
113395
  be(() => {
113396
113396
  const a = (i) => {
@@ -113403,7 +113403,7 @@ function Lt1(t, e, r) {
113403
113403
  else if (r.type === "double") {
113404
113404
  const s = document.activeElement, l = s instanceof HTMLInputElement || s instanceof HTMLTextAreaElement || s instanceof HTMLSelectElement || s?.isContentEditable;
113405
113405
  if (ALe(i, r.keys) && !l) {
113406
- const c = Date.now(), d = r.interval ?? xt1;
113406
+ const c = Date.now(), d = r.interval ?? Nt1;
113407
113407
  c - n.current <= d ? (i.preventDefault(), e(), n.current = 0) : n.current = c;
113408
113408
  }
113409
113409
  }
@@ -113411,7 +113411,7 @@ function Lt1(t, e, r) {
113411
113411
  return document.addEventListener("keydown", a), () => document.removeEventListener("keydown", a);
113412
113412
  }, [t, e, r]);
113413
113413
  }
113414
- const Rt1 = ({
113414
+ const Dt1 = ({
113415
113415
  children: t,
113416
113416
  navItems: e,
113417
113417
  patientActions: r,
@@ -113420,7 +113420,7 @@ const Rt1 = ({
113420
113420
  searchAnnotations: i
113421
113421
  }) => {
113422
113422
  const [s, l] = Ee(!1), c = ke(() => l((u) => !u), []);
113423
- Lt1(s, c, a);
113423
+ Rt1(s, c, a);
113424
113424
  const d = $e(
113425
113425
  () => ({
113426
113426
  isOpen: s,
@@ -113442,11 +113442,11 @@ const Rt1 = ({
113442
113442
  );
113443
113443
  return /* @__PURE__ */ xe(m8.Provider, { value: d, children: [
113444
113444
  t,
113445
- /* @__PURE__ */ D(Ot1, {})
113445
+ /* @__PURE__ */ D(Lt1, {})
113446
113446
  ] });
113447
- }, Dt1 = (t) => Mt(m8) ? /* @__PURE__ */ D(a1, { children: t.children }) : /* @__PURE__ */ D(Rt1, { ...t });
113448
- Dt1.displayName = "CommandPaletteProvider";
113449
- const St1 = ({
113447
+ }, St1 = (t) => Mt(m8) ? /* @__PURE__ */ D(a1, { children: t.children }) : /* @__PURE__ */ D(Dt1, { ...t });
113448
+ St1.displayName = "CommandPaletteProvider";
113449
+ const $t1 = ({
113450
113450
  children: t
113451
113451
  }) => {
113452
113452
  const [e, r] = Ee(
@@ -113483,8 +113483,8 @@ const St1 = ({
113483
113483
  );
113484
113484
  return /* @__PURE__ */ D(kke.Provider, { value: l, children: t });
113485
113485
  };
113486
- St1.displayName = "UserPrivilegeProvider";
113487
- const _r1 = {
113486
+ $t1.displayName = "UserPrivilegeProvider";
113487
+ const Cr1 = {
113488
113488
  ADD_VISITS: ["Add Visits"],
113489
113489
  ENCOUNTER: ["Add Encounters"],
113490
113490
  ALLERGIES: ["Add Allergies"],
@@ -113495,7 +113495,7 @@ const _r1 = {
113495
113495
  MEDICATIONS: ["Add Orders"],
113496
113496
  OBSERVATIONS: ["Add Observations"],
113497
113497
  VACCINATIONS: ["Add Orders"]
113498
- }, $t1 = ({
113498
+ }, It1 = ({
113499
113499
  children: t
113500
113500
  }) => (be(() => {
113501
113501
  _Nt().then((e) => {
@@ -113504,13 +113504,13 @@ const _r1 = {
113504
113504
  console.error("Failed to load default date format:", e);
113505
113505
  });
113506
113506
  }, []), /* @__PURE__ */ D(a1, { children: t }));
113507
- $t1.displayName = "AppContextProvider";
113508
- const It1 = "configProvider-module_errorState__l62qJ", Zt1 = "configProvider-module_errorStateTitle__RGFEv", kt1 = "configProvider-module_errorStateBody__QlP3w", zd = {
113509
- errorState: It1,
113510
- errorStateTitle: Zt1,
113511
- errorStateBody: kt1
113507
+ It1.displayName = "AppContextProvider";
113508
+ const Zt1 = "configProvider-module_errorState__l62qJ", kt1 = "configProvider-module_errorStateTitle__RGFEv", Bt1 = "configProvider-module_errorStateBody__QlP3w", zd = {
113509
+ errorState: Zt1,
113510
+ errorStateTitle: kt1,
113511
+ errorStateBody: Bt1
113512
113512
  };
113513
- function Cr1(t) {
113513
+ function zr1(t) {
113514
113514
  const {
113515
113515
  context: e,
113516
113516
  queryKey: r,
@@ -113574,7 +113574,7 @@ function Cr1(t) {
113574
113574
  };
113575
113575
  return c.displayName = l, c;
113576
113576
  }
113577
- function zr1(t, e, r) {
113577
+ function Tr1(t, e, r) {
113578
113578
  return () => {
113579
113579
  const n = Mt(t);
113580
113580
  if (!n)
@@ -113582,47 +113582,47 @@ function zr1(t, e, r) {
113582
113582
  return n;
113583
113583
  };
113584
113584
  }
113585
- const Bt1 = "CommonSearchWidget-module_fullWidth__8l-xH", Pt1 = "CommonSearchWidget-module_searchForm__gwnfT", Ft1 = "CommonSearchWidget-module_dropdownCol__LSvLq", jt1 = "CommonSearchWidget-module_fullWidthCol__QzpMW", Ut1 = "CommonSearchWidget-module_criterionRow__Wqkgr", Wt1 = "CommonSearchWidget-module_criterionSelector__ZoiWU", qt1 = "CommonSearchWidget-module_criterionInput__rkgZX", Gt1 = "CommonSearchWidget-module_criterionClose__JVNti", Kt1 = "CommonSearchWidget-module_rangeContainer__1f8ls", Yt1 = "CommonSearchWidget-module_footer__V9a1l", Jt1 = "CommonSearchWidget-module_rangeInputCol__vpbY1", Xt1 = "CommonSearchWidget-module_datePicker__G1-0L", Qt1 = "CommonSearchWidget-module_numericInput__qGTvI", e11 = "CommonSearchWidget-module_dataTable__FH5MA", t11 = "CommonSearchWidget-module_searchSummary__FxisO", r11 = "CommonSearchWidget-module_summaryLabel__hcXNY", n11 = "CommonSearchWidget-module_criteriaSummary__NjPO-", o11 = "CommonSearchWidget-module_searchCriteriaAccordion__ULZzl", a11 = "CommonSearchWidget-module_searchCriteriaAccordionItem__4R7pn", Wt = {
113586
- fullWidth: Bt1,
113587
- searchForm: Pt1,
113588
- dropdownCol: Ft1,
113589
- fullWidthCol: jt1,
113590
- criterionRow: Ut1,
113591
- criterionSelector: Wt1,
113592
- criterionInput: qt1,
113593
- criterionClose: Gt1,
113594
- rangeContainer: Kt1,
113595
- footer: Yt1,
113596
- rangeInputCol: Jt1,
113597
- datePicker: Xt1,
113598
- numericInput: Qt1,
113599
- dataTable: e11,
113600
- searchSummary: t11,
113601
- summaryLabel: r11,
113602
- criteriaSummary: n11,
113603
- searchCriteriaAccordion: o11,
113604
- searchCriteriaAccordionItem: a11
113585
+ const Pt1 = "CommonSearchWidget-module_fullWidth__8l-xH", Ft1 = "CommonSearchWidget-module_searchForm__gwnfT", jt1 = "CommonSearchWidget-module_dropdownCol__LSvLq", Ut1 = "CommonSearchWidget-module_fullWidthCol__QzpMW", Wt1 = "CommonSearchWidget-module_criterionRow__Wqkgr", qt1 = "CommonSearchWidget-module_criterionSelector__ZoiWU", Gt1 = "CommonSearchWidget-module_criterionInput__rkgZX", Kt1 = "CommonSearchWidget-module_criterionClose__JVNti", Yt1 = "CommonSearchWidget-module_rangeContainer__1f8ls", Jt1 = "CommonSearchWidget-module_footer__V9a1l", Xt1 = "CommonSearchWidget-module_rangeInputCol__vpbY1", Qt1 = "CommonSearchWidget-module_datePicker__G1-0L", e11 = "CommonSearchWidget-module_numericInput__qGTvI", t11 = "CommonSearchWidget-module_dataTable__FH5MA", r11 = "CommonSearchWidget-module_searchSummary__FxisO", n11 = "CommonSearchWidget-module_summaryLabel__hcXNY", o11 = "CommonSearchWidget-module_criteriaSummary__NjPO-", a11 = "CommonSearchWidget-module_searchCriteriaAccordion__ULZzl", i11 = "CommonSearchWidget-module_searchCriteriaAccordionItem__4R7pn", Wt = {
113586
+ fullWidth: Pt1,
113587
+ searchForm: Ft1,
113588
+ dropdownCol: jt1,
113589
+ fullWidthCol: Ut1,
113590
+ criterionRow: Wt1,
113591
+ criterionSelector: qt1,
113592
+ criterionInput: Gt1,
113593
+ criterionClose: Kt1,
113594
+ rangeContainer: Yt1,
113595
+ footer: Jt1,
113596
+ rangeInputCol: Xt1,
113597
+ datePicker: Qt1,
113598
+ numericInput: e11,
113599
+ dataTable: t11,
113600
+ searchSummary: r11,
113601
+ summaryLabel: n11,
113602
+ criteriaSummary: o11,
113603
+ searchCriteriaAccordion: a11,
113604
+ searchCriteriaAccordionItem: i11
113605
113605
  }, U1 = [];
113606
113606
  for (let t = 0; t < 256; ++t)
113607
113607
  U1.push((t + 256).toString(16).slice(1));
113608
- function i11(t, e = 0) {
113608
+ function s11(t, e = 0) {
113609
113609
  return (U1[t[e + 0]] + U1[t[e + 1]] + U1[t[e + 2]] + U1[t[e + 3]] + "-" + U1[t[e + 4]] + U1[t[e + 5]] + "-" + U1[t[e + 6]] + U1[t[e + 7]] + "-" + U1[t[e + 8]] + U1[t[e + 9]] + "-" + U1[t[e + 10]] + U1[t[e + 11]] + U1[t[e + 12]] + U1[t[e + 13]] + U1[t[e + 14]] + U1[t[e + 15]]).toLowerCase();
113610
113610
  }
113611
- const s11 = new Uint8Array(16);
113612
- function l11() {
113613
- return crypto.getRandomValues(s11);
113614
- }
113615
- function c11(t, e, r) {
113616
- return crypto.randomUUID ? crypto.randomUUID() : d11(t);
113611
+ const l11 = new Uint8Array(16);
113612
+ function c11() {
113613
+ return crypto.getRandomValues(l11);
113617
113614
  }
113618
113615
  function d11(t, e, r) {
113616
+ return crypto.randomUUID ? crypto.randomUUID() : u11(t);
113617
+ }
113618
+ function u11(t, e, r) {
113619
113619
  t = t || {};
113620
- const n = t.random ?? t.rng?.() ?? l11();
113620
+ const n = t.random ?? t.rng?.() ?? c11();
113621
113621
  if (n.length < 16)
113622
113622
  throw new Error("Random bytes length must be >= 16");
113623
- return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, i11(n);
113623
+ return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, s11(n);
113624
113624
  }
113625
- const u11 = "location.uuid", h11 = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", p11 = ".kind", f11 = ".value", m11 = "desc", w11 = (t, e) => {
113625
+ const h11 = "location.uuid", p11 = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", f11 = ".kind", m11 = ".value", w11 = "desc", g11 = (t, e) => {
113626
113626
  const r = t.trim();
113627
113627
  return r ? e(`COMMON_SEARCH_RESULT_${r0(r)}`) : null;
113628
113628
  }, er = {
@@ -113633,20 +113633,20 @@ const u11 = "location.uuid", h11 = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", p11 = ".kind",
113633
113633
  formatGender: "formatGender",
113634
113634
  formatCountry: "formatCountry",
113635
113635
  formatSearchResult: "formatSearchResult"
113636
- }, g11 = {
113636
+ }, v11 = {
113637
113637
  [er.formatDate]: (t, e) => wt(t, e).formattedResult,
113638
113638
  [er.formatTime]: (t, e) => wt(t, e, !1, Fa).formattedResult,
113639
113639
  [er.formatDateTime]: (t, e) => wt(t, e, !0).formattedResult,
113640
113640
  [er.formatAge]: (t, e) => gi(t, e),
113641
113641
  [er.formatGender]: yNt,
113642
113642
  [er.formatCountry]: VNt,
113643
- [er.formatSearchResult]: w11
113644
- }, v11 = [
113643
+ [er.formatSearchResult]: g11
113644
+ }, E11 = [
113645
113645
  er.formatDate,
113646
113646
  er.formatTime,
113647
113647
  er.formatDateTime,
113648
113648
  er.formatAge
113649
- ], E11 = (t) => !!t && v11.includes(t), y11 = (t) => `SEARCHED_${r0(t)}`, iPe = (t) => (t.kind === "date" || t.kind === "numeric") && !!t.rangeAllowed, Ni = (t) => "value" in t, V11 = (t, e, r) => t ? Ni(t) ? t.value ? null : r : (iPe(e) ? !!t.from.value && !!t.to?.value : !!t.from.value) ? null : r : r, H11 = (t, e, r) => !e.regex || !t || !Ni(t) || new RegExp(e.regex).test(t.value) ? null : r, M11 = (t, e, r) => {
113649
+ ], y11 = (t) => !!t && E11.includes(t), V11 = (t) => `SEARCHED_${r0(t)}`, iPe = (t) => (t.kind === "date" || t.kind === "numeric") && !!t.rangeAllowed, Ni = (t) => "value" in t, H11 = (t, e, r) => t ? Ni(t) ? t.value ? null : r : (iPe(e) ? !!t.from.value && !!t.to?.value : !!t.from.value) ? null : r : r, M11 = (t, e, r) => !e.regex || !t || !Ni(t) || new RegExp(e.regex).test(t.value) ? null : r, b11 = (t, e, r) => {
113650
113650
  if (!iPe(e) || !t || Ni(t)) return null;
113651
113651
  const n = t.from.value, a = t.to?.value;
113652
113652
  if (!n || !a) return null;
@@ -113655,14 +113655,14 @@ const u11 = "location.uuid", h11 = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", p11 = ".kind",
113655
113655
  return !Number.isNaN(i) && !Number.isNaN(s) && i > s ? r : null;
113656
113656
  }
113657
113657
  return new Date(n) > new Date(a) ? r : null;
113658
- }, sPe = (t) => t.keyType ? `${t.key}:${t.keyType}` : t.key, b11 = (t, e) => t.filter((r) => $r(e, r.requiredPrivileges)).map((r) => ({
113658
+ }, sPe = (t) => t.keyType ? `${t.key}:${t.keyType}` : t.key, x11 = (t, e) => t.filter((r) => $r(e, r.requiredPrivileges)).map((r) => ({
113659
113659
  ...r,
113660
113660
  criteria: r.criteria.map((n) => ({
113661
113661
  ...n,
113662
113662
  id: n.id ?? sPe(n.field)
113663
113663
  }))
113664
113664
  })), a5 = (t) => ({
113665
- rowId: c11(),
113665
+ rowId: d11(),
113666
113666
  criterionKey: t,
113667
113667
  value: null,
113668
113668
  validationError: null,
@@ -113674,17 +113674,17 @@ const u11 = "location.uuid", h11 = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", p11 = ".kind",
113674
113674
  t.filter(
113675
113675
  (r) => r.criterionKey !== null && r.rowId !== e
113676
113676
  ).map((r) => r.criterionKey)
113677
- ), x11 = (t, e, r) => {
113677
+ ), N11 = (t, e, r) => {
113678
113678
  const n = lPe(e, r);
113679
113679
  return t.filter((a) => !n.has(a.id));
113680
- }, N11 = (t, e) => {
113680
+ }, A11 = (t, e) => {
113681
113681
  const r = lPe(e);
113682
113682
  return t.filter((n) => !r.has(n.id));
113683
- }, CLe = (t, e, r) => t.map((n) => n.rowId === e ? { ...n, ...r(n) } : n), A11 = (t, e, r, n) => {
113683
+ }, CLe = (t, e, r) => t.map((n) => n.rowId === e ? { ...n, ...r(n) } : n), _11 = (t, e, r, n) => {
113684
113684
  switch (e.input.kind) {
113685
113685
  case "text":
113686
113686
  return {
113687
- validationError: H11(
113687
+ validationError: M11(
113688
113688
  t,
113689
113689
  e.input,
113690
113690
  n(`${e.translationKey}_INVALID_FORMAT`, {
@@ -113697,7 +113697,7 @@ const u11 = "location.uuid", h11 = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", p11 = ".kind",
113697
113697
  case "date":
113698
113698
  return {
113699
113699
  validationError: null,
113700
- rangeOrderError: M11(
113700
+ rangeOrderError: b11(
113701
113701
  t,
113702
113702
  e.input,
113703
113703
  r
@@ -113706,16 +113706,16 @@ const u11 = "location.uuid", h11 = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", p11 = ".kind",
113706
113706
  default:
113707
113707
  return { validationError: null, rangeOrderError: null };
113708
113708
  }
113709
- }, _11 = ({ field: t, value: e }) => Ni(e) ? t.keyType ? {
113709
+ }, C11 = ({ field: t, value: e }) => Ni(e) ? t.keyType ? {
113710
113710
  operator: "AND",
113711
113711
  conditions: [
113712
113712
  {
113713
- field: `${t.key}${p11}`,
113713
+ field: `${t.key}${f11}`,
113714
113714
  comparator: "eq",
113715
113715
  value: t.keyType
113716
113716
  },
113717
113717
  {
113718
- field: `${t.key}${f11}`,
113718
+ field: `${t.key}${m11}`,
113719
113719
  comparator: "eq",
113720
113720
  value: e.value
113721
113721
  }
@@ -113728,8 +113728,8 @@ const u11 = "location.uuid", h11 = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", p11 = ".kind",
113728
113728
  ]
113729
113729
  }, Td = (t, e = !1) => xqt(
113730
113730
  e ? NWt(new Date(t)) : new Date(t),
113731
- h11
113732
- ), C11 = (t) => Ni(t) ? { value: Td(t.value) } : {
113731
+ p11
113732
+ ), z11 = (t) => Ni(t) ? { value: Td(t.value) } : {
113733
113733
  from: {
113734
113734
  ...t.from,
113735
113735
  value: t.from.value ? Td(t.from.value) : null
@@ -113741,7 +113741,7 @@ const u11 = "location.uuid", h11 = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", p11 = ".kind",
113741
113741
  }
113742
113742
  }
113743
113743
  };
113744
- function z11(t, e, r, n, a) {
113744
+ function T11(t, e, r, n, a) {
113745
113745
  if (!t) return [];
113746
113746
  const i = e.filter(
113747
113747
  (s) => s.label.toLowerCase().includes(t.toLowerCase())
@@ -113754,30 +113754,30 @@ function z11(t, e, r, n, a) {
113754
113754
  a
113755
113755
  );
113756
113756
  }
113757
- const T11 = (t, e) => t.filter(
113757
+ const O11 = (t, e) => t.filter(
113758
113758
  (r) => r.criterionKey !== null && r.value !== null
113759
113759
  ).flatMap((r) => {
113760
113760
  const n = e.find((i) => i.id === r.criterionKey);
113761
113761
  if (!n) return [];
113762
- const a = n.input.kind === "date" ? C11(r.value) : r.value;
113762
+ const a = n.input.kind === "date" ? z11(r.value) : r.value;
113763
113763
  return [{ field: n.field, value: a }];
113764
- }), O11 = (t, e, r) => ({
113764
+ }), L11 = (t, e, r) => ({
113765
113765
  includeTotalCount: !r,
113766
113766
  pagination: {
113767
113767
  limit: t,
113768
- sortOrder: m11,
113768
+ sortOrder: w11,
113769
113769
  cursor: e,
113770
113770
  ...r ? { direction: r } : {}
113771
113771
  }
113772
- }), L11 = (t, e, r, n) => ({
113772
+ }), R11 = (t, e, r, n) => ({
113773
113773
  entity: e,
113774
113774
  criteria: {
113775
113775
  operator: "AND",
113776
113776
  conditions: [
113777
- ...t.map(_11),
113777
+ ...t.map(C11),
113778
113778
  ...r ? [
113779
113779
  {
113780
- field: u11,
113780
+ field: h11,
113781
113781
  comparator: "eq",
113782
113782
  value: r
113783
113783
  }
@@ -113785,7 +113785,7 @@ const T11 = (t, e) => t.filter(
113785
113785
  ]
113786
113786
  },
113787
113787
  ...n ? { meta: n } : {}
113788
- }), R11 = (t) => {
113788
+ }), D11 = (t) => {
113789
113789
  const e = t ?? {};
113790
113790
  return {
113791
113791
  results: e.results ?? [],
@@ -113795,12 +113795,12 @@ const T11 = (t, e) => t.filter(
113795
113795
  };
113796
113796
  }, cPe = (t, e, r) => e.some(
113797
113797
  (n) => n.rowId !== t.rowId && n.criterionKey !== null && r.additionalCriteria.includes(n.criterionKey)
113798
- ), D11 = (t, e, r) => t.map((n) => e.find((a) => a.id === n)).filter((n) => !!n).map((n) => r(n.translationKey)).join(", "), S11 = (t, e, r, n, a, i) => t.map((s) => {
113798
+ ), S11 = (t, e, r) => t.map((n) => e.find((a) => a.id === n)).filter((n) => !!n).map((n) => r(n.translationKey)).join(", "), $11 = (t, e, r, n, a, i) => t.map((s) => {
113799
113799
  if (!s.criterionKey)
113800
113800
  return { ...s, validationError: r, rangeOrderError: null };
113801
113801
  const l = e.find((m) => m.id === s.criterionKey);
113802
113802
  if (!l) return s;
113803
- const c = V11(
113803
+ const c = H11(
113804
113804
  s.value,
113805
113805
  l.input,
113806
113806
  n
@@ -113811,7 +113811,7 @@ const T11 = (t, e) => t.filter(
113811
113811
  validationError: c,
113812
113812
  rangeOrderError: null
113813
113813
  };
113814
- const { validationError: d, rangeOrderError: u } = A11(
113814
+ const { validationError: d, rangeOrderError: u } = _11(
113815
113815
  s.value,
113816
113816
  l,
113817
113817
  a,
@@ -113820,7 +113820,7 @@ const T11 = (t, e) => t.filter(
113820
113820
  return !d && !u && l.additionalCriteria?.length && !cPe(s, t, l) ? {
113821
113821
  ...s,
113822
113822
  validationError: i("COMMON_SEARCH_ADDITIONAL_CRITERIA_REQUIRED", {
113823
- criteriaList: D11(
113823
+ criteriaList: S11(
113824
113824
  l.additionalCriteria,
113825
113825
  e,
113826
113826
  i
@@ -113828,11 +113828,11 @@ const T11 = (t, e) => t.filter(
113828
113828
  }),
113829
113829
  rangeOrderError: null
113830
113830
  } : { ...s, validationError: d, rangeOrderError: u };
113831
- }), $11 = (t, e) => t.map((r) => {
113831
+ }), I11 = (t, e) => t.map((r) => {
113832
113832
  if (!r.validationError || !r.criterionKey || !r.value) return r;
113833
113833
  const n = e.find((a) => a.id === r.criterionKey);
113834
113834
  return n?.additionalCriteria?.length && cPe(r, t, n) ? { ...r, validationError: null } : r;
113835
- }), I11 = (t) => {
113835
+ }), Z11 = (t) => {
113836
113836
  for (const e of t) {
113837
113837
  if (e.resultFields.some((n) => n.action) && (!e.actions || e.actions.length === 0))
113838
113838
  return "COMMON_SEARCH_CONFIG_VALIDATION_UNKNOWN_ACTION";
@@ -113849,7 +113849,7 @@ const T11 = (t, e) => t.filter(
113849
113849
  }
113850
113850
  }
113851
113851
  return null;
113852
- }, Z11 = (t) => {
113852
+ }, k11 = (t) => {
113853
113853
  for (const e of t) {
113854
113854
  const r = e.criteria.map(
113855
113855
  (i) => i.id ?? sPe(i.field)
@@ -113865,14 +113865,14 @@ const T11 = (t, e) => t.filter(
113865
113865
  return "COMMON_SEARCH_CONFIG_VALIDATION_UNKNOWN_ADDITIONAL_CRITERION";
113866
113866
  }
113867
113867
  return null;
113868
- }, k11 = (t, e, r) => {
113868
+ }, B11 = (t, e, r) => {
113869
113869
  r(t), e.resetColumnFilters(), e.resetGlobalFilter();
113870
- }, B11 = async (t, e, r, n) => {
113870
+ }, P11 = async (t, e, r, n) => {
113871
113871
  const a = e.map(({ id: i, field: s }) => ({
113872
113872
  key: i,
113873
113873
  expr: fc(s.expression),
113874
113874
  field: s,
113875
- transform: s.transform ? g11[s.transform] : void 0
113875
+ transform: s.transform ? v11[s.transform] : void 0
113876
113876
  }));
113877
113877
  return Promise.all(
113878
113878
  t.map(async (i) => {
@@ -113892,12 +113892,12 @@ const T11 = (t, e) => t.filter(
113892
113892
  s[l] = "-";
113893
113893
  continue;
113894
113894
  }
113895
- E11(d.transform) ? (s[l] = m, s[`${l}_display`] = u ? u(String(m), r) : String(m)) : s[l] = u ? u(String(m), r) : m;
113895
+ y11(d.transform) ? (s[l] = m, s[`${l}_display`] = u ? u(String(m), r) : String(m)) : s[l] = u ? u(String(m), r) : m;
113896
113896
  }
113897
113897
  return s;
113898
113898
  })
113899
113899
  );
113900
- }, P11 = ({
113900
+ }, F11 = ({
113901
113901
  resultFields: t,
113902
113902
  results: e,
113903
113903
  actions: r,
@@ -113935,7 +113935,7 @@ const T11 = (t, e) => t.filter(
113935
113935
  return null;
113936
113936
  }, [t, r]);
113937
113937
  be(() => {
113938
- g || (u(null), B11(e, w, i, r).then(c).catch(() => u(i("COMMON_SEARCH_EVALUATION_ERROR"))));
113938
+ g || (u(null), P11(e, w, i, r).then(c).catch(() => u(i("COMMON_SEARCH_EVALUATION_ERROR"))));
113939
113939
  }, [e, w, r, g, i]);
113940
113940
  const V = g ?? d, y = ke(
113941
113941
  (v, E) => {
@@ -113978,14 +113978,14 @@ const T11 = (t, e) => t.filter(
113978
113978
  startPage: b,
113979
113979
  hasNext: n.hasNextSet,
113980
113980
  hasPrevious: n.hasPreviousSet,
113981
- onSetChange: (v, E) => k11(v, E, n.onSetChange),
113981
+ onSetChange: (v, E) => B11(v, E, n.onSetChange),
113982
113982
  previousLabel: i("COMMON_SEARCH_PREVIOUS_SET"),
113983
113983
  nextLabel: i("COMMON_SEARCH_NEXT_SET")
113984
113984
  }
113985
113985
  },
113986
113986
  n?.searchId
113987
113987
  );
113988
- }, F11 = ({
113988
+ }, j11 = ({
113989
113989
  input: t,
113990
113990
  value: e,
113991
113991
  onChange: r,
@@ -114094,7 +114094,7 @@ const T11 = (t, e) => t.filter(
114094
114094
  )
114095
114095
  }
114096
114096
  ) });
114097
- }, j11 = async () => {
114097
+ }, U11 = async () => {
114098
114098
  const t = z2();
114099
114099
  return (await __t()).filter(
114100
114100
  (e) => e.location === null || e.location.uuid === t.uuid
@@ -114102,25 +114102,25 @@ const T11 = (t, e) => t.filter(
114102
114102
  uuid: e.uuid,
114103
114103
  label: e.name
114104
114104
  }));
114105
- }, U11 = async () => (await zTt()).filter((t) => !t.retired).map((t) => ({ uuid: t.uuid, label: t.name })), W11 = async () => (await hTt()).filter((t) => t.person).map((t) => ({
114105
+ }, W11 = async () => (await zTt()).filter((t) => !t.retired).map((t) => ({ uuid: t.uuid, label: t.name })), q11 = async () => (await hTt()).filter((t) => t.person).map((t) => ({
114106
114106
  uuid: t.uuid,
114107
114107
  label: (t.person?.preferredName?.display ?? t.person.display) || t.display
114108
- })), q11 = {
114109
- appointmentService: j11,
114110
- provider: W11,
114111
- programName: U11
114112
- }, G11 = ({
114108
+ })), G11 = {
114109
+ appointmentService: U11,
114110
+ provider: q11,
114111
+ programName: W11
114112
+ }, K11 = ({
114113
114113
  input: t,
114114
114114
  value: e,
114115
114115
  onChange: r,
114116
114116
  validationError: n
114117
114117
  }) => {
114118
- const { t: a } = ut(), [i, s] = Ee(null), l = q11[t.lookup.source], { data: c, isLoading: d, isError: u } = Ct({
114118
+ const { t: a } = ut(), [i, s] = Ee(null), l = G11[t.lookup.source], { data: c, isLoading: d, isError: u } = Ct({
114119
114119
  queryKey: ["lookup", t.lookup.source],
114120
114120
  queryFn: l,
114121
114121
  enabled: !!l,
114122
114122
  staleTime: 1800 * 1e3
114123
- }), m = c ?? [], w = $e(() => l ? z11(i, m, d, u, {
114123
+ }), m = c ?? [], w = $e(() => l ? T11(i, m, d, u, {
114124
114124
  loading: a("COMMON_SEARCH_LOOKUP_LOADING"),
114125
114125
  error: a("COMMON_SEARCH_LOOKUP_ERROR"),
114126
114126
  empty: a("COMMON_SEARCH_LOOKUP_EMPTY")
@@ -114156,7 +114156,7 @@ const T11 = (t, e) => t.filter(
114156
114156
  )
114157
114157
  }
114158
114158
  );
114159
- }, Od = (t) => t == null || t === "" ? null : String(t), K11 = ({
114159
+ }, Od = (t) => t == null || t === "" ? null : String(t), Y11 = ({
114160
114160
  input: t,
114161
114161
  value: e,
114162
114162
  onChange: r,
@@ -114257,7 +114257,7 @@ const T11 = (t, e) => t.filter(
114257
114257
  )
114258
114258
  }
114259
114259
  );
114260
- }, Y11 = ({
114260
+ }, J11 = ({
114261
114261
  input: t,
114262
114262
  value: e,
114263
114263
  onChange: r,
@@ -114287,7 +114287,7 @@ const T11 = (t, e) => t.filter(
114287
114287
  )
114288
114288
  }
114289
114289
  );
114290
- }, J11 = ({
114290
+ }, X11 = ({
114291
114291
  input: t,
114292
114292
  value: e,
114293
114293
  onChange: r,
@@ -114310,7 +114310,7 @@ const T11 = (t, e) => t.filter(
114310
114310
  invalidText: n ?? void 0
114311
114311
  }
114312
114312
  ) });
114313
- }, X11 = ({
114313
+ }, Q11 = ({
114314
114314
  input: t,
114315
114315
  value: e,
114316
114316
  onChange: r,
@@ -114320,7 +114320,7 @@ const T11 = (t, e) => t.filter(
114320
114320
  switch (t.kind) {
114321
114321
  case "text":
114322
114322
  return /* @__PURE__ */ D(
114323
- J11,
114323
+ X11,
114324
114324
  {
114325
114325
  input: t,
114326
114326
  value: e,
@@ -114330,7 +114330,7 @@ const T11 = (t, e) => t.filter(
114330
114330
  );
114331
114331
  case "numeric":
114332
114332
  return /* @__PURE__ */ D(
114333
- K11,
114333
+ Y11,
114334
114334
  {
114335
114335
  input: t,
114336
114336
  value: e,
@@ -114341,7 +114341,7 @@ const T11 = (t, e) => t.filter(
114341
114341
  );
114342
114342
  case "date":
114343
114343
  return /* @__PURE__ */ D(
114344
- F11,
114344
+ j11,
114345
114345
  {
114346
114346
  input: t,
114347
114347
  value: e,
@@ -114352,7 +114352,7 @@ const T11 = (t, e) => t.filter(
114352
114352
  );
114353
114353
  case "options":
114354
114354
  return /* @__PURE__ */ D(
114355
- Y11,
114355
+ J11,
114356
114356
  {
114357
114357
  input: t,
114358
114358
  value: e,
@@ -114362,7 +114362,7 @@ const T11 = (t, e) => t.filter(
114362
114362
  );
114363
114363
  case "lookup":
114364
114364
  return /* @__PURE__ */ D(
114365
- G11,
114365
+ K11,
114366
114366
  {
114367
114367
  input: t,
114368
114368
  value: e,
@@ -114371,7 +114371,7 @@ const T11 = (t, e) => t.filter(
114371
114371
  }
114372
114372
  );
114373
114373
  }
114374
- }, Q11 = ({
114374
+ }, e01 = ({
114375
114375
  row: t,
114376
114376
  availableCriteria: e,
114377
114377
  selectedCriterion: r,
@@ -114406,7 +114406,7 @@ const T11 = (t, e) => t.filter(
114406
114406
  }
114407
114407
  ) }),
114408
114408
  /* @__PURE__ */ D("div", { className: Wt.criterionInput, children: r ? /* @__PURE__ */ D(
114409
- X11,
114409
+ Q11,
114410
114410
  {
114411
114411
  input: r.input,
114412
114412
  value: t.value,
@@ -114429,7 +114429,7 @@ const T11 = (t, e) => t.filter(
114429
114429
  ]
114430
114430
  }
114431
114431
  );
114432
- }, e01 = ({
114432
+ }, t01 = ({
114433
114433
  config: t,
114434
114434
  location: e,
114435
114435
  onSearch: r,
@@ -114444,7 +114444,7 @@ const T11 = (t, e) => t.filter(
114444
114444
  selectedItem: E
114445
114445
  }) => {
114446
114446
  l(E.context), u(_Le(E));
114447
- }, w = (E) => $11(E, c.criteria), g = (E, N) => {
114447
+ }, w = (E) => I11(E, c.criteria), g = (E, N) => {
114448
114448
  u(
114449
114449
  (H) => w(
114450
114450
  CLe(H, E, () => ({
@@ -114470,7 +114470,7 @@ const T11 = (t, e) => t.filter(
114470
114470
  );
114471
114471
  }, y = (E) => {
114472
114472
  u((N) => w(N.filter((H) => H.rowId !== E)));
114473
- }, M = N11(
114473
+ }, M = A11(
114474
114474
  c.criteria,
114475
114475
  d
114476
114476
  ), b = M.length > 0, v = () => {
@@ -114513,10 +114513,10 @@ const T11 = (t, e) => t.filter(
114513
114513
  }
114514
114514
  ) }),
114515
114515
  d.map((E) => /* @__PURE__ */ D("div", { className: Wt.fullWidthCol, children: /* @__PURE__ */ D(
114516
- Q11,
114516
+ e01,
114517
114517
  {
114518
114518
  row: E,
114519
- availableCriteria: x11(
114519
+ availableCriteria: N11(
114520
114520
  c.criteria,
114521
114521
  d,
114522
114522
  E.rowId
@@ -114563,7 +114563,7 @@ const T11 = (t, e) => t.filter(
114563
114563
  ]
114564
114564
  }
114565
114565
  );
114566
- }, t01 = (t, e, r) => {
114566
+ }, r01 = (t, e, r) => {
114567
114567
  if ("value" in t) {
114568
114568
  if (e.kind === "options") {
114569
114569
  const a = e.options.find((i) => i.value === t.value);
@@ -114579,14 +114579,14 @@ const T11 = (t, e) => t.filter(
114579
114579
  }
114580
114580
  const n = t.from.value;
114581
114581
  return t.to?.value ? r("COMMON_SEARCH_CRITERIA_TAG_RANGE", { from: n, to: t.to.value }) : n;
114582
- }, r01 = (t, e, r) => `${r(e.translationKey)}: ${t01(t.value, e.input, r)}`, n01 = ({ currentSearchState: t }) => {
114582
+ }, n01 = (t, e, r) => `${r(e.translationKey)}: ${r01(t.value, e.input, r)}`, o01 = ({ currentSearchState: t }) => {
114583
114583
  const { t: e } = ut(), { context: r, rows: n } = t, a = n.filter(
114584
114584
  (i) => i.criterionKey !== null && i.value !== null
114585
114585
  ).map((i) => {
114586
114586
  const s = r.criteria.find(
114587
114587
  (l) => l.id === i.criterionKey
114588
114588
  );
114589
- return { key: i.rowId, text: r01(i, s, e) };
114589
+ return { key: i.rowId, text: n01(i, s, e) };
114590
114590
  });
114591
114591
  return /* @__PURE__ */ xe(
114592
114592
  "div",
@@ -114618,15 +114618,15 @@ const T11 = (t, e) => t.filter(
114618
114618
  ]
114619
114619
  }
114620
114620
  );
114621
- }, o01 = "http://json-schema.org/draft-07/schema#", a01 = "Common Search Widget Config Schema", i01 = "Configuration for the common search widget, defining search criteria per context", s01 = "array", l01 = 1, c01 = { $ref: "#/definitions/searchContextConfig" }, d01 = { searchContextConfig: { type: "object", required: ["context", "translationKey", "requiredPrivileges", "url", "pageSize", "batchSize", "criteria", "resultFields"], additionalProperties: !1, properties: { context: { type: "string", enum: ["patient", "appointment", "patientProgram"], description: "The context this search configuration applies to" }, translationKey: { type: "string", minLength: 1, description: "i18n key for the tab/section label" }, requiredPrivileges: { type: "array", items: { type: "string" }, minItems: 1, uniqueItems: !0, description: "Privileges required to access this search context" }, locationAware: { type: "string", enum: ["loggedInLocation", "allowedLocation"], description: "Location scope applied when executing searches in this context" }, url: { type: "string", minLength: 1, description: "API endpoint URL for search results" }, pageSize: { type: "integer", minimum: 1, description: "Number of results per page" }, batchSize: { type: "integer", minimum: 1, description: "Number of results fetched per API call" }, criteria: { type: "array", items: { $ref: "#/definitions/criterionConfig" }, minItems: 1, description: "Search criteria available in this context" }, resultFields: { type: "array", items: { $ref: "#/definitions/resultFieldConfig" }, minItems: 1, description: "Defines the columns shown in the results table after a successful search" }, actions: { type: "array", minItems: 1, items: { $ref: "#/definitions/actionConfig" }, description: "Actions available in this context. Optional at the context level, but required when any resultField references an action key. Each action key must be unique within the context." } } }, resultFieldConfig: { type: "object", required: ["translationKey", "expression"], additionalProperties: !1, properties: { translationKey: { type: "string", minLength: 1, description: "i18n key for the column header" }, expression: { type: "string", minLength: 1, description: "JSONata expression evaluated against each result item to extract the column value" }, enableSort: { type: "boolean", description: "When true, the column header is clickable to sort results client-side" }, sortOrder: { type: "string", enum: ["asc", "desc"], description: "Direction the results are sorted by this column before any user interaction" }, filterType: { type: "string", enum: ["text", "select", "dateRange", "numeric"], description: "When present, a filter control appears for this column" }, action: { type: "string", description: "Key of an action defined in the context's actions array. When the referenced action has type navigate, the cell renders as a link. If the user holds none of the action's required privileges, the cell renders as plain text. Referencing a key not present in the actions array is a config error and blocks the widget." }, transform: { type: "string", enum: ["formatDate", "formatTime", "formatDateTime", "formatAge", "formatGender", "formatCountry", "formatSearchResult"], description: "Name of a transform applied to the extracted value before display" } } }, criterionConfig: { type: "object", required: ["field", "translationKey", "input"], additionalProperties: !1, properties: { id: { type: "string", minLength: 1, description: "Human-readable identifier for this criterion, unique within its context. Referenced by other criteria's additionalCriteria list. When omitted, an identifier is auto-derived from field.key/keyType." }, field: { $ref: "#/definitions/fieldConfig" }, default: { type: "boolean", description: "Whether this criterion is shown by default in the UI" }, translationKey: { type: "string", minLength: 1, description: "i18n key for the criterion label" }, input: { $ref: "#/definitions/inputConfig" }, additionalCriteria: { type: "array", items: { type: "string", minLength: 1 }, minItems: 1, uniqueItems: !0, description: "IDs of other criteria in this context that qualify as a sufficient companion when this criterion would otherwise be the only one active. When set and no other active criterion's id appears in this list, the search is blocked." } } }, fieldConfig: { type: "object", required: ["key"], additionalProperties: !1, properties: { key: { type: "string", minLength: 1, description: "Field identifier used when constructing the search query" }, keyType: { type: "string", minLength: 1, description: "UUID or type qualifier for polymorphic fields such as identifier or personAttribute" } } }, inputConfig: { oneOf: [{ $ref: "#/definitions/textInput" }, { $ref: "#/definitions/dateInput" }, { $ref: "#/definitions/numericInput" }, { $ref: "#/definitions/optionsInput" }, { $ref: "#/definitions/lookupInput" }] }, textInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "text" }, placeholderTranslationKey: { type: "string", minLength: 1 }, regex: { type: "string", minLength: 1, description: "Optional regular expression. When provided, the value is validated against this pattern on search submission." } } }, dateInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "date" }, placeholderTranslationKey: { type: "string", minLength: 1 }, rangeAllowed: { type: "boolean", description: "When true, UI renders two inputs (From and To), each with its own value and comparator" } } }, numericInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "numeric" }, placeholderTranslationKey: { type: "string", minLength: 1 }, rangeAllowed: { type: "boolean", description: "When true, UI renders two inputs (From and To), each with its own value and comparator" } } }, optionsInput: { type: "object", required: ["kind", "placeholderTranslationKey", "options"], additionalProperties: !1, properties: { kind: { type: "string", const: "options" }, placeholderTranslationKey: { type: "string", minLength: 1 }, options: { type: "array", minItems: 1, items: { $ref: "#/definitions/optionItem" }, description: "Static list of selectable options" } } }, optionItem: { type: "object", required: ["translationKey", "value"], additionalProperties: !1, properties: { translationKey: { type: "string", minLength: 1 }, value: { type: "string", minLength: 1 } } }, lookupInput: { type: "object", required: ["kind", "placeholderTranslationKey", "lookup"], additionalProperties: !1, properties: { kind: { type: "string", const: "lookup" }, placeholderTranslationKey: { type: "string", minLength: 1 }, lookup: { $ref: "#/definitions/lookupConfig" } } }, lookupConfig: { type: "object", required: ["source"], additionalProperties: !1, properties: { source: { type: "string", minLength: 1, description: "Identifies the lookup source (e.g. appointmentService, concept)" }, prefetch: { type: "boolean", description: "Whether to load all options upfront rather than on user input" }, valueSet: { type: "string", description: "UUID of the concept value set to restrict lookup results" } } }, actionConfig: { oneOf: [{ $ref: "#/definitions/navigateAction" }] }, navigateAction: { type: "object", required: ["key", "type", "navigationURL"], additionalProperties: !0, properties: { key: { type: "string", description: "Unique identifier for this action within the context. Referenced by resultField entries via their action field." }, type: { type: "string", const: "navigate", description: "Renders the column cell as a link navigating to navigationURL." }, navigationURL: { type: "string", description: "URL template for navigation. Placeholders use {expression} syntax where the content must be a valid JSONata expression evaluated against the result row. For example, {uuid} resolves the uuid field; {patient.uuid} resolves a nested field." }, requiredPrivileges: { type: "array", items: { type: "string" }, description: "Privileges required to activate this action. Any one suffices. An empty array makes the action available to all users." } } } }, u01 = {
114622
- $schema: o01,
114623
- title: a01,
114624
- description: i01,
114625
- type: s01,
114626
- minItems: l01,
114627
- items: c01,
114628
- definitions: d01
114629
- }, h01 = ({ extensionParams: t }) => {
114621
+ }, a01 = "http://json-schema.org/draft-07/schema#", i01 = "Common Search Widget Config Schema", s01 = "Configuration for the common search widget, defining search criteria per context", l01 = "array", c01 = 1, d01 = { $ref: "#/definitions/searchContextConfig" }, u01 = { searchContextConfig: { type: "object", required: ["context", "translationKey", "requiredPrivileges", "url", "pageSize", "batchSize", "criteria", "resultFields"], additionalProperties: !1, properties: { context: { type: "string", enum: ["patient", "appointment", "patientProgram"], description: "The context this search configuration applies to" }, translationKey: { type: "string", minLength: 1, description: "i18n key for the tab/section label" }, requiredPrivileges: { type: "array", items: { type: "string" }, minItems: 1, uniqueItems: !0, description: "Privileges required to access this search context" }, locationAware: { type: "string", enum: ["loggedInLocation", "allowedLocation"], description: "Location scope applied when executing searches in this context" }, url: { type: "string", minLength: 1, description: "API endpoint URL for search results" }, pageSize: { type: "integer", minimum: 1, description: "Number of results per page" }, batchSize: { type: "integer", minimum: 1, description: "Number of results fetched per API call" }, criteria: { type: "array", items: { $ref: "#/definitions/criterionConfig" }, minItems: 1, description: "Search criteria available in this context" }, resultFields: { type: "array", items: { $ref: "#/definitions/resultFieldConfig" }, minItems: 1, description: "Defines the columns shown in the results table after a successful search" }, actions: { type: "array", minItems: 1, items: { $ref: "#/definitions/actionConfig" }, description: "Actions available in this context. Optional at the context level, but required when any resultField references an action key. Each action key must be unique within the context." } } }, resultFieldConfig: { type: "object", required: ["translationKey", "expression"], additionalProperties: !1, properties: { translationKey: { type: "string", minLength: 1, description: "i18n key for the column header" }, expression: { type: "string", minLength: 1, description: "JSONata expression evaluated against each result item to extract the column value" }, enableSort: { type: "boolean", description: "When true, the column header is clickable to sort results client-side" }, sortOrder: { type: "string", enum: ["asc", "desc"], description: "Direction the results are sorted by this column before any user interaction" }, filterType: { type: "string", enum: ["text", "select", "dateRange", "numeric"], description: "When present, a filter control appears for this column" }, action: { type: "string", description: "Key of an action defined in the context's actions array. When the referenced action has type navigate, the cell renders as a link. If the user holds none of the action's required privileges, the cell renders as plain text. Referencing a key not present in the actions array is a config error and blocks the widget." }, transform: { type: "string", enum: ["formatDate", "formatTime", "formatDateTime", "formatAge", "formatGender", "formatCountry", "formatSearchResult"], description: "Name of a transform applied to the extracted value before display" } } }, criterionConfig: { type: "object", required: ["field", "translationKey", "input"], additionalProperties: !1, properties: { id: { type: "string", minLength: 1, description: "Human-readable identifier for this criterion, unique within its context. Referenced by other criteria's additionalCriteria list. When omitted, an identifier is auto-derived from field.key/keyType." }, field: { $ref: "#/definitions/fieldConfig" }, default: { type: "boolean", description: "Whether this criterion is shown by default in the UI" }, translationKey: { type: "string", minLength: 1, description: "i18n key for the criterion label" }, input: { $ref: "#/definitions/inputConfig" }, additionalCriteria: { type: "array", items: { type: "string", minLength: 1 }, minItems: 1, uniqueItems: !0, description: "IDs of other criteria in this context that qualify as a sufficient companion when this criterion would otherwise be the only one active. When set and no other active criterion's id appears in this list, the search is blocked." } } }, fieldConfig: { type: "object", required: ["key"], additionalProperties: !1, properties: { key: { type: "string", minLength: 1, description: "Field identifier used when constructing the search query" }, keyType: { type: "string", minLength: 1, description: "UUID or type qualifier for polymorphic fields such as identifier or personAttribute" } } }, inputConfig: { oneOf: [{ $ref: "#/definitions/textInput" }, { $ref: "#/definitions/dateInput" }, { $ref: "#/definitions/numericInput" }, { $ref: "#/definitions/optionsInput" }, { $ref: "#/definitions/lookupInput" }] }, textInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "text" }, placeholderTranslationKey: { type: "string", minLength: 1 }, regex: { type: "string", minLength: 1, description: "Optional regular expression. When provided, the value is validated against this pattern on search submission." } } }, dateInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "date" }, placeholderTranslationKey: { type: "string", minLength: 1 }, rangeAllowed: { type: "boolean", description: "When true, UI renders two inputs (From and To), each with its own value and comparator" } } }, numericInput: { type: "object", required: ["kind", "placeholderTranslationKey"], additionalProperties: !1, properties: { kind: { type: "string", const: "numeric" }, placeholderTranslationKey: { type: "string", minLength: 1 }, rangeAllowed: { type: "boolean", description: "When true, UI renders two inputs (From and To), each with its own value and comparator" } } }, optionsInput: { type: "object", required: ["kind", "placeholderTranslationKey", "options"], additionalProperties: !1, properties: { kind: { type: "string", const: "options" }, placeholderTranslationKey: { type: "string", minLength: 1 }, options: { type: "array", minItems: 1, items: { $ref: "#/definitions/optionItem" }, description: "Static list of selectable options" } } }, optionItem: { type: "object", required: ["translationKey", "value"], additionalProperties: !1, properties: { translationKey: { type: "string", minLength: 1 }, value: { type: "string", minLength: 1 } } }, lookupInput: { type: "object", required: ["kind", "placeholderTranslationKey", "lookup"], additionalProperties: !1, properties: { kind: { type: "string", const: "lookup" }, placeholderTranslationKey: { type: "string", minLength: 1 }, lookup: { $ref: "#/definitions/lookupConfig" } } }, lookupConfig: { type: "object", required: ["source"], additionalProperties: !1, properties: { source: { type: "string", minLength: 1, description: "Identifies the lookup source (e.g. appointmentService, concept)" }, prefetch: { type: "boolean", description: "Whether to load all options upfront rather than on user input" }, valueSet: { type: "string", description: "UUID of the concept value set to restrict lookup results" } } }, actionConfig: { oneOf: [{ $ref: "#/definitions/navigateAction" }] }, navigateAction: { type: "object", required: ["key", "type", "navigationURL"], additionalProperties: !0, properties: { key: { type: "string", description: "Unique identifier for this action within the context. Referenced by resultField entries via their action field." }, type: { type: "string", const: "navigate", description: "Renders the column cell as a link navigating to navigationURL." }, navigationURL: { type: "string", description: "URL template for navigation. Placeholders use {expression} syntax where the content must be a valid JSONata expression evaluated against the result row. For example, {uuid} resolves the uuid field; {patient.uuid} resolves a nested field." }, requiredPrivileges: { type: "array", items: { type: "string" }, description: "Privileges required to activate this action. Any one suffices. An empty array makes the action available to all users." } } } }, h01 = {
114622
+ $schema: a01,
114623
+ title: i01,
114624
+ description: s01,
114625
+ type: l01,
114626
+ minItems: c01,
114627
+ items: d01,
114628
+ definitions: u01
114629
+ }, p01 = ({ extensionParams: t }) => {
114630
114630
  const { t: e } = ut(), { addNotification: r } = z1(), n = t?.configUrl, [a, i] = Ee(!1), [s] = Ee(() => {
114631
114631
  try {
114632
114632
  return z2();
@@ -114639,7 +114639,7 @@ const T11 = (t, e) => t.filter(
114639
114639
  data: V
114640
114640
  } = Ct({
114641
114641
  queryKey: ["commonSearchWidgetConfig", n],
114642
- queryFn: () => FZe(n, u01),
114642
+ queryFn: () => FZe(n, h01),
114643
114643
  enabled: !!n
114644
114644
  }), {
114645
114645
  isLoading: y,
@@ -114650,7 +114650,7 @@ const T11 = (t, e) => t.filter(
114650
114650
  queryFn: qZe,
114651
114651
  enabled: !!V
114652
114652
  }), v = $e(
114653
- () => V ? I11(V) ?? Z11(V) : null,
114653
+ () => V ? Z11(V) ?? k11(V) : null,
114654
114654
  [V]
114655
114655
  ), E = w || y, N = g ?? M ?? v, H = () => r({
114656
114656
  title: e("ERROR_DEFAULT_TITLE"),
@@ -114665,16 +114665,16 @@ const T11 = (t, e) => t.filter(
114665
114665
  }) => {
114666
114666
  i(!0), N0(
114667
114667
  W.url,
114668
- L11(
114669
- T11(k, W.criteria),
114668
+ R11(
114669
+ O11(k, W.criteria),
114670
114670
  W.context,
114671
114671
  W.locationAware ? s?.uuid : void 0,
114672
- O11(W.batchSize, X, Y)
114672
+ L11(W.batchSize, X, Y)
114673
114673
  )
114674
114674
  ).then((le) => {
114675
114675
  if (le.error)
114676
114676
  throw new Error("Search response returned an error");
114677
- const ce = R11(le);
114677
+ const ce = D11(le);
114678
114678
  c((Q) => ({
114679
114679
  context: W,
114680
114680
  rows: k,
@@ -114685,13 +114685,13 @@ const T11 = (t, e) => t.filter(
114685
114685
  currentSet: re,
114686
114686
  searchId: oe ?? Q?.searchId ?? E2()
114687
114687
  })), y3({
114688
- eventType: y11(W.context)
114688
+ eventType: V11(W.context)
114689
114689
  }), ce.results.length > 0 && u(!1);
114690
114690
  }).catch(() => {
114691
114691
  oe && c(null), H();
114692
114692
  }).finally(() => i(!1));
114693
114693
  }, L = (k, W) => {
114694
- const X = S11(
114694
+ const X = $11(
114695
114695
  k,
114696
114696
  W.criteria,
114697
114697
  e("COMMON_SEARCH_CRITERION_REQUIRED"),
@@ -114748,7 +114748,7 @@ const T11 = (t, e) => t.filter(
114748
114748
  className: Wt.fullWidth
114749
114749
  }
114750
114750
  );
114751
- const B = b11(
114751
+ const B = x11(
114752
114752
  V,
114753
114753
  b ?? null
114754
114754
  );
@@ -114785,7 +114785,7 @@ const T11 = (t, e) => t.filter(
114785
114785
  testId: "common-search-criteria-accordion-test-id",
114786
114786
  className: Wt.searchCriteriaAccordionItem,
114787
114787
  children: /* @__PURE__ */ D(
114788
- e01,
114788
+ t01,
114789
114789
  {
114790
114790
  config: B,
114791
114791
  location: s,
@@ -114799,9 +114799,9 @@ const T11 = (t, e) => t.filter(
114799
114799
  }
114800
114800
  ),
114801
114801
  l && /* @__PURE__ */ xe(a1, { children: [
114802
- /* @__PURE__ */ D(n01, { currentSearchState: l }),
114802
+ /* @__PURE__ */ D(o01, { currentSearchState: l }),
114803
114803
  /* @__PURE__ */ D(
114804
- P11,
114804
+ F11,
114805
114805
  {
114806
114806
  resultFields: l.context.resultFields,
114807
114807
  results: l.results,
@@ -114833,9 +114833,9 @@ const T11 = (t, e) => t.filter(
114833
114833
  };
114834
114834
  mBe({
114835
114835
  key: "commonSearch",
114836
- component: h01
114836
+ component: p01
114837
114837
  });
114838
- const p01 = [
114838
+ const f01 = [
114839
114839
  {
114840
114840
  type: "allergies",
114841
114841
  component: l0(() => Promise.resolve().then(() => Djt))
@@ -114854,7 +114854,7 @@ const p01 = [
114854
114854
  },
114855
114855
  {
114856
114856
  type: "patientDocuments",
114857
- component: l0(() => import("./DocumentsTable-DzqSGk-6.js"))
114857
+ component: l0(() => import("./DocumentsTable-C9ItstZh.js"))
114858
114858
  },
114859
114859
  {
114860
114860
  type: "flowSheet",
@@ -114862,7 +114862,7 @@ const p01 = [
114862
114862
  },
114863
114863
  {
114864
114864
  type: "forms",
114865
- component: l0(() => import("./FormsTable-1VbINrlw.js"))
114865
+ component: l0(() => import("./FormsTable-CKDHOEB8.js"))
114866
114866
  },
114867
114867
  {
114868
114868
  type: "labOrders",
@@ -114870,7 +114870,7 @@ const p01 = [
114870
114870
  },
114871
114871
  {
114872
114872
  type: "observations",
114873
- component: l0(() => import("./Observations-Ch904har.js"))
114873
+ component: l0(() => import("./Observations-6SyVZUFX.js"))
114874
114874
  },
114875
114875
  {
114876
114876
  type: "ordersControl",
@@ -114894,7 +114894,7 @@ const p01 = [
114894
114894
  },
114895
114895
  {
114896
114896
  type: "immunizationHistory",
114897
- component: l0(() => Promise.resolve().then(() => mXt))
114897
+ component: l0(() => Promise.resolve().then(() => wXt))
114898
114898
  },
114899
114899
  {
114900
114900
  type: "tasksControl",
@@ -114911,7 +114911,7 @@ class K0 {
114911
114911
  return K0.instance || (K0.instance = new K0()), K0.instance;
114912
114912
  }
114913
114913
  registerBuiltInWidgets() {
114914
- p01.forEach((e) => {
114914
+ f01.forEach((e) => {
114915
114915
  this.registry.set(e.type, e);
114916
114916
  });
114917
114917
  }
@@ -114944,42 +114944,42 @@ class K0 {
114944
114944
  this.registry.clear(), this.registerBuiltInWidgets();
114945
114945
  }
114946
114946
  }
114947
- const Tr1 = (t) => {
114947
+ const Or1 = (t) => {
114948
114948
  K0.getInstance().register(t);
114949
- }, Or1 = (t) => K0.getInstance().get(t), Lr1 = (t) => K0.getInstance().getConfig(t), Rr1 = (t) => K0.getInstance().has(t), Dr1 = () => K0.getInstance().getAll(), Sr1 = () => K0.getInstance().getAllConfigs(), $r1 = () => {
114949
+ }, Lr1 = (t) => K0.getInstance().get(t), Rr1 = (t) => K0.getInstance().getConfig(t), Dr1 = (t) => K0.getInstance().has(t), Sr1 = () => K0.getInstance().getAll(), $r1 = () => K0.getInstance().getAllConfigs(), Ir1 = () => {
114950
114950
  K0.getInstance().reset();
114951
- }, f01 = "/bahmni/home/index.html#/changePassword", m01 = {
114951
+ }, m01 = "/bahmni/home/index.html#/changePassword", w01 = {
114952
114952
  id: "user-change-password-global-action",
114953
114953
  label: "USER_CHANGE_PASSWORD_GLOBAL_ACTION",
114954
114954
  onClick: () => {
114955
- window.location.href = f01;
114955
+ window.location.href = m01;
114956
114956
  },
114957
114957
  // Lower than logout's 9999 so Change Password appears above Logout in the menu.
114958
114958
  priority: 100
114959
- }, w01 = {
114959
+ }, g01 = {
114960
114960
  id: "user-logout-global-action",
114961
114961
  label: "USER_LOGOUT_GLOBAL_ACTION",
114962
114962
  onClick: Qzt,
114963
114963
  priority: 9999
114964
- }, g01 = (t) => {
114965
- t.registerAction(m01), t.registerAction(w01);
114966
- }, dPe = Z1(void 0), v01 = () => {
114964
+ }, v01 = (t) => {
114965
+ t.registerAction(w01), t.registerAction(g01);
114966
+ }, dPe = Z1(void 0), E01 = () => {
114967
114967
  const t = Mt(dPe);
114968
114968
  if (t === void 0)
114969
114969
  throw new Error(
114970
114970
  "useUserActionRegistry must be used within UserActionProvider"
114971
114971
  );
114972
114972
  return t;
114973
- }, E01 = "UserGlobalAction-module_container__XrGRb", y01 = "UserGlobalAction-module_skeleton__9o3OR", V01 = "UserGlobalAction-module_greeting__6-pCa", H01 = "UserGlobalAction-module_userAction__ZSULF", M01 = "UserGlobalAction-module_menu__4A9xa", G2 = {
114974
- container: E01,
114975
- skeleton: y01,
114976
- greeting: V01,
114977
- userAction: H01,
114978
- menu: M01
114979
- }, Ld = "user-global-action-menu", b01 = (t) => t.split(" ")[0], x01 = (t, e, r) => t === -1 ? e === 1 ? 0 : r - 1 : (t + e + r) % r, N01 = Qh, A01 = () => {
114980
- const { t } = ut(), { userPrivileges: e } = en(), { addNotification: r } = z1(), [n, a] = Ee(!1), [i, s] = Ee(null), l = v01(), { getActions: c, version: d } = l, u = Ae(!1), { user: m, loading: w } = e8();
114973
+ }, y01 = "UserGlobalAction-module_container__XrGRb", V01 = "UserGlobalAction-module_skeleton__9o3OR", H01 = "UserGlobalAction-module_greeting__6-pCa", M01 = "UserGlobalAction-module_userAction__ZSULF", b01 = "UserGlobalAction-module_menu__4A9xa", G2 = {
114974
+ container: y01,
114975
+ skeleton: V01,
114976
+ greeting: H01,
114977
+ userAction: M01,
114978
+ menu: b01
114979
+ }, Ld = "user-global-action-menu", x01 = (t) => t.split(" ")[0], N01 = (t, e, r) => t === -1 ? e === 1 ? 0 : r - 1 : (t + e + r) % r, A01 = Qh, _01 = () => {
114980
+ const { t } = ut(), { userPrivileges: e } = en(), { addNotification: r } = z1(), [n, a] = Ee(!1), [i, s] = Ee(null), l = E01(), { getActions: c, version: d } = l, u = Ae(!1), { user: m, loading: w } = e8();
114981
114981
  be(() => {
114982
- u.current || (g01(l), u.current = !0);
114982
+ u.current || (v01(l), u.current = !0);
114983
114983
  }, [l]), be(() => {
114984
114984
  if (!n) return;
114985
114985
  const V = (H) => Array.from(
@@ -114991,7 +114991,7 @@ const Tr1 = (t) => {
114991
114991
  const A = V(v);
114992
114992
  if (A.length === 0) return;
114993
114993
  H.preventDefault(), H.stopImmediatePropagation();
114994
- const L = A.indexOf(document.activeElement), O = H.key === "ArrowDown" ? 1 : -1, B = x01(L, O, A.length);
114994
+ const L = A.indexOf(document.activeElement), O = H.key === "ArrowDown" ? 1 : -1, B = N01(L, O, A.length);
114995
114995
  A[B].focus();
114996
114996
  };
114997
114997
  let M = 0, b = 0, v = null, E = !1;
@@ -115032,7 +115032,7 @@ const Tr1 = (t) => {
115032
115032
  className: G2.container,
115033
115033
  children: [
115034
115034
  /* @__PURE__ */ xe(
115035
- N01,
115035
+ A01,
115036
115036
  {
115037
115037
  id: "user-global-action-button",
115038
115038
  "data-testid": "user-global-action-button-test-id",
@@ -115046,7 +115046,7 @@ const Tr1 = (t) => {
115046
115046
  children: [
115047
115047
  /* @__PURE__ */ D(ske, { id: "user-icon", "data-testid": "user-icon-button-test-id" }),
115048
115048
  m?.display && /* @__PURE__ */ D("span", { className: G2.greeting, title: m.display, children: t("USER_GLOBAL_ACTION_GREETING", {
115049
- name: b01(m.display)
115049
+ name: x01(m.display)
115050
115050
  }) })
115051
115051
  ]
115052
115052
  }
@@ -115093,19 +115093,19 @@ const Tr1 = (t) => {
115093
115093
  }
115094
115094
  );
115095
115095
  };
115096
- A01.displayName = "UserGlobalAction";
115097
- const _01 = (t) => {
115096
+ _01.displayName = "UserGlobalAction";
115097
+ const C01 = (t) => {
115098
115098
  if (!t.id || typeof t.id != "string")
115099
115099
  throw new Error("Action id must be a non-empty string");
115100
115100
  if (!t.label || typeof t.label != "string")
115101
115101
  throw new Error("Action label must be a non-empty string");
115102
115102
  if (typeof t.onClick != "function")
115103
115103
  throw new TypeError("Action onClick must be a function");
115104
- }, C01 = ({
115104
+ }, z01 = ({
115105
115105
  children: t
115106
115106
  }) => {
115107
115107
  const e = Ae(/* @__PURE__ */ new Map()), [r, n] = Ee(0), a = ke((d) => {
115108
- _01(d), e.current.get(d.id) !== d && (e.current.set(d.id, d), n((m) => m + 1));
115108
+ C01(d), e.current.get(d.id) !== d && (e.current.set(d.id, d), n((m) => m + 1));
115109
115109
  }, []), i = ke((d) => {
115110
115110
  e.current.delete(d), n((u) => u + 1);
115111
115111
  }, []), s = ke(() => Array.from(e.current.values()).sort(
@@ -115124,13 +115124,13 @@ const _01 = (t) => {
115124
115124
  );
115125
115125
  return /* @__PURE__ */ D(dPe.Provider, { value: c, children: t });
115126
115126
  };
115127
- C01.displayName = "UserActionProvider";
115128
- const uPe = o.createContext(void 0), z01 = () => {
115127
+ z01.displayName = "UserActionProvider";
115128
+ const uPe = o.createContext(void 0), T01 = () => {
115129
115129
  const t = o.useContext(uPe);
115130
115130
  if (!t)
115131
115131
  throw new Error("useLocation must be used within LocationProvider");
115132
115132
  return t;
115133
- }, Ir1 = ({
115133
+ }, Zr1 = ({
115134
115134
  children: t
115135
115135
  }) => {
115136
115136
  const [e, r] = Ee(null), [n, a] = Ee(
@@ -115190,13 +115190,13 @@ const uPe = o.createContext(void 0), z01 = () => {
115190
115190
  [e, n, i, l, d]
115191
115191
  );
115192
115192
  return /* @__PURE__ */ D(uPe.Provider, { value: w, children: t });
115193
- }, T01 = "LocationSelector-module_dropdownWrapper__EGQSN", O01 = "LocationSelector-module_skeleton__5QGfl", L01 = "LocationSelector-module_error__7K-5g", R01 = "LocationSelector-module_noLocation__mrBOk", Gs = {
115194
- dropdownWrapper: T01,
115195
- skeleton: O01,
115196
- error: L01,
115197
- noLocation: R01
115198
- }, Zr1 = () => {
115199
- const { t } = ut(), { location: e, setLocation: r, availableLocations: n, loading: a, error: i } = z01(), s = (c) => {
115193
+ }, O01 = "LocationSelector-module_dropdownWrapper__EGQSN", L01 = "LocationSelector-module_skeleton__5QGfl", R01 = "LocationSelector-module_error__7K-5g", D01 = "LocationSelector-module_noLocation__mrBOk", Gs = {
115194
+ dropdownWrapper: O01,
115195
+ skeleton: L01,
115196
+ error: R01,
115197
+ noLocation: D01
115198
+ }, kr1 = () => {
115199
+ const { t } = ut(), { location: e, setLocation: r, availableLocations: n, loading: a, error: i } = T01(), s = (c) => {
115200
115200
  !c || c.uuid === e?.uuid || r(c);
115201
115201
  };
115202
115202
  if (a)
@@ -115224,22 +115224,22 @@ const uPe = o.createContext(void 0), z01 = () => {
115224
115224
  };
115225
115225
  export {
115226
115226
  cBe as $,
115227
- lr1 as A,
115227
+ cr1 as A,
115228
115228
  Vc as B,
115229
115229
  A2 as C,
115230
115230
  mr as D,
115231
115231
  VMt as E,
115232
115232
  p0 as F,
115233
115233
  D9e as G,
115234
- pr1 as H,
115235
- wr1 as I,
115234
+ fr1 as H,
115235
+ gr1 as I,
115236
115236
  iTt as J,
115237
- dr1 as K,
115237
+ ur1 as K,
115238
115238
  ojt as L,
115239
115239
  Rjt as M,
115240
115240
  sUt as N,
115241
115241
  s8 as O,
115242
- gr1 as P,
115242
+ vr1 as P,
115243
115243
  wt as Q,
115244
115244
  _Ie as R,
115245
115245
  AIe as S,
@@ -115258,62 +115258,62 @@ export {
115258
115258
  IJt as a3,
115259
115259
  gBe as a4,
115260
115260
  GJt as a5,
115261
- fXt as a6,
115262
- Nr1 as a7,
115263
- Dt1 as a8,
115264
- _t1 as a9,
115265
- z01 as aA,
115266
- Ir1 as aB,
115267
- Zr1 as aC,
115261
+ mXt as a6,
115262
+ Ar1 as a7,
115263
+ St1 as a8,
115264
+ Ct1 as a9,
115265
+ T01 as aA,
115266
+ Zr1 as aB,
115267
+ kr1 as aC,
115268
115268
  FFt as aa,
115269
- mr1 as ab,
115270
- Ct1 as ac,
115269
+ wr1 as ab,
115270
+ zt1 as ac,
115271
115271
  ijt as ad,
115272
- St1 as ae,
115273
- $t1 as af,
115272
+ $t1 as ae,
115273
+ It1 as af,
115274
115274
  PFt as ag,
115275
115275
  e8 as ah,
115276
115276
  Ike as ai,
115277
- Cr1 as aj,
115278
- zr1 as ak,
115277
+ zr1 as aj,
115278
+ Tr1 as ak,
115279
115279
  mBe as al,
115280
- br1 as am,
115281
- xr1 as an,
115282
- h01 as ao,
115283
- Tr1 as ap,
115284
- Or1 as aq,
115285
- Lr1 as ar,
115286
- Rr1 as as,
115287
- Dr1 as at,
115288
- Sr1 as au,
115289
- $r1 as av,
115290
- A01 as aw,
115291
- C01 as ax,
115292
- v01 as ay,
115280
+ xr1 as am,
115281
+ Nr1 as an,
115282
+ p01 as ao,
115283
+ Or1 as ap,
115284
+ Lr1 as aq,
115285
+ Rr1 as ar,
115286
+ Dr1 as as,
115287
+ Sr1 as at,
115288
+ $r1 as au,
115289
+ Ir1 as av,
115290
+ _01 as aw,
115291
+ z01 as ax,
115292
+ E01 as ay,
115293
115293
  uPe as az,
115294
115294
  Y1 as b,
115295
115295
  t8 as c,
115296
115296
  en as d,
115297
115297
  sBe as e,
115298
115298
  mGt as f,
115299
- ur1 as g,
115299
+ hr1 as g,
115300
115300
  GZe as h,
115301
115301
  fGt as i,
115302
115302
  Fo as j,
115303
- _r1 as k,
115304
- vr1 as l,
115305
- F01 as m,
115303
+ Cr1 as k,
115304
+ Er1 as l,
115305
+ j01 as m,
115306
115306
  Tyt as n,
115307
- cr1 as o,
115307
+ dr1 as o,
115308
115308
  VTt as p,
115309
- hr1 as q,
115309
+ pr1 as q,
115310
115310
  Po as r,
115311
- yr1 as s,
115312
- Er1 as t,
115311
+ Vr1 as s,
115312
+ yr1 as t,
115313
115313
  v0 as u,
115314
- Mr1 as v,
115315
- Vr1 as w,
115316
- Hr1 as x,
115314
+ br1 as v,
115315
+ Hr1 as w,
115316
+ Mr1 as x,
115317
115317
  vi as y,
115318
115318
  di as z
115319
115319
  };