@openmrs/esm-patient-chart-app 11.3.1-patch.9064 → 11.3.1-patch.9310

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 (131) hide show
  1. package/.turbo/turbo-build.log +24 -21
  2. package/dist/1815.js +2 -0
  3. package/dist/1815.js.map +1 -0
  4. package/dist/2761.js +1 -1
  5. package/dist/2761.js.map +1 -1
  6. package/dist/2859.js +1 -1
  7. package/dist/2859.js.map +1 -1
  8. package/dist/3697.js +1 -0
  9. package/dist/3697.js.map +1 -0
  10. package/dist/4055.js +1 -1
  11. package/dist/4300.js +1 -1
  12. package/dist/4718.js +1 -1
  13. package/dist/4754.js +1 -1
  14. package/dist/5205.js +1 -1
  15. package/dist/5670.js +1 -1
  16. package/dist/5670.js.map +1 -1
  17. package/dist/5827.js +1 -0
  18. package/dist/5827.js.map +1 -0
  19. package/dist/6336.js +1 -0
  20. package/dist/6336.js.map +1 -0
  21. package/dist/6411.js +1 -1
  22. package/dist/6411.js.map +1 -1
  23. package/dist/6529.js +1 -1
  24. package/dist/6568.js +1 -0
  25. package/dist/6568.js.map +1 -0
  26. package/dist/6924.js +1 -0
  27. package/dist/6924.js.map +1 -0
  28. package/dist/7816.js +2 -0
  29. package/dist/7816.js.map +1 -0
  30. package/dist/7818.js +1 -0
  31. package/dist/7818.js.map +1 -0
  32. package/dist/7822.js +1 -1
  33. package/dist/7822.js.map +1 -1
  34. package/dist/8260.js +1 -0
  35. package/dist/8260.js.map +1 -0
  36. package/dist/8278.js +1 -0
  37. package/dist/8278.js.map +1 -0
  38. package/dist/8454.js +1 -1
  39. package/dist/8454.js.map +1 -1
  40. package/dist/8709.js +1 -1
  41. package/dist/8709.js.map +1 -1
  42. package/dist/{4727.js → 9294.js} +1 -1
  43. package/dist/9294.js.map +1 -0
  44. package/dist/9329.js +1 -0
  45. package/dist/9329.js.map +1 -0
  46. package/dist/main.js +1 -1
  47. package/dist/main.js.map +1 -1
  48. package/dist/openmrs-esm-patient-chart-app.js +1 -1
  49. package/dist/openmrs-esm-patient-chart-app.js.buildmanifest.json +312 -287
  50. package/dist/openmrs-esm-patient-chart-app.js.map +1 -1
  51. package/dist/routes.json +1 -1
  52. package/package.json +3 -3
  53. package/src/actions-buttons/delete-visit.component.tsx +8 -3
  54. package/src/actions-buttons/mark-patient-deceased.component.tsx +2 -2
  55. package/src/actions-buttons/start-visit.component.tsx +10 -5
  56. package/src/actions-buttons/start-visit.test.tsx +9 -5
  57. package/src/actions-buttons/stop-visit.component.tsx +1 -1
  58. package/src/clinical-views/encounter-list/{encounter-list-tabs.component.tsx → encounter-list-tabs.extension.tsx} +10 -6
  59. package/src/clinical-views/encounter-list/tag.component.test.tsx +306 -0
  60. package/src/clinical-views/encounter-list/tag.component.tsx +27 -28
  61. package/src/clinical-views/utils/helpers.ts +2 -2
  62. package/src/config-schema.ts +0 -7
  63. package/src/index.ts +21 -22
  64. package/src/mark-patient-deceased/mark-patient-deceased-form.test.tsx +22 -11
  65. package/src/mark-patient-deceased/mark-patient-deceased-form.workspace.tsx +147 -138
  66. package/src/patient-banner-tags/{visit-attribute-tags.component.tsx → visit-attribute-tags.extension.tsx} +9 -4
  67. package/src/patient-chart/chart-review/dashboard-view.component.tsx +2 -2
  68. package/src/patient-chart/patient-chart.component.tsx +19 -36
  69. package/src/patient-chart/patient-chart.resources.ts +150 -0
  70. package/src/routes.json +17 -6
  71. package/src/visit/hooks/useDeleteVisit.test.tsx +39 -42
  72. package/src/visit/hooks/useDeleteVisit.tsx +33 -17
  73. package/src/visit/start-visit-button.component.tsx +2 -2
  74. package/src/visit/start-visit-button.test.tsx +2 -2
  75. package/src/visit/visit-action-items/edit-visit-details.component.tsx +29 -8
  76. package/src/visit/visit-form/base-visit-type.component.tsx +2 -2
  77. package/src/visit/visit-form/exported-visit-form.workspace.tsx +697 -0
  78. package/src/visit/visit-form/visit-attribute-type.component.tsx +2 -1
  79. package/src/visit/visit-form/visit-form.resource.ts +2 -1
  80. package/src/visit/visit-form/visit-form.test.tsx +28 -25
  81. package/src/visit/visit-form/visit-form.workspace.tsx +63 -643
  82. package/src/visit/visit-history-table/visit-actions-cell.component.tsx +3 -2
  83. package/src/visit/visit-history-table/visit-date-cell.component.tsx +1 -0
  84. package/src/visit/visit-history-table/visit-diagnoses-cell.component.tsx +1 -0
  85. package/src/visit/visit-history-table/visit-history-table.component.tsx +3 -2
  86. package/src/visit/visit-history-table/visit-type-cell.component.tsx +1 -0
  87. package/src/visit/visit-prompt/{delete-visit-dialog.component.tsx → delete-visit-dialog.modal.tsx} +10 -4
  88. package/src/visit/visit-prompt/delete-visit-dialog.test.tsx +21 -3
  89. package/src/visit/visit-prompt/{end-visit-dialog.component.tsx → end-visit-dialog.modal.tsx} +7 -1
  90. package/src/visit/visit-prompt/end-visit-dialog.test.tsx +20 -1
  91. package/src/visit/visit-prompt/{start-visit-dialog.component.tsx → start-visit-dialog.modal.tsx} +10 -4
  92. package/src/visit/visit-prompt/start-visit-dialog.test.tsx +3 -3
  93. package/src/visit/visits-widget/active-visit-buttons/active-visit-buttons.tsx +7 -6
  94. package/src/visit/visits-widget/current-visit-summary.extension.tsx +48 -0
  95. package/src/visit/visits-widget/current-visit-summary.test.tsx +45 -25
  96. package/src/visit/visits-widget/past-visits-components/encounters-table/encounters-table.component.tsx +15 -37
  97. package/src/visit/visits-widget/past-visits-components/encounters-table/encounters-table.resource.ts +0 -1
  98. package/src/visit/visits-widget/visit-context/retrospective-data-date-time-picker/retrospective-date-time-picker.component.tsx +6 -7
  99. package/src/visit/visits-widget/visit-context/{visit-context-header.component.tsx → visit-context-header.extension.tsx} +17 -15
  100. package/src/visit/visits-widget/visit-context/visit-context-header.test.tsx +35 -29
  101. package/src/visit/visits-widget/visit-context/visit-context-switcher.modal.tsx +15 -13
  102. package/src/visit/visits-widget/visit-context/visit-context-switcher.test.tsx +31 -9
  103. package/src/visit/visits-widget/visit-detail-overview.component.tsx +3 -2
  104. package/src/visit/visits-widget/visit-detail-overview.test.tsx +4 -4
  105. package/src/visit/visits-widget/visit.resource.tsx +1 -1
  106. package/translations/en.json +1 -2
  107. package/translations/fr.json +15 -15
  108. package/dist/1568.js +0 -2
  109. package/dist/1568.js.map +0 -1
  110. package/dist/2442.js +0 -1
  111. package/dist/2442.js.map +0 -1
  112. package/dist/2537.js +0 -1
  113. package/dist/2537.js.map +0 -1
  114. package/dist/276.js +0 -1
  115. package/dist/276.js.map +0 -1
  116. package/dist/3042.js +0 -1
  117. package/dist/3042.js.map +0 -1
  118. package/dist/3119.js +0 -1
  119. package/dist/3119.js.map +0 -1
  120. package/dist/3905.js +0 -1
  121. package/dist/3905.js.map +0 -1
  122. package/dist/4713.js +0 -1
  123. package/dist/4713.js.map +0 -1
  124. package/dist/4727.js.map +0 -1
  125. package/dist/5048.js +0 -1
  126. package/dist/5048.js.map +0 -1
  127. package/dist/6650.js +0 -2
  128. package/dist/6650.js.map +0 -1
  129. package/src/visit/visits-widget/current-visit-summary.component.tsx +0 -55
  130. /package/dist/{1568.js.LICENSE.txt → 1815.js.LICENSE.txt} +0 -0
  131. /package/dist/{6650.js.LICENSE.txt → 7816.js.LICENSE.txt} +0 -0
