@openmrs/esm-patient-chart-app 11.3.1-pre.9294 → 11.3.1-pre.9296

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/.turbo/turbo-build.log +9 -9
  2. package/dist/276.js +1 -1
  3. package/dist/276.js.map +1 -1
  4. package/dist/2761.js +1 -1
  5. package/dist/2761.js.map +1 -1
  6. package/dist/2859.js +1 -1
  7. package/dist/2859.js.map +1 -1
  8. package/dist/3119.js +1 -1
  9. package/dist/3119.js.map +1 -1
  10. package/dist/4300.js +1 -1
  11. package/dist/4727.js +1 -1
  12. package/dist/4727.js.map +1 -1
  13. package/dist/5048.js +1 -1
  14. package/dist/5048.js.map +1 -1
  15. package/dist/6568.js +1 -0
  16. package/dist/6568.js.map +1 -0
  17. package/dist/8260.js +1 -0
  18. package/dist/8260.js.map +1 -0
  19. package/dist/8454.js +1 -1
  20. package/dist/8454.js.map +1 -1
  21. package/dist/9329.js +1 -0
  22. package/dist/9329.js.map +1 -0
  23. package/dist/main.js +1 -1
  24. package/dist/main.js.map +1 -1
  25. package/dist/openmrs-esm-patient-chart-app.js +1 -1
  26. package/dist/openmrs-esm-patient-chart-app.js.buildmanifest.json +100 -100
  27. package/dist/openmrs-esm-patient-chart-app.js.map +1 -1
  28. package/dist/routes.json +1 -1
  29. package/package.json +2 -2
  30. package/src/actions-buttons/delete-visit.component.tsx +8 -3
  31. package/src/actions-buttons/stop-visit.component.tsx +1 -1
  32. package/src/clinical-views/encounter-list/{encounter-list-tabs.component.tsx → encounter-list-tabs.extension.tsx} +10 -6
  33. package/src/index.ts +4 -4
  34. package/src/mark-patient-deceased/mark-patient-deceased-form.test.tsx +2 -0
  35. package/src/patient-banner-tags/{visit-attribute-tags.component.tsx → visit-attribute-tags.extension.tsx} +6 -4
  36. package/src/patient-chart/patient-chart.component.tsx +39 -65
  37. package/src/patient-chart/patient-chart.resources.ts +108 -0
  38. package/src/visit/hooks/useDeleteVisit.test.tsx +39 -42
  39. package/src/visit/hooks/useDeleteVisit.tsx +33 -17
  40. package/src/visit/visit-form/visit-form.test.tsx +3 -9
  41. package/src/visit/visit-form/visit-form.workspace.tsx +17 -7
  42. package/src/visit/visit-prompt/delete-visit-dialog.component.tsx +10 -4
  43. package/src/visit/visit-prompt/delete-visit-dialog.test.tsx +20 -2
  44. package/src/visit/visit-prompt/end-visit-dialog.component.tsx +7 -1
  45. package/src/visit/visit-prompt/end-visit-dialog.test.tsx +19 -0
  46. package/src/visit/visits-widget/active-visit-buttons/active-visit-buttons.tsx +7 -6
  47. package/src/visit/visits-widget/{current-visit-summary.component.tsx → current-visit-summary.extension.tsx} +13 -20
  48. package/src/visit/visits-widget/current-visit-summary.test.tsx +45 -25
  49. package/src/visit/visits-widget/past-visits-components/encounters-table/encounters-table.component.tsx +4 -3
  50. package/src/visit/visits-widget/past-visits-components/encounters-table/encounters-table.resource.ts +0 -1
  51. package/src/visit/visits-widget/visit-context/retrospective-data-date-time-picker/retrospective-date-time-picker.component.tsx +6 -8
  52. package/src/visit/visits-widget/visit-context/{visit-context-header.component.tsx → visit-context-header.extension.tsx} +17 -15
  53. package/src/visit/visits-widget/visit-context/visit-context-header.test.tsx +35 -29
  54. package/src/visit/visits-widget/visit-context/visit-context-switcher.modal.tsx +13 -11
  55. package/src/visit/visits-widget/visit-context/visit-context-switcher.test.tsx +50 -30
  56. package/src/visit/visits-widget/visit.resource.tsx +1 -1
  57. package/translations/en.json +1 -3
  58. package/dist/2442.js +0 -1
  59. package/dist/2442.js.map +0 -1
  60. package/dist/3042.js +0 -1
  61. package/dist/3042.js.map +0 -1
  62. package/dist/4713.js +0 -1
  63. package/dist/4713.js.map +0 -1
@@ -8,20 +8,20 @@ assets by path *.js 4.8 MiB
8
8
  asset 7816.js 643 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
9
9
  + 13 assets
10
10
  + 71 assets
11
- assets by path *.json 46.9 KiB
11
+ assets by path *.json 47 KiB
12
12
  asset openmrs-esm-patient-chart-app.js.buildmanifest.json 42.4 KiB [emitted]
13
13
  asset routes.json 4.56 KiB [emitted] [from: src/routes.json] [copied]
14
- orphan modules 9.67 MiB [orphan] 3181 modules
14
+ orphan modules 9.68 MiB [orphan] 3182 modules
15
15
  runtime modules 47.6 KiB 28 modules
16
16
  built modules 11.2 MiB (javascript) 588 bytes (share-init) 588 bytes (consume-shared) [built]
17
17
  modules by path ../../node_modules/ 9.6 MiB 559 modules
18
- modules by path ./ 1.33 MiB
18
+ modules by path ./ 1.34 MiB
19
19
  javascript modules 1.02 MiB 54 modules
20
20
  optional modules 321 KiB [optional] 39 modules
21
21
  provide-module modules 588 bytes 14 modules
22
22
  consume-shared-module modules 588 bytes 14 modules
23
- modules by path ../esm-patient-common-lib/src/ 226 KiB
24
- ../esm-patient-common-lib/src/index.ts + 37 modules 98 KiB [built] [code generated]
23
+ modules by path ../esm-patient-common-lib/src/ 228 KiB
24
+ ../esm-patient-common-lib/src/index.ts + 37 modules 100 KiB [built] [code generated]
25
25
  ../../node_modules/@openmrs/webpack-config/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!../esm-patient-common-lib/src/cards/card-header.scss 31.4 KiB [built] [code generated]
26
26
  + 3 modules
27
27
  container entry 42 bytes [built] [code generated]
