@openmrs/esm-dispensing-app 1.9.2-pre.992 → 1.9.2-pre.995
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/cache/bf30f9a162c244a9-meta.json +1 -0
- package/.turbo/cache/bf30f9a162c244a9.tar.zst +0 -0
- package/.turbo/turbo-build.log +14 -19
- package/dist/1282.js +1 -1
- package/dist/1282.js.map +1 -1
- package/dist/1856.js +1 -1
- package/dist/2898.js +1 -1
- package/dist/2898.js.map +1 -1
- package/dist/4099.js +1 -1
- package/dist/4099.js.map +1 -1
- package/dist/445.js +2 -0
- package/dist/445.js.map +1 -0
- package/dist/4999.js +2 -0
- package/dist/4999.js.map +1 -0
- package/dist/561.js +1 -1
- package/dist/561.js.map +1 -1
- package/dist/5897.js +1 -1
- package/dist/5897.js.map +1 -1
- package/dist/6841.js +1 -1
- package/dist/6841.js.map +1 -1
- package/dist/7255.js +1 -0
- package/dist/7255.js.map +1 -0
- package/dist/8600.js +1 -1
- package/dist/8600.js.map +1 -1
- package/dist/963.js +1 -1
- package/dist/963.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-dispensing-app.js +1 -1
- package/dist/openmrs-esm-dispensing-app.js.buildmanifest.json +110 -131
- package/dist/openmrs-esm-dispensing-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +6 -6
- package/.turbo/cache/b46ce859f5d2eba3-meta.json +0 -1
- package/.turbo/cache/b46ce859f5d2eba3.tar.zst +0 -0
- package/dist/1033.js +0 -1
- package/dist/1033.js.map +0 -1
- package/dist/3414.js +0 -1
- package/dist/3414.js.map +0 -1
- package/dist/6892.js +0 -2
- package/dist/6892.js.map +0 -1
- package/dist/9162.js +0 -2
- package/dist/9162.js.map +0 -1
- /package/dist/{9162.js.LICENSE.txt → 445.js.LICENSE.txt} +0 -0
- /package/dist/{6892.js.LICENSE.txt → 4999.js.LICENSE.txt} +0 -0
package/dist/1282.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[1282],{4422:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),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-dispensing__pharmacy-header__header___SqCly{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0);color:#525252;height:6rem;background-color:#fff;display:flex;justify-content:space-between}.-esm-dispensing__pharmacy-header__leftJustifiedItems___qHG0b{display:flex;flex-direction:row;align-items:center;margin-left:1rem}.-esm-dispensing__pharmacy-header__rightJustifiedItems___LoxfU{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0);color:#525252;padding-top:1rem}.-esm-dispensing__pharmacy-header__pageName___\\+cHVt{font-size:var(--cds-heading-04-font-size, 1.75rem);font-weight:var(--cds-heading-04-font-weight, 400);line-height:var(--cds-heading-04-line-height, 1.28572);letter-spacing:var(--cds-heading-04-letter-spacing, 0)}.-esm-dispensing__pharmacy-header__pageLabels___4sjNR{margin-left:1rem}.-esm-dispensing__pharmacy-header__pageLabels___4sjNR p:first-of-type{margin-bottom:.25rem}.-esm-dispensing__pharmacy-header__dateAndLocation___ZobdG{display:flex;justify-content:flex-end;align-items:center;margin-right:1rem}.-esm-dispensing__pharmacy-header__value___KSx0o{margin-left:.25rem}.-esm-dispensing__pharmacy-header__middot___mO9w-{margin:0 .5rem}.-esm-dispensing__pharmacy-header__view___rdi8M{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/pharmacy-header/pharmacy-header.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,kDC81BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD51BF,aDCQ,CAAA,WG2DG,CF1DX,qBDLM,CCMN,YAAA,CACA,6BAAA,CAGF,8DACE,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,gBEcW,CFXb,+DC80BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD50BF,aDfQ,CCgBR,gBEQW,CFLb,qDCw0BI,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,sDAAA,CDp0BJ,sDACE,gBAAA,CACA,sEACE,oBEjBS,CFqBb,2DACE,YAAA,CACA,wBAAA,CACA,kBAAA,CACA,iBEVW,CFab,iDACE,kBE7BW,CFgCb,kDACE,cAAA,CAGF,gDC8yBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.header {\n @include type.type-style('body-compact-02');\n color: $text-02;\n height: layout.$spacing-12;\n background-color: $ui-02;\n display: flex;\n justify-content: space-between;\n}\n\n.leftJustifiedItems {\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-left: layout.$spacing-05;\n}\n\n.rightJustifiedItems {\n @include type.type-style('body-compact-02');\n color: $text-02;\n padding-top: layout.$spacing-05;\n}\n\n.pageName {\n @include type.type-style('heading-04');\n}\n\n.pageLabels {\n margin-left: layout.$spacing-05;\n p:first-of-type {\n margin-bottom: layout.$spacing-02;\n }\n}\n\n.dateAndLocation {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n margin-right: layout.$spacing-05;\n}\n\n.value {\n margin-left: layout.$spacing-02;\n}\n\n.middot {\n margin: 0 layout.$spacing-03;\n}\n\n.view {\n @include type.type-style('label-01');\n}\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n","// 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={header:"-esm-dispensing__pharmacy-header__header___SqCly",leftJustifiedItems:"-esm-dispensing__pharmacy-header__leftJustifiedItems___qHG0b",rightJustifiedItems:"-esm-dispensing__pharmacy-header__rightJustifiedItems___LoxfU",pageName:"-esm-dispensing__pharmacy-header__pageName___+cHVt",pageLabels:"-esm-dispensing__pharmacy-header__pageLabels___4sjNR",dateAndLocation:"-esm-dispensing__pharmacy-header__dateAndLocation___ZobdG",value:"-esm-dispensing__pharmacy-header__value___KSx0o",middot:"-esm-dispensing__pharmacy-header__middot___mO9w-",view:"-esm-dispensing__pharmacy-header__view___rdi8M"};const s=o},5505:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),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-dispensing__prescription-expanded__expandedTabsParentContainer___zs0a7{display:flex;flex-direction:column;margin-bottom:1rem}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K{display:flex;flex-direction:row}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tabs{margin:1rem 0;width:20%;max-height:8rem !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tab--list{flex-direction:column !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tab-content{margin:1rem 0;width:100% !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tabs__nav-link{border-bottom:0 !important;border-left:3px solid #e0e0e0 !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tabs__nav-item--selected{border-bottom:0px !important;border-left:3px solid var(--brand-03) !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K.cds--tabs--scrollable .cds--tabs--scrollable__nav-item + .cds--tabs--scrollable__nav-item{margin-left:0 !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K>ul{flex-direction:column !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K>ul>li button{width:12rem !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tabs__nav-link{max-width:12rem !important}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/prescriptions/prescription-expanded.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CC1DF,6EACE,YAAA,CACA,qBAAA,CACA,kBCyBW,CDtBb,uEACE,YAAA,CACA,kBAAA,CAEA,kFACE,aAAA,CACA,SAAA,CACA,0BAAA,CAGF,uFACE,gCAAA,CAGF,yFACE,aAAA,CACA,qBAAA,CAGF,4FACE,0BAAA,CACA,wCAAA,CAGF,sGACE,4BAAA,CACA,gDAAA,CAGF,iKACE,wBAAA,CAGF,0EACE,gCAAA,CAGF,oFACE,sBAAA,CAGF,4FACE,0BAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.expandedTabsParentContainer {\n display: flex;\n flex-direction: column;\n margin-bottom: layout.$spacing-05;\n}\n\n.expandedTabsContainer {\n display: flex;\n flex-direction: row;\n\n :global(.cds--tabs) {\n margin: layout.$spacing-05 0;\n width: 20%;\n max-height: 8rem !important;\n }\n\n :global(.cds--tab--list) {\n flex-direction: column !important;\n }\n\n :global(.cds--tab-content) {\n margin: layout.$spacing-05 0;\n width: 100% !important;\n }\n\n :global(.cds--tabs__nav-link) {\n border-bottom: 0 !important;\n border-left: 3px solid $ui-03 !important;\n }\n\n :global(.cds--tabs__nav-item--selected) {\n border-bottom: 0px !important;\n border-left: 3px solid var(--brand-03) !important;\n }\n\n &:global(.cds--tabs--scrollable .cds--tabs--scrollable__nav-item + .cds--tabs--scrollable__nav-item) {\n margin-left: 0 !important;\n }\n\n > ul {\n flex-direction: column !important;\n }\n\n > ul > li button {\n width: 12rem !important;\n }\n\n :global(.cds--tabs__nav-link) {\n max-width: 12rem !important;\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={expandedTabsParentContainer:"-esm-dispensing__prescription-expanded__expandedTabsParentContainer___zs0a7",expandedTabsContainer:"-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K"};const s=o},9806:(e,n,t)=>{"use strict";t.d(n,{CL:()=>v,Fq:()=>R,Go:()=>q,Gp:()=>x,HP:()=>$,H_:()=>M,M$:()=>C,Q0:()=>E,Qe:()=>P,Qm:()=>k,Qz:()=>T,R9:()=>w,Xs:()=>g,Yi:()=>U,Yo:()=>N,Z_:()=>D,_e:()=>y,aC:()=>m,bP:()=>z,c1:()=>F,f4:()=>S,gY:()=>L,ky:()=>A,oK:()=>b,ox:()=>h,p8:()=>B,se:()=>W,vj:()=>O});var a=t(70231),i=t.n(a),r=t(27804),o=t(27042),s=t(25987),l=t(50930);function c(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 p(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){return function(e){if(Array.isArray(e))return c(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 c(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)?c(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.")}()}var u="Misconfiguration, please contact your System Administrator: Can't calculate quantity dispensed if units don't match. Likely issue: allowModifyingPrescription and restrictTotalQuantityDispensed configuration parameters both set to true. Either set restrictTotalQuantityDispensed to false or set allowModifyingPrescription to false. If you have previously entered dispense events that modified prescriptions, you will likely need to clean up or remove that data before setting restrictTotalQuantityDispensed to true.";function f(e,n){if(n&&$(e)<=0)return o.O7.completed;var t=D(e.dispenses);return t===o.NV.declined?o.O7.declined:t===o.NV.on_hold?o.O7.on_hold:null}function g(e,n){var t=h(e,n),a=k(e);if(t!==o.FA.active){if(t===o.FA.expired)return o._z.expired;if(t===o.FA.completed)return o._z.completed;if(t===o.FA.cancelled)return o._z.cancelled}return a===o.O7.declined?o._z.declined:a===o.O7.on_hold?o._z.on_hold:o._z.active}function h(e,n){var t,a;return e.status===o.FA.cancelled||e.status===o.FA.completed?e.status:(null===(a=e.dispenseRequest)||void 0===a||null===(t=a.validityPeriod)||void 0===t?void 0:t.start)&&i()(e.dispenseRequest.validityPeriod.start).isBefore(i()().startOf("day").subtract(n,"day"))?o.FA.expired:o.FA.active}function y(e,n,t){var a=d(n.dispenses);return a=e.id?a.map((function(n){return n.id===e.id?e:n})):[e].concat(d(a)),f({request:n.request,dispenses:a},t)}function m(e,n,t){return f({request:n.request,dispenses:n.dispenses.filter((function(n){return n.id!==e.id}))},t)}function b(e,n){var t=function(e,n){if(!e||0===e.length)return null;var t=e.map((function(e){return g(e,n)}));return t.includes(o._z.active)?o._z.active:t.includes(o._z.on_hold)?o._z.on_hold:t.includes(o._z.completed)?o._z.completed:t.includes(o._z.declined)?o._z.declined:t.includes(o._z.cancelled)?o._z.cancelled:t.includes(o._z.expired)?o._z.expired:null}(e,n);return null===t?null:t===o._z.active?"active":t===o._z.on_hold?"paused":t===o._z.completed?"completed":t===o._z.declined?"closed":t===o._z.expired?"expired":t===o._z.cancelled?"cancelled":null}function $(e){if(e){if(!j([e.request].concat(d(e.dispenses))))throw new Error(u);return i=F(n=e.request),((null===(a=n.dispenseRequest)||void 0===a||null===(t=a.quantity)||void 0===t?void 0:t.value)?n.dispenseRequest.quantity.value*(1+(i||0)):null)-A(e.dispenses)}var n,t,a,i;return 0}function A(e){if(e){if(!j(e))throw new Error(u);return e.map((function(e){var n,t;return(null===(n=e.quantity)||void 0===n?void 0:n.value)?null===(t=e.quantity)||void 0===t?void 0:t.value:0})).reduce((function(e,n){return e+n}),0)}return 0}function v(e,n){return null==n?void 0:n.filter((function(n){var t;return null==n||null===(t=n.authorizingPrescription)||void 0===t?void 0:t.some((function(n){return n.reference.endsWith(e.id)}))}))}function _(e){return e?e.find((function(e){return!("system"in e)||void 0===e.system})):null}function w(e){var n;return null===(n=_(e))||void 0===n?void 0:n.display}function C(e){var n;return null===(n=_(e))||void 0===n?void 0:n.code}function x(e){return(null==e?void 0:e.length)>0?e[0]:null}function k(e){var n,t;return null==e||null===(t=e.extension)||void 0===t||null===(n=t.find((function(e){return e.url===l.Yj})))||void 0===n?void 0:n.valueCode}function z(e){return"".concat(s.fhirBaseUrl,"/Medication?code=").concat(e)}function E(e){return e.medicationReference?e.medicationReference.display:w(null==e?void 0:e.medicationCodeableConcept.coding)+": "+(null==e?void 0:e.medicationCodeableConcept.text)}function M(e){return{medicationReference:e.medicationReference,medicationCodeableConcept:e.medicationCodeableConcept}}function D(e){var n=null==e?void 0:e.sort(R);return n&&n.length>0?n[0].status:null}function B(e,n){return e.find((function(e){return e.dispenses.find((function(e){return e.id===n.id}))}))}function T(e){if(!e||!e.extension)return null;var n=e.extension.find((function(e){return e.url===l.Wz}));if(!n||!n.extension)return null;var t=n.extension.find((function(e){return e.url===l.Wz+"#drugName"}));return t?t.valueString:null}function N(e){return"".concat(s.fhirBaseUrl,"/").concat(l.c1,"?encounter=").concat(e,"&_revinclude=MedicationDispense:prescription&_include=MedicationRequest:encounter")}function S(e,n,t,a,i){return I("".concat(s.fhirBaseUrl,"/").concat(l.T,"&_getpagesoffset=").concat(e,"&_count=").concat(n,"&date=ge").concat(t,"&status=active"),a,i)}function q(e,n,t,a){return I("".concat(s.fhirBaseUrl,"/").concat(l.T,"&_getpagesoffset=").concat(e,"&_count=").concat(n),t,a)}function I(e,n,t){return n&&(e="".concat(e,"&patientSearchTerm=").concat(n)),t&&(e="".concat(e,"&location=").concat(t)),e}function P(e){var n;return"MedicationRequest"==e.resourceType?null===(n=e.dispenseRequest)||void 0===n?void 0:n.quantity:"MedicationDispense"==e.resourceType?e.quantity:void 0}function j(e){if(e){var n=e.map((function(e){var n;return null===(n=P(e))||void 0===n?void 0:n.code})).filter((function(e){return e}));return!(n.length>0)||n.every((function(e){return e===n[0]}))}return!0}function F(e){var n;return"MedicationRequest"==e.resourceType?null===(n=e.dispenseRequest)||void 0===n?void 0:n.numberOfRepeatsAllowed:null}function O(e){return(null==e?void 0:e.includes("/"))?e.split("/")[1]:e}function U(e){return(n=function(){return function(e,n){var t,a,i,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(r=0)),r;)try{if(t=1,a&&(i=2&s[0]?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,a=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!((i=(i=r.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(6===s[0]&&r.label<i[1]){r.label=i[1],i=s;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(s);break}i[2]&&r.ops.pop(),r.trys.pop();continue}s=n.call(e,r)}catch(e){s=[6,e],a=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,(function(n){switch(n.label){case 0:return[4,(0,r.j)((function(n){return"string"==typeof n&&(n.startsWith("".concat(s.fhirBaseUrl,"/").concat(l.T))||n.startsWith("".concat(s.fhirBaseUrl,"/").concat(l.c1,"?encounter=").concat(e)))}))];case 1:return n.sent(),G.setState((function(n){return{staleEncounterUuids:n.staleEncounterUuids.filter((function(n){return n!==e}))}})),[2]}}))},function(){var e=this,t=arguments;return new Promise((function(a,i){var r=n.apply(e,t);function o(e){p(r,a,i,o,s,"next",e)}function s(e){p(r,a,i,o,s,"throw",e)}o(void 0)}))})();var n}function L(e){G.setState((function(n){return{staleEncounterUuids:d(n.staleEncounterUuids).concat([e])}}))}function R(e,n){if(null===n.whenHandedOver)return 1;if(null===e.whenHandedOver)return-1;var t=(0,s.parseDate)(n.whenHandedOver).getTime()-(0,s.parseDate)(e.whenHandedOver).getTime();return 0!==t?t:e.id.localeCompare(n.id)}var G=(0,s.createGlobalStore)("dispensing-store",{staleEncounterUuids:[]});function W(){return(0,s.useStore)(G)}},18140:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),o=t.n(r)()(i());o.push([e.id,".-esm-dispensing__print-prescription__title___Q\\+FEc{font-size:var(--cds-heading-02-font-size, 1rem);font-weight:var(--cds-heading-02-font-weight, 600);line-height:var(--cds-heading-02-line-height, 1.5);letter-spacing:var(--cds-heading-02-letter-spacing, 0)}.-esm-dispensing__print-prescription__btnSet___fKvQJ{width:100%}.-esm-dispensing__print-prescription__faintText___q-d\\+e{color:#000;font-size:var(--cds-heading-01-font-size, 0.875rem);font-weight:var(--cds-heading-01-font-weight, 600);line-height:var(--cds-heading-01-line-height, 1.42857);letter-spacing:var(--cds-heading-01-letter-spacing, 0.16px)}.-esm-dispensing__print-prescription__printOutContainer___5\\+hc\\+{width:20rem;background-color:#fff;padding:.5rem}@media print{.-esm-dispensing__print-prescription__printOutContainer___5\\+hc\\+{background-color:#fff;height:100vh;padding:0}}.-esm-dispensing__print-prescription__printoutTitle___0Vjmu{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);text-align:center;font-weight:bold}.-esm-dispensing__print-prescription__facilityName___Rb3tg{color:#000;text-align:end;padding:1rem;font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}.-esm-dispensing__print-prescription__prescriber___FH809{color:#000;padding:1rem;font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}.-esm-dispensing__print-prescription__printoutSelectorRow___l9J1Z{display:flex;flex-direction:row;gap:1rem;padding:0 1rem 0 1rem;justify-content:space-between}.-esm-dispensing__print-prescription__patientName___OGjRy{text-transform:capitalize;text-align:center}.-esm-dispensing__print-prescription__printPreviewContainer___mI4iD{background-color:#fff}.-esm-dispensing__print-prescription__prescriptionInfo___jDM5H{color:#000;font-weight:bolder;font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}.-esm-dispensing__print-prescription__medicationName___DIqPL{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0);color:#000}","",{version:3,sources:["webpack://./src/print-prescription/print-prescription.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss","webpack://./node_modules/@carbon/colors/index.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAIA,qDC81BI,+CAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CD11BJ,qDACE,UAAA,CAGF,yDACE,UELM,CD01BJ,mDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,2DAAA,CDj1BJ,kEACE,WAAA,CACA,qBEVM,CFWN,aGCW,CHCX,aALF,kEAMI,qBEdI,CFeJ,YAAA,CACA,SAAA,CAAA,CAIJ,4DCq0BI,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDn0BF,iBAAA,CACA,gBAAA,CAGF,2DACE,UE5BM,CF6BN,cAAA,CACA,YGPW,CFm0BT,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CDxzBJ,yDACE,UEnCM,CFoCN,YGbW,CFm0BT,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CDlzBJ,kEACE,YAAA,CACA,kBAAA,CACA,QGpBW,CHqBX,qBAAA,CACA,6BAAA,CAGF,0DACE,yBAAA,CACA,iBAAA,CAGF,oEACE,qBErDM,CFwDR,+DACE,UE1DM,CF2DN,kBAAA,CC+xBE,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD3xBJ,6DC2xBI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CDzxBF,UEjEM",sourcesContent:["@use '@carbon/colors';\n@use '@carbon/layout';\n@use '@carbon/type';\n\n.title {\n @include type.type-style('heading-02');\n}\n\n.btnSet {\n width: 100%;\n}\n\n.faintText {\n color: colors.$black;\n @include type.type-style('heading-01');\n}\n\n.printOutContainer {\n width: 20rem;\n background-color: colors.$white;\n padding: layout.$spacing-03;\n\n @media print {\n background-color: colors.$white;\n height: 100vh;\n padding: 0;\n }\n}\n\n.printoutTitle {\n @include type.type-style('heading-03');\n text-align: center;\n font-weight: bold;\n}\n\n.facilityName {\n color: colors.$black;\n text-align: end;\n padding: layout.$spacing-05;\n @include type.type-style('label-01');\n}\n\n.prescriber {\n color: colors.$black;\n padding: layout.$spacing-05;\n @include type.type-style('label-01');\n}\n\n.printoutSelectorRow {\n display: flex;\n flex-direction: row;\n gap: layout.$spacing-05;\n padding: 0 layout.$spacing-05 0 layout.$spacing-05;\n justify-content: space-between;\n}\n\n.patientName {\n text-transform: capitalize;\n text-align: center;\n}\n\n.printPreviewContainer {\n background-color: colors.$white;\n}\n\n.prescriptionInfo {\n color: colors.$black;\n font-weight: bolder;\n @include type.type-style('label-01');\n}\n\n.medicationName {\n @include type.type-style('body-compact-02');\n color: colors.$black;\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","// Code generated by @carbon/colors. 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$black: #000000 !default;\n$white: #ffffff !default;\n\n$black-100: #000000 !default;\n$blue-10: #edf5ff !default;\n$blue-20: #d0e2ff !default;\n$blue-30: #a6c8ff !default;\n$blue-40: #78a9ff !default;\n$blue-50: #4589ff !default;\n$blue-60: #0f62fe !default;\n$blue-70: #0043ce !default;\n$blue-80: #002d9c !default;\n$blue-90: #001d6c !default;\n$blue-100: #001141 !default;\n$cool-gray-10: #f2f4f8 !default;\n$cool-gray-20: #dde1e6 !default;\n$cool-gray-30: #c1c7cd !default;\n$cool-gray-40: #a2a9b0 !default;\n$cool-gray-50: #878d96 !default;\n$cool-gray-60: #697077 !default;\n$cool-gray-70: #4d5358 !default;\n$cool-gray-80: #343a3f !default;\n$cool-gray-90: #21272a !default;\n$cool-gray-100: #121619 !default;\n$cyan-10: #e5f6ff !default;\n$cyan-20: #bae6ff !default;\n$cyan-30: #82cfff !default;\n$cyan-40: #33b1ff !default;\n$cyan-50: #1192e8 !default;\n$cyan-60: #0072c3 !default;\n$cyan-70: #00539a !default;\n$cyan-80: #003a6d !default;\n$cyan-90: #012749 !default;\n$cyan-100: #061727 !default;\n$gray-10: #f4f4f4 !default;\n$gray-20: #e0e0e0 !default;\n$gray-30: #c6c6c6 !default;\n$gray-40: #a8a8a8 !default;\n$gray-50: #8d8d8d !default;\n$gray-60: #6f6f6f !default;\n$gray-70: #525252 !default;\n$gray-80: #393939 !default;\n$gray-90: #262626 !default;\n$gray-100: #161616 !default;\n$green-10: #defbe6 !default;\n$green-20: #a7f0ba !default;\n$green-30: #6fdc8c !default;\n$green-40: #42be65 !default;\n$green-50: #24a148 !default;\n$green-60: #198038 !default;\n$green-70: #0e6027 !default;\n$green-80: #044317 !default;\n$green-90: #022d0d !default;\n$green-100: #071908 !default;\n$magenta-10: #fff0f7 !default;\n$magenta-20: #ffd6e8 !default;\n$magenta-30: #ffafd2 !default;\n$magenta-40: #ff7eb6 !default;\n$magenta-50: #ee5396 !default;\n$magenta-60: #d02670 !default;\n$magenta-70: #9f1853 !default;\n$magenta-80: #740937 !default;\n$magenta-90: #510224 !default;\n$magenta-100: #2a0a18 !default;\n$orange-10: #fff2e8 !default;\n$orange-20: #ffd9be !default;\n$orange-30: #ffb784 !default;\n$orange-40: #ff832b !default;\n$orange-50: #eb6200 !default;\n$orange-60: #ba4e00 !default;\n$orange-70: #8a3800 !default;\n$orange-80: #5e2900 !default;\n$orange-90: #3e1a00 !default;\n$orange-100: #231000 !default;\n$purple-10: #f6f2ff !default;\n$purple-20: #e8daff !default;\n$purple-30: #d4bbff !default;\n$purple-40: #be95ff !default;\n$purple-50: #a56eff !default;\n$purple-60: #8a3ffc !default;\n$purple-70: #6929c4 !default;\n$purple-80: #491d8b !default;\n$purple-90: #31135e !default;\n$purple-100: #1c0f30 !default;\n$red-10: #fff1f1 !default;\n$red-20: #ffd7d9 !default;\n$red-30: #ffb3b8 !default;\n$red-40: #ff8389 !default;\n$red-50: #fa4d56 !default;\n$red-60: #da1e28 !default;\n$red-70: #a2191f !default;\n$red-80: #750e13 !default;\n$red-90: #520408 !default;\n$red-100: #2d0709 !default;\n$teal-10: #d9fbfb !default;\n$teal-20: #9ef0f0 !default;\n$teal-30: #3ddbd9 !default;\n$teal-40: #08bdba !default;\n$teal-50: #009d9a !default;\n$teal-60: #007d79 !default;\n$teal-70: #005d5d !default;\n$teal-80: #004144 !default;\n$teal-90: #022b30 !default;\n$teal-100: #081a1c !default;\n$warm-gray-10: #f7f3f2 !default;\n$warm-gray-20: #e5e0df !default;\n$warm-gray-30: #cac5c4 !default;\n$warm-gray-40: #ada8a8 !default;\n$warm-gray-50: #8f8b8b !default;\n$warm-gray-60: #726e6e !default;\n$warm-gray-70: #565151 !default;\n$warm-gray-80: #3c3838 !default;\n$warm-gray-90: #272525 !default;\n$warm-gray-100: #171414 !default;\n$white-0: #ffffff !default;\n$yellow-10: #fcf4d6 !default;\n$yellow-20: #fddc69 !default;\n$yellow-30: #f1c21b !default;\n$yellow-40: #d2a106 !default;\n$yellow-50: #b28600 !default;\n$yellow-60: #8e6a00 !default;\n$yellow-70: #684e00 !default;\n$yellow-80: #483700 !default;\n$yellow-90: #302400 !default;\n$yellow-100: #1c1500 !default;\n\n$white-hover: #e8e8e8 !default;\n$black-hover: #212121 !default;\n$blue-10-hover: #dbebff !default;\n$blue-20-hover: #b8d3ff !default;\n$blue-30-hover: #8ab6ff !default;\n$blue-40-hover: #5c97ff !default;\n$blue-50-hover: #1f70ff !default;\n$blue-60-hover: #0050e6 !default;\n$blue-70-hover: #0053ff !default;\n$blue-80-hover: #0039c7 !default;\n$blue-90-hover: #00258a !default;\n$blue-100-hover: #001f75 !default;\n$cool-gray-10-hover: #e4e9f1 !default;\n$cool-gray-20-hover: #cdd3da !default;\n$cool-gray-30-hover: #adb5bd !default;\n$cool-gray-40-hover: #9199a1 !default;\n$cool-gray-50-hover: #757b85 !default;\n$cool-gray-60-hover: #585e64 !default;\n$cool-gray-70-hover: #5d646a !default;\n$cool-gray-80-hover: #434a51 !default;\n$cool-gray-90-hover: #2b3236 !default;\n$cool-gray-100-hover: #222a2f !default;\n$cyan-10-hover: #cceeff !default;\n$cyan-20-hover: #99daff !default;\n$cyan-30-hover: #57beff !default;\n$cyan-40-hover: #059fff !default;\n$cyan-50-hover: #0f7ec8 !default;\n$cyan-60-hover: #005fa3 !default;\n$cyan-70-hover: #0066bd !default;\n$cyan-80-hover: #00498a !default;\n$cyan-90-hover: #013360 !default;\n$cyan-100-hover: #0b2947 !default;\n$gray-10-hover: #e8e8e8 !default;\n$gray-20-hover: #d1d1d1 !default;\n$gray-30-hover: #b5b5b5 !default;\n$gray-40-hover: #999999 !default;\n$gray-50-hover: #7a7a7a !default;\n$gray-60-hover: #5e5e5e !default;\n$gray-70-hover: #636363 !default;\n$gray-80-hover: #474747 !default;\n$gray-90-hover: #333333 !default;\n$gray-100-hover: #292929 !default;\n$green-10-hover: #b6f6c8 !default;\n$green-20-hover: #74e792 !default;\n$green-30-hover: #36ce5e !default;\n$green-40-hover: #3bab5a !default;\n$green-50-hover: #208e3f !default;\n$green-60-hover: #166f31 !default;\n$green-70-hover: #11742f !default;\n$green-80-hover: #05521c !default;\n$green-90-hover: #033b11 !default;\n$green-100-hover: #0d300f !default;\n$magenta-10-hover: #ffe0ef !default;\n$magenta-20-hover: #ffbdda !default;\n$magenta-30-hover: #ff94c3 !default;\n$magenta-40-hover: #ff57a0 !default;\n$magenta-50-hover: #e3176f !default;\n$magenta-60-hover: #b0215f !default;\n$magenta-70-hover: #bf1d63 !default;\n$magenta-80-hover: #8e0b43 !default;\n$magenta-90-hover: #68032e !default;\n$magenta-100-hover: #53142f !default;\n$orange-10-hover: #ffe2cc !default;\n$orange-20-hover: #ffc69e !default;\n$orange-30-hover: #ff9d57 !default;\n$orange-40-hover: #fa6800 !default;\n$orange-50-hover: #cc5500 !default;\n$orange-60-hover: #9e4200 !default;\n$orange-70-hover: #a84400 !default;\n$orange-80-hover: #753300 !default;\n$orange-90-hover: #522200 !default;\n$orange-100-hover: #421e00 !default;\n$purple-10-hover: #ede5ff !default;\n$purple-20-hover: #dcc7ff !default;\n$purple-30-hover: #c5a3ff !default;\n$purple-40-hover: #ae7aff !default;\n$purple-50-hover: #9352ff !default;\n$purple-60-hover: #7822fb !default;\n$purple-70-hover: #7c3dd6 !default;\n$purple-80-hover: #5b24ad !default;\n$purple-90-hover: #40197b !default;\n$purple-100-hover: #341c59 !default;\n$red-10-hover: #ffe0e0 !default;\n$red-20-hover: #ffc2c5 !default;\n$red-30-hover: #ff99a0 !default;\n$red-40-hover: #ff6168 !default;\n$red-50-hover: #ee0713 !default;\n$red-60-hover: #b81922 !default;\n$red-70-hover: #c21e25 !default;\n$red-80-hover: #921118 !default;\n$red-90-hover: #66050a !default;\n$red-100-hover: #540d11 !default;\n$teal-10-hover: #acf6f6 !default;\n$teal-20-hover: #57e5e5 !default;\n$teal-30-hover: #25cac8 !default;\n$teal-40-hover: #07aba9 !default;\n$teal-50-hover: #008a87 !default;\n$teal-60-hover: #006b68 !default;\n$teal-70-hover: #007070 !default;\n$teal-80-hover: #005357 !default;\n$teal-90-hover: #033940 !default;\n$teal-100-hover: #0f3034 !default;\n$warm-gray-10-hover: #f0e8e6 !default;\n$warm-gray-20-hover: #d8d0cf !default;\n$warm-gray-30-hover: #b9b3b1 !default;\n$warm-gray-40-hover: #9c9696 !default;\n$warm-gray-50-hover: #7f7b7b !default;\n$warm-gray-60-hover: #605d5d !default;\n$warm-gray-70-hover: #696363 !default;\n$warm-gray-80-hover: #4c4848 !default;\n$warm-gray-90-hover: #343232 !default;\n$warm-gray-100-hover: #2c2626 !default;\n$yellow-10-hover: #f8e6a0 !default;\n$yellow-20-hover: #fccd27 !default;\n$yellow-30-hover: #ddb00e !default;\n$yellow-40-hover: #bc9005 !default;\n$yellow-50-hover: #9e7700 !default;\n$yellow-60-hover: #755800 !default;\n$yellow-70-hover: #806000 !default;\n$yellow-80-hover: #5c4600 !default;\n$yellow-90-hover: #3d2e00 !default;\n$yellow-100-hover: #332600 !default;\n\n/// Colors from the IBM Design Language\n/// @access public\n/// @group @carbon/colors\n$colors: (\n black: (\n 100: #000000,\n ),\n blue: (\n 10: #edf5ff,\n 20: #d0e2ff,\n 30: #a6c8ff,\n 40: #78a9ff,\n 50: #4589ff,\n 60: #0f62fe,\n 70: #0043ce,\n 80: #002d9c,\n 90: #001d6c,\n 100: #001141,\n ),\n cool-gray: (\n 10: #f2f4f8,\n 20: #dde1e6,\n 30: #c1c7cd,\n 40: #a2a9b0,\n 50: #878d96,\n 60: #697077,\n 70: #4d5358,\n 80: #343a3f,\n 90: #21272a,\n 100: #121619,\n ),\n cyan: (\n 10: #e5f6ff,\n 20: #bae6ff,\n 30: #82cfff,\n 40: #33b1ff,\n 50: #1192e8,\n 60: #0072c3,\n 70: #00539a,\n 80: #003a6d,\n 90: #012749,\n 100: #061727,\n ),\n gray: (\n 10: #f4f4f4,\n 20: #e0e0e0,\n 30: #c6c6c6,\n 40: #a8a8a8,\n 50: #8d8d8d,\n 60: #6f6f6f,\n 70: #525252,\n 80: #393939,\n 90: #262626,\n 100: #161616,\n ),\n green: (\n 10: #defbe6,\n 20: #a7f0ba,\n 30: #6fdc8c,\n 40: #42be65,\n 50: #24a148,\n 60: #198038,\n 70: #0e6027,\n 80: #044317,\n 90: #022d0d,\n 100: #071908,\n ),\n magenta: (\n 10: #fff0f7,\n 20: #ffd6e8,\n 30: #ffafd2,\n 40: #ff7eb6,\n 50: #ee5396,\n 60: #d02670,\n 70: #9f1853,\n 80: #740937,\n 90: #510224,\n 100: #2a0a18,\n ),\n orange: (\n 10: #fff2e8,\n 20: #ffd9be,\n 30: #ffb784,\n 40: #ff832b,\n 50: #eb6200,\n 60: #ba4e00,\n 70: #8a3800,\n 80: #5e2900,\n 90: #3e1a00,\n 100: #231000,\n ),\n purple: (\n 10: #f6f2ff,\n 20: #e8daff,\n 30: #d4bbff,\n 40: #be95ff,\n 50: #a56eff,\n 60: #8a3ffc,\n 70: #6929c4,\n 80: #491d8b,\n 90: #31135e,\n 100: #1c0f30,\n ),\n red: (\n 10: #fff1f1,\n 20: #ffd7d9,\n 30: #ffb3b8,\n 40: #ff8389,\n 50: #fa4d56,\n 60: #da1e28,\n 70: #a2191f,\n 80: #750e13,\n 90: #520408,\n 100: #2d0709,\n ),\n teal: (\n 10: #d9fbfb,\n 20: #9ef0f0,\n 30: #3ddbd9,\n 40: #08bdba,\n 50: #009d9a,\n 60: #007d79,\n 70: #005d5d,\n 80: #004144,\n 90: #022b30,\n 100: #081a1c,\n ),\n warm-gray: (\n 10: #f7f3f2,\n 20: #e5e0df,\n 30: #cac5c4,\n 40: #ada8a8,\n 50: #8f8b8b,\n 60: #726e6e,\n 70: #565151,\n 80: #3c3838,\n 90: #272525,\n 100: #171414,\n ),\n white: (\n 0: #ffffff,\n ),\n yellow: (\n 10: #fcf4d6,\n 20: #fddc69,\n 30: #f1c21b,\n 40: #d2a106,\n 50: #b28600,\n 60: #8e6a00,\n 70: #684e00,\n 80: #483700,\n 90: #302400,\n 100: #1c1500,\n ),\n) !default;\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={title:"-esm-dispensing__print-prescription__title___Q+FEc",btnSet:"-esm-dispensing__print-prescription__btnSet___fKvQJ",faintText:"-esm-dispensing__print-prescription__faintText___q-d+e",printOutContainer:"-esm-dispensing__print-prescription__printOutContainer___5+hc+",printoutTitle:"-esm-dispensing__print-prescription__printoutTitle___0Vjmu",facilityName:"-esm-dispensing__print-prescription__facilityName___Rb3tg",prescriber:"-esm-dispensing__print-prescription__prescriber___FH809",printoutSelectorRow:"-esm-dispensing__print-prescription__printoutSelectorRow___l9J1Z",patientName:"-esm-dispensing__print-prescription__patientName___OGjRy",printPreviewContainer:"-esm-dispensing__print-prescription__printPreviewContainer___mI4iD",prescriptionInfo:"-esm-dispensing__print-prescription__prescriptionInfo___jDM5H",medicationName:"-esm-dispensing__print-prescription__medicationName___DIqPL"};const s=o},23015:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),o=t.n(r)()(i());o.push([e.id,".-esm-dispensing__dispensing__dispensing___He2wq.-esm-dispensing__dispensing__hasLeftNav___R31fy{margin-left:16rem}","",{version:3,sources:["webpack://./src/dispensing.scss"],names:[],mappings:"AACE,iGACE,iBAAA",sourcesContent:[".dispensing {\n &.hasLeftNav {\n margin-left: 16rem;\n }\n}\n"],sourceRoot:""}]),o.locals={dispensing:"-esm-dispensing__dispensing__dispensing___He2wq",hasLeftNav:"-esm-dispensing__dispensing__hasLeftNav___R31fy"};const s=o},24756:(e,n,t)=>{"use strict";t.d(n,{A7:()=>l,CG:()=>b,E:()=>p,M5:()=>u,Sj:()=>h,_D:()=>c,cE:()=>f,ij:()=>g,u9:()=>d,ux:()=>m});var a=t(70231),i=t.n(a),r=t(92177),o=t(25987);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e,n,t){var a=e.id?"".concat(o.fhirBaseUrl,"/MedicationDispense/").concat(e.id):"".concat(o.fhirBaseUrl,"/MedicationDispense"),i=e.id?"PUT":"POST";return e.status=n,e.whenPrepared=e.whenHandedOver,(0,o.openmrsFetch)(a,{method:i,signal:t.signal,headers:{"Content-Type":"application/json"},body:e})}function c(e){return(0,o.openmrsFetch)("".concat(o.fhirBaseUrl,"/MedicationDispense/").concat(e),{method:"DELETE"})}function p(){var e=(0,r.Ay)("".concat(o.restBaseUrl,"/orderentryconfig"),o.openmrsFetch),n=e.data,t=e.error,a=e.isValidating;return{orderConfigObject:n?n.data:null,error:t,isLoading:!n&&!t,isValidating:a}}function d(e){var n,t="custom:(uuid,person:(display)",a=(0,r.Ay)(e&&e.length>0?"".concat(o.restBaseUrl,"/provider?providerRoles=").concat(e.join(","),"&v=").concat(t,")"):"".concat(o.restBaseUrl,"/provider?v=").concat(t,")"),o.openmrsFetch).data;return null==a||null===(n=a.data)||void 0===n?void 0:n.results.sort((function(e,n){var t,a;return null===(a=e.person)||void 0===a?void 0:a.display.localeCompare(null===(t=n.person)||void 0===t?void 0:t.display)}))}function u(e){return{reasonForPauseValueSet:y(e)}}function f(e){return{reasonForCloseValueSet:y(e)}}function g(e){return{substitutionTypeValueSet:y(e)}}function h(e){return{substitutionReasonValueSet:y(e)}}function y(e){var n=(0,r.Ay)("".concat(o.fhirBaseUrl,"/ValueSet/").concat(e),o.openmrsFetch).data;return n?n.data:null}function m(e,n,t,a){var r,o,l,c,p,d,u,f,g,h,y,m={resourceType:"MedicationDispense",status:null,authorizingPrescription:[{reference:"MedicationRequest/"+e.id,type:"MedicationRequest"}],medicationReference:e.medicationReference,medicationCodeableConcept:e.medicationCodeableConcept,subject:e.subject,performer:[{actor:{reference:(null==n?void 0:n.currentProvider)&&t&&t.some((function(e){return e.uuid==n.currentProvider.uuid}))?"Practitioner/".concat(n.currentProvider.uuid):""}}],location:{reference:(null==n?void 0:n.sessionLocation)?"Location/".concat(n.sessionLocation.uuid):""},whenHandedOver:i()().format()};return a&&(h=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){s(e,n,t[n])}))}return e}({},m),y=null!=(y={quantity:{value:null===(o=e.dispenseRequest)||void 0===o||null===(r=o.quantity)||void 0===r?void 0:r.value,code:null===(c=e.dispenseRequest)||void 0===c||null===(l=c.quantity)||void 0===l?void 0:l.code,unit:null===(d=e.dispenseRequest)||void 0===d||null===(p=d.quantity)||void 0===p?void 0:p.unit,system:null===(f=e.dispenseRequest)||void 0===f||null===(u=f.quantity)||void 0===u?void 0:u.system},dosageInstruction:[{text:[e.dosageInstruction[0].text,(null===(g=e.dosageInstruction[0].additionalInstruction)||void 0===g?void 0:g.length)>0?e.dosageInstruction[0].additionalInstruction[0].text:null].filter((function(e){return null!=e})).join(" "),timing:e.dosageInstruction[0].timing,asNeededBoolean:!1,route:e.dosageInstruction[0].route,doseAndRate:e.dosageInstruction[0].doseAndRate?e.dosageInstruction[0].doseAndRate:[{doseQuantity:{value:null,code:null,unit:null}}]}],substitution:b})?y:{},Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(y)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(y)).forEach((function(e){Object.defineProperty(h,e,Object.getOwnPropertyDescriptor(y,e))})),m=h),m}var b={wasSubstituted:!1,reason:[{coding:[{code:null}]}],type:{coding:[{code:null}]}}},27042:(e,n,t)=>{"use strict";t.d(n,{FA:()=>i,NV:()=>a,O7:()=>r,_z:()=>o});var a=function(e){return e.on_hold="on-hold",e.completed="completed",e.declined="declined",e}({}),i=function(e){return e.active="active",e.cancelled="cancelled",e.completed="completed",e.expired="expired",e}({}),r=function(e){return e.on_hold="ON_HOLD",e.declined="DECLINED",e.completed="COMPLETED",e}({}),o=function(e){return e.active="active",e.cancelled="cancelled",e.completed="completed",e.expired="expired",e.on_hold="on-hold",e.declined="declined",e.unknown="unknown",e}({})},50930:(e,n,t)=>{"use strict";t.d(n,{Bi:()=>s,T:()=>f,Wz:()=>r,Yj:()=>o,Zw:()=>c,_8:()=>p,c1:()=>g,ih:()=>d,p1:()=>a,py:()=>l,w9:()=>u}),window.getOpenmrsSpaBase;var a="".concat(window.spaBase).concat("/dispensing"),i="http://fhir.openmrs.org/ext",r=i+"/medicine",o=i+"/medicationrequest/fulfillerstatus",s="Task: dispensing.create.dispense",l="Task: dispensing.create.dispense.allowSubstitutions",c="Task: dispensing.edit.dispense",p="Task: dispensing.delete.dispense",d="Task: dispensing.delete.dispense.ifCreator",u="application/merge-patch+json",f="Encounter?_query=encountersWithMedicationRequests",g="MedicationRequest"},61282:(e,n,t)=>{"use strict";t.r(n),t.d(n,{closeActionButton:()=>en,closeDispenseWorkspace:()=>an,deleteConfirmModal:()=>ln,dispenseActionButton:()=>nn,dispenseWorkspace:()=>rn,dispensing:()=>Ve,dispensingDashboard:()=>Ze,dispensingDashboardLink:()=>Xe,dispensingLink:()=>Ye,importTranslation:()=>He,patientConditions:()=>pn,patientDiagnoses:()=>cn,pauseActionButton:()=>tn,pauseDispenseWorkspace:()=>on,printPrescriptionPreviewModal:()=>sn,startupApp:()=>Je});var a=t(25987),i={appName:{_type:a.Type.String,_default:"Pharmacy"},actionButtons:{pauseButton:{enabled:{_type:a.Type.Boolean,_description:"Enabled/Disable including a Pause button in the button action bar",_default:!0}},closeButton:{enabled:{_type:a.Type.Boolean,_description:"Enabled/Disable including a Close button in the button action bar",_default:!0}}},dispenseBehavior:{allowModifyingPrescription:{_type:a.Type.Boolean,_description:"Enable/Disable editing the prescription. If Disabled, Quantity will be he only editable field on prescription form. Note that thins means that quantity units will need to be mandatory and set correctly on the prescription.",_default:!0},restrictTotalQuantityDispensed:{_type:a.Type.Boolean,_description:"Enable/Disable restricting dispensing quantity greater than total quantity ordered. Marks prescription as complete when total quantity dispensed. If true, allowModifyingPrescription *must* be false, as this functionality relies solely on numeric quantity and assumes no change in formulation, dosage, unit, etc",_default:!1}},dispenserProviderRoles:{_type:a.Type.Array,_description:'Array of provider roles uuids. If specified, only providers with these roles will be listed in the "Dispensed By" dropdown. Note that this simply restricts the providers that can be recorded as Dispensers, it does not limit who can create dispense events.',_default:[]},medicationRequestExpirationPeriodInDays:{_type:a.Type.Number,_description:"Medication Requests older that this will be considered expired",_default:90},locationBehavior:{locationColumn:{enabled:{_type:a.Type.Boolean,_description:"Enabled/Disable including a Location column in the main prescriptions table showing ordering location",_default:!1}},locationFilter:{enabled:{_type:a.Type.Boolean,_description:"Enable/Disable Location filter on main prescriptions page",_default:!1},tag:{_type:a.Type.String,_description:"Name of the location tag to use when fetching locations to populate filter",_default:"Login Location"}}},refreshInterval:{_type:a.Type.Number,_description:"The interval, in milliseconds, to query the backend for new/changed data",_default:6e4},valueSets:{reasonForPause:{uuid:{_type:a.Type.UUID,_description:"UUID for the Value Set of valid answers to the 'Reason for Pause' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/168099/",_default:"2462a9d7-61fb-4bf5-9359-aedecb8d03cb"}},reasonForClose:{uuid:{_type:a.Type.UUID,_description:"UUID for the Value Set of valid answers to the 'Reason for Close' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/168099/",_default:"2462a9d7-61fb-4bf5-9359-aedecb8d03cb"}},substitutionReason:{uuid:{_type:a.Type.UUID,_description:"UUID for the Value Set of valid answers to the 'Reason for Substitution' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/167862/",_default:"2de6e1be-f2dd-4ba0-9516-8a611aa2af9b"}},substitutionType:{uuid:{_type:a.Type.UUID,_description:"UUID for the Value Set of valid answers to the 'Type of Substitution' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/167859/",_default:"b9c5bca0-d026-4245-a4d2-e4c0a8999082"}}},enableStockDispense:{_type:a.Type.Boolean,_description:"Enable or disable stock deduction during the dispensing process. Requires the stock management module to be installed and configured.",_default:!1},validateBatch:{_type:a.Type.Boolean,_description:"Enable or disable stock item batch number validation. Requires the stock management module to be installed and configured.",_default:!0},leftNavMode:{_type:a.Type.String,_description:"Sets the left nav mode for the dispensing app.",_validators:[a.validators.oneOf(["normal","collapsed","hidden"])],_default:"collapsed"},completeOrderWithThisDispense:{_type:a.Type.Boolean,_description:'Enable or disable the "Complete order with this dispense" checkbox on the dispense form.',_default:!1}},r=t(16072),o=t.n(r),s=t(58817),l=t(53941),c=t(24756);var p=t(85072),d=t.n(p),u=t(97825),f=t.n(u),g=t(77659),h=t.n(g),y=t(55056),m=t.n(y),b=t(10540),$=t.n(b),A=t(41113),v=t.n(A),_=t(23015),w={};w.styleTagTransform=v(),w.setAttributes=m(),w.insert=h().bind(null,"head"),w.domAPI=f(),w.insertStyleElement=$(),d()(_.A,w);const C=_.A&&_.A.locals?_.A.locals:void 0;var x=t(46942),k=t.n(x),z=t(97136),E=t(83335);const M=function(){return o().createElement("svg",{width:"72",height:"72",viewBox:"0 0 62 58",xmlns:"http://www.w3.org/2000/svg"},o().createElement("defs",null,o().createElement("path",{id:"whv9q6f4ta",d:"M0 0h62v30.508H0z"}),o().createElement("path",{id:"hp71ojgcnc",d:"M0 0h24.603v26.571H0z"})),o().createElement("g",{fill:"none"},o().createElement("g",{opacity:".193",transform:"matrix(-1 0 0 1 62 26.571)"},o().createElement("path",{d:"M62 0c0 16.85-13.916 30.508-31.037 30.508S0 16.849 0 0h62z",fill:"var(--brand-03)",mask:"url(#rt0c8mo6eb)"})),o().createElement("g",{opacity:".396",transform:"matrix(-1 0 0 1 60.032 0)"},o().createElement("path",{d:"m24.603 26.571-13.35-23.51C9.592.141 5.884-.869 3.011.817.138 2.503-.855 6.272.804 9.193l9.874 17.378",fill:"var(--brand-03)",mask:"url(#hgianthqwd)"}))))};var D=t(4422),B={};B.styleTagTransform=v(),B.setAttributes=m(),B.insert=h().bind(null,"head"),B.domAPI=f(),B.insertStyleElement=$(),d()(D.A,B);const T=D.A&&D.A.locals?D.A.locals:void 0;var N=function(){var e,n=(0,l.useTranslation)().t,t=(0,a.useSession)(),i=(0,a.useConfig)(),r=null==t||null===(e=t.sessionLocation)||void 0===e?void 0:e.display;return o().createElement("div",{className:T.header},o().createElement("div",{className:T.leftJustifiedItems},o().createElement(M,null),o().createElement("div",{className:T.pageLabels},o().createElement("p",null,n("appName",i.appName)),o().createElement("p",{className:T.pageName},n("home","Home")))),o().createElement("div",{className:T.rightJustifiedItems},o().createElement("div",{className:T.dateAndLocation},o().createElement(z.aZ,{size:16}),o().createElement("span",{className:T.value},r),o().createElement("span",{className:T.middot},"·"),o().createElement(E.Vv,{size:16}),o().createElement("span",{className:T.value},(0,a.formatDate)(new Date,{noToday:!0})))))},S=t(92177);const q=function(e){var n=e.patient,t=n.name,i=function(e){var n,t="".concat(a.restBaseUrl,"/person/").concat(e,"?v=").concat("custom:(age)"),i=(0,S.Ay)(t,a.openmrsFetch),r=i.data,o=i.error,s=i.isLoading,l=i.mutate;return{age:null==r||null===(n=r.data)||void 0===n?void 0:n.age,error:o,isLoading:s,mutate:l}}(n.uuid),r=i.error,s=i.isLoading,c=i.age,p=(0,(0,l.useTranslation)().t)("age","Age");if(s||r)return o().createElement(o().Fragment,null,t);var d=function(e,n){var t=e.lastIndexOf(")");return-1!==t?e.slice(0,t)+", ".concat(p,": ").concat(n)+e.slice(t):"".concat(e," ").concat(p,": ").concat(n)}(t,c);return o().createElement(o().Fragment,null,d)};var I=t(98003),P={};P.styleTagTransform=v(),P.setAttributes=m(),P.insert=h().bind(null,"head"),P.domAPI=f(),P.insertStyleElement=$(),d()(I.A,P);const j=I.A&&I.A.locals?I.A.locals:void 0;var F=t(85316),O=t(9806),U=t(64046),L={};L.styleTagTransform=v(),L.setAttributes=m(),L.insert=h().bind(null,"head"),L.domAPI=f(),L.insertStyleElement=$(),d()(U.A,L);const R=U.A&&U.A.locals?U.A.locals:void 0,G=function(e){var n,t,a,i,r,s,c,p,d,u,f=e.medicationEvent,g=e.status,h=void 0===g?null:g,y=(0,l.useTranslation)().t,m=(0,O.Gp)(f.dosageInstruction),b=(0,O.Qe)(f),$=(0,O.c1)(f);return o().createElement("div",null,o().createElement("p",{className:R.medicationName},h,o().createElement("strong",null,(0,O.Q0)((0,O.H_)(f)))),m&&o().createElement("p",{className:R.bodyLong01},o().createElement("span",{className:R.label01},y("dose","Dose").toUpperCase())," ",o().createElement("span",{className:R.dosage},m.doseAndRate&&(null==m?void 0:m.doseAndRate.map((function(e,n){var t,a;return o().createElement("span",{key:n},null==e||null===(t=e.doseQuantity)||void 0===t?void 0:t.value," ",null==e||null===(a=e.doseQuantity)||void 0===a?void 0:a.unit)}))))," ","— ",null==m||null===(n=m.route)||void 0===n?void 0:n.text," — ",null==m||null===(a=m.timing)||void 0===a||null===(t=a.code)||void 0===t?void 0:t.text," ",(null==m||null===(r=m.timing)||void 0===r||null===(i=r.repeat)||void 0===i?void 0:i.duration)?"for "+(null==m||null===(c=m.timing)||void 0===c||null===(s=c.repeat)||void 0===s?void 0:s.duration)+" "+(null==m||null===(d=m.timing)||void 0===d||null===(p=d.repeat)||void 0===p?void 0:p.durationUnit):" "),b&&o().createElement("p",{className:R.bodyLong01},o().createElement("span",{className:R.label01},y("quantity","Quantity").toUpperCase())," ",o().createElement("span",{className:R.quantity},b.value," ",b.unit)),($||0===$)&&o().createElement("p",{className:R.bodyLong01},o().createElement("span",{className:R.label01},y("refills","Refills").toUpperCase())," ",o().createElement("span",{className:R.refills},$)),(null==m?void 0:m.text)&&o().createElement("p",{className:R.bodyLong01},m.text),(null==m||null===(u=m.additionalInstruction)||void 0===u?void 0:u.length)>0&&o().createElement("p",{className:R.bodyLong01},null==m?void 0:m.additionalInstruction[0].text))};var W=t(27042),H=t(50930);function Q(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const K=function(e){var n=e.encounterUuid,t=e.patientUuid,i=(0,l.useTranslation)().t,r=(0,a.useSession)(),p=(0,a.useConfig)(),d=(0,F.IQ)(n,p.refreshInterval),u=d.medicationRequestBundles,f=d.prescriptionDate,g=d.error,h=d.isLoading,y=function(e){return e.status===W.NV.completed?o().createElement(s.vwO,{type:"gray"},i("dispensed","Dispensed")):e.status===W.NV.on_hold?o().createElement(s.vwO,{type:"red"},i("paused","Paused")):e.status===W.NV.declined?o().createElement(s.vwO,{type:"red"},i("closed","Closed")):null},m=function(e,t){var r=(0,O.Qm)(t.request),o=(0,O.aC)(e,t,p.dispenseBehavior.restrictTotalQuantityDispensed);(0,O.gY)(n),(0,c._D)(e.id).then((function(){(0,a.showSnackbar)({kind:"success",title:i("success","Success"),subtitle:i("medicationDispenseDeleted","Medication dispense was deleted successfully")}),r!==o&&(0,F.NT)((0,O.vj)(e.authorizingPrescription[0].reference),o).then((function(){(0,O.Yi)(n)})).catch((function(){(0,a.showSnackbar)({kind:"error",title:i("updateStatusFailed","Update Status Failed"),subtitle:i("couldNotUpdateMedicationRequestStatus","Could not update medication request status")})})),(0,O.Yi)(n)})).catch((function(){(0,a.showSnackbar)({kind:"error",title:i("deleteFailed","Delete Failed"),subtitle:i("couldNotDeleteMedicationDispense","Could not delete medication dispense")})}))};return o().createElement("div",{className:j.historyAndCommentsContainer},h&&o().createElement(s.OOb,{role:"progressbar"}),g&&o().createElement("p",null,i("error","Error")),u&&u.flatMap((function(e){return e.dispenses})).sort(O.Fq).map((function(e){var l,c,d;return o().createElement("div",{key:e.id},o().createElement("h5",{style:{paddingTop:"8px",paddingBottom:"8px",fontSize:"0.9rem"}},e.performer&&(null===(c=e.performer[0])||void 0===c||null===(l=c.actor)||void 0===l?void 0:l.display)," ",(d=e).status===W.NV.completed?i("dispensedMedication","dispensed medication"):d.status===W.NV.on_hold?i("pausedDispense","paused dispense"):d.status===W.NV.declined?i("closedDispense","closed dispense"):null," -"," ",(0,a.formatDatetime)((0,a.parseDate)(e.whenHandedOver))),o().createElement(s.FAs,{className:j.dispenseTile},o().createElement(G,{medicationEvent:e,status:y(e)}),function(e,l){var c=function(e){return(null==e?void 0:e.user)&&(0,a.userHasAccess)(H.Zw,e.user)}(r),d=function(e,n){if(null==e?void 0:e.user){var t,i;if((0,a.userHasAccess)(H._8,e.user))return!0;if((0,a.userHasAccess)(H.ih,e.user)&&(null===(t=e.currentProvider)||void 0===t?void 0:t.uuid)&&null!==(null===(i=n.performer)||void 0===i?void 0:i.find((function(n){var t,a;return(null==n||null===(a=n.actor)||void 0===a||null===(t=a.reference)||void 0===t?void 0:t.length)>1&&n.actor.reference.split("/")[1]===e.currentProvider.uuid}))))return!0}return!1}(r,e);return c||d?o().createElement(s.obU,{"aria-label":i("medicationDispenseActionMenu","Medication Dispense Action Menu"),className:j.medicationEventActionMenu,flipped:!0},c&&o().createElement(s.XSD,{className:j.menuitem,itemText:i("editRecord","Edit record"),onClick:function(){var r=function(e,a){if(e.status===W.NV.completed){var i=null;p.dispenseBehavior.restrictTotalQuantityDispensed&&(i=(0,O.HP)(a)+((null==e?void 0:e.quantity)?e.quantity.value:0));var r=0;return a.dispenses&&(r=(0,O.ky)(a.dispenses)),{workspaceName:"dispense-workspace",props:{patientUuid:t,encounterUuid:n,medicationDispense:e,medicationRequestBundle:a,quantityRemaining:i,quantityDispensed:r,mode:"edit"}}}return e.status===W.NV.on_hold?{workspaceName:"pause-dispense-workspace",props:{patientUuid:t,encounterUuid:n,medicationDispense:e,mode:"edit"}}:e.status===W.NV.declined?{workspaceName:"close-dispense-workspace",props:{patientUuid:t,encounterUuid:n,medicationDispense:e,mode:"edit"}}:void 0}(e,l),o=r.workspaceName,s=r.props,c=function(e){return e.status===W.NV.completed?i("editDispenseRecord","Edit Dispense Record"):e.status===W.NV.on_hold?i("editPauseRecord","Edit Pause Record"):e.status===W.NV.declined?i("editCloseRecord","Edit Close Record"):void 0}(e);(0,a.launchWorkspace)(o,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){Q(e,n,t[n])}))}return e}({workspaceTitle:c},s))}}),d&&o().createElement(s.XSD,{className:j.menuitem,hasDivider:!0,isDelete:!0,itemText:i("delete","Delete"),onClick:function(){return function(e){var n=e.medicationDispense,t=e.medicationRequestBundle,r=(0,a.showModal)("delete-confirm-modal",{title:i("deleteDispenseRecord","Delete Dispense Record"),message:i("deleteDispenseRecordMessage","Are you sure you want to delete this dispense record?"),onDelete:function(){m(n,t),r()},onClose:function(){r()}})}({medicationDispense:e,medicationRequestBundle:l})}})):null}(e,(0,O.p8)(u,e))))})),u&&u.flatMap((function(e){return e.request})).map((function(e){return o().createElement("div",{key:e.id},o().createElement("h5",{style:{paddingTop:"8px",paddingBottom:"8px",fontSize:"0.9rem"}},e.requester.display," ",i("orderedMedication ","ordered medication")," -"," ",(0,a.formatDatetime)(f)),o().createElement(s.FAs,{className:j.requestTile},o().createElement(G,{medicationEvent:e,status:o().createElement(s.vwO,{type:"green"},i("ordered","Ordered"))})))})))};var J=t(5505),V={};V.styleTagTransform=v(),V.setAttributes=m(),V.insert=h().bind(null,"head"),V.domAPI=f(),V.insertStyleElement=$(),d()(J.A,V);const Y=J.A&&J.A.locals?J.A.locals:void 0;var Z=t(2383),X=t(86886),ee={};ee.styleTagTransform=v(),ee.setAttributes=m(),ee.insert=h().bind(null,"head"),ee.domAPI=f(),ee.insertStyleElement=$(),d()(X.A,ee);const ne=X.A&&X.A.locals?X.A.locals:void 0,te=function(e){var n=e.medicationRequestBundle,t=e.patientUuid,i=e.encounterUuid,r=e.disabled,s=(0,a.useConfig)(),l=(0,a.useSession)(),p=(0,c.u9)(s.dispenserProviderRoles),d=(0,O.Z_)(n.dispenses),u=(0,O.ox)(n.request,s.medicationRequestExpirationPeriodInDays),f=u===W.FA.active&&d!==W.NV.declined,g=s.actionButtons.pauseButton.enabled&&u===W.FA.active&&d!==W.NV.on_hold&&d!==W.NV.declined,h=s.actionButtons.closeButton.enabled&&u===W.FA.active&&d!==W.NV.declined,y=null;s.dispenseBehavior.restrictTotalQuantityDispensed&&(y=(0,O.HP)(n));var m=0;n.dispenses&&(m=(0,O.ky)(n.dispenses));var b={dispensable:f,pauseable:g,closeable:h,quantityRemaining:y,quantityDispensed:m,patientUuid:t,encounterUuid:i,medicationRequestBundle:n,session:l,providers:p,disabled:r};return o().createElement("div",{className:ne.actionBtns},o().createElement(a.ExtensionSlot,{className:ne.extensionSlot,name:"prescription-action-button-slot",state:b}))};var ae=t(49564);const ie=function(e){var n=e.encounterUuid,t=e.patientUuid,i=(0,l.useTranslation)().t,c=(0,r.useCallback)((function(){var e=(0,a.showModal)("prescription-print-preview-modal",{onClose:function(){return e()},encounterUuid:n,patientUuid:t})}),[n,t]);return o().createElement(s.$nd,{renderIcon:ae.xj,iconDescription:i("print","Print"),onClick:c,kind:"ghost"},i("printPrescriptions","Print prescriptions"))};var re=t(87063),oe={};oe.styleTagTransform=v(),oe.setAttributes=m(),oe.insert=h().bind(null,"head"),oe.domAPI=f(),oe.insertStyleElement=$(),d()(re.A,oe);const se=re.A&&re.A.locals?re.A.locals:void 0,le=function(e){var n=e.encounterUuid,t=e.patientUuid;return o().createElement(s.Wdr,{className:se.actionsContainer},o().createElement("div",{className:se.actionCluster},o().createElement(ie,{encounterUuid:n,patientUuid:t})),o().createElement("div",{className:se.actionCluster}))};var ce=t(67478),pe={};pe.styleTagTransform=v(),pe.setAttributes=m(),pe.insert=h().bind(null,"head"),pe.domAPI=f(),pe.insertStyleElement=$(),d()(ce.A,pe);const de=ce.A&&ce.A.locals?ce.A.locals:void 0;function ue(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}const fe=function(e){var n,t,i=e.encounterUuid,c=e.patientUuid,p=(0,l.useTranslation)().t,d=(0,a.useConfig)(),u=(n=(0,r.useState)(!0),t=2,function(e){if(Array.isArray(e))return e}(n)||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}}(n,t)||function(e,n){if(e){if("string"==typeof e)return ue(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)?ue(e,n):void 0}}(n,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.")}()),f=u[0],g=u[1],h=(0,F.PA)(c,d.refreshInterval),y=h.allergies,m=h.totalAllergies,b=(0,F.IQ)(i,d.refreshInterval),$=b.medicationRequestBundles,A=b.error,v=b.isLoading,_=(0,O.se)().staleEncounterUuids;return(0,r.useEffect)((function(){"number"==typeof m&&g(!1)}),[m]),o().createElement("div",{className:de.prescriptionContainer},f&&o().createElement(s.OOb,{role:"progressbar"}),!f&&o().createElement(s.FAs,{className:de.allergiesTile},o().createElement("div",{className:de.allergiesContent},o().createElement("div",null,o().createElement(Z.BF,{size:24,className:de.allergiesIcon}),o().createElement("p",null,m>0&&o().createElement("span",null,o().createElement("span",{style:{fontWeight:"bold"}},p("allergiesCount","{{ count }} allergies",{count:m}))," ",function(e){return e.map((function(e){return(0,O.R9)(e.code.coding)})).join(", ")}(y)),0===m&&p("noAllergyDetailsFound","No allergy details found"))))),o().createElement("h5",{style:{paddingTop:"8px",paddingBottom:"8px",fontSize:"0.9rem"}},p("prescribed","Prescribed")),v&&o().createElement(s.OOb,{role:"progressbar"}),A&&o().createElement("p",null,p("error","Error")),$&&$.map((function(e){return o().createElement(s.FAs,{className:de.prescriptionTile},o().createElement(a.UserHasAccess,{privilege:H.Bi},o().createElement(te,{patientUuid:c,encounterUuid:i,medicationRequestBundle:e,disabled:_.includes(i)})),o().createElement(G,{key:e.request.id,medicationEvent:e.request,status:(n=e.request,t=(0,O.Xs)(n,d.medicationRequestExpirationPeriodInDays),t===W._z.cancelled?o().createElement(s.vwO,{type:"red"},p("cancelled","Cancelled")):t===W._z.completed?o().createElement(s.vwO,{type:"green"},p("completed","Completed")):t===W._z.expired?o().createElement(s.vwO,{type:"red"},p("expired","Expired")):t===W._z.declined?o().createElement(s.vwO,{type:"red"},p("closed","Closed")):t===W._z.on_hold?o().createElement(s.vwO,{type:"red"},p("paused","Paused")):null)}));var n,t})),o().createElement(le,{encounterUuid:i,patientUuid:c}))},ge=function(e){var n=e.encounterUuid,t=e.patientUuid,i=(e.status,(0,l.useTranslation)().t),r=[{name:i("prescriptionDetails","Prescription details"),component:o().createElement(fe,{encounterUuid:n,patientUuid:t})},{name:i("conditionsAndDiagnoses","Conditions and diagnoses"),component:o().createElement(a.ExtensionSlot,{name:"dispensing-condition-and-diagnoses",state:{patientUuid:t,encounterUuid:n}})},{name:i("historyComments","History and comments"),component:o().createElement(K,{encounterUuid:n,patientUuid:t})}];return o().createElement("div",{className:Y.expandedTabsParentContainer},o().createElement("div",{className:Y.expandedTabsContainer},o().createElement(s.tUM,null,o().createElement(s.wbY,{"aria-label":i("tabList","Tab List")},r.map((function(e,n){return o().createElement(s.ozo,{key:n,className:Y.orderTabs},e.name)}))),o().createElement(s.T2N,null,r.map((function(e,n){return o().createElement(s.KpK,{key:n},e.component)}))))))};var he=t(62910),ye={};ye.styleTagTransform=v(),ye.setAttributes=m(),ye.insert=h().bind(null,"head"),ye.domAPI=f(),ye.insertStyleElement=$(),d()(he.A,ye);const me=he.A&&he.A.locals?he.A.locals:void 0;function be(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 $e(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ae(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)||_e(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.")}()}function ve(e){return function(e){if(Array.isArray(e))return be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_e(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.")}()}function _e(e,n){if(e){if("string"==typeof e)return be(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)?be(e,n):void 0}}const we=function(e){var n,t,i=e.loadData,c=e.debouncedSearchTerm,p=e.location,d=e.status,u=(0,l.useTranslation)().t,f=(0,a.useConfig)(),g=Ae((0,r.useState)(1),2),h=g[0],y=g[1],m=Ae((0,r.useState)(10),2),b=m[0],$=m[1],A=(h-1)*b,v=(0,F.JZ)(i,b,A,c,p,d,f.medicationRequestExpirationPeriodInDays,f.refreshInterval),_=v.prescriptionsTableRows,w=v.error,C=v.isLoading,x=v.totalOrders;(0,r.useEffect)((function(){y(1)}),[c]);var k=[{header:u("created","Created"),key:"created"},{header:u("patientName","Patient name"),key:"patient"},{header:u("prescriber","Prescriber"),key:"prescriber"},{header:u("drugs","Drugs"),key:"drugs"},{header:u("lastDispenser","Last dispenser"),key:"lastDispenser"},{header:u("status","Status"),key:"status"}];return(null===(t=f.locationBehavior)||void 0===t||null===(n=t.locationColumn)||void 0===n?void 0:n.enabled)&&(k=ve(k.slice(0,3)).concat([{header:u("location","Location"),key:"location"}],ve(k.slice(3)))),o().createElement("div",{className:me.patientListTableContainer},C&&o().createElement(s.OOb,{role:"progressbar"}),w&&o().createElement("p",null,"Error"),_&&o().createElement(o().Fragment,null,o().createElement(s.bQt,{rows:_,headers:k,isSortable:!0},(function(e){var n,t,i=e.rows,r=e.headers,l=e.getExpandHeaderProps,c=e.getHeaderProps,p=e.getRowProps,d=e.getTableProps;return o().createElement(s.K3K,null,o().createElement(s.XIK,(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){$e(e,n,t[n])}))}return e}({},d()),t=null!=(t={useZebraStyles:!0})?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n),o().createElement(s.ndF,null,o().createElement(s.Hjg,null,o().createElement(s.Uwq,l()),r.map((function(e){return o().createElement(s.A0N,c({header:e}),e.header)})))),o().createElement(s.BFY,null,i.map((function(e){return o().createElement(o().Fragment,{key:e.id},o().createElement(s.fZD,p({row:e}),e.cells.map((function(e){return o().createElement(s.nA6,{key:e.id},e.id.endsWith("created")?(0,a.formatDatetime)((0,a.parseDate)(e.value)):e.id.endsWith("patient")?o().createElement(q,{patient:e.value}):e.id.endsWith("status")?u(e.value):e.value)}))),e.isExpanded?o().createElement(s.cwJ,{colSpan:r.length+1},o().createElement(ge,{encounterUuid:e.id,patientUuid:e.cells.find((function(e){return e.id.endsWith("patient")})).value.uuid,status:e.cells.find((function(e){return e.id.endsWith("status")})).value})):o().createElement(s.cwJ,{className:me.hiddenRow,colSpan:r.length+2}))})))))})),0===(null==_?void 0:_.length)&&o().createElement("div",{className:me.filterEmptyState},o().createElement(s.Wdr,null,o().createElement(s.FAs,{className:me.filterEmptyStateTile},o().createElement("p",{className:me.filterEmptyStateContent},u("noPrescriptionsToDisplay","No prescriptions to display")),o().createElement("p",{className:me.filterEmptyStateHelper},u("checkFilters","Check the filters above"))))),(null==_?void 0:_.length)>0&&o().createElement("div",{style:{width:"100%"}},o().createElement(s.dKS,{page:h,pageSize:b,pageSizes:[10,20,30,40,50,100],totalItems:x,onChange:function(e){var n=e.page,t=e.pageSize;y(n),$(t)}}))))};function Ce(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 xe(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 Ce(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)?Ce(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 ke=function(e){var n,t,i=e.status,c=e.isTabActive,p=(0,l.useTranslation)().t,d=(0,a.useConfig)(),u=function(e){var n,t,i=(0,S.Ay)("".concat(a.fhirBaseUrl,"/Location?_tag=").concat(encodeURIComponent(e.locationBehavior.locationFilter.tag),"&_count=100"),a.openmrsFetch),r=i.data,o=i.error,s=null==r||null===(t=r.data)||void 0===t||null===(n=t.entry)||void 0===n?void 0:n.map((function(e){return{id:e.resource.id,name:e.resource.name}})).sort((function(e,n){return e.name.localeCompare(n.name)}));return{filterLocations:s,error:o,isLoading:!s&&!o}}(d),f=u.filterLocations,g=u.isLoading,h=xe((0,r.useState)(""),2),y=h[0],m=h[1],b=(0,a.useDebounce)(y,500),$=xe((0,r.useState)(""),2),A=$[0],v=$[1];return o().createElement(s.KpK,null,o().createElement("div",{className:me.searchContainer},o().createElement(s.vji,{closeButtonLabelText:p("clearSearchInput","Clear search input"),defaultValue:y,placeholder:p("searchByPatientIdOrName","Search by patient ID or name"),labelText:p("searchByPatientIdOrName","Search by patient ID or name"),onChange:function(e){e.preventDefault(),m(e.target.value)},size:"md",className:me.patientSearch}),(null===(t=d.locationBehavior)||void 0===t||null===(n=t.locationFilter)||void 0===n?void 0:n.enabled)&&!g&&(null==f?void 0:f.length)>1&&o().createElement(s.a32,{id:"locationFilter",placeholder:p("filterByLocation","Filter by location"),items:g?[]:f,itemToString:function(e){return null==e?void 0:e.name},onChange:function(e){var n=e.selectedItem;v(null==n?void 0:n.id)},className:me.locationFilter})),o().createElement(we,{loadData:c,status:i,debouncedSearchTerm:b,location:A}))};var ze=t(94588),Ee={};Ee.styleTagTransform=v(),Ee.setAttributes=m(),Ee.insert=h().bind(null,"head"),Ee.domAPI=f(),Ee.insertStyleElement=$(),d()(ze.A,Ee);const Me=ze.A&&ze.A.locals?ze.A.locals:void 0;function De(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 Be(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 De(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)?De(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 Te=function(){var e=(0,l.useTranslation)().t,n=Be((0,r.useState)(""),2),t=n[0],i=n[1],c=Be((0,r.useState)(""),2),p=c[0],d=c[1];return o().createElement(s.KpK,null,o().createElement("div",{className:Me.searchTabPanel},o().createElement("form",{className:Me.searchBar,onSubmit:function(e){e.preventDefault(),d(t)}},o().createElement(s.vji,{closeButtonLabelText:e("clearSearchInput","Clear search input"),defaultValue:t,placeholder:e("searchForPatient","Search for a patient by name or identifier number"),labelText:e("searchForPatient","Search for a patient by name or identifier number"),onChange:function(e){i(e.target.value)},onClear:function(){return d("")},size:"lg"}),o().createElement(s.$nd,{kind:"secondary",type:"submit"},e("search","Search"))),p?o().createElement(we,{loadData:!0,status:"ACTIVE",debouncedSearchTerm:p,location:""}):o().createElement("div",{className:Me.searchForPatientPlaceholder},o().createElement("div",null,o().createElement(a.PatientSearchPictogram,null),o().createElement("h5",null,e("searchForPatientHeader","Search for a patient")),o().createElement("div",null,e("searchForPatient","Search for a patient by name or identifier number"))))))};function Ne(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}const Se=function(){var e,n,t=(0,l.useTranslation)().t,a=(e=(0,r.useState)(0),n=2,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 Ne(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)?Ne(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.")}()),i=a[0],c=a[1];return o().createElement("main",{className:"omrs-main-content"},o().createElement("section",{className:me.prescriptionTabsContainer},o().createElement(s.tUM,{onChange:function(e){c(e.selectedIndex)}},o().createElement(s.wbY,{"aria-label":t("tabList","Tab List"),contained:!0,className:me.tabsContainer},o().createElement(s.ozo,{title:t("search","Search"),id:"tab-search",className:me.tab},t("search","Search")),o().createElement(s.ozo,{title:t("activePrescriptions","Active Prescriptions"),id:"tab-active-prescription",className:me.tab},t("activePrescriptions","Active Prescriptions")),o().createElement(s.ozo,{title:t("allPrescriptions","All Prescriptions"),id:"tab-all-prescription",className:me.tab},t("allPrescriptions","All Prescriptions"))),o().createElement(s.T2N,null,o().createElement(Te,null),o().createElement(ke,{isTabActive:1===i,status:"ACTIVE"}),o().createElement(ke,{isTabActive:2===i,status:""})))))};var qe=t(28651);function Ie(){var e=(0,l.useTranslation)().t,n="".concat(window.spaBase,"/home"),t=(0,r.useMemo)((function(){var e=location.pathname.split("/home"),n=e[e.length-1];return decodeURIComponent(n)}),[]);return o().createElement(a.ConfigurableLink,{className:k()("cds--side-nav__link",{"active-left-nav-link":t.match("dispensing")}),to:"".concat(n,"/dispensing")},e("dispensing","Dispensing"))}var Pe=t(57240),je=t(18140),Fe={};Fe.styleTagTransform=v(),Fe.setAttributes=m(),Fe.insert=h().bind(null,"head"),Fe.domAPI=f(),Fe.insertStyleElement=$(),d()(je.A,Fe);const Oe=je.A&&je.A.locals?je.A.locals:void 0,Ue=function(e){var n,t,i,c,p=e.excludedPrescription,d=e.medicationRequests,u=(0,l.useTranslation)().t,f=(0,a.useSession)().sessionLocation.display,g=null===(t=d[0])||void 0===t||null===(n=t.request)||void 0===n?void 0:n.subject,h=(0,r.useMemo)((function(){var e,n=new Set;return null==d||null===(e=d.filter((function(e){return!p.includes(e.request.id)})))||void 0===e||e.forEach((function(e){var t,a,i=null===(a=e.request)||void 0===a||null===(t=a.requester)||void 0===t?void 0:t.display;i&&n.add(i)})),n}),[d,p]),y=(0,r.useMemo)((function(){return(null==d?void 0:d.filter((function(e){return!p.includes(e.request.id)})))||[]}),[d,p]);return o().createElement(s.Wdr,{className:Oe.printOutContainer},o().createElement(s.r9c,null,o().createElement(s.GRJ,null,o().createElement(s.Cvq,{head:!0},o().createElement(s.Um2,{head:!0},o().createElement("br",null),o().createElement("br",null),o().createElement("p",{className:Oe.printoutTitle},u("prescriptionInstructions","Prescription instructions")),g&&o().createElement("p",{className:k()(Oe.patientName,Oe.faintText)},(c=g.display).includes("(")?c.split("(")[0]:c),o().createElement("br",null),o().createElement("br",null))),y.map((function(e){var n,t,i,r,l,c,p,d,f,g,h,y=e.request,m=(0,O.Gp)(y.dosageInstruction),b=(0,O.Qe)(y),$=(0,O.c1)(y);return o().createElement("div",{key:e.request.id},m&&o().createElement(s.Cvq,null,o().createElement(s.Um2,null,o().createElement("p",{className:Oe.medicationName},o().createElement("strong",null,(0,O.Q0)((0,O.H_)(y)))),o().createElement("br",null),o().createElement("p",null,o().createElement("span",{className:Oe.faintText},u("dose","Dose")),": ",o().createElement("span",{className:Oe.prescriptionInfo},null==m||null===(n=m.doseAndRate)||void 0===n?void 0:n.map((function(n,t){var a,i;return o().createElement("span",{className:Oe.prescriptionInfo,key:"dose-".concat(e.request.id,"-").concat(t)},null==n||null===(a=n.doseQuantity)||void 0===a?void 0:a.value," ",null==n||null===(i=n.doseQuantity)||void 0===i?void 0:i.unit)})))," ","—"," ",o().createElement("span",{className:Oe.prescriptionInfo},null==m||null===(t=m.route)||void 0===t?void 0:t.text," — ",null==m||null===(r=m.timing)||void 0===r||null===(i=r.code)||void 0===i?void 0:i.text,(null==m||null===(c=m.timing)||void 0===c||null===(l=c.repeat)||void 0===l?void 0:l.duration)?" ".concat(u("for","for")," ").concat(null==m||null===(d=m.timing)||void 0===d||null===(p=d.repeat)||void 0===p?void 0:p.duration," ").concat(null==m||null===(g=m.timing)||void 0===g||null===(f=g.repeat)||void 0===f?void 0:f.durationUnit):""),b&&o().createElement("div",null,o().createElement("span",{className:Oe.faintText},u("quantity","Quantity")),": ",o().createElement("span",{className:Oe.prescriptionInfo},b.value," ",b.unit))),o().createElement("p",null,o().createElement("span",{className:Oe.faintText},u("datePrescribed","Date prescribed")),": "," ",o().createElement("span",{className:Oe.prescriptionInfo},(0,a.formatDate)((0,a.parseDate)(e.request.authoredOn),{noToday:!0}))),o().createElement("p",null,o().createElement("span",{className:Oe.faintText},u("refills","Refills")),": "," ",o().createElement("span",{className:Oe.prescriptionInfo},$||0===$?$:u("noRefills","No refills"))),(null==m?void 0:m.text)&&o().createElement("p",null,m.text),(null==m||null===(h=m.additionalInstruction)||void 0===h?void 0:h.length)>0&&o().createElement("p",null,null==m?void 0:m.additionalInstruction.map((function(e){return e.text})).join(", ")))))})),h.size>0&&o().createElement("p",{className:Oe.prescriber},u("prescribedBy","Prescribed By"),":"," ",null===(i=Array.from(h.values()).map((function(e){var n;return null==e||null===(n=e.split("("))||void 0===n?void 0:n.at(0)})))||void 0===i?void 0:i.join(", ")),o().createElement("p",{className:Oe.facilityName},f))))};function Le(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}const Re=function(e){var n=e.medicationRequests,t=e.onExcludedPrescriptionChange,a=e.excludedPrescription,i=(0,l.useTranslation)().t,c=(0,r.useCallback)((function(e,n){var i;t(e?a.filter((function(e){return e!==n})):(i=a,function(e){if(Array.isArray(e))return Le(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,n){if(e){if("string"==typeof e)return Le(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)?Le(e,n):void 0}}(i)||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.")}()).concat([n]))}),[t,a]);return o().createElement("div",null,o().createElement("p",null,o().createElement("strong",null,i("selectPrescriptions","Check prescriptions to print"))),null==n?void 0:n.map((function(e){var n=e.request,t=(0,O.Gp)(n.dosageInstruction);return o().createElement("div",{key:n.id},t&&o().createElement(s.Sc0,{id:n.id,labelText:(0,O.Q0)((0,O.H_)(n)),checked:!a.includes(n.id),onChange:function(e,t){var a=t.checked;return c(a,n.id)}}))})))};function Ge(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 We(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 Ge(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)?Ge(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.")}()}var He=t(84767),Qe="@openmrs/esm-dispensing-app",Ke={featureName:"dispensing",moduleName:Qe};function Je(){(0,a.defineConfigSchema)(Qe,i)}var Ve=(0,a.getSyncLifecycle)((function(){var e=(0,a.useConfig)().leftNavMode,n=(0,a.useLayoutType)(),t=window.spaBase+"/dispensing";return(0,a.useLeftNav)({name:"homepage-dashboard-slot",basePath:t,mode:e}),o().createElement("div",{className:k()([(0,a.isDesktop)(n)?C.desktopContainer:"","normal"===e?C.hasLeftNav:""])},o().createElement(a.ExtensionSlot,{name:"dispensing-dashboard-slot"}),o().createElement(a.WorkspaceContainer,{key:"dispensing",contextKey:"dispensing"}))}),Ke),Ye=(0,a.getSyncLifecycle)((function(){var e=(0,l.useTranslation)().t;return o().createElement(a.ConfigurableLink,{to:H.p1},e("dispensing","Dispensing"))}),Ke),Ze=(0,a.getSyncLifecycle)((function(){var e=(0,a.useConfig)(),n=(0,l.useTranslation)().t;return e.dispenseBehavior.restrictTotalQuantityDispensed&&e.dispenseBehavior.allowModifyingPrescription?o().createElement("div",{className:"omrs-main-content"},o().createElement(s.jeF,{title:n("dispensingAppError","Dispensing App Error"),subtitle:n("dispensingAppMisconfigurationMessage","Please contact your system administration: Misconfiguration - 'restrictTotalQuantityDispensed' cannot be enabled if 'allowModifyingPrescription' is enabled.")})):o().createElement("div",{className:"omrs-main-content"},o().createElement(N,null),o().createElement(Se,null))}),Ke),Xe=(0,a.getSyncLifecycle)((function(){return o().createElement(qe.Kd,null,o().createElement(Ie,null))}),Ke),en=(0,a.getSyncLifecycle)((function(e){var n=e.patientUuid,t=e.encounterUuid,i=e.medicationRequestBundle,r=e.session,p=e.providers,d=e.closeable,u=e.disabled,f=(0,l.useTranslation)().t,g={patientUuid:n,encounterUuid:t,medicationDispense:(0,c.ux)(i.request,r,p,!1),mode:"enter"};return d?o().createElement(s.$nd,{kind:"danger",onClick:function(){(0,a.launchWorkspace)("close-dispense-workspace",g)},disabled:u},f("close","Close")):null}),Ke),nn=(0,a.getSyncLifecycle)((function(e){var n=e.patientUuid,t=e.encounterUuid,i=e.medicationRequestBundle,r=e.session,p=e.providers,d=e.dispensable,u=e.quantityRemaining,f=e.quantityDispensed,g=e.disabled,h=(0,l.useTranslation)().t,y={patientUuid:n,encounterUuid:t,medicationDispense:(0,c.ux)(i.request,r,p,!0),medicationRequestBundle:i,quantityRemaining:u,quantityDispensed:f,mode:"enter"};return d?o().createElement(s.$nd,{kind:"primary",onClick:function(){(0,a.launchWorkspace)("dispense-workspace",y)},disabled:g},h("dispense","Dispense")):null}),Ke),tn=(0,a.getSyncLifecycle)((function(e){var n=e.patientUuid,t=e.encounterUuid,i=e.medicationRequestBundle,r=e.session,p=e.providers,d=e.pauseable,u=e.disabled,f=(0,l.useTranslation)().t,g={patientUuid:n,encounterUuid:t,medicationDispense:(0,c.ux)(i.request,r,p,!1),mode:"enter"};return d?o().createElement(s.$nd,{kind:"secondary",onClick:function(){(0,a.launchWorkspace)("pause-dispense-workspace",g)},disabled:u},f("pause","Pause")):null}),Ke),an=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(609),t.e(963)]).then(t.bind(t,90963))}),Ke),rn=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(609),t.e(4099)]).then(t.bind(t,54099))}),Ke),on=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(609),t.e(6841)]).then(t.bind(t,26841))}),Ke),sn=(0,a.getSyncLifecycle)((function(e){var n=e.onClose,t=e.encounterUuid,i=(0,l.useTranslation)().t,c=(0,F.IQ)(t),p=c.medicationRequestBundles,d=c.error,u=c.isLoading,f=We((0,r.useState)([]),2),g=f[0],h=f[1],y=We((0,r.useState)(null),2),m=y[0],b=y[1],$=(0,r.useRef)(null),A=(0,Pe.useReactToPrint)({content:function(){return $.current},onBeforeGetContent:function(){b(null)},onPrintError:function(e){b(i("printError","An error occurred while printing. Please try again."))},copyStyles:!0});return o().createElement(o().Fragment,null,o().createElement(s.rQ0,{closeModal:n,className:Oe.title},i("printPrescriptions","Print prescriptions")),o().createElement(s.cwr,null,u&&o().createElement(s.OuH,{status:"active",iconDescription:"Loading",description:i("loading","Loading prescriptions")+"...."}),d&&o().createElement(a.ErrorState,{error:d,headerTitle:i("error","Error")}),!u&&(null==p?void 0:p.length)>0&&o().createElement("div",{className:Oe.printoutSelectorRow},o().createElement(Re,{medicationRequests:p,excludedPrescription:g,onExcludedPrescriptionChange:h}),o().createElement("div",{ref:$},o().createElement(Ue,{excludedPrescription:g,medicationRequests:p}))),m&&o().createElement(s.jeF,{kind:"error",title:i("printErrorTitle","Print Error"),subtitle:m})),o().createElement(s.jlY,null,o().createElement(s.Te$,{className:Oe.btnSet},o().createElement(s.$nd,{kind:"secondary",onClick:n,type:"button"},(0,a.getCoreTranslation)("cancel","Cancel")),o().createElement(s.$nd,{kind:"primary",onClick:A,type:"button",disabled:u},i("print","Print")))))}),Ke),ln=(0,a.getAsyncLifecycle)((function(){return t.e(5897).then(t.bind(t,15897))}),Ke),cn=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(1354),t.e(8600)]).then(t.bind(t,58600))}),Ke),pn=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(1354),t.e(2898)]).then(t.bind(t,52898))}),Ke)},62910:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),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-dispensing__prescriptions__link___nh1F1{text-decoration:none}.-esm-dispensing__prescriptions__breadcrumbsSlot___s3KgQ{grid-row:1/2;grid-column:1/2}.-esm-dispensing__prescriptions__prescriptionTabsContainer___nXUfg{height:100%;width:100%}.-esm-dispensing__prescriptions__prescriptionTabsContainer___nXUfg .cds--tab-content{padding:0 !important}.-esm-dispensing__prescriptions__newListButton___cGpxv{width:fit-content;justify-self:end;align-self:center}.-esm-dispensing__prescriptions__tabsContainer___74mkw{background-color:#fff;padding:0 1rem}.-esm-dispensing__prescriptions__tabsContainer___74mkw .cds--tabs__nav-item--selected{box-shadow:inset 0 .125rem 0 0 var(--brand-03) !important}.-esm-dispensing__prescriptions__tabsContainer___74mkw .cds--tab--list button{max-width:12rem !important}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6{grid-row:3/4;grid-column:1/2;height:100%;margin:0 1rem;background-color:#f4f4f4;border:.5px solid #e0e0e0}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--data-table-container{padding-top:0 !important}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 tbody>tr>:nth-child(2){white-space:nowrap}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--data-table td{height:unset !important}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--data-table--zebra tbody tr[data-parent-row]:nth-child(4n+1) td{background-color:#fff;border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--data-table--zebra tbody tr[data-parent-row]:nth-child(4n+3) td{background-color:#f4f4f4;border-bottom:1px solid #e0e0e0}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--pagination{border-top:none !important}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--table-expand__button{height:2rem !important}.-esm-dispensing__prescriptions__searchContainer___J0rpK{display:flex;align-items:center;flex-direction:row-reverse;padding:1rem 1rem 0}.-esm-dispensing__prescriptions__searchContainer___J0rpK .cds--search-magnifier-icon{z-index:0 !important}.-esm-dispensing__prescriptions__searchContainer___J0rpK input{background-color:#fff}.-esm-dispensing__prescriptions__addPrescriptionBtn___KF0Z3{width:10rem !important;padding:1rem !important;margin-left:1rem;margin-right:1rem}.-esm-dispensing__prescriptions__patientSearch___4Loxt{width:25rem;border-bottom-color:#e0e0e0}.-esm-dispensing__prescriptions__locationFilter___znalM{width:25rem}.-esm-dispensing__prescriptions__search___56gcv{width:100%;max-width:16rem;background-color:#fff;border-bottom-color:#e0e0e0}.-esm-dispensing__prescriptions__hiddenRow___r6JbH{display:none}.-esm-dispensing__prescriptions__filterEmptyState___y0ZGb{display:flex;justify-content:center;align-items:center;padding:3rem;text-align:center;background-color:#fff}.-esm-dispensing__prescriptions__filterEmptyStateTile___14jtq{margin:auto;background-color:#f4f4f4}.-esm-dispensing__prescriptions__filterEmptyStateContent___7CgxQ{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252;margin-bottom:.5rem}.-esm-dispensing__prescriptions__filterEmptyStateHelper___AQsYs{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);color:#525252}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/prescriptions/prescriptions.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,8CACE,oBAAA,CAGF,yDACE,YAAA,CACA,eAAA,CAGF,mEACE,WAAA,CACA,UAAA,CAEA,qFACE,oBAAA,CAIJ,uDACE,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGF,uDACE,qBD1BM,CC2BN,cAAA,CAEA,sFACE,yDAAA,CAGF,8EACE,0BAAA,CAIJ,mEACE,YAAA,CACA,eAAA,CACA,WAAA,CACA,aAAA,CACA,wBD5CM,CC6CN,yBAAA,CAEA,8FACE,wBAAA,CAGF,0FACE,kBAAA,CAGF,uFACE,uBAAA,CAGF,wIACE,qBD3DI,CC4DJ,+BAAA,CACA,4BAAA,CAGF,wIACE,wBDlEI,CCmEJ,+BAAA,CAGF,oFACE,0BAAA,CAGF,8FACE,sBAAA,CAIJ,yDACE,YAAA,CACA,kBAAA,CACA,0BAAA,CACA,mBAAA,CAEA,qFACE,oBAAA,CAGF,+DACE,qBAAA,CAIJ,4DACE,sBAAA,CACA,uBAAA,CACA,gBCpEW,CDqEX,iBCrEW,CDwEb,uDACE,WAAA,CACA,2BDrGM,CCwGR,wDACE,WAAA,CAGF,gDACE,UAAA,CACA,eAAA,CACA,qBDhHM,CCiHN,2BDhHM,CCmHR,mDACE,YAAA,CAGF,0DACE,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,YC5EW,CD6EX,iBAAA,CACA,qBD9HM,CCiIR,8DACE,WAAA,CACA,wBDpIM,CCuIR,iEEytBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFvtBF,aDpIQ,CCqIR,mBCvHW,CD0Hb,gEEmtBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CFjtBF,aD1IQ",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.link {\n text-decoration: none;\n}\n\n.breadcrumbsSlot {\n grid-row: 1 / 2;\n grid-column: 1 / 2;\n}\n\n.prescriptionTabsContainer {\n height: 100%;\n width: 100%;\n\n :global(.cds--tab-content) {\n padding: 0 !important;\n }\n}\n\n.newListButton {\n width: fit-content;\n justify-self: end;\n align-self: center;\n}\n\n.tabsContainer {\n background-color: $ui-02;\n padding: 0 layout.$spacing-05;\n\n :global(.cds--tabs__nav-item--selected) {\n box-shadow: inset 0 layout.$spacing-01 0 0 var(--brand-03) !important;\n }\n\n :global(.cds--tab--list) button {\n max-width: 12rem !important;\n }\n}\n\n.patientListTableContainer {\n grid-row: 3 / 4;\n grid-column: 1 / 2;\n height: 100%;\n margin: 0 layout.$spacing-05;\n background-color: $ui-01;\n border: 0.5px solid #e0e0e0;\n\n :global(.cds--data-table-container) {\n padding-top: 0 !important;\n }\n\n tbody > tr > :nth-child(2) {\n white-space: nowrap;\n }\n\n :global(.cds--data-table td) {\n height: unset !important;\n }\n\n :global(.cds--data-table--zebra) tbody tr[data-parent-row]:nth-child(4n + 1) td {\n background-color: $ui-02;\n border-bottom: 1px solid $ui-03;\n border-top: 1px solid $ui-03;\n }\n\n :global(.cds--data-table--zebra) tbody tr[data-parent-row]:nth-child(4n + 3) td {\n background-color: $ui-01;\n border-bottom: 1px solid $ui-03;\n }\n\n :global(.cds--pagination) {\n border-top: none !important;\n }\n\n :global(.cds--table-expand__button) {\n height: layout.$spacing-07 !important;\n }\n}\n\n.searchContainer {\n display: flex;\n align-items: center;\n flex-direction: row-reverse;\n padding: layout.$spacing-05 layout.$spacing-05 0;\n\n :global(.cds--search-magnifier-icon) {\n z-index: 0 !important;\n }\n\n input {\n background-color: #fff;\n }\n}\n\n.addPrescriptionBtn {\n width: layout.$spacing-13 !important;\n padding: layout.$spacing-05 !important;\n margin-left: layout.$spacing-05;\n margin-right: layout.$spacing-05;\n}\n\n.patientSearch {\n width: 25rem;\n border-bottom-color: $ui-03;\n}\n\n.locationFilter {\n width: 25rem;\n}\n\n.search {\n width: 100%;\n max-width: 16rem;\n background-color: $ui-02;\n border-bottom-color: $ui-03;\n}\n\n.hiddenRow {\n display: none;\n}\n\n.filterEmptyState {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: layout.$spacing-09;\n text-align: center;\n background-color: $ui-02;\n}\n\n.filterEmptyStateTile {\n margin: auto;\n background-color: $ui-01;\n}\n\n.filterEmptyStateContent {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n margin-bottom: layout.$spacing-03;\n}\n\n.filterEmptyStateHelper {\n @include type.type-style('body-compact-01');\n color: $text-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={link:"-esm-dispensing__prescriptions__link___nh1F1",breadcrumbsSlot:"-esm-dispensing__prescriptions__breadcrumbsSlot___s3KgQ",prescriptionTabsContainer:"-esm-dispensing__prescriptions__prescriptionTabsContainer___nXUfg",newListButton:"-esm-dispensing__prescriptions__newListButton___cGpxv",tabsContainer:"-esm-dispensing__prescriptions__tabsContainer___74mkw",patientListTableContainer:"-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6",searchContainer:"-esm-dispensing__prescriptions__searchContainer___J0rpK",addPrescriptionBtn:"-esm-dispensing__prescriptions__addPrescriptionBtn___KF0Z3",patientSearch:"-esm-dispensing__prescriptions__patientSearch___4Loxt",locationFilter:"-esm-dispensing__prescriptions__locationFilter___znalM",search:"-esm-dispensing__prescriptions__search___56gcv",hiddenRow:"-esm-dispensing__prescriptions__hiddenRow___r6JbH",filterEmptyState:"-esm-dispensing__prescriptions__filterEmptyState___y0ZGb",filterEmptyStateTile:"-esm-dispensing__prescriptions__filterEmptyStateTile___14jtq",filterEmptyStateContent:"-esm-dispensing__prescriptions__filterEmptyStateContent___7CgxQ",filterEmptyStateHelper:"-esm-dispensing__prescriptions__filterEmptyStateHelper___AQsYs"};const s=o},64046:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),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-dispensing__medication-event__medicationName___S4P0B{font-size:1rem !important}.-esm-dispensing__medication-event__bodyLong01___SfU-3{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px);font-size:13px !important}.-esm-dispensing__medication-event__label01___B9D4H{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}.-esm-dispensing__medication-event__dosage___foiIZ,.-esm-dispensing__medication-event__quantity___SLQEY,.-esm-dispensing__medication-event__refills___5LLBD{color:#525252;font-weight:bold}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/components/medication-event.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,2DACE,yBAAA,CAGF,uDC01BI,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CDx1BF,yBAAA,CAGF,oDCq1BI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CDj1BJ,4JAGE,aDbQ,CCcR,gBAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.medicationName {\n font-size: layout.$spacing-05 !important;\n}\n\n.bodyLong01 {\n @include type.type-style('body-01');\n font-size: 13px !important;\n}\n\n.label01 {\n @include type.type-style('label-01');\n}\n\n.dosage,\n.quantity,\n.refills {\n color: $text-02;\n font-weight: bold;\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={medicationName:"-esm-dispensing__medication-event__medicationName___S4P0B",bodyLong01:"-esm-dispensing__medication-event__bodyLong01___SfU-3",label01:"-esm-dispensing__medication-event__label01___B9D4H",dosage:"-esm-dispensing__medication-event__dosage___foiIZ",quantity:"-esm-dispensing__medication-event__quantity___SLQEY",refills:"-esm-dispensing__medication-event__refills___5LLBD"};const s=o},67478:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),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-dispensing__prescription-details__prescriptionTile___wvAJ0{width:100%;margin:.125rem 0 .5rem;padding:0;background-color:#fff;border-left:.25rem solid var(--brand-03);color:#525252;margin-bottom:1rem !important}.-esm-dispensing__prescription-details__prescriptionContainer___g0U1R{display:flex;flex-direction:column;max-width:80%;margin-bottom:1rem}.-esm-dispensing__prescription-details__prescriptionContainer___g0U1R.cds--tile{min-height:3rem !important;padding-left:10px !important}.-esm-dispensing__prescription-details__prescriptionContainer___g0U1R>.cds--tile{min-height:3rem !important;padding-left:10px !important;margin:auto}.-esm-dispensing__prescription-details__allergiesTile___YUpd1{height:1.5rem;padding:0 .5rem 0 0;border-left:.25rem solid #f1c21b;background-color:rgba(253,209,58,.3);margin:auto;width:100%}.-esm-dispensing__prescription-details__allergiesContent___gU7aG{margin:auto;min-width:100%;height:100%;display:flex;align-items:center}.-esm-dispensing__prescription-details__allergiesContent___gU7aG div{align-items:center;display:flex;flex-direction:row;width:100%}.-esm-dispensing__prescription-details__allergiesContent___gU7aG p{margin-left:10px;font-size:.9rem;width:80%}.-esm-dispensing__prescription-details__allergiesContent___gU7aG a{margin:auto;color:#0f62fe;text-decoration:none;text-align:right}svg.-esm-dispensing__prescription-details__allergiesIcon___JMdna{fill:#f1c21b;vertical-align:middle}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/prescriptions/prescription-details.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,iEACE,UAAA,CACA,sBAAA,CACA,SAAA,CACA,qBAAA,CACA,wCAAA,CACA,aDHQ,CCIR,6BAAA,CAGF,sEACE,YAAA,CACA,qBAAA,CACA,aAAA,CACA,kBCaW,CDXX,gFACE,0BAAA,CACA,4BAAA,CAIJ,iFACE,0BAAA,CACA,4BAAA,CACA,WAAA,CAGF,8DACE,aCGW,CDFX,mBAAA,CACA,gCAAA,CACA,oCAAA,CACA,WAAA,CACA,UAAA,CAGF,iEACE,WAAA,CACA,cAAA,CACA,WAAA,CACA,YAAA,CACA,kBAAA,CAEA,qEACE,kBAAA,CACA,YAAA,CACA,kBAAA,CACA,UAAA,CAGF,mEACE,gBAAA,CACA,eAAA,CACA,SAAA,CAGF,mEACE,WAAA,CACA,aAAA,CACA,oBAAA,CACA,gBAAA,CAIJ,iEACE,YAAA,CACA,qBAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.prescriptionTile {\n width: 100%;\n margin: layout.$spacing-01 0 layout.$spacing-03;\n padding: 0;\n background-color: #fff;\n border-left: layout.$spacing-02 solid var(--brand-03);\n color: $text-02;\n margin-bottom: layout.$spacing-05 !important;\n}\n\n.prescriptionContainer {\n display: flex;\n flex-direction: column;\n max-width: 80%;\n margin-bottom: layout.$spacing-05;\n\n &:global(.cds--tile) {\n min-height: 3rem !important;\n padding-left: 10px !important;\n }\n}\n\n.prescriptionContainer > :global(.cds--tile) {\n min-height: 3rem !important;\n padding-left: 10px !important;\n margin: auto;\n}\n\n.allergiesTile {\n height: layout.$spacing-06;\n padding: 0 layout.$spacing-03 0 0;\n border-left: layout.$spacing-02 solid #f1c21b;\n background-color: rgba(253, 209, 58, 0.3);\n margin: auto;\n width: 100%;\n}\n\n.allergiesContent {\n margin: auto;\n min-width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n\n div {\n align-items: center;\n display: flex;\n flex-direction: row;\n width: 100%;\n }\n\n p {\n margin-left: 10px;\n font-size: 0.9rem;\n width: 80%;\n }\n\n a {\n margin: auto;\n color: #0f62fe;\n text-decoration: none;\n text-align: right;\n }\n}\n\nsvg.allergiesIcon {\n fill: #f1c21b;\n vertical-align: middle;\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={prescriptionTile:"-esm-dispensing__prescription-details__prescriptionTile___wvAJ0",prescriptionContainer:"-esm-dispensing__prescription-details__prescriptionContainer___g0U1R",allergiesTile:"-esm-dispensing__prescription-details__allergiesTile___YUpd1",allergiesContent:"-esm-dispensing__prescription-details__allergiesContent___gU7aG",allergiesIcon:"-esm-dispensing__prescription-details__allergiesIcon___JMdna"};const s=o},84767:(e,n,t)=>{var a={"./am.json":[81197,1197],"./ar.json":[14132,4132],"./ar_SY.json":[37617,7617],"./bn.json":[77159,7159],"./de.json":[34944,4944],"./en.json":[34300,4300],"./en_US.json":[59569,9569],"./es.json":[93099,3099],"./es_MX.json":[88349,8349],"./fr.json":[94055,4055],"./he.json":[84652,4652],"./hi.json":[36840,6840],"./hi_IN.json":[55442,5442],"./id.json":[72690,2690],"./it.json":[9538,9538],"./ka.json":[70795,795],"./km.json":[54335,4335],"./ku.json":[9895,9895],"./ky.json":[88163,8163],"./lg.json":[64618,4618],"./ne.json":[12146,2146],"./pl.json":[41119,1119],"./pt.json":[96679,6679],"./pt_BR.json":[36468,6468],"./qu.json":[35173,5173],"./ro_RO.json":[46022,6022],"./ru_RU.json":[60986,986],"./si.json":[56859,6859],"./sw.json":[89913,9913],"./sw_KE.json":[88618,8618],"./tr.json":[55241,5241],"./tr_TR.json":[99900,9900],"./uk.json":[60723,723],"./uz.json":[43584,3584],"./uz@Latn.json":[27097,7097],"./uz_UZ.json":[70890,890],"./vi.json":[79214,9214],"./zh.json":[35661,5661],"./zh_CN.json":[99879,9879]};function i(e){if(!t.o(a,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=a[e],i=n[0];return t.e(n[1]).then((()=>t(i)))}i.keys=()=>Object.keys(a),i.id=84767,e.exports=i},85316:(e,n,t)=>{"use strict";t.d(n,{IQ:()=>g,JZ:()=>f,NT:()=>m,PA:()=>h,uc:()=>y});var a=t(92177),i=t(25987),r=t(9806),o=t(70231),s=t.n(o),l=t(50930),c=t(16072);function p(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 d(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function u(e){return function(e){if(Array.isArray(e))return p(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 p(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)?p(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.")}()}function f(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",p=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",d=arguments.length>6?arguments[6]:void 0,f=arguments.length>7?arguments[7]:void 0,g=(0,a.Ay)(e?"ACTIVE"===p?(0,r.f4)(o,t,s()(new Date).startOf("day").subtract(d,"day").toISOString(),l,c):(0,r.Go)(o,t,l,c):null,i.openmrsFetch,{refreshInterval:f}),h=g.data,y=g.error;if(h){var m=null==h?void 0:h.data.entry;if(m){var b=m.filter((function(e){var n;return"Encounter"==(null==e||null===(n=e.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource})),$=m.filter((function(e){var n;return"MedicationRequest"==(null==e||null===(n=e.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource})),A=m.filter((function(e){var n;return"MedicationDispense"==(null==e||null===(n=e.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource})).sort(r.Fq);n=b.map((function(e){var n=$.filter((function(n){return n.encounter.reference=="Encounter/"+e.id})),t=n.map((function(e){return"MedicationRequest/"+e.id})),a=A.filter((function(e){var n;return t.includes(null===(n=e.authorizingPrescription[0])||void 0===n?void 0:n.reference)}));return function(e,n,t,a){var i,o,s,l,c,p,d,f;return{id:null==e?void 0:e.id,created:null==e||null===(i=e.period)||void 0===i?void 0:i.start,patient:{name:null==e||null===(o=e.subject)||void 0===o?void 0:o.display,uuid:null==e||null===(l=e.subject)||void 0===l||null===(s=l.reference)||void 0===s?void 0:s.split("/")[1]},drugs:u(new Set(n.map((function(e){return(0,r.Q0)((0,r.H_)(e))})).sort((function(e,n){return e.localeCompare(n)})))).join("; "),lastDispenser:t&&(null===(c=t[0])||void 0===c?void 0:c.performer)&&(null===(d=t[0])||void 0===d||null===(p=d.performer[0])||void 0===p?void 0:p.actor.display),prescriber:u(new Set(n.map((function(e){return e.requester.display})))).join(", "),status:(0,r.oK)(n,a),location:(null==e?void 0:e.location)?null==e||null===(f=e.location[0])||void 0===f?void 0:f.location.display:null}}(e,n,a,d)})),n.sort((function(e,n){return e.created<n.created?1:-1}))}else n=[]}return{prescriptionsTableRows:n,error:y,isLoading:!n&&!y,totalOrders:null==h?void 0:h.data.total}}function g(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=(0,a.Ay)((0,r.Yo)(e),i.openmrsFetch,{refreshInterval:n}),o=t.data,s=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t,a,i={},r=Object.keys(e);for(a=0;a<r.length;a++)t=r[a],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)t=r[a],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(t,["data"]),l=(0,c.useMemo)((function(){var e,n=[];if(o){var t=null==o?void 0:o.data.entry,a=null==t?void 0:t.filter((function(e){var n;return"Encounter"==(null==e||null===(n=e.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource}));if(a){var s;e=(0,i.parseDate)(null===(s=a[0])||void 0===s?void 0:s.period.start);var l=null==t?void 0:t.filter((function(e){var n;return"MedicationRequest"==(null==e||null===(n=e.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource})),c=null==t?void 0:t.filter((function(e){var n;return"MedicationDispense"==(null==e||null===(n=e.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource})).sort(r.Fq);l.every((function(e){return n.push({request:e,dispenses:(0,r.CL)(e,c).sort(r.Fq)})}))}}return{medicationRequestBundles:n,prescriptionDate:e}}),[o]);return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){d(e,n,t[n])}))}return e}({medicationRequestBundles:l.medicationRequestBundles,prescriptionDate:l.prescriptionDate},s)}function h(e,n){var t=(0,a.Ay)("".concat(i.fhirBaseUrl,"/AllergyIntolerance?patient=").concat(e),i.openmrsFetch,{refreshInterval:n}),r=t.data,o=t.error,s=[];if(r){var l=null==r?void 0:r.data.entry;null==l||l.map((function(e){return s.push(e.resource)}))}return{allergies:s,totalAllergies:null==r?void 0:r.data.total,error:o}}function y(e,n){e=e?e.startsWith("MedicationRequest")?e:"MedicationRequest/".concat(e):null;var t=(0,a.Ay)(e?"".concat(i.fhirBaseUrl,"/").concat(e):null,i.openmrsFetch,{refreshInterval:n}).data;return{medicationRequest:t?t.data:null}}function m(e,n){var t="".concat(i.fhirBaseUrl,"/MedicationRequest/").concat(e);return(0,i.openmrsFetch)(t,{method:"PATCH",headers:{"Content-Type":l.w9},body:{extension:[{url:l.Yj,valueCode:n}]}})}},86886:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),o=t.n(r)()(i());o.push([e.id,".-esm-dispensing__action-buttons__actionBtns___W\\+gb3{position:absolute;bottom:0;right:0;display:flex;gap:0}.-esm-dispensing__action-buttons__extensionSlot___H\\+\\+9z{display:flex;flex-direction:row-reverse;justify-content:space-between;height:100%;position:relative}","",{version:3,sources:["webpack://./src/components/action-buttons.scss"],names:[],mappings:"AAAA,sDACE,iBAAA,CACA,QAAA,CACA,OAAA,CACA,YAAA,CACA,KAAA,CAGF,0DACE,YAAA,CACA,0BAAA,CACA,6BAAA,CACA,WAAA,CACA,iBAAA",sourcesContent:[".actionBtns {\n position: absolute;\n bottom: 0;\n right: 0;\n display: flex;\n gap: 0;\n}\n\n.extensionSlot {\n display: flex;\n flex-direction: row-reverse;\n justify-content: space-between;\n height: 100%;\n position: relative;\n}\n"],sourceRoot:""}]),o.locals={actionBtns:"-esm-dispensing__action-buttons__actionBtns___W+gb3",extensionSlot:"-esm-dispensing__action-buttons__extensionSlot___H++9z"};const s=o},87063:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),o=t.n(r)()(i());o.push([e.id,".-esm-dispensing__prescription-actions__actionsContainer___ZjLDP{flex-direction:row;display:flex;justify-content:space-between}.-esm-dispensing__prescription-actions__actionCluster___L5NEE{gap:.5rem;display:flex;flex-direction:row}","",{version:3,sources:["webpack://./src/prescriptions/prescription-actions.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAGA,iEACE,kBAAA,CACA,YAAA,CACA,6BAAA,CAGF,8DACE,SCWW,CDVX,YAAA,CACA,kBAAA",sourcesContent:["@use '@carbon/colors';\n@use '@carbon/layout';\n\n.actionsContainer {\n flex-direction: row;\n display: flex;\n justify-content: space-between;\n}\n\n.actionCluster {\n gap: layout.$spacing-03;\n display: flex;\n flex-direction: row;\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={actionsContainer:"-esm-dispensing__prescription-actions__actionsContainer___ZjLDP",actionCluster:"-esm-dispensing__prescription-actions__actionCluster___L5NEE"};const s=o},94588:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),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-dispensing__patient-search-tab-panel__searchTabPanel___pAwwP{display:flex;flex-direction:column;margin:1rem .75rem;gap:1rem}.-esm-dispensing__patient-search-tab-panel__searchForPatientPlaceholder___bK5iM{display:flex;justify-content:center;align-items:center;text-align:center;min-height:400px;flex:1;border:solid 1px #e0e0e0}.-esm-dispensing__patient-search-tab-panel__searchBar___wfwtr{display:flex}.-esm-dispensing__patient-search-tab-panel__searchBar___wfwtr input{background-color:#fff}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/prescriptions/patient-search-tab-panel.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CC1DF,mEACE,YAAA,CACA,qBAAA,CACA,kBAAA,CACA,QCwBW,CDrBb,gFACE,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,iBAAA,CACA,gBAAA,CACA,MAAA,CACA,wBAAA,CAGF,8DAIE,YAAA,CAHA,oEACE,qBDnBI",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '~@openmrs/esm-styleguide/src/vars' as *;\n\n.searchTabPanel {\n display: flex;\n flex-direction: column;\n margin: layout.$spacing-05 layout.$spacing-04;\n gap: layout.$spacing-05;\n}\n\n.searchForPatientPlaceholder {\n display: flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n min-height: 400px;\n flex: 1;\n border: solid 1px $grey-2;\n}\n\n.searchBar {\n input {\n background-color: $ui-02;\n }\n display: flex;\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={searchTabPanel:"-esm-dispensing__patient-search-tab-panel__searchTabPanel___pAwwP",searchForPatientPlaceholder:"-esm-dispensing__patient-search-tab-panel__searchForPatientPlaceholder___bK5iM",searchBar:"-esm-dispensing__patient-search-tab-panel__searchBar___wfwtr"};const s=o},98003:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),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-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l{max-width:80%}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l form{display:flex;flex-flow:row wrap;align-items:center}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l form input{vertical-align:middle;margin:0 .625rem 0 0;padding:.625rem;border:1px solid #8d8d8d !important;background-color:#fff}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l form button{width:90px;height:1.25rem;min-height:2.5rem !important}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l form .cds--btn--ghost{width:8rem !important}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l .-esm-dispensing__history-and-comments__requestTile___tV2US{width:100%;margin:.125rem 0 .5rem;padding:0 .5rem 0 .5rem;background-color:#fff;border-left:.5rem solid var(--brand-03);color:#525252;margin-bottom:1rem !important}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l .-esm-dispensing__history-and-comments__dispenseTile___Pc-Pr{display:flex;justify-content:space-between;width:100%;margin:.125rem 0 .5rem;padding:0 0 0 .5rem;background-color:#fff;border-left:.5rem solid red;color:#525252;margin-bottom:1rem !important}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l .-esm-dispensing__history-and-comments__medicationEventActionMenu___ejiqe{float:right}.-esm-dispensing__history-and-comments__menuitem___uqUc6{max-width:none}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/history/history-and-comments.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,4EACE,aAAA,CAEA,iFACE,YAAA,CACA,kBAAA,CACA,kBAAA,CAGF,uFACE,qBAAA,CACA,oBAAA,CACA,eAAA,CACA,mCAAA,CACA,qBAAA,CAEF,wFACE,UAAA,CACA,cAAA,CACA,4BAAA,CAGF,kGACE,qBAAA,CAGF,wIACE,UAAA,CACA,sBAAA,CACA,uBAAA,CACA,qBAAA,CACA,uCAAA,CACA,aD7BM,CC8BN,6BAAA,CAGF,yIACE,YAAA,CACA,6BAAA,CACA,UAAA,CACA,sBAAA,CACA,mBAAA,CACA,qBAAA,CACA,2BAAA,CACA,aDzCM,CC0CN,6BAAA,CAGF,sJACE,WAAA,CAIJ,yDACE,cAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.historyAndCommentsContainer {\n max-width: 80%;\n\n form {\n display: flex;\n flex-flow: row wrap;\n align-items: center;\n }\n\n form input {\n vertical-align: middle;\n margin: 0 0.625rem 0 0;\n padding: 0.625rem;\n border: 1px solid #8d8d8d !important;\n background-color: white;\n }\n form button {\n width: 90px;\n height: 1.25rem;\n min-height: layout.$spacing-08 !important;\n }\n\n form :global(.cds--btn--ghost) {\n width: 8rem !important;\n }\n\n .requestTile {\n width: 100%;\n margin: layout.$spacing-01 0 layout.$spacing-03;\n padding: 0 layout.$spacing-03 0 layout.$spacing-03;\n background-color: #fff;\n border-left: layout.$spacing-03 solid var(--brand-03);\n color: $text-02;\n margin-bottom: layout.$spacing-05 !important;\n }\n\n .dispenseTile {\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin: layout.$spacing-01 0 layout.$spacing-03;\n padding: 0 0 0 layout.$spacing-03;\n background-color: #fff;\n border-left: layout.$spacing-03 solid red;\n color: $text-02;\n margin-bottom: layout.$spacing-05 !important;\n }\n\n .medicationEventActionMenu {\n float: right;\n }\n}\n\n.menuitem {\n max-width: none;\n}\n"],sourceRoot:""}]),o.locals={historyAndCommentsContainer:"-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l",requestTile:"-esm-dispensing__history-and-comments__requestTile___tV2US",dispenseTile:"-esm-dispensing__history-and-comments__dispenseTile___Pc-Pr",medicationEventActionMenu:"-esm-dispensing__history-and-comments__medicationEventActionMenu___ejiqe",menuitem:"-esm-dispensing__history-and-comments__menuitem___uqUc6"};const s=o}}]);
|
|
1
|
+
(globalThis.webpackChunk_openmrs_esm_dispensing_app=globalThis.webpackChunk_openmrs_esm_dispensing_app||[]).push([[1282],{4422:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),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-dispensing__pharmacy-header__header___SqCly{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0);color:#525252;height:6rem;background-color:#fff;display:flex;justify-content:space-between}.-esm-dispensing__pharmacy-header__leftJustifiedItems___qHG0b{display:flex;flex-direction:row;align-items:center;margin-left:1rem}.-esm-dispensing__pharmacy-header__rightJustifiedItems___LoxfU{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0);color:#525252;padding-top:1rem}.-esm-dispensing__pharmacy-header__pageName___\\+cHVt{font-size:var(--cds-heading-04-font-size, 1.75rem);font-weight:var(--cds-heading-04-font-weight, 400);line-height:var(--cds-heading-04-line-height, 1.28572);letter-spacing:var(--cds-heading-04-letter-spacing, 0)}.-esm-dispensing__pharmacy-header__pageLabels___4sjNR{margin-left:1rem}.-esm-dispensing__pharmacy-header__pageLabels___4sjNR p:first-of-type{margin-bottom:.25rem}.-esm-dispensing__pharmacy-header__dateAndLocation___ZobdG{display:flex;justify-content:flex-end;align-items:center;margin-right:1rem}.-esm-dispensing__pharmacy-header__value___KSx0o{margin-left:.25rem}.-esm-dispensing__pharmacy-header__middot___mO9w-{margin:0 .5rem}.-esm-dispensing__pharmacy-header__view___rdi8M{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/pharmacy-header/pharmacy-header.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,kDC81BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD51BF,aDCQ,CAAA,WG2DG,CF1DX,qBDLM,CCMN,YAAA,CACA,6BAAA,CAGF,8DACE,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,gBEcW,CFXb,+DC80BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD50BF,aDfQ,CCgBR,gBEQW,CFLb,qDCw0BI,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,sDAAA,CDp0BJ,sDACE,gBAAA,CACA,sEACE,oBEjBS,CFqBb,2DACE,YAAA,CACA,wBAAA,CACA,kBAAA,CACA,iBEVW,CFab,iDACE,kBE7BW,CFgCb,kDACE,cAAA,CAGF,gDC8yBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.header {\n @include type.type-style('body-compact-02');\n color: $text-02;\n height: layout.$spacing-12;\n background-color: $ui-02;\n display: flex;\n justify-content: space-between;\n}\n\n.leftJustifiedItems {\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-left: layout.$spacing-05;\n}\n\n.rightJustifiedItems {\n @include type.type-style('body-compact-02');\n color: $text-02;\n padding-top: layout.$spacing-05;\n}\n\n.pageName {\n @include type.type-style('heading-04');\n}\n\n.pageLabels {\n margin-left: layout.$spacing-05;\n p:first-of-type {\n margin-bottom: layout.$spacing-02;\n }\n}\n\n.dateAndLocation {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n margin-right: layout.$spacing-05;\n}\n\n.value {\n margin-left: layout.$spacing-02;\n}\n\n.middot {\n margin: 0 layout.$spacing-03;\n}\n\n.view {\n @include type.type-style('label-01');\n}\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n","// 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={header:"-esm-dispensing__pharmacy-header__header___SqCly",leftJustifiedItems:"-esm-dispensing__pharmacy-header__leftJustifiedItems___qHG0b",rightJustifiedItems:"-esm-dispensing__pharmacy-header__rightJustifiedItems___LoxfU",pageName:"-esm-dispensing__pharmacy-header__pageName___+cHVt",pageLabels:"-esm-dispensing__pharmacy-header__pageLabels___4sjNR",dateAndLocation:"-esm-dispensing__pharmacy-header__dateAndLocation___ZobdG",value:"-esm-dispensing__pharmacy-header__value___KSx0o",middot:"-esm-dispensing__pharmacy-header__middot___mO9w-",view:"-esm-dispensing__pharmacy-header__view___rdi8M"};const s=o},5505:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),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-dispensing__prescription-expanded__expandedTabsParentContainer___zs0a7{display:flex;flex-direction:column;margin-bottom:1rem}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K{display:flex;flex-direction:row}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tabs{margin:1rem 0;width:20%;max-height:8rem !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tab--list{flex-direction:column !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tab-content{margin:1rem 0;width:100% !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tabs__nav-link{border-bottom:0 !important;border-left:3px solid #e0e0e0 !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tabs__nav-item--selected{border-bottom:0px !important;border-left:3px solid var(--brand-03) !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K.cds--tabs--scrollable .cds--tabs--scrollable__nav-item + .cds--tabs--scrollable__nav-item{margin-left:0 !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K>ul{flex-direction:column !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K>ul>li button{width:12rem !important}.-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K .cds--tabs__nav-link{max-width:12rem !important}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/prescriptions/prescription-expanded.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CC1DF,6EACE,YAAA,CACA,qBAAA,CACA,kBCyBW,CDtBb,uEACE,YAAA,CACA,kBAAA,CAEA,kFACE,aAAA,CACA,SAAA,CACA,0BAAA,CAGF,uFACE,gCAAA,CAGF,yFACE,aAAA,CACA,qBAAA,CAGF,4FACE,0BAAA,CACA,wCAAA,CAGF,sGACE,4BAAA,CACA,gDAAA,CAGF,iKACE,wBAAA,CAGF,0EACE,gCAAA,CAGF,oFACE,sBAAA,CAGF,4FACE,0BAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.expandedTabsParentContainer {\n display: flex;\n flex-direction: column;\n margin-bottom: layout.$spacing-05;\n}\n\n.expandedTabsContainer {\n display: flex;\n flex-direction: row;\n\n :global(.cds--tabs) {\n margin: layout.$spacing-05 0;\n width: 20%;\n max-height: 8rem !important;\n }\n\n :global(.cds--tab--list) {\n flex-direction: column !important;\n }\n\n :global(.cds--tab-content) {\n margin: layout.$spacing-05 0;\n width: 100% !important;\n }\n\n :global(.cds--tabs__nav-link) {\n border-bottom: 0 !important;\n border-left: 3px solid $ui-03 !important;\n }\n\n :global(.cds--tabs__nav-item--selected) {\n border-bottom: 0px !important;\n border-left: 3px solid var(--brand-03) !important;\n }\n\n &:global(.cds--tabs--scrollable .cds--tabs--scrollable__nav-item + .cds--tabs--scrollable__nav-item) {\n margin-left: 0 !important;\n }\n\n > ul {\n flex-direction: column !important;\n }\n\n > ul > li button {\n width: 12rem !important;\n }\n\n :global(.cds--tabs__nav-link) {\n max-width: 12rem !important;\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={expandedTabsParentContainer:"-esm-dispensing__prescription-expanded__expandedTabsParentContainer___zs0a7",expandedTabsContainer:"-esm-dispensing__prescription-expanded__expandedTabsContainer___3zE2K"};const s=o},9806:(e,n,t)=>{"use strict";t.d(n,{CL:()=>v,Fq:()=>R,Go:()=>q,Gp:()=>x,HP:()=>$,H_:()=>M,M$:()=>C,Q0:()=>E,Qe:()=>P,Qm:()=>k,Qz:()=>T,R9:()=>w,Xs:()=>g,Yi:()=>U,Yo:()=>N,Z_:()=>D,_e:()=>y,aC:()=>m,bP:()=>z,c1:()=>F,f4:()=>S,gY:()=>L,ky:()=>A,oK:()=>b,ox:()=>h,p8:()=>B,se:()=>W,vj:()=>O});var a=t(70231),i=t.n(a),r=t(27804),o=t(27042),s=t(25987),l=t(50930);function c(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 p(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){return function(e){if(Array.isArray(e))return c(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 c(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)?c(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.")}()}var u="Misconfiguration, please contact your System Administrator: Can't calculate quantity dispensed if units don't match. Likely issue: allowModifyingPrescription and restrictTotalQuantityDispensed configuration parameters both set to true. Either set restrictTotalQuantityDispensed to false or set allowModifyingPrescription to false. If you have previously entered dispense events that modified prescriptions, you will likely need to clean up or remove that data before setting restrictTotalQuantityDispensed to true.";function f(e,n){if(n&&$(e)<=0)return o.O7.completed;var t=D(e.dispenses);return t===o.NV.declined?o.O7.declined:t===o.NV.on_hold?o.O7.on_hold:null}function g(e,n){var t=h(e,n),a=k(e);if(t!==o.FA.active){if(t===o.FA.expired)return o._z.expired;if(t===o.FA.completed)return o._z.completed;if(t===o.FA.cancelled)return o._z.cancelled}return a===o.O7.declined?o._z.declined:a===o.O7.on_hold?o._z.on_hold:o._z.active}function h(e,n){var t,a;return e.status===o.FA.cancelled||e.status===o.FA.completed?e.status:(null===(a=e.dispenseRequest)||void 0===a||null===(t=a.validityPeriod)||void 0===t?void 0:t.start)&&i()(e.dispenseRequest.validityPeriod.start).isBefore(i()().startOf("day").subtract(n,"day"))?o.FA.expired:o.FA.active}function y(e,n,t){var a=d(n.dispenses);return a=e.id?a.map((function(n){return n.id===e.id?e:n})):[e].concat(d(a)),f({request:n.request,dispenses:a},t)}function m(e,n,t){return f({request:n.request,dispenses:n.dispenses.filter((function(n){return n.id!==e.id}))},t)}function b(e,n){var t=function(e,n){if(!e||0===e.length)return null;var t=e.map((function(e){return g(e,n)}));return t.includes(o._z.active)?o._z.active:t.includes(o._z.on_hold)?o._z.on_hold:t.includes(o._z.completed)?o._z.completed:t.includes(o._z.declined)?o._z.declined:t.includes(o._z.cancelled)?o._z.cancelled:t.includes(o._z.expired)?o._z.expired:null}(e,n);return null===t?null:t===o._z.active?"active":t===o._z.on_hold?"paused":t===o._z.completed?"completed":t===o._z.declined?"closed":t===o._z.expired?"expired":t===o._z.cancelled?"cancelled":null}function $(e){if(e){if(!j([e.request].concat(d(e.dispenses))))throw new Error(u);return i=F(n=e.request),((null===(a=n.dispenseRequest)||void 0===a||null===(t=a.quantity)||void 0===t?void 0:t.value)?n.dispenseRequest.quantity.value*(1+(i||0)):null)-A(e.dispenses)}var n,t,a,i;return 0}function A(e){if(e){if(!j(e))throw new Error(u);return e.map((function(e){var n,t;return(null===(n=e.quantity)||void 0===n?void 0:n.value)?null===(t=e.quantity)||void 0===t?void 0:t.value:0})).reduce((function(e,n){return e+n}),0)}return 0}function v(e,n){return null==n?void 0:n.filter((function(n){var t;return null==n||null===(t=n.authorizingPrescription)||void 0===t?void 0:t.some((function(n){return n.reference.endsWith(e.id)}))}))}function _(e){return e?e.find((function(e){return!("system"in e)||void 0===e.system})):null}function w(e){var n;return null===(n=_(e))||void 0===n?void 0:n.display}function C(e){var n;return null===(n=_(e))||void 0===n?void 0:n.code}function x(e){return(null==e?void 0:e.length)>0?e[0]:null}function k(e){var n,t;return null==e||null===(t=e.extension)||void 0===t||null===(n=t.find((function(e){return e.url===l.Yj})))||void 0===n?void 0:n.valueCode}function z(e){return"".concat(s.fhirBaseUrl,"/Medication?code=").concat(e)}function E(e){return e.medicationReference?e.medicationReference.display:w(null==e?void 0:e.medicationCodeableConcept.coding)+": "+(null==e?void 0:e.medicationCodeableConcept.text)}function M(e){return{medicationReference:e.medicationReference,medicationCodeableConcept:e.medicationCodeableConcept}}function D(e){var n=null==e?void 0:e.sort(R);return n&&n.length>0?n[0].status:null}function B(e,n){return e.find((function(e){return e.dispenses.find((function(e){return e.id===n.id}))}))}function T(e){if(!e||!e.extension)return null;var n=e.extension.find((function(e){return e.url===l.Wz}));if(!n||!n.extension)return null;var t=n.extension.find((function(e){return e.url===l.Wz+"#drugName"}));return t?t.valueString:null}function N(e){return"".concat(s.fhirBaseUrl,"/").concat(l.c1,"?encounter=").concat(e,"&_revinclude=MedicationDispense:prescription&_include=MedicationRequest:encounter")}function S(e,n,t,a,i){return I("".concat(s.fhirBaseUrl,"/").concat(l.T,"&_getpagesoffset=").concat(e,"&_count=").concat(n,"&date=ge").concat(t,"&status=active"),a,i)}function q(e,n,t,a){return I("".concat(s.fhirBaseUrl,"/").concat(l.T,"&_getpagesoffset=").concat(e,"&_count=").concat(n),t,a)}function I(e,n,t){return n&&(e="".concat(e,"&patientSearchTerm=").concat(n)),t&&(e="".concat(e,"&location=").concat(t)),e}function P(e){var n;return"MedicationRequest"==e.resourceType?null===(n=e.dispenseRequest)||void 0===n?void 0:n.quantity:"MedicationDispense"==e.resourceType?e.quantity:void 0}function j(e){if(e){var n=e.map((function(e){var n;return null===(n=P(e))||void 0===n?void 0:n.code})).filter((function(e){return e}));return!(n.length>0)||n.every((function(e){return e===n[0]}))}return!0}function F(e){var n;return"MedicationRequest"==e.resourceType?null===(n=e.dispenseRequest)||void 0===n?void 0:n.numberOfRepeatsAllowed:null}function O(e){return(null==e?void 0:e.includes("/"))?e.split("/")[1]:e}function U(e){return(n=function(){return function(e,n){var t,a,i,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(r=0)),r;)try{if(t=1,a&&(i=2&s[0]?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,a=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!((i=(i=r.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(6===s[0]&&r.label<i[1]){r.label=i[1],i=s;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(s);break}i[2]&&r.ops.pop(),r.trys.pop();continue}s=n.call(e,r)}catch(e){s=[6,e],a=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,(function(n){switch(n.label){case 0:return[4,(0,r.j)((function(n){return"string"==typeof n&&(n.startsWith("".concat(s.fhirBaseUrl,"/").concat(l.T))||n.startsWith("".concat(s.fhirBaseUrl,"/").concat(l.c1,"?encounter=").concat(e)))}))];case 1:return n.sent(),G.setState((function(n){return{staleEncounterUuids:n.staleEncounterUuids.filter((function(n){return n!==e}))}})),[2]}}))},function(){var e=this,t=arguments;return new Promise((function(a,i){var r=n.apply(e,t);function o(e){p(r,a,i,o,s,"next",e)}function s(e){p(r,a,i,o,s,"throw",e)}o(void 0)}))})();var n}function L(e){G.setState((function(n){return{staleEncounterUuids:d(n.staleEncounterUuids).concat([e])}}))}function R(e,n){if(null===n.whenHandedOver)return 1;if(null===e.whenHandedOver)return-1;var t=(0,s.parseDate)(n.whenHandedOver).getTime()-(0,s.parseDate)(e.whenHandedOver).getTime();return 0!==t?t:e.id.localeCompare(n.id)}var G=(0,s.createGlobalStore)("dispensing-store",{staleEncounterUuids:[]});function W(){return(0,s.useStore)(G)}},18140:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),o=t.n(r)()(i());o.push([e.id,".-esm-dispensing__print-prescription__title___Q\\+FEc{font-size:var(--cds-heading-02-font-size, 1rem);font-weight:var(--cds-heading-02-font-weight, 600);line-height:var(--cds-heading-02-line-height, 1.5);letter-spacing:var(--cds-heading-02-letter-spacing, 0)}.-esm-dispensing__print-prescription__btnSet___fKvQJ{width:100%}.-esm-dispensing__print-prescription__faintText___q-d\\+e{color:#000;font-size:var(--cds-heading-01-font-size, 0.875rem);font-weight:var(--cds-heading-01-font-weight, 600);line-height:var(--cds-heading-01-line-height, 1.42857);letter-spacing:var(--cds-heading-01-letter-spacing, 0.16px)}.-esm-dispensing__print-prescription__printOutContainer___5\\+hc\\+{width:20rem;background-color:#fff;padding:.5rem}@media print{.-esm-dispensing__print-prescription__printOutContainer___5\\+hc\\+{background-color:#fff;height:100vh;padding:0}}.-esm-dispensing__print-prescription__printoutTitle___0Vjmu{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);text-align:center;font-weight:bold}.-esm-dispensing__print-prescription__facilityName___Rb3tg{color:#000;text-align:end;padding:1rem;font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}.-esm-dispensing__print-prescription__prescriber___FH809{color:#000;padding:1rem;font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}.-esm-dispensing__print-prescription__printoutSelectorRow___l9J1Z{display:flex;flex-direction:row;gap:1rem;padding:0 1rem 0 1rem;justify-content:space-between}.-esm-dispensing__print-prescription__patientName___OGjRy{text-transform:capitalize;text-align:center}.-esm-dispensing__print-prescription__printPreviewContainer___mI4iD{background-color:#fff}.-esm-dispensing__print-prescription__prescriptionInfo___jDM5H{color:#000;font-weight:bolder;font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}.-esm-dispensing__print-prescription__medicationName___DIqPL{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0);color:#000}","",{version:3,sources:["webpack://./src/print-prescription/print-prescription.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss","webpack://./node_modules/@carbon/colors/index.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAIA,qDC81BI,+CAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CD11BJ,qDACE,UAAA,CAGF,yDACE,UELM,CD01BJ,mDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,2DAAA,CDj1BJ,kEACE,WAAA,CACA,qBEVM,CFWN,aGCW,CHCX,aALF,kEAMI,qBEdI,CFeJ,YAAA,CACA,SAAA,CAAA,CAIJ,4DCq0BI,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDn0BF,iBAAA,CACA,gBAAA,CAGF,2DACE,UE5BM,CF6BN,cAAA,CACA,YGPW,CFm0BT,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CDxzBJ,yDACE,UEnCM,CFoCN,YGbW,CFm0BT,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CDlzBJ,kEACE,YAAA,CACA,kBAAA,CACA,QGpBW,CHqBX,qBAAA,CACA,6BAAA,CAGF,0DACE,yBAAA,CACA,iBAAA,CAGF,oEACE,qBErDM,CFwDR,+DACE,UE1DM,CF2DN,kBAAA,CC+xBE,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CD3xBJ,6DC2xBI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CDzxBF,UEjEM",sourcesContent:["@use '@carbon/colors';\n@use '@carbon/layout';\n@use '@carbon/type';\n\n.title {\n @include type.type-style('heading-02');\n}\n\n.btnSet {\n width: 100%;\n}\n\n.faintText {\n color: colors.$black;\n @include type.type-style('heading-01');\n}\n\n.printOutContainer {\n width: 20rem;\n background-color: colors.$white;\n padding: layout.$spacing-03;\n\n @media print {\n background-color: colors.$white;\n height: 100vh;\n padding: 0;\n }\n}\n\n.printoutTitle {\n @include type.type-style('heading-03');\n text-align: center;\n font-weight: bold;\n}\n\n.facilityName {\n color: colors.$black;\n text-align: end;\n padding: layout.$spacing-05;\n @include type.type-style('label-01');\n}\n\n.prescriber {\n color: colors.$black;\n padding: layout.$spacing-05;\n @include type.type-style('label-01');\n}\n\n.printoutSelectorRow {\n display: flex;\n flex-direction: row;\n gap: layout.$spacing-05;\n padding: 0 layout.$spacing-05 0 layout.$spacing-05;\n justify-content: space-between;\n}\n\n.patientName {\n text-transform: capitalize;\n text-align: center;\n}\n\n.printPreviewContainer {\n background-color: colors.$white;\n}\n\n.prescriptionInfo {\n color: colors.$black;\n font-weight: bolder;\n @include type.type-style('label-01');\n}\n\n.medicationName {\n @include type.type-style('body-compact-02');\n color: colors.$black;\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","// Code generated by @carbon/colors. 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$black: #000000 !default;\n$white: #ffffff !default;\n\n$black-100: #000000 !default;\n$blue-10: #edf5ff !default;\n$blue-20: #d0e2ff !default;\n$blue-30: #a6c8ff !default;\n$blue-40: #78a9ff !default;\n$blue-50: #4589ff !default;\n$blue-60: #0f62fe !default;\n$blue-70: #0043ce !default;\n$blue-80: #002d9c !default;\n$blue-90: #001d6c !default;\n$blue-100: #001141 !default;\n$cool-gray-10: #f2f4f8 !default;\n$cool-gray-20: #dde1e6 !default;\n$cool-gray-30: #c1c7cd !default;\n$cool-gray-40: #a2a9b0 !default;\n$cool-gray-50: #878d96 !default;\n$cool-gray-60: #697077 !default;\n$cool-gray-70: #4d5358 !default;\n$cool-gray-80: #343a3f !default;\n$cool-gray-90: #21272a !default;\n$cool-gray-100: #121619 !default;\n$cyan-10: #e5f6ff !default;\n$cyan-20: #bae6ff !default;\n$cyan-30: #82cfff !default;\n$cyan-40: #33b1ff !default;\n$cyan-50: #1192e8 !default;\n$cyan-60: #0072c3 !default;\n$cyan-70: #00539a !default;\n$cyan-80: #003a6d !default;\n$cyan-90: #012749 !default;\n$cyan-100: #061727 !default;\n$gray-10: #f4f4f4 !default;\n$gray-20: #e0e0e0 !default;\n$gray-30: #c6c6c6 !default;\n$gray-40: #a8a8a8 !default;\n$gray-50: #8d8d8d !default;\n$gray-60: #6f6f6f !default;\n$gray-70: #525252 !default;\n$gray-80: #393939 !default;\n$gray-90: #262626 !default;\n$gray-100: #161616 !default;\n$green-10: #defbe6 !default;\n$green-20: #a7f0ba !default;\n$green-30: #6fdc8c !default;\n$green-40: #42be65 !default;\n$green-50: #24a148 !default;\n$green-60: #198038 !default;\n$green-70: #0e6027 !default;\n$green-80: #044317 !default;\n$green-90: #022d0d !default;\n$green-100: #071908 !default;\n$magenta-10: #fff0f7 !default;\n$magenta-20: #ffd6e8 !default;\n$magenta-30: #ffafd2 !default;\n$magenta-40: #ff7eb6 !default;\n$magenta-50: #ee5396 !default;\n$magenta-60: #d02670 !default;\n$magenta-70: #9f1853 !default;\n$magenta-80: #740937 !default;\n$magenta-90: #510224 !default;\n$magenta-100: #2a0a18 !default;\n$orange-10: #fff2e8 !default;\n$orange-20: #ffd9be !default;\n$orange-30: #ffb784 !default;\n$orange-40: #ff832b !default;\n$orange-50: #eb6200 !default;\n$orange-60: #ba4e00 !default;\n$orange-70: #8a3800 !default;\n$orange-80: #5e2900 !default;\n$orange-90: #3e1a00 !default;\n$orange-100: #231000 !default;\n$purple-10: #f6f2ff !default;\n$purple-20: #e8daff !default;\n$purple-30: #d4bbff !default;\n$purple-40: #be95ff !default;\n$purple-50: #a56eff !default;\n$purple-60: #8a3ffc !default;\n$purple-70: #6929c4 !default;\n$purple-80: #491d8b !default;\n$purple-90: #31135e !default;\n$purple-100: #1c0f30 !default;\n$red-10: #fff1f1 !default;\n$red-20: #ffd7d9 !default;\n$red-30: #ffb3b8 !default;\n$red-40: #ff8389 !default;\n$red-50: #fa4d56 !default;\n$red-60: #da1e28 !default;\n$red-70: #a2191f !default;\n$red-80: #750e13 !default;\n$red-90: #520408 !default;\n$red-100: #2d0709 !default;\n$teal-10: #d9fbfb !default;\n$teal-20: #9ef0f0 !default;\n$teal-30: #3ddbd9 !default;\n$teal-40: #08bdba !default;\n$teal-50: #009d9a !default;\n$teal-60: #007d79 !default;\n$teal-70: #005d5d !default;\n$teal-80: #004144 !default;\n$teal-90: #022b30 !default;\n$teal-100: #081a1c !default;\n$warm-gray-10: #f7f3f2 !default;\n$warm-gray-20: #e5e0df !default;\n$warm-gray-30: #cac5c4 !default;\n$warm-gray-40: #ada8a8 !default;\n$warm-gray-50: #8f8b8b !default;\n$warm-gray-60: #726e6e !default;\n$warm-gray-70: #565151 !default;\n$warm-gray-80: #3c3838 !default;\n$warm-gray-90: #272525 !default;\n$warm-gray-100: #171414 !default;\n$white-0: #ffffff !default;\n$yellow-10: #fcf4d6 !default;\n$yellow-20: #fddc69 !default;\n$yellow-30: #f1c21b !default;\n$yellow-40: #d2a106 !default;\n$yellow-50: #b28600 !default;\n$yellow-60: #8e6a00 !default;\n$yellow-70: #684e00 !default;\n$yellow-80: #483700 !default;\n$yellow-90: #302400 !default;\n$yellow-100: #1c1500 !default;\n\n$white-hover: #e8e8e8 !default;\n$black-hover: #212121 !default;\n$blue-10-hover: #dbebff !default;\n$blue-20-hover: #b8d3ff !default;\n$blue-30-hover: #8ab6ff !default;\n$blue-40-hover: #5c97ff !default;\n$blue-50-hover: #1f70ff !default;\n$blue-60-hover: #0050e6 !default;\n$blue-70-hover: #0053ff !default;\n$blue-80-hover: #0039c7 !default;\n$blue-90-hover: #00258a !default;\n$blue-100-hover: #001f75 !default;\n$cool-gray-10-hover: #e4e9f1 !default;\n$cool-gray-20-hover: #cdd3da !default;\n$cool-gray-30-hover: #adb5bd !default;\n$cool-gray-40-hover: #9199a1 !default;\n$cool-gray-50-hover: #757b85 !default;\n$cool-gray-60-hover: #585e64 !default;\n$cool-gray-70-hover: #5d646a !default;\n$cool-gray-80-hover: #434a51 !default;\n$cool-gray-90-hover: #2b3236 !default;\n$cool-gray-100-hover: #222a2f !default;\n$cyan-10-hover: #cceeff !default;\n$cyan-20-hover: #99daff !default;\n$cyan-30-hover: #57beff !default;\n$cyan-40-hover: #059fff !default;\n$cyan-50-hover: #0f7ec8 !default;\n$cyan-60-hover: #005fa3 !default;\n$cyan-70-hover: #0066bd !default;\n$cyan-80-hover: #00498a !default;\n$cyan-90-hover: #013360 !default;\n$cyan-100-hover: #0b2947 !default;\n$gray-10-hover: #e8e8e8 !default;\n$gray-20-hover: #d1d1d1 !default;\n$gray-30-hover: #b5b5b5 !default;\n$gray-40-hover: #999999 !default;\n$gray-50-hover: #7a7a7a !default;\n$gray-60-hover: #5e5e5e !default;\n$gray-70-hover: #636363 !default;\n$gray-80-hover: #474747 !default;\n$gray-90-hover: #333333 !default;\n$gray-100-hover: #292929 !default;\n$green-10-hover: #b6f6c8 !default;\n$green-20-hover: #74e792 !default;\n$green-30-hover: #36ce5e !default;\n$green-40-hover: #3bab5a !default;\n$green-50-hover: #208e3f !default;\n$green-60-hover: #166f31 !default;\n$green-70-hover: #11742f !default;\n$green-80-hover: #05521c !default;\n$green-90-hover: #033b11 !default;\n$green-100-hover: #0d300f !default;\n$magenta-10-hover: #ffe0ef !default;\n$magenta-20-hover: #ffbdda !default;\n$magenta-30-hover: #ff94c3 !default;\n$magenta-40-hover: #ff57a0 !default;\n$magenta-50-hover: #e3176f !default;\n$magenta-60-hover: #b0215f !default;\n$magenta-70-hover: #bf1d63 !default;\n$magenta-80-hover: #8e0b43 !default;\n$magenta-90-hover: #68032e !default;\n$magenta-100-hover: #53142f !default;\n$orange-10-hover: #ffe2cc !default;\n$orange-20-hover: #ffc69e !default;\n$orange-30-hover: #ff9d57 !default;\n$orange-40-hover: #fa6800 !default;\n$orange-50-hover: #cc5500 !default;\n$orange-60-hover: #9e4200 !default;\n$orange-70-hover: #a84400 !default;\n$orange-80-hover: #753300 !default;\n$orange-90-hover: #522200 !default;\n$orange-100-hover: #421e00 !default;\n$purple-10-hover: #ede5ff !default;\n$purple-20-hover: #dcc7ff !default;\n$purple-30-hover: #c5a3ff !default;\n$purple-40-hover: #ae7aff !default;\n$purple-50-hover: #9352ff !default;\n$purple-60-hover: #7822fb !default;\n$purple-70-hover: #7c3dd6 !default;\n$purple-80-hover: #5b24ad !default;\n$purple-90-hover: #40197b !default;\n$purple-100-hover: #341c59 !default;\n$red-10-hover: #ffe0e0 !default;\n$red-20-hover: #ffc2c5 !default;\n$red-30-hover: #ff99a0 !default;\n$red-40-hover: #ff6168 !default;\n$red-50-hover: #ee0713 !default;\n$red-60-hover: #b81922 !default;\n$red-70-hover: #c21e25 !default;\n$red-80-hover: #921118 !default;\n$red-90-hover: #66050a !default;\n$red-100-hover: #540d11 !default;\n$teal-10-hover: #acf6f6 !default;\n$teal-20-hover: #57e5e5 !default;\n$teal-30-hover: #25cac8 !default;\n$teal-40-hover: #07aba9 !default;\n$teal-50-hover: #008a87 !default;\n$teal-60-hover: #006b68 !default;\n$teal-70-hover: #007070 !default;\n$teal-80-hover: #005357 !default;\n$teal-90-hover: #033940 !default;\n$teal-100-hover: #0f3034 !default;\n$warm-gray-10-hover: #f0e8e6 !default;\n$warm-gray-20-hover: #d8d0cf !default;\n$warm-gray-30-hover: #b9b3b1 !default;\n$warm-gray-40-hover: #9c9696 !default;\n$warm-gray-50-hover: #7f7b7b !default;\n$warm-gray-60-hover: #605d5d !default;\n$warm-gray-70-hover: #696363 !default;\n$warm-gray-80-hover: #4c4848 !default;\n$warm-gray-90-hover: #343232 !default;\n$warm-gray-100-hover: #2c2626 !default;\n$yellow-10-hover: #f8e6a0 !default;\n$yellow-20-hover: #fccd27 !default;\n$yellow-30-hover: #ddb00e !default;\n$yellow-40-hover: #bc9005 !default;\n$yellow-50-hover: #9e7700 !default;\n$yellow-60-hover: #755800 !default;\n$yellow-70-hover: #806000 !default;\n$yellow-80-hover: #5c4600 !default;\n$yellow-90-hover: #3d2e00 !default;\n$yellow-100-hover: #332600 !default;\n\n/// Colors from the IBM Design Language\n/// @access public\n/// @group @carbon/colors\n$colors: (\n black: (\n 100: #000000,\n ),\n blue: (\n 10: #edf5ff,\n 20: #d0e2ff,\n 30: #a6c8ff,\n 40: #78a9ff,\n 50: #4589ff,\n 60: #0f62fe,\n 70: #0043ce,\n 80: #002d9c,\n 90: #001d6c,\n 100: #001141,\n ),\n cool-gray: (\n 10: #f2f4f8,\n 20: #dde1e6,\n 30: #c1c7cd,\n 40: #a2a9b0,\n 50: #878d96,\n 60: #697077,\n 70: #4d5358,\n 80: #343a3f,\n 90: #21272a,\n 100: #121619,\n ),\n cyan: (\n 10: #e5f6ff,\n 20: #bae6ff,\n 30: #82cfff,\n 40: #33b1ff,\n 50: #1192e8,\n 60: #0072c3,\n 70: #00539a,\n 80: #003a6d,\n 90: #012749,\n 100: #061727,\n ),\n gray: (\n 10: #f4f4f4,\n 20: #e0e0e0,\n 30: #c6c6c6,\n 40: #a8a8a8,\n 50: #8d8d8d,\n 60: #6f6f6f,\n 70: #525252,\n 80: #393939,\n 90: #262626,\n 100: #161616,\n ),\n green: (\n 10: #defbe6,\n 20: #a7f0ba,\n 30: #6fdc8c,\n 40: #42be65,\n 50: #24a148,\n 60: #198038,\n 70: #0e6027,\n 80: #044317,\n 90: #022d0d,\n 100: #071908,\n ),\n magenta: (\n 10: #fff0f7,\n 20: #ffd6e8,\n 30: #ffafd2,\n 40: #ff7eb6,\n 50: #ee5396,\n 60: #d02670,\n 70: #9f1853,\n 80: #740937,\n 90: #510224,\n 100: #2a0a18,\n ),\n orange: (\n 10: #fff2e8,\n 20: #ffd9be,\n 30: #ffb784,\n 40: #ff832b,\n 50: #eb6200,\n 60: #ba4e00,\n 70: #8a3800,\n 80: #5e2900,\n 90: #3e1a00,\n 100: #231000,\n ),\n purple: (\n 10: #f6f2ff,\n 20: #e8daff,\n 30: #d4bbff,\n 40: #be95ff,\n 50: #a56eff,\n 60: #8a3ffc,\n 70: #6929c4,\n 80: #491d8b,\n 90: #31135e,\n 100: #1c0f30,\n ),\n red: (\n 10: #fff1f1,\n 20: #ffd7d9,\n 30: #ffb3b8,\n 40: #ff8389,\n 50: #fa4d56,\n 60: #da1e28,\n 70: #a2191f,\n 80: #750e13,\n 90: #520408,\n 100: #2d0709,\n ),\n teal: (\n 10: #d9fbfb,\n 20: #9ef0f0,\n 30: #3ddbd9,\n 40: #08bdba,\n 50: #009d9a,\n 60: #007d79,\n 70: #005d5d,\n 80: #004144,\n 90: #022b30,\n 100: #081a1c,\n ),\n warm-gray: (\n 10: #f7f3f2,\n 20: #e5e0df,\n 30: #cac5c4,\n 40: #ada8a8,\n 50: #8f8b8b,\n 60: #726e6e,\n 70: #565151,\n 80: #3c3838,\n 90: #272525,\n 100: #171414,\n ),\n white: (\n 0: #ffffff,\n ),\n yellow: (\n 10: #fcf4d6,\n 20: #fddc69,\n 30: #f1c21b,\n 40: #d2a106,\n 50: #b28600,\n 60: #8e6a00,\n 70: #684e00,\n 80: #483700,\n 90: #302400,\n 100: #1c1500,\n ),\n) !default;\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={title:"-esm-dispensing__print-prescription__title___Q+FEc",btnSet:"-esm-dispensing__print-prescription__btnSet___fKvQJ",faintText:"-esm-dispensing__print-prescription__faintText___q-d+e",printOutContainer:"-esm-dispensing__print-prescription__printOutContainer___5+hc+",printoutTitle:"-esm-dispensing__print-prescription__printoutTitle___0Vjmu",facilityName:"-esm-dispensing__print-prescription__facilityName___Rb3tg",prescriber:"-esm-dispensing__print-prescription__prescriber___FH809",printoutSelectorRow:"-esm-dispensing__print-prescription__printoutSelectorRow___l9J1Z",patientName:"-esm-dispensing__print-prescription__patientName___OGjRy",printPreviewContainer:"-esm-dispensing__print-prescription__printPreviewContainer___mI4iD",prescriptionInfo:"-esm-dispensing__print-prescription__prescriptionInfo___jDM5H",medicationName:"-esm-dispensing__print-prescription__medicationName___DIqPL"};const s=o},23015:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),o=t.n(r)()(i());o.push([e.id,".-esm-dispensing__dispensing__dispensing___He2wq.-esm-dispensing__dispensing__hasLeftNav___R31fy{margin-left:16rem}","",{version:3,sources:["webpack://./src/dispensing.scss"],names:[],mappings:"AACE,iGACE,iBAAA",sourcesContent:[".dispensing {\n &.hasLeftNav {\n margin-left: 16rem;\n }\n}\n"],sourceRoot:""}]),o.locals={dispensing:"-esm-dispensing__dispensing__dispensing___He2wq",hasLeftNav:"-esm-dispensing__dispensing__hasLeftNav___R31fy"};const s=o},24756:(e,n,t)=>{"use strict";t.d(n,{A7:()=>l,CG:()=>b,E:()=>p,M5:()=>u,Sj:()=>h,_D:()=>c,cE:()=>f,ij:()=>g,u9:()=>d,ux:()=>m});var a=t(70231),i=t.n(a),r=t(92177),o=t(25987);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e,n,t){var a=e.id?"".concat(o.fhirBaseUrl,"/MedicationDispense/").concat(e.id):"".concat(o.fhirBaseUrl,"/MedicationDispense"),i=e.id?"PUT":"POST";return e.status=n,e.whenPrepared=e.whenHandedOver,(0,o.openmrsFetch)(a,{method:i,signal:t.signal,headers:{"Content-Type":"application/json"},body:e})}function c(e){return(0,o.openmrsFetch)("".concat(o.fhirBaseUrl,"/MedicationDispense/").concat(e),{method:"DELETE"})}function p(){var e=(0,r.Ay)("".concat(o.restBaseUrl,"/orderentryconfig"),o.openmrsFetch),n=e.data,t=e.error,a=e.isValidating;return{orderConfigObject:n?n.data:null,error:t,isLoading:!n&&!t,isValidating:a}}function d(e){var n,t="custom:(uuid,person:(display)",a=(0,r.Ay)(e&&e.length>0?"".concat(o.restBaseUrl,"/provider?providerRoles=").concat(e.join(","),"&v=").concat(t,")"):"".concat(o.restBaseUrl,"/provider?v=").concat(t,")"),o.openmrsFetch).data;return null==a||null===(n=a.data)||void 0===n?void 0:n.results.sort((function(e,n){var t,a;return null===(a=e.person)||void 0===a?void 0:a.display.localeCompare(null===(t=n.person)||void 0===t?void 0:t.display)}))}function u(e){return{reasonForPauseValueSet:y(e)}}function f(e){return{reasonForCloseValueSet:y(e)}}function g(e){return{substitutionTypeValueSet:y(e)}}function h(e){return{substitutionReasonValueSet:y(e)}}function y(e){var n=(0,r.Ay)("".concat(o.fhirBaseUrl,"/ValueSet/").concat(e),o.openmrsFetch).data;return n?n.data:null}function m(e,n,t,a){var r,o,l,c,p,d,u,f,g,h,y,m={resourceType:"MedicationDispense",status:null,authorizingPrescription:[{reference:"MedicationRequest/"+e.id,type:"MedicationRequest"}],medicationReference:e.medicationReference,medicationCodeableConcept:e.medicationCodeableConcept,subject:e.subject,performer:[{actor:{reference:(null==n?void 0:n.currentProvider)&&t&&t.some((function(e){return e.uuid==n.currentProvider.uuid}))?"Practitioner/".concat(n.currentProvider.uuid):""}}],location:{reference:(null==n?void 0:n.sessionLocation)?"Location/".concat(n.sessionLocation.uuid):""},whenHandedOver:i()().format()};return a&&(h=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){s(e,n,t[n])}))}return e}({},m),y=null!=(y={quantity:{value:null===(o=e.dispenseRequest)||void 0===o||null===(r=o.quantity)||void 0===r?void 0:r.value,code:null===(c=e.dispenseRequest)||void 0===c||null===(l=c.quantity)||void 0===l?void 0:l.code,unit:null===(d=e.dispenseRequest)||void 0===d||null===(p=d.quantity)||void 0===p?void 0:p.unit,system:null===(f=e.dispenseRequest)||void 0===f||null===(u=f.quantity)||void 0===u?void 0:u.system},dosageInstruction:[{text:[e.dosageInstruction[0].text,(null===(g=e.dosageInstruction[0].additionalInstruction)||void 0===g?void 0:g.length)>0?e.dosageInstruction[0].additionalInstruction[0].text:null].filter((function(e){return null!=e})).join(" "),timing:e.dosageInstruction[0].timing,asNeededBoolean:!1,route:e.dosageInstruction[0].route,doseAndRate:e.dosageInstruction[0].doseAndRate?e.dosageInstruction[0].doseAndRate:[{doseQuantity:{value:null,code:null,unit:null}}]}],substitution:b})?y:{},Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(y)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(y)).forEach((function(e){Object.defineProperty(h,e,Object.getOwnPropertyDescriptor(y,e))})),m=h),m}var b={wasSubstituted:!1,reason:[{coding:[{code:null}]}],type:{coding:[{code:null}]}}},27042:(e,n,t)=>{"use strict";t.d(n,{FA:()=>i,NV:()=>a,O7:()=>r,_z:()=>o});var a=function(e){return e.on_hold="on-hold",e.completed="completed",e.declined="declined",e}({}),i=function(e){return e.active="active",e.cancelled="cancelled",e.completed="completed",e.expired="expired",e}({}),r=function(e){return e.on_hold="ON_HOLD",e.declined="DECLINED",e.completed="COMPLETED",e}({}),o=function(e){return e.active="active",e.cancelled="cancelled",e.completed="completed",e.expired="expired",e.on_hold="on-hold",e.declined="declined",e.unknown="unknown",e}({})},50930:(e,n,t)=>{"use strict";t.d(n,{Bi:()=>s,T:()=>f,Wz:()=>r,Yj:()=>o,Zw:()=>c,_8:()=>p,c1:()=>g,ih:()=>d,p1:()=>a,py:()=>l,w9:()=>u}),window.getOpenmrsSpaBase;var a="".concat(window.spaBase).concat("/dispensing"),i="http://fhir.openmrs.org/ext",r=i+"/medicine",o=i+"/medicationrequest/fulfillerstatus",s="Task: dispensing.create.dispense",l="Task: dispensing.create.dispense.allowSubstitutions",c="Task: dispensing.edit.dispense",p="Task: dispensing.delete.dispense",d="Task: dispensing.delete.dispense.ifCreator",u="application/merge-patch+json",f="Encounter?_query=encountersWithMedicationRequests",g="MedicationRequest"},61282:(e,n,t)=>{"use strict";t.r(n),t.d(n,{closeActionButton:()=>en,closeDispenseWorkspace:()=>an,deleteConfirmModal:()=>ln,dispenseActionButton:()=>nn,dispenseWorkspace:()=>rn,dispensing:()=>Ve,dispensingDashboard:()=>Ze,dispensingDashboardLink:()=>Xe,dispensingLink:()=>Ye,importTranslation:()=>He,patientConditions:()=>pn,patientDiagnoses:()=>cn,pauseActionButton:()=>tn,pauseDispenseWorkspace:()=>on,printPrescriptionPreviewModal:()=>sn,startupApp:()=>Je});var a=t(25987),i={appName:{_type:a.Type.String,_default:"Pharmacy"},actionButtons:{pauseButton:{enabled:{_type:a.Type.Boolean,_description:"Enabled/Disable including a Pause button in the button action bar",_default:!0}},closeButton:{enabled:{_type:a.Type.Boolean,_description:"Enabled/Disable including a Close button in the button action bar",_default:!0}}},dispenseBehavior:{allowModifyingPrescription:{_type:a.Type.Boolean,_description:"Enable/Disable editing the prescription. If Disabled, Quantity will be he only editable field on prescription form. Note that thins means that quantity units will need to be mandatory and set correctly on the prescription.",_default:!0},restrictTotalQuantityDispensed:{_type:a.Type.Boolean,_description:"Enable/Disable restricting dispensing quantity greater than total quantity ordered. Marks prescription as complete when total quantity dispensed. If true, allowModifyingPrescription *must* be false, as this functionality relies solely on numeric quantity and assumes no change in formulation, dosage, unit, etc",_default:!1}},dispenserProviderRoles:{_type:a.Type.Array,_description:'Array of provider roles uuids. If specified, only providers with these roles will be listed in the "Dispensed By" dropdown. Note that this simply restricts the providers that can be recorded as Dispensers, it does not limit who can create dispense events.',_default:[]},medicationRequestExpirationPeriodInDays:{_type:a.Type.Number,_description:"Medication Requests older that this will be considered expired",_default:90},locationBehavior:{locationColumn:{enabled:{_type:a.Type.Boolean,_description:"Enabled/Disable including a Location column in the main prescriptions table showing ordering location",_default:!1}},locationFilter:{enabled:{_type:a.Type.Boolean,_description:"Enable/Disable Location filter on main prescriptions page",_default:!1},tag:{_type:a.Type.String,_description:"Name of the location tag to use when fetching locations to populate filter",_default:"Login Location"}}},refreshInterval:{_type:a.Type.Number,_description:"The interval, in milliseconds, to query the backend for new/changed data",_default:6e4},valueSets:{reasonForPause:{uuid:{_type:a.Type.UUID,_description:"UUID for the Value Set of valid answers to the 'Reason for Pause' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/168099/",_default:"2462a9d7-61fb-4bf5-9359-aedecb8d03cb"}},reasonForClose:{uuid:{_type:a.Type.UUID,_description:"UUID for the Value Set of valid answers to the 'Reason for Close' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/168099/",_default:"2462a9d7-61fb-4bf5-9359-aedecb8d03cb"}},substitutionReason:{uuid:{_type:a.Type.UUID,_description:"UUID for the Value Set of valid answers to the 'Reason for Substitution' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/167862/",_default:"2de6e1be-f2dd-4ba0-9516-8a611aa2af9b"}},substitutionType:{uuid:{_type:a.Type.UUID,_description:"UUID for the Value Set of valid answers to the 'Type of Substitution' question. Defaults to CIEL value set: https://app.openconceptlab.org/#/orgs/CIEL/sources/CIEL/concepts/167859/",_default:"b9c5bca0-d026-4245-a4d2-e4c0a8999082"}}},enableStockDispense:{_type:a.Type.Boolean,_description:"Enable or disable stock deduction during the dispensing process. Requires the stock management module to be installed and configured.",_default:!1},validateBatch:{_type:a.Type.Boolean,_description:"Enable or disable stock item batch number validation. Requires the stock management module to be installed and configured.",_default:!0},leftNavMode:{_type:a.Type.String,_description:"Sets the left nav mode for the dispensing app.",_validators:[a.validators.oneOf(["normal","collapsed","hidden"])],_default:"collapsed"},completeOrderWithThisDispense:{_type:a.Type.Boolean,_description:'Enable or disable the "Complete order with this dispense" checkbox on the dispense form.',_default:!1}},r=t(16072),o=t.n(r),s=t(32090),l=t(2076),c=t(24756);var p=t(85072),d=t.n(p),u=t(97825),f=t.n(u),g=t(77659),h=t.n(g),y=t(55056),m=t.n(y),b=t(10540),$=t.n(b),A=t(41113),v=t.n(A),_=t(23015),w={};w.styleTagTransform=v(),w.setAttributes=m(),w.insert=h().bind(null,"head"),w.domAPI=f(),w.insertStyleElement=$(),d()(_.A,w);const C=_.A&&_.A.locals?_.A.locals:void 0;var x=t(46942),k=t.n(x),z=t(97136),E=t(83335);const M=function(){return o().createElement("svg",{width:"72",height:"72",viewBox:"0 0 62 58",xmlns:"http://www.w3.org/2000/svg"},o().createElement("defs",null,o().createElement("path",{id:"whv9q6f4ta",d:"M0 0h62v30.508H0z"}),o().createElement("path",{id:"hp71ojgcnc",d:"M0 0h24.603v26.571H0z"})),o().createElement("g",{fill:"none"},o().createElement("g",{opacity:".193",transform:"matrix(-1 0 0 1 62 26.571)"},o().createElement("path",{d:"M62 0c0 16.85-13.916 30.508-31.037 30.508S0 16.849 0 0h62z",fill:"var(--brand-03)",mask:"url(#rt0c8mo6eb)"})),o().createElement("g",{opacity:".396",transform:"matrix(-1 0 0 1 60.032 0)"},o().createElement("path",{d:"m24.603 26.571-13.35-23.51C9.592.141 5.884-.869 3.011.817.138 2.503-.855 6.272.804 9.193l9.874 17.378",fill:"var(--brand-03)",mask:"url(#hgianthqwd)"}))))};var D=t(4422),B={};B.styleTagTransform=v(),B.setAttributes=m(),B.insert=h().bind(null,"head"),B.domAPI=f(),B.insertStyleElement=$(),d()(D.A,B);const T=D.A&&D.A.locals?D.A.locals:void 0;var N=function(){var e,n=(0,l.useTranslation)().t,t=(0,a.useSession)(),i=(0,a.useConfig)(),r=null==t||null===(e=t.sessionLocation)||void 0===e?void 0:e.display;return o().createElement("div",{className:T.header},o().createElement("div",{className:T.leftJustifiedItems},o().createElement(M,null),o().createElement("div",{className:T.pageLabels},o().createElement("p",null,n("appName",i.appName)),o().createElement("p",{className:T.pageName},n("home","Home")))),o().createElement("div",{className:T.rightJustifiedItems},o().createElement("div",{className:T.dateAndLocation},o().createElement(z.aZ,{size:16}),o().createElement("span",{className:T.value},r),o().createElement("span",{className:T.middot},"·"),o().createElement(E.Vv,{size:16}),o().createElement("span",{className:T.value},(0,a.formatDate)(new Date,{noToday:!0})))))},S=t(92177);const q=function(e){var n=e.patient,t=n.name,i=function(e){var n,t="".concat(a.restBaseUrl,"/person/").concat(e,"?v=").concat("custom:(age)"),i=(0,S.Ay)(t,a.openmrsFetch),r=i.data,o=i.error,s=i.isLoading,l=i.mutate;return{age:null==r||null===(n=r.data)||void 0===n?void 0:n.age,error:o,isLoading:s,mutate:l}}(n.uuid),r=i.error,s=i.isLoading,c=i.age,p=(0,(0,l.useTranslation)().t)("age","Age");if(s||r)return o().createElement(o().Fragment,null,t);var d=function(e,n){var t=e.lastIndexOf(")");return-1!==t?e.slice(0,t)+", ".concat(p,": ").concat(n)+e.slice(t):"".concat(e," ").concat(p,": ").concat(n)}(t,c);return o().createElement(o().Fragment,null,d)};var I=t(98003),P={};P.styleTagTransform=v(),P.setAttributes=m(),P.insert=h().bind(null,"head"),P.domAPI=f(),P.insertStyleElement=$(),d()(I.A,P);const j=I.A&&I.A.locals?I.A.locals:void 0;var F=t(85316),O=t(9806),U=t(64046),L={};L.styleTagTransform=v(),L.setAttributes=m(),L.insert=h().bind(null,"head"),L.domAPI=f(),L.insertStyleElement=$(),d()(U.A,L);const R=U.A&&U.A.locals?U.A.locals:void 0,G=function(e){var n,t,a,i,r,s,c,p,d,u,f=e.medicationEvent,g=e.status,h=void 0===g?null:g,y=(0,l.useTranslation)().t,m=(0,O.Gp)(f.dosageInstruction),b=(0,O.Qe)(f),$=(0,O.c1)(f);return o().createElement("div",null,o().createElement("p",{className:R.medicationName},h,o().createElement("strong",null,(0,O.Q0)((0,O.H_)(f)))),m&&o().createElement("p",{className:R.bodyLong01},o().createElement("span",{className:R.label01},y("dose","Dose").toUpperCase())," ",o().createElement("span",{className:R.dosage},m.doseAndRate&&(null==m?void 0:m.doseAndRate.map((function(e,n){var t,a;return o().createElement("span",{key:n},null==e||null===(t=e.doseQuantity)||void 0===t?void 0:t.value," ",null==e||null===(a=e.doseQuantity)||void 0===a?void 0:a.unit)}))))," ","— ",null==m||null===(n=m.route)||void 0===n?void 0:n.text," — ",null==m||null===(a=m.timing)||void 0===a||null===(t=a.code)||void 0===t?void 0:t.text," ",(null==m||null===(r=m.timing)||void 0===r||null===(i=r.repeat)||void 0===i?void 0:i.duration)?"for "+(null==m||null===(c=m.timing)||void 0===c||null===(s=c.repeat)||void 0===s?void 0:s.duration)+" "+(null==m||null===(d=m.timing)||void 0===d||null===(p=d.repeat)||void 0===p?void 0:p.durationUnit):" "),b&&o().createElement("p",{className:R.bodyLong01},o().createElement("span",{className:R.label01},y("quantity","Quantity").toUpperCase())," ",o().createElement("span",{className:R.quantity},b.value," ",b.unit)),($||0===$)&&o().createElement("p",{className:R.bodyLong01},o().createElement("span",{className:R.label01},y("refills","Refills").toUpperCase())," ",o().createElement("span",{className:R.refills},$)),(null==m?void 0:m.text)&&o().createElement("p",{className:R.bodyLong01},m.text),(null==m||null===(u=m.additionalInstruction)||void 0===u?void 0:u.length)>0&&o().createElement("p",{className:R.bodyLong01},null==m?void 0:m.additionalInstruction[0].text))};var W=t(27042),H=t(50930);function Q(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const K=function(e){var n=e.encounterUuid,t=e.patientUuid,i=(0,l.useTranslation)().t,r=(0,a.useSession)(),p=(0,a.useConfig)(),d=(0,F.IQ)(n,p.refreshInterval),u=d.medicationRequestBundles,f=d.prescriptionDate,g=d.error,h=d.isLoading,y=function(e){return e.status===W.NV.completed?o().createElement(s.vwO,{type:"gray"},i("dispensed","Dispensed")):e.status===W.NV.on_hold?o().createElement(s.vwO,{type:"red"},i("paused","Paused")):e.status===W.NV.declined?o().createElement(s.vwO,{type:"red"},i("closed","Closed")):null},m=function(e,t){var r=(0,O.Qm)(t.request),o=(0,O.aC)(e,t,p.dispenseBehavior.restrictTotalQuantityDispensed);(0,O.gY)(n),(0,c._D)(e.id).then((function(){(0,a.showSnackbar)({kind:"success",title:i("success","Success"),subtitle:i("medicationDispenseDeleted","Medication dispense was deleted successfully")}),r!==o&&(0,F.NT)((0,O.vj)(e.authorizingPrescription[0].reference),o).then((function(){(0,O.Yi)(n)})).catch((function(){(0,a.showSnackbar)({kind:"error",title:i("updateStatusFailed","Update Status Failed"),subtitle:i("couldNotUpdateMedicationRequestStatus","Could not update medication request status")})})),(0,O.Yi)(n)})).catch((function(){(0,a.showSnackbar)({kind:"error",title:i("deleteFailed","Delete Failed"),subtitle:i("couldNotDeleteMedicationDispense","Could not delete medication dispense")})}))};return o().createElement("div",{className:j.historyAndCommentsContainer},h&&o().createElement(s.OOb,{role:"progressbar"}),g&&o().createElement("p",null,i("error","Error")),u&&u.flatMap((function(e){return e.dispenses})).sort(O.Fq).map((function(e){var l,c,d;return o().createElement("div",{key:e.id},o().createElement("h5",{style:{paddingTop:"8px",paddingBottom:"8px",fontSize:"0.9rem"}},e.performer&&(null===(c=e.performer[0])||void 0===c||null===(l=c.actor)||void 0===l?void 0:l.display)," ",(d=e).status===W.NV.completed?i("dispensedMedication","dispensed medication"):d.status===W.NV.on_hold?i("pausedDispense","paused dispense"):d.status===W.NV.declined?i("closedDispense","closed dispense"):null," -"," ",(0,a.formatDatetime)((0,a.parseDate)(e.whenHandedOver))),o().createElement(s.FAs,{className:j.dispenseTile},o().createElement(G,{medicationEvent:e,status:y(e)}),function(e,l){var c=function(e){return(null==e?void 0:e.user)&&(0,a.userHasAccess)(H.Zw,e.user)}(r),d=function(e,n){if(null==e?void 0:e.user){var t,i;if((0,a.userHasAccess)(H._8,e.user))return!0;if((0,a.userHasAccess)(H.ih,e.user)&&(null===(t=e.currentProvider)||void 0===t?void 0:t.uuid)&&null!==(null===(i=n.performer)||void 0===i?void 0:i.find((function(n){var t,a;return(null==n||null===(a=n.actor)||void 0===a||null===(t=a.reference)||void 0===t?void 0:t.length)>1&&n.actor.reference.split("/")[1]===e.currentProvider.uuid}))))return!0}return!1}(r,e);return c||d?o().createElement(s.obU,{"aria-label":i("medicationDispenseActionMenu","Medication Dispense Action Menu"),className:j.medicationEventActionMenu,flipped:!0},c&&o().createElement(s.XSD,{className:j.menuitem,itemText:i("editRecord","Edit record"),onClick:function(){var r=function(e,a){if(e.status===W.NV.completed){var i=null;p.dispenseBehavior.restrictTotalQuantityDispensed&&(i=(0,O.HP)(a)+((null==e?void 0:e.quantity)?e.quantity.value:0));var r=0;return a.dispenses&&(r=(0,O.ky)(a.dispenses)),{workspaceName:"dispense-workspace",props:{patientUuid:t,encounterUuid:n,medicationDispense:e,medicationRequestBundle:a,quantityRemaining:i,quantityDispensed:r,mode:"edit"}}}return e.status===W.NV.on_hold?{workspaceName:"pause-dispense-workspace",props:{patientUuid:t,encounterUuid:n,medicationDispense:e,mode:"edit"}}:e.status===W.NV.declined?{workspaceName:"close-dispense-workspace",props:{patientUuid:t,encounterUuid:n,medicationDispense:e,mode:"edit"}}:void 0}(e,l),o=r.workspaceName,s=r.props,c=function(e){return e.status===W.NV.completed?i("editDispenseRecord","Edit Dispense Record"):e.status===W.NV.on_hold?i("editPauseRecord","Edit Pause Record"):e.status===W.NV.declined?i("editCloseRecord","Edit Close Record"):void 0}(e);(0,a.launchWorkspace)(o,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){Q(e,n,t[n])}))}return e}({workspaceTitle:c},s))}}),d&&o().createElement(s.XSD,{className:j.menuitem,hasDivider:!0,isDelete:!0,itemText:i("delete","Delete"),onClick:function(){return function(e){var n=e.medicationDispense,t=e.medicationRequestBundle,r=(0,a.showModal)("delete-confirm-modal",{title:i("deleteDispenseRecord","Delete Dispense Record"),message:i("deleteDispenseRecordMessage","Are you sure you want to delete this dispense record?"),onDelete:function(){m(n,t),r()},onClose:function(){r()}})}({medicationDispense:e,medicationRequestBundle:l})}})):null}(e,(0,O.p8)(u,e))))})),u&&u.flatMap((function(e){return e.request})).map((function(e){return o().createElement("div",{key:e.id},o().createElement("h5",{style:{paddingTop:"8px",paddingBottom:"8px",fontSize:"0.9rem"}},e.requester.display," ",i("orderedMedication ","ordered medication")," -"," ",(0,a.formatDatetime)(f)),o().createElement(s.FAs,{className:j.requestTile},o().createElement(G,{medicationEvent:e,status:o().createElement(s.vwO,{type:"green"},i("ordered","Ordered"))})))})))};var J=t(5505),V={};V.styleTagTransform=v(),V.setAttributes=m(),V.insert=h().bind(null,"head"),V.domAPI=f(),V.insertStyleElement=$(),d()(J.A,V);const Y=J.A&&J.A.locals?J.A.locals:void 0;var Z=t(2383),X=t(86886),ee={};ee.styleTagTransform=v(),ee.setAttributes=m(),ee.insert=h().bind(null,"head"),ee.domAPI=f(),ee.insertStyleElement=$(),d()(X.A,ee);const ne=X.A&&X.A.locals?X.A.locals:void 0,te=function(e){var n=e.medicationRequestBundle,t=e.patientUuid,i=e.encounterUuid,r=e.disabled,s=(0,a.useConfig)(),l=(0,a.useSession)(),p=(0,c.u9)(s.dispenserProviderRoles),d=(0,O.Z_)(n.dispenses),u=(0,O.ox)(n.request,s.medicationRequestExpirationPeriodInDays),f=u===W.FA.active&&d!==W.NV.declined,g=s.actionButtons.pauseButton.enabled&&u===W.FA.active&&d!==W.NV.on_hold&&d!==W.NV.declined,h=s.actionButtons.closeButton.enabled&&u===W.FA.active&&d!==W.NV.declined,y=null;s.dispenseBehavior.restrictTotalQuantityDispensed&&(y=(0,O.HP)(n));var m=0;n.dispenses&&(m=(0,O.ky)(n.dispenses));var b={dispensable:f,pauseable:g,closeable:h,quantityRemaining:y,quantityDispensed:m,patientUuid:t,encounterUuid:i,medicationRequestBundle:n,session:l,providers:p,disabled:r};return o().createElement("div",{className:ne.actionBtns},o().createElement(a.ExtensionSlot,{className:ne.extensionSlot,name:"prescription-action-button-slot",state:b}))};var ae=t(49564);const ie=function(e){var n=e.encounterUuid,t=e.patientUuid,i=(0,l.useTranslation)().t,c=(0,r.useCallback)((function(){var e=(0,a.showModal)("prescription-print-preview-modal",{onClose:function(){return e()},encounterUuid:n,patientUuid:t})}),[n,t]);return o().createElement(s.$nd,{renderIcon:ae.xj,iconDescription:i("print","Print"),onClick:c,kind:"ghost"},i("printPrescriptions","Print prescriptions"))};var re=t(87063),oe={};oe.styleTagTransform=v(),oe.setAttributes=m(),oe.insert=h().bind(null,"head"),oe.domAPI=f(),oe.insertStyleElement=$(),d()(re.A,oe);const se=re.A&&re.A.locals?re.A.locals:void 0,le=function(e){var n=e.encounterUuid,t=e.patientUuid;return o().createElement(s.Wdr,{className:se.actionsContainer},o().createElement("div",{className:se.actionCluster},o().createElement(ie,{encounterUuid:n,patientUuid:t})),o().createElement("div",{className:se.actionCluster}))};var ce=t(67478),pe={};pe.styleTagTransform=v(),pe.setAttributes=m(),pe.insert=h().bind(null,"head"),pe.domAPI=f(),pe.insertStyleElement=$(),d()(ce.A,pe);const de=ce.A&&ce.A.locals?ce.A.locals:void 0;function ue(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}const fe=function(e){var n,t,i=e.encounterUuid,c=e.patientUuid,p=(0,l.useTranslation)().t,d=(0,a.useConfig)(),u=(n=(0,r.useState)(!0),t=2,function(e){if(Array.isArray(e))return e}(n)||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}}(n,t)||function(e,n){if(e){if("string"==typeof e)return ue(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)?ue(e,n):void 0}}(n,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.")}()),f=u[0],g=u[1],h=(0,F.PA)(c,d.refreshInterval),y=h.allergies,m=h.totalAllergies,b=(0,F.IQ)(i,d.refreshInterval),$=b.medicationRequestBundles,A=b.error,v=b.isLoading,_=(0,O.se)().staleEncounterUuids;return(0,r.useEffect)((function(){"number"==typeof m&&g(!1)}),[m]),o().createElement("div",{className:de.prescriptionContainer},f&&o().createElement(s.OOb,{role:"progressbar"}),!f&&o().createElement(s.FAs,{className:de.allergiesTile},o().createElement("div",{className:de.allergiesContent},o().createElement("div",null,o().createElement(Z.BF,{size:24,className:de.allergiesIcon}),o().createElement("p",null,m>0&&o().createElement("span",null,o().createElement("span",{style:{fontWeight:"bold"}},p("allergiesCount","{{ count }} allergies",{count:m}))," ",function(e){return e.map((function(e){return(0,O.R9)(e.code.coding)})).join(", ")}(y)),0===m&&p("noAllergyDetailsFound","No allergy details found"))))),o().createElement("h5",{style:{paddingTop:"8px",paddingBottom:"8px",fontSize:"0.9rem"}},p("prescribed","Prescribed")),v&&o().createElement(s.OOb,{role:"progressbar"}),A&&o().createElement("p",null,p("error","Error")),$&&$.map((function(e){return o().createElement(s.FAs,{className:de.prescriptionTile},o().createElement(a.UserHasAccess,{privilege:H.Bi},o().createElement(te,{patientUuid:c,encounterUuid:i,medicationRequestBundle:e,disabled:_.includes(i)})),o().createElement(G,{key:e.request.id,medicationEvent:e.request,status:(n=e.request,t=(0,O.Xs)(n,d.medicationRequestExpirationPeriodInDays),t===W._z.cancelled?o().createElement(s.vwO,{type:"red"},p("cancelled","Cancelled")):t===W._z.completed?o().createElement(s.vwO,{type:"green"},p("completed","Completed")):t===W._z.expired?o().createElement(s.vwO,{type:"red"},p("expired","Expired")):t===W._z.declined?o().createElement(s.vwO,{type:"red"},p("closed","Closed")):t===W._z.on_hold?o().createElement(s.vwO,{type:"red"},p("paused","Paused")):null)}));var n,t})),o().createElement(le,{encounterUuid:i,patientUuid:c}))},ge=function(e){var n=e.encounterUuid,t=e.patientUuid,i=(e.status,(0,l.useTranslation)().t),r=[{name:i("prescriptionDetails","Prescription details"),component:o().createElement(fe,{encounterUuid:n,patientUuid:t})},{name:i("conditionsAndDiagnoses","Conditions and diagnoses"),component:o().createElement(a.ExtensionSlot,{name:"dispensing-condition-and-diagnoses",state:{patientUuid:t,encounterUuid:n}})},{name:i("historyComments","History and comments"),component:o().createElement(K,{encounterUuid:n,patientUuid:t})}];return o().createElement("div",{className:Y.expandedTabsParentContainer},o().createElement("div",{className:Y.expandedTabsContainer},o().createElement(s.tUM,null,o().createElement(s.wbY,{"aria-label":i("tabList","Tab List")},r.map((function(e,n){return o().createElement(s.ozo,{key:n,className:Y.orderTabs},e.name)}))),o().createElement(s.T2N,null,r.map((function(e,n){return o().createElement(s.KpK,{key:n},e.component)}))))))};var he=t(62910),ye={};ye.styleTagTransform=v(),ye.setAttributes=m(),ye.insert=h().bind(null,"head"),ye.domAPI=f(),ye.insertStyleElement=$(),d()(he.A,ye);const me=he.A&&he.A.locals?he.A.locals:void 0;function be(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 $e(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ae(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)||_e(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.")}()}function ve(e){return function(e){if(Array.isArray(e))return be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_e(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.")}()}function _e(e,n){if(e){if("string"==typeof e)return be(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)?be(e,n):void 0}}const we=function(e){var n,t,i=e.loadData,c=e.debouncedSearchTerm,p=e.location,d=e.status,u=(0,l.useTranslation)().t,f=(0,a.useConfig)(),g=Ae((0,r.useState)(1),2),h=g[0],y=g[1],m=Ae((0,r.useState)(10),2),b=m[0],$=m[1],A=(h-1)*b,v=(0,F.JZ)(i,b,A,c,p,d,f.medicationRequestExpirationPeriodInDays,f.refreshInterval),_=v.prescriptionsTableRows,w=v.error,C=v.isLoading,x=v.totalOrders;(0,r.useEffect)((function(){y(1)}),[c]);var k=[{header:u("created","Created"),key:"created"},{header:u("patientName","Patient name"),key:"patient"},{header:u("prescriber","Prescriber"),key:"prescriber"},{header:u("drugs","Drugs"),key:"drugs"},{header:u("lastDispenser","Last dispenser"),key:"lastDispenser"},{header:u("status","Status"),key:"status"}];return(null===(t=f.locationBehavior)||void 0===t||null===(n=t.locationColumn)||void 0===n?void 0:n.enabled)&&(k=ve(k.slice(0,3)).concat([{header:u("location","Location"),key:"location"}],ve(k.slice(3)))),o().createElement("div",{className:me.patientListTableContainer},C&&o().createElement(s.OOb,{role:"progressbar"}),w&&o().createElement("p",null,"Error"),_&&o().createElement(o().Fragment,null,o().createElement(s.bQt,{rows:_,headers:k,isSortable:!0},(function(e){var n,t,i=e.rows,r=e.headers,l=e.getExpandHeaderProps,c=e.getHeaderProps,p=e.getRowProps,d=e.getTableProps;return o().createElement(s.K3K,null,o().createElement(s.XIK,(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){$e(e,n,t[n])}))}return e}({},d()),t=null!=(t={useZebraStyles:!0})?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n),o().createElement(s.ndF,null,o().createElement(s.Hjg,null,o().createElement(s.Uwq,l()),r.map((function(e){return o().createElement(s.A0N,c({header:e}),e.header)})))),o().createElement(s.BFY,null,i.map((function(e){return o().createElement(o().Fragment,{key:e.id},o().createElement(s.fZD,p({row:e}),e.cells.map((function(e){return o().createElement(s.nA6,{key:e.id},e.id.endsWith("created")?(0,a.formatDatetime)((0,a.parseDate)(e.value)):e.id.endsWith("patient")?o().createElement(q,{patient:e.value}):e.id.endsWith("status")?u(e.value):e.value)}))),e.isExpanded?o().createElement(s.cwJ,{colSpan:r.length+1},o().createElement(ge,{encounterUuid:e.id,patientUuid:e.cells.find((function(e){return e.id.endsWith("patient")})).value.uuid,status:e.cells.find((function(e){return e.id.endsWith("status")})).value})):o().createElement(s.cwJ,{className:me.hiddenRow,colSpan:r.length+2}))})))))})),0===(null==_?void 0:_.length)&&o().createElement("div",{className:me.filterEmptyState},o().createElement(s.Wdr,null,o().createElement(s.FAs,{className:me.filterEmptyStateTile},o().createElement("p",{className:me.filterEmptyStateContent},u("noPrescriptionsToDisplay","No prescriptions to display")),o().createElement("p",{className:me.filterEmptyStateHelper},u("checkFilters","Check the filters above"))))),(null==_?void 0:_.length)>0&&o().createElement("div",{style:{width:"100%"}},o().createElement(s.dKS,{page:h,pageSize:b,pageSizes:[10,20,30,40,50,100],totalItems:x,onChange:function(e){var n=e.page,t=e.pageSize;y(n),$(t)}}))))};function Ce(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 xe(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 Ce(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)?Ce(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 ke=function(e){var n,t,i=e.status,c=e.isTabActive,p=(0,l.useTranslation)().t,d=(0,a.useConfig)(),u=function(e){var n,t,i=(0,S.Ay)("".concat(a.fhirBaseUrl,"/Location?_tag=").concat(encodeURIComponent(e.locationBehavior.locationFilter.tag),"&_count=100"),a.openmrsFetch),r=i.data,o=i.error,s=null==r||null===(t=r.data)||void 0===t||null===(n=t.entry)||void 0===n?void 0:n.map((function(e){return{id:e.resource.id,name:e.resource.name}})).sort((function(e,n){return e.name.localeCompare(n.name)}));return{filterLocations:s,error:o,isLoading:!s&&!o}}(d),f=u.filterLocations,g=u.isLoading,h=xe((0,r.useState)(""),2),y=h[0],m=h[1],b=(0,a.useDebounce)(y,500),$=xe((0,r.useState)(""),2),A=$[0],v=$[1];return o().createElement(s.KpK,null,o().createElement("div",{className:me.searchContainer},o().createElement(s.vji,{closeButtonLabelText:p("clearSearchInput","Clear search input"),defaultValue:y,placeholder:p("searchByPatientIdOrName","Search by patient ID or name"),labelText:p("searchByPatientIdOrName","Search by patient ID or name"),onChange:function(e){e.preventDefault(),m(e.target.value)},size:"md",className:me.patientSearch}),(null===(t=d.locationBehavior)||void 0===t||null===(n=t.locationFilter)||void 0===n?void 0:n.enabled)&&!g&&(null==f?void 0:f.length)>1&&o().createElement(s.a32,{id:"locationFilter",placeholder:p("filterByLocation","Filter by location"),items:g?[]:f,itemToString:function(e){return null==e?void 0:e.name},onChange:function(e){var n=e.selectedItem;v(null==n?void 0:n.id)},className:me.locationFilter})),o().createElement(we,{loadData:c,status:i,debouncedSearchTerm:b,location:A}))};var ze=t(94588),Ee={};Ee.styleTagTransform=v(),Ee.setAttributes=m(),Ee.insert=h().bind(null,"head"),Ee.domAPI=f(),Ee.insertStyleElement=$(),d()(ze.A,Ee);const Me=ze.A&&ze.A.locals?ze.A.locals:void 0;function De(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 Be(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 De(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)?De(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 Te=function(){var e=(0,l.useTranslation)().t,n=Be((0,r.useState)(""),2),t=n[0],i=n[1],c=Be((0,r.useState)(""),2),p=c[0],d=c[1];return o().createElement(s.KpK,null,o().createElement("div",{className:Me.searchTabPanel},o().createElement("form",{className:Me.searchBar,onSubmit:function(e){e.preventDefault(),d(t)}},o().createElement(s.vji,{closeButtonLabelText:e("clearSearchInput","Clear search input"),defaultValue:t,placeholder:e("searchForPatient","Search for a patient by name or identifier number"),labelText:e("searchForPatient","Search for a patient by name or identifier number"),onChange:function(e){i(e.target.value)},onClear:function(){return d("")},size:"lg"}),o().createElement(s.$nd,{kind:"secondary",type:"submit"},e("search","Search"))),p?o().createElement(we,{loadData:!0,status:"ACTIVE",debouncedSearchTerm:p,location:""}):o().createElement("div",{className:Me.searchForPatientPlaceholder},o().createElement("div",null,o().createElement(a.PatientSearchPictogram,null),o().createElement("h5",null,e("searchForPatientHeader","Search for a patient")),o().createElement("div",null,e("searchForPatient","Search for a patient by name or identifier number"))))))};function Ne(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}const Se=function(){var e,n,t=(0,l.useTranslation)().t,a=(e=(0,r.useState)(0),n=2,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 Ne(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)?Ne(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.")}()),i=a[0],c=a[1];return o().createElement("main",{className:"omrs-main-content"},o().createElement("section",{className:me.prescriptionTabsContainer},o().createElement(s.tUM,{onChange:function(e){c(e.selectedIndex)}},o().createElement(s.wbY,{"aria-label":t("tabList","Tab List"),contained:!0,className:me.tabsContainer},o().createElement(s.ozo,{title:t("search","Search"),id:"tab-search",className:me.tab},t("search","Search")),o().createElement(s.ozo,{title:t("activePrescriptions","Active Prescriptions"),id:"tab-active-prescription",className:me.tab},t("activePrescriptions","Active Prescriptions")),o().createElement(s.ozo,{title:t("allPrescriptions","All Prescriptions"),id:"tab-all-prescription",className:me.tab},t("allPrescriptions","All Prescriptions"))),o().createElement(s.T2N,null,o().createElement(Te,null),o().createElement(ke,{isTabActive:1===i,status:"ACTIVE"}),o().createElement(ke,{isTabActive:2===i,status:""})))))};var qe=t(28651);function Ie(){var e=(0,l.useTranslation)().t,n="".concat(window.spaBase,"/home"),t=(0,r.useMemo)((function(){var e=location.pathname.split("/home"),n=e[e.length-1];return decodeURIComponent(n)}),[]);return o().createElement(a.ConfigurableLink,{className:k()("cds--side-nav__link",{"active-left-nav-link":t.match("dispensing")}),to:"".concat(n,"/dispensing")},e("dispensing","Dispensing"))}var Pe=t(57240),je=t(18140),Fe={};Fe.styleTagTransform=v(),Fe.setAttributes=m(),Fe.insert=h().bind(null,"head"),Fe.domAPI=f(),Fe.insertStyleElement=$(),d()(je.A,Fe);const Oe=je.A&&je.A.locals?je.A.locals:void 0,Ue=function(e){var n,t,i,c,p=e.excludedPrescription,d=e.medicationRequests,u=(0,l.useTranslation)().t,f=(0,a.useSession)().sessionLocation.display,g=null===(t=d[0])||void 0===t||null===(n=t.request)||void 0===n?void 0:n.subject,h=(0,r.useMemo)((function(){var e,n=new Set;return null==d||null===(e=d.filter((function(e){return!p.includes(e.request.id)})))||void 0===e||e.forEach((function(e){var t,a,i=null===(a=e.request)||void 0===a||null===(t=a.requester)||void 0===t?void 0:t.display;i&&n.add(i)})),n}),[d,p]),y=(0,r.useMemo)((function(){return(null==d?void 0:d.filter((function(e){return!p.includes(e.request.id)})))||[]}),[d,p]);return o().createElement(s.Wdr,{className:Oe.printOutContainer},o().createElement(s.r9c,null,o().createElement(s.GRJ,null,o().createElement(s.Cvq,{head:!0},o().createElement(s.Um2,{head:!0},o().createElement("br",null),o().createElement("br",null),o().createElement("p",{className:Oe.printoutTitle},u("prescriptionInstructions","Prescription instructions")),g&&o().createElement("p",{className:k()(Oe.patientName,Oe.faintText)},(c=g.display).includes("(")?c.split("(")[0]:c),o().createElement("br",null),o().createElement("br",null))),y.map((function(e){var n,t,i,r,l,c,p,d,f,g,h,y=e.request,m=(0,O.Gp)(y.dosageInstruction),b=(0,O.Qe)(y),$=(0,O.c1)(y);return o().createElement("div",{key:e.request.id},m&&o().createElement(s.Cvq,null,o().createElement(s.Um2,null,o().createElement("p",{className:Oe.medicationName},o().createElement("strong",null,(0,O.Q0)((0,O.H_)(y)))),o().createElement("br",null),o().createElement("p",null,o().createElement("span",{className:Oe.faintText},u("dose","Dose")),": ",o().createElement("span",{className:Oe.prescriptionInfo},null==m||null===(n=m.doseAndRate)||void 0===n?void 0:n.map((function(n,t){var a,i;return o().createElement("span",{className:Oe.prescriptionInfo,key:"dose-".concat(e.request.id,"-").concat(t)},null==n||null===(a=n.doseQuantity)||void 0===a?void 0:a.value," ",null==n||null===(i=n.doseQuantity)||void 0===i?void 0:i.unit)})))," ","—"," ",o().createElement("span",{className:Oe.prescriptionInfo},null==m||null===(t=m.route)||void 0===t?void 0:t.text," — ",null==m||null===(r=m.timing)||void 0===r||null===(i=r.code)||void 0===i?void 0:i.text,(null==m||null===(c=m.timing)||void 0===c||null===(l=c.repeat)||void 0===l?void 0:l.duration)?" ".concat(u("for","for")," ").concat(null==m||null===(d=m.timing)||void 0===d||null===(p=d.repeat)||void 0===p?void 0:p.duration," ").concat(null==m||null===(g=m.timing)||void 0===g||null===(f=g.repeat)||void 0===f?void 0:f.durationUnit):""),b&&o().createElement("div",null,o().createElement("span",{className:Oe.faintText},u("quantity","Quantity")),": ",o().createElement("span",{className:Oe.prescriptionInfo},b.value," ",b.unit))),o().createElement("p",null,o().createElement("span",{className:Oe.faintText},u("datePrescribed","Date prescribed")),": "," ",o().createElement("span",{className:Oe.prescriptionInfo},(0,a.formatDate)((0,a.parseDate)(e.request.authoredOn),{noToday:!0}))),o().createElement("p",null,o().createElement("span",{className:Oe.faintText},u("refills","Refills")),": "," ",o().createElement("span",{className:Oe.prescriptionInfo},$||0===$?$:u("noRefills","No refills"))),(null==m?void 0:m.text)&&o().createElement("p",null,m.text),(null==m||null===(h=m.additionalInstruction)||void 0===h?void 0:h.length)>0&&o().createElement("p",null,null==m?void 0:m.additionalInstruction.map((function(e){return e.text})).join(", ")))))})),h.size>0&&o().createElement("p",{className:Oe.prescriber},u("prescribedBy","Prescribed By"),":"," ",null===(i=Array.from(h.values()).map((function(e){var n;return null==e||null===(n=e.split("("))||void 0===n?void 0:n.at(0)})))||void 0===i?void 0:i.join(", ")),o().createElement("p",{className:Oe.facilityName},f))))};function Le(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}const Re=function(e){var n=e.medicationRequests,t=e.onExcludedPrescriptionChange,a=e.excludedPrescription,i=(0,l.useTranslation)().t,c=(0,r.useCallback)((function(e,n){var i;t(e?a.filter((function(e){return e!==n})):(i=a,function(e){if(Array.isArray(e))return Le(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,n){if(e){if("string"==typeof e)return Le(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)?Le(e,n):void 0}}(i)||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.")}()).concat([n]))}),[t,a]);return o().createElement("div",null,o().createElement("p",null,o().createElement("strong",null,i("selectPrescriptions","Check prescriptions to print"))),null==n?void 0:n.map((function(e){var n=e.request,t=(0,O.Gp)(n.dosageInstruction);return o().createElement("div",{key:n.id},t&&o().createElement(s.Sc0,{id:n.id,labelText:(0,O.Q0)((0,O.H_)(n)),checked:!a.includes(n.id),onChange:function(e,t){var a=t.checked;return c(a,n.id)}}))})))};function Ge(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 We(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 Ge(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)?Ge(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.")}()}var He=t(84767),Qe="@openmrs/esm-dispensing-app",Ke={featureName:"dispensing",moduleName:Qe};function Je(){(0,a.defineConfigSchema)(Qe,i)}var Ve=(0,a.getSyncLifecycle)((function(){var e=(0,a.useConfig)().leftNavMode,n=(0,a.useLayoutType)(),t=window.spaBase+"/dispensing";return(0,a.useLeftNav)({name:"homepage-dashboard-slot",basePath:t,mode:e}),o().createElement("div",{className:k()([(0,a.isDesktop)(n)?C.desktopContainer:"","normal"===e?C.hasLeftNav:""])},o().createElement(a.ExtensionSlot,{name:"dispensing-dashboard-slot"}),o().createElement(a.WorkspaceContainer,{key:"dispensing",contextKey:"dispensing"}))}),Ke),Ye=(0,a.getSyncLifecycle)((function(){var e=(0,l.useTranslation)().t;return o().createElement(a.ConfigurableLink,{to:H.p1},e("dispensing","Dispensing"))}),Ke),Ze=(0,a.getSyncLifecycle)((function(){var e=(0,a.useConfig)(),n=(0,l.useTranslation)().t;return e.dispenseBehavior.restrictTotalQuantityDispensed&&e.dispenseBehavior.allowModifyingPrescription?o().createElement("div",{className:"omrs-main-content"},o().createElement(s.jeF,{title:n("dispensingAppError","Dispensing App Error"),subtitle:n("dispensingAppMisconfigurationMessage","Please contact your system administration: Misconfiguration - 'restrictTotalQuantityDispensed' cannot be enabled if 'allowModifyingPrescription' is enabled.")})):o().createElement("div",{className:"omrs-main-content"},o().createElement(N,null),o().createElement(Se,null))}),Ke),Xe=(0,a.getSyncLifecycle)((function(){return o().createElement(qe.Kd,null,o().createElement(Ie,null))}),Ke),en=(0,a.getSyncLifecycle)((function(e){var n=e.patientUuid,t=e.encounterUuid,i=e.medicationRequestBundle,r=e.session,p=e.providers,d=e.closeable,u=e.disabled,f=(0,l.useTranslation)().t,g={patientUuid:n,encounterUuid:t,medicationDispense:(0,c.ux)(i.request,r,p,!1),mode:"enter"};return d?o().createElement(s.$nd,{kind:"danger",onClick:function(){(0,a.launchWorkspace)("close-dispense-workspace",g)},disabled:u},f("close","Close")):null}),Ke),nn=(0,a.getSyncLifecycle)((function(e){var n=e.patientUuid,t=e.encounterUuid,i=e.medicationRequestBundle,r=e.session,p=e.providers,d=e.dispensable,u=e.quantityRemaining,f=e.quantityDispensed,g=e.disabled,h=(0,l.useTranslation)().t,y={patientUuid:n,encounterUuid:t,medicationDispense:(0,c.ux)(i.request,r,p,!0),medicationRequestBundle:i,quantityRemaining:u,quantityDispensed:f,mode:"enter"};return d?o().createElement(s.$nd,{kind:"primary",onClick:function(){(0,a.launchWorkspace)("dispense-workspace",y)},disabled:g},h("dispense","Dispense")):null}),Ke),tn=(0,a.getSyncLifecycle)((function(e){var n=e.patientUuid,t=e.encounterUuid,i=e.medicationRequestBundle,r=e.session,p=e.providers,d=e.pauseable,u=e.disabled,f=(0,l.useTranslation)().t,g={patientUuid:n,encounterUuid:t,medicationDispense:(0,c.ux)(i.request,r,p,!1),mode:"enter"};return d?o().createElement(s.$nd,{kind:"secondary",onClick:function(){(0,a.launchWorkspace)("pause-dispense-workspace",g)},disabled:u},f("pause","Pause")):null}),Ke),an=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(609),t.e(963)]).then(t.bind(t,90963))}),Ke),rn=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(609),t.e(4099)]).then(t.bind(t,54099))}),Ke),on=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(609),t.e(6841)]).then(t.bind(t,26841))}),Ke),sn=(0,a.getSyncLifecycle)((function(e){var n=e.onClose,t=e.encounterUuid,i=(0,l.useTranslation)().t,c=(0,F.IQ)(t),p=c.medicationRequestBundles,d=c.error,u=c.isLoading,f=We((0,r.useState)([]),2),g=f[0],h=f[1],y=We((0,r.useState)(null),2),m=y[0],b=y[1],$=(0,r.useRef)(null),A=(0,Pe.useReactToPrint)({content:function(){return $.current},onBeforeGetContent:function(){b(null)},onPrintError:function(e){b(i("printError","An error occurred while printing. Please try again."))},copyStyles:!0});return o().createElement(o().Fragment,null,o().createElement(s.rQ0,{closeModal:n,className:Oe.title},i("printPrescriptions","Print prescriptions")),o().createElement(s.cwr,null,u&&o().createElement(s.OuH,{status:"active",iconDescription:"Loading",description:i("loading","Loading prescriptions")+"...."}),d&&o().createElement(a.ErrorState,{error:d,headerTitle:i("error","Error")}),!u&&(null==p?void 0:p.length)>0&&o().createElement("div",{className:Oe.printoutSelectorRow},o().createElement(Re,{medicationRequests:p,excludedPrescription:g,onExcludedPrescriptionChange:h}),o().createElement("div",{ref:$},o().createElement(Ue,{excludedPrescription:g,medicationRequests:p}))),m&&o().createElement(s.jeF,{kind:"error",title:i("printErrorTitle","Print Error"),subtitle:m})),o().createElement(s.jlY,null,o().createElement(s.Te$,{className:Oe.btnSet},o().createElement(s.$nd,{kind:"secondary",onClick:n,type:"button"},(0,a.getCoreTranslation)("cancel","Cancel")),o().createElement(s.$nd,{kind:"primary",onClick:A,type:"button",disabled:u},i("print","Print")))))}),Ke),ln=(0,a.getAsyncLifecycle)((function(){return t.e(5897).then(t.bind(t,15897))}),Ke),cn=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(1354),t.e(8600)]).then(t.bind(t,58600))}),Ke),pn=(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(1354),t.e(2898)]).then(t.bind(t,52898))}),Ke)},62910:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),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-dispensing__prescriptions__link___nh1F1{text-decoration:none}.-esm-dispensing__prescriptions__breadcrumbsSlot___s3KgQ{grid-row:1/2;grid-column:1/2}.-esm-dispensing__prescriptions__prescriptionTabsContainer___nXUfg{height:100%;width:100%}.-esm-dispensing__prescriptions__prescriptionTabsContainer___nXUfg .cds--tab-content{padding:0 !important}.-esm-dispensing__prescriptions__newListButton___cGpxv{width:fit-content;justify-self:end;align-self:center}.-esm-dispensing__prescriptions__tabsContainer___74mkw{background-color:#fff;padding:0 1rem}.-esm-dispensing__prescriptions__tabsContainer___74mkw .cds--tabs__nav-item--selected{box-shadow:inset 0 .125rem 0 0 var(--brand-03) !important}.-esm-dispensing__prescriptions__tabsContainer___74mkw .cds--tab--list button{max-width:12rem !important}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6{grid-row:3/4;grid-column:1/2;height:100%;margin:0 1rem;background-color:#f4f4f4;border:.5px solid #e0e0e0}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--data-table-container{padding-top:0 !important}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 tbody>tr>:nth-child(2){white-space:nowrap}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--data-table td{height:unset !important}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--data-table--zebra tbody tr[data-parent-row]:nth-child(4n+1) td{background-color:#fff;border-bottom:1px solid #e0e0e0;border-top:1px solid #e0e0e0}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--data-table--zebra tbody tr[data-parent-row]:nth-child(4n+3) td{background-color:#f4f4f4;border-bottom:1px solid #e0e0e0}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--pagination{border-top:none !important}.-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6 .cds--table-expand__button{height:2rem !important}.-esm-dispensing__prescriptions__searchContainer___J0rpK{display:flex;align-items:center;flex-direction:row-reverse;padding:1rem 1rem 0}.-esm-dispensing__prescriptions__searchContainer___J0rpK .cds--search-magnifier-icon{z-index:0 !important}.-esm-dispensing__prescriptions__searchContainer___J0rpK input{background-color:#fff}.-esm-dispensing__prescriptions__addPrescriptionBtn___KF0Z3{width:10rem !important;padding:1rem !important;margin-left:1rem;margin-right:1rem}.-esm-dispensing__prescriptions__patientSearch___4Loxt{width:25rem;border-bottom-color:#e0e0e0}.-esm-dispensing__prescriptions__locationFilter___znalM{width:25rem}.-esm-dispensing__prescriptions__search___56gcv{width:100%;max-width:16rem;background-color:#fff;border-bottom-color:#e0e0e0}.-esm-dispensing__prescriptions__hiddenRow___r6JbH{display:none}.-esm-dispensing__prescriptions__filterEmptyState___y0ZGb{display:flex;justify-content:center;align-items:center;padding:3rem;text-align:center;background-color:#fff}.-esm-dispensing__prescriptions__filterEmptyStateTile___14jtq{margin:auto;background-color:#f4f4f4}.-esm-dispensing__prescriptions__filterEmptyStateContent___7CgxQ{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252;margin-bottom:.5rem}.-esm-dispensing__prescriptions__filterEmptyStateHelper___AQsYs{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);color:#525252}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/prescriptions/prescriptions.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,8CACE,oBAAA,CAGF,yDACE,YAAA,CACA,eAAA,CAGF,mEACE,WAAA,CACA,UAAA,CAEA,qFACE,oBAAA,CAIJ,uDACE,iBAAA,CACA,gBAAA,CACA,iBAAA,CAGF,uDACE,qBD1BM,CC2BN,cAAA,CAEA,sFACE,yDAAA,CAGF,8EACE,0BAAA,CAIJ,mEACE,YAAA,CACA,eAAA,CACA,WAAA,CACA,aAAA,CACA,wBD5CM,CC6CN,yBAAA,CAEA,8FACE,wBAAA,CAGF,0FACE,kBAAA,CAGF,uFACE,uBAAA,CAGF,wIACE,qBD3DI,CC4DJ,+BAAA,CACA,4BAAA,CAGF,wIACE,wBDlEI,CCmEJ,+BAAA,CAGF,oFACE,0BAAA,CAGF,8FACE,sBAAA,CAIJ,yDACE,YAAA,CACA,kBAAA,CACA,0BAAA,CACA,mBAAA,CAEA,qFACE,oBAAA,CAGF,+DACE,qBAAA,CAIJ,4DACE,sBAAA,CACA,uBAAA,CACA,gBCpEW,CDqEX,iBCrEW,CDwEb,uDACE,WAAA,CACA,2BDrGM,CCwGR,wDACE,WAAA,CAGF,gDACE,UAAA,CACA,eAAA,CACA,qBDhHM,CCiHN,2BDhHM,CCmHR,mDACE,YAAA,CAGF,0DACE,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,YC5EW,CD6EX,iBAAA,CACA,qBD9HM,CCiIR,8DACE,WAAA,CACA,wBDpIM,CCuIR,iEEytBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFvtBF,aDpIQ,CCqIR,mBCvHW,CD0Hb,gEEmtBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CFjtBF,aD1IQ",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.link {\n text-decoration: none;\n}\n\n.breadcrumbsSlot {\n grid-row: 1 / 2;\n grid-column: 1 / 2;\n}\n\n.prescriptionTabsContainer {\n height: 100%;\n width: 100%;\n\n :global(.cds--tab-content) {\n padding: 0 !important;\n }\n}\n\n.newListButton {\n width: fit-content;\n justify-self: end;\n align-self: center;\n}\n\n.tabsContainer {\n background-color: $ui-02;\n padding: 0 layout.$spacing-05;\n\n :global(.cds--tabs__nav-item--selected) {\n box-shadow: inset 0 layout.$spacing-01 0 0 var(--brand-03) !important;\n }\n\n :global(.cds--tab--list) button {\n max-width: 12rem !important;\n }\n}\n\n.patientListTableContainer {\n grid-row: 3 / 4;\n grid-column: 1 / 2;\n height: 100%;\n margin: 0 layout.$spacing-05;\n background-color: $ui-01;\n border: 0.5px solid #e0e0e0;\n\n :global(.cds--data-table-container) {\n padding-top: 0 !important;\n }\n\n tbody > tr > :nth-child(2) {\n white-space: nowrap;\n }\n\n :global(.cds--data-table td) {\n height: unset !important;\n }\n\n :global(.cds--data-table--zebra) tbody tr[data-parent-row]:nth-child(4n + 1) td {\n background-color: $ui-02;\n border-bottom: 1px solid $ui-03;\n border-top: 1px solid $ui-03;\n }\n\n :global(.cds--data-table--zebra) tbody tr[data-parent-row]:nth-child(4n + 3) td {\n background-color: $ui-01;\n border-bottom: 1px solid $ui-03;\n }\n\n :global(.cds--pagination) {\n border-top: none !important;\n }\n\n :global(.cds--table-expand__button) {\n height: layout.$spacing-07 !important;\n }\n}\n\n.searchContainer {\n display: flex;\n align-items: center;\n flex-direction: row-reverse;\n padding: layout.$spacing-05 layout.$spacing-05 0;\n\n :global(.cds--search-magnifier-icon) {\n z-index: 0 !important;\n }\n\n input {\n background-color: #fff;\n }\n}\n\n.addPrescriptionBtn {\n width: layout.$spacing-13 !important;\n padding: layout.$spacing-05 !important;\n margin-left: layout.$spacing-05;\n margin-right: layout.$spacing-05;\n}\n\n.patientSearch {\n width: 25rem;\n border-bottom-color: $ui-03;\n}\n\n.locationFilter {\n width: 25rem;\n}\n\n.search {\n width: 100%;\n max-width: 16rem;\n background-color: $ui-02;\n border-bottom-color: $ui-03;\n}\n\n.hiddenRow {\n display: none;\n}\n\n.filterEmptyState {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: layout.$spacing-09;\n text-align: center;\n background-color: $ui-02;\n}\n\n.filterEmptyStateTile {\n margin: auto;\n background-color: $ui-01;\n}\n\n.filterEmptyStateContent {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n margin-bottom: layout.$spacing-03;\n}\n\n.filterEmptyStateHelper {\n @include type.type-style('body-compact-01');\n color: $text-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={link:"-esm-dispensing__prescriptions__link___nh1F1",breadcrumbsSlot:"-esm-dispensing__prescriptions__breadcrumbsSlot___s3KgQ",prescriptionTabsContainer:"-esm-dispensing__prescriptions__prescriptionTabsContainer___nXUfg",newListButton:"-esm-dispensing__prescriptions__newListButton___cGpxv",tabsContainer:"-esm-dispensing__prescriptions__tabsContainer___74mkw",patientListTableContainer:"-esm-dispensing__prescriptions__patientListTableContainer___dKqZ6",searchContainer:"-esm-dispensing__prescriptions__searchContainer___J0rpK",addPrescriptionBtn:"-esm-dispensing__prescriptions__addPrescriptionBtn___KF0Z3",patientSearch:"-esm-dispensing__prescriptions__patientSearch___4Loxt",locationFilter:"-esm-dispensing__prescriptions__locationFilter___znalM",search:"-esm-dispensing__prescriptions__search___56gcv",hiddenRow:"-esm-dispensing__prescriptions__hiddenRow___r6JbH",filterEmptyState:"-esm-dispensing__prescriptions__filterEmptyState___y0ZGb",filterEmptyStateTile:"-esm-dispensing__prescriptions__filterEmptyStateTile___14jtq",filterEmptyStateContent:"-esm-dispensing__prescriptions__filterEmptyStateContent___7CgxQ",filterEmptyStateHelper:"-esm-dispensing__prescriptions__filterEmptyStateHelper___AQsYs"};const s=o},64046:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),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-dispensing__medication-event__medicationName___S4P0B{font-size:1rem !important}.-esm-dispensing__medication-event__bodyLong01___SfU-3{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px);font-size:13px !important}.-esm-dispensing__medication-event__label01___B9D4H{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}.-esm-dispensing__medication-event__dosage___foiIZ,.-esm-dispensing__medication-event__quantity___SLQEY,.-esm-dispensing__medication-event__refills___5LLBD{color:#525252;font-weight:bold}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/components/medication-event.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,2DACE,yBAAA,CAGF,uDC01BI,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CDx1BF,yBAAA,CAGF,oDCq1BI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CDj1BJ,4JAGE,aDbQ,CCcR,gBAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.medicationName {\n font-size: layout.$spacing-05 !important;\n}\n\n.bodyLong01 {\n @include type.type-style('body-01');\n font-size: 13px !important;\n}\n\n.label01 {\n @include type.type-style('label-01');\n}\n\n.dosage,\n.quantity,\n.refills {\n color: $text-02;\n font-weight: bold;\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={medicationName:"-esm-dispensing__medication-event__medicationName___S4P0B",bodyLong01:"-esm-dispensing__medication-event__bodyLong01___SfU-3",label01:"-esm-dispensing__medication-event__label01___B9D4H",dosage:"-esm-dispensing__medication-event__dosage___foiIZ",quantity:"-esm-dispensing__medication-event__quantity___SLQEY",refills:"-esm-dispensing__medication-event__refills___5LLBD"};const s=o},67478:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),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-dispensing__prescription-details__prescriptionTile___wvAJ0{width:100%;margin:.125rem 0 .5rem;padding:0;background-color:#fff;border-left:.25rem solid var(--brand-03);color:#525252;margin-bottom:1rem !important}.-esm-dispensing__prescription-details__prescriptionContainer___g0U1R{display:flex;flex-direction:column;max-width:80%;margin-bottom:1rem}.-esm-dispensing__prescription-details__prescriptionContainer___g0U1R.cds--tile{min-height:3rem !important;padding-left:10px !important}.-esm-dispensing__prescription-details__prescriptionContainer___g0U1R>.cds--tile{min-height:3rem !important;padding-left:10px !important;margin:auto}.-esm-dispensing__prescription-details__allergiesTile___YUpd1{height:1.5rem;padding:0 .5rem 0 0;border-left:.25rem solid #f1c21b;background-color:rgba(253,209,58,.3);margin:auto;width:100%}.-esm-dispensing__prescription-details__allergiesContent___gU7aG{margin:auto;min-width:100%;height:100%;display:flex;align-items:center}.-esm-dispensing__prescription-details__allergiesContent___gU7aG div{align-items:center;display:flex;flex-direction:row;width:100%}.-esm-dispensing__prescription-details__allergiesContent___gU7aG p{margin-left:10px;font-size:.9rem;width:80%}.-esm-dispensing__prescription-details__allergiesContent___gU7aG a{margin:auto;color:#0f62fe;text-decoration:none;text-align:right}svg.-esm-dispensing__prescription-details__allergiesIcon___JMdna{fill:#f1c21b;vertical-align:middle}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/prescriptions/prescription-details.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,iEACE,UAAA,CACA,sBAAA,CACA,SAAA,CACA,qBAAA,CACA,wCAAA,CACA,aDHQ,CCIR,6BAAA,CAGF,sEACE,YAAA,CACA,qBAAA,CACA,aAAA,CACA,kBCaW,CDXX,gFACE,0BAAA,CACA,4BAAA,CAIJ,iFACE,0BAAA,CACA,4BAAA,CACA,WAAA,CAGF,8DACE,aCGW,CDFX,mBAAA,CACA,gCAAA,CACA,oCAAA,CACA,WAAA,CACA,UAAA,CAGF,iEACE,WAAA,CACA,cAAA,CACA,WAAA,CACA,YAAA,CACA,kBAAA,CAEA,qEACE,kBAAA,CACA,YAAA,CACA,kBAAA,CACA,UAAA,CAGF,mEACE,gBAAA,CACA,eAAA,CACA,SAAA,CAGF,mEACE,WAAA,CACA,aAAA,CACA,oBAAA,CACA,gBAAA,CAIJ,iEACE,YAAA,CACA,qBAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.prescriptionTile {\n width: 100%;\n margin: layout.$spacing-01 0 layout.$spacing-03;\n padding: 0;\n background-color: #fff;\n border-left: layout.$spacing-02 solid var(--brand-03);\n color: $text-02;\n margin-bottom: layout.$spacing-05 !important;\n}\n\n.prescriptionContainer {\n display: flex;\n flex-direction: column;\n max-width: 80%;\n margin-bottom: layout.$spacing-05;\n\n &:global(.cds--tile) {\n min-height: 3rem !important;\n padding-left: 10px !important;\n }\n}\n\n.prescriptionContainer > :global(.cds--tile) {\n min-height: 3rem !important;\n padding-left: 10px !important;\n margin: auto;\n}\n\n.allergiesTile {\n height: layout.$spacing-06;\n padding: 0 layout.$spacing-03 0 0;\n border-left: layout.$spacing-02 solid #f1c21b;\n background-color: rgba(253, 209, 58, 0.3);\n margin: auto;\n width: 100%;\n}\n\n.allergiesContent {\n margin: auto;\n min-width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n\n div {\n align-items: center;\n display: flex;\n flex-direction: row;\n width: 100%;\n }\n\n p {\n margin-left: 10px;\n font-size: 0.9rem;\n width: 80%;\n }\n\n a {\n margin: auto;\n color: #0f62fe;\n text-decoration: none;\n text-align: right;\n }\n}\n\nsvg.allergiesIcon {\n fill: #f1c21b;\n vertical-align: middle;\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={prescriptionTile:"-esm-dispensing__prescription-details__prescriptionTile___wvAJ0",prescriptionContainer:"-esm-dispensing__prescription-details__prescriptionContainer___g0U1R",allergiesTile:"-esm-dispensing__prescription-details__allergiesTile___YUpd1",allergiesContent:"-esm-dispensing__prescription-details__allergiesContent___gU7aG",allergiesIcon:"-esm-dispensing__prescription-details__allergiesIcon___JMdna"};const s=o},84767:(e,n,t)=>{var a={"./am.json":[81197,1197],"./ar.json":[14132,4132],"./ar_SY.json":[37617,7617],"./bn.json":[77159,7159],"./de.json":[34944,4944],"./en.json":[34300,4300],"./en_US.json":[59569,9569],"./es.json":[93099,3099],"./es_MX.json":[88349,8349],"./fr.json":[94055,4055],"./he.json":[84652,4652],"./hi.json":[36840,6840],"./hi_IN.json":[55442,5442],"./id.json":[72690,2690],"./it.json":[9538,9538],"./ka.json":[70795,795],"./km.json":[54335,4335],"./ku.json":[9895,9895],"./ky.json":[88163,8163],"./lg.json":[64618,4618],"./ne.json":[12146,2146],"./pl.json":[41119,1119],"./pt.json":[96679,6679],"./pt_BR.json":[36468,6468],"./qu.json":[35173,5173],"./ro_RO.json":[46022,6022],"./ru_RU.json":[60986,986],"./si.json":[56859,6859],"./sw.json":[89913,9913],"./sw_KE.json":[88618,8618],"./tr.json":[55241,5241],"./tr_TR.json":[99900,9900],"./uk.json":[60723,723],"./uz.json":[43584,3584],"./uz@Latn.json":[27097,7097],"./uz_UZ.json":[70890,890],"./vi.json":[79214,9214],"./zh.json":[35661,5661],"./zh_CN.json":[99879,9879]};function i(e){if(!t.o(a,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=a[e],i=n[0];return t.e(n[1]).then((()=>t(i)))}i.keys=()=>Object.keys(a),i.id=84767,e.exports=i},85316:(e,n,t)=>{"use strict";t.d(n,{IQ:()=>g,JZ:()=>f,NT:()=>m,PA:()=>h,uc:()=>y});var a=t(92177),i=t(25987),r=t(9806),o=t(70231),s=t.n(o),l=t(50930),c=t(16072);function p(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 d(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function u(e){return function(e){if(Array.isArray(e))return p(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 p(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)?p(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.")}()}function f(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",p=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",d=arguments.length>6?arguments[6]:void 0,f=arguments.length>7?arguments[7]:void 0,g=(0,a.Ay)(e?"ACTIVE"===p?(0,r.f4)(o,t,s()(new Date).startOf("day").subtract(d,"day").toISOString(),l,c):(0,r.Go)(o,t,l,c):null,i.openmrsFetch,{refreshInterval:f}),h=g.data,y=g.error;if(h){var m=null==h?void 0:h.data.entry;if(m){var b=m.filter((function(e){var n;return"Encounter"==(null==e||null===(n=e.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource})),$=m.filter((function(e){var n;return"MedicationRequest"==(null==e||null===(n=e.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource})),A=m.filter((function(e){var n;return"MedicationDispense"==(null==e||null===(n=e.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource})).sort(r.Fq);n=b.map((function(e){var n=$.filter((function(n){return n.encounter.reference=="Encounter/"+e.id})),t=n.map((function(e){return"MedicationRequest/"+e.id})),a=A.filter((function(e){var n;return t.includes(null===(n=e.authorizingPrescription[0])||void 0===n?void 0:n.reference)}));return function(e,n,t,a){var i,o,s,l,c,p,d,f;return{id:null==e?void 0:e.id,created:null==e||null===(i=e.period)||void 0===i?void 0:i.start,patient:{name:null==e||null===(o=e.subject)||void 0===o?void 0:o.display,uuid:null==e||null===(l=e.subject)||void 0===l||null===(s=l.reference)||void 0===s?void 0:s.split("/")[1]},drugs:u(new Set(n.map((function(e){return(0,r.Q0)((0,r.H_)(e))})).sort((function(e,n){return e.localeCompare(n)})))).join("; "),lastDispenser:t&&(null===(c=t[0])||void 0===c?void 0:c.performer)&&(null===(d=t[0])||void 0===d||null===(p=d.performer[0])||void 0===p?void 0:p.actor.display),prescriber:u(new Set(n.map((function(e){return e.requester.display})))).join(", "),status:(0,r.oK)(n,a),location:(null==e?void 0:e.location)?null==e||null===(f=e.location[0])||void 0===f?void 0:f.location.display:null}}(e,n,a,d)})),n.sort((function(e,n){return e.created<n.created?1:-1}))}else n=[]}return{prescriptionsTableRows:n,error:y,isLoading:!n&&!y,totalOrders:null==h?void 0:h.data.total}}function g(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=(0,a.Ay)((0,r.Yo)(e),i.openmrsFetch,{refreshInterval:n}),o=t.data,s=function(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t,a,i={},r=Object.keys(e);for(a=0;a<r.length;a++)t=r[a],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)t=r[a],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(t,["data"]),l=(0,c.useMemo)((function(){var e,n=[];if(o){var t=null==o?void 0:o.data.entry,a=null==t?void 0:t.filter((function(e){var n;return"Encounter"==(null==e||null===(n=e.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource}));if(a){var s;e=(0,i.parseDate)(null===(s=a[0])||void 0===s?void 0:s.period.start);var l=null==t?void 0:t.filter((function(e){var n;return"MedicationRequest"==(null==e||null===(n=e.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource})),c=null==t?void 0:t.filter((function(e){var n;return"MedicationDispense"==(null==e||null===(n=e.resource)||void 0===n?void 0:n.resourceType)})).map((function(e){return e.resource})).sort(r.Fq);l.every((function(e){return n.push({request:e,dispenses:(0,r.CL)(e,c).sort(r.Fq)})}))}}return{medicationRequestBundles:n,prescriptionDate:e}}),[o]);return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){d(e,n,t[n])}))}return e}({medicationRequestBundles:l.medicationRequestBundles,prescriptionDate:l.prescriptionDate},s)}function h(e,n){var t=(0,a.Ay)("".concat(i.fhirBaseUrl,"/AllergyIntolerance?patient=").concat(e),i.openmrsFetch,{refreshInterval:n}),r=t.data,o=t.error,s=[];if(r){var l=null==r?void 0:r.data.entry;null==l||l.map((function(e){return s.push(e.resource)}))}return{allergies:s,totalAllergies:null==r?void 0:r.data.total,error:o}}function y(e,n){e=e?e.startsWith("MedicationRequest")?e:"MedicationRequest/".concat(e):null;var t=(0,a.Ay)(e?"".concat(i.fhirBaseUrl,"/").concat(e):null,i.openmrsFetch,{refreshInterval:n}).data;return{medicationRequest:t?t.data:null}}function m(e,n){var t="".concat(i.fhirBaseUrl,"/MedicationRequest/").concat(e);return(0,i.openmrsFetch)(t,{method:"PATCH",headers:{"Content-Type":l.w9},body:{extension:[{url:l.Yj,valueCode:n}]}})}},86886:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),o=t.n(r)()(i());o.push([e.id,".-esm-dispensing__action-buttons__actionBtns___W\\+gb3{position:absolute;bottom:0;right:0;display:flex;gap:0}.-esm-dispensing__action-buttons__extensionSlot___H\\+\\+9z{display:flex;flex-direction:row-reverse;justify-content:space-between;height:100%;position:relative}","",{version:3,sources:["webpack://./src/components/action-buttons.scss"],names:[],mappings:"AAAA,sDACE,iBAAA,CACA,QAAA,CACA,OAAA,CACA,YAAA,CACA,KAAA,CAGF,0DACE,YAAA,CACA,0BAAA,CACA,6BAAA,CACA,WAAA,CACA,iBAAA",sourcesContent:[".actionBtns {\n position: absolute;\n bottom: 0;\n right: 0;\n display: flex;\n gap: 0;\n}\n\n.extensionSlot {\n display: flex;\n flex-direction: row-reverse;\n justify-content: space-between;\n height: 100%;\n position: relative;\n}\n"],sourceRoot:""}]),o.locals={actionBtns:"-esm-dispensing__action-buttons__actionBtns___W+gb3",extensionSlot:"-esm-dispensing__action-buttons__extensionSlot___H++9z"};const s=o},87063:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),o=t.n(r)()(i());o.push([e.id,".-esm-dispensing__prescription-actions__actionsContainer___ZjLDP{flex-direction:row;display:flex;justify-content:space-between}.-esm-dispensing__prescription-actions__actionCluster___L5NEE{gap:.5rem;display:flex;flex-direction:row}","",{version:3,sources:["webpack://./src/prescriptions/prescription-actions.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAGA,iEACE,kBAAA,CACA,YAAA,CACA,6BAAA,CAGF,8DACE,SCWW,CDVX,YAAA,CACA,kBAAA",sourcesContent:["@use '@carbon/colors';\n@use '@carbon/layout';\n\n.actionsContainer {\n flex-direction: row;\n display: flex;\n justify-content: space-between;\n}\n\n.actionCluster {\n gap: layout.$spacing-03;\n display: flex;\n flex-direction: row;\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={actionsContainer:"-esm-dispensing__prescription-actions__actionsContainer___ZjLDP",actionCluster:"-esm-dispensing__prescription-actions__actionCluster___L5NEE"};const s=o},94588:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),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-dispensing__patient-search-tab-panel__searchTabPanel___pAwwP{display:flex;flex-direction:column;margin:1rem .75rem;gap:1rem}.-esm-dispensing__patient-search-tab-panel__searchForPatientPlaceholder___bK5iM{display:flex;justify-content:center;align-items:center;text-align:center;min-height:400px;flex:1;border:solid 1px #e0e0e0}.-esm-dispensing__patient-search-tab-panel__searchBar___wfwtr{display:flex}.-esm-dispensing__patient-search-tab-panel__searchBar___wfwtr input{background-color:#fff}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/prescriptions/patient-search-tab-panel.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CC1DF,mEACE,YAAA,CACA,qBAAA,CACA,kBAAA,CACA,QCwBW,CDrBb,gFACE,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,iBAAA,CACA,gBAAA,CACA,MAAA,CACA,wBAAA,CAGF,8DAIE,YAAA,CAHA,oEACE,qBDnBI",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '~@openmrs/esm-styleguide/src/vars' as *;\n\n.searchTabPanel {\n display: flex;\n flex-direction: column;\n margin: layout.$spacing-05 layout.$spacing-04;\n gap: layout.$spacing-05;\n}\n\n.searchForPatientPlaceholder {\n display: flex;\n justify-content: center;\n align-items: center;\n text-align: center;\n min-height: 400px;\n flex: 1;\n border: solid 1px $grey-2;\n}\n\n.searchBar {\n input {\n background-color: $ui-02;\n }\n display: flex;\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={searchTabPanel:"-esm-dispensing__patient-search-tab-panel__searchTabPanel___pAwwP",searchForPatientPlaceholder:"-esm-dispensing__patient-search-tab-panel__searchForPatientPlaceholder___bK5iM",searchBar:"-esm-dispensing__patient-search-tab-panel__searchBar___wfwtr"};const s=o},98003:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(54991),i=t.n(a),r=t(76314),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-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l{max-width:80%}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l form{display:flex;flex-flow:row wrap;align-items:center}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l form input{vertical-align:middle;margin:0 .625rem 0 0;padding:.625rem;border:1px solid #8d8d8d !important;background-color:#fff}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l form button{width:90px;height:1.25rem;min-height:2.5rem !important}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l form .cds--btn--ghost{width:8rem !important}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l .-esm-dispensing__history-and-comments__requestTile___tV2US{width:100%;margin:.125rem 0 .5rem;padding:0 .5rem 0 .5rem;background-color:#fff;border-left:.5rem solid var(--brand-03);color:#525252;margin-bottom:1rem !important}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l .-esm-dispensing__history-and-comments__dispenseTile___Pc-Pr{display:flex;justify-content:space-between;width:100%;margin:.125rem 0 .5rem;padding:0 0 0 .5rem;background-color:#fff;border-left:.5rem solid red;color:#525252;margin-bottom:1rem !important}.-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l .-esm-dispensing__history-and-comments__medicationEventActionMenu___ejiqe{float:right}.-esm-dispensing__history-and-comments__menuitem___uqUc6{max-width:none}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/history/history-and-comments.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,4EACE,aAAA,CAEA,iFACE,YAAA,CACA,kBAAA,CACA,kBAAA,CAGF,uFACE,qBAAA,CACA,oBAAA,CACA,eAAA,CACA,mCAAA,CACA,qBAAA,CAEF,wFACE,UAAA,CACA,cAAA,CACA,4BAAA,CAGF,kGACE,qBAAA,CAGF,wIACE,UAAA,CACA,sBAAA,CACA,uBAAA,CACA,qBAAA,CACA,uCAAA,CACA,aD7BM,CC8BN,6BAAA,CAGF,yIACE,YAAA,CACA,6BAAA,CACA,UAAA,CACA,sBAAA,CACA,mBAAA,CACA,qBAAA,CACA,2BAAA,CACA,aDzCM,CC0CN,6BAAA,CAGF,sJACE,WAAA,CAIJ,yDACE,cAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.historyAndCommentsContainer {\n max-width: 80%;\n\n form {\n display: flex;\n flex-flow: row wrap;\n align-items: center;\n }\n\n form input {\n vertical-align: middle;\n margin: 0 0.625rem 0 0;\n padding: 0.625rem;\n border: 1px solid #8d8d8d !important;\n background-color: white;\n }\n form button {\n width: 90px;\n height: 1.25rem;\n min-height: layout.$spacing-08 !important;\n }\n\n form :global(.cds--btn--ghost) {\n width: 8rem !important;\n }\n\n .requestTile {\n width: 100%;\n margin: layout.$spacing-01 0 layout.$spacing-03;\n padding: 0 layout.$spacing-03 0 layout.$spacing-03;\n background-color: #fff;\n border-left: layout.$spacing-03 solid var(--brand-03);\n color: $text-02;\n margin-bottom: layout.$spacing-05 !important;\n }\n\n .dispenseTile {\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin: layout.$spacing-01 0 layout.$spacing-03;\n padding: 0 0 0 layout.$spacing-03;\n background-color: #fff;\n border-left: layout.$spacing-03 solid red;\n color: $text-02;\n margin-bottom: layout.$spacing-05 !important;\n }\n\n .medicationEventActionMenu {\n float: right;\n }\n}\n\n.menuitem {\n max-width: none;\n}\n"],sourceRoot:""}]),o.locals={historyAndCommentsContainer:"-esm-dispensing__history-and-comments__historyAndCommentsContainer___LN9-l",requestTile:"-esm-dispensing__history-and-comments__requestTile___tV2US",dispenseTile:"-esm-dispensing__history-and-comments__dispenseTile___Pc-Pr",medicationEventActionMenu:"-esm-dispensing__history-and-comments__medicationEventActionMenu___ejiqe",menuitem:"-esm-dispensing__history-and-comments__menuitem___uqUc6"};const s=o}}]);
|