package/dist/4055.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[4055],{94055:e=>{e.exports=JSON.parse('{"actions":"Actions","addingToVisit":"Ajout à :","additionalVisitInformationUpdatedSuccessfully":"Informations sur la visite mises à jour","addVisit":"Ajouter une visite","all":"Tout","allEncounters":"Toutes les consultations","AM":"Avant-midi","cancel":"Annuler","causeOfDeath":"Cause de décès","causeOfDeath_lower":"concepts de cause de décès configurés dans le système","causeOfDeathIsRequired":"Veuillez sélectionner la cause du décès","change":"Changer","checkFilters":"Vérifiez les filtres ci-dessus","confirm":"Confirmer","confirmDeleteVisitText":"La suppression de cette visite {{visit}} entraînera la suppression de ses consultations associées.","confirmModifyingVisitDateToAccomodateEncounter":"La date de la consultation se situe en dehors des dates de la visite sélectionnée. Souhaitez-vous modifier la date de visite pour l\'adapter à la date de la nouvelle consultation ?","continue":"Continuer","createNewVisit":"Créer une nouvelle visite ...","currentActiveVisit":"Visite active en cours","currentVisit":"Visite en cours","date":"Date","dateAndTime":"Date et heure","dateOfDeath":"Date de décès","deathDateRequired":"Veuillez sélectionner la date du décès","delete":"Supprimer","deleteActiveVisit":"Supprimer la visite en cours","deleteEncounter":"Supprimer une consultation","deleteEncounterConfirmationText":"Êtes-vous sûr de vouloir supprimer cette consultation? Cette action ne peut pas être annulée.","deleteThisEncounter":"Supprimer une consultation","deleteVisit":"Supprimer la visite","deleteVisitDialogHeader":"Êtes-vous sûr de vouloir supprimer cette visite ?","deletingVisit":"Suppression de la visite","diagnoses":"Diagnostics","discard":"Abandonner","discontinued":"Discontinued","dose":"Dose","dosingInstructions":"Dosing Instructions","editEncounter":"Modifier","editThisEncounter":"Modifier cette consultation","editVisitDetails":"Modifier les informations sur la visite","emptyStateText":"Aucun(e) {{displayText}} à afficher pour ce patient.","enable":"Activer","encounter":"Encounter","encounterDeleted":"Consultation supprimée","encounters_title":"Consultations","encountersForThisVisit":"encounters for this visit","encounterSuccessfullyDeleted":"La consultation a été supprimée","encounterTableActionsMenu":"Menu d’actions du tableau des consultations","encounterType":"Type de consultation","encounterWithError":"La consultation n\'a pas pu être supprimée. Si l\'erreur persiste, veuillez contacter votre administrateur système.","endActiveVisit":"Terminer la visite en cours","endActiveVisitConfirmation":"Êtes-vous sûr de vouloir clôturer la visite en cours?","endDate":"Date de fin","endDate_title":"Date de fin","endDateTimeRequired":"End date and time are required","ended":"Terminé","endTime":"Heure de fin","endTimeFormat":"Format de l’heure de fin","endTimeMustBeAfterMostRecentEncounter":"End time must be on or after {{lastEncounterDatetime}}","endTimeMustBeAfterStartTime":"End time must be after start time","endVisit_title":"Clôturer la visite","enterNonCodedCauseOfDeath":"Entrez la cause du décès non codée","error":"Erreur","errorCopy":"Désolé, il y a eu un problème lors de l\'affichage de cette information. Vous pouvez essayer de recharger cette page, ou contacter l\'administrateur du site et indiquer le code d\'erreur ci-dessus.","errorCreatingVisitAttribute":"Impossible de supprimer l\'attribut {{attributeName}}","errorDeletingVisit":"Erreur lors de la suppression de la visite","errorDeletingVisitAttribute":"Impossible de supprimer l\'attribut {{attributeName}}","errorEndingVisit":"Erreur lors de la clôture de la visite","errorMarkingPatientAlive":"Erreur lors de l\'enregistrement du patient comme étant vivant","errorMarkingPatientDeceased":"Erreur lors de l\'enregistrement du patient comme étant décédé","errorOccurredDeletingVisit":"Une erreur s’est produite lors de la suppression de la visite","errorStartingVisit":"Erreur lors du démarrage de la visite","errorStartingVisitDescription":"Une erreur s’est produite lors du démarrage de la visite","errorUpdatingVisitAttribute":"Impossible de modifier l\'attribut {{attributeName}}","errorUpdatingVisitDetails":"Erreur lors de la modification des informations sur la visite","errorWhenRestoringVisit":"Une erreur s’est produite lors de la restauration de {{visit}}","failedToLoadCurrentVisit":"Échec du chargement de la visite en cours","fieldRequired":"This field is required","filterByEncounterType":"Filtrer par type de consultation","form":"Nom du formulaire","fromDateToDate":"Du {{fromDate}} au {{toDate}}","futureEndTime":"End time cannot be in the future","futureStartTime":"Start time cannot be in the future","indication":"Indication","inThePast":"Auparavant","loading":"En cours de chargement","loadingVisit":"Chargement de la visite en cours...","markAliveSuccessfully":"Patient marqué comme vivant avec succès","markDeceasedWarning":"Enregistrer le patient comme décédé mettra fin à toutes les visites actives pour ce patient","markPatientAlive":"Indiquer le patient comme vivant","markPatientAliveConfirmation":"Etes-vous sûr de vouloir indiquer ce patient comme étant vivant ?","markPatientDeceased":"Marquer comme décédé","medications":"Médicaments","medications__lower":"médicaments","missingVisitType":"Le type de visite est manquant","modifyVisitDate":"Modifier la date de la visite","new":"Nouveau","nextPage":"Page suivante","no":"Non","noActiveVisit":"Aucune de visite en cours","noActiveVisitMessage":"visite en cours","noActiveVisitNoRDEText":"Vous ne pouvez pas ajouter de données au dossier du patient sans une visite ouverte. Souhaitez-vous démarrer une nouvelle visite ?","noDiagnosesFound":"Aucun diagnostic trouvé","noEncountersToDisplay":"Aucune consultation à afficher","noMatchingCodedCausesOfDeath":"Aucune cause de décès codée correspondante trouvée","nonCodedCauseOfDeath":"Cause de décès non codée","nonCodedCauseOfDeathRequired":"Veuillez saisir la cause non codée du décès","noObservationsFound":"Aucune observation trouvée","noProvider":"No provider","notes":"Notes","notes__lower":"notes","noVisitsToDisplay":"Aucune visite à afficher","noVisitTypesToDisplay":"Aucun type de visite à afficher","offlineVisit":"Visite hors ligne","On scheduled date":"À la date prévue","ongoing":"En cours","optional":"optionnel","orderDurationAndUnit":"pour {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Durée illimitée","paginationItemsCount_one":"{{pageItemsCount}} / {{count}} élément","paginationItemsCount_other":"{{pageItemsCount}} / {{count}} éléments","paginationPageText_one":"de {{count}} page","paginationPageText_other":"de {{count}} pages","partOfFormDidntLoad":"Une partie du formulaire n\'a pas été chargée","pastVisits":"Visites passées","Patient Summary":"Résumé patient","PM":"Après-midi","previousPage":"Page précédente","program":"Programme","provider":"Professionnel de santé","quantity":"Quantité","recommended":"Suggéré","record":"Ajouter","refills":"Renouvellements","refreshToTryAgain":"Veuillez rafraîchir la page et réessayer","required":"Obligatoire","Routine":"De routine","saveAndClose":"Enregistrer et fermer","saving":"Enregistrement en cours","searchForAVisitType":"Chercher un type de visite","searchForCauseOfDeath":"Chercher une cause de décès","seeAll":"Voir tout","selectAnOption":"Sélectionnez une option","selectAVisit":"Sélectionnez une visite","selectLocation":"Sélectionnez une localisation","selectProgramType":"Sélectionnez un type de programme","selectVisitType":"Veuillez sélectionner un type de visite","showVisitWithStartDateOnOrPriorTo":"Show visit with start date on or prior to:","startDate":"Date de début","startingVisit":"Début de la visite","startNewVisit":"Démarrer une nouvelle visite","startTime":"Heure de début","startTimeFormat":"Format de l\'heure de début","startVisit":"Démarrer la visite","startVisitError":"Erreur en démarrant la visite","startVisitWorkspaceTitle":"Démarrer une visite","Stat":"Urgent","tests":"Examens","theVisitIs":"La visite est","time":"Temps","timeCompleted":"Time completed","timeFormat ":"Format de l\'heure","timeline":"Timeline","timeStarted":"Time started","undo":"Retour en arrière","unknownError":"Unknown error","updateVisit":"Modifier la visite","updatingVisit":"Modification de la visite","viewEncounter":"Vue","visitAttributes":"Attributs de visite","visitDeleted":"{{visit}} supprimée(s)","visitDeletedSuccessfully":"{{visit}} supprimée(s) avec succès","visitDetailsUpdated":"Informations sur les visites modifiés","visitDetailsUpdatedSuccessfully":"{{visit}} modifiée(s)","visitEnded":"Visite close","visitEndSuccessfully":"Visite en cours clôturée","visitLocation":"Localisation de la visite","visitLocationRequired":"Visit location is required","visitNotRestored":"Cette visite ne peut être restaurée","visitRestored":"Visite restaurée","visitRestoredSuccessfully":"{{visit}} restaurée(s) avec succès","visits":"visites","Visits":"Visites","visitStartAndEndDate":"Date début et fin de la visite","visitStartDate":"Date début de la visite","visitStartDateMustBeBeforeEarliestEncounter":"Start time must be on or before {{firstEncounterDatetime}}","visitStartDateTimeRequired":"Start date and time are required","visitStarted":"Visite démarrée","visitStartedSuccessfully":"{{visit}} a démarré avec succès","visitType":"Type de visite","visitType_title":"Type de visite","visitTypeRequired":"Visit type is required","warning":"Attention","yes":"Oui","youCanAddAdditionalEncounters":"Vous pouvez ajouter des consultations supplémentaires à cette visite dans le résumé de la visite"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[4055],{94055:e=>{e.exports=JSON.parse('{"actions":"Actions","addingToVisit":"Ajout à :","additionalVisitInformationUpdatedSuccessfully":"Informations sur la visite mises à jour","addVisit":"Ajouter une visite","all":"Tout","allEncounters":"Toutes les consultations","AM":"Avant-midi","cancel":"Annuler","causeOfDeath":"Cause de décès","causeOfDeath_lower":"concepts de cause de décès configurés dans le système","causeOfDeathIsRequired":"Veuillez sélectionner la cause du décès","change":"Changer","checkFilters":"Vérifiez les filtres ci-dessus","confirm":"Confirmer","confirmDeleteVisitText":"La suppression de cette visite {{visit}} entraînera la suppression de ses consultations associées.","confirmModifyingVisitDateToAccomodateEncounter":"La date de la consultation se situe en dehors des dates de la visite sélectionnée. Souhaitez-vous modifier la date de visite pour l\'adapter à la date de la nouvelle consultation ?","continue":"Continuer","createNewVisit":"Créer une nouvelle visite ...","currentActiveVisit":"Visite active en cours","currentVisit":"Visite en cours","date":"Date","dateAndTime":"Date et heure","dateOfDeath":"Date de décès","deathDateRequired":"Veuillez sélectionner la date du décès","delete":"Supprimer","deleteActiveVisit":"Supprimer la visite en cours","deleteEncounter":"Supprimer une consultation","deleteEncounterConfirmationText":"Êtes-vous sûr de vouloir supprimer cette consultation? Cette action ne peut pas être annulée.","deleteThisEncounter":"Supprimer une consultation","deleteVisit":"Supprimer la visite","deleteVisitDialogHeader":"Êtes-vous sûr de vouloir supprimer cette visite ?","deletingVisit":"Suppression de la visite","diagnoses":"Diagnostics","discard":"Abandonner","discontinued":"Discontinued","dose":"Dose","dosingInstructions":"Posologie","editEncounter":"Modifier","editThisEncounter":"Modifier cette consultation","editVisitDetails":"Modifier les informations sur la visite","emptyStateText":"Aucun(e) {{displayText}} à afficher pour ce patient.","enable":"Activer","encounter":"Consultation","encounterDeleted":"Consultation supprimée","encounters_title":"Consultations","encountersForThisVisit":"consultations de cette visite","encounterSuccessfullyDeleted":"La consultation a été supprimée","encounterTableActionsMenu":"Menu d’actions du tableau des consultations","encounterType":"Type de consultation","encounterWithError":"La consultation n\'a pas pu être supprimée. Si l\'erreur persiste, veuillez contacter votre administrateur système.","endActiveVisit":"Terminer la visite en cours","endActiveVisitConfirmation":"Êtes-vous sûr de vouloir clôturer la visite en cours?","endDate":"Date de fin","endDate_title":"Date de fin","endDateTimeRequired":"End date and time are required","ended":"Terminé","endTime":"Heure de fin","endTimeFormat":"Format de l’heure de fin","endTimeMustBeAfterMostRecentEncounter":"End time must be on or after {{lastEncounterDatetime}}","endTimeMustBeAfterStartTime":"End time must be after start time","endVisit_title":"Clôturer la visite","enterNonCodedCauseOfDeath":"Entrez la cause du décès non codée","error":"Erreur","errorCopy":"Désolé, il y a eu un problème lors de l\'affichage de cette information. Vous pouvez essayer de recharger cette page, ou contacter l\'administrateur du site et indiquer le code d\'erreur ci-dessus.","errorCreatingVisitAttribute":"Impossible de supprimer l\'attribut {{attributeName}}","errorDeletingVisit":"Erreur lors de la suppression de la visite","errorDeletingVisitAttribute":"Impossible de supprimer l\'attribut {{attributeName}}","errorEndingVisit":"Erreur lors de la clôture de la visite","errorMarkingPatientAlive":"Erreur lors de l\'enregistrement du patient comme étant vivant","errorMarkingPatientDeceased":"Erreur lors de l\'enregistrement du patient comme étant décédé","errorOccurredDeletingVisit":"Une erreur s’est produite lors de la suppression de la visite","errorStartingVisit":"Erreur lors du démarrage de la visite","errorStartingVisitDescription":"Une erreur s’est produite lors du démarrage de la visite","errorUpdatingVisitAttribute":"Impossible de modifier l\'attribut {{attributeName}}","errorUpdatingVisitDetails":"Erreur lors de la modification des informations sur la visite","errorWhenRestoringVisit":"Une erreur s’est produite lors de la restauration de {{visit}}","failedToLoadCurrentVisit":"Échec du chargement de la visite en cours","fieldRequired":"Ce champs est requis","filterByEncounterType":"Filtrer par type de consultation","form":"Nom du formulaire","fromDateToDate":"Du {{fromDate}} au {{toDate}}","futureEndTime":"L\'heure de fin ne peut être dans le futur","futureStartTime":"L\'heure de début ne peut être dans le futur","indication":"Indication","inThePast":"Auparavant","loading":"En cours de chargement","loadingVisit":"Chargement de la visite en cours...","markAliveSuccessfully":"Patient marqué comme vivant avec succès","markDeceasedWarning":"Enregistrer le patient comme décédé mettra fin à toutes les visites actives pour ce patient","markPatientAlive":"Indiquer le patient comme vivant","markPatientAliveConfirmation":"Etes-vous sûr de vouloir indiquer ce patient comme étant vivant ?","markPatientDeceased":"Marquer comme décédé","medications":"Médicaments","medications__lower":"médicaments","missingVisitType":"Le type de visite est manquant","modifyVisitDate":"Modifier la date de la visite","new":"Nouveau","nextPage":"Page suivante","no":"Non","noActiveVisit":"Aucune de visite en cours","noActiveVisitMessage":"visite en cours","noActiveVisitNoRDEText":"Vous ne pouvez pas ajouter de données au dossier du patient sans une visite ouverte. Souhaitez-vous démarrer une nouvelle visite ?","noDiagnosesFound":"Aucun diagnostic trouvé","noEncountersToDisplay":"Aucune consultation à afficher","noMatchingCodedCausesOfDeath":"Aucune cause de décès codée correspondante trouvée","nonCodedCauseOfDeath":"Cause de décès non codée","nonCodedCauseOfDeathRequired":"Veuillez saisir la cause non codée du décès","noObservationsFound":"Aucune observation trouvée","noProvider":"Aucun professionel de santé","notes":"Notes","notes__lower":"notes","noVisitsToDisplay":"Aucune visite à afficher","noVisitTypesToDisplay":"Aucun type de visite à afficher","offlineVisit":"Visite hors ligne","On scheduled date":"À la date prévue","ongoing":"En cours","optional":"optionnel","orderDurationAndUnit":"pour {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Durée illimitée","paginationItemsCount_one":"{{pageItemsCount}} / {{count}} élément","paginationItemsCount_other":"{{pageItemsCount}} / {{count}} éléments","paginationPageText_one":"de {{count}} page","paginationPageText_other":"de {{count}} pages","partOfFormDidntLoad":"Une partie du formulaire n\'a pas été chargée","pastVisits":"Visites passées","Patient Summary":"Résumé patient","PM":"Après-midi","previousPage":"Page précédente","program":"Programme","provider":"Professionnel de santé","quantity":"Quantité","recommended":"Suggéré","record":"Ajouter","refills":"Renouvellements","refreshToTryAgain":"Veuillez rafraîchir la page et réessayer","required":"Obligatoire","Routine":"De routine","saveAndClose":"Enregistrer et fermer","saving":"Enregistrement en cours","searchForAVisitType":"Chercher un type de visite","searchForCauseOfDeath":"Chercher une cause de décès","seeAll":"Voir tout","selectAnOption":"Sélectionnez une option","selectAVisit":"Sélectionnez une visite","selectLocation":"Sélectionnez une localisation","selectProgramType":"Sélectionnez un type de programme","selectVisitType":"Veuillez sélectionner un type de visite","showVisitWithStartDateOnOrPriorTo":"Afficher les visites à la date indiquée ou avant :","startDate":"Date de début","startingVisit":"Début de la visite","startNewVisit":"Démarrer une nouvelle visite","startTime":"Heure de début","startTimeFormat":"Format de l\'heure de début","startVisit":"Démarrer la visite","startVisitError":"Erreur en démarrant la visite","startVisitWorkspaceTitle":"Démarrer une visite","Stat":"Urgent","tests":"Examens","theVisitIs":"La visite est","time":"Temps","timeCompleted":"Heure de fin","timeFormat ":"Format de l\'heure","timeline":"Chronologie","timeStarted":"Heure de début","undo":"Retour en arrière","unknownError":"Erreur inconnue.","updateVisit":"Modifier la visite","updatingVisit":"Modification de la visite","viewEncounter":"Vue","visitAttributes":"Attributs de visite","visitDeleted":"{{visit}} supprimée(s)","visitDeletedSuccessfully":"{{visit}} supprimée(s) avec succès","visitDetailsUpdated":"Informations sur les visites modifiés","visitDetailsUpdatedSuccessfully":"{{visit}} modifiée(s)","visitEnded":"Visite close","visitEndSuccessfully":"Visite en cours clôturée","visitLocation":"Localisation de la visite","visitLocationRequired":"L\'Emplacement de la visite est requise","visitNotRestored":"Cette visite ne peut être restaurée","visitRestored":"Visite restaurée","visitRestoredSuccessfully":"{{visit}} restaurée(s) avec succès","visits":"visites","Visits":"Visites","visitStartAndEndDate":"Date début et fin de la visite","visitStartDate":"Date début de la visite","visitStartDateMustBeBeforeEarliestEncounter":"Start time must be on or before {{firstEncounterDatetime}}","visitStartDateTimeRequired":"Les Heures de début et de fin sont requises ","visitStarted":"Visite démarrée","visitStartedSuccessfully":"{{visit}} a démarré avec succès","visitType":"Type de visite","visitType_title":"Type de visite","visitTypeRequired":"Le type de visite est requis","warning":"Attention","yes":"Oui","youCanAddAdditionalEncounters":"Vous pouvez ajouter des consultations supplémentaires à cette visite dans le résumé de la visite"}')}}]);
package/dist/4300.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[4300],{34300:e=>{e.exports=JSON.parse('{"actions":"Actions","addingToVisit":"Adding to:","additionalVisitInformationUpdatedSuccessfully":"Additional visit information updated successfully","addVisit":"Add visit","all":"All","allEncounters":"All encounters","AM":"AM","cancel":"Cancel","causeOfDeath":"Cause of death","causeOfDeath_lower":"cause of death concepts configured in the system","causeOfDeathIsRequired":"Please select the cause of death","change":"Change","checkFilters":"Check the filters above","confirm":"Confirm","confirmDeleteVisitText":"Deleting this {{visit}} will delete its associated encounters.","confirmModifyingVisitDateToAccomodateEncounter":"The encounter date falls outside the designated visit date range. Would you like to modify the visit date to accommodate the new encounter date?","continue":"Continue","createNewVisit":"Create new visit...","currentActiveVisit":"Current active visit","currentVisit":"Current visit","date":"Date","dateAndTime":"Date & time","dateOfDeath":"Date of death","deathDateRequired":"Please select the date of death","delete":"Delete","deleteActiveVisit":"Delete active visit","deleteEncounter":"Delete encounter","deleteEncounterConfirmationText":"Are you sure you want to delete this encounter? This action can\'t be undone.","deleteThisEncounter":"Delete this encounter","deleteVisit":"Delete visit","deleteVisitDialogHeader":"Are you sure you want to delete this visit?","deletingVisit":"Deleting visit","diagnoses":"Diagnoses","discard":"Discard","discontinued":"Discontinued","dose":"Dose","dosingInstructions":"Dosing Instructions","editEncounter":"Edit","editThisEncounter":"Edit this encounter","editVisitDetails":"Edit visit details","emptyStateText":"There are no {{displayText}} to display for this patient","enable":"Enable","encounter":"Encounter","encounterDeleted":"Encounter deleted","encounters_title":"Encounters","encountersForThisVisit":"encounters for this visit","encounterSuccessfullyDeleted":"The encounter has been deleted successfully","encounterTableActionsMenu":"Encounter table actions menu","encounterType":"Encounter type","encounterWithError":"The encounter could not be deleted successfully. If the error persists, please contact your system administrator.","endActiveVisit":"End active visit","endActiveVisitConfirmation":"Are you sure you want to end this active visit?","endDate":"End date","endDate_title":"End date","endDateTimeRequired":"End date and time are required","ended":"Ended","endTime":"End time","endTimeFormat":"End time format","endTimeMustBeAfterMostRecentEncounter":"End time must be on or after {{lastEncounterDatetime}}","endTimeMustBeAfterStartTime":"End time must be after start time","endVisit_title":"End Visit","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingVisitAttribute":"Could not delete {{attributeName}} attribute","errorDeletingVisit":"Error deleting visit","errorDeletingVisitAttribute":"Could not delete {{attributeName}} attribute","errorEndingVisit":"Error ending visit","errorMarkingPatientAlive":"Error marking patient alive","errorMarkingPatientDeceased":"Error marking patient deceased","errorOccurredDeletingVisit":"An error occurred when deleting visit","errorStartingVisit":"Error starting visit","errorStartingVisitDescription":"An error occurred while starting the visit","errorUpdatingVisitAttribute":"Could not update {{attributeName}} attribute","errorUpdatingVisitDetails":"Error updating visit details","errorWhenRestoringVisit":"Error occurred when restoring {{visit}}","failedToLoadCurrentVisit":"Failed loading current visit","fieldRequired":"This field is required","filterByEncounterType":"Filter by encounter type","form":"Form name","fromDateToDate":"{{fromDate}} - {{toDate}}","futureEndTime":"End time cannot be in the future","futureStartTime":"Start time cannot be in the future","indication":"Indication","inThePast":"In the past","loading":"Loading","loadingVisit":"Loading current visit...","markAliveSuccessfully":"Patient marked alive successfully","markDeceasedWarning":"Marking the patient as deceased will end any active visits for this patient","markPatientAlive":"Mark patient alive","markPatientAliveConfirmation":"Are you sure you want to mark this patient alive?","markPatientDeceased":"Mark patient deceased","medications":"Medications","medications__lower":"medications","missingVisitType":"Missing visit type","modifyVisitDate":"Modify visit date","new":"New","nextPage":"Next page","no":"No","noActiveVisit":"No Active Visit","noActiveVisitMessage":"active visit","noActiveVisitNoRDEText":"You can\'t add data to the patient chart without an active visit. Would you like to start a new visit?","noDiagnosesFound":"No diagnoses found","noEncountersToDisplay":"No encounters to display","noMatchingCodedCausesOfDeath":"No matching coded causes of death","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Please enter the non-coded cause of death","noObservationsFound":"No observations found","noProvider":"No provider","notes":"Notes","notes__lower":"notes","noVisitsToDisplay":"No visits to display","noVisitTypesToDisplay":"No visit types to display","offlineVisit":"Offline Visit","On scheduled date":"On scheduled date","ongoing":"Ongoing","optional":"optional","orderDurationAndUnit":"for {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Indefinite duration","paginationItemsCount_one":"{{pageItemsCount}} / {{count}} item","paginationItemsCount_other":"{{pageItemsCount}} / {{count}} items","paginationPageText_one":"of {{count}} page","paginationPageText_other":"of {{count}} pages","partOfFormDidntLoad":"Part of the form did not load","pastVisits":"Past visits","Patient Summary":"Patient summary","PM":"PM","previousPage":"Previous page","program":"Program","provider":"Provider","quantity":"Quantity","recommended":"Recommended","record":"Record","refills":"Refills","refreshToTryAgain":"Please refresh to try again","required":"Required","Routine":"Routine","saveAndClose":"Save and close","saving":"Saving","searchForAVisitType":"Search for a visit type","searchForCauseOfDeath":"Search for a cause of death","seeAll":"See all","selectAnOption":"Select an option","selectAVisit":"Select a visit","selectLocation":"Select a location","selectProgramType":"Select program type","selectVisitType":"Please select a visit type","showVisitWithStartDateOnOrPriorTo":"Show visit with start date on or prior to:","startDate":"Start date","startingVisit":"Starting visit","startNewVisit":"Start new visit","startTime":"Start time","startTimeFormat":"Start time format","startVisit":"Start visit","startVisitError":"Error starting visit","startVisitWorkspaceTitle":"Start a visit","Stat":"Stat","tests":"Tests","theVisitIs":"The visit is","time":"Time","timeCompleted":"Time completed","timeFormat ":"Time Format","timeline":"Timeline","timeStarted":"Time started","undo":"Undo","unknownError":"Unknown error","updateVisit":"Update visit","updatingVisit":"Updating visit","viewEncounter":"View","visitAttributes":"Visit attributes","visitDeleted":"{{visit}} deleted","visitDeletedSuccessfully":"{{visit}} deleted successfully","visitDetailsUpdated":"Visit details updated","visitDetailsUpdatedSuccessfully":"{{visit}} updated successfully","visitEnded":"Visit ended","visitEndSuccessfully":"Ended current visit successfully","visitLocation":"Visit location","visitLocationRequired":"Visit location is required","visitNotRestored":"Visit couldn\'t be restored","visitRestored":"Visit restored","visitRestoredSuccessfully":"{{visit}} restored successfully","visits":"visits","Visits":"Visits","visitStartAndEndDate":"Visit start and end date","visitStartDate":"Visit start date","visitStartDateMustBeBeforeEarliestEncounter":"Start time must be on or before {{firstEncounterDatetime}}","visitStartDateTimeRequired":"Start date and time are required","visitStarted":"Visit started","visitStartedSuccessfully":"{{visit}} started successfully","visitType":"Visit type","visitType_title":"Visit Type","visitTypeRequired":"Visit type is required","warning":"Warning","yes":"Yes","youCanAddAdditionalEncounters":"You can add additional encounters to this visit in the visit summary."}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[4300],{34300:e=>{e.exports=JSON.parse('{"actions":"Actions","addingToVisit":"Adding to:","additionalVisitInformationUpdatedSuccessfully":"Additional visit information updated successfully","addVisit":"Add visit","all":"All","allEncounters":"All encounters","AM":"AM","cancel":"Cancel","causeOfDeath":"Cause of death","causeOfDeath_lower":"cause of death concepts configured in the system","causeOfDeathIsRequired":"Please select the cause of death","change":"Change","checkFilters":"Check the filters above","confirm":"Confirm","confirmDeleteVisitText":"Deleting this {{visit}} will delete its associated encounters.","confirmModifyingVisitDateToAccomodateEncounter":"The encounter date falls outside the designated visit date range. Would you like to modify the visit date to accommodate the new encounter date?","continue":"Continue","createNewVisit":"Create new visit...","currentActiveVisit":"Current active visit","currentVisit":"Current visit","date":"Date","dateAndTime":"Date & time","dateOfDeath":"Date of death","deathDateRequired":"Please select the date of death","delete":"Delete","deleteActiveVisit":"Delete active visit","deleteEncounter":"Delete encounter","deleteEncounterConfirmationText":"Are you sure you want to delete this encounter? This action can\'t be undone.","deleteThisEncounter":"Delete this encounter","deleteVisit":"Delete visit","deleteVisitDialogHeader":"Are you sure you want to delete this visit?","deletingVisit":"Deleting visit","diagnoses":"Diagnoses","discard":"Discard","discontinued":"Discontinued","dose":"Dose","dosingInstructions":"Dosing Instructions","editEncounter":"Edit","editThisEncounter":"Edit this encounter","editVisit":"Edit visit","editVisitDetails":"Edit visit details","emptyStateText":"There are no {{displayText}} to display for this patient","enable":"Enable","encounter":"Encounter","encounterDeleted":"Encounter deleted","encounters_title":"Encounters","encountersForThisVisit":"encounters for this visit","encounterSuccessfullyDeleted":"The encounter has been deleted successfully","encounterTableActionsMenu":"Encounter table actions menu","encounterType":"Encounter type","encounterWithError":"The encounter could not be deleted successfully. If the error persists, please contact your system administrator.","endActiveVisit":"End active visit","endActiveVisitConfirmation":"Are you sure you want to end this active visit?","endDate":"End date","endDate_title":"End date","endDateTimeRequired":"End date and time are required","ended":"Ended","endTime":"End time","endTimeFormat":"End time format","endTimeMustBeAfterMostRecentEncounter":"End time must be on or after {{lastEncounterDatetime}}","endTimeMustBeAfterStartTime":"End time must be after start time","endVisit_title":"End Visit","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingVisitAttribute":"Could not delete {{attributeName}} attribute","errorDeletingVisit":"Error deleting visit","errorDeletingVisitAttribute":"Could not delete {{attributeName}} attribute","errorEndingVisit":"Error ending visit","errorMarkingPatientAlive":"Error marking patient alive","errorMarkingPatientDeceased":"Error marking patient deceased","errorOccurredDeletingVisit":"An error occurred when deleting visit","errorStartingVisit":"Error starting visit","errorStartingVisitDescription":"An error occurred while starting the visit","errorUpdatingVisitAttribute":"Could not update {{attributeName}} attribute","errorUpdatingVisitDetails":"Error updating visit details","errorWhenRestoringVisit":"Error occurred when restoring {{visit}}","fieldRequired":"This field is required","filterByEncounterType":"Filter by encounter type","form":"Form name","fromDateToDate":"{{fromDate}} - {{toDate}}","futureEndTime":"End time cannot be in the future","futureStartTime":"Start time cannot be in the future","indication":"Indication","inThePast":"In the past","loading":"Loading","markAliveSuccessfully":"Patient marked alive successfully","markDeceasedWarning":"Marking the patient as deceased will end any active visits for this patient","markPatientAlive":"Mark patient alive","markPatientAliveConfirmation":"Are you sure you want to mark this patient alive?","markPatientDeceased":"Mark patient deceased","medications":"Medications","medications__lower":"medications","missingVisitType":"Missing visit type","modifyVisitDate":"Modify visit date","new":"New","nextPage":"Next page","no":"No","noActiveVisit":"No Active Visit","noActiveVisitMessage":"active visit","noActiveVisitNoRDEText":"You can\'t add data to the patient chart without an active visit. Would you like to start a new visit?","noDiagnosesFound":"No diagnoses found","noEncountersToDisplay":"No encounters to display","noMatchingCodedCausesOfDeath":"No matching coded causes of death","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Please enter the non-coded cause of death","noObservationsFound":"No observations found","noProvider":"No provider","notes":"Notes","notes__lower":"notes","noVisitsToDisplay":"No visits to display","noVisitTypesToDisplay":"No visit types to display","offlineVisit":"Offline Visit","On scheduled date":"On scheduled date","ongoing":"Ongoing","optional":"optional","orderDurationAndUnit":"for {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Indefinite duration","paginationItemsCount_one":"{{pageItemsCount}} / {{count}} item","paginationItemsCount_other":"{{pageItemsCount}} / {{count}} items","paginationPageText_one":"of {{count}} page","paginationPageText_other":"of {{count}} pages","partOfFormDidntLoad":"Part of the form did not load","pastVisits":"Past visits","Patient Summary":"Patient summary","PM":"PM","previousPage":"Previous page","program":"Program","provider":"Provider","quantity":"Quantity","recommended":"Recommended","record":"Record","refills":"Refills","refreshToTryAgain":"Please refresh to try again","required":"Required","Routine":"Routine","saveAndClose":"Save and close","saving":"Saving","searchForAVisitType":"Search for a visit type","searchForCauseOfDeath":"Search for a cause of death","seeAll":"See all","selectAnOption":"Select an option","selectAVisit":"Select a visit","selectLocation":"Select a location","selectProgramType":"Select program type","selectVisitType":"Please select a visit type","showVisitWithStartDateOnOrPriorTo":"Show visit with start date on or prior to:","startDate":"Start date","startingVisit":"Starting visit","startNewVisit":"Start new visit","startTime":"Start time","startTimeFormat":"Start time format","startVisit":"Start visit","startVisitError":"Error starting visit","startVisitWorkspaceTitle":"Start a visit","Stat":"Stat","tests":"Tests","theVisitIs":"The visit is","time":"Time","timeCompleted":"Time completed","timeFormat ":"Time Format","timeline":"Timeline","timeStarted":"Time started","undo":"Undo","unknownError":"Unknown error","updateVisit":"Update visit","updatingVisit":"Updating visit","viewEncounter":"View","visitAttributes":"Visit attributes","visitDeleted":"{{visit}} deleted","visitDeletedSuccessfully":"{{visit}} deleted successfully","visitDetailsUpdated":"Visit details updated","visitDetailsUpdatedSuccessfully":"{{visit}} updated successfully","visitEnded":"Visit ended","visitEndSuccessfully":"Ended current visit successfully","visitLocation":"Visit location","visitLocationRequired":"Visit location is required","visitNotRestored":"Visit couldn\'t be restored","visitRestored":"Visit restored","visitRestoredSuccessfully":"{{visit}} restored successfully","visits":"visits","Visits":"Visits","visitStartAndEndDate":"Visit start and end date","visitStartDate":"Visit start date","visitStartDateMustBeBeforeEarliestEncounter":"Start time must be on or before {{firstEncounterDatetime}}","visitStartDateTimeRequired":"Start date and time are required","visitStarted":"Visit started","visitStartedSuccessfully":"{{visit}} started successfully","visitType":"Visit type","visitType_title":"Visit Type","visitTypeRequired":"Visit type is required","warning":"Warning","yes":"Yes","youCanAddAdditionalEncounters":"You can add additional encounters to this visit in the visit summary."}')}}]);
package/dist/4718.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[4718],{24718:(e,n,t)=>{t.r(n),t.d(n,{default:()=>c});var a=t(1343),r=t.n(a),o=t(93150),i=t(75198),l=t(54440),s=t(84520);const c=function(e){var n=e.closeModal,t=e.patientUuid,c=(0,o.useTranslation)().t,u=(0,a.useCallback)((function(){n(),(0,s.II)(t).then((function(){n(),(0,l.showSnackbar)({title:c("markAliveSuccessfully","Patient marked alive successfully")}),window.location.reload()})).catch((function(e){(0,l.showSnackbar)({title:c("errorMarkingPatientAlive","Error marking patient alive"),kind:"error",isLowContrast:!1,subtitle:null==e?void 0:e.message})}))}),[n,t,c]);return r().createElement("div",null,r().createElement(i.ModalHeader,{closeModal:n,title:c("markPatientAlive","Mark patient alive")}),r().createElement(i.ModalBody,null,c("markPatientAliveConfirmation","Are you sure you want to mark this patient alive?")),r().createElement(i.ModalFooter,null,r().createElement(i.Button,{kind:"secondary",onClick:n},c("no","No")),r().createElement(i.Button,{onClick:u},c("yes","Yes"))))}},84520:(e,n,t)=>{t.d(n,{H9:()=>s,II:()=>d,b4:()=>u});var a=t(1343),r=t(71123),o=t(54440);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e,n){return null!=n&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n}function s(){var e,n,t,i,s,c,u=(n=(0,r.Ay)("".concat(o.restBaseUrl,"/systemsetting/concept.causeOfDeath"),o.openmrsFetch,{shouldRetryOnError:function(e){return l(e,Response)&&404!==e.status}}),t=n.data,i=n.error,s=n.isLoading,c=n.isValidating,(0,a.useMemo)((function(){var e,n;return{value:null!==(n=null==t||null===(e=t.data)||void 0===e?void 0:e.value)&&void 0!==n?n:void 0,isCauseOfDeathLoading:s,isCauseOfDeathValidating:c,error:i}}),[null==t||null===(e=t.data)||void 0===e?void 0:e.value,i,s,c])),d=u.isCauseOfDeathLoading,f=u.isCauseOfDeathValidating,p=function(e){var n,t,a=(0,r.Ay)("".concat(o.restBaseUrl,"/concept/").concat(e),(function(n){return e?(0,o.openmrsFetch)(n):void 0}),{shouldRetryOnError:function(e){return l(e,Response)&&404!==e.status}}),i=a.data,s=a.error,c=a.isLoading,u=a.isValidating;return{conceptAnswers:null!==(t=null==i||null===(n=i.data)||void 0===n?void 0:n.answers)&&void 0!==t?t:[],isConceptLoading:c,conceptError:s,isConceptAnswerValidating:u}}(u.value),v=p.isConceptLoading,h=p.isConceptAnswerValidating;return{causesOfDeath:p.conceptAnswers,isLoading:d||v,isValidating:h||f}}var c=function(e,n){var t=new AbortController;return(0,o.openmrsFetch)("".concat(o.restBaseUrl,"/person/").concat(e),{headers:{"Content-type":"application/json"},method:"POST",body:n,signal:t.signal})};function u(e,n,t,a){var r=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){i(e,n,t[n])}))}return e}({dead:!0,deathDate:e||null},a?{causeOfDeathNonCoded:a}:{causeOfDeath:t});return c(n,r)}function d(e){return c(e,{causeOfDeath:null,causeOfDeathNonCoded:null,dead:!1,deathDate:null})}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[4718],{24718:(e,n,t)=>{t.r(n),t.d(n,{default:()=>c});var a=t(1343),r=t.n(a),o=t(72339),i=t(75198),l=t(54440),s=t(84520);const c=function(e){var n=e.closeModal,t=e.patientUuid,c=(0,o.useTranslation)().t,u=(0,a.useCallback)((function(){n(),(0,s.II)(t).then((function(){n(),(0,l.showSnackbar)({title:c("markAliveSuccessfully","Patient marked alive successfully")}),window.location.reload()})).catch((function(e){(0,l.showSnackbar)({title:c("errorMarkingPatientAlive","Error marking patient alive"),kind:"error",isLowContrast:!1,subtitle:null==e?void 0:e.message})}))}),[n,t,c]);return r().createElement("div",null,r().createElement(i.ModalHeader,{closeModal:n,title:c("markPatientAlive","Mark patient alive")}),r().createElement(i.ModalBody,null,c("markPatientAliveConfirmation","Are you sure you want to mark this patient alive?")),r().createElement(i.ModalFooter,null,r().createElement(i.Button,{kind:"secondary",onClick:n},c("no","No")),r().createElement(i.Button,{onClick:u},c("yes","Yes"))))}},84520:(e,n,t)=>{t.d(n,{H9:()=>s,II:()=>d,b4:()=>u});var a=t(1343),r=t(71123),o=t(54440);function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e,n){return null!=n&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n}function s(){var e,n,t,i,s,c,u=(n=(0,r.Ay)("".concat(o.restBaseUrl,"/systemsetting/concept.causeOfDeath"),o.openmrsFetch,{shouldRetryOnError:function(e){return l(e,Response)&&404!==e.status}}),t=n.data,i=n.error,s=n.isLoading,c=n.isValidating,(0,a.useMemo)((function(){var e,n;return{value:null!==(n=null==t||null===(e=t.data)||void 0===e?void 0:e.value)&&void 0!==n?n:void 0,isCauseOfDeathLoading:s,isCauseOfDeathValidating:c,error:i}}),[null==t||null===(e=t.data)||void 0===e?void 0:e.value,i,s,c])),d=u.isCauseOfDeathLoading,f=u.isCauseOfDeathValidating,p=function(e){var n,t,a=(0,r.Ay)("".concat(o.restBaseUrl,"/concept/").concat(e),(function(n){return e?(0,o.openmrsFetch)(n):void 0}),{shouldRetryOnError:function(e){return l(e,Response)&&404!==e.status}}),i=a.data,s=a.error,c=a.isLoading,u=a.isValidating;return{conceptAnswers:null!==(t=null==i||null===(n=i.data)||void 0===n?void 0:n.answers)&&void 0!==t?t:[],isConceptLoading:c,conceptError:s,isConceptAnswerValidating:u}}(u.value),v=p.isConceptLoading,h=p.isConceptAnswerValidating;return{causesOfDeath:p.conceptAnswers,isLoading:d||v,isValidating:h||f}}var c=function(e,n){var t=new AbortController;return(0,o.openmrsFetch)("".concat(o.restBaseUrl,"/person/").concat(e),{headers:{"Content-type":"application/json"},method:"POST",body:n,signal:t.signal})};function u(e,n,t,a){var r=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){i(e,n,t[n])}))}return e}({dead:!0,deathDate:e||null},a?{causeOfDeathNonCoded:a}:{causeOfDeath:t});return c(n,r)}function d(e){return c(e,{causeOfDeath:null,causeOfDeathNonCoded:null,dead:!1,deathDate:null})}}}]);
package/dist/4754.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[4754],{22770:(e,n,t)=>{t.d(n,{A:()=>o});var a=t(30977),i=t.n(a),s=t(95924),l=t.n(s)()(i());l.push([e.id,".-esm-patient-chart__delete-encounter__productiveHeading03___2j1Wb{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0)}.-esm-patient-chart__delete-encounter__bodyLong01___VZa-h{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}","",{version:3,sources:["webpack://./src/visit/visits-widget/past-visits-components/delete-encounter.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAEA,mECg2BI,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CD51BJ,0DC41BI,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA",sourcesContent:["@use '@carbon/type';\n\n.productiveHeading03 {\n @include type.type-style('heading-03');\n}\n\n.bodyLong01 {\n @include type.type-style('body-01');\n}\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// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),l.locals={productiveHeading03:"-esm-patient-chart__delete-encounter__productiveHeading03___2j1Wb",bodyLong01:"-esm-patient-chart__delete-encounter__bodyLong01___VZa-h"};const o=l},24754:(e,n,t)=>{t.r(n),t.d(n,{default:()=>k});var a=t(1343),i=t.n(a),s=t(93150),l=t(75198),o=t(72591),p=t.n(o),c=t(1740),r=t.n(c),d=t(88128),g=t.n(d),u=t(30855),f=t.n(u),h=t(93051),y=t.n(h),b=t(73656),$=t.n(b),m=t(22770),v={};v.styleTagTransform=$(),v.setAttributes=f(),v.insert=g().bind(null,"head"),v.domAPI=r(),v.insertStyleElement=y(),p()(m.A,v);const w=m.A&&m.A.locals?m.A.locals:void 0,k=function(e){var n=e.close,t=e.onConfirmation,a=e.encounterTypeName,o=(0,s.useTranslation)().t;return i().createElement(i().Fragment,null,i().createElement(l.ModalHeader,{closeModal:n,className:w.productiveHeading03},o("deleteEncounter","Delete Encounter"),"?"),i().createElement(l.ModalBody,null,i().createElement("p",{className:w.bodyLong01},o("deleteEncounterConfirmationText","Are you sure you want to delete this encounter? This action can't be undone.",{encounter:a}))),i().createElement(l.ModalFooter,null,i().createElement(l.Button,{size:"lg",kind:"secondary",onClick:function(e){return n(e)}},o("cancel","Cancel")),i().createElement(l.Button,{autoFocus:!0,kind:"danger",onClick:function(){return null==t?void 0:t()},size:"lg"},o("delete","Delete"))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[4754],{22770:(e,n,t)=>{t.d(n,{A:()=>o});var a=t(30977),i=t.n(a),s=t(95924),l=t.n(s)()(i());l.push([e.id,".-esm-patient-chart__delete-encounter__productiveHeading03___2j1Wb{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0)}.-esm-patient-chart__delete-encounter__bodyLong01___VZa-h{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}","",{version:3,sources:["webpack://./src/visit/visits-widget/past-visits-components/delete-encounter.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAEA,mECg2BI,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CD51BJ,0DC41BI,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA",sourcesContent:["@use '@carbon/type';\n\n.productiveHeading03 {\n @include type.type-style('heading-03');\n}\n\n.bodyLong01 {\n @include type.type-style('body-01');\n}\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// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),l.locals={productiveHeading03:"-esm-patient-chart__delete-encounter__productiveHeading03___2j1Wb",bodyLong01:"-esm-patient-chart__delete-encounter__bodyLong01___VZa-h"};const o=l},24754:(e,n,t)=>{t.r(n),t.d(n,{default:()=>k});var a=t(1343),i=t.n(a),s=t(72339),l=t(75198),o=t(72591),p=t.n(o),c=t(1740),r=t.n(c),d=t(88128),g=t.n(d),u=t(30855),f=t.n(u),h=t(93051),y=t.n(h),b=t(73656),$=t.n(b),m=t(22770),v={};v.styleTagTransform=$(),v.setAttributes=f(),v.insert=g().bind(null,"head"),v.domAPI=r(),v.insertStyleElement=y(),p()(m.A,v);const w=m.A&&m.A.locals?m.A.locals:void 0,k=function(e){var n=e.close,t=e.onConfirmation,a=e.encounterTypeName,o=(0,s.useTranslation)().t;return i().createElement(i().Fragment,null,i().createElement(l.ModalHeader,{closeModal:n,className:w.productiveHeading03},o("deleteEncounter","Delete Encounter"),"?"),i().createElement(l.ModalBody,null,i().createElement("p",{className:w.bodyLong01},o("deleteEncounterConfirmationText","Are you sure you want to delete this encounter? This action can't be undone.",{encounter:a}))),i().createElement(l.ModalFooter,null,i().createElement(l.Button,{size:"lg",kind:"secondary",onClick:function(e){return n(e)}},o("cancel","Cancel")),i().createElement(l.Button,{autoFocus:!0,kind:"danger",onClick:function(){return null==t?void 0:t()},size:"lg"},o("delete","Delete"))))}}}]);
package/dist/5205.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[5205],{15205:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var i=n(1343),a=n.n(i),s=n(75198),l=n(54440),o=n(93150);const r=function(e){var t,n=e.patientUuid,i=e.visit,r=e.compact,c=(0,o.useTranslation)().t,u="tablet"===(0,l.useLayoutType)()?"lg":"sm",d=function(){var e=(0,l.showModal)("delete-visit-dialog",{patientUuid:n,visit:i,closeModal:function(){return e()}})};return(null==i||null===(t=i.encounters)||void 0===t?void 0:t.length)?null:a().createElement(l.UserHasAccess,{privilege:"Delete Visits"},r?a().createElement(s.IconButton,{onClick:d,label:(0,l.getCoreTranslation)("delete"),kind:"ghost",size:u,align:"top-end"},a().createElement(l.TrashCanIcon,{size:16})):a().createElement(s.Button,{onClick:d,kind:"danger--ghost",renderIcon:l.TrashCanIcon,size:u},c("deleteVisit","Delete visit")))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[5205],{15205:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var i=n(1343),a=n.n(i),s=n(75198),l=n(54440),o=n(72339);const r=function(e){var t,n=e.patientUuid,i=e.visit,r=e.compact,c=(0,o.useTranslation)().t,u="tablet"===(0,l.useLayoutType)()?"lg":"sm",d=function(){var e=(0,l.showModal)("delete-visit-dialog",{patientUuid:n,visit:i,closeModal:function(){return e()}})};return(null==i||null===(t=i.encounters)||void 0===t?void 0:t.length)?null:a().createElement(l.UserHasAccess,{privilege:"Delete Visits"},r?a().createElement(s.IconButton,{onClick:d,label:(0,l.getCoreTranslation)("delete"),kind:"ghost",size:u,align:"top-end"},a().createElement(l.TrashCanIcon,{size:16})):a().createElement(s.Button,{onClick:d,kind:"danger--ghost",renderIcon:l.TrashCanIcon,size:u},c("deleteVisit","Delete visit")))}}}]);
package/dist/5670.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[5670],{3026:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>n(e,t,r)<0},4782:(e,t,r)=>{const n=r(40663);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},5717:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>n(e,t,r)>0},5950:(e,t,r)=>{const n=r(57705);e.exports=(e,t,r)=>{const o=new n(e,r),s=new n(t,r);return o.compare(s)||o.compareBuild(s)}},6995:(e,t,r)=>{const n=r(57705),o=r(16632);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new n(s,r)))})),s}},7416:(e,t,r)=>{const n=r(59980),o=r(94568),s=r(5717),i=r(36102),a=r(3026),c=r(95419);e.exports=(e,t,r,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,l);case"!=":return o(e,r,l);case">":return s(e,r,l);case">=":return i(e,r,l);case"<":return a(e,r,l);case"<=":return c(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},7566:(e,t,r)=>{const n=r(5950);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},15934:(e,t,r)=>{const n=r(79413);e.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r(86891).SEMVER_SPEC_VERSION,SemVer:r(57705),compareIdentifiers:r(83610).compareIdentifiers,rcompareIdentifiers:r(83610).rcompareIdentifiers,parse:r(40663),valid:r(4782),clean:r(26669),inc:r(29384),diff:r(36609),major:r(41529),minor:r(75581),patch:r(29558),prerelease:r(69168),compare:r(82463),rcompare:r(82367),compareLoose:r(75488),compareBuild:r(5950),sort:r(52142),rsort:r(7566),gt:r(5717),lt:r(3026),eq:r(59980),neq:r(94568),gte:r(36102),lte:r(95419),cmp:r(7416),coerce:r(22059),Comparator:r(43473),Range:r(16632),satisfies:r(94753),toComparators:r(31752),maxSatisfying:r(6995),minSatisfying:r(99481),minVersion:r(65796),validRange:r(54623),outside:r(20650),gtr:r(89414),ltr:r(86859),intersects:r(25995),simplifyRange:r(46290),subset:r(80483)}},16632:(e,t,r)=>{class n{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=this.options.loose;e=e.trim();const r=t?a[c.HYPHENRANGELOOSE]:a[c.HYPHENRANGE];e=e.replace(r,A(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(a[c.COMPARATORTRIM],l),s("comparator trim",e,a[c.COMPARATORTRIM]),e=(e=(e=e.replace(a[c.TILDETRIM],p)).replace(a[c.CARETTRIM],u)).split(/\s+/).join(" ");const n=t?a[c.COMPARATORLOOSE]:a[c.COMPARATOR];return e.split(" ").map((e=>h(e,this.options))).join(" ").split(/\s+/).map((e=>S(e,this.options))).filter(this.options.loose?e=>!!e.match(n):()=>!0).map((e=>new o(e,this.options)))}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>f(r,t)&&e.set.some((e=>f(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(R(this.set[t],e,this.options))return!0;return!1}}e.exports=n;const o=r(43473),s=r(29306),i=r(57705),{re:a,t:c,comparatorTrimReplace:l,tildeTrimReplace:p,caretTrimReplace:u}=r(79413),f=(e,t)=>{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every((e=>o.intersects(e,t))),o=n.pop();return r},h=(e,t)=>(s("comp",e,t),e=E(e,t),s("caret",e),e=d(e,t),s("tildes",e),e=$(e,t),s("xrange",e),e=y(e,t),s("stars",e),e),m=e=>!e||"x"===e.toLowerCase()||"*"===e,d=(e,t)=>e.trim().split(/\s+/).map((e=>g(e,t))).join(" "),g=(e,t)=>{const r=t.loose?a[c.TILDELOOSE]:a[c.TILDE];return e.replace(r,((t,r,n,o,i)=>{let a;return s("tilde",e,t,r,n,o,i),m(r)?a="":m(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:m(o)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(s("replaceTilde pr",i),a=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,s("tilde return",a),a}))},E=(e,t)=>e.trim().split(/\s+/).map((e=>I(e,t))).join(" "),I=(e,t)=>{s("caret",e,t);const r=t.loose?a[c.CARETLOOSE]:a[c.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,o,i,a)=>{let c;return s("caret",e,t,r,o,i,a),m(r)?c="":m(o)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:m(i)?c="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===r?"0"===o?`>=${r}.${o}.${i}-${a} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}-${a} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i}-${a} <${+r+1}.0.0-0`):(s("no pr"),c="0"===r?"0"===o?`>=${r}.${o}.${i}${n} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i} <${+r+1}.0.0-0`),s("caret return",c),c}))},$=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>{e=e.trim();const r=t.loose?a[c.XRANGELOOSE]:a[c.XRANGE];return e.replace(r,((r,n,o,i,a,c)=>{s("xRange",e,r,n,o,i,a,c);const l=m(o),p=l||m(i),u=p||m(a),f=u;return"="===n&&f&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&f?(p&&(i=0),a=0,">"===n?(n=">=",p?(o=+o+1,i=0,a=0):(i=+i+1,a=0)):"<="===n&&(n="<",p?o=+o+1:i=+i+1),"<"===n&&(c="-0"),r=`${n+o}.${i}.${a}${c}`):p?r=`>=${o}.0.0${c} <${+o+1}.0.0-0`:u&&(r=`>=${o}.${i}.0${c} <${o}.${+i+1}.0-0`),s("xRange return",r),r}))},y=(e,t)=>(s("replaceStars",e,t),e.trim().replace(a[c.STAR],"")),S=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),A=e=>(t,r,n,o,s,i,a,c,l,p,u,f,h)=>`${r=m(n)?"":m(o)?`>=${n}.0.0${e?"-0":""}`:m(s)?`>=${n}.${o}.0${e?"-0":""}`:i?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=m(l)?"":m(p)?`<${+l+1}.0.0-0`:m(u)?`<${l}.${+p+1}.0-0`:f?`<=${l}.${p}.${u}-${f}`:e?`<${l}.${p}.${+u+1}-0`:`<=${c}`}`.trim(),R=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(s(e[r].semver),e[r].semver!==o.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},20650:(e,t,r)=>{const n=r(57705),o=r(43473),{ANY:s}=o,i=r(16632),a=r(94753),c=r(5717),l=r(3026),p=r(95419),u=r(36102);e.exports=(e,t,r,f)=>{let h,m,d,g,E;switch(e=new n(e,f),t=new i(t,f),r){case">":h=c,m=p,d=l,g=">",E=">=";break;case"<":h=l,m=u,d=c,g="<",E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,f))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let i=null,a=null;if(n.forEach((e=>{e.semver===s&&(e=new o(">=0.0.0")),i=i||e,a=a||e,h(e.semver,i.semver,f)?i=e:d(e.semver,a.semver,f)&&(a=e)})),i.operator===g||i.operator===E)return!1;if((!a.operator||a.operator===g)&&m(e,a.semver))return!1;if(a.operator===E&&d(e,a.semver))return!1}return!0}},22059:(e,t,r)=>{const n=r(57705),o=r(40663),{re:s,t:i}=r(79413);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=s[i.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),s[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;s[i.COERCERTL].lastIndex=-1}else r=e.match(s[i.COERCE]);return null===r?null:o(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},25995:(e,t,r)=>{const n=r(16632);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t))},26669:(e,t,r)=>{const n=r(40663);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},29306:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},29384:(e,t,r)=>{const n=r(57705);e.exports=(e,t,r,o)=>{"string"==typeof r&&(o=r,r=void 0);try{return new n(e,r).inc(t,o).version}catch(e){return null}}},29558:(e,t,r)=>{const n=r(57705);e.exports=(e,t)=>new n(e,t).patch},31752:(e,t,r)=>{const n=r(16632);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},36102:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>n(e,t,r)>=0},36609:(e,t,r)=>{const n=r(40663),o=r(59980);e.exports=(e,t)=>{if(o(e,t))return null;{const r=n(e),o=n(t),s=r.prerelease.length||o.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==o[e])return i+e;return a}}},40663:(e,t,r)=>{const{MAX_LENGTH:n}=r(86891),{re:o,t:s}=r(79413),i=r(57705);e.exports=(e,t)=>{if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?o[s.LOOSE]:o[s.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}},41529:(e,t,r)=>{const n=r(57705);e.exports=(e,t)=>new n(e,t).major},43473:(e,t,r)=>{const n=Symbol("SemVer ANY");class o{static get ANY(){return n}constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return a(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new p(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new p(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),s=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),c=a(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=a(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||s&&i||c||l}}e.exports=o;const{re:s,t:i}=r(79413),a=r(7416),c=r(29306),l=r(57705),p=r(16632)},46290:(e,t,r)=>{const n=r(94753),o=r(82463);e.exports=(e,t,r)=>{const s=[];let i=null,a=null;const c=e.sort(((e,t)=>o(e,t,r)));for(const e of c)n(e,t,r)?(a=e,i||(i=e)):(a&&s.push([i,a]),a=null,i=null);i&&s.push([i,null]);const l=[];for(const[e,t]of s)e===t?l.push(e):t||e!==c[0]?t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const p=l.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return p.length<u.length?p:t}},52142:(e,t,r)=>{const n=r(5950);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},54623:(e,t,r)=>{const n=r(16632);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},55670:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ActionMenu:()=>G.WyE,ActionMenuButton:()=>G.EDM,ActionMenuButton2:()=>G.Wjo,ActionableNotificationComponent:()=>G.drd,ActivityIcon:()=>G.npY,AddIcon:()=>G.REV,AllergiesIcon:()=>G.UgN,AppointmentsAltPictogram:()=>G.MnZ,AppointmentsPictogram:()=>G.B1u,ArrowDownIcon:()=>G.ZLN,ArrowLeftIcon:()=>G.A60,ArrowRightIcon:()=>G.flY,ArrowUpIcon:()=>G.Kpk,Assessment1Pictogram:()=>G.IHy,Assessment2Pictogram:()=>G.$iy,AttachmentIcon:()=>G.PtA,BabyIcon:()=>G.qYP,BloodBankPictogram:()=>G.nvs,Breakpoint:()=>G.EA,CalendarHeatMapIcon:()=>G.mmM,CalendarIcon:()=>G.CTc,CardiologyPictogram:()=>G.uU$,CaretDownIcon:()=>G.bDP,CaretLeftIcon:()=>G.eCO,CaretRightIcon:()=>G.JJd,CaretUpIcon:()=>G.SwV,ChartAverageIcon:()=>G.ZHE,CheckmarkFilledIcon:()=>G.FtQ,CheckmarkOutlineIcon:()=>G.pm$,ChemistryIcon:()=>G.W4t,ChevronDownIcon:()=>G.D3D,ChevronLeftIcon:()=>G.YJP,ChevronRightIcon:()=>G.vKP,ChevronUpIcon:()=>G.Mtm,CloseFilledIcon:()=>G.oCk,CloseIcon:()=>G.USm,CloseOutlineIcon:()=>G.Wdn,ComponentContext:()=>$.zq,ConditionsIcon:()=>G.ci3,ConfigurableLink:()=>$.i_,CtScanPictogram:()=>G.DeE,CustomOverflowMenu:()=>G.TQT,DashboardExtension:()=>G.cJN,DentistryPictogram:()=>G.TNY,DiagnosisTags:()=>G.Fzf,DocumentAttachmentIcon:()=>G.Ce6,DocumentIcon:()=>G.pyG,DownloadIcon:()=>G.s3U,DrugOrderIcon:()=>G.uqj,EditIcon:()=>G.qUP,EmergencyDepartmentPictogram:()=>G.sgv,ErrorState:()=>G.W5n,EventScheduleIcon:()=>G.XaH,EventsIcon:()=>G.Jc,Extension:()=>$.YY,ExtensionSlot:()=>$.W3,FacilityPictogram:()=>G.ECF,GenderFemaleIcon:()=>G.XB2,GenderMaleIcon:()=>G.szA,GenderOtherIcon:()=>G.hXZ,GenderUnknownIcon:()=>G.x1U,GenericOrderTypeIcon:()=>G.naI,GeriatricsPictogram:()=>G.SQq,GroupAccessIcon:()=>G.Pyy,GroupIcon:()=>G.nFg,GynaecologyPictogram:()=>G.owH,HomePictogram:()=>G.KKH,HospitalBedIcon:()=>G.jMM,Icon:()=>G.Int,ImageMedicalIcon:()=>G.Ix5,InPatientPictogram:()=>G.thS,InformationFilledIcon:()=>G._e_,InformationIcon:()=>G.uQc,InformationSquareIcon:()=>G.ZrL,InventoryManagementIcon:()=>G.vFG,LabOrderIcon:()=>G.hi6,LaboratoryPictogram:()=>G.ehn,Labs2Pictogram:()=>G.rpF,LeftNavMenu:()=>G.Ojh,ListCheckedIcon:()=>G.Rt$,LocationIcon:()=>G.BT6,LocationPicker:()=>G.MTs,MaterialOrderIcon:()=>G.zZ0,MaximizeIcon:()=>G._Xm,MaybeIcon:()=>G.oy0,MaybePictogram:()=>G.bmf,MedicationIcon:()=>G.Fnj,MessageQueueIcon:()=>G.uFu,MicroscopeIcon:()=>G.u4h,MoneyIcon:()=>G.yBj,MotherIcon:()=>G.XEq,MovementIcon:()=>G.lyJ,Notification:()=>G.Eg0,ObstetricsPictogram:()=>G.Bk2,OpenmrsAppContext:()=>$.p6,OpenmrsDatePicker:()=>G.rnR,OpenmrsDateRangePicker:()=>G.Yem,OpenmrsFetchError:()=>n.$f,OverflowMenuHorizontalIcon:()=>G.rv3,OverflowMenuVerticalIcon:()=>G.Rnm,PageHeader:()=>G.zYs,PageHeaderContent:()=>G.gpz,PasswordIcon:()=>G.BGy,PatientBannerActionsMenu:()=>G.k1U,PatientBannerContactDetails:()=>G.m5G,PatientBannerPatientIdentifiers:()=>G.XIV,PatientBannerPatientInfo:()=>G.zvf,PatientBannerToggleContactDetailsButton:()=>G.Qgu,PatientListsPictogram:()=>G.$2H,PatientPhoto:()=>G.yV,PatientSearchPictogram:()=>G.cxq,PatientsPictogram:()=>G.X25,PaymentsDeskPictogram:()=>G.dNG,PedestrianFamilyIcon:()=>G.PPo,PenIcon:()=>G.rZj,Pharmacy2Pictogram:()=>G.Q92,PharmacyPictogram:()=>G.w21,Pictogram:()=>G.bF1,PrinterIcon:()=>G.wwY,ProcedureOrderIcon:()=>G.H0x,ProgramsIcon:()=>G.lq$,RadiologyIcon:()=>G.SA3,ReferralOrderIcon:()=>G.tCH,RegistrationPictogram:()=>G.et7,RenderIfValueIsTruthy:()=>$.fS,RenewIcon:()=>G.JTN,ReportIcon:()=>G.cQD,ResetIcon:()=>G.NAP,ResponsiveWrapper:()=>G.KFv,SaveIcon:()=>G.LPu,SearchIcon:()=>G.WIv,ServiceQueuesPictogram:()=>G.Y21,SettingsIcon:()=>G.Zes,ShoppingCartAddItemIcon:()=>G.Uve,ShoppingCartArrowDownIcon:()=>G.Lfm,ShoppingCartIcon:()=>G.aJF,Snackbar:()=>G.qb_,StickyNoteAddIcon:()=>G.OC$,StockManagementPictogram:()=>G.q__,SwitcherIcon:()=>G.RFy,SyringeIcon:()=>G.hZg,TableIcon:()=>G.KbA,TableOfContentsIcon:()=>G.pYV,TimeIcon:()=>G.b1c,Toast:()=>G.y8,ToolsIcon:()=>G.dwU,TransferPictogram:()=>G.SKX,TranslateIcon:()=>G.SwB,TrashCanIcon:()=>G.EJV,TreeViewAltIcon:()=>G.MO4,TriagePictogram:()=>G.XHu,Type:()=>o.ZU,UserAvatarIcon:()=>G.yDT,UserFollowIcon:()=>G.osL,UserHasAccess:()=>$.qw,UserIcon:()=>G.nys,UserXrayIcon:()=>G.feL,ViewIcon:()=>G.tCQ,ViewOffIcon:()=>G.Oi_,VisitMode:()=>i.dx,VisitStatus:()=>i.Cj,WarningIcon:()=>G.id,Workspace2:()=>G.ozP,WorkspaceContainer:()=>G.XvC,WorkspaceNotification:()=>G.tMf,XrayPictogram:()=>G.B2u,activateOfflineCapability:()=>I.nr,addRoutesOverride:()=>P,age:()=>U.K,attach:()=>m.K0,attachmentUrl:()=>i.Zu,backendDependencies:()=>n.QE,beginEditSynchronizationItem:()=>I.FO,canAccessStorage:()=>L,canBeginEditSynchronizationItemsOfType:()=>I.xN,canCloseWorkspaceWithoutPrompting:()=>G.SvQ,cancelPrompt:()=>G.zlb,changeWorkspaceContext:()=>G.JKc,checkStatus:()=>m.dO,checkStatusFor:()=>m.Ef,cleanupObsoleteFeatureFlags:()=>d.D3,clearConfigErrors:()=>o.Nh,clearCurrentUser:()=>n.g$,clearHistory:()=>E.g4,closeAllWorkspaces:()=>G.G_3,closeWorkspace:()=>G.MJ8,closeWorkspaceGroup2:()=>G.biy,compile:()=>c.wE,configExtensionStore:()=>o.hs,configInternalStore:()=>o.Rt,convertToLocaleCalendar:()=>W.d4,createAttachment:()=>i.cD,createErrorHandler:()=>a.J,createGlobalStore:()=>M.Zd,createUseStore:()=>$.rr,defaultVisitCustomRepresentation:()=>i.Rb,defineConfigSchema:()=>o.T0,defineExtensionConfigSchema:()=>o.ks,deleteAttachmentPermanently:()=>i.SY,deleteSynchronizationItem:()=>I.lY,detach:()=>m.Yo,detachAll:()=>m.No,dispatchActionableNotificationShown:()=>g.LQ,dispatchConnectivityChanged:()=>g.Yt,dispatchNotificationShown:()=>g.FI,dispatchPrecacheStaticDependencies:()=>g.pc,dispatchSnackbarShown:()=>g.$3,dispatchToastShown:()=>g.Vt,displayName:()=>V.QC,esmStyleGuideSchema:()=>G.uQD,evaluate:()=>c._3,evaluateAsBoolean:()=>c.eb,evaluateAsBooleanAsync:()=>c.Gz,evaluateAsNumber:()=>c.dX,evaluateAsNumberAsync:()=>c.$F,evaluateAsType:()=>c.Sj,evaluateAsTypeAsync:()=>c.uN,evaluateAsync:()=>c.mv,extractVariableNames:()=>u,featureFlagsStore:()=>d.jX,fetchCurrentPatient:()=>i.hG,fhirBaseUrl:()=>n.IU,filterBreadcrumbs:()=>E.D_,finishRegisteringAllApps:()=>N,formatDate:()=>W.Yq,formatDatetime:()=>W.Rt,formatDuration:()=>W.a3,formatPartialDate:()=>W.LW,formatPatientName:()=>V.Qr,formatTime:()=>W.fU,formattedName:()=>V.qK,generateOfflineUuid:()=>I.sA,getAssignedExtensions:()=>m.zx,getAsyncExtensionLifecycle:()=>$.sc,getAsyncLifecycle:()=>$.ns,getAttachmentByUuid:()=>i.KU,getAttachments:()=>i.Bv,getBreadcrumbs:()=>E.lz,getBreadcrumbsFor:()=>E.qh,getConfig:()=>o.zj,getConfigStore:()=>o.IS,getCoreTranslation:()=>j.V,getCurrentImportMap:()=>s.Ln,getCurrentOfflineMode:()=>I.wJ,getCurrentUser:()=>n.HW,getDefaultCalendar:()=>W.a7,getDefaultsFromConfigSchema:()=>_,getDynamicOfflineDataEntries:()=>I.FE,getDynamicOfflineDataEntriesFor:()=>I.WA,getDynamicOfflineDataHandlers:()=>I.qb,getExtensionConfig:()=>o.UY,getExtensionConfigFromExtensionSlotStore:()=>o.g$,getExtensionConfigFromStore:()=>o.P0,getExtensionInternalStore:()=>m.a9,getExtensionNameFromId:()=>m.ES,getExtensionRegistration:()=>m.Tj,getExtensionRegistrationFrom:()=>m.xg,getExtensionSlotConfig:()=>o.G9,getExtensionSlotConfigFromStore:()=>o.vu,getExtensionSlotsConfigStore:()=>o.YP,getExtensionStore:()=>m.zF,getExtensionsConfigStore:()=>o.GI,getFeatureFlag:()=>d.jj,getFhirServerPaginationHandlers:()=>$.mw,getFullSynchronizationItems:()=>I.C$,getFullSynchronizationItemsFor:()=>I.xc,getGlobalStore:()=>M.jf,getGroupByWindowName:()=>m.o1,getHistory:()=>E.JK,getLifecycle:()=>$.JK,getLocale:()=>B.J,getLocations:()=>i.Vs,getLoggedInUser:()=>n.xC,getModalRegistration:()=>m.Fg,getOfflineDb:()=>I.e,getOfflinePatientDataStore:()=>I.WK,getOfflineSynchronizationStore:()=>I.LM,getOmrsServiceWorker:()=>I.Rs,getOpenedWindowIndexByWorkspace:()=>m.YX,getPatientName:()=>V.Vp,getPromptBeforeClosingFcn:()=>G.OeE,getSessionLocation:()=>n.Kx,getSessionStore:()=>n.EW,getStartedVisit:()=>i.DK,getSyncLifecycle:()=>$.g9,getSynchronizationItem:()=>I.Gp,getSynchronizationItems:()=>I.pb,getSynchronizationItemsFor:()=>I.Io,getTranslationOverrides:()=>o.td,getVisitStore:()=>i.BX,getVisitTypes:()=>i.Pu,getVisitsForPatient:()=>i.BR,getWindowByWorkspaceName:()=>m.Ml,getWorkspaceGroupRegistration:()=>m.Q_,getWorkspaceGroupStore:()=>G.e_T,getWorkspaceRegistration:()=>m.Xb,getWorkspaceStore:()=>G.XzH,goBackInHistory:()=>E.tA,iconIds:()=>G.kE8,implementerToolsConfigStore:()=>o.tN,importDynamic:()=>s.rL,inRange:()=>o.r4,integrateBreakpoints:()=>G.WMK,interpolateString:()=>E.zl,interpolateUrl:()=>E.JG,isDesktop:()=>$.xl,isDevEnabled:()=>n.L7,isOfflineUuid:()=>I.bO,isOmrsDateStrict:()=>W.hl,isOmrsDateToday:()=>W.vU,isOnline:()=>H.s,isOpenmrsAppRoutes:()=>F,isOpenmrsRoutes:()=>k,isUrl:()=>o.gU,isUrlWithTemplateParameters:()=>o.qG,isVersionSatisfied:()=>J,jsep:()=>c.PQ,launchWorkspace:()=>G.TC2,launchWorkspace2:()=>G.pTx,launchWorkspaceGroup:()=>G.aN0,launchWorkspaceGroup2:()=>G.GYk,leftNavStore:()=>m.Gp,loadLifeCycles:()=>S.o,localStorageRoutesPrefix:()=>O,makeUrl:()=>n.Gm,messageOmrsServiceWorker:()=>I.ms,navigate:()=>E.oo,navigateAndLaunchWorkspace:()=>G.Fmw,offlineUuidPrefix:()=>I.jU,omrsOfflineCachingStrategyHttpHeaderName:()=>I.JC,omrsOfflineResponseBodyHttpHeaderName:()=>I.UH,omrsOfflineResponseStatusHttpHeaderName:()=>I.Gj,oneOf:()=>o.yL,openmrsComponentDecorator:()=>$.F7,openmrsFetch:()=>n.lo,openmrsObservableFetch:()=>n.ut,parseDate:()=>W._U,pictogramIds:()=>G.vJW,preloadImport:()=>s.zC,processConfig:()=>o.mq,promptBeforeClosing:()=>G.F3N,promptForClosingWorkspaces:()=>G.hLN,provide:()=>o.Gt,putDynamicOfflineData:()=>I.yD,putDynamicOfflineDataFor:()=>I.ff,queueSynchronizationItem:()=>I.Zr,queueSynchronizationItemFor:()=>I.Iq,refetchCurrentUser:()=>n.yH,registerApp:()=>w,registerBreadcrumb:()=>E.vf,registerBreadcrumbs:()=>E.MY,registerDefaultCalendar:()=>W.XE,registerExtension:()=>m.VK,registerExtensionSlot:()=>m.FY,registerFeatureFlag:()=>d.uA,registerGlobalStore:()=>M.CE,registerModal:()=>m.Ju,registerModuleLoad:()=>o.kl,registerModuleWithConfigSystem:()=>o.FL,registerOfflinePatientHandler:()=>I.KG,registerOmrsServiceWorker:()=>I.sZ,registerTranslationNamespace:()=>o.GV,registerWorkspace:()=>m.pm,registerWorkspaceGroup:()=>m.io,registerWorkspaceGroups2:()=>m.rD,registerWorkspaceWindows2:()=>m.Qb,registerWorkspaces2:()=>m.Uh,removeDynamicOfflineData:()=>I.NU,removeDynamicOfflineDataFor:()=>I.wn,removeRoutesOverride:()=>C,renderActionableNotifications:()=>G.zfR,renderExtension:()=>m.wG,renderInlineNotifications:()=>G.CU$,renderLoadingSpinner:()=>G.uWG,renderSnackbars:()=>G.ZLm,renderToasts:()=>G.f1b,renderWorkspaceWindowsAndMenu:()=>G.jCr,reportError:()=>a.N,reset:()=>m.cL,resetAllRoutesOverrides:()=>x,resetWorkspaceStore:()=>G._1W,restBaseUrl:()=>n.Jj,retry:()=>Q,runSynchronization:()=>I.AO,saveVisit:()=>i.Ds,selectPreferredName:()=>V.VO,sessionEndpoint:()=>n.Ct,sessionStore:()=>n.eA,setCurrentOfflineMode:()=>I.Og,setCurrentVisit:()=>i.NH,setFeatureFlag:()=>d.B4,setLeftNav:()=>m.Vx,setSessionLocation:()=>n.Gp,setUserLanguage:()=>n.E4,setUserProperties:()=>n.Fi,setupApiModule:()=>n.Y0,setupDynamicOfflineDataHandler:()=>I.iD,setupHistory:()=>E.Wh,setupModals:()=>G.EPe,setupOfflineSync:()=>I.cy,shallowEqual:()=>X.b,showActionableNotification:()=>G.ZyP,showModal:()=>G.toY,showNotification:()=>G.Dsh,showSnackbar:()=>G.tdF,showToast:()=>G.P0c,showWorkspacePrompts:()=>G.ctS,slugify:()=>s.Yv,subscribeActionableNotificationShown:()=>g.bK,subscribeConnectivity:()=>g.sT,subscribeConnectivityChanged:()=>g.gj,subscribeNotificationShown:()=>g.bJ,subscribePrecacheStaticDependencies:()=>g.ff,subscribeSnackbarShown:()=>g.ls,subscribeTo:()=>M.i7,subscribeToFeatureFlag:()=>d.sM,subscribeToastShown:()=>g.dX,syncAllDynamicOfflineData:()=>I.Td,syncDynamicOfflineData:()=>I.u1,syncOfflinePatientData:()=>I.sK,temporaryConfigStore:()=>o.H,toDateObjectStrict:()=>W.kQ,toLocationObject:()=>i.E$,toOmrsIsoString:()=>W.l0,toVisitTypeObject:()=>i.Qx,translateFrom:()=>j.t,tryRegisterExtension:()=>A,unsetLeftNav:()=>m.sr,updateInternalExtensionStore:()=>m.DQ,updateVisit:()=>i.xL,updateWorkspaceWindowState:()=>G._RD,useAbortController:()=>$.Ie,useAppContext:()=>$.Us,useAssignedExtensionIds:()=>$.Tt,useAssignedExtensions:()=>$.CX,useAttachments:()=>$._9,useBodyScrollLock:()=>$.yJ,useConfig:()=>$.UK,useConnectedExtensions:()=>$.zD,useConnectivity:()=>$.Fx,useDebounce:()=>$.d7,useDefineAppContext:()=>$.jn,useEmrConfiguration:()=>$.E4,useExtensionInternalStore:()=>$.$B,useExtensionSlot:()=>$.br,useExtensionSlotMeta:()=>$.Wq,useExtensionSlotStore:()=>$.uL,useExtensionStore:()=>$.Gz,useFeatureFlag:()=>$.u,useFhirFetchAll:()=>$.oq,useFhirInfinite:()=>$.vL,useFhirPagination:()=>$.to,useForceUpdate:()=>$.CH,useLayoutType:()=>$.qv,useLeftNav:()=>$.if,useLeftNavStore:()=>$.TA,useLocations:()=>$.kH,useOnClickOutside:()=>$.Wr,useOnVisible:()=>$.Jm,useOpenmrsFetchAll:()=>$.Bf,useOpenmrsInfinite:()=>$.iy,useOpenmrsPagination:()=>$.Ed,useOpenmrsSWR:()=>$.M3,usePagination:()=>$.WQ,usePatient:()=>$.tQ,usePatientPhoto:()=>G.R9n,usePrimaryIdentifierCode:()=>$.wJ,useRenderableExtensions:()=>$.oU,useSession:()=>$.wV,useStore:()=>$.Pj,useStoreWithActions:()=>$.mQ,useVisit:()=>$.fq,useVisitContextStore:()=>$.xH,useVisitTypes:()=>$.wr,useWorkspace2Store:()=>G.AkA,useWorkspaces:()=>G.CH0,userHasAccess:()=>n.st,validator:()=>o.Nc,validators:()=>o.y$,workspace2Store:()=>m.J_,workspaceStore:()=>G.x9q});var n=r(5625),o=r(95819),s=r(47709),i=r(34945),a=r(60937),c=r(87440),l=r(19758),p=r(89987);function u(e){if(!("string"==typeof e||"object"==typeof e&&e&&"type"in e))throw`Unknown expression type ${e}. Expressions must either be a string or pre-compiled string.`;const t=(r=p.f,{globals:{...r},isLocalExpression:!1,variables:new Set});var r;return f("string"==typeof e?(0,l.A)(e):e,t),[...t.variables]}function f(e,t){switch(e.type){case"UnaryExpression":return function(e,t){return f(e.argument,t)}(e,t);case"BinaryExpression":return function(e,t){return[f(e.left,t),f(e.right,t)].filter(Boolean)}(e,t);case"ConditionalExpression":return function(e,t){return[f(e.consequent,t),f(e.test,t),f(e.alternate,t)].filter(Boolean)}(e,t);case"CallExpression":return function(e,t){const r=f(e.callee,t);return e.arguments?.map(h(t)),r}(e,t);case"ArrowFunctionExpression":return function(e,t){const r={...t};r.isLocalExpression=!0;const n=e.params?.map(h(r))??[],o=f(e.body,r)??[];if(o&&Array.isArray(o))for(const e of o)n.includes(e)||t.variables.add(e)}(e,t);case"MemberExpression":return function(e,t){f(e.object,t);const r={...t};r.isLocalExpression=!0,f(e.property,r)}(e,t);case"ArrayExpression":return function(e,t){e.elements?.map(h(t))}(e,t);case"SequenceExpression":return function(e,t){e.expressions?.map(h(t))}(e,t);case"NewExpression":return function(e,t){e.arguments?.map(h(t))}(e,t);case"Literal":case"TemplateElement":return;case"Identifier":return function(e,t){if(!(e.name in t.globals)){if(t.isLocalExpression)return e.name;t.variables.add(e.name)}}(e,t);case"TemplateLiteral":return function(e,t){e.expressions?.map(h(t)),e.quasis?.map(h(t))}(e,t);default:throw`Expression evaluator does not support expression of type '${e.type}'`}}function h(e){return function(t){return null===t?null:f(t,e)}}var m=r(78910),d=r(76110),g=r(23184),E=r(11305),I=r(39644),$=r(58379);const O="openmrs-routes:";var y=r(74730),S=r(55226);function A(e,t){const r=t.name;if(!r)return void console.error(`An extension definition in ${e} is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nextension definition.`,t);t.slots&&t.slot&&console.warn(`The extension ${r} from ${e} declares both a 'slots' property and\na 'slot' property. Only the 'slots' property will be honored.`);const n=t.slots?t.slots:t.slot?[t.slot]:[];if(t.component){(0,m.VK)({name:r,load:()=>(0,S.o)(e,t.component),meta:t.meta||{},order:t.order,moduleName:e,privileges:t.privileges,online:t.online??!0,offline:t.offline??!1,featureFlag:t.featureFlag});for(const e of n)(0,m.K0)(e,r)}else console.error(`The extension ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the extension definition.`,t)}const R=[];function v(e){if(Array.isArray(e)){const t=e.map(v);return e=>t.some((t=>t(e)))}return"string"==typeof e?(0,y.pathToActiveWhen)(window.getOpenmrsSpaBase()+e):e instanceof RegExp?t=>function(e,t){return e.test(t.pathname.replace(window.getOpenmrsSpaBase(),""))}(e,t):()=>e}function w(e,t){if(e&&t&&"object"==typeof t){(0,o.FL)(e);const n=t.extensions??[],s=t.modals??[],i=t.workspaces??[],a=t.workspaceGroups??[],c=t.featureFlags??[],l=t.workspaceGroups2??[],p=t.workspaceWindows2??[],u=t.workspaces2??[];t.pages?.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"component")&&(Object.hasOwn(t,"route")||Object.hasOwn(t,"routeRegex")||Object.hasOwn(t,"routes"))?R.push({...t,appName:e}):console.warn(`A page for ${e} could not be registered as it does not appear to have the required properties`,t)})),n.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?A(e,t):console.warn(`An extension for ${e} could not be registered as it does not appear to have the required properties`,t)})),s.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){const r=t.name;r?t.component?(0,m.Ju)({name:r,moduleName:e,load:()=>(0,S.o)(e,t.component)}):console.error(`The modal ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the modal definition.`,t):console.error(`A modal definition in ${e} is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nmodal definition.`,t)}(e,t):console.warn(`A modal for ${e} could not be registered as it does not appear to have the required properties`,t)})),i.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){const r=t.name;if(!r)return void console.error(`A workspace definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.`,t);const n=t.title;if(n)if(t.component){(0,m.pm)({name:r,title:n,component:t.component,moduleName:e,type:t.type,canHide:t.canHide,canMaximize:t.canMaximize,width:t.width,preferredWindowSize:t.preferredWindowSize,groups:t.groups,load:()=>(0,S.o)(e,t.component)});for(const e of t.groups||[])(0,m.io)({name:e,members:[r]})}else console.error(`The workspace ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the workspace definition.`,t);else console.error(`A workspace definition in ${e} is missing a title and thus cannot be registered.\nTo fix this, ensure that you define the "title" field inside the workspace definition.`,t)}(e,t):console.warn(`A workspace for ${e} could not be registered as it does not appear to have the required properties`,t)})),a.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")?function(e,t){const r=t.name;r?(0,m.io)({name:r,members:t.members??[]}):console.error(`A workspace group definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.`,t)}(e,t):console.warn(`A workspace group for ${e} could not be registered as it does not appear to have the required properties`,t)})),r=l,(0,m.rD)(r),function(e,t){(0,m.Qb)(e,t)}(e,p),function(e,t){(0,m.Uh)(e,t)}(e,u),c.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"flagName")?function(e,t){t.flagName?t.label?t.description?(0,d.uA)(t.flagName,t.label,t.description):console.error(`A feature flag definition in ${e} is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "description" field inside the feature flag definition.`,t):console.error(`A feature flag definition in ${e} is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "label" field inside the feature flag definition.`,t):console.error(`A feature flag definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the feature flag definition.`,t)}(e,t):console.warn(`A feature flag for ${e} could not be registered as it does not appear to have the required properties`,t)}))}var r}function N(){R.sort(((e,t)=>e.appName.localeCompare(t.appName,"en")));let e=new Map;for(let t of R){e.has(t.appName)?e.set(t.appName,e.get(t.appName)+1):e.set(t.appName,0);const r=e.get(t.appName),n=`${t.appName}-page-${r}`,o=t.containerDomId??"omrs-apps-container",s=document.getElementById(o),i=`single-spa-application:${n}`;if(!s)throw new Error(`${t.appName} ${t.component} cannot be mounted to "${o}"; DOM element does not exist.`);{const e=document.createElement("div");e.id=i,s?.appendChild(e)}T(n,t)}}function T(e,t){const r=void 0!==t.route?t.route:void 0!==t.routeRegex&&new RegExp(t.routeRegex);if(!1===r)return void console.warn('A registered page definition is missing a route and thus cannot be registered.\nTo fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.',e);if(!t.component)return void console.warn('A registered page definition is missing a component and thus cannot be registered.\nTo fix this, ensure that you define the "component" field inside the page definition.',e);const n=function(e,{online:t,offline:r,featureFlag:n}){return window.offlineEnabled?o=>!!(navigator.onLine&&(t??1)||!navigator.onLine&&r)&&!(n&&!(0,d.jj)(n))&&e(o):e}(v(r),t);(0,y.registerApplication)(e,(()=>(0,S.o)(t.appName,t.component)),n)}function L(e=window.localStorage){try{return e.getItem("test"),!0}catch{return!1}}const b=L();function P(e,t){if(b){if("string"==typeof t){if(t.startsWith("http"))return D(e,t);try{const r=JSON.parse(t);if(F(r))return D(e,r);console.error(`The supplied routes for ${e} is not a valid OpenmrsAppRoutes object`,t)}catch(t){console.error(`Could not add routes override for ${e}: `,t)}}else{if(t instanceof URL)return D(e,t.toString());if(F(t))return D(e,t)}console.error(`Override for ${e} is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL`,t)}}function C(e){if(!b)return;const t=O+e;localStorage.removeItem(t)}function x(){if(!b)return;const e=window.localStorage;for(let t=0;t<e.length;t++){const r=e.key(t);r?.startsWith(O)&&e.removeItem(r)}}function D(e,t){const r=O+e;localStorage.setItem(r,JSON.stringify(t))}function F(e){if(e&&"object"==typeof e){const t=Object.prototype.hasOwnProperty,r=e;return!!((!t.call(e,"pages")||Boolean(r.pages)&&Array.isArray(r.pages))&&(!t.call(e,"extensions")||Boolean(r.extensions)&&Array.isArray(r.extensions))&&(!t.call(e,"workspaces")||Boolean(r.workspaces)&&Array.isArray(r.workspaces))&&(!t.call(e,"modals")||Boolean(r.modals)&&Array.isArray(r.modals)))}return!1}function k(e){if(e&&"object"==typeof e){const t=e;return Object.entries(t).every((([e,t])=>"string"==typeof e&&F(t)))}return!1}var M=r(22337),G=r(21568),j=r(7661),U=r(2545),W=r(6519),B=r(4617),H=r(52834),V=r(59591),X=r(27388);function _(e){let t={};for(let r of Object.keys(e))if(z(e[r])&&e[r].hasOwnProperty("_default"))t[r]=e[r]._default;else{if(r.startsWith("_"))continue;z(e[r])?t[r]=_(e[r]):t[r]=e[r]}return t}function z(e){return!!e&&e.constructor===Object}var q=r(15934);function Y(e){const[t,r,n]=e.split(".");return`${t}.${r}.${n}`}function J(e,t){const r=function(e){const t=e.indexOf("-");return t>=0?`${Y(e.slice(0,t))}-${e.slice(t+1)}`:Y(e)}(t);return q.satisfies(r,e,{includePrerelease:!0})}async function Q(e,t={}){let{shouldRetry:r,getDelay:n,onError:o}=t;r=r??(e=>function(e){return e<=5}(e)),n=n??(e=>function(e,t,r=!1){const n=r?e+1:e;return 1e3*Math.pow(2,n)}(e));let s,i=0;do{try{return await K(n(i)),await e()}catch(e){o?.(e,i),s=e}}while(r(i++));throw s}async function K(e){if(!(e<=0))return new Promise((t=>setTimeout(t,e)))}},57705:(e,t,r)=>{const n=r(29306),{MAX_LENGTH:o,MAX_SAFE_INTEGER:s}=r(86891),{re:i,t:a}=r(79413),{compareIdentifiers:c}=r(83610);class l{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?i[a.LOOSE]:i[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<s)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=l},59980:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>0===n(e,t,r)},65796:(e,t,r)=>{const n=r(57705),o=r(16632),s=r(5717);e.exports=(e,t)=>{e=new o(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t)e.set[t].forEach((e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!s(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));return r&&e.test(r)?r:null}},69168:(e,t,r)=>{const n=r(40663);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},75488:(e,t,r)=>{const n=r(82463);e.exports=(e,t)=>n(e,t,!0)},75581:(e,t,r)=>{const n=r(57705);e.exports=(e,t)=>new n(e,t).minor},79413:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n}=r(86891),o=r(29306),s=(t=e.exports={}).re=[],i=t.src=[],a=t.t={};let c=0;const l=(e,t,r)=>{const n=c++;o(n,t),a[e]=n,i[n]=t,s[n]=new RegExp(t,r?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${i[a.NUMERICIDENTIFIER]}|${i[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${i[a.NUMERICIDENTIFIERLOOSE]}|${i[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${i[a.PRERELEASEIDENTIFIER]}(?:\\.${i[a.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${i[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[a.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${i[a.BUILDIDENTIFIER]}(?:\\.${i[a.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${i[a.MAINVERSION]}${i[a.PRERELEASE]}?${i[a.BUILD]}?`),l("FULL",`^${i[a.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${i[a.MAINVERSIONLOOSE]}${i[a.PRERELEASELOOSE]}?${i[a.BUILD]}?`),l("LOOSE",`^${i[a.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${i[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${i[a.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:${i[a.PRERELEASE]})?${i[a.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:${i[a.PRERELEASELOOSE]})?${i[a.BUILD]}?)?)?`),l("XRANGE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",i[a.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${i[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${i[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${i[a.LONECARET]}${i[a.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${i[a.LONECARET]}${i[a.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${i[a.GTLT]}\\s*(${i[a.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]}|${i[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${i[a.XRANGEPLAIN]})\\s+-\\s+(${i[a.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${i[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[a.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},80483:(e,t,r)=>{const n=r(16632),{ANY:o}=r(43473),s=r(94753),i=r(82463),a=(e,t,r)=>{if(1===e.length&&e[0].semver===o)return 1===t.length&&t[0].semver===o;const n=new Set;let a,p,u,f,h,m,d;for(const t of e)">"===t.operator||">="===t.operator?a=c(a,t,r):"<"===t.operator||"<="===t.operator?p=l(p,t,r):n.add(t.semver);if(n.size>1)return null;if(a&&p){if(u=i(a.semver,p.semver,r),u>0)return null;if(0===u&&(">="!==a.operator||"<="!==p.operator))return null}for(const e of n){if(a&&!s(e,String(a),r))return null;if(p&&!s(e,String(p),r))return null;for(const n of t)if(!s(e,String(n),r))return!1;return!0}for(const e of t){if(d=d||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,a)if(">"===e.operator||">="===e.operator){if(f=c(a,e,r),f===e)return!1}else if(">="===a.operator&&!s(a.semver,String(e),r))return!1;if(p)if("<"===e.operator||"<="===e.operator){if(h=l(p,e,r),h===e)return!1}else if("<="===p.operator&&!s(p.semver,String(e),r))return!1;if(!e.operator&&(p||a)&&0!==u)return!1}return!(a&&m&&!p&&0!==u||p&&d&&!a&&0!==u)},c=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r)=>{e=new n(e,r),t=new n(t,r);let o=!1;e:for(const n of e.set){for(const e of t.set){const t=a(n,e,r);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}},82367:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>n(t,e,r)},82463:(e,t,r)=>{const n=r(57705);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},83610:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),o=t.test(r);return n&&o&&(e=+e,r=+r),e===r?0:n&&!o?-1:o&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},86859:(e,t,r)=>{const n=r(20650);e.exports=(e,t,r)=>n(e,t,"<",r)},86891:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},89414:(e,t,r)=>{const n=r(20650);e.exports=(e,t,r)=>n(e,t,">",r)},94568:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>0!==n(e,t,r)},94753:(e,t,r)=>{const n=r(16632);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},95419:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>n(e,t,r)<=0},99481:(e,t,r)=>{const n=r(57705),o=r(16632);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new n(s,r)))})),s}}}]);
1
+ (globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[5670],{3026:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>n(e,t,r)<0},4782:(e,t,r)=>{const n=r(40663);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},5717:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>n(e,t,r)>0},5950:(e,t,r)=>{const n=r(57705);e.exports=(e,t,r)=>{const o=new n(e,r),s=new n(t,r);return o.compare(s)||o.compareBuild(s)}},6995:(e,t,r)=>{const n=r(57705),o=r(16632);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new n(s,r)))})),s}},7416:(e,t,r)=>{const n=r(59980),o=r(94568),s=r(5717),i=r(36102),a=r(3026),c=r(95419);e.exports=(e,t,r,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,l);case"!=":return o(e,r,l);case">":return s(e,r,l);case">=":return i(e,r,l);case"<":return a(e,r,l);case"<=":return c(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},7566:(e,t,r)=>{const n=r(5950);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},15934:(e,t,r)=>{const n=r(79413);e.exports={re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r(86891).SEMVER_SPEC_VERSION,SemVer:r(57705),compareIdentifiers:r(83610).compareIdentifiers,rcompareIdentifiers:r(83610).rcompareIdentifiers,parse:r(40663),valid:r(4782),clean:r(26669),inc:r(29384),diff:r(36609),major:r(41529),minor:r(75581),patch:r(29558),prerelease:r(69168),compare:r(82463),rcompare:r(82367),compareLoose:r(75488),compareBuild:r(5950),sort:r(52142),rsort:r(7566),gt:r(5717),lt:r(3026),eq:r(59980),neq:r(94568),gte:r(36102),lte:r(95419),cmp:r(7416),coerce:r(22059),Comparator:r(43473),Range:r(16632),satisfies:r(94753),toComparators:r(31752),maxSatisfying:r(6995),minSatisfying:r(99481),minVersion:r(65796),validRange:r(54623),outside:r(20650),gtr:r(89414),ltr:r(86859),intersects:r(25995),simplifyRange:r(46290),subset:r(80483)}},16632:(e,t,r)=>{class n{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=this.options.loose;e=e.trim();const r=t?a[c.HYPHENRANGELOOSE]:a[c.HYPHENRANGE];e=e.replace(r,A(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(a[c.COMPARATORTRIM],l),s("comparator trim",e,a[c.COMPARATORTRIM]),e=(e=(e=e.replace(a[c.TILDETRIM],p)).replace(a[c.CARETTRIM],u)).split(/\s+/).join(" ");const n=t?a[c.COMPARATORLOOSE]:a[c.COMPARATOR];return e.split(" ").map((e=>h(e,this.options))).join(" ").split(/\s+/).map((e=>S(e,this.options))).filter(this.options.loose?e=>!!e.match(n):()=>!0).map((e=>new o(e,this.options)))}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>f(r,t)&&e.set.some((e=>f(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(R(this.set[t],e,this.options))return!0;return!1}}e.exports=n;const o=r(43473),s=r(29306),i=r(57705),{re:a,t:c,comparatorTrimReplace:l,tildeTrimReplace:p,caretTrimReplace:u}=r(79413),f=(e,t)=>{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every((e=>o.intersects(e,t))),o=n.pop();return r},h=(e,t)=>(s("comp",e,t),e=E(e,t),s("caret",e),e=d(e,t),s("tildes",e),e=$(e,t),s("xrange",e),e=y(e,t),s("stars",e),e),m=e=>!e||"x"===e.toLowerCase()||"*"===e,d=(e,t)=>e.trim().split(/\s+/).map((e=>g(e,t))).join(" "),g=(e,t)=>{const r=t.loose?a[c.TILDELOOSE]:a[c.TILDE];return e.replace(r,((t,r,n,o,i)=>{let a;return s("tilde",e,t,r,n,o,i),m(r)?a="":m(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:m(o)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:i?(s("replaceTilde pr",i),a=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,s("tilde return",a),a}))},E=(e,t)=>e.trim().split(/\s+/).map((e=>I(e,t))).join(" "),I=(e,t)=>{s("caret",e,t);const r=t.loose?a[c.CARETLOOSE]:a[c.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,o,i,a)=>{let c;return s("caret",e,t,r,o,i,a),m(r)?c="":m(o)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:m(i)?c="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===r?"0"===o?`>=${r}.${o}.${i}-${a} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}-${a} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i}-${a} <${+r+1}.0.0-0`):(s("no pr"),c="0"===r?"0"===o?`>=${r}.${o}.${i}${n} <${r}.${o}.${+i+1}-0`:`>=${r}.${o}.${i}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${i} <${+r+1}.0.0-0`),s("caret return",c),c}))},$=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>{e=e.trim();const r=t.loose?a[c.XRANGELOOSE]:a[c.XRANGE];return e.replace(r,((r,n,o,i,a,c)=>{s("xRange",e,r,n,o,i,a,c);const l=m(o),p=l||m(i),u=p||m(a),f=u;return"="===n&&f&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&f?(p&&(i=0),a=0,">"===n?(n=">=",p?(o=+o+1,i=0,a=0):(i=+i+1,a=0)):"<="===n&&(n="<",p?o=+o+1:i=+i+1),"<"===n&&(c="-0"),r=`${n+o}.${i}.${a}${c}`):p?r=`>=${o}.0.0${c} <${+o+1}.0.0-0`:u&&(r=`>=${o}.${i}.0${c} <${o}.${+i+1}.0-0`),s("xRange return",r),r}))},y=(e,t)=>(s("replaceStars",e,t),e.trim().replace(a[c.STAR],"")),S=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),A=e=>(t,r,n,o,s,i,a,c,l,p,u,f,h)=>`${r=m(n)?"":m(o)?`>=${n}.0.0${e?"-0":""}`:m(s)?`>=${n}.${o}.0${e?"-0":""}`:i?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=m(l)?"":m(p)?`<${+l+1}.0.0-0`:m(u)?`<${l}.${+p+1}.0-0`:f?`<=${l}.${p}.${u}-${f}`:e?`<${l}.${p}.${+u+1}-0`:`<=${c}`}`.trim(),R=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(s(e[r].semver),e[r].semver!==o.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},20650:(e,t,r)=>{const n=r(57705),o=r(43473),{ANY:s}=o,i=r(16632),a=r(94753),c=r(5717),l=r(3026),p=r(95419),u=r(36102);e.exports=(e,t,r,f)=>{let h,m,d,g,E;switch(e=new n(e,f),t=new i(t,f),r){case">":h=c,m=p,d=l,g=">",E=">=";break;case"<":h=l,m=u,d=c,g="<",E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,f))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let i=null,a=null;if(n.forEach((e=>{e.semver===s&&(e=new o(">=0.0.0")),i=i||e,a=a||e,h(e.semver,i.semver,f)?i=e:d(e.semver,a.semver,f)&&(a=e)})),i.operator===g||i.operator===E)return!1;if((!a.operator||a.operator===g)&&m(e,a.semver))return!1;if(a.operator===E&&d(e,a.semver))return!1}return!0}},22059:(e,t,r)=>{const n=r(57705),o=r(40663),{re:s,t:i}=r(79413);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=s[i.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),s[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;s[i.COERCERTL].lastIndex=-1}else r=e.match(s[i.COERCE]);return null===r?null:o(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},25995:(e,t,r)=>{const n=r(16632);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t))},26669:(e,t,r)=>{const n=r(40663);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},29306:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},29384:(e,t,r)=>{const n=r(57705);e.exports=(e,t,r,o)=>{"string"==typeof r&&(o=r,r=void 0);try{return new n(e,r).inc(t,o).version}catch(e){return null}}},29558:(e,t,r)=>{const n=r(57705);e.exports=(e,t)=>new n(e,t).patch},31752:(e,t,r)=>{const n=r(16632);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},36102:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>n(e,t,r)>=0},36609:(e,t,r)=>{const n=r(40663),o=r(59980);e.exports=(e,t)=>{if(o(e,t))return null;{const r=n(e),o=n(t),s=r.prerelease.length||o.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==o[e])return i+e;return a}}},40663:(e,t,r)=>{const{MAX_LENGTH:n}=r(86891),{re:o,t:s}=r(79413),i=r(57705);e.exports=(e,t)=>{if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>n)return null;if(!(t.loose?o[s.LOOSE]:o[s.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}},41529:(e,t,r)=>{const n=r(57705);e.exports=(e,t)=>new n(e,t).major},43473:(e,t,r)=>{const n=Symbol("SemVer ANY");class o{static get ANY(){return n}constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?s[i.COMPARATORLOOSE]:s[i.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return a(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new p(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new p(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),s=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),c=a(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=a(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||s&&i||c||l}}e.exports=o;const{re:s,t:i}=r(79413),a=r(7416),c=r(29306),l=r(57705),p=r(16632)},46290:(e,t,r)=>{const n=r(94753),o=r(82463);e.exports=(e,t,r)=>{const s=[];let i=null,a=null;const c=e.sort(((e,t)=>o(e,t,r)));for(const e of c)n(e,t,r)?(a=e,i||(i=e)):(a&&s.push([i,a]),a=null,i=null);i&&s.push([i,null]);const l=[];for(const[e,t]of s)e===t?l.push(e):t||e!==c[0]?t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const p=l.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return p.length<u.length?p:t}},52142:(e,t,r)=>{const n=r(5950);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},54623:(e,t,r)=>{const n=r(16632);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},55670:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ActionMenu:()=>G.WyE,ActionMenuButton:()=>G.EDM,ActionMenuButton2:()=>G.Wjo,ActionableNotificationComponent:()=>G.drd,ActivityIcon:()=>G.npY,AddIcon:()=>G.REV,AllergiesIcon:()=>G.UgN,AppointmentsAltPictogram:()=>G.MnZ,AppointmentsPictogram:()=>G.B1u,ArrowDownIcon:()=>G.ZLN,ArrowLeftIcon:()=>G.A60,ArrowRightIcon:()=>G.flY,ArrowUpIcon:()=>G.Kpk,Assessment1Pictogram:()=>G.IHy,Assessment2Pictogram:()=>G.$iy,AttachmentIcon:()=>G.PtA,BabyIcon:()=>G.qYP,BloodBankPictogram:()=>G.nvs,Breakpoint:()=>G.EA,CalendarHeatMapIcon:()=>G.mmM,CalendarIcon:()=>G.CTc,CardiologyPictogram:()=>G.uU$,CaretDownIcon:()=>G.bDP,CaretLeftIcon:()=>G.eCO,CaretRightIcon:()=>G.JJd,CaretUpIcon:()=>G.SwV,ChartAverageIcon:()=>G.ZHE,CheckmarkFilledIcon:()=>G.FtQ,CheckmarkOutlineIcon:()=>G.pm$,ChemistryIcon:()=>G.W4t,ChevronDownIcon:()=>G.D3D,ChevronLeftIcon:()=>G.YJP,ChevronRightIcon:()=>G.vKP,ChevronUpIcon:()=>G.Mtm,CloseFilledIcon:()=>G.oCk,CloseIcon:()=>G.USm,CloseOutlineIcon:()=>G.Wdn,ComponentContext:()=>$.zq,ConditionsIcon:()=>G.ci3,ConfigurableLink:()=>$.i_,CtScanPictogram:()=>G.DeE,CustomOverflowMenu:()=>G.TQT,DashboardExtension:()=>G.cJN,DentistryPictogram:()=>G.TNY,DiagnosisTags:()=>G.Fzf,DocumentAttachmentIcon:()=>G.Ce6,DocumentIcon:()=>G.pyG,DownloadIcon:()=>G.s3U,DrugOrderIcon:()=>G.uqj,EditIcon:()=>G.qUP,EmergencyDepartmentPictogram:()=>G.sgv,ErrorState:()=>G.W5n,EventScheduleIcon:()=>G.XaH,EventsIcon:()=>G.Jc,Extension:()=>$.YY,ExtensionSlot:()=>$.W3,FacilityPictogram:()=>G.ECF,GenderFemaleIcon:()=>G.XB2,GenderMaleIcon:()=>G.szA,GenderOtherIcon:()=>G.hXZ,GenderUnknownIcon:()=>G.x1U,GenericOrderTypeIcon:()=>G.naI,GeriatricsPictogram:()=>G.SQq,GroupAccessIcon:()=>G.Pyy,GroupIcon:()=>G.nFg,GynaecologyPictogram:()=>G.owH,HomePictogram:()=>G.KKH,HospitalBedIcon:()=>G.jMM,Icon:()=>G.Int,ImageMedicalIcon:()=>G.Ix5,InPatientPictogram:()=>G.thS,InformationFilledIcon:()=>G._e_,InformationIcon:()=>G.uQc,InformationSquareIcon:()=>G.ZrL,InventoryManagementIcon:()=>G.vFG,LabOrderIcon:()=>G.hi6,LaboratoryPictogram:()=>G.ehn,Labs2Pictogram:()=>G.rpF,LeftNavMenu:()=>G.Ojh,ListCheckedIcon:()=>G.Rt$,LocationIcon:()=>G.BT6,LocationPicker:()=>G.MTs,MaterialOrderIcon:()=>G.zZ0,MaximizeIcon:()=>G._Xm,MaybeIcon:()=>G.oy0,MaybePictogram:()=>G.bmf,MedicationIcon:()=>G.Fnj,MessageQueueIcon:()=>G.uFu,MicroscopeIcon:()=>G.u4h,MoneyIcon:()=>G.yBj,MotherIcon:()=>G.XEq,MovementIcon:()=>G.lyJ,Notification:()=>G.Eg0,ObstetricsPictogram:()=>G.Bk2,OpenmrsAppContext:()=>$.p6,OpenmrsDatePicker:()=>G.rnR,OpenmrsDateRangePicker:()=>G.Yem,OpenmrsFetchError:()=>n.$f,OverflowMenuHorizontalIcon:()=>G.rv3,OverflowMenuVerticalIcon:()=>G.Rnm,PageHeader:()=>G.zYs,PageHeaderContent:()=>G.gpz,PasswordIcon:()=>G.BGy,PatientBannerActionsMenu:()=>G.k1U,PatientBannerContactDetails:()=>G.m5G,PatientBannerPatientIdentifiers:()=>G.XIV,PatientBannerPatientInfo:()=>G.zvf,PatientBannerToggleContactDetailsButton:()=>G.Qgu,PatientListsPictogram:()=>G.$2H,PatientPhoto:()=>G.yV,PatientSearchPictogram:()=>G.cxq,PatientsPictogram:()=>G.X25,PaymentsDeskPictogram:()=>G.dNG,PedestrianFamilyIcon:()=>G.PPo,PenIcon:()=>G.rZj,Pharmacy2Pictogram:()=>G.Q92,PharmacyPictogram:()=>G.w21,Pictogram:()=>G.bF1,PrinterIcon:()=>G.wwY,ProcedureOrderIcon:()=>G.H0x,ProgramsIcon:()=>G.lq$,RadiologyIcon:()=>G.SA3,ReferralOrderIcon:()=>G.tCH,RegistrationPictogram:()=>G.et7,RenderIfValueIsTruthy:()=>$.fS,RenewIcon:()=>G.JTN,ReportIcon:()=>G.cQD,ResetIcon:()=>G.NAP,ResponsiveWrapper:()=>G.KFv,SaveIcon:()=>G.LPu,SearchIcon:()=>G.WIv,ServiceQueuesPictogram:()=>G.Y21,SettingsIcon:()=>G.Zes,ShoppingCartAddItemIcon:()=>G.Uve,ShoppingCartArrowDownIcon:()=>G.Lfm,ShoppingCartIcon:()=>G.aJF,Snackbar:()=>G.qb_,StickyNoteAddIcon:()=>G.OC$,StockManagementPictogram:()=>G.q__,SwitcherIcon:()=>G.RFy,SyringeIcon:()=>G.hZg,TableIcon:()=>G.KbA,TableOfContentsIcon:()=>G.pYV,TimeIcon:()=>G.b1c,Toast:()=>G.y8,ToolsIcon:()=>G.dwU,TransferPictogram:()=>G.SKX,TranslateIcon:()=>G.SwB,TrashCanIcon:()=>G.EJV,TreeViewAltIcon:()=>G.MO4,TriagePictogram:()=>G.XHu,Type:()=>o.ZU,UserAvatarIcon:()=>G.yDT,UserFollowIcon:()=>G.osL,UserHasAccess:()=>$.qw,UserIcon:()=>G.nys,UserXrayIcon:()=>G.feL,ViewIcon:()=>G.tCQ,ViewOffIcon:()=>G.Oi_,VisitMode:()=>i.dx,VisitStatus:()=>i.Cj,WarningIcon:()=>G.id,Workspace2:()=>G.ozP,WorkspaceContainer:()=>G.XvC,WorkspaceNotification:()=>G.tMf,XrayPictogram:()=>G.B2u,activateOfflineCapability:()=>I.nr,addRoutesOverride:()=>P,age:()=>U.K,attach:()=>m.K0,attachmentUrl:()=>i.Zu,backendDependencies:()=>n.QE,beginEditSynchronizationItem:()=>I.FO,canAccessStorage:()=>L,canBeginEditSynchronizationItemsOfType:()=>I.xN,canCloseWorkspaceWithoutPrompting:()=>G.SvQ,cancelPrompt:()=>G.zlb,changeWorkspaceContext:()=>G.JKc,checkStatus:()=>m.dO,checkStatusFor:()=>m.Ef,cleanupObsoleteFeatureFlags:()=>d.D3,clearConfigErrors:()=>o.Nh,clearCurrentUser:()=>n.g$,clearHistory:()=>E.g4,closeAllWorkspaces:()=>G.G_3,closeWorkspace:()=>G.MJ8,closeWorkspaceGroup2:()=>G.biy,compile:()=>c.wE,configExtensionStore:()=>o.hs,configInternalStore:()=>o.Rt,convertToLocaleCalendar:()=>W.d4,createAttachment:()=>i.cD,createErrorHandler:()=>a.J,createGlobalStore:()=>M.Zd,createUseStore:()=>$.rr,defaultVisitCustomRepresentation:()=>i.Rb,defineConfigSchema:()=>o.T0,defineExtensionConfigSchema:()=>o.ks,deleteAttachmentPermanently:()=>i.SY,deleteSynchronizationItem:()=>I.lY,detach:()=>m.Yo,detachAll:()=>m.No,dispatchActionableNotificationShown:()=>g.LQ,dispatchConnectivityChanged:()=>g.Yt,dispatchNotificationShown:()=>g.FI,dispatchPrecacheStaticDependencies:()=>g.pc,dispatchSnackbarShown:()=>g.$3,dispatchToastShown:()=>g.Vt,displayName:()=>V.QC,esmStyleGuideSchema:()=>G.uQD,evaluate:()=>c._3,evaluateAsBoolean:()=>c.eb,evaluateAsBooleanAsync:()=>c.Gz,evaluateAsNumber:()=>c.dX,evaluateAsNumberAsync:()=>c.$F,evaluateAsType:()=>c.Sj,evaluateAsTypeAsync:()=>c.uN,evaluateAsync:()=>c.mv,extractVariableNames:()=>u,featureFlagsStore:()=>d.jX,fetchCurrentPatient:()=>i.hG,fhirBaseUrl:()=>n.IU,filterBreadcrumbs:()=>E.D_,finishRegisteringAllApps:()=>w,formatDate:()=>W.Yq,formatDatetime:()=>W.Rt,formatDuration:()=>W.a3,formatPartialDate:()=>W.LW,formatPatientName:()=>V.Qr,formatTime:()=>W.fU,formattedName:()=>V.qK,generateOfflineUuid:()=>I.sA,getAssignedExtensions:()=>m.zx,getAsyncExtensionLifecycle:()=>$.sc,getAsyncLifecycle:()=>$.ns,getAttachmentByUuid:()=>i.KU,getAttachments:()=>i.Bv,getBreadcrumbs:()=>E.lz,getBreadcrumbsFor:()=>E.qh,getConfig:()=>o.zj,getConfigStore:()=>o.IS,getCoreTranslation:()=>j.V,getCurrentImportMap:()=>s.Ln,getCurrentOfflineMode:()=>I.wJ,getCurrentUser:()=>n.HW,getDefaultCalendar:()=>W.a7,getDefaultsFromConfigSchema:()=>_,getDynamicOfflineDataEntries:()=>I.FE,getDynamicOfflineDataEntriesFor:()=>I.WA,getDynamicOfflineDataHandlers:()=>I.qb,getExtensionConfig:()=>o.UY,getExtensionConfigFromExtensionSlotStore:()=>o.g$,getExtensionConfigFromStore:()=>o.P0,getExtensionInternalStore:()=>m.a9,getExtensionNameFromId:()=>m.ES,getExtensionRegistration:()=>m.Tj,getExtensionRegistrationFrom:()=>m.xg,getExtensionSlotConfig:()=>o.G9,getExtensionSlotConfigFromStore:()=>o.vu,getExtensionSlotsConfigStore:()=>o.YP,getExtensionStore:()=>m.zF,getExtensionsConfigStore:()=>o.GI,getFeatureFlag:()=>d.jj,getFhirServerPaginationHandlers:()=>$.mw,getFullSynchronizationItems:()=>I.C$,getFullSynchronizationItemsFor:()=>I.xc,getGlobalStore:()=>M.jf,getGroupByWindowName:()=>m.o1,getHistory:()=>E.JK,getLifecycle:()=>$.JK,getLocale:()=>B.J,getLocations:()=>i.Vs,getLoggedInUser:()=>n.xC,getModalRegistration:()=>m.Fg,getOfflineDb:()=>I.e,getOfflinePatientDataStore:()=>I.WK,getOfflineSynchronizationStore:()=>I.LM,getOmrsServiceWorker:()=>I.Rs,getOpenedWindowIndexByWorkspace:()=>m.YX,getPatientName:()=>V.Vp,getPromptBeforeClosingFcn:()=>G.OeE,getRegisteredWorkspace2Names:()=>G.uBm,getSessionLocation:()=>n.Kx,getSessionStore:()=>n.EW,getStartedVisit:()=>i.DK,getSyncLifecycle:()=>$.g9,getSynchronizationItem:()=>I.Gp,getSynchronizationItems:()=>I.pb,getSynchronizationItemsFor:()=>I.Io,getTranslationOverrides:()=>o.td,getVisitStore:()=>i.BX,getVisitTypes:()=>i.Pu,getVisitsForPatient:()=>i.BR,getWindowByWorkspaceName:()=>m.Ml,getWorkspaceGroupRegistration:()=>m.Q_,getWorkspaceGroupStore:()=>G.e_T,getWorkspaceRegistration:()=>m.Xb,getWorkspaceStore:()=>G.XzH,goBackInHistory:()=>E.tA,iconIds:()=>G.kE8,implementerToolsConfigStore:()=>o.tN,importDynamic:()=>s.rL,inRange:()=>o.r4,integrateBreakpoints:()=>G.WMK,interpolateString:()=>E.zl,interpolateUrl:()=>E.JG,isDesktop:()=>$.xl,isDevEnabled:()=>n.L7,isOfflineUuid:()=>I.bO,isOmrsDateStrict:()=>W.hl,isOmrsDateToday:()=>W.vU,isOnline:()=>H.s,isOpenmrsAppRoutes:()=>F,isOpenmrsRoutes:()=>k,isUrl:()=>o.gU,isUrlWithTemplateParameters:()=>o.qG,isVersionSatisfied:()=>J,jsep:()=>c.PQ,launchWorkspace:()=>G.TC2,launchWorkspace2:()=>G.pTx,launchWorkspaceGroup:()=>G.aN0,launchWorkspaceGroup2:()=>G.GYk,leftNavStore:()=>m.Gp,loadLifeCycles:()=>S.o,localStorageRoutesPrefix:()=>O,makeUrl:()=>n.Gm,messageOmrsServiceWorker:()=>I.ms,navigate:()=>E.oo,navigateAndLaunchWorkspace:()=>G.Fmw,offlineUuidPrefix:()=>I.jU,omrsOfflineCachingStrategyHttpHeaderName:()=>I.JC,omrsOfflineResponseBodyHttpHeaderName:()=>I.UH,omrsOfflineResponseStatusHttpHeaderName:()=>I.Gj,oneOf:()=>o.yL,openmrsComponentDecorator:()=>$.F7,openmrsFetch:()=>n.lo,openmrsObservableFetch:()=>n.ut,parseDate:()=>W._U,pictogramIds:()=>G.vJW,preloadImport:()=>s.zC,processConfig:()=>o.mq,promptBeforeClosing:()=>G.F3N,promptForClosingWorkspaces:()=>G.hLN,provide:()=>o.Gt,putDynamicOfflineData:()=>I.yD,putDynamicOfflineDataFor:()=>I.ff,queueSynchronizationItem:()=>I.Zr,queueSynchronizationItemFor:()=>I.Iq,refetchCurrentUser:()=>n.yH,registerApp:()=>N,registerBreadcrumb:()=>E.vf,registerBreadcrumbs:()=>E.MY,registerDefaultCalendar:()=>W.XE,registerExtension:()=>m.VK,registerExtensionSlot:()=>m.FY,registerFeatureFlag:()=>d.uA,registerGlobalStore:()=>M.CE,registerModal:()=>m.Ju,registerModuleLoad:()=>o.kl,registerModuleWithConfigSystem:()=>o.FL,registerOfflinePatientHandler:()=>I.KG,registerOmrsServiceWorker:()=>I.sZ,registerTranslationNamespace:()=>o.GV,registerWorkspace:()=>m.pm,registerWorkspaceGroup:()=>m.io,registerWorkspaceGroups2:()=>m.rD,registerWorkspaceWindows2:()=>m.Qb,registerWorkspaces2:()=>m.Uh,removeDynamicOfflineData:()=>I.NU,removeDynamicOfflineDataFor:()=>I.wn,removeRoutesOverride:()=>x,renderActionableNotifications:()=>G.zfR,renderExtension:()=>m.wG,renderInlineNotifications:()=>G.CU$,renderLoadingSpinner:()=>G.uWG,renderSnackbars:()=>G.ZLm,renderToasts:()=>G.f1b,renderWorkspaceWindowsAndMenu:()=>G.jCr,reportError:()=>a.N,reset:()=>m.cL,resetAllRoutesOverrides:()=>C,resetConfigSystem:()=>o.Nz,resetWorkspaceStore:()=>G._1W,restBaseUrl:()=>n.Jj,retry:()=>Q,runSynchronization:()=>I.AO,saveVisit:()=>i.Ds,selectPreferredName:()=>V.VO,sessionEndpoint:()=>n.Ct,sessionStore:()=>n.eA,setCurrentOfflineMode:()=>I.Og,setCurrentVisit:()=>i.NH,setFeatureFlag:()=>d.B4,setLeftNav:()=>m.Vx,setSessionLocation:()=>n.Gp,setUserLanguage:()=>n.E4,setUserProperties:()=>n.Fi,setupApiModule:()=>n.Y0,setupDynamicOfflineDataHandler:()=>I.iD,setupHistory:()=>E.Wh,setupModals:()=>G.EPe,setupOfflineSync:()=>I.cy,shallowEqual:()=>X.b,showActionableNotification:()=>G.ZyP,showModal:()=>G.toY,showNotification:()=>G.Dsh,showSnackbar:()=>G.tdF,showToast:()=>G.P0c,showWorkspacePrompts:()=>G.ctS,slugify:()=>s.Yv,subscribeActionableNotificationShown:()=>g.bK,subscribeConnectivity:()=>g.sT,subscribeConnectivityChanged:()=>g.gj,subscribeNotificationShown:()=>g.bJ,subscribePrecacheStaticDependencies:()=>g.ff,subscribeSnackbarShown:()=>g.ls,subscribeTo:()=>M.i7,subscribeToFeatureFlag:()=>d.sM,subscribeToastShown:()=>g.dX,syncAllDynamicOfflineData:()=>I.Td,syncDynamicOfflineData:()=>I.u1,syncOfflinePatientData:()=>I.sK,temporaryConfigStore:()=>o.H,toDateObjectStrict:()=>W.kQ,toLocationObject:()=>i.E$,toOmrsIsoString:()=>W.l0,toVisitTypeObject:()=>i.Qx,translateFrom:()=>j.t,tryRegisterExtension:()=>A,unsetLeftNav:()=>m.sr,updateExtensionSlotState:()=>m.ap,updateInternalExtensionStore:()=>m.DQ,updateVisit:()=>i.xL,updateWorkspaceWindowState:()=>G._RD,useAbortController:()=>$.Ie,useAppContext:()=>$.Us,useAssignedExtensionIds:()=>$.Tt,useAssignedExtensions:()=>$.CX,useAttachments:()=>$._9,useBodyScrollLock:()=>$.yJ,useConfig:()=>$.UK,useConnectedExtensions:()=>$.zD,useConnectivity:()=>$.Fx,useDebounce:()=>$.d7,useDefineAppContext:()=>$.jn,useEmrConfiguration:()=>$.E4,useExtensionInternalStore:()=>$.$B,useExtensionSlot:()=>$.br,useExtensionSlotMeta:()=>$.Wq,useExtensionSlotStore:()=>$.uL,useExtensionStore:()=>$.Gz,useFeatureFlag:()=>$.u,useFhirFetchAll:()=>$.oq,useFhirInfinite:()=>$.vL,useFhirPagination:()=>$.to,useForceUpdate:()=>$.CH,useLayoutType:()=>$.qv,useLeftNav:()=>$.if,useLeftNavStore:()=>$.TA,useLocations:()=>$.kH,useOnClickOutside:()=>$.Wr,useOnVisible:()=>$.Jm,useOpenmrsFetchAll:()=>$.Bf,useOpenmrsInfinite:()=>$.iy,useOpenmrsPagination:()=>$.Ed,useOpenmrsSWR:()=>$.M3,usePagination:()=>$.WQ,usePatient:()=>$.tQ,usePatientPhoto:()=>G.R9n,usePrimaryIdentifierCode:()=>$.wJ,useRenderableExtensions:()=>$.oU,useSession:()=>$.wV,useStore:()=>$.Pj,useStoreWithActions:()=>$.mQ,useVisit:()=>$.fq,useVisitContextStore:()=>$.xH,useVisitTypes:()=>$.wr,useWorkspace2Context:()=>G.WO_,useWorkspace2Store:()=>G.AkA,useWorkspaces:()=>G.CH0,userHasAccess:()=>n.st,validator:()=>o.Nc,validators:()=>o.y$,workspace2Store:()=>m.J_,workspaceStore:()=>G.x9q});var n=r(5625),o=r(95819),s=r(47709),i=r(34945),a=r(60937),c=r(87440),l=r(19758),p=r(89987);function u(e){if(!("string"==typeof e||"object"==typeof e&&e&&"type"in e))throw`Unknown expression type ${e}. Expressions must either be a string or pre-compiled string.`;const t=(r=p.f,{globals:{...r},isLocalExpression:!1,variables:new Set});var r;return f("string"==typeof e?(0,l.A)(e):e,t),[...t.variables]}function f(e,t){switch(e.type){case"UnaryExpression":return function(e,t){return f(e.argument,t)}(e,t);case"BinaryExpression":return function(e,t){return[f(e.left,t),f(e.right,t)].filter(Boolean)}(e,t);case"ConditionalExpression":return function(e,t){return[f(e.consequent,t),f(e.test,t),f(e.alternate,t)].filter(Boolean)}(e,t);case"CallExpression":return function(e,t){const r=f(e.callee,t);return e.arguments?.map(h(t)),r}(e,t);case"ArrowFunctionExpression":return function(e,t){const r={...t};r.isLocalExpression=!0;const n=e.params?.map(h(r))??[],o=f(e.body,r)??[];if(o&&Array.isArray(o))for(const e of o)n.includes(e)||t.variables.add(e)}(e,t);case"MemberExpression":return function(e,t){f(e.object,t);const r={...t};r.isLocalExpression=!0,f(e.property,r)}(e,t);case"ArrayExpression":return function(e,t){e.elements?.map(h(t))}(e,t);case"SequenceExpression":return function(e,t){e.expressions?.map(h(t))}(e,t);case"NewExpression":return function(e,t){e.arguments?.map(h(t))}(e,t);case"Literal":case"TemplateElement":return;case"Identifier":return function(e,t){if(!(e.name in t.globals)){if(t.isLocalExpression)return e.name;t.variables.add(e.name)}}(e,t);case"TemplateLiteral":return function(e,t){e.expressions?.map(h(t)),e.quasis?.map(h(t))}(e,t);default:throw`Expression evaluator does not support expression of type '${e.type}'`}}function h(e){return function(t){return null===t?null:f(t,e)}}var m=r(78910),d=r(76110),g=r(23184),E=r(11305),I=r(39644),$=r(58379);const O="openmrs-routes:";var y=r(74730),S=r(55226);function A(e,t){const r=t.name;if(!r)return void console.error(`An extension definition in ${e} is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nextension definition.`,t);t.slots&&t.slot&&console.warn(`The extension ${r} from ${e} declares both a 'slots' property and\na 'slot' property. Only the 'slots' property will be honored.`);const n=t.slots?t.slots:t.slot?[t.slot]:[];if(t.component){(0,m.VK)({name:r,load:()=>(0,S.o)(e,t.component),meta:t.meta||{},order:t.order,moduleName:e,privileges:t.privileges,online:t.online??!0,offline:t.offline??!1,featureFlag:t.featureFlag,displayExpression:t.displayExpression});for(const e of n)(0,m.K0)(e,r)}else console.error(`The extension ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the extension definition.`,t)}const R=[];function v(e){if(Array.isArray(e)){const t=e.map(v);return e=>t.some((t=>t(e)))}return"string"==typeof e?(0,y.pathToActiveWhen)(window.getOpenmrsSpaBase()+e):e instanceof RegExp?t=>function(e,t){return e.test(t.pathname.replace(window.getOpenmrsSpaBase(),""))}(e,t):()=>e}function N(e,t){if(e&&t&&"object"==typeof t){(0,o.FL)(e);const n=t.extensions??[],s=t.modals??[],i=t.workspaces??[],a=t.workspaceGroups??[],c=t.featureFlags??[],l=t.workspaceGroups2??[],p=t.workspaceWindows2??[],u=t.workspaces2??[];t.pages?.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"component")&&(Object.hasOwn(t,"route")||Object.hasOwn(t,"routeRegex")||Object.hasOwn(t,"routes"))?R.push({...t,appName:e}):console.warn(`A page for ${e} could not be registered as it does not appear to have the required properties`,t)})),n.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?A(e,t):console.warn(`An extension for ${e} could not be registered as it does not appear to have the required properties`,t)})),s.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){const r=t.name;r?t.component?(0,m.Ju)({name:r,moduleName:e,load:()=>(0,S.o)(e,t.component)}):console.error(`The modal ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the modal definition.`,t):console.error(`A modal definition in ${e} is missing an name and thus cannot be\nregistered. To fix this, ensure that you define the "name" field inside the\nmodal definition.`,t)}(e,t):console.warn(`A modal for ${e} could not be registered as it does not appear to have the required properties`,t)})),i.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")&&Object.hasOwn(t,"component")?function(e,t){const r=t.name;if(!r)return void console.error(`A workspace definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.`,t);const n=t.title;if(n)if(t.component){(0,m.pm)({name:r,title:n,component:t.component,moduleName:e,type:t.type,canHide:t.canHide,canMaximize:t.canMaximize,width:t.width,preferredWindowSize:t.preferredWindowSize,groups:t.groups,load:()=>(0,S.o)(e,t.component)});for(const e of t.groups||[])(0,m.io)({name:e,members:[r]})}else console.error(`The workspace ${r} from ${e} is missing a 'component' entry and thus cannot be registered.\nTo fix this, ensure that you define a 'component' field inside the workspace definition.`,t);else console.error(`A workspace definition in ${e} is missing a title and thus cannot be registered.\nTo fix this, ensure that you define the "title" field inside the workspace definition.`,t)}(e,t):console.warn(`A workspace for ${e} could not be registered as it does not appear to have the required properties`,t)})),a.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"name")?function(e,t){const r=t.name;r?(0,m.io)({name:r,members:t.members??[]}):console.error(`A workspace group definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the workspace definition.`,t)}(e,t):console.warn(`A workspace group for ${e} could not be registered as it does not appear to have the required properties`,t)})),r=l,(0,m.rD)(r),function(e,t){(0,m.Qb)(e,t)}(e,p),function(e,t){(0,m.Uh)(e,t)}(e,u),c.forEach((t=>{t&&"object"==typeof t&&Object.hasOwn(t,"flagName")?function(e,t){t.flagName?t.label?t.description?(0,d.uA)(t.flagName,t.label,t.description):console.error(`A feature flag definition in ${e} is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "description" field inside the feature flag definition.`,t):console.error(`A feature flag definition in ${e} is missing a description and thus cannot be registered.\nTo fix this, ensure that you define the "label" field inside the feature flag definition.`,t):console.error(`A feature flag definition in ${e} is missing a name and thus cannot be registered.\nTo fix this, ensure that you define the "name" field inside the feature flag definition.`,t)}(e,t):console.warn(`A feature flag for ${e} could not be registered as it does not appear to have the required properties`,t)}))}var r}function w(){R.sort(((e,t)=>e.appName.localeCompare(t.appName,"en")));let e=new Map;for(let t of R){e.has(t.appName)?e.set(t.appName,e.get(t.appName)+1):e.set(t.appName,0);const r=e.get(t.appName),n=`${t.appName}-page-${r}`,o=t.containerDomId??"omrs-apps-container",s=document.getElementById(o),i=`single-spa-application:${n}`;if(!s)throw new Error(`${t.appName} ${t.component} cannot be mounted to "${o}"; DOM element does not exist.`);{const e=document.createElement("div");e.id=i,s?.appendChild(e)}T(n,t)}}function T(e,t){const r=void 0!==t.route?t.route:void 0!==t.routeRegex&&new RegExp(t.routeRegex);if(!1===r)return void console.warn('A registered page definition is missing a route and thus cannot be registered.\nTo fix this, ensure that you define the "route" (or alternatively the "routeRegex") field inside the extension definition.',e);if(!t.component)return void console.warn('A registered page definition is missing a component and thus cannot be registered.\nTo fix this, ensure that you define the "component" field inside the page definition.',e);const n=function(e,{online:t,offline:r,featureFlag:n}){return window.offlineEnabled?o=>!!(navigator.onLine&&(t??1)||!navigator.onLine&&r)&&!(n&&!(0,d.jj)(n))&&e(o):e}(v(r),t);(0,y.registerApplication)(e,(()=>(0,S.o)(t.appName,t.component)),n)}function L(e=window.localStorage){try{return e.getItem("test"),!0}catch{return!1}}const b=L();function P(e,t){if(b){if("string"==typeof t){if(t.startsWith("http"))return D(e,t);try{const r=JSON.parse(t);if(F(r))return D(e,r);console.error(`The supplied routes for ${e} is not a valid OpenmrsAppRoutes object`,t)}catch(t){console.error(`Could not add routes override for ${e}: `,t)}}else{if(t instanceof URL)return D(e,t.toString());if(F(t))return D(e,t)}console.error(`Override for ${e} is not in a valid format. Expected either a Javascript Object, a JSON string of a Javascript object, or a URL`,t)}}function x(e){if(!b)return;const t=O+e;localStorage.removeItem(t)}function C(){if(!b)return;const e=window.localStorage;for(let t=0;t<e.length;t++){const r=e.key(t);r?.startsWith(O)&&e.removeItem(r)}}function D(e,t){const r=O+e;localStorage.setItem(r,JSON.stringify(t))}function F(e){if(e&&"object"==typeof e){const t=Object.prototype.hasOwnProperty,r=e;return!!((!t.call(e,"pages")||Boolean(r.pages)&&Array.isArray(r.pages))&&(!t.call(e,"extensions")||Boolean(r.extensions)&&Array.isArray(r.extensions))&&(!t.call(e,"workspaces")||Boolean(r.workspaces)&&Array.isArray(r.workspaces))&&(!t.call(e,"modals")||Boolean(r.modals)&&Array.isArray(r.modals)))}return!1}function k(e){if(e&&"object"==typeof e){const t=e;return Object.entries(t).every((([e,t])=>"string"==typeof e&&F(t)))}return!1}var M=r(22337),G=r(31815),j=r(50103),U=r(2545),W=r(6519),B=r(4617),H=r(52834),V=r(59591),X=r(27388);function _(e){let t={};for(let r of Object.keys(e))if(z(e[r])&&e[r].hasOwnProperty("_default"))t[r]=e[r]._default;else{if(r.startsWith("_"))continue;z(e[r])?t[r]=_(e[r]):t[r]=e[r]}return t}function z(e){return!!e&&e.constructor===Object}var q=r(15934);function Y(e){const[t,r,n]=e.split(".");return`${t}.${r}.${n}`}function J(e,t){const r=function(e){const t=e.indexOf("-");return t>=0?`${Y(e.slice(0,t))}-${e.slice(t+1)}`:Y(e)}(t);return q.satisfies(r,e,{includePrerelease:!0})}async function Q(e,t={}){let{shouldRetry:r,getDelay:n,onError:o}=t;r=r??(e=>function(e){return e<=5}(e)),n=n??(e=>function(e,t,r=!1){const n=r?e+1:e;return 1e3*Math.pow(2,n)}(e));let s,i=0;do{try{return await K(n(i)),await e()}catch(e){o?.(e,i),s=e}}while(r(i++));throw s}async function K(e){if(!(e<=0))return new Promise((t=>setTimeout(t,e)))}},57705:(e,t,r)=>{const n=r(29306),{MAX_LENGTH:o,MAX_SAFE_INTEGER:s}=r(86891),{re:i,t:a}=r(79413),{compareIdentifiers:c}=r(83610);class l{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?i[a.LOOSE]:i[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<s)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=l},59980:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>0===n(e,t,r)},65796:(e,t,r)=>{const n=r(57705),o=r(16632),s=r(5717);e.exports=(e,t)=>{e=new o(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t)e.set[t].forEach((e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!s(r,t)||(r=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));return r&&e.test(r)?r:null}},69168:(e,t,r)=>{const n=r(40663);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},75488:(e,t,r)=>{const n=r(82463);e.exports=(e,t)=>n(e,t,!0)},75581:(e,t,r)=>{const n=r(57705);e.exports=(e,t)=>new n(e,t).minor},79413:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n}=r(86891),o=r(29306),s=(t=e.exports={}).re=[],i=t.src=[],a=t.t={};let c=0;const l=(e,t,r)=>{const n=c++;o(n,t),a[e]=n,i[n]=t,s[n]=new RegExp(t,r?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${i[a.NUMERICIDENTIFIER]}|${i[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${i[a.NUMERICIDENTIFIERLOOSE]}|${i[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${i[a.PRERELEASEIDENTIFIER]}(?:\\.${i[a.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${i[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[a.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${i[a.BUILDIDENTIFIER]}(?:\\.${i[a.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${i[a.MAINVERSION]}${i[a.PRERELEASE]}?${i[a.BUILD]}?`),l("FULL",`^${i[a.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${i[a.MAINVERSIONLOOSE]}${i[a.PRERELEASELOOSE]}?${i[a.BUILD]}?`),l("LOOSE",`^${i[a.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${i[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${i[a.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:${i[a.PRERELEASE]})?${i[a.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:${i[a.PRERELEASELOOSE]})?${i[a.BUILD]}?)?)?`),l("XRANGE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",i[a.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${i[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${i[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${i[a.LONECARET]}${i[a.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${i[a.LONECARET]}${i[a.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${i[a.GTLT]}\\s*(${i[a.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]}|${i[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${i[a.XRANGEPLAIN]})\\s+-\\s+(${i[a.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${i[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[a.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},80483:(e,t,r)=>{const n=r(16632),{ANY:o}=r(43473),s=r(94753),i=r(82463),a=(e,t,r)=>{if(1===e.length&&e[0].semver===o)return 1===t.length&&t[0].semver===o;const n=new Set;let a,p,u,f,h,m,d;for(const t of e)">"===t.operator||">="===t.operator?a=c(a,t,r):"<"===t.operator||"<="===t.operator?p=l(p,t,r):n.add(t.semver);if(n.size>1)return null;if(a&&p){if(u=i(a.semver,p.semver,r),u>0)return null;if(0===u&&(">="!==a.operator||"<="!==p.operator))return null}for(const e of n){if(a&&!s(e,String(a),r))return null;if(p&&!s(e,String(p),r))return null;for(const n of t)if(!s(e,String(n),r))return!1;return!0}for(const e of t){if(d=d||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,a)if(">"===e.operator||">="===e.operator){if(f=c(a,e,r),f===e)return!1}else if(">="===a.operator&&!s(a.semver,String(e),r))return!1;if(p)if("<"===e.operator||"<="===e.operator){if(h=l(p,e,r),h===e)return!1}else if("<="===p.operator&&!s(p.semver,String(e),r))return!1;if(!e.operator&&(p||a)&&0!==u)return!1}return!(a&&m&&!p&&0!==u||p&&d&&!a&&0!==u)},c=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r)=>{e=new n(e,r),t=new n(t,r);let o=!1;e:for(const n of e.set){for(const e of t.set){const t=a(n,e,r);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}},82367:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>n(t,e,r)},82463:(e,t,r)=>{const n=r(57705);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},83610:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),o=t.test(r);return n&&o&&(e=+e,r=+r),e===r?0:n&&!o?-1:o&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},86859:(e,t,r)=>{const n=r(20650);e.exports=(e,t,r)=>n(e,t,"<",r)},86891:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:t,MAX_SAFE_COMPONENT_LENGTH:16}},89414:(e,t,r)=>{const n=r(20650);e.exports=(e,t,r)=>n(e,t,">",r)},94568:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>0!==n(e,t,r)},94753:(e,t,r)=>{const n=r(16632);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},95419:(e,t,r)=>{const n=r(82463);e.exports=(e,t,r)=>n(e,t,r)<=0},99481:(e,t,r)=>{const n=r(57705),o=r(16632);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new n(s,r)))})),s}}}]);