@openmrs/esm-appointments-app 8.5.1-pre.5752 → 8.5.1-pre.5756

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.
Files changed (169) hide show
  1. package/.turbo/turbo-build.log +18 -18
  2. package/dist/1119.js +1 -1
  3. package/dist/1197.js +1 -1
  4. package/dist/1431.js +1 -0
  5. package/dist/1431.js.map +1 -0
  6. package/dist/1559.js +2 -0
  7. package/dist/1559.js.map +1 -0
  8. package/dist/2146.js +1 -1
  9. package/dist/2690.js +1 -1
  10. package/dist/3099.js +1 -1
  11. package/dist/3379.js +1 -0
  12. package/dist/3379.js.map +1 -0
  13. package/dist/3584.js +1 -1
  14. package/dist/4055.js +1 -1
  15. package/dist/4132.js +1 -1
  16. package/dist/4300.js +1 -1
  17. package/dist/4335.js +1 -1
  18. package/dist/4599.js +1 -0
  19. package/dist/4599.js.map +1 -0
  20. package/dist/4618.js +1 -1
  21. package/dist/4652.js +1 -1
  22. package/dist/4863.js +1 -0
  23. package/dist/4863.js.map +1 -0
  24. package/dist/4889.js +1 -1
  25. package/dist/4889.js.map +1 -1
  26. package/dist/4944.js +1 -1
  27. package/dist/5160.js +1 -0
  28. package/dist/5160.js.map +1 -0
  29. package/dist/5173.js +1 -1
  30. package/dist/5241.js +1 -1
  31. package/dist/525.js +1 -0
  32. package/dist/525.js.map +1 -0
  33. package/dist/5442.js +1 -1
  34. package/dist/5449.js +1 -1
  35. package/dist/5449.js.map +1 -1
  36. package/dist/5661.js +1 -1
  37. package/dist/5755.js +1 -0
  38. package/dist/5755.js.map +1 -0
  39. package/dist/592.js +1 -1
  40. package/dist/592.js.map +1 -1
  41. package/dist/6022.js +1 -1
  42. package/dist/6467.js +1 -0
  43. package/dist/6467.js.map +1 -0
  44. package/dist/6468.js +1 -1
  45. package/dist/66.js +2 -0
  46. package/dist/66.js.LICENSE.txt +9 -0
  47. package/dist/66.js.map +1 -0
  48. package/dist/6679.js +1 -1
  49. package/dist/6766.js +2 -0
  50. package/dist/{7881.js.LICENSE.txt → 6766.js.LICENSE.txt} +0 -10
  51. package/dist/6766.js.map +1 -0
  52. package/dist/6840.js +1 -1
  53. package/dist/6859.js +1 -1
  54. package/dist/7097.js +1 -1
  55. package/dist/7159.js +1 -1
  56. package/dist/723.js +1 -1
  57. package/dist/7617.js +1 -1
  58. package/dist/7698.js +1 -1
  59. package/dist/7698.js.map +1 -1
  60. package/dist/795.js +1 -1
  61. package/dist/8163.js +1 -1
  62. package/dist/8349.js +1 -1
  63. package/dist/8618.js +1 -1
  64. package/dist/8784.js +1 -0
  65. package/dist/8784.js.map +1 -0
  66. package/dist/890.js +1 -1
  67. package/dist/9214.js +1 -1
  68. package/dist/9538.js +1 -1
  69. package/dist/9569.js +1 -1
  70. package/dist/986.js +1 -1
  71. package/dist/9879.js +1 -1
  72. package/dist/9895.js +1 -1
  73. package/dist/9900.js +1 -1
  74. package/dist/9913.js +1 -1
  75. package/dist/main.js +1 -1
  76. package/dist/main.js.map +1 -1
  77. package/dist/openmrs-esm-appointments-app.js +1 -1
  78. package/dist/openmrs-esm-appointments-app.js.buildmanifest.json +389 -265
  79. package/dist/openmrs-esm-appointments-app.js.map +1 -1
  80. package/dist/routes.json +1 -1
  81. package/package.json +1 -1
  82. package/src/appointments/common-components/appointments-table.component.tsx +1 -0
  83. package/src/appointments/scheduled/scheduled-appointments.component.tsx +2 -2
  84. package/src/appointments.component.tsx +7 -12
  85. package/src/appointments.test.tsx +1 -3
  86. package/src/calendar/appointments-calendar-view.component.tsx +8 -10
  87. package/src/calendar/header/calendar-header.component.tsx +2 -2
  88. package/src/calendar/monthly/monthly-calendar-view.component.tsx +2 -2
  89. package/src/calendar/monthly/monthly-header.component.tsx +4 -4
  90. package/src/calendar/monthly/monthly-workload-view.component.tsx +2 -2
  91. package/src/form/appointments-form.workspace.tsx +2 -2
  92. package/src/header/appointments-header.component.tsx +12 -18
  93. package/src/hooks/useAppointmentList.ts +3 -3
  94. package/src/hooks/useClinicalMetrics.ts +3 -3
  95. package/src/hooks/usePatientAppointmentHistory.ts +2 -2
  96. package/src/hooks/useUnscheduledAppointments.ts +2 -2
  97. package/src/index.ts +15 -0
  98. package/src/metrics/metrics-cards/highest-volume-service.extension.tsx +26 -0
  99. package/src/metrics/metrics-cards/metrics-card.component.tsx +47 -0
  100. package/src/metrics/{metrics-card.scss → metrics-cards/metrics-card.scss} +0 -7
  101. package/src/metrics/metrics-cards/metrics-error-card.component.tsx +30 -0
  102. package/src/metrics/metrics-cards/metrics-error-card.scss +33 -0
  103. package/src/metrics/metrics-cards/providers-booked.extension.tsx +21 -0
  104. package/src/metrics/metrics-cards/scheduled-appointments.extension.tsx +33 -0
  105. package/src/metrics/metrics-container.component.tsx +19 -0
  106. package/src/metrics/metrics-container.scss +22 -0
  107. package/src/metrics/metrics-header.component.tsx +2 -2
  108. package/src/routes.json +18 -0
  109. package/src/store.ts +46 -0
  110. package/src/workload/monthly-view-workload/monthly-view.component.tsx +2 -2
  111. package/translations/am.json +3 -1
  112. package/translations/ar.json +3 -1
  113. package/translations/ar_SY.json +3 -1
  114. package/translations/bn.json +3 -1
  115. package/translations/de.json +3 -1
  116. package/translations/en.json +3 -1
  117. package/translations/en_US.json +3 -1
  118. package/translations/es.json +3 -1
  119. package/translations/es_MX.json +3 -1
  120. package/translations/fr.json +3 -1
  121. package/translations/he.json +3 -1
  122. package/translations/hi.json +3 -1
  123. package/translations/hi_IN.json +3 -1
  124. package/translations/id.json +3 -1
  125. package/translations/it.json +3 -1
  126. package/translations/ka.json +3 -1
  127. package/translations/km.json +3 -1
  128. package/translations/ku.json +3 -1
  129. package/translations/ky.json +3 -1
  130. package/translations/lg.json +3 -1
  131. package/translations/ne.json +3 -1
  132. package/translations/pl.json +3 -1
  133. package/translations/pt.json +3 -1
  134. package/translations/pt_BR.json +4 -2
  135. package/translations/qu.json +3 -1
  136. package/translations/ro_RO.json +3 -1
  137. package/translations/ru_RU.json +3 -1
  138. package/translations/si.json +3 -1
  139. package/translations/sw.json +3 -1
  140. package/translations/sw_KE.json +3 -1
  141. package/translations/tr.json +3 -1
  142. package/translations/tr_TR.json +3 -1
  143. package/translations/uk.json +3 -1
  144. package/translations/uz.json +3 -1
  145. package/translations/uz@Latn.json +3 -1
  146. package/translations/uz_UZ.json +3 -1
  147. package/translations/vi.json +3 -1
  148. package/translations/zh.json +3 -1
  149. package/translations/zh_CN.json +3 -1
  150. package/dist/1293.js +0 -1
  151. package/dist/1293.js.map +0 -1
  152. package/dist/1625.js +0 -1
  153. package/dist/1625.js.map +0 -1
  154. package/dist/2164.js +0 -2
  155. package/dist/2164.js.map +0 -1
  156. package/dist/2694.js +0 -1
  157. package/dist/2694.js.map +0 -1
  158. package/dist/6708.js +0 -1
  159. package/dist/6708.js.map +0 -1
  160. package/dist/7881.js +0 -2
  161. package/dist/7881.js.map +0 -1
  162. package/dist/8963.js +0 -1
  163. package/dist/8963.js.map +0 -1
  164. package/src/hooks/selected-date-context.ts +0 -23
  165. package/src/metrics/appointments-metrics.component.tsx +0 -72
  166. package/src/metrics/appointments-metrics.scss +0 -14
  167. package/src/metrics/appointments-metrics.test.tsx +0 -42
  168. package/src/metrics/metrics-card.component.tsx +0 -49
  169. /package/dist/{2164.js.LICENSE.txt → 1559.js.LICENSE.txt} +0 -0
