@openmrs/esm-active-visits-app 3.1.1-pre.97 → 4.0.1-pre.340

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 (53) hide show
  1. package/.turbo/turbo-build.log +31 -31
  2. package/dist/150.js +1 -2
  3. package/dist/184.js +1 -0
  4. package/dist/316.js +1 -2
  5. package/dist/316.js.LICENSE.txt +6 -10
  6. package/dist/399.js +1 -0
  7. package/dist/483.js +2 -0
  8. package/dist/{403.js.LICENSE.txt → 483.js.LICENSE.txt} +0 -0
  9. package/dist/709.js +1 -0
  10. package/dist/784.js +1 -2
  11. package/dist/784.js.LICENSE.txt +2 -7
  12. package/dist/858.js +1 -2
  13. package/dist/858.js.LICENSE.txt +2 -0
  14. package/dist/879.js +1 -2
  15. package/dist/main.js +1 -0
  16. package/dist/openmrs-esm-active-visits-app.js +1 -1
  17. package/dist/openmrs-esm-active-visits-app.js.buildmanifest.json +108 -194
  18. package/dist/openmrs-esm-active-visits-app.old +1 -2
  19. package/package.json +7 -14
  20. package/src/active-visits-widget/active-visits.component.tsx +26 -19
  21. package/src/active-visits-widget/active-visits.resource.tsx +1 -1
  22. package/src/active-visits-widget/active-visits.scss +25 -28
  23. package/src/active-visits-widget/empty-data-illustration.component.tsx +2 -2
  24. package/src/root.scss +8 -8
  25. package/src/visits-summary/visit-detail-overview.scss +67 -91
  26. package/src/visits-summary/visit-detail.component.tsx +18 -23
  27. package/src/visits-summary/visits-components/encounter-list.component.tsx +13 -14
  28. package/src/visits-summary/visits-components/encounter-observations.component.tsx +1 -1
  29. package/src/visits-summary/visits-components/visit-summary.component.tsx +36 -38
  30. package/dist/150.js.map +0 -1
  31. package/dist/221.js +0 -2
  32. package/dist/221.js.map +0 -1
  33. package/dist/248.js +0 -2
  34. package/dist/248.js.map +0 -1
  35. package/dist/260.js +0 -2
  36. package/dist/260.js.map +0 -1
  37. package/dist/316.js.map +0 -1
  38. package/dist/402.js +0 -2
  39. package/dist/402.js.map +0 -1
  40. package/dist/403.js +0 -3
  41. package/dist/403.js.map +0 -1
  42. package/dist/635.js +0 -3
  43. package/dist/635.js.LICENSE.txt +0 -16
  44. package/dist/635.js.map +0 -1
  45. package/dist/784.js.map +0 -1
  46. package/dist/785.js +0 -3
  47. package/dist/785.js.LICENSE.txt +0 -8
  48. package/dist/785.js.map +0 -1
  49. package/dist/788.js +0 -2
  50. package/dist/788.js.map +0 -1
  51. package/dist/858.js.map +0 -1
  52. package/dist/879.js.map +0 -1
  53. package/dist/openmrs-esm-active-visits-app.js.map +0 -1
