@kenyaemr/esm-appointments-app 8.1.2-pre.154 → 8.1.2-pre.163

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/.turbo/turbo-build.log +26 -27
  2. package/dist/{460.js → 132.js} +1 -1
  3. package/dist/144.js +2 -0
  4. package/dist/144.js.LICENSE.txt +19 -0
  5. package/dist/144.js.map +1 -0
  6. package/dist/{261.js → 146.js} +1 -1
  7. package/dist/167.js +1 -0
  8. package/dist/167.js.map +1 -0
  9. package/dist/{228.js → 173.js} +1 -1
  10. package/dist/{788.js → 197.js} +1 -1
  11. package/dist/214.js +1 -0
  12. package/dist/214.js.map +1 -0
  13. package/dist/216.js +2 -0
  14. package/dist/{372.js.LICENSE.txt → 216.js.LICENSE.txt} +2 -2
  15. package/dist/216.js.map +1 -0
  16. package/dist/{272.js → 241.js} +1 -1
  17. package/dist/{240.js → 294.js} +1 -1
  18. package/dist/300.js +1 -0
  19. package/dist/323.js +1 -0
  20. package/dist/323.js.map +1 -0
  21. package/dist/{807.js → 335.js} +1 -1
  22. package/dist/41.js +2 -0
  23. package/dist/41.js.map +1 -0
  24. package/dist/442.js +1 -0
  25. package/dist/449.js +1 -0
  26. package/dist/449.js.map +1 -0
  27. package/dist/457.js +2 -0
  28. package/dist/{123.js.LICENSE.txt → 457.js.LICENSE.txt} +11 -24
  29. package/dist/457.js.map +1 -0
  30. package/dist/{566.js → 468.js} +1 -1
  31. package/dist/495.js +1 -0
  32. package/dist/495.js.map +1 -0
  33. package/dist/538.js +1 -0
  34. package/dist/55.js +1 -0
  35. package/dist/618.js +1 -0
  36. package/dist/651.js +1 -0
  37. package/dist/651.js.map +1 -0
  38. package/dist/652.js +1 -1
  39. package/dist/{271.js → 661.js} +1 -1
  40. package/dist/{378.js → 679.js} +1 -1
  41. package/dist/690.js +1 -0
  42. package/dist/712.js +1 -0
  43. package/dist/{529.js.map → 712.js.map} +1 -1
  44. package/dist/{539.js → 723.js} +1 -1
  45. package/dist/745.js +1 -0
  46. package/dist/745.js.map +1 -0
  47. package/dist/753.js +2 -0
  48. package/dist/753.js.LICENSE.txt +3 -0
  49. package/dist/753.js.map +1 -0
  50. package/dist/830.js +1 -0
  51. package/dist/830.js.map +1 -0
  52. package/dist/831.js +2 -0
  53. package/dist/831.js.map +1 -0
  54. package/dist/833.js +1 -1
  55. package/dist/84.js +1 -0
  56. package/dist/84.js.map +1 -0
  57. package/dist/840.js +1 -0
  58. package/dist/859.js +1 -0
  59. package/dist/876.js +1 -0
  60. package/dist/876.js.map +1 -0
  61. package/dist/{644.js → 879.js} +1 -1
  62. package/dist/900.js +1 -0
  63. package/dist/913.js +2 -0
  64. package/dist/{591.js.LICENSE.txt → 913.js.LICENSE.txt} +3 -3
  65. package/dist/913.js.map +1 -0
  66. package/dist/944.js +1 -0
  67. package/dist/99.js +1 -0
  68. package/dist/kenyaemr-esm-appointments-app.js +1 -1
  69. package/dist/kenyaemr-esm-appointments-app.js.buildmanifest.json +313 -286
  70. package/dist/kenyaemr-esm-appointments-app.js.map +1 -1
  71. package/dist/main.js +1 -1
  72. package/dist/main.js.LICENSE.txt +7 -2
  73. package/dist/main.js.map +1 -1
  74. package/dist/routes.json +1 -1
  75. package/package.json +1 -1
  76. package/dist/111.js +0 -2
  77. package/dist/111.js.LICENSE.txt +0 -15
  78. package/dist/111.js.map +0 -1
  79. package/dist/123.js +0 -2
  80. package/dist/123.js.map +0 -1
  81. package/dist/130.js +0 -2
  82. package/dist/130.js.map +0 -1
  83. package/dist/139.js +0 -1
  84. package/dist/139.js.map +0 -1
  85. package/dist/171.js +0 -1
  86. package/dist/171.js.map +0 -1
  87. package/dist/2.js +0 -1
  88. package/dist/2.js.map +0 -1
  89. package/dist/236.js +0 -1
  90. package/dist/269.js +0 -1
  91. package/dist/269.js.map +0 -1
  92. package/dist/319.js +0 -1
  93. package/dist/325.js +0 -1
  94. package/dist/325.js.map +0 -1
  95. package/dist/336.js +0 -1
  96. package/dist/372.js +0 -2
  97. package/dist/372.js.map +0 -1
  98. package/dist/443.js +0 -1
  99. package/dist/443.js.map +0 -1
  100. package/dist/529.js +0 -1
  101. package/dist/574.js +0 -1
  102. package/dist/581.js +0 -1
  103. package/dist/581.js.map +0 -1
  104. package/dist/591.js +0 -2
  105. package/dist/591.js.map +0 -1
  106. package/dist/673.js +0 -1
  107. package/dist/705.js +0 -1
  108. package/dist/711.js +0 -1
  109. package/dist/711.js.map +0 -1
  110. package/dist/727.js +0 -1
  111. package/dist/737.js +0 -1
  112. package/dist/744.js +0 -1
  113. package/dist/757.js +0 -1
  114. package/dist/784.js +0 -2
  115. package/dist/784.js.map +0 -1
  116. package/dist/899.js +0 -1
  117. package/dist/923.js +0 -1
  118. package/dist/923.js.map +0 -1
  119. /package/dist/{784.js.LICENSE.txt → 41.js.LICENSE.txt} +0 -0
  120. /package/dist/{130.js.LICENSE.txt → 831.js.LICENSE.txt} +0 -0