@@ -1,21 +1,21 @@
1
- assets by path *.js 4 MiB
1
+ assets by path *.js 4.04 MiB
2
2
  assets by chunk 2.82 MiB (id hint: vendors)
3
- assets by status 2.27 MiB [big]
3
+ assets by status 2.26 MiB [big]
4
4
  asset 5449.js 1.59 MiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
5
- asset 7881.js 417 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
6
- asset 2164.js 275 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
7
- + 10 assets
8
- + 63 assets
9
- assets by path *.json 40.6 KiB
10
- asset openmrs-esm-appointments-app.js.buildmanifest.json 38 KiB [emitted]
11
- asset routes.json 2.55 KiB [emitted] [from: src/routes.json] [copied]
12
- orphan modules 9.14 MiB [orphan] 3080 modules
13
- runtime modules 44.2 KiB 28 modules
14
- built modules 9.93 MiB (javascript) 378 bytes (share-init) 378 bytes (consume-shared) [built]
5
+ asset 6766.js 404 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
6
+ asset 1559.js 279 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
7
+ + 11 assets
8
+ + 67 assets
9
+ assets by path *.json 43.4 KiB
10
+ asset openmrs-esm-appointments-app.js.buildmanifest.json 40.5 KiB [emitted]
11
+ asset routes.json 2.95 KiB [emitted] [from: src/routes.json] [copied]
12
+ orphan modules 9.13 MiB [orphan] 3080 modules
13
+ runtime modules 44.4 KiB 28 modules
14
+ built modules 9.96 MiB (javascript) 378 bytes (share-init) 378 bytes (consume-shared) [built]
15
15
  modules by path ../../node_modules/ 8.72 MiB 626 modules
16
- modules by path ./ 1.21 MiB
17
- javascript modules 1010 KiB 57 modules
18
- optional modules 231 KiB [optional] 39 modules
16
+ modules by path ./ 1.24 MiB
17
+ javascript modules 1.01 MiB 63 modules
18
+ optional modules 237 KiB [optional] 39 modules
19
19
  provide-module modules 378 bytes 9 modules
20
20
  consume-shared-module modules 378 bytes
21
21
  modules by path consume shared module (default) swr/ 126 bytes 3 modules
