@openmrs/esm-appointments-app 4.1.0 → 4.1.1-pre.1005
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/.turbo/turbo-build.log +10 -11
- package/dist/285.js +1 -1
- package/dist/351.js +1 -1
- package/dist/430.js +1 -1
- package/dist/437.js +1 -1
- package/dist/45.js +1 -1
- package/dist/456.js +1 -0
- package/dist/497.js +1 -1
- package/dist/574.js +1 -1
- package/dist/647.js +1 -1
- package/dist/757.js +1 -0
- package/dist/821.js +1 -1
- package/dist/830.js +1 -1
- package/dist/976.js +1 -0
- package/dist/{339.js → 984.js} +1 -1
- package/dist/main.js +1 -1
- package/dist/openmrs-esm-appointments-app.js +1 -1
- package/dist/openmrs-esm-appointments-app.js.buildmanifest.json +108 -111
- package/dist/openmrs-esm-appointments-app.old +1 -1
- package/package.json +2 -2
- package/src/appointment-forms/appointment-forms.resource.ts +5 -17
- package/src/appointment-forms/appointments-form.component.tsx +102 -234
- package/src/appointment-forms/appointments-form.scss +5 -5
- package/src/appointment-forms/appointments-forms.test.tsx +5 -15
- package/src/appointment-forms/useInitialFormValues.tsx +49 -0
- package/src/appointment-forms/workload-helper.ts +13 -19
- package/src/config-schema.ts +4 -13
- package/translations/en.json +2 -4
- package/translations/fr.json +144 -0
- package/dist/268.js +0 -1
- package/dist/39.js +0 -1
- package/dist/842.js +0 -1
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
|
+
import { useAppointmentDate } from '../helpers';
|
|
3
|
+
import { useAppointmentSummary } from './appointment-forms.resource';
|
|
4
|
+
interface AppointmentCount {
|
|
5
|
+
date: string;
|
|
6
|
+
count: number;
|
|
7
|
+
}
|
|
2
8
|
|
|
3
|
-
export const
|
|
4
|
-
startDate: Date,
|
|
5
|
-
appointmentCount: Array<{ date: string; count: number }>,
|
|
6
|
-
) => {
|
|
9
|
+
export const getMonthlyCalendarDistribution = (startDate: Date, appointmentCount: Array<AppointmentCount>) => {
|
|
7
10
|
const distributionHashTable = new Map<string, number>([]);
|
|
8
|
-
for (let i = 0; i <=
|
|
11
|
+
for (let i = 0; i <= 35; i++) {
|
|
9
12
|
distributionHashTable.set(dayjs(startDate).add(i, 'day').format('YYYY-MM-DD'), 0);
|
|
10
13
|
}
|
|
11
14
|
appointmentCount.map(({ date, count }) => {
|
|
@@ -16,19 +19,10 @@ export const getWeeklyCalendarDistribution = (
|
|
|
16
19
|
|
|
17
20
|
return Array.from(distributionHashTable).flatMap(([date, value]) => ({ date: date, count: value }));
|
|
18
21
|
};
|
|
19
|
-
export const getMonthlyCalendarDistribution = (
|
|
20
|
-
startDate: Date,
|
|
21
|
-
appointmentCount: Array<{ date: string; count: number }>,
|
|
22
|
-
) => {
|
|
23
|
-
const distributionHashTable = new Map<string, number>([]);
|
|
24
|
-
for (let i = 0; i <= 35; i++) {
|
|
25
|
-
distributionHashTable.set(dayjs(startDate).add(i, 'day').format('YYYY-MM-DD'), 0);
|
|
26
|
-
}
|
|
27
|
-
appointmentCount.map(({ date, count }) => {
|
|
28
|
-
if (distributionHashTable.has(date)) {
|
|
29
|
-
distributionHashTable.set(date, count);
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
22
|
|
|
33
|
-
|
|
23
|
+
export const useCalendarDistribution = (servieUuid: string, distributionType: 'month' | 'week') => {
|
|
24
|
+
const appointmentStartDate = useAppointmentDate();
|
|
25
|
+
const appointmentSummary = useAppointmentSummary(new Date(appointmentStartDate), servieUuid);
|
|
26
|
+
const monthlyData = getMonthlyCalendarDistribution(new Date(appointmentStartDate), appointmentSummary) ?? [];
|
|
27
|
+
return distributionType === 'month' ? monthlyData : monthlyData.slice(0, 7);
|
|
34
28
|
};
|
package/src/config-schema.ts
CHANGED
|
@@ -58,20 +58,10 @@ export const configSchema = {
|
|
|
58
58
|
_description: 'Configurable alternative URL for the Appointments UI. Eg, the Bahmni Appointments UI URL',
|
|
59
59
|
_default: `${spaBasePath}`,
|
|
60
60
|
},
|
|
61
|
-
|
|
61
|
+
hiddenFormFields: {
|
|
62
62
|
_type: Type.Array,
|
|
63
|
-
_description: '
|
|
64
|
-
_default: [
|
|
65
|
-
'Forgot Appoinment',
|
|
66
|
-
'Lack of Transport',
|
|
67
|
-
'Travelled',
|
|
68
|
-
'Work/Schedule/Busy',
|
|
69
|
-
'Had enough Medicine',
|
|
70
|
-
'Taking Herbal Medication',
|
|
71
|
-
'Spiritual Healed',
|
|
72
|
-
'Recieved Refill in another facility',
|
|
73
|
-
'Other',
|
|
74
|
-
],
|
|
63
|
+
_description: 'Array of form controls to be hidden on form load',
|
|
64
|
+
_default: [],
|
|
75
65
|
},
|
|
76
66
|
};
|
|
77
67
|
|
|
@@ -87,4 +77,5 @@ export interface ConfigObject {
|
|
|
87
77
|
useFullViewPrivilege: boolean;
|
|
88
78
|
fullViewPrivilege: string;
|
|
89
79
|
appointmentComments: Array<string>;
|
|
80
|
+
hiddenFormFields: Array<string>;
|
|
90
81
|
}
|
package/translations/en.json
CHANGED
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"chooseProvider": "Select Provider",
|
|
38
38
|
"chooseQueue": "Select a queue",
|
|
39
39
|
"chooseService": "Select service",
|
|
40
|
+
"comment": "Comment",
|
|
40
41
|
"community": "Community",
|
|
41
42
|
"complete": "Complete",
|
|
42
43
|
"completed": "Completed",
|
|
@@ -47,11 +48,8 @@
|
|
|
47
48
|
"date": "Date",
|
|
48
49
|
"dateAndTimeOfVisit": "Date and time of visit",
|
|
49
50
|
"dateTime": "Date & time",
|
|
50
|
-
"day": "Day",
|
|
51
51
|
"defaulters": "Defaulters",
|
|
52
52
|
"discard": "Discard",
|
|
53
|
-
"doubleBooking": "Appointment double booking",
|
|
54
|
-
"doublePatientBooking": "There exist an appointment on the specified service and appointment date",
|
|
55
53
|
"downloadAppointmentList": "Download appointment list",
|
|
56
54
|
"durationMins": "Duration min",
|
|
57
55
|
"editAppointment": "Edit Appointment",
|
|
@@ -66,7 +64,6 @@
|
|
|
66
64
|
"exitAndChangeStatus": "Change status",
|
|
67
65
|
"facility": "Facility",
|
|
68
66
|
"filter": "Filter",
|
|
69
|
-
"frequency": "Frequency",
|
|
70
67
|
"futureScheduledVisits": " {count, plural, one{{count} visit} other{{count} visits}} scheduled for dates in the future",
|
|
71
68
|
"futureScheduledVisits_plural": "",
|
|
72
69
|
"getAppointmentReminder": "Would you like to get a reminder about this appointment?",
|
|
@@ -130,6 +127,7 @@
|
|
|
130
127
|
"time": "Time",
|
|
131
128
|
"todaysAppointments": "Today's Appointments",
|
|
132
129
|
"total": "Total",
|
|
130
|
+
"typeInComments": "Type in appointment comment",
|
|
133
131
|
"unScheduled": "UnScheduled",
|
|
134
132
|
"unScheduledAppointments": "UnScheduled appointments",
|
|
135
133
|
"upcomming": "Upcoming",
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": "Actions",
|
|
3
|
+
"addNewAppointment": "Ajouter un nouveau rendez-vous",
|
|
4
|
+
"addNewClinicDay": "Ajouter une nouvelle journée clinique",
|
|
5
|
+
"addPatientToQueue": "Ajouter le patient à la file d'attente",
|
|
6
|
+
"AddPatientToQueue": "Ajouter le patient à la file d'attente",
|
|
7
|
+
"all": "Tout",
|
|
8
|
+
"anotherVisitType": "Démarrer un autre type de visite",
|
|
9
|
+
"appointmentCancelError": "Erreur en annulant le rendez-vous",
|
|
10
|
+
"appointmentCancelled": "Rendez-vous annulé",
|
|
11
|
+
"appointmentColor": "Couleur de rendez-vous",
|
|
12
|
+
"appointmentDateAndTime": "Date et heure de rendez-vous",
|
|
13
|
+
"appointmentForm": "Formulaire de rendez-vous",
|
|
14
|
+
"appointmentFormError": "Erreur en planifiant le rendez-vous",
|
|
15
|
+
"appointmentHistory": "Historique de rendez-vous",
|
|
16
|
+
"appointmentList": "Liste des rendez-vous",
|
|
17
|
+
"appointmentMarkedAsMissed": "Marqué comme manqué avec succès",
|
|
18
|
+
"appointmentMetrics": "Métriques de rendez-vous",
|
|
19
|
+
"appointmentMissed": "Rendez-vous manqués",
|
|
20
|
+
"appointmentMissedError": "Erreur en marquant le rendez vous comme manqué",
|
|
21
|
+
"appointmentNotes": "Notes de rendez-vous",
|
|
22
|
+
"appointmentNowVisible": "C'est maintenant visible sur la Page des rendez-vous",
|
|
23
|
+
"appointments": "Rendez-vous",
|
|
24
|
+
"appointmentScheduled": "Rendez-vous prévus",
|
|
25
|
+
"appointmentService": "Service de rendez-vous",
|
|
26
|
+
"appointmentServiceCreate": "Le service de rendez-vous a été créé avec succès",
|
|
27
|
+
"appointmentServiceName": "Nom du service de rendez-vous",
|
|
28
|
+
"appointmentsList": "La liste des rendez-vous est vide",
|
|
29
|
+
"appointmentStatusChange": "Le statut de rendez-vous a été changé avec succès en",
|
|
30
|
+
"appointmentStatusTitleMessage": "Statut de rendez-vous",
|
|
31
|
+
"backToSearchResults": "Retour aux résultats de recherche",
|
|
32
|
+
"calendar": "Calendrier",
|
|
33
|
+
"cancel": "Annuller",
|
|
34
|
+
"cancelAppointment": "Annuler le rendez-vous",
|
|
35
|
+
"cancelled": "Annullé",
|
|
36
|
+
"changeAppointmentStatus": "Modifier le statut de rendez-vous",
|
|
37
|
+
"checkedIn": "Enregistré",
|
|
38
|
+
"checkFilters": "Vérifiez les filtres ci-dessus",
|
|
39
|
+
"checkIn": "Enregistrer",
|
|
40
|
+
"chooseProvider": "Sélectionner le fournisseur",
|
|
41
|
+
"chooseQueue": "Sélectionner une file d'attente",
|
|
42
|
+
"chooseService": "Sélectionner un service",
|
|
43
|
+
"clinicalAppointments": "Rendez-vous cliniques",
|
|
44
|
+
"comments": "Commentaires",
|
|
45
|
+
"community": "Communauté",
|
|
46
|
+
"complete": "Compléter",
|
|
47
|
+
"completed": "Complété",
|
|
48
|
+
"createAppointmentService": "Créer des services de rendez-vous",
|
|
49
|
+
"daily": "Quotidiennement",
|
|
50
|
+
"date": "Date",
|
|
51
|
+
"dateAndTimeOfVisit": "Date et heure de la visite",
|
|
52
|
+
"dateTime": "Date et heure",
|
|
53
|
+
"day": "Jour",
|
|
54
|
+
"defaulters": "Défaillants",
|
|
55
|
+
"discard": "Abandonner",
|
|
56
|
+
"doubleBooking": "Double réservation de rendez-vous",
|
|
57
|
+
"doublePatientBooking": "Il existe un rendez-vous à la date de service et de rendez-vous spécifiés",
|
|
58
|
+
"downloadAppointmentList": "Télécharger la liste des rendez-vous",
|
|
59
|
+
"durationMins": "Durée min",
|
|
60
|
+
"editAppointment": "Modifier le rendez-vous",
|
|
61
|
+
"emergency": "Urgence",
|
|
62
|
+
"emptyIllustration": "Illustration de données vides",
|
|
63
|
+
"encounters": "Rencontres",
|
|
64
|
+
"encounterType": "Type de rencontre",
|
|
65
|
+
"endTime": "Heure de fin",
|
|
66
|
+
"errorAppoinmentMetric": "",
|
|
67
|
+
"errorMessage": "Erreur en annullant le rendez-vous",
|
|
68
|
+
"exitAndChangeStatus": "Changer le statut",
|
|
69
|
+
"facility": "Facilité",
|
|
70
|
+
"filter": "Filtre",
|
|
71
|
+
"filterByServiceType": "",
|
|
72
|
+
"frequency": "Fréquence",
|
|
73
|
+
"futureScheduledVisits": " {count, plural, one {{count} visit} other {{count} visits}} scheduled for dates in the future",
|
|
74
|
+
"futureScheduledVisits_plural": "",
|
|
75
|
+
"getAppointmentReminder": "Souhaitez-vous recevoir un rappel concernant ce rendez-vous?",
|
|
76
|
+
"highestServiceVolume": "Service à volume élevé: {temps}",
|
|
77
|
+
"identifier": "Identifiant",
|
|
78
|
+
"loading": "En cours de chargement",
|
|
79
|
+
"location": "Emplacement",
|
|
80
|
+
"lostToFollowUp": "Perdu de vue",
|
|
81
|
+
"lostToFollowupAppointments": "Rendez-vous de suivi sans suivi",
|
|
82
|
+
"medications": "Médicaments",
|
|
83
|
+
"missed": "Manqué",
|
|
84
|
+
"missedAppointmentsList": "Liste de rendez-vous manqués",
|
|
85
|
+
"missingVisitType": "Type de visite manquant",
|
|
86
|
+
"monthly": "Mensuel",
|
|
87
|
+
"name": "Nom",
|
|
88
|
+
"noAppointmentsToDisplay": "Il n'y a pas de rendez-vous à afficher pour cet emplacement",
|
|
89
|
+
"noEncountersFound": "Aucune rencontre trouvée",
|
|
90
|
+
"noMatchingVisitTypeFound": "",
|
|
91
|
+
"noPreviousVisitFound": "Aucune visite précédente trouvée",
|
|
92
|
+
"noPriorityFound": "Aucune priorité trouvée",
|
|
93
|
+
"notes": "Notes",
|
|
94
|
+
"notUrgent": "Pas urgent",
|
|
95
|
+
"or": "ou",
|
|
96
|
+
"patientDetails": "Détails du patient",
|
|
97
|
+
"patientName": "Nom du patient",
|
|
98
|
+
"patients": "Patients",
|
|
99
|
+
"pending": "En attente",
|
|
100
|
+
"priority": "Priorité",
|
|
101
|
+
"promisedPateints": "Patients promis",
|
|
102
|
+
"promisedPatients": "Patients promis",
|
|
103
|
+
"provider": "Fournisseur",
|
|
104
|
+
"providers": "Fournisseurs",
|
|
105
|
+
"providersAvailableToday": "Fournisseurs disponibles: {time}",
|
|
106
|
+
"queue": "File d'attente",
|
|
107
|
+
"queueEntryError": "Erreur en ajoutant le patient à la file d'attente",
|
|
108
|
+
"reasonForChanges": "Raison des changements",
|
|
109
|
+
"recentScheduledVisits": "{count, plural, one {{count} visit} other {{count} visits}} scheduled for +/- 7 days",
|
|
110
|
+
"recentScheduledVisits_plural": "",
|
|
111
|
+
"save": "Sauvegarder",
|
|
112
|
+
"scheduled": "Agendé",
|
|
113
|
+
"scheduledAppointments": "Rendez-vous planifiés",
|
|
114
|
+
"search": "Chercher",
|
|
115
|
+
"searchAppointments": "Recherche de rendez-vous",
|
|
116
|
+
"searchForAVisitType": "Rechercher un type de visite",
|
|
117
|
+
"seeMissedAppointments": "Voir les rendez-vous manqués",
|
|
118
|
+
"selectAppointmentLocation": "Sélectionnez où le rendez-vous aura lieu",
|
|
119
|
+
"selectAppointmentStatus": "Sélectionner le statut",
|
|
120
|
+
"selectAppointmentType": "Sélectionnez un type de rendez-vous",
|
|
121
|
+
"selectLocation": "Sélectionnez un emplacement",
|
|
122
|
+
"selectProvider": "Sélectionnez un fournisseur",
|
|
123
|
+
"selectQueue": "Sélectionner la file d'attente",
|
|
124
|
+
"selectService": "Sélectionnez un service",
|
|
125
|
+
"selectVisitType": "Veuillez sélectionner un type de visite",
|
|
126
|
+
"service": "Service",
|
|
127
|
+
"serviceType": "Type de service",
|
|
128
|
+
"serviceWorkloadTitle": "",
|
|
129
|
+
"startTime": "Heure de début",
|
|
130
|
+
"startVisit": "Démarrer une visite",
|
|
131
|
+
"startVisitError": "Erreur en démarrant la visite",
|
|
132
|
+
"startVisitQueueSuccessfully": "Le patient a été ajouté à la liste des visites actives et à la file d'attente.",
|
|
133
|
+
"time": "Heure",
|
|
134
|
+
"todaysAppointments": "Les rendez-vous d'aujourd'hui",
|
|
135
|
+
"unScheduled": "Déprogrammé",
|
|
136
|
+
"unScheduledAppointments": "Rendez-vous déprogrammés",
|
|
137
|
+
"upcoming": "A venir",
|
|
138
|
+
"view": "Voir",
|
|
139
|
+
"viewCalendar": "Voir le calendrier",
|
|
140
|
+
"visitLocation": "Lieu de la visite",
|
|
141
|
+
"visitType": "Type de visite",
|
|
142
|
+
"vitals": "Signes vitaux",
|
|
143
|
+
"weekly": "Hebdomadaire"
|
|
144
|
+
}
|
package/dist/268.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_openmrs_esm_appointments_app=self.webpackChunk_openmrs_esm_appointments_app||[]).push([[268],{8896:(t,e,r)=>{r.d(e,{Z:()=>c});var o=r(5546),n=r(3221);const c=(0,o.Z)(n.Z,"Map")},7459:(t,e,r)=>{r.d(e,{Z:()=>c});var o=r(5546),n=r(3221);const c=(0,o.Z)(n.Z,"Set")},187:(t,e,r)=>{r.d(e,{Z:()=>o});const o=r(3221).Z.Symbol},9001:(t,e,r)=>{r.d(e,{Z:()=>p});var o=r(187),n=Object.prototype,c=n.hasOwnProperty,a=n.toString,u=o.Z?o.Z.toStringTag:void 0;var i=Object.prototype.toString;var s=o.Z?o.Z.toStringTag:void 0;const p=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?function(t){var e=c.call(t,u),r=t[u];try{t[u]=void 0;var o=!0}catch(t){}var n=a.call(t);return o&&(e?t[u]=r:delete t[u]),n}(t):function(t){return i.call(t)}(t)}},3917:(t,e,r)=>{r.d(e,{Z:()=>a});var o=r(5441);const n=(0,r(6048).Z)(Object.keys,Object);var c=Object.prototype.hasOwnProperty;const a=function(t){if(!(0,o.Z)(t))return n(t);var e=[];for(var r in Object(t))c.call(t,r)&&"constructor"!=r&&e.push(r);return e}},3225:(t,e,r)=>{r.d(e,{Z:()=>o});const o=function(t){return function(e){return t(e)}}},2168:(t,e,r)=>{r.d(e,{Z:()=>o});const o="object"==typeof global&&global&&global.Object===Object&&global},5546:(t,e,r)=>{r.d(e,{Z:()=>y});var o=r(8936);const n=r(3221).Z["__core-js_shared__"];var c,a=(c=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"";var u=r(3122),i=r(6682),s=/^\[object .+?Constructor\]$/,p=Function.prototype,Z=Object.prototype,l=p.toString,b=Z.hasOwnProperty,f=RegExp("^"+l.call(b).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const j=function(t){return!(!(0,u.Z)(t)||(e=t,a&&a in e))&&((0,o.Z)(t)?f:s).test((0,i.Z)(t));var e},y=function(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return j(r)?r:void 0}},7210:(t,e,r)=>{r.d(e,{Z:()=>A});var o=r(5546),n=r(3221);const c=(0,o.Z)(n.Z,"DataView");var a=r(8896);const u=(0,o.Z)(n.Z,"Promise");var i=r(7459);const s=(0,o.Z)(n.Z,"WeakMap");var p=r(9001),Z=r(6682),l="[object Map]",b="[object Promise]",f="[object Set]",j="[object WeakMap]",y="[object DataView]",d=(0,Z.Z)(c),v=(0,Z.Z)(a.Z),g=(0,Z.Z)(u),O=(0,Z.Z)(i.Z),m=(0,Z.Z)(s),h=p.Z;(c&&h(new c(new ArrayBuffer(1)))!=y||a.Z&&h(new a.Z)!=l||u&&h(u.resolve())!=b||i.Z&&h(new i.Z)!=f||s&&h(new s)!=j)&&(h=function(t){var e=(0,p.Z)(t),r="[object Object]"==e?t.constructor:void 0,o=r?(0,Z.Z)(r):"";if(o)switch(o){case d:return y;case v:return l;case g:return b;case O:return f;case m:return j}return e});const A=h},5441:(t,e,r)=>{r.d(e,{Z:()=>n});var o=Object.prototype;const n=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||o)}},7755:(t,e,r)=>{r.d(e,{Z:()=>u});var o=r(2168),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=n&&"object"==typeof module&&module&&!module.nodeType&&module,a=c&&c.exports===n&&o.Z.process;const u=function(){try{return c&&c.require&&c.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}()},6048:(t,e,r)=>{r.d(e,{Z:()=>o});const o=function(t,e){return function(r){return t(e(r))}}},3221:(t,e,r)=>{r.d(e,{Z:()=>c});var o=r(2168),n="object"==typeof self&&self&&self.Object===Object&&self;const c=o.Z||n||Function("return this")()},6682:(t,e,r)=>{r.d(e,{Z:()=>n});var o=Function.prototype.toString;const n=function(t){if(null!=t){try{return o.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},12:(t,e,r)=>{r.d(e,{Z:()=>o});const o=function(t){return t&&t.length?t[0]:void 0}},4248:(t,e,r)=>{r.d(e,{Z:()=>s});var o=r(9001),n=r(3391);const c=function(t){return(0,n.Z)(t)&&"[object Arguments]"==(0,o.Z)(t)};var a=Object.prototype,u=a.hasOwnProperty,i=a.propertyIsEnumerable;const s=c(function(){return arguments}())?c:function(t){return(0,n.Z)(t)&&u.call(t,"callee")&&!i.call(t,"callee")}},7885:(t,e,r)=>{r.d(e,{Z:()=>o});const o=Array.isArray},3282:(t,e,r)=>{r.d(e,{Z:()=>c});var o=r(8936),n=r(1164);const c=function(t){return null!=t&&(0,n.Z)(t.length)&&!(0,o.Z)(t)}},4975:(t,e,r)=>{r.d(e,{Z:()=>u});var o=r(3221);var n="object"==typeof exports&&exports&&!exports.nodeType&&exports,c=n&&"object"==typeof module&&module&&!module.nodeType&&module,a=c&&c.exports===n?o.Z.Buffer:void 0;const u=(a?a.isBuffer:void 0)||function(){return!1}},7279:(t,e,r)=>{r.d(e,{Z:()=>l});var o=r(3917),n=r(7210),c=r(4248),a=r(7885),u=r(3282),i=r(4975),s=r(5441),p=r(8127),Z=Object.prototype.hasOwnProperty;const l=function(t){if(null==t)return!0;if((0,u.Z)(t)&&((0,a.Z)(t)||"string"==typeof t||"function"==typeof t.splice||(0,i.Z)(t)||(0,p.Z)(t)||(0,c.Z)(t)))return!t.length;var e=(0,n.Z)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,s.Z)(t))return!(0,o.Z)(t).length;for(var r in t)if(Z.call(t,r))return!1;return!0}},8936:(t,e,r)=>{r.d(e,{Z:()=>c});var o=r(9001),n=r(3122);const c=function(t){if(!(0,n.Z)(t))return!1;var e=(0,o.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1164:(t,e,r)=>{r.d(e,{Z:()=>o});const o=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3122:(t,e,r)=>{r.d(e,{Z:()=>o});const o=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3391:(t,e,r)=>{r.d(e,{Z:()=>o});const o=function(t){return null!=t&&"object"==typeof t}},8127:(t,e,r)=>{r.d(e,{Z:()=>p});var o=r(9001),n=r(1164),c=r(3391),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var u=r(3225),i=r(7755),s=i.Z&&i.Z.isTypedArray;const p=s?(0,u.Z)(s):function(t){return(0,c.Z)(t)&&(0,n.Z)(t.length)&&!!a[(0,o.Z)(t)]}}}]);
|
package/dist/39.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_openmrs_esm_appointments_app=self.webpackChunk_openmrs_esm_appointments_app||[]).push([[39],{6039:(e,t,n)=>{n.d(t,{Wf:()=>h});var r,s,p=n(7398),a=n(268),i=n.n(a),c=["children","size"],h=i().forwardRef((function(e,t){var n=e.children,a=e.size,h=void 0===a?16:a,l=(0,p._)(e,c);return i().createElement(p.I,(0,p.a)({width:h,height:h,ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},l),r||(r=i().createElement("path",{d:"M16,4c6.6,0,12,5.4,12,12s-5.4,12-12,12S4,22.6,4,16S9.4,4,16,4 M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14 S23.7,2,16,2z"})),s||(s=i().createElement("path",{d:"M8 15H24V17H8z"})),n)}))}}]);
|
package/dist/842.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_openmrs_esm_appointments_app=self.webpackChunk_openmrs_esm_appointments_app||[]).push([[842],{6824:function(t){t.exports=function(){"use strict";return function(t,u,f){u.prototype.isToday=function(){var t="YYYY-MM-DD",u=f();return this.format(t)===u.format(t)}}}()},264:function(t){t.exports=function(){"use strict";var t="minute",u=/[+-]\d\d(?::?\d\d)?/g,f=/([+-]|\d\d)/g;return function(e,n,r){var i=n.prototype;r.utc=function(t){return new n({date:t,utc:!0,args:arguments})},i.utc=function(u){var f=r(this.toDate(),{locale:this.$L,utc:!0});return u?f.add(this.utcOffset(),t):f},i.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var o=i.parse;i.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t)};var s=i.init;i.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else s.call(this)};var a=i.utcOffset;i.utcOffset=function(e,n){var r=this.$utils().u;if(r(e))return this.$u?0:r(this.$offset)?a.call(this):this.$offset;if("string"==typeof e&&(e=function(t){void 0===t&&(t="");var e=t.match(u);if(!e)return null;var n=(""+e[0]).match(f)||["-",0,0],r=n[0],i=60*+n[1]+ +n[2];return 0===i?0:"+"===r?i:-i}(e),null===e))return this;var i=Math.abs(e)<=16?60*e:e,o=this;if(n)return o.$offset=i,o.$u=0===e,o;if(0!==e){var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(i+s,t)).$offset=i,o.$x.$localOffset=s}else o=this.utc();return o};var c=i.format;i.format=function(t){var u=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,u)},i.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var d=i.toDate;i.toDate=function(t){return"s"===t&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var l=i.diff;i.diff=function(t,u,f){if(t&&this.$u===t.$u)return l.call(this,t,u,f);var e=this.local(),n=r(t).local();return l.call(e,n,u,f)}}}()},5598:(t,u,f)=>{"use strict";f.d(u,{Z:()=>e});const e=function(t,u){for(var f=-1,e=null==t?0:t.length,n=Array(e);++f<e;)n[f]=u(t[f],f,t);return n}},2758:(t,u,f)=>{"use strict";f.d(u,{Z:()=>r});var e=f(9001),n=f(3391);const r=function(t){return"symbol"==typeof t||(0,n.Z)(t)&&"[object Symbol]"==(0,e.Z)(t)}},7384:(t,u,f)=>{"use strict";f.d(u,{Z:()=>W});const e=(n={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(t){return null==n?void 0:n[t]});var n,r=f(3523),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var s=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var a=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var c="a-z\\xdf-\\xf6\\xf8-\\xff",d="A-Z\\xc0-\\xd6\\xd8-\\xde",l="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",h="["+l+"]",v="\\d+",x="["+c+"]",$="[^\\ud800-\\udfff"+l+v+"\\u2700-\\u27bf"+c+d+"]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",m="["+d+"]",Z="(?:"+x+"|"+$+")",b="(?:"+m+"|"+$+")",D="(?:['’](?:d|ll|m|re|s|t|ve))?",O="(?:['’](?:D|LL|M|RE|S|T|VE))?",T="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",U="[\\ufe0e\\ufe0f]?",A=U+T+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",g,p].join("|")+")"+U+T+")*",C="(?:"+["[\\u2700-\\u27bf]",g,p].join("|")+")"+A,S=RegExp([m+"?"+x+"+"+D+"(?="+[h,m,"$"].join("|")+")",b+"+"+O+"(?="+[h,m+Z,"$"].join("|")+")",m+"?"+Z+"+"+D,m+"+"+O,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",v,C].join("|"),"g");const y=function(t,u,f){return t=(0,r.Z)(t),void 0===(u=f?void 0:u)?function(t){return a.test(t)}(t)?function(t){return t.match(S)||[]}(t):function(t){return t.match(s)||[]}(t):t.match(u)||[]};var E=RegExp("['’]","g");const Y=function(t,u,f){var e=t.length;return f=void 0===f?e:f,!u&&f>=e?t:function(t,u,f){var e=-1,n=t.length;u<0&&(u=-u>n?0:n+u),(f=f>n?n:f)<0&&(f+=n),n=u>f?0:f-u>>>0,u>>>=0;for(var r=Array(n);++e<n;)r[e]=t[e+u];return r}(t,u,f)};var z=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const I=function(t){return z.test(t)};var M="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",j="[^\\ud800-\\udfff]",R="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",H="(?:"+M+"|\\ud83c[\\udffb-\\udfff])?",L="[\\ufe0e\\ufe0f]?",k=L+H+"(?:\\u200d(?:"+[j,R,_].join("|")+")"+L+H+")*",N="(?:"+[j+M+"?",M,R,_,"[\\ud800-\\udfff]"].join("|")+")",w=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|"+N+k,"g");const G=function(t){return I(t)?function(t){return t.match(w)||[]}(t):function(t){return t.split("")}(t)},J=function(t){t=(0,r.Z)(t);var u=I(t)?G(t):void 0,f=u?u[0]:t.charAt(0),e=u?Y(u,1).join(""):t.slice(1);return f.toUpperCase()+e},W=(F=function(t,u,f){return t+(f?" ":"")+J(u)},function(t){return function(t,u,f,e){var n=-1,r=null==t?0:t.length;for(e&&r&&(f=t[++n]);++n<r;)f=u(f,t[n],n,t);return f}(y(function(t){return(t=(0,r.Z)(t))&&t.replace(i,e).replace(o,"")}(t).replace(E,"")),F,"")});var F},3523:(t,u,f)=>{"use strict";f.d(u,{Z:()=>c});var e=f(187),n=f(5598),r=f(7885),i=f(2758),o=e.Z?e.Z.prototype:void 0,s=o?o.toString:void 0;const a=function t(u){if("string"==typeof u)return u;if((0,r.Z)(u))return(0,n.Z)(u,t)+"";if((0,i.Z)(u))return s?s.call(u):"";var f=u+"";return"0"==f&&1/u==-1/0?"-0":f},c=function(t){return null==t?"":a(t)}}}]);
|