@openmrs/esm-ward-app 8.2.2-pre.4812 → 8.2.2-pre.4814

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/.turbo/turbo-build.log +9 -15
  2. package/dist/1576.js +1 -1
  3. package/dist/1576.js.map +1 -1
  4. package/dist/1677.js +1 -0
  5. package/dist/1677.js.map +1 -0
  6. package/dist/1925.js +1 -1
  7. package/dist/1925.js.LICENSE.txt +0 -6
  8. package/dist/1925.js.map +1 -1
  9. package/dist/2126.js +1 -1
  10. package/dist/2126.js.map +1 -1
  11. package/dist/3922.js +1 -1
  12. package/dist/3922.js.map +1 -1
  13. package/dist/4051.js +1 -1
  14. package/dist/4051.js.map +1 -1
  15. package/dist/4659.js +2 -1
  16. package/dist/4659.js.map +1 -1
  17. package/dist/5146.js +1 -1
  18. package/dist/5146.js.map +1 -1
  19. package/dist/5167.js +2 -1
  20. package/dist/5167.js.LICENSE.txt +9 -0
  21. package/dist/5167.js.map +1 -1
  22. package/dist/5204.js +1 -1
  23. package/dist/5204.js.map +1 -1
  24. package/dist/5362.js +1 -1
  25. package/dist/5362.js.map +1 -1
  26. package/dist/7019.js +2 -0
  27. package/dist/7019.js.LICENSE.txt +5 -0
  28. package/dist/7019.js.map +1 -0
  29. package/dist/7640.js +1 -0
  30. package/dist/7640.js.map +1 -0
  31. package/dist/8577.js +1 -1
  32. package/dist/8577.js.map +1 -1
  33. package/dist/8768.js +2 -1
  34. package/dist/8768.js.LICENSE.txt +9 -0
  35. package/dist/8768.js.map +1 -1
  36. package/dist/9405.js +1 -1
  37. package/dist/9405.js.map +1 -1
  38. package/dist/main.js +1 -1
  39. package/dist/main.js.LICENSE.txt +0 -35
  40. package/dist/main.js.map +1 -1
  41. package/dist/openmrs-esm-ward-app.js +1 -1
  42. package/dist/openmrs-esm-ward-app.js.buildmanifest.json +143 -97
  43. package/dist/openmrs-esm-ward-app.js.map +1 -1
  44. package/dist/routes.json +1 -1
  45. package/package.json +1 -1
  46. package/src/index.ts +1 -2
  47. package/dist/3649.js +0 -2
  48. package/dist/3649.js.map +0 -1
  49. package/dist/471.js +0 -1
  50. package/dist/471.js.map +0 -1
  51. /package/dist/{3649.js.LICENSE.txt → 4659.js.LICENSE.txt} +0 -0
