@medplum/react 3.2.22 → 3.2.24

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.
@@ -1,2 +1,2 @@
1
- .AppShell_main{flex:1;background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-dark-6));padding-bottom:var(--mantine-spacing-lg);overflow-x:auto}.Header_logoButton,.Header_user{padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);border-radius:var(--mantine-radius-sm);transition:background-color .1s ease;&:hover{background-color:var(--mantine-primary-color-light-hover)}}.Header_userName{font-weight:500;line-height:1px;margin-right:3px;@media (max-width: $mantine-breakpoint-xs){display:none}}.Header_userActive{background-color:var(--mantine-primary-color-light-hover)}.HeaderSearchInput_searchInput{input{width:220px;transition:width .1s ease-in-out}input:focus{width:400px}@media (max-width: 800px){input{width:150px}input:focus{width:150px}}}.Navbar_menuTitle{margin:20px 0 4px 6px;font-size:9px;font-weight:400;text-transform:uppercase;letter-spacing:2px}.Navbar_link{display:flex;align-items:center;text-decoration:none;font-size:var(--mantine-font-size-sm);color:light-dark(var(--mantine-color-gray-7),var(--mantine-color-dark-1));padding:8px 12px;border-radius:var(--mantine-radius-sm);font-weight:500;&:hover{background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-dark-6));color:light-dark(var(--mantine-color-black),var(--mantine-color-white));text-decoration:none;& svg{color:light-dark(var(--mantine-color-black),var(--mantine-color-white))}}& svg{color:light-dark(var(--mantine-color-gray-6),var(--mantine-color-dark-2));margin-right:var(--mantine-spacing-sm);stroke-width:1.5;width:18px;height:18px}}.Navbar_linkActive{color:var(--mantine-primary-color-filled);background-color:light-dark(var(--mantine-primary-color-light),var(--mantine-primary-color-dark));&:hover{color:var(--mantine-primary-color-filled-hover);background-color:light-dark(var(--mantine-primary-color-light-hover),var(--mantine-primary-color-dark-hover));& svg{color:var(--mantine-color-blue-light-color)}}& svg{color:var(--mantine-color-blue-light-color)}}.DescriptionList_root{display:grid;grid-template-columns:30% 70%;margin:0;>dt,>dd{padding:var(--mantine-spacing-sm);border-top:.1px solid light-dark(var(--mantine-color-gray-3),var(--mantine-color-dark-4));margin:0}>dt:first-of-type,>dd:first-of-type{border-top:0;padding-top:0}>dt:last-of-type,>dd:last-of-type{padding-bottom:0}}.DescriptionList_compact{grid-template-columns:auto 1fr;>dt,>dd{padding:0 0 var(--mantine-spacing-xs);border-top:0}>dt{padding-right:var(--mantine-spacing-xs)}>dd{padding-left:var(--mantine-spacing-xs)}>dt:last-of-type,>dd:last-of-type{padding-bottom:0}}.FormSection_dimmed{color:var(--mantine-color-dimmed)}.ResourceArrayInput_indented{margin-top:.5rem;border-left:3px solid var(--mantine-color-gray-4);padding:.5rem 0 .5rem .5rem}.CalendarInput_table{width:350px;& th{font-weight:400;font-size:11px;padding:8px;text-align:center}& td{padding:2px 4px}& td button{width:44px;height:44px;color:theme.colors[theme.primaryColor][5];font-size:16px;font-weight:500;text-align:center;padding:0;background-color:theme.colors[theme.primaryColor][0];border:0;border-radius:50px;cursor:pointer}& td button:hover{background-color:theme.colors[theme.primaryColor][1]}& td button:disabled{background-color:transparen;cursor:defaul;color:var(--mantine-color-gray-4);font-weight:400}}.Container_root{@media (max-width: 800px){padding-left:4px;padding-right:4px}}.NoteDisplay_noteBody{font-size:var(--mantine-font-size-sm)}.NoteDisplay_noteCite{font-size:var(--mantine-font-size-xs);margin-block-start:3}.NoteDisplay_noteRoot{padding:5px}.DiagnosticReportDisplay_table{border:.1px solid var(--mantine-color-gray-5);border-collapse:collapse;& td,th{border:.1px solid var(--mantine-color-gray-5);padding:4px}}.DiagnosticReportDisplay_criticalRow{background:light-dark(var(--mantine-color-red-1),var(--mantine-color-red-7));border:.1px solid var(--mantine-color-red-5);color:var(--mantine-color-red-5);font-weight:500;& td{border:.1px solid var(--mantine-color-red-5)}}.DiagnosticReportDisplay_noteBody{font-size:var(--mantine-font-size-sm)}.DiagnosticReportDisplay_noteCite{font-size:var(--mantine-font-size-xs);margin-block-start:3}.DiagnosticReportDisplay_noteRoot{padding:5px}.Panel_paper{margin:var(--mantine-spacing-xl) auto;padding:var(--mantine-spacing-md);@media (max-width: 800px){padding:8px}& img{width:100%;max-width:100%}& video{width:100%;max-width:100%}}.Panel_fill{padding:0}.ResourceDiffTable_root{border-collapse:collapse;width:100%;& tr{border-top:.1px solid var(--mantine-color-gray-3)}& th,td{padding:var(--mantine-spacing-sm) var(--mantine-spacing-sm);vertical-align:top}}.ResourceDiffTable_removed{color:var(--mantine-color-red-7);text-decoration:line-through}.ResourceDiffTable_added{color:var(--mantine-color-green-7)}.Timeline_item{white-space:pre-wrap}.Timeline_itemPadding{padding:0 16px 16px}.ResourceTimeline_pinnedComment{background-color:var(--mantine-color-blue-0)}.SearchControl_root{max-width:100%;overflow:auto;text-align:left;margin-bottom:20px}.SearchControl_table{cursor:pointer}.SearchControl_tr{&:hover{background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-dark-6))}}.SearchControl_th{padding:0!important}.SearchControl_control{width:100%;padding:var(--mantine-spacing-xs) var(--mantine-spacing-md);&:hover{background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-dark-6))}}.SearchControl_icon{width:21px;height:21px;border-radius:21px}.PlanDefinitionBuilder_section{position:relative;margin:4px 4px 8px;padding:6px 12px 16px 6px;border:1.5px solid var(--mantine-color-gray-1);border-radius:var(--mantine-radius-sm);transition:all .1}.PlanDefinitionBuilder_hovering{border:1.5px solid var(--mantine-color-blue-5)}.PlanDefinitionBuilder_editing{border:1.5px solid var(--mantine-color-gray-1);border-left:4px solid var(--mantine-color-blue-5)}.PlanDefinitionBuilder_bottomActions{position:absolute;right:4px;bottom:0;font-size:var(--mantine-font-size-xs);& a{margin-left:8px}}.QuestionnaireBuilder_section{position:relative;margin:4px 4px 8px;padding:6px 12px 16px 6px;border:1.5px solid var(--mantine-color-gray-1);border-radius:var(--mantine-radius-sm);transition:all .1}.QuestionnaireBuilder_hovering{border:1.5px solid var(--mantine-color-blue-5)}.QuestionnaireBuilder_editing{border:1.5px solid var(--mantine-color-gray-1);border-left:4px solid var(--mantine-color-blue-5);min-height:100px}.QuestionnaireBuilder_questionBody{max-width:600px}.QuestionnaireBuilder_topActions{position:absolute;right:32px;top:1px;padding:4px;color:var(--mantine-color-gray-5);font-size:var(--mantine-font-size-xs)}.QuestionnaireBuilder_bottomActions{position:absolute;right:4px;bottom:0;--text-fz: var(--mantine-font-size-xs);& a{margin-left:8px}}.QuestionnaireBuilder_movementActions{position:absolute;right:8px;top:0;padding-top:8px;font-size:var(--mantine-font-size-xs);& a{margin-left:8px}}.QuestionnaireBuilder_movementIcons{color:var(--mantine-color-gray-5)}.QuestionnaireBuilder_columnAlignment{display:flex;flex-direction:column}.QuestionnaireBuilder_linkIdInput{width:100px;margin-bottom:4px}.QuestionnaireBuilder_typeSelect{width:100px}.ReferenceRangeEditor_section{position:relative;margin:4px 4px 8px;padding:6px 12px 16px 6px;border:1.5px solid var(--mantine-color-gray-3);border-radius:var(--mantine-radius-sm);transition:all .1}.ResourceBlame_container{overflow-x:auto}.ResourceBlame_root{border:.1px solid var(--mantine-color-gray-3);border-collapse:collapse;border-radius:var(--mantine-radius-sm);border-spacing:0;font-size:var(--mantine-font-size-xs);width:100px;& td{padding:2px 4px 0;vertical-align:top;white-space:nowrap}}.ResourceBlame_startRow{border-top:.1px solid var(--mantine-color-gray-3)}.ResourceBlame_normalRow{border-top:0}.ResourceBlame_author{line-height:10px}.ResourceBlame_dateTime{border-right:.1px solid var(--mantine-color-gray-3);line-height:20px}.ResourceBlame_lineNumber{background-color:var(--mantine-color-gray-1);border:0;color:var(--mantine-color-gray-5);font-family:var(--mantine-font-family-monospace);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);text-align:right}.ResourceBlame_line{font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-sm);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm)}.ResourceBlame_pre{margin:0}.ResourceDiff_removed{color:var(--mantine-color-red-7);text-decoration:line-through}.ResourceDiff_added{color:var(--mantine-color-green-7)}.ResourceForm_splitButton{border-top-right-radius:0;border-bottom-right-radius:0}.ResourceForm_menuControl{border-top-left-radius:0;border-bottom-left-radius:0;border:0;border-left:rem(1px) solid var(--mantine-color-body)}.Scheduler_container{display:flex;min-height:400px}.Scheduler_info{min-width:300px;padding:20px;border-right:1px solid var(--mantine-color-gray-3)}.Scheduler_selection{min-width:300px;padding:20px}.BaseChat_chatPaper{height:100%;display:flex;flex-direction:column;overflow:hidden}.BaseChat_chatTitle{background-color:light-dark(var(--mantine-color-blue-7),var(--mantine-color-blue-8));color:light-dark(var(--mantine-color-white),var(--mantine-color-gray-3));font-size:var(--mantine-font-size-sm);font-weight:500;padding:var(--mantine-spacing-sm);user-select:none}.BaseChat_chatBody{background-color:var(--mantine-color-body);flex:1;position:relative}.BaseChat_chatScrollArea{padding:var(--mantine-spacing-xs)}.BaseChat_chatInputContainer{background-color:light-dark(var(--mantine-color-gray-2),var(--mantine-color-dark-4));padding:6px 8px}.BaseChat_chatBubbleOuterWrap{max-width:75%;padding-bottom:10px}.BaseChat_chatBubbleRightAlignedInnerWrap{display:flex;flex-direction:row-reverse}.BaseChat_chatBubbleLeftAlignedInnerWrap{display:flex;flex-direction:row}.BaseChat_chatBubble{background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-blue-7));border-radius:var(--mantine-radius-lg);padding:var(--mantine-spacing-sm);min-width:40px;color:light-dark(var(--mantine-color-dark),var(--mantine-color-gray-2));& p{margin-top:.25rem;margin-bottom:.25rem}& pre{max-width:280px;overflow:auto}}.BaseChat_chatBubbleName{margin-bottom:5px;font-weight:500}.BaseChat_chatBubbleNameRight{text-align:right}.ChatModal_iconContainer{position:fixed;bottom:.5rem;right:.5rem;z-index:100px}.ChatModal_icon{background-color:light-dark(var(--mantine-color-white),var(--mantine-color-dark-7));box-shadow:0 .2rem .4rem #0000000d,0 .2rem .4rem #0000001a}.ChatModal_chatModalContainer{position:fixed;bottom:3rem;right:.5rem;z-index:100px;width:400px;height:450px;max-height:450px;overflow:hidden;border-radius:var(--mantine-radius-md);box-shadow:0 .2rem .4rem #0000000d,0 .2rem .4rem #0000001a}
1
+ .AppShell_main{flex:1;background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-dark-6));padding-bottom:var(--mantine-spacing-lg);overflow-x:auto}.Header_logoButton,.Header_user{padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);border-radius:var(--mantine-radius-sm);transition:background-color .1s ease;&:hover{background-color:var(--mantine-primary-color-light-hover)}}.Header_userName{font-weight:500;line-height:1px;margin-right:3px;@media (max-width: $mantine-breakpoint-xs){display:none}}.Header_userActive{background-color:var(--mantine-primary-color-light-hover)}.HeaderSearchInput_searchInput{input{width:220px;transition:width .1s ease-in-out}input:focus{width:400px}@media (max-width: 800px){input{width:150px}input:focus{width:150px}}}.Navbar_menuTitle{margin:20px 0 4px 6px;font-size:9px;font-weight:400;text-transform:uppercase;letter-spacing:2px}.Navbar_link{display:flex;align-items:center;text-decoration:none;font-size:var(--mantine-font-size-sm);color:light-dark(var(--mantine-color-gray-7),var(--mantine-color-dark-1));padding:8px 12px;border-radius:var(--mantine-radius-sm);font-weight:500;&:hover{background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-dark-6));color:light-dark(var(--mantine-color-black),var(--mantine-color-white));text-decoration:none;& svg{color:light-dark(var(--mantine-color-black),var(--mantine-color-white))}}& svg{color:light-dark(var(--mantine-color-gray-6),var(--mantine-color-dark-2));margin-right:var(--mantine-spacing-sm);stroke-width:1.5;width:18px;height:18px}}.Navbar_linkActive{color:var(--mantine-primary-color-filled);background-color:light-dark(var(--mantine-primary-color-light),var(--mantine-primary-color-dark));&:hover{color:var(--mantine-primary-color-filled-hover);background-color:light-dark(var(--mantine-primary-color-light-hover),var(--mantine-primary-color-dark-hover));& svg{color:var(--mantine-color-blue-light-color)}}& svg{color:var(--mantine-color-blue-light-color)}}.DescriptionList_root{display:grid;grid-template-columns:30% 70%;margin:0;>dt,>dd{padding:var(--mantine-spacing-sm);border-top:.1px solid light-dark(var(--mantine-color-gray-3),var(--mantine-color-dark-4));margin:0}>dt:first-of-type,>dd:first-of-type{border-top:0;padding-top:0}>dt:last-of-type,>dd:last-of-type{padding-bottom:0}}.DescriptionList_compact{grid-template-columns:auto 1fr;>dt,>dd{padding:0 0 var(--mantine-spacing-xs);border-top:0}>dt{padding-right:var(--mantine-spacing-xs)}>dd{padding-left:var(--mantine-spacing-xs)}>dt:last-of-type,>dd:last-of-type{padding-bottom:0}}.FormSection_dimmed{color:var(--mantine-color-dimmed)}.ResourceArrayInput_indented{margin-top:.5rem;border-left:3px solid var(--mantine-color-gray-4);padding:.5rem 0 .5rem .5rem}.CalendarInput_table{width:350px;& th{font-weight:400;font-size:11px;padding:8px;text-align:center}& td{padding:2px 4px}& td button{width:44px;height:44px;color:theme.colors[theme.primaryColor][5];font-size:16px;font-weight:500;text-align:center;padding:0;background-color:theme.colors[theme.primaryColor][0];border:0;border-radius:50px;cursor:pointer}& td button:hover{background-color:theme.colors[theme.primaryColor][1]}& td button:disabled{background-color:transparen;cursor:defaul;color:var(--mantine-color-gray-4);font-weight:400}}.Container_root{@media (max-width: 800px){padding-left:4px;padding-right:4px}}.NoteDisplay_noteBody{font-size:var(--mantine-font-size-sm)}.NoteDisplay_noteCite{font-size:var(--mantine-font-size-xs);margin-block-start:3}.NoteDisplay_noteRoot{padding:5px}.DiagnosticReportDisplay_table{border:.1px solid var(--mantine-color-gray-5);border-collapse:collapse;& td,th{border:.1px solid var(--mantine-color-gray-5);padding:4px}}.DiagnosticReportDisplay_criticalRow{background:light-dark(var(--mantine-color-red-1),var(--mantine-color-red-7));border:.1px solid var(--mantine-color-red-5);color:var(--mantine-color-red-5);font-weight:500;& td{border:.1px solid var(--mantine-color-red-5)}}.DiagnosticReportDisplay_noteBody{font-size:var(--mantine-font-size-sm)}.DiagnosticReportDisplay_noteCite{font-size:var(--mantine-font-size-xs);margin-block-start:3}.DiagnosticReportDisplay_noteRoot{padding:5px}.Panel_paper{margin:var(--mantine-spacing-xl) auto;padding:var(--mantine-spacing-md);@media (max-width: 800px){padding:8px}& img{width:100%;max-width:100%}& video{width:100%;max-width:100%}}.Panel_fill{padding:0}.ResourceDiffTable_root{border-collapse:collapse;width:100%;& tr{border-top:.1px solid var(--mantine-color-gray-3)}& th,td{padding:var(--mantine-spacing-sm) var(--mantine-spacing-sm);vertical-align:top;word-wrap:break-word;overflow-wrap:anywhere;white-space:normal;min-width:100px}}.ResourceDiffTable_removed{color:var(--mantine-color-red-7);text-decoration:line-through}.ResourceDiffTable_added{color:var(--mantine-color-green-7)}.Timeline_item{white-space:pre-wrap}.Timeline_itemPadding{padding:0 16px 16px}.ResourceTimeline_pinnedComment{background-color:var(--mantine-color-blue-0)}.SearchControl_root{max-width:100%;overflow:auto;text-align:left;margin-bottom:20px}.SearchControl_table{cursor:pointer}.SearchControl_tr{&:hover{background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-dark-6))}}.SearchControl_th{padding:0!important}.SearchControl_control{width:100%;padding:var(--mantine-spacing-xs) var(--mantine-spacing-md);&:hover{background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-dark-6))}}.SearchControl_icon{width:21px;height:21px;border-radius:21px}.PlanDefinitionBuilder_section{position:relative;margin:4px 4px 8px;padding:6px 12px 16px 6px;border:1.5px solid var(--mantine-color-gray-1);border-radius:var(--mantine-radius-sm);transition:all .1}.PlanDefinitionBuilder_hovering{border:1.5px solid var(--mantine-color-blue-5)}.PlanDefinitionBuilder_editing{border:1.5px solid var(--mantine-color-gray-1);border-left:4px solid var(--mantine-color-blue-5)}.PlanDefinitionBuilder_bottomActions{position:absolute;right:4px;bottom:0;font-size:var(--mantine-font-size-xs);& a{margin-left:8px}}.QuestionnaireBuilder_section{position:relative;margin:4px 4px 8px;padding:6px 12px 16px 6px;border:1.5px solid var(--mantine-color-gray-1);border-radius:var(--mantine-radius-sm);transition:all .1}.QuestionnaireBuilder_hovering{border:1.5px solid var(--mantine-color-blue-5)}.QuestionnaireBuilder_editing{border:1.5px solid var(--mantine-color-gray-1);border-left:4px solid var(--mantine-color-blue-5);min-height:100px}.QuestionnaireBuilder_questionBody{max-width:600px}.QuestionnaireBuilder_topActions{position:absolute;right:32px;top:1px;padding:4px;color:var(--mantine-color-gray-5);font-size:var(--mantine-font-size-xs)}.QuestionnaireBuilder_bottomActions{position:absolute;right:4px;bottom:0;--text-fz: var(--mantine-font-size-xs);& a{margin-left:8px}}.QuestionnaireBuilder_movementActions{position:absolute;right:8px;top:0;padding-top:8px;font-size:var(--mantine-font-size-xs);& a{margin-left:8px}}.QuestionnaireBuilder_movementIcons{color:var(--mantine-color-gray-5)}.QuestionnaireBuilder_columnAlignment{display:flex;flex-direction:column}.QuestionnaireBuilder_linkIdInput{width:100px;margin-bottom:4px}.QuestionnaireBuilder_typeSelect{width:100px}.ReferenceRangeEditor_section{position:relative;margin:4px 4px 8px;padding:6px 12px 16px 6px;border:1.5px solid var(--mantine-color-gray-3);border-radius:var(--mantine-radius-sm);transition:all .1}.ResourceBlame_container{overflow-x:auto}.ResourceBlame_root{border:.1px solid var(--mantine-color-gray-3);border-collapse:collapse;border-radius:var(--mantine-radius-sm);border-spacing:0;font-size:var(--mantine-font-size-xs);width:100px;& td{padding:2px 4px 0;vertical-align:top;white-space:nowrap}}.ResourceBlame_startRow{border-top:.1px solid var(--mantine-color-gray-3)}.ResourceBlame_normalRow{border-top:0}.ResourceBlame_author{line-height:10px}.ResourceBlame_dateTime{border-right:.1px solid var(--mantine-color-gray-3);line-height:20px}.ResourceBlame_lineNumber{background-color:var(--mantine-color-gray-1);border:0;color:var(--mantine-color-gray-5);font-family:var(--mantine-font-family-monospace);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);text-align:right}.ResourceBlame_line{font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-sm);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm)}.ResourceBlame_pre{margin:0}.ResourceDiff_removed{color:var(--mantine-color-red-7);text-decoration:line-through}.ResourceDiff_added{color:var(--mantine-color-green-7)}.ResourceForm_splitButton{border-top-right-radius:0;border-bottom-right-radius:0}.ResourceForm_menuControl{border-top-left-radius:0;border-bottom-left-radius:0;border:0;border-left:rem(1px) solid var(--mantine-color-body)}.Scheduler_container{display:flex;min-height:400px}.Scheduler_info{min-width:300px;padding:20px;border-right:1px solid var(--mantine-color-gray-3)}.Scheduler_selection{min-width:300px;padding:20px}.BaseChat_chatPaper{height:100%;display:flex;flex-direction:column;overflow:hidden}.BaseChat_chatTitle{background-color:light-dark(var(--mantine-color-blue-7),var(--mantine-color-blue-8));color:light-dark(var(--mantine-color-white),var(--mantine-color-gray-3));font-size:var(--mantine-font-size-sm);font-weight:500;padding:var(--mantine-spacing-sm);user-select:none}.BaseChat_chatBody{background-color:var(--mantine-color-body);flex:1;position:relative}.BaseChat_chatScrollArea{padding:var(--mantine-spacing-xs)}.BaseChat_chatInputContainer{background-color:light-dark(var(--mantine-color-gray-2),var(--mantine-color-dark-4));padding:6px 8px}.BaseChat_chatBubbleOuterWrap{max-width:75%;padding-bottom:10px}.BaseChat_chatBubbleRightAlignedInnerWrap{display:flex;flex-direction:row-reverse}.BaseChat_chatBubbleLeftAlignedInnerWrap{display:flex;flex-direction:row}.BaseChat_chatBubble{background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-blue-7));border-radius:var(--mantine-radius-lg);padding:var(--mantine-spacing-sm);min-width:40px;color:light-dark(var(--mantine-color-dark),var(--mantine-color-gray-2));& p{margin-top:.25rem;margin-bottom:.25rem}& pre{max-width:280px;overflow:auto}}.BaseChat_chatBubbleName{margin-bottom:5px;font-weight:500}.BaseChat_chatBubbleNameRight{text-align:right}.ChatModal_iconContainer{position:fixed;bottom:.5rem;right:.5rem;z-index:100px}.ChatModal_icon{background-color:light-dark(var(--mantine-color-white),var(--mantine-color-dark-7));box-shadow:0 .2rem .4rem #0000000d,0 .2rem .4rem #0000001a}.ChatModal_chatModalContainer{position:fixed;bottom:3rem;right:.5rem;z-index:100px;width:400px;height:450px;max-height:450px;overflow:hidden;border-radius:var(--mantine-radius-md);box-shadow:0 .2rem .4rem #0000000d,0 .2rem .4rem #0000001a}
2
2
  /*# sourceMappingURL=index.css.map */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/AppShell/AppShell.module.css", "../../src/AppShell/Header.module.css", "../../src/AppShell/HeaderSearchInput.module.css", "../../src/AppShell/Navbar.module.css", "../../src/DescriptionList/DescriptionList.module.css", "../../src/FormSection/FormSection.module.css", "../../src/ResourceArrayInput/ResourceArrayInput.module.css", "../../src/CalendarInput/CalendarInput.module.css", "../../src/Container/Container.module.css", "../../src/NoteDisplay/NoteDisplay.module.css", "../../src/DiagnosticReportDisplay/DiagnosticReportDisplay.module.css", "../../src/Panel/Panel.module.css", "../../src/ResourceDiffTable/ResourceDiffTable.module.css", "../../src/Timeline/Timeline.module.css", "../../src/ResourceTimeline/ResourceTimeline.module.css", "../../src/SearchControl/SearchControl.module.css", "../../src/PlanDefinitionBuilder/PlanDefinitionBuilder.module.css", "../../src/QuestionnaireBuilder/QuestionnaireBuilder.module.css", "../../src/ReferenceRangeEditor/ReferenceRangeEditor.module.css", "../../src/ResourceBlame/ResourceBlame.module.css", "../../src/ResourceDiff/ResourceDiff.module.css", "../../src/ResourceForm/ResourceForm.module.css", "../../src/Scheduler/Scheduler.module.css", "../../src/chat/BaseChat/BaseChat.module.css", "../../src/chat/ChatModal/ChatModal.module.css"],
4
- "sourcesContent": [".main {\n flex: 1;\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));\n padding-bottom: var(--mantine-spacing-lg);\n overflow-x: auto;\n}\n", ".logoButton {\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);\n border-radius: var(--mantine-radius-sm);\n transition: background-color 100ms ease;\n\n &:hover {\n background-color: var(--mantine-primary-color-light-hover);\n }\n}\n\n.user {\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);\n border-radius: var(--mantine-radius-sm);\n transition: background-color 100ms ease;\n\n &:hover {\n background-color: var(--mantine-primary-color-light-hover);\n }\n}\n\n.userName {\n font-weight: 500;\n line-height: 1px;\n margin-right: 3px;\n\n @media (max-width: $mantine-breakpoint-xs) {\n display: none;\n }\n}\n\n.userActive {\n background-color: var(--mantine-primary-color-light-hover);\n}\n", ".searchInput {\n input {\n width: 220px;\n transition: width 0.1s ease-in-out;\n }\n\n input:focus {\n width: 400px;\n }\n\n @media (max-width: 800px) {\n input {\n width: 150px;\n }\n input:focus {\n width: 150px;\n }\n }\n}\n", ".menuTitle {\n margin: 20px 0 4px 6px;\n font-size: 9px;\n font-weight: normal;\n text-transform: uppercase;\n letter-spacing: 2px;\n}\n\n.link {\n display: flex;\n align-items: center;\n text-decoration: none;\n font-size: var(--mantine-font-size-sm);\n color: light-dark(var(--mantine-color-gray-7), var(--mantine-color-dark-1));\n padding: 8px 12px;\n border-radius: var(--mantine-radius-sm);\n font-weight: 500;\n\n &:hover {\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));\n color: light-dark(var(--mantine-color-black), var(--mantine-color-white));\n text-decoration: none;\n\n & svg {\n color: light-dark(var(--mantine-color-black), var(--mantine-color-white));\n }\n }\n\n & svg {\n color: light-dark(var(--mantine-color-gray-6), var(--mantine-color-dark-2));\n margin-right: var(--mantine-spacing-sm);\n stroke-width: 1.5;\n width: 18px;\n height: 18px;\n }\n}\n\n.linkActive {\n color: var(--mantine-primary-color-filled);\n background-color: light-dark(var(--mantine-primary-color-light), var(--mantine-primary-color-dark));\n\n &:hover {\n color: var(--mantine-primary-color-filled-hover);\n background-color: light-dark(var(--mantine-primary-color-light-hover), var(--mantine-primary-color-dark-hover));\n\n & svg {\n color: var(--mantine-color-blue-light-color);\n }\n }\n\n & svg {\n color: var(--mantine-color-blue-light-color);\n }\n}\n", ".root {\n display: grid;\n grid-template-columns: 30% 70%;\n margin: 0;\n\n & > dt,\n & > dd {\n padding: var(--mantine-spacing-sm);\n border-top: 0.1px solid light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4));\n margin: 0;\n }\n\n & > dt:first-of-type,\n & > dd:first-of-type {\n border-top: 0;\n padding-top: 0;\n }\n\n & > dt:last-of-type,\n & > dd:last-of-type {\n padding-bottom: 0;\n }\n}\n\n.compact {\n grid-template-columns: auto 1fr;\n\n & > dt,\n & > dd {\n padding: 0 0 var(--mantine-spacing-xs);\n border-top: 0;\n }\n\n & > dt {\n padding-right: var(--mantine-spacing-xs);\n }\n\n & > dd {\n padding-left: var(--mantine-spacing-xs);\n }\n\n & > dt:last-of-type,\n & > dd:last-of-type {\n padding-bottom: 0;\n }\n}\n", ".dimmed {\n color: var(--mantine-color-dimmed);\n}\n", ".indented {\n margin-top: 0.5rem;\n border-left: 3px solid var(--mantine-color-gray-4);\n padding: 0.5rem 0 0.5rem 0.5rem;\n}\n", "\n.table {\n width: 350px;\n\n & th {\n font-weight: normal;\n font-size: 11px;\n padding: 8px;\n text-align: center;\n }\n\n & td {\n padding: 2px 4px;\n }\n\n & td button {\n width: 44px;\n height: 44px;\n color: theme.colors[theme.primaryColor][5];\n font-size: 16px;\n font-weight: 500;\n text-align: center;\n padding: 0;\n background-color: theme.colors[theme.primaryColor][0];\n border: 0;\n border-radius: 50px;\n cursor: pointer;\n }\n\n & td button:hover {\n background-color: theme.colors[theme.primaryColor][1];\n }\n\n & td button:disabled {\n background-color: transparen;\n cursor: defaul;\n color: var(--mantine-color-gray-4);\n font-weight: normal;\n }\n}", ".root {\n @media (max-width: 800px) {\n padding-left: 4px;\n padding-right: 4px;\n }\n}\n", ".noteBody {\n font-size: var(--mantine-font-size-sm);\n}\n\n.noteCite {\n font-size: var(--mantine-font-size-xs);\n margin-block-start: 3;\n}\n\n.noteRoot {\n padding: 5px;\n}\n", ".table {\n border: 0.1px solid var(--mantine-color-gray-5);\n border-collapse: collapse;\n\n & td,\n & th {\n border: 0.1px solid var(--mantine-color-gray-5);\n padding: 4px;\n }\n}\n\n.criticalRow {\n background: light-dark(var(--mantine-color-red-1), var(--mantine-color-red-7));\n border: 0.1px solid var(--mantine-color-red-5);\n color: var(--mantine-color-red-5);\n font-weight: 500;\n\n & td {\n border: 0.1px solid var(--mantine-color-red-5);\n }\n}\n\n.noteBody {\n font-size: var(--mantine-font-size-sm);\n}\n\n.noteCite {\n font-size: var(--mantine-font-size-xs);\n margin-block-start: 3;\n}\n\n.noteRoot {\n padding: 5px;\n}\n", ".paper {\n margin: var(--mantine-spacing-xl) auto;\n padding: var(--mantine-spacing-md);\n\n @media (max-width: 800px) {\n padding: 8px;\n }\n\n & img {\n width: 100%;\n max-width: 100%;\n }\n\n & video {\n width: 100%;\n max-width: 100%;\n }\n}\n\n.fill {\n padding: 0;\n}\n", ".root {\n border-collapse: collapse;\n width: 100%;\n\n & tr {\n border-top: 0.1px solid var(--mantine-color-gray-3);\n }\n\n & th,\n & td {\n padding: var(--mantine-spacing-sm) var(--mantine-spacing-sm);\n vertical-align: top;\n }\n}\n\n.removed {\n color: var(--mantine-color-red-7);\n text-decoration: line-through;\n}\n\n.added {\n color: var(--mantine-color-green-7);\n}\n", ".item {\n white-space: pre-wrap;\n}\n\n.itemPadding {\n padding: 0 16px 16px 16px;\n}\n", "\n.pinnedComment {\n background-color: var(--mantine-color-blue-0);\n}", ".root {\n max-width: 100%;\n overflow: auto;\n text-align: left;\n margin-bottom: 20px;\n}\n\n.table {\n cursor: pointer;\n}\n\n.tr {\n &:hover {\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));\n }\n}\n\n.th {\n padding: 0 !important;\n}\n\n.control {\n width: 100%;\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-md);\n\n &:hover {\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));\n }\n}\n\n.icon {\n width: 21px;\n height: 21px;\n border-radius: 21px;\n}\n", "\n.section {\n position: relative;\n margin: 4px 4px 8px;\n padding: 6px 12px 16px 6px;\n border: 1.5px solid var(--mantine-color-gray-1);\n border-radius: var(--mantine-radius-sm);\n transition: all 0.1;\n}\n\n.hovering {\n border: 1.5px solid var(--mantine-color-blue-5);\n}\n\n.editing {\n border: 1.5px solid var(--mantine-color-gray-1);\n border-left: 4px solid var(--mantine-color-blue-5);\n}\n\n.bottomActions {\n position: absolute;\n right: 4px;\n bottom: 0;\n font-size: var(--mantine-font-size-xs);\n\n & a {\n margin-left: 8px;\n }\n}", ".section {\n position: relative;\n margin: 4px 4px 8px;\n padding: 6px 12px 16px 6px;\n border: 1.5px solid var(--mantine-color-gray-1);\n border-radius: var(--mantine-radius-sm);\n transition: all 0.1;\n}\n\n.hovering {\n border: 1.5px solid var(--mantine-color-blue-5);\n}\n\n.editing {\n border: 1.5px solid var(--mantine-color-gray-1);\n border-left: 4px solid var(--mantine-color-blue-5);\n min-height: 100px;\n}\n\n.questionBody {\n max-width: 600px;\n}\n\n.topActions {\n position: absolute;\n right: 32px;\n top: 1px;\n padding: 4px;\n color: var(--mantine-color-gray-5);\n font-size: var(--mantine-font-size-xs);\n}\n\n.bottomActions {\n position: absolute;\n right: 4px;\n bottom: 0;\n --text-fz: var(--mantine-font-size-xs);\n\n & a {\n margin-left: 8px;\n }\n}\n\n.movementActions {\n position: absolute;\n right: 8px;\n top: 0;\n padding-top: 8px;\n font-size: var(--mantine-font-size-xs);\n\n & a {\n margin-left: 8px;\n }\n}\n\n.movementIcons {\n color: var(--mantine-color-gray-5);\n}\n\n.columnAlignment {\n display: flex;\n flex-direction: column;\n}\n\n.linkIdInput {\n width: 100px;\n margin-bottom: 4px;\n}\n\n.typeSelect {\n width: 100px;\n}\n", ".section {\n position: relative;\n margin: 4px 4px 8px;\n padding: 6px 12px 16px 6px;\n border: 1.5px solid var(--mantine-color-gray-3);\n border-radius: var(--mantine-radius-sm);\n transition: all 0.1;\n}\n", ".container {\n overflow-x: auto;\n}\n\n.root {\n border: 0.1px solid var(--mantine-color-gray-3);\n border-collapse: collapse;\n border-radius: var(--mantine-radius-sm);\n border-spacing: 0;\n font-size: var(--mantine-font-size-xs);\n width: 100px;\n\n & td {\n padding: 2px 4px 0 4px;\n vertical-align: top;\n white-space: nowrap;\n }\n}\n\n.startRow {\n border-top: 0.1px solid var(--mantine-color-gray-3);\n}\n\n.normalRow {\n border-top: 0;\n}\n\n.author {\n line-height: 10px;\n}\n\n.dateTime {\n border-right: 0.1px solid var(--mantine-color-gray-3);\n line-height: 20px;\n}\n\n.lineNumber {\n background-color: var(--mantine-color-gray-1);\n border: 0;\n color: var(--mantine-color-gray-5);\n font-family: var(--mantine-font-family-monospace);\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);\n text-align: right;\n}\n\n.line {\n font-family: var(--mantine-font-family-monospace);\n font-size: var(--mantine-font-size-sm);\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);\n}\n\n.pre {\n margin: 0;\n}\n", "\n.removed {\n color: var(--mantine-color-red-7);\n text-decoration: line-through;\n}\n\n.added {\n color: var(--mantine-color-green-7);\n}", ".splitButton {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.menuControl {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border: 0;\n border-left: rem(1px) solid var(--mantine-color-body);\n}\n", "\n.container {\n display: flex;\n min-height: 400px;\n}\n\n.info {\n min-width: 300px;\n padding: 20px;\n border-right: 1px solid var(--mantine-color-gray-3);\n}\n\n.selection {\n min-width: 300px;\n padding: 20px;\n}", ".chatPaper {\n height: 100%;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}\n\n.chatTitle {\n background-color: light-dark(var(--mantine-color-blue-7), var(--mantine-color-blue-8));\n color: light-dark(var(--mantine-color-white), var(--mantine-color-gray-3));\n font-size: var(--mantine-font-size-sm);\n font-weight: 500;\n padding: var(--mantine-spacing-sm);\n user-select: none;\n}\n\n.chatBody {\n background-color: var(--mantine-color-body);\n flex: 1;\n position: relative;\n}\n\n.chatScrollArea {\n padding: var(--mantine-spacing-xs);\n}\n\n.chatInputContainer {\n background-color: light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-4));\n padding: 6px 8px;\n}\n\n.chatBubbleOuterWrap {\n max-width: 75%;\n padding-bottom: 10px;\n}\n\n.chatBubbleRightAlignedInnerWrap {\n display: flex;\n flex-direction: row-reverse;\n}\n\n.chatBubbleLeftAlignedInnerWrap {\n display: flex;\n flex-direction: row;\n}\n\n.chatBubble {\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-blue-7));\n border-radius: var(--mantine-radius-lg);\n padding: var(--mantine-spacing-sm);\n min-width: 40px;\n color: light-dark(var(--mantine-color-dark), var(--mantine-color-gray-2));\n\n & p {\n margin-top: 0.25rem;\n margin-bottom: 0.25rem;\n }\n\n & pre {\n max-width: 280px;\n overflow: auto;\n }\n}\n\n.chatBubbleName {\n margin-bottom: 5px;\n font-weight: 500;\n}\n\n.chatBubbleNameRight {\n text-align: right;\n}\n", ".iconContainer {\n position: fixed;\n bottom: 0.5rem;\n right: 0.5rem;\n z-index: 100px;\n}\n\n.icon {\n background-color: light-dark(var(--mantine-color-white), var(--mantine-color-dark-7));\n box-shadow:\n 0 0.2rem 0.4rem rgba(0, 0, 0, 0.05),\n 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);\n}\n\n.chatModalContainer {\n position: fixed;\n bottom: 3rem;\n right: 0.5rem;\n z-index: 100px;\n width: 400px;\n height: 450px;\n max-height: 450px;\n overflow: hidden;\n border-radius: var(--mantine-radius-md);\n box-shadow:\n 0 0.2rem 0.4rem rgba(0, 0, 0, 0.05),\n 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);\n}\n"],
5
- "mappings": "AAAA,CAACA,cACC,KAAM,EACN,iBAAkB,WAAW,IAAI,uBAAuB,CAAE,IAAI,yBAC9D,eAAgB,IAAI,sBACpB,WAAY,IACd,CCLA,CAACC,kBAUD,CAACC,YATC,QAAS,IAAI,sBAAsB,IAAI,sBACvC,cAAe,IAAI,qB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,EAAE,MAAO,MAAO,SACpB,CAEA,CAACC,6BACC,SAAU,MACV,OAAQ,KACR,MAAO,MACP,QAAS,MACT,MAAO,MACP,OAAQ,MACR,WAAY,MACZ,SAAU,OACV,cAAe,IAAI,qBACnB,WACE,EAAE,MAAO,MAAO,SAAmB,CACnC,EAAE,MAAO,MAAO,SACpB",
4
+ "sourcesContent": [".main {\n flex: 1;\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));\n padding-bottom: var(--mantine-spacing-lg);\n overflow-x: auto;\n}\n", ".logoButton {\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);\n border-radius: var(--mantine-radius-sm);\n transition: background-color 100ms ease;\n\n &:hover {\n background-color: var(--mantine-primary-color-light-hover);\n }\n}\n\n.user {\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);\n border-radius: var(--mantine-radius-sm);\n transition: background-color 100ms ease;\n\n &:hover {\n background-color: var(--mantine-primary-color-light-hover);\n }\n}\n\n.userName {\n font-weight: 500;\n line-height: 1px;\n margin-right: 3px;\n\n @media (max-width: $mantine-breakpoint-xs) {\n display: none;\n }\n}\n\n.userActive {\n background-color: var(--mantine-primary-color-light-hover);\n}\n", ".searchInput {\n input {\n width: 220px;\n transition: width 0.1s ease-in-out;\n }\n\n input:focus {\n width: 400px;\n }\n\n @media (max-width: 800px) {\n input {\n width: 150px;\n }\n input:focus {\n width: 150px;\n }\n }\n}\n", ".menuTitle {\n margin: 20px 0 4px 6px;\n font-size: 9px;\n font-weight: normal;\n text-transform: uppercase;\n letter-spacing: 2px;\n}\n\n.link {\n display: flex;\n align-items: center;\n text-decoration: none;\n font-size: var(--mantine-font-size-sm);\n color: light-dark(var(--mantine-color-gray-7), var(--mantine-color-dark-1));\n padding: 8px 12px;\n border-radius: var(--mantine-radius-sm);\n font-weight: 500;\n\n &:hover {\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));\n color: light-dark(var(--mantine-color-black), var(--mantine-color-white));\n text-decoration: none;\n\n & svg {\n color: light-dark(var(--mantine-color-black), var(--mantine-color-white));\n }\n }\n\n & svg {\n color: light-dark(var(--mantine-color-gray-6), var(--mantine-color-dark-2));\n margin-right: var(--mantine-spacing-sm);\n stroke-width: 1.5;\n width: 18px;\n height: 18px;\n }\n}\n\n.linkActive {\n color: var(--mantine-primary-color-filled);\n background-color: light-dark(var(--mantine-primary-color-light), var(--mantine-primary-color-dark));\n\n &:hover {\n color: var(--mantine-primary-color-filled-hover);\n background-color: light-dark(var(--mantine-primary-color-light-hover), var(--mantine-primary-color-dark-hover));\n\n & svg {\n color: var(--mantine-color-blue-light-color);\n }\n }\n\n & svg {\n color: var(--mantine-color-blue-light-color);\n }\n}\n", ".root {\n display: grid;\n grid-template-columns: 30% 70%;\n margin: 0;\n\n & > dt,\n & > dd {\n padding: var(--mantine-spacing-sm);\n border-top: 0.1px solid light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4));\n margin: 0;\n }\n\n & > dt:first-of-type,\n & > dd:first-of-type {\n border-top: 0;\n padding-top: 0;\n }\n\n & > dt:last-of-type,\n & > dd:last-of-type {\n padding-bottom: 0;\n }\n}\n\n.compact {\n grid-template-columns: auto 1fr;\n\n & > dt,\n & > dd {\n padding: 0 0 var(--mantine-spacing-xs);\n border-top: 0;\n }\n\n & > dt {\n padding-right: var(--mantine-spacing-xs);\n }\n\n & > dd {\n padding-left: var(--mantine-spacing-xs);\n }\n\n & > dt:last-of-type,\n & > dd:last-of-type {\n padding-bottom: 0;\n }\n}\n", ".dimmed {\n color: var(--mantine-color-dimmed);\n}\n", ".indented {\n margin-top: 0.5rem;\n border-left: 3px solid var(--mantine-color-gray-4);\n padding: 0.5rem 0 0.5rem 0.5rem;\n}\n", "\n.table {\n width: 350px;\n\n & th {\n font-weight: normal;\n font-size: 11px;\n padding: 8px;\n text-align: center;\n }\n\n & td {\n padding: 2px 4px;\n }\n\n & td button {\n width: 44px;\n height: 44px;\n color: theme.colors[theme.primaryColor][5];\n font-size: 16px;\n font-weight: 500;\n text-align: center;\n padding: 0;\n background-color: theme.colors[theme.primaryColor][0];\n border: 0;\n border-radius: 50px;\n cursor: pointer;\n }\n\n & td button:hover {\n background-color: theme.colors[theme.primaryColor][1];\n }\n\n & td button:disabled {\n background-color: transparen;\n cursor: defaul;\n color: var(--mantine-color-gray-4);\n font-weight: normal;\n }\n}", ".root {\n @media (max-width: 800px) {\n padding-left: 4px;\n padding-right: 4px;\n }\n}\n", ".noteBody {\n font-size: var(--mantine-font-size-sm);\n}\n\n.noteCite {\n font-size: var(--mantine-font-size-xs);\n margin-block-start: 3;\n}\n\n.noteRoot {\n padding: 5px;\n}\n", ".table {\n border: 0.1px solid var(--mantine-color-gray-5);\n border-collapse: collapse;\n\n & td,\n & th {\n border: 0.1px solid var(--mantine-color-gray-5);\n padding: 4px;\n }\n}\n\n.criticalRow {\n background: light-dark(var(--mantine-color-red-1), var(--mantine-color-red-7));\n border: 0.1px solid var(--mantine-color-red-5);\n color: var(--mantine-color-red-5);\n font-weight: 500;\n\n & td {\n border: 0.1px solid var(--mantine-color-red-5);\n }\n}\n\n.noteBody {\n font-size: var(--mantine-font-size-sm);\n}\n\n.noteCite {\n font-size: var(--mantine-font-size-xs);\n margin-block-start: 3;\n}\n\n.noteRoot {\n padding: 5px;\n}\n", ".paper {\n margin: var(--mantine-spacing-xl) auto;\n padding: var(--mantine-spacing-md);\n\n @media (max-width: 800px) {\n padding: 8px;\n }\n\n & img {\n width: 100%;\n max-width: 100%;\n }\n\n & video {\n width: 100%;\n max-width: 100%;\n }\n}\n\n.fill {\n padding: 0;\n}\n", ".root {\n border-collapse: collapse;\n width: 100%;\n\n & tr {\n border-top: 0.1px solid var(--mantine-color-gray-3);\n }\n\n & th,\n & td {\n padding: var(--mantine-spacing-sm) var(--mantine-spacing-sm);\n vertical-align: top;\n word-wrap: break-word;\n overflow-wrap: anywhere;\n white-space: normal; \n min-width: 100px; \n }\n}\n\n.removed {\n color: var(--mantine-color-red-7);\n text-decoration: line-through;\n}\n\n.added {\n color: var(--mantine-color-green-7);\n}\n", ".item {\n white-space: pre-wrap;\n}\n\n.itemPadding {\n padding: 0 16px 16px 16px;\n}\n", "\n.pinnedComment {\n background-color: var(--mantine-color-blue-0);\n}", ".root {\n max-width: 100%;\n overflow: auto;\n text-align: left;\n margin-bottom: 20px;\n}\n\n.table {\n cursor: pointer;\n}\n\n.tr {\n &:hover {\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));\n }\n}\n\n.th {\n padding: 0 !important;\n}\n\n.control {\n width: 100%;\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-md);\n\n &:hover {\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));\n }\n}\n\n.icon {\n width: 21px;\n height: 21px;\n border-radius: 21px;\n}\n", "\n.section {\n position: relative;\n margin: 4px 4px 8px;\n padding: 6px 12px 16px 6px;\n border: 1.5px solid var(--mantine-color-gray-1);\n border-radius: var(--mantine-radius-sm);\n transition: all 0.1;\n}\n\n.hovering {\n border: 1.5px solid var(--mantine-color-blue-5);\n}\n\n.editing {\n border: 1.5px solid var(--mantine-color-gray-1);\n border-left: 4px solid var(--mantine-color-blue-5);\n}\n\n.bottomActions {\n position: absolute;\n right: 4px;\n bottom: 0;\n font-size: var(--mantine-font-size-xs);\n\n & a {\n margin-left: 8px;\n }\n}", ".section {\n position: relative;\n margin: 4px 4px 8px;\n padding: 6px 12px 16px 6px;\n border: 1.5px solid var(--mantine-color-gray-1);\n border-radius: var(--mantine-radius-sm);\n transition: all 0.1;\n}\n\n.hovering {\n border: 1.5px solid var(--mantine-color-blue-5);\n}\n\n.editing {\n border: 1.5px solid var(--mantine-color-gray-1);\n border-left: 4px solid var(--mantine-color-blue-5);\n min-height: 100px;\n}\n\n.questionBody {\n max-width: 600px;\n}\n\n.topActions {\n position: absolute;\n right: 32px;\n top: 1px;\n padding: 4px;\n color: var(--mantine-color-gray-5);\n font-size: var(--mantine-font-size-xs);\n}\n\n.bottomActions {\n position: absolute;\n right: 4px;\n bottom: 0;\n --text-fz: var(--mantine-font-size-xs);\n\n & a {\n margin-left: 8px;\n }\n}\n\n.movementActions {\n position: absolute;\n right: 8px;\n top: 0;\n padding-top: 8px;\n font-size: var(--mantine-font-size-xs);\n\n & a {\n margin-left: 8px;\n }\n}\n\n.movementIcons {\n color: var(--mantine-color-gray-5);\n}\n\n.columnAlignment {\n display: flex;\n flex-direction: column;\n}\n\n.linkIdInput {\n width: 100px;\n margin-bottom: 4px;\n}\n\n.typeSelect {\n width: 100px;\n}\n", ".section {\n position: relative;\n margin: 4px 4px 8px;\n padding: 6px 12px 16px 6px;\n border: 1.5px solid var(--mantine-color-gray-3);\n border-radius: var(--mantine-radius-sm);\n transition: all 0.1;\n}\n", ".container {\n overflow-x: auto;\n}\n\n.root {\n border: 0.1px solid var(--mantine-color-gray-3);\n border-collapse: collapse;\n border-radius: var(--mantine-radius-sm);\n border-spacing: 0;\n font-size: var(--mantine-font-size-xs);\n width: 100px;\n\n & td {\n padding: 2px 4px 0 4px;\n vertical-align: top;\n white-space: nowrap;\n }\n}\n\n.startRow {\n border-top: 0.1px solid var(--mantine-color-gray-3);\n}\n\n.normalRow {\n border-top: 0;\n}\n\n.author {\n line-height: 10px;\n}\n\n.dateTime {\n border-right: 0.1px solid var(--mantine-color-gray-3);\n line-height: 20px;\n}\n\n.lineNumber {\n background-color: var(--mantine-color-gray-1);\n border: 0;\n color: var(--mantine-color-gray-5);\n font-family: var(--mantine-font-family-monospace);\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);\n text-align: right;\n}\n\n.line {\n font-family: var(--mantine-font-family-monospace);\n font-size: var(--mantine-font-size-sm);\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);\n}\n\n.pre {\n margin: 0;\n}\n", "\n.removed {\n color: var(--mantine-color-red-7);\n text-decoration: line-through;\n}\n\n.added {\n color: var(--mantine-color-green-7);\n}", ".splitButton {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.menuControl {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border: 0;\n border-left: rem(1px) solid var(--mantine-color-body);\n}\n", "\n.container {\n display: flex;\n min-height: 400px;\n}\n\n.info {\n min-width: 300px;\n padding: 20px;\n border-right: 1px solid var(--mantine-color-gray-3);\n}\n\n.selection {\n min-width: 300px;\n padding: 20px;\n}", ".chatPaper {\n height: 100%;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}\n\n.chatTitle {\n background-color: light-dark(var(--mantine-color-blue-7), var(--mantine-color-blue-8));\n color: light-dark(var(--mantine-color-white), var(--mantine-color-gray-3));\n font-size: var(--mantine-font-size-sm);\n font-weight: 500;\n padding: var(--mantine-spacing-sm);\n user-select: none;\n}\n\n.chatBody {\n background-color: var(--mantine-color-body);\n flex: 1;\n position: relative;\n}\n\n.chatScrollArea {\n padding: var(--mantine-spacing-xs);\n}\n\n.chatInputContainer {\n background-color: light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-4));\n padding: 6px 8px;\n}\n\n.chatBubbleOuterWrap {\n max-width: 75%;\n padding-bottom: 10px;\n}\n\n.chatBubbleRightAlignedInnerWrap {\n display: flex;\n flex-direction: row-reverse;\n}\n\n.chatBubbleLeftAlignedInnerWrap {\n display: flex;\n flex-direction: row;\n}\n\n.chatBubble {\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-blue-7));\n border-radius: var(--mantine-radius-lg);\n padding: var(--mantine-spacing-sm);\n min-width: 40px;\n color: light-dark(var(--mantine-color-dark), var(--mantine-color-gray-2));\n\n & p {\n margin-top: 0.25rem;\n margin-bottom: 0.25rem;\n }\n\n & pre {\n max-width: 280px;\n overflow: auto;\n }\n}\n\n.chatBubbleName {\n margin-bottom: 5px;\n font-weight: 500;\n}\n\n.chatBubbleNameRight {\n text-align: right;\n}\n", ".iconContainer {\n position: fixed;\n bottom: 0.5rem;\n right: 0.5rem;\n z-index: 100px;\n}\n\n.icon {\n background-color: light-dark(var(--mantine-color-white), var(--mantine-color-dark-7));\n box-shadow:\n 0 0.2rem 0.4rem rgba(0, 0, 0, 0.05),\n 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);\n}\n\n.chatModalContainer {\n position: fixed;\n bottom: 3rem;\n right: 0.5rem;\n z-index: 100px;\n width: 400px;\n height: 450px;\n max-height: 450px;\n overflow: hidden;\n border-radius: var(--mantine-radius-md);\n box-shadow:\n 0 0.2rem 0.4rem rgba(0, 0, 0, 0.05),\n 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);\n}\n"],
5
+ "mappings": "AAAA,CAACA,cACC,KAAM,EACN,iBAAkB,WAAW,IAAI,uBAAuB,CAAE,IAAI,yBAC9D,eAAgB,IAAI,sBACpB,WAAY,IACd,CCLA,CAACC,kBAUD,CAACC,YATC,QAAS,IAAI,sBAAsB,IAAI,sBACvC,cAAe,IAAI,qBACnB,WAAY,iBAAiB,IAAM,KAEnC,CAAC,OACC,iBAAkB,IAAI,oCACxB,CACF,CAYA,CAACC,gBACC,YAAa,IACb,YAAa,IACb,aAAc,IAEd,OAAO,CAAC,SAAS,EAAE,CAAC,uBAClB,QAAS,IACX,CACF,CAEA,CAACC,kBACC,iBAAkB,IAAI,oCACxB,CChCA,CAACC,8BACC,MACE,MAAO,MACP,WAAY,MAAM,IAAK,WACzB,CAEA,KAAK,OACH,MAAO,KACT,CAEA,OAAO,CAAC,SAAS,EAAE,OACjB,MACE,MAAO,KACT,CACA,KAAK,OACH,MAAO,KACT,CACF,CACF,CClBA,CAACC,iBAAD,OACU,KAAK,EAAE,IAAI,IACnB,UAAW,IACX,YAAa,IACb,eAAgB,UAChB,eAAgB,GAClB,CAEA,CAACC,YACC,QAAS,KACT,YAAa,OACb,gBAAiB,KACjB,UAAW,IAAI,wBACf,MAAO,WAAW,IAAI,uBAAuB,CAAE,IAAI,yBAbrD,QAcW,IAAI,KACb,cAAe,IAAI,qBACnB,YAAa,IAEb,CAAC,OACC,iBAAkB,WAAW,IAAI,u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ACC,6BACC,UAAW,IACX,eAAgB,IAClB,CAEA,CAACC,yCACC,QAAS,KACT,eAAgB,WAClB,CAEA,CAACC,wCACC,QAAS,KACT,eAAgB,GAClB,CAEA,CAACC,oBACC,iBAAkB,WAAW,IAAI,uBAAuB,CAAE,IAAI,yBAC9D,cAAe,IAAI,qBACnB,QAAS,IAAI,sBACb,UAAW,KACX,MAAO,WAAW,IAAI,qBAAqB,CAAE,IAAI,yBAEjD,EAAE,EACA,WAAY,OACZ,cAAe,MACjB,CAEA,EAAE,IACA,UAAW,MACX,SAAU,IACZ,CACF,CAEA,CAACC,wBACC,cAAe,IACf,YAAa,GACf,CAEA,CAACC,6BACC,WAAY,KACd,CCvEA,CAACC,wBACC,SAAU,MACV,OAAQ,MACR,MAAO,MACP,QAAS,KACX,CAEA,CAACC,eACC,iBAAkB,WAAW,IAAI,sBAAsB,CAAE,IAAI,yBAC7D,WACE,EAAE,MAAO,MAAO,SAAmB,CACnC,EAAE,MAAO,MAAO,SACpB,CAEA,CAACC,6BACC,SAAU,MACV,OAAQ,KACR,MAAO,MACP,QAAS,MACT,MAAO,MACP,OAAQ,MACR,WAAY,MACZ,SAAU,OACV,cAAe,IAAI,qBACnB,WACE,EAAE,MAAO,MAAO,SAAmB,CACnC,EAAE,MAAO,MAAO,SACpB",
6
6
  "names": ["main", "logoButton", "user", "userName", "userActive", "searchInput", "menuTitle", "link", "linkActive", "root", "compact", "dimmed", "indented", "table", "root", "noteBody", "noteCite", "noteRoot", "table", "criticalRow", "noteBody", "noteCite", "noteRoot", "paper", "fill", "root", "removed", "added", "item", "itemPadding", "pinnedComment", "root", "table", "tr", "th", "control", "icon", "section", "hovering", "editing", "bottomActions", "section", "hovering", "editing", "questionBody", "topActions", "bottomActions", "movementActions", "movementIcons", "columnAlignment", "linkIdInput", "typeSelect", "section", "container", "root", "startRow", "normalRow", "author", "dateTime", "lineNumber", "line", "pre", "removed", "added", "splitButton", "menuControl", "container", "info", "selection", "chatPaper", "chatTitle", "chatBody", "chatScrollArea", "chatInputContainer", "chatBubbleOuterWrap", "chatBubbleRightAlignedInnerWrap", "chatBubbleLeftAlignedInnerWrap", "chatBubble", "chatBubbleName", "chatBubbleNameRight", "iconContainer", "icon", "chatModalContainer"]
7
7
  }
