@kenyaemr/esm-appointments-app 8.1.2-pre.216 → 8.1.2-pre.218
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/dist/174.js +1 -1
- package/dist/174.js.map +1 -1
- package/dist/269.js +1 -1
- package/dist/269.js.map +1 -1
- package/dist/529.js +1 -1
- package/dist/529.js.map +1 -1
- package/dist/581.js +1 -1
- package/dist/581.js.map +1 -1
- package/dist/711.js +1 -1
- package/dist/711.js.map +1 -1
- package/dist/744.js +1 -1
- package/dist/923.js +1 -1
- package/dist/923.js.map +1 -1
- package/dist/kenyaemr-esm-appointments-app.js +1 -1
- package/dist/kenyaemr-esm-appointments-app.js.buildmanifest.json +34 -34
- package/dist/kenyaemr-esm-appointments-app.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +3 -3
package/dist/174.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_kenyaemr_esm_appointments_app=globalThis.webpackChunk_kenyaemr_esm_appointments_app||[]).push([[174],{4413:(e,n,t)=>{t.d(n,{Z:()=>l});var a=t(5698),i=t.n(a),o=t(9613),r=t.n(o)()(i());r.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-appointments__card-header__desktopHeader___Qe2fu,.-esm-appointments__card-header__tabletHeader___gFxMA{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0 .75rem 1rem;background-color:#fff}.-esm-appointments__card-header__desktopHeader___Qe2fu h4:after,.-esm-appointments__card-header__tabletHeader___gFxMA h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-appointments__card-header__desktopHeader___Qe2fu{height:3rem}.-esm-appointments__card-header__desktopHeader___Qe2fu h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-appointments__card-header__tabletHeader___gFxMA{height:4.5rem}.-esm-appointments__card-header__tabletHeader___gFxMA h4{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);color:#525252}html[dir=rtl] .-esm-appointments__card-header__desktopHeader___Qe2fu,html[dir=rtl] .-esm-appointments__card-header__tabletHeader___gFxMA{text-align:right;padding:.75rem 1rem .75rem 0}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/cards/card-header.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,6GAEE,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,4BAAA,CACA,qBDHc,CCKd,+HACE,UAAA,CACA,aAAA,CACA,UC0BS,CDzBT,mBAAA,CACA,2CAAA,CAIJ,uDACE,WC6BW,CD5BX,0DE20BE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFz0BA,aDpBM,CCwBV,sDACE,aAAA,CACA,yDEm0BE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CFj0BA,aD5BM,CCkCR,yIAEE,gBAAA,CACA,4BAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.desktopHeader,\n.tabletHeader {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: layout.$spacing-04 0 layout.$spacing-04 layout.$spacing-05;\n background-color: $ui-background;\n\n h4:after {\n content: '';\n display: block;\n width: layout.$spacing-07;\n padding-top: 0.188rem;\n border-bottom: 0.375rem solid var(--brand-03);\n }\n}\n\n.desktopHeader {\n height: layout.$spacing-09;\n h4 {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n }\n}\n\n.tabletHeader {\n height: 4.5rem;\n h4 {\n @include type.type-style('heading-03');\n color: $text-02;\n }\n}\n\n// Overriding styles for RTL support\nhtml[dir='rtl'] {\n .desktopHeader,\n .tabletHeader {\n text-align: right;\n padding: layout.$spacing-04 layout.$spacing-05 layout.$spacing-04 0;\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","//\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:""}]),r.locals={desktopHeader:"-esm-appointments__card-header__desktopHeader___Qe2fu",tabletHeader:"-esm-appointments__card-header__tabletHeader___gFxMA"};const l=r},3492:(e,n,t)=>{t.d(n,{Z:()=>l});var a=t(5698),i=t.n(a),o=t(9613),r=t.n(o)()(i());r.push([e.id,".-esm-appointments__dashboard-extension__menu___ICMbz{display:flex;align-items:center;justify-content:center}.-esm-appointments__dashboard-extension__icon___99FWh{margin-right:1.5rem;fill:#525252}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/dashboards/dashboard-extension.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/colors/index.scss"],names:[],mappings:"AAGA,sDACE,YAAA,CACA,kBAAA,CACA,sBAAA,CAGF,sDACE,mBC0BW,CDzBX,YEqCQ",sourcesContent:["@use '@carbon/colors';\n@use '@carbon/layout';\n\n.menu {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.icon {\n margin-right: layout.$spacing-06;\n fill: colors.$gray-70;\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","// 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"],sourceRoot:""}]),r.locals={menu:"-esm-appointments__dashboard-extension__menu___ICMbz",icon:"-esm-appointments__dashboard-extension__icon___99FWh"};const l=r},1907:(e,n,t)=>{t.d(n,{Z:()=>l});var a=t(5698),i=t.n(a),o=t(9613),r=t.n(o)()(i());r.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-appointments__empty-state__action___YzcNS{margin-bottom:.5rem}.-esm-appointments__empty-state__content___Z5VYW{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);color:#525252;margin-top:1rem;margin-bottom:.5rem}.-esm-appointments__empty-state__desktopHeading___Xj2e2 h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-appointments__empty-state__tabletHeading___MrJbs h4{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);color:#525252}.-esm-appointments__empty-state__desktopHeading___Xj2e2,.-esm-appointments__empty-state__tabletHeading___MrJbs{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-appointments__empty-state__desktopHeading___Xj2e2 h4:after,.-esm-appointments__empty-state__tabletHeading___MrJbs h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-appointments__empty-state__heading___dJ7I1:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-appointments__empty-state__tile___iS7NK{text-align:center;border:1px solid #e0e0e0}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/empty-state/empty-state.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,gDACE,mBCgBW,CDbb,iDE01BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CFx1BF,aDLQ,CCMR,eCoBW,CDnBX,mBCSW,CDLX,2DEk1BE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFh1BA,aDbM,CCkBR,0DE20BE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CFz0BA,aDpBM,CCwBV,+GAEE,eAAA,CACA,yBAAA,CACA,kBCFW,CDIX,iIACE,UAAA,CACA,aAAA,CACA,UCGS,CDFT,mBAAA,CACA,2CAAA,CAIJ,uDACE,UAAA,CACA,aAAA,CACA,UCNW,CDOX,mBAAA,CACA,2CAAA,CAGF,8CACE,iBAAA,CACA,wBAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.action {\n margin-bottom: layout.$spacing-03;\n}\n\n.content {\n @include type.type-style('heading-compact-01');\n color: $text-02;\n margin-top: layout.$spacing-05;\n margin-bottom: layout.$spacing-03;\n}\n\n.desktopHeading {\n h4 {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n }\n}\n\n.tabletHeading {\n h4 {\n @include type.type-style('heading-03');\n color: $text-02;\n }\n}\n\n.desktopHeading,\n.tabletHeading {\n text-align: left;\n text-transform: capitalize;\n margin-bottom: layout.$spacing-05;\n\n h4:after {\n content: '';\n display: block;\n width: layout.$spacing-07;\n padding-top: 0.188rem;\n border-bottom: 0.375rem solid var(--brand-03);\n }\n}\n\n.heading:after {\n content: '';\n display: block;\n width: layout.$spacing-07;\n padding-top: 0.188rem;\n border-bottom: 0.375rem solid var(--brand-03);\n}\n\n.tile {\n text-align: center;\n border: 1px solid $ui-03;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),r.locals={action:"-esm-appointments__empty-state__action___YzcNS",content:"-esm-appointments__empty-state__content___Z5VYW",desktopHeading:"-esm-appointments__empty-state__desktopHeading___Xj2e2",tabletHeading:"-esm-appointments__empty-state__tabletHeading___MrJbs",heading:"-esm-appointments__empty-state__heading___dJ7I1",tile:"-esm-appointments__empty-state__tile___iS7NK"};const l=r},5482:(e,n,t)=>{t.d(n,{Z:()=>l});var a=t(5698),i=t.n(a),o=t(9613),r=t.n(o)()(i());r.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-appointments__error-state__errorMessage___T9q98{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);margin-top:2.25rem;margin-bottom:.5rem}.-esm-appointments__error-state__errorCopy___-QHlU{margin-bottom:.5rem;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);color:#525252}.-esm-appointments__error-state__desktopHeading___S68BW h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-appointments__error-state__tabletHeading___QZKod h4{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);color:#525252}.-esm-appointments__error-state__desktopHeading___S68BW,.-esm-appointments__error-state__tabletHeading___QZKod{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-appointments__error-state__desktopHeading___S68BW h4:after,.-esm-appointments__error-state__tabletHeading___QZKod h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-appointments__error-state__tile___-aLtB{text-align:center;border:1px solid #e0e0e0}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/error-state/error-state.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,sDC81BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CD31BF,kBAAA,CACA,mBEaW,CFVb,mDACE,mBESW,CD60BT,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CDp1BF,aDTQ,CCaR,2DCg1BE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CD90BA,aDfM,CCoBR,0DCy0BE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDv0BA,aDtBM,CC0BV,+GAEE,eAAA,CACA,yBAAA,CACA,kBEJW,CFMX,iIACE,UAAA,CACA,aAAA,CACA,UECS,CAAA,mBAAA,CFCT,2CAAA,CAIJ,8CACE,iBAAA,CACA,wBAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.errorMessage {\n @include type.type-style('heading-compact-02');\n\n margin-top: 2.25rem;\n margin-bottom: layout.$spacing-03;\n}\n\n.errorCopy {\n margin-bottom: layout.$spacing-03;\n @include type.type-style('body-01');\n color: $text-02;\n}\n\n.desktopHeading {\n h4 {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n }\n}\n\n.tabletHeading {\n h4 {\n @include type.type-style('heading-03');\n color: $text-02;\n }\n}\n\n.desktopHeading,\n.tabletHeading {\n text-align: left;\n text-transform: capitalize;\n margin-bottom: layout.$spacing-05;\n\n h4:after {\n content: '';\n display: block;\n width: layout.$spacing-07;\n padding-top: 0.188rem;\n border-bottom: 0.375rem solid var(--brand-03);\n }\n}\n\n.tile {\n text-align: center;\n border: 1px solid $ui-03;\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:""}]),r.locals={errorMessage:"-esm-appointments__error-state__errorMessage___T9q98",errorCopy:"-esm-appointments__error-state__errorCopy___-QHlU",desktopHeading:"-esm-appointments__error-state__desktopHeading___S68BW",tabletHeading:"-esm-appointments__error-state__tabletHeading___QZKod",tile:"-esm-appointments__error-state__tile___-aLtB"};const l=r},1829:(e,n,t)=>{t.d(n,{Z:()=>l});var a=t(5698),i=t.n(a),o=t(9613),r=t.n(o)()(i());r.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-appointments__pagination__bodyShort01___cR181,.-esm-appointments__pagination__configurableLink___2UaPC{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)}.-esm-appointments__pagination__desktop___FKsqU,.-esm-appointments__pagination__tablet___BjSxC{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);display:flex;justify-content:space-between;color:#525252;background-color:#fff;padding-left:1rem;align-items:center;border-top:1px solid #e0e0e0}.-esm-appointments__pagination__desktop___FKsqU .cds--pagination{min-height:0;height:2rem;width:auto;border:none}.-esm-appointments__pagination__desktop___FKsqU .cds--pagination .cds--select-input,.-esm-appointments__pagination__desktop___FKsqU .cds--pagination .cds--btn,.-esm-appointments__pagination__desktop___FKsqU .cds--pagination .cds--pagination__right{min-height:0;height:2rem}.-esm-appointments__pagination__tablet___BjSxC .cds--pagination{min-height:0;height:3rem;width:auto;border:none}.-esm-appointments__pagination__tablet___BjSxC .cds--pagination .cds--select-input,.-esm-appointments__pagination__tablet___BjSxC .cds--pagination .cds--btn,.-esm-appointments__pagination__tablet___BjSxC .cds--pagination .cds--pagination__right{min-height:0;height:3rem}.-esm-appointments__pagination__configurableLink___2UaPC{text-decoration:none;padding:0 .5rem}.-esm-appointments__pagination__pagination___vC\\+hv{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);background-color:#fff;color:#525252;display:flex}div.-esm-appointments__pagination__pagination___vC\\+hv>.cds--pagination__left{display:none}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/pagination/pagination.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,6GC81BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CD11BJ,+FC01BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDv1BF,YAAA,CACA,6BAAA,CACA,aDRQ,CCSR,qBDbM,CCcN,iBEgBW,CFfX,kBAAA,CACA,4BAAA,CAGF,iEACE,YAAA,CACA,WEmBW,CFlBX,UAAA,CACA,WAAA,CAEA,wPAGE,YAAA,CACA,WEWS,CFPb,gEACE,YAAA,CACA,WEeW,CFdX,UAAA,CACA,WAAA,CAEA,qPAGE,YAAA,CACA,WEOS,CFHb,yDACE,oBAAA,CAEA,eAAA,CAGF,oDC4yBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CD1yBF,qBDvDM,CCwDN,aDpDQ,CCqDR,YAAA,CAIA,8EACE,YAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.bodyShort01 {\n @include type.type-style('body-compact-01');\n}\n\n.desktop,\n.tablet {\n @include type.type-style('body-compact-01');\n display: flex;\n justify-content: space-between;\n color: $text-02;\n background-color: $ui-02;\n padding-left: layout.$spacing-05;\n align-items: center;\n border-top: 1px solid $ui-03;\n}\n\n.desktop :global(.cds--pagination) {\n min-height: 0;\n height: layout.$spacing-07;\n width: auto;\n border: none;\n\n & :global(.cds--select-input),\n :global(.cds--btn),\n :global(.cds--pagination__right) {\n min-height: 0;\n height: layout.$spacing-07;\n }\n}\n\n.tablet :global(.cds--pagination) {\n min-height: 0;\n height: layout.$spacing-09;\n width: auto;\n border: none;\n\n & :global(.cds--select-input),\n :global(.cds--btn),\n :global(.cds--pagination__right) {\n min-height: 0;\n height: layout.$spacing-09;\n }\n}\n\n.configurableLink {\n text-decoration: none;\n @extend .bodyShort01;\n padding: 0 layout.$spacing-03;\n}\n\n.pagination {\n @include type.type-style('body-compact-01');\n background-color: $ui-02;\n color: $text-02;\n display: flex;\n}\n\ndiv.pagination {\n & > :global(.cds--pagination__left) {\n display: none;\n }\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:""}]),r.locals={bodyShort01:"-esm-appointments__pagination__bodyShort01___cR181",configurableLink:"-esm-appointments__pagination__configurableLink___2UaPC",desktop:"-esm-appointments__pagination__desktop___FKsqU",tablet:"-esm-appointments__pagination__tablet___BjSxC",pagination:"-esm-appointments__pagination__pagination___vC+hv"};const l=r},174:(e,n,t)=>{t.r(n),t.d(n,{CardHeader:()=>A,DashboardExtension:()=>S,DashboardGroupExtension:()=>$t,EmptyDataIllustration:()=>Qn,EmptyState:()=>nt,ErrorState:()=>ot,PatientChartPagination:()=>Sa,careSettingUuid:()=>fa,clinicalFormsWorkspace:()=>lt,compare:()=>k,convertTime12to24:()=>Pa,createDashboardGroup:()=>vt,createDashboardLink:()=>T,createOfflineVisitForPatient:()=>Ut,drugCustomRepresentation:()=>ha,formEntryWorkspace:()=>st,getDrugOrderByUuid:()=>ba,getOfflineVisitForPatient:()=>jt,getPatientChartStore:()=>gt,getPatientSummaryOrder:()=>Ba,getPatientUuidFromStore:()=>yt,getPatientUuidFromUrl:()=>bt,htmlFormEntryWorkspace:()=>ct,launchFormEntry:()=>ut,launchFormEntryOrHtmlForms:()=>pt,launchHtmlFormEntry:()=>dt,launchPatientChartWithWorkspaceOpen:()=>qa,launchPatientWorkspace:()=>Va,launchStartVisitPrompt:()=>mt,postOrders:()=>sa,postOrdersOnNewEncounter:()=>ra,priorityOptions:()=>ma,registerNavGroup:()=>At,time12HourFormatRegex:()=>Fa,useActivePatientEnrollment:()=>La,useAllowedFileExtensions:()=>ja,useAutoCreatedOfflineVisit:()=>Pt,useLaunchWorkspaceRequiringVisit:()=>Wa,useNavGroups:()=>_t,useOfflineVisit:()=>Ft,useOrderBasket:()=>Jt,useOrderType:()=>Aa,useOrderTypes:()=>ka,useOrderableConceptSets:()=>xa,usePaginationInfo:()=>Ca,usePatientChartStore:()=>ht,usePatientOrders:()=>ya,useSystemVisitSetting:()=>Ha,useVisitOrOfflineVisit:()=>Rt,visitSyncType:()=>Lt});var a=t(268),i=t.n(a),o=t(2524),r=t.n(o),l=t(7234),s=t(6062),c=t.n(s),p=t(4036),u=t.n(p),d=t(6793),f=t.n(d),g=t(7892),h=t.n(g),y=t(1173),b=t.n(y),m=t(2464),$=t.n(m),v=t(4413),w={};w.styleTagTransform=$(),w.setAttributes=h(),w.insert=f().bind(null,"head"),w.domAPI=u(),w.insertStyleElement=b(),c()(v.Z,w);const x=v.Z&&v.Z.locals?v.Z.locals:void 0;function A(e){var n=e.title,t=e.children,a="tablet"===(0,l.useLayoutType)();return i().createElement("div",{className:r()(a?x.tabletHeader:x.desktopHeader)},i().createElement("h4",null,n),t)}function k(e,n){return null==e&&null==n?0:null==e?-1:null==n?1:e<n?-1:e>n?1:0}var _=t(8744),C=t(2228),z=t(4924),E=t(3492),M={};M.styleTagTransform=$(),M.setAttributes=h(),M.insert=f().bind(null,"head"),M.domAPI=u(),M.insertStyleElement=b(),c()(E.Z,M);const N=E.Z&&E.Z.locals?E.Z.locals:void 0;var S=function(e){var n=e.path,t=e.title,o=e.basePath,s=e.icon,c=e.moduleName,p=void 0===c?"@openmrs/esm-patient-chart-app":c,u=(0,z.useTranslation)(p).t,d=(0,_.useLocation)(),f=(0,a.useMemo)((function(){return decodeURIComponent((0,C.Z)(d.pathname.split("/")))}),[d.pathname]);return i().createElement("div",{key:n},i().createElement(l.ConfigurableLink,{className:r()("cds--side-nav__link",{"active-left-nav-link":n===f}),to:"".concat(o,"/").concat(encodeURIComponent(n))},i().createElement("span",{className:N.menu},i().createElement(l.MaybeIcon,{icon:s,className:N.icon,size:16}),i().createElement("span",null,u(t)))))},T=function(e){return function(n){var t=n.basePath;return i().createElement(_.BrowserRouter,null,i().createElement(S,{basePath:t,title:e.title,path:e.path,moduleName:e.moduleName,icon:e.icon}))}},O={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?O.enableCssCustomProperties=!0:O.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE&&"true"===process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE?O.enableUseControlledStateWithValue=!0:O.enableUseControlledStateWithValue=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?O.enableCssGrid=!0:O.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?O.enableV11Release=!0:O.enableV11Release=!1:O.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?O.enableExperimentalTileContrast=!0:O.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?O.enableV12TileDefaultIcons=!0:O.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?O.enableV12Overflowmenu=!0:O.enableV12Overflowmenu=!1}catch(e){O.enableCssCustomProperties=!1,O.enableUseControlledStateWithValue=!1,O.enableCssGrid=!1,O.enableV11Release=!0,O.enableExperimentalTileContrast=!1,O.enableV12TileDefaultIcons=!1,O.enableV12Overflowmenu=!1}var D=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:O.enableCssCustomProperties},{name:"enable-use-controlled-state-with-value",description:"Enable components to be created in either a controlled or uncontrolled mode\n",enabled:O.enableUseControlledStateWithValue},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:O.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:O.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:O.enableExperimentalTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:O.enableV12TileDefaultIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:O.enableV12Overflowmenu}];function B(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,n){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,"string");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(a.key))?i:String(i)),a)}var i}function I(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,o,r,l=[],s=!0,c=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;s=!1}else for(;!(s=(a=o.call(t)).done)&&(l.push(a.value),l.length!==n);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(c)throw i}}return l}}(e,n)||L(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 L(e,n){if(e){if("string"==typeof e)return R(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(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?R(e,n):void 0}}function R(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}for(var F=function(){function e(n){var t=this;!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.flags=new Map,n&&Object.keys(n).forEach((function(e){t.flags.set(e,n[e])}))}var n,t;return n=e,t=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw new Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,n){if(this.flags.has(e))throw new Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,n)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var n=this;Object.keys(e).forEach((function(t){n.flags.set(t,e[t])}))}},{key:"mergeWithScope",value:function(e){var n,t=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=L(e))){t&&(e=t);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return r=e.done,e},e:function(e){l=!0,o=e},f:function(){try{r||null==t.return||t.return()}finally{if(l)throw o}}}}(e.flags);try{for(t.s();!(n=t.n()).done;){var a=I(n.value,2),i=a[0],o=a[1];this.flags.has(i)||this.flags.set(i,o)}}catch(e){t.e(e)}finally{t.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}],t&&B(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),e}(),P=new F(void 0),j=0;j<D.length;j++){var H=D[j];P.add(H.name,H.enabled)}function U(){return U=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},U.apply(this,arguments)}!function(){P.merge.apply(P,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1});const V=i().createContext("cds");function q(){return i().useContext(V)}var W=t(3980),Z=t.n(W);const G=(0,a.createContext)({disabled:!1}),K=e=>{let{disabled:n,children:t}=e;return i().createElement(G.Provider,{value:{disabled:n}},t)};function Y(e){let{align:n="end",children:t,className:a,disabled:o=!1,isFlush:l=!1,size:s,...c}=e;const p=q(),u=r()(`${p}--accordion`,a,{[`${p}--accordion--${n}`]:n,[`${p}--accordion--${s}`]:s,[`${p}--layout--size-${s}`]:s,[`${p}--accordion--flush`]:l&&"start"!==n});return i().createElement(K,{disabled:o},i().createElement("ul",U({className:u},c),t))}function Q(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function X(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Q(Object(t),!0).forEach((function(n){J(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function J(e,n,t){return(n=function(e){var n=function(e,n){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,"string");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ee(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t,a,i={},o=Object.keys(e);for(a=0;a<o.length;a++)t=o[a],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)t=o[a],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}Y.propTypes={align:Z().oneOf(["start","end"]),children:Z().node,className:Z().string,disabled:Z().bool,isFlush:Z().bool,size:Z().oneOf(["sm","md","lg"])};var ne=["width","height","viewBox"],te=["tabindex"],ae={focusable:"false",preserveAspectRatio:"xMidYMid meet"};const ie=i().forwardRef((function(e,n){let{className:t,children:a,tabIndex:o,xmlns:r="http://www.w3.org/2000/svg",preserveAspectRatio:l="xMidYMid meet",...s}=e;const{tabindex:c,...p}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width,t=e.height,a=e.viewBox,i=void 0===a?"0 0 ".concat(n," ").concat(t):a,o=ee(e,ne),r=o.tabindex,l=ee(o,te),s=X(X(X({},ae),l),{},{width:n,height:t,viewBox:i});return s["aria-label"]||s["aria-labelledby"]||s.title?(s.role="img",null!=r&&(s.focusable="true",s.tabindex=r)):s["aria-hidden"]=!0,s}({...s,tabindex:o}),u=p;return t&&(u.className=t),null!=c&&(u.tabIndex="number"==typeof c?c:Number(o)),n&&(u.ref=n),r&&(u.xmlns=r),l&&(u.preserveAspectRatio=l),i().createElement("svg",u,a)}));var oe,re,le,se,ce,pe,ue,de,fe;ie.displayName="Icon",ie.propTypes={"aria-hidden":Z().oneOfType([Z().bool,Z().oneOf(["true","false"])]),"aria-label":Z().string,"aria-labelledby":Z().string,children:Z().node,className:Z().string,height:Z().oneOfType([Z().number,Z().string]),preserveAspectRatio:Z().string,tabIndex:Z().oneOfType([Z().number,Z().string]),viewBox:Z().string,width:Z().oneOfType([Z().number,Z().string]),xmlns:Z().string};const ge=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},oe||(oe=i().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z"})),t)})),he=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},re||(re=i().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),le||(le=i().createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),t)})),ye=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return"glyph"===a||"glyph"===a||"glyphpx"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor",...o},se||(se=i().createElement("path",{d:"M5 6L0 1 0.7 0.3 5 4.6 9.3 0.3 10 1z"})),t):16===a||"16"===a||"16px"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},ce||(ce=i().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),t):i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},pe||(pe=i().createElement("path",{d:"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),t)})),be=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return"glyph"===a||"glyph"===a||"glyphpx"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor",...o},ue||(ue=i().createElement("path",{d:"M6 5L1 10 0.3 9.3 4.6 5 0.3 0.7 1 0z"})),t):16===a||"16"===a||"16px"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},de||(de=i().createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),t):i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},fe||(fe=i().createElement("path",{d:"M22 16L12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"})),t)}));function me(){let e=0;return function(){return++e}}const $e=!("undefined"==typeof window||!window.document||!window.document.createElement),ve=i().createContext(null),we=me(),xe=$e?a.useLayoutEffect:a.useEffect;let Ae=!1;function ke(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";const n=i().useContext(ve),[t,o]=(0,a.useState)((()=>Ae?`${n?`${n}-`:""}${e}-${we()}`:null));if(xe((()=>{null===t&&o(`${n?`${n}-`:""}${e}-${we()}`)}),[we]),(0,a.useEffect)((()=>{!1===Ae&&(Ae=!0)}),[]),"function"==typeof i().useId){const t=function(e,n){return`${e?`${e}-`:""}${n}-${i().useId()}`}(n,e);return t}return t}const _e={};function Ce(e,n){return function(n,t,a){if(void 0!==n[t]){_e[a]&&_e[a][t]||(_e[a]={..._e[a],[t]:!0});for(var i=arguments.length,o=new Array(i>3?i-3:0),r=3;r<i;r++)o[r-3]=arguments[r];return e(n,t,a,...o)}}}const ze=(0,a.createContext)(null);function Ee(e){let{as:n,children:t,dir:o="auto",...r}=e;const l=(0,a.useContext)(ze),s={},c=n??"span",p={...l};if(l){const{direction:e,getTextDirection:n}=l;if(n&&n.current){const a=function(e){if("string"==typeof e)return e;const n=i().Children.map(e,(e=>"string"==typeof e?e:null))?.filter((e=>null!==e));return 1===n?.length?n[0]:n}(t),o=n.current(a);e!==o?(s.dir=o,p.direction=o):"auto"===e&&(s.dir=o)}else e!==o?(s.dir=o,p.direction=o):"auto"===e&&(s.dir=o)}else s.dir=o,p.direction=o;return i().createElement(ze.Provider,{value:p},i().createElement(c,U({},r,s),t))}function Me(e,n){for(let t=0;t<n.length;t++)if(Ne(e,n[t]))return!0;return!1}function Ne(e){let{key:n,which:t,keyCode:a,code:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?e===n:"number"==typeof e?e===t||e===a:e.key&&Array.isArray(n)?-1!==n.indexOf(e.key):e.key===n||e.which===t||e.keyCode===a||e.code===i}Ee.propTypes={as:Z().oneOfType([Z().func,Z().string,Z().elementType]),children:Z().node.isRequired,dir:Z().oneOf(["ltr","rtl","auto"])};const Se={key:"Enter",which:13,keyCode:13,code:"Enter"},Te={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},Oe={key:" ",which:32,keyCode:32,code:"Space"},De=e=>i().createElement("button",U({type:"button"},e));function Be(e){let{children:n,className:t="",open:o=!1,onHeadingClick:l,renderExpando:s=De,renderToggle:c,title:p="title",disabled:u,handleAnimationEnd:d,...f}=e;const[g,h]=(0,a.useState)(o),[y,b]=(0,a.useState)(o),m=(0,a.useContext)(G),$="boolean"==typeof u?u:m.disabled,v=ke("accordion-item"),w=q(),x=r()({[`${w}--accordion__item`]:!0,[`${w}--accordion__item--active`]:g,[`${w}--accordion__item--disabled`]:$,[t]:!!t}),A=c||s,k=(0,a.useRef)(null);return o!==y&&(h(o),b(o)),i().createElement("li",U({className:x},f),i().createElement(A,{disabled:$,"aria-controls":v,"aria-expanded":g,className:`${w}--accordion__heading`,onClick:function(e){if(!k.current)return;k.current.style.maxBlockSize=g?"":k.current.scrollHeight+32+"px";const n=!g;h(n),l&&l({isOpen:n,event:e})},onKeyDown:function(e){g&&Ne(e,Te)&&h(!1)},type:"button"},i().createElement(be,{className:`${w}--accordion__arrow`}),i().createElement(Ee,{as:"div",className:`${w}--accordion__title`},p)),i().createElement("div",{ref:k,className:`${w}--accordion__wrapper`,onTransitionEnd:function(e){d&&d(e)}},i().createElement("div",{id:v,className:`${w}--accordion__content`},n)))}Be.propTypes={children:Z().node,className:Z().string,disabled:Z().bool,onClick:Z().func,onHeadingClick:Z().func,open:Z().bool,renderExpando:Ce(Z().func),renderToggle:Z().func,title:Z().node};var Ie="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;const Le=e=>(0,a.useCallback)((n=>{e.forEach((e=>{"function"==typeof e?e(n):null!=e&&(e.current=n)}))}),e);function Re(e,n){const t=(0,a.useRef)(null);(0,a.useEffect)((()=>{t.current=n}),[n]),(0,a.useEffect)((()=>{function n(e){t.current&&t.current(e)}return window.addEventListener(e,n),()=>{window.removeEventListener(e,n)}}),[e])}const Fe=i().createContext({floating:{current:null}}),Pe=i().forwardRef((function(e,n){let{isTabTip:t,align:o=(t?"bottom-left":"bottom"),as:l="span",autoAlign:s=!1,caret:c=!t,className:p,children:u,dropShadow:d=!0,highContrast:f=!1,onRequestClose:g,open:h,...y}=e;const b=q(),m=(0,a.useRef)(null),$=(0,a.useRef)(null);Re("blur",(()=>{h&&g?.()})),Re("click",(e=>{h&&!$?.current?.contains(e.target)&&g?.()}));const v=(0,a.useMemo)((()=>({floating:m})),[]);t&&(["bottom-left","bottom-right"].includes(o)||(o="bottom-left"));const w=Le([n,$]),[x,A]=(0,a.useState)(!1),[k,_]=(0,a.useState)(o),C=r()({[`${b}--popover-container`]:!0,[`${b}--popover--caret`]:c,[`${b}--popover--drop-shadow`]:d,[`${b}--popover--high-contrast`]:f,[`${b}--popover--open`]:h,[`${b}--popover--${k}`]:x&&!t,[`${b}--popover--${o}`]:!x,[`${b}--popover--tab-tip`]:t},p);Ie((()=>{if(!h)return;if(!s||t)return void A(!1);if(!m.current)return;if(!0===x)return;const e=m.current.getBoundingClientRect(),n=e.x<-16,a=e.y<-16,i=e.x+(e.width-16)>document.documentElement.clientWidth,r=e.y+(e.height-16)>document.documentElement.clientHeight;if(!(n||a||i||r))return void A(!1);const l=["top","top-left","right-bottom","right","right-top","bottom-left","bottom","bottom-right","left-top","left","left-bottom","top-right"],c=[o];let p=l[(l.indexOf(o)+1)%l.length];for(;p&&!c.includes(p);)c.push(p),p=l[(l.indexOf(p)+1)%l.length];function u(e){if(!$.current||!m.current)return!1;$.current.classList.add(`${b}--popover--${e}`);const n=m.current.getBoundingClientRect();return n.x<-16||n.y<-16||n.x+(n.width-16)>document.documentElement.clientWidth||n.y+(n.height-16)>document.documentElement.clientHeight?($.current.classList.remove(`${b}--popover--${e}`),!1):($.current.classList.remove(`${b}--popover--${e}`),!0)}let d=null;for(let e=0;e<c.length;e++){const n=c[e];if(u(n)){d=n;break}}d&&(A(!0),_(d))}),[x,o,s,b,h,t]);const z=i().Children.map(u,(e=>{const n=e;if("button"===n?.type){const{className:e}=n.props,t=r()(`${b}--popover--tab-tip__button`,e);return i().cloneElement(n,{className:t})}return n})),E=l;return i().createElement(Fe.Provider,{value:v},i().createElement(E,U({},y,{className:C,ref:w}),t?z:u))}));function je(e,n){let{className:t,children:a,...o}=e;const l=q(),{floating:s}=i().useContext(Fe),c=Le([s,n]);return i().createElement("span",U({},o,{className:`${l}--popover`}),i().createElement("span",{className:r()(`${l}--popover-content`,t),ref:c},a),i().createElement("span",{className:`${l}--popover-caret`}))}Pe.propTypes={align:Z().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),as:Z().oneOfType([Z().string,Z().elementType]),autoAlign:Z().bool,caret:Z().bool,children:Z().node,className:Z().string,dropShadow:Z().bool,highContrast:Z().bool,isTabTip:Z().bool,onRequestClose:Z().func,open:Z().bool.isRequired};const He=i().forwardRef(je);function Ue(e){if(!e||!e.childNodes)return null;if(function(e){if(void 0===e.tabIndex||e.tabIndex<0)return!1;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type;default:return!0}}(e))return e;for(const n of e.childNodes){const e=Ue(n);if(e)return e}return null}function Ve(e){if(!e||!e.childNodes)return null;if(e?.getAttribute?.("role")&&""!==e.getAttribute("role"))return e;for(const n of e.childNodes){const e=Ve(n);if(e)return e}return null}He.propTypes={children:Z().node,className:Z().string};const qe=new Set(["mouseup","touchend","touchcancel"]);function We(e){let{align:n="top",className:t,children:o,label:l,description:s,enterDelayMs:c=100,leaveDelayMs:p=300,defaultOpen:u=!1,closeOnActivation:d=!1,...f}=e;const g=(0,a.useRef)(null),h=(0,a.useRef)(null),[y,b]=function(e){const[n,t]=(0,a.useState)(e),i=(0,a.useRef)(null),o=(0,a.useCallback)((function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;window.clearTimeout(i.current??void 0),i.current=null,0!==n?i.current=window.setTimeout((()=>{t(e),i.current=null}),n):t(e)}),[]);return(0,a.useEffect)((()=>()=>{window.clearTimeout(i.current??void 0)}),[]),[n,o]}(u),[m,$]=(0,a.useState)(!1),[v,w]=(0,a.useState)(!1),x=ke("tooltip"),A=q(),k=i().Children.only(o),_={onFocus:()=>b(!0),onBlur:()=>b(!1),onClick:()=>d&&b(!1),onMouseEnter:function(){w(!0),b(!0,c)},onMouseLeave:C,onMouseDown:z,onMouseMove:function(e){1===e.buttons?$(!0):$(!1)},onTouchStart:z};function C(){w(!1),m||b(!1,p)}function z(){$(!0)}l?_["aria-labelledby"]=x:_["aria-describedby"]=x;const E=(0,a.useCallback)((()=>{$(!1),v||b(!1,p)}),[v,p,b]);return(0,a.useEffect)((()=>(m&&qe.forEach((e=>{document.addEventListener(e,E)})),()=>{qe.forEach((e=>{document.removeEventListener(e,E)}))})),[m,E]),i().createElement(Pe,U({},f,{align:n,className:r()(`${A}--tooltip`,t),dropShadow:!1,highContrast:!0,onKeyDown:function(e){y&&Ne(e,Te)&&(e.stopPropagation(),b(!1)),y&&d&&(Ne(e,Se)||Ne(e,Oe))&&b(!1)},onMouseLeave:C,open:y,ref:g}),i().createElement("div",{className:`${A}--tooltip-trigger__wrapper`},void 0!==k?i().cloneElement(k,{..._,...function(e){const n=Object.keys(_).filter((e=>e.startsWith("on"))),t={};return n.forEach((n=>{t[n]=t=>{_[n](t),e?.[n]&&e?.[n](t)}})),t}(k.props)}):null),i().createElement(He,{"aria-hidden":y?"false":"true",className:`${A}--tooltip-content`,id:x,ref:h,role:"tooltip"},l||s))}We.propTypes={align:Z().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),children:Z().node,className:Z().string,closeOnActivation:Z().bool,defaultOpen:Z().bool,description:Z().node,enterDelayMs:Z().number,label:Z().node,leaveDelayMs:Z().number};const Ze=i().forwardRef((function(e,n){let{align:t,children:a,className:o,closeOnActivation:l=!0,defaultOpen:s=!1,disabled:c,enterDelayMs:p=100,kind:u,label:d,leaveDelayMs:f=100,wrapperClasses:g,size:h,isSelected:y,...b}=e;const m=q(),$=r()(g,`${m}--icon-tooltip`,{[`${m}--icon-tooltip--disabled`]:c});return i().createElement(We,{align:t,closeOnActivation:l,className:$,defaultOpen:s,enterDelayMs:p,label:d,leaveDelayMs:f},i().createElement(Ke,U({},b,{disabled:c,kind:u,ref:n,size:h,className:r()(`${m}--btn--icon-only`,{[`${m}--btn--selected`]:y},o)}),a))}));Ze.propTypes={align:Z().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","right"]),children:Z().node,className:Z().string,closeOnActivation:Z().bool,defaultOpen:Z().bool,disabled:Z().bool,enterDelayMs:Z().number,isSelected:Z().bool,kind:Z().oneOf(["primary","secondary","ghost","tertiary"]),label:Z().node.isRequired,leaveDelayMs:Z().number,size:Z().oneOf(["sm","md","lg"]),wrapperClasses:Z().string};const Ge=e=>function(n){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];for(let t=0;t<e.length&&!n.defaultPrevented;t++){const i=e[t];"function"==typeof i&&i(n,...a)}},Ke=i().forwardRef((function(e,n){let{as:t,children:o,className:l,dangerDescription:s="danger",disabled:c=!1,hasIconOnly:p=!1,href:u,iconDescription:d,isExpressive:f=!1,isSelected:g,kind:h="primary",onBlur:y,onClick:b,onFocus:m,onMouseEnter:$,onMouseLeave:v,renderIcon:w,size:x,tabIndex:A,tooltipAlignment:k="center",tooltipPosition:_="top",type:C="button",...z}=e;const E=(0,a.useRef)(null),M=q(),N=e=>{e.target===E.current&&e.preventDefault()},S={tabIndex:A,className:r()(l,{[`${M}--btn`]:!0,[`${M}--btn--sm`]:"sm"===x&&!f,[`${M}--btn--md`]:"md"===x&&!f,[`${M}--btn--xl`]:"xl"===x,[`${M}--btn--2xl`]:"2xl"===x,[`${M}--layout--size-${x}`]:x,[`${M}--btn--${h}`]:h,[`${M}--btn--disabled`]:c,[`${M}--btn--expressive`]:f,[`${M}--btn--icon-only`]:p,[`${M}--btn--selected`]:p&&g&&"ghost"===h}),ref:n},T=w?i().createElement(w,{"aria-label":d,className:`${M}--btn__icon`,"aria-hidden":"true"}):null,O=w?i().createElement(w,null):null,D=["danger","danger--tertiary","danger--ghost"];let B="button";const I=ke("danger-description"),{"aria-pressed":L}=z;let R={disabled:c,type:C,"aria-describedby":D.includes(h)?I:void 0,"aria-pressed":L??(p&&"ghost"===h?g:void 0)};const F={href:u};let P=null;if(D.includes(h)&&(P=i().createElement("span",{id:I,className:`${M}--visually-hidden`},s)),t?(B=t,R={...R,...F}):u&&!c&&(B="a",R=F),function(e,n){return!0===e}(p)){let e;return"top"!==_&&"bottom"!==_||("center"===k&&(e=_),"end"===k&&(e=`${_}-right`),"start"===k&&(e=`${_}-left`)),"right"!==_&&"left"!==_||(e=_),i().createElement(Ze,U({as:t,align:e,label:d,kind:h,size:x,onMouseEnter:$,onMouseLeave:v,onFocus:m,onBlur:y,onClick:Ge([b,N])},z,S,R),O??o)}return i().createElement(B,{onMouseEnter:$,onMouseLeave:v,onFocus:m,onBlur:y,onClick:b,...z,...S,...R},P,o,T)}));var Ye,Qe,Xe,Je;Ke.displayName="Button",Ke.propTypes={as:Z().oneOfType([Z().func,Z().string,Z().elementType]),children:Z().node,className:Z().string,dangerDescription:Z().string,disabled:Z().bool,hasIconOnly:Z().bool,href:Z().string,iconDescription:e=>!e.renderIcon||e.children||e.iconDescription?null:new Error("renderIcon property specified without also providing an iconDescription property."),isExpressive:Z().bool,isSelected:Z().bool,kind:Z().oneOf(["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"]),onBlur:Z().func,onClick:Z().func,onFocus:Z().func,onMouseEnter:Z().func,onMouseLeave:Z().func,renderIcon:Z().oneOfType([Z().func,Z().object]),role:Z().string,size:Z().oneOf(["sm","md","lg","xl","2xl"]),tabIndex:Z().number,tooltipAlignment:Z().oneOf(["start","center","end"]),tooltipPosition:Z().oneOf(["top","right","bottom","left"]),type:Z().oneOf(["button","reset","submit"])};const en=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return 16===a||"16"===a||"16px"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},Ye||(Ye=i().createElement("path",{d:"M9.3 3.7L13.1 7.5 1 7.5 1 8.5 13.1 8.5 9.3 12.3 10 13 15 8 10 3z"})),t):20===a||"20"===a||"20px"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...o},Qe||(Qe=i().createElement("path",{d:"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z"})),t):24===a||"24"===a||"24px"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...o},Xe||(Xe=i().createElement("path",{d:"M14 4L12.9 5.1 18.9 11.2 2 11.2 2 12.8 18.9 12.8 12.9 18.9 14 20 22 12z"})),t):i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Je||(Je=i().createElement("path",{d:"M18 6L16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6z"})),t)}));var nn;const tn=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},nn||(nn=i().createElement("path",{d:"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z"})),t)})),an=i().forwardRef((function(e,n){let{as:t,children:a,className:o,href:l,disabled:s=!1,inline:c=!1,visited:p=!1,renderIcon:u,size:d,target:f,...g}=e;const h=q(),y=r()(`${h}--link`,o,{[`${h}--link--disabled`]:s,[`${h}--link--inline`]:c,[`${h}--link--visited`]:p,[`${h}--link--${d}`]:d}),b={className:t?void 0:y,rel:"_blank"===f?"noopener":void 0,target:f};s?(b.role="link",b["aria-disabled"]=!0):b.href=l;const m=t??"a";return i().createElement(m,U({ref:n},b,g),a,!c&&u&&i().createElement("div",{className:`${h}--link__icon`},i().createElement(u,null)))}));an.displayName="Link",an.propTypes={as:Z().string,children:Z().node,className:Z().string,disabled:Z().bool,href:Z().string,inline:Z().bool,renderIcon:Z().oneOfType([Z().func,Z().object]),size:Z().oneOf(["sm","md","lg"]),visited:Z().bool};const on=(0,a.createContext)(P);var rn,ln,sn,cn,pn,un;Z().node,Z().objectOf(Z().bool);const dn=i().forwardRef((function(e,n){let{children:t,className:a,light:o=!1,slug:l,hasRoundedCorners:s=!1,...c}=e;const p=q(),u=r()(`${p}--tile`,{[`${p}--tile--light`]:o,[`${p}--tile--slug`]:l,[`${p}--tile--slug-rounded`]:l&&s},a);return i().createElement("div",U({className:u,ref:n},c),t,l)}));dn.displayName="Tile",dn.propTypes={children:Z().node,className:Z().string,hasRoundedCorners:Z().bool,light:Ce(Z().bool),slug:Z().node};const fn=i().forwardRef((function(e,n){let{children:t,className:o,clicked:l=!1,disabled:s,href:c,light:p,onClick:u=(()=>{}),onKeyDown:d=(()=>{}),renderIcon:f,hasRoundedCorners:g,slug:h,...y}=e;const b=q(),m=r()(`${b}--tile`,`${b}--tile--clickable`,{[`${b}--tile--is-clicked`]:l,[`${b}--tile--light`]:p,[`${b}--tile--slug`]:h,[`${b}--tile--slug-rounded`]:h&&g},o),[$,v]=(0,a.useState)(l),w=i().createElement("svg",{className:`${b}--tile--slug-icon`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rn||(rn=i().createElement("rect",{x:"0.5",y:"0.5",width:"23",height:"23"})),ln||(ln=i().createElement("path",{d:"M13.2436 16H11.5996L10.9276 13.864H7.95164L7.29164 16H5.68364L8.49164 7.624H10.4596L13.2436 16ZM10.5436 12.508L9.46364 9.064H9.40364L8.33564 12.508H10.5436ZM17.9341 16H14.1301V14.728H15.2341V8.896H14.1301V7.624H17.9341V8.896H16.8181V14.728H17.9341V16Z",fill:"#161616"}))),x=("enable-v12-tile-default-icons",(0,a.useContext)(on).enabled("enable-v12-tile-default-icons"));x&&(f||(f=en),s&&(f=tn));const A=r()({[`${b}--tile--icon`]:!x||x&&!s,[`${b}--tile--disabled-icon`]:x&&s});return i().createElement(an,U({className:m,href:c,tabIndex:c||s?void 0:0,onClick:s?void 0:function(e){e?.persist?.(),v(!$),u(e)},onKeyDown:function(e){e?.persist?.(),Me(e,[Se,Oe])&&v(!$),d(e)},ref:n,disabled:s},y),h?i().createElement("div",{className:`${b}--tile-content`},t):t,h&&w,f&&i().createElement(f,{className:A,"aria-hidden":"true"}))}));fn.displayName="ClickableTile",fn.propTypes={children:Z().node,className:Z().string,clicked:Z().bool,disabled:Z().bool,hasRoundedCorners:Z().bool,href:Z().string,light:Ce(Z().bool),onClick:Z().func,onKeyDown:Z().func,rel:Z().string,renderIcon:Z().oneOfType([Z().func,Z().object])},i().forwardRef((function(e,n){let{children:t,className:o,disabled:l,id:s,light:c,onClick:p=(()=>{}),onChange:u=(()=>{}),onKeyDown:d=(()=>{}),selected:f=!1,tabIndex:g=0,title:h="title",slug:y,hasRoundedCorners:b,...m}=e;const $=q(),v=p,w=d,[x,A]=(0,a.useState)(f),[k,_]=(0,a.useState)(f),C=r()(`${$}--tile`,`${$}--tile--selectable`,{[`${$}--tile--is-selected`]:x,[`${$}--tile--light`]:c,[`${$}--tile--disabled`]:l,[`${$}--tile--slug`]:y,[`${$}--tile--slug-rounded`]:y&&b},o);f!==k&&(A(f),_(f));const z=(0,a.useRef)(null);let E;return y&&"Slug"===y.type?.displayName&&(E=i().cloneElement(y,{size:"xs",ref:z})),i().createElement("div",U({className:C,onClick:l?void 0:function(e){e.preventDefault(),e?.persist?.(),y&&z.current&&z.current.contains(e.target)||(A(!x),v(e),u(e))},role:"checkbox","aria-checked":x,onKeyDown:l?void 0:function(e){e?.persist?.(),Me(e,[Se,Oe])&&(e.preventDefault(),A(!x),u(e)),w(e)},tabIndex:l?void 0:g,ref:n,id:s,onChange:l?void 0:function(e){A(e.target.checked),u(e)},title:h},m),i().createElement("span",{className:`${$}--tile__checkmark ${$}--tile__checkmark--persistent`},x?sn||(sn=i().createElement(he,null)):cn||(cn=i().createElement(ge,null))),i().createElement(Ee,{as:"label",htmlFor:s,className:`${$}--tile-content`},t),E)})).propTypes={children:Z().node,className:Z().string,disabled:Z().bool,hasRoundedCorners:Z().bool,id:Z().string,light:Ce(Z().bool),name:Z().string,onChange:Z().func,onClick:Z().func,onKeyDown:Z().func,selected:Z().bool,slug:Z().node,tabIndex:Z().number,title:Z().string,value:Z().oneOfType([Z().string,Z().number]).isRequired};const gn=i().forwardRef((function(e,n){let{tabIndex:t=0,className:o,children:l,expanded:s=!1,tileMaxHeight:c=0,tilePadding:p=0,onClick:u,onKeyUp:d,tileCollapsedIconText:f="Interact to expand Tile",tileExpandedIconText:g="Interact to collapse Tile",tileCollapsedLabel:h,tileExpandedLabel:y,light:b,slug:m,hasRoundedCorners:$,...v}=e;const[w,x]=(0,a.useState)(c),[A,k]=(0,a.useState)(p),[_,C]=(0,a.useState)(s),[z,E]=(0,a.useState)(c),[M,N]=(0,a.useState)(p),[S,T]=(0,a.useState)(s),[O,D]=(0,a.useState)(!0),B=(0,a.useRef)(null),I=(0,a.useRef)(null),L=(0,a.useRef)(null),R=(0,a.useRef)(null),F=Le([n,R]),P=q();function j(){S&&L.current&&x(L.current.getBoundingClientRect()?.height),B.current&&x(B.current.getBoundingClientRect().height)}function H(e){e?.persist?.(),T(!S),j()}function V(e){e.target!==R.current&&Me(e,[Se,Oe])&&e.preventDefault()}s!==_&&(T(s),C(s),j()),c!==z&&(x(c),E(c)),p!==M&&(k(p),N(p));const W=r()(`${P}--tile`,`${P}--tile--expandable`,{[`${P}--tile--is-expanded`]:S,[`${P}--tile--light`]:b},o),Z=r()(`${P}--tile`,`${P}--tile--expandable`,`${P}--tile--expandable--interactive`,{[`${P}--tile--is-expanded`]:S,[`${P}--tile--light`]:b,[`${P}--tile--slug`]:m,[`${P}--tile--slug-rounded`]:m&&$},o),G=r()(`${P}--tile__chevron`,`${P}--tile__chevron--interactive`),K=i().Children.toArray(l);Ie((()=>{if(!R.current||!B.current)return;const e=window.getComputedStyle(R.current,null),{current:n}=B,{height:t}=n.getBoundingClientRect(),a=parseInt(e.getPropertyValue("padding-top"),10),i=parseInt(e.getPropertyValue("padding-bottom"),10);x(t),k(a+i)}),[w]),Ie((()=>{B.current&&I.current&&(Ue(I.current)||Ve(I.current)||Ue(B.current)||Ve(B.current)||m||D(!1))}),[m]),Ie((()=>{R.current&&(R.current.style.maxHeight=S?"":w+A+"px")}),[S,w,A]),(0,a.useEffect)((()=>{if(!B.current)return;const e=new ResizeObserver((e=>{const[n]=e;x(n.contentRect.height)}));return e.observe(B.current),()=>e.disconnect()}),[]);const Y=ke("expandable-tile-interactive");let Q;return m&&"Slug"===m.type?.displayName&&(Q=i().cloneElement(m,{size:"xs"})),O?i().createElement("div",U({ref:F,className:Z},v),i().createElement("div",{ref:L},Q,i().createElement("div",{ref:B,className:`${P}--tile-content`},K[0]),i().createElement("button",{type:"button","aria-expanded":S,"aria-controls":Y,onKeyUp:Ge([d,V]),onClick:Ge([u,H]),"aria-label":S?g:f,className:G},pn||(pn=i().createElement(ye,null))),i().createElement("div",{ref:I,className:`${P}--tile-content`,id:Y},K[1]))):i().createElement("button",U({type:"button",ref:F,className:W,"aria-expanded":S,title:S?g:f},v,{onKeyUp:Ge([d,V]),onClick:Ge([u,H]),tabIndex:t}),i().createElement("div",{ref:L},i().createElement("div",{ref:B,className:`${P}--tile-content`},K[0]),i().createElement("div",{className:`${P}--tile__chevron`},i().createElement("span",null,S?y:h),un||(un=i().createElement(ye,null))),i().createElement("div",{ref:I,className:`${P}--tile-content`},K[1])))}));gn.propTypes={children:Z().node,className:Z().string,expanded:Z().bool,hasRoundedCorners:Z().bool,id:Z().string,light:Ce(Z().bool),onClick:Z().func,onKeyUp:Z().func,slug:Z().node,tabIndex:Z().number,tileCollapsedIconText:Z().string,tileCollapsedLabel:Z().string,tileExpandedIconText:Z().string,tileExpandedLabel:Z().string},gn.displayName="ExpandableTile";const hn=i().forwardRef((function(e,n){let{children:t}=e;const a=q();return i().createElement("span",{ref:n,className:`${a}--tile-content__above-the-fold`},t)}));hn.propTypes={children:Z().node},hn.displayName="TileAboveTheFoldContent";const yn=i().forwardRef((function(e,n){let{children:t}=e;const a=q();return i().createElement("span",{ref:n,className:`${a}--tile-content__below-the-fold`},t)}));yn.propTypes={children:Z().node},yn.displayName="TileBelowTheFoldContent";const bn=i().createContext(1),mn=["one","two","three"],$n=mn.length-1,vn=i().forwardRef((function(e,n){let{as:t="div",className:a,children:o,level:l,...s}=e;const c=i().useContext(bn),p=l??c,u=q(),d=r()(`${u}--layer-${mn[p]}`,a),f=Math.max(0,Math.min(p+1,$n)),g=t;return i().createElement(bn.Provider,{value:f},i().createElement(g,U({ref:n},s,{className:d}),o))}));vn.displayName="Layer",vn.propTypes={as:Z().oneOfType([Z().func,Z().string,Z().elementType]),children:Z().node,className:Z().string,level:Z().oneOf([0,1,2])};const wn=vn;var xn,An,kn,_n;const Cn=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return"glyph"===a||"glyph"===a||"glyphpx"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5 8",fill:"currentColor",...o},xn||(xn=i().createElement("path",{d:"M5 8L0 4 5 0z"})),t):i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},An||(An=i().createElement("path",{d:"M20 24L10 16 20 8z"})),t)})),zn=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return"glyph"===a||"glyph"===a||"glyphpx"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5 8",fill:"currentColor",...o},kn||(kn=i().createElement("path",{d:"M0 0L5 4 0 8z"})),t):i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},_n||(_n=i().createElement("path",{d:"M12 8L22 16 12 24z"})),t)}));var En,Mn,Nn,Sn,Tn,On,Dn,Bn,In,Ln,Rn;const Fn=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},En||(En=i().createElement("path",{fill:"none",d:"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z","data-icon-path":"inner-path"})),Mn||(Mn=i().createElement("path",{d:"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"})),Nn||(Nn=i().createElement("path",{d:"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"})),t)})),Pn=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return 16===a||"16"===a||"16px"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},Sn||(Sn=i().createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),Tn||(Tn=i().createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),t):20===a||"20"===a||"20px"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...o},On||(On=i().createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1 s1,0.4,1,1S10.6,16,10,16z"})),Dn||(Dn=i().createElement("path",{d:"M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S10.6,16,10,16z","data-icon-path":"inner-path",opacity:"0"})),t):24===a||"24"===a||"24px"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...o},Bn||(Bn=i().createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11C23,5.9,18.1,1,12,1z M11.1,6h1.8v8h-1.8V6z M12,19.2 c-0.7,0-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2s1.2,0.6,1.2,1.2S12.7,19.2,12,19.2z"})),In||(In=i().createElement("path",{fill:"none",d:"M13.2,18c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2S13.2,17.3,13.2,18z M12.9,6 h-1.8v8h1.8V6z","data-icon-path":"inner-path",opacity:"0"})),t):i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Ln||(Ln=i().createElement("path",{d:"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14C30,8.3,23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,25 c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22c0.8,0,1.5,0.7,1.5,1.5S16.8,25,16,25z"})),Rn||(Rn=i().createElement("path",{fill:"none",d:"M17.5,23.5c0,0.8-0.7,1.5-1.5,1.5c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22 C16.8,22,17.5,22.7,17.5,23.5z M17.1,8h-2.2v11h2.2V8z","data-icon-path":"inner-path",opacity:"0"})),t)})),jn=(0,a.createContext)({isFluid:!1}),Hn=me(),Un=i().forwardRef((function(e,n){let{className:t,id:o,inline:l=!1,labelText:s="Select",disabled:c=!1,children:p,noLabel:u=!1,hideLabel:d=!1,invalid:f=!1,invalidText:g="",helperText:h="",light:y=!1,readOnly:b,size:m,warn:$=!1,warnText:v,onChange:w,slug:x,...A}=e;const k=q(),{isFluid:_}=(0,a.useContext)(jn),[C,z]=(0,a.useState)(!1),[E,M]=(0,a.useState)(""),{current:N}=(0,a.useRef)(Hn()),S=r()({[`${k}--select`]:!0,[`${k}--select--inline`]:l,[`${k}--select--light`]:y,[`${k}--select--invalid`]:f,[`${k}--select--disabled`]:c,[`${k}--select--readonly`]:b,[`${k}--select--warning`]:$,[`${k}--select--fluid--invalid`]:_&&f,[`${k}--select--fluid--focus`]:_&&C,[`${k}--select--slug`]:x}),T=r()(`${k}--label`,{[`${k}--visually-hidden`]:d,[`${k}--label--disabled`]:c}),O=r()({[`${k}--select-input`]:!0,[`${k}--select-input--${m}`]:m}),D=`${o}-error-msg`,B=f?g:$?v:void 0,I=f||$?i().createElement(Ee,{as:"div",className:`${k}--form-requirement`,id:D},B):null,L=r()(`${k}--form__helper-text`,{[`${k}--form__helper-text--disabled`]:c}),R=h?`select-helper-text-${N}`:void 0,F=h?i().createElement(Ee,{as:"div",id:R,className:L},h):null,P={};f?P["aria-describedby"]=D:l||_||(P["aria-describedby"]=F?R:void 0);const j=e=>{z("focus"===e.type)},H={onMouseDown:e=>{b&&(e.preventDefault(),e.target.focus())},onKeyDown:e=>{b&&["ArrowDown","ArrowUp"," "].includes(e.key)&&e.preventDefault()}};let V;x&&"Slug"===x.type?.displayName&&(V=i().cloneElement(x,{size:"mini"}));const W=i().createElement(i().Fragment,null,i().createElement("select",U({},A,P,{id:o,className:O,disabled:c||void 0,"aria-invalid":f||void 0,"aria-readonly":b||void 0,title:E,onChange:Ge([w,e=>{M(e?.target?.value)}])},H,{ref:n}),p),i().createElement(ye,{className:`${k}--select__arrow`}),f&&i().createElement(Pn,{className:`${k}--select__invalid-icon`}),!f&&$&&i().createElement(Fn,{className:`${k}--select__invalid-icon ${k}--select__invalid-icon--warning`}));return i().createElement("div",{className:r()(`${k}--form-item`,t)},i().createElement("div",{className:S},!u&&i().createElement(Ee,{as:"label",htmlFor:o,className:T},s),l&&i().createElement("div",{className:`${k}--select-input--inline__wrapper`},i().createElement("div",{className:`${k}--select-input__wrapper`,"data-invalid":f||null},W),I),!l&&i().createElement("div",{className:`${k}--select-input__wrapper`,"data-invalid":f||null,onFocus:j,onBlur:j},W,V,_&&i().createElement("hr",{className:`${k}--select__divider`}),_&&I?I:null),l||_||!I?F:I))}));Un.displayName="Select",Un.propTypes={children:Z().node,className:Z().string,defaultValue:Z().any,disabled:Z().bool,helperText:Z().node,hideLabel:Z().bool,id:Z().string.isRequired,inline:Z().bool,invalid:Z().bool,invalidText:Z().node,labelText:Z().node,light:Ce(Z().bool),noLabel:Z().bool,onChange:Z().func,readOnly:Z().bool,size:Z().oneOf(["sm","md","lg"]),slug:Z().node,warn:Z().bool,warnText:Z().node};const Vn=e=>{let{className:n,value:t="",disabled:a=!1,hidden:o=!1,text:l="",...s}=e;const c=q(),p=r()({[`${c}--select-option`]:!0,...n&&{[n]:n}});return i().createElement("option",U({},s,{className:p,value:t,disabled:a,hidden:o}),l)};var qn,Wn;function Zn(e){return"object"==typeof e[0]&&null!==e[0]?e:e.map((e=>({text:e,value:e})))}function Gn(e,n){return n&&e.find((e=>n===e.value))?n:e[0].value}Vn.propTypes={className:Z().string,disabled:Z().bool,hidden:Z().bool,text:Z().string.isRequired,value:Z().any.isRequired};const Kn=i().forwardRef((function(e,n){let{backwardText:t="Previous page",className:o,disabled:l=!1,forwardText:s="Next page",id:c,isLastPage:p=!1,itemText:u=((e,n)=>`${e}–${n} items`),itemRangeText:d=((e,n,t)=>`${e}–${n} of ${t} items`),itemsPerPageText:f="Items per page:",onChange:g,pageNumberText:h="Page Number",pageRangeText:y=((e,n)=>`of ${n} ${1===n?"page":"pages"}`),page:b=1,pageInputDisabled:m,pageSize:$,pageSizeInputDisabled:v,pageSizes:w,pageText:x=((e,n)=>`page ${n?"":e}`),pagesUnknown:A=!1,size:k="md",totalItems:_,...C}=e;const z=q(),E=function(e){const n=ke();return e??n}(c),M=(0,a.useRef)(null),N=(0,a.useRef)(null),[S,T]=(0,a.useState)((()=>Zn(w))),[O,D]=(0,a.useState)(w),[B,I]=(0,a.useState)(b),[L,R]=(0,a.useState)(b),[F,P]=(0,a.useState)((()=>Gn(S,$))),[j,H]=(0,a.useState)($),V=r()({[`${z}--pagination`]:!0,[`${z}--pagination--${k}`]:k,[o]:!!o}),W=Math.max(Math.ceil(_/F),1),Z=l||1===B,G=r()({[`${z}--pagination__button`]:!0,[`${z}--pagination__button--backward`]:!0,[`${z}--pagination__button--no-index`]:Z}),K=l||B===W,Y=r()({[`${z}--pagination__button`]:!0,[`${z}--pagination__button--forward`]:!0,[`${z}--pagination__button--no-index`]:K}),Q=function(e){let n=1,t=[];for(;n<=e;)t.push(i().createElement(Vn,{key:n,value:n,text:String(n)})),n++;return t}(W);if(b!==L&&(I(b),R(b)),$!==j&&(P(Gn(S,$)),H($)),!function(e,n){if(!Array.isArray(e)||!Array.isArray(n)||e.length!==n.length)return!1;if(e===n)return!0;for(let t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}(w,O)){const e=Zn(w),n=e.find((e=>e.value===F));n||I(1),T(e),D(w)}return i().createElement("div",U({className:V,ref:n},C),i().createElement("div",{className:`${z}--pagination__left`},i().createElement("label",{id:`${z}-pagination-select-${E}-count-label`,className:`${z}--pagination__text`,htmlFor:`${z}-pagination-select-${E}`},f),i().createElement(Un,{id:`${z}-pagination-select-${E}`,className:`${z}--select__item-count`,labelText:"",hideLabel:!0,noLabel:!0,inline:!0,onChange:function(e){const n={pageSize:Number(e.target.value),page:1};I(n.page),P(n.pageSize),g&&g(n)},disabled:v||l,value:F},S.map((e=>i().createElement(Vn,{key:e.value,value:e.value,text:String(e.text)})))),i().createElement("span",{className:`${z}--pagination__text ${z}--pagination__items-count`},A?u(F*(B-1)+1,B*F):d(Math.min(F*(B-1)+1,_),Math.min(B*F,_),_))),i().createElement("div",{className:`${z}--pagination__right`},A?i().createElement("span",{className:`${z}--pagination__text ${z}--pagination__page-text`},A?x(B,A):y(B,W)):null,i().createElement(Un,{id:`${z}-pagination-select-${E}-right`,className:`${z}--select__page-number`,labelText:`Page number, of ${W} pages`,inline:!0,hideLabel:!0,onChange:function(e){const n=Number(e.target.value);n>0&&n<=Math.max(Math.ceil(_/F),1)&&(I(n),g&&g({page:n,pageSize:F}))},value:B,disabled:m||l},Q),A?null:i().createElement("span",{className:`${z}--pagination__text`},A?x(B,A):y(B,W)),i().createElement("div",{className:`${z}--pagination__control-buttons`},i().createElement(Ze,{align:"top",disabled:Z,kind:"ghost",className:G,label:t,onClick:function(){const e=B-1;I(e),1===e&&N.current.focus(),g&&g({page:e,pageSize:F,forwardBtnRef:N})},ref:M},qn||(qn=i().createElement(Cn,null))),i().createElement(Ze,{align:"top-right",disabled:K||p,kind:"ghost",className:Y,label:s,onClick:function(){const e=B+1;I(e),e===W&&M.current.focus(),g&&g({page:e,pageSize:F,backBtnRef:M})},ref:N},Wn||(Wn=i().createElement(zn,null))))))}));Kn.propTypes={backwardText:Z().string,className:Z().string,disabled:Z().bool,forwardText:Z().string,id:Z().oneOfType([Z().string,Z().number]),isLastPage:Z().bool,itemRangeText:Z().func,itemText:Z().func,itemsPerPageText:Z().string,onChange:Z().func,page:Z().number,pageInputDisabled:Z().bool,pageNumberText:Z().string,pageRangeText:Z().func,pageSize:Z().number,pageSizeInputDisabled:Z().bool,pageSizes:Z().oneOfType([Z().arrayOf(Z().number),Z().arrayOf(Z().shape({text:Z().text,value:Z().number}))]).isRequired,pageText:Z().func,pagesUnknown:Z().bool,size:Z().oneOf(["sm","md","lg"]),totalItems:Z().number};var Yn=Kn,Qn=function(e){var n=e.width,t=void 0===n?"64":n,a=e.height,o=void 0===a?"64":a;return i().createElement("svg",{width:t,height:o,viewBox:"0 0 64 64"},i().createElement("title",null,"Empty data illustration"),i().createElement("g",{fill:"none",fillRule:"evenodd"},i().createElement("path",{d:"M38.133 13.186H21.947c-.768.001-1.39.623-1.39 1.391V50.55l-.186.057-3.97 1.216a.743.743 0 01-.927-.493L3.664 12.751a.742.742 0 01.492-.926l6.118-1.874 17.738-5.43 6.119-1.873a.741.741 0 01.926.492L38.076 13l.057.186z",fill:"#F4F4F4"}),i().createElement("path",{d:"M41.664 13L38.026 1.117A1.576 1.576 0 0036.056.07l-8.601 2.633-17.737 5.43-8.603 2.634a1.578 1.578 0 00-1.046 1.97l12.436 40.616a1.58 1.58 0 001.969 1.046l5.897-1.805.185-.057v-.194l-.185.057-5.952 1.822a1.393 1.393 0 01-1.737-.923L.247 12.682a1.39 1.39 0 01.923-1.738L9.772 8.31 27.51 2.881 36.112.247a1.393 1.393 0 011.737.923L41.47 13l.057.186h.193l-.057-.185z",fill:"#8D8D8D"}),i().createElement("path",{d:"M11.378 11.855a.836.836 0 01-.798-.59L9.385 7.361a.835.835 0 01.554-1.042l16.318-4.996a.836.836 0 011.042.554l1.195 3.902a.836.836 0 01-.554 1.043l-16.318 4.995a.831.831 0 01-.244.037z",fill:"#C6C6C6"}),i().createElement("circle",{fill:"#C6C6C6",cx:17.636,cy:2.314,r:1.855}),i().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:17.636,cy:2.314,r:1.175}),i().createElement("path",{d:"M55.893 53.995H24.544a.79.79 0 01-.788-.789V15.644a.79.79 0 01.788-.788h31.349a.79.79 0 01.788.788v37.562a.79.79 0 01-.788.789z",fill:"#F4F4F4"}),i().createElement("path",{d:"M41.47 13H21.948a1.579 1.579 0 00-1.576 1.577V52.4l.185-.057V14.577c.001-.768.623-1.39 1.391-1.39h19.581L41.471 13zm17.02 0H21.947a1.579 1.579 0 00-1.576 1.577v42.478c0 .87.706 1.576 1.576 1.577H58.49a1.579 1.579 0 001.576-1.577V14.577a1.579 1.579 0 00-1.576-1.576zm1.39 44.055c0 .768-.622 1.39-1.39 1.392H21.947c-.768-.001-1.39-.624-1.39-1.392V14.577c0-.768.622-1.39 1.39-1.39H58.49c.768 0 1.39.622 1.39 1.39v42.478z",fill:"#8D8D8D"}),i().createElement("path",{d:"M48.751 17.082H31.686a.836.836 0 01-.835-.835v-4.081c0-.46.374-.834.835-.835H48.75c.461 0 .834.374.835.835v4.08c0 .462-.374.835-.835.836z",fill:"#C6C6C6"}),i().createElement("circle",{fill:"#C6C6C6",cx:40.218,cy:9.755,r:1.855}),i().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:40.218,cy:9.755,r:1.13})))},Xn=t(1907),Jn={};Jn.styleTagTransform=$(),Jn.setAttributes=h(),Jn.insert=f().bind(null,"head"),Jn.domAPI=u(),Jn.insertStyleElement=b(),c()(Xn.Z,Jn);const et=Xn.Z&&Xn.Z.locals?Xn.Z.locals:void 0;var nt=function(e){var n=(0,z.useTranslation)("@openmrs/esm-patient-chart-app").t,t="tablet"===(0,l.useLayoutType)();return i().createElement(wn,{className:et.layer},i().createElement(dn,{className:et.tile},i().createElement("div",{className:t?et.tabletHeading:et.desktopHeading},i().createElement("h4",null,e.headerTitle)),i().createElement(Qn,null),i().createElement("p",{className:et.content},n("emptyStateText","There are no {{displayText}} to display for this patient",{displayText:e.displayText.toLowerCase()})),i().createElement("p",{className:et.action},e.launchForm&&i().createElement(Ke,{onClick:function(){return e.launchForm()},kind:"ghost",size:t?"lg":"sm"},n("record","Record")," ",e.displayText.toLowerCase()))))},tt=t(5482),at={};at.styleTagTransform=$(),at.setAttributes=h(),at.insert=f().bind(null,"head"),at.domAPI=u(),at.insertStyleElement=b(),c()(tt.Z,at);const it=tt.Z&&tt.Z.locals?tt.Z.locals:void 0;var ot=function(e){var n,t,a,o,r=e.error,s=e.headerTitle,c=(0,z.useTranslation)("@openmrs/esm-patient-chart-app").t,p="tablet"===(0,l.useLayoutType)();return i().createElement(wn,null,i().createElement(dn,{className:it.tile},i().createElement("div",{className:p?it.tabletHeading:it.desktopHeading},i().createElement("h4",null,s)),i().createElement("p",{className:it.errorMessage},c("error","Error")," ","".concat(null===(t=r)||void 0===t||null===(n=t.response)||void 0===n?void 0:n.status,": "),null===(o=r)||void 0===o||null===(a=o.response)||void 0===a?void 0:a.statusText),i().createElement("p",{className:it.errorCopy},c("errorCopy","Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above."))))},rt=t(9432),lt="clinical-forms-workspace",st="patient-form-entry-workspace",ct="patient-html-form-entry-workspace";function pt(e,n,t,a,i,o,r,l,s,c){var p=arguments.length>10&&void 0!==arguments[10]?arguments[10]:lt,u=arguments.length>11&&void 0!==arguments[11]?arguments[11]:st,d=arguments.length>12&&void 0!==arguments[12]?arguments[12]:ct;if(a){var f=e.find((function(e){return e.formUuid===t}));f?dt(n,o,i,a,f,d):ut(t,n,i,o,a,r,l,s,f,c,p,u)}else(0,rt.launchStartVisitPrompt)()}function ut(e,n,t,a,i,o,r,l,s,c){var p=arguments.length>10&&void 0!==arguments[10]?arguments[10]:lt,u=arguments.length>11&&void 0!==arguments[11]?arguments[11]:st;(0,rt.launchPatientWorkspace)(u,{workspaceTitle:a,clinicalFormsWorkspaceName:p,formEntryWorkspaceName:u,patientUuid:n,mutateForm:c,formInfo:{encounterUuid:t,formUuid:e,patientUuid:n,visitTypeUuid:o,visitUuid:i,visitStartDatetime:r,visitStopDatetime:l,htmlForm:s}})}function dt(e,n,t,a,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:ct;(0,rt.launchPatientWorkspace)(o,{workspaceTitle:n,patientUuid:e,formInfo:{encounterUuid:t,visitUuid:a,htmlForm:i}})}var ft=(0,l.createGlobalStore)("patient-chart-global-store",{patientUuid:""});function gt(){return ft}function ht(){return(0,l.useStore)(ft)}function yt(){var e;return null===(e=ft.getState())||void 0===e?void 0:e.patientUuid}function bt(){var e=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return e&&e[1]||yt()}function mt(){var e=(0,l.showModal)("start-visit-dialog",{closeModal:function(){return e()}})}var $t=function(e){var n=e.title,t=e.slotName,o=e.basePath,r=e.isExpanded,s=(0,z.useTranslation)().t;return(0,a.useEffect)((function(){At(t)}),[t]),i().createElement(Y,null,i().createElement(Be,{open:null==r||r,title:s(n),style:{border:"none"}},i().createElement(l.ExtensionSlot,{name:null!=t?t:n,state:{basePath:o}})))},vt=function(e){var n=e.title,t=e.slotName,a=e.isExpanded;return function(e){var o=e.basePath;return i().createElement($t,{title:n,slotName:t,basePath:o,isExpanded:a})}};function wt(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}var xt=(0,l.createGlobalStore)("nav-groups",{navGroups:[]});function At(e){var n,t=xt.getState();xt.setState({navGroups:[e].concat((n=t.navGroups,function(e){if(Array.isArray(e))return wt(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,n){if(e){if("string"==typeof e)return wt(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)?wt(e,n):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})}var kt,_t=(0,l.createUseStore)(xt),Ct=new Uint8Array(16);function zt(){if(!kt&&!(kt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return kt(Ct)}const Et=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Mt=[],Nt=0;Nt<256;++Nt)Mt.push((Nt+256).toString(16).substr(1));const St=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(Mt[e[n+0]]+Mt[e[n+1]]+Mt[e[n+2]]+Mt[e[n+3]]+"-"+Mt[e[n+4]]+Mt[e[n+5]]+"-"+Mt[e[n+6]]+Mt[e[n+7]]+"-"+Mt[e[n+8]]+Mt[e[n+9]]+"-"+Mt[e[n+10]]+Mt[e[n+11]]+Mt[e[n+12]]+Mt[e[n+13]]+Mt[e[n+14]]+Mt[e[n+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&Et.test(e)}(t))throw TypeError("Stringified UUID is invalid");return t},Tt=function(e,n,t){var a=(e=e||{}).random||(e.rng||zt)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,n){t=t||0;for(var i=0;i<16;++i)n[t+i]=a[i];return n}return St(a)};function Ot(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 Dt(e,n,t,a,i,o,r){try{var l=e[o](r),s=l.value}catch(e){return void t(e)}l.done?n(s):Promise.resolve(s).then(a,i)}function Bt(e){return function(){var n=this,t=arguments;return new Promise((function(a,i){var o=e.apply(n,t);function r(e){Dt(o,a,i,r,l,"next",e)}function l(e){Dt(o,a,i,r,l,"throw",e)}r(void 0)}))}}function It(e,n){var t,a,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,a=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!((i=(i=r.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(6===o[0]&&r.label<i[1]){r.label=i[1],i=o;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(o);break}i[2]&&r.ops.pop(),r.trys.pop();continue}o=n.call(e,r)}catch(e){o=[6,e],a=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}var Lt="visit";function Rt(e){var n=(0,l.useConnectivity)(),t=(0,l.useVisit)(e),a=Ft(e);return n?t:a}function Ft(e){var n=function(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,o=[],r=!0,l=!1;try{for(t=t.call(e);!(r=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);r=!0);}catch(e){l=!0,i=e}finally{try{r||null==t.return||t.return()}finally{if(l)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Ot(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)?Ot(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.")}()}((0,a.useState)({data:null,error:null,isLoading:!0}),2),t=n[0],i=n[1];return(0,a.useEffect)((function(){jt(e).then((function(e){i({error:null,data:e?qt(e):null,isLoading:!1})})).catch((function(e){i({error:e,data:null,isLoading:!1})}))}),[e]),{activeVisit:t.data,currentVisit:t.data,isLoading:t.isLoading,isValidating:!1,currentVisitIsRetrospective:!1,error:t.error,mutate:function(){}}}function Pt(e,n){var t,i,o=(0,l.useConnectivity)(),r=null===(i=(0,l.useSession)())||void 0===i||null===(t=i.sessionLocation)||void 0===t?void 0:t.uuid,s=Ft(e),c=s.currentVisit,p=s.isValidating,u=s.error,d=s.mutate;(0,a.useEffect)((function(){o||p||c||u||Ut(e,r,n,new Date).finally((function(){return d()}))}),[o,c,p,u,d,r,n,e])}function jt(e){return Ht.apply(this,arguments)}function Ht(){return(Ht=Bt((function(e){return It(this,(function(n){switch(n.label){case 0:return[4,(0,l.getSynchronizationItems)(Lt)];case 1:return[2,n.sent().find((function(n){return n.patient===e}))]}}))}))).apply(this,arguments)}function Ut(e,n,t,a){return Vt.apply(this,arguments)}function Vt(){return(Vt=Bt((function(e,n,t,a){var i,o,r,s;return It(this,(function(c){switch(c.label){case 0:return[4,(0,l.getSynchronizationItems)("patient-registration")];case 1:return i=c.sent(),o=i.some((function(n){return n.fhirPatient.id===e})),r={uuid:Tt(),patient:e,startDatetime:a,location:n,visitType:t},s={id:r.uuid,displayName:"Offline visit",patientUuid:e,dependencies:o?[{type:"patient-registration",id:e}]:[]},[4,(0,l.queueSynchronizationItem)(Lt,r,s)];case 2:return c.sent(),[2,r]}}))}))).apply(this,arguments)}function qt(e){var n,t;return{uuid:e.uuid,startDatetime:null===(n=e.startDatetime)||void 0===n?void 0:n.toString(),stopDatetime:null===(t=e.stopDatetime)||void 0===t?void 0:t.toString(),encounters:[],visitType:{uuid:e.visitType,display:"Offline"},patient:{uuid:e.patient}}}var Wt=(0,l.createGlobalStore)("order-basket",{items:{},postDataPrepFunctions:{}});function Zt(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 Gt(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Kt(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){Gt(e,n,t[n])}))}return e}function Yt(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t.push.apply(t,a)}return t}(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})),e}var Qt={setOrderBasketItems:function(e,n,t){var a,i,o,r=yt();return Object.keys(e.postDataPrepFunctions).includes(n)||console.warn("Programming error: You must register a postDataPrepFunction for grouping ".concat(n," ")),{items:Yt(Kt({},null===(a=e)||void 0===a?void 0:a.items),Gt({},r,Yt(Kt({},null===(o=e)||void 0===o||null===(i=o.items)||void 0===i?void 0:i[r]),Gt({},n,"function"==typeof t?t():t))))}},setPostDataPrepFunctionForGrouping:function(e,n,t){return{postDataPrepFunctions:Yt(Kt({},e.postDataPrepFunctions),Gt({},n,t))}}};function Xt(e){var n,t,a,i=null!==(t=null===(n=e)||void 0===n?void 0:n.exceptThoseMatching)&&void 0!==t?t:function(){return!1},o=yt(),r=null!==(a=Wt.getState().items[o])&&void 0!==a?a:{},l=Object.fromEntries(Object.entries(r).map((function(e){var n=function(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,o=[],r=!0,l=!1;try{for(t=t.call(e);!(r=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);r=!0);}catch(e){l=!0,i=e}finally{try{r||null==t.return||t.return()}finally{if(l)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Zt(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)?Zt(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.")}()}(e,2);return[n[0],n[1].filter(i)]})));Wt.setState((function(e){return{items:Yt(Kt({},e.items),Gt({},o,l))}}))}function Jt(e,n){var t=(0,l.useStoreWithActions)(Wt,Qt),i=t.items,o=t.postDataPrepFunctions,r=t.setOrderBasketItems,s=t.setPostDataPrepFunctionForGrouping,c=function(e,n){var t,a,i,o=yt(),r=null!==(a=null===(t=e)||void 0===t?void 0:t[o])&&void 0!==a?a:{};return n?null!==(i=r[n])&&void 0!==i?i:[]:Object.values(r).flat()}(i,e);return(0,a.useEffect)((function(){n&&!o[e]&&s(e,n)}),[n,e,o,s]),"string"==typeof e?{orders:c,clearOrders:Xt,setOrders:function(n){return r(e,n)}}:{orders:c,clearOrders:Xt,setOrders:function(e,n){r(e,n)}}}function ea(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 na(e,n,t,a,i,o,r){try{var l=e[o](r),s=l.value}catch(e){return void t(e)}l.done?n(s):Promise.resolve(s).then(a,i)}function ta(e){return function(){var n=this,t=arguments;return new Promise((function(a,i){var o=e.apply(n,t);function r(e){na(o,a,i,r,l,"next",e)}function l(e){na(o,a,i,r,l,"throw",e)}r(void 0)}))}}function aa(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ia(e,n){var t,a,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,a=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!((i=(i=r.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(6===o[0]&&r.label<i[1]){r.label=i[1],i=o;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(o);break}i[2]&&r.ops.pop(),r.trys.pop();continue}o=n.call(e,r)}catch(e){o=[6,e],a=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function oa(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],a=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function ra(e,n,t,a,i){return la.apply(this,arguments)}function la(){return(la=ta((function(e,n,t,a,i){var o,r,s,c,p,u,d,f,g,h,y,b,m,$;return ia(this,(function(v){return p=new Date,u=(0,l.parseDate)(null===(o=t)||void 0===o?void 0:o.startDatetime),d=(0,l.parseDate)(null===(r=t)||void 0===r?void 0:r.stopDatetime),!t||u<p&&(!d||d>p)?f=p:(console.warn("postOrdersOnNewEncounter received an active visit that is not currently active. This is a programming error. Attempting to place the order using the visit start date."),f=u),g=Wt.getState(),h=g.items,y=g.postDataPrepFunctions,b=h[e],m=[],Object.entries(b).forEach((function(n){var t=function(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,o=[],r=!0,l=!1;try{for(t=t.call(e);!(r=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);r=!0);}catch(e){l=!0,i=e}finally{try{r||null==t.return||t.return()}finally{if(l)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return ea(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)?ea(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.")}()}(n,2),a=t[0];t[1].forEach((function(n){m.push(y[a](n,e,null))}))})),$={patient:e,location:a,encounterType:n,encounterDatetime:f,visit:null===(s=t)||void 0===s?void 0:s.uuid,obs:[],orders:m},[2,(0,l.openmrsFetch)("".concat(l.restBaseUrl,"/encounter"),{headers:{"Content-Type":"application/json"},method:"POST",body:$,signal:null===(c=i)||void 0===c?void 0:c.signal}).then((function(e){var n,t;return null===(t=e)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.uuid}))]}))}))).apply(this,arguments)}function sa(e,n){return ca.apply(this,arguments)}function ca(){return ca=ta((function(e,n){var t,a,i,o,r,l,s,c,p,u,d;return ia(this,(function(f){switch(f.label){case 0:for(p in t=function(t){var i,o,c;return ia(this,(function(p){switch(p.label){case 0:i=function(i){var l,c;return ia(this,(function(p){switch(p.label){case 0:return l=o[i],"function"!=typeof(c=r[t])?(console.warn("The postDataPrep function registered for ".concat(t," orders is not a function")),[2,"continue"]):[4,pa(c(l,a,e),n).catch((function(e){var n,t;s.push((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){aa(e,n,t[n])}))}return e}({},l),t=null!=(t={orderError:e,extractedOrderError:ua(e)})?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t.push.apply(t,a)}return t}(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n))}))];case 1:return p.sent(),[2]}}))},o=l[t],c=0,p.label=1;case 1:return c<o.length?[5,oa(i(c))]:[3,4];case 2:p.sent(),p.label=3;case 3:return c++,[3,1];case 4:return[2]}}))},a=yt(),i=Wt.getState(),o=i.items,r=i.postDataPrepFunctions,l=o[a],s=[],c=[],l)c.push(p);u=0,f.label=1;case 1:return u<c.length?(d=c[u],[5,oa(t(d))]):[3,4];case 2:f.sent(),f.label=3;case 3:return u++,[3,1];case 4:return[2,s]}}))})),ca.apply(this,arguments)}function pa(e,n){var t;return(0,l.openmrsFetch)("".concat(l.restBaseUrl,"/order"),{method:"POST",signal:null===(t=n)||void 0===t?void 0:t.signal,headers:{"Content-Type":"application/json"},body:e})}function ua(e){var n,t,a,i,o,r,l={message:null===(t=e.responseBody)||void 0===t||null===(n=t.error)||void 0===n?void 0:n.message,fieldErrors:[],globalErrors:null===(i=e.responseBody)||void 0===i||null===(a=i.error)||void 0===a?void 0:a.globalErrors};if(null===(r=e.responseBody)||void 0===r||null===(o=r.error)||void 0===o?void 0:o.fieldErrors){var s,c,p=null===(c=e.responseBody)||void 0===c||null===(s=c.error)||void 0===s?void 0:s.fieldErrors;for(var u in p)p[u].forEach((function(e){l.fieldErrors.push(e.message)}))}return l}var da=t(3649),fa="6f0c9a92-6f24-11e3-af88-005056821db0",ga="@openmrs/esm-patient-chart-app",ha="custom:(uuid,dosingType,orderNumber,accessionNumber,patient:ref,action,careSetting:ref,previousOrder:ref,dateActivated,scheduledDate,dateStopped,autoExpireDate,orderType:ref,encounter:ref,orderer:(uuid,display,person:(display)),orderReason,orderReasonNonCoded,orderType,urgency,instructions,commentToFulfiller,drug:(uuid,display,strength,dosageForm:(display,uuid),concept),dose,doseUnits:ref,frequency:ref,asNeeded,asNeededCondition,quantity,quantityUnits:ref,numRefills,dosingInstructions,duration,durationUnits:ref,route:ref,brandName,dispenseAsWritten)";function ya(e,n,t,i,o){var r=(0,da.kY)().mutate,s=i&&o?"".concat(l.restBaseUrl,"/order?patient=").concat(e,"&careSetting=").concat(fa,"&v=full&activatedOnOrAfterDate=").concat(i,"&activatedOnOrBeforeDate=").concat(o):"".concat(l.restBaseUrl,"/order?patient=").concat(e,"&careSetting=").concat(fa,"&v=full&status=").concat(n),c=t?"".concat(s,"&orderType=").concat(t):s,p=(0,da.ZP)(e?c:null,l.openmrsFetch),u=p.data,d=p.error,f=p.isLoading,g=p.isValidating,h=(0,a.useCallback)((function(){return r((function(n){return"string"==typeof n&&n.startsWith("".concat(l.restBaseUrl,"/order?patient=").concat(e))}),u)}),[u,r,e]);return{data:(0,a.useMemo)((function(){var e,n,t;return(null===(n=u)||void 0===n||null===(e=n.data)||void 0===e?void 0:e.results)?null===(t=u.data.results)||void 0===t?void 0:t.sort((function(e,n){return n.dateActivated>e.dateActivated?1:-1})):null}),[u]),error:d,isLoading:f,isValidating:g,mutate:h}}function ba(e){return(0,l.openmrsFetch)("".concat(l.restBaseUrl,"/order/").concat(e,"?v=").concat(ha))}var ma=[{value:"ROUTINE",label:(0,l.translateFrom)(ga,"Routine")},{value:"STAT",label:(0,l.translateFrom)(ga,"Stat")},{value:"ON_SCHEDULED_DATE",label:(0,l.translateFrom)(ga,"On scheduled date")}],$a=t(5907),va=t.n($a);function wa(e){return Promise.all(e.map((function(e){return(0,l.openmrsFetch)(e)})))}function xa(e,n){var t,i=function(e,n){var t,i=va()((null===(t=n)||void 0===t?void 0:t.length)?n.map((function(e){return"".concat(l.restBaseUrl,"/concept/").concat(e,"?v=custom:(display,names:(display),uuid,setMembers:(display,uuid,names:(display),setMembers:(display,uuid,names:(display))))")})):null,wa),o=i.data,r=i.isLoading,s=i.error;return(0,a.useEffect)((function(){s&&(0,l.reportError)(s)})),{data:(0,a.useMemo)((function(){if(r||s)return null;if(n){var t,a,i=null===(t=o)||void 0===t?void 0:t.flatMap((function(e){return e.data.setMembers}));return e?null===(a=i)||void 0===a?void 0:a.filter((function(n){return n.names.some((function(n){return n.display.toLocaleLowerCase().includes(e.toLocaleLowerCase())}))})):i}var l,c;return null!==(c=null===(l=o)||void 0===l?void 0:l.flatMap((function(e){return e.data.results})))&&void 0!==c?c:[]}),[r,s,n,o,e]),isLoading:r,error:s}}(e,(null===(t=n)||void 0===t?void 0:t.length)?n:null),o=i.data,r=i.isLoading,s=i.error;return(0,a.useEffect)((function(){s&&(0,l.reportError)(s)}),[s]),{concepts:(0,a.useMemo)((function(){var e,n;return null===(n=o)||void 0===n||null===(e=n.sort((function(e,n){return e.display.localeCompare(n.display)})))||void 0===e?void 0:e.filter((function(e,n,t){return!n||t[n-1].uuid!==e.uuid}))}),[o]),isLoading:r,error:s}}function Aa(e){var n,t=va()("".concat(l.restBaseUrl,"/ordertype/").concat(e),l.openmrsFetch),i=t.data,o=t.isLoading,r=t.isValidating,s=t.error,c=(0,a.useMemo)((function(){var e;return{isLoadingOrderType:o,orderType:null===(e=i)||void 0===e?void 0:e.data,errorFetchingOrderType:s,isValidatingOrderType:r}}),[null===(n=i)||void 0===n?void 0:n.data,s,o,r]);return c}function ka(){var e,n,t="".concat(l.restBaseUrl,"/ordertype"),i=va()(t,l.openmrsFetch),o=i.data,r=i.error,s=i.isLoading,c=i.isValidating,p=(0,a.useMemo)((function(){var e,n;return{data:null===(n=o)||void 0===n||null===(e=n.data)||void 0===e?void 0:e.results,error:r,isLoading:s,isValidating:c}}),[null===(n=o)||void 0===n||null===(e=n.data)||void 0===e?void 0:e.results,r,s,c]);return p}function _a(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 Ca(e,n,t,i){var o=(0,z.useTranslation)("@openmrs/esm-patient-chart-app").t;return{pageSizes:(0,a.useMemo)((function(){var t,a=Math.ceil(n/e);return isNaN(a)&&(a=0),(t=Array(a).keys(),function(e){if(Array.isArray(e))return _a(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,n){if(e){if("string"==typeof e)return _a(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)?_a(e,n):void 0}}(t)||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.")}()).map((function(n){return(n+1)*e}))}),[e,n]),itemsDisplayed:(0,a.useMemo)((function(){return o("paginationItemsCount","{{pageItemsCount}} / {{count}} items",{count:n,pageItemsCount:e>n?n:e*t>n?e*(t-1)+i:e*t})}),[e,n,t,i,o])}}var za=t(1829),Ea={};Ea.styleTagTransform=$(),Ea.setAttributes=h(),Ea.insert=f().bind(null,"head"),Ea.domAPI=u(),Ea.insertStyleElement=b(),c()(za.Z,Ea);const Ma=za.Z&&za.Z.locals?za.Z.locals:void 0;var Na,Sa=function(e){var n=e.totalItems,t=e.pageSize,a=e.onPageNumberChange,o=e.pageNumber,r=e.dashboardLinkUrl,s=e.currentItems,c=e.dashboardLinkLabel,p=(0,z.useTranslation)("@openmrs/esm-patient-chart-app").t,u=Ca(t,n,o,s),d=u.itemsDisplayed,f=u.pageSizes,g="tablet"===(0,l.useLayoutType)();return i().createElement(i().Fragment,null,n>0&&i().createElement("div",{className:g?Ma.tablet:Ma.desktop},i().createElement("div",null,d,r&&i().createElement(l.ConfigurableLink,{to:r,className:Ma.configurableLink},null!=c?c:p("seeAll","See all"))),i().createElement(Yn,{className:Ma.pagination,page:o,pageSize:t,pageSizes:f,totalItems:n,onChange:a,pageRangeText:function(e,n){return p("paginationPageText","of {{count}} pages",{count:n})},size:g?"lg":"sm"})))};function Ta(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}var Oa,Da={Vitals:1,Biometrics:2,Conditions:3,Medications:4},Ba=function(e){return null!==(Oa=Da[e])&&void 0!==Oa?Oa:(Na=Math).max.apply(Na,function(e){if(Array.isArray(e))return Ta(e)}(n=Object.values(Da))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,n){if(e){if("string"==typeof e)return Ta(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)?Ta(e,n):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())+1;var n},Ia=t(3849),La=function(e){var n,t,i=(0,da.ZP)("".concat(l.restBaseUrl,"/programenrollment?patient=").concat(e,"&v=").concat("custom:(uuid,display,program,dateEnrolled,dateCompleted,location:(uuid,display))"),l.openmrsFetch),o=i.data,r=i.error,s=i.isLoading,c=(0,a.useMemo)((function(){var e;return null!==(t=null===(e=o)||void 0===e?void 0:e.data.results.sort((function(e,n){return n.dateEnrolled>e.dateEnrolled?1:-1})).filter((function(e){return null===e.dateCompleted})))&&void 0!==t?t:[]}),[null===(n=o)||void 0===n?void 0:n.data.results]);return{activePatientEnrollment:(0,Ia.Z)(c,(function(e){var n,t;return null===(t=e)||void 0===t||null===(n=t.program)||void 0===n?void 0:n.uuid})),error:r,isLoading:s}};function Ra(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}var Fa=new RegExp(/^(1[0-2]|0?[1-9]):[0-5][0-9]$/),Pa=function(e,n){if(!e.match(Fa))return[0,0];var t=function(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,o=[],r=!0,l=!1;try{for(t=t.call(e);!(r=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);r=!0);}catch(e){l=!0,i=e}finally{try{r||null==t.return||t.return()}finally{if(l)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Ra(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)?Ra(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.")}()}(e.split(":").map((function(e){return parseInt(e,10)})),2),a=t[0];return a%=12,"PM"===n&&(a+=12),[a,t[1]]};function ja(){var e="".concat(l.restBaseUrl,"/systemsetting?&v=").concat("custom:(value)","&q=").concat("attachments.allowedFileExtensions"),n=va()(e,l.openmrsFetch),t=n.data,i=n.error,o=n.isLoading;return{allowedFileExtensions:(0,a.useMemo)((function(){var e,n,a,i,o,r;return(null===(a=t)||void 0===a||null===(n=a.data)||void 0===n||null===(e=n.results)||void 0===e?void 0:e.length)>0&&(null===(r=t)||void 0===r||null===(o=r.data)||void 0===o||null===(i=o.results[0].value)||void 0===i?void 0:i.toLowerCase().split(","))||void 0}),[t]),error:i,isLoading:o}}function Ha(){var e,n=va()("".concat(l.restBaseUrl,"/systemsetting/visits.enabled?v=custom:(value)"),l.openmrsFetch),t=n.data,i=n.isLoading,o=n.error;return(0,a.useMemo)((function(){var n,a;return{systemVisitEnabled:"true"===(null!==(e=null===(a=t)||void 0===a||null===(n=a.data)||void 0===n?void 0:n.value)&&void 0!==e?e:"true").toLowerCase(),errorFetchingSystemVisitSetting:o,isLoadingSystemVisitSetting:i}}),[t,i,o])}function Ua(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Va(e,n){var t=yt();(0,l.launchWorkspace)(e,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){Ua(e,n,t[n])}))}return e}({patientUuid:t},n))}function qa(e){var n=e.patientUuid,t=e.workspaceName,a=e.dashboardName,i=e.additionalProps;(0,l.navigateAndLaunchWorkspace)({targetUrl:"${openmrsSpaBase}/patient/"+"".concat(n,"/chart")+(a?"/".concat(a):""),workspaceName:t,contextKey:"patient/".concat(n),additionalProps:i})}function Wa(e){var n=ht().patientUuid,t=Ha().systemVisitEnabled,i=Rt(n).currentVisit;return(0,a.useCallback)((function(n){!t||i?Va(e,n):mt()}),[i,t,e])}}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_kenyaemr_esm_appointments_app=globalThis.webpackChunk_kenyaemr_esm_appointments_app||[]).push([[174],{4413:(e,n,t)=>{t.d(n,{Z:()=>l});var a=t(5698),i=t.n(a),o=t(9613),r=t.n(o)()(i());r.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-appointments__card-header__desktopHeader___Qe2fu,.-esm-appointments__card-header__tabletHeader___gFxMA{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0 .75rem 1rem;background-color:#fff}.-esm-appointments__card-header__desktopHeader___Qe2fu h4:after,.-esm-appointments__card-header__tabletHeader___gFxMA h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-appointments__card-header__desktopHeader___Qe2fu{height:3rem}.-esm-appointments__card-header__desktopHeader___Qe2fu h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-appointments__card-header__tabletHeader___gFxMA{height:4.5rem}.-esm-appointments__card-header__tabletHeader___gFxMA h4{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);color:#525252}html[dir=rtl] .-esm-appointments__card-header__desktopHeader___Qe2fu,html[dir=rtl] .-esm-appointments__card-header__tabletHeader___gFxMA{text-align:right;padding:.75rem 1rem .75rem 0}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/cards/card-header.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,6GAEE,YAAA,CACA,6BAAA,CACA,kBAAA,CACA,4BAAA,CACA,qBDHc,CCKd,+HACE,UAAA,CACA,aAAA,CACA,UC0BS,CDzBT,mBAAA,CACA,2CAAA,CAIJ,uDACE,WC6BW,CD5BX,0DE20BE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFz0BA,aDpBM,CCwBV,sDACE,aAAA,CACA,yDEm0BE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CFj0BA,aD5BM,CCkCR,yIAEE,gBAAA,CACA,4BAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.desktopHeader,\n.tabletHeader {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: layout.$spacing-04 0 layout.$spacing-04 layout.$spacing-05;\n background-color: $ui-background;\n\n h4:after {\n content: '';\n display: block;\n width: layout.$spacing-07;\n padding-top: 0.188rem;\n border-bottom: 0.375rem solid var(--brand-03);\n }\n}\n\n.desktopHeader {\n height: layout.$spacing-09;\n h4 {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n }\n}\n\n.tabletHeader {\n height: 4.5rem;\n h4 {\n @include type.type-style('heading-03');\n color: $text-02;\n }\n}\n\n// Overriding styles for RTL support\nhtml[dir='rtl'] {\n .desktopHeader,\n .tabletHeader {\n text-align: right;\n padding: layout.$spacing-04 layout.$spacing-05 layout.$spacing-04 0;\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","//\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:""}]),r.locals={desktopHeader:"-esm-appointments__card-header__desktopHeader___Qe2fu",tabletHeader:"-esm-appointments__card-header__tabletHeader___gFxMA"};const l=r},3492:(e,n,t)=>{t.d(n,{Z:()=>l});var a=t(5698),i=t.n(a),o=t(9613),r=t.n(o)()(i());r.push([e.id,".-esm-appointments__dashboard-extension__menu___ICMbz{display:flex;align-items:center;justify-content:center}.-esm-appointments__dashboard-extension__icon___99FWh{margin-right:1.5rem;fill:#525252}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/dashboards/dashboard-extension.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/colors/index.scss"],names:[],mappings:"AAGA,sDACE,YAAA,CACA,kBAAA,CACA,sBAAA,CAGF,sDACE,mBC0BW,CDzBX,YEqCQ",sourcesContent:["@use '@carbon/colors';\n@use '@carbon/layout';\n\n.menu {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.icon {\n margin-right: layout.$spacing-06;\n fill: colors.$gray-70;\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","// 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"],sourceRoot:""}]),r.locals={menu:"-esm-appointments__dashboard-extension__menu___ICMbz",icon:"-esm-appointments__dashboard-extension__icon___99FWh"};const l=r},1907:(e,n,t)=>{t.d(n,{Z:()=>l});var a=t(5698),i=t.n(a),o=t(9613),r=t.n(o)()(i());r.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-appointments__empty-state__action___YzcNS{margin-bottom:.5rem}.-esm-appointments__empty-state__content___Z5VYW{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);color:#525252;margin-top:1rem;margin-bottom:.5rem}.-esm-appointments__empty-state__desktopHeading___Xj2e2 h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-appointments__empty-state__tabletHeading___MrJbs h4{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);color:#525252}.-esm-appointments__empty-state__desktopHeading___Xj2e2,.-esm-appointments__empty-state__tabletHeading___MrJbs{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-appointments__empty-state__desktopHeading___Xj2e2 h4:after,.-esm-appointments__empty-state__tabletHeading___MrJbs h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-appointments__empty-state__heading___dJ7I1:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-appointments__empty-state__tile___iS7NK{text-align:center;border:1px solid #e0e0e0}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/empty-state/empty-state.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,gDACE,mBCgBW,CDbb,iDE01BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CFx1BF,aDLQ,CCMR,eCoBW,CDnBX,mBCSW,CDLX,2DEk1BE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFh1BA,aDbM,CCkBR,0DE20BE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CFz0BA,aDpBM,CCwBV,+GAEE,eAAA,CACA,yBAAA,CACA,kBCFW,CDIX,iIACE,UAAA,CACA,aAAA,CACA,UCGS,CDFT,mBAAA,CACA,2CAAA,CAIJ,uDACE,UAAA,CACA,aAAA,CACA,UCNW,CDOX,mBAAA,CACA,2CAAA,CAGF,8CACE,iBAAA,CACA,wBAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.action {\n margin-bottom: layout.$spacing-03;\n}\n\n.content {\n @include type.type-style('heading-compact-01');\n color: $text-02;\n margin-top: layout.$spacing-05;\n margin-bottom: layout.$spacing-03;\n}\n\n.desktopHeading {\n h4 {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n }\n}\n\n.tabletHeading {\n h4 {\n @include type.type-style('heading-03');\n color: $text-02;\n }\n}\n\n.desktopHeading,\n.tabletHeading {\n text-align: left;\n text-transform: capitalize;\n margin-bottom: layout.$spacing-05;\n\n h4:after {\n content: '';\n display: block;\n width: layout.$spacing-07;\n padding-top: 0.188rem;\n border-bottom: 0.375rem solid var(--brand-03);\n }\n}\n\n.heading:after {\n content: '';\n display: block;\n width: layout.$spacing-07;\n padding-top: 0.188rem;\n border-bottom: 0.375rem solid var(--brand-03);\n}\n\n.tile {\n text-align: center;\n border: 1px solid $ui-03;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),r.locals={action:"-esm-appointments__empty-state__action___YzcNS",content:"-esm-appointments__empty-state__content___Z5VYW",desktopHeading:"-esm-appointments__empty-state__desktopHeading___Xj2e2",tabletHeading:"-esm-appointments__empty-state__tabletHeading___MrJbs",heading:"-esm-appointments__empty-state__heading___dJ7I1",tile:"-esm-appointments__empty-state__tile___iS7NK"};const l=r},5482:(e,n,t)=>{t.d(n,{Z:()=>l});var a=t(5698),i=t.n(a),o=t(9613),r=t.n(o)()(i());r.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-appointments__error-state__errorMessage___T9q98{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);margin-top:2.25rem;margin-bottom:.5rem}.-esm-appointments__error-state__errorCopy___-QHlU{margin-bottom:.5rem;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);color:#525252}.-esm-appointments__error-state__desktopHeading___S68BW h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-appointments__error-state__tabletHeading___QZKod h4{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);color:#525252}.-esm-appointments__error-state__desktopHeading___S68BW,.-esm-appointments__error-state__tabletHeading___QZKod{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-appointments__error-state__desktopHeading___S68BW h4:after,.-esm-appointments__error-state__tabletHeading___QZKod h4:after{content:"";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid var(--brand-03)}.-esm-appointments__error-state__tile___-aLtB{text-align:center;border:1px solid #e0e0e0}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/error-state/error-state.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,sDC81BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CD31BF,kBAAA,CACA,mBEaW,CFVb,mDACE,mBESW,CD60BT,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CDp1BF,aDTQ,CCaR,2DCg1BE,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CD90BA,aDfM,CCoBR,0DCy0BE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDv0BA,aDtBM,CC0BV,+GAEE,eAAA,CACA,yBAAA,CACA,kBEJW,CFMX,iIACE,UAAA,CACA,aAAA,CACA,UECS,CAAA,mBAAA,CFCT,2CAAA,CAIJ,8CACE,iBAAA,CACA,wBAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.errorMessage {\n @include type.type-style('heading-compact-02');\n\n margin-top: 2.25rem;\n margin-bottom: layout.$spacing-03;\n}\n\n.errorCopy {\n margin-bottom: layout.$spacing-03;\n @include type.type-style('body-01');\n color: $text-02;\n}\n\n.desktopHeading {\n h4 {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n }\n}\n\n.tabletHeading {\n h4 {\n @include type.type-style('heading-03');\n color: $text-02;\n }\n}\n\n.desktopHeading,\n.tabletHeading {\n text-align: left;\n text-transform: capitalize;\n margin-bottom: layout.$spacing-05;\n\n h4:after {\n content: '';\n display: block;\n width: layout.$spacing-07;\n padding-top: 0.188rem;\n border-bottom: 0.375rem solid var(--brand-03);\n }\n}\n\n.tile {\n text-align: center;\n border: 1px solid $ui-03;\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:""}]),r.locals={errorMessage:"-esm-appointments__error-state__errorMessage___T9q98",errorCopy:"-esm-appointments__error-state__errorCopy___-QHlU",desktopHeading:"-esm-appointments__error-state__desktopHeading___S68BW",tabletHeading:"-esm-appointments__error-state__tabletHeading___QZKod",tile:"-esm-appointments__error-state__tile___-aLtB"};const l=r},1829:(e,n,t)=>{t.d(n,{Z:()=>l});var a=t(5698),i=t.n(a),o=t(9613),r=t.n(o)()(i());r.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-appointments__pagination__bodyShort01___cR181,.-esm-appointments__pagination__configurableLink___2UaPC{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)}.-esm-appointments__pagination__desktop___FKsqU,.-esm-appointments__pagination__tablet___BjSxC{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);display:flex;justify-content:space-between;color:#525252;background-color:#fff;padding-left:1rem;align-items:center;border-top:1px solid #e0e0e0}.-esm-appointments__pagination__desktop___FKsqU .cds--pagination{min-height:0;height:2rem;width:auto;border:none}.-esm-appointments__pagination__desktop___FKsqU .cds--pagination .cds--select-input,.-esm-appointments__pagination__desktop___FKsqU .cds--pagination .cds--btn,.-esm-appointments__pagination__desktop___FKsqU .cds--pagination .cds--pagination__right{min-height:0;height:2rem}.-esm-appointments__pagination__tablet___BjSxC .cds--pagination{min-height:0;height:3rem;width:auto;border:none}.-esm-appointments__pagination__tablet___BjSxC .cds--pagination .cds--select-input,.-esm-appointments__pagination__tablet___BjSxC .cds--pagination .cds--btn,.-esm-appointments__pagination__tablet___BjSxC .cds--pagination .cds--pagination__right{min-height:0;height:3rem}.-esm-appointments__pagination__configurableLink___2UaPC{text-decoration:none;padding:0 .5rem}.-esm-appointments__pagination__pagination___vC\\+hv{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);background-color:#fff;color:#525252;display:flex}div.-esm-appointments__pagination__pagination___vC\\+hv>.cds--pagination__left{display:none}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/@openmrs/esm-patient-common-lib/src/pagination/pagination.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,6GC81BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CD11BJ,+FC01BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDv1BF,YAAA,CACA,6BAAA,CACA,aDRQ,CCSR,qBDbM,CCcN,iBEgBW,CFfX,kBAAA,CACA,4BAAA,CAGF,iEACE,YAAA,CACA,WEmBW,CFlBX,UAAA,CACA,WAAA,CAEA,wPAGE,YAAA,CACA,WEWS,CFPb,gEACE,YAAA,CACA,WEeW,CFdX,UAAA,CACA,WAAA,CAEA,qPAGE,YAAA,CACA,WEOS,CFHb,yDACE,oBAAA,CAEA,eAAA,CAGF,oDC4yBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CD1yBF,qBDvDM,CCwDN,aDpDQ,CCqDR,YAAA,CAIA,8EACE,YAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.bodyShort01 {\n @include type.type-style('body-compact-01');\n}\n\n.desktop,\n.tablet {\n @include type.type-style('body-compact-01');\n display: flex;\n justify-content: space-between;\n color: $text-02;\n background-color: $ui-02;\n padding-left: layout.$spacing-05;\n align-items: center;\n border-top: 1px solid $ui-03;\n}\n\n.desktop :global(.cds--pagination) {\n min-height: 0;\n height: layout.$spacing-07;\n width: auto;\n border: none;\n\n & :global(.cds--select-input),\n :global(.cds--btn),\n :global(.cds--pagination__right) {\n min-height: 0;\n height: layout.$spacing-07;\n }\n}\n\n.tablet :global(.cds--pagination) {\n min-height: 0;\n height: layout.$spacing-09;\n width: auto;\n border: none;\n\n & :global(.cds--select-input),\n :global(.cds--btn),\n :global(.cds--pagination__right) {\n min-height: 0;\n height: layout.$spacing-09;\n }\n}\n\n.configurableLink {\n text-decoration: none;\n @extend .bodyShort01;\n padding: 0 layout.$spacing-03;\n}\n\n.pagination {\n @include type.type-style('body-compact-01');\n background-color: $ui-02;\n color: $text-02;\n display: flex;\n}\n\ndiv.pagination {\n & > :global(.cds--pagination__left) {\n display: none;\n }\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:""}]),r.locals={bodyShort01:"-esm-appointments__pagination__bodyShort01___cR181",configurableLink:"-esm-appointments__pagination__configurableLink___2UaPC",desktop:"-esm-appointments__pagination__desktop___FKsqU",tablet:"-esm-appointments__pagination__tablet___BjSxC",pagination:"-esm-appointments__pagination__pagination___vC+hv"};const l=r},174:(e,n,t)=>{t.r(n),t.d(n,{CardHeader:()=>A,DashboardExtension:()=>S,DashboardGroupExtension:()=>$t,EmptyDataIllustration:()=>Qn,EmptyState:()=>nt,ErrorState:()=>ot,PatientChartPagination:()=>Sa,careSettingUuid:()=>fa,clinicalFormsWorkspace:()=>lt,compare:()=>k,convertTime12to24:()=>Pa,createDashboardGroup:()=>vt,createDashboardLink:()=>T,createOfflineVisitForPatient:()=>Ut,drugCustomRepresentation:()=>ha,formEntryWorkspace:()=>st,getDrugOrderByUuid:()=>ba,getOfflineVisitForPatient:()=>jt,getPatientChartStore:()=>gt,getPatientSummaryOrder:()=>Ba,getPatientUuidFromStore:()=>yt,getPatientUuidFromUrl:()=>bt,htmlFormEntryWorkspace:()=>ct,launchFormEntry:()=>ut,launchFormEntryOrHtmlForms:()=>pt,launchHtmlFormEntry:()=>dt,launchPatientChartWithWorkspaceOpen:()=>qa,launchPatientWorkspace:()=>Va,launchStartVisitPrompt:()=>mt,postOrders:()=>sa,postOrdersOnNewEncounter:()=>ra,priorityOptions:()=>ma,registerNavGroup:()=>At,time12HourFormatRegex:()=>Fa,useActivePatientEnrollment:()=>La,useAllowedFileExtensions:()=>ja,useAutoCreatedOfflineVisit:()=>Pt,useLaunchWorkspaceRequiringVisit:()=>Wa,useNavGroups:()=>_t,useOfflineVisit:()=>Ft,useOrderBasket:()=>Jt,useOrderType:()=>Aa,useOrderTypes:()=>ka,useOrderableConceptSets:()=>xa,usePaginationInfo:()=>Ca,usePatientChartStore:()=>ht,usePatientOrders:()=>ya,useSystemVisitSetting:()=>Ha,useVisitOrOfflineVisit:()=>Rt,visitSyncType:()=>Lt});var a=t(268),i=t.n(a),o=t(2524),r=t.n(o),l=t(744),s=t(6062),c=t.n(s),p=t(4036),u=t.n(p),d=t(6793),f=t.n(d),g=t(7892),h=t.n(g),y=t(1173),b=t.n(y),m=t(2464),$=t.n(m),v=t(4413),w={};w.styleTagTransform=$(),w.setAttributes=h(),w.insert=f().bind(null,"head"),w.domAPI=u(),w.insertStyleElement=b(),c()(v.Z,w);const x=v.Z&&v.Z.locals?v.Z.locals:void 0;function A(e){var n=e.title,t=e.children,a="tablet"===(0,l.useLayoutType)();return i().createElement("div",{className:r()(a?x.tabletHeader:x.desktopHeader)},i().createElement("h4",null,n),t)}function k(e,n){return null==e&&null==n?0:null==e?-1:null==n?1:e<n?-1:e>n?1:0}var _=t(8744),C=t(2228),z=t(4924),E=t(3492),M={};M.styleTagTransform=$(),M.setAttributes=h(),M.insert=f().bind(null,"head"),M.domAPI=u(),M.insertStyleElement=b(),c()(E.Z,M);const N=E.Z&&E.Z.locals?E.Z.locals:void 0;var S=function(e){var n=e.path,t=e.title,o=e.basePath,s=e.icon,c=e.moduleName,p=void 0===c?"@openmrs/esm-patient-chart-app":c,u=(0,z.useTranslation)(p).t,d=(0,_.useLocation)(),f=(0,a.useMemo)((function(){return decodeURIComponent((0,C.Z)(d.pathname.split("/")))}),[d.pathname]);return i().createElement("div",{key:n},i().createElement(l.ConfigurableLink,{className:r()("cds--side-nav__link",{"active-left-nav-link":n===f}),to:"".concat(o,"/").concat(encodeURIComponent(n))},i().createElement("span",{className:N.menu},i().createElement(l.MaybeIcon,{icon:s,className:N.icon,size:16}),i().createElement("span",null,u(t)))))},T=function(e){return function(n){var t=n.basePath;return i().createElement(_.BrowserRouter,null,i().createElement(S,{basePath:t,title:e.title,path:e.path,moduleName:e.moduleName,icon:e.icon}))}},O={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?O.enableCssCustomProperties=!0:O.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE&&"true"===process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE?O.enableUseControlledStateWithValue=!0:O.enableUseControlledStateWithValue=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?O.enableCssGrid=!0:O.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?O.enableV11Release=!0:O.enableV11Release=!1:O.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?O.enableExperimentalTileContrast=!0:O.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?O.enableV12TileDefaultIcons=!0:O.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?O.enableV12Overflowmenu=!0:O.enableV12Overflowmenu=!1}catch(e){O.enableCssCustomProperties=!1,O.enableUseControlledStateWithValue=!1,O.enableCssGrid=!1,O.enableV11Release=!0,O.enableExperimentalTileContrast=!1,O.enableV12TileDefaultIcons=!1,O.enableV12Overflowmenu=!1}var D=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:O.enableCssCustomProperties},{name:"enable-use-controlled-state-with-value",description:"Enable components to be created in either a controlled or uncontrolled mode\n",enabled:O.enableUseControlledStateWithValue},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:O.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:O.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:O.enableExperimentalTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:O.enableV12TileDefaultIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:O.enableV12Overflowmenu}];function B(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,(void 0,"symbol"==typeof(i=function(e,n){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,"string");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(a.key))?i:String(i)),a)}var i}function I(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,o,r,l=[],s=!0,c=!1;try{if(o=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;s=!1}else for(;!(s=(a=o.call(t)).done)&&(l.push(a.value),l.length!==n);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(c)throw i}}return l}}(e,n)||L(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 L(e,n){if(e){if("string"==typeof e)return R(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(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?R(e,n):void 0}}function R(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}for(var F=function(){function e(n){var t=this;!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.flags=new Map,n&&Object.keys(n).forEach((function(e){t.flags.set(e,n[e])}))}var n,t;return n=e,t=[{key:"checkForFlag",value:function(e){if(!this.flags.has(e))throw new Error("Unable to find a feature flag with the name: `".concat(e,"`"))}},{key:"add",value:function(e,n){if(this.flags.has(e))throw new Error("The feature flag: ".concat(e," already exists"));this.flags.set(e,n)}},{key:"enable",value:function(e){this.checkForFlag(e),this.flags.set(e,!0)}},{key:"disable",value:function(e){this.checkForFlag(e),this.flags.set(e,!1)}},{key:"merge",value:function(e){var n=this;Object.keys(e).forEach((function(t){n.flags.set(t,e[t])}))}},{key:"mergeWithScope",value:function(e){var n,t=function(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=L(e))){t&&(e=t);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return r=e.done,e},e:function(e){l=!0,o=e},f:function(){try{r||null==t.return||t.return()}finally{if(l)throw o}}}}(e.flags);try{for(t.s();!(n=t.n()).done;){var a=I(n.value,2),i=a[0],o=a[1];this.flags.has(i)||this.flags.set(i,o)}}catch(e){t.e(e)}finally{t.f()}}},{key:"enabled",value:function(e){return this.checkForFlag(e),this.flags.get(e)}}],t&&B(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),e}(),P=new F(void 0),j=0;j<D.length;j++){var H=D[j];P.add(H.name,H.enabled)}function U(){return U=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},U.apply(this,arguments)}!function(){P.merge.apply(P,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1});const V=i().createContext("cds");function q(){return i().useContext(V)}var W=t(3980),Z=t.n(W);const G=(0,a.createContext)({disabled:!1}),K=e=>{let{disabled:n,children:t}=e;return i().createElement(G.Provider,{value:{disabled:n}},t)};function Y(e){let{align:n="end",children:t,className:a,disabled:o=!1,isFlush:l=!1,size:s,...c}=e;const p=q(),u=r()(`${p}--accordion`,a,{[`${p}--accordion--${n}`]:n,[`${p}--accordion--${s}`]:s,[`${p}--layout--size-${s}`]:s,[`${p}--accordion--flush`]:l&&"start"!==n});return i().createElement(K,{disabled:o},i().createElement("ul",U({className:u},c),t))}function Q(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function X(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Q(Object(t),!0).forEach((function(n){J(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function J(e,n,t){return(n=function(e){var n=function(e,n){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,"string");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ee(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t,a,i={},o=Object.keys(e);for(a=0;a<o.length;a++)t=o[a],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)t=o[a],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}Y.propTypes={align:Z().oneOf(["start","end"]),children:Z().node,className:Z().string,disabled:Z().bool,isFlush:Z().bool,size:Z().oneOf(["sm","md","lg"])};var ne=["width","height","viewBox"],te=["tabindex"],ae={focusable:"false",preserveAspectRatio:"xMidYMid meet"};const ie=i().forwardRef((function(e,n){let{className:t,children:a,tabIndex:o,xmlns:r="http://www.w3.org/2000/svg",preserveAspectRatio:l="xMidYMid meet",...s}=e;const{tabindex:c,...p}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width,t=e.height,a=e.viewBox,i=void 0===a?"0 0 ".concat(n," ").concat(t):a,o=ee(e,ne),r=o.tabindex,l=ee(o,te),s=X(X(X({},ae),l),{},{width:n,height:t,viewBox:i});return s["aria-label"]||s["aria-labelledby"]||s.title?(s.role="img",null!=r&&(s.focusable="true",s.tabindex=r)):s["aria-hidden"]=!0,s}({...s,tabindex:o}),u=p;return t&&(u.className=t),null!=c&&(u.tabIndex="number"==typeof c?c:Number(o)),n&&(u.ref=n),r&&(u.xmlns=r),l&&(u.preserveAspectRatio=l),i().createElement("svg",u,a)}));var oe,re,le,se,ce,pe,ue,de,fe;ie.displayName="Icon",ie.propTypes={"aria-hidden":Z().oneOfType([Z().bool,Z().oneOf(["true","false"])]),"aria-label":Z().string,"aria-labelledby":Z().string,children:Z().node,className:Z().string,height:Z().oneOfType([Z().number,Z().string]),preserveAspectRatio:Z().string,tabIndex:Z().oneOfType([Z().number,Z().string]),viewBox:Z().string,width:Z().oneOfType([Z().number,Z().string]),xmlns:Z().string};const ge=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},oe||(oe=i().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z"})),t)})),he=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},re||(re=i().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),le||(le=i().createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),t)})),ye=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return"glyph"===a||"glyph"===a||"glyphpx"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor",...o},se||(se=i().createElement("path",{d:"M5 6L0 1 0.7 0.3 5 4.6 9.3 0.3 10 1z"})),t):16===a||"16"===a||"16px"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},ce||(ce=i().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),t):i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},pe||(pe=i().createElement("path",{d:"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),t)})),be=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return"glyph"===a||"glyph"===a||"glyphpx"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor",...o},ue||(ue=i().createElement("path",{d:"M6 5L1 10 0.3 9.3 4.6 5 0.3 0.7 1 0z"})),t):16===a||"16"===a||"16px"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},de||(de=i().createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),t):i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},fe||(fe=i().createElement("path",{d:"M22 16L12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"})),t)}));function me(){let e=0;return function(){return++e}}const $e=!("undefined"==typeof window||!window.document||!window.document.createElement),ve=i().createContext(null),we=me(),xe=$e?a.useLayoutEffect:a.useEffect;let Ae=!1;function ke(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";const n=i().useContext(ve),[t,o]=(0,a.useState)((()=>Ae?`${n?`${n}-`:""}${e}-${we()}`:null));if(xe((()=>{null===t&&o(`${n?`${n}-`:""}${e}-${we()}`)}),[we]),(0,a.useEffect)((()=>{!1===Ae&&(Ae=!0)}),[]),"function"==typeof i().useId){const t=function(e,n){return`${e?`${e}-`:""}${n}-${i().useId()}`}(n,e);return t}return t}const _e={};function Ce(e,n){return function(n,t,a){if(void 0!==n[t]){_e[a]&&_e[a][t]||(_e[a]={..._e[a],[t]:!0});for(var i=arguments.length,o=new Array(i>3?i-3:0),r=3;r<i;r++)o[r-3]=arguments[r];return e(n,t,a,...o)}}}const ze=(0,a.createContext)(null);function Ee(e){let{as:n,children:t,dir:o="auto",...r}=e;const l=(0,a.useContext)(ze),s={},c=n??"span",p={...l};if(l){const{direction:e,getTextDirection:n}=l;if(n&&n.current){const a=function(e){if("string"==typeof e)return e;const n=i().Children.map(e,(e=>"string"==typeof e?e:null))?.filter((e=>null!==e));return 1===n?.length?n[0]:n}(t),o=n.current(a);e!==o?(s.dir=o,p.direction=o):"auto"===e&&(s.dir=o)}else e!==o?(s.dir=o,p.direction=o):"auto"===e&&(s.dir=o)}else s.dir=o,p.direction=o;return i().createElement(ze.Provider,{value:p},i().createElement(c,U({},r,s),t))}function Me(e,n){for(let t=0;t<n.length;t++)if(Ne(e,n[t]))return!0;return!1}function Ne(e){let{key:n,which:t,keyCode:a,code:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?e===n:"number"==typeof e?e===t||e===a:e.key&&Array.isArray(n)?-1!==n.indexOf(e.key):e.key===n||e.which===t||e.keyCode===a||e.code===i}Ee.propTypes={as:Z().oneOfType([Z().func,Z().string,Z().elementType]),children:Z().node.isRequired,dir:Z().oneOf(["ltr","rtl","auto"])};const Se={key:"Enter",which:13,keyCode:13,code:"Enter"},Te={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},Oe={key:" ",which:32,keyCode:32,code:"Space"},De=e=>i().createElement("button",U({type:"button"},e));function Be(e){let{children:n,className:t="",open:o=!1,onHeadingClick:l,renderExpando:s=De,renderToggle:c,title:p="title",disabled:u,handleAnimationEnd:d,...f}=e;const[g,h]=(0,a.useState)(o),[y,b]=(0,a.useState)(o),m=(0,a.useContext)(G),$="boolean"==typeof u?u:m.disabled,v=ke("accordion-item"),w=q(),x=r()({[`${w}--accordion__item`]:!0,[`${w}--accordion__item--active`]:g,[`${w}--accordion__item--disabled`]:$,[t]:!!t}),A=c||s,k=(0,a.useRef)(null);return o!==y&&(h(o),b(o)),i().createElement("li",U({className:x},f),i().createElement(A,{disabled:$,"aria-controls":v,"aria-expanded":g,className:`${w}--accordion__heading`,onClick:function(e){if(!k.current)return;k.current.style.maxBlockSize=g?"":k.current.scrollHeight+32+"px";const n=!g;h(n),l&&l({isOpen:n,event:e})},onKeyDown:function(e){g&&Ne(e,Te)&&h(!1)},type:"button"},i().createElement(be,{className:`${w}--accordion__arrow`}),i().createElement(Ee,{as:"div",className:`${w}--accordion__title`},p)),i().createElement("div",{ref:k,className:`${w}--accordion__wrapper`,onTransitionEnd:function(e){d&&d(e)}},i().createElement("div",{id:v,className:`${w}--accordion__content`},n)))}Be.propTypes={children:Z().node,className:Z().string,disabled:Z().bool,onClick:Z().func,onHeadingClick:Z().func,open:Z().bool,renderExpando:Ce(Z().func),renderToggle:Z().func,title:Z().node};var Ie="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;const Le=e=>(0,a.useCallback)((n=>{e.forEach((e=>{"function"==typeof e?e(n):null!=e&&(e.current=n)}))}),e);function Re(e,n){const t=(0,a.useRef)(null);(0,a.useEffect)((()=>{t.current=n}),[n]),(0,a.useEffect)((()=>{function n(e){t.current&&t.current(e)}return window.addEventListener(e,n),()=>{window.removeEventListener(e,n)}}),[e])}const Fe=i().createContext({floating:{current:null}}),Pe=i().forwardRef((function(e,n){let{isTabTip:t,align:o=(t?"bottom-left":"bottom"),as:l="span",autoAlign:s=!1,caret:c=!t,className:p,children:u,dropShadow:d=!0,highContrast:f=!1,onRequestClose:g,open:h,...y}=e;const b=q(),m=(0,a.useRef)(null),$=(0,a.useRef)(null);Re("blur",(()=>{h&&g?.()})),Re("click",(e=>{h&&!$?.current?.contains(e.target)&&g?.()}));const v=(0,a.useMemo)((()=>({floating:m})),[]);t&&(["bottom-left","bottom-right"].includes(o)||(o="bottom-left"));const w=Le([n,$]),[x,A]=(0,a.useState)(!1),[k,_]=(0,a.useState)(o),C=r()({[`${b}--popover-container`]:!0,[`${b}--popover--caret`]:c,[`${b}--popover--drop-shadow`]:d,[`${b}--popover--high-contrast`]:f,[`${b}--popover--open`]:h,[`${b}--popover--${k}`]:x&&!t,[`${b}--popover--${o}`]:!x,[`${b}--popover--tab-tip`]:t},p);Ie((()=>{if(!h)return;if(!s||t)return void A(!1);if(!m.current)return;if(!0===x)return;const e=m.current.getBoundingClientRect(),n=e.x<-16,a=e.y<-16,i=e.x+(e.width-16)>document.documentElement.clientWidth,r=e.y+(e.height-16)>document.documentElement.clientHeight;if(!(n||a||i||r))return void A(!1);const l=["top","top-left","right-bottom","right","right-top","bottom-left","bottom","bottom-right","left-top","left","left-bottom","top-right"],c=[o];let p=l[(l.indexOf(o)+1)%l.length];for(;p&&!c.includes(p);)c.push(p),p=l[(l.indexOf(p)+1)%l.length];function u(e){if(!$.current||!m.current)return!1;$.current.classList.add(`${b}--popover--${e}`);const n=m.current.getBoundingClientRect();return n.x<-16||n.y<-16||n.x+(n.width-16)>document.documentElement.clientWidth||n.y+(n.height-16)>document.documentElement.clientHeight?($.current.classList.remove(`${b}--popover--${e}`),!1):($.current.classList.remove(`${b}--popover--${e}`),!0)}let d=null;for(let e=0;e<c.length;e++){const n=c[e];if(u(n)){d=n;break}}d&&(A(!0),_(d))}),[x,o,s,b,h,t]);const z=i().Children.map(u,(e=>{const n=e;if("button"===n?.type){const{className:e}=n.props,t=r()(`${b}--popover--tab-tip__button`,e);return i().cloneElement(n,{className:t})}return n})),E=l;return i().createElement(Fe.Provider,{value:v},i().createElement(E,U({},y,{className:C,ref:w}),t?z:u))}));function je(e,n){let{className:t,children:a,...o}=e;const l=q(),{floating:s}=i().useContext(Fe),c=Le([s,n]);return i().createElement("span",U({},o,{className:`${l}--popover`}),i().createElement("span",{className:r()(`${l}--popover-content`,t),ref:c},a),i().createElement("span",{className:`${l}--popover-caret`}))}Pe.propTypes={align:Z().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),as:Z().oneOfType([Z().string,Z().elementType]),autoAlign:Z().bool,caret:Z().bool,children:Z().node,className:Z().string,dropShadow:Z().bool,highContrast:Z().bool,isTabTip:Z().bool,onRequestClose:Z().func,open:Z().bool.isRequired};const He=i().forwardRef(je);function Ue(e){if(!e||!e.childNodes)return null;if(function(e){if(void 0===e.tabIndex||e.tabIndex<0)return!1;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type;default:return!0}}(e))return e;for(const n of e.childNodes){const e=Ue(n);if(e)return e}return null}function Ve(e){if(!e||!e.childNodes)return null;if(e?.getAttribute?.("role")&&""!==e.getAttribute("role"))return e;for(const n of e.childNodes){const e=Ve(n);if(e)return e}return null}He.propTypes={children:Z().node,className:Z().string};const qe=new Set(["mouseup","touchend","touchcancel"]);function We(e){let{align:n="top",className:t,children:o,label:l,description:s,enterDelayMs:c=100,leaveDelayMs:p=300,defaultOpen:u=!1,closeOnActivation:d=!1,...f}=e;const g=(0,a.useRef)(null),h=(0,a.useRef)(null),[y,b]=function(e){const[n,t]=(0,a.useState)(e),i=(0,a.useRef)(null),o=(0,a.useCallback)((function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;window.clearTimeout(i.current??void 0),i.current=null,0!==n?i.current=window.setTimeout((()=>{t(e),i.current=null}),n):t(e)}),[]);return(0,a.useEffect)((()=>()=>{window.clearTimeout(i.current??void 0)}),[]),[n,o]}(u),[m,$]=(0,a.useState)(!1),[v,w]=(0,a.useState)(!1),x=ke("tooltip"),A=q(),k=i().Children.only(o),_={onFocus:()=>b(!0),onBlur:()=>b(!1),onClick:()=>d&&b(!1),onMouseEnter:function(){w(!0),b(!0,c)},onMouseLeave:C,onMouseDown:z,onMouseMove:function(e){1===e.buttons?$(!0):$(!1)},onTouchStart:z};function C(){w(!1),m||b(!1,p)}function z(){$(!0)}l?_["aria-labelledby"]=x:_["aria-describedby"]=x;const E=(0,a.useCallback)((()=>{$(!1),v||b(!1,p)}),[v,p,b]);return(0,a.useEffect)((()=>(m&&qe.forEach((e=>{document.addEventListener(e,E)})),()=>{qe.forEach((e=>{document.removeEventListener(e,E)}))})),[m,E]),i().createElement(Pe,U({},f,{align:n,className:r()(`${A}--tooltip`,t),dropShadow:!1,highContrast:!0,onKeyDown:function(e){y&&Ne(e,Te)&&(e.stopPropagation(),b(!1)),y&&d&&(Ne(e,Se)||Ne(e,Oe))&&b(!1)},onMouseLeave:C,open:y,ref:g}),i().createElement("div",{className:`${A}--tooltip-trigger__wrapper`},void 0!==k?i().cloneElement(k,{..._,...function(e){const n=Object.keys(_).filter((e=>e.startsWith("on"))),t={};return n.forEach((n=>{t[n]=t=>{_[n](t),e?.[n]&&e?.[n](t)}})),t}(k.props)}):null),i().createElement(He,{"aria-hidden":y?"false":"true",className:`${A}--tooltip-content`,id:x,ref:h,role:"tooltip"},l||s))}We.propTypes={align:Z().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),children:Z().node,className:Z().string,closeOnActivation:Z().bool,defaultOpen:Z().bool,description:Z().node,enterDelayMs:Z().number,label:Z().node,leaveDelayMs:Z().number};const Ze=i().forwardRef((function(e,n){let{align:t,children:a,className:o,closeOnActivation:l=!0,defaultOpen:s=!1,disabled:c,enterDelayMs:p=100,kind:u,label:d,leaveDelayMs:f=100,wrapperClasses:g,size:h,isSelected:y,...b}=e;const m=q(),$=r()(g,`${m}--icon-tooltip`,{[`${m}--icon-tooltip--disabled`]:c});return i().createElement(We,{align:t,closeOnActivation:l,className:$,defaultOpen:s,enterDelayMs:p,label:d,leaveDelayMs:f},i().createElement(Ke,U({},b,{disabled:c,kind:u,ref:n,size:h,className:r()(`${m}--btn--icon-only`,{[`${m}--btn--selected`]:y},o)}),a))}));Ze.propTypes={align:Z().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","right"]),children:Z().node,className:Z().string,closeOnActivation:Z().bool,defaultOpen:Z().bool,disabled:Z().bool,enterDelayMs:Z().number,isSelected:Z().bool,kind:Z().oneOf(["primary","secondary","ghost","tertiary"]),label:Z().node.isRequired,leaveDelayMs:Z().number,size:Z().oneOf(["sm","md","lg"]),wrapperClasses:Z().string};const Ge=e=>function(n){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];for(let t=0;t<e.length&&!n.defaultPrevented;t++){const i=e[t];"function"==typeof i&&i(n,...a)}},Ke=i().forwardRef((function(e,n){let{as:t,children:o,className:l,dangerDescription:s="danger",disabled:c=!1,hasIconOnly:p=!1,href:u,iconDescription:d,isExpressive:f=!1,isSelected:g,kind:h="primary",onBlur:y,onClick:b,onFocus:m,onMouseEnter:$,onMouseLeave:v,renderIcon:w,size:x,tabIndex:A,tooltipAlignment:k="center",tooltipPosition:_="top",type:C="button",...z}=e;const E=(0,a.useRef)(null),M=q(),N=e=>{e.target===E.current&&e.preventDefault()},S={tabIndex:A,className:r()(l,{[`${M}--btn`]:!0,[`${M}--btn--sm`]:"sm"===x&&!f,[`${M}--btn--md`]:"md"===x&&!f,[`${M}--btn--xl`]:"xl"===x,[`${M}--btn--2xl`]:"2xl"===x,[`${M}--layout--size-${x}`]:x,[`${M}--btn--${h}`]:h,[`${M}--btn--disabled`]:c,[`${M}--btn--expressive`]:f,[`${M}--btn--icon-only`]:p,[`${M}--btn--selected`]:p&&g&&"ghost"===h}),ref:n},T=w?i().createElement(w,{"aria-label":d,className:`${M}--btn__icon`,"aria-hidden":"true"}):null,O=w?i().createElement(w,null):null,D=["danger","danger--tertiary","danger--ghost"];let B="button";const I=ke("danger-description"),{"aria-pressed":L}=z;let R={disabled:c,type:C,"aria-describedby":D.includes(h)?I:void 0,"aria-pressed":L??(p&&"ghost"===h?g:void 0)};const F={href:u};let P=null;if(D.includes(h)&&(P=i().createElement("span",{id:I,className:`${M}--visually-hidden`},s)),t?(B=t,R={...R,...F}):u&&!c&&(B="a",R=F),function(e,n){return!0===e}(p)){let e;return"top"!==_&&"bottom"!==_||("center"===k&&(e=_),"end"===k&&(e=`${_}-right`),"start"===k&&(e=`${_}-left`)),"right"!==_&&"left"!==_||(e=_),i().createElement(Ze,U({as:t,align:e,label:d,kind:h,size:x,onMouseEnter:$,onMouseLeave:v,onFocus:m,onBlur:y,onClick:Ge([b,N])},z,S,R),O??o)}return i().createElement(B,{onMouseEnter:$,onMouseLeave:v,onFocus:m,onBlur:y,onClick:b,...z,...S,...R},P,o,T)}));var Ye,Qe,Xe,Je;Ke.displayName="Button",Ke.propTypes={as:Z().oneOfType([Z().func,Z().string,Z().elementType]),children:Z().node,className:Z().string,dangerDescription:Z().string,disabled:Z().bool,hasIconOnly:Z().bool,href:Z().string,iconDescription:e=>!e.renderIcon||e.children||e.iconDescription?null:new Error("renderIcon property specified without also providing an iconDescription property."),isExpressive:Z().bool,isSelected:Z().bool,kind:Z().oneOf(["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"]),onBlur:Z().func,onClick:Z().func,onFocus:Z().func,onMouseEnter:Z().func,onMouseLeave:Z().func,renderIcon:Z().oneOfType([Z().func,Z().object]),role:Z().string,size:Z().oneOf(["sm","md","lg","xl","2xl"]),tabIndex:Z().number,tooltipAlignment:Z().oneOf(["start","center","end"]),tooltipPosition:Z().oneOf(["top","right","bottom","left"]),type:Z().oneOf(["button","reset","submit"])};const en=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return 16===a||"16"===a||"16px"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},Ye||(Ye=i().createElement("path",{d:"M9.3 3.7L13.1 7.5 1 7.5 1 8.5 13.1 8.5 9.3 12.3 10 13 15 8 10 3z"})),t):20===a||"20"===a||"20px"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...o},Qe||(Qe=i().createElement("path",{d:"M11.8 2.8L10.8 3.8 16.2 9.3 1 9.3 1 10.7 16.2 10.7 10.8 16.2 11.8 17.2 19 10z"})),t):24===a||"24"===a||"24px"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...o},Xe||(Xe=i().createElement("path",{d:"M14 4L12.9 5.1 18.9 11.2 2 11.2 2 12.8 18.9 12.8 12.9 18.9 14 20 22 12z"})),t):i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Je||(Je=i().createElement("path",{d:"M18 6L16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6z"})),t)}));var nn;const tn=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},nn||(nn=i().createElement("path",{d:"M2,16H2A14,14,0,1,0,16,2,14,14,0,0,0,2,16Zm23.15,7.75L8.25,6.85a12,12,0,0,1,16.9,16.9ZM8.24,25.16A12,12,0,0,1,6.84,8.27L23.73,25.16a12,12,0,0,1-15.49,0Z"})),t)})),an=i().forwardRef((function(e,n){let{as:t,children:a,className:o,href:l,disabled:s=!1,inline:c=!1,visited:p=!1,renderIcon:u,size:d,target:f,...g}=e;const h=q(),y=r()(`${h}--link`,o,{[`${h}--link--disabled`]:s,[`${h}--link--inline`]:c,[`${h}--link--visited`]:p,[`${h}--link--${d}`]:d}),b={className:t?void 0:y,rel:"_blank"===f?"noopener":void 0,target:f};s?(b.role="link",b["aria-disabled"]=!0):b.href=l;const m=t??"a";return i().createElement(m,U({ref:n},b,g),a,!c&&u&&i().createElement("div",{className:`${h}--link__icon`},i().createElement(u,null)))}));an.displayName="Link",an.propTypes={as:Z().string,children:Z().node,className:Z().string,disabled:Z().bool,href:Z().string,inline:Z().bool,renderIcon:Z().oneOfType([Z().func,Z().object]),size:Z().oneOf(["sm","md","lg"]),visited:Z().bool};const on=(0,a.createContext)(P);var rn,ln,sn,cn,pn,un;Z().node,Z().objectOf(Z().bool);const dn=i().forwardRef((function(e,n){let{children:t,className:a,light:o=!1,slug:l,hasRoundedCorners:s=!1,...c}=e;const p=q(),u=r()(`${p}--tile`,{[`${p}--tile--light`]:o,[`${p}--tile--slug`]:l,[`${p}--tile--slug-rounded`]:l&&s},a);return i().createElement("div",U({className:u,ref:n},c),t,l)}));dn.displayName="Tile",dn.propTypes={children:Z().node,className:Z().string,hasRoundedCorners:Z().bool,light:Ce(Z().bool),slug:Z().node};const fn=i().forwardRef((function(e,n){let{children:t,className:o,clicked:l=!1,disabled:s,href:c,light:p,onClick:u=(()=>{}),onKeyDown:d=(()=>{}),renderIcon:f,hasRoundedCorners:g,slug:h,...y}=e;const b=q(),m=r()(`${b}--tile`,`${b}--tile--clickable`,{[`${b}--tile--is-clicked`]:l,[`${b}--tile--light`]:p,[`${b}--tile--slug`]:h,[`${b}--tile--slug-rounded`]:h&&g},o),[$,v]=(0,a.useState)(l),w=i().createElement("svg",{className:`${b}--tile--slug-icon`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rn||(rn=i().createElement("rect",{x:"0.5",y:"0.5",width:"23",height:"23"})),ln||(ln=i().createElement("path",{d:"M13.2436 16H11.5996L10.9276 13.864H7.95164L7.29164 16H5.68364L8.49164 7.624H10.4596L13.2436 16ZM10.5436 12.508L9.46364 9.064H9.40364L8.33564 12.508H10.5436ZM17.9341 16H14.1301V14.728H15.2341V8.896H14.1301V7.624H17.9341V8.896H16.8181V14.728H17.9341V16Z",fill:"#161616"}))),x=("enable-v12-tile-default-icons",(0,a.useContext)(on).enabled("enable-v12-tile-default-icons"));x&&(f||(f=en),s&&(f=tn));const A=r()({[`${b}--tile--icon`]:!x||x&&!s,[`${b}--tile--disabled-icon`]:x&&s});return i().createElement(an,U({className:m,href:c,tabIndex:c||s?void 0:0,onClick:s?void 0:function(e){e?.persist?.(),v(!$),u(e)},onKeyDown:function(e){e?.persist?.(),Me(e,[Se,Oe])&&v(!$),d(e)},ref:n,disabled:s},y),h?i().createElement("div",{className:`${b}--tile-content`},t):t,h&&w,f&&i().createElement(f,{className:A,"aria-hidden":"true"}))}));fn.displayName="ClickableTile",fn.propTypes={children:Z().node,className:Z().string,clicked:Z().bool,disabled:Z().bool,hasRoundedCorners:Z().bool,href:Z().string,light:Ce(Z().bool),onClick:Z().func,onKeyDown:Z().func,rel:Z().string,renderIcon:Z().oneOfType([Z().func,Z().object])},i().forwardRef((function(e,n){let{children:t,className:o,disabled:l,id:s,light:c,onClick:p=(()=>{}),onChange:u=(()=>{}),onKeyDown:d=(()=>{}),selected:f=!1,tabIndex:g=0,title:h="title",slug:y,hasRoundedCorners:b,...m}=e;const $=q(),v=p,w=d,[x,A]=(0,a.useState)(f),[k,_]=(0,a.useState)(f),C=r()(`${$}--tile`,`${$}--tile--selectable`,{[`${$}--tile--is-selected`]:x,[`${$}--tile--light`]:c,[`${$}--tile--disabled`]:l,[`${$}--tile--slug`]:y,[`${$}--tile--slug-rounded`]:y&&b},o);f!==k&&(A(f),_(f));const z=(0,a.useRef)(null);let E;return y&&"Slug"===y.type?.displayName&&(E=i().cloneElement(y,{size:"xs",ref:z})),i().createElement("div",U({className:C,onClick:l?void 0:function(e){e.preventDefault(),e?.persist?.(),y&&z.current&&z.current.contains(e.target)||(A(!x),v(e),u(e))},role:"checkbox","aria-checked":x,onKeyDown:l?void 0:function(e){e?.persist?.(),Me(e,[Se,Oe])&&(e.preventDefault(),A(!x),u(e)),w(e)},tabIndex:l?void 0:g,ref:n,id:s,onChange:l?void 0:function(e){A(e.target.checked),u(e)},title:h},m),i().createElement("span",{className:`${$}--tile__checkmark ${$}--tile__checkmark--persistent`},x?sn||(sn=i().createElement(he,null)):cn||(cn=i().createElement(ge,null))),i().createElement(Ee,{as:"label",htmlFor:s,className:`${$}--tile-content`},t),E)})).propTypes={children:Z().node,className:Z().string,disabled:Z().bool,hasRoundedCorners:Z().bool,id:Z().string,light:Ce(Z().bool),name:Z().string,onChange:Z().func,onClick:Z().func,onKeyDown:Z().func,selected:Z().bool,slug:Z().node,tabIndex:Z().number,title:Z().string,value:Z().oneOfType([Z().string,Z().number]).isRequired};const gn=i().forwardRef((function(e,n){let{tabIndex:t=0,className:o,children:l,expanded:s=!1,tileMaxHeight:c=0,tilePadding:p=0,onClick:u,onKeyUp:d,tileCollapsedIconText:f="Interact to expand Tile",tileExpandedIconText:g="Interact to collapse Tile",tileCollapsedLabel:h,tileExpandedLabel:y,light:b,slug:m,hasRoundedCorners:$,...v}=e;const[w,x]=(0,a.useState)(c),[A,k]=(0,a.useState)(p),[_,C]=(0,a.useState)(s),[z,E]=(0,a.useState)(c),[M,N]=(0,a.useState)(p),[S,T]=(0,a.useState)(s),[O,D]=(0,a.useState)(!0),B=(0,a.useRef)(null),I=(0,a.useRef)(null),L=(0,a.useRef)(null),R=(0,a.useRef)(null),F=Le([n,R]),P=q();function j(){S&&L.current&&x(L.current.getBoundingClientRect()?.height),B.current&&x(B.current.getBoundingClientRect().height)}function H(e){e?.persist?.(),T(!S),j()}function V(e){e.target!==R.current&&Me(e,[Se,Oe])&&e.preventDefault()}s!==_&&(T(s),C(s),j()),c!==z&&(x(c),E(c)),p!==M&&(k(p),N(p));const W=r()(`${P}--tile`,`${P}--tile--expandable`,{[`${P}--tile--is-expanded`]:S,[`${P}--tile--light`]:b},o),Z=r()(`${P}--tile`,`${P}--tile--expandable`,`${P}--tile--expandable--interactive`,{[`${P}--tile--is-expanded`]:S,[`${P}--tile--light`]:b,[`${P}--tile--slug`]:m,[`${P}--tile--slug-rounded`]:m&&$},o),G=r()(`${P}--tile__chevron`,`${P}--tile__chevron--interactive`),K=i().Children.toArray(l);Ie((()=>{if(!R.current||!B.current)return;const e=window.getComputedStyle(R.current,null),{current:n}=B,{height:t}=n.getBoundingClientRect(),a=parseInt(e.getPropertyValue("padding-top"),10),i=parseInt(e.getPropertyValue("padding-bottom"),10);x(t),k(a+i)}),[w]),Ie((()=>{B.current&&I.current&&(Ue(I.current)||Ve(I.current)||Ue(B.current)||Ve(B.current)||m||D(!1))}),[m]),Ie((()=>{R.current&&(R.current.style.maxHeight=S?"":w+A+"px")}),[S,w,A]),(0,a.useEffect)((()=>{if(!B.current)return;const e=new ResizeObserver((e=>{const[n]=e;x(n.contentRect.height)}));return e.observe(B.current),()=>e.disconnect()}),[]);const Y=ke("expandable-tile-interactive");let Q;return m&&"Slug"===m.type?.displayName&&(Q=i().cloneElement(m,{size:"xs"})),O?i().createElement("div",U({ref:F,className:Z},v),i().createElement("div",{ref:L},Q,i().createElement("div",{ref:B,className:`${P}--tile-content`},K[0]),i().createElement("button",{type:"button","aria-expanded":S,"aria-controls":Y,onKeyUp:Ge([d,V]),onClick:Ge([u,H]),"aria-label":S?g:f,className:G},pn||(pn=i().createElement(ye,null))),i().createElement("div",{ref:I,className:`${P}--tile-content`,id:Y},K[1]))):i().createElement("button",U({type:"button",ref:F,className:W,"aria-expanded":S,title:S?g:f},v,{onKeyUp:Ge([d,V]),onClick:Ge([u,H]),tabIndex:t}),i().createElement("div",{ref:L},i().createElement("div",{ref:B,className:`${P}--tile-content`},K[0]),i().createElement("div",{className:`${P}--tile__chevron`},i().createElement("span",null,S?y:h),un||(un=i().createElement(ye,null))),i().createElement("div",{ref:I,className:`${P}--tile-content`},K[1])))}));gn.propTypes={children:Z().node,className:Z().string,expanded:Z().bool,hasRoundedCorners:Z().bool,id:Z().string,light:Ce(Z().bool),onClick:Z().func,onKeyUp:Z().func,slug:Z().node,tabIndex:Z().number,tileCollapsedIconText:Z().string,tileCollapsedLabel:Z().string,tileExpandedIconText:Z().string,tileExpandedLabel:Z().string},gn.displayName="ExpandableTile";const hn=i().forwardRef((function(e,n){let{children:t}=e;const a=q();return i().createElement("span",{ref:n,className:`${a}--tile-content__above-the-fold`},t)}));hn.propTypes={children:Z().node},hn.displayName="TileAboveTheFoldContent";const yn=i().forwardRef((function(e,n){let{children:t}=e;const a=q();return i().createElement("span",{ref:n,className:`${a}--tile-content__below-the-fold`},t)}));yn.propTypes={children:Z().node},yn.displayName="TileBelowTheFoldContent";const bn=i().createContext(1),mn=["one","two","three"],$n=mn.length-1,vn=i().forwardRef((function(e,n){let{as:t="div",className:a,children:o,level:l,...s}=e;const c=i().useContext(bn),p=l??c,u=q(),d=r()(`${u}--layer-${mn[p]}`,a),f=Math.max(0,Math.min(p+1,$n)),g=t;return i().createElement(bn.Provider,{value:f},i().createElement(g,U({ref:n},s,{className:d}),o))}));vn.displayName="Layer",vn.propTypes={as:Z().oneOfType([Z().func,Z().string,Z().elementType]),children:Z().node,className:Z().string,level:Z().oneOf([0,1,2])};const wn=vn;var xn,An,kn,_n;const Cn=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return"glyph"===a||"glyph"===a||"glyphpx"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5 8",fill:"currentColor",...o},xn||(xn=i().createElement("path",{d:"M5 8L0 4 5 0z"})),t):i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},An||(An=i().createElement("path",{d:"M20 24L10 16 20 8z"})),t)})),zn=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return"glyph"===a||"glyph"===a||"glyphpx"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5 8",fill:"currentColor",...o},kn||(kn=i().createElement("path",{d:"M0 0L5 4 0 8z"})),t):i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},_n||(_n=i().createElement("path",{d:"M12 8L22 16 12 24z"})),t)}));var En,Mn,Nn,Sn,Tn,On,Dn,Bn,In,Ln,Rn;const Fn=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},En||(En=i().createElement("path",{fill:"none",d:"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z","data-icon-path":"inner-path"})),Mn||(Mn=i().createElement("path",{d:"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"})),Nn||(Nn=i().createElement("path",{d:"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"})),t)})),Pn=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return 16===a||"16"===a||"16px"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},Sn||(Sn=i().createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2 c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),Tn||(Tn=i().createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8 c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),t):20===a||"20"===a||"20px"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...o},On||(On=i().createElement("path",{d:"M10,1c-5,0-9,4-9,9s4,9,9,9s9-4,9-9S15,1,10,1z M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1 s1,0.4,1,1S10.6,16,10,16z"})),Dn||(Dn=i().createElement("path",{d:"M9.2,5h1.5v7H9.2V5z M10,16c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S10.6,16,10,16z","data-icon-path":"inner-path",opacity:"0"})),t):24===a||"24"===a||"24px"===a?i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...o},Bn||(Bn=i().createElement("path",{d:"M12,1C5.9,1,1,5.9,1,12s4.9,11,11,11s11-4.9,11-11C23,5.9,18.1,1,12,1z M11.1,6h1.8v8h-1.8V6z M12,19.2 c-0.7,0-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2s1.2,0.6,1.2,1.2S12.7,19.2,12,19.2z"})),In||(In=i().createElement("path",{fill:"none",d:"M13.2,18c0,0.7-0.6,1.2-1.2,1.2s-1.2-0.6-1.2-1.2s0.6-1.2,1.2-1.2S13.2,17.3,13.2,18z M12.9,6 h-1.8v8h1.8V6z","data-icon-path":"inner-path",opacity:"0"})),t):i().createElement(ie,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Ln||(Ln=i().createElement("path",{d:"M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14C30,8.3,23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,25 c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22c0.8,0,1.5,0.7,1.5,1.5S16.8,25,16,25z"})),Rn||(Rn=i().createElement("path",{fill:"none",d:"M17.5,23.5c0,0.8-0.7,1.5-1.5,1.5c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22 C16.8,22,17.5,22.7,17.5,23.5z M17.1,8h-2.2v11h2.2V8z","data-icon-path":"inner-path",opacity:"0"})),t)})),jn=(0,a.createContext)({isFluid:!1}),Hn=me(),Un=i().forwardRef((function(e,n){let{className:t,id:o,inline:l=!1,labelText:s="Select",disabled:c=!1,children:p,noLabel:u=!1,hideLabel:d=!1,invalid:f=!1,invalidText:g="",helperText:h="",light:y=!1,readOnly:b,size:m,warn:$=!1,warnText:v,onChange:w,slug:x,...A}=e;const k=q(),{isFluid:_}=(0,a.useContext)(jn),[C,z]=(0,a.useState)(!1),[E,M]=(0,a.useState)(""),{current:N}=(0,a.useRef)(Hn()),S=r()({[`${k}--select`]:!0,[`${k}--select--inline`]:l,[`${k}--select--light`]:y,[`${k}--select--invalid`]:f,[`${k}--select--disabled`]:c,[`${k}--select--readonly`]:b,[`${k}--select--warning`]:$,[`${k}--select--fluid--invalid`]:_&&f,[`${k}--select--fluid--focus`]:_&&C,[`${k}--select--slug`]:x}),T=r()(`${k}--label`,{[`${k}--visually-hidden`]:d,[`${k}--label--disabled`]:c}),O=r()({[`${k}--select-input`]:!0,[`${k}--select-input--${m}`]:m}),D=`${o}-error-msg`,B=f?g:$?v:void 0,I=f||$?i().createElement(Ee,{as:"div",className:`${k}--form-requirement`,id:D},B):null,L=r()(`${k}--form__helper-text`,{[`${k}--form__helper-text--disabled`]:c}),R=h?`select-helper-text-${N}`:void 0,F=h?i().createElement(Ee,{as:"div",id:R,className:L},h):null,P={};f?P["aria-describedby"]=D:l||_||(P["aria-describedby"]=F?R:void 0);const j=e=>{z("focus"===e.type)},H={onMouseDown:e=>{b&&(e.preventDefault(),e.target.focus())},onKeyDown:e=>{b&&["ArrowDown","ArrowUp"," "].includes(e.key)&&e.preventDefault()}};let V;x&&"Slug"===x.type?.displayName&&(V=i().cloneElement(x,{size:"mini"}));const W=i().createElement(i().Fragment,null,i().createElement("select",U({},A,P,{id:o,className:O,disabled:c||void 0,"aria-invalid":f||void 0,"aria-readonly":b||void 0,title:E,onChange:Ge([w,e=>{M(e?.target?.value)}])},H,{ref:n}),p),i().createElement(ye,{className:`${k}--select__arrow`}),f&&i().createElement(Pn,{className:`${k}--select__invalid-icon`}),!f&&$&&i().createElement(Fn,{className:`${k}--select__invalid-icon ${k}--select__invalid-icon--warning`}));return i().createElement("div",{className:r()(`${k}--form-item`,t)},i().createElement("div",{className:S},!u&&i().createElement(Ee,{as:"label",htmlFor:o,className:T},s),l&&i().createElement("div",{className:`${k}--select-input--inline__wrapper`},i().createElement("div",{className:`${k}--select-input__wrapper`,"data-invalid":f||null},W),I),!l&&i().createElement("div",{className:`${k}--select-input__wrapper`,"data-invalid":f||null,onFocus:j,onBlur:j},W,V,_&&i().createElement("hr",{className:`${k}--select__divider`}),_&&I?I:null),l||_||!I?F:I))}));Un.displayName="Select",Un.propTypes={children:Z().node,className:Z().string,defaultValue:Z().any,disabled:Z().bool,helperText:Z().node,hideLabel:Z().bool,id:Z().string.isRequired,inline:Z().bool,invalid:Z().bool,invalidText:Z().node,labelText:Z().node,light:Ce(Z().bool),noLabel:Z().bool,onChange:Z().func,readOnly:Z().bool,size:Z().oneOf(["sm","md","lg"]),slug:Z().node,warn:Z().bool,warnText:Z().node};const Vn=e=>{let{className:n,value:t="",disabled:a=!1,hidden:o=!1,text:l="",...s}=e;const c=q(),p=r()({[`${c}--select-option`]:!0,...n&&{[n]:n}});return i().createElement("option",U({},s,{className:p,value:t,disabled:a,hidden:o}),l)};var qn,Wn;function Zn(e){return"object"==typeof e[0]&&null!==e[0]?e:e.map((e=>({text:e,value:e})))}function Gn(e,n){return n&&e.find((e=>n===e.value))?n:e[0].value}Vn.propTypes={className:Z().string,disabled:Z().bool,hidden:Z().bool,text:Z().string.isRequired,value:Z().any.isRequired};const Kn=i().forwardRef((function(e,n){let{backwardText:t="Previous page",className:o,disabled:l=!1,forwardText:s="Next page",id:c,isLastPage:p=!1,itemText:u=((e,n)=>`${e}–${n} items`),itemRangeText:d=((e,n,t)=>`${e}–${n} of ${t} items`),itemsPerPageText:f="Items per page:",onChange:g,pageNumberText:h="Page Number",pageRangeText:y=((e,n)=>`of ${n} ${1===n?"page":"pages"}`),page:b=1,pageInputDisabled:m,pageSize:$,pageSizeInputDisabled:v,pageSizes:w,pageText:x=((e,n)=>`page ${n?"":e}`),pagesUnknown:A=!1,size:k="md",totalItems:_,...C}=e;const z=q(),E=function(e){const n=ke();return e??n}(c),M=(0,a.useRef)(null),N=(0,a.useRef)(null),[S,T]=(0,a.useState)((()=>Zn(w))),[O,D]=(0,a.useState)(w),[B,I]=(0,a.useState)(b),[L,R]=(0,a.useState)(b),[F,P]=(0,a.useState)((()=>Gn(S,$))),[j,H]=(0,a.useState)($),V=r()({[`${z}--pagination`]:!0,[`${z}--pagination--${k}`]:k,[o]:!!o}),W=Math.max(Math.ceil(_/F),1),Z=l||1===B,G=r()({[`${z}--pagination__button`]:!0,[`${z}--pagination__button--backward`]:!0,[`${z}--pagination__button--no-index`]:Z}),K=l||B===W,Y=r()({[`${z}--pagination__button`]:!0,[`${z}--pagination__button--forward`]:!0,[`${z}--pagination__button--no-index`]:K}),Q=function(e){let n=1,t=[];for(;n<=e;)t.push(i().createElement(Vn,{key:n,value:n,text:String(n)})),n++;return t}(W);if(b!==L&&(I(b),R(b)),$!==j&&(P(Gn(S,$)),H($)),!function(e,n){if(!Array.isArray(e)||!Array.isArray(n)||e.length!==n.length)return!1;if(e===n)return!0;for(let t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}(w,O)){const e=Zn(w),n=e.find((e=>e.value===F));n||I(1),T(e),D(w)}return i().createElement("div",U({className:V,ref:n},C),i().createElement("div",{className:`${z}--pagination__left`},i().createElement("label",{id:`${z}-pagination-select-${E}-count-label`,className:`${z}--pagination__text`,htmlFor:`${z}-pagination-select-${E}`},f),i().createElement(Un,{id:`${z}-pagination-select-${E}`,className:`${z}--select__item-count`,labelText:"",hideLabel:!0,noLabel:!0,inline:!0,onChange:function(e){const n={pageSize:Number(e.target.value),page:1};I(n.page),P(n.pageSize),g&&g(n)},disabled:v||l,value:F},S.map((e=>i().createElement(Vn,{key:e.value,value:e.value,text:String(e.text)})))),i().createElement("span",{className:`${z}--pagination__text ${z}--pagination__items-count`},A?u(F*(B-1)+1,B*F):d(Math.min(F*(B-1)+1,_),Math.min(B*F,_),_))),i().createElement("div",{className:`${z}--pagination__right`},A?i().createElement("span",{className:`${z}--pagination__text ${z}--pagination__page-text`},A?x(B,A):y(B,W)):null,i().createElement(Un,{id:`${z}-pagination-select-${E}-right`,className:`${z}--select__page-number`,labelText:`Page number, of ${W} pages`,inline:!0,hideLabel:!0,onChange:function(e){const n=Number(e.target.value);n>0&&n<=Math.max(Math.ceil(_/F),1)&&(I(n),g&&g({page:n,pageSize:F}))},value:B,disabled:m||l},Q),A?null:i().createElement("span",{className:`${z}--pagination__text`},A?x(B,A):y(B,W)),i().createElement("div",{className:`${z}--pagination__control-buttons`},i().createElement(Ze,{align:"top",disabled:Z,kind:"ghost",className:G,label:t,onClick:function(){const e=B-1;I(e),1===e&&N.current.focus(),g&&g({page:e,pageSize:F,forwardBtnRef:N})},ref:M},qn||(qn=i().createElement(Cn,null))),i().createElement(Ze,{align:"top-right",disabled:K||p,kind:"ghost",className:Y,label:s,onClick:function(){const e=B+1;I(e),e===W&&M.current.focus(),g&&g({page:e,pageSize:F,backBtnRef:M})},ref:N},Wn||(Wn=i().createElement(zn,null))))))}));Kn.propTypes={backwardText:Z().string,className:Z().string,disabled:Z().bool,forwardText:Z().string,id:Z().oneOfType([Z().string,Z().number]),isLastPage:Z().bool,itemRangeText:Z().func,itemText:Z().func,itemsPerPageText:Z().string,onChange:Z().func,page:Z().number,pageInputDisabled:Z().bool,pageNumberText:Z().string,pageRangeText:Z().func,pageSize:Z().number,pageSizeInputDisabled:Z().bool,pageSizes:Z().oneOfType([Z().arrayOf(Z().number),Z().arrayOf(Z().shape({text:Z().text,value:Z().number}))]).isRequired,pageText:Z().func,pagesUnknown:Z().bool,size:Z().oneOf(["sm","md","lg"]),totalItems:Z().number};var Yn=Kn,Qn=function(e){var n=e.width,t=void 0===n?"64":n,a=e.height,o=void 0===a?"64":a;return i().createElement("svg",{width:t,height:o,viewBox:"0 0 64 64"},i().createElement("title",null,"Empty data illustration"),i().createElement("g",{fill:"none",fillRule:"evenodd"},i().createElement("path",{d:"M38.133 13.186H21.947c-.768.001-1.39.623-1.39 1.391V50.55l-.186.057-3.97 1.216a.743.743 0 01-.927-.493L3.664 12.751a.742.742 0 01.492-.926l6.118-1.874 17.738-5.43 6.119-1.873a.741.741 0 01.926.492L38.076 13l.057.186z",fill:"#F4F4F4"}),i().createElement("path",{d:"M41.664 13L38.026 1.117A1.576 1.576 0 0036.056.07l-8.601 2.633-17.737 5.43-8.603 2.634a1.578 1.578 0 00-1.046 1.97l12.436 40.616a1.58 1.58 0 001.969 1.046l5.897-1.805.185-.057v-.194l-.185.057-5.952 1.822a1.393 1.393 0 01-1.737-.923L.247 12.682a1.39 1.39 0 01.923-1.738L9.772 8.31 27.51 2.881 36.112.247a1.393 1.393 0 011.737.923L41.47 13l.057.186h.193l-.057-.185z",fill:"#8D8D8D"}),i().createElement("path",{d:"M11.378 11.855a.836.836 0 01-.798-.59L9.385 7.361a.835.835 0 01.554-1.042l16.318-4.996a.836.836 0 011.042.554l1.195 3.902a.836.836 0 01-.554 1.043l-16.318 4.995a.831.831 0 01-.244.037z",fill:"#C6C6C6"}),i().createElement("circle",{fill:"#C6C6C6",cx:17.636,cy:2.314,r:1.855}),i().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:17.636,cy:2.314,r:1.175}),i().createElement("path",{d:"M55.893 53.995H24.544a.79.79 0 01-.788-.789V15.644a.79.79 0 01.788-.788h31.349a.79.79 0 01.788.788v37.562a.79.79 0 01-.788.789z",fill:"#F4F4F4"}),i().createElement("path",{d:"M41.47 13H21.948a1.579 1.579 0 00-1.576 1.577V52.4l.185-.057V14.577c.001-.768.623-1.39 1.391-1.39h19.581L41.471 13zm17.02 0H21.947a1.579 1.579 0 00-1.576 1.577v42.478c0 .87.706 1.576 1.576 1.577H58.49a1.579 1.579 0 001.576-1.577V14.577a1.579 1.579 0 00-1.576-1.576zm1.39 44.055c0 .768-.622 1.39-1.39 1.392H21.947c-.768-.001-1.39-.624-1.39-1.392V14.577c0-.768.622-1.39 1.39-1.39H58.49c.768 0 1.39.622 1.39 1.39v42.478z",fill:"#8D8D8D"}),i().createElement("path",{d:"M48.751 17.082H31.686a.836.836 0 01-.835-.835v-4.081c0-.46.374-.834.835-.835H48.75c.461 0 .834.374.835.835v4.08c0 .462-.374.835-.835.836z",fill:"#C6C6C6"}),i().createElement("circle",{fill:"#C6C6C6",cx:40.218,cy:9.755,r:1.855}),i().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:40.218,cy:9.755,r:1.13})))},Xn=t(1907),Jn={};Jn.styleTagTransform=$(),Jn.setAttributes=h(),Jn.insert=f().bind(null,"head"),Jn.domAPI=u(),Jn.insertStyleElement=b(),c()(Xn.Z,Jn);const et=Xn.Z&&Xn.Z.locals?Xn.Z.locals:void 0;var nt=function(e){var n=(0,z.useTranslation)("@openmrs/esm-patient-chart-app").t,t="tablet"===(0,l.useLayoutType)();return i().createElement(wn,{className:et.layer},i().createElement(dn,{className:et.tile},i().createElement("div",{className:t?et.tabletHeading:et.desktopHeading},i().createElement("h4",null,e.headerTitle)),i().createElement(Qn,null),i().createElement("p",{className:et.content},n("emptyStateText","There are no {{displayText}} to display for this patient",{displayText:e.displayText.toLowerCase()})),i().createElement("p",{className:et.action},e.launchForm&&i().createElement(Ke,{onClick:function(){return e.launchForm()},kind:"ghost",size:t?"lg":"sm"},n("record","Record")," ",e.displayText.toLowerCase()))))},tt=t(5482),at={};at.styleTagTransform=$(),at.setAttributes=h(),at.insert=f().bind(null,"head"),at.domAPI=u(),at.insertStyleElement=b(),c()(tt.Z,at);const it=tt.Z&&tt.Z.locals?tt.Z.locals:void 0;var ot=function(e){var n,t,a,o,r=e.error,s=e.headerTitle,c=(0,z.useTranslation)("@openmrs/esm-patient-chart-app").t,p="tablet"===(0,l.useLayoutType)();return i().createElement(wn,null,i().createElement(dn,{className:it.tile},i().createElement("div",{className:p?it.tabletHeading:it.desktopHeading},i().createElement("h4",null,s)),i().createElement("p",{className:it.errorMessage},c("error","Error")," ","".concat(null===(t=r)||void 0===t||null===(n=t.response)||void 0===n?void 0:n.status,": "),null===(o=r)||void 0===o||null===(a=o.response)||void 0===a?void 0:a.statusText),i().createElement("p",{className:it.errorCopy},c("errorCopy","Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above."))))},rt=t(7900),lt="clinical-forms-workspace",st="patient-form-entry-workspace",ct="patient-html-form-entry-workspace";function pt(e,n,t,a,i,o,r,l,s,c){var p=arguments.length>10&&void 0!==arguments[10]?arguments[10]:lt,u=arguments.length>11&&void 0!==arguments[11]?arguments[11]:st,d=arguments.length>12&&void 0!==arguments[12]?arguments[12]:ct;if(a){var f=e.find((function(e){return e.formUuid===t}));f?dt(n,o,i,a,f,d):ut(t,n,i,o,a,r,l,s,f,c,p,u)}else(0,rt.launchStartVisitPrompt)()}function ut(e,n,t,a,i,o,r,l,s,c){var p=arguments.length>10&&void 0!==arguments[10]?arguments[10]:lt,u=arguments.length>11&&void 0!==arguments[11]?arguments[11]:st;(0,rt.launchPatientWorkspace)(u,{workspaceTitle:a,clinicalFormsWorkspaceName:p,formEntryWorkspaceName:u,patientUuid:n,mutateForm:c,formInfo:{encounterUuid:t,formUuid:e,patientUuid:n,visitTypeUuid:o,visitUuid:i,visitStartDatetime:r,visitStopDatetime:l,htmlForm:s}})}function dt(e,n,t,a,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:ct;(0,rt.launchPatientWorkspace)(o,{workspaceTitle:n,patientUuid:e,formInfo:{encounterUuid:t,visitUuid:a,htmlForm:i}})}var ft=(0,l.createGlobalStore)("patient-chart-global-store",{patientUuid:""});function gt(){return ft}function ht(){return(0,l.useStore)(ft)}function yt(){var e;return null===(e=ft.getState())||void 0===e?void 0:e.patientUuid}function bt(){var e=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return e&&e[1]||yt()}function mt(){var e=(0,l.showModal)("start-visit-dialog",{closeModal:function(){return e()}})}var $t=function(e){var n=e.title,t=e.slotName,o=e.basePath,r=e.isExpanded,s=(0,z.useTranslation)().t;return(0,a.useEffect)((function(){At(t)}),[t]),i().createElement(Y,null,i().createElement(Be,{open:null==r||r,title:s(n),style:{border:"none"}},i().createElement(l.ExtensionSlot,{name:null!=t?t:n,state:{basePath:o}})))},vt=function(e){var n=e.title,t=e.slotName,a=e.isExpanded;return function(e){var o=e.basePath;return i().createElement($t,{title:n,slotName:t,basePath:o,isExpanded:a})}};function wt(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}var xt=(0,l.createGlobalStore)("nav-groups",{navGroups:[]});function At(e){var n,t=xt.getState();xt.setState({navGroups:[e].concat((n=t.navGroups,function(e){if(Array.isArray(e))return wt(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,n){if(e){if("string"==typeof e)return wt(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)?wt(e,n):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))})}var kt,_t=(0,l.createUseStore)(xt),Ct=new Uint8Array(16);function zt(){if(!kt&&!(kt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return kt(Ct)}const Et=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Mt=[],Nt=0;Nt<256;++Nt)Mt.push((Nt+256).toString(16).substr(1));const St=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(Mt[e[n+0]]+Mt[e[n+1]]+Mt[e[n+2]]+Mt[e[n+3]]+"-"+Mt[e[n+4]]+Mt[e[n+5]]+"-"+Mt[e[n+6]]+Mt[e[n+7]]+"-"+Mt[e[n+8]]+Mt[e[n+9]]+"-"+Mt[e[n+10]]+Mt[e[n+11]]+Mt[e[n+12]]+Mt[e[n+13]]+Mt[e[n+14]]+Mt[e[n+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&Et.test(e)}(t))throw TypeError("Stringified UUID is invalid");return t},Tt=function(e,n,t){var a=(e=e||{}).random||(e.rng||zt)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,n){t=t||0;for(var i=0;i<16;++i)n[t+i]=a[i];return n}return St(a)};function Ot(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 Dt(e,n,t,a,i,o,r){try{var l=e[o](r),s=l.value}catch(e){return void t(e)}l.done?n(s):Promise.resolve(s).then(a,i)}function Bt(e){return function(){var n=this,t=arguments;return new Promise((function(a,i){var o=e.apply(n,t);function r(e){Dt(o,a,i,r,l,"next",e)}function l(e){Dt(o,a,i,r,l,"throw",e)}r(void 0)}))}}function It(e,n){var t,a,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,a=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!((i=(i=r.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(6===o[0]&&r.label<i[1]){r.label=i[1],i=o;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(o);break}i[2]&&r.ops.pop(),r.trys.pop();continue}o=n.call(e,r)}catch(e){o=[6,e],a=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}var Lt="visit";function Rt(e){var n=(0,l.useConnectivity)(),t=(0,l.useVisit)(e),a=Ft(e);return n?t:a}function Ft(e){var n=function(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,o=[],r=!0,l=!1;try{for(t=t.call(e);!(r=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);r=!0);}catch(e){l=!0,i=e}finally{try{r||null==t.return||t.return()}finally{if(l)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Ot(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)?Ot(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.")}()}((0,a.useState)({data:null,error:null,isLoading:!0}),2),t=n[0],i=n[1];return(0,a.useEffect)((function(){jt(e).then((function(e){i({error:null,data:e?qt(e):null,isLoading:!1})})).catch((function(e){i({error:e,data:null,isLoading:!1})}))}),[e]),{activeVisit:t.data,currentVisit:t.data,isLoading:t.isLoading,isValidating:!1,currentVisitIsRetrospective:!1,error:t.error,mutate:function(){}}}function Pt(e,n){var t,i,o=(0,l.useConnectivity)(),r=null===(i=(0,l.useSession)())||void 0===i||null===(t=i.sessionLocation)||void 0===t?void 0:t.uuid,s=Ft(e),c=s.currentVisit,p=s.isValidating,u=s.error,d=s.mutate;(0,a.useEffect)((function(){o||p||c||u||Ut(e,r,n,new Date).finally((function(){return d()}))}),[o,c,p,u,d,r,n,e])}function jt(e){return Ht.apply(this,arguments)}function Ht(){return(Ht=Bt((function(e){return It(this,(function(n){switch(n.label){case 0:return[4,(0,l.getSynchronizationItems)(Lt)];case 1:return[2,n.sent().find((function(n){return n.patient===e}))]}}))}))).apply(this,arguments)}function Ut(e,n,t,a){return Vt.apply(this,arguments)}function Vt(){return(Vt=Bt((function(e,n,t,a){var i,o,r,s;return It(this,(function(c){switch(c.label){case 0:return[4,(0,l.getSynchronizationItems)("patient-registration")];case 1:return i=c.sent(),o=i.some((function(n){return n.fhirPatient.id===e})),r={uuid:Tt(),patient:e,startDatetime:a,location:n,visitType:t},s={id:r.uuid,displayName:"Offline visit",patientUuid:e,dependencies:o?[{type:"patient-registration",id:e}]:[]},[4,(0,l.queueSynchronizationItem)(Lt,r,s)];case 2:return c.sent(),[2,r]}}))}))).apply(this,arguments)}function qt(e){var n,t;return{uuid:e.uuid,startDatetime:null===(n=e.startDatetime)||void 0===n?void 0:n.toString(),stopDatetime:null===(t=e.stopDatetime)||void 0===t?void 0:t.toString(),encounters:[],visitType:{uuid:e.visitType,display:"Offline"},patient:{uuid:e.patient}}}var Wt=(0,l.createGlobalStore)("order-basket",{items:{},postDataPrepFunctions:{}});function Zt(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 Gt(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Kt(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){Gt(e,n,t[n])}))}return e}function Yt(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t.push.apply(t,a)}return t}(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})),e}var Qt={setOrderBasketItems:function(e,n,t){var a,i,o,r=yt();return Object.keys(e.postDataPrepFunctions).includes(n)||console.warn("Programming error: You must register a postDataPrepFunction for grouping ".concat(n," ")),{items:Yt(Kt({},null===(a=e)||void 0===a?void 0:a.items),Gt({},r,Yt(Kt({},null===(o=e)||void 0===o||null===(i=o.items)||void 0===i?void 0:i[r]),Gt({},n,"function"==typeof t?t():t))))}},setPostDataPrepFunctionForGrouping:function(e,n,t){return{postDataPrepFunctions:Yt(Kt({},e.postDataPrepFunctions),Gt({},n,t))}}};function Xt(e){var n,t,a,i=null!==(t=null===(n=e)||void 0===n?void 0:n.exceptThoseMatching)&&void 0!==t?t:function(){return!1},o=yt(),r=null!==(a=Wt.getState().items[o])&&void 0!==a?a:{},l=Object.fromEntries(Object.entries(r).map((function(e){var n=function(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,o=[],r=!0,l=!1;try{for(t=t.call(e);!(r=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);r=!0);}catch(e){l=!0,i=e}finally{try{r||null==t.return||t.return()}finally{if(l)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Zt(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)?Zt(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.")}()}(e,2);return[n[0],n[1].filter(i)]})));Wt.setState((function(e){return{items:Yt(Kt({},e.items),Gt({},o,l))}}))}function Jt(e,n){var t=(0,l.useStoreWithActions)(Wt,Qt),i=t.items,o=t.postDataPrepFunctions,r=t.setOrderBasketItems,s=t.setPostDataPrepFunctionForGrouping,c=function(e,n){var t,a,i,o=yt(),r=null!==(a=null===(t=e)||void 0===t?void 0:t[o])&&void 0!==a?a:{};return n?null!==(i=r[n])&&void 0!==i?i:[]:Object.values(r).flat()}(i,e);return(0,a.useEffect)((function(){n&&!o[e]&&s(e,n)}),[n,e,o,s]),"string"==typeof e?{orders:c,clearOrders:Xt,setOrders:function(n){return r(e,n)}}:{orders:c,clearOrders:Xt,setOrders:function(e,n){r(e,n)}}}function ea(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 na(e,n,t,a,i,o,r){try{var l=e[o](r),s=l.value}catch(e){return void t(e)}l.done?n(s):Promise.resolve(s).then(a,i)}function ta(e){return function(){var n=this,t=arguments;return new Promise((function(a,i){var o=e.apply(n,t);function r(e){na(o,a,i,r,l,"next",e)}function l(e){na(o,a,i,r,l,"throw",e)}r(void 0)}))}}function aa(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ia(e,n){var t,a,i,o,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;r;)try{if(t=1,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,a=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!((i=(i=r.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){r.label=o[1];break}if(6===o[0]&&r.label<i[1]){r.label=i[1],i=o;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(o);break}i[2]&&r.ops.pop(),r.trys.pop();continue}o=n.call(e,r)}catch(e){o=[6,e],a=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function oa(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],a=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function ra(e,n,t,a,i){return la.apply(this,arguments)}function la(){return(la=ta((function(e,n,t,a,i){var o,r,s,c,p,u,d,f,g,h,y,b,m,$;return ia(this,(function(v){return p=new Date,u=(0,l.parseDate)(null===(o=t)||void 0===o?void 0:o.startDatetime),d=(0,l.parseDate)(null===(r=t)||void 0===r?void 0:r.stopDatetime),!t||u<p&&(!d||d>p)?f=p:(console.warn("postOrdersOnNewEncounter received an active visit that is not currently active. This is a programming error. Attempting to place the order using the visit start date."),f=u),g=Wt.getState(),h=g.items,y=g.postDataPrepFunctions,b=h[e],m=[],Object.entries(b).forEach((function(n){var t=function(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,o=[],r=!0,l=!1;try{for(t=t.call(e);!(r=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);r=!0);}catch(e){l=!0,i=e}finally{try{r||null==t.return||t.return()}finally{if(l)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return ea(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)?ea(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.")}()}(n,2),a=t[0];t[1].forEach((function(n){m.push(y[a](n,e,null))}))})),$={patient:e,location:a,encounterType:n,encounterDatetime:f,visit:null===(s=t)||void 0===s?void 0:s.uuid,obs:[],orders:m},[2,(0,l.openmrsFetch)("".concat(l.restBaseUrl,"/encounter"),{headers:{"Content-Type":"application/json"},method:"POST",body:$,signal:null===(c=i)||void 0===c?void 0:c.signal}).then((function(e){var n,t;return null===(t=e)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.uuid}))]}))}))).apply(this,arguments)}function sa(e,n){return ca.apply(this,arguments)}function ca(){return ca=ta((function(e,n){var t,a,i,o,r,l,s,c,p,u,d;return ia(this,(function(f){switch(f.label){case 0:for(p in t=function(t){var i,o,c;return ia(this,(function(p){switch(p.label){case 0:i=function(i){var l,c;return ia(this,(function(p){switch(p.label){case 0:return l=o[i],"function"!=typeof(c=r[t])?(console.warn("The postDataPrep function registered for ".concat(t," orders is not a function")),[2,"continue"]):[4,pa(c(l,a,e),n).catch((function(e){var n,t;s.push((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){aa(e,n,t[n])}))}return e}({},l),t=null!=(t={orderError:e,extractedOrderError:ua(e)})?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t.push.apply(t,a)}return t}(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n))}))];case 1:return p.sent(),[2]}}))},o=l[t],c=0,p.label=1;case 1:return c<o.length?[5,oa(i(c))]:[3,4];case 2:p.sent(),p.label=3;case 3:return c++,[3,1];case 4:return[2]}}))},a=yt(),i=Wt.getState(),o=i.items,r=i.postDataPrepFunctions,l=o[a],s=[],c=[],l)c.push(p);u=0,f.label=1;case 1:return u<c.length?(d=c[u],[5,oa(t(d))]):[3,4];case 2:f.sent(),f.label=3;case 3:return u++,[3,1];case 4:return[2,s]}}))})),ca.apply(this,arguments)}function pa(e,n){var t;return(0,l.openmrsFetch)("".concat(l.restBaseUrl,"/order"),{method:"POST",signal:null===(t=n)||void 0===t?void 0:t.signal,headers:{"Content-Type":"application/json"},body:e})}function ua(e){var n,t,a,i,o,r,l={message:null===(t=e.responseBody)||void 0===t||null===(n=t.error)||void 0===n?void 0:n.message,fieldErrors:[],globalErrors:null===(i=e.responseBody)||void 0===i||null===(a=i.error)||void 0===a?void 0:a.globalErrors};if(null===(r=e.responseBody)||void 0===r||null===(o=r.error)||void 0===o?void 0:o.fieldErrors){var s,c,p=null===(c=e.responseBody)||void 0===c||null===(s=c.error)||void 0===s?void 0:s.fieldErrors;for(var u in p)p[u].forEach((function(e){l.fieldErrors.push(e.message)}))}return l}var da=t(3649),fa="6f0c9a92-6f24-11e3-af88-005056821db0",ga="@openmrs/esm-patient-chart-app",ha="custom:(uuid,dosingType,orderNumber,accessionNumber,patient:ref,action,careSetting:ref,previousOrder:ref,dateActivated,scheduledDate,dateStopped,autoExpireDate,orderType:ref,encounter:ref,orderer:(uuid,display,person:(display)),orderReason,orderReasonNonCoded,orderType,urgency,instructions,commentToFulfiller,drug:(uuid,display,strength,dosageForm:(display,uuid),concept),dose,doseUnits:ref,frequency:ref,asNeeded,asNeededCondition,quantity,quantityUnits:ref,numRefills,dosingInstructions,duration,durationUnits:ref,route:ref,brandName,dispenseAsWritten)";function ya(e,n,t,i,o){var r=(0,da.kY)().mutate,s=i&&o?"".concat(l.restBaseUrl,"/order?patient=").concat(e,"&careSetting=").concat(fa,"&v=full&activatedOnOrAfterDate=").concat(i,"&activatedOnOrBeforeDate=").concat(o):"".concat(l.restBaseUrl,"/order?patient=").concat(e,"&careSetting=").concat(fa,"&v=full&status=").concat(n),c=t?"".concat(s,"&orderType=").concat(t):s,p=(0,da.ZP)(e?c:null,l.openmrsFetch),u=p.data,d=p.error,f=p.isLoading,g=p.isValidating,h=(0,a.useCallback)((function(){return r((function(n){return"string"==typeof n&&n.startsWith("".concat(l.restBaseUrl,"/order?patient=").concat(e))}),u)}),[u,r,e]);return{data:(0,a.useMemo)((function(){var e,n,t;return(null===(n=u)||void 0===n||null===(e=n.data)||void 0===e?void 0:e.results)?null===(t=u.data.results)||void 0===t?void 0:t.sort((function(e,n){return n.dateActivated>e.dateActivated?1:-1})):null}),[u]),error:d,isLoading:f,isValidating:g,mutate:h}}function ba(e){return(0,l.openmrsFetch)("".concat(l.restBaseUrl,"/order/").concat(e,"?v=").concat(ha))}var ma=[{value:"ROUTINE",label:(0,l.translateFrom)(ga,"Routine")},{value:"STAT",label:(0,l.translateFrom)(ga,"Stat")},{value:"ON_SCHEDULED_DATE",label:(0,l.translateFrom)(ga,"On scheduled date")}],$a=t(5907),va=t.n($a);function wa(e){return Promise.all(e.map((function(e){return(0,l.openmrsFetch)(e)})))}function xa(e,n){var t,i=function(e,n){var t,i=va()((null===(t=n)||void 0===t?void 0:t.length)?n.map((function(e){return"".concat(l.restBaseUrl,"/concept/").concat(e,"?v=custom:(display,names:(display),uuid,setMembers:(display,uuid,names:(display),setMembers:(display,uuid,names:(display))))")})):null,wa),o=i.data,r=i.isLoading,s=i.error;return(0,a.useEffect)((function(){s&&(0,l.reportError)(s)})),{data:(0,a.useMemo)((function(){if(r||s)return null;if(n){var t,a,i=null===(t=o)||void 0===t?void 0:t.flatMap((function(e){return e.data.setMembers}));return e?null===(a=i)||void 0===a?void 0:a.filter((function(n){return n.names.some((function(n){return n.display.toLocaleLowerCase().includes(e.toLocaleLowerCase())}))})):i}var l,c;return null!==(c=null===(l=o)||void 0===l?void 0:l.flatMap((function(e){return e.data.results})))&&void 0!==c?c:[]}),[r,s,n,o,e]),isLoading:r,error:s}}(e,(null===(t=n)||void 0===t?void 0:t.length)?n:null),o=i.data,r=i.isLoading,s=i.error;return(0,a.useEffect)((function(){s&&(0,l.reportError)(s)}),[s]),{concepts:(0,a.useMemo)((function(){var e,n;return null===(n=o)||void 0===n||null===(e=n.sort((function(e,n){return e.display.localeCompare(n.display)})))||void 0===e?void 0:e.filter((function(e,n,t){return!n||t[n-1].uuid!==e.uuid}))}),[o]),isLoading:r,error:s}}function Aa(e){var n,t=va()("".concat(l.restBaseUrl,"/ordertype/").concat(e),l.openmrsFetch),i=t.data,o=t.isLoading,r=t.isValidating,s=t.error,c=(0,a.useMemo)((function(){var e;return{isLoadingOrderType:o,orderType:null===(e=i)||void 0===e?void 0:e.data,errorFetchingOrderType:s,isValidatingOrderType:r}}),[null===(n=i)||void 0===n?void 0:n.data,s,o,r]);return c}function ka(){var e,n,t="".concat(l.restBaseUrl,"/ordertype"),i=va()(t,l.openmrsFetch),o=i.data,r=i.error,s=i.isLoading,c=i.isValidating,p=(0,a.useMemo)((function(){var e,n;return{data:null===(n=o)||void 0===n||null===(e=n.data)||void 0===e?void 0:e.results,error:r,isLoading:s,isValidating:c}}),[null===(n=o)||void 0===n||null===(e=n.data)||void 0===e?void 0:e.results,r,s,c]);return p}function _a(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 Ca(e,n,t,i){var o=(0,z.useTranslation)("@openmrs/esm-patient-chart-app").t;return{pageSizes:(0,a.useMemo)((function(){var t,a=Math.ceil(n/e);return isNaN(a)&&(a=0),(t=Array(a).keys(),function(e){if(Array.isArray(e))return _a(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,n){if(e){if("string"==typeof e)return _a(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)?_a(e,n):void 0}}(t)||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.")}()).map((function(n){return(n+1)*e}))}),[e,n]),itemsDisplayed:(0,a.useMemo)((function(){return o("paginationItemsCount","{{pageItemsCount}} / {{count}} items",{count:n,pageItemsCount:e>n?n:e*t>n?e*(t-1)+i:e*t})}),[e,n,t,i,o])}}var za=t(1829),Ea={};Ea.styleTagTransform=$(),Ea.setAttributes=h(),Ea.insert=f().bind(null,"head"),Ea.domAPI=u(),Ea.insertStyleElement=b(),c()(za.Z,Ea);const Ma=za.Z&&za.Z.locals?za.Z.locals:void 0;var Na,Sa=function(e){var n=e.totalItems,t=e.pageSize,a=e.onPageNumberChange,o=e.pageNumber,r=e.dashboardLinkUrl,s=e.currentItems,c=e.dashboardLinkLabel,p=(0,z.useTranslation)("@openmrs/esm-patient-chart-app").t,u=Ca(t,n,o,s),d=u.itemsDisplayed,f=u.pageSizes,g="tablet"===(0,l.useLayoutType)();return i().createElement(i().Fragment,null,n>0&&i().createElement("div",{className:g?Ma.tablet:Ma.desktop},i().createElement("div",null,d,r&&i().createElement(l.ConfigurableLink,{to:r,className:Ma.configurableLink},null!=c?c:p("seeAll","See all"))),i().createElement(Yn,{className:Ma.pagination,page:o,pageSize:t,pageSizes:f,totalItems:n,onChange:a,pageRangeText:function(e,n){return p("paginationPageText","of {{count}} pages",{count:n})},size:g?"lg":"sm"})))};function Ta(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}var Oa,Da={Vitals:1,Biometrics:2,Conditions:3,Medications:4},Ba=function(e){return null!==(Oa=Da[e])&&void 0!==Oa?Oa:(Na=Math).max.apply(Na,function(e){if(Array.isArray(e))return Ta(e)}(n=Object.values(Da))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,n){if(e){if("string"==typeof e)return Ta(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)?Ta(e,n):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())+1;var n},Ia=t(3849),La=function(e){var n,t,i=(0,da.ZP)("".concat(l.restBaseUrl,"/programenrollment?patient=").concat(e,"&v=").concat("custom:(uuid,display,program,dateEnrolled,dateCompleted,location:(uuid,display))"),l.openmrsFetch),o=i.data,r=i.error,s=i.isLoading,c=(0,a.useMemo)((function(){var e;return null!==(t=null===(e=o)||void 0===e?void 0:e.data.results.sort((function(e,n){return n.dateEnrolled>e.dateEnrolled?1:-1})).filter((function(e){return null===e.dateCompleted})))&&void 0!==t?t:[]}),[null===(n=o)||void 0===n?void 0:n.data.results]);return{activePatientEnrollment:(0,Ia.Z)(c,(function(e){var n,t;return null===(t=e)||void 0===t||null===(n=t.program)||void 0===n?void 0:n.uuid})),error:r,isLoading:s}};function Ra(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}var Fa=new RegExp(/^(1[0-2]|0?[1-9]):[0-5][0-9]$/),Pa=function(e,n){if(!e.match(Fa))return[0,0];var t=function(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,o=[],r=!0,l=!1;try{for(t=t.call(e);!(r=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);r=!0);}catch(e){l=!0,i=e}finally{try{r||null==t.return||t.return()}finally{if(l)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Ra(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)?Ra(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.")}()}(e.split(":").map((function(e){return parseInt(e,10)})),2),a=t[0];return a%=12,"PM"===n&&(a+=12),[a,t[1]]};function ja(){var e="".concat(l.restBaseUrl,"/systemsetting?&v=").concat("custom:(value)","&q=").concat("attachments.allowedFileExtensions"),n=va()(e,l.openmrsFetch),t=n.data,i=n.error,o=n.isLoading;return{allowedFileExtensions:(0,a.useMemo)((function(){var e,n,a,i,o,r;return(null===(a=t)||void 0===a||null===(n=a.data)||void 0===n||null===(e=n.results)||void 0===e?void 0:e.length)>0&&(null===(r=t)||void 0===r||null===(o=r.data)||void 0===o||null===(i=o.results[0].value)||void 0===i?void 0:i.toLowerCase().split(","))||void 0}),[t]),error:i,isLoading:o}}function Ha(){var e,n=va()("".concat(l.restBaseUrl,"/systemsetting/visits.enabled?v=custom:(value)"),l.openmrsFetch),t=n.data,i=n.isLoading,o=n.error;return(0,a.useMemo)((function(){var n,a;return{systemVisitEnabled:"true"===(null!==(e=null===(a=t)||void 0===a||null===(n=a.data)||void 0===n?void 0:n.value)&&void 0!==e?e:"true").toLowerCase(),errorFetchingSystemVisitSetting:o,isLoadingSystemVisitSetting:i}}),[t,i,o])}function Ua(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Va(e,n){var t=yt();(0,l.launchWorkspace)(e,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){Ua(e,n,t[n])}))}return e}({patientUuid:t},n))}function qa(e){var n=e.patientUuid,t=e.workspaceName,a=e.dashboardName,i=e.additionalProps;(0,l.navigateAndLaunchWorkspace)({targetUrl:"${openmrsSpaBase}/patient/"+"".concat(n,"/chart")+(a?"/".concat(a):""),workspaceName:t,contextKey:"patient/".concat(n),additionalProps:i})}function Wa(e){var n=ht().patientUuid,t=Ha().systemVisitEnabled,i=Rt(n).currentVisit;return(0,a.useCallback)((function(n){!t||i?Va(e,n):mt()}),[i,t,e])}}}]);
|