@openmrs/esm-patient-chart-app 11.3.1-pre.9447 → 11.3.1-pre.9455

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 (86) hide show
  1. package/.turbo/turbo-build.log +11 -11
  2. package/dist/2540.js +1 -1
  3. package/dist/2540.js.map +1 -1
  4. package/dist/2761.js.map +1 -1
  5. package/dist/3697.js +1 -0
  6. package/dist/3697.js.map +1 -0
  7. package/dist/4300.js +1 -1
  8. package/dist/506.js +1 -1
  9. package/dist/506.js.map +1 -1
  10. package/dist/5827.js +1 -0
  11. package/dist/5827.js.map +1 -0
  12. package/dist/6411.js +1 -1
  13. package/dist/6411.js.map +1 -1
  14. package/dist/6568.js +1 -1
  15. package/dist/6568.js.map +1 -1
  16. package/dist/6924.js +1 -1
  17. package/dist/6924.js.map +1 -1
  18. package/dist/7818.js +1 -0
  19. package/dist/7818.js.map +1 -0
  20. package/dist/7822.js +1 -1
  21. package/dist/7822.js.map +1 -1
  22. package/dist/8260.js +1 -1
  23. package/dist/8260.js.map +1 -1
  24. package/dist/{3119.js → 8278.js} +1 -1
  25. package/dist/{3119.js.map → 8278.js.map} +1 -1
  26. package/dist/8454.js +1 -1
  27. package/dist/8454.js.map +1 -1
  28. package/dist/8709.js +1 -1
  29. package/dist/8709.js.map +1 -1
  30. package/dist/{6997.js → 9294.js} +1 -1
  31. package/dist/9294.js.map +1 -0
  32. package/dist/main.js +1 -1
  33. package/dist/main.js.map +1 -1
  34. package/dist/openmrs-esm-patient-chart-app.js +1 -1
  35. package/dist/openmrs-esm-patient-chart-app.js.buildmanifest.json +134 -158
  36. package/dist/openmrs-esm-patient-chart-app.js.map +1 -1
  37. package/dist/routes.json +1 -1
  38. package/package.json +2 -2
  39. package/src/actions-buttons/mark-patient-deceased.component.tsx +2 -2
  40. package/src/actions-buttons/start-visit.component.tsx +10 -5
  41. package/src/actions-buttons/start-visit.test.tsx +9 -5
  42. package/src/clinical-views/encounter-list/encounter-list-tabs.extension.tsx +1 -1
  43. package/src/clinical-views/utils/helpers.ts +2 -2
  44. package/src/index.ts +12 -18
  45. package/src/mark-patient-deceased/mark-patient-deceased-form.test.tsx +15 -9
  46. package/src/mark-patient-deceased/mark-patient-deceased-form.workspace.tsx +147 -138
  47. package/src/patient-chart/chart-review/dashboard-view.component.tsx +2 -2
  48. package/src/patient-chart/patient-chart.component.tsx +45 -42
  49. package/src/patient-chart/patient-chart.resources.ts +52 -10
  50. package/src/patient-chart/patient-chart.scss +0 -4
  51. package/src/routes.json +17 -6
  52. package/src/visit/hooks/useDeleteVisit.tsx +1 -1
  53. package/src/visit/start-visit-button.component.tsx +2 -2
  54. package/src/visit/start-visit-button.test.tsx +2 -2
  55. package/src/visit/visit-action-items/edit-visit-details.component.tsx +29 -8
  56. package/src/visit/visit-form/exported-visit-form.workspace.tsx +2 -10
  57. package/src/visit/visit-form/visit-form.test.tsx +27 -18
  58. package/src/visit/visit-form/visit-form.workspace.tsx +38 -675
  59. package/src/visit/visit-history-table/visit-actions-cell.component.tsx +3 -2
  60. package/src/visit/visit-history-table/visit-date-cell.component.tsx +1 -0
  61. package/src/visit/visit-history-table/visit-diagnoses-cell.component.tsx +1 -0
  62. package/src/visit/visit-history-table/visit-history-table.component.tsx +3 -2
  63. package/src/visit/visit-history-table/visit-type-cell.component.tsx +1 -0
  64. package/src/visit/visit-prompt/delete-visit-dialog.test.tsx +1 -1
  65. package/src/visit/visit-prompt/{end-visit-dialog.component.tsx → end-visit-dialog.modal.tsx} +1 -1
  66. package/src/visit/visit-prompt/end-visit-dialog.test.tsx +1 -1
  67. package/src/visit/visit-prompt/{start-visit-dialog.component.tsx → start-visit-dialog.modal.tsx} +10 -4
  68. package/src/visit/visit-prompt/start-visit-dialog.test.tsx +3 -3
  69. package/src/visit/visits-widget/current-visit-summary.extension.tsx +3 -3
  70. package/src/visit/visits-widget/past-visits-components/encounters-table/encounters-table.component.tsx +12 -35
  71. package/src/visit/visits-widget/visit-context/retrospective-data-date-time-picker/retrospective-date-time-picker.component.tsx +1 -0
  72. package/src/visit/visits-widget/visit-context/visit-context-switcher.modal.tsx +2 -2
  73. package/src/visit/visits-widget/visit-context/visit-context-switcher.test.tsx +22 -20
  74. package/src/visit/visits-widget/visit-detail-overview.component.tsx +3 -2
  75. package/src/visit/visits-widget/visit-detail-overview.test.tsx +4 -4
  76. package/translations/en.json +1 -1
  77. package/dist/276.js +0 -1
  78. package/dist/276.js.map +0 -1
  79. package/dist/3905.js +0 -1
  80. package/dist/3905.js.map +0 -1
  81. package/dist/5048.js +0 -1
  82. package/dist/5048.js.map +0 -1
  83. package/dist/6997.js.map +0 -1
  84. package/dist/7810.js +0 -1
  85. package/dist/7810.js.map +0 -1
  86. /package/src/visit/visit-prompt/{delete-visit-dialog.component.tsx → delete-visit-dialog.modal.tsx} +0 -0
