@openmrs/esm-form-builder-app 3.5.2-pre.3780 → 3.5.2-pre.3786

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/5117.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([["5117"],{34300(e){e.exports=JSON.parse('{"add":"Add","addFormComponent":"Add Form Component","addObsGroupQuestion":"Add a grouped question","addPage":"Add Page","addProgram":"Add program","addProgramWorkflow":"Add program workflow","addQuestion":"Add Question","addReference":"Add Reference","addSection":"Add Section","addSelectableOrder":"Add selectable order","all":"All","answerConceptValidation":"One or more selected answer concepts do not exist in the system. ","answerErrors":"Answer Errors","attributes":"Attributes","auditDetails":"Audit Details","autogeneratedUuid":"UUID (auto-generated)","backToDashboard":"Back to dashboard","calendarAndTimer":"Calendar and timer","calendarOnly":"Calendar only","cancel":"Cancel","cancelButtonText":"Cancel","checkFilters":"Check the filters above","chooseEncounterType":"Choose an encounter type to link your form to","choosePatientIdentifierType":"Choose a patient identifier type","choosePersonAttributeType":"Choose a person attribute type","chooseQuestionType":"Choose a question type","chooseRenderingType":"Choose a rendering type","class":"Class","close":"Close","code":"Code","componentadded":"Component added","conceptDoesNotExist":"The linked concept \'{{conceptName}}\' does not exist in your dictionary","conceptId":"Concept ID","conceptSearchHelpText":"Can\'t find a concept?","convertLabelToCamelCase":"Convert label to camel-case","copySchema":"Copy schema","copyToClipboard":"Copy to clipboard","createdBy":"Created By","createForm":"Create Form","createNewForm":"Create a new form","createNewPage":"Create a new page","createNewQuestion":"Create a new question","createNewSection":"Create a new section","datatype":"Data Type","datePickerType":"The type of date picker to show ","decimalsNotAllowed":"This concept does not allow decimals","deleteAnswer":"Delete answer","deletePage":"Delete page","deletePageConfirmation":"Are you sure you want to delete this page?","deletePageExplainerText":"Deleting this page will delete all the sections and questions associated with it. This action cannot be undone.","deleteQuestion":"Delete question","deleteQuestionConfirmation":"Are you sure you want to delete this question? ","deleteQuestionWarningText":"Clicking the delete button will delete the question labelled","deleteSection":"Delete section","deleteSectionConfirmation":"Are you sure you want to delete this section?","deleteSectionExplainerText":"Deleting this section will delete all the questions associated with it. This action cannot be undone.","description":"Description","descriptionPlaceholderText":"e.g. A form used to collect encounter data for clients in the Express Care program.","downloadSchema":"Download schema","downloadTranslation":"Download translation","dragToReorder":"Drag to reorder","duplicateQuestion":"Duplicate question","editButton":"Edit {{elementType}}","editForm":"Edit form","editingFor":"Editing translation for:","editQuestion":"Edit question","editSchema":"Edit schema","editSection":"Edit section","editString":"Edit string","editTranslationTitle":"Edit Translation","encounterType":"Encounter Type","enterOrderLabel":"Enter order label","enterPageTitle":"Enter a title for your new page","enterSectionTitle":"Enter a section title","error":"Error","errorAddingComponent":"Error adding component","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingForm":"Error creating form","errorCreatingPage":"Error creating page","errorCreatingSection":"Error creating section","errorDeletingPage":"Error deleting page","errorDeletingQuestion":"Error deleting question","errorDeletingSection":"Error deleting section","errorDuplicatingQuestion":"Error duplicating question","errorEditingSection":"Error editing section","errorFetchingConceptName":"Couldn\'t resolve concept name","errorFetchingConcepts":"Error fetching concepts","errorFetchingPatientIdentifierTypes":"Error fetching patient identifier types","errorFetchingPersonAttributeTypes":"Error fetching person attribute types","errorFetchingPrograms":"Error fetching programs","errorFetchingProgramState":"Error fetching program state","errorLoadingForm":"Error loading Form","errorLoadingForms":"Error loading Forms","errorOnLine":"Error on line","errorPublishingForm":"Error publishing form","errorRenamingForm":"Error renaming form","errorRenamingPage":"Error renaming page","errorRenamingSection":"Error renaming section","errorRestoringForm":"Error restoring form","errorRetiringForm":"Error retiring form","errorSavingQuestion":"Error saving question","errorUnpublishingForm":"Error unpublishing form","errorUpdatingForm":"Error updating form","expandedSection":"Keep section expanded","expandSectionExplainer":"Below are the sections linked to this page. Expand each section to add questions to it.","filterBy":"Filter by","fixSchemaAndRender":"Fix the error in the Schema Editor and click \\"Render changes\\" to retry.","formBuilder":"Form Builder","formBuilderDocs":"form builder documentation","formCreated":"New form created","formDescription":"Form description","formDescriptionPlaceholder":"A short description of the form e.g. A form for collecting COVID-19 symptoms","formError":"Error loading form metadata","formIsRetired":"This form is retired.","formName":"Form name","formNamePlaceholder":"e.g. OHRI Express Care Patient Encounter Form","formPublished":"Form published","formPublishedSuccessfully":"form was published successfully","formRenamed":"Form renamed","formRendererHelperText":"Load a form schema in the Schema Editor to the left to see it rendered here by the Form Engine.","formRestored":"Form restored","formRestoredMessage":"The form \\"{{- formName}}\\" has been restored","formRetired":"Form retired","formRetiredMessage":"The form \\"{{- formName}}\\" has been retired successfully","forms":"Forms","formUnpublished":"Form unpublished","formUnpublishedSuccessfully":"form was unpublished successfully","formUuid":"Form UUID","home":"Home","import":"Import","importSchema":"Import schema","inputDummySchema":"Load sample schema","interactiveBuilder":"Interactive Builder","interactiveBuilderHelperText":"The Interactive Builder lets you build your form schema without writing JSON code. The Preview tab automatically updates as you build your form. When done, click Save Form to save your form.","invalidAnswerConcept":"Invalid Answer Concept Detected","invalidMinMax":"Min value cannot be greater than max","invalidPersonAttributeType":"Invalid person attribute type","invalidVersionWarning":"Version can only start with with a number","isQuestionInfoProvided":"Would you like to provide additional details about the question?","isQuestionRequiredOrOptional":"Is this question a required or optional field? Required fields must be answered before the form can be submitted.","isUiSelectSearchable":"Is the ui-select-extended rendering searchable","label":"Label","labelFalse":"Label false","labelPlaceholder":"e.g. Type of Anaesthesia","labelTrue":"Label true","lastEditedBy":"Last Edited By","loading":"Loading","loadingPreview":"Loading preview...","loadingSchema":"Loading schema","loadingTranslations":"Loading translations...","manageForms":"Manage Forms","mappings":"Mappings","maximizeEditor":"Maximize editor","maxLengthOfCharacters":"Max length of characters","maxValue":"Max value that can be entered","minimizeEditor":"Minimize editor","minLengthOfCharacters":"Min length of characters","minValue":"Min value that can be entered","name":"Name","namePlaceholder":"What the form is called in the system","no":"No","noFormsAvailable":"No Forms Available","noFormsToDisplay":"There are no forms to display.","noMatchingConcepts":"No concepts were found that match","noMatchingFormsToDisplay":"No matching forms to display","noSchemaLoaded":"No schema loaded","noTranslatedStrings":"No strings are translated yet.","noTranslationFileToUpload":"No translations found for the selected language to upload","noTranslationForLang":"No translations found for selected language.","noTranslations":"No translatable strings found.","notSearchable":"Not Searchable","noUntranslatedStrings":"All strings are translated.","noValidationErrorsFound":"No validation errors found","off":"Off","on":"On","optional":"Optional","Page":"Select Page","pageCreated":"New page created","pageDeleted":"Page deleted","pageExplainer":"Pages typically have one or more sections. Click the button below to add a section to your page.","pageRenamed":"Page renamed","pages":"Pages","patientIdentifierTypeHelperText":"Patient identifier type fields must be linked to a patient identifier type","personAttributeTypeHelperText":"Person attribute type fields must be linked to a person attribute type","personAttributeTypeNotFound":"The configured person attribute type ({{uuid}}) was not found. It may have been deleted or retired.","pleaseTryAgain":"Please try again.","preview":"Preview","previewFormIn":"Preview form in","problemLoadingPreview":"There was a problem loading the schema preview","program":"Program","programState":"Program state","programWorkflow":"Program workflow","published":"Published","publishForm":"Publish form","publishing":"Publishing","publishingFailed":"Publishing failed","publishWarning":"Cannot publish form with validation errors","questionCreated":"New question created","questionDeleted":"Question deleted","questionDeletedMessage":"The question labelled \\"{{- questionLabel}}\\" has been deleted.","questionDuplicated":"Question duplicated. Please change the duplicated question\'s ID to a unique, camelcased value","questionId":"Question ID","questionIdExists":"This question ID already exists in your schema","questionIdHelper":"Prefer camel-case; must be unique within this form","questionIdPlaceholder":"Enter a unique ID e.g. \\"anaesthesiaType\\" for a question asking about the type of anaesthesia.","questionInfo":"Additional question info","questionInfoPlaceholder":"Enter any relevant info about the question to provide more context.","questionLabel":"Label","questionRestored":"Question restored","questionRestoredMessage":"The question labelled \\"{{- questionLabel}}\\" has been restored.","questionsUpdated":"Questions updated","questionType":"Question type","questionUpdated":"Question updated","referenceSchema":"Reference schema","relationship":"Relationship","removeOrder":"Remove order","renderChanges":"Render changes","renderingType":"Rendering type","required":"Required","restoreDraft":"Restore draft","restoreForm":"Restore form","restoreSchema":"Restore form","restoring":"Restoring","retire":"Retire","retired":"Retired","retireForm":"Retire form","retireFormConfirmation":"Are you sure you want to retire this form? Retired forms are hidden by default but can be restored later.","retireSchema":"Retire schema","retiring":"Retiring","returnToDashboard":"Return to dashboard","rows":"Rows","save":"Save","saveAsModal":"A version of the form you\'re working on already exists on the server. Do you want to update the form or to save it as a new version?","saveAsNewForm":"Save as a new","saveButtonText":"Save","saveConfirmation":"Save or Update form","saveExplainerText":"Clicking the Save button saves your form schema to the database. To see your form in your frontend, you first need to publish it. Click the Publish button to publish your form.","saveForm":"Save form","saveFormToServer":"Save form to server","saveSuccess":"was updated successfully","saveSuccessMessage":"was created successfully. It is now visible on the Forms dashboard.","saving":"Saving","schemaActions":"Schema actions","schemaEditor":"Schema editor","schemaLoadError":"Error loading schema","schemaNotFound":"Schema not found","schemaNotFoundText":"The schema originally associated with this form could not be found. A draft schema was found saved in your browser\'s local storage. Would you like to load it instead?","schemaSaveWarningMessage":"This is a demo server and can\'t be relied upon to save your schemas permanently. To avoid losing your work, please save your schemas to your local machine. Alternatively, upload your schema to the distro repo to have it persisted across server resets.","searchable":"Searchable","searchConcept":"Search using a concept name or UUID","searchForAnswerConcept":"Search for a concept to add as an answer","searchForBackingConcept":"Search for a backing concept","searchForBackingPatientIdentifierType":"Search for a backing patient identifier type","searchForBackingPersonAttributeType":"Search for a backing person attribute type","searching":"Searching","searchInOCL":"Search in OCL","searchThisList":"Search this list","searchTranslationKeys":"Search Translation Keys...","sectionCreated":"New section created","SectionDeleted":"Section deleted","sectionEdited":"Section edited","sectionExplainer":"A section will typically contain one or more questions. Click the button below to add a question to this section.","sectionReferenceExplainer":"This section is a reference to another form. Modify the referenced form to add questions to this section.","sectionRenamed":"Section renamed","sections":"Sections","select":"Select","selectableOrders":"Selectable Orders","selectAllOptions":"Select all options","selectAnswersToDisplay":"Select answers to display","selectForm":"Select Form","selectLanguage":"Select language","selectProgram":"Select a program","selectQuestions":"Select Questions","source":"Source","startBuilding":"Start building","success":"Success!","timerOnly":"Timer only","translated":"Translated","translationBuilder":"Translation Builder","translationFileUploadFail":"Failed to upload translation file","translationsUploaded":"Translations Uploaded.","translationsUploadedSuccessfully":"Translation file uploaded successfully.","translationValue":"Translated Value","typeRequired":"Type is required","undo":"Undo","uneditedFormMsg":"This form has never been edited","unknownUser":"Unknown","unpublish":"Unpublish","unpublishConfirmation":"Are you sure you want to unpublish this form?","unpublishExplainerText":"Unpublishing a form means you can no longer access it from your frontend. Unpublishing forms does not delete their associated schemas, it only affects whether or not you can access them in your frontend.","unpublishForm":"Unpublish form","unsavedChanges":"Unsaved changes","untranslated":"Untranslated","update":"Update","updateExistingForm":"Update existing version","uploadFailed":"Upload Failed","uploadTranslation":"Upload translation","validateAndPublishForm":"Validate and publish form","validateForm":"Validate form","validating":"Validating","validationErrors_one":"Validation found {{count}} errors","validationErrors_other":"Validation found {{count}} errors","ValidationSuccessful":"Validation Successful","validRenderingTypeRequired":"A valid rendering type value is required","value":"Value","version":"Version","versionPlaceholder":"e.g. 1.0","viewErrors":"View the errors in the interactive builder","welcomeExplainer":"Add pages, sections and questions to your form. The Preview tab automatically updates as you build your form. For a detailed explanation of what constitutes an OpenMRS form schema, please read through the ","welcomeHeading":"Interactive schema builder","yes":"Yes"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([["5117"],{34300(e){e.exports=JSON.parse('{"add":"Add","addFormComponent":"Add Form Component","addObsGroupQuestion":"Add a grouped question","addPage":"Add Page","addProgram":"Add program","addProgramWorkflow":"Add program workflow","addQuestion":"Add Question","addReference":"Add Reference","addSection":"Add Section","addSelectableOrder":"Add selectable order","all":"All","answerConceptValidation":"One or more selected answer concepts do not exist in the system. ","answerErrors":"Answer Errors","attributes":"Attributes","auditDetails":"Audit Details","autogeneratedUuid":"UUID (auto-generated)","backToDashboard":"Back to dashboard","calendarAndTimer":"Calendar and timer","calendarOnly":"Calendar only","cancel":"Cancel","cancelButtonText":"Cancel","checkFilters":"Check the filters above","chooseEncounterType":"Choose an encounter type to link your form to","choosePatientIdentifierType":"Choose a patient identifier type","choosePersonAttributeType":"Choose a person attribute type","chooseQuestionType":"Choose a question type","chooseRenderingType":"Choose a rendering type","class":"Class","close":"Close","code":"Code","componentadded":"Component added","conceptDoesNotExist":"The linked concept \'{{conceptName}}\' does not exist in your dictionary","conceptId":"Concept ID","conceptSearchHelpText":"Can\'t find a concept?","convertLabelToCamelCase":"Convert label to camel-case","copySchema":"Copy schema","copyToClipboard":"Copy to clipboard","createdBy":"Created By","createForm":"Create Form","createNewForm":"Create a new form","createNewPage":"Create a new page","createNewQuestion":"Create a new question","createNewSection":"Create a new section","datatype":"Data Type","datePickerType":"The type of date picker to show ","decimalsNotAllowed":"This concept does not allow decimals","deleteAnswer":"Delete answer","deletePage":"Delete page","deletePageConfirmation":"Are you sure you want to delete this page?","deletePageExplainerText":"Deleting this page will delete all the sections and questions associated with it. This action cannot be undone.","deleteQuestion":"Delete question","deleteQuestionConfirmation":"Are you sure you want to delete this question? ","deleteQuestionWarningText":"Clicking the delete button will delete the question labelled","deleteSection":"Delete section","deleteSectionConfirmation":"Are you sure you want to delete this section?","deleteSectionExplainerText":"Deleting this section will delete all the questions associated with it. This action cannot be undone.","description":"Description","descriptionPlaceholderText":"e.g. A form used to collect encounter data for clients in the Express Care program.","downloadSchema":"Download schema","downloadTranslation":"Download translation","dragToReorder":"Drag to reorder","duplicateQuestion":"Duplicate question","editButton":"Edit {{elementType}}","editForm":"Edit form","editingFor":"Editing translation for:","editQuestion":"Edit question","editSchema":"Edit schema","editSection":"Edit section","editString":"Edit string","editTranslationTitle":"Edit Translation","encounterType":"Encounter Type","enterOrderLabel":"Enter order label","enterPageTitle":"Enter a title for your new page","enterSectionTitle":"Enter a section title","error":"Error","errorAddingComponent":"Error adding component","errorCopy":"Sorry, there was a problem displaying this information. You can try to reload this page, or contact the site administrator and quote the error code above.","errorCreatingForm":"Error creating form","errorCreatingPage":"Error creating page","errorCreatingSection":"Error creating section","errorDeletingPage":"Error deleting page","errorDeletingQuestion":"Error deleting question","errorDeletingSection":"Error deleting section","errorDuplicatingQuestion":"Error duplicating question","errorEditingSection":"Error editing section","errorFetchingConceptName":"Couldn\'t resolve concept name","errorFetchingConcepts":"Error fetching concepts","errorFetchingPatientIdentifierTypes":"Error fetching patient identifier types","errorFetchingPersonAttributeTypes":"Error fetching person attribute types","errorFetchingPrograms":"Error fetching programs","errorFetchingProgramState":"Error fetching program state","errorLoadingForm":"Error loading Form","errorLoadingForms":"Error loading Forms","errorOnLine":"Error on line","errorPublishingForm":"Error publishing form","errorRenamingForm":"Error renaming form","errorRenamingPage":"Error renaming page","errorRenamingSection":"Error renaming section","errorRestoringForm":"Error restoring form","errorRetiringForm":"Error retiring form","errorSavingQuestion":"Error saving question","errorUnpublishingForm":"Error unpublishing form","errorUpdatingForm":"Error updating form","expandedSection":"Keep section expanded","expandSectionExplainer":"Below are the sections linked to this page. Expand each section to add questions to it.","filterBy":"Filter by","fixSchemaAndRender":"Fix the error in the Schema Editor and click \\"Render changes\\" to retry.","formBuilder":"Form Builder","formBuilderDocs":"form builder documentation","formCreated":"New form created","formDescription":"Form description","formDescriptionPlaceholder":"A short description of the form e.g. A form for collecting COVID-19 symptoms","formError":"Error loading form metadata","formIsRetired":"This form is retired.","formName":"Form name","formNamePlaceholder":"e.g. OHRI Express Care Patient Encounter Form","formPublished":"Form published","formPublishedSuccessfully":"form was published successfully","formRenamed":"Form renamed","formRendererHelperText":"Load a form schema in the Schema Editor to the left to see it rendered here by the Form Engine.","formRestored":"Form restored","formRestoredMessage":"The form \\"{{- formName}}\\" has been restored","formRetired":"Form retired","formRetiredMessage":"The form \\"{{- formName}}\\" has been retired successfully","forms":"Forms","formUnpublished":"Form unpublished","formUnpublishedSuccessfully":"form was unpublished successfully","formUuid":"Form UUID","home":"Home","import":"Import","importSchema":"Import schema","inputDummySchema":"Load sample schema","interactiveBuilder":"Interactive Builder","interactiveBuilderHelperText":"The Interactive Builder lets you build your form schema without writing JSON code. The Preview tab automatically updates as you build your form. When done, click Save Form to save your form.","invalidAnswerConcept":"Invalid Answer Concept Detected","invalidMinMax":"Min value cannot be greater than max","invalidPersonAttributeType":"Invalid person attribute type","invalidVersionWarning":"Version can only start with with a number","isQuestionInfoProvided":"Would you like to provide additional details about the question?","isQuestionRequiredOrOptional":"Is this question a required or optional field? Required fields must be answered before the form can be submitted.","isUiSelectSearchable":"Is the ui-select-extended rendering searchable","label":"Label","labelFalse":"Label false","labelPlaceholder":"e.g. Type of Anaesthesia","labelTrue":"Label true","lastEditedBy":"Last Edited By","loading":"Loading","loadingPreview":"Loading preview...","loadingSchema":"Loading schema","loadingTranslations":"Loading translations...","manageForms":"Manage Forms","mappings":"Mappings","maximizeEditor":"Maximize editor","maxLengthOfCharacters":"Max length of characters","maxValue":"Max value that can be entered","minimizeEditor":"Minimize editor","minLengthOfCharacters":"Min length of characters","minValue":"Min value that can be entered","name":"Name","namePlaceholder":"What the form is called in the system","no":"No","noFormsAvailable":"No Forms Available","noFormsToDisplay":"There are no forms to display.","noMatchingConcepts":"No concepts were found that match","noMatchingFormsToDisplay":"No matching forms to display","noSchemaLoaded":"No schema loaded","noTranslatedStrings":"No strings are translated yet.","noTranslationFileToUpload":"No translations found for the selected language to upload","noTranslationForLang":"No translations found for selected language.","noTranslations":"No translatable strings found.","notSearchable":"Not Searchable","noUntranslatedStrings":"All strings are translated.","noValidationErrorsFound":"No validation errors found","off":"Off","on":"On","optional":"Optional","Page":"Select Page","pageCreated":"New page created","pageDeleted":"Page deleted","pageExplainer":"Pages typically have one or more sections. Click the button below to add a section to your page.","pageRenamed":"Page renamed","pages":"Pages","patientIdentifierTypeHelperText":"Patient identifier type fields must be linked to a patient identifier type","personAttributeTypeHelperText":"Person attribute type fields must be linked to a person attribute type","personAttributeTypeNotFound":"The configured person attribute type ({{uuid}}) was not found. It may have been deleted or retired.","pleaseTryAgain":"Please try again.","preview":"Preview","previewFormIn":"Preview form in","problemLoadingPreview":"There was a problem loading the schema preview","program":"Program","programState":"Program state","programWorkflow":"Program workflow","published":"Published","publishForm":"Publish form","publishing":"Publishing","publishingFailed":"Publishing failed","publishWarning":"Cannot publish form with validation errors","questionCreated":"New question created","questionDeleted":"Question deleted","questionDeletedMessage":"The question labelled \\"{{- questionLabel}}\\" has been deleted.","questionDuplicated":"Question duplicated. Please change the duplicated question\'s ID to a unique, camelcased value","questionId":"Question ID","questionIdExists":"This question ID already exists in your schema","questionIdHelper":"Prefer camel-case; must be unique within this form","questionIdPlaceholder":"Enter a unique ID e.g. \\"anaesthesiaType\\" for a question asking about the type of anaesthesia.","questionInfo":"Additional question info","questionInfoPlaceholder":"Enter any relevant info about the question to provide more context.","questionLabel":"Label","questionRestored":"Question restored","questionRestoredMessage":"The question labelled \\"{{- questionLabel}}\\" has been restored.","questionsUpdated":"Questions updated","questionType":"Question type","questionUpdated":"Question updated","referenceSchema":"Reference schema","relationship":"Relationship","removeOrder":"Remove order","renderChanges":"Render changes","renderingType":"Rendering type","required":"Required","restoreDraft":"Restore draft","restoreForm":"Restore form","restoreSchema":"Restore form","restoring":"Restoring","retire":"Retire","retired":"Retired","retiredConceptDisplay":"{{display}} (Retired)","retireForm":"Retire form","retireFormConfirmation":"Are you sure you want to retire this form? Retired forms are hidden by default but can be restored later.","retireSchema":"Retire schema","retiring":"Retiring","returnToDashboard":"Return to dashboard","rows":"Rows","save":"Save","saveAsModal":"A version of the form you\'re working on already exists on the server. Do you want to update the form or to save it as a new version?","saveAsNewForm":"Save as a new","saveButtonText":"Save","saveConfirmation":"Save or Update form","saveExplainerText":"Clicking the Save button saves your form schema to the database. To see your form in your frontend, you first need to publish it. Click the Publish button to publish your form.","saveForm":"Save form","saveFormToServer":"Save form to server","saveSuccess":"was updated successfully","saveSuccessMessage":"was created successfully. It is now visible on the Forms dashboard.","saving":"Saving","schemaActions":"Schema actions","schemaEditor":"Schema editor","schemaLoadError":"Error loading schema","schemaNotFound":"Schema not found","schemaNotFoundText":"The schema originally associated with this form could not be found. A draft schema was found saved in your browser\'s local storage. Would you like to load it instead?","schemaSaveWarningMessage":"This is a demo server and can\'t be relied upon to save your schemas permanently. To avoid losing your work, please save your schemas to your local machine. Alternatively, upload your schema to the distro repo to have it persisted across server resets.","searchable":"Searchable","searchConcept":"Search using a concept name or UUID","searchForAnswerConcept":"Search for a concept to add as an answer","searchForBackingConcept":"Search for a backing concept","searchForBackingPatientIdentifierType":"Search for a backing patient identifier type","searchForBackingPersonAttributeType":"Search for a backing person attribute type","searching":"Searching","searchInOCL":"Search in OCL","searchThisList":"Search this list","searchTranslationKeys":"Search Translation Keys...","sectionCreated":"New section created","SectionDeleted":"Section deleted","sectionEdited":"Section edited","sectionExplainer":"A section will typically contain one or more questions. Click the button below to add a question to this section.","sectionReferenceExplainer":"This section is a reference to another form. Modify the referenced form to add questions to this section.","sectionRenamed":"Section renamed","sections":"Sections","select":"Select","selectableOrders":"Selectable Orders","selectAllOptions":"Select all options","selectAnswersToDisplay":"Select answers to display","selectForm":"Select Form","selectLanguage":"Select language","selectProgram":"Select a program","selectQuestions":"Select Questions","source":"Source","startBuilding":"Start building","success":"Success!","timerOnly":"Timer only","translated":"Translated","translationBuilder":"Translation Builder","translationFileUploadFail":"Failed to upload translation file","translationsUploaded":"Translations Uploaded.","translationsUploadedSuccessfully":"Translation file uploaded successfully.","translationValue":"Translated Value","typeRequired":"Type is required","undo":"Undo","uneditedFormMsg":"This form has never been edited","unknownUser":"Unknown","unpublish":"Unpublish","unpublishConfirmation":"Are you sure you want to unpublish this form?","unpublishExplainerText":"Unpublishing a form means you can no longer access it from your frontend. Unpublishing forms does not delete their associated schemas, it only affects whether or not you can access them in your frontend.","unpublishForm":"Unpublish form","unsavedChanges":"Unsaved changes","untranslated":"Untranslated","update":"Update","updateExistingForm":"Update existing version","uploadFailed":"Upload Failed","uploadTranslation":"Upload translation","validateAndPublishForm":"Validate and publish form","validateForm":"Validate form","validating":"Validating","validationErrors_one":"Validation found {{count}} errors","validationErrors_other":"Validation found {{count}} errors","ValidationSuccessful":"Validation Successful","validRenderingTypeRequired":"A valid rendering type value is required","value":"Value","version":"Version","versionPlaceholder":"e.g. 1.0","viewErrors":"View the errors in the interactive builder","welcomeExplainer":"Add pages, sections and questions to your form. The Preview tab automatically updates as you build your form. For a detailed explanation of what constitutes an OpenMRS form schema, please read through the ","welcomeHeading":"Interactive schema builder","yes":"Yes"}')}}]);
package/dist/5117.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"5117.js","sources":["webpack://@openmrs/esm-form-builder-app/json|/home/runner/work/openmrs-esm-form-builder/openmrs-esm-form-builder/translations/en.json"],"names":["JSON"],"mappings":"sJAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,46d"}
1
+ {"version":3,"file":"5117.js","sources":["webpack://@openmrs/esm-form-builder-app/json|/home/runner/work/openmrs-esm-form-builder/openmrs-esm-form-builder/translations/en.json"],"names":["JSON"],"mappings":"sJAAA,EAAO,OAAO,CAAGA,KAAK,KAAK,CAAC,49d"}
package/dist/9103.css CHANGED
@@ -1 +1 @@
1
- @keyframes -esm-form-builder__markdown__tooltip-appear___-76cb{0%{opacity:0}to{opacity:1}}.-esm-form-builder__markdown__container___tPxf6{position:relative}.-esm-form-builder__markdown__container___tPxf6 .mde-header{background:#f9f9f9;border-bottom:1px solid #c8ccd0;border-radius:2px 2px 0 0;flex-flow:wrap;flex-shrink:0;align-items:stretch;display:flex}.-esm-form-builder__markdown__container___tPxf6 .mde-header .mde-tabs{flex-direction:row;display:flex}.-esm-form-builder__markdown__container___tPxf6 .mde-header .mde-tabs button{cursor:pointer;background-color:#0000;border:1px solid #0000;border-radius:2px;margin:6px 3px}.-esm-form-builder__markdown__container___tPxf6 .mde-header .mde-tabs button:first-child{margin-left:6px}.-esm-form-builder__markdown__container___tPxf6 .mde-header .mde-tabs button.selected{border:1px solid #c8ccd0}.-esm-form-builder__markdown__container___tPxf6 .mde-header .svg-icon{width:1em;height:1em;font-size:inherit;vertical-align:-.125em;display:inline-block;overflow:visible}.-esm-form-builder__markdown__container___tPxf6 .mde-header ul.mde-header-group{flex-flow:row;margin:0;padding:10px;list-style:none;display:flex;display:flex!important}.-esm-form-builder__markdown__container___tPxf6 .mde-header ul.mde-header-group.hidden{visibility:hidden}.-esm-form-builder__markdown__container___tPxf6 .mde-header ul.mde-header-group li.mde-header-item{margin:0 4px;display:inline-block;position:relative}.-esm-form-builder__markdown__container___tPxf6 .mde-header ul.mde-header-group li.mde-header-item button{text-align:left;cursor:pointer;color:#242729;background:0 0;border:none;height:22px;margin:0;padding:4px}.-esm-form-builder__markdown__container___tPxf6 .mde-header ul.mde-header-group li.mde-header-item button.tooltipped:hover:before{opacity:0;z-index:1000001;color:#000c;pointer-events:none;content:"";border:5px solid #0000;border-top-color:#000c;width:0;height:0;margin-right:-5px;animation-name:-esm-form-builder__markdown__tooltip-appear___-76cb;animation-duration:.2s;animation-delay:.5s;animation-fill-mode:forwards;position:absolute;top:-5px;bottom:auto;right:50%}.-esm-form-builder__markdown__container___tPxf6 .mde-header ul.mde-header-group li.mde-header-item button.tooltipped:hover:after{opacity:0;z-index:1000000;color:#fff;pointer-events:none;content:attr(aria-label);white-space:nowrap;background:#000c;border-radius:3px;margin-bottom:5px;padding:5px 8px;font-size:11px;animation-name:-esm-form-builder__markdown__tooltip-appear___-76cb;animation-duration:.2s;animation-delay:.5s;animation-fill-mode:forwards;position:absolute;bottom:100%;right:50%;transform:translate(50%)}.-esm-form-builder__markdown__container___tPxf6 .mde-textarea-wrapper{margin:2px;position:relative}.-esm-form-builder__markdown__container___tPxf6 .mde-textarea-wrapper textarea.mde-text{vertical-align:top;resize:vertical;border:0;width:100%;height:auto;max-height:200px;padding:10px;overflow-y:auto}.-esm-form-builder__markdown__container___tPxf6 .mde-textarea-wrapper textarea:focus{border-radius:3px;outline:none;border:2px solid #00f!important}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content{padding:10px}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content p,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content blockquote,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content ul,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content ol,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content dl,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content table,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content pre{margin-top:0;margin-bottom:16px}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content h1,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content h2,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content h3{border-bottom:1px solid #eee;margin-top:24px;margin-bottom:16px;padding-bottom:.3em;font-weight:600;line-height:1.25}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content h1{font-size:1.6em}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content h2{font-size:1.4em}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content h3{font-size:1.2em}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content ul,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content ol{padding-left:2em}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content blockquote{color:#777;border-left:.25em solid #ddd;margin-left:0;padding:0 1em}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content blockquote>:first-child{margin-top:0}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content blockquote>:last-child{margin-bottom:0}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content code{background-color:#0000000a;border-radius:3px;margin:0;padding:.2em 0;font-size:90%}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content code:before,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content code:after{letter-spacing:-.2em;content:" "}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content pre{background-color:#f7f7f7;border-radius:3px;padding:16px;font-size:85%;line-height:1.45;overflow:auto}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content pre code{line-height:inherit;word-wrap:normal;background-color:#0000;border:0;margin:0;padding:0;display:inline;overflow:visible}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content pre code:before,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content pre code:after{content:none}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content pre>code{word-break:normal;white-space:pre;background:0 0;border:0;margin:0;padding:0;font-size:100%}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content a{color:#4078c0;text-decoration:none}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content a:hover{text-decoration:underline}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content>:first-child{margin-top:0!important}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content>:last-child{margin-bottom:0!important}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content:after{clear:both;content:"";display:table}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content table{border-spacing:0;border-collapse:collapse;width:100%;display:block}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content table thead th{font-weight:700}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content table th,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content table td{border:1px solid #c8ccd0;padding:6px 13px}.-esm-form-builder__markdown__container___tPxf6 .react-mde{border:1px solid #c8ccd0;border-radius:2px}.-esm-form-builder__markdown__container___tPxf6 .react-mde *{box-sizing:border-box}.-esm-form-builder__markdown__container___tPxf6 .react-mde .invisible{display:none}.-esm-form-builder__markdown__container___tPxf6 .react-mde .image-tip{-webkit-user-select:none;user-select:none;color:gray;background-color:#f9f9f9;border-top:1px solid #c8ccd0;margin:0;padding:7px 10px;font-size:13px;line-height:16px;position:relative;display:flex!important}.-esm-form-builder__markdown__container___tPxf6 .react-mde .image-tip .image-input{opacity:.01;cursor:pointer;min-height:0;padding:5px;position:absolute;top:0;left:0;width:100%!important}.-esm-form-builder__markdown__container___tPxf6 ul.mde-suggestions{cursor:pointer;background:#fff;border:1px solid #c8ccd0;border-radius:3px;min-width:180px;margin:20px 0 0;padding:0;list-style:none;position:absolute;box-shadow:0 1px 5px #1b1f2326;background-color:#00f!important}.-esm-form-builder__markdown__container___tPxf6 ul.mde-suggestions li{border-bottom:1px solid #e1e4e8;padding:4px 8px}.-esm-form-builder__markdown__container___tPxf6 ul.mde-suggestions li:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.-esm-form-builder__markdown__container___tPxf6 ul.mde-suggestions li:last-child{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.-esm-form-builder__markdown__container___tPxf6 ul.mde-suggestions li:hover,.-esm-form-builder__markdown__container___tPxf6 ul.mde-suggestions li[aria-selected=true]{color:#fff;background-color:#0366d6}.-esm-form-builder__markdown__container___tPxf6 sub{vertical-align:sub}.-esm-form-builder__markdown__container___tPxf6 sup{vertical-align:super}.-esm-form-builder__concept-search__label___o5ui\+{margin-bottom:.25rem}.-esm-form-builder__concept-search__searchContainer___7VR0j{position:relative}.-esm-form-builder__concept-search__error___OCeWK{width:100%;max-width:unset;padding:"0rem";margin-bottom:1rem}.-esm-form-builder__concept-search__loader___bnJKJ{padding:.75rem .5rem}.-esm-form-builder__concept-search__concept___n7Rr1{border-bottom:1px solid #e0e0e0;padding:.75rem}.-esm-form-builder__concept-search__concept___n7Rr1:last-of-type{border-bottom:none}.-esm-form-builder__concept-search__conceptList___FDDR7{z-index:1000;background:#fff;border:1px solid #e0e0e0;border-top:none;max-height:14rem;position:absolute;top:100%;left:0;right:0;overflow-y:auto}.-esm-form-builder__concept-search__conceptList___FDDR7 li:hover{background-color:#e0e0e0}.-esm-form-builder__concept-search__dropdownContainer___u5xIR{z-index:1000;position:absolute;top:100%;left:0;right:0}.-esm-form-builder__concept-search__emptyResults___jTyVE{font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);line-height:var(--cds-body-compact-01-line-height,1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);color:#525252;min-height:1rem}.-esm-form-builder__concept-search__oclLauncherBanner___MPsdO{background-color:#8d8d8d;justify-content:space-between;align-items:center;padding:.5rem 1rem;display:flex}.-esm-form-builder__concept-search__oclLauncherBanner___MPsdO p{color:#fff}.-esm-form-builder__concept-search__oclLink___aBFfJ{color:#edf5ff;align-items:center;display:flex}.-esm-form-builder__concept-search__oclLink___aBFfJ svg{margin-left:.25rem}:root{--brand-01:#005d5d;--brand-02:#004144;--brand-03:#007d79;--bottom-nav-height:4rem;--workspace-header-height:3rem;--tablet-workspace-window-height:calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height:calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-form-builder__sortable-tag__sortableTag___ojQNX{opacity:1;transition:transform .25s}.-esm-form-builder__sortable-tag__sortableTag___ojQNX.-esm-form-builder__sortable-tag__dragging___vMSwX{opacity:.5}.-esm-form-builder__sortable-tag__sortableTagWrapper___Kg-RP,.-esm-form-builder__sortable-tag__dragContainerWhenDragging___ZDdHh{justify-content:space-between;align-items:center;width:100%;padding:0 .75rem 0 .25rem;display:flex}.-esm-form-builder__sortable-tag__dragContainerWhenDragging___ZDdHh{z-index:10;background-color:#ffffff8d;border:1px solid #e0e0e0;transform:scale(.75);box-shadow:0 25px 50px -12px #00000040}.-esm-form-builder__sortable-tag__dragHandle___pqFxT{cursor:grab}.-esm-form-builder__sortable-tag__leftContent___Q7xYQ{align-items:center;display:flex}.-esm-form-builder__sortable-tag__invalid___rdyma{color:#da1e28;background-color:#fff8e1;font-weight:700}.-esm-form-builder__sortable-tag__invalidIcon___SKD9A{color:#da1e28}.-esm-form-builder__select-answers__multiSelect___6s6dl .cds--list-box__field--wrapper{justify-content:space-between;align-items:center;width:100%;height:2.5rem;margin-left:.5rem;display:flex}.-esm-form-builder__select-answers__tag___xLfyA{margin-right:.5rem}.-esm-form-builder__obs-type-question__label___V1dxE{margin-bottom:.5rem}.-esm-form-builder__obs-type-question__table___O8GId,.-esm-form-builder__obs-type-question__tableStriped___5AEgu{width:100%}.-esm-form-builder__obs-type-question__table___O8GId tr,.-esm-form-builder__obs-type-question__tableStriped___5AEgu tr{background-color:#fff;border:1px solid #e0e0e0}.-esm-form-builder__obs-type-question__table___O8GId td,.-esm-form-builder__obs-type-question__tableStriped___5AEgu td,.-esm-form-builder__obs-type-question__table___O8GId th,.-esm-form-builder__obs-type-question__tableStriped___5AEgu th{text-align:left;border:1px solid #e0e0e0;max-width:10rem;padding:.25rem}.-esm-form-builder__obs-type-question__tableStriped___5AEgu thead{font-weight:700}.-esm-form-builder__obs-type-question__tableStriped___5AEgu tbody>tr:nth-child(odd){background-color:#f4f4f4}.-esm-form-builder__program-state-type-question__label___2V95S{margin-bottom:.5rem}.-esm-form-builder__program-state-type-question__loader___yOAXF{padding:.75rem .5rem}.-esm-form-builder__program-state-type-question__error___9EgYn{width:100%;max-width:unset;margin-bottom:1rem;padding:0}.-esm-form-builder__program-state-type-question__tag___-3SsZ{margin-right:.5rem}.-esm-form-builder__patient-identifier-type-question__label___SmDY6{margin-bottom:.5rem}.-esm-form-builder__patient-identifier-type-question__loader___YH\+ES{padding:.75rem .5rem}.-esm-form-builder__test-order-type-question__testOrderContainer___cUcd5{flex-direction:column;gap:1rem;display:flex}.-esm-form-builder__test-order-type-question__selectableOrderItem___y7bhc{background-color:#f4f4f4;border:1px solid #e0e0e0;border-radius:.25rem;padding:1rem}.-esm-form-builder__test-order-type-question__orderFields___AzGqM{grid-template-columns:2fr 1fr auto;align-items:start;gap:1rem;display:grid}.-esm-form-builder__test-order-type-question__conceptField___hkC3C{min-width:0}.-esm-form-builder__test-order-type-question__removeButton___hdacf{min-width:auto;padding:.5rem}.-esm-form-builder__test-order-type-question__addButton___bN-V4{align-self:flex-start}@media (width<=768px){.-esm-form-builder__test-order-type-question__orderFields___AzGqM{grid-template-columns:1fr;gap:.5rem}.-esm-form-builder__test-order-type-question__removeButton___hdacf{justify-self:flex-start}}.-esm-form-builder__person-attribute-type-question__label___LosP2{margin-bottom:.5rem;display:block}.-esm-form-builder__person-attribute-type-question__error___1c-uZ{margin-bottom:1rem}.-esm-form-builder__person-attribute-type-question__loader___lMIpa{margin-top:1rem}.-esm-form-builder__required-label__required___at0FS{color:#da1e28;margin-left:.25rem}.-esm-form-builder__question__questionIdLabel___-n8YP{align-items:center;gap:.5rem;display:flex}.-esm-form-builder__question__form___e4c8f{display:contents}.-esm-form-builder__question__obsGroupQuestionContent___Bo56I .cds--accordion__content{padding-right:0%}.-esm-form-builder__question__deleteObsGroupQuestionButton___wskSy{margin-top:1rem}
1
+ @keyframes -esm-form-builder__markdown__tooltip-appear___-76cb{0%{opacity:0}to{opacity:1}}.-esm-form-builder__markdown__container___tPxf6{position:relative}.-esm-form-builder__markdown__container___tPxf6 .mde-header{background:#f9f9f9;border-bottom:1px solid #c8ccd0;border-radius:2px 2px 0 0;flex-flow:wrap;flex-shrink:0;align-items:stretch;display:flex}.-esm-form-builder__markdown__container___tPxf6 .mde-header .mde-tabs{flex-direction:row;display:flex}.-esm-form-builder__markdown__container___tPxf6 .mde-header .mde-tabs button{cursor:pointer;background-color:#0000;border:1px solid #0000;border-radius:2px;margin:6px 3px}.-esm-form-builder__markdown__container___tPxf6 .mde-header .mde-tabs button:first-child{margin-left:6px}.-esm-form-builder__markdown__container___tPxf6 .mde-header .mde-tabs button.selected{border:1px solid #c8ccd0}.-esm-form-builder__markdown__container___tPxf6 .mde-header .svg-icon{width:1em;height:1em;font-size:inherit;vertical-align:-.125em;display:inline-block;overflow:visible}.-esm-form-builder__markdown__container___tPxf6 .mde-header ul.mde-header-group{flex-flow:row;margin:0;padding:10px;list-style:none;display:flex;display:flex!important}.-esm-form-builder__markdown__container___tPxf6 .mde-header ul.mde-header-group.hidden{visibility:hidden}.-esm-form-builder__markdown__container___tPxf6 .mde-header ul.mde-header-group li.mde-header-item{margin:0 4px;display:inline-block;position:relative}.-esm-form-builder__markdown__container___tPxf6 .mde-header ul.mde-header-group li.mde-header-item button{text-align:left;cursor:pointer;color:#242729;background:0 0;border:none;height:22px;margin:0;padding:4px}.-esm-form-builder__markdown__container___tPxf6 .mde-header ul.mde-header-group li.mde-header-item button.tooltipped:hover:before{opacity:0;z-index:1000001;color:#000c;pointer-events:none;content:"";border:5px solid #0000;border-top-color:#000c;width:0;height:0;margin-right:-5px;animation-name:-esm-form-builder__markdown__tooltip-appear___-76cb;animation-duration:.2s;animation-delay:.5s;animation-fill-mode:forwards;position:absolute;top:-5px;bottom:auto;right:50%}.-esm-form-builder__markdown__container___tPxf6 .mde-header ul.mde-header-group li.mde-header-item button.tooltipped:hover:after{opacity:0;z-index:1000000;color:#fff;pointer-events:none;content:attr(aria-label);white-space:nowrap;background:#000c;border-radius:3px;margin-bottom:5px;padding:5px 8px;font-size:11px;animation-name:-esm-form-builder__markdown__tooltip-appear___-76cb;animation-duration:.2s;animation-delay:.5s;animation-fill-mode:forwards;position:absolute;bottom:100%;right:50%;transform:translate(50%)}.-esm-form-builder__markdown__container___tPxf6 .mde-textarea-wrapper{margin:2px;position:relative}.-esm-form-builder__markdown__container___tPxf6 .mde-textarea-wrapper textarea.mde-text{vertical-align:top;resize:vertical;border:0;width:100%;height:auto;max-height:200px;padding:10px;overflow-y:auto}.-esm-form-builder__markdown__container___tPxf6 .mde-textarea-wrapper textarea:focus{border-radius:3px;outline:none;border:2px solid #00f!important}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content{padding:10px}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content p,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content blockquote,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content ul,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content ol,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content dl,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content table,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content pre{margin-top:0;margin-bottom:16px}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content h1,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content h2,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content h3{border-bottom:1px solid #eee;margin-top:24px;margin-bottom:16px;padding-bottom:.3em;font-weight:600;line-height:1.25}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content h1{font-size:1.6em}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content h2{font-size:1.4em}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content h3{font-size:1.2em}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content ul,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content ol{padding-left:2em}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content blockquote{color:#777;border-left:.25em solid #ddd;margin-left:0;padding:0 1em}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content blockquote>:first-child{margin-top:0}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content blockquote>:last-child{margin-bottom:0}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content code{background-color:#0000000a;border-radius:3px;margin:0;padding:.2em 0;font-size:90%}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content code:before,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content code:after{letter-spacing:-.2em;content:" "}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content pre{background-color:#f7f7f7;border-radius:3px;padding:16px;font-size:85%;line-height:1.45;overflow:auto}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content pre code{line-height:inherit;word-wrap:normal;background-color:#0000;border:0;margin:0;padding:0;display:inline;overflow:visible}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content pre code:before,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content pre code:after{content:none}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content pre>code{word-break:normal;white-space:pre;background:0 0;border:0;margin:0;padding:0;font-size:100%}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content a{color:#4078c0;text-decoration:none}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content a:hover{text-decoration:underline}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content>:first-child{margin-top:0!important}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content>:last-child{margin-bottom:0!important}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content:after{clear:both;content:"";display:table}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content table{border-spacing:0;border-collapse:collapse;width:100%;display:block}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content table thead th{font-weight:700}.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content table th,.-esm-form-builder__markdown__container___tPxf6 .mde-preview .mde-preview-content table td{border:1px solid #c8ccd0;padding:6px 13px}.-esm-form-builder__markdown__container___tPxf6 .react-mde{border:1px solid #c8ccd0;border-radius:2px}.-esm-form-builder__markdown__container___tPxf6 .react-mde *{box-sizing:border-box}.-esm-form-builder__markdown__container___tPxf6 .react-mde .invisible{display:none}.-esm-form-builder__markdown__container___tPxf6 .react-mde .image-tip{-webkit-user-select:none;user-select:none;color:gray;background-color:#f9f9f9;border-top:1px solid #c8ccd0;margin:0;padding:7px 10px;font-size:13px;line-height:16px;position:relative;display:flex!important}.-esm-form-builder__markdown__container___tPxf6 .react-mde .image-tip .image-input{opacity:.01;cursor:pointer;min-height:0;padding:5px;position:absolute;top:0;left:0;width:100%!important}.-esm-form-builder__markdown__container___tPxf6 ul.mde-suggestions{cursor:pointer;background:#fff;border:1px solid #c8ccd0;border-radius:3px;min-width:180px;margin:20px 0 0;padding:0;list-style:none;position:absolute;box-shadow:0 1px 5px #1b1f2326;background-color:#00f!important}.-esm-form-builder__markdown__container___tPxf6 ul.mde-suggestions li{border-bottom:1px solid #e1e4e8;padding:4px 8px}.-esm-form-builder__markdown__container___tPxf6 ul.mde-suggestions li:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.-esm-form-builder__markdown__container___tPxf6 ul.mde-suggestions li:last-child{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.-esm-form-builder__markdown__container___tPxf6 ul.mde-suggestions li:hover,.-esm-form-builder__markdown__container___tPxf6 ul.mde-suggestions li[aria-selected=true]{color:#fff;background-color:#0366d6}.-esm-form-builder__markdown__container___tPxf6 sub{vertical-align:sub}.-esm-form-builder__markdown__container___tPxf6 sup{vertical-align:super}.-esm-form-builder__concept-search__label___o5ui\+{margin-bottom:.25rem}.-esm-form-builder__concept-search__searchContainer___7VR0j{position:relative}.-esm-form-builder__concept-search__error___OCeWK{width:100%;max-width:unset;padding:"0rem";margin-bottom:1rem}.-esm-form-builder__concept-search__loader___bnJKJ{padding:.75rem .5rem}.-esm-form-builder__concept-search__concept___n7Rr1{border-bottom:1px solid #e0e0e0;justify-content:space-between;align-items:center;padding:.75rem;display:flex}.-esm-form-builder__concept-search__concept___n7Rr1:last-of-type{border-bottom:none}.-esm-form-builder__concept-search__concept___n7Rr1[data-retired]{justify-content:flex-start;gap:.25rem}.-esm-form-builder__concept-search__conceptList___FDDR7{z-index:1000;background:#fff;border:1px solid #e0e0e0;border-top:none;max-height:14rem;position:absolute;top:100%;left:0;right:0;overflow-y:auto}.-esm-form-builder__concept-search__conceptList___FDDR7 li:hover{background-color:#e0e0e0}.-esm-form-builder__concept-search__dropdownContainer___u5xIR{z-index:1000;position:absolute;top:100%;left:0;right:0}.-esm-form-builder__concept-search__emptyResults___jTyVE{font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);line-height:var(--cds-body-compact-01-line-height,1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);color:#525252;min-height:1rem}.-esm-form-builder__concept-search__oclLauncherBanner___MPsdO{background-color:#8d8d8d;justify-content:space-between;align-items:center;padding:.5rem 1rem;display:flex}.-esm-form-builder__concept-search__oclLauncherBanner___MPsdO p{color:#fff}.-esm-form-builder__concept-search__oclLink___aBFfJ{color:#edf5ff;align-items:center;display:flex}.-esm-form-builder__concept-search__oclLink___aBFfJ svg{margin-left:.25rem}:root{--brand-01:#005d5d;--brand-02:#004144;--brand-03:#007d79;--bottom-nav-height:4rem;--workspace-header-height:3rem;--tablet-workspace-window-height:calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height:calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-form-builder__sortable-tag__sortableTag___ojQNX{opacity:1;transition:transform .25s}.-esm-form-builder__sortable-tag__sortableTag___ojQNX.-esm-form-builder__sortable-tag__dragging___vMSwX{opacity:.5}.-esm-form-builder__sortable-tag__sortableTagWrapper___Kg-RP,.-esm-form-builder__sortable-tag__dragContainerWhenDragging___ZDdHh{justify-content:space-between;align-items:center;width:100%;padding:0 .75rem 0 .25rem;display:flex}.-esm-form-builder__sortable-tag__dragContainerWhenDragging___ZDdHh{z-index:10;background-color:#ffffff8d;border:1px solid #e0e0e0;transform:scale(.75);box-shadow:0 25px 50px -12px #00000040}.-esm-form-builder__sortable-tag__dragHandle___pqFxT{cursor:grab}.-esm-form-builder__sortable-tag__leftContent___Q7xYQ{align-items:center;display:flex}.-esm-form-builder__sortable-tag__invalid___rdyma{color:#da1e28;background-color:#fff8e1;font-weight:700}.-esm-form-builder__sortable-tag__invalidIcon___SKD9A{color:#da1e28}.-esm-form-builder__select-answers__multiSelect___6s6dl .cds--list-box__field--wrapper{justify-content:space-between;align-items:center;width:100%;height:2.5rem;margin-left:.5rem;display:flex}.-esm-form-builder__select-answers__tag___xLfyA{margin-right:.5rem}.-esm-form-builder__obs-type-question__label___V1dxE{margin-bottom:.5rem}.-esm-form-builder__obs-type-question__table___O8GId,.-esm-form-builder__obs-type-question__tableStriped___5AEgu{width:100%}.-esm-form-builder__obs-type-question__table___O8GId tr,.-esm-form-builder__obs-type-question__tableStriped___5AEgu tr{background-color:#fff;border:1px solid #e0e0e0}.-esm-form-builder__obs-type-question__table___O8GId td,.-esm-form-builder__obs-type-question__tableStriped___5AEgu td,.-esm-form-builder__obs-type-question__table___O8GId th,.-esm-form-builder__obs-type-question__tableStriped___5AEgu th{text-align:left;border:1px solid #e0e0e0;max-width:10rem;padding:.25rem}.-esm-form-builder__obs-type-question__tableStriped___5AEgu thead{font-weight:700}.-esm-form-builder__obs-type-question__tableStriped___5AEgu tbody>tr:nth-child(odd){background-color:#f4f4f4}.-esm-form-builder__program-state-type-question__label___2V95S{margin-bottom:.5rem}.-esm-form-builder__program-state-type-question__loader___yOAXF{padding:.75rem .5rem}.-esm-form-builder__program-state-type-question__error___9EgYn{width:100%;max-width:unset;margin-bottom:1rem;padding:0}.-esm-form-builder__program-state-type-question__tag___-3SsZ{margin-right:.5rem}.-esm-form-builder__patient-identifier-type-question__label___SmDY6{margin-bottom:.5rem}.-esm-form-builder__patient-identifier-type-question__loader___YH\+ES{padding:.75rem .5rem}.-esm-form-builder__test-order-type-question__testOrderContainer___cUcd5{flex-direction:column;gap:1rem;display:flex}.-esm-form-builder__test-order-type-question__selectableOrderItem___y7bhc{background-color:#f4f4f4;border:1px solid #e0e0e0;border-radius:.25rem;padding:1rem}.-esm-form-builder__test-order-type-question__orderFields___AzGqM{grid-template-columns:2fr 1fr auto;align-items:start;gap:1rem;display:grid}.-esm-form-builder__test-order-type-question__conceptField___hkC3C{min-width:0}.-esm-form-builder__test-order-type-question__removeButton___hdacf{min-width:auto;padding:.5rem}.-esm-form-builder__test-order-type-question__addButton___bN-V4{align-self:flex-start}@media (width<=768px){.-esm-form-builder__test-order-type-question__orderFields___AzGqM{grid-template-columns:1fr;gap:.5rem}.-esm-form-builder__test-order-type-question__removeButton___hdacf{justify-self:flex-start}}.-esm-form-builder__person-attribute-type-question__label___LosP2{margin-bottom:.5rem;display:block}.-esm-form-builder__person-attribute-type-question__error___1c-uZ{margin-bottom:1rem}.-esm-form-builder__person-attribute-type-question__loader___lMIpa{margin-top:1rem}.-esm-form-builder__required-label__required___at0FS{color:#da1e28;margin-left:.25rem}.-esm-form-builder__question__questionIdLabel___-n8YP{align-items:center;gap:.5rem;display:flex}.-esm-form-builder__question__form___e4c8f{display:contents}.-esm-form-builder__question__obsGroupQuestionContent___Bo56I .cds--accordion__content{padding-right:0%}.-esm-form-builder__question__deleteObsGroupQuestionButton___wskSy{margin-top:1rem}
package/dist/9103.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"9103.css","sources":["webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/markdown/markdown.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/concept-search/concept-search.scss","webpack://@openmrs/esm-form-builder-app/./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/sortable-tag/sortable-tag.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/select/select-answers.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/obs/obs-type-question.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/program-state/program-state-type-question.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/patient-identifier/patient-identifier-type-question.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/test-order/test-order-type-question.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/person-attribute/person-attribute-type-question.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/required-label/required-label.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question/question.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question.scss"],"names":[],"mappings":"AAAA,0FAgBI,kEAYF,uMAvBkB,sGAqCd,2KAOE,yGAEE,+GAGA,0KAWJ,wKAUA,yGAGE,uJAMA,mNAhFW,odA2GL,sgBAkBA,mGAUV,yMAUE,oJAMA,+FAlJgB,8nBAkKd,oXAWA,qGAGA,qGAGA,qGAGA,2LAIA,iKAMA,uHAEE,yHAGA,0KASF,6NAIE,2LAUF,mNAUE,gNAGE,uLAWF,uHAMF,oHAEE,sHAIF,wHAGA,4HAKA,2JAOA,iHAGI,gOAMF,sGAhSU,mFA2Sd,mFAIA,oRAaA,2LAUE,wRAgBJ,sHAIE,yIA1Vc,wVAKC,uEA0WjB,yEC5WJ,wEAIA,8EAIA,+GAOA,wEAIA,mGAIE,oFAKF,yMAaA,0FAIA,qHAQA,+TAMA,wKAOE,2EAKF,kGAKE,2EC1BF,sUClDA,0FAKA,mHAIA,oOAQA,+LASA,iEAIA,sFAKA,yGAMA,oECzCE,gMAUF,mECXA,yEAIA,4HAGE,sKAKA,sTAYA,kFAIA,6GC7BF,mFAIA,qFAIA,uHAOA,gFCfA,wFAIA,2FCFA,qHAMA,8JAOA,6IAOA,+EAIA,gGAKA,sFAIA,sBACE,sGAKA,4FCzCF,oGAKA,qFAIA,mFCRA,sFCDA,gGCAA,4DAKE,wGAKF"}
1
+ {"version":3,"file":"9103.css","sources":["webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/markdown/markdown.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/concept-search/concept-search.scss","webpack://@openmrs/esm-form-builder-app/./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/sortable-tag/sortable-tag.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/select/select-answers.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/obs/obs-type-question.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/program-state/program-state-type-question.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/patient-identifier/patient-identifier-type-question.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/test-order/test-order-type-question.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/person-attribute/person-attribute-type-question.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/required-label/required-label.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question/question.scss","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question.scss"],"names":[],"mappings":"AAAA,0FAgBI,kEAYF,uMAvBkB,sGAqCd,2KAOE,yGAEE,+GAGA,0KAWJ,wKAUA,yGAGE,uJAMA,mNAhFW,odA2GL,sgBAkBA,mGAUV,yMAUE,oJAMA,+FAlJgB,8nBAkKd,oXAWA,qGAGA,qGAGA,qGAGA,2LAIA,iKAMA,uHAEE,yHAGA,0KASF,6NAIE,2LAUF,mNAUE,gNAGE,uLAWF,uHAMF,oHAEE,sHAIF,wHAGA,4HAKA,2JAOA,iHAGI,gOAMF,sGAhSU,mFA2Sd,mFAIA,oRAaA,2LAUE,wRAgBJ,sHAIE,yIA1Vc,wVAKC,uEA0WjB,yEC5WJ,wEAIA,8EAIA,+GAOA,wEAIA,iKAOE,oFAIA,wGAMF,yMAaA,0FAIA,qHAQA,+TAMA,wKAOE,2EAKF,kGAKE,2EClCF,sUClDA,0FAKA,mHAIA,oOAQA,+LASA,iEAIA,sFAKA,yGAMA,oECzCE,gMAUF,mECXA,yEAIA,4HAGE,sKAKA,sTAYA,kFAIA,6GC7BF,mFAIA,qFAIA,uHAOA,gFCfA,wFAIA,2FCFA,qHAMA,8JAOA,6IAOA,+EAIA,gGAKA,sFAIA,sBACE,sGAKA,4FCzCF,oGAKA,qFAIA,mFCRA,sFCDA,gGCAA,4DAKE,wGAKF"}
package/dist/9103.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([["9103"],{47826(e,t,n){n.r(t),n.d(t,{default:()=>J});var a=n(47499),l=n.n(a),r=n(58779),i=n(13400),s=n(68108),o=n(46718);let u=(0,a.createContext)(void 0),c=({children:e,initialFormField:t,isObsGrouped:n=!1,selectedConcept:r=null,updateParentFormField:i})=>{let[s,o]=(0,a.useState)(t),[c,d]=(0,a.useState)(r),[p,m]=(0,a.useState)(!0),b=(0,a.useCallback)(e=>{if(n){let t="function"==typeof e?e(s):e;o(t),i?.(t)}else o(e)},[n,i,s]);return l().createElement(u.Provider,{value:{formField:s,setFormField:b,concept:c,setConcept:d,isConceptValid:p,setIsConceptValid:m,updateParentFormField:i,isObsGrouped:n}},e)},d=()=>{let e=(0,a.useContext)(u);if(!e)throw Error("useFormField must be used within a FormFieldProvider");return e},p=()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d(),i={datetime:[{value:"both",label:e("calendarAndTimer","Calendar and timer"),defaultChecked:!0}],date:[{value:"calendar",label:e("calendarOnly","Calendar only"),defaultChecked:!1}],time:[{value:"timer",label:e("timerOnly","Timer only"),defaultChecked:!1}]},o=(0,a.useCallback)(e=>{n(t=>({...t,datePickerFormat:e.value}))},[n]);return l().createElement(s.zWQ,{name:"datePickerType",legendText:e("datePickerType","The type of date picker to show ")},Object.values(i).flat().map(e=>l().createElement(s.aaP,{key:`date-picker-type-${e.value}`,id:e.value,checked:t.datePickerFormat&&t.datePickerFormat===e.value,labelText:e.label,onClick:o.bind(null,e),value:e.value})))};var m=n(58365),b=n(29012),g=n(98668),_=n(43627);async function h(e){let t=`${o.restBaseUrl}/concept/${e}?v=full`;return await (0,o.openmrsFetch)(t)}var f=n(79610),q=n(22272);let E={label:"-esm-form-builder__concept-search__label___o5ui+",searchContainer:"-esm-form-builder__concept-search__searchContainer___7VR0j",error:"-esm-form-builder__concept-search__error___OCeWK",loader:"-esm-form-builder__concept-search__loader___bnJKJ",concept:"-esm-form-builder__concept-search__concept___n7Rr1",conceptList:"-esm-form-builder__concept-search__conceptList___FDDR7",dropdownContainer:"-esm-form-builder__concept-search__dropdownContainer___u5xIR",emptyResults:"-esm-form-builder__concept-search__emptyResults___jTyVE",oclLauncherBanner:"-esm-form-builder__concept-search__oclLauncherBanner___MPsdO",oclLink:"-esm-form-builder__concept-search__oclLink___aBFfJ"},y=({label:e,defaultConcept:t,onClearSelectedConcept:n,onSelectConcept:i,retainConceptInContextAfterSearch:u=!1,clearSearchAfterSelection:c=!1})=>{let{t:p}=(0,r.useTranslation)(),[m,b]=(0,a.useState)(""),g=(0,o.useDebounce)(m),{concepts:_,conceptLookupError:h,isLoadingConcepts:y}=function(e){let t=`${o.restBaseUrl}/concept?q=${e}&v=full`,{data:n,error:a,isLoading:l}=(0,q.u)(e?t:null,o.openmrsFetch);return{concepts:n?.data?.results??[],conceptLookupError:a,isLoadingConcepts:l}}(g),{concept:O,conceptName:k,conceptNameLookupError:v,isLoadingConcept:C}=function(e){let t=`${o.restBaseUrl}/concept/${e}?v=full`,{data:n,error:a}=(0,q.u)(e?t:null,o.openmrsFetch);return{concept:n?.data??null,conceptName:n?.data?.display??null,conceptNameLookupError:a,isLoadingConcept:e&&!n&&!a||!1}}(t),[T,x]=(0,a.useState)(O),{concept:w,setConcept:S,setIsConceptValid:F}=d();(0,a.useEffect)(()=>{u&&O&&!w&&S(O)},[O,u,w,S]);let I=(0,a.useCallback)(e=>b(e.target.value),[]);(0,a.useEffect)(()=>{(h||v)&&F(!1)},[h,v,F]);let N=(0,a.useCallback)(()=>{x(null),b(""),F(!0),n&&n()},[n,F]),P=(0,a.useCallback)(e=>{b(""),x(e),i(e),F(!0),c&&N()},[i,F,N,c]);return l().createElement(l().Fragment,null,l().createElement(s.lRv,{className:E.label},e??p("searchForBackingConcept","Search for a backing concept")),(h||v)&&l().createElement(s.jeF,{kind:"error",lowContrast:!0,className:E.error,title:h?p("errorFetchingConcepts","Error fetching concepts"):p("errorFetchingConceptName","Couldn't resolve concept name"),subtitle:h?p("pleaseTryAgain","Please try again."):p("conceptDoesNotExist","The linked concept '{{conceptName}}' does not exist in your dictionary",{conceptName:t})}),l().createElement("div",{className:E.searchContainer},C?l().createElement(s.OuH,{className:E.loader,description:p("loading","Loading")+"..."}):l().createElement(s.vji,{id:"conceptLookup",onClear:N,onChange:I,labelText:p("searchForBackingConcept","Search for a backing concept"),placeholder:p("searchConcept","Search using a concept name or UUID"),size:"md",value:m||(T?T.display:k||"")}),m?y?l().createElement(s.OuH,{className:E.loader,description:p("searching","Searching")+"..."}):_?.length&&!y?l().createElement("ul",{className:E.conceptList},_?.map((e,t)=>l().createElement("li",{role:"menuitem",className:E.concept,key:t,onClick:()=>P(e)},e.display))):l().createElement("div",{className:E.dropdownContainer},l().createElement(s.Wdr,null,l().createElement(s.FAs,{className:E.emptyResults},l().createElement("span",null,p("noMatchingConcepts","No concepts were found that match")," ",l().createElement("strong",null,'"',g,'".'))),l().createElement("div",{className:E.oclLauncherBanner},l().createElement("p",{className:E.bodyShort01},p("conceptSearchHelpText","Can't find a concept?")),l().createElement("a",{className:E.oclLink,target:"_blank",rel:"noopener noreferrer",href:"https://app.openconceptlab.org/"},p("searchInOCL","Search in OCL"),l().createElement(f.F1,{size:16}))))):null))};var O=n(46942),k=n.n(O),v=n(74979),C=n(40771),T=n(55576),x=n(2383);let w=({id:e,text:t,onDelete:n,isInvalid:a})=>{let{t:i}=(0,r.useTranslation)(),{attributes:o,listeners:u,setNodeRef:c,transform:d,transition:p,isDragging:m}=(0,_.gl)({id:e}),b={transform:v.Ks.Transform.toString(d),transition:p};return l().createElement("div",{ref:c,style:b,className:k()("-esm-form-builder__sortable-tag__sortableTagWrapper___Kg-RP",{"-esm-form-builder__sortable-tag__dragContainerWhenDragging___ZDdHh":m,"-esm-form-builder__sortable-tag__invalid___rdyma":a})},l().createElement("div",{className:"-esm-form-builder__sortable-tag__leftContent___Q7xYQ"},l().createElement("div",{...o,...u,className:"-esm-form-builder__sortable-tag__dragHandle___pqFxT"},l().createElement(s.K0,{kind:"ghost",size:"md",label:i("dragToReorder","Drag to reorder")},l().createElement(C.sx,null))),l().createElement("span",{className:k()("-esm-form-builder__sortable-tag__sortableTag___ojQNX",{"-esm-form-builder__sortable-tag__dragging___vMSwX":m})},t)),l().createElement("div",null,n&&l().createElement(s.K0,{enterDelayMs:300,label:i("deleteAnswer","Delete answer"),kind:"ghost",onClick:n,size:"md"},l().createElement(T.zH,null)),a&&l().createElement(x.OR,{className:"-esm-form-builder__sortable-tag__invalidIcon___SKD9A","aria-label":"Invalid answer",size:16})))},S={multiSelect:"-esm-form-builder__select-answers__multiSelect___6s6dl",tag:"-esm-form-builder__select-answers__tag___xLfyA"},F=()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,concept:n,setFormField:i}=d(),[o,u]=(0,a.useState)([]),[c,p]=(0,a.useState)([]),m=(0,a.useRef)(null);(0,a.useEffect)(()=>{n||u([])},[n]),(0,a.useEffect)(()=>{if(n&&m.current!==n.uuid&&(m.current=n.uuid,n.answers?.length&&!t.questionOptions?.answers?.length)){let e=n.answers.map(e=>({concept:e.uuid,label:e.display}));i(t=>({...t,questionOptions:{...t.questionOptions,answers:e}}))}},[n,t.questionOptions?.answers,i]);let b=(0,a.useMemo)(()=>(t.questionOptions?.answers?.map(e=>({id:e.concept,text:e.label}))??[]).filter(e=>!o.some(t=>t.id===e.id)),[t.questionOptions?.answers,o]),f=(0,a.useCallback)(({selectedItems:e})=>{let t=e.filter(e=>"select-all"!==e.id).map(e=>({concept:e.id,label:e.text}));i(e=>JSON.stringify(e.questionOptions?.answers||[])===JSON.stringify(t)?e:{...e,questionOptions:{...e.questionOptions,answers:t}})},[i]),q=(0,a.useCallback)(e=>{let t={id:e.uuid,text:e.display},n=b.some(e=>e.id===t.id),a=o.some(e=>e.id===t.id);n||a||(u(e=>[...e,t]),i(t=>{let n=t.questionOptions?.answers??[];return n.push({concept:e.uuid,label:e.display}),{...t,questionOptions:{...t.questionOptions,answers:n}}}))},[b,o,i]),E=(0,a.useCallback)(e=>{u(t=>t.filter(t=>t.id!==e)),i(t=>{let n=t.questionOptions?.answers??[];return{...t,questionOptions:{...t.questionOptions,answers:n.filter(t=>t.concept!==e)}}})},[i]),O=(0,a.useMemo)(()=>{let a=n?.answers?.map(e=>({id:e.uuid,text:e.display}))??[],l=t.questionOptions?.answers??[];if(0===a.length&&l.length>0)return[...l.map(e=>({id:e.concept,text:e.label})),{id:"select-all",text:e("selectAllOptions","Select all options"),isSelectAll:!0}];let r=new Map(l.map(e=>[e.concept,e.label]));return[...a.map(e=>({id:e.id,text:r.get(e.id)??e.text})),...l.filter(e=>!a.some(t=>t.id===e.concept)).map(e=>({id:e.concept,text:e.label})),{id:"select-all",text:e("selectAllOptions","Select all options"),isSelectAll:!0}]},[n?.answers,t.questionOptions?.answers,e]),k=(0,a.useCallback)(async()=>{if(!O.length)return void p([]);let e=new Set((n?.answers||[]).map(e=>e.uuid)),t=[];for(let n of Array.from(new Map(O.filter(e=>"select-all"!==e.id).map(e=>[e.id,e])).values()))if(!e.has(n.id))try{let e=await h(n.id);e?.data?.uuid!==n.id&&t.push(n.id)}catch(e){t.push(n.id)}p(t)},[O,n]);(0,a.useEffect)(()=>{n?.answers?.length&&k()},[O,n,k]);let v=(0,a.useCallback)(e=>e.text,[]),C=(0,a.useCallback)(e=>{let{active:t,over:n}=e;n&&t.id!==n.id&&i(e=>{let a=e.questionOptions?.answers??[],l=a.findIndex(e=>e.concept===t.id),r=a.findIndex(e=>e.concept===n.id);if(-1===l||-1===r)return e;let i=(0,_.be)(a,l,r);return{...e,questionOptions:{...e.questionOptions,answers:i}}})},[i]),T=(0,a.useCallback)(e=>{let{active:t,over:n}=e;n&&t.id!==n.id&&u(e=>{let a=e.findIndex(e=>e.id===t.id),l=e.findIndex(e=>e.id===n.id);return -1===a||-1===l?e:(0,_.be)(e,a,l)})},[u]);return l().createElement(s.BJc,{gap:5},O.length>1&&l().createElement(s.KFt,{className:S.multiSelect,direction:"bottom",id:"selectAnswers",items:O,itemToString:v,label:"",onChange:f,size:"md",selectedItems:b,titleText:e("selectAnswersToDisplay","Select answers to display")}),b.length>0&&l().createElement(g.Mp,{onDragEnd:C},l().createElement(_.gB,{items:b,strategy:_._G},l().createElement("div",null,b.map(e=>l().createElement(w,{key:e.id,id:e.id,text:e.text,isInvalid:c.includes(e.id)}))))),c.length>0&&l().createElement(s.jeF,{kind:"error",lowContrast:!0,className:S.error,title:e("invalidAnswerConcept","Invalid Answer Concept Detected"),subtitle:e("answerConceptValidation","One or more selected answer concepts do not exist in the system. ")}),n&&n.datatype?.name==="Coded"&&l().createElement(l().Fragment,null,l().createElement(y,{label:e("searchForAnswerConcept","Search for a concept to add as an answer"),onSelectConcept:q,clearSearchAfterSelection:!0}),o.length>0&&l().createElement(g.Mp,{onDragEnd:T},l().createElement(_.gB,{items:o,strategy:_._G},l().createElement("div",null,o.map(e=>l().createElement(w,{key:e.id,id:e.id,text:e.text,onDelete:()=>E(e.id)})))))))},I=["control","encounterDatetime","encounterLocation","encounterProvider","encounterRole","obs","obsGroup","patientIdentifier","personAttribute","testOrder","programState"],N=["checkbox","checkbox-searchable","content-switcher","date","datetime","drug","encounter-location","encounter-provider","encounter-role","fixed-value","file","group","number","problem","radio","repeating","select","text","textarea","toggle","ui-select-extended","workspace-launcher","markdown","extension-widget","select-concept-answers"],P={control:["text","markdown"],encounterDatetime:["date","datetime"],encounterLocation:["ui-select-extended"],encounterProvider:["ui-select-extended"],encounterRole:["ui-select-extended"],obs:N,obsGroup:["group","repeating"],personAttribute:["text","select","date","radio","checkbox","textarea","toggle","ui-select-extended"],testOrder:["group","repeating"],patientIdentifier:["text"],programState:["select"]},L={number:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d();return l().createElement(l().Fragment,null,l().createElement(s.ksK,{id:"min",labelText:e("minValue","Min value that can be entered"),value:t.questionOptions?.min??"",invalid:parseFloat(t.questionOptions?.min??"")>parseFloat(t.questionOptions?.max??""),invalidText:parseFloat(t.questionOptions?.min??"")>parseFloat(t.questionOptions?.max??"")?e("invalidMinMax","Min value cannot be greater than max"):"",onChange:e=>{n({...t,questionOptions:{...t.questionOptions,min:e.target.value}})}}),l().createElement(s.ksK,{id:"max",labelText:e("maxValue","Max value that can be entered"),value:t.questionOptions?.max??"",invalid:parseFloat(t.questionOptions?.min??"")>parseFloat(t.questionOptions?.max??""),invalidText:parseFloat(t.questionOptions?.min??"")>parseFloat(t.questionOptions?.max??"")?e("invalidMinMax","Min value cannot be greater than max"):"",onChange:e=>{n({...t,questionOptions:{...t.questionOptions,max:e.target.value}})}}))},text:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d(),i=(0,a.useCallback)(()=>parseFloat(t.questionOptions?.minLength??"")>parseFloat(t.questionOptions?.maxLength??""),[t.questionOptions?.maxLength,t.questionOptions?.minLength]),o=(0,a.useCallback)(()=>i()?e("invalidMinMax","Min value cannot be greater than max"):"",[i,e]);return l().createElement(l().Fragment,null,l().createElement(s.ksK,{id:"minLength",labelText:e("minLengthOfCharacters","Min length of characters"),value:t.questionOptions?.minLength??"",invalid:i(),invalidText:o(),onChange:e=>{n({...t,questionOptions:{...t.questionOptions,minLength:e.target.value}})}}),l().createElement(s.ksK,{id:"maxLength",labelText:e("maxLengthOfCharacters","Max length of characters"),value:t.questionOptions?.maxLength??"",invalid:i(),invalidText:o(),onChange:e=>{n({...t,questionOptions:{...t.questionOptions,maxLength:e.target.value}})}}))},textarea:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d();return l().createElement(s.ksK,{id:"textAreaRows",labelText:e("rows","Rows"),value:t.questionOptions?.rows?t.questionOptions.rows.toString():"",onChange:e=>{n({...t,questionOptions:{...t.questionOptions,rows:parseInt(e.target.value)}})}})},toggle:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d();return l().createElement(l().Fragment,null,l().createElement(s.ksK,{id:"labelTrue",labelText:e("labelTrue","Label true"),value:t.questionOptions?.toggleOptions?.labelTrue??"",onChange:e=>{n({...t,questionOptions:{...t.questionOptions,toggleOptions:{...t.questionOptions.toggleOptions,labelTrue:e.target.value}}})},placeholder:e("on","On")}),l().createElement(s.ksK,{id:"labelFalse",labelText:e("labelFalse","Label false"),value:t.questionOptions?.toggleOptions?.labelFalse??"",onChange:e=>{n({...t,questionOptions:{...t.questionOptions,toggleOptions:{...t.questionOptions.toggleOptions,labelFalse:e.target.value}}})},placeholder:e("off","Off")}))},"ui-select-extended":()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d();return l().createElement(l().Fragment,null,l().createElement(s.zWQ,{defaultSelected:"notSearchable",name:"isUiSelectSearchable",legendText:e("isUiSelectSearchable","Is the ui-select-extended rendering searchable")},l().createElement(s.aaP,{id:"uiSelectNotSearchable",checked:!t.questionOptions?.isSearchable,labelText:e("notSearchable","Not Searchable"),onClick:()=>{n({...t,questionOptions:{...t.questionOptions,isSearchable:!1}})},value:"notSearchable"}),l().createElement(s.aaP,{id:"uiSelectSearchable",checked:t.questionOptions?.isSearchable,labelText:e("searchable","Searchable"),onClick:()=>{n({...t,questionOptions:{...t.questionOptions,isSearchable:!0}})},value:"searchable"})))},date:p,datetime:p,markdown:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d(),[a,i]=l().useState("write");return l().createElement("div",{className:"-esm-form-builder__markdown__container___tPxf6"},l().createElement(m.default,{value:t.value,onChange:e=>{n({...t,value:e})},selectedTab:a,onTabChange:()=>{i(e=>"write"===e?"preview":"write")},toolbarCommands:[["bold","italic"]],generateMarkdownPreview:e=>Promise.resolve(l().createElement(b.o,{children:Array.isArray(e)?e.join("\n"):e})),childProps:{writeButton:{tabIndex:-1}},loadingPreview:e("loadingPreview","Loading preview...")}))},select:F,radio:F,checkbox:F},A=()=>{let{formField:e}=d(),t=e.type&&"obs"!==e.type?P[e.type]:N,n=t?.includes(e.questionOptions?.rendering)&&"programState"!==e.type?L[e.questionOptions?.rendering]:null;return n?l().createElement(n,null):(e.questionOptions?.rendering&&console.error(`No component found for rendering type: ${e.questionOptions.rendering} or a rendering type is not available for ${e.type}`),null)},R="-esm-form-builder__obs-type-question__label___V1dxE",M="-esm-form-builder__obs-type-question__tableStriped___5AEgu",$=()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n,concept:i,setConcept:o}=d(),[u,c]=(0,a.useState)(null);(0,a.useEffect)(()=>{t.questionOptions?.concept&&c(t.questionOptions.concept)},[t.questionOptions?.concept]);let p=(0,a.useCallback)(e=>{switch(e.datatype.name){case"Datetime":return"both";case"Date":return"calendar";case"Time":return"timer";default:return null}},[]),m=(0,a.useCallback)(e=>{if(e){o(e);let t=p(e);n(n=>({...n,questionOptions:{...n.questionOptions,concept:e.uuid},...t&&{datePickerFormat:t}}))}},[p,n,o]),b=(0,a.useCallback)(()=>{o(null),c(null),n(e=>{let t={...e};return t.questionOptions&&(delete t.questionOptions.concept,delete t.questionOptions.answers),t.datePickerFormat&&delete t.datePickerFormat,t})},[n,o]),g=(0,a.useCallback)(e=>{let t=`${e.type}:${e.value}`;c(t),n(e=>({...e,questionOptions:{...e.questionOptions,concept:t}}))},[n]),_=(0,a.useCallback)(()=>{c(null),i&&n(e=>({...e,questionOptions:{...e.questionOptions,concept:i.uuid}}))},[i,n]),h=(0,a.useMemo)(()=>i&&i.mappings?i.mappings.map(e=>{let t=e.display.split(": ");return{relationship:e.conceptMapType.display,type:t[0],value:t[1]}}):[],[i]),f=h.some(e=>"SAME-AS"===e.relationship);return l().createElement(s.BJc,{gap:5},l().createElement(y,{defaultConcept:t.questionOptions?.concept??null,onClearSelectedConcept:b,onSelectConcept:m,retainConceptInContextAfterSearch:!0}),i?.allowDecimal===!1&&l().createElement(s.jeF,{kind:"info",lowContrast:!0,title:e("decimalsNotAllowed","This concept does not allow decimals")}),(i?.conceptClass?.display||i?.datatype?.display||i?.uuid)&&l().createElement(s.gE_,{legendText:""},l().createElement(s.lRv,{className:R},e("attributes","Attributes")),l().createElement("table",{className:M},l().createElement("thead",null,l().createElement("tr",null,l().createElement("th",null,e("attributes","Attributes")),l().createElement("th",null,e("value","Value")))),l().createElement("tbody",null,l().createElement("tr",null,l().createElement("td",null,e("class","Class")),l().createElement("td",null,i?.conceptClass?.display||"")),l().createElement("tr",null,l().createElement("td",null,e("datatype","Data Type")),l().createElement("td",null,i?.datatype?.display||"")),l().createElement("tr",null,l().createElement("td",null,e("conceptId","Concept ID")),l().createElement("td",null,i?.uuid||""))))),h.length>0&&l().createElement(s.gE_,{legendText:""},l().createElement(s.lRv,{className:R},e("mappings","Mappings")),l().createElement("table",{className:M},l().createElement("thead",null,l().createElement("tr",null,l().createElement("th",null,e("relationship","Relationship")),l().createElement("th",null,e("source","Source")),l().createElement("th",null,e("code","Code")),f&&l().createElement("th",null,e("select","Select")))),l().createElement("tbody",null,h.map((e,t)=>l().createElement("tr",{key:`mapping-${t}`},l().createElement("td",null,e.relationship),l().createElement("td",null,e.type),l().createElement("td",null,e.value),f&&l().createElement("td",null,"SAME-AS"===e.relationship&&l().createElement(s.Sc0,{id:`checkbox-${t}`,labelText:"",checked:u===`${e.type}:${e.value}`,onChange:()=>{u===`${e.type}:${e.value}`?_():g(e)}}))))))))},D="-esm-form-builder__program-state-type-question__error___9EgYn",B={label:"-esm-form-builder__patient-identifier-type-question__label___SmDY6",loader:"-esm-form-builder__patient-identifier-type-question__loader___YH+ES"};var Q=n(92137);let U="-esm-form-builder__person-attribute-type-question__error___1c-uZ",K={obs:$,programState:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d(),{programs:i,programsLookupError:u,isLoadingPrograms:c}=function(){let e=`${o.restBaseUrl}/program?v=custom:(uuid,name,retired,allWorkflows)`,{data:t,error:n,isLoading:a}=(0,q.u)(e,o.openmrsFetch);return{programs:t?t?.data?.results:[],programsLookupError:n,isLoadingPrograms:a}}(),[p,m]=(0,a.useState)(),[b,g]=(0,a.useState)(),[_,h]=(0,a.useState)([]),{programStates:f,programStatesLookupError:E,isLoadingProgramStates:y,mutateProgramStates:O}=function(e){let t=`${o.restBaseUrl}/workflow/${e}?v=custom:(uuid,retired,states,concept:(uuid,display))`,{data:n,error:a,isLoading:l,mutate:r}=(0,q.u)(e?t:null,o.openmrsFetch);return{programStates:n?.data?.states??[],programStatesLookupError:a,isLoadingProgramStates:l,mutateProgramStates:r}}(b?.uuid),k=(0,a.useMemo)(()=>{if(!t.questionOptions?.answers||!f.length)return[];let e=new Set(t.questionOptions.answers.map(e=>e.value));return f.filter(t=>e.has(t.uuid))},[t.questionOptions?.answers,f]),v=(0,a.useCallback)(e=>{m(e),g(null),h(e?.allWorkflows??[]),n(t=>{if(e)return{...t,questionOptions:{...t.questionOptions,programUuid:e.uuid}};let n={...t.questionOptions};return delete n.programUuid,delete n.workflowUuid,delete n.answers,{...t,questionOptions:n}})},[n]),C=(0,a.useCallback)(e=>{g(e),O(),n(t=>{if(e)return{...t,questionOptions:{...t.questionOptions,workflowUuid:e.uuid}};let n={...t.questionOptions};return delete n.workflowUuid,delete n.answers,{...t,questionOptions:n}})},[O,n]),T=(0,a.useCallback)(e=>{n({...t,questionOptions:{...t.questionOptions,answers:e.selectedItems.map(e=>({value:e.uuid,label:e.concept.display}))}})},[t,n]);(0,a.useEffect)(()=>{let e=i.find(e=>e.uuid===t.questionOptions?.programUuid);if(e&&(m(e),h(e.allWorkflows),t.questionOptions.workflowUuid)){let n=e.allWorkflows.find(e=>e.uuid===t.questionOptions?.workflowUuid);n&&g(n)}},[t.questionOptions?.programUuid,t.questionOptions?.workflowUuid,i]);let x=(0,a.useCallback)(e=>e.concept.display,[]);return l().createElement(s.BJc,{gap:5},l().createElement(s.lRv,{className:"-esm-form-builder__program-state-type-question__label___2V95S"},e("selectProgram","Select a program")),u&&l().createElement(s.jeF,{kind:"error",lowContrast:!0,className:D,title:e("errorFetchingPrograms","Error fetching programs"),subtitle:e("pleaseTryAgain","Please try again.")}),c?l().createElement(s.aB4,null):i.length>0&&l().createElement(s.a32,{id:"programLookup",items:i,itemToString:e=>e?.name,onChange:({selectedItem:e})=>{v(e)},placeholder:e("addProgram","Add program"),selectedItem:p,titleText:e("program","Program"),initialSelectedItem:i.find(e=>e?.uuid===t.questionOptions?.programUuid)}),p&&l().createElement(s.a32,{id:"programWorkflowLookup",items:_,itemToString:e=>e?.concept?.display,onChange:({selectedItem:e})=>C(e),placeholder:e("addProgramWorkflow","Add program workflow"),selectedItem:b,titleText:e("programWorkflow","Program workflow"),initialSelectedItem:_.find(e=>e?.uuid===t.questionOptions?.workflowUuid)}),b&&l().createElement("div",null,E&&l().createElement(s.jeF,{kind:"error",lowContrast:!0,className:D,title:e("errorFetchingProgramState","Error fetching program state"),subtitle:e("pleaseTryAgain","Please try again.")}),y?l().createElement(s.aB4,null):f?.length>0&&l().createElement(s.KFt,{titleText:e("programState","Program state"),id:"programState",items:f,itemToString:x,label:"",selectionFeedback:"top-after-reopen",onChange:T,selectedItems:k}),k?.map(e=>l().createElement("div",{key:e.uuid},l().createElement(s.vwO,{className:"-esm-form-builder__program-state-type-question__tag___-3SsZ",type:"blue"},e?.concept?.display)))))},patientIdentifier:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d(),{patientIdentifierTypes:i,patientIdentifierTypeLookupError:u,isLoadingPatientIdentifierTypes:c}=function(){let e=`${o.restBaseUrl}/patientidentifiertype?v=custom:(uuid,display,name,description)`,{data:t,error:n,isLoading:a}=(0,q.u)(e,o.openmrsFetch);return{patientIdentifierTypes:t?.data?.results??[],patientIdentifierTypeLookupError:n,isLoadingPatientIdentifierTypes:a}}(),[p,m]=(0,a.useState)(t.questionOptions?.identifierType?i.find(e=>e.uuid===t.questionOptions.identifierType):null),b=(0,a.useCallback)(e=>e?.display??"",[]);return l().createElement("div",null,l().createElement(s.lRv,{className:B.label},e("searchForBackingPatientIdentifierType","Search for a backing patient identifier type")),u&&l().createElement(s.jeF,{kind:"error",lowContrast:!0,className:B.error,title:e("errorFetchingPatientIdentifierTypes","Error fetching patient identifier types"),subtitle:e("pleaseTryAgain","Please try again.")}),c?l().createElement(s.OuH,{className:B.loader,description:e("loading","Loading")+"..."}):l().createElement(s.a32,{helperText:e("patientIdentifierTypeHelperText","Patient identifier type fields must be linked to a patient identifier type"),id:"patientIdentifierTypeLookup",items:i,itemToString:b,onChange:({selectedItem:e})=>{m(e),n({...t,questionOptions:{...t.questionOptions,identifierType:e.uuid}})},placeholder:e("choosePatientIdentifierType","Choose a patient identifier type"),selectedItem:p,initialSelectedItem:i.find(e=>e?.uuid===t.questionOptions?.identifierType)}))},obsGroup:$,testOrder:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d(),i=(0,a.useMemo)(()=>t.questionOptions?.selectableOrders||[],[t.questionOptions?.selectableOrders]),o=(0,a.useCallback)(e=>{n(t=>({...t,questionOptions:{...t.questionOptions,concept:e}}))},[n]),u=(0,a.useCallback)(()=>{let e={concept:"",label:""};n(t=>({...t,questionOptions:{...t.questionOptions,selectableOrders:[...i,e]}}))},[i,n]),c=(0,a.useCallback)(e=>{let t=i.filter((t,n)=>n!==e);n(e=>({...e,questionOptions:{...e.questionOptions,selectableOrders:t}}))},[i,n]),p=(0,a.useCallback)((e,t,a)=>{let l=i.map((n,l)=>l===e?{...n,[t]:a}:n);n(e=>({...e,questionOptions:{...e.questionOptions,selectableOrders:l}}))},[i,n]),m=(0,a.useCallback)((e,t)=>{p(e,"concept",t)},[p]);return l().createElement("div",{className:"-esm-form-builder__test-order-type-question__testOrderContainer___cUcd5"},l().createElement(y,{defaultConcept:t.questionOptions?.concept,onSelectConcept:e=>o(e.uuid)}),l().createElement(s.gE_,{legendText:e("selectableOrders","Selectable Orders")},l().createElement(s.BJc,{gap:4},i.map((t,n)=>l().createElement("div",{key:n,className:"-esm-form-builder__test-order-type-question__selectableOrderItem___y7bhc"},l().createElement("div",{className:"-esm-form-builder__test-order-type-question__orderFields___AzGqM"},l().createElement("div",{className:"-esm-form-builder__test-order-type-question__conceptField___hkC3C"},l().createElement(y,{defaultConcept:t.concept,onSelectConcept:e=>m(n,e.uuid)})),l().createElement(s.ksK,{id:`order-label-${n}`,labelText:e("label","Label"),value:t.label,onChange:e=>p(n,"label",e.target.value),placeholder:e("enterOrderLabel","Enter order label")}),l().createElement(s.$nd,{kind:"ghost",size:"md",renderIcon:T.zH,iconDescription:e("removeOrder","Remove order"),onClick:()=>c(n),className:"-esm-form-builder__test-order-type-question__removeButton___hdacf"})))),l().createElement(s.$nd,{kind:"tertiary",size:"md",renderIcon:Q.OM,onClick:u,className:"-esm-form-builder__test-order-type-question__addButton___bN-V4"},e("addSelectableOrder","Add selectable order")))))},personAttribute:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d(),{personAttributeTypes:i,personAttributeTypeLookupError:u,isLoadingPersonAttributeTypes:c}=function(){let e=`${o.restBaseUrl}/personattributetype?v=custom:(uuid,display,format,concept)`,{data:t,error:n,isLoading:a}=(0,q.u)(e,o.openmrsFetch);return{personAttributeTypes:t?.data?.results??[],personAttributeTypeLookupError:n,isLoadingPersonAttributeTypes:a}}(),p=t.questionOptions?.attributeType,[m,b]=(0,a.useState)(null),[g,_]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(p&&i.length>0){let e=i.find(e=>e.uuid===p);e?(b(e),_(!1)):(b(null),_(!0))}else p||(b(null),_(!1))},[p,i]);let h=(0,a.useCallback)(e=>e?.display??"",[]);return l().createElement("div",null,l().createElement(s.lRv,{className:"-esm-form-builder__person-attribute-type-question__label___LosP2"},e("searchForBackingPersonAttributeType","Search for a backing person attribute type")),g&&l().createElement(s.jeF,{kind:"warning",lowContrast:!0,className:U,title:e("invalidPersonAttributeType","Invalid person attribute type"),subtitle:e("personAttributeTypeNotFound","The configured person attribute type ({{uuid}}) was not found. It may have been deleted or retired.",{uuid:p})}),u&&l().createElement(s.jeF,{kind:"error",lowContrast:!0,className:U,title:e("errorFetchingPersonAttributeTypes","Error fetching person attribute types"),subtitle:e("pleaseTryAgain","Please try again.")}),c?l().createElement(s.OuH,{className:"-esm-form-builder__person-attribute-type-question__loader___lMIpa",description:e("loading","Loading")+"..."}):l().createElement(s.a32,{disabled:!!u,helperText:e("personAttributeTypeHelperText","Person attribute type fields must be linked to a person attribute type"),id:"personAttributeTypeLookup",items:i,itemToString:h,onChange:({selectedItem:e})=>{b(e),n({...t,questionOptions:{...t.questionOptions,attributeType:e?.uuid}})},placeholder:e("choosePersonAttributeType","Choose a person attribute type"),selectedItem:m}))}},z=()=>{let{formField:e}=d(),t=K[e.type];return t?l().createElement(t,null):(console.error(`No component found for questiontype: ${e.type}`),null)},W=({isRequired:e,text:t,t:n})=>l().createElement(l().Fragment,null,l().createElement("span",null,t),e&&l().createElement("span",{title:n("required","Required"),className:"-esm-form-builder__required-label__required___at0FS"},"*")),j=({checkIfQuestionIdExists:e})=>{let{t}=(0,r.useTranslation)(),{formField:n,setFormField:i}=d(),[o,u]=(0,a.useState)(!!n?.questionInfo),c=(0,a.useCallback)(()=>e(n.id),[n.id,e]),p=(0,a.useCallback)(e=>{i(t=>{if("false"===e){let{questionInfo:e,...n}=t;return n}return t}),u("true"===e)},[i]),m=(0,a.useCallback)(e=>{let t=e.target.value;i(e=>e?.questionOptions?.rendering&&"obs"!==t&&!(I.includes(t)&&P[t]?.includes(e.questionOptions.rendering))?{...e,questionOptions:{...e.questionOptions,rendering:null},type:t}:{...e,type:t})},[i]),b=(0,a.useCallback)(e=>{i(t=>({...t,questionInfo:e.target.value}))},[i]);return l().createElement(s.BJc,{gap:5},n.questionOptions&&"markdown"!==n.questionOptions.rendering&&l().createElement(s.ksK,{id:"questionLabel",labelText:l().createElement(W,{isRequired:!0,text:t("questionLabel","Label"),t:t}),placeholder:t("labelPlaceholder","e.g. Type of Anaesthesia"),value:n?.label,onChange:e=>i({...n,label:e.target.value}),required:!0}),l().createElement(s.ksK,{id:"questionId",invalid:!!n?.id&&c(),invalidText:t("questionIdExists","This question ID already exists in your schema"),labelText:l().createElement("div",{className:"-esm-form-builder__question__questionIdLabel___-n8YP"},l().createElement("span",null,l().createElement(W,{isRequired:!0,text:t("questionId","Question ID"),t:t})),n?.label&&l().createElement(s.$nd,{kind:"ghost",onClick:()=>{let e=n.label?.toLowerCase()?.replace(/(?:^\w|[A-Z]|\b\w)/g,(e,t)=>0===t?e.toLowerCase():e.toUpperCase()).replace(/\s+/g,"");i({...n,id:e})},size:"sm"},t("convertLabelToCamelCase","Convert label to camel-case"))),helperText:t("questionIdHelper","Prefer camel-case; must be unique within this form"),value:n?.id,onChange:e=>{i({...n,id:e.target.value})},placeholder:t("questionIdPlaceholder",'Enter a unique ID e.g. "anaesthesiaType" for a question asking about the type of anaesthesia.'),required:!0}),l().createElement(s.l6P,{value:n?.type??"control",onChange:m,id:"questionType",invalidText:t("typeRequired","Type is required"),labelText:l().createElement(W,{isRequired:!0,text:t("questionType","Question type"),t:t}),required:!0},!n?.type&&l().createElement(s.ebT,{text:t("chooseQuestionType","Choose a question type"),value:""}),I.map((e,t)=>l().createElement(s.ebT,{text:e,value:e,key:t}))),l().createElement(s.l6P,{value:n?.questionOptions?.rendering,onChange:e=>{i(null===n?{...n,questionOptions:{rendering:e.target.value}}:{...n,questionOptions:{...n.questionOptions,rendering:e.target.value}})},id:"renderingType",invalidText:t("validRenderingTypeRequired","A valid rendering type value is required"),labelText:l().createElement(W,{isRequired:!0,text:t("renderingType","Rendering type"),t:t}),required:!0},!n.questionOptions?.rendering&&l().createElement(s.ebT,{text:t("chooseRenderingType","Choose a rendering type"),value:""}),n.type&&"obs"!==n.type&&I.includes(n.type)?P[n?.type].map((e,t)=>l().createElement(s.ebT,{key:`${e}-${t}`,text:e,value:e})):N.map((e,t)=>l().createElement(s.ebT,{key:t,text:e,value:e}))),n.questionOptions&&"markdown"!==n.questionOptions.rendering&&l().createElement(l().Fragment,null,l().createElement(s.zWQ,{name:"isQuestionRequired",legendText:t("isQuestionRequiredOrOptional","Is this question a required or optional field? Required fields must be answered before the form can be submitted.")},l().createElement(s.aaP,{id:"questionIsNotRequired",checked:!n.required||!n.required,labelText:t("optional","Optional"),onClick:()=>i({...n,required:!1}),value:"optional"}),l().createElement(s.aaP,{id:"questionIsRequired",checked:!!n.required,labelText:t("required","Required"),onClick:()=>i({...n,required:!0}),value:"required"}))),n.type&&l().createElement(z,null),n.questionOptions?.rendering&&l().createElement(A,null),l().createElement(s.zWQ,{name:"isQuestionInfoProvided",legendText:t("isQuestionInfoProvided","Would you like to provide additional details about the question?")},l().createElement(s.aaP,{id:"questionInfoProvided",checked:!!n?.questionInfo,labelText:t("yes","Yes"),onClick:()=>p("true"),value:"true"}),l().createElement(s.aaP,{id:"questionInfoNotProvided",checked:!n?.questionInfo,labelText:t("no","No"),onClick:()=>p("false"),value:"false"})),o&&l().createElement(s.ksK,{id:"questionInfo",labelText:t("questionInfo","Additional Question Info"),placeholder:t("questionInfoPlaceholder","Enter any relevant info about the question to provide more context."),value:n?.questionInfo,onChange:b}))},H=e=>e?(0,i.A)(e.map(e=>[e.id,H(e.questions)])):[],G=({formField:e,closeModal:t,schema:n,pageIndex:i,sectionIndex:u,questionIndex:p,subQuestionIndex:m,onSchemaChange:b})=>{let{t:g}=(0,r.useTranslation)(),{formField:_,setFormField:h,isConceptValid:f}=d(),q=(0,a.useCallback)(t=>{let a=n?.pages?.flatMap(e=>e?.sections?.flatMap(e=>H(e.questions)))||[],l=_?.questions?H(_.questions):[];l.push(_.id);let r=e&&""!==e.id?H(e.questions):[];e&&""!==e.id&&r.push(e.id);let i=a.slice();return r.forEach(e=>{let t=i.indexOf(e);-1!==t&&i.splice(t,1)}),[...i,...l].filter(e=>e===t).length>1},[n,_,e]),E=(0,a.useCallback)(()=>{let e={type:"",questionOptions:void 0,id:""};h(t=>({...t,questions:t.questions?[...t.questions,e]:[e]}))},[h]),y=(0,a.useCallback)(e=>{h(t=>({...t,questions:t.questions?.filter((t,n)=>n!==e)||[]}))},[h]),O=(0,a.useCallback)((e,t)=>{h(n=>{let a=[...n.questions];return a[t]=e,{...n,questions:a}})},[h]);return l().createElement(l().Fragment,null,l().createElement(s.rQ0,{closeModal:t,title:e?g("editQuestion","Edit question"):g("createNewQuestion","Create a new question")}),l().createElement(s.lVW,{className:"-esm-form-builder__question__form___e4c8f",onSubmit:e=>e.preventDefault()},l().createElement(s.cwr,{hasScrollingContent:!0},l().createElement(s.gE_,{legendText:""},l().createElement(s.BJc,{gap:5},l().createElement(j,{checkIfQuestionIdExists:q}),_.questions?.length>=1&&l().createElement(s.nD3,{size:"lg"},_.questions.map((e,t)=>l().createElement(s.AsP,{key:`Question ${t+1}`,title:e.label??`Question ${t+1}`,open:t===_.questions?.length-1,className:"-esm-form-builder__question__obsGroupQuestionContent___Bo56I"},l().createElement(c,{initialFormField:e,isObsGrouped:!0,updateParentFormField:e=>O(e,t)},l().createElement(j,{checkIfQuestionIdExists:q}),l().createElement(s.$nd,{kind:"danger",onClick:()=>y(t),className:"-esm-form-builder__question__deleteObsGroupQuestionButton___wskSy"},g("deleteQuestion","Delete question")))))),"obsGroup"===_.type&&l().createElement(s.$nd,{kind:"tertiary",size:"sm",onClick:E},g("addObsGroupQuestion","Add a grouped question"))))),l().createElement(s.jlY,null,l().createElement(s.$nd,{onClick:t,kind:"secondary"},g("cancel","Cancel")),l().createElement(s.$nd,{disabled:!_||!_.id||!f||"obs"===_.type&&(!_.questionOptions?.concept||_.questionOptions?.concept==="")||!_.questions&&q(_.id)||!_.questionOptions?.rendering,onClick:()=>{try{e?null!=m?n.pages[i].sections[u].questions[p].questions[m]=_:n.pages[i].sections[u].questions[p]=_:n.pages[i]?.sections?.[u]?.questions?.push(_),b({...n}),(0,o.showSnackbar)({title:g("success","Success!"),kind:"success",isLowContrast:!0,subtitle:e?g("questionUpdated","Question updated"):g("questionCreated","New question created")})}catch(e){e instanceof Error&&(0,o.showSnackbar)({title:g("errorSavingQuestion","Error saving question"),kind:"error",subtitle:e?.message})}t()}},l().createElement("span",null,g("save","Save"))))))},J=e=>l().createElement(l().Fragment,null,l().createElement(c,{initialFormField:e.formField??{type:"control",questionOptions:{rendering:"text"},id:""}},l().createElement(G,e)))}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([["9103"],{47826(e,t,n){n.r(t),n.d(t,{default:()=>J});var a=n(47499),l=n.n(a),r=n(58779),i=n(13400),s=n(68108),o=n(46718);let u=(0,a.createContext)(void 0),c=({children:e,initialFormField:t,isObsGrouped:n=!1,selectedConcept:r=null,updateParentFormField:i})=>{let[s,o]=(0,a.useState)(t),[c,d]=(0,a.useState)(r),[p,m]=(0,a.useState)(!0),b=(0,a.useCallback)(e=>{if(n){let t="function"==typeof e?e(s):e;o(t),i?.(t)}else o(e)},[n,i,s]);return l().createElement(u.Provider,{value:{formField:s,setFormField:b,concept:c,setConcept:d,isConceptValid:p,setIsConceptValid:m,updateParentFormField:i,isObsGrouped:n}},e)},d=()=>{let e=(0,a.useContext)(u);if(!e)throw Error("useFormField must be used within a FormFieldProvider");return e},p=()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d(),i={datetime:[{value:"both",label:e("calendarAndTimer","Calendar and timer"),defaultChecked:!0}],date:[{value:"calendar",label:e("calendarOnly","Calendar only"),defaultChecked:!1}],time:[{value:"timer",label:e("timerOnly","Timer only"),defaultChecked:!1}]},o=(0,a.useCallback)(e=>{n(t=>({...t,datePickerFormat:e.value}))},[n]);return l().createElement(s.zWQ,{name:"datePickerType",legendText:e("datePickerType","The type of date picker to show ")},Object.values(i).flat().map(e=>l().createElement(s.aaP,{key:`date-picker-type-${e.value}`,id:e.value,checked:t.datePickerFormat&&t.datePickerFormat===e.value,labelText:e.label,onClick:o.bind(null,e),value:e.value})))};var m=n(58365),b=n(29012),g=n(98668),_=n(43627);async function h(e){let t=`${o.restBaseUrl}/concept/${e}?v=full`;return await (0,o.openmrsFetch)(t)}var f=n(79610),q=n(22272);let E={label:"-esm-form-builder__concept-search__label___o5ui+",searchContainer:"-esm-form-builder__concept-search__searchContainer___7VR0j",error:"-esm-form-builder__concept-search__error___OCeWK",loader:"-esm-form-builder__concept-search__loader___bnJKJ",concept:"-esm-form-builder__concept-search__concept___n7Rr1",conceptList:"-esm-form-builder__concept-search__conceptList___FDDR7",dropdownContainer:"-esm-form-builder__concept-search__dropdownContainer___u5xIR",emptyResults:"-esm-form-builder__concept-search__emptyResults___jTyVE",oclLauncherBanner:"-esm-form-builder__concept-search__oclLauncherBanner___MPsdO",oclLink:"-esm-form-builder__concept-search__oclLink___aBFfJ"},y=({label:e,defaultConcept:t,onClearSelectedConcept:n,onSelectConcept:i,retainConceptInContextAfterSearch:u=!1,clearSearchAfterSelection:c=!1})=>{let{t:p}=(0,r.useTranslation)(),[m,b]=(0,a.useState)(""),g=(0,o.useDebounce)(m),{concepts:_,conceptLookupError:h,isLoadingConcepts:y}=function(e){let t=`${o.restBaseUrl}/concept?q=${e}&v=full&includeAll=true`,{data:n,error:a,isLoading:l}=(0,q.u)(e?t:null,o.openmrsFetch);return{concepts:n?.data?.results??[],conceptLookupError:a,isLoadingConcepts:l}}(g),{concept:O,conceptName:k,conceptNameLookupError:v,isLoadingConcept:C}=function(e){let t=`${o.restBaseUrl}/concept/${e}?v=full`,{data:n,error:a}=(0,q.u)(e?t:null,o.openmrsFetch);return{concept:n?.data??null,conceptName:n?.data?.display??null,conceptNameLookupError:a,isLoadingConcept:e&&!n&&!a||!1}}(t),[T,w]=(0,a.useState)(O),{concept:x,setConcept:S,setIsConceptValid:F}=d();(0,a.useEffect)(()=>{u&&O&&!x&&S(O)},[O,u,x,S]);let I=(0,a.useCallback)(e=>b(e.target.value),[]);(0,a.useEffect)(()=>{(h||v)&&F(!1)},[h,v,F]);let N=(0,a.useCallback)(()=>{w(null),b(""),F(!0),n&&n()},[n,F]),P=(0,a.useCallback)(e=>{b(""),w(e),i(e),F(!0),c&&N()},[i,F,N,c]),L=T??O,A=!m&&!!L?.retired;return l().createElement(l().Fragment,null,l().createElement(s.lRv,{className:E.label},e??p("searchForBackingConcept","Search for a backing concept")),(h||v)&&l().createElement(s.jeF,{kind:"error",lowContrast:!0,className:E.error,title:h?p("errorFetchingConcepts","Error fetching concepts"):p("errorFetchingConceptName","Couldn't resolve concept name"),subtitle:h?p("pleaseTryAgain","Please try again."):p("conceptDoesNotExist","The linked concept '{{conceptName}}' does not exist in your dictionary",{conceptName:t})}),l().createElement("div",{className:E.searchContainer},C?l().createElement(s.OuH,{className:E.loader,description:p("loading","Loading")+"..."}):l().createElement(s.vji,{id:"conceptLookup",onClear:N,onChange:I,labelText:p("searchForBackingConcept","Search for a backing concept"),placeholder:p("searchConcept","Search using a concept name or UUID"),size:"md",value:(()=>{if(m)return m;let e=T?.display??k??"";return A?p("retiredConceptDisplay","{{display}} (Retired)",{display:e}):e})()}),m?y?l().createElement(s.OuH,{className:E.loader,description:p("searching","Searching")+"..."}):_?.length&&!y?l().createElement("ul",{className:E.conceptList},_?.map((e,t)=>l().createElement("li",{role:"menuitem",className:E.concept,"data-retired":e.retired||void 0,key:t,onClick:()=>P(e)},l().createElement("span",null,e.display),e.retired&&l().createElement(s.vwO,{size:"sm",type:"cool-gray"},p("retired","Retired"))))):l().createElement("div",{className:E.dropdownContainer},l().createElement(s.Wdr,null,l().createElement(s.FAs,{className:E.emptyResults},l().createElement("span",null,p("noMatchingConcepts","No concepts were found that match")," ",l().createElement("strong",null,'"',g,'".'))),l().createElement("div",{className:E.oclLauncherBanner},l().createElement("p",{className:E.bodyShort01},p("conceptSearchHelpText","Can't find a concept?")),l().createElement("a",{className:E.oclLink,target:"_blank",rel:"noopener noreferrer",href:"https://app.openconceptlab.org/"},p("searchInOCL","Search in OCL"),l().createElement(f.F1,{size:16}))))):null))};var O=n(46942),k=n.n(O),v=n(74979),C=n(40771),T=n(55576),w=n(2383);let x=({id:e,text:t,onDelete:n,isInvalid:a})=>{let{t:i}=(0,r.useTranslation)(),{attributes:o,listeners:u,setNodeRef:c,transform:d,transition:p,isDragging:m}=(0,_.gl)({id:e}),b={transform:v.Ks.Transform.toString(d),transition:p};return l().createElement("div",{ref:c,style:b,className:k()("-esm-form-builder__sortable-tag__sortableTagWrapper___Kg-RP",{"-esm-form-builder__sortable-tag__dragContainerWhenDragging___ZDdHh":m,"-esm-form-builder__sortable-tag__invalid___rdyma":a})},l().createElement("div",{className:"-esm-form-builder__sortable-tag__leftContent___Q7xYQ"},l().createElement("div",{...o,...u,className:"-esm-form-builder__sortable-tag__dragHandle___pqFxT"},l().createElement(s.K0,{kind:"ghost",size:"md",label:i("dragToReorder","Drag to reorder")},l().createElement(C.sx,null))),l().createElement("span",{className:k()("-esm-form-builder__sortable-tag__sortableTag___ojQNX",{"-esm-form-builder__sortable-tag__dragging___vMSwX":m})},t)),l().createElement("div",null,n&&l().createElement(s.K0,{enterDelayMs:300,label:i("deleteAnswer","Delete answer"),kind:"ghost",onClick:n,size:"md"},l().createElement(T.zH,null)),a&&l().createElement(w.OR,{className:"-esm-form-builder__sortable-tag__invalidIcon___SKD9A","aria-label":"Invalid answer",size:16})))},S={multiSelect:"-esm-form-builder__select-answers__multiSelect___6s6dl",tag:"-esm-form-builder__select-answers__tag___xLfyA"},F=()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,concept:n,setFormField:i}=d(),[o,u]=(0,a.useState)([]),[c,p]=(0,a.useState)([]),m=(0,a.useRef)(null);(0,a.useEffect)(()=>{n||u([])},[n]),(0,a.useEffect)(()=>{if(n&&m.current!==n.uuid&&(m.current=n.uuid,n.answers?.length&&!t.questionOptions?.answers?.length)){let e=n.answers.map(e=>({concept:e.uuid,label:e.display}));i(t=>({...t,questionOptions:{...t.questionOptions,answers:e}}))}},[n,t.questionOptions?.answers,i]);let b=(0,a.useMemo)(()=>(t.questionOptions?.answers?.map(e=>({id:e.concept,text:e.label}))??[]).filter(e=>!o.some(t=>t.id===e.id)),[t.questionOptions?.answers,o]),f=(0,a.useCallback)(({selectedItems:e})=>{let t=e.filter(e=>"select-all"!==e.id).map(e=>({concept:e.id,label:e.text}));i(e=>JSON.stringify(e.questionOptions?.answers||[])===JSON.stringify(t)?e:{...e,questionOptions:{...e.questionOptions,answers:t}})},[i]),q=(0,a.useCallback)(e=>{let t={id:e.uuid,text:e.display},n=b.some(e=>e.id===t.id),a=o.some(e=>e.id===t.id);n||a||(u(e=>[...e,t]),i(t=>{let n=t.questionOptions?.answers??[];return n.push({concept:e.uuid,label:e.display}),{...t,questionOptions:{...t.questionOptions,answers:n}}}))},[b,o,i]),E=(0,a.useCallback)(e=>{u(t=>t.filter(t=>t.id!==e)),i(t=>{let n=t.questionOptions?.answers??[];return{...t,questionOptions:{...t.questionOptions,answers:n.filter(t=>t.concept!==e)}}})},[i]),O=(0,a.useMemo)(()=>{let a=n?.answers?.map(e=>({id:e.uuid,text:e.display}))??[],l=t.questionOptions?.answers??[];if(0===a.length&&l.length>0)return[...l.map(e=>({id:e.concept,text:e.label})),{id:"select-all",text:e("selectAllOptions","Select all options"),isSelectAll:!0}];let r=new Map(l.map(e=>[e.concept,e.label]));return[...a.map(e=>({id:e.id,text:r.get(e.id)??e.text})),...l.filter(e=>!a.some(t=>t.id===e.concept)).map(e=>({id:e.concept,text:e.label})),{id:"select-all",text:e("selectAllOptions","Select all options"),isSelectAll:!0}]},[n?.answers,t.questionOptions?.answers,e]),k=(0,a.useCallback)(async()=>{if(!O.length)return void p([]);let e=new Set((n?.answers||[]).map(e=>e.uuid)),t=[];for(let n of Array.from(new Map(O.filter(e=>"select-all"!==e.id).map(e=>[e.id,e])).values()))if(!e.has(n.id))try{let e=await h(n.id);e?.data?.uuid!==n.id&&t.push(n.id)}catch(e){t.push(n.id)}p(t)},[O,n]);(0,a.useEffect)(()=>{n?.answers?.length&&k()},[O,n,k]);let v=(0,a.useCallback)(e=>e.text,[]),C=(0,a.useCallback)(e=>{let{active:t,over:n}=e;n&&t.id!==n.id&&i(e=>{let a=e.questionOptions?.answers??[],l=a.findIndex(e=>e.concept===t.id),r=a.findIndex(e=>e.concept===n.id);if(-1===l||-1===r)return e;let i=(0,_.be)(a,l,r);return{...e,questionOptions:{...e.questionOptions,answers:i}}})},[i]),T=(0,a.useCallback)(e=>{let{active:t,over:n}=e;n&&t.id!==n.id&&u(e=>{let a=e.findIndex(e=>e.id===t.id),l=e.findIndex(e=>e.id===n.id);return -1===a||-1===l?e:(0,_.be)(e,a,l)})},[u]);return l().createElement(s.BJc,{gap:5},O.length>1&&l().createElement(s.KFt,{className:S.multiSelect,direction:"bottom",id:"selectAnswers",items:O,itemToString:v,label:"",onChange:f,size:"md",selectedItems:b,titleText:e("selectAnswersToDisplay","Select answers to display")}),b.length>0&&l().createElement(g.Mp,{onDragEnd:C},l().createElement(_.gB,{items:b,strategy:_._G},l().createElement("div",null,b.map(e=>l().createElement(x,{key:e.id,id:e.id,text:e.text,isInvalid:c.includes(e.id)}))))),c.length>0&&l().createElement(s.jeF,{kind:"error",lowContrast:!0,className:S.error,title:e("invalidAnswerConcept","Invalid Answer Concept Detected"),subtitle:e("answerConceptValidation","One or more selected answer concepts do not exist in the system. ")}),n&&n.datatype?.name==="Coded"&&l().createElement(l().Fragment,null,l().createElement(y,{label:e("searchForAnswerConcept","Search for a concept to add as an answer"),onSelectConcept:q,clearSearchAfterSelection:!0}),o.length>0&&l().createElement(g.Mp,{onDragEnd:T},l().createElement(_.gB,{items:o,strategy:_._G},l().createElement("div",null,o.map(e=>l().createElement(x,{key:e.id,id:e.id,text:e.text,onDelete:()=>E(e.id)})))))))},I=["control","encounterDatetime","encounterLocation","encounterProvider","encounterRole","obs","obsGroup","patientIdentifier","personAttribute","testOrder","programState"],N=["checkbox","checkbox-searchable","content-switcher","date","datetime","drug","encounter-location","encounter-provider","encounter-role","fixed-value","file","group","number","problem","radio","repeating","select","text","textarea","toggle","ui-select-extended","workspace-launcher","markdown","extension-widget","select-concept-answers"],P={control:["text","markdown"],encounterDatetime:["date","datetime"],encounterLocation:["ui-select-extended"],encounterProvider:["ui-select-extended"],encounterRole:["ui-select-extended"],obs:N,obsGroup:["group","repeating"],personAttribute:["text","select","date","radio","checkbox","textarea","toggle","ui-select-extended"],testOrder:["group","repeating"],patientIdentifier:["text"],programState:["select"]},L={number:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d();return l().createElement(l().Fragment,null,l().createElement(s.ksK,{id:"min",labelText:e("minValue","Min value that can be entered"),value:t.questionOptions?.min??"",invalid:parseFloat(t.questionOptions?.min??"")>parseFloat(t.questionOptions?.max??""),invalidText:parseFloat(t.questionOptions?.min??"")>parseFloat(t.questionOptions?.max??"")?e("invalidMinMax","Min value cannot be greater than max"):"",onChange:e=>{n({...t,questionOptions:{...t.questionOptions,min:e.target.value}})}}),l().createElement(s.ksK,{id:"max",labelText:e("maxValue","Max value that can be entered"),value:t.questionOptions?.max??"",invalid:parseFloat(t.questionOptions?.min??"")>parseFloat(t.questionOptions?.max??""),invalidText:parseFloat(t.questionOptions?.min??"")>parseFloat(t.questionOptions?.max??"")?e("invalidMinMax","Min value cannot be greater than max"):"",onChange:e=>{n({...t,questionOptions:{...t.questionOptions,max:e.target.value}})}}))},text:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d(),i=(0,a.useCallback)(()=>parseFloat(t.questionOptions?.minLength??"")>parseFloat(t.questionOptions?.maxLength??""),[t.questionOptions?.maxLength,t.questionOptions?.minLength]),o=(0,a.useCallback)(()=>i()?e("invalidMinMax","Min value cannot be greater than max"):"",[i,e]);return l().createElement(l().Fragment,null,l().createElement(s.ksK,{id:"minLength",labelText:e("minLengthOfCharacters","Min length of characters"),value:t.questionOptions?.minLength??"",invalid:i(),invalidText:o(),onChange:e=>{n({...t,questionOptions:{...t.questionOptions,minLength:e.target.value}})}}),l().createElement(s.ksK,{id:"maxLength",labelText:e("maxLengthOfCharacters","Max length of characters"),value:t.questionOptions?.maxLength??"",invalid:i(),invalidText:o(),onChange:e=>{n({...t,questionOptions:{...t.questionOptions,maxLength:e.target.value}})}}))},textarea:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d();return l().createElement(s.ksK,{id:"textAreaRows",labelText:e("rows","Rows"),value:t.questionOptions?.rows?t.questionOptions.rows.toString():"",onChange:e=>{n({...t,questionOptions:{...t.questionOptions,rows:parseInt(e.target.value)}})}})},toggle:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d();return l().createElement(l().Fragment,null,l().createElement(s.ksK,{id:"labelTrue",labelText:e("labelTrue","Label true"),value:t.questionOptions?.toggleOptions?.labelTrue??"",onChange:e=>{n({...t,questionOptions:{...t.questionOptions,toggleOptions:{...t.questionOptions.toggleOptions,labelTrue:e.target.value}}})},placeholder:e("on","On")}),l().createElement(s.ksK,{id:"labelFalse",labelText:e("labelFalse","Label false"),value:t.questionOptions?.toggleOptions?.labelFalse??"",onChange:e=>{n({...t,questionOptions:{...t.questionOptions,toggleOptions:{...t.questionOptions.toggleOptions,labelFalse:e.target.value}}})},placeholder:e("off","Off")}))},"ui-select-extended":()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d();return l().createElement(l().Fragment,null,l().createElement(s.zWQ,{defaultSelected:"notSearchable",name:"isUiSelectSearchable",legendText:e("isUiSelectSearchable","Is the ui-select-extended rendering searchable")},l().createElement(s.aaP,{id:"uiSelectNotSearchable",checked:!t.questionOptions?.isSearchable,labelText:e("notSearchable","Not Searchable"),onClick:()=>{n({...t,questionOptions:{...t.questionOptions,isSearchable:!1}})},value:"notSearchable"}),l().createElement(s.aaP,{id:"uiSelectSearchable",checked:t.questionOptions?.isSearchable,labelText:e("searchable","Searchable"),onClick:()=>{n({...t,questionOptions:{...t.questionOptions,isSearchable:!0}})},value:"searchable"})))},date:p,datetime:p,markdown:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d(),[a,i]=l().useState("write");return l().createElement("div",{className:"-esm-form-builder__markdown__container___tPxf6"},l().createElement(m.default,{value:t.value,onChange:e=>{n({...t,value:e})},selectedTab:a,onTabChange:()=>{i(e=>"write"===e?"preview":"write")},toolbarCommands:[["bold","italic"]],generateMarkdownPreview:e=>Promise.resolve(l().createElement(b.o,{children:Array.isArray(e)?e.join("\n"):e})),childProps:{writeButton:{tabIndex:-1}},loadingPreview:e("loadingPreview","Loading preview...")}))},select:F,radio:F,checkbox:F},A=()=>{let{formField:e}=d(),t=e.type&&"obs"!==e.type?P[e.type]:N,n=t?.includes(e.questionOptions?.rendering)&&"programState"!==e.type?L[e.questionOptions?.rendering]:null;return n?l().createElement(n,null):(e.questionOptions?.rendering&&console.error(`No component found for rendering type: ${e.questionOptions.rendering} or a rendering type is not available for ${e.type}`),null)},R="-esm-form-builder__obs-type-question__label___V1dxE",M="-esm-form-builder__obs-type-question__tableStriped___5AEgu",$=()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n,concept:i,setConcept:o}=d(),[u,c]=(0,a.useState)(null);(0,a.useEffect)(()=>{t.questionOptions?.concept&&c(t.questionOptions.concept)},[t.questionOptions?.concept]);let p=(0,a.useCallback)(e=>{switch(e.datatype.name){case"Datetime":return"both";case"Date":return"calendar";case"Time":return"timer";default:return null}},[]),m=(0,a.useCallback)(e=>{if(e){o(e);let t=p(e);n(n=>({...n,questionOptions:{...n.questionOptions,concept:e.uuid},...t&&{datePickerFormat:t}}))}},[p,n,o]),b=(0,a.useCallback)(()=>{o(null),c(null),n(e=>{let t={...e};return t.questionOptions&&(delete t.questionOptions.concept,delete t.questionOptions.answers),t.datePickerFormat&&delete t.datePickerFormat,t})},[n,o]),g=(0,a.useCallback)(e=>{let t=`${e.type}:${e.value}`;c(t),n(e=>({...e,questionOptions:{...e.questionOptions,concept:t}}))},[n]),_=(0,a.useCallback)(()=>{c(null),i&&n(e=>({...e,questionOptions:{...e.questionOptions,concept:i.uuid}}))},[i,n]),h=(0,a.useMemo)(()=>i&&i.mappings?i.mappings.map(e=>{let t=e.display.split(": ");return{relationship:e.conceptMapType.display,type:t[0],value:t[1]}}):[],[i]),f=h.some(e=>"SAME-AS"===e.relationship);return l().createElement(s.BJc,{gap:5},l().createElement(y,{defaultConcept:t.questionOptions?.concept??null,onClearSelectedConcept:b,onSelectConcept:m,retainConceptInContextAfterSearch:!0}),i?.allowDecimal===!1&&l().createElement(s.jeF,{kind:"info",lowContrast:!0,title:e("decimalsNotAllowed","This concept does not allow decimals")}),(i?.conceptClass?.display||i?.datatype?.display||i?.uuid)&&l().createElement(s.gE_,{legendText:""},l().createElement(s.lRv,{className:R},e("attributes","Attributes")),l().createElement("table",{className:M},l().createElement("thead",null,l().createElement("tr",null,l().createElement("th",null,e("attributes","Attributes")),l().createElement("th",null,e("value","Value")))),l().createElement("tbody",null,l().createElement("tr",null,l().createElement("td",null,e("class","Class")),l().createElement("td",null,i?.conceptClass?.display||"")),l().createElement("tr",null,l().createElement("td",null,e("datatype","Data Type")),l().createElement("td",null,i?.datatype?.display||"")),l().createElement("tr",null,l().createElement("td",null,e("conceptId","Concept ID")),l().createElement("td",null,i?.uuid||""))))),h.length>0&&l().createElement(s.gE_,{legendText:""},l().createElement(s.lRv,{className:R},e("mappings","Mappings")),l().createElement("table",{className:M},l().createElement("thead",null,l().createElement("tr",null,l().createElement("th",null,e("relationship","Relationship")),l().createElement("th",null,e("source","Source")),l().createElement("th",null,e("code","Code")),f&&l().createElement("th",null,e("select","Select")))),l().createElement("tbody",null,h.map((e,t)=>l().createElement("tr",{key:`mapping-${t}`},l().createElement("td",null,e.relationship),l().createElement("td",null,e.type),l().createElement("td",null,e.value),f&&l().createElement("td",null,"SAME-AS"===e.relationship&&l().createElement(s.Sc0,{id:`checkbox-${t}`,labelText:"",checked:u===`${e.type}:${e.value}`,onChange:()=>{u===`${e.type}:${e.value}`?_():g(e)}}))))))))},D="-esm-form-builder__program-state-type-question__error___9EgYn",B={label:"-esm-form-builder__patient-identifier-type-question__label___SmDY6",loader:"-esm-form-builder__patient-identifier-type-question__loader___YH+ES"};var Q=n(92137);let U="-esm-form-builder__person-attribute-type-question__error___1c-uZ",K={obs:$,programState:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d(),{programs:i,programsLookupError:u,isLoadingPrograms:c}=function(){let e=`${o.restBaseUrl}/program?v=custom:(uuid,name,retired,allWorkflows)`,{data:t,error:n,isLoading:a}=(0,q.u)(e,o.openmrsFetch);return{programs:t?t?.data?.results:[],programsLookupError:n,isLoadingPrograms:a}}(),[p,m]=(0,a.useState)(),[b,g]=(0,a.useState)(),[_,h]=(0,a.useState)([]),{programStates:f,programStatesLookupError:E,isLoadingProgramStates:y,mutateProgramStates:O}=function(e){let t=`${o.restBaseUrl}/workflow/${e}?v=custom:(uuid,retired,states,concept:(uuid,display))`,{data:n,error:a,isLoading:l,mutate:r}=(0,q.u)(e?t:null,o.openmrsFetch);return{programStates:n?.data?.states??[],programStatesLookupError:a,isLoadingProgramStates:l,mutateProgramStates:r}}(b?.uuid),k=(0,a.useMemo)(()=>{if(!t.questionOptions?.answers||!f.length)return[];let e=new Set(t.questionOptions.answers.map(e=>e.value));return f.filter(t=>e.has(t.uuid))},[t.questionOptions?.answers,f]),v=(0,a.useCallback)(e=>{m(e),g(null),h(e?.allWorkflows??[]),n(t=>{if(e)return{...t,questionOptions:{...t.questionOptions,programUuid:e.uuid}};let n={...t.questionOptions};return delete n.programUuid,delete n.workflowUuid,delete n.answers,{...t,questionOptions:n}})},[n]),C=(0,a.useCallback)(e=>{g(e),O(),n(t=>{if(e)return{...t,questionOptions:{...t.questionOptions,workflowUuid:e.uuid}};let n={...t.questionOptions};return delete n.workflowUuid,delete n.answers,{...t,questionOptions:n}})},[O,n]),T=(0,a.useCallback)(e=>{n({...t,questionOptions:{...t.questionOptions,answers:e.selectedItems.map(e=>({value:e.uuid,label:e.concept.display}))}})},[t,n]);(0,a.useEffect)(()=>{let e=i.find(e=>e.uuid===t.questionOptions?.programUuid);if(e&&(m(e),h(e.allWorkflows),t.questionOptions.workflowUuid)){let n=e.allWorkflows.find(e=>e.uuid===t.questionOptions?.workflowUuid);n&&g(n)}},[t.questionOptions?.programUuid,t.questionOptions?.workflowUuid,i]);let w=(0,a.useCallback)(e=>e.concept.display,[]);return l().createElement(s.BJc,{gap:5},l().createElement(s.lRv,{className:"-esm-form-builder__program-state-type-question__label___2V95S"},e("selectProgram","Select a program")),u&&l().createElement(s.jeF,{kind:"error",lowContrast:!0,className:D,title:e("errorFetchingPrograms","Error fetching programs"),subtitle:e("pleaseTryAgain","Please try again.")}),c?l().createElement(s.aB4,null):i.length>0&&l().createElement(s.a32,{id:"programLookup",items:i,itemToString:e=>e?.name,onChange:({selectedItem:e})=>{v(e)},placeholder:e("addProgram","Add program"),selectedItem:p,titleText:e("program","Program"),initialSelectedItem:i.find(e=>e?.uuid===t.questionOptions?.programUuid)}),p&&l().createElement(s.a32,{id:"programWorkflowLookup",items:_,itemToString:e=>e?.concept?.display,onChange:({selectedItem:e})=>C(e),placeholder:e("addProgramWorkflow","Add program workflow"),selectedItem:b,titleText:e("programWorkflow","Program workflow"),initialSelectedItem:_.find(e=>e?.uuid===t.questionOptions?.workflowUuid)}),b&&l().createElement("div",null,E&&l().createElement(s.jeF,{kind:"error",lowContrast:!0,className:D,title:e("errorFetchingProgramState","Error fetching program state"),subtitle:e("pleaseTryAgain","Please try again.")}),y?l().createElement(s.aB4,null):f?.length>0&&l().createElement(s.KFt,{titleText:e("programState","Program state"),id:"programState",items:f,itemToString:w,label:"",selectionFeedback:"top-after-reopen",onChange:T,selectedItems:k}),k?.map(e=>l().createElement("div",{key:e.uuid},l().createElement(s.vwO,{className:"-esm-form-builder__program-state-type-question__tag___-3SsZ",type:"blue"},e?.concept?.display)))))},patientIdentifier:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d(),{patientIdentifierTypes:i,patientIdentifierTypeLookupError:u,isLoadingPatientIdentifierTypes:c}=function(){let e=`${o.restBaseUrl}/patientidentifiertype?v=custom:(uuid,display,name,description)`,{data:t,error:n,isLoading:a}=(0,q.u)(e,o.openmrsFetch);return{patientIdentifierTypes:t?.data?.results??[],patientIdentifierTypeLookupError:n,isLoadingPatientIdentifierTypes:a}}(),[p,m]=(0,a.useState)(t.questionOptions?.identifierType?i.find(e=>e.uuid===t.questionOptions.identifierType):null),b=(0,a.useCallback)(e=>e?.display??"",[]);return l().createElement("div",null,l().createElement(s.lRv,{className:B.label},e("searchForBackingPatientIdentifierType","Search for a backing patient identifier type")),u&&l().createElement(s.jeF,{kind:"error",lowContrast:!0,className:B.error,title:e("errorFetchingPatientIdentifierTypes","Error fetching patient identifier types"),subtitle:e("pleaseTryAgain","Please try again.")}),c?l().createElement(s.OuH,{className:B.loader,description:e("loading","Loading")+"..."}):l().createElement(s.a32,{helperText:e("patientIdentifierTypeHelperText","Patient identifier type fields must be linked to a patient identifier type"),id:"patientIdentifierTypeLookup",items:i,itemToString:b,onChange:({selectedItem:e})=>{m(e),n({...t,questionOptions:{...t.questionOptions,identifierType:e.uuid}})},placeholder:e("choosePatientIdentifierType","Choose a patient identifier type"),selectedItem:p,initialSelectedItem:i.find(e=>e?.uuid===t.questionOptions?.identifierType)}))},obsGroup:$,testOrder:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d(),i=(0,a.useMemo)(()=>t.questionOptions?.selectableOrders||[],[t.questionOptions?.selectableOrders]),o=(0,a.useCallback)(e=>{n(t=>({...t,questionOptions:{...t.questionOptions,concept:e}}))},[n]),u=(0,a.useCallback)(()=>{let e={concept:"",label:""};n(t=>({...t,questionOptions:{...t.questionOptions,selectableOrders:[...i,e]}}))},[i,n]),c=(0,a.useCallback)(e=>{let t=i.filter((t,n)=>n!==e);n(e=>({...e,questionOptions:{...e.questionOptions,selectableOrders:t}}))},[i,n]),p=(0,a.useCallback)((e,t,a)=>{let l=i.map((n,l)=>l===e?{...n,[t]:a}:n);n(e=>({...e,questionOptions:{...e.questionOptions,selectableOrders:l}}))},[i,n]),m=(0,a.useCallback)((e,t)=>{p(e,"concept",t)},[p]);return l().createElement("div",{className:"-esm-form-builder__test-order-type-question__testOrderContainer___cUcd5"},l().createElement(y,{defaultConcept:t.questionOptions?.concept,onSelectConcept:e=>o(e.uuid)}),l().createElement(s.gE_,{legendText:e("selectableOrders","Selectable Orders")},l().createElement(s.BJc,{gap:4},i.map((t,n)=>l().createElement("div",{key:n,className:"-esm-form-builder__test-order-type-question__selectableOrderItem___y7bhc"},l().createElement("div",{className:"-esm-form-builder__test-order-type-question__orderFields___AzGqM"},l().createElement("div",{className:"-esm-form-builder__test-order-type-question__conceptField___hkC3C"},l().createElement(y,{defaultConcept:t.concept,onSelectConcept:e=>m(n,e.uuid)})),l().createElement(s.ksK,{id:`order-label-${n}`,labelText:e("label","Label"),value:t.label,onChange:e=>p(n,"label",e.target.value),placeholder:e("enterOrderLabel","Enter order label")}),l().createElement(s.$nd,{kind:"ghost",size:"md",renderIcon:T.zH,iconDescription:e("removeOrder","Remove order"),onClick:()=>c(n),className:"-esm-form-builder__test-order-type-question__removeButton___hdacf"})))),l().createElement(s.$nd,{kind:"tertiary",size:"md",renderIcon:Q.OM,onClick:u,className:"-esm-form-builder__test-order-type-question__addButton___bN-V4"},e("addSelectableOrder","Add selectable order")))))},personAttribute:()=>{let{t:e}=(0,r.useTranslation)(),{formField:t,setFormField:n}=d(),{personAttributeTypes:i,personAttributeTypeLookupError:u,isLoadingPersonAttributeTypes:c}=function(){let e=`${o.restBaseUrl}/personattributetype?v=custom:(uuid,display,format,concept)`,{data:t,error:n,isLoading:a}=(0,q.u)(e,o.openmrsFetch);return{personAttributeTypes:t?.data?.results??[],personAttributeTypeLookupError:n,isLoadingPersonAttributeTypes:a}}(),p=t.questionOptions?.attributeType,[m,b]=(0,a.useState)(null),[g,_]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(p&&i.length>0){let e=i.find(e=>e.uuid===p);e?(b(e),_(!1)):(b(null),_(!0))}else p||(b(null),_(!1))},[p,i]);let h=(0,a.useCallback)(e=>e?.display??"",[]);return l().createElement("div",null,l().createElement(s.lRv,{className:"-esm-form-builder__person-attribute-type-question__label___LosP2"},e("searchForBackingPersonAttributeType","Search for a backing person attribute type")),g&&l().createElement(s.jeF,{kind:"warning",lowContrast:!0,className:U,title:e("invalidPersonAttributeType","Invalid person attribute type"),subtitle:e("personAttributeTypeNotFound","The configured person attribute type ({{uuid}}) was not found. It may have been deleted or retired.",{uuid:p})}),u&&l().createElement(s.jeF,{kind:"error",lowContrast:!0,className:U,title:e("errorFetchingPersonAttributeTypes","Error fetching person attribute types"),subtitle:e("pleaseTryAgain","Please try again.")}),c?l().createElement(s.OuH,{className:"-esm-form-builder__person-attribute-type-question__loader___lMIpa",description:e("loading","Loading")+"..."}):l().createElement(s.a32,{disabled:!!u,helperText:e("personAttributeTypeHelperText","Person attribute type fields must be linked to a person attribute type"),id:"personAttributeTypeLookup",items:i,itemToString:h,onChange:({selectedItem:e})=>{b(e),n({...t,questionOptions:{...t.questionOptions,attributeType:e?.uuid}})},placeholder:e("choosePersonAttributeType","Choose a person attribute type"),selectedItem:m}))}},z=()=>{let{formField:e}=d(),t=K[e.type];return t?l().createElement(t,null):(console.error(`No component found for questiontype: ${e.type}`),null)},W=({isRequired:e,text:t,t:n})=>l().createElement(l().Fragment,null,l().createElement("span",null,t),e&&l().createElement("span",{title:n("required","Required"),className:"-esm-form-builder__required-label__required___at0FS"},"*")),j=({checkIfQuestionIdExists:e})=>{let{t}=(0,r.useTranslation)(),{formField:n,setFormField:i}=d(),[o,u]=(0,a.useState)(!!n?.questionInfo),c=(0,a.useCallback)(()=>e(n.id),[n.id,e]),p=(0,a.useCallback)(e=>{i(t=>{if("false"===e){let{questionInfo:e,...n}=t;return n}return t}),u("true"===e)},[i]),m=(0,a.useCallback)(e=>{let t=e.target.value;i(e=>e?.questionOptions?.rendering&&"obs"!==t&&!(I.includes(t)&&P[t]?.includes(e.questionOptions.rendering))?{...e,questionOptions:{...e.questionOptions,rendering:null},type:t}:{...e,type:t})},[i]),b=(0,a.useCallback)(e=>{i(t=>({...t,questionInfo:e.target.value}))},[i]);return l().createElement(s.BJc,{gap:5},n.questionOptions&&"markdown"!==n.questionOptions.rendering&&l().createElement(s.ksK,{id:"questionLabel",labelText:l().createElement(W,{isRequired:!0,text:t("questionLabel","Label"),t:t}),placeholder:t("labelPlaceholder","e.g. Type of Anaesthesia"),value:n?.label,onChange:e=>i({...n,label:e.target.value}),required:!0}),l().createElement(s.ksK,{id:"questionId",invalid:!!n?.id&&c(),invalidText:t("questionIdExists","This question ID already exists in your schema"),labelText:l().createElement("div",{className:"-esm-form-builder__question__questionIdLabel___-n8YP"},l().createElement("span",null,l().createElement(W,{isRequired:!0,text:t("questionId","Question ID"),t:t})),n?.label&&l().createElement(s.$nd,{kind:"ghost",onClick:()=>{let e=n.label?.toLowerCase()?.replace(/(?:^\w|[A-Z]|\b\w)/g,(e,t)=>0===t?e.toLowerCase():e.toUpperCase()).replace(/\s+/g,"");i({...n,id:e})},size:"sm"},t("convertLabelToCamelCase","Convert label to camel-case"))),helperText:t("questionIdHelper","Prefer camel-case; must be unique within this form"),value:n?.id,onChange:e=>{i({...n,id:e.target.value})},placeholder:t("questionIdPlaceholder",'Enter a unique ID e.g. "anaesthesiaType" for a question asking about the type of anaesthesia.'),required:!0}),l().createElement(s.l6P,{value:n?.type??"control",onChange:m,id:"questionType",invalidText:t("typeRequired","Type is required"),labelText:l().createElement(W,{isRequired:!0,text:t("questionType","Question type"),t:t}),required:!0},!n?.type&&l().createElement(s.ebT,{text:t("chooseQuestionType","Choose a question type"),value:""}),I.map((e,t)=>l().createElement(s.ebT,{text:e,value:e,key:t}))),l().createElement(s.l6P,{value:n?.questionOptions?.rendering,onChange:e=>{i(null===n?{...n,questionOptions:{rendering:e.target.value}}:{...n,questionOptions:{...n.questionOptions,rendering:e.target.value}})},id:"renderingType",invalidText:t("validRenderingTypeRequired","A valid rendering type value is required"),labelText:l().createElement(W,{isRequired:!0,text:t("renderingType","Rendering type"),t:t}),required:!0},!n.questionOptions?.rendering&&l().createElement(s.ebT,{text:t("chooseRenderingType","Choose a rendering type"),value:""}),n.type&&"obs"!==n.type&&I.includes(n.type)?P[n?.type].map((e,t)=>l().createElement(s.ebT,{key:`${e}-${t}`,text:e,value:e})):N.map((e,t)=>l().createElement(s.ebT,{key:t,text:e,value:e}))),n.questionOptions&&"markdown"!==n.questionOptions.rendering&&l().createElement(l().Fragment,null,l().createElement(s.zWQ,{name:"isQuestionRequired",legendText:t("isQuestionRequiredOrOptional","Is this question a required or optional field? Required fields must be answered before the form can be submitted.")},l().createElement(s.aaP,{id:"questionIsNotRequired",checked:!n.required||!n.required,labelText:t("optional","Optional"),onClick:()=>i({...n,required:!1}),value:"optional"}),l().createElement(s.aaP,{id:"questionIsRequired",checked:!!n.required,labelText:t("required","Required"),onClick:()=>i({...n,required:!0}),value:"required"}))),n.type&&l().createElement(z,null),n.questionOptions?.rendering&&l().createElement(A,null),l().createElement(s.zWQ,{name:"isQuestionInfoProvided",legendText:t("isQuestionInfoProvided","Would you like to provide additional details about the question?")},l().createElement(s.aaP,{id:"questionInfoProvided",checked:!!n?.questionInfo,labelText:t("yes","Yes"),onClick:()=>p("true"),value:"true"}),l().createElement(s.aaP,{id:"questionInfoNotProvided",checked:!n?.questionInfo,labelText:t("no","No"),onClick:()=>p("false"),value:"false"})),o&&l().createElement(s.ksK,{id:"questionInfo",labelText:t("questionInfo","Additional Question Info"),placeholder:t("questionInfoPlaceholder","Enter any relevant info about the question to provide more context."),value:n?.questionInfo,onChange:b}))},H=e=>e?(0,i.A)(e.map(e=>[e.id,H(e.questions)])):[],G=({formField:e,closeModal:t,schema:n,pageIndex:i,sectionIndex:u,questionIndex:p,subQuestionIndex:m,onSchemaChange:b})=>{let{t:g}=(0,r.useTranslation)(),{formField:_,setFormField:h,isConceptValid:f}=d(),q=(0,a.useCallback)(t=>{let a=n?.pages?.flatMap(e=>e?.sections?.flatMap(e=>H(e.questions)))||[],l=_?.questions?H(_.questions):[];l.push(_.id);let r=e&&""!==e.id?H(e.questions):[];e&&""!==e.id&&r.push(e.id);let i=a.slice();return r.forEach(e=>{let t=i.indexOf(e);-1!==t&&i.splice(t,1)}),[...i,...l].filter(e=>e===t).length>1},[n,_,e]),E=(0,a.useCallback)(()=>{let e={type:"",questionOptions:void 0,id:""};h(t=>({...t,questions:t.questions?[...t.questions,e]:[e]}))},[h]),y=(0,a.useCallback)(e=>{h(t=>({...t,questions:t.questions?.filter((t,n)=>n!==e)||[]}))},[h]),O=(0,a.useCallback)((e,t)=>{h(n=>{let a=[...n.questions];return a[t]=e,{...n,questions:a}})},[h]);return l().createElement(l().Fragment,null,l().createElement(s.rQ0,{closeModal:t,title:e?g("editQuestion","Edit question"):g("createNewQuestion","Create a new question")}),l().createElement(s.lVW,{className:"-esm-form-builder__question__form___e4c8f",onSubmit:e=>e.preventDefault()},l().createElement(s.cwr,{hasScrollingContent:!0},l().createElement(s.gE_,{legendText:""},l().createElement(s.BJc,{gap:5},l().createElement(j,{checkIfQuestionIdExists:q}),_.questions?.length>=1&&l().createElement(s.nD3,{size:"lg"},_.questions.map((e,t)=>l().createElement(s.AsP,{key:`Question ${t+1}`,title:e.label??`Question ${t+1}`,open:t===_.questions?.length-1,className:"-esm-form-builder__question__obsGroupQuestionContent___Bo56I"},l().createElement(c,{initialFormField:e,isObsGrouped:!0,updateParentFormField:e=>O(e,t)},l().createElement(j,{checkIfQuestionIdExists:q}),l().createElement(s.$nd,{kind:"danger",onClick:()=>y(t),className:"-esm-form-builder__question__deleteObsGroupQuestionButton___wskSy"},g("deleteQuestion","Delete question")))))),"obsGroup"===_.type&&l().createElement(s.$nd,{kind:"tertiary",size:"sm",onClick:E},g("addObsGroupQuestion","Add a grouped question"))))),l().createElement(s.jlY,null,l().createElement(s.$nd,{onClick:t,kind:"secondary"},g("cancel","Cancel")),l().createElement(s.$nd,{disabled:!_||!_.id||!f||"obs"===_.type&&(!_.questionOptions?.concept||_.questionOptions?.concept==="")||!_.questions&&q(_.id)||!_.questionOptions?.rendering,onClick:()=>{try{e?null!=m?n.pages[i].sections[u].questions[p].questions[m]=_:n.pages[i].sections[u].questions[p]=_:n.pages[i]?.sections?.[u]?.questions?.push(_),b({...n}),(0,o.showSnackbar)({title:g("success","Success!"),kind:"success",isLowContrast:!0,subtitle:e?g("questionUpdated","Question updated"):g("questionCreated","New question created")})}catch(e){e instanceof Error&&(0,o.showSnackbar)({title:g("errorSavingQuestion","Error saving question"),kind:"error",subtitle:e?.message})}t()}},l().createElement("span",null,g("save","Save"))))))},J=e=>l().createElement(l().Fragment,null,l().createElement(c,{initialFormField:e.formField??{type:"control",questionOptions:{rendering:"text"},id:""}},l().createElement(G,e)))}}]);
package/dist/9103.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"9103.js","sources":["webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/form-field-context.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/date/date.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/resources/concept.resource.ts","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/concept-search/concept-search.scss?994b","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/concept-search/concept-search.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/hooks/useConceptLookup.ts","webpack://@openmrs/esm-form-builder-app/./src/hooks/useConceptId.ts","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/sortable-tag/sortable-tag.scss?8eef","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/sortable-tag/sortable-tag.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/select/select-answers.scss?46cd","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/select/select-answers.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/constants.ts","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/rendering-type.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/number/number.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/text/text.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/text-area/textarea.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/toggle/toggle.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/ui-select-extended/ui-select-extended.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/markdown/markdown.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/markdown/markdown.scss?e17c","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/obs/obs-type-question.scss?710c","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/obs/obs-type-question.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/program-state/program-state-type-question.scss?9727","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/patient-identifier/patient-identifier-type-question.scss?af8e","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/test-order/test-order-type-question.scss?79a6","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/person-attribute/person-attribute-type-question.scss?af0e","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/question-type.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/program-state/program-state-type-question.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/hooks/useProgramStates.ts","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/patient-identifier/patient-identifier-type-question.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/hooks/usePatientIdentifierTypes.ts","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/test-order/test-order-type-question.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/person-attribute/person-attribute-type-question.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/hooks/usePersonAttributeTypes.ts","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/required-label/required-label.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/required-label/required-label.scss?4dfb","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question/question.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question/question.scss?8eb5","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question.modal.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question.scss?931c"],"names":["FormFieldContext","createContext","undefined","FormFieldProvider","children","initialFormField","isObsGrouped","selectedConcept","updateParentFormField","formField","setFormFieldInternal","useState","concept","setConcept","isConceptValid","setIsConceptValid","setFormField","useCallback","valueOrUpdater","newValue","useFormField","context","useContext","Error","t","useTranslation","datePickerTypeOptions","handleDatePickerTypeChange","type","prevField","RadioButtonGroup","Object","RadioButton","fetchConceptById","uuid","url","restBaseUrl","openmrsFetch","label","defaultConcept","onClearSelectedConcept","onSelectConcept","retainConceptInContextAfterSearch","clearSearchAfterSelection","conceptToLookup","setConceptToLookup","debouncedConceptToLookup","useDebounce","concepts","conceptLookupError","isLoadingConcepts","useConceptLookup","conceptId","data","error","isLoading","useSWR","initialConcept","conceptName","conceptNameLookupError","isLoadingConcept","useConceptId","setSelectedConcept","useEffect","handleConceptChange","event","clearSelectedConcept","handleConceptSelect","FormLabel","styles","InlineNotification","InlineLoading","Search","index","Layer","Tile","ArrowUpRight","SortableTag","id","text","onDelete","isInvalid","attributes","listeners","setNodeRef","transform","transition","isDragging","useSortable","dynamicStyle","CSS","classNames","IconButton","Draggable","TrashCan","WarningAltFilled","addedAnswers","setAddedAnswers","invalidAnswerIds","setInvalidAnswerIds","initializedConceptUuid","useRef","initialAnswers","answer","selectedAnswers","useMemo","answers","added","handleSelectAnswers","selectedItems","mappedAnswers","JSON","handleSelectAdditionalAnswer","newAnswer","answerExistsInSelected","answerExistsInAdded","prevAnswers","prevFormField","existingAnswers","handleDeleteAdditionalAnswer","answerItems","conceptAnswerItems","formFieldAnswers","formFieldAnswerLabelsMap","Map","item","validateAnswers","originalAnswerIds","Set","ans","invalidIds","Array","a","res","convertAnswerItemsToString","handleDragEnd","active","over","currentAnswers","oldIndex","newIndex","reordered","arrayMove","handleAdditionalDragEnd","prev","Stack","MultiSelect","DndContext","SortableContext","verticalListSortingStrategy","ConceptSearch","questionTypes","renderingTypes","renderTypeOptions","componentMap","TextInput","parseFloat","checkIfInvalid","getInvalidText","parseInt","Date","selectedTab","setSelectedTab","React","ReactMde","prevTab","markdown","Promise","ReactMarkdown","SelectAnswers","allowedRenderingTypes","Component","console","selectedMapping","setSelectedMapping","getDatePickerType","datePickerType","updatedFormField","handleCheckboxChange","mapping","newConceptValue","handleUncheckAll","conceptMappings","conceptMapping","hasSameAsMappings","FormGroup","Checkbox","ObsTypeQuestion","programs","programsLookupError","isLoadingPrograms","usePrograms","selectedProgram","setSelectedProgram","selectedProgramWorkflow","setSelectedProgramWorkflow","programWorkflows","setProgramWorkflows","programStates","programStatesLookupError","isLoadingProgramStates","mutateProgramStates","useProgramWorkStates","workflowUuid","mutate","selectedProgramStates","answerUuids","programState","handleProgramChange","selectedItem","newQuestionOptions","handleProgramWorkflowChange","selectProgramStates","selectedProgramResult","program","selectedProgramWorkflowResult","workflow","convertItemsToString","SelectSkeleton","ComboBox","programWorkflow","Tag","patientIdentifierTypes","patientIdentifierTypeLookupError","isLoadingPatientIdentifierTypes","usePatientIdentifierTypes","selectedPatientIdetifierType","setSelectedPatientIdetifierType","patientIdentifierType","selectableOrders","handleAddSelectableOrder","newOrder","handleRemoveSelectableOrder","updatedOrders","_","i","handleSelectableOrderChange","field","value","order","handleSelectableOrderConceptChange","e","Button","Add","personAttributeTypes","personAttributeTypeLookupError","isLoadingPersonAttributeTypes","usePersonAttributeTypes","attributeTypeUuid","selectedPersonAttributeType","setSelectedPersonAttributeType","isInvalidAttributeType","setIsInvalidAttributeType","matchingType","personAttributeType","isRequired","checkIfQuestionIdExists","isQuestionInfoVisible","setIsQuestionInfoVisible","isQuestionIdDuplicate","handleQuestionInfoToggle","questionInfo","handleQuestionTypeChange","newQuestionType","handleQuestionInfoChange","RequiredLabel","camelCasedLabel","word","Select","SelectItem","questionType","key","QuestionTypeComponent","RenderTypeComponent","getAllQuestionIds","questions","flattenDeep","question","QuestionModalContent","formFieldProp","closeModal","schema","pageIndex","sectionIndex","questionIndex","subQuestionIndex","onSchemaChange","idToTest","schemaIds","page","section","formFieldIds","originalFormFieldQuestionIds","filteredSchemaIds","idToRemove","indexToRemove","occurrences","allIds","addObsGroupQuestion","emptyQuestion","deleteObsGroupQuestion","handleUpdateParentFormField","updatedQuestions","ModalHeader","Form","ModalBody","Question","Accordion","AccordionItem","ModalFooter","showSnackbar","props"],"mappings":"4PAeA,IAAMA,EAAmBC,AAAAA,GAAAA,EAAAA,aAAAA,AAAAA,EAAgDC,QAE5DC,EAMR,CAAC,CAAEC,SAAAA,CAAQ,CAAEC,iBAAAA,CAAgB,CAAEC,aAAAA,EAAe,EAAK,CAAEC,gBAAAA,EAAkB,IAAI,CAAEC,sBAAAA,CAAqB,CAAE,IACvG,GAAM,CAACC,EAAWC,EAAqB,CAAGC,AAAAA,GAAAA,EAAAA,QAAAA,AAAAA,EAAoBN,GACxD,CAACO,EAASC,EAAW,CAAGF,AAAAA,GAAAA,EAAAA,QAAAA,AAAAA,EAAyBJ,GACjD,CAACO,EAAgBC,EAAkB,CAAGJ,AAAAA,GAAAA,EAAAA,QAAAA,AAAAA,EAAkB,IAExDK,EAAeC,AAAAA,GAAAA,EAAAA,WAAAA,AAAAA,EACnB,AAACC,IACC,GAAIZ,EAAc,CAChB,IAAMa,EAAW,AAA0B,YAA1B,OAAOD,EAAgCA,EAAeT,GAAaS,EACpFR,EAAqBS,GACrBX,IAAwBW,EAC1B,MACET,EAAqBQ,EAEzB,EACA,CAACZ,EAAcE,EAAuBC,EAAU,EAGlD,OACE,kBAACT,EAAiB,QAAQ,EACxB,MAAO,CACLS,UAAAA,EACAO,aAAAA,EACAJ,QAAAA,EACAC,WAAAA,EACAC,eAAAA,EACAC,kBAAAA,EACAP,sBAAAA,EACAF,aAAAA,CACF,C,EAECF,EAGP,EAEagB,EAAe,KAC1B,IAAMC,EAAUC,AAAAA,GAAAA,EAAAA,UAAAA,AAAAA,EAAWtB,GAC3B,GAAI,CAACqB,EACH,M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,EAAE,WAAW,KAAKlR,GAGrEqR,EAAe,CAAE,GAAGL,CAAM,AAAC,GAE3B6B,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CACX,MAAO9R,EAAE,UAAW,YACpB,KAAM,UACN,cAAe,GACf,SAAU+P,EACN/P,EAAE,kBAAmB,oBACrBA,EAAE,kBAAmB,uBAC3B,EACF,CAAE,MAAO8B,EAAO,CACVA,aAAiB/B,OACnB+R,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CACX,MAAO9R,EAAE,sBAAuB,yBAChC,KAAM,QACN,SAAU8B,GAAO,OACnB,EAEJ,CACAkO,GACF,C,EA6EU,kBAAC,YAAMhQ,EAAE,OAAQ,YAM7B,EAcA,EAZoD,AAAC+R,GAEjD,oCACE,kBAACpT,EAAiBA,CAChB,iBAAkBoT,EAAM,SAAS,EAAI,CAAE,KAAM,UAAW,gBAAiB,CAAE,UAAW,MAAO,EAAG,GAAI,EAAG,C,EAEvG,kBAACjC,EAAyBiC,I"}
1
+ {"version":3,"file":"9103.js","sources":["webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/form-field-context.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/date/date.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/resources/concept.resource.ts","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/concept-search/concept-search.scss?994b","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/concept-search/concept-search.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/hooks/useConceptLookup.ts","webpack://@openmrs/esm-form-builder-app/./src/hooks/useConceptId.ts","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/sortable-tag/sortable-tag.scss?8eef","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/sortable-tag/sortable-tag.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/select/select-answers.scss?46cd","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/select/select-answers.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/constants.ts","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/rendering-type.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/number/number.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/text/text.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/text-area/textarea.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/toggle/toggle.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/ui-select-extended/ui-select-extended.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/markdown/markdown.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/rendering-types/inputs/markdown/markdown.scss?e17c","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/obs/obs-type-question.scss?710c","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/obs/obs-type-question.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/program-state/program-state-type-question.scss?9727","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/patient-identifier/patient-identifier-type-question.scss?af8e","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/test-order/test-order-type-question.scss?79a6","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/person-attribute/person-attribute-type-question.scss?af0e","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/question-type.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/program-state/program-state-type-question.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/hooks/useProgramStates.ts","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/patient-identifier/patient-identifier-type-question.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/hooks/usePatientIdentifierTypes.ts","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/test-order/test-order-type-question.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question-types/inputs/person-attribute/person-attribute-type-question.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/hooks/usePersonAttributeTypes.ts","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/required-label/required-label.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/common/required-label/required-label.scss?4dfb","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question/question.component.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question-form/question/question.scss?8eb5","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question.modal.tsx","webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/modals/question/question.scss?931c"],"names":["FormFieldContext","createContext","undefined","FormFieldProvider","children","initialFormField","isObsGrouped","selectedConcept","updateParentFormField","formField","setFormFieldInternal","useState","concept","setConcept","isConceptValid","setIsConceptValid","setFormField","useCallback","valueOrUpdater","newValue","useFormField","context","useContext","Error","t","useTranslation","datePickerTypeOptions","handleDatePickerTypeChange","type","prevField","RadioButtonGroup","Object","RadioButton","fetchConceptById","uuid","url","restBaseUrl","openmrsFetch","label","defaultConcept","onClearSelectedConcept","onSelectConcept","retainConceptInContextAfterSearch","clearSearchAfterSelection","conceptToLookup","setConceptToLookup","debouncedConceptToLookup","useDebounce","concepts","conceptLookupError","isLoadingConcepts","useConceptLookup","conceptId","data","error","isLoading","useSWR","initialConcept","conceptName","conceptNameLookupError","isLoadingConcept","useConceptId","setSelectedConcept","useEffect","handleConceptChange","event","clearSelectedConcept","handleConceptSelect","currentConcept","showsRetiredConcept","Boolean","FormLabel","styles","InlineNotification","InlineLoading","Search","display","index","Tag","Layer","Tile","ArrowUpRight","SortableTag","id","text","onDelete","isInvalid","attributes","listeners","setNodeRef","transform","transition","isDragging","useSortable","dynamicStyle","CSS","classNames","IconButton","Draggable","TrashCan","WarningAltFilled","addedAnswers","setAddedAnswers","invalidAnswerIds","setInvalidAnswerIds","initializedConceptUuid","useRef","initialAnswers","answer","selectedAnswers","useMemo","answers","added","handleSelectAnswers","selectedItems","mappedAnswers","JSON","handleSelectAdditionalAnswer","newAnswer","answerExistsInSelected","answerExistsInAdded","prevAnswers","prevFormField","existingAnswers","handleDeleteAdditionalAnswer","answerItems","conceptAnswerItems","formFieldAnswers","formFieldAnswerLabelsMap","Map","item","validateAnswers","originalAnswerIds","Set","ans","invalidIds","Array","a","res","convertAnswerItemsToString","handleDragEnd","active","over","currentAnswers","oldIndex","newIndex","reordered","arrayMove","handleAdditionalDragEnd","prev","Stack","MultiSelect","DndContext","SortableContext","verticalListSortingStrategy","ConceptSearch","questionTypes","renderingTypes","renderTypeOptions","componentMap","TextInput","parseFloat","checkIfInvalid","getInvalidText","parseInt","Date","selectedTab","setSelectedTab","React","ReactMde","prevTab","markdown","Promise","ReactMarkdown","SelectAnswers","allowedRenderingTypes","Component","console","selectedMapping","setSelectedMapping","getDatePickerType","datePickerType","updatedFormField","handleCheckboxChange","mapping","newConceptValue","handleUncheckAll","conceptMappings","conceptMapping","hasSameAsMappings","FormGroup","Checkbox","ObsTypeQuestion","programs","programsLookupError","isLoadingPrograms","usePrograms","selectedProgram","setSelectedProgram","selectedProgramWorkflow","setSelectedProgramWorkflow","programWorkflows","setProgramWorkflows","programStates","programStatesLookupError","isLoadingProgramStates","mutateProgramStates","useProgramWorkStates","workflowUuid","mutate","selectedProgramStates","answerUuids","programState","handleProgramChange","selectedItem","newQuestionOptions","handleProgramWorkflowChange","selectProgramStates","selectedProgramResult","program","selectedProgramWorkflowResult","workflow","convertItemsToString","SelectSkeleton","ComboBox","programWorkflow","patientIdentifierTypes","patientIdentifierTypeLookupError","isLoadingPatientIdentifierTypes","usePatientIdentifierTypes","selectedPatientIdetifierType","setSelectedPatientIdetifierType","patientIdentifierType","selectableOrders","handleAddSelectableOrder","newOrder","handleRemoveSelectableOrder","updatedOrders","_","i","handleSelectableOrderChange","field","value","order","handleSelectableOrderConceptChange","e","Button","Add","personAttributeTypes","personAttributeTypeLookupError","isLoadingPersonAttributeTypes","usePersonAttributeTypes","attributeTypeUuid","selectedPersonAttributeType","setSelectedPersonAttributeType","isInvalidAttributeType","setIsInvalidAttributeType","matchingType","personAttributeType","isRequired","checkIfQuestionIdExists","isQuestionInfoVisible","setIsQuestionInfoVisible","isQuestionIdDuplicate","handleQuestionInfoToggle","questionInfo","handleQuestionTypeChange","newQuestionType","handleQuestionInfoChange","RequiredLabel","camelCasedLabel","word","Select","SelectItem","questionType","key","QuestionTypeComponent","RenderTypeComponent","getAllQuestionIds","questions","flattenDeep","question","QuestionModalContent","formFieldProp","closeModal","schema","pageIndex","sectionIndex","questionIndex","subQuestionIndex","onSchemaChange","idToTest","schemaIds","page","section","formFieldIds","originalFormFieldQuestionIds","filteredSchemaIds","idToRemove","indexToRemove","occurrences","allIds","addObsGroupQuestion","emptyQuestion","deleteObsGroupQuestion","handleUpdateParentFormField","updatedQuestions","ModalHeader","Form","ModalBody","Question","Accordion","AccordionItem","ModalFooter","showSnackbar","props"],"mappings":"4PAeA,IAAMA,EAAmBC,AAAAA,GAAAA,EAAAA,aAAAA,AAAAA,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AU,EAAE,UAAU,CAACC,EAAa,EAAE,WAAW,KAAKtR,GAGrEyR,EAAe,CAAE,GAAGL,CAAM,AAAC,GAE3B6B,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CACX,MAAOlS,EAAE,UAAW,YACpB,KAAM,UACN,cAAe,GACf,SAAUmQ,EACNnQ,EAAE,kBAAmB,oBACrBA,EAAE,kBAAmB,uBAC3B,EACF,CAAE,MAAO8B,EAAO,CACVA,aAAiB/B,OACnBmS,AAAAA,GAAAA,EAAAA,YAAAA,AAAAA,EAAa,CACX,MAAOlS,EAAE,sBAAuB,yBAChC,KAAM,QACN,SAAU8B,GAAO,OACnB,EAEJ,CACAsO,GACF,C,EA6EU,kBAAC,YAAMpQ,EAAE,OAAQ,YAM7B,EAcA,EAZoD,AAACmS,GAEjD,oCACE,kBAACxT,EAAiBA,CAChB,iBAAkBwT,EAAM,SAAS,EAAI,CAAE,KAAM,UAAW,gBAAiB,CAAE,UAAW,MAAO,EAAG,GAAI,EAAG,C,EAEvG,kBAACjC,EAAyBiC,I"}
@@ -1,3 +1,3 @@
1
- var _openmrs_esm_form_builder_app;!function(){var e="u">typeof globalThis?globalThis:self;if(void 0===e._FEDERATION_RUNTIME_CORE||void 0===e._OPENMRS_FEDERATION_SDK||void 0===e._OPENMRS_FEDERATION_ERROR_CODES)throw Error("@openmrs/esm-form-builder-app cannot start: the OpenMRS app shell serving this page does not provide the Module Federation runtime. This app was built with newer OpenMRS tooling than the app shell, so either upgrade @openmrs/esm-app-shell, or rebuild this app with tooling matching the app shell.");var t=e._FEDERATION_RUNTIME_CORE_FROM;t&&t.version&&"2.8"!==String(t.version).split(".").slice(0,2).join(".")&&console.warn("@openmrs/esm-form-builder-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,o,i={89672(e,t,r){"use strict";var n,o,i,a,s,l,u,p,c,d,f,h,m=r(37032),g=r.n(m);let b=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),y={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let n=r();Array.isArray(n)?(null!=e[t]||(e[t]=[]),e[t].push(...n)):"object"==typeof n&&null!==n&&(null!=e[t]||(e[t]={}),Object.assign(e[t],n))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},S=null!=(n=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?n:{},E=null!=(o=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?o:{},M=null!=(i=null==(p=r.initializeSharingData)?void 0:p.scopeToSharingDataMapping)?i:{},_=null!=(a=null==(c=r.consumesLoadingData)?void 0:c.chunkMapping)?a:{},O=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},v={},R=[],T={},I=null==(f=r.initializeExposesData)?void 0:f.shareScope;for(let e in g())r.federation[e]=g()[e];m(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(O))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),m(r.federation,"initOptions",()=>({})),m(r.federation.initOptions,"name",()=>"@openmrs/esm-form-builder-app"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(M))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[t],shareConfig:p,get:i};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(y).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>b),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>y),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(E))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(E)){let n=y[r.remoteName];n&&(e[t]=n)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:S,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:_,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:v,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:R,initTokens:T,webpackRequire:r})),e(r,"initContainer",(e,t,n)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:I,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(h=r.consumesLoadingData)?void 0:h.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:v,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},22448(e,t,r){"use strict";r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},53054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},31853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},19369(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},51222(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(19369);let n=r(81146),o=r(53054),i={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},a=o.helpers.share,s=o.helpers.utils;t.default={global:i,share:a,utils:s},t.global=i,t.share=a,t.utils=s},67201(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(19369);let n=r(81146),o=r(53054),i=r(9170);function a(e){let t=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(t),t}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return o.Module}}),t.ModuleFederation=o.ModuleFederation,t.createInstance=a,t.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=a(r)},t.loadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),t.loadShare=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerShared.apply(s,e)}},81146(e,t,r){r(19369);let n=r(53054);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-form-builder-app:3.5.2-pre.3780";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}},41326(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},3026(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},59592(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},55769(e,t,r){let n=r(3026),o=r(39671),i=r(69864),a=r(29296),s=r(2742);t.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:p,moduleToHandlerMapping:c}=e;n.attachShareScopeMap(u),u.o(p,t)&&p[t].forEach(e=>{if(u.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,u.m[e]=r=>{delete u.c[e];let n=t(),{shareInfo:o}=c[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:p,getter:d,shareInfo:f,treeShakingGetter:h}=c[e],m=i.getUsedExports(u,p),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let b=o.loadShare(p,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(a.RUNTIME_012,{[a.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:p}));return h?.()||d()}return e});b.then?r.push(l[e]=b.then(t).catch(n)):t(b)}catch(e){n(e)}})}},29296(e,t){t.RUNTIME_012="RUNTIME-012"},2742(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&o.push(`Original Error Message:
1
+ var _openmrs_esm_form_builder_app;!function(){var e="u">typeof globalThis?globalThis:self;if(void 0===e._FEDERATION_RUNTIME_CORE||void 0===e._OPENMRS_FEDERATION_SDK||void 0===e._OPENMRS_FEDERATION_ERROR_CODES)throw Error("@openmrs/esm-form-builder-app cannot start: the OpenMRS app shell serving this page does not provide the Module Federation runtime. This app was built with newer OpenMRS tooling than the app shell, so either upgrade @openmrs/esm-app-shell, or rebuild this app with tooling matching the app shell.");var t=e._FEDERATION_RUNTIME_CORE_FROM;t&&t.version&&"2.8"!==String(t.version).split(".").slice(0,2).join(".")&&console.warn("@openmrs/esm-form-builder-app was built against Module Federation 2.8.x but the app shell provides "+t.version+". Shared dependencies may not de-duplicate correctly.")}(),(()=>{var e,t,r,n,o,i={89672(e,t,r){"use strict";var n,o,i,a,s,l,u,p,c,d,f,h,m=r(37032),g=r.n(m);let b=[].filter(({plugin:e})=>e).map(({plugin:e,params:t})=>e(t)),y={};if((r.initializeSharingData||r.initializeExposesData)&&r.federation){let e=(e,t,r)=>{e&&e[t]&&(e[t]=r)},t=(e,t,r)=>{let n=r();Array.isArray(n)?(null!=e[t]||(e[t]=[]),e[t].push(...n)):"object"==typeof n&&null!==n&&(null!=e[t]||(e[t]={}),Object.assign(e[t],n))},m=(e,t,r)=>{null!=e[t]||(e[t]=r())},S=null!=(n=null==(l=r.remotesLoadingData)?void 0:l.chunkMapping)?n:{},E=null!=(o=null==(u=r.remotesLoadingData)?void 0:u.moduleIdToRemoteDataMapping)?o:{},M=null!=(i=null==(p=r.initializeSharingData)?void 0:p.scopeToSharingDataMapping)?i:{},_=null!=(a=null==(c=r.consumesLoadingData)?void 0:c.chunkMapping)?a:{},O=null!=(s=null==(d=r.consumesLoadingData)?void 0:d.moduleIdToConsumeDataMapping)?s:{},v={},R=[],T={},I=null==(f=r.initializeExposesData)?void 0:f.shareScope;for(let e in g())r.federation[e]=g()[e];m(r.federation,"consumesLoadingModuleToHandlerMapping",()=>{let e={};for(let[t,r]of Object.entries(O))e[t]={getter:r.fallback,shareInfo:{shareConfig:{fixedDependencies:!1,requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager},scope:[r.shareScope]},shareKey:r.shareKey};return e}),m(r.federation,"initOptions",()=>({})),m(r.federation.initOptions,"name",()=>"@openmrs/esm-form-builder-app"),m(r.federation.initOptions,"shareStrategy",()=>"version-first"),m(r.federation.initOptions,"shared",()=>{let e={};for(let[t,r]of Object.entries(M))for(let n of r)if("object"==typeof n&&null!==n){let{name:r,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[t],shareConfig:p,get:i};e[r]?e[r].push(d):e[r]=[d]}return e}),t(r.federation.initOptions,"remotes",()=>Object.values(y).flat().filter(e=>"script"===e.externalType)),t(r.federation.initOptions,"plugins",()=>b),m(r.federation,"bundlerRuntimeOptions",()=>({})),m(r.federation.bundlerRuntimeOptions,"remotes",()=>({})),m(r.federation.bundlerRuntimeOptions.remotes,"chunkMapping",()=>S),m(r.federation.bundlerRuntimeOptions.remotes,"remoteInfos",()=>y),m(r.federation.bundlerRuntimeOptions.remotes,"idToExternalAndNameMapping",()=>{let e={};for(let[t,r]of Object.entries(E))e[t]=[r.shareScope,r.name,r.externalModuleId,r.remoteName];return e}),m(r.federation.bundlerRuntimeOptions.remotes,"webpackRequire",()=>r),t(r.federation.bundlerRuntimeOptions.remotes,"idToRemoteMap",()=>{let e={};for(let[t,r]of Object.entries(E)){let n=y[r.remoteName];n&&(e[t]=n)}return e}),e(r,"S",r.federation.bundlerRuntime.S),r.federation.attachShareScopeMap&&r.federation.attachShareScopeMap(r),e(r.f,"remotes",(e,t)=>r.federation.bundlerRuntime.remotes({chunkId:e,promises:t,chunkMapping:S,idToExternalAndNameMapping:r.federation.bundlerRuntimeOptions.remotes.idToExternalAndNameMapping,idToRemoteMap:r.federation.bundlerRuntimeOptions.remotes.idToRemoteMap,webpackRequire:r})),e(r.f,"consumes",(e,t)=>r.federation.bundlerRuntime.consumes({chunkId:e,promises:t,chunkMapping:_,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping,installedModules:v,webpackRequire:r})),e(r,"I",(e,t)=>r.federation.bundlerRuntime.I({shareScopeName:e,initScope:t,initPromises:R,initTokens:T,webpackRequire:r})),e(r,"initContainer",(e,t,n)=>r.federation.bundlerRuntime.initContainerEntry({shareScope:e,initScope:t,remoteEntryInitOptions:n,shareScopeKey:I,webpackRequire:r})),e(r,"getContainer",(e,t)=>{var n=r.initializeExposesData.moduleMap;return r.R=t,t=Object.prototype.hasOwnProperty.call(n,e)?n[e]():Promise.resolve().then(()=>{throw Error('Module "'+e+'" does not exist in container.')}),r.R=void 0,t}),r.federation.instance=r.federation.runtime.init(r.federation.initOptions),(null==(h=r.consumesLoadingData)?void 0:h.initialConsumes)&&r.federation.bundlerRuntime.installInitialConsumes({webpackRequire:r,installedModules:v,initialConsumes:r.consumesLoadingData.initialConsumes,moduleToHandlerMapping:r.federation.consumesLoadingModuleToHandlerMapping})}},22448(e,t,r){"use strict";r.d(t,{get:()=>r.getContainer,init:()=>r.initContainer})},53054(e){"use strict";e.exports=globalThis._FEDERATION_RUNTIME_CORE},9170(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_ERROR_CODES},31853(e){"use strict";e.exports=globalThis._OPENMRS_FEDERATION_SDK},19369(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},51222(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),r(19369);let n=r(81146),o=r(53054),i={...o.helpers.global,getGlobalFederationInstance:n.getGlobalFederationInstance},a=o.helpers.share,s=o.helpers.utils;t.default={global:i,share:a,utils:s},t.global=i,t.share=a,t.utils=s},67201(e,t,r){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),r(19369);let n=r(81146),o=r(53054),i=r(9170);function a(e){let t=new((0,o.getGlobalFederationConstructor)()||o.ModuleFederation)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,o.setGlobalFederationInstance)(t),t}let s=null;(0,o.setGlobalFederationConstructor)(o.ModuleFederation),Object.defineProperty(t,"Module",{enumerable:!0,get:function(){return o.Module}}),t.ModuleFederation=o.ModuleFederation,t.createInstance=a,t.getInstance=function(e){return e?o.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(e)||null:s},Object.defineProperty(t,"getRemoteEntry",{enumerable:!0,get:function(){return o.getRemoteEntry}}),Object.defineProperty(t,"getRemoteInfo",{enumerable:!0,get:function(){return o.getRemoteInfo}}),t.init=function(e){let t=n.getGlobalFederationInstance(e.name,e.version),r={...e,id:e.id||""};return t?(t.initOptions(r),s||(s=t),t):s=a(r)},t.loadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadRemote.apply(s,e)},Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(t,"loadScriptNode",{enumerable:!0,get:function(){return o.loadScriptNode}}),t.loadShare=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShare.apply(s,e)},t.loadShareSync=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.loadShareSync.apply(s,e)},t.preloadRemote=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.preloadRemote.apply(s,e)},Object.defineProperty(t,"registerGlobalPlugins",{enumerable:!0,get:function(){return o.registerGlobalPlugins}}),t.registerPlugins=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerPlugins.apply(s,e)},t.registerRemotes=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerRemotes.apply(s,e)},t.registerShared=function(...e){return(0,o.assert)(s,i.RUNTIME_009,i.runtimeDescMap),s.registerShared.apply(s,e)}},81146(e,t,r){r(19369);let n=r(53054);t.getGlobalFederationInstance=function(e,t){let r="@openmrs/esm-form-builder-app:3.5.2-pre.3786";return n.CurrentGlobal.__FEDERATION__.__INSTANCES__.find(n=>!!r&&n.options.id===r||n.options.name===e&&!n.options.version&&!t||n.options.name===e&&!!t&&n.options.version===t)}},41326(e,t){var r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;t.__toESM=(e,t,l)=>(l=null!=e?r(a(e)):{},((e,t,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var a,l=i(t),u=0,p=l.length;u<p;u++)a=l[u],s.call(e,a)||void 0===a||n(e,a,{get:(e=>t[e]).bind(null,a),enumerable:!(r=o(t,a))||r.enumerable});return e})(!t&&e&&e.__esModule?l:n(l,"default",{value:e,enumerable:!0}),e))},3026(e,t){t.attachShareScopeMap=function(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}},59592(e,t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.FEDERATION_SUPPORTED_TYPES=["script"]},55769(e,t,r){let n=r(3026),o=r(39671),i=r(69864),a=r(29296),s=r(2742);t.consumes=function(e){o.updateConsumeOptions(e);let{chunkId:t,promises:r,installedModules:l,webpackRequire:u,chunkMapping:p,moduleToHandlerMapping:c}=e;n.attachShareScopeMap(u),u.o(p,t)&&p[t].forEach(e=>{if(u.o(l,e))return r.push(l[e]);let t=t=>{l[e]=0,u.m[e]=r=>{delete u.c[e];let n=t(),{shareInfo:o}=c[e];if(o?.shareConfig?.layer&&n&&"object"==typeof n)try{n.hasOwnProperty("layer")&&void 0!==n.layer||(n.layer=o.shareConfig.layer)}catch(e){}r.exports=n}},n=t=>{delete l[e],u.m[e]=r=>{throw delete u.c[e],t}};try{let o=u.federation.instance;if(!o)throw Error("Federation instance not found!");let{shareKey:p,getter:d,shareInfo:f,treeShakingGetter:h}=c[e],m=i.getUsedExports(u,p),g={...f};Array.isArray(g.scope)&&Array.isArray(g.scope[0])&&(g.scope=g.scope[0]),m&&(g.treeShaking={usedExports:m,useIn:[o.options.name]});let b=o.loadShare(p,{customShareInfo:g}).then(e=>{if(!1===e){if("function"!=typeof d)throw Error(s.getShortErrorMsg(a.RUNTIME_012,{[a.RUNTIME_012]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:p}));return h?.()||d()}return e});b.then?r.push(l[e]=b.then(t).catch(n)):t(b)}catch(e){n(e)}})}},29296(e,t){t.RUNTIME_012="RUNTIME-012"},2742(e,t){t.getShortErrorMsg=(e,t,r,n)=>{let o=[`${[t[e]]} #${e}`];return r&&o.push(`args: ${JSON.stringify(r)}`),o.push(`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`),n&&o.push(`Original Error Message:
2
2
  ${n}`),o.join("\n")}},42176(e,t){t.getSharedFallbackGetter=({shareKey:e,factory:t,version:r,webpackRequire:n,libraryType:o="global"})=>{let{runtime:i,instance:a,bundlerRuntime:s,sharedFallback:l}=n.federation;if(!l)return t;let u=l[e];if(!u)return t;let p=r?u.find(e=>e[1]===r):u[0];if(!p)throw Error(`No fallback item found for shareKey: ${e} and version: ${r}`);return()=>i.getRemoteEntry({origin:n.federation.instance,remoteInfo:{name:p[2],entry:`${n.p}${p[0]}`,type:o,entryGlobalName:p[2],shareScope:"default"}}).then(t=>{if(!t)throw Error(`Failed to load fallback entry for shareKey: ${e} and version: ${r}`);return t.init(n.federation.instance,s).then(()=>t.get())})}},69864(e,t){t.getUsedExports=function(e,t){let r=e.federation.usedExports;if(r)return r[t]}},37032(e,t,r){Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let n=r(41326),o=r(3026),i=r(95313),a=r(55769),s=r(32614),l=r(8066),u=r(38593),p=r(76554),c=r(42176),d=r(67201);d=n.__toESM(d);let f={remotes:i.remotes,consumes:a.consumes,I:s.initializeSharing,S:{},installInitialConsumes:l.installInitialConsumes,initContainerEntry:u.initContainerEntry,init:p.init,getSharedFallbackGetter:c.getSharedFallbackGetter},h={runtime:d,instance:void 0,initOptions:void 0,bundlerRuntime:f,attachShareScopeMap:o.attachShareScopeMap,bundlerRuntimeOptions:{}},m=h.instance,g=h.initOptions,b=h.bundlerRuntimeOptions;t.attachShareScopeMap=o.attachShareScopeMap,t.bundlerRuntime=f,t.bundlerRuntimeOptions=b,t.default=h,t.initOptions=g,t.instance=m,Object.defineProperty(t,"runtime",{enumerable:!0,get:function(){return d}})},76554(e,t,r){let n=r(41326),o=r(67201),i=r(51222);i=n.__toESM(i),t.init=function({webpackRequire:e}){let{initOptions:t,runtime:n,sharedFallback:a,bundlerRuntime:s,libraryType:l}=e.federation;if(!t)throw Error("initOptions is required!");return t.plugins||=[],t.plugins.push({name:"tree-shake-plugin",beforeInit(t){let{userOptions:n,origin:u,options:p}=t,c=n.version||p.version;if(!a)return t;let d=n.shared||{},f=[];Object.keys(d).forEach(t=>{(Array.isArray(d[t])?d[t]:[d[t]]).forEach(r=>{f.push([t,r]),"get"in r&&(r.treeShaking||={},r.treeShaking.get=r.get,r.get=s.getSharedFallbackGetter({shareKey:t,factory:r.get,webpackRequire:e,libraryType:l,version:r.version}))})});let h=i.default.global.getGlobalSnapshotInfoByModuleInfo({name:u.name,version:c});return h&&"shared"in h&&(Object.keys(p.shared||{}).forEach(e=>{p.shared[e].forEach(t=>{f.push([e,t])})}),f.forEach(([e,t])=>{((e,t)=>{let n=h.shared.find(t=>t.sharedName===e);if(!n)return;let{treeShaking:i}=t;if(!i)return;let{secondarySharedTreeShakingName:a,secondarySharedTreeShakingEntry:s,treeShakingStatus:p}=n;i.status!==p&&(i.status=p,s&&l&&a&&(i.get=async()=>{let e=await (0,o.getRemoteEntry)({origin:u,remoteInfo:{name:a,entry:s,type:l,entryGlobalName:a,shareScope:"default"}});return await e.init(u,r.federation.bundlerRuntime),e.get()}))})(e,t)})),t}}),n.init(t)}},38593(e,t){t.initContainerEntry=function(e){let{webpackRequire:t,shareScope:r,initScope:n,shareScopeKey:o,remoteEntryInitOptions:i}=e;if(!t.S||!t.federation||!t.federation.instance||!t.federation.initOptions)return;let a=t.federation.instance;a.initOptions({name:t.federation.initOptions.name,remotes:[],...i});let s=i?.shareScopeKeys,l=i?.shareScopeMap;if(o&&"string"!=typeof o)o.forEach(e=>{if(!s||!l)return void a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}});l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})});else{let e=o||"default";Array.isArray(s)?s.forEach(e=>{l[e]||(l[e]={});let t=l[e];a.initShareScopeMap(e,t,{hostShareScopeMap:i?.shareScopeMap||{}})}):a.initShareScopeMap(e,r,{hostShareScopeMap:i?.shareScopeMap||{}})}return(t.federation.attachShareScopeMap&&t.federation.attachShareScopeMap(t),Array.isArray(o))?t.federation.initOptions.shared?t.I(o,n):Promise.all(o.map(e=>t.I(e,n))).then(()=>!0):t.I(o||"default",n)}},32614(e,t,r){let n=r(3026),o=r(59592);t.initializeSharing=function({shareScopeName:e,webpackRequire:t,initPromises:r,initTokens:i,initScope:a}){let s=Array.isArray(e)?e:[e];var l=[],u=function(s){a||(a=[]);let l=t.federation.instance;var u=i[s];if(u||(u=i[s]={from:l.name}),a.indexOf(u)>=0)return;a.push(u);let p=r[s];if(p)return p;var c=r=>{var n=e=>{let t;return t="Initialization of sharing external failed: "+e,"u">typeof console&&console.warn&&console.warn(t)};try{var o=t(r);if(!o)return;var i=r=>r&&r.init&&r.init(t.S[s],a,{shareScopeMap:t.S||{},shareScopeKeys:e});if(o.then)return d.push(o.then(i,n));var l=i(o);if(l&&"boolean"!=typeof l&&l.then)return d.push(l.catch(n))}catch(e){n(e)}};let d=l.initializeSharing(s,{strategy:l.options.shareStrategy,initScope:a,from:"build"});n.attachShareScopeMap(t);let f=t.federation.bundlerRuntimeOptions.remotes;return(f&&Object.keys(f.idToRemoteMap).forEach(e=>{let t=f.idToRemoteMap[e],r=f.idToExternalAndNameMapping[e][2];if(t.length>1)c(r);else if(1===t.length){let e=t[0];o.FEDERATION_SUPPORTED_TYPES.includes(e.externalType)||c(r)}}),d.length)?r[s]=Promise.all(d).then(()=>r[s]=!0):r[s]=!0};return s.forEach(e=>{l.push(u(e))}),Promise.all(l).then(()=>!0)}},8066(e,t,r){let n=r(39671),o=r(69864);t.installInitialConsumes=function(e){n.updateConsumeOptions(e);let{moduleToHandlerMapping:t,webpackRequire:r,installedModules:i,initialConsumes:a,asyncLoad:s}=e,l=[];a.forEach(e=>{l.push([e,()=>(function(e){let{moduleId:t,moduleToHandlerMapping:r,webpackRequire:n,asyncLoad:i}=e,a=n.federation.instance;if(!a)throw Error("Federation instance not found!");let{shareKey:s,shareInfo:l}=r[t];try{let e=o.getUsedExports(n,s),t={...l};if(e&&(t.treeShaking={usedExports:e,useIn:[a.options.name]}),i)return a.loadShare(s,{customShareInfo:t});return a.loadShareSync(s,{customShareInfo:t})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}})({moduleId:e,moduleToHandlerMapping:t,webpackRequire:r,asyncLoad:s})])});let u=(e,n)=>{r.m[e]=o=>{i[e]=0,delete r.c[e];let a=n();if("function"!=typeof a)throw Error(`Shared module is not available for eager consumption: ${e}`);let s=a(),{shareInfo:l}=t[e];if(l?.shareConfig?.layer&&s&&"object"==typeof s)try{s.hasOwnProperty("layer")&&void 0!==s.layer||(s.layer=l.shareConfig.layer)}catch(e){}o.exports=s}};if(s)return Promise.all(l.map(async([e,t])=>{let r=await t();u(e,()=>r)}));l.forEach(([e,t])=>{u(e,t)})}},95313(e,t,r){r(41326);let n=r(3026),o=r(59592),i=r(39671),a=r(31853);t.remotes=function(e){i.updateRemoteOptions(e);let{chunkId:t,promises:r,webpackRequire:s,chunkMapping:l,idToExternalAndNameMapping:u,idToRemoteMap:p}=e;n.attachShareScopeMap(s),s.o(l,t)&&l[t].forEach(e=>{let t=s.R;t||(t=[]);let n=u[e],i=p[e]||[];if(t.indexOf(n)>=0)return;if(t.push(n),n.p)return r.push(n.p);let l=t=>{t||(t=Error("Container missing")),"string"==typeof t.message&&(t.message+=`
3
3
  while loading "${n[1]}" from ${n[2]}`),s.m[e]=()=>{throw t},n.p=0},c=(e,t,o,i,a,s)=>{try{let u=e(t,o);if(!u||!u.then)return a(u,i,s);{let e=u.then(e=>a(e,i),l);if(!s)return e;r.push(n.p=e)}}catch(e){l(e)}};var d=(e,r,o)=>c(r.get,n[1],t,0,f,o),f=t=>{n.p=1,s.m[e]=e=>{e.exports=t()}};1===i.length&&o.FEDERATION_SUPPORTED_TYPES.includes(i[0].externalType)&&i[0].name?c(()=>{try{let e=(0,a.decodeName)(i[0].name,a.ENCODE_NAME_PREFIX)+n[1].slice(1),t=s.federation.instance,r=()=>s.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){let e=Array.isArray(n[0])?n[0]:[n[0]];return Promise.all(e.map(e=>t.sharedHandler.initializeSharing(e))).then(()=>r())}return r()}catch(e){l(e)}},n[2],0,0,f,1):c(s,n[2],0,0,(e,t,r)=>e?c(s.I,n[0],0,e,d,r):l(),1)})}},39671(e,t){t.updateConsumeOptions=function(e){let{webpackRequire:t,moduleToHandlerMapping:r}=e,{consumesLoadingData:n,initializeSharingData:o}=t,{sharedFallback:i,bundlerRuntime:a,libraryType:s}=t.federation;if(n&&!n._updated){let{moduleIdToConsumeDataMapping:o={},initialConsumes:l=[],chunkMapping:u={}}=n;if(Object.entries(o).forEach(([e,n])=>{r[e]||(r[e]={getter:i?a?.getSharedFallbackGetter({shareKey:n.shareKey,factory:n.fallback,webpackRequire:t,libraryType:s}):n.fallback,treeShakingGetter:i?n.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:n.requiredVersion,strictVersion:n.strictVersion,singleton:n.singleton,eager:n.eager,layer:n.layer},scope:Array.isArray(n.shareScope)?n.shareScope:[n.shareScope||"default"],treeShaking:i?{get:n.fallback,mode:n.treeShakingMode}:void 0},shareKey:n.shareKey})}),"initialConsumes"in e){let{initialConsumes:t=[]}=e;l.forEach(e=>{t.includes(e)||t.push(e)})}if("chunkMapping"in e){let{chunkMapping:t={}}=e;Object.entries(u).forEach(([e,r])=>{t[e]||(t[e]=[]),r.forEach(r=>{t[e].includes(r)||t[e].push(r)})})}n._updated=1}if(o&&!o._updated){let{federation:e}=t;if(!e.instance||!o.scopeToSharingDataMapping)return;let r={};for(let[e,t]of Object.entries(o.scopeToSharingDataMapping))for(let n of t)if("object"==typeof n&&null!==n){let{name:t,version:o,factory:i,eager:a,singleton:s,requiredVersion:l,strictVersion:u}=n,p={requiredVersion:`^${o}`},c=function(e){return void 0!==e};c(s)&&(p.singleton=s),c(l)&&(p.requiredVersion=l),c(a)&&(p.eager=a),c(u)&&(p.strictVersion=u);let d={version:o,scope:[e],shareConfig:p,get:i};r[t]?r[t].push(d):r[t]=[d]}e.instance.registerShared(r),o._updated=1}},t.updateRemoteOptions=function(e){let{webpackRequire:t,idToExternalAndNameMapping:r={},idToRemoteMap:n={},chunkMapping:o={}}=e,{remotesLoadingData:i}=t,a=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!a)return;let{chunkMapping:s,moduleIdToRemoteDataMapping:l}=i;if(s&&l){for(let[e,t]of Object.entries(l))if(r[e]||(r[e]=[t.shareScope,t.name,t.externalModuleId]),!n[e]&&a[t.remoteName]){let r=a[t.remoteName];n[e]||=[],r.forEach(t=>{n[e].includes(t)||n[e].push(t)})}o&&Object.entries(s).forEach(([e,t])=>{o[e]||(o[e]=[]),t.forEach(t=>{o[e].includes(t)||o[e].push(t)})}),i._updated=1}}}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={id:e,loaded:!1,exports:{}};return i[e].call(r.exports,r,r.exports,s),r.loaded=!0,r.exports}s.m=i,s.c=a,s.x=()=>s(22448),s.federation||(s.federation={chunkMatcher:function(e){return!/^(5362|6392|9847)$/.test(e)},rootOutputDir:""}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((t,r)=>(s.f[r](e,t),t),[])),s.u=e=>""+e+".js",s.miniCssF=e=>""+e+".css",s.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l={},s.l=function(e,t,r,n){if(l[e])return void l[e].push(t);if(void 0!==r)for(var o,i,a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var p=a[u];if(p.getAttribute("src")==e||p.getAttribute("data-rspack")=="@openmrs/esm-form-builder-app:"+r){o=p;break}}o||(i=!0,(o=document.createElement("script")).timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-rspack","@openmrs/esm-form-builder-app:"+r),o.src=e),l[e]=[t];var c=function(t,r){o.onerror=o.onload=null,clearTimeout(d);var n=l[e];if(delete l[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},d=setTimeout(c.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),i&&document.head.appendChild(o)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s.rv=()=>"1.7.9",s.S={},s.initializeSharingData={scopeToSharingDataMapping:{default:[{name:"@openmrs/esm-framework",version:"10.0.1-pre.5434",factory:()=>Promise.all([s.e("4701"),s.e("7977"),s.e("8133"),s.e("8398"),s.e("6392"),s.e("5362"),s.e("9847")]).then(()=>()=>s(52285)),eager:0,singleton:1,requiredVersion:"10.x",strictVersion:0},{name:"react-dom",version:"18.3.1",factory:()=>Promise.all([s.e("5098"),s.e("6392")]).then(()=>()=>s(40961)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"react-i18next",version:"16.0.0",factory:()=>Promise.all([s.e("3379"),s.e("6392")]).then(()=>()=>s(30673)),eager:0,singleton:1,requiredVersion:"16.x",strictVersion:0},{name:"react",version:"18.3.1",factory:()=>s.e("6237").then(()=>()=>s(96540)),eager:0,singleton:1,requiredVersion:"18.x",strictVersion:0},{name:"rxjs",version:"6.6.7",factory:()=>s.e("2997").then(()=>()=>s(75908)),eager:0,singleton:1,requiredVersion:"6.x",strictVersion:0}]},uniqueName:"@openmrs/esm-form-builder-app"},s.I=s.I||function(){throw Error("should have __webpack_require__.I")},s.g.importScripts&&(u=s.g.location+"");var l,u,p=s.g.document;if(!u&&p&&(p.currentScript&&"SCRIPT"===p.currentScript.tagName.toUpperCase()&&(u=p.currentScript.src),!u)){var c=p.getElementsByTagName("script");if(c.length)for(var d=c.length-1;d>-1&&(!u||!/^http(s?):/.test(u));)u=c[d--].src}if(!u)throw Error("Automatic publicPath is not supported in this browser");if(s.p=u=u.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.consumesLoadingData={chunkMapping:{9847:["76922"],3378:["46718"],5362:["58779","54575"],6392:["47499"]},moduleIdToConsumeDataMapping:{76922:{shareScope:"default",shareKey:"rxjs",import:"rxjs",requiredVersion:"6.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("2997").then(()=>()=>s(75908))},58779:{shareScope:"default",shareKey:"react-i18next",import:"react-i18next",requiredVersion:"16.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("3379").then(()=>()=>s(30673))},47499:{shareScope:"default",shareKey:"react",import:"react",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("6237").then(()=>()=>s(96540))},46718:{shareScope:"default",shareKey:"@openmrs/esm-framework",import:"@openmrs/esm-framework",requiredVersion:"10.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>Promise.all([s.e("4701"),s.e("7977"),s.e("8133"),s.e("8398"),s.e("6392"),s.e("5362"),s.e("9847")]).then(()=>()=>s(52285))},54575:{shareScope:"default",shareKey:"react-dom",import:"react-dom",requiredVersion:"18.x",strictVersion:!1,singleton:!0,eager:!1,fallback:()=>s.e("5098").then(()=>()=>s(40961))}},initialConsumes:[]},s.f.consumes=s.f.consumes||function(){throw Error("should have __webpack_require__.f.consumes")},"u">typeof document){var f=function(e,t,r,n,o){var i=document.createElement("link");return i.rel="stylesheet",i.type="text/css",s.nc&&(i.nonce=s.nc),i.href=t,i.onerror=i.onload=function(r){if(i.onerror=i.onload=null,"load"===r.type)n();else{var a=r&&("load"===r.type?"missing":r.type),s=r&&r.target&&r.target.href||t,l=Error("Loading CSS chunk "+e+" failed.\\n("+s+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=a,l.request=s,i.parentNode&&i.parentNode.removeChild(i),o(l)}},r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},h=function(e,t){for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=r[n],i=o.getAttribute("data-href")||o.getAttribute("href");if(i&&(i=i.split("?")[0]),"stylesheet"===o.rel&&(i===e||i===t))return o}for(var a=document.getElementsByTagName("style"),n=0;n<a.length;n++){var o=a[n],i=o.getAttribute("data-href");if(i===e||i===t)return o}},m={8255:0};s.f.miniCss=function(e,t){if(m[e])t.push(m[e]);else 0!==m[e]&&({1515:1,4442:1,4858:1,7247:1,8398:1,9103:1})[e]&&t.push(m[e]=new Promise(function(t,r){var n=s.miniCssF(e),o=s.p+n;if(h(n,o))return t();f(e,o,null,t,r)}).then(function(){m[e]=0},function(t){throw delete m[e],t}))}}s.initializeExposesData={moduleMap:{"./start":()=>s.e("3378").then(()=>()=>s(47481))},shareScope:"default"},s.getContainer=s.getContainer||function(){throw Error("should have __webpack_require__.getContainer")},s.initContainer=s.initContainer||function(){throw Error("should have __webpack_require__.initContainer")},e={8255:0},s.f.j=function(t,r){var n=s.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else if(/^(5362|6392|9847)$/.test(t))e[t]=0;else{var o=new Promise((r,o)=>n=e[t]=[r,o]);r.push(n[2]=o);var i=s.p+s.u(t),a=Error();s.l(i,function(r){if(s.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}},"chunk-"+t,t)}},t=(t,r)=>{var n,o,[i,a,l]=r,u=0;if(i.some(t=>0!==e[t])){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);l&&l(s)}for(t&&t(r);u<i.length;u++)o=i[u],s.o(e,o)&&e[o]&&e[o][0](),e[o]=0},(r=globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r)),s.ruid="bundler=rspack@1.7.9",n=s.x,o=!1,s.x=function(){if(o||(o=!0,s(89672)),"function"==typeof n)return n();console.warn("[MF] Invalid prevStartup")},_openmrs_esm_form_builder_app=s.x()})();
@@ -1144,9 +1144,9 @@
1144
1144
  "rendered": true,
1145
1145
  "initial": false,
1146
1146
  "entry": false,
1147
- "size": 15253,
1147
+ "size": 15301,
1148
1148
  "sizes": {
1149
- "javascript": 15253
1149
+ "javascript": 15301
1150
1150
  },
1151
1151
  "names": [],
1152
1152
  "idHints": [],
@@ -1159,7 +1159,7 @@
1159
1159
  "auxiliaryFiles": [
1160
1160
  "5117.js.map"
1161
1161
  ],
1162
- "hash": "7e1b27499b202c83",
1162
+ "hash": "aa417ae14ad0f99d",
1163
1163
  "childrenByOrder": {}
1164
1164
  },
1165
1165
  {
@@ -1909,7 +1909,7 @@
1909
1909
  "auxiliaryFiles": [
1910
1910
  "openmrs-esm-form-builder-app.js.map"
1911
1911
  ],
1912
- "hash": "2178a6abc4615b6f",
1912
+ "hash": "79087a7473afbda4",
1913
1913
  "childrenByOrder": {}
1914
1914
  },
1915
1915
  {
@@ -2107,10 +2107,10 @@
2107
2107
  "rendered": true,
2108
2108
  "initial": false,
2109
2109
  "entry": false,
2110
- "size": 106625,
2110
+ "size": 107403,
2111
2111
  "sizes": {
2112
- "css/mini-extract": 15466,
2113
- "javascript": 91159
2112
+ "css/mini-extract": 15632,
2113
+ "javascript": 91771
2114
2114
  },
2115
2115
  "names": [],
2116
2116
  "idHints": [],
@@ -2125,7 +2125,7 @@
2125
2125
  "9103.css.map",
2126
2126
  "9103.js.map"
2127
2127
  ],
2128
- "hash": "c3242c207e38c308",
2128
+ "hash": "c2a8ba213da09baf",
2129
2129
  "childrenByOrder": {}
2130
2130
  },
2131
2131
  {
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"pages":[{"component":"root","route":"form-builder","online":true,"offline":true,"order":1}],"extensions":[{"name":"system-administration-form-builder-card-link","slot":"system-admin-page-card-link-slot","component":"systemAdministrationFormBuilderCardLink","online":true,"offline":true}],"modals":[{"name":"new-form-modal","component":"newFormModal"},{"name":"new-page-modal","component":"newPageModal"},{"name":"delete-page-modal","component":"deletePageModal"},{"name":"new-section-modal","component":"newSectionModal"},{"name":"delete-section-modal","component":"deleteSectionModal"},{"name":"add-form-reference-modal","component":"addFormReferenceModal"},{"name":"question-modal","component":"questionModal"},{"name":"delete-question-modal","component":"deleteQuestionModal"},{"name":"edit-question-modal","component":"editQuestionModal"},{"name":"restore-draft-schema-modal","component":"restoreDraftSchemaModal"},{"name":"unpublish-form-modal","component":"unpublishFormModal"},{"name":"delete-form-modal","component":"deleteFormModal"},{"name":"edit-translation-modal","component":"editTranslationModal"},{"name":"save-form-modal","component":"saveFormModal"}],"version":"3.5.2-pre.3780"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"pages":[{"component":"root","route":"form-builder","online":true,"offline":true,"order":1}],"extensions":[{"name":"system-administration-form-builder-card-link","slot":"system-admin-page-card-link-slot","component":"systemAdministrationFormBuilderCardLink","online":true,"offline":true}],"modals":[{"name":"new-form-modal","component":"newFormModal"},{"name":"new-page-modal","component":"newPageModal"},{"name":"delete-page-modal","component":"deletePageModal"},{"name":"new-section-modal","component":"newSectionModal"},{"name":"delete-section-modal","component":"deleteSectionModal"},{"name":"add-form-reference-modal","component":"addFormReferenceModal"},{"name":"question-modal","component":"questionModal"},{"name":"delete-question-modal","component":"deleteQuestionModal"},{"name":"edit-question-modal","component":"editQuestionModal"},{"name":"restore-draft-schema-modal","component":"restoreDraftSchemaModal"},{"name":"unpublish-form-modal","component":"unpublishFormModal"},{"name":"delete-form-modal","component":"deleteFormModal"},{"name":"edit-translation-modal","component":"editTranslationModal"},{"name":"save-form-modal","component":"saveFormModal"}],"version":"3.5.2-pre.3786"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-form-builder-app",
3
- "version": "3.5.2-pre.3780",
3
+ "version": "3.5.2-pre.3786",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Form Builder for O3",
6
6
  "browser": "dist/openmrs-esm-form-builder-app.js",
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useCallback, useEffect } from 'react';
2
- import { Search, InlineLoading, Layer, Tile, FormLabel, InlineNotification } from '@carbon/react';
2
+ import { Search, InlineLoading, Layer, Tag, Tile, FormLabel, InlineNotification } from '@carbon/react';
3
3
  import { useTranslation } from 'react-i18next';
4
4
  import { ArrowUpRight } from '@carbon/react/icons';
5
5
  import { useConceptId } from '@hooks/useConceptId';
@@ -76,6 +76,9 @@ const ConceptSearch: React.FC<ConceptSearchProps> = ({
76
76
  },
77
77
  [onSelectConcept, setIsConceptValid, clearSelectedConcept, clearSearchAfterSelection],
78
78
  );
79
+ const currentConcept = selectedConcept ?? initialConcept;
80
+ const showsRetiredConcept = !conceptToLookup && Boolean(currentConcept?.retired);
81
+
79
82
  return (
80
83
  <>
81
84
  <FormLabel className={styles.label}>
@@ -115,13 +118,8 @@ const ConceptSearch: React.FC<ConceptSearchProps> = ({
115
118
  if (conceptToLookup) {
116
119
  return conceptToLookup;
117
120
  }
118
- if (selectedConcept) {
119
- return selectedConcept.display;
120
- }
121
- if (conceptName) {
122
- return conceptName;
123
- }
124
- return '';
121
+ const display = selectedConcept?.display ?? conceptName ?? '';
122
+ return showsRetiredConcept ? t('retiredConceptDisplay', '{{display}} (Retired)', { display }) : display;
125
123
  })()}
126
124
  />
127
125
  )}
@@ -136,10 +134,16 @@ const ConceptSearch: React.FC<ConceptSearchProps> = ({
136
134
  <li
137
135
  role="menuitem"
138
136
  className={styles.concept}
137
+ data-retired={concept.retired || undefined}
139
138
  key={index}
140
139
  onClick={() => handleConceptSelect(concept)}
141
140
  >
142
- {concept.display}
141
+ <span>{concept.display}</span>
142
+ {concept.retired && (
143
+ <Tag size="sm" type="cool-gray">
144
+ {t('retired', 'Retired')}
145
+ </Tag>
146
+ )}
143
147
  </li>
144
148
  ))}
145
149
  </ul>
@@ -22,12 +22,20 @@
22
22
  }
23
23
 
24
24
  .concept {
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: space-between;
25
28
  padding: layout.$spacing-04;
26
29
  border-bottom: 1px solid colors.$gray-20;
27
30
 
28
31
  &:last-of-type {
29
32
  border-bottom: none;
30
33
  }
34
+
35
+ &[data-retired] {
36
+ justify-content: flex-start;
37
+ gap: layout.$spacing-02;
38
+ }
31
39
  }
32
40
 
33
41
  .conceptList {
@@ -32,6 +32,13 @@ const concepts: Array<Concept> = [
32
32
  datatype: { uuid: '456', name: 'Date' },
33
33
  mappings: [{ display: 'CIEL:1656', conceptMapType: { display: 'SAME-AS' } }],
34
34
  },
35
+ {
36
+ uuid: '789',
37
+ display: 'Retired concept',
38
+ datatype: { uuid: '456', name: 'Text' },
39
+ mappings: [{ display: 'CIEL:1706', conceptMapType: { display: 'SAME-AS' } }],
40
+ retired: true,
41
+ },
35
42
  ];
36
43
  const mockUseConceptLookup = vi.mocked(useConceptLookup);
37
44
  vi.mock('@hooks/useConceptLookup', async () => ({
@@ -89,6 +96,41 @@ describe('Concept search component', () => {
89
96
  expect(searchInput).toHaveDisplayValue(/concept 1/i);
90
97
  });
91
98
 
99
+ it('flags retired concepts in the search results but keeps them selectable', async () => {
100
+ const user = userEvent.setup();
101
+ renderComponent();
102
+
103
+ const searchInput = screen.getByRole('searchbox', { name: /search for a backing concept/i });
104
+ await user.click(searchInput);
105
+ await user.type(searchInput, 'Retired concept');
106
+
107
+ const retiredConceptMenuItem = await screen.findByRole('menuitem', {
108
+ name: /retired concept/i,
109
+ });
110
+ expect(retiredConceptMenuItem).toBeInTheDocument();
111
+ const retiredTag = screen.getByText(/^retired$/i);
112
+ expect(retiredConceptMenuItem).toContainElement(retiredTag);
113
+
114
+ const activeConceptMenuItem = screen.getByRole('menuitem', { name: /concept 1/i });
115
+ expect(activeConceptMenuItem).not.toContainElement(retiredTag);
116
+
117
+ await user.click(retiredConceptMenuItem);
118
+ expect(onSelectConcept).toHaveBeenCalledWith(concepts[2]);
119
+ expect(searchInput).toHaveDisplayValue(/\(Retired\)$/);
120
+ });
121
+
122
+ it('marks a pre-loaded retired backing concept in the search box', () => {
123
+ const { rerender } = render(<ConceptSearch onSelectConcept={onSelectConcept} defaultConcept="789" />);
124
+ mockUseConceptId.mockReturnValue({
125
+ concept: concepts[2],
126
+ conceptName: concepts[2].display,
127
+ conceptNameLookupError: null,
128
+ isLoadingConcept: false,
129
+ });
130
+ rerender(<ConceptSearch onSelectConcept={onSelectConcept} defaultConcept="789" />);
131
+ expect(screen.getByRole('searchbox', { name: /search for a backing concept/i })).toHaveDisplayValue(/\(Retired\)$/);
132
+ });
133
+
92
134
  it('shows loading spinner when concept is loading', async () => {
93
135
  mockUseConceptLookup.mockReturnValue({ concepts: concepts, conceptLookupError: null, isLoadingConcepts: true });
94
136
  mockUseConceptId.mockReturnValue({
@@ -3,7 +3,9 @@ import { openmrsFetch, restBaseUrl } from '@openmrs/esm-framework';
3
3
  import type { Concept } from '@types';
4
4
 
5
5
  export function useConceptLookup(conceptId: string) {
6
- const url = `${restBaseUrl}/concept?q=${conceptId}&v=full`;
6
+ // includeAll ensures retired concepts show up in search results so they can
7
+ // be flagged as retired in the UI. See O3-4997.
8
+ const url = `${restBaseUrl}/concept?q=${conceptId}&v=full&includeAll=true`;
7
9
 
8
10
  const { data, error, isLoading } = useSWR<{ data: { results: Array<Concept> } }, Error>(
9
11
  conceptId ? url : null,
package/src/types.ts CHANGED
@@ -70,6 +70,7 @@ export interface Concept {
70
70
  conceptClass?: { display?: string };
71
71
  answers?: Array<ConceptAnswer>;
72
72
  allowDecimal?: boolean;
73
+ retired?: boolean;
73
74
  }
74
75
 
75
76
  export interface ConceptAnswer {