@@ -1,2 +1,2 @@
1
- .AppShell_main{flex:1;background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-dark-6));padding-bottom:var(--mantine-spacing-lg);overflow-x:auto}.Header_logoButton,.Header_user{padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);border-radius:var(--mantine-radius-sm);transition:background-color .1s ease;&:hover{background-color:var(--mantine-primary-color-light-hover)}}.Header_userName{font-weight:500;line-height:1px;margin-right:3px;@media (max-width: $mantine-breakpoint-xs){display:none}}.Header_userActive{background-color:var(--mantine-primary-color-light-hover)}.HeaderSearchInput_searchInput{input{width:220px;transition:width .1s ease-in-out}input:focus{width:400px}@media (max-width: 800px){input{width:150px}input:focus{width:150px}}}.Navbar_menuTitle{margin:20px 0 4px 6px;font-size:9px;font-weight:400;text-transform:uppercase;letter-spacing:2px}.Navbar_link{display:flex;align-items:center;text-decoration:none;font-size:var(--mantine-font-size-sm);color:light-dark(var(--mantine-color-gray-7),var(--mantine-color-dark-1));padding:8px 12px;border-radius:var(--mantine-radius-sm);font-weight:500;&:hover{background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-dark-6));color:light-dark(var(--mantine-color-black),var(--mantine-color-white));text-decoration:none;& svg{color:light-dark(var(--mantine-color-black),var(--mantine-color-white))}}& svg{color:light-dark(var(--mantine-color-gray-6),var(--mantine-color-dark-2));margin-right:var(--mantine-spacing-sm);stroke-width:1.5;width:18px;height:18px}}.Navbar_linkActive{color:var(--mantine-primary-color-filled);background-color:light-dark(var(--mantine-primary-color-light),var(--mantine-primary-color-dark));&:hover{color:var(--mantine-primary-color-filled-hover);background-color:light-dark(var(--mantine-primary-color-light-hover),var(--mantine-primary-color-dark-hover));& svg{color:var(--mantine-color-blue-light-color)}}& svg{color:var(--mantine-color-blue-light-color)}}.DescriptionList_root{display:grid;grid-template-columns:30% 70%;margin:0;>dt,>dd{padding:var(--mantine-spacing-sm);border-top:.1px solid light-dark(var(--mantine-color-gray-3),var(--mantine-color-dark-4));margin:0}>dt:first-of-type,>dd:first-of-type{border-top:0;padding-top:0}>dt:last-of-type,>dd:last-of-type{padding-bottom:0}}.DescriptionList_compact{grid-template-columns:auto 1fr;>dt,>dd{padding:0 0 var(--mantine-spacing-xs);border-top:0}>dt{padding-right:var(--mantine-spacing-xs)}>dd{padding-left:var(--mantine-spacing-xs)}>dt:last-of-type,>dd:last-of-type{padding-bottom:0}}.FormSection_dimmed{color:var(--mantine-color-dimmed)}.ResourceArrayInput_indented{margin-top:.5rem;border-left:3px solid var(--mantine-color-gray-4);padding:.5rem 0 .5rem .5rem}.CalendarInput_table{width:350px;& th{font-weight:400;font-size:11px;padding:8px;text-align:center}& td{padding:2px 4px}& td button{width:44px;height:44px;color:theme.colors[theme.primaryColor][5];font-size:16px;font-weight:500;text-align:center;padding:0;background-color:theme.colors[theme.primaryColor][0];border:0;border-radius:50px;cursor:pointer}& td button:hover{background-color:theme.colors[theme.primaryColor][1]}& td button:disabled{background-color:transparen;cursor:defaul;color:var(--mantine-color-gray-4);font-weight:400}}.Container_root{@media (max-width: 800px){padding-left:4px;padding-right:4px}}.NoteDisplay_noteBody{font-size:var(--mantine-font-size-sm)}.NoteDisplay_noteCite{font-size:var(--mantine-font-size-xs);margin-block-start:3}.NoteDisplay_noteRoot{padding:5px}.DiagnosticReportDisplay_table{border:.1px solid var(--mantine-color-gray-5);border-collapse:collapse;& td,th{border:.1px solid var(--mantine-color-gray-5);padding:4px}}.DiagnosticReportDisplay_criticalRow{background:light-dark(var(--mantine-color-red-1),var(--mantine-color-red-7));border:.1px solid var(--mantine-color-red-5);color:var(--mantine-color-red-5);font-weight:500;& td{border:.1px solid var(--mantine-color-red-5)}}.DiagnosticReportDisplay_noteBody{font-size:var(--mantine-font-size-sm)}.DiagnosticReportDisplay_noteCite{font-size:var(--mantine-font-size-xs);margin-block-start:3}.DiagnosticReportDisplay_noteRoot{padding:5px}.Panel_paper{margin:var(--mantine-spacing-xl) auto;padding:var(--mantine-spacing-md);@media (max-width: 800px){padding:8px}& img{width:100%;max-width:100%}& video{width:100%;max-width:100%}}.Panel_fill{padding:0}.ResourceDiffTable_root{border-collapse:collapse;width:100%;& tr{border-top:.1px solid var(--mantine-color-gray-3)}& th,td{padding:var(--mantine-spacing-sm) var(--mantine-spacing-sm);vertical-align:top}}.ResourceDiffTable_removed{color:var(--mantine-color-red-7);text-decoration:line-through}.ResourceDiffTable_added{color:var(--mantine-color-green-7)}.Timeline_item{white-space:pre-wrap}.Timeline_itemPadding{padding:0 16px 16px}.ResourceTimeline_pinnedComment{background-color:var(--mantine-color-blue-0)}.SearchControl_root{max-width:100%;overflow:auto;text-align:left;margin-bottom:20px}.SearchControl_table{cursor:pointer}.SearchControl_tr{&:hover{background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-dark-6))}}.SearchControl_th{padding:0!important}.SearchControl_control{width:100%;padding:var(--mantine-spacing-xs) var(--mantine-spacing-md);&:hover{background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-dark-6))}}.SearchControl_icon{width:21px;height:21px;border-radius:21px}.PlanDefinitionBuilder_section{position:relative;margin:4px 4px 8px;padding:6px 12px 16px 6px;border:1.5px solid var(--mantine-color-gray-1);border-radius:var(--mantine-radius-sm);transition:all .1}.PlanDefinitionBuilder_hovering{border:1.5px solid var(--mantine-color-blue-5)}.PlanDefinitionBuilder_editing{border:1.5px solid var(--mantine-color-gray-1);border-left:4px solid var(--mantine-color-blue-5)}.PlanDefinitionBuilder_bottomActions{position:absolute;right:4px;bottom:0;font-size:var(--mantine-font-size-xs);& a{margin-left:8px}}.QuestionnaireBuilder_section{position:relative;margin:4px 4px 8px;padding:6px 12px 16px 6px;border:1.5px solid var(--mantine-color-gray-1);border-radius:var(--mantine-radius-sm);transition:all .1}.QuestionnaireBuilder_hovering{border:1.5px solid var(--mantine-color-blue-5)}.QuestionnaireBuilder_editing{border:1.5px solid var(--mantine-color-gray-1);border-left:4px solid var(--mantine-color-blue-5);min-height:100px}.QuestionnaireBuilder_questionBody{max-width:600px}.QuestionnaireBuilder_topActions{position:absolute;right:32px;top:1px;padding:4px;color:var(--mantine-color-gray-5);font-size:var(--mantine-font-size-xs)}.QuestionnaireBuilder_bottomActions{position:absolute;right:4px;bottom:0;--text-fz: var(--mantine-font-size-xs);& a{margin-left:8px}}.QuestionnaireBuilder_movementActions{position:absolute;right:8px;top:0;padding-top:8px;font-size:var(--mantine-font-size-xs);& a{margin-left:8px}}.QuestionnaireBuilder_movementIcons{color:var(--mantine-color-gray-5)}.QuestionnaireBuilder_columnAlignment{display:flex;flex-direction:column}.QuestionnaireBuilder_linkIdInput{width:100px;margin-bottom:4px}.QuestionnaireBuilder_typeSelect{width:100px}.ReferenceRangeEditor_section{position:relative;margin:4px 4px 8px;padding:6px 12px 16px 6px;border:1.5px solid var(--mantine-color-gray-3);border-radius:var(--mantine-radius-sm);transition:all .1}.ResourceBlame_container{overflow-x:auto}.ResourceBlame_root{border:.1px solid var(--mantine-color-gray-3);border-collapse:collapse;border-radius:var(--mantine-radius-sm);border-spacing:0;font-size:var(--mantine-font-size-xs);width:100px;& td{padding:2px 4px 0;vertical-align:top;white-space:nowrap}}.ResourceBlame_startRow{border-top:.1px solid var(--mantine-color-gray-3)}.ResourceBlame_normalRow{border-top:0}.ResourceBlame_author{line-height:10px}.ResourceBlame_dateTime{border-right:.1px solid var(--mantine-color-gray-3);line-height:20px}.ResourceBlame_lineNumber{background-color:var(--mantine-color-gray-1);border:0;color:var(--mantine-color-gray-5);font-family:var(--mantine-font-family-monospace);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);text-align:right}.ResourceBlame_line{font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-sm);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm)}.ResourceBlame_pre{margin:0}.ResourceDiff_removed{color:var(--mantine-color-red-7);text-decoration:line-through}.ResourceDiff_added{color:var(--mantine-color-green-7)}.ResourceForm_splitButton{border-top-right-radius:0;border-bottom-right-radius:0}.ResourceForm_menuControl{border-top-left-radius:0;border-bottom-left-radius:0;border:0;border-left:rem(1px) solid var(--mantine-color-body)}.Scheduler_container{display:flex;min-height:400px}.Scheduler_info{min-width:300px;padding:20px;border-right:1px solid var(--mantine-color-gray-3)}.Scheduler_selection{min-width:300px;padding:20px}.BaseChat_chatPaper{height:100%;display:flex;flex-direction:column;overflow:hidden}.BaseChat_chatTitle{background-color:light-dark(var(--mantine-color-blue-7),var(--mantine-color-blue-8));color:light-dark(var(--mantine-color-white),var(--mantine-color-gray-3));font-size:var(--mantine-font-size-sm);font-weight:500;padding:var(--mantine-spacing-sm);user-select:none}.BaseChat_chatBody{background-color:var(--mantine-color-body);flex:1;position:relative}.BaseChat_chatScrollArea{padding:var(--mantine-spacing-xs)}.BaseChat_chatInputContainer{background-color:light-dark(var(--mantine-color-gray-2),var(--mantine-color-dark-4));padding:6px 8px}.BaseChat_chatBubbleOuterWrap{max-width:75%;padding-bottom:10px}.BaseChat_chatBubbleRightAlignedInnerWrap{display:flex;flex-direction:row-reverse}.BaseChat_chatBubbleLeftAlignedInnerWrap{display:flex;flex-direction:row}.BaseChat_chatBubble{background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-blue-7));border-radius:var(--mantine-radius-lg);padding:var(--mantine-spacing-sm);min-width:40px;color:light-dark(var(--mantine-color-dark),var(--mantine-color-gray-2));& p{margin-top:.25rem;margin-bottom:.25rem}& pre{max-width:280px;overflow:auto}}.BaseChat_chatBubbleName{margin-bottom:5px;font-weight:500}.BaseChat_chatBubbleNameRight{text-align:right}.ChatModal_iconContainer{position:fixed;bottom:.5rem;right:.5rem;z-index:100px}.ChatModal_icon{background-color:light-dark(var(--mantine-color-white),var(--mantine-color-dark-7));box-shadow:0 .2rem .4rem #0000000d,0 .2rem .4rem #0000001a}.ChatModal_chatModalContainer{position:fixed;bottom:3rem;right:.5rem;z-index:100px;width:400px;height:450px;max-height:450px;overflow:hidden;border-radius:var(--mantine-radius-md);box-shadow:0 .2rem .4rem #0000000d,0 .2rem .4rem #0000001a}
1
+ .AppShell_main{flex:1;background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-dark-6));padding-bottom:var(--mantine-spacing-lg);overflow-x:auto}.Header_logoButton,.Header_user{padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);border-radius:var(--mantine-radius-sm);transition:background-color .1s ease;&:hover{background-color:var(--mantine-primary-color-light-hover)}}.Header_userName{font-weight:500;line-height:1px;margin-right:3px;@media (max-width: $mantine-breakpoint-xs){display:none}}.Header_userActive{background-color:var(--mantine-primary-color-light-hover)}.HeaderSearchInput_searchInput{input{width:220px;transition:width .1s ease-in-out}input:focus{width:400px}@media (max-width: 800px){input{width:150px}input:focus{width:150px}}}.Navbar_menuTitle{margin:20px 0 4px 6px;font-size:9px;font-weight:400;text-transform:uppercase;letter-spacing:2px}.Navbar_link{display:flex;align-items:center;text-decoration:none;font-size:var(--mantine-font-size-sm);color:light-dark(var(--mantine-color-gray-7),var(--mantine-color-dark-1));padding:8px 12px;border-radius:var(--mantine-radius-sm);font-weight:500;&:hover{background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-dark-6));color:light-dark(var(--mantine-color-black),var(--mantine-color-white));text-decoration:none;& svg{color:light-dark(var(--mantine-color-black),var(--mantine-color-white))}}& svg{color:light-dark(var(--mantine-color-gray-6),var(--mantine-color-dark-2));margin-right:var(--mantine-spacing-sm);stroke-width:1.5;width:18px;height:18px}}.Navbar_linkActive{color:var(--mantine-primary-color-filled);background-color:light-dark(var(--mantine-primary-color-light),var(--mantine-primary-color-dark));&:hover{color:var(--mantine-primary-color-filled-hover);background-color:light-dark(var(--mantine-primary-color-light-hover),var(--mantine-primary-color-dark-hover));& svg{color:var(--mantine-color-blue-light-color)}}& svg{color:var(--mantine-color-blue-light-color)}}.DescriptionList_root{display:grid;grid-template-columns:30% 70%;margin:0;>dt,>dd{padding:var(--mantine-spacing-sm);border-top:.1px solid light-dark(var(--mantine-color-gray-3),var(--mantine-color-dark-4));margin:0}>dt:first-of-type,>dd:first-of-type{border-top:0;padding-top:0}>dt:last-of-type,>dd:last-of-type{padding-bottom:0}}.DescriptionList_compact{grid-template-columns:auto 1fr;>dt,>dd{padding:0 0 var(--mantine-spacing-xs);border-top:0}>dt{padding-right:var(--mantine-spacing-xs)}>dd{padding-left:var(--mantine-spacing-xs)}>dt:last-of-type,>dd:last-of-type{padding-bottom:0}}.FormSection_dimmed{color:var(--mantine-color-dimmed)}.ResourceArrayInput_indented{margin-top:.5rem;border-left:3px solid var(--mantine-color-gray-4);padding:.5rem 0 .5rem .5rem}.CalendarInput_table{width:350px;& th{font-weight:400;font-size:11px;padding:8px;text-align:center}& td{padding:2px 4px}& td button{width:44px;height:44px;color:theme.colors[theme.primaryColor][5];font-size:16px;font-weight:500;text-align:center;padding:0;background-color:theme.colors[theme.primaryColor][0];border:0;border-radius:50px;cursor:pointer}& td button:hover{background-color:theme.colors[theme.primaryColor][1]}& td button:disabled{background-color:transparen;cursor:defaul;color:var(--mantine-color-gray-4);font-weight:400}}.Container_root{@media (max-width: 800px){padding-left:4px;padding-right:4px}}.NoteDisplay_noteBody{font-size:var(--mantine-font-size-sm)}.NoteDisplay_noteCite{font-size:var(--mantine-font-size-xs);margin-block-start:3}.NoteDisplay_noteRoot{padding:5px}.DiagnosticReportDisplay_table{border:.1px solid var(--mantine-color-gray-5);border-collapse:collapse;& td,th{border:.1px solid var(--mantine-color-gray-5);padding:4px}}.DiagnosticReportDisplay_criticalRow{background:light-dark(var(--mantine-color-red-1),var(--mantine-color-red-7));border:.1px solid var(--mantine-color-red-5);color:var(--mantine-color-red-5);font-weight:500;& td{border:.1px solid var(--mantine-color-red-5)}}.DiagnosticReportDisplay_noteBody{font-size:var(--mantine-font-size-sm)}.DiagnosticReportDisplay_noteCite{font-size:var(--mantine-font-size-xs);margin-block-start:3}.DiagnosticReportDisplay_noteRoot{padding:5px}.Panel_paper{margin:var(--mantine-spacing-xl) auto;padding:var(--mantine-spacing-md);@media (max-width: 800px){padding:8px}& img{width:100%;max-width:100%}& video{width:100%;max-width:100%}}.Panel_fill{padding:0}.ResourceDiffTable_root{border-collapse:collapse;width:100%;& tr{border-top:.1px solid var(--mantine-color-gray-3)}& th,td{padding:var(--mantine-spacing-sm) var(--mantine-spacing-sm);vertical-align:top;word-wrap:break-word;overflow-wrap:anywhere;white-space:normal;min-width:100px}}.ResourceDiffTable_removed{color:var(--mantine-color-red-7);text-decoration:line-through}.ResourceDiffTable_added{color:var(--mantine-color-green-7)}.Timeline_item{white-space:pre-wrap}.Timeline_itemPadding{padding:0 16px 16px}.ResourceTimeline_pinnedComment{background-color:var(--mantine-color-blue-0)}.SearchControl_root{max-width:100%;overflow:auto;text-align:left;margin-bottom:20px}.SearchControl_table{cursor:pointer}.SearchControl_tr{&:hover{background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-dark-6))}}.SearchControl_th{padding:0!important}.SearchControl_control{width:100%;padding:var(--mantine-spacing-xs) var(--mantine-spacing-md);&:hover{background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-dark-6))}}.SearchControl_icon{width:21px;height:21px;border-radius:21px}.PlanDefinitionBuilder_section{position:relative;margin:4px 4px 8px;padding:6px 12px 16px 6px;border:1.5px solid var(--mantine-color-gray-1);border-radius:var(--mantine-radius-sm);transition:all .1}.PlanDefinitionBuilder_hovering{border:1.5px solid var(--mantine-color-blue-5)}.PlanDefinitionBuilder_editing{border:1.5px solid var(--mantine-color-gray-1);border-left:4px solid var(--mantine-color-blue-5)}.PlanDefinitionBuilder_bottomActions{position:absolute;right:4px;bottom:0;font-size:var(--mantine-font-size-xs);& a{margin-left:8px}}.QuestionnaireBuilder_section{position:relative;margin:4px 4px 8px;padding:6px 12px 16px 6px;border:1.5px solid var(--mantine-color-gray-1);border-radius:var(--mantine-radius-sm);transition:all .1}.QuestionnaireBuilder_hovering{border:1.5px solid var(--mantine-color-blue-5)}.QuestionnaireBuilder_editing{border:1.5px solid var(--mantine-color-gray-1);border-left:4px solid var(--mantine-color-blue-5);min-height:100px}.QuestionnaireBuilder_questionBody{max-width:600px}.QuestionnaireBuilder_topActions{position:absolute;right:32px;top:1px;padding:4px;color:var(--mantine-color-gray-5);font-size:var(--mantine-font-size-xs)}.QuestionnaireBuilder_bottomActions{position:absolute;right:4px;bottom:0;--text-fz: var(--mantine-font-size-xs);& a{margin-left:8px}}.QuestionnaireBuilder_movementActions{position:absolute;right:8px;top:0;padding-top:8px;font-size:var(--mantine-font-size-xs);& a{margin-left:8px}}.QuestionnaireBuilder_movementIcons{color:var(--mantine-color-gray-5)}.QuestionnaireBuilder_columnAlignment{display:flex;flex-direction:column}.QuestionnaireBuilder_linkIdInput{width:100px;margin-bottom:4px}.QuestionnaireBuilder_typeSelect{width:100px}.ReferenceRangeEditor_section{position:relative;margin:4px 4px 8px;padding:6px 12px 16px 6px;border:1.5px solid var(--mantine-color-gray-3);border-radius:var(--mantine-radius-sm);transition:all .1}.ResourceBlame_container{overflow-x:auto}.ResourceBlame_root{border:.1px solid var(--mantine-color-gray-3);border-collapse:collapse;border-radius:var(--mantine-radius-sm);border-spacing:0;font-size:var(--mantine-font-size-xs);width:100px;& td{padding:2px 4px 0;vertical-align:top;white-space:nowrap}}.ResourceBlame_startRow{border-top:.1px solid var(--mantine-color-gray-3)}.ResourceBlame_normalRow{border-top:0}.ResourceBlame_author{line-height:10px}.ResourceBlame_dateTime{border-right:.1px solid var(--mantine-color-gray-3);line-height:20px}.ResourceBlame_lineNumber{background-color:var(--mantine-color-gray-1);border:0;color:var(--mantine-color-gray-5);font-family:var(--mantine-font-family-monospace);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);text-align:right}.ResourceBlame_line{font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-sm);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm)}.ResourceBlame_pre{margin:0}.ResourceDiff_removed{color:var(--mantine-color-red-7);text-decoration:line-through}.ResourceDiff_added{color:var(--mantine-color-green-7)}.ResourceForm_splitButton{border-top-right-radius:0;border-bottom-right-radius:0}.ResourceForm_menuControl{border-top-left-radius:0;border-bottom-left-radius:0;border:0;border-left:rem(1px) solid var(--mantine-color-body)}.Scheduler_container{display:flex;min-height:400px}.Scheduler_info{min-width:300px;padding:20px;border-right:1px solid var(--mantine-color-gray-3)}.Scheduler_selection{min-width:300px;padding:20px}.BaseChat_chatPaper{height:100%;display:flex;flex-direction:column;overflow:hidden}.BaseChat_chatTitle{background-color:light-dark(var(--mantine-color-blue-7),var(--mantine-color-blue-8));color:light-dark(var(--mantine-color-white),var(--mantine-color-gray-3));font-size:var(--mantine-font-size-sm);font-weight:500;padding:var(--mantine-spacing-sm);user-select:none}.BaseChat_chatBody{background-color:var(--mantine-color-body);flex:1;position:relative}.BaseChat_chatScrollArea{padding:var(--mantine-spacing-xs)}.BaseChat_chatInputContainer{background-color:light-dark(var(--mantine-color-gray-2),var(--mantine-color-dark-4));padding:6px 8px}.BaseChat_chatBubbleOuterWrap{max-width:75%;padding-bottom:10px}.BaseChat_chatBubbleRightAlignedInnerWrap{display:flex;flex-direction:row-reverse}.BaseChat_chatBubbleLeftAlignedInnerWrap{display:flex;flex-direction:row}.BaseChat_chatBubble{background-color:light-dark(var(--mantine-color-gray-0),var(--mantine-color-blue-7));border-radius:var(--mantine-radius-lg);padding:var(--mantine-spacing-sm);min-width:40px;color:light-dark(var(--mantine-color-dark),var(--mantine-color-gray-2));& p{margin-top:.25rem;margin-bottom:.25rem}& pre{max-width:280px;overflow:auto}}.BaseChat_chatBubbleName{margin-bottom:5px;font-weight:500}.BaseChat_chatBubbleNameRight{text-align:right}.ChatModal_iconContainer{position:fixed;bottom:.5rem;right:.5rem;z-index:100px}.ChatModal_icon{background-color:light-dark(var(--mantine-color-white),var(--mantine-color-dark-7));box-shadow:0 .2rem .4rem #0000000d,0 .2rem .4rem #0000001a}.ChatModal_chatModalContainer{position:fixed;bottom:3rem;right:.5rem;z-index:100px;width:400px;height:450px;max-height:450px;overflow:hidden;border-radius:var(--mantine-radius-md);box-shadow:0 .2rem .4rem #0000000d,0 .2rem .4rem #0000001a}
2
2
  /*# sourceMappingURL=index.css.map */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/AppShell/AppShell.module.css", "../../src/AppShell/Header.module.css", "../../src/AppShell/HeaderSearchInput.module.css", "../../src/AppShell/Navbar.module.css", "../../src/DescriptionList/DescriptionList.module.css", "../../src/FormSection/FormSection.module.css", "../../src/ResourceArrayInput/ResourceArrayInput.module.css", "../../src/CalendarInput/CalendarInput.module.css", "../../src/Container/Container.module.css", "../../src/NoteDisplay/NoteDisplay.module.css", "../../src/DiagnosticReportDisplay/DiagnosticReportDisplay.module.css", "../../src/Panel/Panel.module.css", "../../src/ResourceDiffTable/ResourceDiffTable.module.css", "../../src/Timeline/Timeline.module.css", "../../src/ResourceTimeline/ResourceTimeline.module.css", "../../src/SearchControl/SearchControl.module.css", "../../src/PlanDefinitionBuilder/PlanDefinitionBuilder.module.css", "../../src/QuestionnaireBuilder/QuestionnaireBuilder.module.css", "../../src/ReferenceRangeEditor/ReferenceRangeEditor.module.css", "../../src/ResourceBlame/ResourceBlame.module.css", "../../src/ResourceDiff/ResourceDiff.module.css", "../../src/ResourceForm/ResourceForm.module.css", "../../src/Scheduler/Scheduler.module.css", "../../src/chat/BaseChat/BaseChat.module.css", "../../src/chat/ChatModal/ChatModal.module.css"],
4
- "sourcesContent": [".main {\n flex: 1;\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));\n padding-bottom: var(--mantine-spacing-lg);\n overflow-x: auto;\n}\n", ".logoButton {\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);\n border-radius: var(--mantine-radius-sm);\n transition: background-color 100ms ease;\n\n &:hover {\n background-color: var(--mantine-primary-color-light-hover);\n }\n}\n\n.user {\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);\n border-radius: var(--mantine-radius-sm);\n transition: background-color 100ms ease;\n\n &:hover {\n background-color: var(--mantine-primary-color-light-hover);\n }\n}\n\n.userName {\n font-weight: 500;\n line-height: 1px;\n margin-right: 3px;\n\n @media (max-width: $mantine-breakpoint-xs) {\n display: none;\n }\n}\n\n.userActive {\n background-color: var(--mantine-primary-color-light-hover);\n}\n", ".searchInput {\n input {\n width: 220px;\n transition: width 0.1s ease-in-out;\n }\n\n input:focus {\n width: 400px;\n }\n\n @media (max-width: 800px) {\n input {\n width: 150px;\n }\n input:focus {\n width: 150px;\n }\n }\n}\n", ".menuTitle {\n margin: 20px 0 4px 6px;\n font-size: 9px;\n font-weight: normal;\n text-transform: uppercase;\n letter-spacing: 2px;\n}\n\n.link {\n display: flex;\n align-items: center;\n text-decoration: none;\n font-size: var(--mantine-font-size-sm);\n color: light-dark(var(--mantine-color-gray-7), var(--mantine-color-dark-1));\n padding: 8px 12px;\n border-radius: var(--mantine-radius-sm);\n font-weight: 500;\n\n &:hover {\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));\n color: light-dark(var(--mantine-color-black), var(--mantine-color-white));\n text-decoration: none;\n\n & svg {\n color: light-dark(var(--mantine-color-black), var(--mantine-color-white));\n }\n }\n\n & svg {\n color: light-dark(var(--mantine-color-gray-6), var(--mantine-color-dark-2));\n margin-right: var(--mantine-spacing-sm);\n stroke-width: 1.5;\n width: 18px;\n height: 18px;\n }\n}\n\n.linkActive {\n color: var(--mantine-primary-color-filled);\n background-color: light-dark(var(--mantine-primary-color-light), var(--mantine-primary-color-dark));\n\n &:hover {\n color: var(--mantine-primary-color-filled-hover);\n background-color: light-dark(var(--mantine-primary-color-light-hover), var(--mantine-primary-color-dark-hover));\n\n & svg {\n color: var(--mantine-color-blue-light-color);\n }\n }\n\n & svg {\n color: var(--mantine-color-blue-light-color);\n }\n}\n", ".root {\n display: grid;\n grid-template-columns: 30% 70%;\n margin: 0;\n\n & > dt,\n & > dd {\n padding: var(--mantine-spacing-sm);\n border-top: 0.1px solid light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4));\n margin: 0;\n }\n\n & > dt:first-of-type,\n & > dd:first-of-type {\n border-top: 0;\n padding-top: 0;\n }\n\n & > dt:last-of-type,\n & > dd:last-of-type {\n padding-bottom: 0;\n }\n}\n\n.compact {\n grid-template-columns: auto 1fr;\n\n & > dt,\n & > dd {\n padding: 0 0 var(--mantine-spacing-xs);\n border-top: 0;\n }\n\n & > dt {\n padding-right: var(--mantine-spacing-xs);\n }\n\n & > dd {\n padding-left: var(--mantine-spacing-xs);\n }\n\n & > dt:last-of-type,\n & > dd:last-of-type {\n padding-bottom: 0;\n }\n}\n", ".dimmed {\n color: var(--mantine-color-dimmed);\n}\n", ".indented {\n margin-top: 0.5rem;\n border-left: 3px solid var(--mantine-color-gray-4);\n padding: 0.5rem 0 0.5rem 0.5rem;\n}\n", "\n.table {\n width: 350px;\n\n & th {\n font-weight: normal;\n font-size: 11px;\n padding: 8px;\n text-align: center;\n }\n\n & td {\n padding: 2px 4px;\n }\n\n & td button {\n width: 44px;\n height: 44px;\n color: theme.colors[theme.primaryColor][5];\n font-size: 16px;\n font-weight: 500;\n text-align: center;\n padding: 0;\n background-color: theme.colors[theme.primaryColor][0];\n border: 0;\n border-radius: 50px;\n cursor: pointer;\n }\n\n & td button:hover {\n background-color: theme.colors[theme.primaryColor][1];\n }\n\n & td button:disabled {\n background-color: transparen;\n cursor: defaul;\n color: var(--mantine-color-gray-4);\n font-weight: normal;\n }\n}", ".root {\n @media (max-width: 800px) {\n padding-left: 4px;\n padding-right: 4px;\n }\n}\n", ".noteBody {\n font-size: var(--mantine-font-size-sm);\n}\n\n.noteCite {\n font-size: var(--mantine-font-size-xs);\n margin-block-start: 3;\n}\n\n.noteRoot {\n padding: 5px;\n}\n", ".table {\n border: 0.1px solid var(--mantine-color-gray-5);\n border-collapse: collapse;\n\n & td,\n & th {\n border: 0.1px solid var(--mantine-color-gray-5);\n padding: 4px;\n }\n}\n\n.criticalRow {\n background: light-dark(var(--mantine-color-red-1), var(--mantine-color-red-7));\n border: 0.1px solid var(--mantine-color-red-5);\n color: var(--mantine-color-red-5);\n font-weight: 500;\n\n & td {\n border: 0.1px solid var(--mantine-color-red-5);\n }\n}\n\n.noteBody {\n font-size: var(--mantine-font-size-sm);\n}\n\n.noteCite {\n font-size: var(--mantine-font-size-xs);\n margin-block-start: 3;\n}\n\n.noteRoot {\n padding: 5px;\n}\n", ".paper {\n margin: var(--mantine-spacing-xl) auto;\n padding: var(--mantine-spacing-md);\n\n @media (max-width: 800px) {\n padding: 8px;\n }\n\n & img {\n width: 100%;\n max-width: 100%;\n }\n\n & video {\n width: 100%;\n max-width: 100%;\n }\n}\n\n.fill {\n padding: 0;\n}\n", ".root {\n border-collapse: collapse;\n width: 100%;\n\n & tr {\n border-top: 0.1px solid var(--mantine-color-gray-3);\n }\n\n & th,\n & td {\n padding: var(--mantine-spacing-sm) var(--mantine-spacing-sm);\n vertical-align: top;\n }\n}\n\n.removed {\n color: var(--mantine-color-red-7);\n text-decoration: line-through;\n}\n\n.added {\n color: var(--mantine-color-green-7);\n}\n", ".item {\n white-space: pre-wrap;\n}\n\n.itemPadding {\n padding: 0 16px 16px 16px;\n}\n", "\n.pinnedComment {\n background-color: var(--mantine-color-blue-0);\n}", ".root {\n max-width: 100%;\n overflow: auto;\n text-align: left;\n margin-bottom: 20px;\n}\n\n.table {\n cursor: pointer;\n}\n\n.tr {\n &:hover {\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));\n }\n}\n\n.th {\n padding: 0 !important;\n}\n\n.control {\n width: 100%;\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-md);\n\n &:hover {\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));\n }\n}\n\n.icon {\n width: 21px;\n height: 21px;\n border-radius: 21px;\n}\n", "\n.section {\n position: relative;\n margin: 4px 4px 8px;\n padding: 6px 12px 16px 6px;\n border: 1.5px solid var(--mantine-color-gray-1);\n border-radius: var(--mantine-radius-sm);\n transition: all 0.1;\n}\n\n.hovering {\n border: 1.5px solid var(--mantine-color-blue-5);\n}\n\n.editing {\n border: 1.5px solid var(--mantine-color-gray-1);\n border-left: 4px solid var(--mantine-color-blue-5);\n}\n\n.bottomActions {\n position: absolute;\n right: 4px;\n bottom: 0;\n font-size: var(--mantine-font-size-xs);\n\n & a {\n margin-left: 8px;\n }\n}", ".section {\n position: relative;\n margin: 4px 4px 8px;\n padding: 6px 12px 16px 6px;\n border: 1.5px solid var(--mantine-color-gray-1);\n border-radius: var(--mantine-radius-sm);\n transition: all 0.1;\n}\n\n.hovering {\n border: 1.5px solid var(--mantine-color-blue-5);\n}\n\n.editing {\n border: 1.5px solid var(--mantine-color-gray-1);\n border-left: 4px solid var(--mantine-color-blue-5);\n min-height: 100px;\n}\n\n.questionBody {\n max-width: 600px;\n}\n\n.topActions {\n position: absolute;\n right: 32px;\n top: 1px;\n padding: 4px;\n color: var(--mantine-color-gray-5);\n font-size: var(--mantine-font-size-xs);\n}\n\n.bottomActions {\n position: absolute;\n right: 4px;\n bottom: 0;\n --text-fz: var(--mantine-font-size-xs);\n\n & a {\n margin-left: 8px;\n }\n}\n\n.movementActions {\n position: absolute;\n right: 8px;\n top: 0;\n padding-top: 8px;\n font-size: var(--mantine-font-size-xs);\n\n & a {\n margin-left: 8px;\n }\n}\n\n.movementIcons {\n color: var(--mantine-color-gray-5);\n}\n\n.columnAlignment {\n display: flex;\n flex-direction: column;\n}\n\n.linkIdInput {\n width: 100px;\n margin-bottom: 4px;\n}\n\n.typeSelect {\n width: 100px;\n}\n", ".section {\n position: relative;\n margin: 4px 4px 8px;\n padding: 6px 12px 16px 6px;\n border: 1.5px solid var(--mantine-color-gray-3);\n border-radius: var(--mantine-radius-sm);\n transition: all 0.1;\n}\n", ".container {\n overflow-x: auto;\n}\n\n.root {\n border: 0.1px solid var(--mantine-color-gray-3);\n border-collapse: collapse;\n border-radius: var(--mantine-radius-sm);\n border-spacing: 0;\n font-size: var(--mantine-font-size-xs);\n width: 100px;\n\n & td {\n padding: 2px 4px 0 4px;\n vertical-align: top;\n white-space: nowrap;\n }\n}\n\n.startRow {\n border-top: 0.1px solid var(--mantine-color-gray-3);\n}\n\n.normalRow {\n border-top: 0;\n}\n\n.author {\n line-height: 10px;\n}\n\n.dateTime {\n border-right: 0.1px solid var(--mantine-color-gray-3);\n line-height: 20px;\n}\n\n.lineNumber {\n background-color: var(--mantine-color-gray-1);\n border: 0;\n color: var(--mantine-color-gray-5);\n font-family: var(--mantine-font-family-monospace);\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);\n text-align: right;\n}\n\n.line {\n font-family: var(--mantine-font-family-monospace);\n font-size: var(--mantine-font-size-sm);\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);\n}\n\n.pre {\n margin: 0;\n}\n", "\n.removed {\n color: var(--mantine-color-red-7);\n text-decoration: line-through;\n}\n\n.added {\n color: var(--mantine-color-green-7);\n}", ".splitButton {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.menuControl {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border: 0;\n border-left: rem(1px) solid var(--mantine-color-body);\n}\n", "\n.container {\n display: flex;\n min-height: 400px;\n}\n\n.info {\n min-width: 300px;\n padding: 20px;\n border-right: 1px solid var(--mantine-color-gray-3);\n}\n\n.selection {\n min-width: 300px;\n padding: 20px;\n}", ".chatPaper {\n height: 100%;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}\n\n.chatTitle {\n background-color: light-dark(var(--mantine-color-blue-7), var(--mantine-color-blue-8));\n color: light-dark(var(--mantine-color-white), var(--mantine-color-gray-3));\n font-size: var(--mantine-font-size-sm);\n font-weight: 500;\n padding: var(--mantine-spacing-sm);\n user-select: none;\n}\n\n.chatBody {\n background-color: var(--mantine-color-body);\n flex: 1;\n position: relative;\n}\n\n.chatScrollArea {\n padding: var(--mantine-spacing-xs);\n}\n\n.chatInputContainer {\n background-color: light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-4));\n padding: 6px 8px;\n}\n\n.chatBubbleOuterWrap {\n max-width: 75%;\n padding-bottom: 10px;\n}\n\n.chatBubbleRightAlignedInnerWrap {\n display: flex;\n flex-direction: row-reverse;\n}\n\n.chatBubbleLeftAlignedInnerWrap {\n display: flex;\n flex-direction: row;\n}\n\n.chatBubble {\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-blue-7));\n border-radius: var(--mantine-radius-lg);\n padding: var(--mantine-spacing-sm);\n min-width: 40px;\n color: light-dark(var(--mantine-color-dark), var(--mantine-color-gray-2));\n\n & p {\n margin-top: 0.25rem;\n margin-bottom: 0.25rem;\n }\n\n & pre {\n max-width: 280px;\n overflow: auto;\n }\n}\n\n.chatBubbleName {\n margin-bottom: 5px;\n font-weight: 500;\n}\n\n.chatBubbleNameRight {\n text-align: right;\n}\n", ".iconContainer {\n position: fixed;\n bottom: 0.5rem;\n right: 0.5rem;\n z-index: 100px;\n}\n\n.icon {\n background-color: light-dark(var(--mantine-color-white), var(--mantine-color-dark-7));\n box-shadow:\n 0 0.2rem 0.4rem rgba(0, 0, 0, 0.05),\n 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);\n}\n\n.chatModalContainer {\n position: fixed;\n bottom: 3rem;\n right: 0.5rem;\n z-index: 100px;\n width: 400px;\n height: 450px;\n max-height: 450px;\n overflow: hidden;\n border-radius: var(--mantine-radius-md);\n box-shadow:\n 0 0.2rem 0.4rem rgba(0, 0, 0, 0.05),\n 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);\n}\n"],
5
- "mappings": "AAAA,CAACA,cACC,KAAM,EACN,iBAAkB,WAAW,IAAI,uBAAuB,CAAE,IAAI,yBAC9D,eAAgB,IAAI,sBACpB,WAAY,IACd,CCLA,CAACC,kBAUD,CAACC,Y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E,IAAI,yBAC7D,WACE,EAAE,MAAO,MAAO,SAAmB,CACnC,EAAE,MAAO,MAAO,SACpB,CAEA,CAACC,6BACC,SAAU,MACV,OAAQ,KACR,MAAO,MACP,QAAS,MACT,MAAO,MACP,OAAQ,MACR,WAAY,MACZ,SAAU,OACV,cAAe,IAAI,qBACnB,WACE,EAAE,MAAO,MAAO,SAAmB,CACnC,EAAE,MAAO,MAAO,SACpB",
4
+ "sourcesContent": [".main {\n flex: 1;\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));\n padding-bottom: var(--mantine-spacing-lg);\n overflow-x: auto;\n}\n", ".logoButton {\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);\n border-radius: var(--mantine-radius-sm);\n transition: background-color 100ms ease;\n\n &:hover {\n background-color: var(--mantine-primary-color-light-hover);\n }\n}\n\n.user {\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);\n border-radius: var(--mantine-radius-sm);\n transition: background-color 100ms ease;\n\n &:hover {\n background-color: var(--mantine-primary-color-light-hover);\n }\n}\n\n.userName {\n font-weight: 500;\n line-height: 1px;\n margin-right: 3px;\n\n @media (max-width: $mantine-breakpoint-xs) {\n display: none;\n }\n}\n\n.userActive {\n background-color: var(--mantine-primary-color-light-hover);\n}\n", ".searchInput {\n input {\n width: 220px;\n transition: width 0.1s ease-in-out;\n }\n\n input:focus {\n width: 400px;\n }\n\n @media (max-width: 800px) {\n input {\n width: 150px;\n }\n input:focus {\n width: 150px;\n }\n }\n}\n", ".menuTitle {\n margin: 20px 0 4px 6px;\n font-size: 9px;\n font-weight: normal;\n text-transform: uppercase;\n letter-spacing: 2px;\n}\n\n.link {\n display: flex;\n align-items: center;\n text-decoration: none;\n font-size: var(--mantine-font-size-sm);\n color: light-dark(var(--mantine-color-gray-7), var(--mantine-color-dark-1));\n padding: 8px 12px;\n border-radius: var(--mantine-radius-sm);\n font-weight: 500;\n\n &:hover {\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));\n color: light-dark(var(--mantine-color-black), var(--mantine-color-white));\n text-decoration: none;\n\n & svg {\n color: light-dark(var(--mantine-color-black), var(--mantine-color-white));\n }\n }\n\n & svg {\n color: light-dark(var(--mantine-color-gray-6), var(--mantine-color-dark-2));\n margin-right: var(--mantine-spacing-sm);\n stroke-width: 1.5;\n width: 18px;\n height: 18px;\n }\n}\n\n.linkActive {\n color: var(--mantine-primary-color-filled);\n background-color: light-dark(var(--mantine-primary-color-light), var(--mantine-primary-color-dark));\n\n &:hover {\n color: var(--mantine-primary-color-filled-hover);\n background-color: light-dark(var(--mantine-primary-color-light-hover), var(--mantine-primary-color-dark-hover));\n\n & svg {\n color: var(--mantine-color-blue-light-color);\n }\n }\n\n & svg {\n color: var(--mantine-color-blue-light-color);\n }\n}\n", ".root {\n display: grid;\n grid-template-columns: 30% 70%;\n margin: 0;\n\n & > dt,\n & > dd {\n padding: var(--mantine-spacing-sm);\n border-top: 0.1px solid light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4));\n margin: 0;\n }\n\n & > dt:first-of-type,\n & > dd:first-of-type {\n border-top: 0;\n padding-top: 0;\n }\n\n & > dt:last-of-type,\n & > dd:last-of-type {\n padding-bottom: 0;\n }\n}\n\n.compact {\n grid-template-columns: auto 1fr;\n\n & > dt,\n & > dd {\n padding: 0 0 var(--mantine-spacing-xs);\n border-top: 0;\n }\n\n & > dt {\n padding-right: var(--mantine-spacing-xs);\n }\n\n & > dd {\n padding-left: var(--mantine-spacing-xs);\n }\n\n & > dt:last-of-type,\n & > dd:last-of-type {\n padding-bottom: 0;\n }\n}\n", ".dimmed {\n color: var(--mantine-color-dimmed);\n}\n", ".indented {\n margin-top: 0.5rem;\n border-left: 3px solid var(--mantine-color-gray-4);\n padding: 0.5rem 0 0.5rem 0.5rem;\n}\n", "\n.table {\n width: 350px;\n\n & th {\n font-weight: normal;\n font-size: 11px;\n padding: 8px;\n text-align: center;\n }\n\n & td {\n padding: 2px 4px;\n }\n\n & td button {\n width: 44px;\n height: 44px;\n color: theme.colors[theme.primaryColor][5];\n font-size: 16px;\n font-weight: 500;\n text-align: center;\n padding: 0;\n background-color: theme.colors[theme.primaryColor][0];\n border: 0;\n border-radius: 50px;\n cursor: pointer;\n }\n\n & td button:hover {\n background-color: theme.colors[theme.primaryColor][1];\n }\n\n & td button:disabled {\n background-color: transparen;\n cursor: defaul;\n color: var(--mantine-color-gray-4);\n font-weight: normal;\n }\n}", ".root {\n @media (max-width: 800px) {\n padding-left: 4px;\n padding-right: 4px;\n }\n}\n", ".noteBody {\n font-size: var(--mantine-font-size-sm);\n}\n\n.noteCite {\n font-size: var(--mantine-font-size-xs);\n margin-block-start: 3;\n}\n\n.noteRoot {\n padding: 5px;\n}\n", ".table {\n border: 0.1px solid var(--mantine-color-gray-5);\n border-collapse: collapse;\n\n & td,\n & th {\n border: 0.1px solid var(--mantine-color-gray-5);\n padding: 4px;\n }\n}\n\n.criticalRow {\n background: light-dark(var(--mantine-color-red-1), var(--mantine-color-red-7));\n border: 0.1px solid var(--mantine-color-red-5);\n color: var(--mantine-color-red-5);\n font-weight: 500;\n\n & td {\n border: 0.1px solid var(--mantine-color-red-5);\n }\n}\n\n.noteBody {\n font-size: var(--mantine-font-size-sm);\n}\n\n.noteCite {\n font-size: var(--mantine-font-size-xs);\n margin-block-start: 3;\n}\n\n.noteRoot {\n padding: 5px;\n}\n", ".paper {\n margin: var(--mantine-spacing-xl) auto;\n padding: var(--mantine-spacing-md);\n\n @media (max-width: 800px) {\n padding: 8px;\n }\n\n & img {\n width: 100%;\n max-width: 100%;\n }\n\n & video {\n width: 100%;\n max-width: 100%;\n }\n}\n\n.fill {\n padding: 0;\n}\n", ".root {\n border-collapse: collapse;\n width: 100%;\n\n & tr {\n border-top: 0.1px solid var(--mantine-color-gray-3);\n }\n\n & th,\n & td {\n padding: var(--mantine-spacing-sm) var(--mantine-spacing-sm);\n vertical-align: top;\n word-wrap: break-word;\n overflow-wrap: anywhere;\n white-space: normal; \n min-width: 100px; \n }\n}\n\n.removed {\n color: var(--mantine-color-red-7);\n text-decoration: line-through;\n}\n\n.added {\n color: var(--mantine-color-green-7);\n}\n", ".item {\n white-space: pre-wrap;\n}\n\n.itemPadding {\n padding: 0 16px 16px 16px;\n}\n", "\n.pinnedComment {\n background-color: var(--mantine-color-blue-0);\n}", ".root {\n max-width: 100%;\n overflow: auto;\n text-align: left;\n margin-bottom: 20px;\n}\n\n.table {\n cursor: pointer;\n}\n\n.tr {\n &:hover {\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));\n }\n}\n\n.th {\n padding: 0 !important;\n}\n\n.control {\n width: 100%;\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-md);\n\n &:hover {\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));\n }\n}\n\n.icon {\n width: 21px;\n height: 21px;\n border-radius: 21px;\n}\n", "\n.section {\n position: relative;\n margin: 4px 4px 8px;\n padding: 6px 12px 16px 6px;\n border: 1.5px solid var(--mantine-color-gray-1);\n border-radius: var(--mantine-radius-sm);\n transition: all 0.1;\n}\n\n.hovering {\n border: 1.5px solid var(--mantine-color-blue-5);\n}\n\n.editing {\n border: 1.5px solid var(--mantine-color-gray-1);\n border-left: 4px solid var(--mantine-color-blue-5);\n}\n\n.bottomActions {\n position: absolute;\n right: 4px;\n bottom: 0;\n font-size: var(--mantine-font-size-xs);\n\n & a {\n margin-left: 8px;\n }\n}", ".section {\n position: relative;\n margin: 4px 4px 8px;\n padding: 6px 12px 16px 6px;\n border: 1.5px solid var(--mantine-color-gray-1);\n border-radius: var(--mantine-radius-sm);\n transition: all 0.1;\n}\n\n.hovering {\n border: 1.5px solid var(--mantine-color-blue-5);\n}\n\n.editing {\n border: 1.5px solid var(--mantine-color-gray-1);\n border-left: 4px solid var(--mantine-color-blue-5);\n min-height: 100px;\n}\n\n.questionBody {\n max-width: 600px;\n}\n\n.topActions {\n position: absolute;\n right: 32px;\n top: 1px;\n padding: 4px;\n color: var(--mantine-color-gray-5);\n font-size: var(--mantine-font-size-xs);\n}\n\n.bottomActions {\n position: absolute;\n right: 4px;\n bottom: 0;\n --text-fz: var(--mantine-font-size-xs);\n\n & a {\n margin-left: 8px;\n }\n}\n\n.movementActions {\n position: absolute;\n right: 8px;\n top: 0;\n padding-top: 8px;\n font-size: var(--mantine-font-size-xs);\n\n & a {\n margin-left: 8px;\n }\n}\n\n.movementIcons {\n color: var(--mantine-color-gray-5);\n}\n\n.columnAlignment {\n display: flex;\n flex-direction: column;\n}\n\n.linkIdInput {\n width: 100px;\n margin-bottom: 4px;\n}\n\n.typeSelect {\n width: 100px;\n}\n", ".section {\n position: relative;\n margin: 4px 4px 8px;\n padding: 6px 12px 16px 6px;\n border: 1.5px solid var(--mantine-color-gray-3);\n border-radius: var(--mantine-radius-sm);\n transition: all 0.1;\n}\n", ".container {\n overflow-x: auto;\n}\n\n.root {\n border: 0.1px solid var(--mantine-color-gray-3);\n border-collapse: collapse;\n border-radius: var(--mantine-radius-sm);\n border-spacing: 0;\n font-size: var(--mantine-font-size-xs);\n width: 100px;\n\n & td {\n padding: 2px 4px 0 4px;\n vertical-align: top;\n white-space: nowrap;\n }\n}\n\n.startRow {\n border-top: 0.1px solid var(--mantine-color-gray-3);\n}\n\n.normalRow {\n border-top: 0;\n}\n\n.author {\n line-height: 10px;\n}\n\n.dateTime {\n border-right: 0.1px solid var(--mantine-color-gray-3);\n line-height: 20px;\n}\n\n.lineNumber {\n background-color: var(--mantine-color-gray-1);\n border: 0;\n color: var(--mantine-color-gray-5);\n font-family: var(--mantine-font-family-monospace);\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);\n text-align: right;\n}\n\n.line {\n font-family: var(--mantine-font-family-monospace);\n font-size: var(--mantine-font-size-sm);\n padding: var(--mantine-spacing-xs) var(--mantine-spacing-sm);\n}\n\n.pre {\n margin: 0;\n}\n", "\n.removed {\n color: var(--mantine-color-red-7);\n text-decoration: line-through;\n}\n\n.added {\n color: var(--mantine-color-green-7);\n}", ".splitButton {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.menuControl {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border: 0;\n border-left: rem(1px) solid var(--mantine-color-body);\n}\n", "\n.container {\n display: flex;\n min-height: 400px;\n}\n\n.info {\n min-width: 300px;\n padding: 20px;\n border-right: 1px solid var(--mantine-color-gray-3);\n}\n\n.selection {\n min-width: 300px;\n padding: 20px;\n}", ".chatPaper {\n height: 100%;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}\n\n.chatTitle {\n background-color: light-dark(var(--mantine-color-blue-7), var(--mantine-color-blue-8));\n color: light-dark(var(--mantine-color-white), var(--mantine-color-gray-3));\n font-size: var(--mantine-font-size-sm);\n font-weight: 500;\n padding: var(--mantine-spacing-sm);\n user-select: none;\n}\n\n.chatBody {\n background-color: var(--mantine-color-body);\n flex: 1;\n position: relative;\n}\n\n.chatScrollArea {\n padding: var(--mantine-spacing-xs);\n}\n\n.chatInputContainer {\n background-color: light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-4));\n padding: 6px 8px;\n}\n\n.chatBubbleOuterWrap {\n max-width: 75%;\n padding-bottom: 10px;\n}\n\n.chatBubbleRightAlignedInnerWrap {\n display: flex;\n flex-direction: row-reverse;\n}\n\n.chatBubbleLeftAlignedInnerWrap {\n display: flex;\n flex-direction: row;\n}\n\n.chatBubble {\n background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-blue-7));\n border-radius: var(--mantine-radius-lg);\n padding: var(--mantine-spacing-sm);\n min-width: 40px;\n color: light-dark(var(--mantine-color-dark), var(--mantine-color-gray-2));\n\n & p {\n margin-top: 0.25rem;\n margin-bottom: 0.25rem;\n }\n\n & pre {\n max-width: 280px;\n overflow: auto;\n }\n}\n\n.chatBubbleName {\n margin-bottom: 5px;\n font-weight: 500;\n}\n\n.chatBubbleNameRight {\n text-align: right;\n}\n", ".iconContainer {\n position: fixed;\n bottom: 0.5rem;\n right: 0.5rem;\n z-index: 100px;\n}\n\n.icon {\n background-color: light-dark(var(--mantine-color-white), var(--mantine-color-dark-7));\n box-shadow:\n 0 0.2rem 0.4rem rgba(0, 0, 0, 0.05),\n 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);\n}\n\n.chatModalContainer {\n position: fixed;\n bottom: 3rem;\n right: 0.5rem;\n z-index: 100px;\n width: 400px;\n height: 450px;\n max-height: 450px;\n overflow: hidden;\n border-radius: var(--mantine-radius-md);\n box-shadow:\n 0 0.2rem 0.4rem rgba(0, 0, 0, 0.05),\n 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);\n}\n"],
5
+ "mappings": "AAAA,CAACA,cACC,KAAM,EACN,iBAAkB,WAAW,IAAI,uBAAuB,CAAE,IAAI,yBAC9D,eAAgB,IAAI,sBACpB,WAAY,IACd,CCLA,CAACC,kBAUD,CAACC,YATC,QAAS,IAAI,sBAAsB,IAAI,sBACvC,cAAe,IAAI,qBACnB,WAAY,iBAAiB,IAAM,KAEnC,CAAC,OACC,iBAAkB,IAAI,oCACxB,CACF,CAYA,CAACC,gBACC,YAAa,IACb,YAAa,IACb,aAAc,IAEd,OAAO,CAAC,SAAS,EAAE,CAAC,uBAClB,QAAS,IACX,CACF,CAEA,CAACC,kBACC,iBAAkB,IAAI,oCACxB,CChCA,CAACC,8BACC,MACE,MAAO,MACP,WAAY,MAAM,IAAK,WACzB,CAEA,KAAK,OACH,MAAO,KACT,CAEA,OAAO,CAAC,SAAS,EAAE,OACjB,MACE,MAAO,KACT,CACA,KAAK,OACH,MAAO,KACT,CACF,CACF,CClBA,CAACC,iBAAD,OACU,KAAK,EAAE,IAAI,IACnB,UAAW,IACX,YAAa,IACb,eAAgB,UAChB,eAAgB,GAClB,CAEA,CAACC,YACC,QAAS,KACT,YAAa,OACb,gBAAiB,KACjB,UAAW,IAAI,wBACf,MAAO,WAAW,IAAI,uBAAuB,CAAE,IAAI,yBAbrD,QAcW,IAAI,KACb,cAAe,IAAI,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uB,CAAE,IAAI,yBA3BhE,QA4BW,IAAI,GACf,CAEA,CAACC,6BACC,UAAW,IACX,eAAgB,IAClB,CAEA,CAACC,yCACC,QAAS,KACT,eAAgB,WAClB,CAEA,CAACC,wCACC,QAAS,KACT,eAAgB,GAClB,CAEA,CAACC,oBACC,iBAAkB,WAAW,IAAI,uBAAuB,CAAE,IAAI,yBAC9D,cAAe,IAAI,qBACnB,QAAS,IAAI,sBACb,UAAW,KACX,MAAO,WAAW,IAAI,qBAAqB,CAAE,IAAI,yBAEjD,EAAE,EACA,WAAY,OACZ,cAAe,MACjB,CAEA,EAAE,IACA,UAAW,MACX,SAAU,IACZ,CACF,CAEA,CAACC,wBACC,cAAe,IACf,YAAa,GACf,CAEA,CAACC,6BACC,WAAY,KACd,CCvEA,CAACC,wBACC,SAAU,MACV,OAAQ,MACR,MAAO,MACP,QAAS,KACX,CAEA,CAACC,eACC,iBAAkB,WAAW,IAAI,sBAAsB,CAAE,IAAI,yBAC7D,WACE,EAAE,MAAO,MAAO,SAAmB,CACnC,EAAE,MAAO,MAAO,SACpB,CAEA,CAACC,6BACC,SAAU,MACV,OAAQ,KACR,MAAO,MACP,QAAS,MACT,MAAO,MACP,OAAQ,MACR,WAAY,MACZ,SAAU,OACV,cAAe,IAAI,qBACnB,WACE,EAAE,MAAO,MAAO,SAAmB,CACnC,EAAE,MAAO,MAAO,SACpB",
6
6
  "names": ["main", "logoButton", "user", "userName", "userActive", "searchInput", "menuTitle", "link", "linkActive", "root", "compact", "dimmed", "indented", "table", "root", "noteBody", "noteCite", "noteRoot", "table", "criticalRow", "noteBody", "noteCite", "noteRoot", "paper", "fill", "root", "removed", "added", "item", "itemPadding", "pinnedComment", "root", "table", "tr", "th", "control", "icon", "section", "hovering", "editing", "bottomActions", "section", "hovering", "editing", "questionBody", "topActions", "bottomActions", "movementActions", "movementIcons", "columnAlignment", "linkIdInput", "typeSelect", "section", "container", "root", "startRow", "normalRow", "author", "dateTime", "lineNumber", "line", "pre", "removed", "added", "splitButton", "menuControl", "container", "info", "selection", "chatPaper", "chatTitle", "chatBody", "chatScrollArea", "chatInputContainer", "chatBubbleOuterWrap", "chatBubbleRightAlignedInnerWrap", "chatBubbleLeftAlignedInnerWrap", "chatBubble", "chatBubbleName", "chatBubbleNameRight", "iconContainer", "icon", "chatModalContainer"]
7
7
  }