package/dist/139.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_kenyaemr_esm_appointments_app=globalThis.webpackChunk_kenyaemr_esm_appointments_app||[]).push([[139],{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},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},2139:(e,n,t)=>{t.r(n),t.d(n,{CardHeader:()=>A,DashboardExtension:()=>C,DashboardGroupExtension:()=>ht,EmptyDataIllustration:()=>Zn,EmptyState:()=>Qn,ErrorState:()=>nt,PatientChartPagination:()=>va,careSettingUuid:()=>pa,clinicalFormsWorkspace:()=>at,convertTime12to24:()=>Ma,createDashboardGroup:()=>yt,createDashboardLink:()=>E,createOfflineVisitForPatient:()=>Pt,drugCustomRepresentation:()=>ca,formEntryWorkspace:()=>it,getDrugOrderByUuid:()=>fa,getOfflineVisitForPatient:()=>Lt,getPatientChartStore:()=>ct,getPatientSummaryOrder:()=>ka,getPatientUuidFromStore:()=>dt,getPatientUuidFromUrl:()=>ft,htmlFormEntryWorkspace:()=>ot,launchFormEntry:()=>lt,launchFormEntryOrHtmlForms:()=>rt,launchHtmlFormEntry:()=>st,launchPatientChartWithWorkspaceOpen:()=>Ia,launchPatientWorkspace:()=>Ba,launchStartVisitPrompt:()=>gt,postOrders:()=>ia,postOrdersOnNewEncounter:()=>ta,registerNavGroup:()=>$t,time12HourFormatRegex:()=>Ea,useActivePatientEnrollment:()=>za,useAllowedFileExtensions:()=>Ta,useAutoCreatedOfflineVisit:()=>It,useLaunchWorkspaceRequiringVisit:()=>La,useNavGroups:()=>wt,useOfflineVisit:()=>Bt,useOrderBasket:()=>Kt,useOrderTypes:()=>da,usePaginationInfo:()=>ha,usePatientChartStore:()=>ut,usePatientOrders:()=>ua,useSystemVisitSetting:()=>Oa,useVisitOrOfflineVisit:()=>Dt,visitSyncType:()=>Ot});var a=t(268),i=t.n(a),o=t(2524),r=t.n(o),l=t(7234),s=t(6062),p=t.n(s),c=t(4036),u=t.n(c),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(),p()(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)}var k=t(8744),_=t(2228),z=t(4924),C=function(e){var n=e.path,t=e.title,o=e.basePath,s=e.moduleName,p=void 0===s?"@openmrs/esm-patient-chart-app":s,c=(0,z.useTranslation)(p).t,u=(0,k.useLocation)(),d=(0,a.useMemo)((function(){return decodeURIComponent((0,_.Z)(u.pathname.split("/")))}),[u.pathname]);return i().createElement("div",{key:n},i().createElement(l.ConfigurableLink,{className:r()("cds--side-nav__link",{"active-left-nav-link":n===d}),to:"".concat(o,"/").concat(encodeURIComponent(n))},c(t)))},E=function(e){return function(n){var t=n.basePath;return i().createElement(k.BrowserRouter,null,i().createElement(C,{basePath:t,title:e.title,path:e.path,moduleName:e.moduleName}))}},M={};try{process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES&&"true"===process.env.CARBON_ENABLE_CSS_CUSTOM_PROPERTIES?M.enableCssCustomProperties=!0:M.enableCssCustomProperties=!1,process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE&&"true"===process.env.CARBON_ENABLE_USE_CONTROLLED_STATE_WITH_VALUE?M.enableUseControlledStateWithValue=!0:M.enableUseControlledStateWithValue=!1,process.env.CARBON_ENABLE_CSS_GRID&&"true"===process.env.CARBON_ENABLE_CSS_GRID?M.enableCssGrid=!0:M.enableCssGrid=!1,process.env.CARBON_ENABLE_V11_RELEASE?"true"===process.env.CARBON_ENABLE_V11_RELEASE?M.enableV11Release=!0:M.enableV11Release=!1:M.enableV11Release=!0,process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST&&"true"===process.env.CARBON_ENABLE_EXPERIMENTAL_TILE_CONTRAST?M.enableExperimentalTileContrast=!0:M.enableExperimentalTileContrast=!1,process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS&&"true"===process.env.CARBON_ENABLE_V12_TILE_DEFAULT_ICONS?M.enableV12TileDefaultIcons=!0:M.enableV12TileDefaultIcons=!1,process.env.CARBON_ENABLE_V12_OVERFLOWMENU&&"true"===process.env.CARBON_ENABLE_V12_OVERFLOWMENU?M.enableV12Overflowmenu=!0:M.enableV12Overflowmenu=!1}catch(e){M.enableCssCustomProperties=!1,M.enableUseControlledStateWithValue=!1,M.enableCssGrid=!1,M.enableV11Release=!0,M.enableExperimentalTileContrast=!1,M.enableV12TileDefaultIcons=!1,M.enableV12Overflowmenu=!1}var N=[{name:"enable-css-custom-properties",description:"Describe what the flag does",enabled:M.enableCssCustomProperties},{name:"enable-use-controlled-state-with-value",description:"Enable components to be created in either a controlled or uncontrolled mode\n",enabled:M.enableUseControlledStateWithValue},{name:"enable-css-grid",description:"Enable CSS Grid Layout in the Grid and Column React components\n",enabled:M.enableCssGrid},{name:"enable-v11-release",description:"Enable the features and functionality for the v11 Release\n",enabled:M.enableV11Release},{name:"enable-experimental-tile-contrast",description:"Enable the experimental tile improved contrast styles\n",enabled:M.enableExperimentalTileContrast},{name:"enable-v12-tile-default-icons",description:"Enable rendering of default icons in the tile components\n",enabled:M.enableV12TileDefaultIcons},{name:"enable-v12-overflowmenu",description:"Enable the use of the v12 OverflowMenu leveraging the Menu subcomponents\n",enabled:M.enableV12Overflowmenu}];function S(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 T(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,p=!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){p=!0,i=e}finally{try{if(!s&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(p)throw i}}return l}}(e,n)||O(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 O(e,n){if(e){if("string"==typeof e)return D(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)?D(e,n):void 0}}function D(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 B=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=O(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=T(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&&S(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),e}(),I=new B(void 0),L=0;L<N.length;L++){var R=N[L];I.add(R.name,R.enabled)}function P(){return P=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},P.apply(this,arguments)}!function(){I.merge.apply(I,arguments)}({"enable-css-custom-properties":!0,"enable-css-grid":!0,"enable-v11-release":!0,"enable-experimental-tile-contrast":!1});const F=i().createContext("cds");function j(){return i().useContext(F)}var H=t(3980),U=t.n(H);const V=(0,a.createContext)({disabled:!1}),q=e=>{let{disabled:n,children:t}=e;return i().createElement(V.Provider,{value:{disabled:n}},t)};function W(e){let{align:n="end",children:t,className:a,disabled:o=!1,isFlush:l=!1,size:s,...p}=e;const c=j(),u=r()(`${c}--accordion`,a,{[`${c}--accordion--${n}`]:n,[`${c}--accordion--${s}`]:s,[`${c}--layout--size-${s}`]:s,[`${c}--accordion--flush`]:l&&"start"!==n});return i().createElement(q,{disabled:o},i().createElement("ul",P({className:u},p),t))}function Z(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 G(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){K(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function K(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 Y(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}W.propTypes={align:U().oneOf(["start","end"]),children:U().node,className:U().string,disabled:U().bool,isFlush:U().bool,size:U().oneOf(["sm","md","lg"])};var Q=["width","height","viewBox"],X=["tabindex"],J={focusable:"false",preserveAspectRatio:"xMidYMid meet"};const ee=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:p,...c}=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=Y(e,Q),r=o.tabindex,l=Y(o,X),s=G(G(G({},J),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=c;return t&&(u.className=t),null!=p&&(u.tabIndex="number"==typeof p?p:Number(o)),n&&(u.ref=n),r&&(u.xmlns=r),l&&(u.preserveAspectRatio=l),i().createElement("svg",u,a)}));var ne,te,ae,ie,oe,re,le,se,pe;ee.displayName="Icon",ee.propTypes={"aria-hidden":U().oneOfType([U().bool,U().oneOf(["true","false"])]),"aria-label":U().string,"aria-labelledby":U().string,children:U().node,className:U().string,height:U().oneOfType([U().number,U().string]),preserveAspectRatio:U().string,tabIndex:U().oneOfType([U().number,U().string]),viewBox:U().string,width:U().oneOfType([U().number,U().string]),xmlns:U().string};const ce=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return i().createElement(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},ne||(ne=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)})),ue=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return i().createElement(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},te||(te=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"})),ae||(ae=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)})),de=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return"glyph"===a||"glyph"===a||"glyphpx"===a?i().createElement(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor",...o},ie||(ie=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(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},oe||(oe=i().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),t):i().createElement(ee,{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:"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),t)})),fe=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return"glyph"===a||"glyph"===a||"glyphpx"===a?i().createElement(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor",...o},le||(le=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(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},se||(se=i().createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),t):i().createElement(ee,{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:"M22 16L12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"})),t)}));function ge(){let e=0;return function(){return++e}}const he=!("undefined"==typeof window||!window.document||!window.document.createElement),ye=i().createContext(null),be=ge(),me=he?a.useLayoutEffect:a.useEffect;let $e=!1;function ve(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";const n=i().useContext(ye),[t,o]=(0,a.useState)((()=>$e?`${n?`${n}-`:""}${e}-${be()}`:null));if(me((()=>{null===t&&o(`${n?`${n}-`:""}${e}-${be()}`)}),[be]),(0,a.useEffect)((()=>{!1===$e&&($e=!0)}),[]),"function"==typeof i().useId){const t=function(e,n){return`${e?`${e}-`:""}${n}-${i().useId()}`}(n,e);return t}return t}const we={};function xe(e,n){return function(n,t,a){if(void 0!==n[t]){we[a]&&we[a][t]||(we[a]={...we[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 Ae=(0,a.createContext)(null);function ke(e){let{as:n,children:t,dir:o="auto",...r}=e;const l=(0,a.useContext)(Ae),s={},p=n??"span",c={...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,c.direction=o):"auto"===e&&(s.dir=o)}else e!==o?(s.dir=o,c.direction=o):"auto"===e&&(s.dir=o)}else s.dir=o,c.direction=o;return i().createElement(Ae.Provider,{value:c},i().createElement(p,P({},r,s),t))}function _e(e,n){for(let t=0;t<n.length;t++)if(ze(e,n[t]))return!0;return!1}function ze(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}ke.propTypes={as:U().oneOfType([U().func,U().string,U().elementType]),children:U().node.isRequired,dir:U().oneOf(["ltr","rtl","auto"])};const Ce={key:"Enter",which:13,keyCode:13,code:"Enter"},Ee={key:["Escape","Esc"],which:27,keyCode:27,code:"Esc"},Me={key:" ",which:32,keyCode:32,code:"Space"},Ne=e=>i().createElement("button",P({type:"button"},e));function Se(e){let{children:n,className:t="",open:o=!1,onHeadingClick:l,renderExpando:s=Ne,renderToggle:p,title:c="title",disabled:u,handleAnimationEnd:d,...f}=e;const[g,h]=(0,a.useState)(o),[y,b]=(0,a.useState)(o),m=(0,a.useContext)(V),$="boolean"==typeof u?u:m.disabled,v=ve("accordion-item"),w=j(),x=r()({[`${w}--accordion__item`]:!0,[`${w}--accordion__item--active`]:g,[`${w}--accordion__item--disabled`]:$,[t]:!!t}),A=p||s,k=(0,a.useRef)(null);return o!==y&&(h(o),b(o)),i().createElement("li",P({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&&ze(e,Ee)&&h(!1)},type:"button"},i().createElement(fe,{className:`${w}--accordion__arrow`}),i().createElement(ke,{as:"div",className:`${w}--accordion__title`},c)),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)))}Se.propTypes={children:U().node,className:U().string,disabled:U().bool,onClick:U().func,onHeadingClick:U().func,open:U().bool,renderExpando:xe(U().func),renderToggle:U().func,title:U().node};var Te="undefined"!=typeof window?a.useLayoutEffect:a.useEffect;const Oe=e=>(0,a.useCallback)((n=>{e.forEach((e=>{"function"==typeof e?e(n):null!=e&&(e.current=n)}))}),e);function De(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 Be=i().createContext({floating:{current:null}}),Ie=i().forwardRef((function(e,n){let{isTabTip:t,align:o=(t?"bottom-left":"bottom"),as:l="span",autoAlign:s=!1,caret:p=!t,className:c,children:u,dropShadow:d=!0,highContrast:f=!1,onRequestClose:g,open:h,...y}=e;const b=j(),m=(0,a.useRef)(null),$=(0,a.useRef)(null);De("blur",(()=>{h&&g?.()})),De("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=Oe([n,$]),[x,A]=(0,a.useState)(!1),[k,_]=(0,a.useState)(o),z=r()({[`${b}--popover-container`]:!0,[`${b}--popover--caret`]:p,[`${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},c);Te((()=>{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"],p=[o];let c=l[(l.indexOf(o)+1)%l.length];for(;c&&!p.includes(c);)p.push(c),c=l[(l.indexOf(c)+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<p.length;e++){const n=p[e];if(u(n)){d=n;break}}d&&(A(!0),_(d))}),[x,o,s,b,h,t]);const C=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(Be.Provider,{value:v},i().createElement(E,P({},y,{className:z,ref:w}),t?C:u))}));function Le(e,n){let{className:t,children:a,...o}=e;const l=j(),{floating:s}=i().useContext(Be),p=Oe([s,n]);return i().createElement("span",P({},o,{className:`${l}--popover`}),i().createElement("span",{className:r()(`${l}--popover-content`,t),ref:p},a),i().createElement("span",{className:`${l}--popover-caret`}))}Ie.propTypes={align:U().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),as:U().oneOfType([U().string,U().elementType]),autoAlign:U().bool,caret:U().bool,children:U().node,className:U().string,dropShadow:U().bool,highContrast:U().bool,isTabTip:U().bool,onRequestClose:U().func,open:U().bool.isRequired};const Re=i().forwardRef(Le);function Pe(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=Pe(n);if(e)return e}return null}function Fe(e){if(!e||!e.childNodes)return null;if(e?.getAttribute?.("role")&&""!==e.getAttribute("role"))return e;for(const n of e.childNodes){const e=Fe(n);if(e)return e}return null}Re.propTypes={children:U().node,className:U().string};const je=new Set(["mouseup","touchend","touchcancel"]);function He(e){let{align:n="top",className:t,children:o,label:l,description:s,enterDelayMs:p=100,leaveDelayMs:c=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=ve("tooltip"),A=j(),k=i().Children.only(o),_={onFocus:()=>b(!0),onBlur:()=>b(!1),onClick:()=>d&&b(!1),onMouseEnter:function(){w(!0),b(!0,p)},onMouseLeave:z,onMouseDown:C,onMouseMove:function(e){1===e.buttons?$(!0):$(!1)},onTouchStart:C};function z(){w(!1),m||b(!1,c)}function C(){$(!0)}l?_["aria-labelledby"]=x:_["aria-describedby"]=x;const E=(0,a.useCallback)((()=>{$(!1),v||b(!1,c)}),[v,c,b]);return(0,a.useEffect)((()=>(m&&je.forEach((e=>{document.addEventListener(e,E)})),()=>{je.forEach((e=>{document.removeEventListener(e,E)}))})),[m,E]),i().createElement(Ie,P({},f,{align:n,className:r()(`${A}--tooltip`,t),dropShadow:!1,highContrast:!0,onKeyDown:function(e){y&&ze(e,Ee)&&(e.stopPropagation(),b(!1)),y&&d&&(ze(e,Ce)||ze(e,Me))&&b(!1)},onMouseLeave:z,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(Re,{"aria-hidden":y?"false":"true",className:`${A}--tooltip-content`,id:x,ref:h,role:"tooltip"},l||s))}He.propTypes={align:U().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),children:U().node,className:U().string,closeOnActivation:U().bool,defaultOpen:U().bool,description:U().node,enterDelayMs:U().number,label:U().node,leaveDelayMs:U().number};const Ue=i().forwardRef((function(e,n){let{align:t,children:a,className:o,closeOnActivation:l=!0,defaultOpen:s=!1,disabled:p,enterDelayMs:c=100,kind:u,label:d,leaveDelayMs:f=100,wrapperClasses:g,size:h,isSelected:y,...b}=e;const m=j(),$=r()(g,`${m}--icon-tooltip`,{[`${m}--icon-tooltip--disabled`]:p});return i().createElement(He,{align:t,closeOnActivation:l,className:$,defaultOpen:s,enterDelayMs:c,label:d,leaveDelayMs:f},i().createElement(qe,P({},b,{disabled:p,kind:u,ref:n,size:h,className:r()(`${m}--btn--icon-only`,{[`${m}--btn--selected`]:y},o)}),a))}));Ue.propTypes={align:U().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","right"]),children:U().node,className:U().string,closeOnActivation:U().bool,defaultOpen:U().bool,disabled:U().bool,enterDelayMs:U().number,isSelected:U().bool,kind:U().oneOf(["primary","secondary","ghost","tertiary"]),label:U().node.isRequired,leaveDelayMs:U().number,size:U().oneOf(["sm","md","lg"]),wrapperClasses:U().string};const Ve=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)}},qe=i().forwardRef((function(e,n){let{as:t,children:o,className:l,dangerDescription:s="danger",disabled:p=!1,hasIconOnly:c=!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:z="button",...C}=e;const E=(0,a.useRef)(null),M=j(),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`]:p,[`${M}--btn--expressive`]:f,[`${M}--btn--icon-only`]:c,[`${M}--btn--selected`]:c&&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=ve("danger-description"),{"aria-pressed":L}=C;let R={disabled:p,type:z,"aria-describedby":D.includes(h)?I:void 0,"aria-pressed":L??(c&&"ghost"===h?g:void 0)};const F={href:u};let H=null;if(D.includes(h)&&(H=i().createElement("span",{id:I,className:`${M}--visually-hidden`},s)),t?(B=t,R={...R,...F}):u&&!p&&(B="a",R=F),function(e,n){return!0===e}(c)){let e;return"top"!==_&&"bottom"!==_||("center"===k&&(e=_),"end"===k&&(e=`${_}-right`),"start"===k&&(e=`${_}-left`)),"right"!==_&&"left"!==_||(e=_),i().createElement(Ue,P({as:t,align:e,label:d,kind:h,size:x,onMouseEnter:$,onMouseLeave:v,onFocus:m,onBlur:y,onClick:Ve([b,N])},C,S,R),O??o)}return i().createElement(B,{onMouseEnter:$,onMouseLeave:v,onFocus:m,onBlur:y,onClick:b,...C,...S,...R},H,o,T)}));var We,Ze,Ge,Ke;qe.displayName="Button",qe.propTypes={as:U().oneOfType([U().func,U().string,U().elementType]),children:U().node,className:U().string,dangerDescription:U().string,disabled:U().bool,hasIconOnly:U().bool,href:U().string,iconDescription:e=>!e.renderIcon||e.children||e.iconDescription?null:new Error("renderIcon property specified without also providing an iconDescription property."),isExpressive:U().bool,isSelected:U().bool,kind:U().oneOf(["primary","secondary","danger","ghost","danger--primary","danger--ghost","danger--tertiary","tertiary"]),onBlur:U().func,onClick:U().func,onFocus:U().func,onMouseEnter:U().func,onMouseLeave:U().func,renderIcon:U().oneOfType([U().func,U().object]),role:U().string,size:U().oneOf(["sm","md","lg","xl","2xl"]),tabIndex:U().number,tooltipAlignment:U().oneOf(["start","center","end"]),tooltipPosition:U().oneOf(["top","right","bottom","left"]),type:U().oneOf(["button","reset","submit"])};const Ye=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return 16===a||"16"===a||"16px"===a?i().createElement(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},We||(We=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(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...o},Ze||(Ze=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(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...o},Ge||(Ge=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(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Ke||(Ke=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 Qe;const Xe=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return i().createElement(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},Qe||(Qe=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)})),Je=i().forwardRef((function(e,n){let{as:t,children:a,className:o,href:l,disabled:s=!1,inline:p=!1,visited:c=!1,renderIcon:u,size:d,target:f,...g}=e;const h=j(),y=r()(`${h}--link`,o,{[`${h}--link--disabled`]:s,[`${h}--link--inline`]:p,[`${h}--link--visited`]:c,[`${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,P({ref:n},b,g),a,!p&&u&&i().createElement("div",{className:`${h}--link__icon`},i().createElement(u,null)))}));Je.displayName="Link",Je.propTypes={as:U().string,children:U().node,className:U().string,disabled:U().bool,href:U().string,inline:U().bool,renderIcon:U().oneOfType([U().func,U().object]),size:U().oneOf(["sm","md","lg"]),visited:U().bool};const en=(0,a.createContext)(I);var nn,tn,an,on,rn,ln;U().node,U().objectOf(U().bool);const sn=i().forwardRef((function(e,n){let{children:t,className:a,light:o=!1,slug:l,hasRoundedCorners:s=!1,...p}=e;const c=j(),u=r()(`${c}--tile`,{[`${c}--tile--light`]:o,[`${c}--tile--slug`]:l,[`${c}--tile--slug-rounded`]:l&&s},a);return i().createElement("div",P({className:u,ref:n},p),t,l)}));sn.displayName="Tile",sn.propTypes={children:U().node,className:U().string,hasRoundedCorners:U().bool,light:xe(U().bool),slug:U().node};const pn=i().forwardRef((function(e,n){let{children:t,className:o,clicked:l=!1,disabled:s,href:p,light:c,onClick:u=(()=>{}),onKeyDown:d=(()=>{}),renderIcon:f,hasRoundedCorners:g,slug:h,...y}=e;const b=j(),m=r()(`${b}--tile`,`${b}--tile--clickable`,{[`${b}--tile--is-clicked`]:l,[`${b}--tile--light`]:c,[`${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"},nn||(nn=i().createElement("rect",{x:"0.5",y:"0.5",width:"23",height:"23"})),tn||(tn=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)(en).enabled("enable-v12-tile-default-icons"));x&&(f||(f=Ye),s&&(f=Xe));const A=r()({[`${b}--tile--icon`]:!x||x&&!s,[`${b}--tile--disabled-icon`]:x&&s});return i().createElement(Je,P({className:m,href:p,tabIndex:p||s?void 0:0,onClick:s?void 0:function(e){e?.persist?.(),v(!$),u(e)},onKeyDown:function(e){e?.persist?.(),_e(e,[Ce,Me])&&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"}))}));pn.displayName="ClickableTile",pn.propTypes={children:U().node,className:U().string,clicked:U().bool,disabled:U().bool,hasRoundedCorners:U().bool,href:U().string,light:xe(U().bool),onClick:U().func,onKeyDown:U().func,rel:U().string,renderIcon:U().oneOfType([U().func,U().object])},i().forwardRef((function(e,n){let{children:t,className:o,disabled:l,id:s,light:p,onClick:c=(()=>{}),onChange:u=(()=>{}),onKeyDown:d=(()=>{}),selected:f=!1,tabIndex:g=0,title:h="title",slug:y,hasRoundedCorners:b,...m}=e;const $=j(),v=c,w=d,[x,A]=(0,a.useState)(f),[k,_]=(0,a.useState)(f),z=r()(`${$}--tile`,`${$}--tile--selectable`,{[`${$}--tile--is-selected`]:x,[`${$}--tile--light`]:p,[`${$}--tile--disabled`]:l,[`${$}--tile--slug`]:y,[`${$}--tile--slug-rounded`]:y&&b},o);f!==k&&(A(f),_(f));const C=(0,a.useRef)(null);let E;return y&&"Slug"===y.type?.displayName&&(E=i().cloneElement(y,{size:"xs",ref:C})),i().createElement("div",P({className:z,onClick:l?void 0:function(e){e.preventDefault(),e?.persist?.(),y&&C.current&&C.current.contains(e.target)||(A(!x),v(e),u(e))},role:"checkbox","aria-checked":x,onKeyDown:l?void 0:function(e){e?.persist?.(),_e(e,[Ce,Me])&&(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?an||(an=i().createElement(ue,null)):on||(on=i().createElement(ce,null))),i().createElement(ke,{as:"label",htmlFor:s,className:`${$}--tile-content`},t),E)})).propTypes={children:U().node,className:U().string,disabled:U().bool,hasRoundedCorners:U().bool,id:U().string,light:xe(U().bool),name:U().string,onChange:U().func,onClick:U().func,onKeyDown:U().func,selected:U().bool,slug:U().node,tabIndex:U().number,title:U().string,value:U().oneOfType([U().string,U().number]).isRequired};const cn=i().forwardRef((function(e,n){let{tabIndex:t=0,className:o,children:l,expanded:s=!1,tileMaxHeight:p=0,tilePadding:c=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)(p),[A,k]=(0,a.useState)(c),[_,z]=(0,a.useState)(s),[C,E]=(0,a.useState)(p),[M,N]=(0,a.useState)(c),[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=Oe([n,R]),H=j();function U(){S&&L.current&&x(L.current.getBoundingClientRect()?.height),B.current&&x(B.current.getBoundingClientRect().height)}function V(e){e?.persist?.(),T(!S),U()}function q(e){e.target!==R.current&&_e(e,[Ce,Me])&&e.preventDefault()}s!==_&&(T(s),z(s),U()),p!==C&&(x(p),E(p)),c!==M&&(k(c),N(c));const W=r()(`${H}--tile`,`${H}--tile--expandable`,{[`${H}--tile--is-expanded`]:S,[`${H}--tile--light`]:b},o),Z=r()(`${H}--tile`,`${H}--tile--expandable`,`${H}--tile--expandable--interactive`,{[`${H}--tile--is-expanded`]:S,[`${H}--tile--light`]:b,[`${H}--tile--slug`]:m,[`${H}--tile--slug-rounded`]:m&&$},o),G=r()(`${H}--tile__chevron`,`${H}--tile__chevron--interactive`),K=i().Children.toArray(l);Te((()=>{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]),Te((()=>{B.current&&I.current&&(Pe(I.current)||Fe(I.current)||Pe(B.current)||Fe(B.current)||m||D(!1))}),[m]),Te((()=>{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=ve("expandable-tile-interactive");let Q;return m&&"Slug"===m.type?.displayName&&(Q=i().cloneElement(m,{size:"xs"})),O?i().createElement("div",P({ref:F,className:Z},v),i().createElement("div",{ref:L},Q,i().createElement("div",{ref:B,className:`${H}--tile-content`},K[0]),i().createElement("button",{type:"button","aria-expanded":S,"aria-controls":Y,onKeyUp:Ve([d,q]),onClick:Ve([u,V]),"aria-label":S?g:f,className:G},rn||(rn=i().createElement(de,null))),i().createElement("div",{ref:I,className:`${H}--tile-content`,id:Y},K[1]))):i().createElement("button",P({type:"button",ref:F,className:W,"aria-expanded":S,title:S?g:f},v,{onKeyUp:Ve([d,q]),onClick:Ve([u,V]),tabIndex:t}),i().createElement("div",{ref:L},i().createElement("div",{ref:B,className:`${H}--tile-content`},K[0]),i().createElement("div",{className:`${H}--tile__chevron`},i().createElement("span",null,S?y:h),ln||(ln=i().createElement(de,null))),i().createElement("div",{ref:I,className:`${H}--tile-content`},K[1])))}));cn.propTypes={children:U().node,className:U().string,expanded:U().bool,hasRoundedCorners:U().bool,id:U().string,light:xe(U().bool),onClick:U().func,onKeyUp:U().func,slug:U().node,tabIndex:U().number,tileCollapsedIconText:U().string,tileCollapsedLabel:U().string,tileExpandedIconText:U().string,tileExpandedLabel:U().string},cn.displayName="ExpandableTile";const un=i().forwardRef((function(e,n){let{children:t}=e;const a=j();return i().createElement("span",{ref:n,className:`${a}--tile-content__above-the-fold`},t)}));un.propTypes={children:U().node},un.displayName="TileAboveTheFoldContent";const dn=i().forwardRef((function(e,n){let{children:t}=e;const a=j();return i().createElement("span",{ref:n,className:`${a}--tile-content__below-the-fold`},t)}));dn.propTypes={children:U().node},dn.displayName="TileBelowTheFoldContent";const fn=i().createContext(1),gn=["one","two","three"],hn=gn.length-1,yn=i().forwardRef((function(e,n){let{as:t="div",className:a,children:o,level:l,...s}=e;const p=i().useContext(fn),c=l??p,u=j(),d=r()(`${u}--layer-${gn[c]}`,a),f=Math.max(0,Math.min(c+1,hn)),g=t;return i().createElement(fn.Provider,{value:f},i().createElement(g,P({ref:n},s,{className:d}),o))}));yn.displayName="Layer",yn.propTypes={as:U().oneOfType([U().func,U().string,U().elementType]),children:U().node,className:U().string,level:U().oneOf([0,1,2])};const bn=yn;var mn,$n,vn,wn;const xn=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return"glyph"===a||"glyph"===a||"glyphpx"===a?i().createElement(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5 8",fill:"currentColor",...o},mn||(mn=i().createElement("path",{d:"M5 8L0 4 5 0z"})),t):i().createElement(ee,{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:"M20 24L10 16 20 8z"})),t)})),An=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return"glyph"===a||"glyph"===a||"glyphpx"===a?i().createElement(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 5 8",fill:"currentColor",...o},vn||(vn=i().createElement("path",{d:"M0 0L5 4 0 8z"})),t):i().createElement(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},wn||(wn=i().createElement("path",{d:"M12 8L22 16 12 24z"})),t)}));var kn,_n,zn,Cn,En,Mn,Nn,Sn,Tn,On,Dn;const Bn=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return i().createElement(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},kn||(kn=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"})),_n||(_n=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"})),zn||(zn=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)})),In=i().forwardRef((function(e,n){let{children:t,size:a=16,...o}=e;return 16===a||"16"===a||"16px"===a?i().createElement(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",...o},Cn||(Cn=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"})),En||(En=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(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...o},Mn||(Mn=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"})),Nn||(Nn=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(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",...o},Sn||(Sn=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"})),Tn||(Tn=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(ee,{width:a,height:a,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",...o},On||(On=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"})),Dn||(Dn=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)})),Ln=(0,a.createContext)({isFluid:!1}),Rn=ge(),Pn=i().forwardRef((function(e,n){let{className:t,id:o,inline:l=!1,labelText:s="Select",disabled:p=!1,children:c,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=j(),{isFluid:_}=(0,a.useContext)(Ln),[z,C]=(0,a.useState)(!1),[E,M]=(0,a.useState)(""),{current:N}=(0,a.useRef)(Rn()),S=r()({[`${k}--select`]:!0,[`${k}--select--inline`]:l,[`${k}--select--light`]:y,[`${k}--select--invalid`]:f,[`${k}--select--disabled`]:p,[`${k}--select--readonly`]:b,[`${k}--select--warning`]:$,[`${k}--select--fluid--invalid`]:_&&f,[`${k}--select--fluid--focus`]:_&&z,[`${k}--select--slug`]:x}),T=r()(`${k}--label`,{[`${k}--visually-hidden`]:d,[`${k}--label--disabled`]:p}),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(ke,{as:"div",className:`${k}--form-requirement`,id:D},B):null,L=r()(`${k}--form__helper-text`,{[`${k}--form__helper-text--disabled`]:p}),R=h?`select-helper-text-${N}`:void 0,F=h?i().createElement(ke,{as:"div",id:R,className:L},h):null,H={};f?H["aria-describedby"]=D:l||_||(H["aria-describedby"]=F?R:void 0);const U=e=>{C("focus"===e.type)},V={onMouseDown:e=>{b&&(e.preventDefault(),e.target.focus())},onKeyDown:e=>{b&&["ArrowDown","ArrowUp"," "].includes(e.key)&&e.preventDefault()}};let q;x&&"Slug"===x.type?.displayName&&(q=i().cloneElement(x,{size:"mini"}));const W=i().createElement(i().Fragment,null,i().createElement("select",P({},A,H,{id:o,className:O,disabled:p||void 0,"aria-invalid":f||void 0,"aria-readonly":b||void 0,title:E,onChange:Ve([w,e=>{M(e?.target?.value)}])},V,{ref:n}),c),i().createElement(de,{className:`${k}--select__arrow`}),f&&i().createElement(In,{className:`${k}--select__invalid-icon`}),!f&&$&&i().createElement(Bn,{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(ke,{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:U,onBlur:U},W,q,_&&i().createElement("hr",{className:`${k}--select__divider`}),_&&I?I:null),l||_||!I?F:I))}));Pn.displayName="Select",Pn.propTypes={children:U().node,className:U().string,defaultValue:U().any,disabled:U().bool,helperText:U().node,hideLabel:U().bool,id:U().string.isRequired,inline:U().bool,invalid:U().bool,invalidText:U().node,labelText:U().node,light:xe(U().bool),noLabel:U().bool,onChange:U().func,readOnly:U().bool,size:U().oneOf(["sm","md","lg"]),slug:U().node,warn:U().bool,warnText:U().node};const Fn=e=>{let{className:n,value:t="",disabled:a=!1,hidden:o=!1,text:l="",...s}=e;const p=j(),c=r()({[`${p}--select-option`]:!0,...n&&{[n]:n}});return i().createElement("option",P({},s,{className:c,value:t,disabled:a,hidden:o}),l)};var jn,Hn;function Un(e){return"object"==typeof e[0]&&null!==e[0]?e:e.map((e=>({text:e,value:e})))}function Vn(e,n){return n&&e.find((e=>n===e.value))?n:e[0].value}Fn.propTypes={className:U().string,disabled:U().bool,hidden:U().bool,text:U().string.isRequired,value:U().any.isRequired};const qn=i().forwardRef((function(e,n){let{backwardText:t="Previous page",className:o,disabled:l=!1,forwardText:s="Next page",id:p,isLastPage:c=!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:_,...z}=e;const C=j(),E=function(e){const n=ve();return e??n}(p),M=(0,a.useRef)(null),N=(0,a.useRef)(null),[S,T]=(0,a.useState)((()=>Un(w))),[O,D]=(0,a.useState)(w),[B,I]=(0,a.useState)(b),[L,R]=(0,a.useState)(b),[F,H]=(0,a.useState)((()=>Vn(S,$))),[U,V]=(0,a.useState)($),q=r()({[`${C}--pagination`]:!0,[`${C}--pagination--${k}`]:k,[o]:!!o}),W=Math.max(Math.ceil(_/F),1),Z=l||1===B,G=r()({[`${C}--pagination__button`]:!0,[`${C}--pagination__button--backward`]:!0,[`${C}--pagination__button--no-index`]:Z}),K=l||B===W,Y=r()({[`${C}--pagination__button`]:!0,[`${C}--pagination__button--forward`]:!0,[`${C}--pagination__button--no-index`]:K}),Q=function(e){let n=1,t=[];for(;n<=e;)t.push(i().createElement(Fn,{key:n,value:n,text:String(n)})),n++;return t}(W);if(b!==L&&(I(b),R(b)),$!==U&&(H(Vn(S,$)),V($)),!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=Un(w),n=e.find((e=>e.value===F));n||I(1),T(e),D(w)}return i().createElement("div",P({className:q,ref:n},z),i().createElement("div",{className:`${C}--pagination__left`},i().createElement("label",{id:`${C}-pagination-select-${E}-count-label`,className:`${C}--pagination__text`,htmlFor:`${C}-pagination-select-${E}`},f),i().createElement(Pn,{id:`${C}-pagination-select-${E}`,className:`${C}--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),H(n.pageSize),g&&g(n)},disabled:v||l,value:F},S.map((e=>i().createElement(Fn,{key:e.value,value:e.value,text:String(e.text)})))),i().createElement("span",{className:`${C}--pagination__text ${C}--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:`${C}--pagination__right`},A?i().createElement("span",{className:`${C}--pagination__text ${C}--pagination__page-text`},A?x(B,A):y(B,W)):null,i().createElement(Pn,{id:`${C}-pagination-select-${E}-right`,className:`${C}--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:`${C}--pagination__text`},A?x(B,A):y(B,W)),i().createElement("div",{className:`${C}--pagination__control-buttons`},i().createElement(Ue,{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},jn||(jn=i().createElement(xn,null))),i().createElement(Ue,{align:"top-right",disabled:K||c,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},Hn||(Hn=i().createElement(An,null))))))}));qn.propTypes={backwardText:U().string,className:U().string,disabled:U().bool,forwardText:U().string,id:U().oneOfType([U().string,U().number]),isLastPage:U().bool,itemRangeText:U().func,itemText:U().func,itemsPerPageText:U().string,onChange:U().func,page:U().number,pageInputDisabled:U().bool,pageNumberText:U().string,pageRangeText:U().func,pageSize:U().number,pageSizeInputDisabled:U().bool,pageSizes:U().oneOfType([U().arrayOf(U().number),U().arrayOf(U().shape({text:U().text,value:U().number}))]).isRequired,pageText:U().func,pagesUnknown:U().bool,size:U().oneOf(["sm","md","lg"]),totalItems:U().number};var Wn=qn,Zn=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})))},Gn=t(1907),Kn={};Kn.styleTagTransform=$(),Kn.setAttributes=h(),Kn.insert=f().bind(null,"head"),Kn.domAPI=u(),Kn.insertStyleElement=b(),p()(Gn.Z,Kn);const Yn=Gn.Z&&Gn.Z.locals?Gn.Z.locals:void 0;var Qn=function(e){var n=(0,z.useTranslation)("@openmrs/esm-patient-chart-app").t,t="tablet"===(0,l.useLayoutType)();return i().createElement(bn,{className:Yn.layer},i().createElement(sn,{className:Yn.tile},i().createElement("div",{className:t?Yn.tabletHeading:Yn.desktopHeading},i().createElement("h4",null,e.headerTitle)),i().createElement(Zn,null),i().createElement("p",{className:Yn.content},n("emptyStateText","There are no {{displayText}} to display for this patient",{displayText:e.displayText.toLowerCase()})),i().createElement("p",{className:Yn.action},e.launchForm&&i().createElement(qe,{onClick:function(){return e.launchForm()},kind:"ghost",size:t?"lg":"sm"},n("record","Record")," ",e.displayText.toLowerCase()))))},Xn=t(5482),Jn={};Jn.styleTagTransform=$(),Jn.setAttributes=h(),Jn.insert=f().bind(null,"head"),Jn.domAPI=u(),Jn.insertStyleElement=b(),p()(Xn.Z,Jn);const et=Xn.Z&&Xn.Z.locals?Xn.Z.locals:void 0;var nt=function(e){var n,t,a,o,r=e.error,s=e.headerTitle,p=(0,z.useTranslation)("@openmrs/esm-patient-chart-app").t,c="tablet"===(0,l.useLayoutType)();return i().createElement(bn,null,i().createElement(sn,{className:et.tile},i().createElement("div",{className:c?et.tabletHeading:et.desktopHeading},i().createElement("h4",null,s)),i().createElement("p",{className:et.errorMessage},p("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:et.errorCopy},p("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."))))},tt=t(9432),at="clinical-forms-workspace",it="patient-form-entry-workspace",ot="patient-html-form-entry-workspace";function rt(e,n,t,a,i,o,r,l,s,p){var c=arguments.length>10&&void 0!==arguments[10]?arguments[10]:at,u=arguments.length>11&&void 0!==arguments[11]?arguments[11]:it,d=arguments.length>12&&void 0!==arguments[12]?arguments[12]:ot;if(a){var f=e.find((function(e){return e.formUuid===t}));f?st(n,o,i,a,f,d):lt(t,n,i,o,a,r,l,s,f,p,c,u)}else(0,tt.launchStartVisitPrompt)()}function lt(e,n,t,a,i,o,r,l,s,p){var c=arguments.length>10&&void 0!==arguments[10]?arguments[10]:at,u=arguments.length>11&&void 0!==arguments[11]?arguments[11]:it;(0,tt.launchPatientWorkspace)(u,{workspaceTitle:a,clinicalFormsWorkspaceName:c,formEntryWorkspaceName:u,patientUuid:n,mutateForm:p,formInfo:{encounterUuid:t,formUuid:e,patientUuid:n,visitTypeUuid:o,visitUuid:i,visitStartDatetime:r,visitStopDatetime:l,htmlForm:s}})}function st(e,n,t,a,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:ot;(0,tt.launchPatientWorkspace)(o,{workspaceTitle:n,patientUuid:e,formInfo:{encounterUuid:t,visitUuid:a,htmlForm:i}})}var pt=(0,l.createGlobalStore)("patient-chart-global-store",{patientUuid:""});function ct(){return pt}function ut(){return(0,l.useStore)(pt)}function dt(){var e;return null===(e=pt.getState())||void 0===e?void 0:e.patientUuid}function ft(){var e=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return e&&e[1]||dt()}function gt(){var e=(0,l.showModal)("start-visit-dialog",{closeModal:function(){return e()}})}var ht=function(e){var n=e.title,t=e.slotName,o=e.basePath,r=e.isExpanded;return(0,a.useEffect)((function(){$t(t)}),[t]),i().createElement(W,null,i().createElement(Se,{open:null==r||r,title:n,style:{border:"none"}},i().createElement(l.ExtensionSlot,{name:null!=t?t:n,state:{basePath:o}})))},yt=function(e){var n=e.title,t=e.slotName,a=e.isExpanded;return function(e){var o=e.basePath;return i().createElement(ht,{title:n,slotName:t,basePath:o,isExpanded:a})}};function bt(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 mt=(0,l.createGlobalStore)("nav-groups",{navGroups:[]});function $t(e){var n,t=mt.getState();mt.setState({navGroups:[e].concat((n=t.navGroups,function(e){if(Array.isArray(e))return bt(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 bt(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)?bt(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 vt,wt=(0,l.createUseStore)(mt),xt=new Uint8Array(16);function At(){if(!vt&&!(vt="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 vt(xt)}const kt=/^(?:[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 _t=[],zt=0;zt<256;++zt)_t.push((zt+256).toString(16).substr(1));const Ct=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(_t[e[n+0]]+_t[e[n+1]]+_t[e[n+2]]+_t[e[n+3]]+"-"+_t[e[n+4]]+_t[e[n+5]]+"-"+_t[e[n+6]]+_t[e[n+7]]+"-"+_t[e[n+8]]+_t[e[n+9]]+"-"+_t[e[n+10]]+_t[e[n+11]]+_t[e[n+12]]+_t[e[n+13]]+_t[e[n+14]]+_t[e[n+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&kt.test(e)}(t))throw TypeError("Stringified UUID is invalid");return t},Et=function(e,n,t){var a=(e=e||{}).random||(e.rng||At)();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 Ct(a)};function Mt(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 Nt(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 St(e){return function(){var n=this,t=arguments;return new Promise((function(a,i){var o=e.apply(n,t);function r(e){Nt(o,a,i,r,l,"next",e)}function l(e){Nt(o,a,i,r,l,"throw",e)}r(void 0)}))}}function Tt(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 Ot="visit";function Dt(e){var n=(0,l.useConnectivity)(),t=(0,l.useVisit)(e),a=Bt(e);return n?t:a}function Bt(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 Mt(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)?Mt(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(){Lt(e).then((function(e){i({error:null,data:e?jt(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 It(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=Bt(e),p=s.currentVisit,c=s.isValidating,u=s.error,d=s.mutate;(0,a.useEffect)((function(){o||c||p||u||Pt(e,r,n,new Date).finally((function(){return d()}))}),[o,p,c,u,d,r,n,e])}function Lt(e){return Rt.apply(this,arguments)}function Rt(){return(Rt=St((function(e){return Tt(this,(function(n){switch(n.label){case 0:return[4,(0,l.getSynchronizationItems)(Ot)];case 1:return[2,n.sent().find((function(n){return n.patient===e}))]}}))}))).apply(this,arguments)}function Pt(e,n,t,a){return Ft.apply(this,arguments)}function Ft(){return(Ft=St((function(e,n,t,a){var i,o,r,s;return Tt(this,(function(p){switch(p.label){case 0:return[4,(0,l.getSynchronizationItems)("patient-registration")];case 1:return i=p.sent(),o=i.some((function(n){return n.fhirPatient.id===e})),r={uuid:Et(),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)(Ot,r,s)];case 2:return p.sent(),[2,r]}}))}))).apply(this,arguments)}function jt(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 Ht=(0,l.createGlobalStore)("order-basket",{items:{},postDataPrepFunctions:{}});function Ut(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 Vt(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function qt(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){Vt(e,n,t[n])}))}return e}function Wt(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 Zt={setOrderBasketItems:function(e,n,t){var a,i,o,r=dt();return Object.keys(e.postDataPrepFunctions).includes(n)||console.warn("Programming error: You must register a postDataPrepFunction for grouping ".concat(n," ")),{items:Wt(qt({},null===(a=e)||void 0===a?void 0:a.items),Vt({},r,Wt(qt({},null===(o=e)||void 0===o||null===(i=o.items)||void 0===i?void 0:i[r]),Vt({},n,"function"==typeof t?t():t))))}},setPostDataPrepFunctionForGrouping:function(e,n,t){return{postDataPrepFunctions:Wt(qt({},e.postDataPrepFunctions),Vt({},n,t))}}};function Gt(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=dt(),r=null!==(a=Ht.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 Ut(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)?Ut(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)]})));Ht.setState((function(e){return{items:Wt(qt({},e.items),Vt({},o,l))}}))}function Kt(e,n){var t=(0,l.useStoreWithActions)(Ht,Zt),i=t.items,o=t.postDataPrepFunctions,r=t.setOrderBasketItems,s=t.setPostDataPrepFunctionForGrouping,p=function(e,n){var t,a,i,o=dt(),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:p,clearOrders:Gt,setOrders:function(n){return r(e,n)}}:{orders:p,clearOrders:Gt,setOrders:function(e,n){r(e,n)}}}function Yt(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 Qt(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 Xt(e){return function(){var n=this,t=arguments;return new Promise((function(a,i){var o=e.apply(n,t);function r(e){Qt(o,a,i,r,l,"next",e)}function l(e){Qt(o,a,i,r,l,"throw",e)}r(void 0)}))}}function Jt(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ea(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 na(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 ta(e,n,t,a,i){return aa.apply(this,arguments)}function aa(){return(aa=Xt((function(e,n,t,a,i){var o,r,s,p,c,u,d,f,g,h,y,b,m,$;return ea(this,(function(v){return c=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<c&&(!d||d>c)?f=c:(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=Ht.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 Yt(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)?Yt(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===(p=i)||void 0===p?void 0:p.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 ia(e,n){return oa.apply(this,arguments)}function oa(){return oa=Xt((function(e,n){var t,a,i,o,r,l,s,p,c,u,d;return ea(this,(function(f){switch(f.label){case 0:for(c in t=function(t){var i,o,p;return ea(this,(function(c){switch(c.label){case 0:i=function(i){var l;return ea(this,(function(p){switch(p.label){case 0:return l=o[i],[4,ra(r[t](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){Jt(e,n,t[n])}))}return e}({},l),t=null!=(t={orderError:e,extractedOrderError:la(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],p=0,c.label=1;case 1:return p<o.length?[5,na(i(p))]:[3,4];case 2:c.sent(),c.label=3;case 3:return p++,[3,1];case 4:return[2]}}))},a=dt(),i=Ht.getState(),o=i.items,r=i.postDataPrepFunctions,l=o[a],s=[],p=[],l)p.push(c);u=0,f.label=1;case 1:return u<p.length?(d=p[u],[5,na(t(d))]):[3,4];case 2:f.sent(),f.label=3;case 3:return u++,[3,1];case 4:return[2,s]}}))})),oa.apply(this,arguments)}function ra(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 la(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,p,c=null===(p=e.responseBody)||void 0===p||null===(s=p.error)||void 0===s?void 0:s.fieldErrors;for(var u in c)c[u].forEach((function(e){l.fieldErrors.push(e.message)}))}return l}var sa=t(3649),pa="6f0c9a92-6f24-11e3-af88-005056821db0",ca="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 ua(e,n,t){var i=(0,sa.kY)().mutate,o="".concat(l.restBaseUrl,"/order?patient=").concat(e,"&careSetting=").concat(pa,"&v=full&status=").concat(n),r=t?"".concat(o,"&orderType=").concat(t):o,s=(0,sa.ZP)(e?r:null,l.openmrsFetch),p=s.data,c=s.error,u=s.isLoading,d=s.isValidating,f=(0,a.useCallback)((function(){return i((function(n){return"string"==typeof n&&n.startsWith("".concat(l.restBaseUrl,"/order?patient=").concat(e))}),p)}),[p,i,e]);return{data:(0,a.useMemo)((function(){var e,n,t;return(null===(n=p)||void 0===n||null===(e=n.data)||void 0===e?void 0:e.results)?null===(t=p.data.results)||void 0===t?void 0:t.sort((function(e,n){return n.dateActivated>e.dateActivated?1:-1})):null}),[p]),error:c,isLoading:u,isValidating:d,mutate:f}}function da(){var e,n,t,a="".concat(l.restBaseUrl,"/ordertype"),i=(0,sa.ZP)(a,l.openmrsFetch),o=i.data,r=i.error,s=i.isLoading,p=i.isValidating;return{data:null!==(t=null===(n=o)||void 0===n||null===(e=n.data)||void 0===e?void 0:e.results)&&void 0!==t?t:null,error:r,isLoading:s,isValidating:p}}function fa(e){return(0,l.openmrsFetch)("".concat(l.restBaseUrl,"/order/").concat(e,"?v=").concat(ca))}function ga(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 ha(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 ga(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 ga(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)?ga(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 ya=t(1829),ba={};ba.styleTagTransform=$(),ba.setAttributes=h(),ba.insert=f().bind(null,"head"),ba.domAPI=u(),ba.insertStyleElement=b(),p()(ya.Z,ba);const ma=ya.Z&&ya.Z.locals?ya.Z.locals:void 0;var $a,va=function(e){var n=e.totalItems,t=e.pageSize,a=e.onPageNumberChange,o=e.pageNumber,r=e.dashboardLinkUrl,s=e.currentItems,p=e.dashboardLinkLabel,c=(0,z.useTranslation)("@openmrs/esm-patient-chart-app").t,u=ha(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!=p?p:c("seeAll","See all"))),i().createElement(Wn,{className:ma.pagination,page:o,pageSize:t,pageSizes:f,totalItems:n,onChange:a,pageRangeText:function(e,n){return c("paginationPageText","of {{count}} pages",{count:n})},size:g?"lg":"sm"})))};function wa(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 xa,Aa={Vitals:1,Biometrics:2,Conditions:3,Medications:4},ka=function(e){return null!==(xa=Aa[e])&&void 0!==xa?xa:($a=Math).max.apply($a,function(e){if(Array.isArray(e))return wa(e)}(n=Object.values(Aa))||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 wa(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)?wa(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},_a=t(3849),za=function(e){var n,t,i=(0,sa.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,p=(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,_a.Z)(p,(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 Ca(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 Ea=new RegExp(/^(1[0-2]|0?[1-9]):[0-5][0-9]$/),Ma=function(e,n){if(!e.match(Ea))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 Ca(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)?Ca(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]]},Na=t(5907),Sa=t.n(Na);function Ta(){var e="".concat(l.restBaseUrl,"/systemsetting?&v=").concat("custom:(value)","&q=").concat("attachments.allowedFileExtensions"),n=Sa()(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 Oa(){var e,n=Sa()("".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 Da(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ba(e,n){var t=dt();(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){Da(e,n,t[n])}))}return e}({patientUuid:t},n))}function Ia(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 La(e){var n=ut().patientUuid,t=Oa().systemVisitEnabled,i=Dt(n).currentVisit;return(0,a.useCallback)((function(n){!t||i?Ba(e,n):gt()}),[i,t,e])}}}]);