@kenyaemr/esm-ward-app 8.1.1-pre.114 → 8.1.1-pre.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +18 -17
- package/dist/109.js +1 -0
- package/dist/109.js.map +1 -0
- package/dist/125.js +1 -0
- package/dist/125.js.map +1 -0
- package/dist/126.js +1 -0
- package/dist/126.js.map +1 -0
- package/dist/130.js +1 -1
- package/dist/130.js.map +1 -1
- package/dist/146.js +1 -0
- package/dist/146.js.map +1 -0
- package/dist/15.js +1 -0
- package/dist/15.js.map +1 -0
- package/dist/161.js +2 -0
- package/dist/161.js.map +1 -0
- package/dist/269.js +1 -1
- package/dist/269.js.map +1 -1
- package/dist/466.js +1 -1
- package/dist/466.js.map +1 -1
- package/dist/500.js +1 -0
- package/dist/500.js.map +1 -0
- package/dist/53.js +1 -0
- package/dist/53.js.map +1 -0
- package/dist/557.js +1 -0
- package/dist/557.js.map +1 -0
- package/dist/559.js +1 -0
- package/dist/559.js.map +1 -0
- package/dist/574.js +1 -1
- package/dist/577.js +1 -1
- package/dist/577.js.map +1 -1
- package/dist/659.js +1 -1
- package/dist/659.js.map +1 -1
- package/dist/701.js +1 -0
- package/dist/701.js.map +1 -0
- package/dist/749.js +1 -1
- package/dist/749.js.map +1 -1
- package/dist/908.js +1 -0
- package/dist/908.js.map +1 -0
- package/dist/922.js +1 -0
- package/dist/922.js.map +1 -0
- package/dist/969.js +1 -0
- package/dist/969.js.map +1 -0
- package/dist/kenyaemr-esm-ward-app.js +1 -1
- package/dist/kenyaemr-esm-ward-app.js.buildmanifest.json +294 -74
- package/dist/kenyaemr-esm-ward-app.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/mock.tsx +54 -0
- package/package.json +1 -1
- package/src/action-menu-buttons/clinical-forms-workspace-siderail.component.tsx +37 -0
- package/src/action-menu-buttons/discharge-workspace-siderail.component.tsx +20 -0
- package/src/beds/empty-bed-skeleton.tsx +2 -1
- package/src/beds/empty-bed.scss +0 -4
- package/src/beds/occupied-bed.scss +1 -0
- package/src/config-schema-mother-child-row.ts +26 -0
- package/src/config-schema-pending-items-extension.ts +29 -0
- package/src/config-schema.ts +12 -14
- package/src/hooks/useAdmissionLocation.ts +22 -4
- package/src/hooks/useBeds.ts +3 -4
- package/src/hooks/useConcept.ts +3 -4
- package/src/hooks/useEmrConfiguration.ts +5 -0
- package/src/hooks/useInpatientAdmission.ts +9 -14
- package/src/hooks/useInpatientRequest.ts +4 -15
- package/src/hooks/useLocations.ts +8 -51
- package/src/hooks/useMotherAndChildren.ts +46 -0
- package/src/hooks/useObs.ts +2 -6
- package/src/hooks/usePatientPendingOrders.ts +16 -0
- package/src/hooks/useWardPatientGrouping.ts +25 -0
- package/src/index.ts +50 -3
- package/src/location-selector/location-selector.component.tsx +18 -21
- package/src/routes.json +43 -0
- package/src/types/index.ts +34 -0
- package/src/ward-patient-card/card-rows/admission-request-note.extension.tsx +7 -2
- package/src/ward-patient-card/card-rows/mother-child-row.extension.tsx +110 -0
- package/src/ward-patient-card/card-rows/mother-child-row.scss +22 -0
- package/src/ward-patient-card/card-rows/pending-items-car-row.extension.tsx +50 -0
- package/src/ward-patient-card/row-elements/ward-pateint-skeleton-text.tsx +9 -0
- package/src/ward-patient-card/row-elements/ward-patient-age.tsx +1 -1
- package/src/ward-patient-card/row-elements/ward-patient-coded-obs-tags.tsx +54 -36
- package/src/ward-patient-card/row-elements/ward-patient-identifier.tsx +2 -3
- package/src/ward-patient-card/row-elements/ward-patient-location.tsx +19 -0
- package/src/ward-patient-card/row-elements/ward-patient-obs.resource.ts +36 -32
- package/src/ward-patient-card/row-elements/ward-patient-obs.tsx +15 -9
- package/src/ward-patient-card/row-elements/ward-patient-pending-order.component.tsx +45 -0
- package/src/ward-patient-card/row-elements/ward-patient-pending-transfer.tsx +38 -0
- package/src/ward-patient-card/row-elements/ward-patient-responsive-tooltip.tsx +32 -0
- package/src/ward-patient-card/ward-patient-card-element.component.tsx +4 -0
- package/src/ward-patient-card/ward-patient-card.component.tsx +21 -14
- package/src/ward-patient-card/ward-patient-card.scss +61 -8
- package/src/ward-patient-card/ward-patient-resource.ts +15 -0
- package/src/ward-view/ward-view.component.tsx +124 -132
- package/src/ward-view/ward-view.resource.ts +121 -1
- package/src/ward-view/ward-view.scss +16 -6
- package/src/ward-view/ward-view.test.tsx +27 -42
- package/src/ward-view-header/admission-requests-bar.component.tsx +8 -7
- package/src/ward-view-header/admission-requests-bar.test.tsx +8 -21
- package/src/ward-view-header/admission-requests.scss +1 -1
- package/src/ward-view-header/ward-metric.component.tsx +24 -0
- package/src/ward-view-header/ward-metric.scss +25 -0
- package/src/ward-view-header/ward-metrics.component.tsx +77 -0
- package/src/ward-view-header/ward-metrics.scss +8 -0
- package/src/ward-view-header/ward-metrics.test.tsx +91 -0
- package/src/ward-view-header/ward-view-header.component.tsx +3 -0
- package/src/ward-view-header/ward-view-header.scss +0 -1
- package/src/ward-workspace/admission-request-card/admission-request-card-actions.component.tsx +11 -3
- package/src/ward-workspace/admission-request-card/admission-request-card-header.component.tsx +4 -5
- package/src/ward-workspace/admission-request-card/admission-request-card.scss +8 -4
- package/src/ward-workspace/admission-request-workspace/admission-requests-workspace.test.tsx +8 -3
- package/src/ward-workspace/admission-request-workspace/admission-requests.workspace.tsx +2 -0
- package/src/ward-workspace/admit-patient-form-workspace/admit-patient-form.test.tsx +29 -61
- package/src/ward-workspace/admit-patient-form-workspace/admit-patient-form.workspace.tsx +37 -21
- package/src/ward-workspace/patient-banner/patient-banner.component.tsx +3 -3
- package/src/ward-workspace/patient-clinical-forms-workspace/patient-clinical-forms.workspace.tsx +23 -0
- package/src/{ward-patient-workspace → ward-workspace/patient-details}/ward-patient-action-button.extension.tsx +2 -1
- package/src/{ward-patient-workspace → ward-workspace/patient-details}/ward-patient.workspace.tsx +7 -5
- package/src/ward-workspace/patient-discharge/patient-discharge.scss +41 -0
- package/src/ward-workspace/patient-discharge/patient-discharge.workspace.tsx +120 -0
- package/src/ward-workspace/patient-transfer-bed-swap/patient-bed-swap-form.component.tsx +40 -30
- package/src/ward-workspace/patient-transfer-bed-swap/patient-transfer-request-form.component.tsx +29 -22
- package/src/ward-workspace/patient-transfer-bed-swap/patient-transfer-swap.scss +12 -2
- package/src/ward-workspace/patient-transfer-bed-swap/patient-transfer-swap.workspace.tsx +2 -2
- package/src/ward-workspace/patient-transfer-request-workspace/patient-transfer-request.workspace.tsx +11 -0
- package/src/ward-workspace/ward-patient-notes/form/notes-form.component.tsx +1 -1
- package/src/ward-workspace/ward-patient-notes/form/notes-form.test.tsx +1 -1
- package/src/ward-workspace/ward-patient-notes/history/notes-container.component.tsx +2 -2
- package/src/ward-workspace/ward-patient-notes/notes.resource.ts +5 -7
- package/src/ward-workspace/ward-patient-notes/notes.workspace.tsx +1 -1
- package/src/ward-workspace/ward-patient-notes/types.ts +0 -4
- package/src/ward.resource.ts +6 -0
- package/translations/en.json +18 -1
- package/dist/346.js +0 -1
- package/dist/346.js.map +0 -1
- package/dist/76.js +0 -1
- package/dist/76.js.map +0 -1
- package/dist/803.js +0 -1
- package/dist/803.js.map +0 -1
- package/dist/958.js +0 -2
- package/dist/958.js.map +0 -1
- package/dist/960.js +0 -1
- package/dist/960.js.map +0 -1
- /package/dist/{958.js.LICENSE.txt → 161.js.LICENSE.txt} +0 -0
- /package/src/{ward-patient-workspace → ward-workspace/patient-details}/ward-patient.style.scss +0 -0
package/translations/en.json
CHANGED
|
@@ -9,20 +9,29 @@
|
|
|
9
9
|
"bedShare": "Bed share",
|
|
10
10
|
"bedSwap": "Bed swap",
|
|
11
11
|
"cancel": "Cancel",
|
|
12
|
+
"capacity": "Capacity",
|
|
13
|
+
"capacityMetricValue": "{{ metricValue }} %",
|
|
12
14
|
"chooseAnOption": "Choose an option",
|
|
15
|
+
"clinicalForms": "Clinical forms",
|
|
13
16
|
"clinicalNoteLabel": "Write your notes",
|
|
17
|
+
"discharge": "Discharge",
|
|
14
18
|
"empty": "Empty",
|
|
15
19
|
"emptyBed": "Empty bed",
|
|
16
20
|
"emptyText": "Empty",
|
|
21
|
+
"encounterDisplay": "{{encounterType}} {{encounterDate}}",
|
|
17
22
|
"errorAssigningBedToPatient": "Error assigning bed to patient",
|
|
18
23
|
"errorCreatingEncounter": "Failed to admit patient",
|
|
19
24
|
"errorCreatingTransferRequest": "Error creating transfer request",
|
|
20
|
-
"
|
|
25
|
+
"errorDischargingPatient": "Error discharging patient",
|
|
26
|
+
"errorLoadingBedDetails": "Error loading bed details",
|
|
27
|
+
"errorLoadingPatientAdmissionRequests": "Error loading patient admission requests",
|
|
21
28
|
"errorLoadingPatients": "Error loading admitted patients",
|
|
22
29
|
"errorLoadingWardLocation": "Error loading ward location",
|
|
23
30
|
"female": "Female",
|
|
24
31
|
"fetchingEmrConfigurationFailed": "Fetching EMR configuration failed. Try refreshing the page or contact your system administrator.",
|
|
25
32
|
"fetchingPatientNotesFailed": "Fetching patient notes failed. Try refreshing the page or contact your system administrator.",
|
|
33
|
+
"freeBeds": "Free beds",
|
|
34
|
+
"freeBedsMetricValue": "{{ metricValue }}",
|
|
26
35
|
"inpatientNotesWorkspaceTitle": "In-patient notes",
|
|
27
36
|
"invalidElementIdCopy": "The configuration provided is invalid. It contains the following unknown element ID:",
|
|
28
37
|
"invalidLocationSpecified": "Invalid location specified",
|
|
@@ -35,6 +44,7 @@
|
|
|
35
44
|
"noLocationsFound": "No locations found",
|
|
36
45
|
"note": "Note",
|
|
37
46
|
"notes": "Notes",
|
|
47
|
+
"Orders": "Orders",
|
|
38
48
|
"other": "Other",
|
|
39
49
|
"patientAdmittedButBedNotAssigned": "Patient admitted successfully but fail to assign bed to patient",
|
|
40
50
|
"patientAdmittedSuccessfully": "Patient admitted successfully",
|
|
@@ -45,11 +55,17 @@
|
|
|
45
55
|
"patientNoteNowVisible": "It should be now visible in the notes history",
|
|
46
56
|
"patientNoteSaveError": "Error saving patient note",
|
|
47
57
|
"patientNotesDidntLoad": "Patient notes didn't load",
|
|
58
|
+
"patients": "Patients",
|
|
59
|
+
"patientsMetricValue": "{{ metricValue }}",
|
|
48
60
|
"patientTransferRequestCreated": "Patient transfer request created",
|
|
61
|
+
"patientWasDischarged": "Patient was discharged",
|
|
62
|
+
"pendingOut": "Pending out",
|
|
63
|
+
"pendingOutMetricValue": "{{ metricValue }}",
|
|
49
64
|
"pleaseSelectBed": "Please select a bed",
|
|
50
65
|
"pleaseSelectTransferLocation": "Please select transfer location",
|
|
51
66
|
"pleaseSelectTransferType": "Please select transfer type",
|
|
52
67
|
"previousPage": "Previous page",
|
|
68
|
+
"proceedWithPatientDischarge": "Proceed with patient discharge",
|
|
53
69
|
"save": "Save",
|
|
54
70
|
"saving": "Saving...",
|
|
55
71
|
"searchForPatient": "Search for a patient",
|
|
@@ -61,6 +77,7 @@
|
|
|
61
77
|
"somePartsOfTheFormDidntLoad": "Some parts of the form didn't load",
|
|
62
78
|
"transfer": "Transfer",
|
|
63
79
|
"transferElsewhere": "Transfer elsewhere",
|
|
80
|
+
"transferRequest": "Transfer request",
|
|
64
81
|
"transfers": "Transfers",
|
|
65
82
|
"transferType": "Transfer type",
|
|
66
83
|
"typeOfTransfer": "Type of transfer",
|
package/dist/346.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([[346],{6937:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(5698),i=t.n(a),r=t(9613),o=t.n(r)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-ward__empty-bed__container___nb3KO{display:flex;gap:.75rem;justify-content:center;align-items:center;border:1px dashed #8d8d8d;padding:.5rem .75rem;height:fit-content}.-esm-ward__empty-bed__container___nb3KO:hover:not(.-esm-ward__empty-bed__skeleton___624ar){border:1px solid rgba(0,0,0,0);box-shadow:inset 0px 0px 0px 2px #0f62fe;cursor:pointer}.-esm-ward__empty-bed__emptyBed___EWkkj{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);color:#525252}.-esm-ward__empty-bed__skeletonText___sYPXO{width:6.25rem}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/beds/empty-bed.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,yCACE,YAAA,CACA,UCoBW,CDnBX,sBAAA,CACA,kBAAA,CACA,yBAAA,CACA,oBAAA,CACA,kBAAA,CAGF,4FACE,8BAAA,CACA,wCAAA,CACA,cAAA,CAGF,wCE80BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CF50BF,aDjBQ,CCoBV,4CACE,aAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.container {\n display: flex;\n gap: layout.$spacing-04;\n justify-content: center;\n align-items: center;\n border: 1px dashed $ui-04;\n padding: layout.$spacing-03 layout.$spacing-04;\n height: fit-content;\n}\n\n.container:hover:not(.skeleton) {\n border: 1px solid transparent;\n box-shadow: inset 0px 0px 0px 2px $color-blue-60-2;\n cursor: pointer;\n}\n\n.emptyBed {\n @include type.type-style('heading-compact-01');\n color: $text-02;\n}\n\n.skeletonText {\n width: 6.25rem;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\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:""}]),o.locals={container:"-esm-ward__empty-bed__container___nb3KO",skeleton:"-esm-ward__empty-bed__skeleton___624ar",emptyBed:"-esm-ward__empty-bed__emptyBed___EWkkj",skeletonText:"-esm-ward__empty-bed__skeletonText___sYPXO"};const s=o},671:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(5698),i=t.n(a),r=t(9613),o=t.n(r)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-ward__occupied-bed__occupiedBed___3Yeo-{display:flex;flex-direction:column;background-color:#fff}.-esm-ward__occupied-bed__bedDivider___C2O3V{background-color:#fff;color:#525252;padding:.125rem;display:flex;align-items:center;justify-content:space-between}.-esm-ward__occupied-bed__bedDividerLine___HDMqA{height:1px;background-color:#161616;width:30%}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/beds/occupied-bed.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCxDF,8CACE,YAAA,CACA,qBAAA,CACA,qBDLM,CCQR,6CACE,qBDTM,CCUN,aDNQ,CCOR,eCDW,CDEX,YAAA,CACA,kBAAA,CACA,6BAAA,CAGF,iDACE,UAAA,CACA,wBDhBM,CCiBN,SAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@openmrs/esm-styleguide/src/vars';\n\n.occupiedBed {\n display: flex;\n flex-direction: column;\n background-color: vars.$ui-02;\n}\n\n.bedDivider {\n background-color: vars.$ui-02;\n color: vars.$text-02;\n padding: layout.$spacing-01;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.bedDividerLine {\n height: 1px;\n background-color: vars.$ui-05;\n width: 30%;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),o.locals={occupiedBed:"-esm-ward__occupied-bed__occupiedBed___3Yeo-",bedDivider:"-esm-ward__occupied-bed__bedDivider___C2O3V",bedDividerLine:"-esm-ward__occupied-bed__bedDividerLine___HDMqA"};const s=o},4894:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(5698),i=t.n(a),r=t(9613),o=t.n(r)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-ward__unassigned-patient__unassignedPatient___WL0xh{display:flex;flex-direction:column}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/beds/unassigned-patient.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,0DACE,YAAA,CACA,qBAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@openmrs/esm-styleguide/src/vars';\n\n.unassignedPatient {\n display: flex;\n flex-direction: column;\n}\n"],sourceRoot:""}]),o.locals={unassignedPatient:"-esm-ward__unassigned-patient__unassignedPatient___WL0xh"};const s=o},2461:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(5698),i=t.n(a),r=t(9613),o=t.n(r)()(i());o.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-ward__ward-patient-card__wardPatientCard___ST-Dh{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);color:#525252;display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;background-color:#fff;position:relative}.-esm-ward__ward-patient-card__wardPatientCard___ST-Dh>.-esm-ward__ward-patient-card__wardPatientCardRow___rlwo5:not(:first-child){border-top:1px #e0e0e0 solid}.-esm-ward__ward-patient-card__wardPatientCardButton___RaZ9T{border:none;padding:0}.-esm-ward__ward-patient-card__wardPatientCardButton___RaZ9T::before{content:"";position:absolute;inset:0;z-index:1;cursor:pointer;border:2px solid rgba(0,0,0,0);transition:border-color 200ms}.-esm-ward__ward-patient-card__wardPatientCardButton___RaZ9T:hover::before,.-esm-ward__ward-patient-card__wardPatientCardButton___RaZ9T:focus::before{border-color:#0f62fe}.-esm-ward__ward-patient-card__wardPatientCardButton___RaZ9T:focus{outline:none}.-esm-ward__ward-patient-card__activeWardPatientCardButton___WSF3y::before{content:"";position:absolute;inset:0;z-index:1;cursor:pointer;border:2px solid #0f62fe;transition:border-color 200ms}.-esm-ward__ward-patient-card__wardPatientCardRow___rlwo5{width:100%;padding:.75rem}.-esm-ward__ward-patient-card__wardPatientCardRow___rlwo5:empty{display:none}.-esm-ward__ward-patient-card__wardPatientCardExtensionSlot___EmU0w{display:none}.-esm-ward__ward-patient-card__wardPatientCardExtensionSlot___EmU0w:has(div:not(:empty)){display:block}.-esm-ward__ward-patient-card__wardPatientCardHeader___1Uixu{display:flex;flex-wrap:wrap}.-esm-ward__ward-patient-card__wardPatientName___gbM15{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-ward__ward-patient-card__wardPatientName___gbM15::before{content:"" !important}.-esm-ward__ward-patient-card__wardPatientBedNumber___yTTXs{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);border-radius:50%;color:#fff;background-color:#0f62fe;padding:.75rem;width:.75rem;height:.75rem;display:flex;justify-content:center;align-items:center}.-esm-ward__ward-patient-card__wardPatientBedNumber___yTTXs.-esm-ward__ward-patient-card__empty___uXOrP{background-color:#edf5ff;color:#0f62fe}.-esm-ward__ward-patient-card__bedNumberBox___jKYmA{display:flex;justify-content:center;align-items:center}.-esm-ward__ward-patient-card__wardPatientAddress___8GXOI{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem}.-esm-ward__ward-patient-card__wardPatientObsLabel___XU9wK{padding-right:.25rem}.-esm-ward__ward-patient-card__dotSeparatedChildren___VLPRC>div:not(div:first-of-type):not(:empty),.-esm-ward__ward-patient-card__wardPatientCardHeader___1Uixu>div:not(div:first-of-type):not(:empty),.-esm-ward__ward-patient-card__wardPatientAddress___8GXOI>div:not(div:first-of-type):not(:empty){display:flex;align-items:center}.-esm-ward__ward-patient-card__dotSeparatedChildren___VLPRC>div:not(div:first-of-type):not(:empty)::before,.-esm-ward__ward-patient-card__wardPatientCardHeader___1Uixu>div:not(div:first-of-type):not(:empty)::before,.-esm-ward__ward-patient-card__wardPatientAddress___8GXOI>div:not(div:first-of-type):not(:empty)::before{content:"·";padding:0 .25rem}',"",{version:3,sources:["webpack://./src/ward-patient-card/ward-patient-card.scss","webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAAA,MCoDA,mBACE,CAAA,mBACA,CAAA,mBACA,CAAA,yBACA,CAAA,+BACA,CAAA,oGACA,CAAA,2GACA,CAAA,uDDtDF,wDE61BI,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CAAA,aD71BM,CAAA,YDIR,CAAA,cACA,CAAA,kBACA,CAAA,UGKW,CAAA,qBFfL,CAAA,iBDcN,CAAA,mIAEA,4BACE,CAAA,6DAIJ,WACE,CAAA,SACA,CAAA,qEAEA,UACE,CAAA,iBACA,CAAA,OACA,CAAA,SACA,CAAA,cACA,CAAA,8BACA,CAAA,6BACA,CAAA,sJAGF,oBCfe,CAAA,mEDoBf,YACE,CAAA,2EAKF,UACE,CAAA,iBACA,CAAA,OACA,CAAA,SACA,CAAA,cACA,CAAA,wBACA,CAAA,6BACA,CAAA,0DAIJ,UACE,CAAA,cGjCW,CAAA,gEHqCb,YACE,CAAA,oEAGF,YACE,CAAA,yFAEA,aACE,CAAA,6DAIJ,YAEE,CAAA,cACA,CAAA,uDAGF,uDEixBI,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CAAA,aD71BM,CAAA,+DDgFR,qBACE,CAAA,4DAIJ,2DEwwBI,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CAAA,iBFtwBF,CAAA,UC3FM,CAAA,wBAUU,CAAA,cEeL,CAAA,YAAA,CAAA,aAAA,CAAA,YHwEX,CAAA,sBACA,CAAA,kBACA,CAAA,wGAEA,wBC1Fc,CAAA,aADE,CAAA,oDDiGlB,YACE,CAAA,sBACA,CAAA,kBACA,CAAA,0DAGF,YAEE,CAAA,cACA,CAAA,kBACA,CAAA,UGtGW,CAAA,2DH0Gb,oBG1Ga,CAAA,wSH+GX,YACE,CAAA,kBACA,CAAA,gUAEA,WACE,CAAA,gBACA",sourcesContent:["@use '@carbon/colors';\n@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.wardPatientCard {\n @include type.type-style('body-compact-01');\n color: $text-02;\n\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: layout.$spacing-02;\n background-color: $ui-02;\n\n position: relative; // this allows positioning the button correctly\n\n > .wardPatientCardRow:not(:first-child) {\n border-top: 1px colors.$gray-20 solid;\n }\n}\n\n.wardPatientCardButton {\n border: none;\n padding: 0;\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n z-index: 1;\n cursor: pointer;\n border: 2px solid transparent;\n transition: border-color 200ms;\n }\n\n &:hover::before,\n &:focus::before {\n border-color: $interactive-01;\n }\n\n &:focus {\n outline: none;\n }\n}\n\n.activeWardPatientCardButton {\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n z-index: 1;\n cursor: pointer;\n border: 2px solid $interactive-01;\n transition: border-color 200ms;\n }\n}\n\n.wardPatientCardRow {\n width: 100%;\n padding: layout.$spacing-04;\n}\n\n.wardPatientCardRow:empty {\n display: none;\n}\n\n.wardPatientCardExtensionSlot {\n display: none;\n\n &:has(div:not(:empty)) {\n display: block;\n }\n}\n\n.wardPatientCardHeader {\n @extend .dotSeparatedChildren;\n display: flex;\n flex-wrap: wrap;\n}\n\n.wardPatientName {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n\n &::before {\n content: '' !important;\n }\n}\n\n.wardPatientBedNumber {\n @include type.type-style('heading-compact-01');\n border-radius: 50%;\n color: $ui-02;\n background-color: $color-blue-60-2;\n padding: layout.$spacing-04;\n width: layout.$spacing-04;\n height: layout.$spacing-04;\n display: flex;\n justify-content: center;\n align-items: center;\n\n &.empty {\n background-color: $color-blue-10;\n color: $color-blue-60-2;\n }\n}\n\n.bedNumberBox {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.wardPatientAddress {\n @extend .dotSeparatedChildren;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: layout.$spacing-02;\n}\n\n.wardPatientObsLabel {\n padding-right: layout.$spacing-02;\n}\n\n.dotSeparatedChildren {\n > div:not(div:first-of-type):not(:empty) {\n display: flex;\n align-items: center;\n\n &::before {\n content: '·';\n padding: 0 layout.$spacing-02;\n }\n }\n}\n","$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","//\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","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),o.locals={wardPatientCard:"-esm-ward__ward-patient-card__wardPatientCard___ST-Dh",wardPatientCardRow:"-esm-ward__ward-patient-card__wardPatientCardRow___rlwo5",wardPatientCardButton:"-esm-ward__ward-patient-card__wardPatientCardButton___RaZ9T",activeWardPatientCardButton:"-esm-ward__ward-patient-card__activeWardPatientCardButton___WSF3y",wardPatientCardExtensionSlot:"-esm-ward__ward-patient-card__wardPatientCardExtensionSlot___EmU0w",wardPatientCardHeader:"-esm-ward__ward-patient-card__wardPatientCardHeader___1Uixu",wardPatientName:"-esm-ward__ward-patient-card__wardPatientName___gbM15",wardPatientBedNumber:"-esm-ward__ward-patient-card__wardPatientBedNumber___yTTXs",empty:"-esm-ward__ward-patient-card__empty___uXOrP",bedNumberBox:"-esm-ward__ward-patient-card__bedNumberBox___jKYmA",wardPatientAddress:"-esm-ward__ward-patient-card__wardPatientAddress___8GXOI",wardPatientObsLabel:"-esm-ward__ward-patient-card__wardPatientObsLabel___XU9wK",dotSeparatedChildren:"-esm-ward__ward-patient-card__dotSeparatedChildren___VLPRC"};const s=o},6367:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(5698),i=t.n(a),r=t(9613),o=t.n(r)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-ward__admission-requests__admissionRequestsContainer___fshiF{background-color:#525252;display:flex;align-items:center;padding:.25rem 0 .25rem .75rem;background-color:#393939}.-esm-ward__admission-requests__admissionRequestsContainer___fshiF>button{color:#78a9ff}.-esm-ward__admission-requests__admissionRequestsContainer___fshiF>button svg{fill:#78a9ff !important}.-esm-ward__admission-requests__admissionRequestsContainer___fshiF>button:hover{color:#78a9ff}.-esm-ward__admission-requests__movementIcon___F9fJg{padding:.25rem;border-radius:50%;fill:#e0e0e0;background-color:#0f62fe;margin-right:.5rem}.-esm-ward__admission-requests__content___a64ot{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);color:#fff;margin-right:.5rem}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-view-header/admission-requests.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,mEACE,wBDIc,CCHd,YAAA,CACA,kBAAA,CACA,8BAAA,CACA,wBAAA,CAEA,0EACE,aAAA,CAEA,8EACE,uBAAA,CAIJ,gFACE,aAAA,CAIJ,qDACE,cCTW,CDUX,iBAAA,CACA,YDzBM,CC0BN,wBDjBgB,CCkBhB,kBCRW,CDWb,gDEk0BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CFh0BF,UDjCM,CCkCN,kBCdW",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/type';\n@use '@carbon/layout';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.admissionRequestsContainer {\n background-color: $color-gray-70;\n display: flex;\n align-items: center;\n padding: layout.$spacing-02 0 layout.$spacing-02 layout.$spacing-04;\n background-color: #393939;\n\n & > button {\n color: #78a9ff;\n\n svg {\n fill: #78a9ff !important;\n }\n }\n\n & > button:hover {\n color: #78a9ff;\n }\n}\n\n.movementIcon {\n padding: layout.$spacing-02;\n border-radius: 50%;\n fill: $ui-03;\n background-color: $color-blue-60-2;\n margin-right: layout.$spacing-03;\n}\n\n.content {\n @include type.type-style('heading-compact-01');\n color: $ui-02;\n margin-right: layout.$spacing-03;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\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:""}]),o.locals={admissionRequestsContainer:"-esm-ward__admission-requests__admissionRequestsContainer___fshiF",movementIcon:"-esm-ward__admission-requests__movementIcon___F9fJg",content:"-esm-ward__admission-requests__content___a64ot"};const s=o},9880:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(5698),i=t.n(a),r=t(9613),o=t.n(r)()(i());o.push([e.id,".-esm-ward__ward-view-header__wardViewHeader___L6i0v{margin:1rem 0;display:flex;align-items:center;justify-content:space-between}","",{version:3,sources:["webpack://./src/ward-view-header/ward-view-header.scss"],names:[],mappings:"AAEA,qDACE,aAAA,CACA,YAAA,CACA,kBAAA,CACA,6BAAA",sourcesContent:["@use '@carbon/layout';\n\n.wardViewHeader {\n margin: layout.$spacing-05 0;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n"],sourceRoot:""}]),o.locals={wardViewHeader:"-esm-ward__ward-view-header__wardViewHeader___L6i0v"};const s=o},3971:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(5698),i=t.n(a),r=t(9613),o=t.n(r)()(i());o.push([e.id,".-esm-ward__ward-view__wardView___FbpB2{background-color:#e4e4e4;position:absolute;top:var(--omrs-topnav-height);bottom:0;left:0;right:0;display:flex;flex-direction:column;padding:0 1rem}.-esm-ward__ward-view__wardViewMain___jYzEv{background-color:#e4e4e4;grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));display:grid;gap:1rem;padding:1rem}","",{version:3,sources:["webpack://./src/ward-view/ward-view.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAEA,wCACE,wBAAA,CACA,iBAAA,CACA,6BAAA,CACA,QAAA,CACA,MAAA,CACA,OAAA,CACA,YAAA,CACA,qBAAA,CACA,cAAA,CAGF,4CACE,wBAAA,CACA,2DAAA,CACA,YAAA,CACA,QCaW,CDZX,YCYW",sourcesContent:["@use '@carbon/layout';\n\n.wardView {\n background-color: #e4e4e4;\n position: absolute;\n top: var(--omrs-topnav-height);\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n flex-direction: column;\n padding: 0 layout.$spacing-05;\n}\n\n.wardViewMain {\n background-color: #e4e4e4;\n grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));\n display: grid;\n gap: layout.$spacing-05;\n padding: layout.$spacing-05;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),o.locals={wardView:"-esm-ward__ward-view__wardView___FbpB2",wardViewMain:"-esm-ward__ward-view__wardViewMain___jYzEv"};const s=o},3338:(e,n,t)=>{"use strict";t.d(n,{Z:()=>b});var a=t(6062),i=t.n(a),r=t(4036),o=t.n(r),s=t(6793),l=t.n(s),p=t(7892),c=t.n(p),d=t(1173),u=t.n(d),f=t(2464),g=t.n(f),y=t(2461),h={};h.styleTagTransform=g(),h.setAttributes=c(),h.insert=l().bind(null,"head"),h.domAPI=o(),h.insertStyleElement=u(),i()(y.Z,h);const b=y.Z&&y.Z.locals?y.Z.locals:void 0},225:(e,n,t)=>{"use strict";t.d(n,{jS:()=>o,jb:()=>i});var a=t(2870),i={id:"default",headerRowElements:["patient-age","patient-address","patient-identifier"],footerRowElements:[],appliedTo:null},r=["patient-age","time-on-ward","time-since-admission"],o={wardPatientCards:{_description:"Configure the display of ward patient cards",obsElementDefinitions:{_type:a.Type.Array,_description:"Defines obs display elements that can be included in the card header or footer.",_default:[],_elements:{id:{_type:a.Type.String,_description:"The unique identifier for this patient card element"},conceptUuid:{_type:a.Type.UUID,_description:"Identifies the concept to use to identify the desired observations."},label:{_type:a.Type.String,_description:"Optional. The custom label or i18n key to the translated label to display. If not provided, defaults to the concept's name. (Note that this can be set to an empty string to not show a label)",_default:null},labelI18nModule:{_type:a.Type.String,_description:"Optional. The custom module to use for translation of the label. If not provided, the label will not be translated.",_default:null},orderBy:{_type:a.Type.String,_description:"One of 'ascending' or 'descending', specifying whether to display the obs by obsDatetime ascendingly or descendingly.",_default:"descending",_validators:[a.validators.oneOf(["ascending","descending"])]},limit:{_type:a.Type.Number,_description:"If set to a number greater than one, this will show multiple obs for this concept, which will appear as a list. Set to 0 for unlimited.",_default:1},onlyWithinCurrentVisit:{_type:a.Type.Boolean,_description:"Optional. If true, limits display to only observations within current visit. Defaults to false",_default:!1}}},identifierElementDefinitions:{_type:a.Type.Array,_description:"Defines patient identifier elements that can be included in the card header or footer. The default element 'patient-identifier' displays the preferred identifier.",_default:[{id:"patient-identifier"}],_elements:{id:{_type:a.Type.String,_description:"The unique identifier for this patient card element"},identifierTypeUuid:{_type:a.Type.UUID,_description:"The UUID of the identifier type to display. If not provided, defaults to the preferred identifier.",_default:null},label:{_type:a.Type.String,_description:"the custom label or i18n key to the translated label to display for patient identifier. If not provided, defaults to the patient-identifier name.",_default:null},labelI18nModule:{_type:a.Type.String,_description:"Optional. The custom module to use for translation of the label",_default:null}}},addressElementDefinitions:{_type:a.Type.Array,_description:"Defines patient address elements that can be included in the card header or footer.",_default:[{id:"patient-address",fields:["cityVillage","country"]}],_elements:{fields:{id:{_type:a.Type.String,_description:"The unique identifier for this patient card element"},fields:{_type:a.Type.Array,_description:"The fields of the address to display",_elements:{_type:a.Type.String,_validators:[a.validators.oneOf(["cityVillage","stateProvince","country","postalCode","countyDistrict","latitude","longitude","address1","address2","address3","address4","address5","address6","address7","address8","address9","address10","address11","address12","address13","address14","address15"])]}}}}},cardDefinitions:{_type:a.Type.Array,_default:[i],_description:"An array of card configuration. A card configuration can be applied to different ward locations.\n If multiple card configurations apply to a location, only the first one is chosen.",_elements:{id:{_type:a.Type.String,_description:'The unique identifier for this card definition. This is used to set the name of the extension slot the card has, where the rows go. The slot name is "ward-patient-card-<id>", unless the id is "default", in which case the slot name is "ward-patient-card".',_default:"default"},headerRowElements:{_type:a.Type.Array,_description:"IDs of patient card elements to appear in the header row. These can be built-in, or custom ones can be defined in patientCardElementDefinitions. Built-in elements are: '".concat(r.join("', '"),"'."),_elements:{_type:a.Type.String}},footerRowElements:{_type:a.Type.Array,_description:"IDs of patient card elements to appear in the footer row. These can be built-in, or custom ones can be defined in patientCardElementDefinitions. Built-in elements are: '".concat(r.join("', '"),"'."),_elements:{_type:a.Type.String}},appliedTo:{_type:a.Type.Array,_description:"Conditions under which this card definition should be used. If not provided, the configuration is applied to all wards.",_elements:{location:{_type:a.Type.UUID,_description:"The UUID of the location. If not provided, applies to all wards.",_default:null}}}}}}}},4954:(e,n,t)=>{"use strict";t.d(n,{e:()=>a});var a="@kenyaemr/esm-ward-app"},4211:(e,n,t)=>{"use strict";t.d(n,{h:()=>p});var a=t(2870),i=t(5907),r=t.n(i),o=t(874);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var l="custom:(ward,totalBeds,occupiedBeds,bedLayouts:(rowNumber,columnNumber,bedNumber,bedId,bedUuid,status,location,patients:(person:full,identifiers,uuid)))";function p(){var e,n,t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,p=(0,o.Z)().location,c=(null===(e=p)||void 0===e?void 0:e.uuid)?"".concat(a.restBaseUrl,"/admissionLocation/").concat(null===(n=p)||void 0===n?void 0:n.uuid,"?v=").concat(i):null,d=r()(c,a.openmrsFetch),u=d.data,f=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t,a,i={},r=Object.keys(e);for(a=0;a<r.length;a++)t=r[a],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)t=r[a],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(d,["data"]);return 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){s(e,n,t[n])}))}return e}({admissionLocation:null===(t=u)||void 0===t?void 0:t.data},f)}},5196:(e,n,t)=>{"use strict";t.d(n,{O:()=>s});var a=t(2870),i=t(5206),r=t(225),o=t(874);function s(){var e=(0,a.useConfig)().wardPatientCards,n=(0,o.Z)().location.uuid;return(0,i.useMemo)((function(){return e.cardDefinitions.find((function(e){var t;return null==e.appliedTo||0==(null===(t=e.appliedTo)||void 0===t?void 0:t.length)||e.appliedTo.some((function(e){return e.location==n}))}))}),[e,n])||(console.warn("No ward card configuration has `appliedTo` criteria that matches the current location. Using the default configuration."),r.jb)}},8591:(e,n,t)=>{"use strict";t.d(n,{o:()=>p});var a=t(2870),i=t(3649),r=t(874),o=t(5206);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var l="custom:(dispositionLocation,dispositionType,disposition,dispositionEncounter:full,patient:(uuid,identifiers,voided,person:(uuid,display,gender,age,birthdate,birthtime,preferredName,preferredAddress,dead,deathDate)),dispositionObsGroup,visit)";function p(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["ADMIT","TRANSFER"],p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,c=(0,r.Z)().location,d=new URLSearchParams;d.set("dispositionType",t.join(",")),d.set("dispositionLocation",null===(e=c)||void 0===e?void 0:e.uuid),d.set("v",p);var u=(0,i.ZP)((null===(n=c)||void 0===n?void 0:n.uuid)?"".concat(a.restBaseUrl,"/emrapi/inpatient/request?").concat(d.toString()):null,a.openmrsFetch),f=u.data,g=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t,a,i={},r=Object.keys(e);for(a=0;a<r.length;a++)t=r[a],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)t=r[a],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(u,["data"]),y=(0,o.useMemo)((function(){var e,n;return 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){s(e,n,t[n])}))}return e}({inpatientRequests:null===(n=f)||void 0===n||null===(e=n.data)||void 0===e?void 0:e.results},g)}),[f,g]);return y}},3889:(e,n,t)=>{"use strict";t.d(n,{s:()=>o});var a=t(3649),i=t(2870);function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function o(e){var n,t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",s=new URLSearchParams((n=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){r(e,n,t[n])}))}return e}({},e),t=null!=(t={v:o})?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t.push.apply(t,a)}return t}(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n)),l="".concat(i.restBaseUrl,"/obs?").concat(s);return(0,a.ZP)(l,i.openmrsFetch)}},874:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var a=t(2870),i=t(8744),r=t(5907),o=t.n(r);function s(){var e,n=(0,i.useParams)().locationUuid,t=(0,a.useSession)().sessionLocation,r=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom:(display,uuid)";return o()(e?"".concat(a.restBaseUrl,"/location/").concat(e,"?v=").concat(n):null,a.openmrsFetch)}(n||null),s=r.data,l=r.isLoading,p=r.error,c=n&&p;return{location:n?null===(e=s)||void 0===e?void 0:e.data:t,isLoadingLocation:l,errorFetchingLocation:p,invalidLocation:c}}},8346:(e,n,t)=>{"use strict";t.r(n),t.d(n,{admissionRequestNoteRowExtension:()=>Ne,admissionRequestWorkspace:()=>Ce,admitPatientFormWorkspace:()=>ze,coloredObsTagCardRowExtension:()=>Oe,importTranslation:()=>ve,patientTransferAndSwapWorkspace:()=>Pe,patientTransferAndSwapWorkspaceSiderailIcon:()=>De,root:()=>ke,startupApp:()=>Ie,wardDashboardLink:()=>xe,wardPatientActionButtonExtension:()=>Te,wardPatientNotesActionButtonExtension:()=>Be,wardPatientNotesWorkspace:()=>Ee,wardPatientWorkspace:()=>Me});var a=t(2870),i=t(225),r={conceptUuid:{_type:a.Type.UUID,_description:"Required. Identifies the concept for the admission request note.",_default:"161011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},o={conceptUuid:{_type:a.Type.UUID,_description:"Required. Identifies the concept to use to identify the desired observations.",_default:"1284AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},summaryLabel:{_type:a.Type.String,_description:"Optional. The custom label or i18n key to the translated label to display for the summary tag. The summary tag shows the count of the number of answers that are present but not configured to show as their own tags. If not provided, defaults to the name of the concept.",_default:null},summaryLabelI18nModule:{_type:a.Type.String,_description:"Optional. The custom module to use for translation of the summary label",_default:null},summaryLabelColor:{_type:a.Type.String,_description:"The color of the summary tag. See https://react.carbondesignsystem.com/?path=/docs/components-tag--overview for a list of supported colors",_default:null},tags:{_type:a.Type.Array,_description:"An array specifying concept sets and color. Observations with coded values that are members of the specified concept sets will be displayed as their own tags with the specified color. Any observation with coded values not belonging to any concept sets specified will be summarized as a count in the summary tag. If a concept set is listed multiple times, the first matching applied-to rule takes precedence.",_default:[],_elements:{color:{_type:a.Type.String,_description:"Color of the tag. See https://react.carbondesignsystem.com/?path=/docs/components-tag--overview for a list of supported colors."},appliedToConceptSets:{_type:a.Type.Array,_description:"The concept sets which the color applies to. Observations with coded values that are members of the specified concept sets will be displayed as their own tag with the specified color. If an observation's coded value belongs to multiple concept sets, the first matching applied-to rule takes precedence.",_elements:{_type:a.Type.UUID}}}}},s=t(4954),l=t(5206),p=t.n(l),c=t(2524),d=t.n(c),u=t(8744),f=t(4924);function g(e){var n=e.dashboardLinkConfig,t=(0,f.useTranslation)().t,i=n.name,r=n.title,o=(0,u.useLocation)(),s="".concat(window.spaBase,"/home"),c=(0,l.useMemo)((function(){var e=o.pathname.split("/home"),n=e[e.length-1];return decodeURIComponent(n)}),[o.pathname]);return p().createElement(a.ConfigurableLink,{className:d()("cds--side-nav__link",{"active-left-nav-link":c.match(i)}),to:"".concat(s,"/").concat(i)},t(r))}var y=t(8833),h=t(6062),b=t.n(h),m=t(4036),$=t.n(m),w=t(6793),A=t.n(w),v=t(7892),_=t.n(v),k=t(1173),x=t.n(k),C=t(2464),z=t.n(C),M=t(6937),E={};E.styleTagTransform=z(),E.setAttributes=_(),E.insert=A().bind(null,"head"),E.domAPI=$(),E.insertStyleElement=x(),b()(M.Z,E);const T=M.Z&&M.Z.locals?M.Z.locals:void 0,B=function(){return p().createElement("div",{className:T.container+" "+T.skeleton},p().createElement(y.Cqk,null),p().createElement(y.Cqk,{className:T.skeletonText}))};var O=t(4211),N=t(3338);const P=function(e){var n=e.bed,t=(0,f.useTranslation)().t;return p().createElement("div",{className:T.container},p().createElement("span",{className:"".concat(N.Z.wardPatientBedNumber," ").concat(N.Z.empty)},n.bedNumber),p().createElement("p",{className:T.emptyBed},t("emptyBed","Empty bed")))};var D=t(5196),I=t(4854),S=t(1337),q=t(369);function j(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){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){j(e,n,t[n])}))}return e}const R=function(e){var n=e.patient,t=e.bed,i=(0,D.O)(),r=i.id,o=i.headerRowElements,s=i.footerRowElements,l="default"==r?"ward-patient-card-header-slot":"ward-patient-card-header-".concat(r,"-slot"),c="default"==r?"ward-patient-card-slot":"ward-patient-card-".concat(r,"-slot"),u="default"==r?"ward-patient-card-footer-slot":"ward-patient-card-footer-".concat(r,"-slot");return p().createElement("div",{className:N.Z.wardPatientCard},p().createElement("div",{className:d()(N.Z.wardPatientCardRow,N.Z.wardPatientCardHeader)},t?p().createElement(I.Z,{bed:t}):null,p().createElement(S.Z,{patient:n}),o.map((function(t,a){return p().createElement(q.L,L({key:"ward-card-".concat(n.uuid,"-header-").concat(a),elementId:t},e))})),p().createElement(a.ExtensionSlot,{name:l,state:e})),p().createElement(a.ExtensionSlot,{name:c,state:e,className:d()(N.Z.wardPatientCardRow,N.Z.wardPatientCardExtensionSlot)}),p().createElement("div",{className:N.Z.wardPatientCardRow},s.map((function(t,a){return p().createElement(q.L,L({key:"ward-card-".concat(n.uuid,"-footer-").concat(a),elementId:t},e))})),p().createElement(a.ExtensionSlot,{name:u,state:e})),p().createElement("button",{className:N.Z.wardPatientCardButton,onClick:function(){(0,a.launchWorkspace)("ward-patient-workspace",{wardPatient:e})}},(0,a.getPatientName)(n.person)))};var F=t(671),Z={};Z.styleTagTransform=z(),Z.setAttributes=_(),Z.insert=A().bind(null,"head"),Z.domAPI=$(),Z.insertStyleElement=x(),b()(F.Z,Z);const U=F.Z&&F.Z.locals?F.Z.locals:void 0;function W(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var G=function(){var e=(0,f.useTranslation)().t;return p().createElement("div",{className:U.bedDivider},p().createElement("div",{className:U.bedDividerLine}),p().createElement(y.Vp9,null,e("bedShare","Bed share")),p().createElement("div",{className:U.bedDividerLine}))};const V=function(e){var n=e.wardPatients,t=e.bed;return p().createElement("div",{className:U.occupiedBed},n.map((function(e,a){var i,r,o=a===n.length-1;return p().createElement("div",{key:"occupied-bed-pt-"+e.patient.uuid},p().createElement(R,(i=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){W(e,n,t[n])}))}return e}({},e),r=null!=(r={bed:t})?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t.push.apply(t,a)}return t}(Object(r)).forEach((function(e){Object.defineProperty(i,e,Object.getOwnPropertyDescriptor(r,e))})),i)),!o&&p().createElement(G,null))})))},Y=function(e){var n,t=e.bed,a=e.wardPatients;return(null===(n=a)||void 0===n?void 0:n.length)>0?p().createElement(V,{bed:t,wardPatients:a}):p().createElement(P,{bed:t})};var H=t(9463),X=t(3971),K={};K.styleTagTransform=z(),K.setAttributes=_(),K.insert=A().bind(null,"head"),K.domAPI=$(),K.insertStyleElement=x(),b()(X.Z,K);const J=X.Z&&X.Z.locals?X.Z.locals:void 0;var Q=t(9880),ee={};ee.styleTagTransform=z(),ee.setAttributes=_(),ee.insert=A().bind(null,"head"),ee.domAPI=$(),ee.insertStyleElement=x(),b()(Q.Z,ee);const ne=Q.Z&&Q.Z.locals?Q.Z.locals:void 0;var te=t(8043),ae=t(8591),ie=t(6367),re={};re.styleTagTransform=z(),re.setAttributes=_(),re.insert=A().bind(null,"head"),re.domAPI=$(),re.insertStyleElement=x(),b()(ie.Z,re);const oe=ie.Z&&ie.Z.locals?ie.Z.locals:void 0,se=function(){var e,n=(0,ae.o)(["ADMIT","TRANSFER"]),t=n.inpatientRequests,i=n.isLoading,r=n.error,o=(0,f.useTranslation)().t,s=(0,a.useLayoutType)();return i||!(null===(e=t)||void 0===e?void 0:e.length)?null:r?(console.error(r),p().createElement(y.K0D,{kind:"error",title:o("errorLoadingPatientAdmissionRequests","Error Loading patient admission requests")})):p().createElement("div",{className:oe.admissionRequestsContainer},p().createElement(te.i5,{className:oe.movementIcon,size:"24"}),p().createElement("span",{className:oe.content},o("admissionRequestsCount","{{count}} admission request(s)",{count:t.length})),p().createElement(y.zxk,{onClick:function(){return(0,a.launchWorkspace)("admission-requests-workspace")},renderIcon:a.ArrowRightIcon,kind:"ghost",size:(0,a.isDesktop)(s)?"sm":"lg"},o("manage","Manage")))};var le=t(874);const pe=function(){var e,n=(0,le.Z)().location;return p().createElement("div",{className:ne.wardViewHeader},p().createElement("h4",null,null===(e=n)||void 0===e?void 0:e.display),p().createElement(se,null))};var ce=t(3649);function de(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ue(){var e,n,t=(0,le.Z)().location,i=(0,ce.ZP)(t?"".concat(a.restBaseUrl,"/emrapi/inpatient/admission?currentInpatientLocation=").concat(t.uuid,"&v=").concat("custom:(visit,patient:(uuid,identifiers,voided,person:(uuid,display,gender,age,birthdate,birthtime,preferredName,preferredAddress,dead,deathDate)),encounterAssigningToCurrentInpatientLocation:(encounterDatetime),firstAdmissionOrTransferEncounter:(encounterDatetime),)"):null,a.openmrsFetch),r=i.data,o=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t,a,i={},r=Object.keys(e);for(a=0;a<r.length;a++)t=r[a],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)t=r[a],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(i,["data"]);return 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){de(e,n,t[n])}))}return e}({inpatientAdmissions:null===(n=r)||void 0===n||null===(e=n.data)||void 0===e?void 0:e.results},o)}var fe=t(4894),ge={};ge.styleTagTransform=z(),ge.setAttributes=_(),ge.insert=A().bind(null,"head"),ge.domAPI=$(),ge.insertStyleElement=x(),b()(fe.Z,ge);const ye=fe.Z&&fe.Z.locals?fe.Z.locals:void 0,he=function(e){var n=e.wardPatient;return p().createElement("div",{className:ye.unassignedPatient},p().createElement("div",{key:"unassigned-bed-pt-"+n.patient.uuid},p().createElement(R,n)))};var be=function(){var e,n,t,a=(0,le.Z)().location,i=(0,O.h)(),r=i.admissionLocation,o=i.isLoading,s=i.error,c=ue(),d=c.inpatientAdmissions,u=c.isLoading,g=c.error,h=(0,f.useTranslation)().t,b=(0,l.useMemo)((function(){var e=new Map,n=!0,t=!1,a=void 0;try{for(var i,r=(null!=d?d:[])[Symbol.iterator]();!(n=(i=r.next()).done);n=!0){var o=i.value;e.set(o.patient.uuid,o)}}catch(e){t=!0,a=e}finally{try{n||null==r.return||r.return()}finally{if(t)throw a}}return e}),[d]);if(null!=r||null!=d){var m,$,w,A=r&&(0,H.s)(r),v=null===(m=A)||void 0===m?void 0:m.map((function(e){var n=e.patients,t=(0,H.i)(e),a=n.map((function(e){var n=b.get(e.uuid);return n?{patient:n.patient,visit:n.visit,bed:t,inpatientAdmission:n,inpatientRequest:null}:{patient:e,visit:null,bed:t,inpatientAdmission:null,inpatientRequest:null}}));return p().createElement(Y,{key:t.uuid,bed:t,wardPatients:a})})),_=null===($=A)||void 0===$?void 0:$.flatMap((function(e){return e.patients.map((function(e){return e.uuid}))})),k=d&&d.filter((function(e){return!_||!_.includes(e.patient.uuid)})).map((function(e){return p().createElement(he,{wardPatient:{patient:e.patient,visit:e.visit,bed:null,inpatientAdmission:e,inpatientRequest:null},key:e.patient.uuid})}));return p().createElement(p().Fragment,null,v,0==(null===(w=A)||void 0===w?void 0:w.length)&&p().createElement(y.K0D,{kind:"warning",lowContrast:!0,title:h("noBedsConfigured","No beds configured for this location")}),k)}return o||u?p().createElement($e,null):s?p().createElement(y.K0D,{kind:"error",lowContrast:!0,title:h("errorLoadingWardLocation","Error loading ward location"),subtitle:null!==(n=null===(e=s)||void 0===e?void 0:e.message)&&void 0!==n?n:h("invalidWardLocation","Invalid ward location: {{location}}",{location:a.display})}):p().createElement(y.K0D,{kind:"error",lowContrast:!0,title:h("errorLoadingPatients","Error loading admitted patients"),subtitle:null===(t=g)||void 0===t?void 0:t.message})},me=function(){var e,n=ue(),t=n.inpatientAdmissions,a=n.isLoading,i=n.error,r=(0,f.useTranslation)().t;if(t){var o,s=null===(o=t)||void 0===o?void 0:o.map((function(e){var n=e.patient,t=e.visit;return p().createElement(he,{wardPatient:{patient:n,visit:t,bed:null,inpatientAdmission:e,inpatientRequest:null},key:e.patient.uuid})}));return p().createElement(p().Fragment,null,s)}return a?p().createElement($e,null):p().createElement(y.K0D,{kind:"error",lowContrast:!0,title:r("errorLoadingPatients","Error loading admitted patients"),subtitle:null===(e=i)||void 0===e?void 0:e.message})},$e=function(){return p().createElement(p().Fragment,null,Array(20).fill(0).map((function(e,n){return p().createElement(B,{key:n})})))};const we=function(){var e=(0,le.Z)(),n=e.isLoadingLocation,t=e.invalidLocation,i=(0,f.useTranslation)().t,r=(0,a.useFeatureFlag)("bedmanagement-module");return n?p().createElement(p().Fragment,null):t?p().createElement(y.K0D,{kind:"error",title:i("invalidLocationSpecified","Invalid location specified")}):p().createElement("div",{className:J.wardView},p().createElement(pe,null),p().createElement("div",{className:J.wardViewMain},r?p().createElement(be,null):p().createElement(me,null)),p().createElement(a.WorkspaceContainer,{overlay:!0,contextKey:"ward"}))};var Ae,ve=t(3979),_e={featureName:"ward",moduleName:s.e},ke=(0,a.getSyncLifecycle)((function(){var e=window.getOpenmrsSpaBase()+"home/ward";return p().createElement("main",null,p().createElement(u.BrowserRouter,{basename:e},p().createElement(u.Routes,null,p().createElement(u.Route,{path:"/",element:p().createElement(we,null)}),p().createElement(u.Route,{path:"/:locationUuid",element:p().createElement(we,null)}))))}),_e),xe=(0,a.getSyncLifecycle)((Ae={name:"ward",title:"wards"},function(){return p().createElement(u.BrowserRouter,null,p().createElement(g,{dashboardLinkConfig:Ae}))}),_e),Ce=(0,a.getAsyncLifecycle)((function(){return t.e(749).then(t.bind(t,2749))}),_e),ze=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(940),t.e(659)]).then(t.bind(t,4659))}),_e),Me=(0,a.getAsyncLifecycle)((function(){return t.e(76).then(t.bind(t,3076))}),_e),Ee=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(940),t.e(577)]).then(t.bind(t,8577))}),_e),Te=(0,a.getAsyncLifecycle)((function(){return t.e(960).then(t.bind(t,2960))}),_e),Be=(0,a.getAsyncLifecycle)((function(){return t.e(767).then(t.bind(t,767))}),_e),Oe=(0,a.getAsyncLifecycle)((function(){return t.e(269).then(t.bind(t,6269))}),_e),Ne=(0,a.getAsyncLifecycle)((function(){return t.e(466).then(t.bind(t,9466))}),_e),Pe=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(940),t.e(803)]).then(t.bind(t,9803))}),_e),De=(0,a.getAsyncLifecycle)((function(){return t.e(348).then(t.bind(t,5348))}),_e);function Ie(){(0,a.registerBreadcrumbs)([]),(0,a.defineConfigSchema)(s.e,i.jS),(0,a.defineExtensionConfigSchema)("colored-obs-tags-card-row",o),(0,a.defineExtensionConfigSchema)("admission-request-note-card-row",r),(0,a.registerFeatureFlag)("bedmanagement-module","Bed Management Module","Enables features related to bed management / assignment. Requires the backend bed management module to be installed.")}},4854:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});var a=t(5206),i=t.n(a),r=t(3338);const o=function(e){var n=e.bed;return n?i().createElement("div",{className:r.Z.bedNumberBox},i().createElement("span",{className:r.Z.wardPatientBedNumber},n.bedNumber)):i().createElement(i().Fragment,null)}},1337:(e,n,t)=>{"use strict";t.d(n,{Z:()=>o});var a=t(5206),i=t.n(a),r=t(3338);const o=function(e){var n,t,a,o=e.patient;return i().createElement("div",{className:r.Z.wardPatientName},null===(a=o)||void 0===a||null===(t=a.person)||void 0===t||null===(n=t.preferredName)||void 0===n?void 0:n.display)}},7194:(e,n,t)=>{"use strict";t.d(n,{M:()=>l,p:()=>o});var a=t(2870),i=t(5907),r=t.n(i),o="custom:(uuid,display,obsDatetime,value,concept:(uuid,display),encounter:(uuid,display,visit:(uuid,display)))",s="custom:(uuid,setMembers:(uuid))";function l(e){var n=e.flatMap((function(e){return e.appliedToConceptSets})),t="".concat(a.restBaseUrl,"/concept?references=").concat(n.join(),"&v=").concat(s);return r()(t,(function(n){var t=new Map,i=!0,r=!1,o=void 0;try{for(var s,l=e[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var p=s.value,c=p.color,d=p.appliedToConceptSets,u=!0,f=!1,g=void 0;try{for(var y,h=(null!=d?d:[])[Symbol.iterator]();!(u=(y=h.next()).done);u=!0){var b=y.value;t.has(b)||t.set(b,c)}}catch(e){f=!0,g=e}finally{try{u||null==h.return||h.return()}finally{if(f)throw g}}}}catch(e){r=!0,o=e}finally{try{i||null==l.return||l.return()}finally{if(r)throw o}}return(0,a.openmrsFetch)(n).then((function(e){var n=e.data.results,a=new Map;if(n){var i=!0,r=!1,o=void 0;try{for(var s,l=n[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var p=s.value,c=!0,d=!1,u=void 0;try{for(var f,g=p.setMembers[Symbol.iterator]();!(c=(f=g.next()).done);c=!0){var y=f.value;a.has(y.uuid)||a.set(y.uuid,t.get(p.uuid))}}catch(e){d=!0,u=e}finally{try{c||null==g.return||g.return()}finally{if(d)throw u}}}}catch(e){r=!0,o=e}finally{try{i||null==l.return||l.return()}finally{if(r)throw o}}}return a}))}))}},6656:(e,n,t)=>{"use strict";t.d(n,{Z:()=>u});var a=t(8833),i=t(2870),r=t(5206),o=t.n(r),s=t(4924),l=t(3889),p=t(3338),c=t(4954),d=t(7194);const u=function(e){var n=e.config,t=e.patient,r=e.visit,u=n.conceptUuid,f=n.onlyWithinCurrentVisit,g=n.orderBy,y=n.limit,h=n.label,b=n.labelI18nModule,m=(0,l.s)({patient:t.uuid,concept:u},d.p),$=m.data,w=m.isLoading,A=(0,s.useTranslation)().t;if(w)return o().createElement(a.N2B,null);var v,_,k,x,C,z,M,E,T,B,O=null===(C=$)||void 0===C||null===(x=C.data)||void 0===x||null===(k=x.results)||void 0===k||null===(_=k.filter((function(e){var n,t;return!f||(null===(n=e.encounter.visit)||void 0===n?void 0:n.uuid)==(null===(t=r)||void 0===t?void 0:t.uuid)})))||void 0===_||null===(v=_.sort((function(e,n){return("descending"==g?-1:1)*e.obsDatetime.localeCompare(n.obsDatetime)})))||void 0===v?void 0:v.slice(0,0==y?Number.MAX_VALUE:y),N=null!=h?(0,i.translateFrom)(null!=b?b:c.e,h):null===(E=O)||void 0===E||null===(M=E[0])||void 0===M||null===(z=M.concept)||void 0===z?void 0:z.display,P=null===(T=O)||void 0===T?void 0:T.map((function(e){var n,t,a=null!==(t=null===(n=e.value)||void 0===n?void 0:n.display)&&void 0!==t?t:e.value;return o().createElement("span",{key:e.uuid}," ",a," ")}));return(null===(B=P)||void 0===B?void 0:B.length)>0?o().createElement("div",null,o().createElement("span",{className:p.Z.wardPatientObsLabel},N?A("labelColon","{{label}}:",{label:N}):""),P):null}},369:(e,n,t)=>{"use strict";t.d(n,{L:()=>b});var a=t(8833),i=t(2870),r=t(5206),o=t.n(r),s=t(4924);const l=function(e){var n,t=e.patient;return o().createElement("div",null,(0,i.age)(null===(n=t.person)||void 0===n?void 0:n.birthdate))},p=function(e){var n,t,a,i=e.patient,r=e.config,s=null===(t=i)||void 0===t||null===(n=t.person)||void 0===n?void 0:n.preferredAddress;return o().createElement(o().Fragment,null,null===(a=r.fields)||void 0===a?void 0:a.map((function(e,n){var t,a;return(null===(t=s)||void 0===t?void 0:t[e])?o().createElement("div",{key:n},null===(a=s)||void 0===a?void 0:a[e]):o().createElement("div",{key:n})})))};var c=t(4954),d=function(e,n){var t=(n.preferred?1:0)-(e.preferred?1:0);if(0==t){var a,i,r=null!==(a=e.auditInfo.dateChanged)&&void 0!==a?a:e.auditInfo.dateCreated;t=(null!==(i=n.auditInfo.dateChanged)&&void 0!==i?i:n.auditInfo.dateCreated).localeCompare(r)}return t},u={id:"patient-identifier",identifierTypeUuid:null};const f=function(e){var n,t,r,l=e.config,p=e.patient,f=(0,s.useTranslation)().t,g=null!=l?l:u,y=g.identifierTypeUuid,h=g.labelI18nModule,b=g.label,m=p.identifiers.filter((function(e){var n;return null==y||(null===(n=e.identifierType)||void 0===n?void 0:n.uuid)===y}));m.sort(d);var $=m[0],w=null!=b?(0,i.translateFrom)(null!=h?h:c.e,b):null===(t=$)||void 0===t||null===(n=t.identifierType)||void 0===n?void 0:n.name;return o().createElement("div",null,w?o().createElement(a.Vp9,null,f("identifierTypelabel","{{label}}:",{label:w})):o().createElement(o().Fragment,null),o().createElement("span",null,null===(r=$)||void 0===r?void 0:r.identifier))};var g=t(6656);const y=function(e){var n=e.encounterAssigningToCurrentInpatientLocation,t=(0,s.useTranslation)().t;if(n){var a=(0,i.age)(n.encounterDatetime);return o().createElement("div",null,t("timeOnWard","Time on this ward: {{timeOnWard}}",{timeOnWard:a}))}return o().createElement(o().Fragment,null)},h=function(e){var n=e.firstAdmissionOrTransferEncounter,t=(0,s.useTranslation)().t;if(n){var a=(0,i.age)(n.encounterDatetime);return o().createElement("div",null,t("timeSinceAdmission","Admitted: {{timeSinceAdmission}} ago",{timeSinceAdmission:a}))}return o().createElement(o().Fragment,null)};var b=function(e){var n=e.elementId,t=e.patient,r=e.visit,c=e.inpatientAdmission,d=(0,i.useConfig)().wardPatientCards,u=d.obsElementDefinitions,b=d.identifierElementDefinitions,m=d.addressElementDefinitions,$=(0,s.useTranslation)().t,w=null!=c?c:{},A=w.encounterAssigningToCurrentInpatientLocation,v=w.firstAdmissionOrTransferEncounter;switch(n){case"patient-age":return o().createElement(l,{patient:t});case"time-on-ward":return o().createElement(y,{encounterAssigningToCurrentInpatientLocation:A});case"time-since-admission":return o().createElement(h,{firstAdmissionOrTransferEncounter:v});default:var _=u.find((function(e){return e.id===n})),k=b.find((function(e){return e.id===n})),x=m.find((function(e){return e.id===n}));return _?o().createElement(g.Z,{patient:t,visit:r,config:_}):k?o().createElement(f,{patient:t,config:k}):x?o().createElement(p,{patient:t,config:x}):o().createElement(a.K0D,{kind:"error"},$("invalidElementIdCopy","The configuration provided is invalid. It contains the following unknown element ID:")," ",n)}}},9463:(e,n,t)=>{"use strict";function a(e){return{id:e.bedId,uuid:e.bedUuid,bedNumber:e.bedNumber,bedType:e.bedType,row:e.rowNumber,column:e.columnNumber,status:e.status}}function i(e){var n=new Intl.Collator([],{numeric:!0});return e.bedLayouts.filter((function(e){return e.bedId})).sort((function(e,t){return n.compare(e.bedNumber,t.bedNumber)}))}t.d(n,{i:()=>a,s:()=>i})},3979:(e,n,t)=>{var a={"./en.json":[3574,574]};function i(e){if(!t.o(a,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=a[e],i=n[0];return t.e(n[1]).then((()=>t(i)))}i.keys=()=>Object.keys(a),i.id=3979,e.exports=i}}]);
|
package/dist/346.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"346.js","mappings":"6LAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,0hCAA2hC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,sCAAsC,6EAA6E,iEAAiE,MAAQ,GAAG,SAAW,iSAAiS,eAAiB,CAAC,o7DAAo7D,qlBAAqlB,05DAA05D,w8uBAAw8uB,WAAa,MAE5h7BH,EAAwBI,OAAS,CAChC,UAAa,0CACb,SAAY,yCACZ,SAAY,yCACZ,aAAgB,8CAEjB,S,+ECVIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,qrBAAsrB,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,yCAAyC,8EAA8E,MAAQ,GAAG,SAAW,wOAAwO,eAAiB,CAAC,o7DAAo7D,8bAA8b,25DAA25D,WAAa,MAEn+KH,EAAwBI,OAAS,CAChC,YAAe,+CACf,WAAc,8CACd,eAAkB,mDAEnB,S,gFCTIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,6aAA8a,GAAG,CAAC,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AQ3I,EAAU4I,aAClBC,OAAQ7I,EAAU6I,OAEtB,CAEO,SAAS/I,EAAW/I,GAGzB,IAAI+R,EAAW,IAAIC,KAAKC,SAAS,GAAI,CAAEC,SAAS,IAIhD,OAHmBlS,EAAkB8I,WAClCa,QAAO,SAACwI,G,OAAOA,EAAGZ,K,IAClB/C,MAAK,SAAC4D,EAAMC,G,OAASN,EAASO,QAAQF,EAAKxN,UAAWyN,EAAKzN,U,GAEhE,C,yCCvBA,IAAIa,EAAM,CACT,YAAa,CACZ,KACA,MAGF,SAAS8M,EAAoBC,GAC5B,IAAIC,EAAoBnE,EAAE7I,EAAK+M,GAC9B,OAAOE,QAAQC,UAAU/E,MAAK,KAC7B,IAAIgF,EAAI,IAAIC,MAAM,uBAAyBL,EAAM,KAEjD,MADAI,EAAEE,KAAO,mBACHF,CAAC,IAIT,IAAIG,EAAMtN,EAAI+M,GAAM/V,EAAKsW,EAAI,GAC7B,OAAON,EAAoBG,EAAEG,EAAI,IAAInF,MAAK,IAClC6E,EAAoBhW,IAE7B,CACA8V,EAAoBS,KAAO,IAAOC,OAAOD,KAAKvN,GAC9C8M,EAAoB9V,GAAK,KACzBD,EAAO0W,QAAUX,C","sources":["webpack://@kenyaemr/esm-ward-app/./src/beds/empty-bed.scss","webpack://@kenyaemr/esm-ward-app/./src/beds/occupied-bed.scss","webpack://@kenyaemr/esm-ward-app/./src/beds/unassigned-patient.scss","webpack://@kenyaemr/esm-ward-app/./src/ward-patient-card/ward-patient-card.scss","webpack://@kenyaemr/esm-ward-app/./src/ward-view-header/admission-requests.scss","webpack://@kenyaemr/esm-ward-app/./src/ward-view-header/ward-view-header.scss","webpack://@kenyaemr/esm-ward-app/./src/ward-view/ward-view.scss","webpack://@kenyaemr/esm-ward-app/./src/ward-patient-card/ward-patient-card.scss?e513","webpack://@kenyaemr/esm-ward-app/./src/config-schema.ts","webpack://@kenyaemr/esm-ward-app/./src/constant.ts","webpack://@kenyaemr/esm-ward-app/./src/hooks/useAdmissionLocation.ts","webpack://@kenyaemr/esm-ward-app/./src/hooks/useCurrentWardCardConfig.ts","webpack://@kenyaemr/esm-ward-app/./src/hooks/useInpatientRequest.ts","webpack://@kenyaemr/esm-ward-app/./src/hooks/useObs.ts","webpack://@kenyaemr/esm-ward-app/./src/hooks/useWardLocation.ts","webpack://@kenyaemr/esm-ward-app/./src/hooks/useLocation.ts","webpack://@kenyaemr/esm-ward-app/./src/config-schema-admission-request-note.ts","webpack://@kenyaemr/esm-ward-app/./src/config-schema-extension-colored-obs-tags.ts","webpack://@kenyaemr/esm-ward-app/./src/createDashboardLink.component.tsx","webpack://@kenyaemr/esm-ward-app/./src/beds/empty-bed.scss?bce5","webpack://@kenyaemr/esm-ward-app/./src/beds/empty-bed-skeleton.tsx","webpack://@kenyaemr/esm-ward-app/./src/beds/empty-bed.component.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-patient-card/ward-patient-card.component.tsx","webpack://@kenyaemr/esm-ward-app/./src/beds/occupied-bed.scss?0459","webpack://@kenyaemr/esm-ward-app/./src/beds/occupied-bed.component.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-view/ward-bed.component.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-view/ward-view.scss?c127","webpack://@kenyaemr/esm-ward-app/./src/ward-view-header/ward-view-header.scss?75c1","webpack://@kenyaemr/esm-ward-app/./src/ward-view-header/admission-requests.scss?b48b","webpack://@kenyaemr/esm-ward-app/./src/ward-view-header/admission-requests-bar.component.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-view-header/ward-view-header.component.tsx","webpack://@kenyaemr/esm-ward-app/./src/hooks/useInpatientAdmission.ts","webpack://@kenyaemr/esm-ward-app/./src/beds/unassigned-patient.scss?ac23","webpack://@kenyaemr/esm-ward-app/./src/beds/unassigned-patient.component.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-view/ward-view.component.tsx","webpack://@kenyaemr/esm-ward-app/./src/index.ts","webpack://@kenyaemr/esm-ward-app/./src/root.component.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-patient-card/row-elements/ward-patient-bed-number.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-patient-card/row-elements/ward-patient-name.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-patient-card/row-elements/ward-patient-obs.resource.ts","webpack://@kenyaemr/esm-ward-app/./src/ward-patient-card/row-elements/ward-patient-obs.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-patient-card/row-elements/ward-patient-age.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-patient-card/row-elements/ward-patient-header-address.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-patient-card/row-elements/ward-patient-identifier.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-patient-card/row-elements/ward-patient-time-on-ward.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-patient-card/row-elements/ward-patient-time-since-admission.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-patient-card/ward-patient-card-element.component.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-view/ward-view.resource.ts","webpack://@kenyaemr/esm-ward-app/./translations/ lazy nonrecursive .json$"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","defaultWardPatientCard","headerRowElements","footerRowElements","appliedTo","builtInPatientCardElements","configSchema","wardPatientCards","_description","obsElementDefinitions","_type","Type","Array","_default","_elements","String","conceptUuid","UUID","label","labelI18nModule","orderBy","_validators","validators","oneOf","limit","Number","onlyWithinCurrentVisit","Boolean","identifierElementDefinitions","identifierTypeUuid","addressElementDefinitions","fields","cardDefinitions","join","location","moduleName","requestRep","useAdmissionLocation","data","rep","useWardLocation","apiUrl","uuid","restBaseUrl","useSWRImmutable","openmrsFetch","rest","admissionLocation","useCurrentWardCardConfig","useConfig","useMemo","find","cardDef","length","some","criteria","locationUuid","console","warn","defaultRep","useInpatientRequest","dispositionType","searchParams","URLSearchParams","set","useSWR","toString","results","inpatientRequests","useObs","representation","params","v","locationResponse","useParams","useSession","sessionLocation","useLocation","locationUuidFromUrl","isLoading","error","invalidLocation","errorFetchingLocation","isLoadingLocation","admissionRequestNoteRowConfigSchema","coloredObsTagsCardRowConfigSchema","summaryLabel","summaryLabelI18nModule","summaryLabelColor","tags","color","appliedToConceptSets","DashboardExtension","dashboardLinkConfig","useTranslation","t","name","title","spaBasePath","window","spaBase","navLink","pathArray","pathname","split","lastElement","decodeURIComponent","ConfigurableLink","className","classNames","match","to","div","styles","container","skeleton","SkeletonIcon","skeletonText","bed","span","wardPatientCardStyles","wardPatientBedNumber","empty","bedNumber","p","emptyBed","wardPatient","patient","headerExtensionSlotName","rowsExtensionSlotName","footerExtensionSlotName","wardPatientCard","wardPatientCardRow","wardPatientCardHeader","WardPatientBedNumber","WardPatientName","map","elementId","i","WardPatientCardElement","key","ExtensionSlot","state","wardPatientCardExtensionSlot","button","wardPatientCardButton","onClick","launchWorkspace","getPatientName","person","BedShareDivider","bedDivider","bedDividerLine","Tag","wardPatients","occupiedBed","index","last","WardPatientCard","OccupiedBed","EmptyBed","layout","useLayoutType","InlineNotification","kind","admissionRequestsContainer","Movement","movementIcon","size","content","count","Button","renderIcon","ArrowRightIcon","isDesktop","wardViewHeader","h4","display","AdmissionRequestsBar","useInpatientAdmission","customRepresentation","inpatientAdmissions","unassignedPatient","WardViewWithBedManagement","errorLoadingLocation","errorLoadingPatients","inpatientAdmissionsByPatientUuid","Map","inpatientAdmission","bedLayouts","filterBeds","wardBeds","bedLayout","patients","bedLayoutToBed","get","visit","inpatientRequest","WardBed","patientsInBedsUuids","flatMap","wardUnassignedPatients","filter","includes","UnassignedPatient","lowContrast","isLoadingPatients","EmptyBeds","subtitle","message","WardViewWithoutBedManagement","fill","_","EmptyBedSkeleton","response","isBedManagementModuleInstalled","useFeatureFlag","wardView","WardViewHeader","wardViewMain","WorkspaceContainer","overlay","contextKey","importTranslation","require","featureName","root","getSyncLifecycle","wardViewBasename","getOpenmrsSpaBase","main","BrowserRouter","basename","Routes","Route","path","element","WardView","wardDashboardLink","admissionRequestWorkspace","getAsyncLifecycle","admitPatientFormWorkspace","wardPatientWorkspace","wardPatientNotesWorkspace","wardPatientActionButtonExtension","wardPatientNotesActionButtonExtension","coloredObsTagCardRowExtension","admissionRequestNoteRowExtension","patientTransferAndSwapWorkspace","patientTransferAndSwapWorkspaceSiderailIcon","startupApp","registerBreadcrumbs","defineConfigSchema","defineExtensionConfigSchema","registerFeatureFlag","bedNumberBox","wardPatientName","preferredName","obsCustomRepresentation","conceptSetCustomRepresentation","useConceptToTagColorMap","conceptSetUuids","tag","url","conceptSetToTagColorMap","answer","has","then","conceptSets","conceptToTagColorMap","conceptSet","setMembers","concept","config","SkeletonText","obsToDisplay","obsNodes","o","encounter","sort","obsA","obsB","obsDatetime","localeCompare","slice","MAX_VALUE","labelToDisplay","translateFrom","labelModule","value","wardPatientObsLabel","age","birthdate","preferredAddress","field","identifierCompareFunction","pi1","pi2","comp","preferred","date1","auditInfo","dateChanged","dateCreated","defaultConfig","patientIdentifier","configProp","patientIdentifiers","identifiers","identifierType","identifier","encounterAssigningToCurrentInpatientLocation","timeOnWard","encounterDatetime","firstAdmissionOrTransferEncounter","timeSinceAdmission","WardPatientAge","WardPatientTimeOnWard","WardPatientTimeSinceAdmission","obsConfig","elementDef","idConfig","addressConfig","WardPatientObs","WardPatientIdentifier","WardPatientAddress","bedId","bedUuid","bedType","row","rowNumber","column","columnNumber","status","collator","Intl","Collator","numeric","bl","bedA","bedB","compare","webpackAsyncContext","req","__webpack_require__","Promise","resolve","e","Error","code","ids","keys","Object","exports"],"sourceRoot":""}
|