@@ -61,7 +61,7 @@ var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropD
61
61
  display
62
62
  }
63
63
  }
64
- }`.replace(/\s+/g," ")}function getResourcesFromResponse(response,query){let resources=[];return response.data.Patients1&&resources.push(...response.data.Patients1),response.data.Patients2&&resources.push(...response.data.Patients2),response.data.ServiceRequestList&&resources.push(...response.data.ServiceRequestList),sortByRelevance(dedupeResources(resources),query).slice(0,5)}function dedupeResources(resources){let ids=new Set,result=[];for(let resource of resources)ids.has(resource.id)||(ids.add(resource.id),result.push(resource));return result}function sortByRelevance(resources,query){return resources.sort((a,b)=>getResourceScore(b,query)-getResourceScore(a,query))}function getResourceScore(resource,query){let bestScore=0;if(resource.identifier)for(let identifier of resource.identifier)bestScore=Math.max(bestScore,getStringScore(identifier.value,query));if(resource.resourceType==="Patient"&&resource.name)for(let name of resource.name)bestScore=Math.max(bestScore,getStringScore(formatHumanName2(name),query));return bestScore}function getStringScore(str,query){if(!str)return 0;let index=str.toLowerCase().indexOf(query.toLowerCase());return index<0?0:100-index}import{jsx as jsx12,jsxs as jsxs5}from"react/jsx-runtime";function Header(props){let profile=useMedplumProfile2(),[userMenuOpened,setUserMenuOpened]=useState4(!1);return jsx12(MantineAppShell.Header,{p:8,style:{zIndex:101},children:jsxs5(Group5,{justify:"space-between",children:[jsxs5(Group5,{gap:"xs",children:[jsx12(UnstyledButton,{className:Header_default.logoButton,onClick:props.navbarToggle,children:props.logo}),!props.headerSearchDisabled&&jsx12(HeaderSearchInput,{pathname:props.pathname,searchParams:props.searchParams})]}),jsxs5(Group5,{gap:"lg",pr:"sm",children:[props.notifications,jsxs5(Menu2,{width:260,shadow:"xl",position:"bottom-end",transitionProps:{transition:"pop-top-right"},opened:userMenuOpened,onClose:()=>setUserMenuOpened(!1),children:[jsx12(Menu2.Target,{children:jsx12(UnstyledButton,{className:clsx_default(Header_default.user,{[Header_default.userActive]:userMenuOpened}),onClick:()=>setUserMenuOpened(o=>!o),children:jsxs5(Group5,{gap:7,children:[jsx12(ResourceAvatar,{value:profile,radius:"xl",size:24}),jsx12(Text3,{size:"sm",className:Header_default.userName,children:formatHumanName3(profile?.name?.[0])}),jsx12(IconChevronDown,{size:12,stroke:1.5})]})})}),jsx12(Menu2.Dropdown,{children:jsx12(HeaderDropdown,{version:props.version})})]})]})]})})}import{Button as Button2,AppShell as MantineAppShell2,ScrollArea,Space,Text as Text5}from"@mantine/core";import{useMedplumNavigate as useMedplumNavigate3}from"@medplum/react-hooks";import{Fragment as Fragment4,useState as useState7}from"react";import{Button,Group as Group6,Modal,NativeSelect as NativeSelect2,Stack as Stack2,TextInput as TextInput3}from"@mantine/core";import{showNotification as showNotification2}from"@mantine/notifications";import{deepClone,normalizeErrorString as normalizeErrorString3}from"@medplum/core";import{useMedplum as useMedplum2}from"@medplum/react-hooks";function parseForm(form){let result={};for(let element of Array.from(form.elements))element instanceof HTMLInputElement?parseInputElement(result,element):element instanceof HTMLTextAreaElement?result[element.name]=element.value:element instanceof HTMLSelectElement&&parseSelectElement(result,element);return result}function parseInputElement(result,el){el.disabled||(el.type==="checkbox"||el.type==="radio")&&!el.checked||(result[el.name]=el.value)}function parseSelectElement(result,el){result[el.name]=el.value}import{jsx as jsx13}from"react/jsx-runtime";function Form(props){return jsx13("form",{style:props.style,"data-testid":props.testid,onSubmit:e=>{e.preventDefault();let formData=parseForm(e.target);props.onSubmit&&props.onSubmit(formData)},children:props.children})}import{jsx as jsx14,jsxs as jsxs6}from"react/jsx-runtime";function BookmarkDialog(props){let medplum=useMedplum2(),config=medplum.getUserConfiguration();function submitHandler(formData){let{menuname,bookmarkname:name}=formData,target=`${props.pathname}?${props.searchParams.toString()}`,newConfig=deepClone(config);newConfig.menu?.find(({title})=>title===menuname)?.link?.push({name,target}),medplum.updateResource(newConfig).then(res=>{config.menu=res.menu,medplum.dispatchEvent({type:"change"}),showNotification2({color:"green",message:"Success"}),props.onOk()}).catch(err=>{showNotification2({color:"red",message:normalizeErrorString3(err)})})}return jsx14(Modal,{title:"Add Bookmark",closeButtonProps:{"aria-label":"Close"},opened:props.visible,onClose:props.onCancel,children:jsx14(Form,{onSubmit:submitHandler,children:jsxs6(Stack2,{children:[jsx14(SelectMenu,{config}),jsx14(TextInput3,{label:"Bookmark Name",type:"text",name:"bookmarkname",placeholder:"Bookmark Name",withAsterisk:!0}),jsx14(Group6,{justify:"flex-end",children:jsx14(Button,{mt:"sm",type:"submit",children:"OK"})})]})})})}function SelectMenu(props){function userConfigToMenu(config){return config?.menu?.map(menu=>menu.title)}let menus=userConfigToMenu(props.config);return jsx14(NativeSelect2,{name:"menuname",defaultValue:menus[0],label:"Select Menu Option",data:menus,withAsterisk:!0})}import{useCallback as useCallback4,useState as useState6}from"react";import{useState as useState5}from"react";import{Group as Group7,Text as Text4}from"@mantine/core";import{useMedplum as useMedplum3}from"@medplum/react-hooks";import{forwardRef as forwardRef3,useCallback as useCallback3}from"react";import{jsx as jsx15,jsxs as jsxs7}from"react/jsx-runtime";function toKey(element){return typeof element.code=="string"?element.code:JSON.stringify(element)}function getDisplay(item){return typeof item.display=="string"?item.display:toKey(item)}function toOption2(element){return{value:toKey(element),label:getDisplay(element),resource:element}}function createValue(input){return{code:input,display:input}}function ValueSetAutocomplete(props){let medplum=useMedplum3(),{binding,creatable,clearable,expandParams,withHelpText,...rest}=props,loadValues=useCallback3(async(input,signal)=>{if(!binding)return[];let valueSetElements=(await medplum.valueSetExpand({...expandParams,url:binding,filter:input},{signal})).expansion?.contains??[],newData=[];for(let valueSetElement of valueSetElements)valueSetElement.code&&!newData.some(item=>item.code===valueSetElement.code)&&newData.push(valueSetElement);return newData},[medplum,expandParams,binding]);return jsx15(AsyncAutocomplete,{...rest,creatable:creatable??!0,clearable:clearable??!0,toOption:toOption2,loadOptions:loadValues,onCreate:createValue,itemComponent:withHelpText?ItemComponent2:void 0})}var ItemComponent2=forwardRef3(({label,resource,active,...others},ref)=>jsx15("div",{ref,...others,children:jsxs7(Group7,{wrap:"nowrap",gap:"xs",children:[active&&jsx15(IconCheck,{size:12}),jsxs7("div",{children:[jsx15(Text4,{children:label}),jsx15(Text4,{size:"xs",c:"dimmed",children:`${resource.system}#${resource.code}`})]})]})}));import{jsx as jsx16}from"react/jsx-runtime";function CodeInput(props){let{defaultValue:defaultValue2,onChange,withHelpText,...rest}=props,[value,setValue]=useState5(defaultValue2);function handleChange(newValues){let newValue=newValues[0],newCode=valueSetElementToCode(newValue);setValue(newCode),onChange&&onChange(newCode)}return jsx16(ValueSetAutocomplete,{defaultValue:codeToValueSetElement(value),onChange:handleChange,withHelpText:withHelpText??!0,...rest})}function codeToValueSetElement(code){return code?{code}:void 0}function valueSetElementToCode(element){return element?.code}import{jsx as jsx17}from"react/jsx-runtime";function ResourceTypeInput(props){let[resourceType,setResourceType]=useState6(props.defaultValue),onChange=props.onChange,setResourceTypeWrapper=useCallback4(newResourceType=>{setResourceType(newResourceType),onChange&&onChange(newResourceType)},[onChange]);return jsx17(CodeInput,{disabled:props.disabled,"data-autofocus":props.autoFocus,"data-testid":props.testId,defaultValue:resourceType,onChange:setResourceTypeWrapper,name:props.name,placeholder:props.placeholder,binding:"https://medplum.com/fhir/ValueSet/resource-types",creatable:!1,maxValues:props.maxValues??1,clearable:!1,withHelpText:!1})}var Navbar_default={menuTitle:"Navbar_menuTitle",link:"Navbar_link",linkActive:"Navbar_linkActive"};import{Fragment as Fragment5,jsx as jsx18,jsxs as jsxs8}from"react/jsx-runtime";function Navbar(props){let navigate=useMedplumNavigate3(),activeLink=getActiveLink(props.pathname,props.searchParams,props.menus),[bookmarkDialogVisible,setBookmarkDialogVisible]=useState7(!1);function onLinkClick(e,to){e.stopPropagation(),e.preventDefault(),navigate(to),window.innerWidth<768&&props.closeNavbar()}function navigateResourceType(resourceType){resourceType&&navigate(`/${resourceType}`)}return jsxs8(Fragment5,{children:[jsx18(MantineAppShell2.Navbar,{children:jsxs8(ScrollArea,{p:"xs",children:[!props.resourceTypeSearchDisabled&&jsx18(MantineAppShell2.Section,{mb:"sm",children:jsx18(ResourceTypeInput,{name:"resourceType",placeholder:"Resource Type",maxValues:0,onChange:newValue=>navigateResourceType(newValue)},window.location.pathname)}),jsxs8(MantineAppShell2.Section,{grow:!0,children:[props.menus?.map(menu=>jsxs8(Fragment4,{children:[jsx18(Text5,{className:Navbar_default.menuTitle,children:menu.title}),menu.links?.map(link=>jsxs8(NavbarLink,{to:link.href,active:link.href===activeLink?.href,onClick:e=>onLinkClick(e,link.href),children:[jsx18(NavLinkIcon,{to:link.href,icon:link.icon}),jsx18("span",{children:link.label})]},link.href))]},`menu-${menu.title}`)),props.displayAddBookmark&&jsx18(Button2,{variant:"subtle",size:"xs",mt:"xl",leftSection:jsx18(IconPlus,{size:"0.75rem"}),onClick:()=>setBookmarkDialogVisible(!0),children:"Add Bookmark"})]})]})}),props.pathname&&props.searchParams&&jsx18(BookmarkDialog,{pathname:props.pathname,searchParams:props.searchParams,visible:bookmarkDialogVisible,onOk:()=>setBookmarkDialogVisible(!1),onCancel:()=>setBookmarkDialogVisible(!1)})]})}function NavbarLink(props){return jsx18(MedplumLink,{onClick:props.onClick,to:props.to,className:clsx_default(Navbar_default.link,{[Navbar_default.linkActive]:props.active}),children:props.children})}function NavLinkIcon(props){return props.icon?props.icon:jsx18(Space,{w:30})}function getActiveLink(currentPathname,currentSearchParams,menus){if(!currentPathname||!currentSearchParams||!menus)return;let bestLink,bestScore=0;for(let menu of menus)if(menu.links)for(let link of menu.links){let score=getLinkScore(currentPathname,currentSearchParams,link.href);score>bestScore&&(bestScore=score,bestLink=link)}return bestLink}function getLinkScore(currentPathname,currentSearchParams,linkHref){let linkUrl=new URL(linkHref,"https://example.com");if(currentPathname!==linkUrl.pathname)return 0;let ignoredParams=["_count","_offset"];for(let[key,value]of linkUrl.searchParams.entries())if(!ignoredParams.includes(key)&&currentSearchParams.get(key)!==value)return 0;let count=1;for(let[key,value]of currentSearchParams.entries())ignoredParams.includes(key)||linkUrl.searchParams.get(key)===value&&count++;return count}import{jsx as jsx19,jsxs as jsxs9}from"react/jsx-runtime";function AppShell(props){let[navbarOpen,setNavbarOpen]=useState8(localStorage.navbarOpen==="true"),medplum=useMedplum4(),profile=useMedplumProfile3();useEffect2(()=>{function eventListener(){showNotification3({color:"red",message:"No connection to server",autoClose:!1})}return medplum.addEventListener("offline",eventListener),()=>medplum.removeEventListener("offline",eventListener)},[medplum]);function setNavbarOpenWrapper(open){localStorage.navbarOpen=open.toString(),setNavbarOpen(open)}function closeNavbar(){setNavbarOpenWrapper(!1)}function toggleNavbar(){setNavbarOpenWrapper(!navbarOpen)}return medplum.isLoading()?jsx19(Loading,{}):jsxs9(MantineAppShell3,{header:{height:60},navbar:{width:250,breakpoint:"sm",collapsed:{desktop:!profile||!navbarOpen,mobile:!profile||!navbarOpen}},padding:0,children:[profile&&jsx19(Header,{pathname:props.pathname,searchParams:props.searchParams,headerSearchDisabled:props.headerSearchDisabled,logo:props.logo,version:props.version,navbarToggle:toggleNavbar,notifications:props.notifications}),profile&&navbarOpen?jsx19(Navbar,{pathname:props.pathname,searchParams:props.searchParams,menus:props.menus,closeNavbar,displayAddBookmark:props.displayAddBookmark,resourceTypeSearchDisabled:props.resourceTypeSearchDisabled}):void 0,jsx19(MantineAppShell3.Main,{className:AppShell_default.main,children:jsx19(ErrorBoundary,{children:jsx19(Suspense,{fallback:jsx19(Loading,{}),children:props.children})})})]})}import{Anchor as Anchor2}from"@mantine/core";import{useCachedBinaryUrl as useCachedBinaryUrl2}from"@medplum/react-hooks";import{jsx as jsx20,jsxs as jsxs10}from"react/jsx-runtime";function AttachmentDisplay(props){let{contentType,url:uncachedUrl,title}=props.value??{},url=useCachedBinaryUrl2(uncachedUrl);return url?jsxs10("div",{"data-testid":"attachment-display",children:[contentType?.startsWith("image/")&&jsx20("img",{"data-testid":"attachment-image",style:{maxWidth:props.maxWidth},src:url,alt:title}),contentType?.startsWith("video/")&&jsx20("video",{"data-testid":"attachment-video",style:{maxWidth:props.maxWidth},controls:!0,children:jsx20("source",{type:contentType,src:url})}),(contentType?.startsWith("text/")||contentType==="application/json"||contentType==="application/pdf")&&jsx20("div",{"data-testid":"attachment-iframe",style:{maxWidth:props.maxWidth,minHeight:400},children:jsx20("iframe",{width:"100%",height:"400",src:url+"#navpanes=0",allowFullScreen:!0,frameBorder:0,seamless:!0})}),jsx20("div",{"data-testid":"download-link",style:{padding:"2px 16px 16px 16px"},children:jsx20(Anchor2,{href:uncachedUrl,"data-testid":"attachment-details",target:"_blank",rel:"noopener noreferrer",download:getDownloadName(title),children:title||"Download"})})]}):null}function getDownloadName(title){return title?.includes(".")?title:void 0}var DescriptionList_default={root:"DescriptionList_root",compact:"DescriptionList_compact"};import{Fragment as Fragment6,jsx as jsx21,jsxs as jsxs11}from"react/jsx-runtime";function DescriptionList(props){let{children,compact}=props;return jsx21("dl",{className:clsx_default(DescriptionList_default.root,{[DescriptionList_default.compact]:compact}),children})}function DescriptionListEntry(props){return jsxs11(Fragment6,{children:[jsx21("dt",{children:props.term}),jsx21("dd",{children:props.children})]})}import{getPathDisplayName,isPopulated as isPopulated2}from"@medplum/core";import{Fragment as Fragment7,jsx as jsx22}from"react/jsx-runtime";function AttachmentArrayDisplay(props){let attachmentElements=props.values?.map((v,index)=>jsx22("div",{children:jsx22(AttachmentDisplay,{value:v,maxWidth:props.maxWidth})},"attatchment-"+index)),content;if(props.includeDescriptionListEntry){if(props.property===void 0)throw new Error("props.property is required when includeDescriptionListEntry is true");if(!isPopulated2(props.path))throw new Error("props.path is required when includeDescriptionListEntry is true");let key=props.path.split(".").pop();content=jsx22(DescriptionListEntry,{term:getPathDisplayName(key),children:attachmentElements})}else content=jsx22(Fragment7,{children:attachmentElements});return content}import{ActionIcon}from"@mantine/core";import{useRef as useRef4,useState as useState9}from"react";import{normalizeOperationOutcome}from"@medplum/core";import{useMedplum as useMedplum5}from"@medplum/react-hooks";import{useRef as useRef3}from"react";import{Fragment as Fragment8,jsx as jsx23,jsxs as jsxs12}from"react/jsx-runtime";function AttachmentButton(props){let medplum=useMedplum5(),fileInputRef=useRef3(null);function onClick(e){killEvent(e),fileInputRef.current?.click()}function onFileChange(e){killEvent(e);let files=e.target.files;files&&Array.from(files).forEach(processFile)}function processFile(file){!file||!file.name||(props.onUploadStart&&props.onUploadStart(),medplum.createAttachment({data:file,contentType:file.type||"application/octet-stream",filename:file.name,securityContext:props.securityContext,onProgress:props.onUploadProgress}).then(attachment=>props.onUpload(attachment)).catch(err=>{props.onUploadError&&props.onUploadError(normalizeOperationOutcome(err))}))}return jsxs12(Fragment8,{children:[jsx23("input",{disabled:props.disabled,type:"file","data-testid":"upload-file-input",style:{display:"none"},ref:fileInputRef,onChange:e=>onFileChange(e)}),props.children({onClick,disabled:props.disabled})]})}import{jsx as jsx24,jsxs as jsxs13}from"react/jsx-runtime";function AttachmentArrayInput(props){let[values,setValues]=useState9(props.defaultValue??[]),valuesRef=useRef4();valuesRef.current=values;function setValuesWrapper(newValues){setValues(newValues),props.onChange&&props.onChange(newValues)}return jsxs13("table",{style:{width:"100%"},children:[jsxs13("colgroup",{children:[jsx24("col",{width:"97%"}),jsx24("col",{width:"3%"})]}),jsxs13("tbody",{children:[values.map((v,index)=>jsxs13("tr",{children:[jsx24("td",{children:jsx24(AttachmentDisplay,{value:v,maxWidth:200})}),jsx24("td",{children:jsx24(ActionIcon,{disabled:props.disabled,title:"Remove",variant:"subtle",size:"sm",color:"gray",onClick:e=>{killEvent(e);let copy=values.slice();copy.splice(index,1),setValuesWrapper(copy)},children:jsx24(IconCircleMinus,{})})})]},`${index}-${values.length}`)),jsxs13("tr",{children:[jsx24("td",{}),jsx24("td",{children:jsx24(AttachmentButton,{disabled:props.disabled,onUpload:attachment=>{setValuesWrapper([...valuesRef.current,attachment])},children:props2=>jsx24(ActionIcon,{...props2,title:"Add",variant:"subtle",size:"sm",color:props2.disabled?"gray":"green",children:jsx24(IconCloudUpload,{})})})})]})]})]})}import{Button as Button3}from"@mantine/core";import{useState as useState10}from"react";import{Fragment as Fragment9,jsx as jsx25,jsxs as jsxs14}from"react/jsx-runtime";function AttachmentInput(props){let[value,setValue]=useState10(props.defaultValue);function setValueWrapper(newValue){setValue(newValue),props.onChange&&props.onChange(newValue)}return value?jsxs14(Fragment9,{children:[jsx25(AttachmentDisplay,{value,maxWidth:200}),jsx25(Button3,{disabled:props.disabled,onClick:e=>{killEvent(e),setValueWrapper(void 0)},children:"Remove"})]}):jsx25(AttachmentButton,{disabled:props.disabled,securityContext:props.securityContext,onUpload:setValueWrapper,children:props2=>jsx25(Button3,{...props2,children:"Upload..."})})}import{buildElementsContext as buildElementsContext2,getPathDisplayName as getPathDisplayName3,isEmpty as isEmpty2,tryGetDataType}from"@medplum/core";import{ActionIcon as ActionIcon2,Box,CopyButton,Tooltip}from"@mantine/core";import{PropertyType,formatDateTime,formatPeriod,formatTiming,isEmpty}from"@medplum/core";import{formatCodeableConcept}from"@medplum/core";import{Fragment as Fragment10,jsx as jsx26}from"react/jsx-runtime";function CodeableConceptDisplay(props){return jsx26(Fragment10,{children:formatCodeableConcept(props.value)})}import{formatCoding}from"@medplum/core";import{Fragment as Fragment11,jsx as jsx27}from"react/jsx-runtime";function CodingDisplay(props){return jsx27(Fragment11,{children:formatCoding(props.value)})}import{Fragment as Fragment12,jsx as jsx28}from"react/jsx-runtime";function ContactPointDisplay(props){let contactPoint=props.value;if(!contactPoint)return null;let builder=[];return contactPoint.value&&builder.push(contactPoint.value),(contactPoint.use||contactPoint.system)&&(builder.push(" ["),contactPoint.use&&builder.push(contactPoint.use),contactPoint.use&&contactPoint.system&&builder.push(" "),contactPoint.system&&builder.push(contactPoint.system),builder.push("]")),jsx28(Fragment12,{children:builder.join("").trim()})}import{Fragment as Fragment13,jsx as jsx29,jsxs as jsxs15}from"react/jsx-runtime";function ContactDetailDisplay(props){let contactDetail=props.value;return contactDetail?jsxs15(Fragment13,{children:[contactDetail.name,contactDetail.name&&": ",contactDetail.telecom?.map(telecom=>jsx29(ContactPointDisplay,{value:telecom},`telecom-${contactDetail.name}-${telecom.value}`))]}):null}import{jsxs as jsxs16}from"react/jsx-runtime";function IdentifierDisplay(props){return jsxs16("div",{children:[props.value?.system,": ",props.value?.value]})}import{formatMoney}from"@medplum/core";import{Fragment as Fragment14,jsx as jsx30}from"react/jsx-runtime";function MoneyDisplay(props){return jsx30(Fragment14,{children:formatMoney(props.value)})}import{formatQuantity}from"@medplum/core";import{Fragment as Fragment15,jsx as jsx31}from"react/jsx-runtime";function QuantityDisplay(props){return jsx31(Fragment15,{children:formatQuantity(props.value)})}import{formatRange}from"@medplum/core";import{Fragment as Fragment16,jsx as jsx32}from"react/jsx-runtime";function RangeDisplay(props){return jsx32(Fragment16,{children:formatRange(props.value)})}import{Fragment as Fragment17,jsx as jsx33,jsxs as jsxs17}from"react/jsx-runtime";function RatioDisplay(props){let value=props.value;return value?jsxs17(Fragment17,{children:[jsx33(QuantityDisplay,{value:value.numerator}),"\xA0/\xA0",jsx33(QuantityDisplay,{value:value.denominator})]}):null}import{stringify}from"@medplum/core";import{Fragment as Fragment18,jsx as jsx34}from"react/jsx-runtime";function ReferenceDisplay(props){if(!props.value)return null;let displayString=props.value.display||props.value.reference||stringify(props.value);return props.link!==!1&&props.value.reference?jsx34(MedplumLink,{to:props.value,children:displayString}):jsx34(Fragment18,{children:displayString})}import{getPathDisplayName as getPathDisplayName2,isPopulated as isPopulated5}from"@medplum/core";import{useState as useState11,useContext as useContext3,useEffect as useEffect3,useMemo as useMemo4}from"react";import{getValueSliceName,isPopulated as isPopulated3,isSliceDefinitionWithTypes,tryGetProfile}from"@medplum/core";function assignValuesIntoSlices(values,slices,slicing,profileUrl){if(!isPopulated3(slicing?.slices))return[values];let slicedValues=new Array(slices.length+1);for(let i=0;i<slicedValues.length;i++)slicedValues[i]=[];for(let value of values){let sliceName=getValueSliceName(value,slices,slicing.discriminator,profileUrl),sliceIndex=sliceName?slices.findIndex(slice=>slice.name===sliceName):-1;sliceIndex===-1&&(sliceIndex=slices.length),slicedValues[sliceIndex].push(value)}return slicedValues}async function prepareSlices({medplum,property}){return new Promise((resolve,reject)=>{if(!property.slicing){resolve([]);return}let supportedSlices=[],profileUrls=[],promises=[];for(let slice of property.slicing.slices){if(!isSliceDefinitionWithTypes(slice)){console.debug("Unsupported slice definition",slice);continue}let profileUrl;isPopulated3(slice.elements)||(profileUrl=slice.type[0]?.profile?.[0]),supportedSlices.push(slice),profileUrls.push(profileUrl),profileUrl&&promises.push(medplum.requestProfileSchema(profileUrl))}Promise.all(promises).then(()=>{for(let i=0;i<supportedSlices.length;i++){let slice=supportedSlices[i],profileUrl=profileUrls[i];if(profileUrl){let typeSchema=tryGetProfile(profileUrl);slice.typeSchema=typeSchema}}resolve(supportedSlices)}).catch(reject)})}import{useMedplum as useMedplum6}from"@medplum/react-hooks";import{buildElementsContext,isPopulated as isPopulated4}from"@medplum/core";import{useContext as useContext2,useMemo as useMemo3}from"react";import{jsx as jsx35}from"react/jsx-runtime";function maybeWrapWithContext(ContextProvider,contextValue,contents){return contextValue!==void 0?jsx35(ContextProvider,{value:contextValue,children:contents}):contents}import{Fragment as Fragment19,jsx as jsx36}from"react/jsx-runtime";function SliceDisplay(props){let{slice,property}=props,sliceElements=slice.typeSchema?.elements??slice.elements,parentContext=useContext2(ElementsContext),contextValue=useMemo3(()=>{if(isPopulated4(sliceElements))return buildElementsContext({parentContext,elements:sliceElements,path:props.path,profileUrl:slice.typeSchema?.url})},[parentContext,props.path,slice.typeSchema?.url,sliceElements]);return maybeWrapWithContext(ElementsContext.Provider,contextValue,jsx36(Fragment19,{children:props.value.map((value,valueIndex)=>jsx36("div",{children:jsx36(ResourcePropertyDisplay,{property,path:props.path,arrayElement:!0,elementDefinitionType:slice.type[0],propertyType:slice.type[0].code,value,ignoreMissingValues:props.ignoreMissingValues,link:props.link})},`${valueIndex}-${props.value.length}`))}))}import{Fragment as Fragment20,jsx as jsx37,jsxs as jsxs18}from"react/jsx-runtime";function ResourceArrayDisplay(props){let{property,propertyType}=props,medplum=useMedplum6(),values=useMemo4(()=>Array.isArray(props.values)?props.values:[],[props.values]),[loading,setLoading]=useState11(!0),[slices,setSlices]=useState11([]),[slicedValues,setSlicedValues]=useState11(()=>[values]),ctx=useContext3(ElementsContext);if(useEffect3(()=>{prepareSlices({medplum,property}).then(slices2=>{setSlices(slices2);let slicedValues2=assignValuesIntoSlices(values,slices2,property.slicing,ctx.profileUrl);setSlicedValues(slicedValues2),setLoading(!1)}).catch(reason=>{console.error(reason),setLoading(!1)})},[medplum,property,ctx.profileUrl,setSlicedValues,values]),loading)return jsx37("div",{children:"Loading..."});let nonSliceContent;if(property.type[0]?.code!=="Extension"){let nonSliceValues=slicedValues[slices.length],nonSliceElements=nonSliceValues.map((value,valueIndex)=>jsx37("div",{children:jsx37(ResourcePropertyDisplay,{path:props.path,arrayElement:!0,property,propertyType,value,ignoreMissingValues:props.ignoreMissingValues,link:props.link})},`${valueIndex}-${nonSliceValues.length}`));if(props.includeDescriptionListEntry){if(!isPopulated5(props.path))throw new Error("props.path is required when includeDescriptionListEntry is true");let key=props.path.split(".").pop();nonSliceContent=jsx37(DescriptionListEntry,{term:getPathDisplayName2(key),children:nonSliceElements})}else nonSliceContent=jsx37(Fragment20,{children:nonSliceElements})}return jsxs18(Fragment20,{children:[slices.map((slice,sliceIndex)=>{if(!props.path)throw Error(`Displaying a resource property with slices of type ${props.propertyType} requires path`);let sliceDisplay=jsx37(SliceDisplay,{path:props.path,slice,property,value:slicedValues[sliceIndex],ignoreMissingValues:props.ignoreMissingValues,link:props.link},slice.name);return props.includeDescriptionListEntry&&(sliceDisplay=jsx37(DescriptionListEntry,{term:getPathDisplayName2(slice.name),children:sliceDisplay},slice.name)),sliceDisplay}),nonSliceContent]})}import{getDataType,isPopulated as isPopulated6,isProfileLoaded,tryGetProfile as tryGetProfile2}from"@medplum/core";import{useMedplum as useMedplum7}from"@medplum/react-hooks";import{useContext as useContext4,useEffect as useEffect4,useMemo as useMemo5,useState as useState12}from"react";import{getTypedPropertyValue,getTypedPropertyValueWithSchema}from"@medplum/core";function getValueAndType(context,path,profileUrl){let typedResult=getTypedPropertyValue(context,path,{profileUrl});return typedResult?Array.isArray(typedResult)?[typedResult.map(e=>e.value),typedResult[0].type]:[typedResult.value,typedResult.type]:[void 0,"undefined"]}function getValueAndTypeFromElement(typedValue,path,element){let typedResult=getTypedPropertyValueWithSchema(typedValue,path,element);return typedResult?Array.isArray(typedResult)?[typedResult.map(e=>e.value),typedResult[0].type]:[typedResult.value,typedResult.type]:[void 0,"undefined"]}import{jsx as jsx38}from"react/jsx-runtime";function ExtensionDisplay(props){let{elementDefinitionType}=props,medplum=useMedplum7(),ctx=useContext4(ElementsContext),[typeSchema,setTypeSchema]=useState12(getDataType("Extension")),profileUrl=useMemo5(()=>{if(isPopulated6(elementDefinitionType?.profile))return elementDefinitionType.profile[0]},[elementDefinitionType]),[loadingProfile,setLoadingProfile]=useState12(profileUrl!==void 0);if(useEffect4(()=>{profileUrl&&(setLoadingProfile(!0),medplum.requestProfileSchema(profileUrl).then(()=>{let profile=tryGetProfile2(profileUrl);setLoadingProfile(!1),profile&&setTypeSchema(profile)}).catch(reason=>{setLoadingProfile(!1),console.warn(reason)}))},[medplum,profileUrl]),profileUrl&&(loadingProfile||!isProfileLoaded(profileUrl)))return jsx38("div",{children:"Loading..."});if(typeSchema.elements["value[x]"]?.max!==0){let[propertyValue,propertyType]=getValueAndType({type:"Extension",value:props.value},"value[x]",profileUrl??ctx.profileUrl);return jsx38(ResourcePropertyDisplay,{propertyType,value:propertyValue})}return jsx38(BackboneElementDisplay,{path:props.path,value:{type:typeSchema.type,value:props.value},compact:props.compact,ignoreMissingValues:props.ignoreMissingValues,link:props.link,profileUrl})}import{Fragment as Fragment21,jsx as jsx39,jsxs as jsxs19}from"react/jsx-runtime";function ResourcePropertyDisplay(props){let{property,propertyType,value}=props;if(property?.path?.endsWith(".id"))return jsxs19(Box,{component:"div",style:{display:"flex",gap:3,alignItems:"center"},children:[value,!isEmpty(value)&&jsx39(CopyButton,{value,timeout:2e3,children:({copied,copy})=>jsx39(Tooltip,{label:copied?"Copied":"Copy",withArrow:!0,position:"right",children:jsx39(ActionIcon2,{variant:"subtle",color:copied?"teal":"gray",onClick:copy,children:copied?jsx39(IconCheck,{size:"1rem"}):jsx39(IconCopy,{size:"1rem"})})})})]});if(property&&(property.isArray||property.max>1)&&!props.arrayElement)return propertyType===PropertyType.Attachment?jsx39(AttachmentArrayDisplay,{values:value,maxWidth:props.maxWidth,includeDescriptionListEntry:props.includeArrayDescriptionListEntry,property,path:props.path}):jsx39(ResourceArrayDisplay,{path:props.path,property,propertyType,values:value,includeDescriptionListEntry:props.includeArrayDescriptionListEntry,ignoreMissingValues:props.ignoreMissingValues,link:props.link});switch(propertyType){case PropertyType.boolean:return jsx39(Fragment21,{children:value===void 0?"":(!!value).toString()});case PropertyType.SystemString:case PropertyType.string:return jsx39("div",{style:{whiteSpace:"pre-wrap"},children:value});case PropertyType.code:case PropertyType.date:case PropertyType.decimal:case PropertyType.id:case PropertyType.integer:case PropertyType.positiveInt:case PropertyType.unsignedInt:case PropertyType.uri:case PropertyType.url:return jsx39(Fragment21,{children:value});case PropertyType.canonical:return jsx39(ReferenceDisplay,{value:{reference:value},link:props.link});case PropertyType.dateTime:case PropertyType.instant:return jsx39(Fragment21,{children:formatDateTime(value)});case PropertyType.markdown:return jsx39("pre",{children:value});case PropertyType.Address:return jsx39(AddressDisplay,{value});case PropertyType.Annotation:return jsx39(Fragment21,{children:value?.text});case PropertyType.Attachment:return jsx39(AttachmentDisplay,{value,maxWidth:props.maxWidth});case PropertyType.CodeableConcept:return jsx39(CodeableConceptDisplay,{value});case PropertyType.Coding:return jsx39(CodingDisplay,{value});case PropertyType.ContactDetail:return jsx39(ContactDetailDisplay,{value});case PropertyType.ContactPoint:return jsx39(ContactPointDisplay,{value});case PropertyType.HumanName:return jsx39(HumanNameDisplay,{value});case PropertyType.Identifier:return jsx39(IdentifierDisplay,{value});case PropertyType.Money:return jsx39(MoneyDisplay,{value});case PropertyType.Period:return jsx39(Fragment21,{children:formatPeriod(value)});case PropertyType.Quantity:case PropertyType.Duration:return jsx39(QuantityDisplay,{value});case PropertyType.Range:return jsx39(RangeDisplay,{value});case PropertyType.Ratio:return jsx39(RatioDisplay,{value});case PropertyType.Reference:return jsx39(ReferenceDisplay,{value,link:props.link});case PropertyType.Timing:return jsx39(Fragment21,{children:formatTiming(value)});case PropertyType.Dosage:case PropertyType.UsageContext:if(!props.path)throw Error(`Displaying property of type ${props.propertyType} requires path`);return jsx39(BackboneElementDisplay,{path:props.path,value:{type:propertyType,value},compact:!0,ignoreMissingValues:props.ignoreMissingValues});case PropertyType.Extension:if(!props.path)throw Error(`Displaying property of type ${props.propertyType} requires path`);return jsx39(ExtensionDisplay,{path:props.path,value,compact:!0,ignoreMissingValues:props.ignoreMissingValues,elementDefinitionType:props.elementDefinitionType});default:if(!property)throw Error(`Displaying property of type ${props.propertyType} requires element schema`);if(!props.path)throw Error(`Displaying property of type ${props.propertyType} requires path`);return jsx39(BackboneElementDisplay,{path:props.path,value:{type:property.type[0].code,value},compact:!0,ignoreMissingValues:props.ignoreMissingValues})}}import{useContext as useContext5,useMemo as useMemo6}from"react";import{jsx as jsx40,jsxs as jsxs20}from"react/jsx-runtime";var EXTENSION_KEYS2=["extension","modifierExtension"],IGNORED_PROPERTIES2=DEFAULT_IGNORED_PROPERTIES.filter(prop=>!EXTENSION_KEYS2.includes(prop));function BackboneElementDisplay(props){let typedValue=props.value,{value,type:typeName}=typedValue,parentElementsContext=useContext5(ElementsContext),profileUrl=props.profileUrl??parentElementsContext?.profileUrl,typeSchema=useMemo6(()=>tryGetDataType(typeName,profileUrl),[profileUrl,typeName]),newElementsContext=useMemo6(()=>{if(typeSchema)return buildElementsContext2({parentContext:parentElementsContext,elements:typeSchema.elements,path:props.path,profileUrl:typeSchema.url,accessPolicyResource:props.accessPolicyResource})},[typeSchema,parentElementsContext,props.path,props.accessPolicyResource]);if(isEmpty2(value))return null;if(!typeSchema)return jsxs20("div",{children:[typeName,"\xA0not implemented"]});if(typeof value=="object"&&"name"in value&&Object.keys(value).length===1&&typeof value.name=="string")return jsx40("div",{children:value.name});let elementsContext=newElementsContext??parentElementsContext;return maybeWrapWithContext(ElementsContext.Provider,newElementsContext,jsx40(DescriptionList,{compact:props.compact,children:Object.entries(elementsContext.elements).map(([key,property])=>{if(EXTENSION_KEYS2.includes(key)&&isEmpty2(property.slicing?.slices))return null;if(IGNORED_PROPERTIES2.includes(key))return null;if(DEFAULT_IGNORED_NON_NESTED_PROPERTIES.includes(key)&&property.path.split(".").length===2||key.includes("."))return null;let[propertyValue,propertyType]=getValueAndType(typedValue,key,elementsContext.profileUrl);if((props.ignoreMissingValues||property.max===0)&&isEmpty2(propertyValue)||props.path.endsWith(".extension")&&(key==="url"||key==="id"))return null;let isArrayProperty=property.max>1||property.isArray,resourcePropertyDisplay=jsx40(ResourcePropertyDisplay,{property,propertyType,path:props.path+"."+key,value:propertyValue,ignoreMissingValues:props.ignoreMissingValues,includeArrayDescriptionListEntry:isArrayProperty,link:props.link},key);return isArrayProperty?resourcePropertyDisplay:jsx40(DescriptionListEntry,{term:getPathDisplayName3(key),children:resourcePropertyDisplay},key)})}))}import{buildElementsContext as buildElementsContext4,tryGetDataType as tryGetDataType2}from"@medplum/core";import{useContext as useContext22,useMemo as useMemo22,useState as useState33}from"react";import{Stack as Stack6}from"@mantine/core";import{getPathDisplayName as getPathDisplayName5}from"@medplum/core";import{useContext as useContext21,useMemo as useMemo21,useState as useState32}from"react";import{Group as Group8,Input}from"@mantine/core";import{useContext as useContext6}from"react";import{Tooltip as Tooltip2}from"@mantine/core";import{jsx as jsx41}from"react/jsx-runtime";var READ_ONLY_TOOLTIP_TEXT="Read Only";function maybeWrapWithTooltip(tooltipText,children){return tooltipText?jsx41(Tooltip2.Floating,{label:tooltipText,children}):children}var FormSection_default={dimmed:"FormSection_dimmed"};import{jsx as jsx42,jsxs as jsxs21}from"react/jsx-runtime";function CheckboxFormSection(props){let{debugMode}=useContext6(ElementsContext),label;return debugMode&&props.fhirPath?label=`${props.title} - ${props.fhirPath}`:label=props.title,maybeWrapWithTooltip(props?.readonly?READ_ONLY_TOOLTIP_TEXT:void 0,jsxs21(Group8,{wrap:"nowrap","data-testid":props.testId,children:[jsx42("div",{children:props.children}),jsx42("div",{children:jsx42(Input.Wrapper,{id:props.htmlFor,label,classNames:{label:props?.readonly?FormSection_default.dimmed:void 0},description:props.description,withAsterisk:props.withAsterisk,children:null})})]}))}import{Input as Input2}from"@mantine/core";import{useContext as useContext7}from"react";function getErrorsForInput(outcome,expression){return outcome?.issue?.filter(issue=>isExpressionMatch(issue.expression?.[0],expression))?.map(issue=>issue.details?.text)?.join(`
64
+ }`.replace(/\s+/g," ")}function getResourcesFromResponse(response,query){let resources=[];return response.data.Patients1&&resources.push(...response.data.Patients1),response.data.Patients2&&resources.push(...response.data.Patients2),response.data.ServiceRequestList&&resources.push(...response.data.ServiceRequestList),sortByRelevance(dedupeResources(resources),query).slice(0,5)}function dedupeResources(resources){let ids=new Set,result=[];for(let resource of resources)ids.has(resource.id)||(ids.add(resource.id),result.push(resource));return result}function sortByRelevance(resources,query){return resources.sort((a,b)=>getResourceScore(b,query)-getResourceScore(a,query))}function getResourceScore(resource,query){let bestScore=0;if(resource.identifier)for(let identifier of resource.identifier)bestScore=Math.max(bestScore,getStringScore(identifier.value,query));if(resource.resourceType==="Patient"&&resource.name)for(let name of resource.name)bestScore=Math.max(bestScore,getStringScore(formatHumanName2(name),query));return bestScore}function getStringScore(str,query){if(!str)return 0;let index=str.toLowerCase().indexOf(query.toLowerCase());return index<0?0:100-index}import{jsx as jsx12,jsxs as jsxs5}from"react/jsx-runtime";function Header(props){let profile=useMedplumProfile2(),[userMenuOpened,setUserMenuOpened]=useState4(!1);return jsx12(MantineAppShell.Header,{p:8,style:{zIndex:101},children:jsxs5(Group5,{justify:"space-between",children:[jsxs5(Group5,{gap:"xs",children:[jsx12(UnstyledButton,{className:Header_default.logoButton,onClick:props.navbarToggle,children:props.logo}),!props.headerSearchDisabled&&jsx12(HeaderSearchInput,{pathname:props.pathname,searchParams:props.searchParams})]}),jsxs5(Group5,{gap:"lg",pr:"sm",children:[props.notifications,jsxs5(Menu2,{width:260,shadow:"xl",position:"bottom-end",transitionProps:{transition:"pop-top-right"},opened:userMenuOpened,onClose:()=>setUserMenuOpened(!1),children:[jsx12(Menu2.Target,{children:jsx12(UnstyledButton,{className:clsx_default(Header_default.user,{[Header_default.userActive]:userMenuOpened}),onClick:()=>setUserMenuOpened(o=>!o),children:jsxs5(Group5,{gap:7,children:[jsx12(ResourceAvatar,{value:profile,radius:"xl",size:24}),jsx12(Text3,{size:"sm",className:Header_default.userName,children:formatHumanName3(profile?.name?.[0])}),jsx12(IconChevronDown,{size:12,stroke:1.5})]})})}),jsx12(Menu2.Dropdown,{children:jsx12(HeaderDropdown,{version:props.version})})]})]})]})})}import{Button as Button2,AppShell as MantineAppShell2,ScrollArea,Space,Text as Text5}from"@mantine/core";import{useMedplumNavigate as useMedplumNavigate3}from"@medplum/react-hooks";import{Fragment as Fragment4,useState as useState7}from"react";import{Button,Group as Group6,Modal,NativeSelect as NativeSelect2,Stack as Stack2,TextInput as TextInput3}from"@mantine/core";import{showNotification as showNotification2}from"@mantine/notifications";import{deepClone,normalizeErrorString as normalizeErrorString3}from"@medplum/core";import{useMedplum as useMedplum2}from"@medplum/react-hooks";function parseForm(form){let result={};for(let element of Array.from(form.elements))element instanceof HTMLInputElement?parseInputElement(result,element):element instanceof HTMLTextAreaElement?result[element.name]=element.value:element instanceof HTMLSelectElement&&parseSelectElement(result,element);return result}function parseInputElement(result,el){el.disabled||(el.type==="checkbox"||el.type==="radio")&&!el.checked||(result[el.name]=el.value)}function parseSelectElement(result,el){result[el.name]=el.value}import{jsx as jsx13}from"react/jsx-runtime";function Form(props){return jsx13("form",{style:props.style,"data-testid":props.testid,onSubmit:e=>{e.preventDefault();let formData=parseForm(e.target);props.onSubmit&&props.onSubmit(formData)},children:props.children})}import{jsx as jsx14,jsxs as jsxs6}from"react/jsx-runtime";function BookmarkDialog(props){let medplum=useMedplum2(),config=medplum.getUserConfiguration();function submitHandler(formData){let{menuname,bookmarkname:name}=formData,target=`${props.pathname}?${props.searchParams.toString()}`,newConfig=deepClone(config);newConfig.menu?.find(({title})=>title===menuname)?.link?.push({name,target}),medplum.updateResource(newConfig).then(res=>{config.menu=res.menu,medplum.dispatchEvent({type:"change"}),showNotification2({color:"green",message:"Success"}),props.onOk()}).catch(err=>{showNotification2({color:"red",message:normalizeErrorString3(err)})})}return jsx14(Modal,{title:"Add Bookmark",closeButtonProps:{"aria-label":"Close"},opened:props.visible,onClose:props.onCancel,children:jsx14(Form,{onSubmit:submitHandler,children:jsxs6(Stack2,{children:[jsx14(SelectMenu,{config}),jsx14(TextInput3,{label:"Bookmark Name",type:"text",name:"bookmarkname",placeholder:"Bookmark Name",withAsterisk:!0}),jsx14(Group6,{justify:"flex-end",children:jsx14(Button,{mt:"sm",type:"submit",children:"OK"})})]})})})}function SelectMenu(props){function userConfigToMenu(config){return config?.menu?.map(menu=>menu.title)}let menus=userConfigToMenu(props.config);return jsx14(NativeSelect2,{name:"menuname",defaultValue:menus[0],label:"Select Menu Option",data:menus,withAsterisk:!0})}import{useCallback as useCallback4,useState as useState6}from"react";import{useState as useState5}from"react";import{Group as Group7,Text as Text4}from"@mantine/core";import{useMedplum as useMedplum3}from"@medplum/react-hooks";import{forwardRef as forwardRef3,useCallback as useCallback3}from"react";import{jsx as jsx15,jsxs as jsxs7}from"react/jsx-runtime";function toKey(element){return typeof element.code=="string"?element.code:JSON.stringify(element)}function getDisplay(item){return typeof item.display=="string"?item.display:toKey(item)}function toOption2(element){return{value:toKey(element),label:getDisplay(element),resource:element}}function createValue(input){return{code:input,display:input}}function ValueSetAutocomplete(props){let medplum=useMedplum3(),{binding,creatable,clearable,expandParams,withHelpText,...rest}=props,loadValues=useCallback3(async(input,signal)=>{if(!binding)return[];let valueSetElements=(await medplum.valueSetExpand({...expandParams,url:binding,filter:input},{signal})).expansion?.contains??[],newData=[];for(let valueSetElement of valueSetElements)valueSetElement.code&&!newData.some(item=>item.code===valueSetElement.code)&&newData.push(valueSetElement);return newData},[medplum,expandParams,binding]);return jsx15(AsyncAutocomplete,{...rest,creatable:creatable??!0,clearable:clearable??!0,toOption:toOption2,loadOptions:loadValues,onCreate:createValue,itemComponent:withHelpText?ItemComponent2:void 0})}var ItemComponent2=forwardRef3(({label,resource,active,...others},ref)=>jsx15("div",{ref,...others,children:jsxs7(Group7,{wrap:"nowrap",gap:"xs",children:[active&&jsx15(IconCheck,{size:12}),jsxs7("div",{children:[jsx15(Text4,{children:label}),jsx15(Text4,{size:"xs",c:"dimmed",children:`${resource.system}#${resource.code}`})]})]})}));import{jsx as jsx16}from"react/jsx-runtime";function CodeInput(props){let{defaultValue:defaultValue2,onChange,withHelpText,...rest}=props,[value,setValue]=useState5(defaultValue2);function handleChange(newValues){let newValue=newValues[0],newCode=valueSetElementToCode(newValue);setValue(newCode),onChange&&onChange(newCode)}return jsx16(ValueSetAutocomplete,{defaultValue:codeToValueSetElement(value),onChange:handleChange,withHelpText:withHelpText??!0,...rest})}function codeToValueSetElement(code){return code?{code}:void 0}function valueSetElementToCode(element){return element?.code}import{jsx as jsx17}from"react/jsx-runtime";function ResourceTypeInput(props){let[resourceType,setResourceType]=useState6(props.defaultValue),onChange=props.onChange,setResourceTypeWrapper=useCallback4(newResourceType=>{setResourceType(newResourceType),onChange&&onChange(newResourceType)},[onChange]);return jsx17(CodeInput,{disabled:props.disabled,"data-autofocus":props.autoFocus,"data-testid":props.testId,defaultValue:resourceType,onChange:setResourceTypeWrapper,name:props.name,placeholder:props.placeholder,binding:"https://medplum.com/fhir/ValueSet/resource-types",creatable:!1,maxValues:props.maxValues??1,clearable:!1,withHelpText:!1})}var Navbar_default={menuTitle:"Navbar_menuTitle",link:"Navbar_link",linkActive:"Navbar_linkActive"};import{Fragment as Fragment5,jsx as jsx18,jsxs as jsxs8}from"react/jsx-runtime";function Navbar(props){let navigate=useMedplumNavigate3(),activeLink=getActiveLink(props.pathname,props.searchParams,props.menus),[bookmarkDialogVisible,setBookmarkDialogVisible]=useState7(!1);function onLinkClick(e,to){e.stopPropagation(),e.preventDefault(),navigate(to),window.innerWidth<768&&props.closeNavbar()}function navigateResourceType(resourceType){resourceType&&navigate(`/${resourceType}`)}return jsxs8(Fragment5,{children:[jsx18(MantineAppShell2.Navbar,{children:jsxs8(ScrollArea,{p:"xs",children:[!props.resourceTypeSearchDisabled&&jsx18(MantineAppShell2.Section,{mb:"sm",children:jsx18(ResourceTypeInput,{name:"resourceType",placeholder:"Resource Type",maxValues:0,onChange:newValue=>navigateResourceType(newValue)},window.location.pathname)}),jsxs8(MantineAppShell2.Section,{grow:!0,children:[props.menus?.map(menu=>jsxs8(Fragment4,{children:[jsx18(Text5,{className:Navbar_default.menuTitle,children:menu.title}),menu.links?.map(link=>jsxs8(NavbarLink,{to:link.href,active:link.href===activeLink?.href,onClick:e=>onLinkClick(e,link.href),children:[jsx18(NavLinkIcon,{to:link.href,icon:link.icon}),jsx18("span",{children:link.label})]},link.href))]},`menu-${menu.title}`)),props.displayAddBookmark&&jsx18(Button2,{variant:"subtle",size:"xs",mt:"xl",leftSection:jsx18(IconPlus,{size:"0.75rem"}),onClick:()=>setBookmarkDialogVisible(!0),children:"Add Bookmark"})]})]})}),props.pathname&&props.searchParams&&jsx18(BookmarkDialog,{pathname:props.pathname,searchParams:props.searchParams,visible:bookmarkDialogVisible,onOk:()=>setBookmarkDialogVisible(!1),onCancel:()=>setBookmarkDialogVisible(!1)})]})}function NavbarLink(props){return jsx18(MedplumLink,{onClick:props.onClick,to:props.to,className:clsx_default(Navbar_default.link,{[Navbar_default.linkActive]:props.active}),children:props.children})}function NavLinkIcon(props){return props.icon?props.icon:jsx18(Space,{w:30})}function getActiveLink(currentPathname,currentSearchParams,menus){if(!currentPathname||!currentSearchParams||!menus)return;let bestLink,bestScore=0;for(let menu of menus)if(menu.links)for(let link of menu.links){let score=getLinkScore(currentPathname,currentSearchParams,link.href);score>bestScore&&(bestScore=score,bestLink=link)}return bestLink}function getLinkScore(currentPathname,currentSearchParams,linkHref){let linkUrl=new URL(linkHref,"https://example.com");if(currentPathname!==linkUrl.pathname)return 0;let ignoredParams=["_count","_offset"];for(let[key,value]of linkUrl.searchParams.entries())if(!ignoredParams.includes(key)&&currentSearchParams.get(key)!==value)return 0;let count=1;for(let[key,value]of currentSearchParams.entries())ignoredParams.includes(key)||linkUrl.searchParams.get(key)===value&&count++;return count}import{jsx as jsx19,jsxs as jsxs9}from"react/jsx-runtime";function AppShell(props){let[navbarOpen,setNavbarOpen]=useState8(localStorage.navbarOpen==="true"),medplum=useMedplum4(),profile=useMedplumProfile3();useEffect2(()=>{function eventListener(){showNotification3({id:"offline",color:"red",message:"No connection to server",autoClose:!1})}return medplum.addEventListener("offline",eventListener),()=>medplum.removeEventListener("offline",eventListener)},[medplum]);function setNavbarOpenWrapper(open){localStorage.navbarOpen=open.toString(),setNavbarOpen(open)}function closeNavbar(){setNavbarOpenWrapper(!1)}function toggleNavbar(){setNavbarOpenWrapper(!navbarOpen)}return medplum.isLoading()?jsx19(Loading,{}):jsxs9(MantineAppShell3,{header:{height:60},navbar:{width:250,breakpoint:"sm",collapsed:{desktop:!profile||!navbarOpen,mobile:!profile||!navbarOpen}},padding:0,children:[profile&&jsx19(Header,{pathname:props.pathname,searchParams:props.searchParams,headerSearchDisabled:props.headerSearchDisabled,logo:props.logo,version:props.version,navbarToggle:toggleNavbar,notifications:props.notifications}),profile&&navbarOpen?jsx19(Navbar,{pathname:props.pathname,searchParams:props.searchParams,menus:props.menus,closeNavbar,displayAddBookmark:props.displayAddBookmark,resourceTypeSearchDisabled:props.resourceTypeSearchDisabled}):void 0,jsx19(MantineAppShell3.Main,{className:AppShell_default.main,children:jsx19(ErrorBoundary,{children:jsx19(Suspense,{fallback:jsx19(Loading,{}),children:props.children})})})]})}import{Anchor as Anchor2}from"@mantine/core";import{useCachedBinaryUrl as useCachedBinaryUrl2}from"@medplum/react-hooks";import{jsx as jsx20,jsxs as jsxs10}from"react/jsx-runtime";function AttachmentDisplay(props){let{contentType,url:uncachedUrl,title}=props.value??{},url=useCachedBinaryUrl2(uncachedUrl);return url?jsxs10("div",{"data-testid":"attachment-display",children:[contentType?.startsWith("image/")&&jsx20("img",{"data-testid":"attachment-image",style:{maxWidth:props.maxWidth},src:url,alt:title}),contentType?.startsWith("video/")&&jsx20("video",{"data-testid":"attachment-video",style:{maxWidth:props.maxWidth},controls:!0,children:jsx20("source",{type:contentType,src:url})}),(contentType?.startsWith("text/")||contentType==="application/json"||contentType==="application/pdf")&&jsx20("div",{"data-testid":"attachment-iframe",style:{maxWidth:props.maxWidth,minHeight:400},children:jsx20("iframe",{width:"100%",height:"400",src:url+"#navpanes=0",allowFullScreen:!0,frameBorder:0,seamless:!0})}),jsx20("div",{"data-testid":"download-link",style:{padding:"2px 16px 16px 16px"},children:jsx20(Anchor2,{href:uncachedUrl,"data-testid":"attachment-details",target:"_blank",rel:"noopener noreferrer",download:getDownloadName(title),children:title||"Download"})})]}):null}function getDownloadName(title){return title?.includes(".")?title:void 0}var DescriptionList_default={root:"DescriptionList_root",compact:"DescriptionList_compact"};import{Fragment as Fragment6,jsx as jsx21,jsxs as jsxs11}from"react/jsx-runtime";function DescriptionList(props){let{children,compact}=props;return jsx21("dl",{className:clsx_default(DescriptionList_default.root,{[DescriptionList_default.compact]:compact}),children})}function DescriptionListEntry(props){return jsxs11(Fragment6,{children:[jsx21("dt",{children:props.term}),jsx21("dd",{children:props.children})]})}import{getPathDisplayName,isPopulated as isPopulated2}from"@medplum/core";import{Fragment as Fragment7,jsx as jsx22}from"react/jsx-runtime";function AttachmentArrayDisplay(props){let attachmentElements=props.values?.map((v,index)=>jsx22("div",{children:jsx22(AttachmentDisplay,{value:v,maxWidth:props.maxWidth})},"attatchment-"+index)),content;if(props.includeDescriptionListEntry){if(props.property===void 0)throw new Error("props.property is required when includeDescriptionListEntry is true");if(!isPopulated2(props.path))throw new Error("props.path is required when includeDescriptionListEntry is true");let key=props.path.split(".").pop();content=jsx22(DescriptionListEntry,{term:getPathDisplayName(key),children:attachmentElements})}else content=jsx22(Fragment7,{children:attachmentElements});return content}import{ActionIcon}from"@mantine/core";import{useRef as useRef4,useState as useState9}from"react";import{normalizeOperationOutcome}from"@medplum/core";import{useMedplum as useMedplum5}from"@medplum/react-hooks";import{useRef as useRef3}from"react";import{Fragment as Fragment8,jsx as jsx23,jsxs as jsxs12}from"react/jsx-runtime";function AttachmentButton(props){let medplum=useMedplum5(),fileInputRef=useRef3(null);function onClick(e){killEvent(e),fileInputRef.current?.click()}function onFileChange(e){killEvent(e);let files=e.target.files;files&&Array.from(files).forEach(processFile)}function processFile(file){!file||!file.name||(props.onUploadStart&&props.onUploadStart(),medplum.createAttachment({data:file,contentType:file.type||"application/octet-stream",filename:file.name,securityContext:props.securityContext,onProgress:props.onUploadProgress}).then(attachment=>props.onUpload(attachment)).catch(err=>{props.onUploadError&&props.onUploadError(normalizeOperationOutcome(err))}))}return jsxs12(Fragment8,{children:[jsx23("input",{disabled:props.disabled,type:"file","data-testid":"upload-file-input",style:{display:"none"},ref:fileInputRef,onChange:e=>onFileChange(e)}),props.children({onClick,disabled:props.disabled})]})}import{jsx as jsx24,jsxs as jsxs13}from"react/jsx-runtime";function AttachmentArrayInput(props){let[values,setValues]=useState9(props.defaultValue??[]),valuesRef=useRef4();valuesRef.current=values;function setValuesWrapper(newValues){setValues(newValues),props.onChange&&props.onChange(newValues)}return jsxs13("table",{style:{width:"100%"},children:[jsxs13("colgroup",{children:[jsx24("col",{width:"97%"}),jsx24("col",{width:"3%"})]}),jsxs13("tbody",{children:[values.map((v,index)=>jsxs13("tr",{children:[jsx24("td",{children:jsx24(AttachmentDisplay,{value:v,maxWidth:200})}),jsx24("td",{children:jsx24(ActionIcon,{disabled:props.disabled,title:"Remove",variant:"subtle",size:"sm",color:"gray",onClick:e=>{killEvent(e);let copy=values.slice();copy.splice(index,1),setValuesWrapper(copy)},children:jsx24(IconCircleMinus,{})})})]},`${index}-${values.length}`)),jsxs13("tr",{children:[jsx24("td",{}),jsx24("td",{children:jsx24(AttachmentButton,{disabled:props.disabled,onUpload:attachment=>{setValuesWrapper([...valuesRef.current,attachment])},children:props2=>jsx24(ActionIcon,{...props2,title:"Add",variant:"subtle",size:"sm",color:props2.disabled?"gray":"green",children:jsx24(IconCloudUpload,{})})})})]})]})]})}import{Button as Button3}from"@mantine/core";import{useState as useState10}from"react";import{Fragment as Fragment9,jsx as jsx25,jsxs as jsxs14}from"react/jsx-runtime";function AttachmentInput(props){let[value,setValue]=useState10(props.defaultValue);function setValueWrapper(newValue){setValue(newValue),props.onChange&&props.onChange(newValue)}return value?jsxs14(Fragment9,{children:[jsx25(AttachmentDisplay,{value,maxWidth:200}),jsx25(Button3,{disabled:props.disabled,onClick:e=>{killEvent(e),setValueWrapper(void 0)},children:"Remove"})]}):jsx25(AttachmentButton,{disabled:props.disabled,securityContext:props.securityContext,onUpload:setValueWrapper,children:props2=>jsx25(Button3,{...props2,children:"Upload..."})})}import{buildElementsContext as buildElementsContext2,getPathDisplayName as getPathDisplayName3,isEmpty as isEmpty2,tryGetDataType}from"@medplum/core";import{ActionIcon as ActionIcon2,Box,CopyButton,Tooltip}from"@mantine/core";import{PropertyType,formatDateTime,formatPeriod,formatTiming,isEmpty}from"@medplum/core";import{formatCodeableConcept}from"@medplum/core";import{Fragment as Fragment10,jsx as jsx26}from"react/jsx-runtime";function CodeableConceptDisplay(props){return jsx26(Fragment10,{children:formatCodeableConcept(props.value)})}import{formatCoding}from"@medplum/core";import{Fragment as Fragment11,jsx as jsx27}from"react/jsx-runtime";function CodingDisplay(props){return jsx27(Fragment11,{children:formatCoding(props.value)})}import{Fragment as Fragment12,jsx as jsx28}from"react/jsx-runtime";function ContactPointDisplay(props){let contactPoint=props.value;if(!contactPoint)return null;let builder=[];return contactPoint.value&&builder.push(contactPoint.value),(contactPoint.use||contactPoint.system)&&(builder.push(" ["),contactPoint.use&&builder.push(contactPoint.use),contactPoint.use&&contactPoint.system&&builder.push(" "),contactPoint.system&&builder.push(contactPoint.system),builder.push("]")),jsx28(Fragment12,{children:builder.join("").trim()})}import{Fragment as Fragment13,jsx as jsx29,jsxs as jsxs15}from"react/jsx-runtime";function ContactDetailDisplay(props){let contactDetail=props.value;return contactDetail?jsxs15(Fragment13,{children:[contactDetail.name,contactDetail.name&&": ",contactDetail.telecom?.map(telecom=>jsx29(ContactPointDisplay,{value:telecom},`telecom-${contactDetail.name}-${telecom.value}`))]}):null}import{jsxs as jsxs16}from"react/jsx-runtime";function IdentifierDisplay(props){return jsxs16("div",{children:[props.value?.system,": ",props.value?.value]})}import{formatMoney}from"@medplum/core";import{Fragment as Fragment14,jsx as jsx30}from"react/jsx-runtime";function MoneyDisplay(props){return jsx30(Fragment14,{children:formatMoney(props.value)})}import{formatQuantity}from"@medplum/core";import{Fragment as Fragment15,jsx as jsx31}from"react/jsx-runtime";function QuantityDisplay(props){return jsx31(Fragment15,{children:formatQuantity(props.value)})}import{formatRange}from"@medplum/core";import{Fragment as Fragment16,jsx as jsx32}from"react/jsx-runtime";function RangeDisplay(props){return jsx32(Fragment16,{children:formatRange(props.value)})}import{Fragment as Fragment17,jsx as jsx33,jsxs as jsxs17}from"react/jsx-runtime";function RatioDisplay(props){let value=props.value;return value?jsxs17(Fragment17,{children:[jsx33(QuantityDisplay,{value:value.numerator}),"\xA0/\xA0",jsx33(QuantityDisplay,{value:value.denominator})]}):null}import{stringify}from"@medplum/core";import{Fragment as Fragment18,jsx as jsx34}from"react/jsx-runtime";function ReferenceDisplay(props){if(!props.value)return null;let displayString=props.value.display||props.value.reference||stringify(props.value);return props.link!==!1&&props.value.reference?jsx34(MedplumLink,{to:props.value,children:displayString}):jsx34(Fragment18,{children:displayString})}import{getPathDisplayName as getPathDisplayName2,isPopulated as isPopulated5}from"@medplum/core";import{useState as useState11,useContext as useContext3,useEffect as useEffect3,useMemo as useMemo4}from"react";import{getValueSliceName,isPopulated as isPopulated3,isSliceDefinitionWithTypes,tryGetProfile}from"@medplum/core";function assignValuesIntoSlices(values,slices,slicing,profileUrl){if(!isPopulated3(slicing?.slices))return[values];let slicedValues=new Array(slices.length+1);for(let i=0;i<slicedValues.length;i++)slicedValues[i]=[];for(let value of values){let sliceName=getValueSliceName(value,slices,slicing.discriminator,profileUrl),sliceIndex=sliceName?slices.findIndex(slice=>slice.name===sliceName):-1;sliceIndex===-1&&(sliceIndex=slices.length),slicedValues[sliceIndex].push(value)}return slicedValues}async function prepareSlices({medplum,property}){return new Promise((resolve,reject)=>{if(!property.slicing){resolve([]);return}let supportedSlices=[],profileUrls=[],promises=[];for(let slice of property.slicing.slices){if(!isSliceDefinitionWithTypes(slice)){console.debug("Unsupported slice definition",slice);continue}let profileUrl;isPopulated3(slice.elements)||(profileUrl=slice.type[0]?.profile?.[0]),supportedSlices.push(slice),profileUrls.push(profileUrl),profileUrl&&promises.push(medplum.requestProfileSchema(profileUrl))}Promise.all(promises).then(()=>{for(let i=0;i<supportedSlices.length;i++){let slice=supportedSlices[i],profileUrl=profileUrls[i];if(profileUrl){let typeSchema=tryGetProfile(profileUrl);slice.typeSchema=typeSchema}}resolve(supportedSlices)}).catch(reject)})}import{useMedplum as useMedplum6}from"@medplum/react-hooks";import{buildElementsContext,isPopulated as isPopulated4}from"@medplum/core";import{useContext as useContext2,useMemo as useMemo3}from"react";import{jsx as jsx35}from"react/jsx-runtime";function maybeWrapWithContext(ContextProvider,contextValue,contents){return contextValue!==void 0?jsx35(ContextProvider,{value:contextValue,children:contents}):contents}import{Fragment as Fragment19,jsx as jsx36}from"react/jsx-runtime";function SliceDisplay(props){let{slice,property}=props,sliceElements=slice.typeSchema?.elements??slice.elements,parentContext=useContext2(ElementsContext),contextValue=useMemo3(()=>{if(isPopulated4(sliceElements))return buildElementsContext({parentContext,elements:sliceElements,path:props.path,profileUrl:slice.typeSchema?.url})},[parentContext,props.path,slice.typeSchema?.url,sliceElements]);return maybeWrapWithContext(ElementsContext.Provider,contextValue,jsx36(Fragment19,{children:props.value.map((value,valueIndex)=>jsx36("div",{children:jsx36(ResourcePropertyDisplay,{property,path:props.path,arrayElement:!0,elementDefinitionType:slice.type[0],propertyType:slice.type[0].code,value,ignoreMissingValues:props.ignoreMissingValues,link:props.link})},`${valueIndex}-${props.value.length}`))}))}import{Fragment as Fragment20,jsx as jsx37,jsxs as jsxs18}from"react/jsx-runtime";function ResourceArrayDisplay(props){let{property,propertyType}=props,medplum=useMedplum6(),values=useMemo4(()=>Array.isArray(props.values)?props.values:[],[props.values]),[loading,setLoading]=useState11(!0),[slices,setSlices]=useState11([]),[slicedValues,setSlicedValues]=useState11(()=>[values]),ctx=useContext3(ElementsContext);if(useEffect3(()=>{prepareSlices({medplum,property}).then(slices2=>{setSlices(slices2);let slicedValues2=assignValuesIntoSlices(values,slices2,property.slicing,ctx.profileUrl);setSlicedValues(slicedValues2),setLoading(!1)}).catch(reason=>{console.error(reason),setLoading(!1)})},[medplum,property,ctx.profileUrl,setSlicedValues,values]),loading)return jsx37("div",{children:"Loading..."});let nonSliceContent;if(property.type[0]?.code!=="Extension"){let nonSliceValues=slicedValues[slices.length],nonSliceElements=nonSliceValues.map((value,valueIndex)=>jsx37("div",{children:jsx37(ResourcePropertyDisplay,{path:props.path,arrayElement:!0,property,propertyType,value,ignoreMissingValues:props.ignoreMissingValues,link:props.link})},`${valueIndex}-${nonSliceValues.length}`));if(props.includeDescriptionListEntry){if(!isPopulated5(props.path))throw new Error("props.path is required when includeDescriptionListEntry is true");let key=props.path.split(".").pop();nonSliceContent=jsx37(DescriptionListEntry,{term:getPathDisplayName2(key),children:nonSliceElements})}else nonSliceContent=jsx37(Fragment20,{children:nonSliceElements})}return jsxs18(Fragment20,{children:[slices.map((slice,sliceIndex)=>{if(!props.path)throw Error(`Displaying a resource property with slices of type ${props.propertyType} requires path`);let sliceDisplay=jsx37(SliceDisplay,{path:props.path,slice,property,value:slicedValues[sliceIndex],ignoreMissingValues:props.ignoreMissingValues,link:props.link},slice.name);return props.includeDescriptionListEntry&&(sliceDisplay=jsx37(DescriptionListEntry,{term:getPathDisplayName2(slice.name),children:sliceDisplay},slice.name)),sliceDisplay}),nonSliceContent]})}import{getDataType,isPopulated as isPopulated6,isProfileLoaded,tryGetProfile as tryGetProfile2}from"@medplum/core";import{useMedplum as useMedplum7}from"@medplum/react-hooks";import{useContext as useContext4,useEffect as useEffect4,useMemo as useMemo5,useState as useState12}from"react";import{getTypedPropertyValue,getTypedPropertyValueWithSchema}from"@medplum/core";function getValueAndType(context,path,profileUrl){let typedResult=getTypedPropertyValue(context,path,{profileUrl});return typedResult?Array.isArray(typedResult)?[typedResult.map(e=>e.value),typedResult[0].type]:[typedResult.value,typedResult.type]:[void 0,"undefined"]}function getValueAndTypeFromElement(typedValue,path,element){let typedResult=getTypedPropertyValueWithSchema(typedValue,path,element);return typedResult?Array.isArray(typedResult)?[typedResult.map(e=>e.value),typedResult[0].type]:[typedResult.value,typedResult.type]:[void 0,"undefined"]}import{jsx as jsx38}from"react/jsx-runtime";function ExtensionDisplay(props){let{elementDefinitionType}=props,medplum=useMedplum7(),ctx=useContext4(ElementsContext),[typeSchema,setTypeSchema]=useState12(getDataType("Extension")),profileUrl=useMemo5(()=>{if(isPopulated6(elementDefinitionType?.profile))return elementDefinitionType.profile[0]},[elementDefinitionType]),[loadingProfile,setLoadingProfile]=useState12(profileUrl!==void 0);if(useEffect4(()=>{profileUrl&&(setLoadingProfile(!0),medplum.requestProfileSchema(profileUrl).then(()=>{let profile=tryGetProfile2(profileUrl);setLoadingProfile(!1),profile&&setTypeSchema(profile)}).catch(reason=>{setLoadingProfile(!1),console.warn(reason)}))},[medplum,profileUrl]),profileUrl&&(loadingProfile||!isProfileLoaded(profileUrl)))return jsx38("div",{children:"Loading..."});if(typeSchema.elements["value[x]"]?.max!==0){let[propertyValue,propertyType]=getValueAndType({type:"Extension",value:props.value},"value[x]",profileUrl??ctx.profileUrl);return jsx38(ResourcePropertyDisplay,{propertyType,value:propertyValue})}return jsx38(BackboneElementDisplay,{path:props.path,value:{type:typeSchema.type,value:props.value},compact:props.compact,ignoreMissingValues:props.ignoreMissingValues,link:props.link,profileUrl})}import{Fragment as Fragment21,jsx as jsx39,jsxs as jsxs19}from"react/jsx-runtime";function ResourcePropertyDisplay(props){let{property,propertyType,value}=props;if(property?.path?.endsWith(".id"))return jsxs19(Box,{component:"div",style:{display:"flex",gap:3,alignItems:"center"},children:[value,!isEmpty(value)&&jsx39(CopyButton,{value,timeout:2e3,children:({copied,copy})=>jsx39(Tooltip,{label:copied?"Copied":"Copy",withArrow:!0,position:"right",children:jsx39(ActionIcon2,{variant:"subtle",color:copied?"teal":"gray",onClick:copy,children:copied?jsx39(IconCheck,{size:"1rem"}):jsx39(IconCopy,{size:"1rem"})})})})]});if(property&&(property.isArray||property.max>1)&&!props.arrayElement)return propertyType===PropertyType.Attachment?jsx39(AttachmentArrayDisplay,{values:value,maxWidth:props.maxWidth,includeDescriptionListEntry:props.includeArrayDescriptionListEntry,property,path:props.path}):jsx39(ResourceArrayDisplay,{path:props.path,property,propertyType,values:value,includeDescriptionListEntry:props.includeArrayDescriptionListEntry,ignoreMissingValues:props.ignoreMissingValues,link:props.link});switch(propertyType){case PropertyType.boolean:return jsx39(Fragment21,{children:value===void 0?"":(!!value).toString()});case PropertyType.SystemString:case PropertyType.string:return jsx39("div",{style:{whiteSpace:"pre-wrap"},children:value});case PropertyType.code:case PropertyType.date:case PropertyType.decimal:case PropertyType.id:case PropertyType.integer:case PropertyType.positiveInt:case PropertyType.unsignedInt:case PropertyType.uri:case PropertyType.url:return jsx39(Fragment21,{children:value});case PropertyType.canonical:return jsx39(ReferenceDisplay,{value:{reference:value},link:props.link});case PropertyType.dateTime:case PropertyType.instant:return jsx39(Fragment21,{children:formatDateTime(value)});case PropertyType.markdown:return jsx39("pre",{children:value});case PropertyType.Address:return jsx39(AddressDisplay,{value});case PropertyType.Annotation:return jsx39(Fragment21,{children:value?.text});case PropertyType.Attachment:return jsx39(AttachmentDisplay,{value,maxWidth:props.maxWidth});case PropertyType.CodeableConcept:return jsx39(CodeableConceptDisplay,{value});case PropertyType.Coding:return jsx39(CodingDisplay,{value});case PropertyType.ContactDetail:return jsx39(ContactDetailDisplay,{value});case PropertyType.ContactPoint:return jsx39(ContactPointDisplay,{value});case PropertyType.HumanName:return jsx39(HumanNameDisplay,{value});case PropertyType.Identifier:return jsx39(IdentifierDisplay,{value});case PropertyType.Money:return jsx39(MoneyDisplay,{value});case PropertyType.Period:return jsx39(Fragment21,{children:formatPeriod(value)});case PropertyType.Quantity:case PropertyType.Duration:return jsx39(QuantityDisplay,{value});case PropertyType.Range:return jsx39(RangeDisplay,{value});case PropertyType.Ratio:return jsx39(RatioDisplay,{value});case PropertyType.Reference:return jsx39(ReferenceDisplay,{value,link:props.link});case PropertyType.Timing:return jsx39(Fragment21,{children:formatTiming(value)});case PropertyType.Dosage:case PropertyType.UsageContext:if(!props.path)throw Error(`Displaying property of type ${props.propertyType} requires path`);return jsx39(BackboneElementDisplay,{path:props.path,value:{type:propertyType,value},compact:!0,ignoreMissingValues:props.ignoreMissingValues});case PropertyType.Extension:if(!props.path)throw Error(`Displaying property of type ${props.propertyType} requires path`);return jsx39(ExtensionDisplay,{path:props.path,value,compact:!0,ignoreMissingValues:props.ignoreMissingValues,elementDefinitionType:props.elementDefinitionType});default:if(!property)throw Error(`Displaying property of type ${props.propertyType} requires element schema`);if(!props.path)throw Error(`Displaying property of type ${props.propertyType} requires path`);return jsx39(BackboneElementDisplay,{path:props.path,value:{type:property.type[0].code,value},compact:!0,ignoreMissingValues:props.ignoreMissingValues})}}import{useContext as useContext5,useMemo as useMemo6}from"react";import{jsx as jsx40,jsxs as jsxs20}from"react/jsx-runtime";var EXTENSION_KEYS2=["extension","modifierExtension"],IGNORED_PROPERTIES2=DEFAULT_IGNORED_PROPERTIES.filter(prop=>!EXTENSION_KEYS2.includes(prop));function BackboneElementDisplay(props){let typedValue=props.value,{value,type:typeName}=typedValue,parentElementsContext=useContext5(ElementsContext),profileUrl=props.profileUrl??parentElementsContext?.profileUrl,typeSchema=useMemo6(()=>tryGetDataType(typeName,profileUrl),[profileUrl,typeName]),newElementsContext=useMemo6(()=>{if(typeSchema)return buildElementsContext2({parentContext:parentElementsContext,elements:typeSchema.elements,path:props.path,profileUrl:typeSchema.url,accessPolicyResource:props.accessPolicyResource})},[typeSchema,parentElementsContext,props.path,props.accessPolicyResource]);if(isEmpty2(value))return null;if(!typeSchema)return jsxs20("div",{children:[typeName,"\xA0not implemented"]});if(typeof value=="object"&&"name"in value&&Object.keys(value).length===1&&typeof value.name=="string")return jsx40("div",{children:value.name});let elementsContext=newElementsContext??parentElementsContext;return maybeWrapWithContext(ElementsContext.Provider,newElementsContext,jsx40(DescriptionList,{compact:props.compact,children:Object.entries(elementsContext.elements).map(([key,property])=>{if(EXTENSION_KEYS2.includes(key)&&isEmpty2(property.slicing?.slices))return null;if(IGNORED_PROPERTIES2.includes(key))return null;if(DEFAULT_IGNORED_NON_NESTED_PROPERTIES.includes(key)&&property.path.split(".").length===2||key.includes("."))return null;let[propertyValue,propertyType]=getValueAndType(typedValue,key,elementsContext.profileUrl);if((props.ignoreMissingValues||property.max===0)&&isEmpty2(propertyValue)||props.path.endsWith(".extension")&&(key==="url"||key==="id"))return null;let isArrayProperty=property.max>1||property.isArray,resourcePropertyDisplay=jsx40(ResourcePropertyDisplay,{property,propertyType,path:props.path+"."+key,value:propertyValue,ignoreMissingValues:props.ignoreMissingValues,includeArrayDescriptionListEntry:isArrayProperty,link:props.link},key);return isArrayProperty?resourcePropertyDisplay:jsx40(DescriptionListEntry,{term:getPathDisplayName3(key),children:resourcePropertyDisplay},key)})}))}import{buildElementsContext as buildElementsContext4,tryGetDataType as tryGetDataType2}from"@medplum/core";import{useContext as useContext22,useMemo as useMemo22,useState as useState33}from"react";import{Stack as Stack6}from"@mantine/core";import{getPathDisplayName as getPathDisplayName5}from"@medplum/core";import{useContext as useContext21,useMemo as useMemo21,useState as useState32}from"react";import{Group as Group8,Input}from"@mantine/core";import{useContext as useContext6}from"react";import{Tooltip as Tooltip2}from"@mantine/core";import{jsx as jsx41}from"react/jsx-runtime";var READ_ONLY_TOOLTIP_TEXT="Read Only";function maybeWrapWithTooltip(tooltipText,children){return tooltipText?jsx41(Tooltip2.Floating,{label:tooltipText,children}):children}var FormSection_default={dimmed:"FormSection_dimmed"};import{jsx as jsx42,jsxs as jsxs21}from"react/jsx-runtime";function CheckboxFormSection(props){let{debugMode}=useContext6(ElementsContext),label;return debugMode&&props.fhirPath?label=`${props.title} - ${props.fhirPath}`:label=props.title,maybeWrapWithTooltip(props?.readonly?READ_ONLY_TOOLTIP_TEXT:void 0,jsxs21(Group8,{wrap:"nowrap","data-testid":props.testId,children:[jsx42("div",{children:props.children}),jsx42("div",{children:jsx42(Input.Wrapper,{id:props.htmlFor,label,classNames:{label:props?.readonly?FormSection_default.dimmed:void 0},description:props.description,withAsterisk:props.withAsterisk,children:null})})]}))}import{Input as Input2}from"@mantine/core";import{useContext as useContext7}from"react";function getErrorsForInput(outcome,expression){return outcome?.issue?.filter(issue=>isExpressionMatch(issue.expression?.[0],expression))?.map(issue=>issue.details?.text)?.join(`
65
65
  `)}function getIssuesForExpression(outcome,expression){return outcome?.issue?.filter(issue=>isExpressionMatch(issue.expression?.[0],expression))}var ARRAY_INDEX_REGEX=/\[\d+\]/;function isExpressionMatch(expr1,expr2){let isExpr1Indexed=typeof expr1=="string"&&ARRAY_INDEX_REGEX.test(expr1),isExpr2Indexed=typeof expr2=="string"&&ARRAY_INDEX_REGEX.test(expr2);if(isExpr1Indexed!==isExpr2Indexed&&(expr1=expr1?.replace(ARRAY_INDEX_REGEX,""),expr2=expr2?.replace(ARRAY_INDEX_REGEX,"")),expr1===expr2)return!0;if(!expr1||!expr2)return!1;let dot1=expr1.indexOf(".");if(dot1>=0&&expr1.substring(dot1+1)===expr2)return!0;let dot2=expr2.indexOf(".");return dot2>=0&&expr2.substring(dot2+1)===expr1}import{jsx as jsx43}from"react/jsx-runtime";function FormSection(props){let{debugMode}=useContext7(ElementsContext),label;return debugMode&&props.fhirPath?label=`${props.title} - ${props.fhirPath}`:label=props.title,maybeWrapWithTooltip(props?.readonly?READ_ONLY_TOOLTIP_TEXT:void 0,jsx43(Input2.Wrapper,{id:props.htmlFor,label,classNames:{label:props?.readonly?FormSection_default.dimmed:void 0},description:props.description,withAsterisk:props.withAsterisk,error:getErrorsForInput(props.outcome,props.errorExpression??props.htmlFor),"data-testid":props.testId,children:props.children}))}import{capitalize,isEmpty as isEmpty3}from"@medplum/core";function setPropertyValue(obj,key,propName,elementDefinition,value){let types=elementDefinition.type;if(types.length>1)for(let type of types){let compoundKey=key.replace("[x]",capitalize(type.code));compoundKey in obj&&delete obj[compoundKey]}return obj[propName]=value,obj}function isSupportedProfileStructureDefinition(profile){return!!profile&&!isEmpty3(profile.url)&&!isEmpty3(profile.name)}import{Checkbox,Group as Group22,NativeSelect as NativeSelect9,Textarea as Textarea2,TextInput as TextInput12}from"@mantine/core";import{applyDefaultValuesToElement,capitalize as capitalize2,getPathDifference,HTTP_HL7_ORG,isComplexTypeCode,isEmpty as isEmpty6,isPopulated as isPopulated11,PropertyType as PropertyType2}from"@medplum/core";import{useContext as useContext20,useMemo as useMemo20,useState as useState31}from"react";import{useState as useState13}from"react";import{jsx as jsx44}from"react/jsx-runtime";function CodeableConceptInput(props){let{defaultValue:defaultValue2,onChange,withHelpText,outcome:_outcome,path:_path,valuePath:_valuePath,...rest}=props,[value,setValue]=useState13(defaultValue2);function handleChange(newValues){let newConcept=valueSetElementToCodeableConcept(newValues);setValue(newConcept),onChange&&onChange(newConcept)}return jsx44(ValueSetAutocomplete,{defaultValue:value&&codeableConceptToValueSetElement(value),onChange:handleChange,withHelpText:withHelpText??!0,...rest})}function codeableConceptToValueSetElement(concept){return concept.coding?.map(c=>({system:c.system,code:c.code,display:c.display}))}function valueSetElementToCodeableConcept(elements){if(elements.length!==0)return{coding:elements.map(e=>({system:e.system,code:e.code,display:e.display}))}}import{useState as useState14}from"react";import{jsx as jsx45}from"react/jsx-runtime";function CodingInput(props){let{defaultValue:defaultValue2,onChange,withHelpText,...rest}=props,[value,setValue]=useState14(defaultValue2);function handleChange(newValues){let newValue=newValues[0],newConcept=newValue&&valueSetElementToCoding(newValue);setValue(newConcept),onChange&&onChange(newConcept)}return jsx45(ValueSetAutocomplete,{defaultValue:value&&codingToValueSetElement(value),maxValues:1,onChange:handleChange,withHelpText:withHelpText??!0,...rest})}function codingToValueSetElement(coding){return{system:coding.system,code:coding.code,display:coding.display}}function valueSetElementToCoding(element){return{system:element.system,code:element.code,display:element.display}}import{Group as Group10,TextInput as TextInput5}from"@mantine/core";import{useContext as useContext9,useMemo as useMemo8,useRef as useRef6,useState as useState16}from"react";import{Group as Group9,NativeSelect as NativeSelect3,TextInput as TextInput4}from"@mantine/core";import{useContext as useContext8,useMemo as useMemo7,useRef as useRef5,useState as useState15}from"react";import{jsx as jsx46,jsxs as jsxs22}from"react/jsx-runtime";function ContactPointInput(props){let{path,outcome}=props,{elementsByPath,getExtendedProps}=useContext8(ElementsContext),[contactPoint,setContactPoint]=useState15(props.defaultValue),ref=useRef5();ref.current=contactPoint;let[systemElement,useElement,valueElement]=useMemo7(()=>["system","use","value"].map(field=>elementsByPath[path+"."+field]),[elementsByPath,path]),[systemProps,useProps,valueProps]=useMemo7(()=>["system","use","value"].map(field=>getExtendedProps(path+"."+field)),[getExtendedProps,path]);function setContactPointWrapper(newValue){newValue&&Object.keys(newValue).length===0&&(newValue=void 0),setContactPoint(newValue),props.onChange&&props.onChange(newValue)}function setSystem(system){let newValue={...ref.current,system};system||delete newValue.system,setContactPointWrapper(newValue)}function setUse(use){let newValue={...ref.current,use};use||delete newValue.use,setContactPointWrapper(newValue)}function setValue(value){let newValue={...ref.current,value};value||delete newValue.value,setContactPointWrapper(newValue)}let errorPath=props.valuePath??path;return jsxs22(Group9,{gap:"xs",grow:!0,wrap:"nowrap",align:"flex-start",children:[jsx46(NativeSelect3,{disabled:props.disabled||systemProps?.readonly,"data-testid":"system",defaultValue:contactPoint?.system,required:(systemElement?.min??0)>0,onChange:e=>setSystem(e.currentTarget.value),data:["","email","phone","fax","pager","sms","other"],error:getErrorsForInput(outcome,errorPath+".system")}),jsx46(NativeSelect3,{disabled:props.disabled||useProps?.readonly,"data-testid":"use",defaultValue:contactPoint?.use,required:(useElement?.min??0)>0,onChange:e=>setUse(e.currentTarget.value),data:["","home","work","temp","old","mobile"],error:getErrorsForInput(outcome,errorPath+".use")}),jsx46(TextInput4,{disabled:props.disabled||valueProps?.readonly,placeholder:"Value",defaultValue:contactPoint?.value,required:(valueElement?.min??0)>0,onChange:e=>setValue(e.currentTarget.value),error:getErrorsForInput(outcome,errorPath+".value")})]})}import{jsx as jsx47,jsxs as jsxs23}from"react/jsx-runtime";function ContactDetailInput(props){let[contactPoint,setContactDetail]=useState16(props.defaultValue),ref=useRef6();ref.current=contactPoint;let{getExtendedProps}=useContext9(ElementsContext),[nameProps,telecomProps]=useMemo8(()=>["name","telecom"].map(field=>getExtendedProps(props.path+"."+field)),[getExtendedProps,props.path]);function setContactDetailWrapper(newValue){setContactDetail(newValue),props.onChange&&props.onChange(newValue)}function setName(name){let newValue={...ref.current,name};name||delete newValue.name,setContactDetailWrapper(newValue)}function setTelecom(telecom){let newValue={...ref.current,telecom:telecom&&[telecom]};telecom||delete newValue.telecom,setContactDetailWrapper(newValue)}return jsxs23(Group10,{gap:"xs",grow:!0,wrap:"nowrap",children:[jsx47(TextInput5,{disabled:props.disabled||nameProps?.readonly,"data-testid":props.name+"-name",name:props.name+"-name",placeholder:"Name",style:{width:180},defaultValue:contactPoint?.name,onChange:e=>setName(e.currentTarget.value)}),jsx47(ContactPointInput,{disabled:props.disabled||telecomProps?.readonly,name:props.name+"-telecom",path:props.path+".telecom",defaultValue:contactPoint?.telecom?.[0],onChange:setTelecom,outcome:props.outcome})]})}import{TextInput as TextInput6}from"@mantine/core";import{isValidDate}from"@medplum/core";function convertIsoToLocal(isoString){if(!isoString)return"";let date=new Date(isoString);return isValidDate(date)?date.toLocaleDateString("sv")+"T"+date.toLocaleTimeString("sv"):""}function convertLocalToIso(localString){if(!localString)return"";let date=new Date(localString);return isValidDate(date)?date.toISOString():""}import{jsx as jsx48}from"react/jsx-runtime";function DateTimeInput(props){return jsx48(TextInput6,{id:props.name,name:props.name,label:props.label,"data-autofocus":props.autoFocus,"data-testid":props["data-testid"]??props.name,placeholder:props.placeholder,required:props.required,disabled:props.disabled,type:getInputType(),defaultValue:convertIsoToLocal(props.defaultValue),autoFocus:props.autoFocus,error:getErrorsForInput(props.outcome,props.name),onChange:e=>{if(props.onChange){let newValue=e.currentTarget.value;props.onChange(convertLocalToIso(newValue))}}})}function getInputType(){return"datetime-local"}import{isPopulated as isPopulated7,isProfileLoaded as isProfileLoaded2}from"@medplum/core";import{useMedplum as useMedplum8}from"@medplum/react-hooks";import{useEffect as useEffect5,useMemo as useMemo9,useState as useState17}from"react";import{jsx as jsx49}from"react/jsx-runtime";function ExtensionInput(props){let{propertyType}=props,medplum=useMedplum8(),profileUrl=useMemo9(()=>{if(isPopulated7(propertyType.profile))return propertyType.profile[0]},[propertyType]),[loadingProfile,setLoadingProfile]=useState17(profileUrl!==void 0);return useEffect5(()=>{profileUrl&&(setLoadingProfile(!0),medplum.requestProfileSchema(profileUrl).then(()=>setLoadingProfile(!1)).catch(reason=>{setLoadingProfile(!1),console.warn(reason)}))},[medplum,profileUrl]),profileUrl&&(loadingProfile||!isProfileLoaded2(profileUrl))?jsx49("div",{children:"Loading..."}):jsx49(BackboneElementInput,{profileUrl,path:props.path,typeName:"Extension",defaultValue:props.defaultValue,onChange:props.onChange})}import{Group as Group11,NativeSelect as NativeSelect4,TextInput as TextInput7}from"@mantine/core";import{useContext as useContext10,useMemo as useMemo10,useState as useState18}from"react";import{jsx as jsx50,jsxs as jsxs24}from"react/jsx-runtime";function HumanNameInput(props){let{outcome,path}=props,[value,setValue]=useState18(props.defaultValue),{getExtendedProps}=useContext10(ElementsContext),[useProps,prefixProps,givenProps,familyProps,suffixProps]=useMemo10(()=>["use","prefix","given","family","suffix"].map(field=>getExtendedProps(props.path+"."+field)),[getExtendedProps,props.path]);function setValueWrapper(newValue){setValue(newValue),props.onChange&&props.onChange(newValue)}function setUse(use){setValueWrapper({...value,use:use||void 0})}function setPrefix(prefix){setValueWrapper({...value,prefix:prefix?prefix.split(" "):void 0})}function setGiven(given){setValueWrapper({...value,given:given?given.split(" "):void 0})}function setFamily(family){setValueWrapper({...value,family:family||void 0})}function setSuffix(suffix){setValueWrapper({...value,suffix:suffix?suffix.split(" "):void 0})}let errorPath=props.valuePath??path;return jsxs24(Group11,{gap:"xs",grow:!0,wrap:"nowrap",children:[jsx50(NativeSelect4,{disabled:props.disabled||useProps?.readonly,defaultValue:value?.use,name:props.name+"-use","data-testid":"use",onChange:e=>setUse(e.currentTarget.value),data:["","temp","old","usual","official","nickname","anonymous","maiden"],error:getErrorsForInput(outcome,errorPath+".use")}),jsx50(TextInput7,{disabled:props.disabled||prefixProps?.readonly,placeholder:"Prefix",name:props.name+"-prefix",defaultValue:value?.prefix?.join(" "),onChange:e=>setPrefix(e.currentTarget.value),error:getErrorsForInput(outcome,errorPath+".prefix")}),jsx50(TextInput7,{disabled:props.disabled||givenProps?.readonly,placeholder:"Given",name:props.name+"-given",defaultValue:value?.given?.join(" "),onChange:e=>setGiven(e.currentTarget.value),error:getErrorsForInput(outcome,errorPath+".given")}),jsx50(TextInput7,{disabled:props.disabled||familyProps?.readonly,name:props.name+"-family",placeholder:"Family",defaultValue:value?.family,onChange:e=>setFamily(e.currentTarget.value),error:getErrorsForInput(outcome,errorPath+".family")}),jsx50(TextInput7,{disabled:props.disabled||suffixProps?.readonly,placeholder:"Suffix",name:props.name+"-suffix",defaultValue:value?.suffix?.join(" "),onChange:e=>setSuffix(e.currentTarget.value),error:getErrorsForInput(outcome,errorPath+".suffix")})]})}import{Group as Group12,TextInput as TextInput8}from"@mantine/core";import{useContext as useContext11,useMemo as useMemo11,useState as useState19}from"react";import{jsx as jsx51,jsxs as jsxs25}from"react/jsx-runtime";function IdentifierInput(props){let[value,setValue]=useState19(props.defaultValue),{elementsByPath,getExtendedProps}=useContext11(ElementsContext),[systemElement,valueElement]=useMemo11(()=>["system","value"].map(field=>elementsByPath[props.path+"."+field]),[elementsByPath,props.path]),[systemProps,valueProps]=useMemo11(()=>["system","value"].map(field=>getExtendedProps(props.path+"."+field)),[getExtendedProps,props.path]);function setValueWrapper(newValue){setValue(newValue),props.onChange&&props.onChange(newValue)}let errorPath=props.valuePath??props.path;return jsxs25(Group12,{gap:"xs",grow:!0,wrap:"nowrap",align:"flex-start",children:[jsx51(TextInput8,{disabled:props.disabled||systemProps?.readonly,placeholder:"System",required:(systemElement?.min??0)>0,defaultValue:value?.system,onChange:e=>setValueWrapper({...value,system:e.currentTarget.value}),error:getErrorsForInput(props.outcome,errorPath+".system")}),jsx51(TextInput8,{disabled:props.disabled||valueProps?.readonly,placeholder:"Value",required:(valueElement?.min??0)>0,defaultValue:value?.value,onChange:e=>setValueWrapper({...value,value:e.currentTarget.value}),error:getErrorsForInput(props.outcome,errorPath+".value")})]})}import{NativeSelect as NativeSelect5,TextInput as TextInput9}from"@mantine/core";import{useCallback as useCallback5,useContext as useContext12,useMemo as useMemo12,useState as useState20}from"react";import{jsx as jsx52}from"react/jsx-runtime";var data=["USD","EUR","CAD","GBP","AUD"];function MoneyInput(props){let{onChange}=props,[value,setValue]=useState20(props.defaultValue),{getExtendedProps}=useContext12(ElementsContext),[currencyProps,valueProps]=useMemo12(()=>["currency","value"].map(field=>getExtendedProps(props.path+"."+field)),[getExtendedProps,props.path]),setValueWrapper=useCallback5(newValue=>{setValue(newValue),onChange&&onChange(newValue)},[onChange]),handleCurrencyChange=useCallback5(e=>{setValueWrapper({...value,currency:e.currentTarget.value})},[value,setValueWrapper]),handleValueChange=useCallback5(e=>{setValueWrapper({...value,value:e.currentTarget.valueAsNumber})},[value,setValueWrapper]),select=jsx52(NativeSelect5,{disabled:props.disabled||currencyProps?.readonly,defaultValue:value?.currency,data,styles:{input:{fontWeight:500,borderTopLeftRadius:0,borderBottomLeftRadius:0,width:92}},onChange:handleCurrencyChange});return jsx52(TextInput9,{disabled:props.disabled||valueProps?.readonly,type:"number",name:props.name,label:props.label,placeholder:props.placeholder??"Value",defaultValue:value?.value?.toString()??"USD",leftSection:jsx52(IconCurrencyDollar,{size:14}),rightSection:select,rightSectionWidth:92,onChange:handleValueChange})}import{Group as Group13}from"@mantine/core";import{useContext as useContext13,useMemo as useMemo13,useState as useState21}from"react";import{jsx as jsx53,jsxs as jsxs26}from"react/jsx-runtime";function PeriodInput(props){let[value,setValue]=useState21(props.defaultValue),{getExtendedProps}=useContext13(ElementsContext),[startProps,endProps]=useMemo13(()=>["start","end"].map(field=>getExtendedProps(props.path+"."+field)),[getExtendedProps,props.path]);function setValueWrapper(newValue){setValue(newValue),props.onChange&&props.onChange(newValue)}return jsxs26(Group13,{gap:"xs",grow:!0,wrap:"nowrap",children:[jsx53(DateTimeInput,{disabled:props.disabled||startProps?.readonly,name:props.name+".start",placeholder:"Start",defaultValue:value?.start,onChange:newValue=>setValueWrapper({...value,start:newValue})}),jsx53(DateTimeInput,{disabled:props.disabled||endProps?.readonly,name:props.name+".end",placeholder:"End",defaultValue:value?.end,onChange:newValue=>setValueWrapper({...value,end:newValue})})]})}import{Group as Group14,NativeSelect as NativeSelect6,TextInput as TextInput10}from"@mantine/core";import{useContext as useContext14,useMemo as useMemo14,useState as useState22}from"react";import{jsx as jsx54,jsxs as jsxs27}from"react/jsx-runtime";function QuantityInput(props){let[value,setValue]=useState22(props.defaultValue),{getExtendedProps}=useContext14(ElementsContext),[comparatorProps,valueProps,unitProps]=useMemo14(()=>["comparator","value","unit"].map(field=>getExtendedProps(props.path+"."+field)),[getExtendedProps,props.path]);function setValueWrapper(newValue){setValue(newValue),props.onChange&&props.onChange(newValue)}return jsxs27(Group14,{gap:"xs",grow:!0,wrap:"nowrap",children:[jsx54(NativeSelect6,{disabled:props.disabled||comparatorProps?.readonly,style:{width:80},"data-testid":props.name+"-comparator",defaultValue:value?.comparator,data:["","<","<=",">=",">"],onChange:e=>setValueWrapper({...value,comparator:e.currentTarget.value})}),jsx54(TextInput10,{disabled:props.disabled||valueProps?.readonly,id:props.name,name:props.name,required:props.required,"data-autofocus":props.autoFocus,"data-testid":props.name+"-value",type:"number",placeholder:"Value",defaultValue:value?.value,autoFocus:props.autoFocus,step:"any",onWheel:e=>{props.disableWheel&&e.currentTarget.blur()},onChange:e=>{setValueWrapper({...value,value:tryParseNumber(e.currentTarget.value)})}}),jsx54(TextInput10,{disabled:props.disabled||unitProps?.readonly,placeholder:"Unit","data-testid":props.name+"-unit",defaultValue:value?.unit,onChange:e=>setValueWrapper({...value,unit:e.currentTarget.value})})]})}function tryParseNumber(str){if(str)return parseFloat(str)}import{Group as Group15}from"@mantine/core";import{useContext as useContext15,useMemo as useMemo15,useState as useState23}from"react";import{jsx as jsx55,jsxs as jsxs28}from"react/jsx-runtime";function RangeInput(props){let[value,setValue]=useState23(props.defaultValue),{getExtendedProps}=useContext15(ElementsContext),[lowProps,highProps]=useMemo15(()=>["low","high"].map(field=>getExtendedProps(props.path+"."+field)),[getExtendedProps,props.path]);function setValueWrapper(newValue){setValue(newValue),props.onChange&&props.onChange(newValue)}return jsxs28(Group15,{gap:"xs",grow:!0,wrap:"nowrap",children:[jsx55(QuantityInput,{path:props.path+".low",disabled:props.disabled||lowProps?.readonly,name:props.name+"-low",defaultValue:value?.low,onChange:v=>setValueWrapper({...value,low:v})}),jsx55(QuantityInput,{path:props.path+".high",disabled:props.disabled||highProps?.readonly,name:props.name+"-high",defaultValue:value?.high,onChange:v=>setValueWrapper({...value,high:v})})]})}import{Group as Group16}from"@mantine/core";import{useContext as useContext16,useMemo as useMemo16,useState as useState24}from"react";import{jsx as jsx56,jsxs as jsxs29}from"react/jsx-runtime";function RatioInput(props){let[value,setValue]=useState24(props.defaultValue),{getExtendedProps}=useContext16(ElementsContext),[numeratorProps,denominatorProps]=useMemo16(()=>["numerator","denominator"].map(field=>getExtendedProps(props.path+"."+field)),[getExtendedProps,props.path]);function setValueWrapper(newValue){setValue(newValue),props.onChange&&props.onChange(newValue)}return jsxs29(Group16,{gap:"xs",grow:!0,wrap:"nowrap",children:[jsx56(QuantityInput,{path:props.path+".numerator",disabled:props.disabled||numeratorProps?.readonly,name:props.name+"-numerator",defaultValue:value?.numerator,onChange:v=>setValueWrapper({...value,numerator:v})}),jsx56(QuantityInput,{path:props.path+".denominator",disabled:props.disabled||denominatorProps?.readonly,name:props.name+"-denominator",defaultValue:value?.denominator,onChange:v=>setValueWrapper({...value,denominator:v})})]})}import{Group as Group18,NativeSelect as NativeSelect7}from"@mantine/core";import{LRUCache,ReadablePromise,createReference as createReference2,isEmpty as isEmpty4,isPopulated as isPopulated9,tryGetProfile as tryGetProfile3}from"@medplum/core";import{useMedplum as useMedplum10}from"@medplum/react-hooks";import{useCallback as useCallback7,useEffect as useEffect6,useMemo as useMemo17,useRef as useRef7,useState as useState26}from"react";import{Group as Group17,Text as Text6}from"@mantine/core";import{getDisplayString as getDisplayString3,getReferenceString as getReferenceString3,isPopulated as isPopulated8}from"@medplum/core";import{useMedplum as useMedplum9,useResource as useResource2}from"@medplum/react-hooks";import{forwardRef as forwardRef4,useCallback as useCallback6,useState as useState25}from"react";import{jsx as jsx57,jsxs as jsxs30}from"react/jsx-runtime";var SEARCH_CODES={Device:"device-name",Observation:"code",Subscription:"criteria",User:"email:contains"},NAME_RESOURCE_TYPES=["AccessPolicy","Account","ActivityDefinition","Bot","CapabilityStatement","CareTeam","ClientApplication","CodeSystem","CompartmentDefinition","ConceptMap","EffectEvidenceSynthesis","Endpoint","EventDefinition","Evidence","EvidenceVariable","ExampleScenario","GraphDefinition","Group","HealthcareService","ImplementationGuide","InsurancePlan","Library","Location","Measure","MedicinalProduct","MessageDefinition","NamingSystem","OperationDefinition","Organization","Patient","Person","PlanDefinition","Practitioner","Project","Questionnaire","RelatedPerson","ResearchDefinition","ResearchElementDefinition","ResearchStudy","RiskEvidenceSynthesis","SearchParameter","StructureDefinition","StructureMap","TerminologyCapabilities","TestScript","UserConfiguration","ValueSet"];function toOption3(resource){return{value:getReferenceString3(resource),label:getDisplayString3(resource),resource}}function ResourceInput(props){let medplum=useMedplum9(),{resourceType,searchCriteria}=props,[outcome,setOutcome]=useState25(),defaultValue2=useResource2(props.defaultValue,setOutcome),ItemComponent3=props.itemComponent??DefaultItemComponent2,onChange=props.onChange,loadValues=useCallback6(async(input,signal)=>{let searchCode=getSearchParamForResourceType(resourceType),searchParams=new URLSearchParams({[searchCode]:input??"",_count:"10",...searchCriteria});return await medplum.searchResources(resourceType,searchParams,{signal})},[medplum,resourceType,searchCriteria]),handleChange=useCallback6(newResources=>{onChange&&onChange(newResources[0])},[onChange]);return isPopulated8(props.defaultValue)&&!outcome&&!defaultValue2?null:jsx57(AsyncAutocomplete,{disabled:props.disabled,name:props.name,label:props.label,error:props.error,required:props.required,itemComponent:ItemComponent3,defaultValue:defaultValue2,placeholder:props.placeholder,maxValues:1,toOption:toOption3,loadOptions:loadValues,onChange:handleChange,clearable:!0})}var DefaultItemComponent2=forwardRef4(({label,resource,active:_active,...others},ref)=>jsx57("div",{ref,...others,children:jsxs30(Group17,{wrap:"nowrap",children:[jsx57(ResourceAvatar,{value:resource}),jsxs30("div",{children:[jsx57(Text6,{children:label}),jsx57(Text6,{size:"xs",c:"dimmed",children:resource.birthDate||resource.id})]})]})}));function getSearchParamForResourceType(resourceType){return SEARCH_CODES[resourceType]??(NAME_RESOURCE_TYPES.includes(resourceType)?"name":"_id")}import{jsx as jsx58,jsxs as jsxs31}from"react/jsx-runtime";function ReferenceInput(props){let{onChange}=props,medplum=useMedplum10(),[value,setValue]=useState26(props.defaultValue),[targetTypes,setTargetTypes]=useState26(()=>createTargetTypes(props.targetTypes)),[targetType,setTargetType]=useState26(()=>getInitialTargetType(props.defaultValue,targetTypes)),promiseCache=useRef7(new LRUCache),searchCriteria=useMemo17(()=>targetType?.type==="profile"?{...props.searchCriteria,_profile:targetType.value}:props.searchCriteria,[props.searchCriteria,targetType]);useEffect6(()=>{let anyToFetch=!1,newTargetTypePromises=targetTypes?.map(tt=>{if(!shouldFetchResourceType(tt))return Promise.resolve(tt);anyToFetch=!0;let cacheKey=tt.value,cached=promiseCache.current.get(cacheKey);if(cached)return cached;let promise=fetchResourceTypeOfProfile(medplum,tt.value).then(profile=>{let newTargetType={...tt};return profile?isPopulated9(profile.type)?(newTargetType.resourceType=profile.type,newTargetType.name=profile.name,newTargetType.title=profile.title):(console.error(`StructureDefinition.type missing for ${tt.value}`),newTargetType.error="StructureDefinition.type missing"):(console.error(`StructureDefinition not found for ${tt.value}`),newTargetType.error="StructureDefinition not found"),newTargetType}).catch(reason=>(console.error(reason),{...tt,error:reason})),readablePromise=new ReadablePromise(promise);return promiseCache.current.set(cacheKey,readablePromise),readablePromise});!newTargetTypePromises||!anyToFetch||Promise.all(newTargetTypePromises).then(newTargetTypes=>{if(setTargetTypes(newTargetTypes),!targetType)return;let index=newTargetTypes.findIndex(tt=>tt.value===targetType.value||tt.resourceType===targetType.resourceType);if(index===-1){console.debug(`defaultValue had unexpected resourceType: ${targetType.resourceType}`);return}setTargetType(newTargetTypes[index])}).catch(console.error)},[medplum,targetType,targetTypes]);let setValueHelper=useCallback7(item=>{let newValue=item?createReference2(item):void 0;setValue(newValue),onChange&&onChange(newValue)},[onChange]),typeSelectOptions=useMemo17(()=>targetTypes?targetTypes.map(tt=>({value:tt.value,label:tt.type==="profile"?tt.title??tt.name??tt.resourceType??tt.value:tt.value})):[],[targetTypes]);return jsxs31(Group18,{gap:"xs",grow:!0,wrap:"nowrap",children:[targetTypes&&targetTypes.length>1&&jsx58(NativeSelect7,{disabled:props.disabled,"data-autofocus":props.autoFocus,"data-testid":"reference-input-resource-type-select",defaultValue:targetType?.resourceType,autoFocus:props.autoFocus,onChange:e=>{let newValue=e.currentTarget.value,newTargetType=targetTypes.find(tt=>tt.value===newValue);setTargetType(newTargetType)},data:typeSelectOptions}),!targetTypes&&jsx58(ResourceTypeInput,{disabled:props.disabled,autoFocus:props.autoFocus,testId:"reference-input-resource-type-input",defaultValue:targetType?.resourceType,onChange:newResourceType=>{setTargetType(newResourceType?{type:"resourceType",value:newResourceType,resourceType:newResourceType}:void 0)},name:props.name+"-resourceType",placeholder:"Resource Type"}),jsx58(ResourceInput,{resourceType:targetType?.resourceType,name:props.name+"-id",required:props.required,placeholder:props.placeholder,defaultValue:value,searchCriteria,onChange:setValueHelper,disabled:props.disabled})]})}function createTargetTypes(resourceTypesAndProfileUrls){if(!resourceTypesAndProfileUrls||resourceTypesAndProfileUrls.length===0||resourceTypesAndProfileUrls.length===1&&resourceTypesAndProfileUrls[0]==="Resource")return;let results=[];for(let value of resourceTypesAndProfileUrls)value.includes("/")?results.push({type:"profile",value}):results.push({type:"resourceType",value,resourceType:value});return results}function getInitialTargetType(defaultValue2,targetTypes){let defaultValueResourceType=defaultValue2?.reference?.split("/")[0];if(defaultValueResourceType){let targetType=targetTypes?.find(tt=>tt.resourceType===defaultValueResourceType);return targetType||{type:"resourceType",value:defaultValueResourceType,resourceType:defaultValueResourceType}}if(targetTypes&&targetTypes.length>0)return targetTypes[0]}async function fetchResourceTypeOfProfile(medplum,profileUrl){let profile=tryGetProfile3(profileUrl);if(profile)return{type:profile.type,name:profile.name,title:profile.title};let query=`{
66
66
  StructureDefinitionList(url: "${profileUrl}", _sort: "_lastUpdated", _count: 1) {
67
67
  type,