@@ -26,8 +26,8 @@ built modules 9.93 MiB (javascript) 378 bytes (share-init) 378 bytes (consume-sh
26
26
  WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
27
27
  This can impact web performance.
28
28
  Assets:
29
- 7881.js (417 KiB)
30
- 2164.js (275 KiB)
29
+ 6766.js (404 KiB)
30
+ 1559.js (279 KiB)
31
31
  5449.js (1.59 MiB)
32
32
 
33
- webpack 5.99.9 compiled with 1 warning in 141007 ms
33
+ webpack 5.99.9 compiled with 1 warning in 109391 ms
package/dist/1119.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[1119],{41119:e=>{e.exports=JSON.parse('{"action":"Action","actions":"Actions","add":"Add","age":"Age","allDay":"All day","appointmentCancelError":"Error cancelling appointment","appointmentCancelled":"Appointment Cancelled","appointmentCancelledSuccessfully":"Appointment cancelled successfully","appointmentCheckedIn":"Appointment Checked In","appointmentConflict":"Appointment conflict","appointmentEdited":"Appointment edited","appointmentEditError":"Error editing appointment","appointmentEnded":"Appointment ended","appointmentEndedAndVisitClosedSuccessfully":"Appointment successfully ended and visit successfully closed","appointmentEndedButVisitNotClosedError":"Appointment ended, but error closing visit","appointmentEndedSuccessfully":"Appointment successfully ended.","appointmentEndError":"Error ending appointment","appointmentFormError":"Error scheduling appointment","appointmentHistory":"Appointment History","appointmentMarkedChecked":"Appointment marked as Checked In","appointmentMetricsLoadError":"","appointmentNoteLabel":"Write an additional note","appointmentNotePlaceholder":"Write any additional points here","appointmentNotes":"Appointment Notes","appointmentNowVisible":"It is now visible on the Appointments page","appointments":"Appointments","Appointments":"Appointments","appointments_lower":"appointments","appointmentsCalendar":"Appointments calendar","appointmentScheduled":"Appointment scheduled","appointmentsScheduledForToday":"appointments scheduled for today","appointmentsTable":"Appointments table","appointmentStatus":"Appointment status","appointmentToFulfill":"Select appointment to fulfill","appointmentType":"Appointment type","appointmentType_title":"Appointment Type","back":"Back","calendar":"Calendar","cameEarly":"Came Early","cancel":"Cancel","cancelAppointment":"Cancel Appointment","cancelAppointmentModalConfirmationText":"Are you sure you want to cancel this appointment?","cancelled":"Cancelled","checkedIn":"Checked in","checkedOut":"Checked out","checkFilters":"Check the filters above","checkIn":"Check In","checkOut":"Check out","chooseAppointmentType":"Choose appointment type","chooseLocation":"Choose a location","chooseProvider":"Choose a provider","chooseService":"Select service","completed":"Completed","Contact":"Contact {{index}}","countMore_one":"{{count}} more","countMore_other":"{{count}} more","createNewAppointment":"Create new appointment","date":"Date","date&Time":"Date & time","dateAppointmentIssuedCannotBeAfterAppointmentDate":"Date appointment issued cannot be after the appointment date","dateOfBirth":"Date of birth","dateScheduled":"Date appointment issued","dateScheduledDetail":"Date appointment issued","dateTime":"Date & Time","day":"Day","daysOfWeek":"Days of the week","discard":"Discard","download":"Download","durationErrorMessage":"Duration should be greater than zero","durationInMinutes":"Duration (minutes)","edit":"Edit","editAppointment":"Edit appointment","emptyStateText":"There are no <1>{{displayText}}</1> to display","encounters":"Encounters","encounterType":"Encounter type","endAppointmentAndVisitConfirmationMessage":"Checking the patient out will mark the appointment as complete, and close out the active visit for this patient.","endAppointmentConfirmation":"Are you sure you want to check the patient out for this appointment?","endAppointmentConfirmationMessage":"Checking the patient out will mark the appointment as complete.","endDate":"End date","expected":"Expected","filterAppointments":"Filter appointments","filterAppointmentsByServiceType":"Filter appointments by service type","filterTable":"Filter table","gender":"Gender","highestServiceVolume":"Highest volume service: {{time}}","identifier":"Identifier","invalidNumber":"Number is not valid","isRecurringAppointment":"Is this a recurring appointment?","itemsPerPage":"Items per page","loading":"Loading","location":"Location","medications":"Medications","missed":"Missed","next":"Next","nextMonth":"Next month","nextPage":"Next page","no":"No","noAppointmentsToDisplay":"No appointments to display","noContent":"No Content","noCurrentAppointments":"There are no appointments scheduled for today to display for this patient","noEncountersFound":"No encounters found","noMatchingAppointments":"No matching appointments found","noPastAppointments":"There are no past appointments to display for this patient","noPreviousVisitFound":"No previous visit found","notArrived":"Not arrived","note":"Note","notes":"Notes","noUpcomingAppointments":"No upcoming appointments found","noUpcomingAppointmentsForPatient":"There are no upcoming appointments to display for this patient","pageNumber":"Page number","past":"Past","patientDetails":"Patient Details","patientDoubleBooking":"Patient already booked for an appointment at this time","patientName":"Patient name","patients":"Patients","period":"Period","prev":"Prev","previousMonth":"Previous month","previousPage":"Previous page","provider":"Provider","providers":"Providers","providersBooked":"Providers booked: {{time}}","recurringAppointment":"Recurring Appointment","recurringAppointmentShouldHaveEndDate":"A recurring appointment should have an end date","repeatEvery":"Repeat every","saveAndClose":"Save and close","scheduled":"Scheduled","scheduledAppointments":"Scheduled appointments","scheduledForToday":"Scheduled For Today","selectALocation":"Select a location","selectAppointmentStatus":"Select status","selectAppointmentType":"Select an appointment type","selectOption":"Select an option","selectProvider":"Select a provider","selectService":"Select a service","service":"Service","serviceName":"Service name","serviceType":"Service Type","serviceUnavailable":"Appointment time is outside of service hours","startDate":"Start date","status":"Status","time":"Time","today":"Today","todays":"Today\'s","type":"Type","unscheduled":"Unscheduled","unscheduledAppointments":"Unscheduled appointments","unscheduledAppointments_lower":"unscheduled appointments","upcoming":"Upcoming","upcomingAppointments":"Upcoming appointments","updateError":"Error updating upcoming appointment","vitals":"Vitals","week":"Week","yes":"Yes"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[1119],{41119:e=>{e.exports=JSON.parse('{"action":"Action","actions":"Actions","add":"Add","age":"Age","allDay":"All day","appointmentCancelError":"Error cancelling appointment","appointmentCancelled":"Appointment Cancelled","appointmentCancelledSuccessfully":"Appointment cancelled successfully","appointmentCheckedIn":"Appointment Checked In","appointmentConflict":"Appointment conflict","appointmentEdited":"Appointment edited","appointmentEditError":"Error editing appointment","appointmentEnded":"Appointment ended","appointmentEndedAndVisitClosedSuccessfully":"Appointment successfully ended and visit successfully closed","appointmentEndedButVisitNotClosedError":"Appointment ended, but error closing visit","appointmentEndedSuccessfully":"Appointment successfully ended.","appointmentEndError":"Error ending appointment","appointmentFormError":"Error scheduling appointment","appointmentHistory":"Appointment History","appointmentMarkedChecked":"Appointment marked as Checked In","appointmentNoteLabel":"Write an additional note","appointmentNotePlaceholder":"Write any additional points here","appointmentNotes":"Appointment Notes","appointmentNowVisible":"It is now visible on the Appointments page","appointments":"Appointments","Appointments":"Appointments","appointments_lower":"appointments","appointmentsCalendar":"Appointments calendar","appointmentScheduled":"Appointment scheduled","appointmentsScheduledForToday":"appointments scheduled for today","appointmentsTable":"Appointments table","appointmentStatus":"Appointment status","appointmentToFulfill":"Select appointment to fulfill","appointmentType":"Appointment type","appointmentType_title":"Appointment Type","back":"Back","calendar":"Calendar","cameEarly":"Came Early","cancel":"Cancel","cancelAppointment":"Cancel Appointment","cancelAppointmentModalConfirmationText":"Are you sure you want to cancel this appointment?","cancelled":"Cancelled","checkedIn":"Checked in","checkedOut":"Checked out","checkFilters":"Check the filters above","checkIn":"Check In","checkOut":"Check out","chooseAppointmentType":"Choose appointment type","chooseLocation":"Choose a location","chooseProvider":"Choose a provider","chooseService":"Select service","completed":"Completed","Contact":"Contact {{index}}","countMore_one":"{{count}} more","countMore_other":"{{count}} more","createNewAppointment":"Create new appointment","date":"Date","date&Time":"Date & time","dateAppointmentIssuedCannotBeAfterAppointmentDate":"Date appointment issued cannot be after the appointment date","dateOfBirth":"Date of birth","dateScheduled":"Date appointment issued","dateScheduledDetail":"Date appointment issued","dateTime":"Date & Time","day":"Day","daysOfWeek":"Days of the week","discard":"Discard","download":"Download","durationErrorMessage":"Duration should be greater than zero","durationInMinutes":"Duration (minutes)","edit":"Edit","editAppointment":"Edit appointment","emptyStateText":"There are no <1>{{displayText}}</1> to display","encounters":"Encounters","encounterType":"Encounter type","endAppointmentAndVisitConfirmationMessage":"Checking the patient out will mark the appointment as complete, and close out the active visit for this patient.","endAppointmentConfirmation":"Are you sure you want to check the patient out for this appointment?","endAppointmentConfirmationMessage":"Checking the patient out will mark the appointment as complete.","endDate":"End date","expected":"Expected","failedToLoadMetrics":"Failed to load","filterAppointments":"Filter appointments","filterAppointmentsByServiceType":"Filter appointments by service type","filterTable":"Filter table","gender":"Gender","highestServiceVolume":"Highest volume service: {{time}}","highestServiceVolumeCardTitle":"Highest volume service","identifier":"Identifier","invalidNumber":"Number is not valid","isRecurringAppointment":"Is this a recurring appointment?","itemsPerPage":"Items per page","loading":"Loading","location":"Location","medications":"Medications","metricLoadErrorMessage":"Please contact your system administrator if the problem persists.","missed":"Missed","next":"Next","nextMonth":"Next month","nextPage":"Next page","no":"No","noAppointmentsToDisplay":"No appointments to display","noContent":"No Content","noCurrentAppointments":"There are no appointments scheduled for today to display for this patient","noEncountersFound":"No encounters found","noMatchingAppointments":"No matching appointments found","noPastAppointments":"There are no past appointments to display for this patient","noPreviousVisitFound":"No previous visit found","notArrived":"Not arrived","note":"Note","notes":"Notes","noUpcomingAppointments":"No upcoming appointments found","noUpcomingAppointmentsForPatient":"There are no upcoming appointments to display for this patient","pageNumber":"Page number","past":"Past","patientDetails":"Patient Details","patientDoubleBooking":"Patient already booked for an appointment at this time","patientName":"Patient name","patients":"Patients","period":"Period","prev":"Prev","previousMonth":"Previous month","previousPage":"Previous page","provider":"Provider","providers":"Providers","providersBooked":"Providers booked: {{time}}","recurringAppointment":"Recurring Appointment","recurringAppointmentShouldHaveEndDate":"A recurring appointment should have an end date","repeatEvery":"Repeat every","saveAndClose":"Save and close","scheduled":"Scheduled","scheduledAppointments":"Scheduled appointments","scheduledForToday":"Scheduled For Today","selectALocation":"Select a location","selectAppointmentStatus":"Select status","selectAppointmentType":"Select an appointment type","selectOption":"Select an option","selectProvider":"Select a provider","selectService":"Select a service","service":"Service","serviceName":"Service name","serviceType":"Service Type","serviceUnavailable":"Appointment time is outside of service hours","startDate":"Start date","status":"Status","time":"Time","today":"Today","todays":"Today\'s","type":"Type","unscheduled":"Unscheduled","unscheduledAppointments":"Unscheduled appointments","unscheduledAppointments_lower":"unscheduled appointments","upcoming":"Upcoming","upcomingAppointments":"Upcoming appointments","updateError":"Error updating upcoming appointment","vitals":"Vitals","week":"Week","yes":"Yes"}')}}]);
package/dist/1197.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[1197],{81197:e=>{e.exports=JSON.parse('{"action":"Action","actions":"Actions","add":"Add","age":"Age","allDay":"All day","appointmentCancelError":"Error cancelling appointment","appointmentCancelled":"Appointment Cancelled","appointmentCancelledSuccessfully":"Appointment cancelled successfully","appointmentCheckedIn":"Appointment Checked In","appointmentConflict":"Appointment conflict","appointmentEdited":"Appointment edited","appointmentEditError":"Error editing appointment","appointmentEnded":"Appointment ended","appointmentEndedAndVisitClosedSuccessfully":"Appointment successfully ended and visit successfully closed","appointmentEndedButVisitNotClosedError":"Appointment ended, but error closing visit","appointmentEndedSuccessfully":"Appointment successfully ended.","appointmentEndError":"Error ending appointment","appointmentFormError":"Error scheduling appointment","appointmentHistory":"Appointment History","appointmentMarkedChecked":"Appointment marked as Checked In","appointmentMetricsLoadError":"","appointmentNoteLabel":"Write an additional note","appointmentNotePlaceholder":"Write any additional points here","appointmentNotes":"Appointment Notes","appointmentNowVisible":"It is now visible on the Appointments page","appointments":"Appointments","Appointments":"Appointments","appointments_lower":"appointments","appointmentsCalendar":"Appointments calendar","appointmentScheduled":"Appointment scheduled","appointmentsScheduledForToday":"appointments scheduled for today","appointmentsTable":"Appointments table","appointmentStatus":"Appointment status","appointmentToFulfill":"Select appointment to fulfill","appointmentType":"Appointment type","appointmentType_title":"Appointment Type","back":"Back","calendar":"Calendar","cameEarly":"Came early","cancel":"Cancel","cancelAppointment":"Cancel Appointment","cancelAppointmentModalConfirmationText":"Are you sure you want to cancel this appointment?","cancelled":"Cancelled","checkedIn":"Checked in","checkedOut":"Checked out","checkFilters":"Check the filters above","checkIn":"Check In","checkOut":"Check out","chooseAppointmentType":"Choose appointment type","chooseLocation":"Choose a location","chooseProvider":"Choose a provider","chooseService":"Select service","completed":"Completed","Contact":"Contact {{index}}","countMore_one":"{{count}} more","countMore_other":"{{count}} more","createNewAppointment":"Create new appointment","date":"Date","date&Time":"Date & time","dateAppointmentIssuedCannotBeAfterAppointmentDate":"Date appointment issued cannot be after the appointment date","dateOfBirth":"Date of birth","dateScheduled":"Date appointment issued","dateScheduledDetail":"Date appointment issued","dateTime":"Date & Time","day":"Day","daysOfWeek":"Days of the week","discard":"Discard","download":"Download","durationErrorMessage":"Duration should be greater than zero","durationInMinutes":"Duration (minutes)","edit":"Edit","editAppointment":"Edit appointment","emptyStateText":"There are no <1>{{displayText}}</1> to display","encounters":"Encounters","encounterType":"Encounter type","endAppointmentAndVisitConfirmationMessage":"Checking the patient out will mark the appointment as complete, and close out the active visit for this patient.","endAppointmentConfirmation":"Are you sure you want to check the patient out for this appointment?","endAppointmentConfirmationMessage":"Checking the patient out will mark the appointment as complete.","endDate":"End date","expected":"Expected","filterAppointments":"Filter appointments","filterAppointmentsByServiceType":"Filter appointments by service type","filterTable":"Filter table","gender":"Gender","highestServiceVolume":"Highest volume service: {{time}}","identifier":"Identifier","invalidNumber":"Number is not valid","isRecurringAppointment":"Is this a recurring appointment?","itemsPerPage":"Items per page","loading":"Loading","location":"Location","medications":"Medications","missed":"Missed","next":"Next","nextMonth":"Next month","nextPage":"Next page","no":"No","noAppointmentsToDisplay":"No appointments to display","noContent":"No Content","noCurrentAppointments":"There are no appointments scheduled for today to display for this patient","noEncountersFound":"No encounters found","noMatchingAppointments":"No matching appointments found","noPastAppointments":"There are no past appointments to display for this patient","noPreviousVisitFound":"No previous visit found","notArrived":"Not arrived","note":"Note","notes":"Notes","noUpcomingAppointments":"No upcoming appointments found","noUpcomingAppointmentsForPatient":"There are no upcoming appointments to display for this patient","pageNumber":"Page number","past":"Past","patientDetails":"Patient details","patientDoubleBooking":"Patient already booked for an appointment at this time","patientName":"Patient name","patients":"Patients","period":"Period","prev":"Prev","previousMonth":"Previous month","previousPage":"Previous page","provider":"Provider","providers":"Providers","providersBooked":"Providers booked: {{time}}","recurringAppointment":"Recurring Appointment","recurringAppointmentShouldHaveEndDate":"A recurring appointment should have an end date","repeatEvery":"Repeat every","saveAndClose":"Save and close","scheduled":"Scheduled","scheduledAppointments":"Scheduled appointments","scheduledForToday":"Scheduled For Today","selectALocation":"Select a location","selectAppointmentStatus":"Select status","selectAppointmentType":"Select an appointment type","selectOption":"Select an option","selectProvider":"Select a provider","selectService":"Select a service","service":"Service","serviceName":"Service name","serviceType":"Service Type","serviceUnavailable":"Appointment time is outside of service hours","startDate":"Start date","status":"Status","time":"Time","today":"Today","todays":"Today\'s","type":"Type","unscheduled":"Unscheduled","unscheduledAppointments":"Unscheduled appointments","unscheduledAppointments_lower":"unscheduled appointments","upcoming":"Upcoming","upcomingAppointments":"Upcoming appointments","updateError":"Error updating upcoming appointment","vitals":"Vitals","week":"Week","yes":"Yes"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[1197],{81197:e=>{e.exports=JSON.parse('{"action":"Action","actions":"Actions","add":"Add","age":"Age","allDay":"All day","appointmentCancelError":"Error cancelling appointment","appointmentCancelled":"Appointment Cancelled","appointmentCancelledSuccessfully":"Appointment cancelled successfully","appointmentCheckedIn":"Appointment Checked In","appointmentConflict":"Appointment conflict","appointmentEdited":"Appointment edited","appointmentEditError":"Error editing appointment","appointmentEnded":"Appointment ended","appointmentEndedAndVisitClosedSuccessfully":"Appointment successfully ended and visit successfully closed","appointmentEndedButVisitNotClosedError":"Appointment ended, but error closing visit","appointmentEndedSuccessfully":"Appointment successfully ended.","appointmentEndError":"Error ending appointment","appointmentFormError":"Error scheduling appointment","appointmentHistory":"Appointment History","appointmentMarkedChecked":"Appointment marked as Checked In","appointmentNoteLabel":"Write an additional note","appointmentNotePlaceholder":"Write any additional points here","appointmentNotes":"Appointment Notes","appointmentNowVisible":"It is now visible on the Appointments page","appointments":"Appointments","Appointments":"Appointments","appointments_lower":"appointments","appointmentsCalendar":"Appointments calendar","appointmentScheduled":"Appointment scheduled","appointmentsScheduledForToday":"appointments scheduled for today","appointmentsTable":"Appointments table","appointmentStatus":"Appointment status","appointmentToFulfill":"Select appointment to fulfill","appointmentType":"Appointment type","appointmentType_title":"Appointment Type","back":"Back","calendar":"Calendar","cameEarly":"Came early","cancel":"Cancel","cancelAppointment":"Cancel Appointment","cancelAppointmentModalConfirmationText":"Are you sure you want to cancel this appointment?","cancelled":"Cancelled","checkedIn":"Checked in","checkedOut":"Checked out","checkFilters":"Check the filters above","checkIn":"Check In","checkOut":"Check out","chooseAppointmentType":"Choose appointment type","chooseLocation":"Choose a location","chooseProvider":"Choose a provider","chooseService":"Select service","completed":"Completed","Contact":"Contact {{index}}","countMore_one":"{{count}} more","countMore_other":"{{count}} more","createNewAppointment":"Create new appointment","date":"Date","date&Time":"Date & time","dateAppointmentIssuedCannotBeAfterAppointmentDate":"Date appointment issued cannot be after the appointment date","dateOfBirth":"Date of birth","dateScheduled":"Date appointment issued","dateScheduledDetail":"Date appointment issued","dateTime":"Date & Time","day":"Day","daysOfWeek":"Days of the week","discard":"Discard","download":"Download","durationErrorMessage":"Duration should be greater than zero","durationInMinutes":"Duration (minutes)","edit":"Edit","editAppointment":"Edit appointment","emptyStateText":"There are no <1>{{displayText}}</1> to display","encounters":"Encounters","encounterType":"Encounter type","endAppointmentAndVisitConfirmationMessage":"Checking the patient out will mark the appointment as complete, and close out the active visit for this patient.","endAppointmentConfirmation":"Are you sure you want to check the patient out for this appointment?","endAppointmentConfirmationMessage":"Checking the patient out will mark the appointment as complete.","endDate":"End date","expected":"Expected","failedToLoadMetrics":"Failed to load","filterAppointments":"Filter appointments","filterAppointmentsByServiceType":"Filter appointments by service type","filterTable":"Filter table","gender":"Gender","highestServiceVolume":"Highest volume service: {{time}}","highestServiceVolumeCardTitle":"Highest volume service","identifier":"Identifier","invalidNumber":"Number is not valid","isRecurringAppointment":"Is this a recurring appointment?","itemsPerPage":"Items per page","loading":"Loading","location":"Location","medications":"Medications","metricLoadErrorMessage":"Please contact your system administrator if the problem persists.","missed":"Missed","next":"Next","nextMonth":"Next month","nextPage":"Next page","no":"No","noAppointmentsToDisplay":"No appointments to display","noContent":"No Content","noCurrentAppointments":"There are no appointments scheduled for today to display for this patient","noEncountersFound":"No encounters found","noMatchingAppointments":"No matching appointments found","noPastAppointments":"There are no past appointments to display for this patient","noPreviousVisitFound":"No previous visit found","notArrived":"Not arrived","note":"Note","notes":"Notes","noUpcomingAppointments":"No upcoming appointments found","noUpcomingAppointmentsForPatient":"There are no upcoming appointments to display for this patient","pageNumber":"Page number","past":"Past","patientDetails":"Patient details","patientDoubleBooking":"Patient already booked for an appointment at this time","patientName":"Patient name","patients":"Patients","period":"Period","prev":"Prev","previousMonth":"Previous month","previousPage":"Previous page","provider":"Provider","providers":"Providers","providersBooked":"Providers booked: {{time}}","recurringAppointment":"Recurring Appointment","recurringAppointmentShouldHaveEndDate":"A recurring appointment should have an end date","repeatEvery":"Repeat every","saveAndClose":"Save and close","scheduled":"Scheduled","scheduledAppointments":"Scheduled appointments","scheduledForToday":"Scheduled For Today","selectALocation":"Select a location","selectAppointmentStatus":"Select status","selectAppointmentType":"Select an appointment type","selectOption":"Select an option","selectProvider":"Select a provider","selectService":"Select a service","service":"Service","serviceName":"Service name","serviceType":"Service Type","serviceUnavailable":"Appointment time is outside of service hours","startDate":"Start date","status":"Status","time":"Time","today":"Today","todays":"Today\'s","type":"Type","unscheduled":"Unscheduled","unscheduledAppointments":"Unscheduled appointments","unscheduledAppointments_lower":"unscheduled appointments","upcoming":"Upcoming","upcomingAppointments":"Upcoming appointments","updateError":"Error updating upcoming appointment","vitals":"Vitals","week":"Week","yes":"Yes"}')}}]);
package/dist/1431.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[1431],{4120:(n,e,a)=>{a.d(e,{A:()=>s});var t=a(30977),r=a.n(t),o=a(95924),i=a.n(o)()(r());i.push([n.id,".-esm-appointments__scheduled-appointments__switcher___slfHc{margin:1rem 0;max-width:70%}","",{version:3,sources:["webpack://./src/appointments/scheduled/scheduled-appointments.scss"],names:[],mappings:"AAEA,6DACE,aAAA,CACA,aAAA",sourcesContent:["@use '@carbon/layout';\n\n.switcher {\n margin: layout.$spacing-05 0;\n max-width: 70%;\n}\n"],sourceRoot:""}]),i.locals={switcher:"-esm-appointments__scheduled-appointments__switcher___slfHc"};const s=i},13422:(n,e,a)=>{a.d(e,{A:()=>s});var t=a(30977),r=a.n(t),o=a(95924),i=a.n(o)()(r());i.push([n.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-appointments__metrics-container__cardContainer___PR1\\+O{background-color:#fff;display:flex;padding:0 1rem 2rem 1rem;flex-flow:row wrap;margin-top:-0.5rem;gap:1rem}.-esm-appointments__metrics-container__cardContainer___PR1\\+O>*{flex:1 0 0%;min-width:18.75rem}@media(max-width: 20.75rem){.-esm-appointments__metrics-container__cardContainer___PR1\\+O>*:has(.cardWithChildren){order:999}}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/metrics/metrics-container.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CC1DF,8DACE,qBDDM,CCEN,YAAA,CACA,wBAAA,CACA,kBAAA,CACA,kBAAA,CACA,QCsBW,CDnBb,gEACE,WAAA,CACA,kBAAA,CAGF,4BACE,uFACE,SAAA,CAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.cardContainer {\n background-color: $ui-02;\n display: flex;\n padding: 0 layout.$spacing-05 layout.$spacing-07 layout.$spacing-05;\n flex-flow: row wrap;\n margin-top: -(layout.$spacing-03);\n gap: layout.$spacing-05;\n}\n\n.cardContainer > * {\n flex: 1 0 0%;\n min-width: 18.75rem;\n}\n\n@media (max-width: calc(layout.$spacing-05 * 2 + 18.75rem)) {\n .cardContainer > *:has(:global(.cardWithChildren)) {\n order: 999;\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),i.locals={cardContainer:"-esm-appointments__metrics-container__cardContainer___PR1+O"};const s=i},31118:(n,e,a)=>{a.d(e,{A:()=>s});var t=a(30977),r=a.n(t),o=a(95924),i=a.n(o)()(r());i.push([n.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-appointments__metrics-header__metricsContainer___OG6Ft{display:flex;background-color:#fff;height:4rem;align-items:center;padding:0 1rem}.-esm-appointments__metrics-header__link___IyBdE{text-decoration:none;display:flex;align-items:center}.-esm-appointments__metrics-header__viewListBtn___wSvwo{margin:0 0 0 .5rem}.-esm-appointments__metrics-header__metricsContent___2Gebb{display:flex;align-items:center;gap:1rem;margin-left:auto}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/metrics/metrics-header.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,6DACE,YAAA,CACA,qBDHM,CCIN,WCiDW,CDhDX,kBAAA,CACA,cAAA,CAGF,iDACE,oBAAA,CACA,YAAA,CACA,kBAAA,CAGF,wDACE,kBAAA,CAGF,2DACE,YAAA,CACA,kBAAA,CACA,QCMW,CDLX,gBAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.metricsContainer {\n display: flex;\n background-color: $ui-02;\n height: layout.$spacing-10;\n align-items: center;\n padding: 0 layout.$spacing-05;\n}\n\n.link {\n text-decoration: none;\n display: flex;\n align-items: center;\n}\n\n.viewListBtn {\n margin: 0 0 0 layout.$spacing-03;\n}\n\n.metricsContent {\n display: flex;\n align-items: center;\n gap: layout.$spacing-05;\n margin-left: auto;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),i.locals={metricsContainer:"-esm-appointments__metrics-header__metricsContainer___OG6Ft",link:"-esm-appointments__metrics-header__link___IyBdE",viewListBtn:"-esm-appointments__metrics-header__viewListBtn___wSvwo",metricsContent:"-esm-appointments__metrics-header__metricsContent___2Gebb"};const s=i},47331:(n,e,a)=>{a.d(e,{A:()=>s});var t=a(30977),r=a.n(t),o=a(95924),i=a.n(o)()(r());i.push([n.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-appointments__appointments-header__header___9TDaZ{background-color:#fff;border:1px solid #e0e0e0;border-left:0;display:flex;justify-content:space-between;align-items:center;padding-right:.5rem}.-esm-appointments__appointments-header__rightJustifiedItems___WVWV2{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;margin:0 .5rem;row-gap:.125rem}html[dir=rtl] .-esm-appointments__appointments-header__date-and-location___Fstmf>svg{order:-1}html[dir=rtl] .-esm-appointments__appointments-header__date-and-location___Fstmf>span:nth-child(2){order:-2}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/header/appointments-header.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCxDF,wDACE,qBDHM,CCIN,wBAAA,CACA,aAAA,CACA,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,mBCSW,CDNb,qEACE,YAAA,CACA,qBAAA,CACA,oBAAA,CACA,wBAAA,CACA,cAAA,CACA,eCVW,CDgBT,qFACE,QAAA,CAEF,mGACE,QAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/colors';\n@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.header {\n background-color: $ui-02;\n border: 1px solid $ui-03;\n border-left: 0;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-right: layout.$spacing-03;\n}\n\n.rightJustifiedItems {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n justify-content: flex-end;\n margin: 0 layout.$spacing-03;\n row-gap: layout.$spacing-01;\n}\n\n// Overriding styles for RTL support\nhtml[dir='rtl'] {\n .date-and-location {\n & > svg {\n order: -1;\n }\n & > span:nth-child(2) {\n order: -2;\n }\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),i.locals={header:"-esm-appointments__appointments-header__header___9TDaZ",rightJustifiedItems:"-esm-appointments__appointments-header__rightJustifiedItems___WVWV2","date-and-location":"-esm-appointments__appointments-header__date-and-location___Fstmf"};const s=i},47781:(n,e,a)=>{a.d(e,{A:()=>N});var t=a(1343),r=a.n(t),o=a(23464),i=a.n(o),s=a(93150),c=a(56766),p=a(38254),l=a(57691),u=a(71123),d=a(77415),m=a(72591),b=a.n(m),g=a(1740),f=a.n(g),y=a(88128),A=a.n(y),h=a(30855),$=a.n(h),_=a(93051),v=a.n(_),C=a(73656),w=a.n(C),k=a(47331),x={};x.styleTagTransform=w(),x.setAttributes=$(),x.insert=A().bind(null,"head"),x.domAPI=f(),x.insertStyleElement=v(),b()(k.A,x);const E=k.A&&k.A.locals?k.A.locals:void 0,N=function(n){var e,a,o,m,b,g=n.title,f=n.showServiceTypeFilter,y=(0,s.useTranslation)().t,A=(0,d.nS)(),h=A.selectedDate,$=A.appointmentServiceTypes,_=(a=(0,u.Ay)("".concat(p.restBaseUrl,"/appointmentService/all/default"),p.openmrsFetch),o=a.data,m=a.error,b=a.isLoading,{serviceTypes:null!==(e=null==o?void 0:o.data)&&void 0!==e?e:[],isLoading:b,error:m}).serviceTypes,v=(0,t.useCallback)(function(n){var e=n.selectedItems.map(function(n){return n.id});(0,d.If)(e)},[]),C=(0,t.useMemo)(function(){var n;return null!==(n=null==_?void 0:_.map(function(n){return{id:n.uuid,label:n.name}}))&&void 0!==n?n:[]},[_]);return r().createElement(p.PageHeader,{className:E.header,"data-testid":"appointments-header"},r().createElement(p.PageHeaderContent,{illustration:r().createElement(p.AppointmentsPictogram,null),title:g}),r().createElement("div",{className:E.rightJustifiedItems},r().createElement(p.OpenmrsDatePicker,{"data-testid":"appointment-date-picker",id:"appointment-date-picker",labelText:"",onChange:function(n){return(0,d.un)(i()(n).startOf("day").format(l.BC))},value:i()(h).toDate()}),f&&r().createElement(c.KFt,{id:"serviceTypeMultiSelect",items:C,itemToString:function(n){return n?n.label:""},label:y("filterAppointmentsByServiceType","Filter appointments by service type"),onChange:v,type:"inline",selectedItems:C.filter(function(n){return $.includes(n.id)})})))}},81431:(n,e,a)=>{a.r(e),a.d(e,{default:()=>mn});var t=a(1343),r=a.n(t),o=a(23464),i=a.n(o),s=a(93150),c=a(8877),p=a(57691),l=a(56766),u=a(38254),d=a(40515),m=a.n(d),b=a(77415),g=a(72591),f=a.n(g),y=a(1740),A=a.n(y),h=a(88128),$=a.n(h),_=a(30855),v=a.n(_),C=a(93051),w=a.n(C),k=a(73656),x=a.n(k),E=a(4120),N={};N.styleTagTransform=x(),N.setAttributes=v(),N.insert=$().bind(null,"head"),N.domAPI=A(),N.insertStyleElement=w(),f()(E.A,N);const T=E.A&&E.A.locals?E.A.locals:void 0;function B(n,e){(null==e||e>n.length)&&(e=n.length);for(var a=0,t=new Array(e);a<e;a++)t[a]=n[a];return t}function S(n,e,a){return e in n?Object.defineProperty(n,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[e]=a,n}function D(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var a=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=a){var t,r,o=[],i=!0,s=!1;try{for(a=a.call(n);!(i=(t=a.next()).done)&&(o.push(t.value),!e||o.length!==e);i=!0);}catch(n){s=!0,r=n}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(n,e)||function(n,e){if(n){if("string"==typeof n)return B(n,e);var a=Object.prototype.toString.call(n).slice(8,-1);return"Object"===a&&n.constructor&&(a=n.constructor.name),"Map"===a||"Set"===a?Array.from(a):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?B(n,e):void 0}}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(n){return n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n}i().extend(m());var O="scheduled-appointments-panels-slot";function P(n){var e,a,o=n.extension,i=n.currentTab,s=n.appointmentServiceTypes,c=n.date,p=n.dateType,l=n.showExtensionTab,d=n.hideExtensionTab,m=(0,t.useRef)(null),b=(0,t.useRef)(p);return(0,t.useEffect)(function(){(null===m.current||null!==m.current&&!function(n,e){if(Object.is(n,e))return!0;if("object"!==(void 0===n?"undefined":I(n))||null===n||"object"!==(void 0===e?"undefined":I(e))||null===e)return!1;var a=Object.getOwnPropertyNames(n),t=Object.getOwnPropertyNames(e);return a.length===t.length&&a.every(function(a){return n[a]===e[a]})}(m.current,o.config)||b.current!==p)&&(m.current=o.config,b.current=p,function(n,e){if(!n)return!1;switch(e){case"futureDate":var a;return null!==(a=n.showForFutureDate)&&void 0!==a&&a;case"pastDate":var t;return null!==(t=n.showForPastDate)&&void 0!==t&&t;case"today":var r;return null!==(r=n.showForToday)&&void 0!==r&&r}}(null==o?void 0:o.config,p)?l(o.name):d(o.name))},[o,p,l,d]),r().createElement("div",{key:o.name,className:T.container,style:{display:i===o.name?"block":"none"}},r().createElement(u.Extension,{state:{date:c,appointmentServiceTypes:s,status:null===(e=o.config)||void 0===e?void 0:e.status,title:null===(a=o.config)||void 0===a?void 0:a.title}}))}const F=function(n){var e=n.appointmentServiceTypes,a=(0,s.useTranslation)().t,o=(0,b.nS)().selectedDate,c=(0,u.useLayoutType)(),p=(0,u.isDesktop)(c)?"sm":"md",d=D((0,t.useState)(null),2),m=d[0],g=d[1],f=D((0,t.useState)("today"),2),y=f[0],A=f[1],h=(0,u.useConnectedExtensions)(O),$=function(){var n=D((0,t.useReducer)(function(n,e){var a={};switch(e.type){case"show_extension":a[e.extension]=!0;break;case"hide_extension":a[e.extension]=!1}return function(n){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{},t=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),t.forEach(function(e){S(n,e,a[e])})}return n}({},n,a)},{}),2),e=n[0],a=n[1];return{allowedExtensions:e,showExtension:function(n){return a({type:"show_extension",extension:n})},hideExtension:function(n){return a({type:"hide_extension",extension:n})}}}(),_=$.allowedExtensions,v=$.showExtension,C=$.hideExtension,w=(0,t.useCallback)(function(n){var e;return null!==(e=_[n.name])&&void 0!==e&&e},[_]);(0,t.useEffect)(function(){var n=i()(o),e=i()();n.isBefore(e,"date")?A("pastDate"):n.isAfter(e,"date")?A("futureDate"):A("today")},[o]),(0,t.useEffect)(function(){if(_&&(null===m||!_[m])){var n=!0,e=!1,a=void 0;try{for(var t,r=Object.getOwnPropertyNames(_)[Symbol.iterator]();!(n=(t=r.next()).done);n=!0){var o=t.value;if(_[o]){g(o);break}}}catch(n){e=!0,a=n}finally{try{n||null==r.return||r.return()}finally{if(e)throw a}}}},[_,m]);var k,x=h.filter(w);return r().createElement(r().Fragment,null,r().createElement(l.Tps,{className:T.switcher,size:p,onChange:function(n){var e=n.name;return g(e)},selectedIndex:null!==(k=x.findIndex(function(n){return n.name==m}))&&void 0!==k?k:0,selectionMode:"manual"},x.map(function(n){return r().createElement(l.dOG,{key:"panel-".concat(n.name),name:n.name,text:a(n.config.title)})})),r().createElement(u.ExtensionSlot,{name:O},function(n){return r().createElement(P,{appointmentServiceTypes:e,currentTab:m,date:o,dateType:y,extension:n,hideExtensionTab:C,showExtensionTab:v})}))};var j=a(68622),L=a(71123),M=a(95008);var W=a(13219),G=a(70197),V=a(82168);function R(n,e){(null==e||e>n.length)&&(e=n.length);for(var a=0,t=new Array(e);a<e;a++)t[a]=n[a];return t}function Y(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var a=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=a){var t,r,o=[],i=!0,s=!1;try{for(a=a.call(n);!(i=(t=a.next()).done)&&(o.push(t.value),!e||o.length!==e);i=!0);}catch(n){s=!0,r=n}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(n,e)||function(n,e){if(n){if("string"==typeof n)return R(n,e);var a=Object.prototype.toString.call(n).slice(8,-1);return"Object"===a&&n.constructor&&(a=n.constructor.name),"Map"===a||"Set"===a?Array.from(a):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?R(n,e):void 0}}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const U=function(){var n,e,a=(0,s.useTranslation)().t,o=Y((0,t.useState)(25),2),i=o[0],c=o[1],p=Y((0,t.useState)(""),2),d=p[0],m=p[1],g=function(){var n,e=(0,b.nS)().selectedDate,a="".concat(u.restBaseUrl,"/appointment/unScheduledAppointment?forDate=").concat(e),t=(0,L.Ay)(a,u.openmrsFetch,{errorRetryCount:2}),r=t.data,o=t.error,i=t.isLoading,s=null==r||null===(n=r.data)||void 0===n?void 0:n.map(function(n){return function(n){var e;return{name:n.name,identifier:null==n||null===(e=n.identifiers)||void 0===e?void 0:e.find(function(n){return n.identifierName===M.Q.patientIdentifierType._default}).identifier,dateTime:null==n?void 0:n.visit.startDateTime,gender:n.gender,phoneNumber:n.phoneNumber,age:n.age,uuid:n.uuid}}(n)});return{isLoading:i,data:null!=s?s:[],error:o}}(),f=g.data,y=g.isLoading,A=(g.error,(0,V.WB)(f,d)),h=(0,u.useConfig)().customPatientChartUrl,$=(0,u.usePagination)(A,i),_=$.results,v=$.currentPage,C=$.goTo,w=null==_?void 0:_.map(function(n){return{id:"".concat(n.uuid),name:r().createElement(u.ConfigurableLink,{style:{textDecoration:"none"},to:h,templateParams:{patientUuid:n.uuid}},n.name),gender:"F"===n.gender?"Female":"Male",phoneNumber:""===n.phoneNumber?"--":n.phoneNumber,identifier:null==n?void 0:n.identifier}});return y?r().createElement(l.OOb,null):(null==f?void 0:f.length)?r().createElement("div",null,r().createElement(l.bQt,{rows:w,headers:[{header:"Patient Name",key:"name"},{header:"Identifier",key:"identifier"},{header:"Gender",key:"gender"},{header:"Phone Number",key:"phoneNumber"}],isSortable:!0},function(n){var e,t=n.rows,o=n.headers,i=n.getHeaderProps,s=n.getTableProps;return r().createElement(l.K3K,{title:"".concat(a("unscheduledAppointments","Unscheduled appointments")," ").concat(f.length),description:"".concat(a("Total ".concat(null!==(e=f.length)&&void 0!==e?e:0)))},r().createElement(l.e1U,null,r().createElement(l.VbH,null,r().createElement(l.w6V,{style:{backgroundColor:"#f4f4f4"},tabIndex:0,onChange:function(n){return m(n.target.value)}}),r().createElement(l.$nd,{size:"lg",kind:"tertiary",renderIcon:j.f5,onClick:function(){return(0,W.K)(f)}},a("download","Download")))),r().createElement(l.XIK,s(),r().createElement(l.ndF,null,r().createElement(l.Hjg,null,o.map(function(n){return r().createElement(l.A0N,i({header:n}),n.header)}))),r().createElement(l.BFY,null,t.map(function(n){return r().createElement(l.Hjg,{key:n.id},n.cells.map(function(n){return r().createElement(l.nA6,{key:n.id},n.value)}))}))))}),r().createElement(l.dKS,{backwardText:"Previous page",forwardText:"Next page",page:v,pageNumberText:"Page Number",pageSize:i,onChange:function(n){var e=n.page,a=n.pageSize;C(e),c(a)},pageSizes:null!==(n=(0,V.uB)(f,i))&&void 0!==n?n:[],totalItems:null!==(e=f.length)&&void 0!==e?e:0})):r().createElement(G.p,{displayText:a("unscheduledAppointments_lower","unscheduled appointments"),headerTitle:a("unscheduledAppointments","Unscheduled appointments")})};var z=a(87228),H={};H.styleTagTransform=x(),H.setAttributes=v(),H.insert=$().bind(null,"head"),H.domAPI=A(),H.insertStyleElement=w(),f()(z.A,H);const q=z.A&&z.A.locals?z.A.locals:void 0;function K(n,e){(null==e||e>n.length)&&(e=n.length);for(var a=0,t=new Array(e);a<e;a++)t[a]=n[a];return t}const Q=function(n){var e,a,o=n.appointmentServiceTypes,i=(0,s.useTranslation)().t,c=(0,u.useConfig)().showUnscheduledAppointmentsTab,p=(e=(0,t.useState)(0),a=2,function(n){if(Array.isArray(n))return n}(e)||function(n,e){var a=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=a){var t,r,o=[],i=!0,s=!1;try{for(a=a.call(n);!(i=(t=a.next()).done)&&(o.push(t.value),!e||o.length!==e);i=!0);}catch(n){s=!0,r=n}finally{try{i||null==a.return||a.return()}finally{if(s)throw r}}return o}}(e,a)||function(n,e){if(n){if("string"==typeof n)return K(n,e);var a=Object.prototype.toString.call(n).slice(8,-1);return"Object"===a&&n.constructor&&(a=n.constructor.name),"Map"===a||"Set"===a?Array.from(a):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?K(n,e):void 0}}(e,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=p[0],m=p[1];return r().createElement("div",{className:q.appointmentList,"data-testid":"appointment-list"},c?r().createElement(l.tUM,{selectedIndex:d,onChange:function(n){var e=n.selectedIndex;m(e)},className:q.tabs},r().createElement(l.wbY,{style:{paddingLeft:"1rem"},"aria-label":"Appointment tabs",contained:!0},r().createElement(l.ozo,{className:q.tab},i("scheduled","Scheduled")),r().createElement(l.ozo,{className:q.tab},i("unscheduled","Unscheduled"))),r().createElement(l.T2N,null,r().createElement(l.KpK,{className:q.tabPanel},r().createElement(F,{appointmentServiceTypes:o})),r().createElement(l.KpK,{className:q.tabPanel},r().createElement(U,null)))):r().createElement(F,{appointmentServiceTypes:o}))};var J=a(47781),X=a(85602),Z=a.n(X),nn=a(49007),en=a(78285),an=a(31118),tn={};tn.styleTagTransform=x(),tn.setAttributes=v(),tn.insert=$().bind(null,"head"),tn.domAPI=A(),tn.insertStyleElement=w(),f()(an.A,tn);const rn=an.A&&an.A.locals?an.A.locals:void 0;function on(n,e,a){return e in n?Object.defineProperty(n,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[e]=a,n}function sn(n){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{},t=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(a).filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable}))),t.forEach(function(e){on(n,e,a[e])})}return n}i().extend(Z());const cn=function(){var n=(0,s.useTranslation)().t,e=(0,b.nS)().selectedDate,a=(0,u.useLayoutType)(),t=(0,u.isDesktop)(a)?"sm":"md";return r().createElement("div",{className:rn.metricsContainer},r().createElement("div",{className:rn.metricsContent},r().createElement(l.$nd,{kind:"tertiary",renderIcon:nn.Vv,size:t,onClick:function(){return(0,u.navigate)({to:"".concat(p.lw,"/appointments/calendar/").concat(i()(e).format("YYYY-MM-DD"))})}},n("appointmentsCalendar","Appointments calendar")),r().createElement(u.ExtensionSlot,{name:"patient-search-button-slot",state:{selectPatientAction:function(n){var e={patientUuid:n,context:"creating",mutate:function(){}};(0,u.launchWorkspace)("appointments-form-workspace",sn({},e))},buttonText:n("createNewAppointment","Create new appointment"),overlayHeader:n("createNewAppointment","Create new appointment"),buttonProps:{kind:"primary",renderIcon:function(n){return r().createElement(en.vg,sn({size:32},n))},size:t}}})))};var pn=a(13422),ln={};ln.styleTagTransform=x(),ln.setAttributes=v(),ln.insert=$().bind(null,"head"),ln.domAPI=A(),ln.insertStyleElement=w(),f()(pn.A,ln);const un=pn.A&&pn.A.locals?pn.A.locals:void 0,dn=function(n){return n.appointmentServiceTypes,r().createElement(r().Fragment,null,r().createElement(cn,null),r().createElement(u.ExtensionSlot,{name:"appointments-metrics-slot",className:un.cardContainer}))},mn=function(){var n=(0,s.useTranslation)().t,e=(0,b.nS)().appointmentServiceTypes,a=(0,c.useParams)();return(0,t.useEffect)(function(){a.date&&(0,b.un)(i()(a.date).startOf("day").format(p.BC))},[a.date]),(0,t.useEffect)(function(){a.serviceType&&(0,b.If)([a.serviceType])},[a.serviceType]),r().createElement(r().Fragment,null,r().createElement(J.A,{title:n("appointments","Appointments"),showServiceTypeFilter:!0}),r().createElement(dn,{appointmentServiceTypes:e}),r().createElement(Q,{appointmentServiceTypes:e}))}},87228:(n,e,a)=>{a.d(e,{A:()=>s});var t=a(30977),r=a.n(t),o=a(95924),i=a.n(o)()(r());i.push([n.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-appointments__appointment-tabs__appointmentList___V\\+34V{margin:1rem}.-esm-appointments__appointment-tabs__appointmentList___V\\+34V>div{background-color:#fff}.-esm-appointments__appointment-tabs__tabs___YRM5u{grid-column:span 2}.-esm-appointments__appointment-tabs__tab___cVfyB{min-width:12rem}.-esm-appointments__appointment-tabs__tab___cVfyB:active,.-esm-appointments__appointment-tabs__tab___cVfyB:focus{outline:2px solid var(--brand-03) !important}.-esm-appointments__appointment-tabs__tab___cVfyB[aria-selected=true]{box-shadow:inset 0 2px 0 0 var(--brand-03) !important}.-esm-appointments__appointment-tabs__tabPanel___Zcoyj{padding:0;margin:1rem}.-esm-appointments__appointment-tabs__calendarButton___pQ803{float:right;position:absolute;right:0;height:3rem;min-height:0}.-esm-appointments__appointment-tabs__downloadButton___33-7W{margin:1rem}.-esm-appointments__appointment-tabs__downloadButton___33-7W>button{border:1px solid #0f62fe}.-esm-appointments__appointment-tabs__downloadLink___vfa-q{text-decoration:none;color:inherit}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/appointments/appointment-tabs.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,+DACE,WC0BW,CDxBX,mEACE,qBDLI,CCSR,mDACE,kBAAA,CAGF,kDACE,eAAA,CAEA,iHAEE,4CAAA,CAGF,sEACE,qDAAA,CAIJ,uDACE,SAAA,CACA,WAAA,CAGF,6DACE,WAAA,CACA,iBAAA,CACA,OAAA,CACA,WCaW,CDZX,YAAA,CAGF,6DACE,WCZW,CDaX,oEACE,wBAAA,CAGJ,2DACE,oBAAA,CACA,aAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/colors';\n@use '@carbon/layout';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.appointmentList {\n margin: layout.$spacing-05;\n\n & > div {\n background-color: $ui-02;\n }\n}\n\n.tabs {\n grid-column: span 2;\n}\n\n.tab {\n min-width: 12rem;\n\n &:active,\n &:focus {\n outline: 2px solid var(--brand-03) !important;\n }\n\n &[aria-selected='true'] {\n box-shadow: inset 0 2px 0 0 var(--brand-03) !important;\n }\n}\n\n.tabPanel {\n padding: 0;\n margin: layout.$spacing-05;\n}\n\n.calendarButton {\n float: right;\n position: absolute;\n right: 0;\n height: layout.$spacing-09;\n min-height: 0;\n}\n\n.downloadButton {\n margin: layout.$spacing-05;\n & > button {\n border: 1px solid colors.$blue-60;\n }\n}\n.downloadLink {\n text-decoration: none;\n color: inherit;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),i.locals={appointmentList:"-esm-appointments__appointment-tabs__appointmentList___V+34V",tabs:"-esm-appointments__appointment-tabs__tabs___YRM5u",tab:"-esm-appointments__appointment-tabs__tab___cVfyB",tabPanel:"-esm-appointments__appointment-tabs__tabPanel___Zcoyj",calendarButton:"-esm-appointments__appointment-tabs__calendarButton___pQ803",downloadButton:"-esm-appointments__appointment-tabs__downloadButton___33-7W",downloadLink:"-esm-appointments__appointment-tabs__downloadLink___vfa-q"};const s=i}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1431.js","mappings":"8MAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,4FAA6F,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,sEAAsE,MAAQ,GAAG,SAAW,4BAA4B,eAAiB,CAAC,kGAAkG,WAAa,MAE1ZH,EAAwBI,OAAS,CAChC,SAAY,+DAEb,S,sECPIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,ytBAA0tB,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,iDAAiD,8EAA8E,MAAQ,GAAG,SAAW,oNAAoN,eAAiB,CAAC,g/DAAg/D,wgBAAwgB,25DAA25D,WAAa,MAEjoLH,EAAwBI,OAAS,CAChC,cAAiB,+DAElB,S,sECPIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,owBAAqwB,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,8CAA8C,8EAA8E,MAAQ,GAAG,SAAW,yPAAyP,eAAiB,CAAC,g/DAAg/D,kgBAAkgB,25DAA25D,WAAa,MAExsLH,EAAwBI,OAAS,CAChC,iBAAoB,8DACpB,KAAQ,kDACR,YAAe,yDACf,eAAkB,6DAEnB,S,sECVIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KA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AAA,wBAE9D,oCACE,kBAAC+N,GAAaA,MACd,kBAACjH,EAAAA,cAAaA,CAAC/F,KAAK,4BAA4BE,UAAWC,GAAO8M,gBAGxE,ECqBA,GA3B+B,WAC7B,IAAM,GAAQpO,EAAAA,EAAAA,kBAANC,EACF,GAA8BC,EAAAA,EAAAA,MAA5BE,wBAEFiO,GAASC,EAAAA,EAAAA,aAcf,OAZA5K,EAAAA,EAAAA,WAAU,WACJ2K,EAAOpM,OACTC,EAAAA,EAAAA,IAAgBC,IAAMkM,EAAOpM,MAAMG,QAAQ,OAAOC,OAAOC,EAAAA,IAE7D,EAAG,CAAC+L,EAAOpM,QAEXyB,EAAAA,EAAAA,WAAU,WACJ2K,EAAOE,cACTzN,EAAAA,EAAAA,IAA2B,CAACuN,EAAOE,aAEvC,EAAG,CAACF,EAAOE,cAGT,oCACE,kBAACC,EAAAA,EAAkBA,CAAC1O,MAAOG,EAAE,eAAgB,gBAAiBF,uBAAAA,IAC9D,kBAAC0O,GAAkBA,CAACrO,wBAAyBA,IAC7C,kBAACsO,EAAeA,CAACtO,wBAAyBA,IAGhD,C,sEChCItB,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,q2CAAs2C,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,qDAAqD,8EAA8E,MAAQ,GAAG,SAAW,2UAA2U,eAAiB,CAAC,g/DAAg/D,8zBAA8zB,25DAA25D,WAAa,MAE9rNH,EAAwBI,OAAS,CAChC,gBAAmB,+DACnB,KAAQ,oDACR,IAAO,mDACP,SAAY,wDACZ,eAAkB,8DAClB,eAAkB,8DAClB,aAAgB,6DAEjB,S","sources":["webpack://@openmrs/esm-appointments-app/./src/appointments/scheduled/scheduled-appointments.scss","webpack://@openmrs/esm-appointments-app/./src/metrics/metrics-container.scss","webpack://@openmrs/esm-appointments-app/./src/metrics/metrics-header.scss","webpack://@openmrs/esm-appointments-app/./src/header/appointments-header.scss","webpack://@openmrs/esm-appointments-app/./src/header/appointments-header.scss?a6d7","webpack://@openmrs/esm-appointments-app/./src/header/appointments-header.component.tsx","webpack://@openmrs/esm-appointments-app/./src/hooks/useAppointmentService.ts","webpack://@openmrs/esm-appointments-app/./src/appointments/scheduled/scheduled-appointments.scss?7861","webpack://@openmrs/esm-appointments-app/./src/appointments/scheduled/scheduled-appointments.component.tsx","webpack://@openmrs/esm-appointments-app/./src/appointments/unscheduled/unscheduled-appointments.component.tsx","webpack://@openmrs/esm-appointments-app/./src/hooks/useUnscheduledAppointments.ts","webpack://@openmrs/esm-appointments-app/./src/appointments/appointment-tabs.scss?6e03","webpack://@openmrs/esm-appointments-app/./src/appointments/appointment-tabs.component.tsx","webpack://@openmrs/esm-appointments-app/./src/metrics/metrics-header.scss?0320","webpack://@openmrs/esm-appointments-app/./src/metrics/metrics-header.component.tsx","webpack://@openmrs/esm-appointments-app/./src/metrics/metrics-container.scss?345c","webpack://@openmrs/esm-appointments-app/./src/metrics/metrics-container.component.tsx","webpack://@openmrs/esm-appointments-app/./src/appointments.component.tsx","webpack://@openmrs/esm-appointments-app/./src/appointments/appointment-tabs.scss"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","data","useSWR","error","isLoading","title","showServiceTypeFilter","useTranslation","t","useAppointmentsStore","selectedDate","appointmentServiceTypes","restBaseUrl","openmrsFetch","serviceTypes","handleChangeServiceTypeFilter","useCallback","selectedUuids","selectedItems","map","item","setAppointmentServiceTypes","serviceTypeOptions","useMemo","uuid","label","name","PageHeader","className","styles","header","data-testid","PageHeaderContent","illustration","AppointmentsPictogram","div","rightJustifiedItems","OpenmrsDatePicker","labelText","onChange","date","setSelectedDate","dayjs","startOf","format","omrsDateFormat","value","toDate","MultiSelect","items","itemToString","type","filter","includes","isSameOrBefore","scheduledAppointmentsPanelsSlot","ExtensionWrapper","extension","currentTab","dateType","showExtensionTab","hideExtensionTab","currentConfig","useRef","currentDateType","useEffect","current","objA","objB","Object","is","objAKeys","getOwnPropertyNames","objBKeys","length","every","key","shallowEqual","config","showForFutureDate","showForPastDate","showForToday","shouldDisplayExtensionTab","container","style","display","Extension","state","status","layout","useLayoutType","responsiveSize","isDesktop","useState","setCurrentTab","setDateType","scheduledAppointmentPanels","useConnectedExtensions","useAllowedExtensions","useReducer","action","addedState","allowedExtensions","dispatch","showExtension","hideExtension","shouldShowPanel","panel","dayjsDate","now","isBefore","isAfter","panelsToShow","ContentSwitcher","switcher","size","selectedIndex","findIndex","selectionMode","Switch","text","ExtensionSlot","getPageSizes","unscheduledAppointments","pageSize","setPageSize","searchString","setSearchString","useUnscheduledAppointments","url","errorRetryCount","appointments","appointment","identifier","identifiers","find","identifierName","configSchema","patientIdentifierType","_default","dateTime","visit","startDateTime","gender","phoneNumber","age","toAppointmentObject","searchResults","useSearchResults","useConfig","customPatientChartUrl","usePagination","results","currentPage","goTo","rowData","ConfigurableLink","textDecoration","to","templateParams","patientUuid","DataTableSkeleton","DataTable","rows","headers","isSortable","getHeaderProps","getTableProps","TableContainer","description","TableToolbar","TableToolbarContent","TableToolbarSearch","backgroundColor","tabIndex","event","target","Button","kind","renderIcon","Download","onClick","exportUnscheduledAppointmentsToSpreadsheet","Table","TableHead","TableRow","TableHeader","TableBody","row","cells","cell","TableCell","Pagination","backwardText","forwardText","page","pageNumberText","pageSizes","totalItems","EmptyState","displayText","headerTitle","showUnscheduledAppointmentsTab","activeTabIndex","setActiveTabIndex","appointmentList","Tabs","tabs","TabList","paddingLeft","aria-label","contained","Tab","tab","TabPanels","TabPanel","tabPanel","ScheduledAppointments","UnscheduledAppointments","isToday","metricsContainer","metricsContent","Calendar","navigate","spaHomePage","selectPatientAction","props","context","mutate","launchWorkspace","buttonText","overlayHeader","buttonProps","Hospital","MetricsHeader","cardContainer","params","useParams","serviceType","AppointmentsHeader","AppointmentMetrics","AppointmentTabs"],"sourceRoot":""}