@openmrs/esm-patient-chart-app 8.2.1-pre.5671 → 8.2.1-pre.5679

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.
@@ -17,9 +17,9 @@ built modules 8.83 MiB (javascript) 504 bytes (share-init) 504 bytes (consume-sh
17
17
  modules by path ../ 7.91 MiB
18
18
  modules by path ../../node_modules/ 7.7 MiB 192 modules
19
19
  modules by path ../esm-patient-common-lib/src/ 216 KiB 5 modules
20
- modules by path ./ 939 KiB
21
- modules by path ./src/ 868 KiB 43 modules
22
- modules by path ./translations/ 71.1 KiB 10 modules
20
+ modules by path ./ 942 KiB
21
+ modules by path ./src/ 871 KiB 43 modules
22
+ modules by path ./translations/ 71.2 KiB 10 modules
23
23
  provide-module modules 504 bytes 12 modules
24
24
  consume-shared-module modules 504 bytes
25
25
  modules by path consume shared module (default) swr/ 126 bytes 3 modules
@@ -41,4 +41,4 @@ Entrypoints:
41
41
  main.js
42
42
  
43
43
 
44
- webpack 5.94.0 compiled with 2 warnings in 167534 ms
44
+ webpack 5.94.0 compiled with 2 warnings in 163598 ms
package/dist/300.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[300],{4300:e=>{e.exports=JSON.parse('{"addAPastVisit":"Add a past visit","addPastVisit":"Add past visit","addPastVisitText":"You can add a new past visit or update an old one. Choose from one of the options below to continue.","all":"All","allEncounters":"All encounters","appointmentCheckedIn":"Appointment checked in","appointmentMarkedChecked":"Appointment marked as Checked In","cancel":"Cancel","cancelActiveVisitConfirmation":"Are you sure you want to cancel this active visit?","cancellingVisit":"Cancelling visit","cancelVisit":"Cancel visit","cancelVisitExplainerMessage":"Cancelling this visit will delete its associated encounters","causeOfDeath":"Cause of death","causeOfDeath_lower":"cause of death concepts configured in the system","causeOfDeathIsRequired":"Please select the cause of death","checkFilters":"Check the filters above","close":"Close","confirm":"Confirm","confirmDeletingVisitTextWithStartAndEndDate":"Are you sure you want to delete {{visit}} which started {{visitStartDate}} and ended {{visitEndDate}}?","confirmModifyingVisitDateToAccomodateEncounter":"The encounter date falls outside the designated visit date range. Would you like to modify the visit date to accommodate the new encounter date?","currentVisit":"Current visit","date":"Date","dateAndTime":"Date & time","dateOfDeath":"Date of death","deathDateRequired":"Please select the date of death","delete":"Delete","deleteEncounter":"Delete encounter","deleteEncounterConfirmationText":"Are you sure you want to delete this encounter? This action can\'t be undone.","deleteThisEncounter":"Delete this encounter","deleteVisit":"Delete visit","deleteVisitDialogHeader":"Are you sure you want to delete visit?","deletingVisit":"Deleting visit","deletingVisitWillDeleteEncounters":"Deleting this visit will delete all associated encounters.","diagnoses":"Diagnoses","discard":"Discard","dose":"Dose","editPastVisit":"Edit past visit","editThisEncounter":"Edit this encounter","editThisVisit":"Edit this visit","editVisitDetails":"Edit visit details","emptyStateText":"There are no {{displayText}} to display for this patient","encounterDeleted":"Encounter deleted","encounters":"Encounters","encounters__lower":"encounters","encounters_title":"Encounters","encounterType":"Encounter type","end":"End","endActiveVisitConfirmation":"Are you sure you want to end this active visit?","endDate":"End date","endDate_title":"End date","endVisit":"End visit","endVisit_title":"End Visit","endVisitExplainerMessage":"Ending this visit means that you will no longer be able to add encounters to it. If you need to add an encounter, you can create a new visit for this patient or edit a past one.","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorCancellingVisit":"Error cancelling active visit","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingVisitAttribute":"Could not delete {{attributeName}} attribute","errorDeletingVisit":"Error deleting visit","errorDeletingVisitAttribute":"Could not delete {{attributeName}} attribute","errorEndingVisit":"Error ending visit","errorMarkingPatientAlive":"Error marking patient alive","errorMarkingPatientDeceased":"Error marking patient deceased","errorOccuredDeletingVisit":"An error occured when deleting visit","errorUpdatingVisitAttribute":"Could not update {{attributeName}} attribute","errorUpdatingVisitDetails":"Error updating visit details","errorWhenRestoringVisit":"Error occured when restoring {{visit}}","failedDeleting":"couldn\'t be deleted","failedToLoadCurrentVisit":"Failed loading current visit","fieldRequired":"This field is required","filterByEncounterType":"Filter by encounter type","form":"Form name","goToThisEncounter":"Go to this encounter","indication":"Indication","invalidTimeFormat":"Invalid time format","invalidVisitStartDate":"Start date needs to be on or before {{firstEncounterDatetime}}","invalidVisitStopDate":"Visit stop date time cannot be on or before visit start date time","loading":"Loading","loadingVisit":"Loading current visit...","loadMore":"Load more","location":"Location","markAliveSuccessfully":"Patient marked alive succesfully","markDeceasedWarning":"Marking the patient as deceased will end any active visits for this patient","markPatientAlive":"Mark patient alive","markPatientAliveConfirmation":"Are you sure you want to mark this patient alive?","markPatientDeceased":"Mark patient deceased","medications":"Medications","medications__lower":"medications","missingVisitType":"Missing visit type","modifyVisitDate":"Modify visit date","movePatient":"Move patient","movePatientToNextService":"Move patient to next service","name":"Name","no":"No","noActiveVisit":"No Active Visit","noActiveVisitMessage":"active visit","noActiveVisitNoRDEText":"You can\'t add data to the patient chart without an active visit. Would you like to start a new visit?","noActiveVisitText":"You can\'t add data to the patient chart without an active visit. Choose from one of the options below to continue.","noDiagnosesFound":"No diagnoses found","noEncountersFound":"No encounters found","noEncountersToDisplay":"No encounters to display","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Please enter the non-coded cause of death","noObservationsFound":"No observations found","notes":"Notes","notes__lower":"notes","optional":"optional","orderDurationAndUnit":"for {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Indefinite duration","paginationItemsCount_one":"{{pageItemsCount}} / {{count}} item","paginationItemsCount_other":"{{pageItemsCount}} / {{count}} items","paginationPageText_one":"of {{count}} page","paginationPageText_other":"of {{count}} pages","partOfFormDidntLoad":"Part of the form did not load","pastVisitErrorText":"Past visit error","pastVisits":"Past visits","Patient Summary":"Patient summary","printIdentifierSticker":"Print identifier sticker","program":"Program","provider":"Provider","quantity":"Quantity","queueAddedSuccessfully":"Patient has been added to the queue successfully.","queueEntryError":"Error adding patient to the queue","recommended":"Recommended","record":"Record","refills":"Refills","refreshToTryAgain":"Please refresh to try again","required":"Required","retrospectiveEntry":"Retrospective entry","saveAndClose":"Save and close","saving":"Saving","searchForAVisitType":"Search for a visit type","searchForCauseOfDeath":"Search for a cause of death","searchThisList":"Search this list","seeAll":"See all","selectAnOption":"Select an option","selectLocation":"Select a location","selectProgramType":"Select program type","selectVisitType":"Please select a visit type","start":"Start","startAVisit":"Start a visit","startDate":"Start date","startingVisit":"Starting visit","startNewVisit":"Start new visit","startVisit":"Start visit","startVisitError":"Error starting visit","successfullyDeleted":"successfully deleted","tests":"Tests","time":"Time","timeFormat ":"Time Format","type":"Type","undo":"Undo","updateError":"Error updating upcoming appointment","updateVisit":"Update visit","updatingVisit":"Updating visit","visit":"Visit","visitAttributes":"Visit attributes","visitCancelled":"Visit cancelled","visitCancelSuccessMessage":"Active {{visit}} cancelled successfully","visitDeleted":"{{visit}} deleted","visitDeletedSuccessfully":"{{visit}} deleted successfully","visitDetailsUpdated":"Visit details updated","visitDetailsUpdatedSuccessfully":"{{visit}} updated successfully","visitEnded":"Visit ended","visitEndSuccessfully":"Ended current visit successfully","visitLocation":"Visit location","visitNotRestored":"Visit couldn\'t be restored","visitRestored":"Visit restored","visitRestoredSuccessfully":"{{visit}} restored successfully","visits":"visits","Visits":"Visits","visitStartDatetime":"Visit start date and time","visitStarted":"Visit started","visitStartedSuccessfully":"{{visit}} started successfully","visitStopDateMustBeAfterMostRecentEncounter":"Stop date needs to be on or after {{lastEncounterDatetime}}","visitStopDatetime":"Visit stop date and time","visitSummaries":"Visit summaries","visitType":"Visit type","visitType_title":"Visit Type","visitTypeRequired":"Visit type is required","warning":"Warning","yes":"Yes"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[300],{4300:e=>{e.exports=JSON.parse('{"addAPastVisit":"Add a past visit","addPastVisit":"Add past visit","addPastVisitText":"You can add a new past visit or update an old one. Choose from one of the options below to continue.","all":"All","allEncounters":"All encounters","appointmentCheckedIn":"Appointment checked in","appointmentMarkedChecked":"Appointment marked as Checked In","cancel":"Cancel","cancelActiveVisitConfirmation":"Are you sure you want to cancel this active visit?","cancellingVisit":"Cancelling visit","cancelVisit":"Cancel visit","cancelVisitExplainerMessage":"Cancelling this visit will delete its associated encounters","causeOfDeath":"Cause of death","causeOfDeath_lower":"cause of death concepts configured in the system","causeOfDeathIsRequired":"Please select the cause of death","checkFilters":"Check the filters above","close":"Close","confirm":"Confirm","confirmDeletingVisitTextWithStartAndEndDate":"Are you sure you want to delete {{visit}} which started {{visitStartDate}} and ended {{visitEndDate}}?","confirmModifyingVisitDateToAccomodateEncounter":"The encounter date falls outside the designated visit date range. Would you like to modify the visit date to accommodate the new encounter date?","currentVisit":"Current visit","date":"Date","dateAndTime":"Date & time","dateOfDeath":"Date of death","deathDateRequired":"Please select the date of death","delete":"Delete","deleteEncounter":"Delete encounter","deleteEncounterConfirmationText":"Are you sure you want to delete this encounter? This action can\'t be undone.","deleteThisEncounter":"Delete this encounter","deleteVisit":"Delete visit","deleteVisitDialogHeader":"Are you sure you want to delete visit?","deletingVisit":"Deleting visit","deletingVisitWillDeleteEncounters":"Deleting this visit will delete all associated encounters.","diagnoses":"Diagnoses","discard":"Discard","dose":"Dose","editPastVisit":"Edit past visit","editThisEncounter":"Edit this encounter","editThisVisit":"Edit this visit","editVisitDetails":"Edit visit details","emptyStateText":"There are no {{displayText}} to display for this patient","encounterDeleted":"Encounter deleted","encounters":"Encounters","encounters__lower":"encounters","encounters_title":"Encounters","encounterType":"Encounter type","end":"End","endActiveVisitConfirmation":"Are you sure you want to end this active visit?","endDate":"End date","endDate_title":"End date","endVisit":"End visit","endVisit_title":"End Visit","endVisitExplainerMessage":"Ending this visit means that you will no longer be able to add encounters to it. If you need to add an encounter, you can create a new visit for this patient or edit a past one.","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"Error","errorCancellingVisit":"Error cancelling active visit","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingVisitAttribute":"Could not delete {{attributeName}} attribute","errorDeletingVisit":"Error deleting visit","errorDeletingVisitAttribute":"Could not delete {{attributeName}} attribute","errorEndingVisit":"Error ending visit","errorMarkingPatientAlive":"Error marking patient alive","errorMarkingPatientDeceased":"Error marking patient deceased","errorOccuredDeletingVisit":"An error occured when deleting visit","errorUpdatingVisitAttribute":"Could not update {{attributeName}} attribute","errorUpdatingVisitDetails":"Error updating visit details","errorWhenRestoringVisit":"Error occured when restoring {{visit}}","failedDeleting":"couldn\'t be deleted","failedToLoadCurrentVisit":"Failed loading current visit","fieldRequired":"This field is required","filterByEncounterType":"Filter by encounter type","form":"Form name","goToThisEncounter":"Go to this encounter","indication":"Indication","invalidTimeFormat":"Invalid time format","invalidVisitStartDate":"Start date needs to be on or before {{firstEncounterDatetime}}","invalidVisitStopDate":"Visit stop date time cannot be on or before visit start date time","loading":"Loading","loadingVisit":"Loading current visit...","loadMore":"Load more","location":"Location","markAliveSuccessfully":"Patient marked alive succesfully","markDeceasedWarning":"Marking the patient as deceased will end any active visits for this patient","markPatientAlive":"Mark patient alive","markPatientAliveConfirmation":"Are you sure you want to mark this patient alive?","markPatientDeceased":"Mark patient deceased","medications":"Medications","medications__lower":"medications","missingVisitType":"Missing visit type","modifyVisitDate":"Modify visit date","movePatient":"Move patient","movePatientToNextService":"Move patient to next service","name":"Name","no":"No","noActiveVisit":"No Active Visit","noActiveVisitMessage":"active visit","noActiveVisitNoRDEText":"You can\'t add data to the patient chart without an active visit. Would you like to start a new visit?","noActiveVisitText":"You can\'t add data to the patient chart without an active visit. Choose from one of the options below to continue.","noDiagnosesFound":"No diagnoses found","noEncountersFound":"No encounters found","noEncountersToDisplay":"No encounters to display","noMatchingCodedCausesOfDeath":"No matching coded causes of death","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Please enter the non-coded cause of death","noObservationsFound":"No observations found","notes":"Notes","notes__lower":"notes","optional":"optional","orderDurationAndUnit":"for {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Indefinite duration","paginationItemsCount_one":"{{pageItemsCount}} / {{count}} item","paginationItemsCount_other":"{{pageItemsCount}} / {{count}} items","paginationPageText_one":"of {{count}} page","paginationPageText_other":"of {{count}} pages","partOfFormDidntLoad":"Part of the form did not load","pastVisitErrorText":"Past visit error","pastVisits":"Past visits","Patient Summary":"Patient summary","printIdentifierSticker":"Print identifier sticker","program":"Program","provider":"Provider","quantity":"Quantity","queueAddedSuccessfully":"Patient has been added to the queue successfully.","queueEntryError":"Error adding patient to the queue","recommended":"Recommended","record":"Record","refills":"Refills","refreshToTryAgain":"Please refresh to try again","required":"Required","retrospectiveEntry":"Retrospective entry","saveAndClose":"Save and close","saving":"Saving","searchForAVisitType":"Search for a visit type","searchForCauseOfDeath":"Search for a cause of death","searchThisList":"Search this list","seeAll":"See all","selectAnOption":"Select an option","selectLocation":"Select a location","selectProgramType":"Select program type","selectVisitType":"Please select a visit type","start":"Start","startAVisit":"Start a visit","startDate":"Start date","startingVisit":"Starting visit","startNewVisit":"Start new visit","startVisit":"Start visit","startVisitError":"Error starting visit","successfullyDeleted":"successfully deleted","tests":"Tests","time":"Time","timeFormat ":"Time Format","type":"Type","undo":"Undo","updateError":"Error updating upcoming appointment","updateVisit":"Update visit","updatingVisit":"Updating visit","visit":"Visit","visitAttributes":"Visit attributes","visitCancelled":"Visit cancelled","visitCancelSuccessMessage":"Active {{visit}} cancelled successfully","visitDeleted":"{{visit}} deleted","visitDeletedSuccessfully":"{{visit}} deleted successfully","visitDetailsUpdated":"Visit details updated","visitDetailsUpdatedSuccessfully":"{{visit}} updated successfully","visitEnded":"Visit ended","visitEndSuccessfully":"Ended current visit successfully","visitLocation":"Visit location","visitNotRestored":"Visit couldn\'t be restored","visitRestored":"Visit restored","visitRestoredSuccessfully":"{{visit}} restored successfully","visits":"visits","Visits":"Visits","visitStartDatetime":"Visit start date and time","visitStarted":"Visit started","visitStartedSuccessfully":"{{visit}} started successfully","visitStopDateMustBeAfterMostRecentEncounter":"Stop date needs to be on or after {{lastEncounterDatetime}}","visitStopDatetime":"Visit stop date and time","visitSummaries":"Visit summaries","visitType":"Visit type","visitType_title":"Visit Type","visitTypeRequired":"Visit type is required","warning":"Warning","yes":"Yes"}')}}]);
package/dist/400.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[400],{9050: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,l=0,p=t.pre||"",c=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=p+a+c,i+=1,l+=1+l):l=0,s+=l,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 l=n.match(e,s,a);return null!=l&&(t[t.length]={string:l.rendered,score:l.score,index:r,original:i}),t}),[]).sort((function(e,n){return n.score-e.score||e.index-n.index}))):[]}},3651:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(5836),i=t.n(a),r=t(8023),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}","",{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:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,mEACE,WC0BW,CDxBX,2EACE,aAAA,CAIJ,iEEs1BI,6DAAA,CAAA,6DAAA,CAAA,6DAAA,CAAA,iEAAA,CFp1BF,aDTQ,CCUR,WCgBW,CDbb,sEEg1BI,0DAAA,CAAA,6DAAA,CAAA,+DAAA,CAAA,iEAAA,CF90BF,aDfQ,CCgBR,kBAAA,CAGF,sFACE,cAAA,CACA,6BAAA,CACA,wBD3BM,CC6BN,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,aDjDQ,CCkDR,wBDvDM,CC0DR,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,qBDtGM,CCyGR,6FACE,SAAA,CAGF,0EACE,YAAA,CACA,wBD9FmB,CC+FnB,YClFW,CDmFX,kBAAA,CAGF,sEACE,YAAA,CACA,iBAAA,CACA,YDvGmB,CCwGnB,kBCpGW,CDqGX,gBAAA,CAGF,sEACE,iBAAA,CAGF,oEACE,oBC7GW,CD8GX,UAAA,CAGF,sEE4tBI,iDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CF1tBF,aDpHO,CCuHT,8EACE,WC7GW,CDiHX,mIACE,kBAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '~@openmrs/esm-styleguide/src/vars' as *;\n\n.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","// 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"};const s=o},2400:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>N});var a=t(1343),i=t.n(a),r=t(3373),o=t.n(r),s=t(9050),l=t.n(s),p=t(3150),c=t(5198),d=t(824),u=t(6195),g=t(1160),f=t(2326),h=t(3276),m=t(1083),y=t(9656),b=t(111),$=t.n(b),_=t(5660),A=t.n(_),v=t(3824),w=t.n(v),k=t(8823),C=t.n(k),x=t(6747),z=t.n(x),D=t(4072),E=t.n(D),M=t(3651),B={};B.styleTagTransform=E(),B.setAttributes=C(),B.insert=w().bind(null,"head"),B.domAPI=A(),B.insertStyleElement=z(),$()(M.A,B);const O=M.A&&M.A.locals?M.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 G(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function F(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,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}}(e,n)||function(e,n){if(e){if("string"==typeof e)return T(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const N=function(e){var n,t,r,s,b,$=e.closeWorkspace,_=e.patientUuid,A=(0,p.useTranslation)().t,v="tablet"===(0,m.useLayoutType)(),w=(0,a.useMemo)((function(){return{patientUuid:_}}),[_]),k=F((0,a.useState)(!1),2),C=k[0],x=k[1],z=F((0,a.useState)(""),2),D=z[0],E=z[1],M=(0,y.H9)(),B=M.causesOfDeath,T=M.isLoading,N=(0,m.useConfig)().freeTextFieldConceptUuid,S=(0,a.useMemo)((function(){return D&&D?l().filter(D,B,{extract:function(e){return e.display}}).sort((function(e,n){return e.score-n.score})).map((function(e){return e.original})):B}),[D,B]),W=u.z.object({causeOfDeath:u.z.string().refine((function(e){return!!e}),{message:A("causeOfDeathIsRequired","Please select the cause of death")}),deathDate:u.z.date().refine((function(e){return!!e}),{message:A("deathDateRequired","Please select the date of death")}),nonCodedCauseOfDeath:u.z.string().optional()}).refine((function(e){return!(e.causeOfDeath===N&&!e.nonCodedCauseOfDeath)}),{message:A("nonCodedCauseOfDeathRequired","Please enter the non-coded cause of death"),path:["nonCodedCauseOfDeath"]}),I=(0,d.mN)({mode:"onSubmit",resolver:(0,g.u)(W),defaultValues:{causeOfDeath:"",deathDate:new Date,nonCodedCauseOfDeath:""}}),R=I.control,q=I.formState.errors,P=I.handleSubmit,L=(0,I.watch)("causeOfDeath"),X=(0,a.useCallback)((function(e){x(!0);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:A("errorMarkingPatientDeceased","Error marking patient deceased")})})).finally((function(){x(!1)}))}),[$,_,A]);return i().createElement(c.Form,{className:O.form,onSubmit:P(X,(function(e){return console.error(e)}))},i().createElement("div",null,v&&i().createElement(c.Row,{className:O.headerGridRow},i().createElement(m.ExtensionSlot,{className:O.dataGridRow,name:"visit-form-header-slot",state:w})),i().createElement("div",{className:O.container},i().createElement("span",{className:O.warningContainer},i().createElement(f.BF,{"aria-label":A("warning","Warning"),className:O.warningIcon,size:20}),i().createElement("span",{className:O.warningText},A("markDeceasedWarning","Marking the patient as deceased will end any active visits for this patient"))),i().createElement("section",null,i().createElement("div",{className:O.sectionTitle},A("dateOfDeath","Date of death")),(null==B?void 0:B.length)?i().createElement(m.ResponsiveWrapper,null,i().createElement(d.xI,{name:"deathDate",control:R,render:function(e){var n=e.field,t=n.onChange,a=n.value;return i().createElement(c.DatePicker,{className:O.datePicker,dateFormat:"d/m/Y",datePickerType:"single",id:"deceasedDate",maxDate:(new Date).toISOString(),onChange:function(e){var n=F(e,1)[0];return t(n)},value:a},i().createElement(c.DatePickerInput,{id:"deceasedDateInput",labelText:A("date","Date"),placeholder:"dd/mm/yyyy",style:{width:"100%"}}))}}),(null==q?void 0:q.deathDate)&&i().createElement("p",{className:O.errorMessage},null==q||null===(n=q.deathDate)||void 0===n?void 0:n.message)):i().createElement(c.DatePickerSkeleton,null)),i().createElement("section",null,i().createElement("div",{className:O.sectionTitle},A("causeOfDeath","Cause of death")),i().createElement("div",{className:o()(O.conceptAnswerOverviewWrapper,(s={},G(s,O.conceptAnswerOverviewWrapperTablet,v),G(s,O.conceptAnswerOverviewWrapperDesktop,!v),G(s,O.errorOutline,null==q||null===(t=q.causeOfDeath)||void 0===t?void 0:t.message),s))},T?i().createElement(c.StructuredListSkeleton,null):null,(null==B?void 0:B.length)?i().createElement(m.ResponsiveWrapper,null,i().createElement(c.Search,{onChange:function(e){return E(e.target.value)},placeholder:A("searchForCauseOfDeath","Search for a cause of death"),labelText:""})):null,(null==B?void 0:B.length)?i().createElement(d.xI,{name:"causeOfDeath",control:R,render:function(e){var n=e.field.onChange;return i().createElement(c.RadioButtonGroup,{className:O.radioButtonGroup,orientation:"vertical",onChange:n},(S||B).map((function(e){var n=e.uuid,t=e.display,a=e.name;return i().createElement(c.RadioButton,{key:n,className:O.radioButton,id:a,labelText:t,value:n})})))}}):null,T||(null==B?void 0:B.length)?null:i().createElement(h.EmptyState,{displayText:A("causeOfDeath_lower","cause of death concepts configured in the system"),headerTitle:A("causeOfDeath","Cause of death")})),(null==q?void 0:q.causeOfDeath)&&i().createElement("p",{className:O.errorMessage},null==q||null===(r=q.causeOfDeath)||void 0===r?void 0:r.message))),L===N&&i().createElement("div",{className:O.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(c.TextInput,{id:"freeTextCauseOfDeath",invalid:!!(null==q?void 0:q.nonCodedCauseOfDeath),invalidText:null==q||null===(n=q.nonCodedCauseOfDeath)||void 0===n?void 0:n.message,labelText:A("nonCodedCauseOfDeath","Non-coded cause of death"),onChange:a,placeholder:A("enterNonCodedCauseOfDeath","Enter non-coded cause of death"),value:r})}}))),i().createElement(c.ButtonSet,{className:o()((b={},G(b,O.tablet,v),G(b,O.desktop,!v),b))},i().createElement(c.Button,{className:O.button,kind:"secondary",onClick:$},A("discard","Discard")),i().createElement(c.Button,{className:O.button,disabled:C,kind:"primary",type:"submit"},C?i().createElement(c.InlineLoading,{description:A("saving","Saving")+"...",role:"progressbar"}):A("saveAndClose","Save and close"))))}}}]);
1
+ (globalThis.webpackChunk_openmrs_esm_patient_chart_app=globalThis.webpackChunk_openmrs_esm_patient_chart_app||[]).push([[400],{9050: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,l=0,c=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=c+a+p,i+=1,l+=1+l):l=0,s+=l,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 l=n.match(e,s,a);return null!=l&&(t[t.length]={string:l.rendered,score:l.score,index:r,original:i}),t}),[]).sort((function(e,n){return n.score-e.score||e.index-n.index}))):[]}},3651:(e,n,t)=>{"use strict";t.d(n,{A:()=>s});var a=t(5836),i=t.n(a),r=t(8023),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:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,mEACE,WC0BW,CDxBX,2EACE,aAAA,CAIJ,iEEs1BI,6DAAA,CAAA,6DAAA,CAAA,6DAAA,CAAA,iEAAA,CFp1BF,aDTQ,CCUR,WCgBW,CDbb,sEEg1BI,0DAAA,CAAA,6DAAA,CAAA,+DAAA,CAAA,iEAAA,CF90BF,aDfQ,CCgBR,kBAAA,CAGF,sFACE,cAAA,CACA,6BAAA,CACA,wBD3BM,CC6BN,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,aDjDQ,CCkDR,wBDvDM,CC0DR,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,qBDtGM,CCyGR,6FACE,SAAA,CAGF,0EACE,YAAA,CACA,wBD9FmB,CC+FnB,YClFW,CDmFX,kBAAA,CAGF,sEACE,YAAA,CACA,iBAAA,CACA,YDvGmB,CCwGnB,kBCpGW,CDqGX,gBAAA,CAGF,sEACE,iBAAA,CAGF,oEACE,oBC7GW,CD8GX,UAAA,CAGF,sEE4tBI,iDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CF1tBF,aDpHO,CCuHT,8EACE,WC7GW,CDiHX,mIACE,kBAAA,CAIJ,uEACE,qBDrJM,CCsJN,cAAA,CAGF,8DACE,WAAA,CACA,iBAAA,CAGF,qEACE,YAAA,CACA,qBAAA,CACA,kBAAA,CAGF,kEE6rBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CF3rBF,aDlKQ,CCmKR,mBCnJW,CDsJb,gEEurBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CFrrBF,aDxKQ",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '~@openmrs/esm-styleguide/src/vars' as *;\n\n.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},2400:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>G});var a=t(1343),i=t.n(a),r=t(3373),o=t.n(r),s=t(9050),l=t.n(s),c=t(3150),p=t(5198),d=t(824),u=t(6195),g=t(1160),h=t(2326),f=t(3276),m=t(1083),y=t(9656),b=t(111),A=t.n(b),_=t(5660),$=t.n(_),v=t(3824),C=t.n(v),w=t(8823),k=t.n(w),x=t(6747),z=t.n(x),D=t(4072),E=t.n(D),M=t(3651),B={};B.styleTagTransform=E(),B.setAttributes=k(),B.insert=C().bind(null,"head"),B.domAPI=$(),B.insertStyleElement=z(),A()(M.A,B);const O=M.A&&M.A.locals?M.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 F(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function N(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var 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}}(e,n)||function(e,n){if(e){if("string"==typeof e)return T(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const G=function(e){var n,t,r,s,b,A=e.closeWorkspace,_=e.patientUuid,$=(0,c.useTranslation)().t,v="tablet"===(0,m.useLayoutType)(),C=(0,a.useMemo)((function(){return{patientUuid:_}}),[_]),w=N((0,a.useState)(!1),2),k=w[0],x=w[1],z=N((0,a.useState)(""),2),D=z[0],E=z[1],M=(0,y.H9)(),B=M.causesOfDeath,T=M.isLoading,G=(0,m.useConfig)().freeTextFieldConceptUuid,W=(0,a.useMemo)((function(){return D&&D?l().filter(D,B,{extract:function(e){return e.display}}).sort((function(e,n){return e.score-n.score})).map((function(e){return e.original})):B}),[D,B]),I=u.z.object({causeOfDeath:u.z.string().refine((function(e){return!!e}),{message:$("causeOfDeathIsRequired","Please select the cause of death")}),deathDate:u.z.date().refine((function(e){return!!e}),{message:$("deathDateRequired","Please select the date of death")}),nonCodedCauseOfDeath:u.z.string().optional()}).refine((function(e){return!(e.causeOfDeath===G&&!e.nonCodedCauseOfDeath)}),{message:$("nonCodedCauseOfDeathRequired","Please enter the non-coded cause of death"),path:["nonCodedCauseOfDeath"]}),S=(0,d.mN)({mode:"onSubmit",resolver:(0,g.u)(I),defaultValues:{causeOfDeath:"",deathDate:new Date,nonCodedCauseOfDeath:""}}),R=S.control,q=S.formState.errors,P=S.handleSubmit,j=(0,S.watch)("causeOfDeath"),L=(0,a.useCallback)((function(e){x(!0);var n=e.causeOfDeath,t=e.deathDate,a=e.nonCodedCauseOfDeath;(0,y.b4)(t,_,n,a).then((function(){A(),window.location.reload()})).catch((function(e){(0,m.showSnackbar)({kind:"error",isLowContrast:!1,subtitle:null==e?void 0:e.message,title:$("errorMarkingPatientDeceased","Error marking patient deceased")})})).finally((function(){x(!1)}))}),[A,_,$]);return i().createElement(p.Form,{className:O.form,onSubmit:P(L,(function(e){return console.error(e)}))},i().createElement("div",null,v&&i().createElement(p.Row,{className:O.headerGridRow},i().createElement(m.ExtensionSlot,{className:O.dataGridRow,name:"visit-form-header-slot",state:C})),i().createElement("div",{className:O.container},i().createElement("span",{className:O.warningContainer},i().createElement(h.BF,{"aria-label":$("warning","Warning"),className:O.warningIcon,size:20}),i().createElement("span",{className:O.warningText},$("markDeceasedWarning","Marking the patient as deceased will end any active visits for this patient"))),i().createElement("section",null,i().createElement("div",{className:O.sectionTitle},$("dateOfDeath","Date of death")),(null==B?void 0:B.length)?i().createElement(m.ResponsiveWrapper,null,i().createElement(d.xI,{name:"deathDate",control:R,render:function(e){var n=e.field,t=n.onChange,a=n.value;return i().createElement(p.DatePicker,{className:O.datePicker,dateFormat:"d/m/Y",datePickerType:"single",id:"deceasedDate",maxDate:(new Date).toISOString(),onChange:function(e){var n=N(e,1)[0];return t(n)},value:a},i().createElement(p.DatePickerInput,{id:"deceasedDateInput",labelText:$("date","Date"),placeholder:"dd/mm/yyyy",style:{width:"100%"}}))}}),(null==q?void 0:q.deathDate)&&i().createElement("p",{className:O.errorMessage},null==q||null===(n=q.deathDate)||void 0===n?void 0:n.message)):i().createElement(p.DatePickerSkeleton,null)),i().createElement("section",null,i().createElement("div",{className:O.sectionTitle},$("causeOfDeath","Cause of death")),i().createElement("div",{className:o()(O.conceptAnswerOverviewWrapper,(s={},F(s,O.conceptAnswerOverviewWrapperTablet,v),F(s,O.conceptAnswerOverviewWrapperDesktop,!v),F(s,O.errorOutline,null==q||null===(t=q.causeOfDeath)||void 0===t?void 0:t.message),s))},T?i().createElement(p.StructuredListSkeleton,null):null,(null==B?void 0:B.length)?i().createElement(m.ResponsiveWrapper,null,i().createElement(p.Search,{labelText:"",onChange:function(e){E(e.target.value)},placeholder:$("searchForCauseOfDeath","Search for a cause of death")})):null,(null==B?void 0:B.length)&&W.length>0?i().createElement(d.xI,{name:"causeOfDeath",control:R,render:function(e){var n=e.field.onChange;return i().createElement(p.RadioButtonGroup,{className:O.radioButtonGroup,name:j===G?"freeTextFieldCauseOfDeath":"codedCauseOfDeath",orientation:"vertical",onChange:n},W.map((function(e){var n=e.uuid,t=e.display,a=e.name;return i().createElement(p.RadioButton,{className:O.radioButton,id:a,key:n,labelText:t,value:n})})))}}):null,D&&0===W.length&&i().createElement("div",{className:O.tileContainer},i().createElement(p.Tile,{className:O.tile},i().createElement("div",{className:O.tileContent},i().createElement("p",{className:O.content},$("noMatchingCodedCausesOfDeath","No matching coded causes of death")),i().createElement("p",{className:O.helper},$("checkFilters","Check the filters above"))))),T||(null==B?void 0:B.length)?null:i().createElement(f.EmptyState,{displayText:$("causeOfDeath_lower","cause of death concepts configured in the system"),headerTitle:$("causeOfDeath","Cause of death")})),(null==q?void 0:q.causeOfDeath)&&i().createElement("p",{className:O.errorMessage},null==q||null===(r=q.causeOfDeath)||void 0===r?void 0:r.message))),j===G&&i().createElement("div",{className:O.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==q?void 0:q.nonCodedCauseOfDeath),invalidText:null==q||null===(n=q.nonCodedCauseOfDeath)||void 0===n?void 0:n.message,labelText:$("nonCodedCauseOfDeath","Non-coded cause of death"),onChange:a,placeholder:$("enterNonCodedCauseOfDeath","Enter non-coded cause of death"),value:r})}}))),i().createElement(p.ButtonSet,{className:o()((b={},F(b,O.tablet,v),F(b,O.desktop,!v),b))},i().createElement(p.Button,{className:O.button,kind:"secondary",onClick:A},$("discard","Discard")),i().createElement(p.Button,{className:O.button,disabled:k,kind:"primary",type:"submit"},k?i().createElement(p.InlineLoading,{description:$("saving","Saving")+"...",role:"progressbar"}):$("saveAndClose","Save and close"))))}}}]);
package/dist/400.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"400.js","mappings":"wIAQC,IAIGA,IAAQ,CAAC,EAIXC,EAAOC,QAAUF,EAOnBA,EAAMG,aAAe,SAASC,EAASC,GACrC,OAAOA,EAAMC,QAAO,SAASC,GAC3B,OAAOP,EAAMQ,KAAKJ,EAASG,EAC7B,GACF,EAGAP,EAAMQ,KAAO,SAASJ,EAASG,GAC7B,OAAqC,OAA9BP,EAAMS,MAAML,EAASG,EAC9B,EAIAP,EAAMS,MAAQ,SAASL,EAASG,EAAKG,GACnCA,EAAOA,GAAQ,CAAC,EAChB,IAYIC,EAZAC,EAAa,EACbC,EAAS,GACTC,EAAMP,EAAIQ,OACVC,EAAa,EACbC,EAAY,EAEZC,EAAMR,EAAKQ,KAAO,GAElBC,EAAOT,EAAKS,MAAQ,GAGpBC,EAAiBV,EAAKW,eAAiBd,GAAOA,EAAIe,cAGtDlB,EAAUM,EAAKW,eAAiBjB,GAAWA,EAAQkB,cAInD,IAAI,IAAIC,EAAM,EAAGA,EAAMT,EAAKS,IAC1BZ,EAAKJ,EAAIgB,GACNH,EAAcG,KAASnB,EAAQQ,IAChCD,EAAKO,EAAMP,EAAKQ,EAChBP,GAAc,EAGdK,GAAa,EAAIA,GAEjBA,EAAY,EAEdD,GAAcC,EACdJ,EAAOA,EAAOE,QAAUJ,EAI1B,OAAGC,IAAeR,EAAQW,QAExBC,EAAcI,IAAkBhB,EAAWoB,IAAWR,EAC/C,CAACS,SAAUZ,EAAOa,KAAK,IAAKC,MAAOX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tI,GAAG,uBACHuI,WAAW9H,aAAAA,EAAAA,EAAQiC,sBACnB8F,YAAa/H,SAA4B,QAA5BA,EAAAA,EAAQiC,4BAARjC,IAAAA,OAAAA,EAAAA,EAA8B8B,QAC3CoE,UAAW9F,EAAE,uBAAwB,4BACrCqF,SAAUA,EACVU,YAAa/F,EAAE,4BAA6B,kCAC5CsF,MAAOA,G,MAOnB,kBAACsC,EAAAA,UAASA,CAAChE,UAAWyC,KAAW,KAAE,EAAF,EAAGxC,EAAOgE,OAAS5H,GAAU,EAA7B,EAA8B4D,EAAOiE,SAAW7H,GAAhD,KAC/B,kBAAC8H,EAAAA,OAAMA,CAACnE,UAAWC,EAAOmE,OAAQ1E,KAAK,YAAY2E,QAASpI,GACzDG,EAAE,UAAW,YAEhB,kBAAC+H,EAAAA,OAAMA,CAACnE,UAAWC,EAAOmE,OAAQE,SAAU5H,EAAcgD,KAAK,UAAU6E,KAAK,UAC3E7H,EACC,kBAAC8H,EAAAA,cAAaA,CAACC,YAAarI,EAAE,SAAU,UAAY,MAAOsI,KAAK,gBAEhEtI,EAAE,eAAgB,oBAM9B,C","sources":["webpack://@openmrs/esm-patient-chart-app/../../node_modules/fuzzy/lib/fuzzy.js","webpack://@openmrs/esm-patient-chart-app/./src/mark-patient-deceased/mark-patient-deceased-form.scss","webpack://@openmrs/esm-patient-chart-app/./src/mark-patient-deceased/mark-patient-deceased-form.scss?18d6","webpack://@openmrs/esm-patient-chart-app/./src/mark-patient-deceased/mark-patient-deceased-form.workspace.tsx"],"names":["fuzzy","module","exports","simpleFilter","pattern","array","filter","str","test","match","opts","ch","patternIdx","result","len","length","totalScore","currScore","pre","post","compareString","caseSensitive","toLowerCase","idx","Infinity","rendered","join","score","arr","reduce","prev","element","extract","string","index","original","sort","a","b","___CSS_LOADER_EXPORT___","push","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","errors","closeWorkspace","patientUuid","useTranslation","t","isTablet","useLayoutType","memoizedPatientUuid","useMemo","useState","isSubmitting","setIsSubmitting","searchTerm","setSearchTerm","useCausesOfDeath","causesOfDeath","isLoading","useConfig","freeTextFieldConceptUuid","filteredCausesOfDeath","causeOfDeathConcept","display","r1","r2","map","schema","z","object","causeOfDeath","refine","message","deathDate","date","nonCodedCauseOfDeath","optional","data","path","useForm","mode","resolver","zodResolver","defaultValues","Date","control","formState","handleSubmit","causeOfDeathValue","watch","onSubmit","useCallback","markPatientDeceased","then","window","location","reload","catch","error","showSnackbar","kind","isLowContrast","subtitle","title","finally","Form","className","styles","form","console","div","Row","headerGridRow","ExtensionSlot","dataGridRow","name","state","container","span","warningContainer","WarningFilled","aria-label","warningIcon","size","warningText","section","sectionTitle","ResponsiveWrapper","Controller","render","field","onChange","value","DatePicker","datePicker","dateFormat","datePickerType","maxDate","toISOString","DatePickerInput","labelText","placeholder","style","width","p","errorMessage","DatePickerSkeleton","classNames","conceptAnswerOverviewWrapper","conceptAnswerOverviewWrapperTablet","conceptAnswerOverviewWrapperDesktop","errorOutline","isLoadingCausesOfDeath","StructuredListSkeleton","Search","event","target","RadioButtonGroup","radioButtonGroup","orientation","uuid","RadioButton","key","radioButton","EmptyState","displayText","headerTitle","TextInput","invalid","invalidText","ButtonSet","tablet","desktop","Button","button","onClick","disabled","type","InlineLoading","description","role"],"sourceRoot":""}
1
+ {"version":3,"file":"400.js","mappings":"wIAQC,IAIGA,IAAQ,CAAC,EAIXC,EAAOC,QAAUF,EAOnBA,EAAMG,aAAe,SAASC,EAASC,GACrC,OAAOA,EAAMC,QAAO,SAASC,GAC3B,OAAOP,EAAMQ,KAAKJ,EAASG,EAC7B,GACF,EAGAP,EAAMQ,KAAO,SAASJ,EAASG,GAC7B,OAAqC,OAA9BP,EAAMS,MAAML,EAASG,EAC9B,EAIAP,EAAMS,MAAQ,SAASL,EAASG,EAAKG,GACnCA,EAAOA,GAAQ,CAAC,EAChB,IAYIC,EAZAC,EAAa,EACbC,EAAS,GACTC,EAAMP,EAAIQ,OACVC,EAAa,E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AW,KAAE,EAAF,EAAGxC,EAAOsE,OAASlI,GAAU,EAA7B,EAA8B4D,EAAOuE,SAAWnI,GAAhD,KAC/B,kBAACoI,EAAAA,OAAMA,CAACzE,UAAWC,EAAOyE,OAAQhF,KAAK,YAAYiF,QAAS1I,GACzDG,EAAE,UAAW,YAEhB,kBAACqI,EAAAA,OAAMA,CAACzE,UAAWC,EAAOyE,OAAQE,SAAUlI,EAAcgD,KAAK,UAAUmF,KAAK,UAC3EnI,EACC,kBAACoI,EAAAA,cAAaA,CAACC,YAAa3I,EAAE,SAAU,UAAY,MAAO4I,KAAK,gBAEhE5I,EAAE,eAAgB,oBAM9B,C","sources":["webpack://@openmrs/esm-patient-chart-app/../../node_modules/fuzzy/lib/fuzzy.js","webpack://@openmrs/esm-patient-chart-app/./src/mark-patient-deceased/mark-patient-deceased-form.scss","webpack://@openmrs/esm-patient-chart-app/./src/mark-patient-deceased/mark-patient-deceased-form.scss?18d6","webpack://@openmrs/esm-patient-chart-app/./src/mark-patient-deceased/mark-patient-deceased-form.workspace.tsx"],"names":["fuzzy","module","exports","simpleFilter","pattern","array","filter","str","test","match","opts","ch","patternIdx","result","len","length","totalScore","currScore","pre","post","compareString","caseSensitive","toLowerCase","idx","Infinity","rendered","join","score","arr","reduce","prev","element","extract","string","index","original","sort","a","b","___CSS_LOADER_EXPORT___","push","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","errors","closeWorkspace","patientUuid","useTranslation","t","isTablet","useLayoutType","memoizedPatientUuid","useMemo","useState","isSubmitting","setIsSubmitting","searchTerm","setSearchTerm","useCausesOfDeath","causesOfDeath","isLoading","useConfig","freeTextFieldConceptUuid","filteredCausesOfDeath","causeOfDeathConcept","display","r1","r2","map","schema","z","object","causeOfDeath","refine","message","deathDate","date","nonCodedCauseOfDeath","optional","data","path","useForm","mode","resolver","zodResolver","defaultValues","Date","control","formState","handleSubmit","causeOfDeathValue","watch","onSubmit","useCallback","markPatientDeceased","then","window","location","reload","catch","error","showSnackbar","kind","isLowContrast","subtitle","title","finally","Form","className","styles","form","console","div","Row","headerGridRow","ExtensionSlot","dataGridRow","name","state","container","span","warningContainer","WarningFilled","aria-label","warningIcon","size","warningText","section","sectionTitle","ResponsiveWrapper","Controller","render","field","onChange","value","DatePicker","datePicker","dateFormat","datePickerType","maxDate","toISOString","DatePickerInput","labelText","placeholder","style","width","p","errorMessage","DatePickerSkeleton","classNames","conceptAnswerOverviewWrapper","conceptAnswerOverviewWrapperTablet","conceptAnswerOverviewWrapperDesktop","errorOutline","isLoadingCausesOfDeath","StructuredListSkeleton","Search","event","target","RadioButtonGroup","radioButtonGroup","orientation","uuid","RadioButton","radioButton","key","tileContainer","Tile","tile","tileContent","content","helper","EmptyState","displayText","headerTitle","TextInput","invalid","invalidText","ButtonSet","tablet","desktop","Button","button","onClick","disabled","type","InlineLoading","description","role"],"sourceRoot":""}