package/dist/4659.js CHANGED
@@ -1 +1,2 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[4659,9405],{1217:(n,e,t)=>{t.d(e,{Z:()=>s});var a=t(5698),i=t.n(a),r=t(9613),o=t.n(r)()(i());o.push([n.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-ward__admit-patient-form__flexWrapper___SdEat{height:100%;display:flex;flex-direction:column;color:#393939}.-esm-ward__admit-patient-form__form___VclKa{display:flex;height:100%;justify-content:space-between;flex-direction:column}.-esm-ward__admit-patient-form__formContent___hgH4x{padding:1rem}.-esm-ward__admit-patient-form__formError___O1o8s{margin:-1rem -1rem 1rem -1rem}.-esm-ward__admit-patient-form__buttonSet___16JkQ button{max-width:unset !important;width:50% !important}.-esm-ward__admit-patient-form__bedSelectionDropdown___uHzhe{margin-top:.5rem}.-esm-ward__admit-patient-form__errorNotifications___RzKmK{margin-top:1rem}.-esm-ward__admit-patient-form__productiveHeading02___rlwO6{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)}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/admit-patient-form-workspace/admit-patient-form.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,oDACE,WAAA,CACA,YAAA,CACA,qBAAA,CACA,aAAA,CAGF,6CACE,YAAA,CACA,WAAA,CACA,6BAAA,CACA,qBAAA,CAGF,oDACE,YCYW,CDTb,kDACE,6BAAA,CAGF,yDACE,0BAAA,CACA,oBAAA,CAGF,6DACE,gBCXW,CDcb,2DACE,eCLW,CDQb,4DE2zBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA",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.flexWrapper {\n height: 100%;\n display: flex;\n flex-direction: column;\n color: #393939;\n}\n\n.form {\n display: flex;\n height: 100%;\n justify-content: space-between;\n flex-direction: column;\n}\n\n.formContent {\n padding: layout.$spacing-05;\n}\n\n.formError {\n margin: (-(layout.$spacing-05)) (-(layout.$spacing-05)) layout.$spacing-05 (-(layout.$spacing-05));\n}\n\n.buttonSet button {\n max-width: unset !important;\n width: 50% !important;\n}\n\n.bedSelectionDropdown {\n margin-top: layout.$spacing-03;\n}\n\n.errorNotifications {\n margin-top: layout.$spacing-05;\n}\n\n.productiveHeading02 {\n @include type.type-style('heading-compact-02');\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={flexWrapper:"-esm-ward__admit-patient-form__flexWrapper___SdEat",form:"-esm-ward__admit-patient-form__form___VclKa",formContent:"-esm-ward__admit-patient-form__formContent___hgH4x",formError:"-esm-ward__admit-patient-form__formError___O1o8s",buttonSet:"-esm-ward__admit-patient-form__buttonSet___16JkQ",bedSelectionDropdown:"-esm-ward__admit-patient-form__bedSelectionDropdown___uHzhe",errorNotifications:"-esm-ward__admit-patient-form__errorNotifications___RzKmK",productiveHeading02:"-esm-ward__admit-patient-form__productiveHeading02___rlwO6"};const s=o},6450:(n,e,t)=>{t.d(e,{Z:()=>s});var a=t(5698),i=t.n(a),r=t(9613),o=t.n(r)()(i());o.push([n.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-ward__bed-selector__radioButtonGroup___8Yn5Y{margin-top:.5rem}.-esm-ward__bed-selector__radioButtonGroup___8Yn5Y fieldset{flex-direction:column;align-items:flex-start}.-esm-ward__bed-selector__radioButtonGroup___8Yn5Y fieldset .cds--radio-button-wrapper{margin-bottom:.75rem}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/bed-selector.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,CCvDF,mDACE,gBCgBW,CDfX,4DACE,qBAAA,CACA,sBAAA,CAEA,uFACE,oBCeO",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.radioButtonGroup {\n margin-top: layout.$spacing-03;\n fieldset {\n flex-direction: column;\n align-items: flex-start;\n\n :global(.cds--radio-button-wrapper) {\n margin-bottom: layout.$spacing-04;\n }\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),o.locals={radioButtonGroup:"-esm-ward__bed-selector__radioButtonGroup___8Yn5Y"};const s=o},1376:(n,e,t)=>{t.d(e,{Z:()=>s});var a=t(5698),i=t.n(a),r=t(9613),o=t.n(r)()(i());o.push([n.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-ward__style__wardWorkspacePatientBanner___2KnUU>div{background:#f4f4f4}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/patient-banner/style.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCxDA,0DACE,kBDJI",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' as *;\n\n.wardWorkspacePatientBanner {\n > div {\n background: $ui-01;\n }\n}\n"],sourceRoot:""}]),o.locals={wardWorkspacePatientBanner:"-esm-ward__style__wardWorkspacePatientBanner___2KnUU"};const s=o},7120:(n,e,t)=>{t.d(e,{x:()=>r});var a=t(7234),i=t(3649);function r(n){var e="".concat(a.restBaseUrl,"/beds?patientUuid=").concat(n);return(0,i.ZP)(e,a.openmrsFetch)}},8559:(n,e,t)=>{t.d(e,{Z:()=>l});var a=t(7234),i=t(5206),r=t(5907),o=t.n(r),s="custom:".concat([["metadataSourceName","ref"],["orderingProviderEncounterRole","ref"],["supportsTransferLocationTag","(uuid,display,name,links)"],["unknownLocation","ref"],["denyAdmissionConcept","ref"],["admissionForm","ref"],["exitFromInpatientEncounterType","ref"],["extraPatientIdentifierTypes","ref"],["consultFreeTextCommentsConcept","ref"],["sameAsConceptMapType","ref"],["testPatientPersonAttributeType","ref"],["admissionDecisionConcept","ref"],["supportsAdmissionLocationTag","(uuid,display,name,links)"],["checkInEncounterType","ref"],["transferWithinHospitalEncounterType","ref"],["suppressedDiagnosisConcepts","ref"],["primaryIdentifierType","ref"],["nonDiagnosisConceptSets","ref"],["fullPrivilegeLevel","ref"],["unknownProvider","ref"],["diagnosisSets","ref"],["personImageDirectory","ref"],["visitNoteEncounterType","ref"],["inpatientNoteEncounterType","ref"],["transferRequestEncounterType","ref"],["consultEncounterType","ref"],["diagnosisMetadata","ref"],["narrowerThanConceptMapType","ref"],["clinicianEncounterRole","ref"],["conceptSourcesForDiagnosisSearch","ref"],["patientDiedConcept","ref"],["emrApiConceptSource","ref"],["lastViewedPatientSizeLimit","ref"],["identifierTypesToSearch","ref"],["telephoneAttributeType","ref"],["checkInClerkEncounterRole","ref"],["dischargeForm","ref"],["unknownCauseOfDeathConcept","ref"],["visitAssignmentHandlerAdjustEncounterTimeOfDayIfNecessary","ref"],["atFacilityVisitType","ref"],["visitExpireHours","ref"],["admissionEncounterType","ref"],["motherChildRelationshipType","ref"],["dispositions","ref"],["dispositionDescriptor","ref"],["highPrivilegeLevel","ref"],["supportsLoginLocationTag","(uuid,display,name,links)"],["unknownPatientPersonAttributeType","ref"],["supportsVisitsLocationTag","(uuid,display,name,links)"],["transferForm","ref"],["bedAssignmentEncounterType","ref"],["cancelADTRequestEncounterType","ref"],["admissionDecisionConcept","ref"],["denyAdmissionConcept","ref"]].map((function(n){return n.join(":")})).join(","));function l(){var n=o()("".concat(a.restBaseUrl,"/emrapi/configuration?v=").concat(s),a.openmrsFetch);return(0,i.useMemo)((function(){var e;return{emrConfiguration:null===(e=n.data)||void 0===e?void 0:e.data,isLoadingEmrConfiguration:n.isLoading,mutateEmrConfiguration:n.mutate,errorFetchingEmrConfiguration:n.error}}),[n])}},4659:(n,e,t)=>{t.r(e),t.d(e,{default:()=>D});var a=t(5206),i=t.n(a),r=t(9661),o=t(8883),s=t(3955),l=t(4924),p=t(195),c=t(7234),d=t(7120),u=t(6352),f=t(874),g=t(9985),h=t(9405),m=t(6062),b=t.n(m),y=t(4036),$=t.n(y),v=t(6793),w=t.n(v),A=t(7892),k=t.n(A),x=t(1173),C=t.n(x),_=t(2464),z=t.n(_),E=t(1217),M={};M.styleTagTransform=z(),M.setAttributes=k(),M.insert=w().bind(null,"head"),M.domAPI=$(),M.insertStyleElement=C(),b()(E.Z,M);const T=E.Z&&E.Z.locals?E.Z.locals:void 0;function S(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,a=new Array(e);t<e;t++)a[t]=n[t];return a}function N(n,e,t,a,i,r,o){try{var s=n[r](o),l=s.value}catch(n){return void t(n)}s.done?e(l):Promise.resolve(l).then(a,i)}function B(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var a,i,r=[],o=!0,s=!1;try{for(t=t.call(n);!(o=(a=t.next()).done)&&(r.push(a.value),!e||r.length!==e);o=!0);}catch(n){s=!0,i=n}finally{try{o||null==t.return||t.return()}finally{if(s)throw i}}return r}}(n,e)||function(n,e){if(n){if("string"==typeof n)return S(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?S(n,e):void 0}}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const D=function(n){var e,t,m,b,y,$,v,w=n.wardPatient,A=n.closeWorkspace,k=n.closeWorkspaceWithSavedChanges,x=n.promptBeforeClosing,C=null!=w?w:{},_=C.patient,z=null!==(b=null===(e=C.inpatientRequest)||void 0===e?void 0:e.dispositionType)&&void 0!==b?b:"ADMIT",E=(0,l.useTranslation)().t,M=(0,f.Z)().location,S=B((0,a.useState)(!1),2),D=S[0],I=S[1],P=(0,u.CW)(),F=P.admitPatient,L=P.isLoadingEmrConfiguration,W=P.errorFetchingEmrConfiguration,O=B((0,a.useState)(!1),2),G=O[0],Z=O[1],q=(null!==(y=(0,c.useAppContext)("ward-view-context"))&&void 0!==y?y:{}).wardPatientGroupDetails,j=(null!==($=null===(t=q)||void 0===t?void 0:t.admissionLocationResponse)&&void 0!==$?$:{}).isLoading,U=(0,d.x)(_.uuid),H=U.data,R=U.isLoading,Y=j?[]:null!==(v=null===(m=q)||void 0===m?void 0:m.bedLayouts)&&void 0!==v?v:[],K=(0,a.useMemo)((function(){return p.z.object({bedId:p.z.number().optional()})}),[]),V=(0,s.cI)({resolver:(0,o.F)(K)}),X=V.control,Q=V.formState,J=Q.errors,nn=Q.isDirty,en=V.handleSubmit;(0,a.useEffect)((function(){x((function(){return nn}))}),[nn,x]);var tn=(0,a.useCallback)((function(n){Z(!0),I(!1)}),[]);return q?i().createElement("div",{className:T.flexWrapper},i().createElement(h.default,{wardPatient:w}),i().createElement(r.l09,{control:X,className:T.form,onSubmit:en((function(n){Z(!1),I(!0);var e=Y.find((function(e){return e.bedId===n.bedId}));F(_,z).then(function(){var t,a=(t=function(t){var a,i,r,o,s;return function(n,e){var t,a,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,a&&(i=2&r[0]?a.return:r[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,a=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){o=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){o.label=r[1];break}if(6===r[0]&&o.label<i[1]){o.label=i[1],i=r;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(r);break}i[2]&&o.ops.pop(),o.trys.pop();continue}r=e.call(n,o)}catch(n){r=[6,n],a=0}finally{t=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(l){return t.ok?e?[2,(0,u.Du)(n.bedId,_.uuid,t.data.uuid)]:(s=null===(o=H)||void 0===o||null===(r=o.data)||void 0===r||null===(i=r.results)||void 0===i||null===(a=i[0])||void 0===a?void 0:a.bedId)?[2,(0,u.XH)(s,_.uuid)]:[2,t]:[2]}))},function(){var n=this,e=arguments;return new Promise((function(a,i){var r=t.apply(n,e);function o(n){N(r,a,i,o,s,"next",n)}function s(n){N(r,a,i,o,s,"throw",n)}o(void 0)}))});return function(n){return a.apply(this,arguments)}}(),(function(n){(0,c.showSnackbar)({kind:"error",title:E("errorCreatingEncounter","Failed to admit patient"),subtitle:n.message})})).then((function(n){var t,a;n&&(null===(t=n)||void 0===t?void 0:t.ok)&&(e?(0,c.showSnackbar)({kind:"success",title:E("patientAdmittedSuccessfully","Patient admitted successfully"),subtitle:E("patientAdmittedSuccessfullySubtitle","{{patientName}} has been successfully admitted and assigned to bed {{bedNumber}}",{patientName:_.person.preferredName.display,bedNumber:e.bedNumber})}):(0,c.showSnackbar)({kind:"success",title:E("patientAdmittedSuccessfully","Patient admitted successfully"),subtitle:E("patientAdmittedWoBed","Patient admitted successfully to {{location}}",{location:null===(a=M)||void 0===a?void 0:a.display})}))}),(function(){(0,c.showSnackbar)({kind:"warning",title:E("patientAdmittedSuccessfully","Patient admitted successfully"),subtitle:E("patientAdmittedButBedNotAssigned","Patient admitted successfully but fail to assign bed to patient")})})).finally((function(){var n,e;I(!1),null===(e=q)||void 0===e||null===(n=e.mutate)||void 0===n||n.call(e),k()}))}),tn)},i().createElement("div",{className:T.formContent},i().createElement(r.X2j,null,i().createElement(r.sgG,null,i().createElement("h2",{className:T.productiveHeading02},E("selectABed","Select a bed")),i().createElement("div",{className:T.bedSelectionDropdown},i().createElement(s.Qr,{control:X,name:"bedId",render:function(n){var e=n.field,t=e.onChange,a=e.value,r=n.fieldState.error;return i().createElement(g.Z,{beds:Y,isLoadingBeds:j,currentPatient:_,selectedBedId:a,error:r,control:X,onChange:t})}})))),i().createElement("div",{className:T.errorNotifications},G&&Object.entries(J).map((function(n){var e=B(n,2),t=e[0],a=e[1];return i().createElement(r.X2j,{key:t},i().createElement(r.sgG,null,i().createElement(r.K0D,{kind:"error",subtitle:a.message,lowContrast:!0})))})))),i().createElement(r.uVA,{className:T.buttonSet},i().createElement(r.zxk,{size:"xl",kind:"secondary",onClick:function(){return A({ignoreChanges:!0})}},E("cancel","Cancel")),i().createElement(r.zxk,{type:"submit",size:"xl",disabled:D||L||W||j||R},D?E("admitting","Admitting..."):E("admit","Admit"))))):i().createElement(i().Fragment,null)}},9985:(n,e,t)=>{t.d(e,{Z:()=>C});var a=t(9661),i=t(5206),r=t.n(i),o=t(4924),s=t(874),l=t(6062),p=t.n(l),c=t(4036),d=t.n(c),u=t(6793),f=t.n(u),g=t(7892),h=t.n(g),m=t(1173),b=t.n(m),y=t(2464),$=t.n(y),v=t(6450),w={};w.styleTagTransform=$(),w.setAttributes=h(),w.insert=f().bind(null,"head"),w.domAPI=d(),w.insertStyleElement=b(),p()(v.Z,w);const A=v.Z&&v.Z.locals?v.Z.locals:void 0;function k(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,a=new Array(e);t<e;t++)a[t]=n[t];return a}function x(n){return function(n){if(Array.isArray(n))return k(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(n){if("string"==typeof n)return k(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?k(n,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const C=function(n){var e,t,i,l=n.selectedBedId,p=n.beds,c=n.isLoadingBeds,d=n.error,u=n.onChange,f=n.currentPatient,g=n.control,h=n.minBedCountToUseDropdown,m=void 0===h?16:h,b=(0,s.Z)().location,y=(0,o.useTranslation)().t,$=[{bedId:0,label:y("noBed","No bed"),disabled:!1}].concat(x(p.map((function(n){var e,t,a,i=n.patients.some((function(n){return n.uuid===f.uuid}));return{bedId:n.bedId,label:(e=n,t=e.bedNumber,a=0===e.patients.length?[y("emptyText","Empty")]:e.patients.map((function(n){var e,t,a;return null===(a=n)||void 0===a||null===(t=a.person)||void 0===t||null===(e=t.preferredName)||void 0===e?void 0:e.display})),[t].concat(x(a)).join(" · ")),disabled:i}})))),v=$.find((function(n){return n.bedId===l})),w=p.length>=m;return c?r().createElement(a.SYO,{className:A.radioButtonGroup,name:"bedId"},r().createElement(a.CMh,null),r().createElement(a.CMh,null),r().createElement(a.CMh,null)):p.length?w?r().createElement(a.Ltx,{id:"default",titleText:"",helperText:"",label:!v&&y("chooseAnOption","Choose an option"),items:$,itemToString:function(n){return n.label},selectedItem:v,onChange:function(n){var e=n.selectedItem;return u(e.bedId)},invalid:!!d,invalidText:null===(t=d)||void 0===t?void 0:t.message}):r().createElement(a.SYO,{name:"bedId",className:A.radioButtonGroup,onChange:u,invalid:!!d,invalidText:null===(i=d)||void 0===i?void 0:i.message},$.map((function(n){var e=n.bedId,t=n.label,i=n.disabled;return r().createElement(a.EUY,{key:e,labelText:t,control:g,value:e,checked:e===l,disabled:i})}))):r().createElement(a.K0D,{kind:"error",title:y("noBedsConfiguredForLocation","No beds configured for {{location}} location",{location:null===(e=b)||void 0===e?void 0:e.display}),lowContrast:!0,hideCloseButton:!0})}},9405:(n,e,t)=>{t.r(e),t.d(e,{default:()=>w});var a=t(7234),i=t(5206),r=t.n(i),o=t(6062),s=t.n(o),l=t(4036),p=t.n(l),c=t(6793),d=t.n(c),u=t(7892),f=t.n(u),g=t(1173),h=t.n(g),m=t(2464),b=t.n(m),y=t(1376),$={};$.styleTagTransform=b(),$.setAttributes=f(),$.insert=d().bind(null,"head"),$.domAPI=p(),$.insertStyleElement=h(),s()(y.Z,$);const v=y.Z&&y.Z.locals?y.Z.locals:void 0,w=function(n){var e,t=n.wardPatient,i=(null!=t?t:{}).patient,o=(null!==(e=(0,a.useAppContext)("ward-view-context"))&&void 0!==e?e:{}).WardPatientHeader;return i?o?r().createElement("div",{className:v.wardWorkspacePatientBanner},r().createElement(o,{wardPatient:t})):r().createElement(r().Fragment,null):(console.warn("Patient details were not received by the ward workspace"),null)}},6352:(n,e,t)=>{t.d(e,{CW:()=>s,Du:()=>l,XH:()=>p,uA:()=>o});var a=t(7234),i=t(8559),r=t(874);function o(){var n=(0,r.Z)().location,e=(0,a.useSession)().currentProvider,t=(0,i.Z)(),o=t.emrConfiguration,s=t.isLoadingEmrConfiguration,l=t.errorFetchingEmrConfiguration;return{createEncounter:function(t,i){var r,s,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],p={patient:t.uuid,encounterType:i,location:null===(r=n)||void 0===r?void 0:r.uuid,encounterProviders:[{provider:null===(s=e)||void 0===s?void 0:s.uuid,encounterRole:o.clinicianEncounterRole.uuid}],obs:l};return(0,a.openmrsFetch)("".concat(a.restBaseUrl,"/encounter"),{method:"POST",headers:{"content-type":"application/json"},body:p})},emrConfiguration:o,isLoadingEmrConfiguration:s,errorFetchingEmrConfiguration:l}}function s(){var n=o(),e=n.createEncounter,t=n.emrConfiguration;return{admitPatient:function(n,a){var i="ADMIT"===a?t.admissionEncounterType:"TRANSFER"===a?t.transferWithinHospitalEncounterType:null;return e(n,i)},isLoadingEmrConfiguration:n.isLoadingEmrConfiguration,errorFetchingEmrConfiguration:n.errorFetchingEmrConfiguration}}function l(n,e,t){return(0,a.openmrsFetch)("".concat(a.restBaseUrl,"/beds/").concat(n),{method:"POST",headers:{"content-type":"application/json"},body:{patientUuid:e,encounterUuid:t}})}function p(n,e){return(0,a.openmrsFetch)("".concat(a.restBaseUrl,"/beds/").concat(n,"?patientUuid=").concat(e),{method:"DELETE"})}}}]);
1
+ /*! For license information please see 4659.js.LICENSE.txt */
2
+ "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[4659],{1217:(e,n,t)=>{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__admit-patient-form__flexWrapper___SdEat{height:100%;display:flex;flex-direction:column;color:#393939}.-esm-ward__admit-patient-form__form___VclKa{display:flex;height:100%;justify-content:space-between;flex-direction:column}.-esm-ward__admit-patient-form__formContent___hgH4x{padding:1rem}.-esm-ward__admit-patient-form__formError___O1o8s{margin:-1rem -1rem 1rem -1rem}.-esm-ward__admit-patient-form__buttonSet___16JkQ button{max-width:unset !important;width:50% !important}.-esm-ward__admit-patient-form__bedSelectionDropdown___uHzhe{margin-top:.5rem}.-esm-ward__admit-patient-form__errorNotifications___RzKmK{margin-top:1rem}.-esm-ward__admit-patient-form__productiveHeading02___rlwO6{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)}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/admit-patient-form-workspace/admit-patient-form.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,oDACE,WAAA,CACA,YAAA,CACA,qBAAA,CACA,aAAA,CAGF,6CACE,YAAA,CACA,WAAA,CACA,6BAAA,CACA,qBAAA,CAGF,oDACE,YCYW,CDTb,kDACE,6BAAA,CAGF,yDACE,0BAAA,CACA,oBAAA,CAGF,6DACE,gBCXW,CDcb,2DACE,eCLW,CDQb,4DE2zBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA",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.flexWrapper {\n height: 100%;\n display: flex;\n flex-direction: column;\n color: #393939;\n}\n\n.form {\n display: flex;\n height: 100%;\n justify-content: space-between;\n flex-direction: column;\n}\n\n.formContent {\n padding: layout.$spacing-05;\n}\n\n.formError {\n margin: (-(layout.$spacing-05)) (-(layout.$spacing-05)) layout.$spacing-05 (-(layout.$spacing-05));\n}\n\n.buttonSet button {\n max-width: unset !important;\n width: 50% !important;\n}\n\n.bedSelectionDropdown {\n margin-top: layout.$spacing-03;\n}\n\n.errorNotifications {\n margin-top: layout.$spacing-05;\n}\n\n.productiveHeading02 {\n @include type.type-style('heading-compact-02');\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={flexWrapper:"-esm-ward__admit-patient-form__flexWrapper___SdEat",form:"-esm-ward__admit-patient-form__form___VclKa",formContent:"-esm-ward__admit-patient-form__formContent___hgH4x",formError:"-esm-ward__admit-patient-form__formError___O1o8s",buttonSet:"-esm-ward__admit-patient-form__buttonSet___16JkQ",bedSelectionDropdown:"-esm-ward__admit-patient-form__bedSelectionDropdown___uHzhe",errorNotifications:"-esm-ward__admit-patient-form__errorNotifications___RzKmK",productiveHeading02:"-esm-ward__admit-patient-form__productiveHeading02___rlwO6"};const s=o},6450:(e,n,t)=>{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__bed-selector__radioButtonGroup___8Yn5Y{margin-top:.5rem}.-esm-ward__bed-selector__radioButtonGroup___8Yn5Y fieldset{flex-direction:column;align-items:flex-start}.-esm-ward__bed-selector__radioButtonGroup___8Yn5Y fieldset .cds--radio-button-wrapper{margin-bottom:.75rem}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/bed-selector.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,CCvDF,mDACE,gBCgBW,CDfX,4DACE,qBAAA,CACA,sBAAA,CAEA,uFACE,oBCeO",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.radioButtonGroup {\n margin-top: layout.$spacing-03;\n fieldset {\n flex-direction: column;\n align-items: flex-start;\n\n :global(.cds--radio-button-wrapper) {\n margin-bottom: layout.$spacing-04;\n }\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),o.locals={radioButtonGroup:"-esm-ward__bed-selector__radioButtonGroup___8Yn5Y"};const s=o},1376:(e,n,t)=>{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__style__wardWorkspacePatientBanner___2KnUU>div{background:#f4f4f4}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/patient-banner/style.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCxDA,0DACE,kBDJI",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' as *;\n\n.wardWorkspacePatientBanner {\n > div {\n background: $ui-01;\n }\n}\n"],sourceRoot:""}]),o.locals={wardWorkspacePatientBanner:"-esm-ward__style__wardWorkspacePatientBanner___2KnUU"};const s=o},7120:(e,n,t)=>{t.d(n,{x:()=>r});var a=t(7234),i=t(3649);function r(e){var n="".concat(a.restBaseUrl,"/beds?patientUuid=").concat(e);return(0,i.ZP)(n,a.openmrsFetch)}},8559:(e,n,t)=>{t.d(n,{Z:()=>l});var a=t(7234),i=t(5206),r=t(5907),o=t.n(r),s="custom:".concat([["metadataSourceName","ref"],["orderingProviderEncounterRole","ref"],["supportsTransferLocationTag","(uuid,display,name,links)"],["unknownLocation","ref"],["denyAdmissionConcept","ref"],["admissionForm","ref"],["exitFromInpatientEncounterType","ref"],["extraPatientIdentifierTypes","ref"],["consultFreeTextCommentsConcept","ref"],["sameAsConceptMapType","ref"],["testPatientPersonAttributeType","ref"],["admissionDecisionConcept","ref"],["supportsAdmissionLocationTag","(uuid,display,name,links)"],["checkInEncounterType","ref"],["transferWithinHospitalEncounterType","ref"],["suppressedDiagnosisConcepts","ref"],["primaryIdentifierType","ref"],["nonDiagnosisConceptSets","ref"],["fullPrivilegeLevel","ref"],["unknownProvider","ref"],["diagnosisSets","ref"],["personImageDirectory","ref"],["visitNoteEncounterType","ref"],["inpatientNoteEncounterType","ref"],["transferRequestEncounterType","ref"],["consultEncounterType","ref"],["diagnosisMetadata","ref"],["narrowerThanConceptMapType","ref"],["clinicianEncounterRole","ref"],["conceptSourcesForDiagnosisSearch","ref"],["patientDiedConcept","ref"],["emrApiConceptSource","ref"],["lastViewedPatientSizeLimit","ref"],["identifierTypesToSearch","ref"],["telephoneAttributeType","ref"],["checkInClerkEncounterRole","ref"],["dischargeForm","ref"],["unknownCauseOfDeathConcept","ref"],["visitAssignmentHandlerAdjustEncounterTimeOfDayIfNecessary","ref"],["atFacilityVisitType","ref"],["visitExpireHours","ref"],["admissionEncounterType","ref"],["motherChildRelationshipType","ref"],["dispositions","ref"],["dispositionDescriptor","ref"],["highPrivilegeLevel","ref"],["supportsLoginLocationTag","(uuid,display,name,links)"],["unknownPatientPersonAttributeType","ref"],["supportsVisitsLocationTag","(uuid,display,name,links)"],["transferForm","ref"],["bedAssignmentEncounterType","ref"],["cancelADTRequestEncounterType","ref"],["admissionDecisionConcept","ref"],["denyAdmissionConcept","ref"]].map((function(e){return e.join(":")})).join(","));function l(){var e=o()("".concat(a.restBaseUrl,"/emrapi/configuration?v=").concat(s),a.openmrsFetch);return(0,i.useMemo)((function(){var n;return{emrConfiguration:null===(n=e.data)||void 0===n?void 0:n.data,isLoadingEmrConfiguration:e.isLoading,mutateEmrConfiguration:e.mutate,errorFetchingEmrConfiguration:e.error}}),[e])}},874:(e,n,t)=>{t.d(n,{Z:()=>s});var a=t(7234),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,c=r.error,p=n&&c;return{location:n?null===(e=s)||void 0===e?void 0:e.data:t,isLoadingLocation:l,errorFetchingLocation:c,invalidLocation:p}}},4659:(e,n,t)=>{t.r(n),t.d(n,{default:()=>I});var a=t(5206),i=t.n(a),r=t(9661),o=t(8883),s=t(3955),l=t(4924),c=t(195),p=t(7234),d=t(7120),u=t(6352),f=t(874),g=t(9985),h=t(9405),m=t(6062),b=t.n(m),y=t(4036),$=t.n(y),v=t(6793),w=t.n(v),A=t(7892),k=t.n(A),x=t(1173),C=t.n(x),_=t(2464),E=t.n(_),z=t(1217),T={};T.styleTagTransform=E(),T.setAttributes=k(),T.insert=w().bind(null,"head"),T.domAPI=$(),T.insertStyleElement=C(),b()(z.Z,T);const S=z.Z&&z.Z.locals?z.Z.locals:void 0;function M(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function N(e,n,t,a,i,r,o){try{var s=e[r](o),l=s.value}catch(e){return void t(e)}s.done?n(l):Promise.resolve(l).then(a,i)}function D(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,r=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(s)throw i}}return r}}(e,n)||function(e,n){if(e){if("string"==typeof e)return M(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?M(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const I=function(e){var n,t,m,b,y,$,v,w=e.wardPatient,A=e.closeWorkspace,k=e.closeWorkspaceWithSavedChanges,x=e.promptBeforeClosing,C=null!=w?w:{},_=C.patient,E=null!==(b=null===(n=C.inpatientRequest)||void 0===n?void 0:n.dispositionType)&&void 0!==b?b:"ADMIT",z=(0,l.useTranslation)().t,T=(0,f.Z)().location,M=D((0,a.useState)(!1),2),I=M[0],B=M[1],L=(0,u.CW)(),P=L.admitPatient,R=L.isLoadingEmrConfiguration,U=L.errorFetchingEmrConfiguration,F=D((0,a.useState)(!1),2),O=F[0],W=F[1],V=(null!==(y=(0,p.useAppContext)("ward-view-context"))&&void 0!==y?y:{}).wardPatientGroupDetails,G=(null!==($=null===(t=V)||void 0===t?void 0:t.admissionLocationResponse)&&void 0!==$?$:{}).isLoading,j=(0,d.x)(_.uuid),Z=j.data,q=j.isLoading,H=G?[]:null!==(v=null===(m=V)||void 0===m?void 0:m.bedLayouts)&&void 0!==v?v:[],Y=(0,a.useMemo)((function(){return c.z.object({bedId:c.z.number().optional()})}),[]),K=(0,s.cI)({resolver:(0,o.F)(Y)}),X=K.control,J=K.formState,Q=J.errors,ee=J.isDirty,ne=K.handleSubmit;(0,a.useEffect)((function(){x((function(){return ee}))}),[ee,x]);var te=(0,a.useCallback)((function(e){W(!0),B(!1)}),[]);return V?i().createElement("div",{className:S.flexWrapper},i().createElement(h.default,{wardPatient:w}),i().createElement(r.l09,{control:X,className:S.form,onSubmit:ne((function(e){W(!1),B(!0);var n=H.find((function(n){return n.bedId===e.bedId}));P(_,E).then(function(){var t,a=(t=function(t){var a,i,r,o,s;return function(e,n){var t,a,i,r,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,a&&(i=2&r[0]?a.return:r[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return o.label++,{value:r[1],done:!1};case 5:o.label++,a=r[1],r=[0];continue;case 7:r=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){o=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){o.label=r[1];break}if(6===r[0]&&o.label<i[1]){o.label=i[1],i=r;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(r);break}i[2]&&o.ops.pop(),o.trys.pop();continue}r=n.call(e,o)}catch(e){r=[6,e],a=0}finally{t=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}(this,(function(l){return t.ok?n?[2,(0,u.Du)(e.bedId,_.uuid,t.data.uuid)]:(s=null===(o=Z)||void 0===o||null===(r=o.data)||void 0===r||null===(i=r.results)||void 0===i||null===(a=i[0])||void 0===a?void 0:a.bedId)?[2,(0,u.XH)(s,_.uuid)]:[2,t]:[2]}))},function(){var e=this,n=arguments;return new Promise((function(a,i){var r=t.apply(e,n);function o(e){N(r,a,i,o,s,"next",e)}function s(e){N(r,a,i,o,s,"throw",e)}o(void 0)}))});return function(e){return a.apply(this,arguments)}}(),(function(e){(0,p.showSnackbar)({kind:"error",title:z("errorCreatingEncounter","Failed to admit patient"),subtitle:e.message})})).then((function(e){var t,a;e&&(null===(t=e)||void 0===t?void 0:t.ok)&&(n?(0,p.showSnackbar)({kind:"success",title:z("patientAdmittedSuccessfully","Patient admitted successfully"),subtitle:z("patientAdmittedSuccessfullySubtitle","{{patientName}} has been successfully admitted and assigned to bed {{bedNumber}}",{patientName:_.person.preferredName.display,bedNumber:n.bedNumber})}):(0,p.showSnackbar)({kind:"success",title:z("patientAdmittedSuccessfully","Patient admitted successfully"),subtitle:z("patientAdmittedWoBed","Patient admitted successfully to {{location}}",{location:null===(a=T)||void 0===a?void 0:a.display})}))}),(function(){(0,p.showSnackbar)({kind:"warning",title:z("patientAdmittedSuccessfully","Patient admitted successfully"),subtitle:z("patientAdmittedButBedNotAssigned","Patient admitted successfully but fail to assign bed to patient")})})).finally((function(){var e,n;B(!1),null===(n=V)||void 0===n||null===(e=n.mutate)||void 0===e||e.call(n),k()}))}),te)},i().createElement("div",{className:S.formContent},i().createElement(r.X2j,null,i().createElement(r.sgG,null,i().createElement("h2",{className:S.productiveHeading02},z("selectABed","Select a bed")),i().createElement("div",{className:S.bedSelectionDropdown},i().createElement(s.Qr,{control:X,name:"bedId",render:function(e){var n=e.field,t=n.onChange,a=n.value,r=e.fieldState.error;return i().createElement(g.Z,{beds:H,isLoadingBeds:G,currentPatient:_,selectedBedId:a,error:r,control:X,onChange:t})}})))),i().createElement("div",{className:S.errorNotifications},O&&Object.entries(Q).map((function(e){var n=D(e,2),t=n[0],a=n[1];return i().createElement(r.X2j,{key:t},i().createElement(r.sgG,null,i().createElement(r.K0D,{kind:"error",subtitle:a.message,lowContrast:!0})))})))),i().createElement(r.uVA,{className:S.buttonSet},i().createElement(r.zxk,{size:"xl",kind:"secondary",onClick:function(){return A({ignoreChanges:!0})}},z("cancel","Cancel")),i().createElement(r.zxk,{type:"submit",size:"xl",disabled:I||R||U||G||q},I?z("admitting","Admitting..."):z("admit","Admit"))))):i().createElement(i().Fragment,null)}},9985:(e,n,t)=>{t.d(n,{Z:()=>C});var a=t(9661),i=t(5206),r=t.n(i),o=t(4924),s=t(874),l=t(6062),c=t.n(l),p=t(4036),d=t.n(p),u=t(6793),f=t.n(u),g=t(7892),h=t.n(g),m=t(1173),b=t.n(m),y=t(2464),$=t.n(y),v=t(6450),w={};w.styleTagTransform=$(),w.setAttributes=h(),w.insert=f().bind(null,"head"),w.domAPI=d(),w.insertStyleElement=b(),c()(v.Z,w);const A=v.Z&&v.Z.locals?v.Z.locals:void 0;function k(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function x(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return k(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?k(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const C=function(e){var n,t,i,l=e.selectedBedId,c=e.beds,p=e.isLoadingBeds,d=e.error,u=e.onChange,f=e.currentPatient,g=e.control,h=e.minBedCountToUseDropdown,m=void 0===h?16:h,b=(0,s.Z)().location,y=(0,o.useTranslation)().t,$=[{bedId:0,label:y("noBed","No bed"),disabled:!1}].concat(x(c.map((function(e){var n,t,a,i=e.patients.some((function(e){return e.uuid===f.uuid}));return{bedId:e.bedId,label:(n=e,t=n.bedNumber,a=0===n.patients.length?[y("emptyText","Empty")]:n.patients.map((function(e){var n,t,a;return null===(a=e)||void 0===a||null===(t=a.person)||void 0===t||null===(n=t.preferredName)||void 0===n?void 0:n.display})),[t].concat(x(a)).join(" · ")),disabled:i}})))),v=$.find((function(e){return e.bedId===l})),w=c.length>=m;return p?r().createElement(a.SYO,{className:A.radioButtonGroup,name:"bedId"},r().createElement(a.CMh,null),r().createElement(a.CMh,null),r().createElement(a.CMh,null)):c.length?w?r().createElement(a.Ltx,{id:"default",titleText:"",helperText:"",label:!v&&y("chooseAnOption","Choose an option"),items:$,itemToString:function(e){return e.label},selectedItem:v,onChange:function(e){var n=e.selectedItem;return u(n.bedId)},invalid:!!d,invalidText:null===(t=d)||void 0===t?void 0:t.message}):r().createElement(a.SYO,{name:"bedId",className:A.radioButtonGroup,onChange:u,invalid:!!d,invalidText:null===(i=d)||void 0===i?void 0:i.message},$.map((function(e){var n=e.bedId,t=e.label,i=e.disabled;return r().createElement(a.EUY,{key:n,labelText:t,control:g,value:n,checked:n===l,disabled:i})}))):r().createElement(a.K0D,{kind:"error",title:y("noBedsConfiguredForLocation","No beds configured for {{location}} location",{location:null===(n=b)||void 0===n?void 0:n.display}),lowContrast:!0,hideCloseButton:!0})}},9405:(e,n,t)=>{t.r(n),t.d(n,{default:()=>w});var a=t(7234),i=t(5206),r=t.n(i),o=t(6062),s=t.n(o),l=t(4036),c=t.n(l),p=t(6793),d=t.n(p),u=t(7892),f=t.n(u),g=t(1173),h=t.n(g),m=t(2464),b=t.n(m),y=t(1376),$={};$.styleTagTransform=b(),$.setAttributes=f(),$.insert=d().bind(null,"head"),$.domAPI=c(),$.insertStyleElement=h(),s()(y.Z,$);const v=y.Z&&y.Z.locals?y.Z.locals:void 0,w=function(e){var n,t=e.wardPatient,i=(null!=t?t:{}).patient,o=(null!==(n=(0,a.useAppContext)("ward-view-context"))&&void 0!==n?n:{}).WardPatientHeader;return i?o?r().createElement("div",{className:v.wardWorkspacePatientBanner},r().createElement(o,{wardPatient:t})):r().createElement(r().Fragment,null):(console.warn("Patient details were not received by the ward workspace"),null)}},6352:(e,n,t)=>{t.d(n,{CW:()=>s,Du:()=>l,XH:()=>c,uA:()=>o});var a=t(7234),i=t(8559),r=t(874);function o(){var e=(0,r.Z)().location,n=(0,a.useSession)().currentProvider,t=(0,i.Z)(),o=t.emrConfiguration,s=t.isLoadingEmrConfiguration,l=t.errorFetchingEmrConfiguration;return{createEncounter:function(t,i){var r,s,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],c={patient:t.uuid,encounterType:i,location:null===(r=e)||void 0===r?void 0:r.uuid,encounterProviders:[{provider:null===(s=n)||void 0===s?void 0:s.uuid,encounterRole:o.clinicianEncounterRole.uuid}],obs:l};return(0,a.openmrsFetch)("".concat(a.restBaseUrl,"/encounter"),{method:"POST",headers:{"content-type":"application/json"},body:c})},emrConfiguration:o,isLoadingEmrConfiguration:s,errorFetchingEmrConfiguration:l}}function s(){var e=o(),n=e.createEncounter,t=e.emrConfiguration;return{admitPatient:function(e,a){var i="ADMIT"===a?t.admissionEncounterType:"TRANSFER"===a?t.transferWithinHospitalEncounterType:null;return n(e,i)},isLoadingEmrConfiguration:e.isLoadingEmrConfiguration,errorFetchingEmrConfiguration:e.errorFetchingEmrConfiguration}}function l(e,n,t){return(0,a.openmrsFetch)("".concat(a.restBaseUrl,"/beds/").concat(e),{method:"POST",headers:{"content-type":"application/json"},body:{patientUuid:n,encounterUuid:t}})}function c(e,n){return(0,a.openmrsFetch)("".concat(a.restBaseUrl,"/beds/").concat(e,"?patientUuid=").concat(n),{method:"DELETE"})}},452:(e,n,t)=>{var a=t(5206),i="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},r=a.useState,o=a.useEffect,s=a.useLayoutEffect,l=a.useDebugValue;function c(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(e){return!0}}var p="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),a=r({inst:{value:t,getSnapshot:n}}),i=a[0].inst,p=a[1];return s((function(){i.value=t,i.getSnapshot=n,c(i)&&p({inst:i})}),[e,t,n]),o((function(){return c(i)&&p({inst:i}),e((function(){c(i)&&p({inst:i})}))}),[e]),l(t),t};n.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:p},3100:(e,n,t)=>{e.exports=t(452)},3649:(e,n,t)=>{t.d(n,{ZP:()=>l});var a=t(5206),i=t(3100),r=t(3629);const o=a.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((n=>{e.status="fulfilled",e.value=n}),(n=>{e.status="rejected",e.reason=n})),e)}),s={dedupe:!0},l=(r.OBJECT.defineProperty(r.SWRConfig,"defaultValue",{value:r.defaultConfig}),(0,r.withArgs)(((e,n,t)=>{const{cache:l,compare:c,suspense:p,fallbackData:d,revalidateOnMount:u,revalidateIfStale:f,refreshInterval:g,refreshWhenHidden:h,refreshWhenOffline:m,keepPreviousData:b}=t,[y,$,v,w]=r.SWRGlobalState.get(l),[A,k]=(0,r.serialize)(e),x=(0,a.useRef)(!1),C=(0,a.useRef)(!1),_=(0,a.useRef)(A),E=(0,a.useRef)(n),z=(0,a.useRef)(t),T=()=>z.current,S=()=>T().isVisible()&&T().isOnline(),[M,N,D,I]=(0,r.createCacheHelper)(l,A),B=(0,a.useRef)({}).current,L=(0,r.isUndefined)(d)?t.fallback[A]:d,P=(e,n)=>{for(const t in B){const a=t;if("data"===a){if(!c(e[a],n[a])){if(!(0,r.isUndefined)(e[a]))return!1;if(!c(Z,n[a]))return!1}}else if(n[a]!==e[a])return!1}return!0},R=(0,a.useMemo)((()=>{const e=!!A&&!!n&&((0,r.isUndefined)(u)?!T().isPaused()&&!p&&(!!(0,r.isUndefined)(f)||f):u),t=n=>{const t=(0,r.mergeObjects)(n);return delete t._k,e?{isValidating:!0,isLoading:!0,...t}:t},a=M(),i=I(),o=t(a),s=a===i?o:t(i);let l=o;return[()=>{const e=t(M());return P(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>s]}),[l,A]),U=(0,i.useSyncExternalStore)((0,a.useCallback)((e=>D(A,((n,t)=>{P(t,n)||e()}))),[l,A]),R[0],R[1]),F=!x.current,O=y[A]&&y[A].length>0,W=U.data,V=(0,r.isUndefined)(W)?L:W,G=U.error,j=(0,a.useRef)(V),Z=b?(0,r.isUndefined)(W)?j.current:W:V,q=!(O&&!(0,r.isUndefined)(G))&&(F&&!(0,r.isUndefined)(u)?u:!T().isPaused()&&(p?!(0,r.isUndefined)(V)&&f:(0,r.isUndefined)(V)||f)),H=!!(A&&n&&F&&q),Y=(0,r.isUndefined)(U.isValidating)?H:U.isValidating,K=(0,r.isUndefined)(U.isLoading)?H:U.isLoading,X=(0,a.useCallback)((async e=>{const n=E.current;if(!A||!n||C.current||T().isPaused())return!1;let a,i,o=!0;const s=e||{},l=!v[A]||!s.dedupe,p=()=>r.IS_REACT_LEGACY?!C.current&&A===_.current&&x.current:A===_.current,d={isValidating:!1,isLoading:!1},u=()=>{N(d)},f=()=>{const e=v[A];e&&e[1]===i&&delete v[A]},g={isValidating:!0};(0,r.isUndefined)(M().data)&&(g.isLoading=!0);try{if(l&&(N(g),t.loadingTimeout&&(0,r.isUndefined)(M().data)&&setTimeout((()=>{o&&p()&&T().onLoadingSlow(A,t)}),t.loadingTimeout),v[A]=[n(k),(0,r.getTimestamp)()]),[a,i]=v[A],a=await a,l&&setTimeout(f,t.dedupingInterval),!v[A]||v[A][1]!==i)return l&&p()&&T().onDiscarded(A),!1;d.error=r.UNDEFINED;const e=$[A];if(!(0,r.isUndefined)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return u(),l&&p()&&T().onDiscarded(A),!1;const s=M().data;d.data=c(s,a)?s:a,l&&p()&&T().onSuccess(a,A,t)}catch(e){f();const n=T(),{shouldRetryOnError:t}=n;n.isPaused()||(d.error=e,l&&p()&&(n.onError(e,A,n),(!0===t||(0,r.isFunction)(t)&&t(e))&&(T().revalidateOnFocus&&T().revalidateOnReconnect&&!S()||n.onErrorRetry(e,A,n,(e=>{const n=y[A];n&&n[0]&&n[0](r.revalidateEvents.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return o=!1,u(),!0}),[A,l]),J=(0,a.useCallback)(((...e)=>(0,r.internalMutate)(l,_.current,...e)),[]);if((0,r.useIsomorphicLayoutEffect)((()=>{E.current=n,z.current=t,(0,r.isUndefined)(W)||(j.current=W)})),(0,r.useIsomorphicLayoutEffect)((()=>{if(!A)return;const e=X.bind(r.UNDEFINED,s);let n=0;const t=(0,r.subscribeCallback)(A,y,((t,a={})=>{if(t==r.revalidateEvents.FOCUS_EVENT){const t=Date.now();T().revalidateOnFocus&&t>n&&S()&&(n=t+T().focusThrottleInterval,e())}else if(t==r.revalidateEvents.RECONNECT_EVENT)T().revalidateOnReconnect&&S()&&e();else{if(t==r.revalidateEvents.MUTATE_EVENT)return X();if(t==r.revalidateEvents.ERROR_REVALIDATE_EVENT)return X(a)}}));return C.current=!1,_.current=A,x.current=!0,N({_k:k}),q&&((0,r.isUndefined)(V)||r.IS_SERVER?e():(0,r.rAF)(e)),()=>{C.current=!0,t()}}),[A]),(0,r.useIsomorphicLayoutEffect)((()=>{let e;function n(){const n=(0,r.isFunction)(g)?g(M().data):g;n&&-1!==e&&(e=setTimeout(t,n))}function t(){M().error||!h&&!T().isVisible()||!m&&!T().isOnline()?n():X(s).then(n)}return n(),()=>{e&&(clearTimeout(e),e=-1)}}),[g,h,m,A]),(0,a.useDebugValue)(Z),p&&(0,r.isUndefined)(V)&&A){if(!r.IS_REACT_LEGACY&&r.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");E.current=n,z.current=t,C.current=!1;const e=w[A];if(!(0,r.isUndefined)(e)){const n=J(e);o(n)}if(!(0,r.isUndefined)(G))throw G;{const e=X(s);(0,r.isUndefined)(Z)||(e.status="fulfilled",e.value=!0),o(e)}}return{mutate:J,get data(){return B.data=!0,Z},get error(){return B.error=!0,G},get isValidating(){return B.isValidating=!0,Y},get isLoading(){return B.isLoading=!0,K}}})))}}]);
package/dist/4659.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"4659.js","mappings":"iMAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,yvCAA0vC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,sFAAsF,6EAA6E,iEAAiE,MAAQ,GAAG,SAAW,uUAAuU,eAAiB,CAAC,o7DAAo7D,wwBAAwwB,05DAA05D,w8uBAAw8uB,WAAa,MAEpg8BH,EAAwBI,OAAS,CAChC,YAAe,qDACf,KAAQ,8CACR,YAAe,qDACf,UAAa,mDACb,UAAa,mDACb,qBAAwB,8DACxB,mBAAsB,4DACtB,oBAAuB,8DAExB,S,mECdIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,ymBAA0mB,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,mDAAmD,8EAA8E,MAAQ,GAAG,SAAW,qJAAqJ,eAAiB,CAAC,o7DAAo7D,yUAAyU,25DAA25D,WAAa,MAEztKH,EAAwBI,OAAS,CAChC,iBAAoB,qDAErB,S,mECPIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,6ZAA8Z,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,4DAA4D,MAAQ,GAAG,SAAW,uGAAuG,eAAiB,CAAC,o7DAAo7D,gIAAgI,WAAa,MAEtzFH,EAAwBI,OAAS,CAChC,2BAA8B,wDAE/B,S,0DCNO,SAASC,EAAwBC,GACtC,IAAMC,EAAM,GAAmCD,OAAhCE,EAAAA,YAAY,sBAAgC,OAAZF,GAE/C,OAAOG,EAAAA,EAAAA,IAAuDF,EAAKG,EAAAA,aACrE,C,6ECkGMC,EAAY,UAAiE,OAzD5D,CACrB,CAAC,qBAAs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,oBAElBC,KAAMP,GAEV,EAE0B5J,iBAAAA,EAAkBE,0BAAAA,EAA2BI,8BAAAA,EACzE,CAEO,SAASyB,IACd,IACEuH,EAAAA,IADMG,EACNH,EADMG,gBAAiBzJ,EACvBsJ,EADuBtJ,iBAazB,MAAO,CAAEgC,aAVY,SAACV,EAAkBC,GACtC,IAAMmI,EACgB,UAApBnI,EACIvB,EAAiBoK,uBACG,aAApB7I,EACEvB,EAAiBqK,oCACjB,KACR,OAAOZ,EAAgBnI,EAASoI,EAClC,EAEuBxJ,0BAZrBoJ,EADyCpJ,0BAaOI,8BAZhDgJ,EADoEhJ,8BAcxE,CAEO,SAASmE,EAAmB6F,EAAiBnL,EAAqBoL,GACvE,OAAOhL,EAAAA,EAAAA,cAAa,GAAuB+K,OAApBjL,EAAAA,YAAY,UAAgB,OAARiL,GAAW,CACpDL,OAAQ,OACRC,QAAS,CACP,eAAgB,oBAElBC,KAAM,CACJhL,YAAAA,EACAoL,cAAAA,IAGN,CAEO,SAAS5F,EAAqBjC,EAAevD,GAClD,OAAOI,EAAAA,EAAAA,cAAa,GAAuBmD,OAApBrD,EAAAA,YAAY,UAA6BF,OAArBuD,EAAM,iBAA2B,OAAZvD,GAAe,CAC7E8K,OAAQ,UAEZ,C","sources":["webpack://@openmrs/esm-ward-app/./src/ward-workspace/admit-patient-form-workspace/admit-patient-form.scss","webpack://@openmrs/esm-ward-app/./src/ward-workspace/bed-selector.scss","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/style.scss","webpack://@openmrs/esm-ward-app/./src/hooks/useAssignedBedByPatient.ts","webpack://@openmrs/esm-ward-app/./src/hooks/useEmrConfiguration.ts","webpack://@openmrs/esm-ward-app/./src/ward-workspace/admit-patient-form-workspace/admit-patient-form.scss?3181","webpack://@openmrs/esm-ward-app/./src/ward-workspace/admit-patient-form-workspace/admit-patient-form.workspace.tsx","webpack://@openmrs/esm-ward-app/./src/ward-workspace/bed-selector.scss?7287","webpack://@openmrs/esm-ward-app/./src/ward-workspace/bed-selector.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/style.scss?2cee","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/patient-banner.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward.resource.ts"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","useAssignedBedByPatient","patientUuid","url","restBaseUrl","useSWR","openmrsFetch","customRep","map","prop","join","useEmrConfiguration","swrData","useSWRImmutable","useMemo","emrConfiguration","data","isLoadingEmrConfiguration","isLoading","mutateEmrConfiguration","mutate","errorFetchingEmrConfiguration","error","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","inpatientRequest","wardPatientGroupDetails","useAppContext","wardPatient","closeWorkspace","closeWorkspaceWithSavedChanges","promptBeforeClosing","patient","dispositionType","useTranslation","t","useWardLocation","location","useState","isSubmitting","setIsSubmitting","useAdmitPatient","admitPatient","showErrorNotifications","setShowErrorNotifications","admissionLocationResponse","uuid","beds","bedLayouts","zodSchema","z","object","bedId","number","optional","useForm","resolver","zodResolver","control","formState","errors","isDirty","handleSubmit","useEffect","onError","useCallback","values","div","className","styles","flexWrapper","WardPatientWorkspaceBanner","Form","form","onSubmit","bedSelected","find","bed","then","response","bedsAssignedToPatient","assignedBedId","ok","assignPatientToBed","results","removePatientFromBed","err","showSnackbar","kind","title","subtitle","message","patientName","person","preferredName","display","bedNumber","finally","formContent","Row","Column","h2","productiveHeading02","bedSelectionDropdown","Controller","name","render","field","onChange","value","fieldState","BedSelector","isLoadingBeds","currentPatient","selectedBedId","errorNotifications","Object","entries","key","InlineNotification","lowContrast","ButtonSet","buttonSet","Button","size","onClick","ignoreChanges","type","disabled","isLoadingBedsAssignedToPatient","minBedCountToUseDropdown","bedDropdownItems","label","bedLayout","patients","isPatientAssignedToBed","some","bedPatient","length","selectedItem","useDropdown","RadioButtonGroup","radioButtonGroup","RadioButtonSkeleton","Dropdown","titleText","helperText","items","itemToString","bedDropdownItem","invalid","invalidText","RadioButton","labelText","checked","hideCloseButton","WardPatientHeader","wardWorkspacePatientBanner","console","warn","useCreateEncounter","useSession","currentProvider","createEncounter","encounterType","obs","encounterPayload","encounterProviders","provider","encounterRole","clinicianEncounterRole","method","headers","body","admissionEncounterType","transferWithinHospitalEncounterType","bedUuid","encounterUuid"],"sourceRoot":""}
1
+ {"version":3,"file":"4659.js","mappings":";4LAGIA,QAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,yvCAA0vC,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,sFAAsF,6EAA6E,iEAAiE,MAAQ,GAAG,SAAW,uUAAuU,eAAiB,CAAC,o7DAAo7D,wwBAAwwB,05DAA05D,w8uBAAw8uB,WAAa,MAEpg8BH,EAAwBI,OAAS,CAChC,YAAe,qDACf,KAAQ,8CACR,YAAe,qDACf,UAAa,mDACb,UAAa,mDACb,qBAAwB,8DACxB,mBAAsB,4DACtB,oBAAuB,8DAExB,4ECdIJ,QAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,ymBAA0mB,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,mDAAmD,8EAA8E,MAAQ,GAAG,SAAW,qJAAqJ,eAAiB,CAAC,o7DAAo7D,yUAAyU,25DAA25D,WAAa,MAEztKH,EAAwBI,OAAS,CAChC,iBAAoB,qDAErB,4ECPIJ,QAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,6ZAA8Z,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,4DAA4D,MAAQ,GAAG,SAAW,uGAAuG,eAAiB,CAAC,o7DAAo7D,gIAAgI,WAAa,MAEtzFH,EAAwBI,OAAS,CAChC,2BAA8B,wDAE/B,mECNO,SAASC,EAAwBC,GACtC,IAAMC,EAAM,GAAmCD,OAAhCE,EAAAA,YAAY,sBAAgC,OAAZF,GAE/C,OAAOG,EAAAA,EAAA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O,QAAUyN,IAAqBiB,IAAYG,cAAiBnB,IAAsBgB,IAAYI,WAI1GyF,IAHAvD,EAAWxE,GAAahI,KAAK+P,EAKrC,CAEA,OADAA,IACO,KACCD,IACAI,aAAaJ,GACbA,GAAS,EACb,CACH,GACF,CACC9G,EACAC,EACAC,EACA1G,KAGJ,IAAAqE,eAAcqE,GAKVtC,IAAY,IAAAkC,aAAY5P,IAASsH,EAAK,CAItC,IAAK,EAAA0K,iBAAmB,EAAA0C,UACpB,MAAM,IAAIO,MAAM,yDAGpBnG,EAAWG,QAAU3B,EACrByB,EAAUE,QAAU1B,EACpBqB,EAAaK,SAAU,EACvB,MAAMiG,EAAM7G,EAAQ/G,GACpB,KAAK,IAAAsI,aAAYsF,GAAM,CACnB,MAAMxI,EAAUiH,EAAYuB,GAC5BzI,EAAIC,EACR,CACA,KAAI,IAAAkD,aAAYtP,GAQZ,MAAMA,EARc,CACpB,MAAMoM,EAAU4E,EAAWxE,IACtB,IAAA8C,aAAYI,KACbtD,EAAQC,OAAS,YACjBD,EAAQ7F,OAAQ,GAEpB4F,EAAIC,EACR,CAGJ,CACA,MAAO,CACHtM,OAAQuT,EACJ3T,WAEA,OADA0P,EAAkB1P,MAAO,EAClBgQ,CACX,EACI1P,YAEA,OADAoP,EAAkBpP,OAAQ,EACnBA,CACX,EACIkQ,mBAEA,OADAd,EAAkBc,cAAe,EAC1BA,CACX,EACItQ,gBAEA,OADAwP,EAAkBxP,WAAY,EACvBA,CACX,EACH","sources":["webpack://@openmrs/esm-ward-app/./src/ward-workspace/admit-patient-form-workspace/admit-patient-form.scss","webpack://@openmrs/esm-ward-app/./src/ward-workspace/bed-selector.scss","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/style.scss","webpack://@openmrs/esm-ward-app/./src/hooks/useAssignedBedByPatient.ts","webpack://@openmrs/esm-ward-app/./src/hooks/useEmrConfiguration.ts","webpack://@openmrs/esm-ward-app/./src/hooks/useWardLocation.ts","webpack://@openmrs/esm-ward-app/./src/hooks/useLocation.ts","webpack://@openmrs/esm-ward-app/./src/ward-workspace/admit-patient-form-workspace/admit-patient-form.scss?3181","webpack://@openmrs/esm-ward-app/./src/ward-workspace/admit-patient-form-workspace/admit-patient-form.workspace.tsx","webpack://@openmrs/esm-ward-app/./src/ward-workspace/bed-selector.scss?7287","webpack://@openmrs/esm-ward-app/./src/ward-workspace/bed-selector.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/style.scss?2cee","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/patient-banner.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward.resource.ts","webpack://@openmrs/esm-ward-app/../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js","webpack://@openmrs/esm-ward-app/../../node_modules/use-sync-external-store/shim/index.js","webpack://@openmrs/esm-ward-app/../../node_modules/swr/dist/core/index.mjs"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","useAssignedBedByPatient","patientUuid","url","restBaseUrl","useSWR","openmrsFetch","customRep","map","prop","join","useEmrConfiguration","swrData","useSWRImmutable","useMemo","emrConfiguration","data","isLoadingEmrConfiguration","isLoading","mutateEmrConfiguration","mutate","errorFetchingEmrConfiguration","error","useWardLocation","locationResponse","locationUuid","useParams","useSession","sessionLocation","useLocation","rep","locationUuidFromUrl","invalidLocation","errorFetchingLocation","location","isLoadingLocation","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","inpatientRequest","wardPatientGroupDetails","useAppContext","wardPatient","closeWorkspace","closeWorkspaceWithSavedChanges","promptBeforeClosing","patient","dispositionType","useTranslation","t","useState","isSubmitting","setIsSubmitting","useAdmitPatient","admitPatient","showErrorNotifications","setShowErrorNotifications","admissionLocationResponse","uuid","beds","bedLayouts","zodSchema","z","object","bedId","number","optional","useForm","resolver","zodResolver","control","formState","errors","isDirty","handleSubmit","useEffect","onError","useCallback","values","div","className","styles","flexWrapper","WardPatientWorkspaceBanner","Form","form","onSubmit","bedSelected","find","bed","then","response","bedsAssignedToPatient","assignedBedId","ok","assignPatientToBed","results","removePatientFromBed","err","showSnackbar","kind","title","subtitle","message","patientName","person","preferredName","display","bedNumber","finally","formContent","Row","Column","h2","productiveHeading02","bedSelectionDropdown","Controller","name","render","field","onChange","value","fieldState","BedSelector","isLoadingBeds","currentPatient","selectedBedId","errorNotifications","Object","entries","key","InlineNotification","lowContrast","ButtonSet","buttonSet","Button","size","onClick","ignoreChanges","type","disabled","isLoadingBedsAssignedToPatient","minBedCountToUseDropdown","bedDropdownItems","label","bedLayout","patients","isPatientAssignedToBed","some","bedPatient","length","selectedItem","useDropdown","RadioButtonGroup","radioButtonGroup","RadioButtonSkeleton","Dropdown","titleText","helperText","items","itemToString","bedDropdownItem","invalid","invalidText","RadioButton","labelText","checked","hideCloseButton","WardPatientHeader","wardWorkspacePatientBanner","console","warn","useCreateEncounter","currentProvider","createEncounter","encounterType","obs","encounterPayload","encounterProviders","provider","encounterRole","clinicianEncounterRole","method","headers","body","admissionEncounterType","transferWithinHospitalEncounterType","bedUuid","encounterUuid","e","k","is","a","b","l","m","n","useLayoutEffect","p","useDebugValue","r","getSnapshot","d","f","u","window","document","createElement","inst","c","g","exports","useSyncExternalStore","use","promise","status","reason","v","WITH_DEDUPE","dedupe","OBJECT","defineProperty","SWRConfig","defaultConfig","withArgs","_key","fetcher","config","cache","compare","suspense","fallbackData","revalidateOnMount","revalidateIfStale","refreshInterval","refreshWhenHidden","refreshWhenOffline","keepPreviousData","EVENT_REVALIDATORS","MUTATION","FETCH","PRELOAD","SWRGlobalState","get","fnArg","serialize","initialMountedRef","useRef","unmountedRef","keyRef","fetcherRef","configRef","getConfig","current","isActive","isVisible","isOnline","getCache","setCache","subscribeCache","getInitialCache","createCacheHelper","stateDependencies","fallback","isUndefined","isEqual","prev","_","returnedData","shouldStartRequest","isPaused","getSelectedCache","state","snapshot","mergeObjects","_k","isValidating","cachedData","initialData","clientSnapshot","serverSnapshot","memorizedSnapshot","newSnapshot","cached","callback","isInitialMount","hasRevalidator","laggyDataRef","shouldDoInitialRevalidation","defaultValidatingState","revalidate","async","revalidateOpts","currentFetcher","newData","startAt","loading","opts","shouldStartNewRequest","callbackSafeguard","IS_REACT_LEGACY","finalState","finishRequestAndUpdateState","cleanupState","requestInfo","initialState","loadingTimeout","setTimeout","onLoadingSlow","getTimestamp","dedupingInterval","onDiscarded","UNDEFINED","mutationInfo","cacheData","onSuccess","currentConfig","shouldRetryOnError","isFunction","revalidateOnFocus","revalidateOnReconnect","onErrorRetry","_opts","revalidators","revalidateEvents","ERROR_REVALIDATE_EVENT","retryCount","boundMutate","args","internalMutate","useIsomorphicLayoutEffect","softRevalidate","bind","nextFocusRevalidatedAt","unsubEvents","subscribeCallback","FOCUS_EVENT","now","Date","focusThrottleInterval","RECONNECT_EVENT","MUTATE_EVENT","IS_SERVER","rAF","timer","next","interval","execute","clearTimeout","Error","req"],"sourceRoot":""}
package/dist/5146.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[5146,9405],{1376:(e,n,r)=>{r.d(n,{Z:()=>d});var a=r(5698),t=r.n(a),o=r(9613),i=r.n(o)()(t());i.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__style__wardWorkspacePatientBanner___2KnUU>div{background:#f4f4f4}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/patient-banner/style.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCxDA,0DACE,kBDJI",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' as *;\n\n.wardWorkspacePatientBanner {\n > div {\n background: $ui-01;\n }\n}\n"],sourceRoot:""}]),i.locals={wardWorkspacePatientBanner:"-esm-ward__style__wardWorkspacePatientBanner___2KnUU"};const d=i},9405:(e,n,r)=>{r.r(n),r.d(n,{default:()=>k});var a=r(7234),t=r(5206),o=r.n(t),i=r(6062),d=r.n(i),s=r(4036),l=r.n(s),p=r(6793),c=r.n(p),b=r(7892),m=r.n(b),f=r(1173),u=r.n(f),w=r(2464),h=r.n(w),v=r(1376),$={};$.styleTagTransform=h(),$.setAttributes=m(),$.insert=c().bind(null,"head"),$.domAPI=l(),$.insertStyleElement=u(),d()(v.Z,$);const y=v.Z&&v.Z.locals?v.Z.locals:void 0,k=function(e){var n,r=e.wardPatient,t=(null!=r?r:{}).patient,i=(null!==(n=(0,a.useAppContext)("ward-view-context"))&&void 0!==n?n:{}).WardPatientHeader;return t?i?o().createElement("div",{className:y.wardWorkspacePatientBanner},o().createElement(i,{wardPatient:r})):o().createElement(o().Fragment,null):(console.warn("Patient details were not received by the ward workspace"),null)}},5146:(e,n,r)=>{r.r(n),r.d(n,{default:()=>s});var a=r(7234),t=r(5206),o=r.n(t),i=r(9405);function d(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}const s=function(e){var n,r,s=e.wardPatient,l=function(e,n){if(null==e)return{};var r,a,t=function(e,n){if(null==e)return{};var r,a,t={},o=Object.keys(e);for(a=0;a<o.length;a++)r=o[a],n.indexOf(r)>=0||(t[r]=e[r]);return t}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}(e,["wardPatient"]),p=null===(r=s)||void 0===r||null===(n=r.patient)||void 0===n?void 0:n.uuid,c=(0,t.useMemo)((function(){return function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(n){d(e,n,r[n])}))}return e}({patientUuid:p,clinicalFormsWorkspaceName:"ward-patient-clinical-forms-workspace",formEntryWorkspaceName:"ward-patient-form-entry-workspace",htmlFormEntryWorkspaceName:"ward-patient-html-form-entry-workspace"},l)}),[p,l]);return o().createElement("div",null,o().createElement(i.default,{wardPatient:s}),o().createElement(a.ExtensionSlot,{name:"ward-patient-clinical-forms-workspace-slot",state:c}))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_ward_app=globalThis.webpackChunk_openmrs_esm_ward_app||[]).push([[5146,9405],{1376:(e,n,r)=>{r.d(n,{Z:()=>c});var t=r(5698),a=r.n(t),o=r(9613),i=r.n(o)()(a());i.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__style__wardWorkspacePatientBanner___2KnUU>div{background:#f4f4f4}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/patient-banner/style.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCxDA,0DACE,kBDJI",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' as *;\n\n.wardWorkspacePatientBanner {\n > div {\n background: $ui-01;\n }\n}\n"],sourceRoot:""}]),i.locals={wardWorkspacePatientBanner:"-esm-ward__style__wardWorkspacePatientBanner___2KnUU"};const c=i},9613:e=>{e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var r=e(n);return n[2]?"@media ".concat(n[2]," {").concat(r,"}"):r})).join("")},n.i=function(e,r,t){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(t)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);t&&a[s[0]]||(r&&(s[2]?s[2]="".concat(r," and ").concat(s[2]):s[2]=r),n.push(s))}},n}},5698:e=>{function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}e.exports=function(e){var r,t,a=(t=4,function(e){if(Array.isArray(e))return e}(r=e)||function(e,n){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var t,a,o=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(o.push(t.value),!n||o.length!==n);i=!0);}catch(e){c=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(c)throw a}}return o}}(r,t)||function(e,r){if(e){if("string"==typeof e)return n(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?n(e,r):void 0}}(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=a[1],i=a[3];if(!i)return o;if("function"==typeof btoa){var c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),l="/*# ".concat(s," */"),d=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[o].concat(d).concat([l]).join("\n")}return[o].join("\n")}},6062:e=>{var n=[];function r(e){for(var r=-1,t=0;t<n.length;t++)if(n[t].identifier===e){r=t;break}return r}function t(e,t){for(var o={},i=[],c=0;c<e.length;c++){var s=e[c],l=t.base?s[0]+t.base:s[0],d=o[l]||0,p="".concat(l," ").concat(d);o[l]=d+1;var u=r(p),f={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==u)n[u].references++,n[u].updater(f);else{var m=a(f,t);t.byIndex=c,n.splice(c,0,{identifier:p,updater:m,references:1})}i.push(p)}return i}function a(e,n){var r=n.domAPI(n);return r.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;r.update(e=n)}else r.remove()}}e.exports=function(e,a){var o=t(e=e||[],a=a||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var c=r(o[i]);n[c].references--}for(var s=t(e,a),l=0;l<o.length;l++){var d=r(o[l]);0===n[d].references&&(n[d].updater(),n.splice(d,1))}o=s}}},6793:e=>{var n={};e.exports=function(e,r){var t=function(e){if(void 0===n[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}n[e]=r}return n[e]}(e);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(r)}},1173:e=>{e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},7892:(e,n,r)=>{e.exports=function(e){var n=r.nc;n&&e.setAttribute("nonce",n)}},4036:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(r){!function(e,n,r){var t="";r.supports&&(t+="@supports (".concat(r.supports,") {")),r.media&&(t+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(t+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),t+=r.css,a&&(t+="}"),r.media&&(t+="}"),r.supports&&(t+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),n.styleTagTransform(t,e,n.options)}(n,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},2464:e=>{e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},9405:(e,n,r)=>{r.r(n),r.d(n,{default:()=>$});var t=r(7234),a=r(5206),o=r.n(a),i=r(6062),c=r.n(i),s=r(4036),l=r.n(s),d=r(6793),p=r.n(d),u=r(7892),f=r.n(u),m=r(1173),b=r.n(m),v=r(2464),h=r.n(v),y=r(1376),w={};w.styleTagTransform=h(),w.setAttributes=f(),w.insert=p().bind(null,"head"),w.domAPI=l(),w.insertStyleElement=b(),c()(y.Z,w);const g=y.Z&&y.Z.locals?y.Z.locals:void 0,$=function(e){var n,r=e.wardPatient,a=(null!=r?r:{}).patient,i=(null!==(n=(0,t.useAppContext)("ward-view-context"))&&void 0!==n?n:{}).WardPatientHeader;return a?i?o().createElement("div",{className:g.wardWorkspacePatientBanner},o().createElement(i,{wardPatient:r})):o().createElement(o().Fragment,null):(console.warn("Patient details were not received by the ward workspace"),null)}},5146:(e,n,r)=>{r.r(n),r.d(n,{default:()=>s});var t=r(7234),a=r(5206),o=r.n(a),i=r(9405);function c(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}const s=function(e){var n,r,s=e.wardPatient,l=function(e,n){if(null==e)return{};var r,t,a=function(e,n){if(null==e)return{};var r,t,a={},o=Object.keys(e);for(t=0;t<o.length;t++)r=o[t],n.indexOf(r)>=0||(a[r]=e[r]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t<o.length;t++)r=o[t],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["wardPatient"]),d=null===(r=s)||void 0===r||null===(n=r.patient)||void 0===n?void 0:n.uuid,p=(0,a.useMemo)((function(){return function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){c(e,n,r[n])}))}return e}({patientUuid:d,clinicalFormsWorkspaceName:"ward-patient-clinical-forms-workspace",formEntryWorkspaceName:"ward-patient-form-entry-workspace",htmlFormEntryWorkspaceName:"ward-patient-html-form-entry-workspace"},l)}),[d,l]);return o().createElement("div",null,o().createElement(i.default,{wardPatient:s}),o().createElement(t.ExtensionSlot,{name:"ward-patient-clinical-forms-workspace-slot",state:p}))}}}]);
package/dist/5146.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"5146.js","mappings":"iMAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,6ZAA8Z,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,4DAA4D,MAAQ,GAAG,SAAW,uGAAuG,eAAiB,CAAC,o7DAAo7D,gIAAgI,WAAa,MAEtzFH,EAAwBI,OAAS,CAChC,2BAA8B,wDAE/B,S,4MCCIC,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKnB,QAAe,KAAW,IAAQD,OAAS,IAAQA,YAASO,ECHnE,EAlBwD,Y,IAExBC,EAF2BC,EAAAA,EAAAA,YACnD,GAAcA,QAAAA,EAAe,CAAC,GAA5BC,QACF,GAAuD,QAA/BF,GAAAA,EAAAA,EAAAA,eAA+B,4BAA/BA,IAAAA,EAAAA,EAAuD,CAAC,GAA9EG,kBAER,OAAKD,EAKEC,EACL,kBAACC,MAAAA,CAAIC,UAAWC,EAAOC,4BACrB,kBAACJ,EAAAA,CAAkBF,YAAaA,KAGlC,sCATAO,QAAQC,KAAK,2DACN,KAUX,C,kNCOA,QAvB+E,SAACC,G,IAE1DT,EAAAA,EADd,EAAyCS,EAAvCT,YAAgBU,E,kXAAAA,CAAuBD,EAAAA,CAAvCT,gBACFW,EAAcX,QAAAA,EAAAA,SAAAA,IAAAA,GAAoB,QAApBA,EAAAA,EAAaC,eAAbD,IAAAA,OAAAA,EAAAA,EAAsBY,KAEpCC,GAA8BC,EAAAA,EAAAA,UAClC,W,6UAAO,EACLH,YAAAA,EACAI,2BAA4B,wCAC5BC,uBAAwB,oCACxBC,2BAA4B,0CACzBP,E,GAEL,CAACC,EAAaD,IAGhB,OACE,kBAACP,MAAAA,KACC,kBAACe,EAAAA,QAA+B,CAAElB,YAAAA,IAClC,kBAACmB,EAAAA,cAAaA,CAACC,KAAK,6CAA6CC,MAAOR,IAG9E,C","sources":["webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/style.scss","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/style.scss?2cee","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/patient-banner.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-clinical-forms-workspace/patient-clinical-forms.workspace.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","useAppContext","wardPatient","patient","WardPatientHeader","div","className","styles","wardWorkspacePatientBanner","console","warn","props","restWorkspaceProps","patientUuid","uuid","clinicalFormsExtensionState","useMemo","clinicalFormsWorkspaceName","formEntryWorkspaceName","htmlFormEntryWorkspaceName","WardPatientWorkspaceBanner","ExtensionSlot","name","state"],"sourceRoot":""}
1
+ {"version":3,"file":"5146.js","mappings":"iMAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,6ZAA8Z,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,4DAA4D,MAAQ,GAAG,SAAW,uGAAuG,eAAiB,CAAC,o7DAAo7D,gIAAgI,WAAa,MAEtzFH,EAAwBI,OAAS,CAChC,2BAA8B,wDAE/B,S,WCFAF,EAAOG,QAAU,SAAUC,GACzB,IAAIC,EAAO,GAuDX,OArDAA,EAAKC,SAAW,WACd,OAAOC,KAAKC,KAAI,SAAUC,GACxB,IAAIC,EAAUN,EAAuBK,GAErC,OAAIA,EAAK,GACA,UAAUE,OAAOF,EAAK,GAAI,MAAME,OAAOD,EAAS,KAGlDA,CACT,IAAGE,KAAK,GACV,EAIAP,EAAKQ,EAAI,SAAUC,EAASC,EAAYC,GACf,iBAAZF,IAETA,EAAU,CAAC,CAAC,KAAMA,EAAS,MAG7B,IAAIG,EAAyB,CAAC,EAE9B,GAAID,EACF,IAAK,IAAIH,EAAI,EAAGA,EAAIN,KAAKW,OAAQL,IAAK,CAEpC,IAAIZ,EAAKM,KAAKM,GAAG,GAEP,MAANZ,IACFgB,EAAuBhB,IAAM,EAEjC,CAGF,IAAK,IAAIkB,EAAK,EAAGA,EAAKL,EAAQI,OAAQC,IAAM,CAC1C,IAAIV,EAAO,GAAGE,OAAOG,EAAQK,IAEzBH,GAAUC,EAAuBR,EAAK,MAKtCM,IACGN,EAAK,GAGRA,EAAK,GAAK,GAAGE,OAAOI,EAAY,SAASJ,OAAOF,EAAK,IAFrDA,EAAK,GAAKM,GAMdV,EAAKN,KAAKU,GACZ,CACF,EAEOJ,CACT,C,WCzDA,SAASe,EAAkBC,EAAKC,IAAkB,MAAPA,GAAeA,EAAMD,EAAIH,UAAQ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AA,IAAAA,GAAoB,QAApBA,EAAAA,EAAaC,eAAbD,IAAAA,OAAAA,EAAAA,EAAsBY,KAEpCC,GAA8BC,EAAAA,EAAAA,UAClC,W,6UAAO,EACLH,YAAAA,EACAI,2BAA4B,wCAC5BC,uBAAwB,oCACxBC,2BAA4B,0CACzBP,E,GAEL,CAACC,EAAaD,IAGhB,OACE,kBAACP,MAAAA,KACC,kBAACe,EAAAA,QAA+B,CAAElB,YAAAA,IAClC,kBAACmB,EAAAA,cAAaA,CAACzG,KAAK,6CAA6C0G,MAAOP,IAG9E,C","sources":["webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/style.scss","webpack://@openmrs/esm-ward-app/../../node_modules/@openmrs/webpack-config/node_modules/css-loader/dist/runtime/api.js","webpack://@openmrs/esm-ward-app/../../node_modules/@openmrs/webpack-config/node_modules/css-loader/dist/runtime/cssWithMappingToString.js","webpack://@openmrs/esm-ward-app/../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@openmrs/esm-ward-app/../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@openmrs/esm-ward-app/../../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@openmrs/esm-ward-app/../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@openmrs/esm-ward-app/../../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://@openmrs/esm-ward-app/../../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/style.scss?2cee","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-banner/patient-banner.component.tsx","webpack://@openmrs/esm-ward-app/./src/ward-workspace/patient-clinical-forms-workspace/patient-clinical-forms.workspace.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","exports","cssWithMappingToString","list","toString","this","map","item","content","concat","join","i","modules","mediaQuery","dedupe","alreadyImportedModules","length","_i","_arrayLikeToArray","arr","len","arr2","Array","_item","isArray","_arrayWithHoles","Symbol","iterator","_s","_e","_arr","_n","_d","call","next","done","value","err","_iterableToArrayLimit","o","minLen","n","Object","prototype","slice","constructor","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","cssMapping","btoa","base64","unescape","encodeURIComponent","JSON","stringify","data","sourceMapping","sourceURLs","sources","source","sourceRoot","stylesInDOM","getIndexByIdentifier","identifier","result","modulesToDom","options","idCountMap","identifiers","base","count","indexByIdentifier","obj","css","media","sourceMap","supports","layer","references","updater","addElementStyle","byIndex","splice","api","domAPI","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_index","memo","insert","style","target","styleTarget","document","querySelector","window","HTMLIFrameElement","contentDocument","head","e","getTarget","Error","appendChild","element","createElement","setAttributes","attributes","styleElement","nonce","setAttribute","insertStyleElement","needLayer","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","undefined","useAppContext","wardPatient","patient","WardPatientHeader","div","className","styles","wardWorkspacePatientBanner","console","warn","props","restWorkspaceProps","patientUuid","uuid","clinicalFormsExtensionState","useMemo","clinicalFormsWorkspaceName","formEntryWorkspaceName","htmlFormEntryWorkspaceName","WardPatientWorkspaceBanner","ExtensionSlot","state"],"sourceRoot":""}