@openmrs/esm-patient-chart-app 11.3.1-pre.9294 → 11.3.1-pre.9304
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +9 -9
- package/dist/1119.js +1 -1
- package/dist/1197.js +1 -1
- package/dist/2146.js +1 -1
- package/dist/2690.js +1 -1
- package/dist/276.js +1 -1
- package/dist/276.js.map +1 -1
- package/dist/2761.js +1 -1
- package/dist/2761.js.map +1 -1
- package/dist/2859.js +1 -1
- package/dist/2859.js.map +1 -1
- package/dist/3099.js +1 -1
- package/dist/3119.js +1 -1
- package/dist/3119.js.map +1 -1
- package/dist/3584.js +1 -1
- package/dist/4055.js +1 -1
- package/dist/4132.js +1 -1
- package/dist/4300.js +1 -1
- package/dist/4335.js +1 -1
- package/dist/4618.js +1 -1
- package/dist/4652.js +1 -1
- package/dist/4727.js +1 -1
- package/dist/4727.js.map +1 -1
- package/dist/4944.js +1 -1
- package/dist/5048.js +1 -1
- package/dist/5048.js.map +1 -1
- package/dist/5173.js +1 -1
- package/dist/5241.js +1 -1
- package/dist/5442.js +1 -1
- package/dist/5661.js +1 -1
- package/dist/6022.js +1 -1
- package/dist/6468.js +1 -1
- package/dist/6568.js +1 -0
- package/dist/6568.js.map +1 -0
- package/dist/6679.js +1 -1
- package/dist/6840.js +1 -1
- package/dist/6859.js +1 -1
- package/dist/7097.js +1 -1
- package/dist/7159.js +1 -1
- package/dist/723.js +1 -1
- package/dist/7617.js +1 -1
- package/dist/795.js +1 -1
- package/dist/8163.js +1 -1
- package/dist/8260.js +1 -0
- package/dist/8260.js.map +1 -0
- package/dist/8349.js +1 -1
- package/dist/8454.js +1 -1
- package/dist/8454.js.map +1 -1
- package/dist/8618.js +1 -1
- package/dist/890.js +1 -1
- package/dist/9214.js +1 -1
- package/dist/9329.js +1 -0
- package/dist/9329.js.map +1 -0
- package/dist/9538.js +1 -1
- package/dist/9569.js +1 -1
- package/dist/986.js +1 -1
- package/dist/9879.js +1 -1
- package/dist/9895.js +1 -1
- package/dist/9900.js +1 -1
- package/dist/9913.js +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-patient-chart-app.js +1 -1
- package/dist/openmrs-esm-patient-chart-app.js.buildmanifest.json +214 -214
- package/dist/openmrs-esm-patient-chart-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +2 -2
- package/src/actions-buttons/delete-visit.component.tsx +8 -3
- package/src/actions-buttons/stop-visit.component.tsx +1 -1
- package/src/clinical-views/encounter-list/{encounter-list-tabs.component.tsx → encounter-list-tabs.extension.tsx} +10 -6
- package/src/index.ts +4 -4
- package/src/mark-patient-deceased/mark-patient-deceased-form.test.tsx +2 -0
- package/src/patient-banner-tags/{visit-attribute-tags.component.tsx → visit-attribute-tags.extension.tsx} +6 -4
- package/src/patient-chart/patient-chart.component.tsx +39 -65
- package/src/patient-chart/patient-chart.resources.ts +108 -0
- package/src/visit/hooks/useDeleteVisit.test.tsx +39 -42
- package/src/visit/hooks/useDeleteVisit.tsx +33 -17
- package/src/visit/visit-form/visit-form.test.tsx +3 -9
- package/src/visit/visit-form/visit-form.workspace.tsx +17 -7
- package/src/visit/visit-prompt/delete-visit-dialog.component.tsx +10 -4
- package/src/visit/visit-prompt/delete-visit-dialog.test.tsx +20 -2
- package/src/visit/visit-prompt/end-visit-dialog.component.tsx +7 -1
- package/src/visit/visit-prompt/end-visit-dialog.test.tsx +19 -0
- package/src/visit/visits-widget/active-visit-buttons/active-visit-buttons.tsx +7 -6
- package/src/visit/visits-widget/{current-visit-summary.component.tsx → current-visit-summary.extension.tsx} +13 -20
- package/src/visit/visits-widget/current-visit-summary.test.tsx +45 -25
- package/src/visit/visits-widget/past-visits-components/encounters-table/encounters-table.component.tsx +4 -3
- package/src/visit/visits-widget/past-visits-components/encounters-table/encounters-table.resource.ts +0 -1
- package/src/visit/visits-widget/visit-context/retrospective-data-date-time-picker/retrospective-date-time-picker.component.tsx +6 -8
- package/src/visit/visits-widget/visit-context/{visit-context-header.component.tsx → visit-context-header.extension.tsx} +17 -15
- package/src/visit/visits-widget/visit-context/visit-context-header.test.tsx +35 -29
- package/src/visit/visits-widget/visit-context/visit-context-switcher.modal.tsx +13 -11
- package/src/visit/visits-widget/visit-context/visit-context-switcher.test.tsx +50 -30
- package/src/visit/visits-widget/visit.resource.tsx +1 -1
- package/translations/am.json +1 -3
- package/translations/ar.json +1 -3
- package/translations/ar_SY.json +1 -3
- package/translations/bn.json +1 -3
- package/translations/de.json +1 -3
- package/translations/en.json +1 -3
- package/translations/en_US.json +1 -3
- package/translations/es.json +1 -3
- package/translations/es_MX.json +1 -3
- package/translations/fr.json +1 -3
- package/translations/he.json +1 -3
- package/translations/hi.json +1 -3
- package/translations/hi_IN.json +1 -3
- package/translations/id.json +1 -3
- package/translations/it.json +1 -3
- package/translations/ka.json +1 -3
- package/translations/km.json +1 -3
- package/translations/ku.json +1 -3
- package/translations/ky.json +1 -3
- package/translations/lg.json +1 -3
- package/translations/ne.json +1 -3
- package/translations/pl.json +1 -3
- package/translations/pt.json +1 -3
- package/translations/pt_BR.json +1 -3
- package/translations/qu.json +1 -3
- package/translations/ro_RO.json +1 -3
- package/translations/ru_RU.json +1 -3
- package/translations/si.json +1 -3
- package/translations/sw.json +1 -3
- package/translations/sw_KE.json +1 -3
- package/translations/tr.json +1 -3
- package/translations/tr_TR.json +1 -3
- package/translations/uk.json +1 -3
- package/translations/uz.json +1 -3
- package/translations/uz@Latn.json +1 -3
- package/translations/uz_UZ.json +1 -3
- package/translations/vi.json +1 -3
- package/translations/zh.json +1 -3
- package/translations/zh_CN.json +1 -3
- package/dist/2442.js +0 -1
- package/dist/2442.js.map +0 -1
- package/dist/3042.js +0 -1
- package/dist/3042.js.map +0 -1
- package/dist/4713.js +0 -1
- package/dist/4713.js.map +0 -1
package/dist/8454.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[8454],{9247:(e,n,t)=>{"use strict";function i(e,n,t){return(n=function(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function o(e,n){if(null==e)return{};var t,i,a=function(e,n){if(null==e)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==n.indexOf(i))continue;t[i]=e[i]}return t}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)t=s[i],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}t.d(n,{A:()=>f});var r=["width","height","viewBox"],c=["tabindex"],p={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var l=t(39067),u=t.n(l),d=t(1343),g=t.n(d);const f=g().forwardRef((function({className:e,children:n,tabIndex:t,xmlns:i="http://www.w3.org/2000/svg",preserveAspectRatio:a="xMidYMid meet",...l},u){const{tabindex:d,...f}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width,t=e.height,i=e.viewBox,a=void 0===i?"0 0 ".concat(n," ").concat(t):i,l=o(e,r),u=l.tabindex,d=o(l,c),g=s(s(s({},p),d),{},{width:n,height:t,viewBox:a});return g["aria-label"]||g["aria-labelledby"]||g.title?(g.role="img",null!=u&&(g.focusable="true",g.tabindex=u)):g["aria-hidden"]=!0,g}({...l,tabindex:t}),h=f;return e&&(h.className=e),null!=d&&(h.tabIndex="number"==typeof d?d:Number(t)),u&&(h.ref=u),i&&(h.xmlns=i),a&&(h.preserveAspectRatio=a),g().createElement("svg",h,n)}));f.displayName="Icon",f.propTypes={"aria-hidden":u().oneOfType([u().bool,u().oneOf(["true","false"])]),"aria-label":u().string,"aria-labelledby":u().string,children:u().node,className:u().string,height:u().oneOfType([u().number,u().string]),preserveAspectRatio:u().string,tabIndex:u().oneOfType([u().number,u().string]),viewBox:u().string,width:u().oneOfType([u().number,u().string]),xmlns:u().string}},10591:(e,n,t)=>{"use strict";t.d(n,{A:()=>r});var i=t(30977),a=t.n(i),s=t(95924),o=t.n(s)()(a());o.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-patient-chart__visit-context-switcher__visitCardRow___U4sL3{display:flex;position:relative;border:solid 1px #e0e0e0;padding:.5rem}.-esm-patient-chart__visit-context-switcher__visitCardRow___U4sL3.-esm-patient-chart__visit-context-switcher__activeVisit___A1C2o{background-color:#defbe6}.-esm-patient-chart__visit-context-switcher__visitCardRow___U4sL3.-esm-patient-chart__visit-context-switcher__activeVisit___A1C2o:hover{background-color:#b6f6c8}.-esm-patient-chart__visit-context-switcher__visitCardRow___U4sL3.-esm-patient-chart__visit-context-switcher__retroactiveVisit___0TB01{background-color:#f4f4f4}.-esm-patient-chart__visit-context-switcher__visitCardRow___U4sL3.-esm-patient-chart__visit-context-switcher__retroactiveVisit___0TB01:hover{background-color:#e5e5e5}.-esm-patient-chart__visit-context-switcher__visitInfoContainer___JwzOf{flex:1}.-esm-patient-chart__visit-context-switcher__visitType___AbVs0{font-size:14px;font-weight:600}.-esm-patient-chart__visit-context-switcher__visitCardRowButton___bIyDq{border:none;padding:0}.-esm-patient-chart__visit-context-switcher__visitCardRowButton___bIyDq::before{content:"";position:absolute;inset:0;z-index:1;cursor:pointer}.-esm-patient-chart__visit-context-switcher__visitCardRowRadioButton___4fA1C{display:flex;align-items:center}.-esm-patient-chart__visit-context-switcher__createVisitButtonContainer___CbNlS{padding:1rem}.-esm-patient-chart__visit-context-switcher__datepicker___cxai3{padding-top:1rem}.-esm-patient-chart__visit-context-switcher__tileContainer___hVZdQ{background-color:#fff;padding:3rem 0}.-esm-patient-chart__visit-context-switcher__tile___VUTyo{margin:auto;margin-top:2rem;width:fit-content}.-esm-patient-chart__visit-context-switcher__tileContent___ZSQN4{display:flex;flex-direction:column;align-items:center}.-esm-patient-chart__visit-context-switcher__content___TnYQq{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252;margin-bottom:.5rem}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/visit/visits-widget/visit-context/visit-context-switcher.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCxDF,kEACE,YAAA,CACA,iBAAA,CACA,wBAAA,CACA,aCYW,CDVX,kIACE,wBAAA,CACA,wIACE,wBAAA,CAIJ,uIACE,wBAAA,CACA,6IACE,wBAAA,CAKN,wEACE,MAAA,CAGF,+DACE,cAAA,CACA,eAAA,CAGF,wEACE,WAAA,CACA,SAAA,CAEA,gFACE,UAAA,CACA,iBAAA,CACA,OAAA,CACA,SAAA,CACA,cAAA,CAIJ,6EACE,YAAA,CACA,kBAAA,CAGF,gFACE,YCvBW,CD0Bb,gEACE,gBC3BW,CD8Bb,mEACE,qBD3DM,CC4DN,cAAA,CAGF,0DACE,WAAA,CACA,eC3BW,CD4BX,iBAAA,CAGF,iEACE,YAAA,CACA,qBAAA,CACA,kBAAA,CAGF,6DEoxBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFlxBF,aDzEQ,CC0ER,mBC5DW",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/colors';\n@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.visitCardRow {\n display: flex;\n position: relative;\n border: solid 1px #e0e0e0;\n padding: layout.$spacing-03;\n\n &.activeVisit {\n background-color: #defbe6;\n &:hover {\n background-color: #b6f6c8;\n }\n }\n\n &.retroactiveVisit {\n background-color: #f4f4f4;\n &:hover {\n background-color: #e5e5e5;\n }\n }\n}\n\n.visitInfoContainer {\n flex: 1;\n}\n\n.visitType {\n font-size: 14px;\n font-weight: 600;\n}\n\n.visitCardRowButton {\n border: none;\n padding: 0;\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n z-index: 1;\n cursor: pointer;\n }\n}\n\n.visitCardRowRadioButton {\n display: flex;\n align-items: center;\n}\n\n.createVisitButtonContainer {\n padding: layout.$spacing-05;\n}\n\n.datepicker {\n padding-top: layout.$spacing-05;\n}\n\n.tileContainer {\n background-color: $ui-02;\n padding: layout.$spacing-09 0;\n}\n\n.tile {\n margin: auto;\n margin-top: layout.$spacing-07;\n width: fit-content;\n}\n\n.tileContent {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.content {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n margin-bottom: layout.$spacing-03;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),o.locals={visitCardRow:"-esm-patient-chart__visit-context-switcher__visitCardRow___U4sL3",activeVisit:"-esm-patient-chart__visit-context-switcher__activeVisit___A1C2o",retroactiveVisit:"-esm-patient-chart__visit-context-switcher__retroactiveVisit___0TB01",visitInfoContainer:"-esm-patient-chart__visit-context-switcher__visitInfoContainer___JwzOf",visitType:"-esm-patient-chart__visit-context-switcher__visitType___AbVs0",visitCardRowButton:"-esm-patient-chart__visit-context-switcher__visitCardRowButton___bIyDq",visitCardRowRadioButton:"-esm-patient-chart__visit-context-switcher__visitCardRowRadioButton___4fA1C",createVisitButtonContainer:"-esm-patient-chart__visit-context-switcher__createVisitButtonContainer___CbNlS",datepicker:"-esm-patient-chart__visit-context-switcher__datepicker___cxai3",tileContainer:"-esm-patient-chart__visit-context-switcher__tileContainer___hVZdQ",tile:"-esm-patient-chart__visit-context-switcher__tile___VUTyo",tileContent:"-esm-patient-chart__visit-context-switcher__tileContent___ZSQN4",content:"-esm-patient-chart__visit-context-switcher__content___TnYQq"};const r=o},14224:(e,n,t)=>{"use strict";t.d(n,{A:()=>r});var i=t(30977),a=t.n(i),s=t(95924),o=t.n(s)()(a());o.push([e.id,".-esm-patient-chart__visit-context-info__visitContextInfoContainer___vuN7e{display:flex;align-items:center;justify-items:center}.-esm-patient-chart__visit-context-info__separator___niAOq,.-esm-patient-chart__visit-context-info__visitLocation___6Vt56{margin:.25rem}","",{version:3,sources:["webpack://./src/visit/visits-widget/visit-context/visit-context-info.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAEA,2EACE,YAAA,CACA,kBAAA,CACA,oBAAA,CAGF,0HAEE,aCMW",sourcesContent:["@use '@carbon/layout';\n\n.visitContextInfoContainer {\n display: flex;\n align-items: center;\n justify-items: center;\n}\n\n.separator,\n.visitLocation {\n margin: layout.$spacing-02;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),o.locals={visitContextInfoContainer:"-esm-patient-chart__visit-context-info__visitContextInfoContainer___vuN7e",separator:"-esm-patient-chart__visit-context-info__separator___niAOq",visitLocation:"-esm-patient-chart__visit-context-info__visitLocation___6Vt56"};const r=o},36848:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},36999:(e,n,t)=>{"use strict";var i=t(36848);function a(){}function s(){}s.resetWarningCache=a,e.exports=function(){function e(e,n,t,a,s,o){if(o!==i){var r=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw r.name="Invariant Violation",r}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:s,resetWarningCache:a};return t.PropTypes=t,t}},39067:(e,n,t)=>{e.exports=t(36999)()},49024:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>B});var i=t(1343),a=t.n(i),s=t(53373),o=t.n(s),r=t(46372),c=t.n(r),p=t(75198),l=t(72339),u=t(54440),d=t(97821),g=t(63792),f=t(72591),h=t.n(f),y=t(1740),b=t.n(y),m=t(88128),$=t.n(m),v=t(30855),_=t.n(v),w=t(93051),A=t.n(w),x=t(73656),k=t.n(x),C=t(10591),z={};z.styleTagTransform=k(),z.setAttributes=_(),z.insert=$().bind(null,"head"),z.domAPI=b(),z.insertStyleElement=A(),h()(C.A,z);const M=C.A&&C.A.locals?C.A.locals:void 0;function E(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 N(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,s=[],o=!0,r=!1;try{for(t=t.call(e);!(o=(i=t.next()).done)&&(s.push(i.value),!n||s.length!==n);o=!0);}catch(e){r=!0,a=e}finally{try{o||null==t.return||t.return()}finally{if(r)throw a}}return s}}(e,n)||function(e,n){if(e){if("string"==typeof e)return E(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)?E(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var T=function(e){var n=e.visit,t=e.setSelectedVisit,i=e.isSelected,s=!n.stopDatetime;return a().createElement("div",{className:o()(M.visitCardRow,s?M.activeVisit:M.retroactiveVisit,i?M.isSelected:"")},a().createElement("div",{className:M.visitInfoContainer},a().createElement("div",{className:M.visitType},n.visitType.display),a().createElement("div",{className:M.visitInfo},a().createElement(g.A,{visit:n}))),a().createElement("div",{className:M.visitCardRowRadioButton},a().createElement(p.RadioButton,{className:M.visitRow,id:"visit-card-row-".concat(n.uuid),value:n.uuid,checked:i,labelText:n.visitType.display,onChange:function(e){return t(String(e))}})),a().createElement("button",{className:M.visitCardRowButton,onClick:function(){return t(n.uuid)}}))};const B=function(e){var n=e.patientUuid,t=e.closeModal,s=e.onAfterVisitSelected,o=(0,l.useTranslation)().t,r=N((0,i.useState)(new Date),2),g=r[0],f=r[1],h=(0,u.useDebounce)(g),y=(0,d.MX)(n,{toStartDate:c()(h).endOf("day").toISOString()},"custom:(uuid,display,visitType,startDatetime,stopDatetime,location,patient)"),b=y.visits,m=y.isLoading,$=y.error,v=y.hasMore,_=y.loadMore,w=(0,u.useVisitContextStore)(),A=w.patientUuid,x=w.manuallySetVisitUuid,k=w.setVisitContext,C=N((0,i.useState)(A===n?x:null),2),z=C[0],E=C[1],B=(0,i.useCallback)((function(){v&&_()}),[v,_]),O=(0,u.useOnVisible)(B);return a().createElement(a().Fragment,null,a().createElement(p.ModalHeader,{closeModal:t,title:o("selectAVisit","Select a visit")},a().createElement(u.OpenmrsDatePicker,{id:"visit-context-switcher-date-picker",className:M.datepicker,labelText:o("showVisitWithStartDateOnOrPriorTo","Show visit with start date on or prior to:"),maxDate:Date.now(),value:g,onChange:f})),a().createElement(p.ModalBody,null,$?a().createElement(u.ErrorState,{headerTitle:o("visits","visits"),error:$}):0==(null==b?void 0:b.length)?a().createElement(p.Tile,{className:M.tile},a().createElement("div",{className:M.tileContent},a().createElement("p",{className:M.content},o("noVisitsToDisplay","No visits to display")),a().createElement("p",{className:M.helper},o("checkFilters","Check the filters above")))):a().createElement("div",null,null==b?void 0:b.map((function(e){return a().createElement(T,{key:e.uuid,visit:e,setSelectedVisit:E,isSelected:z===e.uuid})})),m?a().createElement(p.InlineLoading,{description:o("loading","Loading")}):a().createElement("span",{ref:O}))),a().createElement("div",{className:M.createVisitButtonContainer},a().createElement(p.Button,{kind:"ghost",size:"sm",onClick:function(){t(),(0,u.launchWorkspace)("start-visit-workspace-form",{openedFrom:"visit-context-switcher"})}},o("createNewVisit","Create new visit..."))),a().createElement(p.ModalFooter,null,a().createElement(p.Button,{kind:"secondary",onClick:t},o("cancel","Cancel")),a().createElement(p.Button,{disabled:null===z||m,onClick:function(){k(b.find((function(e){return e.uuid===z}))),null==s||s(),t()}},o("continue","Continue"))))}},63792:(e,n,t)=>{"use strict";t.d(n,{A:()=>A});var i=t(49007),a=t(54440),s=t(1343),o=t.n(s),r=t(72339),c=t(72591),p=t.n(c),l=t(1740),u=t.n(l),d=t(88128),g=t.n(d),f=t(30855),h=t.n(f),y=t(93051),b=t.n(y),m=t(73656),$=t.n(m),v=t(14224),_={};_.styleTagTransform=$(),_.setAttributes=h(),_.insert=g().bind(null,"head"),_.domAPI=u(),_.insertStyleElement=b(),p()(v.A,_);const w=v.A&&v.A.locals?v.A.locals:void 0,A=function(e){var n=e.visit,t=(0,r.useTranslation)().t;if(!n)return null;var s=!n.stopDatetime;return o().createElement("div",{className:w.visitContextInfoContainer},o().createElement("span",null,s?t("currentActiveVisit","Current active visit"):t("fromDateToDate","{{fromDate}} - {{toDate}}",{fromDate:(0,a.formatDate)((0,a.parseDate)(n.startDatetime),{time:!1}),toDate:(0,a.formatDate)((0,a.parseDate)(n.stopDatetime),{time:!1})})),o().createElement("span",{className:w.separator},"·"),o().createElement(i.tI,null),o().createElement("span",{className:w.visitLocation},n.location.display))}}}]);
|
|
1
|
+
(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[8454],{9247:(e,n,t)=>{"use strict";function i(e,n,t){return(n=function(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,n);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function o(e,n){if(null==e)return{};var t,i,a=function(e,n){if(null==e)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==n.indexOf(i))continue;t[i]=e[i]}return t}(e,n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)t=s[i],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}t.d(n,{A:()=>f});var r=["width","height","viewBox"],c=["tabindex"],p={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var l=t(39067),u=t.n(l),d=t(1343),g=t.n(d);const f=g().forwardRef((function({className:e,children:n,tabIndex:t,xmlns:i="http://www.w3.org/2000/svg",preserveAspectRatio:a="xMidYMid meet",...l},u){const{tabindex:d,...f}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width,t=e.height,i=e.viewBox,a=void 0===i?"0 0 ".concat(n," ").concat(t):i,l=o(e,r),u=l.tabindex,d=o(l,c),g=s(s(s({},p),d),{},{width:n,height:t,viewBox:a});return g["aria-label"]||g["aria-labelledby"]||g.title?(g.role="img",null!=u&&(g.focusable="true",g.tabindex=u)):g["aria-hidden"]=!0,g}({...l,tabindex:t}),h=f;return e&&(h.className=e),null!=d&&(h.tabIndex="number"==typeof d?d:Number(t)),u&&(h.ref=u),i&&(h.xmlns=i),a&&(h.preserveAspectRatio=a),g().createElement("svg",h,n)}));f.displayName="Icon",f.propTypes={"aria-hidden":u().oneOfType([u().bool,u().oneOf(["true","false"])]),"aria-label":u().string,"aria-labelledby":u().string,children:u().node,className:u().string,height:u().oneOfType([u().number,u().string]),preserveAspectRatio:u().string,tabIndex:u().oneOfType([u().number,u().string]),viewBox:u().string,width:u().oneOfType([u().number,u().string]),xmlns:u().string}},10591:(e,n,t)=>{"use strict";t.d(n,{A:()=>r});var i=t(30977),a=t.n(i),s=t(95924),o=t.n(s)()(a());o.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-patient-chart__visit-context-switcher__visitCardRow___U4sL3{display:flex;position:relative;border:solid 1px #e0e0e0;padding:.5rem}.-esm-patient-chart__visit-context-switcher__visitCardRow___U4sL3.-esm-patient-chart__visit-context-switcher__activeVisit___A1C2o{background-color:#defbe6}.-esm-patient-chart__visit-context-switcher__visitCardRow___U4sL3.-esm-patient-chart__visit-context-switcher__activeVisit___A1C2o:hover{background-color:#b6f6c8}.-esm-patient-chart__visit-context-switcher__visitCardRow___U4sL3.-esm-patient-chart__visit-context-switcher__retroactiveVisit___0TB01{background-color:#f4f4f4}.-esm-patient-chart__visit-context-switcher__visitCardRow___U4sL3.-esm-patient-chart__visit-context-switcher__retroactiveVisit___0TB01:hover{background-color:#e5e5e5}.-esm-patient-chart__visit-context-switcher__visitInfoContainer___JwzOf{flex:1}.-esm-patient-chart__visit-context-switcher__visitType___AbVs0{font-size:14px;font-weight:600}.-esm-patient-chart__visit-context-switcher__visitCardRowButton___bIyDq{border:none;padding:0}.-esm-patient-chart__visit-context-switcher__visitCardRowButton___bIyDq::before{content:"";position:absolute;inset:0;z-index:1;cursor:pointer}.-esm-patient-chart__visit-context-switcher__visitCardRowRadioButton___4fA1C{display:flex;align-items:center}.-esm-patient-chart__visit-context-switcher__createVisitButtonContainer___CbNlS{padding:1rem}.-esm-patient-chart__visit-context-switcher__datepicker___cxai3{padding-top:1rem}.-esm-patient-chart__visit-context-switcher__tileContainer___hVZdQ{background-color:#fff;padding:3rem 0}.-esm-patient-chart__visit-context-switcher__tile___VUTyo{margin:auto;margin-top:2rem;width:fit-content}.-esm-patient-chart__visit-context-switcher__tileContent___ZSQN4{display:flex;flex-direction:column;align-items:center}.-esm-patient-chart__visit-context-switcher__content___TnYQq{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252;margin-bottom:.5rem}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/visit/visits-widget/visit-context/visit-context-switcher.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCxDF,kEACE,YAAA,CACA,iBAAA,CACA,wBAAA,CACA,aCYW,CDVX,kIACE,wBAAA,CACA,wIACE,wBAAA,CAIJ,uIACE,wBAAA,CACA,6IACE,wBAAA,CAKN,wEACE,MAAA,CAGF,+DACE,cAAA,CACA,eAAA,CAGF,wEACE,WAAA,CACA,SAAA,CAEA,gFACE,UAAA,CACA,iBAAA,CACA,OAAA,CACA,SAAA,CACA,cAAA,CAIJ,6EACE,YAAA,CACA,kBAAA,CAGF,gFACE,YCvBW,CD0Bb,gEACE,gBC3BW,CD8Bb,mEACE,qBD3DM,CC4DN,cAAA,CAGF,0DACE,WAAA,CACA,eC3BW,CD4BX,iBAAA,CAGF,iEACE,YAAA,CACA,qBAAA,CACA,kBAAA,CAGF,6DEoxBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFlxBF,aDzEQ,CC0ER,mBC5DW",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/colors';\n@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.visitCardRow {\n display: flex;\n position: relative;\n border: solid 1px #e0e0e0;\n padding: layout.$spacing-03;\n\n &.activeVisit {\n background-color: #defbe6;\n &:hover {\n background-color: #b6f6c8;\n }\n }\n\n &.retroactiveVisit {\n background-color: #f4f4f4;\n &:hover {\n background-color: #e5e5e5;\n }\n }\n}\n\n.visitInfoContainer {\n flex: 1;\n}\n\n.visitType {\n font-size: 14px;\n font-weight: 600;\n}\n\n.visitCardRowButton {\n border: none;\n padding: 0;\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n z-index: 1;\n cursor: pointer;\n }\n}\n\n.visitCardRowRadioButton {\n display: flex;\n align-items: center;\n}\n\n.createVisitButtonContainer {\n padding: layout.$spacing-05;\n}\n\n.datepicker {\n padding-top: layout.$spacing-05;\n}\n\n.tileContainer {\n background-color: $ui-02;\n padding: layout.$spacing-09 0;\n}\n\n.tile {\n margin: auto;\n margin-top: layout.$spacing-07;\n width: fit-content;\n}\n\n.tileContent {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.content {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n margin-bottom: layout.$spacing-03;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),o.locals={visitCardRow:"-esm-patient-chart__visit-context-switcher__visitCardRow___U4sL3",activeVisit:"-esm-patient-chart__visit-context-switcher__activeVisit___A1C2o",retroactiveVisit:"-esm-patient-chart__visit-context-switcher__retroactiveVisit___0TB01",visitInfoContainer:"-esm-patient-chart__visit-context-switcher__visitInfoContainer___JwzOf",visitType:"-esm-patient-chart__visit-context-switcher__visitType___AbVs0",visitCardRowButton:"-esm-patient-chart__visit-context-switcher__visitCardRowButton___bIyDq",visitCardRowRadioButton:"-esm-patient-chart__visit-context-switcher__visitCardRowRadioButton___4fA1C",createVisitButtonContainer:"-esm-patient-chart__visit-context-switcher__createVisitButtonContainer___CbNlS",datepicker:"-esm-patient-chart__visit-context-switcher__datepicker___cxai3",tileContainer:"-esm-patient-chart__visit-context-switcher__tileContainer___hVZdQ",tile:"-esm-patient-chart__visit-context-switcher__tile___VUTyo",tileContent:"-esm-patient-chart__visit-context-switcher__tileContent___ZSQN4",content:"-esm-patient-chart__visit-context-switcher__content___TnYQq"};const r=o},14224:(e,n,t)=>{"use strict";t.d(n,{A:()=>r});var i=t(30977),a=t.n(i),s=t(95924),o=t.n(s)()(a());o.push([e.id,".-esm-patient-chart__visit-context-info__visitContextInfoContainer___vuN7e{display:flex;align-items:center;justify-items:center}.-esm-patient-chart__visit-context-info__separator___niAOq,.-esm-patient-chart__visit-context-info__visitLocation___6Vt56{margin:.25rem}","",{version:3,sources:["webpack://./src/visit/visits-widget/visit-context/visit-context-info.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAEA,2EACE,YAAA,CACA,kBAAA,CACA,oBAAA,CAGF,0HAEE,aCMW",sourcesContent:["@use '@carbon/layout';\n\n.visitContextInfoContainer {\n display: flex;\n align-items: center;\n justify-items: center;\n}\n\n.separator,\n.visitLocation {\n margin: layout.$spacing-02;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),o.locals={visitContextInfoContainer:"-esm-patient-chart__visit-context-info__visitContextInfoContainer___vuN7e",separator:"-esm-patient-chart__visit-context-info__separator___niAOq",visitLocation:"-esm-patient-chart__visit-context-info__visitLocation___6Vt56"};const r=o},36848:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},36999:(e,n,t)=>{"use strict";var i=t(36848);function a(){}function s(){}s.resetWarningCache=a,e.exports=function(){function e(e,n,t,a,s,o){if(o!==i){var r=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw r.name="Invariant Violation",r}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:s,resetWarningCache:a};return t.PropTypes=t,t}},39067:(e,n,t)=>{e.exports=t(36999)()},49024:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>D});var i=t(1343),a=t.n(i),s=t(53373),o=t.n(s),r=t(46372),c=t.n(r),p=t(75198),l=t(72339),u=t(54440),d=t(63276),g=t(97821),f=t(63792),h=t(72591),y=t.n(h),b=t(1740),m=t.n(b),$=t(88128),v=t.n($),_=t(30855),w=t.n(_),A=t(93051),x=t.n(A),k=t(73656),C=t.n(k),z=t(10591),M={};M.styleTagTransform=C(),M.setAttributes=w(),M.insert=v().bind(null,"head"),M.domAPI=m(),M.insertStyleElement=x(),y()(z.A,M);const E=z.A&&z.A.locals?z.A.locals:void 0;var N=t(71123);function T(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 B(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,s=[],o=!0,r=!1;try{for(t=t.call(e);!(o=(i=t.next()).done)&&(s.push(i.value),!n||s.length!==n);o=!0);}catch(e){r=!0,a=e}finally{try{o||null==t.return||t.return()}finally{if(r)throw a}}return s}}(e,n)||function(e,n){if(e){if("string"==typeof e)return T(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)?T(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var O=function(e){var n=e.visit,t=e.setSelectedVisit,i=e.isSelected,s=!n.stopDatetime;return a().createElement("div",{className:o()(E.visitCardRow,s?E.activeVisit:E.retroactiveVisit,i?E.isSelected:"")},a().createElement("div",{className:E.visitInfoContainer},a().createElement("div",{className:E.visitType},n.visitType.display),a().createElement("div",{className:E.visitInfo},a().createElement(f.A,{visit:n}))),a().createElement("div",{className:E.visitCardRowRadioButton},a().createElement(p.RadioButton,{className:E.visitRow,id:"visit-card-row-".concat(n.uuid),value:n.uuid,checked:i,labelText:n.visitType.display,onChange:function(e){return t(String(e))}})),a().createElement("button",{className:E.visitCardRowButton,onClick:function(){return t(n.uuid)}}))};const D=function(e){var n,t=e.patientUuid,s=e.closeModal,o=e.onAfterVisitSelected,r=(0,l.useTranslation)().t,f=B((0,i.useState)(new Date),2),h=f[0],y=f[1],b=(0,u.useDebounce)(h),m=(0,g.MX)(t,{toStartDate:c()(b).endOf("day").toISOString()},"custom:(uuid,display,visitType,startDatetime,stopDatetime,location,patient)"),$=m.visits,v=m.isLoading,_=m.error,w=m.hasMore,A=m.loadMore,x=(0,d.usePatientChartStore)(t),k=x.visitContext,C=x.setVisitContext,z=B((0,i.useState)(null!==(n=null==k?void 0:k.uuid)&&void 0!==n?n:null),2),M=z[0],T=z[1],D=(0,N.iX)().mutate,I=(0,i.useCallback)((function(){w&&A()}),[w,A]),S=(0,u.useOnVisible)(I);return a().createElement(a().Fragment,null,a().createElement(p.ModalHeader,{closeModal:s,title:r("selectAVisit","Select a visit")},a().createElement(u.OpenmrsDatePicker,{id:"visit-context-switcher-date-picker",className:E.datepicker,labelText:r("showVisitWithStartDateOnOrPriorTo","Show visit with start date on or prior to:"),maxDate:Date.now(),value:h,onChange:y})),a().createElement(p.ModalBody,null,_?a().createElement(u.ErrorState,{headerTitle:r("visits","visits"),error:_}):0===(null==$?void 0:$.length)?a().createElement(p.Tile,{className:E.tile},a().createElement("div",{className:E.tileContent},a().createElement("p",{className:E.content},r("noVisitsToDisplay","No visits to display")),a().createElement("p",{className:E.helper},r("checkFilters","Check the filters above")))):a().createElement("div",null,null==$?void 0:$.map((function(e){return a().createElement(O,{key:e.uuid,visit:e,setSelectedVisit:T,isSelected:M===e.uuid})})),v?a().createElement(p.InlineLoading,{description:r("loading","Loading")}):a().createElement("span",{ref:S}))),a().createElement("div",{className:E.createVisitButtonContainer},a().createElement(p.Button,{kind:"ghost",size:"sm",onClick:function(){s(),(0,u.launchWorkspace)("start-visit-workspace-form",{openedFrom:"visit-context-switcher"})}},r("createNewVisit","Create new visit..."))),a().createElement(p.ModalFooter,null,a().createElement(p.Button,{kind:"secondary",onClick:s},r("cancel","Cancel")),a().createElement(p.Button,{disabled:null===M||v,onClick:function(){var e=$.find((function(e){return e.uuid===M}));C(e,(function(){return(0,d.invalidateVisitByUuid)(D,e.uuid)})),null==o||o(),s()}},r("continue","Continue"))))}},63792:(e,n,t)=>{"use strict";t.d(n,{A:()=>A});var i=t(49007),a=t(54440),s=t(1343),o=t.n(s),r=t(72339),c=t(72591),p=t.n(c),l=t(1740),u=t.n(l),d=t(88128),g=t.n(d),f=t(30855),h=t.n(f),y=t(93051),b=t.n(y),m=t(73656),$=t.n(m),v=t(14224),_={};_.styleTagTransform=$(),_.setAttributes=h(),_.insert=g().bind(null,"head"),_.domAPI=u(),_.insertStyleElement=b(),p()(v.A,_);const w=v.A&&v.A.locals?v.A.locals:void 0,A=function(e){var n=e.visit,t=(0,r.useTranslation)().t;if(!n)return null;var s=!n.stopDatetime;return o().createElement("div",{className:w.visitContextInfoContainer},o().createElement("span",null,s?t("currentActiveVisit","Current active visit"):t("fromDateToDate","{{fromDate}} - {{toDate}}",{fromDate:(0,a.formatDate)((0,a.parseDate)(n.startDatetime),{time:!1}),toDate:(0,a.formatDate)((0,a.parseDate)(n.stopDatetime),{time:!1})})),o().createElement("span",{className:w.separator},"·"),o().createElement(i.tI,null),o().createElement("span",{className:w.visitLocation},n.location.display))}}}]);
|
package/dist/8454.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"8454.js","mappings":"4JAAA,SAASA,EAAgBC,EAAGC,EAAGC,GAC7B,OAAQD,EA0DV,SAAwBC,GACtB,IAAIC,EAXN,SAAsBD,EAAGD,GACvB,GAA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EAAAA,EAAAA,WAAUvF,EAAMwF,eAAgB,CAAEC,MAAM,IAC7DC,QAAQJ,EAAAA,EAAAA,aAAWC,EAAAA,EAAAA,WAAUvF,EAAMI,cAAe,CAAEqF,MAAM,OAGlE,kBAAChB,OAAAA,CAAKlJ,UAAWgF,EAAOoF,WAAW,KACnC,kBAACC,EAAAA,GAAQA,MACT,kBAACnB,OAAAA,CAAKlJ,UAAWgF,EAAOsF,eAAgB7F,EAAMrC,SAASkD,SAG7D,C","sources":["webpack://@openmrs/esm-patient-chart-app/../../node_modules/@carbon/icon-helpers/es/index.js","webpack://@openmrs/esm-patient-chart-app/../../node_modules/@carbon/icons-react/es/Icon.js","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-switcher.scss","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-info.scss","webpack://@openmrs/esm-patient-chart-app/../../node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://@openmrs/esm-patient-chart-app/../../node_modules/prop-types/factoryWithThrowingShims.js","webpack://@openmrs/esm-patient-chart-app/../../node_modules/prop-types/index.js","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-switcher.scss?277a","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-switcher.modal.tsx","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-info.scss?f4af","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-info.component.tsx"],"names":["_defineProperty","e","r","t","i","Symbol","toPrimitive","call","TypeError","String","_toPrimitive","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","ownKeys","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","push","apply","_objectSpread2","arguments","length","forEach","getOwnPropertyDescriptors","defineProperties","_objectWithoutProperties","n","hasOwnProperty","indexOf","_objectWithoutPropertiesLoose","propertyIsEnumerable","_excluded","_excluded2","defaultAttributes","focusable","preserveAspectRatio","Icon","className","children","tabIndex","xmlns","rest","ref","tabindex","attrs","_ref","undefined","width","height","_ref$viewBox","viewBox","concat","attributes","iconAttributes","title","role","getAttributes","props","Number","displayName","propTypes","___CSS_LOADER_EXPORT___","module","id","locals","exports","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","VisitCardRow","visit","setSelectedVisit","isSelected","isActive","stopDatetime","div","classNames","styles","visitCardRow","activeVisit","retroactiveVisit","visitInfoContainer","visitType","display","visitInfo","VisitContextInfo","visitCardRowRadioButton","RadioButton","visitRow","uuid","checked","labelText","onChange","setSelected","button","visitCardRowButton","onClick","patientUuid","closeModal","onAfterVisitSelected","useTranslation","useState","Date","maxStartDate","setMaxStartDate","maxStartDateDebounced","useDebounce","useInfiniteVisits","toStartDate","dayjs","endOf","toISOString","visits","isLoading","error","hasMore","loadMore","useVisitContextStore","manuallySetVisitUuid","setVisitContext","selectedVisitPatientUuid","selectedVisit","onScrollToEnd","useCallback","useOnVisible","ModalHeader","OpenmrsDatePicker","datepicker","maxDate","now","ModalBody","ErrorState","headerTitle","Tile","tile","tileContent","p","content","helper","map","key","InlineLoading","description","span","createVisitButtonContainer","Button","kind","size","launchWorkspace","openedFrom","ModalFooter","disabled","find","v","visitContextInfoContainer","fromDate","formatDate","parseDate","startDatetime","time","toDate","separator","Building","visitLocation"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"8454.js","mappings":"4JAAA,SAASA,EAAgBC,EAAGC,EAAGC,GAC7B,OAAQD,EA0DV,SAAwBC,GACtB,IAAIC,EAXN,SAAsBD,EAAGD,GACvB,GAAI,iBAAmBC,IAAMA,EAAG,OAAOA,EAC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,2BACrB,kBAACd,OAAAA,KACExE,EACGrH,EAAE,qBAAsB,wBACxBA,EAAE,iBAAkB,4BAA6B,CAC/C4M,UAAUC,EAAAA,EAAAA,aAAWC,EAAAA,EAAAA,WAAU5F,EAAM6F,eAAgB,CAAEC,MAAM,IAC7DC,QAAQJ,EAAAA,EAAAA,aAAWC,EAAAA,EAAAA,WAAU5F,EAAMI,cAAe,CAAE0F,MAAM,OAGlE,kBAACnB,OAAAA,CAAKpJ,UAAWgF,EAAOyF,WAAW,KACnC,kBAACC,EAAAA,GAAQA,MACT,kBAACtB,OAAAA,CAAKpJ,UAAWgF,EAAO2F,eAAgBlG,EAAMrC,SAASkD,SAG7D,C","sources":["webpack://@openmrs/esm-patient-chart-app/../../node_modules/@carbon/icon-helpers/es/index.js","webpack://@openmrs/esm-patient-chart-app/../../node_modules/@carbon/icons-react/es/Icon.js","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-switcher.scss","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-info.scss","webpack://@openmrs/esm-patient-chart-app/../../node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://@openmrs/esm-patient-chart-app/../../node_modules/prop-types/factoryWithThrowingShims.js","webpack://@openmrs/esm-patient-chart-app/../../node_modules/prop-types/index.js","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-switcher.scss?277a","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-switcher.modal.tsx","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-info.scss?f4af","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/visit-context-info.component.tsx"],"names":["_defineProperty","e","r","t","i","Symbol","toPrimitive","call","TypeError","String","_toPrimitive","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","ownKeys","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","push","apply","_objectSpread2","arguments","length","forEach","getOwnPropertyDescriptors","defineProperties","_objectWithoutProperties","n","hasOwnProperty","indexOf","_objectWithoutPropertiesLoose","propertyIsEnumerable","_excluded","_excluded2","defaultAttributes","focusable","preserveAspectRatio","Icon","className","children","tabIndex","xmlns","rest","ref","tabindex","attrs","_ref","undefined","width","height","_ref$viewBox","viewBox","concat","attributes","iconAttributes","title","role","getAttributes","props","Number","displayName","propTypes","___CSS_LOADER_EXPORT___","module","id","locals","exports","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","VisitCardRow","visit","setSelectedVisit","isSelected","isActive","stopDatetime","div","classNames","styles","visitCardRow","activeVisit","retroactiveVisit","visitInfoContainer","visitType","display","visitInfo","VisitContextInfo","visitCardRowRadioButton","RadioButton","visitRow","uuid","checked","labelText","onChange","setSelected","button","visitCardRowButton","onClick","visitContext","patientUuid","closeModal","onAfterVisitSelected","useTranslation","useState","Date","maxStartDate","setMaxStartDate","maxStartDateDebounced","useDebounce","useInfiniteVisits","toStartDate","dayjs","endOf","toISOString","visits","isLoading","error","hasMore","loadMore","usePatientChartStore","setVisitContext","selectedVisitUuid","setSelectedVisitUuid","mutate","useSWRConfig","onScrollToEnd","useCallback","useOnVisible","ModalHeader","OpenmrsDatePicker","datepicker","maxDate","now","ModalBody","ErrorState","headerTitle","Tile","tile","tileContent","p","content","helper","map","key","InlineLoading","description","span","createVisitButtonContainer","Button","kind","size","launchWorkspace","openedFrom","ModalFooter","disabled","selectedVisit","find","v","invalidateVisitByUuid","globalMutate","visitContextInfoContainer","fromDate","formatDate","parseDate","startDatetime","time","toDate","separator","Building","visitLocation"],"sourceRoot":""}
|
package/dist/8618.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[8618],{88618:e=>{e.exports=JSON.parse('{"actions":"Actions","addingToVisit":"Adding to:","additionalVisitInformationUpdatedSuccessfully":"Additional visit information updated successfully","addVisit":"Add visit","all":"All","allEncounters":"All encounters","AM":"AM","cancel":"Cancel","causeOfDeath":"Cause of death","causeOfDeath_lower":"cause of death concepts configured in the system","causeOfDeathIsRequired":"Please select the cause of death","change":"Change","checkFilters":"Check the filters above","confirm":"Confirm","confirmDeleteVisitText":"Deleting this {{visit}} will delete its associated encounters.","confirmModifyingVisitDateToAccomodateEncounter":"The encounter date falls outside the designated visit date range. Would you like to modify the visit date to accommodate the new encounter date?","continue":"Continue","createNewVisit":"Create new visit...","currentActiveVisit":"Current active visit","currentVisit":"Current visit","date":"Date","dateAndTime":"Date & time","dateOfDeath":"Date of death","deathDateRequired":"Please select the date of death","delete":"Delete","deleteActiveVisit":"Delete active visit","deleteEncounter":"Delete encounter","deleteEncounterConfirmationText":"Are you sure you want to delete this encounter? This action can\'t be undone.","deleteThisEncounter":"Delete this encounter","deleteVisit":"Delete visit","deleteVisitDialogHeader":"Are you sure you want to delete this visit?","deletingVisit":"Deleting visit","diagnoses":"Diagnoses","discard":"Discard","discontinued":"Discontinued","dose":"Dose","dosingInstructions":"Dosing Instructions","editEncounter":"Edit","editThisEncounter":"Edit this encounter","editVisitDetails":"Edit visit details","emptyStateText":"There are no {{displayText}} to display for this patient","enable":"Enable","encounter":"Encounter","encounterDeleted":"Encounter deleted","encounters_title":"Encounters","encountersForThisVisit":"encounters for this visit","encounterSuccessfullyDeleted":"The encounter has been deleted successfully","encounterTableActionsMenu":"Encounter table actions menu","encounterType":"Encounter type","encounterWithError":"The encounter could not be deleted successfully. If the error persists, please contact your system administrator.","endActiveVisit":"End active visit","endActiveVisitConfirmation":"Are you sure you want to end this active visit?","endDate":"End date","endDate_title":"End date","endDateTimeRequired":"End date and time are required","ended":"Ended","endTime":"End time","endTimeFormat":"End time format","endTimeMustBeAfterMostRecentEncounter":"End time must be on or after {{lastEncounterDatetime}}","endTimeMustBeAfterStartTime":"End time must be after start time","endVisit_title":"End Visit","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingVisitAttribute":"Could not delete {{attributeName}} attribute","errorDeletingVisit":"Error deleting visit","errorDeletingVisitAttribute":"Could not delete {{attributeName}} attribute","errorEndingVisit":"Error ending visit","errorMarkingPatientAlive":"Error marking patient alive","errorMarkingPatientDeceased":"Error marking patient deceased","errorOccurredDeletingVisit":"An error occurred when deleting visit","errorStartingVisit":"Error starting visit","errorStartingVisitDescription":"An error occurred while starting the visit","errorUpdatingVisitAttribute":"Could not update {{attributeName}} attribute","errorUpdatingVisitDetails":"Error updating visit details","errorWhenRestoringVisit":"Error occurred when restoring {{visit}}","
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[8618],{88618:e=>{e.exports=JSON.parse('{"actions":"Actions","activeVisits__lower":"active visits","addingToVisit":"Adding to:","additionalVisitInformationUpdatedSuccessfully":"Additional visit information updated successfully","addVisit":"Add visit","all":"All","allEncounters":"All encounters","AM":"AM","cancel":"Cancel","causeOfDeath":"Cause of death","causeOfDeath_lower":"cause of death concepts configured in the system","causeOfDeathIsRequired":"Please select the cause of death","change":"Change","checkFilters":"Check the filters above","confirm":"Confirm","confirmDeleteVisitText":"Deleting this {{visit}} will delete its associated encounters.","confirmModifyingVisitDateToAccomodateEncounter":"The encounter date falls outside the designated visit date range. Would you like to modify the visit date to accommodate the new encounter date?","continue":"Continue","createNewVisit":"Create new visit...","currentActiveVisit":"Current active visit","currentVisit":"Current visit","date":"Date","dateAndTime":"Date & time","dateOfDeath":"Date of death","deathDateRequired":"Please select the date of death","delete":"Delete","deleteActiveVisit":"Delete active visit","deleteEncounter":"Delete encounter","deleteEncounterConfirmationText":"Are you sure you want to delete this encounter? This action can\'t be undone.","deleteThisEncounter":"Delete this encounter","deleteVisit":"Delete visit","deleteVisitDialogHeader":"Are you sure you want to delete this visit?","deletingVisit":"Deleting visit","diagnoses":"Diagnoses","discard":"Discard","discontinued":"Discontinued","dose":"Dose","dosingInstructions":"Dosing Instructions","editEncounter":"Edit","editThisEncounter":"Edit this encounter","editVisitDetails":"Edit visit details","emptyStateText":"There are no {{displayText}} to display for this patient","enable":"Enable","encounter":"Encounter","encounterDeleted":"Encounter deleted","encounters_title":"Encounters","encountersForThisVisit":"encounters for this visit","encounterSuccessfullyDeleted":"The encounter has been deleted successfully","encounterTableActionsMenu":"Encounter table actions menu","encounterType":"Encounter type","encounterWithError":"The encounter could not be deleted successfully. If the error persists, please contact your system administrator.","endActiveVisit":"End active visit","endActiveVisitConfirmation":"Are you sure you want to end this active visit?","endDate":"End date","endDate_title":"End date","endDateTimeRequired":"End date and time are required","ended":"Ended","endTime":"End time","endTimeFormat":"End time format","endTimeMustBeAfterMostRecentEncounter":"End time must be on or after {{lastEncounterDatetime}}","endTimeMustBeAfterStartTime":"End time must be after start time","endVisit_title":"End Visit","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingVisitAttribute":"Could not delete {{attributeName}} attribute","errorDeletingVisit":"Error deleting visit","errorDeletingVisitAttribute":"Could not delete {{attributeName}} attribute","errorEndingVisit":"Error ending visit","errorMarkingPatientAlive":"Error marking patient alive","errorMarkingPatientDeceased":"Error marking patient deceased","errorOccurredDeletingVisit":"An error occurred when deleting visit","errorStartingVisit":"Error starting visit","errorStartingVisitDescription":"An error occurred while starting the visit","errorUpdatingVisitAttribute":"Could not update {{attributeName}} attribute","errorUpdatingVisitDetails":"Error updating visit details","errorWhenRestoringVisit":"Error occurred when restoring {{visit}}","fieldRequired":"This field is required","filterByEncounterType":"Filter by encounter type","form":"Form name","fromDateToDate":"{{fromDate}} - {{toDate}}","futureEndTime":"End time cannot be in the future","futureStartTime":"Start time cannot be in the future","indication":"Indication","inThePast":"In the past","loading":"Loading","markAliveSuccessfully":"Patient marked alive successfully","markDeceasedWarning":"Marking the patient as deceased will end any active visits for this patient","markPatientAlive":"Mark patient alive","markPatientAliveConfirmation":"Are you sure you want to mark this patient alive?","markPatientDeceased":"Mark patient deceased","medications":"Medications","medications__lower":"medications","missingVisitType":"Missing visit type","modifyVisitDate":"Modify visit date","new":"New","nextPage":"Next page","no":"No","noActiveVisit":"No Active Visit","noActiveVisitNoRDEText":"You can\'t add data to the patient chart without an active visit. Would you like to start a new visit?","noDiagnosesFound":"No diagnoses found","noEncountersToDisplay":"No encounters to display","noMatchingCodedCausesOfDeath":"No matching coded causes of death","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Please enter the non-coded cause of death","noObservationsFound":"No observations found","noProvider":"No provider","notes":"Notes","notes__lower":"notes","noVisitsToDisplay":"No visits to display","noVisitTypesToDisplay":"No visit types to display","offlineVisit":"Offline Visit","On scheduled date":"On scheduled date","ongoing":"Ongoing","optional":"optional","orderDurationAndUnit":"for {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Indefinite duration","paginationItemsCount_one":"{{pageItemsCount}} / {{count}} item","paginationItemsCount_other":"{{pageItemsCount}} / {{count}} items","paginationPageText_one":"of {{count}} page","paginationPageText_other":"of {{count}} pages","partOfFormDidntLoad":"Part of the form did not load","pastVisits":"Past visits","Patient Summary":"Patient summary","PM":"PM","previousPage":"Previous page","program":"Program","provider":"Provider","quantity":"Quantity","recommended":"Recommended","record":"Record","refills":"Refills","refreshToTryAgain":"Please refresh to try again","required":"Required","Routine":"Routine","saveAndClose":"Save and close","saving":"Saving","searchForAVisitType":"Search for a visit type","searchForCauseOfDeath":"Search for a cause of death","seeAll":"See all","selectAnOption":"Select an option","selectAVisit":"Select a visit","selectLocation":"Select a location","selectProgramType":"Select program type","selectVisitType":"Please select a visit type","showVisitWithStartDateOnOrPriorTo":"Show visit with start date on or prior to:","startDate":"Start date","startingVisit":"Starting visit","startNewVisit":"Start new visit","startTime":"Start time","startTimeFormat":"Start time format","startVisit":"Start visit","startVisitError":"Error starting visit","startVisitWorkspaceTitle":"Start a visit","Stat":"Stat","tests":"Tests","theVisitIs":"The visit is","time":"Time","timeCompleted":"Time completed","timeFormat ":"Time Format","timeline":"Timeline","timeStarted":"Time started","undo":"Undo","unknownError":"Unknown error","updateVisit":"Update visit","updatingVisit":"Updating visit","viewEncounter":"View","visitAttributes":"Visit attributes","visitDeleted":"{{visit}} deleted","visitDeletedSuccessfully":"{{visit}} deleted successfully","visitDetailsUpdated":"Visit details updated","visitDetailsUpdatedSuccessfully":"{{visit}} updated successfully","visitEnded":"Visit ended","visitEndSuccessfully":"Ended current visit successfully","visitLocation":"Visit location","visitLocationRequired":"Visit location is required","visitNotRestored":"Visit couldn\'t be restored","visitRestored":"Visit restored","visitRestoredSuccessfully":"{{visit}} restored successfully","visits":"visits","Visits":"Visits","visitStartAndEndDate":"Visit start and end date","visitStartDate":"Visit start date","visitStartDateMustBeBeforeEarliestEncounter":"Start time must be on or before {{firstEncounterDatetime}}","visitStartDateTimeRequired":"Start date and time are required","visitStarted":"Visit started","visitStartedSuccessfully":"{{visit}} started successfully","visitType":"Visit type","visitType_title":"Visit Type","visitTypeRequired":"Visit type is required","warning":"Warning","yes":"Yes","youCanAddAdditionalEncounters":"You can add additional encounters to this visit in the visit summary."}')}}]);
|
package/dist/890.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[890],{70890:e=>{e.exports=JSON.parse('{"actions":"Actions","addingToVisit":"Adding to:","additionalVisitInformationUpdatedSuccessfully":"Additional visit information updated successfully","addVisit":"Add visit","all":"All","allEncounters":"All encounters","AM":"AM","cancel":"Cancel","causeOfDeath":"Cause of death","causeOfDeath_lower":"cause of death concepts configured in the system","causeOfDeathIsRequired":"Please select the cause of death","change":"Change","checkFilters":"Check the filters above","confirm":"Confirm","confirmDeleteVisitText":"Deleting this {{visit}} will delete its associated encounters.","confirmModifyingVisitDateToAccomodateEncounter":"The encounter date falls outside the designated visit date range. Would you like to modify the visit date to accommodate the new encounter date?","continue":"Continue","createNewVisit":"Create new visit...","currentActiveVisit":"Current active visit","currentVisit":"Current visit","date":"Date","dateAndTime":"Date & time","dateOfDeath":"Date of death","deathDateRequired":"Please select the date of death","delete":"Delete","deleteActiveVisit":"Delete active visit","deleteEncounter":"Delete encounter","deleteEncounterConfirmationText":"Are you sure you want to delete this encounter? This action can\'t be undone.","deleteThisEncounter":"Delete this encounter","deleteVisit":"Delete visit","deleteVisitDialogHeader":"Are you sure you want to delete this visit?","deletingVisit":"Deleting visit","diagnoses":"Diagnoses","discard":"Discard","discontinued":"Discontinued","dose":"Dose","dosingInstructions":"Dosing Instructions","editEncounter":"Edit","editThisEncounter":"Edit this encounter","editVisitDetails":"Edit visit details","emptyStateText":"There are no {{displayText}} to display for this patient","enable":"Enable","encounter":"Encounter","encounterDeleted":"Encounter deleted","encounters_title":"Encounters","encountersForThisVisit":"encounters for this visit","encounterSuccessfullyDeleted":"The encounter has been deleted successfully","encounterTableActionsMenu":"Encounter table actions menu","encounterType":"Encounter type","encounterWithError":"The encounter could not be deleted successfully. If the error persists, please contact your system administrator.","endActiveVisit":"End active visit","endActiveVisitConfirmation":"Are you sure you want to end this active visit?","endDate":"End date","endDate_title":"End date","endDateTimeRequired":"End date and time are required","ended":"Ended","endTime":"End time","endTimeFormat":"End time format","endTimeMustBeAfterMostRecentEncounter":"End time must be on or after {{lastEncounterDatetime}}","endTimeMustBeAfterStartTime":"End time must be after start time","endVisit_title":"End Visit","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingVisitAttribute":"Could not delete {{attributeName}} attribute","errorDeletingVisit":"Error deleting visit","errorDeletingVisitAttribute":"Could not delete {{attributeName}} attribute","errorEndingVisit":"Error ending visit","errorMarkingPatientAlive":"Error marking patient alive","errorMarkingPatientDeceased":"Error marking patient deceased","errorOccurredDeletingVisit":"An error occurred when deleting visit","errorStartingVisit":"Error starting visit","errorStartingVisitDescription":"An error occurred while starting the visit","errorUpdatingVisitAttribute":"Could not update {{attributeName}} attribute","errorUpdatingVisitDetails":"Error updating visit details","errorWhenRestoringVisit":"Error occurred when restoring {{visit}}","
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[890],{70890:e=>{e.exports=JSON.parse('{"actions":"Actions","activeVisits__lower":"active visits","addingToVisit":"Adding to:","additionalVisitInformationUpdatedSuccessfully":"Additional visit information updated successfully","addVisit":"Add visit","all":"All","allEncounters":"All encounters","AM":"AM","cancel":"Cancel","causeOfDeath":"Cause of death","causeOfDeath_lower":"cause of death concepts configured in the system","causeOfDeathIsRequired":"Please select the cause of death","change":"Change","checkFilters":"Check the filters above","confirm":"Confirm","confirmDeleteVisitText":"Deleting this {{visit}} will delete its associated encounters.","confirmModifyingVisitDateToAccomodateEncounter":"The encounter date falls outside the designated visit date range. Would you like to modify the visit date to accommodate the new encounter date?","continue":"Continue","createNewVisit":"Create new visit...","currentActiveVisit":"Current active visit","currentVisit":"Current visit","date":"Date","dateAndTime":"Date & time","dateOfDeath":"Date of death","deathDateRequired":"Please select the date of death","delete":"Delete","deleteActiveVisit":"Delete active visit","deleteEncounter":"Delete encounter","deleteEncounterConfirmationText":"Are you sure you want to delete this encounter? This action can\'t be undone.","deleteThisEncounter":"Delete this encounter","deleteVisit":"Delete visit","deleteVisitDialogHeader":"Are you sure you want to delete this visit?","deletingVisit":"Deleting visit","diagnoses":"Diagnoses","discard":"Discard","discontinued":"Discontinued","dose":"Dose","dosingInstructions":"Dosing Instructions","editEncounter":"Edit","editThisEncounter":"Edit this encounter","editVisitDetails":"Edit visit details","emptyStateText":"There are no {{displayText}} to display for this patient","enable":"Enable","encounter":"Encounter","encounterDeleted":"Encounter deleted","encounters_title":"Encounters","encountersForThisVisit":"encounters for this visit","encounterSuccessfullyDeleted":"The encounter has been deleted successfully","encounterTableActionsMenu":"Encounter table actions menu","encounterType":"Encounter type","encounterWithError":"The encounter could not be deleted successfully. If the error persists, please contact your system administrator.","endActiveVisit":"End active visit","endActiveVisitConfirmation":"Are you sure you want to end this active visit?","endDate":"End date","endDate_title":"End date","endDateTimeRequired":"End date and time are required","ended":"Ended","endTime":"End time","endTimeFormat":"End time format","endTimeMustBeAfterMostRecentEncounter":"End time must be on or after {{lastEncounterDatetime}}","endTimeMustBeAfterStartTime":"End time must be after start time","endVisit_title":"End Visit","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingVisitAttribute":"Could not delete {{attributeName}} attribute","errorDeletingVisit":"Error deleting visit","errorDeletingVisitAttribute":"Could not delete {{attributeName}} attribute","errorEndingVisit":"Error ending visit","errorMarkingPatientAlive":"Error marking patient alive","errorMarkingPatientDeceased":"Error marking patient deceased","errorOccurredDeletingVisit":"An error occurred when deleting visit","errorStartingVisit":"Error starting visit","errorStartingVisitDescription":"An error occurred while starting the visit","errorUpdatingVisitAttribute":"Could not update {{attributeName}} attribute","errorUpdatingVisitDetails":"Error updating visit details","errorWhenRestoringVisit":"Error occurred when restoring {{visit}}","fieldRequired":"This field is required","filterByEncounterType":"Filter by encounter type","form":"Form name","fromDateToDate":"{{fromDate}} - {{toDate}}","futureEndTime":"End time cannot be in the future","futureStartTime":"Start time cannot be in the future","indication":"Indication","inThePast":"In the past","loading":"Loading","markAliveSuccessfully":"Patient marked alive successfully","markDeceasedWarning":"Marking the patient as deceased will end any active visits for this patient","markPatientAlive":"Mark patient alive","markPatientAliveConfirmation":"Are you sure you want to mark this patient alive?","markPatientDeceased":"Mark patient deceased","medications":"Medications","medications__lower":"medications","missingVisitType":"Missing visit type","modifyVisitDate":"Modify visit date","new":"New","nextPage":"Next page","no":"No","noActiveVisit":"No Active Visit","noActiveVisitNoRDEText":"You can\'t add data to the patient chart without an active visit. Would you like to start a new visit?","noDiagnosesFound":"No diagnoses found","noEncountersToDisplay":"No encounters to display","noMatchingCodedCausesOfDeath":"No matching coded causes of death","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Please enter the non-coded cause of death","noObservationsFound":"No observations found","noProvider":"No provider","notes":"Notes","notes__lower":"notes","noVisitsToDisplay":"No visits to display","noVisitTypesToDisplay":"No visit types to display","offlineVisit":"Offline Visit","On scheduled date":"On scheduled date","ongoing":"Ongoing","optional":"optional","orderDurationAndUnit":"for {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Indefinite duration","paginationItemsCount_one":"{{pageItemsCount}} / {{count}} item","paginationItemsCount_other":"{{pageItemsCount}} / {{count}} items","paginationPageText_one":"of {{count}} page","paginationPageText_other":"of {{count}} pages","partOfFormDidntLoad":"Part of the form did not load","pastVisits":"Past visits","Patient Summary":"Patient summary","PM":"PM","previousPage":"Previous page","program":"Program","provider":"Provider","quantity":"Quantity","recommended":"Recommended","record":"Record","refills":"Refills","refreshToTryAgain":"Please refresh to try again","required":"Required","Routine":"Routine","saveAndClose":"Save and close","saving":"Saving","searchForAVisitType":"Search for a visit type","searchForCauseOfDeath":"Search for a cause of death","seeAll":"See all","selectAnOption":"Select an option","selectAVisit":"Select a visit","selectLocation":"Select a location","selectProgramType":"Select program type","selectVisitType":"Please select a visit type","showVisitWithStartDateOnOrPriorTo":"Show visit with start date on or prior to:","startDate":"Start date","startingVisit":"Starting visit","startNewVisit":"Start new visit","startTime":"Start time","startTimeFormat":"Start time format","startVisit":"Start visit","startVisitError":"Error starting visit","startVisitWorkspaceTitle":"Start a visit","Stat":"Stat","tests":"Tests","theVisitIs":"The visit is","time":"Time","timeCompleted":"Time completed","timeFormat ":"Time Format","timeline":"Timeline","timeStarted":"Time started","undo":"Undo","unknownError":"Unknown error","updateVisit":"Update visit","updatingVisit":"Updating visit","viewEncounter":"View","visitAttributes":"Visit attributes","visitDeleted":"{{visit}} deleted","visitDeletedSuccessfully":"{{visit}} deleted successfully","visitDetailsUpdated":"Visit details updated","visitDetailsUpdatedSuccessfully":"{{visit}} updated successfully","visitEnded":"Visit ended","visitEndSuccessfully":"Ended current visit successfully","visitLocation":"Visit location","visitLocationRequired":"Visit location is required","visitNotRestored":"Visit couldn\'t be restored","visitRestored":"Visit restored","visitRestoredSuccessfully":"{{visit}} restored successfully","visits":"visits","Visits":"Visits","visitStartAndEndDate":"Visit start and end date","visitStartDate":"Visit start date","visitStartDateMustBeBeforeEarliestEncounter":"Start time must be on or before {{firstEncounterDatetime}}","visitStartDateTimeRequired":"Start date and time are required","visitStarted":"Visit started","visitStartedSuccessfully":"{{visit}} started successfully","visitType":"Visit type","visitType_title":"Visit Type","visitTypeRequired":"Visit type is required","warning":"Warning","yes":"Yes","youCanAddAdditionalEncounters":"You can add additional encounters to this visit in the visit summary."}')}}]);
|
package/dist/9214.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[9214],{79214:t=>{t.exports=JSON.parse('{"actions":"Actions","addingToVisit":"Adding to:","additionalVisitInformationUpdatedSuccessfully":"Additional visit information updated successfully","addVisit":"Add visit","all":"Tất cả","allEncounters":"Tất cả cuộc gặp","AM":"AM","cancel":"Hủy","causeOfDeath":"Nguyên nhân tử vong","causeOfDeath_lower":"nguyên nhân của các khái niệm tử vong được cấu hình trong hệ thống","causeOfDeathIsRequired":"Vui lòng chọn nguyên nhân tử vong","change":"Change","checkFilters":"Kiểm tra các bộ lọc ở trên","confirm":"Xác nhận","confirmDeleteVisitText":"Deleting this {{visit}} will delete its associated encounters.","confirmModifyingVisitDateToAccomodateEncounter":"Ngày gặp mặt nằm ngoài phạm vi ngày thăm khám được chỉ định. Bạn có muốn thay đổi ngày thăm khám để phù hợp với ngày gặp mặt mới không?","continue":"Continue","createNewVisit":"Create new visit...","currentActiveVisit":"Current active visit","currentVisit":"Lượt khám hiện tại","date":"Ngày","dateAndTime":"Ngày & giờ","dateOfDeath":"Ngày tử vong","deathDateRequired":"Vui lòng chọn ngày mất","delete":"Xóa","deleteActiveVisit":"Delete active visit","deleteEncounter":"Xóa cuộc gặp","deleteEncounterConfirmationText":"Bạn có chắc chắn muốn xóa cuộc gặp gỡ này không? Không thể hoàn tác hành động này.","deleteThisEncounter":"Xóa cuộc gặp gỡ này","deleteVisit":"Xóa lượt khám","deleteVisitDialogHeader":"Are you sure you want to delete this visit?","deletingVisit":"Đang xóa lượt khám","diagnoses":"Chẩn đoán","discard":"Hủy bỏ","discontinued":"Discontinued","dose":"Liều lượng","dosingInstructions":"Dosing Instructions","editEncounter":"Edit","editThisEncounter":"Chỉnh sửa cuộc gặp gỡ này","editVisitDetails":"Chỉnh sửa chi tiết lượt khám","emptyStateText":"Không có {{displayText}} để hiển thị cho bệnh nhân này","enable":"Enable","encounter":"Encounter","encounterDeleted":"Cuộc gặp gỡ đã xóa","encounters_title":"Cuộc gặp","encountersForThisVisit":"encounters for this visit","encounterSuccessfullyDeleted":"The encounter has been deleted successfully","encounterTableActionsMenu":"Encounter table actions menu","encounterType":"Loại gặp gỡ","encounterWithError":"The encounter could not be deleted successfully. If the error persists, please contact your system administrator.","endActiveVisit":"End active visit","endActiveVisitConfirmation":"Bạn có chắc chắn muốn kết thúc lượt khám hiện tại này không?","endDate":"Ngày kết thúc","endDate_title":"Ngày kết thúc","endDateTimeRequired":"End date and time are required","ended":"Ended","endTime":"End time","endTimeFormat":"End time format","endTimeMustBeAfterMostRecentEncounter":"End time must be on or after {{lastEncounterDatetime}}","endTimeMustBeAfterStartTime":"End time must be after start time","endVisit_title":"Kết thúc lượt khám","enterNonCodedCauseOfDeath":"Nhập nguyên nhân tử vong không được mã hóa","error":"Lỗi","errorCopy":"Xin lỗi, đã xảy ra sự cố khi hiển thị thông tin này. Bạn có thể thử tải lại trang này hoặc liên hệ với quản trị viên trang web và trích dẫn mã lỗi ở trên.","errorCreatingVisitAttribute":"Không thể xóa thuộc tính {{attributeName}}","errorDeletingVisit":"Lỗi xóa lượt khám","errorDeletingVisitAttribute":"Không thể xóa thuộc tính {{attributeName}}","errorEndingVisit":"Lỗi kết thúc lượt truy cập","errorMarkingPatientAlive":"Lỗi đánh dấu bệnh nhân còn sống","errorMarkingPatientDeceased":"Lỗi đánh dấu bệnh nhân đã chết","errorOccurredDeletingVisit":"An error occurred when deleting visit","errorStartingVisit":"Error starting visit","errorStartingVisitDescription":"An error occurred while starting the visit","errorUpdatingVisitAttribute":"Không thể cập nhật thuộc tính {{attributeName}}","errorUpdatingVisitDetails":"Lỗi cập nhật chi tiết lượt khám","errorWhenRestoringVisit":"Error occurred when restoring {{visit}}","
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[9214],{79214:t=>{t.exports=JSON.parse('{"actions":"Actions","activeVisits__lower":"active visits","addingToVisit":"Adding to:","additionalVisitInformationUpdatedSuccessfully":"Additional visit information updated successfully","addVisit":"Add visit","all":"Tất cả","allEncounters":"Tất cả cuộc gặp","AM":"AM","cancel":"Hủy","causeOfDeath":"Nguyên nhân tử vong","causeOfDeath_lower":"nguyên nhân của các khái niệm tử vong được cấu hình trong hệ thống","causeOfDeathIsRequired":"Vui lòng chọn nguyên nhân tử vong","change":"Change","checkFilters":"Kiểm tra các bộ lọc ở trên","confirm":"Xác nhận","confirmDeleteVisitText":"Deleting this {{visit}} will delete its associated encounters.","confirmModifyingVisitDateToAccomodateEncounter":"Ngày gặp mặt nằm ngoài phạm vi ngày thăm khám được chỉ định. Bạn có muốn thay đổi ngày thăm khám để phù hợp với ngày gặp mặt mới không?","continue":"Continue","createNewVisit":"Create new visit...","currentActiveVisit":"Current active visit","currentVisit":"Lượt khám hiện tại","date":"Ngày","dateAndTime":"Ngày & giờ","dateOfDeath":"Ngày tử vong","deathDateRequired":"Vui lòng chọn ngày mất","delete":"Xóa","deleteActiveVisit":"Delete active visit","deleteEncounter":"Xóa cuộc gặp","deleteEncounterConfirmationText":"Bạn có chắc chắn muốn xóa cuộc gặp gỡ này không? Không thể hoàn tác hành động này.","deleteThisEncounter":"Xóa cuộc gặp gỡ này","deleteVisit":"Xóa lượt khám","deleteVisitDialogHeader":"Are you sure you want to delete this visit?","deletingVisit":"Đang xóa lượt khám","diagnoses":"Chẩn đoán","discard":"Hủy bỏ","discontinued":"Discontinued","dose":"Liều lượng","dosingInstructions":"Dosing Instructions","editEncounter":"Edit","editThisEncounter":"Chỉnh sửa cuộc gặp gỡ này","editVisitDetails":"Chỉnh sửa chi tiết lượt khám","emptyStateText":"Không có {{displayText}} để hiển thị cho bệnh nhân này","enable":"Enable","encounter":"Encounter","encounterDeleted":"Cuộc gặp gỡ đã xóa","encounters_title":"Cuộc gặp","encountersForThisVisit":"encounters for this visit","encounterSuccessfullyDeleted":"The encounter has been deleted successfully","encounterTableActionsMenu":"Encounter table actions menu","encounterType":"Loại gặp gỡ","encounterWithError":"The encounter could not be deleted successfully. If the error persists, please contact your system administrator.","endActiveVisit":"End active visit","endActiveVisitConfirmation":"Bạn có chắc chắn muốn kết thúc lượt khám hiện tại này không?","endDate":"Ngày kết thúc","endDate_title":"Ngày kết thúc","endDateTimeRequired":"End date and time are required","ended":"Ended","endTime":"End time","endTimeFormat":"End time format","endTimeMustBeAfterMostRecentEncounter":"End time must be on or after {{lastEncounterDatetime}}","endTimeMustBeAfterStartTime":"End time must be after start time","endVisit_title":"Kết thúc lượt khám","enterNonCodedCauseOfDeath":"Nhập nguyên nhân tử vong không được mã hóa","error":"Lỗi","errorCopy":"Xin lỗi, đã xảy ra sự cố khi hiển thị thông tin này. Bạn có thể thử tải lại trang này hoặc liên hệ với quản trị viên trang web và trích dẫn mã lỗi ở trên.","errorCreatingVisitAttribute":"Không thể xóa thuộc tính {{attributeName}}","errorDeletingVisit":"Lỗi xóa lượt khám","errorDeletingVisitAttribute":"Không thể xóa thuộc tính {{attributeName}}","errorEndingVisit":"Lỗi kết thúc lượt truy cập","errorMarkingPatientAlive":"Lỗi đánh dấu bệnh nhân còn sống","errorMarkingPatientDeceased":"Lỗi đánh dấu bệnh nhân đã chết","errorOccurredDeletingVisit":"An error occurred when deleting visit","errorStartingVisit":"Error starting visit","errorStartingVisitDescription":"An error occurred while starting the visit","errorUpdatingVisitAttribute":"Không thể cập nhật thuộc tính {{attributeName}}","errorUpdatingVisitDetails":"Lỗi cập nhật chi tiết lượt khám","errorWhenRestoringVisit":"Error occurred when restoring {{visit}}","fieldRequired":"This field is required","filterByEncounterType":"Lọc theo loại cuộc gặp gỡ","form":"Tên biểu mẫu","fromDateToDate":"{{fromDate}} - {{toDate}}","futureEndTime":"End time cannot be in the future","futureStartTime":"Start time cannot be in the future","indication":"Chỉ định","inThePast":"In the past","loading":"Đang tải","markAliveSuccessfully":"Patient marked alive successfully","markDeceasedWarning":"Đánh dấu bệnh nhân là đã chết sẽ kết thúc mọi cuộc thăm khám đang hoạt động của bệnh nhân này","markPatientAlive":"Đánh dấu bệnh nhân còn sống","markPatientAliveConfirmation":"Bạn có chắc chắn muốn đánh dấu bệnh nhân này còn sống không?","markPatientDeceased":"Đánh dấu bệnh nhân đã chết","medications":"Thuốc","medications__lower":"thuốc","missingVisitType":"Loại chuyến thăm khám bị thiếu","modifyVisitDate":"Sửa đổi ngày thăm khám","new":"New","nextPage":"Next page","no":"Không","noActiveVisit":"Không có chuyến thăm khám nào hoạt động","noActiveVisitNoRDEText":"Bạn không thể thêm dữ liệu vào biểu đồ bệnh nhân nếu không có chuyến thăm khám đang hoạt động. Bạn có muốn bắt đầu một chuyến thăm khám mới không?","noDiagnosesFound":"Không tìm thấy chẩn đoán","noEncountersToDisplay":"Không có cuộc gặp gỡ nào để hiển thị","noMatchingCodedCausesOfDeath":"Không có nguyên nhân tử vong được mã hóa phù hợp","nonCodedCauseOfDeath":"Nguyên nhân tử vong không được mã hóa","nonCodedCauseOfDeathRequired":"Vui lòng nhập nguyên nhân tử vong không được mã hóa","noObservationsFound":"Không tìm thấy quan sát nào","noProvider":"No provider","notes":"Ghi chú","notes__lower":"ghi chú","noVisitsToDisplay":"No visits to display","noVisitTypesToDisplay":"Không có loại thăm khám nào để hiển thị","offlineVisit":"Offline Visit","On scheduled date":"On scheduled date","ongoing":"Ongoing","optional":"tùy chọn","orderDurationAndUnit":"cho {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Thời hạn không xác định","paginationItemsCount_one":"{{pageItemsCount}} / {{count}} mục","paginationItemsCount_other":"{{pageItemsCount}} / {{count}} mục","paginationPageText_one":"của {{count}} trang","paginationPageText_other":"của {{count}} trang","partOfFormDidntLoad":"Một phần của biểu mẫu không tải được","pastVisits":"Past visits","Patient Summary":"Tóm tắt bệnh nhân","PM":"PM","previousPage":"Previous page","program":"Chương trình","provider":"Nhà cung cấp","quantity":"Số lượng","recommended":"Gợi ý","record":"Ghi","refills":"Nạp lại","refreshToTryAgain":"Vui lòng làm mới để thử lại","required":"Yêu cầu","Routine":"Routine","saveAndClose":"Lưu và đóng","saving":"Đang lưu","searchForAVisitType":"Tìm kiếm loại chuyến thăm khám","searchForCauseOfDeath":"Tìm kiếm nguyên nhân tử vong","seeAll":"Xem tất cả","selectAnOption":"Chọn một tùy chọn","selectAVisit":"Select a visit","selectLocation":"Chọn một vị trí","selectProgramType":"Chọn loại chương trình","selectVisitType":"Vui lòng chọn loại thăm khám","showVisitWithStartDateOnOrPriorTo":"Show visit with start date on or prior to:","startDate":"Start date","startingVisit":"Bắt đầu khám","startNewVisit":"Bắt đầu lượt khám mới","startTime":"Start time","startTimeFormat":"Start time format","startVisit":"Bắt đầu lượt khám","startVisitError":"Lỗi khi bắt đầu lượt khám","startVisitWorkspaceTitle":"Start a visit","Stat":"Stat","tests":"Kiểm tra","theVisitIs":"The visit is","time":"Time","timeCompleted":"Time completed","timeFormat ":"Time Format","timeline":"Timeline","timeStarted":"Time started","undo":"Hoàn tác","unknownError":"Unknown error","updateVisit":"Cập nhật lượt thăm khám","updatingVisit":"Đang cập nhật lượt thăm khám","viewEncounter":"View","visitAttributes":"Thuộc tính thăm khám","visitDeleted":"{{ghé thăm}} đã bị xóa","visitDeletedSuccessfully":"{{visit}} đã xóa thành công","visitDetailsUpdated":"Đã cập nhật chi tiết chuyến thăm khám","visitDetailsUpdatedSuccessfully":"{{visit}} đã cập nhật thành công","visitEnded":"Chuyến thăm khám đã kết thúc","visitEndSuccessfully":"Đã kết thúc chuyến thăm khám hiện tại thành công","visitLocation":"Địa điểm khám","visitLocationRequired":"Visit location is required","visitNotRestored":"Không thể khôi phục lại chuyến thăm khám","visitRestored":"Đã khôi phục lượt khám","visitRestoredSuccessfully":"{{visit}} đã được khôi phục thành công","visits":"lượt khám","Visits":"Lượt khám","visitStartAndEndDate":"Visit start and end date","visitStartDate":"Visit start date","visitStartDateMustBeBeforeEarliestEncounter":"Start time must be on or before {{firstEncounterDatetime}}","visitStartDateTimeRequired":"Start date and time are required","visitStarted":"Đã bắt đầu chuyến thăm khám","visitStartedSuccessfully":"{{visit}} đã bắt đầu thành công","visitType":"Loại thăm khám","visitType_title":"Loại thăm khám","visitTypeRequired":"Visit type is required","warning":"Cảnh báo","yes":"Có","youCanAddAdditionalEncounters":"You can add additional encounters to this visit in the visit summary."}')}}]);
|