package/dist/788.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_openmrs_esm_active_visits_app=self.webpackChunk_openmrs_esm_active_visits_app||[]).push([[788],{3002:(e,n,t)=>{t.d(n,{Z:()=>s});var i=t(1799),a=t.n(i),o=t(2609),r=t.n(o)()(a());r.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;font:inherit;font-size:100%;vertical-align:baseline;border:0}button,select,input,textarea{font-family:inherit;border-radius:0}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}body{line-height:1}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote::before,blockquote::after,q::before,q::after{content:\"\"}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{font-weight:400;font-family:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace}strong{font-weight:600}@media screen and (-ms-high-contrast: active){svg{fill:ButtonText}}h1{font-size:2.625rem;font-weight:300;line-height:1.199;letter-spacing:0}h2{font-size:2rem;font-weight:400;line-height:1.25;letter-spacing:0}h3{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}h4{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}h5{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}h6{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}p{font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:0}a{color:#0f62fe}em{font-style:italic}@keyframes -esm-active-visits__visit-detail-overview__skeleton___vjxGq{0%{transform:scaleX(0);transform-origin:left;opacity:.3}20%{transform:scaleX(1);transform-origin:left;opacity:1}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}100%{transform:scaleX(0);transform-origin:left;opacity:.3}}:root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-active-visits__visit-detail-overview__productiveHeading01___7mAw1{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}.-esm-active-visits__visit-detail-overview__productiveHeading02___5-t\\+w{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}.-esm-active-visits__visit-detail-overview__bodyLong01___3DCLv{font-size:.875rem;font-weight:400;line-height:1.43;letter-spacing:.16px}.-esm-active-visits__visit-detail-overview__caption01___yCfJc{font-size:.75rem;font-weight:400;line-height:1.34;letter-spacing:.32px}.-esm-active-visits__visit-detail-overview__bodyShort02___fuXhU{font-size:1rem;font-weight:400;line-height:1.375;letter-spacing:0}.-esm-active-visits__visit-detail-overview__text02___hhPqo{color:#525252}.-esm-active-visits__visit-detail-overview__text01___8ug6t{color:#161616}.-esm-active-visits__visit-detail-overview__container___mkGcD{display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.-esm-active-visits__visit-detail-overview__encounterHeading___2xolA{text-align:left;width:100%;margin:0 1rem 1.3125rem 1rem;color:#161616}.-esm-active-visits__visit-detail-overview__visitsDetailWidgetContainer___ZvlEp{background-color:#fff;width:100%;border:1px solid #e0e0e0}.-esm-active-visits__visit-detail-overview__visitsDetailHeaderContainer___fRjET{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0 .75rem 1rem;background-color:#fff}.-esm-active-visits__visit-detail-overview__visitsDetailHeaderContainer___fRjET>h4:after{content:\"\";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid #007d79}.-esm-active-visits__visit-detail-overview__toggleButtons___6i420{margin:0 1rem;height:2.5rem}.-esm-active-visits__visit-detail-overview__toggle___1CMPj{border:1px solid #a6c8ff}.-esm-active-visits__visit-detail-overview__toggle___1CMPj:hover{background-color:#edf5ff}.-esm-active-visits__visit-detail-overview__toggle___1CMPj:active,.-esm-active-visits__visit-detail-overview__toggle___1CMPj:focus{box-shadow:none;background-color:#edf5ff}.-esm-active-visits__visit-detail-overview__toggleActive___Z\\+gk6{background-color:#edf5ff;border:1px solid #0f62fe}.-esm-active-visits__visit-detail-overview__toggleActive___Z\\+gk6:active,.-esm-active-visits__visit-detail-overview__toggleActive___Z\\+gk6:focus{box-shadow:none;border:1px solid #0f62fe;background-color:#edf5ff}.-esm-active-visits__visit-detail-overview__toggle___1CMPj:first-of-type{border-radius:.25rem 0 0 .25rem}.-esm-active-visits__visit-detail-overview__toggle___1CMPj:last-of-type{border-radius:0 .25rem .25rem 0}.-esm-active-visits__visit-detail-overview__customTable___8OnwU tr[data-parent-row]:nth-child(odd) td{background-color:#fff}.-esm-active-visits__visit-detail-overview__customTable___8OnwU tbody tr[data-parent-row]:nth-child(even) td{background-color:#f4f4f4}.-esm-active-visits__visit-detail-overview__encounterEmptyState___QNHmv{text-align:center;margin:0 1rem 1rem 1rem}.-esm-active-visits__visit-detail-overview__expandedRow___o7vyJ>td{padding:inherit !important}.-esm-active-visits__visit-detail-overview__expandedRow___o7vyJ>td>div{max-height:max-content !important}.-esm-active-visits__visit-detail-overview__observation___Eku\\+V{display:grid;grid-template-columns:max-content auto;grid-gap:.5rem;margin:.5rem 0}.-esm-active-visits__visit-detail-overview__observation___Eku\\+V>span{align-self:center}.-esm-active-visits__visit-detail-overview__summaryContainer___6ueAF{margin-left:1rem;display:grid;grid-template-columns:max-content auto}.-esm-active-visits__visit-detail-overview__flexSections___K3zUQ{display:flex}.-esm-active-visits__visit-detail-overview__verticalTabs___8bwHK{margin:1rem 0}.-esm-active-visits__visit-detail-overview__verticalTabs___8bwHK>ul{flex-direction:column !important}.-esm-active-visits__visit-detail-overview__tab___ZEwef{margin-left:0 !important}.-esm-active-visits__visit-detail-overview__tab___ZEwef>button{border-bottom:0 !important;border-left:3px solid #e0e0e0 !important}.-esm-active-visits__visit-detail-overview__tab___ZEwef>button,.-esm-active-visits__visit-detail-overview__tab___ZEwef>button:focus,.-esm-active-visits__visit-detail-overview__tab___ZEwef>button:active{outline:0 !important;outline-offset:0 !important}.-esm-active-visits__visit-detail-overview__selectedTab___RoUbN>button{border-left:3px solid #007d79 !important;border-bottom:0 !important;font-weight:600 !important}.-esm-active-visits__visit-detail-overview__tabContent___U1Tpl{border-top:1px solid #e0e0e0;padding:1rem 0;width:70%}.-esm-active-visits__visit-detail-overview__medicationBlock___4eXwy{background-color:#f4f4f4;padding:.625rem 6.75rem .75rem 1.063rem;margin-top:1.5rem;width:100% !important}.-esm-active-visits__visit-detail-overview__medicationBlock___4eXwy:first-child{margin-top:0}.-esm-active-visits__visit-detail-overview__diagnosesList___Q28KT{display:flex;padding-bottom:.5rem;margin:0 1rem;border-bottom:1px solid #e0e0e0}.-esm-active-visits__visit-detail-overview__diagnosis___Mlep4{border-radius:12px;height:1.5rem;display:flex;align-items:center;padding:0 .5rem;margin:0 .5rem .5rem 0}.-esm-active-visits__visit-detail-overview__primaryDiagnose___lmzUT{background-color:#d0e2ff;color:#0043ce}.-esm-active-visits__visit-detail-overview__secondaryDiagnose___a7ihp{background-color:#ffd7d9;color:#a2191f}.-esm-active-visits__visit-detail-overview__testSummaryExtension___y9BEk p{font-size:.875rem;font-weight:400;line-height:1.43;letter-spacing:.16px;color:#525252}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/_css--reset.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_font-family.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/icons/mixins.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss","webpack://./src/root.scss","webpack://./../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss","webpack://./src/visits-summary/visit-detail-overview.scss"],names:[],mappings:"AAyCA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCTE,2ZAiFE,QAAA,CACA,SAAA,CACA,YAAA,CACA,cAAA,CACA,uBAAA,CACA,QAAA,CAIF,6BAIE,mBAAA,CACA,eAAA,CAGF,4BACE,YAAA,CAIF,mFAYE,aAAA,CAGF,KACE,aAAA,CAGF,IACE,oBAAA,CAGF,IACE,kBAAA,CAGF,MAEE,eAAA,CAGF,aAEE,WAAA,CAGF,wDAIE,UAAA,CAGF,MACE,wBAAA,CACA,gBAAA,CAGF,EACE,qBAAA,CAIF,OACE,QAAA,CC3KJ,KACE,cAAA,CAGF,KC0CA,eAAA,CDvCE,gEAViB,CAWjB,i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E,YAAA,CACA,oBAAA,CACA,aAAA,CACA,+BAAA,CAGF,8DACE,kBAAA,CACA,aAAA,CACA,YAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAA,CAGF,oEACE,wBAAA,CACA,aAAA,CAGF,sEACE,wBAAA,CACA,aAAA,CAGF,2ED4UI,iBAqLsB,CArLtB,eAqLsB,CArLtB,gBAqLsB,CArLtB,oBAqLsB,CC/fxB,aAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n@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}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1200px;\n$breakpoint-desktop-min: 1201px;\n$breakpoint-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","//\n// Copyright IBM Corp. 2016, 2018\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@import './vendor/@carbon/elements/scss/import-once/import-once';\n@import './vendor/@carbon/elements/scss/type/reset';\n@import './vendor/@carbon/elements/scss/icons/mixins';\n\n/// Resets default browser styling\n/// @access public\n/// @group global-reset\n@mixin reset {\n @if variable-exists(css--reset) == false or $css--reset == false {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n font-size: 100%;\n font-family: inherit;\n vertical-align: baseline;\n border: 0;\n\n *,\n *::before,\n *::after {\n box-sizing: inherit;\n }\n }\n}\n\n@include exports('css--reset') {\n @if variable-exists(css--reset) == false or $css--reset == true {\n // http://cssreset.com/scripts/eric-meyer-reset-css/\n html,\n body,\n div,\n span,\n applet,\n object,\n iframe,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n blockquote,\n pre,\n a,\n abbr,\n acronym,\n address,\n big,\n cite,\n code,\n del,\n dfn,\n em,\n img,\n ins,\n kbd,\n q,\n s,\n samp,\n small,\n strike,\n strong,\n sub,\n sup,\n tt,\n var,\n b,\n u,\n i,\n center,\n dl,\n dt,\n dd,\n ol,\n ul,\n li,\n fieldset,\n form,\n label,\n legend,\n table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td,\n article,\n aside,\n canvas,\n details,\n embed,\n figure,\n figcaption,\n footer,\n header,\n hgroup,\n menu,\n nav,\n output,\n ruby,\n section,\n summary,\n time,\n mark,\n audio,\n video {\n margin: 0;\n padding: 0;\n font: inherit;\n font-size: 100%;\n vertical-align: baseline;\n border: 0;\n }\n\n // Chrome 62 fix\n button,\n select,\n input,\n textarea {\n font-family: inherit;\n border-radius: 0;\n }\n\n input[type='text']::-ms-clear {\n display: none;\n }\n\n /* HTML5 display-role reset for older browsers */\n article,\n aside,\n details,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n main,\n menu,\n nav,\n section {\n display: block;\n }\n\n body {\n line-height: 1;\n }\n\n sup {\n vertical-align: super;\n }\n\n sub {\n vertical-align: sub;\n }\n\n ol,\n ul {\n list-style: none;\n }\n\n blockquote,\n q {\n quotes: none;\n }\n\n blockquote::before,\n blockquote::after,\n q::before,\n q::after {\n content: '';\n }\n\n table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n\n * {\n box-sizing: border-box;\n }\n\n // Fix to remove added margins on buttons in safari (see #5155)\n button {\n margin: 0;\n }\n\n @include carbon--type-reset;\n @include carbon--icons;\n }\n}\n\n@include exports('css--default-type') {\n @if variable-exists(css--default-type) == false or $css--default-type == true\n {\n @include carbon--default-type;\n }\n}\n","//\n// Copyright IBM Corp. 2018, 2018\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@import '../layout/convert';\n@import 'font-family';\n@import 'styles';\n\n/// Include a type reset for a given body and mono font family\n/// @param {String} $body-font-family [carbon--font-family('sans')] - The font family used on the `<body>` element\n/// @param {String} $mono-font-family [carbon--font-family('mono')] - The font family used on elements that require mono fonts, like the `<code>` element\n/// @access public\n/// @group @carbon/type\n@mixin carbon--type-reset(\n // TODO: remove in next major release. This has been replaced with 100%\n $base-font-size: $carbon--base-font-size,\n $body-font-family: carbon--font-family('sans'),\n $mono-font-family: carbon--font-family('mono')\n) {\n html {\n font-size: 100%;\n }\n\n body {\n @include carbon--font-weight('regular');\n\n font-family: $body-font-family;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n code {\n font-family: $mono-font-family;\n }\n\n strong {\n @include carbon--font-weight('semibold');\n }\n}\n\n/// Include default type styles\n/// @access public\n/// @group @carbon/type\n@mixin carbon--default-type {\n h1 {\n @include carbon--type-style('productive-heading-06');\n }\n\n h2 {\n @include carbon--type-style('productive-heading-05');\n }\n\n h3 {\n @include carbon--type-style('productive-heading-04');\n }\n\n h4 {\n @include carbon--type-style('productive-heading-03');\n }\n\n h5 {\n @include carbon--type-style('productive-heading-02');\n }\n\n h6 {\n @include carbon--type-style('productive-heading-01');\n }\n\n p {\n @include carbon--type-style('body-long-02');\n }\n\n a {\n @if global-variable-exists('carbon--theme') and\n map-has-key($carbon--theme, 'link-01')\n {\n color: map-get($carbon--theme, 'link-01');\n } @else {\n color: #0062fe;\n }\n }\n\n em {\n font-style: italic;\n }\n}\n","//\n// Copyright IBM Corp. 2018, 2018\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/// Font family fallbacks for: IBM Plex Mono, IBM Plex Sans, IBM Plex Sans\n/// Condensed, IBM Plex Sans Hebrew, and IBM Plex Serif\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$carbon--font-families: (\n 'mono':\n unquote(\n \"'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace\"\n ),\n 'sans': unquote(\"'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif\"),\n 'sans-condensed':\n unquote(\"'IBM Plex Sans Condensed', 'Helvetica Neue', Arial, sans-serif\"),\n 'sans-hebrew':\n unquote(\n \"'IBM Plex Sans Hebrew', 'Helvetica Hebrew', 'Arial Hebrew', sans-serif\"\n ),\n 'serif': unquote(\"'IBM Plex Serif', 'Georgia', Times, serif\"),\n) !default;\n\n/// Get the font-family for an IBM Plex font\n/// @param {String} $name\n/// @return {String}\n/// @access public\n/// @group @carbon/type\n@function carbon--font-family($name) {\n @return map-get($carbon--font-families, $name);\n}\n\n/// Include the `font-family` definition for the given name in your selector\n/// @param {String} $name\n/// @access public\n/// @group @carbon/type\n@mixin carbon--font-family($name) {\n font-family: carbon--font-family($name);\n}\n\n/// Suggested font weights to be used in product\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$carbon--font-weights: (\n 'light': 300,\n 'regular': 400,\n 'semibold': 600,\n) !default;\n\n/// Retrieve the font-weight value for a given name\n/// @param {String} $weight\n/// @return {Number}\n/// @access public\n/// @group @carbon/type\n@function carbon--font-weight($weight) {\n @return map-get($carbon--font-weights, $weight);\n}\n\n/// Set the `font-weight` property with the value for a given name\n/// @param {String} $weight\n/// @access public\n/// @group @carbon/type\n@mixin carbon--font-weight($weight) {\n font-weight: carbon--font-weight($weight);\n}\n","//\n// Copyright IBM Corp. 2018, 2018\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/// Makes SVGs accessible in high contrast mode\n/// @link https://github.com/IBM/carbon-elements/issues/345#issuecomment-466577293 Carbon-elements #345\n/// @access public\n/// @group @carbon/icons\n@mixin carbon--icons {\n @media screen and (-ms-high-contrast: active) {\n svg {\n fill: ButtonText;\n }\n }\n}\n","//\n// Copyright IBM Corp. 2018, 2018\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@import '../layout/breakpoint';\n@import 'font-family';\n@import 'scale';\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$caption-01: (\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$helper-text-01: (\n font-size: carbon--type-scale(1),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.43,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--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-long-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--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$code-01: (\n font-family: carbon--font-family('mono'),\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: carbon--font-family('mono'),\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.43,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.29,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--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$productive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--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$productive-heading-04: (\n font-size: carbon--type-scale(7),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--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$productive-heading-06: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--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$productive-heading-07: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--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$expressive-heading-01: map-merge(\n $heading-01,\n (\n line-height: 1.25,\n )\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: map-merge(\n $heading-02,\n (\n line-height: 1.5,\n )\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: carbon--type-scale(5),\n line-height: 1.25,\n ),\n max: (\n font-size: carbon--type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: carbon--type-scale(7),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: carbon--type-scale(7),\n line-height: 1.25,\n ),\n max: (\n font-size: carbon--type-scale(8),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n font-weight: carbon--font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: carbon--type-scale(6),\n font-weight: carbon--font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: carbon--type-scale(7),\n line-height: 1.29,\n ),\n max: (\n font-size: carbon--type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(5),\n ),\n lg: (\n font-size: carbon--type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: carbon--type-scale(7),\n line-height: 1.29,\n ),\n max: (\n font-size: carbon--type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(10),\n ),\n lg: (\n font-size: carbon--type-scale(12),\n ),\n xlg: (\n font-size: carbon--type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(10),\n ),\n lg: (\n font-size: carbon--type-scale(12),\n ),\n xlg: (\n font-size: carbon--type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: carbon--type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: carbon--type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: carbon--type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: carbon--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$display-04: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: carbon--type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: carbon--type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: carbon--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$tokens: (\n caption-01: $caption-01,\n label-01: $label-01,\n helper-text-01: $helper-text-01,\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);\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 $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 [$carbon--grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: $carbon--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 carbon--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 [$carbon--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: $carbon--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: carbon--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: carbon--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$custom-property-prefix: 'cds' !default;\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 [$carbon--grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin carbon--type-style(\n $name,\n $fluid: false,\n $breakpoints: $carbon--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 @if global-variable-exists('feature-flags') and\n map-get($feature-flags, 'enable-css-custom-properties')\n {\n @include custom-properties($name, $token);\n } @else {\n // Otherwise, we just include all the property declarations directly on the\n // selector\n @include properties(map-remove($token, 'breakpoints'));\n }\n }\n}\n","//\n// Copyright IBM Corp. 2016, 2018\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//----------------------------------------------\n// Mixins\n// ---------------------------------------------\n//\n// Category || Description\n// ===========================================\n// Misc || General helper @mixins\n// Deprecated || Not used anymore\n// ===========================================\n\n//----------------------------------------------\n// Misc\n// ---------------------------------------------\n\n@import 'vars';\n@import 'css--reset';\n@import 'typography';\n@import './vendor/@carbon/elements/scss/import-once/import-once';\n\n/// Adds text overflow styling\n/// @access public\n/// @param {Number} $width [false] - Value of width if you want to set width, else nothing\n/// @example @include text-overflow(300px);\n/// @group global-helpers\n@mixin text-overflow($width: false) {\n display: block;\n overflow-x: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n // apply a width if width parameter exists\n @if ($width) {\n width: $width;\n }\n}\n\n/// Adds placeholder text color\n/// @access public\n/// @example @include placeholder-colors;\n/// @group global-helpers\n@mixin placeholder-colors {\n color: $text-05;\n opacity: 1;\n}\n\n/// Adds box shadow\n/// @access public\n/// @example @include box-shadow;\n/// @group global-helpers\n@mixin box-shadow {\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);\n}\n\n/// Adds outline styles depending on specific type\n/// @access public\n/// @param {String} $type ['border'] - Type of outline from: `border`, `blurred`, `outline`, `invalid`, `reset`\n/// @example @include focus-outline('outline');\n/// @group global-helpers\n@mixin focus-outline($type: 'border') {\n @if ($type == 'border') {\n outline: 1px solid $focus;\n\n @media screen and (prefers-contrast) {\n outline-style: dotted;\n }\n }\n\n @if ($type == 'blurred') {\n outline: 1px solid transparent;\n box-shadow: 0 0 0 3px $focus;\n }\n\n @if ($type == 'outline') {\n outline: 2px solid $focus;\n outline-offset: -2px;\n\n @media screen and (prefers-contrast) {\n outline-style: dotted;\n }\n }\n\n @if ($type == 'outline-compat') {\n box-sizing: border-box;\n border: 2px solid $focus;\n\n @media screen and (prefers-contrast) {\n border-style: dotted;\n }\n }\n\n @if ($type == 'invalid') {\n outline: 2px solid $support-01;\n outline-offset: -2px;\n\n @media screen and (prefers-contrast) {\n outline-style: dotted;\n }\n }\n\n @if ($type == 'reset') {\n outline: 2px solid transparent;\n outline-offset: -2px;\n }\n}\n\n/// Adds rotational transformation\n/// @access public\n/// @param {Number} $deg - How many degrees to rotate\n/// @param {Number} $speed - Speed of rotation\n/// @param {Value} $origin [center] - `transform-origin`\n/// @example @include rotate(90deg, 300ms);\n/// @group global-helpers\n@mixin rotate($deg, $speed, $origin: center) {\n transform: rotate($deg);\n transform-origin: $origin;\n transition: transform $speed;\n}\n\n/// Adds styles to hide content\n/// @access public\n/// @group global-helpers\n@mixin hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n white-space: nowrap;\n border: 0;\n visibility: inherit;\n clip: rect(0, 0, 0, 0);\n}\n\n/// Resets button styles\n/// @access public\n/// @param {Bool} $width [true] - Sets width to 100% if true\n/// @example @include button-reset($width: false);\n/// @group global-helpers\n@mixin button-reset($width: true) {\n @include reset;\n\n display: inline-block;\n padding: 0;\n background: none;\n border: 0;\n cursor: pointer;\n appearance: none;\n\n @if ($width == true) {\n width: 100%;\n }\n\n &::-moz-focus-inner {\n border: 0;\n }\n}\n\n/// Skeleton loading animation\n/// @access public\n/// @example @include skeleton;\n/// @group global-helpers\n@mixin skeleton {\n position: relative;\n padding: 0;\n background: $skeleton-01;\n border: none;\n box-shadow: none;\n pointer-events: none;\n\n &:hover,\n &:focus,\n &:active {\n border: none;\n outline: none;\n cursor: default;\n }\n\n &::before {\n position: absolute;\n width: 100%;\n height: 100%;\n background: $skeleton-02;\n animation: 3000ms ease-in-out skeleton infinite;\n content: '';\n will-change: transform-origin, transform, opacity;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n }\n}\n\n@include exports('skeleton') {\n @keyframes skeleton {\n 0% {\n transform: scaleX(0);\n transform-origin: left;\n opacity: 0.3;\n }\n 20% {\n transform: scaleX(1);\n transform-origin: left;\n opacity: 1;\n }\n 28% {\n transform: scaleX(1);\n transform-origin: right;\n }\n 51% {\n transform: scaleX(0);\n transform-origin: right;\n }\n 58% {\n transform: scaleX(0);\n transform-origin: right;\n }\n 82% {\n transform: scaleX(1);\n transform-origin: right;\n }\n 83% {\n transform: scaleX(1);\n transform-origin: left;\n }\n 96% {\n transform: scaleX(0);\n transform-origin: left;\n }\n 100% {\n transform: scaleX(0);\n transform-origin: left;\n opacity: 0.3;\n }\n }\n}\n","@import 'carbon-components/scss/globals/scss/typography.scss';\n@import '~@openmrs/esm-styleguide/src/vars';\n\n.productiveHeading01 {\n @include carbon--type-style('productive-heading-01');\n}\n\n.productiveHeading02 {\n @include carbon--type-style('productive-heading-02');\n}\n\n.bodyLong01 {\n @include carbon--type-style('body-long-01');\n}\n\n.caption01 {\n @include carbon--type-style('caption-01');\n}\n\n.bodyShort02 {\n @include carbon--type-style('body-short-02');\n}\n\n.text02 {\n color: #525252;\n}\n\n.text01 {\n color: #161616;\n}\n","//\n// Copyright IBM Corp. 2018, 2018\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@import '../layout/breakpoint';\n@import 'font-family';\n@import 'scale';\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$caption-01: (\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$helper-text-01: (\n font-size: carbon--type-scale(1),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.43,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--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-long-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--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$code-01: (\n font-family: carbon--font-family('mono'),\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: carbon--font-family('mono'),\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.43,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.29,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--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$productive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--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$productive-heading-04: (\n font-size: carbon--type-scale(7),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--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$productive-heading-06: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--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$productive-heading-07: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--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$expressive-heading-01: map-merge(\n $heading-01,\n (\n line-height: 1.25,\n )\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: map-merge(\n $heading-02,\n (\n line-height: 1.5,\n )\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: carbon--type-scale(5),\n line-height: 1.25,\n ),\n max: (\n font-size: carbon--type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: carbon--type-scale(7),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: carbon--type-scale(7),\n line-height: 1.25,\n ),\n max: (\n font-size: carbon--type-scale(8),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n font-weight: carbon--font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: carbon--type-scale(6),\n font-weight: carbon--font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: carbon--type-scale(7),\n line-height: 1.29,\n ),\n max: (\n font-size: carbon--type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(5),\n ),\n lg: (\n font-size: carbon--type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: carbon--type-scale(7),\n line-height: 1.29,\n ),\n max: (\n font-size: carbon--type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(10),\n ),\n lg: (\n font-size: carbon--type-scale(12),\n ),\n xlg: (\n font-size: carbon--type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(10),\n ),\n lg: (\n font-size: carbon--type-scale(12),\n ),\n xlg: (\n font-size: carbon--type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: carbon--type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: carbon--type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: carbon--type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: carbon--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$display-04: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: carbon--type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: carbon--type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: carbon--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$tokens: (\n caption-01: $caption-01,\n label-01: $label-01,\n helper-text-01: $helper-text-01,\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);\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 $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 [$carbon--grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: $carbon--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 carbon--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 [$carbon--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: $carbon--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: carbon--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: carbon--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$custom-property-prefix: 'cds' !default;\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 [$carbon--grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin carbon--type-style(\n $name,\n $fluid: false,\n $breakpoints: $carbon--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 @if global-variable-exists('feature-flags') and\n map-get($feature-flags, 'enable-css-custom-properties')\n {\n @include custom-properties($name, $token);\n } @else {\n // Otherwise, we just include all the property declarations directly on the\n // selector\n @include properties(map-remove($token, 'breakpoints'));\n }\n }\n}\n","@import '~@openmrs/esm-styleguide/src/vars';\n@import '~carbon-components/src/globals/scss/vars';\n@import '~carbon-components/src/globals/scss/mixins';\n@import '../root.scss';\n\n.container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n}\n\n.encounterHeading {\n text-align: left;\n width: 100%;\n margin: 0 1rem 1.3125rem 1rem;\n color: #161616;\n}\n\n.visitsDetailWidgetContainer {\n background-color: $ui-background;\n width: 100%;\n border: 1px solid #e0e0e0;\n}\n\n.visitsDetailHeaderContainer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: $spacing-04 0 $spacing-04 $spacing-05;\n background-color: $ui-background;\n}\n\n.visitsDetailHeaderContainer > h4:after {\n content: '';\n display: block;\n width: 2rem;\n padding-top: 0.188rem;\n border-bottom: 0.375rem solid $brand-teal-01;\n}\n\n.toggleButtons {\n margin: 0 1rem;\n height: 2.5rem;\n}\n\n.toggle {\n border: 1px solid #a6c8ff;\n}\n\n.toggle:hover {\n background-color: #edf5ff;\n}\n\n.toggle:active,\n.toggle:focus {\n box-shadow: none;\n background-color: #edf5ff;\n}\n\n.toggleActive {\n background-color: #edf5ff;\n border: 1px solid $link-01;\n}\n\n.toggleActive:active,\n.toggleActive:focus {\n box-shadow: none;\n border: 1px solid $link-01;\n background-color: #edf5ff;\n}\n\n.toggle:first-of-type {\n border-radius: $spacing-02 0 0 $spacing-02;\n}\n\n.toggle:last-of-type {\n border-radius: 0 $spacing-02 $spacing-02 0;\n}\n\n.customTable tr[data-parent-row]:nth-child(odd) td {\n background-color: #fff;\n}\n\n.customTable tbody tr[data-parent-row]:nth-child(even) td {\n background-color: #f4f4f4;\n}\n\n.encounterEmptyState {\n text-align: center;\n margin: 0 1rem 1rem 1rem;\n}\n\n.expandedRow > td {\n padding: inherit !important;\n}\n\n.expandedRow > td > div {\n max-height: max-content !important;\n}\n\n.observation {\n display: grid;\n grid-template-columns: max-content auto;\n grid-gap: 0.5rem;\n margin: 0.5rem 0;\n}\n\n.observation > span {\n align-self: center;\n}\n\n.summaryContainer {\n margin-left: 1rem;\n display: grid;\n grid-template-columns: max-content auto;\n}\n\n.flexSections {\n display: flex;\n}\n\n.verticalTabs {\n margin: 1rem 0;\n}\n\n.verticalTabs > ul {\n flex-direction: column !important;\n}\n\n.tab {\n margin-left: 0 !important;\n}\n\n.tab > button {\n border-bottom: 0 !important;\n border-left: 3px solid #e0e0e0 !important;\n}\n\n.tab > button,\n.tab > button:focus,\n.tab > button:active {\n outline: 0 !important;\n outline-offset: 0 !important;\n}\n\n.selectedTab > button {\n border-left: 3px solid #007d79 !important;\n border-bottom: 0 !important;\n font-weight: 600 !important;\n}\n\n.tabContent {\n border-top: 1px solid #e0e0e0;\n padding: 1rem 0;\n width: 70%;\n}\n\n.medicationBlock {\n background-color: #f4f4f4;\n padding: 0.625rem 6.75rem 0.75rem 1.063rem;\n margin-top: 1.5rem;\n width: 100% !important;\n}\n\n.medicationBlock:first-child {\n margin-top: 0;\n}\n\n.diagnosesList {\n display: flex;\n padding-bottom: 0.5rem;\n margin: 0 1rem;\n border-bottom: 1px solid #e0e0e0;\n}\n\n.diagnosis {\n border-radius: 12px;\n height: 1.5rem;\n display: flex;\n align-items: center;\n padding: 0 0.5rem;\n margin: 0 0.5rem 0.5rem 0;\n}\n\n.primaryDiagnose {\n background-color: #d0e2ff;\n color: #0043ce;\n}\n\n.secondaryDiagnose {\n background-color: #ffd7d9;\n color: #a2191f;\n}\n\n.testSummaryExtension p {\n @include carbon--type-style('body-long-01');\n color: #525252;\n}\n"],sourceRoot:""}]),r.locals={productiveHeading01:"-esm-active-visits__visit-detail-overview__productiveHeading01___7mAw1",productiveHeading02:"-esm-active-visits__visit-detail-overview__productiveHeading02___5-t+w",bodyLong01:"-esm-active-visits__visit-detail-overview__bodyLong01___3DCLv",caption01:"-esm-active-visits__visit-detail-overview__caption01___yCfJc",bodyShort02:"-esm-active-visits__visit-detail-overview__bodyShort02___fuXhU",text02:"-esm-active-visits__visit-detail-overview__text02___hhPqo",text01:"-esm-active-visits__visit-detail-overview__text01___8ug6t",container:"-esm-active-visits__visit-detail-overview__container___mkGcD",encounterHeading:"-esm-active-visits__visit-detail-overview__encounterHeading___2xolA",visitsDetailWidgetContainer:"-esm-active-visits__visit-detail-overview__visitsDetailWidgetContainer___ZvlEp",visitsDetailHeaderContainer:"-esm-active-visits__visit-detail-overview__visitsDetailHeaderContainer___fRjET",toggleButtons:"-esm-active-visits__visit-detail-overview__toggleButtons___6i420",toggle:"-esm-active-visits__visit-detail-overview__toggle___1CMPj",toggleActive:"-esm-active-visits__visit-detail-overview__toggleActive___Z+gk6",customTable:"-esm-active-visits__visit-detail-overview__customTable___8OnwU",encounterEmptyState:"-esm-active-visits__visit-detail-overview__encounterEmptyState___QNHmv",expandedRow:"-esm-active-visits__visit-detail-overview__expandedRow___o7vyJ",observation:"-esm-active-visits__visit-detail-overview__observation___Eku+V",summaryContainer:"-esm-active-visits__visit-detail-overview__summaryContainer___6ueAF",flexSections:"-esm-active-visits__visit-detail-overview__flexSections___K3zUQ",verticalTabs:"-esm-active-visits__visit-detail-overview__verticalTabs___8bwHK",tab:"-esm-active-visits__visit-detail-overview__tab___ZEwef",selectedTab:"-esm-active-visits__visit-detail-overview__selectedTab___RoUbN",tabContent:"-esm-active-visits__visit-detail-overview__tabContent___U1Tpl",medicationBlock:"-esm-active-visits__visit-detail-overview__medicationBlock___4eXwy",diagnosesList:"-esm-active-visits__visit-detail-overview__diagnosesList___Q28KT",diagnosis:"-esm-active-visits__visit-detail-overview__diagnosis___Mlep4",primaryDiagnose:"-esm-active-visits__visit-detail-overview__primaryDiagnose___lmzUT",secondaryDiagnose:"-esm-active-visits__visit-detail-overview__secondaryDiagnose___a7ihp",testSummaryExtension:"-esm-active-visits__visit-detail-overview__testSummaryExtension___y9BEk",skeleton:"-esm-active-visits__visit-detail-overview__skeleton___vjxGq"};const s=r},3788:(e,n,t)=>{t.r(n),t.d(n,{default:()=>ee});var i=t(9902),a=t.n(i),o=t(8580),r=t(7030),s=t(4924),l=t(3066),c=t(9857),p=t(6062),d=t.n(p),u=t(4036),g=t.n(u),f=t(6793),m=t.n(f),b=t(7892),h=t.n(b),y=t(1173),v=t.n(y),A=t(2464),_=t.n(A),$=t(3002),w={};w.styleTagTransform=_(),w.setAttributes=h(),w.insert=m().bind(null,"head"),w.domAPI=g(),w.insertStyleElement=v(),d()($.Z,w);const x=$.Z&&$.Z.locals?$.Z.locals:void 0;var C=t(6069),k=t(160),B=t(364),E=t(7500),z=t(8804),M=t(8117),L=t(1358),q=t(2427),S=t(318),T=t(3783),I=t(1683),F=t(5787);function G(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}const D=function(e){var n=e.observations,t=(0,s.useTranslation)().t,o=(0,i.useMemo)((function(){return n&&n.map((function(e){var n,t,i=(n=e.display.split(":"),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,a,o=[],r=!0,s=!1;try{for(t=t.call(e);!(r=(i=t.next()).done)&&(o.push(i.value),!n||o.length!==n);r=!0);}catch(e){s=!0,a=e}finally{try{r||null==t.return||t.return()}finally{if(s)throw a}}return o}}(n,t)||function(e,n){if(e){if("string"==typeof e)return G(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)?G(e,n):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return{question:i[0],answer:i[1]}}))}),[n]);return o?o.length>0?a().createElement("div",{className:x.observation},o.map((function(e,n){return a().createElement(a().Fragment,{key:n},a().createElement("span",{className:x.caption01},e.question,": "),a().createElement("span",{className:"".concat(x.bodyShort02," ").concat(x.text01)},e.answer))}))):a().createElement("p",{className:x.caption01},t("noObservationsFound","No observations found")):a().createElement(F.Z,null)};function N(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}function H(){return H=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},H.apply(this,arguments)}const U=function(e){var n,t,o=e.encounters,r=e.visitUuid,c=(0,s.useTranslation)().t,p="desktop"===(0,l.useLayoutType)(),d=(n=(0,i.useState)(0),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,a,o=[],r=!0,s=!1;try{for(t=t.call(e);!(r=(i=t.next()).done)&&(o.push(i.value),!n||o.length!==n);r=!0);}catch(e){s=!0,a=e}finally{try{r||null==t.return||t.return()}finally{if(s)throw a}}return o}}(n,t)||function(e,n){if(e){if("string"==typeof e)return N(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)?N(e,n):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=d[0],g=d[1],f=(0,i.useRef)(null),m=(0,i.useMemo)((function(){return[{id:1,header:c("time","Time"),key:"time"},{id:2,header:c("encounterType","Encounter Type"),key:"encounterType"},{id:3,header:c("provider","Provider"),key:"provider"}]}),[c]);return(0,i.useEffect)((function(){var e;g(null==f||null===(e=f.current)||void 0===e?void 0:e.clientWidth);var n=function(){var e;return g(null==f||null===(e=f.current)||void 0===e?void 0:e.clientWidth)};return window.addEventListener("resize",n),function(){return window.removeEventListener("resize",n)}}),[]),0!==o.length?a().createElement(C.ZP,{rows:o,headers:m},(function(e){var n=e.rows,t=e.headers,i=e.getHeaderProps,s=e.getRowProps,l=e.getTableProps;return a().createElement(k.Z,null,a().createElement(B.Z,H({className:x.customTable},l(),{size:p?"short":"normal"}),a().createElement(E.Z,null,a().createElement(z.Z,null,a().createElement(M.Z,null),t.map((function(e,n){return 0===n?a().createElement(L.Z,H({id:"header_".concat(r,"_").concat(n),ref:f},i({header:e})),e.header):a().createElement(L.Z,H({id:"header_".concat(r,"_").concat(n)},i({header:e})),e.header)})))),a().createElement(q.Z,null,n.map((function(e,n){return a().createElement(a().Fragment,{key:e.id},a().createElement(S.Z,H({},s({row:e})),e.cells.map((function(e){return a().createElement(T.Z,{key:e.id},e.value)}))),e.isExpanded&&a().createElement(I.Z,{className:x.expandedRow,style:{paddingLeft:p?"3rem":"4rem"},colSpan:t.length+2},a().createElement("div",{style:{marginLeft:u}},a().createElement(D,{observations:o[n].obs}))))})))))})):a().createElement("div",{className:x.encounterEmptyState},a().createElement("h4",{className:x.productiveHeading02},c("noEncountersFound","No encounters found")),a().createElement("p",{className:"".concat(x.bodyLong01," ").concat(x.text02)},c("thereIsNoInformationToDisplayHere","There is no information to display here")))};var j=t(3950),P=t(7513),Z=t(8260);const O=function(e){var n=e.medications,t=(0,s.useTranslation)().t;return a().createElement(a().Fragment,null,n.length>0?n.map((function(e,n){var i,o,r,s,c,p,d,u,g;return(null===(i=e.order)||void 0===i?void 0:i.dose)&&"Drug Order"===(null===(o=e.order)||void 0===o||null===(r=o.orderType)||void 0===r?void 0:r.display)&&a().createElement(a().Fragment,{key:n},a().createElement("p",{className:"".concat(x.bodyLong01," ").concat(x.medicationBlock)},a().createElement("strong",null,(0,Z.Z)(null===(s=e.order.drug)||void 0===s?void 0:s.name))," —"," ",null===(c=e.order.doseUnits)||void 0===c?void 0:c.display," — ",null===(p=e.order.route)||void 0===p?void 0:p.display,a().createElement("br",null),a().createElement("span",{className:x.label01},t("dose","Dose").toUpperCase())," ",a().createElement("strong",null,function(e,n){if(!e||!n)return"";var t=e.search(/\D/),i=parseInt(e.substring(0,t)),a=e.search(/\//),o=e.substring(t);if(a>=0){o=e.substring(t,a);var r=e.substring(a+1).search(/\D/),s=parseInt(e.substr(a+1,r)),l=e.substring(a+1+r);return"".concat(n," ").concat(o," (").concat(n/i*s," ").concat(l,")")}return"".concat(i*n," ").concat(o)}(null===(d=e.order.drug)||void 0===d?void 0:d.strength,e.order.dose).toLowerCase())," ","— ",null===(u=e.order.frequency)||void 0===u?void 0:u.display," —"," ",e.order.duration?t("orderDurationAndUnit","for {duration} {durationUnit}",{duration:e.order.duration,durationUnit:null===(g=e.order.durationUnits)||void 0===g?void 0:g.display}):t("orderIndefiniteDuration","Indefinite duration"),a().createElement("br",null),a().createElement("span",{className:x.label01},t("refills","Refills").toUpperCase())," ",e.order.numRefills),a().createElement("p",{className:x.caption01,style:{color:"#525252"}},(0,l.formatTime)((0,l.parseDate)(e.order.dateActivated))," ·"," ",e.provider&&e.provider.name," ·"," ",e.provider&&e.provider.role))})):a().createElement("p",{className:"".concat(x.bodyLong01," ").concat(x.text02)},t("noMedicationsFound","No medications found")))},R=function(e){var n=e.notes,t=(0,s.useTranslation)().t;return a().createElement(a().Fragment,null,n.length>0?n.map((function(e,n){return a().createElement(a().Fragment,{key:n},a().createElement("p",{className:"".concat(x.medicationBlock," ").concat(x.bodyLong01)},e.note),a().createElement("p",{className:x.caption01,style:{color:"#525252"}},e.time," · ",e.provider.name," · ",e.provider.role))})):a().createElement("p",{className:"".concat(x.bodyLong01," ").concat(x.text02)},t("noNotesFound","No notes found")))};function X(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}const V=function(e){var n=e.patientUuid,t=e.encounters,o=(0,i.useMemo)((function(){var e=t.map((function(e){return"Encounter/".concat(e.uuid)}));return function(n){var t,i,a=(t=n,i=1,function(e){if(Array.isArray(e))return e}(t)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,a,o=[],r=!0,s=!1;try{for(t=t.call(e);!(r=(i=t.next()).done)&&(o.push(i.value),!n||o.length!==n);r=!0);}catch(e){s=!0,a=e}finally{try{r||null==t.return||t.return()}finally{if(s)throw a}}return o}}(t,i)||function(e,n){if(e){if("string"==typeof e)return X(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)?X(e,n):void 0}}(t,i)||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];return e.includes(a.encounter.reference)}}),[t]);return a().createElement("div",{className:"".concat(x.bodyLong01," ").concat(x.testSummaryExtension)},a().createElement(l.ExtensionSlot,{extensionSlotName:"test-results-filtered-overview",state:{filter:o,patientUuid:n}}))};function W(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}function K(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 i,a,o=[],r=!0,s=!1;try{for(t=t.call(e);!(r=(i=t.next()).done)&&(o.push(i.value),!n||o.length!==n);r=!0);}catch(e){s=!0,a=e}finally{try{r||null==t.return||t.return()}finally{if(s)throw a}}return o}}(e,n)||Y(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 Y(e,n){if(e){if("string"==typeof e)return W(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)?W(e,n):void 0}}const J=function(e){var n=e.encounters,t=e.patientUuid,o=(0,s.useTranslation)().t,r=K((0,i.useState)(0),2),c=r[0],p=r[1],d=K((0,i.useMemo)((function(){var e=[],t=[],i=[];return n.forEach((function(n){var a,o;(a=e).push.apply(a,function(e){if(Array.isArray(e))return W(e)}(o=n.orders.map((function(e){return{order:e,provider:{name:n.encounterProviders.length?n.encounterProviders[0].provider.person.display:"",role:n.encounterProviders.length?n.encounterProviders[0].encounterRole.display:""}}})))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||Y(o)||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.")}()),"Visit Note"===n.encounterType.display&&n.obs.forEach((function(e){"Visit Diagnoses"===e.concept.display?t.push({diagnosis:e.groupMembers.find((function(e){return"PROBLEM LIST"===e.concept.display})).value.display,order:e.groupMembers.find((function(e){return"Diagnosis order"===e.concept.display})).value.display}):"Text of encounter note"===e.concept.display&&i.push({note:e.value,provider:{name:n.encounterProviders.length?n.encounterProviders[0].provider.person.display:"",role:n.encounterProviders.length?n.encounterProviders[0].encounterRole.display:""},time:(0,l.formatTime)((0,l.parseDate)(e.obsDatetime))})}))})),[t,i,e]}),[n]),3),u=d[0],g=d[1],f=d[2];return a().createElement("div",{className:x.summaryContainer},a().createElement("p",{className:x.productiveHeading01},o("diagnoses","Diagnoses")),a().createElement("div",{className:"".concat(x.caption01," ").concat(x.diagnosesList)},u.length>0?u.map((function(e,n){return a().createElement("span",{key:n,className:"".concat(x.diagnosis," ").concat("Primary"===e.order?x.primaryDiagnose:x.secondaryDiagnose)},e.diagnosis)})):a().createElement("span",{className:"".concat(x.bodyLong01," ").concat(x.text02),style:{marginBottom:"0.5rem"}},o("noDiagnosesFound","No diagnoses found"))),a().createElement(j.ZP,{className:x.verticalTabs},a().createElement(P.Z,{className:"".concat(x.tab," ").concat(x.bodyLong01," ").concat(0===c&&x.selectedTab),onClick:function(){return p(0)},id:"notes-tab",label:o("notes","Notes")},a().createElement(R,{notes:g})),a().createElement(P.Z,{className:"".concat(x.tab," ").concat(1===c&&x.selectedTab),onClick:function(){return p(1)},id:"tests-tab",label:o("tests","Tests")},a().createElement(V,{patientUuid:t,encounters:n})),a().createElement(P.Z,{className:"".concat(x.tab," ").concat(2===c&&x.selectedTab),onClick:function(){return p(2)},id:"tab-3",label:o("medications","Medications")},a().createElement(O,{medications:f}))))};function Q(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i}const ee=function(e){var n,t,p,d=e.visitUuid,u=e.patientUuid,g=(0,s.useTranslation)().t,f=(t=(0,i.useState)(!0),p=2,function(e){if(Array.isArray(e))return e}(t)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var i,a,o=[],r=!0,s=!1;try{for(t=t.call(e);!(r=(i=t.next()).done)&&(o.push(i.value),!n||o.length!==n);r=!0);}catch(e){s=!0,a=e}finally{try{r||null==t.return||t.return()}finally{if(s)throw a}}return o}}(t,p)||function(e,n){if(e){if("string"==typeof e)return Q(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)?Q(e,n):void 0}}(t,p)||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.")}()),m=f[0],b=f[1],h=function(e){var n=(0,c.ZP)("/ws/rest/v1/visit/".concat(e,"?v=").concat("custom:(uuid,encounters:(uuid,encounterDatetime,orders:(uuid,dateActivated,drug:(uuid,name,strength),doseUnits:(uuid,display),dose,route:(uuid,display),frequency:(uuid,display),duration,durationUnits:(uuid,display),numRefills,orderType:(uuid,display),orderer:(uuid,person:(uuid,display))),obs:(uuid,concept:(uuid,display,conceptClass:(uuid,display)),display,groupMembers:(uuid,concept:(uuid,display),value:(uuid,display)),value),encounterType:(uuid,display),encounterProviders:(uuid,display,encounterRole:(uuid,display),provider:(uuid,person:(uuid,display)))),visitType:(uuid,name,display),startDatetime"),l.openmrsFetch),t=n.data,i=n.error,a=n.isValidating;return{visit:t?t.data:null,isError:i,isLoading:!t&&!i,isValidating:a}}(d),y=h.visit,v=(h.isError,h.isLoading),A=(h.isValidating,(0,i.useMemo)((function(){var e;return y?null==y||null===(e=y.encounters)||void 0===e?void 0:e.map((function(e){return{id:e.uuid,time:(0,l.formatTime)((0,l.parseDate)(e.encounterDateTime)),encounterType:e.encounterType.display,provider:e.encounterProviders.length>0?e.encounterProviders[0].display:"",obs:e.obs}})):[]}),[y]));return v?a().createElement(o.Z,{role:"progressbar"}):y?a().createElement("div",{className:x.visitsDetailWidgetContainer},a().createElement("div",{className:x.visitsDetailHeaderContainer},a().createElement("h4",{className:x.productiveHeading02},null==y||null===(n=y.visitType)||void 0===n?void 0:n.display,a().createElement("br",null),a().createElement("p",{className:"".concat(x.bodyLong01," ").concat(x.text02)},(0,l.formatDatetime)((0,l.parseDate)(null==y?void 0:y.startDatetime)))),a().createElement("div",{className:x.toggleButtons},a().createElement(r.Z,{className:"".concat(x.toggle," ").concat(m?x.toggleActive:""),size:"small",kind:"ghost",onClick:function(){return b(!0)}},g("allEncounters","All Encounters")),a().createElement(r.Z,{className:"".concat(x.toggle," ").concat(m?"":x.toggleActive),size:"small",kind:"ghost",onClick:function(){return b(!1)}},g("visitSummary","Visit Summary")))),m&&(null==y?void 0:y.encounters)&&a().createElement(U,{visitUuid:y.uuid,encounters:A}),!m&&a().createElement(J,{encounters:y.encounters,patientUuid:u})):null}}}]);
2
- //# sourceMappingURL=788.js.map
package/dist/788.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"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AW6H,EAAMjC,KAAM7F,WAAYA,KAClF+H,GAAY,kBAACmB,EAAY,CAAClJ,WAAY8H,EAAM9H,WAAYyF,YAAaA,KAIpE","sources":["webpack://@openmrs/esm-active-visits-app/./src/visits-summary/visit-detail-overview.scss","webpack://@openmrs/esm-active-visits-app/./src/visits-summary/visit-detail-overview.scss?2bcc","webpack://@openmrs/esm-active-visits-app/./src/visits-summary/visits-components/encounter-observations.component.tsx","webpack://@openmrs/esm-active-visits-app/./src/visits-summary/visits-components/encounter-list.component.tsx","webpack://@openmrs/esm-active-visits-app/./src/visits-summary/visits-components/medications-summary.component.tsx","webpack://@openmrs/esm-active-visits-app/./src/visits-summary/visit.resource.ts","webpack://@openmrs/esm-active-visits-app/./src/visits-summary/visits-components/notes-summary.component.tsx","webpack://@openmrs/esm-active-visits-app/./src/visits-summary/visits-components/tests-summary.component.tsx","webpack://@openmrs/esm-active-visits-app/./src/visits-summary/visits-components/visit-summary.component.tsx","webpack://@openmrs/esm-active-visits-app/./src/visits-summary/visit-detail.component.tsx"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;font:inherit;font-size:100%;vertical-align:baseline;border:0}button,select,input,textarea{font-family:inherit;border-radius:0}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}body{line-height:1}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote::before,blockquote::after,q::before,q::after{content:\\\"\\\"}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{font-weight:400;font-family:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace}strong{font-weight:600}@media screen and (-ms-high-contrast: active){svg{fill:ButtonText}}h1{font-size:2.625rem;font-weight:300;line-height:1.199;letter-spacing:0}h2{font-size:2rem;font-weight:400;line-height:1.25;letter-spacing:0}h3{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}h4{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}h5{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}h6{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}p{font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:0}a{color:#0f62fe}em{font-style:italic}@keyframes -esm-active-visits__visit-detail-overview__skeleton___vjxGq{0%{transform:scaleX(0);transform-origin:left;opacity:.3}20%{transform:scaleX(1);transform-origin:left;opacity:1}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}100%{transform:scaleX(0);transform-origin:left;opacity:.3}}:root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-active-visits__visit-detail-overview__productiveHeading01___7mAw1{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}.-esm-active-visits__visit-detail-overview__productiveHeading02___5-t\\\\+w{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}.-esm-active-visits__visit-detail-overview__bodyLong01___3DCLv{font-size:.875rem;font-weight:400;line-height:1.43;letter-spacing:.16px}.-esm-active-visits__visit-detail-overview__caption01___yCfJc{font-size:.75rem;font-weight:400;line-height:1.34;letter-spacing:.32px}.-esm-active-visits__visit-detail-overview__bodyShort02___fuXhU{font-size:1rem;font-weight:400;line-height:1.375;letter-spacing:0}.-esm-active-visits__visit-detail-overview__text02___hhPqo{color:#525252}.-esm-active-visits__visit-detail-overview__text01___8ug6t{color:#161616}.-esm-active-visits__visit-detail-overview__container___mkGcD{display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.-esm-active-visits__visit-detail-overview__encounterHeading___2xolA{text-align:left;width:100%;margin:0 1rem 1.3125rem 1rem;color:#161616}.-esm-active-visits__visit-detail-overview__visitsDetailWidgetContainer___ZvlEp{background-color:#fff;width:100%;border:1px solid #e0e0e0}.-esm-active-visits__visit-detail-overview__visitsDetailHeaderContainer___fRjET{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0 .75rem 1rem;background-color:#fff}.-esm-active-visits__visit-detail-overview__visitsDetailHeaderContainer___fRjET>h4:after{content:\\\"\\\";display:block;width:2rem;padding-top:.188rem;border-bottom:.375rem solid #007d79}.-esm-active-visits__visit-detail-overview__toggleButtons___6i420{margin:0 1rem;height:2.5rem}.-esm-active-visits__visit-detail-overview__toggle___1CMPj{border:1px solid #a6c8ff}.-esm-active-visits__visit-detail-overview__toggle___1CMPj:hover{background-color:#edf5ff}.-esm-active-visits__visit-detail-overview__toggle___1CMPj:active,.-esm-active-visits__visit-detail-overview__toggle___1CMPj:focus{box-shadow:none;background-color:#edf5ff}.-esm-active-visits__visit-detail-overview__toggleActive___Z\\\\+gk6{background-color:#edf5ff;border:1px solid #0f62fe}.-esm-active-visits__visit-detail-overview__toggleActive___Z\\\\+gk6:active,.-esm-active-visits__visit-detail-overview__toggleActive___Z\\\\+gk6:focus{box-shadow:none;border:1px solid #0f62fe;background-color:#edf5ff}.-esm-active-visits__visit-detail-overview__toggle___1CMPj:first-of-type{border-radius:.25rem 0 0 .25rem}.-esm-active-visits__visit-detail-overview__toggle___1CMPj:last-of-type{border-radius:0 .25rem .25rem 0}.-esm-active-visits__visit-detail-overview__customTable___8OnwU tr[data-parent-row]:nth-child(odd) td{background-color:#fff}.-esm-active-visits__visit-detail-overview__customTable___8OnwU tbody tr[data-parent-row]:nth-child(even) td{background-color:#f4f4f4}.-esm-active-visits__visit-detail-overview__encounterEmptyState___QNHmv{text-align:center;margin:0 1rem 1rem 1rem}.-esm-active-visits__visit-detail-overview__expandedRow___o7vyJ>td{padding:inherit !important}.-esm-active-visits__visit-detail-overview__expandedRow___o7vyJ>td>div{max-height:max-content !important}.-esm-active-visits__visit-detail-overview__observation___Eku\\\\+V{display:grid;grid-template-columns:max-content auto;grid-gap:.5rem;margin:.5rem 0}.-esm-active-visits__visit-detail-overview__observation___Eku\\\\+V>span{align-self:center}.-esm-active-visits__visit-detail-overview__summaryContainer___6ueAF{margin-left:1rem;display:grid;grid-template-columns:max-content auto}.-esm-active-visits__visit-detail-overview__flexSections___K3zUQ{display:flex}.-esm-active-visits__visit-detail-overview__verticalTabs___8bwHK{margin:1rem 0}.-esm-active-visits__visit-detail-overview__verticalTabs___8bwHK>ul{flex-direction:column !important}.-esm-active-visits__visit-detail-overview__tab___ZEwef{margin-left:0 !important}.-esm-active-visits__visit-detail-overview__tab___ZEwef>button{border-bottom:0 !important;border-left:3px solid #e0e0e0 !important}.-esm-active-visits__visit-detail-overview__tab___ZEwef>button,.-esm-active-visits__visit-detail-overview__tab___ZEwef>button:focus,.-esm-active-visits__visit-detail-overview__tab___ZEwef>button:active{outline:0 !important;outline-offset:0 !important}.-esm-active-visits__visit-detail-overview__selectedTab___RoUbN>button{border-left:3px solid #007d79 !important;border-bottom:0 !important;font-weight:600 !important}.-esm-active-visits__visit-detail-overview__tabContent___U1Tpl{border-top:1px solid #e0e0e0;padding:1rem 0;width:70%}.-esm-active-visits__visit-detail-overview__medicationBlock___4eXwy{background-color:#f4f4f4;padding:.625rem 6.75rem .75rem 1.063rem;margin-top:1.5rem;width:100% !important}.-esm-active-visits__visit-detail-overview__medicationBlock___4eXwy:first-child{margin-top:0}.-esm-active-visits__visit-detail-overview__diagnosesList___Q28KT{display:flex;padding-bottom:.5rem;margin:0 1rem;border-bottom:1px solid #e0e0e0}.-esm-active-visits__visit-detail-overview__diagnosis___Mlep4{border-radius:12px;height:1.5rem;display:flex;align-items:center;padding:0 .5rem;margin:0 .5rem .5rem 0}.-esm-active-visits__visit-detail-overview__primaryDiagnose___lmzUT{background-color:#d0e2ff;color:#0043ce}.-esm-active-visits__visit-detail-overview__secondaryDiagnose___a7ihp{background-color:#ffd7d9;color:#a2191f}.-esm-active-visits__visit-detail-overview__testSummaryExtension___y9BEk p{font-size:.875rem;font-weight:400;line-height:1.43;letter-spacing:.16px;color:#525252}\", \"\",{\"version\":3,\"sources\":[\"webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss\",\"webpack://./../../node_modules/carbon-components/src/globals/scss/_css--reset.scss\",\"webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss\",\"webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_font-family.scss\",\"webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/icons/mixins.scss\",\"webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss\",\"webpack://./../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss\",\"webpack://./src/root.scss\",\"webpack://./../../node_modules/carbon-components/scss/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss\",\"webpack://./src/visits-summary/visit-det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GF,mEACE,0BAAA,CAGF,uEACE,iCAAA,CAGF,iEACE,YAAA,CACA,sCAAA,CACA,cAAA,CACA,cAAA,CAGF,sEACE,iBAAA,CAGF,qEACE,gBAAA,CACA,YAAA,CACA,sCAAA,CAGF,iEACE,YAAA,CAGF,iEACE,aAAA,CAGF,oEACE,gCAAA,CAGF,wDACE,wBAAA,CAGF,+DACE,0BAAA,CACA,wCAAA,CAGF,0MAGE,oBAAA,CACA,2BAAA,CAGF,uEACE,wCAAA,CACA,0BAAA,CACA,0BAAA,CAGF,+DACE,4BAAA,CACA,cAAA,CACA,SAAA,CAGF,oEACE,wBAAA,CACA,uCAAA,CACA,iBAAA,CACA,qBAAA,CAGF,gFACE,YAAA,CAGF,kEACE,YAAA,CACA,oBAAA,CACA,aAAA,CACA,+BAAA,CAGF,8DACE,kBAAA,CACA,aAAA,CACA,YAAA,CACA,kBAAA,CACA,eAAA,CACA,sBAAA,CAGF,oEACE,wBAAA,CACA,aAAA,CAGF,sEACE,wBAAA,CACA,aAAA,CAGF,2ED4UI,iBAqLsB,CArLtB,eAqLsB,CArLtB,gBAqLsB,CArLtB,oBAqLsB,CC/fxB,aAAA\",\"sourcesContent\":[\"$ui-01: #f4f4f4;\\n$ui-02: #ffffff;\\n$ui-03: #e0e0e0;\\n$ui-04: #8d8d8d;\\n$ui-05: #161616;\\n$text-02: #525252;\\n$text-03: #a8a8a8;\\n$ui-background: #ffffff;\\n$color-gray-30: #c6c6c6;\\n$color-gray-70: #525252;\\n$color-gray-100: #161616;\\n$color-blue-60-2: #0f62fe;\\n$color-blue-10: #edf5ff;\\n$color-yellow-50: #feecae;\\n$carbon--red-50: #fa4d56;\\n$inverse-link: #78a9ff;\\n$support-02: #24a148;\\n$inverse-support-03: #f1c21b;\\n$warning-background: #fff8e1;\\n$openmrs-background-grey: #f4f4f4;\\n$danger: #da1e28;\\n$interactive-01: #0f62fe;\\n$field-01: #f4f4f4;\\n$grey-2: #e0e0e0;\\n$labeldropdown: #c6c6c6;\\n\\n@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}\\n\\n$breakpoint-phone-min: 0px;\\n$breakpoint-phone-max: 600px;\\n$breakpoint-tablet-min: 601px;\\n$breakpoint-tablet-max: 1200px;\\n$breakpoint-desktop-min: 1201px;\\n$breakpoint-desktop-max: 99999999px;\\n\\n/* These color variables will be removed in a future release */\\n$brand-teal-01: #007d79;\\n$brand-01: #005d5d;\\n$brand-02: #004144;\\n\",\"//\\n// Copyright IBM Corp. 2016, 2018\\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@import './vendor/@carbon/elements/scss/import-once/import-once';\\n@import './vendor/@carbon/elements/scss/type/reset';\\n@import './vendor/@carbon/elements/scss/icons/mixins';\\n\\n/// Resets default browser styling\\n/// @access public\\n/// @group global-reset\\n@mixin reset {\\n @if variable-exists(css--reset) == false or $css--reset == false {\\n box-sizing: border-box;\\n margin: 0;\\n padding: 0;\\n font-size: 100%;\\n font-family: inherit;\\n vertical-align: baseline;\\n border: 0;\\n\\n *,\\n *::before,\\n *::after {\\n box-sizing: inherit;\\n }\\n }\\n}\\n\\n@include exports('css--reset') {\\n @if variable-exists(css--reset) == false or $css--reset == true {\\n // http://cssreset.com/scripts/eric-meyer-reset-css/\\n html,\\n body,\\n div,\\n span,\\n applet,\\n object,\\n iframe,\\n h1,\\n h2,\\n h3,\\n h4,\\n h5,\\n h6,\\n p,\\n blockquote,\\n pre,\\n a,\\n abbr,\\n acronym,\\n address,\\n big,\\n cite,\\n code,\\n del,\\n dfn,\\n em,\\n img,\\n ins,\\n kbd,\\n q,\\n s,\\n samp,\\n small,\\n strike,\\n strong,\\n sub,\\n sup,\\n tt,\\n var,\\n b,\\n u,\\n i,\\n center,\\n dl,\\n dt,\\n dd,\\n ol,\\n ul,\\n li,\\n fieldset,\\n form,\\n label,\\n legend,\\n table,\\n caption,\\n tbody,\\n tfoot,\\n thead,\\n tr,\\n th,\\n td,\\n article,\\n aside,\\n canvas,\\n details,\\n embed,\\n figure,\\n figcaption,\\n footer,\\n header,\\n hgroup,\\n menu,\\n nav,\\n output,\\n ruby,\\n section,\\n summary,\\n time,\\n mark,\\n audio,\\n video {\\n margin: 0;\\n padding: 0;\\n font: inherit;\\n font-size: 100%;\\n vertical-align: baseline;\\n border: 0;\\n }\\n\\n // Chrome 62 fix\\n button,\\n select,\\n input,\\n textarea {\\n font-family: inherit;\\n border-radius: 0;\\n }\\n\\n input[type='text']::-ms-clear {\\n display: none;\\n }\\n\\n /* HTML5 display-role reset for older browsers */\\n article,\\n aside,\\n details,\\n figcaption,\\n figure,\\n footer,\\n header,\\n hgroup,\\n main,\\n menu,\\n nav,\\n section {\\n display: block;\\n }\\n\\n body {\\n line-height: 1;\\n }\\n\\n sup {\\n vertical-align: super;\\n }\\n\\n sub {\\n vertical-align: sub;\\n }\\n\\n ol,\\n ul {\\n list-style: none;\\n }\\n\\n blockquote,\\n q {\\n quotes: none;\\n }\\n\\n blockquote::before,\\n blockquote::after,\\n q::before,\\n q::after {\\n content: '';\\n }\\n\\n table {\\n border-collapse: collapse;\\n border-spacing: 0;\\n }\\n\\n * {\\n box-sizing: border-box;\\n }\\n\\n // Fix to remove added margins on buttons in safari (see #5155)\\n button {\\n margin: 0;\\n }\\n\\n @include carbon--type-reset;\\n @include carbon--icons;\\n }\\n}\\n\\n@include exports('css--default-type') {\\n @if variable-exists(css--default-type) == false or $css--default-type == true\\n {\\n @include carbon--default-type;\\n }\\n}\\n\",\"//\\n// Copyright IBM Corp. 2018, 2018\\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@import '../layout/convert';\\n@import 'font-family';\\n@import 'styles';\\n\\n/// Include a type reset for a given body and mono font family\\n/// @param {String} $body-font-family [carbon--font-family('sans')] - The font family used on the `<body>` element\\n/// @param {String} $mono-font-family [carbon--font-family('mono')] - The font family used on elements that require mono fonts, like the `<code>` element\\n/// @access public\\n/// @group @carbon/type\\n@mixin carbon--type-reset(\\n // TODO: remove in next major release. This has been replaced with 100%\\n $base-font-size: $carbon--base-font-size,\\n $body-font-family: carbon--font-family('sans'),\\n $mono-font-family: carbon--font-family('mono')\\n) {\\n html {\\n font-size: 100%;\\n }\\n\\n body {\\n @include carbon--font-weight('regular');\\n\\n font-family: $body-font-family;\\n text-rendering: optimizeLegibility;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n }\\n\\n code {\\n font-family: $mono-font-family;\\n }\\n\\n strong {\\n @include carbon--font-weight('semibold');\\n }\\n}\\n\\n/// Include default type styles\\n/// @access public\\n/// @group @carbon/type\\n@mixin carbon--default-type {\\n h1 {\\n @include carbon--type-style('productive-heading-06');\\n }\\n\\n h2 {\\n @include carbon--type-style('productive-heading-05');\\n }\\n\\n h3 {\\n @include carbon--type-style('productive-heading-04');\\n }\\n\\n h4 {\\n @include carbon--type-style('productive-heading-03');\\n }\\n\\n h5 {\\n @include carbon--type-style('productive-heading-02');\\n }\\n\\n h6 {\\n @include carbon--type-style('productive-heading-01');\\n }\\n\\n p {\\n @include carbon--type-style('body-long-02');\\n }\\n\\n a {\\n @if global-variable-exists('carbon--theme') and\\n map-has-key($carbon--theme, 'link-01')\\n {\\n color: map-get($carbon--theme, 'link-01');\\n } @else {\\n color: #0062fe;\\n }\\n }\\n\\n em {\\n font-style: italic;\\n }\\n}\\n\",\"//\\n// Copyright IBM Corp. 2018, 2018\\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/// Font family fallbacks for: IBM Plex Mono, IBM Plex Sans, IBM Plex Sans\\n/// Condensed, IBM Plex Sans Hebrew, and IBM Plex Serif\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$carbon--font-families: (\\n 'mono':\\n unquote(\\n \\\"'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace\\\"\\n ),\\n 'sans': unquote(\\\"'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif\\\"),\\n 'sans-condensed':\\n unquote(\\\"'IBM Plex Sans Condensed', 'Helvetica Neue', Arial, sans-serif\\\"),\\n 'sans-hebrew':\\n unquote(\\n \\\"'IBM Plex Sans Hebrew', 'Helvetica Hebrew', 'Arial Hebrew', sans-serif\\\"\\n ),\\n 'serif': unquote(\\\"'IBM Plex Serif', 'Georgia', Times, serif\\\"),\\n) !default;\\n\\n/// Get the font-family for an IBM Plex font\\n/// @param {String} $name\\n/// @return {String}\\n/// @access public\\n/// @group @carbon/type\\n@function carbon--font-family($name) {\\n @return map-get($carbon--font-families, $name);\\n}\\n\\n/// Include the `font-family` definition for the given name in your selector\\n/// @param {String} $name\\n/// @access public\\n/// @group @carbon/type\\n@mixin carbon--font-family($name) {\\n font-family: carbon--font-family($name);\\n}\\n\\n/// Suggested font weights to be used in product\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$carbon--font-weights: (\\n 'light': 300,\\n 'regular': 400,\\n 'semibold': 600,\\n) !default;\\n\\n/// Retrieve the font-weight value for a given name\\n/// @param {String} $weight\\n/// @return {Number}\\n/// @access public\\n/// @group @carbon/type\\n@function carbon--font-weight($weight) {\\n @return map-get($carbon--font-weights, $weight);\\n}\\n\\n/// Set the `font-weight` property with the value for a given name\\n/// @param {String} $weight\\n/// @access public\\n/// @group @carbon/type\\n@mixin carbon--font-weight($weight) {\\n font-weight: carbon--font-weight($weight);\\n}\\n\",\"//\\n// Copyright IBM Corp. 2018, 2018\\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/// Makes SVGs accessible in high contrast mode\\n/// @link https://github.com/IBM/carbon-elements/issues/345#issuecomment-466577293 Carbon-elements #345\\n/// @access public\\n/// @group @carbon/icons\\n@mixin carbon--icons {\\n @media screen and (-ms-high-contrast: active) {\\n svg {\\n fill: ButtonText;\\n }\\n }\\n}\\n\",\"//\\n// Copyright IBM Corp. 2018, 2018\\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@import '../layout/breakpoint';\\n@import 'font-family';\\n@import 'scale';\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$caption-01: (\\n font-size: carbon--type-scale(1),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.34,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$label-01: (\\n font-size: carbon--type-scale(1),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.34,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$helper-text-01: (\\n font-size: carbon--type-scale(1),\\n line-height: 1.34,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$body-short-01: (\\n font-size: carbon--type-scale(2),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.29,\\n letter-spacing: 0.16px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$body-long-01: (\\n font-size: carbon--type-scale(2),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.43,\\n letter-spacing: 0.16px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$body-short-02: (\\n font-size: carbon--type-scale(3),\\n font-weight: carbon--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-long-02: (\\n font-size: carbon--type-scale(3),\\n font-weight: carbon--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$code-01: (\\n font-family: carbon--font-family('mono'),\\n font-size: carbon--type-scale(1),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.34,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$code-02: (\\n font-family: carbon--font-family('mono'),\\n font-size: carbon--type-scale(2),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.43,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$heading-01: (\\n font-size: carbon--type-scale(2),\\n font-weight: carbon--font-weight('semibold'),\\n line-height: 1.29,\\n letter-spacing: 0.16px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$productive-heading-01: $heading-01 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$heading-02: (\\n font-size: carbon--type-scale(3),\\n font-weight: carbon--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$productive-heading-02: $heading-02 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$productive-heading-03: (\\n font-size: carbon--type-scale(5),\\n font-weight: carbon--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$productive-heading-04: (\\n font-size: carbon--type-scale(7),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.29,\\n letter-spacing: 0,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$productive-heading-05: (\\n font-size: carbon--type-scale(8),\\n font-weight: carbon--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$productive-heading-06: (\\n font-size: carbon--type-scale(8),\\n font-weight: carbon--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$productive-heading-07: (\\n font-size: carbon--type-scale(10),\\n font-weight: carbon--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$expressive-heading-01: map-merge(\\n $heading-01,\\n (\\n line-height: 1.25,\\n )\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-02: map-merge(\\n $heading-02,\\n (\\n line-height: 1.5,\\n )\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-03: (\\n font-size: carbon--type-scale(5),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.4,\\n letter-spacing: 0,\\n breakpoints: (\\n xlg: (\\n font-size: carbon--type-scale(5),\\n line-height: 1.25,\\n ),\\n max: (\\n font-size: carbon--type-scale(6),\\n line-height: 1.334,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-04: (\\n font-size: carbon--type-scale(7),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.29,\\n letter-spacing: 0,\\n breakpoints: (\\n xlg: (\\n font-size: carbon--type-scale(7),\\n line-height: 1.25,\\n ),\\n max: (\\n font-size: carbon--type-scale(8),\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-05: (\\n font-size: carbon--type-scale(8),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.25,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(9),\\n font-weight: carbon--font-weight('light'),\\n line-height: 1.22,\\n ),\\n lg: (\\n font-size: carbon--type-scale(10),\\n line-height: 1.19,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(11),\\n line-height: 1.17,\\n ),\\n max: (\\n font-size: carbon--type-scale(13),\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-06: (\\n font-size: carbon--type-scale(8),\\n font-weight: carbon--font-weight('semibold'),\\n line-height: 1.25,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(9),\\n line-height: 1.22,\\n ),\\n lg: (\\n font-size: carbon--type-scale(10),\\n line-height: 1.19,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(11),\\n line-height: 1.17,\\n ),\\n max: (\\n font-size: carbon--type-scale(13),\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-paragraph-01: (\\n font-size: carbon--type-scale(6),\\n font-weight: carbon--font-weight('light'),\\n line-height: 1.334,\\n letter-spacing: 0,\\n breakpoints: (\\n lg: (\\n font-size: carbon--type-scale(7),\\n line-height: 1.29,\\n ),\\n max: (\\n font-size: carbon--type-scale(8),\\n line-height: 1.25,\\n ),\\n ),\\n);\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$quotation-01: (\\n font-size: carbon--type-scale(5),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.3,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(5),\\n ),\\n lg: (\\n font-size: carbon--type-scale(6),\\n line-height: 1.334,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(7),\\n line-height: 1.29,\\n ),\\n max: (\\n font-size: carbon--type-scale(8),\\n line-height: 1.25,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$quotation-02: (\\n font-size: carbon--type-scale(8),\\n font-weight: carbon--font-weight('light'),\\n line-height: 1.25,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(9),\\n line-height: 1.22,\\n ),\\n lg: (\\n font-size: carbon--type-scale(10),\\n line-height: 1.19,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(11),\\n line-height: 1.17,\\n ),\\n max: (\\n font-size: carbon--type-scale(13),\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$display-01: (\\n font-size: carbon--type-scale(10),\\n font-weight: carbon--font-weight('light'),\\n line-height: 1.19,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(10),\\n ),\\n lg: (\\n font-size: carbon--type-scale(12),\\n ),\\n xlg: (\\n font-size: carbon--type-scale(13),\\n line-height: 1.17,\\n ),\\n max: (\\n font-size: carbon--type-scale(15),\\n line-height: 1.13,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$display-02: (\\n font-size: carbon--type-scale(10),\\n font-weight: carbon--font-weight('semibold'),\\n line-height: 1.19,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(10),\\n ),\\n lg: (\\n font-size: carbon--type-scale(12),\\n ),\\n xlg: (\\n font-size: carbon--type-scale(13),\\n line-height: 1.16,\\n ),\\n max: (\\n font-size: carbon--type-scale(15),\\n line-height: 1.13,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$display-03: (\\n font-size: carbon--type-scale(10),\\n font-weight: carbon--font-weight('light'),\\n line-height: 1.19,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(14),\\n line-height: 1.15,\\n ),\\n lg: (\\n font-size: carbon--type-scale(17),\\n line-height: 1.11,\\n letter-spacing: -0.64px,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(20),\\n line-height: 1.07,\\n letter-spacing: -0.64px,\\n ),\\n max: (\\n font-size: carbon--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$display-04: (\\n font-size: carbon--type-scale(10),\\n font-weight: carbon--font-weight('semibold'),\\n line-height: 1.19,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(14),\\n line-height: 1.15,\\n ),\\n lg: (\\n font-size: carbon--type-scale(17),\\n line-height: 1.11,\\n letter-spacing: -0.64px,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(20),\\n line-height: 1.07,\\n letter-spacing: -0.64px,\\n ),\\n max: (\\n font-size: carbon--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$tokens: (\\n caption-01: $caption-01,\\n label-01: $label-01,\\n helper-text-01: $helper-text-01,\\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);\\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 $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 [$carbon--grid-breakpoints] - Custom breakpoints to use\\n/// @access public\\n/// @group @carbon/type\\n@mixin fluid-type($type-styles, $breakpoints: $carbon--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 carbon--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 [$carbon--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: $carbon--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: carbon--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: carbon--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$custom-property-prefix: 'cds' !default;\\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 [$carbon--grid-breakpoints] - Provide a custom breakpoint map to use\\n/// @access public\\n/// @group @carbon/type\\n@mixin carbon--type-style(\\n $name,\\n $fluid: false,\\n $breakpoints: $carbon--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 @if global-variable-exists('feature-flags') and\\n map-get($feature-flags, 'enable-css-custom-properties')\\n {\\n @include custom-properties($name, $token);\\n } @else {\\n // Otherwise, we just include all the property declarations directly on the\\n // selector\\n @include properties(map-remove($token, 'breakpoints'));\\n }\\n }\\n}\\n\",\"//\\n// Copyright IBM Corp. 2016, 2018\\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//----------------------------------------------\\n// Mixins\\n// ---------------------------------------------\\n//\\n// Category || Description\\n// ===========================================\\n// Misc || General helper @mixins\\n// Deprecated || Not used anymore\\n// ===========================================\\n\\n//----------------------------------------------\\n// Misc\\n// ---------------------------------------------\\n\\n@import 'vars';\\n@import 'css--reset';\\n@import 'typography';\\n@import './vendor/@carbon/elements/scss/import-once/import-once';\\n\\n/// Adds text overflow styling\\n/// @access public\\n/// @param {Number} $width [false] - Value of width if you want to set width, else nothing\\n/// @example @include text-overflow(300px);\\n/// @group global-helpers\\n@mixin text-overflow($width: false) {\\n display: block;\\n overflow-x: hidden;\\n white-space: nowrap;\\n text-overflow: ellipsis;\\n\\n // apply a width if width parameter exists\\n @if ($width) {\\n width: $width;\\n }\\n}\\n\\n/// Adds placeholder text color\\n/// @access public\\n/// @example @include placeholder-colors;\\n/// @group global-helpers\\n@mixin placeholder-colors {\\n color: $text-05;\\n opacity: 1;\\n}\\n\\n/// Adds box shadow\\n/// @access public\\n/// @example @include box-shadow;\\n/// @group global-helpers\\n@mixin box-shadow {\\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);\\n}\\n\\n/// Adds outline styles depending on specific type\\n/// @access public\\n/// @param {String} $type ['border'] - Type of outline from: `border`, `blurred`, `outline`, `invalid`, `reset`\\n/// @example @include focus-outline('outline');\\n/// @group global-helpers\\n@mixin focus-outline($type: 'border') {\\n @if ($type == 'border') {\\n outline: 1px solid $focus;\\n\\n @media screen and (prefers-contrast) {\\n outline-style: dotted;\\n }\\n }\\n\\n @if ($type == 'blurred') {\\n outline: 1px solid transparent;\\n box-shadow: 0 0 0 3px $focus;\\n }\\n\\n @if ($type == 'outline') {\\n outline: 2px solid $focus;\\n outline-offset: -2px;\\n\\n @media screen and (prefers-contrast) {\\n outline-style: dotted;\\n }\\n }\\n\\n @if ($type == 'outline-compat') {\\n box-sizing: border-box;\\n border: 2px solid $focus;\\n\\n @media screen and (prefers-contrast) {\\n border-style: dotted;\\n }\\n }\\n\\n @if ($type == 'invalid') {\\n outline: 2px solid $support-01;\\n outline-offset: -2px;\\n\\n @media screen and (prefers-contrast) {\\n outline-style: dotted;\\n }\\n }\\n\\n @if ($type == 'reset') {\\n outline: 2px solid transparent;\\n outline-offset: -2px;\\n }\\n}\\n\\n/// Adds rotational transformation\\n/// @access public\\n/// @param {Number} $deg - How many degrees to rotate\\n/// @param {Number} $speed - Speed of rotation\\n/// @param {Value} $origin [center] - `transform-origin`\\n/// @example @include rotate(90deg, 300ms);\\n/// @group global-helpers\\n@mixin rotate($deg, $speed, $origin: center) {\\n transform: rotate($deg);\\n transform-origin: $origin;\\n transition: transform $speed;\\n}\\n\\n/// Adds styles to hide content\\n/// @access public\\n/// @group global-helpers\\n@mixin hidden {\\n position: absolute;\\n width: 1px;\\n height: 1px;\\n margin: -1px;\\n padding: 0;\\n overflow: hidden;\\n white-space: nowrap;\\n border: 0;\\n visibility: inherit;\\n clip: rect(0, 0, 0, 0);\\n}\\n\\n/// Resets button styles\\n/// @access public\\n/// @param {Bool} $width [true] - Sets width to 100% if true\\n/// @example @include button-reset($width: false);\\n/// @group global-helpers\\n@mixin button-reset($width: true) {\\n @include reset;\\n\\n display: inline-block;\\n padding: 0;\\n background: none;\\n border: 0;\\n cursor: pointer;\\n appearance: none;\\n\\n @if ($width == true) {\\n width: 100%;\\n }\\n\\n &::-moz-focus-inner {\\n border: 0;\\n }\\n}\\n\\n/// Skeleton loading animation\\n/// @access public\\n/// @example @include skeleton;\\n/// @group global-helpers\\n@mixin skeleton {\\n position: relative;\\n padding: 0;\\n background: $skeleton-01;\\n border: none;\\n box-shadow: none;\\n pointer-events: none;\\n\\n &:hover,\\n &:focus,\\n &:active {\\n border: none;\\n outline: none;\\n cursor: default;\\n }\\n\\n &::before {\\n position: absolute;\\n width: 100%;\\n height: 100%;\\n background: $skeleton-02;\\n animation: 3000ms ease-in-out skeleton infinite;\\n content: '';\\n will-change: transform-origin, transform, opacity;\\n\\n @media (prefers-reduced-motion: reduce) {\\n animation: none;\\n }\\n }\\n}\\n\\n@include exports('skeleton') {\\n @keyframes skeleton {\\n 0% {\\n transform: scaleX(0);\\n transform-origin: left;\\n opacity: 0.3;\\n }\\n 20% {\\n transform: scaleX(1);\\n transform-origin: left;\\n opacity: 1;\\n }\\n 28% {\\n transform: scaleX(1);\\n transform-origin: right;\\n }\\n 51% {\\n transform: scaleX(0);\\n transform-origin: right;\\n }\\n 58% {\\n transform: scaleX(0);\\n transform-origin: right;\\n }\\n 82% {\\n transform: scaleX(1);\\n transform-origin: right;\\n }\\n 83% {\\n transform: scaleX(1);\\n transform-origin: left;\\n }\\n 96% {\\n transform: scaleX(0);\\n transform-origin: left;\\n }\\n 100% {\\n transform: scaleX(0);\\n transform-origin: left;\\n opacity: 0.3;\\n }\\n }\\n}\\n\",\"@import 'carbon-components/scss/globals/scss/typography.scss';\\n@import '~@openmrs/esm-styleguide/src/vars';\\n\\n.productiveHeading01 {\\n @include carbon--type-style('productive-heading-01');\\n}\\n\\n.productiveHeading02 {\\n @include carbon--type-style('productive-heading-02');\\n}\\n\\n.bodyLong01 {\\n @include carbon--type-style('body-long-01');\\n}\\n\\n.caption01 {\\n @include carbon--type-style('caption-01');\\n}\\n\\n.bodyShort02 {\\n @include carbon--type-style('body-short-02');\\n}\\n\\n.text02 {\\n color: #525252;\\n}\\n\\n.text01 {\\n color: #161616;\\n}\\n\",\"//\\n// Copyright IBM Corp. 2018, 2018\\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@import '../layout/breakpoint';\\n@import 'font-family';\\n@import 'scale';\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$caption-01: (\\n font-size: carbon--type-scale(1),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.34,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$label-01: (\\n font-size: carbon--type-scale(1),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.34,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$helper-text-01: (\\n font-size: carbon--type-scale(1),\\n line-height: 1.34,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$body-short-01: (\\n font-size: carbon--type-scale(2),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.29,\\n letter-spacing: 0.16px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$body-long-01: (\\n font-size: carbon--type-scale(2),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.43,\\n letter-spacing: 0.16px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$body-short-02: (\\n font-size: carbon--type-scale(3),\\n font-weight: carbon--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-long-02: (\\n font-size: carbon--type-scale(3),\\n font-weight: carbon--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$code-01: (\\n font-family: carbon--font-family('mono'),\\n font-size: carbon--type-scale(1),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.34,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$code-02: (\\n font-family: carbon--font-family('mono'),\\n font-size: carbon--type-scale(2),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.43,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$heading-01: (\\n font-size: carbon--type-scale(2),\\n font-weight: carbon--font-weight('semibold'),\\n line-height: 1.29,\\n letter-spacing: 0.16px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$productive-heading-01: $heading-01 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$heading-02: (\\n font-size: carbon--type-scale(3),\\n font-weight: carbon--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$productive-heading-02: $heading-02 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$productive-heading-03: (\\n font-size: carbon--type-scale(5),\\n font-weight: carbon--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$productive-heading-04: (\\n font-size: carbon--type-scale(7),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.29,\\n letter-spacing: 0,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$productive-heading-05: (\\n font-size: carbon--type-scale(8),\\n font-weight: carbon--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$productive-heading-06: (\\n font-size: carbon--type-scale(8),\\n font-weight: carbon--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$productive-heading-07: (\\n font-size: carbon--type-scale(10),\\n font-weight: carbon--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$expressive-heading-01: map-merge(\\n $heading-01,\\n (\\n line-height: 1.25,\\n )\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-02: map-merge(\\n $heading-02,\\n (\\n line-height: 1.5,\\n )\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-03: (\\n font-size: carbon--type-scale(5),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.4,\\n letter-spacing: 0,\\n breakpoints: (\\n xlg: (\\n font-size: carbon--type-scale(5),\\n line-height: 1.25,\\n ),\\n max: (\\n font-size: carbon--type-scale(6),\\n line-height: 1.334,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-04: (\\n font-size: carbon--type-scale(7),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.29,\\n letter-spacing: 0,\\n breakpoints: (\\n xlg: (\\n font-size: carbon--type-scale(7),\\n line-height: 1.25,\\n ),\\n max: (\\n font-size: carbon--type-scale(8),\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-05: (\\n font-size: carbon--type-scale(8),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.25,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(9),\\n font-weight: carbon--font-weight('light'),\\n line-height: 1.22,\\n ),\\n lg: (\\n font-size: carbon--type-scale(10),\\n line-height: 1.19,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(11),\\n line-height: 1.17,\\n ),\\n max: (\\n font-size: carbon--type-scale(13),\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-06: (\\n font-size: carbon--type-scale(8),\\n font-weight: carbon--font-weight('semibold'),\\n line-height: 1.25,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(9),\\n line-height: 1.22,\\n ),\\n lg: (\\n font-size: carbon--type-scale(10),\\n line-height: 1.19,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(11),\\n line-height: 1.17,\\n ),\\n max: (\\n font-size: carbon--type-scale(13),\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-paragraph-01: (\\n font-size: carbon--type-scale(6),\\n font-weight: carbon--font-weight('light'),\\n line-height: 1.334,\\n letter-spacing: 0,\\n breakpoints: (\\n lg: (\\n font-size: carbon--type-scale(7),\\n line-height: 1.29,\\n ),\\n max: (\\n font-size: carbon--type-scale(8),\\n line-height: 1.25,\\n ),\\n ),\\n);\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$quotation-01: (\\n font-size: carbon--type-scale(5),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.3,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(5),\\n ),\\n lg: (\\n font-size: carbon--type-scale(6),\\n line-height: 1.334,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(7),\\n line-height: 1.29,\\n ),\\n max: (\\n font-size: carbon--type-scale(8),\\n line-height: 1.25,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$quotation-02: (\\n font-size: carbon--type-scale(8),\\n font-weight: carbon--font-weight('light'),\\n line-height: 1.25,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(9),\\n line-height: 1.22,\\n ),\\n lg: (\\n font-size: carbon--type-scale(10),\\n line-height: 1.19,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(11),\\n line-height: 1.17,\\n ),\\n max: (\\n font-size: carbon--type-scale(13),\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$display-01: (\\n font-size: carbon--type-scale(10),\\n font-weight: carbon--font-weight('light'),\\n line-height: 1.19,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(10),\\n ),\\n lg: (\\n font-size: carbon--type-scale(12),\\n ),\\n xlg: (\\n font-size: carbon--type-scale(13),\\n line-height: 1.17,\\n ),\\n max: (\\n font-size: carbon--type-scale(15),\\n line-height: 1.13,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$display-02: (\\n font-size: carbon--type-scale(10),\\n font-weight: carbon--font-weight('semibold'),\\n line-height: 1.19,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(10),\\n ),\\n lg: (\\n font-size: carbon--type-scale(12),\\n ),\\n xlg: (\\n font-size: carbon--type-scale(13),\\n line-height: 1.16,\\n ),\\n max: (\\n font-size: carbon--type-scale(15),\\n line-height: 1.13,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$display-03: (\\n font-size: carbon--type-scale(10),\\n font-weight: carbon--font-weight('light'),\\n line-height: 1.19,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(14),\\n line-height: 1.15,\\n ),\\n lg: (\\n font-size: carbon--type-scale(17),\\n line-height: 1.11,\\n letter-spacing: -0.64px,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(20),\\n line-height: 1.07,\\n letter-spacing: -0.64px,\\n ),\\n max: (\\n font-size: carbon--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$display-04: (\\n font-size: carbon--type-scale(10),\\n font-weight: carbon--font-weight('semibold'),\\n line-height: 1.19,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(14),\\n line-height: 1.15,\\n ),\\n lg: (\\n font-size: carbon--type-scale(17),\\n line-height: 1.11,\\n letter-spacing: -0.64px,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(20),\\n line-height: 1.07,\\n letter-spacing: -0.64px,\\n ),\\n max: (\\n font-size: carbon--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$tokens: (\\n caption-01: $caption-01,\\n label-01: $label-01,\\n helper-text-01: $helper-text-01,\\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);\\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 $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 [$carbon--grid-breakpoints] - Custom breakpoints to use\\n/// @access public\\n/// @group @carbon/type\\n@mixin fluid-type($type-styles, $breakpoints: $carbon--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 carbon--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 [$carbon--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: $carbon--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: carbon--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: carbon--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$custom-property-prefix: 'cds' !default;\\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 [$carbon--grid-breakpoints] - Provide a custom breakpoint map to use\\n/// @access public\\n/// @group @carbon/type\\n@mixin carbon--type-style(\\n $name,\\n $fluid: false,\\n $breakpoints: $carbon--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 @if global-variable-exists('feature-flags') and\\n map-get($feature-flags, 'enable-css-custom-properties')\\n {\\n @include custom-properties($name, $token);\\n } @else {\\n // Otherwise, we just include all the property declarations directly on the\\n // selector\\n @include properties(map-remove($token, 'breakpoints'));\\n }\\n }\\n}\\n\",\"@import '~@openmrs/esm-styleguide/src/vars';\\n@import '~carbon-components/src/globals/scss/vars';\\n@import '~carbon-components/src/globals/scss/mixins';\\n@import '../root.scss';\\n\\n.container {\\n display: flex;\\n flex-direction: column;\\n align-items: center;\\n justify-content: flex-start;\\n}\\n\\n.encounterHeading {\\n text-align: left;\\n width: 100%;\\n margin: 0 1rem 1.3125rem 1rem;\\n color: #161616;\\n}\\n\\n.visitsDetailWidgetContainer {\\n background-color: $ui-background;\\n width: 100%;\\n border: 1px solid #e0e0e0;\\n}\\n\\n.visitsDetailHeaderContainer {\\n display: flex;\\n justify-content: space-between;\\n align-items: center;\\n padding: $spacing-04 0 $spacing-04 $spacing-05;\\n background-color: $ui-background;\\n}\\n\\n.visitsDetailHeaderContainer > h4:after {\\n content: '';\\n display: block;\\n width: 2rem;\\n padding-top: 0.188rem;\\n border-bottom: 0.375rem solid $brand-teal-01;\\n}\\n\\n.toggleButtons {\\n margin: 0 1rem;\\n height: 2.5rem;\\n}\\n\\n.toggle {\\n border: 1px solid #a6c8ff;\\n}\\n\\n.toggle:hover {\\n background-color: #edf5ff;\\n}\\n\\n.toggle:active,\\n.toggle:focus {\\n box-shadow: none;\\n background-color: #edf5ff;\\n}\\n\\n.toggleActive {\\n background-color: #edf5ff;\\n border: 1px solid $link-01;\\n}\\n\\n.toggleActive:active,\\n.toggleActive:focus {\\n box-shadow: none;\\n border: 1px solid $link-01;\\n background-color: #edf5ff;\\n}\\n\\n.toggle:first-of-type {\\n border-radius: $spacing-02 0 0 $spacing-02;\\n}\\n\\n.toggle:last-of-type {\\n border-radius: 0 $spacing-02 $spacing-02 0;\\n}\\n\\n.customTable tr[data-parent-row]:nth-child(odd) td {\\n background-color: #fff;\\n}\\n\\n.customTable tbody tr[data-parent-row]:nth-child(even) td {\\n background-color: #f4f4f4;\\n}\\n\\n.encounterEmptyState {\\n text-align: center;\\n margin: 0 1rem 1rem 1rem;\\n}\\n\\n.expandedRow > td {\\n padding: inherit !important;\\n}\\n\\n.expandedRow > td > div {\\n max-height: max-content !important;\\n}\\n\\n.observation {\\n display: grid;\\n grid-template-columns: max-content auto;\\n grid-gap: 0.5rem;\\n margin: 0.5rem 0;\\n}\\n\\n.observation > span {\\n align-self: center;\\n}\\n\\n.summaryContainer {\\n margin-left: 1rem;\\n display: grid;\\n grid-template-columns: max-content auto;\\n}\\n\\n.flexSections {\\n display: flex;\\n}\\n\\n.verticalTabs {\\n margin: 1rem 0;\\n}\\n\\n.verticalTabs > ul {\\n flex-direction: column !important;\\n}\\n\\n.tab {\\n margin-left: 0 !important;\\n}\\n\\n.tab > button {\\n border-bottom: 0 !important;\\n border-left: 3px solid #e0e0e0 !important;\\n}\\n\\n.tab > button,\\n.tab > button:focus,\\n.tab > button:active {\\n outline: 0 !important;\\n outline-offset: 0 !important;\\n}\\n\\n.selectedTab > button {\\n border-left: 3px solid #007d79 !important;\\n border-bottom: 0 !important;\\n font-weight: 600 !important;\\n}\\n\\n.tabContent {\\n border-top: 1px solid #e0e0e0;\\n padding: 1rem 0;\\n width: 70%;\\n}\\n\\n.medicationBlock {\\n background-color: #f4f4f4;\\n padding: 0.625rem 6.75rem 0.75rem 1.063rem;\\n margin-top: 1.5rem;\\n width: 100% !important;\\n}\\n\\n.medicationBlock:first-child {\\n margin-top: 0;\\n}\\n\\n.diagnosesList {\\n display: flex;\\n padding-bottom: 0.5rem;\\n margin: 0 1rem;\\n border-bottom: 1px solid #e0e0e0;\\n}\\n\\n.diagnosis {\\n border-radius: 12px;\\n height: 1.5rem;\\n display: flex;\\n align-items: center;\\n padding: 0 0.5rem;\\n margin: 0 0.5rem 0.5rem 0;\\n}\\n\\n.primaryDiagnose {\\n background-color: #d0e2ff;\\n color: #0043ce;\\n}\\n\\n.secondaryDiagnose {\\n background-color: #ffd7d9;\\n color: #a2191f;\\n}\\n\\n.testSummaryExtension p {\\n @include carbon--type-style('body-long-01');\\n color: #525252;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"productiveHeading01\": \"-esm-active-visits__visit-detail-overview__productiveHeading01___7mAw1\",\n\t\"productiveHeading02\": \"-esm-active-visits__visit-detail-overview__productiveHeading02___5-t+w\",\n\t\"bodyLong01\": \"-esm-active-visits__visit-detail-overview__bodyLong01___3DCLv\",\n\t\"caption01\": \"-esm-active-visits__visit-detail-overview__caption01___yCfJc\",\n\t\"bodyShort02\": \"-esm-active-visits__visit-detail-overview__bodyShort02___fuXhU\",\n\t\"text02\": \"-esm-active-visits__visit-detail-overview__text02___hhPqo\",\n\t\"text01\": \"-esm-active-visits__visit-detail-overview__text01___8ug6t\",\n\t\"container\": \"-esm-active-visits__visit-detail-overview__container___mkGcD\",\n\t\"encounterHeading\": \"-esm-active-visits__visit-detail-overview__encounterHeading___2xolA\",\n\t\"visitsDetailWidgetContainer\": \"-esm-active-visits__visit-detail-overview__visitsDetailWidgetContainer___ZvlEp\",\n\t\"visitsDetailHeaderContainer\": \"-esm-active-visits__visit-detail-overview__visitsDetailHeaderContainer___fRjET\",\n\t\"toggleButtons\": \"-esm-active-visits__visit-detail-overview__toggleButtons___6i420\",\n\t\"toggle\": \"-esm-active-visits__visit-detail-overview__toggle___1CMPj\",\n\t\"toggleActive\": \"-esm-active-visits__visit-detail-overview__toggleActive___Z+gk6\",\n\t\"customTable\": \"-esm-active-visits__visit-detail-overview__customTable___8OnwU\",\n\t\"encounterEmptyState\": \"-esm-active-visits__visit-detail-overview__encounterEmptyState___QNHmv\",\n\t\"expandedRow\": \"-esm-active-visits__visit-detail-overview__expandedRow___o7vyJ\",\n\t\"observation\": \"-esm-active-visits__visit-detail-overview__observation___Eku+V\",\n\t\"summaryContainer\": \"-esm-active-visits__visit-detail-overview__summaryContainer___6ueAF\",\n\t\"flexSections\": \"-esm-active-visits__visit-detail-overview__flexSections___K3zUQ\",\n\t\"verticalTabs\": \"-esm-active-visits__visit-detail-overview__verticalTabs___8bwHK\",\n\t\"tab\": \"-esm-active-visits__visit-detail-overview__tab___ZEwef\",\n\t\"selectedTab\": \"-esm-active-visits__visit-detail-overview__selectedTab___RoUbN\",\n\t\"tabContent\": \"-esm-active-visits__visit-detail-overview__tabContent___U1Tpl\",\n\t\"medicationBlock\": \"-esm-active-visits__visit-detail-overview__medicationBlock___4eXwy\",\n\t\"diagnosesList\": \"-esm-active-visits__visit-detail-overview__diagnosesList___Q28KT\",\n\t\"diagnosis\": \"-esm-active-visits__visit-detail-overview__diagnosis___Mlep4\",\n\t\"primaryDiagnose\": \"-esm-active-visits__visit-detail-overview__primaryDiagnose___lmzUT\",\n\t\"secondaryDiagnose\": \"-esm-active-visits__visit-detail-overview__secondaryDiagnose___a7ihp\",\n\t\"testSummaryExtension\": \"-esm-active-visits__visit-detail-overview__testSummaryExtension___y9BEk\",\n\t\"skeleton\": \"-esm-active-visits__visit-detail-overview__skeleton___vjxGq\"\n};\nexport default ___CSS_LOADER_EXPORT___;\n","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../../../node_modules/@openmrs/webpack-config/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./visit-detail-overview.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../../../node_modules/@openmrs/webpack-config/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./visit-detail-overview.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import React, { useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { SkeletonText } from 'carbon-components-react';\nimport { Observation } from '../visit.resource';\nimport styles from '../visit-detail-overview.scss';\n\ninterface EncounterObservationsProps {\n observations: Array<Observation>;\n}\n\nconst EncounterObservations: React.FC<EncounterObservationsProps> = ({ observations }) => {\n const { t } = useTranslation();\n\n const observationsList = useMemo(() => {\n return (\n observations &&\n observations.map((obs: Observation) => {\n const [question, answer] = obs.display.split(':');\n return { question, answer };\n })\n );\n }, [observations]);\n\n return observationsList ? (\n observationsList.length > 0 ? (\n <div className={styles.observation}>\n {observationsList.map((obs, ind) => (\n <React.Fragment key={ind}>\n <span className={styles.caption01}>{obs.question}: </span>\n <span className={`${styles.bodyShort02} ${styles.text01}`}>{obs.answer}</span>\n </React.Fragment>\n ))}\n </div>\n ) : (\n <p className={styles.caption01}>{t('noObservationsFound', 'No observations found')}</p>\n )\n ) : (\n <SkeletonText />\n );\n};\n\nexport default EncounterObservations;\n","import React, { useEffect, useState, useMemo, useRef } from 'react';\nimport {\n DataTable,\n TableContainer,\n Table,\n TableHead,\n TableExpandHeader,\n TableRow,\n TableHeader,\n TableBody,\n TableExpandRow,\n TableCell,\n TableExpandedRow,\n} from 'carbon-components-react';\nimport EncounterObservations from './encounter-observations.component';\nimport styles from '../visit-detail-overview.scss';\nimport { Observation } from '../visit.resource';\nimport { useTranslation } from 'react-i18next';\nimport { useLayoutType } from '@openmrs/esm-framework';\n\ninterface EncounterListProps {\n encounters: Array<{\n id: any;\n time: any;\n encounterType: string;\n provider: string;\n obs: Array<Observation>;\n }>;\n visitUuid: string;\n}\n\nconst EncounterListDataTable: React.FC<EncounterListProps> = ({ encounters, visitUuid }) => {\n const { t } = useTranslation();\n const layout = useLayoutType();\n const isDesktop = layout === 'desktop';\n const [headerWidth, setHeaderWidth] = useState(0);\n const headerRef = useRef(null);\n\n const headerData = useMemo(\n () => [\n {\n id: 1,\n header: t('time', 'Time'),\n key: 'time',\n },\n {\n id: 2,\n header: t('encounterType', 'Encounter Type'),\n key: 'encounterType',\n },\n {\n id: 3,\n header: t('provider', 'Provider'),\n key: 'provider',\n },\n ],\n [t],\n );\n\n useEffect(() => {\n setHeaderWidth(headerRef?.current?.clientWidth);\n const handler = () => setHeaderWidth(headerRef?.current?.clientWidth);\n window.addEventListener('resize', handler);\n return () => window.removeEventListener('resize', handler);\n }, []);\n\n return encounters.length !== 0 ? (\n <DataTable rows={encounters} headers={headerData}>\n {({ rows, headers, getHeaderProps, getRowProps, getTableProps }) => {\n return (\n <TableContainer>\n <Table className={styles.customTable} {...getTableProps()} size={!isDesktop ? 'normal' : 'short'}>\n <TableHead>\n <TableRow>\n <TableExpandHeader />\n {headers.map((header, ind) =>\n ind === 0 ? (\n <TableHeader id={`header_${visitUuid}_${ind}`} ref={headerRef} {...getHeaderProps({ header })}>\n {header.header}\n </TableHeader>\n ) : (\n <TableHeader id={`header_${visitUuid}_${ind}`} {...getHeaderProps({ header })}>\n {header.header}\n </TableHeader>\n ),\n )}\n </TableRow>\n </TableHead>\n <TableBody>\n {rows.map((row, ind) => (\n <React.Fragment key={row.id}>\n <TableExpandRow {...getRowProps({ row })}>\n {row.cells.map((cell) => (\n <TableCell key={cell.id}>{cell.value}</TableCell>\n ))}\n </TableExpandRow>\n {row.isExpanded && (\n <TableExpandedRow\n className={styles.expandedRow}\n style={{ paddingLeft: isDesktop ? '3rem' : '4rem' }}\n colSpan={headers.length + 2}>\n <div style={{ marginLeft: headerWidth }}>\n <EncounterObservations observations={encounters[ind].obs} />\n </div>\n </TableExpandedRow>\n )}\n </React.Fragment>\n ))}\n </TableBody>\n </Table>\n </TableContainer>\n );\n }}\n </DataTable>\n ) : (\n <div className={styles.encounterEmptyState}>\n <h4 className={styles.productiveHeading02}>{t('noEncountersFound', 'No encounters found')}</h4>\n <p className={`${styles.bodyLong01} ${styles.text02}`}>\n {t('thereIsNoInformationToDisplayHere', 'There is no information to display here')}\n </p>\n </div>\n );\n};\n\nexport default EncounterListDataTable;\n","import React from 'react';\nimport capitalize from 'lodash-es/capitalize';\nimport { useTranslation } from 'react-i18next';\nimport { formatTime, parseDate } from '@openmrs/esm-framework';\nimport { OrderItem, getDosage } from '../visit.resource';\nimport styles from '../visit-detail-overview.scss';\n\ninterface MedicationSummaryProps {\n medications: Array<OrderItem>;\n}\n\nconst MedicationSummary: React.FC<MedicationSummaryProps> = ({ medications }) => {\n const { t } = useTranslation();\n\n return (\n <React.Fragment>\n {medications.length > 0 ? (\n medications.map(\n (medication: OrderItem, ind) =>\n medication.order?.dose &&\n medication.order?.orderType?.display === 'Drug Order' && (\n <React.Fragment key={ind}>\n <p className={`${styles.bodyLong01} ${styles.medicationBlock}`}>\n <strong>{capitalize(medication.order.drug?.name)}</strong> &mdash;{' '}\n {medication.order.doseUnits?.display} &mdash; {medication.order.route?.display}\n <br />\n <span className={styles.label01}>{t('dose', 'Dose').toUpperCase()}</span>{' '}\n <strong>{getDosage(medication.order.drug?.strength, medication.order.dose).toLowerCase()}</strong>{' '}\n &mdash; {medication.order.frequency?.display} &mdash;{' '}\n {!medication.order.duration\n ? t('orderIndefiniteDuration', 'Indefinite duration')\n : t('orderDurationAndUnit', 'for {duration} {durationUnit}', {\n duration: medication.order.duration,\n durationUnit: medication.order.durationUnits?.display,\n })}\n <br />\n <span className={styles.label01}>{t('refills', 'Refills').toUpperCase()}</span>{' '}\n {medication.order.numRefills}\n </p>\n <p className={styles.caption01} style={{ color: '#525252' }}>\n {formatTime(parseDate(medication.order.dateActivated))} &middot;{' '}\n {medication.provider && medication.provider.name} &middot;{' '}\n {medication.provider && medication.provider.role}\n </p>\n </React.Fragment>\n ),\n )\n ) : (\n <p className={`${styles.bodyLong01} ${styles.text02}`}>{t('noMedicationsFound', 'No medications found')}</p>\n )}\n </React.Fragment>\n );\n};\n\nexport default MedicationSummary;\n","import { openmrsFetch, Visit } from '@openmrs/esm-framework';\nimport useSWR from 'swr';\n\nexport interface Encounter {\n uuid: string;\n encounterDateTime: string;\n encounterProviders: Array<{\n uuid: string;\n display: string;\n encounterRole: {\n uuid: string;\n display: string;\n };\n provider: {\n uuid: string;\n person: {\n uuid: string;\n display: string;\n };\n };\n }>;\n encounterType: {\n uuid: string;\n display: string;\n };\n obs: Array<Observation>;\n orders: Array<Order>;\n}\n\nexport interface EncounterProvider {\n uuid: string;\n display: string;\n encounterRole: {\n uuid: string;\n display: string;\n };\n provider: {\n uuid: string;\n person: {\n uuid: string;\n display: string;\n };\n };\n}\n\nexport interface Observation {\n uuid: string;\n concept: {\n uuid: string;\n display: string;\n conceptClass: {\n uuid: string;\n display: string;\n };\n };\n display: string;\n groupMembers: null | Array<{\n uuid: string;\n concept: {\n uuid: string;\n display: string;\n };\n value: {\n uuid: string;\n display: string;\n };\n }>;\n value: any;\n obsDatetime: string;\n}\n\nexport interface Order {\n uuid: string;\n dateActivated: string;\n dose: number;\n doseUnits: {\n uuid: string;\n display: string;\n };\n drug: {\n uuid: string;\n name: string;\n strength: string;\n };\n duration: number;\n durationUnits: {\n uuid: string;\n display: string;\n };\n frequency: {\n uuid: string;\n display: string;\n };\n numRefills: number;\n orderer: {\n uuid: string;\n person: {\n uuid: string;\n display: string;\n };\n };\n orderType: {\n uuid: string;\n display: string;\n };\n route: {\n uuid: string;\n display: string;\n };\n}\n\nexport interface Note {\n note: string;\n provider: {\n name: string;\n role: string;\n };\n time: string;\n}\n\nexport interface OrderItem {\n order: Order;\n provider: {\n name: string;\n role: string;\n };\n}\n\nexport function useVisit(visitUuid: string) {\n const customRepresentation =\n 'custom:(uuid,encounters:(uuid,encounterDatetime,' +\n 'orders:(uuid,dateActivated,' +\n 'drug:(uuid,name,strength),doseUnits:(uuid,display),' +\n 'dose,route:(uuid,display),frequency:(uuid,display),' +\n 'duration,durationUnits:(uuid,display),numRefills,' +\n 'orderType:(uuid,display),orderer:(uuid,person:(uuid,display))),' +\n 'obs:(uuid,concept:(uuid,display,conceptClass:(uuid,display)),' +\n 'display,groupMembers:(uuid,concept:(uuid,display),' +\n 'value:(uuid,display)),value),encounterType:(uuid,display),' +\n 'encounterProviders:(uuid,display,encounterRole:(uuid,display),' +\n 'provider:(uuid,person:(uuid,display)))),visitType:(uuid,name,display),startDatetime';\n\n const { data, error, isValidating } = useSWR<{ data: Visit }, Error>(\n `/ws/rest/v1/visit/${visitUuid}?v=${customRepresentation}`,\n openmrsFetch,\n );\n\n return {\n visit: data ? data.data : null,\n isError: error,\n isLoading: !data && !error,\n isValidating,\n };\n}\n\nexport function getDosage(strength: string, doseNumber: number) {\n if (!strength || !doseNumber) {\n return '';\n }\n\n const i = strength.search(/\\D/);\n const strengthQuantity = parseInt(strength.substring(0, i));\n\n const concentrationStartIndex = strength.search(/\\//);\n\n let strengthUnits = strength.substring(i);\n\n if (concentrationStartIndex >= 0) {\n strengthUnits = strength.substring(i, concentrationStartIndex);\n const j = strength.substring(concentrationStartIndex + 1).search(/\\D/);\n const concentrationQuantity = parseInt(strength.substr(concentrationStartIndex + 1, j));\n const concentrationUnits = strength.substring(concentrationStartIndex + 1 + j);\n return `${doseNumber} ${strengthUnits} (${\n (doseNumber / strengthQuantity) * concentrationQuantity\n } ${concentrationUnits})`;\n } else {\n return `${strengthQuantity * doseNumber} ${strengthUnits}`;\n }\n}\n","import React from 'react';\nimport styles from '../visit-detail-overview.scss';\nimport { Note } from '../visit.resource';\nimport { useTranslation } from 'react-i18next';\n\ninterface NotesSummaryProps {\n notes: Array<Note>;\n}\n\nconst NotesSummary: React.FC<NotesSummaryProps> = ({ notes }) => {\n const { t } = useTranslation();\n\n return (\n <React.Fragment>\n {notes.length > 0 ? (\n notes.map((note, ind) => (\n <React.Fragment key={ind}>\n <p className={`${styles.medicationBlock} ${styles.bodyLong01}`}>{note.note}</p>\n <p className={styles.caption01} style={{ color: '#525252' }}>\n {note.time} &middot; {note.provider.name} &middot; {note.provider.role}\n </p>\n </React.Fragment>\n ))\n ) : (\n <p className={`${styles.bodyLong01} ${styles.text02}`}>{t('noNotesFound', 'No notes found')}</p>\n )}\n </React.Fragment>\n );\n};\n\nexport default NotesSummary;\n","import React, { useMemo } from 'react';\nimport { ExtensionSlot } from '@openmrs/esm-framework';\nimport { Encounter } from '../visit.resource';\nimport styles from '../visit-detail-overview.scss';\n\nconst TestsSummary = ({ patientUuid, encounters }: { patientUuid: string; encounters: Array<Encounter> }) => {\n const filter = useMemo(() => {\n const encounterIds = encounters.map((e) => `Encounter/${e.uuid}`);\n return ([entry]) => {\n return encounterIds.includes(entry.encounter.reference);\n };\n }, [encounters]);\n\n return (\n <div className={`${styles.bodyLong01} ${styles.testSummaryExtension}`}>\n <ExtensionSlot extensionSlotName=\"test-results-filtered-overview\" state={{ filter, patientUuid }} />\n </div>\n );\n};\n\nexport default TestsSummary;\n","import React, { useState, useMemo } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { Tab, Tabs } from 'carbon-components-react';\nimport { Order, Encounter, Note, Observation, OrderItem } from '../visit.resource';\nimport styles from '../visit-detail-overview.scss';\nimport MedicationSummary from './medications-summary.component';\nimport NotesSummary from './notes-summary.component';\nimport TestsSummary from './tests-summary.component';\nimport { OpenmrsResource, formatTime, parseDate } from '@openmrs/esm-framework';\n\ninterface DiagnosisItem {\n diagnosis: string;\n order: string;\n}\n\ninterface VisitSummaryProps {\n encounters: Array<Encounter | OpenmrsResource>;\n patientUuid: string;\n}\n\nconst VisitSummary: React.FC<VisitSummaryProps> = ({ encounters, patientUuid }) => {\n const { t } = useTranslation();\n const [tabSelected, setSelectedTab] = useState(0);\n\n const [diagnoses, notes, medications]: [Array<DiagnosisItem>, Array<Note>, Array<OrderItem>] = useMemo(() => {\n // Medication Tab\n const medications: Array<OrderItem> = [];\n // Diagnoses in a Visit\n const diagnoses: Array<DiagnosisItem> = [];\n // Notes Tab\n const notes: Array<Note> = [];\n\n // Iterating through every Encounter\n encounters.forEach((enc: Encounter) => {\n // Orders of every encounter put in a single array.\n medications.push(\n ...enc.orders.map((order: Order) => ({\n order,\n provider: {\n name: enc.encounterProviders.length ? enc.encounterProviders[0].provider.person.display : '',\n role: enc.encounterProviders.length ? enc.encounterProviders[0].encounterRole.display : '',\n },\n })),\n );\n\n // Check for Visit Diagnoses and Notes\n if (enc.encounterType.display === 'Visit Note') {\n enc.obs.forEach((obs: Observation) => {\n if (obs.concept.display === 'Visit Diagnoses') {\n // Putting all the diagnoses in a single array.\n diagnoses.push({\n diagnosis: obs.groupMembers.find((mem) => mem.concept.display === 'PROBLEM LIST').value.display,\n order: obs.groupMembers.find((mem) => mem.concept.display === 'Diagnosis order').value.display,\n });\n } else if (obs.concept.display === 'Text of encounter note') {\n // Putting all notes in a single array.\n notes.push({\n note: obs.value,\n provider: {\n name: enc.encounterProviders.length ? enc.encounterProviders[0].provider.person.display : '',\n role: enc.encounterProviders.length ? enc.encounterProviders[0].encounterRole.display : '',\n },\n time: formatTime(parseDate(obs.obsDatetime)),\n });\n }\n });\n }\n });\n return [diagnoses, notes, medications];\n }, [encounters]);\n\n return (\n <div className={styles.summaryContainer}>\n <p className={styles.productiveHeading01}>{t('diagnoses', 'Diagnoses')}</p>\n <div className={`${styles.caption01} ${styles.diagnosesList}`}>\n {diagnoses.length > 0 ? (\n diagnoses.map((d: DiagnosisItem, ind) => (\n <span\n key={ind}\n className={`${styles.diagnosis} ${\n d.order === 'Primary' ? styles.primaryDiagnose : styles.secondaryDiagnose\n }`}>\n {d.diagnosis}\n </span>\n ))\n ) : (\n <span className={`${styles.bodyLong01} ${styles.text02}`} style={{ marginBottom: '0.5rem' }}>\n {t('noDiagnosesFound', 'No diagnoses found')}\n </span>\n )}\n </div>\n <Tabs className={styles.verticalTabs}>\n <Tab\n className={`${styles.tab} ${styles.bodyLong01} ${tabSelected === 0 && styles.selectedTab}`}\n onClick={() => setSelectedTab(0)}\n id=\"notes-tab\"\n label={t('notes', 'Notes')}>\n <NotesSummary notes={notes} />\n </Tab>\n <Tab\n className={`${styles.tab} ${tabSelected === 1 && styles.selectedTab}`}\n onClick={() => setSelectedTab(1)}\n id=\"tests-tab\"\n label={t('tests', 'Tests')}>\n <TestsSummary patientUuid={patientUuid} encounters={encounters as Array<Encounter>} />\n </Tab>\n <Tab\n className={`${styles.tab} ${tabSelected === 2 && styles.selectedTab}`}\n onClick={() => setSelectedTab(2)}\n id=\"tab-3\"\n label={t('medications', 'Medications')}>\n <MedicationSummary medications={medications} />\n </Tab>\n </Tabs>\n </div>\n );\n};\n\nexport default VisitSummary;\n","import React, { useState, useMemo } from 'react';\nimport { Button, DataTableSkeleton } from 'carbon-components-react';\nimport { useTranslation } from 'react-i18next';\nimport { Encounter, useVisit } from './visit.resource';\nimport styles from './visit-detail-overview.scss';\nimport EncounterList from './visits-components/encounter-list.component';\nimport VisitSummary from './visits-components/visit-summary.component';\nimport { formatTime, formatDatetime, parseDate } from '@openmrs/esm-framework';\n\ninterface VisitDetailComponentProps {\n visitUuid: string;\n patientUuid: string;\n}\n\nconst VisitDetailComponent: React.FC<VisitDetailComponentProps> = ({ visitUuid, patientUuid }) => {\n const { t } = useTranslation();\n const [listView, setView] = useState(true);\n const { visit, isError, isLoading, isValidating } = useVisit(visitUuid);\n\n const encounters = useMemo(\n () =>\n visit\n ? visit?.encounters?.map((encounter: Encounter) => ({\n id: encounter.uuid,\n time: formatTime(parseDate(encounter.encounterDateTime)),\n encounterType: encounter.encounterType.display,\n provider: encounter.encounterProviders.length > 0 ? encounter.encounterProviders[0].display : '',\n obs: encounter.obs,\n }))\n : [],\n [visit],\n );\n\n if (isLoading) {\n return <DataTableSkeleton role=\"progressbar\" />;\n }\n if (visit) {\n return (\n <div className={styles.visitsDetailWidgetContainer}>\n <div className={styles.visitsDetailHeaderContainer}>\n <h4 className={styles.productiveHeading02}>\n {visit?.visitType?.display}\n <br />\n <p className={`${styles.bodyLong01} ${styles.text02}`}>{formatDatetime(parseDate(visit?.startDatetime))}</p>\n </h4>\n <div className={styles.toggleButtons}>\n <Button\n className={`${styles.toggle} ${listView ? styles.toggleActive : ''}`}\n size=\"small\"\n kind=\"ghost\"\n onClick={() => setView(true)}>\n {t('allEncounters', 'All Encounters')}\n </Button>\n <Button\n className={`${styles.toggle} ${!listView ? styles.toggleActive : ''}`}\n size=\"small\"\n kind=\"ghost\"\n onClick={() => setView(false)}>\n {t('visitSummary', 'Visit Summary')}\n </Button>\n </div>\n </div>\n {listView && visit?.encounters && <EncounterList visitUuid={visit.uuid} encounters={encounters} />}\n {!listView && <VisitSummary encounters={visit.encounters} patientUuid={patientUuid} />}\n </div>\n );\n } else {\n return null;\n }\n};\n\nexport default VisitDetailComponent;\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","observations","useTranslation","t","observationsList","useMemo","map","obs","display","split","question","answer","length","div","className","styles","ind","React","key","span","p","SkeletonText","encounters","visitUuid","isDesktop","useLayoutType","useState","headerWidth","setHeaderWidth","headerRef","useRef","headerData","header","useEffect","current","clientWidth","handler","window","addEventListener","removeEventListener","DataTable","rows","headers","getHeaderProps","getRowProps","getTableProps","TableContainer","Table","size","TableHead","TableRow","TableExpandHeader","TableHeader","ref","TableBody","row","TableExpandRow","cells","cell","TableCell","value","isExpanded","TableExpandedRow","style","paddingLeft","colSpan","marginLeft","EncounterObservations","h4","medications","medication","order","dose","orderType","strong","capitalize","drug","name","doseUnits","route","br","toUpperCase","strength","doseNumber","i","search","strengthQuantity","parseInt","substring","concentrationStartIndex","strengthUnits","j","concentrationQuantity","substr","concentrationUnits","getDosage","toLowerCase","frequency","duration","durationUnit","durationUnits","numRefills","color","formatTime","parseDate","dateActivated","provider","role","notes","note","time","patientUuid","filter","encounterIds","e","uuid","entry","includes","encounter","reference","ExtensionSlot","extensionSlotName","state","tabSelected","setSelectedTab","diagnoses","forEach","enc","orders","encounterProviders","person","encounterRole","encounterType","concept","diagnosis","groupMembers","find","mem","obsDatetime","d","marginBottom","Tabs","Tab","onClick","label","NotesSummary","TestsSummary","MedicationSummary","visit","listView","setView","useVisit","useSWR","customRepresentation","openmrsFetch","data","error","isValidating","isError","isLoading","encounterDateTime","DataTableSkeleton","visitType","formatDatetime","startDatetime","Button","kind","EncounterList","VisitSummary"],"sourceRoot":""}