package/dist/8709.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[8709],{9247:(e,n,t)=>{"use strict";function a(e,n,t){return(n=function(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,n);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function r(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function o(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)t=r[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}t.d(n,{A:()=>g});var s=["width","height","viewBox"],c=["tabindex"],l={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var p=t(39067),d=t.n(p),u=t(1343),f=t.n(u);const g=f().forwardRef((function({className:e,children:n,tabIndex:t,xmlns:a="http://www.w3.org/2000/svg",preserveAspectRatio:i="xMidYMid meet",...p},d){const{tabindex:u,...g}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width,t=e.height,a=e.viewBox,i=void 0===a?"0 0 ".concat(n," ").concat(t):a,p=o(e,s),d=p.tabindex,u=o(p,c),f=r(r(r({},l),u),{},{width:n,height:t,viewBox:i});return f["aria-label"]||f["aria-labelledby"]||f.title?(f.role="img",null!=d&&(f.focusable="true",f.tabindex=d)):f["aria-hidden"]=!0,f}({...p,tabindex:t}),h=g;return e&&(h.className=e),null!=u&&(h.tabIndex="number"==typeof u?u:Number(t)),d&&(h.ref=d),a&&(h.xmlns=a),i&&(h.preserveAspectRatio=i),f().createElement("svg",h,n)}));g.displayName="Icon",g.propTypes={"aria-hidden":d().oneOfType([d().bool,d().oneOf(["true","false"])]),"aria-label":d().string,"aria-labelledby":d().string,children:d().node,className:d().string,height:d().oneOfType([d().number,d().string]),preserveAspectRatio:d().string,tabIndex:d().oneOfType([d().number,d().string]),viewBox:d().string,width:d().oneOfType([d().number,d().string]),xmlns:d().string}},9706:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(30977),i=t.n(a),r=t(95924),o=t.n(r)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-patient-chart__mark-patient-deceased-form__container___i0csf{margin:1rem}.-esm-patient-chart__mark-patient-deceased-form__container___i0csf section{margin:1rem 0}.-esm-patient-chart__mark-patient-deceased-form__heading___vfFsl{font-size:var(--cds-productive-heading-03-font-size, 1.25rem);font-weight:var(--cds-productive-heading-03-font-weight, 400);line-height:var(--cds-productive-heading-03-line-height, 1.4);letter-spacing:var(--cds-productive-heading-03-letter-spacing, 0);color:#525252;margin:1rem}.-esm-patient-chart__mark-patient-deceased-form__sectionTitle___MoR2g{font-size:var(--cds-productive-heading-02-font-size, 1rem);font-weight:var(--cds-productive-heading-02-font-weight, 600);line-height:var(--cds-productive-heading-02-line-height, 1.375);letter-spacing:var(--cds-productive-heading-02-letter-spacing, 0);color:#525252;margin:0 0 .5rem 0}.-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapper___DhRXo{margin:.5rem 0;border:.0625rem solid #e0e0e0;background-color:#f4f4f4}.-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapper___DhRXo .cds--tile{border:none !important}.-esm-patient-chart__mark-patient-deceased-form__errorOutline___h5NdS{outline:1px solid #da1e28}.-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapper___DhRXo div:nth-child(3)>div:nth-child(2){position:relative}.-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapper___DhRXo div:nth-child(3) span *{display:none}.-esm-patient-chart__mark-patient-deceased-form__radioButtonGroup___vhZyb{display:flex;flex-direction:column;align-items:flex-start;margin-top:.5rem;min-height:4rem;width:100%;font-size:var(--cds-body-short-01-font-size, 0.875rem);font-weight:var(--cds-body-short-01-font-weight, 400);line-height:var(--cds-body-short-01-line-height, 1.28572);letter-spacing:var(--cds-body-short-01-letter-spacing, 0.16px);color:#525252;background-color:#f4f4f4}.-esm-patient-chart__mark-patient-deceased-form__radioButton___QhTm-{padding:.25rem 1rem;margin:.5rem 0}.-esm-patient-chart__mark-patient-deceased-form__contentSwitcher___mO-NF{height:3rem}.-esm-patient-chart__mark-patient-deceased-form__headerGridRow___THnI2{border-bottom:.0625rem solid #e0e0e0;margin:0}.-esm-patient-chart__mark-patient-deceased-form__dataGridRow___6wepc{display:grid;grid-template-columns:50% 10% 1fr;margin:.5rem 1rem}.-esm-patient-chart__mark-patient-deceased-form__form___JI72L{display:flex;flex-direction:column;justify-content:space-between;height:100%}.-esm-patient-chart__mark-patient-deceased-form__button___3ner\\+{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-patient-chart__mark-patient-deceased-form__button___3ner\\+ .cds--inline-loading{min-height:1rem}.-esm-patient-chart__mark-patient-deceased-form__button___3ner\\+ .cds--inline-loading__text{font-size:unset}.-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapperTablet___EgGbS{padding:1.5rem 1rem;background-color:#fff}.-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapperDesktop___Ra-df{padding:0}.-esm-patient-chart__mark-patient-deceased-form__warningContainer___Ga-tH{display:flex;background-color:#fff8e1;padding:1rem;align-items:center}.-esm-patient-chart__mark-patient-deceased-form__warningIcon___1RaI\\+{display:flex;align-self:center;fill:#f1c21b;margin-right:.5rem;align-self:start}.-esm-patient-chart__mark-patient-deceased-form__warningText___LlBV\\+{font-size:.875rem}.-esm-patient-chart__mark-patient-deceased-form__datePicker___RQizm{padding-bottom:.5rem;width:100%}.-esm-patient-chart__mark-patient-deceased-form__errorMessage___OU3k5{font-size:var(--cds-label-02-font-size, 0.875rem);font-weight:var(--cds-label-02-font-weight, 400);line-height:var(--cds-label-02-line-height, 1.28572);letter-spacing:var(--cds-label-02-letter-spacing, 0.16px);color:#da1e28}.-esm-patient-chart__mark-patient-deceased-form__nonCodedCauseOfDeath___kCrgg{margin:1rem}.-esm-patient-chart__mark-patient-deceased-form__skeleton___FjLau .cds--structured-list-tbody .cds--structured-list-row:last-child{border-bottom:none}.-esm-patient-chart__mark-patient-deceased-form__tileContainer___Wh6iC{background-color:#fff;padding:3rem 0}.-esm-patient-chart__mark-patient-deceased-form__tile___kn74A{margin:auto;width:fit-content}.-esm-patient-chart__mark-patient-deceased-form__tileContent___TUMbh{display:flex;flex-direction:column;align-items:center}.-esm-patient-chart__mark-patient-deceased-form__content___I\\+Mct{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252;margin-bottom:.5rem}.-esm-patient-chart__mark-patient-deceased-form__helper___mHhaj{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);color:#525252}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/mark-patient-deceased/mark-patient-deceased-form.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,mEACE,WC0BW,CDxBX,2EACE,aAAA,CAIJ,iEEs1BI,6DAAA,CAAA,6DAAA,CAAA,6DAAA,CAAA,iEAAA,CFp1BF,aDPQ,CCQR,WCgBW,CDbb,sEEg1BI,0DAAA,CAAA,6DAAA,CAAA,+DAAA,CAAA,iEAAA,CF90BF,aDbQ,CCcR,kBAAA,CAGF,sFACE,cAAA,CACA,6BAAA,CACA,wBDzBM,CC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$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/layout';\n@use '@carbon/type';\n@use '~@openmrs/esm-styleguide/src/vars' as *;\n\n.container {\n margin: layout.$spacing-05;\n\n & section {\n margin: layout.$spacing-05 0;\n }\n}\n\n.heading {\n @include type.type-style('productive-heading-03');\n color: $text-02;\n margin: layout.$spacing-05;\n}\n\n.sectionTitle {\n @include type.type-style('productive-heading-02');\n color: $text-02;\n margin: 0 0 layout.$spacing-03 0;\n}\n\n.conceptAnswerOverviewWrapper {\n margin: layout.$spacing-03 0;\n border: 0.0625rem solid $grey-2;\n background-color: $ui-01;\n\n :global(.cds--tile) {\n border: none !important;\n }\n}\n\n.errorOutline {\n outline: 1px solid $danger;\n}\n\n.conceptAnswerOverviewWrapper div:nth-child(3) > div:nth-child(2) {\n position: relative;\n}\n\n.conceptAnswerOverviewWrapper div:nth-child(3) span * {\n display: none;\n}\n\n.radioButtonGroup {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n margin-top: layout.$spacing-03;\n min-height: layout.$spacing-10;\n width: 100%;\n @include type.type-style('body-short-01');\n color: $text-02;\n background-color: $ui-01;\n}\n\n.radioButton {\n padding: layout.$spacing-02 layout.$spacing-05;\n margin: layout.$spacing-03 0;\n}\n\n.contentSwitcher {\n height: layout.$spacing-09;\n}\n\n.headerGridRow {\n border-bottom: 0.0625rem solid $grey-2;\n margin: 0;\n}\n\n.dataGridRow {\n display: grid;\n grid-template-columns: 50% 10% 1fr;\n margin: layout.$spacing-03 layout.$spacing-05;\n}\n\n.form {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n}\n\n.button {\n height: layout.$spacing-10;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n\n :global(.cds--inline-loading) {\n min-height: layout.$spacing-05;\n }\n\n :global(.cds--inline-loading__text) {\n font-size: unset;\n }\n}\n\n.conceptAnswerOverviewWrapperTablet {\n padding: layout.$spacing-06 layout.$spacing-05;\n background-color: $ui-02;\n}\n\n.conceptAnswerOverviewWrapperDesktop {\n padding: 0;\n}\n\n.warningContainer {\n display: flex;\n background-color: $warning-background;\n padding: layout.$spacing-05;\n align-items: center;\n}\n\n.warningIcon {\n display: flex;\n align-self: center;\n fill: $inverse-support-03;\n margin-right: layout.$spacing-03;\n align-self: start;\n}\n\n.warningText {\n font-size: 0.875rem;\n}\n\n.datePicker {\n padding-bottom: layout.$spacing-03;\n width: 100%;\n}\n\n.errorMessage {\n @include type.type-style('label-02');\n color: $danger;\n}\n\n.nonCodedCauseOfDeath {\n margin: layout.$spacing-05;\n}\n\n.skeleton {\n :global(.cds--structured-list-tbody .cds--structured-list-row:last-child) {\n border-bottom: none;\n }\n}\n\n.tileContainer {\n background-color: $ui-02;\n padding: layout.$spacing-09 0;\n}\n\n.tile {\n margin: auto;\n width: fit-content;\n}\n\n.tileContent {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.content {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n margin-bottom: layout.$spacing-03;\n}\n\n.helper {\n @include type.type-style('body-compact-01');\n color: $text-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","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),o.locals={container:"-esm-patient-chart__mark-patient-deceased-form__container___i0csf",heading:"-esm-patient-chart__mark-patient-deceased-form__heading___vfFsl",sectionTitle:"-esm-patient-chart__mark-patient-deceased-form__sectionTitle___MoR2g",conceptAnswerOverviewWrapper:"-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapper___DhRXo",errorOutline:"-esm-patient-chart__mark-patient-deceased-form__errorOutline___h5NdS",radioButtonGroup:"-esm-patient-chart__mark-patient-deceased-form__radioButtonGroup___vhZyb",radioButton:"-esm-patient-chart__mark-patient-deceased-form__radioButton___QhTm-",contentSwitcher:"-esm-patient-chart__mark-patient-deceased-form__contentSwitcher___mO-NF",headerGridRow:"-esm-patient-chart__mark-patient-deceased-form__headerGridRow___THnI2",dataGridRow:"-esm-patient-chart__mark-patient-deceased-form__dataGridRow___6wepc",form:"-esm-patient-chart__mark-patient-deceased-form__form___JI72L",button:"-esm-patient-chart__mark-patient-deceased-form__button___3ner+",conceptAnswerOverviewWrapperTablet:"-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapperTablet___EgGbS",conceptAnswerOverviewWrapperDesktop:"-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapperDesktop___Ra-df",warningContainer:"-esm-patient-chart__mark-patient-deceased-form__warningContainer___Ga-tH",warningIcon:"-esm-patient-chart__mark-patient-deceased-form__warningIcon___1RaI+",warningText:"-esm-patient-chart__mark-patient-deceased-form__warningText___LlBV+",datePicker:"-esm-patient-chart__mark-patient-deceased-form__datePicker___RQizm",errorMessage:"-esm-patient-chart__mark-patient-deceased-form__errorMessage___OU3k5",nonCodedCauseOfDeath:"-esm-patient-chart__mark-patient-deceased-form__nonCodedCauseOfDeath___kCrgg",skeleton:"-esm-patient-chart__mark-patient-deceased-form__skeleton___FjLau",tileContainer:"-esm-patient-chart__mark-patient-deceased-form__tileContainer___Wh6iC",tile:"-esm-patient-chart__mark-patient-deceased-form__tile___kn74A",tileContent:"-esm-patient-chart__mark-patient-deceased-form__tileContent___TUMbh",content:"-esm-patient-chart__mark-patient-deceased-form__content___I+Mct",helper:"-esm-patient-chart__mark-patient-deceased-form__helper___mHhaj"};const s=o},36848:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},36999:(e,n,t)=>{"use strict";var a=t(36848);function i(){}function r(){}r.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,r,o){if(o!==a){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:r,resetWarningCache:i};return t.PropTypes=t,t}},39050:e=>{var n;n={},e.exports=n,n.simpleFilter=function(e,t){return t.filter((function(t){return n.test(e,t)}))},n.test=function(e,t){return null!==n.match(e,t)},n.match=function(e,n,t){t=t||{};var a,i=0,r=[],o=n.length,s=0,c=0,l=t.pre||"",p=t.post||"",d=t.caseSensitive&&n||n.toLowerCase();e=t.caseSensitive&&e||e.toLowerCase();for(var u=0;u<o;u++)a=n[u],d[u]===e[i]?(a=l+a+p,i+=1,c+=1+c):c=0,s+=c,r[r.length]=a;return i===e.length?(s=d===e?1/0:s,{rendered:r.join(""),score:s}):null},n.filter=function(e,t,a){return t&&0!==t.length?"string"!=typeof e?t:(a=a||{},t.reduce((function(t,i,r,o){var s=i;a.extract&&(s=a.extract(i));var c=n.match(e,s,a);return null!=c&&(t[t.length]={string:c.rendered,score:c.score,index:r,original:i}),t}),[]).sort((function(e,n){return n.score-e.score||e.index-n.index}))):[]}},39067:(e,n,t)=>{e.exports=t(36999)()},84520:(e,n,t)=>{"use strict";t.d(n,{H9:()=>c,II:()=>d,b4:()=>p});var a=t(1343),i=t(71123),r=t(54440);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){return null!=n&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n}function c(){var e,n,t,o,c,l,p=(n=(0,i.Ay)("".concat(r.restBaseUrl,"/systemsetting/concept.causeOfDeath"),r.openmrsFetch,{shouldRetryOnError:function(e){return s(e,Response)&&404!==e.status}}),t=n.data,o=n.error,c=n.isLoading,l=n.isValidating,(0,a.useMemo)((function(){var e,n;return{value:null!==(n=null==t||null===(e=t.data)||void 0===e?void 0:e.value)&&void 0!==n?n:void 0,isCauseOfDeathLoading:c,isCauseOfDeathValidating:l,error:o}}),[null==t||null===(e=t.data)||void 0===e?void 0:e.value,o,c,l])),d=p.isCauseOfDeathLoading,u=p.isCauseOfDeathValidating,f=function(e){var n,t,a=(0,i.Ay)("".concat(r.restBaseUrl,"/concept/").concat(e),(function(n){return e?(0,r.openmrsFetch)(n):void 0}),{shouldRetryOnError:function(e){return s(e,Response)&&404!==e.status}}),o=a.data,c=a.error,l=a.isLoading,p=a.isValidating;return{conceptAnswers:null!==(t=null==o||null===(n=o.data)||void 0===n?void 0:n.answers)&&void 0!==t?t:[],isConceptLoading:l,conceptError:c,isConceptAnswerValidating:p}}(p.value),g=f.isConceptLoading,h=f.isConceptAnswerValidating;return{causesOfDeath:f.conceptAnswers,isLoading:d||g,isValidating:h||u}}var l=function(e,n){var t=new AbortController;return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/person/").concat(e),{headers:{"Content-type":"application/json"},method:"POST",body:n,signal:t.signal})};function p(e,n,t,a){var i=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){o(e,n,t[n])}))}return e}({dead:!0,deathDate:e||null},a?{causeOfDeathNonCoded:a}:{causeOfDeath:t});return l(n,i)}function d(e){return l(e,{causeOfDeath:null,causeOfDeathNonCoded:null,dead:!1,deathDate:null})}},86495:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>N});var a=t(1343),i=t.n(a),r=t(53373),o=t.n(r),s=t(39050),c=t.n(s),l=t(72339),p=t(75198),d=t(80824),u=t(46195),f=t(81160),g=t(74632),h=t(63276),m=t(54440),y=t(84520),b=t(72591),A=t.n(b),_=t(1740),$=t.n(_),v=t(88128),w=t.n(v),C=t(30855),k=t.n(C),x=t(93051),O=t.n(x),D=t(73656),z=t.n(D),E=t(9706),M={};M.styleTagTransform=z(),M.setAttributes=k(),M.insert=w().bind(null,"head"),M.domAPI=$(),M.insertStyleElement=O(),A()(E.A,M);const B=E.A&&E.A.locals?E.A.locals:void 0;function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function S(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const N=function(e){var n,t,r,s,b,A,_=e.closeWorkspace,$=e.patientUuid,v=(0,l.useTranslation)().t,w="tablet"===(0,m.useLayoutType)(),C=(0,a.useMemo)((function(){return{patientUuid:$}}),[$]),k=(b=(0,a.useState)(""),A=2,function(e){if(Array.isArray(e))return e}(b)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,r=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(s)throw i}}return r}}(b,A)||function(e,n){if(e){if("string"==typeof e)return T(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,n):void 0}}(b,A)||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.")}()),x=k[0],O=k[1],D=(0,y.H9)(),z=D.causesOfDeath,E=D.isLoading,M=(0,m.useConfig)().freeTextFieldConceptUuid,N=(0,a.useMemo)((function(){return x&&x?c().filter(x,z,{extract:function(e){return e.display}}).sort((function(e,n){return e.score-n.score})).map((function(e){return e.original})):z}),[x,z]),F=u.z.object({causeOfDeath:u.z.string().refine((function(e){return!!e}),{message:v("causeOfDeathIsRequired","Please select the cause of death")}),deathDate:u.z.date().refine((function(e){return!!e}),{message:v("deathDateRequired","Please select the date of death")}),nonCodedCauseOfDeath:u.z.string().optional()}).refine((function(e){return!(e.causeOfDeath===M&&!e.nonCodedCauseOfDeath)}),{message:v("nonCodedCauseOfDeathRequired","Please enter the non-coded cause of death"),path:["nonCodedCauseOfDeath"]}),I=(0,d.mN)({mode:"onSubmit",resolver:(0,f.u)(F),defaultValues:{causeOfDeath:"",deathDate:new Date,nonCodedCauseOfDeath:""}}),R=I.control,W=I.formState,j=W.errors,G=W.isSubmitting,P=I.handleSubmit,q=(0,I.watch)("causeOfDeath"),L=(0,a.useCallback)((function(e){var n=e.causeOfDeath,t=e.deathDate,a=e.nonCodedCauseOfDeath;(0,y.b4)(t,$,n,a).then((function(){_(),window.location.reload()})).catch((function(e){(0,m.showSnackbar)({kind:"error",isLowContrast:!1,subtitle:null==e?void 0:e.message,title:v("errorMarkingPatientDeceased","Error marking patient deceased")})}))}),[_,$,v]);return i().createElement(p.Form,{className:B.form,onSubmit:P(L,(function(e){return console.error(e)}))},i().createElement("div",null,w&&i().createElement(p.Row,{className:B.headerGridRow},i().createElement(m.ExtensionSlot,{className:B.dataGridRow,name:"visit-form-header-slot",state:C})),i().createElement("div",{className:B.container},i().createElement("span",{className:B.warningContainer},i().createElement(g.BF,{"aria-label":v("warning","Warning"),className:B.warningIcon,size:20}),i().createElement("span",{className:B.warningText},v("markDeceasedWarning","Marking the patient as deceased will end any active visits for this patient"))),i().createElement("section",null,i().createElement("div",{className:B.sectionTitle},v("dateOfDeath","Date of death")),(null==z?void 0:z.length)?i().createElement(m.ResponsiveWrapper,null,i().createElement(d.xI,{name:"deathDate",control:R,render:function(e){var n,t,a,r,o=e.field,s=e.fieldState;return i().createElement(m.OpenmrsDatePicker,(a=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){S(e,n,t[n])}))}return e}({},o),r=null!=(r={className:B.datePicker,id:"deceasedDate","data-testid":"deceasedDate",labelText:v("date","Date"),maxDate:new Date,invalid:Boolean(null==s||null===(n=s.error)||void 0===n?void 0:n.message),invalidText:null==s||null===(t=s.error)||void 0===t?void 0:t.message})?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(r)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(r,e))})),a))}})):i().createElement(p.DatePickerSkeleton,null)),i().createElement("section",null,i().createElement("div",{className:B.sectionTitle},v("causeOfDeath","Cause of death")),i().createElement("div",{className:o()(B.conceptAnswerOverviewWrapper,(r={},S(r,B.conceptAnswerOverviewWrapperTablet,w),S(r,B.conceptAnswerOverviewWrapperDesktop,!w),S(r,B.errorOutline,null==j||null===(n=j.causeOfDeath)||void 0===n?void 0:n.message),r))},E?i().createElement(p.StructuredListSkeleton,null):null,(null==z?void 0:z.length)?i().createElement(m.ResponsiveWrapper,null,i().createElement(p.Search,{labelText:v("searchForCauseOfDeath","Search for a cause of death"),onChange:function(e){O(e.target.value)},placeholder:v("searchForCauseOfDeath","Search for a cause of death")})):null,(null==z?void 0:z.length)&&N.length>0?i().createElement(d.xI,{name:"causeOfDeath",control:R,render:function(e){var n=e.field.onChange;return i().createElement(p.RadioButtonGroup,{className:B.radioButtonGroup,name:q===M?"freeTextFieldCauseOfDeath":"codedCauseOfDeath",orientation:"vertical",onChange:n},N.map((function(e){var n=e.uuid,t=e.display,a=e.name;return i().createElement(p.RadioButton,{className:B.radioButton,id:a,key:n,labelText:t,value:n})})))}}):null,x&&0===N.length&&i().createElement("div",{className:B.tileContainer},i().createElement(p.Tile,{className:B.tile},i().createElement("div",{className:B.tileContent},i().createElement("p",{className:B.content},v("noMatchingCodedCausesOfDeath","No matching coded causes of death")),i().createElement("p",{className:B.helper},v("checkFilters","Check the filters above"))))),E||(null==z?void 0:z.length)?null:i().createElement(h.EmptyState,{displayText:v("causeOfDeath_lower","cause of death concepts configured in the system"),headerTitle:v("causeOfDeath","Cause of death")})),(null==j?void 0:j.causeOfDeath)&&i().createElement("p",{className:B.errorMessage},null==j||null===(t=j.causeOfDeath)||void 0===t?void 0:t.message))),q===M&&i().createElement("div",{className:B.nonCodedCauseOfDeath},i().createElement(d.xI,{name:"nonCodedCauseOfDeath",control:R,render:function(e){var n,t=e.field,a=t.onChange,r=t.value;return i().createElement(p.TextInput,{id:"freeTextCauseOfDeath",invalid:!!(null==j?void 0:j.nonCodedCauseOfDeath),invalidText:null==j||null===(n=j.nonCodedCauseOfDeath)||void 0===n?void 0:n.message,labelText:v("nonCodedCauseOfDeath","Non-coded cause of death"),onChange:a,placeholder:v("enterNonCodedCauseOfDeath","Enter non-coded cause of death"),value:r})}}))),i().createElement(p.ButtonSet,{className:o()((s={},S(s,B.tablet,w),S(s,B.desktop,!w),s))},i().createElement(p.Button,{className:B.button,kind:"secondary",onClick:function(){return _()}},v("discard","Discard")),i().createElement(p.Button,{className:B.button,disabled:G,kind:"primary",type:"submit"},G?i().createElement(p.InlineLoading,{description:v("saving","Saving")+"...",role:"progressbar"}):v("saveAndClose","Save and close"))))}}}]);
1
+ (globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[8709],{9247:(e,n,t)=>{"use strict";function a(e,n,t){return(n=function(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,n);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function r(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function o(e,n){if(null==e)return{};var t,a,i=function(e,n){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==n.indexOf(a))continue;t[a]=e[a]}return t}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)t=r[a],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}t.d(n,{A:()=>g});var s=["width","height","viewBox"],c=["tabindex"],l={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var p=t(39067),d=t.n(p),u=t(1343),f=t.n(u);const g=f().forwardRef((function({className:e,children:n,tabIndex:t,xmlns:a="http://www.w3.org/2000/svg",preserveAspectRatio:i="xMidYMid meet",...p},d){const{tabindex:u,...g}=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width,t=e.height,a=e.viewBox,i=void 0===a?"0 0 ".concat(n," ").concat(t):a,p=o(e,s),d=p.tabindex,u=o(p,c),f=r(r(r({},l),u),{},{width:n,height:t,viewBox:i});return f["aria-label"]||f["aria-labelledby"]||f.title?(f.role="img",null!=d&&(f.focusable="true",f.tabindex=d)):f["aria-hidden"]=!0,f}({...p,tabindex:t}),h=g;return e&&(h.className=e),null!=u&&(h.tabIndex="number"==typeof u?u:Number(t)),d&&(h.ref=d),a&&(h.xmlns=a),i&&(h.preserveAspectRatio=i),f().createElement("svg",h,n)}));g.displayName="Icon",g.propTypes={"aria-hidden":d().oneOfType([d().bool,d().oneOf(["true","false"])]),"aria-label":d().string,"aria-labelledby":d().string,children:d().node,className:d().string,height:d().oneOfType([d().number,d().string]),preserveAspectRatio:d().string,tabIndex:d().oneOfType([d().number,d().string]),viewBox:d().string,width:d().oneOfType([d().number,d().string]),xmlns:d().string}},9706:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(30977),i=t.n(a),r=t(95924),o=t.n(r)()(i());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-patient-chart__mark-patient-deceased-form__container___i0csf{margin:1rem}.-esm-patient-chart__mark-patient-deceased-form__container___i0csf section{margin:1rem 0}.-esm-patient-chart__mark-patient-deceased-form__heading___vfFsl{font-size:var(--cds-productive-heading-03-font-size, 1.25rem);font-weight:var(--cds-productive-heading-03-font-weight, 400);line-height:var(--cds-productive-heading-03-line-height, 1.4);letter-spacing:var(--cds-productive-heading-03-letter-spacing, 0);color:#525252;margin:1rem}.-esm-patient-chart__mark-patient-deceased-form__sectionTitle___MoR2g{font-size:var(--cds-productive-heading-02-font-size, 1rem);font-weight:var(--cds-productive-heading-02-font-weight, 600);line-height:var(--cds-productive-heading-02-line-height, 1.375);letter-spacing:var(--cds-productive-heading-02-letter-spacing, 0);color:#525252;margin:0 0 .5rem 0}.-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapper___DhRXo{margin:.5rem 0;border:.0625rem solid #e0e0e0;background-color:#f4f4f4}.-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapper___DhRXo .cds--tile{border:none !important}.-esm-patient-chart__mark-patient-deceased-form__errorOutline___h5NdS{outline:1px solid #da1e28}.-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapper___DhRXo div:nth-child(3)>div:nth-child(2){position:relative}.-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapper___DhRXo div:nth-child(3) span *{display:none}.-esm-patient-chart__mark-patient-deceased-form__radioButtonGroup___vhZyb{display:flex;flex-direction:column;align-items:flex-start;margin-top:.5rem;min-height:4rem;width:100%;font-size:var(--cds-body-short-01-font-size, 0.875rem);font-weight:var(--cds-body-short-01-font-weight, 400);line-height:var(--cds-body-short-01-line-height, 1.28572);letter-spacing:var(--cds-body-short-01-letter-spacing, 0.16px);color:#525252;background-color:#f4f4f4}.-esm-patient-chart__mark-patient-deceased-form__radioButton___QhTm-{padding:.25rem 1rem;margin:.5rem 0}.-esm-patient-chart__mark-patient-deceased-form__contentSwitcher___mO-NF{height:3rem}.-esm-patient-chart__mark-patient-deceased-form__headerGridRow___THnI2{border-bottom:.0625rem solid #e0e0e0;margin:0}.-esm-patient-chart__mark-patient-deceased-form__dataGridRow___6wepc{display:grid;grid-template-columns:50% 10% 1fr;margin:.5rem 1rem}.-esm-patient-chart__mark-patient-deceased-form__form___JI72L{display:flex;flex-direction:column;justify-content:space-between;height:100%}.-esm-patient-chart__mark-patient-deceased-form__button___3ner\\+{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-patient-chart__mark-patient-deceased-form__button___3ner\\+ .cds--inline-loading{min-height:1rem}.-esm-patient-chart__mark-patient-deceased-form__button___3ner\\+ .cds--inline-loading__text{font-size:unset}.-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapperTablet___EgGbS{padding:1.5rem 1rem;background-color:#fff}.-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapperDesktop___Ra-df{padding:0}.-esm-patient-chart__mark-patient-deceased-form__warningContainer___Ga-tH{display:flex;background-color:#fff8e1;padding:1rem;align-items:center}.-esm-patient-chart__mark-patient-deceased-form__warningIcon___1RaI\\+{display:flex;align-self:center;fill:#f1c21b;margin-right:.5rem;align-self:start}.-esm-patient-chart__mark-patient-deceased-form__warningText___LlBV\\+{font-size:.875rem}.-esm-patient-chart__mark-patient-deceased-form__datePicker___RQizm{padding-bottom:.5rem;width:100%}.-esm-patient-chart__mark-patient-deceased-form__errorMessage___OU3k5{font-size:var(--cds-label-02-font-size, 0.875rem);font-weight:var(--cds-label-02-font-weight, 400);line-height:var(--cds-label-02-line-height, 1.28572);letter-spacing:var(--cds-label-02-letter-spacing, 0.16px);color:#da1e28}.-esm-patient-chart__mark-patient-deceased-form__nonCodedCauseOfDeath___kCrgg{margin:1rem}.-esm-patient-chart__mark-patient-deceased-form__skeleton___FjLau .cds--structured-list-tbody .cds--structured-list-row:last-child{border-bottom:none}.-esm-patient-chart__mark-patient-deceased-form__tileContainer___Wh6iC{background-color:#fff;padding:3rem 0}.-esm-patient-chart__mark-patient-deceased-form__tile___kn74A{margin:auto;width:fit-content}.-esm-patient-chart__mark-patient-deceased-form__tileContent___TUMbh{display:flex;flex-direction:column;align-items:center}.-esm-patient-chart__mark-patient-deceased-form__content___I\\+Mct{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252;margin-bottom:.5rem}.-esm-patient-chart__mark-patient-deceased-form__helper___mHhaj{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);color:#525252}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/mark-patient-deceased/mark-patient-deceased-form.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,mEACE,WC0BW,CDxBX,2EACE,aAAA,CAIJ,iEEs1BI,6DAAA,CAAA,6DAAA,CAAA,6DAAA,CAAA,iEAAA,CFp1BF,aDPQ,CCQR,WCgBW,CDbb,sEEg1BI,0DAAA,CAAA,6DAAA,CAAA,+DAAA,CAAA,iEAAA,CF90BF,aDbQ,CCcR,kBAAA,CAGF,sFACE,cAAA,CACA,6BAAA,CACA,wBDzBM,CC2BN,iGACE,sBAAA,CAIJ,sEACE,yBAAA,CAGF,wHACE,iBAAA,CAGF,8GACE,YAAA,CAGF,0EACE,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,gBC7BW,CD8BX,eCKW,CDJX,UAAA,CE8yBE,sDAAA,CAAA,qDAAA,CAAA,yDAAA,CAAA,8DAAA,CF5yBF,aD/CQ,CCgDR,wBDrDM,CCwDR,qEACE,mBAAA,CACA,cAAA,CAGF,yEACE,WCbW,CDgBb,uEACE,oCAAA,CACA,QAAA,CAGF,qEACE,YAAA,CACA,iCAAA,CACA,iBAAA,CAGF,8DACE,YAAA,CACA,qBAAA,CACA,6BAAA,CACA,WAAA,CAGF,iEACE,WC9BW,CD+BX,YAAA,CACA,wBAAA,CACA,oBAAA,CACA,aAAA,CAEA,sFACE,eC9DS,CDiEX,4FACE,eAAA,CAIJ,4FACE,mBAAA,CACA,qBDpGM,CCuGR,6FACE,SAAA,CAGF,0EACE,YAAA,CACA,wBD5FmB,CC6FnB,YClFW,CDmFX,kBAAA,CAGF,sEACE,YAAA,CACA,iBAAA,CACA,YDrGmB,CCsGnB,kBCpGW,CDqGX,gBAAA,CAGF,sEACE,iBAAA,CAGF,oEACE,oBC7GW,CD8GX,UAAA,CAGF,sEE4tBI,iDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CF1tBF,aDlHO,CCqHT,8EACE,WC7GW,CDiHX,mIACE,kBAAA,CAIJ,uEACE,qBDnJM,CCoJN,cAAA,CAGF,8DACE,WAAA,CACA,iBAAA,CAGF,qEACE,YAAA,CACA,qBAAA,CACA,kBAAA,CAGF,kEE6rBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CF3rBF,aDhKQ,CCiKR,mBCnJW,CDsJb,gEEurBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CFrrBF,aDtKQ",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/layout';\n@use '@carbon/type';\n@use '~@openmrs/esm-styleguide/src/vars' as *;\n\n.container {\n margin: layout.$spacing-05;\n\n & section {\n margin: layout.$spacing-05 0;\n }\n}\n\n.heading {\n @include type.type-style('productive-heading-03');\n color: $text-02;\n margin: layout.$spacing-05;\n}\n\n.sectionTitle {\n @include type.type-style('productive-heading-02');\n color: $text-02;\n margin: 0 0 layout.$spacing-03 0;\n}\n\n.conceptAnswerOverviewWrapper {\n margin: layout.$spacing-03 0;\n border: 0.0625rem solid $grey-2;\n background-color: $ui-01;\n\n :global(.cds--tile) {\n border: none !important;\n }\n}\n\n.errorOutline {\n outline: 1px solid $danger;\n}\n\n.conceptAnswerOverviewWrapper div:nth-child(3) > div:nth-child(2) {\n position: relative;\n}\n\n.conceptAnswerOverviewWrapper div:nth-child(3) span * {\n display: none;\n}\n\n.radioButtonGroup {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n margin-top: layout.$spacing-03;\n min-height: layout.$spacing-10;\n width: 100%;\n @include type.type-style('body-short-01');\n color: $text-02;\n background-color: $ui-01;\n}\n\n.radioButton {\n padding: layout.$spacing-02 layout.$spacing-05;\n margin: layout.$spacing-03 0;\n}\n\n.contentSwitcher {\n height: layout.$spacing-09;\n}\n\n.headerGridRow {\n border-bottom: 0.0625rem solid $grey-2;\n margin: 0;\n}\n\n.dataGridRow {\n display: grid;\n grid-template-columns: 50% 10% 1fr;\n margin: layout.$spacing-03 layout.$spacing-05;\n}\n\n.form {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n}\n\n.button {\n height: layout.$spacing-10;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n\n :global(.cds--inline-loading) {\n min-height: layout.$spacing-05;\n }\n\n :global(.cds--inline-loading__text) {\n font-size: unset;\n }\n}\n\n.conceptAnswerOverviewWrapperTablet {\n padding: layout.$spacing-06 layout.$spacing-05;\n background-color: $ui-02;\n}\n\n.conceptAnswerOverviewWrapperDesktop {\n padding: 0;\n}\n\n.warningContainer {\n display: flex;\n background-color: $warning-background;\n padding: layout.$spacing-05;\n align-items: center;\n}\n\n.warningIcon {\n display: flex;\n align-self: center;\n fill: $inverse-support-03;\n margin-right: layout.$spacing-03;\n align-self: start;\n}\n\n.warningText {\n font-size: 0.875rem;\n}\n\n.datePicker {\n padding-bottom: layout.$spacing-03;\n width: 100%;\n}\n\n.errorMessage {\n @include type.type-style('label-02');\n color: $danger;\n}\n\n.nonCodedCauseOfDeath {\n margin: layout.$spacing-05;\n}\n\n.skeleton {\n :global(.cds--structured-list-tbody .cds--structured-list-row:last-child) {\n border-bottom: none;\n }\n}\n\n.tileContainer {\n background-color: $ui-02;\n padding: layout.$spacing-09 0;\n}\n\n.tile {\n margin: auto;\n width: fit-content;\n}\n\n.tileContent {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.content {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n margin-bottom: layout.$spacing-03;\n}\n\n.helper {\n @include type.type-style('body-compact-01');\n color: $text-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","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),o.locals={container:"-esm-patient-chart__mark-patient-deceased-form__container___i0csf",heading:"-esm-patient-chart__mark-patient-deceased-form__heading___vfFsl",sectionTitle:"-esm-patient-chart__mark-patient-deceased-form__sectionTitle___MoR2g",conceptAnswerOverviewWrapper:"-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapper___DhRXo",errorOutline:"-esm-patient-chart__mark-patient-deceased-form__errorOutline___h5NdS",radioButtonGroup:"-esm-patient-chart__mark-patient-deceased-form__radioButtonGroup___vhZyb",radioButton:"-esm-patient-chart__mark-patient-deceased-form__radioButton___QhTm-",contentSwitcher:"-esm-patient-chart__mark-patient-deceased-form__contentSwitcher___mO-NF",headerGridRow:"-esm-patient-chart__mark-patient-deceased-form__headerGridRow___THnI2",dataGridRow:"-esm-patient-chart__mark-patient-deceased-form__dataGridRow___6wepc",form:"-esm-patient-chart__mark-patient-deceased-form__form___JI72L",button:"-esm-patient-chart__mark-patient-deceased-form__button___3ner+",conceptAnswerOverviewWrapperTablet:"-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapperTablet___EgGbS",conceptAnswerOverviewWrapperDesktop:"-esm-patient-chart__mark-patient-deceased-form__conceptAnswerOverviewWrapperDesktop___Ra-df",warningContainer:"-esm-patient-chart__mark-patient-deceased-form__warningContainer___Ga-tH",warningIcon:"-esm-patient-chart__mark-patient-deceased-form__warningIcon___1RaI+",warningText:"-esm-patient-chart__mark-patient-deceased-form__warningText___LlBV+",datePicker:"-esm-patient-chart__mark-patient-deceased-form__datePicker___RQizm",errorMessage:"-esm-patient-chart__mark-patient-deceased-form__errorMessage___OU3k5",nonCodedCauseOfDeath:"-esm-patient-chart__mark-patient-deceased-form__nonCodedCauseOfDeath___kCrgg",skeleton:"-esm-patient-chart__mark-patient-deceased-form__skeleton___FjLau",tileContainer:"-esm-patient-chart__mark-patient-deceased-form__tileContainer___Wh6iC",tile:"-esm-patient-chart__mark-patient-deceased-form__tile___kn74A",tileContent:"-esm-patient-chart__mark-patient-deceased-form__tileContent___TUMbh",content:"-esm-patient-chart__mark-patient-deceased-form__content___I+Mct",helper:"-esm-patient-chart__mark-patient-deceased-form__helper___mHhaj"};const s=o},36848:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},36999:(e,n,t)=>{"use strict";var a=t(36848);function i(){}function r(){}r.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,r,o){if(o!==a){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:r,resetWarningCache:i};return t.PropTypes=t,t}},39050:e=>{var n;n={},e.exports=n,n.simpleFilter=function(e,t){return t.filter((function(t){return n.test(e,t)}))},n.test=function(e,t){return null!==n.match(e,t)},n.match=function(e,n,t){t=t||{};var a,i=0,r=[],o=n.length,s=0,c=0,l=t.pre||"",p=t.post||"",d=t.caseSensitive&&n||n.toLowerCase();e=t.caseSensitive&&e||e.toLowerCase();for(var u=0;u<o;u++)a=n[u],d[u]===e[i]?(a=l+a+p,i+=1,c+=1+c):c=0,s+=c,r[r.length]=a;return i===e.length?(s=d===e?1/0:s,{rendered:r.join(""),score:s}):null},n.filter=function(e,t,a){return t&&0!==t.length?"string"!=typeof e?t:(a=a||{},t.reduce((function(t,i,r,o){var s=i;a.extract&&(s=a.extract(i));var c=n.match(e,s,a);return null!=c&&(t[t.length]={string:c.rendered,score:c.score,index:r,original:i}),t}),[]).sort((function(e,n){return n.score-e.score||e.index-n.index}))):[]}},39067:(e,n,t)=>{e.exports=t(36999)()},84520:(e,n,t)=>{"use strict";t.d(n,{H9:()=>c,II:()=>d,b4:()=>p});var a=t(1343),i=t(71123),r=t(54440);function o(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function s(e,n){return null!=n&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n}function c(){var e,n,t,o,c,l,p=(n=(0,i.Ay)("".concat(r.restBaseUrl,"/systemsetting/concept.causeOfDeath"),r.openmrsFetch,{shouldRetryOnError:function(e){return s(e,Response)&&404!==e.status}}),t=n.data,o=n.error,c=n.isLoading,l=n.isValidating,(0,a.useMemo)((function(){var e,n;return{value:null!==(n=null==t||null===(e=t.data)||void 0===e?void 0:e.value)&&void 0!==n?n:void 0,isCauseOfDeathLoading:c,isCauseOfDeathValidating:l,error:o}}),[null==t||null===(e=t.data)||void 0===e?void 0:e.value,o,c,l])),d=p.isCauseOfDeathLoading,u=p.isCauseOfDeathValidating,f=function(e){var n,t,a=(0,i.Ay)("".concat(r.restBaseUrl,"/concept/").concat(e),(function(n){return e?(0,r.openmrsFetch)(n):void 0}),{shouldRetryOnError:function(e){return s(e,Response)&&404!==e.status}}),o=a.data,c=a.error,l=a.isLoading,p=a.isValidating;return{conceptAnswers:null!==(t=null==o||null===(n=o.data)||void 0===n?void 0:n.answers)&&void 0!==t?t:[],isConceptLoading:l,conceptError:c,isConceptAnswerValidating:p}}(p.value),g=f.isConceptLoading,h=f.isConceptAnswerValidating;return{causesOfDeath:f.conceptAnswers,isLoading:d||g,isValidating:h||u}}var l=function(e,n){var t=new AbortController;return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/person/").concat(e),{headers:{"Content-type":"application/json"},method:"POST",body:n,signal:t.signal})};function p(e,n,t,a){var i=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){o(e,n,t[n])}))}return e}({dead:!0,deathDate:e||null},a?{causeOfDeathNonCoded:a}:{causeOfDeath:t});return l(n,i)}function d(e){return l(e,{causeOfDeath:null,causeOfDeathNonCoded:null,dead:!1,deathDate:null})}},86495:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>N});var a=t(1343),i=t.n(a),r=t(53373),o=t.n(r),s=t(39050),c=t.n(s),l=t(72339),p=t(75198),d=t(80824),u=t(46195),f=t(81160),g=t(74632),h=t(63276),m=t(54440),y=t(84520),b=t(72591),A=t.n(b),_=t(1740),$=t.n(_),v=t(88128),w=t.n(v),C=t(30855),k=t.n(C),x=t(93051),O=t.n(x),D=t(73656),z=t.n(D),E=t(9706),M={};M.styleTagTransform=z(),M.setAttributes=k(),M.insert=w().bind(null,"head"),M.domAPI=$(),M.insertStyleElement=O(),A()(E.A,M);const B=E.A&&E.A.locals?E.A.locals:void 0;function T(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function S(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const N=function(e){var n,t,r,s,b,A,_=e.closeWorkspace,$=e.groupProps.patientUuid,v=(0,l.useTranslation)().t,w="tablet"===(0,m.useLayoutType)(),C=(0,a.useMemo)((function(){return{patientUuid:$}}),[$]),k=(b=(0,a.useState)(""),A=2,function(e){if(Array.isArray(e))return e}(b)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,r=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(s)throw i}}return r}}(b,A)||function(e,n){if(e){if("string"==typeof e)return T(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,n):void 0}}(b,A)||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.")}()),x=k[0],O=k[1],D=(0,y.H9)(),z=D.causesOfDeath,E=D.isLoading,M=(0,m.useConfig)().freeTextFieldConceptUuid,N=(0,a.useMemo)((function(){return x&&x?c().filter(x,z,{extract:function(e){return e.display}}).sort((function(e,n){return e.score-n.score})).map((function(e){return e.original})):z}),[x,z]),F=u.z.object({causeOfDeath:u.z.string().refine((function(e){return!!e}),{message:v("causeOfDeathIsRequired","Please select the cause of death")}),deathDate:u.z.date().refine((function(e){return!!e}),{message:v("deathDateRequired","Please select the date of death")}),nonCodedCauseOfDeath:u.z.string().optional()}).refine((function(e){return!(e.causeOfDeath===M&&!e.nonCodedCauseOfDeath)}),{message:v("nonCodedCauseOfDeathRequired","Please enter the non-coded cause of death"),path:["nonCodedCauseOfDeath"]}),I=(0,d.mN)({mode:"onSubmit",resolver:(0,f.u)(F),defaultValues:{causeOfDeath:"",deathDate:new Date,nonCodedCauseOfDeath:""}}),W=I.control,P=I.formState,R=P.errors,j=P.isSubmitting,G=P.isDirty,q=I.handleSubmit,L=(0,I.watch)("causeOfDeath"),U=(0,a.useCallback)((function(e){var n=e.causeOfDeath,t=e.deathDate,a=e.nonCodedCauseOfDeath;(0,y.b4)(t,$,n,a).then((function(){_(),window.location.reload()})).catch((function(e){(0,m.showSnackbar)({kind:"error",isLowContrast:!1,subtitle:null==e?void 0:e.message,title:v("errorMarkingPatientDeceased","Error marking patient deceased")})}))}),[_,$,v]);return i().createElement(m.Workspace2,{title:v("markPatientDeceased","Mark patient deceased"),hasUnsavedChanges:G},i().createElement(p.Form,{className:B.form,onSubmit:q(U,(function(e){return console.error(e)}))},i().createElement("div",null,w&&i().createElement(p.Row,{className:B.headerGridRow},i().createElement(m.ExtensionSlot,{className:B.dataGridRow,name:"visit-form-header-slot",state:C})),i().createElement("div",{className:B.container},i().createElement("span",{className:B.warningContainer},i().createElement(g.BF,{"aria-label":v("warning","Warning"),className:B.warningIcon,size:20}),i().createElement("span",{className:B.warningText},v("markDeceasedWarning","Marking the patient as deceased will end any active visits for this patient"))),i().createElement("section",null,i().createElement("div",{className:B.sectionTitle},v("dateOfDeath","Date of death")),(null==z?void 0:z.length)?i().createElement(m.ResponsiveWrapper,null,i().createElement(d.xI,{name:"deathDate",control:W,render:function(e){var n,t,a,r,o=e.field,s=e.fieldState;return i().createElement(m.OpenmrsDatePicker,(a=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){S(e,n,t[n])}))}return e}({},o),r=null!=(r={className:B.datePicker,id:"deceasedDate","data-testid":"deceasedDate",labelText:v("date","Date"),maxDate:new Date,invalid:Boolean(null==s||null===(n=s.error)||void 0===n?void 0:n.message),invalidText:null==s||null===(t=s.error)||void 0===t?void 0:t.message})?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(r)).forEach((function(e){Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(r,e))})),a))}})):i().createElement(p.DatePickerSkeleton,null)),i().createElement("section",null,i().createElement("div",{className:B.sectionTitle},v("causeOfDeath","Cause of death")),i().createElement("div",{className:o()(B.conceptAnswerOverviewWrapper,(r={},S(r,B.conceptAnswerOverviewWrapperTablet,w),S(r,B.conceptAnswerOverviewWrapperDesktop,!w),S(r,B.errorOutline,null==R||null===(n=R.causeOfDeath)||void 0===n?void 0:n.message),r))},E?i().createElement(p.StructuredListSkeleton,null):null,(null==z?void 0:z.length)?i().createElement(m.ResponsiveWrapper,null,i().createElement(p.Search,{labelText:v("searchForCauseOfDeath","Search for a cause of death"),onChange:function(e){O(e.target.value)},placeholder:v("searchForCauseOfDeath","Search for a cause of death")})):null,(null==z?void 0:z.length)&&N.length>0?i().createElement(d.xI,{name:"causeOfDeath",control:W,render:function(e){var n=e.field.onChange;return i().createElement(p.RadioButtonGroup,{className:B.radioButtonGroup,name:L===M?"freeTextFieldCauseOfDeath":"codedCauseOfDeath",orientation:"vertical",onChange:n},N.map((function(e){var n=e.uuid,t=e.display,a=e.name;return i().createElement(p.RadioButton,{className:B.radioButton,id:a,key:n,labelText:t,value:n})})))}}):null,x&&0===N.length&&i().createElement("div",{className:B.tileContainer},i().createElement(p.Tile,{className:B.tile},i().createElement("div",{className:B.tileContent},i().createElement("p",{className:B.content},v("noMatchingCodedCausesOfDeath","No matching coded causes of death")),i().createElement("p",{className:B.helper},v("checkFilters","Check the filters above"))))),E||(null==z?void 0:z.length)?null:i().createElement(h.EmptyState,{displayText:v("causeOfDeath_lower","cause of death concepts configured in the system"),headerTitle:v("causeOfDeath","Cause of death")})),(null==R?void 0:R.causeOfDeath)&&i().createElement("p",{className:B.errorMessage},null==R||null===(t=R.causeOfDeath)||void 0===t?void 0:t.message))),L===M&&i().createElement("div",{className:B.nonCodedCauseOfDeath},i().createElement(d.xI,{name:"nonCodedCauseOfDeath",control:W,render:function(e){var n,t=e.field,a=t.onChange,r=t.value;return i().createElement(p.TextInput,{id:"freeTextCauseOfDeath",invalid:!!(null==R?void 0:R.nonCodedCauseOfDeath),invalidText:null==R||null===(n=R.nonCodedCauseOfDeath)||void 0===n?void 0:n.message,labelText:v("nonCodedCauseOfDeath","Non-coded cause of death"),onChange:a,placeholder:v("enterNonCodedCauseOfDeath","Enter non-coded cause of death"),value:r})}}))),i().createElement(p.ButtonSet,{className:o()((s={},S(s,B.tablet,w),S(s,B.desktop,!w),s))},i().createElement(p.Button,{className:B.button,kind:"secondary",onClick:function(){return _()}},v("discard","Discard")),i().createElement(p.Button,{className:B.button,disabled:j,kind:"primary",type:"submit"},j?i().createElement(p.InlineLoading,{description:v("saving","Saving")+"...",role:"progressbar"}):v("saveAndClose","Save and close")))))}}}]);
package/dist/8709.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"8709.js","mappings":"4JAAA,SAASA,EAAgBC,EAAGC,EAAGC,GAC7B,OAAQD,EA0DV,SAAwBC,GACtB,IAAIC,EAXN,SAAsBD,EAAGD,GACvB,GAAI,iBAAmBC,IAAMA,EAAG,OAAOA,EACvC,IAAIF,EAAIE,EAAEE,OAAOC,aACjB,QAAI,IAAWL,EAAG,CAChB,IAAIG,EAAIH,EAAEM,KAAKJ,EAAGD,GAClB,GAAI,iBAAmBE,EAAG,OAAOA,EACjC,MAAM,IAAII,UAAU,+CACtB,CACA,OAAyBC,OAAiBN,EAC5C,CAEUO,CAAaP,EAAG,UACxB,MAAO,iBAAmBC,EAAIA,EAAIA,EAAI,EACxC,CA7DcO,CAAeT,MAAOD,EAAIW,OAAOC,eAAeZ,EAAGC,EAAG,CAChEY,MAAOX,EACPY,YAAY,EACZC,cAAc,EACdC,UAAU,IACPhB,EAAEC,GAAKC,EAAGF,CACjB,CACA,SAASiB,EAAQjB,EAAGC,GAClB,IAAIC,EAAIS,OAAOO,KAAKlB,GACpB,GAAIW,OAAOQ,sBAAuB,CAChC,IAAIC,EAAIT,OAAOQ,sBAAsBnB,GACrCC,IAAMmB,EAAIA,EAAEC,QAAO,SAAUpB,GAC3B,OAAOU,OAAOW,yBAAyBtB,EAAGC,GAAGa,UAC/C,KAAKZ,EAAEqB,KAAKC,MAAMtB,EAAGkB,EACvB,CACA,OAAOlB,CACT,CACA,SAASuB,EAAezB,GACtB,IAAK,IAAIC,EAAI,EAAGA,E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EAAAA,EAAQR,eAAgB,kBAACgH,IAAAA,CAAE1P,UAAWkM,EAAO8D,cAAe9G,SAAoB,QAApBA,EAAAA,EAAQR,oBAARQ,IAAAA,OAAAA,EAAAA,EAAsBqB,WAGtFc,IAAsBxB,GACrB,kBAACwC,MAAAA,CAAIrM,UAAWkM,EAAO5D,sBACrB,kBAACgF,EAAAA,GAAUA,CACT7K,KAAK,uBACLwI,QAASA,EACTsC,OAAQ,Y,IAISrE,E,IAJNuE,MAASkB,EAAAA,EAAAA,SAAUzQ,EAAAA,EAAAA,M,OAC5B,kBAAC+R,EAAAA,UAASA,CACRvO,GAAG,uBACHqM,WAAW7E,aAAAA,EAAAA,EAAQZ,sBACnB2F,YAAa/E,SAA4B,QAA5BA,EAAAA,EAAQZ,4BAARY,IAAAA,OAAAA,EAAAA,EAA8BqB,QAC3CsD,UAAWtQ,EAAE,uBAAwB,4BACrCoR,SAAUA,EACVG,YAAavR,EAAE,4BAA6B,kCAC5CW,MAAOA,G,MAOnB,kBAACgS,EAAAA,UAASA,CAAClQ,UAAWmO,KAAW,KAAE,EAAF,EAAGjC,EAAOiE,OAAS7G,GAAU,EAA7B,EAA8B4C,EAAOkE,SAAW9G,GAAhD,KAC/B,kBAAC+G,EAAAA,OAAMA,CAACrQ,UAAWkM,EAAOoE,OAAQxE,KAAK,YAAYyE,QAAS,W,OAAMpH,G,GAC/D5L,EAAE,UAAW,YAEhB,kBAAC8S,EAAAA,OAAMA,CAACrQ,UAAWkM,EAAOoE,OAAQE,SAAUrF,EAAcW,KAAK,UAAU2E,KAAK,UAC3EtF,EACC,kBAACuF,EAAAA,cAAaA,CAACC,YAAapT,EAAE,SAAU,UAAY,MAAO2D,KAAK,gBAEhE3D,EAAE,eAAgB,oBAM9B,C","sources":["webpack://@openmrs/esm-patient-chart-app/../../node_modules/@carbon/icon-helpers/es/index.js","webpack://@openmrs/esm-patient-chart-app/../../node_modules/@carbon/icons-react/es/Icon.js","webpack://@openmrs/esm-patient-chart-app/./src/mark-patient-deceased/mark-patient-deceased-form.scss","webpack://@openmrs/esm-patient-chart-app/../../node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://@openmrs/esm-patient-chart-app/../../node_modules/prop-types/factoryWithThrowingShims.js","webpack://@openmrs/esm-patient-chart-app/../../node_modules/fuzzy/lib/fuzzy.js","webpack://@openmrs/esm-patient-chart-app/../../node_modules/prop-types/index.js","webpack://@openmrs/esm-patient-chart-app/./src/data.resource.ts","webpack://@openmrs/esm-patient-chart-app/./src/mark-patient-deceased/mark-patient-deceased-form.scss?3653","webpack://@openmrs/esm-patient-chart-app/./src/mark-patient-deceased/mark-patient-deceased-form.workspace.tsx"],"names":["_defineProperty","e","r","t","i","Symbol","toPrimitive","call","TypeError","String","_toPrimitive","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","ownKeys","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","push","apply","_objectSpread2","arguments","length","forEach","getOwnPropertyDescriptors","defineProperties","_objectWithoutProperties","n","hasOwnProperty","indexOf","_objectWithoutPropertiesLoose","propertyIsEnumerable","_excluded","_excluded2","defaultAttributes","focusable","preserveAspectRatio","Icon","className","children","tabIndex","xmlns","rest","ref","tabindex","attrs","_ref","undefined","width","height","_ref$viewBox","viewBox","concat","attributes","iconAttributes","title","role","getAttributes","props","Number","displayName","propTypes","___CSS_LOADER_EXPORT___","module","id","locals","exports","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","fuzzy","simpleFilter","pattern","str","test","match","opts","ch","patternIdx","result","len","totalScore","currScore","pre","post","compareString","caseSensitive","toLowerCase","idx","Infinity","rendered","join","score","arr","reduce","prev","extract","index","original","sort","a","b","useCausesOfDeath","data","useSWR","error","isLoading","isValidating","useCauseOfDeathConcept","restBaseUrl","openmrsFetch","shouldRetryOnError","Response","status","useMemo","isCauseOfDeathLoading","isCauseOfDeathValidating","useConceptAnswers","conceptUuid","url","conceptAnswers","answers","isConceptLoading","conceptError","isConceptAnswerValidating","causesOfDeath","changePatientDeathStatus","personUuid","payload","abortController","AbortController","headers","method","body","signal","markPatientDeceased","deceasedDate","selectedCauseOfDeathValue","nonCodedCauseOfDeath","dead","deathDate","causeOfDeathNonCoded","causeOfDeath","markPatientAlive","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","errors","closeWorkspace","patientUuid","useTranslation","isTablet","useLayoutType","memoizedPatientUuid","useState","searchTerm","setSearchTerm","useConfig","freeTextFieldConceptUuid","filteredCausesOfDeath","causeOfDeathConcept","display","r1","r2","map","schema","z","refine","message","date","optional","path","useForm","mode","resolver","zodResolver","defaultValues","Date","control","formState","isSubmitting","handleSubmit","causeOfDeathValue","watch","onSubmit","useCallback","then","window","reload","catch","showSnackbar","kind","isLowContrast","subtitle","Form","styles","form","console","div","Row","headerGridRow","ExtensionSlot","dataGridRow","state","container","span","warningContainer","WarningFilled","aria-label","warningIcon","size","warningText","section","sectionTitle","ResponsiveWrapper","Controller","render","fieldState","field","OpenmrsDatePicker","datePicker","data-testid","labelText","maxDate","invalid","Boolean","invalidText","DatePickerSkeleton","classNames","conceptAnswerOverviewWrapper","conceptAnswerOverviewWrapperTablet","conceptAnswerOverviewWrapperDesktop","errorOutline","isLoadingCausesOfDeath","StructuredListSkeleton","Search","onChange","event","target","placeholder","RadioButtonGroup","radioButtonGroup","orientation","uuid","RadioButton","radioButton","key","tileContainer","Tile","tile","tileContent","p","content","helper","EmptyState","displayText","headerTitle","errorMessage","TextInput","ButtonSet","tablet","desktop","Button","button","onClick","disabled","type","InlineLoading","description"],"sourceRoot":""}
1
+ {"version":3,"file":"8709.js","mappings":"4JAAA,SAASA,EAAgBC,EAAGC,EAAGC,GAC7B,OAAQD,EA0DV,SAAwBC,GACtB,IAAIC,EAX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,EAAAA,EAAAA,SAAU7Q,EAAAA,EAAAA,M,OAC5B,kBAACmS,EAAAA,UAASA,CACR3O,GAAG,uBACHyM,WAAWjF,aAAAA,EAAAA,EAAQZ,sBACnB+F,YAAanF,SAA4B,QAA5BA,EAAAA,EAAQZ,4BAARY,IAAAA,OAAAA,EAAAA,EAA8BsB,QAC3CyD,UAAW1Q,EAAE,uBAAwB,4BACrCwR,SAAUA,EACVG,YAAa3R,EAAE,4BAA6B,kCAC5CW,MAAOA,G,MAOnB,kBAACoS,EAAAA,UAASA,CAACtQ,UAAWuO,KAAW,KAAE,EAAF,EAAGjC,EAAOiE,OAAShH,GAAU,EAA7B,EAA8B+C,EAAOkE,SAAWjH,GAAhD,KAC/B,kBAACkH,EAAAA,OAAMA,CAACzQ,UAAWsM,EAAOoE,OAAQ1E,KAAK,YAAY2E,QAAS,W,OAAMxH,G,GAC/D5L,EAAE,UAAW,YAEhB,kBAACkT,EAAAA,OAAMA,CAACzQ,UAAWsM,EAAOoE,OAAQE,SAAUxF,EAAcY,KAAK,UAAU6E,KAAK,UAC3EzF,EACC,kBAAC0F,EAAAA,cAAaA,CAACC,YAAaxT,EAAE,SAAU,UAAY,MAAO2D,KAAK,gBAEhE3D,EAAE,eAAgB,qBAOhC,C","sources":["webpack://@openmrs/esm-patient-chart-app/../../node_modules/@carbon/icon-helpers/es/index.js","webpack://@openmrs/esm-patient-chart-app/../../node_modules/@carbon/icons-react/es/Icon.js","webpack://@openmrs/esm-patient-chart-app/./src/mark-patient-deceased/mark-patient-deceased-form.scss","webpack://@openmrs/esm-patient-chart-app/../../node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack://@openmrs/esm-patient-chart-app/../../node_modules/prop-types/factoryWithThrowingShims.js","webpack://@openmrs/esm-patient-chart-app/../../node_modules/fuzzy/lib/fuzzy.js","webpack://@openmrs/esm-patient-chart-app/../../node_modules/prop-types/index.js","webpack://@openmrs/esm-patient-chart-app/./src/data.resource.ts","webpack://@openmrs/esm-patient-chart-app/./src/mark-patient-deceased/mark-patient-deceased-form.scss?3653","webpack://@openmrs/esm-patient-chart-app/./src/mark-patient-deceased/mark-patient-deceased-form.workspace.tsx"],"names":["_defineProperty","e","r","t","i","Symbol","toPrimitive","call","TypeError","String","_toPrimitive","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","ownKeys","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","push","apply","_objectSpread2","arguments","length","forEach","getOwnPropertyDescriptors","defineProperties","_objectWithoutProperties","n","hasOwnProperty","indexOf","_objectWithoutPropertiesLoose","propertyIsEnumerable","_excluded","_excluded2","defaultAttributes","focusable","preserveAspectRatio","Icon","className","children","tabIndex","xmlns","rest","ref","tabindex","attrs","_ref","undefined","width","height","_ref$viewBox","viewBox","concat","attributes","iconAttributes","title","role","getAttributes","props","Number","displayName","propTypes","___CSS_LOADER_EXPORT___","module","id","locals","exports","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","fuzzy","simpleFilter","pattern","str","test","match","opts","ch","patternIdx","result","len","totalScore","currScore","pre","post","compareString","caseSensitive","toLowerCase","idx","Infinity","rendered","join","score","arr","reduce","prev","extract","index","original","sort","a","b","useCausesOfDeath","data","useSWR","error","isLoading","isValidating","useCauseOfDeathConcept","restBaseUrl","openmrsFetch","shouldRetryOnError","Response","status","useMemo","isCauseOfDeathLoading","isCauseOfDeathValidating","useConceptAnswers","conceptUuid","url","conceptAnswers","answers","isConceptLoading","conceptError","isConceptAnswerValidating","causesOfDeath","changePatientDeathStatus","personUuid","payload","abortController","AbortController","headers","method","body","signal","markPatientDeceased","deceasedDate","selectedCauseOfDeathValue","nonCodedCauseOfDeath","dead","deathDate","causeOfDeathNonCoded","causeOfDeath","markPatientAlive","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","errors","closeWorkspace","groupProps","patientUuid","useTranslation","isTablet","useLayoutType","memoizedPatientUuid","useState","searchTerm","setSearchTerm","useConfig","freeTextFieldConceptUuid","filteredCausesOfDeath","causeOfDeathConcept","display","r1","r2","map","schema","z","refine","message","date","optional","path","useForm","mode","resolver","zodResolver","defaultValues","Date","control","formState","isSubmitting","isDirty","handleSubmit","causeOfDeathValue","watch","onSubmit","useCallback","then","window","reload","catch","showSnackbar","kind","isLowContrast","subtitle","Workspace2","hasUnsavedChanges","Form","styles","form","console","div","Row","headerGridRow","ExtensionSlot","dataGridRow","state","container","span","warningContainer","WarningFilled","aria-label","warningIcon","size","warningText","section","sectionTitle","ResponsiveWrapper","Controller","render","fieldState","field","OpenmrsDatePicker","datePicker","data-testid","labelText","maxDate","invalid","Boolean","invalidText","DatePickerSkeleton","classNames","conceptAnswerOverviewWrapper","conceptAnswerOverviewWrapperTablet","conceptAnswerOverviewWrapperDesktop","errorOutline","isLoadingCausesOfDeath","StructuredListSkeleton","Search","onChange","event","target","placeholder","RadioButtonGroup","radioButtonGroup","orientation","uuid","RadioButton","radioButton","key","tileContainer","Tile","tile","tileContent","p","content","helper","EmptyState","displayText","headerTitle","errorMessage","TextInput","ButtonSet","tablet","desktop","Button","button","onClick","disabled","type","InlineLoading","description"],"sourceRoot":""}