@@ -29,15 +29,15 @@ built modules 11.2 MiB (javascript) 588 bytes (share-init) 588 bytes (consume-sh
29
29
  WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
30
30
  This can impact web performance.
31
31
  Assets:
32
- main.js (349 KiB)
32
+ main.js (350 KiB)
33
33
  7816.js (643 KiB)
34
- 2442.js (337 KiB)
34
+ 9329.js (338 KiB)
35
35
  1815.js (1.94 MiB)
36
36
 
37
37
  WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
38
38
  Entrypoints:
39
- main (349 KiB)
39
+ main (350 KiB)
40
40
  main.js
41
41
  
42
42
 
43
- webpack 5.99.9 compiled with 2 warnings in 152977 ms
43
+ webpack 5.99.9 compiled with 2 warnings in 160940 ms
package/dist/276.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[276],{10276:(n,e,t)=>{t.r(e),t.d(e,{default:()=>x});var a=t(1343),i=t.n(a),o=t(72339),s=t(75198),l=t(54440),p=t(72591),r=t.n(p),c=t(1740),d=t.n(c),f=t(88128),u=t.n(f),h=t(30855),g=t.n(h),y=t(93051),b=t.n(y),$=t(73656),m=t.n($),v=t(29533),w={};w.styleTagTransform=m(),w.setAttributes=g(),w.insert=u().bind(null,"head"),w.domAPI=d(),w.insertStyleElement=b(),r()(v.A,w);const k=v.A&&v.A.locals?v.A.locals:void 0,x=function(n){var e=n.patientUuid,t=n.closeModal,a=(0,o.useTranslation)().t,p=(0,l.useVisit)(e),r=p.activeVisit,c=p.mutate;return i().createElement("div",null,i().createElement(s.ModalHeader,{closeModal:t,title:a("endActiveVisitConfirmation","Are you sure you want to end this active visit?")}),i().createElement(s.ModalBody,null,i().createElement("p",{className:k.bodyShort02},a("youCanAddAdditionalEncounters","You can add additional encounters to this visit in the visit summary."))),i().createElement(s.ModalFooter,null,i().createElement(s.Button,{kind:"secondary",onClick:t},a("cancel","Cancel")),i().createElement(s.Button,{kind:"danger",onClick:function(){if(r){var n={stopDatetime:new Date},e=new AbortController;(0,l.updateVisit)(r.uuid,n,e).then((function(n){var e,i;c(),window.dispatchEvent(new CustomEvent("queue-entry-updated")),t(),(0,l.showSnackbar)({isLowContrast:!0,kind:"success",subtitle:a("visitEndSuccessfully","".concat(null==n||null===(i=n.data)||void 0===i||null===(e=i.visitType)||void 0===e?void 0:e.display," ended successfully")),title:a("visitEnded","Visit ended")})})).catch((function(n){(0,l.showSnackbar)({title:a("errorEndingVisit","Error ending visit"),kind:"error",isLowContrast:!1,subtitle:null==n?void 0:n.message})}))}}},a("endVisit_title","End Visit"))))}},29533:(n,e,t)=>{t.d(e,{A:()=>l});var a=t(30977),i=t.n(a),o=t(95924),s=t.n(o)()(i());s.push([n.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__end-visit-dialog__bodyShort02___XB3Mu{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0);color:#161616}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/visit/visit-prompt/end-visit-dialog.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,CC1DF,2DC+1BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD71BF,aDCM",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/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.bodyShort02 {\n @include type.type-style('body-compact-02');\n color: $ui-05;\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:""}]),s.locals={bodyShort02:"-esm-patient-chart__end-visit-dialog__bodyShort02___XB3Mu"};const l=s}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[276],{10276:(n,e,t)=>{t.r(e),t.d(e,{default:()=>z});var a=t(1343),i=t.n(a),o=t(72339),s=t(75198),l=t(54440),p=t(63276),r=t(72591),c=t.n(r),d=t(1740),u=t.n(d),f=t(88128),h=t.n(f),g=t(30855),y=t.n(g),b=t(93051),$=t.n(b),m=t(73656),v=t.n(m),w=t(29533),k={};k.styleTagTransform=v(),k.setAttributes=y(),k.insert=h().bind(null,"head"),k.domAPI=u(),k.insertStyleElement=$(),c()(w.A,k);const x=w.A&&w.A.locals?w.A.locals:void 0,z=function(n){var e=n.patientUuid,t=n.closeModal,a=(0,o.useTranslation)().t,r=(0,l.useVisit)(e),c=r.activeVisit,d=r.mutate,u=(0,p.usePatientChartStore)(e),f=u.visitContext,h=u.setVisitContext;return i().createElement("div",null,i().createElement(s.ModalHeader,{closeModal:t,title:a("endActiveVisitConfirmation","Are you sure you want to end this active visit?")}),i().createElement(s.ModalBody,null,i().createElement("p",{className:x.bodyShort02},a("youCanAddAdditionalEncounters","You can add additional encounters to this visit in the visit summary."))),i().createElement(s.ModalFooter,null,i().createElement(s.Button,{kind:"secondary",onClick:t},a("cancel","Cancel")),i().createElement(s.Button,{kind:"danger",onClick:function(){if(c){var n={stopDatetime:new Date},e=new AbortController;(0,l.updateVisit)(c.uuid,n,e).then((function(n){var e,i;d(),window.dispatchEvent(new CustomEvent("queue-entry-updated")),t(),(null==f?void 0:f.uuid)===c.uuid&&h(null,null),(0,l.showSnackbar)({isLowContrast:!0,kind:"success",subtitle:a("visitEndSuccessfully","".concat(null==n||null===(i=n.data)||void 0===i||null===(e=i.visitType)||void 0===e?void 0:e.display," ended successfully")),title:a("visitEnded","Visit ended")})})).catch((function(n){(0,l.showSnackbar)({title:a("errorEndingVisit","Error ending visit"),kind:"error",isLowContrast:!1,subtitle:null==n?void 0:n.message})}))}}},a("endVisit_title","End Visit"))))}},29533:(n,e,t)=>{t.d(e,{A:()=>l});var a=t(30977),i=t.n(a),o=t(95924),s=t.n(o)()(i());s.push([n.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__end-visit-dialog__bodyShort02___XB3Mu{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0);color:#161616}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/visit/visit-prompt/end-visit-dialog.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,CC1DF,2DC+1BI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD71BF,aDCM",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/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.bodyShort02 {\n @include type.type-style('body-compact-02');\n color: $ui-05;\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:""}]),s.locals={bodyShort02:"-esm-patient-chart__end-visit-dialog__bodyShort02___XB3Mu"};const l=s}}]);
package/dist/276.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"276.js","mappings":"oXAWIA,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKnB,QAAe,KAAW,IAAQM,OAAS,IAAQA,YAASC,ECiDnE,EA3DsD,Y,IAAGC,EAAAA,EAAAA,YAAaC,EAAAA,EAAAA,WAC9D,GAAQC,EAAAA,EAAAA,kBAANC,EACwBC,GAAAA,EAAAA,EAAAA,UAASJ,GAAjCK,EAAwBD,EAAxBC,YAAaC,EAAWF,EAAXE,OAkCrB,OACE,kBAACC,MAAAA,KACC,kBAACC,EAAAA,YAAWA,CACVP,WAAYA,EACZQ,MAAON,EAAE,6BAA8B,qDAEzC,kBAACO,EAAAA,UAASA,KACR,kBAACC,IAAAA,CAAEC,UAAWC,EAAOC,aAClBX,EAAE,gCAAiC,2EAGxC,kBAACY,EAAAA,YAAWA,KACV,kBAACC,EAAAA,OAAMA,CAACC,KAAK,YAAYC,QAASjB,GAC/BE,EAAE,SAAU,WAEf,kBAACa,EAAAA,OAAMA,CAACC,KAAK,SAASC,QA/CL,WACrB,GAAIb,EAAa,CACf,IAAMc,EAAkB,CACtBC,aAAc,IAAIC,MAGdC,EAAkB,IAAIC,iBAE5BC,EAAAA,EAAAA,aAAYnB,EAAYoB,KAAMN,EAAiBG,GAC5CI,MAAK,SAACC,G,IAQoCA,EAAAA,EAPzCrB,IACAsB,OAAOC,cAAc,IAAIC,YAAY,wBACrC7B,KAEA8B,EAAAA,EAAAA,cAAa,CACXC,eAAe,EACff,KAAM,UACNgB,SAAU9B,EAAE,uBAAwB,GAAsC,OAAnCwB,SAAc,QAAdA,EAAAA,EAAUO,YAAVP,IAAAA,GAAyB,QAAzBA,EAAAA,EAAgBQ,iBAAhBR,IAAAA,OAAAA,EAAAA,EAA2BS,QAAQ,wBAC1E3B,MAAON,EAAE,aAAc,gBAE3B,IACCkC,OAAM,SAACC,IACNP,EAAAA,EAAAA,cAAa,CACXtB,MAAON,EAAE,mBAAoB,sBAC7Bc,KAAM,QACNe,eAAe,EACfC,SAAUK,aAAAA,EAAAA,EAAOC,SAErB,GACJ,CACF,GAkBSpC,EAAE,iBAAkB,eAK/B,C,sECtEIqC,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,4nBAA6nB,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,2DAA2D,iEAAiE,MAAQ,GAAG,SAAW,sJAAsJ,eAAiB,CAAC,g/DAAg/D,+JAA+J,w8uBAAw8uB,WAAa,MAEvq1BH,EAAwB1C,OAAS,CAChC,YAAe,6DAEhB,S","sources":["webpack://@openmrs/esm-patient-chart-app/./src/visit/visit-prompt/end-visit-dialog.scss?0b7a","webpack://@openmrs/esm-patient-chart-app/./src/visit/visit-prompt/end-visit-dialog.component.tsx","webpack://@openmrs/esm-patient-chart-app/./src/visit/visit-prompt/end-visit-dialog.scss"],"names":["options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","undefined","patientUuid","closeModal","useTranslation","t","useVisit","activeVisit","mutate","div","ModalHeader","title","ModalBody","p","className","styles","bodyShort02","ModalFooter","Button","kind","onClick","endVisitPayload","stopDatetime","Date","abortController","AbortController","updateVisit","uuid","then","response","window","dispatchEvent","CustomEvent","showSnackbar","isLowContrast","subtitle","data","visitType","display","catch","error","message","___CSS_LOADER_EXPORT___","push","module","id"],"sourceRoot":""}
1
+ {"version":3,"file":"276.js","mappings":"+XAWIA,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKnB,QAAe,KAAW,IAAQM,OAAS,IAAQA,YAASC,ECuDnE,EA9DsD,Y,IAAGC,EAAAA,EAAAA,YAAaC,EAAAA,EAAAA,WAC9D,GAAQC,EAAAA,EAAAA,kBAANC,EACwBC,GAAAA,EAAAA,EAAAA,UAASJ,GAAjCK,EAAwBD,EAAxBC,YAAaC,EAAWF,EAAXE,OACqBC,GAAAA,EAAAA,EAAAA,sBAAqBP,GAAvDQ,EAAkCD,EAAlCC,aAAcC,EAAoBF,EAApBE,gBAoCtB,OACE,kBAACC,MAAAA,KACC,kBAACC,EAAAA,YAAWA,CACVV,WAAYA,EACZW,MAAOT,EAAE,6BAA8B,qDAEzC,kBAACU,EAAAA,UAASA,KACR,kBAACC,IAAAA,CAAEC,UAAWC,EAAOC,aAClBd,EAAE,gCAAiC,2EAGxC,kBAACe,EAAAA,YAAWA,KACV,kBAACC,EAAAA,OAAMA,CAACC,KAAK,YAAYC,QAASpB,GAC/BE,EAAE,SAAU,WAEf,kBAACgB,EAAAA,OAAMA,CAACC,KAAK,SAASC,QAjDL,WACrB,GAAIhB,EAAa,CACf,IAAMiB,EAAkB,CACtBC,aAAc,IAAIC,MAGdC,EAAkB,IAAIC,iBAE5BC,EAAAA,EAAAA,aAAYtB,EAAYuB,KAAMN,EAAiBG,GAC5CI,MAAK,SAACC,G,IAUoCA,EAAAA,EATzCxB,IACAyB,OAAOC,cAAc,IAAIC,YAAY,wBACrChC,KACIO,aAAAA,EAAAA,EAAcoB,QAASvB,EAAYuB,MACrCnB,EAAgB,KAAM,OAExByB,EAAAA,EAAAA,cAAa,CACXC,eAAe,EACff,KAAM,UACNgB,SAAUjC,EAAE,uBAAwB,GAAsC,OAAnC2B,SAAc,QAAdA,EAAAA,EAAUO,YAAVP,IAAAA,GAAyB,QAAzBA,EAAAA,EAAgBQ,iBAAhBR,IAAAA,OAAAA,EAAAA,EAA2BS,QAAQ,wBAC1E3B,MAAOT,EAAE,aAAc,gBAE3B,IACCqC,OAAM,SAACC,IACNP,EAAAA,EAAAA,cAAa,CACXtB,MAAOT,EAAE,mBAAoB,sBAC7BiB,KAAM,QACNe,eAAe,EACfC,SAAUK,aAAAA,EAAAA,EAAOC,SAErB,GACJ,CACF,GAkBSvC,EAAE,iBAAkB,eAK/B,C,sEC5EIwC,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,4nBAA6nB,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,2DAA2D,iEAAiE,MAAQ,GAAG,SAAW,sJAAsJ,eAAiB,CAAC,g/DAAg/D,+JAA+J,w8uBAAw8uB,WAAa,MAEvq1BH,EAAwB7C,OAAS,CAChC,YAAe,6DAEhB,S","sources":["webpack://@openmrs/esm-patient-chart-app/./src/visit/visit-prompt/end-visit-dialog.scss?0b7a","webpack://@openmrs/esm-patient-chart-app/./src/visit/visit-prompt/end-visit-dialog.component.tsx","webpack://@openmrs/esm-patient-chart-app/./src/visit/visit-prompt/end-visit-dialog.scss"],"names":["options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","undefined","patientUuid","closeModal","useTranslation","t","useVisit","activeVisit","mutate","usePatientChartStore","visitContext","setVisitContext","div","ModalHeader","title","ModalBody","p","className","styles","bodyShort02","ModalFooter","Button","kind","onClick","endVisitPayload","stopDatetime","Date","abortController","AbortController","updateVisit","uuid","then","response","window","dispatchEvent","CustomEvent","showSnackbar","isLowContrast","subtitle","data","visitType","display","catch","error","message","___CSS_LOADER_EXPORT___","push","module","id"],"sourceRoot":""}
package/dist/2761.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[2761],{2761:(e,t,n)=>{n.r(t),n.d(t,{default:()=>w});var r=n(75198),a=n(54440),i=n(1343),c=n.n(i),s=n(80824),o=n(72339),p=n(72591),l=n.n(p),u=n(1740),m=n.n(u),g=n(88128),d=n.n(g),_=n(30855),b=n.n(_),y=n(93051),f=n.n(y),v=n(73656),h=n.n(v),A=n(73299),k={};k.styleTagTransform=h(),k.setAttributes=b(),k.insert=d().bind(null,"head"),k.domAPI=m(),k.insertStyleElement=f(),l()(A.A,k);const C=A.A&&A.A.locals?A.A.locals:void 0;function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const w=function(e){var t,n,p=e.patientUuid,l=e.control,u=e.onChange,m=(0,o.useTranslation)().t,g=(0,a.useFeatureFlag)("rde"),d=(0,a.useVisit)(p).currentVisit,_=!Boolean(d&&d.stopDatetime),b=null==d?void 0:d.stopDatetime,y=null==d?void 0:d.startDatetime,f=(t=(0,i.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],c=!0,s=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{c||null==n.return||n.return()}finally{if(s)throw a}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(t,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.")}()),v=f[0],h=f[1],A=_&&!v,k=(0,s.mN)(),w=k.watch("retrospectiveDate"),P=k.watch("retrospectiveTime"),x=k.watch("retrospectiveTimeFormat"),O=l||k.control;return(0,i.useEffect)((function(){u&&u({retrospectiveDate:w,retrospectiveTime:P,retrospectiveTimeFormat:x})}),[u,w,P,x]),g?c().createElement("section",{className:C.wrapper},c().createElement("h4",{className:C.heading},"Encounter time"),_&&c().createElement(r.Checkbox,{checked:v,className:C.checkbox,id:"enable-date-time-picker",labelText:m("enable","Enable"),onChange:function(e,t){var n=t.checked;t.id,h(n)}}),c().createElement("div",{className:C.pickerWrapper},c().createElement(s.xI,{name:"retrospectiveDate",control:O,render:function(e){var t,n,r,i,s=e.field,o=e.fieldState;return c().createElement(a.ResponsiveWrapper,null,c().createElement(a.OpenmrsDatePicker,(r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$(e,t,n[t])}))}return e}({},s),i=null!=(i={id:"retrospective-date-picker-input",labelText:m("date","Date"),invalid:Boolean(null==o||null===(t=o.error)||void 0===t?void 0:t.message),invalidText:null==o||null===(n=o.error)||void 0===n?void 0:n.message,isDisabled:A,maxDate:b,minDate:y,className:C.datePicker})?i:{},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(i)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))})),r)))}}),c().createElement(a.ResponsiveWrapper,null,c().createElement(s.xI,{name:"retrospectiveTime",control:O,render:function(e){var t=e.field,n=t.onBlur,a=t.onChange,i=t.value;return c().createElement("div",{className:C.timePickerWrapper},c().createElement(r.TimePicker,{id:"retrospective-time-picker-input",labelText:m("time","Time"),onBlur:n,onChange:function(e){return a(e.target.value)},pattern:"^(0[1-9]|1[0-2]):([0-5][0-9])$",value:i,disabled:A,className:C.timePicker},c().createElement(s.xI,{name:"retrospectiveTimeFormat",control:O,render:function(e){var t=e.field,n=t.onChange,a=t.value;return c().createElement(r.TimePickerSelect,{"aria-label":m("timeFormat ","Time Format"),id:"am-pm-input",onChange:function(e){return n(e.target.value)},value:a,disabled:A},c().createElement(r.SelectItem,{value:"",text:""}),c().createElement(r.SelectItem,{value:"AM",text:m("AM","AM")}),c().createElement(r.SelectItem,{value:"PM",text:m("PM","PM")}))}})))}})))):null}},73299:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(30977),a=n.n(r),i=n(95924),c=n.n(i)()(a());c.push([e.id,".-esm-patient-chart__restrospective-date-time-picker__wrapper___DDuZ5{padding:0 1rem}.-esm-patient-chart__restrospective-date-time-picker__heading___v5Ok9{font-weight:600;margin-bottom:.5rem}.-esm-patient-chart__restrospective-date-time-picker__pickerWrapper___ZxXgo{display:flex;align-items:center}.-esm-patient-chart__restrospective-date-time-picker__datePicker___ZQAPs .cds--date-picker-input__wrapper{inline-size:10rem}.-esm-patient-chart__restrospective-date-time-picker__timePicker___WfTYR{display:flex;align-items:baseline}.-esm-patient-chart__restrospective-date-time-picker__timePicker___WfTYR .cds--form-requirement{max-width:6rem;max-height:0 !important}.-esm-patient-chart__restrospective-date-time-picker__checkBox___MDLgt{margin-bottom:1rem}","",{version:3,sources:["webpack://./src/visit/visits-widget/visit-context/retrospective-data-date-time-picker/restrospective-date-time-picker.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAEA,sEACE,cAAA,CAGF,sEACE,eAAA,CACA,mBCaW,CDVb,4EACE,YAAA,CACA,kBAAA,CAIA,0GACE,iBCqDS,CDjDb,yEACE,YAAA,CACA,oBAAA,CAEA,gGACE,cCuCS,CDtCT,uBAAA,CAIJ,uEACE,kBCFW",sourcesContent:["@use '@carbon/layout';\n\n.wrapper {\n padding: 0 layout.$spacing-05;\n}\n\n.heading {\n font-weight: 600;\n margin-bottom: layout.$spacing-03;\n}\n\n.pickerWrapper {\n display: flex;\n align-items: center;\n}\n\n.datePicker {\n :global(.cds--date-picker-input__wrapper) {\n inline-size: layout.$spacing-13;\n }\n}\n\n.timePicker {\n display: flex;\n align-items: baseline;\n\n :global(.cds--form-requirement) {\n max-width: layout.$spacing-12;\n max-height: 0 !important;\n }\n}\n\n.checkBox {\n margin-bottom: layout.$spacing-05;\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:""}]),c.locals={wrapper:"-esm-patient-chart__restrospective-date-time-picker__wrapper___DDuZ5",heading:"-esm-patient-chart__restrospective-date-time-picker__heading___v5Ok9",pickerWrapper:"-esm-patient-chart__restrospective-date-time-picker__pickerWrapper___ZxXgo",datePicker:"-esm-patient-chart__restrospective-date-time-picker__datePicker___ZQAPs",timePicker:"-esm-patient-chart__restrospective-date-time-picker__timePicker___WfTYR",checkBox:"-esm-patient-chart__restrospective-date-time-picker__checkBox___MDLgt"};const s=c}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[2761],{2761:(e,t,n)=>{n.r(t),n.d(t,{default:()=>w});var r=n(75198),a=n(54440),i=n(1343),c=n.n(i),s=n(80824),o=n(72339),p=n(72591),l=n.n(p),u=n(1740),m=n.n(u),g=n(88128),d=n.n(g),_=n(30855),b=n.n(_),y=n(93051),f=n.n(y),v=n(73656),h=n.n(v),A=n(73299),k={};k.styleTagTransform=h(),k.setAttributes=b(),k.insert=d().bind(null,"head"),k.domAPI=m(),k.insertStyleElement=f(),l()(A.A,k);const C=A.A&&A.A.locals?A.A.locals:void 0;function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const w=function(e){var t,n,p=e.visitContext,l=e.control,u=e.onChange,m=(0,o.useTranslation)().t,g=(0,a.useFeatureFlag)("rde"),d=!Boolean(p&&p.stopDatetime),_=null==p?void 0:p.stopDatetime,b=null==p?void 0:p.startDatetime,y=(t=(0,i.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],c=!0,s=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{c||null==n.return||n.return()}finally{if(s)throw a}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(t,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.")}()),f=y[0],v=y[1],h=d&&!f,A=(0,s.mN)(),k=A.watch("retrospectiveDate"),w=A.watch("retrospectiveTime"),P=A.watch("retrospectiveTimeFormat"),x=l||A.control;return(0,i.useEffect)((function(){u&&u({retrospectiveDate:k,retrospectiveTime:w,retrospectiveTimeFormat:P})}),[u,k,w,P]),g?c().createElement("section",{className:C.wrapper},c().createElement("h4",{className:C.heading},"Encounter time"),d&&c().createElement(r.Checkbox,{checked:f,className:C.checkbox,id:"enable-date-time-picker",labelText:m("enable","Enable"),onChange:function(e,t){var n=t.checked;t.id,v(n)}}),c().createElement("div",{className:C.pickerWrapper},c().createElement(s.xI,{name:"retrospectiveDate",control:x,render:function(e){var t,n,r,i,s=e.field,o=e.fieldState;return c().createElement(a.ResponsiveWrapper,null,c().createElement(a.OpenmrsDatePicker,(r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$(e,t,n[t])}))}return e}({},s),i=null!=(i={id:"retrospective-date-picker-input",labelText:m("date","Date"),invalid:Boolean(null==o||null===(t=o.error)||void 0===t?void 0:t.message),invalidText:null==o||null===(n=o.error)||void 0===n?void 0:n.message,isDisabled:h,maxDate:_,minDate:b,className:C.datePicker})?i:{},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(i)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))})),r)))}}),c().createElement(a.ResponsiveWrapper,null,c().createElement(s.xI,{name:"retrospectiveTime",control:x,render:function(e){var t=e.field,n=t.onBlur,a=t.onChange,i=t.value;return c().createElement("div",{className:C.timePickerWrapper},c().createElement(r.TimePicker,{id:"retrospective-time-picker-input",labelText:m("time","Time"),onBlur:n,onChange:function(e){return a(e.target.value)},pattern:"^(0[1-9]|1[0-2]):([0-5][0-9])$",value:i,disabled:h,className:C.timePicker},c().createElement(s.xI,{name:"retrospectiveTimeFormat",control:x,render:function(e){var t=e.field,n=t.onChange,a=t.value;return c().createElement(r.TimePickerSelect,{"aria-label":m("timeFormat ","Time Format"),id:"am-pm-input",onChange:function(e){return n(e.target.value)},value:a,disabled:h},c().createElement(r.SelectItem,{value:"",text:""}),c().createElement(r.SelectItem,{value:"AM",text:m("AM","AM")}),c().createElement(r.SelectItem,{value:"PM",text:m("PM","PM")}))}})))}})))):null}},73299:(e,t,n)=>{n.d(t,{A:()=>s});var r=n(30977),a=n.n(r),i=n(95924),c=n.n(i)()(a());c.push([e.id,".-esm-patient-chart__restrospective-date-time-picker__wrapper___DDuZ5{padding:0 1rem}.-esm-patient-chart__restrospective-date-time-picker__heading___v5Ok9{font-weight:600;margin-bottom:.5rem}.-esm-patient-chart__restrospective-date-time-picker__pickerWrapper___ZxXgo{display:flex;align-items:center}.-esm-patient-chart__restrospective-date-time-picker__datePicker___ZQAPs .cds--date-picker-input__wrapper{inline-size:10rem}.-esm-patient-chart__restrospective-date-time-picker__timePicker___WfTYR{display:flex;align-items:baseline}.-esm-patient-chart__restrospective-date-time-picker__timePicker___WfTYR .cds--form-requirement{max-width:6rem;max-height:0 !important}.-esm-patient-chart__restrospective-date-time-picker__checkBox___MDLgt{margin-bottom:1rem}","",{version:3,sources:["webpack://./src/visit/visits-widget/visit-context/retrospective-data-date-time-picker/restrospective-date-time-picker.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAEA,sEACE,cAAA,CAGF,sEACE,eAAA,CACA,mBCaW,CDVb,4EACE,YAAA,CACA,kBAAA,CAIA,0GACE,iBCqDS,CDjDb,yEACE,YAAA,CACA,oBAAA,CAEA,gGACE,cCuCS,CDtCT,uBAAA,CAIJ,uEACE,kBCFW",sourcesContent:["@use '@carbon/layout';\n\n.wrapper {\n padding: 0 layout.$spacing-05;\n}\n\n.heading {\n font-weight: 600;\n margin-bottom: layout.$spacing-03;\n}\n\n.pickerWrapper {\n display: flex;\n align-items: center;\n}\n\n.datePicker {\n :global(.cds--date-picker-input__wrapper) {\n inline-size: layout.$spacing-13;\n }\n}\n\n.timePicker {\n display: flex;\n align-items: baseline;\n\n :global(.cds--form-requirement) {\n max-width: layout.$spacing-12;\n max-height: 0 !important;\n }\n}\n\n.checkBox {\n margin-bottom: layout.$spacing-05;\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:""}]),c.locals={wrapper:"-esm-patient-chart__restrospective-date-time-picker__wrapper___DDuZ5",heading:"-esm-patient-chart__restrospective-date-time-picker__heading___v5Ok9",pickerWrapper:"-esm-patient-chart__restrospective-date-time-picker__pickerWrapper___ZxXgo",datePicker:"-esm-patient-chart__restrospective-date-time-picker__datePicker___ZQAPs",timePicker:"-esm-patient-chart__restrospective-date-time-picker__timePicker___WfTYR",checkBox:"-esm-patient-chart__restrospective-date-time-picker__checkBox___MDLgt"};const s=c}}]);
package/dist/2761.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"2761.js","mappings":"+XAWIA,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKnB,QAAe,KAAW,IAAQM,OAAS,IAAQA,YAASC,E,kOCkHnE,QAxHoC,Y,QAClCC,EAAAA,EAAAA,YACAC,EAAAA,EAAAA,QACAC,EAAAA,EAAAA,SAEM,GAAQC,EAAAA,EAAAA,kBAANC,EACFC,GAAeC,EAAAA,EAAAA,gBAAe,OAE9B,GAAmBC,EAAAA,EAAAA,UAASP,GAA1BQ,aACFC,GAAiBC,QAAQF,GAAgBA,EAAaG,cACtDC,EAAUJ,aAAAA,EAAAA,EAAcG,aACxBE,EAAUL,aAAAA,EAAAA,EAAcM,cAE0CC,G,GAAAA,EAAAA,EAAAA,WAAkB,G,EAAA,E,+zBAAnFC,EAAiED,EAAAA,GAAnCE,EAAmCF,EAAAA,GAGlEG,EAAgBT,IAAkBO,EAKlCG,GAAOC,EAAAA,EAAAA,MAEPC,EAAoBF,EAAKG,MAAM,qBAC/BC,EAAoBJ,EAAKG,MAAM,qBAC/BE,EAA0BL,EAAKG,MAAM,2BAErCrB,EAAUwB,GAAeN,EAAKlB,QAYpC,OAVAyB,EAAAA,EAAAA,YAAU,WACJxB,GACFA,EAAS,CACPmB,kBAAmBA,EACnBE,kBAAmBA,EACnBC,wBAAyBA,GAG/B,GAAG,CAACtB,EAAUmB,EAAmBE,EAAmBC,IAE/CnB,EAKH,kBAACsB,UAAAA,CAAQC,UAAWC,EAAOC,SACzB,kBAACC,KAAAA,CAAGH,UAAWC,EAAOG,SAAS,kBAC9BvB,GACC,kBAACwB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Y,QAAGE,MAAS3C,EAAAA,EAAAA,SAAUqD,EAAAA,EAAAA,M,OAC5B,kBAACQ,EAAAA,iBAAgBA,CACfC,aAAY5D,EAAE,cAAe,eAC7BgC,GAAK,cACLlC,SAAU,SAACwD,G,OAAUxD,EAASwD,EAAMC,OAAOJ,M,EAC3CA,MAAOA,EACPM,SAAU3C,GAEV,kBAAC+C,EAAAA,WAAUA,CAACV,MAAM,GAAGW,KAAK,KAC1B,kBAACD,EAAAA,WAAUA,CAACV,MAAM,KAAKW,KAAM9D,EAAE,KAAM,QACrC,kBAAC6D,EAAAA,WAAUA,CAACV,MAAM,KAAKW,KAAM9D,EAAE,KAAM,Q,YAlElD,IA8EX,C,sECvII+D,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOjC,GAAI,svBAAuvB,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,6HAA6H,8EAA8E,MAAQ,GAAG,SAAW,oKAAoK,eAAiB,CAAC,gjBAAgjB,25DAA25D,WAAa,MAE1qH+B,EAAwBrE,OAAS,CAChC,QAAW,uEACX,QAAW,uEACX,cAAiB,6EACjB,WAAc,0EACd,WAAc,0EACd,SAAY,yEAEb,S","sources":["webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/retrospective-data-date-time-picker/restrospective-date-time-picker.scss?faeb","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/retrospective-data-date-time-picker/retrospective-date-time-picker.component.tsx","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/retrospective-data-date-time-picker/restrospective-date-time-picker.scss"],"names":["options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","undefined","patientUuid","control","onChange","useTranslation","t","isRdeEnabled","useFeatureFlag","useVisit","currentVisit","isActiveVisit","Boolean","stopDatetime","maxDate","minDate","startDatetime","useState","manuallyEnableDateTimePicker","setManuallyEnableDateTimePicker","disableInputs","form","useForm","retrospectiveDate","watch","retrospectiveTime","retrospectiveTimeFormat","propControl","useEffect","section","className","styles","wrapper","h4","heading","Checkbox","checked","checkbox","id","labelText","_","div","pickerWrapper","Controller","name","render","fieldState","field","ResponsiveWrapper","OpenmrsDatePicker","invalid","error","message","invalidText","isDisabled","datePicker","onBlur","value","timePickerWrapper","TimePicker","event","target","pattern","disabled","timePicker","TimePickerSelect","aria-label","SelectItem","text","___CSS_LOADER_EXPORT___","push","module"],"sourceRoot":""}
1
+ {"version":3,"file":"2761.js","mappings":"+XAWIA,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKnB,QAAe,KAAW,IAAQM,OAAS,IAAQA,YAASC,E,kOCgHnE,QAvHoC,Y,QAClCC,EAAAA,EAAAA,aACAC,EAAAA,EAAAA,QACAC,EAAAA,EAAAA,SAEM,GAAQC,EAAAA,EAAAA,kBAANC,EACFC,GAAeC,EAAAA,EAAAA,gBAAe,OAE9BC,GAAiBC,QAAQR,GAAgBA,EAAaS,cACtDC,EAAUV,aAAAA,EAAAA,EAAcS,aACxBE,EAAUX,aAAAA,EAAAA,EAAcY,cAE0CC,G,GAAAA,EAAAA,EAAAA,WAAkB,G,EAAA,E,+zBAAnFC,EAAiED,EAAAA,GAAnCE,EAAmCF,EAAAA,GAGlEG,EAAgBT,IAAkBO,EAKlCG,GAAOC,EAAAA,EAAAA,MAEPC,EAAoBF,EAAKG,MAAM,qBAC/BC,EAAoBJ,EAAKG,MAAM,qBAC/BE,EAA0BL,EAAKG,MAAM,2BAErCnB,EAAUsB,GAAeN,EAAKhB,QAYpC,OAVAuB,EAAAA,EAAAA,YAAU,WACJtB,GACFA,EAAS,CACPiB,kBAAmBA,EACnBE,kBAAmBA,EACnBC,wBAAyBA,GAG/B,GAAG,CAACpB,EAAUiB,EAAmBE,EAAmBC,IAE/CjB,EAKH,kB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EACPM,SAAU3C,EACVU,UAAWC,EAAOiC,YAElB,kBAACrB,EAAAA,GAAUA,CACTC,KAAM,0BACNvC,QAASA,EACTwC,OAAQ,Y,QAAGE,MAASzC,EAAAA,EAAAA,SAAUmD,EAAAA,EAAAA,M,OAC5B,kBAACQ,EAAAA,iBAAgBA,CACfC,aAAY1D,EAAE,cAAe,eAC7B8B,GAAK,cACLhC,SAAU,SAACsD,G,OAAUtD,EAASsD,EAAMC,OAAOJ,M,EAC3CA,MAAOA,EACPM,SAAU3C,GAEV,kBAAC+C,EAAAA,WAAUA,CAACV,MAAM,GAAGW,KAAK,KAC1B,kBAACD,EAAAA,WAAUA,CAACV,MAAM,KAAKW,KAAM5D,EAAE,KAAM,QACrC,kBAAC2D,EAAAA,WAAUA,CAACV,MAAM,KAAKW,KAAM5D,EAAE,KAAM,Q,YAlElD,IA8EX,C,sECrII6D,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOjC,GAAI,svBAAuvB,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,6HAA6H,8EAA8E,MAAQ,GAAG,SAAW,oKAAoK,eAAiB,CAAC,gjBAAgjB,25DAA25D,WAAa,MAE1qH+B,EAAwBnE,OAAS,CAChC,QAAW,uEACX,QAAW,uEACX,cAAiB,6EACjB,WAAc,0EACd,WAAc,0EACd,SAAY,yEAEb,S","sources":["webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/retrospective-data-date-time-picker/restrospective-date-time-picker.scss?faeb","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/retrospective-data-date-time-picker/retrospective-date-time-picker.component.tsx","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/visit-context/retrospective-data-date-time-picker/restrospective-date-time-picker.scss"],"names":["options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","undefined","visitContext","control","onChange","useTranslation","t","isRdeEnabled","useFeatureFlag","isActiveVisit","Boolean","stopDatetime","maxDate","minDate","startDatetime","useState","manuallyEnableDateTimePicker","setManuallyEnableDateTimePicker","disableInputs","form","useForm","retrospectiveDate","watch","retrospectiveTime","retrospectiveTimeFormat","propControl","useEffect","section","className","styles","wrapper","h4","heading","Checkbox","checked","checkbox","id","labelText","_","div","pickerWrapper","Controller","name","render","fieldState","field","ResponsiveWrapper","OpenmrsDatePicker","invalid","error","message","invalidText","isDisabled","datePicker","onBlur","value","timePickerWrapper","TimePicker","event","target","pattern","disabled","timePicker","TimePickerSelect","aria-label","SelectItem","text","___CSS_LOADER_EXPORT___","push","module"],"sourceRoot":""}
package/dist/2859.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[2859],{51887:(e,n,t)=>{t.d(n,{A:()=>o});var a=t(30977),i=t.n(a),c=t(95924),r=t.n(c)()(i());r.push([e.id,".-esm-patient-chart__active-visit-buttons__buttonsContainer___weUgC{display:flex;gap:.25rem;margin:.25rem}","",{version:3,sources:["webpack://./src/visit/visits-widget/active-visit-buttons/active-visit-buttons.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAEA,oEACE,YAAA,CACA,UCYW,CDXX,aCWW",sourcesContent:["@use '@carbon/layout';\n\n.buttonsContainer {\n display: flex;\n gap: layout.$spacing-02;\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:""}]),r.locals={buttonsContainer:"-esm-patient-chart__active-visit-buttons__buttonsContainer___weUgC"};const o=r},82859:(e,n,t)=>{t.r(n),t.d(n,{default:()=>_});var a=t(1343),i=t.n(a),c=t(72339),r=t(75198),o=t(54440),s=t(63276),l=t(72591),u=t.n(l),d=t(1740),p=t.n(d),m=t(88128),b=t.n(m),g=t(30855),f=t.n(g),k=t(93051),y=t.n(k),A=t(73656),I=t.n(A),C=t(51887),h={};h.styleTagTransform=I(),h.setAttributes=f(),h.insert=b().bind(null,"head"),h.domAPI=p(),h.insertStyleElement=y(),u()(C.A,h);const E=C.A&&C.A.locals?C.A.locals:void 0;function v(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function $(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){v(e,n,t[n])}))}return e}const _=function(e){e.visit;var n=e.patientUuid,t=(0,c.useTranslation)().t,a=(0,o.useLayoutType)(),l="tablet"===a,u="phone"===a,d=(0,s.useLaunchWorkspaceRequiringVisit)("patient-allergy-form-workspace"),p=(0,s.useLaunchWorkspaceRequiringVisit)("appointments-form-workspace"),m=(0,s.useLaunchWorkspaceRequiringVisit)("clinical-forms-workspace"),b=(0,s.useLaunchWorkspaceRequiringVisit)("conditions-form-workspace"),g=(0,s.useLaunchWorkspaceRequiringVisit)("order-basket"),f=(0,s.useLaunchWorkspaceRequiringVisit)("visit-notes-form-workspace"),k=(0,s.useLaunchWorkspaceRequiringVisit)("patient-vitals-biometrics-form-workspace");return i().createElement("div",null,l||u?i().createElement("div",{className:E.buttonsContainer},i().createElement(M,{patientUuid:n}),i().createElement(r.MenuButton,{label:t("more","More"),kind:"ghost"},i().createElement(r.MenuItem,{kind:"default",label:t("addNote","Add note"),onClick:f,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("addLabOrPrescription","Add lab or prescription"),onClick:g,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("addVitals","Add vitals"),onClick:k,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("addCondition","Add condition"),onClick:b,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("addAllergy","Add allergy"),onClick:d,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("addAppointment","Add appointment"),onClick:p,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("otherForm","Other form"),onClick:m,renderIcon:o.AddIcon}))):i().createElement("div",{className:E.buttonsContainer},i().createElement(r.Button,{kind:"ghost",renderIcon:function(e){return i().createElement(o.AddIcon,$({size:16},e))},iconDescription:"Add visit note",onClick:f},t("addNote","Add note")),i().createElement(r.Button,{kind:"ghost",renderIcon:function(e){return i().createElement(o.AddIcon,$({size:16},e))},iconDescription:"Add lab or prescription",onClick:g},t("addLabOrPrescription","Add lab or prescription")),i().createElement(M,{patientUuid:n}),i().createElement(r.MenuButton,{label:t("more","More"),kind:"ghost"},i().createElement(r.MenuItem,{kind:"default",label:t("addVitals","Add vitals"),onClick:k,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("addCondition","Add condition"),onClick:b,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("addAllergy","Add allergy"),onClick:d,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("addAppointment","Add appointment"),onClick:p,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("otherForm","Other form"),onClick:m,renderIcon:o.AddIcon}))))};var M=function(e){var n=e.patientUuid,t=(0,c.useTranslation)().t,s=(0,a.useCallback)((function(e){var t=(0,o.showModal)(e,{closeModal:function(){return t()},patientUuid:n})}),[n]);return i().createElement(r.MenuButton,{label:t("endVisit","End visit"),kind:"ghost"},i().createElement(r.MenuItem,{kind:"default",label:t("endVisit","End visit"),onClick:function(){return s("end-visit-dialog")},renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("deleteVisit","Delete visit"),onClick:function(){return s("delete-visit-dialog")},renderIcon:o.AddIcon}))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[2859],{51887:(e,n,t)=>{t.d(n,{A:()=>o});var a=t(30977),i=t.n(a),c=t(95924),r=t.n(c)()(i());r.push([e.id,".-esm-patient-chart__active-visit-buttons__buttonsContainer___weUgC{display:flex;gap:.25rem;margin:.25rem}","",{version:3,sources:["webpack://./src/visit/visits-widget/active-visit-buttons/active-visit-buttons.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAEA,oEACE,YAAA,CACA,UCYW,CDXX,aCWW",sourcesContent:["@use '@carbon/layout';\n\n.buttonsContainer {\n display: flex;\n gap: layout.$spacing-02;\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:""}]),r.locals={buttonsContainer:"-esm-patient-chart__active-visit-buttons__buttonsContainer___weUgC"};const o=r},82859:(e,n,t)=>{t.r(n),t.d(n,{default:()=>_});var a=t(1343),i=t.n(a),c=t(72339),r=t(75198),o=t(54440),s=t(63276),l=t(72591),u=t.n(l),d=t(1740),p=t.n(d),m=t(88128),b=t.n(m),g=t(30855),f=t.n(g),k=t(93051),y=t.n(k),A=t(73656),I=t.n(A),C=t(51887),h={};h.styleTagTransform=I(),h.setAttributes=f(),h.insert=b().bind(null,"head"),h.domAPI=p(),h.insertStyleElement=y(),u()(C.A,h);const E=C.A&&C.A.locals?C.A.locals:void 0;function v(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function $(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){v(e,n,t[n])}))}return e}const _=function(e){e.visit;var n=e.patientUuid,t=(0,c.useTranslation)().t,a=(0,o.useLayoutType)(),l="tablet"===a,u="phone"===a,d=(0,s.useLaunchWorkspaceRequiringVisit)(n,"patient-allergy-form-workspace"),p=(0,s.useLaunchWorkspaceRequiringVisit)(n,"appointments-form-workspace"),m=(0,s.useLaunchWorkspaceRequiringVisit)(n,"clinical-forms-workspace"),b=(0,s.useLaunchWorkspaceRequiringVisit)(n,"conditions-form-workspace"),g=(0,s.useLaunchWorkspaceRequiringVisit)(n,"order-basket"),f=(0,s.useLaunchWorkspaceRequiringVisit)(n,"visit-notes-form-workspace"),k=(0,s.useLaunchWorkspaceRequiringVisit)(n,"patient-vitals-biometrics-form-workspace");return i().createElement("div",null,l||u?i().createElement("div",{className:E.buttonsContainer},i().createElement(M,{patientUuid:n}),i().createElement(r.MenuButton,{label:t("more","More"),kind:"ghost"},i().createElement(r.MenuItem,{kind:"default",label:t("addNote","Add note"),onClick:f,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("addLabOrPrescription","Add lab or prescription"),onClick:g,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("addVitals","Add vitals"),onClick:k,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("addCondition","Add condition"),onClick:b,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("addAllergy","Add allergy"),onClick:d,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("addAppointment","Add appointment"),onClick:p,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("otherForm","Other form"),onClick:m,renderIcon:o.AddIcon}))):i().createElement("div",{className:E.buttonsContainer},i().createElement(r.Button,{kind:"ghost",renderIcon:function(e){return i().createElement(o.AddIcon,$({size:16},e))},iconDescription:"Add visit note",onClick:f},t("addNote","Add note")),i().createElement(r.Button,{kind:"ghost",renderIcon:function(e){return i().createElement(o.AddIcon,$({size:16},e))},iconDescription:"Add lab or prescription",onClick:g},t("addLabOrPrescription","Add lab or prescription")),i().createElement(M,{patientUuid:n}),i().createElement(r.MenuButton,{label:t("more","More"),kind:"ghost"},i().createElement(r.MenuItem,{kind:"default",label:t("addVitals","Add vitals"),onClick:k,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("addCondition","Add condition"),onClick:b,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("addAllergy","Add allergy"),onClick:d,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("addAppointment","Add appointment"),onClick:p,renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("otherForm","Other form"),onClick:m,renderIcon:o.AddIcon}))))};var M=function(e){var n=e.patientUuid,t=(0,c.useTranslation)().t,s=(0,a.useCallback)((function(e){var t=(0,o.showModal)(e,{closeModal:function(){return t()},patientUuid:n})}),[n]);return i().createElement(r.MenuButton,{label:t("endVisit","End visit"),kind:"ghost"},i().createElement(r.MenuItem,{kind:"default",label:t("endVisit","End visit"),onClick:function(){return s("end-visit-dialog")},renderIcon:o.AddIcon}),i().createElement(r.MenuItem,{kind:"default",label:t("deleteVisit","Delete visit"),onClick:function(){return s("delete-visit-dialog")},renderIcon:o.AddIcon}))}}}]);
package/dist/2859.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"2859.js","mappings":"iNAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,6GAA8G,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,qFAAqF,8EAA8E,MAAQ,GAAG,SAAW,sCAAsC,eAAiB,CAAC,kIAAkI,25DAA25D,WAAa,MAE78EH,EAAwBI,OAAS,CAChC,iBAAoB,sEAErB,S,qPCCIC,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKnB,QAAe,KAAW,IAAQD,OAAS,IAAQA,YAASO,E,gcCoHnE,QA9HkE,YAAGC,EAAAA,M,IAAOC,EAAAA,EAAAA,YACpE,GAAQC,EAAAA,EAAAA,kBAANC,EACFC,GAASC,EAAAA,EAAAA,iBACTC,EAAsB,WAAXF,EACXG,EAAsB,UAAXH,EAEXI,GAA+BC,EAAAA,EAAAA,kCAAiC,kCAChEC,GAAkCD,EAAAA,EAAAA,kCAAiC,+BACnEE,GAA+BF,EAAAA,EAAAA,kCAAiC,4BAChEG,GAA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S,W,OAAMO,EAAU,mB,EACzBN,WAAYC,EAAAA,UAEd,kBAACH,EAAAA,SAAQA,CACPD,KAAK,UACLD,MAAOnB,EAAE,cAAe,gBACxBsB,QAAS,W,OAAMO,EAAU,sB,EACzBN,WAAYC,EAAAA,UAIpB,C","sources":["webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/active-visit-buttons/active-visit-buttons.scss","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/active-visit-buttons/active-visit-buttons.scss?5965","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/active-visit-buttons/active-visit-buttons.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","visit","patientUuid","useTranslation","t","layout","useLayoutType","isTablet","isMobile","launchAllergiesFormWorkspace","useLaunchWorkspaceRequiringVisit","launchAppointmentsFormWorkspace","launchClinicalFormsWorkspace","launchConditionsFormWorkspace","launchOrderBasketFormWorkspace","launchVisitNotesFormWorkspace","launchVitalsAndBiometricsFormWorkspace","div","className","styles","buttonsContainer","VisitActionsComponent","MenuButton","label","kind","MenuItem","onClick","renderIcon","AddIcon","Button","props","size","iconDescription","openModal","useCallback","modalName","dispose","showModal","closeModal"],"sourceRoot":""}
1
+ {"version":3,"file":"2859.js","mappings":"iNAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,6GAA8G,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,qFAAqF,8EAA8E,MAAQ,GAAG,SAAW,sCAAsC,eAAiB,CAAC,kIAAkI,25DAA25D,WAAa,MAE78EH,EAAwBI,OAAS,CAChC,iBAAoB,sEAErB,S,qPCCIC,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKn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,YAO1B,EAOA,IAAMP,EAAqD,Y,IAAGnB,EAAAA,EAAAA,YACtD,GAAQC,EAAAA,EAAAA,kBAANC,EAEF6B,GAAYC,EAAAA,EAAAA,cAChB,SAACC,GACC,IAAMC,GAAUC,EAAAA,EAAAA,WAAUF,EAAW,CACnCG,WAAY,W,OAAMF,G,EAClBlC,YAAAA,GAEJ,GACA,CAACA,IAGH,OACE,kBAACoB,EAAAA,WAAUA,CAACC,MAAOnB,EAAE,WAAY,aAAcoB,KAAK,SAClD,kBAACC,EAAAA,SAAQA,CACPD,KAAK,UACLD,MAAOnB,EAAE,WAAY,aACrBsB,QAAS,W,OAAMO,EAAU,mB,EACzBN,WAAYC,EAAAA,UAEd,kBAACH,EAAAA,SAAQA,CACPD,KAAK,UACLD,MAAOnB,EAAE,cAAe,gBACxBsB,QAAS,W,OAAMO,EAAU,sB,EACzBN,WAAYC,EAAAA,UAIpB,C","sources":["webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/active-visit-buttons/active-visit-buttons.scss","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/active-visit-buttons/active-visit-buttons.scss?5965","webpack://@openmrs/esm-patient-chart-app/./src/visit/visits-widget/active-visit-buttons/active-visit-buttons.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","visit","patientUuid","useTranslation","t","layout","useLayoutType","isTablet","isMobile","launchAllergiesFormWorkspace","useLaunchWorkspaceRequiringVisit","launchAppointmentsFormWorkspace","launchClinicalFormsWorkspace","launchConditionsFormWorkspace","launchOrderBasketFormWorkspace","launchVisitNotesFormWorkspace","launchVitalsAndBiometricsFormWorkspace","div","className","styles","buttonsContainer","VisitActionsComponent","MenuButton","label","kind","MenuItem","onClick","renderIcon","AddIcon","Button","props","size","iconDescription","openModal","useCallback","modalName","dispose","showModal","closeModal"],"sourceRoot":""}
package/dist/3119.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[3119],{53119:(t,i,e)=>{e.r(i),e.d(i,{default:()=>y});var n=e(1343),l=e.n(n),r=e(72339),o=e(75198),s=e(71123),a=e(54440),u=e(63276),d=e(97821);function c(t,i){(null==i||i>t.length)&&(i=t.length);for(var e=0,n=new Array(i);e<i;e++)n[e]=t[e];return n}var v=e(8112);const y=function(t){var i,e,y=t.closeModal,f=(t.patientUuid,t.visit),p=(0,r.useTranslation)().t,h=function(t){var i,e,l,o,v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},f=(0,r.useTranslation)().t,p=(0,s.iX)().mutate,h=(0,a.useVisit)((null==t||null===(i=t.patient)||void 0===i?void 0:i.uuid)||"").mutate,g=(l=(0,n.useState)(!1),o=2,function(t){if(Array.isArray(t))return t}(l)||function(t,i){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,l,r=[],o=!0,s=!1;try{for(e=e.call(t);!(o=(n=e.next()).done)&&(r.push(n.value),!i||r.length!==i);o=!0);}catch(t){s=!0,l=t}finally{try{o||null==e.return||e.return()}finally{if(s)throw l}}return r}}(l,o)||function(t,i){if(t){if("string"==typeof t)return c(t,i);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(t,i):void 0}}(l,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=g[0],b=g[1],V=(null==t||null===(e=t.patient)||void 0===e?void 0:e.uuid)||"",k=function(){(0,d.uA)(null==t?void 0:t.uuid).then((function(){var i,e;h(),(0,u.invalidateVisitAndEncounterData)(p,V),(0,a.showSnackbar)({title:f("visitRestored","Visit restored"),subtitle:f("visitRestoredSuccessfully","{{visit}} restored successfully",{visit:null!==(e=null==t||null===(i=t.visitType)||void 0===i?void 0:i.display)&&void 0!==e?e:f("visit","Visit")}),kind:"success"}),null==y||y()})).catch((function(){var i,e;h(),(0,u.invalidateVisitAndEncounterData)(p,V),(0,a.showSnackbar)({title:f("visitNotRestored","Visit couldn't be restored"),subtitle:f("errorWhenRestoringVisit","Error occurred when restoring {{visit}}",{visit:null!==(e=null==t||null===(i=t.visitType)||void 0===i?void 0:i.display)&&void 0!==e?e:f("visit","Visit")}),kind:"error"})}))};return{initiateDeletingVisit:function(){b(!0),(0,d.TH)(null==t?void 0:t.uuid).then((function(){var i,e,n,l;h(),(0,u.invalidateVisitAndEncounterData)(p,V),(0,a.showSnackbar)({title:f("visitDeleted","{{visit}} deleted",{visit:null!==(n=null==t||null===(i=t.visitType)||void 0===i?void 0:i.display)&&void 0!==n?n:f("visit","Visit")}),subtitle:f("visitDeletedSuccessfully","{{visit}} deleted successfully",{visit:null!==(l=null==t||null===(e=t.visitType)||void 0===e?void 0:e.display)&&void 0!==l?l:f("visit","Visit")}),kind:"success",actionButtonLabel:f("undo","Undo"),onActionButtonClick:k}),null==v||v()})).catch((function(){h(),(0,u.invalidateVisitAndEncounterData)(p,V),(0,a.showSnackbar)({title:f("errorDeletingVisit","Error deleting visit"),kind:"error",subtitle:f("errorOccurredDeletingVisit","An error occurred when deleting visit")})})).finally((function(){b(!1)}))},isDeletingVisit:m}}(f,y),g=h.isDeletingVisit,m=h.initiateDeletingVisit;return l().createElement("div",null,l().createElement(o.ModalHeader,{closeModal:y,title:p("deleteVisitDialogHeader","Are you sure you want to delete this visit?")}),l().createElement(o.ModalBody,null,l().createElement("p",{className:v.A.body},p("confirmDeleteVisitText","Deleting this {{visit}} will delete its associated encounters.",{visit:null!==(e=null==f||null===(i=f.visitType)||void 0===i?void 0:i.display)&&void 0!==e?e:p("visit","Visit")}))),l().createElement(o.ModalFooter,null,l().createElement(o.Button,{kind:"secondary",onClick:y},p("cancel","Cancel")),l().createElement(o.Button,{kind:"danger",onClick:m,disabled:g},g?l().createElement(o.InlineLoading,{description:p("deletingVisit","Deleting visit")}):p("deleteVisit","Delete visit"))))}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[3119],{53119:(t,i,e)=>{e.r(i),e.d(i,{default:()=>y});var n=e(1343),l=e.n(n),r=e(72339),o=e(75198),s=e(71123),a=e(54440),u=e(63276),d=e(97821);function c(t,i){(null==i||i>t.length)&&(i=t.length);for(var e=0,n=new Array(i);e<i;e++)n[e]=t[e];return n}var v=e(8112);const y=function(t){var i,e,y=t.closeModal,f=t.mutateActiveVisit,p=(t.patientUuid,t.activeVisit),h=(0,r.useTranslation)().t,m=function(t,i){var e,l,o,v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},y=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},f=(0,r.useTranslation)().t,p=(0,s.iX)().mutate,h=(l=(0,n.useState)(!1),o=2,function(t){if(Array.isArray(t))return t}(l)||function(t,i){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,l,r=[],o=!0,s=!1;try{for(e=e.call(t);!(o=(n=e.next()).done)&&(r.push(n.value),!i||r.length!==i);o=!0);}catch(t){s=!0,l=t}finally{try{o||null==e.return||e.return()}finally{if(s)throw l}}return r}}(l,o)||function(t,i){if(t){if("string"==typeof t)return c(t,i);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(e):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?c(t,i):void 0}}(l,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=h[0],g=h[1],V=(null==t||null===(e=t.patient)||void 0===e?void 0:e.uuid)||"",b=(0,u.usePatientChartStore)(V),D=b.visitContext,k=b.setVisitContext,A=function(){(0,d.uA)(null==t?void 0:t.uuid).then((function(e){var n,l,r=e.data;i(),r.stopDatetime||k(r,(function(){return(0,u.invalidateVisitByUuid)(p,r.uuid)})),(0,u.invalidateVisitAndEncounterData)(p,V),(0,a.showSnackbar)({title:f("visitRestored","Visit restored"),subtitle:f("visitRestoredSuccessfully","{{visit}} restored successfully",{visit:null!==(l=null==t||null===(n=t.visitType)||void 0===n?void 0:n.display)&&void 0!==l?l:f("visit","Visit")}),kind:"success"}),null==y||y()})).catch((function(){var e,n;i(),(0,u.invalidateVisitAndEncounterData)(p,V),(0,a.showSnackbar)({title:f("visitNotRestored","Visit couldn't be restored"),subtitle:f("errorWhenRestoringVisit","Error occurred when restoring {{visit}}",{visit:null!==(n=null==t||null===(e=t.visitType)||void 0===e?void 0:e.display)&&void 0!==n?n:f("visit","Visit")}),kind:"error"})}))};return{initiateDeletingVisit:function(){g(!0),(0,d.TH)(null==t?void 0:t.uuid).then((function(){var e,n,l,r;i(),t.uuid===(null==D?void 0:D.uuid)&&k(null,null),(0,u.invalidateVisitAndEncounterData)(p,V),(0,a.showSnackbar)({title:f("visitDeleted","{{visit}} deleted",{visit:null!==(l=null==t||null===(e=t.visitType)||void 0===e?void 0:e.display)&&void 0!==l?l:f("visit","Visit")}),subtitle:f("visitDeletedSuccessfully","{{visit}} deleted successfully",{visit:null!==(r=null==t||null===(n=t.visitType)||void 0===n?void 0:n.display)&&void 0!==r?r:f("visit","Visit")}),kind:"success",actionButtonLabel:f("undo","Undo"),onActionButtonClick:A}),null==v||v()})).catch((function(){i(),(0,u.invalidateVisitAndEncounterData)(p,V),(0,a.showSnackbar)({title:f("errorDeletingVisit","Error deleting visit"),kind:"error",subtitle:f("errorOccurredDeletingVisit","An error occurred when deleting visit")})})).finally((function(){g(!1)}))},isDeletingVisit:m}}(p,f,y),g=m.isDeletingVisit,V=m.initiateDeletingVisit;return l().createElement("div",null,l().createElement(o.ModalHeader,{closeModal:y,title:h("deleteVisitDialogHeader","Are you sure you want to delete this visit?")}),l().createElement(o.ModalBody,null,l().createElement("p",{className:v.A.body},h("confirmDeleteVisitText","Deleting this {{visit}} will delete its associated encounters.",{visit:null!==(e=null==p||null===(i=p.visitType)||void 0===i?void 0:i.display)&&void 0!==e?e:h("visit","Visit")}))),l().createElement(o.ModalFooter,null,l().createElement(o.Button,{kind:"secondary",onClick:y},h("cancel","Cancel")),l().createElement(o.Button,{kind:"danger",onClick:V,disabled:g},g?l().createElement(o.InlineLoading,{description:h("deletingVisit","Deleting visit")}):h("deleteVisit","Delete visit"))))}}}]);
package/dist/3119.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"3119.js","mappings":"4YA8CA,QAjC4D,Y,IAazCA,EAAAA,EAb4CC,EAAAA,EAAAA,WAAyBD,GAAbE,EAAAA,YAAaF,EAAAA,OAChF,GAAQG,EAAAA,EAAAA,kBAANC,EAC2CC,ECR9C,SAAwBL,G,IAGmBA,EAE5BA,E,IALuBM,EAAAA,UAAAA,OAAAA,QAAAA,IAAAA,UAAAA,GAAAA,UAAAA,GAAgB,WAAO,EAAGC,EAAAA,UAAAA,OAAAA,QAAAA,IAAAA,UAAAA,GAAAA,UAAAA,GAAiB,WAAO,EACvF,GAAQJ,EAAAA,EAAAA,kBAANC,EACAI,GAAyBC,EAAAA,EAAAA,MAAzBD,OACAA,GAA+BE,EAAAA,EAAAA,WAASV,SAAc,QAAdA,EAAAA,EAAOW,eAAPX,IAAAA,OAAAA,EAAAA,EAAgBY,OAAQ,IAAhEJ,OACsCK,G,GAAAA,EAAAA,EAAAA,WAAS,G,EAAA,E,+zBAAhDC,EAAuCD,EAAAA,GAAtBE,EAAsBF,EAAAA,GACxCX,GAAcF,SAAc,QAAdA,EAAAA,EAAOW,eAAPX,IAAAA,OAAAA,EAAAA,EAAgBY,OAAQ,GAEtCI,EAAsB,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pack://@openmrs/esm-patient-chart-app/./src/visit/hooks/useDeleteVisit.tsx"],"names":["visit","closeModal","patientUuid","useTranslation","t","useDeleteVisit","onVisitDelete","onVisitRestore","mutate","useSWRConfig","useVisit","patient","uuid","useState","isDeletingVisit","setIsDeletingVisit","restoreDeletedVisit","restoreVisit","then","mutateCurrentVisit","invalidateVisitAndEncounterData","globalMutate","showSnackbar","title","subtitle","visitType","display","kind","catch","initiateDeletingVisit","deleteVisit","actionButtonLabel","onActionButtonClick","finally","div","ModalHeader","ModalBody","p","className","styles","body","ModalFooter","Button","onClick","disabled","InlineLoading","description"],"sourceRoot":""}
1
+ {"version":3,"file":"3119.js","mappings":"4YAoDA,QAtC4D,Y,IAkBzCA,EAAAA,EAjBjBC,EAAAA,EAAAA,WACAC,EAAAA,EAAAA,kBAEAF,GADAG,EAAAA,YACAH,EAAAA,aAEM,GAAQI,EAAAA,EAAAA,kBAANC,EAC2CC,ECV9C,SACLN,EACAE,G,IAOoBF,E,IANpBO,EAAAA,UAAAA,OAAAA,QAAAA,IAAAA,UAAAA,GAAAA,UAAAA,GAAgB,WAAO,EACvBC,EAAAA,UAAAA,OAAAA,QAAAA,IAAAA,UAAAA,GAAAA,UAAAA,GAAiB,WAAO,EAElB,GAAQJ,EAAAA,EAAAA,kBAANC,EACAI,GAAyBC,EAAAA,EAAAA,MAAzBD,OACsCE,G,GAAAA,EAAAA,EAAAA,WAAS,G,EAAA,E,+zBAAhDC,EAAuCD,EAAAA,GAAtBE,EAAsBF,EAAAA,GACxCR,GAAcH,SAAoB,QAApBA,EAAAA,EAAac,eAAbd,IAAAA,OAAAA,EAAAA,EAAsBe,OAAQ,GACRC,GAAAA,EAAAA,EAAAA,sBAAqBb,GAAvDc,EAAkCD,EAAlCC,aAAcC,EAAoBF,EAApBE,gBAEhBC,EAAsB,YAC1BC,EAAAA,EAAAA,IAAapB,aAAAA,EAAAA,EAAae,MACvBM,MAAK,Y,IAcOrB,EAAAA,EAdJsB,EAAAA,EAAAA,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AAe,kBAQ7B,C","sources":["webpack://@openmrs/esm-patient-chart-app/./src/visit/visit-prompt/delete-visit-dialog.component.tsx","webpack://@openmrs/esm-patient-chart-app/./src/visit/hooks/useDeleteVisit.tsx"],"names":["activeVisit","closeModal","mutateActiveVisit","patientUuid","useTranslation","t","useDeleteVisit","onVisitDelete","onVisitRestore","mutate","useSWRConfig","useState","isDeletingVisit","setIsDeletingVisit","patient","uuid","usePatientChartStore","visitContext","setVisitContext","restoreDeletedVisit","restoreVisit","then","data","updatedVisit","stopDatetime","invalidateVisitByUuid","globalMutate","invalidateVisitAndEncounterData","showSnackbar","title","subtitle","visit","visitType","display","kind","catch","initiateDeletingVisit","deleteVisit","actionButtonLabel","onActionButtonClick","finally","div","ModalHeader","ModalBody","p","className","styles","body","ModalFooter","Button","onClick","disabled","InlineLoading","description"],"sourceRoot":""}
package/dist/4300.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[4300],{34300: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}}","failedToLoadCurrentVisit":"Failed loading current 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","loadingVisit":"Loading current visit...","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","noActiveVisitMessage":"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."}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[4300],{34300: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."}')}}]);