@bahmni/widgets 0.0.1-dev.369 → 0.0.1-dev.370
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.
- package/dist/{DocumentsTable-C3JJ1xpu.js → DocumentsTable-sZg2p8HO.js} +1 -1
- package/dist/{FormsTable-0SOxqm3W.js → FormsTable-gFIeDw9h.js} +1 -1
- package/dist/{Observations-BdM5fpej.js → Observations-DkLce9zW.js} +1 -1
- package/dist/{index-DmCVL-yu.js → index-Cv9sFAZU.js} +669 -670
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -39489,7 +39489,7 @@ function bc({
|
|
|
39489
39489
|
}, s), a));
|
|
39490
39490
|
}
|
|
39491
39491
|
const {
|
|
39492
|
-
open:
|
|
39492
|
+
open: XGt,
|
|
39493
39493
|
...ddt
|
|
39494
39494
|
} = zo.propTypes ?? {};
|
|
39495
39495
|
bc.propTypes = {
|
|
@@ -68476,7 +68476,7 @@ const a6 = ({
|
|
|
68476
68476
|
container: twt,
|
|
68477
68477
|
accordion: rwt,
|
|
68478
68478
|
rows: nwt
|
|
68479
|
-
},
|
|
68479
|
+
}, eYt = ({
|
|
68480
68480
|
title: t,
|
|
68481
68481
|
rows: e,
|
|
68482
68482
|
children: r,
|
|
@@ -71108,23 +71108,23 @@ g1.getAdapter = DRe.getAdapter;
|
|
|
71108
71108
|
g1.HttpStatusCode = Nd;
|
|
71109
71109
|
g1.default = g1;
|
|
71110
71110
|
const {
|
|
71111
|
-
Axios:
|
|
71112
|
-
AxiosError:
|
|
71113
|
-
CanceledError:
|
|
71114
|
-
isCancel:
|
|
71115
|
-
CancelToken:
|
|
71116
|
-
VERSION:
|
|
71117
|
-
all:
|
|
71118
|
-
Cancel:
|
|
71119
|
-
isAxiosError:
|
|
71120
|
-
spread:
|
|
71121
|
-
toFormData:
|
|
71122
|
-
AxiosHeaders:
|
|
71123
|
-
HttpStatusCode:
|
|
71124
|
-
formToJSON:
|
|
71125
|
-
getAdapter:
|
|
71126
|
-
mergeConfig:
|
|
71127
|
-
create:
|
|
71111
|
+
Axios: rYt,
|
|
71112
|
+
AxiosError: nYt,
|
|
71113
|
+
CanceledError: oYt,
|
|
71114
|
+
isCancel: aYt,
|
|
71115
|
+
CancelToken: iYt,
|
|
71116
|
+
VERSION: sYt,
|
|
71117
|
+
all: lYt,
|
|
71118
|
+
Cancel: cYt,
|
|
71119
|
+
isAxiosError: uYt,
|
|
71120
|
+
spread: dYt,
|
|
71121
|
+
toFormData: hYt,
|
|
71122
|
+
AxiosHeaders: pYt,
|
|
71123
|
+
HttpStatusCode: fYt,
|
|
71124
|
+
formToJSON: mYt,
|
|
71125
|
+
getAdapter: wYt,
|
|
71126
|
+
mergeConfig: gYt,
|
|
71127
|
+
create: vYt
|
|
71128
71128
|
} = g1, Mvt = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", bvt = (t) => {
|
|
71129
71129
|
if (!t.issue || !Array.isArray(t.issue))
|
|
71130
71130
|
return null;
|
|
@@ -74679,7 +74679,7 @@ const LVt = () => {
|
|
|
74679
74679
|
}
|
|
74680
74680
|
};
|
|
74681
74681
|
}, Za = LVt(), RVt = (t, e) => `${y1}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(t)}`, DVt = "SHORT", SVt = "FULLY_SPECIFIED";
|
|
74682
|
-
async function
|
|
74682
|
+
async function EYt(t, e) {
|
|
74683
74683
|
const r = RVt(t), n = await xt(r);
|
|
74684
74684
|
return !n.results || n.results.length === 0 ? null : n.results[0];
|
|
74685
74685
|
}
|
|
@@ -79826,7 +79826,7 @@ async function ebt(t, e, r) {
|
|
|
79826
79826
|
const n = xDe(t, e, r);
|
|
79827
79827
|
return await xt(n);
|
|
79828
79828
|
}
|
|
79829
|
-
async function
|
|
79829
|
+
async function yYt(t, e) {
|
|
79830
79830
|
const r = xDe(t, e, void 0, !0);
|
|
79831
79831
|
return await xt(r);
|
|
79832
79832
|
}
|
|
@@ -79929,7 +79929,7 @@ const ADe = async () => {
|
|
|
79929
79929
|
return e.map(
|
|
79930
79930
|
(n) => hbt(n, r)
|
|
79931
79931
|
);
|
|
79932
|
-
},
|
|
79932
|
+
}, VYt = async (t) => {
|
|
79933
79933
|
const e = await fetch(GMt(t));
|
|
79934
79934
|
if (!e.ok)
|
|
79935
79935
|
throw new Error(
|
|
@@ -79963,7 +79963,7 @@ const ADe = async () => {
|
|
|
79963
79963
|
schema: n,
|
|
79964
79964
|
translations: u
|
|
79965
79965
|
};
|
|
79966
|
-
},
|
|
79966
|
+
}, HYt = async (t, e, r) => {
|
|
79967
79967
|
const n = XMt(t, r), a = await xt(n);
|
|
79968
79968
|
return Array.isArray(a) ? a : [];
|
|
79969
79969
|
}, fbt = y1 + "/bahmnicore/diseaseSummaryData?", mbt = async (t, e, r, n) => {
|
|
@@ -80072,7 +80072,7 @@ function _bt(t) {
|
|
|
80072
80072
|
};
|
|
80073
80073
|
});
|
|
80074
80074
|
}
|
|
80075
|
-
async function
|
|
80075
|
+
async function MYt(t, e, r = 10, n = 1) {
|
|
80076
80076
|
const a = (n - 1) * r, i = xbt(
|
|
80077
80077
|
t,
|
|
80078
80078
|
e,
|
|
@@ -80310,7 +80310,7 @@ async function Gbt(t) {
|
|
|
80310
80310
|
const l = setTimeout(s, Fbt);
|
|
80311
80311
|
a.focus(), a.print();
|
|
80312
80312
|
}
|
|
80313
|
-
const
|
|
80313
|
+
const bYt = ({
|
|
80314
80314
|
printOptions: t,
|
|
80315
80315
|
renderContext: e,
|
|
80316
80316
|
renderData: r,
|
|
@@ -94414,7 +94414,7 @@ function Z6({
|
|
|
94414
94414
|
}, s), a));
|
|
94415
94415
|
}
|
|
94416
94416
|
const {
|
|
94417
|
-
open:
|
|
94417
|
+
open: xYt,
|
|
94418
94418
|
...xSt
|
|
94419
94419
|
} = gi.propTypes ?? {};
|
|
94420
94420
|
Z6.propTypes = {
|
|
@@ -95177,7 +95177,7 @@ const mSe = () => {
|
|
|
95177
95177
|
"useNotification must be used within a NotificationProvider"
|
|
95178
95178
|
);
|
|
95179
95179
|
return t;
|
|
95180
|
-
},
|
|
95180
|
+
}, AYt = () => {
|
|
95181
95181
|
const { addNotification: t } = G1();
|
|
95182
95182
|
return be(() => {
|
|
95183
95183
|
Za.register((e) => {
|
|
@@ -95257,7 +95257,7 @@ const LSt = "DocumentUpload-module_container__rONO3", RSt = "DocumentUpload-modu
|
|
|
95257
95257
|
}) => {
|
|
95258
95258
|
const a = (n ?? "").toLowerCase();
|
|
95259
95259
|
return a.includes("image") ? /* @__PURE__ */ L(uRe, { id: t, imageSrc: e, alt: r }) : a.includes("video") ? /* @__PURE__ */ L(hRe, { id: t, videoSrc: e, modalTitle: r }) : /* @__PURE__ */ L(dRe, { id: t, src: e, modalTitle: r });
|
|
95260
|
-
}, KSt = (t) => t.startsWith("image/") || t.startsWith("video/") || t === "application/pdf",
|
|
95260
|
+
}, KSt = (t) => t.startsWith("image/") || t.startsWith("video/") || t === "application/pdf", _Yt = ({
|
|
95261
95261
|
patientUuid: t,
|
|
95262
95262
|
encounterTypeName: e,
|
|
95263
95263
|
saveTarget: r,
|
|
@@ -95470,7 +95470,7 @@ function i$t(t, e) {
|
|
|
95470
95470
|
ageDetails: a$t(t.birthDate, e)
|
|
95471
95471
|
};
|
|
95472
95472
|
}
|
|
95473
|
-
const
|
|
95473
|
+
const NYt = () => {
|
|
95474
95474
|
const { t } = dt(), e = gr(), r = H3(GSt), {
|
|
95475
95475
|
data: n,
|
|
95476
95476
|
isLoading: a,
|
|
@@ -99855,13 +99855,13 @@ function YZt(t) {
|
|
|
99855
99855
|
}
|
|
99856
99856
|
const SSe = (t) => t ? t.extension?.find(
|
|
99857
99857
|
(r) => r.url === fEt
|
|
99858
|
-
)?.valueString : void 0,
|
|
99858
|
+
)?.valueString : void 0, CYt = (t) => {
|
|
99859
99859
|
const e = SSe(t);
|
|
99860
99860
|
if (!e) return;
|
|
99861
99861
|
const r = e.split("/")[0].split("^").pop()?.replace(/\.\d+$/, "");
|
|
99862
99862
|
if (r)
|
|
99863
99863
|
return r;
|
|
99864
|
-
},
|
|
99864
|
+
}, zYt = (t, e) => t?.date ? gt(t.date, e).formattedResult : e("DATE_ERROR_PARSE"), q6 = (t, e) => {
|
|
99865
99865
|
if (t.observationValue?.value == null)
|
|
99866
99866
|
return "";
|
|
99867
99867
|
const { value: r, unit: n, type: a } = t.observationValue;
|
|
@@ -99893,7 +99893,7 @@ const SSe = (t) => t ? t.extension?.find(
|
|
|
99893
99893
|
return `${e} (<${s})`;
|
|
99894
99894
|
}
|
|
99895
99895
|
return e;
|
|
99896
|
-
},
|
|
99896
|
+
}, TYt = (t, e, r) => ({
|
|
99897
99897
|
index: e,
|
|
99898
99898
|
header: JZt(t),
|
|
99899
99899
|
value: q6(t, r),
|
|
@@ -99927,7 +99927,7 @@ function $Se(t, e, r) {
|
|
|
99927
99927
|
// conceptId is required to group the multiselect obs
|
|
99928
99928
|
};
|
|
99929
99929
|
}
|
|
99930
|
-
function
|
|
99930
|
+
function OYt(t) {
|
|
99931
99931
|
const e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set();
|
|
99932
99932
|
t.entry?.forEach(({ resource: s }) => {
|
|
99933
99933
|
s?.id && (s.resourceType === "Encounter" ? e.set(s.id, s) : s.resourceType === "Observation" && (r.set(s.id, s), s.hasMember?.forEach((l) => {
|
|
@@ -99946,7 +99946,7 @@ function LYt(t) {
|
|
|
99946
99946
|
c.members ? i.push(c) : a.push(c);
|
|
99947
99947
|
}), { observations: a, groupedObservations: i };
|
|
99948
99948
|
}
|
|
99949
|
-
function
|
|
99949
|
+
function LYt(t) {
|
|
99950
99950
|
const e = /* @__PURE__ */ new Map();
|
|
99951
99951
|
return t.observations.forEach((r) => {
|
|
99952
99952
|
if (!r.encounter?.id) return;
|
|
@@ -99972,7 +99972,7 @@ function RYt(t) {
|
|
|
99972
99972
|
};
|
|
99973
99973
|
});
|
|
99974
99974
|
}
|
|
99975
|
-
function
|
|
99975
|
+
function RYt(t) {
|
|
99976
99976
|
return [...t].sort((e, r) => {
|
|
99977
99977
|
const n = e.encounterDetails?.date, a = r.encounterDetails?.date;
|
|
99978
99978
|
return !n && !a ? 0 : n ? a ? new Date(a).getTime() - new Date(n).getTime() : -1 : 1;
|
|
@@ -101338,7 +101338,7 @@ const HPt = ({
|
|
|
101338
101338
|
key: t.key,
|
|
101339
101339
|
component: t.component
|
|
101340
101340
|
});
|
|
101341
|
-
},
|
|
101341
|
+
}, DYt = (t) => J6.find((e) => e.key === t), SYt = () => {
|
|
101342
101342
|
J6.length = 0;
|
|
101343
101343
|
}, APt = (t) => {
|
|
101344
101344
|
switch (t?.toLowerCase()) {
|
|
@@ -101434,32 +101434,31 @@ const HPt = ({
|
|
|
101434
101434
|
return !1;
|
|
101435
101435
|
}
|
|
101436
101436
|
});
|
|
101437
|
-
}, DPt = "SearchPatient-module_fullWidth__5ulck", SPt = "SearchPatient-module_searchPatientContainer__jlH-8", $Pt = "SearchPatient-module_searchPatient__G0mM4", IPt = "SearchPatient-
|
|
101437
|
+
}, DPt = "SearchPatient-module_fullWidth__5ulck", SPt = "SearchPatient-module_searchPatientContainer__jlH-8", $Pt = "SearchPatient-module_searchPatient__G0mM4", IPt = "SearchPatient-module_orDivider__8ssKw", kPt = "SearchPatient-module_advanceSearchContainer__h4pwp", ZPt = "SearchPatient-module_advanceInputWrapper__AGocC", BPt = "SearchPatient-module_errorMessage__NlXUi", PPt = "SearchPatient-module_searchTypeDropdown__2e3RF", FPt = "SearchPatient-module_patientSearchResult__kIZPS", jPt = "SearchPatient-module_resultsTitle__GJPBR", UPt = "SearchPatient-module_patientSearchTableBody__uF6dJ", WPt = "SearchPatient-module_scheduledStatus__28TL-", qPt = "SearchPatient-module_arrivedStatus__KIRHC", KPt = "SearchPatient-module_checkedInStatus__j1UrT", GPt = "SearchPatient-module_completedStatus__QJHgy", YPt = "SearchPatient-module_missedStatus__NpWjS", JPt = "SearchPatient-module_cancelledStatus__-YaTv", XPt = "SearchPatient-module_actionButtonsContainer__xXthv", QPt = "SearchPatient-module_actionButton__9Ee1r", P1 = {
|
|
101438
101438
|
fullWidth: DPt,
|
|
101439
101439
|
searchPatientContainer: SPt,
|
|
101440
101440
|
searchPatient: $Pt,
|
|
101441
|
-
|
|
101442
|
-
|
|
101443
|
-
|
|
101444
|
-
|
|
101445
|
-
|
|
101446
|
-
|
|
101447
|
-
|
|
101448
|
-
|
|
101449
|
-
|
|
101450
|
-
|
|
101451
|
-
|
|
101452
|
-
|
|
101453
|
-
|
|
101454
|
-
|
|
101455
|
-
|
|
101456
|
-
|
|
101457
|
-
|
|
101458
|
-
}, tFt = (t) => {
|
|
101441
|
+
orDivider: IPt,
|
|
101442
|
+
advanceSearchContainer: kPt,
|
|
101443
|
+
advanceInputWrapper: ZPt,
|
|
101444
|
+
errorMessage: BPt,
|
|
101445
|
+
searchTypeDropdown: PPt,
|
|
101446
|
+
patientSearchResult: FPt,
|
|
101447
|
+
resultsTitle: jPt,
|
|
101448
|
+
patientSearchTableBody: UPt,
|
|
101449
|
+
scheduledStatus: WPt,
|
|
101450
|
+
arrivedStatus: qPt,
|
|
101451
|
+
checkedInStatus: KPt,
|
|
101452
|
+
completedStatus: GPt,
|
|
101453
|
+
missedStatus: YPt,
|
|
101454
|
+
cancelledStatus: JPt,
|
|
101455
|
+
actionButtonsContainer: XPt,
|
|
101456
|
+
actionButton: QPt
|
|
101457
|
+
}, eFt = (t) => {
|
|
101459
101458
|
const e = t.customAttribute ? JSON.parse(t.customAttribute) : {}, r = t.addressFieldValue ? JSON.parse(t.addressFieldValue) : {}, n = t.patientProgramAttributeValue ? JSON.parse(t.patientProgramAttributeValue) : {};
|
|
101460
101459
|
return { customAttributes: e, addressAttributes: r, programAttributes: n };
|
|
101461
|
-
},
|
|
101462
|
-
const { customAttributes: n, addressAttributes: a, programAttributes: i } =
|
|
101460
|
+
}, tFt = (t, e = []) => t ? t.pageOfResults.map((r) => {
|
|
101461
|
+
const { customAttributes: n, addressAttributes: a, programAttributes: i } = eFt(r), s = {};
|
|
101463
101462
|
return e.forEach((l) => {
|
|
101464
101463
|
l.fields.forEach((c) => {
|
|
101465
101464
|
n[c] !== void 0 ? s[c] = n[c] : a[c] !== void 0 ? s[c] = a[c] : i[c] !== void 0 && (s[c] = i[c]);
|
|
@@ -101479,7 +101478,7 @@ const HPt = ({
|
|
|
101479
101478
|
APPOINTMENT_STATUS: "appointmentStatus",
|
|
101480
101479
|
GENDER: "gender",
|
|
101481
101480
|
ACTIONS: "actions"
|
|
101482
|
-
},
|
|
101481
|
+
}, rFt = /^\//, nFt = /^(https?:\/\/|#)/i, oFt = ({
|
|
101483
101482
|
data: t,
|
|
101484
101483
|
searchTerm: e,
|
|
101485
101484
|
isLoading: r,
|
|
@@ -101519,7 +101518,7 @@ const HPt = ({
|
|
|
101519
101518
|
if (!l)
|
|
101520
101519
|
return /* @__PURE__ */ L("span", { children: V });
|
|
101521
101520
|
const A = GRe(l, { patientUuid: x }, !0).trim();
|
|
101522
|
-
return
|
|
101521
|
+
return rFt.test(A) ? /* @__PURE__ */ L(
|
|
101523
101522
|
w0,
|
|
101524
101523
|
{
|
|
101525
101524
|
href: A,
|
|
@@ -101528,7 +101527,7 @@ const HPt = ({
|
|
|
101528
101527
|
},
|
|
101529
101528
|
children: V
|
|
101530
101529
|
}
|
|
101531
|
-
) :
|
|
101530
|
+
) : nFt.test(A) ? /* @__PURE__ */ L("a", { href: A, children: V }) : /* @__PURE__ */ L("span", { children: V });
|
|
101532
101531
|
}, M = (x, V) => /* @__PURE__ */ L(
|
|
101533
101532
|
Jr,
|
|
101534
101533
|
{
|
|
@@ -101600,7 +101599,7 @@ const HPt = ({
|
|
|
101600
101599
|
headers: g,
|
|
101601
101600
|
ariaLabel: "patient-search-sortable-data-table",
|
|
101602
101601
|
loading: r,
|
|
101603
|
-
rows:
|
|
101602
|
+
rows: tFt(t, i),
|
|
101604
101603
|
renderCell: v,
|
|
101605
101604
|
emptyStateMessage: y,
|
|
101606
101605
|
className: P1.patientSearchTableBody,
|
|
@@ -101608,13 +101607,13 @@ const HPt = ({
|
|
|
101608
101607
|
}
|
|
101609
101608
|
)
|
|
101610
101609
|
] });
|
|
101611
|
-
},
|
|
101612
|
-
$schema:
|
|
101613
|
-
title:
|
|
101614
|
-
type:
|
|
101615
|
-
additionalProperties:
|
|
101616
|
-
properties:
|
|
101617
|
-
},
|
|
101610
|
+
}, aFt = "http://json-schema.org/draft-07/schema#", iFt = "Search Patient Widget Config Schema", sFt = "object", lFt = !1, cFt = { patientDetailUrl: { type: "string", description: "URL template for navigating to a patient detail page. Use {{patientUuid}} as a placeholder." }, customAttributes: { type: "array", description: "Array of available search fields", items: { type: "object", additionalProperties: !1, properties: { translationKey: { type: "string", description: "Translation key for the dropdown label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, columnTranslationKeys: { type: "array", description: "Array of translation keys for the column headers", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of fields configurations with translation keys to display on table headers", items: { type: "object", additionalProperties: !1, properties: { field: { type: "string", description: "field corresponding to table header" }, translationKey: { type: "string", description: "Translation key for the table header" } } } }, type: { type: "string", enum: ["person", "address", "program", "appointment"], description: "Type of the search field (person, address, program, appointment)" } } } }, appointment: { type: "array", description: "Array of available search fields for appointments", items: { type: "object", additionalProperties: !0, required: ["translationKey", "fields"], properties: { translationKey: { type: "string", description: "Translation key for the field label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of expected fields with optional types", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "The field name (e.g., apptNumber, apptDate)" }, translationKey: { type: "string", description: "Translation key for the field's display label" }, type: { type: "string", description: "Optional field type (e.g., date, string)" } } } }, type: { type: "string", enum: ["appointment"], description: "Type of the search field (appointment)" }, actions: { type: "array", description: "Array of actions allowed on this search field", items: { type: "object", required: ["translationKey", "type", "enabledRule", "onAction"], properties: { translationKey: { type: "string", description: "Translation key for the action button label" }, type: { type: "string", enum: ["changeStatus", "navigate", "checkInAndStartVisit"], description: "Type of action to perform" }, enabledRule: { type: "array", description: "Conditions to enable this action (rules)", items: { type: "object", properties: { type: { type: "string", enum: ["privilegeCheck", "statusCheck", "appDateCheck", "appointmentService"], description: "Type of rule to evaluate" }, values: { type: "array", items: { type: "string" }, description: "Values to match for the rule" }, excludeValues: { type: "array", items: { type: "string" }, description: "Values to exclude for the rule" } } } }, onAction: { type: "object", description: "What happens when action is triggered", additionalProperties: !0, properties: { status: { type: "string", description: "Status to set (for changeStatus type)" }, navigation: { type: "string", description: "URL path to navigate to (for navigate type)" }, submit: { type: "string", description: "API endpoint URL to submit to (for checkInAndStartVisit type)" } } }, onSuccess: { type: "object", description: "Notification or other success response", additionalProperties: !0, properties: { notification: { type: "string", description: "Translation key for success notification message" } } } } } } } } } }, uFt = {
|
|
101611
|
+
$schema: aFt,
|
|
101612
|
+
title: iFt,
|
|
101613
|
+
type: sFt,
|
|
101614
|
+
additionalProperties: lFt,
|
|
101615
|
+
properties: cFt
|
|
101616
|
+
}, dFt = ({
|
|
101618
101617
|
buttonTitle: t,
|
|
101619
101618
|
searchBarPlaceholder: e,
|
|
101620
101619
|
isLoading: r,
|
|
@@ -101740,7 +101739,7 @@ const HPt = ({
|
|
|
101740
101739
|
}
|
|
101741
101740
|
);
|
|
101742
101741
|
};
|
|
101743
|
-
class
|
|
101742
|
+
class hFt {
|
|
101744
101743
|
type = "appointment";
|
|
101745
101744
|
/**
|
|
101746
101745
|
* Execute appointment search
|
|
@@ -101818,7 +101817,7 @@ class pFt {
|
|
|
101818
101817
|
return !e?.reasons || !Array.isArray(e.reasons) ? "" : e.reasons.map((r) => r?.name).filter(Boolean).join(", ");
|
|
101819
101818
|
}
|
|
101820
101819
|
}
|
|
101821
|
-
class
|
|
101820
|
+
class pFt {
|
|
101822
101821
|
type = "attributes";
|
|
101823
101822
|
/**
|
|
101824
101823
|
* Execute custom attribute search
|
|
@@ -101892,7 +101891,7 @@ class fFt {
|
|
|
101892
101891
|
return r ? "+" + n : n;
|
|
101893
101892
|
}
|
|
101894
101893
|
}
|
|
101895
|
-
class
|
|
101894
|
+
class fFt {
|
|
101896
101895
|
type = "nameOrId";
|
|
101897
101896
|
/**
|
|
101898
101897
|
* Execute name or ID search
|
|
@@ -101952,7 +101951,7 @@ class mFt {
|
|
|
101952
101951
|
};
|
|
101953
101952
|
}
|
|
101954
101953
|
}
|
|
101955
|
-
class
|
|
101954
|
+
class mFt {
|
|
101956
101955
|
strategies = /* @__PURE__ */ new Map();
|
|
101957
101956
|
/**
|
|
101958
101957
|
* Register a search strategy
|
|
@@ -101989,18 +101988,18 @@ class wFt {
|
|
|
101989
101988
|
return Array.from(this.strategies.keys());
|
|
101990
101989
|
}
|
|
101991
101990
|
}
|
|
101992
|
-
const x3 = new
|
|
101993
|
-
x3.register(new mFt());
|
|
101991
|
+
const x3 = new mFt();
|
|
101994
101992
|
x3.register(new fFt());
|
|
101995
101993
|
x3.register(new pFt());
|
|
101996
|
-
|
|
101994
|
+
x3.register(new hFt());
|
|
101995
|
+
const wFt = ({ extensionParams: t }) => {
|
|
101997
101996
|
const e = t?.configUrl, {
|
|
101998
101997
|
isLoading: r,
|
|
101999
101998
|
error: n,
|
|
102000
101999
|
data: a
|
|
102001
102000
|
} = It({
|
|
102002
102001
|
queryKey: ["searchPatientConfig", e],
|
|
102003
|
-
queryFn: () => bDe(e,
|
|
102002
|
+
queryFn: () => bDe(e, uFt),
|
|
102004
102003
|
enabled: !!e
|
|
102005
102004
|
}), [i, s] = ve(""), [l, c] = ve(""), [u, d] = ve(""), [m, w] = ve(""), { addNotification: g } = G1(), { t: H } = dt(), [E, M] = ve(!1), [b, v] = ve([]), [y, x] = ve(""), [V, A] = ve([]), [N, C] = ve(void 0), P = () => V.find(
|
|
102006
102005
|
(D) => H(D.translationKey) === y
|
|
@@ -102116,7 +102115,7 @@ const gFt = ({ extensionParams: t }) => {
|
|
|
102116
102115
|
} : void 0, X = E ? z : "", G = X === "appointment" ? I?.appointment ?? [] : I?.customAttributes ?? [];
|
|
102117
102116
|
return /* @__PURE__ */ _e("div", { children: [
|
|
102118
102117
|
/* @__PURE__ */ L(
|
|
102119
|
-
|
|
102118
|
+
dFt,
|
|
102120
102119
|
{
|
|
102121
102120
|
buttonTitle: H("REGISTRATION_PATIENT_SEARCH_BUTTON_TITLE"),
|
|
102122
102121
|
searchBarPlaceholder: H(
|
|
@@ -102138,7 +102137,7 @@ const gFt = ({ extensionParams: t }) => {
|
|
|
102138
102137
|
}
|
|
102139
102138
|
),
|
|
102140
102139
|
i && /* @__PURE__ */ L(
|
|
102141
|
-
|
|
102140
|
+
oFt,
|
|
102142
102141
|
{
|
|
102143
102142
|
data: N,
|
|
102144
102143
|
searchTerm: i,
|
|
@@ -102155,16 +102154,16 @@ const gFt = ({ extensionParams: t }) => {
|
|
|
102155
102154
|
};
|
|
102156
102155
|
jSe({
|
|
102157
102156
|
key: "defaultSearch",
|
|
102158
|
-
component:
|
|
102159
|
-
});
|
|
102160
|
-
const
|
|
102161
|
-
vitalFlowSheetDataTable:
|
|
102162
|
-
vitalSignCell:
|
|
102163
|
-
vitalSignName:
|
|
102164
|
-
obsValueCell:
|
|
102165
|
-
abnormalValue:
|
|
102166
|
-
complexDisplayValue:
|
|
102167
|
-
},
|
|
102157
|
+
component: wFt
|
|
102158
|
+
});
|
|
102159
|
+
const gFt = "VitalFlowSheet-module_vitalFlowSheetDataTable__Nnc7i", vFt = "VitalFlowSheet-module_vitalSignCell__rLnL2", EFt = "VitalFlowSheet-module_vitalSignName__ZMxpI", yFt = "VitalFlowSheet-module_obsValueCell__jlfOo", VFt = "VitalFlowSheet-module_abnormalValue__GY-a4", HFt = "VitalFlowSheet-module_complexDisplayValue__xaQCs", zr = {
|
|
102160
|
+
vitalFlowSheetDataTable: gFt,
|
|
102161
|
+
vitalSignCell: vFt,
|
|
102162
|
+
vitalSignName: EFt,
|
|
102163
|
+
obsValueCell: yFt,
|
|
102164
|
+
abnormalValue: VFt,
|
|
102165
|
+
complexDisplayValue: HFt
|
|
102166
|
+
}, MFt = (t) => {
|
|
102168
102167
|
const [e, r] = ve(null), [n, a] = ve(!1), [i, s] = ve(null), { addNotification: l } = G1(), c = gr(), u = ke(
|
|
102169
102168
|
() => ({
|
|
102170
102169
|
latestCount: t.latestCount,
|
|
@@ -102209,7 +102208,7 @@ const vFt = "VitalFlowSheet-module_vitalFlowSheetDataTable__Nnc7i", EFt = "Vital
|
|
|
102209
102208
|
error: i,
|
|
102210
102209
|
refetch: d
|
|
102211
102210
|
};
|
|
102212
|
-
},
|
|
102211
|
+
}, bFt = (t) => t?.tabularData ? Object.keys(t.tabularData).sort(
|
|
102213
102212
|
(e, r) => new Date(r).getTime() - new Date(e).getTime()
|
|
102214
102213
|
) : [], Wd = (t) => {
|
|
102215
102214
|
switch (t) {
|
|
@@ -102230,7 +102229,7 @@ const vFt = "VitalFlowSheet-module_vitalFlowSheetDataTable__Nnc7i", EFt = "Vital
|
|
|
102230
102229
|
default:
|
|
102231
102230
|
return t;
|
|
102232
102231
|
}
|
|
102233
|
-
},
|
|
102232
|
+
}, xFt = (t) => {
|
|
102234
102233
|
switch (t) {
|
|
102235
102234
|
case "seated":
|
|
102236
102235
|
return "BODY_POSITION_SITTING";
|
|
@@ -102247,7 +102246,7 @@ const vFt = "VitalFlowSheet-module_vitalFlowSheetDataTable__Nnc7i", EFt = "Vital
|
|
|
102247
102246
|
default:
|
|
102248
102247
|
return t;
|
|
102249
102248
|
}
|
|
102250
|
-
},
|
|
102249
|
+
}, AFt = (t) => {
|
|
102251
102250
|
const e = /* @__PURE__ */ new Map(), r = [];
|
|
102252
102251
|
return t.forEach((n) => {
|
|
102253
102252
|
let a = !1;
|
|
@@ -102255,7 +102254,7 @@ const vFt = "VitalFlowSheet-module_vitalFlowSheetDataTable__Nnc7i", EFt = "Vital
|
|
|
102255
102254
|
s.concepts.includes(n.name) && (e.has(i) || e.set(i, []), e.get(i).push(n), a = !0);
|
|
102256
102255
|
}), a || r.push(n);
|
|
102257
102256
|
}), { groupedConcepts: e, ungroupedConcepts: r };
|
|
102258
|
-
},
|
|
102257
|
+
}, _Ft = (t, e, r, n) => {
|
|
102259
102258
|
const a = [];
|
|
102260
102259
|
return t.forEach((i, s) => {
|
|
102261
102260
|
const l = USe[s], c = n(l.nameKey), u = {
|
|
@@ -102278,7 +102277,7 @@ const vFt = "VitalFlowSheet-module_vitalFlowSheetDataTable__Nnc7i", EFt = "Vital
|
|
|
102278
102277
|
u[`obs_${m}`] = H;
|
|
102279
102278
|
}), a.push(u);
|
|
102280
102279
|
}), a;
|
|
102281
|
-
},
|
|
102280
|
+
}, NFt = (t, e, r) => {
|
|
102282
102281
|
const n = [];
|
|
102283
102282
|
return t.forEach((a) => {
|
|
102284
102283
|
const i = Wd(a.fullName), s = {
|
|
@@ -102318,7 +102317,7 @@ const vFt = "VitalFlowSheet-module_vitalFlowSheetDataTable__Nnc7i", EFt = "Vital
|
|
|
102318
102317
|
};
|
|
102319
102318
|
}
|
|
102320
102319
|
}
|
|
102321
|
-
},
|
|
102320
|
+
}, CFt = [], zFt = ({
|
|
102322
102321
|
config: { latestCount: t, obsConcepts: e, groupBy: r }
|
|
102323
102322
|
}) => {
|
|
102324
102323
|
const { t: n } = dt(), a = gr(), {
|
|
@@ -102326,7 +102325,7 @@ const vFt = "VitalFlowSheet-module_vitalFlowSheetDataTable__Nnc7i", EFt = "Vital
|
|
|
102326
102325
|
loading: s,
|
|
102327
102326
|
error: l,
|
|
102328
102327
|
refetch: c
|
|
102329
|
-
} =
|
|
102328
|
+
} = MFt({
|
|
102330
102329
|
latestCount: t,
|
|
102331
102330
|
obsConcepts: e,
|
|
102332
102331
|
groupBy: r ?? "obstime"
|
|
@@ -102355,7 +102354,7 @@ ${n("TIME")}`
|
|
|
102355
102354
|
), d = ke(() => {
|
|
102356
102355
|
if (!i)
|
|
102357
102356
|
return { headers: [], rows: [] };
|
|
102358
|
-
const w =
|
|
102357
|
+
const w = bFt(i);
|
|
102359
102358
|
if (!i.conceptDetails || i.conceptDetails.length === 0)
|
|
102360
102359
|
return { headers: [], rows: [] };
|
|
102361
102360
|
if (!w.some((x) => {
|
|
@@ -102381,14 +102380,14 @@ ${n("TIME")}`
|
|
|
102381
102380
|
${N.formattedResult}`
|
|
102382
102381
|
};
|
|
102383
102382
|
})
|
|
102384
|
-
], { groupedConcepts: E, ungroupedConcepts: M } =
|
|
102383
|
+
], { groupedConcepts: E, ungroupedConcepts: M } = AFt(
|
|
102385
102384
|
i.conceptDetails
|
|
102386
|
-
), b =
|
|
102385
|
+
), b = _Ft(
|
|
102387
102386
|
E,
|
|
102388
102387
|
w,
|
|
102389
102388
|
i,
|
|
102390
102389
|
n
|
|
102391
|
-
), v =
|
|
102390
|
+
), v = NFt(
|
|
102392
102391
|
M,
|
|
102393
102392
|
w,
|
|
102394
102393
|
i
|
|
@@ -102442,7 +102441,7 @@ ${N.formattedResult}`
|
|
|
102442
102441
|
}
|
|
102443
102442
|
)
|
|
102444
102443
|
] }),
|
|
102445
|
-
b.complexData.position && /* @__PURE__ */ L("span", { children: n(
|
|
102444
|
+
b.complexData.position && /* @__PURE__ */ L("span", { children: n(xFt(b.complexData.position)) })
|
|
102446
102445
|
] }) : H.value.includes(`
|
|
102447
102446
|
`) ? /* @__PURE__ */ L("div", { children: H.value.split(`
|
|
102448
102447
|
`).map((y) => /* @__PURE__ */ L("div", { children: y }, y)) }) : H.value;
|
|
@@ -102469,18 +102468,18 @@ ${N.formattedResult}`
|
|
|
102469
102468
|
renderCell: m,
|
|
102470
102469
|
className: zr.vitalFlowSheetDataTable,
|
|
102471
102470
|
dataTestId: "vital-flow-sheet-table",
|
|
102472
|
-
sortable:
|
|
102471
|
+
sortable: CFt
|
|
102473
102472
|
}
|
|
102474
102473
|
);
|
|
102475
|
-
},
|
|
102474
|
+
}, TFt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
102476
102475
|
__proto__: null,
|
|
102477
|
-
default:
|
|
102476
|
+
default: zFt
|
|
102478
102477
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
102479
102478
|
var A3 = /* @__PURE__ */ ((t) => (t.LAUNCH_FORM = "launchForm", t))(A3 || {}), X6 = /* @__PURE__ */ ((t) => (t.VIEW_FORM = "viewForm", t))(X6 || {}), Q6 = /* @__PURE__ */ ((t) => (t.EDITABLE = "editable", t.VIEWABLE = "viewable", t))(Q6 || {});
|
|
102480
102479
|
const _3 = (t, e) => {
|
|
102481
102480
|
const r = t.fhirResource;
|
|
102482
102481
|
return r.input ? r.input.find((a) => a.type?.coding?.[0]?.code === e)?.valueString ?? null : null;
|
|
102483
|
-
},
|
|
102482
|
+
}, OFt = (t, e, r = Q6.EDITABLE) => {
|
|
102484
102483
|
if (!e || !t || t.length === 0)
|
|
102485
102484
|
return !1;
|
|
102486
102485
|
if (!e.privileges || e.privileges.length === 0)
|
|
@@ -102491,11 +102490,11 @@ const _3 = (t, e) => {
|
|
|
102491
102490
|
return e.privileges.some((a) => n.has(
|
|
102492
102491
|
a.privilegeName
|
|
102493
102492
|
) && a[r]);
|
|
102494
|
-
},
|
|
102493
|
+
}, LFt = (t, e) => t?.find(
|
|
102495
102494
|
(n) => n.taskCode === e
|
|
102496
102495
|
)?.actions?.some(
|
|
102497
102496
|
(n) => n.type === A3.LAUNCH_FORM
|
|
102498
|
-
) ?? !1,
|
|
102497
|
+
) ?? !1, RFt = (t, e, r, n) => {
|
|
102499
102498
|
if (t.type === A3.LAUNCH_FORM) {
|
|
102500
102499
|
const a = _3(
|
|
102501
102500
|
e,
|
|
@@ -102505,14 +102504,14 @@ const _3 = (t, e) => {
|
|
|
102505
102504
|
const i = r.find(
|
|
102506
102505
|
(s) => s.name.toLowerCase() === a.toLowerCase()
|
|
102507
102506
|
);
|
|
102508
|
-
return i ?
|
|
102507
|
+
return i ? OFt(
|
|
102509
102508
|
n,
|
|
102510
102509
|
i,
|
|
102511
102510
|
Q6.EDITABLE
|
|
102512
102511
|
) : !1;
|
|
102513
102512
|
}
|
|
102514
102513
|
return !1;
|
|
102515
|
-
},
|
|
102514
|
+
}, DFt = (t, e, r) => {
|
|
102516
102515
|
if (t.type === X6.VIEW_FORM) {
|
|
102517
102516
|
if (e.status !== "completed" || !_3(
|
|
102518
102517
|
e,
|
|
@@ -102529,7 +102528,7 @@ const _3 = (t, e) => {
|
|
|
102529
102528
|
);
|
|
102530
102529
|
}
|
|
102531
102530
|
return !1;
|
|
102532
|
-
},
|
|
102531
|
+
}, SFt = (t, e) => {
|
|
102533
102532
|
const r = _3(
|
|
102534
102533
|
e,
|
|
102535
102534
|
t.handlerConfig.formInputCode
|
|
@@ -102546,16 +102545,16 @@ const _3 = (t, e) => {
|
|
|
102546
102545
|
})
|
|
102547
102546
|
);
|
|
102548
102547
|
}, INe = (t, e) => {
|
|
102549
|
-
t.type === A3.LAUNCH_FORM &&
|
|
102550
|
-
},
|
|
102551
|
-
const { userPrivileges: r } = Xn(), { t: n } = dt(), a =
|
|
102548
|
+
t.type === A3.LAUNCH_FORM && SFt(t, e);
|
|
102549
|
+
}, $Ft = "ready", IFt = ({ task: t, taskConfig: e }) => {
|
|
102550
|
+
const { userPrivileges: r } = Xn(), { t: n } = dt(), a = LFt(e, t.code), { data: i = [], isLoading: s } = It({
|
|
102552
102551
|
queryKey: ["observationForms"],
|
|
102553
102552
|
queryFn: () => pbt(),
|
|
102554
102553
|
enabled: a
|
|
102555
|
-
}), l = ke(() => e ? e.find((d) => d.taskCode === t.code) : null, [e, t.code]), c = ke(() => !l?.actions || s ? [] : l.actions.filter((d) => Dn(r, d.requiredPrivileges) ?
|
|
102554
|
+
}), l = ke(() => e ? e.find((d) => d.taskCode === t.code) : null, [e, t.code]), c = ke(() => !l?.actions || s ? [] : l.actions.filter((d) => Dn(r, d.requiredPrivileges) ? RFt(d, t, i, r) : !1), [l, r, i, s, t]);
|
|
102556
102555
|
if (c.length === 0)
|
|
102557
102556
|
return null;
|
|
102558
|
-
const u = t.status !==
|
|
102557
|
+
const u = t.status !== $Ft;
|
|
102559
102558
|
if (c.length === 1) {
|
|
102560
102559
|
const d = c[0];
|
|
102561
102560
|
return /* @__PURE__ */ L(
|
|
@@ -102593,20 +102592,20 @@ const _3 = (t, e) => {
|
|
|
102593
102592
|
))
|
|
102594
102593
|
}
|
|
102595
102594
|
);
|
|
102596
|
-
},
|
|
102597
|
-
completedStatus:
|
|
102598
|
-
activeStatus:
|
|
102599
|
-
scheduledStatus:
|
|
102600
|
-
cancelledStatus:
|
|
102601
|
-
stoppedStatus:
|
|
102602
|
-
defaultStatus:
|
|
102603
|
-
tasksTableBody:
|
|
102604
|
-
emptyState:
|
|
102605
|
-
},
|
|
102606
|
-
encounterGroup:
|
|
102607
|
-
encounterHeader:
|
|
102608
|
-
loader:
|
|
102609
|
-
},
|
|
102595
|
+
}, kFt = "TaskList-module_completedStatus__ubQOk", ZFt = "TaskList-module_activeStatus__2Pku3", BFt = "TaskList-module_scheduledStatus__theUP", PFt = "TaskList-module_cancelledStatus__72eup", FFt = "TaskList-module_stoppedStatus__SQvC1", jFt = "TaskList-module_defaultStatus__cdKao", UFt = "TaskList-module_tasksTableBody__xNB7S", WFt = "TaskList-module_emptyState__D-JLC", u0 = {
|
|
102596
|
+
completedStatus: kFt,
|
|
102597
|
+
activeStatus: ZFt,
|
|
102598
|
+
scheduledStatus: BFt,
|
|
102599
|
+
cancelledStatus: PFt,
|
|
102600
|
+
stoppedStatus: FFt,
|
|
102601
|
+
defaultStatus: jFt,
|
|
102602
|
+
tasksTableBody: UFt,
|
|
102603
|
+
emptyState: WFt
|
|
102604
|
+
}, qFt = "ViewFormData-module_encounterGroup__tBcPb", KFt = "ViewFormData-module_encounterHeader__VAkdt", GFt = "ViewFormData-module_loader__UedTu", pu = {
|
|
102605
|
+
encounterGroup: qFt,
|
|
102606
|
+
encounterHeader: KFt,
|
|
102607
|
+
loader: GFt
|
|
102608
|
+
}, YFt = ({
|
|
102610
102609
|
open: t,
|
|
102611
102610
|
task: e,
|
|
102612
102611
|
view: r,
|
|
@@ -102695,7 +102694,7 @@ const _3 = (t, e) => {
|
|
|
102695
102694
|
}
|
|
102696
102695
|
);
|
|
102697
102696
|
}, kNe = (t, e, r, n) => t.type === X6.VIEW_FORM ? /* @__PURE__ */ L(
|
|
102698
|
-
|
|
102697
|
+
YFt,
|
|
102699
102698
|
{
|
|
102700
102699
|
open: !0,
|
|
102701
102700
|
task: e,
|
|
@@ -102703,11 +102702,11 @@ const _3 = (t, e) => {
|
|
|
102703
102702
|
patientUuid: r,
|
|
102704
102703
|
onClose: n
|
|
102705
102704
|
}
|
|
102706
|
-
) : null,
|
|
102705
|
+
) : null, JFt = ({
|
|
102707
102706
|
task: t,
|
|
102708
102707
|
taskConfig: e
|
|
102709
102708
|
}) => {
|
|
102710
|
-
const { userPrivileges: r } = Xn(), { t: n } = dt(), a = gr(), [i, s] = ve(null), l = ke(() => e ? e.find((u) => u.taskCode === t.code) : null, [e, t.code]), c = ke(() => l?.views ? l.views.filter((u) => Dn(r, u.requiredPrivileges) ?
|
|
102709
|
+
const { userPrivileges: r } = Xn(), { t: n } = dt(), a = gr(), [i, s] = ve(null), l = ke(() => e ? e.find((u) => u.taskCode === t.code) : null, [e, t.code]), c = ke(() => l?.views ? l.views.filter((u) => Dn(r, u.requiredPrivileges) ? DFt(u, t, r) : !1) : [], [l, r, t]);
|
|
102711
102710
|
if (c.length === 0)
|
|
102712
102711
|
return /* @__PURE__ */ L(p1, { children: "-" });
|
|
102713
102712
|
if (c.length === 1) {
|
|
@@ -102758,7 +102757,7 @@ const _3 = (t, e) => {
|
|
|
102758
102757
|
() => s(null)
|
|
102759
102758
|
)
|
|
102760
102759
|
] });
|
|
102761
|
-
},
|
|
102760
|
+
}, XFt = (t, e) => ({
|
|
102762
102761
|
id: t.id ?? "",
|
|
102763
102762
|
name: t.description ?? t.code?.text ?? "",
|
|
102764
102763
|
code: t.code?.coding?.[0]?.code ?? t.code?.text ?? "",
|
|
@@ -102767,12 +102766,12 @@ const _3 = (t, e) => {
|
|
|
102767
102766
|
completedOn: t.executionPeriod?.end ? gt(t.executionPeriod.end, e, !0).formattedResult : "-",
|
|
102768
102767
|
partOf: t.partOf?.map((r) => r.reference).filter((r) => !!r) ?? [],
|
|
102769
102768
|
fhirResource: t
|
|
102770
|
-
}),
|
|
102769
|
+
}), QFt = async (t, e, r) => {
|
|
102771
102770
|
const n = await Zbt(e, r);
|
|
102772
102771
|
return !n?.entry || n.entry.length === 0 ? [] : n.entry.map(
|
|
102773
|
-
(a) =>
|
|
102772
|
+
(a) => XFt(a.resource, t)
|
|
102774
102773
|
);
|
|
102775
|
-
},
|
|
102774
|
+
}, ejt = (t) => {
|
|
102776
102775
|
const e = new Set(t.map((a) => a.id)), r = /* @__PURE__ */ new Set();
|
|
102777
102776
|
t.forEach((a) => {
|
|
102778
102777
|
a.partOf?.forEach((i) => {
|
|
@@ -102784,13 +102783,13 @@ const _3 = (t, e) => {
|
|
|
102784
102783
|
return t.forEach((a) => {
|
|
102785
102784
|
r.has(a.id) || n.add(a.id);
|
|
102786
102785
|
}), n;
|
|
102787
|
-
},
|
|
102786
|
+
}, tjt = (t) => ({
|
|
102788
102787
|
completed: u0.completedStatus,
|
|
102789
102788
|
"in-progress": u0.activeStatus,
|
|
102790
102789
|
requested: u0.scheduledStatus,
|
|
102791
102790
|
cancelled: u0.cancelledStatus,
|
|
102792
102791
|
failed: u0.stoppedStatus
|
|
102793
|
-
})[t] || u0.defaultStatus,
|
|
102792
|
+
})[t] || u0.defaultStatus, rjt = (t) => t ? `TASK_STATUS_${tr(t)}` : "TASK_STATUS_UNKNOWN", WSe = ({
|
|
102794
102793
|
config: t,
|
|
102795
102794
|
episodeOfCareUuids: e,
|
|
102796
102795
|
encounterUuids: r,
|
|
@@ -102802,7 +102801,7 @@ const _3 = (t, e) => {
|
|
|
102802
102801
|
r
|
|
102803
102802
|
), { data: w, isLoading: g, error: H, refetch: E } = It({
|
|
102804
102803
|
queryKey: ["tasks", s, n, r],
|
|
102805
|
-
queryFn: () =>
|
|
102804
|
+
queryFn: () => QFt(i, s ?? "", n),
|
|
102806
102805
|
enabled: !!s && !m
|
|
102807
102806
|
});
|
|
102808
102807
|
fn(
|
|
@@ -102818,7 +102817,7 @@ const _3 = (t, e) => {
|
|
|
102818
102817
|
return [];
|
|
102819
102818
|
let y = w;
|
|
102820
102819
|
if (d && d.length > 0 && (y = y.filter((x) => d.includes(x.code))), u) {
|
|
102821
|
-
const x =
|
|
102820
|
+
const x = ejt(y);
|
|
102822
102821
|
y = y.filter((V) => x.has(V.id));
|
|
102823
102822
|
}
|
|
102824
102823
|
return y;
|
|
@@ -102847,21 +102846,21 @@ const _3 = (t, e) => {
|
|
|
102847
102846
|
return /* @__PURE__ */ L(
|
|
102848
102847
|
A2,
|
|
102849
102848
|
{
|
|
102850
|
-
label: i(
|
|
102851
|
-
dotClassName:
|
|
102849
|
+
label: i(rjt(y.status)),
|
|
102850
|
+
dotClassName: tjt(y.status),
|
|
102852
102851
|
testId: `task-status-${y.id}`
|
|
102853
102852
|
}
|
|
102854
102853
|
);
|
|
102855
102854
|
case "results":
|
|
102856
102855
|
return c?.taskConfig && /* @__PURE__ */ L(
|
|
102857
|
-
|
|
102856
|
+
JFt,
|
|
102858
102857
|
{
|
|
102859
102858
|
task: y,
|
|
102860
102859
|
taskConfig: c.taskConfig
|
|
102861
102860
|
}
|
|
102862
102861
|
);
|
|
102863
102862
|
case "actions":
|
|
102864
|
-
return c?.taskConfig && /* @__PURE__ */ L(
|
|
102863
|
+
return c?.taskConfig && /* @__PURE__ */ L(IFt, { task: y, taskConfig: c.taskConfig });
|
|
102865
102864
|
default:
|
|
102866
102865
|
return null;
|
|
102867
102866
|
}
|
|
@@ -102882,27 +102881,27 @@ const _3 = (t, e) => {
|
|
|
102882
102881
|
className: u0.tasksTableBody
|
|
102883
102882
|
}
|
|
102884
102883
|
) });
|
|
102885
|
-
},
|
|
102884
|
+
}, njt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
102886
102885
|
__proto__: null,
|
|
102887
102886
|
default: WSe
|
|
102888
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
102889
|
-
inProgressStatus:
|
|
102890
|
-
completedStatus:
|
|
102891
|
-
revokedStatus:
|
|
102892
|
-
unknownStatus:
|
|
102893
|
-
requestName:
|
|
102894
|
-
serviceRequestTableBody:
|
|
102895
|
-
customAccordianItem:
|
|
102896
|
-
expandableContentSpacer:
|
|
102897
|
-
expandedContent:
|
|
102898
|
-
}, qSe = (t, e, r) => ["genericServiceRequest", t, e, r],
|
|
102887
|
+
}, Symbol.toStringTag, { value: "Module" })), ojt = "GenericServiceRequestTable-module_inProgressStatus__qUqDT", ajt = "GenericServiceRequestTable-module_completedStatus__u1AND", ijt = "GenericServiceRequestTable-module_revokedStatus__3gz6-", sjt = "GenericServiceRequestTable-module_unknownStatus__7Bdzo", ljt = "GenericServiceRequestTable-module_requestName__94fyH", cjt = "GenericServiceRequestTable-module_serviceRequestTableBody__VaOHb", ujt = "GenericServiceRequestTable-module_customAccordianItem__1PBx4", djt = "GenericServiceRequestTable-module_expandableContentSpacer__Mf8Da", hjt = "GenericServiceRequestTable-module_expandedContent__msGOL", U0 = {
|
|
102888
|
+
inProgressStatus: ojt,
|
|
102889
|
+
completedStatus: ajt,
|
|
102890
|
+
revokedStatus: ijt,
|
|
102891
|
+
unknownStatus: sjt,
|
|
102892
|
+
requestName: ljt,
|
|
102893
|
+
serviceRequestTableBody: cjt,
|
|
102894
|
+
customAccordianItem: ujt,
|
|
102895
|
+
expandableContentSpacer: djt,
|
|
102896
|
+
expandedContent: hjt
|
|
102897
|
+
}, qSe = (t, e, r) => ["genericServiceRequest", t, e, r], pjt = async (t, e, r) => {
|
|
102899
102898
|
const n = await A6(
|
|
102900
102899
|
t,
|
|
102901
102900
|
e,
|
|
102902
102901
|
r
|
|
102903
102902
|
);
|
|
102904
102903
|
return PZt(n);
|
|
102905
|
-
},
|
|
102904
|
+
}, fjt = ({
|
|
102906
102905
|
config: t,
|
|
102907
102906
|
episodeOfCareUuids: e,
|
|
102908
102907
|
encounterUuids: r,
|
|
@@ -102933,7 +102932,7 @@ const _3 = (t, e) => {
|
|
|
102933
102932
|
r
|
|
102934
102933
|
),
|
|
102935
102934
|
enabled: !!i && !!m,
|
|
102936
|
-
queryFn: () =>
|
|
102935
|
+
queryFn: () => pjt(m, i, r)
|
|
102937
102936
|
});
|
|
102938
102937
|
fn(
|
|
102939
102938
|
(j) => {
|
|
@@ -103111,30 +103110,30 @@ const _3 = (t, e) => {
|
|
|
103111
103110
|
}) })
|
|
103112
103111
|
}
|
|
103113
103112
|
);
|
|
103114
|
-
},
|
|
103113
|
+
}, mjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
103115
103114
|
__proto__: null,
|
|
103116
|
-
default:
|
|
103115
|
+
default: fjt,
|
|
103117
103116
|
genericServiceRequestQueryKeys: qSe
|
|
103118
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
103119
|
-
outcome:
|
|
103120
|
-
table:
|
|
103121
|
-
},
|
|
103117
|
+
}, Symbol.toStringTag, { value: "Module" })), wjt = "PatientProgramsTable-module_outcome__P3f1s", gjt = "PatientProgramsTable-module_table__yS2Jn", Ds = {
|
|
103118
|
+
outcome: wjt,
|
|
103119
|
+
table: gjt
|
|
103120
|
+
}, vjt = [
|
|
103122
103121
|
"programName",
|
|
103123
103122
|
"startDate",
|
|
103124
103123
|
"endDate",
|
|
103125
103124
|
"outcome",
|
|
103126
103125
|
"state"
|
|
103127
103126
|
];
|
|
103128
|
-
function
|
|
103129
|
-
return t ? t.map((e) => e.name).filter((e) => !
|
|
103127
|
+
function Ejt(t) {
|
|
103128
|
+
return t ? t.map((e) => e.name).filter((e) => !vjt.includes(e)) : [];
|
|
103130
103129
|
}
|
|
103131
|
-
function
|
|
103130
|
+
function yjt(t, e) {
|
|
103132
103131
|
return t.map((r) => ({
|
|
103133
103132
|
key: r.name,
|
|
103134
103133
|
header: e(`PROGRAMS_TABLE_HEADER_${tr(r.name)}`)
|
|
103135
103134
|
}));
|
|
103136
103135
|
}
|
|
103137
|
-
function
|
|
103136
|
+
function Vjt(t, e) {
|
|
103138
103137
|
return !t.results || t.results.length === 0 ? [] : t.results.map((r) => ({
|
|
103139
103138
|
id: r.uuid,
|
|
103140
103139
|
uuid: r.uuid,
|
|
@@ -103147,9 +103146,9 @@ function Hjt(t, e) {
|
|
|
103147
103146
|
attributes: zDe(r, e)
|
|
103148
103147
|
}));
|
|
103149
103148
|
}
|
|
103150
|
-
const
|
|
103149
|
+
const Hjt = ({ config: t }) => {
|
|
103151
103150
|
const { t: e } = dt(), r = gr(), n = Number(t?.pageSize) || 5, [a, i] = ve(1), [s, l] = ve(n), c = t?.fields ?? [], u = ke(
|
|
103152
|
-
() =>
|
|
103151
|
+
() => Ejt(c),
|
|
103153
103152
|
[c]
|
|
103154
103153
|
), { data: d, isLoading: m, isError: w } = It({
|
|
103155
103154
|
queryKey: [
|
|
@@ -103168,7 +103167,7 @@ const Mjt = ({ config: t }) => {
|
|
|
103168
103167
|
a
|
|
103169
103168
|
);
|
|
103170
103169
|
return {
|
|
103171
|
-
programs:
|
|
103170
|
+
programs: Vjt(
|
|
103172
103171
|
{ results: v.programs },
|
|
103173
103172
|
u
|
|
103174
103173
|
),
|
|
@@ -103185,7 +103184,7 @@ const Mjt = ({ config: t }) => {
|
|
|
103185
103184
|
},
|
|
103186
103185
|
[s]
|
|
103187
103186
|
), H = ke(
|
|
103188
|
-
() =>
|
|
103187
|
+
() => yjt(c, e),
|
|
103189
103188
|
[c, e]
|
|
103190
103189
|
), E = ke(() => [...d?.programs ?? []].sort((y, x) => !y.dateEnrolled && !x.dateEnrolled ? 0 : y.dateEnrolled ? x.dateEnrolled ? new Date(x.dateEnrolled).getTime() - new Date(y.dateEnrolled).getTime() : -1 : 1), [d?.programs]), M = (v, y) => {
|
|
103191
103190
|
const x = v.attributes[y];
|
|
@@ -103282,10 +103281,10 @@ const Mjt = ({ config: t }) => {
|
|
|
103282
103281
|
)
|
|
103283
103282
|
}
|
|
103284
103283
|
);
|
|
103285
|
-
},
|
|
103284
|
+
}, Mjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
103286
103285
|
__proto__: null,
|
|
103287
|
-
default:
|
|
103288
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
103286
|
+
default: Hjt
|
|
103287
|
+
}, Symbol.toStringTag, { value: "Module" })), bjt = "http://fhir.bahmni.org/ext/immunization/administeredProduct", KSe = "EP", xjt = "OP", Ajt = "Add Immunizations", ZNe = [
|
|
103289
103288
|
"code",
|
|
103290
103289
|
"doseSequence",
|
|
103291
103290
|
"drugName",
|
|
@@ -103305,35 +103304,35 @@ const Mjt = ({ config: t }) => {
|
|
|
103305
103304
|
"date",
|
|
103306
103305
|
"recordedOn",
|
|
103307
103306
|
"recordedBy"
|
|
103308
|
-
],
|
|
103307
|
+
], _jt = {
|
|
103309
103308
|
code: !0,
|
|
103310
103309
|
doseSequence: !1,
|
|
103311
103310
|
drugName: !1,
|
|
103312
103311
|
administeredOn: !0,
|
|
103313
103312
|
administeredLocation: !0
|
|
103314
|
-
},
|
|
103313
|
+
}, Njt = {
|
|
103315
103314
|
code: !0,
|
|
103316
103315
|
reason: !1,
|
|
103317
103316
|
date: !0,
|
|
103318
103317
|
recordedOn: !0,
|
|
103319
103318
|
recordedBy: !0
|
|
103320
|
-
},
|
|
103321
|
-
widget:
|
|
103322
|
-
header:
|
|
103323
|
-
code:
|
|
103324
|
-
table:
|
|
103325
|
-
notAdministeredTable:
|
|
103326
|
-
expandedRowContent:
|
|
103319
|
+
}, Cjt = "Immunizations-module_widget__xuaMo", zjt = "Immunizations-module_header__Ia4P3", Tjt = "Immunizations-module_code__1Qw2U", Ojt = "Immunizations-module_table__xoUWF", Ljt = "Immunizations-module_notAdministeredTable__EBzdR", Rjt = "Immunizations-module_expandedRowContent__-xLrq", v0 = {
|
|
103320
|
+
widget: Cjt,
|
|
103321
|
+
header: zjt,
|
|
103322
|
+
code: Tjt,
|
|
103323
|
+
table: Ojt,
|
|
103324
|
+
notAdministeredTable: Ljt,
|
|
103325
|
+
expandedRowContent: Rjt
|
|
103327
103326
|
};
|
|
103328
103327
|
function qd(t, e) {
|
|
103329
103328
|
return t.performer?.find(
|
|
103330
103329
|
(r) => r.function?.coding?.some((n) => n.code === e)
|
|
103331
103330
|
)?.actor?.display ?? null;
|
|
103332
103331
|
}
|
|
103333
|
-
function
|
|
103334
|
-
return t.extension?.find((e) => e.url ===
|
|
103332
|
+
function Djt(t) {
|
|
103333
|
+
return t.extension?.find((e) => e.url === bjt)?.valueReference?.display ?? null;
|
|
103335
103334
|
}
|
|
103336
|
-
function
|
|
103335
|
+
function Sjt(t) {
|
|
103337
103336
|
const e = t.protocolApplied?.[0]?.doseNumberPositiveInt ?? t.protocolApplied?.[0]?.doseNumberString;
|
|
103338
103337
|
return e ? e.toString() : null;
|
|
103339
103338
|
}
|
|
@@ -103351,13 +103350,13 @@ function YSe(t, e) {
|
|
|
103351
103350
|
sortable: e[r] ?? !1
|
|
103352
103351
|
}));
|
|
103353
103352
|
}
|
|
103354
|
-
function
|
|
103355
|
-
const e = t.route?.coding?.[0]?.display ?? null, r = t.site?.coding?.[0]?.display ?? null, n = t.manufacturer?.display ?? null, a = t.lotNumber ?? null, i = t.expirationDate ?? null, s = qd(t, KSe), l = qd(t,
|
|
103353
|
+
function $jt(t) {
|
|
103354
|
+
const e = t.route?.coding?.[0]?.display ?? null, r = t.site?.coding?.[0]?.display ?? null, n = t.manufacturer?.display ?? null, a = t.lotNumber ?? null, i = t.expirationDate ?? null, s = qd(t, KSe), l = qd(t, xjt), c = t.note?.[0]?.text ?? null;
|
|
103356
103355
|
return {
|
|
103357
103356
|
id: t.id ?? "",
|
|
103358
103357
|
code: t.vaccineCode?.coding?.[0]?.display ?? null,
|
|
103359
|
-
doseSequence:
|
|
103360
|
-
drugName:
|
|
103358
|
+
doseSequence: Sjt(t),
|
|
103359
|
+
drugName: Djt(t) ?? null,
|
|
103361
103360
|
administeredOn: t.occurrenceDateTime ?? null,
|
|
103362
103361
|
administeredLocation: t.location?.display ?? null,
|
|
103363
103362
|
route: e,
|
|
@@ -103371,7 +103370,7 @@ function Ijt(t) {
|
|
|
103371
103370
|
hasDetails: !!(e ?? r ?? n ?? a ?? i ?? s ?? l)
|
|
103372
103371
|
};
|
|
103373
103372
|
}
|
|
103374
|
-
function
|
|
103373
|
+
function Ijt(t) {
|
|
103375
103374
|
return {
|
|
103376
103375
|
id: t.id ?? "",
|
|
103377
103376
|
code: t.vaccineCode?.coding?.[0]?.display ?? null,
|
|
@@ -103382,13 +103381,13 @@ function kjt(t) {
|
|
|
103382
103381
|
notes: t.note?.[0]?.text ?? null
|
|
103383
103382
|
};
|
|
103384
103383
|
}
|
|
103385
|
-
const
|
|
103384
|
+
const kjt = async (t) => (await ODe(t, "completed")).map($jt), FNe = ({
|
|
103386
103385
|
patientUUID: t,
|
|
103387
103386
|
config: e
|
|
103388
103387
|
}) => {
|
|
103389
103388
|
const { t: r } = dt(), { data: n, isLoading: a, isError: i, refetch: s } = It({
|
|
103390
103389
|
queryKey: ["immunizations", t, "completed"],
|
|
103391
|
-
queryFn: () =>
|
|
103390
|
+
queryFn: () => kjt(t),
|
|
103392
103391
|
enabled: !!t
|
|
103393
103392
|
});
|
|
103394
103393
|
fn(
|
|
@@ -103401,7 +103400,7 @@ const Zjt = async (t) => (await ODe(t, "completed")).map(Ijt), FNe = ({
|
|
|
103401
103400
|
() => GSe(e.columns, r),
|
|
103402
103401
|
[e.columns, r]
|
|
103403
103402
|
), c = ke(
|
|
103404
|
-
() => YSe(e.columns,
|
|
103403
|
+
() => YSe(e.columns, _jt),
|
|
103405
103404
|
[e.columns]
|
|
103406
103405
|
), u = (m, w) => w === "code" ? /* @__PURE__ */ _e("div", { className: v0.code, children: [
|
|
103407
103406
|
/* @__PURE__ */ L("span", { children: m.code ?? "-" }),
|
|
@@ -103491,13 +103490,13 @@ const Zjt = async (t) => (await ODe(t, "completed")).map(Ijt), FNe = ({
|
|
|
103491
103490
|
)
|
|
103492
103491
|
}
|
|
103493
103492
|
);
|
|
103494
|
-
},
|
|
103493
|
+
}, Zjt = async (t) => (await ODe(t, "not-done")).map(Ijt), jNe = ({
|
|
103495
103494
|
patientUUID: t,
|
|
103496
103495
|
config: e
|
|
103497
103496
|
}) => {
|
|
103498
103497
|
const { t: r } = dt(), { data: n, isLoading: a, isError: i, refetch: s } = It({
|
|
103499
103498
|
queryKey: ["immunizations", t, "not-done"],
|
|
103500
|
-
queryFn: () =>
|
|
103499
|
+
queryFn: () => Zjt(t),
|
|
103501
103500
|
enabled: !!t
|
|
103502
103501
|
});
|
|
103503
103502
|
fn(
|
|
@@ -103514,7 +103513,7 @@ const Zjt = async (t) => (await ODe(t, "completed")).map(Ijt), FNe = ({
|
|
|
103514
103513
|
), c = ke(
|
|
103515
103514
|
() => YSe(
|
|
103516
103515
|
e.columns,
|
|
103517
|
-
|
|
103516
|
+
Njt
|
|
103518
103517
|
),
|
|
103519
103518
|
[e.columns]
|
|
103520
103519
|
), u = (d, m) => m === "code" ? /* @__PURE__ */ _e("div", { className: v0.code, children: [
|
|
@@ -103552,7 +103551,7 @@ const Zjt = async (t) => (await ODe(t, "completed")).map(Ijt), FNe = ({
|
|
|
103552
103551
|
)
|
|
103553
103552
|
}
|
|
103554
103553
|
);
|
|
103555
|
-
},
|
|
103554
|
+
}, Bjt = (t) => {
|
|
103556
103555
|
switch (t) {
|
|
103557
103556
|
case "completed":
|
|
103558
103557
|
return "IMMUNIZATION_HISTORY_WIDGET_ADMINISTERED_TAB_TITLE";
|
|
@@ -103561,7 +103560,7 @@ const Zjt = async (t) => (await ODe(t, "completed")).map(Ijt), FNe = ({
|
|
|
103561
103560
|
default:
|
|
103562
103561
|
return "IMMUNIZATION_HISTORY_WIDGET_TITLE";
|
|
103563
103562
|
}
|
|
103564
|
-
},
|
|
103563
|
+
}, Pjt = ({ config: t }) => {
|
|
103565
103564
|
const { t: e } = dt(), r = gr(), [n, a] = ve(0), i = t, s = i?.status, l = i?.encounterType, c = i?.startEncounterPrivilege, u = i?.administeredFields, d = i?.notAdministeredFields, m = {
|
|
103566
103565
|
columns: u ? u.filter((v) => ZNe.includes(v)) : ZNe,
|
|
103567
103566
|
expandedFields: u ? u.filter(
|
|
@@ -103572,7 +103571,7 @@ const Zjt = async (t) => (await ODe(t, "completed")).map(Ijt), FNe = ({
|
|
|
103572
103571
|
(v) => PNe.includes(v)
|
|
103573
103572
|
) : PNe
|
|
103574
103573
|
}, g = H3(
|
|
103575
|
-
c ??
|
|
103574
|
+
c ?? Ajt
|
|
103576
103575
|
), H = () => s === "completed" || s === "not-done" ? i?.inputControlKey : n === 0 ? i?.administeredInputControlKey : i?.notAdministeredInputControlKey, E = () => s === "completed" || s === "not-done" ? i?.editTitle : n === 0 ? i?.administeredEditTitle : i?.notAdministeredEditTitle, M = () => {
|
|
103577
103576
|
const v = H(), y = E();
|
|
103578
103577
|
globalThis.dispatchEvent(
|
|
@@ -103659,7 +103658,7 @@ const Zjt = async (t) => (await ODe(t, "completed")).map(Ijt), FNe = ({
|
|
|
103659
103658
|
{
|
|
103660
103659
|
id: "immunization-history-widget-title",
|
|
103661
103660
|
"data-testid": "immunization-history-widget-title-test-id",
|
|
103662
|
-
children: e(i?.title ??
|
|
103661
|
+
children: e(i?.title ?? Bjt(s))
|
|
103663
103662
|
}
|
|
103664
103663
|
),
|
|
103665
103664
|
g && l && /* @__PURE__ */ L(
|
|
@@ -103690,27 +103689,27 @@ const Zjt = async (t) => (await ODe(t, "completed")).map(Ijt), FNe = ({
|
|
|
103690
103689
|
]
|
|
103691
103690
|
}
|
|
103692
103691
|
);
|
|
103693
|
-
},
|
|
103692
|
+
}, Fjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
103694
103693
|
__proto__: null,
|
|
103695
|
-
default:
|
|
103694
|
+
default: Pjt
|
|
103696
103695
|
}, Symbol.toStringTag, { value: "Module" })), JSe = [
|
|
103697
103696
|
"programName",
|
|
103698
103697
|
"startDate",
|
|
103699
103698
|
"endDate",
|
|
103700
103699
|
"outcome",
|
|
103701
103700
|
"state"
|
|
103702
|
-
],
|
|
103703
|
-
error:
|
|
103704
|
-
loading:
|
|
103705
|
-
grid:
|
|
103706
|
-
header:
|
|
103707
|
-
title:
|
|
103708
|
-
programDetails:
|
|
103701
|
+
], jjt = "Edit Patient Programs", Ujt = "ProgramDetails-module_error__KOaxf", Wjt = "ProgramDetails-module_loading__-c-ec", qjt = "ProgramDetails-module_grid__Anpu7", Kjt = "ProgramDetails-module_header__1QY-2", Gjt = "ProgramDetails-module_title__VYDAP", Yjt = "ProgramDetails-module_programDetails__PPdA7", W0 = {
|
|
103702
|
+
error: Ujt,
|
|
103703
|
+
loading: Wjt,
|
|
103704
|
+
grid: qjt,
|
|
103705
|
+
header: Kjt,
|
|
103706
|
+
title: Gjt,
|
|
103707
|
+
programDetails: Yjt
|
|
103709
103708
|
};
|
|
103710
|
-
function
|
|
103709
|
+
function Jjt(t) {
|
|
103711
103710
|
return t ? t.map((e) => e.name).filter((e) => !JSe.includes(e)) : [];
|
|
103712
103711
|
}
|
|
103713
|
-
function
|
|
103712
|
+
function Xjt(t, e) {
|
|
103714
103713
|
return {
|
|
103715
103714
|
id: t.uuid,
|
|
103716
103715
|
uuid: t.uuid,
|
|
@@ -103727,22 +103726,22 @@ function Qjt(t, e) {
|
|
|
103727
103726
|
}))
|
|
103728
103727
|
};
|
|
103729
103728
|
}
|
|
103730
|
-
const
|
|
103729
|
+
const Qjt = (t) => ["programs", t], eUt = async (t, e) => {
|
|
103731
103730
|
const r = await Ebt(t);
|
|
103732
|
-
return
|
|
103733
|
-
},
|
|
103731
|
+
return Xjt(r, e);
|
|
103732
|
+
}, $Yt = ({
|
|
103734
103733
|
programUUID: t,
|
|
103735
103734
|
config: e
|
|
103736
103735
|
}) => {
|
|
103737
103736
|
const { t: r } = dt(), { addNotification: n } = G1(), [a, i] = ve(!1), { userPrivileges: s } = Xn(), l = Dn(
|
|
103738
103737
|
s,
|
|
103739
|
-
|
|
103738
|
+
jjt
|
|
103740
103739
|
), c = ke(
|
|
103741
|
-
() =>
|
|
103740
|
+
() => Jjt(e?.fields),
|
|
103742
103741
|
[e?.fields]
|
|
103743
103742
|
), { data: u, isLoading: d, isError: m, refetch: w } = It({
|
|
103744
|
-
queryKey:
|
|
103745
|
-
queryFn: () =>
|
|
103743
|
+
queryKey: Qjt(t),
|
|
103744
|
+
queryFn: () => eUt(t, c),
|
|
103746
103745
|
enabled: !!t
|
|
103747
103746
|
}), g = (y) => {
|
|
103748
103747
|
i(!0), ybt(t, y).then(() => {
|
|
@@ -103919,18 +103918,18 @@ const eUt = (t) => ["programs", t], tUt = async (t, e) => {
|
|
|
103919
103918
|
}
|
|
103920
103919
|
);
|
|
103921
103920
|
};
|
|
103922
|
-
var UNe = 1,
|
|
103921
|
+
var UNe = 1, tUt = 0.9, rUt = 0.8, nUt = 0.17, fu = 0.1, mu = 0.999, oUt = 0.9999, aUt = 0.99, iUt = /[\\\/_+.#"@\[\(\{&]/, sUt = /[\\\/_+.#"@\[\(\{&]/g, lUt = /[\s-]/, XSe = /[\s-]/g;
|
|
103923
103922
|
function Kd(t, e, r, n, a, i, s) {
|
|
103924
|
-
if (i === e.length) return a === t.length ? UNe :
|
|
103923
|
+
if (i === e.length) return a === t.length ? UNe : aUt;
|
|
103925
103924
|
var l = `${a},${i}`;
|
|
103926
103925
|
if (s[l] !== void 0) return s[l];
|
|
103927
|
-
for (var c = n.charAt(i), u = r.indexOf(c, a), d = 0, m, w, g, H; u >= 0; ) m = Kd(t, e, r, n, u + 1, i + 1, s), m > d && (u === a ? m *= UNe :
|
|
103926
|
+
for (var c = n.charAt(i), u = r.indexOf(c, a), d = 0, m, w, g, H; u >= 0; ) m = Kd(t, e, r, n, u + 1, i + 1, s), m > d && (u === a ? m *= UNe : iUt.test(t.charAt(u - 1)) ? (m *= rUt, g = t.slice(a, u - 1).match(sUt), g && a > 0 && (m *= Math.pow(mu, g.length))) : lUt.test(t.charAt(u - 1)) ? (m *= tUt, H = t.slice(a, u - 1).match(XSe), H && a > 0 && (m *= Math.pow(mu, H.length))) : (m *= nUt, a > 0 && (m *= Math.pow(mu, u - a))), t.charAt(u) !== e.charAt(i) && (m *= oUt)), (m < fu && r.charAt(u - 1) === n.charAt(i + 1) || n.charAt(i + 1) === n.charAt(i) && r.charAt(u - 1) !== n.charAt(i)) && (w = Kd(t, e, r, n, u + 1, i + 2, s), w * fu > m && (m = w * fu)), m > d && (d = m), u = r.indexOf(c, u + 1);
|
|
103928
103927
|
return s[l] = d, d;
|
|
103929
103928
|
}
|
|
103930
103929
|
function WNe(t) {
|
|
103931
103930
|
return t.toLowerCase().replace(XSe, " ");
|
|
103932
103931
|
}
|
|
103933
|
-
function
|
|
103932
|
+
function cUt(t, e, r) {
|
|
103934
103933
|
return t = r && r.length > 0 ? `${t + " " + r.join(" ")}` : t, Kd(t, e, WNe(t), WNe(e), 0, 0, {});
|
|
103935
103934
|
}
|
|
103936
103935
|
function E0(t, e, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
@@ -103963,7 +103962,7 @@ function L0(...t) {
|
|
|
103963
103962
|
function _2(...t) {
|
|
103964
103963
|
return ue.useCallback(L0(...t), t);
|
|
103965
103964
|
}
|
|
103966
|
-
function
|
|
103965
|
+
function uUt(t, e) {
|
|
103967
103966
|
const r = ue.createContext(e), n = (i) => {
|
|
103968
103967
|
const { children: s, ...l } = i, c = ue.useMemo(() => l, Object.values(l));
|
|
103969
103968
|
return /* @__PURE__ */ L(r.Provider, { value: c, children: s });
|
|
@@ -103977,7 +103976,7 @@ function dUt(t, e) {
|
|
|
103977
103976
|
}
|
|
103978
103977
|
return [n, a];
|
|
103979
103978
|
}
|
|
103980
|
-
function
|
|
103979
|
+
function dUt(t, e = []) {
|
|
103981
103980
|
let r = [];
|
|
103982
103981
|
function n(i, s) {
|
|
103983
103982
|
const l = ue.createContext(s), c = r.length;
|
|
@@ -104005,9 +104004,9 @@ function hUt(t, e = []) {
|
|
|
104005
104004
|
);
|
|
104006
104005
|
};
|
|
104007
104006
|
};
|
|
104008
|
-
return a.scopeName = t, [n,
|
|
104007
|
+
return a.scopeName = t, [n, hUt(a, ...e)];
|
|
104009
104008
|
}
|
|
104010
|
-
function
|
|
104009
|
+
function hUt(...t) {
|
|
104011
104010
|
const e = t[0];
|
|
104012
104011
|
if (t.length === 1) return e;
|
|
104013
104012
|
const r = () => {
|
|
@@ -104026,23 +104025,23 @@ function pUt(...t) {
|
|
|
104026
104025
|
return r.scopeName = e.scopeName, r;
|
|
104027
104026
|
}
|
|
104028
104027
|
var ja = globalThis?.document ? ue.useLayoutEffect : () => {
|
|
104029
|
-
},
|
|
104030
|
-
}),
|
|
104028
|
+
}, pUt = ue[" useId ".trim().toString()] || (() => {
|
|
104029
|
+
}), fUt = 0;
|
|
104031
104030
|
function Wn(t) {
|
|
104032
|
-
const [e, r] = ue.useState(
|
|
104031
|
+
const [e, r] = ue.useState(pUt());
|
|
104033
104032
|
return ja(() => {
|
|
104034
|
-
r((n) => n ?? String(
|
|
104033
|
+
r((n) => n ?? String(fUt++));
|
|
104035
104034
|
}, [t]), e ? `radix-${e}` : "";
|
|
104036
104035
|
}
|
|
104037
|
-
var
|
|
104038
|
-
function
|
|
104036
|
+
var mUt = ue[" useInsertionEffect ".trim().toString()] || ja;
|
|
104037
|
+
function wUt({
|
|
104039
104038
|
prop: t,
|
|
104040
104039
|
defaultProp: e,
|
|
104041
104040
|
onChange: r = () => {
|
|
104042
104041
|
},
|
|
104043
104042
|
caller: n
|
|
104044
104043
|
}) {
|
|
104045
|
-
const [a, i, s] =
|
|
104044
|
+
const [a, i, s] = gUt({
|
|
104046
104045
|
defaultProp: e,
|
|
104047
104046
|
onChange: r
|
|
104048
104047
|
}), l = t !== void 0, c = l ? t : a;
|
|
@@ -104058,7 +104057,7 @@ function gUt({
|
|
|
104058
104057
|
const u = ue.useCallback(
|
|
104059
104058
|
(d) => {
|
|
104060
104059
|
if (l) {
|
|
104061
|
-
const m =
|
|
104060
|
+
const m = vUt(d) ? d(t) : d;
|
|
104062
104061
|
m !== t && s.current?.(m);
|
|
104063
104062
|
} else
|
|
104064
104063
|
i(d);
|
|
@@ -104067,24 +104066,24 @@ function gUt({
|
|
|
104067
104066
|
);
|
|
104068
104067
|
return [c, u];
|
|
104069
104068
|
}
|
|
104070
|
-
function
|
|
104069
|
+
function gUt({
|
|
104071
104070
|
defaultProp: t,
|
|
104072
104071
|
onChange: e
|
|
104073
104072
|
}) {
|
|
104074
104073
|
const [r, n] = ue.useState(t), a = ue.useRef(r), i = ue.useRef(e);
|
|
104075
|
-
return
|
|
104074
|
+
return mUt(() => {
|
|
104076
104075
|
i.current = e;
|
|
104077
104076
|
}, [e]), ue.useEffect(() => {
|
|
104078
104077
|
a.current !== r && (i.current?.(r), a.current = r);
|
|
104079
104078
|
}, [r, a]), [r, n, i];
|
|
104080
104079
|
}
|
|
104081
|
-
function
|
|
104080
|
+
function vUt(t) {
|
|
104082
104081
|
return typeof t == "function";
|
|
104083
104082
|
}
|
|
104084
104083
|
// @__NO_SIDE_EFFECTS__
|
|
104085
104084
|
function QSe(t) {
|
|
104086
|
-
const e = /* @__PURE__ */
|
|
104087
|
-
const { children: i, ...s } = n, l = ue.Children.toArray(i), c = l.find(
|
|
104085
|
+
const e = /* @__PURE__ */ EUt(t), r = ue.forwardRef((n, a) => {
|
|
104086
|
+
const { children: i, ...s } = n, l = ue.Children.toArray(i), c = l.find(VUt);
|
|
104088
104087
|
if (c) {
|
|
104089
104088
|
const u = c.props.children, d = l.map((m) => m === c ? ue.Children.count(u) > 1 ? ue.Children.only(null) : ue.isValidElement(u) ? u.props.children : null : m);
|
|
104090
104089
|
return /* @__PURE__ */ L(e, { ...s, ref: a, children: ue.isValidElement(u) ? ue.cloneElement(u, void 0, d) : null });
|
|
@@ -104094,22 +104093,22 @@ function QSe(t) {
|
|
|
104094
104093
|
return r.displayName = `${t}.Slot`, r;
|
|
104095
104094
|
}
|
|
104096
104095
|
// @__NO_SIDE_EFFECTS__
|
|
104097
|
-
function
|
|
104096
|
+
function EUt(t) {
|
|
104098
104097
|
const e = ue.forwardRef((r, n) => {
|
|
104099
104098
|
const { children: a, ...i } = r;
|
|
104100
104099
|
if (ue.isValidElement(a)) {
|
|
104101
|
-
const s =
|
|
104100
|
+
const s = MUt(a), l = HUt(i, a.props);
|
|
104102
104101
|
return a.type !== ue.Fragment && (l.ref = n ? L0(n, s) : s), ue.cloneElement(a, l);
|
|
104103
104102
|
}
|
|
104104
104103
|
return ue.Children.count(a) > 1 ? ue.Children.only(null) : null;
|
|
104105
104104
|
});
|
|
104106
104105
|
return e.displayName = `${t}.SlotClone`, e;
|
|
104107
104106
|
}
|
|
104108
|
-
var
|
|
104109
|
-
function
|
|
104110
|
-
return ue.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId ===
|
|
104107
|
+
var yUt = /* @__PURE__ */ Symbol("radix.slottable");
|
|
104108
|
+
function VUt(t) {
|
|
104109
|
+
return ue.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === yUt;
|
|
104111
104110
|
}
|
|
104112
|
-
function
|
|
104111
|
+
function HUt(t, e) {
|
|
104113
104112
|
const r = { ...e };
|
|
104114
104113
|
for (const n in e) {
|
|
104115
104114
|
const a = t[n], i = e[n];
|
|
@@ -104120,11 +104119,11 @@ function MUt(t, e) {
|
|
|
104120
104119
|
}
|
|
104121
104120
|
return { ...t, ...r };
|
|
104122
104121
|
}
|
|
104123
|
-
function
|
|
104122
|
+
function MUt(t) {
|
|
104124
104123
|
let e = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, r = e && "isReactWarning" in e && e.isReactWarning;
|
|
104125
104124
|
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);
|
|
104126
104125
|
}
|
|
104127
|
-
var
|
|
104126
|
+
var bUt = [
|
|
104128
104127
|
"a",
|
|
104129
104128
|
"button",
|
|
104130
104129
|
"div",
|
|
@@ -104142,14 +104141,14 @@ var xUt = [
|
|
|
104142
104141
|
"span",
|
|
104143
104142
|
"svg",
|
|
104144
104143
|
"ul"
|
|
104145
|
-
], Qn =
|
|
104144
|
+
], Qn = bUt.reduce((t, e) => {
|
|
104146
104145
|
const r = /* @__PURE__ */ QSe(`Primitive.${e}`), n = ue.forwardRef((a, i) => {
|
|
104147
104146
|
const { asChild: s, ...l } = a, c = s ? r : e;
|
|
104148
104147
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ L(c, { ...l, ref: i });
|
|
104149
104148
|
});
|
|
104150
104149
|
return n.displayName = `Primitive.${e}`, { ...t, [e]: n };
|
|
104151
104150
|
}, {});
|
|
104152
|
-
function
|
|
104151
|
+
function xUt(t, e) {
|
|
104153
104152
|
t && Qd.flushSync(() => t.dispatchEvent(e));
|
|
104154
104153
|
}
|
|
104155
104154
|
function Ua(t) {
|
|
@@ -104158,7 +104157,7 @@ function Ua(t) {
|
|
|
104158
104157
|
e.current = t;
|
|
104159
104158
|
}), ue.useMemo(() => (...r) => e.current?.(...r), []);
|
|
104160
104159
|
}
|
|
104161
|
-
function
|
|
104160
|
+
function AUt(t, e = globalThis?.document) {
|
|
104162
104161
|
const r = Ua(t);
|
|
104163
104162
|
ue.useEffect(() => {
|
|
104164
104163
|
const n = (a) => {
|
|
@@ -104167,7 +104166,7 @@ function _Ut(t, e = globalThis?.document) {
|
|
|
104167
104166
|
return e.addEventListener("keydown", n, { capture: !0 }), () => e.removeEventListener("keydown", n, { capture: !0 });
|
|
104168
104167
|
}, [r, e]);
|
|
104169
104168
|
}
|
|
104170
|
-
var
|
|
104169
|
+
var _Ut = "DismissableLayer", Gd = "dismissableLayer.update", NUt = "dismissableLayer.pointerDownOutside", CUt = "dismissableLayer.focusOutside", KNe, e$e = ue.createContext({
|
|
104171
104170
|
layers: /* @__PURE__ */ new Set(),
|
|
104172
104171
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
104173
104172
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -104181,14 +104180,14 @@ var NUt = "DismissableLayer", Gd = "dismissableLayer.update", CUt = "dismissable
|
|
|
104181
104180
|
onInteractOutside: s,
|
|
104182
104181
|
onDismiss: l,
|
|
104183
104182
|
...c
|
|
104184
|
-
} = t, u = ue.useContext(e$e), [d, m] = ue.useState(null), w = d?.ownerDocument ?? globalThis?.document, [, g] = ue.useState({}), H = _2(e, (N) => m(N)), E = Array.from(u.layers), [M] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = E.indexOf(M), v = d ? E.indexOf(d) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, x = v >= b, V =
|
|
104183
|
+
} = t, u = ue.useContext(e$e), [d, m] = ue.useState(null), w = d?.ownerDocument ?? globalThis?.document, [, g] = ue.useState({}), H = _2(e, (N) => m(N)), E = Array.from(u.layers), [M] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = E.indexOf(M), v = d ? E.indexOf(d) : -1, y = u.layersWithOutsidePointerEventsDisabled.size > 0, x = v >= b, V = OUt((N) => {
|
|
104185
104184
|
const C = N.target, P = [...u.branches].some((S) => S.contains(C));
|
|
104186
104185
|
!x || P || (a?.(N), s?.(N), N.defaultPrevented || l?.());
|
|
104187
|
-
}, w), A =
|
|
104186
|
+
}, w), A = LUt((N) => {
|
|
104188
104187
|
const C = N.target;
|
|
104189
104188
|
[...u.branches].some((S) => S.contains(C)) || (i?.(N), s?.(N), N.defaultPrevented || l?.());
|
|
104190
104189
|
}, w);
|
|
104191
|
-
return
|
|
104190
|
+
return AUt((N) => {
|
|
104192
104191
|
v === u.layers.size - 1 && (n?.(N), !N.defaultPrevented && l && (N.preventDefault(), l()));
|
|
104193
104192
|
}, w), ue.useEffect(() => {
|
|
104194
104193
|
if (d)
|
|
@@ -104219,8 +104218,8 @@ var NUt = "DismissableLayer", Gd = "dismissableLayer.update", CUt = "dismissable
|
|
|
104219
104218
|
);
|
|
104220
104219
|
}
|
|
104221
104220
|
);
|
|
104222
|
-
t$e.displayName =
|
|
104223
|
-
var
|
|
104221
|
+
t$e.displayName = _Ut;
|
|
104222
|
+
var zUt = "DismissableLayerBranch", TUt = ue.forwardRef((t, e) => {
|
|
104224
104223
|
const r = ue.useContext(e$e), n = ue.useRef(null), a = _2(e, n);
|
|
104225
104224
|
return ue.useEffect(() => {
|
|
104226
104225
|
const i = n.current;
|
|
@@ -104230,8 +104229,8 @@ var TUt = "DismissableLayerBranch", OUt = ue.forwardRef((t, e) => {
|
|
|
104230
104229
|
};
|
|
104231
104230
|
}, [r.branches]), /* @__PURE__ */ L(Qn.div, { ...t, ref: a });
|
|
104232
104231
|
});
|
|
104233
|
-
|
|
104234
|
-
function
|
|
104232
|
+
TUt.displayName = zUt;
|
|
104233
|
+
function OUt(t, e = globalThis?.document) {
|
|
104235
104234
|
const r = Ua(t), n = ue.useRef(!1), a = ue.useRef(() => {
|
|
104236
104235
|
});
|
|
104237
104236
|
return ue.useEffect(() => {
|
|
@@ -104239,7 +104238,7 @@ function LUt(t, e = globalThis?.document) {
|
|
|
104239
104238
|
if (l.target && !n.current) {
|
|
104240
104239
|
let c = function() {
|
|
104241
104240
|
r$e(
|
|
104242
|
-
|
|
104241
|
+
NUt,
|
|
104243
104242
|
r,
|
|
104244
104243
|
u,
|
|
104245
104244
|
{ discrete: !0 }
|
|
@@ -104261,11 +104260,11 @@ function LUt(t, e = globalThis?.document) {
|
|
|
104261
104260
|
onPointerDownCapture: () => n.current = !0
|
|
104262
104261
|
};
|
|
104263
104262
|
}
|
|
104264
|
-
function
|
|
104263
|
+
function LUt(t, e = globalThis?.document) {
|
|
104265
104264
|
const r = Ua(t), n = ue.useRef(!1);
|
|
104266
104265
|
return ue.useEffect(() => {
|
|
104267
104266
|
const a = (i) => {
|
|
104268
|
-
i.target && !n.current && r$e(
|
|
104267
|
+
i.target && !n.current && r$e(CUt, r, { originalEvent: i }, {
|
|
104269
104268
|
discrete: !1
|
|
104270
104269
|
});
|
|
104271
104270
|
};
|
|
@@ -104281,9 +104280,9 @@ function GNe() {
|
|
|
104281
104280
|
}
|
|
104282
104281
|
function r$e(t, e, r, { discrete: n }) {
|
|
104283
104282
|
const a = r.originalEvent.target, i = new CustomEvent(t, { bubbles: !1, cancelable: !0, detail: r });
|
|
104284
|
-
e && a.addEventListener(t, e, { once: !0 }), n ?
|
|
104283
|
+
e && a.addEventListener(t, e, { once: !0 }), n ? xUt(a, i) : a.dispatchEvent(i);
|
|
104285
104284
|
}
|
|
104286
|
-
var wu = "focusScope.autoFocusOnMount", gu = "focusScope.autoFocusOnUnmount", YNe = { bubbles: !1, cancelable: !0 },
|
|
104285
|
+
var wu = "focusScope.autoFocusOnMount", gu = "focusScope.autoFocusOnUnmount", YNe = { bubbles: !1, cancelable: !0 }, RUt = "FocusScope", n$e = ue.forwardRef((t, e) => {
|
|
104287
104286
|
const {
|
|
104288
104287
|
loop: r = !1,
|
|
104289
104288
|
trapped: n = !1,
|
|
@@ -104326,7 +104325,7 @@ var wu = "focusScope.autoFocusOnMount", gu = "focusScope.autoFocusOnUnmount", YN
|
|
|
104326
104325
|
const E = document.activeElement;
|
|
104327
104326
|
if (!l.contains(E)) {
|
|
104328
104327
|
const b = new CustomEvent(wu, YNe);
|
|
104329
|
-
l.addEventListener(wu, u), l.dispatchEvent(b), b.defaultPrevented || (
|
|
104328
|
+
l.addEventListener(wu, u), l.dispatchEvent(b), b.defaultPrevented || (DUt(ZUt(o$e(l)), { select: !0 }), document.activeElement === E && s0(l));
|
|
104330
104329
|
}
|
|
104331
104330
|
return () => {
|
|
104332
104331
|
l.removeEventListener(wu, u), setTimeout(() => {
|
|
@@ -104341,7 +104340,7 @@ var wu = "focusScope.autoFocusOnMount", gu = "focusScope.autoFocusOnUnmount", YN
|
|
|
104341
104340
|
if (!r && !n || g.paused) return;
|
|
104342
104341
|
const M = E.key === "Tab" && !E.altKey && !E.ctrlKey && !E.metaKey, b = document.activeElement;
|
|
104343
104342
|
if (M && b) {
|
|
104344
|
-
const v = E.currentTarget, [y, x] =
|
|
104343
|
+
const v = E.currentTarget, [y, x] = SUt(v);
|
|
104345
104344
|
y && x ? !E.shiftKey && b === x ? (E.preventDefault(), r && s0(y, { select: !0 })) : E.shiftKey && b === y && (E.preventDefault(), r && s0(x, { select: !0 })) : b === v && E.preventDefault();
|
|
104346
104345
|
}
|
|
104347
104346
|
},
|
|
@@ -104349,13 +104348,13 @@ var wu = "focusScope.autoFocusOnMount", gu = "focusScope.autoFocusOnUnmount", YN
|
|
|
104349
104348
|
);
|
|
104350
104349
|
return /* @__PURE__ */ L(Qn.div, { tabIndex: -1, ...s, ref: w, onKeyDown: H });
|
|
104351
104350
|
});
|
|
104352
|
-
n$e.displayName =
|
|
104353
|
-
function
|
|
104351
|
+
n$e.displayName = RUt;
|
|
104352
|
+
function DUt(t, { select: e = !1 } = {}) {
|
|
104354
104353
|
const r = document.activeElement;
|
|
104355
104354
|
for (const n of t)
|
|
104356
104355
|
if (s0(n, { select: e }), document.activeElement !== r) return;
|
|
104357
104356
|
}
|
|
104358
|
-
function
|
|
104357
|
+
function SUt(t) {
|
|
104359
104358
|
const e = o$e(t), r = JNe(e, t), n = JNe(e.reverse(), t);
|
|
104360
104359
|
return [r, n];
|
|
104361
104360
|
}
|
|
@@ -104371,9 +104370,9 @@ function o$e(t) {
|
|
|
104371
104370
|
}
|
|
104372
104371
|
function JNe(t, e) {
|
|
104373
104372
|
for (const r of t)
|
|
104374
|
-
if (
|
|
104373
|
+
if (!$Ut(r, { upTo: e })) return r;
|
|
104375
104374
|
}
|
|
104376
|
-
function
|
|
104375
|
+
function $Ut(t, { upTo: e }) {
|
|
104377
104376
|
if (getComputedStyle(t).visibility === "hidden") return !0;
|
|
104378
104377
|
for (; t; ) {
|
|
104379
104378
|
if (e !== void 0 && t === e) return !1;
|
|
@@ -104382,17 +104381,17 @@ function IUt(t, { upTo: e }) {
|
|
|
104382
104381
|
}
|
|
104383
104382
|
return !1;
|
|
104384
104383
|
}
|
|
104385
|
-
function
|
|
104384
|
+
function IUt(t) {
|
|
104386
104385
|
return t instanceof HTMLInputElement && "select" in t;
|
|
104387
104386
|
}
|
|
104388
104387
|
function s0(t, { select: e = !1 } = {}) {
|
|
104389
104388
|
if (t && t.focus) {
|
|
104390
104389
|
const r = document.activeElement;
|
|
104391
|
-
t.focus({ preventScroll: !0 }), t !== r &&
|
|
104390
|
+
t.focus({ preventScroll: !0 }), t !== r && IUt(t) && e && t.select();
|
|
104392
104391
|
}
|
|
104393
104392
|
}
|
|
104394
|
-
var XNe =
|
|
104395
|
-
function
|
|
104393
|
+
var XNe = kUt();
|
|
104394
|
+
function kUt() {
|
|
104396
104395
|
let t = [];
|
|
104397
104396
|
return {
|
|
104398
104397
|
add(e) {
|
|
@@ -104408,26 +104407,26 @@ function QNe(t, e) {
|
|
|
104408
104407
|
const r = [...t], n = r.indexOf(e);
|
|
104409
104408
|
return n !== -1 && r.splice(n, 1), r;
|
|
104410
104409
|
}
|
|
104411
|
-
function
|
|
104410
|
+
function ZUt(t) {
|
|
104412
104411
|
return t.filter((e) => e.tagName !== "A");
|
|
104413
104412
|
}
|
|
104414
|
-
var
|
|
104413
|
+
var BUt = "Portal", a$e = ue.forwardRef((t, e) => {
|
|
104415
104414
|
const { container: r, ...n } = t, [a, i] = ue.useState(!1);
|
|
104416
104415
|
ja(() => i(!0), []);
|
|
104417
104416
|
const s = r || a && globalThis?.document?.body;
|
|
104418
104417
|
return s ? fCe.createPortal(/* @__PURE__ */ L(Qn.div, { ...n, ref: e }), s) : null;
|
|
104419
104418
|
});
|
|
104420
|
-
a$e.displayName =
|
|
104421
|
-
function
|
|
104419
|
+
a$e.displayName = BUt;
|
|
104420
|
+
function PUt(t, e) {
|
|
104422
104421
|
return ue.useReducer((r, n) => e[r][n] ?? r, t);
|
|
104423
104422
|
}
|
|
104424
104423
|
var N3 = (t) => {
|
|
104425
|
-
const { present: e, children: r } = t, n =
|
|
104424
|
+
const { present: e, children: r } = t, n = FUt(e), a = typeof r == "function" ? r({ present: n.isPresent }) : ue.Children.only(r), i = _2(n.ref, jUt(a));
|
|
104426
104425
|
return typeof r == "function" || n.isPresent ? ue.cloneElement(a, { ref: i }) : null;
|
|
104427
104426
|
};
|
|
104428
104427
|
N3.displayName = "Presence";
|
|
104429
|
-
function
|
|
104430
|
-
const [e, r] = ue.useState(), n = ue.useRef(null), a = ue.useRef(t), i = ue.useRef("none"), s = t ? "mounted" : "unmounted", [l, c] =
|
|
104428
|
+
function FUt(t) {
|
|
104429
|
+
const [e, r] = ue.useState(), n = ue.useRef(null), a = ue.useRef(t), i = ue.useRef("none"), s = t ? "mounted" : "unmounted", [l, c] = PUt(s, {
|
|
104431
104430
|
mounted: {
|
|
104432
104431
|
UNMOUNT: "unmounted",
|
|
104433
104432
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -104478,12 +104477,12 @@ function jUt(t) {
|
|
|
104478
104477
|
function Ss(t) {
|
|
104479
104478
|
return t?.animationName || "none";
|
|
104480
104479
|
}
|
|
104481
|
-
function
|
|
104480
|
+
function jUt(t) {
|
|
104482
104481
|
let e = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, r = e && "isReactWarning" in e && e.isReactWarning;
|
|
104483
104482
|
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);
|
|
104484
104483
|
}
|
|
104485
104484
|
var vu = 0;
|
|
104486
|
-
function
|
|
104485
|
+
function UUt() {
|
|
104487
104486
|
ue.useEffect(() => {
|
|
104488
104487
|
const t = document.querySelectorAll("[data-radix-focus-guard]");
|
|
104489
104488
|
return document.body.insertAdjacentElement("afterbegin", t[0] ?? eCe()), document.body.insertAdjacentElement("beforeend", t[1] ?? eCe()), vu++, () => {
|
|
@@ -104495,11 +104494,11 @@ function eCe() {
|
|
|
104495
104494
|
const t = document.createElement("span");
|
|
104496
104495
|
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;
|
|
104497
104496
|
}
|
|
104498
|
-
var sl = "right-scroll-bar-position", ll = "width-before-scroll-bar",
|
|
104497
|
+
var sl = "right-scroll-bar-position", ll = "width-before-scroll-bar", WUt = "with-scroll-bars-hidden", qUt = "--removed-body-scroll-bar-size";
|
|
104499
104498
|
function Eu(t, e) {
|
|
104500
104499
|
return typeof t == "function" ? t(e) : t && (t.current = e), t;
|
|
104501
104500
|
}
|
|
104502
|
-
function
|
|
104501
|
+
function KUt(t, e) {
|
|
104503
104502
|
var r = ve(function() {
|
|
104504
104503
|
return {
|
|
104505
104504
|
// value
|
|
@@ -104520,14 +104519,14 @@ function GUt(t, e) {
|
|
|
104520
104519
|
})[0];
|
|
104521
104520
|
return r.callback = e, r.facade;
|
|
104522
104521
|
}
|
|
104523
|
-
var
|
|
104524
|
-
function
|
|
104525
|
-
var r =
|
|
104522
|
+
var GUt = typeof window < "u" ? ue.useLayoutEffect : ue.useEffect, tCe = /* @__PURE__ */ new WeakMap();
|
|
104523
|
+
function YUt(t, e) {
|
|
104524
|
+
var r = KUt(null, function(n) {
|
|
104526
104525
|
return t.forEach(function(a) {
|
|
104527
104526
|
return Eu(a, n);
|
|
104528
104527
|
});
|
|
104529
104528
|
});
|
|
104530
|
-
return
|
|
104529
|
+
return GUt(function() {
|
|
104531
104530
|
var n = tCe.get(r);
|
|
104532
104531
|
if (n) {
|
|
104533
104532
|
var a = new Set(n), i = new Set(t), s = r.current;
|
|
@@ -104540,11 +104539,11 @@ function JUt(t, e) {
|
|
|
104540
104539
|
tCe.set(r, t);
|
|
104541
104540
|
}, [t]), r;
|
|
104542
104541
|
}
|
|
104543
|
-
function
|
|
104542
|
+
function JUt(t) {
|
|
104544
104543
|
return t;
|
|
104545
104544
|
}
|
|
104546
|
-
function
|
|
104547
|
-
e === void 0 && (e =
|
|
104545
|
+
function XUt(t, e) {
|
|
104546
|
+
e === void 0 && (e = JUt);
|
|
104548
104547
|
var r = [], n = !1, a = {
|
|
104549
104548
|
read: function() {
|
|
104550
104549
|
if (n)
|
|
@@ -104598,9 +104597,9 @@ function QUt(t, e) {
|
|
|
104598
104597
|
};
|
|
104599
104598
|
return a;
|
|
104600
104599
|
}
|
|
104601
|
-
function
|
|
104600
|
+
function QUt(t) {
|
|
104602
104601
|
t === void 0 && (t = {});
|
|
104603
|
-
var e =
|
|
104602
|
+
var e = XUt(null);
|
|
104604
104603
|
return e.options = Mn({ async: !0, ssr: !1 }, t), e;
|
|
104605
104604
|
}
|
|
104606
104605
|
var i$e = function(t) {
|
|
@@ -104613,16 +104612,16 @@ var i$e = function(t) {
|
|
|
104613
104612
|
return ue.createElement(n, Mn({}, r));
|
|
104614
104613
|
};
|
|
104615
104614
|
i$e.isSideCarExport = !0;
|
|
104616
|
-
function
|
|
104615
|
+
function eWt(t, e) {
|
|
104617
104616
|
return t.useMedium(e), i$e;
|
|
104618
104617
|
}
|
|
104619
|
-
var s$e =
|
|
104618
|
+
var s$e = QUt(), yu = function() {
|
|
104620
104619
|
}, C3 = ue.forwardRef(function(t, e) {
|
|
104621
104620
|
var r = ue.useRef(null), n = ue.useState({
|
|
104622
104621
|
onScrollCapture: yu,
|
|
104623
104622
|
onWheelCapture: yu,
|
|
104624
104623
|
onTouchMoveCapture: yu
|
|
104625
|
-
}), a = n[0], i = n[1], s = t.forwardProps, l = t.children, c = t.className, u = t.removeScrollBar, d = t.enabled, m = t.shards, w = t.sideCar, g = t.noRelative, H = t.noIsolation, E = t.inert, M = t.allowPinchZoom, b = t.as, v = b === void 0 ? "div" : b, y = t.gapMode, x = dSe(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), V = w, A =
|
|
104624
|
+
}), a = n[0], i = n[1], s = t.forwardProps, l = t.children, c = t.className, u = t.removeScrollBar, d = t.enabled, m = t.shards, w = t.sideCar, g = t.noRelative, H = t.noIsolation, E = t.inert, M = t.allowPinchZoom, b = t.as, v = b === void 0 ? "div" : b, y = t.gapMode, x = dSe(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), V = w, A = YUt([r, e]), N = Mn(Mn({}, x), a);
|
|
104626
104625
|
return ue.createElement(
|
|
104627
104626
|
ue.Fragment,
|
|
104628
104627
|
null,
|
|
@@ -104639,37 +104638,37 @@ C3.classNames = {
|
|
|
104639
104638
|
fullWidth: ll,
|
|
104640
104639
|
zeroRight: sl
|
|
104641
104640
|
};
|
|
104642
|
-
var
|
|
104641
|
+
var tWt = function() {
|
|
104643
104642
|
if (typeof __webpack_nonce__ < "u")
|
|
104644
104643
|
return __webpack_nonce__;
|
|
104645
104644
|
};
|
|
104646
|
-
function
|
|
104645
|
+
function rWt() {
|
|
104647
104646
|
if (!document)
|
|
104648
104647
|
return null;
|
|
104649
104648
|
var t = document.createElement("style");
|
|
104650
104649
|
t.type = "text/css";
|
|
104651
|
-
var e =
|
|
104650
|
+
var e = tWt();
|
|
104652
104651
|
return e && t.setAttribute("nonce", e), t;
|
|
104653
104652
|
}
|
|
104654
|
-
function
|
|
104653
|
+
function nWt(t, e) {
|
|
104655
104654
|
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
104656
104655
|
}
|
|
104657
|
-
function
|
|
104656
|
+
function oWt(t) {
|
|
104658
104657
|
var e = document.head || document.getElementsByTagName("head")[0];
|
|
104659
104658
|
e.appendChild(t);
|
|
104660
104659
|
}
|
|
104661
|
-
var
|
|
104660
|
+
var aWt = function() {
|
|
104662
104661
|
var t = 0, e = null;
|
|
104663
104662
|
return {
|
|
104664
104663
|
add: function(r) {
|
|
104665
|
-
t == 0 && (e =
|
|
104664
|
+
t == 0 && (e = rWt()) && (nWt(e, r), oWt(e)), t++;
|
|
104666
104665
|
},
|
|
104667
104666
|
remove: function() {
|
|
104668
104667
|
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
104669
104668
|
}
|
|
104670
104669
|
};
|
|
104671
|
-
},
|
|
104672
|
-
var t =
|
|
104670
|
+
}, iWt = function() {
|
|
104671
|
+
var t = aWt();
|
|
104673
104672
|
return function(e, r) {
|
|
104674
104673
|
ue.useEffect(function() {
|
|
104675
104674
|
return t.add(e), function() {
|
|
@@ -104678,35 +104677,35 @@ var iWt = function() {
|
|
|
104678
104677
|
}, [e && r]);
|
|
104679
104678
|
};
|
|
104680
104679
|
}, l$e = function() {
|
|
104681
|
-
var t =
|
|
104680
|
+
var t = iWt(), e = function(r) {
|
|
104682
104681
|
var n = r.styles, a = r.dynamic;
|
|
104683
104682
|
return t(n, a), null;
|
|
104684
104683
|
};
|
|
104685
104684
|
return e;
|
|
104686
|
-
},
|
|
104685
|
+
}, sWt = {
|
|
104687
104686
|
left: 0,
|
|
104688
104687
|
top: 0,
|
|
104689
104688
|
right: 0,
|
|
104690
104689
|
gap: 0
|
|
104691
104690
|
}, Vu = function(t) {
|
|
104692
104691
|
return parseInt(t || "", 10) || 0;
|
|
104693
|
-
},
|
|
104692
|
+
}, lWt = function(t) {
|
|
104694
104693
|
var e = window.getComputedStyle(document.body), r = e[t === "padding" ? "paddingLeft" : "marginLeft"], n = e[t === "padding" ? "paddingTop" : "marginTop"], a = e[t === "padding" ? "paddingRight" : "marginRight"];
|
|
104695
104694
|
return [Vu(r), Vu(n), Vu(a)];
|
|
104696
|
-
},
|
|
104695
|
+
}, cWt = function(t) {
|
|
104697
104696
|
if (t === void 0 && (t = "margin"), typeof window > "u")
|
|
104698
|
-
return
|
|
104699
|
-
var e =
|
|
104697
|
+
return sWt;
|
|
104698
|
+
var e = lWt(t), r = document.documentElement.clientWidth, n = window.innerWidth;
|
|
104700
104699
|
return {
|
|
104701
104700
|
left: e[0],
|
|
104702
104701
|
top: e[1],
|
|
104703
104702
|
right: e[2],
|
|
104704
104703
|
gap: Math.max(0, n - r + e[2] - e[0])
|
|
104705
104704
|
};
|
|
104706
|
-
},
|
|
104705
|
+
}, uWt = l$e(), no = "data-scroll-locked", dWt = function(t, e, r, n) {
|
|
104707
104706
|
var a = t.left, i = t.top, s = t.right, l = t.gap;
|
|
104708
104707
|
return r === void 0 && (r = "margin"), `
|
|
104709
|
-
.`.concat(
|
|
104708
|
+
.`.concat(WUt, ` {
|
|
104710
104709
|
overflow: hidden `).concat(n, `;
|
|
104711
104710
|
padding-right: `).concat(l, "px ").concat(n, `;
|
|
104712
104711
|
}
|
|
@@ -104744,26 +104743,26 @@ var iWt = function() {
|
|
|
104744
104743
|
}
|
|
104745
104744
|
|
|
104746
104745
|
body[`).concat(no, `] {
|
|
104747
|
-
`).concat(
|
|
104746
|
+
`).concat(qUt, ": ").concat(l, `px;
|
|
104748
104747
|
}
|
|
104749
104748
|
`);
|
|
104750
104749
|
}, rCe = function() {
|
|
104751
104750
|
var t = parseInt(document.body.getAttribute(no) || "0", 10);
|
|
104752
104751
|
return isFinite(t) ? t : 0;
|
|
104753
|
-
},
|
|
104752
|
+
}, hWt = function() {
|
|
104754
104753
|
ue.useEffect(function() {
|
|
104755
104754
|
return document.body.setAttribute(no, (rCe() + 1).toString()), function() {
|
|
104756
104755
|
var t = rCe() - 1;
|
|
104757
104756
|
t <= 0 ? document.body.removeAttribute(no) : document.body.setAttribute(no, t.toString());
|
|
104758
104757
|
};
|
|
104759
104758
|
}, []);
|
|
104760
|
-
},
|
|
104759
|
+
}, pWt = function(t) {
|
|
104761
104760
|
var e = t.noRelative, r = t.noImportant, n = t.gapMode, a = n === void 0 ? "margin" : n;
|
|
104762
|
-
|
|
104761
|
+
hWt();
|
|
104763
104762
|
var i = ue.useMemo(function() {
|
|
104764
|
-
return
|
|
104763
|
+
return cWt(a);
|
|
104765
104764
|
}, [a]);
|
|
104766
|
-
return ue.createElement(
|
|
104765
|
+
return ue.createElement(uWt, { styles: dWt(i, !e, a, r ? "" : "!important") });
|
|
104767
104766
|
}, Yd = !1;
|
|
104768
104767
|
if (typeof window < "u")
|
|
104769
104768
|
try {
|
|
@@ -104776,7 +104775,7 @@ if (typeof window < "u")
|
|
|
104776
104775
|
} catch {
|
|
104777
104776
|
Yd = !1;
|
|
104778
104777
|
}
|
|
104779
|
-
var Z2 = Yd ? { passive: !1 } : !1,
|
|
104778
|
+
var Z2 = Yd ? { passive: !1 } : !1, fWt = function(t) {
|
|
104780
104779
|
return t.tagName === "TEXTAREA";
|
|
104781
104780
|
}, c$e = function(t, e) {
|
|
104782
104781
|
if (!(t instanceof Element))
|
|
@@ -104785,11 +104784,11 @@ var Z2 = Yd ? { passive: !1 } : !1, mWt = function(t) {
|
|
|
104785
104784
|
return (
|
|
104786
104785
|
// not-not-scrollable
|
|
104787
104786
|
r[e] !== "hidden" && // contains scroll inside self
|
|
104788
|
-
!(r.overflowY === r.overflowX && !
|
|
104787
|
+
!(r.overflowY === r.overflowX && !fWt(t) && r[e] === "visible")
|
|
104789
104788
|
);
|
|
104790
|
-
},
|
|
104789
|
+
}, mWt = function(t) {
|
|
104791
104790
|
return c$e(t, "overflowY");
|
|
104792
|
-
},
|
|
104791
|
+
}, wWt = function(t) {
|
|
104793
104792
|
return c$e(t, "overflowX");
|
|
104794
104793
|
}, nCe = function(t, e) {
|
|
104795
104794
|
var r = e.ownerDocument, n = e;
|
|
@@ -104804,14 +104803,14 @@ var Z2 = Yd ? { passive: !1 } : !1, mWt = function(t) {
|
|
|
104804
104803
|
n = n.parentNode;
|
|
104805
104804
|
} while (n && n !== r.body);
|
|
104806
104805
|
return !1;
|
|
104807
|
-
},
|
|
104806
|
+
}, gWt = function(t) {
|
|
104808
104807
|
var e = t.scrollTop, r = t.scrollHeight, n = t.clientHeight;
|
|
104809
104808
|
return [
|
|
104810
104809
|
e,
|
|
104811
104810
|
r,
|
|
104812
104811
|
n
|
|
104813
104812
|
];
|
|
104814
|
-
},
|
|
104813
|
+
}, vWt = function(t) {
|
|
104815
104814
|
var e = t.scrollLeft, r = t.scrollWidth, n = t.clientWidth;
|
|
104816
104815
|
return [
|
|
104817
104816
|
e,
|
|
@@ -104819,13 +104818,13 @@ var Z2 = Yd ? { passive: !1 } : !1, mWt = function(t) {
|
|
|
104819
104818
|
n
|
|
104820
104819
|
];
|
|
104821
104820
|
}, u$e = function(t, e) {
|
|
104822
|
-
return t === "v" ?
|
|
104821
|
+
return t === "v" ? mWt(e) : wWt(e);
|
|
104823
104822
|
}, d$e = function(t, e) {
|
|
104824
|
-
return t === "v" ?
|
|
104825
|
-
},
|
|
104823
|
+
return t === "v" ? gWt(e) : vWt(e);
|
|
104824
|
+
}, EWt = function(t, e) {
|
|
104826
104825
|
return t === "h" && e === "rtl" ? -1 : 1;
|
|
104827
|
-
},
|
|
104828
|
-
var i =
|
|
104826
|
+
}, yWt = function(t, e, r, n, a) {
|
|
104827
|
+
var i = EWt(t, window.getComputedStyle(e).direction), s = i * n, l = r.target, c = e.contains(l), u = !1, d = s > 0, m = 0, w = 0;
|
|
104829
104828
|
do {
|
|
104830
104829
|
if (!l)
|
|
104831
104830
|
break;
|
|
@@ -104845,16 +104844,16 @@ var Z2 = Yd ? { passive: !1 } : !1, mWt = function(t) {
|
|
|
104845
104844
|
return [t.deltaX, t.deltaY];
|
|
104846
104845
|
}, aCe = function(t) {
|
|
104847
104846
|
return t && "current" in t ? t.current : t;
|
|
104848
|
-
},
|
|
104847
|
+
}, VWt = function(t, e) {
|
|
104849
104848
|
return t[0] === e[0] && t[1] === e[1];
|
|
104850
|
-
},
|
|
104849
|
+
}, HWt = function(t) {
|
|
104851
104850
|
return `
|
|
104852
104851
|
.block-interactivity-`.concat(t, ` {pointer-events: none;}
|
|
104853
104852
|
.allow-interactivity-`).concat(t, ` {pointer-events: all;}
|
|
104854
104853
|
`);
|
|
104855
|
-
},
|
|
104856
|
-
function
|
|
104857
|
-
var e = ue.useRef([]), r = ue.useRef([0, 0]), n = ue.useRef(), a = ue.useState(
|
|
104854
|
+
}, MWt = 0, B2 = [];
|
|
104855
|
+
function bWt(t) {
|
|
104856
|
+
var e = ue.useRef([]), r = ue.useRef([0, 0]), n = ue.useRef(), a = ue.useState(MWt++)[0], i = ue.useState(l$e)[0], s = ue.useRef(t);
|
|
104858
104857
|
ue.useEffect(function() {
|
|
104859
104858
|
s.current = t;
|
|
104860
104859
|
}, [t]), ue.useEffect(function() {
|
|
@@ -104887,12 +104886,12 @@ function xWt(t) {
|
|
|
104887
104886
|
if (!n.current && "changedTouches" in E && (y || x) && (n.current = V), !V)
|
|
104888
104887
|
return !0;
|
|
104889
104888
|
var K = n.current || V;
|
|
104890
|
-
return
|
|
104889
|
+
return yWt(K, M, E, K === "h" ? y : x);
|
|
104891
104890
|
}, []), c = ue.useCallback(function(E) {
|
|
104892
104891
|
var M = E;
|
|
104893
104892
|
if (!(!B2.length || B2[B2.length - 1] !== i)) {
|
|
104894
104893
|
var b = "deltaY" in M ? oCe(M) : Is(M), v = e.current.filter(function(V) {
|
|
104895
|
-
return V.name === M.type && (V.target === M.target || M.target === V.shadowParent) &&
|
|
104894
|
+
return V.name === M.type && (V.target === M.target || M.target === V.shadowParent) && VWt(V.delta, b);
|
|
104896
104895
|
})[0];
|
|
104897
104896
|
if (v && v.should) {
|
|
104898
104897
|
M.cancelable && M.preventDefault();
|
|
@@ -104906,7 +104905,7 @@ function xWt(t) {
|
|
|
104906
104905
|
}
|
|
104907
104906
|
}
|
|
104908
104907
|
}, []), u = ue.useCallback(function(E, M, b, v) {
|
|
104909
|
-
var y = { name: E, delta: M, target: b, should: v, shadowParent:
|
|
104908
|
+
var y = { name: E, delta: M, target: b, should: v, shadowParent: xWt(b) };
|
|
104910
104909
|
e.current.push(y), setTimeout(function() {
|
|
104911
104910
|
e.current = e.current.filter(function(x) {
|
|
104912
104911
|
return x !== y;
|
|
@@ -104934,28 +104933,28 @@ function xWt(t) {
|
|
|
104934
104933
|
return ue.createElement(
|
|
104935
104934
|
ue.Fragment,
|
|
104936
104935
|
null,
|
|
104937
|
-
H ? ue.createElement(i, { styles:
|
|
104938
|
-
g ? ue.createElement(
|
|
104936
|
+
H ? ue.createElement(i, { styles: HWt(a) }) : null,
|
|
104937
|
+
g ? ue.createElement(pWt, { noRelative: t.noRelative, gapMode: t.gapMode }) : null
|
|
104939
104938
|
);
|
|
104940
104939
|
}
|
|
104941
|
-
function
|
|
104940
|
+
function xWt(t) {
|
|
104942
104941
|
for (var e = null; t !== null; )
|
|
104943
104942
|
t instanceof ShadowRoot && (e = t.host, t = t.host), t = t.parentNode;
|
|
104944
104943
|
return e;
|
|
104945
104944
|
}
|
|
104946
|
-
const
|
|
104945
|
+
const AWt = eWt(s$e, bWt);
|
|
104947
104946
|
var h$e = ue.forwardRef(function(t, e) {
|
|
104948
|
-
return ue.createElement(C3, Mn({}, t, { ref: e, sideCar:
|
|
104947
|
+
return ue.createElement(C3, Mn({}, t, { ref: e, sideCar: AWt }));
|
|
104949
104948
|
});
|
|
104950
104949
|
h$e.classNames = C3.classNames;
|
|
104951
|
-
var
|
|
104950
|
+
var _Wt = function(t) {
|
|
104952
104951
|
if (typeof document > "u")
|
|
104953
104952
|
return null;
|
|
104954
104953
|
var e = Array.isArray(t) ? t[0] : t;
|
|
104955
104954
|
return e.ownerDocument.body;
|
|
104956
104955
|
}, P2 = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(), Zs = {}, Hu = 0, p$e = function(t) {
|
|
104957
104956
|
return t && (t.host || p$e(t.parentNode));
|
|
104958
|
-
},
|
|
104957
|
+
}, NWt = function(t, e) {
|
|
104959
104958
|
return e.map(function(r) {
|
|
104960
104959
|
if (t.contains(r))
|
|
104961
104960
|
return r;
|
|
@@ -104964,8 +104963,8 @@ var NWt = function(t) {
|
|
|
104964
104963
|
}).filter(function(r) {
|
|
104965
104964
|
return !!r;
|
|
104966
104965
|
});
|
|
104967
|
-
},
|
|
104968
|
-
var a =
|
|
104966
|
+
}, CWt = function(t, e, r, n) {
|
|
104967
|
+
var a = NWt(e, Array.isArray(t) ? t : [t]);
|
|
104969
104968
|
Zs[r] || (Zs[r] = /* @__PURE__ */ new WeakMap());
|
|
104970
104969
|
var i = Zs[r], s = [], l = /* @__PURE__ */ new Set(), c = new Set(a), u = function(m) {
|
|
104971
104970
|
!m || l.has(m) || (l.add(m), u(m.parentNode));
|
|
@@ -104990,13 +104989,13 @@ var NWt = function(t) {
|
|
|
104990
104989
|
P2.set(m, w), i.set(m, g), w || (ks.has(m) || m.removeAttribute(n), ks.delete(m)), g || m.removeAttribute(r);
|
|
104991
104990
|
}), Hu--, Hu || (P2 = /* @__PURE__ */ new WeakMap(), P2 = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(), Zs = {});
|
|
104992
104991
|
};
|
|
104993
|
-
},
|
|
104992
|
+
}, zWt = function(t, e, r) {
|
|
104994
104993
|
r === void 0 && (r = "data-aria-hidden");
|
|
104995
|
-
var n = Array.from(Array.isArray(t) ? t : [t]), a =
|
|
104996
|
-
return a ? (n.push.apply(n, Array.from(a.querySelectorAll("[aria-live], script"))),
|
|
104994
|
+
var n = Array.from(Array.isArray(t) ? t : [t]), a = _Wt(t);
|
|
104995
|
+
return a ? (n.push.apply(n, Array.from(a.querySelectorAll("[aria-live], script"))), CWt(n, a, r, "aria-hidden")) : function() {
|
|
104997
104996
|
return null;
|
|
104998
104997
|
};
|
|
104999
|
-
}, z3 = "Dialog", [f$e] =
|
|
104998
|
+
}, z3 = "Dialog", [f$e] = dUt(z3), [TWt, mn] = f$e(z3), m$e = (t) => {
|
|
105000
104999
|
const {
|
|
105001
105000
|
__scopeDialog: e,
|
|
105002
105001
|
children: r,
|
|
@@ -105004,14 +105003,14 @@ var NWt = function(t) {
|
|
|
105004
105003
|
defaultOpen: a,
|
|
105005
105004
|
onOpenChange: i,
|
|
105006
105005
|
modal: s = !0
|
|
105007
|
-
} = t, l = ue.useRef(null), c = ue.useRef(null), [u, d] =
|
|
105006
|
+
} = t, l = ue.useRef(null), c = ue.useRef(null), [u, d] = wUt({
|
|
105008
105007
|
prop: n,
|
|
105009
105008
|
defaultProp: a ?? !1,
|
|
105010
105009
|
onChange: i,
|
|
105011
105010
|
caller: z3
|
|
105012
105011
|
});
|
|
105013
105012
|
return /* @__PURE__ */ L(
|
|
105014
|
-
|
|
105013
|
+
TWt,
|
|
105015
105014
|
{
|
|
105016
105015
|
scope: e,
|
|
105017
105016
|
triggerRef: l,
|
|
@@ -105028,7 +105027,7 @@ var NWt = function(t) {
|
|
|
105028
105027
|
);
|
|
105029
105028
|
};
|
|
105030
105029
|
m$e.displayName = z3;
|
|
105031
|
-
var w$e = "DialogTrigger",
|
|
105030
|
+
var w$e = "DialogTrigger", OWt = ue.forwardRef(
|
|
105032
105031
|
(t, e) => {
|
|
105033
105032
|
const { __scopeDialog: r, ...n } = t, a = mn(w$e, r), i = _2(e, a.triggerRef);
|
|
105034
105033
|
return /* @__PURE__ */ L(
|
|
@@ -105046,28 +105045,28 @@ var w$e = "DialogTrigger", LWt = ue.forwardRef(
|
|
|
105046
105045
|
);
|
|
105047
105046
|
}
|
|
105048
105047
|
);
|
|
105049
|
-
|
|
105050
|
-
var ep = "DialogPortal", [
|
|
105048
|
+
OWt.displayName = w$e;
|
|
105049
|
+
var ep = "DialogPortal", [LWt, g$e] = f$e(ep, {
|
|
105051
105050
|
forceMount: void 0
|
|
105052
105051
|
}), v$e = (t) => {
|
|
105053
105052
|
const { __scopeDialog: e, forceMount: r, children: n, container: a } = t, i = mn(ep, e);
|
|
105054
|
-
return /* @__PURE__ */ L(
|
|
105053
|
+
return /* @__PURE__ */ L(LWt, { scope: e, forceMount: r, children: ue.Children.map(n, (s) => /* @__PURE__ */ L(N3, { present: r || i.open, children: /* @__PURE__ */ L(a$e, { asChild: !0, container: a, children: s }) })) });
|
|
105055
105054
|
};
|
|
105056
105055
|
v$e.displayName = ep;
|
|
105057
105056
|
var cc = "DialogOverlay", E$e = ue.forwardRef(
|
|
105058
105057
|
(t, e) => {
|
|
105059
105058
|
const r = g$e(cc, t.__scopeDialog), { forceMount: n = r.forceMount, ...a } = t, i = mn(cc, t.__scopeDialog);
|
|
105060
|
-
return i.modal ? /* @__PURE__ */ L(N3, { present: n || i.open, children: /* @__PURE__ */ L(
|
|
105059
|
+
return i.modal ? /* @__PURE__ */ L(N3, { present: n || i.open, children: /* @__PURE__ */ L(DWt, { ...a, ref: e }) }) : null;
|
|
105061
105060
|
}
|
|
105062
105061
|
);
|
|
105063
105062
|
E$e.displayName = cc;
|
|
105064
|
-
var
|
|
105063
|
+
var RWt = /* @__PURE__ */ QSe("DialogOverlay.RemoveScroll"), DWt = ue.forwardRef(
|
|
105065
105064
|
(t, e) => {
|
|
105066
105065
|
const { __scopeDialog: r, ...n } = t, a = mn(cc, r);
|
|
105067
105066
|
return (
|
|
105068
105067
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
105069
105068
|
// ie. when `Overlay` and `Content` are siblings
|
|
105070
|
-
/* @__PURE__ */ L(h$e, { as:
|
|
105069
|
+
/* @__PURE__ */ L(h$e, { as: RWt, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ L(
|
|
105071
105070
|
Qn.div,
|
|
105072
105071
|
{
|
|
105073
105072
|
"data-state": rp(a.open),
|
|
@@ -105081,16 +105080,16 @@ var DWt = /* @__PURE__ */ QSe("DialogOverlay.RemoveScroll"), SWt = ue.forwardRef
|
|
|
105081
105080
|
), v2 = "DialogContent", y$e = ue.forwardRef(
|
|
105082
105081
|
(t, e) => {
|
|
105083
105082
|
const r = g$e(v2, t.__scopeDialog), { forceMount: n = r.forceMount, ...a } = t, i = mn(v2, t.__scopeDialog);
|
|
105084
|
-
return /* @__PURE__ */ L(N3, { present: n || i.open, children: i.modal ? /* @__PURE__ */ L(
|
|
105083
|
+
return /* @__PURE__ */ L(N3, { present: n || i.open, children: i.modal ? /* @__PURE__ */ L(SWt, { ...a, ref: e }) : /* @__PURE__ */ L($Wt, { ...a, ref: e }) });
|
|
105085
105084
|
}
|
|
105086
105085
|
);
|
|
105087
105086
|
y$e.displayName = v2;
|
|
105088
|
-
var
|
|
105087
|
+
var SWt = ue.forwardRef(
|
|
105089
105088
|
(t, e) => {
|
|
105090
105089
|
const r = mn(v2, t.__scopeDialog), n = ue.useRef(null), a = _2(e, r.contentRef, n);
|
|
105091
105090
|
return ue.useEffect(() => {
|
|
105092
105091
|
const i = n.current;
|
|
105093
|
-
if (i) return
|
|
105092
|
+
if (i) return zWt(i);
|
|
105094
105093
|
}, []), /* @__PURE__ */ L(
|
|
105095
105094
|
V$e,
|
|
105096
105095
|
{
|
|
@@ -105112,7 +105111,7 @@ var $Wt = ue.forwardRef(
|
|
|
105112
105111
|
}
|
|
105113
105112
|
);
|
|
105114
105113
|
}
|
|
105115
|
-
),
|
|
105114
|
+
), $Wt = ue.forwardRef(
|
|
105116
105115
|
(t, e) => {
|
|
105117
105116
|
const r = mn(v2, t.__scopeDialog), n = ue.useRef(!1), a = ue.useRef(!1);
|
|
105118
105117
|
return /* @__PURE__ */ L(
|
|
@@ -105136,7 +105135,7 @@ var $Wt = ue.forwardRef(
|
|
|
105136
105135
|
), V$e = ue.forwardRef(
|
|
105137
105136
|
(t, e) => {
|
|
105138
105137
|
const { __scopeDialog: r, trapFocus: n, onOpenAutoFocus: a, onCloseAutoFocus: i, ...s } = t, l = mn(v2, r), c = ue.useRef(null), u = _2(e, c);
|
|
105139
|
-
return
|
|
105138
|
+
return UUt(), /* @__PURE__ */ _e(p1, { children: [
|
|
105140
105139
|
/* @__PURE__ */ L(
|
|
105141
105140
|
n$e,
|
|
105142
105141
|
{
|
|
@@ -105161,26 +105160,26 @@ var $Wt = ue.forwardRef(
|
|
|
105161
105160
|
}
|
|
105162
105161
|
),
|
|
105163
105162
|
/* @__PURE__ */ _e(p1, { children: [
|
|
105164
|
-
/* @__PURE__ */ L(
|
|
105165
|
-
/* @__PURE__ */ L(
|
|
105163
|
+
/* @__PURE__ */ L(BWt, { titleId: l.titleId }),
|
|
105164
|
+
/* @__PURE__ */ L(FWt, { contentRef: c, descriptionId: l.descriptionId })
|
|
105166
105165
|
] })
|
|
105167
105166
|
] });
|
|
105168
105167
|
}
|
|
105169
|
-
), tp = "DialogTitle",
|
|
105168
|
+
), tp = "DialogTitle", IWt = ue.forwardRef(
|
|
105170
105169
|
(t, e) => {
|
|
105171
105170
|
const { __scopeDialog: r, ...n } = t, a = mn(tp, r);
|
|
105172
105171
|
return /* @__PURE__ */ L(Qn.h2, { id: a.titleId, ...n, ref: e });
|
|
105173
105172
|
}
|
|
105174
105173
|
);
|
|
105175
|
-
|
|
105176
|
-
var H$e = "DialogDescription",
|
|
105174
|
+
IWt.displayName = tp;
|
|
105175
|
+
var H$e = "DialogDescription", kWt = ue.forwardRef(
|
|
105177
105176
|
(t, e) => {
|
|
105178
105177
|
const { __scopeDialog: r, ...n } = t, a = mn(H$e, r);
|
|
105179
105178
|
return /* @__PURE__ */ L(Qn.p, { id: a.descriptionId, ...n, ref: e });
|
|
105180
105179
|
}
|
|
105181
105180
|
);
|
|
105182
|
-
|
|
105183
|
-
var M$e = "DialogClose",
|
|
105181
|
+
kWt.displayName = H$e;
|
|
105182
|
+
var M$e = "DialogClose", ZWt = ue.forwardRef(
|
|
105184
105183
|
(t, e) => {
|
|
105185
105184
|
const { __scopeDialog: r, ...n } = t, a = mn(M$e, r);
|
|
105186
105185
|
return /* @__PURE__ */ L(
|
|
@@ -105194,15 +105193,15 @@ var M$e = "DialogClose", BWt = ue.forwardRef(
|
|
|
105194
105193
|
);
|
|
105195
105194
|
}
|
|
105196
105195
|
);
|
|
105197
|
-
|
|
105196
|
+
ZWt.displayName = M$e;
|
|
105198
105197
|
function rp(t) {
|
|
105199
105198
|
return t ? "open" : "closed";
|
|
105200
105199
|
}
|
|
105201
|
-
var b$e = "DialogTitleWarning", [
|
|
105200
|
+
var b$e = "DialogTitleWarning", [IYt, x$e] = uUt(b$e, {
|
|
105202
105201
|
contentName: v2,
|
|
105203
105202
|
titleName: tp,
|
|
105204
105203
|
docsSlug: "dialog"
|
|
105205
|
-
}),
|
|
105204
|
+
}), BWt = ({ titleId: t }) => {
|
|
105206
105205
|
const e = x$e(b$e), r = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
|
|
105207
105206
|
|
|
105208
105207
|
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -105211,25 +105210,25 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
105211
105210
|
return ue.useEffect(() => {
|
|
105212
105211
|
t && (document.getElementById(t) || console.error(r));
|
|
105213
105212
|
}, [r, t]), null;
|
|
105214
|
-
},
|
|
105215
|
-
const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${x$e(
|
|
105213
|
+
}, PWt = "DialogDescriptionWarning", FWt = ({ contentRef: t, descriptionId: e }) => {
|
|
105214
|
+
const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${x$e(PWt).contentName}}.`;
|
|
105216
105215
|
return ue.useEffect(() => {
|
|
105217
105216
|
const a = t.current?.getAttribute("aria-describedby");
|
|
105218
105217
|
e && a && (document.getElementById(e) || console.warn(n));
|
|
105219
105218
|
}, [n, t, e]), null;
|
|
105220
|
-
},
|
|
105221
|
-
function
|
|
105219
|
+
}, jWt = m$e, UWt = v$e, WWt = E$e, qWt = y$e, KWt = /* @__PURE__ */ Symbol.for("react.lazy"), uc = ue[" use ".trim().toString()];
|
|
105220
|
+
function GWt(t) {
|
|
105222
105221
|
return typeof t == "object" && t !== null && "then" in t;
|
|
105223
105222
|
}
|
|
105224
105223
|
function A$e(t) {
|
|
105225
|
-
return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof ===
|
|
105224
|
+
return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === KWt && "_payload" in t && GWt(t._payload);
|
|
105226
105225
|
}
|
|
105227
105226
|
// @__NO_SIDE_EFFECTS__
|
|
105228
|
-
function
|
|
105229
|
-
const e = /* @__PURE__ */
|
|
105227
|
+
function YWt(t) {
|
|
105228
|
+
const e = /* @__PURE__ */ JWt(t), r = ue.forwardRef((n, a) => {
|
|
105230
105229
|
let { children: i, ...s } = n;
|
|
105231
105230
|
A$e(i) && typeof uc == "function" && (i = uc(i._payload));
|
|
105232
|
-
const l = ue.Children.toArray(i), c = l.find(
|
|
105231
|
+
const l = ue.Children.toArray(i), c = l.find(QWt);
|
|
105233
105232
|
if (c) {
|
|
105234
105233
|
const u = c.props.children, d = l.map((m) => m === c ? ue.Children.count(u) > 1 ? ue.Children.only(null) : ue.isValidElement(u) ? u.props.children : null : m);
|
|
105235
105234
|
return /* @__PURE__ */ L(e, { ...s, ref: a, children: ue.isValidElement(u) ? ue.cloneElement(u, void 0, d) : null });
|
|
@@ -105239,22 +105238,22 @@ function JWt(t) {
|
|
|
105239
105238
|
return r.displayName = `${t}.Slot`, r;
|
|
105240
105239
|
}
|
|
105241
105240
|
// @__NO_SIDE_EFFECTS__
|
|
105242
|
-
function
|
|
105241
|
+
function JWt(t) {
|
|
105243
105242
|
const e = ue.forwardRef((r, n) => {
|
|
105244
105243
|
let { children: a, ...i } = r;
|
|
105245
105244
|
if (A$e(a) && typeof uc == "function" && (a = uc(a._payload)), ue.isValidElement(a)) {
|
|
105246
|
-
const s =
|
|
105245
|
+
const s = tqt(a), l = eqt(i, a.props);
|
|
105247
105246
|
return a.type !== ue.Fragment && (l.ref = n ? L0(n, s) : s), ue.cloneElement(a, l);
|
|
105248
105247
|
}
|
|
105249
105248
|
return ue.Children.count(a) > 1 ? ue.Children.only(null) : null;
|
|
105250
105249
|
});
|
|
105251
105250
|
return e.displayName = `${t}.SlotClone`, e;
|
|
105252
105251
|
}
|
|
105253
|
-
var
|
|
105254
|
-
function
|
|
105255
|
-
return ue.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId ===
|
|
105252
|
+
var XWt = /* @__PURE__ */ Symbol("radix.slottable");
|
|
105253
|
+
function QWt(t) {
|
|
105254
|
+
return ue.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === XWt;
|
|
105256
105255
|
}
|
|
105257
|
-
function
|
|
105256
|
+
function eqt(t, e) {
|
|
105258
105257
|
const r = { ...e };
|
|
105259
105258
|
for (const n in e) {
|
|
105260
105259
|
const a = t[n], i = e[n];
|
|
@@ -105265,11 +105264,11 @@ function tqt(t, e) {
|
|
|
105265
105264
|
}
|
|
105266
105265
|
return { ...t, ...r };
|
|
105267
105266
|
}
|
|
105268
|
-
function
|
|
105267
|
+
function tqt(t) {
|
|
105269
105268
|
let e = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, r = e && "isReactWarning" in e && e.isReactWarning;
|
|
105270
105269
|
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);
|
|
105271
105270
|
}
|
|
105272
|
-
var
|
|
105271
|
+
var rqt = [
|
|
105273
105272
|
"a",
|
|
105274
105273
|
"button",
|
|
105275
105274
|
"div",
|
|
@@ -105287,17 +105286,17 @@ var nqt = [
|
|
|
105287
105286
|
"span",
|
|
105288
105287
|
"svg",
|
|
105289
105288
|
"ul"
|
|
105290
|
-
], k0 =
|
|
105291
|
-
const r = /* @__PURE__ */
|
|
105289
|
+
], k0 = rqt.reduce((t, e) => {
|
|
105290
|
+
const r = /* @__PURE__ */ YWt(`Primitive.${e}`), n = ue.forwardRef((a, i) => {
|
|
105292
105291
|
const { asChild: s, ...l } = a, c = s ? r : e;
|
|
105293
105292
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ L(c, { ...l, ref: i });
|
|
105294
105293
|
});
|
|
105295
105294
|
return n.displayName = `Primitive.${e}`, { ...t, [e]: n };
|
|
105296
|
-
}, {}), ca = '[cmdk-group=""]', Mu = '[cmdk-group-items=""]',
|
|
105295
|
+
}, {}), ca = '[cmdk-group=""]', Mu = '[cmdk-group-items=""]', nqt = '[cmdk-group-heading=""]', _$e = '[cmdk-item=""]', iCe = `${_$e}:not([aria-disabled="true"])`, Jd = "cmdk-item-select", U2 = "data-value", oqt = (t, e, r) => cUt(t, e, r), N$e = ue.createContext(void 0), Ei = () => ue.useContext(N$e), C$e = ue.createContext(void 0), np = () => ue.useContext(C$e), z$e = ue.createContext(void 0), T$e = ue.forwardRef((t, e) => {
|
|
105297
105296
|
let r = W2(() => {
|
|
105298
105297
|
var _, T;
|
|
105299
105298
|
return { search: "", value: (T = (_ = t.value) != null ? _ : t.defaultValue) != null ? T : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
105300
|
-
}), n = W2(() => /* @__PURE__ */ new Set()), a = W2(() => /* @__PURE__ */ new Map()), i = W2(() => /* @__PURE__ */ new Map()), s = W2(() => /* @__PURE__ */ new Set()), l = O$e(t), { label: c, children: u, value: d, onValueChange: m, filter: w, shouldFilter: g, loop: H, disablePointerSelection: E = !1, vimBindings: M = !0, ...b } = t, v = Wn(), y = Wn(), x = Wn(), V = ue.useRef(null), A =
|
|
105299
|
+
}), n = W2(() => /* @__PURE__ */ new Set()), a = W2(() => /* @__PURE__ */ new Map()), i = W2(() => /* @__PURE__ */ new Map()), s = W2(() => /* @__PURE__ */ new Set()), l = O$e(t), { label: c, children: u, value: d, onValueChange: m, filter: w, shouldFilter: g, loop: H, disablePointerSelection: E = !1, vimBindings: M = !0, ...b } = t, v = Wn(), y = Wn(), x = Wn(), V = ue.useRef(null), A = mqt();
|
|
105301
105300
|
E2(() => {
|
|
105302
105301
|
if (d !== void 0) {
|
|
105303
105302
|
let _ = d.trim();
|
|
@@ -105346,7 +105345,7 @@ var nqt = [
|
|
|
105346
105345
|
}), filter: () => l.current.shouldFilter, label: c || t["aria-label"], getDisablePointerSelection: () => l.current.disablePointerSelection, listId: v, inputId: x, labelId: y, listInnerRef: V }), []);
|
|
105347
105346
|
function P(_, T) {
|
|
105348
105347
|
var z, I;
|
|
105349
|
-
let X = (I = (z = l.current) == null ? void 0 : z.filter) != null ? I :
|
|
105348
|
+
let X = (I = (z = l.current) == null ? void 0 : z.filter) != null ? I : oqt;
|
|
105350
105349
|
return _ ? X(_, r.current.search, T) : 0;
|
|
105351
105350
|
}
|
|
105352
105351
|
function S() {
|
|
@@ -105398,7 +105397,7 @@ var nqt = [
|
|
|
105398
105397
|
function k() {
|
|
105399
105398
|
var _, T, z;
|
|
105400
105399
|
let I = J();
|
|
105401
|
-
I && (((_ = I.parentElement) == null ? void 0 : _.firstChild) === I && ((z = (T = I.closest(ca)) == null ? void 0 : T.querySelector(
|
|
105400
|
+
I && (((_ = I.parentElement) == null ? void 0 : _.firstChild) === I && ((z = (T = I.closest(ca)) == null ? void 0 : T.querySelector(nqt)) == null || z.scrollIntoView({ block: "nearest" })), I.scrollIntoView({ block: "nearest" }));
|
|
105402
105401
|
}
|
|
105403
105402
|
function J() {
|
|
105404
105403
|
var _;
|
|
@@ -105419,7 +105418,7 @@ var nqt = [
|
|
|
105419
105418
|
}
|
|
105420
105419
|
function Q(_) {
|
|
105421
105420
|
let T = J(), z = T?.closest(ca), I;
|
|
105422
|
-
for (; z && !I; ) z = _ > 0 ?
|
|
105421
|
+
for (; z && !I; ) z = _ > 0 ? pqt(z, ca) : fqt(z, ca), I = z?.querySelector(iCe);
|
|
105423
105422
|
I ? N.setState("value", I.getAttribute(U2)) : ce(_);
|
|
105424
105423
|
}
|
|
105425
105424
|
let oe = () => le(ne().length - 1), O = (_) => {
|
|
@@ -105467,8 +105466,8 @@ var nqt = [
|
|
|
105467
105466
|
}
|
|
105468
105467
|
}
|
|
105469
105468
|
}
|
|
105470
|
-
} }, ue.createElement("label", { "cmdk-label": "", htmlFor: C.inputId, id: C.labelId, style:
|
|
105471
|
-
}),
|
|
105469
|
+
} }, ue.createElement("label", { "cmdk-label": "", htmlFor: C.inputId, id: C.labelId, style: gqt }, c), T3(t, (_) => ue.createElement(C$e.Provider, { value: N }, ue.createElement(N$e.Provider, { value: C }, _))));
|
|
105470
|
+
}), aqt = ue.forwardRef((t, e) => {
|
|
105472
105471
|
var r, n;
|
|
105473
105472
|
let a = Wn(), i = ue.useRef(null), s = ue.useContext(z$e), l = Ei(), c = O$e(t), u = (n = (r = c.current) == null ? void 0 : r.forceMount) != null ? n : s?.forceMount;
|
|
105474
105473
|
E2(() => {
|
|
@@ -105489,22 +105488,22 @@ var nqt = [
|
|
|
105489
105488
|
if (!g) return null;
|
|
105490
105489
|
let { disabled: M, value: b, onSelect: v, forceMount: y, keywords: x, ...V } = t;
|
|
105491
105490
|
return ue.createElement(k0.div, { ref: L0(i, e), ...V, id: a, "cmdk-item": "", role: "option", "aria-disabled": !!M, "aria-selected": !!w, "data-disabled": !!M, "data-selected": !!w, onPointerMove: M || l.getDisablePointerSelection() ? void 0 : E, onClick: M ? void 0 : H }, t.children);
|
|
105492
|
-
}),
|
|
105491
|
+
}), iqt = ue.forwardRef((t, e) => {
|
|
105493
105492
|
let { heading: r, children: n, forceMount: a, ...i } = t, s = Wn(), l = ue.useRef(null), c = ue.useRef(null), u = Wn(), d = Ei(), m = R0((g) => a || d.filter() === !1 ? !0 : g.search ? g.filtered.groups.has(s) : !0);
|
|
105494
105493
|
E2(() => d.group(s), []), L$e(s, l, [t.value, t.heading, c]);
|
|
105495
105494
|
let w = ue.useMemo(() => ({ id: s, forceMount: a }), [a]);
|
|
105496
105495
|
return ue.createElement(k0.div, { ref: L0(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: u }, r), T3(t, (g) => ue.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": r ? u : void 0 }, ue.createElement(z$e.Provider, { value: w }, g))));
|
|
105497
|
-
}),
|
|
105496
|
+
}), sqt = ue.forwardRef((t, e) => {
|
|
105498
105497
|
let { alwaysRender: r, ...n } = t, a = ue.useRef(null), i = R0((s) => !s.search);
|
|
105499
105498
|
return !r && !i ? null : ue.createElement(k0.div, { ref: L0(a, e), ...n, "cmdk-separator": "", role: "separator" });
|
|
105500
|
-
}),
|
|
105499
|
+
}), lqt = ue.forwardRef((t, e) => {
|
|
105501
105500
|
let { onValueChange: r, ...n } = t, a = t.value != null, i = np(), s = R0((u) => u.search), l = R0((u) => u.selectedItemId), c = Ei();
|
|
105502
105501
|
return ue.useEffect(() => {
|
|
105503
105502
|
t.value != null && i.setState("search", t.value);
|
|
105504
105503
|
}, [t.value]), ue.createElement(k0.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: (u) => {
|
|
105505
105504
|
a || i.setState("search", u.target.value), r?.(u.target.value);
|
|
105506
105505
|
} });
|
|
105507
|
-
}),
|
|
105506
|
+
}), cqt = ue.forwardRef((t, e) => {
|
|
105508
105507
|
let { children: r, label: n = "Suggestions", ...a } = t, i = ue.useRef(null), s = ue.useRef(null), l = R0((u) => u.selectedItemId), c = Ei();
|
|
105509
105508
|
return ue.useEffect(() => {
|
|
105510
105509
|
if (s.current && i.current) {
|
|
@@ -105519,21 +105518,21 @@ var nqt = [
|
|
|
105519
105518
|
};
|
|
105520
105519
|
}
|
|
105521
105520
|
}, []), ue.createElement(k0.div, { ref: L0(i, e), ...a, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": l, "aria-label": n, id: c.listId }, T3(t, (u) => ue.createElement("div", { ref: L0(s, c.listInnerRef), "cmdk-list-sizer": "" }, u)));
|
|
105522
|
-
}),
|
|
105521
|
+
}), uqt = ue.forwardRef((t, e) => {
|
|
105523
105522
|
let { open: r, onOpenChange: n, overlayClassName: a, contentClassName: i, container: s, ...l } = t;
|
|
105524
|
-
return ue.createElement(
|
|
105525
|
-
}),
|
|
105523
|
+
return ue.createElement(jWt, { open: r, onOpenChange: n }, ue.createElement(UWt, { container: s }, ue.createElement(WWt, { "cmdk-overlay": "", className: a }), ue.createElement(qWt, { "aria-label": t.label, "cmdk-dialog": "", className: i }, ue.createElement(T$e, { ref: e, ...l }))));
|
|
105524
|
+
}), dqt = ue.forwardRef((t, e) => R0((r) => r.filtered.count === 0) ? ue.createElement(k0.div, { ref: e, ...t, "cmdk-empty": "", role: "presentation" }) : null), hqt = ue.forwardRef((t, e) => {
|
|
105526
105525
|
let { progress: r, children: n, label: a = "Loading...", ...i } = t;
|
|
105527
105526
|
return ue.createElement(k0.div, { ref: e, ...i, "cmdk-loading": "", role: "progressbar", "aria-valuenow": r, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": a }, T3(t, (s) => ue.createElement("div", { "aria-hidden": !0 }, s)));
|
|
105528
|
-
}), yn = Object.assign(T$e, { List:
|
|
105529
|
-
function
|
|
105527
|
+
}), yn = Object.assign(T$e, { List: cqt, Item: aqt, Input: lqt, Group: iqt, Separator: sqt, Dialog: uqt, Empty: dqt, Loading: hqt });
|
|
105528
|
+
function pqt(t, e) {
|
|
105530
105529
|
let r = t.nextElementSibling;
|
|
105531
105530
|
for (; r; ) {
|
|
105532
105531
|
if (r.matches(e)) return r;
|
|
105533
105532
|
r = r.nextElementSibling;
|
|
105534
105533
|
}
|
|
105535
105534
|
}
|
|
105536
|
-
function
|
|
105535
|
+
function fqt(t, e) {
|
|
105537
105536
|
let r = t.previousElementSibling;
|
|
105538
105537
|
for (; r; ) {
|
|
105539
105538
|
if (r.matches(e)) return r;
|
|
@@ -105569,7 +105568,7 @@ function L$e(t, e, r, n = []) {
|
|
|
105569
105568
|
i.value(t, l, c), (s = e.current) == null || s.setAttribute(U2, l), a.current = l;
|
|
105570
105569
|
}), a;
|
|
105571
105570
|
}
|
|
105572
|
-
var
|
|
105571
|
+
var mqt = () => {
|
|
105573
105572
|
let [t, e] = ue.useState(), r = W2(() => /* @__PURE__ */ new Map());
|
|
105574
105573
|
return E2(() => {
|
|
105575
105574
|
r.current.forEach((n) => n()), r.current = /* @__PURE__ */ new Map();
|
|
@@ -105577,47 +105576,47 @@ var wqt = () => {
|
|
|
105577
105576
|
r.current.set(n, a), e({});
|
|
105578
105577
|
};
|
|
105579
105578
|
};
|
|
105580
|
-
function
|
|
105579
|
+
function wqt(t) {
|
|
105581
105580
|
let e = t.type;
|
|
105582
105581
|
return typeof e == "function" ? e(t.props) : "render" in e ? e.render(t.props) : t;
|
|
105583
105582
|
}
|
|
105584
105583
|
function T3({ asChild: t, children: e }, r) {
|
|
105585
|
-
return t && ue.isValidElement(e) ? ue.cloneElement(
|
|
105586
|
-
}
|
|
105587
|
-
var
|
|
105588
|
-
const
|
|
105589
|
-
overlay:
|
|
105590
|
-
dialog:
|
|
105591
|
-
inputWrapper:
|
|
105592
|
-
searchIcon:
|
|
105593
|
-
input:
|
|
105594
|
-
annotationSuggestionPrefix:
|
|
105595
|
-
annotationBadge:
|
|
105596
|
-
escHint:
|
|
105597
|
-
list:
|
|
105598
|
-
empty:
|
|
105599
|
-
group:
|
|
105600
|
-
item:
|
|
105601
|
-
itemActions:
|
|
105602
|
-
chevronButton:
|
|
105603
|
-
navIcon:
|
|
105604
|
-
avatar:
|
|
105605
|
-
itemContent:
|
|
105606
|
-
itemLabel:
|
|
105607
|
-
additionalFields:
|
|
105608
|
-
additionalField:
|
|
105609
|
-
fieldLabel:
|
|
105610
|
-
chevronIcon:
|
|
105611
|
-
actionButton:
|
|
105612
|
-
actionButtonLabel:
|
|
105613
|
-
actionButtonDefault:
|
|
105614
|
-
actionEnterHint:
|
|
105615
|
-
loading:
|
|
105616
|
-
ekgLine:
|
|
105617
|
-
ekgPath:
|
|
105618
|
-
footer:
|
|
105619
|
-
shortcutHint:
|
|
105620
|
-
kbd:
|
|
105584
|
+
return t && ue.isValidElement(e) ? ue.cloneElement(wqt(e), { ref: e.ref }, r(e.props.children)) : r(e);
|
|
105585
|
+
}
|
|
105586
|
+
var gqt = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
105587
|
+
const vqt = "CommandPalette-module_overlay__MMHhx", Eqt = "CommandPalette-module_dialog__9Bete", yqt = "CommandPalette-module_inputWrapper__-gPbe", Vqt = "CommandPalette-module_searchIcon__9SuOa", Hqt = "CommandPalette-module_input__Qk6nY", Mqt = "CommandPalette-module_annotationSuggestionPrefix__zaXFp", bqt = "CommandPalette-module_annotationBadge__L0nIf", xqt = "CommandPalette-module_escHint__cnr7R", Aqt = "CommandPalette-module_list__J8pb6", _qt = "CommandPalette-module_empty__XFtVI", Nqt = "CommandPalette-module_group__dFVy1", Cqt = "CommandPalette-module_item__KVHYz", zqt = "CommandPalette-module_itemActions__JEA1i", Tqt = "CommandPalette-module_chevronButton__AJ6gx", Oqt = "CommandPalette-module_navIcon__D-qMS", Lqt = "CommandPalette-module_avatar__1yb6S", Rqt = "CommandPalette-module_itemContent__nMTsU", Dqt = "CommandPalette-module_itemLabel__5-tfj", Sqt = "CommandPalette-module_additionalFields__RTptn", $qt = "CommandPalette-module_additionalField__quBWU", Iqt = "CommandPalette-module_fieldLabel__fydJO", kqt = "CommandPalette-module_chevronIcon__-CEOh", Zqt = "CommandPalette-module_actionButton__If4Pm", Bqt = "CommandPalette-module_actionButtonLabel__aikTo", Pqt = "CommandPalette-module_actionButtonDefault__OhyJg", Fqt = "CommandPalette-module_actionEnterHint__aAtZ4", jqt = "CommandPalette-module_loading__Dv3-h", Uqt = "CommandPalette-module_ekgLine__scLbr", Wqt = "CommandPalette-module_ekgPath__RTNDz", qqt = "CommandPalette-module_footer__HGa-Q", Kqt = "CommandPalette-module_shortcutHint__NkFX8", Gqt = "CommandPalette-module_kbd__k9aaD", ht = {
|
|
105588
|
+
overlay: vqt,
|
|
105589
|
+
dialog: Eqt,
|
|
105590
|
+
inputWrapper: yqt,
|
|
105591
|
+
searchIcon: Vqt,
|
|
105592
|
+
input: Hqt,
|
|
105593
|
+
annotationSuggestionPrefix: Mqt,
|
|
105594
|
+
annotationBadge: bqt,
|
|
105595
|
+
escHint: xqt,
|
|
105596
|
+
list: Aqt,
|
|
105597
|
+
empty: _qt,
|
|
105598
|
+
group: Nqt,
|
|
105599
|
+
item: Cqt,
|
|
105600
|
+
itemActions: zqt,
|
|
105601
|
+
chevronButton: Tqt,
|
|
105602
|
+
navIcon: Oqt,
|
|
105603
|
+
avatar: Lqt,
|
|
105604
|
+
itemContent: Rqt,
|
|
105605
|
+
itemLabel: Dqt,
|
|
105606
|
+
additionalFields: Sqt,
|
|
105607
|
+
additionalField: $qt,
|
|
105608
|
+
fieldLabel: Iqt,
|
|
105609
|
+
chevronIcon: kqt,
|
|
105610
|
+
actionButton: Zqt,
|
|
105611
|
+
actionButtonLabel: Bqt,
|
|
105612
|
+
actionButtonDefault: Pqt,
|
|
105613
|
+
actionEnterHint: Fqt,
|
|
105614
|
+
loading: jqt,
|
|
105615
|
+
ekgLine: Uqt,
|
|
105616
|
+
ekgPath: Wqt,
|
|
105617
|
+
footer: qqt,
|
|
105618
|
+
shortcutHint: Kqt,
|
|
105619
|
+
kbd: Gqt
|
|
105621
105620
|
}, Zn = {
|
|
105622
105621
|
name: "COMMAND_PALETTE_FIELD_NAME",
|
|
105623
105622
|
identifier: "COMMAND_PALETTE_FIELD_ID",
|
|
@@ -105665,16 +105664,16 @@ const Eqt = "CommandPalette-module_overlay__MMHhx", yqt = "CommandPalette-module
|
|
|
105665
105664
|
labelKey: Zn.activeVisitUuid,
|
|
105666
105665
|
getValue: (t) => t.activeVisitUuid ? "Active" : null
|
|
105667
105666
|
}
|
|
105668
|
-
},
|
|
105669
|
-
function
|
|
105667
|
+
}, Yqt = (t, e) => t.startsWith("patient:") || e.length < 2 || t.toLowerCase().includes(e.toLowerCase()) ? 1 : 0;
|
|
105668
|
+
function Jqt(t, e) {
|
|
105670
105669
|
const r = t?.[0] ?? "", n = e?.[0] ?? "";
|
|
105671
105670
|
return (r + n).toUpperCase() || "?";
|
|
105672
105671
|
}
|
|
105673
|
-
function
|
|
105672
|
+
function Xqt(t, e) {
|
|
105674
105673
|
return e.map((r) => cl[r].getValue(t)).filter(Boolean).join(" · ");
|
|
105675
105674
|
}
|
|
105676
|
-
const
|
|
105677
|
-
function
|
|
105675
|
+
const Qqt = 350;
|
|
105676
|
+
function eKt(t) {
|
|
105678
105677
|
const e = t.toLowerCase().split("+"), r = e.at(-1), n = new Set(e.slice(0, -1));
|
|
105679
105678
|
return {
|
|
105680
105679
|
key: r,
|
|
@@ -105686,18 +105685,18 @@ function tKt(t) {
|
|
|
105686
105685
|
}
|
|
105687
105686
|
function sCe(t, e) {
|
|
105688
105687
|
return e.some((r) => {
|
|
105689
|
-
const n =
|
|
105688
|
+
const n = eKt(r);
|
|
105690
105689
|
return t.key.toLowerCase() === n.key && t.metaKey === n.meta && t.ctrlKey === n.ctrl && t.shiftKey === n.shift && t.altKey === n.alt;
|
|
105691
105690
|
});
|
|
105692
105691
|
}
|
|
105693
|
-
const
|
|
105692
|
+
const tKt = ({
|
|
105694
105693
|
patient: t,
|
|
105695
105694
|
patientFieldsConfig: e,
|
|
105696
105695
|
patientActions: r,
|
|
105697
105696
|
activeActionIndex: n,
|
|
105698
105697
|
onNavigate: a
|
|
105699
105698
|
}) => {
|
|
105700
|
-
const { t: i } = dt("command-palette"), [s, l] = ve(!1), c = r[n], u = cl.name.getValue(t) ?? "", d =
|
|
105699
|
+
const { t: i } = dt("command-palette"), [s, l] = ve(!1), c = r[n], u = cl.name.getValue(t) ?? "", d = Jqt(t.givenName, t.familyName), m = Xqt(
|
|
105701
105700
|
t,
|
|
105702
105701
|
e.primaryFields
|
|
105703
105702
|
), w = {
|
|
@@ -105771,7 +105770,7 @@ const rKt = ({
|
|
|
105771
105770
|
}
|
|
105772
105771
|
);
|
|
105773
105772
|
}, op = S1(null);
|
|
105774
|
-
function
|
|
105773
|
+
function rKt() {
|
|
105775
105774
|
const t = Ht(op);
|
|
105776
105775
|
if (!t)
|
|
105777
105776
|
throw new Error(
|
|
@@ -105779,7 +105778,7 @@ function nKt() {
|
|
|
105779
105778
|
);
|
|
105780
105779
|
return t;
|
|
105781
105780
|
}
|
|
105782
|
-
function
|
|
105781
|
+
function nKt(t, e = 500) {
|
|
105783
105782
|
const [r, n] = ve(t);
|
|
105784
105783
|
return be(() => {
|
|
105785
105784
|
const a = setTimeout(() => {
|
|
@@ -105790,8 +105789,8 @@ function oKt(t, e = 500) {
|
|
|
105790
105789
|
};
|
|
105791
105790
|
}, [t, e]), r;
|
|
105792
105791
|
}
|
|
105793
|
-
function
|
|
105794
|
-
const [r, n] = ve([]), [a, i] = ve(!1), [s, l] = ve(null), c =
|
|
105792
|
+
function oKt(t, e = null) {
|
|
105793
|
+
const [r, n] = ve([]), [a, i] = ve(!1), [s, l] = ve(null), c = nKt(t, 300), u = Ae(0);
|
|
105795
105794
|
return be(() => {
|
|
105796
105795
|
t.length >= 2 ? i(!0) : (i(!1), n([]), l(null));
|
|
105797
105796
|
}, [t]), be(() => {
|
|
@@ -105819,7 +105818,7 @@ function aKt(t, e = null) {
|
|
|
105819
105818
|
};
|
|
105820
105819
|
}, [c, e]), { patients: r, loading: a, error: s };
|
|
105821
105820
|
}
|
|
105822
|
-
const
|
|
105821
|
+
const aKt = () => /* @__PURE__ */ _e(
|
|
105823
105822
|
"svg",
|
|
105824
105823
|
{
|
|
105825
105824
|
className: ht.searchIcon,
|
|
@@ -105840,7 +105839,7 @@ const iKt = () => /* @__PURE__ */ _e(
|
|
|
105840
105839
|
)
|
|
105841
105840
|
]
|
|
105842
105841
|
}
|
|
105843
|
-
),
|
|
105842
|
+
), iKt = () => {
|
|
105844
105843
|
const { t } = dt("command-palette"), {
|
|
105845
105844
|
isOpen: e,
|
|
105846
105845
|
setOpen: r,
|
|
@@ -105848,7 +105847,7 @@ const iKt = () => /* @__PURE__ */ _e(
|
|
|
105848
105847
|
patientActions: a,
|
|
105849
105848
|
patientFieldsConfig: i,
|
|
105850
105849
|
searchAnnotations: s
|
|
105851
|
-
} =
|
|
105850
|
+
} = rKt(), [l, c] = ve(""), [u, d] = ve(null), [m, w] = ve(0), { patients: g, loading: H, error: E } = oKt(
|
|
105852
105851
|
l,
|
|
105853
105852
|
u
|
|
105854
105853
|
), M = Ze(() => {
|
|
@@ -105929,10 +105928,10 @@ const iKt = () => /* @__PURE__ */ _e(
|
|
|
105929
105928
|
{
|
|
105930
105929
|
label: t("COMMAND_PALETTE_ARIA_LABEL"),
|
|
105931
105930
|
onValueChange: x,
|
|
105932
|
-
filter:
|
|
105931
|
+
filter: Yqt,
|
|
105933
105932
|
children: [
|
|
105934
105933
|
/* @__PURE__ */ _e("div", { className: ht.inputWrapper, children: [
|
|
105935
|
-
/* @__PURE__ */ L(
|
|
105934
|
+
/* @__PURE__ */ L(aKt, {}),
|
|
105936
105935
|
u && /* @__PURE__ */ L("span", { className: ht.annotationBadge, children: u.label }),
|
|
105937
105936
|
/* @__PURE__ */ L(
|
|
105938
105937
|
yn.Input,
|
|
@@ -106019,7 +106018,7 @@ const iKt = () => /* @__PURE__ */ _e(
|
|
|
106019
106018
|
heading: t("COMMAND_PALETTE_GROUP_PATIENTS"),
|
|
106020
106019
|
className: ht.group,
|
|
106021
106020
|
children: g.map((k) => /* @__PURE__ */ L(
|
|
106022
|
-
|
|
106021
|
+
tKt,
|
|
106023
106022
|
{
|
|
106024
106023
|
patient: k,
|
|
106025
106024
|
patientFieldsConfig: i,
|
|
@@ -106063,7 +106062,7 @@ const iKt = () => /* @__PURE__ */ _e(
|
|
|
106063
106062
|
document.body
|
|
106064
106063
|
);
|
|
106065
106064
|
};
|
|
106066
|
-
function
|
|
106065
|
+
function sKt(t, e, r) {
|
|
106067
106066
|
const n = Ae(0);
|
|
106068
106067
|
be(() => {
|
|
106069
106068
|
const a = (i) => {
|
|
@@ -106076,7 +106075,7 @@ function lKt(t, e, r) {
|
|
|
106076
106075
|
else if (r.type === "double") {
|
|
106077
106076
|
const s = document.activeElement, l = s instanceof HTMLInputElement || s instanceof HTMLTextAreaElement || s instanceof HTMLSelectElement || s?.isContentEditable;
|
|
106078
106077
|
if (sCe(i, r.keys) && !l) {
|
|
106079
|
-
const c = Date.now(), u = r.interval ??
|
|
106078
|
+
const c = Date.now(), u = r.interval ?? Qqt;
|
|
106080
106079
|
c - n.current <= u ? (i.preventDefault(), e(), n.current = 0) : n.current = c;
|
|
106081
106080
|
}
|
|
106082
106081
|
}
|
|
@@ -106084,7 +106083,7 @@ function lKt(t, e, r) {
|
|
|
106084
106083
|
return document.addEventListener("keydown", a), () => document.removeEventListener("keydown", a);
|
|
106085
106084
|
}, [t, e, r]);
|
|
106086
106085
|
}
|
|
106087
|
-
const
|
|
106086
|
+
const lKt = ({
|
|
106088
106087
|
children: t,
|
|
106089
106088
|
navItems: e,
|
|
106090
106089
|
patientActions: r,
|
|
@@ -106093,7 +106092,7 @@ const cKt = ({
|
|
|
106093
106092
|
searchAnnotations: i
|
|
106094
106093
|
}) => {
|
|
106095
106094
|
const [s, l] = ve(!1), c = Ze(() => l((d) => !d), []);
|
|
106096
|
-
|
|
106095
|
+
sKt(s, c, a);
|
|
106097
106096
|
const u = ke(
|
|
106098
106097
|
() => ({
|
|
106099
106098
|
isOpen: s,
|
|
@@ -106115,11 +106114,11 @@ const cKt = ({
|
|
|
106115
106114
|
);
|
|
106116
106115
|
return /* @__PURE__ */ _e(op.Provider, { value: u, children: [
|
|
106117
106116
|
t,
|
|
106118
|
-
/* @__PURE__ */ L(
|
|
106117
|
+
/* @__PURE__ */ L(iKt, {})
|
|
106119
106118
|
] });
|
|
106120
|
-
},
|
|
106121
|
-
|
|
106122
|
-
const
|
|
106119
|
+
}, cKt = (t) => Ht(op) ? /* @__PURE__ */ L(p1, { children: t.children }) : /* @__PURE__ */ L(lKt, { ...t });
|
|
106120
|
+
cKt.displayName = "CommandPaletteProvider";
|
|
106121
|
+
const uKt = ({
|
|
106123
106122
|
children: t
|
|
106124
106123
|
}) => {
|
|
106125
106124
|
const [e, r] = ve(
|
|
@@ -106156,8 +106155,8 @@ const dKt = ({
|
|
|
106156
106155
|
);
|
|
106157
106156
|
return /* @__PURE__ */ L(gSe.Provider, { value: l, children: t });
|
|
106158
106157
|
};
|
|
106159
|
-
|
|
106160
|
-
const
|
|
106158
|
+
uKt.displayName = "UserPrivilegeProvider";
|
|
106159
|
+
const kYt = {
|
|
106161
106160
|
ENCOUNTER: ["Add Encounters"],
|
|
106162
106161
|
ALLERGIES: ["Add Allergies"],
|
|
106163
106162
|
EDIT_ALLERGIES: ["Edit Allergies"],
|
|
@@ -106167,7 +106166,7 @@ const ZYt = {
|
|
|
106167
106166
|
MEDICATIONS: ["Add Orders"],
|
|
106168
106167
|
OBSERVATIONS: ["Add Observations"],
|
|
106169
106168
|
VACCINATIONS: ["Add Orders"]
|
|
106170
|
-
},
|
|
106169
|
+
}, dKt = ({
|
|
106171
106170
|
children: t
|
|
106172
106171
|
}) => (be(() => {
|
|
106173
106172
|
CEt().then((e) => {
|
|
@@ -106176,13 +106175,13 @@ const ZYt = {
|
|
|
106176
106175
|
console.error("Failed to load default date format:", e);
|
|
106177
106176
|
});
|
|
106178
106177
|
}, []), /* @__PURE__ */ L(p1, { children: t }));
|
|
106179
|
-
|
|
106180
|
-
const
|
|
106181
|
-
errorState:
|
|
106182
|
-
errorStateTitle:
|
|
106183
|
-
errorStateBody:
|
|
106178
|
+
dKt.displayName = "AppContextProvider";
|
|
106179
|
+
const hKt = "configProvider-module_errorState__l62qJ", pKt = "configProvider-module_errorStateTitle__RGFEv", fKt = "configProvider-module_errorStateBody__QlP3w", bu = {
|
|
106180
|
+
errorState: hKt,
|
|
106181
|
+
errorStateTitle: pKt,
|
|
106182
|
+
errorStateBody: fKt
|
|
106184
106183
|
};
|
|
106185
|
-
function
|
|
106184
|
+
function ZYt(t) {
|
|
106186
106185
|
const {
|
|
106187
106186
|
context: e,
|
|
106188
106187
|
queryKey: r,
|
|
@@ -106246,7 +106245,7 @@ function BYt(t) {
|
|
|
106246
106245
|
};
|
|
106247
106246
|
return c.displayName = l, c;
|
|
106248
106247
|
}
|
|
106249
|
-
function
|
|
106248
|
+
function BYt(t, e, r) {
|
|
106250
106249
|
return () => {
|
|
106251
106250
|
const n = Ht(t);
|
|
106252
106251
|
if (!n)
|
|
@@ -106258,7 +106257,7 @@ function Bs(t) {
|
|
|
106258
106257
|
throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
106259
106258
|
}
|
|
106260
106259
|
var xu = { exports: {} }, lCe;
|
|
106261
|
-
function
|
|
106260
|
+
function mKt() {
|
|
106262
106261
|
return lCe || (lCe = 1, (function(t, e) {
|
|
106263
106262
|
(function(r) {
|
|
106264
106263
|
t.exports = r();
|
|
@@ -109979,59 +109978,59 @@ function wKt() {
|
|
|
109979
109978
|
});
|
|
109980
109979
|
})(xu)), xu.exports;
|
|
109981
109980
|
}
|
|
109982
|
-
var
|
|
109983
|
-
const dc = /* @__PURE__ */ T6(
|
|
109984
|
-
fullWidth:
|
|
109985
|
-
searchForm:
|
|
109986
|
-
dropdownCol:
|
|
109987
|
-
fullWidthCol:
|
|
109988
|
-
criterionRow:
|
|
109989
|
-
criterionSelector:
|
|
109990
|
-
criterionInput:
|
|
109991
|
-
criterionClose:
|
|
109992
|
-
rangeContainer:
|
|
109993
|
-
footer:
|
|
109994
|
-
rangeInputCol:
|
|
109995
|
-
datePicker:
|
|
109996
|
-
numericInput:
|
|
109997
|
-
dataTable:
|
|
109998
|
-
searchSummary:
|
|
109999
|
-
summaryLabel:
|
|
110000
|
-
criteriaSummary:
|
|
110001
|
-
searchCriteriaAccordion:
|
|
110002
|
-
searchCriteriaAccordionItem:
|
|
109981
|
+
var wKt = mKt();
|
|
109982
|
+
const dc = /* @__PURE__ */ T6(wKt), gKt = "CommonSearchWidget-module_fullWidth__8l-xH", vKt = "CommonSearchWidget-module_searchForm__gwnfT", EKt = "CommonSearchWidget-module_dropdownCol__LSvLq", yKt = "CommonSearchWidget-module_fullWidthCol__QzpMW", VKt = "CommonSearchWidget-module_criterionRow__Wqkgr", HKt = "CommonSearchWidget-module_criterionSelector__ZoiWU", MKt = "CommonSearchWidget-module_criterionInput__rkgZX", bKt = "CommonSearchWidget-module_criterionClose__JVNti", xKt = "CommonSearchWidget-module_rangeContainer__1f8ls", AKt = "CommonSearchWidget-module_footer__V9a1l", _Kt = "CommonSearchWidget-module_rangeInputCol__vpbY1", NKt = "CommonSearchWidget-module_datePicker__G1-0L", CKt = "CommonSearchWidget-module_numericInput__qGTvI", zKt = "CommonSearchWidget-module_dataTable__FH5MA", TKt = "CommonSearchWidget-module_searchSummary__FxisO", OKt = "CommonSearchWidget-module_summaryLabel__hcXNY", LKt = "CommonSearchWidget-module_criteriaSummary__NjPO-", RKt = "CommonSearchWidget-module_searchCriteriaAccordion__ULZzl", DKt = "CommonSearchWidget-module_searchCriteriaAccordionItem__4R7pn", Wt = {
|
|
109983
|
+
fullWidth: gKt,
|
|
109984
|
+
searchForm: vKt,
|
|
109985
|
+
dropdownCol: EKt,
|
|
109986
|
+
fullWidthCol: yKt,
|
|
109987
|
+
criterionRow: VKt,
|
|
109988
|
+
criterionSelector: HKt,
|
|
109989
|
+
criterionInput: MKt,
|
|
109990
|
+
criterionClose: bKt,
|
|
109991
|
+
rangeContainer: xKt,
|
|
109992
|
+
footer: AKt,
|
|
109993
|
+
rangeInputCol: _Kt,
|
|
109994
|
+
datePicker: NKt,
|
|
109995
|
+
numericInput: CKt,
|
|
109996
|
+
dataTable: zKt,
|
|
109997
|
+
searchSummary: TKt,
|
|
109998
|
+
summaryLabel: OKt,
|
|
109999
|
+
criteriaSummary: LKt,
|
|
110000
|
+
searchCriteriaAccordion: RKt,
|
|
110001
|
+
searchCriteriaAccordionItem: DKt
|
|
110003
110002
|
}, B1 = [];
|
|
110004
110003
|
for (let t = 0; t < 256; ++t)
|
|
110005
110004
|
B1.push((t + 256).toString(16).slice(1));
|
|
110006
|
-
function
|
|
110005
|
+
function SKt(t, e = 0) {
|
|
110007
110006
|
return (B1[t[e + 0]] + B1[t[e + 1]] + B1[t[e + 2]] + B1[t[e + 3]] + "-" + B1[t[e + 4]] + B1[t[e + 5]] + "-" + B1[t[e + 6]] + B1[t[e + 7]] + "-" + B1[t[e + 8]] + B1[t[e + 9]] + "-" + B1[t[e + 10]] + B1[t[e + 11]] + B1[t[e + 12]] + B1[t[e + 13]] + B1[t[e + 14]] + B1[t[e + 15]]).toLowerCase();
|
|
110008
110007
|
}
|
|
110009
|
-
const
|
|
110010
|
-
function
|
|
110011
|
-
return crypto.getRandomValues(
|
|
110008
|
+
const $Kt = new Uint8Array(16);
|
|
110009
|
+
function IKt() {
|
|
110010
|
+
return crypto.getRandomValues($Kt);
|
|
110012
110011
|
}
|
|
110013
|
-
function
|
|
110014
|
-
return crypto.randomUUID ? crypto.randomUUID() :
|
|
110012
|
+
function kKt(t, e, r) {
|
|
110013
|
+
return crypto.randomUUID ? crypto.randomUUID() : ZKt(t);
|
|
110015
110014
|
}
|
|
110016
|
-
function
|
|
110015
|
+
function ZKt(t, e, r) {
|
|
110017
110016
|
t = t || {};
|
|
110018
|
-
const n = t.random ?? t.rng?.() ??
|
|
110017
|
+
const n = t.random ?? t.rng?.() ?? IKt();
|
|
110019
110018
|
if (n.length < 16)
|
|
110020
110019
|
throw new Error("Random bytes length must be >= 16");
|
|
110021
|
-
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128,
|
|
110020
|
+
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, SKt(n);
|
|
110022
110021
|
}
|
|
110023
|
-
const
|
|
110022
|
+
const BKt = "location.uuid", PKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", FKt = ".kind", jKt = ".value", UKt = (t, e) => {
|
|
110024
110023
|
const r = t.trim();
|
|
110025
110024
|
return r ? e(`COMMON_SEARCH_RESULT_${tr(r)}`) : null;
|
|
110026
|
-
},
|
|
110025
|
+
}, WKt = {
|
|
110027
110026
|
formatDate: (t, e) => gt(t, e).formattedResult,
|
|
110028
110027
|
formatTime: (t, e) => gt(t, e, !1, ka).formattedResult,
|
|
110029
110028
|
formatDateTime: (t, e) => gt(t, e, !0).formattedResult,
|
|
110030
110029
|
formatAge: (t, e) => hi(t, e),
|
|
110031
110030
|
formatGender: VEt,
|
|
110032
110031
|
formatCountry: HEt,
|
|
110033
|
-
formatSearchResult:
|
|
110034
|
-
},
|
|
110032
|
+
formatSearchResult: UKt
|
|
110033
|
+
}, qKt = (t) => `SEARCHED_${tr(t)}`, R$e = (t) => (t.kind === "date" || t.kind === "numeric") && !!t.rangeAllowed, yi = (t) => "value" in t, KKt = (t, e, r) => t ? yi(t) ? t.value ? null : r : (R$e(e) ? !!t.from.value && !!t.to?.value : !!t.from.value) ? null : r : r, GKt = (t, e, r) => !e.regex || !t || !yi(t) || new RegExp(e.regex).test(t.value) ? null : r, YKt = (t, e, r) => {
|
|
110035
110034
|
if (!R$e(e) || !t || yi(t)) return null;
|
|
110036
110035
|
const n = t.from.value, a = t.to?.value;
|
|
110037
110036
|
if (!n || !a) return null;
|
|
@@ -110040,14 +110039,14 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110040
110039
|
return !Number.isNaN(i) && !Number.isNaN(s) && i > s ? r : null;
|
|
110041
110040
|
}
|
|
110042
110041
|
return new Date(n) > new Date(a) ? r : null;
|
|
110043
|
-
},
|
|
110042
|
+
}, JKt = (t) => t.keyType ? `${t.key}:${t.keyType}` : t.key, XKt = (t, e) => t.filter((r) => Dn(e, r.requiredPrivileges)).map((r) => ({
|
|
110044
110043
|
...r,
|
|
110045
110044
|
criteria: r.criteria.map((n) => ({
|
|
110046
110045
|
...n,
|
|
110047
|
-
id:
|
|
110046
|
+
id: JKt(n.field)
|
|
110048
110047
|
}))
|
|
110049
110048
|
})), Xd = (t) => ({
|
|
110050
|
-
rowId:
|
|
110049
|
+
rowId: kKt(),
|
|
110051
110050
|
criterionKey: t,
|
|
110052
110051
|
value: null,
|
|
110053
110052
|
validationError: null,
|
|
@@ -110059,17 +110058,17 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110059
110058
|
t.filter(
|
|
110060
110059
|
(r) => r.criterionKey !== null && r.rowId !== e
|
|
110061
110060
|
).map((r) => r.criterionKey)
|
|
110062
|
-
),
|
|
110061
|
+
), QKt = (t, e, r) => {
|
|
110063
110062
|
const n = D$e(e, r);
|
|
110064
110063
|
return t.filter((a) => !n.has(a.id));
|
|
110065
|
-
},
|
|
110064
|
+
}, eGt = (t, e) => {
|
|
110066
110065
|
const r = D$e(e);
|
|
110067
110066
|
return t.filter((n) => !r.has(n.id));
|
|
110068
|
-
}, uCe = (t, e, r) => t.map((n) => n.rowId === e ? { ...n, ...r(n) } : n),
|
|
110067
|
+
}, uCe = (t, e, r) => t.map((n) => n.rowId === e ? { ...n, ...r(n) } : n), tGt = (t, e, r, n) => {
|
|
110069
110068
|
switch (e.input.kind) {
|
|
110070
110069
|
case "text":
|
|
110071
110070
|
return {
|
|
110072
|
-
validationError:
|
|
110071
|
+
validationError: GKt(
|
|
110073
110072
|
t,
|
|
110074
110073
|
e.input,
|
|
110075
110074
|
n(`${e.translationKey}_INVALID_FORMAT`, {
|
|
@@ -110082,7 +110081,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110082
110081
|
case "date":
|
|
110083
110082
|
return {
|
|
110084
110083
|
validationError: null,
|
|
110085
|
-
rangeOrderError:
|
|
110084
|
+
rangeOrderError: YKt(
|
|
110086
110085
|
t,
|
|
110087
110086
|
e.input,
|
|
110088
110087
|
r
|
|
@@ -110091,16 +110090,16 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110091
110090
|
default:
|
|
110092
110091
|
return { validationError: null, rangeOrderError: null };
|
|
110093
110092
|
}
|
|
110094
|
-
},
|
|
110093
|
+
}, rGt = ({ field: t, value: e }) => yi(e) ? t.keyType ? {
|
|
110095
110094
|
operator: "AND",
|
|
110096
110095
|
conditions: [
|
|
110097
110096
|
{
|
|
110098
|
-
field: `${t.key}${
|
|
110097
|
+
field: `${t.key}${FKt}`,
|
|
110099
110098
|
comparator: "eq",
|
|
110100
110099
|
value: t.keyType
|
|
110101
110100
|
},
|
|
110102
110101
|
{
|
|
110103
|
-
field: `${t.key}${
|
|
110102
|
+
field: `${t.key}${jKt}`,
|
|
110104
110103
|
comparator: "eq",
|
|
110105
110104
|
value: e.value
|
|
110106
110105
|
}
|
|
@@ -110111,7 +110110,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110111
110110
|
{ field: t.key, comparator: "gt", value: e.from.value },
|
|
110112
110111
|
{ field: t.key, comparator: "lt", value: e.to.value }
|
|
110113
110112
|
]
|
|
110114
|
-
}, Au = (t) => dZt(new Date(t),
|
|
110113
|
+
}, Au = (t) => dZt(new Date(t), PKt), nGt = (t) => yi(t) ? { value: Au(t.value) } : {
|
|
110115
110114
|
from: {
|
|
110116
110115
|
...t.from,
|
|
110117
110116
|
value: t.from.value ? Au(t.from.value) : null
|
|
@@ -110122,28 +110121,28 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110122
110121
|
value: t.to.value ? Au(t.to.value) : null
|
|
110123
110122
|
}
|
|
110124
110123
|
}
|
|
110125
|
-
},
|
|
110124
|
+
}, oGt = (t, e) => t.filter(
|
|
110126
110125
|
(r) => r.criterionKey !== null && r.value !== null
|
|
110127
110126
|
).flatMap((r) => {
|
|
110128
110127
|
const n = e.find((i) => i.id === r.criterionKey);
|
|
110129
110128
|
if (!n) return [];
|
|
110130
|
-
const a = n.input.kind === "date" ?
|
|
110129
|
+
const a = n.input.kind === "date" ? nGt(r.value) : r.value;
|
|
110131
110130
|
return [{ field: n.field, value: a }];
|
|
110132
|
-
}),
|
|
110131
|
+
}), aGt = (t, e, r) => ({
|
|
110133
110132
|
entity: e,
|
|
110134
110133
|
criteria: {
|
|
110135
110134
|
operator: "AND",
|
|
110136
110135
|
conditions: [
|
|
110137
|
-
...t.map(
|
|
110138
|
-
{ field:
|
|
110136
|
+
...t.map(rGt),
|
|
110137
|
+
{ field: BKt, comparator: "eq", value: r }
|
|
110139
110138
|
]
|
|
110140
110139
|
}
|
|
110141
|
-
}),
|
|
110140
|
+
}), iGt = (t, e, r, n, a, i) => t.map((s) => {
|
|
110142
110141
|
if (!s.criterionKey)
|
|
110143
110142
|
return { ...s, validationError: r, rangeOrderError: null };
|
|
110144
110143
|
const l = e.find((m) => m.id === s.criterionKey);
|
|
110145
110144
|
if (!l) return s;
|
|
110146
|
-
const c =
|
|
110145
|
+
const c = KKt(
|
|
110147
110146
|
s.value,
|
|
110148
110147
|
l.input,
|
|
110149
110148
|
n
|
|
@@ -110154,14 +110153,14 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110154
110153
|
validationError: c,
|
|
110155
110154
|
rangeOrderError: null
|
|
110156
110155
|
};
|
|
110157
|
-
const { validationError: u, rangeOrderError: d } =
|
|
110156
|
+
const { validationError: u, rangeOrderError: d } = tGt(
|
|
110158
110157
|
s.value,
|
|
110159
110158
|
l,
|
|
110160
110159
|
a,
|
|
110161
110160
|
i
|
|
110162
110161
|
);
|
|
110163
110162
|
return { ...s, validationError: u, rangeOrderError: d };
|
|
110164
|
-
}),
|
|
110163
|
+
}), sGt = (t) => {
|
|
110165
110164
|
for (const e of t) {
|
|
110166
110165
|
if (e.resultFields.some((n) => n.action) && (!e.actions || e.actions.length === 0))
|
|
110167
110166
|
return "COMMON_SEARCH_CONFIG_VALIDATION_UNKNOWN_ACTION";
|
|
@@ -110178,7 +110177,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110178
110177
|
}
|
|
110179
110178
|
}
|
|
110180
110179
|
return null;
|
|
110181
|
-
},
|
|
110180
|
+
}, lGt = async (t, e) => {
|
|
110182
110181
|
try {
|
|
110183
110182
|
const r = [...t.matchAll(/\{([^}]+)\}/g)];
|
|
110184
110183
|
let n = t;
|
|
@@ -110191,12 +110190,12 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110191
110190
|
} catch {
|
|
110192
110191
|
return null;
|
|
110193
110192
|
}
|
|
110194
|
-
},
|
|
110193
|
+
}, cGt = async (t, e, r, n) => {
|
|
110195
110194
|
const a = e.map(({ id: i, field: s }) => ({
|
|
110196
110195
|
key: i,
|
|
110197
110196
|
expr: dc(s.expression),
|
|
110198
110197
|
field: s,
|
|
110199
|
-
transform: s.transform ?
|
|
110198
|
+
transform: s.transform ? WKt[s.transform] : void 0
|
|
110200
110199
|
}));
|
|
110201
110200
|
return Promise.all(
|
|
110202
110201
|
t.map(async (i) => {
|
|
@@ -110207,7 +110206,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110207
110206
|
if (s[l] = await c.evaluate(i), u.action && n) {
|
|
110208
110207
|
const d = n.find((m) => m.key === u.action);
|
|
110209
110208
|
if (d?.type === "navigate") {
|
|
110210
|
-
const m = await
|
|
110209
|
+
const m = await lGt(d.navigationURL, i);
|
|
110211
110210
|
s[`${l}_href`] = m;
|
|
110212
110211
|
}
|
|
110213
110212
|
}
|
|
@@ -110222,7 +110221,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110222
110221
|
return s;
|
|
110223
110222
|
})
|
|
110224
110223
|
);
|
|
110225
|
-
},
|
|
110224
|
+
}, uGt = ({
|
|
110226
110225
|
resultFields: t,
|
|
110227
110226
|
results: e,
|
|
110228
110227
|
actions: r
|
|
@@ -110258,7 +110257,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110258
110257
|
return null;
|
|
110259
110258
|
}, [t, r]);
|
|
110260
110259
|
be(() => {
|
|
110261
|
-
m || (c(null),
|
|
110260
|
+
m || (c(null), cGt(e, d, n, r).then(s).catch(() => c(n("COMMON_SEARCH_EVALUATION_ERROR"))));
|
|
110262
110261
|
}, [e, d, r, m, n]);
|
|
110263
110262
|
const w = m ?? l, g = Ze(
|
|
110264
110263
|
(E, M) => {
|
|
@@ -110292,15 +110291,15 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110292
110291
|
className: Wt.dataTable
|
|
110293
110292
|
}
|
|
110294
110293
|
);
|
|
110295
|
-
},
|
|
110296
|
-
$schema:
|
|
110297
|
-
title:
|
|
110298
|
-
description:
|
|
110299
|
-
type:
|
|
110300
|
-
minItems:
|
|
110301
|
-
items:
|
|
110302
|
-
definitions:
|
|
110303
|
-
},
|
|
110294
|
+
}, dGt = "http://json-schema.org/draft-07/schema#", hGt = "Common Search Widget Config Schema", pGt = "Configuration for the common search widget, defining search criteria per context", fGt = "array", mGt = 1, wGt = { $ref: "#/definitions/searchContextConfig" }, gGt = { searchContextConfig: { type: "object", required: ["context", "translationKey", "requiredPrivileges", "locationAware", "url", "pageSize", "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" }, 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: { 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" } } }, 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." } } } }, vGt = {
|
|
110295
|
+
$schema: dGt,
|
|
110296
|
+
title: hGt,
|
|
110297
|
+
description: pGt,
|
|
110298
|
+
type: fGt,
|
|
110299
|
+
minItems: mGt,
|
|
110300
|
+
items: wGt,
|
|
110301
|
+
definitions: gGt
|
|
110302
|
+
}, EGt = ({
|
|
110304
110303
|
input: t,
|
|
110305
110304
|
value: e,
|
|
110306
110305
|
onChange: r,
|
|
@@ -110409,7 +110408,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110409
110408
|
)
|
|
110410
110409
|
}
|
|
110411
110410
|
) });
|
|
110412
|
-
},
|
|
110411
|
+
}, yGt = ({
|
|
110413
110412
|
input: t,
|
|
110414
110413
|
value: e,
|
|
110415
110414
|
onChange: r,
|
|
@@ -110438,7 +110437,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110438
110437
|
)
|
|
110439
110438
|
}
|
|
110440
110439
|
);
|
|
110441
|
-
}, _u = (t) => t == null || t === "" ? null : String(t),
|
|
110440
|
+
}, _u = (t) => t == null || t === "" ? null : String(t), VGt = ({
|
|
110442
110441
|
input: t,
|
|
110443
110442
|
value: e,
|
|
110444
110443
|
onChange: r,
|
|
@@ -110539,7 +110538,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110539
110538
|
)
|
|
110540
110539
|
}
|
|
110541
110540
|
);
|
|
110542
|
-
},
|
|
110541
|
+
}, HGt = ({
|
|
110543
110542
|
input: t,
|
|
110544
110543
|
value: e,
|
|
110545
110544
|
onChange: r,
|
|
@@ -110569,7 +110568,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110569
110568
|
)
|
|
110570
110569
|
}
|
|
110571
110570
|
);
|
|
110572
|
-
},
|
|
110571
|
+
}, MGt = ({
|
|
110573
110572
|
input: t,
|
|
110574
110573
|
value: e,
|
|
110575
110574
|
onChange: r,
|
|
@@ -110592,7 +110591,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110592
110591
|
invalidText: n ?? void 0
|
|
110593
110592
|
}
|
|
110594
110593
|
) });
|
|
110595
|
-
},
|
|
110594
|
+
}, bGt = ({
|
|
110596
110595
|
input: t,
|
|
110597
110596
|
value: e,
|
|
110598
110597
|
onChange: r,
|
|
@@ -110602,7 +110601,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110602
110601
|
switch (t.kind) {
|
|
110603
110602
|
case "text":
|
|
110604
110603
|
return /* @__PURE__ */ L(
|
|
110605
|
-
|
|
110604
|
+
MGt,
|
|
110606
110605
|
{
|
|
110607
110606
|
input: t,
|
|
110608
110607
|
value: e,
|
|
@@ -110612,7 +110611,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110612
110611
|
);
|
|
110613
110612
|
case "numeric":
|
|
110614
110613
|
return /* @__PURE__ */ L(
|
|
110615
|
-
|
|
110614
|
+
VGt,
|
|
110616
110615
|
{
|
|
110617
110616
|
input: t,
|
|
110618
110617
|
value: e,
|
|
@@ -110623,7 +110622,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110623
110622
|
);
|
|
110624
110623
|
case "date":
|
|
110625
110624
|
return /* @__PURE__ */ L(
|
|
110626
|
-
|
|
110625
|
+
EGt,
|
|
110627
110626
|
{
|
|
110628
110627
|
input: t,
|
|
110629
110628
|
value: e,
|
|
@@ -110634,7 +110633,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110634
110633
|
);
|
|
110635
110634
|
case "options":
|
|
110636
110635
|
return /* @__PURE__ */ L(
|
|
110637
|
-
|
|
110636
|
+
HGt,
|
|
110638
110637
|
{
|
|
110639
110638
|
input: t,
|
|
110640
110639
|
value: e,
|
|
@@ -110644,7 +110643,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110644
110643
|
);
|
|
110645
110644
|
case "lookup":
|
|
110646
110645
|
return /* @__PURE__ */ L(
|
|
110647
|
-
|
|
110646
|
+
yGt,
|
|
110648
110647
|
{
|
|
110649
110648
|
input: t,
|
|
110650
110649
|
value: e,
|
|
@@ -110653,7 +110652,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110653
110652
|
}
|
|
110654
110653
|
);
|
|
110655
110654
|
}
|
|
110656
|
-
},
|
|
110655
|
+
}, xGt = ({
|
|
110657
110656
|
row: t,
|
|
110658
110657
|
availableCriteria: e,
|
|
110659
110658
|
selectedCriterion: r,
|
|
@@ -110688,7 +110687,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110688
110687
|
}
|
|
110689
110688
|
) }),
|
|
110690
110689
|
/* @__PURE__ */ L("div", { className: Wt.criterionInput, children: r ? /* @__PURE__ */ L(
|
|
110691
|
-
|
|
110690
|
+
bGt,
|
|
110692
110691
|
{
|
|
110693
110692
|
input: r.input,
|
|
110694
110693
|
value: t.value,
|
|
@@ -110711,7 +110710,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110711
110710
|
]
|
|
110712
110711
|
}
|
|
110713
110712
|
);
|
|
110714
|
-
},
|
|
110713
|
+
}, AGt = ({
|
|
110715
110714
|
config: t,
|
|
110716
110715
|
location: e,
|
|
110717
110716
|
onSearch: r,
|
|
@@ -110748,7 +110747,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110748
110747
|
);
|
|
110749
110748
|
}, H = (v) => {
|
|
110750
110749
|
d((y) => y.filter((x) => x.rowId !== v));
|
|
110751
|
-
}, E =
|
|
110750
|
+
}, E = eGt(
|
|
110752
110751
|
c.criteria,
|
|
110753
110752
|
u
|
|
110754
110753
|
), M = E.length > 0, b = () => {
|
|
@@ -110791,10 +110790,10 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110791
110790
|
}
|
|
110792
110791
|
) }),
|
|
110793
110792
|
u.map((v) => /* @__PURE__ */ L("div", { className: Wt.fullWidthCol, children: /* @__PURE__ */ L(
|
|
110794
|
-
|
|
110793
|
+
xGt,
|
|
110795
110794
|
{
|
|
110796
110795
|
row: v,
|
|
110797
|
-
availableCriteria:
|
|
110796
|
+
availableCriteria: QKt(
|
|
110798
110797
|
c.criteria,
|
|
110799
110798
|
u,
|
|
110800
110799
|
v.rowId
|
|
@@ -110841,7 +110840,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110841
110840
|
]
|
|
110842
110841
|
}
|
|
110843
110842
|
);
|
|
110844
|
-
},
|
|
110843
|
+
}, _Gt = (t, e, r) => {
|
|
110845
110844
|
if ("value" in t) {
|
|
110846
110845
|
if (e.kind === "options") {
|
|
110847
110846
|
const a = e.options.find((i) => i.value === t.value);
|
|
@@ -110857,14 +110856,14 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110857
110856
|
}
|
|
110858
110857
|
const n = t.from.value;
|
|
110859
110858
|
return t.to?.value ? r("COMMON_SEARCH_CRITERIA_TAG_RANGE", { from: n, to: t.to.value }) : n;
|
|
110860
|
-
},
|
|
110859
|
+
}, NGt = (t, e, r) => `${r(e.translationKey)}: ${_Gt(t.value, e.input, r)}`, CGt = ({ currentSearchState: t }) => {
|
|
110861
110860
|
const { t: e } = dt(), { context: r, rows: n } = t, a = n.filter(
|
|
110862
110861
|
(i) => i.criterionKey !== null && i.value !== null
|
|
110863
110862
|
).map((i) => {
|
|
110864
110863
|
const s = r.criteria.find(
|
|
110865
110864
|
(l) => l.id === i.criterionKey
|
|
110866
110865
|
);
|
|
110867
|
-
return { key: i.rowId, text:
|
|
110866
|
+
return { key: i.rowId, text: NGt(i, s, e) };
|
|
110868
110867
|
});
|
|
110869
110868
|
return /* @__PURE__ */ _e(
|
|
110870
110869
|
"div",
|
|
@@ -110896,7 +110895,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110896
110895
|
]
|
|
110897
110896
|
}
|
|
110898
110897
|
);
|
|
110899
|
-
},
|
|
110898
|
+
}, zGt = ({ extensionParams: t }) => {
|
|
110900
110899
|
const { t: e } = dt(), { addNotification: r } = G1(), n = t?.configUrl, [a, i] = ve(!1), [s] = ve(() => {
|
|
110901
110900
|
try {
|
|
110902
110901
|
return Bo();
|
|
@@ -110909,7 +110908,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110909
110908
|
data: H
|
|
110910
110909
|
} = It({
|
|
110911
110910
|
queryKey: ["commonSearchWidgetConfig", n],
|
|
110912
|
-
queryFn: () => bDe(n,
|
|
110911
|
+
queryFn: () => bDe(n, vGt),
|
|
110913
110912
|
enabled: !!n
|
|
110914
110913
|
}), {
|
|
110915
110914
|
isLoading: E,
|
|
@@ -110920,10 +110919,10 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110920
110919
|
queryFn: ADe,
|
|
110921
110920
|
enabled: !!H
|
|
110922
110921
|
}), v = ke(
|
|
110923
|
-
() => H ?
|
|
110922
|
+
() => H ? sGt(H) : null,
|
|
110924
110923
|
[H]
|
|
110925
110924
|
), y = w || E, x = g ?? M ?? v, V = (N, C) => {
|
|
110926
|
-
const P =
|
|
110925
|
+
const P = iGt(
|
|
110927
110926
|
N,
|
|
110928
110927
|
C.criteria,
|
|
110929
110928
|
e("COMMON_SEARCH_CRITERION_REQUIRED"),
|
|
@@ -110938,8 +110937,8 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110938
110937
|
results: []
|
|
110939
110938
|
}), i(!0), xr(
|
|
110940
110939
|
C.url,
|
|
110941
|
-
|
|
110942
|
-
|
|
110940
|
+
aGt(
|
|
110941
|
+
oGt(P, C.criteria),
|
|
110943
110942
|
C.context,
|
|
110944
110943
|
s.uuid
|
|
110945
110944
|
)
|
|
@@ -110948,7 +110947,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110948
110947
|
c(
|
|
110949
110948
|
(K) => K ? { ...K, results: j } : null
|
|
110950
110949
|
), d3({
|
|
110951
|
-
eventType:
|
|
110950
|
+
eventType: qKt(C.context)
|
|
110952
110951
|
}), i(!1), j.length > 0 && d(!1);
|
|
110953
110952
|
}).catch(() => {
|
|
110954
110953
|
i(!1), c(null), r({
|
|
@@ -110994,7 +110993,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
110994
110993
|
className: Wt.fullWidth
|
|
110995
110994
|
}
|
|
110996
110995
|
);
|
|
110997
|
-
const A =
|
|
110996
|
+
const A = XKt(
|
|
110998
110997
|
H,
|
|
110999
110998
|
b ?? null
|
|
111000
110999
|
);
|
|
@@ -111031,7 +111030,7 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
111031
111030
|
testId: "common-search-criteria-accordion-test-id",
|
|
111032
111031
|
className: Wt.searchCriteriaAccordionItem,
|
|
111033
111032
|
children: /* @__PURE__ */ L(
|
|
111034
|
-
|
|
111033
|
+
AGt,
|
|
111035
111034
|
{
|
|
111036
111035
|
config: A,
|
|
111037
111036
|
location: s,
|
|
@@ -111045,9 +111044,9 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
111045
111044
|
}
|
|
111046
111045
|
),
|
|
111047
111046
|
!a && l && /* @__PURE__ */ _e(p1, { children: [
|
|
111048
|
-
/* @__PURE__ */ L(
|
|
111047
|
+
/* @__PURE__ */ L(CGt, { currentSearchState: l }),
|
|
111049
111048
|
/* @__PURE__ */ L(
|
|
111050
|
-
|
|
111049
|
+
uGt,
|
|
111051
111050
|
{
|
|
111052
111051
|
resultFields: l.resultFields,
|
|
111053
111052
|
results: l.results,
|
|
@@ -111069,9 +111068,9 @@ const PKt = "location.uuid", FKt = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", jKt = ".kind",
|
|
|
111069
111068
|
};
|
|
111070
111069
|
jSe({
|
|
111071
111070
|
key: "commonSearch",
|
|
111072
|
-
component:
|
|
111071
|
+
component: zGt
|
|
111073
111072
|
});
|
|
111074
|
-
const
|
|
111073
|
+
const TGt = [
|
|
111075
111074
|
{
|
|
111076
111075
|
type: "allergies",
|
|
111077
111076
|
component: lr(() => Promise.resolve().then(() => b$t))
|
|
@@ -111090,15 +111089,15 @@ const OGt = [
|
|
|
111090
111089
|
},
|
|
111091
111090
|
{
|
|
111092
111091
|
type: "patientDocuments",
|
|
111093
|
-
component: lr(() => import("./DocumentsTable-
|
|
111092
|
+
component: lr(() => import("./DocumentsTable-sZg2p8HO.js"))
|
|
111094
111093
|
},
|
|
111095
111094
|
{
|
|
111096
111095
|
type: "flowSheet",
|
|
111097
|
-
component: lr(() => Promise.resolve().then(() =>
|
|
111096
|
+
component: lr(() => Promise.resolve().then(() => TFt))
|
|
111098
111097
|
},
|
|
111099
111098
|
{
|
|
111100
111099
|
type: "forms",
|
|
111101
|
-
component: lr(() => import("./FormsTable-
|
|
111100
|
+
component: lr(() => import("./FormsTable-gFIeDw9h.js"))
|
|
111102
111101
|
},
|
|
111103
111102
|
{
|
|
111104
111103
|
type: "labOrders",
|
|
@@ -111106,12 +111105,12 @@ const OGt = [
|
|
|
111106
111105
|
},
|
|
111107
111106
|
{
|
|
111108
111107
|
type: "observations",
|
|
111109
|
-
component: lr(() => import("./Observations-
|
|
111108
|
+
component: lr(() => import("./Observations-DkLce9zW.js"))
|
|
111110
111109
|
},
|
|
111111
111110
|
{
|
|
111112
111111
|
type: "ordersControl",
|
|
111113
111112
|
component: lr(
|
|
111114
|
-
() => Promise.resolve().then(() =>
|
|
111113
|
+
() => Promise.resolve().then(() => mjt)
|
|
111115
111114
|
)
|
|
111116
111115
|
},
|
|
111117
111116
|
{
|
|
@@ -111122,7 +111121,7 @@ const OGt = [
|
|
|
111122
111121
|
},
|
|
111123
111122
|
{
|
|
111124
111123
|
type: "programs",
|
|
111125
|
-
component: lr(() => Promise.resolve().then(() =>
|
|
111124
|
+
component: lr(() => Promise.resolve().then(() => Mjt))
|
|
111126
111125
|
},
|
|
111127
111126
|
{
|
|
111128
111127
|
type: "treatment",
|
|
@@ -111130,11 +111129,11 @@ const OGt = [
|
|
|
111130
111129
|
},
|
|
111131
111130
|
{
|
|
111132
111131
|
type: "immunizationHistory",
|
|
111133
|
-
component: lr(() => Promise.resolve().then(() =>
|
|
111132
|
+
component: lr(() => Promise.resolve().then(() => Fjt))
|
|
111134
111133
|
},
|
|
111135
111134
|
{
|
|
111136
111135
|
type: "tasksControl",
|
|
111137
|
-
component: lr(() => Promise.resolve().then(() =>
|
|
111136
|
+
component: lr(() => Promise.resolve().then(() => njt))
|
|
111138
111137
|
}
|
|
111139
111138
|
];
|
|
111140
111139
|
class Gr {
|
|
@@ -111147,7 +111146,7 @@ class Gr {
|
|
|
111147
111146
|
return Gr.instance || (Gr.instance = new Gr()), Gr.instance;
|
|
111148
111147
|
}
|
|
111149
111148
|
registerBuiltInWidgets() {
|
|
111150
|
-
|
|
111149
|
+
TGt.forEach((e) => {
|
|
111151
111150
|
this.registry.set(e.type, e);
|
|
111152
111151
|
});
|
|
111153
111152
|
}
|
|
@@ -111180,31 +111179,31 @@ class Gr {
|
|
|
111180
111179
|
this.registry.clear(), this.registerBuiltInWidgets();
|
|
111181
111180
|
}
|
|
111182
111181
|
}
|
|
111183
|
-
const
|
|
111182
|
+
const PYt = (t) => {
|
|
111184
111183
|
Gr.getInstance().register(t);
|
|
111185
|
-
},
|
|
111184
|
+
}, FYt = (t) => Gr.getInstance().get(t), jYt = (t) => Gr.getInstance().getConfig(t), UYt = (t) => Gr.getInstance().has(t), WYt = () => Gr.getInstance().getAll(), qYt = () => Gr.getInstance().getAllConfigs(), KYt = () => {
|
|
111186
111185
|
Gr.getInstance().reset();
|
|
111187
|
-
},
|
|
111186
|
+
}, OGt = {
|
|
111188
111187
|
id: "user-logout-global-action",
|
|
111189
111188
|
label: "USER_LOGOUT_GLOBAL_ACTION",
|
|
111190
111189
|
onClick: KMt,
|
|
111191
111190
|
priority: 9999
|
|
111192
|
-
},
|
|
111193
|
-
t.registerAction(
|
|
111194
|
-
}, S$e = S1(void 0),
|
|
111191
|
+
}, LGt = (t) => {
|
|
111192
|
+
t.registerAction(OGt);
|
|
111193
|
+
}, S$e = S1(void 0), RGt = () => {
|
|
111195
111194
|
const t = Ht(S$e);
|
|
111196
111195
|
if (t === void 0)
|
|
111197
111196
|
throw new Error(
|
|
111198
111197
|
"useUserActionRegistry must be used within UserActionProvider"
|
|
111199
111198
|
);
|
|
111200
111199
|
return t;
|
|
111201
|
-
},
|
|
111202
|
-
container:
|
|
111203
|
-
menu:
|
|
111204
|
-
},
|
|
111205
|
-
const { t } = dt(), { userPrivileges: e } = Xn(), [r, n] = ve(!1), a =
|
|
111200
|
+
}, DGt = "UserGlobalAction-module_container__XrGRb", SGt = "UserGlobalAction-module_menu__4A9xa", dCe = {
|
|
111201
|
+
container: DGt,
|
|
111202
|
+
menu: SGt
|
|
111203
|
+
}, $Gt = () => {
|
|
111204
|
+
const { t } = dt(), { userPrivileges: e } = Xn(), [r, n] = ve(!1), a = RGt(), { getActions: i, version: s } = a, l = Ae(!1);
|
|
111206
111205
|
be(() => {
|
|
111207
|
-
l.current || (
|
|
111206
|
+
l.current || (LGt(a), l.current = !0);
|
|
111208
111207
|
}, [a]);
|
|
111209
111208
|
const c = ke(() => i().filter(
|
|
111210
111209
|
(u) => !u.requiredPrivilege || u.requiredPrivilege.every(
|
|
@@ -111269,19 +111268,19 @@ const FYt = (t) => {
|
|
|
111269
111268
|
}
|
|
111270
111269
|
);
|
|
111271
111270
|
};
|
|
111272
|
-
|
|
111273
|
-
const
|
|
111271
|
+
$Gt.displayName = "UserGlobalAction";
|
|
111272
|
+
const IGt = (t) => {
|
|
111274
111273
|
if (!t.id || typeof t.id != "string")
|
|
111275
111274
|
throw new Error("Action id must be a non-empty string");
|
|
111276
111275
|
if (!t.label || typeof t.label != "string")
|
|
111277
111276
|
throw new Error("Action label must be a non-empty string");
|
|
111278
111277
|
if (typeof t.onClick != "function")
|
|
111279
111278
|
throw new TypeError("Action onClick must be a function");
|
|
111280
|
-
},
|
|
111279
|
+
}, kGt = ({
|
|
111281
111280
|
children: t
|
|
111282
111281
|
}) => {
|
|
111283
111282
|
const e = Ae(/* @__PURE__ */ new Map()), [r, n] = ve(0), a = Ze((u) => {
|
|
111284
|
-
|
|
111283
|
+
IGt(u), e.current.get(u.id) !== u && (e.current.set(u.id, u), n((m) => m + 1));
|
|
111285
111284
|
}, []), i = Ze((u) => {
|
|
111286
111285
|
e.current.delete(u), n((d) => d + 1);
|
|
111287
111286
|
}, []), s = Ze(() => Array.from(e.current.values()).sort(
|
|
@@ -111300,13 +111299,13 @@ const kGt = (t) => {
|
|
|
111300
111299
|
);
|
|
111301
111300
|
return /* @__PURE__ */ L(S$e.Provider, { value: c, children: t });
|
|
111302
111301
|
};
|
|
111303
|
-
|
|
111304
|
-
const $$e = o.createContext(void 0),
|
|
111302
|
+
kGt.displayName = "UserActionProvider";
|
|
111303
|
+
const $$e = o.createContext(void 0), ZGt = () => {
|
|
111305
111304
|
const t = o.useContext($$e);
|
|
111306
111305
|
if (!t)
|
|
111307
111306
|
throw new Error("useLocation must be used within LocationProvider");
|
|
111308
111307
|
return t;
|
|
111309
|
-
},
|
|
111308
|
+
}, GYt = ({
|
|
111310
111309
|
children: t
|
|
111311
111310
|
}) => {
|
|
111312
111311
|
const [e, r] = ve(null), [n, a] = ve(
|
|
@@ -111366,13 +111365,13 @@ const $$e = o.createContext(void 0), BGt = () => {
|
|
|
111366
111365
|
[e, n, i, l, u]
|
|
111367
111366
|
);
|
|
111368
111367
|
return /* @__PURE__ */ L($$e.Provider, { value: w, children: t });
|
|
111369
|
-
},
|
|
111370
|
-
dropdownWrapper:
|
|
111371
|
-
skeleton:
|
|
111372
|
-
error:
|
|
111373
|
-
noLocation:
|
|
111374
|
-
},
|
|
111375
|
-
const { t } = dt(), { location: e, setLocation: r, availableLocations: n, loading: a, error: i } =
|
|
111368
|
+
}, BGt = "LocationSelector-module_dropdownWrapper__EGQSN", PGt = "LocationSelector-module_skeleton__5QGfl", FGt = "LocationSelector-module_error__7K-5g", jGt = "LocationSelector-module_noLocation__mrBOk", Ps = {
|
|
111369
|
+
dropdownWrapper: BGt,
|
|
111370
|
+
skeleton: PGt,
|
|
111371
|
+
error: FGt,
|
|
111372
|
+
noLocation: jGt
|
|
111373
|
+
}, YYt = () => {
|
|
111374
|
+
const { t } = dt(), { location: e, setLocation: r, availableLocations: n, loading: a, error: i } = ZGt(), s = (c) => {
|
|
111376
111375
|
!c || c.uuid === e?.uuid || r(c);
|
|
111377
111376
|
};
|
|
111378
111377
|
if (a)
|
|
@@ -111402,11 +111401,11 @@ export {
|
|
|
111402
111401
|
n5 as $,
|
|
111403
111402
|
qSt as A,
|
|
111404
111403
|
w0 as B,
|
|
111405
|
-
|
|
111406
|
-
|
|
111407
|
-
|
|
111404
|
+
kYt as C,
|
|
111405
|
+
bYt as D,
|
|
111406
|
+
NYt as E,
|
|
111408
111407
|
pr as F,
|
|
111409
|
-
|
|
111408
|
+
HYt as G,
|
|
111410
111409
|
M$t as H,
|
|
111411
111410
|
gt as I,
|
|
111412
111411
|
pi as J,
|
|
@@ -111416,76 +111415,76 @@ export {
|
|
|
111416
111415
|
$Zt as N,
|
|
111417
111416
|
Y6 as O,
|
|
111418
111417
|
tbt as P,
|
|
111419
|
-
|
|
111418
|
+
eYt as Q,
|
|
111420
111419
|
$o as R,
|
|
111421
111420
|
WBt as S,
|
|
111422
111421
|
So as T,
|
|
111423
111422
|
ISe as U,
|
|
111424
111423
|
bPt as V,
|
|
111425
111424
|
Z9t as W,
|
|
111426
|
-
|
|
111425
|
+
wFt as X,
|
|
111427
111426
|
sr as Y,
|
|
111428
|
-
|
|
111429
|
-
|
|
111427
|
+
zFt as Z,
|
|
111428
|
+
fjt as _,
|
|
111430
111429
|
G1 as a,
|
|
111431
111430
|
WSe as a0,
|
|
111432
|
-
|
|
111433
|
-
|
|
111434
|
-
|
|
111435
|
-
|
|
111436
|
-
|
|
111431
|
+
Hjt as a1,
|
|
111432
|
+
Pjt as a2,
|
|
111433
|
+
$Yt as a3,
|
|
111434
|
+
cKt as a4,
|
|
111435
|
+
rKt as a5,
|
|
111437
111436
|
OSt as a6,
|
|
111438
|
-
|
|
111439
|
-
|
|
111440
|
-
|
|
111437
|
+
AYt as a7,
|
|
111438
|
+
nKt as a8,
|
|
111439
|
+
uKt as a9,
|
|
111441
111440
|
GSt as aa,
|
|
111442
|
-
|
|
111441
|
+
dKt as ab,
|
|
111443
111442
|
TSt as ac,
|
|
111444
111443
|
mSe as ad,
|
|
111445
111444
|
fSe as ae,
|
|
111446
|
-
|
|
111447
|
-
|
|
111445
|
+
ZYt as af,
|
|
111446
|
+
BYt as ag,
|
|
111448
111447
|
jSe as ah,
|
|
111449
|
-
|
|
111450
|
-
|
|
111451
|
-
|
|
111452
|
-
|
|
111453
|
-
|
|
111454
|
-
|
|
111455
|
-
|
|
111456
|
-
|
|
111457
|
-
|
|
111458
|
-
|
|
111459
|
-
|
|
111460
|
-
|
|
111461
|
-
|
|
111448
|
+
DYt as ai,
|
|
111449
|
+
SYt as aj,
|
|
111450
|
+
zGt as ak,
|
|
111451
|
+
PYt as al,
|
|
111452
|
+
FYt as am,
|
|
111453
|
+
jYt as an,
|
|
111454
|
+
UYt as ao,
|
|
111455
|
+
WYt as ap,
|
|
111456
|
+
qYt as aq,
|
|
111457
|
+
KYt as ar,
|
|
111458
|
+
$Gt as as,
|
|
111459
|
+
kGt as at,
|
|
111460
|
+
RGt as au,
|
|
111462
111461
|
$$e as av,
|
|
111463
|
-
|
|
111464
|
-
|
|
111465
|
-
|
|
111462
|
+
ZGt as aw,
|
|
111463
|
+
GYt as ax,
|
|
111464
|
+
YYt as ay,
|
|
111466
111465
|
H3 as b,
|
|
111467
111466
|
Xn as c,
|
|
111468
111467
|
pbt as d,
|
|
111469
111468
|
SSe as e,
|
|
111470
|
-
|
|
111471
|
-
|
|
111469
|
+
CYt as f,
|
|
111470
|
+
zYt as g,
|
|
111472
111471
|
vhe as h,
|
|
111473
111472
|
fn as i,
|
|
111474
111473
|
uRe as j,
|
|
111475
111474
|
dRe as k,
|
|
111476
111475
|
b2 as l,
|
|
111477
|
-
|
|
111476
|
+
MYt as m,
|
|
111478
111477
|
hRe as n,
|
|
111479
|
-
|
|
111480
|
-
|
|
111478
|
+
EYt as o,
|
|
111479
|
+
yYt as p,
|
|
111481
111480
|
W1 as q,
|
|
111482
|
-
|
|
111483
|
-
|
|
111484
|
-
|
|
111481
|
+
OYt as r,
|
|
111482
|
+
LYt as s,
|
|
111483
|
+
TYt as t,
|
|
111485
111484
|
gr as u,
|
|
111486
|
-
|
|
111485
|
+
RYt as v,
|
|
111487
111486
|
ai as w,
|
|
111488
111487
|
bwt as x,
|
|
111489
|
-
|
|
111490
|
-
|
|
111488
|
+
_Yt as y,
|
|
111489
|
+
VYt as z
|
|
111491
111490
|
};
|